1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use anchor_lang::prelude::*;

#[error_code]
pub enum ClockworkError {
    #[msg("This instruction requires admin authority")]
    AdminAuthorityInvalid,

    #[msg("You cannot claim more than the collectable balance")]
    InvalidClaimAmount,

    #[msg("Http method is not recognized")]
    InvalidHttpMethod,

    #[msg("Invalid number of workers")]
    InvalidWorkers,
}