Trait OnStateHook

pub trait OnStateHook: Send + 'static {
    // Required method
    fn on_state(
        &mut self,
        source: StateChangeSource,
        state: &HashMap<Address, Account, RandomState>,
    );
}
Available on crate feature evm only.
Expand description

A hook that is called after each state change.

Required Methods§

fn on_state( &mut self, source: StateChangeSource, state: &HashMap<Address, Account, RandomState>, )

Invoked with the source of the change and the state after each system call.

Implementors§

§

impl OnStateHook for NoopHook

§

impl<F> OnStateHook for F
where F: FnMut(StateChangeSource, &HashMap<Address, Account, RandomState>) + Send + 'static,