From 9cea181a3d1fce06ee02bc46e7afda1d133e48a0 Mon Sep 17 00:00:00 2001 From: Paul Chen Date: Fri, 17 May 2024 14:48:42 +0800 Subject: [PATCH 1/2] chore: update protoc-swagger-gen to protoc-openapi-gen --- client/docs/swagger-ui/swagger.yaml | 23136 ++++++++---------- contrib/devtools/Dockerfile | 4 +- proto/buf.gen.swagger.yaml | 4 +- proto/cosmos/app/v1alpha1/config.proto | 2 + proto/cosmos/app/v1alpha1/module.proto | 2 + proto/cosmos/app/v1alpha1/query.proto | 2 + proto/cosmos/orm/query/v1alpha1/query.proto | 2 + scripts/protoc-swagger-gen.sh | 2 +- 8 files changed, 9899 insertions(+), 13255 deletions(-) diff --git a/client/docs/swagger-ui/swagger.yaml b/client/docs/swagger-ui/swagger.yaml index a3b70bb6538a..29df67ba00b7 100644 --- a/client/docs/swagger-ui/swagger.yaml +++ b/client/docs/swagger-ui/swagger.yaml @@ -7,7 +7,6 @@ paths: /cosmos/auth/v1beta1/account_info/{address}: get: summary: AccountInfo queries account info which is common to all account types. - description: 'Since: cosmos-sdk 0.47' operationId: AccountInfo responses: '200': @@ -24,7 +23,7 @@ paths: pub_key: type: object properties: - type_url: + '@type': type: string description: >- A URL/resource name that uniquely identifies the type @@ -82,12 +81,7 @@ paths: 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. + additionalProperties: {} description: >- `Any` contains an arbitrary serialized protocol buffer message along with a @@ -208,17 +202,12 @@ paths: sequence: type: string format: uint64 - description: |- - QueryAccountInfoResponse is the Query/AccountInfo response type. - - Since: cosmos-sdk 0.47 + description: QueryAccountInfoResponse is the Query/AccountInfo response type. default: description: An unexpected error response. schema: type: object properties: - error: - type: string code: type: integer format: int32 @@ -229,7 +218,7 @@ paths: items: type: object properties: - type_url: + '@type': type: string description: >- A URL/resource name that uniquely identifies the type of @@ -287,12 +276,7 @@ paths: 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. + additionalProperties: {} description: >- `Any` contains an arbitrary serialized protocol buffer message along with a @@ -417,15 +401,13 @@ paths: - Query /cosmos/auth/v1beta1/accounts: get: - summary: Accounts returns all the existing accounts. - description: >- + summary: >- + Accounts returns all the existing accounts. + When called from another module, this query might consume a high amount of gas if the pagination field is incorrectly set. - - - Since: cosmos-sdk 0.43 operationId: Accounts responses: '200': @@ -438,7 +420,7 @@ paths: items: type: object properties: - type_url: + '@type': type: string description: >- A URL/resource name that uniquely identifies the type of @@ -496,12 +478,7 @@ paths: 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. + additionalProperties: {} description: >- `Any` contains an arbitrary serialized protocol buffer message along with a @@ -639,16 +616,11 @@ paths: description: >- QueryAccountsResponse is the response type for the Query/Accounts RPC method. - - - Since: cosmos-sdk 0.43 default: description: An unexpected error response. schema: type: object properties: - error: - type: string code: type: integer format: int32 @@ -659,7 +631,7 @@ paths: items: type: object properties: - type_url: + '@type': type: string description: >- A URL/resource name that uniquely identifies the type of @@ -717,12 +689,7 @@ paths: 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. + additionalProperties: {} description: >- `Any` contains an arbitrary serialized protocol buffer message along with a @@ -888,9 +855,6 @@ paths: description: >- reverse is set to true if results are to be returned in the descending order. - - - Since: cosmos-sdk 0.43 in: query required: false type: boolean @@ -909,7 +873,7 @@ paths: account: type: object properties: - type_url: + '@type': type: string description: >- A URL/resource name that uniquely identifies the type of @@ -966,12 +930,7 @@ paths: 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. + additionalProperties: {} description: >- `Any` contains an arbitrary serialized protocol buffer message along with a @@ -1091,8 +1050,6 @@ paths: schema: type: object properties: - error: - type: string code: type: integer format: int32 @@ -1103,7 +1060,7 @@ paths: items: type: object properties: - type_url: + '@type': type: string description: >- A URL/resource name that uniquely identifies the type of @@ -1161,12 +1118,7 @@ paths: 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. + additionalProperties: {} description: >- `Any` contains an arbitrary serialized protocol buffer message along with a @@ -1292,7 +1244,6 @@ paths: /cosmos/auth/v1beta1/address_by_id/{id}: get: summary: AccountAddressByID returns account address based on account number. - description: 'Since: cosmos-sdk 0.46.2' operationId: AccountAddressByID responses: '200': @@ -1302,7 +1253,6 @@ paths: properties: account_address: type: string - description: 'Since: cosmos-sdk 0.46.2' title: >- QueryAccountAddressByIDResponse is the response type for AccountAddressByID rpc method @@ -1311,8 +1261,6 @@ paths: schema: type: object properties: - error: - type: string code: type: integer format: int32 @@ -1323,7 +1271,7 @@ paths: items: type: object properties: - type_url: + '@type': type: string description: >- A URL/resource name that uniquely identifies the type of @@ -1381,12 +1329,7 @@ paths: 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. + additionalProperties: {} description: >- `Any` contains an arbitrary serialized protocol buffer message along with a @@ -1514,10 +1457,7 @@ paths: type: string format: int64 - name: account_id - description: |- - account_id is the account number of the address to be queried. - - Since: cosmos-sdk 0.47 + description: account_id is the account number of the address to be queried. in: query required: false type: string @@ -1527,7 +1467,6 @@ paths: /cosmos/auth/v1beta1/bech32: get: summary: Bech32Prefix queries bech32Prefix - description: 'Since: cosmos-sdk 0.46' operationId: Bech32Prefix responses: '200': @@ -1540,16 +1479,11 @@ paths: description: >- Bech32PrefixResponse is the response type for Bech32Prefix rpc method. - - - Since: cosmos-sdk 0.46 default: description: An unexpected error response. schema: type: object properties: - error: - type: string code: type: integer format: int32 @@ -1560,7 +1494,7 @@ paths: items: type: object properties: - type_url: + '@type': type: string description: >- A URL/resource name that uniquely identifies the type of @@ -1618,12 +1552,7 @@ paths: 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. + additionalProperties: {} description: >- `Any` contains an arbitrary serialized protocol buffer message along with a @@ -1743,7 +1672,6 @@ paths: /cosmos/auth/v1beta1/bech32/{address_bytes}: get: summary: AddressBytesToString converts Account Address bytes to string - description: 'Since: cosmos-sdk 0.46' operationId: AddressBytesToString responses: '200': @@ -1756,16 +1684,11 @@ paths: description: >- AddressBytesToStringResponse is the response type for AddressString rpc method. - - - Since: cosmos-sdk 0.46 default: description: An unexpected error response. schema: type: object properties: - error: - type: string code: type: integer format: int32 @@ -1776,7 +1699,7 @@ paths: items: type: object properties: - type_url: + '@type': type: string description: >- A URL/resource name that uniquely identifies the type of @@ -1834,12 +1757,7 @@ paths: 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. + additionalProperties: {} description: >- `Any` contains an arbitrary serialized protocol buffer message along with a @@ -1965,7 +1883,6 @@ paths: /cosmos/auth/v1beta1/bech32/{address_string}: get: summary: AddressStringToBytes converts Address string to bytes - description: 'Since: cosmos-sdk 0.46' operationId: AddressStringToBytes responses: '200': @@ -1979,16 +1896,11 @@ paths: description: >- AddressStringToBytesResponse is the response type for AddressBytes rpc method. - - - Since: cosmos-sdk 0.46 default: description: An unexpected error response. schema: type: object properties: - error: - type: string code: type: integer format: int32 @@ -1999,7 +1911,7 @@ paths: items: type: object properties: - type_url: + '@type': type: string description: >- A URL/resource name that uniquely identifies the type of @@ -2057,12 +1969,7 @@ paths: 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. + additionalProperties: {} description: >- `Any` contains an arbitrary serialized protocol buffer message along with a @@ -2187,7 +2094,6 @@ paths: /cosmos/auth/v1beta1/module_accounts: get: summary: ModuleAccounts returns all the existing module accounts. - description: 'Since: cosmos-sdk 0.46' operationId: ModuleAccounts responses: '200': @@ -2200,7 +2106,7 @@ paths: items: type: object properties: - type_url: + '@type': type: string description: >- A URL/resource name that uniquely identifies the type of @@ -2258,12 +2164,7 @@ paths: 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. + additionalProperties: {} description: >- `Any` contains an arbitrary serialized protocol buffer message along with a @@ -2381,16 +2282,11 @@ paths: description: >- QueryModuleAccountsResponse is the response type for the Query/ModuleAccounts RPC method. - - - Since: cosmos-sdk 0.46 default: description: An unexpected error response. schema: type: object properties: - error: - type: string code: type: integer format: int32 @@ -2401,7 +2297,7 @@ paths: items: type: object properties: - type_url: + '@type': type: string description: >- A URL/resource name that uniquely identifies the type of @@ -2459,12 +2355,7 @@ paths: 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. + additionalProperties: {} description: >- `Any` contains an arbitrary serialized protocol buffer message along with a @@ -2594,7 +2485,7 @@ paths: account: type: object properties: - type_url: + '@type': type: string description: >- A URL/resource name that uniquely identifies the type of @@ -2651,12 +2542,7 @@ paths: 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. + additionalProperties: {} description: >- `Any` contains an arbitrary serialized protocol buffer message along with a @@ -2776,8 +2662,6 @@ paths: schema: type: object properties: - error: - type: string code: type: integer format: int32 @@ -2788,7 +2672,7 @@ paths: items: type: object properties: - type_url: + '@type': type: string description: >- A URL/resource name that uniquely identifies the type of @@ -2846,12 +2730,7 @@ paths: 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. + additionalProperties: {} description: >- `Any` contains an arbitrary serialized protocol buffer message along with a @@ -3010,8 +2889,6 @@ paths: schema: type: object properties: - error: - type: string code: type: integer format: int32 @@ -3022,7 +2899,7 @@ paths: items: type: object properties: - type_url: + '@type': type: string description: >- A URL/resource name that uniquely identifies the type of @@ -3080,12 +2957,7 @@ paths: 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. + additionalProperties: {} description: >- `Any` contains an arbitrary serialized protocol buffer message along with a @@ -3264,8 +3136,6 @@ paths: schema: type: object properties: - error: - type: string code: type: integer format: int32 @@ -3276,11 +3146,9 @@ paths: items: type: object properties: - type_url: + '@type': type: string - value: - type: string - format: byte + additionalProperties: {} parameters: - name: address description: address is the address to query balances for. @@ -3337,9 +3205,6 @@ paths: description: >- reverse is set to true if results are to be returned in the descending order. - - - Since: cosmos-sdk 0.43 in: query required: false type: boolean @@ -3347,9 +3212,6 @@ paths: description: >- resolve_denom is the flag to resolve the denom into a human-readable form from the metadata. - - - Since: cosmos-sdk 0.50 in: query required: false type: boolean @@ -3366,20 +3228,13 @@ paths: type: object properties: balance: + description: balance is the balance of the coin. type: object properties: denom: type: string amount: type: string - description: >- - Coin defines a token with a denomination and an amount. - - - NOTE: The amount field is an Int which implements the custom - method - - signatures required by gogoproto. description: >- QueryBalanceResponse is the response type for the Query/Balance RPC method. @@ -3388,8 +3243,6 @@ paths: schema: type: object properties: - error: - type: string code: type: integer format: int32 @@ -3400,11 +3253,9 @@ paths: items: type: object properties: - type_url: - type: string - value: + '@type': type: string - format: byte + additionalProperties: {} parameters: - name: address description: address is the address to query balances for. @@ -3430,9 +3281,6 @@ paths: of gas if the pagination field is incorrectly set. - - - Since: cosmos-sdk 0.46 operationId: DenomOwners responses: '200': @@ -3451,20 +3299,15 @@ paths: address defines the address that owns a particular denomination. balance: + description: >- + balance is the balance of the denominated coin for an + account. type: object properties: denom: type: string amount: type: string - description: >- - Coin defines a token with a denomination and an amount. - - - NOTE: The amount field is an Int which implements the - custom method - - signatures required by gogoproto. description: >- DenomOwner defines structure representing an account that owns or holds a @@ -3473,9 +3316,6 @@ paths: address and account balance of the denominated token. - - - Since: cosmos-sdk 0.46 pagination: description: pagination defines the pagination in the response. type: object @@ -3498,16 +3338,11 @@ paths: description: >- QueryDenomOwnersResponse defines the RPC response of a DenomOwners RPC query. - - - Since: cosmos-sdk 0.46 default: description: An unexpected error response. schema: type: object properties: - error: - type: string code: type: integer format: int32 @@ -3518,11 +3353,9 @@ paths: items: type: object properties: - type_url: + '@type': type: string - value: - type: string - format: byte + additionalProperties: {} parameters: - name: denom description: >- @@ -3581,9 +3414,6 @@ paths: description: >- reverse is set to true if results are to be returned in the descending order. - - - Since: cosmos-sdk 0.43 in: query required: false type: boolean @@ -3592,8 +3422,8 @@ paths: /cosmos/bank/v1beta1/denom_owners_by_query: get: summary: >- - DenomOwners queries for all account addresses that own a particular - token + DenomOwnersByQuery queries for all account addresses that own a + particular token denomination. operationId: DenomOwnersByQuery @@ -3614,20 +3444,15 @@ paths: address defines the address that owns a particular denomination. balance: + description: >- + balance is the balance of the denominated coin for an + account. type: object properties: denom: type: string amount: type: string - description: >- - Coin defines a token with a denomination and an amount. - - - NOTE: The amount field is an Int which implements the - custom method - - signatures required by gogoproto. description: >- DenomOwner defines structure representing an account that owns or holds a @@ -3636,9 +3461,6 @@ paths: address and account balance of the denominated token. - - - Since: cosmos-sdk 0.46 pagination: description: pagination defines the pagination in the response. type: object @@ -3666,8 +3488,6 @@ paths: schema: type: object properties: - error: - type: string code: type: integer format: int32 @@ -3678,11 +3498,9 @@ paths: items: type: object properties: - type_url: - type: string - value: + '@type': type: string - format: byte + additionalProperties: {} parameters: - name: denom description: >- @@ -3741,9 +3559,6 @@ paths: description: >- reverse is set to true if results are to be returned in the descending order. - - - Since: cosmos-sdk 0.43 in: query required: false type: boolean @@ -3819,7 +3634,6 @@ paths: displayed in clients. name: type: string - description: 'Since: cosmos-sdk 0.43' title: 'name defines the name of the token (eg: Cosmos Atom)' symbol: type: string @@ -3828,17 +3642,11 @@ paths: (eg: ATOM). This can be the same as the display. - - - Since: cosmos-sdk 0.43 uri: type: string description: >- URI to a document (on or off-chain) that contains additional information. Optional. - - - Since: cosmos-sdk 0.46 uri_hash: type: string description: >- @@ -3846,9 +3654,6 @@ paths: It's used to verify that the document didn't change. Optional. - - - Since: cosmos-sdk 0.46 description: |- Metadata represents a struct that describes a basic token. @@ -3884,8 +3689,6 @@ paths: schema: type: object properties: - error: - type: string code: type: integer format: int32 @@ -3896,11 +3699,9 @@ paths: items: type: object properties: - type_url: - type: string - value: + '@type': type: string - format: byte + additionalProperties: {} parameters: - name: pagination.key description: |- @@ -3952,9 +3753,6 @@ paths: description: >- reverse is set to true if results are to be returned in the descending order. - - - Since: cosmos-sdk 0.43 in: query required: false type: boolean @@ -3962,7 +3760,7 @@ paths: - Query /cosmos/bank/v1beta1/denoms_metadata/{denom}: get: - summary: DenomsMetadata queries the client metadata of a given coin denomination. + summary: DenomMetadata queries the client metadata of a given coin denomination. operationId: DenomMetadata responses: '200': @@ -3971,6 +3769,9 @@ paths: type: object properties: metadata: + description: >- + metadata describes and provides all the client information for + the requested token. type: object properties: description: @@ -4026,7 +3827,6 @@ paths: displayed in clients. name: type: string - description: 'Since: cosmos-sdk 0.43' title: 'name defines the name of the token (eg: Cosmos Atom)' symbol: type: string @@ -4035,17 +3835,11 @@ paths: ATOM). This can be the same as the display. - - - Since: cosmos-sdk 0.43 uri: type: string description: >- URI to a document (on or off-chain) that contains additional information. Optional. - - - Since: cosmos-sdk 0.46 uri_hash: type: string description: >- @@ -4053,12 +3847,6 @@ paths: It's used to verify that the document didn't change. Optional. - - - Since: cosmos-sdk 0.46 - description: |- - Metadata represents a struct that describes - a basic token. description: >- QueryDenomMetadataResponse is the response type for the Query/DenomMetadata RPC @@ -4069,8 +3857,6 @@ paths: schema: type: object properties: - error: - type: string code: type: integer format: int32 @@ -4081,11 +3867,9 @@ paths: items: type: object properties: - type_url: - type: string - value: + '@type': type: string - format: byte + additionalProperties: {} parameters: - name: denom description: denom is the coin denom to query the metadata for. @@ -4096,7 +3880,9 @@ paths: - Query /cosmos/bank/v1beta1/denoms_metadata_by_query_string: get: - summary: DenomsMetadata queries the client metadata of a given coin denomination. + summary: >- + DenomMetadataByQueryString queries the client metadata of a given coin + denomination. operationId: DenomMetadataByQueryString responses: '200': @@ -4105,6 +3891,9 @@ paths: type: object properties: metadata: + description: >- + metadata describes and provides all the client information for + the requested token. type: object properties: description: @@ -4160,7 +3949,6 @@ paths: displayed in clients. name: type: string - description: 'Since: cosmos-sdk 0.43' title: 'name defines the name of the token (eg: Cosmos Atom)' symbol: type: string @@ -4169,17 +3957,11 @@ paths: ATOM). This can be the same as the display. - - - Since: cosmos-sdk 0.43 uri: type: string description: >- URI to a document (on or off-chain) that contains additional information. Optional. - - - Since: cosmos-sdk 0.46 uri_hash: type: string description: >- @@ -4187,12 +3969,6 @@ paths: It's used to verify that the document didn't change. Optional. - - - Since: cosmos-sdk 0.46 - description: |- - Metadata represents a struct that describes - a basic token. description: >- QueryDenomMetadataByQueryStringResponse is the response type for the Query/DenomMetadata RPC @@ -4204,8 +3980,6 @@ paths: schema: type: object properties: - error: - type: string code: type: integer format: int32 @@ -4216,11 +3990,9 @@ paths: items: type: object properties: - type_url: - type: string - value: + '@type': type: string - format: byte + additionalProperties: {} parameters: - name: denom description: denom is the coin denom to query the metadata for. @@ -4279,8 +4051,6 @@ paths: schema: type: object properties: - error: - type: string code: type: integer format: int32 @@ -4291,11 +4061,9 @@ paths: items: type: object properties: - type_url: + '@type': type: string - value: - type: string - format: byte + additionalProperties: {} tags: - Query /cosmos/bank/v1beta1/send_enabled: @@ -4309,9 +4077,6 @@ paths: default params.default_send_enabled, and will not be returned by this query. - - - Since: cosmos-sdk 0.47 operationId: SendEnabled responses: '200': @@ -4359,16 +4124,11 @@ paths: description: >- QuerySendEnabledResponse defines the RPC response of a SendEnable query. - - - Since: cosmos-sdk 0.47 default: description: An unexpected error response. schema: type: object properties: - error: - type: string code: type: integer format: int32 @@ -4379,11 +4139,9 @@ paths: items: type: object properties: - type_url: - type: string - value: + '@type': type: string - format: byte + additionalProperties: {} parameters: - name: denoms description: >- @@ -4445,9 +4203,6 @@ paths: description: >- reverse is set to true if results are to be returned in the descending order. - - - Since: cosmos-sdk 0.43 in: query required: false type: boolean @@ -4460,14 +4215,11 @@ paths: single account. - description: >- + When called from another module, this query might consume a high amount of gas if the pagination field is incorrectly set. - - - Since: cosmos-sdk 0.46 operationId: SpendableBalances responses: '200': @@ -4517,16 +4269,11 @@ paths: for querying an account's spendable balances. - - - Since: cosmos-sdk 0.46 default: description: An unexpected error response. schema: type: object properties: - error: - type: string code: type: integer format: int32 @@ -4537,11 +4284,9 @@ paths: items: type: object properties: - type_url: - type: string - value: + '@type': type: string - format: byte + additionalProperties: {} parameters: - name: address description: address is the address to query spendable balances for. @@ -4598,9 +4343,6 @@ paths: description: >- reverse is set to true if results are to be returned in the descending order. - - - Since: cosmos-sdk 0.43 in: query required: false type: boolean @@ -4618,9 +4360,6 @@ paths: of gas if the pagination field is incorrectly set. - - - Since: cosmos-sdk 0.47 operationId: SpendableBalanceByDenom responses: '200': @@ -4629,35 +4368,23 @@ paths: type: object properties: balance: + description: balance is the balance of the coin. type: object properties: denom: type: string amount: type: string - description: >- - Coin defines a token with a denomination and an amount. - - - NOTE: The amount field is an Int which implements the custom - method - - signatures required by gogoproto. description: >- QuerySpendableBalanceByDenomResponse defines the gRPC response structure for querying an account's spendable balance for a specific denom. - - - Since: cosmos-sdk 0.47 default: description: An unexpected error response. schema: type: object properties: - error: - type: string code: type: integer format: int32 @@ -4668,11 +4395,9 @@ paths: items: type: object properties: - type_url: + '@type': type: string - value: - type: string - format: byte + additionalProperties: {} parameters: - name: address description: address is the address to query balances for. @@ -4720,10 +4445,7 @@ paths: signatures required by gogoproto. title: supply is the supply of the coins pagination: - description: |- - pagination defines the pagination in the response. - - Since: cosmos-sdk 0.43 + description: pagination defines the pagination in the response. type: object properties: next_key: @@ -4751,8 +4473,6 @@ paths: schema: type: object properties: - error: - type: string code: type: integer format: int32 @@ -4763,11 +4483,9 @@ paths: items: type: object properties: - type_url: + '@type': type: string - value: - type: string - format: byte + additionalProperties: {} parameters: - name: pagination.key description: |- @@ -4819,9 +4537,6 @@ paths: description: >- reverse is set to true if results are to be returned in the descending order. - - - Since: cosmos-sdk 0.43 in: query required: false type: boolean @@ -4843,20 +4558,13 @@ paths: type: object properties: amount: + description: amount is the supply of the coin. type: object properties: denom: type: string amount: type: string - description: >- - Coin defines a token with a denomination and an amount. - - - NOTE: The amount field is an Int which implements the custom - method - - signatures required by gogoproto. description: >- QuerySupplyOfResponse is the response type for the Query/SupplyOf RPC method. @@ -4865,8 +4573,6 @@ paths: schema: type: object properties: - error: - type: string code: type: integer format: int32 @@ -4877,11 +4583,9 @@ paths: items: type: object properties: - type_url: - type: string - value: + '@type': type: string - format: byte + additionalProperties: {} parameters: - name: denom description: denom is the coin denom to query balances for. @@ -4900,7 +4604,6 @@ paths: contain a valid and supported path, including app, custom, p2p, and store. - description: 'Since: cosmos-sdk 0.46' operationId: ABCIQuery responses: '200': @@ -4913,8 +4616,10 @@ paths: format: int64 log: type: string + title: nondeterministic info: type: string + title: nondeterministic index: type: string format: int64 @@ -4924,6 +4629,11 @@ paths: value: type: string format: byte + height: + type: string + format: int64 + codespace: + type: string proof_ops: type: object properties: @@ -4940,29 +4650,15 @@ paths: data: type: string format: byte - description: >- + title: >- ProofOp defines an operation used for calculating Merkle - root. The data could - - be arbitrary format, providing necessary data for - example neighbouring node - - hash. + root + The data could be arbitrary format, providing necessary + data - Note: This type is a duplicate of the ProofOp proto type - defined in Tendermint. - description: >- - ProofOps is Merkle proof defined by the list of ProofOps. - - - Note: This type is a duplicate of the ProofOps proto type - defined in Tendermint. - height: - type: string - format: int64 - codespace: - type: string + for example neighbouring node hash + title: ProofOps is Merkle proof defined by the list of ProofOps description: >- ABCIQueryResponse defines the response structure for the ABCIQuery gRPC query. @@ -4977,8 +4673,6 @@ paths: schema: type: object properties: - error: - type: string code: type: integer format: int32 @@ -4989,7 +4683,7 @@ paths: items: type: object properties: - type_url: + '@type': type: string description: >- A URL/resource name that uniquely identifies the type of @@ -5047,12 +4741,7 @@ paths: 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. + additionalProperties: {} description: >- `Any` contains an arbitrary serialized protocol buffer message along with a @@ -5213,8 +4902,10 @@ paths: hash: type: string format: byte - title: PartsetHeader - title: BlockID + description: Header of the parts set for a block. + description: >- + BlockID defines the unique ID of a block as its hash and its + `PartSetHeader`. block: title: 'Deprecated: please use `sdk_block` instead' type: object @@ -5263,38 +4954,52 @@ paths: hash: type: string format: byte - title: PartsetHeader - title: BlockID + description: Header of the parts set for a block. + description: >- + BlockID defines the unique ID of a block as its hash + and its `PartSetHeader`. + title: prev block info last_commit_hash: type: string format: byte + description: commit from validators from the last block title: hashes of block data data_hash: type: string format: byte + title: transactions validators_hash: type: string format: byte + description: validators for the current block title: hashes from the app output from the prev block next_validators_hash: type: string format: byte + title: validators for the next block consensus_hash: type: string format: byte + title: consensus params for current block app_hash: type: string format: byte + title: state after txs from the previous block last_results_hash: type: string format: byte + title: >- + root hash of all results from the txs from the + previous block evidence_hash: type: string format: byte + description: evidence included in the block title: consensus info proposer_address: type: string format: byte + title: original proposer of the block description: Header defines the structure of a block header. data: type: object @@ -5341,8 +5046,10 @@ paths: SignedMsgType is a type of signed message in the consensus. - - SIGNED_MSG_TYPE_PREVOTE: Votes - - SIGNED_MSG_TYPE_PROPOSAL: Proposals + - SIGNED_MSG_TYPE_UNKNOWN: Unknown + - SIGNED_MSG_TYPE_PREVOTE: Prevote + - SIGNED_MSG_TYPE_PRECOMMIT: Precommit + - SIGNED_MSG_TYPE_PROPOSAL: Proposal height: type: string format: int64 @@ -5364,8 +5071,10 @@ paths: hash: type: string format: byte - title: PartsetHeader - title: BlockID + description: Header of the parts set for a block. + description: >- + BlockID defines the unique ID of a block + as its hash and its `PartSetHeader`. timestamp: type: string format: date-time @@ -5421,8 +5130,10 @@ paths: SignedMsgType is a type of signed message in the consensus. - - SIGNED_MSG_TYPE_PREVOTE: Votes - - SIGNED_MSG_TYPE_PROPOSAL: Proposals + - SIGNED_MSG_TYPE_UNKNOWN: Unknown + - SIGNED_MSG_TYPE_PREVOTE: Prevote + - SIGNED_MSG_TYPE_PRECOMMIT: Precommit + - SIGNED_MSG_TYPE_PROPOSAL: Proposal height: type: string format: int64 @@ -5444,8 +5155,10 @@ paths: hash: type: string format: byte - title: PartsetHeader - title: BlockID + description: Header of the parts set for a block. + description: >- + BlockID defines the unique ID of a block + as its hash and its `PartSetHeader`. timestamp: type: string format: date-time @@ -5552,40 +5265,56 @@ paths: hash: type: string format: byte - title: PartsetHeader - title: BlockID + description: Header of the parts set for a block. + description: >- + BlockID defines the unique ID of a block + as its hash and its `PartSetHeader`. + title: prev block info last_commit_hash: type: string format: byte + description: >- + commit from validators from the last + block title: hashes of block data data_hash: type: string format: byte + title: transactions validators_hash: type: string format: byte + description: validators for the current block title: >- hashes from the app output from the prev block next_validators_hash: type: string format: byte + title: validators for the next block consensus_hash: type: string format: byte + title: consensus params for current block app_hash: type: string format: byte + title: state after txs from the previous block last_results_hash: type: string format: byte + title: >- + root hash of all results from the txs + from the previous block evidence_hash: type: string format: byte + description: evidence included in the block title: consensus info proposer_address: type: string format: byte + title: original proposer of the block description: >- Header defines the structure of a block header. @@ -5613,8 +5342,10 @@ paths: hash: type: string format: byte - title: PartsetHeader - title: BlockID + description: Header of the parts set for a block. + description: >- + BlockID defines the unique ID of a block + as its hash and its `PartSetHeader`. signatures: type: array items: @@ -5628,6 +5359,12 @@ paths: - BLOCK_ID_FLAG_COMMIT - BLOCK_ID_FLAG_NIL default: BLOCK_ID_FLAG_UNKNOWN + description: >- + - BLOCK_ID_FLAG_UNKNOWN: Indicates an + error condition + - BLOCK_ID_FLAG_ABSENT: The vote was not received + - BLOCK_ID_FLAG_COMMIT: Voted for the block that received the majority + - BLOCK_ID_FLAG_NIL: Voted for nil title: >- BlockIdFlag indicates which BlockID the signature is for @@ -5647,6 +5384,10 @@ paths: Commit contains the evidence that a block was committed by a set of validators. + description: >- + SignedHeader contains a Header(H) and + Commit(H+1) with signatures of + validators who signed it. validator_set: type: object properties: @@ -5667,15 +5408,18 @@ paths: secp256k1: type: string format: byte - title: >- - PublicKey defines the keys available for - use with Validators + description: >- + PublicKey is a ED25519 or a secp256k1 + public key. voting_power: type: string format: int64 proposer_priority: type: string format: int64 + description: >- + Validator represents a node + participating in the consensus protocol. proposer: type: object properties: @@ -5691,18 +5435,28 @@ paths: secp256k1: type: string format: byte - title: >- - PublicKey defines the keys available for - use with Validators + description: >- + PublicKey is a ED25519 or a secp256k1 + public key. voting_power: type: string format: int64 proposer_priority: type: string format: int64 + description: >- + Validator represents a node + participating in the consensus protocol. total_voting_power: type: string format: int64 + description: >- + ValidatorSet defines a set of + validators. + description: >- + LightBlock is a combination of SignedHeader + and ValidatorSet. It is used by light + clients. common_height: type: string format: int64 @@ -5723,15 +5477,18 @@ paths: secp256k1: type: string format: byte - title: >- - PublicKey defines the keys available for - use with Validators + description: >- + PublicKey is a ED25519 or a secp256k1 + public key. voting_power: type: string format: int64 proposer_priority: type: string format: int64 + description: >- + Validator represents a node participating + in the consensus protocol. total_voting_power: type: string format: int64 @@ -5742,6 +5499,10 @@ paths: LightClientAttackEvidence contains evidence of a set of validators attempting to mislead a light client. + description: >- + Evidence is a generic type for wrapping evidence of + misbehavior by a validator. + description: EvidenceList is a list of evidence. last_commit: type: object properties: @@ -5766,8 +5527,10 @@ paths: hash: type: string format: byte - title: PartsetHeader - title: BlockID + description: Header of the parts set for a block. + description: >- + BlockID defines the unique ID of a block as its hash + and its `PartSetHeader`. signatures: type: array items: @@ -5781,6 +5544,12 @@ paths: - BLOCK_ID_FLAG_COMMIT - BLOCK_ID_FLAG_NIL default: BLOCK_ID_FLAG_UNKNOWN + description: >- + - BLOCK_ID_FLAG_UNKNOWN: Indicates an error + condition + - BLOCK_ID_FLAG_ABSENT: The vote was not received + - BLOCK_ID_FLAG_COMMIT: Voted for the block that received the majority + - BLOCK_ID_FLAG_NIL: Voted for nil title: >- BlockIdFlag indicates which BlockID the signature is for @@ -5799,8 +5568,10 @@ paths: description: >- Commit contains the evidence that a block was committed by a set of validators. + description: >- + Block defines the structure of a block in the CometBFT + blockchain. sdk_block: - title: 'Since: cosmos-sdk 0.47' type: object properties: header: @@ -5847,34 +5618,47 @@ paths: hash: type: string format: byte - title: PartsetHeader - title: BlockID + description: Header of the parts set for a block. + description: >- + BlockID defines the unique ID of a block as its hash + and its `PartSetHeader`. + title: prev block info last_commit_hash: type: string format: byte + description: commit from validators from the last block title: hashes of block data data_hash: type: string format: byte + title: transactions validators_hash: type: string format: byte + description: validators for the current block title: hashes from the app output from the prev block next_validators_hash: type: string format: byte + title: validators for the next block consensus_hash: type: string format: byte + title: consensus params for current block app_hash: type: string format: byte + title: state after txs from the previous block last_results_hash: type: string format: byte + title: >- + root hash of all results from the txs from the + previous block evidence_hash: type: string format: byte + description: evidence included in the block title: consensus info proposer_address: type: string @@ -5886,6 +5670,9 @@ paths: we convert it to a Bech32 string for better UX. + + + original proposer of the block description: Header defines the structure of a Tendermint block header. data: type: object @@ -5932,8 +5719,10 @@ paths: SignedMsgType is a type of signed message in the consensus. - - SIGNED_MSG_TYPE_PREVOTE: Votes - - SIGNED_MSG_TYPE_PROPOSAL: Proposals + - SIGNED_MSG_TYPE_UNKNOWN: Unknown + - SIGNED_MSG_TYPE_PREVOTE: Prevote + - SIGNED_MSG_TYPE_PRECOMMIT: Precommit + - SIGNED_MSG_TYPE_PROPOSAL: Proposal height: type: string format: int64 @@ -5955,8 +5744,10 @@ paths: hash: type: string format: byte - title: PartsetHeader - title: BlockID + description: Header of the parts set for a block. + description: >- + BlockID defines the unique ID of a block + as its hash and its `PartSetHeader`. timestamp: type: string format: date-time @@ -6012,8 +5803,10 @@ paths: SignedMsgType is a type of signed message in the consensus. - - SIGNED_MSG_TYPE_PREVOTE: Votes - - SIGNED_MSG_TYPE_PROPOSAL: Proposals + - SIGNED_MSG_TYPE_UNKNOWN: Unknown + - SIGNED_MSG_TYPE_PREVOTE: Prevote + - SIGNED_MSG_TYPE_PRECOMMIT: Precommit + - SIGNED_MSG_TYPE_PROPOSAL: Proposal height: type: string format: int64 @@ -6035,8 +5828,10 @@ paths: hash: type: string format: byte - title: PartsetHeader - title: BlockID + description: Header of the parts set for a block. + description: >- + BlockID defines the unique ID of a block + as its hash and its `PartSetHeader`. timestamp: type: string format: date-time @@ -6143,40 +5938,56 @@ paths: hash: type: string format: byte - title: PartsetHeader - title: BlockID + description: Header of the parts set for a block. + description: >- + BlockID defines the unique ID of a block + as its hash and its `PartSetHeader`. + title: prev block info last_commit_hash: type: string format: byte + description: >- + commit from validators from the last + block title: hashes of block data data_hash: type: string format: byte + title: transactions validators_hash: type: string format: byte + description: validators for the current block title: >- hashes from the app output from the prev block next_validators_hash: type: string format: byte + title: validators for the next block consensus_hash: type: string format: byte + title: consensus params for current block app_hash: type: string format: byte + title: state after txs from the previous block last_results_hash: type: string format: byte + title: >- + root hash of all results from the txs + from the previous block evidence_hash: type: string format: byte + description: evidence included in the block title: consensus info proposer_address: type: string format: byte + title: original proposer of the block description: >- Header defines the structure of a block header. @@ -6204,8 +6015,10 @@ paths: hash: type: string format: byte - title: PartsetHeader - title: BlockID + description: Header of the parts set for a block. + description: >- + BlockID defines the unique ID of a block + as its hash and its `PartSetHeader`. signatures: type: array items: @@ -6219,6 +6032,12 @@ paths: - BLOCK_ID_FLAG_COMMIT - BLOCK_ID_FLAG_NIL default: BLOCK_ID_FLAG_UNKNOWN + description: >- + - BLOCK_ID_FLAG_UNKNOWN: Indicates an + error condition + - BLOCK_ID_FLAG_ABSENT: The vote was not received + - BLOCK_ID_FLAG_COMMIT: Voted for the block that received the majority + - BLOCK_ID_FLAG_NIL: Voted for nil title: >- BlockIdFlag indicates which BlockID the signature is for @@ -6238,6 +6057,10 @@ paths: Commit contains the evidence that a block was committed by a set of validators. + description: >- + SignedHeader contains a Header(H) and + Commit(H+1) with signatures of + validators who signed it. validator_set: type: object properties: @@ -6258,15 +6081,18 @@ paths: secp256k1: type: string format: byte - title: >- - PublicKey defines the keys available for - use with Validators + description: >- + PublicKey is a ED25519 or a secp256k1 + public key. voting_power: type: string format: int64 proposer_priority: type: string format: int64 + description: >- + Validator represents a node + participating in the consensus protocol. proposer: type: object properties: @@ -6282,18 +6108,28 @@ paths: secp256k1: type: string format: byte - title: >- - PublicKey defines the keys available for - use with Validators + description: >- + PublicKey is a ED25519 or a secp256k1 + public key. voting_power: type: string format: int64 proposer_priority: type: string format: int64 + description: >- + Validator represents a node + participating in the consensus protocol. total_voting_power: type: string format: int64 + description: >- + ValidatorSet defines a set of + validators. + description: >- + LightBlock is a combination of SignedHeader + and ValidatorSet. It is used by light + clients. common_height: type: string format: int64 @@ -6314,15 +6150,18 @@ paths: secp256k1: type: string format: byte - title: >- - PublicKey defines the keys available for - use with Validators + description: >- + PublicKey is a ED25519 or a secp256k1 + public key. voting_power: type: string format: int64 proposer_priority: type: string format: int64 + description: >- + Validator represents a node participating + in the consensus protocol. total_voting_power: type: string format: int64 @@ -6333,6 +6172,10 @@ paths: LightClientAttackEvidence contains evidence of a set of validators attempting to mislead a light client. + description: >- + Evidence is a generic type for wrapping evidence of + misbehavior by a validator. + description: EvidenceList is a list of evidence. last_commit: type: object properties: @@ -6357,8 +6200,10 @@ paths: hash: type: string format: byte - title: PartsetHeader - title: BlockID + description: Header of the parts set for a block. + description: >- + BlockID defines the unique ID of a block as its hash + and its `PartSetHeader`. signatures: type: array items: @@ -6372,6 +6217,12 @@ paths: - BLOCK_ID_FLAG_COMMIT - BLOCK_ID_FLAG_NIL default: BLOCK_ID_FLAG_UNKNOWN + description: >- + - BLOCK_ID_FLAG_UNKNOWN: Indicates an error + condition + - BLOCK_ID_FLAG_ABSENT: The vote was not received + - BLOCK_ID_FLAG_COMMIT: Voted for the block that received the majority + - BLOCK_ID_FLAG_NIL: Voted for nil title: >- BlockIdFlag indicates which BlockID the signature is for @@ -6403,8 +6254,6 @@ paths: schema: type: object properties: - error: - type: string code: type: integer format: int32 @@ -6415,7 +6264,7 @@ paths: items: type: object properties: - type_url: + '@type': type: string description: >- A URL/resource name that uniquely identifies the type of @@ -6473,12 +6322,7 @@ paths: 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. + additionalProperties: {} description: >- `Any` contains an arbitrary serialized protocol buffer message along with a @@ -6620,8 +6464,10 @@ paths: hash: type: string format: byte - title: PartsetHeader - title: BlockID + description: Header of the parts set for a block. + description: >- + BlockID defines the unique ID of a block as its hash and its + `PartSetHeader`. block: title: 'Deprecated: please use `sdk_block` instead' type: object @@ -6670,38 +6516,52 @@ paths: hash: type: string format: byte - title: PartsetHeader - title: BlockID + description: Header of the parts set for a block. + description: >- + BlockID defines the unique ID of a block as its hash + and its `PartSetHeader`. + title: prev block info last_commit_hash: type: string format: byte + description: commit from validators from the last block title: hashes of block data data_hash: type: string format: byte + title: transactions validators_hash: type: string format: byte + description: validators for the current block title: hashes from the app output from the prev block next_validators_hash: type: string format: byte + title: validators for the next block consensus_hash: type: string format: byte + title: consensus params for current block app_hash: type: string format: byte + title: state after txs from the previous block last_results_hash: type: string format: byte + title: >- + root hash of all results from the txs from the + previous block evidence_hash: type: string format: byte + description: evidence included in the block title: consensus info proposer_address: type: string format: byte + title: original proposer of the block description: Header defines the structure of a block header. data: type: object @@ -6748,8 +6608,10 @@ paths: SignedMsgType is a type of signed message in the consensus. - - SIGNED_MSG_TYPE_PREVOTE: Votes - - SIGNED_MSG_TYPE_PROPOSAL: Proposals + - SIGNED_MSG_TYPE_UNKNOWN: Unknown + - SIGNED_MSG_TYPE_PREVOTE: Prevote + - SIGNED_MSG_TYPE_PRECOMMIT: Precommit + - SIGNED_MSG_TYPE_PROPOSAL: Proposal height: type: string format: int64 @@ -6771,8 +6633,10 @@ paths: hash: type: string format: byte - title: PartsetHeader - title: BlockID + description: Header of the parts set for a block. + description: >- + BlockID defines the unique ID of a block + as its hash and its `PartSetHeader`. timestamp: type: string format: date-time @@ -6828,8 +6692,10 @@ paths: SignedMsgType is a type of signed message in the consensus. - - SIGNED_MSG_TYPE_PREVOTE: Votes - - SIGNED_MSG_TYPE_PROPOSAL: Proposals + - SIGNED_MSG_TYPE_UNKNOWN: Unknown + - SIGNED_MSG_TYPE_PREVOTE: Prevote + - SIGNED_MSG_TYPE_PRECOMMIT: Precommit + - SIGNED_MSG_TYPE_PROPOSAL: Proposal height: type: string format: int64 @@ -6851,8 +6717,10 @@ paths: hash: type: string format: byte - title: PartsetHeader - title: BlockID + description: Header of the parts set for a block. + description: >- + BlockID defines the unique ID of a block + as its hash and its `PartSetHeader`. timestamp: type: string format: date-time @@ -6959,40 +6827,56 @@ paths: hash: type: string format: byte - title: PartsetHeader - title: BlockID + description: Header of the parts set for a block. + description: >- + BlockID defines the unique ID of a block + as its hash and its `PartSetHeader`. + title: prev block info last_commit_hash: type: string format: byte + description: >- + commit from validators from the last + block title: hashes of block data data_hash: type: string format: byte + title: transactions validators_hash: type: string format: byte + description: validators for the current block title: >- hashes from the app output from the prev block next_validators_hash: type: string format: byte + title: validators for the next block consensus_hash: type: string format: byte + title: consensus params for current block app_hash: type: string format: byte + title: state after txs from the previous block last_results_hash: type: string format: byte + title: >- + root hash of all results from the txs + from the previous block evidence_hash: type: string format: byte + description: evidence included in the block title: consensus info proposer_address: type: string format: byte + title: original proposer of the block description: >- Header defines the structure of a block header. @@ -7020,8 +6904,10 @@ paths: hash: type: string format: byte - title: PartsetHeader - title: BlockID + description: Header of the parts set for a block. + description: >- + BlockID defines the unique ID of a block + as its hash and its `PartSetHeader`. signatures: type: array items: @@ -7035,6 +6921,12 @@ paths: - BLOCK_ID_FLAG_COMMIT - BLOCK_ID_FLAG_NIL default: BLOCK_ID_FLAG_UNKNOWN + description: >- + - BLOCK_ID_FLAG_UNKNOWN: Indicates an + error condition + - BLOCK_ID_FLAG_ABSENT: The vote was not received + - BLOCK_ID_FLAG_COMMIT: Voted for the block that received the majority + - BLOCK_ID_FLAG_NIL: Voted for nil title: >- BlockIdFlag indicates which BlockID the signature is for @@ -7054,6 +6946,10 @@ paths: Commit contains the evidence that a block was committed by a set of validators. + description: >- + SignedHeader contains a Header(H) and + Commit(H+1) with signatures of + validators who signed it. validator_set: type: object properties: @@ -7074,15 +6970,18 @@ paths: secp256k1: type: string format: byte - title: >- - PublicKey defines the keys available for - use with Validators + description: >- + PublicKey is a ED25519 or a secp256k1 + public key. voting_power: type: string format: int64 proposer_priority: type: string format: int64 + description: >- + Validator represents a node + participating in the consensus protocol. proposer: type: object properties: @@ -7098,18 +6997,28 @@ paths: secp256k1: type: string format: byte - title: >- - PublicKey defines the keys available for - use with Validators + description: >- + PublicKey is a ED25519 or a secp256k1 + public key. voting_power: type: string format: int64 proposer_priority: type: string format: int64 + description: >- + Validator represents a node + participating in the consensus protocol. total_voting_power: type: string format: int64 + description: >- + ValidatorSet defines a set of + validators. + description: >- + LightBlock is a combination of SignedHeader + and ValidatorSet. It is used by light + clients. common_height: type: string format: int64 @@ -7130,15 +7039,18 @@ paths: secp256k1: type: string format: byte - title: >- - PublicKey defines the keys available for - use with Validators + description: >- + PublicKey is a ED25519 or a secp256k1 + public key. voting_power: type: string format: int64 proposer_priority: type: string format: int64 + description: >- + Validator represents a node participating + in the consensus protocol. total_voting_power: type: string format: int64 @@ -7149,6 +7061,10 @@ paths: LightClientAttackEvidence contains evidence of a set of validators attempting to mislead a light client. + description: >- + Evidence is a generic type for wrapping evidence of + misbehavior by a validator. + description: EvidenceList is a list of evidence. last_commit: type: object properties: @@ -7173,8 +7089,10 @@ paths: hash: type: string format: byte - title: PartsetHeader - title: BlockID + description: Header of the parts set for a block. + description: >- + BlockID defines the unique ID of a block as its hash + and its `PartSetHeader`. signatures: type: array items: @@ -7188,6 +7106,12 @@ paths: - BLOCK_ID_FLAG_COMMIT - BLOCK_ID_FLAG_NIL default: BLOCK_ID_FLAG_UNKNOWN + description: >- + - BLOCK_ID_FLAG_UNKNOWN: Indicates an error + condition + - BLOCK_ID_FLAG_ABSENT: The vote was not received + - BLOCK_ID_FLAG_COMMIT: Voted for the block that received the majority + - BLOCK_ID_FLAG_NIL: Voted for nil title: >- BlockIdFlag indicates which BlockID the signature is for @@ -7206,8 +7130,10 @@ paths: description: >- Commit contains the evidence that a block was committed by a set of validators. + description: >- + Block defines the structure of a block in the CometBFT + blockchain. sdk_block: - title: 'Since: cosmos-sdk 0.47' type: object properties: header: @@ -7254,34 +7180,47 @@ paths: hash: type: string format: byte - title: PartsetHeader - title: BlockID + description: Header of the parts set for a block. + description: >- + BlockID defines the unique ID of a block as its hash + and its `PartSetHeader`. + title: prev block info last_commit_hash: type: string format: byte + description: commit from validators from the last block title: hashes of block data data_hash: type: string format: byte + title: transactions validators_hash: type: string format: byte + description: validators for the current block title: hashes from the app output from the prev block next_validators_hash: type: string format: byte + title: validators for the next block consensus_hash: type: string format: byte + title: consensus params for current block app_hash: type: string format: byte + title: state after txs from the previous block last_results_hash: type: string format: byte + title: >- + root hash of all results from the txs from the + previous block evidence_hash: type: string format: byte + description: evidence included in the block title: consensus info proposer_address: type: string @@ -7293,6 +7232,9 @@ paths: we convert it to a Bech32 string for better UX. + + + original proposer of the block description: Header defines the structure of a Tendermint block header. data: type: object @@ -7339,8 +7281,10 @@ paths: SignedMsgType is a type of signed message in the consensus. - - SIGNED_MSG_TYPE_PREVOTE: Votes - - SIGNED_MSG_TYPE_PROPOSAL: Proposals + - SIGNED_MSG_TYPE_UNKNOWN: Unknown + - SIGNED_MSG_TYPE_PREVOTE: Prevote + - SIGNED_MSG_TYPE_PRECOMMIT: Precommit + - SIGNED_MSG_TYPE_PROPOSAL: Proposal height: type: string format: int64 @@ -7362,8 +7306,10 @@ paths: hash: type: string format: byte - title: PartsetHeader - title: BlockID + description: Header of the parts set for a block. + description: >- + BlockID defines the unique ID of a block + as its hash and its `PartSetHeader`. timestamp: type: string format: date-time @@ -7419,8 +7365,10 @@ paths: SignedMsgType is a type of signed message in the consensus. - - SIGNED_MSG_TYPE_PREVOTE: Votes - - SIGNED_MSG_TYPE_PROPOSAL: Proposals + - SIGNED_MSG_TYPE_UNKNOWN: Unknown + - SIGNED_MSG_TYPE_PREVOTE: Prevote + - SIGNED_MSG_TYPE_PRECOMMIT: Precommit + - SIGNED_MSG_TYPE_PROPOSAL: Proposal height: type: string format: int64 @@ -7442,8 +7390,10 @@ paths: hash: type: string format: byte - title: PartsetHeader - title: BlockID + description: Header of the parts set for a block. + description: >- + BlockID defines the unique ID of a block + as its hash and its `PartSetHeader`. timestamp: type: string format: date-time @@ -7550,40 +7500,56 @@ paths: hash: type: string format: byte - title: PartsetHeader - title: BlockID + description: Header of the parts set for a block. + description: >- + BlockID defines the unique ID of a block + as its hash and its `PartSetHeader`. + title: prev block info last_commit_hash: type: string format: byte + description: >- + commit from validators from the last + block title: hashes of block data data_hash: type: string format: byte + title: transactions validators_hash: type: string format: byte + description: validators for the current block title: >- hashes from the app output from the prev block next_validators_hash: type: string format: byte + title: validators for the next block consensus_hash: type: string format: byte + title: consensus params for current block app_hash: type: string format: byte + title: state after txs from the previous block last_results_hash: type: string format: byte + title: >- + root hash of all results from the txs + from the previous block evidence_hash: type: string format: byte + description: evidence included in the block title: consensus info proposer_address: type: string format: byte + title: original proposer of the block description: >- Header defines the structure of a block header. @@ -7611,8 +7577,10 @@ paths: hash: type: string format: byte - title: PartsetHeader - title: BlockID + description: Header of the parts set for a block. + description: >- + BlockID defines the unique ID of a block + as its hash and its `PartSetHeader`. signatures: type: array items: @@ -7626,6 +7594,12 @@ paths: - BLOCK_ID_FLAG_COMMIT - BLOCK_ID_FLAG_NIL default: BLOCK_ID_FLAG_UNKNOWN + description: >- + - BLOCK_ID_FLAG_UNKNOWN: Indicates an + error condition + - BLOCK_ID_FLAG_ABSENT: The vote was not received + - BLOCK_ID_FLAG_COMMIT: Voted for the block that received the majority + - BLOCK_ID_FLAG_NIL: Voted for nil title: >- BlockIdFlag indicates which BlockID the signature is for @@ -7645,6 +7619,10 @@ paths: Commit contains the evidence that a block was committed by a set of validators. + description: >- + SignedHeader contains a Header(H) and + Commit(H+1) with signatures of + validators who signed it. validator_set: type: object properties: @@ -7665,15 +7643,18 @@ paths: secp256k1: type: string format: byte - title: >- - PublicKey defines the keys available for - use with Validators + description: >- + PublicKey is a ED25519 or a secp256k1 + public key. voting_power: type: string format: int64 proposer_priority: type: string format: int64 + description: >- + Validator represents a node + participating in the consensus protocol. proposer: type: object properties: @@ -7689,18 +7670,28 @@ paths: secp256k1: type: string format: byte - title: >- - PublicKey defines the keys available for - use with Validators + description: >- + PublicKey is a ED25519 or a secp256k1 + public key. voting_power: type: string format: int64 proposer_priority: type: string format: int64 + description: >- + Validator represents a node + participating in the consensus protocol. total_voting_power: type: string format: int64 + description: >- + ValidatorSet defines a set of + validators. + description: >- + LightBlock is a combination of SignedHeader + and ValidatorSet. It is used by light + clients. common_height: type: string format: int64 @@ -7721,15 +7712,18 @@ paths: secp256k1: type: string format: byte - title: >- - PublicKey defines the keys available for - use with Validators + description: >- + PublicKey is a ED25519 or a secp256k1 + public key. voting_power: type: string format: int64 proposer_priority: type: string format: int64 + description: >- + Validator represents a node participating + in the consensus protocol. total_voting_power: type: string format: int64 @@ -7740,6 +7734,10 @@ paths: LightClientAttackEvidence contains evidence of a set of validators attempting to mislead a light client. + description: >- + Evidence is a generic type for wrapping evidence of + misbehavior by a validator. + description: EvidenceList is a list of evidence. last_commit: type: object properties: @@ -7764,8 +7762,10 @@ paths: hash: type: string format: byte - title: PartsetHeader - title: BlockID + description: Header of the parts set for a block. + description: >- + BlockID defines the unique ID of a block as its hash + and its `PartSetHeader`. signatures: type: array items: @@ -7779,6 +7779,12 @@ paths: - BLOCK_ID_FLAG_COMMIT - BLOCK_ID_FLAG_NIL default: BLOCK_ID_FLAG_UNKNOWN + description: >- + - BLOCK_ID_FLAG_UNKNOWN: Indicates an error + condition + - BLOCK_ID_FLAG_ABSENT: The vote was not received + - BLOCK_ID_FLAG_COMMIT: Voted for the block that received the majority + - BLOCK_ID_FLAG_NIL: Voted for nil title: >- BlockIdFlag indicates which BlockID the signature is for @@ -7810,8 +7816,6 @@ paths: schema: type: object properties: - error: - type: string code: type: integer format: int32 @@ -7822,7 +7826,7 @@ paths: items: type: object properties: - type_url: + '@type': type: string description: >- A URL/resource name that uniquely identifies the type of @@ -7880,12 +7884,7 @@ paths: 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. + additionalProperties: {} description: >- `Any` contains an arbitrary serialized protocol buffer message along with a @@ -8033,6 +8032,9 @@ paths: app: type: string format: uint64 + description: >- + ProtocolVersion represents the current p2p protocol + version. default_node_id: type: string listen_addr: @@ -8053,6 +8055,14 @@ paths: type: string rpc_address: type: string + description: >- + DefaultNodeInfoOther is the misc. application specific + data. + description: >- + DefaultNodeInfo is a basic node's information sent to other + peers during the + + p2p handshake. application_version: type: object properties: @@ -8085,7 +8095,6 @@ paths: title: Module is the type for VersionInfo cosmos_sdk_version: type: string - title: 'Since: cosmos-sdk 0.43' description: VersionInfo is the type for the GetNodeInfoResponse message. description: >- GetNodeInfoResponse is the response type for the Query/GetNodeInfo @@ -8095,8 +8104,6 @@ paths: schema: type: object properties: - error: - type: string code: type: integer format: int32 @@ -8107,7 +8114,7 @@ paths: items: type: object properties: - type_url: + '@type': type: string description: >- A URL/resource name that uniquely identifies the type of @@ -8165,12 +8172,7 @@ paths: 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. + additionalProperties: {} description: >- `Any` contains an arbitrary serialized protocol buffer message along with a @@ -8307,8 +8309,6 @@ paths: schema: type: object properties: - error: - type: string code: type: integer format: int32 @@ -8319,7 +8319,7 @@ paths: items: type: object properties: - type_url: + '@type': type: string description: >- A URL/resource name that uniquely identifies the type of @@ -8377,12 +8377,7 @@ paths: 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. + additionalProperties: {} description: >- `Any` contains an arbitrary serialized protocol buffer message along with a @@ -8522,7 +8517,7 @@ paths: pub_key: type: object properties: - type_url: + '@type': type: string description: >- A URL/resource name that uniquely identifies the @@ -8580,12 +8575,7 @@ paths: 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. + additionalProperties: {} description: >- `Any` contains an arbitrary serialized protocol buffer message along with a @@ -8736,8 +8726,6 @@ paths: schema: type: object properties: - error: - type: string code: type: integer format: int32 @@ -8748,7 +8736,7 @@ paths: items: type: object properties: - type_url: + '@type': type: string description: >- A URL/resource name that uniquely identifies the type of @@ -8806,12 +8794,7 @@ paths: 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. + additionalProperties: {} description: >- `Any` contains an arbitrary serialized protocol buffer message along with a @@ -8977,9 +8960,6 @@ paths: description: >- reverse is set to true if results are to be returned in the descending order. - - - Since: cosmos-sdk 0.43 in: query required: false type: boolean @@ -9008,7 +8988,7 @@ paths: pub_key: type: object properties: - type_url: + '@type': type: string description: >- A URL/resource name that uniquely identifies the @@ -9066,12 +9046,7 @@ paths: 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. + additionalProperties: {} description: >- `Any` contains an arbitrary serialized protocol buffer message along with a @@ -9222,8 +9197,6 @@ paths: schema: type: object properties: - error: - type: string code: type: integer format: int32 @@ -9234,7 +9207,7 @@ paths: items: type: object properties: - type_url: + '@type': type: string description: >- A URL/resource name that uniquely identifies the type of @@ -9292,12 +9265,7 @@ paths: 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. + additionalProperties: {} description: >- `Any` contains an arbitrary serialized protocol buffer message along with a @@ -9468,9 +9436,6 @@ paths: description: >- reverse is set to true if results are to be returned in the descending order. - - - Since: cosmos-sdk 0.43 in: query required: false type: boolean @@ -9490,9 +9455,11 @@ paths: type: string pruning_keep_recent: type: string - title: pruning settings pruning_interval: type: string + halt_height: + type: string + format: uint64 description: >- ConfigResponse defines the response structure for the Config gRPC query. @@ -9501,8 +9468,6 @@ paths: schema: type: object properties: - error: - type: string code: type: integer format: int32 @@ -9513,11 +9478,9 @@ paths: items: type: object properties: - type_url: + '@type': type: string - value: - type: string - format: byte + additionalProperties: {} tags: - Service /cosmos/base/node/v1beta1/status: @@ -9533,18 +9496,23 @@ paths: earliest_store_height: type: string format: uint64 + title: earliest block height available in the store height: type: string format: uint64 + title: current block height timestamp: type: string format: date-time + title: block height timestamp app_hash: type: string format: byte + title: app hash of the current block validator_hash: type: string format: byte + title: validator hash provided by the consensus header description: >- StateResponse defines the response structure for the status of a node. @@ -9553,8 +9521,6 @@ paths: schema: type: object properties: - error: - type: string code: type: integer format: int32 @@ -9565,11 +9531,9 @@ paths: items: type: object properties: - type_url: - type: string - value: + '@type': type: string - format: byte + additionalProperties: {} tags: - Service /cosmos/distribution/v1beta1/community_pool: @@ -9578,8 +9542,6 @@ paths: description: >- Deprecated: Prefer to use x/protocolpool module's CommunityPool rpc method. - - Since: cosmos-sdk 0.50 operationId: CommunityPool responses: '200': @@ -9614,15 +9576,11 @@ paths: Deprecated - - Since: cosmos-sdk 0.50 default: description: An unexpected error response. schema: type: object properties: - error: - type: string code: type: integer format: int32 @@ -9633,11 +9591,9 @@ paths: items: type: object properties: - type_url: + '@type': type: string - value: - type: string - format: byte + additionalProperties: {} tags: - Query /cosmos/distribution/v1beta1/delegators/{delegator_address}/rewards: @@ -9708,8 +9664,6 @@ paths: schema: type: object properties: - error: - type: string code: type: integer format: int32 @@ -9720,11 +9674,9 @@ paths: items: type: object properties: - type_url: - type: string - value: + '@type': type: string - format: byte + additionalProperties: {} parameters: - name: delegator_address description: delegator_address defines the delegator address to query for. @@ -9770,8 +9722,6 @@ paths: schema: type: object properties: - error: - type: string code: type: integer format: int32 @@ -9782,11 +9732,9 @@ paths: items: type: object properties: - type_url: - type: string - value: + '@type': type: string - format: byte + additionalProperties: {} parameters: - name: delegator_address description: delegator_address defines the delegator address to query for. @@ -9825,8 +9773,6 @@ paths: schema: type: object properties: - error: - type: string code: type: integer format: int32 @@ -9837,11 +9783,9 @@ paths: items: type: object properties: - type_url: - type: string - value: + '@type': type: string - format: byte + additionalProperties: {} parameters: - name: delegator_address description: delegator_address defines the delegator address to query for. @@ -9871,8 +9815,6 @@ paths: schema: type: object properties: - error: - type: string code: type: integer format: int32 @@ -9883,11 +9825,9 @@ paths: items: type: object properties: - type_url: + '@type': type: string - value: - type: string - format: byte + additionalProperties: {} parameters: - name: delegator_address description: delegator_address defines the delegator address to query for. @@ -9936,8 +9876,6 @@ paths: schema: type: object properties: - error: - type: string code: type: integer format: int32 @@ -9948,11 +9886,9 @@ paths: items: type: object properties: - type_url: + '@type': type: string - value: - type: string - format: byte + additionalProperties: {} tags: - Query /cosmos/distribution/v1beta1/validators/{validator_address}: @@ -10016,8 +9952,6 @@ paths: schema: type: object properties: - error: - type: string code: type: integer format: int32 @@ -10028,11 +9962,9 @@ paths: items: type: object properties: - type_url: - type: string - value: + '@type': type: string - format: byte + additionalProperties: {} parameters: - name: validator_address description: validator_address defines the validator address to query for. @@ -10081,8 +10013,6 @@ paths: schema: type: object properties: - error: - type: string code: type: integer format: int32 @@ -10093,11 +10023,9 @@ paths: items: type: object properties: - type_url: - type: string - value: + '@type': type: string - format: byte + additionalProperties: {} parameters: - name: validator_address description: validator_address defines the validator address to query for. @@ -10153,8 +10081,6 @@ paths: schema: type: object properties: - error: - type: string code: type: integer format: int32 @@ -10165,11 +10091,9 @@ paths: items: type: object properties: - type_url: - type: string - value: + '@type': type: string - format: byte + additionalProperties: {} parameters: - name: validator_address description: validator_address defines the validator address to query for. @@ -10236,8 +10160,6 @@ paths: schema: type: object properties: - error: - type: string code: type: integer format: int32 @@ -10248,11 +10170,9 @@ paths: items: type: object properties: - type_url: + '@type': type: string - value: - type: string - format: byte + additionalProperties: {} parameters: - name: validator_address description: validator_address defines the validator address to query for. @@ -10325,9 +10245,6 @@ paths: description: >- reverse is set to true if results are to be returned in the descending order. - - - Since: cosmos-sdk 0.43 in: query required: false type: boolean @@ -10348,7 +10265,7 @@ paths: items: type: object properties: - type_url: + '@type': type: string description: >- A URL/resource name that uniquely identifies the type of @@ -10406,12 +10323,7 @@ paths: 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. + additionalProperties: {} description: >- `Any` contains an arbitrary serialized protocol buffer message along with a @@ -10556,8 +10468,6 @@ paths: schema: type: object properties: - error: - type: string code: type: integer format: int32 @@ -10568,7 +10478,7 @@ paths: items: type: object properties: - type_url: + '@type': type: string description: >- A URL/resource name that uniquely identifies the type of @@ -10626,12 +10536,7 @@ paths: 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. + additionalProperties: {} description: >- `Any` contains an arbitrary serialized protocol buffer message along with a @@ -10797,9 +10702,6 @@ paths: description: >- reverse is set to true if results are to be returned in the descending order. - - - Since: cosmos-sdk 0.43 in: query required: false type: boolean @@ -10816,9 +10718,10 @@ paths: type: object properties: evidence: + description: evidence returns the requested evidence. type: object properties: - type_url: + '@type': type: string description: >- A URL/resource name that uniquely identifies the type of @@ -10875,123 +10778,7 @@ paths: 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" - } + additionalProperties: {} description: >- QueryEvidenceResponse is the response type for the Query/Evidence RPC method. @@ -11000,8 +10787,6 @@ paths: schema: type: object properties: - error: - type: string code: type: integer format: int32 @@ -11012,7 +10797,7 @@ paths: items: type: object properties: - type_url: + '@type': type: string description: >- A URL/resource name that uniquely identifies the type of @@ -11070,12 +10855,7 @@ paths: 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. + additionalProperties: {} description: >- `Any` contains an arbitrary serialized protocol buffer message along with a @@ -11192,10 +10972,7 @@ paths: } parameters: - name: hash - description: |- - hash defines the evidence hash of the requested evidence. - - Since: cosmos-sdk 0.47 + description: hash defines the evidence hash of the requested evidence. in: path required: true type: string @@ -11289,8 +11066,6 @@ paths: schema: type: object properties: - error: - type: string code: type: integer format: int32 @@ -11301,7 +11076,7 @@ paths: items: type: object properties: - type_url: + '@type': type: string description: >- A URL/resource name that uniquely identifies the type of @@ -11359,12 +11134,7 @@ paths: 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. + additionalProperties: {} description: >- `Any` contains an arbitrary serialized protocol buffer message along with a @@ -11511,9 +11281,10 @@ paths: format: uint64 description: proposal_id defines the unique id of the proposal. content: + description: content is the proposal's content. type: object properties: - type_url: + '@type': type: string description: >- A URL/resource name that uniquely identifies the @@ -11571,128 +11342,7 @@ paths: 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" - } + additionalProperties: {} status: description: status defines the proposal status. type: string @@ -11801,8 +11451,6 @@ paths: schema: type: object properties: - error: - type: string code: type: integer format: int32 @@ -11813,7 +11461,7 @@ paths: items: type: object properties: - type_url: + '@type': type: string description: >- A URL/resource name that uniquely identifies the type of @@ -11871,12 +11519,7 @@ paths: 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. + additionalProperties: {} description: >- `Any` contains an arbitrary serialized protocol buffer message along with a @@ -12078,9 +11721,6 @@ paths: description: >- reverse is set to true if results are to be returned in the descending order. - - - Since: cosmos-sdk 0.43 in: query required: false type: boolean @@ -12104,9 +11744,10 @@ paths: format: uint64 description: proposal_id defines the unique id of the proposal. content: + description: content is the proposal's content. type: object properties: - type_url: + '@type': type: string description: >- A URL/resource name that uniquely identifies the type @@ -12164,126 +11805,7 @@ paths: 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" - } + additionalProperties: {} status: description: status defines the proposal status. type: string @@ -12367,8 +11889,6 @@ paths: schema: type: object properties: - error: - type: string code: type: integer format: int32 @@ -12379,7 +11899,7 @@ paths: items: type: object properties: - type_url: + '@type': type: string description: >- A URL/resource name that uniquely identifies the type of @@ -12437,12 +11957,7 @@ paths: 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. + additionalProperties: {} description: >- `Any` contains an arbitrary serialized protocol buffer message along with a @@ -12642,8 +12157,6 @@ paths: schema: type: object properties: - error: - type: string code: type: integer format: int32 @@ -12654,7 +12167,7 @@ paths: items: type: object properties: - type_url: + '@type': type: string description: >- A URL/resource name that uniquely identifies the type of @@ -12712,12 +12225,7 @@ paths: 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. + additionalProperties: {} description: >- `Any` contains an arbitrary serialized protocol buffer message along with a @@ -12889,9 +12397,6 @@ paths: description: >- reverse is set to true if results are to be returned in the descending order. - - - Since: cosmos-sdk 0.43 in: query required: false type: boolean @@ -12910,6 +12415,7 @@ paths: type: object properties: deposit: + description: deposit defines the requested deposit. type: object properties: proposal_id: @@ -12939,11 +12445,6 @@ paths: signatures required by gogoproto. description: amount to be deposited by depositor. - description: >- - Deposit defines an amount deposited by an account address to - an active - - proposal. description: >- QueryDepositResponse is the response type for the Query/Deposit RPC method. @@ -12952,8 +12453,6 @@ paths: schema: type: object properties: - error: - type: string code: type: integer format: int32 @@ -12964,7 +12463,7 @@ paths: items: type: object properties: - type_url: + '@type': type: string description: >- A URL/resource name that uniquely identifies the type of @@ -13022,12 +12521,7 @@ paths: 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. + additionalProperties: {} description: >- `Any` contains an arbitrary serialized protocol buffer message along with a @@ -13192,8 +12686,6 @@ paths: schema: type: object properties: - error: - type: string code: type: integer format: int32 @@ -13204,7 +12696,7 @@ paths: items: type: object properties: - type_url: + '@type': type: string description: >- A URL/resource name that uniquely identifies the type of @@ -13262,12 +12754,7 @@ paths: 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. + additionalProperties: {} description: >- `Any` contains an arbitrary serialized protocol buffer message along with a @@ -13456,9 +12943,6 @@ paths: description: >- WeightedVoteOption defines a unit of vote for vote split. - - - Since: cosmos-sdk 0.43 description: |- options is the weighted vote options. @@ -13496,8 +12980,6 @@ paths: schema: type: object properties: - error: - type: string code: type: integer format: int32 @@ -13508,7 +12990,7 @@ paths: items: type: object properties: - type_url: + '@type': type: string description: >- A URL/resource name that uniquely identifies the type of @@ -13566,12 +13048,7 @@ paths: 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. + additionalProperties: {} description: >- `Any` contains an arbitrary serialized protocol buffer message along with a @@ -13743,9 +13220,6 @@ paths: description: >- reverse is set to true if results are to be returned in the descending order. - - - Since: cosmos-sdk 0.43 in: query required: false type: boolean @@ -13766,6 +13240,7 @@ paths: type: object properties: vote: + description: vote defines the queried vote. type: object properties: proposal_id: @@ -13818,18 +13293,10 @@ paths: description: >- WeightedVoteOption defines a unit of vote for vote split. - - - Since: cosmos-sdk 0.43 description: |- options is the weighted vote options. Since: cosmos-sdk 0.43 - description: >- - Vote defines a vote on a governance proposal. - - A Vote consists of a proposal ID, the voter, and the vote - option. description: >- QueryVoteResponse is the response type for the Query/Vote RPC method. @@ -13838,8 +13305,6 @@ paths: schema: type: object properties: - error: - type: string code: type: integer format: int32 @@ -13850,7 +13315,7 @@ paths: items: type: object properties: - type_url: + '@type': type: string description: >- A URL/resource name that uniquely identifies the type of @@ -13908,12 +13373,7 @@ paths: 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. + additionalProperties: {} description: >- `Any` contains an arbitrary serialized protocol buffer message along with a @@ -14062,8 +13522,6 @@ paths: schema: type: object properties: - error: - type: string code: type: integer format: int32 @@ -14074,7 +13532,7 @@ paths: items: type: object properties: - type_url: + '@type': type: string description: >- A URL/resource name that uniquely identifies the type of @@ -14132,12 +13590,7 @@ paths: 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. + additionalProperties: {} description: >- `Any` contains an arbitrary serialized protocol buffer message along with a @@ -14254,7 +13707,7 @@ paths: } tags: - Query - /cosmos/gov/v1/params/{params_type}: + /cosmos/gov/v1/params: get: summary: Params queries all parameters of the gov module. operationId: GovV1Params @@ -14330,10 +13783,7 @@ paths: vetoed. Default value: 1/3. params: - description: |- - params defines all the parameters of x/gov module. - - Since: cosmos-sdk 0.47 + description: params defines all the parameters of x/gov module. type: object properties: min_deposit: @@ -14357,7 +13807,7 @@ paths: max_deposit_period: type: string description: >- - Maximum period for Atom holders to deposit on a proposal. + Maximum period for stake holders to deposit on a proposal. Initial value: 2 months. @@ -14391,9 +13841,6 @@ paths: description: >- The cancel ratio which will not be returned back to the depositors when a proposal is cancelled. - - - Since: cosmos-sdk 0.50 proposal_cancel_dest: type: string description: >- @@ -14402,23 +13849,14 @@ paths: If empty, the (proposal_cancel_ratio * deposit) proposal deposits will be burned. - - - Since: cosmos-sdk 0.50 expedited_voting_period: type: string - description: |- - Duration of the voting period of an expedited proposal. - - Since: cosmos-sdk 0.50 + description: Duration of the voting period of an expedited proposal. expedited_threshold: type: string description: >- Minimum proportion of Yes votes for proposal to pass. Default value: 0.67. - - - Since: cosmos-sdk 0.50 expedited_min_deposit: type: array items: @@ -14441,15 +13879,12 @@ paths: period. burn_vote_quorum: type: boolean - description: 'Since: cosmos-sdk 0.47' title: burn deposits if a proposal does not meet quorum burn_proposal_deposit_prevote: type: boolean - description: 'Since: cosmos-sdk 0.47' title: burn deposits if the proposal does not enter voting period burn_vote_veto: type: boolean - description: 'Since: cosmos-sdk 0.47' title: burn deposits if quorum with vote type no_veto is met min_deposit_ratio: type: string @@ -14461,9 +13896,6 @@ paths: min_deposit of 100stake, a deposit of 1stake would be required. - - - Since: cosmos-sdk 0.50 proposal_cancel_max_period: type: string description: >- @@ -14482,7 +13914,6 @@ paths: type: array items: type: string - description: 'Since: x/gov v1.0.0' title: >- optimistic_authorized_addresses is an optional governance parameter that limits the authorized accounts than can @@ -14496,9 +13927,20 @@ paths: converted to a standard proposal. The threshold is expressed as a percentage of the total bonded tokens. + yes_quorum: + type: string + description: >- + yes_quorum defines the minimum percentage of Yes votes in + quorum for proposal to pass. + Default value: 0 (disabled). + expedited_quorum: + type: string + description: >- + Minimum percentage of total stake needed to vote for a + result to be - Since: x/gov v1.0.0 + considered valid for an expedited proposal. description: >- QueryParamsResponse is the response type for the Query/Params RPC method. @@ -14507,8 +13949,6 @@ paths: schema: type: object properties: - error: - type: string code: type: integer format: int32 @@ -14519,7 +13959,7 @@ paths: items: type: object properties: - type_url: + '@type': type: string description: >- A URL/resource name that uniquely identifies the type of @@ -14577,12 +14017,7 @@ paths: 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. + additionalProperties: {} description: >- `Any` contains an arbitrary serialized protocol buffer message along with a @@ -14704,6 +14139,253 @@ paths: "voting", "tallying" or "deposit". + + Deprecated: all params are stored in Params. + in: query + required: false + type: string + tags: + - Query + /cosmos/gov/v1/params/{msg_url}: + get: + summary: >- + MessageBasedParams queries the message specific governance params based + on a msg url. + operationId: MessageBasedParams + responses: + '200': + description: A successful response. + schema: + type: object + properties: + params: + type: object + properties: + voting_period: + type: string + description: Duration of the voting period. + quorum: + type: string + description: >- + Minimum percentage of total stake needed to vote for a + result to be considered valid. + yes_quorum: + type: string + description: >- + yes_quorum defines the minimum percentage of Yes votes in + quorum for proposal to pass. + + If zero then the yes_quorum is disabled. + threshold: + type: string + description: Minimum proportion of Yes votes for proposal to pass. + veto_threshold: + type: string + description: >- + Minimum value of Veto votes to Total votes ratio for + proposal to be vetoed. + description: >- + MessageBasedParams defines the parameters of specific messages + in a proposal. + + It is used to define the parameters of a proposal that is + based on a specific message. + + Once a message has message based params, it only supports a + standard proposal type. + description: >- + QueryMessageBasedParamsResponse is the response for the + Query/MessageBasedParams RPC method. + default: + description: An unexpected error response. + schema: + type: object + properties: + code: + type: integer + format: int32 + message: + type: string + details: + type: array + items: + type: object + properties: + '@type': + 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. + additionalProperties: {} + 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" + } + parameters: + - name: msg_url in: path required: true type: string @@ -14733,7 +14415,7 @@ paths: items: type: object properties: - type_url: + '@type': type: string description: >- A URL/resource name that uniquely identifies the @@ -14791,12 +14473,7 @@ paths: 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. + additionalProperties: {} description: >- `Any` contains an arbitrary serialized protocol buffer message along with a @@ -14940,20 +14617,62 @@ paths: properties: yes_count: type: string - description: yes_count is the number of yes votes on a proposal. + description: |- + yes_count is the number of yes votes on a proposal. + + option 1 abstain_count: type: string description: >- abstain_count is the number of abstain votes on a proposal. + + + option 2 no_count: type: string - description: no_count is the number of no votes on a proposal. + description: |- + no_count is the number of no votes on a proposal. + + option 3 no_with_veto_count: type: string description: >- no_with_veto_count is the number of no with veto votes on a proposal. + + + option 4 + option_one_count: + type: string + description: >- + option_one_count corresponds to the number of votes + for option one (= yes_count for non multiple choice + proposals). + option_two_count: + type: string + description: >- + option_two_count corresponds to the number of votes + for option two (= abstain_count for non multiple + choice + + proposals). + option_three_count: + type: string + description: >- + option_three_count corresponds to the number of + votes for option three (= no_count for non multiple + choice + + proposals). + option_four_count: + type: string + description: >- + option_four_count corresponds to the number of votes + for option four (= no_with_veto_count for non + multiple choice + + proposals). spam_count: type: string description: >- @@ -15008,28 +14727,21 @@ paths: https://docs.cosmos.network/v0.47/modules/gov#proposal-3 title: type: string - description: 'Since: cosmos-sdk 0.47' title: title is the title of the proposal summary: type: string - description: 'Since: cosmos-sdk 0.47' title: summary is a short summary of the proposal proposer: type: string - description: 'Since: cosmos-sdk 0.47' title: proposer is the address of the proposal sumbitter expedited: type: boolean - description: |- - Since: cosmos-sdk 0.50 - Deprecated: Use ProposalType instead. + description: 'Deprecated: Use ProposalType instead.' title: expedited defines if the proposal is expedited failed_reason: type: string - description: 'Since: cosmos-sdk 0.50' title: failed_reason defines the reason why the proposal failed proposal_type: - description: 'Since: cosmos-sdk 0.51' title: proposal_type defines the type of the proposal type: string enum: @@ -15039,6 +14751,17 @@ paths: - PROPOSAL_TYPE_OPTIMISTIC - PROPOSAL_TYPE_EXPEDITED default: PROPOSAL_TYPE_UNSPECIFIED + description: >- + ProposalType enumerates the valid proposal types. + + All proposal types are v1.Proposal which have different + voting periods or tallying logic. + + - PROPOSAL_TYPE_UNSPECIFIED: PROPOSAL_TYPE_UNSPECIFIED defines no proposal type, which fallback to PROPOSAL_TYPE_STANDARD. + - PROPOSAL_TYPE_STANDARD: PROPOSAL_TYPE_STANDARD defines the type for a standard proposal. + - PROPOSAL_TYPE_MULTIPLE_CHOICE: PROPOSAL_TYPE_MULTIPLE_CHOICE defines the type for a multiple choice proposal. + - PROPOSAL_TYPE_OPTIMISTIC: PROPOSAL_TYPE_OPTIMISTIC defines the type for an optimistic proposal. + - PROPOSAL_TYPE_EXPEDITED: PROPOSAL_TYPE_EXPEDITED defines the type for an expedited proposal. description: >- Proposal defines the core field members of a governance proposal. @@ -15072,8 +14795,6 @@ paths: schema: type: object properties: - error: - type: string code: type: integer format: int32 @@ -15084,7 +14805,7 @@ paths: items: type: object properties: - type_url: + '@type': type: string description: >- A URL/resource name that uniquely identifies the type of @@ -15142,12 +14863,7 @@ paths: 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. + additionalProperties: {} description: >- `Any` contains an arbitrary serialized protocol buffer message along with a @@ -15349,9 +15065,6 @@ paths: description: >- reverse is set to true if results are to be returned in the descending order. - - - Since: cosmos-sdk 0.43 in: query required: false type: boolean @@ -15368,6 +15081,7 @@ paths: type: object properties: proposal: + description: proposal is the requested governance proposal. type: object properties: id: @@ -15379,7 +15093,7 @@ paths: items: type: object properties: - type_url: + '@type': type: string description: >- A URL/resource name that uniquely identifies the @@ -15437,12 +15151,7 @@ paths: 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. + additionalProperties: {} description: >- `Any` contains an arbitrary serialized protocol buffer message along with a @@ -15586,20 +15295,61 @@ paths: properties: yes_count: type: string - description: yes_count is the number of yes votes on a proposal. + description: |- + yes_count is the number of yes votes on a proposal. + + option 1 abstain_count: type: string description: >- abstain_count is the number of abstain votes on a proposal. + + + option 2 no_count: type: string - description: no_count is the number of no votes on a proposal. + description: |- + no_count is the number of no votes on a proposal. + + option 3 no_with_veto_count: type: string description: >- no_with_veto_count is the number of no with veto votes on a proposal. + + + option 4 + option_one_count: + type: string + description: >- + option_one_count corresponds to the number of votes + for option one (= yes_count for non multiple choice + proposals). + option_two_count: + type: string + description: >- + option_two_count corresponds to the number of votes + for option two (= abstain_count for non multiple + choice + + proposals). + option_three_count: + type: string + description: >- + option_three_count corresponds to the number of votes + for option three (= no_count for non multiple choice + + proposals). + option_four_count: + type: string + description: >- + option_four_count corresponds to the number of votes + for option four (= no_with_veto_count for non multiple + choice + + proposals). spam_count: type: string description: spam_count is the number of spam votes on a proposal. @@ -15651,28 +15401,21 @@ paths: https://docs.cosmos.network/v0.47/modules/gov#proposal-3 title: type: string - description: 'Since: cosmos-sdk 0.47' title: title is the title of the proposal summary: type: string - description: 'Since: cosmos-sdk 0.47' title: summary is a short summary of the proposal proposer: type: string - description: 'Since: cosmos-sdk 0.47' title: proposer is the address of the proposal sumbitter expedited: type: boolean - description: |- - Since: cosmos-sdk 0.50 - Deprecated: Use ProposalType instead. + description: 'Deprecated: Use ProposalType instead.' title: expedited defines if the proposal is expedited failed_reason: type: string - description: 'Since: cosmos-sdk 0.50' title: failed_reason defines the reason why the proposal failed proposal_type: - description: 'Since: cosmos-sdk 0.51' title: proposal_type defines the type of the proposal type: string enum: @@ -15682,9 +15425,17 @@ paths: - PROPOSAL_TYPE_OPTIMISTIC - PROPOSAL_TYPE_EXPEDITED default: PROPOSAL_TYPE_UNSPECIFIED - description: >- - Proposal defines the core field members of a governance - proposal. + description: >- + ProposalType enumerates the valid proposal types. + + All proposal types are v1.Proposal which have different + voting periods or tallying logic. + + - PROPOSAL_TYPE_UNSPECIFIED: PROPOSAL_TYPE_UNSPECIFIED defines no proposal type, which fallback to PROPOSAL_TYPE_STANDARD. + - PROPOSAL_TYPE_STANDARD: PROPOSAL_TYPE_STANDARD defines the type for a standard proposal. + - PROPOSAL_TYPE_MULTIPLE_CHOICE: PROPOSAL_TYPE_MULTIPLE_CHOICE defines the type for a multiple choice proposal. + - PROPOSAL_TYPE_OPTIMISTIC: PROPOSAL_TYPE_OPTIMISTIC defines the type for an optimistic proposal. + - PROPOSAL_TYPE_EXPEDITED: PROPOSAL_TYPE_EXPEDITED defines the type for an expedited proposal. description: >- QueryProposalResponse is the response type for the Query/Proposal RPC method. @@ -15693,8 +15444,6 @@ paths: schema: type: object properties: - error: - type: string code: type: integer format: int32 @@ -15705,7 +15454,7 @@ paths: items: type: object properties: - type_url: + '@type': type: string description: >- A URL/resource name that uniquely identifies the type of @@ -15763,12 +15512,7 @@ paths: 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. + additionalProperties: {} description: >- `Any` contains an arbitrary serialized protocol buffer message along with a @@ -15968,8 +15712,6 @@ paths: schema: type: object properties: - error: - type: string code: type: integer format: int32 @@ -15980,7 +15722,7 @@ paths: items: type: object properties: - type_url: + '@type': type: string description: >- A URL/resource name that uniquely identifies the type of @@ -16038,12 +15780,7 @@ paths: 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. + additionalProperties: {} description: >- `Any` contains an arbitrary serialized protocol buffer message along with a @@ -16215,9 +15952,6 @@ paths: description: >- reverse is set to true if results are to be returned in the descending order. - - - Since: cosmos-sdk 0.43 in: query required: false type: boolean @@ -16236,6 +15970,7 @@ paths: type: object properties: deposit: + description: deposit defines the requested deposit. type: object properties: proposal_id: @@ -16265,11 +16000,6 @@ paths: signatures required by gogoproto. description: amount to be deposited by depositor. - description: >- - Deposit defines an amount deposited by an account address to - an active - - proposal. description: >- QueryDepositResponse is the response type for the Query/Deposit RPC method. @@ -16278,8 +16008,6 @@ paths: schema: type: object properties: - error: - type: string code: type: integer format: int32 @@ -16290,7 +16018,7 @@ paths: items: type: object properties: - type_url: + '@type': type: string description: >- A URL/resource name that uniquely identifies the type of @@ -16348,12 +16076,7 @@ paths: 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. + additionalProperties: {} description: >- `Any` contains an arbitrary serialized protocol buffer message along with a @@ -16498,20 +16221,59 @@ paths: properties: yes_count: type: string - description: yes_count is the number of yes votes on a proposal. + description: |- + yes_count is the number of yes votes on a proposal. + + option 1 abstain_count: type: string description: >- abstain_count is the number of abstain votes on a proposal. + + + option 2 no_count: type: string - description: no_count is the number of no votes on a proposal. + description: |- + no_count is the number of no votes on a proposal. + + option 3 no_with_veto_count: type: string description: >- no_with_veto_count is the number of no with veto votes on a proposal. + + + option 4 + option_one_count: + type: string + description: >- + option_one_count corresponds to the number of votes for + option one (= yes_count for non multiple choice + proposals). + option_two_count: + type: string + description: >- + option_two_count corresponds to the number of votes for + option two (= abstain_count for non multiple choice + + proposals). + option_three_count: + type: string + description: >- + option_three_count corresponds to the number of votes for + option three (= no_count for non multiple choice + + proposals). + option_four_count: + type: string + description: >- + option_four_count corresponds to the number of votes for + option four (= no_with_veto_count for non multiple choice + + proposals). spam_count: type: string description: spam_count is the number of spam votes on a proposal. @@ -16523,8 +16285,235 @@ paths: schema: type: object properties: - error: + code: + type: integer + format: int32 + message: type: string + details: + type: array + items: + type: object + properties: + '@type': + 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. + additionalProperties: {} + 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" + } + parameters: + - name: proposal_id + description: proposal_id defines the unique id of the proposal. + in: path + required: true + type: string + format: uint64 + tags: + - Query + /cosmos/gov/v1/proposals/{proposal_id}/vote_options: + get: + summary: ProposalVoteOptions queries the valid voting options for a proposal. + operationId: ProposalVoteOptions + responses: + '200': + description: A successful response. + schema: + type: object + properties: + vote_options: + description: vote_options defines the valid voting options for a proposal. + type: object + properties: + option_one: + type: string + title: option_one is the first option of the proposal + option_two: + type: string + title: option_two is the second option of the proposal + option_three: + type: string + title: option_three is the third option of the proposal + option_four: + type: string + title: option_four is the fourth option of the proposal + option_spam: + type: string + description: option_spam is always present for all proposals. + description: >- + QueryProposalVoteOptionsResponse is the response type for the + Query/ProposalVoteOptions RPC method. + default: + description: An unexpected error response. + schema: + type: object + properties: code: type: integer format: int32 @@ -16535,7 +16524,7 @@ paths: items: type: object properties: - type_url: + '@type': type: string description: >- A URL/resource name that uniquely identifies the type of @@ -16593,12 +16582,7 @@ paths: 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. + additionalProperties: {} description: >- `Any` contains an arbitrary serialized protocol buffer message along with a @@ -16756,14 +16740,14 @@ paths: type: string enum: - VOTE_OPTION_UNSPECIFIED - - VOTE_OPTION_ONE - VOTE_OPTION_YES - - VOTE_OPTION_TWO + - VOTE_OPTION_ONE - VOTE_OPTION_ABSTAIN - - VOTE_OPTION_THREE + - VOTE_OPTION_TWO - VOTE_OPTION_NO - - VOTE_OPTION_FOUR + - VOTE_OPTION_THREE - VOTE_OPTION_NO_WITH_VETO + - VOTE_OPTION_FOUR - VOTE_OPTION_SPAM default: VOTE_OPTION_UNSPECIFIED weight: @@ -16816,8 +16800,6 @@ paths: schema: type: object properties: - error: - type: string code: type: integer format: int32 @@ -16828,7 +16810,7 @@ paths: items: type: object properties: - type_url: + '@type': type: string description: >- A URL/resource name that uniquely identifies the type of @@ -16886,12 +16868,7 @@ paths: 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. + additionalProperties: {} description: >- `Any` contains an arbitrary serialized protocol buffer message along with a @@ -17063,9 +17040,6 @@ paths: description: >- reverse is set to true if results are to be returned in the descending order. - - - Since: cosmos-sdk 0.43 in: query required: false type: boolean @@ -17082,6 +17056,7 @@ paths: type: object properties: vote: + description: vote defines the queried vote. type: object properties: proposal_id: @@ -17103,14 +17078,14 @@ paths: type: string enum: - VOTE_OPTION_UNSPECIFIED - - VOTE_OPTION_ONE - VOTE_OPTION_YES - - VOTE_OPTION_TWO + - VOTE_OPTION_ONE - VOTE_OPTION_ABSTAIN - - VOTE_OPTION_THREE + - VOTE_OPTION_TWO - VOTE_OPTION_NO - - VOTE_OPTION_FOUR + - VOTE_OPTION_THREE - VOTE_OPTION_NO_WITH_VETO + - VOTE_OPTION_FOUR - VOTE_OPTION_SPAM default: VOTE_OPTION_UNSPECIFIED weight: @@ -17129,11 +17104,6 @@ paths: 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. description: >- QueryVoteResponse is the response type for the Query/Vote RPC method. @@ -17142,8 +17112,6 @@ paths: schema: type: object properties: - error: - type: string code: type: integer format: int32 @@ -17154,7 +17122,7 @@ paths: items: type: object properties: - type_url: + '@type': type: string description: >- A URL/resource name that uniquely identifies the type of @@ -17212,12 +17180,7 @@ paths: 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. + additionalProperties: {} description: >- `Any` contains an arbitrary serialized protocol buffer message along with a @@ -17370,8 +17333,6 @@ paths: schema: type: object properties: - error: - type: string code: type: integer format: int32 @@ -17382,11 +17343,9 @@ paths: items: type: object properties: - type_url: - type: string - value: + '@type': type: string - format: byte + additionalProperties: {} tags: - Query /cosmos/mint/v1beta1/inflation: @@ -17413,8 +17372,6 @@ paths: schema: type: object properties: - error: - type: string code: type: integer format: int32 @@ -17425,11 +17382,9 @@ paths: items: type: object properties: - type_url: - type: string - value: + '@type': type: string - format: byte + additionalProperties: {} tags: - Query /cosmos/mint/v1beta1/params: @@ -17465,6 +17420,9 @@ paths: type: string format: uint64 title: expected blocks per year + max_supply: + type: string + title: maximum supply for the token description: >- QueryParamsResponse is the response type for the Query/Params RPC method. @@ -17473,8 +17431,6 @@ paths: schema: type: object properties: - error: - type: string code: type: integer format: int32 @@ -17485,11 +17441,9 @@ paths: items: type: object properties: - type_url: + '@type': type: string - value: - type: string - format: byte + additionalProperties: {} tags: - Query /cosmos/params/v1beta1/params: @@ -17522,8 +17476,6 @@ paths: schema: type: object properties: - error: - type: string code: type: integer format: int32 @@ -17534,11 +17486,9 @@ paths: items: type: object properties: - type_url: + '@type': type: string - value: - type: string - format: byte + additionalProperties: {} parameters: - name: subspace description: subspace defines the module to query the parameter for. @@ -17557,7 +17507,6 @@ paths: summary: >- Subspaces queries for all registered subspaces and all keys for a subspace. - description: 'Since: cosmos-sdk 0.46' operationId: Subspaces responses: '200': @@ -17581,24 +17530,16 @@ paths: that exist for the subspace. - - - Since: cosmos-sdk 0.46 description: >- QuerySubspacesResponse defines the response types for querying for all registered subspaces and all keys for a subspace. - - - Since: cosmos-sdk 0.46 default: description: An unexpected error response. schema: type: object properties: - error: - type: string code: type: integer format: int32 @@ -17609,11 +17550,9 @@ paths: items: type: object properties: - type_url: + '@type': type: string - value: - type: string - format: byte + additionalProperties: {} tags: - Query /cosmos/slashing/v1beta1/params: @@ -17654,8 +17593,6 @@ paths: schema: type: object properties: - error: - type: string code: type: integer format: int32 @@ -17666,11 +17603,9 @@ paths: items: type: object properties: - type_url: + '@type': type: string - value: - type: string - format: byte + additionalProperties: {} tags: - Query /cosmos/slashing/v1beta1/signing_infos: @@ -17700,8 +17635,8 @@ paths: type: string format: int64 description: >- - Index which is incremented every time a validator is - bonded in a block and + DEPRECATED: Index which is incremented every time a + validator is bonded in a block and _may_ have signed a pre-commit or not. This in conjunction with the @@ -17776,8 +17711,6 @@ paths: schema: type: object properties: - error: - type: string code: type: integer format: int32 @@ -17788,11 +17721,9 @@ paths: items: type: object properties: - type_url: - type: string - value: + '@type': type: string - format: byte + additionalProperties: {} parameters: - name: pagination.key description: |- @@ -17844,9 +17775,6 @@ paths: description: >- reverse is set to true if results are to be returned in the descending order. - - - Since: cosmos-sdk 0.43 in: query required: false type: boolean @@ -17863,6 +17791,9 @@ paths: type: object properties: val_signing_info: + title: >- + val_signing_info is the signing info of requested val cons + address type: object properties: address: @@ -17877,8 +17808,8 @@ paths: type: string format: int64 description: >- - Index which is incremented every time a validator is - bonded in a block and + DEPRECATED: Index which is incremented every time a + validator is bonded in a block and _may_ have signed a pre-commit or not. This in conjunction with the @@ -17914,9 +17845,6 @@ paths: monitoring their liveness activity. - title: >- - val_signing_info is the signing info of requested val cons - address title: >- QuerySigningInfoResponse is the response type for the Query/SigningInfo RPC @@ -17927,8 +17855,6 @@ paths: schema: type: object properties: - error: - type: string code: type: integer format: int32 @@ -17939,11 +17865,9 @@ paths: items: type: object properties: - type_url: - type: string - value: + '@type': type: string - format: byte + additionalProperties: {} parameters: - name: cons_address description: cons_address is the address to query signing info of @@ -18049,8 +17973,6 @@ paths: schema: type: object properties: - error: - type: string code: type: integer format: int32 @@ -18061,7 +17983,7 @@ paths: items: type: object properties: - type_url: + '@type': type: string description: >- A URL/resource name that uniquely identifies the type of @@ -18119,12 +18041,7 @@ paths: 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. + additionalProperties: {} description: >- `Any` contains an arbitrary serialized protocol buffer message along with a @@ -18162,7 +18079,7 @@ paths: foo = any.unpack(Foo.getDefaultInstance()); } - Example 3: Pack and unpack a message in Python. + Example 3: Pack and unpack a message in Python. foo = Foo(...) any = Any() @@ -18172,7 +18089,7 @@ paths: any.Unpack(foo) ... - Example 4: Pack and unpack a message in Go + Example 4: Pack and unpack a message in Go foo := &pb.Foo{...} any, err := anypb.New(foo) @@ -18202,7 +18119,6 @@ paths: JSON - ==== The JSON representation of an `Any` value uses the regular @@ -18295,9 +18211,6 @@ paths: description: >- reverse is set to true if results are to be returned in the descending order. - - - Since: cosmos-sdk 0.43 in: query required: false type: boolean @@ -18384,7 +18297,10 @@ paths: description: >- RedelegationEntry defines a redelegation object with relevant metadata. - description: entries are the redelegation entries. + description: |- + entries are the redelegation entries. + + redelegation entries description: >- Redelegation contains the list of a particular delegator's redelegating bonds @@ -18484,8 +18400,6 @@ paths: schema: type: object properties: - error: - type: string code: type: integer format: int32 @@ -18496,7 +18410,7 @@ paths: items: type: object properties: - type_url: + '@type': type: string description: >- A URL/resource name that uniquely identifies the type of @@ -18554,12 +18468,7 @@ paths: 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. + additionalProperties: {} description: >- `Any` contains an arbitrary serialized protocol buffer message along with a @@ -18597,7 +18506,7 @@ paths: foo = any.unpack(Foo.getDefaultInstance()); } - Example 3: Pack and unpack a message in Python. + Example 3: Pack and unpack a message in Python. foo = Foo(...) any = Any() @@ -18607,7 +18516,7 @@ paths: any.Unpack(foo) ... - Example 4: Pack and unpack a message in Go + Example 4: Pack and unpack a message in Go foo := &pb.Foo{...} any, err := anypb.New(foo) @@ -18637,7 +18546,6 @@ paths: JSON - ==== The JSON representation of an `Any` value uses the regular @@ -18740,9 +18648,6 @@ paths: description: >- reverse is set to true if results are to be returned in the descending order. - - - Since: cosmos-sdk 0.43 in: query required: false type: boolean @@ -18824,7 +18729,10 @@ paths: description: >- UnbondingDelegationEntry defines an unbonding object with relevant metadata. - description: entries are the unbonding delegation entries. + description: |- + entries are the unbonding delegation entries. + + unbonding delegation entries description: >- UnbondingDelegation stores all of a single delegator's unbonding bonds @@ -18859,8 +18767,6 @@ paths: schema: type: object properties: - error: - type: string code: type: integer format: int32 @@ -18871,7 +18777,7 @@ paths: items: type: object properties: - type_url: + '@type': type: string description: >- A URL/resource name that uniquely identifies the type of @@ -18929,12 +18835,7 @@ paths: 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. + additionalProperties: {} description: >- `Any` contains an arbitrary serialized protocol buffer message along with a @@ -18972,7 +18873,7 @@ paths: foo = any.unpack(Foo.getDefaultInstance()); } - Example 3: Pack and unpack a message in Python. + Example 3: Pack and unpack a message in Python. foo = Foo(...) any = Any() @@ -18982,7 +18883,7 @@ paths: any.Unpack(foo) ... - Example 4: Pack and unpack a message in Go + Example 4: Pack and unpack a message in Go foo := &pb.Foo{...} any, err := anypb.New(foo) @@ -19012,7 +18913,6 @@ paths: JSON - ==== The JSON representation of an `Any` value uses the regular @@ -19105,9 +19005,6 @@ paths: description: >- reverse is set to true if results are to be returned in the descending order. - - - Since: cosmos-sdk 0.43 in: query required: false type: boolean @@ -19141,9 +19038,12 @@ paths: operator_address defines the address of the validator's operator; bech encoded in JSON. consensus_pubkey: + description: >- + consensus_pubkey is the consensus public key of the + validator, as a Protobuf Any. type: object properties: - type_url: + '@type': type: string description: >- A URL/resource name that uniquely identifies the @@ -19201,128 +19101,7 @@ paths: 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" - } + additionalProperties: {} jailed: type: boolean description: >- @@ -19425,9 +19204,6 @@ paths: description: >- min_self_delegation is the validator's self declared minimum self delegation. - - - Since: cosmos-sdk 0.46 unbonding_on_hold_ref_count: type: string format: int64 @@ -19493,8 +19269,6 @@ paths: schema: type: object properties: - error: - type: string code: type: integer format: int32 @@ -19505,7 +19279,7 @@ paths: items: type: object properties: - type_url: + '@type': type: string description: >- A URL/resource name that uniquely identifies the type of @@ -19563,12 +19337,7 @@ paths: 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. + additionalProperties: {} description: >- `Any` contains an arbitrary serialized protocol buffer message along with a @@ -19606,7 +19375,7 @@ paths: foo = any.unpack(Foo.getDefaultInstance()); } - Example 3: Pack and unpack a message in Python. + Example 3: Pack and unpack a message in Python. foo = Foo(...) any = Any() @@ -19616,7 +19385,7 @@ paths: any.Unpack(foo) ... - Example 4: Pack and unpack a message in Go + Example 4: Pack and unpack a message in Go foo := &pb.Foo{...} any, err := anypb.New(foo) @@ -19646,7 +19415,6 @@ paths: JSON - ==== The JSON representation of an `Any` value uses the regular @@ -19739,9 +19507,6 @@ paths: description: >- reverse is set to true if results are to be returned in the descending order. - - - Since: cosmos-sdk 0.43 in: query required: false type: boolean @@ -19760,6 +19525,7 @@ paths: type: object properties: validator: + description: validator defines the validator info. type: object properties: operator_address: @@ -19768,9 +19534,12 @@ paths: operator_address defines the address of the validator's operator; bech encoded in JSON. consensus_pubkey: + description: >- + consensus_pubkey is the consensus public key of the + validator, as a Protobuf Any. type: object properties: - type_url: + '@type': type: string description: >- A URL/resource name that uniquely identifies the type @@ -19828,126 +19597,7 @@ paths: 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" - } + additionalProperties: {} jailed: type: boolean description: >- @@ -20049,9 +19699,6 @@ paths: description: >- min_self_delegation is the validator's self declared minimum self delegation. - - - Since: cosmos-sdk 0.46 unbonding_on_hold_ref_count: type: string format: int64 @@ -20066,29 +19713,6 @@ paths: title: >- list of unbonding ids, each uniquely identifying an unbonding of this validator - description: >- - Validator defines a validator, together with the total amount - of the - - Validator's bond shares and their exchange rate to coins. - Slashing results in - - a decrease in the exchange rate, allowing correct calculation - of future - - undelegations without iterating over delegators. When coins - are delegated to - - this validator, the validator is credited with a delegation - whose number of - - bond shares is based on the amount of coins delegated divided - by the current - - exchange rate. Voting power can be calculated as total bonded - shares - - multiplied by exchange rate. description: |- QueryDelegatorValidatorResponse response type for the Query/DelegatorValidator RPC method. @@ -20097,8 +19721,6 @@ paths: schema: type: object properties: - error: - type: string code: type: integer format: int32 @@ -20109,7 +19731,7 @@ paths: items: type: object properties: - type_url: + '@type': type: string description: >- A URL/resource name that uniquely identifies the type of @@ -20167,12 +19789,7 @@ paths: 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. + additionalProperties: {} description: >- `Any` contains an arbitrary serialized protocol buffer message along with a @@ -20210,7 +19827,7 @@ paths: foo = any.unpack(Foo.getDefaultInstance()); } - Example 3: Pack and unpack a message in Python. + Example 3: Pack and unpack a message in Python. foo = Foo(...) any = Any() @@ -20220,7 +19837,7 @@ paths: any.Unpack(foo) ... - Example 4: Pack and unpack a message in Go + Example 4: Pack and unpack a message in Go foo := &pb.Foo{...} any, err := anypb.New(foo) @@ -20250,7 +19867,6 @@ paths: JSON - ==== The JSON representation of an `Any` value uses the regular @@ -20359,37 +19975,51 @@ paths: hash: type: string format: byte - title: PartsetHeader + description: Header of the parts set for a block. + description: >- + BlockID defines the unique ID of a block as its hash + and its `PartSetHeader`. last_commit_hash: type: string format: byte + description: commit from validators from the last block title: hashes of block data data_hash: type: string format: byte + title: transactions validators_hash: type: string format: byte + description: validators for the current block title: hashes from the app output from the prev block next_validators_hash: type: string format: byte + title: validators for the next block consensus_hash: type: string format: byte + title: consensus params for current block app_hash: type: string format: byte + title: state after txs from the previous block last_results_hash: type: string format: byte + title: >- + root hash of all results from the txs from the + previous block evidence_hash: type: string format: byte + description: evidence included in the block title: consensus info proposer_address: type: string format: byte + title: original proposer of the block description: Header defines the structure of a block header. valset: type: array @@ -20402,9 +20032,12 @@ paths: operator_address defines the address of the validator's operator; bech encoded in JSON. consensus_pubkey: + description: >- + consensus_pubkey is the consensus public key of the + validator, as a Protobuf Any. type: object properties: - type_url: + '@type': type: string description: >- A URL/resource name that uniquely identifies the @@ -20462,129 +20095,7 @@ paths: 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" - } + additionalProperties: {} jailed: type: boolean description: >- @@ -20688,9 +20199,6 @@ paths: description: >- min_self_delegation is the validator's self declared minimum self delegation. - - - Since: cosmos-sdk 0.46 unbonding_on_hold_ref_count: type: string format: int64 @@ -20761,8 +20269,6 @@ paths: schema: type: object properties: - error: - type: string code: type: integer format: int32 @@ -20773,7 +20279,7 @@ paths: items: type: object properties: - type_url: + '@type': type: string description: >- A URL/resource name that uniquely identifies the type of @@ -20831,12 +20337,7 @@ paths: 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. + additionalProperties: {} description: >- `Any` contains an arbitrary serialized protocol buffer message along with a @@ -20874,7 +20375,7 @@ paths: foo = any.unpack(Foo.getDefaultInstance()); } - Example 3: Pack and unpack a message in Python. + Example 3: Pack and unpack a message in Python. foo = Foo(...) any = Any() @@ -20884,7 +20385,7 @@ paths: any.Unpack(foo) ... - Example 4: Pack and unpack a message in Go + Example 4: Pack and unpack a message in Go foo := &pb.Foo{...} any, err := anypb.New(foo) @@ -20914,7 +20415,6 @@ paths: JSON - ==== The JSON representation of an `Any` value uses the regular @@ -21029,8 +20529,214 @@ paths: schema: type: object properties: - error: + code: + type: integer + format: int32 + message: type: string + details: + type: array + items: + type: object + properties: + '@type': + 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. + additionalProperties: {} + 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/staking/v1beta1/pool: + get: + summary: Pool queries the pool info. + operationId: Pool + responses: + '200': + description: A successful response. + schema: + type: object + properties: + pool: + description: pool defines the pool info. + type: object + properties: + not_bonded_tokens: + type: string + bonded_tokens: + type: string + description: QueryPoolResponse is response type for the Query/Pool RPC method. + default: + description: An unexpected error response. + schema: + type: object + properties: code: type: integer format: int32 @@ -21041,7 +20747,7 @@ paths: items: type: object properties: - type_url: + '@type': type: string description: >- A URL/resource name that uniquely identifies the type of @@ -21099,12 +20805,7 @@ paths: 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. + additionalProperties: {} description: >- `Any` contains an arbitrary serialized protocol buffer message along with a @@ -21142,7 +20843,7 @@ paths: foo = any.unpack(Foo.getDefaultInstance()); } - Example 3: Pack and unpack a message in Python. + Example 3: Pack and unpack a message in Python. foo = Foo(...) any = Any() @@ -21152,7 +20853,7 @@ paths: any.Unpack(foo) ... - Example 4: Pack and unpack a message in Go + Example 4: Pack and unpack a message in Go foo := &pb.Foo{...} any, err := anypb.New(foo) @@ -21182,223 +20883,6 @@ paths: 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/staking/v1beta1/pool: - get: - summary: Pool queries the pool info. - operationId: Pool - responses: - '200': - description: A successful response. - schema: - type: object - properties: - pool: - description: pool defines the pool info. - type: object - properties: - not_bonded_tokens: - type: string - bonded_tokens: - type: string - description: QueryPoolResponse is response type for the Query/Pool 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 @@ -21463,9 +20947,12 @@ paths: operator_address defines the address of the validator's operator; bech encoded in JSON. consensus_pubkey: + description: >- + consensus_pubkey is the consensus public key of the + validator, as a Protobuf Any. type: object properties: - type_url: + '@type': type: string description: >- A URL/resource name that uniquely identifies the @@ -21523,128 +21010,7 @@ paths: 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" - } + additionalProperties: {} jailed: type: boolean description: >- @@ -21747,9 +21113,6 @@ paths: description: >- min_self_delegation is the validator's self declared minimum self delegation. - - - Since: cosmos-sdk 0.46 unbonding_on_hold_ref_count: type: string format: int64 @@ -21815,8 +21178,6 @@ paths: schema: type: object properties: - error: - type: string code: type: integer format: int32 @@ -21827,7 +21188,7 @@ paths: items: type: object properties: - type_url: + '@type': type: string description: >- A URL/resource name that uniquely identifies the type of @@ -21885,12 +21246,7 @@ paths: 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. + additionalProperties: {} description: >- `Any` contains an arbitrary serialized protocol buffer message along with a @@ -21928,7 +21284,7 @@ paths: foo = any.unpack(Foo.getDefaultInstance()); } - Example 3: Pack and unpack a message in Python. + Example 3: Pack and unpack a message in Python. foo = Foo(...) any = Any() @@ -21938,7 +21294,7 @@ paths: any.Unpack(foo) ... - Example 4: Pack and unpack a message in Go + Example 4: Pack and unpack a message in Go foo := &pb.Foo{...} any, err := anypb.New(foo) @@ -21968,7 +21324,6 @@ paths: JSON - ==== The JSON representation of an `Any` value uses the regular @@ -22061,9 +21416,6 @@ paths: description: >- reverse is set to true if results are to be returned in the descending order. - - - Since: cosmos-sdk 0.43 in: query required: false type: boolean @@ -22080,6 +21432,7 @@ paths: type: object properties: validator: + description: validator defines the validator info. type: object properties: operator_address: @@ -22088,9 +21441,12 @@ paths: operator_address defines the address of the validator's operator; bech encoded in JSON. consensus_pubkey: + description: >- + consensus_pubkey is the consensus public key of the + validator, as a Protobuf Any. type: object properties: - type_url: + '@type': type: string description: >- A URL/resource name that uniquely identifies the type @@ -22148,126 +21504,7 @@ paths: 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" - } + additionalProperties: {} jailed: type: boolean description: >- @@ -22369,9 +21606,6 @@ paths: description: >- min_self_delegation is the validator's self declared minimum self delegation. - - - Since: cosmos-sdk 0.46 unbonding_on_hold_ref_count: type: string format: int64 @@ -22386,29 +21620,6 @@ paths: title: >- list of unbonding ids, each uniquely identifying an unbonding of this validator - description: >- - Validator defines a validator, together with the total amount - of the - - Validator's bond shares and their exchange rate to coins. - Slashing results in - - a decrease in the exchange rate, allowing correct calculation - of future - - undelegations without iterating over delegators. When coins - are delegated to - - this validator, the validator is credited with a delegation - whose number of - - bond shares is based on the amount of coins delegated divided - by the current - - exchange rate. Voting power can be calculated as total bonded - shares - - multiplied by exchange rate. title: >- QueryValidatorResponse is response type for the Query/Validator RPC method @@ -22417,8 +21628,6 @@ paths: schema: type: object properties: - error: - type: string code: type: integer format: int32 @@ -22429,7 +21638,7 @@ paths: items: type: object properties: - type_url: + '@type': type: string description: >- A URL/resource name that uniquely identifies the type of @@ -22487,12 +21696,7 @@ paths: 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. + additionalProperties: {} description: >- `Any` contains an arbitrary serialized protocol buffer message along with a @@ -22530,7 +21734,7 @@ paths: foo = any.unpack(Foo.getDefaultInstance()); } - Example 3: Pack and unpack a message in Python. + Example 3: Pack and unpack a message in Python. foo = Foo(...) any = Any() @@ -22540,7 +21744,7 @@ paths: any.Unpack(foo) ... - Example 4: Pack and unpack a message in Go + Example 4: Pack and unpack a message in Go foo := &pb.Foo{...} any, err := anypb.New(foo) @@ -22570,7 +21774,6 @@ paths: JSON - ==== The JSON representation of an `Any` value uses the regular @@ -22707,8 +21910,6 @@ paths: schema: type: object properties: - error: - type: string code: type: integer format: int32 @@ -22719,7 +21920,7 @@ paths: items: type: object properties: - type_url: + '@type': type: string description: >- A URL/resource name that uniquely identifies the type of @@ -22777,12 +21978,7 @@ paths: 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. + additionalProperties: {} description: >- `Any` contains an arbitrary serialized protocol buffer message along with a @@ -22820,7 +22016,7 @@ paths: foo = any.unpack(Foo.getDefaultInstance()); } - Example 3: Pack and unpack a message in Python. + Example 3: Pack and unpack a message in Python. foo = Foo(...) any = Any() @@ -22830,7 +22026,7 @@ paths: any.Unpack(foo) ... - Example 4: Pack and unpack a message in Go + Example 4: Pack and unpack a message in Go foo := &pb.Foo{...} any, err := anypb.New(foo) @@ -22860,7 +22056,6 @@ paths: JSON - ==== The JSON representation of an `Any` value uses the regular @@ -22953,9 +22148,6 @@ paths: description: >- reverse is set to true if results are to be returned in the descending order. - - - Since: cosmos-sdk 0.43 in: query required: false type: boolean @@ -22972,6 +22164,9 @@ paths: type: object properties: delegation_response: + description: >- + delegation_responses defines the delegation info of a + delegation. type: object properties: delegation: @@ -23013,12 +22208,6 @@ paths: custom method signatures required by gogoproto. - description: >- - DelegationResponse is equivalent to Delegation except that it - contains a - - balance in addition to shares which is more suitable for - client responses. description: >- QueryDelegationResponse is response type for the Query/Delegation RPC method. @@ -23027,8 +22216,6 @@ paths: schema: type: object properties: - error: - type: string code: type: integer format: int32 @@ -23039,7 +22226,7 @@ paths: items: type: object properties: - type_url: + '@type': type: string description: >- A URL/resource name that uniquely identifies the type of @@ -23097,12 +22284,7 @@ paths: 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. + additionalProperties: {} description: >- `Any` contains an arbitrary serialized protocol buffer message along with a @@ -23140,7 +22322,7 @@ paths: foo = any.unpack(Foo.getDefaultInstance()); } - Example 3: Pack and unpack a message in Python. + Example 3: Pack and unpack a message in Python. foo = Foo(...) any = Any() @@ -23150,7 +22332,7 @@ paths: any.Unpack(foo) ... - Example 4: Pack and unpack a message in Go + Example 4: Pack and unpack a message in Go foo := &pb.Foo{...} any, err := anypb.New(foo) @@ -23180,7 +22362,6 @@ paths: JSON - ==== The JSON representation of an `Any` value uses the regular @@ -23243,6 +22424,7 @@ paths: type: object properties: unbond: + description: unbond defines the unbonding information of a delegation. type: object properties: delegator_address: @@ -23289,12 +22471,10 @@ paths: description: >- UnbondingDelegationEntry defines an unbonding object with relevant metadata. - description: entries are the unbonding delegation entries. - description: >- - UnbondingDelegation stores all of a single delegator's - unbonding bonds + description: |- + entries are the unbonding delegation entries. - for a single validator in an time-ordered list. + unbonding delegation entries description: >- QueryDelegationResponse is response type for the Query/UnbondingDelegation @@ -23305,8 +22485,6 @@ paths: schema: type: object properties: - error: - type: string code: type: integer format: int32 @@ -23317,7 +22495,7 @@ paths: items: type: object properties: - type_url: + '@type': type: string description: >- A URL/resource name that uniquely identifies the type of @@ -23375,12 +22553,7 @@ paths: 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. + additionalProperties: {} description: >- `Any` contains an arbitrary serialized protocol buffer message along with a @@ -23418,7 +22591,7 @@ paths: foo = any.unpack(Foo.getDefaultInstance()); } - Example 3: Pack and unpack a message in Python. + Example 3: Pack and unpack a message in Python. foo = Foo(...) any = Any() @@ -23428,7 +22601,7 @@ paths: any.Unpack(foo) ... - Example 4: Pack and unpack a message in Go + Example 4: Pack and unpack a message in Go foo := &pb.Foo{...} any, err := anypb.New(foo) @@ -23458,7 +22631,6 @@ paths: JSON - ==== The JSON representation of an `Any` value uses the regular @@ -23582,7 +22754,10 @@ paths: description: >- UnbondingDelegationEntry defines an unbonding object with relevant metadata. - description: entries are the unbonding delegation entries. + description: |- + entries are the unbonding delegation entries. + + unbonding delegation entries description: >- UnbondingDelegation stores all of a single delegator's unbonding bonds @@ -23617,8 +22792,6 @@ paths: schema: type: object properties: - error: - type: string code: type: integer format: int32 @@ -23629,7 +22802,7 @@ paths: items: type: object properties: - type_url: + '@type': type: string description: >- A URL/resource name that uniquely identifies the type of @@ -23687,12 +22860,7 @@ paths: 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. + additionalProperties: {} description: >- `Any` contains an arbitrary serialized protocol buffer message along with a @@ -23730,7 +22898,7 @@ paths: foo = any.unpack(Foo.getDefaultInstance()); } - Example 3: Pack and unpack a message in Python. + Example 3: Pack and unpack a message in Python. foo = Foo(...) any = Any() @@ -23740,7 +22908,7 @@ paths: any.Unpack(foo) ... - Example 4: Pack and unpack a message in Go + Example 4: Pack and unpack a message in Go foo := &pb.Foo{...} any, err := anypb.New(foo) @@ -23770,7 +22938,6 @@ paths: JSON - ==== The JSON representation of an `Any` value uses the regular @@ -23863,9 +23030,6 @@ paths: description: >- reverse is set to true if results are to be returned in the descending order. - - - Since: cosmos-sdk 0.43 in: query required: false type: boolean @@ -23874,7 +23038,6 @@ paths: /cosmos/tx/v1beta1/decode: post: summary: TxDecode decodes the transaction. - description: 'Since: cosmos-sdk 0.47' operationId: TxDecode responses: '200': @@ -23886,8 +23049,230 @@ paths: schema: type: object properties: - error: + code: + type: integer + format: int32 + message: + type: string + details: + type: array + items: + type: object + properties: + '@type': + 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. + additionalProperties: {} + 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" + } + parameters: + - name: body + description: |- + TxDecodeRequest is the request type for the Service.TxDecode + RPC method. + in: body + required: true + schema: + type: object + properties: + tx_bytes: + type: string + format: byte + description: tx_bytes is the raw transaction. + description: |- + TxDecodeRequest is the request type for the Service.TxDecode + RPC method. + tags: + - Service + /cosmos/tx/v1beta1/decode/amino: + post: + summary: TxDecodeAmino decodes an Amino transaction from encoded bytes to JSON. + operationId: TxDecodeAmino + responses: + '200': + description: A successful response. + schema: + type: object + properties: + amino_json: type: string + description: >- + TxDecodeAminoResponse is the response type for the + Service.TxDecodeAmino + + RPC method. + default: + description: An unexpected error response. + schema: + type: object + properties: code: type: integer format: int32 @@ -23898,7 +23283,7 @@ paths: items: type: object properties: - type_url: + '@type': type: string description: >- A URL/resource name that uniquely identifies the type of @@ -23956,12 +23341,7 @@ paths: 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. + additionalProperties: {} description: >- `Any` contains an arbitrary serialized protocol buffer message along with a @@ -24078,240 +23458,11 @@ paths: } parameters: - name: body - in: body - required: true - schema: - type: object - properties: - tx_bytes: - type: string - format: byte - description: tx_bytes is the raw transaction. - description: |- - TxDecodeRequest is the request type for the Service.TxDecode - RPC method. - - Since: cosmos-sdk 0.47 - tags: - - Service - /cosmos/tx/v1beta1/decode/amino: - post: - summary: TxDecodeAmino decodes an Amino transaction from encoded bytes to JSON. - description: 'Since: cosmos-sdk 0.47' - operationId: TxDecodeAmino - responses: - '200': - description: A successful response. - schema: - type: object - properties: - amino_json: - type: string - description: >- - TxDecodeAminoResponse is the response type for the - Service.TxDecodeAmino - - RPC method. - - - Since: cosmos-sdk 0.47 - 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][]): + description: >- + TxDecodeAminoRequest is the request type for the + Service.TxDecodeAmino - { - "@type": "type.googleapis.com/google.protobuf.Duration", - "value": "1.212s" - } - parameters: - - name: body + RPC method. in: body required: true schema: @@ -24325,15 +23476,11 @@ paths: Service.TxDecodeAmino RPC method. - - - Since: cosmos-sdk 0.47 tags: - Service /cosmos/tx/v1beta1/encode: post: summary: TxEncode encodes the transaction. - description: 'Since: cosmos-sdk 0.47' operationId: TxEncode responses: '200': @@ -24348,15 +23495,11 @@ paths: description: |- TxEncodeResponse is the response type for the Service.TxEncode method. - - Since: cosmos-sdk 0.47 default: description: An unexpected error response. schema: type: object properties: - error: - type: string code: type: integer format: int32 @@ -24367,7 +23510,7 @@ paths: items: type: object properties: - type_url: + '@type': type: string description: >- A URL/resource name that uniquely identifies the type of @@ -24425,12 +23568,7 @@ paths: 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. + additionalProperties: {} description: >- `Any` contains an arbitrary serialized protocol buffer message along with a @@ -24547,6 +23685,9 @@ paths: } parameters: - name: body + description: |- + TxEncodeRequest is the request type for the Service.TxEncode + RPC method. in: body required: true schema: @@ -24556,7 +23697,6 @@ paths: /cosmos/tx/v1beta1/encode/amino: post: summary: TxEncodeAmino encodes an Amino transaction from JSON to encoded bytes. - description: 'Since: cosmos-sdk 0.47' operationId: TxEncodeAmino responses: '200': @@ -24572,16 +23712,11 @@ paths: Service.TxEncodeAmino RPC method. - - - Since: cosmos-sdk 0.47 default: description: An unexpected error response. schema: type: object properties: - error: - type: string code: type: integer format: int32 @@ -24592,7 +23727,7 @@ paths: items: type: object properties: - type_url: + '@type': type: string description: >- A URL/resource name that uniquely identifies the type of @@ -24650,12 +23785,7 @@ paths: 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. + additionalProperties: {} description: >- `Any` contains an arbitrary serialized protocol buffer message along with a @@ -24772,6 +23902,11 @@ paths: } parameters: - name: body + description: >- + TxEncodeAminoRequest is the request type for the + Service.TxEncodeAmino + + RPC method. in: body required: true schema: @@ -24784,9 +23919,6 @@ paths: Service.TxEncodeAmino RPC method. - - - Since: cosmos-sdk 0.47 tags: - Service /cosmos/tx/v1beta1/simulate: @@ -24854,6 +23986,7 @@ paths: type: string index: type: boolean + title: nondeterministic description: >- EventAttribute is a single key-value pair, associated with an event. @@ -24863,6 +23996,11 @@ paths: ResponseFinalizeBlock and ResponseCheckTx. + Up to 0.37, this could also be used in + ResponseBeginBlock, ResponseEndBlock, + + and ResponseDeliverTx. + Later, transactions may be queried using these events. description: >- Events contains a slice of Event objects that were emitted @@ -24874,7 +24012,7 @@ paths: items: type: object properties: - type_url: + '@type': type: string description: >- A URL/resource name that uniquely identifies the @@ -24932,12 +24070,7 @@ paths: 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. + additionalProperties: {} description: >- `Any` contains an arbitrary serialized protocol buffer message along with a @@ -25057,9 +24190,6 @@ paths: description: >- msg_responses contains the Msg handler responses type packed in Anys. - - - Since: cosmos-sdk 0.46 description: |- SimulateResponse is the response type for the Service.SimulateRPC method. @@ -25068,8 +24198,6 @@ paths: schema: type: object properties: - error: - type: string code: type: integer format: int32 @@ -25080,7 +24208,7 @@ paths: items: type: object properties: - type_url: + '@type': type: string description: >- A URL/resource name that uniquely identifies the type of @@ -25138,12 +24266,7 @@ paths: 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. + additionalProperties: {} description: >- `Any` contains an arbitrary serialized protocol buffer message along with a @@ -25260,6 +24383,9 @@ paths: } parameters: - name: body + description: |- + SimulateRequest is the request type for the Service.Simulate + RPC method. in: body required: true schema: @@ -25280,8 +24406,6 @@ paths: schema: type: object properties: - error: - type: string code: type: integer format: int32 @@ -25292,7 +24416,7 @@ paths: items: type: object properties: - type_url: + '@type': type: string description: >- A URL/resource name that uniquely identifies the type of @@ -25350,12 +24474,7 @@ paths: 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. + additionalProperties: {} description: >- `Any` contains an arbitrary serialized protocol buffer message along with a @@ -25535,9 +24654,6 @@ paths: description: >- reverse is set to true if results are to be returned in the descending order. - - - Since: cosmos-sdk 0.43 in: query required: false type: boolean @@ -25579,9 +24695,6 @@ paths: Tendermint's TxSearch RPC method. The query must be valid. - - - Since cosmos-sdk 0.50 in: query required: false type: string @@ -25597,6 +24710,7 @@ paths: type: object properties: tx_response: + description: tx_response is the queried TxResponses. type: object properties: height: @@ -25683,9 +24797,10 @@ paths: format: int64 description: Amount of gas consumed by transaction. tx: + description: The request transaction bytes. type: object properties: - type_url: + '@type': type: string description: >- A URL/resource name that uniquely identifies the type @@ -25743,126 +24858,7 @@ paths: 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" - } + additionalProperties: {} timestamp: type: string description: >- @@ -25891,6 +24887,7 @@ paths: type: string index: type: boolean + title: nondeterministic description: >- EventAttribute is a single key-value pair, associated with an event. @@ -25900,6 +24897,11 @@ paths: ResponseFinalizeBlock and ResponseCheckTx. + Up to 0.37, this could also be used in + ResponseBeginBlock, ResponseEndBlock, + + and ResponseDeliverTx. + Later, transactions may be queried using these events. description: >- Events defines all the events emitted by processing a @@ -25916,11 +24918,6 @@ paths: Since: cosmos-sdk 0.42.11, 0.44.5, 0.45 - description: >- - TxResponse defines a structure containing relevant tx data and - metadata. The - - tags are stringified and the log is JSON decoded. description: |- BroadcastTxResponse is the response type for the Service.BroadcastTx method. @@ -25929,8 +24926,6 @@ paths: schema: type: object properties: - error: - type: string code: type: integer format: int32 @@ -25941,7 +24936,7 @@ paths: items: type: object properties: - type_url: + '@type': type: string description: >- A URL/resource name that uniquely identifies the type of @@ -25999,12 +24994,7 @@ paths: 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. + additionalProperties: {} description: >- `Any` contains an arbitrary serialized protocol buffer message along with a @@ -26121,6 +25111,11 @@ paths: } parameters: - name: body + description: >- + BroadcastTxRequest is the request type for the + Service.BroadcastTxRequest + + RPC method. in: body required: true schema: @@ -26162,7 +25157,6 @@ paths: /cosmos/tx/v1beta1/txs/block/{height}: get: summary: GetBlockWithTxs fetches a block with decoded txs. - description: 'Since: cosmos-sdk 0.45.2' operationId: GetBlockWithTxs responses: '200': @@ -26174,8 +25168,6 @@ paths: schema: type: object properties: - error: - type: string code: type: integer format: int32 @@ -26186,7 +25178,7 @@ paths: items: type: object properties: - type_url: + '@type': type: string description: >- A URL/resource name that uniquely identifies the type of @@ -26244,12 +25236,7 @@ paths: 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. + additionalProperties: {} description: >- `Any` contains an arbitrary serialized protocol buffer message along with a @@ -26421,9 +25408,6 @@ paths: description: >- reverse is set to true if results are to be returned in the descending order. - - - Since: cosmos-sdk 0.43 in: query required: false type: boolean @@ -26443,8 +25427,6 @@ paths: schema: type: object properties: - error: - type: string code: type: integer format: int32 @@ -26455,7 +25437,7 @@ paths: items: type: object properties: - type_url: + '@type': type: string description: >- A URL/resource name that uniquely identifies the type of @@ -26513,12 +25495,7 @@ paths: 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. + additionalProperties: {} description: >- `Any` contains an arbitrary serialized protocol buffer message along with a @@ -26665,8 +25642,6 @@ paths: schema: type: object properties: - error: - type: string code: type: integer format: int32 @@ -26677,7 +25652,7 @@ paths: items: type: object properties: - type_url: + '@type': type: string description: >- A URL/resource name that uniquely identifies the type of @@ -26735,12 +25710,7 @@ paths: 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. + additionalProperties: {} description: >- `Any` contains an arbitrary serialized protocol buffer message along with a @@ -26866,7 +25836,6 @@ paths: /cosmos/upgrade/v1beta1/authority: get: summary: Returns the account with authority to conduct upgrades - description: 'Since: cosmos-sdk 0.46' operationId: Authority responses: '200': @@ -26876,15 +25845,12 @@ paths: properties: address: type: string - description: 'Since: cosmos-sdk 0.46' title: QueryAuthorityResponse is the response type for Query/Authority default: description: An unexpected error response. schema: type: object properties: - error: - type: string code: type: integer format: int32 @@ -26895,7 +25861,7 @@ paths: items: type: object properties: - type_url: + '@type': type: string description: >- A URL/resource name that uniquely identifies the type of @@ -26953,12 +25919,7 @@ paths: 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. + additionalProperties: {} description: >- `Any` contains an arbitrary serialized protocol buffer message along with a @@ -27134,9 +26095,16 @@ paths: such as a git commit that validators could automatically upgrade to upgraded_client_state: + description: >- + Deprecated: UpgradedClientState field has been deprecated. + IBC upgrade logic has been + + moved to the IBC module in the sub module 02-client. + + If this field is not empty, an error will be thrown. type: object properties: - type_url: + '@type': type: string description: >- A URL/resource name that uniquely identifies the type @@ -27194,126 +26162,7 @@ paths: 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" - } + additionalProperties: {} description: >- QueryCurrentPlanResponse is the response type for the Query/CurrentPlan RPC @@ -27324,8 +26173,6 @@ paths: schema: type: object properties: - error: - type: string code: type: integer format: int32 @@ -27336,7 +26183,7 @@ paths: items: type: object properties: - type_url: + '@type': type: string description: >- A URL/resource name that uniquely identifies the type of @@ -27394,12 +26241,7 @@ paths: 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. + additionalProperties: {} description: >- `Any` contains an arbitrary serialized protocol buffer message along with a @@ -27519,7 +26361,6 @@ paths: /cosmos/upgrade/v1beta1/module_versions: get: summary: ModuleVersions queries the list of module versions from state. - description: 'Since: cosmos-sdk 0.43' operationId: ModuleVersions responses: '200': @@ -27539,10 +26380,7 @@ paths: type: string format: uint64 title: consensus version of the app module - description: |- - ModuleVersion specifies a module and its consensus version. - - Since: cosmos-sdk 0.43 + description: ModuleVersion specifies a module and its consensus version. description: >- module_versions is a list of module names with their consensus versions. @@ -27551,16 +26389,11 @@ paths: Query/ModuleVersions RPC method. - - - Since: cosmos-sdk 0.43 default: description: An unexpected error response. schema: type: object properties: - error: - type: string code: type: integer format: int32 @@ -27571,7 +26404,7 @@ paths: items: type: object properties: - type_url: + '@type': type: string description: >- A URL/resource name that uniquely identifies the type of @@ -27629,12 +26462,7 @@ paths: 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. + additionalProperties: {} description: >- `Any` contains an arbitrary serialized protocol buffer message along with a @@ -27754,7 +26582,7 @@ paths: description: |- module_name is a field to query a specific module consensus version from state. Leaving this empty will - fetch the full list of module versions from state. + fetch the full list of module versions from state in: query required: false type: string @@ -27784,7 +26612,6 @@ paths: upgraded_consensus_state: type: string format: byte - title: 'Since: cosmos-sdk 0.43' description: >- QueryUpgradedConsensusStateResponse is the response type for the Query/UpgradedConsensusState @@ -27795,8 +26622,6 @@ paths: schema: type: object properties: - error: - type: string code: type: integer format: int32 @@ -27807,7 +26632,7 @@ paths: items: type: object properties: - type_url: + '@type': type: string description: >- A URL/resource name that uniquely identifies the type of @@ -27865,12 +26690,7 @@ paths: 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. + additionalProperties: {} description: >- `Any` contains an arbitrary serialized protocol buffer message along with a @@ -28014,7 +26834,7 @@ paths: authorization: type: object properties: - type_url: + '@type': type: string description: >- A URL/resource name that uniquely identifies the @@ -28072,12 +26892,7 @@ paths: 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. + additionalProperties: {} description: >- `Any` contains an arbitrary serialized protocol buffer message along with a @@ -28238,8 +27053,6 @@ paths: schema: type: object properties: - error: - type: string code: type: integer format: int32 @@ -28250,7 +27063,7 @@ paths: items: type: object properties: - type_url: + '@type': type: string description: >- A URL/resource name that uniquely identifies the type of @@ -28308,12 +27121,7 @@ paths: 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. + additionalProperties: {} description: >- `Any` contains an arbitrary serialized protocol buffer message along with a @@ -28494,9 +27302,6 @@ paths: description: >- reverse is set to true if results are to be returned in the descending order. - - - Since: cosmos-sdk 0.43 in: query required: false type: boolean @@ -28505,7 +27310,6 @@ paths: /cosmos/authz/v1beta1/grants/grantee/{grantee}: get: summary: GranteeGrants returns a list of `GrantAuthorization` by grantee. - description: 'Since: cosmos-sdk 0.46' operationId: GranteeGrants responses: '200': @@ -28525,7 +27329,7 @@ paths: authorization: type: object properties: - type_url: + '@type': type: string description: >- A URL/resource name that uniquely identifies the @@ -28583,12 +27387,7 @@ paths: 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. + additionalProperties: {} description: >- `Any` contains an arbitrary serialized protocol buffer message along with a @@ -28741,8 +27540,6 @@ paths: schema: type: object properties: - error: - type: string code: type: integer format: int32 @@ -28753,7 +27550,7 @@ paths: items: type: object properties: - type_url: + '@type': type: string description: >- A URL/resource name that uniquely identifies the type of @@ -28811,12 +27608,7 @@ paths: 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. + additionalProperties: {} description: >- `Any` contains an arbitrary serialized protocol buffer message along with a @@ -28986,9 +27778,6 @@ paths: description: >- reverse is set to true if results are to be returned in the descending order. - - - Since: cosmos-sdk 0.43 in: query required: false type: boolean @@ -28997,7 +27786,6 @@ paths: /cosmos/authz/v1beta1/grants/granter/{granter}: get: summary: GranterGrants returns list of `GrantAuthorization`, granted by granter. - description: 'Since: cosmos-sdk 0.46' operationId: GranterGrants responses: '200': @@ -29017,7 +27805,7 @@ paths: authorization: type: object properties: - type_url: + '@type': type: string description: >- A URL/resource name that uniquely identifies the @@ -29075,12 +27863,7 @@ paths: 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. + additionalProperties: {} description: >- `Any` contains an arbitrary serialized protocol buffer message along with a @@ -29233,8 +28016,6 @@ paths: schema: type: object properties: - error: - type: string code: type: integer format: int32 @@ -29245,7 +28026,7 @@ paths: items: type: object properties: - type_url: + '@type': type: string description: >- A URL/resource name that uniquely identifies the type of @@ -29303,12 +28084,7 @@ paths: 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. + additionalProperties: {} description: >- `Any` contains an arbitrary serialized protocol buffer message along with a @@ -29478,9 +28254,6 @@ paths: description: >- reverse is set to true if results are to be returned in the descending order. - - - Since: cosmos-sdk 0.43 in: query required: false type: boolean @@ -29516,7 +28289,7 @@ paths: allowance. type: object properties: - type_url: + '@type': type: string description: >- A URL/resource name that uniquely identifies the type @@ -29574,12 +28347,7 @@ paths: 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. + additionalProperties: {} title: >- Grant is stored in the KVStore to record a grant with full context @@ -29591,8 +28359,6 @@ paths: schema: type: object properties: - error: - type: string code: type: integer format: int32 @@ -29603,7 +28369,7 @@ paths: items: type: object properties: - type_url: + '@type': type: string description: >- A URL/resource name that uniquely identifies the type of @@ -29661,12 +28427,7 @@ paths: 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. + additionalProperties: {} description: >- `Any` contains an arbitrary serialized protocol buffer message along with a @@ -29829,7 +28590,7 @@ paths: allowance. type: object properties: - type_url: + '@type': type: string description: >- A URL/resource name that uniquely identifies the @@ -29887,12 +28648,7 @@ paths: 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. + additionalProperties: {} title: >- Grant is stored in the KVStore to record a grant with full context @@ -29924,8 +28680,6 @@ paths: schema: type: object properties: - error: - type: string code: type: integer format: int32 @@ -29936,7 +28690,7 @@ paths: items: type: object properties: - type_url: + '@type': type: string description: >- A URL/resource name that uniquely identifies the type of @@ -29994,12 +28748,7 @@ paths: 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. + additionalProperties: {} description: >- `Any` contains an arbitrary serialized protocol buffer message along with a @@ -30169,9 +28918,6 @@ paths: description: >- reverse is set to true if results are to be returned in the descending order. - - - Since: cosmos-sdk 0.43 in: query required: false type: boolean @@ -30180,7 +28926,6 @@ paths: /cosmos/feegrant/v1beta1/issued/{granter}: get: summary: AllowancesByGranter returns all the grants given by an address - description: 'Since: cosmos-sdk 0.46' operationId: AllowancesByGranter responses: '200': @@ -30209,7 +28954,7 @@ paths: allowance. type: object properties: - type_url: + '@type': type: string description: >- A URL/resource name that uniquely identifies the @@ -30267,12 +29012,7 @@ paths: 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. + additionalProperties: {} title: >- Grant is stored in the KVStore to record a grant with full context @@ -30299,16 +29039,11 @@ paths: description: >- QueryAllowancesByGranterResponse is the response type for the Query/AllowancesByGranter RPC method. - - - Since: cosmos-sdk 0.46 default: description: An unexpected error response. schema: type: object properties: - error: - type: string code: type: integer format: int32 @@ -30319,7 +29054,7 @@ paths: items: type: object properties: - type_url: + '@type': type: string description: >- A URL/resource name that uniquely identifies the type of @@ -30377,12 +29112,7 @@ paths: 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. + additionalProperties: {} description: >- `Any` contains an arbitrary serialized protocol buffer message along with a @@ -30552,9 +29282,6 @@ paths: description: >- reverse is set to true if results are to be returned in the descending order. - - - Since: cosmos-sdk 0.43 in: query required: false type: boolean @@ -30565,7 +29292,6 @@ paths: summary: >- BalancebyQueryString queries the number of NFTs of a given class owned by the owner, same as balanceOf in ERC721 - description: 'Since: nft v0.1.1' operationId: BalanceByQueryString responses: '200': @@ -30579,7 +29305,6 @@ paths: title: >- amount is the number of all NFTs of a given class owned by the owner - description: 'Since: nft v0.1.1' title: >- QueryBalanceByQueryStringResponse is the response type for the Query/Balance RPC method @@ -30588,8 +29313,228 @@ paths: schema: type: object properties: - error: + code: + type: integer + format: int32 + message: + type: string + details: + type: array + items: + type: object + properties: + '@type': + 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. + additionalProperties: {} + 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" + } + parameters: + - name: class_id + description: class_id associated with the nft + in: query + required: false + type: string + - name: owner + description: owner is the owner address of the nft + in: query + required: false + type: string + tags: + - Query + /cosmos/nft/v1beta1/balance/{owner}/{class_id}: + get: + summary: >- + Balance queries the number of NFTs of a given class owned by the owner, + same as balanceOf in ERC721 + operationId: NftBalance + responses: + '200': + description: A successful response. + schema: + type: object + properties: + amount: type: string + format: uint64 + title: >- + amount is the number of all NFTs of a given class owned by the + owner + title: >- + QueryBalanceResponse is the response type for the Query/Balance + RPC method + default: + description: An unexpected error response. + schema: + type: object + properties: code: type: integer format: int32 @@ -30600,7 +29545,7 @@ paths: items: type: object properties: - type_url: + '@type': type: string description: >- A URL/resource name that uniquely identifies the type of @@ -30658,241 +29603,7 @@ paths: 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" - } - parameters: - - name: class_id - description: class_id associated with the nft. - in: query - required: false - type: string - - name: owner - description: owner is the owner address of the nft. - in: query - required: false - type: string - tags: - - Query - /cosmos/nft/v1beta1/balance/{owner}/{class_id}: - get: - summary: >- - Balance queries the number of NFTs of a given class owned by the owner, - same as balanceOf in ERC721 - operationId: NftBalance - responses: - '200': - description: A successful response. - schema: - type: object - properties: - amount: - type: string - format: uint64 - title: >- - amount is the number of all NFTs of a given class owned by the - owner - title: >- - QueryBalanceResponse is the response type for the Query/Balance - 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. + additionalProperties: {} description: >- `Any` contains an arbitrary serialized protocol buffer message along with a @@ -31023,7 +29734,6 @@ paths: /cosmos/nft/v1beta1/class: get: summary: Class queries an NFT class based on its id - description: 'Since: nft v0.1.1' operationId: ClassByQueryString responses: '200': @@ -31066,9 +29776,12 @@ paths: uri_hash is a hash of the document pointed by uri. Optional data: + title: >- + data is the app specific metadata of the NFT class. + Optional type: object properties: - type_url: + '@type': type: string description: >- A URL/resource name that uniquely identifies the type @@ -31126,12 +29839,7 @@ paths: 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. + additionalProperties: {} description: >- `Any` contains an arbitrary serialized protocol buffer message along with a @@ -31246,10 +29954,6 @@ paths: "@type": "type.googleapis.com/google.protobuf.Duration", "value": "1.212s" } - title: >- - data is the app specific metadata of the NFT class. - Optional - description: 'Since: nft v0.1.1' title: >- QueryClassByQueryStringResponse is the response type for the Query/Class RPC method @@ -31258,8 +29962,6 @@ paths: schema: type: object properties: - error: - type: string code: type: integer format: int32 @@ -31270,7 +29972,7 @@ paths: items: type: object properties: - type_url: + '@type': type: string description: >- A URL/resource name that uniquely identifies the type of @@ -31328,12 +30030,7 @@ paths: 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. + additionalProperties: {} description: >- `Any` contains an arbitrary serialized protocol buffer message along with a @@ -31450,7 +30147,7 @@ paths: } parameters: - name: class_id - description: class_id associated with the nft. + description: class_id associated with the nft in: query required: false type: string @@ -31504,9 +30201,12 @@ paths: uri_hash is a hash of the document pointed by uri. Optional data: + title: >- + data is the app specific metadata of the NFT class. + Optional type: object properties: - type_url: + '@type': type: string description: >- A URL/resource name that uniquely identifies the @@ -31564,12 +30264,7 @@ paths: 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. + additionalProperties: {} description: >- `Any` contains an arbitrary serialized protocol buffer message along with a @@ -31686,9 +30381,6 @@ paths: "@type": "type.googleapis.com/google.protobuf.Duration", "value": "1.212s" } - title: >- - data is the app specific metadata of the NFT class. - Optional description: Class defines the class of the nft type. description: class defines the class of the nft type. pagination: @@ -31718,8 +30410,6 @@ paths: schema: type: object properties: - error: - type: string code: type: integer format: int32 @@ -31730,7 +30420,7 @@ paths: items: type: object properties: - type_url: + '@type': type: string description: >- A URL/resource name that uniquely identifies the type of @@ -31788,12 +30478,7 @@ paths: 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. + additionalProperties: {} description: >- `Any` contains an arbitrary serialized protocol buffer message along with a @@ -31959,9 +30644,6 @@ paths: description: >- reverse is set to true if results are to be returned in the descending order. - - - Since: cosmos-sdk 0.43 in: query required: false type: boolean @@ -31978,6 +30660,7 @@ paths: type: object properties: class: + description: class defines the class of the nft type. type: object properties: id: @@ -32011,9 +30694,12 @@ paths: uri_hash is a hash of the document pointed by uri. Optional data: + title: >- + data is the app specific metadata of the NFT class. + Optional type: object properties: - type_url: + '@type': type: string description: >- A URL/resource name that uniquely identifies the type @@ -32071,12 +30757,7 @@ paths: 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. + additionalProperties: {} description: >- `Any` contains an arbitrary serialized protocol buffer message along with a @@ -32191,10 +30872,6 @@ paths: "@type": "type.googleapis.com/google.protobuf.Duration", "value": "1.212s" } - title: >- - data is the app specific metadata of the NFT class. - Optional - description: Class defines the class of the nft type. title: >- QueryClassResponse is the response type for the Query/Class RPC method @@ -32203,8 +30880,6 @@ paths: schema: type: object properties: - error: - type: string code: type: integer format: int32 @@ -32215,7 +30890,7 @@ paths: items: type: object properties: - type_url: + '@type': type: string description: >- A URL/resource name that uniquely identifies the type of @@ -32273,12 +30948,7 @@ paths: 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. + additionalProperties: {} description: >- `Any` contains an arbitrary serialized protocol buffer message along with a @@ -32404,7 +31074,6 @@ paths: /cosmos/nft/v1beta1/nft: get: summary: NFTByQueryString queries an NFT based on its class and id. - description: 'Since: nft v0.1.1' operationId: NFTByQueryString responses: '200': @@ -32431,9 +31100,10 @@ paths: type: string title: uri_hash is a hash of the document pointed by uri data: + title: data is an app specific data of the NFT. Optional type: object properties: - type_url: + '@type': type: string description: >- A URL/resource name that uniquely identifies the type @@ -32491,12 +31161,7 @@ paths: 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. + additionalProperties: {} description: >- `Any` contains an arbitrary serialized protocol buffer message along with a @@ -32611,9 +31276,7 @@ paths: "@type": "type.googleapis.com/google.protobuf.Duration", "value": "1.212s" } - title: data is an app specific data of the NFT. Optional description: NFT defines the NFT. - description: 'Since: nft v0.1.1' title: >- QueryNFTByQueryStringResponse is the response type for the Query/NFT RPC method @@ -32622,8 +31285,6 @@ paths: schema: type: object properties: - error: - type: string code: type: integer format: int32 @@ -32634,7 +31295,7 @@ paths: items: type: object properties: - type_url: + '@type': type: string description: >- A URL/resource name that uniquely identifies the type of @@ -32692,12 +31353,7 @@ paths: 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. + additionalProperties: {} description: >- `Any` contains an arbitrary serialized protocol buffer message along with a @@ -32814,12 +31470,12 @@ paths: } parameters: - name: class_id - description: class_id associated with the nft. + description: class_id associated with the nft in: query required: false type: string - name: id - description: id is a unique identifier of the NFT. + description: id is a unique identifier of the NFT in: query required: false type: string @@ -32859,9 +31515,10 @@ paths: type: string title: uri_hash is a hash of the document pointed by uri data: + title: data is an app specific data of the NFT. Optional type: object properties: - type_url: + '@type': type: string description: >- A URL/resource name that uniquely identifies the @@ -32919,12 +31576,7 @@ paths: 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. + additionalProperties: {} description: >- `Any` contains an arbitrary serialized protocol buffer message along with a @@ -33041,7 +31693,6 @@ paths: "@type": "type.googleapis.com/google.protobuf.Duration", "value": "1.212s" } - title: data is an app specific data of the NFT. Optional description: NFT defines the NFT. title: NFT defines the NFT pagination: @@ -33071,8 +31722,6 @@ paths: schema: type: object properties: - error: - type: string code: type: integer format: int32 @@ -33083,7 +31732,7 @@ paths: items: type: object properties: - type_url: + '@type': type: string description: >- A URL/resource name that uniquely identifies the type of @@ -33141,12 +31790,7 @@ paths: 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. + additionalProperties: {} description: >- `Any` contains an arbitrary serialized protocol buffer message along with a @@ -33263,12 +31907,12 @@ paths: } parameters: - name: class_id - description: class_id associated with the nft. + description: class_id associated with the nft in: query required: false type: string - name: owner - description: owner is the owner address of the nft. + description: owner is the owner address of the nft in: query required: false type: string @@ -33322,9 +31966,6 @@ paths: description: >- reverse is set to true if results are to be returned in the descending order. - - - Since: cosmos-sdk 0.43 in: query required: false type: boolean @@ -33341,6 +31982,7 @@ paths: type: object properties: nft: + title: owner is the owner address of the nft type: object properties: class_id: @@ -33358,9 +32000,10 @@ paths: type: string title: uri_hash is a hash of the document pointed by uri data: + title: data is an app specific data of the NFT. Optional type: object properties: - type_url: + '@type': type: string description: >- A URL/resource name that uniquely identifies the type @@ -33418,12 +32061,7 @@ paths: 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. + additionalProperties: {} description: >- `Any` contains an arbitrary serialized protocol buffer message along with a @@ -33538,17 +32176,232 @@ paths: "@type": "type.googleapis.com/google.protobuf.Duration", "value": "1.212s" } - title: data is an app specific data of the NFT. Optional description: NFT defines the NFT. - title: owner is the owner address of the nft title: QueryNFTResponse is the response type for the Query/NFT RPC method default: description: An unexpected error response. schema: type: object properties: - error: + code: + type: integer + format: int32 + message: + type: string + details: + type: array + items: + type: object + properties: + '@type': + 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. + additionalProperties: {} + 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" + } + parameters: + - name: class_id + description: class_id associated with the nft + in: path + required: true + type: string + - name: id + description: id is a unique identifier of the NFT + in: path + required: true + type: string + tags: + - Query + /cosmos/nft/v1beta1/owner: + get: + summary: >- + OwnerByQueryString queries the owner of the NFT based on its class and + id, same as ownerOf in ERC721 + operationId: OwnerByQueryString + responses: + '200': + description: A successful response. + schema: + type: object + properties: + owner: type: string + title: owner is the owner address of the nft + title: >- + QueryOwnerByQueryStringResponse is the response type for the + Query/Owner RPC method + default: + description: An unexpected error response. + schema: + type: object + properties: code: type: integer format: int32 @@ -33559,7 +32412,7 @@ paths: items: type: object properties: - type_url: + '@type': type: string description: >- A URL/resource name that uniquely identifies the type of @@ -33617,12 +32470,226 @@ paths: might be used with implementation specific semantics. - value: + additionalProperties: {} + 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" + } + parameters: + - name: class_id + description: class_id associated with the nft + in: query + required: false + type: string + - name: id + description: id is a unique identifier of the NFT + in: query + required: false + type: string + tags: + - Query + /cosmos/nft/v1beta1/owner/{class_id}/{id}: + get: + summary: >- + Owner queries the owner of the NFT based on its class and id, same as + ownerOf in ERC721 + operationId: Owner + responses: + '200': + description: A successful response. + schema: + type: object + properties: + owner: + type: string + title: owner is the owner address of the nft + title: >- + QueryOwnerResponse is the response type for the Query/Owner RPC + method + default: + description: An unexpected error response. + schema: + type: object + properties: + code: + type: integer + format: int32 + message: + type: string + details: + type: array + items: + type: object + properties: + '@type': type: string - format: byte description: >- - Must be a valid serialized protocol buffer of the above - specified type. + 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. + additionalProperties: {} description: >- `Any` contains an arbitrary serialized protocol buffer message along with a @@ -33750,33 +32817,30 @@ paths: type: string tags: - Query - /cosmos/nft/v1beta1/owner: + /cosmos/nft/v1beta1/supply: get: summary: >- - OwnerByQueryString queries the owner of the NFT based on its class and - id, same as ownerOf in ERC721 - description: 'Since: nft v0.1.1' - operationId: OwnerByQueryString + SupplyByQueryString queries the number of NFTs from the given class, + same as totalSupply of ERC721. + operationId: SupplyByQueryString responses: '200': description: A successful response. schema: type: object properties: - owner: + amount: type: string - title: owner is the owner address of the nft - description: 'Since: nft v0.1.1' + format: uint64 + title: amount is the number of all NFTs from the given class title: >- - QueryOwnerByQueryStringResponse is the response type for the - Query/Owner RPC method + QuerySupplyByQueryStringResponse is the response type for the + Query/Supply RPC method default: description: An unexpected error response. schema: type: object properties: - error: - type: string code: type: integer format: int32 @@ -33787,7 +32851,7 @@ paths: items: type: object properties: - type_url: + '@type': type: string description: >- A URL/resource name that uniquely identifies the type of @@ -33845,12 +32909,7 @@ paths: 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. + additionalProperties: {} description: >- `Any` contains an arbitrary serialized protocol buffer message along with a @@ -33967,42 +33026,36 @@ paths: } parameters: - name: class_id - description: class_id associated with the nft. - in: query - required: false - type: string - - name: id - description: id is a unique identifier of the NFT. + description: class_id associated with the nft in: query required: false type: string tags: - Query - /cosmos/nft/v1beta1/owner/{class_id}/{id}: + /cosmos/nft/v1beta1/supply/{class_id}: get: summary: >- - Owner queries the owner of the NFT based on its class and id, same as - ownerOf in ERC721 - operationId: Owner + Supply queries the number of NFTs from the given class, same as + totalSupply of ERC721. + operationId: Supply responses: '200': description: A successful response. schema: type: object properties: - owner: + amount: type: string - title: owner is the owner address of the nft + format: uint64 + title: amount is the number of all NFTs from the given class title: >- - QueryOwnerResponse is the response type for the Query/Owner RPC + QuerySupplyResponse is the response type for the Query/Supply RPC method default: description: An unexpected error response. schema: type: object properties: - error: - type: string code: type: integer format: int32 @@ -34013,7 +33066,7 @@ paths: items: type: object properties: - type_url: + '@type': type: string description: >- A URL/resource name that uniquely identifies the type of @@ -34071,463 +33124,7 @@ paths: 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" - } - parameters: - - name: class_id - description: class_id associated with the nft - in: path - required: true - type: string - - name: id - description: id is a unique identifier of the NFT - in: path - required: true - type: string - tags: - - Query - /cosmos/nft/v1beta1/supply: - get: - summary: >- - SupplyByQueryString queries the number of NFTs from the given class, - same as totalSupply of ERC721. - description: 'Since: nft v0.1.1' - operationId: SupplyByQueryString - responses: - '200': - description: A successful response. - schema: - type: object - properties: - amount: - type: string - format: uint64 - title: amount is the number of all NFTs from the given class - description: 'Since: nft v0.1.1' - title: >- - QuerySupplyByQueryStringResponse is the response type for the - Query/Supply 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" - } - parameters: - - name: class_id - description: class_id associated with the nft. - in: query - required: false - type: string - tags: - - Query - /cosmos/nft/v1beta1/supply/{class_id}: - get: - summary: >- - Supply queries the number of NFTs from the given class, same as - totalSupply of ERC721. - operationId: Supply - responses: - '200': - description: A successful response. - schema: - type: object - properties: - amount: - type: string - format: uint64 - title: amount is the number of all NFTs from the given class - title: >- - QuerySupplyResponse is the response type for the Query/Supply 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. + additionalProperties: {} description: >- `Any` contains an arbitrary serialized protocol buffer message along with a @@ -34710,8 +33307,6 @@ paths: schema: type: object properties: - error: - type: string code: type: integer format: int32 @@ -34722,7 +33317,7 @@ paths: items: type: object properties: - type_url: + '@type': type: string description: >- A URL/resource name that uniquely identifies the type of @@ -34780,12 +33375,7 @@ paths: 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. + additionalProperties: {} description: >- `Any` contains an arbitrary serialized protocol buffer message along with a @@ -34982,8 +33572,6 @@ paths: schema: type: object properties: - error: - type: string code: type: integer format: int32 @@ -34994,7 +33582,7 @@ paths: items: type: object properties: - type_url: + '@type': type: string description: >- A URL/resource name that uniquely identifies the type of @@ -35052,12 +33640,7 @@ paths: 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. + additionalProperties: {} description: >- `Any` contains an arbitrary serialized protocol buffer message along with a @@ -35229,9 +33812,6 @@ paths: description: >- reverse is set to true if results are to be returned in the descending order. - - - Since: cosmos-sdk 0.43 in: query required: false type: boolean @@ -35281,9 +33861,12 @@ paths: would create a different result on a running proposal. decision_policy: + description: >- + decision_policy specifies the group policy's decision + policy. type: object properties: - type_url: + '@type': type: string description: >- A URL/resource name that uniquely identifies the @@ -35341,187 +33924,64 @@ paths: 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. + additionalProperties: {} + created_at: + type: string + format: date-time description: >- - `Any` contains an arbitrary serialized protocol buffer - message along with a + created_at is a timestamp specifying when a group policy + was created. + description: >- + GroupPolicyInfo represents the high-level on-chain + information for a group policy. + description: >- + group_policies are the group policies info with provided + admin. + pagination: + description: pagination defines the pagination in the response. + type: object + properties: + next_key: + type: string + format: byte + description: |- + next_key is the key to be passed to PageRequest.key to + query the next page most efficiently. It will be empty if + there are no more results. + total: + type: string + format: uint64 + title: >- + total is total number of results available if + PageRequest.count_total - URL that describes the type of the serialized message. + was set, its value is undefined otherwise + description: >- + QueryGroupPoliciesByAdminResponse is the + Query/GroupPoliciesByAdmin response type. + default: + description: An unexpected error response. + schema: + type: object + properties: + code: + type: integer + format: int32 + message: + type: string + details: + type: array + items: + type: object + properties: + '@type': + type: string + description: >- + A URL/resource name that uniquely identifies the type of + the serialized - - 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" - } - created_at: - type: string - format: date-time - description: >- - created_at is a timestamp specifying when a group policy - was created. - description: >- - GroupPolicyInfo represents the high-level on-chain - information for a group policy. - description: >- - group_policies are the group policies info with provided - admin. - pagination: - description: pagination defines the pagination in the response. - type: object - properties: - next_key: - type: string - format: byte - description: |- - next_key is the key to be passed to PageRequest.key to - query the next page most efficiently. It will be empty if - there are no more results. - total: - type: string - format: uint64 - title: >- - total is total number of results available if - PageRequest.count_total - - was set, its value is undefined otherwise - description: >- - QueryGroupPoliciesByAdminResponse is the - Query/GroupPoliciesByAdmin response type. - 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 + protocol buffer message. This string must contain at + least one "/" character. The last segment of the URL's path must represent @@ -35572,12 +34032,7 @@ paths: 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. + additionalProperties: {} description: >- `Any` contains an arbitrary serialized protocol buffer message along with a @@ -35748,9 +34203,6 @@ paths: description: >- reverse is set to true if results are to be returned in the descending order. - - - Since: cosmos-sdk 0.43 in: query required: false type: boolean @@ -35800,9 +34252,12 @@ paths: would create a different result on a running proposal. decision_policy: + description: >- + decision_policy specifies the group policy's decision + policy. type: object properties: - type_url: + '@type': type: string description: >- A URL/resource name that uniquely identifies the @@ -35860,128 +34315,7 @@ paths: 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" - } + additionalProperties: {} created_at: type: string format: date-time @@ -36021,8 +34355,6 @@ paths: schema: type: object properties: - error: - type: string code: type: integer format: int32 @@ -36033,7 +34365,7 @@ paths: items: type: object properties: - type_url: + '@type': type: string description: >- A URL/resource name that uniquely identifies the type of @@ -36091,12 +34423,7 @@ paths: 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. + additionalProperties: {} description: >- `Any` contains an arbitrary serialized protocol buffer message along with a @@ -36268,9 +34595,6 @@ paths: description: >- reverse is set to true if results are to be returned in the descending order. - - - Since: cosmos-sdk 0.43 in: query required: false type: boolean @@ -36289,6 +34613,7 @@ paths: type: object properties: info: + description: info is the GroupPolicyInfo of the group policy. type: object properties: address: @@ -36320,9 +34645,12 @@ paths: would create a different result on a running proposal. decision_policy: + description: >- + decision_policy specifies the group policy's decision + policy. type: object properties: - type_url: + '@type': type: string description: >- A URL/resource name that uniquely identifies the type @@ -36380,135 +34708,13 @@ paths: 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" - } + additionalProperties: {} created_at: type: string format: date-time description: >- created_at is a timestamp specifying when a group policy was created. - description: >- - GroupPolicyInfo represents the high-level on-chain information - for a group policy. description: >- QueryGroupPolicyInfoResponse is the Query/GroupPolicyInfo response type. @@ -36517,8 +34723,6 @@ paths: schema: type: object properties: - error: - type: string code: type: integer format: int32 @@ -36529,7 +34733,7 @@ paths: items: type: object properties: - type_url: + '@type': type: string description: >- A URL/resource name that uniquely identifies the type of @@ -36587,12 +34791,7 @@ paths: 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. + additionalProperties: {} description: >- `Any` contains an arbitrary serialized protocol buffer message along with a @@ -36718,7 +34917,6 @@ paths: /cosmos/group/v1/groups: get: summary: Groups queries all groups in state. - description: 'Since: cosmos-sdk 0.47.1' operationId: Groups responses: '200': @@ -36794,17 +34992,12 @@ paths: PageRequest.count_total was set, its value is undefined otherwise - description: |- - QueryGroupsResponse is the Query/Groups response type. - - Since: cosmos-sdk 0.47.1 + description: QueryGroupsResponse is the Query/Groups response type. default: description: An unexpected error response. schema: type: object properties: - error: - type: string code: type: integer format: int32 @@ -36815,7 +35008,7 @@ paths: items: type: object properties: - type_url: + '@type': type: string description: >- A URL/resource name that uniquely identifies the type of @@ -36873,12 +35066,7 @@ paths: 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. + additionalProperties: {} description: >- `Any` contains an arbitrary serialized protocol buffer message along with a @@ -37044,9 +35232,6 @@ paths: description: >- reverse is set to true if results are to be returned in the descending order. - - - Since: cosmos-sdk 0.43 in: query required: false type: boolean @@ -37138,8 +35323,6 @@ paths: schema: type: object properties: - error: - type: string code: type: integer format: int32 @@ -37150,7 +35333,7 @@ paths: items: type: object properties: - type_url: + '@type': type: string description: >- A URL/resource name that uniquely identifies the type of @@ -37208,12 +35391,7 @@ paths: 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. + additionalProperties: {} description: >- `Any` contains an arbitrary serialized protocol buffer message along with a @@ -37384,9 +35562,6 @@ paths: description: >- reverse is set to true if results are to be returned in the descending order. - - - Since: cosmos-sdk 0.43 in: query required: false type: boolean @@ -37478,8 +35653,6 @@ paths: schema: type: object properties: - error: - type: string code: type: integer format: int32 @@ -37490,7 +35663,7 @@ paths: items: type: object properties: - type_url: + '@type': type: string description: >- A URL/resource name that uniquely identifies the type of @@ -37548,12 +35721,7 @@ paths: 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. + additionalProperties: {} description: >- `Any` contains an arbitrary serialized protocol buffer message along with a @@ -37724,9 +35892,6 @@ paths: description: >- reverse is set to true if results are to be returned in the descending order. - - - Since: cosmos-sdk 0.43 in: query required: false type: boolean @@ -37869,7 +36034,7 @@ paths: items: type: object properties: - type_url: + '@type': type: string description: >- A URL/resource name that uniquely identifies the @@ -37927,12 +36092,7 @@ paths: 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. + additionalProperties: {} description: >- `Any` contains an arbitrary serialized protocol buffer message along with a @@ -38054,11 +36214,9 @@ paths: the proposal passes. title: type: string - description: 'Since: cosmos-sdk 0.47' title: title is the title of the proposal summary: type: string - description: 'Since: cosmos-sdk 0.47' title: summary is a short summary of the proposal description: QueryProposalResponse is the Query/Proposal response type. default: @@ -38066,8 +36224,6 @@ paths: schema: type: object properties: - error: - type: string code: type: integer format: int32 @@ -38078,7 +36234,7 @@ paths: items: type: object properties: - type_url: + '@type': type: string description: >- A URL/resource name that uniquely identifies the type of @@ -38136,12 +36292,7 @@ paths: 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. + additionalProperties: {} description: >- `Any` contains an arbitrary serialized protocol buffer message along with a @@ -38307,8 +36458,6 @@ paths: schema: type: object properties: - error: - type: string code: type: integer format: int32 @@ -38319,7 +36468,7 @@ paths: items: type: object properties: - type_url: + '@type': type: string description: >- A URL/resource name that uniquely identifies the type of @@ -38377,12 +36526,7 @@ paths: 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. + additionalProperties: {} description: >- `Any` contains an arbitrary serialized protocol buffer message along with a @@ -38646,7 +36790,7 @@ paths: items: type: object properties: - type_url: + '@type': type: string description: >- A URL/resource name that uniquely identifies the @@ -38704,12 +36848,7 @@ paths: 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. + additionalProperties: {} description: >- `Any` contains an arbitrary serialized protocol buffer message along with a @@ -38831,11 +36970,9 @@ paths: if the proposal passes. title: type: string - description: 'Since: cosmos-sdk 0.47' title: title is the title of the proposal summary: type: string - description: 'Since: cosmos-sdk 0.47' title: summary is a short summary of the proposal description: >- Proposal defines a group proposal. Any member of a group can @@ -38876,8 +37013,6 @@ paths: schema: type: object properties: - error: - type: string code: type: integer format: int32 @@ -38888,7 +37023,7 @@ paths: items: type: object properties: - type_url: + '@type': type: string description: >- A URL/resource name that uniquely identifies the type of @@ -38946,12 +37081,7 @@ paths: 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. + additionalProperties: {} description: >- `Any` contains an arbitrary serialized protocol buffer message along with a @@ -39124,9 +37254,6 @@ paths: description: >- reverse is set to true if results are to be returned in the descending order. - - - Since: cosmos-sdk 0.43 in: query required: false type: boolean @@ -39184,8 +37311,6 @@ paths: schema: type: object properties: - error: - type: string code: type: integer format: int32 @@ -39196,7 +37321,7 @@ paths: items: type: object properties: - type_url: + '@type': type: string description: >- A URL/resource name that uniquely identifies the type of @@ -39254,12 +37379,7 @@ paths: 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. + additionalProperties: {} description: >- `Any` contains an arbitrary serialized protocol buffer message along with a @@ -39463,8 +37583,6 @@ paths: schema: type: object properties: - error: - type: string code: type: integer format: int32 @@ -39475,7 +37593,7 @@ paths: items: type: object properties: - type_url: + '@type': type: string description: >- A URL/resource name that uniquely identifies the type of @@ -39533,12 +37651,7 @@ paths: 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. + additionalProperties: {} description: >- `Any` contains an arbitrary serialized protocol buffer message along with a @@ -39710,9 +37823,6 @@ paths: description: >- reverse is set to true if results are to be returned in the descending order. - - - Since: cosmos-sdk 0.43 in: query required: false type: boolean @@ -39791,8 +37901,6 @@ paths: schema: type: object properties: - error: - type: string code: type: integer format: int32 @@ -39803,7 +37911,7 @@ paths: items: type: object properties: - type_url: + '@type': type: string description: >- A URL/resource name that uniquely identifies the type of @@ -39861,12 +37969,7 @@ paths: 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. + additionalProperties: {} description: >- `Any` contains an arbitrary serialized protocol buffer message along with a @@ -40037,9 +38140,6 @@ paths: description: >- reverse is set to true if results are to be returned in the descending order. - - - Since: cosmos-sdk 0.43 in: query required: false type: boolean @@ -40123,8 +38223,6 @@ paths: schema: type: object properties: - error: - type: string code: type: integer format: int32 @@ -40135,11 +38233,9 @@ paths: items: type: object properties: - type_url: + '@type': type: string - value: - type: string - format: byte + additionalProperties: {} parameters: - name: pagination.key description: |- @@ -40191,9 +38287,6 @@ paths: description: >- reverse is set to true if results are to be returned in the descending order. - - - Since: cosmos-sdk 0.43 in: query required: false type: boolean @@ -40244,8 +38337,6 @@ paths: schema: type: object properties: - error: - type: string code: type: integer format: int32 @@ -40256,11 +38347,9 @@ paths: items: type: object properties: - type_url: - type: string - value: + '@type': type: string - format: byte + additionalProperties: {} parameters: - name: address in: path @@ -40290,8 +38379,6 @@ paths: schema: type: object properties: - error: - type: string code: type: integer format: int32 @@ -40302,11 +38389,9 @@ paths: items: type: object properties: - type_url: + '@type': type: string - value: - type: string - format: byte + additionalProperties: {} tags: - Query /cosmos/consensus/v1/params: @@ -40336,16 +38421,29 @@ paths: max_bytes: type: string format: int64 - title: |- - Max block size, in bytes. - Note: must be greater than 0 + description: >- + Maximum size of a block, in bytes. + + + Must be greater or equal to -1 and cannot be greater + than the hard-coded + + maximum block size, which is 100MB. + + + If set to -1, the limit is the hard-coded maximum + block size. max_gas: type: string format: int64 - title: |- - Max gas per block. - Note: must be greater or equal to -1 - description: BlockParams contains limits on the block size. + description: >- + Maximum gas wanted by transactions included in a + block. + + + Must be greater or equal to -1. If set to -1, no limit + is enforced. + description: BlockParams define limits on the block size and gas. evidence: type: object properties: @@ -40353,38 +38451,42 @@ paths: type: string format: int64 description: >- - Max age of evidence, in blocks. + Maximum age of evidence, in blocks. - The basic formula for calculating this is: - MaxAgeDuration / {average block + The recommended formula for calculating it is + max_age_duration / {average - time}. + block time}. max_age_duration: type: string description: >- - Max age of evidence, in time. + Maximum age of evidence, in time. + + The recommended value of is should correspond to the + application's - It should correspond with an app's "unbonding period" - or other similar + "unbonding period" or other similar mechanism for + handling - mechanism for handling [Nothing-At-Stake + Nothing-At-Stake attacks. - attacks](https://github.com/ethereum/wiki/wiki/Proof-of-Stake-FAQ#what-is-the-nothing-at-stake-problem-and-how-can-it-be-fixed). + See: + https://github.com/ethereum/wiki/wiki/Proof-of-Stake-FAQ#what-is-the-nothing-at-stake-problem-and-how-can-it-be-fixed. max_bytes: type: string format: int64 - title: >- - This sets the maximum size of total evidence in bytes - that can be committed in a single block. + description: >- + Maximum size in bytes of evidence allowed to be + included in a block. - and should fall comfortably under the max block bytes. - Default is 1048576 or 1MB + It should fall comfortably under the maximum size of a + block. description: >- - EvidenceParams determine how we handle evidence of - malfeasance. + EvidenceParams determine the validity of evidences of + Byzantine behavior. validator: type: object properties: @@ -40396,47 +38498,126 @@ paths: ValidatorParams restrict the public key types validators can use. - NOTE: uses ABCI pubkey naming, not Amino names. + + NOTE: uses ABCI public keys naming, not Amino names. version: type: object properties: app: type: string format: uint64 - description: VersionParams contains the ABCI application version. + description: |- + The ABCI application version. + + It was named app_version in CometBFT 0.34. + description: >- + VersionParams contain the version of specific components + of CometBFT. abci: + title: Use FeatureParams.vote_extensions_enable_height instead + type: object + properties: + vote_extensions_enable_height: + type: string + format: int64 + description: >- + vote_extensions_enable_height has been deprecated. + + Instead, use + FeatureParams.vote_extensions_enable_height. + synchrony: + type: object + properties: + precision: + type: string + description: >- + Bound for how skewed a proposer's clock may be from + any validator on the + + network while still producing valid proposals. + message_delay: + type: string + description: >- + Bound for how long a proposal message may take to + reach all validators on + + a network and still be considered valid. + description: >- + SynchronyParams determine the validity of block + timestamps. + + + These parameters are part of the Proposer-Based Timestamps + (PBTS) algorithm. + + For more information on the relationship of the synchrony + parameters to + + block timestamps validity, refer to the PBTS + specification: + + https://github.com/tendermint/spec/blob/master/spec/consensus/proposer-based-timestamp/README.md + feature: type: object properties: vote_extensions_enable_height: type: string format: int64 description: >- - vote_extensions_enable_height configures the first - height during which + First height during which vote extensions will be + enabled. + - vote extensions will be enabled. During this specified - height, and for all + During the specified height, and for all subsequent + heights, precommit - subsequent heights, precommit messages that do not - contain valid extension data + messages that do not contain valid extension data will + be considered - will be considered invalid. Prior to this height, vote - extensions will not + invalid. Prior to this height, or when this height is + set to 0, vote - be used or accepted by validators on the network. + extensions will not be used or accepted by validators + on the network. Once enabled, vote extensions will be created by the - application in ExtendVote, + application in + + ExtendVote, validated by the application in + VerifyVoteExtension, and + + used by the application in PrepareProposal, when + proposing the next block. + + + Cannot be set to heights lower or equal to the current + blockchain height. + pbts_enable_height: + type: string + format: int64 + description: >- + Height at which Proposer-Based Timestamps (PBTS) will + be enabled. + + + From the specified height, and for all subsequent + heights, the PBTS + + algorithm will be used to produce and validate block + timestamps. Prior to - passed to the application for validation in - VerifyVoteExtension and given + this height, or when this height is set to 0, the + legacy BFT Time - to the application to use when proposing a block - during PrepareProposal. + algorithm is used to produce and validate timestamps. + + + Cannot be set to heights lower or equal to the current + blockchain height. description: >- - ABCIParams configure functionality specific to the - Application Blockchain Interface. + FeatureParams configure the height from which features of + CometBFT are enabled. description: >- QueryParamsResponse defines the response type for querying x/consensus parameters. @@ -40445,8 +38626,6 @@ paths: schema: type: object properties: - error: - type: string code: type: integer format: int32 @@ -40457,11 +38636,9 @@ paths: items: type: object properties: - type_url: - type: string - value: + '@type': type: string - format: byte + additionalProperties: {} tags: - Query definitions: @@ -40473,9 +38650,6 @@ definitions: description: >- AddressBytesToStringResponse is the response type for AddressString rpc method. - - - Since: cosmos-sdk 0.46 cosmos.auth.v1beta1.AddressStringToBytesResponse: type: object properties: @@ -40485,9 +38659,6 @@ definitions: description: >- AddressStringToBytesResponse is the response type for AddressBytes rpc method. - - - Since: cosmos-sdk 0.46 cosmos.auth.v1beta1.BaseAccount: type: object properties: @@ -40496,7 +38667,7 @@ definitions: pub_key: type: object properties: - type_url: + '@type': type: string description: >- A URL/resource name that uniquely identifies the type of the @@ -40548,12 +38719,7 @@ definitions: 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. + additionalProperties: {} description: >- `Any` contains an arbitrary serialized protocol buffer message along with a @@ -40677,10 +38843,7 @@ definitions: properties: bech32_prefix: type: string - description: |- - Bech32PrefixResponse is the response type for Bech32Prefix rpc method. - - Since: cosmos-sdk 0.46 + description: Bech32PrefixResponse is the response type for Bech32Prefix rpc method. cosmos.auth.v1beta1.Params: type: object properties: @@ -40705,7 +38868,6 @@ definitions: properties: account_address: type: string - description: 'Since: cosmos-sdk 0.46.2' title: >- QueryAccountAddressByIDResponse is the response type for AccountAddressByID rpc method @@ -40721,7 +38883,7 @@ definitions: pub_key: type: object properties: - type_url: + '@type': type: string description: >- A URL/resource name that uniquely identifies the type of the @@ -40776,12 +38938,7 @@ definitions: be used with implementation specific semantics. - value: - type: string - format: byte - description: >- - Must be a valid serialized protocol buffer of the above - specified type. + additionalProperties: {} description: >- `Any` contains an arbitrary serialized protocol buffer message along with a @@ -40895,17 +39052,14 @@ definitions: sequence: type: string format: uint64 - description: |- - QueryAccountInfoResponse is the Query/AccountInfo response type. - - Since: cosmos-sdk 0.47 + description: QueryAccountInfoResponse is the Query/AccountInfo response type. cosmos.auth.v1beta1.QueryAccountResponse: type: object properties: account: type: object properties: - type_url: + '@type': type: string description: >- A URL/resource name that uniquely identifies the type of the @@ -40957,12 +39111,7 @@ definitions: 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. + additionalProperties: {} description: >- `Any` contains an arbitrary serialized protocol buffer message along with a @@ -41078,7 +39227,7 @@ definitions: items: type: object properties: - type_url: + '@type': type: string description: >- A URL/resource name that uniquely identifies the type of the @@ -41132,12 +39281,7 @@ definitions: be used with implementation specific semantics. - value: - type: string - format: byte - description: >- - Must be a valid serialized protocol buffer of the above - specified type. + additionalProperties: {} description: >- `Any` contains an arbitrary serialized protocol buffer message along with a @@ -41266,16 +39410,13 @@ definitions: description: >- QueryAccountsResponse is the response type for the Query/Accounts RPC method. - - - Since: cosmos-sdk 0.43 cosmos.auth.v1beta1.QueryModuleAccountByNameResponse: type: object properties: account: type: object properties: - type_url: + '@type': type: string description: >- A URL/resource name that uniquely identifies the type of the @@ -41327,12 +39468,7 @@ definitions: 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. + additionalProperties: {} description: >- `Any` contains an arbitrary serialized protocol buffer message along with a @@ -41448,7 +39584,7 @@ definitions: items: type: object properties: - type_url: + '@type': type: string description: >- A URL/resource name that uniquely identifies the type of the @@ -41502,12 +39638,7 @@ definitions: be used with implementation specific semantics. - value: - type: string - format: byte - description: >- - Must be a valid serialized protocol buffer of the above - specified type. + additionalProperties: {} description: >- `Any` contains an arbitrary serialized protocol buffer message along with a @@ -41616,9 +39747,6 @@ definitions: description: >- QueryModuleAccountsResponse is the response type for the Query/ModuleAccounts RPC method. - - - Since: cosmos-sdk 0.46 cosmos.auth.v1beta1.QueryParamsResponse: type: object properties: @@ -41684,9 +39812,6 @@ definitions: description: >- reverse is set to true if results are to be returned in the descending order. - - - Since: cosmos-sdk 0.43 description: |- message SomeRequest { Foo some_parameter = 1; @@ -41722,7 +39847,7 @@ definitions: google.protobuf.Any: type: object properties: - type_url: + '@type': type: string description: >- A URL/resource name that uniquely identifies the type of the @@ -41771,12 +39896,7 @@ definitions: 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. + additionalProperties: {} description: >- `Any` contains an arbitrary serialized protocol buffer message along with a @@ -41880,11 +40000,9 @@ definitions: "@type": "type.googleapis.com/google.protobuf.Duration", "value": "1.212s" } - grpc.gateway.runtime.Error: + google.rpc.Status: type: object properties: - error: - type: string code: type: integer format: int32 @@ -41895,7 +40013,7 @@ definitions: items: type: object properties: - type_url: + '@type': type: string description: >- A URL/resource name that uniquely identifies the type of the @@ -41949,12 +40067,7 @@ definitions: be used with implementation specific semantics. - value: - type: string - format: byte - description: >- - Must be a valid serialized protocol buffer of the above - specified type. + additionalProperties: {} description: >- `Any` contains an arbitrary serialized protocol buffer message along with a @@ -42067,23 +40180,17 @@ definitions: type: string description: address defines the address that owns a particular denomination. balance: + description: balance is the balance of the denominated coin for an account. type: object properties: denom: type: string amount: type: string - description: |- - Coin defines a token with a denomination and an amount. - - NOTE: The amount field is an Int which implements the custom method - signatures required by gogoproto. description: |- DenomOwner defines structure representing an account that owns or holds a particular denominated token. It contains the account address and account balance of the denominated token. - - Since: cosmos-sdk 0.46 cosmos.bank.v1beta1.DenomUnit: type: object properties: @@ -42163,7 +40270,6 @@ definitions: displayed in clients. name: type: string - description: 'Since: cosmos-sdk 0.43' title: 'name defines the name of the token (eg: Cosmos Atom)' symbol: type: string @@ -42172,17 +40278,11 @@ definitions: can be the same as the display. - - - Since: cosmos-sdk 0.43 uri: type: string description: >- URI to a document (on or off-chain) that contains additional information. Optional. - - - Since: cosmos-sdk 0.46 uri_hash: type: string description: >- @@ -42190,9 +40290,6 @@ definitions: verify that the document didn't change. Optional. - - - Since: cosmos-sdk 0.46 description: |- Metadata represents a struct that describes a basic token. @@ -42274,17 +40371,13 @@ definitions: type: object properties: balance: + description: balance is the balance of the coin. type: object properties: denom: type: string amount: type: string - description: |- - Coin defines a token with a denomination and an amount. - - NOTE: The amount field is an Int which implements the custom method - signatures required by gogoproto. description: >- QueryBalanceResponse is the response type for the Query/Balance RPC method. @@ -42292,6 +40385,9 @@ definitions: type: object properties: metadata: + description: >- + metadata describes and provides all the client information for the + requested token. type: object properties: description: @@ -42342,7 +40438,6 @@ definitions: displayed in clients. name: type: string - description: 'Since: cosmos-sdk 0.43' title: 'name defines the name of the token (eg: Cosmos Atom)' symbol: type: string @@ -42351,17 +40446,11 @@ definitions: This can be the same as the display. - - - Since: cosmos-sdk 0.43 uri: type: string description: >- URI to a document (on or off-chain) that contains additional information. Optional. - - - Since: cosmos-sdk 0.46 uri_hash: type: string description: >- @@ -42369,12 +40458,6 @@ definitions: to verify that the document didn't change. Optional. - - - Since: cosmos-sdk 0.46 - description: |- - Metadata represents a struct that describes - a basic token. description: >- QueryDenomMetadataByQueryStringResponse is the response type for the Query/DenomMetadata RPC @@ -42385,6 +40468,9 @@ definitions: type: object properties: metadata: + description: >- + metadata describes and provides all the client information for the + requested token. type: object properties: description: @@ -42435,7 +40521,6 @@ definitions: displayed in clients. name: type: string - description: 'Since: cosmos-sdk 0.43' title: 'name defines the name of the token (eg: Cosmos Atom)' symbol: type: string @@ -42444,17 +40529,11 @@ definitions: This can be the same as the display. - - - Since: cosmos-sdk 0.43 uri: type: string description: >- URI to a document (on or off-chain) that contains additional information. Optional. - - - Since: cosmos-sdk 0.46 uri_hash: type: string description: >- @@ -42462,12 +40541,6 @@ definitions: to verify that the document didn't change. Optional. - - - Since: cosmos-sdk 0.46 - description: |- - Metadata represents a struct that describes - a basic token. description: >- QueryDenomMetadataResponse is the response type for the Query/DenomMetadata RPC @@ -42485,20 +40558,13 @@ definitions: type: string description: address defines the address that owns a particular denomination. balance: + description: balance is the balance of the denominated coin for an account. type: object properties: denom: type: string amount: type: string - description: >- - Coin defines a token with a denomination and an amount. - - - NOTE: The amount field is an Int which implements the custom - method - - signatures required by gogoproto. description: >- DenomOwner defines structure representing an account that owns or holds a @@ -42507,9 +40573,6 @@ definitions: account balance of the denominated token. - - - Since: cosmos-sdk 0.46 pagination: description: pagination defines the pagination in the response. type: object @@ -42544,20 +40607,13 @@ definitions: type: string description: address defines the address that owns a particular denomination. balance: + description: balance is the balance of the denominated coin for an account. type: object properties: denom: type: string amount: type: string - description: >- - Coin defines a token with a denomination and an amount. - - - NOTE: The amount field is an Int which implements the custom - method - - signatures required by gogoproto. description: >- DenomOwner defines structure representing an account that owns or holds a @@ -42566,9 +40622,6 @@ definitions: account balance of the denominated token. - - - Since: cosmos-sdk 0.46 pagination: description: pagination defines the pagination in the response. type: object @@ -42591,9 +40644,6 @@ definitions: description: >- QueryDenomOwnersResponse defines the RPC response of a DenomOwners RPC query. - - - Since: cosmos-sdk 0.46 cosmos.bank.v1beta1.QueryDenomsMetadataResponse: type: object properties: @@ -42650,7 +40700,6 @@ definitions: displayed in clients. name: type: string - description: 'Since: cosmos-sdk 0.43' title: 'name defines the name of the token (eg: Cosmos Atom)' symbol: type: string @@ -42659,17 +40708,11 @@ definitions: ATOM). This can be the same as the display. - - - Since: cosmos-sdk 0.43 uri: type: string description: >- URI to a document (on or off-chain) that contains additional information. Optional. - - - Since: cosmos-sdk 0.46 uri_hash: type: string description: >- @@ -42677,9 +40720,6 @@ definitions: to verify that the document didn't change. Optional. - - - Since: cosmos-sdk 0.46 description: |- Metadata represents a struct that describes a basic token. @@ -42786,33 +40826,23 @@ definitions: PageRequest.count_total was set, its value is undefined otherwise - description: |- - QuerySendEnabledResponse defines the RPC response of a SendEnable query. - - Since: cosmos-sdk 0.47 + description: QuerySendEnabledResponse defines the RPC response of a SendEnable query. cosmos.bank.v1beta1.QuerySpendableBalanceByDenomResponse: type: object properties: balance: + description: balance is the balance of the coin. type: object properties: denom: type: string amount: type: string - description: |- - Coin defines a token with a denomination and an amount. - - NOTE: The amount field is an Int which implements the custom method - signatures required by gogoproto. description: >- QuerySpendableBalanceByDenomResponse defines the gRPC response structure for querying an account's spendable balance for a specific denom. - - - Since: cosmos-sdk 0.47 cosmos.bank.v1beta1.QuerySpendableBalancesResponse: type: object properties: @@ -42855,24 +40885,17 @@ definitions: querying an account's spendable balances. - - - Since: cosmos-sdk 0.46 cosmos.bank.v1beta1.QuerySupplyOfResponse: type: object properties: amount: + description: amount is the supply of the coin. type: object properties: denom: type: string amount: type: string - description: |- - Coin defines a token with a denomination and an amount. - - NOTE: The amount field is an Int which implements the custom method - signatures required by gogoproto. description: >- QuerySupplyOfResponse is the response type for the Query/SupplyOf RPC method. @@ -42895,10 +40918,7 @@ definitions: signatures required by gogoproto. title: supply is the supply of the coins pagination: - description: |- - pagination defines the pagination in the response. - - Since: cosmos-sdk 0.43 + description: pagination defines the pagination in the response. type: object properties: next_key: @@ -42943,73 +40963,116 @@ definitions: NOTE: The amount field is an Int which implements the custom method signatures required by gogoproto. - cosmos.base.tendermint.v1beta1.ABCIQueryResponse: + cometbft.crypto.v1.ProofOp: type: object properties: - code: - type: integer - format: int64 - log: + type: type: string - info: + key: type: string - index: + format: byte + data: type: string - format: int64 - key: + format: byte + title: |- + ProofOp defines an operation used for calculating Merkle root + The data could be arbitrary format, providing necessary data + for example neighbouring node hash + cometbft.crypto.v1.ProofOps: + type: object + properties: + ops: + type: array + items: + type: object + properties: + type: + type: string + key: + type: string + format: byte + data: + type: string + format: byte + title: |- + ProofOp defines an operation used for calculating Merkle root + The data could be arbitrary format, providing necessary data + for example neighbouring node hash + title: ProofOps is Merkle proof defined by the list of ProofOps + cometbft.crypto.v1.PublicKey: + type: object + properties: + ed25519: type: string format: byte - value: + secp256k1: type: string format: byte - proof_ops: + description: PublicKey is a ED25519 or a secp256k1 public key. + cometbft.p2p.v1.DefaultNodeInfo: + type: object + properties: + protocol_version: type: object properties: - ops: - type: array - items: - type: object - properties: - type: - type: string - key: - type: string - format: byte - data: - type: string - format: byte - description: >- - ProofOp defines an operation used for calculating Merkle root. - The data could - - be arbitrary format, providing necessary data for example - neighbouring node - - hash. - - - Note: This type is a duplicate of the ProofOp proto type defined - in Tendermint. - description: >- - ProofOps is Merkle proof defined by the list of ProofOps. - - - Note: This type is a duplicate of the ProofOps proto type defined in - Tendermint. - height: + p2p: + type: string + format: uint64 + block: + type: string + format: uint64 + app: + type: string + format: uint64 + description: ProtocolVersion represents the current p2p protocol version. + default_node_id: type: string - format: int64 - codespace: + listen_addr: + type: string + network: + type: string + version: type: string + channels: + type: string + format: byte + moniker: + type: string + other: + type: object + properties: + tx_index: + type: string + rpc_address: + type: string + description: DefaultNodeInfoOther is the misc. application specific data. description: >- - ABCIQueryResponse defines the response structure for the ABCIQuery gRPC - query. - - - Note: This type is a duplicate of the ResponseQuery proto type defined in + DefaultNodeInfo is a basic node's information sent to other peers during + the - Tendermint. - cosmos.base.tendermint.v1beta1.Block: + p2p handshake. + cometbft.p2p.v1.DefaultNodeInfoOther: + type: object + properties: + tx_index: + type: string + rpc_address: + type: string + description: DefaultNodeInfoOther is the misc. application specific data. + cometbft.p2p.v1.ProtocolVersion: + type: object + properties: + p2p: + type: string + format: uint64 + block: + type: string + format: uint64 + app: + type: string + format: uint64 + description: ProtocolVersion represents the current p2p protocol version. + cometbft.types.v1.Block: type: object properties: header: @@ -43056,46 +41119,51 @@ definitions: hash: type: string format: byte - title: PartsetHeader - title: BlockID + description: Header of the parts set for a block. + description: >- + BlockID defines the unique ID of a block as its hash and its + `PartSetHeader`. + title: prev block info last_commit_hash: type: string format: byte + description: commit from validators from the last block title: hashes of block data data_hash: type: string format: byte + title: transactions validators_hash: type: string format: byte + description: validators for the current block title: hashes from the app output from the prev block next_validators_hash: type: string format: byte + title: validators for the next block consensus_hash: type: string format: byte + title: consensus params for current block app_hash: type: string format: byte + title: state after txs from the previous block last_results_hash: type: string format: byte + title: root hash of all results from the txs from the previous block evidence_hash: type: string format: byte + description: evidence included in the block title: consensus info proposer_address: type: string - description: >- - proposer_address is the original block proposer address, formatted - as a Bech32 string. - - In Tendermint, this type is `bytes`, but in the SDK, we convert it - to a Bech32 string - - for better UX. - description: Header defines the structure of a Tendermint block header. + format: byte + title: original proposer of the block + description: Header defines the structure of a block header. data: type: object properties: @@ -43138,8 +41206,10 @@ definitions: SignedMsgType is a type of signed message in the consensus. - - SIGNED_MSG_TYPE_PREVOTE: Votes - - SIGNED_MSG_TYPE_PROPOSAL: Proposals + - SIGNED_MSG_TYPE_UNKNOWN: Unknown + - SIGNED_MSG_TYPE_PREVOTE: Prevote + - SIGNED_MSG_TYPE_PRECOMMIT: Precommit + - SIGNED_MSG_TYPE_PROPOSAL: Proposal height: type: string format: int64 @@ -43161,8 +41231,10 @@ definitions: hash: type: string format: byte - title: PartsetHeader - title: BlockID + description: Header of the parts set for a block. + description: >- + BlockID defines the unique ID of a block as its hash + and its `PartSetHeader`. timestamp: type: string format: date-time @@ -43218,8 +41290,10 @@ definitions: SignedMsgType is a type of signed message in the consensus. - - SIGNED_MSG_TYPE_PREVOTE: Votes - - SIGNED_MSG_TYPE_PROPOSAL: Proposals + - SIGNED_MSG_TYPE_UNKNOWN: Unknown + - SIGNED_MSG_TYPE_PREVOTE: Prevote + - SIGNED_MSG_TYPE_PRECOMMIT: Precommit + - SIGNED_MSG_TYPE_PROPOSAL: Proposal height: type: string format: int64 @@ -43241,8 +41315,10 @@ definitions: hash: type: string format: byte - title: PartsetHeader - title: BlockID + description: Header of the parts set for a block. + description: >- + BlockID defines the unique ID of a block as its hash + and its `PartSetHeader`. timestamp: type: string format: date-time @@ -43348,40 +41424,54 @@ definitions: hash: type: string format: byte - title: PartsetHeader - title: BlockID + description: Header of the parts set for a block. + description: >- + BlockID defines the unique ID of a block as + its hash and its `PartSetHeader`. + title: prev block info last_commit_hash: type: string format: byte + description: commit from validators from the last block title: hashes of block data data_hash: type: string format: byte + title: transactions validators_hash: type: string format: byte + description: validators for the current block title: >- hashes from the app output from the prev block next_validators_hash: type: string format: byte + title: validators for the next block consensus_hash: type: string format: byte + title: consensus params for current block app_hash: type: string format: byte + title: state after txs from the previous block last_results_hash: type: string format: byte + title: >- + root hash of all results from the txs from + the previous block evidence_hash: type: string format: byte + description: evidence included in the block title: consensus info proposer_address: type: string format: byte + title: original proposer of the block description: Header defines the structure of a block header. commit: type: object @@ -43407,8 +41497,10 @@ definitions: hash: type: string format: byte - title: PartsetHeader - title: BlockID + description: Header of the parts set for a block. + description: >- + BlockID defines the unique ID of a block as + its hash and its `PartSetHeader`. signatures: type: array items: @@ -43422,6 +41514,12 @@ definitions: - BLOCK_ID_FLAG_COMMIT - BLOCK_ID_FLAG_NIL default: BLOCK_ID_FLAG_UNKNOWN + description: >- + - BLOCK_ID_FLAG_UNKNOWN: Indicates an + error condition + - BLOCK_ID_FLAG_ABSENT: The vote was not received + - BLOCK_ID_FLAG_COMMIT: Voted for the block that received the majority + - BLOCK_ID_FLAG_NIL: Voted for nil title: >- BlockIdFlag indicates which BlockID the signature is for @@ -43440,6 +41538,9 @@ definitions: description: >- Commit contains the evidence that a block was committed by a set of validators. + description: >- + SignedHeader contains a Header(H) and Commit(H+1) + with signatures of validators who signed it. validator_set: type: object properties: @@ -43460,15 +41561,18 @@ definitions: secp256k1: type: string format: byte - title: >- - PublicKey defines the keys available for - use with Validators + description: >- + PublicKey is a ED25519 or a secp256k1 + public key. voting_power: type: string format: int64 proposer_priority: type: string format: int64 + description: >- + Validator represents a node participating in + the consensus protocol. proposer: type: object properties: @@ -43484,18 +41588,25 @@ definitions: secp256k1: type: string format: byte - title: >- - PublicKey defines the keys available for use - with Validators + description: >- + PublicKey is a ED25519 or a secp256k1 public + key. voting_power: type: string format: int64 proposer_priority: type: string format: int64 + description: >- + Validator represents a node participating in the + consensus protocol. total_voting_power: type: string format: int64 + description: ValidatorSet defines a set of validators. + description: >- + LightBlock is a combination of SignedHeader and + ValidatorSet. It is used by light clients. common_height: type: string format: int64 @@ -43516,15 +41627,16 @@ definitions: secp256k1: type: string format: byte - title: >- - PublicKey defines the keys available for use with - Validators + description: PublicKey is a ED25519 or a secp256k1 public key. voting_power: type: string format: int64 proposer_priority: type: string format: int64 + description: >- + Validator represents a node participating in the + consensus protocol. total_voting_power: type: string format: int64 @@ -43534,6 +41646,10 @@ definitions: description: >- LightClientAttackEvidence contains evidence of a set of validators attempting to mislead a light client. + description: >- + Evidence is a generic type for wrapping evidence of misbehavior + by a validator. + description: EvidenceList is a list of evidence. last_commit: type: object properties: @@ -43558,8 +41674,10 @@ definitions: hash: type: string format: byte - title: PartsetHeader - title: BlockID + description: Header of the parts set for a block. + description: >- + BlockID defines the unique ID of a block as its hash and its + `PartSetHeader`. signatures: type: array items: @@ -43573,6 +41691,11 @@ definitions: - BLOCK_ID_FLAG_COMMIT - BLOCK_ID_FLAG_NIL default: BLOCK_ID_FLAG_UNKNOWN + description: |- + - BLOCK_ID_FLAG_UNKNOWN: Indicates an error condition + - BLOCK_ID_FLAG_ABSENT: The vote was not received + - BLOCK_ID_FLAG_COMMIT: Voted for the block that received the majority + - BLOCK_ID_FLAG_NIL: Voted for nil title: BlockIdFlag indicates which BlockID the signature is for validator_address: type: string @@ -43587,12 +41710,49 @@ definitions: description: >- Commit contains the evidence that a block was committed by a set of validators. + description: Block defines the structure of a block in the CometBFT blockchain. + cometbft.types.v1.BlockID: + type: object + properties: + hash: + type: string + format: byte + part_set_header: + type: object + properties: + total: + type: integer + format: int64 + hash: + type: string + format: byte + description: Header of the parts set for a block. + description: >- + BlockID defines the unique ID of a block as its hash and its + `PartSetHeader`. + cometbft.types.v1.BlockIDFlag: + type: string + enum: + - BLOCK_ID_FLAG_UNKNOWN + - BLOCK_ID_FLAG_ABSENT + - BLOCK_ID_FLAG_COMMIT + - BLOCK_ID_FLAG_NIL + default: BLOCK_ID_FLAG_UNKNOWN description: |- - Block is tendermint type Block, with the Header proposer address - field converted to bech32 string. - cosmos.base.tendermint.v1beta1.GetBlockByHeightResponse: + - BLOCK_ID_FLAG_UNKNOWN: Indicates an error condition + - BLOCK_ID_FLAG_ABSENT: The vote was not received + - BLOCK_ID_FLAG_COMMIT: Voted for the block that received the majority + - BLOCK_ID_FLAG_NIL: Voted for nil + title: BlockIdFlag indicates which BlockID the signature is for + cometbft.types.v1.Commit: type: object properties: + height: + type: string + format: int64 + round: + type: integer + format: int32 block_id: type: object properties: @@ -43608,42 +41768,287 @@ definitions: hash: type: string format: byte - title: PartsetHeader - title: BlockID - block: - title: 'Deprecated: please use `sdk_block` instead' + description: Header of the parts set for a block. + description: >- + BlockID defines the unique ID of a block as its hash and its + `PartSetHeader`. + signatures: + type: array + items: + type: object + properties: + block_id_flag: + type: string + enum: + - BLOCK_ID_FLAG_UNKNOWN + - BLOCK_ID_FLAG_ABSENT + - BLOCK_ID_FLAG_COMMIT + - BLOCK_ID_FLAG_NIL + default: BLOCK_ID_FLAG_UNKNOWN + description: |- + - BLOCK_ID_FLAG_UNKNOWN: Indicates an error condition + - BLOCK_ID_FLAG_ABSENT: The vote was not received + - BLOCK_ID_FLAG_COMMIT: Voted for the block that received the majority + - BLOCK_ID_FLAG_NIL: Voted for nil + title: BlockIdFlag indicates which BlockID the signature is for + validator_address: + type: string + format: byte + timestamp: + type: string + format: date-time + signature: + type: string + format: byte + description: CommitSig is a part of the Vote included in a Commit. + description: >- + Commit contains the evidence that a block was committed by a set of + validators. + cometbft.types.v1.CommitSig: + type: object + properties: + block_id_flag: + type: string + enum: + - BLOCK_ID_FLAG_UNKNOWN + - BLOCK_ID_FLAG_ABSENT + - BLOCK_ID_FLAG_COMMIT + - BLOCK_ID_FLAG_NIL + default: BLOCK_ID_FLAG_UNKNOWN + description: |- + - BLOCK_ID_FLAG_UNKNOWN: Indicates an error condition + - BLOCK_ID_FLAG_ABSENT: The vote was not received + - BLOCK_ID_FLAG_COMMIT: Voted for the block that received the majority + - BLOCK_ID_FLAG_NIL: Voted for nil + title: BlockIdFlag indicates which BlockID the signature is for + validator_address: + type: string + format: byte + timestamp: + type: string + format: date-time + signature: + type: string + format: byte + description: CommitSig is a part of the Vote included in a Commit. + cometbft.types.v1.Data: + type: object + properties: + txs: + type: array + items: + type: string + format: byte + description: >- + Txs that will be applied by state @ block.Height+1. + + NOTE: not all txs here are valid. We're just agreeing on the order + first. + + This means that block.AppHash does not include these txs. + title: Data contains the set of transactions included in the block + cometbft.types.v1.DuplicateVoteEvidence: + type: object + properties: + vote_a: type: object properties: - header: + type: + type: string + enum: + - SIGNED_MSG_TYPE_UNKNOWN + - SIGNED_MSG_TYPE_PREVOTE + - SIGNED_MSG_TYPE_PRECOMMIT + - SIGNED_MSG_TYPE_PROPOSAL + default: SIGNED_MSG_TYPE_UNKNOWN + description: |- + SignedMsgType is a type of signed message in the consensus. + + - SIGNED_MSG_TYPE_UNKNOWN: Unknown + - SIGNED_MSG_TYPE_PREVOTE: Prevote + - SIGNED_MSG_TYPE_PRECOMMIT: Precommit + - SIGNED_MSG_TYPE_PROPOSAL: Proposal + height: + type: string + format: int64 + round: + type: integer + format: int32 + block_id: type: object properties: - version: - title: basic block info + hash: + type: string + format: byte + part_set_header: type: object properties: - block: + total: + type: integer + format: int64 + hash: type: string - format: uint64 - app: + format: byte + description: Header of the parts set for a block. + description: >- + BlockID defines the unique ID of a block as its hash and its + `PartSetHeader`. + timestamp: + type: string + format: date-time + validator_address: + type: string + format: byte + validator_index: + type: integer + format: int32 + 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 or precommit vote from validators for + consensus. + vote_b: + type: object + properties: + type: + type: string + enum: + - SIGNED_MSG_TYPE_UNKNOWN + - SIGNED_MSG_TYPE_PREVOTE + - SIGNED_MSG_TYPE_PRECOMMIT + - SIGNED_MSG_TYPE_PROPOSAL + default: SIGNED_MSG_TYPE_UNKNOWN + description: |- + SignedMsgType is a type of signed message in the consensus. + + - SIGNED_MSG_TYPE_UNKNOWN: Unknown + - SIGNED_MSG_TYPE_PREVOTE: Prevote + - SIGNED_MSG_TYPE_PRECOMMIT: Precommit + - SIGNED_MSG_TYPE_PROPOSAL: Proposal + height: + type: string + format: int64 + round: + type: integer + format: int32 + block_id: + type: object + properties: + hash: + type: string + format: byte + part_set_header: + type: object + properties: + total: + type: integer + format: int64 + hash: type: string - format: uint64 - description: >- - Consensus captures the consensus rules for processing a block - in the blockchain, + format: byte + description: Header of the parts set for a block. + description: >- + BlockID defines the unique ID of a block as its hash and its + `PartSetHeader`. + timestamp: + type: string + format: date-time + validator_address: + type: string + format: byte + validator_index: + type: integer + format: int32 + signature: + type: string + format: byte + description: >- + Vote signature by the validator if they participated in consensus + for the - including all blockchain data structures and the rules of the - application's + associated block. + extension: + type: string + format: byte + description: >- + Vote extension provided by the application. Only valid for + precommit - state transition machine. - chain_id: + 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 + format: int64 + validator_power: + type: string + format: int64 + timestamp: + type: string + format: date-time + description: >- + DuplicateVoteEvidence contains evidence of a validator signed two + conflicting votes. + cometbft.types.v1.Evidence: + type: object + properties: + duplicate_vote_evidence: + type: object + properties: + vote_a: + type: object + properties: + type: type: string + enum: + - SIGNED_MSG_TYPE_UNKNOWN + - SIGNED_MSG_TYPE_PREVOTE + - SIGNED_MSG_TYPE_PRECOMMIT + - SIGNED_MSG_TYPE_PROPOSAL + default: SIGNED_MSG_TYPE_UNKNOWN + description: |- + SignedMsgType is a type of signed message in the consensus. + + - SIGNED_MSG_TYPE_UNKNOWN: Unknown + - SIGNED_MSG_TYPE_PREVOTE: Prevote + - SIGNED_MSG_TYPE_PRECOMMIT: Precommit + - SIGNED_MSG_TYPE_PROPOSAL: Proposal height: type: string format: int64 - time: - type: string - format: date-time - last_block_id: + round: + type: integer + format: int32 + block_id: type: object properties: hash: @@ -43658,170 +42063,643 @@ definitions: hash: type: string format: byte - title: PartsetHeader - title: BlockID - last_commit_hash: + description: Header of the parts set for a block. + description: >- + BlockID defines the unique ID of a block as its hash and its + `PartSetHeader`. + timestamp: type: string - format: byte - title: hashes of block data - data_hash: + format: date-time + validator_address: type: string format: byte - validators_hash: + validator_index: + type: integer + format: int32 + signature: type: string format: byte - title: hashes from the app output from the prev block - next_validators_hash: + description: >- + Vote signature by the validator if they participated in + consensus for the + + associated block. + extension: type: string format: byte - consensus_hash: + description: >- + Vote extension provided by the application. Only valid for + precommit + + messages. + extension_signature: type: string format: byte - app_hash: + 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 + properties: + type: + type: string + enum: + - SIGNED_MSG_TYPE_UNKNOWN + - SIGNED_MSG_TYPE_PREVOTE + - SIGNED_MSG_TYPE_PRECOMMIT + - SIGNED_MSG_TYPE_PROPOSAL + default: SIGNED_MSG_TYPE_UNKNOWN + description: |- + SignedMsgType is a type of signed message in the consensus. + + - SIGNED_MSG_TYPE_UNKNOWN: Unknown + - SIGNED_MSG_TYPE_PREVOTE: Prevote + - SIGNED_MSG_TYPE_PRECOMMIT: Precommit + - SIGNED_MSG_TYPE_PROPOSAL: Proposal + height: + type: string + format: int64 + round: + type: integer + format: int32 + block_id: + type: object + properties: + hash: + type: string + format: byte + part_set_header: + type: object + properties: + total: + type: integer + format: int64 + hash: + type: string + format: byte + description: Header of the parts set for a block. + description: >- + BlockID defines the unique ID of a block as its hash and its + `PartSetHeader`. + timestamp: + type: string + format: date-time + validator_address: type: string format: byte - last_results_hash: + validator_index: + type: integer + format: int32 + signature: type: string format: byte - evidence_hash: + description: >- + Vote signature by the validator if they participated in + consensus for the + + associated block. + extension: type: string format: byte - title: consensus info - proposer_address: + description: >- + Vote extension provided by the application. Only valid for + precommit + + messages. + extension_signature: type: string format: byte - description: Header defines the structure of a block header. - data: - type: object - properties: - txs: - type: array - items: - type: string - format: byte description: >- - Txs that will be applied by state @ block.Height+1. + Vote extension signature by the validator if they participated + in - NOTE: not all txs here are valid. We're just agreeing on the - order first. + consensus for the associated block. - This means that block.AppHash does not include these txs. - title: Data contains the set of transactions included in the block - evidence: + Only valid for precommit messages. + description: |- + Vote represents a prevote or precommit vote from validators for + consensus. + total_voting_power: + type: string + format: int64 + validator_power: + type: string + format: int64 + timestamp: + type: string + format: date-time + description: >- + DuplicateVoteEvidence contains evidence of a validator signed two + conflicting votes. + light_client_attack_evidence: + type: object + properties: + conflicting_block: type: object properties: - evidence: - type: array - items: - type: object - properties: - duplicate_vote_evidence: - type: object - properties: - vote_a: - type: object - properties: - type: - type: string - enum: - - SIGNED_MSG_TYPE_UNKNOWN - - SIGNED_MSG_TYPE_PREVOTE - - SIGNED_MSG_TYPE_PRECOMMIT - - SIGNED_MSG_TYPE_PROPOSAL - default: SIGNED_MSG_TYPE_UNKNOWN - description: >- - SignedMsgType is a type of signed message in the - consensus. + signed_header: + type: object + properties: + header: + type: object + properties: + version: + title: basic block info + type: object + properties: + block: + type: string + format: uint64 + app: + type: string + format: uint64 + description: >- + Consensus captures the consensus rules for processing + a block in the blockchain, - - SIGNED_MSG_TYPE_PREVOTE: Votes - - SIGNED_MSG_TYPE_PROPOSAL: Proposals - height: - type: string - format: int64 - round: - type: integer - format: int32 - block_id: - type: object - properties: - hash: - type: string - format: byte - part_set_header: - type: object - properties: - total: - type: integer - format: int64 - hash: - type: string - format: byte - title: PartsetHeader - title: BlockID - timestamp: - type: string - format: date-time - validator_address: - type: string - format: byte - validator_index: - type: integer - format: int32 + including all blockchain data structures and the rules + of the application's + + state transition machine. + chain_id: + type: string + height: + type: string + format: int64 + time: + type: string + format: date-time + last_block_id: + type: object + properties: + hash: + type: string + format: byte + part_set_header: + type: object + properties: + total: + type: integer + format: int64 + hash: + type: string + format: byte + description: Header of the parts set for a block. + description: >- + BlockID defines the unique ID of a block as its hash + and its `PartSetHeader`. + title: prev block info + last_commit_hash: + type: string + format: byte + description: commit from validators from the last block + title: hashes of block data + data_hash: + type: string + format: byte + title: transactions + validators_hash: + type: string + format: byte + description: validators for the current block + title: hashes from the app output from the prev block + next_validators_hash: + type: string + format: byte + title: validators for the next block + consensus_hash: + type: string + format: byte + title: consensus params for current block + app_hash: + type: string + format: byte + title: state after txs from the previous block + last_results_hash: + type: string + format: byte + title: >- + root hash of all results from the txs from the + previous block + evidence_hash: + type: string + format: byte + description: evidence included in the block + title: consensus info + proposer_address: + type: string + format: byte + title: original proposer of the block + description: Header defines the structure of a block header. + commit: + type: object + properties: + height: + type: string + format: int64 + round: + type: integer + format: int32 + block_id: + type: object + properties: + hash: + type: string + format: byte + part_set_header: + type: object + properties: + total: + type: integer + format: int64 + hash: + type: string + format: byte + description: Header of the parts set for a block. + description: >- + BlockID defines the unique ID of a block as its hash + and its `PartSetHeader`. + signatures: + type: array + items: + type: object + properties: + block_id_flag: + type: string + enum: + - BLOCK_ID_FLAG_UNKNOWN + - BLOCK_ID_FLAG_ABSENT + - BLOCK_ID_FLAG_COMMIT + - BLOCK_ID_FLAG_NIL + default: BLOCK_ID_FLAG_UNKNOWN + description: >- + - BLOCK_ID_FLAG_UNKNOWN: Indicates an error + condition + - BLOCK_ID_FLAG_ABSENT: The vote was not received + - BLOCK_ID_FLAG_COMMIT: Voted for the block that received the majority + - BLOCK_ID_FLAG_NIL: Voted for nil + title: >- + BlockIdFlag indicates which BlockID the + signature is for + validator_address: + type: string + format: byte + timestamp: + type: string + format: date-time signature: type: string format: byte - description: >- - Vote signature by the validator if they - participated in consensus for the - - associated block. - extension: + description: >- + CommitSig is a part of the Vote included in a + Commit. + description: >- + Commit contains the evidence that a block was committed by + a set of validators. + description: >- + SignedHeader contains a Header(H) and Commit(H+1) with + signatures of validators who signed it. + validator_set: + type: object + properties: + validators: + type: array + items: + type: object + properties: + address: + type: string + format: byte + pub_key: + type: object + properties: + ed25519: type: string format: byte - description: >- - Vote extension provided by the application. Only - valid for precommit + secp256k1: + type: string + format: byte + description: PublicKey is a ED25519 or a secp256k1 public key. + voting_power: + type: string + format: int64 + proposer_priority: + type: string + format: int64 + description: >- + Validator represents a node participating in the + consensus protocol. + proposer: + type: object + properties: + address: + type: string + format: byte + pub_key: + type: object + properties: + ed25519: + type: string + format: byte + secp256k1: + type: string + format: byte + description: PublicKey is a ED25519 or a secp256k1 public key. + voting_power: + type: string + format: int64 + proposer_priority: + type: string + format: int64 + description: >- + Validator represents a node participating in the consensus + protocol. + total_voting_power: + type: string + format: int64 + description: ValidatorSet defines a set of validators. + description: >- + LightBlock is a combination of SignedHeader and ValidatorSet. It + is used by light clients. + common_height: + type: string + format: int64 + byzantine_validators: + type: array + items: + type: object + properties: + address: + type: string + format: byte + pub_key: + type: object + properties: + ed25519: + type: string + format: byte + secp256k1: + type: string + format: byte + description: PublicKey is a ED25519 or a secp256k1 public key. + voting_power: + type: string + format: int64 + proposer_priority: + type: string + format: int64 + description: >- + Validator represents a node participating in the consensus + protocol. + total_voting_power: + type: string + format: int64 + timestamp: + type: string + format: date-time + description: >- + LightClientAttackEvidence contains evidence of a set of validators + attempting to mislead a light client. + description: >- + Evidence is a generic type for wrapping evidence of misbehavior by a + validator. + cometbft.types.v1.EvidenceList: + type: object + properties: + evidence: + type: array + items: + type: object + properties: + duplicate_vote_evidence: + type: object + properties: + vote_a: + type: object + properties: + type: + type: string + enum: + - SIGNED_MSG_TYPE_UNKNOWN + - SIGNED_MSG_TYPE_PREVOTE + - SIGNED_MSG_TYPE_PRECOMMIT + - SIGNED_MSG_TYPE_PROPOSAL + default: SIGNED_MSG_TYPE_UNKNOWN + description: >- + SignedMsgType is a type of signed message in the + consensus. - messages. - extension_signature: + - SIGNED_MSG_TYPE_UNKNOWN: Unknown + - SIGNED_MSG_TYPE_PREVOTE: Prevote + - SIGNED_MSG_TYPE_PRECOMMIT: Precommit + - SIGNED_MSG_TYPE_PROPOSAL: Proposal + height: + type: string + format: int64 + round: + type: integer + format: int32 + block_id: + type: object + properties: + hash: + type: string + format: byte + part_set_header: + type: object + properties: + total: + type: integer + format: int64 + hash: type: string format: byte - description: >- - Vote extension signature by the validator if - they participated in + description: Header of the parts set for a block. + description: >- + BlockID defines the unique ID of a block as its hash and + its `PartSetHeader`. + timestamp: + type: string + format: date-time + validator_address: + type: string + format: byte + validator_index: + type: integer + format: int32 + signature: + type: string + format: byte + description: >- + Vote signature by the validator if they participated in + consensus for the - consensus for the associated block. + associated block. + extension: + type: string + format: byte + description: >- + Vote extension provided by the application. Only valid + for precommit - Only valid for precommit messages. - description: >- - Vote represents a prevote or precommit vote from - validators for + messages. + extension_signature: + type: string + format: byte + description: >- + Vote extension signature by the validator if they + participated in - consensus. - vote_b: + 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 + properties: + type: + type: string + enum: + - SIGNED_MSG_TYPE_UNKNOWN + - SIGNED_MSG_TYPE_PREVOTE + - SIGNED_MSG_TYPE_PRECOMMIT + - SIGNED_MSG_TYPE_PROPOSAL + default: SIGNED_MSG_TYPE_UNKNOWN + description: >- + SignedMsgType is a type of signed message in the + consensus. + + - SIGNED_MSG_TYPE_UNKNOWN: Unknown + - SIGNED_MSG_TYPE_PREVOTE: Prevote + - SIGNED_MSG_TYPE_PRECOMMIT: Precommit + - SIGNED_MSG_TYPE_PROPOSAL: Proposal + height: + type: string + format: int64 + round: + type: integer + format: int32 + block_id: + type: object + properties: + hash: + type: string + format: byte + part_set_header: type: object properties: - type: + total: + type: integer + format: int64 + hash: type: string - enum: - - SIGNED_MSG_TYPE_UNKNOWN - - SIGNED_MSG_TYPE_PREVOTE - - SIGNED_MSG_TYPE_PRECOMMIT - - SIGNED_MSG_TYPE_PROPOSAL - default: SIGNED_MSG_TYPE_UNKNOWN + format: byte + description: Header of the parts set for a block. + description: >- + BlockID defines the unique ID of a block as its hash and + its `PartSetHeader`. + timestamp: + type: string + format: date-time + validator_address: + type: string + format: byte + validator_index: + type: integer + format: int32 + 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 or precommit vote from validators + for + + consensus. + total_voting_power: + type: string + format: int64 + validator_power: + type: string + format: int64 + timestamp: + type: string + format: date-time + description: >- + DuplicateVoteEvidence contains evidence of a validator signed + two conflicting votes. + light_client_attack_evidence: + type: object + properties: + conflicting_block: + type: object + properties: + signed_header: + type: object + properties: + header: + type: object + properties: + version: + title: basic block info + type: object + properties: + block: + type: string + format: uint64 + app: + type: string + format: uint64 description: >- - SignedMsgType is a type of signed message in the - consensus. + Consensus captures the consensus rules for + processing a block in the blockchain, + + including all blockchain data structures and the + rules of the application's - - SIGNED_MSG_TYPE_PREVOTE: Votes - - SIGNED_MSG_TYPE_PROPOSAL: Proposals + state transition machine. + chain_id: + type: string height: type: string format: int64 - round: - type: integer - format: int32 - block_id: + time: + type: string + format: date-time + last_block_id: type: object properties: hash: @@ -43836,268 +42714,125 @@ definitions: hash: type: string format: byte - title: PartsetHeader - title: BlockID - timestamp: + description: Header of the parts set for a block. + description: >- + BlockID defines the unique ID of a block as its + hash and its `PartSetHeader`. + title: prev block info + last_commit_hash: type: string - format: date-time - validator_address: + format: byte + description: commit from validators from the last block + title: hashes of block data + data_hash: type: string format: byte - validator_index: - type: integer - format: int32 - signature: + title: transactions + validators_hash: type: string format: byte - description: >- - Vote signature by the validator if they - participated in consensus for the - - associated block. - extension: + description: validators for the current block + title: hashes from the app output from the prev block + next_validators_hash: type: string format: byte - description: >- - Vote extension provided by the application. Only - valid for precommit - - messages. - extension_signature: + title: validators for the next block + consensus_hash: + type: string + format: byte + title: consensus params for current block + app_hash: + type: string + format: byte + title: state after txs from the previous block + last_results_hash: + type: string + format: byte + title: >- + root hash of all results from the txs from the + previous block + evidence_hash: + type: string + format: byte + description: evidence included in the block + title: consensus info + proposer_address: type: string format: byte + title: original proposer of the block + description: Header defines the structure of a block header. + commit: + type: object + properties: + height: + type: string + format: int64 + round: + type: integer + format: int32 + block_id: + type: object + properties: + hash: + type: string + format: byte + part_set_header: + type: object + properties: + total: + type: integer + format: int64 + hash: + type: string + format: byte + description: Header of the parts set for a block. description: >- - Vote extension signature by the validator if - they participated in - - consensus for the associated block. - - Only valid for precommit messages. + BlockID defines the unique ID of a block as its + hash and its `PartSetHeader`. + signatures: + type: array + items: + type: object + properties: + block_id_flag: + type: string + enum: + - BLOCK_ID_FLAG_UNKNOWN + - BLOCK_ID_FLAG_ABSENT + - BLOCK_ID_FLAG_COMMIT + - BLOCK_ID_FLAG_NIL + default: BLOCK_ID_FLAG_UNKNOWN + description: >- + - BLOCK_ID_FLAG_UNKNOWN: Indicates an + error condition + - BLOCK_ID_FLAG_ABSENT: The vote was not received + - BLOCK_ID_FLAG_COMMIT: Voted for the block that received the majority + - BLOCK_ID_FLAG_NIL: Voted for nil + title: >- + BlockIdFlag indicates which BlockID the + signature is for + validator_address: + type: string + format: byte + timestamp: + type: string + format: date-time + signature: + type: string + format: byte + description: >- + CommitSig is a part of the Vote included in a + Commit. description: >- - Vote represents a prevote or precommit vote from - validators for - - consensus. - total_voting_power: - type: string - format: int64 - validator_power: - type: string - format: int64 - timestamp: - type: string - format: date-time + Commit contains the evidence that a block was + committed by a set of validators. description: >- - DuplicateVoteEvidence contains evidence of a validator - signed two conflicting votes. - light_client_attack_evidence: + SignedHeader contains a Header(H) and Commit(H+1) with + signatures of validators who signed it. + validator_set: type: object properties: - conflicting_block: - type: object - properties: - signed_header: - type: object - properties: - header: - type: object - properties: - version: - title: basic block info - type: object - properties: - block: - type: string - format: uint64 - app: - type: string - format: uint64 - description: >- - Consensus captures the consensus rules - for processing a block in the - blockchain, - - including all blockchain data structures - and the rules of the application's - - state transition machine. - chain_id: - type: string - height: - type: string - format: int64 - time: - type: string - format: date-time - last_block_id: - type: object - properties: - hash: - type: string - format: byte - part_set_header: - type: object - properties: - total: - type: integer - format: int64 - hash: - type: string - format: byte - title: PartsetHeader - title: BlockID - last_commit_hash: - type: string - format: byte - title: hashes of block data - data_hash: - type: string - format: byte - validators_hash: - type: string - format: byte - title: >- - hashes from the app output from the prev - block - next_validators_hash: - type: string - format: byte - consensus_hash: - type: string - format: byte - app_hash: - type: string - format: byte - last_results_hash: - type: string - format: byte - evidence_hash: - type: string - format: byte - title: consensus info - proposer_address: - type: string - format: byte - description: >- - Header defines the structure of a block - header. - commit: - type: object - properties: - height: - type: string - format: int64 - round: - type: integer - format: int32 - block_id: - type: object - properties: - hash: - type: string - format: byte - part_set_header: - type: object - properties: - total: - type: integer - format: int64 - hash: - type: string - format: byte - title: PartsetHeader - title: BlockID - signatures: - type: array - items: - type: object - properties: - block_id_flag: - type: string - enum: - - BLOCK_ID_FLAG_UNKNOWN - - BLOCK_ID_FLAG_ABSENT - - BLOCK_ID_FLAG_COMMIT - - BLOCK_ID_FLAG_NIL - default: BLOCK_ID_FLAG_UNKNOWN - title: >- - BlockIdFlag indicates which BlockID the - signature is for - validator_address: - type: string - format: byte - timestamp: - type: string - format: date-time - signature: - type: string - format: byte - description: >- - CommitSig is a part of the Vote included - in a Commit. - description: >- - Commit contains the evidence that a block - was committed by a set of validators. - validator_set: - type: object - properties: - validators: - type: array - items: - type: object - properties: - address: - type: string - format: byte - pub_key: - type: object - properties: - ed25519: - type: string - format: byte - secp256k1: - type: string - format: byte - title: >- - PublicKey defines the keys available for - use with Validators - voting_power: - type: string - format: int64 - proposer_priority: - type: string - format: int64 - proposer: - type: object - properties: - address: - type: string - format: byte - pub_key: - type: object - properties: - ed25519: - type: string - format: byte - secp256k1: - type: string - format: byte - title: >- - PublicKey defines the keys available for - use with Validators - voting_power: - type: string - format: int64 - proposer_priority: - type: string - format: int64 - total_voting_power: - type: string - format: int64 - common_height: - type: string - format: int64 - byzantine_validators: + validators: type: array items: type: object @@ -44114,79 +42849,188 @@ definitions: secp256k1: type: string format: byte - title: >- - PublicKey defines the keys available for use - with Validators + description: >- + PublicKey is a ED25519 or a secp256k1 public + key. voting_power: type: string format: int64 proposer_priority: type: string format: int64 + description: >- + Validator represents a node participating in the + consensus protocol. + proposer: + type: object + properties: + address: + type: string + format: byte + pub_key: + type: object + properties: + ed25519: + type: string + format: byte + secp256k1: + type: string + format: byte + description: >- + PublicKey is a ED25519 or a secp256k1 public + key. + voting_power: + type: string + format: int64 + proposer_priority: + type: string + format: int64 + description: >- + Validator represents a node participating in the + consensus protocol. total_voting_power: type: string format: int64 - timestamp: - type: string - format: date-time - description: >- - LightClientAttackEvidence contains evidence of a set of - validators attempting to mislead a light client. - last_commit: - type: object - properties: - height: - type: string - format: int64 - round: - type: integer - format: int32 - block_id: - type: object - properties: - hash: - type: string - format: byte - part_set_header: + description: ValidatorSet defines a set of validators. + description: >- + LightBlock is a combination of SignedHeader and + ValidatorSet. It is used by light clients. + common_height: + type: string + format: int64 + byzantine_validators: + type: array + items: type: object properties: - total: - type: integer - format: int64 - hash: + address: type: string format: byte - title: PartsetHeader - title: BlockID - signatures: - type: array - items: - type: object - properties: - block_id_flag: - type: string - enum: - - BLOCK_ID_FLAG_UNKNOWN - - BLOCK_ID_FLAG_ABSENT - - BLOCK_ID_FLAG_COMMIT - - BLOCK_ID_FLAG_NIL - default: BLOCK_ID_FLAG_UNKNOWN - title: BlockIdFlag indicates which BlockID the signature is for - validator_address: - type: string - format: byte - timestamp: - type: string - format: date-time - signature: - type: string - format: byte - description: CommitSig is a part of the Vote included in a Commit. - description: >- - Commit contains the evidence that a block was committed by a set - of validators. - sdk_block: - title: 'Since: cosmos-sdk 0.47' + pub_key: + type: object + properties: + ed25519: + type: string + format: byte + secp256k1: + type: string + format: byte + description: PublicKey is a ED25519 or a secp256k1 public key. + voting_power: + type: string + format: int64 + proposer_priority: + type: string + format: int64 + description: >- + Validator represents a node participating in the consensus + protocol. + total_voting_power: + type: string + format: int64 + timestamp: + type: string + format: date-time + description: >- + LightClientAttackEvidence contains evidence of a set of + validators attempting to mislead a light client. + description: >- + Evidence is a generic type for wrapping evidence of misbehavior by a + validator. + description: EvidenceList is a list of evidence. + cometbft.types.v1.Header: + type: object + properties: + version: + title: basic block info + type: object + properties: + block: + type: string + format: uint64 + app: + type: string + format: uint64 + description: >- + Consensus captures the consensus rules for processing a block in the + blockchain, + + including all blockchain data structures and the rules of the + application's + + state transition machine. + chain_id: + type: string + height: + type: string + format: int64 + time: + type: string + format: date-time + last_block_id: + type: object + properties: + hash: + type: string + format: byte + part_set_header: + type: object + properties: + total: + type: integer + format: int64 + hash: + type: string + format: byte + description: Header of the parts set for a block. + description: >- + BlockID defines the unique ID of a block as its hash and its + `PartSetHeader`. + title: prev block info + last_commit_hash: + type: string + format: byte + description: commit from validators from the last block + title: hashes of block data + data_hash: + type: string + format: byte + title: transactions + validators_hash: + type: string + format: byte + description: validators for the current block + title: hashes from the app output from the prev block + next_validators_hash: + type: string + format: byte + title: validators for the next block + consensus_hash: + type: string + format: byte + title: consensus params for current block + app_hash: + type: string + format: byte + title: state after txs from the previous block + last_results_hash: + type: string + format: byte + title: root hash of all results from the txs from the previous block + evidence_hash: + type: string + format: byte + description: evidence included in the block + title: consensus info + proposer_address: + type: string + format: byte + title: original proposer of the block + description: Header defines the structure of a block header. + cometbft.types.v1.LightBlock: + type: object + properties: + signed_header: type: object properties: header: @@ -44233,514 +43077,80 @@ definitions: hash: type: string format: byte - title: PartsetHeader - title: BlockID + description: Header of the parts set for a block. + description: >- + BlockID defines the unique ID of a block as its hash and its + `PartSetHeader`. + title: prev block info last_commit_hash: type: string format: byte + description: commit from validators from the last block title: hashes of block data data_hash: type: string format: byte + title: transactions validators_hash: type: string format: byte + description: validators for the current block title: hashes from the app output from the prev block next_validators_hash: type: string format: byte + title: validators for the next block consensus_hash: type: string format: byte + title: consensus params for current block app_hash: type: string format: byte + title: state after txs from the previous block last_results_hash: type: string format: byte + title: root hash of all results from the txs from the previous block evidence_hash: type: string format: byte + description: evidence included in the block title: consensus info proposer_address: type: string - description: >- - proposer_address is the original block proposer address, - formatted as a Bech32 string. - - In Tendermint, this type is `bytes`, but in the SDK, we - convert it to a Bech32 string - - for better UX. - description: Header defines the structure of a Tendermint block header. - data: + format: byte + title: original proposer of the block + description: Header defines the structure of a block header. + commit: type: object properties: - txs: - type: array - items: - type: string - format: byte + height: + type: string + format: int64 + round: + type: integer + format: int32 + block_id: + type: object + properties: + hash: + type: string + format: byte + part_set_header: + type: object + properties: + total: + type: integer + format: int64 + hash: + type: string + format: byte + description: Header of the parts set for a block. description: >- - Txs that will be applied by state @ block.Height+1. - - NOTE: not all txs here are valid. We're just agreeing on the - order first. - - This means that block.AppHash does not include these txs. - title: Data contains the set of transactions included in the block - evidence: - type: object - properties: - evidence: - type: array - items: - type: object - properties: - duplicate_vote_evidence: - type: object - properties: - vote_a: - type: object - properties: - type: - type: string - enum: - - SIGNED_MSG_TYPE_UNKNOWN - - SIGNED_MSG_TYPE_PREVOTE - - SIGNED_MSG_TYPE_PRECOMMIT - - SIGNED_MSG_TYPE_PROPOSAL - default: SIGNED_MSG_TYPE_UNKNOWN - description: >- - SignedMsgType is a type of signed message in the - consensus. - - - SIGNED_MSG_TYPE_PREVOTE: Votes - - SIGNED_MSG_TYPE_PROPOSAL: Proposals - height: - type: string - format: int64 - round: - type: integer - format: int32 - block_id: - type: object - properties: - hash: - type: string - format: byte - part_set_header: - type: object - properties: - total: - type: integer - format: int64 - hash: - type: string - format: byte - title: PartsetHeader - title: BlockID - timestamp: - type: string - format: date-time - validator_address: - type: string - format: byte - validator_index: - type: integer - format: int32 - 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 or precommit vote from - validators for - - consensus. - vote_b: - type: object - properties: - type: - type: string - enum: - - SIGNED_MSG_TYPE_UNKNOWN - - SIGNED_MSG_TYPE_PREVOTE - - SIGNED_MSG_TYPE_PRECOMMIT - - SIGNED_MSG_TYPE_PROPOSAL - default: SIGNED_MSG_TYPE_UNKNOWN - description: >- - SignedMsgType is a type of signed message in the - consensus. - - - SIGNED_MSG_TYPE_PREVOTE: Votes - - SIGNED_MSG_TYPE_PROPOSAL: Proposals - height: - type: string - format: int64 - round: - type: integer - format: int32 - block_id: - type: object - properties: - hash: - type: string - format: byte - part_set_header: - type: object - properties: - total: - type: integer - format: int64 - hash: - type: string - format: byte - title: PartsetHeader - title: BlockID - timestamp: - type: string - format: date-time - validator_address: - type: string - format: byte - validator_index: - type: integer - format: int32 - 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 or precommit vote from - validators for - - consensus. - total_voting_power: - type: string - format: int64 - validator_power: - type: string - format: int64 - timestamp: - type: string - format: date-time - description: >- - DuplicateVoteEvidence contains evidence of a validator - signed two conflicting votes. - light_client_attack_evidence: - type: object - properties: - conflicting_block: - type: object - properties: - signed_header: - type: object - properties: - header: - type: object - properties: - version: - title: basic block info - type: object - properties: - block: - type: string - format: uint64 - app: - type: string - format: uint64 - description: >- - Consensus captures the consensus rules - for processing a block in the - blockchain, - - including all blockchain data structures - and the rules of the application's - - state transition machine. - chain_id: - type: string - height: - type: string - format: int64 - time: - type: string - format: date-time - last_block_id: - type: object - properties: - hash: - type: string - format: byte - part_set_header: - type: object - properties: - total: - type: integer - format: int64 - hash: - type: string - format: byte - title: PartsetHeader - title: BlockID - last_commit_hash: - type: string - format: byte - title: hashes of block data - data_hash: - type: string - format: byte - validators_hash: - type: string - format: byte - title: >- - hashes from the app output from the prev - block - next_validators_hash: - type: string - format: byte - consensus_hash: - type: string - format: byte - app_hash: - type: string - format: byte - last_results_hash: - type: string - format: byte - evidence_hash: - type: string - format: byte - title: consensus info - proposer_address: - type: string - format: byte - description: >- - Header defines the structure of a block - header. - commit: - type: object - properties: - height: - type: string - format: int64 - round: - type: integer - format: int32 - block_id: - type: object - properties: - hash: - type: string - format: byte - part_set_header: - type: object - properties: - total: - type: integer - format: int64 - hash: - type: string - format: byte - title: PartsetHeader - title: BlockID - signatures: - type: array - items: - type: object - properties: - block_id_flag: - type: string - enum: - - BLOCK_ID_FLAG_UNKNOWN - - BLOCK_ID_FLAG_ABSENT - - BLOCK_ID_FLAG_COMMIT - - BLOCK_ID_FLAG_NIL - default: BLOCK_ID_FLAG_UNKNOWN - title: >- - BlockIdFlag indicates which BlockID the - signature is for - validator_address: - type: string - format: byte - timestamp: - type: string - format: date-time - signature: - type: string - format: byte - description: >- - CommitSig is a part of the Vote included - in a Commit. - description: >- - Commit contains the evidence that a block - was committed by a set of validators. - validator_set: - type: object - properties: - validators: - type: array - items: - type: object - properties: - address: - type: string - format: byte - pub_key: - type: object - properties: - ed25519: - type: string - format: byte - secp256k1: - type: string - format: byte - title: >- - PublicKey defines the keys available for - use with Validators - voting_power: - type: string - format: int64 - proposer_priority: - type: string - format: int64 - proposer: - type: object - properties: - address: - type: string - format: byte - pub_key: - type: object - properties: - ed25519: - type: string - format: byte - secp256k1: - type: string - format: byte - title: >- - PublicKey defines the keys available for - use with Validators - voting_power: - type: string - format: int64 - proposer_priority: - type: string - format: int64 - total_voting_power: - type: string - format: int64 - common_height: - type: string - format: int64 - byzantine_validators: - type: array - items: - type: object - properties: - address: - type: string - format: byte - pub_key: - type: object - properties: - ed25519: - type: string - format: byte - secp256k1: - type: string - format: byte - title: >- - PublicKey defines the keys available for use - with Validators - voting_power: - type: string - format: int64 - proposer_priority: - type: string - format: int64 - total_voting_power: - type: string - format: int64 - timestamp: - type: string - format: date-time - description: >- - LightClientAttackEvidence contains evidence of a set of - validators attempting to mislead a light client. - last_commit: - type: object - properties: - height: - type: string - format: int64 - round: - type: integer - format: int32 - block_id: - type: object - properties: - hash: - type: string - format: byte - part_set_header: - type: object - properties: - total: - type: integer - format: int64 - hash: - type: string - format: byte - title: PartsetHeader - title: BlockID - signatures: + BlockID defines the unique ID of a block as its hash and its + `PartSetHeader`. + signatures: type: array items: type: object @@ -44753,6 +43163,11 @@ definitions: - BLOCK_ID_FLAG_COMMIT - BLOCK_ID_FLAG_NIL default: BLOCK_ID_FLAG_UNKNOWN + description: |- + - BLOCK_ID_FLAG_UNKNOWN: Indicates an error condition + - BLOCK_ID_FLAG_ABSENT: The vote was not received + - BLOCK_ID_FLAG_COMMIT: Voted for the block that received the majority + - BLOCK_ID_FLAG_NIL: Voted for nil title: BlockIdFlag indicates which BlockID the signature is for validator_address: type: string @@ -44767,609 +43182,1416 @@ definitions: description: >- Commit contains the evidence that a block was committed by a set of validators. - description: |- - Block is tendermint type Block, with the Header proposer address - field converted to bech32 string. - description: >- - GetBlockByHeightResponse is the response type for the - Query/GetBlockByHeight RPC method. - cosmos.base.tendermint.v1beta1.GetLatestBlockResponse: - type: object - properties: - block_id: + description: >- + SignedHeader contains a Header(H) and Commit(H+1) with signatures of + validators who signed it. + validator_set: type: object properties: - hash: - type: string - format: byte - part_set_header: + validators: + type: array + items: + type: object + properties: + address: + type: string + format: byte + pub_key: + type: object + properties: + ed25519: + type: string + format: byte + secp256k1: + type: string + format: byte + description: PublicKey is a ED25519 or a secp256k1 public key. + voting_power: + type: string + format: int64 + proposer_priority: + type: string + format: int64 + description: >- + Validator represents a node participating in the consensus + protocol. + proposer: type: object properties: - total: - type: integer - format: int64 - hash: + address: type: string format: byte - title: PartsetHeader - title: BlockID - block: - title: 'Deprecated: please use `sdk_block` instead' - type: object - properties: - header: - type: object - properties: - version: - title: basic block info + pub_key: type: object properties: - block: + ed25519: type: string - format: uint64 - app: + format: byte + secp256k1: type: string - format: uint64 - description: >- - Consensus captures the consensus rules for processing a block - in the blockchain, - - including all blockchain data structures and the rules of the - application's - - state transition machine. - chain_id: - type: string - height: + format: byte + description: PublicKey is a ED25519 or a secp256k1 public key. + voting_power: type: string format: int64 - time: + proposer_priority: type: string - format: date-time - last_block_id: + format: int64 + description: >- + Validator represents a node participating in the consensus + protocol. + total_voting_power: + type: string + format: int64 + description: ValidatorSet defines a set of validators. + description: >- + LightBlock is a combination of SignedHeader and ValidatorSet. It is used + by light clients. + cometbft.types.v1.LightClientAttackEvidence: + type: object + properties: + conflicting_block: + type: object + properties: + signed_header: + type: object + properties: + header: type: object properties: - hash: - type: string - format: byte - part_set_header: + version: + title: basic block info + type: object + properties: + block: + type: string + format: uint64 + app: + type: string + format: uint64 + description: >- + Consensus captures the consensus rules for processing a + block in the blockchain, + + including all blockchain data structures and the rules of + the application's + + state transition machine. + chain_id: + type: string + height: + type: string + format: int64 + time: + type: string + format: date-time + last_block_id: type: object properties: - total: - type: integer - format: int64 hash: type: string format: byte - title: PartsetHeader - title: BlockID - last_commit_hash: - type: string - format: byte - title: hashes of block data - data_hash: - type: string - format: byte - validators_hash: + part_set_header: + type: object + properties: + total: + type: integer + format: int64 + hash: + type: string + format: byte + description: Header of the parts set for a block. + description: >- + BlockID defines the unique ID of a block as its hash and + its `PartSetHeader`. + title: prev block info + last_commit_hash: + type: string + format: byte + description: commit from validators from the last block + title: hashes of block data + data_hash: + type: string + format: byte + title: transactions + validators_hash: + type: string + format: byte + description: validators for the current block + title: hashes from the app output from the prev block + next_validators_hash: + type: string + format: byte + title: validators for the next block + consensus_hash: + type: string + format: byte + title: consensus params for current block + app_hash: + type: string + format: byte + title: state after txs from the previous block + last_results_hash: + type: string + format: byte + title: >- + root hash of all results from the txs from the previous + block + evidence_hash: + type: string + format: byte + description: evidence included in the block + title: consensus info + proposer_address: + type: string + format: byte + title: original proposer of the block + description: Header defines the structure of a block header. + commit: + type: object + properties: + height: + type: string + format: int64 + round: + type: integer + format: int32 + block_id: + type: object + properties: + hash: + type: string + format: byte + part_set_header: + type: object + properties: + total: + type: integer + format: int64 + hash: + type: string + format: byte + description: Header of the parts set for a block. + description: >- + BlockID defines the unique ID of a block as its hash and + its `PartSetHeader`. + signatures: + type: array + items: + type: object + properties: + block_id_flag: + type: string + enum: + - BLOCK_ID_FLAG_UNKNOWN + - BLOCK_ID_FLAG_ABSENT + - BLOCK_ID_FLAG_COMMIT + - BLOCK_ID_FLAG_NIL + default: BLOCK_ID_FLAG_UNKNOWN + description: >- + - BLOCK_ID_FLAG_UNKNOWN: Indicates an error + condition + - BLOCK_ID_FLAG_ABSENT: The vote was not received + - BLOCK_ID_FLAG_COMMIT: Voted for the block that received the majority + - BLOCK_ID_FLAG_NIL: Voted for nil + title: >- + BlockIdFlag indicates which BlockID the signature is + for + validator_address: + type: string + format: byte + timestamp: + type: string + format: date-time + signature: + type: string + format: byte + description: CommitSig is a part of the Vote included in a Commit. + description: >- + Commit contains the evidence that a block was committed by a + set of validators. + description: >- + SignedHeader contains a Header(H) and Commit(H+1) with signatures + of validators who signed it. + validator_set: + type: object + properties: + validators: + type: array + items: + type: object + properties: + address: + type: string + format: byte + pub_key: + type: object + properties: + ed25519: + type: string + format: byte + secp256k1: + type: string + format: byte + description: PublicKey is a ED25519 or a secp256k1 public key. + voting_power: + type: string + format: int64 + proposer_priority: + type: string + format: int64 + description: >- + Validator represents a node participating in the consensus + protocol. + proposer: + type: object + properties: + address: + type: string + format: byte + pub_key: + type: object + properties: + ed25519: + type: string + format: byte + secp256k1: + type: string + format: byte + description: PublicKey is a ED25519 or a secp256k1 public key. + voting_power: + type: string + format: int64 + proposer_priority: + type: string + format: int64 + description: >- + Validator represents a node participating in the consensus + protocol. + total_voting_power: type: string - format: byte - title: hashes from the app output from the prev block - next_validators_hash: + format: int64 + description: ValidatorSet defines a set of validators. + description: >- + LightBlock is a combination of SignedHeader and ValidatorSet. It is + used by light clients. + common_height: + type: string + format: int64 + byzantine_validators: + type: array + items: + type: object + properties: + address: + type: string + format: byte + pub_key: + type: object + properties: + ed25519: + type: string + format: byte + secp256k1: + type: string + format: byte + description: PublicKey is a ED25519 or a secp256k1 public key. + voting_power: + type: string + format: int64 + proposer_priority: + type: string + format: int64 + description: Validator represents a node participating in the consensus protocol. + total_voting_power: + type: string + format: int64 + timestamp: + type: string + format: date-time + description: >- + LightClientAttackEvidence contains evidence of a set of validators + attempting to mislead a light client. + cometbft.types.v1.PartSetHeader: + type: object + properties: + total: + type: integer + format: int64 + hash: + type: string + format: byte + description: Header of the parts set for a block. + cometbft.types.v1.SignedHeader: + type: object + properties: + header: + type: object + properties: + version: + title: basic block info + type: object + properties: + block: type: string - format: byte - consensus_hash: + format: uint64 + app: type: string - format: byte - app_hash: + format: uint64 + description: >- + Consensus captures the consensus rules for processing a block in + the blockchain, + + including all blockchain data structures and the rules of the + application's + + state transition machine. + chain_id: + type: string + height: + type: string + format: int64 + time: + type: string + format: date-time + last_block_id: + type: object + properties: + hash: type: string format: byte - last_results_hash: + part_set_header: + type: object + properties: + total: + type: integer + format: int64 + hash: + type: string + format: byte + description: Header of the parts set for a block. + description: >- + BlockID defines the unique ID of a block as its hash and its + `PartSetHeader`. + title: prev block info + last_commit_hash: + type: string + format: byte + description: commit from validators from the last block + title: hashes of block data + data_hash: + type: string + format: byte + title: transactions + validators_hash: + type: string + format: byte + description: validators for the current block + title: hashes from the app output from the prev block + next_validators_hash: + type: string + format: byte + title: validators for the next block + consensus_hash: + type: string + format: byte + title: consensus params for current block + app_hash: + type: string + format: byte + title: state after txs from the previous block + last_results_hash: + type: string + format: byte + title: root hash of all results from the txs from the previous block + evidence_hash: + type: string + format: byte + description: evidence included in the block + title: consensus info + proposer_address: + type: string + format: byte + title: original proposer of the block + description: Header defines the structure of a block header. + commit: + type: object + properties: + height: + type: string + format: int64 + round: + type: integer + format: int32 + block_id: + type: object + properties: + hash: type: string format: byte - evidence_hash: + part_set_header: + type: object + properties: + total: + type: integer + format: int64 + hash: + type: string + format: byte + description: Header of the parts set for a block. + description: >- + BlockID defines the unique ID of a block as its hash and its + `PartSetHeader`. + signatures: + type: array + items: + type: object + properties: + block_id_flag: + type: string + enum: + - BLOCK_ID_FLAG_UNKNOWN + - BLOCK_ID_FLAG_ABSENT + - BLOCK_ID_FLAG_COMMIT + - BLOCK_ID_FLAG_NIL + default: BLOCK_ID_FLAG_UNKNOWN + description: |- + - BLOCK_ID_FLAG_UNKNOWN: Indicates an error condition + - BLOCK_ID_FLAG_ABSENT: The vote was not received + - BLOCK_ID_FLAG_COMMIT: Voted for the block that received the majority + - BLOCK_ID_FLAG_NIL: Voted for nil + title: BlockIdFlag indicates which BlockID the signature is for + validator_address: + type: string + format: byte + timestamp: + type: string + format: date-time + signature: + type: string + format: byte + description: CommitSig is a part of the Vote included in a Commit. + description: >- + Commit contains the evidence that a block was committed by a set of + validators. + description: >- + SignedHeader contains a Header(H) and Commit(H+1) with signatures of + validators who signed it. + cometbft.types.v1.SignedMsgType: + type: string + enum: + - SIGNED_MSG_TYPE_UNKNOWN + - SIGNED_MSG_TYPE_PREVOTE + - SIGNED_MSG_TYPE_PRECOMMIT + - SIGNED_MSG_TYPE_PROPOSAL + default: SIGNED_MSG_TYPE_UNKNOWN + description: |- + SignedMsgType is a type of signed message in the consensus. + + - SIGNED_MSG_TYPE_UNKNOWN: Unknown + - SIGNED_MSG_TYPE_PREVOTE: Prevote + - SIGNED_MSG_TYPE_PRECOMMIT: Precommit + - SIGNED_MSG_TYPE_PROPOSAL: Proposal + cometbft.types.v1.Validator: + type: object + properties: + address: + type: string + format: byte + pub_key: + type: object + properties: + ed25519: + type: string + format: byte + secp256k1: + type: string + format: byte + description: PublicKey is a ED25519 or a secp256k1 public key. + voting_power: + type: string + format: int64 + proposer_priority: + type: string + format: int64 + description: Validator represents a node participating in the consensus protocol. + cometbft.types.v1.ValidatorSet: + type: object + properties: + validators: + type: array + items: + type: object + properties: + address: + type: string + format: byte + pub_key: + type: object + properties: + ed25519: + type: string + format: byte + secp256k1: + type: string + format: byte + description: PublicKey is a ED25519 or a secp256k1 public key. + voting_power: + type: string + format: int64 + proposer_priority: + type: string + format: int64 + description: Validator represents a node participating in the consensus protocol. + proposer: + type: object + properties: + address: + type: string + format: byte + pub_key: + type: object + properties: + ed25519: type: string format: byte - title: consensus info - proposer_address: + secp256k1: type: string format: byte - description: Header defines the structure of a block header. - data: - type: object - properties: - txs: - type: array - items: - type: string - format: byte - description: >- - Txs that will be applied by state @ block.Height+1. - - NOTE: not all txs here are valid. We're just agreeing on the - order first. + description: PublicKey is a ED25519 or a secp256k1 public key. + voting_power: + type: string + format: int64 + proposer_priority: + type: string + format: int64 + description: Validator represents a node participating in the consensus protocol. + total_voting_power: + type: string + format: int64 + description: ValidatorSet defines a set of validators. + cometbft.types.v1.Vote: + type: object + properties: + type: + type: string + enum: + - SIGNED_MSG_TYPE_UNKNOWN + - SIGNED_MSG_TYPE_PREVOTE + - SIGNED_MSG_TYPE_PRECOMMIT + - SIGNED_MSG_TYPE_PROPOSAL + default: SIGNED_MSG_TYPE_UNKNOWN + description: |- + SignedMsgType is a type of signed message in the consensus. - This means that block.AppHash does not include these txs. - title: Data contains the set of transactions included in the block - evidence: + - SIGNED_MSG_TYPE_UNKNOWN: Unknown + - SIGNED_MSG_TYPE_PREVOTE: Prevote + - SIGNED_MSG_TYPE_PRECOMMIT: Precommit + - SIGNED_MSG_TYPE_PROPOSAL: Proposal + height: + type: string + format: int64 + round: + type: integer + format: int32 + block_id: + type: object + properties: + hash: + type: string + format: byte + part_set_header: type: object properties: - evidence: - type: array - items: - type: object - properties: - duplicate_vote_evidence: - type: object - properties: - vote_a: - type: object - properties: - type: - type: string - enum: - - SIGNED_MSG_TYPE_UNKNOWN - - SIGNED_MSG_TYPE_PREVOTE - - SIGNED_MSG_TYPE_PRECOMMIT - - SIGNED_MSG_TYPE_PROPOSAL - default: SIGNED_MSG_TYPE_UNKNOWN - description: >- - SignedMsgType is a type of signed message in the - consensus. - - - SIGNED_MSG_TYPE_PREVOTE: Votes - - SIGNED_MSG_TYPE_PROPOSAL: Proposals - height: - type: string - format: int64 - round: - type: integer - format: int32 - block_id: - type: object - properties: - hash: - type: string - format: byte - part_set_header: - type: object - properties: - total: - type: integer - format: int64 - hash: - type: string - format: byte - title: PartsetHeader - title: BlockID - timestamp: - type: string - format: date-time - validator_address: - type: string - format: byte - validator_index: - type: integer - format: int32 - signature: - type: string - format: byte - description: >- - Vote signature by the validator if they - participated in consensus for the + total: + type: integer + format: int64 + hash: + type: string + format: byte + description: Header of the parts set for a block. + description: >- + BlockID defines the unique ID of a block as its hash and its + `PartSetHeader`. + timestamp: + type: string + format: date-time + validator_address: + type: string + format: byte + validator_index: + type: integer + format: int32 + 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 + 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. + cometbft.version.v1.Consensus: + type: object + properties: + block: + type: string + format: uint64 + app: + type: string + format: uint64 + description: >- + Consensus captures the consensus rules for processing a block in the + blockchain, - messages. - extension_signature: - type: string - format: byte - description: >- - Vote extension signature by the validator if - they participated in + including all blockchain data structures and the rules of the + application's - consensus for the associated block. + state transition machine. + cosmos.base.tendermint.v1beta1.ABCIQueryResponse: + type: object + properties: + code: + type: integer + format: int64 + log: + type: string + title: nondeterministic + info: + type: string + title: nondeterministic + index: + type: string + format: int64 + key: + type: string + format: byte + value: + type: string + format: byte + height: + type: string + format: int64 + codespace: + type: string + proof_ops: + type: object + properties: + ops: + type: array + items: + type: object + properties: + type: + type: string + key: + type: string + format: byte + data: + type: string + format: byte + title: |- + ProofOp defines an operation used for calculating Merkle root + The data could be arbitrary format, providing necessary data + for example neighbouring node hash + title: ProofOps is Merkle proof defined by the list of ProofOps + description: >- + ABCIQueryResponse defines the response structure for the ABCIQuery gRPC + query. - Only valid for precommit messages. - description: >- - Vote represents a prevote or precommit vote from - validators for + Note: This type is a duplicate of the ResponseQuery proto type defined in + + Tendermint. + cosmos.base.tendermint.v1beta1.Block: + type: object + properties: + header: + type: object + properties: + version: + title: basic block info + type: object + properties: + block: + type: string + format: uint64 + app: + type: string + format: uint64 + description: >- + Consensus captures the consensus rules for processing a block in + the blockchain, + + including all blockchain data structures and the rules of the + application's + + state transition machine. + chain_id: + type: string + height: + type: string + format: int64 + time: + type: string + format: date-time + last_block_id: + type: object + properties: + hash: + type: string + format: byte + part_set_header: + type: object + properties: + total: + type: integer + format: int64 + hash: + type: string + format: byte + description: Header of the parts set for a block. + description: >- + BlockID defines the unique ID of a block as its hash and its + `PartSetHeader`. + title: prev block info + last_commit_hash: + type: string + format: byte + description: commit from validators from the last block + title: hashes of block data + data_hash: + type: string + format: byte + title: transactions + validators_hash: + type: string + format: byte + description: validators for the current block + title: hashes from the app output from the prev block + next_validators_hash: + type: string + format: byte + title: validators for the next block + consensus_hash: + type: string + format: byte + title: consensus params for current block + app_hash: + type: string + format: byte + title: state after txs from the previous block + last_results_hash: + type: string + format: byte + title: root hash of all results from the txs from the previous block + evidence_hash: + type: string + format: byte + description: evidence included in the block + title: consensus info + proposer_address: + type: string + description: >- + proposer_address is the original block proposer address, formatted + as a Bech32 string. + + In Tendermint, this type is `bytes`, but in the SDK, we convert it + to a Bech32 string + + for better UX. + + + original proposer of the block + description: Header defines the structure of a Tendermint block header. + data: + type: object + properties: + txs: + type: array + items: + type: string + format: byte + description: >- + Txs that will be applied by state @ block.Height+1. + + NOTE: not all txs here are valid. We're just agreeing on the + order first. + + This means that block.AppHash does not include these txs. + title: Data contains the set of transactions included in the block + evidence: + type: object + properties: + evidence: + type: array + items: + type: object + properties: + duplicate_vote_evidence: + type: object + properties: + vote_a: + type: object + properties: + type: + type: string + enum: + - SIGNED_MSG_TYPE_UNKNOWN + - SIGNED_MSG_TYPE_PREVOTE + - SIGNED_MSG_TYPE_PRECOMMIT + - SIGNED_MSG_TYPE_PROPOSAL + default: SIGNED_MSG_TYPE_UNKNOWN + description: >- + SignedMsgType is a type of signed message in the consensus. - vote_b: + + - SIGNED_MSG_TYPE_UNKNOWN: Unknown + - SIGNED_MSG_TYPE_PREVOTE: Prevote + - SIGNED_MSG_TYPE_PRECOMMIT: Precommit + - SIGNED_MSG_TYPE_PROPOSAL: Proposal + height: + type: string + format: int64 + round: + type: integer + format: int32 + block_id: type: object properties: - type: - type: string - enum: - - SIGNED_MSG_TYPE_UNKNOWN - - SIGNED_MSG_TYPE_PREVOTE - - SIGNED_MSG_TYPE_PRECOMMIT - - SIGNED_MSG_TYPE_PROPOSAL - default: SIGNED_MSG_TYPE_UNKNOWN - description: >- - SignedMsgType is a type of signed message in the - consensus. - - - SIGNED_MSG_TYPE_PREVOTE: Votes - - SIGNED_MSG_TYPE_PROPOSAL: Proposals - height: + hash: type: string - format: int64 - round: - type: integer - format: int32 - block_id: + format: byte + part_set_header: type: object properties: + total: + type: integer + format: int64 hash: type: string format: byte - part_set_header: - type: object - properties: - total: - type: integer - format: int64 - hash: - type: string - format: byte - title: PartsetHeader - title: BlockID - timestamp: - type: string - format: date-time - validator_address: - type: string - format: byte - validator_index: - type: integer - format: int32 - signature: - type: string - format: byte - description: >- - Vote signature by the validator if they - participated in consensus for the + description: Header of the parts set for a block. + description: >- + BlockID defines the unique ID of a block as its hash + and its `PartSetHeader`. + timestamp: + type: string + format: date-time + validator_address: + type: string + format: byte + validator_index: + type: integer + format: int32 + 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 + 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 + messages. + extension_signature: + type: string + format: byte + description: >- + Vote extension signature by the validator if they + participated in - consensus for the associated block. + consensus for the associated block. - Only valid for precommit messages. - description: >- - Vote represents a prevote or precommit vote from - validators for + Only valid for precommit messages. + description: >- + Vote represents a prevote or precommit vote from + validators for - consensus. - total_voting_power: + consensus. + vote_b: + type: object + properties: + type: type: string - format: int64 - validator_power: + enum: + - SIGNED_MSG_TYPE_UNKNOWN + - SIGNED_MSG_TYPE_PREVOTE + - SIGNED_MSG_TYPE_PRECOMMIT + - SIGNED_MSG_TYPE_PROPOSAL + default: SIGNED_MSG_TYPE_UNKNOWN + description: >- + SignedMsgType is a type of signed message in the + consensus. + + - SIGNED_MSG_TYPE_UNKNOWN: Unknown + - SIGNED_MSG_TYPE_PREVOTE: Prevote + - SIGNED_MSG_TYPE_PRECOMMIT: Precommit + - SIGNED_MSG_TYPE_PROPOSAL: Proposal + height: type: string format: int64 + round: + type: integer + format: int32 + block_id: + type: object + properties: + hash: + type: string + format: byte + part_set_header: + type: object + properties: + total: + type: integer + format: int64 + hash: + type: string + format: byte + description: Header of the parts set for a block. + description: >- + BlockID defines the unique ID of a block as its hash + and its `PartSetHeader`. timestamp: type: string format: date-time + validator_address: + type: string + format: byte + validator_index: + type: integer + format: int32 + 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: >- - DuplicateVoteEvidence contains evidence of a validator - signed two conflicting votes. - light_client_attack_evidence: + Vote represents a prevote or precommit vote from + validators for + + consensus. + total_voting_power: + type: string + format: int64 + validator_power: + type: string + format: int64 + timestamp: + type: string + format: date-time + description: >- + DuplicateVoteEvidence contains evidence of a validator + signed two conflicting votes. + light_client_attack_evidence: + type: object + properties: + conflicting_block: type: object properties: - conflicting_block: + signed_header: type: object properties: - signed_header: + header: type: object properties: - header: + version: + title: basic block info type: object properties: - version: - title: basic block info - type: object - properties: - block: - type: string - format: uint64 - app: - type: string - format: uint64 - description: >- - Consensus captures the consensus rules - for processing a block in the - blockchain, - - including all blockchain data structures - and the rules of the application's - - state transition machine. - chain_id: + block: type: string - height: + format: uint64 + app: type: string - format: int64 - time: + format: uint64 + description: >- + Consensus captures the consensus rules for + processing a block in the blockchain, + + including all blockchain data structures and + the rules of the application's + + state transition machine. + chain_id: + type: string + height: + type: string + format: int64 + time: + type: string + format: date-time + last_block_id: + type: object + properties: + hash: type: string - format: date-time - last_block_id: + format: byte + part_set_header: type: object properties: + total: + type: integer + format: int64 hash: type: string format: byte - part_set_header: - type: object - properties: - total: - type: integer - format: int64 - hash: - type: string - format: byte - title: PartsetHeader - title: BlockID - last_commit_hash: - type: string - format: byte - title: hashes of block data - data_hash: - type: string - format: byte - validators_hash: - type: string - format: byte - title: >- - hashes from the app output from the prev - block - next_validators_hash: - type: string - format: byte - consensus_hash: - type: string - format: byte - app_hash: - type: string - format: byte - last_results_hash: - type: string - format: byte - evidence_hash: - type: string - format: byte - title: consensus info - proposer_address: - type: string - format: byte + description: Header of the parts set for a block. description: >- - Header defines the structure of a block - header. - commit: + BlockID defines the unique ID of a block as + its hash and its `PartSetHeader`. + title: prev block info + last_commit_hash: + type: string + format: byte + description: commit from validators from the last block + title: hashes of block data + data_hash: + type: string + format: byte + title: transactions + validators_hash: + type: string + format: byte + description: validators for the current block + title: >- + hashes from the app output from the prev + block + next_validators_hash: + type: string + format: byte + title: validators for the next block + consensus_hash: + type: string + format: byte + title: consensus params for current block + app_hash: + type: string + format: byte + title: state after txs from the previous block + last_results_hash: + type: string + format: byte + title: >- + root hash of all results from the txs from + the previous block + evidence_hash: + type: string + format: byte + description: evidence included in the block + title: consensus info + proposer_address: + type: string + format: byte + title: original proposer of the block + description: Header defines the structure of a block header. + commit: + type: object + properties: + height: + type: string + format: int64 + round: + type: integer + format: int32 + block_id: type: object properties: - height: + hash: type: string - format: int64 - round: - type: integer - format: int32 - block_id: + format: byte + part_set_header: type: object properties: + total: + type: integer + format: int64 hash: type: string format: byte - part_set_header: - type: object - properties: - total: - type: integer - format: int64 - hash: - type: string - format: byte - title: PartsetHeader - title: BlockID - signatures: - type: array - items: - type: object - properties: - block_id_flag: - type: string - enum: - - BLOCK_ID_FLAG_UNKNOWN - - BLOCK_ID_FLAG_ABSENT - - BLOCK_ID_FLAG_COMMIT - - BLOCK_ID_FLAG_NIL - default: BLOCK_ID_FLAG_UNKNOWN - title: >- - BlockIdFlag indicates which BlockID the - signature is for - validator_address: - type: string - format: byte - timestamp: - type: string - format: date-time - signature: - type: string - format: byte - description: >- - CommitSig is a part of the Vote included - in a Commit. + description: Header of the parts set for a block. description: >- - Commit contains the evidence that a block - was committed by a set of validators. - validator_set: - type: object - properties: - validators: + BlockID defines the unique ID of a block as + its hash and its `PartSetHeader`. + signatures: type: array items: type: object properties: - address: + block_id_flag: type: string - format: byte - pub_key: - type: object - properties: - ed25519: - type: string - format: byte - secp256k1: - type: string - format: byte + enum: + - BLOCK_ID_FLAG_UNKNOWN + - BLOCK_ID_FLAG_ABSENT + - BLOCK_ID_FLAG_COMMIT + - BLOCK_ID_FLAG_NIL + default: BLOCK_ID_FLAG_UNKNOWN + description: >- + - BLOCK_ID_FLAG_UNKNOWN: Indicates an + error condition + - BLOCK_ID_FLAG_ABSENT: The vote was not received + - BLOCK_ID_FLAG_COMMIT: Voted for the block that received the majority + - BLOCK_ID_FLAG_NIL: Voted for nil title: >- - PublicKey defines the keys available for - use with Validators - voting_power: + BlockIdFlag indicates which BlockID the + signature is for + validator_address: type: string - format: int64 - proposer_priority: + format: byte + timestamp: type: string - format: int64 - proposer: + format: date-time + signature: + type: string + format: byte + description: >- + CommitSig is a part of the Vote included + in a Commit. + description: >- + Commit contains the evidence that a block was + committed by a set of validators. + description: >- + SignedHeader contains a Header(H) and Commit(H+1) + with signatures of validators who signed it. + validator_set: + type: object + properties: + validators: + type: array + items: + type: object + properties: + address: + type: string + format: byte + pub_key: + type: object + properties: + ed25519: + type: string + format: byte + secp256k1: + type: string + format: byte + description: >- + PublicKey is a ED25519 or a secp256k1 + public key. + voting_power: + type: string + format: int64 + proposer_priority: + type: string + format: int64 + description: >- + Validator represents a node participating in + the consensus protocol. + proposer: + type: object + properties: + address: + type: string + format: byte + pub_key: type: object properties: - address: + ed25519: type: string format: byte - pub_key: - type: object - properties: - ed25519: - type: string - format: byte - secp256k1: - type: string - format: byte - title: >- - PublicKey defines the keys available for - use with Validators - voting_power: - type: string - format: int64 - proposer_priority: + secp256k1: type: string - format: int64 - total_voting_power: + format: byte + description: >- + PublicKey is a ED25519 or a secp256k1 public + key. + voting_power: type: string format: int64 - common_height: - type: string - format: int64 - byzantine_validators: - type: array - items: + proposer_priority: + type: string + format: int64 + description: >- + Validator represents a node participating in the + consensus protocol. + total_voting_power: + type: string + format: int64 + description: ValidatorSet defines a set of validators. + description: >- + LightBlock is a combination of SignedHeader and + ValidatorSet. It is used by light clients. + common_height: + type: string + format: int64 + byzantine_validators: + type: array + items: + type: object + properties: + address: + type: string + format: byte + pub_key: type: object properties: - address: + ed25519: type: string format: byte - pub_key: - type: object - properties: - ed25519: - type: string - format: byte - secp256k1: - type: string - format: byte - title: >- - PublicKey defines the keys available for use - with Validators - voting_power: - type: string - format: int64 - proposer_priority: + secp256k1: type: string - format: int64 - total_voting_power: - type: string - format: int64 - timestamp: - type: string - format: date-time - description: >- - LightClientAttackEvidence contains evidence of a set of - validators attempting to mislead a light client. - last_commit: + format: byte + description: PublicKey is a ED25519 or a secp256k1 public key. + voting_power: + type: string + format: int64 + proposer_priority: + type: string + format: int64 + description: >- + Validator represents a node participating in the + consensus protocol. + total_voting_power: + type: string + format: int64 + timestamp: + type: string + format: date-time + description: >- + LightClientAttackEvidence contains evidence of a set of + validators attempting to mislead a light client. + description: >- + Evidence is a generic type for wrapping evidence of misbehavior + by a validator. + description: EvidenceList is a list of evidence. + last_commit: + type: object + properties: + height: + type: string + format: int64 + round: + type: integer + format: int32 + block_id: type: object properties: - height: + hash: type: string - format: int64 - round: - type: integer - format: int32 - block_id: + format: byte + part_set_header: type: object properties: + total: + type: integer + format: int64 hash: type: string format: byte - part_set_header: - type: object - properties: - total: - type: integer - format: int64 - hash: - type: string - format: byte - title: PartsetHeader - title: BlockID - signatures: - type: array - items: - type: object - properties: - block_id_flag: - type: string - enum: - - BLOCK_ID_FLAG_UNKNOWN - - BLOCK_ID_FLAG_ABSENT - - BLOCK_ID_FLAG_COMMIT - - BLOCK_ID_FLAG_NIL - default: BLOCK_ID_FLAG_UNKNOWN - title: BlockIdFlag indicates which BlockID the signature is for - validator_address: - type: string - format: byte - timestamp: - type: string - format: date-time - signature: - type: string - format: byte - description: CommitSig is a part of the Vote included in a Commit. + description: Header of the parts set for a block. description: >- - Commit contains the evidence that a block was committed by a set - of validators. - sdk_block: - title: 'Since: cosmos-sdk 0.47' + BlockID defines the unique ID of a block as its hash and its + `PartSetHeader`. + signatures: + type: array + items: + type: object + properties: + block_id_flag: + type: string + enum: + - BLOCK_ID_FLAG_UNKNOWN + - BLOCK_ID_FLAG_ABSENT + - BLOCK_ID_FLAG_COMMIT + - BLOCK_ID_FLAG_NIL + default: BLOCK_ID_FLAG_UNKNOWN + description: |- + - BLOCK_ID_FLAG_UNKNOWN: Indicates an error condition + - BLOCK_ID_FLAG_ABSENT: The vote was not received + - BLOCK_ID_FLAG_COMMIT: Voted for the block that received the majority + - BLOCK_ID_FLAG_NIL: Voted for nil + title: BlockIdFlag indicates which BlockID the signature is for + validator_address: + type: string + format: byte + timestamp: + type: string + format: date-time + signature: + type: string + format: byte + description: CommitSig is a part of the Vote included in a Commit. + description: >- + Commit contains the evidence that a block was committed by a set of + validators. + description: |- + Block is tendermint type Block, with the Header proposer address + field converted to bech32 string. + cosmos.base.tendermint.v1beta1.GetBlockByHeightResponse: + type: object + properties: + block_id: + type: object + properties: + hash: + type: string + format: byte + part_set_header: + type: object + properties: + total: + type: integer + format: int64 + hash: + type: string + format: byte + description: Header of the parts set for a block. + description: >- + BlockID defines the unique ID of a block as its hash and its + `PartSetHeader`. + block: + title: 'Deprecated: please use `sdk_block` instead' type: object properties: header: @@ -45416,46 +44638,51 @@ definitions: hash: type: string format: byte - title: PartsetHeader - title: BlockID + description: Header of the parts set for a block. + description: >- + BlockID defines the unique ID of a block as its hash and its + `PartSetHeader`. + title: prev block info last_commit_hash: type: string format: byte + description: commit from validators from the last block title: hashes of block data data_hash: type: string format: byte + title: transactions validators_hash: type: string format: byte + description: validators for the current block title: hashes from the app output from the prev block next_validators_hash: type: string format: byte + title: validators for the next block consensus_hash: type: string format: byte + title: consensus params for current block app_hash: type: string format: byte + title: state after txs from the previous block last_results_hash: type: string format: byte + title: root hash of all results from the txs from the previous block evidence_hash: type: string format: byte + description: evidence included in the block title: consensus info proposer_address: type: string - description: >- - proposer_address is the original block proposer address, - formatted as a Bech32 string. - - In Tendermint, this type is `bytes`, but in the SDK, we - convert it to a Bech32 string - - for better UX. - description: Header defines the structure of a Tendermint block header. + format: byte + title: original proposer of the block + description: Header defines the structure of a block header. data: type: object properties: @@ -45498,8 +44725,10 @@ definitions: SignedMsgType is a type of signed message in the consensus. - - SIGNED_MSG_TYPE_PREVOTE: Votes - - SIGNED_MSG_TYPE_PROPOSAL: Proposals + - SIGNED_MSG_TYPE_UNKNOWN: Unknown + - SIGNED_MSG_TYPE_PREVOTE: Prevote + - SIGNED_MSG_TYPE_PRECOMMIT: Precommit + - SIGNED_MSG_TYPE_PROPOSAL: Proposal height: type: string format: int64 @@ -45521,8 +44750,10 @@ definitions: hash: type: string format: byte - title: PartsetHeader - title: BlockID + description: Header of the parts set for a block. + description: >- + BlockID defines the unique ID of a block as its + hash and its `PartSetHeader`. timestamp: type: string format: date-time @@ -45578,8 +44809,10 @@ definitions: SignedMsgType is a type of signed message in the consensus. - - SIGNED_MSG_TYPE_PREVOTE: Votes - - SIGNED_MSG_TYPE_PROPOSAL: Proposals + - SIGNED_MSG_TYPE_UNKNOWN: Unknown + - SIGNED_MSG_TYPE_PREVOTE: Prevote + - SIGNED_MSG_TYPE_PRECOMMIT: Precommit + - SIGNED_MSG_TYPE_PROPOSAL: Proposal height: type: string format: int64 @@ -45601,8 +44834,10 @@ definitions: hash: type: string format: byte - title: PartsetHeader - title: BlockID + description: Header of the parts set for a block. + description: >- + BlockID defines the unique ID of a block as its + hash and its `PartSetHeader`. timestamp: type: string format: date-time @@ -45709,40 +44944,56 @@ definitions: hash: type: string format: byte - title: PartsetHeader - title: BlockID + description: Header of the parts set for a block. + description: >- + BlockID defines the unique ID of a block + as its hash and its `PartSetHeader`. + title: prev block info last_commit_hash: type: string format: byte + description: >- + commit from validators from the last + block title: hashes of block data data_hash: type: string format: byte + title: transactions validators_hash: type: string format: byte + description: validators for the current block title: >- hashes from the app output from the prev block next_validators_hash: type: string format: byte + title: validators for the next block consensus_hash: type: string format: byte + title: consensus params for current block app_hash: type: string format: byte + title: state after txs from the previous block last_results_hash: type: string format: byte + title: >- + root hash of all results from the txs + from the previous block evidence_hash: type: string format: byte + description: evidence included in the block title: consensus info proposer_address: type: string format: byte + title: original proposer of the block description: >- Header defines the structure of a block header. @@ -45770,8 +45021,10 @@ definitions: hash: type: string format: byte - title: PartsetHeader - title: BlockID + description: Header of the parts set for a block. + description: >- + BlockID defines the unique ID of a block + as its hash and its `PartSetHeader`. signatures: type: array items: @@ -45785,6 +45038,12 @@ definitions: - BLOCK_ID_FLAG_COMMIT - BLOCK_ID_FLAG_NIL default: BLOCK_ID_FLAG_UNKNOWN + description: >- + - BLOCK_ID_FLAG_UNKNOWN: Indicates an + error condition + - BLOCK_ID_FLAG_ABSENT: The vote was not received + - BLOCK_ID_FLAG_COMMIT: Voted for the block that received the majority + - BLOCK_ID_FLAG_NIL: Voted for nil title: >- BlockIdFlag indicates which BlockID the signature is for @@ -45803,6 +45062,10 @@ definitions: description: >- Commit contains the evidence that a block was committed by a set of validators. + description: >- + SignedHeader contains a Header(H) and + Commit(H+1) with signatures of validators who + signed it. validator_set: type: object properties: @@ -45823,15 +45086,18 @@ definitions: secp256k1: type: string format: byte - title: >- - PublicKey defines the keys available for - use with Validators + description: >- + PublicKey is a ED25519 or a secp256k1 + public key. voting_power: type: string format: int64 proposer_priority: type: string format: int64 + description: >- + Validator represents a node participating + in the consensus protocol. proposer: type: object properties: @@ -45847,18 +45113,25 @@ definitions: secp256k1: type: string format: byte - title: >- - PublicKey defines the keys available for - use with Validators + description: >- + PublicKey is a ED25519 or a secp256k1 + public key. voting_power: type: string format: int64 proposer_priority: type: string format: int64 + description: >- + Validator represents a node participating in + the consensus protocol. total_voting_power: type: string format: int64 + description: ValidatorSet defines a set of validators. + description: >- + LightBlock is a combination of SignedHeader and + ValidatorSet. It is used by light clients. common_height: type: string format: int64 @@ -45879,15 +45152,18 @@ definitions: secp256k1: type: string format: byte - title: >- - PublicKey defines the keys available for use - with Validators + description: >- + PublicKey is a ED25519 or a secp256k1 public + key. voting_power: type: string format: int64 proposer_priority: type: string format: int64 + description: >- + Validator represents a node participating in the + consensus protocol. total_voting_power: type: string format: int64 @@ -45897,6 +45173,10 @@ definitions: description: >- LightClientAttackEvidence contains evidence of a set of validators attempting to mislead a light client. + description: >- + Evidence is a generic type for wrapping evidence of + misbehavior by a validator. + description: EvidenceList is a list of evidence. last_commit: type: object properties: @@ -45921,8 +45201,10 @@ definitions: hash: type: string format: byte - title: PartsetHeader - title: BlockID + description: Header of the parts set for a block. + description: >- + BlockID defines the unique ID of a block as its hash and its + `PartSetHeader`. signatures: type: array items: @@ -45936,6 +45218,11 @@ definitions: - BLOCK_ID_FLAG_COMMIT - BLOCK_ID_FLAG_NIL default: BLOCK_ID_FLAG_UNKNOWN + description: |- + - BLOCK_ID_FLAG_UNKNOWN: Indicates an error condition + - BLOCK_ID_FLAG_ABSENT: The vote was not received + - BLOCK_ID_FLAG_COMMIT: Voted for the block that received the majority + - BLOCK_ID_FLAG_NIL: Voted for nil title: BlockIdFlag indicates which BlockID the signature is for validator_address: type: string @@ -45950,1831 +45237,605 @@ definitions: description: >- Commit contains the evidence that a block was committed by a set of validators. - description: |- - Block is tendermint type Block, with the Header proposer address - field converted to bech32 string. - description: >- - GetLatestBlockResponse is the response type for the Query/GetLatestBlock - RPC method. - cosmos.base.tendermint.v1beta1.GetLatestValidatorSetResponse: - type: object - properties: - block_height: - type: string - format: int64 - validators: - type: array - items: - type: object - properties: - address: - type: string - pub_key: - 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.) + description: Block defines the structure of a block in the CometBFT blockchain. + sdk_block: + type: object + properties: + header: + type: object + properties: + version: + title: basic block info + type: object + properties: + block: + type: string + format: uint64 + app: + type: string + format: uint64 + description: >- + Consensus captures the consensus rules for processing a block + in the blockchain, - Note: this functionality is not currently available in the - official + including all blockchain data structures and the rules of the + application's - protobuf release, and it is not used for type URLs beginning - with + state transition machine. + chain_id: + type: string + height: + type: string + format: int64 + time: + type: string + format: date-time + last_block_id: + type: object + properties: + hash: + type: string + format: byte + part_set_header: + type: object + properties: + total: + type: integer + format: int64 + hash: + type: string + format: byte + description: Header of the parts set for a block. + description: >- + BlockID defines the unique ID of a block as its hash and its + `PartSetHeader`. + title: prev block info + last_commit_hash: + type: string + format: byte + description: commit from validators from the last block + title: hashes of block data + data_hash: + type: string + format: byte + title: transactions + validators_hash: + type: string + format: byte + description: validators for the current block + title: hashes from the app output from the prev block + next_validators_hash: + type: string + format: byte + title: validators for the next block + consensus_hash: + type: string + format: byte + title: consensus params for current block + app_hash: + type: string + format: byte + title: state after txs from the previous block + last_results_hash: + type: string + format: byte + title: root hash of all results from the txs from the previous block + evidence_hash: + type: string + format: byte + description: evidence included in the block + title: consensus info + proposer_address: + type: string + description: >- + proposer_address is the original block proposer address, + formatted as a Bech32 string. - type.googleapis.com. + In Tendermint, this type is `bytes`, but in the SDK, we + convert it to a Bech32 string + for better UX. - Schemes other than `http`, `https` (or the empty scheme) - might be - used with implementation specific semantics. - value: + original proposer of the block + description: Header defines the structure of a Tendermint block header. + data: + type: object + properties: + txs: + type: array + items: 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 - '/' + description: >- + Txs that will be applied by state @ block.Height+1. - in the type URL, for example "foo.bar.com/x/y.z" will yield type + NOTE: not all txs here are valid. We're just agreeing on the + order first. - name "y.z". + This means that block.AppHash does not include these txs. + title: Data contains the set of transactions included in the block + evidence: + type: object + properties: + evidence: + type: array + items: + type: object + properties: + duplicate_vote_evidence: + type: object + properties: + vote_a: + type: object + properties: + type: + type: string + enum: + - SIGNED_MSG_TYPE_UNKNOWN + - SIGNED_MSG_TYPE_PREVOTE + - SIGNED_MSG_TYPE_PRECOMMIT + - SIGNED_MSG_TYPE_PROPOSAL + default: SIGNED_MSG_TYPE_UNKNOWN + description: >- + SignedMsgType is a type of signed message in the + consensus. + - SIGNED_MSG_TYPE_UNKNOWN: Unknown + - SIGNED_MSG_TYPE_PREVOTE: Prevote + - SIGNED_MSG_TYPE_PRECOMMIT: Precommit + - SIGNED_MSG_TYPE_PROPOSAL: Proposal + height: + type: string + format: int64 + round: + type: integer + format: int32 + block_id: + type: object + properties: + hash: + type: string + format: byte + part_set_header: + type: object + properties: + total: + type: integer + format: int64 + hash: + type: string + format: byte + description: Header of the parts set for a block. + description: >- + BlockID defines the unique ID of a block as its + hash and its `PartSetHeader`. + timestamp: + type: string + format: date-time + validator_address: + type: string + format: byte + validator_index: + type: integer + format: int32 + signature: + type: string + format: byte + description: >- + Vote signature by the validator if they + participated in consensus for the - JSON + 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 - The JSON representation of an `Any` value uses the regular + consensus for the associated block. - representation of the deserialized, embedded message, with an + Only valid for precommit messages. + description: >- + Vote represents a prevote or precommit vote from + validators for - additional field `@type` which contains the type URL. Example: + consensus. + vote_b: + type: object + properties: + type: + type: string + enum: + - SIGNED_MSG_TYPE_UNKNOWN + - SIGNED_MSG_TYPE_PREVOTE + - SIGNED_MSG_TYPE_PRECOMMIT + - SIGNED_MSG_TYPE_PROPOSAL + default: SIGNED_MSG_TYPE_UNKNOWN + description: >- + SignedMsgType is a type of signed message in the + consensus. - package google.profile; - message Person { - string first_name = 1; - string last_name = 2; - } + - SIGNED_MSG_TYPE_UNKNOWN: Unknown + - SIGNED_MSG_TYPE_PREVOTE: Prevote + - SIGNED_MSG_TYPE_PRECOMMIT: Precommit + - SIGNED_MSG_TYPE_PROPOSAL: Proposal + height: + type: string + format: int64 + round: + type: integer + format: int32 + block_id: + type: object + properties: + hash: + type: string + format: byte + part_set_header: + type: object + properties: + total: + type: integer + format: int64 + hash: + type: string + format: byte + description: Header of the parts set for a block. + description: >- + BlockID defines the unique ID of a block as its + hash and its `PartSetHeader`. + timestamp: + type: string + format: date-time + validator_address: + type: string + format: byte + validator_index: + type: integer + format: int32 + signature: + type: string + format: byte + description: >- + Vote signature by the validator if they + participated in consensus for the - { - "@type": "type.googleapis.com/google.profile.Person", - "firstName": , - "lastName": - } + associated block. + extension: + type: string + format: byte + description: >- + Vote extension provided by the application. Only + valid for precommit - If the embedded message type is well-known and has a custom JSON + messages. + extension_signature: + type: string + format: byte + description: >- + Vote extension signature by the validator if + they participated in - representation, that representation will be embedded adding a - field + consensus for the associated block. - `value` which holds the custom JSON in addition to the `@type` + Only valid for precommit messages. + description: >- + Vote represents a prevote or precommit vote from + validators for - field. Example (for message [google.protobuf.Duration][]): + consensus. + total_voting_power: + type: string + format: int64 + validator_power: + type: string + format: int64 + timestamp: + type: string + format: date-time + description: >- + DuplicateVoteEvidence contains evidence of a validator + signed two conflicting votes. + light_client_attack_evidence: + type: object + properties: + conflicting_block: + type: object + properties: + signed_header: + type: object + properties: + header: + type: object + properties: + version: + title: basic block info + type: object + properties: + block: + type: string + format: uint64 + app: + type: string + format: uint64 + description: >- + Consensus captures the consensus rules + for processing a block in the + blockchain, - { - "@type": "type.googleapis.com/google.protobuf.Duration", - "value": "1.212s" - } - voting_power: - type: string - format: int64 - proposer_priority: - type: string - format: int64 - description: Validator is the type for the validator-set. - pagination: - description: pagination defines an pagination for the response. - type: object - properties: - next_key: - type: string - format: byte - description: |- - next_key is the key to be passed to PageRequest.key to - query the next page most efficiently. It will be empty if - there are no more results. - total: - type: string - format: uint64 - title: >- - total is total number of results available if - PageRequest.count_total + including all blockchain data structures + and the rules of the application's - was set, its value is undefined otherwise - description: >- - GetLatestValidatorSetResponse is the response type for the - Query/GetValidatorSetByHeight RPC method. - cosmos.base.tendermint.v1beta1.GetNodeInfoResponse: - type: object - properties: - default_node_info: - type: object - properties: - protocol_version: - type: object - properties: - p2p: - type: string - format: uint64 - block: - type: string - format: uint64 - app: - type: string - format: uint64 - default_node_id: - type: string - listen_addr: - type: string - network: - type: string - version: - type: string - channels: - type: string - format: byte - moniker: - type: string - other: - type: object - properties: - tx_index: - type: string - rpc_address: - type: string - application_version: - type: object - properties: - name: - type: string - app_name: - type: string - version: - type: string - git_commit: - type: string - build_tags: - type: string - go_version: - type: string - build_deps: - type: array - items: - type: object - properties: - path: - type: string - title: module path - version: - type: string - title: module version - sum: - type: string - title: checksum - title: Module is the type for VersionInfo - cosmos_sdk_version: - type: string - title: 'Since: cosmos-sdk 0.43' - description: VersionInfo is the type for the GetNodeInfoResponse message. - description: >- - GetNodeInfoResponse is the response type for the Query/GetNodeInfo RPC - method. - cosmos.base.tendermint.v1beta1.GetSyncingResponse: - type: object - properties: - syncing: - type: boolean - description: >- - GetSyncingResponse is the response type for the Query/GetSyncing RPC - method. - cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightResponse: - type: object - properties: - block_height: - type: string - format: int64 - validators: - type: array - items: - type: object - properties: - address: - type: string - pub_key: - 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" - } - voting_power: - type: string - format: int64 - proposer_priority: - type: string - format: int64 - description: Validator is the type for the validator-set. - pagination: - description: pagination defines an pagination for the response. - type: object - properties: - next_key: - type: string - format: byte - description: |- - next_key is the key to be passed to PageRequest.key to - query the next page most efficiently. It will be empty if - there are no more results. - total: - type: string - format: uint64 - title: >- - total is total number of results available if - PageRequest.count_total - - was set, its value is undefined otherwise - description: >- - GetValidatorSetByHeightResponse is the response type for the - Query/GetValidatorSetByHeight RPC method. - cosmos.base.tendermint.v1beta1.Header: - type: object - properties: - version: - title: basic block info - type: object - properties: - block: - type: string - format: uint64 - app: - type: string - format: uint64 - description: >- - Consensus captures the consensus rules for processing a block in the - blockchain, - - including all blockchain data structures and the rules of the - application's - - state transition machine. - chain_id: - type: string - height: - type: string - format: int64 - time: - type: string - format: date-time - last_block_id: - type: object - properties: - hash: - type: string - format: byte - part_set_header: - type: object - properties: - total: - type: integer - format: int64 - hash: - type: string - format: byte - title: PartsetHeader - title: BlockID - last_commit_hash: - type: string - format: byte - title: hashes of block data - data_hash: - type: string - format: byte - validators_hash: - type: string - format: byte - title: hashes from the app output from the prev block - next_validators_hash: - type: string - format: byte - consensus_hash: - type: string - format: byte - app_hash: - type: string - format: byte - last_results_hash: - type: string - format: byte - evidence_hash: - type: string - format: byte - title: consensus info - proposer_address: - type: string - description: >- - proposer_address is the original block proposer address, formatted as - a Bech32 string. - - In Tendermint, this type is `bytes`, but in the SDK, we convert it to - a Bech32 string - - for better UX. - description: Header defines the structure of a Tendermint block header. - cosmos.base.tendermint.v1beta1.Module: - type: object - properties: - path: - type: string - title: module path - version: - type: string - title: module version - sum: - type: string - title: checksum - title: Module is the type for VersionInfo - cosmos.base.tendermint.v1beta1.ProofOp: - type: object - properties: - type: - type: string - key: - type: string - format: byte - data: - type: string - format: byte - description: >- - ProofOp defines an operation used for calculating Merkle root. The data - could - - be arbitrary format, providing necessary data for example neighbouring - node - - hash. - - - Note: This type is a duplicate of the ProofOp proto type defined in - Tendermint. - cosmos.base.tendermint.v1beta1.ProofOps: - type: object - properties: - ops: - type: array - items: - type: object - properties: - type: - type: string - key: - type: string - format: byte - data: - type: string - format: byte - description: >- - ProofOp defines an operation used for calculating Merkle root. The - data could - - be arbitrary format, providing necessary data for example - neighbouring node - - hash. - - - Note: This type is a duplicate of the ProofOp proto type defined in - Tendermint. - description: >- - ProofOps is Merkle proof defined by the list of ProofOps. - - - Note: This type is a duplicate of the ProofOps proto type defined in - Tendermint. - cosmos.base.tendermint.v1beta1.Validator: - type: object - properties: - address: - type: string - pub_key: - 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" - } - voting_power: - type: string - format: int64 - proposer_priority: - type: string - format: int64 - description: Validator is the type for the validator-set. - cosmos.base.tendermint.v1beta1.VersionInfo: - type: object - properties: - name: - type: string - app_name: - type: string - version: - type: string - git_commit: - type: string - build_tags: - type: string - go_version: - type: string - build_deps: - type: array - items: - type: object - properties: - path: - type: string - title: module path - version: - type: string - title: module version - sum: - type: string - title: checksum - title: Module is the type for VersionInfo - cosmos_sdk_version: - type: string - title: 'Since: cosmos-sdk 0.43' - description: VersionInfo is the type for the GetNodeInfoResponse message. - tendermint.crypto.PublicKey: - type: object - properties: - ed25519: - type: string - format: byte - secp256k1: - type: string - format: byte - title: PublicKey defines the keys available for use with Validators - tendermint.p2p.DefaultNodeInfo: - type: object - properties: - protocol_version: - type: object - properties: - p2p: - type: string - format: uint64 - block: - type: string - format: uint64 - app: - type: string - format: uint64 - default_node_id: - type: string - listen_addr: - type: string - network: - type: string - version: - type: string - channels: - type: string - format: byte - moniker: - type: string - other: - type: object - properties: - tx_index: - type: string - rpc_address: - type: string - tendermint.p2p.DefaultNodeInfoOther: - type: object - properties: - tx_index: - type: string - rpc_address: - type: string - tendermint.p2p.ProtocolVersion: - type: object - properties: - p2p: - type: string - format: uint64 - block: - type: string - format: uint64 - app: - type: string - format: uint64 - tendermint.types.Block: - type: object - properties: - header: - type: object - properties: - version: - title: basic block info - type: object - properties: - block: - type: string - format: uint64 - app: - type: string - format: uint64 - description: >- - Consensus captures the consensus rules for processing a block in - the blockchain, - - including all blockchain data structures and the rules of the - application's - - state transition machine. - chain_id: - type: string - height: - type: string - format: int64 - time: - type: string - format: date-time - last_block_id: - type: object - properties: - hash: - type: string - format: byte - part_set_header: - type: object - properties: - total: - type: integer - format: int64 - hash: - type: string - format: byte - title: PartsetHeader - title: BlockID - last_commit_hash: - type: string - format: byte - title: hashes of block data - data_hash: - type: string - format: byte - validators_hash: - type: string - format: byte - title: hashes from the app output from the prev block - next_validators_hash: - type: string - format: byte - consensus_hash: - type: string - format: byte - app_hash: - type: string - format: byte - last_results_hash: - type: string - format: byte - evidence_hash: - type: string - format: byte - title: consensus info - proposer_address: - type: string - format: byte - description: Header defines the structure of a block header. - data: - type: object - properties: - txs: - type: array - items: - type: string - format: byte - description: >- - Txs that will be applied by state @ block.Height+1. - - NOTE: not all txs here are valid. We're just agreeing on the - order first. - - This means that block.AppHash does not include these txs. - title: Data contains the set of transactions included in the block - evidence: - type: object - properties: - evidence: - type: array - items: - type: object - properties: - duplicate_vote_evidence: - type: object - properties: - vote_a: - type: object - properties: - type: - type: string - enum: - - SIGNED_MSG_TYPE_UNKNOWN - - SIGNED_MSG_TYPE_PREVOTE - - SIGNED_MSG_TYPE_PRECOMMIT - - SIGNED_MSG_TYPE_PROPOSAL - default: SIGNED_MSG_TYPE_UNKNOWN - description: >- - SignedMsgType is a type of signed message in the - consensus. - - - SIGNED_MSG_TYPE_PREVOTE: Votes - - SIGNED_MSG_TYPE_PROPOSAL: Proposals - height: - type: string - format: int64 - round: - type: integer - format: int32 - block_id: - type: object - properties: - hash: - type: string - format: byte - part_set_header: - type: object - properties: - total: - type: integer - format: int64 - hash: - type: string - format: byte - title: PartsetHeader - title: BlockID - timestamp: - type: string - format: date-time - validator_address: - type: string - format: byte - validator_index: - type: integer - format: int32 - 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 or precommit vote from - validators for - - consensus. - vote_b: - type: object - properties: - type: - type: string - enum: - - SIGNED_MSG_TYPE_UNKNOWN - - SIGNED_MSG_TYPE_PREVOTE - - SIGNED_MSG_TYPE_PRECOMMIT - - SIGNED_MSG_TYPE_PROPOSAL - default: SIGNED_MSG_TYPE_UNKNOWN - description: >- - SignedMsgType is a type of signed message in the - consensus. - - - SIGNED_MSG_TYPE_PREVOTE: Votes - - SIGNED_MSG_TYPE_PROPOSAL: Proposals - height: - type: string - format: int64 - round: - type: integer - format: int32 - block_id: - type: object - properties: - hash: - type: string - format: byte - part_set_header: - type: object - properties: - total: - type: integer - format: int64 - hash: - type: string - format: byte - title: PartsetHeader - title: BlockID - timestamp: - type: string - format: date-time - validator_address: - type: string - format: byte - validator_index: - type: integer - format: int32 - 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 or precommit vote from - validators for - - consensus. - total_voting_power: - type: string - format: int64 - validator_power: - type: string - format: int64 - timestamp: - type: string - format: date-time - description: >- - DuplicateVoteEvidence contains evidence of a validator - signed two conflicting votes. - light_client_attack_evidence: - type: object - properties: - conflicting_block: - type: object - properties: - signed_header: - type: object - properties: - header: - type: object - properties: - version: - title: basic block info - type: object - properties: - block: + state transition machine. + chain_id: type: string - format: uint64 - app: + height: type: string - format: uint64 - description: >- - Consensus captures the consensus rules for - processing a block in the blockchain, - - including all blockchain data structures and - the rules of the application's - - state transition machine. - chain_id: - type: string - height: - type: string - format: int64 - time: - type: string - format: date-time - last_block_id: - type: object - properties: - hash: + format: int64 + time: type: string - format: byte - part_set_header: + format: date-time + last_block_id: type: object properties: - total: - type: integer - format: int64 hash: type: string format: byte - title: PartsetHeader - title: BlockID - last_commit_hash: - type: string - format: byte - title: hashes of block data - data_hash: - type: string - format: byte - validators_hash: - type: string - format: byte - title: >- - hashes from the app output from the prev - block - next_validators_hash: - type: string - format: byte - consensus_hash: - type: string - format: byte - app_hash: - type: string - format: byte - last_results_hash: - type: string - format: byte - evidence_hash: - type: string - format: byte - title: consensus info - proposer_address: - type: string - format: byte - description: Header defines the structure of a block header. - commit: - type: object - properties: - height: - type: string - format: int64 - round: - type: integer - format: int32 - block_id: + part_set_header: + type: object + properties: + total: + type: integer + format: int64 + hash: + type: string + format: byte + description: Header of the parts set for a block. + description: >- + BlockID defines the unique ID of a block + as its hash and its `PartSetHeader`. + title: prev block info + last_commit_hash: + type: string + format: byte + description: >- + commit from validators from the last + block + title: hashes of block data + data_hash: + type: string + format: byte + title: transactions + validators_hash: + type: string + format: byte + description: validators for the current block + title: >- + hashes from the app output from the prev + block + next_validators_hash: + type: string + format: byte + title: validators for the next block + consensus_hash: + type: string + format: byte + title: consensus params for current block + app_hash: + type: string + format: byte + title: state after txs from the previous block + last_results_hash: + type: string + format: byte + title: >- + root hash of all results from the txs + from the previous block + evidence_hash: + type: string + format: byte + description: evidence included in the block + title: consensus info + proposer_address: + type: string + format: byte + title: original proposer of the block + description: >- + Header defines the structure of a block + header. + commit: type: object properties: - hash: + height: type: string - format: byte - part_set_header: + format: int64 + round: + type: integer + format: int32 + block_id: type: object properties: - total: - type: integer - format: int64 hash: type: string format: byte - title: PartsetHeader - title: BlockID - signatures: + part_set_header: + type: object + properties: + total: + type: integer + format: int64 + hash: + type: string + format: byte + description: Header of the parts set for a block. + description: >- + BlockID defines the unique ID of a block + as its hash and its `PartSetHeader`. + signatures: + type: array + items: + type: object + properties: + block_id_flag: + type: string + enum: + - BLOCK_ID_FLAG_UNKNOWN + - BLOCK_ID_FLAG_ABSENT + - BLOCK_ID_FLAG_COMMIT + - BLOCK_ID_FLAG_NIL + default: BLOCK_ID_FLAG_UNKNOWN + description: >- + - BLOCK_ID_FLAG_UNKNOWN: Indicates an + error condition + - BLOCK_ID_FLAG_ABSENT: The vote was not received + - BLOCK_ID_FLAG_COMMIT: Voted for the block that received the majority + - BLOCK_ID_FLAG_NIL: Voted for nil + title: >- + BlockIdFlag indicates which BlockID the + signature is for + validator_address: + type: string + format: byte + timestamp: + type: string + format: date-time + signature: + type: string + format: byte + description: >- + CommitSig is a part of the Vote included + in a Commit. + description: >- + Commit contains the evidence that a block + was committed by a set of validators. + description: >- + SignedHeader contains a Header(H) and + Commit(H+1) with signatures of validators who + signed it. + validator_set: + type: object + properties: + validators: type: array items: type: object properties: - block_id_flag: - type: string - enum: - - BLOCK_ID_FLAG_UNKNOWN - - BLOCK_ID_FLAG_ABSENT - - BLOCK_ID_FLAG_COMMIT - - BLOCK_ID_FLAG_NIL - default: BLOCK_ID_FLAG_UNKNOWN - title: >- - BlockIdFlag indicates which BlockID the - signature is for - validator_address: - type: string - format: byte - timestamp: - type: string - format: date-time - signature: - type: string - format: byte - description: >- - CommitSig is a part of the Vote included - in a Commit. - description: >- - Commit contains the evidence that a block was - committed by a set of validators. - validator_set: - type: object - properties: - validators: - type: array - items: - type: object - properties: - address: - type: string - format: byte - pub_key: - type: object - properties: - ed25519: - type: string - format: byte - secp256k1: + address: type: string format: byte - title: >- - PublicKey defines the keys available for - use with Validators - voting_power: - type: string - format: int64 - proposer_priority: - type: string - format: int64 - proposer: - type: object - properties: - address: - type: string - format: byte - pub_key: - type: object - properties: - ed25519: - type: string - format: byte - secp256k1: - type: string - format: byte - title: >- - PublicKey defines the keys available for use - with Validators - voting_power: - type: string - format: int64 - proposer_priority: - type: string - format: int64 - total_voting_power: - type: string - format: int64 - common_height: - type: string - format: int64 - byzantine_validators: - type: array - items: - type: object - properties: - address: - type: string - format: byte - pub_key: - type: object - properties: - ed25519: - type: string - format: byte - secp256k1: - type: string - format: byte - title: >- - PublicKey defines the keys available for use with - Validators - voting_power: - type: string - format: int64 - proposer_priority: - type: string - format: int64 - total_voting_power: - type: string - format: int64 - timestamp: - type: string - format: date-time - description: >- - LightClientAttackEvidence contains evidence of a set of - validators attempting to mislead a light client. - last_commit: - type: object - properties: - height: - type: string - format: int64 - round: - type: integer - format: int32 - block_id: - type: object - properties: - hash: - type: string - format: byte - part_set_header: - type: object - properties: - total: - type: integer - format: int64 - hash: - type: string - format: byte - title: PartsetHeader - title: BlockID - signatures: - type: array - items: - type: object - properties: - block_id_flag: - type: string - enum: - - BLOCK_ID_FLAG_UNKNOWN - - BLOCK_ID_FLAG_ABSENT - - BLOCK_ID_FLAG_COMMIT - - BLOCK_ID_FLAG_NIL - default: BLOCK_ID_FLAG_UNKNOWN - title: BlockIdFlag indicates which BlockID the signature is for - validator_address: - type: string - format: byte - timestamp: - type: string - format: date-time - signature: - type: string - format: byte - description: CommitSig is a part of the Vote included in a Commit. - description: >- - Commit contains the evidence that a block was committed by a set of - validators. - tendermint.types.BlockID: - type: object - properties: - hash: - type: string - format: byte - part_set_header: - type: object - properties: - total: - type: integer - format: int64 - hash: - type: string - format: byte - title: PartsetHeader - title: BlockID - tendermint.types.BlockIDFlag: - type: string - enum: - - BLOCK_ID_FLAG_UNKNOWN - - BLOCK_ID_FLAG_ABSENT - - BLOCK_ID_FLAG_COMMIT - - BLOCK_ID_FLAG_NIL - default: BLOCK_ID_FLAG_UNKNOWN - title: BlockIdFlag indicates which BlockID the signature is for - tendermint.types.Commit: - type: object - properties: - height: - type: string - format: int64 - round: - type: integer - format: int32 - block_id: - type: object - properties: - hash: - type: string - format: byte - part_set_header: - type: object - properties: - total: - type: integer - format: int64 - hash: - type: string - format: byte - title: PartsetHeader - title: BlockID - signatures: - type: array - items: - type: object - properties: - block_id_flag: - type: string - enum: - - BLOCK_ID_FLAG_UNKNOWN - - BLOCK_ID_FLAG_ABSENT - - BLOCK_ID_FLAG_COMMIT - - BLOCK_ID_FLAG_NIL - default: BLOCK_ID_FLAG_UNKNOWN - title: BlockIdFlag indicates which BlockID the signature is for - validator_address: - type: string - format: byte - timestamp: - type: string - format: date-time - signature: - type: string - format: byte - description: CommitSig is a part of the Vote included in a Commit. - description: >- - Commit contains the evidence that a block was committed by a set of - validators. - tendermint.types.CommitSig: - type: object - properties: - block_id_flag: - type: string - enum: - - BLOCK_ID_FLAG_UNKNOWN - - BLOCK_ID_FLAG_ABSENT - - BLOCK_ID_FLAG_COMMIT - - BLOCK_ID_FLAG_NIL - default: BLOCK_ID_FLAG_UNKNOWN - title: BlockIdFlag indicates which BlockID the signature is for - validator_address: - type: string - format: byte - timestamp: - type: string - format: date-time - signature: - type: string - format: byte - description: CommitSig is a part of the Vote included in a Commit. - tendermint.types.Data: - type: object - properties: - txs: - type: array - items: - type: string - format: byte - description: >- - Txs that will be applied by state @ block.Height+1. - - NOTE: not all txs here are valid. We're just agreeing on the order - first. - - This means that block.AppHash does not include these txs. - title: Data contains the set of transactions included in the block - tendermint.types.DuplicateVoteEvidence: - type: object - properties: - vote_a: - type: object - properties: - type: - type: string - enum: - - SIGNED_MSG_TYPE_UNKNOWN - - SIGNED_MSG_TYPE_PREVOTE - - SIGNED_MSG_TYPE_PRECOMMIT - - SIGNED_MSG_TYPE_PROPOSAL - default: SIGNED_MSG_TYPE_UNKNOWN - description: |- - SignedMsgType is a type of signed message in the consensus. - - - SIGNED_MSG_TYPE_PREVOTE: Votes - - SIGNED_MSG_TYPE_PROPOSAL: Proposals - height: - type: string - format: int64 - round: - type: integer - format: int32 - block_id: - type: object - properties: - hash: - type: string - format: byte - part_set_header: - type: object - properties: - total: - type: integer - format: int64 - hash: - type: string - format: byte - title: PartsetHeader - title: BlockID - timestamp: - type: string - format: date-time - validator_address: - type: string - format: byte - validator_index: - type: integer - format: int32 - 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 or precommit vote from validators for - consensus. - vote_b: - type: object - properties: - type: - type: string - enum: - - SIGNED_MSG_TYPE_UNKNOWN - - SIGNED_MSG_TYPE_PREVOTE - - SIGNED_MSG_TYPE_PRECOMMIT - - SIGNED_MSG_TYPE_PROPOSAL - default: SIGNED_MSG_TYPE_UNKNOWN - description: |- - SignedMsgType is a type of signed message in the consensus. - - - SIGNED_MSG_TYPE_PREVOTE: Votes - - SIGNED_MSG_TYPE_PROPOSAL: Proposals - height: - type: string - format: int64 - round: - type: integer - format: int32 - block_id: - type: object - properties: - hash: - type: string - format: byte - part_set_header: - type: object - properties: - total: - type: integer - format: int64 - hash: - type: string - format: byte - title: PartsetHeader - title: BlockID - timestamp: - type: string - format: date-time - validator_address: - type: string - format: byte - validator_index: - type: integer - format: int32 - 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 or precommit vote from validators for - consensus. - total_voting_power: - type: string - format: int64 - validator_power: - type: string - format: int64 - timestamp: - type: string - format: date-time - description: >- - DuplicateVoteEvidence contains evidence of a validator signed two - conflicting votes. - tendermint.types.Evidence: - type: object - properties: - duplicate_vote_evidence: - type: object - properties: - vote_a: + pub_key: + type: object + properties: + ed25519: + type: string + format: byte + secp256k1: + type: string + format: byte + description: >- + PublicKey is a ED25519 or a secp256k1 + public key. + voting_power: + type: string + format: int64 + proposer_priority: + type: string + format: int64 + description: >- + Validator represents a node participating + in the consensus protocol. + proposer: + type: object + properties: + address: + type: string + format: byte + pub_key: + type: object + properties: + ed25519: + type: string + format: byte + secp256k1: + type: string + format: byte + description: >- + PublicKey is a ED25519 or a secp256k1 + public key. + voting_power: + type: string + format: int64 + proposer_priority: + type: string + format: int64 + description: >- + Validator represents a node participating in + the consensus protocol. + total_voting_power: + type: string + format: int64 + description: ValidatorSet defines a set of validators. + description: >- + LightBlock is a combination of SignedHeader and + ValidatorSet. It is used by light clients. + common_height: + type: string + format: int64 + byzantine_validators: + type: array + items: + type: object + properties: + address: + type: string + format: byte + pub_key: + type: object + properties: + ed25519: + type: string + format: byte + secp256k1: + type: string + format: byte + description: >- + PublicKey is a ED25519 or a secp256k1 public + key. + voting_power: + type: string + format: int64 + proposer_priority: + type: string + format: int64 + description: >- + Validator represents a node participating in the + consensus protocol. + total_voting_power: + type: string + format: int64 + timestamp: + type: string + format: date-time + description: >- + LightClientAttackEvidence contains evidence of a set of + validators attempting to mislead a light client. + description: >- + Evidence is a generic type for wrapping evidence of + misbehavior by a validator. + description: EvidenceList is a list of evidence. + last_commit: type: object properties: - type: - type: string - enum: - - SIGNED_MSG_TYPE_UNKNOWN - - SIGNED_MSG_TYPE_PREVOTE - - SIGNED_MSG_TYPE_PRECOMMIT - - SIGNED_MSG_TYPE_PROPOSAL - default: SIGNED_MSG_TYPE_UNKNOWN - description: |- - SignedMsgType is a type of signed message in the consensus. - - - SIGNED_MSG_TYPE_PREVOTE: Votes - - SIGNED_MSG_TYPE_PROPOSAL: Proposals height: type: string format: int64 @@ -47796,69 +45857,104 @@ definitions: hash: type: string format: byte - title: PartsetHeader - title: BlockID - timestamp: - type: string - format: date-time - validator_address: - type: string - format: byte - validator_index: - type: integer - format: int32 - 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: Header of the parts set for a block. description: >- - Vote extension provided by the application. Only valid for - precommit - - messages. - extension_signature: + BlockID defines the unique ID of a block as its hash and its + `PartSetHeader`. + signatures: + type: array + items: + type: object + properties: + block_id_flag: + type: string + enum: + - BLOCK_ID_FLAG_UNKNOWN + - BLOCK_ID_FLAG_ABSENT + - BLOCK_ID_FLAG_COMMIT + - BLOCK_ID_FLAG_NIL + default: BLOCK_ID_FLAG_UNKNOWN + description: |- + - BLOCK_ID_FLAG_UNKNOWN: Indicates an error condition + - BLOCK_ID_FLAG_ABSENT: The vote was not received + - BLOCK_ID_FLAG_COMMIT: Voted for the block that received the majority + - BLOCK_ID_FLAG_NIL: Voted for nil + title: BlockIdFlag indicates which BlockID the signature is for + validator_address: + type: string + format: byte + timestamp: + type: string + format: date-time + signature: + type: string + format: byte + description: CommitSig is a part of the Vote included in a Commit. + description: >- + Commit contains the evidence that a block was committed by a set + of validators. + description: |- + Block is tendermint type Block, with the Header proposer address + field converted to bech32 string. + description: >- + GetBlockByHeightResponse is the response type for the + Query/GetBlockByHeight RPC method. + cosmos.base.tendermint.v1beta1.GetLatestBlockResponse: + type: object + properties: + block_id: + type: object + properties: + hash: + type: string + format: byte + part_set_header: + type: object + properties: + total: + type: integer + format: int64 + hash: type: string format: byte + description: Header of the parts set for a block. + description: >- + BlockID defines the unique ID of a block as its hash and its + `PartSetHeader`. + block: + title: 'Deprecated: please use `sdk_block` instead' + type: object + properties: + header: + type: object + properties: + version: + title: basic block info + type: object + properties: + block: + type: string + format: uint64 + app: + type: string + format: uint64 description: >- - Vote extension signature by the validator if they participated - in + Consensus captures the consensus rules for processing a block + in the blockchain, - consensus for the associated block. + including all blockchain data structures and the rules of the + application's - Only valid for precommit messages. - description: |- - Vote represents a prevote or precommit vote from validators for - consensus. - vote_b: - type: object - properties: - type: + state transition machine. + chain_id: type: string - enum: - - SIGNED_MSG_TYPE_UNKNOWN - - SIGNED_MSG_TYPE_PREVOTE - - SIGNED_MSG_TYPE_PRECOMMIT - - SIGNED_MSG_TYPE_PROPOSAL - default: SIGNED_MSG_TYPE_UNKNOWN - description: |- - SignedMsgType is a type of signed message in the consensus. - - - SIGNED_MSG_TYPE_PREVOTE: Votes - - SIGNED_MSG_TYPE_PROPOSAL: Proposals height: type: string format: int64 - round: - type: integer - format: int32 - block_id: + time: + type: string + format: date-time + last_block_id: type: object properties: hash: @@ -47873,515 +45969,760 @@ definitions: hash: type: string format: byte - title: PartsetHeader - title: BlockID - timestamp: + description: Header of the parts set for a block. + description: >- + BlockID defines the unique ID of a block as its hash and its + `PartSetHeader`. + title: prev block info + last_commit_hash: type: string - format: date-time - validator_address: + format: byte + description: commit from validators from the last block + title: hashes of block data + data_hash: type: string format: byte - validator_index: - type: integer - format: int32 - signature: + title: transactions + validators_hash: type: string format: byte - description: >- - Vote signature by the validator if they participated in - consensus for the - - associated block. - extension: + description: validators for the current block + title: hashes from the app output from the prev block + next_validators_hash: type: string format: byte - description: >- - Vote extension provided by the application. Only valid for - precommit - - messages. - extension_signature: + title: validators for the next block + consensus_hash: + type: string + format: byte + title: consensus params for current block + app_hash: + type: string + format: byte + title: state after txs from the previous block + last_results_hash: + type: string + format: byte + title: root hash of all results from the txs from the previous block + evidence_hash: type: string format: byte + description: evidence included in the block + title: consensus info + proposer_address: + type: string + format: byte + title: original proposer of the block + description: Header defines the structure of a block header. + data: + type: object + properties: + txs: + type: array + items: + type: string + format: byte description: >- - Vote extension signature by the validator if they participated - in + Txs that will be applied by state @ block.Height+1. - consensus for the associated block. + NOTE: not all txs here are valid. We're just agreeing on the + order first. - Only valid for precommit messages. - description: |- - Vote represents a prevote or precommit vote from validators for - consensus. - total_voting_power: - type: string - format: int64 - validator_power: - type: string - format: int64 - timestamp: - type: string - format: date-time - description: >- - DuplicateVoteEvidence contains evidence of a validator signed two - conflicting votes. - light_client_attack_evidence: - type: object - properties: - conflicting_block: + This means that block.AppHash does not include these txs. + title: Data contains the set of transactions included in the block + evidence: type: object properties: - signed_header: - type: object - properties: - header: - type: object - properties: - version: - title: basic block info - type: object - properties: - block: - type: string - format: uint64 - app: - type: string - format: uint64 - description: >- - Consensus captures the consensus rules for processing - a block in the blockchain, + evidence: + type: array + items: + type: object + properties: + duplicate_vote_evidence: + type: object + properties: + vote_a: + type: object + properties: + type: + type: string + enum: + - SIGNED_MSG_TYPE_UNKNOWN + - SIGNED_MSG_TYPE_PREVOTE + - SIGNED_MSG_TYPE_PRECOMMIT + - SIGNED_MSG_TYPE_PROPOSAL + default: SIGNED_MSG_TYPE_UNKNOWN + description: >- + SignedMsgType is a type of signed message in the + consensus. - including all blockchain data structures and the rules - of the application's + - SIGNED_MSG_TYPE_UNKNOWN: Unknown + - SIGNED_MSG_TYPE_PREVOTE: Prevote + - SIGNED_MSG_TYPE_PRECOMMIT: Precommit + - SIGNED_MSG_TYPE_PROPOSAL: Proposal + height: + type: string + format: int64 + round: + type: integer + format: int32 + block_id: + type: object + properties: + hash: + type: string + format: byte + part_set_header: + type: object + properties: + total: + type: integer + format: int64 + hash: + type: string + format: byte + description: Header of the parts set for a block. + description: >- + BlockID defines the unique ID of a block as its + hash and its `PartSetHeader`. + timestamp: + type: string + format: date-time + validator_address: + type: string + format: byte + validator_index: + type: integer + format: int32 + signature: + type: string + format: byte + description: >- + Vote signature by the validator if they + participated in consensus for the - state transition machine. - chain_id: - type: string - height: - type: string - format: int64 - time: - type: string - format: date-time - last_block_id: - type: object - properties: - hash: - type: string - format: byte - part_set_header: - type: object - properties: - total: - type: integer - format: int64 - hash: - type: string - format: byte - title: PartsetHeader - title: BlockID - last_commit_hash: - type: string - format: byte - title: hashes of block data - data_hash: - type: string - format: byte - validators_hash: - type: string - format: byte - title: hashes from the app output from the prev block - next_validators_hash: - type: string - format: byte - consensus_hash: - type: string - format: byte - app_hash: - type: string - format: byte - last_results_hash: - type: string - format: byte - evidence_hash: - type: string - format: byte - title: consensus info - proposer_address: - type: string - format: byte - description: Header defines the structure of a block header. - commit: - type: object - properties: - height: - type: string - format: int64 - round: - type: integer - format: int32 - block_id: - type: object - properties: - hash: - type: string - format: byte - part_set_header: - type: object - properties: - total: - type: integer - format: int64 - hash: - type: string - format: byte - title: PartsetHeader - title: BlockID - signatures: - type: array - items: + 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 properties: - block_id_flag: + type: + type: string + enum: + - SIGNED_MSG_TYPE_UNKNOWN + - SIGNED_MSG_TYPE_PREVOTE + - SIGNED_MSG_TYPE_PRECOMMIT + - SIGNED_MSG_TYPE_PROPOSAL + default: SIGNED_MSG_TYPE_UNKNOWN + description: >- + SignedMsgType is a type of signed message in the + consensus. + + - SIGNED_MSG_TYPE_UNKNOWN: Unknown + - SIGNED_MSG_TYPE_PREVOTE: Prevote + - SIGNED_MSG_TYPE_PRECOMMIT: Precommit + - SIGNED_MSG_TYPE_PROPOSAL: Proposal + height: + type: string + format: int64 + round: + type: integer + format: int32 + block_id: + type: object + properties: + hash: + type: string + format: byte + part_set_header: + type: object + properties: + total: + type: integer + format: int64 + hash: + type: string + format: byte + description: Header of the parts set for a block. + description: >- + BlockID defines the unique ID of a block as its + hash and its `PartSetHeader`. + timestamp: type: string - enum: - - BLOCK_ID_FLAG_UNKNOWN - - BLOCK_ID_FLAG_ABSENT - - BLOCK_ID_FLAG_COMMIT - - BLOCK_ID_FLAG_NIL - default: BLOCK_ID_FLAG_UNKNOWN - title: >- - BlockIdFlag indicates which BlockID the - signature is for + format: date-time validator_address: type: string format: byte - timestamp: - type: string - format: date-time + validator_index: + type: integer + format: int32 signature: type: string format: byte - description: >- - CommitSig is a part of the Vote included in a - Commit. - description: >- - Commit contains the evidence that a block was committed by - a set of validators. - validator_set: - type: object - properties: - validators: - type: array - items: - type: object - properties: - address: - type: string - format: byte - pub_key: - type: object - properties: - ed25519: + description: >- + Vote signature by the validator if they + participated in consensus for the + + associated block. + extension: type: string format: byte - secp256k1: + description: >- + Vote extension provided by the application. Only + valid for precommit + + messages. + extension_signature: type: string format: byte - title: >- - PublicKey defines the keys available for use with - Validators - voting_power: + 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 format: int64 - proposer_priority: + validator_power: type: string format: int64 - proposer: - type: object - properties: - address: - type: string - format: byte - pub_key: - type: object - properties: - ed25519: - type: string - format: byte - secp256k1: - type: string - format: byte - title: >- - PublicKey defines the keys available for use with - Validators - voting_power: - type: string - format: int64 - proposer_priority: - type: string - format: int64 - total_voting_power: - type: string - format: int64 - common_height: - type: string - format: int64 - byzantine_validators: - type: array - items: - type: object - properties: - address: - type: string - format: byte - pub_key: - type: object - properties: - ed25519: - type: string - format: byte - secp256k1: - type: string - format: byte - title: PublicKey defines the keys available for use with Validators - voting_power: - type: string - format: int64 - proposer_priority: - type: string - format: int64 - total_voting_power: - type: string - format: int64 - timestamp: - type: string - format: date-time - description: >- - LightClientAttackEvidence contains evidence of a set of validators - attempting to mislead a light client. - tendermint.types.EvidenceList: - type: object - properties: - evidence: - type: array - items: - type: object - properties: - duplicate_vote_evidence: - type: object - properties: - vote_a: - type: object - properties: - type: - type: string - enum: - - SIGNED_MSG_TYPE_UNKNOWN - - SIGNED_MSG_TYPE_PREVOTE - - SIGNED_MSG_TYPE_PRECOMMIT - - SIGNED_MSG_TYPE_PROPOSAL - default: SIGNED_MSG_TYPE_UNKNOWN + timestamp: + type: string + format: date-time description: >- - SignedMsgType is a type of signed message in the - consensus. - - - SIGNED_MSG_TYPE_PREVOTE: Votes - - SIGNED_MSG_TYPE_PROPOSAL: Proposals - height: - type: string - format: int64 - round: - type: integer - format: int32 - block_id: + DuplicateVoteEvidence contains evidence of a validator + signed two conflicting votes. + light_client_attack_evidence: type: object properties: - hash: - type: string - format: byte - part_set_header: + conflicting_block: type: object properties: - total: - type: integer - format: int64 - hash: - type: string - format: byte - title: PartsetHeader - title: BlockID - timestamp: - type: string - format: date-time - validator_address: - type: string - format: byte - validator_index: - type: integer - format: int32 - signature: - type: string - format: byte - description: >- - Vote signature by the validator if they participated in - consensus for the + signed_header: + type: object + properties: + header: + type: object + properties: + version: + title: basic block info + type: object + properties: + block: + type: string + format: uint64 + app: + type: string + format: uint64 + description: >- + Consensus captures the consensus rules + for processing a block in the + blockchain, - associated block. - extension: - type: string - format: byte - description: >- - Vote extension provided by the application. Only valid - for precommit + including all blockchain data structures + and the rules of the application's - messages. - extension_signature: - type: string - format: byte + state transition machine. + chain_id: + type: string + height: + type: string + format: int64 + time: + type: string + format: date-time + last_block_id: + type: object + properties: + hash: + type: string + format: byte + part_set_header: + type: object + properties: + total: + type: integer + format: int64 + hash: + type: string + format: byte + description: Header of the parts set for a block. + description: >- + BlockID defines the unique ID of a block + as its hash and its `PartSetHeader`. + title: prev block info + last_commit_hash: + type: string + format: byte + description: >- + commit from validators from the last + block + title: hashes of block data + data_hash: + type: string + format: byte + title: transactions + validators_hash: + type: string + format: byte + description: validators for the current block + title: >- + hashes from the app output from the prev + block + next_validators_hash: + type: string + format: byte + title: validators for the next block + consensus_hash: + type: string + format: byte + title: consensus params for current block + app_hash: + type: string + format: byte + title: state after txs from the previous block + last_results_hash: + type: string + format: byte + title: >- + root hash of all results from the txs + from the previous block + evidence_hash: + type: string + format: byte + description: evidence included in the block + title: consensus info + proposer_address: + type: string + format: byte + title: original proposer of the block + description: >- + Header defines the structure of a block + header. + commit: + type: object + properties: + height: + type: string + format: int64 + round: + type: integer + format: int32 + block_id: + type: object + properties: + hash: + type: string + format: byte + part_set_header: + type: object + properties: + total: + type: integer + format: int64 + hash: + type: string + format: byte + description: Header of the parts set for a block. + description: >- + BlockID defines the unique ID of a block + as its hash and its `PartSetHeader`. + signatures: + type: array + items: + type: object + properties: + block_id_flag: + type: string + enum: + - BLOCK_ID_FLAG_UNKNOWN + - BLOCK_ID_FLAG_ABSENT + - BLOCK_ID_FLAG_COMMIT + - BLOCK_ID_FLAG_NIL + default: BLOCK_ID_FLAG_UNKNOWN + description: >- + - BLOCK_ID_FLAG_UNKNOWN: Indicates an + error condition + - BLOCK_ID_FLAG_ABSENT: The vote was not received + - BLOCK_ID_FLAG_COMMIT: Voted for the block that received the majority + - BLOCK_ID_FLAG_NIL: Voted for nil + title: >- + BlockIdFlag indicates which BlockID the + signature is for + validator_address: + type: string + format: byte + timestamp: + type: string + format: date-time + signature: + type: string + format: byte + description: >- + CommitSig is a part of the Vote included + in a Commit. + description: >- + Commit contains the evidence that a block + was committed by a set of validators. + description: >- + SignedHeader contains a Header(H) and + Commit(H+1) with signatures of validators who + signed it. + validator_set: + type: object + properties: + validators: + type: array + items: + type: object + properties: + address: + type: string + format: byte + pub_key: + type: object + properties: + ed25519: + type: string + format: byte + secp256k1: + type: string + format: byte + description: >- + PublicKey is a ED25519 or a secp256k1 + public key. + voting_power: + type: string + format: int64 + proposer_priority: + type: string + format: int64 + description: >- + Validator represents a node participating + in the consensus protocol. + proposer: + type: object + properties: + address: + type: string + format: byte + pub_key: + type: object + properties: + ed25519: + type: string + format: byte + secp256k1: + type: string + format: byte + description: >- + PublicKey is a ED25519 or a secp256k1 + public key. + voting_power: + type: string + format: int64 + proposer_priority: + type: string + format: int64 + description: >- + Validator represents a node participating in + the consensus protocol. + total_voting_power: + type: string + format: int64 + description: ValidatorSet defines a set of validators. + description: >- + LightBlock is a combination of SignedHeader and + ValidatorSet. It is used by light clients. + common_height: + type: string + format: int64 + byzantine_validators: + type: array + items: + type: object + properties: + address: + type: string + format: byte + pub_key: + type: object + properties: + ed25519: + type: string + format: byte + secp256k1: + type: string + format: byte + description: >- + PublicKey is a ED25519 or a secp256k1 public + key. + voting_power: + type: string + format: int64 + proposer_priority: + type: string + format: int64 + description: >- + Validator represents a node participating in the + consensus protocol. + total_voting_power: + type: string + format: int64 + timestamp: + type: string + format: date-time description: >- - Vote extension signature by the validator if they - participated in - - consensus for the associated block. - - Only valid for precommit messages. + LightClientAttackEvidence contains evidence of a set of + validators attempting to mislead a light client. description: >- - Vote represents a prevote or precommit vote from validators - for - - consensus. - vote_b: - type: object - properties: - type: - type: string - enum: - - SIGNED_MSG_TYPE_UNKNOWN - - SIGNED_MSG_TYPE_PREVOTE - - SIGNED_MSG_TYPE_PRECOMMIT - - SIGNED_MSG_TYPE_PROPOSAL - default: SIGNED_MSG_TYPE_UNKNOWN - description: >- - SignedMsgType is a type of signed message in the - consensus. - - - SIGNED_MSG_TYPE_PREVOTE: Votes - - SIGNED_MSG_TYPE_PROPOSAL: Proposals - height: - type: string - format: int64 - round: - type: integer - format: int32 - block_id: - type: object - properties: - hash: - type: string - format: byte - part_set_header: - type: object - properties: - total: - type: integer - format: int64 - hash: - type: string - format: byte - title: PartsetHeader - title: BlockID - timestamp: + Evidence is a generic type for wrapping evidence of + misbehavior by a validator. + description: EvidenceList is a list of evidence. + last_commit: + type: object + properties: + height: + type: string + format: int64 + round: + type: integer + format: int32 + block_id: + type: object + properties: + hash: + type: string + format: byte + part_set_header: + type: object + properties: + total: + type: integer + format: int64 + hash: + type: string + format: byte + description: Header of the parts set for a block. + description: >- + BlockID defines the unique ID of a block as its hash and its + `PartSetHeader`. + signatures: + type: array + items: + type: object + properties: + block_id_flag: type: string - format: date-time + enum: + - BLOCK_ID_FLAG_UNKNOWN + - BLOCK_ID_FLAG_ABSENT + - BLOCK_ID_FLAG_COMMIT + - BLOCK_ID_FLAG_NIL + default: BLOCK_ID_FLAG_UNKNOWN + description: |- + - BLOCK_ID_FLAG_UNKNOWN: Indicates an error condition + - BLOCK_ID_FLAG_ABSENT: The vote was not received + - BLOCK_ID_FLAG_COMMIT: Voted for the block that received the majority + - BLOCK_ID_FLAG_NIL: Voted for nil + title: BlockIdFlag indicates which BlockID the signature is for validator_address: type: string format: byte - validator_index: - type: integer - format: int32 + timestamp: + type: string + format: date-time signature: type: string format: byte - description: >- - Vote signature by the validator if they participated in - consensus for the + description: CommitSig is a part of the Vote included in a Commit. + description: >- + Commit contains the evidence that a block was committed by a set + of validators. + description: Block defines the structure of a block in the CometBFT blockchain. + sdk_block: + type: object + properties: + header: + type: object + properties: + version: + title: basic block info + type: object + properties: + block: + type: string + format: uint64 + app: + type: string + format: uint64 + description: >- + Consensus captures the consensus rules for processing a block + in the blockchain, - associated block. - extension: - type: string - format: byte - description: >- - Vote extension provided by the application. Only valid - for precommit + including all blockchain data structures and the rules of the + application's - messages. - extension_signature: - type: string - format: byte - description: >- - Vote extension signature by the validator if they - participated in + state transition machine. + chain_id: + type: string + height: + type: string + format: int64 + time: + type: string + format: date-time + last_block_id: + type: object + properties: + hash: + type: string + format: byte + part_set_header: + type: object + properties: + total: + type: integer + format: int64 + hash: + type: string + format: byte + description: Header of the parts set for a block. + description: >- + BlockID defines the unique ID of a block as its hash and its + `PartSetHeader`. + title: prev block info + last_commit_hash: + type: string + format: byte + description: commit from validators from the last block + title: hashes of block data + data_hash: + type: string + format: byte + title: transactions + validators_hash: + type: string + format: byte + description: validators for the current block + title: hashes from the app output from the prev block + next_validators_hash: + type: string + format: byte + title: validators for the next block + consensus_hash: + type: string + format: byte + title: consensus params for current block + app_hash: + type: string + format: byte + title: state after txs from the previous block + last_results_hash: + type: string + format: byte + title: root hash of all results from the txs from the previous block + evidence_hash: + type: string + format: byte + description: evidence included in the block + title: consensus info + proposer_address: + type: string + description: >- + proposer_address is the original block proposer address, + formatted as a Bech32 string. - consensus for the associated block. + In Tendermint, this type is `bytes`, but in the SDK, we + convert it to a Bech32 string - Only valid for precommit messages. - description: >- - Vote represents a prevote or precommit vote from validators - for + for better UX. - consensus. - total_voting_power: - type: string - format: int64 - validator_power: - type: string - format: int64 - timestamp: + + original proposer of the block + description: Header defines the structure of a Tendermint block header. + data: + type: object + properties: + txs: + type: array + items: type: string - format: date-time - description: >- - DuplicateVoteEvidence contains evidence of a validator signed - two conflicting votes. - light_client_attack_evidence: - type: object - properties: - conflicting_block: + format: byte + description: >- + Txs that will be applied by state @ block.Height+1. + + NOTE: not all txs here are valid. We're just agreeing on the + order first. + + This means that block.AppHash does not include these txs. + title: Data contains the set of transactions included in the block + evidence: + type: object + properties: + evidence: + type: array + items: type: object properties: - signed_header: + duplicate_vote_evidence: type: object properties: - header: + vote_a: type: object properties: - version: - title: basic block info - type: object - properties: - block: - type: string - format: uint64 - app: - type: string - format: uint64 + type: + type: string + enum: + - SIGNED_MSG_TYPE_UNKNOWN + - SIGNED_MSG_TYPE_PREVOTE + - SIGNED_MSG_TYPE_PRECOMMIT + - SIGNED_MSG_TYPE_PROPOSAL + default: SIGNED_MSG_TYPE_UNKNOWN description: >- - Consensus captures the consensus rules for - processing a block in the blockchain, - - including all blockchain data structures and the - rules of the application's + SignedMsgType is a type of signed message in the + consensus. - state transition machine. - chain_id: - type: string + - SIGNED_MSG_TYPE_UNKNOWN: Unknown + - SIGNED_MSG_TYPE_PREVOTE: Prevote + - SIGNED_MSG_TYPE_PRECOMMIT: Precommit + - SIGNED_MSG_TYPE_PROPOSAL: Proposal height: type: string format: int64 - time: - type: string - format: date-time - last_block_id: + round: + type: integer + format: int32 + block_id: type: object properties: hash: @@ -48396,42 +46737,69 @@ definitions: hash: type: string format: byte - title: PartsetHeader - title: BlockID - last_commit_hash: - type: string - format: byte - title: hashes of block data - data_hash: - type: string - format: byte - validators_hash: - type: string - format: byte - title: hashes from the app output from the prev block - next_validators_hash: - type: string - format: byte - consensus_hash: + description: Header of the parts set for a block. + description: >- + BlockID defines the unique ID of a block as its + hash and its `PartSetHeader`. + timestamp: type: string - format: byte - app_hash: + format: date-time + validator_address: type: string format: byte - last_results_hash: + validator_index: + type: integer + format: int32 + signature: type: string format: byte - evidence_hash: + description: >- + Vote signature by the validator if they + participated in consensus for the + + associated block. + extension: type: string format: byte - title: consensus info - proposer_address: + description: >- + Vote extension provided by the application. Only + valid for precommit + + messages. + extension_signature: type: string format: byte - description: Header defines the structure of a block header. - commit: + 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 properties: + type: + type: string + enum: + - SIGNED_MSG_TYPE_UNKNOWN + - SIGNED_MSG_TYPE_PREVOTE + - SIGNED_MSG_TYPE_PRECOMMIT + - SIGNED_MSG_TYPE_PROPOSAL + default: SIGNED_MSG_TYPE_UNKNOWN + description: >- + SignedMsgType is a type of signed message in the + consensus. + + - SIGNED_MSG_TYPE_UNKNOWN: Unknown + - SIGNED_MSG_TYPE_PREVOTE: Prevote + - SIGNED_MSG_TYPE_PRECOMMIT: Precommit + - SIGNED_MSG_TYPE_PROPOSAL: Proposal height: type: string format: int64 @@ -48447,49 +46815,314 @@ definitions: part_set_header: type: object properties: - total: - type: integer - format: int64 - hash: + total: + type: integer + format: int64 + hash: + type: string + format: byte + description: Header of the parts set for a block. + description: >- + BlockID defines the unique ID of a block as its + hash and its `PartSetHeader`. + timestamp: + type: string + format: date-time + validator_address: + type: string + format: byte + validator_index: + type: integer + format: int32 + 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 or precommit vote from + validators for + + consensus. + total_voting_power: + type: string + format: int64 + validator_power: + type: string + format: int64 + timestamp: + type: string + format: date-time + description: >- + DuplicateVoteEvidence contains evidence of a validator + signed two conflicting votes. + light_client_attack_evidence: + type: object + properties: + conflicting_block: + type: object + properties: + signed_header: + type: object + properties: + header: + type: object + properties: + version: + title: basic block info + type: object + properties: + block: + type: string + format: uint64 + app: + type: string + format: uint64 + description: >- + Consensus captures the consensus rules + for processing a block in the + blockchain, + + including all blockchain data structures + and the rules of the application's + + state transition machine. + chain_id: + type: string + height: + type: string + format: int64 + time: + type: string + format: date-time + last_block_id: + type: object + properties: + hash: + type: string + format: byte + part_set_header: + type: object + properties: + total: + type: integer + format: int64 + hash: + type: string + format: byte + description: Header of the parts set for a block. + description: >- + BlockID defines the unique ID of a block + as its hash and its `PartSetHeader`. + title: prev block info + last_commit_hash: + type: string + format: byte + description: >- + commit from validators from the last + block + title: hashes of block data + data_hash: + type: string + format: byte + title: transactions + validators_hash: + type: string + format: byte + description: validators for the current block + title: >- + hashes from the app output from the prev + block + next_validators_hash: + type: string + format: byte + title: validators for the next block + consensus_hash: + type: string + format: byte + title: consensus params for current block + app_hash: + type: string + format: byte + title: state after txs from the previous block + last_results_hash: + type: string + format: byte + title: >- + root hash of all results from the txs + from the previous block + evidence_hash: + type: string + format: byte + description: evidence included in the block + title: consensus info + proposer_address: + type: string + format: byte + title: original proposer of the block + description: >- + Header defines the structure of a block + header. + commit: + type: object + properties: + height: + type: string + format: int64 + round: + type: integer + format: int32 + block_id: + type: object + properties: + hash: + type: string + format: byte + part_set_header: + type: object + properties: + total: + type: integer + format: int64 + hash: + type: string + format: byte + description: Header of the parts set for a block. + description: >- + BlockID defines the unique ID of a block + as its hash and its `PartSetHeader`. + signatures: + type: array + items: + type: object + properties: + block_id_flag: + type: string + enum: + - BLOCK_ID_FLAG_UNKNOWN + - BLOCK_ID_FLAG_ABSENT + - BLOCK_ID_FLAG_COMMIT + - BLOCK_ID_FLAG_NIL + default: BLOCK_ID_FLAG_UNKNOWN + description: >- + - BLOCK_ID_FLAG_UNKNOWN: Indicates an + error condition + - BLOCK_ID_FLAG_ABSENT: The vote was not received + - BLOCK_ID_FLAG_COMMIT: Voted for the block that received the majority + - BLOCK_ID_FLAG_NIL: Voted for nil + title: >- + BlockIdFlag indicates which BlockID the + signature is for + validator_address: + type: string + format: byte + timestamp: + type: string + format: date-time + signature: + type: string + format: byte + description: >- + CommitSig is a part of the Vote included + in a Commit. + description: >- + Commit contains the evidence that a block + was committed by a set of validators. + description: >- + SignedHeader contains a Header(H) and + Commit(H+1) with signatures of validators who + signed it. + validator_set: + type: object + properties: + validators: + type: array + items: + type: object + properties: + address: + type: string + format: byte + pub_key: + type: object + properties: + ed25519: + type: string + format: byte + secp256k1: + type: string + format: byte + description: >- + PublicKey is a ED25519 or a secp256k1 + public key. + voting_power: + type: string + format: int64 + proposer_priority: + type: string + format: int64 + description: >- + Validator represents a node participating + in the consensus protocol. + proposer: + type: object + properties: + address: type: string format: byte - title: PartsetHeader - title: BlockID - signatures: - type: array - items: - type: object - properties: - block_id_flag: - type: string - enum: - - BLOCK_ID_FLAG_UNKNOWN - - BLOCK_ID_FLAG_ABSENT - - BLOCK_ID_FLAG_COMMIT - - BLOCK_ID_FLAG_NIL - default: BLOCK_ID_FLAG_UNKNOWN - title: >- - BlockIdFlag indicates which BlockID the - signature is for - validator_address: - type: string - format: byte - timestamp: - type: string - format: date-time - signature: - type: string - format: byte - description: >- - CommitSig is a part of the Vote included in a - Commit. + pub_key: + type: object + properties: + ed25519: + type: string + format: byte + secp256k1: + type: string + format: byte + description: >- + PublicKey is a ED25519 or a secp256k1 + public key. + voting_power: + type: string + format: int64 + proposer_priority: + type: string + format: int64 + description: >- + Validator represents a node participating in + the consensus protocol. + total_voting_power: + type: string + format: int64 + description: ValidatorSet defines a set of validators. description: >- - Commit contains the evidence that a block was - committed by a set of validators. - validator_set: - type: object - properties: - validators: + LightBlock is a combination of SignedHeader and + ValidatorSet. It is used by light clients. + common_height: + type: string + format: int64 + byzantine_validators: type: array items: type: object @@ -48506,241 +47139,32 @@ definitions: secp256k1: type: string format: byte - title: >- - PublicKey defines the keys available for use - with Validators + description: >- + PublicKey is a ED25519 or a secp256k1 public + key. voting_power: type: string format: int64 proposer_priority: type: string format: int64 - proposer: - type: object - properties: - address: - type: string - format: byte - pub_key: - type: object - properties: - ed25519: - type: string - format: byte - secp256k1: - type: string - format: byte - title: >- - PublicKey defines the keys available for use - with Validators - voting_power: - type: string - format: int64 - proposer_priority: - type: string - format: int64 + description: >- + Validator represents a node participating in the + consensus protocol. total_voting_power: type: string format: int64 - common_height: - type: string - format: int64 - byzantine_validators: - type: array - items: - type: object - properties: - address: - type: string - format: byte - pub_key: - type: object - properties: - ed25519: - type: string - format: byte - secp256k1: - type: string - format: byte - title: >- - PublicKey defines the keys available for use with - Validators - voting_power: - type: string - format: int64 - proposer_priority: - type: string - format: int64 - total_voting_power: - type: string - format: int64 - timestamp: - type: string - format: date-time - description: >- - LightClientAttackEvidence contains evidence of a set of - validators attempting to mislead a light client. - tendermint.types.Header: - type: object - properties: - version: - title: basic block info - type: object - properties: - block: - type: string - format: uint64 - app: - type: string - format: uint64 - description: >- - Consensus captures the consensus rules for processing a block in the - blockchain, - - including all blockchain data structures and the rules of the - application's - - state transition machine. - chain_id: - type: string - height: - type: string - format: int64 - time: - type: string - format: date-time - last_block_id: - type: object - properties: - hash: - type: string - format: byte - part_set_header: - type: object - properties: - total: - type: integer - format: int64 - hash: - type: string - format: byte - title: PartsetHeader - title: BlockID - last_commit_hash: - type: string - format: byte - title: hashes of block data - data_hash: - type: string - format: byte - validators_hash: - type: string - format: byte - title: hashes from the app output from the prev block - next_validators_hash: - type: string - format: byte - consensus_hash: - type: string - format: byte - app_hash: - type: string - format: byte - last_results_hash: - type: string - format: byte - evidence_hash: - type: string - format: byte - title: consensus info - proposer_address: - type: string - format: byte - description: Header defines the structure of a block header. - tendermint.types.LightBlock: - type: object - properties: - signed_header: - type: object - properties: - header: - type: object - properties: - version: - title: basic block info - type: object - properties: - block: - type: string - format: uint64 - app: - type: string - format: uint64 - description: >- - Consensus captures the consensus rules for processing a block - in the blockchain, - - including all blockchain data structures and the rules of the - application's - - state transition machine. - chain_id: - type: string - height: - type: string - format: int64 - time: - type: string - format: date-time - last_block_id: - type: object - properties: - hash: - type: string - format: byte - part_set_header: - type: object - properties: - total: - type: integer - format: int64 - hash: - type: string - format: byte - title: PartsetHeader - title: BlockID - last_commit_hash: - type: string - format: byte - title: hashes of block data - data_hash: - type: string - format: byte - validators_hash: - type: string - format: byte - title: hashes from the app output from the prev block - next_validators_hash: - type: string - format: byte - consensus_hash: - type: string - format: byte - app_hash: - type: string - format: byte - last_results_hash: - type: string - format: byte - evidence_hash: - type: string - format: byte - title: consensus info - proposer_address: - type: string - format: byte - description: Header defines the structure of a block header. - commit: + timestamp: + type: string + format: date-time + description: >- + LightClientAttackEvidence contains evidence of a set of + validators attempting to mislead a light client. + description: >- + Evidence is a generic type for wrapping evidence of + misbehavior by a validator. + description: EvidenceList is a list of evidence. + last_commit: type: object properties: height: @@ -48756,581 +47180,599 @@ definitions: type: string format: byte part_set_header: - type: object - properties: - total: - type: integer - format: int64 - hash: - type: string - format: byte - title: PartsetHeader - title: BlockID - signatures: - type: array - items: - type: object - properties: - block_id_flag: - type: string - enum: - - BLOCK_ID_FLAG_UNKNOWN - - BLOCK_ID_FLAG_ABSENT - - BLOCK_ID_FLAG_COMMIT - - BLOCK_ID_FLAG_NIL - default: BLOCK_ID_FLAG_UNKNOWN - title: BlockIdFlag indicates which BlockID the signature is for - validator_address: - type: string - format: byte - timestamp: - type: string - format: date-time - signature: - type: string - format: byte - description: CommitSig is a part of the Vote included in a Commit. - description: >- - Commit contains the evidence that a block was committed by a set - of validators. - validator_set: - type: object - properties: - validators: - type: array - items: - type: object - properties: - address: - type: string - format: byte - pub_key: - type: object - properties: - ed25519: - type: string - format: byte - secp256k1: - type: string - format: byte - title: PublicKey defines the keys available for use with Validators - voting_power: - type: string - format: int64 - proposer_priority: - type: string - format: int64 - proposer: - type: object - properties: - address: - type: string - format: byte - pub_key: - type: object - properties: - ed25519: - type: string - format: byte - secp256k1: - type: string - format: byte - title: PublicKey defines the keys available for use with Validators - voting_power: - type: string - format: int64 - proposer_priority: - type: string - format: int64 - total_voting_power: - type: string - format: int64 - tendermint.types.LightClientAttackEvidence: - type: object - properties: - conflicting_block: - type: object - properties: - signed_header: - type: object - properties: - header: - type: object - properties: - version: - title: basic block info - type: object - properties: - block: - type: string - format: uint64 - app: - type: string - format: uint64 - description: >- - Consensus captures the consensus rules for processing a - block in the blockchain, - - including all blockchain data structures and the rules of - the application's - - state transition machine. - chain_id: - type: string - height: - type: string - format: int64 - time: - type: string - format: date-time - last_block_id: - type: object - properties: - hash: - type: string - format: byte - part_set_header: - type: object - properties: - total: - type: integer - format: int64 - hash: - type: string - format: byte - title: PartsetHeader - title: BlockID - last_commit_hash: - type: string - format: byte - title: hashes of block data - data_hash: - type: string - format: byte - validators_hash: - type: string - format: byte - title: hashes from the app output from the prev block - next_validators_hash: - type: string - format: byte - consensus_hash: - type: string - format: byte - app_hash: - type: string - format: byte - last_results_hash: - type: string - format: byte - evidence_hash: - type: string - format: byte - title: consensus info - proposer_address: - type: string - format: byte - description: Header defines the structure of a block header. - commit: - type: object - properties: - height: - type: string - format: int64 - round: - type: integer - format: int32 - block_id: - type: object - properties: - hash: - type: string - format: byte - part_set_header: - type: object - properties: - total: - type: integer - format: int64 - hash: - type: string - format: byte - title: PartsetHeader - title: BlockID - signatures: - type: array - items: - type: object - properties: - block_id_flag: - type: string - enum: - - BLOCK_ID_FLAG_UNKNOWN - - BLOCK_ID_FLAG_ABSENT - - BLOCK_ID_FLAG_COMMIT - - BLOCK_ID_FLAG_NIL - default: BLOCK_ID_FLAG_UNKNOWN - title: >- - BlockIdFlag indicates which BlockID the signature is - for - validator_address: - type: string - format: byte - timestamp: - type: string - format: date-time - signature: - type: string - format: byte - description: CommitSig is a part of the Vote included in a Commit. + type: object + properties: + total: + type: integer + format: int64 + hash: + type: string + format: byte + description: Header of the parts set for a block. description: >- - Commit contains the evidence that a block was committed by a - set of validators. - validator_set: - type: object - properties: - validators: + BlockID defines the unique ID of a block as its hash and its + `PartSetHeader`. + signatures: type: array items: type: object properties: - address: + block_id_flag: + type: string + enum: + - BLOCK_ID_FLAG_UNKNOWN + - BLOCK_ID_FLAG_ABSENT + - BLOCK_ID_FLAG_COMMIT + - BLOCK_ID_FLAG_NIL + default: BLOCK_ID_FLAG_UNKNOWN + description: |- + - BLOCK_ID_FLAG_UNKNOWN: Indicates an error condition + - BLOCK_ID_FLAG_ABSENT: The vote was not received + - BLOCK_ID_FLAG_COMMIT: Voted for the block that received the majority + - BLOCK_ID_FLAG_NIL: Voted for nil + title: BlockIdFlag indicates which BlockID the signature is for + validator_address: type: string format: byte - pub_key: - type: object - properties: - ed25519: - type: string - format: byte - secp256k1: - type: string - format: byte - title: >- - PublicKey defines the keys available for use with - Validators - voting_power: + timestamp: type: string - format: int64 - proposer_priority: + format: date-time + signature: type: string - format: int64 - proposer: - type: object - properties: - address: - type: string - format: byte - pub_key: - type: object - properties: - ed25519: - type: string - format: byte - secp256k1: - type: string - format: byte - title: >- - PublicKey defines the keys available for use with - Validators - voting_power: - type: string - format: int64 - proposer_priority: - type: string - format: int64 - total_voting_power: - type: string - format: int64 - common_height: + format: byte + description: CommitSig is a part of the Vote included in a Commit. + description: >- + Commit contains the evidence that a block was committed by a set + of validators. + description: |- + Block is tendermint type Block, with the Header proposer address + field converted to bech32 string. + description: >- + GetLatestBlockResponse is the response type for the Query/GetLatestBlock + RPC method. + cosmos.base.tendermint.v1beta1.GetLatestValidatorSetResponse: + type: object + properties: + block_height: type: string format: int64 - byzantine_validators: + validators: type: array items: type: object properties: address: type: string - format: byte pub_key: type: object properties: - ed25519: - type: string - format: byte - secp256k1: + '@type': type: string - format: byte - title: PublicKey defines the keys available for use with Validators + 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. + additionalProperties: {} + 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" + } voting_power: type: string format: int64 proposer_priority: type: string format: int64 - total_voting_power: - type: string - format: int64 - timestamp: - type: string - format: date-time + description: Validator is the type for the validator-set. + pagination: + description: pagination defines an pagination for the response. + type: object + properties: + next_key: + type: string + format: byte + description: |- + next_key is the key to be passed to PageRequest.key to + query the next page most efficiently. It will be empty if + there are no more results. + total: + type: string + format: uint64 + title: >- + total is total number of results available if + PageRequest.count_total + + was set, its value is undefined otherwise description: >- - LightClientAttackEvidence contains evidence of a set of validators - attempting to mislead a light client. - tendermint.types.PartSetHeader: - type: object - properties: - total: - type: integer - format: int64 - hash: - type: string - format: byte - title: PartsetHeader - tendermint.types.SignedHeader: + GetLatestValidatorSetResponse is the response type for the + Query/GetValidatorSetByHeight RPC method. + cosmos.base.tendermint.v1beta1.GetNodeInfoResponse: type: object properties: - header: + default_node_info: type: object properties: - version: - title: basic block info + protocol_version: type: object properties: + p2p: + type: string + format: uint64 block: type: string format: uint64 app: type: string format: uint64 - description: >- - Consensus captures the consensus rules for processing a block in - the blockchain, - - including all blockchain data structures and the rules of the - application's - - state transition machine. - chain_id: - type: string - height: + description: ProtocolVersion represents the current p2p protocol version. + default_node_id: type: string - format: int64 - time: + listen_addr: type: string - format: date-time - last_block_id: - type: object - properties: - hash: - type: string - format: byte - part_set_header: - type: object - properties: - total: - type: integer - format: int64 - hash: - type: string - format: byte - title: PartsetHeader - title: BlockID - last_commit_hash: + network: type: string - format: byte - title: hashes of block data - data_hash: + version: type: string - format: byte - validators_hash: + channels: type: string format: byte - title: hashes from the app output from the prev block - next_validators_hash: + moniker: type: string - format: byte - consensus_hash: + other: + type: object + properties: + tx_index: + type: string + rpc_address: + type: string + description: DefaultNodeInfoOther is the misc. application specific data. + description: >- + DefaultNodeInfo is a basic node's information sent to other peers + during the + + p2p handshake. + application_version: + type: object + properties: + name: type: string - format: byte - app_hash: + app_name: type: string - format: byte - last_results_hash: + version: type: string - format: byte - evidence_hash: + git_commit: type: string - format: byte - title: consensus info - proposer_address: + build_tags: type: string - format: byte - description: Header defines the structure of a block header. - commit: - type: object - properties: - height: + go_version: type: string - format: int64 - round: - type: integer - format: int32 - block_id: - type: object - properties: - hash: - type: string - format: byte - part_set_header: - type: object - properties: - total: - type: integer - format: int64 - hash: - type: string - format: byte - title: PartsetHeader - title: BlockID - signatures: + build_deps: type: array items: type: object properties: - block_id_flag: + path: type: string - enum: - - BLOCK_ID_FLAG_UNKNOWN - - BLOCK_ID_FLAG_ABSENT - - BLOCK_ID_FLAG_COMMIT - - BLOCK_ID_FLAG_NIL - default: BLOCK_ID_FLAG_UNKNOWN - title: BlockIdFlag indicates which BlockID the signature is for - validator_address: + title: module path + version: type: string - format: byte - timestamp: + title: module version + sum: type: string - format: date-time - signature: + title: checksum + title: Module is the type for VersionInfo + cosmos_sdk_version: + type: string + description: VersionInfo is the type for the GetNodeInfoResponse message. + description: >- + GetNodeInfoResponse is the response type for the Query/GetNodeInfo RPC + method. + cosmos.base.tendermint.v1beta1.GetSyncingResponse: + type: object + properties: + syncing: + type: boolean + description: >- + GetSyncingResponse is the response type for the Query/GetSyncing RPC + method. + cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightResponse: + type: object + properties: + block_height: + type: string + format: int64 + validators: + type: array + items: + type: object + properties: + address: + type: string + pub_key: + type: object + properties: + '@type': type: string - format: byte - description: CommitSig is a part of the Vote included in a Commit. - description: >- - Commit contains the evidence that a block was committed by a set of - validators. - tendermint.types.SignedMsgType: - type: string - enum: - - SIGNED_MSG_TYPE_UNKNOWN - - SIGNED_MSG_TYPE_PREVOTE - - SIGNED_MSG_TYPE_PRECOMMIT - - SIGNED_MSG_TYPE_PROPOSAL - default: SIGNED_MSG_TYPE_UNKNOWN - description: |- - SignedMsgType is a type of signed message in the consensus. + 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 - - SIGNED_MSG_TYPE_PREVOTE: Votes - - SIGNED_MSG_TYPE_PROPOSAL: Proposals - tendermint.types.Validator: - type: object - properties: - address: - type: string - format: byte - pub_key: - type: object - properties: - ed25519: - type: string - format: byte - secp256k1: - type: string - format: byte - title: PublicKey defines the keys available for use with Validators - voting_power: - type: string - format: int64 - proposer_priority: - type: string - format: int64 - tendermint.types.ValidatorSet: - type: object - properties: - validators: - type: array - items: - type: object - properties: - address: - type: string - format: byte - pub_key: - type: object - properties: - ed25519: - type: string - format: byte - secp256k1: - type: string - format: byte - title: PublicKey defines the keys available for use with Validators + type.googleapis.com. + + + Schemes other than `http`, `https` (or the empty scheme) + might be + + used with implementation specific semantics. + additionalProperties: {} + 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" + } voting_power: type: string format: int64 proposer_priority: type: string format: int64 - proposer: + description: Validator is the type for the validator-set. + pagination: + description: pagination defines an pagination for the response. type: object properties: - address: + next_key: type: string format: byte - pub_key: - type: object - properties: - ed25519: - type: string - format: byte - secp256k1: - type: string - format: byte - title: PublicKey defines the keys available for use with Validators - voting_power: - type: string - format: int64 - proposer_priority: + description: |- + next_key is the key to be passed to PageRequest.key to + query the next page most efficiently. It will be empty if + there are no more results. + total: type: string - format: int64 - total_voting_power: - type: string - format: int64 - tendermint.types.Vote: + format: uint64 + title: >- + total is total number of results available if + PageRequest.count_total + + was set, its value is undefined otherwise + description: >- + GetValidatorSetByHeightResponse is the response type for the + Query/GetValidatorSetByHeight RPC method. + cosmos.base.tendermint.v1beta1.Header: type: object properties: - type: - type: string - enum: - - SIGNED_MSG_TYPE_UNKNOWN - - SIGNED_MSG_TYPE_PREVOTE - - SIGNED_MSG_TYPE_PRECOMMIT - - SIGNED_MSG_TYPE_PROPOSAL - default: SIGNED_MSG_TYPE_UNKNOWN - description: |- - SignedMsgType is a type of signed message in the consensus. + version: + title: basic block info + type: object + properties: + block: + type: string + format: uint64 + app: + type: string + format: uint64 + description: >- + Consensus captures the consensus rules for processing a block in the + blockchain, + + including all blockchain data structures and the rules of the + application's - - SIGNED_MSG_TYPE_PREVOTE: Votes - - SIGNED_MSG_TYPE_PROPOSAL: Proposals + state transition machine. + chain_id: + type: string height: type: string format: int64 - round: - type: integer - format: int32 - block_id: + time: + type: string + format: date-time + last_block_id: type: object properties: hash: @@ -49345,58 +47787,278 @@ definitions: hash: type: string format: byte - title: PartsetHeader - title: BlockID - timestamp: + description: Header of the parts set for a block. + description: >- + BlockID defines the unique ID of a block as its hash and its + `PartSetHeader`. + title: prev block info + last_commit_hash: type: string - format: date-time - validator_address: + format: byte + description: commit from validators from the last block + title: hashes of block data + data_hash: type: string format: byte - validator_index: - type: integer - format: int32 - signature: + title: transactions + validators_hash: type: string format: byte - description: >- - Vote signature by the validator if they participated in consensus for - the - - associated block. - extension: + description: validators for the current block + title: hashes from the app output from the prev block + next_validators_hash: type: string format: byte - description: |- - Vote extension provided by the application. Only valid for precommit - messages. - extension_signature: + title: validators for the next block + consensus_hash: 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. - tendermint.version.Consensus: + title: consensus params for current block + app_hash: + type: string + format: byte + title: state after txs from the previous block + last_results_hash: + type: string + format: byte + title: root hash of all results from the txs from the previous block + evidence_hash: + type: string + format: byte + description: evidence included in the block + title: consensus info + proposer_address: + type: string + description: >- + proposer_address is the original block proposer address, formatted as + a Bech32 string. + + In Tendermint, this type is `bytes`, but in the SDK, we convert it to + a Bech32 string + + for better UX. + + + original proposer of the block + description: Header defines the structure of a Tendermint block header. + cosmos.base.tendermint.v1beta1.Module: type: object properties: - block: + path: type: string - format: uint64 - app: + title: module path + version: type: string - format: uint64 - description: >- - Consensus captures the consensus rules for processing a block in the - blockchain, + title: module version + sum: + type: string + title: checksum + title: Module is the type for VersionInfo + cosmos.base.tendermint.v1beta1.Validator: + type: object + properties: + address: + type: string + pub_key: + type: object + properties: + '@type': + type: string + description: >- + A URL/resource name that uniquely identifies the type of the + serialized - including all blockchain data structures and the rules of the - application's + protocol buffer message. This string must contain at least - state transition machine. + 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. + additionalProperties: {} + 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" + } + voting_power: + type: string + format: int64 + proposer_priority: + type: string + format: int64 + description: Validator is the type for the validator-set. + cosmos.base.tendermint.v1beta1.VersionInfo: + type: object + properties: + name: + type: string + app_name: + type: string + version: + type: string + git_commit: + type: string + build_tags: + type: string + go_version: + type: string + build_deps: + type: array + items: + type: object + properties: + path: + type: string + title: module path + version: + type: string + title: module version + sum: + type: string + title: checksum + title: Module is the type for VersionInfo + cosmos_sdk_version: + type: string + description: VersionInfo is the type for the GetNodeInfoResponse message. cosmos.base.node.v1beta1.ConfigResponse: type: object properties: @@ -49404,9 +48066,11 @@ definitions: type: string pruning_keep_recent: type: string - title: pruning settings pruning_interval: type: string + halt_height: + type: string + format: uint64 description: ConfigResponse defines the response structure for the Config gRPC query. cosmos.base.node.v1beta1.StatusResponse: type: object @@ -49414,18 +48078,23 @@ definitions: earliest_store_height: type: string format: uint64 + title: earliest block height available in the store height: type: string format: uint64 + title: current block height timestamp: type: string format: date-time + title: block height timestamp app_hash: type: string format: byte + title: app hash of the current block validator_hash: type: string format: byte + title: validator hash provided by the consensus header description: StateResponse defines the response structure for the status of a node. cosmos.base.v1beta1.DecCoin: type: object @@ -49509,8 +48178,6 @@ definitions: Deprecated - - Since: cosmos-sdk 0.50 cosmos.distribution.v1beta1.QueryDelegationRewardsResponse: type: object properties: @@ -49829,7 +48496,7 @@ definitions: items: type: object properties: - type_url: + '@type': type: string description: >- A URL/resource name that uniquely identifies the type of the @@ -49883,12 +48550,7 @@ definitions: be used with implementation specific semantics. - value: - type: string - format: byte - description: >- - Must be a valid serialized protocol buffer of the above - specified type. + additionalProperties: {} description: >- `Any` contains an arbitrary serialized protocol buffer message along with a @@ -50023,9 +48685,10 @@ definitions: type: object properties: evidence: + description: evidence returns the requested evidence. type: object properties: - type_url: + '@type': type: string description: >- A URL/resource name that uniquely identifies the type of the @@ -50077,116 +48740,7 @@ definitions: 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" - } + additionalProperties: {} description: >- QueryEvidenceResponse is the response type for the Query/Evidence RPC method. @@ -50252,9 +48806,10 @@ definitions: format: uint64 description: proposal_id defines the unique id of the proposal. content: + description: content is the proposal's content. type: object properties: - type_url: + '@type': type: string description: >- A URL/resource name that uniquely identifies the type of the @@ -50306,116 +48861,7 @@ definitions: 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" - } + additionalProperties: {} status: description: status defines the proposal status. type: string @@ -50506,6 +48952,7 @@ definitions: type: object properties: deposit: + description: deposit defines the requested deposit. type: object properties: proposal_id: @@ -50533,9 +48980,6 @@ definitions: signatures required by gogoproto. description: amount to be deposited by depositor. - description: |- - Deposit defines an amount deposited by an account address to an active - proposal. description: >- QueryDepositResponse is the response type for the Query/Deposit RPC method. @@ -50677,9 +49121,10 @@ definitions: format: uint64 description: proposal_id defines the unique id of the proposal. content: + description: content is the proposal's content. type: object properties: - type_url: + '@type': type: string description: >- A URL/resource name that uniquely identifies the type of the @@ -50734,119 +49179,7 @@ definitions: 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" - } + additionalProperties: {} status: description: status defines the proposal status. type: string @@ -50933,9 +49266,10 @@ definitions: format: uint64 description: proposal_id defines the unique id of the proposal. content: + description: content is the proposal's content. type: object properties: - type_url: + '@type': type: string description: >- A URL/resource name that uniquely identifies the type of the @@ -50992,121 +49326,7 @@ definitions: 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" - } + additionalProperties: {} status: description: status defines the proposal status. type: string @@ -51227,6 +49447,7 @@ definitions: type: object properties: vote: + description: vote defines the queried vote. type: object properties: proposal_id: @@ -51273,17 +49494,11 @@ definitions: weight: type: string description: weight is the vote weight associated with the vote option. - description: |- - WeightedVoteOption defines a unit of vote for vote split. - - Since: cosmos-sdk 0.43 + description: WeightedVoteOption defines a unit of vote for vote split. description: |- options is the weighted vote options. Since: cosmos-sdk 0.43 - description: |- - Vote defines a vote on a governance proposal. - A Vote consists of a proposal ID, the voter, and the vote option. description: QueryVoteResponse is the response type for the Query/Vote RPC method. cosmos.gov.v1beta1.QueryVotesResponse: type: object @@ -51337,10 +49552,7 @@ definitions: weight: type: string description: weight is the vote weight associated with the vote option. - description: |- - WeightedVoteOption defines a unit of vote for vote split. - - Since: cosmos-sdk 0.43 + description: WeightedVoteOption defines a unit of vote for vote split. description: |- options is the weighted vote options. @@ -51454,10 +49666,7 @@ definitions: weight: type: string description: weight is the vote weight associated with the vote option. - description: |- - WeightedVoteOption defines a unit of vote for vote split. - - Since: cosmos-sdk 0.43 + description: WeightedVoteOption defines a unit of vote for vote split. description: |- options is the weighted vote options. @@ -51508,10 +49717,7 @@ definitions: weight: type: string description: weight is the vote weight associated with the vote option. - description: |- - WeightedVoteOption defines a unit of vote for vote split. - - Since: cosmos-sdk 0.43 + description: WeightedVoteOption defines a unit of vote for vote split. cosmos.gov.v1.Deposit: type: object properties: @@ -51566,6 +49772,41 @@ definitions: months. description: DepositParams defines the params for deposits on governance proposals. + cosmos.gov.v1.MessageBasedParams: + type: object + properties: + voting_period: + type: string + description: Duration of the voting period. + quorum: + type: string + description: >- + Minimum percentage of total stake needed to vote for a result to be + considered valid. + yes_quorum: + type: string + description: >- + yes_quorum defines the minimum percentage of Yes votes in quorum for + proposal to pass. + + If zero then the yes_quorum is disabled. + threshold: + type: string + description: Minimum proportion of Yes votes for proposal to pass. + veto_threshold: + type: string + description: >- + Minimum value of Veto votes to Total votes ratio for proposal to be + vetoed. + description: >- + MessageBasedParams defines the parameters of specific messages in a + proposal. + + It is used to define the parameters of a proposal that is based on a + specific message. + + Once a message has message based params, it only supports a standard + proposal type. cosmos.gov.v1.Params: type: object properties: @@ -51587,7 +49828,7 @@ definitions: max_deposit_period: type: string description: >- - Maximum period for Atom holders to deposit on a proposal. Initial + Maximum period for stake holders to deposit on a proposal. Initial value: 2 months. @@ -51619,9 +49860,6 @@ definitions: description: >- The cancel ratio which will not be returned back to the depositors when a proposal is cancelled. - - - Since: cosmos-sdk 0.50 proposal_cancel_dest: type: string description: >- @@ -51630,23 +49868,14 @@ definitions: If empty, the (proposal_cancel_ratio * deposit) proposal deposits will be burned. - - - Since: cosmos-sdk 0.50 expedited_voting_period: type: string - description: |- - Duration of the voting period of an expedited proposal. - - Since: cosmos-sdk 0.50 + description: Duration of the voting period of an expedited proposal. expedited_threshold: type: string description: >- Minimum proportion of Yes votes for proposal to pass. Default value: 0.67. - - - Since: cosmos-sdk 0.50 expedited_min_deposit: type: array items: @@ -51664,15 +49893,12 @@ definitions: description: Minimum expedited deposit for a proposal to enter voting period. burn_vote_quorum: type: boolean - description: 'Since: cosmos-sdk 0.47' title: burn deposits if a proposal does not meet quorum burn_proposal_deposit_prevote: type: boolean - description: 'Since: cosmos-sdk 0.47' title: burn deposits if the proposal does not enter voting period burn_vote_veto: type: boolean - description: 'Since: cosmos-sdk 0.47' title: burn deposits if quorum with vote type no_veto is met min_deposit_ratio: type: string @@ -51684,9 +49910,6 @@ definitions: 100stake, a deposit of 1stake would be required. - - - Since: cosmos-sdk 0.50 proposal_cancel_max_period: type: string description: >- @@ -51704,7 +49927,6 @@ definitions: type: array items: type: string - description: 'Since: x/gov v1.0.0' title: >- optimistic_authorized_addresses is an optional governance parameter that limits the authorized accounts than can @@ -51718,13 +49940,19 @@ definitions: converted to a standard proposal. The threshold is expressed as a percentage of the total bonded tokens. + yes_quorum: + type: string + description: >- + yes_quorum defines the minimum percentage of Yes votes in quorum for + proposal to pass. - - Since: x/gov v1.0.0 - description: |- - Params defines the parameters for the x/gov module. - - Since: cosmos-sdk 0.47 + Default value: 0 (disabled). + expedited_quorum: + type: string + description: |- + Minimum percentage of total stake needed to vote for a result to be + considered valid for an expedited proposal. + description: Params defines the parameters for the x/gov module. cosmos.gov.v1.Proposal: type: object properties: @@ -51737,7 +49965,7 @@ definitions: items: type: object properties: - type_url: + '@type': type: string description: >- A URL/resource name that uniquely identifies the type of the @@ -51791,12 +50019,7 @@ definitions: be used with implementation specific semantics. - value: - type: string - format: byte - description: >- - Must be a valid serialized protocol buffer of the above - specified type. + additionalProperties: {} description: >- `Any` contains an arbitrary serialized protocol buffer message along with a @@ -51925,18 +50148,56 @@ definitions: properties: yes_count: type: string - description: yes_count is the number of yes votes on a proposal. + description: |- + yes_count is the number of yes votes on a proposal. + + option 1 abstain_count: type: string - description: abstain_count is the number of abstain votes on a proposal. + description: |- + abstain_count is the number of abstain votes on a proposal. + + option 2 no_count: type: string - description: no_count is the number of no votes on a proposal. + description: |- + no_count is the number of no votes on a proposal. + + option 3 no_with_veto_count: type: string description: >- no_with_veto_count is the number of no with veto votes on a proposal. + + + option 4 + option_one_count: + type: string + description: >- + option_one_count corresponds to the number of votes for option one + (= yes_count for non multiple choice proposals). + option_two_count: + type: string + description: >- + option_two_count corresponds to the number of votes for option two + (= abstain_count for non multiple choice + + proposals). + option_three_count: + type: string + description: >- + option_three_count corresponds to the number of votes for option + three (= no_count for non multiple choice + + proposals). + option_four_count: + type: string + description: >- + option_four_count corresponds to the number of votes for option + four (= no_with_veto_count for non multiple choice + + proposals). spam_count: type: string description: spam_count is the number of spam votes on a proposal. @@ -51979,28 +50240,21 @@ definitions: https://docs.cosmos.network/v0.47/modules/gov#proposal-3 title: type: string - description: 'Since: cosmos-sdk 0.47' title: title is the title of the proposal summary: type: string - description: 'Since: cosmos-sdk 0.47' title: summary is a short summary of the proposal proposer: type: string - description: 'Since: cosmos-sdk 0.47' title: proposer is the address of the proposal sumbitter expedited: type: boolean - description: |- - Since: cosmos-sdk 0.50 - Deprecated: Use ProposalType instead. + description: 'Deprecated: Use ProposalType instead.' title: expedited defines if the proposal is expedited failed_reason: type: string - description: 'Since: cosmos-sdk 0.50' title: failed_reason defines the reason why the proposal failed proposal_type: - description: 'Since: cosmos-sdk 0.51' title: proposal_type defines the type of the proposal type: string enum: @@ -52010,6 +50264,17 @@ definitions: - PROPOSAL_TYPE_OPTIMISTIC - PROPOSAL_TYPE_EXPEDITED default: PROPOSAL_TYPE_UNSPECIFIED + description: >- + ProposalType enumerates the valid proposal types. + + All proposal types are v1.Proposal which have different voting periods + or tallying logic. + + - PROPOSAL_TYPE_UNSPECIFIED: PROPOSAL_TYPE_UNSPECIFIED defines no proposal type, which fallback to PROPOSAL_TYPE_STANDARD. + - PROPOSAL_TYPE_STANDARD: PROPOSAL_TYPE_STANDARD defines the type for a standard proposal. + - PROPOSAL_TYPE_MULTIPLE_CHOICE: PROPOSAL_TYPE_MULTIPLE_CHOICE defines the type for a multiple choice proposal. + - PROPOSAL_TYPE_OPTIMISTIC: PROPOSAL_TYPE_OPTIMISTIC defines the type for an optimistic proposal. + - PROPOSAL_TYPE_EXPEDITED: PROPOSAL_TYPE_EXPEDITED defines the type for an expedited proposal. description: Proposal defines the core field members of a governance proposal. cosmos.gov.v1.ProposalStatus: type: string @@ -52055,6 +50320,27 @@ definitions: - PROPOSAL_TYPE_MULTIPLE_CHOICE: PROPOSAL_TYPE_MULTIPLE_CHOICE defines the type for a multiple choice proposal. - PROPOSAL_TYPE_OPTIMISTIC: PROPOSAL_TYPE_OPTIMISTIC defines the type for an optimistic proposal. - PROPOSAL_TYPE_EXPEDITED: PROPOSAL_TYPE_EXPEDITED defines the type for an expedited proposal. + cosmos.gov.v1.ProposalVoteOptions: + type: object + properties: + option_one: + type: string + title: option_one is the first option of the proposal + option_two: + type: string + title: option_two is the second option of the proposal + option_three: + type: string + title: option_three is the third option of the proposal + option_four: + type: string + title: option_four is the fourth option of the proposal + option_spam: + type: string + description: option_spam is always present for all proposals. + description: |- + ProposalVoteOptions defines the stringified vote options for proposals. + This allows to support multiple choice options for a given proposal. cosmos.gov.v1.QueryConstitutionResponse: type: object properties: @@ -52067,6 +50353,7 @@ definitions: type: object properties: deposit: + description: deposit defines the requested deposit. type: object properties: proposal_id: @@ -52094,9 +50381,6 @@ definitions: signatures required by gogoproto. description: amount to be deposited by depositor. - description: |- - Deposit defines an amount deposited by an account address to an active - proposal. description: >- QueryDepositResponse is the response type for the Query/Deposit RPC method. @@ -52161,6 +50445,47 @@ definitions: description: >- QueryDepositsResponse is the response type for the Query/Deposits RPC method. + cosmos.gov.v1.QueryMessageBasedParamsResponse: + type: object + properties: + params: + type: object + properties: + voting_period: + type: string + description: Duration of the voting period. + quorum: + type: string + description: >- + Minimum percentage of total stake needed to vote for a result to + be considered valid. + yes_quorum: + type: string + description: >- + yes_quorum defines the minimum percentage of Yes votes in quorum + for proposal to pass. + + If zero then the yes_quorum is disabled. + threshold: + type: string + description: Minimum proportion of Yes votes for proposal to pass. + veto_threshold: + type: string + description: >- + Minimum value of Veto votes to Total votes ratio for proposal to + be vetoed. + description: >- + MessageBasedParams defines the parameters of specific messages in a + proposal. + + It is used to define the parameters of a proposal that is based on a + specific message. + + Once a message has message based params, it only supports a standard + proposal type. + description: >- + QueryMessageBasedParamsResponse is the response for the + Query/MessageBasedParams RPC method. cosmos.gov.v1.QueryParamsResponse: type: object properties: @@ -52230,10 +50555,7 @@ definitions: vetoed. Default value: 1/3. params: - description: |- - params defines all the parameters of x/gov module. - - Since: cosmos-sdk 0.47 + description: params defines all the parameters of x/gov module. type: object properties: min_deposit: @@ -52257,7 +50579,7 @@ definitions: max_deposit_period: type: string description: >- - Maximum period for Atom holders to deposit on a proposal. Initial + Maximum period for stake holders to deposit on a proposal. Initial value: 2 months. @@ -52291,9 +50613,6 @@ definitions: description: >- The cancel ratio which will not be returned back to the depositors when a proposal is cancelled. - - - Since: cosmos-sdk 0.50 proposal_cancel_dest: type: string description: >- @@ -52302,23 +50621,14 @@ definitions: If empty, the (proposal_cancel_ratio * deposit) proposal deposits will be burned. - - - Since: cosmos-sdk 0.50 expedited_voting_period: type: string - description: |- - Duration of the voting period of an expedited proposal. - - Since: cosmos-sdk 0.50 + description: Duration of the voting period of an expedited proposal. expedited_threshold: type: string description: >- Minimum proportion of Yes votes for proposal to pass. Default value: 0.67. - - - Since: cosmos-sdk 0.50 expedited_min_deposit: type: array items: @@ -52339,15 +50649,12 @@ definitions: description: Minimum expedited deposit for a proposal to enter voting period. burn_vote_quorum: type: boolean - description: 'Since: cosmos-sdk 0.47' title: burn deposits if a proposal does not meet quorum burn_proposal_deposit_prevote: type: boolean - description: 'Since: cosmos-sdk 0.47' title: burn deposits if the proposal does not enter voting period burn_vote_veto: type: boolean - description: 'Since: cosmos-sdk 0.47' title: burn deposits if quorum with vote type no_veto is met min_deposit_ratio: type: string @@ -52359,9 +50666,6 @@ definitions: of 100stake, a deposit of 1stake would be required. - - - Since: cosmos-sdk 0.50 proposal_cancel_max_period: type: string description: >- @@ -52380,7 +50684,6 @@ definitions: type: array items: type: string - description: 'Since: x/gov v1.0.0' title: >- optimistic_authorized_addresses is an optional governance parameter that limits the authorized accounts than can @@ -52394,14 +50697,26 @@ definitions: converted to a standard proposal. The threshold is expressed as a percentage of the total bonded tokens. + yes_quorum: + type: string + description: >- + yes_quorum defines the minimum percentage of Yes votes in quorum + for proposal to pass. + Default value: 0 (disabled). + expedited_quorum: + type: string + description: >- + Minimum percentage of total stake needed to vote for a result to + be - Since: x/gov v1.0.0 + considered valid for an expedited proposal. description: QueryParamsResponse is the response type for the Query/Params RPC method. cosmos.gov.v1.QueryProposalResponse: type: object properties: proposal: + description: proposal is the requested governance proposal. type: object properties: id: @@ -52413,7 +50728,7 @@ definitions: items: type: object properties: - type_url: + '@type': type: string description: >- A URL/resource name that uniquely identifies the type of the @@ -52470,12 +50785,7 @@ definitions: 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. + additionalProperties: {} description: >- `Any` contains an arbitrary serialized protocol buffer message along with a @@ -52611,18 +50921,56 @@ definitions: properties: yes_count: type: string - description: yes_count is the number of yes votes on a proposal. + description: |- + yes_count is the number of yes votes on a proposal. + + option 1 abstain_count: type: string - description: abstain_count is the number of abstain votes on a proposal. + description: |- + abstain_count is the number of abstain votes on a proposal. + + option 2 no_count: type: string - description: no_count is the number of no votes on a proposal. + description: |- + no_count is the number of no votes on a proposal. + + option 3 no_with_veto_count: type: string description: >- no_with_veto_count is the number of no with veto votes on a proposal. + + + option 4 + option_one_count: + type: string + description: >- + option_one_count corresponds to the number of votes for option + one (= yes_count for non multiple choice proposals). + option_two_count: + type: string + description: >- + option_two_count corresponds to the number of votes for option + two (= abstain_count for non multiple choice + + proposals). + option_three_count: + type: string + description: >- + option_three_count corresponds to the number of votes for + option three (= no_count for non multiple choice + + proposals). + option_four_count: + type: string + description: >- + option_four_count corresponds to the number of votes for + option four (= no_with_veto_count for non multiple choice + + proposals). spam_count: type: string description: spam_count is the number of spam votes on a proposal. @@ -52668,28 +51016,21 @@ definitions: https://docs.cosmos.network/v0.47/modules/gov#proposal-3 title: type: string - description: 'Since: cosmos-sdk 0.47' title: title is the title of the proposal summary: type: string - description: 'Since: cosmos-sdk 0.47' title: summary is a short summary of the proposal proposer: type: string - description: 'Since: cosmos-sdk 0.47' title: proposer is the address of the proposal sumbitter expedited: type: boolean - description: |- - Since: cosmos-sdk 0.50 - Deprecated: Use ProposalType instead. + description: 'Deprecated: Use ProposalType instead.' title: expedited defines if the proposal is expedited failed_reason: type: string - description: 'Since: cosmos-sdk 0.50' title: failed_reason defines the reason why the proposal failed proposal_type: - description: 'Since: cosmos-sdk 0.51' title: proposal_type defines the type of the proposal type: string enum: @@ -52699,10 +51040,45 @@ definitions: - PROPOSAL_TYPE_OPTIMISTIC - PROPOSAL_TYPE_EXPEDITED default: PROPOSAL_TYPE_UNSPECIFIED - description: Proposal defines the core field members of a governance proposal. + description: >- + ProposalType enumerates the valid proposal types. + + All proposal types are v1.Proposal which have different voting + periods or tallying logic. + + - PROPOSAL_TYPE_UNSPECIFIED: PROPOSAL_TYPE_UNSPECIFIED defines no proposal type, which fallback to PROPOSAL_TYPE_STANDARD. + - PROPOSAL_TYPE_STANDARD: PROPOSAL_TYPE_STANDARD defines the type for a standard proposal. + - PROPOSAL_TYPE_MULTIPLE_CHOICE: PROPOSAL_TYPE_MULTIPLE_CHOICE defines the type for a multiple choice proposal. + - PROPOSAL_TYPE_OPTIMISTIC: PROPOSAL_TYPE_OPTIMISTIC defines the type for an optimistic proposal. + - PROPOSAL_TYPE_EXPEDITED: PROPOSAL_TYPE_EXPEDITED defines the type for an expedited proposal. description: >- QueryProposalResponse is the response type for the Query/Proposal RPC method. + cosmos.gov.v1.QueryProposalVoteOptionsResponse: + type: object + properties: + vote_options: + description: vote_options defines the valid voting options for a proposal. + type: object + properties: + option_one: + type: string + title: option_one is the first option of the proposal + option_two: + type: string + title: option_two is the second option of the proposal + option_three: + type: string + title: option_three is the third option of the proposal + option_four: + type: string + title: option_four is the fourth option of the proposal + option_spam: + type: string + description: option_spam is always present for all proposals. + description: >- + QueryProposalVoteOptionsResponse is the response type for the + Query/ProposalVoteOptions RPC method. cosmos.gov.v1.QueryProposalsResponse: type: object properties: @@ -52720,7 +51096,7 @@ definitions: items: type: object properties: - type_url: + '@type': type: string description: >- A URL/resource name that uniquely identifies the type of @@ -52777,12 +51153,7 @@ definitions: 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. + additionalProperties: {} description: >- `Any` contains an arbitrary serialized protocol buffer message along with a @@ -52921,18 +51292,56 @@ definitions: properties: yes_count: type: string - description: yes_count is the number of yes votes on a proposal. + description: |- + yes_count is the number of yes votes on a proposal. + + option 1 abstain_count: type: string - description: abstain_count is the number of abstain votes on a proposal. + description: |- + abstain_count is the number of abstain votes on a proposal. + + option 2 no_count: type: string - description: no_count is the number of no votes on a proposal. + description: |- + no_count is the number of no votes on a proposal. + + option 3 no_with_veto_count: type: string description: >- no_with_veto_count is the number of no with veto votes on a proposal. + + + option 4 + option_one_count: + type: string + description: >- + option_one_count corresponds to the number of votes for + option one (= yes_count for non multiple choice proposals). + option_two_count: + type: string + description: >- + option_two_count corresponds to the number of votes for + option two (= abstain_count for non multiple choice + + proposals). + option_three_count: + type: string + description: >- + option_three_count corresponds to the number of votes for + option three (= no_count for non multiple choice + + proposals). + option_four_count: + type: string + description: >- + option_four_count corresponds to the number of votes for + option four (= no_with_veto_count for non multiple choice + + proposals). spam_count: type: string description: spam_count is the number of spam votes on a proposal. @@ -52978,28 +51387,21 @@ definitions: https://docs.cosmos.network/v0.47/modules/gov#proposal-3 title: type: string - description: 'Since: cosmos-sdk 0.47' title: title is the title of the proposal summary: type: string - description: 'Since: cosmos-sdk 0.47' title: summary is a short summary of the proposal proposer: type: string - description: 'Since: cosmos-sdk 0.47' title: proposer is the address of the proposal sumbitter expedited: type: boolean - description: |- - Since: cosmos-sdk 0.50 - Deprecated: Use ProposalType instead. + description: 'Deprecated: Use ProposalType instead.' title: expedited defines if the proposal is expedited failed_reason: type: string - description: 'Since: cosmos-sdk 0.50' title: failed_reason defines the reason why the proposal failed proposal_type: - description: 'Since: cosmos-sdk 0.51' title: proposal_type defines the type of the proposal type: string enum: @@ -53009,6 +51411,17 @@ definitions: - PROPOSAL_TYPE_OPTIMISTIC - PROPOSAL_TYPE_EXPEDITED default: PROPOSAL_TYPE_UNSPECIFIED + description: >- + ProposalType enumerates the valid proposal types. + + All proposal types are v1.Proposal which have different voting + periods or tallying logic. + + - PROPOSAL_TYPE_UNSPECIFIED: PROPOSAL_TYPE_UNSPECIFIED defines no proposal type, which fallback to PROPOSAL_TYPE_STANDARD. + - PROPOSAL_TYPE_STANDARD: PROPOSAL_TYPE_STANDARD defines the type for a standard proposal. + - PROPOSAL_TYPE_MULTIPLE_CHOICE: PROPOSAL_TYPE_MULTIPLE_CHOICE defines the type for a multiple choice proposal. + - PROPOSAL_TYPE_OPTIMISTIC: PROPOSAL_TYPE_OPTIMISTIC defines the type for an optimistic proposal. + - PROPOSAL_TYPE_EXPEDITED: PROPOSAL_TYPE_EXPEDITED defines the type for an expedited proposal. description: Proposal defines the core field members of a governance proposal. description: proposals defines all the requested governance proposals. pagination: @@ -53042,18 +51455,56 @@ definitions: properties: yes_count: type: string - description: yes_count is the number of yes votes on a proposal. + description: |- + yes_count is the number of yes votes on a proposal. + + option 1 abstain_count: type: string - description: abstain_count is the number of abstain votes on a proposal. + description: |- + abstain_count is the number of abstain votes on a proposal. + + option 2 no_count: type: string - description: no_count is the number of no votes on a proposal. + description: |- + no_count is the number of no votes on a proposal. + + option 3 no_with_veto_count: type: string description: >- no_with_veto_count is the number of no with veto votes on a proposal. + + + option 4 + option_one_count: + type: string + description: >- + option_one_count corresponds to the number of votes for option one + (= yes_count for non multiple choice proposals). + option_two_count: + type: string + description: >- + option_two_count corresponds to the number of votes for option two + (= abstain_count for non multiple choice + + proposals). + option_three_count: + type: string + description: >- + option_three_count corresponds to the number of votes for option + three (= no_count for non multiple choice + + proposals). + option_four_count: + type: string + description: >- + option_four_count corresponds to the number of votes for option + four (= no_with_veto_count for non multiple choice + + proposals). spam_count: type: string description: spam_count is the number of spam votes on a proposal. @@ -53064,6 +51515,7 @@ definitions: type: object properties: vote: + description: vote defines the queried vote. type: object properties: proposal_id: @@ -53085,14 +51537,14 @@ definitions: type: string enum: - VOTE_OPTION_UNSPECIFIED - - VOTE_OPTION_ONE - VOTE_OPTION_YES - - VOTE_OPTION_TWO + - VOTE_OPTION_ONE - VOTE_OPTION_ABSTAIN - - VOTE_OPTION_THREE + - VOTE_OPTION_TWO - VOTE_OPTION_NO - - VOTE_OPTION_FOUR + - VOTE_OPTION_THREE - VOTE_OPTION_NO_WITH_VETO + - VOTE_OPTION_FOUR - VOTE_OPTION_SPAM default: VOTE_OPTION_UNSPECIFIED weight: @@ -53107,9 +51559,6 @@ definitions: 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. description: QueryVoteResponse is the response type for the Query/Vote RPC method. cosmos.gov.v1.QueryVotesResponse: type: object @@ -53138,14 +51587,14 @@ definitions: type: string enum: - VOTE_OPTION_UNSPECIFIED - - VOTE_OPTION_ONE - VOTE_OPTION_YES - - VOTE_OPTION_TWO + - VOTE_OPTION_ONE - VOTE_OPTION_ABSTAIN - - VOTE_OPTION_THREE + - VOTE_OPTION_TWO - VOTE_OPTION_NO - - VOTE_OPTION_FOUR + - VOTE_OPTION_THREE - VOTE_OPTION_NO_WITH_VETO + - VOTE_OPTION_FOUR - VOTE_OPTION_SPAM default: VOTE_OPTION_UNSPECIFIED weight: @@ -53208,16 +51657,54 @@ definitions: properties: yes_count: type: string - description: yes_count is the number of yes votes on a proposal. + description: |- + yes_count is the number of yes votes on a proposal. + + option 1 abstain_count: type: string - description: abstain_count is the number of abstain votes on a proposal. + description: |- + abstain_count is the number of abstain votes on a proposal. + + option 2 no_count: type: string - description: no_count is the number of no votes on a proposal. + description: |- + no_count is the number of no votes on a proposal. + + option 3 no_with_veto_count: type: string - description: no_with_veto_count is the number of no with veto votes on a proposal. + description: |- + no_with_veto_count is the number of no with veto votes on a proposal. + + option 4 + option_one_count: + type: string + description: >- + option_one_count corresponds to the number of votes for option one (= + yes_count for non multiple choice proposals). + option_two_count: + type: string + description: >- + option_two_count corresponds to the number of votes for option two (= + abstain_count for non multiple choice + + proposals). + option_three_count: + type: string + description: >- + option_three_count corresponds to the number of votes for option three + (= no_count for non multiple choice + + proposals). + option_four_count: + type: string + description: >- + option_four_count corresponds to the number of votes for option four + (= no_with_veto_count for non multiple choice + + proposals). spam_count: type: string description: spam_count is the number of spam votes on a proposal. @@ -53244,14 +51731,14 @@ definitions: type: string enum: - VOTE_OPTION_UNSPECIFIED - - VOTE_OPTION_ONE - VOTE_OPTION_YES - - VOTE_OPTION_TWO + - VOTE_OPTION_ONE - VOTE_OPTION_ABSTAIN - - VOTE_OPTION_THREE + - VOTE_OPTION_TWO - VOTE_OPTION_NO - - VOTE_OPTION_FOUR + - VOTE_OPTION_THREE - VOTE_OPTION_NO_WITH_VETO + - VOTE_OPTION_FOUR - VOTE_OPTION_SPAM default: VOTE_OPTION_UNSPECIFIED weight: @@ -53273,14 +51760,14 @@ definitions: type: string enum: - VOTE_OPTION_UNSPECIFIED - - VOTE_OPTION_ONE - VOTE_OPTION_YES - - VOTE_OPTION_TWO + - VOTE_OPTION_ONE - VOTE_OPTION_ABSTAIN - - VOTE_OPTION_THREE + - VOTE_OPTION_TWO - VOTE_OPTION_NO - - VOTE_OPTION_FOUR + - VOTE_OPTION_THREE - VOTE_OPTION_NO_WITH_VETO + - VOTE_OPTION_FOUR - VOTE_OPTION_SPAM default: VOTE_OPTION_UNSPECIFIED description: >- @@ -53288,14 +51775,14 @@ definitions: proposal. - VOTE_OPTION_UNSPECIFIED: VOTE_OPTION_UNSPECIFIED defines a no-op vote option. - - VOTE_OPTION_ONE: VOTE_OPTION_ONE defines the first proposal vote option. - VOTE_OPTION_YES: VOTE_OPTION_YES defines the yes proposal vote option. - - VOTE_OPTION_TWO: VOTE_OPTION_TWO defines the second proposal vote option. + - VOTE_OPTION_ONE: VOTE_OPTION_ONE defines the first proposal vote option. - VOTE_OPTION_ABSTAIN: VOTE_OPTION_ABSTAIN defines the abstain proposal vote option. - - VOTE_OPTION_THREE: VOTE_OPTION_THREE defines the third proposal vote option. + - VOTE_OPTION_TWO: VOTE_OPTION_TWO defines the second proposal vote option. - VOTE_OPTION_NO: VOTE_OPTION_NO defines the no proposal vote option. - - VOTE_OPTION_FOUR: VOTE_OPTION_FOUR defines the fourth proposal vote option. + - VOTE_OPTION_THREE: VOTE_OPTION_THREE defines the third proposal vote option. - VOTE_OPTION_NO_WITH_VETO: VOTE_OPTION_NO_WITH_VETO defines the no with veto proposal vote option. + - VOTE_OPTION_FOUR: VOTE_OPTION_FOUR defines the fourth proposal vote option. - VOTE_OPTION_SPAM: VOTE_OPTION_SPAM defines the spam proposal vote option. cosmos.gov.v1.VotingParams: type: object @@ -53314,14 +51801,14 @@ definitions: type: string enum: - VOTE_OPTION_UNSPECIFIED - - VOTE_OPTION_ONE - VOTE_OPTION_YES - - VOTE_OPTION_TWO + - VOTE_OPTION_ONE - VOTE_OPTION_ABSTAIN - - VOTE_OPTION_THREE + - VOTE_OPTION_TWO - VOTE_OPTION_NO - - VOTE_OPTION_FOUR + - VOTE_OPTION_THREE - VOTE_OPTION_NO_WITH_VETO + - VOTE_OPTION_FOUR - VOTE_OPTION_SPAM default: VOTE_OPTION_UNSPECIFIED weight: @@ -53350,6 +51837,9 @@ definitions: type: string format: uint64 title: expected blocks per year + max_supply: + type: string + title: maximum supply for the token description: Params defines the parameters for the x/mint module. cosmos.mint.v1beta1.QueryAnnualProvisionsResponse: type: object @@ -53397,6 +51887,9 @@ definitions: type: string format: uint64 title: expected blocks per year + max_supply: + type: string + title: maximum supply for the token description: QueryParamsResponse is the response type for the Query/Params RPC method. cosmos.params.v1beta1.ParamChange: type: object @@ -53443,14 +51936,9 @@ definitions: exist for the subspace. - - - Since: cosmos-sdk 0.46 description: |- QuerySubspacesResponse defines the response types for querying for all registered subspaces and all keys for a subspace. - - Since: cosmos-sdk 0.46 cosmos.params.v1beta1.Subspace: type: object properties: @@ -53463,8 +51951,6 @@ definitions: description: |- Subspace defines a parameter subspace name and all the keys that exist for the subspace. - - Since: cosmos-sdk 0.46 cosmos.slashing.v1beta1.Params: type: object properties: @@ -53509,6 +51995,7 @@ definitions: type: object properties: val_signing_info: + title: val_signing_info is the signing info of requested val cons address type: object properties: address: @@ -53521,8 +52008,8 @@ definitions: type: string format: int64 description: >- - Index which is incremented every time a validator is bonded in a - block and + DEPRECATED: Index which is incremented every time a validator is + bonded in a block and _may_ have signed a pre-commit or not. This in conjunction with the @@ -53558,7 +52045,6 @@ definitions: their liveness activity. - title: val_signing_info is the signing info of requested val cons address title: >- QuerySigningInfoResponse is the response type for the Query/SigningInfo RPC @@ -53582,8 +52068,8 @@ definitions: type: string format: int64 description: >- - Index which is incremented every time a validator is bonded in a - block and + DEPRECATED: Index which is incremented every time a validator is + bonded in a block and _may_ have signed a pre-commit or not. This in conjunction with the @@ -53664,8 +52150,8 @@ definitions: type: string format: int64 description: >- - Index which is incremented every time a validator is bonded in a block - and + DEPRECATED: Index which is incremented every time a validator is + bonded in a block and _may_ have signed a pre-commit or not. This in conjunction with the @@ -53880,37 +52366,49 @@ definitions: hash: type: string format: byte - title: PartsetHeader + description: Header of the parts set for a block. + description: >- + BlockID defines the unique ID of a block as its hash and its + `PartSetHeader`. last_commit_hash: type: string format: byte + description: commit from validators from the last block title: hashes of block data data_hash: type: string format: byte + title: transactions validators_hash: type: string format: byte + description: validators for the current block title: hashes from the app output from the prev block next_validators_hash: type: string format: byte + title: validators for the next block consensus_hash: type: string format: byte + title: consensus params for current block app_hash: type: string format: byte + title: state after txs from the previous block last_results_hash: type: string format: byte + title: root hash of all results from the txs from the previous block evidence_hash: type: string format: byte + description: evidence included in the block title: consensus info proposer_address: type: string format: byte + title: original proposer of the block description: Header defines the structure of a block header. valset: type: array @@ -53923,9 +52421,12 @@ definitions: operator_address defines the address of the validator's operator; bech encoded in JSON. consensus_pubkey: + description: >- + consensus_pubkey is the consensus public key of the validator, + as a Protobuf Any. type: object properties: - type_url: + '@type': type: string description: >- A URL/resource name that uniquely identifies the type of the @@ -53982,121 +52483,7 @@ definitions: 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" - } + additionalProperties: {} jailed: type: boolean description: >- @@ -54190,9 +52577,6 @@ definitions: description: >- min_self_delegation is the validator's self declared minimum self delegation. - - - Since: cosmos-sdk 0.46 unbonding_on_hold_ref_count: type: string format: int64 @@ -54318,6 +52702,7 @@ definitions: type: object properties: delegation_response: + description: delegation_responses defines the delegation info of a delegation. type: object properties: delegation: @@ -54355,12 +52740,6 @@ definitions: method signatures required by gogoproto. - description: >- - DelegationResponse is equivalent to Delegation except that it contains - a - - balance in addition to shares which is more suitable for client - responses. description: >- QueryDelegationResponse is response type for the Query/Delegation RPC method. @@ -54486,7 +52865,10 @@ definitions: description: >- UnbondingDelegationEntry defines an unbonding object with relevant metadata. - description: entries are the unbonding delegation entries. + description: |- + entries are the unbonding delegation entries. + + unbonding delegation entries description: >- UnbondingDelegation stores all of a single delegator's unbonding bonds @@ -54518,6 +52900,7 @@ definitions: type: object properties: validator: + description: validator defines the validator info. type: object properties: operator_address: @@ -54526,9 +52909,12 @@ definitions: operator_address defines the address of the validator's operator; bech encoded in JSON. consensus_pubkey: + description: >- + consensus_pubkey is the consensus public key of the validator, as + a Protobuf Any. type: object properties: - type_url: + '@type': type: string description: >- A URL/resource name that uniquely identifies the type of the @@ -54583,119 +52969,7 @@ definitions: 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" - } + additionalProperties: {} jailed: type: boolean description: >- @@ -54787,9 +53061,6 @@ definitions: description: >- min_self_delegation is the validator's self declared minimum self delegation. - - - Since: cosmos-sdk 0.46 unbonding_on_hold_ref_count: type: string format: int64 @@ -54804,27 +53075,6 @@ definitions: title: >- list of unbonding ids, each uniquely identifying an unbonding of this validator - description: >- - Validator defines a validator, together with the total amount of the - - Validator's bond shares and their exchange rate to coins. Slashing - results in - - a decrease in the exchange rate, allowing correct calculation of - future - - undelegations without iterating over delegators. When coins are - delegated to - - this validator, the validator is credited with a delegation whose - number of - - bond shares is based on the amount of coins delegated divided by the - current - - exchange rate. Voting power can be calculated as total bonded shares - - multiplied by exchange rate. description: |- QueryDelegatorValidatorResponse response type for the Query/DelegatorValidator RPC method. @@ -54842,9 +53092,12 @@ definitions: operator_address defines the address of the validator's operator; bech encoded in JSON. consensus_pubkey: + description: >- + consensus_pubkey is the consensus public key of the validator, + as a Protobuf Any. type: object properties: - type_url: + '@type': type: string description: >- A URL/resource name that uniquely identifies the type of the @@ -54901,121 +53154,7 @@ definitions: 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" - } + additionalProperties: {} jailed: type: boolean description: >- @@ -55109,9 +53248,6 @@ definitions: description: >- min_self_delegation is the validator's self declared minimum self delegation. - - - Since: cosmos-sdk 0.46 unbonding_on_hold_ref_count: type: string format: int64 @@ -55222,37 +53358,49 @@ definitions: hash: type: string format: byte - title: PartsetHeader + description: Header of the parts set for a block. + description: >- + BlockID defines the unique ID of a block as its hash and its + `PartSetHeader`. last_commit_hash: type: string format: byte + description: commit from validators from the last block title: hashes of block data data_hash: type: string format: byte + title: transactions validators_hash: type: string format: byte + description: validators for the current block title: hashes from the app output from the prev block next_validators_hash: type: string format: byte + title: validators for the next block consensus_hash: type: string format: byte + title: consensus params for current block app_hash: type: string format: byte + title: state after txs from the previous block last_results_hash: type: string format: byte + title: root hash of all results from the txs from the previous block evidence_hash: type: string format: byte + description: evidence included in the block title: consensus info proposer_address: type: string format: byte + title: original proposer of the block description: Header defines the structure of a block header. valset: type: array @@ -55265,9 +53413,12 @@ definitions: operator_address defines the address of the validator's operator; bech encoded in JSON. consensus_pubkey: + description: >- + consensus_pubkey is the consensus public key of the + validator, as a Protobuf Any. type: object properties: - type_url: + '@type': type: string description: >- A URL/resource name that uniquely identifies the type of @@ -55325,126 +53476,7 @@ definitions: 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" - } + additionalProperties: {} jailed: type: boolean description: >- @@ -55538,9 +53570,6 @@ definitions: description: >- min_self_delegation is the validator's self declared minimum self delegation. - - - Since: cosmos-sdk 0.46 unbonding_on_hold_ref_count: type: string format: int64 @@ -55734,7 +53763,10 @@ definitions: description: >- RedelegationEntry defines a redelegation object with relevant metadata. - description: entries are the redelegation entries. + description: |- + entries are the redelegation entries. + + redelegation entries description: >- Redelegation contains the list of a particular delegator's redelegating bonds @@ -55830,6 +53862,7 @@ definitions: type: object properties: unbond: + description: unbond defines the unbonding information of a delegation. type: object properties: delegator_address: @@ -55874,10 +53907,10 @@ definitions: description: >- UnbondingDelegationEntry defines an unbonding object with relevant metadata. - description: entries are the unbonding delegation entries. - description: |- - UnbondingDelegation stores all of a single delegator's unbonding bonds - for a single validator in an time-ordered list. + description: |- + entries are the unbonding delegation entries. + + unbonding delegation entries description: |- QueryDelegationResponse is response type for the Query/UnbondingDelegation RPC method. @@ -55956,6 +53989,7 @@ definitions: type: object properties: validator: + description: validator defines the validator info. type: object properties: operator_address: @@ -55964,9 +53998,12 @@ definitions: operator_address defines the address of the validator's operator; bech encoded in JSON. consensus_pubkey: + description: >- + consensus_pubkey is the consensus public key of the validator, as + a Protobuf Any. type: object properties: - type_url: + '@type': type: string description: >- A URL/resource name that uniquely identifies the type of the @@ -56021,119 +54058,7 @@ definitions: 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" - } + additionalProperties: {} jailed: type: boolean description: >- @@ -56225,9 +54150,6 @@ definitions: description: >- min_self_delegation is the validator's self declared minimum self delegation. - - - Since: cosmos-sdk 0.46 unbonding_on_hold_ref_count: type: string format: int64 @@ -56242,27 +54164,6 @@ definitions: title: >- list of unbonding ids, each uniquely identifying an unbonding of this validator - description: >- - Validator defines a validator, together with the total amount of the - - Validator's bond shares and their exchange rate to coins. Slashing - results in - - a decrease in the exchange rate, allowing correct calculation of - future - - undelegations without iterating over delegators. When coins are - delegated to - - this validator, the validator is credited with a delegation whose - number of - - bond shares is based on the amount of coins delegated divided by the - current - - exchange rate. Voting power can be calculated as total bonded shares - - multiplied by exchange rate. title: QueryValidatorResponse is response type for the Query/Validator RPC method cosmos.staking.v1beta1.QueryValidatorUnbondingDelegationsResponse: type: object @@ -56314,7 +54215,10 @@ definitions: description: >- UnbondingDelegationEntry defines an unbonding object with relevant metadata. - description: entries are the unbonding delegation entries. + description: |- + entries are the unbonding delegation entries. + + unbonding delegation entries description: >- UnbondingDelegation stores all of a single delegator's unbonding bonds @@ -56356,9 +54260,12 @@ definitions: operator_address defines the address of the validator's operator; bech encoded in JSON. consensus_pubkey: + description: >- + consensus_pubkey is the consensus public key of the validator, + as a Protobuf Any. type: object properties: - type_url: + '@type': type: string description: >- A URL/resource name that uniquely identifies the type of the @@ -56415,121 +54322,7 @@ definitions: 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" - } + additionalProperties: {} jailed: type: boolean description: >- @@ -56623,9 +54416,6 @@ definitions: description: >- min_self_delegation is the validator's self declared minimum self delegation. - - - Since: cosmos-sdk 0.46 unbonding_on_hold_ref_count: type: string format: int64 @@ -56740,7 +54530,10 @@ definitions: description: >- RedelegationEntry defines a redelegation object with relevant metadata. - description: entries are the redelegation entries. + description: |- + entries are the redelegation entries. + + redelegation entries description: >- Redelegation contains the list of a particular delegator's redelegating bonds @@ -56883,7 +54676,10 @@ definitions: description: >- RedelegationEntry defines a redelegation object with relevant metadata. - description: entries are the redelegation entries. + description: |- + entries are the redelegation entries. + + redelegation entries description: >- Redelegation contains the list of a particular delegator's redelegating bonds @@ -56993,7 +54789,10 @@ definitions: description: >- UnbondingDelegationEntry defines an unbonding object with relevant metadata. - description: entries are the unbonding delegation entries. + description: |- + entries are the unbonding delegation entries. + + unbonding delegation entries description: |- UnbondingDelegation stores all of a single delegator's unbonding bonds for a single validator in an time-ordered list. @@ -57038,9 +54837,12 @@ definitions: operator_address defines the address of the validator's operator; bech encoded in JSON. consensus_pubkey: + description: >- + consensus_pubkey is the consensus public key of the validator, as a + Protobuf Any. type: object properties: - type_url: + '@type': type: string description: >- A URL/resource name that uniquely identifies the type of the @@ -57092,116 +54894,7 @@ definitions: 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" - } + additionalProperties: {} jailed: type: boolean description: >- @@ -57291,9 +54984,6 @@ definitions: description: >- min_self_delegation is the validator's self declared minimum self delegation. - - - Since: cosmos-sdk 0.46 unbonding_on_hold_ref_count: type: string format: int64 @@ -57328,6 +55018,46 @@ definitions: exchange rate. Voting power can be calculated as total bonded shares multiplied by exchange rate. + cometbft.abci.v1.Event: + type: object + properties: + type: + type: string + attributes: + type: array + items: + type: object + properties: + key: + type: string + value: + type: string + index: + type: boolean + title: nondeterministic + description: EventAttribute is a single key-value pair, associated with an event. + description: >- + Event allows application developers to attach additional information to + + ResponseFinalizeBlock and ResponseCheckTx. + + Up to 0.37, this could also be used in ResponseBeginBlock, + ResponseEndBlock, + + and ResponseDeliverTx. + + Later, transactions may be queried using these events. + cometbft.abci.v1.EventAttribute: + type: object + properties: + key: + type: string + value: + type: string + index: + type: boolean + title: nondeterministic + description: EventAttribute is a single key-value pair, associated with an event. cosmos.base.abci.v1beta1.ABCIMessageLog: type: object properties: @@ -57426,6 +55156,7 @@ definitions: type: string index: type: boolean + title: nondeterministic description: >- EventAttribute is a single key-value pair, associated with an event. @@ -57435,6 +55166,11 @@ definitions: ResponseFinalizeBlock and ResponseCheckTx. + Up to 0.37, this could also be used in ResponseBeginBlock, + ResponseEndBlock, + + and ResponseDeliverTx. + Later, transactions may be queried using these events. description: >- Events contains a slice of Event objects that were emitted during @@ -57446,7 +55182,7 @@ definitions: items: type: object properties: - type_url: + '@type': type: string description: >- A URL/resource name that uniquely identifies the type of the @@ -57500,12 +55236,7 @@ definitions: be used with implementation specific semantics. - value: - type: string - format: byte - description: >- - Must be a valid serialized protocol buffer of the above - specified type. + additionalProperties: {} description: >- `Any` contains an arbitrary serialized protocol buffer message along with a @@ -57611,10 +55342,7 @@ definitions: "@type": "type.googleapis.com/google.protobuf.Duration", "value": "1.212s" } - description: |- - msg_responses contains the Msg handler responses type packed in Anys. - - Since: cosmos-sdk 0.46 + description: msg_responses contains the Msg handler responses type packed in Anys. description: Result is the union of ResponseFormat and ResponseCheckTx. cosmos.base.abci.v1beta1.StringEvent: type: object @@ -57720,9 +55448,10 @@ definitions: format: int64 description: Amount of gas consumed by transaction. tx: + description: The request transaction bytes. type: object properties: - type_url: + '@type': type: string description: >- A URL/resource name that uniquely identifies the type of the @@ -57774,116 +55503,7 @@ definitions: 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" - } + additionalProperties: {} timestamp: type: string description: >- @@ -57912,6 +55532,7 @@ definitions: type: string index: type: boolean + title: nondeterministic description: >- EventAttribute is a single key-value pair, associated with an event. @@ -57921,6 +55542,11 @@ definitions: ResponseFinalizeBlock and ResponseCheckTx. + Up to 0.37, this could also be used in ResponseBeginBlock, + ResponseEndBlock, + + and ResponseDeliverTx. + Later, transactions may be queried using these events. description: >- Events defines all the events emitted by processing a transaction. @@ -58035,6 +55661,7 @@ definitions: signer_infos: type: array items: + type: object $ref: '#/definitions/cosmos.tx.v1beta1.SignerInfo' description: >- signer_infos defines the signing modes for the required signers. The @@ -58122,9 +55749,6 @@ definitions: the `TipDecorator` in its posthandler. - - - Since: cosmos-sdk 0.46 type: object properties: amount: @@ -58205,6 +55829,7 @@ definitions: type: object properties: tx_response: + description: tx_response is the queried TxResponses. type: object properties: height: @@ -58289,9 +55914,10 @@ definitions: format: int64 description: Amount of gas consumed by transaction. tx: + description: The request transaction bytes. type: object properties: - type_url: + '@type': type: string description: >- A URL/resource name that uniquely identifies the type of the @@ -58346,119 +55972,7 @@ definitions: 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" - } + additionalProperties: {} timestamp: type: string description: >- @@ -58487,6 +56001,7 @@ definitions: type: string index: type: boolean + title: nondeterministic description: >- EventAttribute is a single key-value pair, associated with an event. @@ -58496,6 +56011,11 @@ definitions: ResponseFinalizeBlock and ResponseCheckTx. + Up to 0.37, this could also be used in ResponseBeginBlock, + ResponseEndBlock, + + and ResponseDeliverTx. + Later, transactions may be queried using these events. description: >- Events defines all the events emitted by processing a transaction. @@ -58510,11 +56030,6 @@ definitions: Since: cosmos-sdk 0.42.11, 0.44.5, 0.45 - description: >- - TxResponse defines a structure containing relevant tx data and - metadata. The - - tags are stringified and the log is JSON decoded. description: |- BroadcastTxResponse is the response type for the Service.BroadcastTx method. @@ -58582,6 +56097,7 @@ definitions: txs: type: array items: + type: object $ref: '#/definitions/cosmos.tx.v1beta1.Tx' description: txs are the transactions in the block. block_id: @@ -58599,8 +56115,10 @@ definitions: hash: type: string format: byte - title: PartsetHeader - title: BlockID + description: Header of the parts set for a block. + description: >- + BlockID defines the unique ID of a block as its hash and its + `PartSetHeader`. block: type: object properties: @@ -58648,38 +56166,50 @@ definitions: hash: type: string format: byte - title: PartsetHeader - title: BlockID + description: Header of the parts set for a block. + description: >- + BlockID defines the unique ID of a block as its hash and its + `PartSetHeader`. + title: prev block info last_commit_hash: type: string format: byte + description: commit from validators from the last block title: hashes of block data data_hash: type: string format: byte + title: transactions validators_hash: type: string format: byte + description: validators for the current block title: hashes from the app output from the prev block next_validators_hash: type: string format: byte + title: validators for the next block consensus_hash: type: string format: byte + title: consensus params for current block app_hash: type: string format: byte + title: state after txs from the previous block last_results_hash: type: string format: byte + title: root hash of all results from the txs from the previous block evidence_hash: type: string format: byte + description: evidence included in the block title: consensus info proposer_address: type: string format: byte + title: original proposer of the block description: Header defines the structure of a block header. data: type: object @@ -58723,8 +56253,10 @@ definitions: SignedMsgType is a type of signed message in the consensus. - - SIGNED_MSG_TYPE_PREVOTE: Votes - - SIGNED_MSG_TYPE_PROPOSAL: Proposals + - SIGNED_MSG_TYPE_UNKNOWN: Unknown + - SIGNED_MSG_TYPE_PREVOTE: Prevote + - SIGNED_MSG_TYPE_PRECOMMIT: Precommit + - SIGNED_MSG_TYPE_PROPOSAL: Proposal height: type: string format: int64 @@ -58746,8 +56278,10 @@ definitions: hash: type: string format: byte - title: PartsetHeader - title: BlockID + description: Header of the parts set for a block. + description: >- + BlockID defines the unique ID of a block as its + hash and its `PartSetHeader`. timestamp: type: string format: date-time @@ -58803,8 +56337,10 @@ definitions: SignedMsgType is a type of signed message in the consensus. - - SIGNED_MSG_TYPE_PREVOTE: Votes - - SIGNED_MSG_TYPE_PROPOSAL: Proposals + - SIGNED_MSG_TYPE_UNKNOWN: Unknown + - SIGNED_MSG_TYPE_PREVOTE: Prevote + - SIGNED_MSG_TYPE_PRECOMMIT: Precommit + - SIGNED_MSG_TYPE_PROPOSAL: Proposal height: type: string format: int64 @@ -58826,8 +56362,10 @@ definitions: hash: type: string format: byte - title: PartsetHeader - title: BlockID + description: Header of the parts set for a block. + description: >- + BlockID defines the unique ID of a block as its + hash and its `PartSetHeader`. timestamp: type: string format: date-time @@ -58934,40 +56472,56 @@ definitions: hash: type: string format: byte - title: PartsetHeader - title: BlockID + description: Header of the parts set for a block. + description: >- + BlockID defines the unique ID of a block + as its hash and its `PartSetHeader`. + title: prev block info last_commit_hash: type: string format: byte + description: >- + commit from validators from the last + block title: hashes of block data data_hash: type: string format: byte + title: transactions validators_hash: type: string format: byte + description: validators for the current block title: >- hashes from the app output from the prev block next_validators_hash: type: string format: byte + title: validators for the next block consensus_hash: type: string format: byte + title: consensus params for current block app_hash: type: string format: byte + title: state after txs from the previous block last_results_hash: type: string format: byte + title: >- + root hash of all results from the txs + from the previous block evidence_hash: type: string format: byte + description: evidence included in the block title: consensus info proposer_address: type: string format: byte + title: original proposer of the block description: >- Header defines the structure of a block header. @@ -58995,8 +56549,10 @@ definitions: hash: type: string format: byte - title: PartsetHeader - title: BlockID + description: Header of the parts set for a block. + description: >- + BlockID defines the unique ID of a block + as its hash and its `PartSetHeader`. signatures: type: array items: @@ -59010,6 +56566,12 @@ definitions: - BLOCK_ID_FLAG_COMMIT - BLOCK_ID_FLAG_NIL default: BLOCK_ID_FLAG_UNKNOWN + description: >- + - BLOCK_ID_FLAG_UNKNOWN: Indicates an + error condition + - BLOCK_ID_FLAG_ABSENT: The vote was not received + - BLOCK_ID_FLAG_COMMIT: Voted for the block that received the majority + - BLOCK_ID_FLAG_NIL: Voted for nil title: >- BlockIdFlag indicates which BlockID the signature is for @@ -59028,6 +56590,10 @@ definitions: description: >- Commit contains the evidence that a block was committed by a set of validators. + description: >- + SignedHeader contains a Header(H) and + Commit(H+1) with signatures of validators who + signed it. validator_set: type: object properties: @@ -59048,15 +56614,18 @@ definitions: secp256k1: type: string format: byte - title: >- - PublicKey defines the keys available for - use with Validators + description: >- + PublicKey is a ED25519 or a secp256k1 + public key. voting_power: type: string format: int64 proposer_priority: type: string format: int64 + description: >- + Validator represents a node participating + in the consensus protocol. proposer: type: object properties: @@ -59072,18 +56641,25 @@ definitions: secp256k1: type: string format: byte - title: >- - PublicKey defines the keys available for - use with Validators + description: >- + PublicKey is a ED25519 or a secp256k1 + public key. voting_power: type: string format: int64 proposer_priority: type: string format: int64 + description: >- + Validator represents a node participating in + the consensus protocol. total_voting_power: type: string format: int64 + description: ValidatorSet defines a set of validators. + description: >- + LightBlock is a combination of SignedHeader and + ValidatorSet. It is used by light clients. common_height: type: string format: int64 @@ -59104,15 +56680,18 @@ definitions: secp256k1: type: string format: byte - title: >- - PublicKey defines the keys available for use - with Validators + description: >- + PublicKey is a ED25519 or a secp256k1 public + key. voting_power: type: string format: int64 proposer_priority: type: string format: int64 + description: >- + Validator represents a node participating in the + consensus protocol. total_voting_power: type: string format: int64 @@ -59122,6 +56701,10 @@ definitions: description: >- LightClientAttackEvidence contains evidence of a set of validators attempting to mislead a light client. + description: >- + Evidence is a generic type for wrapping evidence of + misbehavior by a validator. + description: EvidenceList is a list of evidence. last_commit: type: object properties: @@ -59146,8 +56729,10 @@ definitions: hash: type: string format: byte - title: PartsetHeader - title: BlockID + description: Header of the parts set for a block. + description: >- + BlockID defines the unique ID of a block as its hash and its + `PartSetHeader`. signatures: type: array items: @@ -59161,6 +56746,11 @@ definitions: - BLOCK_ID_FLAG_COMMIT - BLOCK_ID_FLAG_NIL default: BLOCK_ID_FLAG_UNKNOWN + description: |- + - BLOCK_ID_FLAG_UNKNOWN: Indicates an error condition + - BLOCK_ID_FLAG_ABSENT: The vote was not received + - BLOCK_ID_FLAG_COMMIT: Voted for the block that received the majority + - BLOCK_ID_FLAG_NIL: Voted for nil title: BlockIdFlag indicates which BlockID the signature is for validator_address: type: string @@ -59175,6 +56765,7 @@ definitions: description: >- Commit contains the evidence that a block was committed by a set of validators. + description: Block defines the structure of a block in the CometBFT blockchain. pagination: description: pagination defines a pagination for the response. type: object @@ -59199,9 +56790,6 @@ definitions: Service.GetBlockWithTxs method. - - - Since: cosmos-sdk 0.45.2 cosmos.tx.v1beta1.GetTxResponse: type: object properties: @@ -59209,6 +56797,7 @@ definitions: $ref: '#/definitions/cosmos.tx.v1beta1.Tx' description: tx is the queried transaction. tx_response: + description: tx_response is the queried TxResponses. type: object properties: height: @@ -59293,9 +56882,10 @@ definitions: format: int64 description: Amount of gas consumed by transaction. tx: + description: The request transaction bytes. type: object properties: - type_url: + '@type': type: string description: >- A URL/resource name that uniquely identifies the type of the @@ -59350,119 +56940,7 @@ definitions: 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" - } + additionalProperties: {} timestamp: type: string description: >- @@ -59491,6 +56969,7 @@ definitions: type: string index: type: boolean + title: nondeterministic description: >- EventAttribute is a single key-value pair, associated with an event. @@ -59500,6 +56979,11 @@ definitions: ResponseFinalizeBlock and ResponseCheckTx. + Up to 0.37, this could also be used in ResponseBeginBlock, + ResponseEndBlock, + + and ResponseDeliverTx. + Later, transactions may be queried using these events. description: >- Events defines all the events emitted by processing a transaction. @@ -59514,11 +56998,6 @@ definitions: Since: cosmos-sdk 0.42.11, 0.44.5, 0.45 - description: >- - TxResponse defines a structure containing relevant tx data and - metadata. The - - tags are stringified and the log is JSON decoded. description: GetTxResponse is the response type for the Service.GetTx method. cosmos.tx.v1beta1.GetTxsEventResponse: type: object @@ -59526,6 +57005,7 @@ definitions: txs: type: array items: + type: object $ref: '#/definitions/cosmos.tx.v1beta1.Tx' description: txs is the list of queried transactions. tx_responses: @@ -59615,9 +57095,10 @@ definitions: format: int64 description: Amount of gas consumed by transaction. tx: + description: The request transaction bytes. type: object properties: - type_url: + '@type': type: string description: >- A URL/resource name that uniquely identifies the type of the @@ -59674,121 +57155,7 @@ definitions: 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" - } + additionalProperties: {} timestamp: type: string description: >- @@ -59817,6 +57184,7 @@ definitions: type: string index: type: boolean + title: nondeterministic description: >- EventAttribute is a single key-value pair, associated with an event. @@ -59826,6 +57194,11 @@ definitions: ResponseFinalizeBlock and ResponseCheckTx. + Up to 0.37, this could also be used in ResponseBeginBlock, + ResponseEndBlock, + + and ResponseDeliverTx. + Later, transactions may be queried using these events. description: >- Events defines all the events emitted by processing a @@ -59993,6 +57366,7 @@ definitions: mode_infos: type: array items: + type: object $ref: '#/definitions/cosmos.tx.v1beta1.ModeInfo' title: |- mode_infos is the corresponding modes of the signers of the multisig @@ -60103,9 +57477,17 @@ definitions: type: object properties: public_key: + description: >- + public_key is the public key of the signer. It is optional for + accounts + + that already exist in state. If unset, the verifier can use the + required \ + + signer address for this position and lookup the public key. type: object properties: - type_url: + '@type': type: string description: >- A URL/resource name that uniquely identifies the type of the @@ -60157,116 +57539,7 @@ definitions: 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" - } + additionalProperties: {} mode_info: $ref: '#/definitions/cosmos.tx.v1beta1.ModeInfo' title: |- @@ -60296,10 +57569,7 @@ definitions: tx_bytes: type: string format: byte - description: |- - tx_bytes is the raw transaction. - - Since: cosmos-sdk 0.43 + description: tx_bytes is the raw transaction. description: |- SimulateRequest is the request type for the Service.Simulate RPC method. @@ -60361,6 +57631,7 @@ definitions: type: string index: type: boolean + title: nondeterministic description: >- EventAttribute is a single key-value pair, associated with an event. @@ -60370,6 +57641,11 @@ definitions: ResponseFinalizeBlock and ResponseCheckTx. + Up to 0.37, this could also be used in ResponseBeginBlock, + ResponseEndBlock, + + and ResponseDeliverTx. + Later, transactions may be queried using these events. description: >- Events contains a slice of Event objects that were emitted during @@ -60381,7 +57657,7 @@ definitions: items: type: object properties: - type_url: + '@type': type: string description: >- A URL/resource name that uniquely identifies the type of the @@ -60438,12 +57714,7 @@ definitions: 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. + additionalProperties: {} description: >- `Any` contains an arbitrary serialized protocol buffer message along with a @@ -60556,9 +57827,6 @@ definitions: description: >- msg_responses contains the Msg handler responses type packed in Anys. - - - Since: cosmos-sdk 0.46 description: |- SimulateResponse is the response type for the Service.SimulateRPC method. @@ -60583,10 +57851,7 @@ definitions: tipper: type: string title: tipper is the address of the account paying for the tip - description: |- - Tip is the tip used for meta-transactions. - - Since: cosmos-sdk 0.46 + description: Tip is the tip used for meta-transactions. cosmos.tx.v1beta1.Tx: type: object properties: @@ -60599,7 +57864,7 @@ definitions: items: type: object properties: - type_url: + '@type': type: string description: >- A URL/resource name that uniquely identifies the type of the @@ -60656,12 +57921,7 @@ definitions: 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. + additionalProperties: {} description: >- `Any` contains an arbitrary serialized protocol buffer message along with a @@ -60846,7 +58106,7 @@ definitions: items: type: object properties: - type_url: + '@type': type: string description: >- A URL/resource name that uniquely identifies the type of the @@ -60903,12 +58163,7 @@ definitions: 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. + additionalProperties: {} description: >- `Any` contains an arbitrary serialized protocol buffer message along with a @@ -61031,7 +58286,7 @@ definitions: items: type: object properties: - type_url: + '@type': type: string description: >- A URL/resource name that uniquely identifies the type of the @@ -61088,12 +58343,7 @@ definitions: 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. + additionalProperties: {} description: >- `Any` contains an arbitrary serialized protocol buffer message along with a @@ -61239,7 +58489,7 @@ definitions: items: type: object properties: - type_url: + '@type': type: string description: >- A URL/resource name that uniquely identifies the type of the @@ -61293,12 +58543,7 @@ definitions: be used with implementation specific semantics. - value: - type: string - format: byte - description: >- - Must be a valid serialized protocol buffer of the above - specified type. + additionalProperties: {} description: >- `Any` contains an arbitrary serialized protocol buffer message along with a @@ -61474,7 +58719,7 @@ definitions: items: type: object properties: - type_url: + '@type': type: string description: >- A URL/resource name that uniquely identifies the type of the @@ -61528,12 +58773,7 @@ definitions: be used with implementation specific semantics. - value: - type: string - format: byte - description: >- - Must be a valid serialized protocol buffer of the above - specified type. + additionalProperties: {} description: >- `Any` contains an arbitrary serialized protocol buffer message along with a @@ -61651,7 +58891,7 @@ definitions: items: type: object properties: - type_url: + '@type': type: string description: >- A URL/resource name that uniquely identifies the type of the @@ -61705,12 +58945,7 @@ definitions: be used with implementation specific semantics. - value: - type: string - format: byte - description: >- - Must be a valid serialized protocol buffer of the above - specified type. + additionalProperties: {} description: >- `Any` contains an arbitrary serialized protocol buffer message along with a @@ -61833,8 +59068,6 @@ definitions: description: |- TxDecodeAminoRequest is the request type for the Service.TxDecodeAmino RPC method. - - Since: cosmos-sdk 0.47 cosmos.tx.v1beta1.TxDecodeAminoResponse: type: object properties: @@ -61843,8 +59076,6 @@ definitions: description: |- TxDecodeAminoResponse is the response type for the Service.TxDecodeAmino RPC method. - - Since: cosmos-sdk 0.47 cosmos.tx.v1beta1.TxDecodeRequest: type: object properties: @@ -61855,8 +59086,6 @@ definitions: description: |- TxDecodeRequest is the request type for the Service.TxDecode RPC method. - - Since: cosmos-sdk 0.47 cosmos.tx.v1beta1.TxDecodeResponse: type: object properties: @@ -61866,8 +59095,6 @@ definitions: description: |- TxDecodeResponse is the response type for the Service.TxDecode method. - - Since: cosmos-sdk 0.47 cosmos.tx.v1beta1.TxEncodeAminoRequest: type: object properties: @@ -61876,8 +59103,6 @@ definitions: description: |- TxEncodeAminoRequest is the request type for the Service.TxEncodeAmino RPC method. - - Since: cosmos-sdk 0.47 cosmos.tx.v1beta1.TxEncodeAminoResponse: type: object properties: @@ -61887,8 +59112,6 @@ definitions: description: |- TxEncodeAminoResponse is the response type for the Service.TxEncodeAmino RPC method. - - Since: cosmos-sdk 0.47 cosmos.tx.v1beta1.TxEncodeRequest: type: object properties: @@ -61898,8 +59121,6 @@ definitions: description: |- TxEncodeRequest is the request type for the Service.TxEncode RPC method. - - Since: cosmos-sdk 0.47 cosmos.tx.v1beta1.TxEncodeResponse: type: object properties: @@ -61910,39 +59131,6 @@ definitions: description: |- TxEncodeResponse is the response type for the Service.TxEncode method. - - Since: cosmos-sdk 0.47 - tendermint.abci.Event: - type: object - properties: - type: - type: string - attributes: - type: array - items: - type: object - properties: - key: - type: string - value: - type: string - index: - type: boolean - description: EventAttribute is a single key-value pair, associated with an event. - description: |- - Event allows application developers to attach additional information to - ResponseFinalizeBlock and ResponseCheckTx. - Later, transactions may be queried using these events. - tendermint.abci.EventAttribute: - type: object - properties: - key: - type: string - value: - type: string - index: - type: boolean - description: EventAttribute is a single key-value pair, associated with an event. cosmos.upgrade.v1beta1.ModuleVersion: type: object properties: @@ -61953,10 +59141,7 @@ definitions: type: string format: uint64 title: consensus version of the app module - description: |- - ModuleVersion specifies a module and its consensus version. - - Since: cosmos-sdk 0.43 + description: ModuleVersion specifies a module and its consensus version. cosmos.upgrade.v1beta1.Plan: type: object properties: @@ -62000,9 +59185,16 @@ definitions: Any application specific upgrade info to be included on-chain such as a git commit that validators could automatically upgrade to upgraded_client_state: + description: >- + Deprecated: UpgradedClientState field has been deprecated. IBC upgrade + logic has been + + moved to the IBC module in the sub module 02-client. + + If this field is not empty, an error will be thrown. type: object properties: - type_url: + '@type': type: string description: >- A URL/resource name that uniquely identifies the type of the @@ -62054,116 +59246,7 @@ definitions: 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" - } + additionalProperties: {} description: >- Plan specifies information about a planned upgrade and when it should occur. @@ -62184,7 +59267,6 @@ definitions: properties: address: type: string - description: 'Since: cosmos-sdk 0.46' title: QueryAuthorityResponse is the response type for Query/Authority cosmos.upgrade.v1beta1.QueryCurrentPlanResponse: type: object @@ -62237,9 +59319,16 @@ definitions: such as a git commit that validators could automatically upgrade to upgraded_client_state: + description: >- + Deprecated: UpgradedClientState field has been deprecated. IBC + upgrade logic has been + + moved to the IBC module in the sub module 02-client. + + If this field is not empty, an error will be thrown. type: object properties: - type_url: + '@type': type: string description: >- A URL/resource name that uniquely identifies the type of the @@ -62294,119 +59383,7 @@ definitions: 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" - } + additionalProperties: {} description: >- QueryCurrentPlanResponse is the response type for the Query/CurrentPlan RPC @@ -62427,10 +59404,7 @@ definitions: type: string format: uint64 title: consensus version of the app module - description: |- - ModuleVersion specifies a module and its consensus version. - - Since: cosmos-sdk 0.43 + description: ModuleVersion specifies a module and its consensus version. description: >- module_versions is a list of module names with their consensus versions. @@ -62439,16 +59413,12 @@ definitions: Query/ModuleVersions RPC method. - - - Since: cosmos-sdk 0.43 cosmos.upgrade.v1beta1.QueryUpgradedConsensusStateResponse: type: object properties: upgraded_consensus_state: type: string format: byte - title: 'Since: cosmos-sdk 0.43' description: >- QueryUpgradedConsensusStateResponse is the response type for the Query/UpgradedConsensusState @@ -62460,7 +59430,7 @@ definitions: authorization: type: object properties: - type_url: + '@type': type: string description: >- A URL/resource name that uniquely identifies the type of the @@ -62512,12 +59482,7 @@ definitions: 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. + additionalProperties: {} description: >- `Any` contains an arbitrary serialized protocol buffer message along with a @@ -62645,7 +59610,7 @@ definitions: authorization: type: object properties: - type_url: + '@type': type: string description: >- A URL/resource name that uniquely identifies the type of the @@ -62697,12 +59662,7 @@ definitions: 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. + additionalProperties: {} description: >- `Any` contains an arbitrary serialized protocol buffer message along with a @@ -62830,7 +59790,7 @@ definitions: authorization: type: object properties: - type_url: + '@type': type: string description: >- A URL/resource name that uniquely identifies the type of the @@ -62887,12 +59847,7 @@ definitions: 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. + additionalProperties: {} description: >- `Any` contains an arbitrary serialized protocol buffer message along with a @@ -63048,221 +60003,7 @@ definitions: authorization: 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" - } - expiration: - type: string - format: date-time - title: >- - GrantAuthorization extends a grant with both the addresses of the - grantee and granter. - - It is used in genesis.proto and query.proto - description: grants is a list of grants granted by the granter. - pagination: - description: pagination defines an pagination for the response. - type: object - properties: - next_key: - type: string - format: byte - description: |- - next_key is the key to be passed to PageRequest.key to - query the next page most efficiently. It will be empty if - there are no more results. - total: - type: string - format: uint64 - title: >- - total is total number of results available if - PageRequest.count_total - - was set, its value is undefined otherwise - description: >- - QueryGranterGrantsResponse is the response type for the - Query/GranterGrants RPC method. - cosmos.authz.v1beta1.QueryGrantsResponse: - type: object - properties: - grants: - type: array - items: - type: object - properties: - authorization: - type: object - properties: - type_url: + '@type': type: string description: >- A URL/resource name that uniquely identifies the type of the @@ -63319,12 +60060,216 @@ definitions: might be used with implementation specific semantics. - value: + additionalProperties: {} + 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" + } + expiration: + type: string + format: date-time + title: >- + GrantAuthorization extends a grant with both the addresses of the + grantee and granter. + + It is used in genesis.proto and query.proto + description: grants is a list of grants granted by the granter. + pagination: + description: pagination defines an pagination for the response. + type: object + properties: + next_key: + type: string + format: byte + description: |- + next_key is the key to be passed to PageRequest.key to + query the next page most efficiently. It will be empty if + there are no more results. + total: + type: string + format: uint64 + title: >- + total is total number of results available if + PageRequest.count_total + + was set, its value is undefined otherwise + description: >- + QueryGranterGrantsResponse is the response type for the + Query/GranterGrants RPC method. + cosmos.authz.v1beta1.QueryGrantsResponse: + type: object + properties: + grants: + type: array + items: + type: object + properties: + authorization: + type: object + properties: + '@type': type: string - format: byte description: >- - Must be a valid serialized protocol buffer of the above - specified type. + 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. + additionalProperties: {} description: >- `Any` contains an arbitrary serialized protocol buffer message along with a @@ -63488,7 +60433,7 @@ definitions: description: allowance can be any of basic, periodic, allowed fee allowance. type: object properties: - type_url: + '@type': type: string description: >- A URL/resource name that uniquely identifies the type of the @@ -63540,12 +60485,7 @@ definitions: 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. + additionalProperties: {} title: Grant is stored in the KVStore to record a grant with full context cosmos.feegrant.v1beta1.QueryAllowanceResponse: type: object @@ -63568,7 +60508,7 @@ definitions: description: allowance can be any of basic, periodic, allowed fee allowance. type: object properties: - type_url: + '@type': type: string description: >- A URL/resource name that uniquely identifies the type of the @@ -63623,12 +60563,7 @@ definitions: be used with implementation specific semantics. - value: - type: string - format: byte - description: >- - Must be a valid serialized protocol buffer of the above - specified type. + additionalProperties: {} title: Grant is stored in the KVStore to record a grant with full context description: >- QueryAllowanceResponse is the response type for the Query/Allowance RPC @@ -63655,7 +60590,7 @@ definitions: description: allowance can be any of basic, periodic, allowed fee allowance. type: object properties: - type_url: + '@type': type: string description: >- A URL/resource name that uniquely identifies the type of the @@ -63712,12 +60647,7 @@ definitions: 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. + additionalProperties: {} title: Grant is stored in the KVStore to record a grant with full context description: allowances that have been issued by the granter. pagination: @@ -63742,9 +60672,6 @@ definitions: description: >- QueryAllowancesByGranterResponse is the response type for the Query/AllowancesByGranter RPC method. - - - Since: cosmos-sdk 0.46 cosmos.feegrant.v1beta1.QueryAllowancesResponse: type: object properties: @@ -63767,7 +60694,7 @@ definitions: description: allowance can be any of basic, periodic, allowed fee allowance. type: object properties: - type_url: + '@type': type: string description: >- A URL/resource name that uniquely identifies the type of the @@ -63824,12 +60751,7 @@ definitions: 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. + additionalProperties: {} title: Grant is stored in the KVStore to record a grant with full context description: allowances are allowance's granted for grantee by granter. pagination: @@ -63882,9 +60804,10 @@ definitions: type: string title: uri_hash is a hash of the document pointed by uri. Optional data: + title: data is the app specific metadata of the NFT class. Optional type: object properties: - type_url: + '@type': type: string description: >- A URL/resource name that uniquely identifies the type of the @@ -63936,12 +60859,7 @@ definitions: 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. + additionalProperties: {} description: >- `Any` contains an arbitrary serialized protocol buffer message along with a @@ -64046,7 +60964,6 @@ definitions: "@type": "type.googleapis.com/google.protobuf.Duration", "value": "1.212s" } - title: data is the app specific metadata of the NFT class. Optional description: Class defines the class of the nft type. cosmos.nft.v1beta1.NFT: type: object @@ -64066,9 +60983,10 @@ definitions: type: string title: uri_hash is a hash of the document pointed by uri data: + title: data is an app specific data of the NFT. Optional type: object properties: - type_url: + '@type': type: string description: >- A URL/resource name that uniquely identifies the type of the @@ -64120,12 +61038,7 @@ definitions: 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. + additionalProperties: {} description: >- `Any` contains an arbitrary serialized protocol buffer message along with a @@ -64230,7 +61143,6 @@ definitions: "@type": "type.googleapis.com/google.protobuf.Duration", "value": "1.212s" } - title: data is an app specific data of the NFT. Optional description: NFT defines the NFT. cosmos.nft.v1beta1.QueryBalanceByQueryStringResponse: type: object @@ -64239,7 +61151,6 @@ definitions: type: string format: uint64 title: amount is the number of all NFTs of a given class owned by the owner - description: 'Since: nft v0.1.1' title: >- QueryBalanceByQueryStringResponse is the response type for the Query/Balance RPC method @@ -64283,9 +61194,10 @@ definitions: type: string title: uri_hash is a hash of the document pointed by uri. Optional data: + title: data is the app specific metadata of the NFT class. Optional type: object properties: - type_url: + '@type': type: string description: >- A URL/resource name that uniquely identifies the type of the @@ -64340,12 +61252,7 @@ definitions: be used with implementation specific semantics. - value: - type: string - format: byte - description: >- - Must be a valid serialized protocol buffer of the above - specified type. + additionalProperties: {} description: >- `Any` contains an arbitrary serialized protocol buffer message along with a @@ -64453,8 +61360,6 @@ definitions: "@type": "type.googleapis.com/google.protobuf.Duration", "value": "1.212s" } - title: data is the app specific metadata of the NFT class. Optional - description: 'Since: nft v0.1.1' title: >- QueryClassByQueryStringResponse is the response type for the Query/Class RPC method @@ -64462,6 +61367,7 @@ definitions: type: object properties: class: + description: class defines the class of the nft type. type: object properties: id: @@ -64489,9 +61395,10 @@ definitions: type: string title: uri_hash is a hash of the document pointed by uri. Optional data: + title: data is the app specific metadata of the NFT class. Optional type: object properties: - type_url: + '@type': type: string description: >- A URL/resource name that uniquely identifies the type of the @@ -64546,12 +61453,7 @@ definitions: be used with implementation specific semantics. - value: - type: string - format: byte - description: >- - Must be a valid serialized protocol buffer of the above - specified type. + additionalProperties: {} description: >- `Any` contains an arbitrary serialized protocol buffer message along with a @@ -64659,8 +61561,6 @@ definitions: "@type": "type.googleapis.com/google.protobuf.Duration", "value": "1.212s" } - title: data is the app specific metadata of the NFT class. Optional - description: Class defines the class of the nft type. title: QueryClassResponse is the response type for the Query/Class RPC method cosmos.nft.v1beta1.QueryClassesResponse: type: object @@ -64697,9 +61597,10 @@ definitions: type: string title: uri_hash is a hash of the document pointed by uri. Optional data: + title: data is the app specific metadata of the NFT class. Optional type: object properties: - type_url: + '@type': type: string description: >- A URL/resource name that uniquely identifies the type of the @@ -64756,12 +61657,7 @@ definitions: 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. + additionalProperties: {} description: >- `Any` contains an arbitrary serialized protocol buffer message along with a @@ -64871,7 +61767,6 @@ definitions: "@type": "type.googleapis.com/google.protobuf.Duration", "value": "1.212s" } - title: data is the app specific metadata of the NFT class. Optional description: Class defines the class of the nft type. description: class defines the class of the nft type. pagination: @@ -64916,9 +61811,10 @@ definitions: type: string title: uri_hash is a hash of the document pointed by uri data: + title: data is an app specific data of the NFT. Optional type: object properties: - type_url: + '@type': type: string description: >- A URL/resource name that uniquely identifies the type of the @@ -64973,12 +61869,7 @@ definitions: be used with implementation specific semantics. - value: - type: string - format: byte - description: >- - Must be a valid serialized protocol buffer of the above - specified type. + additionalProperties: {} description: >- `Any` contains an arbitrary serialized protocol buffer message along with a @@ -65086,9 +61977,7 @@ definitions: "@type": "type.googleapis.com/google.protobuf.Duration", "value": "1.212s" } - title: data is an app specific data of the NFT. Optional description: NFT defines the NFT. - description: 'Since: nft v0.1.1' title: >- QueryNFTByQueryStringResponse is the response type for the Query/NFT RPC method @@ -65096,6 +61985,7 @@ definitions: type: object properties: nft: + title: owner is the owner address of the nft type: object properties: class_id: @@ -65113,9 +62003,10 @@ definitions: type: string title: uri_hash is a hash of the document pointed by uri data: + title: data is an app specific data of the NFT. Optional type: object properties: - type_url: + '@type': type: string description: >- A URL/resource name that uniquely identifies the type of the @@ -65170,12 +62061,7 @@ definitions: be used with implementation specific semantics. - value: - type: string - format: byte - description: >- - Must be a valid serialized protocol buffer of the above - specified type. + additionalProperties: {} description: >- `Any` contains an arbitrary serialized protocol buffer message along with a @@ -65283,9 +62169,7 @@ definitions: "@type": "type.googleapis.com/google.protobuf.Duration", "value": "1.212s" } - title: data is an app specific data of the NFT. Optional description: NFT defines the NFT. - title: owner is the owner address of the nft title: QueryNFTResponse is the response type for the Query/NFT RPC method cosmos.nft.v1beta1.QueryNFTsResponse: type: object @@ -65310,9 +62194,10 @@ definitions: type: string title: uri_hash is a hash of the document pointed by uri data: + title: data is an app specific data of the NFT. Optional type: object properties: - type_url: + '@type': type: string description: >- A URL/resource name that uniquely identifies the type of the @@ -65369,12 +62254,7 @@ definitions: 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. + additionalProperties: {} description: >- `Any` contains an arbitrary serialized protocol buffer message along with a @@ -65484,7 +62364,6 @@ definitions: "@type": "type.googleapis.com/google.protobuf.Duration", "value": "1.212s" } - title: data is an app specific data of the NFT. Optional description: NFT defines the NFT. title: NFT defines the NFT pagination: @@ -65513,7 +62392,6 @@ definitions: owner: type: string title: owner is the owner address of the nft - description: 'Since: nft v0.1.1' title: >- QueryOwnerByQueryStringResponse is the response type for the Query/Owner RPC method @@ -65531,7 +62409,6 @@ definitions: type: string format: uint64 title: amount is the number of all NFTs from the given class - description: 'Since: nft v0.1.1' title: >- QuerySupplyByQueryStringResponse is the response type for the Query/Supply RPC method @@ -65636,9 +62513,10 @@ definitions: would create a different result on a running proposal. decision_policy: + description: decision_policy specifies the group policy's decision policy. type: object properties: - type_url: + '@type': type: string description: >- A URL/resource name that uniquely identifies the type of the @@ -65690,116 +62568,7 @@ definitions: 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" - } + additionalProperties: {} created_at: type: string format: date-time @@ -65938,7 +62707,7 @@ definitions: items: type: object properties: - type_url: + '@type': type: string description: >- A URL/resource name that uniquely identifies the type of the @@ -65992,12 +62761,7 @@ definitions: be used with implementation specific semantics. - value: - type: string - format: byte - description: >- - Must be a valid serialized protocol buffer of the above - specified type. + additionalProperties: {} description: >- `Any` contains an arbitrary serialized protocol buffer message along with a @@ -66108,11 +62872,9 @@ definitions: passes. title: type: string - description: 'Since: cosmos-sdk 0.47' title: title is the title of the proposal summary: type: string - description: 'Since: cosmos-sdk 0.47' title: summary is a short summary of the proposal description: >- Proposal defines a group proposal. Any member of a group can submit a @@ -66295,250 +63057,10 @@ definitions: would create a different result on a running proposal. decision_policy: + description: decision_policy specifies the group policy's decision policy. 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" - } - created_at: - type: string - format: date-time - description: >- - created_at is a timestamp specifying when a group policy was - created. - description: >- - GroupPolicyInfo represents the high-level on-chain information for a - group policy. - description: group_policies are the group policies info with provided admin. - pagination: - description: pagination defines the pagination in the response. - type: object - properties: - next_key: - type: string - format: byte - description: |- - next_key is the key to be passed to PageRequest.key to - query the next page most efficiently. It will be empty if - there are no more results. - total: - type: string - format: uint64 - title: >- - total is total number of results available if - PageRequest.count_total - - was set, its value is undefined otherwise - description: >- - QueryGroupPoliciesByAdminResponse is the Query/GroupPoliciesByAdmin - response type. - cosmos.group.v1.QueryGroupPoliciesByGroupResponse: - type: object - properties: - group_policies: - type: array - items: - type: object - properties: - address: - type: string - description: address is the account address of group policy. - group_id: - type: string - format: uint64 - description: group_id is the unique ID of the group. - admin: - type: string - description: admin is the account address of the group admin. - metadata: - type: string - 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 - description: >- - version is used to track changes to a group's GroupPolicyInfo - structure that - - would create a different result on a running proposal. - decision_policy: - type: object - properties: - type_url: + '@type': type: string description: >- A URL/resource name that uniquely identifies the type of the @@ -66595,121 +63117,135 @@ definitions: 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. + additionalProperties: {} + created_at: + type: string + format: date-time 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. + created_at is a timestamp specifying when a group policy was + created. + description: >- + GroupPolicyInfo represents the high-level on-chain information for a + group policy. + description: group_policies are the group policies info with provided admin. + pagination: + description: pagination defines the pagination in the response. + type: object + properties: + next_key: + type: string + format: byte + description: |- + next_key is the key to be passed to PageRequest.key to + query the next page most efficiently. It will be empty if + there are no more results. + total: + type: string + format: uint64 + title: >- + total is total number of results available if + PageRequest.count_total - 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()); - } + was set, its value is undefined otherwise + description: >- + QueryGroupPoliciesByAdminResponse is the Query/GroupPoliciesByAdmin + response type. + cosmos.group.v1.QueryGroupPoliciesByGroupResponse: + type: object + properties: + group_policies: + type: array + items: + type: object + properties: + address: + type: string + description: address is the account address of group policy. + group_id: + type: string + format: uint64 + description: group_id is the unique ID of the group. + admin: + type: string + description: admin is the account address of the group admin. + metadata: + type: string + title: >- + metadata is any arbitrary metadata attached to the group policy. - Example 3: Pack and unpack a message in Python. + the recommended format of the metadata is to be found here: - foo = Foo(...) - any = Any() - any.Pack(foo) - ... - if any.Is(Foo.DESCRIPTOR): - any.Unpack(foo) - ... + https://docs.cosmos.network/v0.47/modules/group#decision-policy-1 + version: + type: string + format: uint64 + description: >- + version is used to track changes to a group's GroupPolicyInfo + structure that - Example 4: Pack and unpack a message in Go + would create a different result on a running proposal. + decision_policy: + description: decision_policy specifies the group policy's decision policy. + type: object + properties: + '@type': + type: string + description: >- + A URL/resource name that uniquely identifies the type of the + serialized - foo := &pb.Foo{...} - any, err := anypb.New(foo) - if err != nil { - ... - } - ... - foo := &pb.Foo{} - if err := any.UnmarshalTo(foo); err != nil { - ... - } + protocol buffer message. This string must contain at least - The pack methods provided by protobuf library will by default - use + one "/" character. The last segment of the URL's path must + represent - 'type.googleapis.com/full.type.name' as the type URL and the - unpack + the fully qualified name of the type (as in - methods only use the fully qualified type name after the last - '/' + `path/google.protobuf.Duration`). The name should be in a + canonical form - in the type URL, for example "foo.bar.com/x/y.z" will yield type + (e.g., leading "." is not accepted). - name "y.z". + In practice, teams usually precompile into the binary all + types that they - JSON + 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 - The JSON representation of an `Any` value uses the regular + server that maps type URLs to message definitions as + follows: - representation of the deserialized, embedded message, with an - additional field `@type` which contains the type URL. Example: + * If no scheme is provided, `https` is assumed. - package google.profile; - message Person { - string first_name = 1; - string last_name = 2; - } + * 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.) - { - "@type": "type.googleapis.com/google.profile.Person", - "firstName": , - "lastName": - } + Note: this functionality is not currently available in the + official - If the embedded message type is well-known and has a custom JSON + protobuf release, and it is not used for type URLs beginning + with - representation, that representation will be embedded adding a - field + type.googleapis.com. - `value` which holds the custom JSON in addition to the `@type` - field. Example (for message [google.protobuf.Duration][]): + Schemes other than `http`, `https` (or the empty scheme) + might be - { - "@type": "type.googleapis.com/google.protobuf.Duration", - "value": "1.212s" - } + used with implementation specific semantics. + additionalProperties: {} created_at: type: string format: date-time @@ -66748,6 +63284,7 @@ definitions: type: object properties: info: + description: info is the GroupPolicyInfo of the group policy. type: object properties: address: @@ -66775,9 +63312,10 @@ definitions: would create a different result on a running proposal. decision_policy: + description: decision_policy specifies the group policy's decision policy. type: object properties: - type_url: + '@type': type: string description: >- A URL/resource name that uniquely identifies the type of the @@ -66832,128 +63370,13 @@ definitions: 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" - } + additionalProperties: {} created_at: type: string format: date-time description: >- created_at is a timestamp specifying when a group policy was created. - description: >- - GroupPolicyInfo represents the high-level on-chain information for a - group policy. description: QueryGroupPolicyInfoResponse is the Query/GroupPolicyInfo response type. cosmos.group.v1.QueryGroupsByAdminResponse: type: object @@ -67157,10 +63580,7 @@ definitions: PageRequest.count_total was set, its value is undefined otherwise - description: |- - QueryGroupsResponse is the Query/Groups response type. - - Since: cosmos-sdk 0.47.1 + description: QueryGroupsResponse is the Query/Groups response type. cosmos.group.v1.QueryProposalResponse: type: object properties: @@ -67284,7 +63704,7 @@ definitions: items: type: object properties: - type_url: + '@type': type: string description: >- A URL/resource name that uniquely identifies the type of the @@ -67341,12 +63761,7 @@ definitions: 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. + additionalProperties: {} description: >- `Any` contains an arbitrary serialized protocol buffer message along with a @@ -67461,11 +63876,9 @@ definitions: proposal passes. title: type: string - description: 'Since: cosmos-sdk 0.47' title: title is the title of the proposal summary: type: string - description: 'Since: cosmos-sdk 0.47' title: summary is a short summary of the proposal description: QueryProposalResponse is the Query/Proposal response type. cosmos.group.v1.QueryProposalsByGroupPolicyResponse: @@ -67593,7 +64006,7 @@ definitions: items: type: object properties: - type_url: + '@type': type: string description: >- A URL/resource name that uniquely identifies the type of @@ -67650,12 +64063,7 @@ definitions: 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. + additionalProperties: {} description: >- `Any` contains an arbitrary serialized protocol buffer message along with a @@ -67772,11 +64180,9 @@ definitions: proposal passes. title: type: string - description: 'Since: cosmos-sdk 0.47' title: title is the title of the proposal summary: type: string - description: 'Since: cosmos-sdk 0.47' title: summary is a short summary of the proposal description: >- Proposal defines a group proposal. Any member of a group can submit @@ -68237,175 +64643,42 @@ definitions: breaker for Msg's of all type URLs. - LEVEL_SUPER_ADMIN: LEVEL_SUPER_ADMIN indicates that the account can take all circuit breaker actions and can grant permissions to other accounts. - cosmos.consensus.v1.QueryParamsResponse: + cometbft.types.v1.ABCIParams: type: object properties: - params: - description: >- - params are the tendermint consensus params stored in the consensus - module. - - Please note that `params.version` is not populated in this response, - it is - - tracked separately in the x/upgrade module. - type: object - properties: - block: - type: object - properties: - max_bytes: - type: string - format: int64 - title: |- - Max block size, in bytes. - Note: must be greater than 0 - max_gas: - type: string - format: int64 - title: |- - Max gas per block. - Note: must be greater or equal to -1 - description: BlockParams contains limits on the block size. - evidence: - type: object - properties: - max_age_num_blocks: - type: string - format: int64 - description: >- - Max age of evidence, in blocks. - - - The basic formula for calculating this is: MaxAgeDuration / - {average block - - time}. - max_age_duration: - type: string - description: >- - Max age of evidence, in time. - - - It should correspond with an app's "unbonding period" or other - similar - - mechanism for handling [Nothing-At-Stake - - attacks](https://github.com/ethereum/wiki/wiki/Proof-of-Stake-FAQ#what-is-the-nothing-at-stake-problem-and-how-can-it-be-fixed). - max_bytes: - type: string - format: int64 - title: >- - This sets the maximum size of total evidence in bytes that can - be committed in a single block. - - and should fall comfortably under the max block bytes. - - Default is 1048576 or 1MB - description: EvidenceParams determine how we handle evidence of malfeasance. - validator: - type: object - properties: - pub_key_types: - type: array - items: - type: string - description: |- - ValidatorParams restrict the public key types validators can use. - NOTE: uses ABCI pubkey naming, not Amino names. - version: - type: object - properties: - app: - type: string - format: uint64 - description: VersionParams contains the ABCI application version. - abci: - type: object - properties: - vote_extensions_enable_height: - type: string - format: int64 - description: >- - vote_extensions_enable_height configures the first height - during which - - vote extensions will be enabled. During this specified height, - and for all - - subsequent heights, precommit messages that do not contain - valid extension data - - will be considered invalid. Prior to this height, vote - extensions will not - - be used or accepted by validators on the network. - - - Once enabled, vote extensions will be created by the - application in ExtendVote, - - passed to the application for validation in - VerifyVoteExtension and given - - to the application to use when proposing a block during - PrepareProposal. - description: >- - ABCIParams configure functionality specific to the Application - Blockchain Interface. - description: >- - QueryParamsResponse defines the response type for querying x/consensus - parameters. - tendermint.types.ABCIParams: + vote_extensions_enable_height: + type: string + format: int64 + description: |- + vote_extensions_enable_height has been deprecated. + Instead, use FeatureParams.vote_extensions_enable_height. + title: ABCIParams is deprecated and its contents moved to FeatureParams + cometbft.types.v1.BlockParams: type: object properties: - vote_extensions_enable_height: + max_bytes: type: string format: int64 description: >- - vote_extensions_enable_height configures the first height during which - - vote extensions will be enabled. During this specified height, and for - all + Maximum size of a block, in bytes. - subsequent heights, precommit messages that do not contain valid - extension data - - will be considered invalid. Prior to this height, vote extensions will - not - - be used or accepted by validators on the network. + Must be greater or equal to -1 and cannot be greater than the + hard-coded - Once enabled, vote extensions will be created by the application in - ExtendVote, + maximum block size, which is 100MB. - passed to the application for validation in VerifyVoteExtension and - given - to the application to use when proposing a block during - PrepareProposal. - description: >- - ABCIParams configure functionality specific to the Application Blockchain - Interface. - tendermint.types.BlockParams: - type: object - properties: - max_bytes: - type: string - format: int64 - title: |- - Max block size, in bytes. - Note: must be greater than 0 + If set to -1, the limit is the hard-coded maximum block size. max_gas: type: string format: int64 - title: |- - Max gas per block. - Note: must be greater or equal to -1 - description: BlockParams contains limits on the block size. - tendermint.types.ConsensusParams: + description: |- + Maximum gas wanted by transactions included in a block. + + Must be greater or equal to -1. If set to -1, no limit is enforced. + description: BlockParams define limits on the block size and gas. + cometbft.types.v1.ConsensusParams: type: object properties: block: @@ -68414,16 +64687,27 @@ definitions: max_bytes: type: string format: int64 - title: |- - Max block size, in bytes. - Note: must be greater than 0 + description: >- + Maximum size of a block, in bytes. + + + Must be greater or equal to -1 and cannot be greater than the + hard-coded + + maximum block size, which is 100MB. + + + If set to -1, the limit is the hard-coded maximum block size. max_gas: type: string format: int64 - title: |- - Max gas per block. - Note: must be greater or equal to -1 - description: BlockParams contains limits on the block size. + description: >- + Maximum gas wanted by transactions included in a block. + + + Must be greater or equal to -1. If set to -1, no limit is + enforced. + description: BlockParams define limits on the block size and gas. evidence: type: object properties: @@ -68431,36 +64715,39 @@ definitions: type: string format: int64 description: >- - Max age of evidence, in blocks. + Maximum age of evidence, in blocks. - The basic formula for calculating this is: MaxAgeDuration / - {average block + The recommended formula for calculating it is max_age_duration / + {average - time}. + block time}. max_age_duration: type: string description: >- - Max age of evidence, in time. + Maximum age of evidence, in time. - It should correspond with an app's "unbonding period" or other - similar + The recommended value of is should correspond to the application's - mechanism for handling [Nothing-At-Stake + "unbonding period" or other similar mechanism for handling - attacks](https://github.com/ethereum/wiki/wiki/Proof-of-Stake-FAQ#what-is-the-nothing-at-stake-problem-and-how-can-it-be-fixed). + Nothing-At-Stake attacks. + + See: + https://github.com/ethereum/wiki/wiki/Proof-of-Stake-FAQ#what-is-the-nothing-at-stake-problem-and-how-can-it-be-fixed. max_bytes: type: string format: int64 - title: >- - This sets the maximum size of total evidence in bytes that can be - committed in a single block. + description: >- + Maximum size in bytes of evidence allowed to be included in a + block. - and should fall comfortably under the max block bytes. - Default is 1048576 or 1MB - description: EvidenceParams determine how we handle evidence of malfeasance. + It should fall comfortably under the maximum size of a block. + description: >- + EvidenceParams determine the validity of evidences of Byzantine + behavior. validator: type: object properties: @@ -68470,87 +64757,237 @@ definitions: type: string description: |- ValidatorParams restrict the public key types validators can use. - NOTE: uses ABCI pubkey naming, not Amino names. + + NOTE: uses ABCI public keys naming, not Amino names. version: type: object properties: app: type: string format: uint64 - description: VersionParams contains the ABCI application version. + description: |- + The ABCI application version. + + It was named app_version in CometBFT 0.34. + description: VersionParams contain the version of specific components of CometBFT. abci: + title: Use FeatureParams.vote_extensions_enable_height instead type: object properties: vote_extensions_enable_height: type: string format: int64 + description: |- + vote_extensions_enable_height has been deprecated. + Instead, use FeatureParams.vote_extensions_enable_height. + synchrony: + type: object + properties: + precision: + type: string description: >- - vote_extensions_enable_height configures the first height during - which + Bound for how skewed a proposer's clock may be from any validator + on the - vote extensions will be enabled. During this specified height, and - for all + network while still producing valid proposals. + message_delay: + type: string + description: >- + Bound for how long a proposal message may take to reach all + validators on - subsequent heights, precommit messages that do not contain valid - extension data + a network and still be considered valid. + description: >- + SynchronyParams determine the validity of block timestamps. - will be considered invalid. Prior to this height, vote extensions - will not - be used or accepted by validators on the network. + These parameters are part of the Proposer-Based Timestamps (PBTS) + algorithm. + + For more information on the relationship of the synchrony parameters + to + + block timestamps validity, refer to the PBTS specification: + + https://github.com/tendermint/spec/blob/master/spec/consensus/proposer-based-timestamp/README.md + feature: + type: object + properties: + vote_extensions_enable_height: + type: string + format: int64 + description: >- + First height during which vote extensions will be enabled. + + + During the specified height, and for all subsequent heights, + precommit + + messages that do not contain valid extension data will be + considered + + invalid. Prior to this height, or when this height is set to 0, + vote + + extensions will not be used or accepted by validators on the + network. Once enabled, vote extensions will be created by the application - in ExtendVote, + in + + ExtendVote, validated by the application in VerifyVoteExtension, + and + + used by the application in PrepareProposal, when proposing the + next block. + + + Cannot be set to heights lower or equal to the current blockchain + height. + pbts_enable_height: + type: string + format: int64 + description: >- + Height at which Proposer-Based Timestamps (PBTS) will be enabled. + + + From the specified height, and for all subsequent heights, the + PBTS + + algorithm will be used to produce and validate block timestamps. + Prior to - passed to the application for validation in VerifyVoteExtension - and given + this height, or when this height is set to 0, the legacy BFT Time - to the application to use when proposing a block during - PrepareProposal. + algorithm is used to produce and validate timestamps. + + + Cannot be set to heights lower or equal to the current blockchain + height. description: >- - ABCIParams configure functionality specific to the Application - Blockchain Interface. + FeatureParams configure the height from which features of CometBFT are + enabled. description: |- ConsensusParams contains consensus critical parameters that determine the validity of blocks. - tendermint.types.EvidenceParams: + cometbft.types.v1.EvidenceParams: type: object properties: max_age_num_blocks: type: string format: int64 description: >- - Max age of evidence, in blocks. + Maximum age of evidence, in blocks. - The basic formula for calculating this is: MaxAgeDuration / {average - block + The recommended formula for calculating it is max_age_duration / + {average - time}. + block time}. max_age_duration: type: string description: >- - Max age of evidence, in time. + Maximum age of evidence, in time. + + The recommended value of is should correspond to the application's - It should correspond with an app's "unbonding period" or other similar + "unbonding period" or other similar mechanism for handling - mechanism for handling [Nothing-At-Stake + Nothing-At-Stake attacks. - attacks](https://github.com/ethereum/wiki/wiki/Proof-of-Stake-FAQ#what-is-the-nothing-at-stake-problem-and-how-can-it-be-fixed). + See: + https://github.com/ethereum/wiki/wiki/Proof-of-Stake-FAQ#what-is-the-nothing-at-stake-problem-and-how-can-it-be-fixed. max_bytes: type: string format: int64 - title: >- - This sets the maximum size of total evidence in bytes that can be - committed in a single block. + description: |- + Maximum size in bytes of evidence allowed to be included in a block. + + It should fall comfortably under the maximum size of a block. + description: EvidenceParams determine the validity of evidences of Byzantine behavior. + cometbft.types.v1.FeatureParams: + type: object + properties: + vote_extensions_enable_height: + type: string + format: int64 + description: >- + First height during which vote extensions will be enabled. + + + During the specified height, and for all subsequent heights, precommit + + messages that do not contain valid extension data will be considered + + invalid. Prior to this height, or when this height is set to 0, vote + + extensions will not be used or accepted by validators on the network. + + + Once enabled, vote extensions will be created by the application in + + ExtendVote, validated by the application in VerifyVoteExtension, and - and should fall comfortably under the max block bytes. + used by the application in PrepareProposal, when proposing the next + block. - Default is 1048576 or 1MB - description: EvidenceParams determine how we handle evidence of malfeasance. - tendermint.types.ValidatorParams: + + Cannot be set to heights lower or equal to the current blockchain + height. + pbts_enable_height: + type: string + format: int64 + description: >- + Height at which Proposer-Based Timestamps (PBTS) will be enabled. + + + From the specified height, and for all subsequent heights, the PBTS + + algorithm will be used to produce and validate block timestamps. Prior + to + + this height, or when this height is set to 0, the legacy BFT Time + + algorithm is used to produce and validate timestamps. + + + Cannot be set to heights lower or equal to the current blockchain + height. + description: >- + FeatureParams configure the height from which features of CometBFT are + enabled. + cometbft.types.v1.SynchronyParams: + type: object + properties: + precision: + type: string + description: >- + Bound for how skewed a proposer's clock may be from any validator on + the + + network while still producing valid proposals. + message_delay: + type: string + description: >- + Bound for how long a proposal message may take to reach all validators + on + + a network and still be considered valid. + description: >- + SynchronyParams determine the validity of block timestamps. + + + These parameters are part of the Proposer-Based Timestamps (PBTS) + algorithm. + + For more information on the relationship of the synchrony parameters to + + block timestamps validity, refer to the PBTS specification: + + https://github.com/tendermint/spec/blob/master/spec/consensus/proposer-based-timestamp/README.md + cometbft.types.v1.ValidatorParams: type: object properties: pub_key_types: @@ -68559,14 +64996,228 @@ definitions: type: string description: |- ValidatorParams restrict the public key types validators can use. - NOTE: uses ABCI pubkey naming, not Amino names. - tendermint.types.VersionParams: + + NOTE: uses ABCI public keys naming, not Amino names. + cometbft.types.v1.VersionParams: type: object properties: app: type: string format: uint64 - description: VersionParams contains the ABCI application version. + description: |- + The ABCI application version. + + It was named app_version in CometBFT 0.34. + description: VersionParams contain the version of specific components of CometBFT. + cosmos.consensus.v1.QueryParamsResponse: + type: object + properties: + params: + description: >- + params are the tendermint consensus params stored in the consensus + module. + + Please note that `params.version` is not populated in this response, + it is + + tracked separately in the x/upgrade module. + type: object + properties: + block: + type: object + properties: + max_bytes: + type: string + format: int64 + description: >- + Maximum size of a block, in bytes. + + + Must be greater or equal to -1 and cannot be greater than the + hard-coded + + maximum block size, which is 100MB. + + + If set to -1, the limit is the hard-coded maximum block size. + max_gas: + type: string + format: int64 + description: >- + Maximum gas wanted by transactions included in a block. + + + Must be greater or equal to -1. If set to -1, no limit is + enforced. + description: BlockParams define limits on the block size and gas. + evidence: + type: object + properties: + max_age_num_blocks: + type: string + format: int64 + description: >- + Maximum age of evidence, in blocks. + + + The recommended formula for calculating it is max_age_duration + / {average + + block time}. + max_age_duration: + type: string + description: >- + Maximum age of evidence, in time. + + + The recommended value of is should correspond to the + application's + + "unbonding period" or other similar mechanism for handling + + Nothing-At-Stake attacks. + + See: + https://github.com/ethereum/wiki/wiki/Proof-of-Stake-FAQ#what-is-the-nothing-at-stake-problem-and-how-can-it-be-fixed. + max_bytes: + type: string + format: int64 + description: >- + Maximum size in bytes of evidence allowed to be included in a + block. + + + It should fall comfortably under the maximum size of a block. + description: >- + EvidenceParams determine the validity of evidences of Byzantine + behavior. + validator: + type: object + properties: + pub_key_types: + type: array + items: + type: string + description: |- + ValidatorParams restrict the public key types validators can use. + + NOTE: uses ABCI public keys naming, not Amino names. + version: + type: object + properties: + app: + type: string + format: uint64 + description: |- + The ABCI application version. + + It was named app_version in CometBFT 0.34. + description: >- + VersionParams contain the version of specific components of + CometBFT. + abci: + title: Use FeatureParams.vote_extensions_enable_height instead + type: object + properties: + vote_extensions_enable_height: + type: string + format: int64 + description: |- + vote_extensions_enable_height has been deprecated. + Instead, use FeatureParams.vote_extensions_enable_height. + synchrony: + type: object + properties: + precision: + type: string + description: >- + Bound for how skewed a proposer's clock may be from any + validator on the + + network while still producing valid proposals. + message_delay: + type: string + description: >- + Bound for how long a proposal message may take to reach all + validators on + + a network and still be considered valid. + description: >- + SynchronyParams determine the validity of block timestamps. + + + These parameters are part of the Proposer-Based Timestamps (PBTS) + algorithm. + + For more information on the relationship of the synchrony + parameters to + + block timestamps validity, refer to the PBTS specification: + + https://github.com/tendermint/spec/blob/master/spec/consensus/proposer-based-timestamp/README.md + feature: + type: object + properties: + vote_extensions_enable_height: + type: string + format: int64 + description: >- + First height during which vote extensions will be enabled. + + + During the specified height, and for all subsequent heights, + precommit + + messages that do not contain valid extension data will be + considered + + invalid. Prior to this height, or when this height is set to + 0, vote + + extensions will not be used or accepted by validators on the + network. + + + Once enabled, vote extensions will be created by the + application in + + ExtendVote, validated by the application in + VerifyVoteExtension, and + + used by the application in PrepareProposal, when proposing the + next block. + + + Cannot be set to heights lower or equal to the current + blockchain height. + pbts_enable_height: + type: string + format: int64 + description: >- + Height at which Proposer-Based Timestamps (PBTS) will be + enabled. + + + From the specified height, and for all subsequent heights, the + PBTS + + algorithm will be used to produce and validate block + timestamps. Prior to + + this height, or when this height is set to 0, the legacy BFT + Time + + algorithm is used to produce and validate timestamps. + + + Cannot be set to heights lower or equal to the current + blockchain height. + description: >- + FeatureParams configure the height from which features of CometBFT + are enabled. + description: >- + QueryParamsResponse defines the response type for querying x/consensus + parameters. cosmos.app.v1alpha1.Config: type: object properties: @@ -68612,7 +65263,7 @@ definitions: cosmos.app.v1alpha1.is_module extension. type: object properties: - type_url: + '@type': type: string description: >- A URL/resource name that uniquely identifies the type of the @@ -68669,12 +65320,7 @@ definitions: 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. + additionalProperties: {} golang_bindings: type: array items: @@ -68799,7 +65445,7 @@ definitions: extension. type: object properties: - type_url: + '@type': type: string description: >- A URL/resource name that uniquely identifies the type of the @@ -68851,12 +65497,7 @@ definitions: 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. + additionalProperties: {} golang_bindings: type: array items: @@ -68934,7 +65575,7 @@ definitions: cosmos.app.v1alpha1.is_module extension. type: object properties: - type_url: + '@type': type: string description: >- A URL/resource name that uniquely identifies the type of @@ -68992,12 +65633,7 @@ definitions: 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. + additionalProperties: {} golang_bindings: type: array items: diff --git a/contrib/devtools/Dockerfile b/contrib/devtools/Dockerfile index 7a4ec204a535..b5674faf4eae 100644 --- a/contrib/devtools/Dockerfile +++ b/contrib/devtools/Dockerfile @@ -26,8 +26,8 @@ ENV GOLANG_PROTOBUF_VERSION=1.28.1 \ RUN go install github.com/cosmos/cosmos-proto/cmd/protoc-gen-go-pulsar@latest && \ go install google.golang.org/protobuf/cmd/protoc-gen-go@v${GOLANG_PROTOBUF_VERSION} && \ - go install github.com/grpc-ecosystem/grpc-gateway/protoc-gen-grpc-gateway@v${GRPC_GATEWAY_VERSION} \ - github.com/grpc-ecosystem/grpc-gateway/protoc-gen-swagger@v${GRPC_GATEWAY_VERSION} && \ + go install github.com/grpc-ecosystem/grpc-gateway/protoc-gen-grpc-gateway@v${GRPC_GATEWAY_VERSION} && \ + go install github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-openapiv2@latest && \ go install cosmossdk.io/orm/cmd/protoc-gen-go-cosmos-orm@v1.0.0-beta.3 && \ go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@latest diff --git a/proto/buf.gen.swagger.yaml b/proto/buf.gen.swagger.yaml index d0f7535b1a45..39d0bd87f618 100644 --- a/proto/buf.gen.swagger.yaml +++ b/proto/buf.gen.swagger.yaml @@ -1,5 +1,5 @@ version: v1 plugins: - - name: swagger + - name: openapiv2 out: ../tmp-swagger-gen - opt: logtostderr=true,fqn_for_swagger_name=true,simple_operation_ids=true + opt: logtostderr=true,fqn_for_openapi_name=true,simple_operation_ids=true,json_names_for_fields=false diff --git a/proto/cosmos/app/v1alpha1/config.proto b/proto/cosmos/app/v1alpha1/config.proto index ee3e70659e4b..f1993b82c134 100644 --- a/proto/cosmos/app/v1alpha1/config.proto +++ b/proto/cosmos/app/v1alpha1/config.proto @@ -4,6 +4,8 @@ package cosmos.app.v1alpha1; import "google/protobuf/any.proto"; +option go_package = "cosmossdk.io/api/app/v1alpha1"; + // Config represents the configuration for a Cosmos SDK ABCI app. // It is intended that all state machine logic including the version of // baseapp and tx handlers (and possibly even Tendermint) that an app needs diff --git a/proto/cosmos/app/v1alpha1/module.proto b/proto/cosmos/app/v1alpha1/module.proto index e5413786509e..823dcb7d3259 100644 --- a/proto/cosmos/app/v1alpha1/module.proto +++ b/proto/cosmos/app/v1alpha1/module.proto @@ -4,6 +4,8 @@ package cosmos.app.v1alpha1; import "google/protobuf/descriptor.proto"; +option go_package = "cosmossdk.io/api/app/v1alpha1"; + extend google.protobuf.MessageOptions { // module indicates that this proto type is a config object for an app module // and optionally provides other descriptive information about the module. diff --git a/proto/cosmos/app/v1alpha1/query.proto b/proto/cosmos/app/v1alpha1/query.proto index 2c222d870647..cc611943108b 100644 --- a/proto/cosmos/app/v1alpha1/query.proto +++ b/proto/cosmos/app/v1alpha1/query.proto @@ -4,6 +4,8 @@ package cosmos.app.v1alpha1; import "cosmos/app/v1alpha1/config.proto"; +option go_package = "cosmossdk.io/api/app/v1alpha1"; + // Query is the app module query service. service Query { diff --git a/proto/cosmos/orm/query/v1alpha1/query.proto b/proto/cosmos/orm/query/v1alpha1/query.proto index 4500e99d5dc6..2ee19c120733 100644 --- a/proto/cosmos/orm/query/v1alpha1/query.proto +++ b/proto/cosmos/orm/query/v1alpha1/query.proto @@ -7,6 +7,8 @@ import "google/protobuf/duration.proto"; import "google/protobuf/any.proto"; import "cosmos/base/query/v1beta1/pagination.proto"; +option go_package = "cosmossdk.io/api/app/cosmos/orm/query/v1alpha1"; + // Query is a generic gRPC service for querying ORM data. service Query { diff --git a/scripts/protoc-swagger-gen.sh b/scripts/protoc-swagger-gen.sh index 9edbc2d07f48..497cef5e4c1c 100755 --- a/scripts/protoc-swagger-gen.sh +++ b/scripts/protoc-swagger-gen.sh @@ -4,7 +4,7 @@ set -eo pipefail mkdir -p ./tmp-swagger-gen cd proto -proto_dirs=$(find ./cosmos -path -prune -o -name '*.proto' -print0 | xargs -0 -n1 dirname | sort | uniq) +proto_dirs=$(find ./cosmos ../x -path -prune -o -name '*.proto' -print0 | xargs -0 -n1 dirname | sort | uniq) for dir in $proto_dirs; do # generate swagger files (filter query files) query_file=$(find "${dir}" -maxdepth 1 \( -name 'query.proto' -o -name 'service.proto' \)) From 4c29ad93f23c79ff0b56c50a35e1d3f11da44234 Mon Sep 17 00:00:00 2001 From: Paul Chen Date: Fri, 31 May 2024 12:10:00 +0800 Subject: [PATCH 2/2] chore: use tag version on protoc gen openapiv2 --- contrib/devtools/Dockerfile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/contrib/devtools/Dockerfile b/contrib/devtools/Dockerfile index b5674faf4eae..892bafdb0f73 100644 --- a/contrib/devtools/Dockerfile +++ b/contrib/devtools/Dockerfile @@ -22,12 +22,13 @@ RUN adduser -u $UID -s /bin/sh $UNAME -D USER $UNAME ENV GOLANG_PROTOBUF_VERSION=1.28.1 \ - GRPC_GATEWAY_VERSION=1.16.0 + GRPC_GATEWAY_VERSION=1.16.0 \ + GRPC_GATEWAY_PROTOC_GEN_OPENAPIV2_VERSION=2.20.0 RUN go install github.com/cosmos/cosmos-proto/cmd/protoc-gen-go-pulsar@latest && \ go install google.golang.org/protobuf/cmd/protoc-gen-go@v${GOLANG_PROTOBUF_VERSION} && \ go install github.com/grpc-ecosystem/grpc-gateway/protoc-gen-grpc-gateway@v${GRPC_GATEWAY_VERSION} && \ - go install github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-openapiv2@latest && \ + go install github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-openapiv2@v${GRPC_GATEWAY_PROTOC_GEN_OPENAPIV2_VERSION} && \ go install cosmossdk.io/orm/cmd/protoc-gen-go-cosmos-orm@v1.0.0-beta.3 && \ go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@latest