Skip to main content

Module args

Module args 

Source

Re-exportsยง

use crate::base::Base; ๐Ÿ”’
use crate::base::NumberWithBase; ๐Ÿ”’
use crate::cmd::erc20::IERC20; ๐Ÿ”’
use crate::cmd::rpc_provider; ๐Ÿ”’
use crate::opts::AbiSubcommand; ๐Ÿ”’
use crate::opts::Cast as CastArgs; ๐Ÿ”’
use crate::opts::CastSubcommand; ๐Ÿ”’
use crate::opts::ConversionSubcommand; ๐Ÿ”’
use crate::opts::MiscSubcommand; ๐Ÿ”’
use crate::opts::QuerySubcommand; ๐Ÿ”’
use crate::opts::ToBaseArgs; ๐Ÿ”’
use crate::opts::TransactionSubcommand; ๐Ÿ”’
use crate::traces::identifier::SignaturesIdentifier; ๐Ÿ”’
use crate::tx::CastTxSender; ๐Ÿ”’
use alloy_consensus::Typed2718; ๐Ÿ”’
use alloy_consensus::transaction::Recovered; ๐Ÿ”’
use alloy_consensus::transaction::SignerRecoverable; ๐Ÿ”’
use alloy_dyn_abi::DynSolType; ๐Ÿ”’
use alloy_dyn_abi::DynSolValue; ๐Ÿ”’
use alloy_dyn_abi::ErrorExt; ๐Ÿ”’
use alloy_dyn_abi::EventExt; ๐Ÿ”’
use alloy_dyn_abi::Specifier; ๐Ÿ”’
use alloy_eips::Encodable2718; ๐Ÿ”’
use alloy_eips::eip7702::SignedAuthorization; ๐Ÿ”’
use alloy_ens::NameOrAddress; ๐Ÿ”’
use alloy_ens::ProviderEnsExt; ๐Ÿ”’
use alloy_ens::namehash; ๐Ÿ”’
use alloy_network::BlockResponse; ๐Ÿ”’
use alloy_network::Ethereum; ๐Ÿ”’
use alloy_network::Network; ๐Ÿ”’
use alloy_network::eip2718::Decodable2718; ๐Ÿ”’
use alloy_primitives::Address; ๐Ÿ”’
use alloy_primitives::B256; ๐Ÿ”’
use alloy_primitives::Bytes; ๐Ÿ”’
use alloy_primitives::I256; ๐Ÿ”’
use alloy_primitives::Keccak256; ๐Ÿ”’
use alloy_primitives::LogData; ๐Ÿ”’
use alloy_primitives::Selector; ๐Ÿ”’
use alloy_primitives::TxHash; ๐Ÿ”’
use alloy_primitives::U64; ๐Ÿ”’
use alloy_primitives::U256; ๐Ÿ”’
use alloy_primitives::b256; ๐Ÿ”’
use alloy_primitives::eip191_hash_message; ๐Ÿ”’
use alloy_primitives::hex; ๐Ÿ”’
use alloy_primitives::hex; ๐Ÿ”’
use alloy_primitives::keccak256; ๐Ÿ”’
use alloy_primitives::utils::ParseUnits; ๐Ÿ”’
use alloy_primitives::utils::Unit; ๐Ÿ”’
use alloy_provider::Provider; ๐Ÿ”’
use alloy_rlp::decode_exact; ๐Ÿ”’
use alloy_rlp::encode; ๐Ÿ”’
use alloy_rpc_types::BlockId; ๐Ÿ”’
use clap::CommandFactory; ๐Ÿ”’
use clap::Parser; ๐Ÿ”’
use clap_complete::generate; ๐Ÿ”’
use eyre::ContextCompat; ๐Ÿ”’
use eyre::OptionExt; ๐Ÿ”’
use eyre::Result; ๐Ÿ”’
use eyre::WrapErr; ๐Ÿ”’
use foundry_block_explorers::Client; ๐Ÿ”’
use foundry_cli::json::print_json_object; ๐Ÿ”’
use foundry_cli::json::print_json_value_or_scalar; ๐Ÿ”’
use foundry_cli::json::print_list; ๐Ÿ”’
use foundry_cli::json::print_scalar; ๐Ÿ”’
use foundry_cli::json::print_tokens; ๐Ÿ”’
use foundry_cli::opts::RpcOpts; ๐Ÿ”’
use foundry_cli::utils; ๐Ÿ”’
use foundry_cli::utils::LoadConfig; ๐Ÿ”’
use foundry_common::abi::abi_decode_calldata; ๐Ÿ”’
use foundry_common::abi::abi_decode_event_data; ๐Ÿ”’
use foundry_common::abi::encode_function_args; ๐Ÿ”’
use foundry_common::abi::encode_function_args_packed; ๐Ÿ”’
use foundry_common::abi::get_error; ๐Ÿ”’
use foundry_common::abi::get_event; ๐Ÿ”’
use foundry_common::abi::get_func; ๐Ÿ”’
use foundry_common::fmt::UIfmt; ๐Ÿ”’
use foundry_common::fmt::UIfmtSignatureExt; ๐Ÿ”’
use foundry_common::fmt::format_uint_exp; ๐Ÿ”’
use foundry_common::fmt::get_pretty_block_attr; ๐Ÿ”’
use foundry_common::fmt::get_pretty_tx_attr; ๐Ÿ”’
use foundry_common::fs; ๐Ÿ”’
use foundry_common::provider::ProviderBuilder; ๐Ÿ”’
use foundry_common::provider::RetryProvider; ๐Ÿ”’
use foundry_common::selectors::ParsedSignatures; ๐Ÿ”’
use foundry_common::selectors::SelectorImportData; ๐Ÿ”’
use foundry_common::selectors::SelectorKind; ๐Ÿ”’
use foundry_common::selectors::decode_calldata; ๐Ÿ”’
use foundry_common::selectors::decode_event_topic; ๐Ÿ”’
use foundry_common::selectors::decode_function_selector; ๐Ÿ”’
use foundry_common::selectors::decode_selectors; ๐Ÿ”’
use foundry_common::selectors::import_selectors; ๐Ÿ”’
use foundry_common::selectors::parse_signatures; ๐Ÿ”’
use foundry_common::selectors::pretty_calldata; ๐Ÿ”’
use foundry_common::shell; ๐Ÿ”’
use foundry_common::stdin; ๐Ÿ”’
use foundry_common::tempo::classify_payment_lane; ๐Ÿ”’
use foundry_config::Chain; ๐Ÿ”’
use foundry_evm_networks::NetworkVariant; ๐Ÿ”’
use foundry_primitives::FoundryNetwork; ๐Ÿ”’
use foundry_primitives::FoundryTxEnvelope; ๐Ÿ”’
use serde::Serialize; ๐Ÿ”’
use serde::Serialize; ๐Ÿ”’
use std::str::FromStr; ๐Ÿ”’
use std::sync::atomic::AtomicBool; ๐Ÿ”’
use std::sync::atomic::Ordering; ๐Ÿ”’
use std::time::Instant; ๐Ÿ”’
use tempo_alloy::TempoNetwork; ๐Ÿ”’
use tempo_contracts::precompiles::ITIP20ChannelReserve; ๐Ÿ”’
use tempo_contracts::precompiles::TIP20_CHANNEL_RESERVE_ADDRESS; ๐Ÿ”’
use base_common_network::Base as BaseNetwork; ๐Ÿ”’ base
use op_alloy_network::Optimism; ๐Ÿ”’ optimism
use rayon::prelude::*; ๐Ÿ”’

Macrosยง

with_network_provider ๐Ÿ”’
Runs $body with $provider bound to a provider for the selected --network. Optionally binds $network_type to the selected network type.

Functionsยง

address_at_slot ๐Ÿ”’
decode_raw_transaction ๐Ÿ”’
encode_event_topic ๐Ÿ”’
Encodes the topic of an indexed event parameter.
encode_event_topic_preimage ๐Ÿ”’
Encodes a value into the in-place preimage of an indexed event parameter: words as-is, string/bytes right-padded to a multiple of 32 bytes, and sequences as the concatenation of their encoded members.
explorer_client ๐Ÿ”’
format_lane_classification ๐Ÿ”’
Validates that encoded is a supported EIP-2718 transaction and renders its Tempo T5 payment lane classification.
format_transaction ๐Ÿ”’
format_unit_as_string ๐Ÿ”’
format_units ๐Ÿ”’
get_selector ๐Ÿ”’
int_bound ๐Ÿ”’
local_function_signature ๐Ÿ”’
Returns the signature of a function selector from the local signatures cache, which forge build and trace decoding populate.
resolve_or ๐Ÿ”’
Resolves who when given, otherwise returns default.
rpc_provider_and_address ๐Ÿ”’
Builds the default provider for rpc and resolves who against it.
run
Run the cast command-line interface.
run_command
Run the subcommand.
setup
Setup the global logger and other utilities.
shift ๐Ÿ”’
Parses value and bits, applies shift and formats the result with the base_out prefix.
signed_parse_units ๐Ÿ”’
Converts a parsed, possibly-negative NumberWithBase into a ParseUnits, preserving its sign.
strip_0x ๐Ÿ”’
to_base ๐Ÿ”’
transaction_response ๐Ÿ”’
with_local_first ๐Ÿ”’
Lists a signature from the local cache first, followed by the other signatures found remotely. The cached signature alone is used when the remote lookup fails.