Skip to main content

TriggerProcessor

Trait TriggerProcessor 

Source
pub trait TriggerProcessor {
    // Required methods
    fn validate_trigger(
        &self,
        clock: &Clock,
        remaining_accounts: &[AccountInfo<'_>],
        thread_pubkey: &Pubkey,
    ) -> Result<i64>;
    fn update_schedule(
        &mut self,
        clock: &Clock,
        remaining_accounts: &[AccountInfo<'_>],
        thread_pubkey: &Pubkey,
    ) -> Result<()>;
    fn get_last_started_at(&self) -> i64;
}
Expand description

Trait for processing trigger validation and schedule updates

Required Methods§

Source

fn validate_trigger( &self, clock: &Clock, remaining_accounts: &[AccountInfo<'_>], thread_pubkey: &Pubkey, ) -> Result<i64>

Source

fn update_schedule( &mut self, clock: &Clock, remaining_accounts: &[AccountInfo<'_>], thread_pubkey: &Pubkey, ) -> Result<()>

Source

fn get_last_started_at(&self) -> i64

Implementors§