chore: Add "Since:" on proto doc comments (#10434)

<!--
The default pull request template is for types feat, fix, or refactor.
For other templates, add one of the following parameters to the url:
- template=docs.md
- template=other.md
-->

## Description

ref: https://github.com/cosmos/cosmos-sdk/discussions/10406#discussioncomment-1533289

For clients to know whether a protobuf feature is available for a certain SDK version, we decided to use the [`@since` doc comment](https://www.oracle.com/technical-resources/articles/java/javadoc-tool.html#@since) inside protobuf files.

<!-- Add a description of the changes that this PR introduces and the files that
are the most critical to review. -->

---

### Author Checklist

*All items are required. Please add a note to the item if the item is not applicable and
please add links to any relevant follow up issues.*

I have...

- [ ] included the correct [type prefix](https://github.com/commitizen/conventional-commit-types/blob/v3.0.0/index.json) in the PR title
- [ ] added `!` to the type prefix if API or client breaking change
- [ ] targeted the correct branch (see [PR Targeting](https://github.com/cosmos/cosmos-sdk/blob/master/CONTRIBUTING.md#pr-targeting))
- [ ] provided a link to the relevant issue or specification
- [ ] followed the guidelines for [building modules](https://github.com/cosmos/cosmos-sdk/blob/master/docs/building-modules)
- [ ] included the necessary unit and integration [tests](https://github.com/cosmos/cosmos-sdk/blob/master/CONTRIBUTING.md#testing)
- [ ] added a changelog entry to `CHANGELOG.md`
- [ ] included comments for [documenting Go code](https://blog.golang.org/godoc)
- [ ] updated the relevant documentation or specification
- [ ] reviewed "Files changed" and left comments if necessary
- [ ] confirmed all CI checks have passed

### Reviewers Checklist

*All items are required. Please add a note if the item is not applicable and please add
your handle next to the items reviewed if you only reviewed selected items.*

I have...

- [ ] confirmed the correct [type prefix](https://github.com/commitizen/conventional-commit-types/blob/v3.0.0/index.json) in the PR title
- [ ] confirmed `!` in the type prefix if API or client breaking change
- [ ] confirmed all author checklist items have been addressed 
- [ ] reviewed state machine logic
- [ ] reviewed API design and naming
- [ ] reviewed documentation is accurate
- [ ] reviewed tests and test coverage
- [ ] manually tested (if applicable)
This commit is contained in:
Amaury 2021-10-27 16:13:35 +02:00 committed by GitHub
parent d8196920aa
commit 0a3660d2ac
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
42 changed files with 208 additions and 35 deletions

View File

@ -689,14 +689,15 @@ func (m *GetNodeInfoResponse) GetApplicationVersion() *VersionInfo {
// VersionInfo is the type for the GetNodeInfoResponse message. // VersionInfo is the type for the GetNodeInfoResponse message.
type VersionInfo struct { type VersionInfo struct {
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
AppName string `protobuf:"bytes,2,opt,name=app_name,json=appName,proto3" json:"app_name,omitempty"` AppName string `protobuf:"bytes,2,opt,name=app_name,json=appName,proto3" json:"app_name,omitempty"`
Version string `protobuf:"bytes,3,opt,name=version,proto3" json:"version,omitempty"` Version string `protobuf:"bytes,3,opt,name=version,proto3" json:"version,omitempty"`
GitCommit string `protobuf:"bytes,4,opt,name=git_commit,json=gitCommit,proto3" json:"git_commit,omitempty"` GitCommit string `protobuf:"bytes,4,opt,name=git_commit,json=gitCommit,proto3" json:"git_commit,omitempty"`
BuildTags string `protobuf:"bytes,5,opt,name=build_tags,json=buildTags,proto3" json:"build_tags,omitempty"` BuildTags string `protobuf:"bytes,5,opt,name=build_tags,json=buildTags,proto3" json:"build_tags,omitempty"`
GoVersion string `protobuf:"bytes,6,opt,name=go_version,json=goVersion,proto3" json:"go_version,omitempty"` GoVersion string `protobuf:"bytes,6,opt,name=go_version,json=goVersion,proto3" json:"go_version,omitempty"`
BuildDeps []*Module `protobuf:"bytes,7,rep,name=build_deps,json=buildDeps,proto3" json:"build_deps,omitempty"` BuildDeps []*Module `protobuf:"bytes,7,rep,name=build_deps,json=buildDeps,proto3" json:"build_deps,omitempty"`
CosmosSdkVersion string `protobuf:"bytes,8,opt,name=cosmos_sdk_version,json=cosmosSdkVersion,proto3" json:"cosmos_sdk_version,omitempty"` // Since: cosmos-sdk 0.43
CosmosSdkVersion string `protobuf:"bytes,8,opt,name=cosmos_sdk_version,json=cosmosSdkVersion,proto3" json:"cosmos_sdk_version,omitempty"`
} }
func (m *VersionInfo) Reset() { *m = VersionInfo{} } func (m *VersionInfo) Reset() { *m = VersionInfo{} }

View File

@ -855,7 +855,9 @@ pagination. Ex:
| `offset` | [uint64](#uint64) | | offset is a numeric offset that can be used when key is unavailable. It is less efficient than using key. Only one of offset or key should be set. | | `offset` | [uint64](#uint64) | | offset is a numeric offset that can be used when key is unavailable. It is less efficient than using key. Only one of offset or key should be set. |
| `limit` | [uint64](#uint64) | | limit is the total number of results to be returned in the result page. If left empty it will default to a value to be set by each app. | | `limit` | [uint64](#uint64) | | limit is the total number of results to be returned in the result page. If left empty it will default to a value to be set by each app. |
| `count_total` | [bool](#bool) | | count_total is set to true to indicate that the result set should include a count of the total number of items available for pagination in UIs. count_total is only respected when offset is used. It is ignored when key is set. | | `count_total` | [bool](#bool) | | count_total is set to true to indicate that the result set should include a count of the total number of items available for pagination in UIs. count_total is only respected when offset is used. It is ignored when key is set. |
| `reverse` | [bool](#bool) | | reverse is set to true if results are to be returned in the descending order. | | `reverse` | [bool](#bool) | | reverse is set to true if results are to be returned in the descending order.
Since: cosmos-sdk 0.43 |
@ -1020,6 +1022,8 @@ QueryAccountResponse is the response type for the Query/Account RPC method.
### QueryAccountsRequest ### QueryAccountsRequest
QueryAccountsRequest is the request type for the Query/Accounts RPC method. QueryAccountsRequest is the request type for the Query/Accounts RPC method.
Since: cosmos-sdk 0.43
| Field | Type | Label | Description | | Field | Type | Label | Description |
| ----- | ---- | ----- | ----------- | | ----- | ---- | ----- | ----------- |
@ -1035,6 +1039,8 @@ QueryAccountsRequest is the request type for the Query/Accounts RPC method.
### QueryAccountsResponse ### QueryAccountsResponse
QueryAccountsResponse is the response type for the Query/Accounts RPC method. QueryAccountsResponse is the response type for the Query/Accounts RPC method.
Since: cosmos-sdk 0.43
| Field | Type | Label | Description | | Field | Type | Label | Description |
| ----- | ---- | ----- | ----------- | | ----- | ---- | ----- | ----------- |
@ -1109,7 +1115,9 @@ Query defines the gRPC querier service.
| Method Name | Request Type | Response Type | Description | HTTP Verb | Endpoint | | Method Name | Request Type | Response Type | Description | HTTP Verb | Endpoint |
| ----------- | ------------ | ------------- | ------------| ------- | -------- | | ----------- | ------------ | ------------- | ------------| ------- | -------- |
| `Accounts` | [QueryAccountsRequest](#cosmos.auth.v1beta1.QueryAccountsRequest) | [QueryAccountsResponse](#cosmos.auth.v1beta1.QueryAccountsResponse) | Accounts returns all the existing accounts | GET|/cosmos/auth/v1beta1/accounts| | `Accounts` | [QueryAccountsRequest](#cosmos.auth.v1beta1.QueryAccountsRequest) | [QueryAccountsResponse](#cosmos.auth.v1beta1.QueryAccountsResponse) | Accounts returns all the existing accounts
Since: cosmos-sdk 0.43 | GET|/cosmos/auth/v1beta1/accounts|
| `Account` | [QueryAccountRequest](#cosmos.auth.v1beta1.QueryAccountRequest) | [QueryAccountResponse](#cosmos.auth.v1beta1.QueryAccountResponse) | Account returns account details based on address. | GET|/cosmos/auth/v1beta1/accounts/{address}| | `Account` | [QueryAccountRequest](#cosmos.auth.v1beta1.QueryAccountRequest) | [QueryAccountResponse](#cosmos.auth.v1beta1.QueryAccountResponse) | Account returns account details based on address. | GET|/cosmos/auth/v1beta1/accounts/{address}|
| `Params` | [QueryParamsRequest](#cosmos.auth.v1beta1.QueryParamsRequest) | [QueryParamsResponse](#cosmos.auth.v1beta1.QueryParamsResponse) | Params queries all parameters. | GET|/cosmos/auth/v1beta1/params| | `Params` | [QueryParamsRequest](#cosmos.auth.v1beta1.QueryParamsRequest) | [QueryParamsResponse](#cosmos.auth.v1beta1.QueryParamsResponse) | Params queries all parameters. | GET|/cosmos/auth/v1beta1/params|
| `ModuleAccounts` | [QueryModuleAccountsRequest](#cosmos.auth.v1beta1.QueryModuleAccountsRequest) | [QueryModuleAccountsResponse](#cosmos.auth.v1beta1.QueryModuleAccountsResponse) | ModuleAccounts returns all the existing module accounts. | GET|/cosmos/auth/v1beta1/module_accounts| | `ModuleAccounts` | [QueryModuleAccountsRequest](#cosmos.auth.v1beta1.QueryModuleAccountsRequest) | [QueryModuleAccountsResponse](#cosmos.auth.v1beta1.QueryModuleAccountsResponse) | ModuleAccounts returns all the existing module accounts. | GET|/cosmos/auth/v1beta1/module_accounts|
@ -1125,7 +1133,7 @@ Query defines the gRPC querier service.
<p align="right"><a href="#top">Top</a></p> <p align="right"><a href="#top">Top</a></p>
## cosmos/authz/v1beta1/authz.proto ## cosmos/authz/v1beta1/authz.proto
Since: cosmos-sdk 0.43
<a name="cosmos.authz.v1beta1.GenericAuthorization"></a> <a name="cosmos.authz.v1beta1.GenericAuthorization"></a>
@ -1174,7 +1182,7 @@ the provide method with expiration time.
<p align="right"><a href="#top">Top</a></p> <p align="right"><a href="#top">Top</a></p>
## cosmos/authz/v1beta1/event.proto ## cosmos/authz/v1beta1/event.proto
Since: cosmos-sdk 0.43
<a name="cosmos.authz.v1beta1.EventGrant"></a> <a name="cosmos.authz.v1beta1.EventGrant"></a>
@ -1224,7 +1232,7 @@ EventRevoke is emitted on Msg/Revoke
<p align="right"><a href="#top">Top</a></p> <p align="right"><a href="#top">Top</a></p>
## cosmos/authz/v1beta1/genesis.proto ## cosmos/authz/v1beta1/genesis.proto
Since: cosmos-sdk 0.43
<a name="cosmos.authz.v1beta1.GenesisState"></a> <a name="cosmos.authz.v1beta1.GenesisState"></a>
@ -1273,7 +1281,7 @@ GrantAuthorization defines the GenesisState/GrantAuthorization type.
<p align="right"><a href="#top">Top</a></p> <p align="right"><a href="#top">Top</a></p>
## cosmos/authz/v1beta1/query.proto ## cosmos/authz/v1beta1/query.proto
Since: cosmos-sdk 0.43
<a name="cosmos.authz.v1beta1.QueryGranterGrantsRequest"></a> <a name="cosmos.authz.v1beta1.QueryGranterGrantsRequest"></a>
@ -1563,7 +1571,7 @@ tags are stringified and the log is JSON decoded.
<p align="right"><a href="#top">Top</a></p> <p align="right"><a href="#top">Top</a></p>
## cosmos/authz/v1beta1/tx.proto ## cosmos/authz/v1beta1/tx.proto
Since: cosmos-sdk 0.43
<a name="cosmos.authz.v1beta1.MsgExec"></a> <a name="cosmos.authz.v1beta1.MsgExec"></a>
@ -1773,6 +1781,8 @@ IntProto defines a Protobuf wrapper around an Int object.
SendAuthorization allows the grantee to spend up to spend_limit coins from SendAuthorization allows the grantee to spend up to spend_limit coins from
the granter's account. the granter's account.
Since: cosmos-sdk 0.43
| Field | Type | Label | Description | | Field | Type | Label | Description |
| ----- | ---- | ----- | ----------- | | ----- | ---- | ----- | ----------- |
@ -1846,10 +1856,18 @@ a basic token.
| `denom_units` | [DenomUnit](#cosmos.bank.v1beta1.DenomUnit) | repeated | denom_units represents the list of DenomUnit's for a given coin | | `denom_units` | [DenomUnit](#cosmos.bank.v1beta1.DenomUnit) | repeated | denom_units represents the list of DenomUnit's for a given coin |
| `base` | [string](#string) | | base represents the base denom (should be the DenomUnit with exponent = 0). | | `base` | [string](#string) | | base represents the base denom (should be the DenomUnit with exponent = 0). |
| `display` | [string](#string) | | display indicates the suggested denom that should be displayed in clients. | | `display` | [string](#string) | | display indicates the suggested denom that should be displayed in clients. |
| `name` | [string](#string) | | name defines the name of the token (eg: Cosmos Atom) | | `name` | [string](#string) | | name defines the name of the token (eg: Cosmos Atom)
| `symbol` | [string](#string) | | symbol is the token symbol usually shown on exchanges (eg: ATOM). This can be the same as the display. |
| `uri` | [string](#string) | | URI to a document (on or off-chain) that contains additional information. Optional. | Since: cosmos-sdk 0.43 |
| `uri_hash` | [string](#string) | | URIHash is a sha256 hash of a document pointed by URI. It's used to verify that the document didn't change. Optional. | | `symbol` | [string](#string) | | symbol is the token symbol usually shown on exchanges (eg: ATOM). This can be the same as the display.
Since: cosmos-sdk 0.43 |
| `uri` | [string](#string) | | URI to a document (on or off-chain) that contains additional information. Optional.
Since: cosmos-sdk 0.45 |
| `uri_hash` | [string](#string) | | URIHash is a sha256 hash of a document pointed by URI. It's used to verify that the document didn't change. Optional.
Since: cosmos-sdk 0.45 |
@ -2232,7 +2250,9 @@ method.
| Field | Type | Label | Description | | Field | Type | Label | Description |
| ----- | ---- | ----- | ----------- | | ----- | ---- | ----- | ----------- |
| `pagination` | [cosmos.base.query.v1beta1.PageRequest](#cosmos.base.query.v1beta1.PageRequest) | | pagination defines an optional pagination for the request. | | `pagination` | [cosmos.base.query.v1beta1.PageRequest](#cosmos.base.query.v1beta1.PageRequest) | | pagination defines an optional pagination for the request.
Since: cosmos-sdk 0.43 |
@ -2249,7 +2269,9 @@ method
| Field | Type | Label | Description | | Field | Type | Label | Description |
| ----- | ---- | ----- | ----------- | | ----- | ---- | ----- | ----------- |
| `supply` | [cosmos.base.v1beta1.Coin](#cosmos.base.v1beta1.Coin) | repeated | supply is the supply of the coins | | `supply` | [cosmos.base.v1beta1.Coin](#cosmos.base.v1beta1.Coin) | repeated | supply is the supply of the coins |
| `pagination` | [cosmos.base.query.v1beta1.PageResponse](#cosmos.base.query.v1beta1.PageResponse) | | pagination defines the pagination in the response. | | `pagination` | [cosmos.base.query.v1beta1.PageResponse](#cosmos.base.query.v1beta1.PageResponse) | | pagination defines the pagination in the response.
Since: cosmos-sdk 0.43 |
@ -2497,7 +2519,7 @@ ReflectionService defines a service for interface reflection.
<p align="right"><a href="#top">Top</a></p> <p align="right"><a href="#top">Top</a></p>
## cosmos/base/reflection/v2alpha1/reflection.proto ## cosmos/base/reflection/v2alpha1/reflection.proto
Since: cosmos-sdk 0.43
<a name="cosmos.base.reflection.v2alpha1.AppDescriptor"></a> <a name="cosmos.base.reflection.v2alpha1.AppDescriptor"></a>
@ -3037,6 +3059,8 @@ StoreKVPair is a KVStore KVPair used for listening to state changes (Sets and De
It optionally includes the StoreKey for the originating KVStore and a Boolean flag to distinguish between Sets and It optionally includes the StoreKey for the originating KVStore and a Boolean flag to distinguish between Sets and
Deletes Deletes
Since: cosmos-sdk 0.43
| Field | Type | Label | Description | | Field | Type | Label | Description |
| ----- | ---- | ----- | ----------- | | ----- | ---- | ----- | ----------- |
@ -3354,7 +3378,7 @@ VersionInfo is the type for the GetNodeInfoResponse message.
| `build_tags` | [string](#string) | | | | `build_tags` | [string](#string) | | |
| `go_version` | [string](#string) | | | | `go_version` | [string](#string) | | |
| `build_deps` | [Module](#cosmos.base.tendermint.v1beta1.Module) | repeated | | | `build_deps` | [Module](#cosmos.base.tendermint.v1beta1.Module) | repeated | |
| `cosmos_sdk_version` | [string](#string) | | | | `cosmos_sdk_version` | [string](#string) | | Since: cosmos-sdk 0.43 |
@ -3896,7 +3920,7 @@ This prefix is followed with the x-coordinate.
<p align="right"><a href="#top">Top</a></p> <p align="right"><a href="#top">Top</a></p>
## cosmos/crypto/secp256r1/keys.proto ## cosmos/crypto/secp256r1/keys.proto
Since: cosmos-sdk 0.43
<a name="cosmos.crypto.secp256r1.PrivKey"></a> <a name="cosmos.crypto.secp256r1.PrivKey"></a>
@ -5007,7 +5031,7 @@ Msg defines the evidence Msg service.
<p align="right"><a href="#top">Top</a></p> <p align="right"><a href="#top">Top</a></p>
## cosmos/feegrant/v1beta1/feegrant.proto ## cosmos/feegrant/v1beta1/feegrant.proto
Since: cosmos-sdk 0.43
<a name="cosmos.feegrant.v1beta1.AllowedMsgAllowance"></a> <a name="cosmos.feegrant.v1beta1.AllowedMsgAllowance"></a>
@ -5093,7 +5117,7 @@ as well as a limit per time period.
<p align="right"><a href="#top">Top</a></p> <p align="right"><a href="#top">Top</a></p>
## cosmos/feegrant/v1beta1/genesis.proto ## cosmos/feegrant/v1beta1/genesis.proto
Since: cosmos-sdk 0.43
<a name="cosmos.feegrant.v1beta1.GenesisState"></a> <a name="cosmos.feegrant.v1beta1.GenesisState"></a>
@ -5124,7 +5148,7 @@ GenesisState contains a set of fee allowances, persisted from the store
<p align="right"><a href="#top">Top</a></p> <p align="right"><a href="#top">Top</a></p>
## cosmos/feegrant/v1beta1/query.proto ## cosmos/feegrant/v1beta1/query.proto
Since: cosmos-sdk 0.43
<a name="cosmos.feegrant.v1beta1.QueryAllowanceRequest"></a> <a name="cosmos.feegrant.v1beta1.QueryAllowanceRequest"></a>
@ -5214,7 +5238,7 @@ Query defines the gRPC querier service.
<p align="right"><a href="#top">Top</a></p> <p align="right"><a href="#top">Top</a></p>
## cosmos/feegrant/v1beta1/tx.proto ## cosmos/feegrant/v1beta1/tx.proto
Since: cosmos-sdk 0.43
<a name="cosmos.feegrant.v1beta1.MsgGrantAllowance"></a> <a name="cosmos.feegrant.v1beta1.MsgGrantAllowance"></a>
@ -5450,7 +5474,7 @@ A Vote consists of a proposal ID, the voter, and the vote option.
| `proposal_id` | [uint64](#uint64) | | | | `proposal_id` | [uint64](#uint64) | | |
| `voter` | [string](#string) | | | | `voter` | [string](#string) | | |
| `option` | [VoteOption](#cosmos.gov.v1beta1.VoteOption) | | **Deprecated.** Deprecated: Prefer to use `options` instead. This field is set in queries if and only if `len(options) == 1` and that option has weight 1. In all other cases, this field will default to VOTE_OPTION_UNSPECIFIED. | | `option` | [VoteOption](#cosmos.gov.v1beta1.VoteOption) | | **Deprecated.** Deprecated: Prefer to use `options` instead. This field is set in queries if and only if `len(options) == 1` and that option has weight 1. In all other cases, this field will default to VOTE_OPTION_UNSPECIFIED. |
| `options` | [WeightedVoteOption](#cosmos.gov.v1beta1.WeightedVoteOption) | repeated | | | `options` | [WeightedVoteOption](#cosmos.gov.v1beta1.WeightedVoteOption) | repeated | Since: cosmos-sdk 0.43 |
@ -5477,6 +5501,8 @@ VotingParams defines the params for voting on governance proposals.
### WeightedVoteOption ### WeightedVoteOption
WeightedVoteOption defines a unit of vote for vote split. WeightedVoteOption defines a unit of vote for vote split.
Since: cosmos-sdk 0.43
| Field | Type | Label | Description | | Field | Type | Label | Description |
| ----- | ---- | ----- | ----------- | | ----- | ---- | ----- | ----------- |
@ -5950,6 +5976,8 @@ MsgVoteResponse defines the Msg/Vote response type.
### MsgVoteWeighted ### MsgVoteWeighted
MsgVoteWeighted defines a message to cast a vote. MsgVoteWeighted defines a message to cast a vote.
Since: cosmos-sdk 0.43
| Field | Type | Label | Description | | Field | Type | Label | Description |
| ----- | ---- | ----- | ----------- | | ----- | ---- | ----- | ----------- |
@ -5967,6 +5995,8 @@ MsgVoteWeighted defines a message to cast a vote.
### MsgVoteWeightedResponse ### MsgVoteWeightedResponse
MsgVoteWeightedResponse defines the Msg/VoteWeighted response type. MsgVoteWeightedResponse defines the Msg/VoteWeighted response type.
Since: cosmos-sdk 0.43
@ -5987,7 +6017,9 @@ Msg defines the bank Msg service.
| ----------- | ------------ | ------------- | ------------| ------- | -------- | | ----------- | ------------ | ------------- | ------------| ------- | -------- |
| `SubmitProposal` | [MsgSubmitProposal](#cosmos.gov.v1beta1.MsgSubmitProposal) | [MsgSubmitProposalResponse](#cosmos.gov.v1beta1.MsgSubmitProposalResponse) | SubmitProposal defines a method to create new proposal given a content. | | | `SubmitProposal` | [MsgSubmitProposal](#cosmos.gov.v1beta1.MsgSubmitProposal) | [MsgSubmitProposalResponse](#cosmos.gov.v1beta1.MsgSubmitProposalResponse) | SubmitProposal defines a method to create new proposal given a content. | |
| `Vote` | [MsgVote](#cosmos.gov.v1beta1.MsgVote) | [MsgVoteResponse](#cosmos.gov.v1beta1.MsgVoteResponse) | Vote defines a method to add a vote on a specific proposal. | | | `Vote` | [MsgVote](#cosmos.gov.v1beta1.MsgVote) | [MsgVoteResponse](#cosmos.gov.v1beta1.MsgVoteResponse) | Vote defines a method to add a vote on a specific proposal. | |
| `VoteWeighted` | [MsgVoteWeighted](#cosmos.gov.v1beta1.MsgVoteWeighted) | [MsgVoteWeightedResponse](#cosmos.gov.v1beta1.MsgVoteWeightedResponse) | VoteWeighted defines a method to add a weighted vote on a specific proposal. | | | `VoteWeighted` | [MsgVoteWeighted](#cosmos.gov.v1beta1.MsgVoteWeighted) | [MsgVoteWeightedResponse](#cosmos.gov.v1beta1.MsgVoteWeightedResponse) | VoteWeighted defines a method to add a weighted vote on a specific proposal.
Since: cosmos-sdk 0.43 | |
| `Deposit` | [MsgDeposit](#cosmos.gov.v1beta1.MsgDeposit) | [MsgDepositResponse](#cosmos.gov.v1beta1.MsgDepositResponse) | Deposit defines a method to add deposit on a specific proposal. | | | `Deposit` | [MsgDeposit](#cosmos.gov.v1beta1.MsgDeposit) | [MsgDepositResponse](#cosmos.gov.v1beta1.MsgDepositResponse) | Deposit defines a method to add deposit on a specific proposal. | |
<!-- end services --> <!-- end services -->
@ -8120,6 +8152,8 @@ Msg defines the slashing Msg service.
### StakeAuthorization ### StakeAuthorization
StakeAuthorization defines authorization for delegate/undelegate/redelegate. StakeAuthorization defines authorization for delegate/undelegate/redelegate.
Since: cosmos-sdk 0.43
| Field | Type | Label | Description | | Field | Type | Label | Description |
| ----- | ---- | ----- | ----------- | | ----- | ---- | ----- | ----------- |
@ -8155,6 +8189,8 @@ Validators defines list of validator addresses.
### AuthorizationType ### AuthorizationType
AuthorizationType defines the type of staking module authorization type AuthorizationType defines the type of staking module authorization type
Since: cosmos-sdk 0.43
| Name | Number | Description | | Name | Number | Description |
| ---- | ------ | ----------- | | ---- | ------ | ----------- |
| AUTHORIZATION_TYPE_UNSPECIFIED | 0 | AUTHORIZATION_TYPE_UNSPECIFIED specifies an unknown authorization type | | AUTHORIZATION_TYPE_UNSPECIFIED | 0 | AUTHORIZATION_TYPE_UNSPECIFIED specifies an unknown authorization type |
@ -9429,7 +9465,9 @@ transaction.
| ----- | ---- | ----- | ----------- | | ----- | ---- | ----- | ----------- |
| `signer_infos` | [SignerInfo](#cosmos.tx.v1beta1.SignerInfo) | repeated | signer_infos defines the signing modes for the required signers. The number and order of elements must match the required signers from TxBody's messages. The first element is the primary signer and the one which pays the fee. | | `signer_infos` | [SignerInfo](#cosmos.tx.v1beta1.SignerInfo) | repeated | signer_infos defines the signing modes for the required signers. The number and order of elements must match the required signers from TxBody's messages. The first element is the primary signer and the one which pays the fee. |
| `fee` | [Fee](#cosmos.tx.v1beta1.Fee) | | Fee is the fee and gas limit for the transaction. The first signer is the primary signer and the one which pays the fee. The fee can be calculated based on the cost of evaluating the body and doing signature verification of the signers. This can be estimated via simulation. | | `fee` | [Fee](#cosmos.tx.v1beta1.Fee) | | Fee is the fee and gas limit for the transaction. The first signer is the primary signer and the one which pays the fee. The fee can be calculated based on the cost of evaluating the body and doing signature verification of the signers. This can be estimated via simulation. |
| `tip` | [Tip](#cosmos.tx.v1beta1.Tip) | | Tip is the optional tip used for meta-transactions. | | `tip` | [Tip](#cosmos.tx.v1beta1.Tip) | | Tip is the optional tip used for meta-transactions.
Since: cosmos-sdk 0.45 |
@ -9762,7 +9800,9 @@ RPC method.
| Field | Type | Label | Description | | Field | Type | Label | Description |
| ----- | ---- | ----- | ----------- | | ----- | ---- | ----- | ----------- |
| `tx` | [Tx](#cosmos.tx.v1beta1.Tx) | | **Deprecated.** tx is the transaction to simulate. Deprecated. Send raw tx bytes instead. | | `tx` | [Tx](#cosmos.tx.v1beta1.Tx) | | **Deprecated.** tx is the transaction to simulate. Deprecated. Send raw tx bytes instead. |
| `tx_bytes` | [bytes](#bytes) | | tx_bytes is the raw transaction. | | `tx_bytes` | [bytes](#bytes) | | tx_bytes is the raw transaction.
Since: cosmos-sdk 0.43 |
@ -9864,6 +9904,8 @@ upgrade.
### ModuleVersion ### ModuleVersion
ModuleVersion specifies a module and its consensus version. ModuleVersion specifies a module and its consensus version.
Since: cosmos-sdk 0.43
| Field | Type | Label | Description | | Field | Type | Label | Description |
| ----- | ---- | ----- | ----------- | | ----- | ---- | ----- | ----------- |
@ -9993,6 +10035,8 @@ method.
QueryModuleVersionsRequest is the request type for the Query/ModuleVersions QueryModuleVersionsRequest is the request type for the Query/ModuleVersions
RPC method. RPC method.
Since: cosmos-sdk 0.43
| Field | Type | Label | Description | | Field | Type | Label | Description |
| ----- | ---- | ----- | ----------- | | ----- | ---- | ----- | ----------- |
@ -10009,6 +10053,8 @@ RPC method.
QueryModuleVersionsResponse is the response type for the Query/ModuleVersions QueryModuleVersionsResponse is the response type for the Query/ModuleVersions
RPC method. RPC method.
Since: cosmos-sdk 0.43
| Field | Type | Label | Description | | Field | Type | Label | Description |
| ----- | ---- | ----- | ----------- | | ----- | ---- | ----- | ----------- |
@ -10044,7 +10090,7 @@ RPC method.
| Field | Type | Label | Description | | Field | Type | Label | Description |
| ----- | ---- | ----- | ----------- | | ----- | ---- | ----- | ----------- |
| `upgraded_consensus_state` | [bytes](#bytes) | | | | `upgraded_consensus_state` | [bytes](#bytes) | | Since: cosmos-sdk 0.43 |
@ -10067,7 +10113,9 @@ Query defines the gRPC upgrade querier service.
| `CurrentPlan` | [QueryCurrentPlanRequest](#cosmos.upgrade.v1beta1.QueryCurrentPlanRequest) | [QueryCurrentPlanResponse](#cosmos.upgrade.v1beta1.QueryCurrentPlanResponse) | CurrentPlan queries the current upgrade plan. | GET|/cosmos/upgrade/v1beta1/current_plan| | `CurrentPlan` | [QueryCurrentPlanRequest](#cosmos.upgrade.v1beta1.QueryCurrentPlanRequest) | [QueryCurrentPlanResponse](#cosmos.upgrade.v1beta1.QueryCurrentPlanResponse) | CurrentPlan queries the current upgrade plan. | GET|/cosmos/upgrade/v1beta1/current_plan|
| `AppliedPlan` | [QueryAppliedPlanRequest](#cosmos.upgrade.v1beta1.QueryAppliedPlanRequest) | [QueryAppliedPlanResponse](#cosmos.upgrade.v1beta1.QueryAppliedPlanResponse) | AppliedPlan queries a previously applied upgrade plan by its name. | GET|/cosmos/upgrade/v1beta1/applied_plan/{name}| | `AppliedPlan` | [QueryAppliedPlanRequest](#cosmos.upgrade.v1beta1.QueryAppliedPlanRequest) | [QueryAppliedPlanResponse](#cosmos.upgrade.v1beta1.QueryAppliedPlanResponse) | AppliedPlan queries a previously applied upgrade plan by its name. | GET|/cosmos/upgrade/v1beta1/applied_plan/{name}|
| `UpgradedConsensusState` | [QueryUpgradedConsensusStateRequest](#cosmos.upgrade.v1beta1.QueryUpgradedConsensusStateRequest) | [QueryUpgradedConsensusStateResponse](#cosmos.upgrade.v1beta1.QueryUpgradedConsensusStateResponse) | UpgradedConsensusState queries the consensus state that will serve as a trusted kernel for the next version of this chain. It will only be stored at the last height of this chain. UpgradedConsensusState RPC not supported with legacy querier This rpc is deprecated now that IBC has its own replacement (https://github.com/cosmos/ibc-go/blob/2c880a22e9f9cc75f62b527ca94aa75ce1106001/proto/ibc/core/client/v1/query.proto#L54) | GET|/cosmos/upgrade/v1beta1/upgraded_consensus_state/{last_height}| | `UpgradedConsensusState` | [QueryUpgradedConsensusStateRequest](#cosmos.upgrade.v1beta1.QueryUpgradedConsensusStateRequest) | [QueryUpgradedConsensusStateResponse](#cosmos.upgrade.v1beta1.QueryUpgradedConsensusStateResponse) | UpgradedConsensusState queries the consensus state that will serve as a trusted kernel for the next version of this chain. It will only be stored at the last height of this chain. UpgradedConsensusState RPC not supported with legacy querier This rpc is deprecated now that IBC has its own replacement (https://github.com/cosmos/ibc-go/blob/2c880a22e9f9cc75f62b527ca94aa75ce1106001/proto/ibc/core/client/v1/query.proto#L54) | GET|/cosmos/upgrade/v1beta1/upgraded_consensus_state/{last_height}|
| `ModuleVersions` | [QueryModuleVersionsRequest](#cosmos.upgrade.v1beta1.QueryModuleVersionsRequest) | [QueryModuleVersionsResponse](#cosmos.upgrade.v1beta1.QueryModuleVersionsResponse) | ModuleVersions queries the list of module versions from state. | GET|/cosmos/upgrade/v1beta1/module_versions| | `ModuleVersions` | [QueryModuleVersionsRequest](#cosmos.upgrade.v1beta1.QueryModuleVersionsRequest) | [QueryModuleVersionsResponse](#cosmos.upgrade.v1beta1.QueryModuleVersionsResponse) | ModuleVersions queries the list of module versions from state.
Since: cosmos-sdk 0.43 | GET|/cosmos/upgrade/v1beta1/module_versions|
<!-- end services --> <!-- end services -->
@ -10175,6 +10223,8 @@ PermanentLockedAccount implements the VestingAccount interface. It does
not ever release coins, locking them indefinitely. Coins in this account can not ever release coins, locking them indefinitely. Coins in this account can
still be used for delegating and for governance votes even while locked. still be used for delegating and for governance votes even while locked.
Since: cosmos-sdk 0.43
| Field | Type | Label | Description | | Field | Type | Label | Description |
| ----- | ---- | ----- | ----------- | | ----- | ---- | ----- | ----------- |

View File

@ -13,6 +13,8 @@ option go_package = "github.com/cosmos/cosmos-sdk/x/auth/types";
// Query defines the gRPC querier service. // Query defines the gRPC querier service.
service Query { service Query {
// Accounts returns all the existing accounts // Accounts returns all the existing accounts
//
// Since: cosmos-sdk 0.43
rpc Accounts(QueryAccountsRequest) returns (QueryAccountsResponse) { rpc Accounts(QueryAccountsRequest) returns (QueryAccountsResponse) {
option (google.api.http).get = "/cosmos/auth/v1beta1/accounts"; option (google.api.http).get = "/cosmos/auth/v1beta1/accounts";
} }
@ -49,12 +51,16 @@ service Query {
} }
// QueryAccountsRequest is the request type for the Query/Accounts RPC method. // QueryAccountsRequest is the request type for the Query/Accounts RPC method.
//
// Since: cosmos-sdk 0.43
message QueryAccountsRequest { message QueryAccountsRequest {
// pagination defines an optional pagination for the request. // pagination defines an optional pagination for the request.
cosmos.base.query.v1beta1.PageRequest pagination = 1; cosmos.base.query.v1beta1.PageRequest pagination = 1;
} }
// QueryAccountsResponse is the response type for the Query/Accounts RPC method. // QueryAccountsResponse is the response type for the Query/Accounts RPC method.
//
// Since: cosmos-sdk 0.43
message QueryAccountsResponse { message QueryAccountsResponse {
// accounts are the existing accounts // accounts are the existing accounts
repeated google.protobuf.Any accounts = 1 [(cosmos_proto.accepts_interface) = "AccountI"]; repeated google.protobuf.Any accounts = 1 [(cosmos_proto.accepts_interface) = "AccountI"];

View File

@ -1,3 +1,4 @@
// Since: cosmos-sdk 0.43
syntax = "proto3"; syntax = "proto3";
package cosmos.authz.v1beta1; package cosmos.authz.v1beta1;

View File

@ -1,3 +1,4 @@
// Since: cosmos-sdk 0.43
syntax = "proto3"; syntax = "proto3";
package cosmos.authz.v1beta1; package cosmos.authz.v1beta1;

View File

@ -1,3 +1,4 @@
// Since: cosmos-sdk 0.43
syntax = "proto3"; syntax = "proto3";
package cosmos.authz.v1beta1; package cosmos.authz.v1beta1;

View File

@ -1,3 +1,4 @@
// Since: cosmos-sdk 0.43
syntax = "proto3"; syntax = "proto3";
package cosmos.authz.v1beta1; package cosmos.authz.v1beta1;

View File

@ -1,3 +1,4 @@
// Since: cosmos-sdk 0.43
syntax = "proto3"; syntax = "proto3";
package cosmos.authz.v1beta1; package cosmos.authz.v1beta1;

View File

@ -9,6 +9,8 @@ option go_package = "github.com/cosmos/cosmos-sdk/x/bank/types";
// SendAuthorization allows the grantee to spend up to spend_limit coins from // SendAuthorization allows the grantee to spend up to spend_limit coins from
// the granter's account. // the granter's account.
//
// Since: cosmos-sdk 0.43
message SendAuthorization { message SendAuthorization {
option (cosmos_proto.implements_interface) = "Authorization"; option (cosmos_proto.implements_interface) = "Authorization";

View File

@ -85,13 +85,21 @@ message Metadata {
// displayed in clients. // displayed in clients.
string display = 4; string display = 4;
// name defines the name of the token (eg: Cosmos Atom) // name defines the name of the token (eg: Cosmos Atom)
//
// Since: cosmos-sdk 0.43
string name = 5; string name = 5;
// symbol is the token symbol usually shown on exchanges (eg: ATOM). This can // symbol is the token symbol usually shown on exchanges (eg: ATOM). This can
// be the same as the display. // be the same as the display.
//
// Since: cosmos-sdk 0.43
string symbol = 6; string symbol = 6;
// URI to a document (on or off-chain) that contains additional information. Optional. // URI to a document (on or off-chain) that contains additional information. Optional.
//
// Since: cosmos-sdk 0.45
string uri = 7 [(gogoproto.customname) = "URI"]; string uri = 7 [(gogoproto.customname) = "URI"];
// URIHash is a sha256 hash of a document pointed by URI. It's used to verify that // URIHash is a sha256 hash of a document pointed by URI. It's used to verify that
// the document didn't change. Optional. // the document didn't change. Optional.
//
// Since: cosmos-sdk 0.45
string uri_hash = 8 [(gogoproto.customname) = "URIHash"]; string uri_hash = 8 [(gogoproto.customname) = "URIHash"];
} }

View File

@ -103,6 +103,8 @@ message QueryTotalSupplyRequest {
option (gogoproto.goproto_getters) = false; option (gogoproto.goproto_getters) = false;
// pagination defines an optional pagination for the request. // pagination defines an optional pagination for the request.
//
// Since: cosmos-sdk 0.43
cosmos.base.query.v1beta1.PageRequest pagination = 1; cosmos.base.query.v1beta1.PageRequest pagination = 1;
} }
@ -114,6 +116,8 @@ message QueryTotalSupplyResponse {
[(gogoproto.nullable) = false, (gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; [(gogoproto.nullable) = false, (gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"];
// pagination defines the pagination in the response. // pagination defines the pagination in the response.
//
// Since: cosmos-sdk 0.43
cosmos.base.query.v1beta1.PageResponse pagination = 2; cosmos.base.query.v1beta1.PageResponse pagination = 2;
} }

View File

@ -32,6 +32,8 @@ message PageRequest {
bool count_total = 4; bool count_total = 4;
// reverse is set to true if results are to be returned in the descending order. // reverse is set to true if results are to be returned in the descending order.
//
// Since: cosmos-sdk 0.43
bool reverse = 5; bool reverse = 5;
} }

View File

@ -1,3 +1,4 @@
// Since: cosmos-sdk 0.43
syntax = "proto3"; syntax = "proto3";
package cosmos.base.reflection.v2alpha1; package cosmos.base.reflection.v2alpha1;

View File

@ -6,6 +6,8 @@ option go_package = "github.com/cosmos/cosmos-sdk/store/types";
// StoreKVPair is a KVStore KVPair used for listening to state changes (Sets and Deletes) // StoreKVPair is a KVStore KVPair used for listening to state changes (Sets and Deletes)
// It optionally includes the StoreKey for the originating KVStore and a Boolean flag to distinguish between Sets and // It optionally includes the StoreKey for the originating KVStore and a Boolean flag to distinguish between Sets and
// Deletes // Deletes
//
// Since: cosmos-sdk 0.43
message StoreKVPair { message StoreKVPair {
string store_key = 1; // the store key for the KVStore this pair originates from string store_key = 1; // the store key for the KVStore this pair originates from
bool delete = 2; // true indicates a delete operation, false indicates a set operation bool delete = 2; // true indicates a delete operation, false indicates a set operation

View File

@ -124,6 +124,7 @@ message VersionInfo {
string build_tags = 5; string build_tags = 5;
string go_version = 6; string go_version = 6;
repeated Module build_deps = 7; repeated Module build_deps = 7;
// Since: cosmos-sdk 0.43
string cosmos_sdk_version = 8; string cosmos_sdk_version = 8;
} }

View File

@ -1,3 +1,4 @@
// Since: cosmos-sdk 0.43
syntax = "proto3"; syntax = "proto3";
package cosmos.crypto.secp256r1; package cosmos.crypto.secp256r1;

View File

@ -1,3 +1,4 @@
// Since: cosmos-sdk 0.43
syntax = "proto3"; syntax = "proto3";
package cosmos.feegrant.v1beta1; package cosmos.feegrant.v1beta1;

View File

@ -1,3 +1,4 @@
// Since: cosmos-sdk 0.43
syntax = "proto3"; syntax = "proto3";
package cosmos.feegrant.v1beta1; package cosmos.feegrant.v1beta1;

View File

@ -1,3 +1,4 @@
// Since: cosmos-sdk 0.43
syntax = "proto3"; syntax = "proto3";
package cosmos.feegrant.v1beta1; package cosmos.feegrant.v1beta1;

View File

@ -1,3 +1,4 @@
// Since: cosmos-sdk 0.43
syntax = "proto3"; syntax = "proto3";
package cosmos.feegrant.v1beta1; package cosmos.feegrant.v1beta1;

View File

@ -30,6 +30,8 @@ enum VoteOption {
} }
// WeightedVoteOption defines a unit of vote for vote split. // WeightedVoteOption defines a unit of vote for vote split.
//
// Since: cosmos-sdk 0.43
message WeightedVoteOption { message WeightedVoteOption {
VoteOption option = 1; VoteOption option = 1;
string weight = 2 [ string weight = 2 [
@ -134,6 +136,7 @@ message Vote {
// if and only if `len(options) == 1` and that option has weight 1. In all // if and only if `len(options) == 1` and that option has weight 1. In all
// other cases, this field will default to VOTE_OPTION_UNSPECIFIED. // other cases, this field will default to VOTE_OPTION_UNSPECIFIED.
VoteOption option = 3 [deprecated = true]; VoteOption option = 3 [deprecated = true];
// Since: cosmos-sdk 0.43
repeated WeightedVoteOption options = 4 [(gogoproto.nullable) = false]; repeated WeightedVoteOption options = 4 [(gogoproto.nullable) = false];
} }

View File

@ -18,6 +18,8 @@ service Msg {
rpc Vote(MsgVote) returns (MsgVoteResponse); rpc Vote(MsgVote) returns (MsgVoteResponse);
// VoteWeighted defines a method to add a weighted vote on a specific proposal. // VoteWeighted defines a method to add a weighted vote on a specific proposal.
//
// Since: cosmos-sdk 0.43
rpc VoteWeighted(MsgVoteWeighted) returns (MsgVoteWeightedResponse); rpc VoteWeighted(MsgVoteWeighted) returns (MsgVoteWeightedResponse);
// Deposit defines a method to add deposit on a specific proposal. // Deposit defines a method to add deposit on a specific proposal.
@ -61,6 +63,8 @@ message MsgVote {
message MsgVoteResponse {} message MsgVoteResponse {}
// MsgVoteWeighted defines a message to cast a vote. // MsgVoteWeighted defines a message to cast a vote.
//
// Since: cosmos-sdk 0.43
message MsgVoteWeighted { message MsgVoteWeighted {
option (gogoproto.equal) = false; option (gogoproto.equal) = false;
option (gogoproto.goproto_stringer) = false; option (gogoproto.goproto_stringer) = false;
@ -73,6 +77,8 @@ message MsgVoteWeighted {
} }
// MsgVoteWeightedResponse defines the Msg/VoteWeighted response type. // MsgVoteWeightedResponse defines the Msg/VoteWeighted response type.
//
// Since: cosmos-sdk 0.43
message MsgVoteWeightedResponse {} message MsgVoteWeightedResponse {}
// MsgDeposit defines a message to submit a deposit to an existing proposal. // MsgDeposit defines a message to submit a deposit to an existing proposal.

View File

@ -8,6 +8,8 @@ import "cosmos/base/v1beta1/coin.proto";
option go_package = "github.com/cosmos/cosmos-sdk/x/staking/types"; option go_package = "github.com/cosmos/cosmos-sdk/x/staking/types";
// StakeAuthorization defines authorization for delegate/undelegate/redelegate. // StakeAuthorization defines authorization for delegate/undelegate/redelegate.
//
// Since: cosmos-sdk 0.43
message StakeAuthorization { message StakeAuthorization {
option (cosmos_proto.implements_interface) = "Authorization"; option (cosmos_proto.implements_interface) = "Authorization";
@ -31,6 +33,8 @@ message StakeAuthorization {
} }
// AuthorizationType defines the type of staking module authorization type // AuthorizationType defines the type of staking module authorization type
//
// Since: cosmos-sdk 0.43
enum AuthorizationType { enum AuthorizationType {
// AUTHORIZATION_TYPE_UNSPECIFIED specifies an unknown authorization type // AUTHORIZATION_TYPE_UNSPECIFIED specifies an unknown authorization type
AUTHORIZATION_TYPE_UNSPECIFIED = 0; AUTHORIZATION_TYPE_UNSPECIFIED = 0;

View File

@ -104,6 +104,8 @@ message SimulateRequest {
// Deprecated. Send raw tx bytes instead. // Deprecated. Send raw tx bytes instead.
cosmos.tx.v1beta1.Tx tx = 1 [deprecated = true]; cosmos.tx.v1beta1.Tx tx = 1 [deprecated = true];
// tx_bytes is the raw transaction. // tx_bytes is the raw transaction.
//
// Since: cosmos-sdk 0.43
bytes tx_bytes = 2; bytes tx_bytes = 2;
} }

View File

@ -137,6 +137,8 @@ message AuthInfo {
Fee fee = 2; Fee fee = 2;
// Tip is the optional tip used for meta-transactions. // Tip is the optional tip used for meta-transactions.
//
// Since: cosmos-sdk 0.45
Tip tip = 3; Tip tip = 3;
} }

View File

@ -31,6 +31,8 @@ service Query {
} }
// ModuleVersions queries the list of module versions from state. // ModuleVersions queries the list of module versions from state.
//
// Since: cosmos-sdk 0.43
rpc ModuleVersions(QueryModuleVersionsRequest) returns (QueryModuleVersionsResponse) { rpc ModuleVersions(QueryModuleVersionsRequest) returns (QueryModuleVersionsResponse) {
option (google.api.http).get = "/cosmos/upgrade/v1beta1/module_versions"; option (google.api.http).get = "/cosmos/upgrade/v1beta1/module_versions";
} }
@ -77,11 +79,14 @@ message QueryUpgradedConsensusStateResponse {
option deprecated = true; option deprecated = true;
reserved 1; reserved 1;
// Since: cosmos-sdk 0.43
bytes upgraded_consensus_state = 2; bytes upgraded_consensus_state = 2;
} }
// QueryModuleVersionsRequest is the request type for the Query/ModuleVersions // QueryModuleVersionsRequest is the request type for the Query/ModuleVersions
// RPC method. // RPC method.
//
// Since: cosmos-sdk 0.43
message QueryModuleVersionsRequest { message QueryModuleVersionsRequest {
// module_name is a field to query a specific module // module_name is a field to query a specific module
// consensus version from state. Leaving this empty will // consensus version from state. Leaving this empty will
@ -91,6 +96,8 @@ message QueryModuleVersionsRequest {
// QueryModuleVersionsResponse is the response type for the Query/ModuleVersions // QueryModuleVersionsResponse is the response type for the Query/ModuleVersions
// RPC method. // RPC method.
//
// Since: cosmos-sdk 0.43
message QueryModuleVersionsResponse { message QueryModuleVersionsResponse {
// module_versions is a list of module names with their consensus versions. // module_versions is a list of module names with their consensus versions.
repeated ModuleVersion module_versions = 1; repeated ModuleVersion module_versions = 1;

View File

@ -64,6 +64,8 @@ message CancelSoftwareUpgradeProposal {
} }
// ModuleVersion specifies a module and its consensus version. // ModuleVersion specifies a module and its consensus version.
//
// Since: cosmos-sdk 0.43
message ModuleVersion { message ModuleVersion {
option (gogoproto.equal) = true; option (gogoproto.equal) = true;
option (gogoproto.goproto_stringer) = true; option (gogoproto.goproto_stringer) = true;

View File

@ -72,6 +72,8 @@ message PeriodicVestingAccount {
// PermanentLockedAccount implements the VestingAccount interface. It does // PermanentLockedAccount implements the VestingAccount interface. It does
// not ever release coins, locking them indefinitely. Coins in this account can // not ever release coins, locking them indefinitely. Coins in this account can
// still be used for delegating and for governance votes even while locked. // still be used for delegating and for governance votes even while locked.
//
// Since: cosmos-sdk 0.43
message PermanentLockedAccount { message PermanentLockedAccount {
option (gogoproto.goproto_getters) = false; option (gogoproto.goproto_getters) = false;
option (gogoproto.goproto_stringer) = false; option (gogoproto.goproto_stringer) = false;

View File

@ -25,6 +25,8 @@ const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package
// StoreKVPair is a KVStore KVPair used for listening to state changes (Sets and Deletes) // StoreKVPair is a KVStore KVPair used for listening to state changes (Sets and Deletes)
// It optionally includes the StoreKey for the originating KVStore and a Boolean flag to distinguish between Sets and // It optionally includes the StoreKey for the originating KVStore and a Boolean flag to distinguish between Sets and
// Deletes // Deletes
//
// Since: cosmos-sdk 0.43
type StoreKVPair struct { type StoreKVPair struct {
StoreKey string `protobuf:"bytes,1,opt,name=store_key,json=storeKey,proto3" json:"store_key,omitempty"` StoreKey string `protobuf:"bytes,1,opt,name=store_key,json=storeKey,proto3" json:"store_key,omitempty"`
Delete bool `protobuf:"varint,2,opt,name=delete,proto3" json:"delete,omitempty"` Delete bool `protobuf:"varint,2,opt,name=delete,proto3" json:"delete,omitempty"`

View File

@ -47,6 +47,8 @@ type PageRequest struct {
// is set. // is set.
CountTotal bool `protobuf:"varint,4,opt,name=count_total,json=countTotal,proto3" json:"count_total,omitempty"` CountTotal bool `protobuf:"varint,4,opt,name=count_total,json=countTotal,proto3" json:"count_total,omitempty"`
// reverse is set to true if results are to be returned in the descending order. // reverse is set to true if results are to be returned in the descending order.
//
// Since: cosmos-sdk 0.43
Reverse bool `protobuf:"varint,5,opt,name=reverse,proto3" json:"reverse,omitempty"` Reverse bool `protobuf:"varint,5,opt,name=reverse,proto3" json:"reverse,omitempty"`
} }

View File

@ -342,6 +342,8 @@ type SimulateRequest struct {
// Deprecated. Send raw tx bytes instead. // Deprecated. Send raw tx bytes instead.
Tx *Tx `protobuf:"bytes,1,opt,name=tx,proto3" json:"tx,omitempty"` // Deprecated: Do not use. Tx *Tx `protobuf:"bytes,1,opt,name=tx,proto3" json:"tx,omitempty"` // Deprecated: Do not use.
// tx_bytes is the raw transaction. // tx_bytes is the raw transaction.
//
// Since: cosmos-sdk 0.43
TxBytes []byte `protobuf:"bytes,2,opt,name=tx_bytes,json=txBytes,proto3" json:"tx_bytes,omitempty"` TxBytes []byte `protobuf:"bytes,2,opt,name=tx_bytes,json=txBytes,proto3" json:"tx_bytes,omitempty"`
} }

View File

@ -450,6 +450,8 @@ type AuthInfo struct {
// of the signers. This can be estimated via simulation. // of the signers. This can be estimated via simulation.
Fee *Fee `protobuf:"bytes,2,opt,name=fee,proto3" json:"fee,omitempty"` Fee *Fee `protobuf:"bytes,2,opt,name=fee,proto3" json:"fee,omitempty"`
// Tip is the optional tip used for meta-transactions. // Tip is the optional tip used for meta-transactions.
//
// Since: cosmos-sdk 0.45
Tip *Tip `protobuf:"bytes,3,opt,name=tip,proto3" json:"tip,omitempty"` Tip *Tip `protobuf:"bytes,3,opt,name=tip,proto3" json:"tip,omitempty"`
} }

View File

@ -33,6 +33,8 @@ var _ = math.Inf
const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package
// QueryAccountsRequest is the request type for the Query/Accounts RPC method. // QueryAccountsRequest is the request type for the Query/Accounts RPC method.
//
// Since: cosmos-sdk 0.43
type QueryAccountsRequest struct { type QueryAccountsRequest struct {
// pagination defines an optional pagination for the request. // pagination defines an optional pagination for the request.
Pagination *query.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"` Pagination *query.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"`
@ -79,6 +81,8 @@ func (m *QueryAccountsRequest) GetPagination() *query.PageRequest {
} }
// QueryAccountsResponse is the response type for the Query/Accounts RPC method. // QueryAccountsResponse is the response type for the Query/Accounts RPC method.
//
// Since: cosmos-sdk 0.43
type QueryAccountsResponse struct { type QueryAccountsResponse struct {
// accounts are the existing accounts // accounts are the existing accounts
Accounts []*types.Any `protobuf:"bytes,1,rep,name=accounts,proto3" json:"accounts,omitempty"` Accounts []*types.Any `protobuf:"bytes,1,rep,name=accounts,proto3" json:"accounts,omitempty"`
@ -732,6 +736,8 @@ const _ = grpc.SupportPackageIsVersion4
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
type QueryClient interface { type QueryClient interface {
// Accounts returns all the existing accounts // Accounts returns all the existing accounts
//
// Since: cosmos-sdk 0.43
Accounts(ctx context.Context, in *QueryAccountsRequest, opts ...grpc.CallOption) (*QueryAccountsResponse, error) Accounts(ctx context.Context, in *QueryAccountsRequest, opts ...grpc.CallOption) (*QueryAccountsResponse, error)
// Account returns account details based on address. // Account returns account details based on address.
Account(ctx context.Context, in *QueryAccountRequest, opts ...grpc.CallOption) (*QueryAccountResponse, error) Account(ctx context.Context, in *QueryAccountRequest, opts ...grpc.CallOption) (*QueryAccountResponse, error)
@ -821,6 +827,8 @@ func (c *queryClient) AddressStringToBytes(ctx context.Context, in *AddressStrin
// QueryServer is the server API for Query service. // QueryServer is the server API for Query service.
type QueryServer interface { type QueryServer interface {
// Accounts returns all the existing accounts // Accounts returns all the existing accounts
//
// Since: cosmos-sdk 0.43
Accounts(context.Context, *QueryAccountsRequest) (*QueryAccountsResponse, error) Accounts(context.Context, *QueryAccountsRequest) (*QueryAccountsResponse, error)
// Account returns account details based on address. // Account returns account details based on address.
Account(context.Context, *QueryAccountRequest) (*QueryAccountResponse, error) Account(context.Context, *QueryAccountRequest) (*QueryAccountResponse, error)

View File

@ -241,6 +241,8 @@ var xxx_messageInfo_PeriodicVestingAccount proto.InternalMessageInfo
// PermanentLockedAccount implements the VestingAccount interface. It does // PermanentLockedAccount implements the VestingAccount interface. It does
// not ever release coins, locking them indefinitely. Coins in this account can // not ever release coins, locking them indefinitely. Coins in this account can
// still be used for delegating and for governance votes even while locked. // still be used for delegating and for governance votes even while locked.
//
// Since: cosmos-sdk 0.43
type PermanentLockedAccount struct { type PermanentLockedAccount struct {
*BaseVestingAccount `protobuf:"bytes,1,opt,name=base_vesting_account,json=baseVestingAccount,proto3,embedded=base_vesting_account" json:"base_vesting_account,omitempty"` *BaseVestingAccount `protobuf:"bytes,1,opt,name=base_vesting_account,json=baseVestingAccount,proto3,embedded=base_vesting_account" json:"base_vesting_account,omitempty"`
} }

View File

@ -28,6 +28,8 @@ const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package
// SendAuthorization allows the grantee to spend up to spend_limit coins from // SendAuthorization allows the grantee to spend up to spend_limit coins from
// the granter's account. // the granter's account.
//
// Since: cosmos-sdk 0.43
type SendAuthorization struct { type SendAuthorization struct {
SpendLimit github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,1,rep,name=spend_limit,json=spendLimit,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"spend_limit"` SpendLimit github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,1,rep,name=spend_limit,json=spendLimit,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"spend_limit"`
} }

View File

@ -332,14 +332,22 @@ type Metadata struct {
// displayed in clients. // displayed in clients.
Display string `protobuf:"bytes,4,opt,name=display,proto3" json:"display,omitempty"` Display string `protobuf:"bytes,4,opt,name=display,proto3" json:"display,omitempty"`
// name defines the name of the token (eg: Cosmos Atom) // name defines the name of the token (eg: Cosmos Atom)
//
// Since: cosmos-sdk 0.43
Name string `protobuf:"bytes,5,opt,name=name,proto3" json:"name,omitempty"` Name string `protobuf:"bytes,5,opt,name=name,proto3" json:"name,omitempty"`
// symbol is the token symbol usually shown on exchanges (eg: ATOM). This can // symbol is the token symbol usually shown on exchanges (eg: ATOM). This can
// be the same as the display. // be the same as the display.
//
// Since: cosmos-sdk 0.43
Symbol string `protobuf:"bytes,6,opt,name=symbol,proto3" json:"symbol,omitempty"` Symbol string `protobuf:"bytes,6,opt,name=symbol,proto3" json:"symbol,omitempty"`
// URI to a document (on or off-chain) that contains additional information. Optional. // URI to a document (on or off-chain) that contains additional information. Optional.
//
// Since: cosmos-sdk 0.45
URI string `protobuf:"bytes,7,opt,name=uri,proto3" json:"uri,omitempty"` URI string `protobuf:"bytes,7,opt,name=uri,proto3" json:"uri,omitempty"`
// URIHash is a sha256 hash of a document pointed by URI. It's used to verify that // URIHash is a sha256 hash of a document pointed by URI. It's used to verify that
// the document didn't change. Optional. // the document didn't change. Optional.
//
// Since: cosmos-sdk 0.45
URIHash string `protobuf:"bytes,8,opt,name=uri_hash,json=uriHash,proto3" json:"uri_hash,omitempty"` URIHash string `protobuf:"bytes,8,opt,name=uri_hash,json=uriHash,proto3" json:"uri_hash,omitempty"`
} }

View File

@ -221,6 +221,8 @@ func (m *QueryAllBalancesResponse) GetPagination() *query.PageResponse {
// method. // method.
type QueryTotalSupplyRequest struct { type QueryTotalSupplyRequest struct {
// pagination defines an optional pagination for the request. // pagination defines an optional pagination for the request.
//
// Since: cosmos-sdk 0.43
Pagination *query.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"` Pagination *query.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"`
} }
@ -263,6 +265,8 @@ type QueryTotalSupplyResponse struct {
// supply is the supply of the coins // supply is the supply of the coins
Supply github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,1,rep,name=supply,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"supply"` Supply github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,1,rep,name=supply,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"supply"`
// pagination defines the pagination in the response. // pagination defines the pagination in the response.
//
// Since: cosmos-sdk 0.43
Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
} }

View File

@ -122,6 +122,8 @@ func (ProposalStatus) EnumDescriptor() ([]byte, []int) {
} }
// WeightedVoteOption defines a unit of vote for vote split. // WeightedVoteOption defines a unit of vote for vote split.
//
// Since: cosmos-sdk 0.43
type WeightedVoteOption struct { type WeightedVoteOption struct {
Option VoteOption `protobuf:"varint,1,opt,name=option,proto3,enum=cosmos.gov.v1beta1.VoteOption" json:"option,omitempty"` Option VoteOption `protobuf:"varint,1,opt,name=option,proto3,enum=cosmos.gov.v1beta1.VoteOption" json:"option,omitempty"`
Weight github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,2,opt,name=weight,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"weight"` Weight github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,2,opt,name=weight,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"weight"`
@ -331,7 +333,8 @@ type Vote struct {
// Deprecated: Prefer to use `options` instead. This field is set in queries // Deprecated: Prefer to use `options` instead. This field is set in queries
// if and only if `len(options) == 1` and that option has weight 1. In all // if and only if `len(options) == 1` and that option has weight 1. In all
// other cases, this field will default to VOTE_OPTION_UNSPECIFIED. // other cases, this field will default to VOTE_OPTION_UNSPECIFIED.
Option VoteOption `protobuf:"varint,3,opt,name=option,proto3,enum=cosmos.gov.v1beta1.VoteOption" json:"option,omitempty"` // Deprecated: Do not use. Option VoteOption `protobuf:"varint,3,opt,name=option,proto3,enum=cosmos.gov.v1beta1.VoteOption" json:"option,omitempty"` // Deprecated: Do not use.
// Since: cosmos-sdk 0.43
Options []WeightedVoteOption `protobuf:"bytes,4,rep,name=options,proto3" json:"options"` Options []WeightedVoteOption `protobuf:"bytes,4,rep,name=options,proto3" json:"options"`
} }

View File

@ -194,6 +194,8 @@ func (m *MsgVoteResponse) XXX_DiscardUnknown() {
var xxx_messageInfo_MsgVoteResponse proto.InternalMessageInfo var xxx_messageInfo_MsgVoteResponse proto.InternalMessageInfo
// MsgVoteWeighted defines a message to cast a vote. // MsgVoteWeighted defines a message to cast a vote.
//
// Since: cosmos-sdk 0.43
type MsgVoteWeighted struct { type MsgVoteWeighted struct {
ProposalId uint64 `protobuf:"varint,1,opt,name=proposal_id,json=proposalId,proto3" json:"proposal_id,omitempty"` ProposalId uint64 `protobuf:"varint,1,opt,name=proposal_id,json=proposalId,proto3" json:"proposal_id,omitempty"`
Voter string `protobuf:"bytes,2,opt,name=voter,proto3" json:"voter,omitempty"` Voter string `protobuf:"bytes,2,opt,name=voter,proto3" json:"voter,omitempty"`
@ -233,6 +235,8 @@ func (m *MsgVoteWeighted) XXX_DiscardUnknown() {
var xxx_messageInfo_MsgVoteWeighted proto.InternalMessageInfo var xxx_messageInfo_MsgVoteWeighted proto.InternalMessageInfo
// MsgVoteWeightedResponse defines the Msg/VoteWeighted response type. // MsgVoteWeightedResponse defines the Msg/VoteWeighted response type.
//
// Since: cosmos-sdk 0.43
type MsgVoteWeightedResponse struct { type MsgVoteWeightedResponse struct {
} }
@ -420,6 +424,8 @@ type MsgClient interface {
// Vote defines a method to add a vote on a specific proposal. // Vote defines a method to add a vote on a specific proposal.
Vote(ctx context.Context, in *MsgVote, opts ...grpc.CallOption) (*MsgVoteResponse, error) Vote(ctx context.Context, in *MsgVote, opts ...grpc.CallOption) (*MsgVoteResponse, error)
// VoteWeighted defines a method to add a weighted vote on a specific proposal. // VoteWeighted defines a method to add a weighted vote on a specific proposal.
//
// Since: cosmos-sdk 0.43
VoteWeighted(ctx context.Context, in *MsgVoteWeighted, opts ...grpc.CallOption) (*MsgVoteWeightedResponse, error) VoteWeighted(ctx context.Context, in *MsgVoteWeighted, opts ...grpc.CallOption) (*MsgVoteWeightedResponse, error)
// Deposit defines a method to add deposit on a specific proposal. // Deposit defines a method to add deposit on a specific proposal.
Deposit(ctx context.Context, in *MsgDeposit, opts ...grpc.CallOption) (*MsgDepositResponse, error) Deposit(ctx context.Context, in *MsgDeposit, opts ...grpc.CallOption) (*MsgDepositResponse, error)
@ -476,6 +482,8 @@ type MsgServer interface {
// Vote defines a method to add a vote on a specific proposal. // Vote defines a method to add a vote on a specific proposal.
Vote(context.Context, *MsgVote) (*MsgVoteResponse, error) Vote(context.Context, *MsgVote) (*MsgVoteResponse, error)
// VoteWeighted defines a method to add a weighted vote on a specific proposal. // VoteWeighted defines a method to add a weighted vote on a specific proposal.
//
// Since: cosmos-sdk 0.43
VoteWeighted(context.Context, *MsgVoteWeighted) (*MsgVoteWeightedResponse, error) VoteWeighted(context.Context, *MsgVoteWeighted) (*MsgVoteWeightedResponse, error)
// Deposit defines a method to add deposit on a specific proposal. // Deposit defines a method to add deposit on a specific proposal.
Deposit(context.Context, *MsgDeposit) (*MsgDepositResponse, error) Deposit(context.Context, *MsgDeposit) (*MsgDepositResponse, error)

View File

@ -26,6 +26,8 @@ var _ = math.Inf
const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package
// AuthorizationType defines the type of staking module authorization type // AuthorizationType defines the type of staking module authorization type
//
// Since: cosmos-sdk 0.43
type AuthorizationType int32 type AuthorizationType int32
const ( const (
@ -62,6 +64,8 @@ func (AuthorizationType) EnumDescriptor() ([]byte, []int) {
} }
// StakeAuthorization defines authorization for delegate/undelegate/redelegate. // StakeAuthorization defines authorization for delegate/undelegate/redelegate.
//
// Since: cosmos-sdk 0.43
type StakeAuthorization struct { type StakeAuthorization struct {
// max_tokens specifies the maximum amount of tokens can be delegate to a validator. If it is // max_tokens specifies the maximum amount of tokens can be delegate to a validator. If it is
// empty, there is no spend limit and any amount of coins can be delegated. // empty, there is no spend limit and any amount of coins can be delegated.

View File

@ -263,6 +263,7 @@ func (m *QueryUpgradedConsensusStateRequest) GetLastHeight() int64 {
// //
// Deprecated: Do not use. // Deprecated: Do not use.
type QueryUpgradedConsensusStateResponse struct { type QueryUpgradedConsensusStateResponse struct {
// Since: cosmos-sdk 0.43
UpgradedConsensusState []byte `protobuf:"bytes,2,opt,name=upgraded_consensus_state,json=upgradedConsensusState,proto3" json:"upgraded_consensus_state,omitempty"` UpgradedConsensusState []byte `protobuf:"bytes,2,opt,name=upgraded_consensus_state,json=upgradedConsensusState,proto3" json:"upgraded_consensus_state,omitempty"`
} }
@ -308,6 +309,8 @@ func (m *QueryUpgradedConsensusStateResponse) GetUpgradedConsensusState() []byte
// QueryModuleVersionsRequest is the request type for the Query/ModuleVersions // QueryModuleVersionsRequest is the request type for the Query/ModuleVersions
// RPC method. // RPC method.
//
// Since: cosmos-sdk 0.43
type QueryModuleVersionsRequest struct { type QueryModuleVersionsRequest struct {
// module_name is a field to query a specific module // module_name is a field to query a specific module
// consensus version from state. Leaving this empty will // consensus version from state. Leaving this empty will
@ -357,6 +360,8 @@ func (m *QueryModuleVersionsRequest) GetModuleName() string {
// QueryModuleVersionsResponse is the response type for the Query/ModuleVersions // QueryModuleVersionsResponse is the response type for the Query/ModuleVersions
// RPC method. // RPC method.
//
// Since: cosmos-sdk 0.43
type QueryModuleVersionsResponse struct { type QueryModuleVersionsResponse struct {
// module_versions is a list of module names with their consensus versions. // module_versions is a list of module names with their consensus versions.
ModuleVersions []*ModuleVersion `protobuf:"bytes,1,rep,name=module_versions,json=moduleVersions,proto3" json:"module_versions,omitempty"` ModuleVersions []*ModuleVersion `protobuf:"bytes,1,rep,name=module_versions,json=moduleVersions,proto3" json:"module_versions,omitempty"`
@ -482,6 +487,8 @@ type QueryClient interface {
// (https://github.com/cosmos/ibc-go/blob/2c880a22e9f9cc75f62b527ca94aa75ce1106001/proto/ibc/core/client/v1/query.proto#L54) // (https://github.com/cosmos/ibc-go/blob/2c880a22e9f9cc75f62b527ca94aa75ce1106001/proto/ibc/core/client/v1/query.proto#L54)
UpgradedConsensusState(ctx context.Context, in *QueryUpgradedConsensusStateRequest, opts ...grpc.CallOption) (*QueryUpgradedConsensusStateResponse, error) UpgradedConsensusState(ctx context.Context, in *QueryUpgradedConsensusStateRequest, opts ...grpc.CallOption) (*QueryUpgradedConsensusStateResponse, error)
// ModuleVersions queries the list of module versions from state. // ModuleVersions queries the list of module versions from state.
//
// Since: cosmos-sdk 0.43
ModuleVersions(ctx context.Context, in *QueryModuleVersionsRequest, opts ...grpc.CallOption) (*QueryModuleVersionsResponse, error) ModuleVersions(ctx context.Context, in *QueryModuleVersionsRequest, opts ...grpc.CallOption) (*QueryModuleVersionsResponse, error)
} }
@ -544,6 +551,8 @@ type QueryServer interface {
// (https://github.com/cosmos/ibc-go/blob/2c880a22e9f9cc75f62b527ca94aa75ce1106001/proto/ibc/core/client/v1/query.proto#L54) // (https://github.com/cosmos/ibc-go/blob/2c880a22e9f9cc75f62b527ca94aa75ce1106001/proto/ibc/core/client/v1/query.proto#L54)
UpgradedConsensusState(context.Context, *QueryUpgradedConsensusStateRequest) (*QueryUpgradedConsensusStateResponse, error) UpgradedConsensusState(context.Context, *QueryUpgradedConsensusStateRequest) (*QueryUpgradedConsensusStateResponse, error)
// ModuleVersions queries the list of module versions from state. // ModuleVersions queries the list of module versions from state.
//
// Since: cosmos-sdk 0.43
ModuleVersions(context.Context, *QueryModuleVersionsRequest) (*QueryModuleVersionsResponse, error) ModuleVersions(context.Context, *QueryModuleVersionsRequest) (*QueryModuleVersionsResponse, error)
} }

View File

@ -166,6 +166,8 @@ func (m *CancelSoftwareUpgradeProposal) XXX_DiscardUnknown() {
var xxx_messageInfo_CancelSoftwareUpgradeProposal proto.InternalMessageInfo var xxx_messageInfo_CancelSoftwareUpgradeProposal proto.InternalMessageInfo
// ModuleVersion specifies a module and its consensus version. // ModuleVersion specifies a module and its consensus version.
//
// Since: cosmos-sdk 0.43
type ModuleVersion struct { type ModuleVersion struct {
// name of the app module // name of the app module
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`