pub trait InstructionProvider {
type Context;
type InterpreterTypes: InterpreterTypes;
// Required methods
fn instruction_table(
&self,
) -> &InstructionTable<Self::InterpreterTypes, Self::Context>;
fn gas_params(&self) -> GasParams;
fn set_spec(&mut self, spec: SpecId) -> bool;
}Expand description
Stores instructions for EVM.
Required Associated Types§
Sourcetype InterpreterTypes: InterpreterTypes
type InterpreterTypes: InterpreterTypes
Interpreter types.
Required Methods§
Sourcefn instruction_table(
&self,
) -> &InstructionTable<Self::InterpreterTypes, Self::Context>
fn instruction_table( &self, ) -> &InstructionTable<Self::InterpreterTypes, Self::Context>
Returns the instruction table that is used by EvmTr to execute instructions.
Sourcefn gas_params(&self) -> GasParams
fn gas_params(&self) -> GasParams
Returns the gas params that is used by EvmTr to execute instructions.