Skip to content

Commit

Permalink
Update proto
Browse files Browse the repository at this point in the history
  • Loading branch information
trinitys7 committed Oct 25, 2024
1 parent 70e7725 commit ffb892e
Show file tree
Hide file tree
Showing 83 changed files with 150 additions and 6,645 deletions.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ replace (
// use cosmos flavored protobufs
github.com/gogo/protobuf => github.com/regen-network/protobuf v1.3.3-alpha.regen.1

github.com/realio-tech/multi-staking-module => github.com/decentrio/multi-staking v0.0.0-20241024063118-c19b60f14dc2
github.com/realio-tech/multi-staking-module => github.com/decentrio/multi-staking v0.0.0-20241025035539-29cf83199609

// replace broken goleveldb
github.com/syndtr/goleveldb => github.com/syndtr/goleveldb v1.0.1-0.20210819022825-2ae1ddf74ef7
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -432,8 +432,8 @@ github.com/decentrio/evmos-os v0.0.0-20241024054802-0945bfe2d45b h1:X+JTL+nm0Ylr
github.com/decentrio/evmos-os v0.0.0-20241024054802-0945bfe2d45b/go.mod h1:uQQyppk8z2C7Ypk/zj8/wnJSrf74rY8cXLzsD8F1tEE=
github.com/decentrio/evmos-os/example_chain v0.0.0-20241024054802-0945bfe2d45b h1:knpuahWxslEV7z2H3nslmhlHBjBzWQiyUN1YueTcwig=
github.com/decentrio/evmos-os/example_chain v0.0.0-20241024054802-0945bfe2d45b/go.mod h1:+SPMqw9wtbWO3jG02uLbLtVVjMHBldmXTN51kxbWqJ8=
github.com/decentrio/multi-staking v0.0.0-20241024063118-c19b60f14dc2 h1:COFMsw34Ydw5WB9f7d/4hjx+J7lJPDYdSdskpwx+AAE=
github.com/decentrio/multi-staking v0.0.0-20241024063118-c19b60f14dc2/go.mod h1:88BiAAV1Jp1sM4ZR09VAZimN5X34BO/7XTO7/si1tJE=
github.com/decentrio/multi-staking v0.0.0-20241025035539-29cf83199609 h1:1ttWK87XsSBLEXTSkaZo0kcs8nBnCqiIioK55VcvC8I=
github.com/decentrio/multi-staking v0.0.0-20241025035539-29cf83199609/go.mod h1:88BiAAV1Jp1sM4ZR09VAZimN5X34BO/7XTO7/si1tJE=
github.com/deckarep/golang-set v1.8.0 h1:sk9/l/KqpunDwP7pSjUg0keiOOLEnOBHzykLrsPppp4=
github.com/deckarep/golang-set v1.8.0/go.mod h1:5nI87KwE7wgsBU1F4GKAw2Qod7p5kyS383rP6+o6qqo=
github.com/decred/dcrd/crypto/blake256 v1.0.0/go.mod h1:sQl2p6Y26YV+ZOcSTP6thNdn47hh8kt6rqSlvmrXFAc=
Expand Down
19 changes: 17 additions & 2 deletions proto/buf.lock
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@ deps:
repository: cosmos-proto
commit: 04467658e59e44bbb22fe568206e1f70
digest: shake256:73a640bd60e0c523b0f8237ff34eab67c45a38b64bbbde1d80224819d272dbf316ac183526bd245f994af6608b025f5130483d0133c5edd385531326b5990466
- remote: buf.build
owner: cosmos
repository: cosmos-sdk
commit: 05419252bcc241ea8023acf1ed4cadc5
digest: shake256:1e54a48c19a8b59d35e0a7efa76402939f515f2d8005df099856f24c37c20a52800308f025abb8cffcd014d437b49707388aaca4865d9d063d8f25d5d4eb77d5
- remote: buf.build
owner: cosmos
repository: gogo-proto
Expand All @@ -14,5 +19,15 @@ deps:
- remote: buf.build
owner: googleapis
repository: googleapis
commit: e7f8d366f5264595bcc4cd4139af9973
digest: shake256:e5e5f1c12f82e028ea696faa43b4f9dc6258a6d1226282962a8c8b282e10946281d815884f574bd279ebd9cd7588629beb3db17b892af6c33b56f92f8f67f509
commit: f52d4f76a8434cc5966798b1d3b4f110
digest: shake256:71566dd80e39b7d85fdaa9b7f82107385181d5b6d17ea56c0aacce61099b35f9f1bcf7333ad9838ca19d24d7f076b039de7c9c09c55d23bb4c2fddfceff4d2c2
- remote: buf.build
owner: protocolbuffers
repository: wellknowntypes
commit: 657250e6a39648cbb169d079a60bd9ba
digest: shake256:00de25001b8dd2e29d85fc4bcc3ede7aed886d76d67f5e0f7a9b320b90f871d3eb73507d50818d823a0512f3f8db77a11c043685528403e31ff3fef18323a9fb
- remote: buf.build
owner: tendermint
repository: tendermint
commit: 33ed361a90514289beabf3189e1d7665
digest: shake256:038267e06294714fd883610626554b04a127b576b4e253befb4206cb72d5d3c1eeccacd4b9ec8e3fb891f7c14e1cb0f770c077d2989638995b0a61c85afedb1d
1 change: 1 addition & 0 deletions proto/buf.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
version: v1
name: buf.build/realiotech/realio-network
deps:
- buf.build/cosmos/cosmos-sdk
- buf.build/cosmos/cosmos-proto
- buf.build/cosmos/gogo-proto
- buf.build/googleapis/googleapis
Expand Down
7 changes: 7 additions & 0 deletions proto/realionetwork/asset/v1/tx.proto
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,11 @@ option go_package = "github.com/realiotech/realio-network/x/asset/types";
import "gogoproto/gogo.proto";
import "realionetwork/asset/v1/params.proto";
import "cosmos_proto/cosmos.proto";
import "cosmos/msg/v1/msg.proto";

// Msg defines the Msg service.
service Msg {
option (cosmos.msg.v1.service) = true;
rpc UpdateParams(MsgUpdateParams) returns (MsgUpdateParamsResponse);
rpc CreateToken(MsgCreateToken) returns (MsgCreateTokenResponse);
rpc UpdateToken(MsgUpdateToken) returns (MsgUpdateTokenResponse);
Expand All @@ -21,6 +23,7 @@ service Msg {
}

message MsgCreateToken {
option (cosmos.msg.v1.signer) = "manager";
string manager = 1;
string name = 2;
string symbol = 3;
Expand All @@ -31,6 +34,7 @@ message MsgCreateToken {
message MsgCreateTokenResponse {}

message MsgUpdateToken {
option (cosmos.msg.v1.signer) = "manager";
string manager = 1;
string symbol = 2;
bool authorizationRequired = 3;
Expand All @@ -39,6 +43,7 @@ message MsgUpdateToken {
message MsgUpdateTokenResponse {}

message MsgAuthorizeAddress {
option (cosmos.msg.v1.signer) = "manager";
string manager = 1;
string symbol = 2;
string address = 3;
Expand All @@ -47,6 +52,7 @@ message MsgAuthorizeAddress {
message MsgAuthorizeAddressResponse {}

message MsgUnAuthorizeAddress {
option (cosmos.msg.v1.signer) = "manager";
string manager = 1;
string symbol = 2;
string address = 3;
Expand All @@ -64,6 +70,7 @@ message MsgTransferToken {
message MsgTransferTokenResponse {}

message MsgUpdateParams {
option (cosmos.msg.v1.signer) = "authority";
// authority is the address that controls the module (defaults to x/gov unless
// overwritten).
string authority = 1;
Expand Down
13 changes: 13 additions & 0 deletions proto/realionetwork/bridge/v1/tx.proto
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,15 @@ package realionetwork.bridge.v1;
import "gogoproto/gogo.proto";
import "google/protobuf/duration.proto";
import "cosmos/base/v1beta1/coin.proto";
import "cosmos/msg/v1/msg.proto";
import "realionetwork/bridge/v1/params.proto";

option go_package = "github.com/realiotech/realio-network/x/bridge/types";

// Msg defines the Msg service.
service Msg {
option (cosmos.msg.v1.service) = true;

rpc BridgeIn(MsgBridgeIn) returns (MsgBridgeInResponse);
rpc BridgeOut(MsgBridgeOut) returns (MsgBridgeOutResponse);
rpc RegisterNewCoins(MsgRegisterNewCoins) returns (MsgRegisterNewCoinsResponse);
Expand All @@ -20,6 +23,8 @@ service Msg {
}

message MsgBridgeIn {
option (cosmos.msg.v1.signer) = "authority";

string authority = 1;
cosmos.base.v1beta1.Coin coin = 2 [
(gogoproto.nullable) = false,
Expand All @@ -30,6 +35,8 @@ message MsgBridgeIn {
message MsgBridgeInResponse {}

message MsgBridgeOut {
option (cosmos.msg.v1.signer) = "signer";

string signer = 1;
cosmos.base.v1beta1.Coin coin = 2 [
(gogoproto.nullable) = false,
Expand All @@ -40,6 +47,8 @@ message MsgBridgeOut {
message MsgBridgeOutResponse {}

message MsgRegisterNewCoins {
option (cosmos.msg.v1.signer) = "authority";

string authority = 1;
repeated cosmos.base.v1beta1.Coin coins = 2 [
(gogoproto.nullable) = false,
Expand All @@ -50,13 +59,16 @@ message MsgRegisterNewCoins {
message MsgRegisterNewCoinsResponse {}

message MsgDeregisterCoins {
option (cosmos.msg.v1.signer) = "authority";

string authority = 1;
repeated string denoms = 2;
}

message MsgDeregisterCoinsResponse {}

message MsgUpdateParams {
option (cosmos.msg.v1.signer) = "authority";
// authority is the address that controls the module (defaults to x/gov unless
// overwritten).
string authority = 1;
Expand All @@ -70,6 +82,7 @@ message MsgUpdateParams {
message MsgUpdateParamsResponse {}

message MsgUpdateEpochDuration {
option (cosmos.msg.v1.signer) = "authority";
// authority is the address that controls the module (defaults to x/gov unless
// overwritten).
string authority = 1;
Expand Down
3 changes: 3 additions & 0 deletions proto/realionetwork/mint/v1/tx.proto
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,16 @@ option go_package = "github.com/realiotech/realio-network/x/mint/types";
import "gogoproto/gogo.proto";
import "realionetwork/mint/v1/mint.proto";
import "cosmos_proto/cosmos.proto";
import "cosmos/msg/v1/msg.proto";

// Msg defines the Msg service.
service Msg {
option (cosmos.msg.v1.service) = true;
rpc UpdateParams(MsgUpdateParams) returns (MsgUpdateParamsResponse);
}

message MsgUpdateParams {
option (cosmos.msg.v1.signer) = "authority";
// authority is the address that controls the module (defaults to x/gov unless
// overwritten).
string authority = 1;
Expand Down
62 changes: 0 additions & 62 deletions third_party/proto/cosmos/auth/v1beta1/auth.proto

This file was deleted.

17 changes: 0 additions & 17 deletions third_party/proto/cosmos/auth/v1beta1/genesis.proto

This file was deleted.

70 changes: 0 additions & 70 deletions third_party/proto/cosmos/auth/v1beta1/query.proto

This file was deleted.

29 changes: 0 additions & 29 deletions third_party/proto/cosmos/authz/v1beta1/authz.proto

This file was deleted.

Loading

0 comments on commit ffb892e

Please sign in to comment.