Trait risc0_steel::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.

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.