Skip to main content

tensor_eigen/args/
pool.rs

1use super::*;
2
3#[derive(Subcommand)]
4pub enum PoolSubcommands {
5    Create(PoolCreateArgs),
6    Edit(PoolEditArgs),
7}
8
9#[derive(ClapArgs)]
10pub struct PoolCreateArgs {
11    #[clap(flatten)]
12    pub write_options: WriteOptions,
13
14    /// Whitelist public key.
15    pub whitelist: Pubkey,
16
17    /// Path to the pool config file.
18    pub pool_config_path: PathBuf,
19}
20
21#[derive(ClapArgs)]
22pub struct PoolEditArgs {
23    #[clap(flatten)]
24    pub write_options: WriteOptions,
25
26    /// Pool public key.
27    pub pool: Pubkey,
28
29    /// Path to the edit pool config file.
30    pub edit_pool_config_path: PathBuf,
31}