mirror of
https://github.com/d0zingcat/ore.git
synced 2026-05-14 07:26:51 +00:00
Delete deprecated interfaces (#119)
* delete deprecated interfaces * bump version
This commit is contained in:
@@ -9,11 +9,7 @@ pub enum OreInstruction {
|
||||
Mine = 2,
|
||||
Open = 3,
|
||||
Reset = 4,
|
||||
#[deprecated(since = "2.4.0", note = "Please stake with the boost program")]
|
||||
Stake = 5,
|
||||
Update = 6,
|
||||
#[deprecated(since = "2.6.0", note = "v1 tokens are no longer eligable to upgrade")]
|
||||
Upgrade = 7,
|
||||
Update = 5,
|
||||
|
||||
// Admin
|
||||
Initialize = 100,
|
||||
@@ -38,68 +34,24 @@ pub struct Mine {
|
||||
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy, Debug, Pod, Zeroable)]
|
||||
pub struct Open {
|
||||
#[deprecated(since = "2.5.0", note = "Bump no longer used")]
|
||||
pub bump: u8,
|
||||
}
|
||||
pub struct Open {}
|
||||
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy, Debug, Pod, Zeroable)]
|
||||
pub struct Reset {}
|
||||
|
||||
#[deprecated(since = "2.4.0", note = "Please stake with the boost program")]
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy, Debug, Pod, Zeroable)]
|
||||
pub struct Stake {
|
||||
pub amount: [u8; 8],
|
||||
}
|
||||
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy, Debug, Pod, Zeroable)]
|
||||
pub struct Update {}
|
||||
|
||||
#[deprecated(since = "2.6.0", note = "v1 tokens are no longer eligable to upgrade")]
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy, Debug, Pod, Zeroable)]
|
||||
pub struct Upgrade {
|
||||
pub amount: [u8; 8],
|
||||
}
|
||||
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy, Debug, Pod, Zeroable)]
|
||||
pub struct Initialize {
|
||||
#[deprecated(since = "2.5.0", note = "Bump no longer used")]
|
||||
pub bus_0_bump: u8,
|
||||
#[deprecated(since = "2.5.0", note = "Bump no longer used")]
|
||||
pub bus_1_bump: u8,
|
||||
#[deprecated(since = "2.5.0", note = "Bump no longer used")]
|
||||
pub bus_2_bump: u8,
|
||||
#[deprecated(since = "2.5.0", note = "Bump no longer used")]
|
||||
pub bus_3_bump: u8,
|
||||
#[deprecated(since = "2.5.0", note = "Bump no longer used")]
|
||||
pub bus_4_bump: u8,
|
||||
#[deprecated(since = "2.5.0", note = "Bump no longer used")]
|
||||
pub bus_5_bump: u8,
|
||||
#[deprecated(since = "2.5.0", note = "Bump no longer used")]
|
||||
pub bus_6_bump: u8,
|
||||
#[deprecated(since = "2.5.0", note = "Bump no longer used")]
|
||||
pub bus_7_bump: u8,
|
||||
#[deprecated(since = "2.5.0", note = "Bump no longer used")]
|
||||
pub config_bump: u8,
|
||||
#[deprecated(since = "2.5.0", note = "Bump no longer used")]
|
||||
pub metadata_bump: u8,
|
||||
#[deprecated(since = "2.5.0", note = "Bump no longer used")]
|
||||
pub mint_bump: u8,
|
||||
#[deprecated(since = "2.5.0", note = "Bump no longer used")]
|
||||
pub treasury_bump: u8,
|
||||
}
|
||||
pub struct Initialize {}
|
||||
|
||||
instruction!(OreInstruction, Claim);
|
||||
instruction!(OreInstruction, Close);
|
||||
instruction!(OreInstruction, Mine);
|
||||
instruction!(OreInstruction, Open);
|
||||
instruction!(OreInstruction, Reset);
|
||||
instruction!(OreInstruction, Stake);
|
||||
instruction!(OreInstruction, Update);
|
||||
instruction!(OreInstruction, Upgrade);
|
||||
instruction!(OreInstruction, Initialize);
|
||||
|
||||
Reference in New Issue
Block a user