make proto-all (#12643)

This commit is contained in:
Jacob Gadikian
2022-07-20 00:59:34 +02:00
committed by GitHub
parent 282b3be2dc
commit 818da709f2
19 changed files with 170 additions and 162 deletions
+4 -2
View File
@@ -517,9 +517,11 @@ type Module struct {
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// max_execution_period defines the max duration after a proposal's voting period ends that members can send a MsgExec to execute the proposal.
// max_execution_period defines the max duration after a proposal's voting period ends that members can send a MsgExec
// to execute the proposal.
MaxExecutionPeriod *durationpb.Duration `protobuf:"bytes,1,opt,name=max_execution_period,json=maxExecutionPeriod,proto3" json:"max_execution_period,omitempty"`
// max_metadata_len defines the max length of the metadata bytes field for various entities within the group module. Defaults to 255 if not explicitly set.
// max_metadata_len defines the max length of the metadata bytes field for various entities within the group module.
// Defaults to 255 if not explicitly set.
MaxMetadataLen uint64 `protobuf:"varint,2,opt,name=max_metadata_len,json=maxMetadataLen,proto3" json:"max_metadata_len,omitempty"`
}
+4 -2
View File
@@ -496,9 +496,11 @@ type Module struct {
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// skip_ante_handler defines whether the ante handler registration should be skipped in case an app wants to override this functionality.
// skip_ante_handler defines whether the ante handler registration should be skipped in case an app wants to override
// this functionality.
SkipAnteHandler bool `protobuf:"varint,1,opt,name=skip_ante_handler,json=skipAnteHandler,proto3" json:"skip_ante_handler,omitempty"`
// skip_post_handler defines whether the post handler registration should be skipped in case an app wants to override this functionality.
// skip_post_handler defines whether the post handler registration should be skipped in case an app wants to override
// this functionality.
SkipPostHandler bool `protobuf:"varint,2,opt,name=skip_post_handler,json=skipPostHandler,proto3" json:"skip_post_handler,omitempty"`
}
+25 -25
View File
@@ -15,39 +15,39 @@ service Query {
message EchoRequest {
// u32 is an uint32
uint32 u32 = 1;
uint64 u64 = 2;
string str = 3;
bytes bz = 4;
google.protobuf.Timestamp timestamp = 5;
google.protobuf.Duration duration = 6;
int32 i32 = 7;
int64 i64 = 10;
bool a_bool = 15;
Enum an_enum = 16;
AMessage a_message = 17;
cosmos.base.v1beta1.Coin a_coin = 18;
string an_address = 19 [(cosmos_proto.scalar) = "cosmos.AddressString"];
cosmos.base.query.v1beta1.PageRequest page = 20;
repeated bool bools = 21;
repeated uint32 uints = 22;
repeated string strings = 23;
repeated Enum enums = 24;
repeated google.protobuf.Duration durations = 25;
repeated AMessage some_messages = 26;
uint32 u32 = 1;
uint64 u64 = 2;
string str = 3;
bytes bz = 4;
google.protobuf.Timestamp timestamp = 5;
google.protobuf.Duration duration = 6;
int32 i32 = 7;
int64 i64 = 10;
bool a_bool = 15;
Enum an_enum = 16;
AMessage a_message = 17;
cosmos.base.v1beta1.Coin a_coin = 18;
string an_address = 19 [(cosmos_proto.scalar) = "cosmos.AddressString"];
cosmos.base.query.v1beta1.PageRequest page = 20;
repeated bool bools = 21;
repeated uint32 uints = 22;
repeated string strings = 23;
repeated Enum enums = 24;
repeated google.protobuf.Duration durations = 25;
repeated AMessage some_messages = 26;
}
enum Enum {
ENUM_UNSPECIFIED = 0;
ENUM_ONE = 1;
ENUM_TWO = 2;
ENUM_FIVE = 5;
ENUM_NEG_THREE = -3;
ENUM_ONE = 1;
ENUM_TWO = 2;
ENUM_FIVE = 5;
ENUM_NEG_THREE = -3;
}
message AMessage {
string bar = 1;
int32 baz = 2;
int32 baz = 2;
}
message EchoResponse {
+2 -1
View File
@@ -31,5 +31,6 @@ message TestUnregisteredModule {
message TestNoModuleOptionModule {}
message TestNoGoImportModule {
option (cosmos.app.v1alpha1.module) = {};
option (cosmos.app.v1alpha1.module) = {
};
}
+19 -19
View File
@@ -9,30 +9,30 @@ import "cosmos/orm/v1/orm.proto";
message Balance {
option (cosmos.orm.v1.table) = {
id: 1;
primary_key: {
fields:
"address,denom"
}
index: {
id:
1 fields: "denom"
}
};
primary_key: {
fields:
"address,denom"
}
index: {
id:
1 fields: "denom"
}
};
string address = 1;
string denom = 2;
uint64 amount = 3;
string address = 1;
string denom = 2;
uint64 amount = 3;
}
message Supply {
option (cosmos.orm.v1.table) = {
id: 2;
primary_key: {
fields:
"denom"
}
};
primary_key: {
fields:
"denom"
}
};
string denom = 1;
uint64 amount = 2;
string denom = 1;
uint64 amount = 2;
}
+62 -62
View File
@@ -9,68 +9,68 @@ import "cosmos/orm/v1/orm.proto";
message ExampleTable {
option (cosmos.orm.v1.table) = {
id: 1;
primary_key: {
fields:
"u32,i64,str"
}
index: {
id:
1;
fields:
"u64,str" unique: true
}
index: {
id:
2;
fields:
"str,u32"
}
index: {
id:
3;
fields:
"bz,str"
}
};
primary_key: {
fields:
"u32,i64,str"
}
index: {
id:
1;
fields:
"u64,str" unique: true
}
index: {
id:
2;
fields:
"str,u32"
}
index: {
id:
3;
fields:
"bz,str"
}
};
// Valid key fields:
uint32 u32 = 1;
uint64 u64 = 2;
string str = 3;
bytes bz = 4;
google.protobuf.Timestamp ts = 5;
google.protobuf.Duration dur = 6;
int32 i32 = 7;
sint32 s32 = 8;
sfixed32 sf32 = 9;
int64 i64 = 10;
sint64 s64 = 11;
sfixed64 sf64 = 12;
fixed32 f32 = 13;
fixed64 f64 = 14;
bool b = 15;
Enum e = 16;
// Valid key fields:
uint32 u32 = 1;
uint64 u64 = 2;
string str = 3;
bytes bz = 4;
google.protobuf.Timestamp ts = 5;
google.protobuf.Duration dur = 6;
int32 i32 = 7;
sint32 s32 = 8;
sfixed32 sf32 = 9;
int64 i64 = 10;
sint64 s64 = 11;
sfixed64 sf64 = 12;
fixed32 f32 = 13;
fixed64 f64 = 14;
bool b = 15;
Enum e = 16;
// Invalid key fields:
repeated uint32 repeated = 17;
map<string, uint32> map = 18;
ExampleMessage msg = 19;
oneof sum {
uint32 oneof = 20;
}
// Invalid key fields:
repeated uint32 repeated = 17;
map<string, uint32> map = 18;
ExampleMessage msg = 19;
oneof sum {
uint32 oneof = 20;
}
message ExampleMessage {
string foo = 1;
int32 bar = 2;
}
message ExampleMessage {
string foo = 1;
int32 bar = 2;
}
}
enum Enum {
ENUM_UNSPECIFIED = 0;
ENUM_ONE = 1;
ENUM_TWO = 2;
ENUM_FIVE = 5;
ENUM_NEG_THREE = -3;
ENUM_ONE = 1;
ENUM_TWO = 2;
ENUM_FIVE = 5;
ENUM_NEG_THREE = -3;
}
message ExampleAutoIncrementTable {
@@ -81,8 +81,8 @@ message ExampleAutoIncrementTable {
};
uint64 id = 1;
string x = 2;
int32 y = 3;
string x = 2;
int32 y = 3;
}
message ExampleSingleton {
@@ -100,9 +100,9 @@ message ExampleTimestamp {
index: {id: 1 fields: "ts"}
};
uint64 id = 1;
string name = 2;
google.protobuf.Timestamp ts = 3;
uint64 id = 1;
string name = 2;
google.protobuf.Timestamp ts = 3;
}
message SimpleExample {
@@ -112,8 +112,8 @@ message SimpleExample {
index: {id: 1, fields: "unique", unique: true}
};
string name = 1;
string unique = 2;
string name = 1;
string unique = 2;
string not_unique = 3;
}
+2 -2
View File
@@ -24,7 +24,7 @@ service Query {
option (google.api.http).get = "/cosmos/auth/v1beta1/accounts/{address}";
}
// AccountAddressByID returns account address based on account id
// AccountAddressByID returns account address based on account id
rpc AccountAddressByID(QueryAccountAddressByIDRequest) returns (QueryAccountAddressByIDResponse) {
option (google.api.http).get = "/cosmos/auth/v1beta1/address_by_id/{id}";
}
@@ -159,7 +159,7 @@ message AddressStringToBytesResponse {
}
// QueryAccountAddressByIDRequest is the request type for AccountAddressByID rpc method
message QueryAccountAddressByIDRequest{
message QueryAccountAddressByIDRequest {
int64 id = 1;
}
+9 -9
View File
@@ -21,15 +21,15 @@ service Msg {
//
// Since: cosmos-sdk 0.47
message MsgUpdateParams {
option (cosmos.msg.v1.signer) = "authority";
// authority is the address of the governance account.
string authority = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"];
// params defines the x/auth parameters to update.
//
// NOTE: All parameters must be supplied.
Params params = 2 [(gogoproto.nullable) = false];
option (cosmos.msg.v1.signer) = "authority";
// authority is the address of the governance account.
string authority = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"];
// params defines the x/auth parameters to update.
//
// NOTE: All parameters must be supplied.
Params params = 2 [(gogoproto.nullable) = false];
}
// MsgUpdateParamsResponse defines the response structure for executing a
+1 -2
View File
@@ -40,10 +40,9 @@ message MsgMultiSend {
option (gogoproto.equal) = false;
Input input = 1 [(gogoproto.nullable) = false];
Input input = 1 [(gogoproto.nullable) = false];
repeated Output outputs = 2 [(gogoproto.nullable) = false];
}
// MsgMultiSendResponse defines the Msg/MultiSend response type.
message MsgMultiSendResponse {}
@@ -7,10 +7,10 @@ option go_package = "github.com/cosmos/cosmos-sdk/snapshots/types";
// Snapshot contains Tendermint state sync snapshot info.
message Snapshot {
uint64 height = 1;
uint32 format = 2;
uint32 chunks = 3;
bytes hash = 4;
uint64 height = 1;
uint32 format = 2;
uint32 chunks = 3;
bytes hash = 4;
Metadata metadata = 5 [(gogoproto.nullable) = false];
}
@@ -25,12 +25,12 @@ message Metadata {
message SnapshotItem {
// item is the specific type of snapshot item.
oneof item {
SnapshotStoreItem store = 1;
SnapshotIAVLItem iavl = 2 [(gogoproto.customname) = "IAVL"];
SnapshotExtensionMeta extension = 3;
SnapshotExtensionPayload extension_payload = 4;
SnapshotKVItem kv = 5 [(gogoproto.customname) = "KV"];
SnapshotSchema schema = 6;
SnapshotStoreItem store = 1;
SnapshotIAVLItem iavl = 2 [(gogoproto.customname) = "IAVL"];
SnapshotExtensionMeta extension = 3;
SnapshotExtensionPayload extension_payload = 4;
SnapshotKVItem kv = 5 [(gogoproto.customname) = "KV"];
SnapshotSchema schema = 6;
}
}
@@ -45,7 +45,7 @@ message SnapshotStoreItem {
//
// Since: cosmos-sdk 0.46
message SnapshotIAVLItem {
bytes key = 1;
bytes key = 1;
bytes value = 2;
// version is block height
int64 version = 3;
@@ -57,7 +57,7 @@ message SnapshotIAVLItem {
//
// Since: cosmos-sdk 0.46
message SnapshotExtensionMeta {
string name = 1;
string name = 1;
uint32 format = 2;
}
@@ -72,13 +72,13 @@ message SnapshotExtensionPayload {
//
// Since: cosmos-sdk 0.46
message SnapshotKVItem {
bytes key = 1;
bytes key = 1;
bytes value = 2;
}
// SnapshotSchema is an exported schema of smt store
//
// Since: cosmos-sdk 0.46
message SnapshotSchema{
message SnapshotSchema {
repeated bytes keys = 1;
}
@@ -102,7 +102,7 @@ message GetBlockByHeightResponse {
.tendermint.types.BlockID block_id = 1;
// Deprecated: please use `sdk_block` instead
.tendermint.types.Block block = 2;
.tendermint.types.Block block = 2;
// Since: cosmos-sdk 0.47
Block sdk_block = 3;
@@ -116,7 +116,7 @@ message GetLatestBlockResponse {
.tendermint.types.BlockID block_id = 1;
// Deprecated: please use `sdk_block` instead
.tendermint.types.Block block = 2;
.tendermint.types.Block block = 2;
// Since: cosmos-sdk 0.47
Block sdk_block = 3;
@@ -41,7 +41,7 @@ message Header {
bytes last_results_hash = 12; // root hash of all results from the txs from the previous block
// consensus info
bytes evidence_hash = 13; // evidence included in the block
bytes evidence_hash = 13; // evidence included in the block
// proposer_address is the original block proposer address, formatted as a Bech32 string.
// In Tendermint, this type is `bytes`, but in the SDK, we convert it to a Bech32 string
+1 -1
View File
@@ -31,7 +31,7 @@ message Record {
// Item is a keyring item stored in a keyring backend.
// Local item
message Local {
google.protobuf.Any priv_key = 1;
google.protobuf.Any priv_key = 1;
}
// Ledger item
+5 -3
View File
@@ -12,9 +12,11 @@ message Module {
go_import: "github.com/cosmos/cosmos-sdk/x/group"
};
// max_execution_period defines the max duration after a proposal's voting period ends that members can send a MsgExec to execute the proposal.
// max_execution_period defines the max duration after a proposal's voting period ends that members can send a MsgExec
// to execute the proposal.
google.protobuf.Duration max_execution_period = 1 [(gogoproto.stdduration) = true, (gogoproto.nullable) = false];
// max_metadata_len defines the max length of the metadata bytes field for various entities within the group module. Defaults to 255 if not explicitly set.
// max_metadata_len defines the max length of the metadata bytes field for various entities within the group module.
// Defaults to 255 if not explicitly set.
uint64 max_metadata_len = 2;
}
-1
View File
@@ -28,7 +28,6 @@ message Member {
google.protobuf.Timestamp added_at = 4 [(gogoproto.nullable) = false, (gogoproto.stdtime) = true];
}
// MemberRequest represents a group member to be used in Msg server requests.
// Contrary to `Member`, it doesn't have any `added_at` field
// since this field cannot be set as part of requests.
+7 -7
View File
@@ -146,15 +146,15 @@ message MsgUndelegateResponse {
// MsgCancelUnbondingDelegation defines the SDK message for performing a cancel unbonding delegation for delegator
//
// Since: cosmos-sdk 0.46
message MsgCancelUnbondingDelegation{
option (cosmos.msg.v1.signer) = "delegator_address";
message MsgCancelUnbondingDelegation {
option (cosmos.msg.v1.signer) = "delegator_address";
option (gogoproto.equal) = false;
option (gogoproto.goproto_getters) = false;
string delegator_address = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"];
string validator_address = 2 [(cosmos_proto.scalar) = "cosmos.AddressString"];
// amount is always less than or equal to unbonding delegation entry balance
cosmos.base.v1beta1.Coin amount = 3 [(gogoproto.nullable) = false];
string delegator_address = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"];
string validator_address = 2 [(cosmos_proto.scalar) = "cosmos.AddressString"];
// amount is always less than or equal to unbonding delegation entry balance
cosmos.base.v1beta1.Coin amount = 3 [(gogoproto.nullable) = false];
// creation_height is the height which the unbonding took place.
int64 creation_height = 4;
}
@@ -162,4 +162,4 @@ message MsgCancelUnbondingDelegation{
// MsgCancelUnbondingDelegationResponse
//
// Since: cosmos-sdk 0.46
message MsgCancelUnbondingDelegationResponse{}
message MsgCancelUnbondingDelegationResponse {}
+4 -2
View File
@@ -10,9 +10,11 @@ message Module {
go_import: "github.com/cosmos/cosmos-sdk/x/auth/tx"
};
// skip_ante_handler defines whether the ante handler registration should be skipped in case an app wants to override this functionality.
// skip_ante_handler defines whether the ante handler registration should be skipped in case an app wants to override
// this functionality.
bool skip_ante_handler = 1;
// skip_post_handler defines whether the post handler registration should be skipped in case an app wants to override this functionality.
// skip_post_handler defines whether the post handler registration should be skipped in case an app wants to override
// this functionality.
bool skip_post_handler = 2;
}
@@ -42,7 +42,7 @@ enum SignMode {
// SIGN_MODE_EIP_191 specifies the sign mode for EIP 191 signing on the Cosmos
// SDK. Ref: https://eips.ethereum.org/EIPS/eip-191
//
//
// Currently, SIGN_MODE_EIP_191 is registered as a SignMode enum variant,
// but is not implemented on the SDK by default. To enable EIP-191, you need
// to pass a custom `TxConfig` that has an implementation of
+7 -6
View File
@@ -8,7 +8,7 @@ import "cosmos/base/query/v1beta1/pagination.proto";
import "tendermint/types/block.proto";
import "tendermint/types/types.proto";
option go_package = "github.com/cosmos/cosmos-sdk/types/tx";
option go_package = "github.com/cosmos/cosmos-sdk/types/tx";
// Service defines a gRPC service for interacting with transactions.
service Service {
@@ -49,8 +49,9 @@ message GetTxsEventRequest {
repeated string events = 1;
// pagination defines a pagination for the request.
// Deprecated post v0.46.x: use page and limit instead.
cosmos.base.query.v1beta1.PageRequest pagination = 2 [deprecated = true];;
OrderBy order_by = 3;
cosmos.base.query.v1beta1.PageRequest pagination = 2 [deprecated = true];
;
OrderBy order_by = 3;
// page is the page number to query, starts at 1. If not provided, will default to first page.
uint64 page = 4;
// limit is the total number of results to be returned in the result page.
@@ -164,9 +165,9 @@ message GetBlockWithTxsRequest {
// Since: cosmos-sdk 0.45.2
message GetBlockWithTxsResponse {
// txs are the transactions in the block.
repeated cosmos.tx.v1beta1.Tx txs = 1;
.tendermint.types.BlockID block_id = 2;
.tendermint.types.Block block = 3;
repeated cosmos.tx.v1beta1.Tx txs = 1;
.tendermint.types.BlockID block_id = 2;
.tendermint.types.Block block = 3;
// pagination defines a pagination for the response.
cosmos.base.query.v1beta1.PageResponse pagination = 4;
}