-
Notifications
You must be signed in to change notification settings - Fork 0
/
hardhat.config.ts
106 lines (103 loc) · 2.3 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
import { HardhatUserConfig } from "hardhat/config";
import "@nomicfoundation/hardhat-toolbox";
import * as dotenv from "dotenv";
dotenv.config();
const config: HardhatUserConfig = {
paths: {
artifacts: "./build",
},
gasReporter: {
enabled: true,
},
solidity: {
compilers: [
{
version: "0.8.26",
settings: {
optimizer: {
enabled: true,
runs: 200,
},
viaIR: false,
evmVersion: "cancun",
},
},
{
version: "0.8.24",
settings: {
optimizer: {
enabled: true,
runs: 200,
},
viaIR: false,
evmVersion: "cancun",
},
},
{
version: "0.8.20",
settings: {
optimizer: {
enabled: true,
runs: 200,
},
viaIR: false,
evmVersion: "london",
},
},
],
},
sourcify: {
enabled: true,
},
networks: {
hardhat: {
hardfork: "cancun",
},
localNode: {
url: "http://127.0.0.1:8545",
},
mainnet: {
url: "https://mainnet.infura.io/v3/" + process.env.INFURA_API_KEY,
},
sepolia: {
url: "https://sepolia.infura.io/v3/" + process.env.INFURA_API_KEY,
},
linea_sepolia: {
url: "https://linea-sepolia.infura.io/v3/" + process.env.INFURA_API_KEY,
},
linea_mainnet: {
url: "https://linea-mainnet.infura.io/v3/" + process.env.INFURA_API_KEY,
},
},
mocha: {
timeout: 20000,
},
etherscan: {
apiKey: {
mainnet: process.env.ETHERSCAN_API_KEY ?? "",
goerli: process.env.ETHERSCAN_API_KEY ?? "",
sepolia: process.env.ETHERSCAN_API_KEY ?? "",
linea_sepolia: process.env.LINEASCAN_API_KEY ?? "",
linea_mainnet: process.env.LINEASCAN_API_KEY ?? "",
},
customChains: [
{
network: "linea_sepolia",
chainId: 59141,
urls: {
apiURL: "https://api-sepolia.lineascan.build/api",
browserURL: "https://sepolia.lineascan.build/",
},
},
{
network: "linea_mainnet",
chainId: 59144,
urls: {
apiURL: "https://api.lineascan.build/api",
browserURL: "https://lineascan.build/",
},
},
],
},
};
export default config;