This commit is contained in:
Hardhat Chad
2025-06-10 07:59:45 -07:00
parent fb285226fb
commit 5350eae0b0
3 changed files with 17 additions and 17 deletions

View File

@@ -6,10 +6,10 @@ pub enum OreInstruction {
Open = 0,
Close = 1,
Commit = 2,
Decommit = 3,
Deposit = 4,
Mine = 5,
Swap = 6,
Deposit = 3,
Mine = 4,
Swap = 5,
Uncommit = 6,
Withdraw = 7,
}
@@ -31,12 +31,6 @@ pub struct Commit {
pub fee: [u8; 8],
}
#[repr(C)]
#[derive(Clone, Copy, Debug, Pod, Zeroable)]
pub struct Decommit {
pub amount: [u8; 8],
}
#[repr(C)]
#[derive(Clone, Copy, Debug, Pod, Zeroable)]
pub struct Deposit {
@@ -57,6 +51,12 @@ pub struct Swap {
pub precision: u8,
}
#[repr(C)]
#[derive(Clone, Copy, Debug, Pod, Zeroable)]
pub struct Uncommit {
pub amount: [u8; 8],
}
#[repr(C)]
#[derive(Clone, Copy, Debug, Pod, Zeroable)]
pub struct Withdraw {
@@ -66,8 +66,8 @@ pub struct Withdraw {
instruction!(OreInstruction, Open);
instruction!(OreInstruction, Close);
instruction!(OreInstruction, Commit);
instruction!(OreInstruction, Decommit);
instruction!(OreInstruction, Deposit);
instruction!(OreInstruction, Mine);
instruction!(OreInstruction, Swap);
instruction!(OreInstruction, Uncommit);
instruction!(OreInstruction, Withdraw);