diff --git a/api/cosmos/group/module/v1/module.pulsar.go b/api/cosmos/group/module/v1/module.pulsar.go index 93c72d8933..0925cb2ab0 100644 --- a/api/cosmos/group/module/v1/module.pulsar.go +++ b/api/cosmos/group/module/v1/module.pulsar.go @@ -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"` } diff --git a/api/cosmos/tx/module/v1/module.pulsar.go b/api/cosmos/tx/module/v1/module.pulsar.go index bdbf93e4a8..12c5bb6689 100644 --- a/api/cosmos/tx/module/v1/module.pulsar.go +++ b/api/cosmos/tx/module/v1/module.pulsar.go @@ -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"` } diff --git a/client/v2/internal/testpb/query.proto b/client/v2/internal/testpb/query.proto index 062953a358..5bb49a0b2a 100644 --- a/client/v2/internal/testpb/query.proto +++ b/client/v2/internal/testpb/query.proto @@ -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 { diff --git a/core/internal/testpb/test.proto b/core/internal/testpb/test.proto index 00aa0bd6c7..fe6535a2d4 100644 --- a/core/internal/testpb/test.proto +++ b/core/internal/testpb/test.proto @@ -31,5 +31,6 @@ message TestUnregisteredModule { message TestNoModuleOptionModule {} message TestNoGoImportModule { - option (cosmos.app.v1alpha1.module) = {}; + option (cosmos.app.v1alpha1.module) = { + }; } diff --git a/orm/internal/testpb/bank.proto b/orm/internal/testpb/bank.proto index 8461b5a99c..87ac25b159 100644 --- a/orm/internal/testpb/bank.proto +++ b/orm/internal/testpb/bank.proto @@ -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; } diff --git a/orm/internal/testpb/test_schema.proto b/orm/internal/testpb/test_schema.proto index ca2137531c..bec176b08f 100644 --- a/orm/internal/testpb/test_schema.proto +++ b/orm/internal/testpb/test_schema.proto @@ -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 map = 18; - ExampleMessage msg = 19; - oneof sum { - uint32 oneof = 20; - } +// Invalid key fields: +repeated uint32 repeated = 17; +map 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; } diff --git a/proto/cosmos/auth/v1beta1/query.proto b/proto/cosmos/auth/v1beta1/query.proto index d09c63c113..833cef82bd 100644 --- a/proto/cosmos/auth/v1beta1/query.proto +++ b/proto/cosmos/auth/v1beta1/query.proto @@ -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; } diff --git a/proto/cosmos/auth/v1beta1/tx.proto b/proto/cosmos/auth/v1beta1/tx.proto index 8e3d114b73..deafb29fb1 100644 --- a/proto/cosmos/auth/v1beta1/tx.proto +++ b/proto/cosmos/auth/v1beta1/tx.proto @@ -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 diff --git a/proto/cosmos/bank/v1beta1/tx.proto b/proto/cosmos/bank/v1beta1/tx.proto index acb7ad6a82..0eda481792 100644 --- a/proto/cosmos/bank/v1beta1/tx.proto +++ b/proto/cosmos/bank/v1beta1/tx.proto @@ -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 {} - diff --git a/proto/cosmos/base/snapshots/v1beta1/snapshot.proto b/proto/cosmos/base/snapshots/v1beta1/snapshot.proto index 022f8e0672..5dba369fd4 100644 --- a/proto/cosmos/base/snapshots/v1beta1/snapshot.proto +++ b/proto/cosmos/base/snapshots/v1beta1/snapshot.proto @@ -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; } diff --git a/proto/cosmos/base/tendermint/v1beta1/query.proto b/proto/cosmos/base/tendermint/v1beta1/query.proto index dde13f7ddb..1cd551d866 100644 --- a/proto/cosmos/base/tendermint/v1beta1/query.proto +++ b/proto/cosmos/base/tendermint/v1beta1/query.proto @@ -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; diff --git a/proto/cosmos/base/tendermint/v1beta1/types.proto b/proto/cosmos/base/tendermint/v1beta1/types.proto index 9127b5f108..3d6c04c26a 100644 --- a/proto/cosmos/base/tendermint/v1beta1/types.proto +++ b/proto/cosmos/base/tendermint/v1beta1/types.proto @@ -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 diff --git a/proto/cosmos/crypto/keyring/v1/record.proto b/proto/cosmos/crypto/keyring/v1/record.proto index ca70aa984a..14c6da63eb 100644 --- a/proto/cosmos/crypto/keyring/v1/record.proto +++ b/proto/cosmos/crypto/keyring/v1/record.proto @@ -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 diff --git a/proto/cosmos/group/module/v1/module.proto b/proto/cosmos/group/module/v1/module.proto index 390fb5d1b0..fb70f87385 100644 --- a/proto/cosmos/group/module/v1/module.proto +++ b/proto/cosmos/group/module/v1/module.proto @@ -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; } diff --git a/proto/cosmos/group/v1/types.proto b/proto/cosmos/group/v1/types.proto index 63e20c8f6f..837271542c 100644 --- a/proto/cosmos/group/v1/types.proto +++ b/proto/cosmos/group/v1/types.proto @@ -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. diff --git a/proto/cosmos/staking/v1beta1/tx.proto b/proto/cosmos/staking/v1beta1/tx.proto index ca8f76df19..8226dd3099 100644 --- a/proto/cosmos/staking/v1beta1/tx.proto +++ b/proto/cosmos/staking/v1beta1/tx.proto @@ -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 {} diff --git a/proto/cosmos/tx/module/v1/module.proto b/proto/cosmos/tx/module/v1/module.proto index 4196b1075a..12bc19745a 100644 --- a/proto/cosmos/tx/module/v1/module.proto +++ b/proto/cosmos/tx/module/v1/module.proto @@ -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; } \ No newline at end of file diff --git a/proto/cosmos/tx/signing/v1beta1/signing.proto b/proto/cosmos/tx/signing/v1beta1/signing.proto index 13fa03934b..12d5868ba8 100644 --- a/proto/cosmos/tx/signing/v1beta1/signing.proto +++ b/proto/cosmos/tx/signing/v1beta1/signing.proto @@ -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 diff --git a/proto/cosmos/tx/v1beta1/service.proto b/proto/cosmos/tx/v1beta1/service.proto index 4b008ae758..4dd9b53540 100644 --- a/proto/cosmos/tx/v1beta1/service.proto +++ b/proto/cosmos/tx/v1beta1/service.proto @@ -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; } \ No newline at end of file