Expand description
Tempo temporary access-key lifecycle backed by the canonical Accounts store.
Re-exportsΒ§
use super::KeyType;πuse alloy_primitives::Address;πuse alloy_primitives::B256;πuse alloy_primitives::Selector;πuse alloy_primitives::U256;πuse eyre::ensure;πuse foundry_wallets::TempoAccountsWallet;πuse serde::Deserialize;πuse serde::Deserialize;πuse serde::Serialize;πuse serde::Serialize;πuse std::fmt;πuse std::num::NonZeroU64;πuse std::time::SystemTime;πuse tempo_alloy::accounts::TempoAccountsStore;πuse tempo_primitives::transaction::CallScope;πuse tempo_primitives::transaction::KeyAuthorization;πuse tempo_primitives::transaction::SelectorRule;πuse tempo_primitives::transaction::SignatureType;πuse tempo_primitives::transaction::SignedKeyAuthorization;πuse tempo_primitives::transaction::TokenLimit;π
StructsΒ§
- Canonical
Call πScope - Canonical
Selector πRule - Canonical
Token πLimit - Resolved
Session Signer - A live managed key pinned into an Accounts wallet.
- 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
Token Limit - Spending limit attached to a managed access key.
EnumsΒ§
- Session
Status - Status derived from a managed access keyβs Accounts record.
FunctionsΒ§
- canonical_
authorization_ πlimits - canonical_
authorization_ πscope - canonical_
authorization_ πselector_ rules - canonical_
session_ πlimits - canonical_
session_ πscope - canonical_
session_ πselector_ rules - mark_
expired_ session_ entries - Retire expired managed access keys and return the number changed.
- parse_
limit π - read_
session_ πentries - read_
session_ entry - resolve_
live_ session_ signer - Resolve a live managed key from the Accounts store and pin it for signing.
- retire_
session_ entry - Retire local signing material in
store.jsonfor the selected managed key. - 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.