mirror of
https://github.com/d0zingcat/ore.git
synced 2026-05-24 15:10:38 +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.
|
/// Builds a mine instruction.
|
||||||
pub fn mine(
|
pub fn mine(
|
||||||
signer: Pubkey,
|
signer: Pubkey,
|
||||||
|
|||||||
Reference in New Issue
Block a user