Expand description

Copy contract verification from one block-explorer to another

This crate allows you to easily copy the verfied source code from one block-explorer to another. It reads the source code / metadata from the source_url and submits it to the target_url. This assumes that both block-explorers are compatible with the the etherscan api specification

   let results = contract_verification_migrator::copy_etherscan_verification(
       vec!["0xE592427A0AEce92De3Edee1F18E0157C05861564".to_string()],
       "<YOUR_ETHERSCAN_API_KEY>".to_string(),
       "https://api.etherscan.io/api".to_string(),
       "<YOUR_BLOCKSCOUT_API_KEY>".to_string(),
       "https://eth.blockscout.com/api".to_string(),
       true,
   );

Enums

  • Enum containing different verification outcomes that result in the contract being subsequently verified on the target block-explorer Note that failure / errors are accounted for by wrapping this enum in a standard Result

Functions