-
Notifications
You must be signed in to change notification settings - Fork 14
/
hardhat.config.js
49 lines (49 loc) · 1.16 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
require('@nomiclabs/hardhat-waffle')
require('@nomiclabs/hardhat-web3')
require('solidity-coverage')
require('dotenv').config()
// Include the Etherscan contract verifier.
require('@nomiclabs/hardhat-etherscan');
module.exports = {
networks: {
// --- EVM
hardhat: {},
mainnet: {
url: process.env.MAINNET_RPC || '',
accounts: process.env.MAINNET_PRIVATE_KEY ? [process.env.MAINNET_PRIVATE_KEY] : [],
},
avm: {
url: process.env.AVM_RPC || '',
accounts: process.env.AVM_PRIVATE_KEY ? [process.env.AVM_PRIVATE_KEY] : [],
},
rinkeby: {
url: process.env.RINKEBY_RPC || '',
accounts: process.env.RINKEBY_PRIVATE_KEY ? [process.env.RINKEBY_PRIVATE_KEY] : [],
},
rinkeby_avm: {
url: process.env.RINKEBY_AVM_RPC || '',
accounts: process.env.RINKEBY_AVM_PRIVATE_KEY ? [process.env.RINKEBY_AVM_PRIVATE_KEY] : [],
}
},
solidity: {
version: '0.6.9',
settings: {
optimizer: {
enabled: true,
runs: 2000
},
},
},
paths: {
sources: './contracts',
tests: './test/contracts',
cache: './cache',
artifacts: './build/contracts',
},
etherscan: {
apiKey: process.env.ETHERSCAN_API_KEY
},
mocha: {
timeout: 200000, // 200s
},
}