-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathhardhat.config.ts
107 lines (104 loc) · 2.48 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
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
import "@nomicfoundation/hardhat-toolbox-viem";
import "dotenv/config";
import { HardhatUserConfig } from "hardhat/config";
import "./scripts/deploy";
import "./scripts/generate";
import "./scripts/push";
import "./scripts/peers";
import "hardhat-contract-sizer";
const accounts = process.env.PRIVATE_KEY ? [process.env.PRIVATE_KEY] : [];
const config: HardhatUserConfig = {
solidity: {
compilers: [{ version: "0.8.24" }],
settings: {
optimizer: {
enabled: true,
runs: 100000,
},
},
},
contractSizer: {
alphaSort: true,
disambiguatePaths: false,
runOnCompile: true,
strict: true,
},
defaultNetwork: "localhost",
networks: {
localhost: {
url: "http://localhost:8545",
},
sepolia: {
url:
process.env.SEPOLIA_RPC_URL ||
"https://endpoints.omniatech.io/v1/eth/sepolia/public",
accounts,
},
optimism_sepolia: {
url:
process.env.OPTIMISM_SEPOLIA_RPC_URL ||
"https://rpc.ankr.com/optimism_sepolia",
accounts,
},
base_sepolia: {
url:
process.env.BASE_SEPOLIA_RPC_URL ||
"https://base-sepolia.blockpi.network/v1/rpc/public",
accounts,
},
arbitrum_sepolia: {
url:
process.env.ARBITRUM_SEPOLIA_RPC_URL ||
"https://arbitrum-sepolia.blockpi.network/v1/rpc/public",
accounts,
},
zircuit_sepolia: {
url: process.env.ZIRCUIT_SEPOLIA_RPC_URL || "https://zircuit1.p2pify.com",
accounts,
},
morph: {
url: process.env.MORPH_RPC_URL || "https://rpc-holesky.morphl2.io",
accounts,
},
coston2: {
url:
process.env.COSTON2_RPC_URL ||
"https://coston2-api.flare.network/ext/C/rpc",
accounts,
},
mumbai: {
url: process.env.MUMBAI_RPC_URL || "https://rpc.ankr.com/polygon_mumbai",
accounts,
},
fuji: {
url:
process.env.FUJI_RPC_URL ||
"https://avalanche-fuji-c-chain-rpc.publicnode.com",
accounts,
},
scroll_sepolia: {
url:
process.env.SCROLL_SEPOLIA_RPC_URL || "https://sepolia-rpc.scroll.io",
accounts,
},
linea_sepolia: {
url:
process.env.LINEA_SEPOLIA_RPC_URL || `https://rpc.sepolia.linea.build`,
accounts,
},
},
etherscan: {
apiKey: "C5MN3DAP4RHM66QV9S8QB1RAXZZI3P8FWS",
},
gasReporter: {
enabled: true,
currency: "USD",
},
mocha: {
timeout: 20000,
},
sourcify: {
enabled: true,
},
};
export default config;