OpBuilder

Trait OpBuilder 

pub trait OpBuilder: Sized {
    type Context;

    // Required methods
    fn build_op(self) -> OpEvm<Self::Context, ()>;
    fn build_op_with_inspector<INSP>(
        self,
        inspector: INSP,
    ) -> OpEvm<Self::Context, INSP>;
}
Available on crate feature evm only.
Expand description

Trait that allows for optimism OpEvm to be built.

Required Associated Types§

type Context

Type of the context.

Required Methods§

fn build_op(self) -> OpEvm<Self::Context, ()>

Build the op.

fn build_op_with_inspector<INSP>( self, inspector: INSP, ) -> OpEvm<Self::Context, INSP>

Build the op with an inspector.

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§

§

impl<BLOCK, TX, CFG, DB, JOURNAL> OpBuilder for Context<BLOCK, TX, CFG, DB, JOURNAL, L1BlockInfo>
where BLOCK: Block, TX: OpTxTr, CFG: Cfg<Spec = OpSpecId>, DB: Database, JOURNAL: JournalTr<Database = DB, State = HashMap<Address, Account, RandomState>>,

§

type Context = Context<BLOCK, TX, CFG, DB, JOURNAL, L1BlockInfo>