pub struct TxMatchContext {
pub invoked_programs: HashSet<Address>,
pub moves_tokens: bool,
pub written_accounts: Vec<Address>,
pub writes_via_unresolved_lookup: bool,
}Expand description
Per-transaction facts a DiscoveryFilter can inspect when deciding
whether to match. Callers build this once per transaction and feed it to
every registered filter; new variants add fields here rather than growing
the DiscoveryFilter::matches signature.
Fields§
§invoked_programs: HashSet<Address>Programs invoked by the transaction (top-level + CPI observed in logs).
moves_tokens: boolWhether any token account’s balance changed.
written_accounts: Vec<Address>Accounts the transaction may write, by the batcher’s writability rule: its static keys and the lookup-table addresses resolved for it.
writes_via_unresolved_lookup: boolWhether it writes through a lookup table whose addresses did not resolve, so
written_accounts can’t name them.
Auto Trait Implementations§
impl Freeze for TxMatchContext
impl RefUnwindSafe for TxMatchContext
impl Send for TxMatchContext
impl Sync for TxMatchContext
impl Unpin for TxMatchContext
impl UnsafeUnpin for TxMatchContext
impl UnwindSafe for TxMatchContext
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more