Skip to main content

Module interface

Module interface 

Source

Re-exportsยง

use alloy_json_abi::ContractObject; ๐Ÿ”’
use alloy_json_abi::InternalType; ๐Ÿ”’
use alloy_json_abi::JsonAbi; ๐Ÿ”’
use alloy_json_abi::Param; ๐Ÿ”’
use alloy_json_abi::ToSolConfig; ๐Ÿ”’
use alloy_primitives::Address; ๐Ÿ”’
use alloy_primitives::map::HashMap; ๐Ÿ”’
use alloy_primitives::map::HashSet; ๐Ÿ”’
use clap::Parser; ๐Ÿ”’
use eyre::Context; ๐Ÿ”’
use eyre::Result; ๐Ÿ”’
use forge_fmt::FormatterConfig; ๐Ÿ”’
use foundry_cli::json::print_json_object; ๐Ÿ”’
use foundry_cli::opts::EtherscanOpts; ๐Ÿ”’
use foundry_cli::utils::LoadConfig; ๐Ÿ”’
use foundry_cli::utils::fetch_abi_from_etherscan; ๐Ÿ”’
use foundry_common::ContractsByArtifact; ๐Ÿ”’
use foundry_common::compile::PathOrContractInfo; ๐Ÿ”’
use foundry_common::compile::ProjectCompiler; ๐Ÿ”’
use foundry_common::compile::compile_abi_project; ๐Ÿ”’
use foundry_common::find_target_path; ๐Ÿ”’
use foundry_common::fs; ๐Ÿ”’
use foundry_common::shell; ๐Ÿ”’
use foundry_config::load_config; ๐Ÿ”’
use itertools::Itertools; ๐Ÿ”’
use serde_json::Value; ๐Ÿ”’
use std::path::PathBuf; ๐Ÿ”’
use std::str::FromStr; ๐Ÿ”’

Structsยง

InterfaceArgs
CLI arguments for cast interface.

Functionsยง

load_abi_from_artifact ๐Ÿ”’
Load the ABI and name from the artifact of a locally compiled contract.
load_abi_from_file ๐Ÿ”’
Load the ABI from a file.
unique_declaration_name ๐Ÿ”’
Reserves a declaration name across all generated interfaces and libraries.
visit_abi_types ๐Ÿ”’
Visits internal types, including nested tuples, in every ABI parameter.
visit_param_types ๐Ÿ”’