Skip to main content

Module cmd

Module cmd 

Source

Re-exportsΒ§

use alloy_dyn_abi::DynSolValue; πŸ”’
use alloy_dyn_abi::Specifier; πŸ”’
use alloy_json_abi::Constructor; πŸ”’
use alloy_json_abi::JsonAbi; πŸ”’
use eyre::Result; πŸ”’
use eyre::WrapErr; πŸ”’
use foundry_common::TestFunctionExt; πŸ”’
use foundry_common::fmt::parse_tokens; πŸ”’
use foundry_common::fs; πŸ”’
use foundry_common::fs::json_files; πŸ”’
use foundry_common::selectors::SelectorKind; πŸ”’
use foundry_common::shell; πŸ”’
use foundry_compilers::Artifact; πŸ”’
use foundry_compilers::ArtifactId; πŸ”’
use foundry_compilers::ProjectCompileOutput; πŸ”’
use foundry_compilers::artifacts::CompactBytecode; πŸ”’
use foundry_compilers::utils::read_json_file; πŸ”’
use foundry_config::Chain; πŸ”’
use foundry_config::Config; πŸ”’
use foundry_config::NamedChain; πŸ”’
use foundry_config::error::ExtractConfigError; πŸ”’
use foundry_config::figment::Figment; πŸ”’
use foundry_config::figment::Provider; πŸ”’
use foundry_evm::core::evm::FoundryEvmNetwork; πŸ”’
use foundry_evm::executors::DeployResult; πŸ”’
use foundry_evm::executors::EvmError; πŸ”’
use foundry_evm::executors::RawCallResult; πŸ”’
use foundry_evm::opts::EvmOpts; πŸ”’
use foundry_evm::traces::CallTraceDecoder; πŸ”’
use foundry_evm::traces::TraceKind; πŸ”’
use foundry_evm::traces::Traces; πŸ”’
use foundry_evm::traces::decode_trace_arena; πŸ”’
use foundry_evm::traces::identifier::SignaturesCache; πŸ”’
use foundry_evm::traces::prune_trace_depth; πŸ”’
use foundry_evm::traces::render_trace_arena_inner; πŸ”’
use foundry_evm::traces::trace_arena_at_depth; πŸ”’
use std::fmt::Write; πŸ”’
use std::path::Path; πŸ”’
use std::path::PathBuf; πŸ”’
use yansi::Paint; πŸ”’

StructsΒ§

TraceResult
A slimmed down return from the executor used for returning minimal trace + gas metering info

TraitsΒ§

LoadConfig
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.
emit_warnings πŸ”’
ensure_clean_constructor
Returns error if constructor has arguments.
eta_key
find_contract_artifacts
Given a Project’s output, finds the contract by path and name and returns its ABI, creation bytecode, and ArtifactId.
has_batch_support
True if it supports broadcasting in batches.
has_different_gas_calc
True if the network calculates gas costs differently.
init_progress
load_config_from_provider
Loads and sanitizes Config from a provider and emits generated warnings.
needs_setup
parse_constructor_args
Parses constructor arguments by matching them against the constructor’s input parameters.
print_traces
read_constructor_args_file
Read contract constructor arguments from the given file.