This project aims to provide an automated tool to deal with daily maintenance tasks of octopus network.
You can run oct-cli in command and finish some functions interactively, eg:
After the interactive program is executed, the command line parameters will be printed, and next time you can skip the interaction and use the command line directly.
USAGE:
oct-cli deploy-or-upgrade [SUBCOMMAND]
FLAGS:
-h, --help Prints help information
SUBCOMMANDS:
mainnet
testnet
example
- How to upgrade anchor contract from v2.1.0 to v2.2.0 in account: anchorxsb.testnet:
oct-cli deploy-or-upgrade testnet select-rpc block-pi select-accounts manual-select-accounts --account-ids anchorxsb.testnet upgrade /Users/xushenbao/project/blockchian/octopus/oct-cli-rs/res/appchain_anchor_v2.1.0.wasm migrate_state {}
USAGE:
oct-cli clean-state [SUBCOMMAND]
FLAGS:
-h, --help Prints help information
SUBCOMMANDS:
mainnet
testnet
example
- Clean up
anchorxsb.testnet
:
oct-cli clean-state testnet select-rpc block-pi select-accounts manual-select-accounts --account-ids anchorxsb.testnet clean-state y
oct-cli-check-reward
USAGE:
oct-cli check-reward [SUBCOMMAND]
FLAGS:
-h, --help Prints help information
SUBCOMMANDS:
mainnet
testnet
- Check unprofitable validator of all appchain in mainnet:
oct-cli check-reward mainnet select-rpc block-pi input-registry-account octopus-registry.near
The result is like: