ore_api/state/config.rs
1use steel::*;
2
3use crate::state::config_pda;
4
5use super::OreAccount;
6
7#[repr(C)]
8#[derive(Clone, Copy, Debug, PartialEq, Pod, Zeroable)]
9pub struct Config {
10 /// The address that can update the config.
11 pub admin: Pubkey,
12
13 /// The adress with authority to call bury.
14 pub bury_authority: Pubkey,
15
16 /// The address that receives admin fees.
17 pub fee_collector: Pubkey,
18
19 /// The last boost timestamp.
20 pub last_boost: i64,
21
22 /// Whether the new rng system is enabled.
23 pub is_new_rng_enabled: u64,
24}
25
26impl Config {
27 pub fn pda() -> (Pubkey, u8) {
28 config_pda()
29 }
30}
31
32account!(OreAccount, Config);