Skip to content

Commit

Permalink
Add etherscan verify plugin, configure mainnet deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
sushkov committed Jan 6, 2021
1 parent 7c8ac27 commit 39923c4
Show file tree
Hide file tree
Showing 4 changed files with 82 additions and 0 deletions.
1 change: 1 addition & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
DEPLOYMENT_KEY=
INFURA_PROJECT_ID=
ETHERSCAN_API_KEY=
66 changes: 66 additions & 0 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 @@ -42,6 +42,7 @@
"path": "^0.12.7",
"truffle": "^5.1.56",
"truffle-flattener": "^1.5.0",
"truffle-plugin-verify": "^0.5.4",
"web3": "^1.3.0"
}
}
14 changes: 14 additions & 0 deletions truffle-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,14 @@ const config = {
skipDryRun: true,
network_id: '42'
},
mainnet: {
gasPrice: 75 * 1000 * 1000 * 1000, // 75 gwei
gasLimit: 4 * 1000 * 1000, // 4,000,000
provider: getProvider(`wss://mainnet.infura.io/ws/v3/${ process.env.INFURA_PROJECT_ID }`),
websockets: true,
skipDryRun: false,
network_id: '1'
},
},
mocha: {
timeout: 10000
Expand All @@ -53,6 +61,12 @@ const config = {
evmVersion: "istanbul"
}
}
},
plugins: [
'truffle-plugin-verify'
],
api_keys: {
etherscan: process.env.ETHERSCAN_API_KEY
}
};

Expand Down

0 comments on commit 39923c4

Please sign in to comment.