Skip to main content

Module inspector

Module inspector 

Source
Expand description

Cheatcode EVM inspector.

Re-exportsΒ§

pub use env_overrides::EnvOverrideState;
pub use analysis::CheatcodeAnalysis;

ModulesΒ§

analysis
Cheatcode information, extracted from the syntactic and semantic analysis of the sources.
env_overrides πŸ”’
Cheatcode overrides of the BASEFEE, GASPRICE and BLOBHASH opcode values.
utils πŸ”’

MacrosΒ§

try_or_return πŸ”’

StructsΒ§

ActiveStorageHook πŸ”’
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.
CreatedAccountChange πŸ”’
CreatedAccountsFrame πŸ”’
CreatedAccountsSnapshot πŸ”’
GasMetering
Holds gas metering state.
RecordDebugStepInfo
StorageHook
A callback registered for a storage access hook.
StorageHookInspectorState πŸ”’
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.

EnumsΒ§

CreatedAccountsFrameKind πŸ”’
PendingStorageHook πŸ”’

TraitsΒ§

CheatcodesExecutor
Helper trait for running nested EVM operations from inside cheatcode implementations.

FunctionsΒ§

access_is_call πŸ”’
Returns true if the kind of account access is a call.
apply_authorization_nonces πŸ”’
Increments the nonce of every authority whose authorization would be applied on-chain.
apply_dispatch πŸ”’
Dispatches the cheatcode call to the appropriate function.
cheatcode_id πŸ”’
cheatcode_name πŸ”’
cheatcode_of πŸ”’
Returns the spec::Cheatcode definition for a given spec::CheatcodeDef implementor.
cheatcode_signature πŸ”’
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.
exec_create πŸ”’
Builds a sub-EVM from the current context and executes the given CREATE frame.
frame_gas πŸ”’
record_logs πŸ”’
Records a log into the recorded logs vector, if it exists.
will_exit πŸ”’
Helper function to check if frame execution will exit.

Type AliasesΒ§

BroadcastableTransactions
List of transactions that can be broadcasted.