forked from bcnmy/mexa
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathhardhat.config.js
More file actions
139 lines (134 loc) · 3.48 KB
/
hardhat.config.js
File metadata and controls
139 lines (134 loc) · 3.48 KB
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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
require("@nomiclabs/hardhat-waffle");
require("@nomiclabs/hardhat-ethers");
require("hardhat-gas-reporter");
require("solidity-coverage");
//require('solidity-coverage');
const walletUtils = require("./walletUtils");
// This is a sample Buidler task. To learn how to create your own go to
// https://buidler.dev/guides/create-task.html
task("accounts", "Prints the list of accounts", async () => {
const accounts = await ethers.getSigners();
for (const account of accounts) {
console.log(await account.getAddress());
}
});
//1 foot in 1 foot out lmao
const fs = require('fs');
const infuraKey = fs.readFileSync(".infura").toString().trim();
const alchemyKey = fs.readFileSync(".alchemy").toString().trim();
// You have to export an object to set up your config
// This object can have the following optional entries:
// defaultNetwork, networks, solc, and paths.
// Go to https://buidler.dev/config/ to learn more
module.exports = {
mocha: {
timeout: 500000
},
solidity: {
compilers: [
{
version: "0.5.13",
settings:{
evmVersion: "istanbul",
optimizer: { enabled: true, runs: 200 }
}
},
{
version: "0.6.9",
settings:{
optimizer: { enabled: true, runs: 200 }
}
},
{
version: "0.7.6",
settings:{
evmVersion: "istanbul",
optimizer: { enabled: true, runs: 200 }
}
},
{
version: "0.5.12",
settings:{
optimizer: { enabled: true, runs: 200 }
}
},
{
version: "0.6.12",
settings: {
optimizer: {
enabled: true,
runs: 200,
},
}
},
{
version: "0.6.0"
}
]
},
networks:{
coverage: {
url: 'http://localhost:8555'
},
hardhat:{
allowUnlimitedContractSize:false,
gas: 6000000,
accounts:walletUtils.localWallet("1000000000000000000000000",num=20),
forking : {
url:`https://mainnet.infura.io/v3/${infuraKey}`
// url:`https://eth-mainnet.alchemyapi.io/v2/${alchemyKey}`
}
},
kovan:{
url:`https://kovan.infura.io/v3/${infuraKey}`,
// url:`https://eth-kovan.alchemyapi.io/v2/${alchemyKey}`,
accounts:walletUtils.makeKeyList(),
chainId:42,
gas: 6400000,
gasMultiplier:2
},
goerli:{
url:`https://goerli.infura.io/v3/${infuraKey}`,
accounts:walletUtils.makeKeyList(),
chainId:5,
gas: 6400000,
gasPrice: 20000000000
},
maticMumbai: {
url:"https://rpc-mumbai.maticvigil.com/v1/2ac03d4fd9d671e79063e071828a5260d3752de3",
accounts:walletUtils.makeKeyList(),
chainId: 80001
},
matic: {
url:"<matic_url>",
accounts:walletUtils.makeKeyList(),
chainId: 137,
gasPrice: 10000000000
},
rinkeby: {
url: `https://rinkeby.infura.io/v3/${infuraKey}`,
accounts: walletUtils.makeKeyList(),
chainId:4,
gas: 1250000,
gasMultiplier:2
},
ropsten:{
url:`https://ropsten.infura.io/v3/${infuraKey}`,
accounts:walletUtils.makeKeyList(),
chainId:3,
gas: 6400000
},
ethMainnet:{
url: `https://mainnet.infura.io/v3/${infuraKey}`,
accounts:walletUtils.makeKeyList(),
chainId:1,
gasPrice: 25000000000
},
binanceTest:{
url:`https://data-seed-prebsc-1-s1.binance.org:8545/`,
accounts:walletUtils.makeKeyList(),
chainId:97,
gas: 6400000
}
}
};