Expand description
Cheatcode EVM inspector.
ModulesΒ§
- utils π
MacrosΒ§
- try_
or_ πreturn
StructsΒ§
- Arbitrary
Storage - Holds data about arbitrary storage.
- Broadcastable
Transaction - 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.
- Record
Debug Step Info - Test
Context - Contains additional, test specific resources that should be kept for the duration of the test
- Transparent
Cheatcodes πExecutor - Basic implementation of CheatcodesExecutor that simply returns the Cheatcodes instance as an inspector.
TraitsΒ§
- Cheatcodes
Executor - 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Β§
- Broadcastable
Transactions - List of transactions that can be broadcasted.
- Ecx