-
Notifications
You must be signed in to change notification settings - Fork 1
/
buidler.config.js
56 lines (53 loc) · 1.39 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
49
50
51
52
53
54
55
56
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"
}
},
mainnet: {
url: 'https://mainnet.eth.aragon.network',
accounts: ACCOUNTS,
},
// Rinkeby network configured with Aragon node.
rinkeby: {
url: 'https://rinkeby.eth.aragon.network',
accounts: ACCOUNTS,
},
// 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',
},
xdai:{
url: 'https://xdai.poanetwork.dev',
accounts: ACCOUNTS,
gasPrice: 200,
gas: 12000000,
},
coverage: {
url: 'http://localhost:8555',
},
},
solc: {
version: '0.4.24',
optimizer: {
enabled: true,
runs: 10000,
},
},
gasReporter: {
enabled: process.env.GAS_REPORTER ? true : false,
},
}