forked from MolochVentures/moloch
-
Notifications
You must be signed in to change notification settings - Fork 0
/
hardhat.config.js
60 lines (57 loc) · 1.43 KB
/
hardhat.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
const hardhat = require("hardhat/config");
const { usePlugin } = hardhat;
require("@nomiclabs/hardhat-etherscan");
require("@nomiclabs/hardhat-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"
}
},
solidity: {
version: "0.5.3",
settings: {
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
}
};