Skip to main content

EvmDatabase

Trait EvmDatabase 

Source
pub trait EvmDatabase: RevmDatabase {
    // Required method
    fn logs(
        &mut self,
        filter: Filter,
    ) -> Result<Vec<Log>, <Self as RevmDatabase>::Error>;
}
Expand description

A database abstraction for the Steel EVM.

Required Methods§

Source

fn logs( &mut self, filter: Filter, ) -> Result<Vec<Log>, <Self as RevmDatabase>::Error>

Retrieves all the logs matching the given [Filter].

It returns an error, if the corresponding logs cannot be retrieved from DB. The filter must match the block hash corresponding to the DB, it will panic otherwise.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl<DB: EvmDatabase> EvmDatabase for ProofDb<DB>

Available on crate feature host only.
Source§

impl<N: Network, P: Provider<N>> EvmDatabase for ProviderDb<N, P>

Available on crate feature host only.