mirror of
https://github.com/d0zingcat/ore.git
synced 2026-05-15 07:26:45 +00:00
AccountDeserialize
This commit is contained in:
@@ -8,6 +8,7 @@ use crate::{
|
||||
instruction::ClaimArgs,
|
||||
loaders::*,
|
||||
state::{Proof, Treasury},
|
||||
utils::AccountDeserialize,
|
||||
TREASURY,
|
||||
};
|
||||
|
||||
|
||||
@@ -9,6 +9,7 @@ use crate::{
|
||||
instruction::CreateProofArgs,
|
||||
loaders::*,
|
||||
state::Proof,
|
||||
utils::AccountDeserialize,
|
||||
utils::{create_pda, Discriminator},
|
||||
PROOF,
|
||||
};
|
||||
|
||||
@@ -15,6 +15,7 @@ use crate::{
|
||||
loaders::*,
|
||||
state::{Bus, Treasury},
|
||||
utils::create_pda,
|
||||
utils::AccountDeserialize,
|
||||
utils::Discriminator,
|
||||
BUS, BUS_COUNT, INITIAL_DIFFICULTY, INITIAL_REWARD_RATE, MINT, MINT_ADDRESS, TOKEN_DECIMALS,
|
||||
TREASURY, TREASURY_ADDRESS,
|
||||
|
||||
@@ -17,6 +17,7 @@ use crate::{
|
||||
instruction::MineArgs,
|
||||
loaders::*,
|
||||
state::{Bus, Proof, Treasury},
|
||||
utils::AccountDeserialize,
|
||||
EPOCH_DURATION,
|
||||
};
|
||||
|
||||
|
||||
@@ -7,6 +7,7 @@ use crate::{
|
||||
error::OreError,
|
||||
loaders::*,
|
||||
state::{Bus, Treasury},
|
||||
utils::AccountDeserialize,
|
||||
BUS_COUNT, BUS_EPOCH_REWARDS, EPOCH_DURATION, MAX_EPOCH_REWARDS, SMOOTHING_FACTOR,
|
||||
TARGET_EPOCH_REWARDS, TREASURY,
|
||||
};
|
||||
|
||||
@@ -3,7 +3,7 @@ use solana_program::{
|
||||
pubkey::Pubkey,
|
||||
};
|
||||
|
||||
use crate::{instruction::UpdateAdminArgs, loaders::*, state::Treasury};
|
||||
use crate::{instruction::UpdateAdminArgs, loaders::*, state::Treasury, utils::AccountDeserialize};
|
||||
|
||||
pub fn process_update_admin<'a, 'info>(
|
||||
_program_id: &Pubkey,
|
||||
|
||||
@@ -3,7 +3,9 @@ use solana_program::{
|
||||
pubkey::Pubkey,
|
||||
};
|
||||
|
||||
use crate::{instruction::UpdateDifficultyArgs, loaders::*, state::Treasury};
|
||||
use crate::{
|
||||
instruction::UpdateDifficultyArgs, loaders::*, state::Treasury, utils::AccountDeserialize,
|
||||
};
|
||||
|
||||
pub fn process_update_difficulty<'a, 'info>(
|
||||
_program_id: &Pubkey,
|
||||
|
||||
Reference in New Issue
Block a user