diff --git a/app/app.go b/app/app.go index 0b2c49b7..204276ad 100644 --- a/app/app.go +++ b/app/app.go @@ -129,7 +129,7 @@ import ( ibctransferkeeper "github.com/cosmos/ibc-go/v8/modules/apps/transfer/keeper" ibctransfertypes "github.com/cosmos/ibc-go/v8/modules/apps/transfer/types" ibc "github.com/cosmos/ibc-go/v8/modules/core" - ibcclienttypes "github.com/cosmos/ibc-go/v8/modules/core/02-client/types" //nolint:staticcheck + ibcclienttypes "github.com/cosmos/ibc-go/v8/modules/core/02-client/types" ibcconnectiontypes "github.com/cosmos/ibc-go/v8/modules/core/03-connection/types" ibcporttypes "github.com/cosmos/ibc-go/v8/modules/core/05-port/types" ibcexported "github.com/cosmos/ibc-go/v8/modules/core/exported" diff --git a/docs/command/axoned_query_ibc_channel.md b/docs/command/axoned_query_ibc_channel.md index 3434d80d..1acfa8dd 100644 --- a/docs/command/axoned_query_ibc_channel.md +++ b/docs/command/axoned_query_ibc_channel.md @@ -25,5 +25,8 @@ axoned query ibc channel [flags] * [axoned query ibc channel packet-commitment](axoned_query_ibc_channel_packet-commitment.md) - Query a packet commitment * [axoned query ibc channel packet-commitments](axoned_query_ibc_channel_packet-commitments.md) - Query all packet commitments associated with a channel * [axoned query ibc channel packet-receipt](axoned_query_ibc_channel_packet-receipt.md) - Query a packet receipt +* [axoned query ibc channel params](axoned_query_ibc_channel_params.md) - Query the current ibc channel parameters * [axoned query ibc channel unreceived-acks](axoned_query_ibc_channel_unreceived-acks.md) - Query all the unreceived acks associated with a channel * [axoned query ibc channel unreceived-packets](axoned_query_ibc_channel_unreceived-packets.md) - Query all the unreceived packets associated with a channel +* [axoned query ibc channel upgrade](axoned_query_ibc_channel_upgrade.md) - Query the upgrade +* [axoned query ibc channel upgrade-error](axoned_query_ibc_channel_upgrade-error.md) - Query the upgrade error diff --git a/docs/command/axoned_query_ibc_channel_params.md b/docs/command/axoned_query_ibc_channel_params.md new file mode 100644 index 00000000..26301376 --- /dev/null +++ b/docs/command/axoned_query_ibc_channel_params.md @@ -0,0 +1,32 @@ +## axoned query ibc channel params + +Query the current ibc channel parameters + +### Synopsis + +Query the current ibc channel parameters + +``` +axoned query ibc channel params [flags] +``` + +### Examples + +``` +axoned query ibc channel params +``` + +### Options + +``` + --grpc-addr string the gRPC endpoint to use for this chain + --grpc-insecure allow gRPC over insecure channels, if not 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 params + --node string : to CometBFT RPC interface for this chain (default "tcp://localhost:26657") + -o, --output string Output format (text|json) (default "text") +``` + +### SEE ALSO + +* [axoned query ibc channel](axoned_query_ibc_channel.md) - IBC channel query subcommands diff --git a/docs/command/axoned_query_ibc_channel_upgrade-error.md b/docs/command/axoned_query_ibc_channel_upgrade-error.md new file mode 100644 index 00000000..f9e897fd --- /dev/null +++ b/docs/command/axoned_query_ibc_channel_upgrade-error.md @@ -0,0 +1,33 @@ +## axoned query ibc channel upgrade-error + +Query the upgrade error + +### Synopsis + +Query the upgrade error for a given channel + +``` +axoned query ibc channel upgrade-error [port-id] [channel-id] [flags] +``` + +### Examples + +``` +axoned query ibc channel upgrade-error [port-id] [channel-id] +``` + +### Options + +``` + --grpc-addr string the gRPC endpoint to use for this chain + --grpc-insecure allow gRPC over insecure channels, if not 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 upgrade-error + --node string : to CometBFT RPC interface for this chain (default "tcp://localhost:26657") + -o, --output string Output format (text|json) (default "text") + --prove show proofs for the query results (default true) +``` + +### SEE ALSO + +* [axoned query ibc channel](axoned_query_ibc_channel.md) - IBC channel query subcommands diff --git a/docs/command/axoned_query_ibc_channel_upgrade.md b/docs/command/axoned_query_ibc_channel_upgrade.md new file mode 100644 index 00000000..4d240184 --- /dev/null +++ b/docs/command/axoned_query_ibc_channel_upgrade.md @@ -0,0 +1,33 @@ +## axoned query ibc channel upgrade + +Query the upgrade + +### Synopsis + +Query the upgrade for a given channel + +``` +axoned query ibc channel upgrade [port-id] [channel-id] [flags] +``` + +### Examples + +``` +axoned query ibc channel upgrade [port-id] [channel-id] +``` + +### Options + +``` + --grpc-addr string the gRPC endpoint to use for this chain + --grpc-insecure allow gRPC over insecure channels, if not 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 upgrade + --node string : to CometBFT RPC interface for this chain (default "tcp://localhost:26657") + -o, --output string Output format (text|json) (default "text") + --prove show proofs for the query results +``` + +### SEE ALSO + +* [axoned query ibc channel](axoned_query_ibc_channel.md) - IBC channel query subcommands diff --git a/docs/command/axoned_tx_ibc_channel.md b/docs/command/axoned_tx_ibc_channel.md index 0817e6e5..4d2551a7 100644 --- a/docs/command/axoned_tx_ibc_channel.md +++ b/docs/command/axoned_tx_ibc_channel.md @@ -15,3 +15,5 @@ axoned tx ibc channel [flags] ### SEE ALSO * [axoned tx ibc](axoned_tx_ibc.md) - IBC transaction subcommands +* [axoned tx ibc channel prune-acknowledgements](axoned_tx_ibc_channel_prune-acknowledgements.md) - Prune expired packet acknowledgements stored in IBC state +* [axoned tx ibc channel upgrade-channels](axoned_tx_ibc_channel_upgrade-channels.md) - Upgrade IBC channels diff --git a/docs/command/axoned_tx_ibc_channel_prune-acknowledgements.md b/docs/command/axoned_tx_ibc_channel_prune-acknowledgements.md new file mode 100644 index 00000000..bf15c489 --- /dev/null +++ b/docs/command/axoned_tx_ibc_channel_prune-acknowledgements.md @@ -0,0 +1,53 @@ +## axoned tx ibc channel prune-acknowledgements + +Prune expired packet acknowledgements stored in IBC state + +### Synopsis + +Prune expired packet acknowledgements and receipts stored in IBC state. Packet ackwnowledgements and + receipts are considered expired if a channel has been upgraded. + +``` +axoned tx ibc channel prune-acknowledgements [port] [channel] [limit] [flags] +``` + +### Examples + +``` +axoned tx ibc channel prune-acknowledgements transfer channel-0 1000 +``` + +### 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) (default "sync") + --chain-id string The network chain ID + --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 prune-acknowledgements + --keyring-backend string Select keyring's backend (os|file|kwallet|pass|test|memory) (default "os") + --keyring-dir string The client Keyring directory; if omitted, the default 'home' directory will be used + --ledger Use a connected Ledger device + --node string : to CometBFT rpc interface for this chain (default "tcp://localhost:26657") + --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) (default "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|textual), 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 +``` + +### SEE ALSO + +* [axoned tx ibc channel](axoned_tx_ibc_channel.md) - IBC channel transaction subcommands diff --git a/docs/command/axoned_tx_ibc_channel_upgrade-channels.md b/docs/command/axoned_tx_ibc_channel_upgrade-channels.md new file mode 100644 index 00000000..507b1567 --- /dev/null +++ b/docs/command/axoned_tx_ibc_channel_upgrade-channels.md @@ -0,0 +1,61 @@ +## axoned tx ibc channel upgrade-channels + +Upgrade IBC channels + +### Synopsis + +Submit a governance proposal to upgrade all open channels whose port matches a specified pattern +(the default is transfer), optionally, an exact list of comma separated channel IDs may be specified. + +``` +axoned tx ibc channel upgrade-channels [flags] +``` + +### Examples + +``` +axoned tx ibc channel upgrade-channels "{\"fee_version\":\"ics29-1\",\"app_version\":\"ics20-1\"}" --deposit 10stake +``` + +### 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) (default "sync") + --chain-id string The network chain ID + --channel-ids string a comma separated list of channel IDs to upgrade. + --deposit string The deposit to include with the governance proposal + --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) + --expedited set the expedited value for the governance proposal. + --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 upgrade-channels + --json specify true to output valid proposal.json contents, instead of submitting a governance proposal. + --keyring-backend string Select keyring's backend (os|file|kwallet|pass|test|memory) (default "os") + --keyring-dir string The client Keyring directory; if omitted, the default 'home' directory will be used + --ledger Use a connected Ledger device + --metadata string The metadata to include with the governance proposal + --node string : to CometBFT rpc interface for this chain (default "tcp://localhost:26657") + --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) (default "json") + --port-pattern string The pattern to use to match port ids. (default "transfer") + -s, --sequence uint The sequence number of the signing account (offline mode only) + --sign-mode string Choose sign mode (direct|amino-json|direct-aux|textual), this is an advanced feature + --summary string The summary to include with the governance proposal + --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 + --title string The title to put on the governance proposal + -y, --yes Skip tx broadcasting prompt confirmation +``` + +### SEE ALSO + +* [axoned tx ibc channel](axoned_tx_ibc_channel.md) - IBC channel transaction subcommands diff --git a/docs/command/axoned_tx_interchain-accounts_controller_register.md b/docs/command/axoned_tx_interchain-accounts_controller_register.md index 92dc6252..c8bef348 100644 --- a/docs/command/axoned_tx_interchain-accounts_controller_register.md +++ b/docs/command/axoned_tx_interchain-accounts_controller_register.md @@ -7,8 +7,8 @@ Register an interchain account on the provided connection. Register an account on the counterparty chain via the connection id from the source chain. Connection identifier should be for the source chain and the interchain account will be created on the counterparty chain. Callers are expected to -provide the appropriate application version string via \{version\} flag. Generates a new -port identifier using the provided owner string, binds to the port identifier and claims +provide the appropriate application version string via \{version\} flag and the desired ordering +via the \{ordering\} flag. Generates a new port identifier using the provided owner string, binds to the port identifier and claims the associated capability. ``` @@ -38,6 +38,7 @@ axoned tx interchain-accounts controller register [connection-id] [flags] --node string : to CometBFT rpc interface for this chain (default "tcp://localhost:26657") --note string Note to add a description to the transaction (previously --memo) --offline Offline mode (does not allow any online functionality) + --ordering string Channel ordering, can be one of: ORDER_ORDERED, ORDER_UNORDERED (default "ORDER_ORDERED") -o, --output string Output format (text|json) (default "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|textual), this is an advanced feature diff --git a/go.mod b/go.mod index f4daf31a..bcdb0f6c 100644 --- a/go.mod +++ b/go.mod @@ -27,7 +27,7 @@ require ( github.com/cosmos/cosmos-sdk v0.50.6 github.com/cosmos/gogoproto v1.4.12 github.com/cosmos/ibc-go/modules/capability v1.0.0 - github.com/cosmos/ibc-go/v8 v8.0.0 + github.com/cosmos/ibc-go/v8 v8.2.1 github.com/cucumber/gherkin/go/v26 v26.2.0 github.com/cucumber/godog v0.14.1 github.com/cucumber/messages/go/v21 v21.0.1 diff --git a/go.sum b/go.sum index 5a318c36..c928293f 100644 --- a/go.sum +++ b/go.sum @@ -424,8 +424,8 @@ github.com/cosmos/iavl v1.1.2 h1:zL9FK7C4L/P4IF1Dm5fIwz0WXCnn7Bp1M2FxH0ayM7Y= github.com/cosmos/iavl v1.1.2/go.mod h1:jLeUvm6bGT1YutCaL2fIar/8vGUE8cPZvh/gXEWDaDM= github.com/cosmos/ibc-go/modules/capability v1.0.0 h1:r/l++byFtn7jHYa09zlAdSeevo8ci1mVZNO9+V0xsLE= github.com/cosmos/ibc-go/modules/capability v1.0.0/go.mod h1:D81ZxzjZAe0ZO5ambnvn1qedsFQ8lOwtqicG6liLBco= -github.com/cosmos/ibc-go/v8 v8.0.0 h1:QKipnr/NGwc+9L7NZipURvmSIu+nw9jOIWTJuDBqOhg= -github.com/cosmos/ibc-go/v8 v8.0.0/go.mod h1:C6IiJom0F3cIQCD5fKwVPDrDK9j/xTu563AWuOmXois= +github.com/cosmos/ibc-go/v8 v8.2.1 h1:MTsnZZjxvGD4Fv5pYyx5UkELafSX0rlPt6IfsE2BpTQ= +github.com/cosmos/ibc-go/v8 v8.2.1/go.mod h1:wj3qx75iC/XNnsMqbPDCIGs0G6Y3E/lo3bdqCyoCy+8= github.com/cosmos/ics23/go v0.10.0 h1:iXqLLgp2Lp+EdpIuwXTYIQU+AiHj9mOC2X9ab++bZDM= github.com/cosmos/ics23/go v0.10.0/go.mod h1:ZfJSmng/TBNTBkFemHHHj5YY7VAU/MBU980F4VU1NG0= github.com/cosmos/keyring v1.2.0 h1:8C1lBP9xhImmIabyXW4c3vFjjLiBdGCmfLUfeZlV1Yo=