-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathhardhat.config.js
More file actions
48 lines (46 loc) · 1.21 KB
/
hardhat.config.js
File metadata and controls
48 lines (46 loc) · 1.21 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
require("dotenv").config();
require("@nomicfoundation/hardhat-toolbox");
require("solidity-coverage");
require("hardhat-gas-reporter");
const { PRIVATE_KEY, ARBITRUM_RPC_URL, ARBITRUM_SEPOLIA_RPC_URL, ARBISCAN_API_KEY } = process.env;
module.exports = {
solidity: {
version: "0.8.20",
settings: {
optimizer: { enabled: true, runs: 200 },
viaIR: true,
},
},
networks: {
hardhat: {
chainId: 31337,
allowUnlimitedContractSize: true,
},
arbitrumOne: {
url: ARBITRUM_RPC_URL || "https://arb1.arbitrum.io/rpc",
accounts: PRIVATE_KEY ? [PRIVATE_KEY] : [],
chainId: 42161,
},
arbitrumSepolia: {
url: ARBITRUM_SEPOLIA_RPC_URL || "https://sepolia-rollup.arbitrum.io/rpc",
accounts: PRIVATE_KEY ? [PRIVATE_KEY] : [],
chainId: 421614,
},
},
etherscan: {
apiKey: {
arbitrumOne: ARBISCAN_API_KEY || "",
arbitrumSepolia: ARBISCAN_API_KEY || "",
},
},
gasReporter: {
enabled: true,
currency: "USD",
coinmarketcap: process.env.CMC_API_KEY || undefined,
showMethodSig: true,
showTimeSpent: true,
noColors: true,
outputFile: "gas-analysis/gas-report.md",
onlyCalledMethods: false,
},
};