Skip to main content

Module configurable_account

Module configurable_account 

Source
Expand description

Tempo configurable accounts (T14: TIP-1107, TIP-1113) in cast wallet, built on foundry_common::tempo::configurable_account.

Re-exportsΒ§

use crate::cmd::auth::confirm_and_build; πŸ”’
use crate::cmd::confirm_continue; πŸ”’
use crate::cmd::keychain::KeychainRootSigner; πŸ”’
use crate::cmd::keychain::send_precompile_tx_with_root_signer; πŸ”’
use crate::cmd::send::SendOptions; πŸ”’
use crate::cmd::send::cast_send_raw; πŸ”’
use crate::tempo::apply_fee_payment; πŸ”’
use crate::tempo::print_expires; πŸ”’
use crate::tempo::tempo_provider; πŸ”’
use crate::tx::CastTxBuilder; πŸ”’
use crate::tx::SendTxOpts; πŸ”’
use crate::tx::apply_poll_interval; πŸ”’
use alloy_chains::Chain; πŸ”’
use alloy_eips::Decodable2718; πŸ”’
use alloy_eips::Encodable2718; πŸ”’
use alloy_ens::NameOrAddress; πŸ”’
use alloy_primitives::Address; πŸ”’
use alloy_primitives::hex; πŸ”’
use alloy_primitives::hex; πŸ”’
use alloy_primitives::keccak256; πŸ”’
use alloy_provider::Provider; πŸ”’
use alloy_signer::Signer; πŸ”’
use alloy_sol_types::SolCall; πŸ”’
use clap::Parser; πŸ”’
use eyre::Context; πŸ”’
use eyre::Result; πŸ”’
use foundry_cli::json::print_json_success; πŸ”’
use foundry_cli::opts::RpcOpts; πŸ”’
use foundry_cli::opts::TransactionOpts; πŸ”’
use foundry_cli::utils::LoadConfig; πŸ”’
use foundry_cli::utils::now; πŸ”’
use foundry_cli::utils::resolve_lane; πŸ”’
use foundry_common::provider::ProviderBuilder; πŸ”’
use foundry_common::shell; πŸ”’
use foundry_common::tempo::active_tempo_hardfork; πŸ”’
use foundry_common::tempo::configurable_account::abi_owners; πŸ”’
use foundry_common::tempo::configurable_account::ca_error; πŸ”’
use foundry_common::tempo::configurable_account::combine_approvals; πŸ”’
use foundry_common::tempo::configurable_account::current_config; πŸ”’
use foundry_common::tempo::configurable_account::decode_unsigned_tx; πŸ”’
use foundry_common::tempo::configurable_account::parse_owner_signature; πŸ”’
use foundry_common::tempo::configurable_account::simulation_spec; πŸ”’
use foundry_config::Config; πŸ”’
use foundry_config::FoundryHardfork; πŸ”’
use serde_json::Value; πŸ”’
use serde_json::json; πŸ”’
use std::str::FromStr; πŸ”’
use std::time::Duration; πŸ”’
use tempo_alloy::TempoNetwork; πŸ”’
use tempo_alloy::chainspec::hardfork::TempoHardfork; πŸ”’
use tempo_alloy::rpc::ConfigurableAccountSimulationSpec; πŸ”’
use tempo_alloy::rpc::PrimitiveSignatureType; πŸ”’
use tempo_contracts::precompiles::CONFIGURABLE_ACCOUNT_ADDRESS; πŸ”’
use tempo_contracts::precompiles::IConfigurableAccount; πŸ”’
use tempo_primitives::transaction::CONFIGURABLE_ACCOUNT_UPGRADE_DOMAIN; πŸ”’
use tempo_primitives::transaction::ConfigurableAccountConfig; πŸ”’
use tempo_primitives::transaction::ConfigurableAccountOwner; πŸ”’
use tempo_primitives::transaction::PrimitiveSignature; πŸ”’
use tempo_primitives::transaction::TempoSignature; πŸ”’
use tempo_primitives::transaction::TempoTxEnvelope; πŸ”’
use tempo_primitives::transaction::configurable_account_digest; πŸ”’

StructsΒ§

AssembleArgs
cast wallet assemble: combines owner approvals with an unsigned transaction.
OwnerSendArgs
Transaction options for an owner change.
OwnersArgs
cast wallet owners: shows or changes the owners of a configurable account.
UpgradeArgs
cast wallet upgrade: converts an EOA into a configurable account in place (TIP-1113).

EnumsΒ§

OwnersSubcommand
Owner changes, each sent as an updateConfig transaction from the account itself.

ConstantsΒ§

TEMPO_MAINNET πŸ”’
Tempo mainnet’s chain ID.

FunctionsΒ§

config_json πŸ”’
digest_context πŸ”’
Returns the owner digest and the configuration-change quorum for account, used by cast mktx --tempo.digest.
new_wallet_is_configurable πŸ”’
Decides whether cast wallet new creates a configurable account.
parse_owner πŸ”’
Parses an owner as ADDRESS or ADDRESS:WEIGHT.
print_config πŸ”’
Prints a configuration as a table, or as JSON in --json mode.
rpc_tempo_hardfork πŸ”’
Asks the configured RPC for its Tempo hardfork. Returns None for a non-Tempo chain.
scheduled_hardfork πŸ”’
Returns the hardfork that the compiled Tempo schedule activates on chain now, if known.
update_config πŸ”’
Sends the updateConfig transaction that command describes.