tensor_eigen/args/
pool.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
use super::*;

#[derive(Subcommand)]
pub enum PoolSubcommands {
    Create(PoolCreateArgs),
    Edit(PoolEditArgs),
}

#[derive(ClapArgs)]
pub struct PoolCreateArgs {
    #[clap(flatten)]
    pub write_options: WriteOptions,

    /// Whitelist public key.
    pub whitelist: Pubkey,

    /// Path to the pool config file.
    pub pool_config_path: PathBuf,
}

#[derive(ClapArgs)]
pub struct PoolEditArgs {
    #[clap(flatten)]
    pub write_options: WriteOptions,

    /// Pool public key.
    pub pool: Pubkey,

    /// Path to the edit pool config file.
    pub edit_pool_config_path: PathBuf,
}