Skip to main content Module broadcast Copy item path Source use std::cmp::Ordering ; π use std::num::NonZeroU64 ; π use std::sync::Arc ; π use std::time::Duration ; π use crate::ScriptArgs ; π use crate::ScriptConfig ; π use crate::build::LinkedBuildData ; π use crate::owner_approvals ; π use crate::owner_approvals::OfflineOwners ; π use crate::progress::ScriptProgress ; π use crate::receipts::is_mined_receipt_for ; π use crate::recovery::AttemptKind ; π use crate::recovery::DelegatedStatus ; π use crate::sequence::DelegatedResolution ; π use crate::sequence::ScriptSequenceKind ; π use crate::sequence::blocked_pending ; π use crate::sequence::completed_transaction_prefix ; π use crate::sequence::operation_ordinal ; π use crate::session::SignerScope ; π use crate::session::insert_session_access_key_for_remaining_transactions ; π use crate::session::script_session_expected_sender_if_configured ; π use crate::verify::BroadcastedState ; π use alloy_chains::Chain; π use alloy_chains::NamedChain; π use alloy_consensus::SignableTransaction; π use alloy_consensus::Signed; π use alloy_consensus::transaction::SignerRecoverable; π use alloy_eips::eip2718::Decodable2718; π use alloy_eips::eip2718::Encodable2718; π use alloy_network::EthereumWallet; π use alloy_network::Network; π use alloy_network::NetworkTransactionBuilder; π use alloy_network::ReceiptResponse; π use alloy_network::TransactionBuilder; π use alloy_network::TransactionResponse; π use alloy_primitives::Address; π use alloy_primitives::Bytes; π use alloy_primitives::TxHash; π use alloy_primitives::TxKind; π use alloy_primitives::U256; π use alloy_primitives::keccak256; π use alloy_primitives::map::HashMap; π use alloy_primitives::map::HashSet; π use alloy_primitives::utils::format_units; π use alloy_provider::Provider; π use alloy_provider::RootProvider; π use alloy_provider::transport::RpcError; π use alloy_provider::transport::TransportError; π use alloy_provider::utils::Eip1559Estimation; π use alloy_rpc_types::BlockId; π use alloy_rpc_types::TransactionRequest; π use alloy_signer::Signature; π use alloy_signer::Signer; π use eyre::Context ; π use eyre::ContextCompat ; π use eyre::Result ; π use eyre::bail ; π use forge_script_sequence::ScriptSequence ; π use forge_script_sequence::TransactionWithMetadata ; π use foundry_cheatcodes::Wallets ; π use foundry_cli::opts::TempoOpts ; π use foundry_cli::utils::apply_gas_estimate_multiplier ; π use foundry_cli::utils::has_batch_support ; π use foundry_cli::utils::has_different_gas_calc ; π use foundry_common::FoundryTransactionBuilder ; π use foundry_common::TransactionMaybeSigned ; π use foundry_common::provider::ProviderBuilder ; π 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::active_tempo_hardfork ; π use foundry_common::tempo::configurable_account::ConfigurableAccountSigner ; π use foundry_common::tempo::configurable_account::detect_configurable_account ; π use foundry_common::tempo::configurable_account::reaches_threshold ; π use foundry_common::tempo::maybe_print_fee_token ; π use foundry_common::tempo::resolve_and_set_fee_token ; π use foundry_config::Config ; π use foundry_evm::core::constants::DEFAULT_CREATE2_DEPLOYER_CODEHASH ; π use foundry_evm::core::evm::FoundryEvmNetwork ; π use foundry_evm::core::evm::TempoEvmNetwork ; π use foundry_evm::traces::CallKind; π use foundry_wallets::wallet_browser::error::BrowserWalletError; π use foundry_wallets::wallet_browser::signer::BrowserSigner; π use futures::FutureExt; π use futures::StreamExt; π use futures::future::join_all; π use futures::stream::FuturesUnordered; π use itertools::Itertools; π use tempo_alloy::TempoNetwork; π use tempo_alloy::accounts::TempoAccountsWallet; π use tempo_alloy::chainspec::hardfork::TempoHardfork; π use tempo_alloy::rpc::TempoTransactionReceipt; π use tempo_alloy::rpc::TempoTransactionRequest; π use tempo_primitives::transaction::Call; π use tempo_primitives::transaction::TEMPO_EXPIRING_NONCE_KEY; π use tempo_primitives::transaction::TempoTxEnvelope; π BundledState State after we have bundled all
TransactionWithMetadata objects into a single ScriptSequenceKind object containing one
or more script sequences. FeePlan π Fees chosen once per sequence for its remaining unsigned operations. PreparedTransaction π A prepared submission, with local signatures fixed before checkpointing and sending. SendTransactionKind Represents how to send a single transaction. SendTransactionsKind Represents how to send all transactions convert_tempo_aa_create π ensure_recorded_sponsor π Rejects preparing new transactions without the Tempo sponsor recorded when the deployment was
created, so that resume never changes who pays. estimate_gas Estimates and sets the gas limit of tx, which a Tempo fee payer signs afterwards when
sponsored. fee_totals π Returns the total gas used, the average gas price and the total fee paid in wei for the given
(gas_used, effective_gas_price) receipt pairs. is_definite_browser_non_submission π is_definite_unlocked_non_submission π is_operation_completed π Returns true if the operation has a receipt or a recorded revert for its own hash. is_operation_submitted π Returns true if the operation was already submitted, or may have been: it has a recorded hash or
a saved signed or delegated attempt. is_unlocked_non_submission π refused_after_revert π Returns the error for operations that resume must not send: the script stops at a failed call,
so it never reached the operations without a submission in the first sequence with a recorded
revert or in a later one. reject_access_key_create π reject_expiring_call_before_create π Collection increments the senderβs protocol nonce for CALLs, but expiring CALLs do not.
Reject a subsequent CREATE before submitting anything, since its simulated address is stale.
Called only when expiring nonce mode is enabled. remaining_operation_indices π Returns the operations of the sequence that are left to send or recover. From the first sequence
with a recorded revert on, the script never reached operations that were not yet submitted, so
only operations that were already submitted are left. remaining_sender_addresses π remaining_unsigned_transactions_for_recovery π resume_script_failure π Describes the failed script run that --resume performed to collect missing signers. send_tempo_batch_payload π should_broadcast_sequentially π tempo_batch_calls π validate_tempo_batch_envelope π validate_tempo_batch_payload π validate_tempo_batch_request π wait_for_batch_receipt π