Skip to content

Latest commit

 

History

History
74 lines (55 loc) · 1.7 KB

README.md

File metadata and controls

74 lines (55 loc) · 1.7 KB

oct-cli-rs

This project aims to provide an automated tool to deal with daily maintenance tasks of octopus network.

Usage

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.

Deploy or Upgrade

USAGE:
    oct-cli deploy-or-upgrade [SUBCOMMAND]

FLAGS:
    -h, --help    Prints help information

SUBCOMMANDS:
    mainnet    
    testnet 

example

  1. 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 {}

Clean up states

USAGE:
    oct-cli clean-state [SUBCOMMAND]

FLAGS:
    -h, --help    Prints help information

SUBCOMMANDS:
    mainnet    
    testnet 

example

  1. 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

Check

Usage

oct-cli-check-reward 

USAGE:
    oct-cli check-reward [SUBCOMMAND]

FLAGS:
    -h, --help    Prints help information

SUBCOMMANDS:
    mainnet    
    testnet 

Example

  1. 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:

img.png