diff --git a/flake.lock b/flake.lock index 0c223808cd..f8936acb37 100644 --- a/flake.lock +++ b/flake.lock @@ -88,8 +88,8 @@ }, "original": { "owner": "cosmos", + "ref": "refs/tags/v1.0.0-beta.5", "repo": "cosmos-proto", - "rev": "0748a2ad4a5c78b1db6c8090db01e255bcc91365", "type": "github" } }, @@ -99,13 +99,13 @@ "lastModified": 1729272985, "narHash": "sha256-i6D5SOzxjrvTDZVqEkmm12Z+wfM2kPFDInH9AHtIFR0=", "owner": "unionlabs", - "repo": "cosmos-sdk-union", + "repo": "cosmos-sdk", "rev": "c2982236c55751ea227679164594ce572bb857f3", "type": "github" }, "original": { "owner": "unionlabs", - "repo": "cosmos-sdk-union", + "repo": "cosmos-sdk", "rev": "c2982236c55751ea227679164594ce572bb857f3", "type": "github" } @@ -304,34 +304,34 @@ "gogoproto": { "flake": false, "locked": { - "lastModified": 1680165077, - "narHash": "sha256-oaGwDFbz/xgL7hDtvdh/mIcRIGBdp+/xuKeuBE2ZpqY=", + "lastModified": 1706614604, + "narHash": "sha256-jRC3CImRLzReOcNR483jYPNXhcX4eY9seLJe5DOjp7o=", "owner": "cosmos", "repo": "gogoproto", - "rev": "b12c8cae0624d2518ab995c775410694dfa5d50e", + "rev": "34f37065b54523d08d7b637c78333d444f350e21", "type": "github" }, "original": { "owner": "cosmos", "repo": "gogoproto", - "rev": "b12c8cae0624d2518ab995c775410694dfa5d50e", + "rev": "34f37065b54523d08d7b637c78333d444f350e21", "type": "github" } }, "googleapis": { "flake": false, "locked": { - "lastModified": 1681506972, - "narHash": "sha256-TME4wkdmqrb0Shuc5uFqSGSoDaMhM9YJv9kvTam7c9I=", + "lastModified": 1711408373, + "narHash": "sha256-+w2IC8WbHub7S+Q/8GwnlcBcVia0HxdIWuvyfl5XxTs=", "owner": "googleapis", "repo": "googleapis", - "rev": "6774ccbbc3f182f6ae3a32dca29e1da489ad8a8f", + "rev": "8984ddb508dea0e673b724c58338e810b1d8aee3", "type": "github" }, "original": { "owner": "googleapis", "repo": "googleapis", - "rev": "6774ccbbc3f182f6ae3a32dca29e1da489ad8a8f", + "rev": "8984ddb508dea0e673b724c58338e810b1d8aee3", "type": "github" } }, @@ -354,17 +354,17 @@ "ibc-go": { "flake": false, "locked": { - "lastModified": 1729132086, - "narHash": "sha256-OF2QFcEwDTVbYO2DcUdyzi504JglKge14lF71ozqCgQ=", + "lastModified": 1732203640, + "narHash": "sha256-SGaNkslALJD6Z/4c3wBFpi7b27uGW9LmiqkVW0qNyC0=", "owner": "unionlabs", "repo": "ibc-go-union", - "rev": "4fbe0649cdf00d58090909bc4dfe5a7be32b013e", + "rev": "bfabb646cf7384bd33ee672f51a0e1325f545c10", "type": "github" }, "original": { "owner": "unionlabs", "repo": "ibc-go-union", - "rev": "4fbe0649cdf00d58090909bc4dfe5a7be32b013e", + "rev": "bfabb646cf7384bd33ee672f51a0e1325f545c10", "type": "github" } }, diff --git a/flake.nix b/flake.nix index b333cb24b9..f199c2937c 100644 --- a/flake.nix +++ b/flake.nix @@ -54,7 +54,7 @@ }; ibc-go = { - url = "github:unionlabs/ibc-go-union?rev=4fbe0649cdf00d58090909bc4dfe5a7be32b013e"; + url = "github:unionlabs/ibc-go-union?rev=bfabb646cf7384bd33ee672f51a0e1325f545c10"; flake = false; }; ics23 = { @@ -62,15 +62,15 @@ flake = false; }; cosmosproto = { - url = "github:cosmos/cosmos-proto?rev=0748a2ad4a5c78b1db6c8090db01e255bcc91365"; + url = "github:cosmos/cosmos-proto?ref=refs/tags/v1.0.0-beta.5"; flake = false; }; gogoproto = { - url = "github:cosmos/gogoproto?rev=b12c8cae0624d2518ab995c775410694dfa5d50e"; + url = "github:cosmos/gogoproto?rev=34f37065b54523d08d7b637c78333d444f350e21"; flake = false; }; googleapis = { - url = "github:googleapis/googleapis?rev=6774ccbbc3f182f6ae3a32dca29e1da489ad8a8f"; + url = "github:googleapis/googleapis?rev=8984ddb508dea0e673b724c58338e810b1d8aee3"; flake = false; }; wasmd = { @@ -136,7 +136,7 @@ cosmossdk = { type = "github"; owner = "unionlabs"; - repo = "cosmos-sdk-union"; + repo = "cosmos-sdk"; rev = "c2982236c55751ea227679164594ce572bb857f3"; flake = false; }; diff --git a/tools/rust-proto.nix b/tools/rust-proto.nix index cd2b6972e4..6ca3f0e2e9 100644 --- a/tools/rust-proto.nix +++ b/tools/rust-proto.nix @@ -106,7 +106,7 @@ _: { proto-deps = [ src google.src - cosmos-sdk.src + "${proto.cosmossdk}/proto" ics23.src "${proto.cosmosproto}/proto" "${proto.googleapis}" @@ -177,7 +177,7 @@ _: { proto-deps = [ src google.src - cosmos-sdk.src + "${proto.cosmossdk}/proto" ics23.src "${proto.cosmosproto}/proto" "${proto.googleapis}" @@ -190,7 +190,7 @@ _: { ]; }; cosmos-sdk = { - src = "${proto.cosmossdk}/proto/cosmos"; + src = "${proto.cosmossdk}/proto"; proto-deps = [ "${proto.cosmossdk}/proto" google.src diff --git a/uniond/docs/static/openapi.yml b/uniond/docs/static/openapi.yml index 4710404af1..367d1b967e 100644 --- a/uniond/docs/static/openapi.yml +++ b/uniond/docs/static/openapi.yml @@ -15,7 +15,7 @@ "tags": [ "Query" ], - "description": "AccountInfo queries account info which is common to all account types.\n\n Since: cosmos-sdk 0.47", + "description": "AccountInfo queries account info which is common to all account types.", "operationId": "Query_AccountInfo", "parameters": [ { @@ -57,7 +57,7 @@ "tags": [ "Query" ], - "description": "Accounts returns all the existing accounts.\n\n When called from another module, this query might consume a high amount of\n gas if the pagination field is incorrectly set.\n\n Since: cosmos-sdk 0.43", + "description": "Accounts returns all the existing accounts.\n When called from another module, this query might consume a high amount of\n gas if the pagination field is incorrectly set.", "operationId": "Query_Accounts", "parameters": [ { @@ -98,7 +98,7 @@ { "name": "pagination.reverse", "in": "query", - "description": "reverse is set to true if results are to be returned in the descending order. Since: cosmos-sdk 0.43", + "description": "reverse is set to true if results are to be returned in the descending order.", "schema": { "type": "boolean" } @@ -170,31 +170,31 @@ } } }, - "/cosmos/auth/v1beta1/address_by_id/{id}": { + "/cosmos/auth/v1beta1/address_by_id/{accountId}": { "get": { "tags": [ "Query" ], - "description": "AccountAddressByID returns account address based on account number.\n\n Since: cosmos-sdk 0.46.2", + "description": "AccountAddressByID returns account address based on account number.", "operationId": "Query_AccountAddressByID", "parameters": [ { - "name": "id", + "name": "accountId", "in": "path", - "description": "Deprecated, use account_id instead id is the account number of the address to be queried. This field should have been an uint64 (like all account numbers), and will be updated to uint64 in a future version of the auth query.", + "description": "account_id is the account number of the address to be queried.", "required": true, "schema": { "type": "integer", - "format": "int64" + "format": "uint64" } }, { - "name": "accountId", + "name": "id", "in": "query", - "description": "account_id is the account number of the address to be queried. Since: cosmos-sdk 0.47", + "description": "Deprecated, use account_id instead id is the account number of the address to be queried. This field should have been an uint64 (like all account numbers), and will be updated to uint64 in a future version of the auth query.", "schema": { "type": "integer", - "format": "uint64" + "format": "int64" } } ], @@ -227,7 +227,7 @@ "tags": [ "Query" ], - "description": "Bech32Prefix queries bech32Prefix\n\n Since: cosmos-sdk 0.46", + "description": "Bech32Prefix queries bech32Prefix", "operationId": "Query_Bech32Prefix", "responses": { "200": { @@ -258,7 +258,7 @@ "tags": [ "Query" ], - "description": "AddressBytesToString converts Account Address bytes to string\n\n Since: cosmos-sdk 0.46", + "description": "AddressBytesToString converts Account Address bytes to string", "operationId": "Query_AddressBytesToString", "parameters": [ { @@ -300,7 +300,7 @@ "tags": [ "Query" ], - "description": "AddressStringToBytes converts Address string to bytes\n\n Since: cosmos-sdk 0.46", + "description": "AddressStringToBytes converts Address string to bytes", "operationId": "Query_AddressStringToBytes", "parameters": [ { @@ -341,7 +341,7 @@ "tags": [ "Query" ], - "description": "ModuleAccounts returns all the existing module accounts.\n\n Since: cosmos-sdk 0.46", + "description": "ModuleAccounts returns all the existing module accounts.", "operationId": "Query_ModuleAccounts", "responses": { "200": { @@ -507,7 +507,7 @@ { "name": "pagination.reverse", "in": "query", - "description": "reverse is set to true if results are to be returned in the descending order. Since: cosmos-sdk 0.43", + "description": "reverse is set to true if results are to be returned in the descending order.", "schema": { "type": "boolean" } @@ -542,7 +542,7 @@ "tags": [ "Query" ], - "description": "GranteeGrants returns a list of `GrantAuthorization` by grantee.\n\n Since: cosmos-sdk 0.46", + "description": "GranteeGrants returns a list of `GrantAuthorization` by grantee.", "operationId": "Query_GranteeGrants", "parameters": [ { @@ -591,7 +591,7 @@ { "name": "pagination.reverse", "in": "query", - "description": "reverse is set to true if results are to be returned in the descending order. Since: cosmos-sdk 0.43", + "description": "reverse is set to true if results are to be returned in the descending order.", "schema": { "type": "boolean" } @@ -626,7 +626,7 @@ "tags": [ "Query" ], - "description": "GranterGrants returns list of `GrantAuthorization`, granted by granter.\n\n Since: cosmos-sdk 0.46", + "description": "GranterGrants returns list of `GrantAuthorization`, granted by granter.", "operationId": "Query_GranterGrants", "parameters": [ { @@ -675,7 +675,7 @@ { "name": "pagination.reverse", "in": "query", - "description": "reverse is set to true if results are to be returned in the descending order. Since: cosmos-sdk 0.43", + "description": "reverse is set to true if results are to be returned in the descending order.", "schema": { "type": "boolean" } @@ -760,7 +760,7 @@ { "name": "pagination.reverse", "in": "query", - "description": "reverse is set to true if results are to be returned in the descending order. Since: cosmos-sdk 0.43", + "description": "reverse is set to true if results are to be returned in the descending order.", "schema": { "type": "boolean" } @@ -768,7 +768,7 @@ { "name": "resolveDenom", "in": "query", - "description": "resolve_denom is the flag to resolve the denom into a human-readable form from the metadata. Since: cosmos-sdk 0.50", + "description": "resolve_denom is the flag to resolve the denom into a human-readable form from the metadata.", "schema": { "type": "boolean" } @@ -853,7 +853,7 @@ "tags": [ "Query" ], - "description": "DenomOwners queries for all account addresses that own a particular token\n denomination.\n\n When called from another module, this query might consume a high amount of\n gas if the pagination field is incorrectly set.\n\n Since: cosmos-sdk 0.46", + "description": "DenomOwners queries for all account addresses that own a particular token\n denomination.\n\n When called from another module, this query might consume a high amount of\n gas if the pagination field is incorrectly set.", "operationId": "Query_DenomOwners", "parameters": [ { @@ -903,7 +903,7 @@ { "name": "pagination.reverse", "in": "query", - "description": "reverse is set to true if results are to be returned in the descending order. Since: cosmos-sdk 0.43", + "description": "reverse is set to true if results are to be returned in the descending order.", "schema": { "type": "boolean" } @@ -938,7 +938,7 @@ "tags": [ "Query" ], - "description": "DenomOwnersByQuery queries for all account addresses that own a particular token\n denomination.\n\n Since: cosmos-sdk 0.50.3", + "description": "DenomOwnersByQuery queries for all account addresses that own a particular token\n denomination.", "operationId": "Query_DenomOwnersByQuery", "parameters": [ { @@ -987,7 +987,7 @@ { "name": "pagination.reverse", "in": "query", - "description": "reverse is set to true if results are to be returned in the descending order. Since: cosmos-sdk 0.43", + "description": "reverse is set to true if results are to be returned in the descending order.", "schema": { "type": "boolean" } @@ -1063,7 +1063,7 @@ { "name": "pagination.reverse", "in": "query", - "description": "reverse is set to true if results are to be returned in the descending order. Since: cosmos-sdk 0.43", + "description": "reverse is set to true if results are to be returned in the descending order.", "schema": { "type": "boolean" } @@ -1212,7 +1212,7 @@ "tags": [ "Query" ], - "description": "SendEnabled queries for SendEnabled entries.\n\n This query only returns denominations that have specific SendEnabled settings.\n Any denomination that does not have a specific setting will use the default\n params.default_send_enabled, and will not be returned by this query.\n\n Since: cosmos-sdk 0.47", + "description": "SendEnabled queries for SendEnabled entries.\n\n This query only returns denominations that have specific SendEnabled settings.\n Any denomination that does not have a specific setting will use the default\n params.default_send_enabled, and will not be returned by this query.", "operationId": "Query_SendEnabled", "parameters": [ { @@ -1264,7 +1264,7 @@ { "name": "pagination.reverse", "in": "query", - "description": "reverse is set to true if results are to be returned in the descending order. Since: cosmos-sdk 0.43", + "description": "reverse is set to true if results are to be returned in the descending order.", "schema": { "type": "boolean" } @@ -1299,7 +1299,7 @@ "tags": [ "Query" ], - "description": "SpendableBalances queries the spendable balance of all coins for a single\n account.\n\n When called from another module, this query might consume a high amount of\n gas if the pagination field is incorrectly set.\n\n Since: cosmos-sdk 0.46", + "description": "SpendableBalances queries the spendable balance of all coins for a single\n account.\n When called from another module, this query might consume a high amount of\n gas if the pagination field is incorrectly set.", "operationId": "Query_SpendableBalances", "parameters": [ { @@ -1349,7 +1349,7 @@ { "name": "pagination.reverse", "in": "query", - "description": "reverse is set to true if results are to be returned in the descending order. Since: cosmos-sdk 0.43", + "description": "reverse is set to true if results are to be returned in the descending order.", "schema": { "type": "boolean" } @@ -1384,7 +1384,7 @@ "tags": [ "Query" ], - "description": "SpendableBalanceByDenom queries the spendable balance of a single denom for\n a single account.\n\n When called from another module, this query might consume a high amount of\n gas if the pagination field is incorrectly set.\n\n Since: cosmos-sdk 0.47", + "description": "SpendableBalanceByDenom queries the spendable balance of a single denom for\n a single account.\n\n When called from another module, this query might consume a high amount of\n gas if the pagination field is incorrectly set.", "operationId": "Query_SpendableBalanceByDenom", "parameters": [ { @@ -1475,7 +1475,7 @@ { "name": "pagination.reverse", "in": "query", - "description": "reverse is set to true if results are to be returned in the descending order. Since: cosmos-sdk 0.43", + "description": "reverse is set to true if results are to be returned in the descending order.", "schema": { "type": "boolean" } @@ -1613,7 +1613,7 @@ "tags": [ "Service" ], - "description": "ABCIQuery defines a query handler that supports ABCI queries directly to the\n application, bypassing Tendermint completely. The ABCI query must contain\n a valid and supported path, including app, custom, p2p, and store.\n\n Since: cosmos-sdk 0.46", + "description": "ABCIQuery defines a query handler that supports ABCI queries directly to the\n application, bypassing Tendermint completely. The ABCI query must contain\n a valid and supported path, including app, custom, p2p, and store.", "operationId": "Service_ABCIQuery", "parameters": [ { @@ -1852,7 +1852,7 @@ { "name": "pagination.reverse", "in": "query", - "description": "reverse is set to true if results are to be returned in the descending order. Since: cosmos-sdk 0.43", + "description": "reverse is set to true if results are to be returned in the descending order.", "schema": { "type": "boolean" } @@ -1937,7 +1937,7 @@ { "name": "pagination.reverse", "in": "query", - "description": "reverse is set to true if results are to be returned in the descending order. Since: cosmos-sdk 0.43", + "description": "reverse is set to true if results are to be returned in the descending order.", "schema": { "type": "boolean" } @@ -1972,7 +1972,7 @@ "tags": [ "Query" ], - "description": "Account returns account permissions.", + "description": "Accounts returns multiple accounts permissions.", "operationId": "CircuitAccounts", "parameters": [ { @@ -2013,7 +2013,7 @@ { "name": "pagination.reverse", "in": "query", - "description": "reverse is set to true if results are to be returned in the descending order. Since: cosmos-sdk 0.43", + "description": "reverse is set to true if results are to be returned in the descending order.", "schema": { "type": "boolean" } @@ -2151,7 +2151,7 @@ "tags": [ "Query" ], - "description": "CommunityPool queries the community pool coins.", + "description": "CommunityPool queries the community pool coins.\n\n Deprecated: Prefer to use x/protocolpool module's CommunityPool rpc method.", "operationId": "Query_CommunityPool", "responses": { "200": { @@ -2584,7 +2584,7 @@ { "name": "pagination.reverse", "in": "query", - "description": "reverse is set to true if results are to be returned in the descending order. Since: cosmos-sdk 0.43", + "description": "reverse is set to true if results are to be returned in the descending order.", "schema": { "type": "boolean" } @@ -2614,6 +2614,77 @@ } } }, + "/cosmos/epochs/v1beta1/current_epoch": { + "get": { + "tags": [ + "Query" + ], + "description": "CurrentEpoch provide current epoch of specified identifier", + "operationId": "Query_CurrentEpoch", + "parameters": [ + { + "name": "identifier", + "in": "query", + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/QueryCurrentEpochResponse" + } + } + } + }, + "default": { + "description": "Default error response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Status" + } + } + } + } + } + } + }, + "/cosmos/epochs/v1beta1/epochs": { + "get": { + "tags": [ + "Query" + ], + "description": "EpochInfos provide running epochInfos", + "operationId": "Query_EpochInfos", + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/QueryEpochsInfoResponse" + } + } + } + }, + "default": { + "description": "Default error response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Status" + } + } + } + } + } + } + }, "/cosmos/evidence/v1beta1/evidence": { "get": { "tags": [ @@ -2660,7 +2731,7 @@ { "name": "pagination.reverse", "in": "query", - "description": "reverse is set to true if results are to be returned in the descending order. Since: cosmos-sdk 0.43", + "description": "reverse is set to true if results are to be returned in the descending order.", "schema": { "type": "boolean" } @@ -2701,7 +2772,7 @@ { "name": "hash", "in": "path", - "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.", "required": true, "schema": { "type": "string" @@ -2746,7 +2817,7 @@ "tags": [ "Query" ], - "description": "Allowance returns granted allwance to the grantee by the granter.", + "description": "Allowance returns granted allowance to the grantee by the granter.", "operationId": "Query_Allowance", "parameters": [ { @@ -2846,7 +2917,7 @@ { "name": "pagination.reverse", "in": "query", - "description": "reverse is set to true if results are to be returned in the descending order. Since: cosmos-sdk 0.43", + "description": "reverse is set to true if results are to be returned in the descending order.", "schema": { "type": "boolean" } @@ -2881,7 +2952,7 @@ "tags": [ "Query" ], - "description": "AllowancesByGranter returns all the grants given by an address\n\n Since: cosmos-sdk 0.46", + "description": "AllowancesByGranter returns all the grants given by an address", "operationId": "Query_AllowancesByGranter", "parameters": [ { @@ -2930,7 +3001,7 @@ { "name": "pagination.reverse", "in": "query", - "description": "reverse is set to true if results are to be returned in the descending order. Since: cosmos-sdk 0.43", + "description": "reverse is set to true if results are to be returned in the descending order.", "schema": { "type": "boolean" } @@ -2991,18 +3062,58 @@ } } }, - "/cosmos/gov/v1/params/{paramsType}": { + "/cosmos/gov/v1/params": { "get": { "tags": [ "Query" ], "description": "Params queries all parameters of the gov module.", - "operationId": "GovV1Params", + "operationId": "Query_Params", "parameters": [ { "name": "paramsType", + "in": "query", + "description": "params_type defines which parameters to query for, can be one of \"voting\", \"tallying\" or \"deposit\". Deprecated: all params are stored in Params.", + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/QueryParamsResponse" + } + } + } + }, + "default": { + "description": "Default error response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Status" + } + } + } + } + } + } + }, + "/cosmos/gov/v1/params/{msgUrl}": { + "get": { + "tags": [ + "Query" + ], + "description": "MessageBasedParams queries the message specific governance params based on a msg url.", + "operationId": "Query_MessageBasedParams", + "parameters": [ + { + "name": "msgUrl", "in": "path", - "description": "params_type defines which parameters to query for, can be one of \"voting\", \"tallying\" or \"deposit\".", "required": true, "schema": { "type": "string" @@ -3015,7 +3126,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/QueryParamsResponse" + "$ref": "#/components/schemas/QueryMessageBasedParamsResponse" } } } @@ -3104,7 +3215,7 @@ { "name": "pagination.reverse", "in": "query", - "description": "reverse is set to true if results are to be returned in the descending order. Since: cosmos-sdk 0.43", + "description": "reverse is set to true if results are to be returned in the descending order.", "schema": { "type": "boolean" } @@ -3233,7 +3344,7 @@ { "name": "pagination.reverse", "in": "query", - "description": "reverse is set to true if results are to be returned in the descending order. Since: cosmos-sdk 0.43", + "description": "reverse is set to true if results are to be returned in the descending order.", "schema": { "type": "boolean" } @@ -3358,6 +3469,49 @@ } } }, + "/cosmos/gov/v1/proposals/{proposalId}/vote_options": { + "get": { + "tags": [ + "Query" + ], + "description": "ProposalVoteOptions queries the valid voting options for a proposal.", + "operationId": "Query_ProposalVoteOptions", + "parameters": [ + { + "name": "proposalId", + "in": "path", + "description": "proposal_id defines the unique id of the proposal.", + "required": true, + "schema": { + "type": "integer", + "format": "uint64" + } + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/QueryProposalVoteOptionsResponse" + } + } + } + }, + "default": { + "description": "Default error response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Status" + } + } + } + } + } + } + }, "/cosmos/gov/v1/proposals/{proposalId}/votes": { "get": { "tags": [ @@ -3414,7 +3568,7 @@ { "name": "pagination.reverse", "in": "query", - "description": "reverse is set to true if results are to be returned in the descending order. Since: cosmos-sdk 0.43", + "description": "reverse is set to true if results are to be returned in the descending order.", "schema": { "type": "boolean" } @@ -3609,7 +3763,7 @@ { "name": "pagination.reverse", "in": "query", - "description": "reverse is set to true if results are to be returned in the descending order. Since: cosmos-sdk 0.43", + "description": "reverse is set to true if results are to be returned in the descending order.", "schema": { "type": "boolean" } @@ -3738,7 +3892,7 @@ { "name": "pagination.reverse", "in": "query", - "description": "reverse is set to true if results are to be returned in the descending order. Since: cosmos-sdk 0.43", + "description": "reverse is set to true if results are to be returned in the descending order.", "schema": { "type": "boolean" } @@ -3919,7 +4073,7 @@ { "name": "pagination.reverse", "in": "query", - "description": "reverse is set to true if results are to be returned in the descending order. Since: cosmos-sdk 0.43", + "description": "reverse is set to true if results are to be returned in the descending order.", "schema": { "type": "boolean" } @@ -3954,7 +4108,7 @@ "tags": [ "Query" ], - "description": "Vote queries voted information based on proposalID, voterAddr.", + "description": "Vote queries voted information based on proposalID, voterAddr.\n Due to how we handle state, this query would error for proposals that has already been finished.", "operationId": "Query_Vote", "parameters": [ { @@ -4100,7 +4254,7 @@ { "name": "pagination.reverse", "in": "query", - "description": "reverse is set to true if results are to be returned in the descending order. Since: cosmos-sdk 0.43", + "description": "reverse is set to true if results are to be returned in the descending order.", "schema": { "type": "boolean" } @@ -4185,7 +4339,7 @@ { "name": "pagination.reverse", "in": "query", - "description": "reverse is set to true if results are to be returned in the descending order. Since: cosmos-sdk 0.43", + "description": "reverse is set to true if results are to be returned in the descending order.", "schema": { "type": "boolean" } @@ -4271,7 +4425,7 @@ { "name": "pagination.reverse", "in": "query", - "description": "reverse is set to true if results are to be returned in the descending order. Since: cosmos-sdk 0.43", + "description": "reverse is set to true if results are to be returned in the descending order.", "schema": { "type": "boolean" } @@ -4348,7 +4502,7 @@ "tags": [ "Query" ], - "description": "Groups queries all groups in state.\n\n Since: cosmos-sdk 0.47.1", + "description": "Groups queries all groups in state.", "operationId": "Query_Groups", "parameters": [ { @@ -4389,7 +4543,7 @@ { "name": "pagination.reverse", "in": "query", - "description": "reverse is set to true if results are to be returned in the descending order. Since: cosmos-sdk 0.43", + "description": "reverse is set to true if results are to be returned in the descending order.", "schema": { "type": "boolean" } @@ -4474,7 +4628,7 @@ { "name": "pagination.reverse", "in": "query", - "description": "reverse is set to true if results are to be returned in the descending order. Since: cosmos-sdk 0.43", + "description": "reverse is set to true if results are to be returned in the descending order.", "schema": { "type": "boolean" } @@ -4559,7 +4713,7 @@ { "name": "pagination.reverse", "in": "query", - "description": "reverse is set to true if results are to be returned in the descending order. Since: cosmos-sdk 0.43", + "description": "reverse is set to true if results are to be returned in the descending order.", "schema": { "type": "boolean" } @@ -4730,7 +4884,7 @@ { "name": "pagination.reverse", "in": "query", - "description": "reverse is set to true if results are to be returned in the descending order. Since: cosmos-sdk 0.43", + "description": "reverse is set to true if results are to be returned in the descending order.", "schema": { "type": "boolean" } @@ -4868,7 +5022,7 @@ { "name": "pagination.reverse", "in": "query", - "description": "reverse is set to true if results are to be returned in the descending order. Since: cosmos-sdk 0.43", + "description": "reverse is set to true if results are to be returned in the descending order.", "schema": { "type": "boolean" } @@ -4953,7 +5107,7 @@ { "name": "pagination.reverse", "in": "query", - "description": "reverse is set to true if results are to be returned in the descending order. Since: cosmos-sdk 0.43", + "description": "reverse is set to true if results are to be returned in the descending order.", "schema": { "type": "boolean" } @@ -5076,6 +5230,55 @@ } } }, + "/cosmos/nft/v1beta1/balance": { + "get": { + "tags": [ + "Query" + ], + "description": "BalanceByQueryString queries the number of NFTs of a given class owned by the owner, same as balanceOf in ERC721", + "operationId": "Query_BalanceByQueryString", + "parameters": [ + { + "name": "classId", + "in": "query", + "description": "class_id associated with the nft", + "schema": { + "type": "string" + } + }, + { + "name": "owner", + "in": "query", + "description": "owner is the owner address of the nft", + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/QueryBalanceByQueryStringResponse" + } + } + } + }, + "default": { + "description": "Default error response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Status" + } + } + } + } + } + } + }, "/cosmos/nft/v1beta1/balance/{owner}/{classId}": { "get": { "tags": [ @@ -5127,6 +5330,47 @@ } } }, + "/cosmos/nft/v1beta1/class": { + "get": { + "tags": [ + "Query" + ], + "description": "Class queries an NFT class based on its id", + "operationId": "Query_ClassByQueryString", + "parameters": [ + { + "name": "classId", + "in": "query", + "description": "class_id associated with the nft", + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/QueryClassByQueryStringResponse" + } + } + } + }, + "default": { + "description": "Default error response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Status" + } + } + } + } + } + } + }, "/cosmos/nft/v1beta1/classes": { "get": { "tags": [ @@ -5173,7 +5417,7 @@ { "name": "pagination.reverse", "in": "query", - "description": "reverse is set to true if results are to be returned in the descending order. Since: cosmos-sdk 0.43", + "description": "reverse is set to true if results are to be returned in the descending order.", "schema": { "type": "boolean" } @@ -5245,6 +5489,55 @@ } } }, + "/cosmos/nft/v1beta1/nft": { + "get": { + "tags": [ + "Query" + ], + "description": "NFTByQueryString queries an NFT based on its class and id.", + "operationId": "Query_NFTByQueryString", + "parameters": [ + { + "name": "classId", + "in": "query", + "description": "class_id associated with the nft", + "schema": { + "type": "string" + } + }, + { + "name": "id", + "in": "query", + "description": "id is a unique identifier of the NFT", + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/QueryNFTByQueryStringResponse" + } + } + } + }, + "default": { + "description": "Default error response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Status" + } + } + } + } + } + } + }, "/cosmos/nft/v1beta1/nfts": { "get": { "tags": [ @@ -5307,7 +5600,7 @@ { "name": "pagination.reverse", "in": "query", - "description": "reverse is set to true if results are to be returned in the descending order. Since: cosmos-sdk 0.43", + "description": "reverse is set to true if results are to be returned in the descending order.", "schema": { "type": "boolean" } @@ -5388,6 +5681,55 @@ } } }, + "/cosmos/nft/v1beta1/owner": { + "get": { + "tags": [ + "Query" + ], + "description": "OwnerByQueryString queries the owner of the NFT based on its class and id, same as ownerOf in ERC721", + "operationId": "Query_OwnerByQueryString", + "parameters": [ + { + "name": "classId", + "in": "query", + "description": "class_id associated with the nft", + "schema": { + "type": "string" + } + }, + { + "name": "id", + "in": "query", + "description": "id is a unique identifier of the NFT", + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/QueryOwnerByQueryStringResponse" + } + } + } + }, + "default": { + "description": "Default error response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Status" + } + } + } + } + } + } + }, "/cosmos/nft/v1beta1/owner/{classId}/{id}": { "get": { "tags": [ @@ -5439,6 +5781,47 @@ } } }, + "/cosmos/nft/v1beta1/supply": { + "get": { + "tags": [ + "Query" + ], + "description": "SupplyByQueryString queries the number of NFTs from the given class, same as totalSupply of ERC721.", + "operationId": "Query_SupplyByQueryString", + "parameters": [ + { + "name": "classId", + "in": "query", + "description": "class_id associated with the nft", + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/QuerySupplyByQueryStringResponse" + } + } + } + }, + "default": { + "description": "Default error response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Status" + } + } + } + } + } + } + }, "/cosmos/nft/v1beta1/supply/{classId}": { "get": { "tags": [ @@ -5481,38 +5864,100 @@ } } }, - "/cosmos/params/v1beta1/params": { + "/cosmos/params/v1beta1/params": { + "get": { + "tags": [ + "Query" + ], + "description": "Params queries a specific parameter of a module, given its subspace and\n key.", + "operationId": "Params", + "parameters": [ + { + "name": "subspace", + "in": "query", + "description": "subspace defines the module to query the parameter for.", + "schema": { + "type": "string" + } + }, + { + "name": "key", + "in": "query", + "description": "key defines the key of the parameter in the subspace.", + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/QueryParamsResponse" + } + } + } + }, + "default": { + "description": "Default error response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Status" + } + } + } + } + } + } + }, + "/cosmos/params/v1beta1/subspaces": { + "get": { + "tags": [ + "Query" + ], + "description": "Subspaces queries for all registered subspaces and all keys for a subspace.", + "operationId": "Query_Subspaces", + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/QuerySubspacesResponse" + } + } + } + }, + "default": { + "description": "Default error response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Status" + } + } + } + } + } + } + }, + "/cosmos/protocolpool/v1/community_pool": { "get": { "tags": [ "Query" ], - "description": "Params queries a specific parameter of a module, given its subspace and\n key.", - "operationId": "Params", - "parameters": [ - { - "name": "subspace", - "in": "query", - "description": "subspace defines the module to query the parameter for.", - "schema": { - "type": "string" - } - }, - { - "name": "key", - "in": "query", - "description": "key defines the key of the parameter in the subspace.", - "schema": { - "type": "string" - } - } - ], + "description": "CommunityPool queries the community pool coins.", + "operationId": "Query_CommunityPool", "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/QueryParamsResponse" + "$ref": "#/components/schemas/QueryCommunityPoolResponse" } } } @@ -5530,20 +5975,31 @@ } } }, - "/cosmos/params/v1beta1/subspaces": { + "/cosmos/protocolpool/v1/unclaimed_budget/{address}": { "get": { "tags": [ "Query" ], - "description": "Subspaces queries for all registered subspaces and all keys for a subspace.\n\n Since: cosmos-sdk 0.46", - "operationId": "Query_Subspaces", + "description": "UnclaimedBudget queries the remaining budget left to be claimed and it gives overall budget allocation view.", + "operationId": "Query_UnclaimedBudget", + "parameters": [ + { + "name": "address", + "in": "path", + "description": "address is the recipient address to query unclaimed budget amount for.", + "required": true, + "schema": { + "type": "string" + } + } + ], "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/QuerySubspacesResponse" + "$ref": "#/components/schemas/QueryUnclaimedBudgetResponse" } } } @@ -5638,7 +6094,7 @@ { "name": "pagination.reverse", "in": "query", - "description": "reverse is set to true if results are to be returned in the descending order. Since: cosmos-sdk 0.43", + "description": "reverse is set to true if results are to be returned in the descending order.", "schema": { "type": "boolean" } @@ -5765,7 +6221,7 @@ { "name": "pagination.reverse", "in": "query", - "description": "reverse is set to true if results are to be returned in the descending order. Since: cosmos-sdk 0.43", + "description": "reverse is set to true if results are to be returned in the descending order.", "schema": { "type": "boolean" } @@ -5866,7 +6322,7 @@ { "name": "pagination.reverse", "in": "query", - "description": "reverse is set to true if results are to be returned in the descending order. Since: cosmos-sdk 0.43", + "description": "reverse is set to true if results are to be returned in the descending order.", "schema": { "type": "boolean" } @@ -5951,7 +6407,7 @@ { "name": "pagination.reverse", "in": "query", - "description": "reverse is set to true if results are to be returned in the descending order. Since: cosmos-sdk 0.43", + "description": "reverse is set to true if results are to be returned in the descending order.", "schema": { "type": "boolean" } @@ -6036,7 +6492,7 @@ { "name": "pagination.reverse", "in": "query", - "description": "reverse is set to true if results are to be returned in the descending order. Since: cosmos-sdk 0.43", + "description": "reverse is set to true if results are to be returned in the descending order.", "schema": { "type": "boolean" } @@ -6276,7 +6732,7 @@ { "name": "pagination.reverse", "in": "query", - "description": "reverse is set to true if results are to be returned in the descending order. Since: cosmos-sdk 0.43", + "description": "reverse is set to true if results are to be returned in the descending order.", "schema": { "type": "boolean" } @@ -6403,7 +6859,7 @@ { "name": "pagination.reverse", "in": "query", - "description": "reverse is set to true if results are to be returned in the descending order. Since: cosmos-sdk 0.43", + "description": "reverse is set to true if results are to be returned in the descending order.", "schema": { "type": "boolean" } @@ -6590,7 +7046,7 @@ { "name": "pagination.reverse", "in": "query", - "description": "reverse is set to true if results are to be returned in the descending order. Since: cosmos-sdk 0.43", + "description": "reverse is set to true if results are to be returned in the descending order.", "schema": { "type": "boolean" } @@ -6625,7 +7081,7 @@ "tags": [ "Service" ], - "description": "TxDecode decodes the transaction.\n\n Since: cosmos-sdk 0.47", + "description": "TxDecode decodes the transaction.", "operationId": "Service_TxDecode", "requestBody": { "content": { @@ -6666,7 +7122,7 @@ "tags": [ "Service" ], - "description": "TxDecodeAmino decodes an Amino transaction from encoded bytes to JSON.\n\n Since: cosmos-sdk 0.47", + "description": "TxDecodeAmino decodes an Amino transaction from encoded bytes to JSON.", "operationId": "Service_TxDecodeAmino", "requestBody": { "content": { @@ -6707,7 +7163,7 @@ "tags": [ "Service" ], - "description": "TxEncode encodes the transaction.\n\n Since: cosmos-sdk 0.47", + "description": "TxEncode encodes the transaction.", "operationId": "Service_TxEncode", "requestBody": { "content": { @@ -6748,7 +7204,7 @@ "tags": [ "Service" ], - "description": "TxEncodeAmino encodes an Amino transaction from JSON to encoded bytes.\n\n Since: cosmos-sdk 0.47", + "description": "TxEncodeAmino encodes an Amino transaction from JSON to encoded bytes.", "operationId": "Service_TxEncodeAmino", "requestBody": { "content": { @@ -6836,7 +7292,7 @@ { "name": "events", "in": "query", - "description": "events is the list of transaction event type. Deprecated post v0.47.x: use query instead, which should contain a valid events query.", + "description": "events is the list of transaction event type. Deprecated: post v0.47.x use query instead, which should contain a valid events query.", "schema": { "type": "array", "items": { @@ -6882,7 +7338,7 @@ { "name": "pagination.reverse", "in": "query", - "description": "reverse is set to true if results are to be returned in the descending order. Since: cosmos-sdk 0.43", + "description": "reverse is set to true if results are to be returned in the descending order.", "schema": { "type": "boolean" } @@ -6916,7 +7372,7 @@ { "name": "query", "in": "query", - "description": "query defines the transaction event query that is proxied to Tendermint's TxSearch RPC method. The query must be valid. Since cosmos-sdk 0.50", + "description": "query defines the transaction event query that is proxied to Tendermint's TxSearch RPC method. The query must be valid.", "schema": { "type": "string" } @@ -6990,7 +7446,7 @@ "tags": [ "Service" ], - "description": "GetBlockWithTxs fetches a block with decoded txs.\n\n Since: cosmos-sdk 0.45.2", + "description": "GetBlockWithTxs fetches a block with decoded txs.", "operationId": "Service_GetBlockWithTxs", "parameters": [ { @@ -7041,7 +7497,7 @@ { "name": "pagination.reverse", "in": "query", - "description": "reverse is set to true if results are to be returned in the descending order. Since: cosmos-sdk 0.43", + "description": "reverse is set to true if results are to be returned in the descending order.", "schema": { "type": "boolean" } @@ -7160,7 +7616,7 @@ "tags": [ "Query" ], - "description": "Returns the account with authority to conduct upgrades\n\n Since: cosmos-sdk 0.46", + "description": "Returns the account with authority to conduct upgrades", "operationId": "Query_Authority", "responses": { "200": { @@ -7222,7 +7678,7 @@ "tags": [ "Query" ], - "description": "ModuleVersions queries the list of module versions from state.\n\n Since: cosmos-sdk 0.43", + "description": "ModuleVersions queries the list of module versions from state.", "operationId": "Query_ModuleVersions", "parameters": [ { @@ -7413,6 +7869,11 @@ } } } + }, + "/cosmos/gov/v1/params/{paramsType}": { + "get": { + "operationId": "GovV1Params" + } } }, "components": { @@ -7424,7 +7885,7 @@ "type": "string" } }, - "description": "AddressBytesToStringResponse is the response type for AddressString rpc method. Since: cosmos-sdk 0.46" + "description": "AddressBytesToStringResponse is the response type for AddressString rpc method." }, "AddressStringToBytesResponse": { "type": "object", @@ -7434,7 +7895,7 @@ "format": "bytes" } }, - "description": "AddressStringToBytesResponse is the response type for AddressBytes rpc method. Since: cosmos-sdk 0.46" + "description": "AddressStringToBytesResponse is the response type for AddressBytes rpc method." }, "BaseAccount": { "type": "object", @@ -7463,7 +7924,7 @@ "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." }, "GoogleProtobufAny": { "type": "object", @@ -7516,7 +7977,7 @@ "type": "string" } }, - "description": "QueryAccountAddressByIDResponse is the response type for AccountAddressByID rpc method Since: cosmos-sdk 0.46.2" + "description": "QueryAccountAddressByIDResponse is the response type for AccountAddressByID rpc method" }, "QueryAccountInfoResponse": { "type": "object", @@ -7525,7 +7986,7 @@ "$ref": "#/components/schemas/BaseAccount" } }, - "description": "QueryAccountInfoResponse is the Query/AccountInfo response type. Since: cosmos-sdk 0.47" + "description": "QueryAccountInfoResponse is the Query/AccountInfo response type." }, "QueryAccountResponse": { "type": "object", @@ -7550,7 +8011,7 @@ "$ref": "#/components/schemas/PageResponse" } }, - "description": "QueryAccountsResponse is the response type for the Query/Accounts RPC method. Since: cosmos-sdk 0.43" + "description": "QueryAccountsResponse is the response type for the Query/Accounts RPC method." }, "QueryModuleAccountByNameResponse": { "type": "object", @@ -7571,7 +8032,7 @@ } } }, - "description": "QueryModuleAccountsResponse is the response type for the Query/ModuleAccounts RPC method. Since: cosmos-sdk 0.46" + "description": "QueryModuleAccountsResponse is the response type for the Query/ModuleAccounts RPC method." }, "QueryParamsResponse": { "type": "object", @@ -7711,7 +8172,7 @@ "$ref": "#/components/schemas/Coin" } }, - "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" + "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." }, "DenomUnit": { "type": "object", @@ -7758,19 +8219,19 @@ }, "name": { "type": "string", - "description": "name defines the name of the token (eg: Cosmos Atom) Since: cosmos-sdk 0.43" + "description": "name defines the name of the token (eg: Cosmos Atom)" }, "symbol": { "type": "string", - "description": "symbol is the token symbol usually shown on exchanges (eg: ATOM). This can be the same as the display. Since: cosmos-sdk 0.43" + "description": "symbol is the token symbol usually shown on exchanges (eg: ATOM). This can be the same as the display." }, "uri": { "type": "string", - "description": "URI to a document (on or off-chain) that contains additional information. Optional. Since: cosmos-sdk 0.46" + "description": "URI to a document (on or off-chain) that contains additional information. Optional." }, "uriHash": { "type": "string", - "description": "URIHash is a sha256 hash of a document pointed by URI. It's used to verify that the document didn't change. Optional. Since: cosmos-sdk 0.46" + "description": "URIHash is a sha256 hash of a document pointed by URI. It's used to verify that the document didn't change. Optional." } }, "description": "Metadata represents a struct that describes a basic token." @@ -7833,7 +8294,7 @@ "$ref": "#/components/schemas/PageResponse" } }, - "description": "QueryDenomOwnersByQueryResponse defines the RPC response of a DenomOwnersByQuery RPC query. Since: cosmos-sdk 0.50.3" + "description": "QueryDenomOwnersByQueryResponse defines the RPC response of a DenomOwnersByQuery RPC query." }, "QueryDenomOwnersResponse": { "type": "object", @@ -7848,7 +8309,7 @@ "$ref": "#/components/schemas/PageResponse" } }, - "description": "QueryDenomOwnersResponse defines the RPC response of a DenomOwners RPC query. Since: cosmos-sdk 0.46" + "description": "QueryDenomOwnersResponse defines the RPC response of a DenomOwners RPC query." }, "QueryDenomsMetadataResponse": { "type": "object", @@ -7879,7 +8340,7 @@ "$ref": "#/components/schemas/PageResponse" } }, - "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." }, "QuerySpendableBalanceByDenomResponse": { "type": "object", @@ -7888,7 +8349,7 @@ "$ref": "#/components/schemas/Coin" } }, - "description": "QuerySpendableBalanceByDenomResponse defines the gRPC response structure for querying an account's spendable balance for a specific denom. Since: cosmos-sdk 0.47" + "description": "QuerySpendableBalanceByDenomResponse defines the gRPC response structure for querying an account's spendable balance for a specific denom." }, "QuerySpendableBalancesResponse": { "type": "object", @@ -7904,7 +8365,7 @@ "$ref": "#/components/schemas/PageResponse" } }, - "description": "QuerySpendableBalancesResponse defines the gRPC response structure for querying an account's spendable balances. Since: cosmos-sdk 0.46" + "description": "QuerySpendableBalancesResponse defines the gRPC response structure for querying an account's spendable balances." }, "QuerySupplyOfResponse": { "type": "object", @@ -7986,7 +8447,7 @@ "format": "bytes" } }, - "description": "StateResponse defines the response structure for the status of a node." + "description": "StatusResponse defines the response structure for the status of a node." }, "ABCIQueryResponse": { "type": "object", @@ -8013,15 +8474,15 @@ "type": "string", "format": "bytes" }, - "proofOps": { - "$ref": "#/components/schemas/ProofOps" - }, "height": { "type": "integer", "format": "int64" }, "codespace": { "type": "string" + }, + "proofOps": { + "$ref": "#/components/schemas/ProofOps" } }, "description": "ABCIQueryResponse defines the response structure for the ABCIQuery gRPC query. Note: This type is a duplicate of the ResponseQuery proto type defined in Tendermint." @@ -8041,7 +8502,8 @@ "lastCommit": { "$ref": "#/components/schemas/Commit" } - } + }, + "description": "Block defines the structure of a block in the CometBFT blockchain." }, "BlockID": { "type": "object", @@ -8054,7 +8516,7 @@ "$ref": "#/components/schemas/PartSetHeader" } }, - "description": "BlockID" + "description": "BlockID defines the unique ID of a block as its hash and its `PartSetHeader`." }, "Commit": { "type": "object", @@ -8157,7 +8619,8 @@ "other": { "$ref": "#/components/schemas/DefaultNodeInfoOther" } - } + }, + "description": "DefaultNodeInfo is a basic node's information sent to other peers during the p2p handshake." }, "DefaultNodeInfoOther": { "type": "object", @@ -8168,7 +8631,8 @@ "rpcAddress": { "type": "string" } - } + }, + "description": "DefaultNodeInfoOther is the misc. application specific data." }, "DuplicateVoteEvidence": { "type": "object", @@ -8203,7 +8667,8 @@ "lightClientAttackEvidence": { "$ref": "#/components/schemas/LightClientAttackEvidence" } - } + }, + "description": "Evidence is a generic type for wrapping evidence of misbehavior by a validator." }, "EvidenceList": { "type": "object", @@ -8214,7 +8679,8 @@ "$ref": "#/components/schemas/Evidence" } } - } + }, + "description": "EvidenceList is a list of evidence." }, "GetBlockByHeightResponse": { "type": "object", @@ -8376,7 +8842,8 @@ "validatorSet": { "$ref": "#/components/schemas/ValidatorSet" } - } + }, + "description": "LightBlock is a combination of SignedHeader and ValidatorSet. It is used by light clients." }, "LightClientAttackEvidence": { "type": "object", @@ -8435,7 +8902,7 @@ "format": "bytes" } }, - "description": "PartsetHeader" + "description": "Header of the parts set for a block." }, "ProofOp": { "type": "object", @@ -8452,7 +8919,7 @@ "format": "bytes" } }, - "description": "ProofOp defines an operation used for calculating Merkle root The data could be arbitrary format, providing nessecary data for example neighbouring node hash" + "description": "ProofOp defines an operation used for calculating Merkle root The data could be arbitrary format, providing necessary data for example neighbouring node hash" }, "ProofOps": { "type": "object", @@ -8481,7 +8948,8 @@ "type": "integer", "format": "uint64" } - } + }, + "description": "ProtocolVersion represents the current p2p protocol version." }, "SignedHeader": { "type": "object", @@ -8492,7 +8960,8 @@ "commit": { "$ref": "#/components/schemas/Commit" } - } + }, + "description": "SignedHeader contains a Header(H) and Commit(H+1) with signatures of validators who signed it." }, "Validator": { "type": "object", @@ -8511,8 +8980,16 @@ "proposerPriority": { "type": "integer", "format": "int64" + }, + "pubKeyBytes": { + "type": "string", + "format": "bytes" + }, + "pubKeyType": { + "type": "string" } - } + }, + "description": "Validator represents a node participating in the consensus protocol." }, "ValidatorSet": { "type": "object", @@ -8530,7 +9007,8 @@ "type": "integer", "format": "int64" } - } + }, + "description": "ValidatorSet defines a set of validators." }, "VersionInfo": { "type": "object", @@ -8560,8 +9038,7 @@ } }, "cosmosSdkVersion": { - "type": "string", - "description": "Since: cosmos-sdk 0.43" + "type": "string" } }, "description": "VersionInfo is the type for the GetNodeInfoResponse message." @@ -8685,27 +9162,27 @@ "properties": { "voteExtensionsEnableHeight": { "type": "integer", - "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": "vote_extensions_enable_height has been deprecated. Instead, use FeatureParams.vote_extensions_enable_height.", "format": "int64" } }, - "description": "ABCIParams configure functionality specific to the Application Blockchain Interface." + "description": "ABCIParams is deprecated and its contents moved to FeatureParams" }, "BlockParams": { "type": "object", "properties": { "maxBytes": { "type": "integer", - "description": "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.", "format": "int64" }, "maxGas": { "type": "integer", - "description": "Max gas per block. Note: must be greater or equal to -1", + "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.", "format": "int64" } }, - "description": "BlockParams contains limits on the block size." + "description": "BlockParams define limits on the block size and gas." }, "ConsensusParams": { "type": "object", @@ -8724,6 +9201,12 @@ }, "abci": { "$ref": "#/components/schemas/ABCIParams" + }, + "synchrony": { + "$ref": "#/components/schemas/SynchronyParams" + }, + "feature": { + "$ref": "#/components/schemas/FeatureParams" } }, "description": "ConsensusParams contains consensus critical parameters that determine the validity of blocks." @@ -8749,7 +9232,7 @@ "properties": { "maxAgeNumBlocks": { "type": "integer", - "description": "Max age of evidence, in blocks. The basic formula for calculating this is: MaxAgeDuration / {average block time}.", + "description": "Maximum age of evidence, in blocks. The recommended formula for calculating it is max_age_duration / {average block time}.", "format": "int64" }, "maxAgeDuration": { @@ -8757,11 +9240,46 @@ }, "maxBytes": { "type": "integer", - "description": "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": "Maximum size in bytes of evidence allowed to be included in a block. It should fall comfortably under the maximum size of a block.", + "format": "int64" + } + }, + "description": "EvidenceParams determine the validity of evidences of Byzantine behavior." + }, + "FeatureParams": { + "type": "object", + "properties": { + "voteExtensionsEnableHeight": { + "$ref": "#/components/schemas/Int64Value" + }, + "pbtsEnableHeight": { + "$ref": "#/components/schemas/Int64Value" + } + }, + "description": "FeatureParams configure the height from which features of CometBFT are enabled." + }, + "Int64Value": { + "type": "object", + "properties": { + "value": { + "type": "integer", + "description": "The int64 value.", "format": "int64" } }, - "description": "EvidenceParams determine how we handle evidence of malfeasance." + "description": "Wrapper message for `int64`. The JSON representation for `Int64Value` is JSON string." + }, + "SynchronyParams": { + "type": "object", + "properties": { + "precision": { + "$ref": "#/components/schemas/Duration" + }, + "messageDelay": { + "$ref": "#/components/schemas/Duration" + } + }, + "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" }, "ValidatorParams": { "type": "object", @@ -8773,17 +9291,18 @@ } } }, - "description": "ValidatorParams restrict the public key types validators can use. NOTE: uses ABCI pubkey naming, not Amino names." + "description": "ValidatorParams restrict the public key types validators can use. NOTE: uses ABCI public keys naming, not Amino names." }, "VersionParams": { "type": "object", "properties": { "app": { "type": "integer", + "description": "The ABCI application version. It was named app_version in CometBFT 0.34.", "format": "uint64" } }, - "description": "VersionParams contains the ABCI application version." + "description": "VersionParams contain the version of specific components of CometBFT." }, "DecCoin": { "type": "object", @@ -8979,6 +9498,63 @@ }, "description": "ValidatorSlashEvent represents a validator slash event. Height is implicit within the store key. This is needed to calculate appropriate amount of staking tokens for delegations which are withdrawn after a slash has occurred." }, + "EpochInfo": { + "type": "object", + "properties": { + "identifier": { + "type": "string", + "description": "identifier is a unique reference to this particular timer." + }, + "startTime": { + "type": "string", + "description": "start_time is the time at which the timer first ever ticks. If start_time is in the future, the epoch will not begin until the start time.", + "format": "date-time" + }, + "duration": { + "$ref": "#/components/schemas/Duration" + }, + "currentEpoch": { + "type": "integer", + "description": "current_epoch is the current epoch number, or in other words, how many times has the timer 'ticked'. The first tick (current_epoch=1) is defined as the first block whose blocktime is greater than the EpochInfo start_time.", + "format": "int64" + }, + "currentEpochStartTime": { + "type": "string", + "description": "current_epoch_start_time describes the start time of the current timer interval. The interval is (current_epoch_start_time, current_epoch_start_time + duration] When the timer ticks, this is set to current_epoch_start_time = last_epoch_start_time + duration only one timer tick for a given identifier can occur per block. NOTE! The current_epoch_start_time may diverge significantly from the wall-clock time the epoch began at. Wall-clock time of epoch start may be >> current_epoch_start_time. Suppose current_epoch_start_time = 10, duration = 5. Suppose the chain goes offline at t=14, and comes back online at t=30, and produces blocks at every successive time. (t=31, 32, etc.) * The t=30 block will start the epoch for (10, 15] * The t=31 block will start the epoch for (15, 20] * The t=32 block will start the epoch for (20, 25] * The t=33 block will start the epoch for (25, 30] * The t=34 block will start the epoch for (30, 35] * The **t=36** block will start the epoch for (35, 40]", + "format": "date-time" + }, + "epochCountingStarted": { + "type": "boolean", + "description": "epoch_counting_started is a boolean, that indicates whether this epoch timer has began yet." + }, + "currentEpochStartHeight": { + "type": "integer", + "description": "current_epoch_start_height is the block height at which the current epoch started. (The block height at which the timer last ticked)", + "format": "int64" + } + }, + "description": "EpochInfo is a struct that describes the data going into a timer defined by the x/epochs module." + }, + "QueryCurrentEpochResponse": { + "type": "object", + "properties": { + "currentEpoch": { + "type": "integer", + "format": "int64" + } + } + }, + "QueryEpochsInfoResponse": { + "type": "object", + "properties": { + "epochs": { + "type": "array", + "items": { + "$ref": "#/components/schemas/EpochInfo" + } + } + } + }, "QueryAllEvidenceResponse": { "type": "object", "properties": { @@ -9027,7 +9603,7 @@ "$ref": "#/components/schemas/PageResponse" } }, - "description": "QueryAllowancesByGranterResponse is the response type for the Query/AllowancesByGranter RPC method. Since: cosmos-sdk 0.46" + "description": "QueryAllowancesByGranterResponse is the response type for the Query/AllowancesByGranter RPC method." }, "QueryAllowancesResponse": { "type": "object", @@ -9083,6 +9659,31 @@ }, "description": "DepositParams defines the params for deposits on governance proposals." }, + "MessageBasedParams": { + "type": "object", + "properties": { + "votingPeriod": { + "$ref": "#/components/schemas/Duration" + }, + "quorum": { + "type": "string", + "description": "Minimum percentage of total stake needed to vote for a result to be considered valid." + }, + "yesQuorum": { + "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." + }, + "vetoThreshold": { + "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." + }, "Proposal": { "type": "object", "properties": { @@ -9148,15 +9749,41 @@ }, "title": { "type": "string", - "description": "title is the title of the proposal Since: cosmos-sdk 0.47" + "description": "title is the title of the proposal" }, "summary": { "type": "string", - "description": "summary is a short summary of the proposal Since: cosmos-sdk 0.47" + "description": "summary is a short summary of the proposal" } }, "description": "Proposal defines a group proposal. Any member of a group can submit a proposal for a group policy to decide upon. A proposal consists of a set of `sdk.Msg`s that will be executed if the proposal passes as well as some optional metadata associated with the proposal." }, + "ProposalVoteOptions": { + "type": "object", + "properties": { + "optionOne": { + "type": "string", + "description": "option_one is the first option of the proposal" + }, + "optionTwo": { + "type": "string", + "description": "option_two is the second option of the proposal" + }, + "optionThree": { + "type": "string", + "description": "option_three is the third option of the proposal" + }, + "optionFour": { + "type": "string", + "description": "option_four is the fourth option of the proposal" + }, + "optionSpam": { + "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." + }, "QueryConstitutionResponse": { "type": "object", "properties": { @@ -9191,6 +9818,15 @@ }, "description": "QueryDepositsResponse is the response type for the Query/Deposits RPC method." }, + "QueryMessageBasedParamsResponse": { + "type": "object", + "properties": { + "params": { + "$ref": "#/components/schemas/MessageBasedParams" + } + }, + "description": "QueryMessageBasedParamsResponse is the response for the Query/MessageBasedParams RPC method." + }, "QueryProposalResponse": { "type": "object", "properties": { @@ -9200,6 +9836,15 @@ }, "description": "QueryProposalResponse is the Query/Proposal response type." }, + "QueryProposalVoteOptionsResponse": { + "type": "object", + "properties": { + "voteOptions": { + "$ref": "#/components/schemas/ProposalVoteOptions" + } + }, + "description": "QueryProposalVoteOptionsResponse is the response type for the Query/ProposalVoteOptions RPC method." + }, "QueryProposalsResponse": { "type": "object", "properties": { @@ -9315,7 +9960,7 @@ "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." }, "GroupInfo": { "type": "object", @@ -9535,7 +10180,7 @@ "$ref": "#/components/schemas/PageResponse" } }, - "description": "QueryGroupsResponse is the Query/Groups response type. Since: cosmos-sdk 0.47.1" + "description": "QueryGroupsResponse is the Query/Groups response type." }, "QueryProposalsByGroupPolicyResponse": { "type": "object", @@ -9674,6 +10319,26 @@ }, "description": "NFT defines the NFT." }, + "QueryBalanceByQueryStringResponse": { + "type": "object", + "properties": { + "amount": { + "type": "integer", + "description": "amount is the number of all NFTs of a given class owned by the owner", + "format": "uint64" + } + }, + "description": "QueryBalanceByQueryStringResponse is the response type for the Query/Balance RPC method" + }, + "QueryClassByQueryStringResponse": { + "type": "object", + "properties": { + "class": { + "$ref": "#/components/schemas/Class" + } + }, + "description": "QueryClassByQueryStringResponse is the response type for the Query/Class RPC method" + }, "QueryClassResponse": { "type": "object", "properties": { @@ -9699,6 +10364,15 @@ }, "description": "QueryClassesResponse is the response type for the Query/Classes RPC method" }, + "QueryNFTByQueryStringResponse": { + "type": "object", + "properties": { + "nft": { + "$ref": "#/components/schemas/NFT" + } + }, + "description": "QueryNFTByQueryStringResponse is the response type for the Query/NFT RPC method" + }, "QueryNFTResponse": { "type": "object", "properties": { @@ -9724,6 +10398,16 @@ }, "description": "QueryNFTsResponse is the response type for the Query/NFTs RPC methods" }, + "QueryOwnerByQueryStringResponse": { + "type": "object", + "properties": { + "owner": { + "type": "string", + "description": "owner is the owner address of the nft" + } + }, + "description": "QueryOwnerByQueryStringResponse is the response type for the Query/Owner RPC method" + }, "QueryOwnerResponse": { "type": "object", "properties": { @@ -9734,6 +10418,17 @@ }, "description": "QueryOwnerResponse is the response type for the Query/Owner RPC method" }, + "QuerySupplyByQueryStringResponse": { + "type": "object", + "properties": { + "amount": { + "type": "integer", + "description": "amount is the number of all NFTs from the given class", + "format": "uint64" + } + }, + "description": "QuerySupplyByQueryStringResponse is the response type for the Query/Supply RPC method" + }, "QuerySupplyResponse": { "type": "object", "properties": { @@ -9770,7 +10465,7 @@ } } }, - "description": "QuerySubspacesResponse defines the response types for querying for all registered subspaces and all keys for a subspace. Since: cosmos-sdk 0.46" + "description": "QuerySubspacesResponse defines the response types for querying for all registered subspaces and all keys for a subspace." }, "Subspace": { "type": "object", @@ -9785,7 +10480,32 @@ } } }, - "description": "Subspace defines a parameter subspace name and all the keys that exist for the subspace. Since: cosmos-sdk 0.46" + "description": "Subspace defines a parameter subspace name and all the keys that exist for the subspace." + }, + "QueryUnclaimedBudgetResponse": { + "type": "object", + "properties": { + "claimedAmount": { + "$ref": "#/components/schemas/Coin" + }, + "unclaimedAmount": { + "$ref": "#/components/schemas/Coin" + }, + "nextClaimFrom": { + "type": "string", + "description": "next_claim_from is the next starting claim time for fund distribution. It represents the time when we can claim funds after the period time interval has passed.", + "format": "date-time" + }, + "period": { + "$ref": "#/components/schemas/Duration" + }, + "tranchesLeft": { + "type": "integer", + "description": "tranches_left is the number of tranches left for the amount to be distributed", + "format": "uint64" + } + }, + "description": "QueryUnclaimedBudgetResponse is the response type for the Query/UnclaimedBudget RPC method." }, "QuerySigningInfoResponse": { "type": "object", @@ -9825,7 +10545,7 @@ }, "indexOffset": { "type": "integer", - "description": "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 signed_blocks_window param determines the index in the missed block bitmap.", + "description": "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 signed_blocks_window param determines the index in the missed block bitmap.", "format": "int64" }, "jailedUntil": { @@ -9913,12 +10633,16 @@ "type": "string", "format": "bytes" }, + "bls12381": { + "type": "string", + "format": "bytes" + }, "bn254": { "type": "string", "format": "bytes" } }, - "description": "PublicKey defines the keys available for use with Validators" + "description": "PublicKey is a ED25519 or a secp256k1 public key." }, "QueryDelegationResponse": { "type": "object", @@ -10057,8 +10781,14 @@ "type": "array", "items": { "$ref": "#/components/schemas/Validator" + } + }, + "validatorInfo": { + "type": "array", + "items": { + "$ref": "#/components/schemas/ValidatorInfo" }, - "description": "validators contains all the queried validators." + "description": "validator_info contains additional information for each validator. The order of the elements in this list corresponds to the order of the elements in the validators list. For example, if you want the ValidatorInfo for the third validator in the validators list, you should look at the third element in the validator_info list." }, "pagination": { "$ref": "#/components/schemas/PageResponse" @@ -10207,6 +10937,16 @@ }, "description": "UnbondingDelegationEntry defines an unbonding object with relevant metadata." }, + "ValidatorInfo": { + "type": "object", + "properties": { + "consensusAddress": { + "type": "string", + "description": "consensus_address is the consensus address of the validator." + } + }, + "description": "ValidatorInfo contains the validator's address and public key." + }, "ABCIMessageLog": { "type": "object", "properties": { @@ -10309,7 +11049,7 @@ } } }, - "description": "Event allows application developers to attach additional information to ResponseFinalizeBlock and ResponseCheckTx. Later, transactions may be queried using these events." + "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." }, "EventAttribute": { "type": "object", @@ -10350,7 +11090,7 @@ "description": "if set, the fee payer (either the first signer or the value of the payer field) requests that a fee grant be used to pay fees instead of the fee payer's own balance. If an appropriate fee grant does not exist or the chain does not support fee grants, this will fail" } }, - "description": "Fee includes the amount of coins paid in fees and the maximum gas to be used by the transaction. The ratio yields an effective \"gasprice\", which must be above some miminum to be accepted into the mempool." + "description": "Fee includes the amount of coins paid in fees and the maximum gas to be used by the transaction. The ratio yields an effective \"gasprice\", which must be above some minimum to be accepted into the mempool." }, "GasInfo": { "type": "object", @@ -10388,7 +11128,7 @@ "$ref": "#/components/schemas/PageResponse" } }, - "description": "GetBlockWithTxsResponse is the response type for the Service.GetBlockWithTxs method. Since: cosmos-sdk 0.45.2" + "description": "GetBlockWithTxsResponse is the response type for the Service.GetBlockWithTxs method." }, "GetTxResponse": { "type": "object", @@ -10493,7 +11233,7 @@ "items": { "$ref": "#/components/schemas/GoogleProtobufAny" }, - "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." @@ -10523,7 +11263,7 @@ }, "txBytes": { "type": "string", - "description": "tx_bytes is the raw transaction. Since: cosmos-sdk 0.43", + "description": "tx_bytes is the raw transaction.", "format": "bytes" } }, @@ -10571,7 +11311,7 @@ "description": "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." }, "Tx": { "type": "object", @@ -10609,9 +11349,18 @@ }, "timeoutHeight": { "type": "integer", - "description": "timeout is the block height after which this transaction will not be processed by the chain", + "description": "timeout_height is the block height after which this transaction will not be processed by the chain.", "format": "uint64" }, + "unordered": { + "type": "boolean", + "description": "unordered, when set to true, indicates that the transaction signer(s) intend for the transaction to be evaluated and executed in an un-ordered fashion. Specifically, the account's nonce will NOT be checked or incremented, which allows for fire-and-forget as well as concurrent transaction execution. Note, when set to true, the existing 'timeout_height' value must be set and will be used to correspond to a time_stamp in which the transaction is deemed valid." + }, + "timeoutTimestamp": { + "type": "string", + "description": "timeout_timestamp is the block time after which this transaction will not be processed by the chain. Note, if unordered=true this value MUST be set and will act as a short-lived TTL in which the transaction is deemed valid and kept in memory to prevent duplicates.", + "format": "date-time" + }, "extensionOptions": { "type": "array", "items": { @@ -10637,7 +11386,7 @@ "format": "bytes" } }, - "description": "TxDecodeAminoRequest is the request type for the Service.TxDecodeAmino RPC method. Since: cosmos-sdk 0.47" + "description": "TxDecodeAminoRequest is the request type for the Service.TxDecodeAmino RPC method." }, "TxDecodeAminoResponse": { "type": "object", @@ -10646,7 +11395,7 @@ "type": "string" } }, - "description": "TxDecodeAminoResponse is the response type for the Service.TxDecodeAmino RPC method. Since: cosmos-sdk 0.47" + "description": "TxDecodeAminoResponse is the response type for the Service.TxDecodeAmino RPC method." }, "TxDecodeRequest": { "type": "object", @@ -10657,7 +11406,7 @@ "format": "bytes" } }, - "description": "TxDecodeRequest is the request type for the Service.TxDecode RPC method. Since: cosmos-sdk 0.47" + "description": "TxDecodeRequest is the request type for the Service.TxDecode RPC method." }, "TxDecodeResponse": { "type": "object", @@ -10666,7 +11415,7 @@ "$ref": "#/components/schemas/Tx" } }, - "description": "TxDecodeResponse is the response type for the Service.TxDecode method. Since: cosmos-sdk 0.47" + "description": "TxDecodeResponse is the response type for the Service.TxDecode method." }, "TxEncodeAminoRequest": { "type": "object", @@ -10675,7 +11424,7 @@ "type": "string" } }, - "description": "TxEncodeAminoRequest is the request type for the Service.TxEncodeAmino RPC method. Since: cosmos-sdk 0.47" + "description": "TxEncodeAminoRequest is the request type for the Service.TxEncodeAmino RPC method." }, "TxEncodeAminoResponse": { "type": "object", @@ -10685,7 +11434,7 @@ "format": "bytes" } }, - "description": "TxEncodeAminoResponse is the response type for the Service.TxEncodeAmino RPC method. Since: cosmos-sdk 0.47" + "description": "TxEncodeAminoResponse is the response type for the Service.TxEncodeAmino RPC method." }, "TxEncodeRequest": { "type": "object", @@ -10694,7 +11443,7 @@ "$ref": "#/components/schemas/Tx" } }, - "description": "TxEncodeRequest is the request type for the Service.TxEncode RPC method. Since: cosmos-sdk 0.47" + "description": "TxEncodeRequest is the request type for the Service.TxEncode RPC method." }, "TxEncodeResponse": { "type": "object", @@ -10705,7 +11454,7 @@ "format": "bytes" } }, - "description": "TxEncodeResponse is the response type for the Service.TxEncode method. Since: cosmos-sdk 0.47" + "description": "TxEncodeResponse is the response type for the Service.TxEncode method." }, "TxResponse": { "type": "object", @@ -10769,7 +11518,7 @@ "items": { "$ref": "#/components/schemas/Event" }, - "description": "Events defines all the events emitted by processing a transaction. Note, these events include those emitted by processing all the messages and those emitted from the ante. Whereas Logs contains the events, with additional metadata, emitted only by processing the messages. Since: cosmos-sdk 0.42.11, 0.44.5, 0.45" + "description": "Events defines all the events emitted by processing a transaction. Note, these events include those emitted by processing all the messages and those emitted from the ante. Whereas Logs contains the events, with additional metadata, emitted only by processing the messages." } }, "description": "TxResponse defines a structure containing relevant tx data and metadata. The tags are stringified and the log is JSON decoded." @@ -10787,7 +11536,7 @@ "format": "uint64" } }, - "description": "ModuleVersion specifies a module and its consensus version. Since: cosmos-sdk 0.43" + "description": "ModuleVersion specifies a module and its consensus version." }, "Plan": { "type": "object", @@ -10834,7 +11583,7 @@ "type": "string" } }, - "description": "QueryAuthorityResponse is the response type for Query/Authority Since: cosmos-sdk 0.46" + "description": "QueryAuthorityResponse is the response type for Query/Authority" }, "QueryCurrentPlanResponse": { "type": "object", @@ -10856,14 +11605,13 @@ "description": "module_versions is a list of module names with their consensus versions." } }, - "description": "QueryModuleVersionsResponse is the response type for the Query/ModuleVersions RPC method. Since: cosmos-sdk 0.43" + "description": "QueryModuleVersionsResponse is the response type for the Query/ModuleVersions RPC method." }, "QueryUpgradedConsensusStateResponse": { "type": "object", "properties": { "upgradedConsensusState": { "type": "string", - "description": "Since: cosmos-sdk 0.43", "format": "bytes" } }, diff --git a/uniond/proto.nix b/uniond/proto.nix index cb68baafec..95082305dc 100644 --- a/uniond/proto.nix +++ b/uniond/proto.nix @@ -18,26 +18,13 @@ _: { { packages = let - grpc-gateway = pkgs.buildGoModule { - pname = "grpc-gateway"; - version = "1.16.0"; - src = pkgs.fetchFromGitHub { - owner = "grpc-ecosystem"; - repo = "grpc-gateway"; - rev = "v1.16.0"; - sha256 = "sha256-jJWqkMEBAJq50KaXccVpmgx/hwTdKgTtNkz8/xYO+Dc="; - }; - - vendorHash = "sha256-jVOb2uHjPley+K41pV+iMPNx67jtb75Rb/ENhw+ZMoM="; - }; - cosmos-proto = pkgs.buildGoModule { pname = "cosmos-proto"; version = "1.0.0"; src = pkgs.fetchFromGitHub { owner = "cosmos"; repo = "cosmos-proto"; - rev = "v1.0.0-beta.3"; + rev = "v1.0.0-beta.5"; sha256 = "sha256-kFm1ChSmm5pU9oJqKmWq4KfO/hxgxzvcSzr66oTulos="; }; doCheck = false; @@ -51,7 +38,7 @@ _: { src = pkgs.fetchFromGitHub { owner = "cosmos"; repo = "gogoproto"; - rev = "v1.4.7"; + rev = "34f37065b54523d08d7b637c78333d444f350e21"; sha256 = "sha256-oaGwDFbz/xgL7hDtvdh/mIcRIGBdp+/xuKeuBE2ZpqY="; }; nativeBuildInputs = with pkgs; [ protobuf ]; @@ -73,13 +60,16 @@ _: { pkgs.tree cosmos-proto gogoproto - grpc-gateway ]; buildPhase = '' mkdir $out mkdir $out/openapi + mkdir -p cosmos-sdk/proto/cosmos + cp --no-preserve=mode -RL ${proto.cosmossdk}/proto/* ./cosmos-sdk/proto + cp --no-preserve=mode -RL ${proto.cosmossdk}/x/*/proto/cosmos/* ./cosmos-sdk/proto/cosmos/ + find ${proto.uniond} -type f -regex ".*proto" | \ while read -r file; do relpath="$(sed 's#/nix/store/.*-uniond/proto##' <<< $file)" @@ -89,21 +79,18 @@ _: { -I"${proto.uniond}" \ -I"${proto.gogoproto}" \ -I"${proto.googleapis}" \ - -I"${proto.cosmossdk}/proto" \ + -I"$(pwd)/cosmos-sdk/proto" \ -I"${proto.cosmosproto}/proto" \ -I"${proto.ibc-go}/proto" \ -I"${proto.ics23}/proto" \ - --grpc-gateway_out $out \ - --grpc-gateway_opt=logtostderr=true,allow_colon_final_segments=true \ + -I"${proto.cometbls}/proto" \ --gocosmos_out $out \ --gocosmos_opt=plugins=interfacetype+grpc,Mgoogle/protobuf/any.proto=github.com/cosmos/cosmos-sdk/codec/types,Mgoogle/protobuf/duration.proto=time \ --openapi_out=$out/openapi$relpath \ "$file" + echo "Done generating for $file" done - mkdir -p cosmos-sdk/proto - cp --no-preserve=mode -RL ${proto.cosmossdk}/proto/* cosmos-sdk/proto - echo "Generating Cosmos SDK OpenAPI" echo "$LINENO" find ${proto.cosmossdk}/proto -type f -regex '.*proto' | \ @@ -149,6 +136,7 @@ _: { -I"${proto.googleapis}" \ -I"$(pwd)/cosmos-sdk/proto" \ -I"${proto.cosmosproto}/proto" \ + -I"${proto.cometbls}/proto" \ --openapi_out=$out/openapi$query_file \ "$query_file" fi @@ -177,7 +165,6 @@ _: { gnused ]) ++ [ - grpc-gateway cosmos-proto gogoproto ]; diff --git a/uniond/proto/union/ibc/lightclients/cosmosincosmos/v1/cosmosincosmos.proto b/uniond/proto/union/ibc/lightclients/cosmosincosmos/v1/cosmosincosmos.proto index 52e15ba3df..d9d3579e17 100644 --- a/uniond/proto/union/ibc/lightclients/cosmosincosmos/v1/cosmosincosmos.proto +++ b/uniond/proto/union/ibc/lightclients/cosmosincosmos/v1/cosmosincosmos.proto @@ -30,8 +30,8 @@ message Header { .ibc.core.client.v1.Height l1_height = 1 [(gogoproto.nullable) = false]; .ibc.core.client.v1.Height l2_height = 2 [(gogoproto.nullable) = false]; // Eth abi encoded ICS23 MerkleProof - bytes l2_inclusion_proof = 3 [(gogoproto.nullable) = false]; + bytes l2_inclusion_proof = 3; // Proto encoded tendermint ConsensusState // Optimize: technically extractable from the merkleproof as it must be an inclusion proof. - bytes l2_consensus_state = 4 [(gogoproto.nullable) = false]; + bytes l2_consensus_state = 4; }