-
Notifications
You must be signed in to change notification settings - Fork 245
/
Copy pathbuidler.config.js
64 lines (62 loc) · 2.1 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
const { usePlugin } = require('@nomiclabs/buidler/config')
usePlugin("@nomiclabs/buidler-ganache")
usePlugin('@nomiclabs/buidler-truffle5')
usePlugin('buidler-gas-reporter')
usePlugin('solidity-coverage')
module.exports = {
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: [
process.env.ETH_KEY ||
'0xa8a54b2d8197bc0b19bb8a084031be71835580a01e70a45a13babd16c9bc1563',
],
},
// Rinkeby network configured with Aragon node.
rinkeby: {
url: 'https://rinkeby.eth.aragon.network',
accounts: [
process.env.ETH_KEY ||
'0xa8a54b2d8197bc0b19bb8a084031be71835580a01e70a45a13babd16c9bc1563',
],
},
// 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',
}
},
solc: {
version: '0.4.24',
optimizer: {
enabled: true,
runs: 10000,
},
},
// The gas reporter plugin do not properly handle the buidlerevm
// chain yet. In the mean time we should 'npx buidler node' and
// then attach to running process using '--network localhost' as
// explained in: https://buidler.dev/buidler-evm/#connecting-to-buidler-evm-from-wallets-and-other-software.
// You can also run 'yarn devchain' and on a separate terminal run 'yarn test:gas'
gasReporter: {
enabled: process.env.REPORT_GAS ? true : false,
},
}