4 releases
0.1.3 | Oct 5, 2024 |
---|---|
0.1.2 | Oct 5, 2024 |
0.1.1 | Oct 5, 2024 |
0.1.0 | Oct 5, 2024 |
#14 in #passes
4KB
Solana Gateway Anchor
An anchor macro for evaluating the status of Civic Passes.
Usage
use solana_gateway_anchor::Pass;
/// Instruction to be gated by Civic Pass
#[derive(Accounts)]
pub struct MyInstruction<'info> {
/// An account struct containing the pass type
pub my_account: Account<'info, MyAccount>,
#[account(constraint = pass.valid(&recipient.key, &my_account.pass_type))]
pub pass: Account<'info, Pass>,
}
See a more complete example here.
Dependencies
~17–26MB
~442K SLoC