mirror of
https://github.com/d0zingcat/ore.git
synced 2026-05-14 07:26:51 +00:00
26 lines
612 B
Rust
26 lines
612 B
Rust
use steel::*;
|
|
|
|
use super::OreAccount;
|
|
|
|
/// Config is a singleton account which manages program global variables.
|
|
#[repr(C)]
|
|
#[derive(Clone, Copy, Debug, PartialEq, Pod, Zeroable)]
|
|
pub struct Config {
|
|
/// The timestamp of the last reset.
|
|
pub last_reset_at: i64,
|
|
|
|
/// The best difficulty score of this epoch.
|
|
pub best_difficulty: u64,
|
|
|
|
/// The proof of the best submitted hash of this epoch.
|
|
pub best_proof: Pubkey,
|
|
|
|
/// The challenge of this epoch.
|
|
pub challenge: [u8; 32],
|
|
|
|
/// The target emissions rate in ORE/min.
|
|
pub block_reward: u64,
|
|
}
|
|
|
|
account!(OreAccount, Config);
|