mirror of
https://github.com/d0zingcat/ore.git
synced 2026-06-04 07:36:49 +00:00
admin functions
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user