@1delta/abis 0.0.12 → 0.0.14

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/compound-v2/c-ether.d.ts +1 -1
  2. package/dist/compound-v2/c-ether.d.ts.map +1 -1
  3. package/dist/compound-v2/c-ether.js +368 -65
  4. package/dist/compound-v2/index.d.ts +1 -1
  5. package/dist/compound-v2/index.js +1 -1
  6. package/dist/fluid/index.d.ts +3 -0
  7. package/dist/fluid/index.d.ts.map +1 -0
  8. package/dist/fluid/index.js +2 -0
  9. package/dist/fluid/lendingResolver.d.ts +91 -0
  10. package/dist/fluid/lendingResolver.d.ts.map +1 -0
  11. package/dist/fluid/lendingResolver.js +55 -0
  12. package/dist/fluid/resolvers.d.ts +3 -0
  13. package/dist/fluid/resolvers.d.ts.map +1 -0
  14. package/dist/fluid/resolvers.js +12 -0
  15. package/dist/fluid/vaultResolver.d.ts +1083 -0
  16. package/dist/fluid/vaultResolver.d.ts.map +1 -0
  17. package/dist/fluid/vaultResolver.js +1479 -0
  18. package/dist/gearbox/creditFacadeV3.d.ts +59 -0
  19. package/dist/gearbox/creditFacadeV3.d.ts.map +1 -0
  20. package/dist/gearbox/creditFacadeV3.js +59 -0
  21. package/dist/gearbox/creditManagerV3.d.ts +156 -0
  22. package/dist/gearbox/creditManagerV3.d.ts.map +1 -0
  23. package/dist/gearbox/creditManagerV3.js +108 -0
  24. package/dist/gearbox/dataCompressorV3.d.ts +560 -0
  25. package/dist/gearbox/dataCompressorV3.d.ts.map +1 -0
  26. package/dist/gearbox/dataCompressorV3.js +225 -0
  27. package/dist/gearbox/index.d.ts +7 -0
  28. package/dist/gearbox/index.d.ts.map +1 -0
  29. package/dist/gearbox/index.js +6 -0
  30. package/dist/gearbox/poolQuotaKeeperV3.d.ts +65 -0
  31. package/dist/gearbox/poolQuotaKeeperV3.d.ts.map +1 -0
  32. package/dist/gearbox/poolQuotaKeeperV3.js +52 -0
  33. package/dist/gearbox/poolV3.d.ts +152 -0
  34. package/dist/gearbox/poolV3.d.ts.map +1 -0
  35. package/dist/gearbox/poolV3.js +133 -0
  36. package/dist/gearbox/priceOracleV3.d.ts +35 -0
  37. package/dist/gearbox/priceOracleV3.d.ts.map +1 -0
  38. package/dist/gearbox/priceOracleV3.js +28 -0
  39. package/dist/index.d.ts +5 -3
  40. package/dist/index.d.ts.map +1 -1
  41. package/dist/index.js +5 -3
  42. package/package.json +1 -1
@@ -0,0 +1,1479 @@
1
+ // Fluid VaultResolver ABI (deployed at 0xA5C3E16523eeeDDcC34706b0E6bE88b4c6EA95cC
2
+ // on every supported chain — same bytecode).
3
+ //
4
+ // Functions kept:
5
+ // - getVaultsEntireData() -> VaultEntireData[] (public-data fetch)
6
+ // - getVaultEntireData(address) -> VaultEntireData (chunked fallback)
7
+ // - positionsByUser(address) -> (UserPosition[], VaultEntireData[]) (user-data fetch)
8
+ //
9
+ // Struct fields match the verified contract byte-for-byte.
10
+ export const FluidVaultResolverAbi = [
11
+ {
12
+ inputs: [
13
+ {
14
+ name: "vault_",
15
+ type: "address",
16
+ },
17
+ ],
18
+ name: "getVaultEntireData",
19
+ outputs: [
20
+ {
21
+ components: [
22
+ {
23
+ name: "vault",
24
+ type: "address",
25
+ },
26
+ {
27
+ name: "isSmartCol",
28
+ type: "bool",
29
+ },
30
+ {
31
+ name: "isSmartDebt",
32
+ type: "bool",
33
+ },
34
+ {
35
+ components: [
36
+ {
37
+ name: "liquidity",
38
+ type: "address",
39
+ },
40
+ {
41
+ name: "factory",
42
+ type: "address",
43
+ },
44
+ {
45
+ name: "operateImplementation",
46
+ type: "address",
47
+ },
48
+ {
49
+ name: "adminImplementation",
50
+ type: "address",
51
+ },
52
+ {
53
+ name: "secondaryImplementation",
54
+ type: "address",
55
+ },
56
+ {
57
+ name: "deployer",
58
+ type: "address",
59
+ },
60
+ {
61
+ name: "supply",
62
+ type: "address",
63
+ },
64
+ {
65
+ name: "borrow",
66
+ type: "address",
67
+ },
68
+ {
69
+ components: [
70
+ {
71
+ name: "token0",
72
+ type: "address",
73
+ },
74
+ {
75
+ name: "token1",
76
+ type: "address",
77
+ },
78
+ ],
79
+ name: "supplyToken",
80
+ type: "tuple",
81
+ },
82
+ {
83
+ components: [
84
+ {
85
+ name: "token0",
86
+ type: "address",
87
+ },
88
+ {
89
+ name: "token1",
90
+ type: "address",
91
+ },
92
+ ],
93
+ name: "borrowToken",
94
+ type: "tuple",
95
+ },
96
+ {
97
+ name: "vaultId",
98
+ type: "uint256",
99
+ },
100
+ {
101
+ name: "vaultType",
102
+ type: "uint256",
103
+ },
104
+ {
105
+ name: "supplyExchangePriceSlot",
106
+ type: "bytes32",
107
+ },
108
+ {
109
+ name: "borrowExchangePriceSlot",
110
+ type: "bytes32",
111
+ },
112
+ {
113
+ name: "userSupplySlot",
114
+ type: "bytes32",
115
+ },
116
+ {
117
+ name: "userBorrowSlot",
118
+ type: "bytes32",
119
+ },
120
+ ],
121
+ name: "constantVariables",
122
+ type: "tuple",
123
+ },
124
+ {
125
+ components: [
126
+ {
127
+ name: "supplyRateMagnifier",
128
+ type: "uint16",
129
+ },
130
+ {
131
+ name: "borrowRateMagnifier",
132
+ type: "uint16",
133
+ },
134
+ {
135
+ name: "collateralFactor",
136
+ type: "uint16",
137
+ },
138
+ {
139
+ name: "liquidationThreshold",
140
+ type: "uint16",
141
+ },
142
+ {
143
+ name: "liquidationMaxLimit",
144
+ type: "uint16",
145
+ },
146
+ {
147
+ name: "withdrawalGap",
148
+ type: "uint16",
149
+ },
150
+ {
151
+ name: "liquidationPenalty",
152
+ type: "uint16",
153
+ },
154
+ {
155
+ name: "borrowFee",
156
+ type: "uint16",
157
+ },
158
+ {
159
+ name: "oracle",
160
+ type: "address",
161
+ },
162
+ {
163
+ name: "oraclePriceOperate",
164
+ type: "uint256",
165
+ },
166
+ {
167
+ name: "oraclePriceLiquidate",
168
+ type: "uint256",
169
+ },
170
+ {
171
+ name: "rebalancer",
172
+ type: "address",
173
+ },
174
+ {
175
+ name: "lastUpdateTimestamp",
176
+ type: "uint256",
177
+ },
178
+ ],
179
+ name: "configs",
180
+ type: "tuple",
181
+ },
182
+ {
183
+ components: [
184
+ {
185
+ name: "lastStoredLiquiditySupplyExchangePrice",
186
+ type: "uint256",
187
+ },
188
+ {
189
+ name: "lastStoredLiquidityBorrowExchangePrice",
190
+ type: "uint256",
191
+ },
192
+ {
193
+ name: "lastStoredVaultSupplyExchangePrice",
194
+ type: "uint256",
195
+ },
196
+ {
197
+ name: "lastStoredVaultBorrowExchangePrice",
198
+ type: "uint256",
199
+ },
200
+ {
201
+ name: "liquiditySupplyExchangePrice",
202
+ type: "uint256",
203
+ },
204
+ {
205
+ name: "liquidityBorrowExchangePrice",
206
+ type: "uint256",
207
+ },
208
+ {
209
+ name: "vaultSupplyExchangePrice",
210
+ type: "uint256",
211
+ },
212
+ {
213
+ name: "vaultBorrowExchangePrice",
214
+ type: "uint256",
215
+ },
216
+ {
217
+ name: "supplyRateLiquidity",
218
+ type: "uint256",
219
+ },
220
+ {
221
+ name: "borrowRateLiquidity",
222
+ type: "uint256",
223
+ },
224
+ {
225
+ name: "supplyRateVault",
226
+ type: "int256",
227
+ },
228
+ {
229
+ name: "borrowRateVault",
230
+ type: "int256",
231
+ },
232
+ {
233
+ name: "rewardsOrFeeRateSupply",
234
+ type: "int256",
235
+ },
236
+ {
237
+ name: "rewardsOrFeeRateBorrow",
238
+ type: "int256",
239
+ },
240
+ ],
241
+ name: "exchangePricesAndRates",
242
+ type: "tuple",
243
+ },
244
+ {
245
+ components: [
246
+ {
247
+ name: "totalSupplyVault",
248
+ type: "uint256",
249
+ },
250
+ {
251
+ name: "totalBorrowVault",
252
+ type: "uint256",
253
+ },
254
+ {
255
+ name: "totalSupplyLiquidityOrDex",
256
+ type: "uint256",
257
+ },
258
+ {
259
+ name: "totalBorrowLiquidityOrDex",
260
+ type: "uint256",
261
+ },
262
+ {
263
+ name: "absorbedSupply",
264
+ type: "uint256",
265
+ },
266
+ {
267
+ name: "absorbedBorrow",
268
+ type: "uint256",
269
+ },
270
+ ],
271
+ name: "totalSupplyAndBorrow",
272
+ type: "tuple",
273
+ },
274
+ {
275
+ components: [
276
+ {
277
+ name: "withdrawLimit",
278
+ type: "uint256",
279
+ },
280
+ {
281
+ name: "withdrawableUntilLimit",
282
+ type: "uint256",
283
+ },
284
+ {
285
+ name: "withdrawable",
286
+ type: "uint256",
287
+ },
288
+ {
289
+ name: "borrowLimit",
290
+ type: "uint256",
291
+ },
292
+ {
293
+ name: "borrowableUntilLimit",
294
+ type: "uint256",
295
+ },
296
+ {
297
+ name: "borrowable",
298
+ type: "uint256",
299
+ },
300
+ {
301
+ name: "borrowLimitUtilization",
302
+ type: "uint256",
303
+ },
304
+ {
305
+ name: "minimumBorrowing",
306
+ type: "uint256",
307
+ },
308
+ ],
309
+ name: "limitsAndAvailability",
310
+ type: "tuple",
311
+ },
312
+ {
313
+ components: [
314
+ {
315
+ name: "totalPositions",
316
+ type: "uint256",
317
+ },
318
+ {
319
+ name: "topTick",
320
+ type: "int256",
321
+ },
322
+ {
323
+ name: "currentBranch",
324
+ type: "uint256",
325
+ },
326
+ {
327
+ name: "totalBranch",
328
+ type: "uint256",
329
+ },
330
+ {
331
+ name: "totalBorrow",
332
+ type: "uint256",
333
+ },
334
+ {
335
+ name: "totalSupply",
336
+ type: "uint256",
337
+ },
338
+ {
339
+ components: [
340
+ {
341
+ name: "status",
342
+ type: "uint256",
343
+ },
344
+ {
345
+ name: "minimaTick",
346
+ type: "int256",
347
+ },
348
+ {
349
+ name: "debtFactor",
350
+ type: "uint256",
351
+ },
352
+ {
353
+ name: "partials",
354
+ type: "uint256",
355
+ },
356
+ {
357
+ name: "debtLiquidity",
358
+ type: "uint256",
359
+ },
360
+ {
361
+ name: "baseBranchId",
362
+ type: "uint256",
363
+ },
364
+ {
365
+ name: "baseBranchMinima",
366
+ type: "int256",
367
+ },
368
+ ],
369
+ name: "currentBranchState",
370
+ type: "tuple",
371
+ },
372
+ ],
373
+ name: "vaultState",
374
+ type: "tuple",
375
+ },
376
+ {
377
+ components: [
378
+ {
379
+ name: "modeWithInterest",
380
+ type: "bool",
381
+ },
382
+ {
383
+ name: "supply",
384
+ type: "uint256",
385
+ },
386
+ {
387
+ name: "withdrawalLimit",
388
+ type: "uint256",
389
+ },
390
+ {
391
+ name: "lastUpdateTimestamp",
392
+ type: "uint256",
393
+ },
394
+ {
395
+ name: "expandPercent",
396
+ type: "uint256",
397
+ },
398
+ {
399
+ name: "expandDuration",
400
+ type: "uint256",
401
+ },
402
+ {
403
+ name: "baseWithdrawalLimit",
404
+ type: "uint256",
405
+ },
406
+ {
407
+ name: "withdrawableUntilLimit",
408
+ type: "uint256",
409
+ },
410
+ {
411
+ name: "withdrawable",
412
+ type: "uint256",
413
+ },
414
+ {
415
+ name: "decayEndTimestamp",
416
+ type: "uint256",
417
+ },
418
+ {
419
+ name: "decayAmount",
420
+ type: "uint256",
421
+ },
422
+ ],
423
+ name: "liquidityUserSupplyData",
424
+ type: "tuple",
425
+ },
426
+ {
427
+ components: [
428
+ {
429
+ name: "modeWithInterest",
430
+ type: "bool",
431
+ },
432
+ {
433
+ name: "borrow",
434
+ type: "uint256",
435
+ },
436
+ {
437
+ name: "borrowLimit",
438
+ type: "uint256",
439
+ },
440
+ {
441
+ name: "lastUpdateTimestamp",
442
+ type: "uint256",
443
+ },
444
+ {
445
+ name: "expandPercent",
446
+ type: "uint256",
447
+ },
448
+ {
449
+ name: "expandDuration",
450
+ type: "uint256",
451
+ },
452
+ {
453
+ name: "baseBorrowLimit",
454
+ type: "uint256",
455
+ },
456
+ {
457
+ name: "maxBorrowLimit",
458
+ type: "uint256",
459
+ },
460
+ {
461
+ name: "borrowableUntilLimit",
462
+ type: "uint256",
463
+ },
464
+ {
465
+ name: "borrowable",
466
+ type: "uint256",
467
+ },
468
+ {
469
+ name: "borrowLimitUtilization",
470
+ type: "uint256",
471
+ },
472
+ ],
473
+ name: "liquidityUserBorrowData",
474
+ type: "tuple",
475
+ },
476
+ ],
477
+ name: "vaultData_",
478
+ type: "tuple",
479
+ },
480
+ ],
481
+ stateMutability: "view",
482
+ type: "function",
483
+ },
484
+ {
485
+ inputs: [],
486
+ name: "getVaultsEntireData",
487
+ outputs: [
488
+ {
489
+ components: [
490
+ {
491
+ name: "vault",
492
+ type: "address",
493
+ },
494
+ {
495
+ name: "isSmartCol",
496
+ type: "bool",
497
+ },
498
+ {
499
+ name: "isSmartDebt",
500
+ type: "bool",
501
+ },
502
+ {
503
+ components: [
504
+ {
505
+ name: "liquidity",
506
+ type: "address",
507
+ },
508
+ {
509
+ name: "factory",
510
+ type: "address",
511
+ },
512
+ {
513
+ name: "operateImplementation",
514
+ type: "address",
515
+ },
516
+ {
517
+ name: "adminImplementation",
518
+ type: "address",
519
+ },
520
+ {
521
+ name: "secondaryImplementation",
522
+ type: "address",
523
+ },
524
+ {
525
+ name: "deployer",
526
+ type: "address",
527
+ },
528
+ {
529
+ name: "supply",
530
+ type: "address",
531
+ },
532
+ {
533
+ name: "borrow",
534
+ type: "address",
535
+ },
536
+ {
537
+ components: [
538
+ {
539
+ name: "token0",
540
+ type: "address",
541
+ },
542
+ {
543
+ name: "token1",
544
+ type: "address",
545
+ },
546
+ ],
547
+ name: "supplyToken",
548
+ type: "tuple",
549
+ },
550
+ {
551
+ components: [
552
+ {
553
+ name: "token0",
554
+ type: "address",
555
+ },
556
+ {
557
+ name: "token1",
558
+ type: "address",
559
+ },
560
+ ],
561
+ name: "borrowToken",
562
+ type: "tuple",
563
+ },
564
+ {
565
+ name: "vaultId",
566
+ type: "uint256",
567
+ },
568
+ {
569
+ name: "vaultType",
570
+ type: "uint256",
571
+ },
572
+ {
573
+ name: "supplyExchangePriceSlot",
574
+ type: "bytes32",
575
+ },
576
+ {
577
+ name: "borrowExchangePriceSlot",
578
+ type: "bytes32",
579
+ },
580
+ {
581
+ name: "userSupplySlot",
582
+ type: "bytes32",
583
+ },
584
+ {
585
+ name: "userBorrowSlot",
586
+ type: "bytes32",
587
+ },
588
+ ],
589
+ name: "constantVariables",
590
+ type: "tuple",
591
+ },
592
+ {
593
+ components: [
594
+ {
595
+ name: "supplyRateMagnifier",
596
+ type: "uint16",
597
+ },
598
+ {
599
+ name: "borrowRateMagnifier",
600
+ type: "uint16",
601
+ },
602
+ {
603
+ name: "collateralFactor",
604
+ type: "uint16",
605
+ },
606
+ {
607
+ name: "liquidationThreshold",
608
+ type: "uint16",
609
+ },
610
+ {
611
+ name: "liquidationMaxLimit",
612
+ type: "uint16",
613
+ },
614
+ {
615
+ name: "withdrawalGap",
616
+ type: "uint16",
617
+ },
618
+ {
619
+ name: "liquidationPenalty",
620
+ type: "uint16",
621
+ },
622
+ {
623
+ name: "borrowFee",
624
+ type: "uint16",
625
+ },
626
+ {
627
+ name: "oracle",
628
+ type: "address",
629
+ },
630
+ {
631
+ name: "oraclePriceOperate",
632
+ type: "uint256",
633
+ },
634
+ {
635
+ name: "oraclePriceLiquidate",
636
+ type: "uint256",
637
+ },
638
+ {
639
+ name: "rebalancer",
640
+ type: "address",
641
+ },
642
+ {
643
+ name: "lastUpdateTimestamp",
644
+ type: "uint256",
645
+ },
646
+ ],
647
+ name: "configs",
648
+ type: "tuple",
649
+ },
650
+ {
651
+ components: [
652
+ {
653
+ name: "lastStoredLiquiditySupplyExchangePrice",
654
+ type: "uint256",
655
+ },
656
+ {
657
+ name: "lastStoredLiquidityBorrowExchangePrice",
658
+ type: "uint256",
659
+ },
660
+ {
661
+ name: "lastStoredVaultSupplyExchangePrice",
662
+ type: "uint256",
663
+ },
664
+ {
665
+ name: "lastStoredVaultBorrowExchangePrice",
666
+ type: "uint256",
667
+ },
668
+ {
669
+ name: "liquiditySupplyExchangePrice",
670
+ type: "uint256",
671
+ },
672
+ {
673
+ name: "liquidityBorrowExchangePrice",
674
+ type: "uint256",
675
+ },
676
+ {
677
+ name: "vaultSupplyExchangePrice",
678
+ type: "uint256",
679
+ },
680
+ {
681
+ name: "vaultBorrowExchangePrice",
682
+ type: "uint256",
683
+ },
684
+ {
685
+ name: "supplyRateLiquidity",
686
+ type: "uint256",
687
+ },
688
+ {
689
+ name: "borrowRateLiquidity",
690
+ type: "uint256",
691
+ },
692
+ {
693
+ name: "supplyRateVault",
694
+ type: "int256",
695
+ },
696
+ {
697
+ name: "borrowRateVault",
698
+ type: "int256",
699
+ },
700
+ {
701
+ name: "rewardsOrFeeRateSupply",
702
+ type: "int256",
703
+ },
704
+ {
705
+ name: "rewardsOrFeeRateBorrow",
706
+ type: "int256",
707
+ },
708
+ ],
709
+ name: "exchangePricesAndRates",
710
+ type: "tuple",
711
+ },
712
+ {
713
+ components: [
714
+ {
715
+ name: "totalSupplyVault",
716
+ type: "uint256",
717
+ },
718
+ {
719
+ name: "totalBorrowVault",
720
+ type: "uint256",
721
+ },
722
+ {
723
+ name: "totalSupplyLiquidityOrDex",
724
+ type: "uint256",
725
+ },
726
+ {
727
+ name: "totalBorrowLiquidityOrDex",
728
+ type: "uint256",
729
+ },
730
+ {
731
+ name: "absorbedSupply",
732
+ type: "uint256",
733
+ },
734
+ {
735
+ name: "absorbedBorrow",
736
+ type: "uint256",
737
+ },
738
+ ],
739
+ name: "totalSupplyAndBorrow",
740
+ type: "tuple",
741
+ },
742
+ {
743
+ components: [
744
+ {
745
+ name: "withdrawLimit",
746
+ type: "uint256",
747
+ },
748
+ {
749
+ name: "withdrawableUntilLimit",
750
+ type: "uint256",
751
+ },
752
+ {
753
+ name: "withdrawable",
754
+ type: "uint256",
755
+ },
756
+ {
757
+ name: "borrowLimit",
758
+ type: "uint256",
759
+ },
760
+ {
761
+ name: "borrowableUntilLimit",
762
+ type: "uint256",
763
+ },
764
+ {
765
+ name: "borrowable",
766
+ type: "uint256",
767
+ },
768
+ {
769
+ name: "borrowLimitUtilization",
770
+ type: "uint256",
771
+ },
772
+ {
773
+ name: "minimumBorrowing",
774
+ type: "uint256",
775
+ },
776
+ ],
777
+ name: "limitsAndAvailability",
778
+ type: "tuple",
779
+ },
780
+ {
781
+ components: [
782
+ {
783
+ name: "totalPositions",
784
+ type: "uint256",
785
+ },
786
+ {
787
+ name: "topTick",
788
+ type: "int256",
789
+ },
790
+ {
791
+ name: "currentBranch",
792
+ type: "uint256",
793
+ },
794
+ {
795
+ name: "totalBranch",
796
+ type: "uint256",
797
+ },
798
+ {
799
+ name: "totalBorrow",
800
+ type: "uint256",
801
+ },
802
+ {
803
+ name: "totalSupply",
804
+ type: "uint256",
805
+ },
806
+ {
807
+ components: [
808
+ {
809
+ name: "status",
810
+ type: "uint256",
811
+ },
812
+ {
813
+ name: "minimaTick",
814
+ type: "int256",
815
+ },
816
+ {
817
+ name: "debtFactor",
818
+ type: "uint256",
819
+ },
820
+ {
821
+ name: "partials",
822
+ type: "uint256",
823
+ },
824
+ {
825
+ name: "debtLiquidity",
826
+ type: "uint256",
827
+ },
828
+ {
829
+ name: "baseBranchId",
830
+ type: "uint256",
831
+ },
832
+ {
833
+ name: "baseBranchMinima",
834
+ type: "int256",
835
+ },
836
+ ],
837
+ name: "currentBranchState",
838
+ type: "tuple",
839
+ },
840
+ ],
841
+ name: "vaultState",
842
+ type: "tuple",
843
+ },
844
+ {
845
+ components: [
846
+ {
847
+ name: "modeWithInterest",
848
+ type: "bool",
849
+ },
850
+ {
851
+ name: "supply",
852
+ type: "uint256",
853
+ },
854
+ {
855
+ name: "withdrawalLimit",
856
+ type: "uint256",
857
+ },
858
+ {
859
+ name: "lastUpdateTimestamp",
860
+ type: "uint256",
861
+ },
862
+ {
863
+ name: "expandPercent",
864
+ type: "uint256",
865
+ },
866
+ {
867
+ name: "expandDuration",
868
+ type: "uint256",
869
+ },
870
+ {
871
+ name: "baseWithdrawalLimit",
872
+ type: "uint256",
873
+ },
874
+ {
875
+ name: "withdrawableUntilLimit",
876
+ type: "uint256",
877
+ },
878
+ {
879
+ name: "withdrawable",
880
+ type: "uint256",
881
+ },
882
+ {
883
+ name: "decayEndTimestamp",
884
+ type: "uint256",
885
+ },
886
+ {
887
+ name: "decayAmount",
888
+ type: "uint256",
889
+ },
890
+ ],
891
+ name: "liquidityUserSupplyData",
892
+ type: "tuple",
893
+ },
894
+ {
895
+ components: [
896
+ {
897
+ name: "modeWithInterest",
898
+ type: "bool",
899
+ },
900
+ {
901
+ name: "borrow",
902
+ type: "uint256",
903
+ },
904
+ {
905
+ name: "borrowLimit",
906
+ type: "uint256",
907
+ },
908
+ {
909
+ name: "lastUpdateTimestamp",
910
+ type: "uint256",
911
+ },
912
+ {
913
+ name: "expandPercent",
914
+ type: "uint256",
915
+ },
916
+ {
917
+ name: "expandDuration",
918
+ type: "uint256",
919
+ },
920
+ {
921
+ name: "baseBorrowLimit",
922
+ type: "uint256",
923
+ },
924
+ {
925
+ name: "maxBorrowLimit",
926
+ type: "uint256",
927
+ },
928
+ {
929
+ name: "borrowableUntilLimit",
930
+ type: "uint256",
931
+ },
932
+ {
933
+ name: "borrowable",
934
+ type: "uint256",
935
+ },
936
+ {
937
+ name: "borrowLimitUtilization",
938
+ type: "uint256",
939
+ },
940
+ ],
941
+ name: "liquidityUserBorrowData",
942
+ type: "tuple",
943
+ },
944
+ ],
945
+ name: "vaultsData_",
946
+ type: "tuple[]",
947
+ },
948
+ ],
949
+ stateMutability: "view",
950
+ type: "function",
951
+ },
952
+ {
953
+ inputs: [
954
+ {
955
+ name: "user_",
956
+ type: "address",
957
+ },
958
+ ],
959
+ name: "positionsByUser",
960
+ outputs: [
961
+ {
962
+ components: [
963
+ {
964
+ name: "nftId",
965
+ type: "uint256",
966
+ },
967
+ {
968
+ name: "owner",
969
+ type: "address",
970
+ },
971
+ {
972
+ name: "isLiquidated",
973
+ type: "bool",
974
+ },
975
+ {
976
+ name: "isSupplyPosition",
977
+ type: "bool",
978
+ },
979
+ {
980
+ name: "tick",
981
+ type: "int256",
982
+ },
983
+ {
984
+ name: "tickId",
985
+ type: "uint256",
986
+ },
987
+ {
988
+ name: "beforeSupply",
989
+ type: "uint256",
990
+ },
991
+ {
992
+ name: "beforeBorrow",
993
+ type: "uint256",
994
+ },
995
+ {
996
+ name: "beforeDustBorrow",
997
+ type: "uint256",
998
+ },
999
+ {
1000
+ name: "supply",
1001
+ type: "uint256",
1002
+ },
1003
+ {
1004
+ name: "borrow",
1005
+ type: "uint256",
1006
+ },
1007
+ {
1008
+ name: "dustBorrow",
1009
+ type: "uint256",
1010
+ },
1011
+ ],
1012
+ name: "userPositions_",
1013
+ type: "tuple[]",
1014
+ },
1015
+ {
1016
+ components: [
1017
+ {
1018
+ name: "vault",
1019
+ type: "address",
1020
+ },
1021
+ {
1022
+ name: "isSmartCol",
1023
+ type: "bool",
1024
+ },
1025
+ {
1026
+ name: "isSmartDebt",
1027
+ type: "bool",
1028
+ },
1029
+ {
1030
+ components: [
1031
+ {
1032
+ name: "liquidity",
1033
+ type: "address",
1034
+ },
1035
+ {
1036
+ name: "factory",
1037
+ type: "address",
1038
+ },
1039
+ {
1040
+ name: "operateImplementation",
1041
+ type: "address",
1042
+ },
1043
+ {
1044
+ name: "adminImplementation",
1045
+ type: "address",
1046
+ },
1047
+ {
1048
+ name: "secondaryImplementation",
1049
+ type: "address",
1050
+ },
1051
+ {
1052
+ name: "deployer",
1053
+ type: "address",
1054
+ },
1055
+ {
1056
+ name: "supply",
1057
+ type: "address",
1058
+ },
1059
+ {
1060
+ name: "borrow",
1061
+ type: "address",
1062
+ },
1063
+ {
1064
+ components: [
1065
+ {
1066
+ name: "token0",
1067
+ type: "address",
1068
+ },
1069
+ {
1070
+ name: "token1",
1071
+ type: "address",
1072
+ },
1073
+ ],
1074
+ name: "supplyToken",
1075
+ type: "tuple",
1076
+ },
1077
+ {
1078
+ components: [
1079
+ {
1080
+ name: "token0",
1081
+ type: "address",
1082
+ },
1083
+ {
1084
+ name: "token1",
1085
+ type: "address",
1086
+ },
1087
+ ],
1088
+ name: "borrowToken",
1089
+ type: "tuple",
1090
+ },
1091
+ {
1092
+ name: "vaultId",
1093
+ type: "uint256",
1094
+ },
1095
+ {
1096
+ name: "vaultType",
1097
+ type: "uint256",
1098
+ },
1099
+ {
1100
+ name: "supplyExchangePriceSlot",
1101
+ type: "bytes32",
1102
+ },
1103
+ {
1104
+ name: "borrowExchangePriceSlot",
1105
+ type: "bytes32",
1106
+ },
1107
+ {
1108
+ name: "userSupplySlot",
1109
+ type: "bytes32",
1110
+ },
1111
+ {
1112
+ name: "userBorrowSlot",
1113
+ type: "bytes32",
1114
+ },
1115
+ ],
1116
+ name: "constantVariables",
1117
+ type: "tuple",
1118
+ },
1119
+ {
1120
+ components: [
1121
+ {
1122
+ name: "supplyRateMagnifier",
1123
+ type: "uint16",
1124
+ },
1125
+ {
1126
+ name: "borrowRateMagnifier",
1127
+ type: "uint16",
1128
+ },
1129
+ {
1130
+ name: "collateralFactor",
1131
+ type: "uint16",
1132
+ },
1133
+ {
1134
+ name: "liquidationThreshold",
1135
+ type: "uint16",
1136
+ },
1137
+ {
1138
+ name: "liquidationMaxLimit",
1139
+ type: "uint16",
1140
+ },
1141
+ {
1142
+ name: "withdrawalGap",
1143
+ type: "uint16",
1144
+ },
1145
+ {
1146
+ name: "liquidationPenalty",
1147
+ type: "uint16",
1148
+ },
1149
+ {
1150
+ name: "borrowFee",
1151
+ type: "uint16",
1152
+ },
1153
+ {
1154
+ name: "oracle",
1155
+ type: "address",
1156
+ },
1157
+ {
1158
+ name: "oraclePriceOperate",
1159
+ type: "uint256",
1160
+ },
1161
+ {
1162
+ name: "oraclePriceLiquidate",
1163
+ type: "uint256",
1164
+ },
1165
+ {
1166
+ name: "rebalancer",
1167
+ type: "address",
1168
+ },
1169
+ {
1170
+ name: "lastUpdateTimestamp",
1171
+ type: "uint256",
1172
+ },
1173
+ ],
1174
+ name: "configs",
1175
+ type: "tuple",
1176
+ },
1177
+ {
1178
+ components: [
1179
+ {
1180
+ name: "lastStoredLiquiditySupplyExchangePrice",
1181
+ type: "uint256",
1182
+ },
1183
+ {
1184
+ name: "lastStoredLiquidityBorrowExchangePrice",
1185
+ type: "uint256",
1186
+ },
1187
+ {
1188
+ name: "lastStoredVaultSupplyExchangePrice",
1189
+ type: "uint256",
1190
+ },
1191
+ {
1192
+ name: "lastStoredVaultBorrowExchangePrice",
1193
+ type: "uint256",
1194
+ },
1195
+ {
1196
+ name: "liquiditySupplyExchangePrice",
1197
+ type: "uint256",
1198
+ },
1199
+ {
1200
+ name: "liquidityBorrowExchangePrice",
1201
+ type: "uint256",
1202
+ },
1203
+ {
1204
+ name: "vaultSupplyExchangePrice",
1205
+ type: "uint256",
1206
+ },
1207
+ {
1208
+ name: "vaultBorrowExchangePrice",
1209
+ type: "uint256",
1210
+ },
1211
+ {
1212
+ name: "supplyRateLiquidity",
1213
+ type: "uint256",
1214
+ },
1215
+ {
1216
+ name: "borrowRateLiquidity",
1217
+ type: "uint256",
1218
+ },
1219
+ {
1220
+ name: "supplyRateVault",
1221
+ type: "int256",
1222
+ },
1223
+ {
1224
+ name: "borrowRateVault",
1225
+ type: "int256",
1226
+ },
1227
+ {
1228
+ name: "rewardsOrFeeRateSupply",
1229
+ type: "int256",
1230
+ },
1231
+ {
1232
+ name: "rewardsOrFeeRateBorrow",
1233
+ type: "int256",
1234
+ },
1235
+ ],
1236
+ name: "exchangePricesAndRates",
1237
+ type: "tuple",
1238
+ },
1239
+ {
1240
+ components: [
1241
+ {
1242
+ name: "totalSupplyVault",
1243
+ type: "uint256",
1244
+ },
1245
+ {
1246
+ name: "totalBorrowVault",
1247
+ type: "uint256",
1248
+ },
1249
+ {
1250
+ name: "totalSupplyLiquidityOrDex",
1251
+ type: "uint256",
1252
+ },
1253
+ {
1254
+ name: "totalBorrowLiquidityOrDex",
1255
+ type: "uint256",
1256
+ },
1257
+ {
1258
+ name: "absorbedSupply",
1259
+ type: "uint256",
1260
+ },
1261
+ {
1262
+ name: "absorbedBorrow",
1263
+ type: "uint256",
1264
+ },
1265
+ ],
1266
+ name: "totalSupplyAndBorrow",
1267
+ type: "tuple",
1268
+ },
1269
+ {
1270
+ components: [
1271
+ {
1272
+ name: "withdrawLimit",
1273
+ type: "uint256",
1274
+ },
1275
+ {
1276
+ name: "withdrawableUntilLimit",
1277
+ type: "uint256",
1278
+ },
1279
+ {
1280
+ name: "withdrawable",
1281
+ type: "uint256",
1282
+ },
1283
+ {
1284
+ name: "borrowLimit",
1285
+ type: "uint256",
1286
+ },
1287
+ {
1288
+ name: "borrowableUntilLimit",
1289
+ type: "uint256",
1290
+ },
1291
+ {
1292
+ name: "borrowable",
1293
+ type: "uint256",
1294
+ },
1295
+ {
1296
+ name: "borrowLimitUtilization",
1297
+ type: "uint256",
1298
+ },
1299
+ {
1300
+ name: "minimumBorrowing",
1301
+ type: "uint256",
1302
+ },
1303
+ ],
1304
+ name: "limitsAndAvailability",
1305
+ type: "tuple",
1306
+ },
1307
+ {
1308
+ components: [
1309
+ {
1310
+ name: "totalPositions",
1311
+ type: "uint256",
1312
+ },
1313
+ {
1314
+ name: "topTick",
1315
+ type: "int256",
1316
+ },
1317
+ {
1318
+ name: "currentBranch",
1319
+ type: "uint256",
1320
+ },
1321
+ {
1322
+ name: "totalBranch",
1323
+ type: "uint256",
1324
+ },
1325
+ {
1326
+ name: "totalBorrow",
1327
+ type: "uint256",
1328
+ },
1329
+ {
1330
+ name: "totalSupply",
1331
+ type: "uint256",
1332
+ },
1333
+ {
1334
+ components: [
1335
+ {
1336
+ name: "status",
1337
+ type: "uint256",
1338
+ },
1339
+ {
1340
+ name: "minimaTick",
1341
+ type: "int256",
1342
+ },
1343
+ {
1344
+ name: "debtFactor",
1345
+ type: "uint256",
1346
+ },
1347
+ {
1348
+ name: "partials",
1349
+ type: "uint256",
1350
+ },
1351
+ {
1352
+ name: "debtLiquidity",
1353
+ type: "uint256",
1354
+ },
1355
+ {
1356
+ name: "baseBranchId",
1357
+ type: "uint256",
1358
+ },
1359
+ {
1360
+ name: "baseBranchMinima",
1361
+ type: "int256",
1362
+ },
1363
+ ],
1364
+ name: "currentBranchState",
1365
+ type: "tuple",
1366
+ },
1367
+ ],
1368
+ name: "vaultState",
1369
+ type: "tuple",
1370
+ },
1371
+ {
1372
+ components: [
1373
+ {
1374
+ name: "modeWithInterest",
1375
+ type: "bool",
1376
+ },
1377
+ {
1378
+ name: "supply",
1379
+ type: "uint256",
1380
+ },
1381
+ {
1382
+ name: "withdrawalLimit",
1383
+ type: "uint256",
1384
+ },
1385
+ {
1386
+ name: "lastUpdateTimestamp",
1387
+ type: "uint256",
1388
+ },
1389
+ {
1390
+ name: "expandPercent",
1391
+ type: "uint256",
1392
+ },
1393
+ {
1394
+ name: "expandDuration",
1395
+ type: "uint256",
1396
+ },
1397
+ {
1398
+ name: "baseWithdrawalLimit",
1399
+ type: "uint256",
1400
+ },
1401
+ {
1402
+ name: "withdrawableUntilLimit",
1403
+ type: "uint256",
1404
+ },
1405
+ {
1406
+ name: "withdrawable",
1407
+ type: "uint256",
1408
+ },
1409
+ {
1410
+ name: "decayEndTimestamp",
1411
+ type: "uint256",
1412
+ },
1413
+ {
1414
+ name: "decayAmount",
1415
+ type: "uint256",
1416
+ },
1417
+ ],
1418
+ name: "liquidityUserSupplyData",
1419
+ type: "tuple",
1420
+ },
1421
+ {
1422
+ components: [
1423
+ {
1424
+ name: "modeWithInterest",
1425
+ type: "bool",
1426
+ },
1427
+ {
1428
+ name: "borrow",
1429
+ type: "uint256",
1430
+ },
1431
+ {
1432
+ name: "borrowLimit",
1433
+ type: "uint256",
1434
+ },
1435
+ {
1436
+ name: "lastUpdateTimestamp",
1437
+ type: "uint256",
1438
+ },
1439
+ {
1440
+ name: "expandPercent",
1441
+ type: "uint256",
1442
+ },
1443
+ {
1444
+ name: "expandDuration",
1445
+ type: "uint256",
1446
+ },
1447
+ {
1448
+ name: "baseBorrowLimit",
1449
+ type: "uint256",
1450
+ },
1451
+ {
1452
+ name: "maxBorrowLimit",
1453
+ type: "uint256",
1454
+ },
1455
+ {
1456
+ name: "borrowableUntilLimit",
1457
+ type: "uint256",
1458
+ },
1459
+ {
1460
+ name: "borrowable",
1461
+ type: "uint256",
1462
+ },
1463
+ {
1464
+ name: "borrowLimitUtilization",
1465
+ type: "uint256",
1466
+ },
1467
+ ],
1468
+ name: "liquidityUserBorrowData",
1469
+ type: "tuple",
1470
+ },
1471
+ ],
1472
+ name: "vaultsData_",
1473
+ type: "tuple[]",
1474
+ },
1475
+ ],
1476
+ stateMutability: "view",
1477
+ type: "function",
1478
+ },
1479
+ ];