tensor_eigen/args/
whitelist.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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
use super::*;

#[derive(Subcommand)]
pub enum WhitelistSubcommands {
    Compare(WhitelistCompareArgs),
    Create(WhitelistCreateArgs),
    Update(WhitelistUpdateArgs),
}

#[derive(ClapArgs)]
pub struct WhitelistCompareArgs {
    #[clap(flatten)]
    pub read_options: ReadOptions,

    /// List file path.
    pub list: Option<PathBuf>,

    /// Verbose output.
    #[arg(short, long)]
    pub verbose: bool,
}

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

    /// Whitelist config path.
    pub whitelist_config_path: PathBuf,

    /// Namespace path.
    pub namespace_path: Option<PathBuf>,
}

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

    /// Whitelist address.
    pub whitelist_address: Pubkey,

    /// New conditions path.
    #[arg(short = 'c', long)]
    pub new_conditions_path: Option<PathBuf>,

    /// New update authority json file path.
    #[arg(short = 'u', long)]
    pub new_update_authority_path: Option<PathBuf>,

    /// New freeze authority.
    #[arg(short = 'f', long)]
    pub new_freeze_authority: Option<Pubkey>,
}