Struct evm_adapters::sputnik::cheatcodes::cheatcode_handler::CheatcodeHandler [−][src]
pub struct CheatcodeHandler<H> { /* fields omitted */ }Expand description
Hooks on live EVM execution and forwards everything else to a Sputnik Handler.
It allows:
- Logging of values for debugging
- Modifying chain state live with cheatcodes
The call_inner and create_inner functions are copy-pasted from upstream, so that
it can hook in the runtime. They may eventually be removed if Sputnik allows bringing in your
own runtime handler.
Implementations
impl<'a, 'b, B: Backend, P: PrecompileSet> CheatcodeHandler<StackExecutor<'a, 'b, MemoryStackStateOwned<'a, CheatcodeBackend<B>>, P>>
impl<'a, 'b, B: Backend, P: PrecompileSet> CheatcodeHandler<StackExecutor<'a, 'b, MemoryStackStateOwned<'a, CheatcodeBackend<B>>, P>>
pub fn debug_execute(
&mut self,
runtime: &mut Runtime<'_>,
address: Address,
code: Rc<Vec<u8>>
) -> ExitReason
pub fn debug_execute(
&mut self,
runtime: &mut Runtime<'_>,
address: Address,
code: Rc<Vec<u8>>
) -> ExitReason
Debug execute a transaction by grabbing the debugger from state_mut, adding the runtime.
pub fn debug_step(
&mut self,
runtime: &ForgeRuntime<'_, '_>,
steps: &mut Vec<DebugStep>
) -> bool
Trait Implementations
Auto Trait Implementations
impl<H> RefUnwindSafe for CheatcodeHandler<H> where
H: RefUnwindSafe,
impl<H> Send for CheatcodeHandler<H> where
H: Send,
impl<H> Sync for CheatcodeHandler<H> where
H: Sync,
impl<H> Unpin for CheatcodeHandler<H> where
H: Unpin,
impl<H> UnwindSafe for CheatcodeHandler<H> where
H: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span, returning an
Instrumented wrapper. Read more
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more