1use const_crypto::ed25519;
2use solana_program::{pubkey, pubkey::Pubkey};
3
4pub const ADMIN_ADDRESS: Pubkey = pubkey!("HBUh9g46wk2X89CvaNN15UmsznP59rh6od1h8JwYAopk");
6
7pub const TOKEN_DECIMALS: u8 = 11;
10
11pub const ONE_ORE: u64 = 10u64.pow(TOKEN_DECIMALS as u32);
13
14pub const ONE_MINUTE: i64 = 60;
16
17pub const ONE_HOUR: i64 = 60 * ONE_MINUTE;
19
20pub const ONE_DAY: i64 = 24 * ONE_HOUR;
22
23pub const ONE_WEEK: i64 = 7 * ONE_DAY;
25
26pub const ONE_MINUTE_SLOTS: u64 = 150;
28
29pub const ONE_HOUR_SLOTS: u64 = 60 * ONE_MINUTE_SLOTS;
31
32pub const TWELVE_HOURS_SLOTS: u64 = 12 * ONE_HOUR_SLOTS;
34
35pub const ONE_DAY_SLOTS: u64 = 24 * ONE_HOUR_SLOTS;
37
38pub const ONE_WEEK_SLOTS: u64 = 7 * ONE_DAY_SLOTS;
40
41pub const INTERMISSION_SLOTS: u64 = 35;
43
44pub const MAX_SUPPLY: u64 = ONE_ORE * 5_000_000;
46
47pub const AUTOMATION: &[u8] = b"automation";
49
50pub const BOARD: &[u8] = b"board";
52
53pub const CONFIG: &[u8] = b"config";
55
56pub const MINER: &[u8] = b"miner";
58
59pub const SEEKER: &[u8] = b"seeker";
61
62pub const SQUARE: &[u8] = b"square";
64
65pub const STAKE: &[u8] = b"stake";
67
68pub const ROUND: &[u8] = b"round";
70
71pub const TREASURY: &[u8] = b"treasury";
73
74const PROGRAM_ID: [u8; 32] = unsafe { *(&crate::id() as *const Pubkey as *const [u8; 32]) };
76
77pub const CONFIG_ADDRESS: Pubkey =
79 Pubkey::new_from_array(ed25519::derive_program_address(&[CONFIG], &PROGRAM_ID).0);
80
81pub const MINT_ADDRESS: Pubkey = pubkey!("oreoU2P8bN6jkk3jbaiVxYnG1dCXcYxwhwyK9jSybcp");
83
84pub const SOL_MINT: Pubkey = pubkey!("So11111111111111111111111111111111111111112");
86
87pub const SPLIT_ADDRESS: Pubkey = pubkey!("SpLiT11111111111111111111111111111111111112");
89
90pub const TREASURY_ADDRESS: Pubkey =
92 Pubkey::new_from_array(ed25519::derive_program_address(&[TREASURY], &PROGRAM_ID).0);
93
94pub const TREASURY_BUMP: u8 = ed25519::derive_program_address(&[TREASURY], &PROGRAM_ID).1;
96
97pub const DENOMINATOR_BPS: u64 = 10_000;
99
100pub const BOOST_RESERVE_TOKEN: Pubkey = pubkey!("Gce36ZUsBDJsoLrfCBxUB5Sfq2DsGunofStvxFx6rBiD");
102
103pub const CHECKPOINT_FEE: u64 = 10_000;