impermax-sdk 1.2.136 → 1.2.138
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/config/subgraphs.js +20 -39
- package/package.json +1 -1
package/lib/config/subgraphs.js
CHANGED
|
@@ -2,6 +2,10 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.WHITELIST_SUBGRAPH_URL = exports.CONFIG_MANAGER_SUBGRAPH_URL = exports.XIMX_SUBGRAPH_URL = exports.BLOCKS_SUBGRAPH_URL = exports.LENDING_VAULT_SUBGRAPH_URL = exports.IMPERMAX_CHEF_SUBGRAPH_URL = exports.IMPERMAX_SUBGRAPH_URL = void 0;
|
|
4
4
|
const types_1 = require("./types");
|
|
5
|
+
// NOTE: Disabled railway endpoints on May 22 2025 to reduce costs. Redundancy only on these:
|
|
6
|
+
// - FactoryV2: Sonic/Base/Optimism
|
|
7
|
+
// - FactoryV3: Arbitrum/Base
|
|
8
|
+
// - LendingVaults: Polygon/Arbitrum/Blast/Sonic/Base/Scroll
|
|
5
9
|
// @ts-ignore
|
|
6
10
|
exports.IMPERMAX_SUBGRAPH_URL = {
|
|
7
11
|
[types_1.Networks.Ropsten]: {},
|
|
@@ -13,53 +17,37 @@ exports.IMPERMAX_SUBGRAPH_URL = {
|
|
|
13
17
|
[types_1.Networks.Polygon]: {
|
|
14
18
|
[types_1.Factory.V2V1_1]: [
|
|
15
19
|
"https://gateway.thegraph.com/api/e9bbf185bbf657f7ea313387cdf0e5ce/subgraphs/id/F3BfecWo2by5QKrwhkXwuXjyLZnQqJ1wqoejwe67KuyG",
|
|
16
|
-
// Temp fix
|
|
17
|
-
//"https://polygon-factory-production.up.railway.app/"
|
|
18
20
|
],
|
|
19
21
|
[types_1.Factory.V2V2]: [
|
|
20
22
|
"https://gateway.thegraph.com/api/e9bbf185bbf657f7ea313387cdf0e5ce/subgraphs/id/5JbuAaWwyRm78yWpRCJJS217hXXft59g9MbsjTTZnYQa",
|
|
21
|
-
// Temp fix
|
|
22
|
-
//"https://polygon-factory-production.up.railway.app/"
|
|
23
23
|
],
|
|
24
24
|
[types_1.Factory.SOLV2]: [
|
|
25
25
|
"https://gateway.thegraph.com/api/e9bbf185bbf657f7ea313387cdf0e5ce/subgraphs/id/Giwg5N4SCehmUzNwXtAQZnZvUuTjcp7cr3nzUZosRDFU",
|
|
26
|
-
"https://polygon-factory-production.up.railway.app/"
|
|
27
26
|
],
|
|
28
27
|
[types_1.Factory.SOL_STABLE]: [
|
|
29
28
|
"https://gateway.thegraph.com/api/e9bbf185bbf657f7ea313387cdf0e5ce/subgraphs/id/EWckMdMiZeDSGHxq2V8gZBDF549Xjr9iKkPvisqckF11",
|
|
30
|
-
"https://polygon-factory-production.up.railway.app/"
|
|
31
29
|
],
|
|
32
30
|
},
|
|
33
31
|
[types_1.Networks.Arbitrum]: {
|
|
34
32
|
[types_1.Factory.V2V1_1]: [
|
|
35
33
|
"https://gateway.thegraph.com/api/e9bbf185bbf657f7ea313387cdf0e5ce/subgraphs/id/3PMyaq269mDMwhJ7E285RYD1r43x996b6xZmJSCGvtkm",
|
|
36
|
-
// Temp fix for arbitrum v1 subgraph
|
|
37
|
-
//"https://arbitrum-factory-production.up.railway.app/"
|
|
38
34
|
],
|
|
39
35
|
[types_1.Factory.V2V2]: [
|
|
40
36
|
"https://gateway.thegraph.com/api/e9bbf185bbf657f7ea313387cdf0e5ce/subgraphs/id/BkMRb8mR5zgCbjFSgau6s27pnANhR6k64RGVKUbWaZdY",
|
|
41
|
-
// Temp fix for arbitrum v2 subgraph
|
|
42
|
-
//"https://arbitrum-factory-production.up.railway.app/"
|
|
43
37
|
],
|
|
44
38
|
[types_1.Factory.SOLV2]: [
|
|
45
39
|
"https://gateway.thegraph.com/api/e9bbf185bbf657f7ea313387cdf0e5ce/subgraphs/id/AdLbcSfG6JnpZ7RDdHNHq3bJ21waGnRi7AJ5x3YFGYFo",
|
|
46
|
-
"https://arbitrum-factory-production.up.railway.app/"
|
|
47
40
|
],
|
|
48
41
|
},
|
|
49
42
|
[types_1.Networks.Avalanche]: {
|
|
50
43
|
[types_1.Factory.V2V1_2]: [
|
|
51
44
|
"https://gateway.thegraph.com/api/e9bbf185bbf657f7ea313387cdf0e5ce/subgraphs/id/HXhHppWXhFqgLfdmTahFj2x7F5Xq8BwADxGY3nbCUAwr",
|
|
52
|
-
// Temp fix
|
|
53
|
-
//"https://avalanche-factory-production.up.railway.app/"
|
|
54
45
|
],
|
|
55
46
|
[types_1.Factory.V2V2]: [
|
|
56
47
|
"https://gateway.thegraph.com/api/e9bbf185bbf657f7ea313387cdf0e5ce/subgraphs/id/8Gz5ZGyRkSA7WBrSteeyez39AgZQsoEbtXe8GtHD7JMQ",
|
|
57
|
-
// Temp fix
|
|
58
|
-
//"https://avalanche-factory-production.up.railway.app/"
|
|
59
48
|
],
|
|
60
49
|
[types_1.Factory.SOLV2]: [
|
|
61
50
|
"https://gateway.thegraph.com/api/e9bbf185bbf657f7ea313387cdf0e5ce/subgraphs/id/78e6cZp11r2coLx8YYo5y4AqzEhQXYT6sw3Bg5Tiy5XU",
|
|
62
|
-
"https://avalanche-factory-production.up.railway.app/"
|
|
63
51
|
],
|
|
64
52
|
},
|
|
65
53
|
[types_1.Networks.Mantle]: {
|
|
@@ -93,7 +81,6 @@ exports.IMPERMAX_SUBGRAPH_URL = {
|
|
|
93
81
|
[types_1.Networks.ZksyncEra]: {
|
|
94
82
|
[types_1.Factory.SOLV2]: [
|
|
95
83
|
"https://gateway.thegraph.com/api/e9bbf185bbf657f7ea313387cdf0e5ce/subgraphs/id/8YSS88X8ChDw1QvuAMtxjezSXNiYer9k9d3Uu8XFLHzX",
|
|
96
|
-
"https://zksync-factory-production.up.railway.app/"
|
|
97
84
|
],
|
|
98
85
|
},
|
|
99
86
|
[types_1.Networks.Harmony]: {},
|
|
@@ -102,11 +89,9 @@ exports.IMPERMAX_SUBGRAPH_URL = {
|
|
|
102
89
|
[types_1.Networks.Blast]: {
|
|
103
90
|
[types_1.Factory.SOLV2]: [
|
|
104
91
|
"https://gateway.thegraph.com/api/e9bbf185bbf657f7ea313387cdf0e5ce/subgraphs/id/4FDikpVjE2XnDJ5QcpQ1YJXWcUDiAgE7x8ErtsHh33UB",
|
|
105
|
-
"https://blast-factory-production.up.railway.app/"
|
|
106
92
|
],
|
|
107
93
|
[types_1.Factory.V2V2]: [
|
|
108
94
|
"https://gateway.thegraph.com/api/e9bbf185bbf657f7ea313387cdf0e5ce/subgraphs/id/6xkrXFPJ4wqh9cy9ayP19WGr2wZVSMP3FniMjcW2LUG4",
|
|
109
|
-
"https://blast-factory-production.up.railway.app/"
|
|
110
95
|
],
|
|
111
96
|
},
|
|
112
97
|
[types_1.Networks.Base]: {
|
|
@@ -126,11 +111,9 @@ exports.IMPERMAX_SUBGRAPH_URL = {
|
|
|
126
111
|
[types_1.Networks.Scroll]: {
|
|
127
112
|
[types_1.Factory.SOLV2]: [
|
|
128
113
|
"https://gateway.thegraph.com/api/e9bbf185bbf657f7ea313387cdf0e5ce/subgraphs/id/9HL6kLRt3AbQsprTvk7KZdaHunJ5GGsLdYWd27nNfCFC",
|
|
129
|
-
"https://scroll-factory-production.up.railway.app/"
|
|
130
114
|
],
|
|
131
115
|
[types_1.Factory.SOL_STABLE]: [
|
|
132
116
|
"https://gateway.thegraph.com/api/e9bbf185bbf657f7ea313387cdf0e5ce/subgraphs/id/C42ymmkDArE1T5wdYKwao6mntqNSjP2E34TeGusiF3sk",
|
|
133
|
-
"https://scroll-factory-production.up.railway.app/"
|
|
134
117
|
],
|
|
135
118
|
},
|
|
136
119
|
[types_1.Networks.Optimism]: {
|
|
@@ -152,22 +135,20 @@ exports.IMPERMAX_SUBGRAPH_URL = {
|
|
|
152
135
|
},
|
|
153
136
|
[types_1.Networks.Sonic]: {
|
|
154
137
|
[types_1.Factory.SOLV2]: [
|
|
138
|
+
'https://gateway.thegraph.com/api/e9bbf185bbf657f7ea313387cdf0e5ce/subgraphs/id/HK9BA4oFp1xaoQW7YVP4m2nbxX7q2bQCZWNPKBtudtZR',
|
|
155
139
|
'https://sonic-factory-production.up.railway.app/',
|
|
156
|
-
'https://gateway.thegraph.com/api/e9bbf185bbf657f7ea313387cdf0e5ce/subgraphs/id/HK9BA4oFp1xaoQW7YVP4m2nbxX7q2bQCZWNPKBtudtZR'
|
|
157
140
|
],
|
|
158
141
|
[types_1.Factory.SOL_STABLE]: [
|
|
142
|
+
'https://gateway.thegraph.com/api/e9bbf185bbf657f7ea313387cdf0e5ce/subgraphs/id/61ZJXkM5uRGntP1HZkmH4iaKRzsf1BBhQdZYi9euLkpM',
|
|
159
143
|
'https://sonic-factory-production.up.railway.app/',
|
|
160
|
-
'https://gateway.thegraph.com/api/e9bbf185bbf657f7ea313387cdf0e5ce/subgraphs/id/61ZJXkM5uRGntP1HZkmH4iaKRzsf1BBhQdZYi9euLkpM'
|
|
161
144
|
]
|
|
162
145
|
},
|
|
163
146
|
[types_1.Networks.Linea]: {
|
|
164
147
|
[types_1.Factory.SOLV2]: [
|
|
165
148
|
'https://gateway.thegraph.com/api/e9bbf185bbf657f7ea313387cdf0e5ce/subgraphs/id/AyFSeFRAtUm4aY3cb1zTJqoMjcgSNrRipucuSxkEZ1v9',
|
|
166
|
-
'https://linea-factory-production.up.railway.app/'
|
|
167
149
|
],
|
|
168
150
|
[types_1.Factory.SOL_STABLE]: [
|
|
169
151
|
'https://gateway.thegraph.com/api/e9bbf185bbf657f7ea313387cdf0e5ce/subgraphs/id/Ah5k6hzS9YicNHWuA4Uts9MQQQGbPLDtwD8tYjKaX8Ls',
|
|
170
|
-
'https://linea-factory-production.up.railway.app/'
|
|
171
152
|
]
|
|
172
153
|
}
|
|
173
154
|
};
|
|
@@ -199,8 +180,8 @@ exports.IMPERMAX_CHEF_SUBGRAPH_URL = {
|
|
|
199
180
|
exports.LENDING_VAULT_SUBGRAPH_URL = {
|
|
200
181
|
[types_1.Networks.Ropsten]: '',
|
|
201
182
|
[types_1.Networks.Mainnet]: '',
|
|
202
|
-
[types_1.Networks.Polygon]: 'https://gateway.thegraph.com/api/
|
|
203
|
-
[types_1.Networks.Arbitrum]: 'https://gateway.thegraph.com/api/
|
|
183
|
+
[types_1.Networks.Polygon]: 'https://gateway.thegraph.com/api/e9bbf185bbf657f7ea313387cdf0e5ce/subgraphs/id/BNWJQpKBT24mYzLYZ7hdBiJpvfBoEwjSemNkQ1Rryknp',
|
|
184
|
+
[types_1.Networks.Arbitrum]: 'https://gateway.thegraph.com/api/e9bbf185bbf657f7ea313387cdf0e5ce/subgraphs/id/BhmcL1CZmw9hftXPviiTeMY7kghbbkpHZtpiHXWVhNNN',
|
|
204
185
|
[types_1.Networks.Avalanche]: '',
|
|
205
186
|
[types_1.Networks.Moonriver]: '',
|
|
206
187
|
[types_1.Networks.Fantom]: '',
|
|
@@ -211,13 +192,13 @@ exports.LENDING_VAULT_SUBGRAPH_URL = {
|
|
|
211
192
|
[types_1.Networks.Sxnetwork]: '',
|
|
212
193
|
[types_1.Networks.Canto]: '',
|
|
213
194
|
[types_1.Networks.ZksyncEra]: '',
|
|
214
|
-
[types_1.Networks.Blast]: 'https://gateway.thegraph.com/api/
|
|
215
|
-
[types_1.Networks.Base]: 'https://gateway.thegraph.com/api/
|
|
195
|
+
[types_1.Networks.Blast]: 'https://gateway.thegraph.com/api/e9bbf185bbf657f7ea313387cdf0e5ce/subgraphs/id/8UbzkWkh1zqWhkgkomcVAVR7tmvDNq9LUtfmvRwtDQTh',
|
|
196
|
+
[types_1.Networks.Base]: 'https://gateway.thegraph.com/api/e9bbf185bbf657f7ea313387cdf0e5ce/subgraphs/id/2TdbQKGWPRHUwuHJgxQzh8kZ7FVpBgZaFtnbjTS6iYng',
|
|
216
197
|
[types_1.Networks.Mantle]: '',
|
|
217
198
|
[types_1.Networks.Optimism]: '',
|
|
218
199
|
[types_1.Networks.Real]: '',
|
|
219
|
-
[types_1.Networks.Scroll]: 'https://gateway.thegraph.com/api/
|
|
220
|
-
[types_1.Networks.Sonic]: 'https://gateway.thegraph.com/api/
|
|
200
|
+
[types_1.Networks.Scroll]: 'https://gateway.thegraph.com/api/e9bbf185bbf657f7ea313387cdf0e5ce/subgraphs/id/BaPMX2ubiRZ4ujqTFmWyrk72fPo6yFLQ7A5Z4BLXCTFU',
|
|
201
|
+
[types_1.Networks.Sonic]: 'https://gateway.thegraph.com/api/e9bbf185bbf657f7ea313387cdf0e5ce/subgraphs/id/AHj91C4xwYSfyHAnZiMa1pC4ZwRtzqG3QGVyJchEsJAC',
|
|
221
202
|
[types_1.Networks.Linea]: '',
|
|
222
203
|
};
|
|
223
204
|
exports.BLOCKS_SUBGRAPH_URL = {
|
|
@@ -248,25 +229,25 @@ exports.XIMX_SUBGRAPH_URL = "https://api.thegraph.com/subgraphs/name/impermax-fi
|
|
|
248
229
|
exports.CONFIG_MANAGER_SUBGRAPH_URL = {
|
|
249
230
|
[types_1.Networks.Ropsten]: '',
|
|
250
231
|
[types_1.Networks.Mainnet]: '',
|
|
251
|
-
[types_1.Networks.Polygon]: 'https://gateway.thegraph.com/api/
|
|
232
|
+
[types_1.Networks.Polygon]: 'https://gateway.thegraph.com/api/e9bbf185bbf657f7ea313387cdf0e5ce/subgraphs/id/42W3457WecJ4foXk3tBeVpmX8MUHS3L8qXvUvhDSE6p2',
|
|
252
233
|
[types_1.Networks.Arbitrum]: '',
|
|
253
234
|
[types_1.Networks.Avalanche]: '',
|
|
254
235
|
[types_1.Networks.Moonriver]: '',
|
|
255
236
|
[types_1.Networks.Aurora]: '',
|
|
256
237
|
[types_1.Networks.Cronos]: '',
|
|
257
|
-
[types_1.Networks.Fantom]: 'https://gateway.thegraph.com/api/
|
|
238
|
+
[types_1.Networks.Fantom]: 'https://gateway.thegraph.com/api/e9bbf185bbf657f7ea313387cdf0e5ce/subgraphs/id/D6WHTfFEaUkHyLavPQM5BcivWYMe41Aj6PbdaKhKdfUm',
|
|
258
239
|
[types_1.Networks.Canto]: '',
|
|
259
240
|
[types_1.Networks.ZksyncEra]: '',
|
|
260
241
|
[types_1.Networks.Harmony]: '',
|
|
261
242
|
[types_1.Networks.Moonbeam]: '',
|
|
262
243
|
[types_1.Networks.Sxnetwork]: '',
|
|
263
|
-
[types_1.Networks.Blast]: 'https://gateway.thegraph.com/api/
|
|
264
|
-
[types_1.Networks.Scroll]: 'https://gateway.thegraph.com/api/
|
|
265
|
-
[types_1.Networks.Base]: 'https://gateway.thegraph.com/api/
|
|
266
|
-
[types_1.Networks.Optimism]: 'https://gateway.thegraph.com/api/
|
|
244
|
+
[types_1.Networks.Blast]: 'https://gateway.thegraph.com/api/e9bbf185bbf657f7ea313387cdf0e5ce/subgraphs/id/2ARmGYURb2DAHxfJeA1fhVUDeJpHSvCoJTDiBfmTvESN',
|
|
245
|
+
[types_1.Networks.Scroll]: 'https://gateway.thegraph.com/api/e9bbf185bbf657f7ea313387cdf0e5ce/subgraphs/id/9vmJatgwfrm7MMWXy3MhAZ2bsbrbbHzik9q9f5hfzZE9',
|
|
246
|
+
[types_1.Networks.Base]: 'https://gateway.thegraph.com/api/e9bbf185bbf657f7ea313387cdf0e5ce/subgraphs/id/6y4Bb2KSFsqyjbARM8EpKkqFRt62ELasVCVckg2bv7jB',
|
|
247
|
+
[types_1.Networks.Optimism]: 'https://gateway.thegraph.com/api/e9bbf185bbf657f7ea313387cdf0e5ce/subgraphs/id/GWFrv8MNg5fpD19fxdu32G1Wt6om8qb1wbacpgHDyvC8',
|
|
267
248
|
[types_1.Networks.Real]: 'https://api.goldsky.com/api/public/project_cm2d5q4l4w31601vz4swb3vmi/subgraphs/impermax-config-manager-real/1.0/gn',
|
|
268
|
-
[types_1.Networks.Sonic]: 'https://gateway.thegraph.com/api/
|
|
269
|
-
[types_1.Networks.Linea]: 'https://gateway.thegraph.com/api/
|
|
249
|
+
[types_1.Networks.Sonic]: 'https://gateway.thegraph.com/api/e9bbf185bbf657f7ea313387cdf0e5ce/subgraphs/id/DqzQAecRNGsoRgwVre16Fha9XTPFf9QBo8iZxubysy2x',
|
|
250
|
+
[types_1.Networks.Linea]: 'https://gateway.thegraph.com/api/e9bbf185bbf657f7ea313387cdf0e5ce/subgraphs/id/CKu5kt4M1p2ELhn7cef9ZjE9igMH2icv3mzBepEdNPRz',
|
|
270
251
|
};
|
|
271
252
|
exports.WHITELIST_SUBGRAPH_URL = {
|
|
272
253
|
[types_1.Networks.Ropsten]: '',
|