use steel::*; use crate::state::board_pda; use super::OreAccount; #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq, Pod, Zeroable)] pub struct Board { /// The current round number. pub round_id: u64, /// The slot at which the current round starts mining. pub start_slot: u64, /// The slot at which the current round ends mining. pub end_slot: u64, } impl Board { pub fn pda(&self) -> (Pubkey, u8) { board_pda() } } account!(OreAccount, Board);