-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuidler.config.js
48 lines (44 loc) · 1.04 KB
/
buidler.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
usePlugin("@nomiclabs/buidler-truffle5");
usePlugin("@nomiclabs/buidler-web3");
usePlugin("@nomiclabs/buidler-etherscan");
usePlugin("solidity-coverage");
require('./scripts/deploy-governance');
require('./scripts/deploy-pool');
require('./scripts/deploy-mock-tokens');
require('dotenv').config();
module.exports = {
defaultNetwork: 'buidlerevm',
networks: {
kovan: {
url: `https://kovan.infura.io/v3/${process.env.INFURA_API_KEY}`,
accounts: [process.env.PRIVATE_KEY],
timeout: 20000
},
mainnet: {
url: `https://mainnet.infura.io/v3/${process.env.INFURA_API_KEY}`,
accounts: [process.env.PRIVATE_KEY],
timeout: 20000
},
coverage: {
url: 'http://localhost:8555'
}
},
solc: {
version: "0.6.2",
optimizer: {
enabled: true,
runs: 10000
}
},
etherscan: {
url: "https://api-kovan.etherscan.io/api",
apiKey: process.env.ETHERSCAN_API_KEY
},
paths: {
sources: './contracts',
tests: './test',
},
mocha: {
enableTimeouts: false,
},
};