Skip to main content

Module inspectors

Module inspectors 

Source
Expand description

EVM inspectors.

Modules§

cheatcodes
foundry-cheatcodes

Structs§

AccessListInspector
An [Inspector] that collects touched accounts and storage slots.
Cheatcodes
An EVM inspector that handles calls to various cheatcodes, each with their own behavior.
CheatsConfig
Additional, configurable context the Cheatcodes inspector has access to
ChiselState
An inspector for Chisel.
CmpOperands
A comparison operand pair captured during execution.
CustomPrintTracer
Custom print [Inspector], it has step level information of execution.
DebugRecorder
Records every opcode step of the debugged calls into a [StepTable], with the steps that each call and creation spans.
EdgeCovConfig
Configuration for EdgeCovInspector.
EdgeCovHit
EdgeCovInspector
An Inspector that tracks edge coverage. Covered edges will not wrap to zero e.g. a loop edge hit more than 255 will still be retained.
EdgeIndexMap
EdgeKey
Identity of a control-flow edge: the jump at pc in the code running at address to jump_dest, optionally split by call depth.
Fuzzer
An inspector that overrides calls to simulate reentrancy and records sub-calls for the invariant fuzzer.
InspectorData
The collected results of InspectorStack.
InspectorStack
An inspector that calls multiple inspectors in sequence.
InspectorStackBuilder
InspectorStackRefMut
Mutable references to both parts of InspectorStack and the backend the execution runs over, implementing the evm2 [Inspector]. Obtained via InspectorStack::as_inspector.
LineCoverageCollector
Inspector implementation for collecting coverage information.
RevertDiagnostic
An inspector that tracks call context to enhances revert diagnostics. Useful for understanding reverts that are not linked to custom errors or revert strings.
ScriptExecutionInspector
An inspector that enforces certain rules during script execution.
TracingInspector
An inspector that collects call traces.
TracingInspectorConfig
Gives guidance to the TracingInspector.

Enums§

EdgeCovKind
Edge coverage collection kind.
EdgeCoverage
LogCollector
An inspector that collects logs during execution.
StackSnapshotType
How much of the stack to record. Nothing, just the items pushed, the full stack, or only the top item