Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Automate Etherscan Contract Verification #64

Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions addresses.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}
19 changes: 11 additions & 8 deletions hardhat.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
require('@nomiclabs/hardhat-waffle');
require('@nomiclabs/hardhat-solhint');
require('solidity-coverage');

require("@nomiclabs/hardhat-etherscan");

module.exports = {
defaultNetwork: "hardhat",
solidity: {
Expand All @@ -28,7 +29,7 @@
blockNumber: 11997864,
}
},

mainnet: {
accounts: {
mnemonic: process.env.MNEMONIC
Expand All @@ -37,7 +38,7 @@
chainId: 1,
timeout: 2000000
},

kovan: {
accounts: {
mnemonic: process.env.MNEMONIC
Expand All @@ -46,7 +47,7 @@
chainId: 42,
timeout: 2000000
},

binance: {
accounts: {
mnemonic: process.env.MNEMONIC
Expand All @@ -55,7 +56,7 @@
chainId: 56,
timeout: 20000000
},

matic: {
accounts: {
mnemonic: process.env.MNEMONIC
Expand All @@ -64,11 +65,13 @@
chainId: 137,
timeout: 20000000
},

},


etherscan: {
apiKey: process.env.ETHERSCAN_API_KEY
},

mocha: {
timeout: 2000000
}
};

5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@
"test": "npx hardhat test",
"build": "hardhat compile",
"console": "hardhat console",
"verify": "yarn hint && yarn test",
"lint": "yarn solhint 'contracts/**/*.sol' && yarn prettier -c './**/*.js'",
"format": "yarn prettier --write contracts/*.sol && yarn prettier --write test/*.js",
"hint": "solhint \"contracts/**/*.sol\"",
"coverage": "yarn hardhat coverage --testfiles \"test/*.js\"",
"upgrade-checks": "npx hardhat run scripts/upgradeChecks.js"
"upgrade-checks": "npx hardhat run scripts/upgradeChecks.js",
"verify": "npx hardhat run scripts/verify.js"
},
"repository": {
"type": "git",
Expand All @@ -32,6 +32,7 @@
},
"devDependencies": {
"@nomiclabs/hardhat-ethers": "^2.0.1",
"@nomiclabs/hardhat-etherscan": "^2.1.3",
"@nomiclabs/hardhat-solhint": "^2.0.0",
"@nomiclabs/hardhat-waffle": "^2.0.1",
"chai": "^4.3.3",
Expand Down
Loading