@stake-dao/reader 0.2.17 → 0.2.18

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.
Files changed (42) hide show
  1. package/dist/esm/abis/angleVaultsMulticall.js +85 -0
  2. package/dist/esm/abis/angleVaultsMulticall.js.map +1 -0
  3. package/dist/esm/abis/lockersMulticall.js +296 -0
  4. package/dist/esm/abis/lockersMulticall.js.map +1 -0
  5. package/dist/esm/abis/pendleVaultsMulticall.js +105 -0
  6. package/dist/esm/abis/pendleVaultsMulticall.js.map +1 -0
  7. package/dist/esm/abis/yearnVaultsMulticall.js +109 -0
  8. package/dist/esm/abis/yearnVaultsMulticall.js.map +1 -0
  9. package/dist/esm/lockers/fetch/index.js +1 -1
  10. package/dist/esm/lockers/fetch/index.js.map +1 -1
  11. package/dist/esm/strategies/angle/fetch.js +1 -1
  12. package/dist/esm/strategies/angle/fetch.js.map +1 -1
  13. package/dist/esm/strategies/pendle/fetch.js +1 -1
  14. package/dist/esm/strategies/pendle/fetch.js.map +1 -1
  15. package/dist/esm/strategies/yearn/fetch/fetchAllYearnGauges.js +1 -1
  16. package/dist/esm/strategies/yearn/fetch/fetchAllYearnGauges.js.map +1 -1
  17. package/dist/esm/strategies/yearn/fetch/index.js +1 -1
  18. package/dist/esm/strategies/yearn/fetch/index.js.map +1 -1
  19. package/dist/esm/tsconfig.build.tsbuildinfo +1 -1
  20. package/dist/types/abis/angleVaultsMulticall.d.ts +42 -0
  21. package/dist/types/abis/angleVaultsMulticall.d.ts.map +1 -0
  22. package/dist/types/abis/lockersMulticall.d.ts +52 -0
  23. package/dist/types/abis/lockersMulticall.d.ts.map +1 -0
  24. package/dist/types/abis/pendleVaultsMulticall.d.ts +31 -0
  25. package/dist/types/abis/pendleVaultsMulticall.d.ts.map +1 -0
  26. package/dist/types/abis/yearnVaultsMulticall.d.ts +46 -0
  27. package/dist/types/abis/yearnVaultsMulticall.d.ts.map +1 -0
  28. package/dist/types/strategies/pendle/fetch.d.ts.map +1 -1
  29. package/package.json +1 -1
  30. package/src/abis/angleVaultsMulticall.ts +85 -0
  31. package/src/abis/lockersMulticall.ts +296 -0
  32. package/src/abis/pendleVaultsMulticall.ts +105 -0
  33. package/src/abis/yearnVaultsMulticall.ts +109 -0
  34. package/src/lockers/fetch/index.ts +1 -1
  35. package/src/strategies/angle/fetch.ts +1 -1
  36. package/src/strategies/pendle/fetch.ts +1 -1
  37. package/src/strategies/yearn/fetch/fetchAllYearnGauges.ts +1 -1
  38. package/src/strategies/yearn/fetch/index.ts +1 -1
  39. package/dist/esm/abis/MulticallAngleVaults.json +0 -83
  40. package/dist/esm/lockers/abis/MulticallLockers.json +0 -591
  41. package/dist/esm/strategies/pendle/abis/MulticallPendleStratsAbi.json +0 -103
  42. package/dist/esm/strategies/utils/abis/MulticallYearnStratsAbi.json +0 -107
@@ -1,591 +0,0 @@
1
- [
2
- {
3
- "inputs": [
4
- {
5
- "internalType": "address",
6
- "name": "account",
7
- "type": "address"
8
- }
9
- ],
10
- "name": "balanceOf",
11
- "outputs": [
12
- {
13
- "internalType": "uint256",
14
- "name": "",
15
- "type": "uint256"
16
- }
17
- ],
18
- "stateMutability": "view",
19
- "type": "function"
20
- },
21
- {
22
- "inputs": [],
23
- "name": "totalSupply",
24
- "outputs": [
25
- {
26
- "internalType": "uint256",
27
- "name": "",
28
- "type": "uint256"
29
- }
30
- ],
31
- "stateMutability": "view",
32
- "type": "function"
33
- },
34
- {
35
- "name": "locked",
36
- "outputs": [
37
- {
38
- "type": "int128",
39
- "name": "amount"
40
- },
41
- {
42
- "type": "uint256",
43
- "name": "end"
44
- }
45
- ],
46
- "inputs": [
47
- {
48
- "type": "address",
49
- "name": "arg0"
50
- }
51
- ],
52
- "stateMutability": "view",
53
- "type": "function"
54
- },
55
- {
56
- "inputs": [
57
- {
58
- "internalType": "address",
59
- "name": "",
60
- "type": "address"
61
- }
62
- ],
63
- "name": "locks",
64
- "outputs": [
65
- {
66
- "internalType": "int128",
67
- "name": "amount",
68
- "type": "int128"
69
- },
70
- {
71
- "internalType": "uint256",
72
- "name": "end",
73
- "type": "uint256"
74
- }
75
- ],
76
- "stateMutability": "view",
77
- "type": "function"
78
- },
79
- {
80
- "inputs": [
81
- {
82
- "internalType": "address",
83
- "name": "",
84
- "type": "address"
85
- }
86
- ],
87
- "name": "positionData",
88
- "outputs": [
89
- {
90
- "internalType": "uint128",
91
- "name": "amount",
92
- "type": "uint128"
93
- },
94
- {
95
- "internalType": "uint128",
96
- "name": "expiry",
97
- "type": "uint128"
98
- }
99
- ],
100
- "stateMutability": "view",
101
- "type": "function"
102
- },
103
- {
104
- "inputs": [],
105
- "name": "totalSupplyStored",
106
- "outputs": [
107
- {
108
- "internalType": "uint128",
109
- "name": "",
110
- "type": "uint128"
111
- }
112
- ],
113
- "stateMutability": "view",
114
- "type": "function"
115
- },
116
- {
117
- "inputs": [],
118
- "name": "working_supply",
119
- "outputs": [
120
- {
121
- "name": "",
122
- "type": "uint256"
123
- }
124
- ],
125
- "stateMutability": "view",
126
- "type": "function"
127
- },
128
- {
129
- "inputs": [{ "internalType": "address", "name": "user", "type": "address" }],
130
- "name": "working_balances",
131
- "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
132
- "stateMutability": "view",
133
- "type": "function"
134
- },
135
- {
136
- "name": "supply",
137
- "outputs": [
138
- {
139
- "type": "uint256",
140
- "name": ""
141
- }
142
- ],
143
- "inputs": [],
144
- "stateMutability": "view",
145
- "type": "function"
146
- },
147
- {
148
- "inputs": [],
149
- "name": "incentiveToken",
150
- "outputs": [
151
- {
152
- "internalType": "uint256",
153
- "name": "",
154
- "type": "uint256"
155
- }
156
- ],
157
- "stateMutability": "view",
158
- "type": "function"
159
- },
160
- {
161
- "inputs": [],
162
- "name": "lockIncentive",
163
- "outputs": [
164
- {
165
- "internalType": "uint256",
166
- "name": "",
167
- "type": "uint256"
168
- }
169
- ],
170
- "stateMutability": "view",
171
- "type": "function"
172
- },
173
- {
174
- "inputs": [],
175
- "name": "lockIncentivePercent",
176
- "outputs": [
177
- {
178
- "internalType": "uint256",
179
- "name": "",
180
- "type": "uint256"
181
- }
182
- ],
183
- "stateMutability": "view",
184
- "type": "function"
185
- },
186
- {
187
- "inputs": [],
188
- "name": "FEE_DENOMINATOR",
189
- "outputs": [
190
- {
191
- "internalType": "uint256",
192
- "name": "",
193
- "type": "uint256"
194
- }
195
- ],
196
- "stateMutability": "view",
197
- "type": "function"
198
- },
199
- {
200
- "stateMutability": "view",
201
- "type": "function",
202
- "name": "gauge_relative_weight",
203
- "inputs": [
204
- {
205
- "name": "addr",
206
- "type": "address"
207
- }
208
- ],
209
- "outputs": [
210
- {
211
- "name": "",
212
- "type": "uint256"
213
- }
214
- ]
215
- },
216
- {
217
- "stateMutability": "view",
218
- "type": "function",
219
- "name": "get_gauge_weight",
220
- "inputs": [
221
- {
222
- "name": "addr",
223
- "type": "address"
224
- }
225
- ],
226
- "outputs": [
227
- {
228
- "name": "",
229
- "type": "uint256"
230
- }
231
- ]
232
- },
233
- {
234
- "stateMutability": "view",
235
- "type": "function",
236
- "name": "get_total_weight",
237
- "inputs": [],
238
- "outputs": [
239
- {
240
- "name": "",
241
- "type": "uint256"
242
- }
243
- ]
244
- },
245
- {
246
- "stateMutability": "view",
247
- "type": "function",
248
- "name": "time_total",
249
- "inputs": [],
250
- "outputs": [
251
- {
252
- "name": "",
253
- "type": "uint256"
254
- }
255
- ]
256
- },
257
- {
258
- "inputs": [
259
- {
260
- "internalType": "address",
261
- "name": "",
262
- "type": "address"
263
- },
264
- {
265
- "internalType": "uint256",
266
- "name": "",
267
- "type": "uint256"
268
- }
269
- ],
270
- "name": "lockups",
271
- "outputs": [
272
- {
273
- "internalType": "uint128",
274
- "name": "amount",
275
- "type": "uint128"
276
- },
277
- {
278
- "internalType": "uint128",
279
- "name": "end",
280
- "type": "uint128"
281
- },
282
- {
283
- "internalType": "uint256",
284
- "name": "points",
285
- "type": "uint256"
286
- }
287
- ],
288
- "stateMutability": "view",
289
- "type": "function"
290
- },
291
- {
292
- "stateMutability": "view",
293
- "type": "function",
294
- "name": "get_dy",
295
- "inputs": [
296
- {
297
- "name": "i",
298
- "type": "int128"
299
- },
300
- {
301
- "name": "j",
302
- "type": "int128"
303
- },
304
- {
305
- "name": "dx",
306
- "type": "uint256"
307
- }
308
- ],
309
- "outputs": [
310
- {
311
- "name": "",
312
- "type": "uint256"
313
- }
314
- ]
315
- },
316
- {
317
- "inputs": [
318
- {
319
- "internalType": "enum IVault.SwapKind",
320
- "name": "kind",
321
- "type": "uint8"
322
- },
323
- {
324
- "components": [
325
- {
326
- "internalType": "bytes32",
327
- "name": "poolId",
328
- "type": "bytes32"
329
- },
330
- {
331
- "internalType": "uint256",
332
- "name": "assetInIndex",
333
- "type": "uint256"
334
- },
335
- {
336
- "internalType": "uint256",
337
- "name": "assetOutIndex",
338
- "type": "uint256"
339
- },
340
- {
341
- "internalType": "uint256",
342
- "name": "amount",
343
- "type": "uint256"
344
- },
345
- {
346
- "internalType": "bytes",
347
- "name": "userData",
348
- "type": "bytes"
349
- }
350
- ],
351
- "internalType": "struct IVault.BatchSwapStep[]",
352
- "name": "swaps",
353
- "type": "tuple[]"
354
- },
355
- {
356
- "internalType": "contract IAsset[]",
357
- "name": "assets",
358
- "type": "address[]"
359
- },
360
- {
361
- "components": [
362
- {
363
- "internalType": "address",
364
- "name": "sender",
365
- "type": "address"
366
- },
367
- {
368
- "internalType": "bool",
369
- "name": "fromInternalBalance",
370
- "type": "bool"
371
- },
372
- {
373
- "internalType": "address payable",
374
- "name": "recipient",
375
- "type": "address"
376
- },
377
- {
378
- "internalType": "bool",
379
- "name": "toInternalBalance",
380
- "type": "bool"
381
- }
382
- ],
383
- "internalType": "struct IVault.FundManagement",
384
- "name": "funds",
385
- "type": "tuple"
386
- }
387
- ],
388
- "name": "queryBatchSwap",
389
- "outputs": [
390
- {
391
- "internalType": "int256[]",
392
- "name": "",
393
- "type": "int256[]"
394
- }
395
- ],
396
- "stateMutability": "view",
397
- "type": "function"
398
- },
399
- {
400
- "inputs": [
401
- {
402
- "internalType": "contract IPool",
403
- "name": "pool",
404
- "type": "address"
405
- },
406
- {
407
- "internalType": "uint128",
408
- "name": "amount",
409
- "type": "uint128"
410
- },
411
- {
412
- "internalType": "bool",
413
- "name": "tokenAIn",
414
- "type": "bool"
415
- },
416
- {
417
- "internalType": "bool",
418
- "name": "exactOutput",
419
- "type": "bool"
420
- },
421
- {
422
- "internalType": "uint256",
423
- "name": "sqrtPriceLimit",
424
- "type": "uint256"
425
- }
426
- ],
427
- "name": "calculateSwap",
428
- "outputs": [
429
- {
430
- "internalType": "uint256",
431
- "name": "returnAmount",
432
- "type": "uint256"
433
- }
434
- ],
435
- "stateMutability": "view",
436
- "type": "function"
437
- },
438
- {
439
- "inputs": [],
440
- "name": "claimerFee",
441
- "outputs": [
442
- {
443
- "internalType": "uint256",
444
- "name": "",
445
- "type": "uint256"
446
- }
447
- ],
448
- "payable": false,
449
- "stateMutability": "view",
450
- "type": "function"
451
- },
452
- {
453
- "inputs": [],
454
- "name": "daoFee",
455
- "outputs": [
456
- {
457
- "internalType": "uint256",
458
- "name": "",
459
- "type": "uint256"
460
- }
461
- ],
462
- "payable": false,
463
- "stateMutability": "view",
464
- "type": "function"
465
- },
466
- {
467
- "inputs": [],
468
- "name": "liquidityFee",
469
- "outputs": [
470
- {
471
- "internalType": "uint256",
472
- "name": "",
473
- "type": "uint256"
474
- }
475
- ],
476
- "payable": false,
477
- "stateMutability": "view",
478
- "type": "function"
479
- },
480
- {
481
- "inputs": [],
482
- "name": "bountyFee",
483
- "outputs": [
484
- {
485
- "internalType": "uint256",
486
- "name": "",
487
- "type": "uint256"
488
- }
489
- ],
490
- "payable": false,
491
- "stateMutability": "view",
492
- "type": "function"
493
- },
494
- {
495
- "inputs": [],
496
- "name": "bribeFee",
497
- "outputs": [
498
- {
499
- "internalType": "uint256",
500
- "name": "",
501
- "type": "uint256"
502
- }
503
- ],
504
- "payable": false,
505
- "stateMutability": "view",
506
- "type": "function"
507
- },
508
- {
509
- "inputs": [],
510
- "name": "lockerFee",
511
- "outputs": [
512
- {
513
- "internalType": "uint256",
514
- "name": "",
515
- "type": "uint256"
516
- }
517
- ],
518
- "payable": false,
519
- "stateMutability": "view",
520
- "type": "function"
521
- },
522
- {
523
- "inputs": [
524
- { "internalType": "uint256", "name": "amount", "type": "uint256" },
525
- { "internalType": "uint256", "name": "duration", "type": "uint256" }
526
- ],
527
- "name": "previewPoints",
528
- "outputs": [
529
- { "internalType": "uint256", "name": "", "type": "uint256" },
530
- { "internalType": "uint256", "name": "", "type": "uint256" }
531
- ],
532
- "stateMutability": "view",
533
- "type": "function"
534
- },
535
- {
536
- "inputs": [
537
- {
538
- "components": [
539
- { "internalType": "address", "name": "tokenIn", "type": "address" },
540
- { "internalType": "address", "name": "tokenOut", "type": "address" },
541
- { "internalType": "uint256", "name": "amountIn", "type": "uint256" },
542
- { "internalType": "uint24", "name": "fee", "type": "uint24" },
543
- {
544
- "internalType": "uint160",
545
- "name": "sqrtPriceLimitX96",
546
- "type": "uint160"
547
- }
548
- ],
549
- "internalType": "struct IQuoterV2.QuoteExactInputSingleParams",
550
- "name": "params",
551
- "type": "tuple"
552
- }
553
- ],
554
- "name": "quoteExactInputSingle",
555
- "outputs": [
556
- { "internalType": "uint256", "name": "amountOut", "type": "uint256" },
557
- {
558
- "internalType": "uint160",
559
- "name": "sqrtPriceX96After",
560
- "type": "uint160"
561
- },
562
- {
563
- "internalType": "uint32",
564
- "name": "initializedTicksCrossed",
565
- "type": "uint32"
566
- },
567
- { "internalType": "uint256", "name": "gasEstimate", "type": "uint256" }
568
- ],
569
- "stateMutability": "view",
570
- "type": "function"
571
- },
572
- {
573
- "inputs": [
574
- {
575
- "internalType": "address",
576
- "name": "_addr",
577
- "type": "address"
578
- }
579
- ],
580
- "name": "balanceOfLockedFxs",
581
- "outputs": [
582
- {
583
- "internalType": "uint256",
584
- "name": "_balanceOfLockedFxs",
585
- "type": "uint256"
586
- }
587
- ],
588
- "stateMutability": "view",
589
- "type": "function"
590
- }
591
- ]
@@ -1,103 +0,0 @@
1
- [
2
- {
3
- "inputs": [{ "internalType": "address", "name": "account", "type": "address" }],
4
- "name": "balanceOf",
5
- "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
6
- "payable": false,
7
- "stateMutability": "view",
8
- "type": "function"
9
- },
10
- {
11
- "inputs": [],
12
- "name": "totalSupply",
13
- "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
14
- "payable": false,
15
- "stateMutability": "view",
16
- "type": "function"
17
- },
18
- {
19
- "inputs": [],
20
- "name": "veSdtFeeFee",
21
- "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
22
- "payable": false,
23
- "stateMutability": "view",
24
- "type": "function"
25
- },
26
- {
27
- "inputs": [],
28
- "name": "daoFee",
29
- "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
30
- "payable": false,
31
- "stateMutability": "view",
32
- "type": "function"
33
- },
34
- {
35
- "inputs": [],
36
- "name": "accFee",
37
- "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
38
- "payable": false,
39
- "stateMutability": "view",
40
- "type": "function"
41
- },
42
- {
43
- "inputs": [],
44
- "name": "claimerFee",
45
- "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
46
- "payable": false,
47
- "stateMutability": "view",
48
- "type": "function"
49
- },
50
- {
51
- "inputs": [{ "internalType": "address", "name": "account", "type": "address" }],
52
- "name": "activeBalance",
53
- "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
54
- "payable": false,
55
- "stateMutability": "view",
56
- "type": "function"
57
- },
58
- {
59
- "inputs": [],
60
- "name": "working_supply",
61
- "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
62
- "payable": false,
63
- "stateMutability": "view",
64
- "type": "function"
65
- },
66
- {
67
- "inputs": [{ "internalType": "address", "name": "account", "type": "address" }],
68
- "name": "redeemRewards",
69
- "outputs": [{ "internalType": "uint256[]", "name": "", "type": "uint256[]" }],
70
- "payable": false,
71
- "stateMutability": "view",
72
- "type": "function"
73
- },
74
- {
75
- "stateMutability": "view",
76
- "type": "function",
77
- "name": "gauge_relative_weight",
78
- "inputs": [{ "name": "addr", "type": "address" }],
79
- "outputs": [{ "name": "", "type": "uint256" }]
80
- },
81
- {
82
- "stateMutability": "view",
83
- "type": "function",
84
- "name": "get_gauge_weight",
85
- "inputs": [{ "name": "addr", "type": "address" }],
86
- "outputs": [{ "name": "", "type": "uint256" }]
87
- },
88
- {
89
- "stateMutability": "view",
90
- "type": "function",
91
- "name": "get_total_weight",
92
- "inputs": [],
93
- "outputs": [{ "name": "", "type": "uint256" }]
94
- },
95
- {
96
- "inputs": [],
97
- "name": "expiry",
98
- "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
99
- "payable": false,
100
- "stateMutability": "view",
101
- "type": "function"
102
- }
103
- ]