use crate::{Deadline, Nonce, events::DefuseEvent}; use impl_tools::autoimpl; use near_sdk::{AccountIdRef, CryptoHash}; #[autoimpl(for &mut T, Box)] pub trait Inspector { fn on_deadline(&mut self, deadline: Deadline); fn on_event(&mut self, event: DefuseEvent<'_>); fn on_intent_executed(&mut self, signer_id: &AccountIdRef, hash: CryptoHash, nonce: Nonce); }