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
use super::*;

pub const PARALLEL_LIMIT: usize = 50;
pub type HolderResults = Vec<Result<Holder>>;

#[derive(Clone, Debug, Eq, PartialEq, PartialOrd, Ord, Serialize)]
pub struct Holder {
    pub owner_wallet: String,
    pub mint_account: String,
    pub metadata_account: String,
    pub associated_token_address: String,
}

#[derive(Debug, Serialize)]
pub struct CandyMachineProgramAccounts {
    pub config_accounts: Vec<ConfigAccount>,
    pub candy_machine_accounts: Vec<CandyMachineAccount>,
}

#[derive(Debug, Serialize)]
pub struct ConfigAccount {
    pub address: String,
    pub data_len: usize,
}

#[derive(Debug, Serialize)]
pub struct CandyMachineAccount {
    pub address: String,
    pub data_len: usize,
}

pub struct SnapshotMintsArgs {
    pub creator: Option<String>,
    pub position: usize,
    pub update_authority: Option<String>,
    pub v2: bool,
    pub v3: bool,
    pub allow_unverified: bool,
    pub output: String,
}

pub struct SnapshotHoldersArgs {
    pub creator: Option<String>,
    pub position: usize,
    pub update_authority: Option<String>,
    pub mint_accounts_file: Option<String>,
    pub v2: bool,
    pub v3: bool,
    pub allow_unverified: bool,
    pub output: String,
}