scaffolding

This commit is contained in:
Hardhat Chad
2025-05-23 18:41:54 -07:00
parent e942e7ae5b
commit 495dd4ad4b
12 changed files with 169 additions and 54 deletions

View File

@@ -29,11 +29,8 @@ pub fn proof_pda(authority: Pubkey) -> (Pubkey, u8) {
Pubkey::find_program_address(&[PROOF, authority.as_ref()], &crate::id())
}
pub fn wager_pda(round: u64, id: u64) -> (Pubkey, u8) {
Pubkey::find_program_address(
&[WAGER, &round.to_le_bytes(), &id.to_le_bytes()],
&crate::ID,
)
pub fn wager_pda(round: u64, seed: [u8; 32]) -> (Pubkey, u8) {
Pubkey::find_program_address(&[WAGER, &round.to_le_bytes(), &seed], &crate::ID)
}
pub fn treasury_pda() -> (Pubkey, u8) {