-
Notifications
You must be signed in to change notification settings - Fork 3
/
hardhat.config.js
110 lines (107 loc) · 2.4 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
require("@nomicfoundation/hardhat-toolbox");
require("@openzeppelin/hardhat-upgrades");
require("hardhat-contract-sizer");
require("dotenv").config();
const {
WALLET_PRIVATE_KEY,
ETHEREUM_ARCHIVAL_RPC,
ETHEREUM_SCAN_API_KEY,
// ETHEREUM_RPC_URL,
// ETHEREUM_CHAIN_ID,
SEPOLIA_ARCHIVAL_RPC,
SEPOLIA_SCAN_API_KEY,
POLYGON_ARCHIVAL_RPC,
POLYGON_SCAN_API_KEY,
AMOY_ARCHIVAL_RPC,
AMOY_SCAN_API_KEY,
} = process.env;
/** @type import('hardhat/config').HardhatUserConfig */
module.exports = {
solidity: {
compilers: [
{
version: "0.8.17",
},
],
settings: {
optimizer: {
enabled: false,
viaIR: true,
runs: 200,
details: {
yul: true,
},
},
},
},
networks: {
hardhat: {
forking: {
url: "https://rpc.ankr.com/eth",
ignoreUnknownTxType: true,
blockNumber: 18314577,
},
chainId: 1,
accounts: {
// privateKey: WALLET_PRIVATE_KEY,
balance: "0x1bc16d674ec80000",
},
initialBaseFeePerGas: 0,
gasPrice: 0,
gas: 30000000,
},
ethereum: {
url: `${ETHEREUM_ARCHIVAL_RPC}`,
accounts: [
`${
WALLET_PRIVATE_KEY ||
"0x0000000000000000000000000000000000000000000000000000000000000000"
}`,
],
},
sepolia: {
url: `${SEPOLIA_ARCHIVAL_RPC}`,
accounts: [
`${
WALLET_PRIVATE_KEY ||
"0x0000000000000000000000000000000000000000000000000000000000000000"
}`,
],
},
polygon: {
url: `${POLYGON_ARCHIVAL_RPC}`,
accounts: [
`${
WALLET_PRIVATE_KEY ||
"0x0000000000000000000000000000000000000000000000000000000000000000"
}`,
],
},
amoy: {
url: `${AMOY_ARCHIVAL_RPC}`,
chainId: 80002,
accounts: [
`${
WALLET_PRIVATE_KEY ||
"0x0000000000000000000000000000000000000000000000000000000000000000"
}`,
],
},
},
gasReporter: {
enabled: false,
coinmarketcap: "1d8cfd2b-c9b6-4884-a5bb-1f0e033b146c",
outputFile: "gas-report-eth.txt",
noColors: true,
currency: "USD",
excludeContracts: ["Mock/", "Token/"],
},
etherscan: {
apiKey: {
ethereum: ETHEREUM_SCAN_API_KEY,
sepolia: SEPOLIA_SCAN_API_KEY,
polygon: POLYGON_SCAN_API_KEY,
amoy: AMOY_SCAN_API_KEY,
},
},
};