Skip to main content

Crate cast

Crate cast 

Source
Expand description

Cast is a Swiss Army knife for interacting with Ethereum applications from the command line.

ModulesΒ§

args
base
call_spec
Call specification parsing for batch transactions.
cmd
cast subcommands.
core
foundry-evm-core
coverage
foundry-evm-coverage
debug πŸ”’
diagnostic
Stable, machine-readable diagnostic codes emitted by cast.
errors
Errors for this crate
executors
EVM executor abstractions, which can execute calls.
fuzz
foundry-evm-fuzz
hardforks
EVM hardfork definitions for Foundry.
inspectors
EVM inspectors.
introspect
Stable, agent-facing metadata for the cast command tree.
opts
revm
Revm is a Rust EVM implementation.
rlp_converter πŸ”’
tempo
Tempo transaction helpers used by Cast-facing commands.
traces
foundry-evm-traces
tx

MacrosΒ§

call_inspectors
Helper macro to call the same method on multiple inspectors without resorting to dynamic dispatch.

StructsΒ§

Cast
EvmEnv
Container type that holds both the configuration and block environment for EVM execution.
SimpleCast

TraitsΒ§

FoundryInspectorExt
A combined inspector trait that integrates revm’s Inspector with Foundry-specific extensions. Automatically implemented for any type that implements both Inspector<CTX> and InspectorExt.
InspectorExt
Foundry-specific inspector methods, decoupled from any particular EVM context type.

FunctionsΒ§

explorer_client πŸ”’
is_range_limit_error πŸ”’
Returns true if err is a provider range/result-size limit that retrying over a smaller range can fix. Network, auth, rate-limit, and malformed-response errors return false.
strip_0x πŸ”’