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,
}