Expand description
EVM executor abstractions, which can execute calls.
Used for running tests, scripts, and interacting with the inner backend which holds the state.
Modules§
Structs§
- Call
Result - The result of a call.
- Corpus
DirEntry - A single corpus file on disk.
- Deploy
Result - The result of a deployment.
- Dynamic
Target Ctx - Refs used during corpus replay to register contracts deployed mid-sequence as fuzz targets,
mirroring the campaign loop so follow-up calls into them aren’t dropped by
can_replay_tx. - Early
Exit - Helper struct to enable early exit behavior: when one test fails or run is interrupted, all other tests stop early.
- Execution
Err - Represents the context after an execution error occurred.
- Executor
- EVM executor.
- Executor
Builder - The builder that allows to configure an evm
Executorwhich a stack of optionalrevm::Inspectors, such asCheatcodes. - Fuzz
Test Timer - Timer for a fuzz test.
- Fuzzed
Executor - Wrapper around an
Executorwhich provides fuzzing support using [proptest]. - Invariant
Executor - Wrapper around any
Executorimplementer which provides fuzzing support using [proptest]. - Invariant
Replay Options - Invariant replay settings that affect when terminal checks run.
- Minimization
Replay Input - RawCall
Result - The result of a raw call.
- Replay
Observation - Facts observed while replaying one candidate for corpus minimization.
- Showmap
Opts - Per-replay options.
- Showmap
Replay Target - Test target metadata needed to replay corpus entries.
- Showmap
Stats - Stats returned from a single trial replay.
- Stateless
Replay Target - Tracing
Executor - A default executor with tracing enabled
Enums§
- EvmError
- Replay
Failure - A structured identity for a failure observed during corpus replay.
- Showmap
Domain - Which coverage bitmap(s) to dump.
Functions§
- canonical_
replay_ dirs - Returns every
worker*/corpus/underroot, or[root]if none exist. - parse_
corpus_ filename - Parses a corpus filename of the form
<uuid>-<timestamp>.json[.gz]. - persist_
corpus_ seed - Persists one call sequence as a corpus seed in the canonical worker0 corpus directory.
- read_
corpus_ dir - Iterate corpus files in
path, ignoring entries with unparsable names. - read_
corpus_ tree - Reads corpus files from a file, corpus directory, worker corpus directory, or generated corpus
root such as
<root>/<contract>/<test>/worker0/corpus. - replay_
corpus_ to_ showmap - Replay every corpus entry under
corpus_dirand emit showmap files. - replay_
sequence_ for_ minimization - Replays one candidate input and returns coverage/failure facts for minimizers.