light_registry/
errors.rs

1use anchor_lang::prelude::*;
2
3#[error_code]
4pub enum RegistryError {
5    #[msg("InvalidForester")]
6    InvalidForester,
7    NotInReportWorkPhase,
8    StakeAccountAlreadySynced,
9    EpochEnded,
10    ForesterNotEligible,
11    NotInRegistrationPeriod,
12    WeightInsuffient,
13    ForesterAlreadyRegistered,
14    InvalidEpochAccount,
15    InvalidEpoch,
16    EpochStillInProgress,
17    NotInActivePhase,
18    ForesterAlreadyReportedWork,
19    InvalidNetworkFee,
20    FinalizeCounterExceeded,
21    CpiContextAccountMissing,
22    ArithmeticUnderflow,
23    RegistrationNotFinalized,
24    CpiContextAccountInvalidDataLen,
25    InvalidConfigUpdate,
26    InvalidSigner,
27    GetLatestRegisterEpochFailed,
28    GetCurrentActiveEpochFailed,
29    ForesterUndefined,
30    ForesterDefined,
31}