revm_inspector

Trait InspectorCtx

Source
pub trait InspectorCtx {
    type IT: InterpreterTypes;

    // Required methods
    fn step(&mut self, interp: &mut Interpreter<Self::IT>);
    fn step_end(&mut self, interp: &mut Interpreter<Self::IT>);
    fn initialize_interp(&mut self, interp: &mut Interpreter<Self::IT>);
    fn frame_start(
        &mut self,
        frame_input: &mut FrameInput,
    ) -> Option<FrameResult>;
    fn frame_end(&mut self, frame_output: &mut FrameResult);
    fn inspector_selfdestruct(
        &mut self,
        contract: Address,
        target: Address,
        value: U256,
    );
    fn inspector_log(&mut self, interp: &mut Interpreter<Self::IT>, log: &Log);
}

Required Associated Types§

Source

type IT: InterpreterTypes

Required Methods§

Source

fn step(&mut self, interp: &mut Interpreter<Self::IT>)

Source

fn step_end(&mut self, interp: &mut Interpreter<Self::IT>)

Source

fn initialize_interp(&mut self, interp: &mut Interpreter<Self::IT>)

Source

fn frame_start(&mut self, frame_input: &mut FrameInput) -> Option<FrameResult>

Source

fn frame_end(&mut self, frame_output: &mut FrameResult)

Source

fn inspector_selfdestruct( &mut self, contract: Address, target: Address, value: U256, )

Source

fn inspector_log(&mut self, interp: &mut Interpreter<Self::IT>, log: &Log)

Implementors§

Source§

impl<INSP, DB, CTX> InspectorCtx for InspectorContext<INSP, DB, CTX>
where INSP: GetInspector<CTX, EthInterpreter>, CTX: DatabaseGetter<Database = DB>,

Source§

type IT = EthInterpreter