-
Notifications
You must be signed in to change notification settings - Fork 2
/
hardhat.config.ts
137 lines (133 loc) · 3.31 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
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
import "@nomicfoundation/hardhat-toolbox";
import "@openzeppelin/hardhat-upgrades";
require('dotenv').config();
import './tasks/accounts_task';
import './tasks/deployloan_task';
import './tasks/deploystable_task';
import './tasks/deployborrowerlp_task';
const config = {
solidity: {
version: "0.8.17",
settings: {
optimizer: {
enabled: true,
runs: 1000,
}
},
},
defaultNetwork: "localhost",
gasReporter: {
enabled: true,
},
networks: {
// hardhat: {
// chainId: 1
// },
localhost: {
url: process.env.NETWORK_HOST_LOCALHOST,
accounts: [
process.env.OWNER_1_PK_LOCALHOST,
process.env.OWNER_2_PK_LOCALHOST,
process.env.OWNER_3_PK_LOCALHOST,
process.env.OWNER_4_PK_LOCALHOST,
process.env.OWNER_5_PK_LOCALHOST,
],
chainId: 31337
},
arbitrumMainnet: {
url: process.env.NETWORK_HOST_ARBITRUM,
accounts: [process.env.OWNER_PK_FINANCE],
chainId: 42161
},
polygonMainnet: {
url: process.env.NETWORK_HOST_POLYGON,
accounts: [process.env.OWNER_PK_FINANCE],
chainId: 137
},
polygonZkMainnet: {
url: process.env.NETWORK_HOST_POLYGONZK,
accounts: [process.env.OWNER_PK_FINANCE],
chainId: 1101
},
gnosisMainnet: {
url: process.env.NETWORK_HOST_GNOSIS,
accounts: [process.env.OWNER_PK_FINANCE],
chainId: 100
},
mantleMainnet: {
url: process.env.NETWORK_HOST_MANTLE,
accounts: [process.env.OWNER_PK_FINANCE],
chainId: 5000
},
celoMainnet: {
url: process.env.NETWORK_HOST_CELO,
accounts: [process.env.OWNER_PK_FINANCE],
chainId: 42220
},
baseMainnet: {
url: process.env.NETWORK_HOST_BASE,
accounts: [process.env.OWNER_PK_FINANCE],
chainId: 8453
},
xdcMainnet: {
url: process.env.NETWORK_HOST_XDC,
accounts: [process.env.OWNER_PK_FINANCE],
chainId: 50
},
lineaMainnet: {
url: process.env.NETWORK_HOST_LINEA,
accounts: [process.env.OWNER_PK_FINANCE],
chainId: 59144
},
scrollMainnet: {
url: process.env.NETWORK_HOST_SCROLL,
accounts: [process.env.OWNER_PK_FINANCE],
chainId: 534352
},
scrollTestnet: {
url: process.env.NETWORK_HOST_SCROLL_TESTNET,
accounts: [process.env.OWNER_PK_FINANCE_TESTNET],
chainId: 534351
},
ethereumTestnet: {
url: process.env.NETWORK_HOST_ETHEREUM_TESTNET,
accounts: [process.env.OWNER_PK_FINANCE_TESTNET],
chainId: 11155111
},
polygonTestnet: {
url: process.env.NETWORK_HOST_POLYGON_TESTNET,
accounts: [process.env.OWNER_PK_FINANCE_TESTNET],
chainId: 80001
},
},
customChains: [
{
network: "celoMainnet",
chainId: 42220,
urls: {
apiURL: "https://celoscan.io/api",
browserURL: "https://celoscan.io"
}
},
{
network: "scrollMainnet",
chainId: 534352,
urls: {
apiURL: "https://scrollscan.com/api",
browserURL: "https://scrollscan.com"
}
},
],
etherscan: {
apiKey: {
celoMainnet: process.env.CELO_API_KEY,
scrollMainnet: process.env.SCROLL_API_KEY,
}
},
sourcify: {
// Disabled by default
// Doesn't need an API key
enabled: true
},
};
export default config;