diff --git a/Cargo.lock b/Cargo.lock index decb3ad..4c20453 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2519,6 +2519,7 @@ dependencies = [ "anchor-lang", "anchor-spl", "bincode", + "solana-program", "solana-program-test", "static_assertions", ] diff --git a/programs/ore/Cargo.toml b/programs/ore/Cargo.toml index 1d3b164..2dca00d 100644 --- a/programs/ore/Cargo.toml +++ b/programs/ore/Cargo.toml @@ -25,8 +25,8 @@ default = [] anchor-lang = "0.29.0" anchor-spl = { version = "0.29.0", features = ["token"] } bincode = "1.3.3" +solana-program = "^1.16" static_assertions = "1.1.0" [dev-dependencies] -solana-program-test = "1.17" -# rand = "0.8.5" +solana-program-test = "^1.16" diff --git a/programs/ore/src/lib.rs b/programs/ore/src/lib.rs index d9b0306..fba7cc4 100644 --- a/programs/ore/src/lib.rs +++ b/programs/ore/src/lib.rs @@ -4,6 +4,7 @@ use anchor_lang::{ prelude::*, solana_program::{ keccak::{hashv, Hash}, + pubkey, slot_hashes::SlotHash, system_program, sysvar, }, @@ -31,10 +32,7 @@ pub const INITIAL_DIFFICULTY: Hash = Hash::new_from_array([ ]); /// The mint address of the ORE token. -pub const TOKEN_MINT_ADDRESS: Pubkey = Pubkey::new_from_array([ - 31, 94, 128, 251, 8, 214, 16, 114, 78, 71, 1, 151, 221, 103, 239, 180, 136, 178, 202, 102, 159, - 185, 95, 250, 9, 18, 207, 100, 215, 105, 39, 64, -]); +pub const TOKEN_MINT_ADDRESS: Pubkey = pubkey!("37TDfMS8NHpyhyCXBrY9m7rRrtj1f7TrFzD1iXqmTeUX"); /// The decimal precision of the ORE token. /// Using SI prefixes, the smallest indivisible unit of ORE is a nanoORE.