@gearbox-protocol/sdk 18.4.1-aave.1 → 18.4.1-aave.11

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 (165) hide show
  1. package/dist/cjs/abi/rwa/iSecuritizeRWAFactory.js +15 -0
  2. package/dist/cjs/model/errors/index.js +1 -0
  3. package/dist/cjs/model/errors/operation-errors.js +9 -0
  4. package/dist/cjs/model/index.js +1 -0
  5. package/dist/cjs/onchain/accounts/bots/AccountBotsService.js +29 -0
  6. package/dist/cjs/onchain/accounts/bots/PeripheryCompressorV310Contract.js +2 -1
  7. package/dist/cjs/onchain/accounts/index.js +1 -1
  8. package/dist/cjs/onchain/accounts/intents/index.js +33 -1
  9. package/dist/cjs/onchain/accounts/intents/operations.js +13 -13
  10. package/dist/cjs/onchain/accounts/intents/plan.js +45 -23
  11. package/dist/cjs/onchain/accounts/intents/readAaveHoldings.js +56 -0
  12. package/dist/cjs/onchain/accounts/intents/realize.js +61 -23
  13. package/dist/cjs/onchain/accounts/intents/testing/sdk-mock.js +1 -1
  14. package/dist/cjs/onchain/accounts/intents/utils/ledger.js +6 -6
  15. package/dist/cjs/onchain/chain/chains.js +1 -0
  16. package/dist/cjs/onchain/index.js +13 -1
  17. package/dist/cjs/onchain/market/ZapperRegister.js +1 -1
  18. package/dist/cjs/onchain/market/adapters/abi/aave/iAaveOracle.js +20 -0
  19. package/dist/cjs/onchain/market/adapters/abi/aave/iAaveV3Pool.js +166 -0
  20. package/dist/cjs/onchain/market/adapters/abi/aave/iPoolAddressesProvider.js +11 -0
  21. package/dist/cjs/onchain/market/adapters/abi/aave/iVariableDebtToken.js +17 -0
  22. package/dist/cjs/onchain/market/adapters/abi/aave/index.js +6 -0
  23. package/dist/cjs/onchain/market/adapters/abi/adapters/iAaveHorizonBridgeAdapter.js +27 -0
  24. package/dist/cjs/onchain/market/adapters/abi/index.js +8 -0
  25. package/dist/cjs/onchain/market/adapters/abi/securitize/iSecuritizeNAVProvider.js +15 -0
  26. package/dist/cjs/onchain/market/adapters/abi/securitize/index.js +2 -0
  27. package/dist/cjs/onchain/market/adapters/contracts/AaveHorizonBridgeAdapterContract.js +100 -12
  28. package/dist/cjs/onchain/market/adapters/contracts/AaveV3PoolAdapterContract.js +19 -11
  29. package/dist/cjs/onchain/market/adapters/contracts/SecuritizeRedemptionGatewayAdapterContract.js +42 -5
  30. package/dist/cjs/onchain/market/adapters/index.js +8 -0
  31. package/dist/cjs/onchain/market/index.js +8 -0
  32. package/dist/cjs/onchain/market/rwa/securitize/SecuritizeRWAFactory.js +9 -0
  33. package/dist/cjs/onchain/positions/MultichainPositionsService.js +15 -0
  34. package/dist/cjs/onchain/positions/PositionsService.js +31 -0
  35. package/dist/cjs/onchain/positions/aaveMoveCalls.js +45 -0
  36. package/dist/cjs/onchain/positions/projectAavePosition.js +164 -26
  37. package/dist/cjs/onchain/positions/readAavePosition.js +152 -0
  38. package/dist/cjs/onchain/preview/index.js +2 -0
  39. package/dist/cjs/onchain/preview/preview/aaveBridgeBorrows.js +24 -0
  40. package/dist/cjs/onchain/preview/preview/aaveMoveStart.js +27 -0
  41. package/dist/cjs/onchain/preview/preview/index.js +2 -0
  42. package/dist/cjs/onchain/preview/preview/previewAdjustStrategyPosition.js +3 -0
  43. package/dist/cjs/onchain/preview/preview/previewExitOrRepayStrategyPosition.js +5 -2
  44. package/dist/cjs/onchain/preview/preview/previewOpenStrategyPosition.js +4 -1
  45. package/dist/cjs/onchain/preview/preview/previewOperation.js +31 -8
  46. package/dist/cjs/onchain/validation/bundles/checkAaveDelegation.js +54 -0
  47. package/dist/cjs/onchain/validation/bundles/checkCreditOperation.js +36 -11
  48. package/dist/cjs/onchain/validation/bundles/index.js +2 -0
  49. package/dist/cjs/onchain/validation/checkOperation.js +16 -4
  50. package/dist/cjs/onchain/validation/index.js +2 -0
  51. package/dist/cjs/sdk/execute/ExecuteApi.js +1 -0
  52. package/dist/cjs/sdk/positions/PositionsNamespace.js +6 -0
  53. package/dist/cjs/sdk/prepare/PrepareApi.js +68 -9
  54. package/dist/cjs/sdk/preview/PreviewNamespace.js +11 -2
  55. package/dist/esm/abi/rwa/iSecuritizeRWAFactory.js +15 -0
  56. package/dist/esm/model/errors/index.js +2 -2
  57. package/dist/esm/model/errors/operation-errors.js +9 -1
  58. package/dist/esm/model/index.js +2 -2
  59. package/dist/esm/onchain/accounts/bots/AccountBotsService.js +29 -0
  60. package/dist/esm/onchain/accounts/bots/PeripheryCompressorV310Contract.js +1 -1
  61. package/dist/esm/onchain/accounts/index.js +1 -1
  62. package/dist/esm/onchain/accounts/intents/index.js +34 -2
  63. package/dist/esm/onchain/accounts/intents/operations.js +12 -12
  64. package/dist/esm/onchain/accounts/intents/plan.js +46 -24
  65. package/dist/esm/onchain/accounts/intents/readAaveHoldings.js +55 -0
  66. package/dist/esm/onchain/accounts/intents/realize.js +62 -24
  67. package/dist/esm/onchain/accounts/intents/testing/sdk-mock.js +1 -1
  68. package/dist/esm/onchain/accounts/intents/utils/ledger.js +6 -6
  69. package/dist/esm/onchain/chain/chains.js +1 -0
  70. package/dist/esm/onchain/index.js +8 -2
  71. package/dist/esm/onchain/market/ZapperRegister.js +1 -1
  72. package/dist/esm/onchain/market/adapters/abi/aave/iAaveOracle.js +19 -0
  73. package/dist/esm/onchain/market/adapters/abi/aave/iAaveV3Pool.js +166 -0
  74. package/dist/esm/onchain/market/adapters/abi/aave/iPoolAddressesProvider.js +10 -0
  75. package/dist/esm/onchain/market/adapters/abi/aave/iVariableDebtToken.js +16 -0
  76. package/dist/esm/onchain/market/adapters/abi/aave/index.js +4 -1
  77. package/dist/esm/onchain/market/adapters/abi/adapters/iAaveHorizonBridgeAdapter.js +27 -0
  78. package/dist/esm/onchain/market/adapters/abi/index.js +5 -1
  79. package/dist/esm/onchain/market/adapters/abi/securitize/iSecuritizeNAVProvider.js +14 -0
  80. package/dist/esm/onchain/market/adapters/abi/securitize/index.js +2 -1
  81. package/dist/esm/onchain/market/adapters/contracts/AaveHorizonBridgeAdapterContract.js +101 -13
  82. package/dist/esm/onchain/market/adapters/contracts/AaveV3PoolAdapterContract.js +20 -12
  83. package/dist/esm/onchain/market/adapters/contracts/SecuritizeRedemptionGatewayAdapterContract.js +43 -6
  84. package/dist/esm/onchain/market/adapters/index.js +5 -1
  85. package/dist/esm/onchain/market/index.js +5 -1
  86. package/dist/esm/onchain/market/rwa/securitize/SecuritizeRWAFactory.js +9 -0
  87. package/dist/esm/onchain/positions/MultichainPositionsService.js +15 -0
  88. package/dist/esm/onchain/positions/PositionsService.js +31 -0
  89. package/dist/esm/onchain/positions/aaveMoveCalls.js +44 -0
  90. package/dist/esm/onchain/positions/projectAavePosition.js +165 -27
  91. package/dist/esm/onchain/positions/readAavePosition.js +151 -0
  92. package/dist/esm/onchain/preview/index.js +2 -1
  93. package/dist/esm/onchain/preview/preview/aaveBridgeBorrows.js +23 -0
  94. package/dist/esm/onchain/preview/preview/aaveMoveStart.js +26 -0
  95. package/dist/esm/onchain/preview/preview/index.js +2 -1
  96. package/dist/esm/onchain/preview/preview/previewAdjustStrategyPosition.js +3 -0
  97. package/dist/esm/onchain/preview/preview/previewExitOrRepayStrategyPosition.js +5 -2
  98. package/dist/esm/onchain/preview/preview/previewOpenStrategyPosition.js +4 -1
  99. package/dist/esm/onchain/preview/preview/previewOperation.js +31 -8
  100. package/dist/esm/onchain/validation/bundles/checkAaveDelegation.js +53 -0
  101. package/dist/esm/onchain/validation/bundles/checkCreditOperation.js +36 -11
  102. package/dist/esm/onchain/validation/bundles/index.js +2 -1
  103. package/dist/esm/onchain/validation/checkOperation.js +16 -4
  104. package/dist/esm/onchain/validation/index.js +2 -1
  105. package/dist/esm/sdk/execute/ExecuteApi.js +1 -0
  106. package/dist/esm/sdk/positions/PositionsNamespace.js +6 -0
  107. package/dist/esm/sdk/prepare/PrepareApi.js +69 -10
  108. package/dist/esm/sdk/preview/PreviewNamespace.js +11 -2
  109. package/dist/types/abi/rwa/iSecuritizeRWAFactory.d.ts +14 -0
  110. package/dist/types/model/aave.d.ts +60 -3
  111. package/dist/types/model/errors/index.d.ts +2 -2
  112. package/dist/types/model/errors/operation-errors.d.ts +19 -0
  113. package/dist/types/model/index.d.ts +5 -5
  114. package/dist/types/model/opportunities.d.ts +1 -1
  115. package/dist/types/model/previews.d.ts +18 -2
  116. package/dist/types/onchain/accounts/bots/AccountBotsService.d.ts +11 -1
  117. package/dist/types/onchain/accounts/bots/index.d.ts +2 -2
  118. package/dist/types/onchain/accounts/bots/types.d.ts +7 -1
  119. package/dist/types/onchain/accounts/index.d.ts +3 -3
  120. package/dist/types/onchain/accounts/intents/index.d.ts +21 -3
  121. package/dist/types/onchain/accounts/intents/operations.d.ts +27 -23
  122. package/dist/types/onchain/accounts/intents/plan.d.ts +23 -19
  123. package/dist/types/onchain/accounts/intents/readAaveHoldings.d.ts +16 -0
  124. package/dist/types/onchain/accounts/intents/types.d.ts +37 -14
  125. package/dist/types/onchain/index.d.ts +10 -4
  126. package/dist/types/onchain/market/adapters/abi/aave/iAaveOracle.d.ts +22 -0
  127. package/dist/types/onchain/market/adapters/abi/aave/iAaveV3Pool.d.ts +139 -0
  128. package/dist/types/onchain/market/adapters/abi/aave/iPoolAddressesProvider.d.ts +11 -0
  129. package/dist/types/onchain/market/adapters/abi/aave/iVariableDebtToken.d.ts +17 -0
  130. package/dist/types/onchain/market/adapters/abi/aave/index.d.ts +4 -1
  131. package/dist/types/onchain/market/adapters/abi/adapters/iAaveHorizonBridgeAdapter.d.ts +21 -0
  132. package/dist/types/onchain/market/adapters/abi/index.d.ts +5 -1
  133. package/dist/types/onchain/market/adapters/abi/securitize/iSecuritizeNAVProvider.d.ts +13 -0
  134. package/dist/types/onchain/market/adapters/abi/securitize/index.d.ts +2 -1
  135. package/dist/types/onchain/market/adapters/contracts/AaveHorizonBridgeAdapterContract.d.ts +59 -10
  136. package/dist/types/onchain/market/adapters/contracts/AaveV3PoolAdapterContract.d.ts +147 -4
  137. package/dist/types/onchain/market/adapters/contracts/SecuritizeRedemptionGatewayAdapterContract.d.ts +19 -4
  138. package/dist/types/onchain/market/adapters/index.d.ts +5 -1
  139. package/dist/types/onchain/market/index.d.ts +5 -1
  140. package/dist/types/onchain/market/rwa/securitize/SecuritizeRWAFactory.d.ts +20 -0
  141. package/dist/types/onchain/market/rwa/types.d.ts +6 -0
  142. package/dist/types/onchain/positions/MultichainPositionsService.d.ts +7 -1
  143. package/dist/types/onchain/positions/PositionsService.d.ts +16 -2
  144. package/dist/types/onchain/positions/aaveMoveCalls.d.ts +30 -0
  145. package/dist/types/onchain/positions/index.d.ts +2 -2
  146. package/dist/types/onchain/positions/projectAavePosition.d.ts +34 -4
  147. package/dist/types/onchain/positions/readAavePosition.d.ts +22 -0
  148. package/dist/types/onchain/positions/types.d.ts +25 -0
  149. package/dist/types/onchain/preview/index.d.ts +2 -1
  150. package/dist/types/onchain/preview/preview/aaveBridgeBorrows.d.ts +15 -0
  151. package/dist/types/onchain/preview/preview/aaveMoveStart.d.ts +18 -0
  152. package/dist/types/onchain/preview/preview/index.d.ts +2 -1
  153. package/dist/types/onchain/validation/bundles/checkAaveDelegation.d.ts +21 -0
  154. package/dist/types/onchain/validation/bundles/checkCreditOperation.d.ts +2 -2
  155. package/dist/types/onchain/validation/bundles/index.d.ts +2 -1
  156. package/dist/types/onchain/validation/index.d.ts +2 -1
  157. package/dist/types/sdk/execute/types.d.ts +7 -5
  158. package/dist/types/sdk/index.d.ts +2 -2
  159. package/dist/types/sdk/positions/PositionsNamespace.d.ts +6 -1
  160. package/dist/types/sdk/positions/types.d.ts +9 -1
  161. package/dist/types/sdk/prepare/PrepareApi.d.ts +4 -4
  162. package/dist/types/sdk/prepare/index.d.ts +2 -2
  163. package/dist/types/sdk/prepare/types.d.ts +88 -28
  164. package/dist/types/sdk/preview/types.d.ts +4 -2
  165. package/package.json +1 -1
@@ -442,23 +442,41 @@ export interface RepayStrategyIntent {
442
442
  value?: bigint;
443
443
  }
444
444
  /**
445
- * Moves a position whose RWA collateral has been minted from the account to
446
- * Aave Horizon, and settles the Gearbox loan with what Aave lends against it.
445
+ * The owner's Horizon position in one RWA, as the pool reports it now.
446
+ */
447
+ export interface AaveHoldings {
448
+ /** The pool's aToken of the RWA. */
449
+ aToken: Address;
450
+ /** Asset the owner owes: the underlying, or the asset an RWA underlying wraps. */
451
+ debtToken: Address;
452
+ /** The owner's aToken balance. */
453
+ supplied: bigint;
454
+ /** The owner's variable debt in {@link debtToken}, interest included. */
455
+ owed: bigint;
456
+ /** The reserve's current variable borrow rate, in ray per year. */
457
+ borrowRate: bigint;
458
+ }
459
+ /**
460
+ * Leaves the owner's Aave Horizon position in one transaction: the way out of
461
+ * what an Aave opening built.
447
462
  *
448
- * The whole balance of `token` is supplied to the Aave pool, the aTokens it
449
- * mints are handed to the account owner through the Horizon bridge, which
450
- * borrows the underlying on the owner's behalf into the account, and the loan
451
- * is repaid in full with its quotas. The bridge borrows the debt plus a 10bps
452
- * margin for the interest of the blocks still to come; whatever the facade
453
- * does not take stays on the account.
463
+ * The account borrows the owner's Aave debt, the Horizon bridge repays it and
464
+ * hands every aToken of `token` the owner holds to the account, the pool turns
465
+ * them back into `token`, and the whole balance of `token` is requested for
466
+ * redemption at its gateway. The request records an exit, so once the
467
+ * redemption matures the tail settles the loan and sends the rest to `to`.
454
468
  *
455
- * The bridge borrows as the owner, so the owner must have delegated credit on
456
- * the Aave variable debt token to the bridge beforehand.
469
+ * Aave debt grows every second and the bridge keeps what Aave does not take,
470
+ * so the repayment covers an hour of interest at the current rate, and that
471
+ * much less of it is what the bridge keeps from a transaction landing sooner.
457
472
  */
458
- export interface MoveToAaveIntent {
459
- type: "MOVE_TO_AAVE";
460
- /** RWA collateral on the account, as the Aave pool lists it. */
473
+ export interface CloseAavePositionIntent {
474
+ type: "CLOSE_AAVE_POSITION";
475
+ /** RWA the owner holds on Aave, as the pool lists it. */
461
476
  token: Address;
477
+ /** Wallet the exit sends what is left to. */
478
+ to: Address;
479
+ holdings: AaveHoldings;
462
480
  }
463
481
  /**
464
482
  * Intent 2.1 — withdraw part of the position's net value at fixed leverage.
@@ -579,12 +597,17 @@ export interface WithdrawCeilings {
579
597
  */
580
598
  exit: bigint;
581
599
  }
582
- export type StartIntent = AddCollateralIntent | WithdrawAssetIntent | BorrowAndWithdrawIntent | AdjustLeverageIntent | DepositStrategyIntent | RepayStrategyIntent | MoveToAaveIntent | WithdrawStrategyIntent | UpdateQuotaIntent;
600
+ export type StartIntent = AddCollateralIntent | WithdrawAssetIntent | BorrowAndWithdrawIntent | AdjustLeverageIntent | DepositStrategyIntent | RepayStrategyIntent | WithdrawStrategyIntent | UpdateQuotaIntent;
583
601
  /**
584
602
  * The intents that can be started as a redemption rather than a swap: the two
585
603
  * that sell a position asset. The others buy one, and buying settles at once.
586
604
  */
587
605
  export type DelayableIntent = AdjustLeverageIntent | WithdrawStrategyIntent;
606
+ /**
607
+ * The intents a redemption can start: the two that sell a position asset, and
608
+ * the exit from Aave, which always redeems the RWA it brings back.
609
+ */
610
+ export type RedeemingIntent = DelayableIntent | CloseAavePositionIntent;
588
611
  /**
589
612
  * A delayed intent this engine knows how to finish — every one of them.
590
613
  *
@@ -32,7 +32,10 @@ import { PERIPHERY_CONTRACTS, PeripheryContract } from "./constants/periphery.js
32
32
  import { VERSION_RANGE_310, VersionRange, isV310, isVersionRange } from "./constants/versions.js";
33
33
  import "./constants/index.js";
34
34
  import { iAaveHorizonBridgeAbi } from "./market/adapters/abi/aave/iAaveHorizonBridge.js";
35
+ import { iAaveOracleAbi } from "./market/adapters/abi/aave/iAaveOracle.js";
35
36
  import { iAaveV3PoolAbi } from "./market/adapters/abi/aave/iAaveV3Pool.js";
37
+ import { iPoolAddressesProviderAbi } from "./market/adapters/abi/aave/iPoolAddressesProvider.js";
38
+ import { iVariableDebtTokenAbi } from "./market/adapters/abi/aave/iVariableDebtToken.js";
36
39
  import { DEGEN_NFT_MIDAS, PHANTOM_TOKEN_MIDAS_REDEMPTION, RWA_LIQUIDATOR_MIDAS } from "./market/rwa/midas/constants.js";
37
40
  import { DEGEN_NFT_SECURITIZE, PHANTOM_TOKEN_SECURITIZE_REDEMPTION, RWA_LIQUIDATOR_SECURITIZE } from "./market/rwa/securitize/constants.js";
38
41
  import { DStokenData, SecuritizeCreditAccountData, SecuritizeInvestorData, SecuritizeRWAFactoryStateHuman } from "./market/rwa/securitize/types.js";
@@ -89,6 +92,7 @@ import { mellowDvvAdapterAbi } from "./market/adapters/abi/adapters/mellowDvvAda
89
92
  import { adapterConstructorAbi } from "./market/adapters/abi/conctructorAbi.js";
90
93
  import { iMidasGatewayV311Abi } from "./market/adapters/abi/midas/iMidasGatewayV311.js";
91
94
  import { iBaseOnRampAbi } from "./market/adapters/abi/securitize/iBaseOnRamp.js";
95
+ import { iSecuritizeNAVProviderAbi } from "./market/adapters/abi/securitize/iSecuritizeNAVProvider.js";
92
96
  import { iSecuritizeOnRampAbi } from "./market/adapters/abi/securitize/iSecuritizeOnRamp.js";
93
97
  import { iSecuritizeRedemptionGatewayV311Abi } from "./market/adapters/abi/securitize/iSecuritizeRedemptionGatewayV311.js";
94
98
  import { iBalancerV3RouterAbi, iBalancerV3WrapperAbi, iBaseRewardPoolAbi, iBoosterAbi, iCamelotV3RouterAbi, iCurvePoolAbi, iCurvePoolStableNGAbi, iCurvePool_2Abi, iCurvePool_3Abi, iCurvePool_4Abi, iDaiUsdsAbi, iERC4626Abi, iERC4626ReferralAbi, iFluidDexAbi, iInfinifiGatewayAbi, iKelpLRTDepositPoolGatewayAbi, iKelpLRTWithdrawalManagerGatewayAbi, iMellowClaimerAbi, iMellowWrapperAbi, iMidasIssuanceVaultV310Abi, iPendleRouterAbi, iStakingRewardsAbi, iTraderJoeRouterAbi, iUniswapV2Router02Abi, iUniswapV3Abi, iVelodromeV2RouterAbi, iwstETHAbi, lidoV1_WETHGatewayAbi } from "./market/adapters/abi/targetContractAbi.js";
@@ -219,7 +223,7 @@ import { ContractMethod, IPriceUpdateTx, MultiCall, RawTx } from "./types/transa
219
223
  import { AddLiquidityProps, DepositMetadata, IPoolsService, ListPoolPositionsProps, MarketType, PoolServiceCall, PoolServiceCallResult, PoolSimulation, RemoveLiquidityProps, SimulatePoolOperationProps, WithdrawalMetadata } from "./pools/types.js";
220
224
  import { PoolService } from "./pools/PoolService.js";
221
225
  import "./pools/index.js";
222
- import { AccountSnapshot, GetCurrentWithdrawalsProps, GetCurrentWithdrawalsPropsBase, IMultichainPositionsService, ListPositionsProps, ListPositionsPropsBase, ListStrategyPositionsProps, accountSnapshotFromCreditAccountData } from "./positions/types.js";
226
+ import { AccountSnapshot, GetCurrentWithdrawalsProps, GetCurrentWithdrawalsPropsBase, IMultichainPositionsService, ListAavePositionsProps, ListAavePositionsPropsBase, ListPositionsProps, ListPositionsPropsBase, ListStrategyPositionsProps, accountSnapshotFromCreditAccountData } from "./positions/types.js";
223
227
  import { CalcBorrowRateProps, calcBorrowRate } from "./positions/calcBorrowRate.js";
224
228
  import { CalcHealthFactorProps, calcHealthFactor } from "./positions/calcHealthFactor.js";
225
229
  import { CalcLiquidationPriceForTargetProps, CalcLiquidationPriceProps, calcLiquidationPriceForTarget } from "./positions/calcLiquidationPriceForTarget.js";
@@ -270,14 +274,14 @@ import { WithdrawalCompressorV310Contract } from "./accounts/withdrawal-compress
270
274
  import { WithdrawalCompressorV311Contract } from "./accounts/withdrawal-compressor/WithdrawalCompressorV311Contract.js";
271
275
  import { WithdrawalCompressorV313Contract } from "./accounts/withdrawal-compressor/WithdrawalCompressorV313Contract.js";
272
276
  import { AssembleCaOperationsProps, AssembleClaimDelayedCallsProps, AssembleCloseCreditAccountCallsProps, AssembleRepayCreditAccountCallsProps, AssembleStartDelayedWithdrawalCallsProps, ClaimFarmRewardsProps, CreditAccountOperationResult, CreditManagerOperationResult, EncodableCreditAccountOperation, GetApprovalAddressProps, ICreditAccountsService, OpenCAProps, PreviewDelayedWithdrawalProps, Rewards } from "./accounts/types.js";
273
- import { AccountToCheck, BotStatusCall, BotsDirectResponse, CMSlice, ConnectedBotsCall, ConnectedBotsPerAccount, GetConnectedBotsResponse, GetConnectedBotsResult, GetConnectedMigrationBotsResult, MulticallWithFailure, SetBotProps, SetBotResult } from "./accounts/bots/types.js";
277
+ import { AccountToCheck, BotStatusCall, BotsDirectResponse, CMSlice, ConnectedBotsCall, ConnectedBotsPerAccount, GetConnectedBotsResponse, GetConnectedBotsResult, GetConnectedMigrationBotsResult, MarketBot, MulticallWithFailure, SetBotProps, SetBotResult } from "./accounts/bots/types.js";
274
278
  import { AccountBotsService } from "./accounts/bots/AccountBotsService.js";
275
279
  import { PeripheryCompressorV310Contract } from "./accounts/bots/PeripheryCompressorV310Contract.js";
276
280
  import { CreditAccountsServiceV310 } from "./accounts/CreditAccountsServiceV310.js";
277
281
  import { IntentValidationError, raise } from "./validation/raise.js";
278
282
  import { CalcDefaultQuotaProps, CalcQuotaUpdateProps, CalcRecommendedQuotaProps, DIRECT_TRANSFERS_QUOTA, MaxAmountForQuotaProps, calcDefaultQuota, calcQuotaUpdate, calcRecommendedQuota, maxAmountForQuota, roundUpQuota } from "./accounts/quota-utils.js";
279
283
  import { AccountCalculatorOperation } from "./accounts/intents/operations.js";
280
- import { AddCollateralIntent, AdjustLeverageIntent, ClaimRemainder, CreditAccountSlice, DelayableIntent, DelayedRoute, DelayedStart, DelayedStartResult, DepositStrategyIntent, ExecutionCost, FinishIntentProps, FinishIntentResult, InstantRoute, IntentPreviewResult, IntentRoutesResult, OperationState, PathLossRate, RefusedIntent, RepayStrategyIntent, ResumableIntent, RouteErrors, StartIntent, UpdateQuotaIntent, WithPartialState, WithdrawAssetIntent, WithdrawCeilings, WithdrawStrategyIntent } from "./accounts/intents/types.js";
284
+ import { AaveHoldings, AddCollateralIntent, AdjustLeverageIntent, ClaimRemainder, CloseAavePositionIntent, CreditAccountSlice, DelayableIntent, DelayedRoute, DelayedStart, DelayedStartResult, DepositStrategyIntent, ExecutionCost, FinishIntentProps, FinishIntentResult, InstantRoute, IntentPreviewResult, IntentRoutesResult, OperationState, PathLossRate, RedeemingIntent, RefusedIntent, RepayStrategyIntent, ResumableIntent, RouteErrors, StartIntent, UpdateQuotaIntent, WithPartialState, WithdrawAssetIntent, WithdrawCeilings, WithdrawStrategyIntent } from "./accounts/intents/types.js";
281
285
  import { BorrowProps, BorrowState } from "./accounts/intents/borrow.js";
282
286
  import { LeverageBand } from "./accounts/intents/leverage-band.js";
283
287
  import { OpenStrategyProps, OpenStrategyState } from "./accounts/intents/open-strategy.js";
@@ -301,6 +305,7 @@ import { parseFacadeOperationCalldata } from "./preview/parse/parseFacadeOperati
301
305
  import { parseOperationCalldata } from "./preview/parse/parseOperationCalldata.js";
302
306
  import { parsePoolOperationCalldata } from "./preview/parse/parsePoolOperationCalldata.js";
303
307
  import { parseRWAFactoryOperationCalldata } from "./preview/parse/parseRWAFactoryOperationCalldata.js";
308
+ import { aaveBridgeBorrows } from "./preview/preview/aaveBridgeBorrows.js";
304
309
  import { CreditAccountState, CreditAccountStateProps } from "./preview/preview/CreditAccountState.js";
305
310
  import { DetectedDelayedOperation, detectDelayedOperation } from "./preview/preview/detectDelayedOperation.js";
306
311
  import { buildDelayedStrategyPositionOperationPreview } from "./preview/preview/buildDelayedStrategyPositionOperationPreview.js";
@@ -314,6 +319,7 @@ import { previewAdjustStrategyPosition } from "./preview/preview/previewAdjustSt
314
319
  import { CloseOrRepayOperation, previewExitOrRepayStrategyPosition } from "./preview/preview/previewExitOrRepayStrategyPosition.js";
315
320
  import { PreviewOperationError, previewOperation } from "./preview/preview/previewOperation.js";
316
321
  import "./preview/index.js";
322
+ import { CheckAaveDelegationInput, checkAaveDelegation } from "./validation/bundles/checkAaveDelegation.js";
317
323
  import { checkAccountQuotas } from "./validation/bundles/checkAccountQuotas.js";
318
324
  import { CheckWalletInput, WalletFundingError, checkWallet } from "./validation/bundles/checkWallet.js";
319
325
  import { CheckCollateralFundingInput, CollateralFundingPreview, checkCollateralFunding } from "./validation/bundles/checkCollateralFunding.js";
@@ -360,4 +366,4 @@ import { amountOf } from "./validation/helpers/amount.js";
360
366
  import { MIN_HEALTH_FACTOR_FACADE, MIN_HEALTH_FACTOR_FORM, MIN_HF_LIMITED, MIN_SAFE_HEALTH_FACTOR_FORM } from "./validation/helpers/health-factor-limits.js";
361
367
  import { toToken, toTokenAmount } from "./validation/helpers/token.js";
362
368
  import "./validation/index.js";
363
- export { ADDRESS_0X0, ADDRESS_PROVIDER_V310, AP_ACCOUNT_FACTORY, AP_ACL, AP_BOT_LIST, AP_BYTECODE_REPOSITORY, AP_CONTRACTS_REGISTER, AP_CONTROLLER_TIMELOCK, AP_CREDIT_ACCOUNT_COMPRESSOR, AP_CREDIT_SUITE_COMPRESSOR, AP_DATA_COMPRESSOR, AP_DELEVERAGE_BOT_HV, AP_DELEVERAGE_BOT_LV, AP_DELEVERAGE_BOT_PEGGED, AP_GAUGE_COMPRESSOR, AP_GEAR_STAKING, AP_GEAR_TOKEN, AP_INFLATION_ATTACK_BLOCKER, AP_INSOLVENCY_CHECKER, AP_MARKET_COMPRESSOR, AP_MARKET_CONFIGURATOR, AP_PARTIAL_LIQUIDATION_BOT, AP_PERIPHERY_COMPRESSOR, AP_PRICE_FEED_COMPRESSOR, AP_PRICE_FEED_STORE, AP_PRICE_ORACLE, AP_REDEMPTION_LOGGER, AP_REWARDS_COMPRESSOR, AP_ROUTER, AP_TOKEN_COMPRESSOR, AP_TREASURY, AP_WETH_GATEWAY, AP_WETH_TOKEN, AP_ZAPPER_REGISTER, AP_ZERO_PRICE_FEED, AaveHorizonBridgeAdapterContract, AaveV3PoolAdapterContract, AbstractAdapterContract, AbstractAdapterContractOptions, AbstractLPPriceFeedContract, AbstractPriceFeedContract, AbstractWithdrawalCompressorContract, AccountBotsService, type AccountCalculatorOperation, AccountMigratorAdapterContract, AccountSnapshot, AccountToCheck, AdapterContractStateHuman, AdapterContractType, AdapterData, AdapterFactoryArgs, AdapterOperation, AdapterOperationBase, AdapterProtocolOperation, AdapterType, type AddCollateralIntent, AddCollateralOp, AddLiquidityProps, AddressMap, AddressProviderAddresses, AddressProviderState, AddressProviderV310Contract, type AddressProviderV3StateHuman, AddressSet, type AdjustLeverageIntent, type AliasLossPolicyStateHuman, AssembleCaOperationsProps, AssembleClaimDelayedCallsProps, AssembleCloseCreditAccountCallsProps, AssembleRepayCreditAccountCallsProps, AssembleStartDelayedWithdrawalCallsProps, AssertAssignable, Asset, type AssetPriceFeedStateHuman, AssetWithAmountInTarget, AssetsMap, AttachOptions, BLOCKS_PER_WEEK_BY_NETWORK, BalanceDelta, BalancerStablePriceFeedContract, BalancerSwap, BalancerV3Pool, BalancerV3PoolStatus, BalancerV3RouterAdapterContract, BalancerV3WrapperAdapterContract, BalancerWeightedPriceFeedContract, type BalancerWeightedPriceFeedStateHuman, BaseContract, BaseContractArgs, type BaseContractStateHuman, BaseParams, BasePlugin, type BasePriceFeedStateHuman, BaseState, BasicSwapCall, BigIntMath, type BlockNumberProps, BorrowLimitArgs, BorrowPreviewResult, type BorrowProps, type BorrowState, type BotListStateHuman, BotPermissions, BotStatusCall, BotsDirectResponse, type BoundedOracleStateHuman, BoundedPriceFeedContract, BuildLiquidationTxProps, BuildLiquidationTxPropsBase, BuildPartialLiquidationTxProps, BuildPartialLiquidationTxPropsBase, CMSlice, CalcBorrowRateProps, CalcDefaultQuotaProps, CalcHealthFactorProps, CalcLiquidationPriceForTargetProps, CalcLiquidationPriceProps, CalcQuotaUpdateProps, CalcRecommendedQuotaProps, CallTrace, CamelotPool, CamelotV3AdapterContract, ChainBlock, ChainBlockPin, ChainBlockSource, ChainConfig, ChainContractsRegister, ChainNotConfiguredError, ChainQueryOneProps, ChainQueryProps, CheckCollateralFundingInput, CheckLiquidationEligibilityInput, CheckLiquidationFundingInput, CheckLiquidationInput, CheckLiquidationOptions, CheckMidasAccountGreenlistInput, CheckOperationInput, CheckOperationOptions, CheckPoolFundingInput, CheckRWAOpenRequirementsInput, CheckRWAOpeningInput, CheckSimulationInput, CheckWalletAllowanceInput, CheckWalletBalanceInput, CheckWalletInput, ClaimFarmRewardsProps, type ClaimRemainder, ClaimableWithdrawal, ClassifyInnerOperationsProps, ClientOptions, CloseCreditAccountOperation, CloseOrRepayOperation, ClosePathBalances, CollateralFundingPreview, CollateralisedArgs, CompareBalancesOp, CompositePriceFeedContract, CompressorZapperData, ConcreteAdapterContractOptions, ConnectedBotData, ConnectedBotsCall, ConnectedBotsPerAccount, type ConstantOracleStateHuman, ConstantPriceFeedContract, Construct, ConstructOptions, type ContractMethod, ContractOrInterface, ContractParseError, ContractParseErrorOptions, ConvertFn, ConvexDeposit, ConvexDepositAndStake, ConvexStake, ConvexV1BaseRewardPoolAdapterContract, ConvexV1BoosterAdapterContract, ConvexWithdraw, ConvexWithdrawAndClaim, type CoreStateHuman, CreditAccountCompressor, CreditAccountCompressorV310Contract, CreditAccountData, CreditAccountDataCall, CreditAccountDataPayload, CreditAccountFilter, CreditAccountFrozenArgs, CreditAccountOperation, CreditAccountOperationResult, CreditAccountOperationsService, CreditAccountReadOptions, type CreditAccountSlice, CreditAccountState, CreditAccountStateProps, CreditAccountTokenQuota, CreditAccountTokensSlice, CreditAccountsCall, CreditAccountsQuery, CreditAccountsReadOptions, CreditAccountsServiceV310, CreditAccountsTarget, CreditConfiguratorState, type CreditConfiguratorStateHuman, CreditConfiguratorV310Contract, CreditFacadeState, type CreditFacadeStateHuman, type abi as CreditFacadeV310Abi, abi as creditFacadeV310Abi, CreditFacadeV310BaseContract, CreditFacadeV310Contract, CreditManagerDebtParams, type CreditManagerDebtParamsHuman, CreditManagerFilter, CreditManagerOperationResult, CreditManagerPausedArgs, CreditManagerState, type CreditManagerStateHuman, CreditManagerV310Contract, CreditOperationArgs, CreditOperationError, CreditOperationPreview, CreditSimulationInput, CreditSuite, CreditSuiteState, type CreditSuiteStateHuman, CreditSuiteStrategy, CurrentWithdrawals, Curve2AssetsAdapterContract, Curve3AssetsAdapterContract, Curve4AssetsAdapterContract, CurveAddLiquidity, CurveClaims, CurveCryptoPriceFeedContract, CurveExchange, CurveRemoveLiquidity, CurveRemoveLiquidityOneCoin, CurveStablePriceFeedContract, CurveUSDPriceFeedContract, CurveV1AdapterStETHContract, CurveV1StableNGAdapterContract, CurveWithdrawal, DEFAULT_QUOTA_BUFFER_BPS, DEGEN_NFT_MIDAS, DEGEN_NFT_SECURITIZE, DELAYED_INTENT_TYPES, DELAYED_INTENT_VERSION, DIRECT_TRANSFERS_QUOTA, DStokenData, DUST_THRESHOLD, DaiUsdsAdapterContract, DebtLimitsArgs, DecreaseDebtOp, type DelayableIntent, DelayedIntentExtended, type DelayedRoute, type DelayedStart, type DelayedStartResult, DelayedWithdrawalClaim, DelayedWithdrawalRequest, DelegatedMulticall, DepositMetadata, type DepositStrategyIntent, DetectedDelayedClaim, DetectedDelayedOperation, DirectTokenTransferOperation, ERC4626AdapterContract, ERC4626ReferralAdapterContract, EXECUTE_BYTES_SELECTOR, EmergencyLiquidatorArgs, EmptyAccountPreviewResult, EncodableCreditAccountOperation, Erc4626PriceFeedContract, EstimateRawTxGasParameters, EtherscanURLParam, ExecuteMulticallBatchesOptions, type ExecutionCost, ExpectedBalanceDeltasProps, ExpectedOutput, ExternalPriceFeedContract, FacadeOperationMetadata, FilterDustUSDOptions, FindBestClosePathProps, FindClaimAllRewardsProps, FindManyToOnePathProps, FindOneTokenPathProps, FindOpenStrategyPathProps, type FinishIntentProps, type FinishIntentResult, FluidDexAdapterContract, ForbiddenTokenArgs, FormatBNOptions, FullyLiquidateProps, FullyLiquidateResult, GaugeContract, GaugeData, GaugeParams, type GaugeParamsHuman, type GaugeStateHuman, type GearStakingV3StateHuman, GearboxChain, type GearboxState, type GearboxStateHuman, GetApprovalAddressProps, GetConnectedBotsResponse, GetConnectedBotsResult, GetConnectedMigrationBotsResult, GetCreditAccountsArgs, GetCreditAccountsOptions, GetCurrentWithdrawalsProps, GetCurrentWithdrawalsPropsBase, GetExternalAccountCurrentWithdrawalsProps, GetInvestorOptions, GetLiquidatableAccountsProps, GetLiquidationDetailsProps, GetLiquidationDetailsPropsBase, GetLiquidationPositionsProps, GetLiquidationPositionsPropsBase, GetOpenAccountRequirementsProps, GetPartialLiquidationDetailsProps, GetPartialLiquidationDetailsPropsBase, GetReward, GetWithdrawalRequestResultProps, HealthFactorThresholds, HydrateOptions, IAdapterContract, IAddressProviderContract, IBaseContract, ICreditAccountsService, ICreditConfiguratorContract, ICreditFacadeContract, ICreditManagerContract, IDegenNFT, IERC20ZapperContract, IETHZapperContract, IInterestRateModelContract, type ILogger, IMultichainOpportunitiesService, IMultichainPositionsService, IOnchainSDKPlugin, IOnchainSDKPluginConstructor, IPluginState, IPoolContract, IPoolsService, IPriceFeedContract, IPriceOracleContract, type IPriceUpdateTask, type IPriceUpdateTx, type IPriceUpdater, IRWAFactory, IRateKeeperContract, IRedemptionLoggerContract, IRouterContract, type IUpdatablePriceFeedContract, IWithdrawalCompressorContract, IZapperContract, IncreaseDebtOp, InfinifiGatewayAdapterContract, InfinifiUnwindingGatewayAdapterContract, InnerFacadeOperation, InnerOperation, type InstantRoute, type IntentPreviewResult, type IntentRoutesResult, type IntentValidationError, type InterestRateModelStateHuman, InterestRateModelType, IsDustOptions, KelpLRTDepositPoolAdapterContract, KelpLRTWithdrawalManagerAdapterContract, LEVERAGE_DECIMALS, LIQUIDATION_APPROVAL_BUFFER, LIQUIDATION_COMPRESSOR_V313_ADDRESS, LPMonopolizedPoolMeta, type LPPriceFeedStateHuman, type LatestUpdate, LegacyAdapterOperation, LeverageArgs, type LeverageBand, LidoSubmit, LidoV1AdapterContract, LinearInterestRateModelContract, type LinearInterestRateModelStateHuman, LiquidateCreditAccountOperation, LiquidationEligibilityError, LiquidationFees, LiquidationValidationError, LiquidationsService, LiquidatorEligibleArgs, ListPoolPositionsProps, ListPositionsProps, ListPositionsPropsBase, ListStrategyPositionsProps, LoadRWALiquidatorsProps, type LogFn, type LossPolicyStateHuman, MAX_INT, MAX_LEVERAGE_BUFFER_BPS, MAX_QUOTA_MULTIPLIER, MAX_UINT16, MAX_UINT256, MIN_HEALTH_FACTOR_FACADE, MIN_HEALTH_FACTOR_FORM, MIN_HF_LIMITED, MIN_INT96, MIN_SAFE_HEALTH_FACTOR_FORM, MULTICALL_ADDRESS, MakerDeposit, MakerRedeem, MarketData, MarketExpiredArgs, MarketFilter, MarketRegister, MarketRegistryState, MarketRegistryStateHuman, MarketStateError, type MarketStateHuman, MarketSuite, MarketType, MaxAmountForQuotaProps, MaxBorrowAmount, MaxQuotaArgs, MellowClaimerAdapterContract, MellowDVVAdapterContract, MellowERC4626VaultAdapterContract, MellowLRTPriceFeedContract, MellowWrapperAdapterContract, Methods, MidasDegenNFT, MidasGatewayAdapterContract, MidasIssuanceVaultAdapterContract, MidasLiquidatorContract, MidasRedemptionVaultAdapterContract, MissingSerializedParamsError, type MultiCall, MulticallBatch, MulticallOperation, MulticallWithFailure, MultichainAttachOptions, type MultichainChainIdsProps, MultichainConstruct, MultichainHydrateOptions, MultichainLiquidationsService, type MultichainNetworkProps, MultichainOpportunitiesService, MultichainPositionsService, MultichainSDK, MultichainSDKOptions, type MultichainState, type MultichainStateHuman, MultichainSyncStateOptions, NATIVE_ADDRESS, NON_STRATEGY_PHANTOM_TOKEN_TYPES, NOT_DEPLOYED, NO_VERSION, NetworkType, OnchainLiquidationCall, OnchainLiquidationData, OnchainLiquidationOutput, OnchainRequestableWithdrawal, OnchainSDK, OnchainSDKOptions, OpenCAProps, OpenCreditAccountOperation, OpenStrategyPreviewResult, type OpenStrategyProps, OpenStrategyResult, type OpenStrategyState, Operation, OperationMetadata, type OperationState, OperationValidationError, OpportunitiesService, OptimalPartialLiquidation, OptimalPartialLiquidationAmounts, OptimalPartialLiquidationAmountsProps, OptimalPartialLiquidationProps, OuterFacadeOperation, PARTIAL_LIQUIDATION_BUFFER_BPS, PERCENTAGE_DECIMALS, PERCENTAGE_FACTOR, PERCENTAGE_FACTOR_1KK, PERIPHERY_CONTRACTS, PHANTOM_TOKEN_CONTRACT_TYPES, PHANTOM_TOKEN_MIDAS_REDEMPTION, PHANTOM_TOKEN_SECURITIZE_REDEMPTION, PRICE_DECIMALS, PRICE_DECIMALS_POW, ParsedCall, ParsedCallArgs, ParsedCallV2, ParsedZapperDeposit, ParsedZapperOperation, ParsedZapperRedeem, PartialLiquidationOperation, PartialLiquidationParams, PartialLiquidationParamsProps, PartialPriceFeedInitError, PartialPriceFeedTreeNode, PartialRecord, PartiallyLiquidatableArgs, type PathLossRate, PendingWithdrawal, PendlePair, PendlePairStatus, PendleRouterAdapterContract, PendleTWAPPTPriceFeed, PendleTokenType, PeripheryCompressorV310Contract, PeripheryContract, PermitResult, PhantomTokenContractType, PhantomTokenMeta, PickSomeRequired, PluginFactoriesMap, PluginFactory, PluginState, PluginStateVersionError, PluginStatesMap, PluginsMap, PoolDepositOperation, PoolLiquidityArgs, PoolMintOperation, PoolOperation, PoolOperationArgs, PoolOperationError, PoolPausedArgs, PoolQuotaKeeperContract, type PoolQuotaKeeperStateHuman, PoolRedeemOperation, PoolService, PoolServiceCall, PoolServiceCallResult, PoolSimulation, PoolState, type PoolStateHuman, PoolSuite, type PoolSuiteStateHuman, PoolSunsetArgs, PoolV310Contract, PoolWithdrawOperation, PositionsService, PrepareUpdateQuotasProps, PreviewDelayedWithdrawalProps, PreviewOperationError, PriceFeedAnswer, PriceFeedConstructorArgs, PriceFeedContractType, PriceFeedMapEntry, PriceFeedRef, PriceFeedRegistry, type PriceFeedStateHuman, PriceFeedTreeNode, PriceFeedUsageType, PriceFeedsForAccountOptions, PriceFeedsForTokensOptions, PriceOracleData, type PriceOracleStateHuman, PriceOracleV310Contract, PriceUpdate, PriceUpdatesCache, ProjectedPoolOptions, PythPriceFeed, QuotaActiveArgs, QuotaChangeArgs, QuotaCountArgs, QuotaKeeperState, QuotaLimitArgs, QuotaMode, type QuotaParamsHuman, QuotaSlice, QuotaState, QuotaUpdateError, RAMP_DURATION_BY_NETWORK, RAY, RAY_DECIMALS_POW, RWACompressorCall, RWACompressorInvestorData, RWACompressorResponse, RWADefaultTokenMeta, RWAFactoryData, RWAFactoryProtocol, RWAFactoryStateHuman, RWAInvestorData, RWALiquidatorInfo, RWAMulticallOperation, RWAOnDemandLPMeta, RWAOnDemandLPMonopolizedMeta, RWAOnDemandLpContractType, RWAOnDemandTokenMeta, RWAOpenCreditAccountOperation, RWAOpeningError, RWAOperation, RWAOperationMetadata, RWARegistry, RWAState, RWAStateHuman, RWATokenMeta, RWAUnderlyingContractType, RWAUnderlyingData, RWA_COMPRESSOR_ADDRESS, RWA_LIQUIDATOR_MIDAS, RWA_LIQUIDATOR_SECURITIZE, RWA_ON_DEMAND_LP_MONOPOLIZED, RWA_UNDERLYING_DEFAULT, RWA_UNDERLYING_ON_DEMAND, RampEvent, RateKeeperState, type RateKeeperStateHuman, RateKeeperType, type RawTx, RedemptionLog, RedemptionLoggerV310Contract, RedemptionPhantomRename, RedstonePriceFeedContract, type RedstonePriceFeedStateHuman, type RefusedIntent, RelaxedBaseParams, RemoveLiquidityProps, type RepayStrategyIntent, ReplayMulticallResult, ReplayState, ReplayableOperation, RequestableWithdrawal, ReservePriceLimitedArgs, type ResumableIntent, RetryOptions, RewardInfo, Rewards, type RouteErrors, RouterCASlice, RouterCMSlice, RouterCloseResult, RouterResult, RouterRewardsResult, RouterV310Contract, SDKConstruct, SDKOptions, SECONDS_PER_YEAR, SLIPPAGE_DECIMALS, STATE_VERSION, SUPPORTED_NETWORKS, SdkAlreadyAttachedError, SdkChainMismatchError, SdkMissingChainStateError, SdkNotAttachedError, SdkRWADataNotLoadedError, SdkStateVersionMismatchError, SdkSyncFailedError, SecuritizeCreditAccountData, SecuritizeDegenNFT, SecuritizeInvestorData, SecuritizeLiquidatorContract, SecuritizeOnRampAdapterContract, SecuritizeRWAFactory, SecuritizeRWAFactoryStateHuman, SecuritizeRedemptionGatewayAdapterContract, SendRawTxParameters, SetBotProps, SetBotResult, SimpleTokenMeta, SimulateCallOptions, SimulateCallParameters, SimulateCallReturnType, SimulateMulticallParameters, SimulateMulticallReturnType, SimulatePoolOperationProps, SimulateWithPriceUpdatesError, SimulateWithPriceUpdatesErrorParams, SimulateWithPriceUpdatesErrorType, SimulateWithPriceUpdatesParameters, SimulateWithPriceUpdatesReturnType, SimulationError, SimulationErrorType, SimulationValidationError, StakingRewardsAdapterContract, type StartIntent, StoreExpectedBalancesOp, StrategyCollateralProps, StrategyRateInputs, SupportedValue, Swap, SwapOperation, SyncStateOptions, type TimestampedCalldata, TokenAmount, TokenInfo, TokenMetaData, TokenTransfer, TokensMeta, TokensMetaState, TraceAdapterExt, TraderJoePool, TraderJoePoolVersion, TraderJoeRouterAdapterContract, Transfers, TreehouseFastlaneAdapterContract, TreehouseRedemptionGatewayAdapterContract, TreehouseRouterAdapterContract, type TumblerStateHuman, TypedObjectUtils, Unarray, UniswapSwap, UniswapV2AdapterContract, UniswapV3AdapterContract, UniswapV4AdapterContract, UpdatablePriceFeedRegistry, type UpdatablePriceFeedRegistryHooks, type UpdatePriceFeedsResult, type UpdateQuotaIntent, UpdateQuotaOp, UpshiftVaultAdapterContract, VERSION_RANGE_310, VaultDeposit, VelodromeV2RouterAdapterContract, VersionRange, VersionedAbi, VotingContractStatus, WAD, WAD_DECIMALS_POW, WalletFundingError, WatchBlocksAsyncParameters, WatchBlocksAsyncReturnType, WeighedFactors, type WithBlock, type WithMultichain, type WithPartialState, type WithdrawAssetIntent, type WithdrawCeilings, WithdrawCollateral, WithdrawCollateralOp, type WithdrawStrategyIntent, WithdrawableAsset, WithdrawalCompressorLocation, WithdrawalCompressorV310Contract, WithdrawalCompressorV311Contract, WithdrawalCompressorV313Contract, WithdrawalCompressorVersion, WithdrawalMetadata, WithdrawalOutput, WithdrawalStatus, WithdrawalsState, WstETHPriceFeedContract, WstETHUnwrap, WstETHV1AdapterContract, WstETHWrap, YearnPriceFeedContract, ZapperContract, ZapperData, type ZapperStateHuman, ZeroPriceFeedContract, ZodAddress, ZodBigInt, ZodHex, accountSnapshotFromCreditAccountData, adapterActionAbi, adapterActionSelectors, adapterActionSignatures, adapterConstructorAbi, allTransfersAsTokenAmounts, amountOf, assetsMap, attachOptionsSchema, botPermissionsToString, bpsToRay, buildDelayedStrategyPositionOperationPreview, bytes32ToString, calcBorrowApy, calcBorrowRate, calcDefaultQuota, calcEffectiveBorrowApy, calcHealthFactor, calcLiquidationPrice, calcLiquidationPriceForTarget, calcMaxLeverage, calcNetStrategyApy, calcPositionLeverage, calcQuotaRate, calcQuotaUpdate, calcRecommendedQuota, calcTimeToLiquidationMs, calcUtilization, calcUtilizationRaw, chains, checkAccountQuotas, checkBorrowLimit, checkCollateralFunding, checkCollateralised, checkCreditAccountFrozen, checkCreditManagerPaused, checkCreditOperation, checkDebtLimits, checkEmergencyLiquidator, checkForbiddenToken, checkHealthFactors, checkIncreaseDebt, checkIncreaseQuota, checkLeverage, checkLiquidation, checkLiquidationEligibility, checkLiquidationFunding, checkLiquidatorEligible, checkMarket, checkMarketExpired, checkMaxQuota, checkMidasAccountGreenlist, checkObtained, checkOperation, checkPartiallyLiquidatable, checkPoolFunding, checkPoolLiquidity, checkPoolOperation, checkPoolPaused, checkPoolSunset, checkQuotaActive, checkQuotaChange, checkQuotaCount, checkQuotaLimit, checkQuotaUpdates, checkRWAOpenRequirements, checkRWAOpening, checkReservePriceLimited, checkSimulation, checkWallet, checkWalletAllowance, checkWalletBalance, childLogger, classifyCloseOrRepay, classifyCurveOperation, classifyInnerOperations, collateralPriceInUnderlying, collectTraces, createAdapter, createAddressProvider, createPriceOracle, createRawTx, createRedemptionLogger, createRouter, createWithdrawalCompressor, createZapper, curveAddLiquidityFromTransfers, curveRemoveLiquidityFromTransfers, decodeDelayedIntent, detectDelayedClaim, detectDelayedOperation, detectNetwork, dominantCollateral, encodeDelayedIntent, erc4626ReferralAdapterAbi, estimateClaimableAt, estimateRawTxGas, etherscanApiUrl, etherscanUrl, executeDelegatedMulticalls, executeMulticallBatches, expectedBalanceDeltas, fetchCreditAccountSlice, filterDust, filterDustUSD, findCallTo, findCallWithInput, findCuratorMarketConfigurator, findExecuteBytes, fmtBinaryMask, fnSigToName, formatBN, formatBNvalue, formatDuration, formatLeverage, formatNumberToString_, formatPercentage, formatTimestamp, functionArgsToMap, functionArgsToRecord, generateCastTraceCall, getAccountTargetCollateral, getAdapterActionAbi, getAdapterDeployParamsAbi, getAdapterType, getAssetType, getCastTraceArgs, getChain, getCuratorName, getDirectTransferToken, getFunctionSignature, getLegacyStrategyTarget, getNetworkType, getRawPriceUpdates, getSimulateWithPriceUpdatesError, getWithdrawalCompressorAddress, halfRAY, hasAdapterDeployParamsAbi, healthFactorBps, hexEq, hydrateAddressProvider, iAaveHorizonBridgeAbi, iAaveHorizonBridgeAdapterAbi, iAaveV3PoolAbi, iAaveV3PoolAdapterAbi, iBalancerV3RouterAbi, iBalancerV3RouterAdapterAbi, iBalancerV3WrapperAbi, iBalancerV3WrapperAdapterAbi, iBaseOnRampAbi, iBaseRewardPoolAbi, iBoosterAbi, iCamelotV3AdapterAbi, iCamelotV3RouterAbi, iConvexV1BaseRewardPoolAdapterAbi, iConvexV1BoosterAdapterAbi, iCreditAccountAbi, iCurvePoolAbi, iCurvePoolStableNGAbi, iCurvePool_2Abi, iCurvePool_3Abi, iCurvePool_4Abi, iCurveV1StableNgAdapterAbi, iCurveV1_2AssetsAdapterAbi, iCurveV1_3AssetsAdapterAbi, iCurveV1_4AssetsAdapterAbi, iDaiUsdsAbi, iDaiUsdsAdapterAbi, iERC4626Abi, iERC4626ReferralAbi, iFluidDexAbi, iFluidDexAdapterAbi, iInfinifiGatewayAbi, iInfinifiGatewayAdapterAbi, iInfinifiUnwindingGatewayAbi, iInfinifiUnwindingGatewayAdapterAbi, iKelpLRTDepositPoolGatewayAbi, iKelpLRTWithdrawalManagerGatewayAbi, iKelpLrtDepositPoolAdapterAbi, iKelpLrtDepositPoolGatewayAbi, iKelpLrtWithdrawalManagerAdapterAbi, iKelpLrtWithdrawalManagerGatewayAbi, iLidoV1AdapterAbi, iMellow4626VaultAdapterAbi, iMellowClaimerAbi, iMellowClaimerAdapterAbi, iMellowWrapperAbi, iMellowWrapperAdapterAbi, iMidasGatewayAdapterV311Abi, iMidasGatewayV311Abi, iMidasIssuanceVaultAdapterV310Abi, iMidasIssuanceVaultV310Abi, iMidasRedemptionVaultAdapterV310Abi, iMidasRedemptionVaultGatewayV310Abi, iPendleRouterAbi, iPendleRouterAdapterAbi, iSecuritizeOnRampAbi, iSecuritizeOnRampAdapterV310Abi, iSecuritizeRedemptionGatewayAdapterV311Abi, iSecuritizeRedemptionGatewayV311Abi, iStakingRewardsAbi, iStakingRewardsAdapterAbi, iTraderJoeRouterAbi, iTraderJoeRouterAdapterAbi, iTreehouseFastlaneAbi, iTreehouseFastlaneAdapterAbi, iTreehouseRedemptionGatewayAbi, iTreehouseRedemptionGatewayAdapterAbi, iTreehouseRouterAbi, iTreehouseRouterAdapterAbi, iUniswapV2AdapterAbi, iUniswapV2Router02Abi, iUniswapV3Abi, iUniswapV3AdapterAbi, iUniswapV4AdapterAbi, iUniswapV4GatewayAbi, iUpshiftVaultAdapterAbi, iUpshiftVaultGatewayAbi, iVelodromeV2RouterAbi, iVelodromeV2RouterAdapterAbi, isCloseOrRepay, isDust, isLPPriceFeed, isPhantomToken, isPoolOperation, isPublicNetwork, isRWAFactory, isRWAOperation, isRWAToken, isStrategyCollateral, isSunsetPool, isSunsetStrategy, isSupportedNetwork, isUpdatablePriceFeed, isV310, isVersionRange, isZeroBalance, iwstETHAbi, iwstEthv1AdapterAbi, json_parse, json_stringify, lidoV1_WETHGatewayAbi, makeReplayState, maxAmountForQuota, mellowDvvAdapterAbi, midasGreenlistsAccount, minSeizedAmount, numberWithCommas, onchainSDKOptionsSchema, optimalHFForPartialLiquidation, optimalPartialLiquidation, optimalPartialLiquidationAmounts, parseAdapterAction, parseAdapterDeployParams, parseFacadeOperationCalldata, parseOperationCalldata, parsePoolOperationCalldata, parsePosNegAmount, parseRWAFactoryOperationCalldata, partialLiquidationParams, percentFmt, pickStrategyTargetCollateral, previewAdjustStrategyPosition, previewExitOrRepayStrategyPosition, previewOperation, raise, rayToBps, rayToNumber, replayInnerOperations, replayMulticall, resolveDelayedClaimIntent, resolveProtocolCall, retry, rewardsFromTransfers, roundUpQuota, sendRawTx, shortAddress, shortHash, simulateCall, simulateMulticall, simulateWithPriceUpdates, soleNonUnderlyingCollateral, strategyName, swapFromTransfers, toAddress, toBN, toBigInt, toChainIds, toClaimableWithdrawal, toCreditAccountSlice, toNetTransfers, toPendingWithdrawal, toRequestableWithdrawal, toSignificant, toToken, toTokenAmount, toWithdrawalStatus, updatableDependencies, usdToNumber, watchBlocksAsync };
369
+ export { ADDRESS_0X0, ADDRESS_PROVIDER_V310, AP_ACCOUNT_FACTORY, AP_ACL, AP_BOT_LIST, AP_BYTECODE_REPOSITORY, AP_CONTRACTS_REGISTER, AP_CONTROLLER_TIMELOCK, AP_CREDIT_ACCOUNT_COMPRESSOR, AP_CREDIT_SUITE_COMPRESSOR, AP_DATA_COMPRESSOR, AP_DELEVERAGE_BOT_HV, AP_DELEVERAGE_BOT_LV, AP_DELEVERAGE_BOT_PEGGED, AP_GAUGE_COMPRESSOR, AP_GEAR_STAKING, AP_GEAR_TOKEN, AP_INFLATION_ATTACK_BLOCKER, AP_INSOLVENCY_CHECKER, AP_MARKET_COMPRESSOR, AP_MARKET_CONFIGURATOR, AP_PARTIAL_LIQUIDATION_BOT, AP_PERIPHERY_COMPRESSOR, AP_PRICE_FEED_COMPRESSOR, AP_PRICE_FEED_STORE, AP_PRICE_ORACLE, AP_REDEMPTION_LOGGER, AP_REWARDS_COMPRESSOR, AP_ROUTER, AP_TOKEN_COMPRESSOR, AP_TREASURY, AP_WETH_GATEWAY, AP_WETH_TOKEN, AP_ZAPPER_REGISTER, AP_ZERO_PRICE_FEED, type AaveHoldings, AaveHorizonBridgeAdapterContract, AaveV3PoolAdapterContract, AbstractAdapterContract, AbstractAdapterContractOptions, AbstractLPPriceFeedContract, AbstractPriceFeedContract, AbstractWithdrawalCompressorContract, AccountBotsService, type AccountCalculatorOperation, AccountMigratorAdapterContract, AccountSnapshot, AccountToCheck, AdapterContractStateHuman, AdapterContractType, AdapterData, AdapterFactoryArgs, AdapterOperation, AdapterOperationBase, AdapterProtocolOperation, AdapterType, type AddCollateralIntent, AddCollateralOp, AddLiquidityProps, AddressMap, AddressProviderAddresses, AddressProviderState, AddressProviderV310Contract, type AddressProviderV3StateHuman, AddressSet, type AdjustLeverageIntent, type AliasLossPolicyStateHuman, AssembleCaOperationsProps, AssembleClaimDelayedCallsProps, AssembleCloseCreditAccountCallsProps, AssembleRepayCreditAccountCallsProps, AssembleStartDelayedWithdrawalCallsProps, AssertAssignable, Asset, type AssetPriceFeedStateHuman, AssetWithAmountInTarget, AssetsMap, AttachOptions, BLOCKS_PER_WEEK_BY_NETWORK, BalanceDelta, BalancerStablePriceFeedContract, BalancerSwap, BalancerV3Pool, BalancerV3PoolStatus, BalancerV3RouterAdapterContract, BalancerV3WrapperAdapterContract, BalancerWeightedPriceFeedContract, type BalancerWeightedPriceFeedStateHuman, BaseContract, BaseContractArgs, type BaseContractStateHuman, BaseParams, BasePlugin, type BasePriceFeedStateHuman, BaseState, BasicSwapCall, BigIntMath, type BlockNumberProps, BorrowLimitArgs, BorrowPreviewResult, type BorrowProps, type BorrowState, type BotListStateHuman, BotPermissions, BotStatusCall, BotsDirectResponse, type BoundedOracleStateHuman, BoundedPriceFeedContract, BuildLiquidationTxProps, BuildLiquidationTxPropsBase, BuildPartialLiquidationTxProps, BuildPartialLiquidationTxPropsBase, CMSlice, CalcBorrowRateProps, CalcDefaultQuotaProps, CalcHealthFactorProps, CalcLiquidationPriceForTargetProps, CalcLiquidationPriceProps, CalcQuotaUpdateProps, CalcRecommendedQuotaProps, CallTrace, CamelotPool, CamelotV3AdapterContract, ChainBlock, ChainBlockPin, ChainBlockSource, ChainConfig, ChainContractsRegister, ChainNotConfiguredError, ChainQueryOneProps, ChainQueryProps, CheckAaveDelegationInput, CheckCollateralFundingInput, CheckLiquidationEligibilityInput, CheckLiquidationFundingInput, CheckLiquidationInput, CheckLiquidationOptions, CheckMidasAccountGreenlistInput, CheckOperationInput, CheckOperationOptions, CheckPoolFundingInput, CheckRWAOpenRequirementsInput, CheckRWAOpeningInput, CheckSimulationInput, CheckWalletAllowanceInput, CheckWalletBalanceInput, CheckWalletInput, ClaimFarmRewardsProps, type ClaimRemainder, ClaimableWithdrawal, ClassifyInnerOperationsProps, ClientOptions, type CloseAavePositionIntent, CloseCreditAccountOperation, CloseOrRepayOperation, ClosePathBalances, CollateralFundingPreview, CollateralisedArgs, CompareBalancesOp, CompositePriceFeedContract, CompressorZapperData, ConcreteAdapterContractOptions, ConnectedBotData, ConnectedBotsCall, ConnectedBotsPerAccount, type ConstantOracleStateHuman, ConstantPriceFeedContract, Construct, ConstructOptions, type ContractMethod, ContractOrInterface, ContractParseError, ContractParseErrorOptions, ConvertFn, ConvexDeposit, ConvexDepositAndStake, ConvexStake, ConvexV1BaseRewardPoolAdapterContract, ConvexV1BoosterAdapterContract, ConvexWithdraw, ConvexWithdrawAndClaim, type CoreStateHuman, CreditAccountCompressor, CreditAccountCompressorV310Contract, CreditAccountData, CreditAccountDataCall, CreditAccountDataPayload, CreditAccountFilter, CreditAccountFrozenArgs, CreditAccountOperation, CreditAccountOperationResult, CreditAccountOperationsService, CreditAccountReadOptions, type CreditAccountSlice, CreditAccountState, CreditAccountStateProps, CreditAccountTokenQuota, CreditAccountTokensSlice, CreditAccountsCall, CreditAccountsQuery, CreditAccountsReadOptions, CreditAccountsServiceV310, CreditAccountsTarget, CreditConfiguratorState, type CreditConfiguratorStateHuman, CreditConfiguratorV310Contract, CreditFacadeState, type CreditFacadeStateHuman, type abi as CreditFacadeV310Abi, abi as creditFacadeV310Abi, CreditFacadeV310BaseContract, CreditFacadeV310Contract, CreditManagerDebtParams, type CreditManagerDebtParamsHuman, CreditManagerFilter, CreditManagerOperationResult, CreditManagerPausedArgs, CreditManagerState, type CreditManagerStateHuman, CreditManagerV310Contract, CreditOperationArgs, CreditOperationError, CreditOperationPreview, CreditSimulationInput, CreditSuite, CreditSuiteState, type CreditSuiteStateHuman, CreditSuiteStrategy, CurrentWithdrawals, Curve2AssetsAdapterContract, Curve3AssetsAdapterContract, Curve4AssetsAdapterContract, CurveAddLiquidity, CurveClaims, CurveCryptoPriceFeedContract, CurveExchange, CurveRemoveLiquidity, CurveRemoveLiquidityOneCoin, CurveStablePriceFeedContract, CurveUSDPriceFeedContract, CurveV1AdapterStETHContract, CurveV1StableNGAdapterContract, CurveWithdrawal, DEFAULT_QUOTA_BUFFER_BPS, DEGEN_NFT_MIDAS, DEGEN_NFT_SECURITIZE, DELAYED_INTENT_TYPES, DELAYED_INTENT_VERSION, DIRECT_TRANSFERS_QUOTA, DStokenData, DUST_THRESHOLD, DaiUsdsAdapterContract, DebtLimitsArgs, DecreaseDebtOp, type DelayableIntent, DelayedIntentExtended, type DelayedRoute, type DelayedStart, type DelayedStartResult, DelayedWithdrawalClaim, DelayedWithdrawalRequest, DelegatedMulticall, DepositMetadata, type DepositStrategyIntent, DetectedDelayedClaim, DetectedDelayedOperation, DirectTokenTransferOperation, ERC4626AdapterContract, ERC4626ReferralAdapterContract, EXECUTE_BYTES_SELECTOR, EmergencyLiquidatorArgs, EmptyAccountPreviewResult, EncodableCreditAccountOperation, Erc4626PriceFeedContract, EstimateRawTxGasParameters, EtherscanURLParam, ExecuteMulticallBatchesOptions, type ExecutionCost, ExpectedBalanceDeltasProps, ExpectedOutput, ExternalPriceFeedContract, FacadeOperationMetadata, FilterDustUSDOptions, FindBestClosePathProps, FindClaimAllRewardsProps, FindManyToOnePathProps, FindOneTokenPathProps, FindOpenStrategyPathProps, type FinishIntentProps, type FinishIntentResult, FluidDexAdapterContract, ForbiddenTokenArgs, FormatBNOptions, FullyLiquidateProps, FullyLiquidateResult, GaugeContract, GaugeData, GaugeParams, type GaugeParamsHuman, type GaugeStateHuman, type GearStakingV3StateHuman, GearboxChain, type GearboxState, type GearboxStateHuman, GetApprovalAddressProps, GetConnectedBotsResponse, GetConnectedBotsResult, GetConnectedMigrationBotsResult, GetCreditAccountsArgs, GetCreditAccountsOptions, GetCurrentWithdrawalsProps, GetCurrentWithdrawalsPropsBase, GetExternalAccountCurrentWithdrawalsProps, GetInvestorOptions, GetLiquidatableAccountsProps, GetLiquidationDetailsProps, GetLiquidationDetailsPropsBase, GetLiquidationPositionsProps, GetLiquidationPositionsPropsBase, GetOpenAccountRequirementsProps, GetPartialLiquidationDetailsProps, GetPartialLiquidationDetailsPropsBase, GetReward, GetWithdrawalRequestResultProps, HealthFactorThresholds, HydrateOptions, IAdapterContract, IAddressProviderContract, IBaseContract, ICreditAccountsService, ICreditConfiguratorContract, ICreditFacadeContract, ICreditManagerContract, IDegenNFT, IERC20ZapperContract, IETHZapperContract, IInterestRateModelContract, type ILogger, IMultichainOpportunitiesService, IMultichainPositionsService, IOnchainSDKPlugin, IOnchainSDKPluginConstructor, IPluginState, IPoolContract, IPoolsService, IPriceFeedContract, IPriceOracleContract, type IPriceUpdateTask, type IPriceUpdateTx, type IPriceUpdater, IRWAFactory, IRateKeeperContract, IRedemptionLoggerContract, IRouterContract, type IUpdatablePriceFeedContract, IWithdrawalCompressorContract, IZapperContract, IncreaseDebtOp, InfinifiGatewayAdapterContract, InfinifiUnwindingGatewayAdapterContract, InnerFacadeOperation, InnerOperation, type InstantRoute, type IntentPreviewResult, type IntentRoutesResult, type IntentValidationError, type InterestRateModelStateHuman, InterestRateModelType, IsDustOptions, KelpLRTDepositPoolAdapterContract, KelpLRTWithdrawalManagerAdapterContract, LEVERAGE_DECIMALS, LIQUIDATION_APPROVAL_BUFFER, LIQUIDATION_COMPRESSOR_V313_ADDRESS, LPMonopolizedPoolMeta, type LPPriceFeedStateHuman, type LatestUpdate, LegacyAdapterOperation, LeverageArgs, type LeverageBand, LidoSubmit, LidoV1AdapterContract, LinearInterestRateModelContract, type LinearInterestRateModelStateHuman, LiquidateCreditAccountOperation, LiquidationEligibilityError, LiquidationFees, LiquidationValidationError, LiquidationsService, LiquidatorEligibleArgs, ListAavePositionsProps, ListAavePositionsPropsBase, ListPoolPositionsProps, ListPositionsProps, ListPositionsPropsBase, ListStrategyPositionsProps, LoadRWALiquidatorsProps, type LogFn, type LossPolicyStateHuman, MAX_INT, MAX_LEVERAGE_BUFFER_BPS, MAX_QUOTA_MULTIPLIER, MAX_UINT16, MAX_UINT256, MIN_HEALTH_FACTOR_FACADE, MIN_HEALTH_FACTOR_FORM, MIN_HF_LIMITED, MIN_INT96, MIN_SAFE_HEALTH_FACTOR_FORM, MULTICALL_ADDRESS, MakerDeposit, MakerRedeem, MarketBot, MarketData, MarketExpiredArgs, MarketFilter, MarketRegister, MarketRegistryState, MarketRegistryStateHuman, MarketStateError, type MarketStateHuman, MarketSuite, MarketType, MaxAmountForQuotaProps, MaxBorrowAmount, MaxQuotaArgs, MellowClaimerAdapterContract, MellowDVVAdapterContract, MellowERC4626VaultAdapterContract, MellowLRTPriceFeedContract, MellowWrapperAdapterContract, Methods, MidasDegenNFT, MidasGatewayAdapterContract, MidasIssuanceVaultAdapterContract, MidasLiquidatorContract, MidasRedemptionVaultAdapterContract, MissingSerializedParamsError, type MultiCall, MulticallBatch, MulticallOperation, MulticallWithFailure, MultichainAttachOptions, type MultichainChainIdsProps, MultichainConstruct, MultichainHydrateOptions, MultichainLiquidationsService, type MultichainNetworkProps, MultichainOpportunitiesService, MultichainPositionsService, MultichainSDK, MultichainSDKOptions, type MultichainState, type MultichainStateHuman, MultichainSyncStateOptions, NATIVE_ADDRESS, NON_STRATEGY_PHANTOM_TOKEN_TYPES, NOT_DEPLOYED, NO_VERSION, NetworkType, OnchainLiquidationCall, OnchainLiquidationData, OnchainLiquidationOutput, OnchainRequestableWithdrawal, OnchainSDK, OnchainSDKOptions, OpenCAProps, OpenCreditAccountOperation, OpenStrategyPreviewResult, type OpenStrategyProps, OpenStrategyResult, type OpenStrategyState, Operation, OperationMetadata, type OperationState, OperationValidationError, OpportunitiesService, OptimalPartialLiquidation, OptimalPartialLiquidationAmounts, OptimalPartialLiquidationAmountsProps, OptimalPartialLiquidationProps, OuterFacadeOperation, PARTIAL_LIQUIDATION_BUFFER_BPS, PERCENTAGE_DECIMALS, PERCENTAGE_FACTOR, PERCENTAGE_FACTOR_1KK, PERIPHERY_CONTRACTS, PHANTOM_TOKEN_CONTRACT_TYPES, PHANTOM_TOKEN_MIDAS_REDEMPTION, PHANTOM_TOKEN_SECURITIZE_REDEMPTION, PRICE_DECIMALS, PRICE_DECIMALS_POW, ParsedCall, ParsedCallArgs, ParsedCallV2, ParsedZapperDeposit, ParsedZapperOperation, ParsedZapperRedeem, PartialLiquidationOperation, PartialLiquidationParams, PartialLiquidationParamsProps, PartialPriceFeedInitError, PartialPriceFeedTreeNode, PartialRecord, PartiallyLiquidatableArgs, type PathLossRate, PendingWithdrawal, PendlePair, PendlePairStatus, PendleRouterAdapterContract, PendleTWAPPTPriceFeed, PendleTokenType, PeripheryCompressorV310Contract, PeripheryContract, PermitResult, PhantomTokenContractType, PhantomTokenMeta, PickSomeRequired, PluginFactoriesMap, PluginFactory, PluginState, PluginStateVersionError, PluginStatesMap, PluginsMap, PoolDepositOperation, PoolLiquidityArgs, PoolMintOperation, PoolOperation, PoolOperationArgs, PoolOperationError, PoolPausedArgs, PoolQuotaKeeperContract, type PoolQuotaKeeperStateHuman, PoolRedeemOperation, PoolService, PoolServiceCall, PoolServiceCallResult, PoolSimulation, PoolState, type PoolStateHuman, PoolSuite, type PoolSuiteStateHuman, PoolSunsetArgs, PoolV310Contract, PoolWithdrawOperation, PositionsService, PrepareUpdateQuotasProps, PreviewDelayedWithdrawalProps, PreviewOperationError, PriceFeedAnswer, PriceFeedConstructorArgs, PriceFeedContractType, PriceFeedMapEntry, PriceFeedRef, PriceFeedRegistry, type PriceFeedStateHuman, PriceFeedTreeNode, PriceFeedUsageType, PriceFeedsForAccountOptions, PriceFeedsForTokensOptions, PriceOracleData, type PriceOracleStateHuman, PriceOracleV310Contract, PriceUpdate, PriceUpdatesCache, ProjectedPoolOptions, PythPriceFeed, QuotaActiveArgs, QuotaChangeArgs, QuotaCountArgs, QuotaKeeperState, QuotaLimitArgs, QuotaMode, type QuotaParamsHuman, QuotaSlice, QuotaState, QuotaUpdateError, RAMP_DURATION_BY_NETWORK, RAY, RAY_DECIMALS_POW, RWACompressorCall, RWACompressorInvestorData, RWACompressorResponse, RWADefaultTokenMeta, RWAFactoryData, RWAFactoryProtocol, RWAFactoryStateHuman, RWAInvestorData, RWALiquidatorInfo, RWAMulticallOperation, RWAOnDemandLPMeta, RWAOnDemandLPMonopolizedMeta, RWAOnDemandLpContractType, RWAOnDemandTokenMeta, RWAOpenCreditAccountOperation, RWAOpeningError, RWAOperation, RWAOperationMetadata, RWARegistry, RWAState, RWAStateHuman, RWATokenMeta, RWAUnderlyingContractType, RWAUnderlyingData, RWA_COMPRESSOR_ADDRESS, RWA_LIQUIDATOR_MIDAS, RWA_LIQUIDATOR_SECURITIZE, RWA_ON_DEMAND_LP_MONOPOLIZED, RWA_UNDERLYING_DEFAULT, RWA_UNDERLYING_ON_DEMAND, RampEvent, RateKeeperState, type RateKeeperStateHuman, RateKeeperType, type RawTx, type RedeemingIntent, RedemptionLog, RedemptionLoggerV310Contract, RedemptionPhantomRename, RedstonePriceFeedContract, type RedstonePriceFeedStateHuman, type RefusedIntent, RelaxedBaseParams, RemoveLiquidityProps, type RepayStrategyIntent, ReplayMulticallResult, ReplayState, ReplayableOperation, RequestableWithdrawal, ReservePriceLimitedArgs, type ResumableIntent, RetryOptions, RewardInfo, Rewards, type RouteErrors, RouterCASlice, RouterCMSlice, RouterCloseResult, RouterResult, RouterRewardsResult, RouterV310Contract, SDKConstruct, SDKOptions, SECONDS_PER_YEAR, SLIPPAGE_DECIMALS, STATE_VERSION, SUPPORTED_NETWORKS, SdkAlreadyAttachedError, SdkChainMismatchError, SdkMissingChainStateError, SdkNotAttachedError, SdkRWADataNotLoadedError, SdkStateVersionMismatchError, SdkSyncFailedError, SecuritizeCreditAccountData, SecuritizeDegenNFT, SecuritizeInvestorData, SecuritizeLiquidatorContract, SecuritizeOnRampAdapterContract, SecuritizeRWAFactory, SecuritizeRWAFactoryStateHuman, SecuritizeRedemptionGatewayAdapterContract, SendRawTxParameters, SetBotProps, SetBotResult, SimpleTokenMeta, SimulateCallOptions, SimulateCallParameters, SimulateCallReturnType, SimulateMulticallParameters, SimulateMulticallReturnType, SimulatePoolOperationProps, SimulateWithPriceUpdatesError, SimulateWithPriceUpdatesErrorParams, SimulateWithPriceUpdatesErrorType, SimulateWithPriceUpdatesParameters, SimulateWithPriceUpdatesReturnType, SimulationError, SimulationErrorType, SimulationValidationError, StakingRewardsAdapterContract, type StartIntent, StoreExpectedBalancesOp, StrategyCollateralProps, StrategyRateInputs, SupportedValue, Swap, SwapOperation, SyncStateOptions, type TimestampedCalldata, TokenAmount, TokenInfo, TokenMetaData, TokenTransfer, TokensMeta, TokensMetaState, TraceAdapterExt, TraderJoePool, TraderJoePoolVersion, TraderJoeRouterAdapterContract, Transfers, TreehouseFastlaneAdapterContract, TreehouseRedemptionGatewayAdapterContract, TreehouseRouterAdapterContract, type TumblerStateHuman, TypedObjectUtils, Unarray, UniswapSwap, UniswapV2AdapterContract, UniswapV3AdapterContract, UniswapV4AdapterContract, UpdatablePriceFeedRegistry, type UpdatablePriceFeedRegistryHooks, type UpdatePriceFeedsResult, type UpdateQuotaIntent, UpdateQuotaOp, UpshiftVaultAdapterContract, VERSION_RANGE_310, VaultDeposit, VelodromeV2RouterAdapterContract, VersionRange, VersionedAbi, VotingContractStatus, WAD, WAD_DECIMALS_POW, WalletFundingError, WatchBlocksAsyncParameters, WatchBlocksAsyncReturnType, WeighedFactors, type WithBlock, type WithMultichain, type WithPartialState, type WithdrawAssetIntent, type WithdrawCeilings, WithdrawCollateral, WithdrawCollateralOp, type WithdrawStrategyIntent, WithdrawableAsset, WithdrawalCompressorLocation, WithdrawalCompressorV310Contract, WithdrawalCompressorV311Contract, WithdrawalCompressorV313Contract, WithdrawalCompressorVersion, WithdrawalMetadata, WithdrawalOutput, WithdrawalStatus, WithdrawalsState, WstETHPriceFeedContract, WstETHUnwrap, WstETHV1AdapterContract, WstETHWrap, YearnPriceFeedContract, ZapperContract, ZapperData, type ZapperStateHuman, ZeroPriceFeedContract, ZodAddress, ZodBigInt, ZodHex, aaveBridgeBorrows, accountSnapshotFromCreditAccountData, adapterActionAbi, adapterActionSelectors, adapterActionSignatures, adapterConstructorAbi, allTransfersAsTokenAmounts, amountOf, assetsMap, attachOptionsSchema, botPermissionsToString, bpsToRay, buildDelayedStrategyPositionOperationPreview, bytes32ToString, calcBorrowApy, calcBorrowRate, calcDefaultQuota, calcEffectiveBorrowApy, calcHealthFactor, calcLiquidationPrice, calcLiquidationPriceForTarget, calcMaxLeverage, calcNetStrategyApy, calcPositionLeverage, calcQuotaRate, calcQuotaUpdate, calcRecommendedQuota, calcTimeToLiquidationMs, calcUtilization, calcUtilizationRaw, chains, checkAaveDelegation, checkAccountQuotas, checkBorrowLimit, checkCollateralFunding, checkCollateralised, checkCreditAccountFrozen, checkCreditManagerPaused, checkCreditOperation, checkDebtLimits, checkEmergencyLiquidator, checkForbiddenToken, checkHealthFactors, checkIncreaseDebt, checkIncreaseQuota, checkLeverage, checkLiquidation, checkLiquidationEligibility, checkLiquidationFunding, checkLiquidatorEligible, checkMarket, checkMarketExpired, checkMaxQuota, checkMidasAccountGreenlist, checkObtained, checkOperation, checkPartiallyLiquidatable, checkPoolFunding, checkPoolLiquidity, checkPoolOperation, checkPoolPaused, checkPoolSunset, checkQuotaActive, checkQuotaChange, checkQuotaCount, checkQuotaLimit, checkQuotaUpdates, checkRWAOpenRequirements, checkRWAOpening, checkReservePriceLimited, checkSimulation, checkWallet, checkWalletAllowance, checkWalletBalance, childLogger, classifyCloseOrRepay, classifyCurveOperation, classifyInnerOperations, collateralPriceInUnderlying, collectTraces, createAdapter, createAddressProvider, createPriceOracle, createRawTx, createRedemptionLogger, createRouter, createWithdrawalCompressor, createZapper, curveAddLiquidityFromTransfers, curveRemoveLiquidityFromTransfers, decodeDelayedIntent, detectDelayedClaim, detectDelayedOperation, detectNetwork, dominantCollateral, encodeDelayedIntent, erc4626ReferralAdapterAbi, estimateClaimableAt, estimateRawTxGas, etherscanApiUrl, etherscanUrl, executeDelegatedMulticalls, executeMulticallBatches, expectedBalanceDeltas, fetchCreditAccountSlice, filterDust, filterDustUSD, findCallTo, findCallWithInput, findCuratorMarketConfigurator, findExecuteBytes, fmtBinaryMask, fnSigToName, formatBN, formatBNvalue, formatDuration, formatLeverage, formatNumberToString_, formatPercentage, formatTimestamp, functionArgsToMap, functionArgsToRecord, generateCastTraceCall, getAccountTargetCollateral, getAdapterActionAbi, getAdapterDeployParamsAbi, getAdapterType, getAssetType, getCastTraceArgs, getChain, getCuratorName, getDirectTransferToken, getFunctionSignature, getLegacyStrategyTarget, getNetworkType, getRawPriceUpdates, getSimulateWithPriceUpdatesError, getWithdrawalCompressorAddress, halfRAY, hasAdapterDeployParamsAbi, healthFactorBps, hexEq, hydrateAddressProvider, iAaveHorizonBridgeAbi, iAaveHorizonBridgeAdapterAbi, iAaveOracleAbi, iAaveV3PoolAbi, iAaveV3PoolAdapterAbi, iBalancerV3RouterAbi, iBalancerV3RouterAdapterAbi, iBalancerV3WrapperAbi, iBalancerV3WrapperAdapterAbi, iBaseOnRampAbi, iBaseRewardPoolAbi, iBoosterAbi, iCamelotV3AdapterAbi, iCamelotV3RouterAbi, iConvexV1BaseRewardPoolAdapterAbi, iConvexV1BoosterAdapterAbi, iCreditAccountAbi, iCurvePoolAbi, iCurvePoolStableNGAbi, iCurvePool_2Abi, iCurvePool_3Abi, iCurvePool_4Abi, iCurveV1StableNgAdapterAbi, iCurveV1_2AssetsAdapterAbi, iCurveV1_3AssetsAdapterAbi, iCurveV1_4AssetsAdapterAbi, iDaiUsdsAbi, iDaiUsdsAdapterAbi, iERC4626Abi, iERC4626ReferralAbi, iFluidDexAbi, iFluidDexAdapterAbi, iInfinifiGatewayAbi, iInfinifiGatewayAdapterAbi, iInfinifiUnwindingGatewayAbi, iInfinifiUnwindingGatewayAdapterAbi, iKelpLRTDepositPoolGatewayAbi, iKelpLRTWithdrawalManagerGatewayAbi, iKelpLrtDepositPoolAdapterAbi, iKelpLrtDepositPoolGatewayAbi, iKelpLrtWithdrawalManagerAdapterAbi, iKelpLrtWithdrawalManagerGatewayAbi, iLidoV1AdapterAbi, iMellow4626VaultAdapterAbi, iMellowClaimerAbi, iMellowClaimerAdapterAbi, iMellowWrapperAbi, iMellowWrapperAdapterAbi, iMidasGatewayAdapterV311Abi, iMidasGatewayV311Abi, iMidasIssuanceVaultAdapterV310Abi, iMidasIssuanceVaultV310Abi, iMidasRedemptionVaultAdapterV310Abi, iMidasRedemptionVaultGatewayV310Abi, iPendleRouterAbi, iPendleRouterAdapterAbi, iPoolAddressesProviderAbi, iSecuritizeNAVProviderAbi, iSecuritizeOnRampAbi, iSecuritizeOnRampAdapterV310Abi, iSecuritizeRedemptionGatewayAdapterV311Abi, iSecuritizeRedemptionGatewayV311Abi, iStakingRewardsAbi, iStakingRewardsAdapterAbi, iTraderJoeRouterAbi, iTraderJoeRouterAdapterAbi, iTreehouseFastlaneAbi, iTreehouseFastlaneAdapterAbi, iTreehouseRedemptionGatewayAbi, iTreehouseRedemptionGatewayAdapterAbi, iTreehouseRouterAbi, iTreehouseRouterAdapterAbi, iUniswapV2AdapterAbi, iUniswapV2Router02Abi, iUniswapV3Abi, iUniswapV3AdapterAbi, iUniswapV4AdapterAbi, iUniswapV4GatewayAbi, iUpshiftVaultAdapterAbi, iUpshiftVaultGatewayAbi, iVariableDebtTokenAbi, iVelodromeV2RouterAbi, iVelodromeV2RouterAdapterAbi, isCloseOrRepay, isDust, isLPPriceFeed, isPhantomToken, isPoolOperation, isPublicNetwork, isRWAFactory, isRWAOperation, isRWAToken, isStrategyCollateral, isSunsetPool, isSunsetStrategy, isSupportedNetwork, isUpdatablePriceFeed, isV310, isVersionRange, isZeroBalance, iwstETHAbi, iwstEthv1AdapterAbi, json_parse, json_stringify, lidoV1_WETHGatewayAbi, makeReplayState, maxAmountForQuota, mellowDvvAdapterAbi, midasGreenlistsAccount, minSeizedAmount, numberWithCommas, onchainSDKOptionsSchema, optimalHFForPartialLiquidation, optimalPartialLiquidation, optimalPartialLiquidationAmounts, parseAdapterAction, parseAdapterDeployParams, parseFacadeOperationCalldata, parseOperationCalldata, parsePoolOperationCalldata, parsePosNegAmount, parseRWAFactoryOperationCalldata, partialLiquidationParams, percentFmt, pickStrategyTargetCollateral, previewAdjustStrategyPosition, previewExitOrRepayStrategyPosition, previewOperation, raise, rayToBps, rayToNumber, replayInnerOperations, replayMulticall, resolveDelayedClaimIntent, resolveProtocolCall, retry, rewardsFromTransfers, roundUpQuota, sendRawTx, shortAddress, shortHash, simulateCall, simulateMulticall, simulateWithPriceUpdates, soleNonUnderlyingCollateral, strategyName, swapFromTransfers, toAddress, toBN, toBigInt, toChainIds, toClaimableWithdrawal, toCreditAccountSlice, toNetTransfers, toPendingWithdrawal, toRequestableWithdrawal, toSignificant, toToken, toTokenAmount, toWithdrawalStatus, updatableDependencies, usdToNumber, watchBlocksAsync };
@@ -0,0 +1,22 @@
1
+ //#region src/onchain/market/adapters/abi/aave/iAaveOracle.d.ts
2
+ export declare const iAaveOracleAbi: readonly [{
3
+ readonly name: "BASE_CURRENCY_UNIT";
4
+ readonly type: "function";
5
+ readonly stateMutability: "view";
6
+ readonly inputs: readonly [];
7
+ readonly outputs: readonly [{
8
+ readonly type: "uint256";
9
+ }];
10
+ }, {
11
+ readonly name: "getAssetsPrices";
12
+ readonly type: "function";
13
+ readonly stateMutability: "view";
14
+ readonly inputs: readonly [{
15
+ readonly type: "address[]";
16
+ readonly name: "assets";
17
+ }];
18
+ readonly outputs: readonly [{
19
+ readonly type: "uint256[]";
20
+ }];
21
+ }];
22
+ //#endregion
@@ -86,5 +86,144 @@ export declare const iAaveV3PoolAbi: readonly [{
86
86
  readonly outputs: readonly [{
87
87
  readonly type: "address";
88
88
  }];
89
+ }, {
90
+ readonly name: "ADDRESSES_PROVIDER";
91
+ readonly type: "function";
92
+ readonly stateMutability: "view";
93
+ readonly inputs: readonly [];
94
+ readonly outputs: readonly [{
95
+ readonly type: "address";
96
+ }];
97
+ }, {
98
+ readonly name: "getReserveData";
99
+ readonly type: "function";
100
+ readonly stateMutability: "view";
101
+ readonly inputs: readonly [{
102
+ readonly type: "address";
103
+ readonly name: "asset";
104
+ }];
105
+ readonly outputs: readonly [{
106
+ readonly type: "tuple";
107
+ readonly components: readonly [{
108
+ readonly type: "tuple";
109
+ readonly name: "configuration";
110
+ readonly components: readonly [{
111
+ readonly type: "uint256";
112
+ readonly name: "data";
113
+ }];
114
+ }, {
115
+ readonly type: "uint128";
116
+ readonly name: "liquidityIndex";
117
+ }, {
118
+ readonly type: "uint128";
119
+ readonly name: "currentLiquidityRate";
120
+ }, {
121
+ readonly type: "uint128";
122
+ readonly name: "variableBorrowIndex";
123
+ }, {
124
+ readonly type: "uint128";
125
+ readonly name: "currentVariableBorrowRate";
126
+ }, {
127
+ readonly type: "uint128";
128
+ readonly name: "currentStableBorrowRate";
129
+ }, {
130
+ readonly type: "uint40";
131
+ readonly name: "lastUpdateTimestamp";
132
+ }, {
133
+ readonly type: "uint16";
134
+ readonly name: "id";
135
+ }, {
136
+ readonly type: "address";
137
+ readonly name: "aTokenAddress";
138
+ }, {
139
+ readonly type: "address";
140
+ readonly name: "stableDebtTokenAddress";
141
+ }, {
142
+ readonly type: "address";
143
+ readonly name: "variableDebtTokenAddress";
144
+ }, {
145
+ readonly type: "address";
146
+ readonly name: "interestRateStrategyAddress";
147
+ }, {
148
+ readonly type: "uint128";
149
+ readonly name: "accruedToTreasury";
150
+ }, {
151
+ readonly type: "uint128";
152
+ readonly name: "unbacked";
153
+ }, {
154
+ readonly type: "uint128";
155
+ readonly name: "isolationModeTotalDebt";
156
+ }];
157
+ }];
158
+ }, {
159
+ readonly name: "getUserAccountData";
160
+ readonly type: "function";
161
+ readonly stateMutability: "view";
162
+ readonly inputs: readonly [{
163
+ readonly type: "address";
164
+ readonly name: "user";
165
+ }];
166
+ readonly outputs: readonly [{
167
+ readonly type: "uint256";
168
+ readonly name: "totalCollateralBase";
169
+ }, {
170
+ readonly type: "uint256";
171
+ readonly name: "totalDebtBase";
172
+ }, {
173
+ readonly type: "uint256";
174
+ readonly name: "availableBorrowsBase";
175
+ }, {
176
+ readonly type: "uint256";
177
+ readonly name: "currentLiquidationThreshold";
178
+ }, {
179
+ readonly type: "uint256";
180
+ readonly name: "ltv";
181
+ }, {
182
+ readonly type: "uint256";
183
+ readonly name: "healthFactor";
184
+ }];
185
+ }, {
186
+ readonly name: "getUserEMode";
187
+ readonly type: "function";
188
+ readonly stateMutability: "view";
189
+ readonly inputs: readonly [{
190
+ readonly type: "address";
191
+ readonly name: "user";
192
+ }];
193
+ readonly outputs: readonly [{
194
+ readonly type: "uint256";
195
+ }];
196
+ }, {
197
+ readonly name: "getEModeCategoryCollateralConfig";
198
+ readonly type: "function";
199
+ readonly stateMutability: "view";
200
+ readonly inputs: readonly [{
201
+ readonly type: "uint8";
202
+ readonly name: "id";
203
+ }];
204
+ readonly outputs: readonly [{
205
+ readonly type: "tuple";
206
+ readonly components: readonly [{
207
+ readonly type: "uint16";
208
+ readonly name: "ltv";
209
+ }, {
210
+ readonly type: "uint16";
211
+ readonly name: "liquidationThreshold";
212
+ }, {
213
+ readonly type: "uint16";
214
+ readonly name: "liquidationBonus";
215
+ }];
216
+ }];
217
+ }, {
218
+ readonly name: "getEModeCategoryCollateralBitmap";
219
+ readonly type: "function";
220
+ readonly stateMutability: "view";
221
+ readonly inputs: readonly [{
222
+ readonly type: "uint8";
223
+ readonly name: "id";
224
+ }];
225
+ readonly outputs: readonly [{
226
+ readonly type: "uint128";
227
+ }];
89
228
  }];
90
229
  //#endregion
@@ -0,0 +1,11 @@
1
+ //#region src/onchain/market/adapters/abi/aave/iPoolAddressesProvider.d.ts
2
+ export declare const iPoolAddressesProviderAbi: readonly [{
3
+ readonly name: "getPriceOracle";
4
+ readonly type: "function";
5
+ readonly stateMutability: "view";
6
+ readonly inputs: readonly [];
7
+ readonly outputs: readonly [{
8
+ readonly type: "address";
9
+ }];
10
+ }];
11
+ //#endregion
@@ -0,0 +1,17 @@
1
+ //#region src/onchain/market/adapters/abi/aave/iVariableDebtToken.d.ts
2
+ export declare const iVariableDebtTokenAbi: readonly [{
3
+ readonly name: "borrowAllowance";
4
+ readonly type: "function";
5
+ readonly stateMutability: "view";
6
+ readonly inputs: readonly [{
7
+ readonly type: "address";
8
+ readonly name: "fromUser";
9
+ }, {
10
+ readonly type: "address";
11
+ readonly name: "toUser";
12
+ }];
13
+ readonly outputs: readonly [{
14
+ readonly type: "uint256";
15
+ }];
16
+ }];
17
+ //#endregion
@@ -1,3 +1,6 @@
1
1
  import { iAaveHorizonBridgeAbi } from "./iAaveHorizonBridge.js";
2
+ import { iAaveOracleAbi } from "./iAaveOracle.js";
2
3
  import { iAaveV3PoolAbi } from "./iAaveV3Pool.js";
3
- export { iAaveHorizonBridgeAbi, iAaveV3PoolAbi };
4
+ import { iPoolAddressesProviderAbi } from "./iPoolAddressesProvider.js";
5
+ import { iVariableDebtTokenAbi } from "./iVariableDebtToken.js";
6
+ export { iAaveHorizonBridgeAbi, iAaveOracleAbi, iAaveV3PoolAbi, iPoolAddressesProviderAbi, iVariableDebtTokenAbi };
@@ -107,6 +107,27 @@ export declare const iAaveHorizonBridgeAdapterAbi: readonly [{
107
107
  readonly type: "bool";
108
108
  readonly name: "useSafePrices";
109
109
  }];
110
+ }, {
111
+ readonly name: "openPositionDiff";
112
+ readonly type: "function";
113
+ readonly stateMutability: "nonpayable";
114
+ readonly inputs: readonly [{
115
+ readonly type: "address";
116
+ readonly name: "aToken";
117
+ }, {
118
+ readonly type: "address";
119
+ readonly name: "debtToken";
120
+ }, {
121
+ readonly type: "uint256";
122
+ readonly name: "leftoverAmount";
123
+ }, {
124
+ readonly type: "uint256";
125
+ readonly name: "borrowAmount";
126
+ }];
127
+ readonly outputs: readonly [{
128
+ readonly type: "bool";
129
+ readonly name: "useSafePrices";
130
+ }];
110
131
  }, {
111
132
  readonly name: "closePosition";
112
133
  readonly type: "function";
@@ -1,5 +1,8 @@
1
1
  import { iAaveHorizonBridgeAbi } from "./aave/iAaveHorizonBridge.js";
2
+ import { iAaveOracleAbi } from "./aave/iAaveOracle.js";
2
3
  import { iAaveV3PoolAbi } from "./aave/iAaveV3Pool.js";
4
+ import { iPoolAddressesProviderAbi } from "./aave/iPoolAddressesProvider.js";
5
+ import { iVariableDebtTokenAbi } from "./aave/iVariableDebtToken.js";
3
6
  import "./aave/index.js";
4
7
  import { adapterActionAbi, adapterActionSelectors, adapterActionSignatures } from "./actionAbi.js";
5
8
  import { erc4626ReferralAdapterAbi } from "./adapters/erc4626ReferralAdapter.js";
@@ -47,6 +50,7 @@ import { adapterConstructorAbi } from "./conctructorAbi.js";
47
50
  import { iMidasGatewayV311Abi } from "./midas/iMidasGatewayV311.js";
48
51
  import "./midas/index.js";
49
52
  import { iBaseOnRampAbi } from "./securitize/iBaseOnRamp.js";
53
+ import { iSecuritizeNAVProviderAbi } from "./securitize/iSecuritizeNAVProvider.js";
50
54
  import { iSecuritizeOnRampAbi } from "./securitize/iSecuritizeOnRamp.js";
51
55
  import { iSecuritizeRedemptionGatewayV311Abi } from "./securitize/iSecuritizeRedemptionGatewayV311.js";
52
56
  import "./securitize/index.js";
@@ -56,4 +60,4 @@ import { iTreehouseRedemptionGatewayAbi } from "./treehouse/iTreehouseRedemption
56
60
  import { iTreehouseRouterAbi } from "./treehouse/iTreehouseRouter.js";
57
61
  import "./treehouse/index.js";
58
62
  import { getAdapterActionAbi, getAdapterDeployParamsAbi, getAdapterType, hasAdapterDeployParamsAbi, parseAdapterAction, parseAdapterDeployParams } from "./utils.js";
59
- export { adapterActionAbi, adapterActionSelectors, adapterActionSignatures, adapterConstructorAbi, erc4626ReferralAdapterAbi, getAdapterActionAbi, getAdapterDeployParamsAbi, getAdapterType, hasAdapterDeployParamsAbi, iAaveHorizonBridgeAbi, iAaveHorizonBridgeAdapterAbi, iAaveV3PoolAbi, iAaveV3PoolAdapterAbi, iBalancerV3RouterAbi, iBalancerV3RouterAdapterAbi, iBalancerV3WrapperAbi, iBalancerV3WrapperAdapterAbi, iBaseOnRampAbi, iBaseRewardPoolAbi, iBoosterAbi, iCamelotV3AdapterAbi, iCamelotV3RouterAbi, iConvexV1BaseRewardPoolAdapterAbi, iConvexV1BoosterAdapterAbi, iCurvePoolAbi, iCurvePoolStableNGAbi, iCurvePool_2Abi, iCurvePool_3Abi, iCurvePool_4Abi, iCurveV1StableNgAdapterAbi, iCurveV1_2AssetsAdapterAbi, iCurveV1_3AssetsAdapterAbi, iCurveV1_4AssetsAdapterAbi, iDaiUsdsAbi, iDaiUsdsAdapterAbi, iERC4626Abi, iERC4626ReferralAbi, iFluidDexAbi, iFluidDexAdapterAbi, iInfinifiGatewayAbi, iInfinifiGatewayAdapterAbi, iInfinifiUnwindingGatewayAbi, iInfinifiUnwindingGatewayAdapterAbi, iKelpLRTDepositPoolGatewayAbi, iKelpLRTWithdrawalManagerGatewayAbi, iKelpLrtDepositPoolAdapterAbi, iKelpLrtDepositPoolGatewayAbi, iKelpLrtWithdrawalManagerAdapterAbi, iKelpLrtWithdrawalManagerGatewayAbi, iLidoV1AdapterAbi, iMellow4626VaultAdapterAbi, iMellowClaimerAbi, iMellowClaimerAdapterAbi, iMellowWrapperAbi, iMellowWrapperAdapterAbi, iMidasGatewayAdapterV311Abi, iMidasGatewayV311Abi, iMidasIssuanceVaultAdapterV310Abi, iMidasIssuanceVaultV310Abi, iMidasRedemptionVaultAdapterV310Abi, iMidasRedemptionVaultGatewayV310Abi, iPendleRouterAbi, iPendleRouterAdapterAbi, iSecuritizeOnRampAbi, iSecuritizeOnRampAdapterV310Abi, iSecuritizeRedemptionGatewayAdapterV311Abi, iSecuritizeRedemptionGatewayV311Abi, iStakingRewardsAbi, iStakingRewardsAdapterAbi, iTraderJoeRouterAbi, iTraderJoeRouterAdapterAbi, iTreehouseFastlaneAbi, iTreehouseFastlaneAdapterAbi, iTreehouseRedemptionGatewayAbi, iTreehouseRedemptionGatewayAdapterAbi, iTreehouseRouterAbi, iTreehouseRouterAdapterAbi, iUniswapV2AdapterAbi, iUniswapV2Router02Abi, iUniswapV3Abi, iUniswapV3AdapterAbi, iUniswapV4AdapterAbi, iUniswapV4GatewayAbi, iUpshiftVaultAdapterAbi, iUpshiftVaultGatewayAbi, iVelodromeV2RouterAbi, iVelodromeV2RouterAdapterAbi, iwstETHAbi, iwstEthv1AdapterAbi, lidoV1_WETHGatewayAbi, mellowDvvAdapterAbi, parseAdapterAction, parseAdapterDeployParams };
63
+ export { adapterActionAbi, adapterActionSelectors, adapterActionSignatures, adapterConstructorAbi, erc4626ReferralAdapterAbi, getAdapterActionAbi, getAdapterDeployParamsAbi, getAdapterType, hasAdapterDeployParamsAbi, iAaveHorizonBridgeAbi, iAaveHorizonBridgeAdapterAbi, iAaveOracleAbi, iAaveV3PoolAbi, iAaveV3PoolAdapterAbi, iBalancerV3RouterAbi, iBalancerV3RouterAdapterAbi, iBalancerV3WrapperAbi, iBalancerV3WrapperAdapterAbi, iBaseOnRampAbi, iBaseRewardPoolAbi, iBoosterAbi, iCamelotV3AdapterAbi, iCamelotV3RouterAbi, iConvexV1BaseRewardPoolAdapterAbi, iConvexV1BoosterAdapterAbi, iCurvePoolAbi, iCurvePoolStableNGAbi, iCurvePool_2Abi, iCurvePool_3Abi, iCurvePool_4Abi, iCurveV1StableNgAdapterAbi, iCurveV1_2AssetsAdapterAbi, iCurveV1_3AssetsAdapterAbi, iCurveV1_4AssetsAdapterAbi, iDaiUsdsAbi, iDaiUsdsAdapterAbi, iERC4626Abi, iERC4626ReferralAbi, iFluidDexAbi, iFluidDexAdapterAbi, iInfinifiGatewayAbi, iInfinifiGatewayAdapterAbi, iInfinifiUnwindingGatewayAbi, iInfinifiUnwindingGatewayAdapterAbi, iKelpLRTDepositPoolGatewayAbi, iKelpLRTWithdrawalManagerGatewayAbi, iKelpLrtDepositPoolAdapterAbi, iKelpLrtDepositPoolGatewayAbi, iKelpLrtWithdrawalManagerAdapterAbi, iKelpLrtWithdrawalManagerGatewayAbi, iLidoV1AdapterAbi, iMellow4626VaultAdapterAbi, iMellowClaimerAbi, iMellowClaimerAdapterAbi, iMellowWrapperAbi, iMellowWrapperAdapterAbi, iMidasGatewayAdapterV311Abi, iMidasGatewayV311Abi, iMidasIssuanceVaultAdapterV310Abi, iMidasIssuanceVaultV310Abi, iMidasRedemptionVaultAdapterV310Abi, iMidasRedemptionVaultGatewayV310Abi, iPendleRouterAbi, iPendleRouterAdapterAbi, iPoolAddressesProviderAbi, iSecuritizeNAVProviderAbi, iSecuritizeOnRampAbi, iSecuritizeOnRampAdapterV310Abi, iSecuritizeRedemptionGatewayAdapterV311Abi, iSecuritizeRedemptionGatewayV311Abi, iStakingRewardsAbi, iStakingRewardsAdapterAbi, iTraderJoeRouterAbi, iTraderJoeRouterAdapterAbi, iTreehouseFastlaneAbi, iTreehouseFastlaneAdapterAbi, iTreehouseRedemptionGatewayAbi, iTreehouseRedemptionGatewayAdapterAbi, iTreehouseRouterAbi, iTreehouseRouterAdapterAbi, iUniswapV2AdapterAbi, iUniswapV2Router02Abi, iUniswapV3Abi, iUniswapV3AdapterAbi, iUniswapV4AdapterAbi, iUniswapV4GatewayAbi, iUpshiftVaultAdapterAbi, iUpshiftVaultGatewayAbi, iVariableDebtTokenAbi, iVelodromeV2RouterAbi, iVelodromeV2RouterAdapterAbi, iwstETHAbi, iwstEthv1AdapterAbi, lidoV1_WETHGatewayAbi, mellowDvvAdapterAbi, parseAdapterAction, parseAdapterDeployParams };
@@ -0,0 +1,13 @@
1
+ //#region src/onchain/market/adapters/abi/securitize/iSecuritizeNAVProvider.d.ts
2
+ export declare const iSecuritizeNAVProviderAbi: readonly [{
3
+ readonly type: "function";
4
+ readonly name: "rate";
5
+ readonly inputs: readonly [];
6
+ readonly outputs: readonly [{
7
+ readonly name: "";
8
+ readonly type: "uint256";
9
+ readonly internalType: "uint256";
10
+ }];
11
+ readonly stateMutability: "view";
12
+ }];
13
+ //#endregion
@@ -1,4 +1,5 @@
1
1
  import { iBaseOnRampAbi } from "./iBaseOnRamp.js";
2
+ import { iSecuritizeNAVProviderAbi } from "./iSecuritizeNAVProvider.js";
2
3
  import { iSecuritizeOnRampAbi } from "./iSecuritizeOnRamp.js";
3
4
  import { iSecuritizeRedemptionGatewayV311Abi } from "./iSecuritizeRedemptionGatewayV311.js";
4
- export { iBaseOnRampAbi, iSecuritizeOnRampAbi, iSecuritizeRedemptionGatewayV311Abi };
5
+ export { iBaseOnRampAbi, iSecuritizeNAVProviderAbi, iSecuritizeOnRampAbi, iSecuritizeRedemptionGatewayV311Abi };
@@ -114,6 +114,27 @@ declare const abi: readonly [{
114
114
  readonly type: "bool";
115
115
  readonly name: "useSafePrices";
116
116
  }];
117
+ }, {
118
+ readonly name: "openPositionDiff";
119
+ readonly type: "function";
120
+ readonly stateMutability: "nonpayable";
121
+ readonly inputs: readonly [{
122
+ readonly type: "address";
123
+ readonly name: "aToken";
124
+ }, {
125
+ readonly type: "address";
126
+ readonly name: "debtToken";
127
+ }, {
128
+ readonly type: "uint256";
129
+ readonly name: "leftoverAmount";
130
+ }, {
131
+ readonly type: "uint256";
132
+ readonly name: "borrowAmount";
133
+ }];
134
+ readonly outputs: readonly [{
135
+ readonly type: "bool";
136
+ readonly name: "useSafePrices";
137
+ }];
117
138
  }, {
118
139
  readonly name: "closePosition";
119
140
  readonly type: "function";
@@ -282,11 +303,39 @@ export declare class AaveHorizonBridgeAdapterContract extends AbstractAdapterCon
282
303
  isATokenAllowed(token: Address): boolean;
283
304
  isDebtTokenAllowed(token: Address): boolean;
284
305
  /**
285
- * Facade call handing `aTokenAmount` of `aToken` to the account owner and
286
- * borrowing `borrowAmount` of `debtToken` on the owner's behalf into the
287
- * account.
306
+ * Facade call handing every `aToken` the account holds above
307
+ * `leftoverAmount` to the account owner and borrowing `borrowAmount` of
308
+ * `debtToken` on the owner's behalf into the account.
309
+ */
310
+ openPositionDiffCall(aToken: Address, debtToken: Address, leftoverAmount: bigint, borrowAmount: bigint): MultiCall;
311
+ /**
312
+ * Facade call repaying `repayAmount` of `debtToken` on the owner's Aave
313
+ * position out of the account and bringing `aTokenAmount` of the owner's
314
+ * `aToken` back into it. The bridge takes the whole `repayAmount` even where
315
+ * Aave settles less, and keeps what it did not.
316
+ */
317
+ closePositionCall(aToken: Address, debtToken: Address, repayAmount: bigint, aTokenAmount: bigint): MultiCall;
318
+ /**
319
+ * What an opening call borrows on the owner's behalf: `debtToken` and
320
+ * `borrowAmount`. `undefined` for a call that borrows nothing.
321
+ */
322
+ parseBorrow(calldata: Hex): {
323
+ debtToken: Address;
324
+ amount: bigint;
325
+ } | undefined;
326
+ /**
327
+ * A Horizon finalizer bot finishes what an account on this credit manager
328
+ * cannot do in its own transaction — moving a position whose mint is
329
+ * delayed, settling a matured exit — so opening one grants the bot its
330
+ * permissions. The bot is the one the market configurator lists among its
331
+ * periphery contracts for this adapter's bridge, the latest version where
332
+ * there are several; nothing where it lists none.
333
+ *
334
+ * An account opened through an RWA factory belongs to the factory's wallet,
335
+ * which needs the Securitize finalizer and grants only the bots the factory
336
+ * allows; nothing where it does not allow that bot.
288
337
  */
289
- openPositionCall(aToken: Address, debtToken: Address, aTokenAmount: bigint, borrowAmount: bigint): MultiCall;
338
+ openingCalls(): Promise<MultiCall[]>;
290
339
  stateHuman(raw?: boolean): {
291
340
  address: string;
292
341
  version: number;
@@ -298,13 +347,13 @@ export declare class AaveHorizonBridgeAdapterContract extends AbstractAdapterCon
298
347
  allowedDebtTokens: string[] | undefined;
299
348
  };
300
349
  /**
301
- * Opening and closing a position are legal outside a bracket: both amounts
302
- * are named in the calldata and the bridge moves exactly those, so there is
303
- * nothing for an on-chain comparison to enforce.
350
+ * Opening and closing a position are legal outside a bracket: the bridge
351
+ * moves exactly the amounts the calldata names, or the balance above the
352
+ * named leftover, so there is nothing for an on-chain comparison to enforce.
304
353
  *
305
- * Opening hands `aTokenAmount` of the aToken to the account owner and brings
306
- * `borrowAmount` of the debt token in; closing sends `repayAmount` of the
307
- * debt token out and brings the aTokens back.
354
+ * Opening hands the aTokens to the account owner and brings `borrowAmount`
355
+ * of the debt token in; closing sends `repayAmount` of the debt token out and
356
+ * brings the aTokens back.
308
357
  */
309
358
  replayOutOfBracketCall(balances: AssetsMap, calldata: Hex): boolean;
310
359
  }