Modules§
- abi 🔒
- allocator 🔒
- Abstract global allocator implementation.
- cmd 🔒
- suggestions 🔒
- Helper functions for suggesting alternative values for a possibly erroneous user input.
- tempo 🔒
- Tempo utilities: fee token parsing and named nonce lanes (2D nonces).
Structs§
- Git
- Resolved
Lane - Result of resolving a
--tempo.lane <name>argument against a lanes file. - Submodule
- Deserialized
git submodule status lib/depoutput. - Submodules
- Deserialized
git submodule statusoutput. - Trace
Result - A slimmed down return from the executor used for returning minimal trace + gas metering info
Constants§
- DEFAULT_
LANES_ FILE - Default name of the lanes file at the project root.
- STATIC_
FUZZ_ SEED - Deterministic fuzzer seed used for gas snapshots and coverage reports.
Statics§
- SUBMODULE_
BRANCH_ REGEX - Regex used to parse
.gitmodulesfile and capture the submodule path and branch. - SUBMODULE_
STATUS_ REGEX - Regex used to parse
git submodule statusoutput.
Traits§
- Command
Utils - Useful extensions to
std::process::Command. - Foundry
Path Ext - Useful extensions to
std::path::Path. - Load
Config - Helpers for loading configuration.
Functions§
- cache_
local_ signatures - Traverse the artifacts in the project to generate local signatures and merge them into the cache file.
- cache_
signatures_ from_ abis - Traverses all files at
folder_path, parses any JSON ABI files found, and caches their function/event/error signatures to the local signatures cache. - common_
setup - Common setup for all CLI tools. Does not include tracing subscriber.
- did_
you_ mean - Filters multiple strings from a given list of possible values which are similar
to the passed in value
vwithin a certain confidence by least confidence. - enable_
paint - Sets the default [
yansi] color output condition. - ensure_
clean_ constructor - Returns error if constructor has arguments.
- env_
filter 🔒 - eta_key
- fetch_
abi_ from_ etherscan - Fetches the ABI of a contract from Etherscan.
- find_
contract_ artifacts - Given a
Project’s output, finds the contract by path and name and returns its ABI, creation bytecode, andArtifactId. - get_
chain - get_
provider - Returns a [
RootProvider] instantiated using [Config]’s RPC settings. - get_
provider_ builder - Returns a [ProviderBuilder] instantiated using [Config] values.
- has_
batch_ support - True if it supports broadcasting in batches.
- has_
different_ gas_ calc - True if the network calculates gas costs differently.
- init_
progress - install_
crypto_ provider - This force installs the default crypto provider.
- load_
dotenv - Loads a dotenv file, from the cwd and the project root, ignoring potential failure.
- load_
lanes - Loads a TOML lanes file from
path. - maybe_
print_ resolved_ lane - Prints
lane: <name> (nonce_key=<key>, nonce=<n>)to stderr (so it doesn’t pollute stdout for commands likecast mktxwhose stdout is meant to be piped), giving visibility into which 2D nonce lane was used. - needs_
setup - new_
allocator - Creates a new allocator.
- now
- Returns the current time as a
Durationsince the Unix epoch. - parse_
delay - Parses a
Durationfrom a &str - parse_
ether_ value - Parses an ether value from a string.
- parse_
fee_ token_ address - Parses a fee token address.
- parse_
function_ args - parse_
json - Parses a
Tfrom a string usingserde_json::from_str. - print_
traces - read_
constructor_ args_ file - Read contract constructor arguments from the given file.
- resolve_
lane - Resolves
opts.laneagainst a lanes file and writes the resultingnonce_keytoopts.nonce_key. Returns the resolved lane (orNoneif no--tempo.lanewas set). - subscriber
- Initializes a tracing Subscriber for logging