mirror of
https://github.com/d0zingcat/ore.git
synced 2026-05-17 15:10:21 +00:00
27 lines
492 B
Rust
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);
|