diff --git a/docs/command/axoned.md b/docs/command/axoned.md index bc31111d..31e8f8ab 100644 --- a/docs/command/axoned.md +++ b/docs/command/axoned.md @@ -26,6 +26,7 @@ Want to lean more about AXONE network? Complete documentation is available at: [ * [axoned genesis](axoned_genesis.md) - Application's genesis-related subcommands * [axoned init](axoned_init.md) - Initialize private validator, p2p, genesis, and application configuration files * [axoned keys](axoned_keys.md) - Manage your application's keys +* [axoned module-hash-by-height](axoned_module-hash-by-height.md) - Get module hashes at a given height * [axoned prune](axoned_prune.md) - Prune app history states by keeping the recent heights and deleting old heights * [axoned query](axoned_query.md) - Querying subcommands * [axoned rollback](axoned_rollback.md) - rollback Cosmos SDK and CometBFT state by one height diff --git a/docs/command/axoned_debug_pubkey-raw.md b/docs/command/axoned_debug_pubkey-raw.md index 0e9bc808..1fd77d55 100644 --- a/docs/command/axoned_debug_pubkey-raw.md +++ b/docs/command/axoned_debug_pubkey-raw.md @@ -5,14 +5,21 @@ Decode a ED25519 or secp256k1 pubkey from hex, base64, or bech32 ### Synopsis Decode a pubkey from hex, base64, or bech32. -Example: -$ axoned debug pubkey-raw TWFuIGlzIGRpc3Rpbmd1aXNoZWQsIG5vdCBvbmx5IGJ5IGhpcyByZWFzb24sIGJ1dCBieSB0aGlz -$ axoned debug pubkey-raw cosmos1e0jnq2sun3dzjh8p2xq95kk0expwmd7shwjpfg ``` axoned debug pubkey-raw [pubkey] -t [{ed25519, secp256k1}] [flags] ``` +### Examples + +``` + +axoned debug pubkey-raw 8FCA9D6D1F80947FD5E9A05309259746F5F72541121766D5F921339DD061174A +axoned debug pubkey-raw j8qdbR+AlH/V6aBTCSWXRvX3JUESF2bV+SEzndBhF0o= +axoned debug pubkey-raw cosmospub1zcjduepq3l9f6mglsz28l40f5pfsjfvhgm6lwf2pzgtkd40eyyeem5rpza9q47axrz + +``` + ### Options ``` diff --git a/docs/command/axoned_debug_raw-bytes.md b/docs/command/axoned_debug_raw-bytes.md index d9e1827d..acc7639e 100644 --- a/docs/command/axoned_debug_raw-bytes.md +++ b/docs/command/axoned_debug_raw-bytes.md @@ -6,11 +6,14 @@ Convert raw bytes output (eg. [10 21 13 255]) to hex Convert raw-bytes to hex. -Example: -$ axoned debug raw-bytes [72 101 108 108 111 44 32 112 108 97 121 103 114 111 117 110 100] +``` +axoned debug raw-bytes [flags] +``` + +### Examples ``` -axoned debug raw-bytes [raw-bytes] [flags] +axoned debug raw-bytes '[72 101 108 108 111 44 32 112 108 97 121 103 114 111 117 110 100]' ``` ### Options diff --git a/docs/command/axoned_genesis.md b/docs/command/axoned_genesis.md index 2416ffdc..75533b1a 100644 --- a/docs/command/axoned_genesis.md +++ b/docs/command/axoned_genesis.md @@ -16,6 +16,7 @@ axoned genesis [flags] * [axoned](axoned.md) - Axone - Orchestration Layer for AI * [axoned genesis add-genesis-account](axoned_genesis_add-genesis-account.md) - Add a genesis account to genesis.json +* [axoned genesis bulk-add-genesis-account](axoned_genesis_bulk-add-genesis-account.md) - Bulk add genesis accounts to genesis.json * [axoned genesis collect-gentxs](axoned_genesis_collect-gentxs.md) - Collect genesis txs and output a genesis.json file * [axoned genesis gentx](axoned_genesis_gentx.md) - Generate a genesis tx carrying a self delegation * [axoned genesis migrate](axoned_genesis_migrate.md) - Migrate genesis to a specified target version diff --git a/docs/command/axoned_genesis_bulk-add-genesis-account.md b/docs/command/axoned_genesis_bulk-add-genesis-account.md new file mode 100644 index 00000000..dfa4e824 --- /dev/null +++ b/docs/command/axoned_genesis_bulk-add-genesis-account.md @@ -0,0 +1,58 @@ +## axoned genesis bulk-add-genesis-account + +Bulk add genesis accounts to genesis.json + +### Synopsis + +Add genesis accounts in bulk to genesis.json. The provided account must specify +the account address and a list of initial coins. The list of initial tokens must +contain valid denominations. Accounts may optionally be supplied with vesting parameters. + +``` +axoned genesis bulk-add-genesis-account [/file/path.json] [flags] +``` + +### Examples + +``` +bulk-add-genesis-account accounts.json +where accounts.json is: +[ + { + "address": "cosmos139f7kncmglres2nf3h4hc4tade85ekfr8sulz5", + "coins": [ + { "denom": "umuon", "amount": "100000000" }, + { "denom": "stake", "amount": "200000000" } + ] + }, + { + "address": "cosmos1e0jnq2sun3dzjh8p2xq95kk0expwmd7shwjpfg", + "coins": [ + { "denom": "umuon", "amount": "500000000" } + ], + "vesting_amt": [ + { "denom": "umuon", "amount": "400000000" } + ], + "vesting_start": 1724711478, + "vesting_end": 1914013878 + } +] + +``` + +### Options + +``` + --append append the coins to an account already in the genesis.json file + --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 bulk-add-genesis-account + --home string The application home directory (default "/home/john/.axoned") + --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 genesis](axoned_genesis.md) - Application's genesis-related subcommands diff --git a/docs/command/axoned_module-hash-by-height.md b/docs/command/axoned_module-hash-by-height.md new file mode 100644 index 00000000..4acb3939 --- /dev/null +++ b/docs/command/axoned_module-hash-by-height.md @@ -0,0 +1,32 @@ +## axoned module-hash-by-height + +Get module hashes at a given height + +### Synopsis + +Get module hashes at a given height. This command is useful for debugging and verifying the state of the application at a given height. Daemon should not be running when calling this command. + +``` +axoned module-hash-by-height [height] [flags] +``` + +### Examples + +``` +axoned module-hash-by-height 16841115 +``` + +### 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 module-hash-by-height + --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](axoned.md) - Axone - Orchestration Layer for AI diff --git a/go.mod b/go.mod index f49b9564..7f750679 100644 --- a/go.mod +++ b/go.mod @@ -25,7 +25,7 @@ require ( github.com/cometbft/cometbft v0.38.12 github.com/cosmos/cosmos-db v1.0.2 github.com/cosmos/cosmos-proto v1.0.0-beta.5 - github.com/cosmos/cosmos-sdk v0.50.9 + github.com/cosmos/cosmos-sdk v0.50.10 github.com/cosmos/gogoproto v1.7.0 github.com/cosmos/ibc-go/modules/apps/callbacks v0.2.1-0.20231113120333-342c00b0f8bd github.com/cosmos/ibc-go/modules/capability v1.0.1 diff --git a/go.sum b/go.sum index 5cc54339..86efa93c 100644 --- a/go.sum +++ b/go.sum @@ -417,8 +417,8 @@ github.com/cosmos/cosmos-db v1.0.2 h1:hwMjozuY1OlJs/uh6vddqnk9j7VamLv+0DBlbEXbAK github.com/cosmos/cosmos-db v1.0.2/go.mod h1:Z8IXcFJ9PqKK6BIsVOB3QXtkKoqUOp1vRvPT39kOXEA= github.com/cosmos/cosmos-proto v1.0.0-beta.5 h1:eNcayDLpip+zVLRLYafhzLvQlSmyab+RC5W7ZfmxJLA= github.com/cosmos/cosmos-proto v1.0.0-beta.5/go.mod h1:hQGLpiIUloJBMdQMMWb/4wRApmI9hjHH05nefC0Ojec= -github.com/cosmos/cosmos-sdk v0.50.9 h1:gt2usjz0H0qW6KwAxWw7ZJ3XU8uDwmhN+hYG3nTLeSg= -github.com/cosmos/cosmos-sdk v0.50.9/go.mod h1:TMH6wpoYBcg7Cp5BEg8fneLr+8XloNQkf2MRNF9V6JE= +github.com/cosmos/cosmos-sdk v0.50.10 h1:zXfeu/z653tWZARr/jESzAEiCUYjgJwwG4ytnYWMoDM= +github.com/cosmos/cosmos-sdk v0.50.10/go.mod h1:6Eesrx3ZE7vxBZWpK++30H+Uc7Q4ahQWCL7JKU/LEdU= github.com/cosmos/go-bip39 v1.0.0 h1:pcomnQdrdH22njcAatO0yWojsUnCO3y2tNoV1cb6hHY= github.com/cosmos/go-bip39 v1.0.0/go.mod h1:RNJv0H/pOIVgxw6KS7QeX2a0Uo0aKUlfhZ4xuwvCdJw= github.com/cosmos/gogogateway v1.2.0 h1:Ae/OivNhp8DqBi/sh2A8a1D0y638GpL3tkmLQAiKxTE=