Trait bus_mapping::evm::Opcode

source ·
pub trait Opcode: Debug {
    // Required method
    fn gen_associated_ops(
        state: &mut CircuitInputStateRef<'_>,
        geth_steps: &[GethExecStep]
    ) -> Result<Vec<ExecStep>, Error>;
}
Expand description

Generic opcode trait which defines the logic of the Operation that should be generated for one or multiple ExecStep depending of the OpcodeId it contains.

Required Methods§

source

fn gen_associated_ops( state: &mut CircuitInputStateRef<'_>, geth_steps: &[GethExecStep] ) -> Result<Vec<ExecStep>, Error>

Generate the associated MemoryOps, StackOps, and StorageOps associated to the Opcode is implemented for.

Object Safety§

This trait is not object safe.

Implementors§