Expand description
Tempo transaction helpers used by Cast-facing commands.
Re-exportsΒ§
use crate::tx::fill_transaction_gas_fees;πuse alloy_network::Ethereum;πuse alloy_network::Network;πuse alloy_network::TransactionBuilder;πuse alloy_primitives::Address;πuse alloy_primitives::B256;πuse alloy_provider::Provider;πuse alloy_rpc_client::BuiltInConnectionString;πuse alloy_transport::BoxTransport;πuse alloy_transport::TransportConnect;πuse alloy_transport::TransportError;πuse eyre::Result;πuse foundry_cli::json::print_json_success;πuse foundry_cli::opts::EthereumOpts;πuse foundry_cli::opts::TempoOpts;πuse foundry_cli::utils::LoadConfig;πuse foundry_cli::utils::get_chain;πuse foundry_common::FoundryTransactionBuilder;πuse foundry_common::provider::ProviderBuilder;πuse foundry_common::provider::RetryProvider;πuse foundry_common::shell;πuse foundry_common::tempo::is_tempo_hardfork_active;πuse foundry_common::tempo::maybe_print_fee_token;πuse foundry_common::tempo::resolve_and_set_fee_token;πuse foundry_config::Chain;πuse foundry_config::Config;πuse foundry_config::Eip1559FeeEstimatePreset;πuse foundry_evm::hardfork::TempoHardfork;πuse foundry_evm_networks::NetworkVariant;πuse foundry_wallets::TempoAccountsWallet;πuse foundry_wallets::WalletOpts;πuse foundry_wallets::WalletSigner;πuse serde_json::Value;πuse std::str::FromStr;πuse tempo_alloy::TempoNetwork;πuse tempo_alloy::rpc::TempoTransactionRequest;πuse tempo_alloy::transport::RelayConnector;πuse tempo_alloy::transport::SponsorshipMode;π
StructsΒ§
- Existing
Transport πConnector - Connector for reusing an already-configured RPC transport.
- Tempo
Sponsor - Gas sponsor configuration for Tempo fee-payer signatures.
FunctionsΒ§
- apply_
fee_ πpayment - Attaches the fee payment to a built transaction: the sponsor signature when a sponsor is
configured, otherwise the resolved fee token for
payer(printing it when it was resolved). - ensure_
session_ πnot_ browser - ensure_
tempo_ πprecompile_ active - Fails early with
requirementwhen a Tempo precompile is not active yet: a pre-fork call would succeed as a silent no-op instead of reverting. Prefers the hardfork query and falls back to checking the precompileβs code when the RPC lacks the method. - fill_
access_ πkey_ transaction - Fills a Tempo transaction request that was built outside
crate::tx::CastTxBuilderbefore access-key signing. - maybe_
attach_ πsponsor - Resolves the sponsored fee token and attaches the sponsor signature preview for
payerwhen a sponsor is configured. - print_
expires π - print_
payload π - Prints a command result: the raw payload in JSON mode, the human rendering otherwise.
- require_
hardfork π - Fails with
messageunlesshardforkis active on the RPC. - resolve_
and_ πprint_ fee_ token - Resolves and sets the fee token paid by
fee_payer, printing it when it was resolved. - resolve_
session_ πor_ wallet_ signer - Resolves a command signer, preferring an explicitly selected Tempo session.
- resolve_
transaction_ πnetwork_ and_ signer - Resolves the transaction network and any configured signer without letting an unrelated Tempo Accounts store change ordinary Ethereum commands.
- sponsor_
hash π - Computes the sponsor hash of a built transaction, resolving the fee token for
fee_payerfirst when one is configured. Used by--tempo.print-sponsor-hash. - sponsor_
relay_ πconnector - tempo_
provider π - Loads the config for
optsand builds a Tempo provider from it.