@gearbox-protocol/sdk 17.13.0-next.1 → 17.13.0-next.10

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 (885) hide show
  1. package/dist/cjs/dev/index.js +2 -0
  2. package/dist/cjs/dev/lowerHealthFactor.js +32 -0
  3. package/dist/cjs/dev/ltUtils.js +3 -2
  4. package/dist/cjs/model/analytics.schema.js +71 -7
  5. package/dist/cjs/model/errors/index.js +4 -0
  6. package/dist/cjs/model/errors/liquidation-errors.js +9 -0
  7. package/dist/cjs/model/errors/operation-errors.js +27 -0
  8. package/dist/cjs/model/index.js +9 -1
  9. package/dist/cjs/model/liquidations.schema.js +5 -3
  10. package/dist/cjs/model/opportunities.schema.js +1 -1
  11. package/dist/cjs/model/positions.schema.js +3 -0
  12. package/dist/cjs/offchain/analytics/OffchainAnalyticsPositions.js +8 -0
  13. package/dist/cjs/onchain/accounts/CreditAccountsServiceV310.js +0 -37
  14. package/dist/cjs/onchain/accounts/intents/index.js +1 -0
  15. package/dist/cjs/onchain/accounts/intents/operations.js +1 -1
  16. package/dist/cjs/onchain/accounts/intents/plan.js +21 -0
  17. package/dist/cjs/onchain/accounts/intents/realize.js +29 -7
  18. package/dist/cjs/onchain/accounts/intents/resolveQuotaUpdate.js +149 -0
  19. package/dist/cjs/onchain/accounts/intents/testing/sdk-mock.js +1 -0
  20. package/dist/cjs/onchain/accounts/intents/tests/update-quota.fixtures.js +102 -0
  21. package/dist/cjs/onchain/accounts/intents/utils/index.js +1 -0
  22. package/dist/cjs/onchain/accounts/intents/utils/quotas-for-update.js +28 -10
  23. package/dist/cjs/onchain/accounts/liquidations/LiquidationsService.js +156 -28
  24. package/dist/cjs/onchain/accounts/liquidations/MultichainLiquidationsService.js +28 -0
  25. package/dist/cjs/onchain/accounts/liquidations/constants.js +1 -1
  26. package/dist/cjs/onchain/accounts/liquidations/partialLiquidation.js +11 -15
  27. package/dist/cjs/onchain/base/TokensMeta.js +15 -0
  28. package/dist/cjs/onchain/constants/index.js +1 -0
  29. package/dist/cjs/onchain/constants/math.js +6 -0
  30. package/dist/cjs/onchain/index.js +11 -0
  31. package/dist/cjs/onchain/pools/PoolService.js +1 -0
  32. package/dist/cjs/onchain/positions/PositionsService.js +1 -0
  33. package/dist/cjs/onchain/positions/calcHealthFactor.js +1 -1
  34. package/dist/cjs/onchain/preview/preview/CreditAccountState.js +4 -2
  35. package/dist/cjs/onchain/validation/bundles/checkCreditOperation.js +2 -0
  36. package/dist/cjs/onchain/validation/bundles/checkLiquidationEligibility.js +8 -1
  37. package/dist/cjs/onchain/validation/bundles/checkLiquidationFunding.js +2 -1
  38. package/dist/cjs/onchain/validation/bundles/checkQuotaUpdates.js +45 -0
  39. package/dist/cjs/onchain/validation/bundles/index.js +2 -0
  40. package/dist/cjs/onchain/validation/checkLiquidation.js +2 -1
  41. package/dist/cjs/onchain/validation/checks/checkMaxQuota.js +18 -0
  42. package/dist/cjs/onchain/validation/checks/checkPartiallyLiquidatable.js +13 -0
  43. package/dist/cjs/onchain/validation/checks/checkQuotaActive.js +10 -0
  44. package/dist/cjs/onchain/validation/checks/checkQuotaChange.js +18 -0
  45. package/dist/cjs/onchain/validation/checks/index.js +8 -0
  46. package/dist/cjs/onchain/validation/index.js +10 -0
  47. package/dist/cjs/sdk/liquidations/LiquidationsNamespace.js +14 -0
  48. package/dist/cjs/sdk/prepare/PrepareApi.js +67 -0
  49. package/dist/cjs/sdk/rewards/merkl-api.js +1 -1
  50. package/dist/cjs/sdk/rewards/turtle-api.js +1 -1
  51. package/dist/esm/dev/index.js +2 -1
  52. package/dist/esm/dev/lowerHealthFactor.js +31 -0
  53. package/dist/esm/dev/ltUtils.js +3 -2
  54. package/dist/esm/dev/mint/index.js +1 -2
  55. package/dist/esm/model/analytics.schema.js +69 -9
  56. package/dist/esm/model/errors/index.js +3 -3
  57. package/dist/esm/model/errors/liquidation-errors.js +9 -1
  58. package/dist/esm/model/errors/operation-errors.js +25 -1
  59. package/dist/esm/model/index.js +5 -5
  60. package/dist/esm/model/liquidations.schema.js +5 -3
  61. package/dist/esm/model/opportunities.schema.js +1 -1
  62. package/dist/esm/model/positions.schema.js +3 -0
  63. package/dist/esm/offchain/analytics/OffchainAnalyticsPositions.js +9 -1
  64. package/dist/esm/offchain/notices/index.js +1 -2
  65. package/dist/esm/offchain/opportunities/index.js +1 -2
  66. package/dist/esm/offchain/positions/index.js +1 -2
  67. package/dist/esm/onchain/abi/index.js +1 -2
  68. package/dist/esm/onchain/accounts/CreditAccountsServiceV310.js +0 -37
  69. package/dist/esm/onchain/accounts/intents/index.js +2 -1
  70. package/dist/esm/onchain/accounts/intents/operations.js +1 -1
  71. package/dist/esm/onchain/accounts/intents/plan.js +22 -2
  72. package/dist/esm/onchain/accounts/intents/realize.js +29 -7
  73. package/dist/esm/onchain/accounts/intents/resolveQuotaUpdate.js +148 -0
  74. package/dist/esm/onchain/accounts/intents/testing/sdk-mock.js +1 -0
  75. package/dist/esm/onchain/accounts/intents/tests/update-quota.fixtures.js +92 -0
  76. package/dist/esm/onchain/accounts/intents/utils/index.js +2 -2
  77. package/dist/esm/onchain/accounts/intents/utils/quotas-for-update.js +28 -11
  78. package/dist/esm/onchain/accounts/liquidations/LiquidationsService.js +156 -28
  79. package/dist/esm/onchain/accounts/liquidations/MultichainLiquidationsService.js +28 -0
  80. package/dist/esm/onchain/accounts/liquidations/constants.js +1 -1
  81. package/dist/esm/onchain/accounts/liquidations/partialLiquidation.js +11 -15
  82. package/dist/esm/onchain/base/TokensMeta.js +15 -0
  83. package/dist/esm/onchain/constants/index.js +2 -2
  84. package/dist/esm/onchain/constants/math.js +6 -1
  85. package/dist/esm/onchain/index.js +7 -2
  86. package/dist/esm/onchain/market/adapters/abi/midas/index.js +1 -2
  87. package/dist/esm/onchain/pools/PoolService.js +1 -0
  88. package/dist/esm/onchain/pools/index.js +1 -2
  89. package/dist/esm/onchain/positions/PositionsService.js +1 -0
  90. package/dist/esm/onchain/positions/calcHealthFactor.js +1 -1
  91. package/dist/esm/onchain/preview/preview/CreditAccountState.js +4 -2
  92. package/dist/esm/onchain/utils/internal/index.js +1 -2
  93. package/dist/esm/onchain/validation/bundles/checkCreditOperation.js +2 -0
  94. package/dist/esm/onchain/validation/bundles/checkLiquidationEligibility.js +8 -1
  95. package/dist/esm/onchain/validation/bundles/checkLiquidationFunding.js +2 -1
  96. package/dist/esm/onchain/validation/bundles/checkQuotaUpdates.js +44 -0
  97. package/dist/esm/onchain/validation/bundles/index.js +2 -1
  98. package/dist/esm/onchain/validation/checkLiquidation.js +2 -1
  99. package/dist/esm/onchain/validation/checks/checkMaxQuota.js +17 -0
  100. package/dist/esm/onchain/validation/checks/checkPartiallyLiquidatable.js +12 -0
  101. package/dist/esm/onchain/validation/checks/checkQuotaActive.js +9 -0
  102. package/dist/esm/onchain/validation/checks/checkQuotaChange.js +17 -0
  103. package/dist/esm/onchain/validation/checks/index.js +5 -1
  104. package/dist/esm/onchain/validation/index.js +6 -1
  105. package/dist/esm/permissionless/api/chains/index.js +1 -2
  106. package/dist/esm/permissionless/api/oracles/index.js +1 -2
  107. package/dist/esm/permissionless/api/transactions/index.js +1 -2
  108. package/dist/esm/permissionless/bindings/router/index.js +1 -2
  109. package/dist/esm/permissionless/core/index.js +1 -2
  110. package/dist/esm/plugins/accounts/index.js +1 -2
  111. package/dist/esm/plugins/accounts-counter/index.js +1 -2
  112. package/dist/esm/plugins/bots/abi/index.js +1 -2
  113. package/dist/esm/sdk/analytics/index.js +1 -2
  114. package/dist/esm/sdk/execute/index.js +1 -2
  115. package/dist/esm/sdk/liquidations/LiquidationsNamespace.js +14 -0
  116. package/dist/esm/sdk/liquidations/index.js +1 -2
  117. package/dist/esm/sdk/opportunities/index.js +1 -2
  118. package/dist/esm/sdk/positions/index.js +1 -2
  119. package/dist/esm/sdk/prepare/PrepareApi.js +67 -0
  120. package/dist/esm/sdk/preview/index.js +1 -2
  121. package/dist/esm/sdk/rewards/merkl-api.js +1 -1
  122. package/dist/esm/sdk/rewards/turtle-api.js +1 -1
  123. package/dist/types/abi/310/configure/creditSuiteParams.d.ts +4 -5
  124. package/dist/types/abi/310/configure/iCreditConfigureActions.d.ts +2 -3
  125. package/dist/types/abi/310/configure/iPoolConfigureActions.d.ts +2 -3
  126. package/dist/types/abi/310/configure/iPriceOracleConfigureActions.d.ts +2 -3
  127. package/dist/types/abi/310/crossChainMultisig.d.ts +2 -3
  128. package/dist/types/abi/310/generated.d.ts +15 -16
  129. package/dist/types/abi/310/iBytecodeRepository.d.ts +2 -3
  130. package/dist/types/abi/310/iLinearInterestRateModelV310.d.ts +2 -3
  131. package/dist/types/abi/310/iMarketConfiguratorFactory.d.ts +2 -3
  132. package/dist/types/abi/310/iPriceFeedStore.d.ts +2 -3
  133. package/dist/types/abi/310/iTreasurySplitter.d.ts +2 -3
  134. package/dist/types/abi/310/instanceManager.d.ts +2 -3
  135. package/dist/types/abi/AccountMigrator.d.ts +2 -3
  136. package/dist/types/abi/ILiquidationCompressorV313.d.ts +2 -3
  137. package/dist/types/abi/IWithdrawalCompressorV310.d.ts +2 -3
  138. package/dist/types/abi/IWithdrawalCompressorV311.d.ts +2 -3
  139. package/dist/types/abi/IWithdrawalCompressorV313.d.ts +2 -3
  140. package/dist/types/abi/compressors/creditAccountCompressor.d.ts +2 -3
  141. package/dist/types/abi/compressors/creditSuiteCompressor.d.ts +2 -3
  142. package/dist/types/abi/compressors/defillamaCompressor.d.ts +2 -3
  143. package/dist/types/abi/compressors/gaugeCompressor.d.ts +2 -3
  144. package/dist/types/abi/compressors/liquidationCompressor.d.ts +2 -3
  145. package/dist/types/abi/compressors/marketCompressor.d.ts +2 -3
  146. package/dist/types/abi/compressors/peripheryCompressor.d.ts +2 -3
  147. package/dist/types/abi/compressors/priceFeedCompressor.d.ts +2 -3
  148. package/dist/types/abi/compressors/rewardsCompressor.d.ts +2 -3
  149. package/dist/types/abi/compressors/rwaCompressor.d.ts +2 -3
  150. package/dist/types/abi/compressors/subcompressors/liquidation/midasLiquidationSubcompressor.d.ts +2 -3
  151. package/dist/types/abi/compressors/subcompressors/liquidation/securitizeLiquidationSubcompressor.d.ts +2 -3
  152. package/dist/types/abi/compressors/subcompressors/rwa/onDemandRWAUnderlyingSubcompressor.d.ts +2 -3
  153. package/dist/types/abi/compressors/subcompressors/rwa/securitizeRWAFactorySubcompressor.d.ts +2 -3
  154. package/dist/types/abi/compressors/subcompressors/withdrawal/infinifiWithdrawalSubcompressor.d.ts +2 -3
  155. package/dist/types/abi/compressors/subcompressors/withdrawal/kelpLRTWithdrawalSubcompressor.d.ts +2 -3
  156. package/dist/types/abi/compressors/subcompressors/withdrawal/mellowFlexibleDepositSubcompressor.d.ts +2 -3
  157. package/dist/types/abi/compressors/subcompressors/withdrawal/mellowFlexibleRedeemSubcompressor.d.ts +2 -3
  158. package/dist/types/abi/compressors/subcompressors/withdrawal/mellowWithdrawalSubcompressor.d.ts +2 -3
  159. package/dist/types/abi/compressors/subcompressors/withdrawal/midasWithdrawalSubcompressor.d.ts +2 -3
  160. package/dist/types/abi/compressors/subcompressors/withdrawal/securitizeRedemptionSubcompressor.d.ts +2 -3
  161. package/dist/types/abi/compressors/subcompressors/withdrawal/upshiftWithdrawalSubcompressor.d.ts +2 -3
  162. package/dist/types/abi/compressors/tokenCompressor.d.ts +2 -3
  163. package/dist/types/abi/compressors/withdrawalCompressor.d.ts +2 -3
  164. package/dist/types/abi/errors.d.ts +11 -12
  165. package/dist/types/abi/governance/batchesChain.d.ts +2 -3
  166. package/dist/types/abi/governance/governor.d.ts +2 -3
  167. package/dist/types/abi/governance/iTimeLock.d.ts +2 -3
  168. package/dist/types/abi/helpers/redemptionLogger.d.ts +2 -3
  169. package/dist/types/abi/iAirdropDistributor.d.ts +2 -3
  170. package/dist/types/abi/iBaseRewardPool.d.ts +2 -3
  171. package/dist/types/abi/iCurvePool.d.ts +2 -3
  172. package/dist/types/abi/iDefaultAccountFactoryV3.d.ts +2 -3
  173. package/dist/types/abi/iDegenNFTV2.d.ts +2 -3
  174. package/dist/types/abi/iERC20.d.ts +2 -3
  175. package/dist/types/abi/iERC20Permit.d.ts +2 -3
  176. package/dist/types/abi/iERC20Zapper.d.ts +2 -3
  177. package/dist/types/abi/iERC20ZapperDeposits.d.ts +2 -3
  178. package/dist/types/abi/iETHZapper.d.ts +2 -3
  179. package/dist/types/abi/iETHZapperDeposits.d.ts +2 -3
  180. package/dist/types/abi/iExpirable.d.ts +2 -3
  181. package/dist/types/abi/iFarmingPool.d.ts +2 -3
  182. package/dist/types/abi/iInterestRateModel.d.ts +2 -3
  183. package/dist/types/abi/iMulticall3.d.ts +2 -3
  184. package/dist/types/abi/iOffchainOracle.d.ts +2 -3
  185. package/dist/types/abi/iPausable.d.ts +2 -3
  186. package/dist/types/abi/iPhantomToken.d.ts +2 -3
  187. package/dist/types/abi/iPriceFeed.d.ts +2 -3
  188. package/dist/types/abi/iRedemptionLoggerV310.d.ts +2 -3
  189. package/dist/types/abi/iStateSerializer.d.ts +2 -3
  190. package/dist/types/abi/iUpdatablePriceFeed.d.ts +2 -3
  191. package/dist/types/abi/iVersion.d.ts +2 -3
  192. package/dist/types/abi/iZapper.d.ts +2 -3
  193. package/dist/types/abi/ierc4626Adapter.d.ts +2 -3
  194. package/dist/types/abi/mellow.d.ts +6 -7
  195. package/dist/types/abi/migration.d.ts +3 -4
  196. package/dist/types/abi/router/balancerV2Worker.d.ts +2 -3
  197. package/dist/types/abi/router/balancerV3Worker.d.ts +2 -3
  198. package/dist/types/abi/router/balancerV3WrapperWorker.d.ts +2 -3
  199. package/dist/types/abi/router/camelotV3Worker.d.ts +2 -3
  200. package/dist/types/abi/router/convexWorker.d.ts +2 -3
  201. package/dist/types/abi/router/curveWorker.d.ts +2 -3
  202. package/dist/types/abi/router/daiUsdsWorker.d.ts +2 -3
  203. package/dist/types/abi/router/equalizerRouterWorker.d.ts +2 -3
  204. package/dist/types/abi/router/erc4626Worker.d.ts +2 -3
  205. package/dist/types/abi/router/fluidDexWorker.d.ts +2 -3
  206. package/dist/types/abi/router/gearboxRouter.d.ts +2 -3
  207. package/dist/types/abi/router/infinifiWorker.d.ts +2 -3
  208. package/dist/types/abi/router/infraredVaultWorker.d.ts +2 -3
  209. package/dist/types/abi/router/kelpLRTDepositPoolWorker.d.ts +2 -3
  210. package/dist/types/abi/router/kodiakWorker.d.ts +2 -3
  211. package/dist/types/abi/router/lidoWorker.d.ts +2 -3
  212. package/dist/types/abi/router/mellow4626Worker.d.ts +2 -3
  213. package/dist/types/abi/router/mellowDVVWorker.d.ts +2 -3
  214. package/dist/types/abi/router/mellowVaultWorker.d.ts +2 -3
  215. package/dist/types/abi/router/midasWorker.d.ts +2 -3
  216. package/dist/types/abi/router/pendleRouterWorker.d.ts +2 -3
  217. package/dist/types/abi/router/routingManager.d.ts +2 -3
  218. package/dist/types/abi/router/securitizeOnrampWorker.d.ts +2 -3
  219. package/dist/types/abi/router/stakingRewardsWorker.d.ts +2 -3
  220. package/dist/types/abi/router/traderJoeWorker.d.ts +2 -3
  221. package/dist/types/abi/router/uniswapV2Worker.d.ts +2 -3
  222. package/dist/types/abi/router/uniswapV3Worker.d.ts +2 -3
  223. package/dist/types/abi/router/uniswapV4Worker.d.ts +2 -3
  224. package/dist/types/abi/router/upshiftWorker.d.ts +2 -3
  225. package/dist/types/abi/router/velodromeV2Worker.d.ts +2 -3
  226. package/dist/types/abi/router/wstETHWorker.d.ts +2 -3
  227. package/dist/types/abi/router/yearnV2Worker.d.ts +2 -3
  228. package/dist/types/abi/rwa/iDSRegistryService.d.ts +2 -3
  229. package/dist/types/abi/rwa/iDSToken.d.ts +2 -3
  230. package/dist/types/abi/rwa/iMidasAccessControl.d.ts +2 -3
  231. package/dist/types/abi/rwa/iMidasDegenNFT.d.ts +2 -3
  232. package/dist/types/abi/rwa/iMidasLiquidatorV311.d.ts +2 -3
  233. package/dist/types/abi/rwa/iRWACompressor.d.ts +2 -3
  234. package/dist/types/abi/rwa/iRWAFactory.d.ts +2 -3
  235. package/dist/types/abi/rwa/iRWAGateway.d.ts +2 -3
  236. package/dist/types/abi/rwa/iRWAUnderlying.d.ts +2 -3
  237. package/dist/types/abi/rwa/iSecuritizeDegenNFT.d.ts +2 -3
  238. package/dist/types/abi/rwa/iSecuritizeLiquidatorV311.d.ts +2 -3
  239. package/dist/types/abi/rwa/iSecuritizeRWAFactory.d.ts +2 -3
  240. package/dist/types/dev/AccountOpener.d.ts +9 -9
  241. package/dist/types/dev/EthCallSpy.d.ts +6 -7
  242. package/dist/types/dev/RevolverTransport.d.ts +12 -12
  243. package/dist/types/dev/abi.d.ts +6 -7
  244. package/dist/types/dev/calcLiquidatableLTs.d.ts +2 -3
  245. package/dist/types/dev/claimFromFaucet.d.ts +2 -2
  246. package/dist/types/dev/create2.d.ts +10 -11
  247. package/dist/types/dev/createAnvilClient.d.ts +13 -14
  248. package/dist/types/dev/detectChain.d.ts +2 -3
  249. package/dist/types/dev/index.d.ts +2 -1
  250. package/dist/types/dev/isOutOfSyncError.d.ts +2 -3
  251. package/dist/types/dev/isRateLimitError.d.ts +2 -3
  252. package/dist/types/dev/isTransientError.d.ts +2 -3
  253. package/dist/types/dev/kycUtils.d.ts +13 -14
  254. package/dist/types/dev/logSplitterTransport.d.ts +10 -10
  255. package/dist/types/dev/lowerHealthFactor.d.ts +34 -0
  256. package/dist/types/dev/ltUtils.d.ts +3 -4
  257. package/dist/types/dev/midasUtils.d.ts +8 -9
  258. package/dist/types/dev/migrateFaucet.d.ts +2 -3
  259. package/dist/types/dev/mint/AbstractMinter.d.ts +2 -3
  260. package/dist/types/dev/mint/DealMinter.d.ts +2 -3
  261. package/dist/types/dev/mint/DirectMinter.d.ts +2 -3
  262. package/dist/types/dev/mint/FallbackMinter.d.ts +2 -3
  263. package/dist/types/dev/mint/TransferMinter.d.ts +2 -3
  264. package/dist/types/dev/mint/factory.d.ts +2 -3
  265. package/dist/types/dev/mint/types.d.ts +2 -3
  266. package/dist/types/dev/mode-parity/compareOpportunities.d.ts +8 -8
  267. package/dist/types/dev/mode-parity/comparePositions.d.ts +12 -13
  268. package/dist/types/dev/mode-parity/compareRules.d.ts +6 -7
  269. package/dist/types/dev/mode-parity/fieldDiff.d.ts +29 -30
  270. package/dist/types/dev/mode-parity/scriptUtils.d.ts +18 -19
  271. package/dist/types/dev/providers.d.ts +10 -11
  272. package/dist/types/dev/replaceStorage.d.ts +3 -4
  273. package/dist/types/dev/resilientTransport.d.ts +6 -7
  274. package/dist/types/dev/securitizeUtils.d.ts +6 -6
  275. package/dist/types/dev/transports.d.ts +2 -3
  276. package/dist/types/dev/types.d.ts +4 -5
  277. package/dist/types/dev/verifyTestnet.d.ts +4 -5
  278. package/dist/types/dev/withdrawalAbi.d.ts +9 -10
  279. package/dist/types/dev/withdrawalUtils.d.ts +3 -4
  280. package/dist/types/history/assembleOperations.d.ts +3 -4
  281. package/dist/types/history/classifyMulticallOperations.d.ts +3 -4
  282. package/dist/types/history/mapOperations.d.ts +3 -4
  283. package/dist/types/history/parseCreditAccountTransaction.d.ts +3 -4
  284. package/dist/types/history/populateContractsRegister.d.ts +4 -5
  285. package/dist/types/history/toLegacyOperation.d.ts +6 -7
  286. package/dist/types/history/trace/errors.d.ts +6 -7
  287. package/dist/types/history/trace/extractAdapterCallTraces.d.ts +2 -3
  288. package/dist/types/history/trace/extractTransfers.d.ts +4 -4
  289. package/dist/types/history/trace/findFacadeCalls.d.ts +2 -3
  290. package/dist/types/history/trace/types.d.ts +3 -4
  291. package/dist/types/history/types.d.ts +13 -13
  292. package/dist/types/model/analytics.d.ts +66 -13
  293. package/dist/types/model/analytics.schema.d.ts +182 -39
  294. package/dist/types/model/charts.d.ts +29 -29
  295. package/dist/types/model/charts.schema.d.ts +16 -17
  296. package/dist/types/model/compare.schema.d.ts +9 -10
  297. package/dist/types/model/curators.d.ts +3 -4
  298. package/dist/types/model/curators.schema.d.ts +3 -4
  299. package/dist/types/model/delayed-intent.schema.d.ts +2 -3
  300. package/dist/types/model/delayed-intents.d.ts +9 -10
  301. package/dist/types/model/errors/base.d.ts +2 -3
  302. package/dist/types/model/errors/index.d.ts +3 -3
  303. package/dist/types/model/errors/liquidation-errors.d.ts +20 -8
  304. package/dist/types/model/errors/operation-errors.d.ts +76 -39
  305. package/dist/types/model/errors/oracle-errors.d.ts +3 -4
  306. package/dist/types/model/errors/prepare-errors.d.ts +21 -22
  307. package/dist/types/model/errors/preview-errors.d.ts +9 -10
  308. package/dist/types/model/filters.d.ts +6 -7
  309. package/dist/types/model/filters.schema.d.ts +5 -6
  310. package/dist/types/model/index.d.ts +6 -6
  311. package/dist/types/model/liquidations.d.ts +37 -18
  312. package/dist/types/model/liquidations.schema.d.ts +12 -10
  313. package/dist/types/model/notices.d.ts +4 -5
  314. package/dist/types/model/notices.schema.d.ts +3 -4
  315. package/dist/types/model/opportunities.d.ts +32 -33
  316. package/dist/types/model/opportunities.schema.d.ts +26 -27
  317. package/dist/types/model/positions.d.ts +34 -30
  318. package/dist/types/model/positions.schema.d.ts +102 -23
  319. package/dist/types/model/previews.d.ts +21 -21
  320. package/dist/types/model/primitives.d.ts +12 -13
  321. package/dist/types/model/primitives.schema.d.ts +11 -12
  322. package/dist/types/model/response.d.ts +8 -9
  323. package/dist/types/model/response.schema.d.ts +7 -8
  324. package/dist/types/model/result.d.ts +8 -9
  325. package/dist/types/model/rewards.d.ts +4 -5
  326. package/dist/types/model/rwa.d.ts +20 -21
  327. package/dist/types/model/rwa.schema.d.ts +3 -4
  328. package/dist/types/model/withdrawals.d.ts +5 -6
  329. package/dist/types/model/withdrawals.schema.d.ts +5 -6
  330. package/dist/types/offchain/AbstractOffchainNamespace.d.ts +4 -5
  331. package/dist/types/offchain/GearboxAPI.d.ts +2 -3
  332. package/dist/types/offchain/analytics/OffchainAnalytics.d.ts +2 -3
  333. package/dist/types/offchain/analytics/OffchainAnalyticsPositions.d.ts +6 -4
  334. package/dist/types/offchain/analytics/types.d.ts +17 -5
  335. package/dist/types/offchain/errors/OffchainInvalidJsonError.d.ts +2 -3
  336. package/dist/types/offchain/errors/OffchainNotConfiguredError.d.ts +2 -3
  337. package/dist/types/offchain/errors/OffchainNotImplementedError.d.ts +2 -3
  338. package/dist/types/offchain/errors/OffchainRequestFailedError.d.ts +2 -3
  339. package/dist/types/offchain/errors/OffchainStatusError.d.ts +2 -3
  340. package/dist/types/offchain/errors/OffchainTransportError.d.ts +3 -4
  341. package/dist/types/offchain/errors/OffchainValidationError.d.ts +2 -3
  342. package/dist/types/offchain/errors/backendMessage.d.ts +2 -3
  343. package/dist/types/offchain/errors/errorCause.d.ts +3 -4
  344. package/dist/types/offchain/errors/readResponseBody.d.ts +2 -3
  345. package/dist/types/offchain/notices/OffchainNotices.d.ts +2 -3
  346. package/dist/types/offchain/opportunities/OffchainOpportunities.d.ts +2 -3
  347. package/dist/types/offchain/opportunities/types.d.ts +3 -4
  348. package/dist/types/offchain/positions/OffchainPositions.d.ts +2 -3
  349. package/dist/types/offchain/positions/types.d.ts +3 -4
  350. package/dist/types/offchain/types.d.ts +2 -3
  351. package/dist/types/onchain/MultichainSDK.d.ts +7 -8
  352. package/dist/types/onchain/OnchainSDK.d.ts +9 -10
  353. package/dist/types/onchain/abi/oracles.d.ts +27 -28
  354. package/dist/types/onchain/accounts/CreditAccountsServiceV310.d.ts +3 -12
  355. package/dist/types/onchain/accounts/bots/AccountBotsService.d.ts +2 -3
  356. package/dist/types/onchain/accounts/bots/PeripheryCompressorV310Contract.d.ts +2 -2
  357. package/dist/types/onchain/accounts/bots/abi.d.ts +2 -3
  358. package/dist/types/onchain/accounts/bots/types.d.ts +13 -14
  359. package/dist/types/onchain/accounts/credit-account-compressor/CreditAccountCompressor.d.ts +2 -3
  360. package/dist/types/onchain/accounts/credit-account-compressor/CreditAccountCompressorV310Contract.d.ts +2 -2
  361. package/dist/types/onchain/accounts/credit-account-compressor/types.d.ts +11 -12
  362. package/dist/types/onchain/accounts/index.d.ts +9 -9
  363. package/dist/types/onchain/accounts/intents/borrow.d.ts +6 -7
  364. package/dist/types/onchain/accounts/intents/collateral-valuation.d.ts +4 -5
  365. package/dist/types/onchain/accounts/intents/guards.d.ts +7 -7
  366. package/dist/types/onchain/accounts/intents/index.d.ts +6 -6
  367. package/dist/types/onchain/accounts/intents/leverage-band.d.ts +4 -5
  368. package/dist/types/onchain/accounts/intents/math.d.ts +8 -8
  369. package/dist/types/onchain/accounts/intents/maxBorrow.d.ts +3 -4
  370. package/dist/types/onchain/accounts/intents/maxWithdrawCollateral.d.ts +3 -4
  371. package/dist/types/onchain/accounts/intents/open-strategy.d.ts +4 -5
  372. package/dist/types/onchain/accounts/intents/operations.d.ts +34 -28
  373. package/dist/types/onchain/accounts/intents/plan.d.ts +35 -19
  374. package/dist/types/onchain/accounts/intents/realize.d.ts +4 -5
  375. package/dist/types/onchain/accounts/intents/resolveQuotaUpdate.d.ts +38 -0
  376. package/dist/types/onchain/accounts/intents/strategyLimits.d.ts +2 -2
  377. package/dist/types/onchain/accounts/intents/tail.d.ts +4 -4
  378. package/dist/types/onchain/accounts/intents/testing/delayed.d.ts +2 -2
  379. package/dist/types/onchain/accounts/intents/testing/expect.d.ts +2 -2
  380. package/dist/types/onchain/accounts/intents/testing/market.d.ts +6 -6
  381. package/dist/types/onchain/accounts/intents/testing/sdk-mock.d.ts +3 -3
  382. package/dist/types/onchain/accounts/intents/tests/add-collateral.fixtures.d.ts +15 -16
  383. package/dist/types/onchain/accounts/intents/tests/adjust-leverage.fixtures.d.ts +22 -23
  384. package/dist/types/onchain/accounts/intents/tests/deposit.fixtures.d.ts +24 -25
  385. package/dist/types/onchain/accounts/intents/tests/finish-decrease-leverage.fixtures.d.ts +21 -21
  386. package/dist/types/onchain/accounts/intents/tests/finish-withdraw.fixtures.d.ts +30 -31
  387. package/dist/types/onchain/accounts/intents/tests/open-strategy.fixtures.d.ts +16 -17
  388. package/dist/types/onchain/accounts/intents/tests/update-quota.fixtures.d.ts +48 -0
  389. package/dist/types/onchain/accounts/intents/tests/withdraw-asset.fixtures.d.ts +16 -17
  390. package/dist/types/onchain/accounts/intents/tests/withdraw.fixtures.d.ts +26 -27
  391. package/dist/types/onchain/accounts/intents/types.d.ts +46 -30
  392. package/dist/types/onchain/accounts/intents/utils/adjust-state-to-snapshot.d.ts +2 -3
  393. package/dist/types/onchain/accounts/intents/utils/assemble-operation-calls.d.ts +2 -2
  394. package/dist/types/onchain/accounts/intents/utils/borrowed-amount-plus-interest-and-fees.d.ts +2 -3
  395. package/dist/types/onchain/accounts/intents/utils/common.d.ts +5 -6
  396. package/dist/types/onchain/accounts/intents/utils/credit-account-slice.d.ts +4 -5
  397. package/dist/types/onchain/accounts/intents/utils/index.d.ts +2 -2
  398. package/dist/types/onchain/accounts/intents/utils/ledger.d.ts +3 -4
  399. package/dist/types/onchain/accounts/intents/utils/pick-token.d.ts +6 -7
  400. package/dist/types/onchain/accounts/intents/utils/price-impact.d.ts +5 -6
  401. package/dist/types/onchain/accounts/intents/utils/quotas-for-update.d.ts +27 -9
  402. package/dist/types/onchain/accounts/intents/utils/router-path.d.ts +6 -7
  403. package/dist/types/onchain/accounts/intents/view.d.ts +2 -3
  404. package/dist/types/onchain/accounts/intents/withdraw-limits.d.ts +5 -6
  405. package/dist/types/onchain/accounts/liquidations/LiquidationsService.d.ts +39 -19
  406. package/dist/types/onchain/accounts/liquidations/MultichainLiquidationsService.d.ts +13 -4
  407. package/dist/types/onchain/accounts/liquidations/constants.d.ts +4 -5
  408. package/dist/types/onchain/accounts/liquidations/index.d.ts +2 -2
  409. package/dist/types/onchain/accounts/liquidations/partialLiquidation.d.ts +15 -8
  410. package/dist/types/onchain/accounts/liquidations/skipLiquidatableAccount.d.ts +2 -3
  411. package/dist/types/onchain/accounts/liquidations/types.d.ts +125 -35
  412. package/dist/types/onchain/accounts/multicall-utils.d.ts +4 -5
  413. package/dist/types/onchain/accounts/quota-utils.d.ts +11 -11
  414. package/dist/types/onchain/accounts/types.d.ts +17 -96
  415. package/dist/types/onchain/accounts/withdrawal-compressor/AbstractWithdrawalCompressorContract.d.ts +7 -7
  416. package/dist/types/onchain/accounts/withdrawal-compressor/RedemptionLoggerV310Contract.d.ts +2 -2
  417. package/dist/types/onchain/accounts/withdrawal-compressor/WithdrawalCompressorV310Contract.d.ts +2 -2
  418. package/dist/types/onchain/accounts/withdrawal-compressor/WithdrawalCompressorV311Contract.d.ts +2 -2
  419. package/dist/types/onchain/accounts/withdrawal-compressor/WithdrawalCompressorV313Contract.d.ts +2 -2
  420. package/dist/types/onchain/accounts/withdrawal-compressor/addresses.d.ts +4 -5
  421. package/dist/types/onchain/accounts/withdrawal-compressor/createRedemptionLogger.d.ts +2 -3
  422. package/dist/types/onchain/accounts/withdrawal-compressor/createWithdrawalCompressor.d.ts +2 -3
  423. package/dist/types/onchain/accounts/withdrawal-compressor/intent-codec.d.ts +5 -6
  424. package/dist/types/onchain/accounts/withdrawal-compressor/types.d.ts +16 -17
  425. package/dist/types/onchain/base/BaseContract.d.ts +5 -6
  426. package/dist/types/onchain/base/ChainContractsRegister.d.ts +3 -4
  427. package/dist/types/onchain/base/Construct.d.ts +3 -4
  428. package/dist/types/onchain/base/MultichainConstruct.d.ts +7 -8
  429. package/dist/types/onchain/base/SDKConstruct.d.ts +2 -3
  430. package/dist/types/onchain/base/TokensMeta.d.ts +13 -6
  431. package/dist/types/onchain/base/errors.d.ts +2 -3
  432. package/dist/types/onchain/base/token-types.d.ts +18 -18
  433. package/dist/types/onchain/base/types.d.ts +37 -38
  434. package/dist/types/onchain/chain/chains.d.ts +20 -21
  435. package/dist/types/onchain/chain/detectNetwork.d.ts +2 -3
  436. package/dist/types/onchain/constants/address-provider.d.ts +36 -37
  437. package/dist/types/onchain/constants/addresses.d.ts +5 -6
  438. package/dist/types/onchain/constants/bot-permissions.d.ts +3 -4
  439. package/dist/types/onchain/constants/index.d.ts +2 -2
  440. package/dist/types/onchain/constants/math.d.ts +25 -21
  441. package/dist/types/onchain/constants/networks.d.ts +3 -4
  442. package/dist/types/onchain/constants/periphery.d.ts +3 -4
  443. package/dist/types/onchain/constants/versions.d.ts +5 -6
  444. package/dist/types/onchain/core/AbstractAddressProviderContract.d.ts +2 -3
  445. package/dist/types/onchain/core/AddressProviderV310Contract.d.ts +2 -2
  446. package/dist/types/onchain/core/createAddressProvider.d.ts +3 -4
  447. package/dist/types/onchain/core/errors.d.ts +9 -10
  448. package/dist/types/onchain/core/types.d.ts +4 -5
  449. package/dist/types/onchain/index.d.ts +14 -9
  450. package/dist/types/onchain/market/MarketConfiguratorContract.d.ts +2 -2
  451. package/dist/types/onchain/market/MarketRegister.d.ts +4 -5
  452. package/dist/types/onchain/market/MarketSuite.d.ts +2 -3
  453. package/dist/types/onchain/market/ZapperRegister.d.ts +2 -3
  454. package/dist/types/onchain/market/adapters/abi/actionAbi.d.ts +4 -5
  455. package/dist/types/onchain/market/adapters/abi/adapters/erc4626ReferralAdapter.d.ts +2 -3
  456. package/dist/types/onchain/market/adapters/abi/adapters/iBalancerV3RouterAdapter.d.ts +2 -3
  457. package/dist/types/onchain/market/adapters/abi/adapters/iBalancerV3WrapperAdapter.d.ts +2 -3
  458. package/dist/types/onchain/market/adapters/abi/adapters/iCamelotV3Adapter.d.ts +2 -3
  459. package/dist/types/onchain/market/adapters/abi/adapters/iConvexV1BaseRewardPoolAdapter.d.ts +2 -3
  460. package/dist/types/onchain/market/adapters/abi/adapters/iConvexV1BoosterAdapter.d.ts +2 -3
  461. package/dist/types/onchain/market/adapters/abi/adapters/iCurveV1StableNgAdapter.d.ts +2 -3
  462. package/dist/types/onchain/market/adapters/abi/adapters/iCurveV1_2AssetsAdapter.d.ts +2 -3
  463. package/dist/types/onchain/market/adapters/abi/adapters/iCurveV1_3AssetsAdapter.d.ts +2 -3
  464. package/dist/types/onchain/market/adapters/abi/adapters/iCurveV1_4AssetsAdapter.d.ts +2 -3
  465. package/dist/types/onchain/market/adapters/abi/adapters/iDaiUsdsAdapter.d.ts +2 -3
  466. package/dist/types/onchain/market/adapters/abi/adapters/iFluidDexAdapter.d.ts +2 -3
  467. package/dist/types/onchain/market/adapters/abi/adapters/iInfinifiGatewayAdapter.d.ts +2 -3
  468. package/dist/types/onchain/market/adapters/abi/adapters/iInfinifiUnwindingGateway.d.ts +3 -4
  469. package/dist/types/onchain/market/adapters/abi/adapters/iKelpLrtDepositPool.d.ts +3 -4
  470. package/dist/types/onchain/market/adapters/abi/adapters/iKelpLrtWithdrawalManager.d.ts +3 -4
  471. package/dist/types/onchain/market/adapters/abi/adapters/iLidoV1Adapter.d.ts +2 -3
  472. package/dist/types/onchain/market/adapters/abi/adapters/iMellow4626VaultAdapter.d.ts +2 -3
  473. package/dist/types/onchain/market/adapters/abi/adapters/iMellowClaimerAdapter.d.ts +2 -3
  474. package/dist/types/onchain/market/adapters/abi/adapters/iMellowWrapperAdapter.d.ts +2 -3
  475. package/dist/types/onchain/market/adapters/abi/adapters/iMidasGatewayAdapterV311.d.ts +2 -3
  476. package/dist/types/onchain/market/adapters/abi/adapters/iMidasIssuanceVaultAdapterV310.d.ts +2 -3
  477. package/dist/types/onchain/market/adapters/abi/adapters/iMidasRedemptionVaultAdapterV310.d.ts +3 -4
  478. package/dist/types/onchain/market/adapters/abi/adapters/iPendleRouterAdapter.d.ts +2 -3
  479. package/dist/types/onchain/market/adapters/abi/adapters/iSecuritizeOnRampAdapterV310.d.ts +2 -3
  480. package/dist/types/onchain/market/adapters/abi/adapters/iSecuritizeRedemptionGatewayAdapterV311.d.ts +2 -3
  481. package/dist/types/onchain/market/adapters/abi/adapters/iStakingRewardsAdapter.d.ts +2 -3
  482. package/dist/types/onchain/market/adapters/abi/adapters/iTraderJoeRouterAdapter.d.ts +2 -3
  483. package/dist/types/onchain/market/adapters/abi/adapters/iUniswapV2Adapter.d.ts +2 -3
  484. package/dist/types/onchain/market/adapters/abi/adapters/iUniswapV3Adapter.d.ts +2 -3
  485. package/dist/types/onchain/market/adapters/abi/adapters/iUniswapV4Adapter.d.ts +3 -4
  486. package/dist/types/onchain/market/adapters/abi/adapters/iUpshiftVaultAdapter.d.ts +3 -4
  487. package/dist/types/onchain/market/adapters/abi/adapters/iVelodromeV2RouterAdapter.d.ts +2 -3
  488. package/dist/types/onchain/market/adapters/abi/adapters/iwstEthv1Adapter.d.ts +2 -3
  489. package/dist/types/onchain/market/adapters/abi/adapters/mellowDvvAdapter.d.ts +2 -3
  490. package/dist/types/onchain/market/adapters/abi/conctructorAbi.d.ts +2 -3
  491. package/dist/types/onchain/market/adapters/abi/conctructorAbiPatterns.d.ts +12 -13
  492. package/dist/types/onchain/market/adapters/abi/midas/iMidasGatewayV311.d.ts +2 -3
  493. package/dist/types/onchain/market/adapters/abi/securitize/iBaseOnRamp.d.ts +2 -3
  494. package/dist/types/onchain/market/adapters/abi/securitize/iSecuritizeOnRamp.d.ts +2 -3
  495. package/dist/types/onchain/market/adapters/abi/securitize/iSecuritizeRedemptionGatewayV311.d.ts +2 -3
  496. package/dist/types/onchain/market/adapters/abi/targetContractAbi.d.ts +29 -30
  497. package/dist/types/onchain/market/adapters/abi/utils.d.ts +7 -8
  498. package/dist/types/onchain/market/adapters/contracts/AbstractAdapter.d.ts +4 -5
  499. package/dist/types/onchain/market/adapters/contracts/AbstractCurveAdapter.d.ts +2 -3
  500. package/dist/types/onchain/market/adapters/contracts/AccountMigratorAdapterContract.d.ts +2 -2
  501. package/dist/types/onchain/market/adapters/contracts/BalancerV3RouterAdapterContract.d.ts +4 -4
  502. package/dist/types/onchain/market/adapters/contracts/BalancerV3WrapperAdapterContract.d.ts +2 -2
  503. package/dist/types/onchain/market/adapters/contracts/CamelotV3AdapterContract.d.ts +3 -3
  504. package/dist/types/onchain/market/adapters/contracts/ConvexV1BaseRewardPoolAdapterContract.d.ts +2 -2
  505. package/dist/types/onchain/market/adapters/contracts/ConvexV1BoosterAdapterContract.d.ts +2 -2
  506. package/dist/types/onchain/market/adapters/contracts/Curve2AssetsAdapterContract.d.ts +2 -2
  507. package/dist/types/onchain/market/adapters/contracts/Curve3AssetsAdapterContract.d.ts +2 -2
  508. package/dist/types/onchain/market/adapters/contracts/Curve4AssetsAdapterContract.d.ts +2 -2
  509. package/dist/types/onchain/market/adapters/contracts/CurveV1AdapterStETHContract.d.ts +2 -2
  510. package/dist/types/onchain/market/adapters/contracts/CurveV1StableNGAdapterContract.d.ts +2 -2
  511. package/dist/types/onchain/market/adapters/contracts/DaiUsdsAdapterContract.d.ts +2 -2
  512. package/dist/types/onchain/market/adapters/contracts/ERC4626AdapterContract.d.ts +2 -2
  513. package/dist/types/onchain/market/adapters/contracts/ERC4626ReferralAdapterContract.d.ts +2 -2
  514. package/dist/types/onchain/market/adapters/contracts/FluidDexAdapterContract.d.ts +2 -2
  515. package/dist/types/onchain/market/adapters/contracts/InfinifiGatewayAdapterContract.d.ts +2 -2
  516. package/dist/types/onchain/market/adapters/contracts/InfinifiUnwindingGatewayAdapterContract.d.ts +2 -2
  517. package/dist/types/onchain/market/adapters/contracts/KelpLRTDepositPoolAdapterContract.d.ts +2 -2
  518. package/dist/types/onchain/market/adapters/contracts/KelpLRTWithdrawalManagerAdapterContract.d.ts +2 -2
  519. package/dist/types/onchain/market/adapters/contracts/LidoV1AdapterContract.d.ts +2 -2
  520. package/dist/types/onchain/market/adapters/contracts/MellowClaimerAdapterContract.d.ts +2 -2
  521. package/dist/types/onchain/market/adapters/contracts/MellowDVVAdapterContract.d.ts +2 -2
  522. package/dist/types/onchain/market/adapters/contracts/MellowERC4626VaultAdapterContract.d.ts +2 -2
  523. package/dist/types/onchain/market/adapters/contracts/MellowWrapperAdapterContract.d.ts +2 -2
  524. package/dist/types/onchain/market/adapters/contracts/MidasGatewayAdapterContract.d.ts +2 -2
  525. package/dist/types/onchain/market/adapters/contracts/MidasIssuanceVaultAdapterContract.d.ts +2 -2
  526. package/dist/types/onchain/market/adapters/contracts/MidasRedemptionVaultAdapterContract.d.ts +2 -2
  527. package/dist/types/onchain/market/adapters/contracts/PendleRouterAdapterContract.d.ts +5 -5
  528. package/dist/types/onchain/market/adapters/contracts/SecuritizeOnRampAdapterContract.d.ts +2 -2
  529. package/dist/types/onchain/market/adapters/contracts/SecuritizeRedemptionGatewayAdapterContract.d.ts +2 -2
  530. package/dist/types/onchain/market/adapters/contracts/StakingRewardsAdapterContract.d.ts +2 -2
  531. package/dist/types/onchain/market/adapters/contracts/TraderJoeRouterAdapterContract.d.ts +4 -4
  532. package/dist/types/onchain/market/adapters/contracts/UniswapV2AdapterContract.d.ts +2 -2
  533. package/dist/types/onchain/market/adapters/contracts/UniswapV3AdapterContract.d.ts +2 -2
  534. package/dist/types/onchain/market/adapters/contracts/UniswapV4AdapterContract.d.ts +2 -2
  535. package/dist/types/onchain/market/adapters/contracts/UpshiftVaultAdapterContract.d.ts +2 -2
  536. package/dist/types/onchain/market/adapters/contracts/VelodromeV2AdapterContract.d.ts +2 -2
  537. package/dist/types/onchain/market/adapters/contracts/WstETHV1AdapterContract.d.ts +2 -2
  538. package/dist/types/onchain/market/adapters/createAdapter.d.ts +3 -4
  539. package/dist/types/onchain/market/adapters/legacyAdapterOperations.d.ts +27 -28
  540. package/dist/types/onchain/market/adapters/transferHelpers.d.ts +10 -11
  541. package/dist/types/onchain/market/adapters/transfers.d.ts +2 -3
  542. package/dist/types/onchain/market/adapters/types.d.ts +9 -10
  543. package/dist/types/onchain/market/credit/CreditConfiguratorV310Contract.d.ts +3 -3
  544. package/dist/types/onchain/market/credit/CreditFacadeV310BaseContract.d.ts +2 -2
  545. package/dist/types/onchain/market/credit/CreditFacadeV310Contract.d.ts +3 -3
  546. package/dist/types/onchain/market/credit/CreditManagerV310Contract.d.ts +3 -3
  547. package/dist/types/onchain/market/credit/CreditSuite.d.ts +2 -3
  548. package/dist/types/onchain/market/credit/CreditSuiteStrategy.d.ts +2 -3
  549. package/dist/types/onchain/market/credit/collateralUtils.d.ts +5 -6
  550. package/dist/types/onchain/market/credit/createCreditConfigurator.d.ts +2 -3
  551. package/dist/types/onchain/market/credit/createCreditFacade.d.ts +2 -3
  552. package/dist/types/onchain/market/credit/createCreditManager.d.ts +2 -3
  553. package/dist/types/onchain/market/credit/expectedBalanceDeltas.d.ts +4 -5
  554. package/dist/types/onchain/market/credit/types.d.ts +10 -11
  555. package/dist/types/onchain/market/loss-policy/AliasLossPolicyV310Contract.d.ts +3 -3
  556. package/dist/types/onchain/market/loss-policy/LossPolicyContract.d.ts +2 -2
  557. package/dist/types/onchain/market/loss-policy/constants.d.ts +5 -6
  558. package/dist/types/onchain/market/loss-policy/createLossPolicy.d.ts +2 -3
  559. package/dist/types/onchain/market/loss-policy/types.d.ts +2 -3
  560. package/dist/types/onchain/market/math.d.ts +23 -24
  561. package/dist/types/onchain/market/oracle/PriceFeedAnswerMap.d.ts +2 -3
  562. package/dist/types/onchain/market/oracle/PriceOracleBaseContract.d.ts +2 -3
  563. package/dist/types/onchain/market/oracle/PriceOracleV310Contract.d.ts +2 -2
  564. package/dist/types/onchain/market/oracle/collateralPriceInUnderlying.d.ts +2 -3
  565. package/dist/types/onchain/market/oracle/createPriceOracle.d.ts +2 -3
  566. package/dist/types/onchain/market/oracle/types.d.ts +5 -6
  567. package/dist/types/onchain/market/pool/GaugeContract.d.ts +3 -3
  568. package/dist/types/onchain/market/pool/LinearInterestRateModelContract.d.ts +2 -2
  569. package/dist/types/onchain/market/pool/PoolQuotaKeeperV310Contract.d.ts +2 -2
  570. package/dist/types/onchain/market/pool/PoolSuite.d.ts +2 -3
  571. package/dist/types/onchain/market/pool/PoolV310Contract.d.ts +3 -3
  572. package/dist/types/onchain/market/pool/TumblerContract.d.ts +2 -2
  573. package/dist/types/onchain/market/pool/createInterestRateModel.d.ts +2 -3
  574. package/dist/types/onchain/market/pool/createPool.d.ts +2 -3
  575. package/dist/types/onchain/market/pool/createPoolQuotaKeeper.d.ts +2 -3
  576. package/dist/types/onchain/market/pool/createRateKeeper.d.ts +2 -3
  577. package/dist/types/onchain/market/pool/math.d.ts +6 -7
  578. package/dist/types/onchain/market/pool/types.d.ts +7 -8
  579. package/dist/types/onchain/market/pricefeeds/AbstractLPPriceFeed.d.ts +3 -4
  580. package/dist/types/onchain/market/pricefeeds/AbstractPriceFeed.d.ts +5 -6
  581. package/dist/types/onchain/market/pricefeeds/PriceFeedRef.d.ts +2 -3
  582. package/dist/types/onchain/market/pricefeeds/PriceFeedRegistry.d.ts +2 -3
  583. package/dist/types/onchain/market/pricefeeds/feeds/BalancerStablePriceFeed.d.ts +2 -2
  584. package/dist/types/onchain/market/pricefeeds/feeds/BalancerWeightedPriceFeed.d.ts +2 -2
  585. package/dist/types/onchain/market/pricefeeds/feeds/BoundedPriceFeed.d.ts +2 -2
  586. package/dist/types/onchain/market/pricefeeds/feeds/CompositePriceFeed.d.ts +2 -2
  587. package/dist/types/onchain/market/pricefeeds/feeds/ConstantPriceFeed.d.ts +2 -2
  588. package/dist/types/onchain/market/pricefeeds/feeds/CurveCryptoPriceFeed.d.ts +2 -2
  589. package/dist/types/onchain/market/pricefeeds/feeds/CurveStablePriceFeed.d.ts +2 -2
  590. package/dist/types/onchain/market/pricefeeds/feeds/CurveUSDPriceFeed.d.ts +2 -2
  591. package/dist/types/onchain/market/pricefeeds/feeds/Erc4626PriceFeed.d.ts +2 -2
  592. package/dist/types/onchain/market/pricefeeds/feeds/ExternalPriceFeed.d.ts +2 -2
  593. package/dist/types/onchain/market/pricefeeds/feeds/MellowLRTPriceFeed.d.ts +2 -2
  594. package/dist/types/onchain/market/pricefeeds/feeds/PendleTWAPPTPriceFeed.d.ts +2 -2
  595. package/dist/types/onchain/market/pricefeeds/feeds/PythPriceFeed.d.ts +2 -2
  596. package/dist/types/onchain/market/pricefeeds/feeds/RedstonePriceFeed.d.ts +2 -2
  597. package/dist/types/onchain/market/pricefeeds/feeds/WstETHPriceFeed.d.ts +2 -2
  598. package/dist/types/onchain/market/pricefeeds/feeds/YearnPriceFeed.d.ts +2 -2
  599. package/dist/types/onchain/market/pricefeeds/feeds/ZeroPriceFeed.d.ts +2 -2
  600. package/dist/types/onchain/market/pricefeeds/types.d.ts +5 -6
  601. package/dist/types/onchain/market/pricefeeds/updates/PriceUpdateTx.d.ts +2 -3
  602. package/dist/types/onchain/market/pricefeeds/updates/PriceUpdatesCache.d.ts +3 -4
  603. package/dist/types/onchain/market/pricefeeds/updates/UpdatablePriceFeedRegistry.d.ts +2 -3
  604. package/dist/types/onchain/market/pricefeeds/updates/getRawPriceUpdates.d.ts +2 -3
  605. package/dist/types/onchain/market/pricefeeds/updates/isUpdatablePriceFeed.d.ts +2 -3
  606. package/dist/types/onchain/market/pricefeeds/updates/types.d.ts +8 -9
  607. package/dist/types/onchain/market/pricefeeds/updates/updatableDependencies.d.ts +2 -3
  608. package/dist/types/onchain/market/rwa/RWARegistry.d.ts +3 -4
  609. package/dist/types/onchain/market/rwa/createDegenNFT.d.ts +2 -3
  610. package/dist/types/onchain/market/rwa/midas/MidasDegenNFT.d.ts +2 -2
  611. package/dist/types/onchain/market/rwa/midas/MidasLiquidatorContract.d.ts +2 -2
  612. package/dist/types/onchain/market/rwa/midas/constants.d.ts +4 -5
  613. package/dist/types/onchain/market/rwa/securitize/SecuritizeDegenNFT.d.ts +2 -2
  614. package/dist/types/onchain/market/rwa/securitize/SecuritizeLiquidatorContract.d.ts +2 -2
  615. package/dist/types/onchain/market/rwa/securitize/SecuritizeRWAFactory.d.ts +2 -2
  616. package/dist/types/onchain/market/rwa/securitize/constants.d.ts +4 -5
  617. package/dist/types/onchain/market/rwa/securitize/types.d.ts +5 -6
  618. package/dist/types/onchain/market/rwa/types.d.ts +16 -16
  619. package/dist/types/onchain/market/strategyName.d.ts +2 -3
  620. package/dist/types/onchain/market/types.d.ts +3 -4
  621. package/dist/types/onchain/market/zapper/IERC20ZapperContract.d.ts +2 -2
  622. package/dist/types/onchain/market/zapper/IETHZapperContract.d.ts +2 -2
  623. package/dist/types/onchain/market/zapper/ZapperContract.d.ts +2 -3
  624. package/dist/types/onchain/market/zapper/createZapper.d.ts +2 -3
  625. package/dist/types/onchain/market/zapper/types.d.ts +5 -6
  626. package/dist/types/onchain/opportunities/MultichainOpportunitiesService.d.ts +2 -3
  627. package/dist/types/onchain/opportunities/OpportunitiesService.d.ts +2 -3
  628. package/dist/types/onchain/opportunities/types.d.ts +2 -3
  629. package/dist/types/onchain/options.d.ts +4 -5
  630. package/dist/types/onchain/plugins/BasePlugin.d.ts +2 -3
  631. package/dist/types/onchain/plugins/errors.d.ts +2 -3
  632. package/dist/types/onchain/plugins/types.d.ts +9 -10
  633. package/dist/types/onchain/pools/PoolService.d.ts +2 -3
  634. package/dist/types/onchain/pools/types.d.ts +12 -13
  635. package/dist/types/onchain/positions/MultichainPositionsService.d.ts +2 -3
  636. package/dist/types/onchain/positions/PositionsService.d.ts +3 -4
  637. package/dist/types/onchain/positions/calcBorrowRate.d.ts +3 -4
  638. package/dist/types/onchain/positions/calcHealthFactor.d.ts +3 -4
  639. package/dist/types/onchain/positions/calcLiquidationPrice.d.ts +3 -4
  640. package/dist/types/onchain/positions/calcLiquidationPriceForTarget.d.ts +4 -5
  641. package/dist/types/onchain/positions/calcTimeToLiquidationMs.d.ts +2 -3
  642. package/dist/types/onchain/positions/types.d.ts +9 -10
  643. package/dist/types/onchain/preview/parse/classifyInnerOperations.d.ts +3 -4
  644. package/dist/types/onchain/preview/parse/parseFacadeOperationCalldata.d.ts +2 -3
  645. package/dist/types/onchain/preview/parse/parseOperationCalldata.d.ts +2 -3
  646. package/dist/types/onchain/preview/parse/parsePoolOperationCalldata.d.ts +2 -3
  647. package/dist/types/onchain/preview/parse/parseRWAFactoryOperationCalldata.d.ts +2 -3
  648. package/dist/types/onchain/preview/parse/types-adapters.d.ts +4 -5
  649. package/dist/types/onchain/preview/parse/types-facades.d.ts +20 -21
  650. package/dist/types/onchain/preview/parse/types-pools.d.ts +6 -7
  651. package/dist/types/onchain/preview/parse/types-rwa.d.ts +5 -6
  652. package/dist/types/onchain/preview/parse/types.d.ts +4 -4
  653. package/dist/types/onchain/preview/preview/CreditAccountState.d.ts +5 -5
  654. package/dist/types/onchain/preview/preview/buildDelayedStrategyPositionOperationPreview.d.ts +2 -3
  655. package/dist/types/onchain/preview/preview/detectCloseOrRepay.d.ts +3 -4
  656. package/dist/types/onchain/preview/preview/detectDelayedClaim.d.ts +4 -5
  657. package/dist/types/onchain/preview/preview/detectDelayedOperation.d.ts +3 -4
  658. package/dist/types/onchain/preview/preview/estimateClaimableAt.d.ts +2 -3
  659. package/dist/types/onchain/preview/preview/midasGreenlistsAccount.d.ts +2 -3
  660. package/dist/types/onchain/preview/preview/previewAdjustStrategyPosition.d.ts +2 -3
  661. package/dist/types/onchain/preview/preview/previewExitOrRepayStrategyPosition.d.ts +3 -4
  662. package/dist/types/onchain/preview/preview/previewOpenStrategyPosition.d.ts +2 -2
  663. package/dist/types/onchain/preview/preview/previewOperation.d.ts +3 -4
  664. package/dist/types/onchain/preview/preview/previewPoolPositionOperation.d.ts +2 -3
  665. package/dist/types/onchain/preview/preview/replayInnerOperations.d.ts +4 -5
  666. package/dist/types/onchain/preview/preview/replayMulticall.d.ts +4 -5
  667. package/dist/types/onchain/preview/preview/unwrapNativeCollateral.d.ts +2 -3
  668. package/dist/types/onchain/router/AbstractRouterContract.d.ts +4 -5
  669. package/dist/types/onchain/router/RouterV310Contract.d.ts +2 -2
  670. package/dist/types/onchain/router/createRouter.d.ts +2 -3
  671. package/dist/types/onchain/router/helpers.d.ts +3 -4
  672. package/dist/types/onchain/router/types.d.ts +15 -16
  673. package/dist/types/onchain/types/logger.d.ts +3 -4
  674. package/dist/types/onchain/types/multichain.d.ts +6 -7
  675. package/dist/types/onchain/types/state-human.d.ts +36 -37
  676. package/dist/types/onchain/types/state.d.ts +3 -4
  677. package/dist/types/onchain/types/transactions.d.ts +5 -6
  678. package/dist/types/onchain/utils/AddressMap.d.ts +2 -3
  679. package/dist/types/onchain/utils/AddressSet.d.ts +2 -3
  680. package/dist/types/onchain/utils/AssetsMap.d.ts +2 -3
  681. package/dist/types/onchain/utils/abi-decode.d.ts +4 -5
  682. package/dist/types/onchain/utils/bigint-math.d.ts +2 -3
  683. package/dist/types/onchain/utils/bytes32ToString.d.ts +2 -3
  684. package/dist/types/onchain/utils/childLogger.d.ts +2 -3
  685. package/dist/types/onchain/utils/createRawTx.d.ts +2 -3
  686. package/dist/types/onchain/utils/etherscan.d.ts +4 -5
  687. package/dist/types/onchain/utils/filterDust.d.ts +4 -5
  688. package/dist/types/onchain/utils/formatter.d.ts +17 -17
  689. package/dist/types/onchain/utils/hex.d.ts +2 -3
  690. package/dist/types/onchain/utils/internal/Hooks.d.ts +3 -4
  691. package/dist/types/onchain/utils/isDust.d.ts +3 -4
  692. package/dist/types/onchain/utils/json.d.ts +3 -4
  693. package/dist/types/onchain/utils/mappers.d.ts +5 -6
  694. package/dist/types/onchain/utils/retry.d.ts +3 -4
  695. package/dist/types/onchain/utils/toAddress.d.ts +2 -3
  696. package/dist/types/onchain/utils/trace.d.ts +8 -9
  697. package/dist/types/onchain/utils/type-utils.d.ts +2 -3
  698. package/dist/types/onchain/utils/viem/cast.d.ts +3 -4
  699. package/dist/types/onchain/utils/viem/executeDelegatedMulticalls.d.ts +3 -4
  700. package/dist/types/onchain/utils/viem/executeMulticallBatches.d.ts +4 -5
  701. package/dist/types/onchain/utils/viem/sendRawTx.d.ts +5 -6
  702. package/dist/types/onchain/utils/viem/simulateCall.d.ts +7 -8
  703. package/dist/types/onchain/utils/viem/simulateMulticall.d.ts +4 -5
  704. package/dist/types/onchain/utils/viem/simulateWithPriceUpdates.d.ts +8 -9
  705. package/dist/types/onchain/utils/viem/watchBlocksAsync.d.ts +4 -4
  706. package/dist/types/onchain/utils/zod.d.ts +4 -5
  707. package/dist/types/onchain/validation/bundles/checkAccountQuotas.d.ts +2 -3
  708. package/dist/types/onchain/validation/bundles/checkCollateralFunding.d.ts +4 -5
  709. package/dist/types/onchain/validation/bundles/checkCreditOperation.d.ts +6 -7
  710. package/dist/types/onchain/validation/bundles/checkHealthFactors.d.ts +4 -5
  711. package/dist/types/onchain/validation/bundles/checkIncreaseDebt.d.ts +2 -3
  712. package/dist/types/onchain/validation/bundles/checkIncreaseQuota.d.ts +2 -3
  713. package/dist/types/onchain/validation/bundles/checkLiquidationEligibility.d.ts +7 -7
  714. package/dist/types/onchain/validation/bundles/checkLiquidationFunding.d.ts +5 -5
  715. package/dist/types/onchain/validation/bundles/checkMarket.d.ts +3 -4
  716. package/dist/types/onchain/validation/bundles/checkMidasAccountGreenlist.d.ts +3 -4
  717. package/dist/types/onchain/validation/bundles/checkObtained.d.ts +2 -3
  718. package/dist/types/onchain/validation/bundles/checkPoolFunding.d.ts +3 -4
  719. package/dist/types/onchain/validation/bundles/checkPoolOperation.d.ts +4 -5
  720. package/dist/types/onchain/validation/bundles/checkQuotaUpdates.d.ts +15 -0
  721. package/dist/types/onchain/validation/bundles/checkRWAOpenRequirements.d.ts +3 -4
  722. package/dist/types/onchain/validation/bundles/checkRWAOpening.d.ts +4 -5
  723. package/dist/types/onchain/validation/bundles/checkWallet.d.ts +4 -5
  724. package/dist/types/onchain/validation/bundles/checkWalletAllowance.d.ts +3 -4
  725. package/dist/types/onchain/validation/bundles/checkWalletBalance.d.ts +3 -4
  726. package/dist/types/onchain/validation/bundles/index.d.ts +2 -1
  727. package/dist/types/onchain/validation/checkLiquidation.d.ts +7 -7
  728. package/dist/types/onchain/validation/checkOperation.d.ts +5 -6
  729. package/dist/types/onchain/validation/checkSimulation.d.ts +5 -6
  730. package/dist/types/onchain/validation/checks/checkBorrowLimit.d.ts +3 -4
  731. package/dist/types/onchain/validation/checks/checkCollateralised.d.ts +3 -4
  732. package/dist/types/onchain/validation/checks/checkCreditAccountFrozen.d.ts +3 -4
  733. package/dist/types/onchain/validation/checks/checkCreditManagerPaused.d.ts +3 -4
  734. package/dist/types/onchain/validation/checks/checkDebtLimits.d.ts +3 -4
  735. package/dist/types/onchain/validation/checks/checkEmergencyLiquidator.d.ts +3 -4
  736. package/dist/types/onchain/validation/checks/checkForbiddenToken.d.ts +3 -4
  737. package/dist/types/onchain/validation/checks/checkLeverage.d.ts +3 -4
  738. package/dist/types/onchain/validation/checks/checkLiquidatorEligible.d.ts +3 -4
  739. package/dist/types/onchain/validation/checks/checkMarketExpired.d.ts +3 -4
  740. package/dist/types/onchain/validation/checks/checkMaxQuota.d.ts +15 -0
  741. package/dist/types/onchain/validation/checks/checkPartiallyLiquidatable.d.ts +16 -0
  742. package/dist/types/onchain/validation/checks/checkPoolLiquidity.d.ts +3 -4
  743. package/dist/types/onchain/validation/checks/checkPoolPaused.d.ts +3 -4
  744. package/dist/types/onchain/validation/checks/checkPoolSunset.d.ts +3 -4
  745. package/dist/types/onchain/validation/checks/checkQuotaActive.d.ts +12 -0
  746. package/dist/types/onchain/validation/checks/checkQuotaChange.d.ts +16 -0
  747. package/dist/types/onchain/validation/checks/checkQuotaCount.d.ts +3 -4
  748. package/dist/types/onchain/validation/checks/checkQuotaLimit.d.ts +3 -4
  749. package/dist/types/onchain/validation/checks/checkReservePriceLimited.d.ts +3 -4
  750. package/dist/types/onchain/validation/checks/index.d.ts +5 -1
  751. package/dist/types/onchain/validation/helpers/amount.d.ts +2 -3
  752. package/dist/types/onchain/validation/helpers/health-factor-limits.d.ts +5 -6
  753. package/dist/types/onchain/validation/helpers/token.d.ts +3 -4
  754. package/dist/types/onchain/validation/index.d.ts +6 -1
  755. package/dist/types/onchain/validation/raise.d.ts +5 -6
  756. package/dist/types/permissionless/api/GearboxPermissionless.d.ts +2 -3
  757. package/dist/types/permissionless/api/chains/ChainsNamespace.d.ts +2 -3
  758. package/dist/types/permissionless/api/chains/schemas.d.ts +5 -6
  759. package/dist/types/permissionless/api/chains/types.d.ts +6 -7
  760. package/dist/types/permissionless/api/deploy/PermissionlessDeploy.d.ts +4 -5
  761. package/dist/types/permissionless/api/deploy/effective-staleness.d.ts +2 -3
  762. package/dist/types/permissionless/api/deploy/types.d.ts +6 -7
  763. package/dist/types/permissionless/api/errors.d.ts +6 -7
  764. package/dist/types/permissionless/api/oracles/PermissionlessOracles.d.ts +4 -5
  765. package/dist/types/permissionless/api/oracles/schemas.d.ts +5 -6
  766. package/dist/types/permissionless/api/oracles/types.d.ts +5 -6
  767. package/dist/types/permissionless/api/schemas.d.ts +4 -5
  768. package/dist/types/permissionless/api/transactions/InstanceOwnerTransactions.d.ts +2 -3
  769. package/dist/types/permissionless/api/transactions/lp-price-feeds.d.ts +3 -4
  770. package/dist/types/permissionless/api/transactions/types.d.ts +7 -8
  771. package/dist/types/permissionless/api/types.d.ts +2 -3
  772. package/dist/types/permissionless/bindings/address-provider.d.ts +2 -3
  773. package/dist/types/permissionless/bindings/bytecode-repository.d.ts +2 -2
  774. package/dist/types/permissionless/bindings/compressors/token-compressor.d.ts +2 -2
  775. package/dist/types/permissionless/bindings/compressors/withdrawal-compressor.d.ts +2 -2
  776. package/dist/types/permissionless/bindings/cross-chain-multisig.d.ts +4 -4
  777. package/dist/types/permissionless/bindings/factory/abstract-factory.d.ts +2 -3
  778. package/dist/types/permissionless/bindings/factory/credit-factory.d.ts +2 -2
  779. package/dist/types/permissionless/bindings/factory/loss-policy-factory.d.ts +2 -2
  780. package/dist/types/permissionless/bindings/factory/pool-factory.d.ts +2 -2
  781. package/dist/types/permissionless/bindings/factory/price-oracle-factory.d.ts +2 -2
  782. package/dist/types/permissionless/bindings/factory/rate-keeper-factory.d.ts +2 -2
  783. package/dist/types/permissionless/bindings/governance/batches-chain.d.ts +2 -2
  784. package/dist/types/permissionless/bindings/governance/governor.d.ts +2 -2
  785. package/dist/types/permissionless/bindings/governance/timelock.d.ts +2 -3
  786. package/dist/types/permissionless/bindings/governance/types.d.ts +7 -8
  787. package/dist/types/permissionless/bindings/instance-manager.d.ts +2 -2
  788. package/dist/types/permissionless/bindings/market-configurator-factory.d.ts +2 -2
  789. package/dist/types/permissionless/bindings/market-configurator.d.ts +2 -2
  790. package/dist/types/permissionless/bindings/price-feed-store.d.ts +2 -2
  791. package/dist/types/permissionless/bindings/pricefeeds/balancer-stable.d.ts +2 -3
  792. package/dist/types/permissionless/bindings/pricefeeds/balancer-weighted.d.ts +2 -3
  793. package/dist/types/permissionless/bindings/pricefeeds/bounded.d.ts +2 -3
  794. package/dist/types/permissionless/bindings/pricefeeds/composite.d.ts +2 -3
  795. package/dist/types/permissionless/bindings/pricefeeds/constant.d.ts +2 -3
  796. package/dist/types/permissionless/bindings/pricefeeds/curve-crypto.d.ts +2 -3
  797. package/dist/types/permissionless/bindings/pricefeeds/curve-stable.d.ts +2 -3
  798. package/dist/types/permissionless/bindings/pricefeeds/curve-twap.d.ts +2 -3
  799. package/dist/types/permissionless/bindings/pricefeeds/curve-usd.d.ts +2 -3
  800. package/dist/types/permissionless/bindings/pricefeeds/erc4626.d.ts +2 -3
  801. package/dist/types/permissionless/bindings/pricefeeds/external.d.ts +2 -3
  802. package/dist/types/permissionless/bindings/pricefeeds/index.d.ts +2 -3
  803. package/dist/types/permissionless/bindings/pricefeeds/kodiak.d.ts +2 -3
  804. package/dist/types/permissionless/bindings/pricefeeds/mellow-lrt.d.ts +2 -3
  805. package/dist/types/permissionless/bindings/pricefeeds/pendle-pt-twap.d.ts +2 -3
  806. package/dist/types/permissionless/bindings/pricefeeds/pyth.d.ts +2 -3
  807. package/dist/types/permissionless/bindings/pricefeeds/redstone.d.ts +2 -3
  808. package/dist/types/permissionless/bindings/pricefeeds/wsteth.d.ts +2 -3
  809. package/dist/types/permissionless/bindings/pricefeeds/zero.d.ts +2 -3
  810. package/dist/types/permissionless/bindings/router/routing-manager.d.ts +2 -2
  811. package/dist/types/permissionless/bindings/treasury-splitter.d.ts +2 -2
  812. package/dist/types/permissionless/bindings/types.d.ts +17 -18
  813. package/dist/types/permissionless/chains/archive-transport.d.ts +3 -4
  814. package/dist/types/permissionless/chains/chunked-log-transport.d.ts +2 -2
  815. package/dist/types/permissionless/core/auditor.d.ts +2 -3
  816. package/dist/types/permissionless/core/bytecode.d.ts +5 -6
  817. package/dist/types/permissionless/core/pricefeed-builder.d.ts +6 -7
  818. package/dist/types/permissionless/core/pricefeed.d.ts +2 -3
  819. package/dist/types/permissionless/core/proposal.d.ts +5 -6
  820. package/dist/types/permissionless/core/raw-tx.d.ts +2 -3
  821. package/dist/types/permissionless/deployment/addresses.d.ts +2 -3
  822. package/dist/types/permissionless/deployment/mainnet.d.ts +6 -7
  823. package/dist/types/permissionless/plugins/irm/constructor-params-abi.d.ts +8 -8
  824. package/dist/types/permissionless/plugins/loss-policies/constructor-params-abi.d.ts +8 -8
  825. package/dist/types/permissionless/plugins/rate-keepers/constructor-params-abi.d.ts +9 -9
  826. package/dist/types/permissionless/utils/abi-encoder.d.ts +4 -5
  827. package/dist/types/permissionless/utils/block-utils.d.ts +2 -3
  828. package/dist/types/permissionless/utils/create2.d.ts +9 -10
  829. package/dist/types/permissionless/utils/format.d.ts +7 -8
  830. package/dist/types/permissionless/utils/governance/batch.d.ts +5 -6
  831. package/dist/types/permissionless/utils/governance/timelock-txs.d.ts +2 -3
  832. package/dist/types/permissionless/utils/governance/types.d.ts +3 -4
  833. package/dist/types/permissionless/utils/literals.d.ts +8 -9
  834. package/dist/types/permissionless/utils/price-update/get-price-update-tx.d.ts +2 -3
  835. package/dist/types/permissionless/utils/price-update/get-prices.d.ts +2 -3
  836. package/dist/types/permissionless/utils/price-update/get-updatable-feeds.d.ts +3 -4
  837. package/dist/types/permissionless/utils/signature.d.ts +2 -3
  838. package/dist/types/plugins/accounts/AccountsPlugin.d.ts +3 -4
  839. package/dist/types/plugins/accounts-counter/AccountsCounterPlugin.d.ts +3 -4
  840. package/dist/types/plugins/bots/BotsPlugin.d.ts +2 -3
  841. package/dist/types/plugins/bots/PartialLiquidationBotV310Contract.d.ts +3 -3
  842. package/dist/types/plugins/bots/abi/iPartialLiquidationBotV310.d.ts +2 -3
  843. package/dist/types/plugins/bots/config.d.ts +6 -7
  844. package/dist/types/plugins/bots/deserializePartialLiquidationBotParams.d.ts +2 -3
  845. package/dist/types/plugins/bots/types.d.ts +11 -12
  846. package/dist/types/sdk/AbstractNamespace.d.ts +3 -4
  847. package/dist/types/sdk/GearboxSDK.d.ts +3 -4
  848. package/dist/types/sdk/analytics/AnalyticsNamespace.d.ts +2 -3
  849. package/dist/types/sdk/analytics/types.d.ts +3 -4
  850. package/dist/types/sdk/errors/AllSourcesFailedError.d.ts +2 -3
  851. package/dist/types/sdk/errors/MissingSourceError.d.ts +2 -3
  852. package/dist/types/sdk/errors/NoSourceServedError.d.ts +2 -3
  853. package/dist/types/sdk/errors/SourceChainMismatchError.d.ts +3 -4
  854. package/dist/types/sdk/errors/SourceUnavailableError.d.ts +2 -3
  855. package/dist/types/sdk/errors/assertSameChains.d.ts +2 -3
  856. package/dist/types/sdk/errors/everyChainFailed.d.ts +2 -3
  857. package/dist/types/sdk/execute/ExecuteApi.d.ts +2 -3
  858. package/dist/types/sdk/execute/types.d.ts +9 -10
  859. package/dist/types/sdk/index.d.ts +2 -2
  860. package/dist/types/sdk/liquidations/LiquidationsNamespace.d.ts +11 -4
  861. package/dist/types/sdk/liquidations/types.d.ts +24 -9
  862. package/dist/types/sdk/opportunities/OpportunitiesNamespace.d.ts +2 -3
  863. package/dist/types/sdk/opportunities/types.d.ts +9 -10
  864. package/dist/types/sdk/positions/PositionsNamespace.d.ts +2 -3
  865. package/dist/types/sdk/positions/mergePositionList.d.ts +2 -3
  866. package/dist/types/sdk/positions/types.d.ts +9 -10
  867. package/dist/types/sdk/prepare/PrepareApi.d.ts +14 -7
  868. package/dist/types/sdk/prepare/index.d.ts +2 -2
  869. package/dist/types/sdk/prepare/types.d.ts +72 -33
  870. package/dist/types/sdk/prepare/withdrawable-collaterals.d.ts +2 -3
  871. package/dist/types/sdk/preview/PreviewNamespace.d.ts +2 -3
  872. package/dist/types/sdk/preview/types.d.ts +4 -5
  873. package/dist/types/sdk/rewards/RewardsNamespace.d.ts +2 -3
  874. package/dist/types/sdk/rewards/errors.d.ts +3 -4
  875. package/dist/types/sdk/rewards/helpers.d.ts +7 -8
  876. package/dist/types/sdk/rewards/merkl-api.d.ts +6 -6
  877. package/dist/types/sdk/rewards/toMerklRewards.d.ts +2 -3
  878. package/dist/types/sdk/rewards/toTurtleRewards.d.ts +2 -3
  879. package/dist/types/sdk/rewards/turtle-api.d.ts +7 -8
  880. package/dist/types/sdk/rewards/types.d.ts +5 -6
  881. package/dist/types/sdk/types.d.ts +13 -14
  882. package/dist/types/sdk/utils/filterResponse.d.ts +2 -3
  883. package/dist/types/sdk/utils/mergeChains.d.ts +4 -5
  884. package/dist/types/sdk/utils/types.d.ts +5 -5
  885. package/package.json +15 -15
@@ -12,18 +12,18 @@ import { Address, ContractFunctionParameters } from "viem";
12
12
  * Descriptor of a `getConnectedBots` call on the periphery compressor, so that
13
13
  * it can be batched with calls to other contracts.
14
14
  **/
15
- type ConnectedBotsCall = ContractFunctionParameters<typeof peripheryCompressorAbi, "pure" | "view", "getConnectedBots">;
15
+ export type ConnectedBotsCall = ContractFunctionParameters<typeof peripheryCompressorAbi, "pure" | "view", "getConnectedBots">;
16
16
  /**
17
17
  * @internal
18
18
  * Descriptor of a `getBotStatus` call on a bot list, so that it can be batched
19
19
  * with calls to other contracts.
20
20
  **/
21
- type BotStatusCall = ContractFunctionParameters<typeof iBotListV310Abi, "pure" | "view", "getBotStatus">;
21
+ export type BotStatusCall = ContractFunctionParameters<typeof iBotListV310Abi, "pure" | "view", "getBotStatus">;
22
22
  /**
23
23
  * @internal
24
24
  * Result of a `multicall` with `allowFailure: true`.
25
25
  **/
26
- type MulticallWithFailure<T> = ({
26
+ export type MulticallWithFailure<T> = ({
27
27
  error?: undefined;
28
28
  result: T;
29
29
  status: "success";
@@ -36,11 +36,11 @@ type MulticallWithFailure<T> = ({
36
36
  * @internal
37
37
  * Raw responses of a bot list's `getBotStatus`.
38
38
  **/
39
- type BotsDirectResponse = MulticallWithFailure<readonly [bigint, boolean, boolean] | readonly [bigint, boolean]>;
39
+ export type BotsDirectResponse = MulticallWithFailure<readonly [bigint, boolean, boolean] | readonly [bigint, boolean]>;
40
40
  /**
41
41
  * Credit account and credit manager address pair, used for batch queries such as connected bot lookups.
42
42
  **/
43
- type AccountToCheck = {
43
+ export type AccountToCheck = {
44
44
  /**
45
45
  * Address of the credit account.
46
46
  **/
@@ -54,7 +54,7 @@ type AccountToCheck = {
54
54
  * Minimal credit manager data an operation can be performed on, when it does
55
55
  * not target a specific credit account.
56
56
  **/
57
- interface CMSlice {
57
+ export interface CMSlice {
58
58
  creditManager: Address;
59
59
  creditFacade: Address;
60
60
  type: "creditManager";
@@ -62,7 +62,7 @@ interface CMSlice {
62
62
  /**
63
63
  * Props for {@link AccountBotsService.setBot}.
64
64
  **/
65
- interface SetBotProps {
65
+ export interface SetBotProps {
66
66
  /**
67
67
  * Address of a bot that is being updated
68
68
  */
@@ -83,7 +83,7 @@ interface SetBotProps {
83
83
  /**
84
84
  * Multicall result of querying connected bots across multiple credit accounts.
85
85
  **/
86
- type GetConnectedBotsResult = Array<{
86
+ export type GetConnectedBotsResult = Array<{
87
87
  error?: undefined;
88
88
  result: readonly ConnectedBotData[];
89
89
  status: "success";
@@ -95,7 +95,7 @@ type GetConnectedBotsResult = Array<{
95
95
  /**
96
96
  * Result of querying a migration bot's status across credit accounts, or `undefined` if no migration bot was provided.
97
97
  **/
98
- type GetConnectedMigrationBotsResult = {
98
+ export type GetConnectedMigrationBotsResult = {
99
99
  result: ({
100
100
  error: Error;
101
101
  result?: undefined;
@@ -111,13 +111,13 @@ type GetConnectedMigrationBotsResult = {
111
111
  * Statuses of the queried bots on one credit account, in the order the bots
112
112
  * were passed in.
113
113
  **/
114
- interface ConnectedBotsPerAccount {
114
+ export interface ConnectedBotsPerAccount {
115
115
  result: BotsDirectResponse;
116
116
  }
117
117
  /**
118
118
  * Result of {@link AccountBotsService.getConnectedBots}.
119
119
  **/
120
- interface GetConnectedBotsResponse {
120
+ export interface GetConnectedBotsResponse {
121
121
  /**
122
122
  * Bots the periphery compressor reports for each checked account, in the
123
123
  * order the accounts were passed in.
@@ -138,6 +138,5 @@ interface GetConnectedBotsResponse {
138
138
  * Result of {@link AccountBotsService.setBot}: a full transaction when the bot
139
139
  * is set on a credit account, calls only when it is set on a credit manager.
140
140
  **/
141
- type SetBotResult = CreditAccountOperationResult | CreditManagerOperationResult;
142
- //#endregion
143
- export { AccountToCheck, BotStatusCall, BotsDirectResponse, CMSlice, ConnectedBotsCall, ConnectedBotsPerAccount, GetConnectedBotsResponse, GetConnectedBotsResult, GetConnectedMigrationBotsResult, MulticallWithFailure, SetBotProps, SetBotResult };
141
+ export type SetBotResult = CreditAccountOperationResult | CreditManagerOperationResult;
142
+ //#endregion
@@ -13,7 +13,7 @@ import { Address } from "viem";
13
13
  *
14
14
  * TODO: create and deploy new compressor contract onchain to avoid all this stitching
15
15
  **/
16
- declare class CreditAccountCompressor extends SDKConstruct {
16
+ export declare class CreditAccountCompressor extends SDKConstruct {
17
17
  #private;
18
18
  /**
19
19
  * Reads data of a single credit account.
@@ -47,5 +47,4 @@ declare class CreditAccountCompressor extends SDKConstruct {
47
47
  **/
48
48
  getBorrowerCreditAccounts(borrower: Address, options?: GetCreditAccountsOptions, blockNumber?: bigint): Promise<CreditAccountData<true>[]>;
49
49
  }
50
- //#endregion
51
- export { CreditAccountCompressor };
50
+ //#endregion
@@ -841,7 +841,7 @@ type abi = typeof abi;
841
841
  * multi-account reads, and call descriptors for callers that need to batch
842
842
  * these reads with calls to other contracts.
843
843
  **/
844
- declare class CreditAccountCompressorV310Contract extends BaseContract<abi> {
844
+ export declare class CreditAccountCompressorV310Contract extends BaseContract<abi> {
845
845
  #private;
846
846
  constructor(sdk: OnchainSDK, address: Address);
847
847
  /**
@@ -876,4 +876,4 @@ declare class CreditAccountCompressorV310Contract extends BaseContract<abi> {
876
876
  accountsCall(args: GetCreditAccountsArgs): CreditAccountsCall;
877
877
  }
878
878
  //#endregion
879
- export { CreditAccountCompressorV310Contract };
879
+ export {};
@@ -7,24 +7,24 @@ import { Address, ContractFunctionArgs, ContractFunctionParameters } from "viem"
7
7
  * @internal
8
8
  * Arguments tuple for the credit account compressor's `getCreditAccounts` view method.
9
9
  **/
10
- type GetCreditAccountsArgs = ContractFunctionArgs<typeof creditAccountCompressorAbi, "pure" | "view", "getCreditAccounts">;
10
+ export type GetCreditAccountsArgs = ContractFunctionArgs<typeof creditAccountCompressorAbi, "pure" | "view", "getCreditAccounts">;
11
11
  /**
12
12
  * @internal
13
13
  * Descriptor of a `getCreditAccountData` call, so that it can be batched with
14
14
  * calls to other contracts.
15
15
  **/
16
- type CreditAccountDataCall = ContractFunctionParameters<typeof creditAccountCompressorAbi, "pure" | "view", "getCreditAccountData">;
16
+ export type CreditAccountDataCall = ContractFunctionParameters<typeof creditAccountCompressorAbi, "pure" | "view", "getCreditAccountData">;
17
17
  /**
18
18
  * @internal
19
19
  * Descriptor of a `getCreditAccounts` call, so that it can be batched with
20
20
  * calls to other contracts.
21
21
  **/
22
- type CreditAccountsCall = ContractFunctionParameters<typeof creditAccountCompressorAbi, "pure" | "view", "getCreditAccounts">;
22
+ export type CreditAccountsCall = ContractFunctionParameters<typeof creditAccountCompressorAbi, "pure" | "view", "getCreditAccounts">;
23
23
  /**
24
24
  * @internal
25
25
  * Filtering conditions applied to individual credit accounts when querying the compressor.
26
26
  **/
27
- interface CreditAccountFilter {
27
+ export interface CreditAccountFilter {
28
28
  /**
29
29
  * Filter by account owner address.
30
30
  **/
@@ -52,7 +52,7 @@ interface CreditAccountFilter {
52
52
  * @internal
53
53
  * Filtering conditions to select which credit managers to query.
54
54
  **/
55
- interface CreditManagerFilter {
55
+ export interface CreditManagerFilter {
56
56
  /**
57
57
  * Only include credit managers owned by these market configurators.
58
58
  **/
@@ -75,19 +75,19 @@ interface CreditManagerFilter {
75
75
  * Credit managers a compressor query runs over: either one credit manager
76
76
  * address, or a filter matching many of them.
77
77
  **/
78
- type CreditAccountsTarget = Address | CreditManagerFilter;
78
+ export type CreditAccountsTarget = Address | CreditManagerFilter;
79
79
  /**
80
80
  * @internal
81
81
  * Account-level conditions of a compressor query, without `reverting`: the
82
82
  * compressor treats that flag as exclusive, so a full query has to run both
83
83
  * passes and callers do not choose one.
84
84
  **/
85
- type CreditAccountsQuery = Omit<CreditAccountFilter, "reverting">;
85
+ export type CreditAccountsQuery = Omit<CreditAccountFilter, "reverting">;
86
86
  /**
87
87
  * @internal
88
88
  * Common options of a credit account compressor read.
89
89
  **/
90
- interface CreditAccountReadOptions {
90
+ export interface CreditAccountReadOptions {
91
91
  /**
92
92
  * Block to read at. Defaults to the latest block.
93
93
  **/
@@ -102,7 +102,7 @@ interface CreditAccountReadOptions {
102
102
  * @internal
103
103
  * Options of a paginated credit account compressor read.
104
104
  **/
105
- interface CreditAccountsReadOptions extends CreditAccountReadOptions {
105
+ export interface CreditAccountsReadOptions extends CreditAccountReadOptions {
106
106
  /**
107
107
  * Maximum number of accounts to fetch per call. When set, accounts are
108
108
  * loaded in pages of this size until all are fetched.
@@ -115,7 +115,7 @@ interface CreditAccountsReadOptions extends CreditAccountReadOptions {
115
115
  /**
116
116
  * Options for fetching credit accounts, allowing filtering by credit manager, owner, and health factor range.
117
117
  **/
118
- interface GetCreditAccountsOptions {
118
+ export interface GetCreditAccountsOptions {
119
119
  /**
120
120
  * If set, only return accounts from this credit manager; otherwise query all attached markets.
121
121
  **/
@@ -146,5 +146,4 @@ interface GetCreditAccountsOptions {
146
146
  **/
147
147
  ignoreReservePrices?: boolean;
148
148
  }
149
- //#endregion
150
- export { CreditAccountDataCall, CreditAccountFilter, CreditAccountReadOptions, CreditAccountsCall, CreditAccountsQuery, CreditAccountsReadOptions, CreditAccountsTarget, CreditManagerFilter, GetCreditAccountsArgs, GetCreditAccountsOptions };
149
+ //#endregion
@@ -3,12 +3,6 @@ import { CreditAccountDataCall, CreditAccountFilter, CreditAccountReadOptions, C
3
3
  import { CreditAccountCompressor } from "./credit-account-compressor/CreditAccountCompressor.js";
4
4
  import { CreditAccountCompressorV310Contract } from "./credit-account-compressor/CreditAccountCompressorV310Contract.js";
5
5
  import "./credit-account-compressor/index.js";
6
- import { LIQUIDATION_APPROVAL_BUFFER, LIQUIDATION_COMPRESSOR_V313_ADDRESS } from "./liquidations/constants.js";
7
- import { BuildLiquidationTxProps, BuildLiquidationTxPropsBase, GetLiquidatableAccountsProps, GetLiquidationDetailsProps, GetLiquidationDetailsPropsBase, GetLiquidationPositionsProps, GetLiquidationPositionsPropsBase, LoadRWALiquidatorsProps, OnchainLiquidationCall, OnchainLiquidationData, OnchainLiquidationOutput, PartialLiquidationParams, RWALiquidatorInfo } from "./liquidations/types.js";
8
- import { OptimalPartialLiquidation, OptimalPartialLiquidationProps, PartialLiquidationParamsProps, optimalPartialLiquidation, partialLiquidationParams } from "./liquidations/partialLiquidation.js";
9
- import { LiquidationsService } from "./liquidations/LiquidationsService.js";
10
- import { MultichainLiquidationsService } from "./liquidations/MultichainLiquidationsService.js";
11
- import "./liquidations/index.js";
12
6
  import { AbstractWithdrawalCompressorContract, OnchainRequestableWithdrawal, iCreditAccountAbi, toClaimableWithdrawal, toPendingWithdrawal, toRequestableWithdrawal } from "./withdrawal-compressor/AbstractWithdrawalCompressorContract.js";
13
7
  import { WithdrawalCompressorLocation, WithdrawalCompressorVersion, getWithdrawalCompressorAddress } from "./withdrawal-compressor/addresses.js";
14
8
  import { createRedemptionLogger } from "./withdrawal-compressor/createRedemptionLogger.js";
@@ -19,7 +13,7 @@ import { WithdrawalCompressorV310Contract } from "./withdrawal-compressor/Withdr
19
13
  import { WithdrawalCompressorV311Contract } from "./withdrawal-compressor/WithdrawalCompressorV311Contract.js";
20
14
  import { WithdrawalCompressorV313Contract } from "./withdrawal-compressor/WithdrawalCompressorV313Contract.js";
21
15
  import "./withdrawal-compressor/index.js";
22
- import { AssembleCaOperationsProps, AssembleClaimDelayedCallsProps, AssembleCloseCreditAccountCallsProps, AssembleRepayCreditAccountCallsProps, AssembleStartDelayedWithdrawalCallsProps, ClaimFarmRewardsProps, CloseCreditAccountResult, CreditAccountOperationResult, CreditManagerOperationResult, EncodableCreditAccountOperation, FullyLiquidateProps, FullyLiquidateResult, GetApprovalAddressProps, ICreditAccountsService, OpenCAProps, PartiallyLiquidateProps, PreviewDelayedWithdrawalProps, Rewards } from "./types.js";
16
+ import { AssembleCaOperationsProps, AssembleClaimDelayedCallsProps, AssembleCloseCreditAccountCallsProps, AssembleRepayCreditAccountCallsProps, AssembleStartDelayedWithdrawalCallsProps, ClaimFarmRewardsProps, CreditAccountOperationResult, CreditManagerOperationResult, EncodableCreditAccountOperation, GetApprovalAddressProps, ICreditAccountsService, OpenCAProps, PreviewDelayedWithdrawalProps, Rewards } from "./types.js";
23
17
  import { AccountToCheck, BotStatusCall, BotsDirectResponse, CMSlice, ConnectedBotsCall, ConnectedBotsPerAccount, GetConnectedBotsResponse, GetConnectedBotsResult, GetConnectedMigrationBotsResult, MulticallWithFailure, SetBotProps, SetBotResult } from "./bots/types.js";
24
18
  import { AccountBotsService } from "./bots/AccountBotsService.js";
25
19
  import { PeripheryCompressorV310Contract } from "./bots/PeripheryCompressorV310Contract.js";
@@ -27,11 +21,17 @@ import "./bots/index.js";
27
21
  import { CreditAccountsServiceV310 } from "./CreditAccountsServiceV310.js";
28
22
  import { CalcDefaultQuotaProps, CalcQuotaUpdateProps, CalcRecommendedQuotaProps, DIRECT_TRANSFERS_QUOTA, MaxAmountForQuotaProps, calcDefaultQuota, calcQuotaUpdate, calcRecommendedQuota, maxAmountForQuota, roundUpQuota } from "./quota-utils.js";
29
23
  import { AccountCalculatorOperation } from "./intents/operations.js";
30
- import { AddCollateralIntent, AdjustLeverageIntent, ClaimRemainder, CreditAccountSlice, DelayableIntent, DelayedRoute, DelayedStart, DelayedStartResult, DepositStrategyIntent, ExecutionCost, FinishIntentProps, FinishIntentResult, InstantRoute, IntentPreviewResult, IntentRoutesResult, OperationState, PathLossRate, RefusedIntent, RepayStrategyIntent, ResumableIntent, RouteErrors, StartIntent, WithPartialState, WithdrawAssetIntent, WithdrawCeilings, WithdrawStrategyIntent } from "./intents/types.js";
24
+ 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 "./intents/types.js";
31
25
  import { BorrowProps, BorrowState } from "./intents/borrow.js";
32
26
  import { LeverageBand } from "./intents/leverage-band.js";
33
27
  import { OpenStrategyProps, OpenStrategyState } from "./intents/open-strategy.js";
34
28
  import { fetchCreditAccountSlice, toCreditAccountSlice } from "./intents/utils/credit-account-slice.js";
35
29
  import { isPhantomToken } from "./intents/utils/pick-token.js";
36
30
  import { BorrowPreviewResult, CreditAccountOperationsService, EmptyAccountPreviewResult, OpenStrategyPreviewResult } from "./intents/index.js";
37
- export { AbstractWithdrawalCompressorContract, AccountBotsService, type AccountCalculatorOperation, AccountToCheck, type AddCollateralIntent, type AdjustLeverageIntent, AssembleCaOperationsProps, AssembleClaimDelayedCallsProps, AssembleCloseCreditAccountCallsProps, AssembleRepayCreditAccountCallsProps, AssembleStartDelayedWithdrawalCallsProps, BorrowPreviewResult, type BorrowProps, type BorrowState, BotStatusCall, BotsDirectResponse, BuildLiquidationTxProps, BuildLiquidationTxPropsBase, CMSlice, CalcDefaultQuotaProps, CalcQuotaUpdateProps, CalcRecommendedQuotaProps, ClaimFarmRewardsProps, type ClaimRemainder, ClaimableWithdrawal, CloseCreditAccountResult, ConnectedBotsCall, ConnectedBotsPerAccount, CreditAccountCompressor, CreditAccountCompressorV310Contract, CreditAccountDataCall, CreditAccountFilter, CreditAccountOperationResult, CreditAccountOperationsService, CreditAccountReadOptions, type CreditAccountSlice, CreditAccountsCall, CreditAccountsQuery, CreditAccountsReadOptions, CreditAccountsServiceV310, CreditAccountsTarget, CreditManagerFilter, CreditManagerOperationResult, CurrentWithdrawals, DELAYED_INTENT_TYPES, DELAYED_INTENT_VERSION, DIRECT_TRANSFERS_QUOTA, type DelayableIntent, DelayedIntentExtended, type DelayedRoute, type DelayedStart, type DelayedStartResult, type DepositStrategyIntent, EmptyAccountPreviewResult, EncodableCreditAccountOperation, type ExecutionCost, type FinishIntentProps, type FinishIntentResult, FullyLiquidateProps, FullyLiquidateResult, GetApprovalAddressProps, GetConnectedBotsResponse, GetConnectedBotsResult, GetConnectedMigrationBotsResult, GetCreditAccountsArgs, GetCreditAccountsOptions, GetExternalAccountCurrentWithdrawalsProps, GetLiquidatableAccountsProps, GetLiquidationDetailsProps, GetLiquidationDetailsPropsBase, GetLiquidationPositionsProps, GetLiquidationPositionsPropsBase, GetWithdrawalRequestResultProps, ICreditAccountsService, IRedemptionLoggerContract, IWithdrawalCompressorContract, type InstantRoute, type IntentPreviewResult, type IntentRoutesResult, LIQUIDATION_APPROVAL_BUFFER, LIQUIDATION_COMPRESSOR_V313_ADDRESS, type LeverageBand, LiquidationsService, LoadRWALiquidatorsProps, MaxAmountForQuotaProps, MulticallWithFailure, MultichainLiquidationsService, OnchainLiquidationCall, OnchainLiquidationData, OnchainLiquidationOutput, OnchainRequestableWithdrawal, OpenCAProps, OpenStrategyPreviewResult, type OpenStrategyProps, type OpenStrategyState, type OperationState, OptimalPartialLiquidation, OptimalPartialLiquidationProps, PartialLiquidationParams, PartialLiquidationParamsProps, PartiallyLiquidateProps, type PathLossRate, PendingWithdrawal, PeripheryCompressorV310Contract, PreviewDelayedWithdrawalProps, RWALiquidatorInfo, RedemptionLog, RedemptionLoggerV310Contract, type RefusedIntent, type RepayStrategyIntent, RequestableWithdrawal, type ResumableIntent, Rewards, type RouteErrors, SetBotProps, SetBotResult, type StartIntent, type WithPartialState, type WithdrawAssetIntent, type WithdrawCeilings, type WithdrawStrategyIntent, WithdrawableAsset, WithdrawalCompressorLocation, WithdrawalCompressorV310Contract, WithdrawalCompressorV311Contract, WithdrawalCompressorV313Contract, WithdrawalCompressorVersion, WithdrawalOutput, WithdrawalStatus, WithdrawalsState, calcDefaultQuota, calcQuotaUpdate, calcRecommendedQuota, createRedemptionLogger, createWithdrawalCompressor, decodeDelayedIntent, encodeDelayedIntent, fetchCreditAccountSlice, getWithdrawalCompressorAddress, iCreditAccountAbi, isPhantomToken, maxAmountForQuota, optimalPartialLiquidation, partialLiquidationParams, roundUpQuota, toClaimableWithdrawal, toCreditAccountSlice, toPendingWithdrawal, toRequestableWithdrawal, toWithdrawalStatus };
31
+ import { LIQUIDATION_APPROVAL_BUFFER, LIQUIDATION_COMPRESSOR_V313_ADDRESS } from "./liquidations/constants.js";
32
+ import { BuildLiquidationTxProps, BuildLiquidationTxPropsBase, BuildPartialLiquidationTxProps, BuildPartialLiquidationTxPropsBase, FullyLiquidateProps, FullyLiquidateResult, GetLiquidatableAccountsProps, GetLiquidationDetailsProps, GetLiquidationDetailsPropsBase, GetLiquidationPositionsProps, GetLiquidationPositionsPropsBase, GetPartialLiquidationDetailsProps, GetPartialLiquidationDetailsPropsBase, LoadRWALiquidatorsProps, OnchainLiquidationCall, OnchainLiquidationData, OnchainLiquidationOutput, PartialLiquidationParams, RWALiquidatorInfo } from "./liquidations/types.js";
33
+ import { OptimalPartialLiquidation, OptimalPartialLiquidationProps, PartialLiquidationParamsProps, optimalPartialLiquidation, partialLiquidationParams } from "./liquidations/partialLiquidation.js";
34
+ import { LiquidationsService } from "./liquidations/LiquidationsService.js";
35
+ import { MultichainLiquidationsService } from "./liquidations/MultichainLiquidationsService.js";
36
+ import "./liquidations/index.js";
37
+ export { AbstractWithdrawalCompressorContract, AccountBotsService, type AccountCalculatorOperation, AccountToCheck, type AddCollateralIntent, type AdjustLeverageIntent, AssembleCaOperationsProps, AssembleClaimDelayedCallsProps, AssembleCloseCreditAccountCallsProps, AssembleRepayCreditAccountCallsProps, AssembleStartDelayedWithdrawalCallsProps, BorrowPreviewResult, type BorrowProps, type BorrowState, BotStatusCall, BotsDirectResponse, BuildLiquidationTxProps, BuildLiquidationTxPropsBase, BuildPartialLiquidationTxProps, BuildPartialLiquidationTxPropsBase, CMSlice, CalcDefaultQuotaProps, CalcQuotaUpdateProps, CalcRecommendedQuotaProps, ClaimFarmRewardsProps, type ClaimRemainder, ClaimableWithdrawal, ConnectedBotsCall, ConnectedBotsPerAccount, CreditAccountCompressor, CreditAccountCompressorV310Contract, CreditAccountDataCall, CreditAccountFilter, CreditAccountOperationResult, CreditAccountOperationsService, CreditAccountReadOptions, type CreditAccountSlice, CreditAccountsCall, CreditAccountsQuery, CreditAccountsReadOptions, CreditAccountsServiceV310, CreditAccountsTarget, CreditManagerFilter, CreditManagerOperationResult, CurrentWithdrawals, DELAYED_INTENT_TYPES, DELAYED_INTENT_VERSION, DIRECT_TRANSFERS_QUOTA, type DelayableIntent, DelayedIntentExtended, type DelayedRoute, type DelayedStart, type DelayedStartResult, type DepositStrategyIntent, EmptyAccountPreviewResult, EncodableCreditAccountOperation, type ExecutionCost, type FinishIntentProps, type FinishIntentResult, FullyLiquidateProps, FullyLiquidateResult, GetApprovalAddressProps, GetConnectedBotsResponse, GetConnectedBotsResult, GetConnectedMigrationBotsResult, GetCreditAccountsArgs, GetCreditAccountsOptions, GetExternalAccountCurrentWithdrawalsProps, GetLiquidatableAccountsProps, GetLiquidationDetailsProps, GetLiquidationDetailsPropsBase, GetLiquidationPositionsProps, GetLiquidationPositionsPropsBase, GetPartialLiquidationDetailsProps, GetPartialLiquidationDetailsPropsBase, GetWithdrawalRequestResultProps, ICreditAccountsService, IRedemptionLoggerContract, IWithdrawalCompressorContract, type InstantRoute, type IntentPreviewResult, type IntentRoutesResult, LIQUIDATION_APPROVAL_BUFFER, LIQUIDATION_COMPRESSOR_V313_ADDRESS, type LeverageBand, LiquidationsService, LoadRWALiquidatorsProps, MaxAmountForQuotaProps, MulticallWithFailure, MultichainLiquidationsService, OnchainLiquidationCall, OnchainLiquidationData, OnchainLiquidationOutput, OnchainRequestableWithdrawal, OpenCAProps, OpenStrategyPreviewResult, type OpenStrategyProps, type OpenStrategyState, type OperationState, OptimalPartialLiquidation, OptimalPartialLiquidationProps, PartialLiquidationParams, PartialLiquidationParamsProps, type PathLossRate, PendingWithdrawal, PeripheryCompressorV310Contract, PreviewDelayedWithdrawalProps, RWALiquidatorInfo, RedemptionLog, RedemptionLoggerV310Contract, type RefusedIntent, type RepayStrategyIntent, RequestableWithdrawal, type ResumableIntent, Rewards, type RouteErrors, SetBotProps, SetBotResult, type StartIntent, type UpdateQuotaIntent, type WithPartialState, type WithdrawAssetIntent, type WithdrawCeilings, type WithdrawStrategyIntent, WithdrawableAsset, WithdrawalCompressorLocation, WithdrawalCompressorV310Contract, WithdrawalCompressorV311Contract, WithdrawalCompressorV313Contract, WithdrawalCompressorVersion, WithdrawalOutput, WithdrawalStatus, WithdrawalsState, calcDefaultQuota, calcQuotaUpdate, calcRecommendedQuota, createRedemptionLogger, createWithdrawalCompressor, decodeDelayedIntent, encodeDelayedIntent, fetchCreditAccountSlice, getWithdrawalCompressorAddress, iCreditAccountAbi, isPhantomToken, maxAmountForQuota, optimalPartialLiquidation, partialLiquidationParams, roundUpQuota, toClaimableWithdrawal, toCreditAccountSlice, toPendingWithdrawal, toRequestableWithdrawal, toWithdrawalStatus };
@@ -15,7 +15,7 @@ import { Address } from "viem";
15
15
  * account to be traded, they go to the wallet. What is left behind is the
16
16
  * collateral and the debt it backs.
17
17
  */
18
- interface BorrowProps {
18
+ export interface BorrowProps {
19
19
  sdk: OnchainSDK;
20
20
  /** Credit manager to open the account in. */
21
21
  creditManager: Address;
@@ -65,7 +65,7 @@ interface BorrowProps {
65
65
  * projected: the market, the debt, the quotas and the two factors, all of
66
66
  * which a borrow reports where an operation on an existing account does.
67
67
  */
68
- interface BorrowState extends OperationState {
68
+ export interface BorrowState extends OperationState {
69
69
  /** What the wallet puts up, as it will sit on the account. */
70
70
  collateral: TokenAmount;
71
71
  /**
@@ -122,9 +122,9 @@ interface BorrowState extends OperationState {
122
122
  * numbers and the calls to `sdk.accounts.openCA`, with `withdrawToken` set to
123
123
  * the payout.
124
124
  */
125
- declare function buildBorrowState(props: BorrowProps): Promise<BorrowState>;
125
+ export declare function buildBorrowState(props: BorrowProps): Promise<BorrowState>;
126
126
  /** Inputs of {@link borrowCollateralQuota}. */
127
- interface BorrowCollateralQuotaProps {
127
+ export interface BorrowCollateralQuotaProps {
128
128
  sdk: OnchainSDK;
129
129
  creditManager: Address;
130
130
  /** Collateral the fresh account will hold. */
@@ -141,6 +141,5 @@ interface BorrowCollateralQuotaProps {
141
141
  *
142
142
  * @param props - {@link BorrowCollateralQuotaProps}
143
143
  **/
144
- declare function borrowCollateralQuota({ sdk, creditManager, assets, quotaReserve }: BorrowCollateralQuotaProps): Asset[];
145
- //#endregion
146
- export { BorrowCollateralQuotaProps, BorrowProps, BorrowState, borrowCollateralQuota, buildBorrowState };
144
+ export declare function borrowCollateralQuota({ sdk, creditManager, assets, quotaReserve }: BorrowCollateralQuotaProps): Asset[];
145
+ //#endregion
@@ -4,7 +4,7 @@ import "../../index.js";
4
4
  import { Address } from "viem";
5
5
  //#region src/onchain/accounts/intents/collateral-valuation.d.ts
6
6
  /** One balance on the account, as the slice carries it. */
7
- type Holding = CreditAccountSlice["tokens"][number];
7
+ export type Holding = CreditAccountSlice["tokens"][number];
8
8
  /**
9
9
  * The collateral check's own valuation of an account, as a handful of lookups.
10
10
  *
@@ -20,7 +20,7 @@ type Holding = CreditAccountSlice["tokens"][number];
20
20
  * Every figure is carried in USD × `PERCENTAGE_FACTOR`, the units the check
21
21
  * compares in, so a threshold never has to be divided back out.
22
22
  */
23
- interface CollateralValuation {
23
+ export interface CollateralValuation {
24
24
  /** Market underlying, the one token safe pricing does not touch. */
25
25
  underlying: Address;
26
26
  /** Whether the holding is weighed at all. */
@@ -39,6 +39,5 @@ interface CollateralValuation {
39
39
  /** {@inheritDoc CollateralValuation}
40
40
  * Set `safePrices` to false to value the same counted holdings at main prices.
41
41
  */
42
- declare function collateralValuation(creditAccount: CreditAccountSlice, sdk: OnchainSDK, safePrices?: boolean): CollateralValuation;
43
- //#endregion
44
- export { CollateralValuation, Holding, collateralValuation };
42
+ export declare function collateralValuation(creditAccount: CreditAccountSlice, sdk: OnchainSDK, safePrices?: boolean): CollateralValuation;
43
+ //#endregion
@@ -27,9 +27,9 @@ import "../../index.js";
27
27
  * The facade takes no multicall while it is paused or past its expiration, so
28
28
  * every intent the engine previews would revert on arrival.
29
29
  */
30
- declare function assertMarketOperable(suite: CreditSuite): void;
30
+ export declare function assertMarketOperable(suite: CreditSuite): void;
31
31
  /** The pool has to be able to lend what the plan means to draw. */
32
- declare function assertCanBorrow(sdk: OnchainSDK, suite: CreditSuite, amount: bigint, options?: OperationLimitOptions): void;
32
+ export declare function assertCanBorrow(sdk: OnchainSDK, suite: CreditSuite, amount: bigint, options?: OperationLimitOptions): void;
33
33
  interface GrowthAllowedProps {
34
34
  sdk: OnchainSDK;
35
35
  suite: CreditSuite;
@@ -50,7 +50,7 @@ interface GrowthAllowedProps {
50
50
  * The underlying answers to neither rule, and a phantom token is a redemption
51
51
  * in flight rather than a holding.
52
52
  */
53
- declare function assertGrowthAllowed(args: GrowthAllowedProps): void;
53
+ export declare function assertGrowthAllowed(args: GrowthAllowedProps): void;
54
54
  /**
55
55
  * The facade weighs the account against its debt at the end of every multicall
56
56
  * and reverts if the collateral does not cover it, so a plan that lands the
@@ -81,7 +81,7 @@ declare function assertGrowthAllowed(args: GrowthAllowedProps): void;
81
81
  * whose reserve feed the SDK cannot read keeps its main price, so a plan can
82
82
  * still be refused on-chain after passing here.
83
83
  */
84
- declare function assertCollateralised(healthFactorBps: number, safePrices: boolean, atSafePrices?: SafePriceEvidence): void;
84
+ export declare function assertCollateralised(healthFactorBps: number, safePrices: boolean, atSafePrices?: SafePriceEvidence): void;
85
85
  /**
86
86
  * What tells a reserve feed marking collateral down apart from a position that
87
87
  * is simply too small, read only when the collateral check has already failed.
@@ -90,7 +90,7 @@ declare function assertCollateralised(healthFactorBps: number, safePrices: boole
90
90
  * second time at the main feed, and the check solved for the amount that would
91
91
  * still clear it.
92
92
  */
93
- type SafePriceEvidence = () => {
93
+ export type SafePriceEvidence = () => {
94
94
  /** The plan's end state weighed at the main feed. */
95
95
  atMainPrices: Bps;
96
96
  /** What the account can still take out, in the market's underlying. */
@@ -100,6 +100,6 @@ type SafePriceEvidence = () => {
100
100
  * A quota can only be raised as far as the market still has room for: past the
101
101
  * token's limit the keeper takes nothing more, whoever is asking.
102
102
  */
103
- declare function assertQuotaAvailable(sdk: OnchainSDK, market: MarketSuite, increases: readonly Asset[], options?: OperationLimitOptions): void;
103
+ export declare function assertQuotaAvailable(sdk: OnchainSDK, market: MarketSuite, increases: readonly Asset[], options?: OperationLimitOptions): void;
104
104
  //#endregion
105
- export { SafePriceEvidence, assertCanBorrow, assertCollateralised, assertGrowthAllowed, assertMarketOperable, assertQuotaAvailable };
105
+ export {};
@@ -3,7 +3,7 @@ import "../../../model/index.js";
3
3
  import { SDKConstruct } from "../../base/SDKConstruct.js";
4
4
  import { IntentValidationError } from "../../validation/raise.js";
5
5
  import { AccountCalculatorOperation } from "./operations.js";
6
- import { AddCollateralIntent, AdjustLeverageIntent, ClaimRemainder, CreditAccountSlice, DelayableIntent, DelayedRoute, DelayedStart, DelayedStartResult, DepositStrategyIntent, ExecutionCost, FinishIntentProps, FinishIntentResult, InstantRoute, IntentPreviewResult, IntentRoutesResult, OperationState, PathLossRate, RefusedIntent, RepayStrategyIntent, ResumableIntent, RouteErrors, StartIntent, StartIntentProps, WithPartialState, WithdrawAssetIntent, WithdrawCeilings, WithdrawStrategyIntent } from "./types.js";
6
+ import { AddCollateralIntent, AdjustLeverageIntent, ClaimRemainder, CreditAccountSlice, DelayableIntent, DelayedRoute, DelayedStart, DelayedStartResult, DepositStrategyIntent, ExecutionCost, FinishIntentProps, FinishIntentResult, InstantRoute, IntentPreviewResult, IntentRoutesResult, OperationState, PathLossRate, RefusedIntent, RepayStrategyIntent, ResumableIntent, RouteErrors, StartIntent, StartIntentProps, UpdateQuotaIntent, WithPartialState, WithdrawAssetIntent, WithdrawCeilings, WithdrawStrategyIntent } from "./types.js";
7
7
  import { BorrowProps, BorrowState } from "./borrow.js";
8
8
  import { LeverageBand, LeverageBandProps } from "./leverage-band.js";
9
9
  import { MaxBorrowProps } from "./maxBorrow.js";
@@ -19,7 +19,7 @@ import { Address } from "viem";
19
19
  * the same way, but the payload is its own: opening has no existing account, so
20
20
  * there is no operation chain to report.
21
21
  */
22
- type OpenStrategyPreviewResult = {
22
+ export type OpenStrategyPreviewResult = {
23
23
  ok: true;
24
24
  state: OpenStrategyState;
25
25
  } | SDKError<RefusedIntent<OpenStrategyState>>;
@@ -27,7 +27,7 @@ type OpenStrategyPreviewResult = {
27
27
  * Borrow preview outcome, shaped like {@link OpenStrategyPreviewResult}: both
28
28
  * open an account, so neither has an operation chain to report.
29
29
  */
30
- type BorrowPreviewResult = {
30
+ export type BorrowPreviewResult = {
31
31
  ok: true;
32
32
  state: BorrowState;
33
33
  } | SDKError<RefusedIntent<BorrowState>>;
@@ -36,7 +36,7 @@ type BorrowPreviewResult = {
36
36
  * that holds nothing has no state to project — only the market's own refusal
37
37
  * to open one at all.
38
38
  */
39
- type EmptyAccountPreviewResult = {
39
+ export type EmptyAccountPreviewResult = {
40
40
  ok: true;
41
41
  } | SDKError<IntentValidationError>;
42
42
  /** An intent plus everything previewing it needs. */
@@ -50,7 +50,7 @@ type StartProps = StartIntentProps & {
50
50
  * steps with pure arithmetic, `realize.ts` turns the steps into router-backed
51
51
  * operations. This class only picks the planner and wraps the outcome.
52
52
  */
53
- declare class CreditAccountOperationsService extends SDKConstruct {
53
+ export declare class CreditAccountOperationsService extends SDKConstruct {
54
54
  #private;
55
55
  /**
56
56
  * Previews an operation on an existing account.
@@ -281,4 +281,4 @@ declare class CreditAccountOperationsService extends SDKConstruct {
281
281
  borrowIntent(props: BorrowProps): Promise<BorrowPreviewResult>;
282
282
  }
283
283
  //#endregion
284
- export { type AccountCalculatorOperation, type AddCollateralIntent, type AdjustLeverageIntent, BorrowPreviewResult, type BorrowProps, type BorrowState, type ClaimRemainder, CreditAccountOperationsService, type CreditAccountSlice, type DelayableIntent, type DelayedRoute, type DelayedStart, type DelayedStartResult, type DepositStrategyIntent, EmptyAccountPreviewResult, type ExecutionCost, type FinishIntentProps, type FinishIntentResult, type InstantRoute, type IntentPreviewResult, type IntentRoutesResult, type LeverageBand, OpenStrategyPreviewResult, type OpenStrategyProps, type OpenStrategyState, type OperationState, type PathLossRate, type RefusedIntent, type RepayStrategyIntent, type ResumableIntent, type RouteErrors, type StartIntent, type WithPartialState, type WithdrawAssetIntent, type WithdrawCeilings, type WithdrawStrategyIntent, fetchCreditAccountSlice, isPhantomToken, toCreditAccountSlice };
284
+ export { type AccountCalculatorOperation, type AddCollateralIntent, type AdjustLeverageIntent, type BorrowProps, type BorrowState, type ClaimRemainder, type CreditAccountSlice, type DelayableIntent, type DelayedRoute, type DelayedStart, type DelayedStartResult, type DepositStrategyIntent, type ExecutionCost, type FinishIntentProps, type FinishIntentResult, type InstantRoute, type IntentPreviewResult, type IntentRoutesResult, type LeverageBand, type OpenStrategyProps, type OpenStrategyState, type OperationState, type PathLossRate, type RefusedIntent, type RepayStrategyIntent, type ResumableIntent, type RouteErrors, type StartIntent, type UpdateQuotaIntent, type WithPartialState, type WithdrawAssetIntent, type WithdrawCeilings, type WithdrawStrategyIntent, fetchCreditAccountSlice, isPhantomToken, toCreditAccountSlice };
@@ -7,11 +7,11 @@ import "../../index.js";
7
7
  import { Address } from "viem";
8
8
  //#region src/onchain/accounts/intents/leverage-band.d.ts
9
9
  /** The leverages a position of a given size can be opened at, or moved to. */
10
- interface LeverageBand {
10
+ export interface LeverageBand {
11
11
  readonly min: Leverage;
12
12
  readonly max: Leverage;
13
13
  }
14
- interface LeverageBandProps {
14
+ export interface LeverageBandProps {
15
15
  readonly sdk: OnchainSDK;
16
16
  /** Credit manager the position lives in; every limit is read off it. */
17
17
  readonly creditManager: Address;
@@ -55,6 +55,5 @@ interface LeverageBandProps {
55
55
  * calcLeverageBand({ sdk, creditManager, collateral }) // { min: 1.1, max: 9 }
56
56
  * ```
57
57
  **/
58
- declare function calcLeverageBand({ sdk, creditManager, collateral, targetHF, position }: LeverageBandProps): LeverageBand | undefined;
59
- //#endregion
60
- export { LeverageBand, LeverageBandProps, calcLeverageBand };
58
+ export declare function calcLeverageBand({ sdk, creditManager, collateral, targetHF, position }: LeverageBandProps): LeverageBand | undefined;
59
+ //#endregion
@@ -13,17 +13,17 @@ import { Address } from "viem";
13
13
  * and `D = C · (L − 1)`.
14
14
  */
15
15
  /** Debt and collateral of an account, both priced in the underlying. */
16
- interface Position {
16
+ export interface Position {
17
17
  debt: bigint;
18
18
  collateral: bigint;
19
19
  }
20
20
  /** Facade `debtLimits`: a non-zero debt must sit in `[minDebt, maxDebt]`. */
21
- interface DebtLimits {
21
+ export interface DebtLimits {
22
22
  minDebt: bigint;
23
23
  maxDebt: bigint;
24
24
  }
25
25
  /** Debt that realises `leverage` on `collateral`: `D = C · (L − 1)`. */
26
- declare function debtForLeverage(collateral: bigint, leverage: bigint): bigint;
26
+ export declare function debtForLeverage(collateral: bigint, leverage: bigint): bigint;
27
27
  /**
28
28
  * Debt change that keeps leverage fixed while collateral moves by
29
29
  * `collateralDelta`: `dD = D0 · dC / C0`.
@@ -31,7 +31,7 @@ declare function debtForLeverage(collateral: bigint, leverage: bigint): bigint;
31
31
  * Computed on the ratio directly rather than by recovering `L` and reapplying
32
32
  * it, so no rounding is introduced on the way.
33
33
  */
34
- declare function proportionalDebt(position: Position, collateralDelta: bigint): bigint;
34
+ export declare function proportionalDebt(position: Position, collateralDelta: bigint): bigint;
35
35
  /**
36
36
  * Largest withdrawal (in underlying) that {@link proportionalDebt} can still
37
37
  * pay for: the repayment it implies leaves debt at or above `minDebt` plus
@@ -41,9 +41,9 @@ declare function proportionalDebt(position: Position, collateralDelta: bigint):
41
41
  *
42
42
  * Solves `floor(D0 · W / C0) ≤ D0 − minDebt − margin` for `W`.
43
43
  */
44
- declare function maxProportionalWithdrawal(position: Position, debtLimits: DebtLimits): bigint;
44
+ export declare function maxProportionalWithdrawal(position: Position, debtLimits: DebtLimits): bigint;
45
45
  /** Total leverage cannot drop below 1x — that would be negative debt. */
46
- declare function assertLeverageAtLeastOne(leverage: bigint): void;
46
+ export declare function assertLeverageAtLeastOne(leverage: bigint): void;
47
47
  interface AssertDebtLimitsOptions extends OperationLimitOptions {
48
48
  allowZero?: boolean;
49
49
  maxBorrowAmount?: MaxBorrowAmount;
@@ -53,6 +53,6 @@ interface AssertDebtLimitsOptions extends OperationLimitOptions {
53
53
  * `[minDebt, maxDebt]`. Zero is fine only `allowZero`-ing it: an adjustment
54
54
  * may end owing nothing, an opening may not.
55
55
  */
56
- declare function assertDebtLimits(sdk: OnchainSDK, debt: bigint, debtLimits: DebtLimits, underlying: Address, options?: AssertDebtLimitsOptions): void;
56
+ export declare function assertDebtLimits(sdk: OnchainSDK, debt: bigint, debtLimits: DebtLimits, underlying: Address, options?: AssertDebtLimitsOptions): void;
57
57
  //#endregion
58
- export { DebtLimits, Position, assertDebtLimits, assertLeverageAtLeastOne, debtForLeverage, maxProportionalWithdrawal, proportionalDebt };
58
+ export {};
@@ -2,7 +2,7 @@ import { OnchainSDK } from "../../OnchainSDK.js";
2
2
  import "../../index.js";
3
3
  import { Address } from "viem";
4
4
  //#region src/onchain/accounts/intents/maxBorrow.d.ts
5
- interface MaxBorrowProps {
5
+ export interface MaxBorrowProps {
6
6
  sdk: OnchainSDK;
7
7
  /** Credit manager the loan would be taken in. */
8
8
  creditManager: Address;
@@ -51,6 +51,5 @@ interface MaxBorrowProps {
51
51
  * shape exists at any size — a collateral that backs nothing at safe prices, a
52
52
  * market with nothing left to lend, and a manager the SDK does not hold yet
53
53
  **/
54
- declare function maxBorrow(props: MaxBorrowProps): bigint;
55
- //#endregion
56
- export { MaxBorrowProps, maxBorrow };
54
+ export declare function maxBorrow(props: MaxBorrowProps): bigint;
55
+ //#endregion
@@ -3,7 +3,7 @@ import { CreditAccountSlice } from "./types.js";
3
3
  import "../../index.js";
4
4
  import { Address } from "viem";
5
5
  //#region src/onchain/accounts/intents/maxWithdrawCollateral.d.ts
6
- interface MaxWithdrawCollateralProps {
6
+ export interface MaxWithdrawCollateralProps {
7
7
  creditAccount: CreditAccountSlice;
8
8
  sdk: OnchainSDK;
9
9
  /** Collateral to withdraw. */
@@ -29,6 +29,5 @@ interface MaxWithdrawCollateralProps {
29
29
  * including when the account is already below `targetHF`, or the target or the
30
30
  * underlying has no price
31
31
  **/
32
- declare function maxWithdrawCollateral(props: MaxWithdrawCollateralProps): bigint;
33
- //#endregion
34
- export { MaxWithdrawCollateralProps, maxWithdrawCollateral };
32
+ export declare function maxWithdrawCollateral(props: MaxWithdrawCollateralProps): bigint;
33
+ //#endregion
@@ -9,7 +9,7 @@ import "../../index.js";
9
9
  import { Address } from "viem";
10
10
  //#region src/onchain/accounts/intents/open-strategy.d.ts
11
11
  /** Opening an account and putting a position on it in one transaction. */
12
- interface OpenStrategyProps {
12
+ export interface OpenStrategyProps {
13
13
  sdk: OnchainSDK;
14
14
  /** Credit manager to open the account in. */
15
15
  creditManager: Address;
@@ -45,7 +45,7 @@ interface OpenStrategyProps {
45
45
  * hands back expected and floor balances from a single call, and `openCA` wants
46
46
  * both `minQuota` and `averageQuota`, so there is nothing to gain by dropping one.
47
47
  */
48
- interface OpenStrategyState extends Omit<AccountProjection, "assets" | "quotas">, SimulationPrices {
48
+ export interface OpenStrategyState extends Omit<AccountProjection, "assets" | "quotas">, SimulationPrices {
49
49
  /** Expected post-open balances. */
50
50
  averageAssets: TokenAmount[];
51
51
  /** Floor post-open balances after slippage. */
@@ -84,6 +84,5 @@ interface OpenStrategyState extends Omit<AccountProjection, "assets" | "quotas">
84
84
  * no operation list — the caller passes the numbers and calls straight to
85
85
  * `sdk.accounts.openCA`.
86
86
  */
87
- declare function buildOpenStrategyState(props: OpenStrategyProps): Promise<OpenStrategyState>;
88
- //#endregion
89
- export { OpenStrategyProps, OpenStrategyState, buildOpenStrategyState };
87
+ export declare function buildOpenStrategyState(props: OpenStrategyProps): Promise<OpenStrategyState>;
88
+ //#endregion