-
Notifications
You must be signed in to change notification settings - Fork 0
/
buidler.config.js
46 lines (43 loc) · 1.36 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
const { usePlugin } = require('@nomiclabs/buidler/config')
const hooks = require('./scripts/buidler-hooks')
const INFURA_KEY = process.env.INFURA_KEY
const ETHERSCAN_API_KEY = process.env.ETHERSCAN_API_KEY
const PRIVATE_KEY = process.env.PRIVATE_KEY
const NETWORK = process.env.NETWORK
const etherscanDomain = NETWORK == "mainnet" ? "api" : "api-" + NETWORK
usePlugin('@aragon/buidler-aragon')
module.exports = {
// Default Buidler configurations. Read more about it at https://buidler.dev/config/
defaultNetwork: 'localhost',
networks: {
localhost: {
url: 'http://localhost:8545',
},
rinkeby: {
url: "https://rinkeby.infura.io/v3/" + INFURA_KEY,
chainId: 4,
accounts: [PRIVATE_KEY]
}
},
solc: {
version: '0.4.24',
optimizer: {
enabled: true,
runs: 10000,
},
},
// Etherscan plugin configuration. Learn more at https://github.com/nomiclabs/buidler/tree/master/packages/buidler-etherscan
etherscan: {
apiKey: ETHERSCAN_API_KEY, // API Key for smart contract verification. Get yours at https://etherscan.io/apis
url: "https://" + etherscanDomain + ".etherscan.io/api"
},
// Aragon plugin configuration
aragon: {
appServePort: 8001,
clientServePort: 3000,
appSrcPath: 'app/',
appBuildOutputPath: 'dist/',
appName: 'delegable-voting',
hooks, // Path to script hooks
},
}