Files
ore/api/src/state/board.rs
Hardhat Chad 3a9703d6e1 Hardhat/split (#134)
* split

* consts

* cleanup
2025-10-03 13:17:56 -05:00

27 lines
492 B
Rust

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);