-
Notifications
You must be signed in to change notification settings - Fork 10
/
hardhat.config.ts
72 lines (69 loc) · 1.49 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
64
65
66
67
68
69
70
71
72
import "@nomiclabs/hardhat-waffle";
import "@nomiclabs/hardhat-truffle5";
import "@nomiclabs/hardhat-etherscan";
import "@nomiclabs/hardhat-web3";
import "@nomiclabs/hardhat-vyper";
import "@nomiclabs/hardhat-ethers";
import "hardhat-contract-sizer";
require("dotenv").config();
process.env.TEST_MNEMONIC =
"test test test test test test test test test test test junk";
module.exports = {
accounts: {
mnemonic: process.env.TEST_MNEMONIC,
},
solidity: {
compilers: [
{
version: "0.5.16",
settings: {
optimizer: {
runs: 9999,
enabled: true,
},
},
},
{
version: "0.8.4",
settings: {
optimizer: {
runs: 9999,
enabled: true,
},
},
},
],
},
networks: {
hardhat: {
forking: {
url: process.env.TEST_URI,
gasLimit: 8e6,
blockNumber: 12239391,
},
},
kovan: {
url: process.env.KOVAN_URI,
accounts: {
mnemonic: process.env.KOVAN_MNEMONIC,
},
// accounts: [`0x${process.env.KOVAN_KEY}`,`0x${process.env.KOVAN_KEY2}`]
},
mainnet: {
url: process.env.MAINNET_URI,
accounts: {
mnemonic: process.env.MNEMONIC,
},
// accounts: [`0x${process.env.KOVAN_KEY}`,`0x${process.env.KOVAN_KEY2}`]
},
},
mocha: {
timeout: 200000,
},
vyper: {
version: "0.2.8",
},
etherscan: {
apiKey: process.env.ETHERSCAN_API_KEY,
},
};