Skip to content

Commit

Permalink
Added etherscan verify support
Browse files Browse the repository at this point in the history
  • Loading branch information
mobycrypt committed Sep 11, 2023
1 parent e20b81d commit b8d4837
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 6 deletions.
8 changes: 7 additions & 1 deletion hardhat.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,11 @@ import { HardhatUserConfig } from 'hardhat/config';
import '@nomicfoundation/hardhat-toolbox';
const dotenv = require('dotenv');
dotenv.config({ path: __dirname + '/.env' });
const { COINMARKETCAP_API_KEY, POLYGON_NODE_RPC_URL, POLYGON_PRIVATE_KEY } = process.env;
const { COINMARKETCAP_API_KEY, POLYGON_NODE_RPC_URL, POLYGON_PRIVATE_KEY, ETHERSCAN_API_KEY } = process.env;
require('solidity-coverage');
require("hardhat-contract-sizer");
import "hardhat-deploy";
import "@nomicfoundation/hardhat-verify";

const config: HardhatUserConfig = {
solidity: {
Expand Down Expand Up @@ -44,6 +45,11 @@ const config: HardhatUserConfig = {
coinmarketcap: COINMARKETCAP_API_KEY,
token: 'MATIC',
},
etherscan: {
// Your API key for Etherscan
// Obtain one at https://etherscan.io/
apiKey: ETHERSCAN_API_KEY
}
// typechain: {
// outDir: 'src/types',
// target: 'ethers-v6',
Expand Down
7 changes: 2 additions & 5 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
"@babel/register": "^7.22.5",
"@faker-js/faker": "^8.0.2",
"@nomicfoundation/hardhat-toolbox": "^3.0.0",
"@nomicfoundation/hardhat-verify": "^1.1.1",
"@openzeppelin/contracts": "^4.9.3",
"dotenv": "^16.3.1",
"hardhat": "^2.14.0",
Expand Down

0 comments on commit b8d4837

Please sign in to comment.