mirror of
https://github.com/d0zingcat/ore.git
synced 2026-05-22 07:26:52 +00:00
config
This commit is contained in:
@@ -14,9 +14,10 @@ pub enum OreInstruction {
|
||||
Withdraw = 7,
|
||||
|
||||
// Admin
|
||||
SetAdmin = 10,
|
||||
SetFeeCollector = 9,
|
||||
SetFeeRate = 8,
|
||||
SetAdmin = 8,
|
||||
SetBlockLimit = 9,
|
||||
SetFeeCollector = 10,
|
||||
SetFeeRate = 11,
|
||||
}
|
||||
|
||||
#[repr(C)]
|
||||
@@ -76,6 +77,12 @@ pub struct SetAdmin {
|
||||
pub admin: [u8; 32],
|
||||
}
|
||||
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy, Debug, Pod, Zeroable)]
|
||||
pub struct SetBlockLimit {
|
||||
pub block_limit: [u8; 8],
|
||||
}
|
||||
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy, Debug, Pod, Zeroable)]
|
||||
pub struct SetFeeCollector {
|
||||
@@ -97,5 +104,6 @@ instruction!(OreInstruction, Swap);
|
||||
instruction!(OreInstruction, Uncommit);
|
||||
instruction!(OreInstruction, Withdraw);
|
||||
instruction!(OreInstruction, SetAdmin);
|
||||
instruction!(OreInstruction, SetBlockLimit);
|
||||
instruction!(OreInstruction, SetFeeCollector);
|
||||
instruction!(OreInstruction, SetFeeRate);
|
||||
|
||||
Reference in New Issue
Block a user