cardinal-use-invalidator 0.0.10

Cardinal usage invalidator and counter
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
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")]
    InvalidIssuerTokenAccount,
    #[msg("Invalid token manager for this claim approver")]
    InvalidTokenManager,
    #[msg("Usages at the maximum")]
    InsufficientUsages
}