mirror of
https://github.com/d0zingcat/ore.git
synced 2026-05-18 15:10:26 +00:00
Deprecate legacy staking (#99)
* add post balance to MineEvent log * log input hash * deprecate legacy staking * update error message * remove stake from readme * err msg * err msg * update logs and comments * consolidate logs * last hash at * bump version * deprecate legacy staking * update error message * remove stake from readme * err msg * err msg * bump version --------- Co-authored-by: tonton-sol <19677766+tonton-sol@users.noreply.github.com> Co-authored-by: alex <aabinaei@gmail.com>
This commit is contained in:
@@ -9,6 +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,
|
||||
Upgrade = 7,
|
||||
@@ -44,6 +45,7 @@ pub struct Open {
|
||||
#[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 {
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
pub mod consts;
|
||||
pub mod error;
|
||||
pub mod event;
|
||||
#[allow(deprecated)]
|
||||
pub mod instruction;
|
||||
pub mod loaders;
|
||||
pub mod sdk;
|
||||
|
||||
@@ -124,8 +124,10 @@ pub fn reset(signer: Pubkey) -> Instruction {
|
||||
}
|
||||
|
||||
/// Build a stake instruction.
|
||||
#[deprecated(since = "2.4.0", note = "Please stake with the boost program")]
|
||||
pub fn stake(signer: Pubkey, sender: Pubkey, amount: u64) -> Instruction {
|
||||
let proof = proof_pda(signer).0;
|
||||
#[allow(deprecated)]
|
||||
Instruction {
|
||||
program_id: crate::ID,
|
||||
accounts: vec![
|
||||
|
||||
Reference in New Issue
Block a user