Trait OpBuilder

Source
pub trait OpBuilder: Sized {
    type Context;

    // Required methods
    fn build_op(
        self,
    ) -> OpEvm<Self::Context, (), EthInstructions<EthInterpreter, Self::Context>>;
    fn build_op_with_inspector<INSP>(
        self,
        inspector: INSP,
    ) -> OpEvm<Self::Context, INSP, EthInstructions<EthInterpreter, Self::Context>>;
}
Expand description

Trait that allows for optimism OpEvm to be built.

Required Associated Types§

Source

type Context

Type of the context.

Required Methods§

Source

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

Build the op.

Source

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

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.

Implementations on Foreign Types§

Source§

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, FinalOutput = JournalOutput>,

Source§

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

Source§

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

Source§

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

Implementors§