Expand description
Β§foundry-cheatcodes
Foundry cheatcodes implementations.
Re-exportsΒ§
pub extern crate foundry_cheatcodes_spec as spec;
ModulesΒ§
- Vm
- Foundry cheatcodes interface.
- base64 π
- config π
- crypto π
- Implementations of
CryptoCheatcodes. - env π
- Implementations of
Environmentcheatcodes. - error π
- evm π
- Implementations of
Evmcheatcodes. - fs π
- Implementations of
Filesystemcheatcodes. - inspector π
- Cheatcode EVM inspector.
- json π
- Implementations of
Jsoncheatcodes. - script π
- Implementations of
Scriptingcheatcodes. - string π
- Implementations of
Stringcheatcodes. - test π
- Implementations of
Testingcheatcodes. - toml π
- Implementations of
Tomlcheatcodes. - utils π
- Implementations of
Utilitiescheatcodes. - version π
StructsΒ§
- Broadcastable
Transaction - Helps collecting transactions from different forks.
- Cheatcode
Analysis - Provides cached, on-demand syntactic and semantic analysis of a completed
Compilerinstance. - Cheatcodes
- An EVM inspector that handles calls to various cheatcodes, each with their own behavior.
- Cheats
Config - Additional, configurable context the
Cheatcodesinspector has access to - Cheats
Ctxt - The cheatcode context.
- Error
- Error thrown by cheatcodes.
- Wallets
- Cloneable wrapper around
WalletsInner. - Wallets
Inner - Contains context for wallet management.
EnumsΒ§
- Broadcast
Kind - Distinguishes between unsigned transactions (from
startBroadcast) that need signing, and pre-signed transactions (frombroadcastRawTransaction) that carry raw RLP-encoded bytes. - Error
Kind - Kind of cheatcode errors.
- Forge
Context - Forge execution contexts.
TraitsΒ§
- Cheatcode π
- Cheatcode implementation.
- Cheatcode
Def - Cheatcode definition trait. Implemented by all
Vmfunctions. - Cheatcodes
Executor - Helper trait for running nested EVM operations from inside cheatcode implementations.
- EthCheat
Ctx - Temporary bound alias used during the transition to a fully generic foundry-evm and foundry-cheatcodes.
FunctionsΒ§
- precompile_
error π - set_
execution_ context - Set
forgecommand current execution context for the duration of the program. Execution context is immutable, subsequent calls of this function wonβt change the context.
Type AliasesΒ§
- Broadcastable
Transactions - List of transactions that can be broadcasted.
- Expected
Call Tracker - Tracks the expected calls per address.
- Nested
EvmClosure - Closure type used by
CheatcodesExecutormethods that run nested EVM operations. - Result
- Cheatcode result type.