From cf1a57367935d1190494a83bb9c838cbe18fbfef Mon Sep 17 00:00:00 2001 From: Julien Robert Date: Wed, 24 May 2023 21:58:45 +0200 Subject: [PATCH] chore: set correct eden version number (#16281) --- CHANGELOG.md | 6 - RELEASE_PROCESS.md | 6 +- UPGRADING.md | 6 +- api/cosmos/bank/v1beta1/query.pulsar.go | 2 +- api/cosmos/distribution/v1beta1/tx.pulsar.go | 4 +- api/cosmos/distribution/v1beta1/tx_grpc.pb.go | 4 +- api/cosmos/gov/v1/genesis.pulsar.go | 2 +- api/cosmos/gov/v1/gov.pulsar.go | 10 +- api/cosmos/gov/v1/tx.pulsar.go | 6 +- api/cosmos/gov/v1/tx_grpc.pb.go | 4 +- api/cosmos/staking/v1beta1/tx.pulsar.go | 2 +- api/cosmos/tx/v1beta1/service.pulsar.go | 2 +- client/docs/swagger-ui/swagger.yaml | 2690 +++++++++++++---- .../architecture/adr-050-sign-mode-textual.md | 9 +- proto/cosmos/bank/v1beta1/query.proto | 2 +- proto/cosmos/distribution/v1beta1/tx.proto | 6 +- proto/cosmos/gov/v1/genesis.proto | 2 +- proto/cosmos/gov/v1/gov.proto | 10 +- proto/cosmos/gov/v1/tx.proto | 8 +- proto/cosmos/staking/v1beta1/tx.proto | 2 +- proto/cosmos/tx/v1beta1/service.proto | 2 +- simapp/go.mod | 2 +- simapp/upgrades.go | 6 +- tests/go.mod | 2 +- tools/confix/migrations.go | 2 +- tools/cosmovisor/README.md | 2 +- types/tx/service.pb.go | 2 +- x/README.md | 2 +- x/bank/types/query.pb.go | 2 +- x/distribution/types/tx.pb.go | 8 +- x/genutil/client/cli/validate_genesis_test.go | 2 +- x/gov/migrations/v5/store.go | 2 +- x/gov/types/v1/genesis.pb.go | 2 +- x/gov/types/v1/gov.pb.go | 10 +- x/gov/types/v1/tx.pb.go | 10 +- x/staking/types/tx.pb.go | 2 +- 36 files changed, 2220 insertions(+), 621 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 5e8338a6c5..c4b5a5e24e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -216,17 +216,11 @@ Ref: https://keepachangelog.com/en/1.0.0/ * (x/gov) [#16171](https://github.com/cosmos/cosmos-sdk/pull/16171) Use collections for proposal state management (part 1): * Removed: keeper: `GetProposal`, `UnmarshalProposal`, `MarshalProposal`, `IterateProposal`, `GetProposal`, `GetProposalFiltered`, `GetProposals`, `GetProposalID`, `SetProposalID` * Remove: errors unused errors - * (sims) [#16155](https://github.com/cosmos/cosmos-sdk/pull/16155) * `simulation.NewOperationMsg` now marshals the operation msg as proto bytes instead of legacy amino JSON bytes. * `simulation.NewOperationMsg` is now 2-arity instead of 3-arity with the obsolete argument `codec.ProtoCodec` removed. * The field `OperationMsg.Msg` is now of type `[]byte` instead of `json.RawMessage`. * (cli) [#16209](https://github.com/cosmos/cosmos-sdk/pull/16209) Add API `StartCmdWithOptions` to create customized start command. - - * `simulation.NewOperationMsg` now marshals the operation msg as proto bytes instead of legacy amino JSON bytes. - * `simulation.NewOperationMsg` is now 2-arity instead of 3-arity with the obsolete argument `codec.ProtoCodec` removed. - * The field `OperationMsg.Msg` is now of type `[]byte` instead of `json.RawMessage`. -* (cli) [#16209](https://github.com/cosmos/cosmos-sdk/pull/16209) Add API `StartCmdWithOptions` to create customized start command. * (x/distribution) [#16211](https://github.com/cosmos/cosmos-sdk/pull/16211) Use collections for params state management. ### Client Breaking Changes diff --git a/RELEASE_PROCESS.md b/RELEASE_PROCESS.md index 3b0da040a0..2d79204086 100644 --- a/RELEASE_PROCESS.md +++ b/RELEASE_PROCESS.md @@ -2,6 +2,8 @@ This document outlines the process for releasing a new version of Cosmos SDK, which involves major release and patch releases as well as maintenance for the major release. +> **Note, the Cosmos SDK went directly from v0.47 to v0.50 and skipped the v0.48 and v0.49 versions.** + ## Major Release Procedure A _major release_ is an increment of the first number (eg: `v1.2` → `v2.0.0`) or the _point number_ (eg: `v1.1.0 → v1.2.0`, also called _point release_). Each major release opens a _stable release series_ and receives updates outlined in the [Major Release Maintenance](#major-release-maintenance)_section. @@ -79,8 +81,8 @@ Major Release series is maintained in compliance with the **Stable Release Polic Only the following major release series have a stable release status: -* **0.46** is the previous major release and is supported until the release of **0.48.0**. A fairly strict **bugfix-only** rule applies to pull requests that are requested to be included into a not latest stable point-release. -* **0.47** is the last major release and is supported until the release of **0.49.0**. +* **0.46** is the previous major release and is supported until the release of **0.50.0**. A fairly strict **bugfix-only** rule applies to pull requests that are requested to be included into a not latest stable point-release. +* **0.47** is the last major release and is supported until the release of **0.51.0**. The SDK team maintains the last two major releases, any other major release is considered to have reached end of life. The SDK team will not backport any bug fixes to releases that are not supported. diff --git a/UPGRADING.md b/UPGRADING.md index cb0205c0e6..d55480a3e2 100644 --- a/UPGRADING.md +++ b/UPGRADING.md @@ -32,7 +32,7 @@ Additionally, the SDK is starting its abstraction from CometBFT Go types thoroug A new tool have been created for migrating configuration of the SDK. Use the following command to migrate your configuration: ```bash -simd config migrate v0.48 +simd config migrate v0.50 ``` More information about [confix](https://docs.cosmos.network/main/tooling/confix). @@ -245,7 +245,7 @@ Due to the import changes, this is a breaking change. Chains need to remove **en * Run `make proto-gen` Other than that, the migration should be seamless. -On the SDK side, clean-up of variables, functions to reflect the new name will only happen from v0.48 (part 2). +On the SDK side, clean-up of variables, functions to reflect the new name will only happen from v0.50 (part 2). Note: It is possible that these steps must first be performed by your dependencies before you can perform them on your own codebase. @@ -402,7 +402,7 @@ In case a module does not follow the standard message path, (e.g. IBC), it is ad The `params` module was deprecated since v0.46. The Cosmos SDK has migrated away from `x/params` for its own modules. Cosmos SDK modules now store their parameters directly in its repective modules. -The `params` module will be removed in `v0.48`, as mentioned [in v0.46 release](https://github.com/cosmos/cosmos-sdk/blob/v0.46.1/UPGRADING.md#xparams). It is strongly encouraged to migrate away from `x/params` before `v0.48`. +The `params` module will be removed in `v0.50`, as mentioned [in v0.46 release](https://github.com/cosmos/cosmos-sdk/blob/v0.46.1/UPGRADING.md#xparams). It is strongly encouraged to migrate away from `x/params` before `v0.50`. When performing a chain migration, the params table must be initizalied manually. This was done in the modules keepers in previous versions. Have a look at `simapp.RegisterUpgradeHandlers()` for an example. diff --git a/api/cosmos/bank/v1beta1/query.pulsar.go b/api/cosmos/bank/v1beta1/query.pulsar.go index 354cbdfb12..0442d8bc49 100644 --- a/api/cosmos/bank/v1beta1/query.pulsar.go +++ b/api/cosmos/bank/v1beta1/query.pulsar.go @@ -11387,7 +11387,7 @@ type QueryAllBalancesRequest struct { Pagination *v1beta11.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` // resolve_denom is the flag to resolve the denom into a human-readable form from the metadata. // - // Since: cosmos-sdk 0.48 + // Since: cosmos-sdk 0.50 ResolveDenom bool `protobuf:"varint,3,opt,name=resolve_denom,json=resolveDenom,proto3" json:"resolve_denom,omitempty"` } diff --git a/api/cosmos/distribution/v1beta1/tx.pulsar.go b/api/cosmos/distribution/v1beta1/tx.pulsar.go index fae5ee9243..a6a38d365a 100644 --- a/api/cosmos/distribution/v1beta1/tx.pulsar.go +++ b/api/cosmos/distribution/v1beta1/tx.pulsar.go @@ -6960,7 +6960,7 @@ func (*MsgCommunityPoolSpendResponse) Descriptor() ([]byte, []int) { // DepositValidatorRewardsPool defines the request structure to provide // additional rewards to delegators from a specific validator. // -// Since: cosmos-sdk 0.48 +// Since: cosmos-sdk 0.50 type MsgDepositValidatorRewardsPool struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -7015,7 +7015,7 @@ func (x *MsgDepositValidatorRewardsPool) GetAmount() []*v1beta1.Coin { // MsgDepositValidatorRewardsPoolResponse defines the response to executing a // MsgDepositValidatorRewardsPool message. // -// Since: cosmos-sdk 0.48 +// Since: cosmos-sdk 0.50 type MsgDepositValidatorRewardsPoolResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache diff --git a/api/cosmos/distribution/v1beta1/tx_grpc.pb.go b/api/cosmos/distribution/v1beta1/tx_grpc.pb.go index 1744ca1c14..a11aa3e53d 100644 --- a/api/cosmos/distribution/v1beta1/tx_grpc.pb.go +++ b/api/cosmos/distribution/v1beta1/tx_grpc.pb.go @@ -59,7 +59,7 @@ type MsgClient interface { // DepositValidatorRewardsPool defines a method to provide additional rewards // to delegators to a specific validator. // - // Since: cosmos-sdk 0.48 + // Since: cosmos-sdk 0.50 DepositValidatorRewardsPool(ctx context.Context, in *MsgDepositValidatorRewardsPool, opts ...grpc.CallOption) (*MsgDepositValidatorRewardsPoolResponse, error) } @@ -165,7 +165,7 @@ type MsgServer interface { // DepositValidatorRewardsPool defines a method to provide additional rewards // to delegators to a specific validator. // - // Since: cosmos-sdk 0.48 + // Since: cosmos-sdk 0.50 DepositValidatorRewardsPool(context.Context, *MsgDepositValidatorRewardsPool) (*MsgDepositValidatorRewardsPoolResponse, error) mustEmbedUnimplementedMsgServer() } diff --git a/api/cosmos/gov/v1/genesis.pulsar.go b/api/cosmos/gov/v1/genesis.pulsar.go index fe59acc078..3f93240677 100644 --- a/api/cosmos/gov/v1/genesis.pulsar.go +++ b/api/cosmos/gov/v1/genesis.pulsar.go @@ -1263,7 +1263,7 @@ type GenesisState struct { // There are no amendments, to go outside of scope, just fork. // constitution is an immutable string in genesis for a chain builder to lay out their vision, ideas and ideals. // - // Since: cosmos-sdk 0.48 + // Since: cosmos-sdk 0.50 Constitution string `protobuf:"bytes,9,opt,name=constitution,proto3" json:"constitution,omitempty"` } diff --git a/api/cosmos/gov/v1/gov.pulsar.go b/api/cosmos/gov/v1/gov.pulsar.go index b50d87f0e7..8400965738 100644 --- a/api/cosmos/gov/v1/gov.pulsar.go +++ b/api/cosmos/gov/v1/gov.pulsar.go @@ -7134,7 +7134,7 @@ type Proposal struct { Proposer string `protobuf:"bytes,13,opt,name=proposer,proto3" json:"proposer,omitempty"` // expedited defines if the proposal is expedited // - // Since: cosmos-sdk 0.48 + // Since: cosmos-sdk 0.50 Expedited bool `protobuf:"varint,14,opt,name=expedited,proto3" json:"expedited,omitempty"` } @@ -7560,20 +7560,20 @@ type Params struct { MinInitialDepositRatio string `protobuf:"bytes,7,opt,name=min_initial_deposit_ratio,json=minInitialDepositRatio,proto3" json:"min_initial_deposit_ratio,omitempty"` // The cancel ratio which will not be returned back to the depositors when a proposal is cancelled. // - // Since: cosmos-sdk 0.48 + // Since: cosmos-sdk 0.50 ProposalCancelRatio string `protobuf:"bytes,8,opt,name=proposal_cancel_ratio,json=proposalCancelRatio,proto3" json:"proposal_cancel_ratio,omitempty"` // The address which will receive (proposal_cancel_ratio * deposit) proposal deposits. // If empty, the (proposal_cancel_ratio * deposit) proposal deposits will be burned. // - // Since: cosmos-sdk 0.48 + // Since: cosmos-sdk 0.50 ProposalCancelDest string `protobuf:"bytes,9,opt,name=proposal_cancel_dest,json=proposalCancelDest,proto3" json:"proposal_cancel_dest,omitempty"` // Duration of the voting period of an expedited proposal. // - // Since: cosmos-sdk 0.48 + // Since: cosmos-sdk 0.50 ExpeditedVotingPeriod *durationpb.Duration `protobuf:"bytes,10,opt,name=expedited_voting_period,json=expeditedVotingPeriod,proto3" json:"expedited_voting_period,omitempty"` // Minimum proportion of Yes votes for proposal to pass. Default value: 0.67. // - // Since: cosmos-sdk 0.48 + // Since: cosmos-sdk 0.50 ExpeditedThreshold string `protobuf:"bytes,11,opt,name=expedited_threshold,json=expeditedThreshold,proto3" json:"expedited_threshold,omitempty"` // Minimum expedited deposit for a proposal to enter voting period. ExpeditedMinDeposit []*v1beta1.Coin `protobuf:"bytes,12,rep,name=expedited_min_deposit,json=expeditedMinDeposit,proto3" json:"expedited_min_deposit,omitempty"` diff --git a/api/cosmos/gov/v1/tx.pulsar.go b/api/cosmos/gov/v1/tx.pulsar.go index 90f43ced55..121180aa3e 100644 --- a/api/cosmos/gov/v1/tx.pulsar.go +++ b/api/cosmos/gov/v1/tx.pulsar.go @@ -7038,7 +7038,7 @@ type MsgSubmitProposal struct { Summary string `protobuf:"bytes,6,opt,name=summary,proto3" json:"summary,omitempty"` // expedided defines if the proposal is expedited or not // - // Since: cosmos-sdk 0.48 + // Since: cosmos-sdk 0.50 Expedited bool `protobuf:"varint,7,opt,name=expedited,proto3" json:"expedited,omitempty"` } @@ -7568,7 +7568,7 @@ func (*MsgUpdateParamsResponse) Descriptor() ([]byte, []int) { // MsgCancelProposal is the Msg/CancelProposal request type. // -// Since: cosmos-sdk 0.48 +// Since: cosmos-sdk 0.50 type MsgCancelProposal struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -7615,7 +7615,7 @@ func (x *MsgCancelProposal) GetProposer() string { // MsgCancelProposalResponse defines the response structure for executing a // MsgCancelProposal message. // -// Since: cosmos-sdk 0.48 +// Since: cosmos-sdk 0.50 type MsgCancelProposalResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache diff --git a/api/cosmos/gov/v1/tx_grpc.pb.go b/api/cosmos/gov/v1/tx_grpc.pb.go index 3c3da46588..4f77b03d61 100644 --- a/api/cosmos/gov/v1/tx_grpc.pb.go +++ b/api/cosmos/gov/v1/tx_grpc.pb.go @@ -52,7 +52,7 @@ type MsgClient interface { UpdateParams(ctx context.Context, in *MsgUpdateParams, opts ...grpc.CallOption) (*MsgUpdateParamsResponse, error) // CancelProposal defines a method to cancel governance proposal // - // Since: cosmos-sdk 0.48 + // Since: cosmos-sdk 0.50 CancelProposal(ctx context.Context, in *MsgCancelProposal, opts ...grpc.CallOption) (*MsgCancelProposalResponse, error) } @@ -149,7 +149,7 @@ type MsgServer interface { UpdateParams(context.Context, *MsgUpdateParams) (*MsgUpdateParamsResponse, error) // CancelProposal defines a method to cancel governance proposal // - // Since: cosmos-sdk 0.48 + // Since: cosmos-sdk 0.50 CancelProposal(context.Context, *MsgCancelProposal) (*MsgCancelProposalResponse, error) mustEmbedUnimplementedMsgServer() } diff --git a/api/cosmos/staking/v1beta1/tx.pulsar.go b/api/cosmos/staking/v1beta1/tx.pulsar.go index 564f8e96df..39cb6d1aca 100644 --- a/api/cosmos/staking/v1beta1/tx.pulsar.go +++ b/api/cosmos/staking/v1beta1/tx.pulsar.go @@ -7562,7 +7562,7 @@ type MsgUndelegateResponse struct { CompletionTime *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=completion_time,json=completionTime,proto3" json:"completion_time,omitempty"` // amount returns the amount of undelegated coins // - // Since: cosmos-sdk 0.48 + // Since: cosmos-sdk 0.50 Amount *v1beta1.Coin `protobuf:"bytes,2,opt,name=amount,proto3" json:"amount,omitempty"` } diff --git a/api/cosmos/tx/v1beta1/service.pulsar.go b/api/cosmos/tx/v1beta1/service.pulsar.go index af2de060d8..dd89b9b04c 100644 --- a/api/cosmos/tx/v1beta1/service.pulsar.go +++ b/api/cosmos/tx/v1beta1/service.pulsar.go @@ -9166,7 +9166,7 @@ type GetTxsEventRequest struct { // query defines the transaction event query that is proxied to Tendermint's // TxSearch RPC method. The query must be valid. // - // Since Cosmos SDK 0.48 + // Since cosmos-sdk 0.50 Query string `protobuf:"bytes,6,opt,name=query,proto3" json:"query,omitempty"` } diff --git a/client/docs/swagger-ui/swagger.yaml b/client/docs/swagger-ui/swagger.yaml index b14f03efbb..3315b78ff1 100644 --- a/client/docs/swagger-ui/swagger.yaml +++ b/client/docs/swagger-ui/swagger.yaml @@ -120,6 +120,10 @@ paths: if (any.is(Foo.class)) { foo = any.unpack(Foo.class); } + // or ... + if (any.isSameTypeAs(Foo.getDefaultInstance())) { + foo = any.unpack(Foo.getDefaultInstance()); + } Example 3: Pack and unpack a message in Python. @@ -159,7 +163,6 @@ paths: name "y.z". - JSON @@ -321,6 +324,10 @@ paths: if (any.is(Foo.class)) { foo = any.unpack(Foo.class); } + // or ... + if (any.isSameTypeAs(Foo.getDefaultInstance())) { + foo = any.unpack(Foo.getDefaultInstance()); + } Example 3: Pack and unpack a message in Python. @@ -360,7 +367,6 @@ paths: name "y.z". - JSON @@ -526,6 +532,10 @@ paths: if (any.is(Foo.class)) { foo = any.unpack(Foo.class); } + // or ... + if (any.isSameTypeAs(Foo.getDefaultInstance())) { + foo = any.unpack(Foo.getDefaultInstance()); + } Example 3: Pack and unpack a message in Python. @@ -565,7 +575,6 @@ paths: name "y.z". - JSON @@ -743,6 +752,10 @@ paths: if (any.is(Foo.class)) { foo = any.unpack(Foo.class); } + // or ... + if (any.isSameTypeAs(Foo.getDefaultInstance())) { + foo = any.unpack(Foo.getDefaultInstance()); + } Example 3: Pack and unpack a message in Python. @@ -782,7 +795,6 @@ paths: name "y.z". - JSON @@ -988,6 +1000,10 @@ paths: if (any.is(Foo.class)) { foo = any.unpack(Foo.class); } + // or ... + if (any.isSameTypeAs(Foo.getDefaultInstance())) { + foo = any.unpack(Foo.getDefaultInstance()); + } Example 3: Pack and unpack a message in Python. @@ -1027,7 +1043,6 @@ paths: name "y.z". - JSON @@ -1179,6 +1194,10 @@ paths: if (any.is(Foo.class)) { foo = any.unpack(Foo.class); } + // or ... + if (any.isSameTypeAs(Foo.getDefaultInstance())) { + foo = any.unpack(Foo.getDefaultInstance()); + } Example 3: Pack and unpack a message in Python. @@ -1218,7 +1237,6 @@ paths: name "y.z". - JSON @@ -1395,6 +1413,10 @@ paths: if (any.is(Foo.class)) { foo = any.unpack(Foo.class); } + // or ... + if (any.isSameTypeAs(Foo.getDefaultInstance())) { + foo = any.unpack(Foo.getDefaultInstance()); + } Example 3: Pack and unpack a message in Python. @@ -1434,7 +1456,6 @@ paths: name "y.z". - JSON @@ -1628,6 +1649,10 @@ paths: if (any.is(Foo.class)) { foo = any.unpack(Foo.class); } + // or ... + if (any.isSameTypeAs(Foo.getDefaultInstance())) { + foo = any.unpack(Foo.getDefaultInstance()); + } Example 3: Pack and unpack a message in Python. @@ -1667,7 +1692,6 @@ paths: name "y.z". - JSON @@ -1840,6 +1864,10 @@ paths: if (any.is(Foo.class)) { foo = any.unpack(Foo.class); } + // or ... + if (any.isSameTypeAs(Foo.getDefaultInstance())) { + foo = any.unpack(Foo.getDefaultInstance()); + } Example 3: Pack and unpack a message in Python. @@ -1879,7 +1907,6 @@ paths: name "y.z". - JSON @@ -2059,6 +2086,10 @@ paths: if (any.is(Foo.class)) { foo = any.unpack(Foo.class); } + // or ... + if (any.isSameTypeAs(Foo.getDefaultInstance())) { + foo = any.unpack(Foo.getDefaultInstance()); + } Example 3: Pack and unpack a message in Python. @@ -2098,7 +2129,6 @@ paths: name "y.z". - JSON @@ -2256,6 +2286,10 @@ paths: if (any.is(Foo.class)) { foo = any.unpack(Foo.class); } + // or ... + if (any.isSameTypeAs(Foo.getDefaultInstance())) { + foo = any.unpack(Foo.getDefaultInstance()); + } Example 3: Pack and unpack a message in Python. @@ -2295,7 +2329,6 @@ paths: name "y.z". - JSON @@ -2453,6 +2486,10 @@ paths: if (any.is(Foo.class)) { foo = any.unpack(Foo.class); } + // or ... + if (any.isSameTypeAs(Foo.getDefaultInstance())) { + foo = any.unpack(Foo.getDefaultInstance()); + } Example 3: Pack and unpack a message in Python. @@ -2492,7 +2529,6 @@ paths: name "y.z". - JSON @@ -2641,6 +2677,10 @@ paths: if (any.is(Foo.class)) { foo = any.unpack(Foo.class); } + // or ... + if (any.isSameTypeAs(Foo.getDefaultInstance())) { + foo = any.unpack(Foo.getDefaultInstance()); + } Example 3: Pack and unpack a message in Python. @@ -2680,7 +2720,6 @@ paths: name "y.z". - JSON @@ -2832,6 +2871,10 @@ paths: if (any.is(Foo.class)) { foo = any.unpack(Foo.class); } + // or ... + if (any.isSameTypeAs(Foo.getDefaultInstance())) { + foo = any.unpack(Foo.getDefaultInstance()); + } Example 3: Pack and unpack a message in Python. @@ -2871,7 +2914,6 @@ paths: name "y.z". - JSON @@ -3062,6 +3104,10 @@ paths: if (any.is(Foo.class)) { foo = any.unpack(Foo.class); } + // or ... + if (any.isSameTypeAs(Foo.getDefaultInstance())) { + foo = any.unpack(Foo.getDefaultInstance()); + } Example 3: Pack and unpack a message in Python. @@ -3101,7 +3147,6 @@ paths: name "y.z". - JSON @@ -3289,7 +3334,7 @@ paths: form from the metadata. - Since: cosmos-sdk 0.48 + Since: cosmos-sdk 0.50 in: query required: false type: boolean @@ -4730,6 +4775,10 @@ paths: if (any.is(Foo.class)) { foo = any.unpack(Foo.class); } + // or ... + if (any.isSameTypeAs(Foo.getDefaultInstance())) { + foo = any.unpack(Foo.getDefaultInstance()); + } Example 3: Pack and unpack a message in Python. @@ -4769,7 +4818,6 @@ paths: name "y.z". - JSON @@ -4936,7 +4984,7 @@ paths: proposer_address: type: string format: byte - description: Header defines the structure of a Tendermint block header. + description: Header defines the structure of a block header. data: type: object properties: @@ -5019,9 +5067,32 @@ paths: signature: type: string format: byte + description: >- + Vote signature by the validator if they + participated in consensus for the + + associated block. + extension: + type: string + format: byte + description: >- + Vote extension provided by the + application. Only valid for precommit + + messages. + extension_signature: + type: string + format: byte + description: >- + Vote extension signature by the + validator if they participated in + + consensus for the associated block. + + Only valid for precommit messages. description: >- - Vote represents a prevote, precommit, or - commit vote from validators for + Vote represents a prevote or precommit vote + from validators for consensus. vote_b: @@ -5076,9 +5147,32 @@ paths: signature: type: string format: byte + description: >- + Vote signature by the validator if they + participated in consensus for the + + associated block. + extension: + type: string + format: byte + description: >- + Vote extension provided by the + application. Only valid for precommit + + messages. + extension_signature: + type: string + format: byte + description: >- + Vote extension signature by the + validator if they participated in + + consensus for the associated block. + + Only valid for precommit messages. description: >- - Vote represents a prevote, precommit, or - commit vote from validators for + Vote represents a prevote or precommit vote + from validators for consensus. total_voting_power: @@ -5182,8 +5276,8 @@ paths: type: string format: byte description: >- - Header defines the structure of a - Tendermint block header. + Header defines the structure of a block + header. commit: type: object properties: @@ -5224,7 +5318,7 @@ paths: - BLOCK_ID_FLAG_NIL default: BLOCK_ID_FLAG_UNKNOWN title: >- - BlockIdFlag indicates which BlcokID the + BlockIdFlag indicates which BlockID the signature is for validator_address: type: string @@ -5264,7 +5358,7 @@ paths: format: byte title: >- PublicKey defines the keys available for - use with Tendermint Validators + use with Validators voting_power: type: string format: int64 @@ -5288,7 +5382,7 @@ paths: format: byte title: >- PublicKey defines the keys available for - use with Tendermint Validators + use with Validators voting_power: type: string format: int64 @@ -5320,7 +5414,7 @@ paths: format: byte title: >- PublicKey defines the keys available for - use with Tendermint Validators + use with Validators voting_power: type: string format: int64 @@ -5377,7 +5471,7 @@ paths: - BLOCK_ID_FLAG_NIL default: BLOCK_ID_FLAG_UNKNOWN title: >- - BlockIdFlag indicates which BlcokID the + BlockIdFlag indicates which BlockID the signature is for validator_address: type: string @@ -5564,9 +5658,32 @@ paths: signature: type: string format: byte + description: >- + Vote signature by the validator if they + participated in consensus for the + + associated block. + extension: + type: string + format: byte + description: >- + Vote extension provided by the + application. Only valid for precommit + + messages. + extension_signature: + type: string + format: byte + description: >- + Vote extension signature by the + validator if they participated in + + consensus for the associated block. + + Only valid for precommit messages. description: >- - Vote represents a prevote, precommit, or - commit vote from validators for + Vote represents a prevote or precommit vote + from validators for consensus. vote_b: @@ -5621,9 +5738,32 @@ paths: signature: type: string format: byte + description: >- + Vote signature by the validator if they + participated in consensus for the + + associated block. + extension: + type: string + format: byte + description: >- + Vote extension provided by the + application. Only valid for precommit + + messages. + extension_signature: + type: string + format: byte + description: >- + Vote extension signature by the + validator if they participated in + + consensus for the associated block. + + Only valid for precommit messages. description: >- - Vote represents a prevote, precommit, or - commit vote from validators for + Vote represents a prevote or precommit vote + from validators for consensus. total_voting_power: @@ -5727,8 +5867,8 @@ paths: type: string format: byte description: >- - Header defines the structure of a - Tendermint block header. + Header defines the structure of a block + header. commit: type: object properties: @@ -5769,7 +5909,7 @@ paths: - BLOCK_ID_FLAG_NIL default: BLOCK_ID_FLAG_UNKNOWN title: >- - BlockIdFlag indicates which BlcokID the + BlockIdFlag indicates which BlockID the signature is for validator_address: type: string @@ -5809,7 +5949,7 @@ paths: format: byte title: >- PublicKey defines the keys available for - use with Tendermint Validators + use with Validators voting_power: type: string format: int64 @@ -5833,7 +5973,7 @@ paths: format: byte title: >- PublicKey defines the keys available for - use with Tendermint Validators + use with Validators voting_power: type: string format: int64 @@ -5865,7 +6005,7 @@ paths: format: byte title: >- PublicKey defines the keys available for - use with Tendermint Validators + use with Validators voting_power: type: string format: int64 @@ -5922,7 +6062,7 @@ paths: - BLOCK_ID_FLAG_NIL default: BLOCK_ID_FLAG_UNKNOWN title: >- - BlockIdFlag indicates which BlcokID the + BlockIdFlag indicates which BlockID the signature is for validator_address: type: string @@ -6060,6 +6200,10 @@ paths: if (any.is(Foo.class)) { foo = any.unpack(Foo.class); } + // or ... + if (any.isSameTypeAs(Foo.getDefaultInstance())) { + foo = any.unpack(Foo.getDefaultInstance()); + } Example 3: Pack and unpack a message in Python. @@ -6099,7 +6243,6 @@ paths: name "y.z". - JSON @@ -6247,7 +6390,7 @@ paths: proposer_address: type: string format: byte - description: Header defines the structure of a Tendermint block header. + description: Header defines the structure of a block header. data: type: object properties: @@ -6330,9 +6473,32 @@ paths: signature: type: string format: byte + description: >- + Vote signature by the validator if they + participated in consensus for the + + associated block. + extension: + type: string + format: byte + description: >- + Vote extension provided by the + application. Only valid for precommit + + messages. + extension_signature: + type: string + format: byte + description: >- + Vote extension signature by the + validator if they participated in + + consensus for the associated block. + + Only valid for precommit messages. description: >- - Vote represents a prevote, precommit, or - commit vote from validators for + Vote represents a prevote or precommit vote + from validators for consensus. vote_b: @@ -6387,9 +6553,32 @@ paths: signature: type: string format: byte + description: >- + Vote signature by the validator if they + participated in consensus for the + + associated block. + extension: + type: string + format: byte + description: >- + Vote extension provided by the + application. Only valid for precommit + + messages. + extension_signature: + type: string + format: byte + description: >- + Vote extension signature by the + validator if they participated in + + consensus for the associated block. + + Only valid for precommit messages. description: >- - Vote represents a prevote, precommit, or - commit vote from validators for + Vote represents a prevote or precommit vote + from validators for consensus. total_voting_power: @@ -6493,8 +6682,8 @@ paths: type: string format: byte description: >- - Header defines the structure of a - Tendermint block header. + Header defines the structure of a block + header. commit: type: object properties: @@ -6535,7 +6724,7 @@ paths: - BLOCK_ID_FLAG_NIL default: BLOCK_ID_FLAG_UNKNOWN title: >- - BlockIdFlag indicates which BlcokID the + BlockIdFlag indicates which BlockID the signature is for validator_address: type: string @@ -6575,7 +6764,7 @@ paths: format: byte title: >- PublicKey defines the keys available for - use with Tendermint Validators + use with Validators voting_power: type: string format: int64 @@ -6599,7 +6788,7 @@ paths: format: byte title: >- PublicKey defines the keys available for - use with Tendermint Validators + use with Validators voting_power: type: string format: int64 @@ -6631,7 +6820,7 @@ paths: format: byte title: >- PublicKey defines the keys available for - use with Tendermint Validators + use with Validators voting_power: type: string format: int64 @@ -6688,7 +6877,7 @@ paths: - BLOCK_ID_FLAG_NIL default: BLOCK_ID_FLAG_UNKNOWN title: >- - BlockIdFlag indicates which BlcokID the + BlockIdFlag indicates which BlockID the signature is for validator_address: type: string @@ -6875,9 +7064,32 @@ paths: signature: type: string format: byte + description: >- + Vote signature by the validator if they + participated in consensus for the + + associated block. + extension: + type: string + format: byte + description: >- + Vote extension provided by the + application. Only valid for precommit + + messages. + extension_signature: + type: string + format: byte + description: >- + Vote extension signature by the + validator if they participated in + + consensus for the associated block. + + Only valid for precommit messages. description: >- - Vote represents a prevote, precommit, or - commit vote from validators for + Vote represents a prevote or precommit vote + from validators for consensus. vote_b: @@ -6932,9 +7144,32 @@ paths: signature: type: string format: byte + description: >- + Vote signature by the validator if they + participated in consensus for the + + associated block. + extension: + type: string + format: byte + description: >- + Vote extension provided by the + application. Only valid for precommit + + messages. + extension_signature: + type: string + format: byte + description: >- + Vote extension signature by the + validator if they participated in + + consensus for the associated block. + + Only valid for precommit messages. description: >- - Vote represents a prevote, precommit, or - commit vote from validators for + Vote represents a prevote or precommit vote + from validators for consensus. total_voting_power: @@ -7038,8 +7273,8 @@ paths: type: string format: byte description: >- - Header defines the structure of a - Tendermint block header. + Header defines the structure of a block + header. commit: type: object properties: @@ -7080,7 +7315,7 @@ paths: - BLOCK_ID_FLAG_NIL default: BLOCK_ID_FLAG_UNKNOWN title: >- - BlockIdFlag indicates which BlcokID the + BlockIdFlag indicates which BlockID the signature is for validator_address: type: string @@ -7120,7 +7355,7 @@ paths: format: byte title: >- PublicKey defines the keys available for - use with Tendermint Validators + use with Validators voting_power: type: string format: int64 @@ -7144,7 +7379,7 @@ paths: format: byte title: >- PublicKey defines the keys available for - use with Tendermint Validators + use with Validators voting_power: type: string format: int64 @@ -7176,7 +7411,7 @@ paths: format: byte title: >- PublicKey defines the keys available for - use with Tendermint Validators + use with Validators voting_power: type: string format: int64 @@ -7233,7 +7468,7 @@ paths: - BLOCK_ID_FLAG_NIL default: BLOCK_ID_FLAG_UNKNOWN title: >- - BlockIdFlag indicates which BlcokID the + BlockIdFlag indicates which BlockID the signature is for validator_address: type: string @@ -7371,6 +7606,10 @@ paths: if (any.is(Foo.class)) { foo = any.unpack(Foo.class); } + // or ... + if (any.isSameTypeAs(Foo.getDefaultInstance())) { + foo = any.unpack(Foo.getDefaultInstance()); + } Example 3: Pack and unpack a message in Python. @@ -7410,7 +7649,6 @@ paths: name "y.z". - JSON @@ -7652,6 +7890,10 @@ paths: if (any.is(Foo.class)) { foo = any.unpack(Foo.class); } + // or ... + if (any.isSameTypeAs(Foo.getDefaultInstance())) { + foo = any.unpack(Foo.getDefaultInstance()); + } Example 3: Pack and unpack a message in Python. @@ -7691,7 +7933,6 @@ paths: name "y.z". - JSON @@ -7860,6 +8101,10 @@ paths: if (any.is(Foo.class)) { foo = any.unpack(Foo.class); } + // or ... + if (any.isSameTypeAs(Foo.getDefaultInstance())) { + foo = any.unpack(Foo.getDefaultInstance()); + } Example 3: Pack and unpack a message in Python. @@ -7899,7 +8144,6 @@ paths: name "y.z". - JSON @@ -8059,6 +8303,10 @@ paths: if (any.is(Foo.class)) { foo = any.unpack(Foo.class); } + // or ... + if (any.isSameTypeAs(Foo.getDefaultInstance())) { + foo = any.unpack(Foo.getDefaultInstance()); + } Example 3: Pack and unpack a message in Python. @@ -8098,7 +8346,6 @@ paths: name "y.z". - JSON @@ -8281,6 +8528,10 @@ paths: if (any.is(Foo.class)) { foo = any.unpack(Foo.class); } + // or ... + if (any.isSameTypeAs(Foo.getDefaultInstance())) { + foo = any.unpack(Foo.getDefaultInstance()); + } Example 3: Pack and unpack a message in Python. @@ -8320,7 +8571,6 @@ paths: name "y.z". - JSON @@ -8537,6 +8787,10 @@ paths: if (any.is(Foo.class)) { foo = any.unpack(Foo.class); } + // or ... + if (any.isSameTypeAs(Foo.getDefaultInstance())) { + foo = any.unpack(Foo.getDefaultInstance()); + } Example 3: Pack and unpack a message in Python. @@ -8576,7 +8830,6 @@ paths: name "y.z". - JSON @@ -8759,6 +9012,10 @@ paths: if (any.is(Foo.class)) { foo = any.unpack(Foo.class); } + // or ... + if (any.isSameTypeAs(Foo.getDefaultInstance())) { + foo = any.unpack(Foo.getDefaultInstance()); + } Example 3: Pack and unpack a message in Python. @@ -8798,7 +9055,6 @@ paths: name "y.z". - JSON @@ -9763,6 +10019,10 @@ paths: if (any.is(Foo.class)) { foo = any.unpack(Foo.class); } + // or ... + if (any.isSameTypeAs(Foo.getDefaultInstance())) { + foo = any.unpack(Foo.getDefaultInstance()); + } Example 3: Pack and unpack a message in Python. @@ -9802,7 +10062,6 @@ paths: name "y.z". - JSON @@ -9979,6 +10238,10 @@ paths: if (any.is(Foo.class)) { foo = any.unpack(Foo.class); } + // or ... + if (any.isSameTypeAs(Foo.getDefaultInstance())) { + foo = any.unpack(Foo.getDefaultInstance()); + } Example 3: Pack and unpack a message in Python. @@ -10018,7 +10281,6 @@ paths: name "y.z". - JSON @@ -10224,6 +10486,10 @@ paths: if (any.is(Foo.class)) { foo = any.unpack(Foo.class); } + // or ... + if (any.isSameTypeAs(Foo.getDefaultInstance())) { + foo = any.unpack(Foo.getDefaultInstance()); + } Example 3: Pack and unpack a message in Python. @@ -10263,7 +10529,6 @@ paths: name "y.z". - JSON @@ -10415,6 +10680,10 @@ paths: if (any.is(Foo.class)) { foo = any.unpack(Foo.class); } + // or ... + if (any.isSameTypeAs(Foo.getDefaultInstance())) { + foo = any.unpack(Foo.getDefaultInstance()); + } Example 3: Pack and unpack a message in Python. @@ -10454,7 +10723,6 @@ paths: name "y.z". - JSON @@ -10700,6 +10968,10 @@ paths: if (any.is(Foo.class)) { foo = any.unpack(Foo.class); } + // or ... + if (any.isSameTypeAs(Foo.getDefaultInstance())) { + foo = any.unpack(Foo.getDefaultInstance()); + } Example 3: Pack and unpack a message in Python. @@ -10739,7 +11011,6 @@ paths: name "y.z". - JSON @@ -10908,6 +11179,10 @@ paths: if (any.is(Foo.class)) { foo = any.unpack(Foo.class); } + // or ... + if (any.isSameTypeAs(Foo.getDefaultInstance())) { + foo = any.unpack(Foo.getDefaultInstance()); + } Example 3: Pack and unpack a message in Python. @@ -10947,7 +11222,6 @@ paths: name "y.z". - JSON @@ -11204,6 +11478,10 @@ paths: if (any.is(Foo.class)) { foo = any.unpack(Foo.class); } + // or ... + if (any.isSameTypeAs(Foo.getDefaultInstance())) { + foo = any.unpack(Foo.getDefaultInstance()); + } Example 3: Pack and unpack a message in Python. @@ -11243,7 +11521,6 @@ paths: name "y.z". - JSON @@ -11493,6 +11770,10 @@ paths: if (any.is(Foo.class)) { foo = any.unpack(Foo.class); } + // or ... + if (any.isSameTypeAs(Foo.getDefaultInstance())) { + foo = any.unpack(Foo.getDefaultInstance()); + } Example 3: Pack and unpack a message in Python. @@ -11532,7 +11813,6 @@ paths: name "y.z". - JSON @@ -11762,6 +12042,10 @@ paths: if (any.is(Foo.class)) { foo = any.unpack(Foo.class); } + // or ... + if (any.isSameTypeAs(Foo.getDefaultInstance())) { + foo = any.unpack(Foo.getDefaultInstance()); + } Example 3: Pack and unpack a message in Python. @@ -11801,7 +12085,6 @@ paths: name "y.z". - JSON @@ -12033,6 +12316,10 @@ paths: if (any.is(Foo.class)) { foo = any.unpack(Foo.class); } + // or ... + if (any.isSameTypeAs(Foo.getDefaultInstance())) { + foo = any.unpack(Foo.getDefaultInstance()); + } Example 3: Pack and unpack a message in Python. @@ -12072,7 +12359,6 @@ paths: name "y.z". - JSON @@ -12339,6 +12625,10 @@ paths: if (any.is(Foo.class)) { foo = any.unpack(Foo.class); } + // or ... + if (any.isSameTypeAs(Foo.getDefaultInstance())) { + foo = any.unpack(Foo.getDefaultInstance()); + } Example 3: Pack and unpack a message in Python. @@ -12378,7 +12668,6 @@ paths: name "y.z". - JSON @@ -12575,6 +12864,10 @@ paths: if (any.is(Foo.class)) { foo = any.unpack(Foo.class); } + // or ... + if (any.isSameTypeAs(Foo.getDefaultInstance())) { + foo = any.unpack(Foo.getDefaultInstance()); + } Example 3: Pack and unpack a message in Python. @@ -12614,7 +12907,6 @@ paths: name "y.z". - JSON @@ -12875,6 +13167,10 @@ paths: if (any.is(Foo.class)) { foo = any.unpack(Foo.class); } + // or ... + if (any.isSameTypeAs(Foo.getDefaultInstance())) { + foo = any.unpack(Foo.getDefaultInstance()); + } Example 3: Pack and unpack a message in Python. @@ -12914,7 +13210,6 @@ paths: name "y.z". - JSON @@ -13209,6 +13504,10 @@ paths: if (any.is(Foo.class)) { foo = any.unpack(Foo.class); } + // or ... + if (any.isSameTypeAs(Foo.getDefaultInstance())) { + foo = any.unpack(Foo.getDefaultInstance()); + } Example 3: Pack and unpack a message in Python. @@ -13248,7 +13547,6 @@ paths: name "y.z". - JSON @@ -13301,6 +13599,217 @@ paths: type: string tags: - Query + /cosmos/gov/v1/constitution: + get: + summary: Constitution queries the chain's constitution. + operationId: Constitution + responses: + '200': + description: A successful response. + schema: + type: object + properties: + constitution: + type: string + title: >- + QueryConstitutionResponse is the response type for the + Query/Constitution RPC method + default: + description: An unexpected error response. + schema: + type: object + properties: + error: + type: string + code: + type: integer + format: int32 + message: + type: string + details: + type: array + items: + type: object + properties: + type_url: + type: string + description: >- + A URL/resource name that uniquely identifies the type of + the serialized + + protocol buffer message. This string must contain at + least + + one "/" character. The last segment of the URL's path + must represent + + the fully qualified name of the type (as in + + `path/google.protobuf.Duration`). The name should be in + a canonical form + + (e.g., leading "." is not accepted). + + + In practice, teams usually precompile into the binary + all types that they + + expect it to use in the context of Any. However, for + URLs which use the + + scheme `http`, `https`, or no scheme, one can optionally + set up a type + + server that maps type URLs to message definitions as + follows: + + + * If no scheme is provided, `https` is assumed. + + * An HTTP GET on the URL must yield a + [google.protobuf.Type][] + value in binary format, or produce an error. + * Applications are allowed to cache lookup results based + on the + URL, or have them precompiled into a binary to avoid any + lookup. Therefore, binary compatibility needs to be preserved + on changes to types. (Use versioned type names to manage + breaking changes.) + + Note: this functionality is not currently available in + the official + + protobuf release, and it is not used for type URLs + beginning with + + type.googleapis.com. + + + Schemes other than `http`, `https` (or the empty scheme) + might be + + used with implementation specific semantics. + value: + type: string + format: byte + description: >- + Must be a valid serialized protocol buffer of the above + specified type. + description: >- + `Any` contains an arbitrary serialized protocol buffer + message along with a + + URL that describes the type of the serialized message. + + + Protobuf library provides support to pack/unpack Any values + in the form + + of utility functions or additional generated methods of the + Any type. + + + Example 1: Pack and unpack a message in C++. + + Foo foo = ...; + Any any; + any.PackFrom(foo); + ... + if (any.UnpackTo(&foo)) { + ... + } + + Example 2: Pack and unpack a message in Java. + + Foo foo = ...; + Any any = Any.pack(foo); + ... + if (any.is(Foo.class)) { + foo = any.unpack(Foo.class); + } + // or ... + if (any.isSameTypeAs(Foo.getDefaultInstance())) { + foo = any.unpack(Foo.getDefaultInstance()); + } + + Example 3: Pack and unpack a message in Python. + + foo = Foo(...) + any = Any() + any.Pack(foo) + ... + if any.Is(Foo.DESCRIPTOR): + any.Unpack(foo) + ... + + Example 4: Pack and unpack a message in Go + + foo := &pb.Foo{...} + any, err := anypb.New(foo) + if err != nil { + ... + } + ... + foo := &pb.Foo{} + if err := any.UnmarshalTo(foo); err != nil { + ... + } + + The pack methods provided by protobuf library will by + default use + + 'type.googleapis.com/full.type.name' as the type URL and the + unpack + + methods only use the fully qualified type name after the + last '/' + + in the type URL, for example "foo.bar.com/x/y.z" will yield + type + + name "y.z". + + + JSON + + + The JSON representation of an `Any` value uses the regular + + representation of the deserialized, embedded message, with + an + + additional field `@type` which contains the type URL. + Example: + + package google.profile; + message Person { + string first_name = 1; + string last_name = 2; + } + + { + "@type": "type.googleapis.com/google.profile.Person", + "firstName": , + "lastName": + } + + If the embedded message type is well-known and has a custom + JSON + + representation, that representation will be embedded adding + a field + + `value` which holds the custom JSON in addition to the + `@type` + + field. Example (for message [google.protobuf.Duration][]): + + { + "@type": "type.googleapis.com/google.protobuf.Duration", + "value": "1.212s" + } + tags: + - Query /cosmos/gov/v1/params/{params_type}: get: summary: Params queries all parameters of the gov module. @@ -13440,7 +13949,7 @@ paths: depositors when a proposal is cancelled. - Since: cosmos-sdk 0.48 + Since: cosmos-sdk 0.50 proposal_cancel_dest: type: string description: >- @@ -13451,13 +13960,13 @@ paths: deposits will be burned. - Since: cosmos-sdk 0.48 + Since: cosmos-sdk 0.50 expedited_voting_period: type: string description: |- Duration of the voting period of an expedited proposal. - Since: cosmos-sdk 0.48 + Since: cosmos-sdk 0.50 expedited_threshold: type: string description: >- @@ -13465,7 +13974,7 @@ paths: Default value: 0.67. - Since: cosmos-sdk 0.48 + Since: cosmos-sdk 0.50 expedited_min_deposit: type: array items: @@ -13486,6 +13995,15 @@ paths: description: >- Minimum expedited deposit for a proposal to enter voting period. + burn_vote_quorum: + type: boolean + title: burn deposits if a proposal does not meet quorum + burn_proposal_deposit_prevote: + type: boolean + title: burn deposits if the proposal does not enter voting period + burn_vote_veto: + type: boolean + title: burn deposits if quorum with vote type no_veto is met description: >- QueryParamsResponse is the response type for the Query/Params RPC method. @@ -13602,6 +14120,10 @@ paths: if (any.is(Foo.class)) { foo = any.unpack(Foo.class); } + // or ... + if (any.isSameTypeAs(Foo.getDefaultInstance())) { + foo = any.unpack(Foo.getDefaultInstance()); + } Example 3: Pack and unpack a message in Python. @@ -13641,7 +14163,6 @@ paths: name "y.z". - JSON @@ -13812,6 +14333,10 @@ paths: if (any.is(Foo.class)) { foo = any.unpack(Foo.class); } + // or ... + if (any.isSameTypeAs(Foo.getDefaultInstance())) { + foo = any.unpack(Foo.getDefaultInstance()); + } Example 3: Pack and unpack a message in Python. @@ -13851,7 +14376,6 @@ paths: name "y.z". - JSON @@ -13972,9 +14496,13 @@ paths: description: voting_end_time is the end time of voting on a proposal. metadata: type: string - description: >- + title: >- metadata is any arbitrary metadata attached to the proposal. + + the recommended format of the metadata is to be found + here: + https://docs.cosmos.network/v0.47/modules/gov#proposal-3 title: type: string description: 'Since: cosmos-sdk 0.47' @@ -13989,7 +14517,7 @@ paths: title: proposer is the address of the proposal sumbitter expedited: type: boolean - description: 'Since: cosmos-sdk 0.48' + description: 'Since: cosmos-sdk 0.50' title: expedited defines if the proposal is expedited description: >- Proposal defines the core field members of a governance @@ -14132,6 +14660,10 @@ paths: if (any.is(Foo.class)) { foo = any.unpack(Foo.class); } + // or ... + if (any.isSameTypeAs(Foo.getDefaultInstance())) { + foo = any.unpack(Foo.getDefaultInstance()); + } Example 3: Pack and unpack a message in Python. @@ -14171,7 +14703,6 @@ paths: name "y.z". - JSON @@ -14423,6 +14954,10 @@ paths: if (any.is(Foo.class)) { foo = any.unpack(Foo.class); } + // or ... + if (any.isSameTypeAs(Foo.getDefaultInstance())) { + foo = any.unpack(Foo.getDefaultInstance()); + } Example 3: Pack and unpack a message in Python. @@ -14462,7 +14997,6 @@ paths: name "y.z". - JSON @@ -14582,9 +15116,13 @@ paths: description: voting_end_time is the end time of voting on a proposal. metadata: type: string - description: >- + title: >- metadata is any arbitrary metadata attached to the proposal. + + the recommended format of the metadata is to be found + here: + https://docs.cosmos.network/v0.47/modules/gov#proposal-3 title: type: string description: 'Since: cosmos-sdk 0.47' @@ -14599,7 +15137,7 @@ paths: title: proposer is the address of the proposal sumbitter expedited: type: boolean - description: 'Since: cosmos-sdk 0.48' + description: 'Since: cosmos-sdk 0.50' title: expedited defines if the proposal is expedited description: >- Proposal defines the core field members of a governance @@ -14720,6 +15258,10 @@ paths: if (any.is(Foo.class)) { foo = any.unpack(Foo.class); } + // or ... + if (any.isSameTypeAs(Foo.getDefaultInstance())) { + foo = any.unpack(Foo.getDefaultInstance()); + } Example 3: Pack and unpack a message in Python. @@ -14759,7 +15301,6 @@ paths: name "y.z". - JSON @@ -14991,6 +15532,10 @@ paths: if (any.is(Foo.class)) { foo = any.unpack(Foo.class); } + // or ... + if (any.isSameTypeAs(Foo.getDefaultInstance())) { + foo = any.unpack(Foo.getDefaultInstance()); + } Example 3: Pack and unpack a message in Python. @@ -15030,7 +15575,6 @@ paths: name "y.z". - JSON @@ -15297,6 +15841,10 @@ paths: if (any.is(Foo.class)) { foo = any.unpack(Foo.class); } + // or ... + if (any.isSameTypeAs(Foo.getDefaultInstance())) { + foo = any.unpack(Foo.getDefaultInstance()); + } Example 3: Pack and unpack a message in Python. @@ -15336,7 +15884,6 @@ paths: name "y.z". - JSON @@ -15535,6 +16082,10 @@ paths: if (any.is(Foo.class)) { foo = any.unpack(Foo.class); } + // or ... + if (any.isSameTypeAs(Foo.getDefaultInstance())) { + foo = any.unpack(Foo.getDefaultInstance()); + } Example 3: Pack and unpack a message in Python. @@ -15574,7 +16125,6 @@ paths: name "y.z". - JSON @@ -15672,9 +16222,13 @@ paths: description: options is the weighted vote options. metadata: type: string - description: >- - metadata is any arbitrary metadata to attached to the + title: >- + metadata is any arbitrary metadata to attached to the vote. + + the recommended format of the metadata is to be found + here: + https://docs.cosmos.network/v0.47/modules/gov#vote-5 description: >- Vote defines a vote on a governance proposal. @@ -15816,6 +16370,10 @@ paths: if (any.is(Foo.class)) { foo = any.unpack(Foo.class); } + // or ... + if (any.isSameTypeAs(Foo.getDefaultInstance())) { + foo = any.unpack(Foo.getDefaultInstance()); + } Example 3: Pack and unpack a message in Python. @@ -15855,7 +16413,6 @@ paths: name "y.z". - JSON @@ -16007,9 +16564,12 @@ paths: description: options is the weighted vote options. metadata: type: string - description: >- - metadata is any arbitrary metadata to attached to the + title: >- + metadata is any arbitrary metadata to attached to the vote. + + the recommended format of the metadata is to be found + here: https://docs.cosmos.network/v0.47/modules/gov#vote-5 description: >- Vote defines a vote on a governance proposal. @@ -16131,6 +16691,10 @@ paths: if (any.is(Foo.class)) { foo = any.unpack(Foo.class); } + // or ... + if (any.isSameTypeAs(Foo.getDefaultInstance())) { + foo = any.unpack(Foo.getDefaultInstance()); + } Example 3: Pack and unpack a message in Python. @@ -16170,7 +16734,6 @@ paths: name "y.z". - JSON @@ -16572,19 +17135,19 @@ paths: format: int64 title: >- Height at which validator was first a candidate OR was - unjailed + un-jailed index_offset: type: string format: int64 description: >- - Index which is incremented each time the validator was a - bonded + Index which is incremented every time a validator is + bonded in a block and - in a block and may have signed a precommit or not. This - in conjunction with the + _may_ have signed a pre-commit or not. This in + conjunction with the - `SignedBlocksWindow` param determines the index in the - `MissedBlocksBitArray`. + signed_blocks_window param determines the index in the + missed block bitmap. jailed_until: type: string format: date-time @@ -16595,18 +17158,20 @@ paths: type: boolean description: >- Whether or not a validator has been tombstoned (killed - out of validator set). It is set + out of validator - once the validator commits an equivocation or for any - other configured misbehiavor. + set). It is set once the validator commits an + equivocation or for any other + + configured misbehavior. missed_blocks_counter: type: string format: int64 description: >- - A counter kept to avoid unnecessary array reads. + A counter of missed (unsigned) blocks. It is used to + avoid unnecessary - Note that `Sum(MissedBlocksBitArray)` always equals - `MissedBlocksCounter`. + reads in the missed block bitmap. description: >- ValidatorSigningInfo defines a validator's signing info for monitoring their @@ -16747,19 +17312,19 @@ paths: format: int64 title: >- Height at which validator was first a candidate OR was - unjailed + un-jailed index_offset: type: string format: int64 description: >- - Index which is incremented each time the validator was a - bonded + Index which is incremented every time a validator is + bonded in a block and - in a block and may have signed a precommit or not. This in - conjunction with the + _may_ have signed a pre-commit or not. This in conjunction + with the - `SignedBlocksWindow` param determines the index in the - `MissedBlocksBitArray`. + signed_blocks_window param determines the index in the + missed block bitmap. jailed_until: type: string format: date-time @@ -16770,18 +17335,20 @@ paths: type: boolean description: >- Whether or not a validator has been tombstoned (killed out - of validator set). It is set + of validator - once the validator commits an equivocation or for any - other configured misbehiavor. + set). It is set once the validator commits an equivocation + or for any other + + configured misbehavior. missed_blocks_counter: type: string format: int64 description: >- - A counter kept to avoid unnecessary array reads. + A counter of missed (unsigned) blocks. It is used to avoid + unnecessary - Note that `Sum(MissedBlocksBitArray)` always equals - `MissedBlocksCounter`. + reads in the missed block bitmap. description: >- ValidatorSigningInfo defines a validator's signing info for monitoring their @@ -17030,6 +17597,10 @@ paths: if (any.is(Foo.class)) { foo = any.unpack(Foo.class); } + // or ... + if (any.isSameTypeAs(Foo.getDefaultInstance())) { + foo = any.unpack(Foo.getDefaultInstance()); + } Example 3: Pack and unpack a message in Python. @@ -17069,7 +17640,6 @@ paths: name "y.z". - JSON @@ -17461,6 +18031,10 @@ paths: if (any.is(Foo.class)) { foo = any.unpack(Foo.class); } + // or ... + if (any.isSameTypeAs(Foo.getDefaultInstance())) { + foo = any.unpack(Foo.getDefaultInstance()); + } Example 3: Pack and unpack a message in Python. @@ -17500,7 +18074,6 @@ paths: name "y.z". - JSON @@ -17832,6 +18405,10 @@ paths: if (any.is(Foo.class)) { foo = any.unpack(Foo.class); } + // or ... + if (any.isSameTypeAs(Foo.getDefaultInstance())) { + foo = any.unpack(Foo.getDefaultInstance()); + } Example 3: Pack and unpack a message in Python. @@ -17871,7 +18448,6 @@ paths: name "y.z". - JSON @@ -18100,6 +18676,10 @@ paths: if (any.is(Foo.class)) { foo = any.unpack(Foo.class); } + // or ... + if (any.isSameTypeAs(Foo.getDefaultInstance())) { + foo = any.unpack(Foo.getDefaultInstance()); + } Example 3: Pack and unpack a message in Python. @@ -18139,7 +18719,6 @@ paths: name "y.z". - JSON @@ -18458,6 +19037,10 @@ paths: if (any.is(Foo.class)) { foo = any.unpack(Foo.class); } + // or ... + if (any.isSameTypeAs(Foo.getDefaultInstance())) { + foo = any.unpack(Foo.getDefaultInstance()); + } Example 3: Pack and unpack a message in Python. @@ -18497,7 +19080,6 @@ paths: name "y.z". - JSON @@ -18719,6 +19301,10 @@ paths: if (any.is(Foo.class)) { foo = any.unpack(Foo.class); } + // or ... + if (any.isSameTypeAs(Foo.getDefaultInstance())) { + foo = any.unpack(Foo.getDefaultInstance()); + } Example 3: Pack and unpack a message in Python. @@ -18758,7 +19344,6 @@ paths: name "y.z". - JSON @@ -19054,6 +19639,10 @@ paths: if (any.is(Foo.class)) { foo = any.unpack(Foo.class); } + // or ... + if (any.isSameTypeAs(Foo.getDefaultInstance())) { + foo = any.unpack(Foo.getDefaultInstance()); + } Example 3: Pack and unpack a message in Python. @@ -19093,7 +19682,6 @@ paths: name "y.z". - JSON @@ -19235,7 +19823,7 @@ paths: proposer_address: type: string format: byte - description: Header defines the structure of a Tendermint block header. + description: Header defines the structure of a block header. valset: type: array items: @@ -19346,6 +19934,10 @@ paths: if (any.is(Foo.class)) { foo = any.unpack(Foo.class); } + // or ... + if (any.isSameTypeAs(Foo.getDefaultInstance())) { + foo = any.unpack(Foo.getDefaultInstance()); + } Example 3: Pack and unpack a message in Python. @@ -19385,7 +19977,6 @@ paths: name "y.z". - JSON @@ -19687,6 +20278,10 @@ paths: if (any.is(Foo.class)) { foo = any.unpack(Foo.class); } + // or ... + if (any.isSameTypeAs(Foo.getDefaultInstance())) { + foo = any.unpack(Foo.getDefaultInstance()); + } Example 3: Pack and unpack a message in Python. @@ -19726,7 +20321,6 @@ paths: name "y.z". - JSON @@ -19931,6 +20525,10 @@ paths: if (any.is(Foo.class)) { foo = any.unpack(Foo.class); } + // or ... + if (any.isSameTypeAs(Foo.getDefaultInstance())) { + foo = any.unpack(Foo.getDefaultInstance()); + } Example 3: Pack and unpack a message in Python. @@ -19970,7 +20568,6 @@ paths: name "y.z". - JSON @@ -20143,6 +20740,10 @@ paths: if (any.is(Foo.class)) { foo = any.unpack(Foo.class); } + // or ... + if (any.isSameTypeAs(Foo.getDefaultInstance())) { + foo = any.unpack(Foo.getDefaultInstance()); + } Example 3: Pack and unpack a message in Python. @@ -20182,7 +20783,6 @@ paths: name "y.z". - JSON @@ -20347,6 +20947,10 @@ paths: if (any.is(Foo.class)) { foo = any.unpack(Foo.class); } + // or ... + if (any.isSameTypeAs(Foo.getDefaultInstance())) { + foo = any.unpack(Foo.getDefaultInstance()); + } Example 3: Pack and unpack a message in Python. @@ -20386,7 +20990,6 @@ paths: name "y.z". - JSON @@ -20705,6 +21308,10 @@ paths: if (any.is(Foo.class)) { foo = any.unpack(Foo.class); } + // or ... + if (any.isSameTypeAs(Foo.getDefaultInstance())) { + foo = any.unpack(Foo.getDefaultInstance()); + } Example 3: Pack and unpack a message in Python. @@ -20744,7 +21351,6 @@ paths: name "y.z". - JSON @@ -20964,6 +21570,10 @@ paths: if (any.is(Foo.class)) { foo = any.unpack(Foo.class); } + // or ... + if (any.isSameTypeAs(Foo.getDefaultInstance())) { + foo = any.unpack(Foo.getDefaultInstance()); + } Example 3: Pack and unpack a message in Python. @@ -21003,7 +21613,6 @@ paths: name "y.z". - JSON @@ -21299,6 +21908,10 @@ paths: if (any.is(Foo.class)) { foo = any.unpack(Foo.class); } + // or ... + if (any.isSameTypeAs(Foo.getDefaultInstance())) { + foo = any.unpack(Foo.getDefaultInstance()); + } Example 3: Pack and unpack a message in Python. @@ -21338,7 +21951,6 @@ paths: name "y.z". - JSON @@ -21585,6 +22197,10 @@ paths: if (any.is(Foo.class)) { foo = any.unpack(Foo.class); } + // or ... + if (any.isSameTypeAs(Foo.getDefaultInstance())) { + foo = any.unpack(Foo.getDefaultInstance()); + } Example 3: Pack and unpack a message in Python. @@ -21624,7 +22240,6 @@ paths: name "y.z". - JSON @@ -21901,6 +22516,10 @@ paths: if (any.is(Foo.class)) { foo = any.unpack(Foo.class); } + // or ... + if (any.isSameTypeAs(Foo.getDefaultInstance())) { + foo = any.unpack(Foo.getDefaultInstance()); + } Example 3: Pack and unpack a message in Python. @@ -21940,7 +22559,6 @@ paths: name "y.z". - JSON @@ -22179,6 +22797,10 @@ paths: if (any.is(Foo.class)) { foo = any.unpack(Foo.class); } + // or ... + if (any.isSameTypeAs(Foo.getDefaultInstance())) { + foo = any.unpack(Foo.getDefaultInstance()); + } Example 3: Pack and unpack a message in Python. @@ -22218,7 +22840,6 @@ paths: name "y.z". - JSON @@ -22487,6 +23108,10 @@ paths: if (any.is(Foo.class)) { foo = any.unpack(Foo.class); } + // or ... + if (any.isSameTypeAs(Foo.getDefaultInstance())) { + foo = any.unpack(Foo.getDefaultInstance()); + } Example 3: Pack and unpack a message in Python. @@ -22526,7 +23151,6 @@ paths: name "y.z". - JSON @@ -22752,6 +23376,10 @@ paths: if (any.is(Foo.class)) { foo = any.unpack(Foo.class); } + // or ... + if (any.isSameTypeAs(Foo.getDefaultInstance())) { + foo = any.unpack(Foo.getDefaultInstance()); + } Example 3: Pack and unpack a message in Python. @@ -22791,7 +23419,6 @@ paths: name "y.z". - JSON @@ -22982,6 +23609,10 @@ paths: if (any.is(Foo.class)) { foo = any.unpack(Foo.class); } + // or ... + if (any.isSameTypeAs(Foo.getDefaultInstance())) { + foo = any.unpack(Foo.getDefaultInstance()); + } Example 3: Pack and unpack a message in Python. @@ -23021,7 +23652,6 @@ paths: name "y.z". - JSON @@ -23213,6 +23843,10 @@ paths: if (any.is(Foo.class)) { foo = any.unpack(Foo.class); } + // or ... + if (any.isSameTypeAs(Foo.getDefaultInstance())) { + foo = any.unpack(Foo.getDefaultInstance()); + } Example 3: Pack and unpack a message in Python. @@ -23252,7 +23886,6 @@ paths: name "y.z". - JSON @@ -23434,6 +24067,10 @@ paths: if (any.is(Foo.class)) { foo = any.unpack(Foo.class); } + // or ... + if (any.isSameTypeAs(Foo.getDefaultInstance())) { + foo = any.unpack(Foo.getDefaultInstance()); + } Example 3: Pack and unpack a message in Python. @@ -23473,7 +24110,6 @@ paths: name "y.z". - JSON @@ -23603,8 +24239,7 @@ paths: Event allows application developers to attach additional information to - ResponseBeginBlock, ResponseEndBlock, ResponseCheckTx - and ResponseDeliverTx. + ResponseFinalizeBlock and ResponseCheckTx. Later, transactions may be queried using these events. description: >- @@ -23713,6 +24348,10 @@ paths: if (any.is(Foo.class)) { foo = any.unpack(Foo.class); } + // or ... + if (any.isSameTypeAs(Foo.getDefaultInstance())) { + foo = any.unpack(Foo.getDefaultInstance()); + } Example 3: Pack and unpack a message in Python. @@ -23752,7 +24391,6 @@ paths: name "y.z". - JSON @@ -23915,6 +24553,10 @@ paths: if (any.is(Foo.class)) { foo = any.unpack(Foo.class); } + // or ... + if (any.isSameTypeAs(Foo.getDefaultInstance())) { + foo = any.unpack(Foo.getDefaultInstance()); + } Example 3: Pack and unpack a message in Python. @@ -23954,7 +24596,6 @@ paths: name "y.z". - JSON @@ -24123,6 +24764,10 @@ paths: if (any.is(Foo.class)) { foo = any.unpack(Foo.class); } + // or ... + if (any.isSameTypeAs(Foo.getDefaultInstance())) { + foo = any.unpack(Foo.getDefaultInstance()); + } Example 3: Pack and unpack a message in Python. @@ -24162,7 +24807,6 @@ paths: name "y.z". - JSON @@ -24203,7 +24847,13 @@ paths: } parameters: - name: events - description: events is the list of transaction event type. + description: >- + events is the list of transaction event type. + + Deprecated post v0.47.x: use query instead, which should contain a + valid + + events query. in: query required: false type: array @@ -24268,7 +24918,8 @@ paths: type: boolean - name: order_by description: |2- - - ORDER_BY_UNSPECIFIED: ORDER_BY_UNSPECIFIED specifies an unknown sorting order. OrderBy defaults to ASC in this case. + - ORDER_BY_UNSPECIFIED: ORDER_BY_UNSPECIFIED specifies an unknown sorting order. OrderBy defaults + to ASC in this case. - ORDER_BY_ASC: ORDER_BY_ASC defines ascending order - ORDER_BY_DESC: ORDER_BY_DESC defines descending order in: query @@ -24280,7 +24931,7 @@ paths: - ORDER_BY_DESC default: ORDER_BY_UNSPECIFIED - name: page - description: >- + description: |- page is the page number to query, starts at 1. If not provided, will default to first page. in: query @@ -24297,6 +24948,18 @@ paths: required: false type: string format: uint64 + - name: query + description: >- + query defines the transaction event query that is proxied to + Tendermint's + + TxSearch RPC method. The query must be valid. + + + Since cosmos-sdk 0.50 + in: query + required: false + type: string tags: - Service post: @@ -24493,6 +25156,10 @@ paths: if (any.is(Foo.class)) { foo = any.unpack(Foo.class); } + // or ... + if (any.isSameTypeAs(Foo.getDefaultInstance())) { + foo = any.unpack(Foo.getDefaultInstance()); + } Example 3: Pack and unpack a message in Python. @@ -24532,7 +25199,6 @@ paths: name "y.z". - JSON @@ -24606,8 +25272,7 @@ paths: Event allows application developers to attach additional information to - ResponseBeginBlock, ResponseEndBlock, ResponseCheckTx - and ResponseDeliverTx. + ResponseFinalizeBlock and ResponseCheckTx. Later, transactions may be queried using these events. description: >- @@ -24746,6 +25411,10 @@ paths: if (any.is(Foo.class)) { foo = any.unpack(Foo.class); } + // or ... + if (any.isSameTypeAs(Foo.getDefaultInstance())) { + foo = any.unpack(Foo.getDefaultInstance()); + } Example 3: Pack and unpack a message in Python. @@ -24785,7 +25454,6 @@ paths: name "y.z". - JSON @@ -24845,16 +25513,18 @@ paths: default: BROADCAST_MODE_UNSPECIFIED description: >- BroadcastMode specifies the broadcast mode for the - TxService.Broadcast RPC method. + TxService.Broadcast RPC + + method. - BROADCAST_MODE_UNSPECIFIED: zero-value for mode ordering - BROADCAST_MODE_BLOCK: DEPRECATED: use BROADCAST_MODE_SYNC instead, BROADCAST_MODE_BLOCK is not supported by the SDK from v0.47.x onwards. - - BROADCAST_MODE_SYNC: BROADCAST_MODE_SYNC defines a tx broadcasting mode where the client waits for - a CheckTx execution response only. - - BROADCAST_MODE_ASYNC: BROADCAST_MODE_ASYNC defines a tx broadcasting mode where the client returns - immediately. + - BROADCAST_MODE_SYNC: BROADCAST_MODE_SYNC defines a tx broadcasting mode where the client waits + for a CheckTx execution response only. + - BROADCAST_MODE_ASYNC: BROADCAST_MODE_ASYNC defines a tx broadcasting mode where the client + returns immediately. description: >- BroadcastTxRequest is the request type for the Service.BroadcastTxRequest @@ -24985,6 +25655,10 @@ paths: if (any.is(Foo.class)) { foo = any.unpack(Foo.class); } + // or ... + if (any.isSameTypeAs(Foo.getDefaultInstance())) { + foo = any.unpack(Foo.getDefaultInstance()); + } Example 3: Pack and unpack a message in Python. @@ -25024,7 +25698,6 @@ paths: name "y.z". - JSON @@ -25250,6 +25923,10 @@ paths: if (any.is(Foo.class)) { foo = any.unpack(Foo.class); } + // or ... + if (any.isSameTypeAs(Foo.getDefaultInstance())) { + foo = any.unpack(Foo.getDefaultInstance()); + } Example 3: Pack and unpack a message in Python. @@ -25289,7 +25966,6 @@ paths: name "y.z". - JSON @@ -25468,6 +26144,10 @@ paths: if (any.is(Foo.class)) { foo = any.unpack(Foo.class); } + // or ... + if (any.isSameTypeAs(Foo.getDefaultInstance())) { + foo = any.unpack(Foo.getDefaultInstance()); + } Example 3: Pack and unpack a message in Python. @@ -25507,7 +26187,6 @@ paths: name "y.z". - JSON @@ -25682,6 +26361,10 @@ paths: if (any.is(Foo.class)) { foo = any.unpack(Foo.class); } + // or ... + if (any.isSameTypeAs(Foo.getDefaultInstance())) { + foo = any.unpack(Foo.getDefaultInstance()); + } Example 3: Pack and unpack a message in Python. @@ -25721,7 +26404,6 @@ paths: name "y.z". - JSON @@ -25919,6 +26601,10 @@ paths: if (any.is(Foo.class)) { foo = any.unpack(Foo.class); } + // or ... + if (any.isSameTypeAs(Foo.getDefaultInstance())) { + foo = any.unpack(Foo.getDefaultInstance()); + } Example 3: Pack and unpack a message in Python. @@ -25958,7 +26644,6 @@ paths: name "y.z". - JSON @@ -26115,6 +26800,10 @@ paths: if (any.is(Foo.class)) { foo = any.unpack(Foo.class); } + // or ... + if (any.isSameTypeAs(Foo.getDefaultInstance())) { + foo = any.unpack(Foo.getDefaultInstance()); + } Example 3: Pack and unpack a message in Python. @@ -26154,7 +26843,6 @@ paths: name "y.z". - JSON @@ -26346,6 +27034,10 @@ paths: if (any.is(Foo.class)) { foo = any.unpack(Foo.class); } + // or ... + if (any.isSameTypeAs(Foo.getDefaultInstance())) { + foo = any.unpack(Foo.getDefaultInstance()); + } Example 3: Pack and unpack a message in Python. @@ -26385,7 +27077,6 @@ paths: name "y.z". - JSON @@ -26578,6 +27269,10 @@ paths: if (any.is(Foo.class)) { foo = any.unpack(Foo.class); } + // or ... + if (any.isSameTypeAs(Foo.getDefaultInstance())) { + foo = any.unpack(Foo.getDefaultInstance()); + } Example 3: Pack and unpack a message in Python. @@ -26617,7 +27312,6 @@ paths: name "y.z". - JSON @@ -26781,6 +27475,10 @@ paths: if (any.is(Foo.class)) { foo = any.unpack(Foo.class); } + // or ... + if (any.isSameTypeAs(Foo.getDefaultInstance())) { + foo = any.unpack(Foo.getDefaultInstance()); + } Example 3: Pack and unpack a message in Python. @@ -26820,7 +27518,6 @@ paths: name "y.z". - JSON @@ -27013,6 +27710,10 @@ paths: if (any.is(Foo.class)) { foo = any.unpack(Foo.class); } + // or ... + if (any.isSameTypeAs(Foo.getDefaultInstance())) { + foo = any.unpack(Foo.getDefaultInstance()); + } Example 3: Pack and unpack a message in Python. @@ -27052,7 +27753,6 @@ paths: name "y.z". - JSON @@ -27284,6 +27984,10 @@ paths: if (any.is(Foo.class)) { foo = any.unpack(Foo.class); } + // or ... + if (any.isSameTypeAs(Foo.getDefaultInstance())) { + foo = any.unpack(Foo.getDefaultInstance()); + } Example 3: Pack and unpack a message in Python. @@ -27323,7 +28027,6 @@ paths: name "y.z". - JSON @@ -27508,6 +28211,10 @@ paths: if (any.is(Foo.class)) { foo = any.unpack(Foo.class); } + // or ... + if (any.isSameTypeAs(Foo.getDefaultInstance())) { + foo = any.unpack(Foo.getDefaultInstance()); + } Example 3: Pack and unpack a message in Python. @@ -27547,7 +28254,6 @@ paths: name "y.z". - JSON @@ -27768,6 +28474,10 @@ paths: if (any.is(Foo.class)) { foo = any.unpack(Foo.class); } + // or ... + if (any.isSameTypeAs(Foo.getDefaultInstance())) { + foo = any.unpack(Foo.getDefaultInstance()); + } Example 3: Pack and unpack a message in Python. @@ -27807,7 +28517,6 @@ paths: name "y.z". - JSON @@ -27992,6 +28701,10 @@ paths: if (any.is(Foo.class)) { foo = any.unpack(Foo.class); } + // or ... + if (any.isSameTypeAs(Foo.getDefaultInstance())) { + foo = any.unpack(Foo.getDefaultInstance()); + } Example 3: Pack and unpack a message in Python. @@ -28031,7 +28744,6 @@ paths: name "y.z". - JSON @@ -28346,6 +29058,10 @@ paths: if (any.is(Foo.class)) { foo = any.unpack(Foo.class); } + // or ... + if (any.isSameTypeAs(Foo.getDefaultInstance())) { + foo = any.unpack(Foo.getDefaultInstance()); + } Example 3: Pack and unpack a message in Python. @@ -28385,7 +29101,6 @@ paths: name "y.z". - JSON @@ -28675,6 +29390,10 @@ paths: if (any.is(Foo.class)) { foo = any.unpack(Foo.class); } + // or ... + if (any.isSameTypeAs(Foo.getDefaultInstance())) { + foo = any.unpack(Foo.getDefaultInstance()); + } Example 3: Pack and unpack a message in Python. @@ -28714,7 +29433,6 @@ paths: name "y.z". - JSON @@ -29054,6 +29772,10 @@ paths: if (any.is(Foo.class)) { foo = any.unpack(Foo.class); } + // or ... + if (any.isSameTypeAs(Foo.getDefaultInstance())) { + foo = any.unpack(Foo.getDefaultInstance()); + } Example 3: Pack and unpack a message in Python. @@ -29093,7 +29815,6 @@ paths: name "y.z". - JSON @@ -29329,6 +30050,10 @@ paths: if (any.is(Foo.class)) { foo = any.unpack(Foo.class); } + // or ... + if (any.isSameTypeAs(Foo.getDefaultInstance())) { + foo = any.unpack(Foo.getDefaultInstance()); + } Example 3: Pack and unpack a message in Python. @@ -29368,7 +30093,6 @@ paths: name "y.z". - JSON @@ -29566,6 +30290,10 @@ paths: if (any.is(Foo.class)) { foo = any.unpack(Foo.class); } + // or ... + if (any.isSameTypeAs(Foo.getDefaultInstance())) { + foo = any.unpack(Foo.getDefaultInstance()); + } Example 3: Pack and unpack a message in Python. @@ -29605,7 +30333,6 @@ paths: name "y.z". - JSON @@ -29786,6 +30513,10 @@ paths: if (any.is(Foo.class)) { foo = any.unpack(Foo.class); } + // or ... + if (any.isSameTypeAs(Foo.getDefaultInstance())) { + foo = any.unpack(Foo.getDefaultInstance()); + } Example 3: Pack and unpack a message in Python. @@ -29825,7 +30556,6 @@ paths: name "y.z". - JSON @@ -30065,6 +30795,10 @@ paths: if (any.is(Foo.class)) { foo = any.unpack(Foo.class); } + // or ... + if (any.isSameTypeAs(Foo.getDefaultInstance())) { + foo = any.unpack(Foo.getDefaultInstance()); + } Example 3: Pack and unpack a message in Python. @@ -30104,7 +30838,6 @@ paths: name "y.z". - JSON @@ -30263,6 +30996,10 @@ paths: if (any.is(Foo.class)) { foo = any.unpack(Foo.class); } + // or ... + if (any.isSameTypeAs(Foo.getDefaultInstance())) { + foo = any.unpack(Foo.getDefaultInstance()); + } Example 3: Pack and unpack a message in Python. @@ -30302,7 +31039,6 @@ paths: name "y.z". - JSON @@ -30481,6 +31217,10 @@ paths: if (any.is(Foo.class)) { foo = any.unpack(Foo.class); } + // or ... + if (any.isSameTypeAs(Foo.getDefaultInstance())) { + foo = any.unpack(Foo.getDefaultInstance()); + } Example 3: Pack and unpack a message in Python. @@ -30520,7 +31260,6 @@ paths: name "y.z". - JSON @@ -30699,6 +31438,10 @@ paths: if (any.is(Foo.class)) { foo = any.unpack(Foo.class); } + // or ... + if (any.isSameTypeAs(Foo.getDefaultInstance())) { + foo = any.unpack(Foo.getDefaultInstance()); + } Example 3: Pack and unpack a message in Python. @@ -30738,7 +31481,6 @@ paths: name "y.z". - JSON @@ -30972,6 +31714,10 @@ paths: if (any.is(Foo.class)) { foo = any.unpack(Foo.class); } + // or ... + if (any.isSameTypeAs(Foo.getDefaultInstance())) { + foo = any.unpack(Foo.getDefaultInstance()); + } Example 3: Pack and unpack a message in Python. @@ -31011,7 +31757,6 @@ paths: name "y.z". - JSON @@ -31167,6 +31912,10 @@ paths: if (any.is(Foo.class)) { foo = any.unpack(Foo.class); } + // or ... + if (any.isSameTypeAs(Foo.getDefaultInstance())) { + foo = any.unpack(Foo.getDefaultInstance()); + } Example 3: Pack and unpack a message in Python. @@ -31206,7 +31955,6 @@ paths: name "y.z". - JSON @@ -31389,6 +32137,10 @@ paths: if (any.is(Foo.class)) { foo = any.unpack(Foo.class); } + // or ... + if (any.isSameTypeAs(Foo.getDefaultInstance())) { + foo = any.unpack(Foo.getDefaultInstance()); + } Example 3: Pack and unpack a message in Python. @@ -31428,7 +32180,6 @@ paths: name "y.z". - JSON @@ -31612,6 +32363,10 @@ paths: if (any.is(Foo.class)) { foo = any.unpack(Foo.class); } + // or ... + if (any.isSameTypeAs(Foo.getDefaultInstance())) { + foo = any.unpack(Foo.getDefaultInstance()); + } Example 3: Pack and unpack a message in Python. @@ -31651,7 +32406,6 @@ paths: name "y.z". - JSON @@ -31721,9 +32475,13 @@ paths: description: admin is the account address of the group's admin. metadata: type: string - description: >- + title: >- metadata is any arbitrary metadata to attached to the group. + + the recommended format of the metadata is to be found + here: + https://docs.cosmos.network/v0.47/modules/group#group-1 version: type: string format: uint64 @@ -31862,6 +32620,10 @@ paths: if (any.is(Foo.class)) { foo = any.unpack(Foo.class); } + // or ... + if (any.isSameTypeAs(Foo.getDefaultInstance())) { + foo = any.unpack(Foo.getDefaultInstance()); + } Example 3: Pack and unpack a message in Python. @@ -31901,7 +32663,6 @@ paths: name "y.z". - JSON @@ -32130,6 +32891,10 @@ paths: if (any.is(Foo.class)) { foo = any.unpack(Foo.class); } + // or ... + if (any.isSameTypeAs(Foo.getDefaultInstance())) { + foo = any.unpack(Foo.getDefaultInstance()); + } Example 3: Pack and unpack a message in Python. @@ -32169,7 +32934,6 @@ paths: name "y.z". - JSON @@ -32300,9 +33064,13 @@ paths: description: admin is the account address of the group admin. metadata: type: string - description: >- + title: >- metadata is any arbitrary metadata attached to the group policy. + + the recommended format of the metadata is to be found + here: + https://docs.cosmos.network/v0.47/modules/group#decision-policy-1 version: type: string format: uint64 @@ -32410,6 +33178,10 @@ paths: if (any.is(Foo.class)) { foo = any.unpack(Foo.class); } + // or ... + if (any.isSameTypeAs(Foo.getDefaultInstance())) { + foo = any.unpack(Foo.getDefaultInstance()); + } Example 3: Pack and unpack a message in Python. @@ -32449,7 +33221,6 @@ paths: name "y.z". - JSON @@ -32637,6 +33408,10 @@ paths: if (any.is(Foo.class)) { foo = any.unpack(Foo.class); } + // or ... + if (any.isSameTypeAs(Foo.getDefaultInstance())) { + foo = any.unpack(Foo.getDefaultInstance()); + } Example 3: Pack and unpack a message in Python. @@ -32676,7 +33451,6 @@ paths: name "y.z". - JSON @@ -32806,9 +33580,13 @@ paths: description: admin is the account address of the group admin. metadata: type: string - description: >- + title: >- metadata is any arbitrary metadata attached to the group policy. + + the recommended format of the metadata is to be found + here: + https://docs.cosmos.network/v0.47/modules/group#decision-policy-1 version: type: string format: uint64 @@ -32916,6 +33694,10 @@ paths: if (any.is(Foo.class)) { foo = any.unpack(Foo.class); } + // or ... + if (any.isSameTypeAs(Foo.getDefaultInstance())) { + foo = any.unpack(Foo.getDefaultInstance()); + } Example 3: Pack and unpack a message in Python. @@ -32955,7 +33737,6 @@ paths: name "y.z". - JSON @@ -33143,6 +33924,10 @@ paths: if (any.is(Foo.class)) { foo = any.unpack(Foo.class); } + // or ... + if (any.isSameTypeAs(Foo.getDefaultInstance())) { + foo = any.unpack(Foo.getDefaultInstance()); + } Example 3: Pack and unpack a message in Python. @@ -33182,7 +33967,6 @@ paths: name "y.z". - JSON @@ -33313,9 +34097,13 @@ paths: description: admin is the account address of the group admin. metadata: type: string - description: >- + title: >- metadata is any arbitrary metadata attached to the group policy. + + the recommended format of the metadata is to be found + here: + https://docs.cosmos.network/v0.47/modules/group#decision-policy-1 version: type: string format: uint64 @@ -33423,6 +34211,10 @@ paths: if (any.is(Foo.class)) { foo = any.unpack(Foo.class); } + // or ... + if (any.isSameTypeAs(Foo.getDefaultInstance())) { + foo = any.unpack(Foo.getDefaultInstance()); + } Example 3: Pack and unpack a message in Python. @@ -33462,7 +34254,6 @@ paths: name "y.z". - JSON @@ -33626,6 +34417,10 @@ paths: if (any.is(Foo.class)) { foo = any.unpack(Foo.class); } + // or ... + if (any.isSameTypeAs(Foo.getDefaultInstance())) { + foo = any.unpack(Foo.getDefaultInstance()); + } Example 3: Pack and unpack a message in Python. @@ -33665,7 +34460,6 @@ paths: name "y.z". - JSON @@ -33737,9 +34531,13 @@ paths: description: admin is the account address of the group's admin. metadata: type: string - description: >- + title: >- metadata is any arbitrary metadata to attached to the group. + + the recommended format of the metadata is to be found + here: + https://docs.cosmos.network/v0.47/modules/group#group-1 version: type: string format: uint64 @@ -33904,6 +34702,10 @@ paths: if (any.is(Foo.class)) { foo = any.unpack(Foo.class); } + // or ... + if (any.isSameTypeAs(Foo.getDefaultInstance())) { + foo = any.unpack(Foo.getDefaultInstance()); + } Example 3: Pack and unpack a message in Python. @@ -33943,7 +34745,6 @@ paths: name "y.z". - JSON @@ -34065,9 +34866,13 @@ paths: description: admin is the account address of the group's admin. metadata: type: string - description: >- + title: >- metadata is any arbitrary metadata to attached to the group. + + the recommended format of the metadata is to be found + here: + https://docs.cosmos.network/v0.47/modules/group#group-1 version: type: string format: uint64 @@ -34231,6 +35036,10 @@ paths: if (any.is(Foo.class)) { foo = any.unpack(Foo.class); } + // or ... + if (any.isSameTypeAs(Foo.getDefaultInstance())) { + foo = any.unpack(Foo.getDefaultInstance()); + } Example 3: Pack and unpack a message in Python. @@ -34270,7 +35079,6 @@ paths: name "y.z". - JSON @@ -34397,9 +35205,13 @@ paths: description: admin is the account address of the group's admin. metadata: type: string - description: >- + title: >- metadata is any arbitrary metadata to attached to the group. + + the recommended format of the metadata is to be found + here: + https://docs.cosmos.network/v0.47/modules/group#group-1 version: type: string format: uint64 @@ -34563,6 +35375,10 @@ paths: if (any.is(Foo.class)) { foo = any.unpack(Foo.class); } + // or ... + if (any.isSameTypeAs(Foo.getDefaultInstance())) { + foo = any.unpack(Foo.getDefaultInstance()); + } Example 3: Pack and unpack a message in Python. @@ -34602,7 +35418,6 @@ paths: name "y.z". - JSON @@ -34730,9 +35545,13 @@ paths: policy. metadata: type: string - description: >- + title: >- metadata is any arbitrary metadata attached to the proposal. + + the recommended format of the metadata is to be found + here: + https://docs.cosmos.network/v0.47/modules/group#proposal-4 proposers: type: array items: @@ -34933,6 +35752,10 @@ paths: if (any.is(Foo.class)) { foo = any.unpack(Foo.class); } + // or ... + if (any.isSameTypeAs(Foo.getDefaultInstance())) { + foo = any.unpack(Foo.getDefaultInstance()); + } Example 3: Pack and unpack a message in Python. @@ -34972,7 +35795,6 @@ paths: name "y.z". - JSON @@ -35138,6 +35960,10 @@ paths: if (any.is(Foo.class)) { foo = any.unpack(Foo.class); } + // or ... + if (any.isSameTypeAs(Foo.getDefaultInstance())) { + foo = any.unpack(Foo.getDefaultInstance()); + } Example 3: Pack and unpack a message in Python. @@ -35177,7 +36003,6 @@ paths: name "y.z". - JSON @@ -35375,6 +36200,10 @@ paths: if (any.is(Foo.class)) { foo = any.unpack(Foo.class); } + // or ... + if (any.isSameTypeAs(Foo.getDefaultInstance())) { + foo = any.unpack(Foo.getDefaultInstance()); + } Example 3: Pack and unpack a message in Python. @@ -35414,7 +36243,6 @@ paths: name "y.z". - JSON @@ -35490,9 +36318,13 @@ paths: policy. metadata: type: string - description: >- + title: >- metadata is any arbitrary metadata attached to the proposal. + + the recommended format of the metadata is to be found + here: + https://docs.cosmos.network/v0.47/modules/group#proposal-4 proposers: type: array items: @@ -35693,6 +36525,10 @@ paths: if (any.is(Foo.class)) { foo = any.unpack(Foo.class); } + // or ... + if (any.isSameTypeAs(Foo.getDefaultInstance())) { + foo = any.unpack(Foo.getDefaultInstance()); + } Example 3: Pack and unpack a message in Python. @@ -35732,7 +36568,6 @@ paths: name "y.z". - JSON @@ -35931,6 +36766,10 @@ paths: if (any.is(Foo.class)) { foo = any.unpack(Foo.class); } + // or ... + if (any.isSameTypeAs(Foo.getDefaultInstance())) { + foo = any.unpack(Foo.getDefaultInstance()); + } Example 3: Pack and unpack a message in Python. @@ -35970,7 +36809,6 @@ paths: name "y.z". - JSON @@ -36108,11 +36946,17 @@ paths: default: VOTE_OPTION_UNSPECIFIED metadata: type: string - description: metadata is any arbitrary metadata attached to the vote. + title: >- + metadata is any arbitrary metadata attached to the vote. + + the recommended format of the metadata is to be found + here: + https://docs.cosmos.network/v0.47/modules/group#vote-2 submit_time: type: string format: date-time description: submit_time is the timestamp when the vote was submitted. + title: Vote represents a vote for a proposal.string metadata description: >- QueryVoteByProposalVoterResponse is the Query/VoteByProposalVoter response type. @@ -36229,6 +37073,10 @@ paths: if (any.is(Foo.class)) { foo = any.unpack(Foo.class); } + // or ... + if (any.isSameTypeAs(Foo.getDefaultInstance())) { + foo = any.unpack(Foo.getDefaultInstance()); + } Example 3: Pack and unpack a message in Python. @@ -36268,7 +37116,6 @@ paths: name "y.z". - JSON @@ -36355,14 +37202,19 @@ paths: default: VOTE_OPTION_UNSPECIFIED metadata: type: string - description: metadata is any arbitrary metadata attached to the vote. + title: >- + metadata is any arbitrary metadata attached to the vote. + + the recommended format of the metadata is to be found + here: + https://docs.cosmos.network/v0.47/modules/group#vote-2 submit_time: type: string format: date-time description: >- submit_time is the timestamp when the vote was submitted. - description: Vote represents a vote for a proposal. + title: Vote represents a vote for a proposal.string metadata description: votes are the list of votes for given proposal_id. pagination: description: pagination defines the pagination in the response. @@ -36499,6 +37351,10 @@ paths: if (any.is(Foo.class)) { foo = any.unpack(Foo.class); } + // or ... + if (any.isSameTypeAs(Foo.getDefaultInstance())) { + foo = any.unpack(Foo.getDefaultInstance()); + } Example 3: Pack and unpack a message in Python. @@ -36538,7 +37394,6 @@ paths: name "y.z". - JSON @@ -36676,14 +37531,19 @@ paths: default: VOTE_OPTION_UNSPECIFIED metadata: type: string - description: metadata is any arbitrary metadata attached to the vote. + title: >- + metadata is any arbitrary metadata attached to the vote. + + the recommended format of the metadata is to be found + here: + https://docs.cosmos.network/v0.47/modules/group#vote-2 submit_time: type: string format: date-time description: >- submit_time is the timestamp when the vote was submitted. - description: Vote represents a vote for a proposal. + title: Vote represents a vote for a proposal.string metadata description: votes are the list of votes by given voter. pagination: description: pagination defines the pagination in the response. @@ -36818,6 +37678,10 @@ paths: if (any.is(Foo.class)) { foo = any.unpack(Foo.class); } + // or ... + if (any.isSameTypeAs(Foo.getDefaultInstance())) { + foo = any.unpack(Foo.getDefaultInstance()); + } Example 3: Pack and unpack a message in Python. @@ -36857,7 +37721,6 @@ paths: name "y.z". - JSON @@ -37081,6 +37944,10 @@ definitions: if (any.is(Foo.class)) { foo = any.unpack(Foo.class); } + // or ... + if (any.isSameTypeAs(Foo.getDefaultInstance())) { + foo = any.unpack(Foo.getDefaultInstance()); + } Example 3: Pack and unpack a message in Python. @@ -37116,7 +37983,6 @@ definitions: name "y.z". - JSON @@ -37306,6 +38172,10 @@ definitions: if (any.is(Foo.class)) { foo = any.unpack(Foo.class); } + // or ... + if (any.isSameTypeAs(Foo.getDefaultInstance())) { + foo = any.unpack(Foo.getDefaultInstance()); + } Example 3: Pack and unpack a message in Python. @@ -37342,7 +38212,6 @@ definitions: name "y.z". - JSON @@ -37482,6 +38351,10 @@ definitions: if (any.is(Foo.class)) { foo = any.unpack(Foo.class); } + // or ... + if (any.isSameTypeAs(Foo.getDefaultInstance())) { + foo = any.unpack(Foo.getDefaultInstance()); + } Example 3: Pack and unpack a message in Python. @@ -37517,7 +38390,6 @@ definitions: name "y.z". - JSON @@ -37654,6 +38526,10 @@ definitions: if (any.is(Foo.class)) { foo = any.unpack(Foo.class); } + // or ... + if (any.isSameTypeAs(Foo.getDefaultInstance())) { + foo = any.unpack(Foo.getDefaultInstance()); + } Example 3: Pack and unpack a message in Python. @@ -37689,7 +38565,6 @@ definitions: name "y.z". - JSON @@ -37844,6 +38719,10 @@ definitions: if (any.is(Foo.class)) { foo = any.unpack(Foo.class); } + // or ... + if (any.isSameTypeAs(Foo.getDefaultInstance())) { + foo = any.unpack(Foo.getDefaultInstance()); + } Example 3: Pack and unpack a message in Python. @@ -37879,7 +38758,6 @@ definitions: name "y.z". - JSON @@ -38016,6 +38894,10 @@ definitions: if (any.is(Foo.class)) { foo = any.unpack(Foo.class); } + // or ... + if (any.isSameTypeAs(Foo.getDefaultInstance())) { + foo = any.unpack(Foo.getDefaultInstance()); + } Example 3: Pack and unpack a message in Python. @@ -38051,7 +38933,6 @@ definitions: name "y.z". - JSON @@ -38279,6 +39160,10 @@ definitions: if (any.is(Foo.class)) { foo = any.unpack(Foo.class); } + // or ... + if (any.isSameTypeAs(Foo.getDefaultInstance())) { + foo = any.unpack(Foo.getDefaultInstance()); + } Example 3: Pack and unpack a message in Python. @@ -38314,7 +39199,6 @@ definitions: name "y.z". - JSON @@ -38455,6 +39339,10 @@ definitions: if (any.is(Foo.class)) { foo = any.unpack(Foo.class); } + // or ... + if (any.isSameTypeAs(Foo.getDefaultInstance())) { + foo = any.unpack(Foo.getDefaultInstance()); + } Example 3: Pack and unpack a message in Python. @@ -38490,7 +39378,6 @@ definitions: name "y.z". - JSON @@ -39487,9 +40374,32 @@ definitions: signature: type: string format: byte + description: >- + Vote signature by the validator if they participated + in consensus for the + + associated block. + extension: + type: string + format: byte + description: >- + Vote extension provided by the application. Only + valid for precommit + + messages. + extension_signature: + type: string + format: byte + description: >- + Vote extension signature by the validator if they + participated in + + consensus for the associated block. + + Only valid for precommit messages. description: >- - Vote represents a prevote, precommit, or commit vote - from validators for + Vote represents a prevote or precommit vote from + validators for consensus. vote_b: @@ -39544,9 +40454,32 @@ definitions: signature: type: string format: byte + description: >- + Vote signature by the validator if they participated + in consensus for the + + associated block. + extension: + type: string + format: byte + description: >- + Vote extension provided by the application. Only + valid for precommit + + messages. + extension_signature: + type: string + format: byte + description: >- + Vote extension signature by the validator if they + participated in + + consensus for the associated block. + + Only valid for precommit messages. description: >- - Vote represents a prevote, precommit, or commit vote - from validators for + Vote represents a prevote or precommit vote from + validators for consensus. total_voting_power: @@ -39648,9 +40581,7 @@ definitions: proposer_address: type: string format: byte - description: >- - Header defines the structure of a Tendermint - block header. + description: Header defines the structure of a block header. commit: type: object properties: @@ -39691,7 +40622,7 @@ definitions: - BLOCK_ID_FLAG_NIL default: BLOCK_ID_FLAG_UNKNOWN title: >- - BlockIdFlag indicates which BlcokID the + BlockIdFlag indicates which BlockID the signature is for validator_address: type: string @@ -39730,7 +40661,7 @@ definitions: format: byte title: >- PublicKey defines the keys available for - use with Tendermint Validators + use with Validators voting_power: type: string format: int64 @@ -39754,7 +40685,7 @@ definitions: format: byte title: >- PublicKey defines the keys available for use - with Tendermint Validators + with Validators voting_power: type: string format: int64 @@ -39786,7 +40717,7 @@ definitions: format: byte title: >- PublicKey defines the keys available for use with - Tendermint Validators + Validators voting_power: type: string format: int64 @@ -39841,7 +40772,7 @@ definitions: - BLOCK_ID_FLAG_COMMIT - BLOCK_ID_FLAG_NIL default: BLOCK_ID_FLAG_UNKNOWN - title: BlockIdFlag indicates which BlcokID the signature is for + title: BlockIdFlag indicates which BlockID the signature is for validator_address: type: string format: byte @@ -39958,7 +40889,7 @@ definitions: proposer_address: type: string format: byte - description: Header defines the structure of a Tendermint block header. + description: Header defines the structure of a block header. data: type: object properties: @@ -40038,9 +40969,32 @@ definitions: signature: type: string format: byte + description: >- + Vote signature by the validator if they + participated in consensus for the + + associated block. + extension: + type: string + format: byte + description: >- + Vote extension provided by the application. Only + valid for precommit + + messages. + extension_signature: + type: string + format: byte + description: >- + Vote extension signature by the validator if + they participated in + + consensus for the associated block. + + Only valid for precommit messages. description: >- - Vote represents a prevote, precommit, or commit vote - from validators for + Vote represents a prevote or precommit vote from + validators for consensus. vote_b: @@ -40095,9 +41049,32 @@ definitions: signature: type: string format: byte + description: >- + Vote signature by the validator if they + participated in consensus for the + + associated block. + extension: + type: string + format: byte + description: >- + Vote extension provided by the application. Only + valid for precommit + + messages. + extension_signature: + type: string + format: byte + description: >- + Vote extension signature by the validator if + they participated in + + consensus for the associated block. + + Only valid for precommit messages. description: >- - Vote represents a prevote, precommit, or commit vote - from validators for + Vote represents a prevote or precommit vote from + validators for consensus. total_voting_power: @@ -40201,8 +41178,8 @@ definitions: type: string format: byte description: >- - Header defines the structure of a Tendermint - block header. + Header defines the structure of a block + header. commit: type: object properties: @@ -40243,7 +41220,7 @@ definitions: - BLOCK_ID_FLAG_NIL default: BLOCK_ID_FLAG_UNKNOWN title: >- - BlockIdFlag indicates which BlcokID the + BlockIdFlag indicates which BlockID the signature is for validator_address: type: string @@ -40282,7 +41259,7 @@ definitions: format: byte title: >- PublicKey defines the keys available for - use with Tendermint Validators + use with Validators voting_power: type: string format: int64 @@ -40306,7 +41283,7 @@ definitions: format: byte title: >- PublicKey defines the keys available for - use with Tendermint Validators + use with Validators voting_power: type: string format: int64 @@ -40338,7 +41315,7 @@ definitions: format: byte title: >- PublicKey defines the keys available for use - with Tendermint Validators + with Validators voting_power: type: string format: int64 @@ -40393,7 +41370,7 @@ definitions: - BLOCK_ID_FLAG_COMMIT - BLOCK_ID_FLAG_NIL default: BLOCK_ID_FLAG_UNKNOWN - title: BlockIdFlag indicates which BlcokID the signature is for + title: BlockIdFlag indicates which BlockID the signature is for validator_address: type: string format: byte @@ -40574,9 +41551,32 @@ definitions: signature: type: string format: byte + description: >- + Vote signature by the validator if they + participated in consensus for the + + associated block. + extension: + type: string + format: byte + description: >- + Vote extension provided by the application. Only + valid for precommit + + messages. + extension_signature: + type: string + format: byte + description: >- + Vote extension signature by the validator if + they participated in + + consensus for the associated block. + + Only valid for precommit messages. description: >- - Vote represents a prevote, precommit, or commit vote - from validators for + Vote represents a prevote or precommit vote from + validators for consensus. vote_b: @@ -40631,9 +41631,32 @@ definitions: signature: type: string format: byte + description: >- + Vote signature by the validator if they + participated in consensus for the + + associated block. + extension: + type: string + format: byte + description: >- + Vote extension provided by the application. Only + valid for precommit + + messages. + extension_signature: + type: string + format: byte + description: >- + Vote extension signature by the validator if + they participated in + + consensus for the associated block. + + Only valid for precommit messages. description: >- - Vote represents a prevote, precommit, or commit vote - from validators for + Vote represents a prevote or precommit vote from + validators for consensus. total_voting_power: @@ -40737,8 +41760,8 @@ definitions: type: string format: byte description: >- - Header defines the structure of a Tendermint - block header. + Header defines the structure of a block + header. commit: type: object properties: @@ -40779,7 +41802,7 @@ definitions: - BLOCK_ID_FLAG_NIL default: BLOCK_ID_FLAG_UNKNOWN title: >- - BlockIdFlag indicates which BlcokID the + BlockIdFlag indicates which BlockID the signature is for validator_address: type: string @@ -40818,7 +41841,7 @@ definitions: format: byte title: >- PublicKey defines the keys available for - use with Tendermint Validators + use with Validators voting_power: type: string format: int64 @@ -40842,7 +41865,7 @@ definitions: format: byte title: >- PublicKey defines the keys available for - use with Tendermint Validators + use with Validators voting_power: type: string format: int64 @@ -40874,7 +41897,7 @@ definitions: format: byte title: >- PublicKey defines the keys available for use - with Tendermint Validators + with Validators voting_power: type: string format: int64 @@ -40929,7 +41952,7 @@ definitions: - BLOCK_ID_FLAG_COMMIT - BLOCK_ID_FLAG_NIL default: BLOCK_ID_FLAG_UNKNOWN - title: BlockIdFlag indicates which BlcokID the signature is for + title: BlockIdFlag indicates which BlockID the signature is for validator_address: type: string format: byte @@ -41049,7 +42072,7 @@ definitions: proposer_address: type: string format: byte - description: Header defines the structure of a Tendermint block header. + description: Header defines the structure of a block header. data: type: object properties: @@ -41129,9 +42152,32 @@ definitions: signature: type: string format: byte + description: >- + Vote signature by the validator if they + participated in consensus for the + + associated block. + extension: + type: string + format: byte + description: >- + Vote extension provided by the application. Only + valid for precommit + + messages. + extension_signature: + type: string + format: byte + description: >- + Vote extension signature by the validator if + they participated in + + consensus for the associated block. + + Only valid for precommit messages. description: >- - Vote represents a prevote, precommit, or commit vote - from validators for + Vote represents a prevote or precommit vote from + validators for consensus. vote_b: @@ -41186,9 +42232,32 @@ definitions: signature: type: string format: byte + description: >- + Vote signature by the validator if they + participated in consensus for the + + associated block. + extension: + type: string + format: byte + description: >- + Vote extension provided by the application. Only + valid for precommit + + messages. + extension_signature: + type: string + format: byte + description: >- + Vote extension signature by the validator if + they participated in + + consensus for the associated block. + + Only valid for precommit messages. description: >- - Vote represents a prevote, precommit, or commit vote - from validators for + Vote represents a prevote or precommit vote from + validators for consensus. total_voting_power: @@ -41292,8 +42361,8 @@ definitions: type: string format: byte description: >- - Header defines the structure of a Tendermint - block header. + Header defines the structure of a block + header. commit: type: object properties: @@ -41334,7 +42403,7 @@ definitions: - BLOCK_ID_FLAG_NIL default: BLOCK_ID_FLAG_UNKNOWN title: >- - BlockIdFlag indicates which BlcokID the + BlockIdFlag indicates which BlockID the signature is for validator_address: type: string @@ -41373,7 +42442,7 @@ definitions: format: byte title: >- PublicKey defines the keys available for - use with Tendermint Validators + use with Validators voting_power: type: string format: int64 @@ -41397,7 +42466,7 @@ definitions: format: byte title: >- PublicKey defines the keys available for - use with Tendermint Validators + use with Validators voting_power: type: string format: int64 @@ -41429,7 +42498,7 @@ definitions: format: byte title: >- PublicKey defines the keys available for use - with Tendermint Validators + with Validators voting_power: type: string format: int64 @@ -41484,7 +42553,7 @@ definitions: - BLOCK_ID_FLAG_COMMIT - BLOCK_ID_FLAG_NIL default: BLOCK_ID_FLAG_UNKNOWN - title: BlockIdFlag indicates which BlcokID the signature is for + title: BlockIdFlag indicates which BlockID the signature is for validator_address: type: string format: byte @@ -41665,9 +42734,32 @@ definitions: signature: type: string format: byte + description: >- + Vote signature by the validator if they + participated in consensus for the + + associated block. + extension: + type: string + format: byte + description: >- + Vote extension provided by the application. Only + valid for precommit + + messages. + extension_signature: + type: string + format: byte + description: >- + Vote extension signature by the validator if + they participated in + + consensus for the associated block. + + Only valid for precommit messages. description: >- - Vote represents a prevote, precommit, or commit vote - from validators for + Vote represents a prevote or precommit vote from + validators for consensus. vote_b: @@ -41722,9 +42814,32 @@ definitions: signature: type: string format: byte + description: >- + Vote signature by the validator if they + participated in consensus for the + + associated block. + extension: + type: string + format: byte + description: >- + Vote extension provided by the application. Only + valid for precommit + + messages. + extension_signature: + type: string + format: byte + description: >- + Vote extension signature by the validator if + they participated in + + consensus for the associated block. + + Only valid for precommit messages. description: >- - Vote represents a prevote, precommit, or commit vote - from validators for + Vote represents a prevote or precommit vote from + validators for consensus. total_voting_power: @@ -41828,8 +42943,8 @@ definitions: type: string format: byte description: >- - Header defines the structure of a Tendermint - block header. + Header defines the structure of a block + header. commit: type: object properties: @@ -41870,7 +42985,7 @@ definitions: - BLOCK_ID_FLAG_NIL default: BLOCK_ID_FLAG_UNKNOWN title: >- - BlockIdFlag indicates which BlcokID the + BlockIdFlag indicates which BlockID the signature is for validator_address: type: string @@ -41909,7 +43024,7 @@ definitions: format: byte title: >- PublicKey defines the keys available for - use with Tendermint Validators + use with Validators voting_power: type: string format: int64 @@ -41933,7 +43048,7 @@ definitions: format: byte title: >- PublicKey defines the keys available for - use with Tendermint Validators + use with Validators voting_power: type: string format: int64 @@ -41965,7 +43080,7 @@ definitions: format: byte title: >- PublicKey defines the keys available for use - with Tendermint Validators + with Validators voting_power: type: string format: int64 @@ -42020,7 +43135,7 @@ definitions: - BLOCK_ID_FLAG_COMMIT - BLOCK_ID_FLAG_NIL default: BLOCK_ID_FLAG_UNKNOWN - title: BlockIdFlag indicates which BlcokID the signature is for + title: BlockIdFlag indicates which BlockID the signature is for validator_address: type: string format: byte @@ -42151,6 +43266,10 @@ definitions: if (any.is(Foo.class)) { foo = any.unpack(Foo.class); } + // or ... + if (any.isSameTypeAs(Foo.getDefaultInstance())) { + foo = any.unpack(Foo.getDefaultInstance()); + } Example 3: Pack and unpack a message in Python. @@ -42189,7 +43308,6 @@ definitions: name "y.z". - JSON @@ -42447,6 +43565,10 @@ definitions: if (any.is(Foo.class)) { foo = any.unpack(Foo.class); } + // or ... + if (any.isSameTypeAs(Foo.getDefaultInstance())) { + foo = any.unpack(Foo.getDefaultInstance()); + } Example 3: Pack and unpack a message in Python. @@ -42485,7 +43607,6 @@ definitions: name "y.z". - JSON @@ -42800,6 +43921,10 @@ definitions: if (any.is(Foo.class)) { foo = any.unpack(Foo.class); } + // or ... + if (any.isSameTypeAs(Foo.getDefaultInstance())) { + foo = any.unpack(Foo.getDefaultInstance()); + } Example 3: Pack and unpack a message in Python. @@ -42835,7 +43960,6 @@ definitions: name "y.z". - JSON @@ -42919,7 +44043,7 @@ definitions: secp256k1: type: string format: byte - title: PublicKey defines the keys available for use with Tendermint Validators + title: PublicKey defines the keys available for use with Validators tendermint.p2p.DefaultNodeInfo: type: object properties: @@ -43053,7 +44177,7 @@ definitions: proposer_address: type: string format: byte - description: Header defines the structure of a Tendermint block header. + description: Header defines the structure of a block header. data: type: object properties: @@ -43133,9 +44257,32 @@ definitions: signature: type: string format: byte + description: >- + Vote signature by the validator if they participated + in consensus for the + + associated block. + extension: + type: string + format: byte + description: >- + Vote extension provided by the application. Only + valid for precommit + + messages. + extension_signature: + type: string + format: byte + description: >- + Vote extension signature by the validator if they + participated in + + consensus for the associated block. + + Only valid for precommit messages. description: >- - Vote represents a prevote, precommit, or commit vote - from validators for + Vote represents a prevote or precommit vote from + validators for consensus. vote_b: @@ -43190,9 +44337,32 @@ definitions: signature: type: string format: byte + description: >- + Vote signature by the validator if they participated + in consensus for the + + associated block. + extension: + type: string + format: byte + description: >- + Vote extension provided by the application. Only + valid for precommit + + messages. + extension_signature: + type: string + format: byte + description: >- + Vote extension signature by the validator if they + participated in + + consensus for the associated block. + + Only valid for precommit messages. description: >- - Vote represents a prevote, precommit, or commit vote - from validators for + Vote represents a prevote or precommit vote from + validators for consensus. total_voting_power: @@ -43294,9 +44464,7 @@ definitions: proposer_address: type: string format: byte - description: >- - Header defines the structure of a Tendermint - block header. + description: Header defines the structure of a block header. commit: type: object properties: @@ -43337,7 +44505,7 @@ definitions: - BLOCK_ID_FLAG_NIL default: BLOCK_ID_FLAG_UNKNOWN title: >- - BlockIdFlag indicates which BlcokID the + BlockIdFlag indicates which BlockID the signature is for validator_address: type: string @@ -43376,7 +44544,7 @@ definitions: format: byte title: >- PublicKey defines the keys available for - use with Tendermint Validators + use with Validators voting_power: type: string format: int64 @@ -43400,7 +44568,7 @@ definitions: format: byte title: >- PublicKey defines the keys available for use - with Tendermint Validators + with Validators voting_power: type: string format: int64 @@ -43432,7 +44600,7 @@ definitions: format: byte title: >- PublicKey defines the keys available for use with - Tendermint Validators + Validators voting_power: type: string format: int64 @@ -43487,7 +44655,7 @@ definitions: - BLOCK_ID_FLAG_COMMIT - BLOCK_ID_FLAG_NIL default: BLOCK_ID_FLAG_UNKNOWN - title: BlockIdFlag indicates which BlcokID the signature is for + title: BlockIdFlag indicates which BlockID the signature is for validator_address: type: string format: byte @@ -43526,7 +44694,7 @@ definitions: - BLOCK_ID_FLAG_COMMIT - BLOCK_ID_FLAG_NIL default: BLOCK_ID_FLAG_UNKNOWN - title: BlockIdFlag indicates which BlcokID the signature is for + title: BlockIdFlag indicates which BlockID the signature is for tendermint.types.Commit: type: object properties: @@ -43566,7 +44734,7 @@ definitions: - BLOCK_ID_FLAG_COMMIT - BLOCK_ID_FLAG_NIL default: BLOCK_ID_FLAG_UNKNOWN - title: BlockIdFlag indicates which BlcokID the signature is for + title: BlockIdFlag indicates which BlockID the signature is for validator_address: type: string format: byte @@ -43591,7 +44759,7 @@ definitions: - BLOCK_ID_FLAG_COMMIT - BLOCK_ID_FLAG_NIL default: BLOCK_ID_FLAG_UNKNOWN - title: BlockIdFlag indicates which BlcokID the signature is for + title: BlockIdFlag indicates which BlockID the signature is for validator_address: type: string format: byte @@ -43672,10 +44840,28 @@ definitions: signature: type: string format: byte - description: >- - Vote represents a prevote, precommit, or commit vote from validators - for + description: >- + Vote signature by the validator if they participated in consensus + for the + associated block. + extension: + type: string + format: byte + description: >- + Vote extension provided by the application. Only valid for + precommit + + messages. + extension_signature: + type: string + format: byte + description: |- + Vote extension signature by the validator if they participated in + consensus for the associated block. + Only valid for precommit messages. + description: |- + Vote represents a prevote or precommit vote from validators for consensus. vote_b: type: object @@ -43728,10 +44914,28 @@ definitions: signature: type: string format: byte - description: >- - Vote represents a prevote, precommit, or commit vote from validators - for + description: >- + Vote signature by the validator if they participated in consensus + for the + associated block. + extension: + type: string + format: byte + description: >- + Vote extension provided by the application. Only valid for + precommit + + messages. + extension_signature: + type: string + format: byte + description: |- + Vote extension signature by the validator if they participated in + consensus for the associated block. + Only valid for precommit messages. + description: |- + Vote represents a prevote or precommit vote from validators for consensus. total_voting_power: type: string @@ -43802,10 +45006,31 @@ definitions: signature: type: string format: byte - description: >- - Vote represents a prevote, precommit, or commit vote from - validators for + description: >- + Vote signature by the validator if they participated in + consensus for the + associated block. + extension: + type: string + format: byte + description: >- + Vote extension provided by the application. Only valid for + precommit + + messages. + extension_signature: + type: string + format: byte + description: >- + Vote extension signature by the validator if they participated + in + + consensus for the associated block. + + Only valid for precommit messages. + description: |- + Vote represents a prevote or precommit vote from validators for consensus. vote_b: type: object @@ -43858,10 +45083,31 @@ definitions: signature: type: string format: byte - description: >- - Vote represents a prevote, precommit, or commit vote from - validators for + description: >- + Vote signature by the validator if they participated in + consensus for the + associated block. + extension: + type: string + format: byte + description: >- + Vote extension provided by the application. Only valid for + precommit + + messages. + extension_signature: + type: string + format: byte + description: >- + Vote extension signature by the validator if they participated + in + + consensus for the associated block. + + Only valid for precommit messages. + description: |- + Vote represents a prevote or precommit vote from validators for consensus. total_voting_power: type: string @@ -43960,7 +45206,7 @@ definitions: proposer_address: type: string format: byte - description: Header defines the structure of a Tendermint block header. + description: Header defines the structure of a block header. commit: type: object properties: @@ -44001,7 +45247,7 @@ definitions: - BLOCK_ID_FLAG_NIL default: BLOCK_ID_FLAG_UNKNOWN title: >- - BlockIdFlag indicates which BlcokID the + BlockIdFlag indicates which BlockID the signature is for validator_address: type: string @@ -44040,7 +45286,7 @@ definitions: format: byte title: >- PublicKey defines the keys available for use with - Tendermint Validators + Validators voting_power: type: string format: int64 @@ -44064,7 +45310,7 @@ definitions: format: byte title: >- PublicKey defines the keys available for use with - Tendermint Validators + Validators voting_power: type: string format: int64 @@ -44094,9 +45340,7 @@ definitions: secp256k1: type: string format: byte - title: >- - PublicKey defines the keys available for use with Tendermint - Validators + title: PublicKey defines the keys available for use with Validators voting_power: type: string format: int64 @@ -44175,9 +45419,32 @@ definitions: signature: type: string format: byte + description: >- + Vote signature by the validator if they participated in + consensus for the + + associated block. + extension: + type: string + format: byte + description: >- + Vote extension provided by the application. Only valid + for precommit + + messages. + extension_signature: + type: string + format: byte + description: >- + Vote extension signature by the validator if they + participated in + + consensus for the associated block. + + Only valid for precommit messages. description: >- - Vote represents a prevote, precommit, or commit vote from - validators for + Vote represents a prevote or precommit vote from validators + for consensus. vote_b: @@ -44232,9 +45499,32 @@ definitions: signature: type: string format: byte + description: >- + Vote signature by the validator if they participated in + consensus for the + + associated block. + extension: + type: string + format: byte + description: >- + Vote extension provided by the application. Only valid + for precommit + + messages. + extension_signature: + type: string + format: byte + description: >- + Vote extension signature by the validator if they + participated in + + consensus for the associated block. + + Only valid for precommit messages. description: >- - Vote represents a prevote, precommit, or commit vote from - validators for + Vote represents a prevote or precommit vote from validators + for consensus. total_voting_power: @@ -44334,9 +45624,7 @@ definitions: proposer_address: type: string format: byte - description: >- - Header defines the structure of a Tendermint block - header. + description: Header defines the structure of a block header. commit: type: object properties: @@ -44377,7 +45665,7 @@ definitions: - BLOCK_ID_FLAG_NIL default: BLOCK_ID_FLAG_UNKNOWN title: >- - BlockIdFlag indicates which BlcokID the + BlockIdFlag indicates which BlockID the signature is for validator_address: type: string @@ -44416,7 +45704,7 @@ definitions: format: byte title: >- PublicKey defines the keys available for use - with Tendermint Validators + with Validators voting_power: type: string format: int64 @@ -44440,7 +45728,7 @@ definitions: format: byte title: >- PublicKey defines the keys available for use - with Tendermint Validators + with Validators voting_power: type: string format: int64 @@ -44472,7 +45760,7 @@ definitions: format: byte title: >- PublicKey defines the keys available for use with - Tendermint Validators + Validators voting_power: type: string format: int64 @@ -44564,7 +45852,7 @@ definitions: proposer_address: type: string format: byte - description: Header defines the structure of a Tendermint block header. + description: Header defines the structure of a block header. tendermint.types.LightBlock: type: object properties: @@ -44647,7 +45935,7 @@ definitions: proposer_address: type: string format: byte - description: Header defines the structure of a Tendermint block header. + description: Header defines the structure of a block header. commit: type: object properties: @@ -44687,7 +45975,7 @@ definitions: - BLOCK_ID_FLAG_COMMIT - BLOCK_ID_FLAG_NIL default: BLOCK_ID_FLAG_UNKNOWN - title: BlockIdFlag indicates which BlcokID the signature is for + title: BlockIdFlag indicates which BlockID the signature is for validator_address: type: string format: byte @@ -44721,9 +46009,7 @@ definitions: secp256k1: type: string format: byte - title: >- - PublicKey defines the keys available for use with Tendermint - Validators + title: PublicKey defines the keys available for use with Validators voting_power: type: string format: int64 @@ -44745,9 +46031,7 @@ definitions: secp256k1: type: string format: byte - title: >- - PublicKey defines the keys available for use with Tendermint - Validators + title: PublicKey defines the keys available for use with Validators voting_power: type: string format: int64 @@ -44842,7 +46126,7 @@ definitions: proposer_address: type: string format: byte - description: Header defines the structure of a Tendermint block header. + description: Header defines the structure of a block header. commit: type: object properties: @@ -44883,7 +46167,7 @@ definitions: - BLOCK_ID_FLAG_NIL default: BLOCK_ID_FLAG_UNKNOWN title: >- - BlockIdFlag indicates which BlcokID the signature is + BlockIdFlag indicates which BlockID the signature is for validator_address: type: string @@ -44920,7 +46204,7 @@ definitions: format: byte title: >- PublicKey defines the keys available for use with - Tendermint Validators + Validators voting_power: type: string format: int64 @@ -44944,7 +46228,7 @@ definitions: format: byte title: >- PublicKey defines the keys available for use with - Tendermint Validators + Validators voting_power: type: string format: int64 @@ -44974,9 +46258,7 @@ definitions: secp256k1: type: string format: byte - title: >- - PublicKey defines the keys available for use with Tendermint - Validators + title: PublicKey defines the keys available for use with Validators voting_power: type: string format: int64 @@ -45081,7 +46363,7 @@ definitions: proposer_address: type: string format: byte - description: Header defines the structure of a Tendermint block header. + description: Header defines the structure of a block header. commit: type: object properties: @@ -45121,7 +46403,7 @@ definitions: - BLOCK_ID_FLAG_COMMIT - BLOCK_ID_FLAG_NIL default: BLOCK_ID_FLAG_UNKNOWN - title: BlockIdFlag indicates which BlcokID the signature is for + title: BlockIdFlag indicates which BlockID the signature is for validator_address: type: string format: byte @@ -45163,9 +46445,7 @@ definitions: secp256k1: type: string format: byte - title: >- - PublicKey defines the keys available for use with Tendermint - Validators + title: PublicKey defines the keys available for use with Validators voting_power: type: string format: int64 @@ -45192,9 +46472,7 @@ definitions: secp256k1: type: string format: byte - title: >- - PublicKey defines the keys available for use with Tendermint - Validators + title: PublicKey defines the keys available for use with Validators voting_power: type: string format: int64 @@ -45216,9 +46494,7 @@ definitions: secp256k1: type: string format: byte - title: >- - PublicKey defines the keys available for use with Tendermint - Validators + title: PublicKey defines the keys available for use with Validators voting_power: type: string format: int64 @@ -45279,8 +46555,26 @@ definitions: signature: type: string format: byte + description: >- + Vote signature by the validator if they participated in consensus for + the + + associated block. + extension: + type: string + format: byte + description: |- + Vote extension provided by the application. Only valid for precommit + messages. + extension_signature: + type: string + format: byte + description: |- + Vote extension signature by the validator if they participated in + consensus for the associated block. + Only valid for precommit messages. description: |- - Vote represents a prevote, precommit, or commit vote from validators for + Vote represents a prevote or precommit vote from validators for consensus. tendermint.version.Consensus: type: object @@ -45788,6 +47082,10 @@ definitions: if (any.is(Foo.class)) { foo = any.unpack(Foo.class); } + // or ... + if (any.isSameTypeAs(Foo.getDefaultInstance())) { + foo = any.unpack(Foo.getDefaultInstance()); + } Example 3: Pack and unpack a message in Python. @@ -45823,7 +47121,6 @@ definitions: name "y.z". - JSON @@ -45977,6 +47274,10 @@ definitions: if (any.is(Foo.class)) { foo = any.unpack(Foo.class); } + // or ... + if (any.isSameTypeAs(Foo.getDefaultInstance())) { + foo = any.unpack(Foo.getDefaultInstance()); + } Example 3: Pack and unpack a message in Python. @@ -46012,7 +47313,6 @@ definitions: name "y.z". - JSON @@ -46202,6 +47502,10 @@ definitions: if (any.is(Foo.class)) { foo = any.unpack(Foo.class); } + // or ... + if (any.isSameTypeAs(Foo.getDefaultInstance())) { + foo = any.unpack(Foo.getDefaultInstance()); + } Example 3: Pack and unpack a message in Python. @@ -46237,7 +47541,6 @@ definitions: name "y.z". - JSON @@ -46627,6 +47930,10 @@ definitions: if (any.is(Foo.class)) { foo = any.unpack(Foo.class); } + // or ... + if (any.isSameTypeAs(Foo.getDefaultInstance())) { + foo = any.unpack(Foo.getDefaultInstance()); + } Example 3: Pack and unpack a message in Python. @@ -46663,7 +47970,6 @@ definitions: name "y.z". - JSON @@ -46881,6 +48187,10 @@ definitions: if (any.is(Foo.class)) { foo = any.unpack(Foo.class); } + // or ... + if (any.isSameTypeAs(Foo.getDefaultInstance())) { + foo = any.unpack(Foo.getDefaultInstance()); + } Example 3: Pack and unpack a message in Python. @@ -46919,7 +48229,6 @@ definitions: name "y.z". - JSON @@ -47468,7 +48777,7 @@ definitions: when a proposal is cancelled. - Since: cosmos-sdk 0.48 + Since: cosmos-sdk 0.50 proposal_cancel_dest: type: string description: >- @@ -47479,13 +48788,13 @@ definitions: be burned. - Since: cosmos-sdk 0.48 + Since: cosmos-sdk 0.50 expedited_voting_period: type: string description: |- Duration of the voting period of an expedited proposal. - Since: cosmos-sdk 0.48 + Since: cosmos-sdk 0.50 expedited_threshold: type: string description: >- @@ -47493,7 +48802,7 @@ definitions: 0.67. - Since: cosmos-sdk 0.48 + Since: cosmos-sdk 0.50 expedited_min_deposit: type: array items: @@ -47509,6 +48818,15 @@ definitions: NOTE: The amount field is an Int which implements the custom method signatures required by gogoproto. description: Minimum expedited deposit for a proposal to enter voting period. + burn_vote_quorum: + type: boolean + title: burn deposits if a proposal does not meet quorum + burn_proposal_deposit_prevote: + type: boolean + title: burn deposits if the proposal does not enter voting period + burn_vote_veto: + type: boolean + title: burn deposits if quorum with vote type no_veto is met description: |- Params defines the parameters for the x/gov module. @@ -47617,6 +48935,10 @@ definitions: if (any.is(Foo.class)) { foo = any.unpack(Foo.class); } + // or ... + if (any.isSameTypeAs(Foo.getDefaultInstance())) { + foo = any.unpack(Foo.getDefaultInstance()); + } Example 3: Pack and unpack a message in Python. @@ -47652,7 +48974,6 @@ definitions: name "y.z". - JSON @@ -47754,7 +49075,11 @@ definitions: description: voting_end_time is the end time of voting on a proposal. metadata: type: string - description: metadata is any arbitrary metadata attached to the proposal. + title: >- + metadata is any arbitrary metadata attached to the proposal. + + the recommended format of the metadata is to be found here: + https://docs.cosmos.network/v0.47/modules/gov#proposal-3 title: type: string description: 'Since: cosmos-sdk 0.47' @@ -47769,7 +49094,7 @@ definitions: title: proposer is the address of the proposal sumbitter expedited: type: boolean - description: 'Since: cosmos-sdk 0.48' + description: 'Since: cosmos-sdk 0.50' title: expedited defines if the proposal is expedited description: Proposal defines the core field members of a governance proposal. cosmos.gov.v1.ProposalStatus: @@ -47796,6 +49121,14 @@ definitions: been rejected. - PROPOSAL_STATUS_FAILED: PROPOSAL_STATUS_FAILED defines a proposal status of a proposal that has failed. + cosmos.gov.v1.QueryConstitutionResponse: + type: object + properties: + constitution: + type: string + title: >- + QueryConstitutionResponse is the response type for the Query/Constitution + RPC method cosmos.gov.v1.QueryDepositResponse: type: object properties: @@ -48026,7 +49359,7 @@ definitions: when a proposal is cancelled. - Since: cosmos-sdk 0.48 + Since: cosmos-sdk 0.50 proposal_cancel_dest: type: string description: >- @@ -48037,13 +49370,13 @@ definitions: will be burned. - Since: cosmos-sdk 0.48 + Since: cosmos-sdk 0.50 expedited_voting_period: type: string description: |- Duration of the voting period of an expedited proposal. - Since: cosmos-sdk 0.48 + Since: cosmos-sdk 0.50 expedited_threshold: type: string description: >- @@ -48051,7 +49384,7 @@ definitions: value: 0.67. - Since: cosmos-sdk 0.48 + Since: cosmos-sdk 0.50 expedited_min_deposit: type: array items: @@ -48070,6 +49403,15 @@ definitions: signatures required by gogoproto. description: Minimum expedited deposit for a proposal to enter voting period. + burn_vote_quorum: + type: boolean + title: burn deposits if a proposal does not meet quorum + burn_proposal_deposit_prevote: + type: boolean + title: burn deposits if the proposal does not enter voting period + burn_vote_veto: + type: boolean + title: burn deposits if quorum with vote type no_veto is met description: QueryParamsResponse is the response type for the Query/Params RPC method. cosmos.gov.v1.QueryProposalResponse: type: object @@ -48181,6 +49523,10 @@ definitions: if (any.is(Foo.class)) { foo = any.unpack(Foo.class); } + // or ... + if (any.isSameTypeAs(Foo.getDefaultInstance())) { + foo = any.unpack(Foo.getDefaultInstance()); + } Example 3: Pack and unpack a message in Python. @@ -48219,7 +49565,6 @@ definitions: name "y.z". - JSON @@ -48328,7 +49673,11 @@ definitions: description: voting_end_time is the end time of voting on a proposal. metadata: type: string - description: metadata is any arbitrary metadata attached to the proposal. + title: >- + metadata is any arbitrary metadata attached to the proposal. + + the recommended format of the metadata is to be found here: + https://docs.cosmos.network/v0.47/modules/gov#proposal-3 title: type: string description: 'Since: cosmos-sdk 0.47' @@ -48343,7 +49692,7 @@ definitions: title: proposer is the address of the proposal sumbitter expedited: type: boolean - description: 'Since: cosmos-sdk 0.48' + description: 'Since: cosmos-sdk 0.50' title: expedited defines if the proposal is expedited description: Proposal defines the core field members of a governance proposal. description: >- @@ -48461,6 +49810,10 @@ definitions: if (any.is(Foo.class)) { foo = any.unpack(Foo.class); } + // or ... + if (any.isSameTypeAs(Foo.getDefaultInstance())) { + foo = any.unpack(Foo.getDefaultInstance()); + } Example 3: Pack and unpack a message in Python. @@ -48500,7 +49853,6 @@ definitions: name "y.z". - JSON @@ -48611,7 +49963,11 @@ definitions: description: voting_end_time is the end time of voting on a proposal. metadata: type: string - description: metadata is any arbitrary metadata attached to the proposal. + title: >- + metadata is any arbitrary metadata attached to the proposal. + + the recommended format of the metadata is to be found here: + https://docs.cosmos.network/v0.47/modules/gov#proposal-3 title: type: string description: 'Since: cosmos-sdk 0.47' @@ -48626,7 +49982,7 @@ definitions: title: proposer is the address of the proposal sumbitter expedited: type: boolean - description: 'Since: cosmos-sdk 0.48' + description: 'Since: cosmos-sdk 0.50' title: expedited defines if the proposal is expedited description: Proposal defines the core field members of a governance proposal. description: proposals defines all the requested governance proposals. @@ -48713,7 +50069,11 @@ definitions: description: options is the weighted vote options. metadata: type: string - description: metadata is any arbitrary metadata to attached to the vote. + title: >- + metadata is any arbitrary metadata to attached to the vote. + + the recommended format of the metadata is to be found here: + https://docs.cosmos.network/v0.47/modules/gov#vote-5 description: |- Vote defines a vote on a governance proposal. A Vote consists of a proposal ID, the voter, and the vote option. @@ -48757,7 +50117,11 @@ definitions: description: options is the weighted vote options. metadata: type: string - description: metadata is any arbitrary metadata to attached to the vote. + title: >- + metadata is any arbitrary metadata to attached to the vote. + + the recommended format of the metadata is to be found here: + https://docs.cosmos.network/v0.47/modules/gov#vote-5 description: |- Vote defines a vote on a governance proposal. A Vote consists of a proposal ID, the voter, and the vote option. @@ -48851,7 +50215,11 @@ definitions: description: options is the weighted vote options. metadata: type: string - description: metadata is any arbitrary metadata to attached to the vote. + title: >- + metadata is any arbitrary metadata to attached to the vote. + + the recommended format of the metadata is to be found here: + https://docs.cosmos.network/v0.47/modules/gov#vote-5 description: |- Vote defines a vote on a governance proposal. A Vote consists of a proposal ID, the voter, and the vote option. @@ -49087,18 +50455,19 @@ definitions: start_height: type: string format: int64 - title: Height at which validator was first a candidate OR was unjailed + title: Height at which validator was first a candidate OR was un-jailed index_offset: type: string format: int64 description: >- - Index which is incremented each time the validator was a bonded + Index which is incremented every time a validator is bonded in a + block and - in a block and may have signed a precommit or not. This in - conjunction with the + _may_ have signed a pre-commit or not. This in conjunction with + the - `SignedBlocksWindow` param determines the index in the - `MissedBlocksBitArray`. + signed_blocks_window param determines the index in the missed + block bitmap. jailed_until: type: string format: date-time @@ -49109,18 +50478,20 @@ definitions: type: boolean description: >- Whether or not a validator has been tombstoned (killed out of - validator set). It is set + validator - once the validator commits an equivocation or for any other - configured misbehiavor. + set). It is set once the validator commits an equivocation or for + any other + + configured misbehavior. missed_blocks_counter: type: string format: int64 description: >- - A counter kept to avoid unnecessary array reads. + A counter of missed (unsigned) blocks. It is used to avoid + unnecessary - Note that `Sum(MissedBlocksBitArray)` always equals - `MissedBlocksCounter`. + reads in the missed block bitmap. description: >- ValidatorSigningInfo defines a validator's signing info for monitoring their @@ -49145,18 +50516,19 @@ definitions: start_height: type: string format: int64 - title: Height at which validator was first a candidate OR was unjailed + title: Height at which validator was first a candidate OR was un-jailed index_offset: type: string format: int64 description: >- - Index which is incremented each time the validator was a bonded + Index which is incremented every time a validator is bonded in a + block and - in a block and may have signed a precommit or not. This in - conjunction with the + _may_ have signed a pre-commit or not. This in conjunction with + the - `SignedBlocksWindow` param determines the index in the - `MissedBlocksBitArray`. + signed_blocks_window param determines the index in the missed + block bitmap. jailed_until: type: string format: date-time @@ -49167,18 +50539,20 @@ definitions: type: boolean description: >- Whether or not a validator has been tombstoned (killed out of - validator set). It is set + validator - once the validator commits an equivocation or for any other - configured misbehiavor. + set). It is set once the validator commits an equivocation or + for any other + + configured misbehavior. missed_blocks_counter: type: string format: int64 description: >- - A counter kept to avoid unnecessary array reads. + A counter of missed (unsigned) blocks. It is used to avoid + unnecessary - Note that `Sum(MissedBlocksBitArray)` always equals - `MissedBlocksCounter`. + reads in the missed block bitmap. description: >- ValidatorSigningInfo defines a validator's signing info for monitoring their @@ -49224,18 +50598,18 @@ definitions: start_height: type: string format: int64 - title: Height at which validator was first a candidate OR was unjailed + title: Height at which validator was first a candidate OR was un-jailed index_offset: type: string format: int64 description: >- - Index which is incremented each time the validator was a bonded + Index which is incremented every time a validator is bonded in a block + and - in a block and may have signed a precommit or not. This in conjunction - with the + _may_ have signed a pre-commit or not. This in conjunction with the - `SignedBlocksWindow` param determines the index in the - `MissedBlocksBitArray`. + signed_blocks_window param determines the index in the missed block + bitmap. jailed_until: type: string format: date-time @@ -49246,18 +50620,18 @@ definitions: type: boolean description: >- Whether or not a validator has been tombstoned (killed out of - validator set). It is set + validator - once the validator commits an equivocation or for any other configured - misbehiavor. + set). It is set once the validator commits an equivocation or for any + other + + configured misbehavior. missed_blocks_counter: type: string format: int64 - description: >- - A counter kept to avoid unnecessary array reads. - - Note that `Sum(MissedBlocksBitArray)` always equals - `MissedBlocksCounter`. + description: |- + A counter of missed (unsigned) blocks. It is used to avoid unnecessary + reads in the missed block bitmap. description: >- ValidatorSigningInfo defines a validator's signing info for monitoring their @@ -49476,7 +50850,7 @@ definitions: proposer_address: type: string format: byte - description: Header defines the structure of a Tendermint block header. + description: Header defines the structure of a block header. valset: type: array items: @@ -49585,6 +50959,10 @@ definitions: if (any.is(Foo.class)) { foo = any.unpack(Foo.class); } + // or ... + if (any.isSameTypeAs(Foo.getDefaultInstance())) { + foo = any.unpack(Foo.getDefaultInstance()); + } Example 3: Pack and unpack a message in Python. @@ -49623,7 +51001,6 @@ definitions: name "y.z". - JSON @@ -50157,6 +51534,10 @@ definitions: if (any.is(Foo.class)) { foo = any.unpack(Foo.class); } + // or ... + if (any.isSameTypeAs(Foo.getDefaultInstance())) { + foo = any.unpack(Foo.getDefaultInstance()); + } Example 3: Pack and unpack a message in Python. @@ -50193,7 +51574,6 @@ definitions: name "y.z". - JSON @@ -50471,6 +51851,10 @@ definitions: if (any.is(Foo.class)) { foo = any.unpack(Foo.class); } + // or ... + if (any.isSameTypeAs(Foo.getDefaultInstance())) { + foo = any.unpack(Foo.getDefaultInstance()); + } Example 3: Pack and unpack a message in Python. @@ -50509,7 +51893,6 @@ definitions: name "y.z". - JSON @@ -50781,7 +52164,7 @@ definitions: proposer_address: type: string format: byte - description: Header defines the structure of a Tendermint block header. + description: Header defines the structure of a block header. valset: type: array items: @@ -50891,6 +52274,10 @@ definitions: if (any.is(Foo.class)) { foo = any.unpack(Foo.class); } + // or ... + if (any.isSameTypeAs(Foo.getDefaultInstance())) { + foo = any.unpack(Foo.getDefaultInstance()); + } Example 3: Pack and unpack a message in Python. @@ -50930,7 +52317,6 @@ definitions: name "y.z". - JSON @@ -51547,6 +52933,10 @@ definitions: if (any.is(Foo.class)) { foo = any.unpack(Foo.class); } + // or ... + if (any.isSameTypeAs(Foo.getDefaultInstance())) { + foo = any.unpack(Foo.getDefaultInstance()); + } Example 3: Pack and unpack a message in Python. @@ -51583,7 +52973,6 @@ definitions: name "y.z". - JSON @@ -51941,6 +53330,10 @@ definitions: if (any.is(Foo.class)) { foo = any.unpack(Foo.class); } + // or ... + if (any.isSameTypeAs(Foo.getDefaultInstance())) { + foo = any.unpack(Foo.getDefaultInstance()); + } Example 3: Pack and unpack a message in Python. @@ -51979,7 +53372,6 @@ definitions: name "y.z". - JSON @@ -52613,6 +54005,10 @@ definitions: if (any.is(Foo.class)) { foo = any.unpack(Foo.class); } + // or ... + if (any.isSameTypeAs(Foo.getDefaultInstance())) { + foo = any.unpack(Foo.getDefaultInstance()); + } Example 3: Pack and unpack a message in Python. @@ -52648,7 +54044,6 @@ definitions: name "y.z". - JSON @@ -52913,8 +54308,7 @@ definitions: Event allows application developers to attach additional information to - ResponseBeginBlock, ResponseEndBlock, ResponseCheckTx and - ResponseDeliverTx. + ResponseFinalizeBlock and ResponseCheckTx. Later, transactions may be queried using these events. description: >- @@ -53019,6 +54413,10 @@ definitions: if (any.is(Foo.class)) { foo = any.unpack(Foo.class); } + // or ... + if (any.isSameTypeAs(Foo.getDefaultInstance())) { + foo = any.unpack(Foo.getDefaultInstance()); + } Example 3: Pack and unpack a message in Python. @@ -53054,7 +54452,6 @@ definitions: name "y.z". - JSON @@ -53288,6 +54685,10 @@ definitions: if (any.is(Foo.class)) { foo = any.unpack(Foo.class); } + // or ... + if (any.isSameTypeAs(Foo.getDefaultInstance())) { + foo = any.unpack(Foo.getDefaultInstance()); + } Example 3: Pack and unpack a message in Python. @@ -53323,7 +54724,6 @@ definitions: name "y.z". - JSON @@ -53392,8 +54792,7 @@ definitions: Event allows application developers to attach additional information to - ResponseBeginBlock, ResponseEndBlock, ResponseCheckTx and - ResponseDeliverTx. + ResponseFinalizeBlock and ResponseCheckTx. Later, transactions may be queried using these events. description: >- @@ -53600,17 +54999,17 @@ definitions: - BROADCAST_MODE_SYNC - BROADCAST_MODE_ASYNC default: BROADCAST_MODE_UNSPECIFIED - description: >- + description: |- BroadcastMode specifies the broadcast mode for the TxService.Broadcast RPC method. - BROADCAST_MODE_UNSPECIFIED: zero-value for mode ordering - BROADCAST_MODE_BLOCK: DEPRECATED: use BROADCAST_MODE_SYNC instead, BROADCAST_MODE_BLOCK is not supported by the SDK from v0.47.x onwards. - - BROADCAST_MODE_SYNC: BROADCAST_MODE_SYNC defines a tx broadcasting mode where the client waits for - a CheckTx execution response only. - - BROADCAST_MODE_ASYNC: BROADCAST_MODE_ASYNC defines a tx broadcasting mode where the client returns - immediately. + - BROADCAST_MODE_SYNC: BROADCAST_MODE_SYNC defines a tx broadcasting mode where the client waits + for a CheckTx execution response only. + - BROADCAST_MODE_ASYNC: BROADCAST_MODE_ASYNC defines a tx broadcasting mode where the client + returns immediately. cosmos.tx.v1beta1.BroadcastTxRequest: type: object properties: @@ -53628,15 +55027,17 @@ definitions: default: BROADCAST_MODE_UNSPECIFIED description: >- BroadcastMode specifies the broadcast mode for the TxService.Broadcast - RPC method. + RPC + + method. - BROADCAST_MODE_UNSPECIFIED: zero-value for mode ordering - BROADCAST_MODE_BLOCK: DEPRECATED: use BROADCAST_MODE_SYNC instead, BROADCAST_MODE_BLOCK is not supported by the SDK from v0.47.x onwards. - - BROADCAST_MODE_SYNC: BROADCAST_MODE_SYNC defines a tx broadcasting mode where the client waits for - a CheckTx execution response only. - - BROADCAST_MODE_ASYNC: BROADCAST_MODE_ASYNC defines a tx broadcasting mode where the client returns - immediately. + - BROADCAST_MODE_SYNC: BROADCAST_MODE_SYNC defines a tx broadcasting mode where the client waits + for a CheckTx execution response only. + - BROADCAST_MODE_ASYNC: BROADCAST_MODE_ASYNC defines a tx broadcasting mode where the client + returns immediately. description: |- BroadcastTxRequest is the request type for the Service.BroadcastTxRequest RPC method. @@ -53823,6 +55224,10 @@ definitions: if (any.is(Foo.class)) { foo = any.unpack(Foo.class); } + // or ... + if (any.isSameTypeAs(Foo.getDefaultInstance())) { + foo = any.unpack(Foo.getDefaultInstance()); + } Example 3: Pack and unpack a message in Python. @@ -53859,7 +55264,6 @@ definitions: name "y.z". - JSON @@ -53929,8 +55333,7 @@ definitions: Event allows application developers to attach additional information to - ResponseBeginBlock, ResponseEndBlock, ResponseCheckTx and - ResponseDeliverTx. + ResponseFinalizeBlock and ResponseCheckTx. Later, transactions may be queried using these events. description: >- @@ -54112,7 +55515,7 @@ definitions: proposer_address: type: string format: byte - description: Header defines the structure of a Tendermint block header. + description: Header defines the structure of a block header. data: type: object properties: @@ -54192,9 +55595,32 @@ definitions: signature: type: string format: byte + description: >- + Vote signature by the validator if they + participated in consensus for the + + associated block. + extension: + type: string + format: byte + description: >- + Vote extension provided by the application. Only + valid for precommit + + messages. + extension_signature: + type: string + format: byte + description: >- + Vote extension signature by the validator if + they participated in + + consensus for the associated block. + + Only valid for precommit messages. description: >- - Vote represents a prevote, precommit, or commit vote - from validators for + Vote represents a prevote or precommit vote from + validators for consensus. vote_b: @@ -54249,9 +55675,32 @@ definitions: signature: type: string format: byte + description: >- + Vote signature by the validator if they + participated in consensus for the + + associated block. + extension: + type: string + format: byte + description: >- + Vote extension provided by the application. Only + valid for precommit + + messages. + extension_signature: + type: string + format: byte + description: >- + Vote extension signature by the validator if + they participated in + + consensus for the associated block. + + Only valid for precommit messages. description: >- - Vote represents a prevote, precommit, or commit vote - from validators for + Vote represents a prevote or precommit vote from + validators for consensus. total_voting_power: @@ -54355,8 +55804,8 @@ definitions: type: string format: byte description: >- - Header defines the structure of a Tendermint - block header. + Header defines the structure of a block + header. commit: type: object properties: @@ -54397,7 +55846,7 @@ definitions: - BLOCK_ID_FLAG_NIL default: BLOCK_ID_FLAG_UNKNOWN title: >- - BlockIdFlag indicates which BlcokID the + BlockIdFlag indicates which BlockID the signature is for validator_address: type: string @@ -54436,7 +55885,7 @@ definitions: format: byte title: >- PublicKey defines the keys available for - use with Tendermint Validators + use with Validators voting_power: type: string format: int64 @@ -54460,7 +55909,7 @@ definitions: format: byte title: >- PublicKey defines the keys available for - use with Tendermint Validators + use with Validators voting_power: type: string format: int64 @@ -54492,7 +55941,7 @@ definitions: format: byte title: >- PublicKey defines the keys available for use - with Tendermint Validators + with Validators voting_power: type: string format: int64 @@ -54547,7 +55996,7 @@ definitions: - BLOCK_ID_FLAG_COMMIT - BLOCK_ID_FLAG_NIL default: BLOCK_ID_FLAG_UNKNOWN - title: BlockIdFlag indicates which BlcokID the signature is for + title: BlockIdFlag indicates which BlockID the signature is for validator_address: type: string format: byte @@ -54582,7 +56031,9 @@ definitions: was set, its value is undefined otherwise description: >- GetBlockWithTxsResponse is the response type for the - Service.GetBlockWithTxs method. + Service.GetBlockWithTxs + + method. Since: cosmos-sdk 0.45.2 @@ -54772,6 +56223,10 @@ definitions: if (any.is(Foo.class)) { foo = any.unpack(Foo.class); } + // or ... + if (any.isSameTypeAs(Foo.getDefaultInstance())) { + foo = any.unpack(Foo.getDefaultInstance()); + } Example 3: Pack and unpack a message in Python. @@ -54808,7 +56263,6 @@ definitions: name "y.z". - JSON @@ -54878,8 +56332,7 @@ definitions: Event allows application developers to attach additional information to - ResponseBeginBlock, ResponseEndBlock, ResponseCheckTx and - ResponseDeliverTx. + ResponseFinalizeBlock and ResponseCheckTx. Later, transactions may be queried using these events. description: >- @@ -55093,6 +56546,10 @@ definitions: if (any.is(Foo.class)) { foo = any.unpack(Foo.class); } + // or ... + if (any.isSameTypeAs(Foo.getDefaultInstance())) { + foo = any.unpack(Foo.getDefaultInstance()); + } Example 3: Pack and unpack a message in Python. @@ -55131,7 +56588,6 @@ definitions: name "y.z". - JSON @@ -55201,8 +56657,7 @@ definitions: Event allows application developers to attach additional information to - ResponseBeginBlock, ResponseEndBlock, ResponseCheckTx and - ResponseDeliverTx. + ResponseFinalizeBlock and ResponseCheckTx. Later, transactions may be queried using these events. description: >- @@ -55457,7 +56912,9 @@ definitions: default: ORDER_BY_UNSPECIFIED description: >- - ORDER_BY_UNSPECIFIED: ORDER_BY_UNSPECIFIED specifies an unknown sorting - order. OrderBy defaults to ASC in this case. + order. OrderBy defaults + + to ASC in this case. - ORDER_BY_ASC: ORDER_BY_ASC defines ascending order - ORDER_BY_DESC: ORDER_BY_DESC defines descending order title: OrderBy defines the sorting order @@ -55556,6 +57013,10 @@ definitions: if (any.is(Foo.class)) { foo = any.unpack(Foo.class); } + // or ... + if (any.isSameTypeAs(Foo.getDefaultInstance())) { + foo = any.unpack(Foo.getDefaultInstance()); + } Example 3: Pack and unpack a message in Python. @@ -55591,7 +57052,6 @@ definitions: name "y.z". - JSON @@ -55726,8 +57186,7 @@ definitions: Event allows application developers to attach additional information to - ResponseBeginBlock, ResponseEndBlock, ResponseCheckTx and - ResponseDeliverTx. + ResponseFinalizeBlock and ResponseCheckTx. Later, transactions may be queried using these events. description: >- @@ -55835,6 +57294,10 @@ definitions: if (any.is(Foo.class)) { foo = any.unpack(Foo.class); } + // or ... + if (any.isSameTypeAs(Foo.getDefaultInstance())) { + foo = any.unpack(Foo.getDefaultInstance()); + } Example 3: Pack and unpack a message in Python. @@ -55873,7 +57336,6 @@ definitions: name "y.z". - JSON @@ -56049,6 +57511,10 @@ definitions: if (any.is(Foo.class)) { foo = any.unpack(Foo.class); } + // or ... + if (any.isSameTypeAs(Foo.getDefaultInstance())) { + foo = any.unpack(Foo.getDefaultInstance()); + } Example 3: Pack and unpack a message in Python. @@ -56087,7 +57553,6 @@ definitions: name "y.z". - JSON @@ -56257,6 +57722,10 @@ definitions: if (any.is(Foo.class)) { foo = any.unpack(Foo.class); } + // or ... + if (any.isSameTypeAs(Foo.getDefaultInstance())) { + foo = any.unpack(Foo.getDefaultInstance()); + } Example 3: Pack and unpack a message in Python. @@ -56295,7 +57764,6 @@ definitions: name "y.z". - JSON @@ -56438,6 +57906,10 @@ definitions: if (any.is(Foo.class)) { foo = any.unpack(Foo.class); } + // or ... + if (any.isSameTypeAs(Foo.getDefaultInstance())) { + foo = any.unpack(Foo.getDefaultInstance()); + } Example 3: Pack and unpack a message in Python. @@ -56476,7 +57948,6 @@ definitions: name "y.z". - JSON @@ -56639,6 +58110,10 @@ definitions: if (any.is(Foo.class)) { foo = any.unpack(Foo.class); } + // or ... + if (any.isSameTypeAs(Foo.getDefaultInstance())) { + foo = any.unpack(Foo.getDefaultInstance()); + } Example 3: Pack and unpack a message in Python. @@ -56674,7 +58149,6 @@ definitions: name "y.z". - JSON @@ -56837,6 +58311,10 @@ definitions: if (any.is(Foo.class)) { foo = any.unpack(Foo.class); } + // or ... + if (any.isSameTypeAs(Foo.getDefaultInstance())) { + foo = any.unpack(Foo.getDefaultInstance()); + } Example 3: Pack and unpack a message in Python. @@ -56872,7 +58350,6 @@ definitions: name "y.z". - JSON @@ -57010,6 +58487,10 @@ definitions: if (any.is(Foo.class)) { foo = any.unpack(Foo.class); } + // or ... + if (any.isSameTypeAs(Foo.getDefaultInstance())) { + foo = any.unpack(Foo.getDefaultInstance()); + } Example 3: Pack and unpack a message in Python. @@ -57045,7 +58526,6 @@ definitions: name "y.z". - JSON @@ -57192,12 +58672,9 @@ definitions: index: type: boolean description: EventAttribute is a single key-value pair, associated with an event. - description: >- + description: |- Event allows application developers to attach additional information to - - ResponseBeginBlock, ResponseEndBlock, ResponseCheckTx and - ResponseDeliverTx. - + ResponseFinalizeBlock and ResponseCheckTx. Later, transactions may be queried using these events. tendermint.abci.EventAttribute: type: object @@ -57357,6 +58834,10 @@ definitions: if (any.is(Foo.class)) { foo = any.unpack(Foo.class); } + // or ... + if (any.isSameTypeAs(Foo.getDefaultInstance())) { + foo = any.unpack(Foo.getDefaultInstance()); + } Example 3: Pack and unpack a message in Python. @@ -57392,7 +58873,6 @@ definitions: name "y.z". - JSON @@ -57594,6 +59074,10 @@ definitions: if (any.is(Foo.class)) { foo = any.unpack(Foo.class); } + // or ... + if (any.isSameTypeAs(Foo.getDefaultInstance())) { + foo = any.unpack(Foo.getDefaultInstance()); + } Example 3: Pack and unpack a message in Python. @@ -57630,7 +59114,6 @@ definitions: name "y.z". - JSON @@ -57807,6 +59290,10 @@ definitions: if (any.is(Foo.class)) { foo = any.unpack(Foo.class); } + // or ... + if (any.isSameTypeAs(Foo.getDefaultInstance())) { + foo = any.unpack(Foo.getDefaultInstance()); + } Example 3: Pack and unpack a message in Python. @@ -57842,7 +59329,6 @@ definitions: name "y.z". - JSON @@ -57988,6 +59474,10 @@ definitions: if (any.is(Foo.class)) { foo = any.unpack(Foo.class); } + // or ... + if (any.isSameTypeAs(Foo.getDefaultInstance())) { + foo = any.unpack(Foo.getDefaultInstance()); + } Example 3: Pack and unpack a message in Python. @@ -58023,7 +59513,6 @@ definitions: name "y.z". - JSON @@ -58175,6 +59664,10 @@ definitions: if (any.is(Foo.class)) { foo = any.unpack(Foo.class); } + // or ... + if (any.isSameTypeAs(Foo.getDefaultInstance())) { + foo = any.unpack(Foo.getDefaultInstance()); + } Example 3: Pack and unpack a message in Python. @@ -58213,7 +59706,6 @@ definitions: name "y.z". - JSON @@ -58389,6 +59881,10 @@ definitions: if (any.is(Foo.class)) { foo = any.unpack(Foo.class); } + // or ... + if (any.isSameTypeAs(Foo.getDefaultInstance())) { + foo = any.unpack(Foo.getDefaultInstance()); + } Example 3: Pack and unpack a message in Python. @@ -58427,7 +59923,6 @@ definitions: name "y.z". - JSON @@ -58599,6 +60094,10 @@ definitions: if (any.is(Foo.class)) { foo = any.unpack(Foo.class); } + // or ... + if (any.isSameTypeAs(Foo.getDefaultInstance())) { + foo = any.unpack(Foo.getDefaultInstance()); + } Example 3: Pack and unpack a message in Python. @@ -58637,7 +60136,6 @@ definitions: name "y.z". - JSON @@ -59211,6 +60709,10 @@ definitions: if (any.is(Foo.class)) { foo = any.unpack(Foo.class); } + // or ... + if (any.isSameTypeAs(Foo.getDefaultInstance())) { + foo = any.unpack(Foo.getDefaultInstance()); + } Example 3: Pack and unpack a message in Python. @@ -59246,7 +60748,6 @@ definitions: name "y.z". - JSON @@ -59391,6 +60892,10 @@ definitions: if (any.is(Foo.class)) { foo = any.unpack(Foo.class); } + // or ... + if (any.isSameTypeAs(Foo.getDefaultInstance())) { + foo = any.unpack(Foo.getDefaultInstance()); + } Example 3: Pack and unpack a message in Python. @@ -59426,7 +60931,6 @@ definitions: name "y.z". - JSON @@ -59596,6 +61100,10 @@ definitions: if (any.is(Foo.class)) { foo = any.unpack(Foo.class); } + // or ... + if (any.isSameTypeAs(Foo.getDefaultInstance())) { + foo = any.unpack(Foo.getDefaultInstance()); + } Example 3: Pack and unpack a message in Python. @@ -59632,7 +61140,6 @@ definitions: name "y.z". - JSON @@ -59802,6 +61309,10 @@ definitions: if (any.is(Foo.class)) { foo = any.unpack(Foo.class); } + // or ... + if (any.isSameTypeAs(Foo.getDefaultInstance())) { + foo = any.unpack(Foo.getDefaultInstance()); + } Example 3: Pack and unpack a message in Python. @@ -59840,7 +61351,6 @@ definitions: name "y.z". - JSON @@ -60014,6 +61524,10 @@ definitions: if (any.is(Foo.class)) { foo = any.unpack(Foo.class); } + // or ... + if (any.isSameTypeAs(Foo.getDefaultInstance())) { + foo = any.unpack(Foo.getDefaultInstance()); + } Example 3: Pack and unpack a message in Python. @@ -60050,7 +61564,6 @@ definitions: name "y.z". - JSON @@ -60209,6 +61722,10 @@ definitions: if (any.is(Foo.class)) { foo = any.unpack(Foo.class); } + // or ... + if (any.isSameTypeAs(Foo.getDefaultInstance())) { + foo = any.unpack(Foo.getDefaultInstance()); + } Example 3: Pack and unpack a message in Python. @@ -60247,7 +61764,6 @@ definitions: name "y.z". - JSON @@ -60332,7 +61848,11 @@ definitions: description: admin is the account address of the group's admin. metadata: type: string - description: metadata is any arbitrary metadata to attached to the group. + title: >- + metadata is any arbitrary metadata to attached to the group. + + the recommended format of the metadata is to be found here: + https://docs.cosmos.network/v0.47/modules/group#group-1 version: type: string format: uint64 @@ -60396,7 +61916,11 @@ definitions: description: admin is the account address of the group admin. metadata: type: string - description: metadata is any arbitrary metadata attached to the group policy. + title: >- + metadata is any arbitrary metadata attached to the group policy. + + the recommended format of the metadata is to be found here: + https://docs.cosmos.network/v0.47/modules/group#decision-policy-1 version: type: string format: uint64 @@ -60497,6 +62021,10 @@ definitions: if (any.is(Foo.class)) { foo = any.unpack(Foo.class); } + // or ... + if (any.isSameTypeAs(Foo.getDefaultInstance())) { + foo = any.unpack(Foo.getDefaultInstance()); + } Example 3: Pack and unpack a message in Python. @@ -60532,7 +62060,6 @@ definitions: name "y.z". - JSON @@ -60604,7 +62131,11 @@ definitions: description: group_policy_address is the account address of group policy. metadata: type: string - description: metadata is any arbitrary metadata attached to the proposal. + title: >- + metadata is any arbitrary metadata attached to the proposal. + + the recommended format of the metadata is to be found here: + https://docs.cosmos.network/v0.47/modules/group#proposal-4 proposers: type: array items: @@ -60793,6 +62324,10 @@ definitions: if (any.is(Foo.class)) { foo = any.unpack(Foo.class); } + // or ... + if (any.isSameTypeAs(Foo.getDefaultInstance())) { + foo = any.unpack(Foo.getDefaultInstance()); + } Example 3: Pack and unpack a message in Python. @@ -60828,7 +62363,6 @@ definitions: name "y.z". - JSON @@ -60937,7 +62471,11 @@ definitions: description: admin is the account address of the group's admin. metadata: type: string - description: metadata is any arbitrary metadata to attached to the group. + title: >- + metadata is any arbitrary metadata to attached to the group. + + the recommended format of the metadata is to be found here: + https://docs.cosmos.network/v0.47/modules/group#group-1 version: type: string format: uint64 @@ -61035,7 +62573,11 @@ definitions: description: admin is the account address of the group admin. metadata: type: string - description: metadata is any arbitrary metadata attached to the group policy. + title: >- + metadata is any arbitrary metadata attached to the group policy. + + the recommended format of the metadata is to be found here: + https://docs.cosmos.network/v0.47/modules/group#decision-policy-1 version: type: string format: uint64 @@ -61142,6 +62684,10 @@ definitions: if (any.is(Foo.class)) { foo = any.unpack(Foo.class); } + // or ... + if (any.isSameTypeAs(Foo.getDefaultInstance())) { + foo = any.unpack(Foo.getDefaultInstance()); + } Example 3: Pack and unpack a message in Python. @@ -61180,7 +62726,6 @@ definitions: name "y.z". - JSON @@ -61267,7 +62812,11 @@ definitions: description: admin is the account address of the group admin. metadata: type: string - description: metadata is any arbitrary metadata attached to the group policy. + title: >- + metadata is any arbitrary metadata attached to the group policy. + + the recommended format of the metadata is to be found here: + https://docs.cosmos.network/v0.47/modules/group#decision-policy-1 version: type: string format: uint64 @@ -61374,6 +62923,10 @@ definitions: if (any.is(Foo.class)) { foo = any.unpack(Foo.class); } + // or ... + if (any.isSameTypeAs(Foo.getDefaultInstance())) { + foo = any.unpack(Foo.getDefaultInstance()); + } Example 3: Pack and unpack a message in Python. @@ -61412,7 +62965,6 @@ definitions: name "y.z". - JSON @@ -61499,7 +63051,11 @@ definitions: description: admin is the account address of the group admin. metadata: type: string - description: metadata is any arbitrary metadata attached to the group policy. + title: >- + metadata is any arbitrary metadata attached to the group policy. + + the recommended format of the metadata is to be found here: + https://docs.cosmos.network/v0.47/modules/group#decision-policy-1 version: type: string format: uint64 @@ -61604,6 +63160,10 @@ definitions: if (any.is(Foo.class)) { foo = any.unpack(Foo.class); } + // or ... + if (any.isSameTypeAs(Foo.getDefaultInstance())) { + foo = any.unpack(Foo.getDefaultInstance()); + } Example 3: Pack and unpack a message in Python. @@ -61640,7 +63200,6 @@ definitions: name "y.z". - JSON @@ -61702,7 +63261,11 @@ definitions: description: admin is the account address of the group's admin. metadata: type: string - description: metadata is any arbitrary metadata to attached to the group. + title: >- + metadata is any arbitrary metadata to attached to the group. + + the recommended format of the metadata is to be found here: + https://docs.cosmos.network/v0.47/modules/group#group-1 version: type: string format: uint64 @@ -61767,7 +63330,11 @@ definitions: description: admin is the account address of the group's admin. metadata: type: string - description: metadata is any arbitrary metadata to attached to the group. + title: >- + metadata is any arbitrary metadata to attached to the group. + + the recommended format of the metadata is to be found here: + https://docs.cosmos.network/v0.47/modules/group#group-1 version: type: string format: uint64 @@ -61830,7 +63397,11 @@ definitions: description: admin is the account address of the group's admin. metadata: type: string - description: metadata is any arbitrary metadata to attached to the group. + title: >- + metadata is any arbitrary metadata to attached to the group. + + the recommended format of the metadata is to be found here: + https://docs.cosmos.network/v0.47/modules/group#group-1 version: type: string format: uint64 @@ -61895,7 +63466,11 @@ definitions: description: group_policy_address is the account address of group policy. metadata: type: string - description: metadata is any arbitrary metadata attached to the proposal. + title: >- + metadata is any arbitrary metadata attached to the proposal. + + the recommended format of the metadata is to be found here: + https://docs.cosmos.network/v0.47/modules/group#proposal-4 proposers: type: array items: @@ -62094,6 +63669,10 @@ definitions: if (any.is(Foo.class)) { foo = any.unpack(Foo.class); } + // or ... + if (any.isSameTypeAs(Foo.getDefaultInstance())) { + foo = any.unpack(Foo.getDefaultInstance()); + } Example 3: Pack and unpack a message in Python. @@ -62132,7 +63711,6 @@ definitions: name "y.z". - JSON @@ -62196,7 +63774,11 @@ definitions: description: group_policy_address is the account address of group policy. metadata: type: string - description: metadata is any arbitrary metadata attached to the proposal. + title: >- + metadata is any arbitrary metadata attached to the proposal. + + the recommended format of the metadata is to be found here: + https://docs.cosmos.network/v0.47/modules/group#proposal-4 proposers: type: array items: @@ -62396,6 +63978,10 @@ definitions: if (any.is(Foo.class)) { foo = any.unpack(Foo.class); } + // or ... + if (any.isSameTypeAs(Foo.getDefaultInstance())) { + foo = any.unpack(Foo.getDefaultInstance()); + } Example 3: Pack and unpack a message in Python. @@ -62435,7 +64021,6 @@ definitions: name "y.z". - JSON @@ -62562,11 +64147,16 @@ definitions: default: VOTE_OPTION_UNSPECIFIED metadata: type: string - description: metadata is any arbitrary metadata attached to the vote. + title: >- + metadata is any arbitrary metadata attached to the vote. + + the recommended format of the metadata is to be found here: + https://docs.cosmos.network/v0.47/modules/group#vote-2 submit_time: type: string format: date-time description: submit_time is the timestamp when the vote was submitted. + title: Vote represents a vote for a proposal.string metadata description: >- QueryVoteByProposalVoterResponse is the Query/VoteByProposalVoter response type. @@ -62597,12 +64187,16 @@ definitions: default: VOTE_OPTION_UNSPECIFIED metadata: type: string - description: metadata is any arbitrary metadata attached to the vote. + title: >- + metadata is any arbitrary metadata attached to the vote. + + the recommended format of the metadata is to be found here: + https://docs.cosmos.network/v0.47/modules/group#vote-2 submit_time: type: string format: date-time description: submit_time is the timestamp when the vote was submitted. - description: Vote represents a vote for a proposal. + title: Vote represents a vote for a proposal.string metadata description: votes are the list of votes for given proposal_id. pagination: description: pagination defines the pagination in the response. @@ -62651,12 +64245,16 @@ definitions: default: VOTE_OPTION_UNSPECIFIED metadata: type: string - description: metadata is any arbitrary metadata attached to the vote. + title: >- + metadata is any arbitrary metadata attached to the vote. + + the recommended format of the metadata is to be found here: + https://docs.cosmos.network/v0.47/modules/group#vote-2 submit_time: type: string format: date-time description: submit_time is the timestamp when the vote was submitted. - description: Vote represents a vote for a proposal. + title: Vote represents a vote for a proposal.string metadata description: votes are the list of votes by given voter. pagination: description: pagination defines the pagination in the response. @@ -62716,12 +64314,16 @@ definitions: default: VOTE_OPTION_UNSPECIFIED metadata: type: string - description: metadata is any arbitrary metadata attached to the vote. + title: >- + metadata is any arbitrary metadata attached to the vote. + + the recommended format of the metadata is to be found here: + https://docs.cosmos.network/v0.47/modules/group#vote-2 submit_time: type: string format: date-time description: submit_time is the timestamp when the vote was submitted. - description: Vote represents a vote for a proposal. + title: Vote represents a vote for a proposal.string metadata cosmos.group.v1.VoteOption: type: string enum: diff --git a/docs/architecture/adr-050-sign-mode-textual.md b/docs/architecture/adr-050-sign-mode-textual.md index 0bab87bb58..c5b51b2234 100644 --- a/docs/architecture/adr-050-sign-mode-textual.md +++ b/docs/architecture/adr-050-sign-mode-textual.md @@ -314,7 +314,7 @@ Updates in the 1st category include changes of the `Screen` struct or its corres Updates in the 2nd category include changes to any of the value renderers or to the transaction envelope. For example, the ordering of fields in the envelope can be swapped, or the timestamp formatting can be modified. Since SIGN_MODE_TEXTUAL sends `Screen`s to the hardware device, this type of change do not need a hardware wallet application update. They are however state-machine-breaking, and must be documented as such. They require the coordination of SDK developers with client-side developers (e.g. CosmJS), so that the updates are released on both sides close to each other in time. -We define a spec version, which is an integer that must be incremented on each update of either category. This spec version will be exposed by the SDK's implementation, and can be communicated to clients. For example, SDK v0.48 might use the spec version 1, and SDK v0.49 might use 2; thanks to this versioning, clients can know how to craft SIGN_MODE_TEXTUAL transactions based on the target SDK version. +We define a spec version, which is an integer that must be incremented on each update of either category. This spec version will be exposed by the SDK's implementation, and can be communicated to clients. For example, SDK v0.50 might use the spec version 1, and SDK v0.51 might use 2; thanks to this versioning, clients can know how to craft SIGN_MODE_TEXTUAL transactions based on the target SDK version. The current spec version is defined in the "Status" section, on the top of this document. It is initialized to `0` to allow flexibility in choosing how to define future versions, as it would allow adding a field either in the SignDoc Go struct or in Protobuf in a backwards-compatible way. @@ -328,9 +328,10 @@ See [annex 2](./adr-050-sign-mode-textual-annex2.md). 2. A transaction with a bit of everything: [see transaction](https://github.com/cosmos/cosmos-sdk/blob/094abcd393379acbbd043996024d66cd65246fb1/tx/textual/internal/testdata/e2e.json#L71-L270). The examples below are stored in a JSON file with the following fields: -- `proto`: the representation of the transaction in ProtoJSON, -- `screens`: the transaction rendered into SIGN_MODE_TEXTUAL screens, -- `cbor`: the sign bytes of the transaction, which is the CBOR encoding of the screens. + +* `proto`: the representation of the transaction in ProtoJSON, +* `screens`: the transaction rendered into SIGN_MODE_TEXTUAL screens, +* `cbor`: the sign bytes of the transaction, which is the CBOR encoding of the screens. ## Consequences diff --git a/proto/cosmos/bank/v1beta1/query.proto b/proto/cosmos/bank/v1beta1/query.proto index 23324504b6..9aed764777 100644 --- a/proto/cosmos/bank/v1beta1/query.proto +++ b/proto/cosmos/bank/v1beta1/query.proto @@ -146,7 +146,7 @@ message QueryAllBalancesRequest { // resolve_denom is the flag to resolve the denom into a human-readable form from the metadata. // - // Since: cosmos-sdk 0.48 + // Since: cosmos-sdk 0.50 bool resolve_denom = 3; } diff --git a/proto/cosmos/distribution/v1beta1/tx.proto b/proto/cosmos/distribution/v1beta1/tx.proto index 014831c50c..fc14c5e10c 100644 --- a/proto/cosmos/distribution/v1beta1/tx.proto +++ b/proto/cosmos/distribution/v1beta1/tx.proto @@ -48,7 +48,7 @@ service Msg { // DepositValidatorRewardsPool defines a method to provide additional rewards // to delegators to a specific validator. // - // Since: cosmos-sdk 0.48 + // Since: cosmos-sdk 0.50 rpc DepositValidatorRewardsPool(MsgDepositValidatorRewardsPool) returns (MsgDepositValidatorRewardsPoolResponse); } @@ -190,7 +190,7 @@ message MsgCommunityPoolSpendResponse {} // DepositValidatorRewardsPool defines the request structure to provide // additional rewards to delegators from a specific validator. // -// Since: cosmos-sdk 0.48 +// Since: cosmos-sdk 0.50 message MsgDepositValidatorRewardsPool { option (amino.name) = "cosmos-sdk/distr/MsgDepositValRewards"; option (cosmos.msg.v1.signer) = "depositor"; @@ -211,5 +211,5 @@ message MsgDepositValidatorRewardsPool { // MsgDepositValidatorRewardsPoolResponse defines the response to executing a // MsgDepositValidatorRewardsPool message. // -// Since: cosmos-sdk 0.48 +// Since: cosmos-sdk 0.50 message MsgDepositValidatorRewardsPoolResponse {} diff --git a/proto/cosmos/gov/v1/genesis.proto b/proto/cosmos/gov/v1/genesis.proto index 40acece2bc..1398b33268 100644 --- a/proto/cosmos/gov/v1/genesis.proto +++ b/proto/cosmos/gov/v1/genesis.proto @@ -35,6 +35,6 @@ message GenesisState { // There are no amendments, to go outside of scope, just fork. // constitution is an immutable string in genesis for a chain builder to lay out their vision, ideas and ideals. // - // Since: cosmos-sdk 0.48 + // Since: cosmos-sdk 0.50 string constitution = 9; } diff --git a/proto/cosmos/gov/v1/gov.proto b/proto/cosmos/gov/v1/gov.proto index 6f9c5465c9..9edd903b98 100644 --- a/proto/cosmos/gov/v1/gov.proto +++ b/proto/cosmos/gov/v1/gov.proto @@ -100,7 +100,7 @@ message Proposal { // expedited defines if the proposal is expedited // - // Since: cosmos-sdk 0.48 + // Since: cosmos-sdk 0.50 bool expedited = 14; } @@ -224,23 +224,23 @@ message Params { // The cancel ratio which will not be returned back to the depositors when a proposal is cancelled. // - // Since: cosmos-sdk 0.48 + // Since: cosmos-sdk 0.50 string proposal_cancel_ratio = 8 [(cosmos_proto.scalar) = "cosmos.Dec"]; // The address which will receive (proposal_cancel_ratio * deposit) proposal deposits. // If empty, the (proposal_cancel_ratio * deposit) proposal deposits will be burned. // - // Since: cosmos-sdk 0.48 + // Since: cosmos-sdk 0.50 string proposal_cancel_dest = 9 [(cosmos_proto.scalar) = "cosmos.AddressString"]; // Duration of the voting period of an expedited proposal. // - // Since: cosmos-sdk 0.48 + // Since: cosmos-sdk 0.50 google.protobuf.Duration expedited_voting_period = 10 [(gogoproto.stdduration) = true]; // Minimum proportion of Yes votes for proposal to pass. Default value: 0.67. // - // Since: cosmos-sdk 0.48 + // Since: cosmos-sdk 0.50 string expedited_threshold = 11 [(cosmos_proto.scalar) = "cosmos.Dec"]; // Minimum expedited deposit for a proposal to enter voting period. diff --git a/proto/cosmos/gov/v1/tx.proto b/proto/cosmos/gov/v1/tx.proto index 76526dd211..7438c00ea1 100644 --- a/proto/cosmos/gov/v1/tx.proto +++ b/proto/cosmos/gov/v1/tx.proto @@ -41,7 +41,7 @@ service Msg { // CancelProposal defines a method to cancel governance proposal // - // Since: cosmos-sdk 0.48 + // Since: cosmos-sdk 0.50 rpc CancelProposal(MsgCancelProposal) returns (MsgCancelProposalResponse); } @@ -75,7 +75,7 @@ message MsgSubmitProposal { // expedided defines if the proposal is expedited or not // - // Since: cosmos-sdk 0.48 + // Since: cosmos-sdk 0.50 bool expedited = 7; } @@ -184,7 +184,7 @@ message MsgUpdateParamsResponse {} // MsgCancelProposal is the Msg/CancelProposal request type. // -// Since: cosmos-sdk 0.48 +// Since: cosmos-sdk 0.50 message MsgCancelProposal { option (cosmos.msg.v1.signer) = "proposer"; @@ -195,7 +195,7 @@ message MsgCancelProposal { // MsgCancelProposalResponse defines the response structure for executing a // MsgCancelProposal message. // -// Since: cosmos-sdk 0.48 +// Since: cosmos-sdk 0.50 message MsgCancelProposalResponse { uint64 proposal_id = 1 [(gogoproto.jsontag) = "proposal_id"]; // canceled_time is the time when proposal is canceled. diff --git a/proto/cosmos/staking/v1beta1/tx.proto b/proto/cosmos/staking/v1beta1/tx.proto index 55e1655ed0..a05a841451 100644 --- a/proto/cosmos/staking/v1beta1/tx.proto +++ b/proto/cosmos/staking/v1beta1/tx.proto @@ -158,7 +158,7 @@ message MsgUndelegateResponse { // amount returns the amount of undelegated coins // - // Since: cosmos-sdk 0.48 + // Since: cosmos-sdk 0.50 cosmos.base.v1beta1.Coin amount = 2 [(gogoproto.nullable) = false, (amino.dont_omitempty) = true]; } diff --git a/proto/cosmos/tx/v1beta1/service.proto b/proto/cosmos/tx/v1beta1/service.proto index 798d1ad771..5cd848e09a 100644 --- a/proto/cosmos/tx/v1beta1/service.proto +++ b/proto/cosmos/tx/v1beta1/service.proto @@ -104,7 +104,7 @@ message GetTxsEventRequest { // query defines the transaction event query that is proxied to Tendermint's // TxSearch RPC method. The query must be valid. // - // Since Cosmos SDK 0.48 + // Since cosmos-sdk 0.50 string query = 6; } diff --git a/simapp/go.mod b/simapp/go.mod index 2c21aa3fef..1a12192a64 100644 --- a/simapp/go.mod +++ b/simapp/go.mod @@ -20,7 +20,7 @@ require ( github.com/cometbft/cometbft v0.38.0-alpha.2 github.com/cosmos/cosmos-db v1.0.0-rc.1 // this version is not used as it is always replaced by the latest Cosmos SDK version - github.com/cosmos/cosmos-sdk v0.48.0 + github.com/cosmos/cosmos-sdk v0.50.0 github.com/cosmos/gogoproto v1.4.10 github.com/golang/mock v1.6.0 github.com/spf13/cast v1.5.1 diff --git a/simapp/upgrades.go b/simapp/upgrades.go index 1bce6df3f6..6aeafcf0f4 100644 --- a/simapp/upgrades.go +++ b/simapp/upgrades.go @@ -9,12 +9,12 @@ import ( ) // UpgradeName defines the on-chain upgrade name for the sample SimApp upgrade -// from v047 to v048. +// from v047 to v050. // // NOTE: This upgrade defines a reference implementation of what an upgrade // could look like when an application is migrating from Cosmos SDK version -// v0.47.x to v0.48.x. -const UpgradeName = "v047-to-v048" +// v0.47.x to v0.50.x. +const UpgradeName = "v047-to-v050" func (app SimApp) RegisterUpgradeHandlers() { app.UpgradeKeeper.SetUpgradeHandler( diff --git a/tests/go.mod b/tests/go.mod index 3b513f2d15..bcc7fadc13 100644 --- a/tests/go.mod +++ b/tests/go.mod @@ -20,7 +20,7 @@ require ( github.com/cosmos/cosmos-db v1.0.0-rc.1 github.com/cosmos/cosmos-proto v1.0.0-beta.3 // this version is not used as it is always replaced by the latest Cosmos SDK version - github.com/cosmos/cosmos-sdk v0.48.0 + github.com/cosmos/cosmos-sdk v0.50.0 github.com/cosmos/gogoproto v1.4.10 github.com/golang/mock v1.6.0 github.com/google/uuid v1.3.0 // indirect diff --git a/tools/confix/migrations.go b/tools/confix/migrations.go index 7d1f17400e..254fb9fa2d 100644 --- a/tools/confix/migrations.go +++ b/tools/confix/migrations.go @@ -23,7 +23,7 @@ var Migrations = MigrationMap{ "v0.45": NoPlan, // Confix supports only the current supported SDK version. So we do not support v0.44 -> v0.45. "v0.46": PlanBuilder, "v0.47": PlanBuilder, - "v0.48": PlanBuilder, + "v0.50": PlanBuilder, // "v0.xx.x": PlanBuilder, // add specific migration in case of configuration changes in minor versions } diff --git a/tools/cosmovisor/README.md b/tools/cosmovisor/README.md index 6f6df095d7..e53166ccd3 100644 --- a/tools/cosmovisor/README.md +++ b/tools/cosmovisor/README.md @@ -355,7 +355,7 @@ Open a new terminal window and submit an upgrade proposal along with a deposit a ./build/simd tx gov vote 1 yes --from validator --yes ``` -**>= v0.48+**: +**>= v0.50+**: ```shell ./build/simd tx upgrade software-upgrade test1 --title upgrade --summary upgrade --upgrade-height 200 --from validator --yes diff --git a/types/tx/service.pb.go b/types/tx/service.pb.go index 19665631a4..03dccdd83a 100644 --- a/types/tx/service.pb.go +++ b/types/tx/service.pb.go @@ -124,7 +124,7 @@ type GetTxsEventRequest struct { // query defines the transaction event query that is proxied to Tendermint's // TxSearch RPC method. The query must be valid. // - // Since Cosmos SDK 0.48 + // Since cosmos-sdk 0.50 Query string `protobuf:"bytes,6,opt,name=query,proto3" json:"query,omitempty"` } diff --git a/x/README.md b/x/README.md index a7d3c5bc34..1578369779 100644 --- a/x/README.md +++ b/x/README.md @@ -31,7 +31,7 @@ To learn more about the process of building modules, visit the [building modules The IBC module for the SDK is maintained by the IBC Go team in its [own repository](https://github.com/cosmos/ibc-go). -Additionally, the [capability module](https://github.com/cosmos/ibc-go/tree/fdd664698d79864f1e00e147f9879e58497b5ef1/modules/capability) is from v0.48+ maintained by the IBC Go team in its [own repository](https://github.com/cosmos/ibc-go/tree/fdd664698d79864f1e00e147f9879e58497b5ef1/modules/capability). +Additionally, the [capability module](https://github.com/cosmos/ibc-go/tree/fdd664698d79864f1e00e147f9879e58497b5ef1/modules/capability) is from v0.50+ maintained by the IBC Go team in its [own repository](https://github.com/cosmos/ibc-go/tree/fdd664698d79864f1e00e147f9879e58497b5ef1/modules/capability). ## CosmWasm diff --git a/x/bank/types/query.pb.go b/x/bank/types/query.pb.go index a9f873a613..5c040434c9 100644 --- a/x/bank/types/query.pb.go +++ b/x/bank/types/query.pb.go @@ -129,7 +129,7 @@ type QueryAllBalancesRequest struct { Pagination *query.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` // resolve_denom is the flag to resolve the denom into a human-readable form from the metadata. // - // Since: cosmos-sdk 0.48 + // Since: cosmos-sdk 0.50 ResolveDenom bool `protobuf:"varint,3,opt,name=resolve_denom,json=resolveDenom,proto3" json:"resolve_denom,omitempty"` } diff --git a/x/distribution/types/tx.pb.go b/x/distribution/types/tx.pb.go index 43b379338c..b38aa0cc0f 100644 --- a/x/distribution/types/tx.pb.go +++ b/x/distribution/types/tx.pb.go @@ -571,7 +571,7 @@ var xxx_messageInfo_MsgCommunityPoolSpendResponse proto.InternalMessageInfo // DepositValidatorRewardsPool defines the request structure to provide // additional rewards to delegators from a specific validator. // -// Since: cosmos-sdk 0.48 +// Since: cosmos-sdk 0.50 type MsgDepositValidatorRewardsPool struct { Depositor string `protobuf:"bytes,1,opt,name=depositor,proto3" json:"depositor,omitempty"` ValidatorAddress string `protobuf:"bytes,2,opt,name=validator_address,json=validatorAddress,proto3" json:"validator_address,omitempty"` @@ -614,7 +614,7 @@ var xxx_messageInfo_MsgDepositValidatorRewardsPool proto.InternalMessageInfo // MsgDepositValidatorRewardsPoolResponse defines the response to executing a // MsgDepositValidatorRewardsPool message. // -// Since: cosmos-sdk 0.48 +// Since: cosmos-sdk 0.50 type MsgDepositValidatorRewardsPoolResponse struct { } @@ -1001,7 +1001,7 @@ type MsgClient interface { // DepositValidatorRewardsPool defines a method to provide additional rewards // to delegators to a specific validator. // - // Since: cosmos-sdk 0.48 + // Since: cosmos-sdk 0.50 DepositValidatorRewardsPool(ctx context.Context, in *MsgDepositValidatorRewardsPool, opts ...grpc.CallOption) (*MsgDepositValidatorRewardsPoolResponse, error) } @@ -1105,7 +1105,7 @@ type MsgServer interface { // DepositValidatorRewardsPool defines a method to provide additional rewards // to delegators to a specific validator. // - // Since: cosmos-sdk 0.48 + // Since: cosmos-sdk 0.50 DepositValidatorRewardsPool(context.Context, *MsgDepositValidatorRewardsPool) (*MsgDepositValidatorRewardsPoolResponse, error) } diff --git a/x/genutil/client/cli/validate_genesis_test.go b/x/genutil/client/cli/validate_genesis_test.go index a241bf1f9b..140f72def2 100644 --- a/x/genutil/client/cli/validate_genesis_test.go +++ b/x/genutil/client/cli/validate_genesis_test.go @@ -42,7 +42,7 @@ func TestValidateGenesis(t *testing.T) { true, }, { - "valid 0.48 genesis file", + "valid 0.50 genesis file", func() string { bz, err := os.ReadFile("../../types/testdata/app_genesis.json") require.NoError(t, err) diff --git a/x/gov/migrations/v5/store.go b/x/gov/migrations/v5/store.go index 1af0ea4ba8..ddfa20f529 100644 --- a/x/gov/migrations/v5/store.go +++ b/x/gov/migrations/v5/store.go @@ -9,7 +9,7 @@ import ( govv1 "github.com/cosmos/cosmos-sdk/x/gov/types/v1" ) -// MigrateStore performs in-place store migrations from v4 (v0.47) to v5 (v0.48). The +// MigrateStore performs in-place store migrations from v4 (v0.47) to v5 (v0.50). The // migration includes: // // Addition of the new proposal expedited parameters that are set to 0 by default. diff --git a/x/gov/types/v1/genesis.pb.go b/x/gov/types/v1/genesis.pb.go index bc0d31077c..d6730443a5 100644 --- a/x/gov/types/v1/genesis.pb.go +++ b/x/gov/types/v1/genesis.pb.go @@ -50,7 +50,7 @@ type GenesisState struct { // There are no amendments, to go outside of scope, just fork. // constitution is an immutable string in genesis for a chain builder to lay out their vision, ideas and ideals. // - // Since: cosmos-sdk 0.48 + // Since: cosmos-sdk 0.50 Constitution string `protobuf:"bytes,9,opt,name=constitution,proto3" json:"constitution,omitempty"` } diff --git a/x/gov/types/v1/gov.pb.go b/x/gov/types/v1/gov.pb.go index 9cc1b39bdd..198b81c375 100644 --- a/x/gov/types/v1/gov.pb.go +++ b/x/gov/types/v1/gov.pb.go @@ -280,7 +280,7 @@ type Proposal struct { Proposer string `protobuf:"bytes,13,opt,name=proposer,proto3" json:"proposer,omitempty"` // expedited defines if the proposal is expedited // - // Since: cosmos-sdk 0.48 + // Since: cosmos-sdk 0.50 Expedited bool `protobuf:"varint,14,opt,name=expedited,proto3" json:"expedited,omitempty"` } @@ -760,20 +760,20 @@ type Params struct { MinInitialDepositRatio string `protobuf:"bytes,7,opt,name=min_initial_deposit_ratio,json=minInitialDepositRatio,proto3" json:"min_initial_deposit_ratio,omitempty"` // The cancel ratio which will not be returned back to the depositors when a proposal is cancelled. // - // Since: cosmos-sdk 0.48 + // Since: cosmos-sdk 0.50 ProposalCancelRatio string `protobuf:"bytes,8,opt,name=proposal_cancel_ratio,json=proposalCancelRatio,proto3" json:"proposal_cancel_ratio,omitempty"` // The address which will receive (proposal_cancel_ratio * deposit) proposal deposits. // If empty, the (proposal_cancel_ratio * deposit) proposal deposits will be burned. // - // Since: cosmos-sdk 0.48 + // Since: cosmos-sdk 0.50 ProposalCancelDest string `protobuf:"bytes,9,opt,name=proposal_cancel_dest,json=proposalCancelDest,proto3" json:"proposal_cancel_dest,omitempty"` // Duration of the voting period of an expedited proposal. // - // Since: cosmos-sdk 0.48 + // Since: cosmos-sdk 0.50 ExpeditedVotingPeriod *time.Duration `protobuf:"bytes,10,opt,name=expedited_voting_period,json=expeditedVotingPeriod,proto3,stdduration" json:"expedited_voting_period,omitempty"` // Minimum proportion of Yes votes for proposal to pass. Default value: 0.67. // - // Since: cosmos-sdk 0.48 + // Since: cosmos-sdk 0.50 ExpeditedThreshold string `protobuf:"bytes,11,opt,name=expedited_threshold,json=expeditedThreshold,proto3" json:"expedited_threshold,omitempty"` // Minimum expedited deposit for a proposal to enter voting period. ExpeditedMinDeposit []types.Coin `protobuf:"bytes,12,rep,name=expedited_min_deposit,json=expeditedMinDeposit,proto3" json:"expedited_min_deposit"` diff --git a/x/gov/types/v1/tx.pb.go b/x/gov/types/v1/tx.pb.go index 3ab042b178..e3049d67c1 100644 --- a/x/gov/types/v1/tx.pb.go +++ b/x/gov/types/v1/tx.pb.go @@ -58,7 +58,7 @@ type MsgSubmitProposal struct { Summary string `protobuf:"bytes,6,opt,name=summary,proto3" json:"summary,omitempty"` // expedided defines if the proposal is expedited or not // - // Since: cosmos-sdk 0.48 + // Since: cosmos-sdk 0.50 Expedited bool `protobuf:"varint,7,opt,name=expedited,proto3" json:"expedited,omitempty"` } @@ -705,7 +705,7 @@ var xxx_messageInfo_MsgUpdateParamsResponse proto.InternalMessageInfo // MsgCancelProposal is the Msg/CancelProposal request type. // -// Since: cosmos-sdk 0.48 +// Since: cosmos-sdk 0.50 type MsgCancelProposal struct { ProposalId uint64 `protobuf:"varint,1,opt,name=proposal_id,json=proposalId,proto3" json:"proposal_id"` Proposer string `protobuf:"bytes,2,opt,name=proposer,proto3" json:"proposer,omitempty"` @@ -761,7 +761,7 @@ func (m *MsgCancelProposal) GetProposer() string { // MsgCancelProposalResponse defines the response structure for executing a // MsgCancelProposal message. // -// Since: cosmos-sdk 0.48 +// Since: cosmos-sdk 0.50 type MsgCancelProposalResponse struct { ProposalId uint64 `protobuf:"varint,1,opt,name=proposal_id,json=proposalId,proto3" json:"proposal_id"` // canceled_time is the time when proposal is canceled. @@ -943,7 +943,7 @@ type MsgClient interface { UpdateParams(ctx context.Context, in *MsgUpdateParams, opts ...grpc.CallOption) (*MsgUpdateParamsResponse, error) // CancelProposal defines a method to cancel governance proposal // - // Since: cosmos-sdk 0.48 + // Since: cosmos-sdk 0.50 CancelProposal(ctx context.Context, in *MsgCancelProposal, opts ...grpc.CallOption) (*MsgCancelProposalResponse, error) } @@ -1038,7 +1038,7 @@ type MsgServer interface { UpdateParams(context.Context, *MsgUpdateParams) (*MsgUpdateParamsResponse, error) // CancelProposal defines a method to cancel governance proposal // - // Since: cosmos-sdk 0.48 + // Since: cosmos-sdk 0.50 CancelProposal(context.Context, *MsgCancelProposal) (*MsgCancelProposalResponse, error) } diff --git a/x/staking/types/tx.pb.go b/x/staking/types/tx.pb.go index 4ef0d55d4f..bfbf16fc1b 100644 --- a/x/staking/types/tx.pb.go +++ b/x/staking/types/tx.pb.go @@ -415,7 +415,7 @@ type MsgUndelegateResponse struct { CompletionTime time.Time `protobuf:"bytes,1,opt,name=completion_time,json=completionTime,proto3,stdtime" json:"completion_time"` // amount returns the amount of undelegated coins // - // Since: cosmos-sdk 0.48 + // Since: cosmos-sdk 0.50 Amount types1.Coin `protobuf:"bytes,2,opt,name=amount,proto3" json:"amount"` }