-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhardhat.config.js
115 lines (111 loc) · 2.45 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
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
require("dotenv").config();
require("@nomiclabs/hardhat-etherscan");
require("@nomiclabs/hardhat-waffle");
require("hardhat-gas-reporter");
require("solidity-coverage");
require("@nomiclabs/hardhat-web3");
require("hardhat-contract-sizer");
task("accounts", "Prints the list of accounts", async (taskArgs, hre) => {
const accounts = await hre.ethers.getSigners();
for (const account of accounts) {
console.log(account.address);
}
});
module.exports = {
solidity: {
compilers: [
{
version: "0.8.16",
settings: {
optimizer: {
enabled: true,
runs: 1,
},
},
},
{
version: "0.8.9",
settings: {
optimizer: {
enabled: true,
runs: 1,
},
},
},
{
version: "0.8.4",
settings: {
optimizer: {
enabled: true,
runs: 1,
},
},
},
{
version: "0.8.2",
settings: {
optimizer: {
enabled: true,
runs: 1,
},
},
},
{
version: "0.8.7",
settings: {
optimizer: {
enabled: true,
runs: 1,
},
},
},
{
version: "0.7.0",
settings: {
optimizer: {
enabled: true,
runs: 1,
},
},
},
{
version: "0.6.2",
settings: {
optimizer: {
enabled: true,
runs: 1,
},
},
},
],
},
networks: {
hardhat: {
forking: {
url: "https://eth-mainnet.g.alchemy.com/v2/pP20rgm6kivcsBb-Oa2Khu6_qbcYh8z1",
},
},
testnet: {
url: `https://eth-goerli.public.blastapi.io`,
accounts: [process.env.PRIVATE_KEY],
},
ethereum: {
url: `https://fragrant-responsive-silence.quiknode.pro/${process.env.QUICKNODE_KEY}/`,
accounts: [process.env.PRIVATE_KEY],
port: 443,
// gasPrice: 75000000000,
},
},
etherscan: {
apiKey: process.env.ETHERSCAN_API_KEY,
},
gasReporter: {
currency: "USD",
coinmarketcap: process.env.COINMARKETCAP_API_KEY,
enabled: process.env.COINMARKETCAP_API_KEY !== undefined,
url: "https://eth-mainnet.g.alchemy.com/v2/pP20rgm6kivcsBb-Oa2Khu6_qbcYh8z1",
token: "ETH",
gasPriceApi:
"https://api.etherscan.io/api?module=proxy&action=eth_gasPrice",
},
};