Module inspector

Module inspector 

Source
Expand description

Cheatcode EVM inspector.

ModulesΒ§

utils πŸ”’

MacrosΒ§

try_or_return πŸ”’

StructsΒ§

ArbitraryStorage
Holds data about arbitrary storage.
BroadcastableTransaction
Helps collecting transactions from different forks.
Cheatcodes
An EVM inspector that handles calls to various cheatcodes, each with their own behavior.
GasMetering
Holds gas metering state.
RecordDebugStepInfo
TestContext
Contains additional, test specific resources that should be kept for the duration of the test
TransparentCheatcodesExecutor πŸ”’
Basic implementation of CheatcodesExecutor that simply returns the Cheatcodes instance as an inspector.

TraitsΒ§

CheatcodesExecutor
Helper trait for obtaining complete [revm::Inspector] instance from mutable reference to Cheatcodes.

FunctionsΒ§

access_is_call πŸ”’
Returns true if the kind of account access is a call.
append_storage_access πŸ”’
Appends an AccountAccess that resumes the recording of the current context.
apply_dispatch πŸ”’
Dispatches the cheatcode call to the appropriate function.
calls_as_dyn_cheatcode πŸ”’
check_if_fixed_gas_limit πŸ”’
disallowed_mem_write πŸ”’
Helper that expands memory, stores a revert string pertaining to a disallowed memory write, and sets the return range to the revert string’s location in memory.
will_exit πŸ”’
Helper function to check if frame execution will exit.
with_evm πŸ”’
Constructs [FoundryEvm] and runs a given closure with it.

Type AliasesΒ§

BroadcastableTransactions
List of transactions that can be broadcasted.
Ecx