From 8e069b234d29f951086df507784cdaefa67ef2d2 Mon Sep 17 00:00:00 2001 From: fadeev Date: Wed, 20 Dec 2023 00:05:30 +0000 Subject: [PATCH] "docs: update module and OpenAPI specs from zeta-chain/node" --- .../modules/crosschain/messages.md | 59 +- .../modules/emissions/overview.md | 2 +- .../architecture/modules/fungible/messages.md | 14 +- .../zetacored/zetacored_export.md | 2 +- .../architecture/zetacored/zetacored_gentx.md | 2 +- docs/architecture/zetacored/zetacored_keys.md | 4 +- .../zetacored/zetacored_keys_add.md | 2 +- .../zetacored/zetacored_query_crosschain.md | 7 +- ...d_query_crosschain_get-zeta-accounting.md} | 8 +- ...ored_query_crosschain_list-pending-cctx.md | 2 +- .../zetacored/zetacored_query_fungible.md | 1 + .../zetacored_query_fungible_code-hash.md | 33 + .../zetacored/zetacored_query_observer.md | 7 + ...ery_observer_get-historical-tss-address.md | 33 + ...tacored_query_observer_get-tss-address.md} | 6 +- ...cored_query_observer_list-chain-nonces.md} | 6 +- ...red_query_observer_list-pending-nonces.md} | 6 +- ...acored_query_observer_list-tss-history.md} | 6 +- ...cored_query_observer_show-chain-nonces.md} | 6 +- .../zetacored_query_observer_show-tss.md | 33 + .../zetacored/zetacored_tx_crosschain.md | 1 - .../zetacored/zetacored_tx_fungible.md | 3 + ...ed_tx_fungible_deploy-system-contracts.md} | 10 +- ...ed_tx_fungible_update-contract-bytecode.md | 52 + ...ored_tx_fungible_update-system-contract.md | 52 + static/data/openapi.swagger.yaml | 951 +++++++++++------- 26 files changed, 873 insertions(+), 435 deletions(-) rename docs/architecture/zetacored/{zetacored_query_crosschain_show-tss.md => zetacored_query_crosschain_get-zeta-accounting.md} (84%) create mode 100644 docs/architecture/zetacored/zetacored_query_fungible_code-hash.md create mode 100644 docs/architecture/zetacored/zetacored_query_observer_get-historical-tss-address.md rename docs/architecture/zetacored/{zetacored_query_crosschain_get-tss-address.md => zetacored_query_observer_get-tss-address.md} (81%) rename docs/architecture/zetacored/{zetacored_query_crosschain_list-chain-nonces.md => zetacored_query_observer_list-chain-nonces.md} (87%) rename docs/architecture/zetacored/{zetacored_query_crosschain_list-pending-nonces.md => zetacored_query_observer_list-pending-nonces.md} (81%) rename docs/architecture/zetacored/{zetacored_query_crosschain_list-tss-history.md => zetacored_query_observer_list-tss-history.md} (82%) rename docs/architecture/zetacored/{zetacored_query_crosschain_show-chain-nonces.md => zetacored_query_observer_show-chain-nonces.md} (81%) create mode 100644 docs/architecture/zetacored/zetacored_query_observer_show-tss.md rename docs/architecture/zetacored/{zetacored_tx_crosschain_nonce-voter.md => zetacored_tx_fungible_deploy-system-contracts.md} (91%) create mode 100644 docs/architecture/zetacored/zetacored_tx_fungible_update-contract-bytecode.md create mode 100644 docs/architecture/zetacored/zetacored_tx_fungible_update-system-contract.md diff --git a/docs/architecture/modules/crosschain/messages.md b/docs/architecture/modules/crosschain/messages.md index 6c65cf80..9cc99381 100644 --- a/docs/architecture/modules/crosschain/messages.md +++ b/docs/architecture/modules/crosschain/messages.md @@ -20,6 +20,7 @@ message MsgAddToOutTxTracker { ## MsgAddToInTxTracker +AddToInTxTracker adds a new record to the inbound transaction tracker. TODO https://github.com/zeta-chain/node/issues/1269 ```proto @@ -47,31 +48,9 @@ message MsgRemoveFromOutTxTracker { } ``` -## MsgCreateTSSVoter - -CreateTSSVoter votes on creating a TSS key and recording the information about it (public -key, participant and operator addresses, finalized and keygen heights). - -If the vote passes, the information about the TSS key is recorded on chain -and the status of the keygen is set to "success". - -Fails if the keygen does not exist, the keygen has been already -completed, or the keygen has failed. - -Only node accounts are authorized to broadcast this message. - -```proto -message MsgCreateTSSVoter { - string creator = 1; - string tss_pubkey = 2; - int64 keyGenZetaHeight = 3; - common.ReceiveStatus status = 4; -} -``` - ## MsgGasPriceVoter -Submit information about the connected chain's gas price at a specific block +GasPriceVoter submits information about the connected chain's gas price at a specific block height. Gas price submitted by each validator is recorded separately and a median index is updated. @@ -87,18 +66,6 @@ message MsgGasPriceVoter { } ``` -## MsgNonceVoter - -Deprecated. - -```proto -message MsgNonceVoter { - string creator = 1; - int64 chain_id = 2; - uint64 nonce = 3; -} -``` - ## MsgVoteOnObservedOutboundTx VoteOnObservedOutboundTx casts a vote on an outbound transaction observed on a connected chain (after @@ -259,3 +226,25 @@ message MsgMigrateTssFunds { } ``` +## MsgCreateTSSVoter + +CreateTSSVoter votes on creating a TSS key and recording the information about it (public +key, participant and operator addresses, finalized and keygen heights). + +If the vote passes, the information about the TSS key is recorded on chain +and the status of the keygen is set to "success". + +Fails if the keygen does not exist, the keygen has been already +completed, or the keygen has failed. + +Only node accounts are authorized to broadcast this message. + +```proto +message MsgCreateTSSVoter { + string creator = 1; + string tss_pubkey = 2; + int64 keyGenZetaHeight = 3; + common.ReceiveStatus status = 4; +} +``` + diff --git a/docs/architecture/modules/emissions/overview.md b/docs/architecture/modules/emissions/overview.md index fce54ba1..7a503d88 100644 --- a/docs/architecture/modules/emissions/overview.md +++ b/docs/architecture/modules/emissions/overview.md @@ -6,7 +6,7 @@ sidebar_position: 1 The `emissions` module is responsible for orchestrating rewards distribution for observers, validators and TSS signers. Currently, it only distributes rewards to -validators for every block. The undistributed amount for TSS and observers is stored +validators every block. The undistributed amount for TSS and observers is stored in their respective pools. The distribution of rewards is implemented in the begin blocker. diff --git a/docs/architecture/modules/fungible/messages.md b/docs/architecture/modules/fungible/messages.md index c64ff5a7..7e77e642 100644 --- a/docs/architecture/modules/fungible/messages.md +++ b/docs/architecture/modules/fungible/messages.md @@ -1,5 +1,15 @@ # Messages +## MsgDeploySystemContracts + +DeploySystemContracts deploy new instances of the system contracts + +```proto +message MsgDeploySystemContracts { + string creator = 1; +} +``` + ## MsgDeployFungibleCoinZRC20 DeployFungibleCoinZRC20 deploys a fungible coin from a connected chains as a ZRC20 on ZetaChain. @@ -67,7 +77,7 @@ the new contract can add new variable but cannot remove any existing variable message MsgUpdateContractBytecode { string creator = 1; string contract_address = 2; - string new_bytecode_address = 3; + string new_code_hash = 3; } ``` @@ -85,7 +95,7 @@ message MsgUpdateZRC20WithdrawFee { ## MsgUpdateZRC20PausedStatus UpdateZRC20PausedStatus updates the paused status of a ZRC20 -The list of ZRC20s is either paused or unpaused +The list of ZRC20s are either paused or unpaused ```proto message MsgUpdateZRC20PausedStatus { diff --git a/docs/architecture/zetacored/zetacored_export.md b/docs/architecture/zetacored/zetacored_export.md index 313a930b..a737712f 100644 --- a/docs/architecture/zetacored/zetacored_export.md +++ b/docs/architecture/zetacored/zetacored_export.md @@ -9,7 +9,7 @@ zetacored export [flags] ### Options ``` - --for-zero-height Export state to start at height zero (perform preprocessing) + --for-zero-height Export state to start at height zero (perform preproccessing) --height int Export state from a particular height (-1 means latest height) (default -1) -h, --help help for export --home string The application home directory diff --git a/docs/architecture/zetacored/zetacored_gentx.md b/docs/architecture/zetacored/zetacored_gentx.md index 5126d04b..fe1f09c6 100644 --- a/docs/architecture/zetacored/zetacored_gentx.md +++ b/docs/architecture/zetacored/zetacored_gentx.md @@ -51,7 +51,7 @@ zetacored gentx [key_name] [amount] [flags] --gas string gas limit to set per-transaction; set to "auto" to calculate sufficient gas automatically. Note: "auto" option doesn't always report accurate results. Set a valid coin value to adjust the result. Can be used instead of "fees". (default 200000) --gas-adjustment float adjustment factor to be multiplied against the estimate returned by the tx simulation; if the gas limit is set manually this flag is ignored (default 1) --gas-prices string Gas prices in decimal format to determine the transaction fee (e.g. 0.1uatom) - --generate-only Build an unsigned transaction and write it to STDOUT (when enabled, the local Keybase is only accessed when providing a key name) + --generate-only Build an unsigned transaction and write it to STDOUT (when enabled, the local Keybase only accessed when providing a key name) -h, --help help for gentx --home string The application home directory --identity string The (optional) identity signature (ex. UPort or Keybase) diff --git a/docs/architecture/zetacored/zetacored_keys.md b/docs/architecture/zetacored/zetacored_keys.md index b6399c32..f1d11ef2 100644 --- a/docs/architecture/zetacored/zetacored_keys.md +++ b/docs/architecture/zetacored/zetacored_keys.md @@ -6,7 +6,7 @@ Manage your application's keys Keyring management commands. These keys may be in any format supported by the Tendermint crypto library and can be used by light-clients, full nodes, or any other application -that needs to be signed with a private key. +that needs to sign with a private key. The keyring supports the following backends: @@ -17,7 +17,7 @@ The keyring supports the following backends: kwallet Uses KDE Wallet Manager as a credentials management application. pass Uses the pass command line utility to store and retrieve keys. test Stores keys insecurely to disk. It does not prompt for a password to be unlocked - and it should be used only for testing purposes. + and it should be use only for testing purposes. kwallet and pass backends depend on external tools. Refer to their respective documentation for more information: diff --git a/docs/architecture/zetacored/zetacored_keys_add.md b/docs/architecture/zetacored/zetacored_keys_add.md index 306dbedd..44e4b3d9 100644 --- a/docs/architecture/zetacored/zetacored_keys_add.md +++ b/docs/architecture/zetacored/zetacored_keys_add.md @@ -4,7 +4,7 @@ Add an encrypted private key (either newly generated or recovered), encrypt it, ### Synopsis -Derive a new private key and encrypt it to disk. +Derive a new private key and encrypt to disk. Optionally specify a BIP39 mnemonic, a BIP39 passphrase to further secure the mnemonic, and a bip32 HD path to derive a specific account. The key will be stored under the given name and encrypted with the given password. The only input that is required is the encryption password. diff --git a/docs/architecture/zetacored/zetacored_query_crosschain.md b/docs/architecture/zetacored/zetacored_query_crosschain.md index 0ccdb37d..0f973fe7 100644 --- a/docs/architecture/zetacored/zetacored_query_crosschain.md +++ b/docs/architecture/zetacored/zetacored_query_crosschain.md @@ -25,24 +25,19 @@ zetacored query crosschain [flags] ### SEE ALSO * [zetacored query](zetacored_query.md) - Querying subcommands -* [zetacored query crosschain get-tss-address](zetacored_query_crosschain_get-tss-address.md) - Query current tss address +* [zetacored query crosschain get-zeta-accounting](zetacored_query_crosschain_get-zeta-accounting.md) - Query zeta accounting * [zetacored query crosschain in-tx-hash-to-cctx-data](zetacored_query_crosschain_in-tx-hash-to-cctx-data.md) - query a cctx data from a in tx hash * [zetacored query crosschain last-zeta-height](zetacored_query_crosschain_last-zeta-height.md) - Query last Zeta Height * [zetacored query crosschain list-all-in-tx-trackers](zetacored_query_crosschain_list-all-in-tx-trackers.md) - shows all inTxTrackers * [zetacored query crosschain list-cctx](zetacored_query_crosschain_list-cctx.md) - list all CCTX -* [zetacored query crosschain list-chain-nonces](zetacored_query_crosschain_list-chain-nonces.md) - list all chainNonces * [zetacored query crosschain list-gas-price](zetacored_query_crosschain_list-gas-price.md) - list all gasPrice * [zetacored query crosschain list-in-tx-hash-to-cctx](zetacored_query_crosschain_list-in-tx-hash-to-cctx.md) - list all inTxHashToCctx * [zetacored query crosschain list-in-tx-tracker](zetacored_query_crosschain_list-in-tx-tracker.md) - shows a list of in tx tracker by chainId * [zetacored query crosschain list-out-tx-tracker](zetacored_query_crosschain_list-out-tx-tracker.md) - list all OutTxTracker * [zetacored query crosschain list-pending-cctx](zetacored_query_crosschain_list-pending-cctx.md) - shows pending CCTX -* [zetacored query crosschain list-pending-nonces](zetacored_query_crosschain_list-pending-nonces.md) - shows a chainNonces -* [zetacored query crosschain list-tss-history](zetacored_query_crosschain_list-tss-history.md) - show historical list of TSS * [zetacored query crosschain params](zetacored_query_crosschain_params.md) - shows the parameters of the module * [zetacored query crosschain show-cctx](zetacored_query_crosschain_show-cctx.md) - shows a CCTX -* [zetacored query crosschain show-chain-nonces](zetacored_query_crosschain_show-chain-nonces.md) - shows a chainNonces * [zetacored query crosschain show-gas-price](zetacored_query_crosschain_show-gas-price.md) - shows a gasPrice * [zetacored query crosschain show-in-tx-hash-to-cctx](zetacored_query_crosschain_show-in-tx-hash-to-cctx.md) - shows a inTxHashToCctx * [zetacored query crosschain show-out-tx-tracker](zetacored_query_crosschain_show-out-tx-tracker.md) - shows a OutTxTracker -* [zetacored query crosschain show-tss](zetacored_query_crosschain_show-tss.md) - shows a TSS diff --git a/docs/architecture/zetacored/zetacored_query_crosschain_show-tss.md b/docs/architecture/zetacored/zetacored_query_crosschain_get-zeta-accounting.md similarity index 84% rename from docs/architecture/zetacored/zetacored_query_crosschain_show-tss.md rename to docs/architecture/zetacored/zetacored_query_crosschain_get-zeta-accounting.md index 7fc0f687..589865d8 100644 --- a/docs/architecture/zetacored/zetacored_query_crosschain_show-tss.md +++ b/docs/architecture/zetacored/zetacored_query_crosschain_get-zeta-accounting.md @@ -1,9 +1,9 @@ -# query crosschain show-tss +# query crosschain get-zeta-accounting -shows a TSS +Query zeta accounting ``` -zetacored query crosschain show-tss [flags] +zetacored query crosschain get-zeta-accounting [flags] ``` ### Options @@ -12,7 +12,7 @@ zetacored query crosschain show-tss [flags] --grpc-addr string the gRPC endpoint to use for this chain --grpc-insecure allow gRPC over insecure channels, if not TLS the server must use TLS --height int Use a specific height to query state at (this can error if the node is pruning state) - -h, --help help for show-tss + -h, --help help for get-zeta-accounting --node string [host]:[port] to Tendermint RPC interface for this chain -o, --output string Output format (text|json) ``` diff --git a/docs/architecture/zetacored/zetacored_query_crosschain_list-pending-cctx.md b/docs/architecture/zetacored/zetacored_query_crosschain_list-pending-cctx.md index 3ac808d7..7a886b8e 100644 --- a/docs/architecture/zetacored/zetacored_query_crosschain_list-pending-cctx.md +++ b/docs/architecture/zetacored/zetacored_query_crosschain_list-pending-cctx.md @@ -3,7 +3,7 @@ shows pending CCTX ``` -zetacored query crosschain list-pending-cctx [chain-id] [flags] +zetacored query crosschain list-pending-cctx [chain-id] [limit] [flags] ``` ### Options diff --git a/docs/architecture/zetacored/zetacored_query_fungible.md b/docs/architecture/zetacored/zetacored_query_fungible.md index 284cd10e..52d7ccc8 100644 --- a/docs/architecture/zetacored/zetacored_query_fungible.md +++ b/docs/architecture/zetacored/zetacored_query_fungible.md @@ -25,6 +25,7 @@ zetacored query fungible [flags] ### SEE ALSO * [zetacored query](zetacored_query.md) - Querying subcommands +* [zetacored query fungible code-hash](zetacored_query_fungible_code-hash.md) - shows the code hash of an account * [zetacored query fungible gas-stability-pool-address](zetacored_query_fungible_gas-stability-pool-address.md) - query the address of a gas stability pool * [zetacored query fungible gas-stability-pool-balance](zetacored_query_fungible_gas-stability-pool-balance.md) - query the balance of a gas stability pool for a chain * [zetacored query fungible gas-stability-pool-balances](zetacored_query_fungible_gas-stability-pool-balances.md) - query all gas stability pool balances diff --git a/docs/architecture/zetacored/zetacored_query_fungible_code-hash.md b/docs/architecture/zetacored/zetacored_query_fungible_code-hash.md new file mode 100644 index 00000000..8072fa76 --- /dev/null +++ b/docs/architecture/zetacored/zetacored_query_fungible_code-hash.md @@ -0,0 +1,33 @@ +# query fungible code-hash + +shows the code hash of an account + +``` +zetacored query fungible code-hash [address] [flags] +``` + +### Options + +``` + --grpc-addr string the gRPC endpoint to use for this chain + --grpc-insecure allow gRPC over insecure channels, if not TLS the server must use TLS + --height int Use a specific height to query state at (this can error if the node is pruning state) + -h, --help help for code-hash + --node string [host]:[port] to Tendermint RPC interface for this chain + -o, --output string Output format (text|json) +``` + +### Options inherited from parent commands + +``` + --chain-id string The network chain ID + --home string directory for config and data + --log_format string The logging format (json|plain) + --log_level string The logging level (trace|debug|info|warn|error|fatal|panic) + --trace print out full stack trace on errors +``` + +### SEE ALSO + +* [zetacored query fungible](zetacored_query_fungible.md) - Querying commands for the fungible module + diff --git a/docs/architecture/zetacored/zetacored_query_observer.md b/docs/architecture/zetacored/zetacored_query_observer.md index 609b81f3..73492a3b 100644 --- a/docs/architecture/zetacored/zetacored_query_observer.md +++ b/docs/architecture/zetacored/zetacored_query_observer.md @@ -25,19 +25,26 @@ zetacored query observer [flags] ### SEE ALSO * [zetacored query](zetacored_query.md) - Querying subcommands +* [zetacored query observer get-historical-tss-address](zetacored_query_observer_get-historical-tss-address.md) - Query tss address by finalized zeta height (for historical tss addresses) +* [zetacored query observer get-tss-address](zetacored_query_observer_get-tss-address.md) - Query current tss address * [zetacored query observer list-blame](zetacored_query_observer_list-blame.md) - Query AllBlameRecords * [zetacored query observer list-blame-by-msg](zetacored_query_observer_list-blame-by-msg.md) - Query AllBlameRecords +* [zetacored query observer list-chain-nonces](zetacored_query_observer_list-chain-nonces.md) - list all chainNonces * [zetacored query observer list-chains](zetacored_query_observer_list-chains.md) - list all SupportedChains * [zetacored query observer list-core-params](zetacored_query_observer_list-core-params.md) - Query GetCoreParams * [zetacored query observer list-node-account](zetacored_query_observer_list-node-account.md) - list all NodeAccount * [zetacored query observer list-observer](zetacored_query_observer_list-observer.md) - Query All Observer Mappers +* [zetacored query observer list-pending-nonces](zetacored_query_observer_list-pending-nonces.md) - shows a chainNonces +* [zetacored query observer list-tss-history](zetacored_query_observer_list-tss-history.md) - show historical list of TSS * [zetacored query observer params](zetacored_query_observer_params.md) - shows the parameters of the module * [zetacored query observer show-ballot](zetacored_query_observer_show-ballot.md) - Query BallotByIdentifier * [zetacored query observer show-blame](zetacored_query_observer_show-blame.md) - Query BlameByIdentifier +* [zetacored query observer show-chain-nonces](zetacored_query_observer_show-chain-nonces.md) - shows a chainNonces * [zetacored query observer show-core-params](zetacored_query_observer_show-core-params.md) - Query GetCoreParamsForChain * [zetacored query observer show-crosschain-flags](zetacored_query_observer_show-crosschain-flags.md) - shows the crosschain flags * [zetacored query observer show-keygen](zetacored_query_observer_show-keygen.md) - shows keygen * [zetacored query observer show-node-account](zetacored_query_observer_show-node-account.md) - shows a NodeAccount * [zetacored query observer show-observer](zetacored_query_observer_show-observer.md) - Query ObserversByChainAndType , Use common.chain for querying * [zetacored query observer show-observer-count](zetacored_query_observer_show-observer-count.md) - Query show-observer-count +* [zetacored query observer show-tss](zetacored_query_observer_show-tss.md) - shows a TSS diff --git a/docs/architecture/zetacored/zetacored_query_observer_get-historical-tss-address.md b/docs/architecture/zetacored/zetacored_query_observer_get-historical-tss-address.md new file mode 100644 index 00000000..83de26b9 --- /dev/null +++ b/docs/architecture/zetacored/zetacored_query_observer_get-historical-tss-address.md @@ -0,0 +1,33 @@ +# query observer get-historical-tss-address + +Query tss address by finalized zeta height (for historical tss addresses) + +``` +zetacored query observer get-historical-tss-address [finalizedZetaHeight] [flags] +``` + +### Options + +``` + --grpc-addr string the gRPC endpoint to use for this chain + --grpc-insecure allow gRPC over insecure channels, if not TLS the server must use TLS + --height int Use a specific height to query state at (this can error if the node is pruning state) + -h, --help help for get-historical-tss-address + --node string [host]:[port] to Tendermint RPC interface for this chain + -o, --output string Output format (text|json) +``` + +### Options inherited from parent commands + +``` + --chain-id string The network chain ID + --home string directory for config and data + --log_format string The logging format (json|plain) + --log_level string The logging level (trace|debug|info|warn|error|fatal|panic) + --trace print out full stack trace on errors +``` + +### SEE ALSO + +* [zetacored query observer](zetacored_query_observer.md) - Querying commands for the observer module + diff --git a/docs/architecture/zetacored/zetacored_query_crosschain_get-tss-address.md b/docs/architecture/zetacored/zetacored_query_observer_get-tss-address.md similarity index 81% rename from docs/architecture/zetacored/zetacored_query_crosschain_get-tss-address.md rename to docs/architecture/zetacored/zetacored_query_observer_get-tss-address.md index b75dbc10..cb763f85 100644 --- a/docs/architecture/zetacored/zetacored_query_crosschain_get-tss-address.md +++ b/docs/architecture/zetacored/zetacored_query_observer_get-tss-address.md @@ -1,9 +1,9 @@ -# query crosschain get-tss-address +# query observer get-tss-address Query current tss address ``` -zetacored query crosschain get-tss-address [tss-pubkey] [flags] +zetacored query observer get-tss-address [flags] ``` ### Options @@ -29,5 +29,5 @@ zetacored query crosschain get-tss-address [tss-pubkey] [flags] ### SEE ALSO -* [zetacored query crosschain](zetacored_query_crosschain.md) - Querying commands for the crosschain module +* [zetacored query observer](zetacored_query_observer.md) - Querying commands for the observer module diff --git a/docs/architecture/zetacored/zetacored_query_crosschain_list-chain-nonces.md b/docs/architecture/zetacored/zetacored_query_observer_list-chain-nonces.md similarity index 87% rename from docs/architecture/zetacored/zetacored_query_crosschain_list-chain-nonces.md rename to docs/architecture/zetacored/zetacored_query_observer_list-chain-nonces.md index 5fa03186..b11ee00a 100644 --- a/docs/architecture/zetacored/zetacored_query_crosschain_list-chain-nonces.md +++ b/docs/architecture/zetacored/zetacored_query_observer_list-chain-nonces.md @@ -1,9 +1,9 @@ -# query crosschain list-chain-nonces +# query observer list-chain-nonces list all chainNonces ``` -zetacored query crosschain list-chain-nonces [flags] +zetacored query observer list-chain-nonces [flags] ``` ### Options @@ -35,5 +35,5 @@ zetacored query crosschain list-chain-nonces [flags] ### SEE ALSO -* [zetacored query crosschain](zetacored_query_crosschain.md) - Querying commands for the crosschain module +* [zetacored query observer](zetacored_query_observer.md) - Querying commands for the observer module diff --git a/docs/architecture/zetacored/zetacored_query_crosschain_list-pending-nonces.md b/docs/architecture/zetacored/zetacored_query_observer_list-pending-nonces.md similarity index 81% rename from docs/architecture/zetacored/zetacored_query_crosschain_list-pending-nonces.md rename to docs/architecture/zetacored/zetacored_query_observer_list-pending-nonces.md index 0e45b9d2..c4828f8b 100644 --- a/docs/architecture/zetacored/zetacored_query_crosschain_list-pending-nonces.md +++ b/docs/architecture/zetacored/zetacored_query_observer_list-pending-nonces.md @@ -1,9 +1,9 @@ -# query crosschain list-pending-nonces +# query observer list-pending-nonces shows a chainNonces ``` -zetacored query crosschain list-pending-nonces [flags] +zetacored query observer list-pending-nonces [flags] ``` ### Options @@ -29,5 +29,5 @@ zetacored query crosschain list-pending-nonces [flags] ### SEE ALSO -* [zetacored query crosschain](zetacored_query_crosschain.md) - Querying commands for the crosschain module +* [zetacored query observer](zetacored_query_observer.md) - Querying commands for the observer module diff --git a/docs/architecture/zetacored/zetacored_query_crosschain_list-tss-history.md b/docs/architecture/zetacored/zetacored_query_observer_list-tss-history.md similarity index 82% rename from docs/architecture/zetacored/zetacored_query_crosschain_list-tss-history.md rename to docs/architecture/zetacored/zetacored_query_observer_list-tss-history.md index 47af8168..3b59d8a2 100644 --- a/docs/architecture/zetacored/zetacored_query_crosschain_list-tss-history.md +++ b/docs/architecture/zetacored/zetacored_query_observer_list-tss-history.md @@ -1,9 +1,9 @@ -# query crosschain list-tss-history +# query observer list-tss-history show historical list of TSS ``` -zetacored query crosschain list-tss-history [flags] +zetacored query observer list-tss-history [flags] ``` ### Options @@ -29,5 +29,5 @@ zetacored query crosschain list-tss-history [flags] ### SEE ALSO -* [zetacored query crosschain](zetacored_query_crosschain.md) - Querying commands for the crosschain module +* [zetacored query observer](zetacored_query_observer.md) - Querying commands for the observer module diff --git a/docs/architecture/zetacored/zetacored_query_crosschain_show-chain-nonces.md b/docs/architecture/zetacored/zetacored_query_observer_show-chain-nonces.md similarity index 81% rename from docs/architecture/zetacored/zetacored_query_crosschain_show-chain-nonces.md rename to docs/architecture/zetacored/zetacored_query_observer_show-chain-nonces.md index cca85f76..68285873 100644 --- a/docs/architecture/zetacored/zetacored_query_crosschain_show-chain-nonces.md +++ b/docs/architecture/zetacored/zetacored_query_observer_show-chain-nonces.md @@ -1,9 +1,9 @@ -# query crosschain show-chain-nonces +# query observer show-chain-nonces shows a chainNonces ``` -zetacored query crosschain show-chain-nonces [index] [flags] +zetacored query observer show-chain-nonces [index] [flags] ``` ### Options @@ -29,5 +29,5 @@ zetacored query crosschain show-chain-nonces [index] [flags] ### SEE ALSO -* [zetacored query crosschain](zetacored_query_crosschain.md) - Querying commands for the crosschain module +* [zetacored query observer](zetacored_query_observer.md) - Querying commands for the observer module diff --git a/docs/architecture/zetacored/zetacored_query_observer_show-tss.md b/docs/architecture/zetacored/zetacored_query_observer_show-tss.md new file mode 100644 index 00000000..38f10576 --- /dev/null +++ b/docs/architecture/zetacored/zetacored_query_observer_show-tss.md @@ -0,0 +1,33 @@ +# query observer show-tss + +shows a TSS + +``` +zetacored query observer show-tss [flags] +``` + +### Options + +``` + --grpc-addr string the gRPC endpoint to use for this chain + --grpc-insecure allow gRPC over insecure channels, if not TLS the server must use TLS + --height int Use a specific height to query state at (this can error if the node is pruning state) + -h, --help help for show-tss + --node string [host]:[port] to Tendermint RPC interface for this chain + -o, --output string Output format (text|json) +``` + +### Options inherited from parent commands + +``` + --chain-id string The network chain ID + --home string directory for config and data + --log_format string The logging format (json|plain) + --log_level string The logging level (trace|debug|info|warn|error|fatal|panic) + --trace print out full stack trace on errors +``` + +### SEE ALSO + +* [zetacored query observer](zetacored_query_observer.md) - Querying commands for the observer module + diff --git a/docs/architecture/zetacored/zetacored_tx_crosschain.md b/docs/architecture/zetacored/zetacored_tx_crosschain.md index d74024b3..a7e2465a 100644 --- a/docs/architecture/zetacored/zetacored_tx_crosschain.md +++ b/docs/architecture/zetacored/zetacored_tx_crosschain.md @@ -32,7 +32,6 @@ zetacored tx crosschain [flags] * [zetacored tx crosschain gas-price-voter](zetacored_tx_crosschain_gas-price-voter.md) - Broadcast message gasPriceVoter * [zetacored tx crosschain inbound-voter](zetacored_tx_crosschain_inbound-voter.md) - Broadcast message sendVoter * [zetacored tx crosschain migrate-tss-funds](zetacored_tx_crosschain_migrate-tss-funds.md) - Migrate TSS funds to the latest TSS address -* [zetacored tx crosschain nonce-voter](zetacored_tx_crosschain_nonce-voter.md) - Broadcast message nonceVoter * [zetacored tx crosschain outbound-voter](zetacored_tx_crosschain_outbound-voter.md) - Broadcast message receiveConfirmation * [zetacored tx crosschain remove-from-out-tx-tracker](zetacored_tx_crosschain_remove-from-out-tx-tracker.md) - Remove a out-tx-tracker * [zetacored tx crosschain update-tss-address](zetacored_tx_crosschain_update-tss-address.md) - Create a new TSSVoter diff --git a/docs/architecture/zetacored/zetacored_tx_fungible.md b/docs/architecture/zetacored/zetacored_tx_fungible.md index 0ba5834c..74f0d5a6 100644 --- a/docs/architecture/zetacored/zetacored_tx_fungible.md +++ b/docs/architecture/zetacored/zetacored_tx_fungible.md @@ -26,6 +26,9 @@ zetacored tx fungible [flags] * [zetacored tx](zetacored_tx.md) - Transactions subcommands * [zetacored tx fungible deploy-fungible-coin-zrc-4](zetacored_tx_fungible_deploy-fungible-coin-zrc-4.md) - Broadcast message DeployFungibleCoinZRC20 +* [zetacored tx fungible deploy-system-contracts](zetacored_tx_fungible_deploy-system-contracts.md) - Broadcast message SystemContracts * [zetacored tx fungible remove-foreign-coin](zetacored_tx_fungible_remove-foreign-coin.md) - Broadcast message RemoveForeignCoin +* [zetacored tx fungible update-contract-bytecode](zetacored_tx_fungible_update-contract-bytecode.md) - Broadcast message UpdateContractBytecode +* [zetacored tx fungible update-system-contract](zetacored_tx_fungible_update-system-contract.md) - Broadcast message UpdateSystemContract * [zetacored tx fungible update-zrc20-liquidity-cap](zetacored_tx_fungible_update-zrc20-liquidity-cap.md) - Broadcast message UpdateZRC20LiquidityCap diff --git a/docs/architecture/zetacored/zetacored_tx_crosschain_nonce-voter.md b/docs/architecture/zetacored/zetacored_tx_fungible_deploy-system-contracts.md similarity index 91% rename from docs/architecture/zetacored/zetacored_tx_crosschain_nonce-voter.md rename to docs/architecture/zetacored/zetacored_tx_fungible_deploy-system-contracts.md index edbd3c23..c9acde47 100644 --- a/docs/architecture/zetacored/zetacored_tx_crosschain_nonce-voter.md +++ b/docs/architecture/zetacored/zetacored_tx_fungible_deploy-system-contracts.md @@ -1,9 +1,9 @@ -# tx crosschain nonce-voter +# tx fungible deploy-system-contracts -Broadcast message nonceVoter +Broadcast message SystemContracts ``` -zetacored tx crosschain nonce-voter [chain] [nonce] [flags] +zetacored tx fungible deploy-system-contracts [flags] ``` ### Options @@ -21,7 +21,7 @@ zetacored tx crosschain nonce-voter [chain] [nonce] [flags] --gas-adjustment float adjustment factor to be multiplied against the estimate returned by the tx simulation; if the gas limit is set manually this flag is ignored (default 1) --gas-prices string Gas prices in decimal format to determine the transaction fee (e.g. 0.1uatom) --generate-only Build an unsigned transaction and write it to STDOUT (when enabled, the local Keybase only accessed when providing a key name) - -h, --help help for nonce-voter + -h, --help help for deploy-system-contracts --keyring-backend string Select keyring's backend (os|file|kwallet|pass|test|memory) --keyring-dir string The client Keyring directory; if omitted, the default 'home' directory will be used --ledger Use a connected Ledger device @@ -48,5 +48,5 @@ zetacored tx crosschain nonce-voter [chain] [nonce] [flags] ### SEE ALSO -* [zetacored tx crosschain](zetacored_tx_crosschain.md) - crosschain transactions subcommands +* [zetacored tx fungible](zetacored_tx_fungible.md) - fungible transactions subcommands diff --git a/docs/architecture/zetacored/zetacored_tx_fungible_update-contract-bytecode.md b/docs/architecture/zetacored/zetacored_tx_fungible_update-contract-bytecode.md new file mode 100644 index 00000000..bc97a583 --- /dev/null +++ b/docs/architecture/zetacored/zetacored_tx_fungible_update-contract-bytecode.md @@ -0,0 +1,52 @@ +# tx fungible update-contract-bytecode + +Broadcast message UpdateContractBytecode + +``` +zetacored tx fungible update-contract-bytecode [contract-address] [new-code-hash] [flags] +``` + +### Options + +``` + -a, --account-number uint The account number of the signing account (offline mode only) + --aux Generate aux signer data instead of sending a tx + -b, --broadcast-mode string Transaction broadcasting mode (sync|async|block) + --dry-run ignore the --gas flag and perform a simulation of a transaction, but don't broadcast it (when enabled, the local Keybase is not accessible) + --fee-granter string Fee granter grants fees for the transaction + --fee-payer string Fee payer pays fees for the transaction instead of deducting from the signer + --fees string Fees to pay along with transaction; eg: 10uatom + --from string Name or address of private key with which to sign + --gas string gas limit to set per-transaction; set to "auto" to calculate sufficient gas automatically. Note: "auto" option doesn't always report accurate results. Set a valid coin value to adjust the result. Can be used instead of "fees". (default 200000) + --gas-adjustment float adjustment factor to be multiplied against the estimate returned by the tx simulation; if the gas limit is set manually this flag is ignored (default 1) + --gas-prices string Gas prices in decimal format to determine the transaction fee (e.g. 0.1uatom) + --generate-only Build an unsigned transaction and write it to STDOUT (when enabled, the local Keybase only accessed when providing a key name) + -h, --help help for update-contract-bytecode + --keyring-backend string Select keyring's backend (os|file|kwallet|pass|test|memory) + --keyring-dir string The client Keyring directory; if omitted, the default 'home' directory will be used + --ledger Use a connected Ledger device + --node string [host]:[port] to tendermint rpc interface for this chain + --note string Note to add a description to the transaction (previously --memo) + --offline Offline mode (does not allow any online functionality) + -o, --output string Output format (text|json) + -s, --sequence uint The sequence number of the signing account (offline mode only) + --sign-mode string Choose sign mode (direct|amino-json|direct-aux), this is an advanced feature + --timeout-height uint Set a block timeout height to prevent the tx from being committed past a certain height + --tip string Tip is the amount that is going to be transferred to the fee payer on the target chain. This flag is only valid when used with --aux, and is ignored if the target chain didn't enable the TipDecorator + -y, --yes Skip tx broadcasting prompt confirmation +``` + +### Options inherited from parent commands + +``` + --chain-id string The network chain ID + --home string directory for config and data + --log_format string The logging format (json|plain) + --log_level string The logging level (trace|debug|info|warn|error|fatal|panic) + --trace print out full stack trace on errors +``` + +### SEE ALSO + +* [zetacored tx fungible](zetacored_tx_fungible.md) - fungible transactions subcommands + diff --git a/docs/architecture/zetacored/zetacored_tx_fungible_update-system-contract.md b/docs/architecture/zetacored/zetacored_tx_fungible_update-system-contract.md new file mode 100644 index 00000000..c9a3e163 --- /dev/null +++ b/docs/architecture/zetacored/zetacored_tx_fungible_update-system-contract.md @@ -0,0 +1,52 @@ +# tx fungible update-system-contract + +Broadcast message UpdateSystemContract + +``` +zetacored tx fungible update-system-contract [contract-address] [flags] +``` + +### Options + +``` + -a, --account-number uint The account number of the signing account (offline mode only) + --aux Generate aux signer data instead of sending a tx + -b, --broadcast-mode string Transaction broadcasting mode (sync|async|block) + --dry-run ignore the --gas flag and perform a simulation of a transaction, but don't broadcast it (when enabled, the local Keybase is not accessible) + --fee-granter string Fee granter grants fees for the transaction + --fee-payer string Fee payer pays fees for the transaction instead of deducting from the signer + --fees string Fees to pay along with transaction; eg: 10uatom + --from string Name or address of private key with which to sign + --gas string gas limit to set per-transaction; set to "auto" to calculate sufficient gas automatically. Note: "auto" option doesn't always report accurate results. Set a valid coin value to adjust the result. Can be used instead of "fees". (default 200000) + --gas-adjustment float adjustment factor to be multiplied against the estimate returned by the tx simulation; if the gas limit is set manually this flag is ignored (default 1) + --gas-prices string Gas prices in decimal format to determine the transaction fee (e.g. 0.1uatom) + --generate-only Build an unsigned transaction and write it to STDOUT (when enabled, the local Keybase only accessed when providing a key name) + -h, --help help for update-system-contract + --keyring-backend string Select keyring's backend (os|file|kwallet|pass|test|memory) + --keyring-dir string The client Keyring directory; if omitted, the default 'home' directory will be used + --ledger Use a connected Ledger device + --node string [host]:[port] to tendermint rpc interface for this chain + --note string Note to add a description to the transaction (previously --memo) + --offline Offline mode (does not allow any online functionality) + -o, --output string Output format (text|json) + -s, --sequence uint The sequence number of the signing account (offline mode only) + --sign-mode string Choose sign mode (direct|amino-json|direct-aux), this is an advanced feature + --timeout-height uint Set a block timeout height to prevent the tx from being committed past a certain height + --tip string Tip is the amount that is going to be transferred to the fee payer on the target chain. This flag is only valid when used with --aux, and is ignored if the target chain didn't enable the TipDecorator + -y, --yes Skip tx broadcasting prompt confirmation +``` + +### Options inherited from parent commands + +``` + --chain-id string The network chain ID + --home string directory for config and data + --log_format string The logging format (json|plain) + --log_level string The logging level (trace|debug|info|warn|error|fatal|panic) + --trace print out full stack trace on errors +``` + +### SEE ALSO + +* [zetacored tx fungible](zetacored_tx_fungible.md) - fungible transactions subcommands + diff --git a/static/data/openapi.swagger.yaml b/static/data/openapi.swagger.yaml index 852fc68b..91cdeb38 100644 --- a/static/data/openapi.swagger.yaml +++ b/static/data/openapi.swagger.yaml @@ -26462,21 +26462,6 @@ paths: type: boolean tags: - Query - /zeta-chain/crosschain/TSS: - get: - summary: Queries a tSS by index. - operationId: Query_TSS - responses: - "200": - description: A successful response. - schema: - $ref: '#/definitions/crosschainQueryGetTSSResponse' - default: - description: An unexpected error response. - schema: - $ref: '#/definitions/googlerpcStatus' - tags: - - Query /zeta-chain/crosschain/cctx: get: summary: Queries a list of send items. @@ -26584,13 +26569,13 @@ paths: - Query /zeta-chain/crosschain/cctxPending: get: - summary: Queries a list of send items. - operationId: Query_CctxAllPending + summary: Queries a list of pending cctxs. + operationId: Query_CctxListPending responses: "200": description: A successful response. schema: - $ref: '#/definitions/crosschainQueryAllCctxPendingResponse' + $ref: '#/definitions/crosschainQueryListCctxPendingResponse' default: description: An unexpected error response. schema: @@ -26601,86 +26586,46 @@ paths: required: false type: string format: int64 - - name: pagination.key - description: |- - key is a value returned in PageResponse.next_key to begin - querying the next page most efficiently. Only one of offset or key - should be set. - in: query - required: false - type: string - format: byte - - name: pagination.offset - description: |- - offset is a numeric offset that can be used when key is unavailable. - It is less efficient than using key. Only one of offset or key should - be set. - in: query - required: false - type: string - format: uint64 - - name: pagination.limit - description: |- - limit is the total number of results to be returned in the result page. - If left empty it will default to a value to be set by each app. - in: query - required: false - type: string - format: uint64 - - name: pagination.count_total - description: |- - count_total is set to true to indicate that the result set should include - a count of the total number of items available for pagination in UIs. - count_total is only respected when offset is used. It is ignored when key - is set. - in: query - required: false - type: boolean - - name: pagination.reverse - description: |- - reverse is set to true if results are to be returned in the descending order. - - Since: cosmos-sdk 0.43 + - name: limit in: query required: false - type: boolean + type: integer + format: int64 tags: - Query - /zeta-chain/crosschain/cctxbyStatus/{status}: + /zeta-chain/crosschain/convertGasToZeta: get: - operationId: Query_CctxByStatus + operationId: Query_ConvertGasToZeta responses: "200": description: A successful response. schema: - $ref: '#/definitions/crosschainQueryCctxByStatusResponse' + $ref: '#/definitions/crosschainQueryConvertGasToZetaResponse' default: description: An unexpected error response. schema: $ref: '#/definitions/googlerpcStatus' parameters: - - name: status - in: path - required: true + - name: chainId + in: query + required: false + type: string + format: int64 + - name: gasLimit + in: query + required: false type: string - enum: - - PendingInbound - - PendingOutbound - - OutboundMined - - PendingRevert - - Reverted - - Aborted tags: - Query - /zeta-chain/crosschain/chainNonces: + /zeta-chain/crosschain/gasPrice: get: - summary: Queries a list of chainNonces items. - operationId: Query_ChainNoncesAll + summary: Queries a list of gasPrice items. + operationId: Query_GasPriceAll responses: "200": description: A successful response. schema: - $ref: '#/definitions/crosschainQueryAllChainNoncesResponse' + $ref: '#/definitions/crosschainQueryAllGasPriceResponse' default: description: An unexpected error response. schema: @@ -26731,15 +26676,15 @@ paths: type: boolean tags: - Query - /zeta-chain/crosschain/chainNonces/{index}: + /zeta-chain/crosschain/gasPrice/{index}: get: - summary: Queries a chainNonces by index. - operationId: Query_ChainNonces + summary: Queries a gasPrice by index. + operationId: Query_GasPrice responses: "200": description: A successful response. schema: - $ref: '#/definitions/crosschainQueryGetChainNoncesResponse' + $ref: '#/definitions/crosschainQueryGetGasPriceResponse' default: description: An unexpected error response. schema: @@ -26751,39 +26696,35 @@ paths: type: string tags: - Query - /zeta-chain/crosschain/convertGasToZeta: + /zeta-chain/crosschain/in_tx_hash_to_cctx_data/{inTxHash}: get: - operationId: Query_ConvertGasToZeta + summary: Queries a InTxHashToCctx data by index. + operationId: Query_InTxHashToCctxData responses: "200": description: A successful response. schema: - $ref: '#/definitions/crosschainQueryConvertGasToZetaResponse' + $ref: '#/definitions/crosschainQueryInTxHashToCctxDataResponse' default: description: An unexpected error response. schema: $ref: '#/definitions/googlerpcStatus' parameters: - - name: chainId - in: query - required: false - type: string - format: int64 - - name: gasLimit - in: query - required: false + - name: inTxHash + in: path + required: true type: string tags: - Query - /zeta-chain/crosschain/gasPrice: + /zeta-chain/crosschain/inTxHashToCctx: get: - summary: Queries a list of gasPrice items. - operationId: Query_GasPriceAll + summary: Queries a list of InTxHashToCctx items. + operationId: Query_InTxHashToCctxAll responses: "200": description: A successful response. schema: - $ref: '#/definitions/crosschainQueryAllGasPriceResponse' + $ref: '#/definitions/crosschainQueryAllInTxHashToCctxResponse' default: description: An unexpected error response. schema: @@ -26834,80 +26775,44 @@ paths: type: boolean tags: - Query - /zeta-chain/crosschain/gasPrice/{index}: + /zeta-chain/crosschain/inTxHashToCctx/{inTxHash}: get: - summary: Queries a gasPrice by index. - operationId: Query_GasPrice + summary: Queries a InTxHashToCctx by index. + operationId: Query_InTxHashToCctx responses: "200": description: A successful response. schema: - $ref: '#/definitions/crosschainQueryGetGasPriceResponse' + $ref: '#/definitions/crosschainQueryGetInTxHashToCctxResponse' default: description: An unexpected error response. schema: $ref: '#/definitions/googlerpcStatus' parameters: - - name: index + - name: inTxHash in: path required: true type: string tags: - Query - /zeta-chain/crosschain/get_tss_address: - get: - summary: Queries a list of GetTssAddress items. - operationId: Query_GetTssAddress - responses: - "200": - description: A successful response. - schema: - $ref: '#/definitions/crosschainQueryGetTssAddressResponse' - default: - description: An unexpected error response. - schema: - $ref: '#/definitions/googlerpcStatus' - parameters: - - name: tss_pub_key - in: query - required: false - type: string - tags: - - Query - /zeta-chain/crosschain/in_tx_hash_to_cctx_data/{inTxHash}: + /zeta-chain/crosschain/inTxTrackerByChain/{chain_id}: get: - summary: Queries a InTxHashToCctx data by index. - operationId: Query_InTxHashToCctxData + operationId: Query_InTxTrackerAllByChain responses: "200": description: A successful response. schema: - $ref: '#/definitions/crosschainQueryInTxHashToCctxDataResponse' + $ref: '#/definitions/crosschainQueryAllInTxTrackerByChainResponse' default: description: An unexpected error response. schema: $ref: '#/definitions/googlerpcStatus' parameters: - - name: inTxHash + - name: chain_id in: path required: true type: string - tags: - - Query - /zeta-chain/crosschain/inTxHashToCctx: - get: - summary: Queries a list of InTxHashToCctx items. - operationId: Query_InTxHashToCctxAll - responses: - "200": - description: A successful response. - schema: - $ref: '#/definitions/crosschainQueryAllInTxHashToCctxResponse' - default: - description: An unexpected error response. - schema: - $ref: '#/definitions/googlerpcStatus' - parameters: + format: int64 - name: pagination.key description: |- key is a value returned in PageResponse.next_key to begin @@ -26953,44 +26858,19 @@ paths: type: boolean tags: - Query - /zeta-chain/crosschain/inTxHashToCctx/{inTxHash}: - get: - summary: Queries a InTxHashToCctx by index. - operationId: Query_InTxHashToCctx - responses: - "200": - description: A successful response. - schema: - $ref: '#/definitions/crosschainQueryGetInTxHashToCctxResponse' - default: - description: An unexpected error response. - schema: - $ref: '#/definitions/googlerpcStatus' - parameters: - - name: inTxHash - in: path - required: true - type: string - tags: - - Query - /zeta-chain/crosschain/inTxTrackerByChain/{chain_id}: + /zeta-chain/crosschain/inTxTrackers: get: - operationId: Query_InTxTrackerAllByChain + operationId: Query_InTxTrackerAll responses: "200": description: A successful response. schema: - $ref: '#/definitions/crosschainQueryAllInTxTrackerByChainResponse' + $ref: '#/definitions/crosschainQueryAllInTxTrackersResponse' default: description: An unexpected error response. schema: $ref: '#/definitions/googlerpcStatus' parameters: - - name: chain_id - in: path - required: true - type: string - format: int64 - name: pagination.key description: |- key is a value returned in PageResponse.next_key to begin @@ -27036,20 +26916,6 @@ paths: type: boolean tags: - Query - /zeta-chain/crosschain/inTxTrackers: - get: - operationId: Query_InTxTrackerAll - responses: - "200": - description: A successful response. - schema: - $ref: '#/definitions/crosschainQueryAllInTxTrackersResponse' - default: - description: An unexpected error response. - schema: - $ref: '#/definitions/googlerpcStatus' - tags: - - Query /zeta-chain/crosschain/lastBlockHeight: get: summary: Queries a list of lastBlockHeight items. @@ -27307,40 +27173,6 @@ paths: $ref: '#/definitions/googlerpcStatus' tags: - Query - /zeta-chain/crosschain/pendingNonces: - get: - operationId: Query_PendingNoncesAll - responses: - "200": - description: A successful response. - schema: - $ref: '#/definitions/crosschainQueryAllPendingNoncesResponse' - default: - description: An unexpected error response. - schema: - $ref: '#/definitions/googlerpcStatus' - tags: - - Query - /zeta-chain/crosschain/pendingNonces/{chain_id}: - get: - operationId: Query_PendingNoncesByChain - responses: - "200": - description: A successful response. - schema: - $ref: '#/definitions/crosschainQueryPendingNoncesByChainResponse' - default: - description: An unexpected error response. - schema: - $ref: '#/definitions/googlerpcStatus' - parameters: - - name: chain_id - in: path - required: true - type: string - format: int64 - tags: - - Query /zeta-chain/crosschain/protocolFee: get: operationId: Query_ProtocolFee @@ -27355,14 +27187,14 @@ paths: $ref: '#/definitions/googlerpcStatus' tags: - Query - /zeta-chain/crosschain/tssHistory: + /zeta-chain/crosschain/zetaAccounting: get: - operationId: Query_TssHistory + operationId: Query_ZetaAccounting responses: "200": description: A successful response. schema: - $ref: '#/definitions/crosschainQueryTssHistoryResponse' + $ref: '#/definitions/crosschainQueryZetaAccountingResponse' default: description: An unexpected error response. schema: @@ -27434,6 +27266,26 @@ paths: type: string tags: - Query + /zeta-chain/fungible/code_hash/{address}: + get: + summary: Code hash query the code hash of a contract. + operationId: Query_CodeHash + responses: + "200": + description: A successful response. + schema: + $ref: '#/definitions/fungibleQueryCodeHashResponse' + default: + description: An unexpected error response. + schema: + $ref: '#/definitions/googlerpcStatus' + parameters: + - name: address + in: path + required: true + type: string + tags: + - Query /zeta-chain/fungible/foreign_coins: get: summary: Queries a list of ForeignCoins items. @@ -27579,6 +27431,21 @@ paths: $ref: '#/definitions/googlerpcStatus' tags: - Query + /zeta-chain/observer/TSS: + get: + summary: Queries a tSS by index. + operationId: Query_TSS + responses: + "200": + description: A successful response. + schema: + $ref: '#/definitions/observerQueryGetTSSResponse' + default: + description: An unexpected error response. + schema: + $ref: '#/definitions/googlerpcStatus' + tags: + - Query /zeta-chain/observer/all_observer_mappers: get: operationId: Query_AllObserverMappers @@ -27659,6 +27526,85 @@ paths: type: string tags: - Query + /zeta-chain/observer/chainNonces: + get: + summary: Queries a list of chainNonces items. + operationId: Query_ChainNoncesAll + responses: + "200": + description: A successful response. + schema: + $ref: '#/definitions/observerQueryAllChainNoncesResponse' + default: + description: An unexpected error response. + schema: + $ref: '#/definitions/googlerpcStatus' + parameters: + - name: pagination.key + description: |- + key is a value returned in PageResponse.next_key to begin + querying the next page most efficiently. Only one of offset or key + should be set. + in: query + required: false + type: string + format: byte + - name: pagination.offset + description: |- + offset is a numeric offset that can be used when key is unavailable. + It is less efficient than using key. Only one of offset or key should + be set. + in: query + required: false + type: string + format: uint64 + - name: pagination.limit + description: |- + limit is the total number of results to be returned in the result page. + If left empty it will default to a value to be set by each app. + in: query + required: false + type: string + format: uint64 + - name: pagination.count_total + description: |- + count_total is set to true to indicate that the result set should include + a count of the total number of items available for pagination in UIs. + count_total is only respected when offset is used. It is ignored when key + is set. + in: query + required: false + type: boolean + - name: pagination.reverse + 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 + tags: + - Query + /zeta-chain/observer/chainNonces/{index}: + get: + summary: Queries a chainNonces by index. + operationId: Query_ChainNonces + responses: + "200": + description: A successful response. + schema: + $ref: '#/definitions/observerQueryGetChainNoncesResponse' + default: + description: An unexpected error response. + schema: + $ref: '#/definitions/googlerpcStatus' + parameters: + - name: index + in: path + required: true + type: string + tags: + - Query /zeta-chain/observer/crosschain_flags: get: operationId: Query_CrosschainFlags @@ -27686,6 +27632,50 @@ paths: description: An unexpected error response. schema: $ref: '#/definitions/googlerpcStatus' + parameters: + - name: pagination.key + description: |- + key is a value returned in PageResponse.next_key to begin + querying the next page most efficiently. Only one of offset or key + should be set. + in: query + required: false + type: string + format: byte + - name: pagination.offset + description: |- + offset is a numeric offset that can be used when key is unavailable. + It is less efficient than using key. Only one of offset or key should + be set. + in: query + required: false + type: string + format: uint64 + - name: pagination.limit + description: |- + limit is the total number of results to be returned in the result page. + If left empty it will default to a value to be set by each app. + in: query + required: false + type: string + format: uint64 + - name: pagination.count_total + description: |- + count_total is set to true to indicate that the result set should include + a count of the total number of items available for pagination in UIs. + count_total is only respected when offset is used. It is ignored when key + is set. + in: query + required: false + type: boolean + - name: pagination.reverse + 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 tags: - Query /zeta-chain/observer/get_all_block_headers: @@ -27822,6 +27812,76 @@ paths: $ref: '#/definitions/googlerpcStatus' tags: - Query + /zeta-chain/observer/get_tss_address: + get: + summary: Queries a list of GetTssAddress items. + operationId: Query_GetTssAddress + responses: + "200": + description: A successful response. + schema: + $ref: '#/definitions/observerQueryGetTssAddressResponse' + default: + description: An unexpected error response. + schema: + $ref: '#/definitions/googlerpcStatus' + parameters: + - name: bitcoin_chain_id + in: query + required: false + type: string + format: int64 + tags: + - Query + /zeta-chain/observer/get_tss_address_historical/{finalized_zeta_height}/{bitcoin_chain_id}: + get: + operationId: Query_GetTssAddressByFinalizedHeight + responses: + "200": + description: A successful response. + schema: + $ref: '#/definitions/observerQueryGetTssAddressByFinalizedHeightResponse' + default: + description: An unexpected error response. + schema: + $ref: '#/definitions/googlerpcStatus' + parameters: + - name: finalized_zeta_height + in: path + required: true + type: string + format: int64 + - name: bitcoin_chain_id + in: path + required: true + type: string + format: int64 + tags: + - Query + /zeta-chain/observer/has_voted/{ballot_identifier}/{voter_address}: + get: + summary: Query if a voter has voted for a ballot + operationId: Query_HasVoted + responses: + "200": + description: A successful response. + schema: + $ref: '#/definitions/observerQueryHasVotedResponse' + default: + description: An unexpected error response. + schema: + $ref: '#/definitions/googlerpcStatus' + parameters: + - name: ballot_identifier + in: path + required: true + type: string + - name: voter_address + in: path + required: true + type: string + tags: + - Query /zeta-chain/observer/keygen: get: summary: Queries a keygen by index. @@ -27951,6 +28011,84 @@ paths: $ref: '#/definitions/googlerpcStatus' tags: - Query + /zeta-chain/observer/pendingNonces: + get: + operationId: Query_PendingNoncesAll + responses: + "200": + description: A successful response. + schema: + $ref: '#/definitions/observerQueryAllPendingNoncesResponse' + default: + description: An unexpected error response. + schema: + $ref: '#/definitions/googlerpcStatus' + parameters: + - name: pagination.key + description: |- + key is a value returned in PageResponse.next_key to begin + querying the next page most efficiently. Only one of offset or key + should be set. + in: query + required: false + type: string + format: byte + - name: pagination.offset + description: |- + offset is a numeric offset that can be used when key is unavailable. + It is less efficient than using key. Only one of offset or key should + be set. + in: query + required: false + type: string + format: uint64 + - name: pagination.limit + description: |- + limit is the total number of results to be returned in the result page. + If left empty it will default to a value to be set by each app. + in: query + required: false + type: string + format: uint64 + - name: pagination.count_total + description: |- + count_total is set to true to indicate that the result set should include + a count of the total number of items available for pagination in UIs. + count_total is only respected when offset is used. It is ignored when key + is set. + in: query + required: false + type: boolean + - name: pagination.reverse + 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 + tags: + - Query + /zeta-chain/observer/pendingNonces/{chain_id}: + get: + operationId: Query_PendingNoncesByChain + responses: + "200": + description: A successful response. + schema: + $ref: '#/definitions/observerQueryPendingNoncesByChainResponse' + default: + description: An unexpected error response. + schema: + $ref: '#/definitions/googlerpcStatus' + parameters: + - name: chain_id + in: path + required: true + type: string + format: int64 + tags: + - Query /zeta-chain/observer/prove: get: summary: merkle proof verification @@ -28008,26 +28146,84 @@ paths: - name: block_hash in: query required: false - type: string - - name: tx_index + type: string + - name: tx_index + in: query + required: false + type: string + format: int64 + tags: + - Query + /zeta-chain/observer/supportedChains: + get: + operationId: Query_SupportedChains + responses: + "200": + description: A successful response. + schema: + $ref: '#/definitions/observerQuerySupportedChainsResponse' + default: + description: An unexpected error response. + schema: + $ref: '#/definitions/googlerpcStatus' + tags: + - Query + /zeta-chain/observer/tssHistory: + get: + operationId: Query_TssHistory + responses: + "200": + description: A successful response. + schema: + $ref: '#/definitions/observerQueryTssHistoryResponse' + default: + description: An unexpected error response. + schema: + $ref: '#/definitions/googlerpcStatus' + parameters: + - name: pagination.key + description: |- + key is a value returned in PageResponse.next_key to begin + querying the next page most efficiently. Only one of offset or key + should be set. + in: query + required: false + type: string + format: byte + - name: pagination.offset + description: |- + offset is a numeric offset that can be used when key is unavailable. + It is less efficient than using key. Only one of offset or key should + be set. + in: query + required: false + type: string + format: uint64 + - name: pagination.limit + description: |- + limit is the total number of results to be returned in the result page. + If left empty it will default to a value to be set by each app. + in: query + required: false + type: string + format: uint64 + - name: pagination.count_total + description: |- + count_total is set to true to indicate that the result set should include + a count of the total number of items available for pagination in UIs. + count_total is only respected when offset is used. It is ignored when key + is set. + in: query + required: false + type: boolean + - name: pagination.reverse + 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: string - format: int64 - tags: - - Query - /zeta-chain/observer/supportedChains: - get: - operationId: Query_SupportedChains - responses: - "200": - description: A successful response. - schema: - $ref: '#/definitions/observerQuerySupportedChainsResponse' - default: - description: An unexpected error response. - schema: - $ref: '#/definitions/googlerpcStatus' + type: boolean tags: - Query /zeta-chain/zetacore/fungible/gas_stability_pool_balance: @@ -50448,6 +50644,7 @@ definitions: - bsc_testnet - zeta_testnet - btc_testnet + - sepolia_testnet - goerli_localnet - btc_regtest default: empty @@ -50520,26 +50717,6 @@ definitions: - PendingRevert: outbound cannot succeed; should revert inbound - Reverted: inbound reverted. - Aborted: inbound tx error or invalid paramters and cannot revert; just abort - crosschainChainNonces: - type: object - properties: - creator: - type: string - index: - type: string - chain_id: - type: string - format: int64 - nonce: - type: string - format: uint64 - signers: - type: array - items: - type: string - finalizedHeight: - type: string - format: uint64 crosschainCrossChainTx: type: object properties: @@ -50665,8 +50842,6 @@ definitions: type: object crosschainMsgMigrateTssFundsResponse: type: object - crosschainMsgNonceVoterResponse: - type: object crosschainMsgRemoveFromOutTxTrackerResponse: type: object crosschainMsgUpdateTssAddressResponse: @@ -50739,31 +50914,6 @@ definitions: format: uint64 tss_pubkey: type: string - crosschainPendingNonces: - type: object - properties: - nonce_low: - type: string - format: int64 - nonce_high: - type: string - format: int64 - chain_id: - type: string - format: int64 - tss: - type: string - title: store key is tss+chainid - crosschainQueryAllCctxPendingResponse: - type: object - properties: - CrossChainTx: - type: array - items: - type: object - $ref: '#/definitions/crosschainCrossChainTx' - pagination: - $ref: '#/definitions/v1beta1PageResponse' crosschainQueryAllCctxResponse: type: object properties: @@ -50774,16 +50924,6 @@ definitions: $ref: '#/definitions/crosschainCrossChainTx' pagination: $ref: '#/definitions/v1beta1PageResponse' - crosschainQueryAllChainNoncesResponse: - type: object - properties: - ChainNonces: - type: array - items: - type: object - $ref: '#/definitions/crosschainChainNonces' - pagination: - $ref: '#/definitions/v1beta1PageResponse' crosschainQueryAllGasPriceResponse: type: object properties: @@ -50822,6 +50962,8 @@ definitions: items: type: object $ref: '#/definitions/crosschainInTxTracker' + pagination: + $ref: '#/definitions/v1beta1PageResponse' crosschainQueryAllLastBlockHeightResponse: type: object properties: @@ -50852,22 +50994,6 @@ definitions: $ref: '#/definitions/crosschainOutTxTracker' pagination: $ref: '#/definitions/v1beta1PageResponse' - crosschainQueryAllPendingNoncesResponse: - type: object - properties: - pending_nonces: - type: array - items: - type: object - $ref: '#/definitions/crosschainPendingNonces' - crosschainQueryCctxByStatusResponse: - type: object - properties: - CrossChainTx: - type: array - items: - type: object - $ref: '#/definitions/crosschainCrossChainTx' crosschainQueryConvertGasToZetaResponse: type: object properties: @@ -50883,11 +51009,6 @@ definitions: properties: CrossChainTx: $ref: '#/definitions/crosschainCrossChainTx' - crosschainQueryGetChainNoncesResponse: - type: object - properties: - ChainNonces: - $ref: '#/definitions/crosschainChainNonces' crosschainQueryGetGasPriceResponse: type: object properties: @@ -50908,18 +51029,6 @@ definitions: properties: outTxTracker: $ref: '#/definitions/crosschainOutTxTracker' - crosschainQueryGetTSSResponse: - type: object - properties: - TSS: - $ref: '#/definitions/crosschainTSS' - crosschainQueryGetTssAddressResponse: - type: object - properties: - eth: - type: string - btc: - type: string crosschainQueryInTxHashToCctxDataResponse: type: object properties: @@ -50934,43 +51043,27 @@ definitions: Height: type: string format: int64 - crosschainQueryMessagePassingProtocolFeeResponse: - type: object - properties: - feeInZeta: - type: string - crosschainQueryPendingNoncesByChainResponse: - type: object - properties: - pending_nonces: - $ref: '#/definitions/crosschainPendingNonces' - crosschainQueryTssHistoryResponse: + crosschainQueryListCctxPendingResponse: type: object properties: - tss_list: + CrossChainTx: type: array items: type: object - $ref: '#/definitions/crosschainTSS' - crosschainTSS: + $ref: '#/definitions/crosschainCrossChainTx' + totalPending: + type: string + format: uint64 + crosschainQueryMessagePassingProtocolFeeResponse: type: object properties: - tss_pubkey: - type: string - tss_participant_list: - type: array - items: - type: string - operator_address_list: - type: array - items: - type: string - finalizedZetaHeight: + feeInZeta: type: string - format: int64 - keyGenZetaHeight: + crosschainQueryZetaAccountingResponse: + type: object + properties: + aborted_zeta_amount: type: string - format: int64 crosschainTxHashList: type: object properties: @@ -51049,14 +51142,23 @@ definitions: properties: address: type: string + fungibleMsgDeploySystemContractsResponse: + type: object + properties: + uniswapV2Factory: + type: string + wzeta: + type: string + uniswapV2Router: + type: string + connectorZEVM: + type: string + systemContract: + type: string fungibleMsgRemoveForeignCoinResponse: type: object fungibleMsgUpdateContractBytecodeResponse: type: object - properties: - new_bytecode_hash: - type: string - format: byte fungibleMsgUpdateSystemContractResponse: type: object fungibleMsgUpdateZRC20LiquidityCapResponse: @@ -51083,6 +51185,11 @@ definitions: items: type: object $ref: '#/definitions/QueryAllGasStabilityPoolBalanceResponseBalance' + fungibleQueryCodeHashResponse: + type: object + properties: + code_hash: + type: string fungibleQueryGetForeignCoinsResponse: type: object properties: @@ -51179,6 +51286,26 @@ definitions: type: boolean isBtcTypeChainEnabled: type: boolean + observerChainNonces: + type: object + properties: + creator: + type: string + index: + type: string + chain_id: + type: string + format: int64 + nonce: + type: string + format: uint64 + signers: + type: array + items: + type: string + finalizedHeight: + type: string + format: uint64 observerCoreParams: type: object properties: @@ -51248,6 +51375,10 @@ definitions: title: |- Maximum gas price increase in percent of the median gas price Default is used if 0 + maxPendingCctxs: + type: integer + format: int64 + title: Maximum number of pending crosschain transactions to check for gas price increase observerKeygen: type: object properties: @@ -51362,6 +51493,21 @@ definitions: - Tombstoned - AdminUpdate default: Undefined + observerPendingNonces: + type: object + properties: + nonce_low: + type: string + format: int64 + nonce_high: + type: string + format: int64 + chain_id: + type: string + format: int64 + tss: + type: string + title: store key is tss+chainid observerPolicy_Type: type: string enum: @@ -51376,6 +51522,8 @@ definitions: items: type: object $ref: '#/definitions/observerBlame' + pagination: + $ref: '#/definitions/v1beta1PageResponse' observerQueryAllBlockHeaderResponse: type: object properties: @@ -51386,6 +51534,16 @@ definitions: $ref: '#/definitions/commonBlockHeader' pagination: $ref: '#/definitions/v1beta1PageResponse' + observerQueryAllChainNoncesResponse: + type: object + properties: + ChainNonces: + type: array + items: + type: object + $ref: '#/definitions/observerChainNonces' + pagination: + $ref: '#/definitions/v1beta1PageResponse' observerQueryAllNodeAccountResponse: type: object properties: @@ -51404,6 +51562,16 @@ definitions: items: type: object $ref: '#/definitions/observerObserverMapper' + observerQueryAllPendingNoncesResponse: + type: object + properties: + pending_nonces: + type: array + items: + type: object + $ref: '#/definitions/observerPendingNonces' + pagination: + $ref: '#/definitions/v1beta1PageResponse' observerQueryBallotByIdentifierResponse: type: object properties: @@ -51441,6 +51609,11 @@ definitions: properties: block_header_state: $ref: '#/definitions/observerBlockHeaderState' + observerQueryGetChainNoncesResponse: + type: object + properties: + ChainNonces: + $ref: '#/definitions/observerChainNonces' observerQueryGetCoreParamsForChainResponse: type: object properties: @@ -51466,6 +51639,30 @@ definitions: properties: node_account: $ref: '#/definitions/observerNodeAccount' + observerQueryGetTSSResponse: + type: object + properties: + TSS: + $ref: '#/definitions/observerTSS' + observerQueryGetTssAddressByFinalizedHeightResponse: + type: object + properties: + eth: + type: string + btc: + type: string + observerQueryGetTssAddressResponse: + type: object + properties: + eth: + type: string + btc: + type: string + observerQueryHasVotedResponse: + type: object + properties: + has_voted: + type: boolean observerQueryObserversByChainResponse: type: object properties: @@ -51473,6 +51670,11 @@ definitions: type: array items: type: string + observerQueryPendingNoncesByChainResponse: + type: object + properties: + pending_nonces: + $ref: '#/definitions/observerPendingNonces' observerQueryProveResponse: type: object properties: @@ -51491,6 +51693,35 @@ definitions: items: type: object $ref: '#/definitions/commonChain' + observerQueryTssHistoryResponse: + type: object + properties: + tss_list: + type: array + items: + type: object + $ref: '#/definitions/observerTSS' + pagination: + $ref: '#/definitions/v1beta1PageResponse' + observerTSS: + type: object + properties: + tss_pubkey: + type: string + tss_participant_list: + type: array + items: + type: string + operator_address_list: + type: array + items: + type: string + finalizedZetaHeight: + type: string + format: int64 + keyGenZetaHeight: + type: string + format: int64 observerVoteType: type: string enum: