continued refactor

This commit is contained in:
Hardhat Chad
2024-06-29 12:39:11 +00:00
parent eaa90ae0ab
commit 9c1cc9babf
27 changed files with 122 additions and 87 deletions

13
core/api/src/event.rs Normal file
View File

@@ -0,0 +1,13 @@
use bytemuck::{Pod, Zeroable};
use crate::utils::impl_to_bytes;
#[repr(C)]
#[derive(Clone, Copy, Debug, PartialEq, Pod, Zeroable)]
pub struct MineEvent {
pub difficulty: u64,
pub reward: u64,
pub timing: i64,
}
impl_to_bytes!(MineEvent);