shadowy_super_minter/
errors.rs1use anchor_lang::prelude::*;
2
3#[error_code]
4pub enum ShadowyError {
5 #[msg("Account is not initialized")]
6 Uninitialized,
7
8 #[msg("Index greater than length")]
9 IndexGreaterThanLength,
10
11 #[msg("Numerical overflow error")]
12 NumericalOverflowError,
13
14 #[msg("Can only provide up to 4 creators to ssm (because ssm is one)")]
15 TooManyCreators,
16
17 #[msg("SSM is empty")]
18 ShadowySuperMinterEmpty,
19
20 #[msg("The metadata account has data in it, and this must be empty to mint a new NFT")]
21 MetadataAccountMustBeEmpty,
22
23 #[msg("Mint authority provided does not match the authority on the mint")]
24 InvalidMintAuthority,
25
26 #[msg("Unable to find an unused asset near your random number index")]
27 CannotFindUsableAsset,
28
29 #[msg("Invalid string")]
30 InvalidString,
31
32 #[msg(
33 "Either the end time you specified for the minter is in the past, \
34 or the start time you specified for the minter comes after the end time"
35 )]
36 InvalidTimes,
37
38 #[msg("The instruction contains an invalid account")]
39 InvalidAccount,
40
41 #[msg("This mint has either not yet begun or has already ended")]
42 MintNotOpen,
43
44 #[msg("This already-initialized collection is not to be used with a minter")]
45 CollectionNotForMinter,
46}