Skip to main content

Module tempo

Module tempo 

Source
Expand description

Tempo transaction helpers used by Cast-facing commands.

StructsΒ§

AnvilNodeInfo πŸ”’
ExistingTransportConnector πŸ”’
Connector for reusing an already-configured RPC transport.
TempoSponsor
Gas sponsor configuration for Tempo fee-payer signatures.

FunctionsΒ§

active_from_anvil_node_info πŸ”’
anvil_tempo_hardfork_active πŸ”’
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 requirement when 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::CastTxBuilder before access-key signing.
is_tempo_hardfork_active πŸ”’
maybe_attach_sponsor πŸ”’
Resolves the sponsored fee token and attaches the sponsor signature preview for payer when 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 message unless hardfork is 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_payer first when one is configured. Used by --tempo.print-sponsor-hash.
sponsor_relay_connector πŸ”’
tempo_provider πŸ”’
Loads the config for opts and builds a Tempo provider from it.