cardinal-use-invalidator 0.1.0

Cardinal usage invalidator and counter
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use anchor_lang::prelude::*;

#[error]
pub enum ErrorCode {
    #[msg("Token account not owned by the claim approver")]
    InvalidPaymentTokenAccount,
    #[msg("Token account not owned by the issuer")]
    InvalidTokenAccount,
    #[msg("User is not permitted to use")]
    InvalidUser,
    #[msg("Invalid token manager for this claim approver")]
    InvalidTokenManager,
    #[msg("Usages at the maximum")]
    InsufficientUsages
}