ore_api prelude module

This commit is contained in:
Hardhat Chad
2024-09-27 08:15:05 +00:00
parent f0b0274372
commit 13bd94df90
10 changed files with 20 additions and 26 deletions

View File

@@ -1,4 +1,4 @@
use ore_api::{consts::*, error::OreError, instruction::*, loaders::*, state::Proof};
use ore_api::prelude::*;
use steel::*;
/// Claim distributes claimable ORE from the treasury to a miner.

View File

@@ -1,4 +1,4 @@
use ore_api::state::Proof;
use ore_api::prelude::*;
use steel::*;
/// Close closes a proof account and returns the rent to the owner.

View File

@@ -1,8 +1,4 @@
use ore_api::{
consts::*,
instruction::*,
state::{Bus, Config, Treasury},
};
use ore_api::prelude::*;
use solana_program::program_pack::Pack;
use spl_token::state::Mint;
use steel::*;

View File

@@ -1,14 +1,7 @@
use std::mem::size_of;
use drillx::Solution;
use ore_api::{
consts::*,
error::OreError,
event::MineEvent,
instruction::Mine,
loaders::OreAccountInfoValidation,
state::{Bus, Config, Proof},
};
use ore_api::prelude::*;
use solana_program::program::set_return_data;
#[allow(deprecated)]
use solana_program::{

View File

@@ -1,6 +1,6 @@
use std::mem::size_of;
use ore_api::{consts::*, instruction::Open, state::Proof};
use ore_api::prelude::*;
use solana_program::{keccak::hashv, slot_hashes::SlotHash};
use steel::*;

View File

@@ -1,9 +1,4 @@
use ore_api::{
consts::*,
error::OreError,
loaders::*,
state::{Bus, Config},
};
use ore_api::prelude::*;
use steel::*;
/// Reset tops up the bus balances, updates the base reward rate, and sets up the ORE program for the next epoch.

View File

@@ -1,4 +1,4 @@
use ore_api::{consts::*, instruction::Stake, loaders::*, state::Proof};
use ore_api::prelude::*;
use steel::*;
/// Stake deposits ORE into a proof account to earn multiplier.

View File

@@ -1,4 +1,4 @@
use ore_api::state::Proof;
use ore_api::prelude::*;
use steel::*;
/// Update changes the miner authority on a proof account.

View File

@@ -1,4 +1,4 @@
use ore_api::{consts::*, error::OreError, instruction::Stake, loaders::OreAccountInfoValidation};
use ore_api::prelude::*;
use steel::*;
/// Upgrade allows a user to migrate a v1 token to a v2 token at a 1:1 exchange rate.