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 program id for the protocol swaps.
20    pub swap_program: Pubkey,
21
22    /// The address of the entropy var account.
23    pub var_address: Pubkey,
24
25    /// Buffer array
26    pub buffer: u64,
27}
28
29impl Config {
30    pub fn pda() -> (Pubkey, u8) {
31        config_pda()
32    }
33}
34
35account!(OreAccount, Config);