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