From 147bbae2a0b9ab1256702417de35979d9ec152bf Mon Sep 17 00:00:00 2001 From: Barry Gitarts Date: Fri, 5 Feb 2021 15:38:10 -0500 Subject: [PATCH] add etherscan verification --- hardhat.config.ts | 4 ++++ package.json | 1 + verify/Bridge.ts | 9 +++++++++ 3 files changed, 14 insertions(+) create mode 100644 verify/Bridge.ts diff --git a/hardhat.config.ts b/hardhat.config.ts index 16b1cc3..09d282c 100644 --- a/hardhat.config.ts +++ b/hardhat.config.ts @@ -10,6 +10,7 @@ import "@typechain/ethers-v5"; import "hardhat-deploy"; import "@tenderly/hardhat-tenderly"; import { Wallet, providers } from "ethers"; +import "@nomiclabs/hardhat-etherscan"; import path from 'path'; const bip39 = require("bip39"); @@ -65,6 +66,9 @@ const config: HardhatUserConfig = { default: 0 }, }, + etherscan: { + apiKey: process.env.ETHERSCAN + }, networks: { localhost: { live: false, diff --git a/package.json b/package.json index 6e80d21..637527a 100644 --- a/package.json +++ b/package.json @@ -2,6 +2,7 @@ "name": "hardhat-project", "devDependencies": { "@nomiclabs/hardhat-ethers": "^2.0.0", + "@nomiclabs/hardhat-etherscan": "^2.1.1", "@nomiclabs/hardhat-waffle": "^2.0.0", "@openzeppelin/contracts": "^3.2.0", "@symfoni/hardhat-react": "^0.1.13", diff --git a/verify/Bridge.ts b/verify/Bridge.ts new file mode 100644 index 0000000..3127cf1 --- /dev/null +++ b/verify/Bridge.ts @@ -0,0 +1,9 @@ +const ETHEREUM_CHAIN_ID: number = 1; +const relayerThreshold: number = 1; +module.exports = [ + ETHEREUM_CHAIN_ID, + ["0x89eF29695D13C8497bA793E64c96eA371C4cDAC0"], + relayerThreshold, + 0, + 100 +];