dual_airdrop/common.rs
1use anchor_lang::prelude::*;
2
3#[account]
4pub struct State {
5 /// Fields were used in a previous version. Eventually will remove on next
6 /// major release.
7 pub unused_verifier_program: Pubkey,
8 pub unused_verifier_state: Pubkey,
9 pub unused_verifier_instruction_prefix: [u8; 8],
10
11 /// Tokens to be airdropped and the bump for the token account.
12 pub vault: Pubkey,
13 pub vault_bump: u8,
14
15 /// Seed and bump for this account. Should not be needed, but saved for
16 /// future use.
17 pub state_seed: [u8; 32],
18 pub state_bump: u8,
19
20 /// Required signer when closing.
21 pub close_authority: Pubkey,
22
23 /// Verifier calls into this program with a CPI.
24 pub verifier_signature: Pubkey,
25
26 /// Reserved for any future upgrades.
27 pub unused_padding: [u8; 32],
28}