-
Notifications
You must be signed in to change notification settings - Fork 0
/
hardhat.config.js
57 lines (53 loc) · 1.11 KB
/
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
require('@nomiclabs/hardhat-waffle');
require('@nomiclabs/hardhat-ethers');
if (process.env.REPORT_GAS) {
require('hardhat-gas-reporter');
}
if (process.env.REPORT_COVERAGE) {
require('solidity-coverage');
}
require("dotenv").config();
/**
* @type import('hardhat/config').HardhatUserConfig
*/
module.exports = {
solidity: {
version: '0.8.11',
settings: {
optimizer: {
enabled: true,
runs: 800,
},
},
},
networks: {
rinkeby: {
url: process.env.ALCHEMY_RINKEBY_URL,
accounts: [process.env.PRIVATE_KEY]
}
},
etherscan: {
// Your API key for Etherscan
// Obtain one at https://etherscan.io/
// apiKey: process.env.ETHERSCAN_API,
apiKey: {
rinkeby: process.env.ETHERSCAN_API
},
customChains: [
{
network: "rinkeby",
chainId: 4,
urls: {
apiURL: `https://api-rinkeby.etherscan.io/api`,
browserURL: "https://rinkeby.etherscan.io"
}
}
]
},
gasReporter: {
currency: 'USD',
gasPrice: 100,
showTimeSpent: true,
},
plugins: ['solidity-coverage'],
};