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
use anchor_lang::prelude::error_code;

#[error_code]
pub enum ErrorCode {
    #[msg("Opertaion overflowed")]
    Overflow,

    #[msg("Faction not provided")]
    FactionNotProvided,

    #[msg("Merkle proof not provided")]
    MerkleProofNotProvided,

    #[msg("Merkle proof provided is not valid")]
    InvalidProof,

    #[msg("The NFT provided is not recognized by the mission pool")]
    NftNotRecognized,

    #[msg("Not implemented yet")]
    NotImplemented,

    #[msg("NFT is not staked")]
    NotStaked,

    #[msg("Participation is not ended yet")]
    NotEnded,

    #[msg("Reward is either collected or not available")]
    RewardNotAvailable,

    #[msg("Mint, Holder account or token account not provided")]
    HolderAccountsNotProvided,

    #[msg("All rewards are not yet collected for this participaton")]
    RewardsNotCollected,

    #[msg("Profile account not provided")]
    ProfileNotProvided,

    #[msg("Invalid Profile data")]
    InvalidProfileData,

    #[msg("Missing required accounts")]
    MissingRequiredAccounts,
}