-
Notifications
You must be signed in to change notification settings - Fork 6
/
hardhat.config.js
45 lines (43 loc) · 1.17 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
require('@nomiclabs/hardhat-waffle')
require('@nomiclabs/hardhat-web3')
require('solidity-coverage')
require('@nomiclabs/hardhat-etherscan')
require('hardhat-spdx-license-identifier')
const PRIVATE_KEY = `0x${process.env.PRIVATE_KEY || 'ac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80'}`
/**
* @type import('hardhat/config').HardhatUserConfig
*/
module.exports = {
networks: {
local: {
url: 'http://localhost:8545'
},
hardhat: {
chainId: 1337,
},
mainnet: {
url: `https://mainnet.infura.io/v3/${process.env.INFURA_PROJECT_ID}`,
chainId: 1,
gasPrice: 20000000000, // 20 gwei
accounts: [ PRIVATE_KEY ]
},
rinkeby: {
url: `https://rinkeby.infura.io/v3/${process.env.INFURA_PROJECT_ID}`,
chainId: 4,
gasPrice: 2000000000, // 2 gwei
accounts: [ PRIVATE_KEY ]
}
},
solidity: {
version: '0.6.11',
},
mocha: {
timeout: 0
},
etherscan: {
apiKey: `${process.env.ETHERSCAN || ''}`
},
spdxLicenseIdentifier: {
runOnCompile: true
}
}