re-enabled mining

This commit is contained in:
Hardhat Chad
2025-09-02 12:14:35 -07:00
parent 3f15aca904
commit 3f275747b9
9 changed files with 121 additions and 2 deletions

View File

@@ -11,6 +11,7 @@ use solana_client::{
use solana_sdk::{
compute_budget::ComputeBudgetInstruction,
keccak::hash,
pubkey,
pubkey::Pubkey,
signature::{read_keypair_file, Signer},
transaction::Transaction,
@@ -84,6 +85,9 @@ async fn main() {
"benchmark" => {
benchmark_keccak().await.unwrap();
}
"claim_seeker" => {
claim_seeker(&rpc, &payer).await.unwrap();
}
_ => panic!("Invalid command"),
};
}
@@ -221,6 +225,17 @@ async fn swap(
Ok(())
}
async fn claim_seeker(
rpc: &RpcClient,
payer: &solana_sdk::signer::keypair::Keypair,
) -> Result<(), anyhow::Error> {
let seeker_mint = pubkey!("5mXbkqKz883aufhAsx3p5Z1NcvD2ppZbdTTznM6oUKLj");
let ix = ore_api::sdk::claim_seeker(payer.pubkey(), seeker_mint);
// submit_transaction(rpc, payer, &[ix]).await?;
simulate_transaction(rpc, payer, &[ix]).await;
Ok(())
}
async fn set_admin(
rpc: &RpcClient,
payer: &solana_sdk::signer::keypair::Keypair,