-
Notifications
You must be signed in to change notification settings - Fork 0
/
buidler.config.js
48 lines (45 loc) · 1.14 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
const { usePlugin } = require('@nomiclabs/buidler/config')
usePlugin('@aragon/buidler-aragon')
usePlugin('@nomiclabs/buidler-solhint')
usePlugin('buidler-gas-reporter')
usePlugin('solidity-coverage')
const ACCOUNTS = (process.env.ETH_KEYS ? process.env.ETH_KEYS.split(',') : []).map(key =>
key.trim()
)
module.exports = {
defaultNetwork: 'localhost',
networks: {
localhost: {
url: 'http://localhost:8545',
accounts: {
mnemonic: 'explain tackle mirror kit van hammer degree position ginger unfair soup bonus',
},
},
xdai: {
url: 'https://xdai.poanetwork.dev',
accounts: ACCOUNTS,
gasPrice: 20,
gas: 12000000,
},
// Network configured to interact with Frame wallet. Requires
// to have Frame running on your machine. Download it from:
// https://frame.sh
frame: {
httpHeaders: { origin: 'buidler' },
url: 'http://localhost:1248',
},
coverage: {
url: 'http://localhost:8555',
},
},
solc: {
version: '0.4.24',
optimizer: {
enabled: true,
runs: 10000,
},
},
gasReporter: {
enabled: !!process.env.GAS_REPORTER,
},
}