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
use ed25519;
use ;
// Test initializer (mac::id.json)
// pub const INITIALIZER_ADDRESS: Pubkey = pubkey!("Ac2ev4ofDx61tuSJCgq9ToSBfVwHD2a1FVJf6p7TAqiB");
// Test initializer (mac&hp::test-id.json)
pub const INITIALIZER_ADDRESS: Pubkey = pubkey!;
// The authority allowed to initialize the program.
// pub const INITIALIZER_ADDRESS: Pubkey = pubkey!("staryJacbXodPh4WfwVtgA5jkJhvsMHERtkdttnLEHc");
pub const MAX_FEE_BASIS_POINTS: u16 = 300; // 3% max
/// SPL Token-2022 program id. Declared here (instead of pulling in
/// `spl-token-2022`) to avoid an extra on-chain dependency.
pub const TOKEN_2022_PROGRAM_ID: Pubkey = pubkey!;
/// The seed of the config account PDA.
pub const CONFIG: & = b"config";
/// The seed of the SOL storage PDA.
pub const SOL_STORAGE: & = b"sol_storage";
/// The seed of the SplitVault PDA.
pub const VAULT: & = b"vault";
/// Seed for the authority transfer proposal PDA.
pub const AUTHORITY_TRANSFER: & = b"authority_transfer";
/// Seed of the FeeShard account PDA.
pub const FEE_SHARD: & = b"fee_shard";
/// Seed of the SOL storage for a FeeShard.
pub const FEE_SHARD_SOL: & = b"fee_shard_sol";
// Mandatory delay between `UpdateAuthority` (propose) and `AcceptAuthority`.
// Delay before a proposed authority transfer can be accepted (in seconds).
// Production value: 2 days (48 hours = 2 * 24 * 60 * 60)
// pub const AUTHORITY_TRANSFER_DELAY_SECONDS: i64 = 172_800;
/// Temporary delay for Devnet Testing (3 minutes = 180 seconds)
pub const AUTHORITY_TRANSFER_DELAY_SECONDS: i64 = 180;
/// Program id for const pda derivations
const PROGRAM_ID: = unsafe ;
/// The address of the config account.
pub const CONFIG_ADDRESS: Pubkey =
new_from_array;