Skip to content

Commit 274f904

Browse files
committed
update proto files to support ibc-go-v10
1 parent 6bb7504 commit 274f904

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

71 files changed

+837
-1114
lines changed

proto/buf.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@
66
version: v1
77
name: buf.build/crypto-org-chain/cronos
88
deps:
9-
- buf.build/cosmos/cosmos-sdk:954f7b05f38440fc8250134b15adec47
10-
- buf.build/cosmos/cosmos-proto:1935555c206d4afb9e94615dfd0fad31
9+
- buf.build/cosmos/cosmos-sdk:05419252bcc241ea8023acf1ed4cadc5
10+
- buf.build/cosmos/cosmos-proto:04467658e59e44bbb22fe568206e1f70
1111
- buf.build/cosmos/gogo-proto:5e5b9fdd01804356895f8f79a6f1ddc1
12-
- buf.build/googleapis/googleapis:cc916c31859748a68fd229a3c8d7a2e8
13-
- buf.build/cosmos/ics23:b1abd8678aab07165efd453c96796a179eb3131f
12+
- buf.build/googleapis/googleapis:61b203b9a9164be9a834f58c37be6f62
13+
- buf.build/cosmos/ics23:dc427cb4519143d8996361c045a29ad7
1414
- buf.build/crypto-org-chain/cronos-thirdparty
1515
breaking:
1616
use:

proto/cronos/query.proto

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ message QueryPermissionsResponse {
111111
}
112112

113113
// QueryBlockListRequest
114-
message QueryBlockListRequest { }
114+
message QueryBlockListRequest {}
115115

116116
// QueryBlockListResponse
117117
message QueryBlockListResponse {

proto/cronos/tx.proto

Lines changed: 13 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ service Msg {
4242
// MsgConvertVouchers represents a message to convert ibc voucher coins to
4343
// cronos evm coins.
4444
message MsgConvertVouchers {
45-
option (cosmos.msg.v1.signer) = "address";
45+
option (cosmos.msg.v1.signer) = "address";
4646
string address = 1;
4747
repeated cosmos.base.v1beta1.Coin coins = 2
4848
[(gogoproto.nullable) = false, (gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"];
@@ -51,7 +51,7 @@ message MsgConvertVouchers {
5151
// MsgTransferTokens represents a message to transfer cronos evm coins through
5252
// ibc.
5353
message MsgTransferTokens {
54-
option (cosmos.msg.v1.signer) = "from";
54+
option (cosmos.msg.v1.signer) = "from";
5555
string from = 1;
5656
string to = 2;
5757
repeated cosmos.base.v1beta1.Coin coins = 3
@@ -67,9 +67,9 @@ message MsgTransferTokensResponse {}
6767
// MsgUpdateTokenMapping defines the request type
6868
message MsgUpdateTokenMapping {
6969
option (cosmos.msg.v1.signer) = "sender";
70-
string sender = 1;
71-
string denom = 2;
72-
string contract = 3;
70+
string sender = 1;
71+
string denom = 2;
72+
string contract = 3;
7373
// only when updating cronos (source) tokens
7474
string symbol = 4;
7575
uint32 decimal = 5;
@@ -81,8 +81,8 @@ message MsgUpdateTokenMappingResponse {}
8181
// MsgTurnBridge defines the request type
8282
message MsgTurnBridge {
8383
option (cosmos.msg.v1.signer) = "sender";
84-
string sender = 1;
85-
bool enable = 2;
84+
string sender = 1;
85+
bool enable = 2;
8686
}
8787

8888
// MsgTurnBridgegResponse defines the response type
@@ -105,9 +105,9 @@ message MsgUpdateParamsResponse {}
105105
// permissions.
106106
message MsgUpdatePermissions {
107107
option (cosmos.msg.v1.signer) = "from";
108-
string from = 1;
109-
string address = 2;
110-
uint64 permissions = 3;
108+
string from = 1;
109+
string address = 2;
110+
uint64 permissions = 3;
111111
}
112112

113113
// MsgUpdatePermissionsResponse defines the response type.
@@ -116,10 +116,9 @@ message MsgUpdatePermissionsResponse {}
116116
// MsgStoreBlockList
117117
message MsgStoreBlockList {
118118
option (cosmos.msg.v1.signer) = "from";
119-
string from = 1;
120-
bytes blob = 2;
119+
string from = 1;
120+
bytes blob = 2;
121121
}
122122

123123
// MsgStoreBlockListResponse
124-
message MsgStoreBlockListResponse {
125-
}
124+
message MsgStoreBlockListResponse {}

proto/e2ee/genesis.proto

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ option go_package = "github.com/crypto-org-chain/cronos/v2/x/e2ee/types";
88
// EncryptionKeyEntry is a type that contains the owner and the public key.
99
message EncryptionKeyEntry {
1010
string address = 1;
11-
string key = 2;
11+
string key = 2;
1212
}
1313

1414
// GenesisState defines the e2ee module's genesis state.

proto/e2ee/query.proto

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -7,17 +7,17 @@ option go_package = "github.com/crypto-org-chain/cronos/v2/x/e2ee/types";
77

88
// Query defines the gRPC querier service.
99
service Query {
10-
// Key queries the encryption key of a given address
11-
rpc Key(KeyRequest) returns (KeyResponse) {
12-
option (google.api.http).get = "/e2ee/v1/key/{address}";
13-
}
14-
// Keys queries the encryption keys for a batch of addresses
15-
rpc Keys(KeysRequest) returns (KeysResponse) {
16-
option (google.api.http) = {
17-
post: "/e2ee/v1/keys"
18-
body: "*"
19-
};
20-
}
10+
// Key queries the encryption key of a given address
11+
rpc Key(KeyRequest) returns (KeyResponse) {
12+
option (google.api.http).get = "/e2ee/v1/key/{address}";
13+
}
14+
// Keys queries the encryption keys for a batch of addresses
15+
rpc Keys(KeysRequest) returns (KeysResponse) {
16+
option (google.api.http) = {
17+
post: "/e2ee/v1/keys"
18+
body: "*"
19+
};
20+
}
2121
}
2222

2323
// KeyRequest is the request type for the Query/Key RPC method.
@@ -30,7 +30,6 @@ message KeyResponse {
3030
string key = 1;
3131
}
3232

33-
3433
// KeysRequest is the request type for the Query/Key RPC method.
3534
message KeysRequest {
3635
repeated string addresses = 1;

proto/e2ee/tx.proto

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,8 @@ message MsgRegisterEncryptionKey {
1818
option (cosmos.msg.v1.signer) = "address";
1919

2020
string address = 1;
21-
string key = 2;
21+
string key = 2;
2222
}
2323

2424
// MsgRegisterEncryptionKeyResponse defines the Msg/RegisterEncryptionKey response type
25-
message MsgRegisterEncryptionKeyResponse {
26-
}
25+
message MsgRegisterEncryptionKeyResponse {}

proto/memiavl/changeset.proto

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@ option go_package = "github.com/crypto-org-chain/cronos/memiavl";
55

66
// KVPair represents a key-value pair
77
message KVPair {
8-
bool delete = 1;
9-
bytes key = 2;
10-
bytes value = 3;
8+
bool delete = 1;
9+
bytes key = 2;
10+
bytes value = 3;
1111
}
1212

1313
// ChangeSet represents a list of key-value pairs
1414
message ChangeSet {
15-
repeated KVPair pairs = 1;
15+
repeated KVPair pairs = 1;
1616
}

proto/memiavl/wal.proto

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ import "memiavl/commit_info.proto";
99

1010
// NamedChangeSet combine a tree name with the changeset
1111
message NamedChangeSet {
12-
ChangeSet changeset = 1 [(gogoproto.nullable) = false];
13-
string name = 2;
12+
ChangeSet changeset = 1 [(gogoproto.nullable) = false];
13+
string name = 2;
1414
}
1515

1616
// TreeNameUpgrade defines upgrade of tree names:

third_party/proto/buf.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@
66
version: v1
77
name: buf.build/crypto-org-chain/cronos-thirdparty
88
deps:
9-
- buf.build/cosmos/cosmos-sdk:954f7b05f38440fc8250134b15adec47
10-
- buf.build/cosmos/cosmos-proto:1935555c206d4afb9e94615dfd0fad31
9+
- buf.build/cosmos/cosmos-sdk:05419252bcc241ea8023acf1ed4cadc5
10+
- buf.build/cosmos/cosmos-proto:04467658e59e44bbb22fe568206e1f70
1111
- buf.build/cosmos/gogo-proto:5e5b9fdd01804356895f8f79a6f1ddc1
12-
- buf.build/googleapis/googleapis:cc916c31859748a68fd229a3c8d7a2e8
13-
- buf.build/cosmos/ics23:b1abd8678aab07165efd453c96796a179eb3131f
12+
- buf.build/googleapis/googleapis:61b203b9a9164be9a834f58c37be6f62
13+
- buf.build/cosmos/ics23:dc427cb4519143d8996361c045a29ad7
1414
breaking:
1515
use:
1616
- FILE

third_party/proto/ethermint/evm/v1/query.proto

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -267,8 +267,10 @@ message QueryTraceTxRequest {
267267
google.protobuf.Timestamp block_time = 7 [(gogoproto.nullable) = false, (gogoproto.stdtime) = true];
268268
// proposer_address is the proposer of the requested block
269269
bytes proposer_address = 8 [(gogoproto.casttype) = "github.com/cosmos/cosmos-sdk/types.ConsAddress"];
270-
// chain_id is the the eip155 chain id parsed from the requested block header
270+
// chain_id is the eip155 chain id parsed from the requested block header
271271
int64 chain_id = 9;
272+
// base_fee is the base fee based on the block_number of requested transaction
273+
string base_fee = 10 [(gogoproto.customtype) = "cosmossdk.io/math.Int"];
272274
}
273275

274276
// QueryTraceTxResponse defines TraceTx response

third_party/proto/ethermint/evm/v1/tx.proto

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,12 +35,14 @@ message MsgEthereumTx {
3535
// size is the encoded storage size of the transaction (DEPRECATED)
3636
double size = 2 [(gogoproto.jsontag) = "-"];
3737
// hash of the transaction in hex format
38-
string hash = 3 [(gogoproto.moretags) = "rlp:\"-\""];
38+
string deprecated_hash = 3 [(gogoproto.moretags) = "rlp:\"-\""];
3939
string deprecated_from = 4 [deprecated = true];
4040
// from is the bytes of ethereum signer address. This address value is checked
4141
// against the address derived from the signature (V, R, S) using the
4242
// secp256k1 elliptic curve
4343
bytes from = 5;
44+
// raw is the raw bytes of the ethereum transaction
45+
bytes raw = 6 [(gogoproto.customtype) = "EthereumTx", (gogoproto.nullable) = false];
4446
}
4547

4648
// LegacyTx is the transaction data of regular Ethereum transactions.

third_party/proto/ibc/applications/fee/v1/ack.proto

Lines changed: 0 additions & 15 deletions
This file was deleted.

third_party/proto/ibc/applications/fee/v1/fee.proto

Lines changed: 0 additions & 61 deletions
This file was deleted.

third_party/proto/ibc/applications/fee/v1/genesis.proto

Lines changed: 0 additions & 60 deletions
This file was deleted.

third_party/proto/ibc/applications/fee/v1/metadata.proto

Lines changed: 0 additions & 14 deletions
This file was deleted.

0 commit comments

Comments
 (0)