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
. - Context
- Contains additional, test specific resources that should be kept for the duration of the test
- Error
- Error thrown by cheatcodes.
- Wallets
- Clonable 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§
- 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.