automation

This commit is contained in:
Hardhat Chad
2025-09-23 12:42:38 -07:00
parent 3abe0e080b
commit da5cf4b09d
11 changed files with 307 additions and 89 deletions

View File

@@ -205,7 +205,13 @@ async fn deploy(
let mut squares = [false; 25];
squares[square_id as usize] = true;
let ix = ore_api::sdk::deploy(payer.pubkey(), config.fee_collector, amount, squares);
let ix = ore_api::sdk::deploy(
payer.pubkey(),
payer.pubkey(),
config.fee_collector,
amount,
squares,
);
submit_transaction(rpc, payer, &[ix]).await?;
Ok(())
}
@@ -218,7 +224,13 @@ async fn deploy_all(
let amount = u64::from_str(&amount).expect("Invalid AMOUNT");
let config = get_config(rpc).await?;
let squares = [true; 25];
let ix = ore_api::sdk::deploy(payer.pubkey(), config.fee_collector, amount, squares);
let ix = ore_api::sdk::deploy(
payer.pubkey(),
payer.pubkey(),
config.fee_collector,
amount,
squares,
);
submit_transaction(rpc, payer, &[ix]).await?;
Ok(())
}