mirror of
https://github.com/d0zingcat/ore.git
synced 2026-05-13 23:16:52 +00:00
add declare_proof instruction builder
This commit is contained in:
@@ -228,6 +228,19 @@ pub fn close(signer: Pubkey) -> Instruction {
|
||||
}
|
||||
}
|
||||
|
||||
/// Builds a declare proof instruction.
|
||||
pub fn declare_proof(
|
||||
proof: Pubkey,
|
||||
) -> Instruction {
|
||||
Instruction {
|
||||
program_id: crate::id(),
|
||||
accounts: vec![
|
||||
AccountMeta::new_readonly(proof, false),
|
||||
],
|
||||
data: OreInstruction::DeclareProof.to_vec(),
|
||||
}
|
||||
}
|
||||
|
||||
/// Builds a mine instruction.
|
||||
pub fn mine(
|
||||
signer: Pubkey,
|
||||
|
||||
Reference in New Issue
Block a user