-
Notifications
You must be signed in to change notification settings - Fork 39
/
hardhat.config.ts
63 lines (60 loc) · 1.44 KB
/
hardhat.config.ts
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
require("@nomiclabs/hardhat-etherscan");
require("@nomiclabs/hardhat-truffle5");
require("@nomiclabs/hardhat-solhint");
import "@nomiclabs/hardhat-waffle";
import "@nomiclabs/hardhat-ethers";
import '@openzeppelin/hardhat-upgrades';
require("hardhat-gas-reporter");
require("solidity-coverage");
require("./scripts/tasks");
// Go to https://infura.io/ and create a new project
// Replace this with your Infura project ID
const INFURA_API_KEY = "";
// Replace this private key with your Kovan account private key
// To export your private key from Metamask, open Metamask and
// go to Account Details > Export Private Key
// Be aware of NEVER putting real Ether into testing accounts
const KOVAN_PRIVATE_KEY = "";
const ETHERSCAN_API_KEY = "";
module.exports = {
networks: {
develop: {
url: "http://localhost:8545",
},
/* kovan: {
url: `https://kovan.infura.io/v3/${INFURA_API_KEY}`,
accounts: [`0x${KOVAN_PRIVATE_KEY}`],
gasMultiplier: 3
}, */
coverage: {
url: "http://localhost:8555"
}
},
solidity: {
compilers: [{
version: "0.7.3",
settings: {
optimizer: {
enabled: true,
runs: 200
}
}
}, {
version: "0.6.8"
}, {
version: "0.5.17",
settings: {
optimizer: {
enabled: true,
runs: 200
}
}
}]
},
etherscan: {
apiKey: ETHERSCAN_API_KEY
},
mocha: {
timeout: 100000
}
};