ore_api/state/config.rs
1use steel::*;
2
3use super::OreAccount;
4
5/// Config is a singleton account which manages program global variables.
6#[repr(C)]
7#[derive(Clone, Copy, Debug, PartialEq, Pod, Zeroable)]
8pub struct Config {
9 /// The base reward rate paid out for a hash of minimum difficulty.
10 pub base_reward_rate: u64,
11
12 /// The timestamp of the last reset.
13 pub last_reset_at: i64,
14
15 /// The minimum accepted difficulty.
16 pub min_difficulty: u64,
17
18 /// The target emissions rate in ORE/min.
19 pub target_emmissions_rate: u64,
20}
21
22account!(OreAccount, Config);