-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuidler.config.js
44 lines (42 loc) · 1.19 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
/* eslint-disable react-hooks/rules-of-hooks */
const { usePlugin } = require('@nomiclabs/buidler/config')
const hooks = require('./scripts/buidler-hooks')
usePlugin('@aragon/buidler-aragon')
usePlugin('buidler-gas-reporter')
usePlugin('solidity-coverage')
module.exports = {
// Default Buidler configurations. Read more about it at https://buidler.dev/config/
defaultNetwork: 'localhost',
networks: {
localhost: {
url: 'http://localhost:8545',
},
},
solc: {
version: '0.4.24',
optimizer: {
enabled: true,
runs: 10000,
},
},
gasReporter: {
enabled: !!process.env.GAS_REPORTER,
},
// Etherscan plugin configuration. Learn more at https://github.com/nomiclabs/buidler/tree/master/packages/buidler-etherscan
etherscan: {
// The url for the Etherscan API you want to use.
url: 'https://api-rinkeby.etherscan.io/api',
// Your API key for Etherscan
// Obtain one at https://etherscan.io/
apiKey: process.env.API_KEY,
},
// Aragon plugin configuration
aragon: {
appServePort: 8001,
clientServePort: 3000,
appSrcPath: 'app/',
appBuildOutputPath: 'dist/',
appName: 'araswap',
hooks, // Path to script hooks
},
}