Files
ore/api/src/event.rs
Hardhat Chad f0580a2e31 serde
2025-09-19 10:40:33 -07:00

45 lines
1.0 KiB
Rust

use serde::{Deserialize, Serialize};
use steel::*;
pub enum OreEvent {
Reset = 0,
}
#[repr(C)]
#[derive(Clone, Copy, Debug, Default, PartialEq, Pod, Zeroable, Serialize, Deserialize)]
pub struct ResetEvent {
/// The event discriminator.
pub disc: u64,
/// The block that was opened for trading.
pub round_id: u64,
/// The start slot of the next block.
pub start_slot: u64,
/// The end slot of the next block.
pub end_slot: u64,
/// The winning square of the round.
pub winning_square: u64,
/// The top miner of the round.
pub top_miner: Pubkey,
/// The total amount of SOL prospected in the round.
pub total_prospects: u64,
/// The total amount of SOL put in the ORE vault.
pub total_vaulted: u64,
/// The total amount of SOL won by miners for the round.
pub total_winnings: u64,
/// The total amount of ORE minted for the round.
pub total_minted: u64,
/// The timestamp of the event.
pub ts: i64,
}
event!(ResetEvent);