@gearbox-protocol/sdk 3.0.0-next.55 → 3.0.0-next.56

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 (158) hide show
  1. package/contracts/index.sol +5 -0
  2. package/lib/core/creditAccount.d.ts +1 -2
  3. package/lib/core/creditAccount.js +0 -7
  4. package/lib/core/creditManager.js +1 -1
  5. package/lib/core/trade.d.ts +9 -8
  6. package/lib/core/trade.js +25 -22
  7. package/lib/parsers/convexBaseRewardPoolAdapterParser.js +10 -8
  8. package/lib/parsers/convexBaseRewardPoolAdapterParser.spec.js +9 -6
  9. package/lib/parsers/convexBoosterAdapterParser.js +6 -6
  10. package/lib/parsers/convexBoosterAdapterParser.spec.js +4 -4
  11. package/lib/parsers/curveAdapterParser.js +10 -10
  12. package/lib/parsers/curveAdapterParser.spec.js +6 -2
  13. package/lib/parsers/lidoAdapterParser.js +3 -2
  14. package/lib/parsers/lidoAdapterParser.spec.js +2 -2
  15. package/lib/parsers/uniV2AdapterParser.js +4 -3
  16. package/lib/parsers/uniV2AdapterParser.spec.js +3 -2
  17. package/lib/parsers/uniV3AdapterParser.js +8 -6
  18. package/lib/parsers/uniV3AdapterParser.spec.js +3 -2
  19. package/lib/parsers/wstETHAdapterParser.js +6 -4
  20. package/lib/parsers/wstETHAdapterParser.spec.js +4 -4
  21. package/lib/parsers/yearnAdapterParser.spec.js +4 -4
  22. package/lib/parsers/yearnV2AdapterParser.js +13 -3
  23. package/lib/pathfinder/core.d.ts +8 -9
  24. package/lib/pathfinder/pathfinder.d.ts +37 -10
  25. package/lib/pathfinder/pathfinder.js +45 -33
  26. package/lib/pathfinder/pathfinder.spec.js +4 -2
  27. package/lib/payload/creditAccount.d.ts +1 -2
  28. package/lib/types/IAaveV2_LendingPoolAdapter.d.ts +171 -0
  29. package/lib/types/IAaveV2_WrappedATokenAdapter.d.ts +290 -0
  30. package/lib/types/IBalancerV2Vault.sol/IBalancerV2Vault.d.ts +308 -0
  31. package/lib/types/IBalancerV2Vault.sol/IBalancerV2VaultGetters.d.ts +112 -0
  32. package/lib/types/IBalancerV2Vault.sol/index.d.ts +2 -0
  33. package/lib/types/IBalancerV2Vault.sol/index.js +2 -0
  34. package/lib/types/IBalancerV2VaultAdapter.sol/IBalancerV2VaultAdapter.d.ts +466 -0
  35. package/lib/types/IBalancerV2VaultAdapter.sol/IBalancerV2VaultAdapter.js +2 -0
  36. package/lib/types/IBalancerV2VaultAdapter.sol/IBalancerV2VaultAdapterEvents.d.ts +43 -0
  37. package/lib/types/IBalancerV2VaultAdapter.sol/IBalancerV2VaultAdapterEvents.js +2 -0
  38. package/lib/types/IBalancerV2VaultAdapter.sol/IBalancerV2VaultAdapterExceptions.d.ts +27 -0
  39. package/lib/types/IBalancerV2VaultAdapter.sol/IBalancerV2VaultAdapterExceptions.js +2 -0
  40. package/lib/types/IBalancerV2VaultAdapter.sol/index.d.ts +3 -0
  41. package/lib/types/IBalancerV2VaultAdapter.sol/index.js +2 -0
  42. package/lib/types/ICompoundV2_CTokenAdapter.sol/ICompoundV2_CTokenAdapter.d.ts +216 -0
  43. package/lib/types/ICompoundV2_CTokenAdapter.sol/ICompoundV2_CTokenAdapter.js +2 -0
  44. package/lib/types/ICompoundV2_CTokenAdapter.sol/ICompoundV2_Exceptions.d.ts +27 -0
  45. package/lib/types/ICompoundV2_CTokenAdapter.sol/ICompoundV2_Exceptions.js +2 -0
  46. package/lib/types/ICompoundV2_CTokenAdapter.sol/index.d.ts +2 -0
  47. package/lib/types/ICompoundV2_CTokenAdapter.sol/index.js +2 -0
  48. package/lib/types/IConvexV1BaseRewardPoolAdapter.d.ts +30 -30
  49. package/lib/types/IConvexV1BoosterAdapter.sol/IConvexV1BoosterAdapter.d.ts +21 -17
  50. package/lib/types/ICreditFacadeV3.sol/ICreditFacadeV3.d.ts +45 -85
  51. package/lib/types/ICreditFacadeV3.sol/ICreditFacadeV3Events.d.ts +24 -26
  52. package/lib/types/ICreditFacadeV3Multicall.d.ts +32 -40
  53. package/lib/types/ICreditManagerV3.sol/ICreditManagerV3.d.ts +99 -71
  54. package/lib/types/ICurveV1Adapter.d.ts +41 -105
  55. package/lib/types/ICurveV1_2AssetsAdapter.d.ts +41 -105
  56. package/lib/types/ICurveV1_3AssetsAdapter.d.ts +41 -105
  57. package/lib/types/ICurveV1_4AssetsAdapter.d.ts +41 -105
  58. package/lib/types/IDataCompressorV2_10.d.ts +1 -27
  59. package/lib/types/IDataCompressorV3_00.d.ts +1 -27
  60. package/lib/types/IERC4626Adapter.d.ts +238 -0
  61. package/lib/types/IERC4626Adapter.js +2 -0
  62. package/lib/types/ILidoV1Adapter.d.ts +9 -9
  63. package/lib/types/IPriceOracleV3.sol/IPriceOracleV3.d.ts +39 -14
  64. package/lib/types/IPriceOracleV3.sol/IPriceOracleV3Events.d.ts +5 -3
  65. package/lib/types/IUniswapV2Adapter.sol/IUniswapV2Adapter.d.ts +10 -9
  66. package/lib/types/IUniswapV3Adapter.sol/IUniswapV3Adapter.d.ts +27 -21
  67. package/lib/types/IYearnV2Adapter.d.ts +22 -22
  68. package/lib/types/IwstETHV1Adapter.d.ts +17 -17
  69. package/lib/types/factories/IAaveV2_LendingPoolAdapter__factory.d.ts +158 -0
  70. package/lib/types/factories/IAaveV2_LendingPoolAdapter__factory.js +215 -0
  71. package/lib/types/factories/IAaveV2_WrappedATokenAdapter__factory.d.ts +252 -0
  72. package/lib/types/factories/IAaveV2_WrappedATokenAdapter__factory.js +341 -0
  73. package/lib/types/factories/IBalancerV2Vault.sol/IBalancerV2VaultGetters__factory.d.ts +78 -0
  74. package/lib/types/factories/IBalancerV2Vault.sol/IBalancerV2VaultGetters__factory.js +111 -0
  75. package/lib/types/factories/IBalancerV2Vault.sol/IBalancerV2Vault__factory.d.ts +360 -0
  76. package/lib/types/factories/IBalancerV2Vault.sol/IBalancerV2Vault__factory.js +475 -0
  77. package/lib/types/factories/IBalancerV2Vault.sol/index.d.ts +2 -0
  78. package/lib/types/factories/IBalancerV2Vault.sol/index.js +10 -0
  79. package/lib/types/factories/IBalancerV2VaultAdapter.sol/IBalancerV2VaultAdapterEvents__factory.d.ts +23 -0
  80. package/lib/types/factories/IBalancerV2VaultAdapter.sol/IBalancerV2VaultAdapterEvents__factory.js +38 -0
  81. package/lib/types/factories/IBalancerV2VaultAdapter.sol/IBalancerV2VaultAdapterExceptions__factory.d.ts +12 -0
  82. package/lib/types/factories/IBalancerV2VaultAdapter.sol/IBalancerV2VaultAdapterExceptions__factory.js +24 -0
  83. package/lib/types/factories/IBalancerV2VaultAdapter.sol/IBalancerV2VaultAdapter__factory.d.ts +514 -0
  84. package/lib/types/factories/IBalancerV2VaultAdapter.sol/IBalancerV2VaultAdapter__factory.js +675 -0
  85. package/lib/types/factories/IBalancerV2VaultAdapter.sol/index.d.ts +3 -0
  86. package/lib/types/factories/IBalancerV2VaultAdapter.sol/index.js +12 -0
  87. package/lib/types/factories/ICompoundV2_CTokenAdapter.sol/ICompoundV2_CTokenAdapter__factory.d.ts +196 -0
  88. package/lib/types/factories/ICompoundV2_CTokenAdapter.sol/ICompoundV2_CTokenAdapter__factory.js +267 -0
  89. package/lib/types/factories/ICompoundV2_CTokenAdapter.sol/ICompoundV2_Exceptions__factory.d.ts +16 -0
  90. package/lib/types/factories/ICompoundV2_CTokenAdapter.sol/ICompoundV2_Exceptions__factory.js +30 -0
  91. package/lib/types/factories/ICompoundV2_CTokenAdapter.sol/index.d.ts +2 -0
  92. package/lib/types/factories/ICompoundV2_CTokenAdapter.sol/index.js +10 -0
  93. package/lib/types/factories/IConvexV1BaseRewardPoolAdapter__factory.d.ts +18 -6
  94. package/lib/types/factories/IConvexV1BaseRewardPoolAdapter__factory.js +22 -6
  95. package/lib/types/factories/IConvexV1BoosterAdapter.sol/IConvexV1BoosterAdapter__factory.d.ts +10 -2
  96. package/lib/types/factories/IConvexV1BoosterAdapter.sol/IConvexV1BoosterAdapter__factory.js +12 -2
  97. package/lib/types/factories/ICreditFacadeV3.sol/ICreditFacadeV3Events__factory.d.ts +13 -18
  98. package/lib/types/factories/ICreditFacadeV3.sol/ICreditFacadeV3Events__factory.js +14 -20
  99. package/lib/types/factories/ICreditFacadeV3.sol/ICreditFacadeV3__factory.d.ts +13 -70
  100. package/lib/types/factories/ICreditFacadeV3.sol/ICreditFacadeV3__factory.js +14 -86
  101. package/lib/types/factories/ICreditFacadeV3Multicall__factory.d.ts +22 -24
  102. package/lib/types/factories/ICreditFacadeV3Multicall__factory.js +28 -31
  103. package/lib/types/factories/ICreditManagerV3.sol/ICreditManagerV3__factory.d.ts +153 -135
  104. package/lib/types/factories/ICreditManagerV3.sol/ICreditManagerV3__factory.js +191 -168
  105. package/lib/types/factories/ICurveV1Adapter__factory.d.ts +13 -71
  106. package/lib/types/factories/ICurveV1Adapter__factory.js +14 -91
  107. package/lib/types/factories/ICurveV1_2AssetsAdapter__factory.d.ts +13 -71
  108. package/lib/types/factories/ICurveV1_2AssetsAdapter__factory.js +14 -91
  109. package/lib/types/factories/ICurveV1_3AssetsAdapter__factory.d.ts +13 -71
  110. package/lib/types/factories/ICurveV1_3AssetsAdapter__factory.js +14 -91
  111. package/lib/types/factories/ICurveV1_4AssetsAdapter__factory.d.ts +13 -71
  112. package/lib/types/factories/ICurveV1_4AssetsAdapter__factory.js +14 -91
  113. package/lib/types/factories/IDataCompressorV2_10__factory.d.ts +0 -42
  114. package/lib/types/factories/IDataCompressorV2_10__factory.js +0 -54
  115. package/lib/types/factories/IDataCompressorV3_00__factory.d.ts +0 -84
  116. package/lib/types/factories/IDataCompressorV3_00__factory.js +0 -108
  117. package/lib/types/factories/IERC4626Adapter__factory.d.ts +220 -0
  118. package/lib/types/factories/IERC4626Adapter__factory.js +297 -0
  119. package/lib/types/factories/ILidoV1Adapter__factory.d.ts +6 -2
  120. package/lib/types/factories/ILidoV1Adapter__factory.js +8 -2
  121. package/lib/types/factories/IPriceOracleV3.sol/IPriceOracleV3Events__factory.d.ts +5 -0
  122. package/lib/types/factories/IPriceOracleV3.sol/IPriceOracleV3Events__factory.js +6 -0
  123. package/lib/types/factories/IPriceOracleV3.sol/IPriceOracleV3__factory.d.ts +45 -0
  124. package/lib/types/factories/IPriceOracleV3.sol/IPriceOracleV3__factory.js +59 -0
  125. package/lib/types/factories/IUniswapV2Adapter.sol/IUniswapV2Adapter__factory.d.ts +5 -1
  126. package/lib/types/factories/IUniswapV2Adapter.sol/IUniswapV2Adapter__factory.js +6 -1
  127. package/lib/types/factories/IUniswapV3Adapter.sol/IUniswapV3Adapter__factory.d.ts +12 -4
  128. package/lib/types/factories/IUniswapV3Adapter.sol/IUniswapV3Adapter__factory.js +14 -4
  129. package/lib/types/factories/IYearnV2Adapter__factory.d.ts +21 -13
  130. package/lib/types/factories/IYearnV2Adapter__factory.js +27 -15
  131. package/lib/types/factories/IwstETHV1Adapter__factory.d.ts +12 -4
  132. package/lib/types/factories/IwstETHV1Adapter__factory.js +16 -4
  133. package/lib/types/factories/index.d.ts +7 -2
  134. package/lib/types/factories/index.js +12 -5
  135. package/lib/types/factories/{IRouter__factory.d.ts → interfaces/IRouter__factory.d.ts} +61 -6
  136. package/lib/types/factories/{IRouter__factory.js → interfaces/IRouter__factory.js} +77 -6
  137. package/lib/types/factories/interfaces/index.d.ts +1 -0
  138. package/lib/types/factories/interfaces/index.js +8 -0
  139. package/lib/types/index.d.ts +39 -17
  140. package/lib/types/index.js +39 -23
  141. package/lib/types/{IRouter.d.ts → interfaces/IRouter.d.ts} +37 -34
  142. package/lib/types/interfaces/IRouter.js +2 -0
  143. package/lib/types/interfaces/index.d.ts +1 -0
  144. package/lib/types/interfaces/index.js +2 -0
  145. package/package.json +6 -6
  146. package/lib/types/IWithdrawalManagerV3.sol/IWithdrawalManagerV3.d.ts +0 -370
  147. package/lib/types/IWithdrawalManagerV3.sol/IWithdrawalManagerV3Events.d.ts +0 -133
  148. package/lib/types/IWithdrawalManagerV3.sol/index.d.ts +0 -2
  149. package/lib/types/factories/IWithdrawalManagerV3.sol/IWithdrawalManagerV3Events__factory.d.ts +0 -143
  150. package/lib/types/factories/IWithdrawalManagerV3.sol/IWithdrawalManagerV3Events__factory.js +0 -188
  151. package/lib/types/factories/IWithdrawalManagerV3.sol/IWithdrawalManagerV3__factory.d.ts +0 -366
  152. package/lib/types/factories/IWithdrawalManagerV3.sol/IWithdrawalManagerV3__factory.js +0 -479
  153. package/lib/types/factories/IWithdrawalManagerV3.sol/index.d.ts +0 -2
  154. package/lib/types/factories/IWithdrawalManagerV3.sol/index.js +0 -10
  155. /package/lib/types/{IRouter.js → IAaveV2_LendingPoolAdapter.js} +0 -0
  156. /package/lib/types/{IWithdrawalManagerV3.sol/IWithdrawalManagerV3.js → IAaveV2_WrappedATokenAdapter.js} +0 -0
  157. /package/lib/types/{IWithdrawalManagerV3.sol/IWithdrawalManagerV3Events.js → IBalancerV2Vault.sol/IBalancerV2Vault.js} +0 -0
  158. /package/lib/types/{IWithdrawalManagerV3.sol/index.js → IBalancerV2Vault.sol/IBalancerV2VaultGetters.js} +0 -0
@@ -57,7 +57,7 @@ export declare class ICreditManagerV3__factory {
57
57
  readonly name: "addCollateral";
58
58
  readonly outputs: readonly [{
59
59
  readonly internalType: "uint256";
60
- readonly name: "tokenMask";
60
+ readonly name: "tokensToEnable";
61
61
  readonly type: "uint256";
62
62
  }];
63
63
  readonly stateMutability: "nonpayable";
@@ -102,95 +102,20 @@ export declare class ICreditManagerV3__factory {
102
102
  readonly name: "creditAccount";
103
103
  readonly type: "address";
104
104
  }, {
105
- readonly internalType: "enum CollateralCalcTask";
106
- readonly name: "task";
107
- readonly type: "uint8";
108
- }];
109
- readonly name: "calcDebtAndCollateral";
110
- readonly outputs: readonly [{
111
- readonly components: readonly [{
112
- readonly internalType: "uint256";
113
- readonly name: "debt";
114
- readonly type: "uint256";
115
- }, {
116
- readonly internalType: "uint256";
117
- readonly name: "cumulativeIndexNow";
118
- readonly type: "uint256";
119
- }, {
120
- readonly internalType: "uint256";
121
- readonly name: "cumulativeIndexLastUpdate";
122
- readonly type: "uint256";
123
- }, {
124
- readonly internalType: "uint128";
125
- readonly name: "cumulativeQuotaInterest";
126
- readonly type: "uint128";
127
- }, {
128
- readonly internalType: "uint256";
129
- readonly name: "accruedInterest";
130
- readonly type: "uint256";
131
- }, {
132
- readonly internalType: "uint256";
133
- readonly name: "accruedFees";
134
- readonly type: "uint256";
135
- }, {
136
- readonly internalType: "uint256";
137
- readonly name: "totalDebtUSD";
138
- readonly type: "uint256";
139
- }, {
140
- readonly internalType: "uint256";
141
- readonly name: "totalValue";
142
- readonly type: "uint256";
143
- }, {
144
- readonly internalType: "uint256";
145
- readonly name: "totalValueUSD";
146
- readonly type: "uint256";
147
- }, {
148
- readonly internalType: "uint256";
149
- readonly name: "twvUSD";
150
- readonly type: "uint256";
151
- }, {
152
- readonly internalType: "uint256";
153
- readonly name: "enabledTokensMask";
154
- readonly type: "uint256";
155
- }, {
156
- readonly internalType: "uint256";
157
- readonly name: "quotedTokensMask";
158
- readonly type: "uint256";
159
- }, {
160
- readonly internalType: "address[]";
161
- readonly name: "quotedTokens";
162
- readonly type: "address[]";
163
- }, {
164
- readonly internalType: "address";
165
- readonly name: "_poolQuotaKeeper";
166
- readonly type: "address";
167
- }];
168
- readonly internalType: "struct CollateralDebtData";
169
- readonly name: "cdd";
170
- readonly type: "tuple";
171
- }];
172
- readonly stateMutability: "view";
173
- readonly type: "function";
174
- }, {
175
- readonly inputs: readonly [{
176
105
  readonly internalType: "address";
177
- readonly name: "creditAccount";
106
+ readonly name: "token";
178
107
  readonly type: "address";
179
108
  }, {
180
109
  readonly internalType: "address";
181
- readonly name: "to";
110
+ readonly name: "spender";
182
111
  readonly type: "address";
183
112
  }, {
184
- readonly internalType: "enum ClaimAction";
185
- readonly name: "action";
186
- readonly type: "uint8";
187
- }];
188
- readonly name: "claimWithdrawals";
189
- readonly outputs: readonly [{
190
113
  readonly internalType: "uint256";
191
- readonly name: "tokensToEnable";
114
+ readonly name: "amount";
192
115
  readonly type: "uint256";
193
116
  }];
117
+ readonly name: "approveToken";
118
+ readonly outputs: readonly [];
194
119
  readonly stateMutability: "nonpayable";
195
120
  readonly type: "function";
196
121
  }, {
@@ -199,10 +124,12 @@ export declare class ICreditManagerV3__factory {
199
124
  readonly name: "creditAccount";
200
125
  readonly type: "address";
201
126
  }, {
202
- readonly internalType: "enum ClosureAction";
203
- readonly name: "closureAction";
127
+ readonly internalType: "enum CollateralCalcTask";
128
+ readonly name: "task";
204
129
  readonly type: "uint8";
205
- }, {
130
+ }];
131
+ readonly name: "calcDebtAndCollateral";
132
+ readonly outputs: readonly [{
206
133
  readonly components: readonly [{
207
134
  readonly internalType: "uint256";
208
135
  readonly name: "debt";
@@ -261,35 +188,19 @@ export declare class ICreditManagerV3__factory {
261
188
  readonly type: "address";
262
189
  }];
263
190
  readonly internalType: "struct CollateralDebtData";
264
- readonly name: "collateralDebtData";
191
+ readonly name: "cdd";
265
192
  readonly type: "tuple";
266
- }, {
267
- readonly internalType: "address";
268
- readonly name: "payer";
269
- readonly type: "address";
270
- }, {
193
+ }];
194
+ readonly stateMutability: "view";
195
+ readonly type: "function";
196
+ }, {
197
+ readonly inputs: readonly [{
271
198
  readonly internalType: "address";
272
- readonly name: "to";
199
+ readonly name: "creditAccount";
273
200
  readonly type: "address";
274
- }, {
275
- readonly internalType: "uint256";
276
- readonly name: "skipTokensMask";
277
- readonly type: "uint256";
278
- }, {
279
- readonly internalType: "bool";
280
- readonly name: "convertToETH";
281
- readonly type: "bool";
282
201
  }];
283
202
  readonly name: "closeCreditAccount";
284
- readonly outputs: readonly [{
285
- readonly internalType: "uint256";
286
- readonly name: "remainingFunds";
287
- readonly type: "uint256";
288
- }, {
289
- readonly internalType: "uint256";
290
- readonly name: "loss";
291
- readonly type: "uint256";
292
- }];
203
+ readonly outputs: readonly [];
293
204
  readonly stateMutability: "nonpayable";
294
205
  readonly type: "function";
295
206
  }, {
@@ -462,6 +373,28 @@ export declare class ICreditManagerV3__factory {
462
373
  }];
463
374
  readonly stateMutability: "nonpayable";
464
375
  readonly type: "function";
376
+ }, {
377
+ readonly inputs: readonly [{
378
+ readonly internalType: "address";
379
+ readonly name: "creditAccount";
380
+ readonly type: "address";
381
+ }, {
382
+ readonly internalType: "address";
383
+ readonly name: "target";
384
+ readonly type: "address";
385
+ }, {
386
+ readonly internalType: "bytes";
387
+ readonly name: "callData";
388
+ readonly type: "bytes";
389
+ }];
390
+ readonly name: "externalCall";
391
+ readonly outputs: readonly [{
392
+ readonly internalType: "bytes";
393
+ readonly name: "result";
394
+ readonly type: "bytes";
395
+ }];
396
+ readonly stateMutability: "nonpayable";
397
+ readonly type: "function";
465
398
  }, {
466
399
  readonly inputs: readonly [];
467
400
  readonly name: "fees";
@@ -519,6 +452,10 @@ export declare class ICreditManagerV3__factory {
519
452
  readonly internalType: "uint16";
520
453
  readonly name: "minHealthFactor";
521
454
  readonly type: "uint16";
455
+ }, {
456
+ readonly internalType: "bool";
457
+ readonly name: "useSafePrices";
458
+ readonly type: "bool";
522
459
  }];
523
460
  readonly name: "fullCollateralCheck";
524
461
  readonly outputs: readonly [{
@@ -598,6 +535,93 @@ export declare class ICreditManagerV3__factory {
598
535
  }];
599
536
  readonly stateMutability: "view";
600
537
  readonly type: "function";
538
+ }, {
539
+ readonly inputs: readonly [{
540
+ readonly internalType: "address";
541
+ readonly name: "creditAccount";
542
+ readonly type: "address";
543
+ }, {
544
+ readonly components: readonly [{
545
+ readonly internalType: "uint256";
546
+ readonly name: "debt";
547
+ readonly type: "uint256";
548
+ }, {
549
+ readonly internalType: "uint256";
550
+ readonly name: "cumulativeIndexNow";
551
+ readonly type: "uint256";
552
+ }, {
553
+ readonly internalType: "uint256";
554
+ readonly name: "cumulativeIndexLastUpdate";
555
+ readonly type: "uint256";
556
+ }, {
557
+ readonly internalType: "uint128";
558
+ readonly name: "cumulativeQuotaInterest";
559
+ readonly type: "uint128";
560
+ }, {
561
+ readonly internalType: "uint256";
562
+ readonly name: "accruedInterest";
563
+ readonly type: "uint256";
564
+ }, {
565
+ readonly internalType: "uint256";
566
+ readonly name: "accruedFees";
567
+ readonly type: "uint256";
568
+ }, {
569
+ readonly internalType: "uint256";
570
+ readonly name: "totalDebtUSD";
571
+ readonly type: "uint256";
572
+ }, {
573
+ readonly internalType: "uint256";
574
+ readonly name: "totalValue";
575
+ readonly type: "uint256";
576
+ }, {
577
+ readonly internalType: "uint256";
578
+ readonly name: "totalValueUSD";
579
+ readonly type: "uint256";
580
+ }, {
581
+ readonly internalType: "uint256";
582
+ readonly name: "twvUSD";
583
+ readonly type: "uint256";
584
+ }, {
585
+ readonly internalType: "uint256";
586
+ readonly name: "enabledTokensMask";
587
+ readonly type: "uint256";
588
+ }, {
589
+ readonly internalType: "uint256";
590
+ readonly name: "quotedTokensMask";
591
+ readonly type: "uint256";
592
+ }, {
593
+ readonly internalType: "address[]";
594
+ readonly name: "quotedTokens";
595
+ readonly type: "address[]";
596
+ }, {
597
+ readonly internalType: "address";
598
+ readonly name: "_poolQuotaKeeper";
599
+ readonly type: "address";
600
+ }];
601
+ readonly internalType: "struct CollateralDebtData";
602
+ readonly name: "collateralDebtData";
603
+ readonly type: "tuple";
604
+ }, {
605
+ readonly internalType: "address";
606
+ readonly name: "to";
607
+ readonly type: "address";
608
+ }, {
609
+ readonly internalType: "bool";
610
+ readonly name: "isExpired";
611
+ readonly type: "bool";
612
+ }];
613
+ readonly name: "liquidateCreditAccount";
614
+ readonly outputs: readonly [{
615
+ readonly internalType: "uint256";
616
+ readonly name: "remainingFunds";
617
+ readonly type: "uint256";
618
+ }, {
619
+ readonly internalType: "uint256";
620
+ readonly name: "loss";
621
+ readonly type: "uint256";
622
+ }];
623
+ readonly stateMutability: "nonpayable";
624
+ readonly type: "function";
601
625
  }, {
602
626
  readonly inputs: readonly [{
603
627
  readonly internalType: "address";
@@ -769,28 +793,6 @@ export declare class ICreditManagerV3__factory {
769
793
  readonly outputs: readonly [];
770
794
  readonly stateMutability: "nonpayable";
771
795
  readonly type: "function";
772
- }, {
773
- readonly inputs: readonly [{
774
- readonly internalType: "address";
775
- readonly name: "creditAccount";
776
- readonly type: "address";
777
- }, {
778
- readonly internalType: "address";
779
- readonly name: "token";
780
- readonly type: "address";
781
- }, {
782
- readonly internalType: "uint256";
783
- readonly name: "amount";
784
- readonly type: "uint256";
785
- }];
786
- readonly name: "scheduleWithdrawal";
787
- readonly outputs: readonly [{
788
- readonly internalType: "uint256";
789
- readonly name: "tokensToDisable";
790
- readonly type: "uint256";
791
- }];
792
- readonly stateMutability: "nonpayable";
793
- readonly type: "function";
794
796
  }, {
795
797
  readonly inputs: readonly [{
796
798
  readonly internalType: "address";
@@ -1000,14 +1002,30 @@ export declare class ICreditManagerV3__factory {
1000
1002
  readonly stateMutability: "view";
1001
1003
  readonly type: "function";
1002
1004
  }, {
1003
- readonly inputs: readonly [];
1004
- readonly name: "withdrawalManager";
1005
- readonly outputs: readonly [{
1005
+ readonly inputs: readonly [{
1006
1006
  readonly internalType: "address";
1007
- readonly name: "";
1007
+ readonly name: "creditAccount";
1008
+ readonly type: "address";
1009
+ }, {
1010
+ readonly internalType: "address";
1011
+ readonly name: "token";
1012
+ readonly type: "address";
1013
+ }, {
1014
+ readonly internalType: "uint256";
1015
+ readonly name: "amount";
1016
+ readonly type: "uint256";
1017
+ }, {
1018
+ readonly internalType: "address";
1019
+ readonly name: "to";
1008
1020
  readonly type: "address";
1009
1021
  }];
1010
- readonly stateMutability: "view";
1022
+ readonly name: "withdrawCollateral";
1023
+ readonly outputs: readonly [{
1024
+ readonly internalType: "uint256";
1025
+ readonly name: "tokensToDisable";
1026
+ readonly type: "uint256";
1027
+ }];
1028
+ readonly stateMutability: "nonpayable";
1011
1029
  readonly type: "function";
1012
1030
  }];
1013
1031
  static createInterface(): ICreditManagerV3Interface;