scaffold bury ix

This commit is contained in:
Hardhat Chad
2025-05-23 17:52:47 -07:00
parent b5a50622a2
commit e942e7ae5b
11 changed files with 146 additions and 9 deletions

View File

@@ -5,9 +5,10 @@ use steel::*;
pub enum OreInstruction {
// User
Bet = 0,
Close = 1,
Payout = 2,
Reset = 3,
Bury = 1,
Close = 2,
Payout = 3,
Reset = 4,
// Admin
Initialize = 100,
@@ -20,6 +21,10 @@ pub struct Bet {
pub seed: [u8; 32],
}
#[repr(C)]
#[derive(Clone, Copy, Debug, Pod, Zeroable)]
pub struct Bury {}
#[repr(C)]
#[derive(Clone, Copy, Debug, Pod, Zeroable)]
pub struct Close {}
@@ -37,6 +42,7 @@ pub struct Payout {}
pub struct Initialize {}
instruction!(OreInstruction, Bet);
instruction!(OreInstruction, Bury);
instruction!(OreInstruction, Close);
instruction!(OreInstruction, Payout);
instruction!(OreInstruction, Reset);