Re-exportsยง
use alloy_primitives::Address;๐use alloy_primitives::B256;๐use alloy_primitives::U256;๐use alloy_provider::Provider;๐use alloy_signer::Signer;๐use alloy_sol_types::SolCall;๐use clap::Args;๐use clap::Parser;๐use eyre::Context;๐use eyre::Result;๐use foundry_cli::opts::TEMPO_SESSION_ID_ENV;๐use foundry_cli::opts::TransactionOpts;๐use foundry_cli::utils::LoadConfig;๐use foundry_cli::utils::now;๐use foundry_cli::utils::parse_fee_token_address;๐use foundry_common::provider::ProviderBuilder;๐use foundry_common::sh_println;๐use foundry_common::shell;๐use foundry_common::tempo::GeneratedSessionKey;๐use foundry_common::tempo::SessionAuthorizationRequest;๐use foundry_common::tempo::SessionEntry;๐use foundry_common::tempo::SessionSpendLimit;๐use foundry_common::tempo::read_session_entry;๐use foundry_common::tempo::retire_session_entry;๐use foundry_common::tempo::upsert_session_entry;๐use foundry_wallets::WalletOpts;๐use foundry_wallets::WalletSigner;๐use serde_json::json;๐use std::num::NonZeroU64;๐use std::process::Command;๐use std::process::ExitStatus;๐use tempo_alloy::TempoNetwork;๐use tempo_alloy::provider::TempoProviderExt;๐use tempo_contracts::precompiles::IAccountKeychain;๐use tempo_primitives::transaction::CallScope;๐use tempo_primitives::transaction::PrimitiveSignature;๐use tempo_primitives::transaction::SelectorRule;๐use tokio::signal;๐use crate::cmd::keychain::KeychainTxOutcome;๐use crate::cmd::keychain::resolve_keychain_root_signer;๐use crate::cmd::keychain::send_keychain_tx_with_root_signer;๐use crate::cmd::print_json_or;๐use crate::cmd::tempo_policy_args::parse_period;๐use crate::cmd::tempo_policy_args::parse_scope as parse_policy_scope;๐use crate::cmd::tempo_policy_args::parse_selector_bytes;๐use crate::tempo;๐use crate::tx::SendTxOpts;๐use super::process_tree::ManagedChild;๐
Structsยง
- Inner
Command ๐ - Session
Args - Arguments for
cast wallet session. - Session
Interrupt ๐Unix
Enumsยง
- Session
Revoke ๐Status - Session
Subcommands - Tempo wallet session lifecycle commands.
- Unprovisioned
KeyPolicy ๐ - How to treat a session key that was never provisioned on-chain when revoking it.
Constantsยง
- PRINT_
SPONSOR_ ๐HASH_ REVOKE_ ERROR - SESSION_
CHILD_ ๐SIGNER_ ENV - Signer-related environment variables that
foundry_walletsresolves signers from. They are removed from the--forchild so it can only sign with the injected session key.
Functionsยง
- build_
session_ ๐entry - Builds an active session entry from CLI policy inputs and a root signature.
- create ๐
- Creates a signed temporary access key in the Tempo Accounts store.
- parse_
scope ๐ - Adapts shared keychain scope parsing into the session authorization type.
- parse_
spend_ ๐limit - Parses a session spend limit into the session policy model.
- print_
revoke_ ๐status - resolve_
root_ ๐signer - resolve_
session_ ๐chain_ id - revoke ๐
- Revokes a session entry locally and on-chain when the key has been provisioned.
- session_
scope ๐ - split_
for_ ๐command