Skip to main content

Module tx

Module tx 

Source

Re-exportsΒ§

use crate::traces::identifier::SignaturesIdentifier; πŸ”’
use alloy_consensus::SidecarBuilder; πŸ”’
use alloy_consensus::SimpleCoder; πŸ”’
use alloy_dyn_abi::ErrorExt; πŸ”’
use alloy_ens::NameOrAddress; πŸ”’
use alloy_json_abi::Function; πŸ”’
use alloy_network::Network; πŸ”’
use alloy_network::ReceiptResponse; πŸ”’
use alloy_network::TransactionBuilder; πŸ”’
use alloy_primitives::Address; πŸ”’
use alloy_primitives::B256; πŸ”’
use alloy_primitives::Bytes; πŸ”’
use alloy_primitives::TxHash; πŸ”’
use alloy_primitives::TxKind; πŸ”’
use alloy_primitives::U64; πŸ”’
use alloy_primitives::U256; πŸ”’
use alloy_primitives::hex; πŸ”’
use alloy_primitives::hex; πŸ”’
use alloy_provider::PendingTransactionBuilder; πŸ”’
use alloy_provider::Provider; πŸ”’
use alloy_rpc_types::AccessList; πŸ”’
use alloy_rpc_types::Authorization; πŸ”’
use alloy_rpc_types::TransactionInputKind; πŸ”’
use alloy_signer::Signer; πŸ”’
use alloy_transport::TransportError; πŸ”’
use clap::Args; πŸ”’
use eyre::Result; πŸ”’
use eyre::WrapErr; πŸ”’
use foundry_cli::opts::CliAuthorizationList; πŸ”’
use foundry_cli::opts::EthereumOpts; πŸ”’
use foundry_cli::opts::TempoOpts; πŸ”’
use foundry_cli::opts::TransactionOpts; πŸ”’
use foundry_cli::utils; πŸ”’
use foundry_cli::utils::apply_gas_estimate_multiplier; πŸ”’
use foundry_cli::utils::parse_ether_value; πŸ”’
use foundry_cli::utils::parse_function_args; πŸ”’
use foundry_common::FoundryTransactionBuilder; πŸ”’
use foundry_common::TransactionReceiptWithRevertReason; πŸ”’
use foundry_common::get_pretty_receipt_w_reason_attr; πŸ”’
use foundry_common::provider::fee::estimate_eip1559_fees; πŸ”’
use foundry_common::provider::fee::resolve_broadcast_eip1559_fees; πŸ”’
use foundry_common::shell; πŸ”’
use foundry_common::tempo::ensure_expiring_nonce_discriminator_active; πŸ”’
use foundry_config::Chain; πŸ”’
use foundry_config::Config; πŸ”’
use foundry_config::Eip1559FeeEstimatePreset; πŸ”’
use foundry_wallets::BrowserWalletOpts; πŸ”’
use foundry_wallets::TempoAccountsWallet; πŸ”’
use foundry_wallets::WalletOpts; πŸ”’
use foundry_wallets::WalletSigner; πŸ”’
use itertools::Itertools; πŸ”’
use std::fmt::Write; πŸ”’
use std::marker::PhantomData; πŸ”’
use std::str::FromStr; πŸ”’
use std::time::Duration; πŸ”’
use foundry_common::fmt::*; πŸ”’

StructsΒ§

CastTxBuilder
Builder type constructing generic TransactionRequest from cast send/mktx inputs.
CastTxSender
InitState
Initial state.
InputState
State with known input for the transaction.
SendTxOpts
ToState
State with known TxKind.
TxBuilderInner πŸ”’
The state-independent part of CastTxBuilder.
TxParams
Transaction options shared across cast commands that submit on-chain transactions.

EnumsΒ§

SenderKind
Different sender kinds used by CastTxBuilder.

FunctionsΒ§

apply_poll_interval πŸ”’
Applies the --poll-interval (in seconds) to a provider’s receipt polling when one was given.
decode_custom_error πŸ”’
Tries to decode a custom error name and inputs from revert data.
fill_transaction_gas_fees πŸ”’
Fills gas price or EIP-1559 fee fields from the provider and validates the final pair.
read_only_sender πŸ”’
Resolves the sender of a read-only request: the browser wallet address when --browser is set, otherwise the wallet options. Also returns whether the browser wallet was used.
resolve_send_signer πŸ”’
Resolves the sending signer, falling back to the wallet options, and validates it against an explicit --from.
validate_authorizations πŸ”’
Validates that sender can resolve every EIP-7702 authorization.
validate_from_address
Prevents a misconfigured hwlib from sending a transaction that defies user-specified –from