pub trait OpcodeTracer {
// Provided methods
fn do_trace_opcode(&self, _enabled: &mut bool) { ... }
fn initialize_interp(&mut self, gas_limit: U256) { ... }
fn step(&mut self, interp: &dyn InterpreterInfo) { ... }
fn step_end(&mut self, interp: &dyn InterpreterInfo) { ... }
fn log(&mut self, address: &Address, topics: &Vec<H256>, data: &[u8]) { ... }
fn selfdestruct(
&mut self,
space: Space,
contract: &Address,
target: &Address,
value: U256,
) { ... }
}Provided Methods§
fn do_trace_opcode(&self, _enabled: &mut bool)
Sourcefn initialize_interp(&mut self, gas_limit: U256)
fn initialize_interp(&mut self, gas_limit: U256)
Called before the interpreter is initialized.
Sourcefn step(&mut self, interp: &dyn InterpreterInfo)
fn step(&mut self, interp: &dyn InterpreterInfo)
Called on each step of the interpreter.
Information about the current execution, including the memory, stack and
more is available on interp (see [Interpreter]).
Sourcefn step_end(&mut self, interp: &dyn InterpreterInfo)
fn step_end(&mut self, interp: &dyn InterpreterInfo)
Called after step when the instruction has been executed.
Sourcefn log(&mut self, address: &Address, topics: &Vec<H256>, data: &[u8])
fn log(&mut self, address: &Address, topics: &Vec<H256>, data: &[u8])
Called when a log is emitted.
Sourcefn selfdestruct(
&mut self,
space: Space,
contract: &Address,
target: &Address,
value: U256,
)
fn selfdestruct( &mut self, space: Space, contract: &Address, target: &Address, value: U256, )
Called when a contract has been self-destructed with funds transferred to target.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".
Implementations on Foreign Types§
Source§impl OpcodeTracer for ()
impl OpcodeTracer for ()
Source§fn initialize_interp(&mut self, gas_limit: U256)
fn initialize_interp(&mut self, gas_limit: U256)
Called before the interpreter is initialized.
Source§fn step(&mut self, interp: &dyn InterpreterInfo)
fn step(&mut self, interp: &dyn InterpreterInfo)
Called on each step of the interpreter.
Information about the current execution, including the memory, stack and
more is available on interp (see [Interpreter]).
Source§fn step_end(&mut self, interp: &dyn InterpreterInfo)
fn step_end(&mut self, interp: &dyn InterpreterInfo)
Called after step when the instruction has been executed.
Source§fn log(&mut self, address: &Address, topics: &Vec<H256>, data: &[u8])
fn log(&mut self, address: &Address, topics: &Vec<H256>, data: &[u8])
Called when a log is emitted.
Source§fn selfdestruct(
&mut self,
space: Space,
contract: &Address,
target: &Address,
value: U256,
)
fn selfdestruct( &mut self, space: Space, contract: &Address, target: &Address, value: U256, )
Called when a contract has been self-destructed with funds transferred to target.
fn do_trace_opcode(&self, _enabled: &mut bool)
Source§impl<T: OpcodeTracer + ?Sized> OpcodeTracer for &mut T
impl<T: OpcodeTracer + ?Sized> OpcodeTracer for &mut T
fn do_trace_opcode(&self, _enabled: &mut bool)
fn initialize_interp(&mut self, gas_limit: U256)
fn step(&mut self, interp: &dyn InterpreterInfo)
fn step_end(&mut self, interp: &dyn InterpreterInfo)
fn log(&mut self, address: &Address, topics: &Vec<H256>, data: &[u8])
fn selfdestruct( &mut self, space: Space, contract: &Address, target: &Address, value: U256, )
Source§impl<TupleElement0: OpcodeTracer, TupleElement1: OpcodeTracer, TupleElement2: OpcodeTracer, TupleElement3: OpcodeTracer> OpcodeTracer for (TupleElement0, TupleElement1, TupleElement2, TupleElement3)
impl<TupleElement0: OpcodeTracer, TupleElement1: OpcodeTracer, TupleElement2: OpcodeTracer, TupleElement3: OpcodeTracer> OpcodeTracer for (TupleElement0, TupleElement1, TupleElement2, TupleElement3)
Source§fn initialize_interp(&mut self, gas_limit: U256)
fn initialize_interp(&mut self, gas_limit: U256)
Called before the interpreter is initialized.
Source§fn step(&mut self, interp: &dyn InterpreterInfo)
fn step(&mut self, interp: &dyn InterpreterInfo)
Called on each step of the interpreter.
Information about the current execution, including the memory, stack and
more is available on interp (see [Interpreter]).
Source§fn step_end(&mut self, interp: &dyn InterpreterInfo)
fn step_end(&mut self, interp: &dyn InterpreterInfo)
Called after step when the instruction has been executed.
Source§fn log(&mut self, address: &Address, topics: &Vec<H256>, data: &[u8])
fn log(&mut self, address: &Address, topics: &Vec<H256>, data: &[u8])
Called when a log is emitted.
Source§fn selfdestruct(
&mut self,
space: Space,
contract: &Address,
target: &Address,
value: U256,
)
fn selfdestruct( &mut self, space: Space, contract: &Address, target: &Address, value: U256, )
Called when a contract has been self-destructed with funds transferred to target.
fn do_trace_opcode(&self, _enabled: &mut bool)
Source§impl<TupleElement0: OpcodeTracer, TupleElement1: OpcodeTracer, TupleElement2: OpcodeTracer> OpcodeTracer for (TupleElement0, TupleElement1, TupleElement2)
impl<TupleElement0: OpcodeTracer, TupleElement1: OpcodeTracer, TupleElement2: OpcodeTracer> OpcodeTracer for (TupleElement0, TupleElement1, TupleElement2)
Source§fn initialize_interp(&mut self, gas_limit: U256)
fn initialize_interp(&mut self, gas_limit: U256)
Called before the interpreter is initialized.
Source§fn step(&mut self, interp: &dyn InterpreterInfo)
fn step(&mut self, interp: &dyn InterpreterInfo)
Called on each step of the interpreter.
Information about the current execution, including the memory, stack and
more is available on interp (see [Interpreter]).
Source§fn step_end(&mut self, interp: &dyn InterpreterInfo)
fn step_end(&mut self, interp: &dyn InterpreterInfo)
Called after step when the instruction has been executed.
Source§fn log(&mut self, address: &Address, topics: &Vec<H256>, data: &[u8])
fn log(&mut self, address: &Address, topics: &Vec<H256>, data: &[u8])
Called when a log is emitted.
Source§fn selfdestruct(
&mut self,
space: Space,
contract: &Address,
target: &Address,
value: U256,
)
fn selfdestruct( &mut self, space: Space, contract: &Address, target: &Address, value: U256, )
Called when a contract has been self-destructed with funds transferred to target.
fn do_trace_opcode(&self, _enabled: &mut bool)
Source§impl<TupleElement0: OpcodeTracer, TupleElement1: OpcodeTracer> OpcodeTracer for (TupleElement0, TupleElement1)
impl<TupleElement0: OpcodeTracer, TupleElement1: OpcodeTracer> OpcodeTracer for (TupleElement0, TupleElement1)
Source§fn initialize_interp(&mut self, gas_limit: U256)
fn initialize_interp(&mut self, gas_limit: U256)
Called before the interpreter is initialized.
Source§fn step(&mut self, interp: &dyn InterpreterInfo)
fn step(&mut self, interp: &dyn InterpreterInfo)
Called on each step of the interpreter.
Information about the current execution, including the memory, stack and
more is available on interp (see [Interpreter]).
Source§fn step_end(&mut self, interp: &dyn InterpreterInfo)
fn step_end(&mut self, interp: &dyn InterpreterInfo)
Called after step when the instruction has been executed.
Source§fn log(&mut self, address: &Address, topics: &Vec<H256>, data: &[u8])
fn log(&mut self, address: &Address, topics: &Vec<H256>, data: &[u8])
Called when a log is emitted.
Source§fn selfdestruct(
&mut self,
space: Space,
contract: &Address,
target: &Address,
value: U256,
)
fn selfdestruct( &mut self, space: Space, contract: &Address, target: &Address, value: U256, )
Called when a contract has been self-destructed with funds transferred to target.
fn do_trace_opcode(&self, _enabled: &mut bool)
Source§impl<TupleElement0: OpcodeTracer> OpcodeTracer for (TupleElement0,)
impl<TupleElement0: OpcodeTracer> OpcodeTracer for (TupleElement0,)
Source§fn initialize_interp(&mut self, gas_limit: U256)
fn initialize_interp(&mut self, gas_limit: U256)
Called before the interpreter is initialized.
Source§fn step(&mut self, interp: &dyn InterpreterInfo)
fn step(&mut self, interp: &dyn InterpreterInfo)
Called on each step of the interpreter.
Information about the current execution, including the memory, stack and
more is available on interp (see [Interpreter]).
Source§fn step_end(&mut self, interp: &dyn InterpreterInfo)
fn step_end(&mut self, interp: &dyn InterpreterInfo)
Called after step when the instruction has been executed.
Source§fn log(&mut self, address: &Address, topics: &Vec<H256>, data: &[u8])
fn log(&mut self, address: &Address, topics: &Vec<H256>, data: &[u8])
Called when a log is emitted.
Source§fn selfdestruct(
&mut self,
space: Space,
contract: &Address,
target: &Address,
value: U256,
)
fn selfdestruct( &mut self, space: Space, contract: &Address, target: &Address, value: U256, )
Called when a contract has been self-destructed with funds transferred to target.