@sonarwatch/portfolio-plugins 0.8.63 → 0.8.65
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/CHANGELOG.md +423 -415
- package/package.json +2 -2
- package/src/plugins/compound/getPositionsV3Fetcher.js +23 -3
- package/src/plugins/compound/getPositionsV3Fetcher.js.map +1 -1
- package/src/plugins/drift/helpers.d.ts +4 -0
- package/src/plugins/drift/helpers.js +27 -1
- package/src/plugins/drift/helpers.js.map +1 -1
- package/src/plugins/drift/spotPositionsFetcher.js +14 -2
- package/src/plugins/drift/spotPositionsFetcher.js.map +1 -1
- package/src/plugins/uniswap-v2/helpers.js +22 -22
package/CHANGELOG.md
CHANGED
@@ -2,418 +2,426 @@
|
|
2
2
|
|
3
3
|
This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).
|
4
4
|
|
5
|
-
## [0.8.
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
## [0.8.
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
## [0.8.
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
## [0.8.
|
18
|
-
|
19
|
-
## [0.8.
|
20
|
-
|
21
|
-
## [0.8.
|
22
|
-
|
23
|
-
## [0.8.
|
24
|
-
|
25
|
-
## [0.8.
|
26
|
-
|
27
|
-
## [0.8.
|
28
|
-
|
29
|
-
## [0.8.
|
30
|
-
|
31
|
-
## [0.8.
|
32
|
-
|
33
|
-
## [0.8.
|
34
|
-
|
35
|
-
## [0.8.
|
36
|
-
|
37
|
-
## [0.8.
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
## [0.8.
|
44
|
-
|
45
|
-
## [0.8.
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
## [0.8.
|
52
|
-
|
53
|
-
## [0.8.
|
54
|
-
|
55
|
-
## [0.8.
|
56
|
-
|
57
|
-
## [0.8.
|
58
|
-
|
59
|
-
## [0.8.
|
60
|
-
|
61
|
-
## [0.8.
|
62
|
-
|
63
|
-
## [0.8.
|
64
|
-
|
65
|
-
## [0.8.
|
66
|
-
|
67
|
-
## [0.8.
|
68
|
-
|
69
|
-
## [0.8.
|
70
|
-
|
71
|
-
## [0.8.
|
72
|
-
|
73
|
-
## [0.8.
|
74
|
-
|
75
|
-
## [0.8.
|
76
|
-
|
77
|
-
## [0.8.
|
78
|
-
|
79
|
-
## [0.8.
|
80
|
-
|
81
|
-
## [0.8.
|
82
|
-
|
83
|
-
## [0.8.
|
84
|
-
|
85
|
-
## [0.8.
|
86
|
-
|
87
|
-
## [0.8.
|
88
|
-
|
89
|
-
## [0.8.
|
90
|
-
|
91
|
-
## [0.8.
|
92
|
-
|
93
|
-
## [0.8.
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
## [0.8.
|
100
|
-
|
101
|
-
## [0.8.
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
## [0.8.
|
108
|
-
|
109
|
-
## [0.8.
|
110
|
-
|
111
|
-
## [0.8.
|
112
|
-
|
113
|
-
## [0.8.
|
114
|
-
|
115
|
-
## [0.8.
|
116
|
-
|
117
|
-
## [0.8.
|
118
|
-
|
119
|
-
## [0.8.
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
## [0.8.
|
126
|
-
|
127
|
-
## [0.8.
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
## [0.8.
|
134
|
-
|
135
|
-
## [0.8.
|
136
|
-
|
137
|
-
## [0.8.
|
138
|
-
|
139
|
-
## [0.8.
|
140
|
-
|
141
|
-
## [0.8.
|
142
|
-
|
143
|
-
## [0.8.
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
## [0.
|
148
|
-
|
149
|
-
## [0.
|
150
|
-
|
151
|
-
## [0.
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
## [0.7.
|
156
|
-
|
157
|
-
## [0.7.
|
158
|
-
|
159
|
-
## [0.7.
|
160
|
-
|
161
|
-
## [0.7.
|
162
|
-
|
163
|
-
## [0.7.
|
164
|
-
|
165
|
-
## [0.7.
|
166
|
-
|
167
|
-
## [0.7.
|
168
|
-
|
169
|
-
## [0.7.
|
170
|
-
|
171
|
-
## [0.7.
|
172
|
-
|
173
|
-
## [0.7.
|
174
|
-
|
175
|
-
## [0.7.
|
176
|
-
|
177
|
-
## [0.7.
|
178
|
-
|
179
|
-
|
180
|
-
|
181
|
-
## [0.
|
182
|
-
|
183
|
-
## [0.
|
184
|
-
|
185
|
-
## [0.
|
186
|
-
|
187
|
-
|
188
|
-
|
189
|
-
## [0.6.
|
190
|
-
|
191
|
-
## [0.6.
|
192
|
-
|
193
|
-
## [0.6.
|
194
|
-
|
195
|
-
## [0.6.
|
196
|
-
|
197
|
-
## [0.6.
|
198
|
-
|
199
|
-
|
200
|
-
|
201
|
-
## [0.
|
202
|
-
|
203
|
-
## [0.
|
204
|
-
|
205
|
-
## [0.
|
206
|
-
|
207
|
-
|
208
|
-
|
209
|
-
## [0.5.
|
210
|
-
|
211
|
-
## [0.5.
|
212
|
-
|
213
|
-
## [0.5.
|
214
|
-
|
215
|
-
## [0.5.
|
216
|
-
|
217
|
-
## [0.5.
|
218
|
-
|
219
|
-
## [0.5.
|
220
|
-
|
221
|
-
## [0.5.
|
222
|
-
|
223
|
-
## [0.5.
|
224
|
-
|
225
|
-
## [0.5.
|
226
|
-
|
227
|
-
## [0.5.
|
228
|
-
|
229
|
-
## [0.5.
|
230
|
-
|
231
|
-
## [0.5.
|
232
|
-
|
233
|
-
## [0.5.
|
234
|
-
|
235
|
-
## [0.5.
|
236
|
-
|
237
|
-
## [0.5.
|
238
|
-
|
239
|
-
## [0.5.
|
240
|
-
|
241
|
-
## [0.5.
|
242
|
-
|
243
|
-
## [0.5.
|
244
|
-
|
245
|
-
## [0.5.
|
246
|
-
|
247
|
-
## [0.5.
|
248
|
-
|
249
|
-
## [0.5.
|
250
|
-
|
251
|
-
## [0.5.
|
252
|
-
|
253
|
-
## [0.5.
|
254
|
-
|
255
|
-
## [0.5.
|
256
|
-
|
257
|
-
## [0.5.
|
258
|
-
|
259
|
-
## [0.5.
|
260
|
-
|
261
|
-
## [0.5.
|
262
|
-
|
263
|
-
## [0.5.
|
264
|
-
|
265
|
-
## [0.5.
|
266
|
-
|
267
|
-
## [0.5.
|
268
|
-
|
269
|
-
## [0.5.
|
270
|
-
|
271
|
-
## [0.5.
|
272
|
-
|
273
|
-
## [0.5.
|
274
|
-
|
275
|
-
## [0.5.
|
276
|
-
|
277
|
-
## [0.5.
|
278
|
-
|
279
|
-
## [0.5.
|
280
|
-
|
281
|
-
## [0.5.
|
282
|
-
|
283
|
-
## [0.5.
|
284
|
-
|
285
|
-
## [0.5.
|
286
|
-
|
287
|
-
## [0.5.
|
288
|
-
|
289
|
-
## [0.5.
|
290
|
-
|
291
|
-
## [0.5.
|
292
|
-
|
293
|
-
## [0.5.
|
294
|
-
|
295
|
-
## [0.5.
|
296
|
-
|
297
|
-
## [0.5.
|
298
|
-
|
299
|
-
## [0.5.
|
300
|
-
|
301
|
-
## [0.5.
|
302
|
-
|
303
|
-
|
304
|
-
|
305
|
-
## [0.
|
306
|
-
|
307
|
-
## [0.
|
308
|
-
|
309
|
-
## [0.
|
310
|
-
|
311
|
-
|
312
|
-
|
313
|
-
## [0.4.
|
314
|
-
|
315
|
-
## [0.4.
|
316
|
-
|
317
|
-
## [0.4.
|
318
|
-
|
319
|
-
## [0.4.
|
320
|
-
|
321
|
-
## [0.4.
|
322
|
-
|
323
|
-
## [0.4.
|
324
|
-
|
325
|
-
## [0.4.
|
326
|
-
|
327
|
-
## [0.4.
|
328
|
-
|
329
|
-
## [0.4.
|
330
|
-
|
331
|
-
## [0.4.
|
332
|
-
|
333
|
-
## [0.4.
|
334
|
-
|
335
|
-
## [0.4.
|
336
|
-
|
337
|
-
## [0.4.
|
338
|
-
|
339
|
-
## [0.4.
|
340
|
-
|
341
|
-
## [0.4.
|
342
|
-
|
343
|
-
## [0.4.
|
344
|
-
|
345
|
-
## [0.4.
|
346
|
-
|
347
|
-
## [0.4.
|
348
|
-
|
349
|
-
## [0.4.
|
350
|
-
|
351
|
-
## [0.4.
|
352
|
-
|
353
|
-
## [0.4.
|
354
|
-
|
355
|
-
## [0.4.
|
356
|
-
|
357
|
-
## [0.4.
|
358
|
-
|
359
|
-
## [0.4.
|
360
|
-
|
361
|
-
## [0.4.
|
362
|
-
|
363
|
-
## [0.4.
|
364
|
-
|
365
|
-
## [0.4.
|
366
|
-
|
367
|
-
## [0.4.
|
368
|
-
|
369
|
-
## [0.4.
|
370
|
-
|
371
|
-
## [0.4.
|
372
|
-
|
373
|
-
## [0.4.
|
374
|
-
|
375
|
-
## [0.4.
|
376
|
-
|
377
|
-
## [0.4.
|
378
|
-
|
379
|
-
## [0.4.
|
380
|
-
|
381
|
-
## [0.4.
|
382
|
-
|
383
|
-
## [0.4.
|
384
|
-
|
385
|
-
## [0.4.
|
386
|
-
|
387
|
-
## [0.4.
|
388
|
-
|
389
|
-
## [0.4.
|
390
|
-
|
391
|
-
## [0.4.
|
392
|
-
|
393
|
-
## [0.4.
|
394
|
-
|
395
|
-
## [0.4.
|
396
|
-
|
397
|
-
## [0.4.
|
398
|
-
|
399
|
-
|
400
|
-
|
401
|
-
|
402
|
-
|
403
|
-
## [0.2
|
404
|
-
|
405
|
-
## [0.
|
406
|
-
|
407
|
-
|
408
|
-
|
409
|
-
# [0.
|
410
|
-
|
411
|
-
## [0.
|
412
|
-
|
413
|
-
## [0.
|
414
|
-
|
415
|
-
|
416
|
-
|
417
|
-
|
418
|
-
|
419
|
-
## 0.0.1 (2023-07-
|
5
|
+
## [0.8.65](https://github.com/sonarwatch/portfolio/compare/plugins-0.8.64...plugins-0.8.65) (2023-11-08)
|
6
|
+
|
7
|
+
|
8
|
+
|
9
|
+
## [0.8.64](https://github.com/sonarwatch/portfolio/compare/plugins-0.8.63...plugins-0.8.64) (2023-11-08)
|
10
|
+
|
11
|
+
|
12
|
+
|
13
|
+
## [0.8.63](https://github.com/sonarwatch/portfolio/compare/plugins-0.8.62...plugins-0.8.63) (2023-11-07)
|
14
|
+
|
15
|
+
|
16
|
+
|
17
|
+
## [0.8.62](https://github.com/sonarwatch/portfolio/compare/plugins-0.8.61...plugins-0.8.62) (2023-11-07)
|
18
|
+
|
19
|
+
## [0.8.61](https://github.com/sonarwatch/portfolio/compare/plugins-0.8.60...plugins-0.8.61) (2023-11-07)
|
20
|
+
|
21
|
+
## [0.8.60](https://github.com/sonarwatch/portfolio/compare/plugins-0.8.59...plugins-0.8.60) (2023-11-07)
|
22
|
+
|
23
|
+
## [0.8.59](https://github.com/sonarwatch/portfolio/compare/plugins-0.8.58...plugins-0.8.59) (2023-11-07)
|
24
|
+
|
25
|
+
## [0.8.58](https://github.com/sonarwatch/portfolio/compare/plugins-0.8.57...plugins-0.8.58) (2023-11-07)
|
26
|
+
|
27
|
+
## [0.8.57](https://github.com/sonarwatch/portfolio/compare/plugins-0.8.56...plugins-0.8.57) (2023-11-06)
|
28
|
+
|
29
|
+
## [0.8.56](https://github.com/sonarwatch/portfolio/compare/plugins-0.8.55...plugins-0.8.56) (2023-11-03)
|
30
|
+
|
31
|
+
## [0.8.55](https://github.com/sonarwatch/portfolio/compare/plugins-0.8.54...plugins-0.8.55) (2023-11-03)
|
32
|
+
|
33
|
+
## [0.8.54](https://github.com/sonarwatch/portfolio/compare/plugins-0.8.53...plugins-0.8.54) (2023-11-02)
|
34
|
+
|
35
|
+
## [0.8.53](https://github.com/sonarwatch/portfolio/compare/plugins-0.8.52...plugins-0.8.53) (2023-11-02)
|
36
|
+
|
37
|
+
## [0.8.52](https://github.com/sonarwatch/portfolio/compare/plugins-0.8.51...plugins-0.8.52) (2023-11-01)
|
38
|
+
|
39
|
+
## [0.8.51](https://github.com/sonarwatch/portfolio/compare/plugins-0.8.50...plugins-0.8.51) (2023-11-01)
|
40
|
+
|
41
|
+
## [0.8.50](https://github.com/sonarwatch/portfolio/compare/plugins-0.8.49...plugins-0.8.50) (2023-10-27)
|
42
|
+
|
43
|
+
## [0.8.49](https://github.com/sonarwatch/portfolio/compare/plugins-0.8.48...plugins-0.8.49) (2023-10-26)
|
44
|
+
|
45
|
+
## [0.8.48](https://github.com/sonarwatch/portfolio/compare/plugins-0.8.47...plugins-0.8.48) (2023-10-26)
|
46
|
+
|
47
|
+
### Reverts
|
48
|
+
|
49
|
+
- Revert "upgrade nx" ([62550ba](https://github.com/sonarwatch/portfolio/commit/62550bab2e60d40b8616465843dad4d3ad612bbd))
|
50
|
+
|
51
|
+
## [0.8.47](https://github.com/sonarwatch/portfolio/compare/plugins-0.8.46...plugins-0.8.47) (2023-10-24)
|
52
|
+
|
53
|
+
## [0.8.46](https://github.com/sonarwatch/portfolio/compare/plugins-0.8.45...plugins-0.8.46) (2023-10-24)
|
54
|
+
|
55
|
+
## [0.8.45](https://github.com/sonarwatch/portfolio/compare/plugins-0.8.44...plugins-0.8.45) (2023-10-23)
|
56
|
+
|
57
|
+
## [0.8.44](https://github.com/sonarwatch/portfolio/compare/plugins-0.8.43...plugins-0.8.44) (2023-10-23)
|
58
|
+
|
59
|
+
## [0.8.43](https://github.com/sonarwatch/portfolio/compare/plugins-0.8.42...plugins-0.8.43) (2023-10-23)
|
60
|
+
|
61
|
+
## [0.8.42](https://github.com/sonarwatch/portfolio/compare/plugins-0.8.41...plugins-0.8.42) (2023-10-23)
|
62
|
+
|
63
|
+
## [0.8.41](https://github.com/sonarwatch/portfolio/compare/plugins-0.8.40...plugins-0.8.41) (2023-10-23)
|
64
|
+
|
65
|
+
## [0.8.40](https://github.com/sonarwatch/portfolio/compare/plugins-0.8.39...plugins-0.8.40) (2023-10-23)
|
66
|
+
|
67
|
+
## [0.8.39](https://github.com/sonarwatch/portfolio/compare/plugins-0.8.38...plugins-0.8.39) (2023-10-23)
|
68
|
+
|
69
|
+
## [0.8.38](https://github.com/sonarwatch/portfolio/compare/plugins-0.8.37...plugins-0.8.38) (2023-10-21)
|
70
|
+
|
71
|
+
## [0.8.37](https://github.com/sonarwatch/portfolio/compare/plugins-0.8.36...plugins-0.8.37) (2023-10-21)
|
72
|
+
|
73
|
+
## [0.8.36](https://github.com/sonarwatch/portfolio/compare/plugins-0.8.35...plugins-0.8.36) (2023-10-21)
|
74
|
+
|
75
|
+
## [0.8.35](https://github.com/sonarwatch/portfolio/compare/plugins-0.8.34...plugins-0.8.35) (2023-10-21)
|
76
|
+
|
77
|
+
## [0.8.34](https://github.com/sonarwatch/portfolio/compare/plugins-0.8.33...plugins-0.8.34) (2023-10-20)
|
78
|
+
|
79
|
+
## [0.8.33](https://github.com/sonarwatch/portfolio/compare/plugins-0.8.32...plugins-0.8.33) (2023-10-18)
|
80
|
+
|
81
|
+
## [0.8.32](https://github.com/sonarwatch/portfolio/compare/plugins-0.8.31...plugins-0.8.32) (2023-10-18)
|
82
|
+
|
83
|
+
## [0.8.31](https://github.com/sonarwatch/portfolio/compare/plugins-0.8.30...plugins-0.8.31) (2023-10-18)
|
84
|
+
|
85
|
+
## [0.8.30](https://github.com/sonarwatch/portfolio/compare/plugins-0.8.29...plugins-0.8.30) (2023-10-18)
|
86
|
+
|
87
|
+
## [0.8.29](https://github.com/sonarwatch/portfolio/compare/plugins-0.8.28...plugins-0.8.29) (2023-10-17)
|
88
|
+
|
89
|
+
## [0.8.28](https://github.com/sonarwatch/portfolio/compare/plugins-0.8.27...plugins-0.8.28) (2023-10-17)
|
90
|
+
|
91
|
+
## [0.8.27](https://github.com/sonarwatch/portfolio/compare/plugins-0.8.26...plugins-0.8.27) (2023-10-16)
|
92
|
+
|
93
|
+
## [0.8.26](https://github.com/sonarwatch/portfolio/compare/plugins-0.8.25...plugins-0.8.26) (2023-10-16)
|
94
|
+
|
95
|
+
## [0.8.25](https://github.com/sonarwatch/portfolio/compare/plugins-0.8.24...plugins-0.8.25) (2023-10-16)
|
96
|
+
|
97
|
+
## [0.8.24](https://github.com/sonarwatch/portfolio/compare/plugins-0.8.23...plugins-0.8.24) (2023-10-14)
|
98
|
+
|
99
|
+
## [0.8.23](https://github.com/sonarwatch/portfolio/compare/plugins-0.8.22...plugins-0.8.23) (2023-10-14)
|
100
|
+
|
101
|
+
## [0.8.22](https://github.com/sonarwatch/portfolio/compare/plugins-0.8.21...plugins-0.8.22) (2023-10-14)
|
102
|
+
|
103
|
+
### Reverts
|
104
|
+
|
105
|
+
- Revert "rename" ([ffcf477](https://github.com/sonarwatch/portfolio/commit/ffcf47783e7dcb924c7685a4c7784a2385b526c2))
|
106
|
+
|
107
|
+
## [0.8.21](https://github.com/sonarwatch/portfolio/compare/plugins-0.8.20...plugins-0.8.21) (2023-10-13)
|
108
|
+
|
109
|
+
## [0.8.20](https://github.com/sonarwatch/portfolio/compare/plugins-0.8.19...plugins-0.8.20) (2023-10-13)
|
110
|
+
|
111
|
+
## [0.8.19](https://github.com/sonarwatch/portfolio/compare/plugins-0.8.18...plugins-0.8.19) (2023-10-13)
|
112
|
+
|
113
|
+
## [0.8.18](https://github.com/sonarwatch/portfolio/compare/plugins-0.8.17...plugins-0.8.18) (2023-10-13)
|
114
|
+
|
115
|
+
## [0.8.17](https://github.com/sonarwatch/portfolio/compare/plugins-0.8.16...plugins-0.8.17) (2023-10-13)
|
116
|
+
|
117
|
+
## [0.8.16](https://github.com/sonarwatch/portfolio/compare/plugins-0.8.15...plugins-0.8.16) (2023-10-13)
|
118
|
+
|
119
|
+
## [0.8.15](https://github.com/sonarwatch/portfolio/compare/plugins-0.8.14...plugins-0.8.15) (2023-10-13)
|
120
|
+
|
121
|
+
## [0.8.14](https://github.com/sonarwatch/portfolio/compare/plugins-0.8.13...plugins-0.8.14) (2023-10-13)
|
122
|
+
|
123
|
+
## [0.8.13](https://github.com/sonarwatch/portfolio/compare/plugins-0.8.12...plugins-0.8.13) (2023-10-13)
|
124
|
+
|
125
|
+
## [0.8.12](https://github.com/sonarwatch/portfolio/compare/plugins-0.8.11...plugins-0.8.12) (2023-10-13)
|
126
|
+
|
127
|
+
## [0.8.11](https://github.com/sonarwatch/portfolio/compare/plugins-0.8.10...plugins-0.8.11) (2023-10-13)
|
128
|
+
|
129
|
+
### Reverts
|
130
|
+
|
131
|
+
- Revert "fix" ([75a2d85](https://github.com/sonarwatch/portfolio/commit/75a2d85230c10109f052c903700899308a48e72c))
|
132
|
+
|
133
|
+
## [0.8.10](https://github.com/sonarwatch/portfolio/compare/plugins-0.8.9...plugins-0.8.10) (2023-10-12)
|
134
|
+
|
135
|
+
## [0.8.9](https://github.com/sonarwatch/portfolio/compare/plugins-0.8.8...plugins-0.8.9) (2023-10-12)
|
136
|
+
|
137
|
+
## [0.8.8](https://github.com/sonarwatch/portfolio/compare/plugins-0.8.7...plugins-0.8.8) (2023-10-10)
|
138
|
+
|
139
|
+
## [0.8.7](https://github.com/sonarwatch/portfolio/compare/plugins-0.8.6...plugins-0.8.7) (2023-10-09)
|
140
|
+
|
141
|
+
## [0.8.6](https://github.com/sonarwatch/portfolio/compare/plugins-0.8.5...plugins-0.8.6) (2023-10-08)
|
142
|
+
|
143
|
+
## [0.8.5](https://github.com/sonarwatch/portfolio/compare/plugins-0.8.4...plugins-0.8.5) (2023-10-07)
|
144
|
+
|
145
|
+
## [0.8.4](https://github.com/sonarwatch/portfolio/compare/plugins-0.8.3...plugins-0.8.4) (2023-10-04)
|
146
|
+
|
147
|
+
## [0.8.3](https://github.com/sonarwatch/portfolio/compare/plugins-0.8.2...plugins-0.8.3) (2023-10-03)
|
148
|
+
|
149
|
+
## [0.8.2](https://github.com/sonarwatch/portfolio/compare/plugins-0.8.1...plugins-0.8.2) (2023-09-27)
|
150
|
+
|
151
|
+
## [0.8.1](https://github.com/sonarwatch/portfolio/compare/plugins-0.8.0...plugins-0.8.1) (2023-09-27)
|
152
|
+
|
153
|
+
# [0.8.0](https://github.com/sonarwatch/portfolio/compare/plugins-0.7.16...plugins-0.8.0) (2023-09-18)
|
154
|
+
|
155
|
+
## [0.7.16](https://github.com/sonarwatch/portfolio/compare/plugins-0.7.15...plugins-0.7.16) (2023-09-13)
|
156
|
+
|
157
|
+
## [0.7.15](https://github.com/sonarwatch/portfolio/compare/plugins-0.7.14...plugins-0.7.15) (2023-09-12)
|
158
|
+
|
159
|
+
## [0.7.14](https://github.com/sonarwatch/portfolio/compare/plugins-0.7.13...plugins-0.7.14) (2023-09-08)
|
160
|
+
|
161
|
+
## [0.7.13](https://github.com/sonarwatch/portfolio/compare/plugins-0.7.12...plugins-0.7.13) (2023-09-06)
|
162
|
+
|
163
|
+
## [0.7.12](https://github.com/sonarwatch/portfolio/compare/plugins-0.7.11...plugins-0.7.12) (2023-09-06)
|
164
|
+
|
165
|
+
## [0.7.11](https://github.com/sonarwatch/portfolio/compare/plugins-0.7.10...plugins-0.7.11) (2023-09-06)
|
166
|
+
|
167
|
+
## [0.7.10](https://github.com/sonarwatch/portfolio/compare/plugins-0.7.9...plugins-0.7.10) (2023-09-05)
|
168
|
+
|
169
|
+
## [0.7.9](https://github.com/sonarwatch/portfolio/compare/plugins-0.7.8...plugins-0.7.9) (2023-09-05)
|
170
|
+
|
171
|
+
## [0.7.8](https://github.com/sonarwatch/portfolio/compare/plugins-0.7.7...plugins-0.7.8) (2023-09-05)
|
172
|
+
|
173
|
+
## [0.7.7](https://github.com/sonarwatch/portfolio/compare/plugins-0.7.6...plugins-0.7.7) (2023-09-05)
|
174
|
+
|
175
|
+
## [0.7.6](https://github.com/sonarwatch/portfolio/compare/plugins-0.7.5...plugins-0.7.6) (2023-09-05)
|
176
|
+
|
177
|
+
## [0.7.5](https://github.com/sonarwatch/portfolio/compare/plugins-0.7.4...plugins-0.7.5) (2023-09-05)
|
178
|
+
|
179
|
+
## [0.7.4](https://github.com/sonarwatch/portfolio/compare/plugins-0.7.3...plugins-0.7.4) (2023-09-05)
|
180
|
+
|
181
|
+
## [0.7.3](https://github.com/sonarwatch/portfolio/compare/plugins-0.7.2...plugins-0.7.3) (2023-09-04)
|
182
|
+
|
183
|
+
## [0.7.2](https://github.com/sonarwatch/portfolio/compare/plugins-0.7.1...plugins-0.7.2) (2023-08-31)
|
184
|
+
|
185
|
+
## [0.7.1](https://github.com/sonarwatch/portfolio/compare/plugins-0.7.0...plugins-0.7.1) (2023-08-30)
|
186
|
+
|
187
|
+
# [0.7.0](https://github.com/sonarwatch/portfolio/compare/plugins-0.6.9...plugins-0.7.0) (2023-08-30)
|
188
|
+
|
189
|
+
## [0.6.9](https://github.com/sonarwatch/portfolio/compare/plugins-0.6.8...plugins-0.6.9) (2023-08-29)
|
190
|
+
|
191
|
+
## [0.6.8](https://github.com/sonarwatch/portfolio/compare/plugins-0.6.7...plugins-0.6.8) (2023-08-28)
|
192
|
+
|
193
|
+
## [0.6.7](https://github.com/sonarwatch/portfolio/compare/plugins-0.6.6...plugins-0.6.7) (2023-08-25)
|
194
|
+
|
195
|
+
## [0.6.6](https://github.com/sonarwatch/portfolio/compare/plugins-0.6.5...plugins-0.6.6) (2023-08-25)
|
196
|
+
|
197
|
+
## [0.6.5](https://github.com/sonarwatch/portfolio/compare/plugins-0.6.4...plugins-0.6.5) (2023-08-23)
|
198
|
+
|
199
|
+
## [0.6.4](https://github.com/sonarwatch/portfolio/compare/plugins-0.6.3...plugins-0.6.4) (2023-08-21)
|
200
|
+
|
201
|
+
## [0.6.3](https://github.com/sonarwatch/portfolio/compare/plugins-0.6.2...plugins-0.6.3) (2023-08-21)
|
202
|
+
|
203
|
+
## [0.6.2](https://github.com/sonarwatch/portfolio/compare/plugins-0.6.1...plugins-0.6.2) (2023-08-18)
|
204
|
+
|
205
|
+
## [0.6.1](https://github.com/sonarwatch/portfolio/compare/plugins-0.6.0...plugins-0.6.1) (2023-08-18)
|
206
|
+
|
207
|
+
# [0.6.0](https://github.com/sonarwatch/portfolio/compare/plugins-0.5.51...plugins-0.6.0) (2023-08-18)
|
208
|
+
|
209
|
+
## [0.5.51](https://github.com/sonarwatch/portfolio/compare/plugins-0.5.50...plugins-0.5.51) (2023-08-17)
|
210
|
+
|
211
|
+
## [0.5.50](https://github.com/sonarwatch/portfolio/compare/plugins-0.5.49...plugins-0.5.50) (2023-08-17)
|
212
|
+
|
213
|
+
## [0.5.49](https://github.com/sonarwatch/portfolio/compare/plugins-0.5.48...plugins-0.5.49) (2023-08-17)
|
214
|
+
|
215
|
+
## [0.5.48](https://github.com/sonarwatch/portfolio/compare/plugins-0.5.47...plugins-0.5.48) (2023-08-17)
|
216
|
+
|
217
|
+
## [0.5.47](https://github.com/sonarwatch/portfolio/compare/plugins-0.5.46...plugins-0.5.47) (2023-08-17)
|
218
|
+
|
219
|
+
## [0.5.46](https://github.com/sonarwatch/portfolio/compare/plugins-0.5.45...plugins-0.5.46) (2023-08-17)
|
220
|
+
|
221
|
+
## [0.5.45](https://github.com/sonarwatch/portfolio/compare/plugins-0.5.44...plugins-0.5.45) (2023-08-17)
|
222
|
+
|
223
|
+
## [0.5.44](https://github.com/sonarwatch/portfolio/compare/plugins-0.5.43...plugins-0.5.44) (2023-08-16)
|
224
|
+
|
225
|
+
## [0.5.43](https://github.com/sonarwatch/portfolio/compare/plugins-0.5.42...plugins-0.5.43) (2023-08-16)
|
226
|
+
|
227
|
+
## [0.5.42](https://github.com/sonarwatch/portfolio/compare/plugins-0.5.41...plugins-0.5.42) (2023-08-14)
|
228
|
+
|
229
|
+
## [0.5.41](https://github.com/sonarwatch/portfolio/compare/plugins-0.5.40...plugins-0.5.41) (2023-08-14)
|
230
|
+
|
231
|
+
## [0.5.40](https://github.com/sonarwatch/portfolio/compare/plugins-0.5.39...plugins-0.5.40) (2023-08-14)
|
232
|
+
|
233
|
+
## [0.5.39](https://github.com/sonarwatch/portfolio/compare/plugins-0.5.38...plugins-0.5.39) (2023-08-14)
|
234
|
+
|
235
|
+
## [0.5.38](https://github.com/sonarwatch/portfolio/compare/plugins-0.5.37...plugins-0.5.38) (2023-08-14)
|
236
|
+
|
237
|
+
## [0.5.37](https://github.com/sonarwatch/portfolio/compare/plugins-0.5.36...plugins-0.5.37) (2023-08-14)
|
238
|
+
|
239
|
+
## [0.5.36](https://github.com/sonarwatch/portfolio/compare/plugins-0.5.35...plugins-0.5.36) (2023-08-14)
|
240
|
+
|
241
|
+
## [0.5.35](https://github.com/sonarwatch/portfolio/compare/plugins-0.5.34...plugins-0.5.35) (2023-08-14)
|
242
|
+
|
243
|
+
## [0.5.34](https://github.com/sonarwatch/portfolio/compare/plugins-0.5.33...plugins-0.5.34) (2023-08-14)
|
244
|
+
|
245
|
+
## [0.5.33](https://github.com/sonarwatch/portfolio/compare/plugins-0.5.32...plugins-0.5.33) (2023-08-14)
|
246
|
+
|
247
|
+
## [0.5.32](https://github.com/sonarwatch/portfolio/compare/plugins-0.5.31...plugins-0.5.32) (2023-08-14)
|
248
|
+
|
249
|
+
## [0.5.31](https://github.com/sonarwatch/portfolio/compare/plugins-0.5.30...plugins-0.5.31) (2023-08-14)
|
250
|
+
|
251
|
+
## [0.5.30](https://github.com/sonarwatch/portfolio/compare/plugins-0.5.29...plugins-0.5.30) (2023-08-12)
|
252
|
+
|
253
|
+
## [0.5.29](https://github.com/sonarwatch/portfolio/compare/plugins-0.5.28...plugins-0.5.29) (2023-08-11)
|
254
|
+
|
255
|
+
## [0.5.28](https://github.com/sonarwatch/portfolio/compare/plugins-0.5.27...plugins-0.5.28) (2023-08-11)
|
256
|
+
|
257
|
+
## [0.5.27](https://github.com/sonarwatch/portfolio/compare/plugins-0.5.26...plugins-0.5.27) (2023-08-11)
|
258
|
+
|
259
|
+
## [0.5.26](https://github.com/sonarwatch/portfolio/compare/plugins-0.5.25...plugins-0.5.26) (2023-08-10)
|
260
|
+
|
261
|
+
## [0.5.25](https://github.com/sonarwatch/portfolio/compare/plugins-0.5.24...plugins-0.5.25) (2023-08-10)
|
262
|
+
|
263
|
+
## [0.5.24](https://github.com/sonarwatch/portfolio/compare/plugins-0.5.23...plugins-0.5.24) (2023-08-10)
|
264
|
+
|
265
|
+
## [0.5.23](https://github.com/sonarwatch/portfolio/compare/plugins-0.5.22...plugins-0.5.23) (2023-08-10)
|
266
|
+
|
267
|
+
## [0.5.22](https://github.com/sonarwatch/portfolio/compare/plugins-0.5.21...plugins-0.5.22) (2023-08-08)
|
268
|
+
|
269
|
+
## [0.5.21](https://github.com/sonarwatch/portfolio/compare/plugins-0.5.20...plugins-0.5.21) (2023-08-07)
|
270
|
+
|
271
|
+
## [0.5.20](https://github.com/sonarwatch/portfolio/compare/plugins-0.5.19...plugins-0.5.20) (2023-08-03)
|
272
|
+
|
273
|
+
## [0.5.19](https://github.com/sonarwatch/portfolio/compare/plugins-0.5.18...plugins-0.5.19) (2023-08-03)
|
274
|
+
|
275
|
+
## [0.5.18](https://github.com/sonarwatch/portfolio/compare/plugins-0.5.17...plugins-0.5.18) (2023-08-03)
|
276
|
+
|
277
|
+
## [0.5.17](https://github.com/sonarwatch/portfolio/compare/plugins-0.5.16...plugins-0.5.17) (2023-08-03)
|
278
|
+
|
279
|
+
## [0.5.16](https://github.com/sonarwatch/portfolio/compare/plugins-0.5.15...plugins-0.5.16) (2023-08-02)
|
280
|
+
|
281
|
+
## [0.5.15](https://github.com/sonarwatch/portfolio/compare/plugins-0.5.14...plugins-0.5.15) (2023-08-02)
|
282
|
+
|
283
|
+
## [0.5.14](https://github.com/sonarwatch/portfolio/compare/plugins-0.5.13...plugins-0.5.14) (2023-08-02)
|
284
|
+
|
285
|
+
## [0.5.13](https://github.com/sonarwatch/portfolio/compare/plugins-0.5.12...plugins-0.5.13) (2023-08-02)
|
286
|
+
|
287
|
+
## [0.5.12](https://github.com/sonarwatch/portfolio/compare/plugins-0.5.11...plugins-0.5.12) (2023-08-02)
|
288
|
+
|
289
|
+
## [0.5.11](https://github.com/sonarwatch/portfolio/compare/plugins-0.5.10...plugins-0.5.11) (2023-08-02)
|
290
|
+
|
291
|
+
## [0.5.10](https://github.com/sonarwatch/portfolio/compare/plugins-0.5.9...plugins-0.5.10) (2023-08-02)
|
292
|
+
|
293
|
+
## [0.5.9](https://github.com/sonarwatch/portfolio/compare/plugins-0.5.8...plugins-0.5.9) (2023-07-31)
|
294
|
+
|
295
|
+
## [0.5.8](https://github.com/sonarwatch/portfolio/compare/plugins-0.5.7...plugins-0.5.8) (2023-07-27)
|
296
|
+
|
297
|
+
## [0.5.7](https://github.com/sonarwatch/portfolio/compare/plugins-0.5.6...plugins-0.5.7) (2023-07-27)
|
298
|
+
|
299
|
+
## [0.5.6](https://github.com/sonarwatch/portfolio/compare/plugins-0.5.5...plugins-0.5.6) (2023-07-24)
|
300
|
+
|
301
|
+
## [0.5.5](https://github.com/sonarwatch/portfolio/compare/plugins-0.5.4...plugins-0.5.5) (2023-07-21)
|
302
|
+
|
303
|
+
## [0.5.4](https://github.com/sonarwatch/portfolio/compare/plugins-0.5.3...plugins-0.5.4) (2023-07-21)
|
304
|
+
|
305
|
+
## [0.5.3](https://github.com/sonarwatch/portfolio/compare/plugins-0.5.2...plugins-0.5.3) (2023-07-20)
|
306
|
+
|
307
|
+
## [0.5.2](https://github.com/sonarwatch/portfolio/compare/plugins-0.5.1...plugins-0.5.2) (2023-07-20)
|
308
|
+
|
309
|
+
## [0.5.1](https://github.com/sonarwatch/portfolio/compare/plugins-0.5.0...plugins-0.5.1) (2023-07-20)
|
310
|
+
|
311
|
+
# [0.5.0](https://github.com/sonarwatch/portfolio/compare/plugins-0.4.47...plugins-0.5.0) (2023-07-20)
|
312
|
+
|
313
|
+
## [0.4.47](https://github.com/sonarwatch/portfolio/compare/plugins-0.4.46...plugins-0.4.47) (2023-07-19)
|
314
|
+
|
315
|
+
## [0.4.46](https://github.com/sonarwatch/portfolio/compare/plugins-0.4.45...plugins-0.4.46) (2023-07-18)
|
316
|
+
|
317
|
+
## [0.4.45](https://github.com/sonarwatch/portfolio/compare/plugins-0.4.44...plugins-0.4.45) (2023-07-17)
|
318
|
+
|
319
|
+
## [0.4.44](https://github.com/sonarwatch/portfolio/compare/plugins-0.4.43...plugins-0.4.44) (2023-07-17)
|
320
|
+
|
321
|
+
## [0.4.43](https://github.com/sonarwatch/portfolio/compare/plugins-0.4.42...plugins-0.4.43) (2023-07-16)
|
322
|
+
|
323
|
+
## [0.4.42](https://github.com/sonarwatch/portfolio/compare/plugins-0.4.41...plugins-0.4.42) (2023-07-16)
|
324
|
+
|
325
|
+
## [0.4.41](https://github.com/sonarwatch/portfolio/compare/plugins-0.4.40...plugins-0.4.41) (2023-07-16)
|
326
|
+
|
327
|
+
## [0.4.40](https://github.com/sonarwatch/portfolio/compare/plugins-0.4.39...plugins-0.4.40) (2023-07-16)
|
328
|
+
|
329
|
+
## [0.4.39](https://github.com/sonarwatch/portfolio/compare/plugins-0.4.38...plugins-0.4.39) (2023-07-16)
|
330
|
+
|
331
|
+
## [0.4.38](https://github.com/sonarwatch/portfolio/compare/plugins-0.4.37...plugins-0.4.38) (2023-07-16)
|
332
|
+
|
333
|
+
## [0.4.37](https://github.com/sonarwatch/portfolio/compare/plugins-0.4.36...plugins-0.4.37) (2023-07-16)
|
334
|
+
|
335
|
+
## [0.4.36](https://github.com/sonarwatch/portfolio/compare/plugins-0.4.35...plugins-0.4.36) (2023-07-16)
|
336
|
+
|
337
|
+
## [0.4.35](https://github.com/sonarwatch/portfolio/compare/plugins-0.4.34...plugins-0.4.35) (2023-07-14)
|
338
|
+
|
339
|
+
## [0.4.34](https://github.com/sonarwatch/portfolio/compare/plugins-0.4.33...plugins-0.4.34) (2023-07-14)
|
340
|
+
|
341
|
+
## [0.4.33](https://github.com/sonarwatch/portfolio/compare/plugins-0.4.32...plugins-0.4.33) (2023-07-13)
|
342
|
+
|
343
|
+
## [0.4.32](https://github.com/sonarwatch/portfolio/compare/plugins-0.4.31...plugins-0.4.32) (2023-07-13)
|
344
|
+
|
345
|
+
## [0.4.31](https://github.com/sonarwatch/portfolio/compare/plugins-0.4.30...plugins-0.4.31) (2023-07-13)
|
346
|
+
|
347
|
+
## [0.4.30](https://github.com/sonarwatch/portfolio/compare/plugins-0.4.29...plugins-0.4.30) (2023-07-13)
|
348
|
+
|
349
|
+
## [0.4.29](https://github.com/sonarwatch/portfolio/compare/plugins-0.4.28...plugins-0.4.29) (2023-07-13)
|
350
|
+
|
351
|
+
## [0.4.28](https://github.com/sonarwatch/portfolio/compare/plugins-0.4.27...plugins-0.4.28) (2023-07-13)
|
352
|
+
|
353
|
+
## [0.4.27](https://github.com/sonarwatch/portfolio/compare/plugins-0.4.26...plugins-0.4.27) (2023-07-13)
|
354
|
+
|
355
|
+
## [0.4.26](https://github.com/sonarwatch/portfolio/compare/plugins-0.4.25...plugins-0.4.26) (2023-07-13)
|
356
|
+
|
357
|
+
## [0.4.25](https://github.com/sonarwatch/portfolio/compare/plugins-0.4.24...plugins-0.4.25) (2023-07-13)
|
358
|
+
|
359
|
+
## [0.4.24](https://github.com/sonarwatch/portfolio/compare/plugins-0.4.23...plugins-0.4.24) (2023-07-12)
|
360
|
+
|
361
|
+
## [0.4.23](https://github.com/sonarwatch/portfolio/compare/plugins-0.4.22...plugins-0.4.23) (2023-07-12)
|
362
|
+
|
363
|
+
## [0.4.22](https://github.com/sonarwatch/portfolio/compare/plugins-0.4.21...plugins-0.4.22) (2023-07-12)
|
364
|
+
|
365
|
+
## [0.4.21](https://github.com/sonarwatch/portfolio/compare/plugins-0.4.20...plugins-0.4.21) (2023-07-12)
|
366
|
+
|
367
|
+
## [0.4.20](https://github.com/sonarwatch/portfolio/compare/plugins-0.4.19...plugins-0.4.20) (2023-07-10)
|
368
|
+
|
369
|
+
## [0.4.19](https://github.com/sonarwatch/portfolio/compare/plugins-0.4.18...plugins-0.4.19) (2023-07-10)
|
370
|
+
|
371
|
+
## [0.4.18](https://github.com/sonarwatch/portfolio/compare/plugins-0.4.17...plugins-0.4.18) (2023-07-09)
|
372
|
+
|
373
|
+
## [0.4.17](https://github.com/sonarwatch/portfolio/compare/plugins-0.4.16...plugins-0.4.17) (2023-07-09)
|
374
|
+
|
375
|
+
## [0.4.16](https://github.com/sonarwatch/portfolio/compare/plugins-0.4.15...plugins-0.4.16) (2023-07-09)
|
376
|
+
|
377
|
+
## [0.4.15](https://github.com/sonarwatch/portfolio/compare/plugins-0.4.14...plugins-0.4.15) (2023-07-09)
|
378
|
+
|
379
|
+
## [0.4.14](https://github.com/sonarwatch/portfolio/compare/plugins-0.4.13...plugins-0.4.14) (2023-07-09)
|
380
|
+
|
381
|
+
## [0.4.13](https://github.com/sonarwatch/portfolio/compare/plugins-0.4.12...plugins-0.4.13) (2023-07-09)
|
382
|
+
|
383
|
+
## [0.4.12](https://github.com/sonarwatch/portfolio/compare/plugins-0.4.11...plugins-0.4.12) (2023-07-08)
|
384
|
+
|
385
|
+
## [0.4.11](https://github.com/sonarwatch/portfolio/compare/plugins-0.4.10...plugins-0.4.11) (2023-07-08)
|
386
|
+
|
387
|
+
## [0.4.10](https://github.com/sonarwatch/portfolio/compare/plugins-0.4.9...plugins-0.4.10) (2023-07-08)
|
388
|
+
|
389
|
+
## [0.4.9](https://github.com/sonarwatch/portfolio/compare/plugins-0.4.8...plugins-0.4.9) (2023-07-08)
|
390
|
+
|
391
|
+
## [0.4.8](https://github.com/sonarwatch/portfolio/compare/plugins-0.4.7...plugins-0.4.8) (2023-07-08)
|
392
|
+
|
393
|
+
## [0.4.7](https://github.com/sonarwatch/portfolio/compare/plugins-0.4.6...plugins-0.4.7) (2023-07-08)
|
394
|
+
|
395
|
+
## [0.4.6](https://github.com/sonarwatch/portfolio/compare/plugins-0.4.5...plugins-0.4.6) (2023-07-08)
|
396
|
+
|
397
|
+
## [0.4.5](https://github.com/sonarwatch/portfolio/compare/plugins-0.4.4...plugins-0.4.5) (2023-07-08)
|
398
|
+
|
399
|
+
## [0.4.4](https://github.com/sonarwatch/portfolio/compare/plugins-0.4.3...plugins-0.4.4) (2023-07-08)
|
400
|
+
|
401
|
+
## [0.4.3](https://github.com/sonarwatch/portfolio/compare/plugins-0.4.2...plugins-0.4.3) (2023-07-08)
|
402
|
+
|
403
|
+
## [0.4.2](https://github.com/sonarwatch/portfolio/compare/plugins-0.4.1...plugins-0.4.2) (2023-07-07)
|
404
|
+
|
405
|
+
## [0.4.1](https://github.com/sonarwatch/portfolio/compare/plugins-0.4.0...plugins-0.4.1) (2023-07-07)
|
406
|
+
|
407
|
+
# [0.4.0](https://github.com/sonarwatch/portfolio/compare/plugins-0.3.0...plugins-0.4.0) (2023-07-07)
|
408
|
+
|
409
|
+
# [0.3.0](https://github.com/sonarwatch/portfolio/compare/plugins-0.2.3...plugins-0.3.0) (2023-07-07)
|
410
|
+
|
411
|
+
## [0.2.3](https://github.com/sonarwatch/portfolio/compare/plugins-0.2.2...plugins-0.2.3) (2023-07-07)
|
412
|
+
|
413
|
+
## [0.2.2](https://github.com/sonarwatch/portfolio/compare/plugins-0.2.1...plugins-0.2.2) (2023-07-06)
|
414
|
+
|
415
|
+
## [0.2.1](https://github.com/sonarwatch/portfolio/compare/plugins-0.2.0...plugins-0.2.1) (2023-07-06)
|
416
|
+
|
417
|
+
# [0.2.0](https://github.com/sonarwatch/portfolio/compare/plugins-0.1.2...plugins-0.2.0) (2023-07-06)
|
418
|
+
|
419
|
+
## [0.1.2](https://github.com/sonarwatch/portfolio/compare/plugins-0.1.1...plugins-0.1.2) (2023-07-06)
|
420
|
+
|
421
|
+
## [0.1.1](https://github.com/sonarwatch/portfolio/compare/plugins-0.1.0...plugins-0.1.1) (2023-07-04)
|
422
|
+
|
423
|
+
# [0.1.0](https://github.com/sonarwatch/portfolio/compare/plugins-0.0.2...plugins-0.1.0) (2023-07-04)
|
424
|
+
|
425
|
+
## [0.0.2](https://github.com/sonarwatch/portfolio/compare/plugins-0.0.1...plugins-0.0.2) (2023-07-04)
|
426
|
+
|
427
|
+
## 0.0.1 (2023-07-04)
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@sonarwatch/portfolio-plugins",
|
3
|
-
"version": "0.8.
|
3
|
+
"version": "0.8.65",
|
4
4
|
"type": "commonjs",
|
5
5
|
"generators": "./generators.json",
|
6
6
|
"dependencies": {
|
@@ -39,7 +39,7 @@
|
|
39
39
|
"web3-v1": "npm:web3@^1.5.0"
|
40
40
|
},
|
41
41
|
"peerDependencies": {
|
42
|
-
"@sonarwatch/portfolio-core": "0.8.
|
42
|
+
"@sonarwatch/portfolio-core": "0.8.65"
|
43
43
|
},
|
44
44
|
"main": "./src/index.js",
|
45
45
|
"types": "./src/index.d.ts"
|
@@ -19,6 +19,7 @@ const clients_1 = require("../../utils/clients");
|
|
19
19
|
const abis_1 = require("./abis");
|
20
20
|
const constants_2 = require("../../utils/misc/constants");
|
21
21
|
const tokenPriceToAssetToken_1 = __importDefault(require("../../utils/misc/tokenPriceToAssetToken"));
|
22
|
+
const erc20Abi_1 = require("../../utils/evm/erc20Abi");
|
22
23
|
function getPositionsV3Fetcher(networkId) {
|
23
24
|
const executor = (owner, cache) => __awaiter(this, void 0, void 0, function* () {
|
24
25
|
const markets = constants_1.marketDetails.get(networkId);
|
@@ -34,6 +35,16 @@ function getPositionsV3Fetcher(networkId) {
|
|
34
35
|
args: [owner, asset.address],
|
35
36
|
})))
|
36
37
|
.flat();
|
38
|
+
const userBaseCollateralContracts = markets.map((m) => ({
|
39
|
+
abi: erc20Abi_1.balanceOfErc20ABI,
|
40
|
+
functionName: 'balanceOf',
|
41
|
+
address: m.cometAddress,
|
42
|
+
args: [owner],
|
43
|
+
}));
|
44
|
+
const userBaseCollateralResponses = yield client.multicall({
|
45
|
+
contracts: userBaseCollateralContracts,
|
46
|
+
});
|
47
|
+
const isBaseSupplyNotZero = userBaseCollateralResponses.some((r) => r.status === 'success' && r.result !== constants_2.zeroBigInt);
|
37
48
|
const userCollateralResponses = yield client.multicall({
|
38
49
|
contracts: userCollateralContracts,
|
39
50
|
});
|
@@ -50,7 +61,7 @@ function getPositionsV3Fetcher(networkId) {
|
|
50
61
|
contracts: borrowBalanceOfContracts,
|
51
62
|
});
|
52
63
|
const isBorrowNotZero = borrowBalanceOfResponses.some((r) => r.status === 'success' && r.result !== constants_2.zeroBigInt);
|
53
|
-
if (!isSupplyNotZero && !isBorrowNotZero)
|
64
|
+
if (!isSupplyNotZero && !isBorrowNotZero && !isBaseSupplyNotZero)
|
54
65
|
return [];
|
55
66
|
const tokenPrices = yield cache.getItem(constants_1.comethTokenPricesPrefix, {
|
56
67
|
prefix: constants_1.platformId,
|
@@ -94,6 +105,15 @@ function getPositionsV3Fetcher(networkId) {
|
|
94
105
|
suppliedAssets.push(asset);
|
95
106
|
suppliedYields.push([]);
|
96
107
|
}
|
108
|
+
const userBaseCollateralResponse = userBaseCollateralResponses[i];
|
109
|
+
if (userBaseCollateralResponse.status !== 'failure') {
|
110
|
+
const amount = new bignumber_js_1.default(userBaseCollateralResponse.result.toString())
|
111
|
+
.dividedBy(Math.pow(10, marketDetail.baseAssetDecimals))
|
112
|
+
.toNumber();
|
113
|
+
const baseAsset = (0, tokenPriceToAssetToken_1.default)(marketDetail.baseAssetAddress, amount, networkId, tokenPrices[marketDetail.baseAssetAddress]);
|
114
|
+
suppliedAssets.push(baseAsset);
|
115
|
+
suppliedYields.push([]);
|
116
|
+
}
|
97
117
|
if (borrowedAssets.length === 0 &&
|
98
118
|
suppliedAssets.length === 0 &&
|
99
119
|
rewardAssets.length === 0)
|
@@ -101,7 +121,7 @@ function getPositionsV3Fetcher(networkId) {
|
|
101
121
|
const { borrowedValue, collateralRatio, suppliedValue, value } = (0, portfolio_core_1.getElementLendingValues)(suppliedAssets, borrowedAssets, rewardAssets);
|
102
122
|
elements.push({
|
103
123
|
type: portfolio_core_1.PortfolioElementType.borrowlend,
|
104
|
-
networkId
|
124
|
+
networkId,
|
105
125
|
platformId: constants_1.platformId,
|
106
126
|
label: 'Lending',
|
107
127
|
name: 'Compound V3',
|
@@ -123,7 +143,7 @@ function getPositionsV3Fetcher(networkId) {
|
|
123
143
|
});
|
124
144
|
return {
|
125
145
|
id: `${constants_1.platformId}-${networkId}-positions-v3`,
|
126
|
-
networkId
|
146
|
+
networkId,
|
127
147
|
executor,
|
128
148
|
};
|
129
149
|
}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"getPositionsV3Fetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/compound/getPositionsV3Fetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+
|
1
|
+
{"version":3,"file":"getPositionsV3Fetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/compound/getPositionsV3Fetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DAQoC;AACpC,gEAAqC;AAErC,2CAIqB;AAErB,iDAAmD;AACnD,iCAAmC;AAEnC,0DAAwD;AACxD,qGAA6E;AAC7E,uDAA6D;AAE7D,SAAwB,qBAAqB,CAC3C,SAA2B;IAE3B,MAAM,QAAQ,GAAoB,CAAO,KAAa,EAAE,KAAY,EAAE,EAAE;QACtE,MAAM,OAAO,GAAG,yBAAa,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;QAC7C,IAAI,CAAC,OAAO;YAAE,OAAO,EAAE,CAAC;QACxB,MAAM,MAAM,GAAG,IAAA,sBAAY,EAAC,SAAS,CAAC,CAAC;QAEvC,SAAS;QACT,MAAM,uBAAuB,GAAG,OAAO;aACpC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CACT,CAAC,CAAC,MAAM,CAAC,GAAG,CACV,CAAC,KAAK,EAAE,EAAE,CACR,CAAC;YACC,GAAG,EAAE,gBAAS;YACd,OAAO,EAAE,CAAC,CAAC,YAAY;YACvB,YAAY,EAAE,gBAAgB;YAC9B,IAAI,EAAE,CAAC,KAAsB,EAAE,KAAK,CAAC,OAAO,CAAC;SACpC,CAAA,CACd,CACF;aACA,IAAI,EAAE,CAAC;QAEV,MAAM,2BAA2B,GAAG,OAAO,CAAC,GAAG,CAC7C,CAAC,CAAC,EAAE,EAAE,CACJ,CAAC;YACC,GAAG,EAAE,4BAAiB;YACtB,YAAY,EAAE,WAAW;YACzB,OAAO,EAAE,CAAC,CAAC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CAAC;gBAC/B,cAAc,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;aACzB;YAED,IACE,cAAc,CAAC,MAAM,KAAK,CAAC;gBAC3B,cAAc,CAAC,MAAM,KAAK,CAAC;gBAC3B,YAAY,CAAC,MAAM,KAAK,CAAC;gBAEzB,SAAS;YACX,MAAM,EAAE,aAAa,EAAE,eAAe,EAAE,aAAa,EAAE,KAAK,EAAE,GAC5D,IAAA,wCAAuB,EAAC,cAAc,EAAE,cAAc,EAAE,YAAY,CAAC,CAAC;YACxE,QAAQ,CAAC,IAAI,CAAC;gBACZ,IAAI,EAAE,qCAAoB,CAAC,UAAU;gBACrC,SAAS;gBACT,UAAU,EAAV,sBAAU;gBACV,KAAK,EAAE,SAAS;gBAChB,IAAI,EAAE,aAAa;gBACnB,KAAK;gBACL,IAAI,EAAE;oBACJ,cAAc;oBACd,aAAa;oBACb,cAAc;oBACd,cAAc;oBACd,aAAa;oBACb,cAAc;oBACd,eAAe;oBACf,YAAY;oBACZ,KAAK;iBACN;aACF,CAAC,CAAC;SACJ;QACD,OAAO,QAAQ,CAAC;IAClB,CAAC,CAAA,CAAC;IAEF,OAAO;QACL,EAAE,EAAE,GAAG,sBAAU,IAAI,SAAS,eAAe;QAC7C,SAAS;QACT,QAAQ;KACT,CAAC;AACJ,CAAC;AArLD,wCAqLC"}
|
@@ -1,4 +1,5 @@
|
|
1
1
|
import BigNumber from 'bignumber.js';
|
2
|
+
import { PublicKey } from '@solana/web3.js';
|
2
3
|
import { SpotBalanceType, SpotMarket, SpotPosition } from './struct';
|
3
4
|
export declare const ZERO: BigNumber;
|
4
5
|
export declare const ONE: BigNumber;
|
@@ -20,3 +21,6 @@ export declare function calculateDepositRate(bank: SpotMarket): BigNumber;
|
|
20
21
|
export declare function calculateInterestRate(bank: SpotMarket, delta?: BigNumber): BigNumber;
|
21
22
|
export declare function isSpotPositionAvailable(position: SpotPosition): boolean;
|
22
23
|
export declare function decodeName(bytes: number[]): string;
|
24
|
+
export declare function getUserAccountPublicKey(programId: PublicKey, owner: PublicKey, subAccountId: number): PublicKey;
|
25
|
+
export declare function getUserMainAccountPublicKey(programId: PublicKey, owner: PublicKey): PublicKey;
|
26
|
+
export declare function getUserAccountsPublicKeys(programId: PublicKey, owner: PublicKey, startId: number, endId: number): PublicKey[];
|
@@ -3,8 +3,10 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
4
4
|
};
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
6
|
-
exports.decodeName = exports.isSpotPositionAvailable = exports.calculateInterestRate = exports.calculateDepositRate = exports.calculateBorrowRate = exports.calculateUtilization = exports.getSignedTokenAmount = exports.getTokenAmount = exports.divCeil = exports.CONCENTRATION_PRECISION = exports.PERCENTAGE_PRECISION = exports.PERCENTAGE_PRECISION_EXP = exports.SPOT_MARKET_RATE_PRECISION = exports.SPOT_MARKET_RATE_PRECISION_EXP = exports.SPOT_MARKET_UTILIZATION_PRECISION = exports.SPOT_MARKET_UTILIZATION_PRECISION_EXP = exports.QUOTE_SPOT_MARKET_INDEX = exports.TEN = exports.ONE = exports.ZERO = void 0;
|
6
|
+
exports.getUserAccountsPublicKeys = exports.getUserMainAccountPublicKey = exports.getUserAccountPublicKey = exports.decodeName = exports.isSpotPositionAvailable = exports.calculateInterestRate = exports.calculateDepositRate = exports.calculateBorrowRate = exports.calculateUtilization = exports.getSignedTokenAmount = exports.getTokenAmount = exports.divCeil = exports.CONCENTRATION_PRECISION = exports.PERCENTAGE_PRECISION = exports.PERCENTAGE_PRECISION_EXP = exports.SPOT_MARKET_RATE_PRECISION = exports.SPOT_MARKET_RATE_PRECISION_EXP = exports.SPOT_MARKET_UTILIZATION_PRECISION = exports.SPOT_MARKET_UTILIZATION_PRECISION_EXP = exports.QUOTE_SPOT_MARKET_INDEX = exports.TEN = exports.ONE = exports.ZERO = void 0;
|
7
7
|
const bignumber_js_1 = __importDefault(require("bignumber.js"));
|
8
|
+
const web3_js_1 = require("@solana/web3.js");
|
9
|
+
const bn_js_1 = require("bn.js");
|
8
10
|
const struct_1 = require("./struct");
|
9
11
|
exports.ZERO = new bignumber_js_1.default(0);
|
10
12
|
exports.ONE = new bignumber_js_1.default(1);
|
@@ -114,4 +116,28 @@ function decodeName(bytes) {
|
|
114
116
|
return buffer.toString('utf8').trim();
|
115
117
|
}
|
116
118
|
exports.decodeName = decodeName;
|
119
|
+
function getUserAccountPublicKey(programId, owner, subAccountId) {
|
120
|
+
return web3_js_1.PublicKey.findProgramAddressSync([
|
121
|
+
Buffer.from('user', 'utf8'),
|
122
|
+
owner.toBuffer(),
|
123
|
+
new bn_js_1.BN(subAccountId).toArrayLike(Buffer, 'le', 2),
|
124
|
+
], programId)[0];
|
125
|
+
}
|
126
|
+
exports.getUserAccountPublicKey = getUserAccountPublicKey;
|
127
|
+
function getUserMainAccountPublicKey(programId, owner) {
|
128
|
+
return getUserAccountPublicKey(programId, owner, 0);
|
129
|
+
}
|
130
|
+
exports.getUserMainAccountPublicKey = getUserMainAccountPublicKey;
|
131
|
+
function getUserAccountsPublicKeys(programId, owner, startId, endId) {
|
132
|
+
const keys = [];
|
133
|
+
for (let i = startId; i < endId; i++) {
|
134
|
+
keys.push(web3_js_1.PublicKey.findProgramAddressSync([
|
135
|
+
Buffer.from('user', 'utf8'),
|
136
|
+
owner.toBuffer(),
|
137
|
+
new bn_js_1.BN(i).toArrayLike(Buffer, 'le', 2),
|
138
|
+
], programId)[0]);
|
139
|
+
}
|
140
|
+
return keys;
|
141
|
+
}
|
142
|
+
exports.getUserAccountsPublicKeys = getUserAccountsPublicKeys;
|
117
143
|
//# sourceMappingURL=helpers.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"helpers.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/drift/helpers.ts"],"names":[],"mappings":";;;;;;AAAA,gEAAqC;AACrC,qCAAqE;AAExD,QAAA,IAAI,GAAG,IAAI,sB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,mBAAS,CAAC,sBAAsB,CACrC;QACE,MAAM,CAAC,IAAI,CAAC,MAAM,EAAE,MAAM,CAAC;QAC3B,KAAK,CAAC,QAAQ,EAAE;QAChB,IAAI,UAAE,CAAC,YAAY,CAAC,CAAC,WAAW,CAAC,MAAM,EAAE,IAAI,EAAE,CAAC,CAAC;KAClD,EACD,SAAS,CACV,CAAC,CAAC,CAAC,CAAC;AACP,CAAC;AAbD,0DAaC;AAED,SAAgB,2BAA2B,CACzC,SAAoB,EACpB,KAAgB;IAEhB,OAAO,uBAAuB,CAAC,SAAS,EAAE,KAAK,EAAE,CAAC,CAAC,CAAC;AACtD,CAAC;AALD,kEAKC;AAED,SAAgB,yBAAyB,CACvC,SAAoB,EACpB,KAAgB,EAChB,OAAe,EACf,KAAa;IAEb,MAAM,IAAI,GAAG,EAAE,CAAC;IAChB,KAAK,IAAI,CAAC,GAAG,OAAO,EAAE,CAAC,GAAG,KAAK,EAAE,CAAC,EAAE,EAAE;QACpC,IAAI,CAAC,IAAI,CACP,mBAAS,CAAC,sBAAsB,CAC9B;YACE,MAAM,CAAC,IAAI,CAAC,MAAM,EAAE,MAAM,CAAC;YAC3B,KAAK,CAAC,QAAQ,EAAE;YAChB,IAAI,UAAE,CAAC,CAAC,CAAC,CAAC,WAAW,CAAC,MAAM,EAAE,IAAI,EAAE,CAAC,CAAC;SACvC,EACD,SAAS,CACV,CAAC,CAAC,CAAC,CACL,CAAC;KACH;IACD,OAAO,IAAI,CAAC;AACd,CAAC;AApBD,8DAoBC"}
|
@@ -14,9 +14,9 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
14
14
|
Object.defineProperty(exports, "__esModule", { value: true });
|
15
15
|
const portfolio_core_1 = require("@sonarwatch/portfolio-core");
|
16
16
|
const bignumber_js_1 = __importDefault(require("bignumber.js"));
|
17
|
+
const web3_js_1 = require("@solana/web3.js");
|
17
18
|
const constants_1 = require("./constants");
|
18
19
|
const struct_1 = require("./struct");
|
19
|
-
const filters_1 = require("./filters");
|
20
20
|
const helpers_1 = require("./helpers");
|
21
21
|
const solana_1 = require("../../utils/solana");
|
22
22
|
const clients_1 = require("../../utils/clients");
|
@@ -24,11 +24,21 @@ const tokenPriceToAssetToken_1 = __importDefault(require("../../utils/misc/token
|
|
24
24
|
const runInBatch_1 = __importDefault(require("../../utils/misc/runInBatch"));
|
25
25
|
const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* () {
|
26
26
|
const client = (0, clients_1.getClientSolana)();
|
27
|
-
|
27
|
+
let id = 0;
|
28
|
+
const userAccounts = [];
|
29
|
+
let parsedAccount;
|
30
|
+
do {
|
31
|
+
const accountPubKeys = (0, helpers_1.getUserAccountsPublicKeys)(constants_1.DriftProgram, new web3_js_1.PublicKey(owner), id, id + 3);
|
32
|
+
parsedAccount = yield (0, solana_1.getParsedMultipleAccountsInfo)(client, struct_1.userAccountStruct, accountPubKeys);
|
33
|
+
userAccounts.push(...parsedAccount);
|
34
|
+
id += 3;
|
35
|
+
} while (parsedAccount[parsedAccount.length]);
|
28
36
|
if (!userAccounts)
|
29
37
|
return [];
|
30
38
|
const spotMarketIndexes = new Set();
|
31
39
|
for (const userAccount of userAccounts) {
|
40
|
+
if (!userAccount)
|
41
|
+
continue;
|
32
42
|
for (const spotPosition of userAccount.spotPositions) {
|
33
43
|
spotMarketIndexes.add(spotPosition.marketIndex.toString());
|
34
44
|
}
|
@@ -59,6 +69,8 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
|
|
59
69
|
const elements = [];
|
60
70
|
// One user can have multiple sub-account
|
61
71
|
for (const userAccount of userAccounts) {
|
72
|
+
if (!userAccount)
|
73
|
+
continue;
|
62
74
|
const borrowedAssets = [];
|
63
75
|
const borrowedYields = [];
|
64
76
|
const suppliedAssets = [];
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"spotPositionsFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/drift/spotPositionsFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DASoC;AACpC,gEAAqC;
|
1
|
+
{"version":3,"file":"spotPositionsFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/drift/spotPositionsFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DASoC;AACpC,gEAAqC;AACrC,6CAA4C;AAG5C,2CAA0E;AAC1E,qCAA8D;AAC9D,uCAMmB;AAEnB,+CAAmE;AACnE,iDAAsD;AACtD,qGAA6E;AAC7E,6EAAqD;AAErD,MAAM,QAAQ,GAAoB,CAAO,KAAa,EAAE,KAAY,EAAE,EAAE;IACtE,MAAM,MAAM,GAAG,IAAA,yBAAe,GAAE,CAAC;IAEjC,IAAI,EAAE,GAAG,CAAC,CAAC;IACX,MAAM,YAAY,GAAG,EAAE,CAAC;IACxB,IAAI,aAAa,CAAC;IAClB,GAAG;QACD,MAAM,cAAc,GAAG,IAAA,mCAAyB,EAC9C,wBAAY,EACZ,IAAI,mBAAS,CAAC,KAAK,CAAC,EACpB,EAAE,EACF,EAAE,GAAG,CAAC,CACP,CAAC;QACF,aAAa,GAAG,MAAM,IAAA,sCAA6B,EACjD,MAAM,EACN,0BAAiB,EACjB,cAAc,CACf,CAAC;QACF,YAAY,CAAC,IAAI,CAAC,GAAG,aAAa,CAAC,CAAC;QACpC,EAAE,IAAI,CAAC,CAAC;KACT,QAAQ,aAAa,CAAC,aAAa,CAAC,MAAM,CAAC,EAAE;IAE9C,IAAI,CAAC,YAAY;QAAE,OAAO,EAAE,CAAC;IAE7B,MAAM,iBAAiB,GAAgB,IAAI,GAAG,EAAE,CAAC;IACjD,KAAK,MAAM,WAAW,IAAI,YAAY,EAAE;QACtC,IAAI,CAAC,WAAW;YAAE,SAAS;QAC3B,KAAK,MAAM,YAAY,IAAI,WAAW,CAAC,aAAa,EAAE;YACpD,iBAAiB,CAAC,GAAG,CAAC,YAAY,CAAC,WAAW,CAAC,QAAQ,EAAE,CAAC,CAAC;SAC5D;KACF;IACD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E,aAAa,EAAE,eAAe,EAAE,aAAa,EAAE,KAAK,EAAE,GAC5D,IAAA,wCAAuB,EAAC,cAAc,EAAE,cAAc,EAAE,YAAY,CAAC,CAAC;QACxE,QAAQ,CAAC,IAAI,CAAC;YACZ,IAAI,EAAE,qCAAoB,CAAC,UAAU;YACrC,SAAS,EAAE,0BAAS,CAAC,MAAM;YAC3B,UAAU,EAAV,sBAAU;YACV,KAAK,EAAE,SAAS;YAChB,KAAK;YACL,IAAI,EAAE;gBACJ,cAAc;gBACd,aAAa;gBACb,cAAc;gBACd,cAAc;gBACd,aAAa;gBACb,cAAc;gBACd,eAAe;gBACf,YAAY;gBACZ,KAAK;aACN;YACD,IAAI,EAAE,IAAA,oBAAU,EAAC,WAAW,CAAC,IAAI,CAAC;SACnC,CAAC,CAAC;KACJ;IAED,OAAO,QAAQ,CAAC;AAClB,CAAC,CAAA,CAAC;AAEF,MAAM,OAAO,GAAY;IACvB,EAAE,EAAE,GAAG,sBAAU,gBAAgB;IACjC,SAAS,EAAE,0BAAS,CAAC,MAAM;IAC3B,QAAQ;CACT,CAAC;AAEF,kBAAe,OAAO,CAAC"}
|
@@ -36,28 +36,28 @@ exports.getPairsV2 = void 0;
|
|
36
36
|
const graphql_request_1 = __importStar(require("graphql-request"));
|
37
37
|
function getPairsV2(url) {
|
38
38
|
return __awaiter(this, void 0, void 0, function* () {
|
39
|
-
const query = (0, graphql_request_1.gql) `
|
40
|
-
{
|
41
|
-
pairs(
|
42
|
-
orderBy: reserveUSD
|
43
|
-
first: 500
|
44
|
-
orderDirection: desc
|
45
|
-
where: { trackedReserveETH_not: "0" }
|
46
|
-
) {
|
47
|
-
id
|
48
|
-
reserve0
|
49
|
-
reserve1
|
50
|
-
totalSupply
|
51
|
-
token0 {
|
52
|
-
id
|
53
|
-
decimals
|
54
|
-
}
|
55
|
-
token1 {
|
56
|
-
id
|
57
|
-
decimals
|
58
|
-
}
|
59
|
-
}
|
60
|
-
}
|
39
|
+
const query = (0, graphql_request_1.gql) `
|
40
|
+
{
|
41
|
+
pairs(
|
42
|
+
orderBy: reserveUSD
|
43
|
+
first: 500
|
44
|
+
orderDirection: desc
|
45
|
+
where: { trackedReserveETH_not: "0" }
|
46
|
+
) {
|
47
|
+
id
|
48
|
+
reserve0
|
49
|
+
reserve1
|
50
|
+
totalSupply
|
51
|
+
token0 {
|
52
|
+
id
|
53
|
+
decimals
|
54
|
+
}
|
55
|
+
token1 {
|
56
|
+
id
|
57
|
+
decimals
|
58
|
+
}
|
59
|
+
}
|
60
|
+
}
|
61
61
|
`;
|
62
62
|
const res = yield (0, graphql_request_1.default)(url, query);
|
63
63
|
const pairs = res.pairs;
|