Expand description
Tempo network utilities.
Re-exportsΒ§
use crate::FoundryTransactionBuilder;πuse alloy_network::Network;πuse alloy_network::TransactionBuilder;πuse alloy_primitives::Address;πuse alloy_primitives::B256;πuse alloy_primitives::Signature;πuse alloy_primitives::TxKind;πuse alloy_primitives::address;πuse alloy_provider::Provider;πuse alloy_signer::Signer;πuse alloy_sol_types::SolCall;πuse eyre::Context;πuse eyre::Result;πuse foundry_wallets::RawWalletOpts;πuse foundry_wallets::WalletOpts;πuse foundry_wallets::WalletSigner;πuse std::sync::Arc;πuse tempo_alloy::contracts::precompiles::IFeeManager;πuse tempo_alloy::contracts::precompiles::IStablecoinDEX;πuse tempo_alloy::contracts::precompiles::ITIP20;πuse tempo_alloy::contracts::precompiles::STABLECOIN_DEX_ADDRESS;πuse tempo_alloy::contracts::precompiles::TIP_FEE_MANAGER_ADDRESS;πuse tempo_primitives::TempoAddressExt;πpub use auth::AccessKeyOutcome;pub use auth::EnsureAccessKeyConfig;pub use auth::ensure_access_key;
ModulesΒ§
- auth
- Tempo wallet device-code authorization flow.
- hardfork π
- Tempo hardfork activation queries.
- keystore π
- Tempo Accounts store discovery and local key metadata.
- lane π
- Tempo T5 payment-lane classification shared by anvil and cast.
- session π
- Tempo temporary access-key lifecycle backed by the canonical Accounts store.
- session_
policy π - Pure Tempo session policy construction.
- tip20 π
- Shared TIP-20 helpers.
StructsΒ§
- Accounts
Store View - Snapshot used by the existing keychain list/show/doctor commands.
- Canonical
Call Scope - Canonical
Selector Rule - Canonical
Token Limit - Generated
Session Key - Locally generated secp256k1 session key material.
- KeyEntry
- Non-secret view of one access key in the Tempo Accounts store.
- Payment
Lane Classification - Structured T5 payment-lane classification for Foundry-facing APIs.
- Prepared
Session Authorization - Prepared local session metadata plus the Tempo authorization that the root must sign.
- Resolved
Session Signer - A live managed key pinned into an Accounts wallet.
- Session
Authorization Request - Typed inputs needed to authorize a temporary session access key.
- Session
Call Scope - Session
Entry - Foundryβs command-facing view of one Accounts access key.
- Session
KeyMaterial - Transient key material used while adding an access key to the Accounts store.
- Session
Selector Rule - Session
Spend Limit - Typed spending limit for a temporary session access key.
- Session
Token Limit - Spending limit attached to a managed access key.
- Stored
Token Limit - Per-token spending limit exposed by the local keychain commands.
- Tempo
Sponsor - Gas sponsor configuration for Tempo fee-payer signatures.
- Tempo
Sponsor Preview - User-visible sponsor digest metadata for a single outgoing Tempo transaction.
EnumsΒ§
- KeyType
- Cryptographic key type used by Tempo Accounts access keys.
- Payment
Lane - Payment-lane classifier output lane.
- Payment
Lane Reason - Stable Foundry-facing reasons for general-lane classification.
- Session
Status - Status derived from a managed access keyβs Accounts record.
- Tip20
Logo UriValidation Error
ConstantsΒ§
- ALPHA_
USD_ ADDRESS - Reserved Tempo TIP20 fee-token addresses created during Foundry genesis.
- BETA_
USD_ ADDRESS - OUSD_
ADDRESS - PATH_
USD_ ADDRESS - Protocol pathUSD token address.
- TEMPO_
HOME_ ENV - Environment variable to override the Tempo home directory.
- THETA_
USD_ ADDRESS - TIP20_
ALLOWED_ LOGO_ URI_ SCHEMES - TIP20_
MAX_ LOGO_ URI_ BYTES
FunctionsΒ§
- active_
tempo_ hardfork - Returns the Tempo hardfork active on the RPC, falling back to
anvil_nodeInfofor nodes that do not serve the fork schedule. - canonical_
authorization_ limits - canonical_
authorization_ scope - canonical_
authorization_ selector_ rules - canonical_
session_ limits - canonical_
session_ scope - canonical_
session_ selector_ rules - classify_
payment_ lane - Classifies a raw EIP-2718 encoded transaction with Tempoβs T5 payment-lane classifier.
- common_
call_ πtarget - decode_
key_ authorization - Decode an RLP key authorization stored by Tempo Accounts.
- decode_
stablecoin_ πdex_ fee_ token - ensure_
expiring_ nonce_ discriminator_ active - Fails when
txcarries a non-zero expiring nonce and the chain is known to predate T12. - infer_
fee_ πtoken_ from_ set_ user_ token_ call - infer_
fee_ πtoken_ from_ stablecoin_ dex_ calls - infer_
fee_ πtoken_ from_ tip20_ calls - is_
known_ πtempo_ endpoint - Returns
trueifurlβs host istempo.xyzor a subdomain of it. - is_
tempo_ hardfork_ active - Returns whether
hardforkis active at the head of the chain behindprovider. - is_
tip20_ πfee_ token_ call - known_
fee_ token_ symbol - Returns the known symbol for a Tempo fee token without making an RPC call.
- mark_
expired_ session_ entries - Retire expired managed access keys and return the number changed.
- maybe_
print_ fee_ token - Prints the fee token selected for display.
- parse_
limit - read_
session_ entries - read_
session_ entry - read_
tempo_ accounts_ store - Read non-secret metadata from the canonical Tempo Accounts store.
- redacted_
debug π - Placeholder rendered by
Debugimpls in place of secret key material. - resolve_
and_ set_ fee_ token - Resolves and applies the Tempo fee token selected by the network.
- resolve_
fee_ πtoken_ symbol - resolve_
live_ session_ signer - Resolve a live managed key from the Accounts store and pin it for signing.
- resolve_
tempo_ sponsor_ signer - Resolves a
--tempo.sponsor-signerURI into a Foundry wallet signer. - retire_
session_ entry - Retire local signing material in
store.jsonfor the selected managed key. - stored_
user_ πfee_ token - tempo_
accounts_ store_ path - Return the canonical Tempo Accounts
store.jsonpath. - upsert_
session_ entry - Add a generated access key to the canonical Accounts store.
- validate_
session_ authorization_ policy - validate_
signed_ session_ authorization - Validate that a signed authorization describes the command-facing managed key.
- validate_
tip20_ logo_ uri