Skip to main content

Module tempo

Module tempo 

Source
Expand description

Tempo network utilities.

Re-exports§

pub use auth::AccessKeyOutcome;
pub use auth::EnsureAccessKeyConfig;
pub use auth::ensure_access_key;

Modules§

auth
Tempo wallet device-code authorization flow.
keystore 🔒
Tempo wallet keystore types and discovery helpers.
registry 🔒
session 🔒
Tempo session registry and local lifecycle metadata.

Structs§

KeyEntry
A single key entry in keys.toml.
KeysFile
The top-level structure of keys.toml.
SessionCallScope
A single target scope in a session entry.
SessionEntry
Persisted metadata for one temporary session.
SessionRecord
Top-level registry persisted in wallet/sessions.toml.
SessionSelectorRule
A single selector rule in a session scope.
SessionTokenLimit
Spending limit stored for a session entry.
StoredTokenLimit
Per-token spending limit stored in keys.toml.
TempoSponsor
Gas sponsor configuration for Tempo fee-payer signatures.
TempoSponsorPreview
User-visible sponsor digest metadata for a single outgoing Tempo transaction.

Enums§

KeyType
Cryptographic key type.
SessionStatus
Status of a local session entry.
WalletType
Wallet type matching tempo-common’s WalletType enum.

Constants§

DEFAULT_TEMPO_HOME
Default Tempo home directory relative to the user’s home.
TEMPO_BROWSER_GAS_BUFFER
Conservative gas buffer for browser wallet transactions on Tempo chains.
TEMPO_HOME_ENV
Environment variable to override the Tempo home directory.
TEMPO_PRIVATE_KEY_ENV
Environment variable for an ephemeral Tempo private key.
WALLET_KEYS_PATH
Relative path from Tempo home to the wallet keys file.
WALLET_SESSIONS_PATH
Relative path from Tempo home to the session registry file.

Functions§

decode_key_authorization
Decodes a hex-encoded, RLP-encoded key authorization.
read_session_record
Read and parse the Tempo session registry.
read_tempo_keys_file
Read and parse the Tempo wallet keys file.
remove_session_entry
Atomically remove a session from the registry.
resolve_tempo_sponsor_signer
Resolves a --tempo.sponsor-signer URI into a Foundry wallet signer.
session_registry_path
Returns the path to the Tempo session registry file.
tempo_home
Resolve the Tempo home directory.
tempo_keys_path
Returns the path to the Tempo wallet keys file.
upsert_session_entry
Atomically upsert a SessionEntry into the session registry.