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;๐baseuse op_alloy_network::Optimism;๐optimismuse rayon::prelude::*;๐
Macrosยง
- with_
network_ ๐provider - Runs
$bodywith$providerbound to a provider for the selected--network. Optionally binds$network_typeto 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/bytesright-padded to a multiple of 32 bytes, and sequences as the concatenation of their encoded members. - explorer_
client ๐ - format_
lane_ ๐classification - Validates that
encodedis 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 buildand trace decoding populate. - resolve_
or ๐ - Resolves
whowhen given, otherwise returnsdefault. - rpc_
provider_ ๐and_ address - Builds the default provider for
rpcand resolveswhoagainst it. - run
- Run the
castcommand-line interface. - run_
command - Run the subcommand.
- setup
- Setup the global logger and other utilities.
- shift ๐
- Parses
valueandbits, appliesshiftand formats the result with thebase_outprefix. - signed_
parse_ ๐units - Converts a parsed, possibly-negative
NumberWithBaseinto aParseUnits, 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.