@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
@@ -164,27 +164,6 @@ export declare class IDataCompressorV3_00__factory {
164
164
  readonly internalType: "uint256";
165
165
  readonly name: "maxApprovedBots";
166
166
  readonly type: "uint256";
167
- }, {
168
- readonly components: readonly [{
169
- readonly internalType: "uint8";
170
- readonly name: "tokenIndex";
171
- readonly type: "uint8";
172
- }, {
173
- readonly internalType: "uint40";
174
- readonly name: "maturity";
175
- readonly type: "uint40";
176
- }, {
177
- readonly internalType: "address";
178
- readonly name: "token";
179
- readonly type: "address";
180
- }, {
181
- readonly internalType: "uint256";
182
- readonly name: "amount";
183
- readonly type: "uint256";
184
- }];
185
- readonly internalType: "struct ScheduledWithdrawal[2]";
186
- readonly name: "schedultedWithdrawals";
187
- readonly type: "tuple[2]";
188
167
  }];
189
168
  readonly internalType: "struct CreditAccountData";
190
169
  readonly name: "";
@@ -354,27 +333,6 @@ export declare class IDataCompressorV3_00__factory {
354
333
  readonly internalType: "uint256";
355
334
  readonly name: "maxApprovedBots";
356
335
  readonly type: "uint256";
357
- }, {
358
- readonly components: readonly [{
359
- readonly internalType: "uint8";
360
- readonly name: "tokenIndex";
361
- readonly type: "uint8";
362
- }, {
363
- readonly internalType: "uint40";
364
- readonly name: "maturity";
365
- readonly type: "uint40";
366
- }, {
367
- readonly internalType: "address";
368
- readonly name: "token";
369
- readonly type: "address";
370
- }, {
371
- readonly internalType: "uint256";
372
- readonly name: "amount";
373
- readonly type: "uint256";
374
- }];
375
- readonly internalType: "struct ScheduledWithdrawal[2]";
376
- readonly name: "schedultedWithdrawals";
377
- readonly type: "tuple[2]";
378
336
  }];
379
337
  readonly internalType: "struct CreditAccountData[]";
380
338
  readonly name: "";
@@ -544,27 +502,6 @@ export declare class IDataCompressorV3_00__factory {
544
502
  readonly internalType: "uint256";
545
503
  readonly name: "maxApprovedBots";
546
504
  readonly type: "uint256";
547
- }, {
548
- readonly components: readonly [{
549
- readonly internalType: "uint8";
550
- readonly name: "tokenIndex";
551
- readonly type: "uint8";
552
- }, {
553
- readonly internalType: "uint40";
554
- readonly name: "maturity";
555
- readonly type: "uint40";
556
- }, {
557
- readonly internalType: "address";
558
- readonly name: "token";
559
- readonly type: "address";
560
- }, {
561
- readonly internalType: "uint256";
562
- readonly name: "amount";
563
- readonly type: "uint256";
564
- }];
565
- readonly internalType: "struct ScheduledWithdrawal[2]";
566
- readonly name: "schedultedWithdrawals";
567
- readonly type: "tuple[2]";
568
505
  }];
569
506
  readonly internalType: "struct CreditAccountData[]";
570
507
  readonly name: "";
@@ -1218,27 +1155,6 @@ export declare class IDataCompressorV3_00__factory {
1218
1155
  readonly internalType: "uint256";
1219
1156
  readonly name: "maxApprovedBots";
1220
1157
  readonly type: "uint256";
1221
- }, {
1222
- readonly components: readonly [{
1223
- readonly internalType: "uint8";
1224
- readonly name: "tokenIndex";
1225
- readonly type: "uint8";
1226
- }, {
1227
- readonly internalType: "uint40";
1228
- readonly name: "maturity";
1229
- readonly type: "uint40";
1230
- }, {
1231
- readonly internalType: "address";
1232
- readonly name: "token";
1233
- readonly type: "address";
1234
- }, {
1235
- readonly internalType: "uint256";
1236
- readonly name: "amount";
1237
- readonly type: "uint256";
1238
- }];
1239
- readonly internalType: "struct ScheduledWithdrawal[2]";
1240
- readonly name: "schedultedWithdrawals";
1241
- readonly type: "tuple[2]";
1242
1158
  }];
1243
1159
  readonly internalType: "struct CreditAccountData[]";
1244
1160
  readonly name: "result";
@@ -212,33 +212,6 @@ const _abi = [
212
212
  name: "maxApprovedBots",
213
213
  type: "uint256",
214
214
  },
215
- {
216
- components: [
217
- {
218
- internalType: "uint8",
219
- name: "tokenIndex",
220
- type: "uint8",
221
- },
222
- {
223
- internalType: "uint40",
224
- name: "maturity",
225
- type: "uint40",
226
- },
227
- {
228
- internalType: "address",
229
- name: "token",
230
- type: "address",
231
- },
232
- {
233
- internalType: "uint256",
234
- name: "amount",
235
- type: "uint256",
236
- },
237
- ],
238
- internalType: "struct ScheduledWithdrawal[2]",
239
- name: "schedultedWithdrawals",
240
- type: "tuple[2]",
241
- },
242
215
  ],
243
216
  internalType: "struct CreditAccountData",
244
217
  name: "",
@@ -454,33 +427,6 @@ const _abi = [
454
427
  name: "maxApprovedBots",
455
428
  type: "uint256",
456
429
  },
457
- {
458
- components: [
459
- {
460
- internalType: "uint8",
461
- name: "tokenIndex",
462
- type: "uint8",
463
- },
464
- {
465
- internalType: "uint40",
466
- name: "maturity",
467
- type: "uint40",
468
- },
469
- {
470
- internalType: "address",
471
- name: "token",
472
- type: "address",
473
- },
474
- {
475
- internalType: "uint256",
476
- name: "amount",
477
- type: "uint256",
478
- },
479
- ],
480
- internalType: "struct ScheduledWithdrawal[2]",
481
- name: "schedultedWithdrawals",
482
- type: "tuple[2]",
483
- },
484
430
  ],
485
431
  internalType: "struct CreditAccountData[]",
486
432
  name: "",
@@ -696,33 +642,6 @@ const _abi = [
696
642
  name: "maxApprovedBots",
697
643
  type: "uint256",
698
644
  },
699
- {
700
- components: [
701
- {
702
- internalType: "uint8",
703
- name: "tokenIndex",
704
- type: "uint8",
705
- },
706
- {
707
- internalType: "uint40",
708
- name: "maturity",
709
- type: "uint40",
710
- },
711
- {
712
- internalType: "address",
713
- name: "token",
714
- type: "address",
715
- },
716
- {
717
- internalType: "uint256",
718
- name: "amount",
719
- type: "uint256",
720
- },
721
- ],
722
- internalType: "struct ScheduledWithdrawal[2]",
723
- name: "schedultedWithdrawals",
724
- type: "tuple[2]",
725
- },
726
645
  ],
727
646
  internalType: "struct CreditAccountData[]",
728
647
  name: "",
@@ -1554,33 +1473,6 @@ const _abi = [
1554
1473
  name: "maxApprovedBots",
1555
1474
  type: "uint256",
1556
1475
  },
1557
- {
1558
- components: [
1559
- {
1560
- internalType: "uint8",
1561
- name: "tokenIndex",
1562
- type: "uint8",
1563
- },
1564
- {
1565
- internalType: "uint40",
1566
- name: "maturity",
1567
- type: "uint40",
1568
- },
1569
- {
1570
- internalType: "address",
1571
- name: "token",
1572
- type: "address",
1573
- },
1574
- {
1575
- internalType: "uint256",
1576
- name: "amount",
1577
- type: "uint256",
1578
- },
1579
- ],
1580
- internalType: "struct ScheduledWithdrawal[2]",
1581
- name: "schedultedWithdrawals",
1582
- type: "tuple[2]",
1583
- },
1584
1476
  ],
1585
1477
  internalType: "struct CreditAccountData[]",
1586
1478
  name: "result",
@@ -0,0 +1,220 @@
1
+ import { Signer } from "ethers";
2
+ import type { Provider } from "@ethersproject/providers";
3
+ import type { IERC4626Adapter, IERC4626AdapterInterface } from "../IERC4626Adapter";
4
+ export declare class IERC4626Adapter__factory {
5
+ static readonly abi: readonly [{
6
+ readonly inputs: readonly [];
7
+ readonly name: "_gearboxAdapterType";
8
+ readonly outputs: readonly [{
9
+ readonly internalType: "enum AdapterType";
10
+ readonly name: "";
11
+ readonly type: "uint8";
12
+ }];
13
+ readonly stateMutability: "view";
14
+ readonly type: "function";
15
+ }, {
16
+ readonly inputs: readonly [];
17
+ readonly name: "_gearboxAdapterVersion";
18
+ readonly outputs: readonly [{
19
+ readonly internalType: "uint16";
20
+ readonly name: "";
21
+ readonly type: "uint16";
22
+ }];
23
+ readonly stateMutability: "view";
24
+ readonly type: "function";
25
+ }, {
26
+ readonly inputs: readonly [];
27
+ readonly name: "addressProvider";
28
+ readonly outputs: readonly [{
29
+ readonly internalType: "address";
30
+ readonly name: "";
31
+ readonly type: "address";
32
+ }];
33
+ readonly stateMutability: "view";
34
+ readonly type: "function";
35
+ }, {
36
+ readonly inputs: readonly [];
37
+ readonly name: "asset";
38
+ readonly outputs: readonly [{
39
+ readonly internalType: "address";
40
+ readonly name: "";
41
+ readonly type: "address";
42
+ }];
43
+ readonly stateMutability: "view";
44
+ readonly type: "function";
45
+ }, {
46
+ readonly inputs: readonly [];
47
+ readonly name: "assetMask";
48
+ readonly outputs: readonly [{
49
+ readonly internalType: "uint256";
50
+ readonly name: "";
51
+ readonly type: "uint256";
52
+ }];
53
+ readonly stateMutability: "view";
54
+ readonly type: "function";
55
+ }, {
56
+ readonly inputs: readonly [];
57
+ readonly name: "creditManager";
58
+ readonly outputs: readonly [{
59
+ readonly internalType: "address";
60
+ readonly name: "";
61
+ readonly type: "address";
62
+ }];
63
+ readonly stateMutability: "view";
64
+ readonly type: "function";
65
+ }, {
66
+ readonly inputs: readonly [{
67
+ readonly internalType: "uint256";
68
+ readonly name: "assets";
69
+ readonly type: "uint256";
70
+ }, {
71
+ readonly internalType: "address";
72
+ readonly name: "";
73
+ readonly type: "address";
74
+ }];
75
+ readonly name: "deposit";
76
+ readonly outputs: readonly [{
77
+ readonly internalType: "uint256";
78
+ readonly name: "tokensToEnable";
79
+ readonly type: "uint256";
80
+ }, {
81
+ readonly internalType: "uint256";
82
+ readonly name: "tokensToDisable";
83
+ readonly type: "uint256";
84
+ }];
85
+ readonly stateMutability: "nonpayable";
86
+ readonly type: "function";
87
+ }, {
88
+ readonly inputs: readonly [{
89
+ readonly internalType: "uint256";
90
+ readonly name: "leftoverAmount";
91
+ readonly type: "uint256";
92
+ }];
93
+ readonly name: "depositDiff";
94
+ readonly outputs: readonly [{
95
+ readonly internalType: "uint256";
96
+ readonly name: "tokensToEnable";
97
+ readonly type: "uint256";
98
+ }, {
99
+ readonly internalType: "uint256";
100
+ readonly name: "tokensToDisable";
101
+ readonly type: "uint256";
102
+ }];
103
+ readonly stateMutability: "nonpayable";
104
+ readonly type: "function";
105
+ }, {
106
+ readonly inputs: readonly [{
107
+ readonly internalType: "uint256";
108
+ readonly name: "shares";
109
+ readonly type: "uint256";
110
+ }, {
111
+ readonly internalType: "address";
112
+ readonly name: "";
113
+ readonly type: "address";
114
+ }];
115
+ readonly name: "mint";
116
+ readonly outputs: readonly [{
117
+ readonly internalType: "uint256";
118
+ readonly name: "tokensToEnable";
119
+ readonly type: "uint256";
120
+ }, {
121
+ readonly internalType: "uint256";
122
+ readonly name: "tokensToDisable";
123
+ readonly type: "uint256";
124
+ }];
125
+ readonly stateMutability: "nonpayable";
126
+ readonly type: "function";
127
+ }, {
128
+ readonly inputs: readonly [{
129
+ readonly internalType: "uint256";
130
+ readonly name: "shares";
131
+ readonly type: "uint256";
132
+ }, {
133
+ readonly internalType: "address";
134
+ readonly name: "";
135
+ readonly type: "address";
136
+ }, {
137
+ readonly internalType: "address";
138
+ readonly name: "";
139
+ readonly type: "address";
140
+ }];
141
+ readonly name: "redeem";
142
+ readonly outputs: readonly [{
143
+ readonly internalType: "uint256";
144
+ readonly name: "tokensToEnable";
145
+ readonly type: "uint256";
146
+ }, {
147
+ readonly internalType: "uint256";
148
+ readonly name: "tokensToDisable";
149
+ readonly type: "uint256";
150
+ }];
151
+ readonly stateMutability: "nonpayable";
152
+ readonly type: "function";
153
+ }, {
154
+ readonly inputs: readonly [{
155
+ readonly internalType: "uint256";
156
+ readonly name: "leftoverAmount";
157
+ readonly type: "uint256";
158
+ }];
159
+ readonly name: "redeemDiff";
160
+ readonly outputs: readonly [{
161
+ readonly internalType: "uint256";
162
+ readonly name: "tokensToEnable";
163
+ readonly type: "uint256";
164
+ }, {
165
+ readonly internalType: "uint256";
166
+ readonly name: "tokensToDisable";
167
+ readonly type: "uint256";
168
+ }];
169
+ readonly stateMutability: "nonpayable";
170
+ readonly type: "function";
171
+ }, {
172
+ readonly inputs: readonly [];
173
+ readonly name: "sharesMask";
174
+ readonly outputs: readonly [{
175
+ readonly internalType: "uint256";
176
+ readonly name: "";
177
+ readonly type: "uint256";
178
+ }];
179
+ readonly stateMutability: "view";
180
+ readonly type: "function";
181
+ }, {
182
+ readonly inputs: readonly [];
183
+ readonly name: "targetContract";
184
+ readonly outputs: readonly [{
185
+ readonly internalType: "address";
186
+ readonly name: "";
187
+ readonly type: "address";
188
+ }];
189
+ readonly stateMutability: "view";
190
+ readonly type: "function";
191
+ }, {
192
+ readonly inputs: readonly [{
193
+ readonly internalType: "uint256";
194
+ readonly name: "assets";
195
+ readonly type: "uint256";
196
+ }, {
197
+ readonly internalType: "address";
198
+ readonly name: "";
199
+ readonly type: "address";
200
+ }, {
201
+ readonly internalType: "address";
202
+ readonly name: "";
203
+ readonly type: "address";
204
+ }];
205
+ readonly name: "withdraw";
206
+ readonly outputs: readonly [{
207
+ readonly internalType: "uint256";
208
+ readonly name: "tokensToEnable";
209
+ readonly type: "uint256";
210
+ }, {
211
+ readonly internalType: "uint256";
212
+ readonly name: "tokensToDisable";
213
+ readonly type: "uint256";
214
+ }];
215
+ readonly stateMutability: "nonpayable";
216
+ readonly type: "function";
217
+ }];
218
+ static createInterface(): IERC4626AdapterInterface;
219
+ static connect(address: string, signerOrProvider: Signer | Provider): IERC4626Adapter;
220
+ }