admin functions

This commit is contained in:
Hardhat Chad
2025-08-12 16:46:05 -07:00
parent 7fb51d5d36
commit 99b2477574
4 changed files with 70 additions and 3 deletions

View File

@@ -15,9 +15,10 @@ pub enum OreInstruction {
// Admin
SetAdmin = 8,
SetFeeCollector = 9,
SetFeeRate = 10,
SetSniperFeeDuration = 11,
SetBlockDuration = 9,
SetFeeCollector = 10,
SetFeeRate = 11,
SetSniperFeeDuration = 12,
}
#[repr(C)]
@@ -84,6 +85,12 @@ pub struct SetAdmin {
pub admin: [u8; 32],
}
#[repr(C)]
#[derive(Clone, Copy, Debug, Pod, Zeroable)]
pub struct SetBlockDuration {
pub block_duration: [u8; 8],
}
#[repr(C)]
#[derive(Clone, Copy, Debug, Pod, Zeroable)]
pub struct SetFeeCollector {
@@ -111,6 +118,7 @@ instruction!(OreInstruction, Log);
instruction!(OreInstruction, Mine);
instruction!(OreInstruction, Swap);
instruction!(OreInstruction, SetAdmin);
instruction!(OreInstruction, SetBlockDuration);
instruction!(OreInstruction, SetFeeCollector);
instruction!(OreInstruction, SetFeeRate);
instruction!(OreInstruction, SetSniperFeeDuration);