Skip to main contentModule storage
Source use crate::opts::parse_slot; π use alloy_ens::NameOrAddress; π use alloy_network::AnyNetwork; π use alloy_primitives::Address; π use alloy_primitives::B256; π use alloy_primitives::Bytes; π use alloy_primitives::U256; π use alloy_provider::Provider; π use alloy_rpc_types::BlockId; π use clap::Parser; π use comfy_table::Table; π use comfy_table::presets::ASCII_FULL; π use comfy_table::presets::ASCII_MARKDOWN; π use eyre::Result; π use foundry_cli::opts::BuildOpts; π use foundry_cli::opts::EtherscanOpts; π use foundry_cli::opts::RpcOpts; π use foundry_cli::utils; π use foundry_cli::utils::LoadConfig; π use foundry_common::abi::find_source; π use foundry_common::compile::ProjectCompiler; π use foundry_common::compile::add_storage_layout_output; π use foundry_common::compile::etherscan_project; π use foundry_common::has_metadata_hash; π use foundry_common::shell; π use foundry_compilers::Artifact; π use foundry_compilers::ArtifactId; π use foundry_compilers::Project; π use foundry_compilers::ProjectCompileOutput; π use foundry_compilers::artifacts::ConfigurableContractArtifact; π use foundry_compilers::artifacts::StorageLayout; π use foundry_compilers::compilers::solc::Solc; π use foundry_compilers::compilers::solc::SolcCompiler; π use foundry_config::Config; π use foundry_config::figment; π use foundry_config::figment::Metadata; π use foundry_config::figment::Profile; π use foundry_config::figment::value::Dict; π use foundry_config::impl_figment_convert_cast; π use semver::Version; π use serde::Deserialize; π use serde::Deserialize; π use serde::Serialize; π use serde::Serialize; π use std::collections::BTreeSet; π use std::str::FromStr; π
- StorageArgs
- CLI arguments for
cast storage. - StorageReport π
- Represents the storage layout of a contract and its values.
- StorageValue π
- Represents the value of a storage slot
eth_getStorageAt call.
- MIN_SOLC π
- The minimum Solc version for outputting storage layouts.
- compile_full_storage_layout π
- compile_local_storage_layout π
- Finds the local artifact matching
address_code and produces its storage layout. - compile_target_storage_layout π
- fetch_and_print_storage π
- find_target_artifact π
- find_unique_artifact π
- Returns the artifact whose deployed bytecode is
code. - has_deployed_code π
- Returns whether
code is the artifactβs deployed bytecode. - same_artifact π
- Returns whether two artifact IDs identify the same contract across compiler runs.