-
Notifications
You must be signed in to change notification settings - Fork 1
/
hardhat.config.js
41 lines (38 loc) · 1015 Bytes
/
hardhat.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
require("dotenv").config();
require("@nomiclabs/hardhat-etherscan");
require("@nomiclabs/hardhat-waffle");
require("hardhat-gas-reporter");
require("solidity-coverage");
const networks = require("./networks.json");
const accounts =
process.env.PRIVATE_KEY !== undefined ? [process.env.PRIVATE_KEY] : [];
module.exports = {
solidity: "0.8.4",
networks: {
rinkeby: {
finder: networks.rinkeby.contracts.finder,
chainId: networks.rinkeby.chainId,
url: networks.rinkeby.rpc,
accounts,
},
optimism: {
finder: networks.optimism.contracts.finder,
chainId: networks.optimism.chainId,
url: networks.optimism.rpc,
accounts,
},
polygon: {
finder: networks.polygon.contracts.finder,
chainId: networks.polygon.chainId,
url: networks.polygon.rpc,
accounts,
},
},
gasReporter: {
enabled: process.env.REPORT_GAS !== undefined,
currency: "USD",
},
etherscan: {
apiKey: process.env.ETHERSCAN_API_KEY,
},
};