Skip to main content

Module verify

Module verify 

Source

Re-exportsยง

use crate::ScriptArgs; ๐Ÿ”’
use crate::ScriptConfig; ๐Ÿ”’
use crate::build::LinkedBuildData; ๐Ÿ”’
use crate::sequence::ScriptSequenceKind; ๐Ÿ”’
use crate::sequence::get_commit_hash; ๐Ÿ”’
use alloy_network::Network; ๐Ÿ”’
use alloy_network::ReceiptResponse; ๐Ÿ”’
use alloy_primitives::Address; ๐Ÿ”’
use alloy_primitives::TxHash; ๐Ÿ”’
use alloy_primitives::hex; ๐Ÿ”’
use alloy_primitives::hex; ๐Ÿ”’
use eyre::Result; ๐Ÿ”’
use eyre::eyre; ๐Ÿ”’
use forge_script_sequence::AdditionalContract; ๐Ÿ”’
use forge_script_sequence::ScriptSequence; ๐Ÿ”’
use forge_verify::RetryArgs; ๐Ÿ”’
use forge_verify::VerifierArgs; ๐Ÿ”’
use forge_verify::VerifyArgs; ๐Ÿ”’
use forge_verify::provider::ExternalVerificationContext; ๐Ÿ”’
use forge_verify::sourcify::SOURCIFY_URL; ๐Ÿ”’
use forge_verify::verify::sourcify_api_url; ๐Ÿ”’
use foundry_cli::opts::EtherscanOpts; ๐Ÿ”’
use foundry_cli::opts::ProjectPathOpts; ๐Ÿ”’
use foundry_common::ContractsByArtifact; ๐Ÿ”’
use foundry_common::FoundryReceiptResponse; ๐Ÿ”’
use foundry_compilers::Project; ๐Ÿ”’
use foundry_compilers::artifacts::EvmVersion; ๐Ÿ”’
use foundry_compilers::info::ContractInfo; ๐Ÿ”’
use foundry_config::Chain; ๐Ÿ”’
use foundry_config::Config; ๐Ÿ”’
use foundry_evm::core::evm::FoundryEvmNetwork; ๐Ÿ”’
use itertools::Itertools; ๐Ÿ”’
use semver::Version; ๐Ÿ”’
use external::ExternalResolver; ๐Ÿ”’
use external::MAX_PROVENANCE_ADDRESSES; ๐Ÿ”’
use external::MatchResult; ๐Ÿ”’
use external::match_candidates; ๐Ÿ”’

Modulesยง

external ๐Ÿ”’
Acquisition, compilation, and matching of external Solidity sources.

Structsยง

BroadcastedState
State after we have broadcasted the script. It is assumed that at this point BroadcastedState::sequence contains receipts for all broadcasted transactions.
VerifyBundle
Data struct to help ScriptSequence verify contracts on etherscan.

Enumsยง

VerificationJob ๐Ÿ”’

Constantsยง

MAX_EXTERNAL_JOBS ๐Ÿ”’

Functionsยง

check_unverified ๐Ÿ”’
concise ๐Ÿ”’
ensure_verification_complete ๐Ÿ”’
external_job ๐Ÿ”’
same_endpoint ๐Ÿ”’
source_api_key ๐Ÿ”’
take_matching_index ๐Ÿ”’
verify_contracts ๐Ÿ”’
Given the broadcast log, it matches transactions with receipts, and tries to verify any created contract on etherscan.