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.
session_policy πŸ”’
Pure Tempo session policy construction.
tip20 πŸ”’
Shared TIP-20 helpers.

StructsΒ§

GeneratedSessionKey
Locally generated secp256k1 session key material.
KeyEntry
A single key entry in keys.toml.
KeysFile
The top-level structure of keys.toml.
PreparedSessionAuthorization
Prepared local session metadata plus the Tempo authorization that the root must sign.
ResolvedSessionSigner
A live session key resolved into the signer and Tempo access-key metadata.
SessionAuthorizationRequest
Typed inputs needed to authorize a temporary session access key.
SessionCallScope
A single target scope in a session entry.
SessionEntry
Persisted metadata for one temporary session.
SessionKeyMaterial
Private key material for a temporary session access key.
SessionRecord
Top-level registry persisted in wallet/sessions.toml.
SessionSelectorRule
A single selector rule in a session scope.
SessionSpendLimit
Typed spending limit for a temporary session access key.
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.
Tip20LogoUriValidationError
WalletType
Wallet type matching tempo-common’s WalletType enum.

ConstantsΒ§

ALPHA_USD_ADDRESS
Reserved Tempo TIP20 fee-token addresses created during Foundry genesis.
BETA_USD_ADDRESS
DEFAULT_TEMPO_HOME
Default Tempo home directory relative to the user’s home.
PATH_USD_ADDRESS
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.
THETA_USD_ADDRESS
TIP20_ALLOWED_LOGO_URI_SCHEMES
TIP20_MAX_LOGO_URI_BYTES
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.
format_fee_token_selection
Formats a Tempo fee-token selection for command output.
known_fee_token_symbol
Returns the known symbol for a Tempo fee token without making an RPC call.
mark_expired_session_entries
Mark expired live sessions in the registry and persist the status updates.
print_fee_token_selection
Prints the selected Tempo fee token when one is set.
print_resolved_fee_token_selection
Prints the fee token selected for display, resolving the chain default without mutating a transaction request.
read_live_session_key
Read a live session-scoped key entry by session id.
read_session_entry
Read a session entry by id, returning parse/read errors to the caller.
read_session_record
Read and parse the Tempo session registry.
read_tempo_keys_file
Read and parse the Tempo wallet keys file.
redacted_debug πŸ”’
Placeholder rendered by Debug impls in place of secret key material.
remove_session_entry
Atomically remove a session from the registry.
resolve_fee_token
Resolves an explicit Tempo fee token or the canonical default for a known Tempo network.
resolve_live_session_signer
Resolve a live session key into a signer and access-key configuration.
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.
update_session_status
Atomically update a session status in the registry.
update_session_status_if
Atomically update a session status only when the current status matches current.
upsert_session_entry
Atomically upsert a SessionEntry into the session registry.
validate_tip20_logo_uri