BuildNextEnv

Trait BuildNextEnv 

pub trait BuildNextEnv<Attributes, Header, Ctx>: Sized {
    // Required method
    fn build_next_env(
        attributes: &Attributes,
        parent: &SealedHeader<Header>,
        ctx: &Ctx,
    ) -> Result<Self, PayloadBuilderError>;
}
Expand description

Trait to build the EVM environment for the next block from the given payload attributes.

Accepts payload attributes from CL, parent header and additional payload builder context.

Required Methods§

fn build_next_env( attributes: &Attributes, parent: &SealedHeader<Header>, ctx: &Ctx, ) -> Result<Self, PayloadBuilderError>

Builds the EVM environment for the next block from the given payload attributes.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§