Skip to main content

Module configurable_account

Module configurable_account 

Source
Expand description

Formatting of Tempo configurable account (T14: TIP-1107) configurations and 0x05 signatures.

Re-exportsΒ§

use crate::UIfmt; πŸ”’
use alloy_primitives::Address; πŸ”’
use alloy_primitives::B256; πŸ”’
use serde::Deserialize; πŸ”’
use serde::Deserialize; πŸ”’
use serde::Serialize; πŸ”’
use serde::Serialize; πŸ”’
use tempo_alloy::primitives::SignatureType; πŸ”’
use tempo_alloy::primitives::TempoSignature; πŸ”’
use tempo_alloy::primitives::TempoTransaction; πŸ”’
use tempo_alloy::primitives::transaction::ConfigurableAccountConfig; πŸ”’
use tempo_alloy::primitives::transaction::ConfigurableAccountOwner; πŸ”’
use tempo_alloy::primitives::transaction::ConfigurableAccountSignature; πŸ”’
use tempo_alloy::primitives::transaction::KeychainSignature; πŸ”’

StructsΒ§

ApprovalDetails πŸ”’
An owner approval, with the owner recovered from the configurable account digest.
ConfigJson
A configuration as cast wallet owners --json prints it, and as forge script saves it for owners on other machines.
ConfigurableAccountSignatureDetails πŸ”’
The decoded contents of a configurable account signature.
OwnerJson πŸ”’

FunctionsΒ§

add_configurable_account_details
Adds the details of a Tempo configurable account (0x05) signature to a transaction’s JSON as configurableAccountSignature: the account, its configuration, and the owner and weight of each approval. The raw signature stays as the RPC returns it, so the JSON still decodes as a transaction.