@gearbox-protocol/sdk 1.1.0 → 1.2.0

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 (98) hide show
  1. package/lib/core/creditManager.d.ts +5 -0
  2. package/lib/core/creditManager.js +5 -0
  3. package/lib/pathfinder/path.js +5 -5
  4. package/lib/payload/creditManager.d.ts +5 -0
  5. package/lib/strategies/creditFacade.js +1 -1
  6. package/lib/types/contracts/interfaces/ICreditConfigurator.sol/ICreditConfigurator.d.ts +271 -20
  7. package/lib/types/contracts/interfaces/ICreditConfigurator.sol/ICreditConfiguratorEvents.d.ts +8 -19
  8. package/lib/types/contracts/interfaces/ICreditFacade.sol/ICreditFacadeExtended.d.ts +9 -9
  9. package/lib/types/contracts/interfaces/ICreditManagerV2.sol/ICreditManagerV2.d.ts +52 -116
  10. package/lib/types/contracts/interfaces/IDataCompressor.sol/IDataCompressor.d.ts +26 -1
  11. package/lib/types/contracts/interfaces/IDegenNFT.sol/IDegenNFT.d.ts +10 -10
  12. package/lib/types/contracts/interfaces/V1/ICreditFilter.d.ts +3 -3
  13. package/lib/types/contracts/interfaces/adapters/convex/IConvexV1BoosterAdapter.d.ts +1 -9
  14. package/lib/types/contracts/pathfinder/index.d.ts +0 -1
  15. package/lib/types/contracts/pathfinder/interfaces/IClosePathResolver.d.ts +125 -0
  16. package/lib/types/contracts/pathfinder/{ISwapper.js → interfaces/IClosePathResolver.js} +0 -0
  17. package/lib/types/contracts/pathfinder/interfaces/IDepositor.sol/IDepositor.d.ts +159 -0
  18. package/lib/types/contracts/pathfinder/interfaces/{ISwapPathFinder.js → IDepositor.sol/IDepositor.js} +0 -0
  19. package/lib/types/contracts/pathfinder/interfaces/IDepositor.sol/IDepositorOptions.d.ts +165 -0
  20. package/lib/types/contracts/pathfinder/interfaces/IDepositor.sol/IDepositorOptions.js +2 -0
  21. package/lib/types/contracts/pathfinder/interfaces/IDepositor.sol/index.d.ts +2 -0
  22. package/lib/types/contracts/pathfinder/interfaces/IDepositor.sol/index.js +2 -0
  23. package/lib/types/contracts/pathfinder/interfaces/IGasPricer.d.ts +44 -0
  24. package/lib/types/contracts/pathfinder/interfaces/IGasPricer.js +2 -0
  25. package/lib/types/contracts/pathfinder/interfaces/ILPWorker.sol/ILPWorker.d.ts +113 -0
  26. package/lib/types/contracts/pathfinder/interfaces/ILPWorker.sol/ILPWorker.js +2 -0
  27. package/lib/types/contracts/pathfinder/interfaces/ILPWorker.sol/ILPWorkerOptions.d.ts +119 -0
  28. package/lib/types/contracts/pathfinder/interfaces/ILPWorker.sol/ILPWorkerOptions.js +2 -0
  29. package/lib/types/contracts/pathfinder/interfaces/ILPWorker.sol/index.d.ts +2 -0
  30. package/lib/types/contracts/pathfinder/interfaces/ILPWorker.sol/index.js +2 -0
  31. package/lib/types/contracts/pathfinder/interfaces/IPathFinder.d.ts +210 -0
  32. package/lib/types/contracts/pathfinder/interfaces/IPathFinder.js +2 -0
  33. package/lib/types/contracts/pathfinder/interfaces/IPathResolver.d.ts +131 -0
  34. package/lib/types/contracts/pathfinder/interfaces/IPathResolver.js +2 -0
  35. package/lib/types/contracts/pathfinder/interfaces/{ISwapPathFinder.d.ts → ISwapAggregator.d.ts} +98 -14
  36. package/lib/types/contracts/pathfinder/interfaces/ISwapAggregator.js +2 -0
  37. package/lib/types/contracts/pathfinder/{ISwapper.d.ts → interfaces/ISwapper.d.ts} +1 -1
  38. package/lib/types/contracts/pathfinder/interfaces/ISwapper.js +2 -0
  39. package/lib/types/contracts/pathfinder/interfaces/IWithdrawer.sol/IWithdrawer.d.ts +144 -0
  40. package/lib/types/contracts/pathfinder/interfaces/IWithdrawer.sol/IWithdrawer.js +2 -0
  41. package/lib/types/contracts/pathfinder/interfaces/IWithdrawer.sol/IWithdrawerOptions.d.ts +160 -0
  42. package/lib/types/contracts/pathfinder/interfaces/IWithdrawer.sol/IWithdrawerOptions.js +2 -0
  43. package/lib/types/contracts/pathfinder/interfaces/IWithdrawer.sol/index.d.ts +2 -0
  44. package/lib/types/contracts/pathfinder/interfaces/IWithdrawer.sol/index.js +2 -0
  45. package/lib/types/contracts/pathfinder/interfaces/index.d.ts +12 -1
  46. package/lib/types/factories/contracts/interfaces/ICreditConfigurator.sol/ICreditConfiguratorEvents__factory.js +1 -14
  47. package/lib/types/factories/contracts/interfaces/ICreditConfigurator.sol/ICreditConfiguratorExceptions__factory.js +2 -17
  48. package/lib/types/factories/contracts/interfaces/ICreditConfigurator.sol/ICreditConfigurator__factory.js +240 -31
  49. package/lib/types/factories/contracts/interfaces/ICreditFacade.sol/ICreditFacadeExceptions__factory.js +7 -2
  50. package/lib/types/factories/contracts/interfaces/ICreditFacade.sol/ICreditFacadeExtended__factory.js +1 -1
  51. package/lib/types/factories/contracts/interfaces/ICreditFacade.sol/ICreditFacade__factory.js +7 -2
  52. package/lib/types/factories/contracts/interfaces/ICreditManagerV2.sol/ICreditManagerV2Exceptions__factory.js +2 -2
  53. package/lib/types/factories/contracts/interfaces/ICreditManagerV2.sol/ICreditManagerV2__factory.js +41 -84
  54. package/lib/types/factories/contracts/interfaces/IDataCompressor.sol/IDataCompressor__factory.d.ts +14 -14
  55. package/lib/types/factories/contracts/interfaces/IDataCompressor.sol/IDataCompressor__factory.js +74 -0
  56. package/lib/types/factories/contracts/interfaces/IDegenNFT.sol/IDegenNFT__factory.js +4 -4
  57. package/lib/types/factories/contracts/interfaces/V1/ICreditFilter__factory.js +1 -1
  58. package/lib/types/factories/contracts/interfaces/adapters/convex/IConvexV1BoosterAdapter__factory.js +0 -13
  59. package/lib/types/factories/contracts/pathfinder/index.d.ts +0 -1
  60. package/lib/types/factories/contracts/pathfinder/index.js +1 -3
  61. package/lib/types/factories/contracts/pathfinder/interfaces/IClosePathResolver__factory.d.ts +57 -0
  62. package/lib/types/factories/contracts/pathfinder/interfaces/IClosePathResolver__factory.js +264 -0
  63. package/lib/types/factories/contracts/pathfinder/interfaces/IDepositor.sol/IDepositorOptions__factory.d.ts +62 -0
  64. package/lib/types/factories/contracts/pathfinder/interfaces/IDepositor.sol/IDepositorOptions__factory.js +717 -0
  65. package/lib/types/factories/contracts/pathfinder/interfaces/IDepositor.sol/IDepositor__factory.d.ts +62 -0
  66. package/lib/types/factories/contracts/pathfinder/interfaces/IDepositor.sol/IDepositor__factory.js +702 -0
  67. package/lib/types/factories/contracts/pathfinder/interfaces/IDepositor.sol/index.d.ts +2 -0
  68. package/lib/types/factories/contracts/pathfinder/interfaces/IDepositor.sol/index.js +10 -0
  69. package/lib/types/factories/contracts/pathfinder/interfaces/IGasPricer__factory.d.ts +22 -0
  70. package/lib/types/factories/contracts/pathfinder/interfaces/IGasPricer__factory.js +41 -0
  71. package/lib/types/factories/contracts/pathfinder/interfaces/ILPWorker.sol/ILPWorkerOptions__factory.d.ts +62 -0
  72. package/lib/types/factories/contracts/pathfinder/interfaces/ILPWorker.sol/ILPWorkerOptions__factory.js +252 -0
  73. package/lib/types/factories/contracts/pathfinder/interfaces/ILPWorker.sol/ILPWorker__factory.d.ts +62 -0
  74. package/lib/types/factories/contracts/pathfinder/interfaces/ILPWorker.sol/ILPWorker__factory.js +247 -0
  75. package/lib/types/factories/contracts/pathfinder/interfaces/ILPWorker.sol/index.d.ts +2 -0
  76. package/lib/types/factories/contracts/pathfinder/interfaces/ILPWorker.sol/index.js +10 -0
  77. package/lib/types/factories/contracts/pathfinder/interfaces/{ISwapPathFinder__factory.d.ts → IPathFinder__factory.d.ts} +42 -28
  78. package/lib/types/factories/contracts/pathfinder/interfaces/IPathFinder__factory.js +483 -0
  79. package/lib/types/factories/contracts/pathfinder/interfaces/IPathResolver__factory.d.ts +57 -0
  80. package/lib/types/factories/contracts/pathfinder/interfaces/IPathResolver__factory.js +467 -0
  81. package/lib/types/factories/contracts/pathfinder/interfaces/ISwapAggregator__factory.d.ts +62 -0
  82. package/lib/types/factories/contracts/pathfinder/interfaces/ISwapAggregator__factory.js +782 -0
  83. package/lib/types/factories/contracts/pathfinder/{ISwapper__factory.d.ts → interfaces/ISwapper__factory.d.ts} +1 -1
  84. package/lib/types/factories/contracts/pathfinder/{ISwapper__factory.js → interfaces/ISwapper__factory.js} +0 -0
  85. package/lib/types/factories/contracts/pathfinder/interfaces/IWithdrawer.sol/IWithdrawerOptions__factory.d.ts +62 -0
  86. package/lib/types/factories/contracts/pathfinder/interfaces/IWithdrawer.sol/IWithdrawerOptions__factory.js +729 -0
  87. package/lib/types/factories/contracts/pathfinder/interfaces/IWithdrawer.sol/IWithdrawer__factory.d.ts +62 -0
  88. package/lib/types/factories/contracts/pathfinder/interfaces/IWithdrawer.sol/IWithdrawer__factory.js +692 -0
  89. package/lib/types/factories/contracts/pathfinder/interfaces/IWithdrawer.sol/index.d.ts +2 -0
  90. package/lib/types/factories/contracts/pathfinder/interfaces/IWithdrawer.sol/index.js +10 -0
  91. package/lib/types/factories/contracts/pathfinder/interfaces/index.d.ts +9 -1
  92. package/lib/types/factories/contracts/pathfinder/interfaces/index.js +39 -3
  93. package/lib/types/factories/contracts/support/MultiCall.sol/Multicall2__factory.d.ts +1 -1
  94. package/lib/types/factories/contracts/support/MultiCall.sol/Multicall2__factory.js +1 -1
  95. package/lib/types/index.d.ts +24 -4
  96. package/lib/types/index.js +24 -4
  97. package/package.json +2 -2
  98. package/lib/types/factories/contracts/pathfinder/interfaces/ISwapPathFinder__factory.js +0 -346
@@ -13,27 +13,12 @@ var _abi = [
13
13
  },
14
14
  {
15
15
  inputs: [],
16
- name: "ChiThresholdMoreOneException",
16
+ name: "ContractIsNotAnAllowedAdapterException",
17
17
  type: "error",
18
18
  },
19
19
  {
20
20
  inputs: [],
21
- name: "ContractNotInAllowedList",
22
- type: "error",
23
- },
24
- {
25
- inputs: [],
26
- name: "CreditManagerOrFacadeUsedAsAllowContractsException",
27
- type: "error",
28
- },
29
- {
30
- inputs: [],
31
- name: "DegenNFTnotSetException",
32
- type: "error",
33
- },
34
- {
35
- inputs: [],
36
- name: "FastCheckNotCoverCollateralDropException",
21
+ name: "CreditManagerOrFacadeUsedAsTargetContractsException",
37
22
  type: "error",
38
23
  },
39
24
  {
@@ -137,19 +122,6 @@ var _abi = [
137
122
  name: "CreditFacadeUpgraded",
138
123
  type: "event",
139
124
  },
140
- {
141
- anonymous: false,
142
- inputs: [
143
- {
144
- indexed: false,
145
- internalType: "bool",
146
- name: "",
147
- type: "bool",
148
- },
149
- ],
150
- name: "DegenModeUpdated",
151
- type: "event",
152
- },
153
125
  {
154
126
  anonymous: false,
155
127
  inputs: [
@@ -236,7 +208,7 @@ var _abi = [
236
208
  type: "bool",
237
209
  },
238
210
  ],
239
- name: "IncreaseDebtModeUpdated",
211
+ name: "IncreaseDebtForbiddenModeChanged",
240
212
  type: "event",
241
213
  },
242
214
  {
@@ -373,6 +345,32 @@ var _abi = [
373
345
  stateMutability: "nonpayable",
374
346
  type: "function",
375
347
  },
348
+ {
349
+ inputs: [
350
+ {
351
+ internalType: "address",
352
+ name: "addr",
353
+ type: "address",
354
+ },
355
+ ],
356
+ name: "addContractToUpgradeable",
357
+ outputs: [],
358
+ stateMutability: "nonpayable",
359
+ type: "function",
360
+ },
361
+ {
362
+ inputs: [
363
+ {
364
+ internalType: "address",
365
+ name: "liquidator",
366
+ type: "address",
367
+ },
368
+ ],
369
+ name: "addEmergencyLiquidator",
370
+ outputs: [],
371
+ stateMutability: "nonpayable",
372
+ type: "function",
373
+ },
376
374
  {
377
375
  inputs: [],
378
376
  name: "addressProvider",
@@ -404,6 +402,19 @@ var _abi = [
404
402
  stateMutability: "nonpayable",
405
403
  type: "function",
406
404
  },
405
+ {
406
+ inputs: [
407
+ {
408
+ internalType: "address",
409
+ name: "token",
410
+ type: "address",
411
+ },
412
+ ],
413
+ name: "allowToken",
414
+ outputs: [],
415
+ stateMutability: "nonpayable",
416
+ type: "function",
417
+ },
407
418
  {
408
419
  inputs: [],
409
420
  name: "allowedContracts",
@@ -456,6 +467,166 @@ var _abi = [
456
467
  stateMutability: "nonpayable",
457
468
  type: "function",
458
469
  },
470
+ {
471
+ inputs: [
472
+ {
473
+ internalType: "address",
474
+ name: "token",
475
+ type: "address",
476
+ },
477
+ ],
478
+ name: "forbidToken",
479
+ outputs: [],
480
+ stateMutability: "nonpayable",
481
+ type: "function",
482
+ },
483
+ {
484
+ inputs: [
485
+ {
486
+ internalType: "address",
487
+ name: "addr",
488
+ type: "address",
489
+ },
490
+ ],
491
+ name: "removeContractFromUpgradeable",
492
+ outputs: [],
493
+ stateMutability: "nonpayable",
494
+ type: "function",
495
+ },
496
+ {
497
+ inputs: [
498
+ {
499
+ internalType: "address",
500
+ name: "liquidator",
501
+ type: "address",
502
+ },
503
+ ],
504
+ name: "removeEmergencyLiquidator",
505
+ outputs: [],
506
+ stateMutability: "nonpayable",
507
+ type: "function",
508
+ },
509
+ {
510
+ inputs: [
511
+ {
512
+ internalType: "uint40",
513
+ name: "newExpirationDate",
514
+ type: "uint40",
515
+ },
516
+ ],
517
+ name: "setExpirationDate",
518
+ outputs: [],
519
+ stateMutability: "nonpayable",
520
+ type: "function",
521
+ },
522
+ {
523
+ inputs: [
524
+ {
525
+ internalType: "uint16",
526
+ name: "_feeInterest",
527
+ type: "uint16",
528
+ },
529
+ {
530
+ internalType: "uint16",
531
+ name: "_feeLiquidation",
532
+ type: "uint16",
533
+ },
534
+ {
535
+ internalType: "uint16",
536
+ name: "_liquidationPremium",
537
+ type: "uint16",
538
+ },
539
+ {
540
+ internalType: "uint16",
541
+ name: "_feeLiquidationExpired",
542
+ type: "uint16",
543
+ },
544
+ {
545
+ internalType: "uint16",
546
+ name: "_liquidationPremiumExpired",
547
+ type: "uint16",
548
+ },
549
+ ],
550
+ name: "setFees",
551
+ outputs: [],
552
+ stateMutability: "nonpayable",
553
+ type: "function",
554
+ },
555
+ {
556
+ inputs: [
557
+ {
558
+ internalType: "bool",
559
+ name: "_mode",
560
+ type: "bool",
561
+ },
562
+ ],
563
+ name: "setIncreaseDebtForbidden",
564
+ outputs: [],
565
+ stateMutability: "nonpayable",
566
+ type: "function",
567
+ },
568
+ {
569
+ inputs: [
570
+ {
571
+ internalType: "uint128",
572
+ name: "newLimit",
573
+ type: "uint128",
574
+ },
575
+ ],
576
+ name: "setLimitPerBlock",
577
+ outputs: [],
578
+ stateMutability: "nonpayable",
579
+ type: "function",
580
+ },
581
+ {
582
+ inputs: [
583
+ {
584
+ internalType: "uint128",
585
+ name: "_minBorrowedAmount",
586
+ type: "uint128",
587
+ },
588
+ {
589
+ internalType: "uint128",
590
+ name: "_maxBorrowedAmount",
591
+ type: "uint128",
592
+ },
593
+ ],
594
+ name: "setLimits",
595
+ outputs: [],
596
+ stateMutability: "nonpayable",
597
+ type: "function",
598
+ },
599
+ {
600
+ inputs: [
601
+ {
602
+ internalType: "address",
603
+ name: "token",
604
+ type: "address",
605
+ },
606
+ {
607
+ internalType: "uint16",
608
+ name: "liquidationThreshold",
609
+ type: "uint16",
610
+ },
611
+ ],
612
+ name: "setLiquidationThreshold",
613
+ outputs: [],
614
+ stateMutability: "nonpayable",
615
+ type: "function",
616
+ },
617
+ {
618
+ inputs: [
619
+ {
620
+ internalType: "uint8",
621
+ name: "maxEnabledTokens",
622
+ type: "uint8",
623
+ },
624
+ ],
625
+ name: "setMaxEnabledTokens",
626
+ outputs: [],
627
+ stateMutability: "nonpayable",
628
+ type: "function",
629
+ },
459
630
  {
460
631
  inputs: [],
461
632
  name: "underlying",
@@ -469,6 +640,44 @@ var _abi = [
469
640
  stateMutability: "view",
470
641
  type: "function",
471
642
  },
643
+ {
644
+ inputs: [
645
+ {
646
+ internalType: "address",
647
+ name: "_creditConfigurator",
648
+ type: "address",
649
+ },
650
+ ],
651
+ name: "upgradeCreditConfigurator",
652
+ outputs: [],
653
+ stateMutability: "nonpayable",
654
+ type: "function",
655
+ },
656
+ {
657
+ inputs: [
658
+ {
659
+ internalType: "address",
660
+ name: "_creditFacade",
661
+ type: "address",
662
+ },
663
+ {
664
+ internalType: "bool",
665
+ name: "migrateParams",
666
+ type: "bool",
667
+ },
668
+ ],
669
+ name: "upgradeCreditFacade",
670
+ outputs: [],
671
+ stateMutability: "nonpayable",
672
+ type: "function",
673
+ },
674
+ {
675
+ inputs: [],
676
+ name: "upgradePriceOracle",
677
+ outputs: [],
678
+ stateMutability: "nonpayable",
679
+ type: "function",
680
+ },
472
681
  {
473
682
  inputs: [],
474
683
  name: "version",
@@ -11,6 +11,11 @@ var _abi = [
11
11
  name: "AccountTransferNotAllowedException",
12
12
  type: "error",
13
13
  },
14
+ {
15
+ inputs: [],
16
+ name: "ActionProhibitedWithForbiddenTokensException",
17
+ type: "error",
18
+ },
14
19
  {
15
20
  inputs: [],
16
21
  name: "AdaptersOrCreditFacadeOnlyException",
@@ -139,12 +144,12 @@ var _abi = [
139
144
  },
140
145
  {
141
146
  inputs: [],
142
- name: "TooMuchEnabledTokensException",
147
+ name: "TooManyEnabledTokensException",
143
148
  type: "error",
144
149
  },
145
150
  {
146
151
  inputs: [],
147
- name: "TooMuchTokensException",
152
+ name: "TooManyTokensException",
148
153
  type: "error",
149
154
  },
150
155
  {
@@ -39,7 +39,7 @@ var _abi = [
39
39
  type: "tuple[]",
40
40
  },
41
41
  ],
42
- name: "revertIfGetLessThan",
42
+ name: "revertIfReceivedLessThan",
43
43
  outputs: [],
44
44
  stateMutability: "nonpayable",
45
45
  type: "function",
@@ -11,6 +11,11 @@ var _abi = [
11
11
  name: "AccountTransferNotAllowedException",
12
12
  type: "error",
13
13
  },
14
+ {
15
+ inputs: [],
16
+ name: "ActionProhibitedWithForbiddenTokensException",
17
+ type: "error",
18
+ },
14
19
  {
15
20
  inputs: [],
16
21
  name: "AdaptersOrCreditFacadeOnlyException",
@@ -139,12 +144,12 @@ var _abi = [
139
144
  },
140
145
  {
141
146
  inputs: [],
142
- name: "TooMuchEnabledTokensException",
147
+ name: "TooManyEnabledTokensException",
143
148
  type: "error",
144
149
  },
145
150
  {
146
151
  inputs: [],
147
- name: "TooMuchTokensException",
152
+ name: "TooManyTokensException",
148
153
  type: "error",
149
154
  },
150
155
  {
@@ -58,12 +58,12 @@ var _abi = [
58
58
  },
59
59
  {
60
60
  inputs: [],
61
- name: "TooMuchEnabledTokensException",
61
+ name: "TooManyEnabledTokensException",
62
62
  type: "error",
63
63
  },
64
64
  {
65
65
  inputs: [],
66
- name: "TooMuchTokensException",
66
+ name: "TooManyTokensException",
67
67
  type: "error",
68
68
  },
69
69
  {
@@ -58,12 +58,12 @@ var _abi = [
58
58
  },
59
59
  {
60
60
  inputs: [],
61
- name: "TooMuchEnabledTokensException",
61
+ name: "TooManyEnabledTokensException",
62
62
  type: "error",
63
63
  },
64
64
  {
65
65
  inputs: [],
66
- name: "TooMuchTokensException",
66
+ name: "TooManyTokensException",
67
67
  type: "error",
68
68
  },
69
69
  {
@@ -131,7 +131,7 @@ var _abi = [
131
131
  },
132
132
  {
133
133
  internalType: "address",
134
- name: "onBehalfOf",
134
+ name: "creditAccount",
135
135
  type: "address",
136
136
  },
137
137
  {
@@ -150,19 +150,6 @@ var _abi = [
150
150
  stateMutability: "nonpayable",
151
151
  type: "function",
152
152
  },
153
- {
154
- inputs: [
155
- {
156
- internalType: "address",
157
- name: "token",
158
- type: "address",
159
- },
160
- ],
161
- name: "addToken",
162
- outputs: [],
163
- stateMutability: "nonpayable",
164
- type: "function",
165
- },
166
153
  {
167
154
  inputs: [
168
155
  {
@@ -288,24 +275,6 @@ var _abi = [
288
275
  stateMutability: "view",
289
276
  type: "function",
290
277
  },
291
- {
292
- inputs: [
293
- {
294
- internalType: "address",
295
- name: "adapter",
296
- type: "address",
297
- },
298
- {
299
- internalType: "address",
300
- name: "targetContract",
301
- type: "address",
302
- },
303
- ],
304
- name: "changeContractAllowance",
305
- outputs: [],
306
- stateMutability: "nonpayable",
307
- type: "function",
308
- },
309
278
  {
310
279
  inputs: [
311
280
  {
@@ -315,7 +284,7 @@ var _abi = [
315
284
  },
316
285
  {
317
286
  internalType: "address",
318
- name: "tokenOut",
287
+ name: "token",
319
288
  type: "address",
320
289
  },
321
290
  ],
@@ -356,7 +325,7 @@ var _abi = [
356
325
  },
357
326
  {
358
327
  internalType: "address",
359
- name: "caller",
328
+ name: "payer",
360
329
  type: "address",
361
330
  },
362
331
  {
@@ -451,7 +420,7 @@ var _abi = [
451
420
  inputs: [
452
421
  {
453
422
  internalType: "address",
454
- name: "adapter",
423
+ name: "targetContract",
455
424
  type: "address",
456
425
  },
457
426
  ],
@@ -511,6 +480,25 @@ var _abi = [
511
480
  stateMutability: "view",
512
481
  type: "function",
513
482
  },
483
+ {
484
+ inputs: [
485
+ {
486
+ internalType: "address",
487
+ name: "creditAccount",
488
+ type: "address",
489
+ },
490
+ ],
491
+ name: "cumulativeDropAtFastCheckRAY",
492
+ outputs: [
493
+ {
494
+ internalType: "uint256",
495
+ name: "",
496
+ type: "uint256",
497
+ },
498
+ ],
499
+ stateMutability: "view",
500
+ type: "function",
501
+ },
514
502
  {
515
503
  inputs: [
516
504
  {
@@ -557,7 +545,7 @@ var _abi = [
557
545
  },
558
546
  {
559
547
  internalType: "address",
560
- name: "target",
548
+ name: "targetContract",
561
549
  type: "address",
562
550
  },
563
551
  {
@@ -692,7 +680,7 @@ var _abi = [
692
680
  inputs: [
693
681
  {
694
682
  internalType: "address",
695
- name: "",
683
+ name: "token",
696
684
  type: "address",
697
685
  },
698
686
  ],
@@ -711,7 +699,7 @@ var _abi = [
711
699
  inputs: [
712
700
  {
713
701
  internalType: "address",
714
- name: "borrower",
702
+ name: "creditAccount",
715
703
  type: "address",
716
704
  },
717
705
  {
@@ -812,50 +800,6 @@ var _abi = [
812
800
  stateMutability: "view",
813
801
  type: "function",
814
802
  },
815
- {
816
- inputs: [
817
- {
818
- internalType: "uint256",
819
- name: "_forbidMask",
820
- type: "uint256",
821
- },
822
- ],
823
- name: "setForbidMask",
824
- outputs: [],
825
- stateMutability: "nonpayable",
826
- type: "function",
827
- },
828
- {
829
- inputs: [
830
- {
831
- internalType: "address",
832
- name: "token",
833
- type: "address",
834
- },
835
- {
836
- internalType: "uint16",
837
- name: "liquidationThreshold",
838
- type: "uint16",
839
- },
840
- ],
841
- name: "setLiquidationThreshold",
842
- outputs: [],
843
- stateMutability: "nonpayable",
844
- type: "function",
845
- },
846
- {
847
- inputs: [
848
- {
849
- internalType: "uint8",
850
- name: "_maxEnabledTokens",
851
- type: "uint8",
852
- },
853
- ],
854
- name: "setMaxEnabledTokens",
855
- outputs: [],
856
- stateMutability: "nonpayable",
857
- type: "function",
858
- },
859
803
  {
860
804
  inputs: [
861
805
  {
@@ -906,6 +850,19 @@ var _abi = [
906
850
  stateMutability: "view",
907
851
  type: "function",
908
852
  },
853
+ {
854
+ inputs: [],
855
+ name: "universalAdapter",
856
+ outputs: [
857
+ {
858
+ internalType: "address",
859
+ name: "",
860
+ type: "address",
861
+ },
862
+ ],
863
+ stateMutability: "view",
864
+ type: "function",
865
+ },
909
866
  {
910
867
  inputs: [],
911
868
  name: "version",
@@ -8,6 +8,20 @@ export declare class IDataCompressor__factory {
8
8
  type: string;
9
9
  outputs?: undefined;
10
10
  stateMutability?: undefined;
11
+ } | {
12
+ inputs: {
13
+ internalType: string;
14
+ name: string;
15
+ type: string;
16
+ }[];
17
+ name: string;
18
+ outputs: {
19
+ internalType: string;
20
+ name: string;
21
+ type: string;
22
+ }[];
23
+ stateMutability: string;
24
+ type: string;
11
25
  } | {
12
26
  inputs: {
13
27
  internalType: string;
@@ -37,20 +51,6 @@ export declare class IDataCompressor__factory {
37
51
  }[];
38
52
  stateMutability: string;
39
53
  type: string;
40
- } | {
41
- inputs: {
42
- internalType: string;
43
- name: string;
44
- type: string;
45
- }[];
46
- name: string;
47
- outputs: {
48
- internalType: string;
49
- name: string;
50
- type: string;
51
- }[];
52
- stateMutability: string;
53
- type: string;
54
54
  })[];
55
55
  static createInterface(): IDataCompressorInterface;
56
56
  static connect(address: string, signerOrProvider: Signer | Provider): IDataCompressor;