ore_api/state/
config.rs

1use serde::{Deserialize, Serialize};
2use steel::*;
3
4use crate::state::config_pda;
5
6use super::OreAccount;
7
8#[repr(C)]
9#[derive(Clone, Copy, Debug, PartialEq, Pod, Zeroable, Serialize, Deserialize)]
10pub struct Config {
11    /// The address that can update the config.
12    pub admin: Pubkey,
13
14    /// The adress with authority to call bury.
15    pub bury_authority: Pubkey,
16
17    /// The address that receives admin fees.
18    pub fee_collector: Pubkey,
19
20    /// The program id for the protocol swaps.
21    pub swap_program: Pubkey,
22
23    /// The address of the entropy var account.
24    pub var_address: Pubkey,
25
26    /// Buffer array
27    pub buffer: u64,
28}
29
30impl Config {
31    pub fn pda() -> (Pubkey, u8) {
32        config_pda()
33    }
34}
35
36account!(OreAccount, Config);