UNPKG

hardhat-etherscan-abi

Version:

Hardhat plugin fetching contract ABI from etherscan

18 lines 675 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const config_1 = require("hardhat/config"); const plugins_1 = require("hardhat/plugins"); require("@nomiclabs/hardhat-ethers"); require("./type-extensions"); const helpers_1 = require("./helpers"); const config_2 = require("./config"); config_1.extendConfig(config_2.etherscanConfigExtender); config_1.extendEnvironment((hre) => { const prevEthers = hre.ethers; hre.ethers = plugins_1.lazyObject(() => { // @ts-ignore prevEthers.getVerifiedContractAt = helpers_1.getVerifiedContractAt.bind(null, hre); return prevEthers; }); }); //# sourceMappingURL=index.js.map