set executor

This commit is contained in:
Hardhat Chad
2025-09-23 11:21:30 -07:00
parent 40e2889f97
commit 3abe0e080b
4 changed files with 41 additions and 52 deletions

View File

@@ -11,12 +11,12 @@ pub enum OreInstruction {
Initialize = 4,
Log = 5,
Reset = 7,
Reimburse = 8,
SetExecutor = 9,
// Admin
Bury = 9,
SetAdmin = 10,
SetFeeCollector = 11,
Bury = 10,
SetAdmin = 11,
SetFeeCollector = 12,
// Seeker
ClaimSeeker = 14,
@@ -78,6 +78,12 @@ pub struct Uncommit {
pub amount: [u8; 8],
}
#[repr(C)]
#[derive(Clone, Copy, Debug, Pod, Zeroable)]
pub struct SetExecutor {
pub executor: [u8; 32],
}
#[repr(C)]
#[derive(Clone, Copy, Debug, Pod, Zeroable)]
pub struct SetAdmin {
@@ -106,12 +112,6 @@ pub struct Bury {
#[derive(Clone, Copy, Debug, Pod, Zeroable)]
pub struct ClaimSeeker {}
#[repr(C)]
#[derive(Clone, Copy, Debug, Pod, Zeroable)]
pub struct Reimburse {
pub amount: [u8; 8],
}
instruction!(OreInstruction, Boost);
instruction!(OreInstruction, ClaimSOL);
instruction!(OreInstruction, ClaimORE);
@@ -120,7 +120,7 @@ instruction!(OreInstruction, Initialize);
instruction!(OreInstruction, Log);
instruction!(OreInstruction, Bury);
instruction!(OreInstruction, Reset);
instruction!(OreInstruction, Reimburse);
instruction!(OreInstruction, SetExecutor);
instruction!(OreInstruction, SetAdmin);
instruction!(OreInstruction, SetFeeCollector);
instruction!(OreInstruction, ClaimSeeker);