Crate foundry_cheatcodes

Crate foundry_cheatcodes 

Source
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Β§

BroadcastableTransaction
Helps collecting transactions from different forks.
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
CheatsCtxt
The cheatcode context, used in Cheatcode.
Error
Error thrown by cheatcodes.
Wallets
Cloneable wrapper around WalletsInner.
WalletsInner
Contains context for wallet management.

EnumsΒ§

ErrorKind
Kind of cheatcode errors.
ForgeContext
Forge execution contexts.

TraitsΒ§

Cheatcode πŸ”’
Cheatcode implementation.
CheatcodeDef
Cheatcode definition trait. Implemented by all Vm functions.
CheatcodesExecutor
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Β§

BroadcastableTransactions
List of transactions that can be broadcasted.
ExpectedCallTracker
Tracks the expected calls per address.
Result
Cheatcode result type.