nym_cli_commands/validator/account/
mod.rs

1// Copyright 2023 - Nym Technologies SA <contact@nymtech.net>
2// SPDX-License-Identifier: Apache-2.0
3
4use clap::{Args, Subcommand};
5
6pub mod balance;
7pub mod create;
8pub mod pubkey;
9pub mod send;
10pub mod send_multiple;
11
12#[derive(Debug, Args)]
13#[clap(args_conflicts_with_subcommands = true, subcommand_required = true)]
14pub struct Account {
15    #[clap(subcommand)]
16    pub command: Option<AccountCommands>,
17}
18
19#[derive(Debug, Subcommand)]
20pub enum AccountCommands {
21    /// Create a new mnemonic - note, this account does not appear on the chain until the account id is used in a transaction
22    Create(crate::validator::account::create::Args),
23    /// Gets the balance of an account
24    Balance(crate::validator::account::balance::Args),
25    /// Gets the public key of an account
26    PubKey(crate::validator::account::pubkey::Args),
27    /// Sends tokens to another account
28    Send(crate::validator::account::send::Args),
29    /// Batch multiple token sends
30    SendMultiple(crate::validator::account::send_multiple::Args),
31}