Skip to main content Module storage_credits Copy item path Source use crate::cmd::tip20::send_tip20_transaction ; ๐ use crate::tempo::ensure_tempo_precompile_active ; ๐ use crate::tempo::print_payload ; ๐ use crate::tempo::tempo_provider ; ๐ use crate::tx::SendTxOpts ; ๐ use crate::tx::TxParams ; ๐ use alloy_ens::NameOrAddress; ๐ use alloy_primitives::Address ; ๐ use alloy_sol_types::SolCall; ๐ use clap::Parser; ๐ use clap::ValueEnum; ๐ use eyre::Result ; ๐ use foundry_cli::opts::RpcOpts ; ๐ use foundry_common::provider::RetryProvider ; ๐ use foundry_evm::hardfork::TempoHardfork ; ๐ use serde_json::Value ; ๐ use serde_json::json ; ๐ use std::str::FromStr ; ๐ use tempo_alloy::TempoNetwork; ๐ use tempo_contracts::precompiles::IStorageCredits; ๐ use tempo_contracts::precompiles::STORAGE_CREDITS_ADDRESS; ๐ CreditMode CLI-facing spelling of IStorageCredits::Mode. StorageCreditsSubcommand T7 storage credits operations (Tempo). ensure_t7 ๐ The StorageCredits precompile only exists on T7+; fail early with a clear message instead of
surfacing a raw revert (or, for writes, a silently successful no-op transaction to an empty
account). read ๐ Reads one account field from the precompile and prints it as key in JSON mode and after
label otherwise. Credits ๐