Skip to main content

Module storage

Module storage 

Source

Re-exportsΒ§

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; πŸ”’

StructsΒ§

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.

ConstantsΒ§

MIN_SOLC πŸ”’
The minimum Solc version for outputting storage layouts.

FunctionsΒ§

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.