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
Crypto
Cheatcodes. - env π
- Implementations of
Environment
cheatcodes. - error π
- evm π
- Implementations of
Evm
cheatcodes. - fs π
- Implementations of
Filesystem
cheatcodes. - inspector π
- Cheatcode EVM inspector.
- json π
- Implementations of
Json
cheatcodes. - script π
- Implementations of
Scripting
cheatcodes. - string π
- Implementations of
String
cheatcodes. - test π
- Implementations of
Testing
cheatcodes. - toml π
- Implementations of
Toml
cheatcodes. - utils π
- Implementations of
Utilities
cheatcodes. - version π
StructsΒ§
- Broadcastable
Transaction - Helps collecting transactions from different forks.
- Cheatcodes
- An EVM inspector that handles calls to various cheatcodes, each with their own behavior.
- Cheats
Config - Additional, configurable context the
Cheatcodes
inspector has access to - Cheats
Ctxt - The cheatcode context, used in
Cheatcode
. - Error
- Error thrown by cheatcodes.
- Wallets
- Cloneable wrapper around
WalletsInner
. - Wallets
Inner - Contains context for wallet management.
EnumsΒ§
- Error
Kind - Kind of cheatcode errors.
- Forge
Context - Forge execution contexts.
TraitsΒ§
- Cheatcode π
- Cheatcode implementation.
- Cheatcode
Def - Cheatcode definition trait. Implemented by all
Vm
functions. - Cheatcodes
Executor - Helper trait for obtaining complete [revm::Inspector] instance from mutable reference to Cheatcodes.
- DynCheatcode π
FunctionsΒ§
- precompile_
error π - set_
execution_ context - Set
forge
command 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.
- Result
- Cheatcode result type.