The wcn_operator application allows node operators to manage their smart-contract state. The application can be run from the repository via:
$ cargo run --bin wcn_operator -- --help
WCN Node Operator CLI
Usage: wcn_operator <COMMAND>
Commands:
view Get overview of your Node Operator
key Key management
node Node management
client Client management
maintenance Maintenance scheduling
help Print this message or the help of the given subcommand(s)
Options:
-h, --help Print help
-V, --version Print versionNOTE: All
wcn_operatorcommands print help messages when--helpis passed as argument.
Provides a view of your nodes:
$ cargo run --bin wcn_operator -- view$ cargo run --bin wcn_operator -- client set <options>$ cargo run --bin wcn_operator -- client remove <options>$ cargo run --bin wcn_operator -- node add <options>$ cargo run --bin wcn_operator -- node update <options>$ cargo run --bin wcn_operator -- node remove <options>Maintenance mode allows you to signal the cluster that your setup could be offline while under maintenance. This is useful for e.g. updating the database.
NOTE: only one Node Operator is allowed to be in maintenance mode at a given time.
Signals to the cluster that you have entered maintenance mode:
$ cargo run --bin wcn_operator -- maintenance start --private-key <PRIVATE_KEY> --encryption-key <ENCRYPTION_KEY> --contract-address <CONTRACT_ADDRESS> --rpc-provider-url <RPC_PROVIDER_URL>Signals to the cluster that you have exited maintenance mode:
$ cargo run --bin wcn_operator -- maintenance finish --private-key <PRIVATE_KEY> --encryption-key <ENCRYPTION_KEY> --contract-address <CONTRACT_ADDRESS> --rpc-provider-url <RPC_PROVIDER_URL>