forked from MolochVentures/moloch
-
Notifications
You must be signed in to change notification settings - Fork 0
/
buidler.config.js
59 lines (55 loc) · 1.4 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
const buidler = require("@nomiclabs/buidler/config");
const { usePlugin } = buidler;
usePlugin("@nomiclabs/buidler-etherscan");
usePlugin("@nomiclabs/buidler-truffle5");
require("./scripts/moloch-tasks");
require("./scripts/pool-tasks");
const INFURA_API_KEY = "";
const MAINNET_PRIVATE_KEY = "";
const ROPSTEN_PRIVATE_KEY = "";
const ETHERSCAN_API_KEY = "";
module.exports = {
networks: {
develop: {
url: "http://localhost:8545",
deployedContracts: {
moloch: "",
pool: ""
}
},
ropsten: {
url: `https://ropsten.infura.io/v3/${INFURA_API_KEY}`,
accounts: [ROPSTEN_PRIVATE_KEY],
deployedContracts: {
moloch: "",
pool: ""
}
},
mainnet: {
url: `https://mainnet.infura.io/v3/${INFURA_API_KEY}`,
accounts: [MAINNET_PRIVATE_KEY],
deployedContracts: {
moloch: "0x1fd169A4f5c59ACf79d0Fd5d91D1201EF1Bce9f1", // The original Moloch
pool: ""
}
},
coverage: {
url: "http://localhost:8555"
}
},
solc: {
version: "0.5.3",
optimizer: {
enabled: true,
runs: 200
}
},
etherscan: {
// The url for the Etherscan API you want to use.
// For example, here we're using the one for the Ropsten test network
url: "https://api.etherscan.io/api",
// Your API key for Etherscan
// Obtain one at https://etherscan.io/
apiKey: ETHERSCAN_API_KEY
}
};