account_compression/
errors.rs

1use anchor_lang::prelude::*;
2
3#[error_code]
4pub enum AccountCompressionErrorCode {
5    AddressMerkleTreeAccountDiscriminatorMismatch,
6    EmptyLeaf,
7    InputDeserializationFailed,
8    #[msg("InputElementsEmpty")]
9    InputElementsEmpty,
10    #[msg("InsufficientRolloverFee")]
11    InsufficientRolloverFee,
12    #[msg("Integer overflow")]
13    IntegerOverflow,
14    InvalidAccount,
15    #[msg("InvalidAccountBalance")]
16    InvalidAccountBalance,
17    #[msg("InvalidAccountSize")]
18    InvalidAccountSize,
19    #[msg("InvalidAuthority")]
20    InvalidAuthority,
21    InvalidGroup,
22    #[msg("InvalidMerkleProof")]
23    InvalidMerkleProof,
24    #[msg("Provided noop program public key is invalid")]
25    InvalidNoopPubkey,
26    #[msg("InvalidQueueType")]
27    InvalidQueueType,
28    #[msg("Invalid sequence threshold")]
29    InvalidSequenceThreshold,
30    #[msg("Could not find the leaf in the queue")]
31    LeafNotFound,
32    #[msg("MerkleTreeAlreadyRolledOver")]
33    MerkleTreeAlreadyRolledOver,
34    #[msg("MerkleTreeAndQueueNotAssociated")]
35    MerkleTreeAndQueueNotAssociated,
36    #[msg("NoLeavesForMerkleTree")]
37    NoLeavesForMerkleTree,
38    #[msg("NotAllLeavesProcessed")]
39    NotAllLeavesProcessed,
40    #[msg("NotReadyForRollover")]
41    NotReadyForRollover,
42    #[msg("Number of change log indices mismatch")]
43    NumberOfChangeLogIndicesMismatch,
44    #[msg("Number of indices mismatch")]
45    NumberOfIndicesMismatch,
46    #[msg(
47        "Leaves <> remaining accounts mismatch. The number of remaining accounts must match the number of leaves."
48    )]
49    NumberOfLeavesMismatch,
50    #[msg("NumberOfProofsMismatch")]
51    NumberOfProofsMismatch,
52    ProofLengthMismatch,
53    RegistryProgramIsNone,
54    #[msg("RolloverNotConfigured")]
55    RolloverNotConfigured,
56    StateMerkleTreeAccountDiscriminatorMismatch,
57    #[msg("The maximum number of leaves is 255")]
58    TooManyLeaves,
59    TxHashUndefined,
60    UnsupportedAdditionalBytes,
61    #[msg("Unsupported canopy depth")]
62    UnsupportedCanopyDepth,
63    #[msg("Unsupported close threshold")]
64    UnsupportedCloseThreshold,
65    #[msg("Unsupported Merkle tree height")]
66    UnsupportedHeight,
67    UnsupportedParameters,
68    V1AccountMarkedAsProofByIndex,
69}