clockwork-crank 1.0.6

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

#[error_code]
pub enum ClockworkError {
    #[msg("The crank response could not be parsed")]
    InvalidCrankResponse,
    #[msg("The queue is in an invalid state")]
    InvalidQueueState,
    #[msg("The trigger condition has not been met")]
    InvalidTrigger,

    #[msg("The queue is currently paused")]
    PausedQueue,

    #[msg("Inner instruction attempted to write to an unauthorized address")]
    UnauthorizedWrite,
}