data_anchor_blober/
error.rs1use anchor_lang::prelude::*;
2
3#[error_code]
4pub enum ErrorCode {
5 #[msg("Chunk already received")]
6 DuplicateChunk,
7 #[msg("Invalid public value")]
8 InvalidPublicValue,
9 #[msg("Blober missmatch in public values")]
10 BloberMismatch,
11 #[msg("New proof initial hash does not match previous final hash")]
12 ProofHashMismatch,
13 #[msg("New proof slot must be greater than previous slot")]
14 SlotTooLow,
15 #[msg("Only verifier programs can update checkpoints")]
16 InvalidInstructionProgramId,
17 #[msg("Public values exceed maximum size")]
18 PublicValuesExceedMaxSize,
19 #[msg("Invalid verification key size")]
20 InvalidVerificationKeySize,
21 #[msg("Proof verification failed")]
22 ProofVerificationFailed,
23 #[msg("Unauthorized")]
24 Unauthorized,
25 #[msg("Checkpoint not up to date with blober state")]
26 CheckpointNotUpToDate,
27 #[msg("Checkpoint config not found for existing checkpoint")]
28 CheckpointWithoutConfig,
29 #[msg("Blob is missing chunks, can't be completed in this state")]
30 BlobNotComplete,
31}