-
Notifications
You must be signed in to change notification settings - Fork 8
/
buidler.config.js
72 lines (69 loc) · 1.97 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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
const { usePlugin } = require('@nomiclabs/buidler/config')
const hooks = require('./scripts/buidler-hooks')
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: {
// Local development network using ganache. You can set any of the
// Ganache's options. All of them are supported, with the exception
// of accounts.
// https://github.com/trufflesuite/ganache-core#options
ganache: {
url: 'http://localhost:8545',
gasLimit: 6000000000,
defaultBalanceEther: 100,
},
// Local development network to test coverage. Solidity coverage
// pluging launches its own in-process ganache server.
// and expose it at port 8555.
coverage: {
url: 'http://localhost:8555',
},
// Mainnet network configured with Aragon node.
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 network configured with Aragon node.
xdai: {
url: 'https://xdai.poanetwork.dev',
accounts: ACCOUNTS,
gasPrice: 20,
gas: 12000000,
},
},
solc: {
version: '0.4.24',
optimizer: {
enabled: true,
runs: 10000,
},
},
gasReporter: {
enabled: !!process.env.GAS_REPORTER,
},
aragon: {
appServePort: 8001,
clientServePort: 3000,
appSrcPath: 'app/',
appBuildOutputPath: 'dist/',
hooks,
},
}