mirror of
https://github.com/d0zingcat/ore.git
synced 2026-05-31 15:11:11 +00:00
miner migration
This commit is contained in:
@@ -19,6 +19,9 @@ pub enum OreInstruction {
|
||||
SetFeeCollector = 10,
|
||||
SetFeeRate = 11,
|
||||
SetSniperFeeDuration = 12,
|
||||
|
||||
// Migration
|
||||
MigrateMinerAccount = 13,
|
||||
}
|
||||
|
||||
#[repr(C)]
|
||||
@@ -100,6 +103,12 @@ pub struct SetSniperFeeDuration {
|
||||
pub sniper_fee_duration: [u8; 8],
|
||||
}
|
||||
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy, Debug, Pod, Zeroable)]
|
||||
pub struct MigrateMinerAccount {
|
||||
pub authority: [u8; 32],
|
||||
}
|
||||
|
||||
instruction!(OreInstruction, Claim);
|
||||
instruction!(OreInstruction, Open);
|
||||
instruction!(OreInstruction, Close);
|
||||
@@ -113,3 +122,4 @@ instruction!(OreInstruction, SetBlockDuration);
|
||||
instruction!(OreInstruction, SetFeeCollector);
|
||||
instruction!(OreInstruction, SetFeeRate);
|
||||
instruction!(OreInstruction, SetSniperFeeDuration);
|
||||
instruction!(OreInstruction, MigrateMinerAccount);
|
||||
|
||||
Reference in New Issue
Block a user