1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
use anchor_lang::prelude::error_code;

#[error_code]
pub enum ErrorCode {
    #[msg("Invalid allowlists!")]
    InvalidAllowLists,

    #[msg("Invalid Metadata")]
    InvalidMetadata,

    #[msg("Invalid Creators")]
    InvalidCreators,

    #[msg("Bad Ruleset")]
    BadRuleset,

    #[msg("You do not have rights to perform this action!")]
    InvalidPermission,

    #[msg("Invalid multiplier, must be greater than 10000")]
    InvalidMultiplier,

    #[msg("Too early to stake")]
    TooEarly,

    #[msg("Merkle proof is invalid")]
    InvalidProof,

    #[msg("Invalid Staker")]
    InvalidStaker,

    #[msg("Invalid Staker Info")]
    InvalidStakerInfo,

    #[msg("Invalid Transaction Batch")]
    InvalidTransactionBatch,

    #[msg("Invalid mint or rewards_account given. Mint & RewardsAccount must be the same as the one in the jungle")]
    InvalidRewardsCoin,

    #[msg("Insufficient balance")]
    InsufficientBalance,

    #[msg("Invalid Transaction Index")]
    InvalidTransactionIndex,

    #[msg("Invalid Transaction Amount")]
    InvalidTransactionAmount,

    #[msg("Cannot transfer to yourself")]
    CannotTransferToSelf,

    #[msg("Validation failed")]
    ValidationFailed,
}