-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
47 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 17 additions & 0 deletions
17
programs/example-queries-solana-verify/src/processor/close_signatures.rs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
use anchor_lang::prelude::*; | ||
|
||
use crate::state::GuardianSignatures; | ||
|
||
#[derive(Accounts)] | ||
pub struct CloseSignatures<'info> { | ||
#[account(mut, has_one = refund_recipient, close = refund_recipient)] | ||
guardian_signatures: Account<'info, GuardianSignatures>, | ||
|
||
#[account(address = guardian_signatures.refund_recipient)] | ||
refund_recipient: Signer<'info>, | ||
} | ||
|
||
/// Allows the initial payer to close the signature account in case the query was invalid. | ||
pub fn close_signatures(_ctx: Context<CloseSignatures>) -> Result<()> { | ||
Ok(()) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,6 @@ | ||
mod close_signatures; | ||
pub use close_signatures::*; | ||
|
||
mod post_signatures; | ||
pub use post_signatures::*; | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.