Type Alias risc0_steel::ethereum::EthEvmEnv

source ·
pub type EthEvmEnv<D, C> = EvmEnv<D, EthBlockHeader, C>;
Expand description

EvmEnv for Ethereum.

Aliased Type§

struct EthEvmEnv<D, C> { /* private fields */ }

Implementations§

source§

impl<P> EthEvmEnv<ProofDb<ProviderDb<Ethereum, P>>, HostCommit<BeaconCommit>>
where P: Provider<Ethereum>,

source

pub async fn into_input(self) -> Result<EvmInput<EthBlockHeader>>

Available on crate feature host only.

Converts the environment into a EvmInput committing to a Beacon Chain block root.

source§

impl<P> EthEvmEnv<ProofDb<ProviderDb<Ethereum, P>>, HostCommit<HistoryCommit>>
where P: Provider<Ethereum>,

source

pub async fn into_input(self) -> Result<EvmInput<EthBlockHeader>>

Available on crate features host and unstable-history only.

Converts the environment into a EvmInput recursively committing to multiple Beacon Chain block roots.

§Availability

This API is marked as unstable and is only available when the unstable-history crate feature is enabled. This comes with no stability guarantees, and could be changed or removed at any time.

source§

impl<P> EthEvmEnv<ProofDb<ProviderDb<Ethereum, P>>, HostCommit<()>>
where P: Provider<Ethereum>,

source

pub async fn into_beacon_input( self, url: Url, ) -> Result<EvmInput<EthBlockHeader>>

👎Deprecated since 0.14.0: use EvmEnv::builder().beacon_api() instead
Available on crate feature host only.

Converts the environment into a EvmInput committing to an Ethereum Beacon block root.