@gearbox-protocol/sdk 17.12.2 → 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 (899) 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/index.js +3 -0
  15. package/dist/cjs/onchain/accounts/intents/index.js +1 -0
  16. package/dist/cjs/onchain/accounts/intents/operations.js +1 -1
  17. package/dist/cjs/onchain/accounts/intents/plan.js +21 -0
  18. package/dist/cjs/onchain/accounts/intents/realize.js +29 -7
  19. package/dist/cjs/onchain/accounts/intents/resolveQuotaUpdate.js +149 -0
  20. package/dist/cjs/onchain/accounts/intents/testing/sdk-mock.js +1 -0
  21. package/dist/cjs/onchain/accounts/intents/tests/update-quota.fixtures.js +102 -0
  22. package/dist/cjs/onchain/accounts/intents/utils/index.js +1 -0
  23. package/dist/cjs/onchain/accounts/intents/utils/quotas-for-update.js +28 -10
  24. package/dist/cjs/onchain/accounts/liquidations/LiquidationsService.js +175 -5
  25. package/dist/cjs/onchain/accounts/liquidations/MultichainLiquidationsService.js +28 -0
  26. package/dist/cjs/onchain/accounts/liquidations/constants.js +1 -1
  27. package/dist/cjs/onchain/accounts/liquidations/index.js +3 -0
  28. package/dist/cjs/onchain/accounts/liquidations/partialLiquidation.js +70 -0
  29. package/dist/cjs/onchain/base/TokensMeta.js +15 -0
  30. package/dist/cjs/onchain/constants/index.js +1 -0
  31. package/dist/cjs/onchain/constants/math.js +6 -0
  32. package/dist/cjs/onchain/index.js +15 -1
  33. package/dist/cjs/onchain/market/credit/CreditSuite.js +0 -60
  34. package/dist/cjs/onchain/market/credit/collateralUtils.js +3 -2
  35. package/dist/cjs/onchain/market/index.js +1 -1
  36. package/dist/cjs/onchain/market/math.js +34 -12
  37. package/dist/cjs/onchain/pools/PoolService.js +1 -0
  38. package/dist/cjs/onchain/positions/PositionsService.js +1 -0
  39. package/dist/cjs/onchain/positions/calcHealthFactor.js +1 -1
  40. package/dist/cjs/onchain/preview/preview/CreditAccountState.js +4 -2
  41. package/dist/cjs/onchain/validation/bundles/checkCreditOperation.js +2 -0
  42. package/dist/cjs/onchain/validation/bundles/checkLiquidationEligibility.js +8 -1
  43. package/dist/cjs/onchain/validation/bundles/checkLiquidationFunding.js +2 -1
  44. package/dist/cjs/onchain/validation/bundles/checkQuotaUpdates.js +45 -0
  45. package/dist/cjs/onchain/validation/bundles/index.js +2 -0
  46. package/dist/cjs/onchain/validation/checkLiquidation.js +2 -1
  47. package/dist/cjs/onchain/validation/checks/checkMaxQuota.js +18 -0
  48. package/dist/cjs/onchain/validation/checks/checkPartiallyLiquidatable.js +13 -0
  49. package/dist/cjs/onchain/validation/checks/checkQuotaActive.js +10 -0
  50. package/dist/cjs/onchain/validation/checks/checkQuotaChange.js +18 -0
  51. package/dist/cjs/onchain/validation/checks/index.js +8 -0
  52. package/dist/cjs/onchain/validation/index.js +10 -0
  53. package/dist/cjs/sdk/liquidations/LiquidationsNamespace.js +14 -0
  54. package/dist/cjs/sdk/prepare/PrepareApi.js +67 -0
  55. package/dist/cjs/sdk/rewards/merkl-api.js +1 -1
  56. package/dist/cjs/sdk/rewards/turtle-api.js +1 -1
  57. package/dist/esm/dev/index.js +2 -1
  58. package/dist/esm/dev/lowerHealthFactor.js +31 -0
  59. package/dist/esm/dev/ltUtils.js +3 -2
  60. package/dist/esm/dev/mint/index.js +1 -2
  61. package/dist/esm/model/analytics.schema.js +69 -9
  62. package/dist/esm/model/errors/index.js +3 -3
  63. package/dist/esm/model/errors/liquidation-errors.js +9 -1
  64. package/dist/esm/model/errors/operation-errors.js +25 -1
  65. package/dist/esm/model/index.js +5 -5
  66. package/dist/esm/model/liquidations.schema.js +5 -3
  67. package/dist/esm/model/opportunities.schema.js +1 -1
  68. package/dist/esm/model/positions.schema.js +3 -0
  69. package/dist/esm/offchain/analytics/OffchainAnalyticsPositions.js +9 -1
  70. package/dist/esm/offchain/notices/index.js +1 -2
  71. package/dist/esm/offchain/opportunities/index.js +1 -2
  72. package/dist/esm/offchain/positions/index.js +1 -2
  73. package/dist/esm/onchain/abi/index.js +1 -2
  74. package/dist/esm/onchain/accounts/CreditAccountsServiceV310.js +0 -37
  75. package/dist/esm/onchain/accounts/index.js +2 -1
  76. package/dist/esm/onchain/accounts/intents/index.js +2 -1
  77. package/dist/esm/onchain/accounts/intents/operations.js +1 -1
  78. package/dist/esm/onchain/accounts/intents/plan.js +22 -2
  79. package/dist/esm/onchain/accounts/intents/realize.js +29 -7
  80. package/dist/esm/onchain/accounts/intents/resolveQuotaUpdate.js +148 -0
  81. package/dist/esm/onchain/accounts/intents/testing/sdk-mock.js +1 -0
  82. package/dist/esm/onchain/accounts/intents/tests/update-quota.fixtures.js +92 -0
  83. package/dist/esm/onchain/accounts/intents/utils/index.js +2 -2
  84. package/dist/esm/onchain/accounts/intents/utils/quotas-for-update.js +28 -11
  85. package/dist/esm/onchain/accounts/liquidations/LiquidationsService.js +175 -5
  86. package/dist/esm/onchain/accounts/liquidations/MultichainLiquidationsService.js +28 -0
  87. package/dist/esm/onchain/accounts/liquidations/constants.js +1 -1
  88. package/dist/esm/onchain/accounts/liquidations/index.js +2 -1
  89. package/dist/esm/onchain/accounts/liquidations/partialLiquidation.js +68 -0
  90. package/dist/esm/onchain/base/TokensMeta.js +15 -0
  91. package/dist/esm/onchain/constants/index.js +2 -2
  92. package/dist/esm/onchain/constants/math.js +6 -1
  93. package/dist/esm/onchain/index.js +9 -3
  94. package/dist/esm/onchain/market/adapters/abi/midas/index.js +1 -2
  95. package/dist/esm/onchain/market/credit/CreditSuite.js +2 -62
  96. package/dist/esm/onchain/market/credit/collateralUtils.js +3 -2
  97. package/dist/esm/onchain/market/index.js +2 -2
  98. package/dist/esm/onchain/market/math.js +34 -12
  99. package/dist/esm/onchain/pools/PoolService.js +1 -0
  100. package/dist/esm/onchain/pools/index.js +1 -2
  101. package/dist/esm/onchain/positions/PositionsService.js +1 -0
  102. package/dist/esm/onchain/positions/calcHealthFactor.js +1 -1
  103. package/dist/esm/onchain/preview/preview/CreditAccountState.js +4 -2
  104. package/dist/esm/onchain/utils/internal/index.js +1 -2
  105. package/dist/esm/onchain/validation/bundles/checkCreditOperation.js +2 -0
  106. package/dist/esm/onchain/validation/bundles/checkLiquidationEligibility.js +8 -1
  107. package/dist/esm/onchain/validation/bundles/checkLiquidationFunding.js +2 -1
  108. package/dist/esm/onchain/validation/bundles/checkQuotaUpdates.js +44 -0
  109. package/dist/esm/onchain/validation/bundles/index.js +2 -1
  110. package/dist/esm/onchain/validation/checkLiquidation.js +2 -1
  111. package/dist/esm/onchain/validation/checks/checkMaxQuota.js +17 -0
  112. package/dist/esm/onchain/validation/checks/checkPartiallyLiquidatable.js +12 -0
  113. package/dist/esm/onchain/validation/checks/checkQuotaActive.js +9 -0
  114. package/dist/esm/onchain/validation/checks/checkQuotaChange.js +17 -0
  115. package/dist/esm/onchain/validation/checks/index.js +5 -1
  116. package/dist/esm/onchain/validation/index.js +6 -1
  117. package/dist/esm/permissionless/api/chains/index.js +1 -2
  118. package/dist/esm/permissionless/api/oracles/index.js +1 -2
  119. package/dist/esm/permissionless/api/transactions/index.js +1 -2
  120. package/dist/esm/permissionless/bindings/router/index.js +1 -2
  121. package/dist/esm/permissionless/core/index.js +1 -2
  122. package/dist/esm/plugins/accounts/index.js +1 -2
  123. package/dist/esm/plugins/accounts-counter/index.js +1 -2
  124. package/dist/esm/plugins/bots/abi/index.js +1 -2
  125. package/dist/esm/sdk/analytics/index.js +1 -2
  126. package/dist/esm/sdk/execute/index.js +1 -2
  127. package/dist/esm/sdk/liquidations/LiquidationsNamespace.js +14 -0
  128. package/dist/esm/sdk/liquidations/index.js +1 -2
  129. package/dist/esm/sdk/opportunities/index.js +1 -2
  130. package/dist/esm/sdk/positions/index.js +1 -2
  131. package/dist/esm/sdk/prepare/PrepareApi.js +67 -0
  132. package/dist/esm/sdk/preview/index.js +1 -2
  133. package/dist/esm/sdk/rewards/merkl-api.js +1 -1
  134. package/dist/esm/sdk/rewards/turtle-api.js +1 -1
  135. package/dist/types/abi/310/configure/creditSuiteParams.d.ts +4 -5
  136. package/dist/types/abi/310/configure/iCreditConfigureActions.d.ts +2 -3
  137. package/dist/types/abi/310/configure/iPoolConfigureActions.d.ts +2 -3
  138. package/dist/types/abi/310/configure/iPriceOracleConfigureActions.d.ts +2 -3
  139. package/dist/types/abi/310/crossChainMultisig.d.ts +2 -3
  140. package/dist/types/abi/310/generated.d.ts +15 -16
  141. package/dist/types/abi/310/iBytecodeRepository.d.ts +2 -3
  142. package/dist/types/abi/310/iLinearInterestRateModelV310.d.ts +2 -3
  143. package/dist/types/abi/310/iMarketConfiguratorFactory.d.ts +2 -3
  144. package/dist/types/abi/310/iPriceFeedStore.d.ts +2 -3
  145. package/dist/types/abi/310/iTreasurySplitter.d.ts +2 -3
  146. package/dist/types/abi/310/instanceManager.d.ts +2 -3
  147. package/dist/types/abi/AccountMigrator.d.ts +2 -3
  148. package/dist/types/abi/ILiquidationCompressorV313.d.ts +2 -3
  149. package/dist/types/abi/IWithdrawalCompressorV310.d.ts +2 -3
  150. package/dist/types/abi/IWithdrawalCompressorV311.d.ts +2 -3
  151. package/dist/types/abi/IWithdrawalCompressorV313.d.ts +2 -3
  152. package/dist/types/abi/compressors/creditAccountCompressor.d.ts +2 -3
  153. package/dist/types/abi/compressors/creditSuiteCompressor.d.ts +2 -3
  154. package/dist/types/abi/compressors/defillamaCompressor.d.ts +2 -3
  155. package/dist/types/abi/compressors/gaugeCompressor.d.ts +2 -3
  156. package/dist/types/abi/compressors/liquidationCompressor.d.ts +2 -3
  157. package/dist/types/abi/compressors/marketCompressor.d.ts +2 -3
  158. package/dist/types/abi/compressors/peripheryCompressor.d.ts +2 -3
  159. package/dist/types/abi/compressors/priceFeedCompressor.d.ts +2 -3
  160. package/dist/types/abi/compressors/rewardsCompressor.d.ts +2 -3
  161. package/dist/types/abi/compressors/rwaCompressor.d.ts +2 -3
  162. package/dist/types/abi/compressors/subcompressors/liquidation/midasLiquidationSubcompressor.d.ts +2 -3
  163. package/dist/types/abi/compressors/subcompressors/liquidation/securitizeLiquidationSubcompressor.d.ts +2 -3
  164. package/dist/types/abi/compressors/subcompressors/rwa/onDemandRWAUnderlyingSubcompressor.d.ts +2 -3
  165. package/dist/types/abi/compressors/subcompressors/rwa/securitizeRWAFactorySubcompressor.d.ts +2 -3
  166. package/dist/types/abi/compressors/subcompressors/withdrawal/infinifiWithdrawalSubcompressor.d.ts +2 -3
  167. package/dist/types/abi/compressors/subcompressors/withdrawal/kelpLRTWithdrawalSubcompressor.d.ts +2 -3
  168. package/dist/types/abi/compressors/subcompressors/withdrawal/mellowFlexibleDepositSubcompressor.d.ts +2 -3
  169. package/dist/types/abi/compressors/subcompressors/withdrawal/mellowFlexibleRedeemSubcompressor.d.ts +2 -3
  170. package/dist/types/abi/compressors/subcompressors/withdrawal/mellowWithdrawalSubcompressor.d.ts +2 -3
  171. package/dist/types/abi/compressors/subcompressors/withdrawal/midasWithdrawalSubcompressor.d.ts +2 -3
  172. package/dist/types/abi/compressors/subcompressors/withdrawal/securitizeRedemptionSubcompressor.d.ts +2 -3
  173. package/dist/types/abi/compressors/subcompressors/withdrawal/upshiftWithdrawalSubcompressor.d.ts +2 -3
  174. package/dist/types/abi/compressors/tokenCompressor.d.ts +2 -3
  175. package/dist/types/abi/compressors/withdrawalCompressor.d.ts +2 -3
  176. package/dist/types/abi/errors.d.ts +11 -12
  177. package/dist/types/abi/governance/batchesChain.d.ts +2 -3
  178. package/dist/types/abi/governance/governor.d.ts +2 -3
  179. package/dist/types/abi/governance/iTimeLock.d.ts +2 -3
  180. package/dist/types/abi/helpers/redemptionLogger.d.ts +2 -3
  181. package/dist/types/abi/iAirdropDistributor.d.ts +2 -3
  182. package/dist/types/abi/iBaseRewardPool.d.ts +2 -3
  183. package/dist/types/abi/iCurvePool.d.ts +2 -3
  184. package/dist/types/abi/iDefaultAccountFactoryV3.d.ts +2 -3
  185. package/dist/types/abi/iDegenNFTV2.d.ts +2 -3
  186. package/dist/types/abi/iERC20.d.ts +2 -3
  187. package/dist/types/abi/iERC20Permit.d.ts +2 -3
  188. package/dist/types/abi/iERC20Zapper.d.ts +2 -3
  189. package/dist/types/abi/iERC20ZapperDeposits.d.ts +2 -3
  190. package/dist/types/abi/iETHZapper.d.ts +2 -3
  191. package/dist/types/abi/iETHZapperDeposits.d.ts +2 -3
  192. package/dist/types/abi/iExpirable.d.ts +2 -3
  193. package/dist/types/abi/iFarmingPool.d.ts +2 -3
  194. package/dist/types/abi/iInterestRateModel.d.ts +2 -3
  195. package/dist/types/abi/iMulticall3.d.ts +2 -3
  196. package/dist/types/abi/iOffchainOracle.d.ts +2 -3
  197. package/dist/types/abi/iPausable.d.ts +2 -3
  198. package/dist/types/abi/iPhantomToken.d.ts +2 -3
  199. package/dist/types/abi/iPriceFeed.d.ts +2 -3
  200. package/dist/types/abi/iRedemptionLoggerV310.d.ts +2 -3
  201. package/dist/types/abi/iStateSerializer.d.ts +2 -3
  202. package/dist/types/abi/iUpdatablePriceFeed.d.ts +2 -3
  203. package/dist/types/abi/iVersion.d.ts +2 -3
  204. package/dist/types/abi/iZapper.d.ts +2 -3
  205. package/dist/types/abi/ierc4626Adapter.d.ts +2 -3
  206. package/dist/types/abi/mellow.d.ts +6 -7
  207. package/dist/types/abi/migration.d.ts +3 -4
  208. package/dist/types/abi/router/balancerV2Worker.d.ts +2 -3
  209. package/dist/types/abi/router/balancerV3Worker.d.ts +2 -3
  210. package/dist/types/abi/router/balancerV3WrapperWorker.d.ts +2 -3
  211. package/dist/types/abi/router/camelotV3Worker.d.ts +2 -3
  212. package/dist/types/abi/router/convexWorker.d.ts +2 -3
  213. package/dist/types/abi/router/curveWorker.d.ts +2 -3
  214. package/dist/types/abi/router/daiUsdsWorker.d.ts +2 -3
  215. package/dist/types/abi/router/equalizerRouterWorker.d.ts +2 -3
  216. package/dist/types/abi/router/erc4626Worker.d.ts +2 -3
  217. package/dist/types/abi/router/fluidDexWorker.d.ts +2 -3
  218. package/dist/types/abi/router/gearboxRouter.d.ts +2 -3
  219. package/dist/types/abi/router/infinifiWorker.d.ts +2 -3
  220. package/dist/types/abi/router/infraredVaultWorker.d.ts +2 -3
  221. package/dist/types/abi/router/kelpLRTDepositPoolWorker.d.ts +2 -3
  222. package/dist/types/abi/router/kodiakWorker.d.ts +2 -3
  223. package/dist/types/abi/router/lidoWorker.d.ts +2 -3
  224. package/dist/types/abi/router/mellow4626Worker.d.ts +2 -3
  225. package/dist/types/abi/router/mellowDVVWorker.d.ts +2 -3
  226. package/dist/types/abi/router/mellowVaultWorker.d.ts +2 -3
  227. package/dist/types/abi/router/midasWorker.d.ts +2 -3
  228. package/dist/types/abi/router/pendleRouterWorker.d.ts +2 -3
  229. package/dist/types/abi/router/routingManager.d.ts +2 -3
  230. package/dist/types/abi/router/securitizeOnrampWorker.d.ts +2 -3
  231. package/dist/types/abi/router/stakingRewardsWorker.d.ts +2 -3
  232. package/dist/types/abi/router/traderJoeWorker.d.ts +2 -3
  233. package/dist/types/abi/router/uniswapV2Worker.d.ts +2 -3
  234. package/dist/types/abi/router/uniswapV3Worker.d.ts +2 -3
  235. package/dist/types/abi/router/uniswapV4Worker.d.ts +2 -3
  236. package/dist/types/abi/router/upshiftWorker.d.ts +2 -3
  237. package/dist/types/abi/router/velodromeV2Worker.d.ts +2 -3
  238. package/dist/types/abi/router/wstETHWorker.d.ts +2 -3
  239. package/dist/types/abi/router/yearnV2Worker.d.ts +2 -3
  240. package/dist/types/abi/rwa/iDSRegistryService.d.ts +2 -3
  241. package/dist/types/abi/rwa/iDSToken.d.ts +2 -3
  242. package/dist/types/abi/rwa/iMidasAccessControl.d.ts +2 -3
  243. package/dist/types/abi/rwa/iMidasDegenNFT.d.ts +2 -3
  244. package/dist/types/abi/rwa/iMidasLiquidatorV311.d.ts +2 -3
  245. package/dist/types/abi/rwa/iRWACompressor.d.ts +2 -3
  246. package/dist/types/abi/rwa/iRWAFactory.d.ts +2 -3
  247. package/dist/types/abi/rwa/iRWAGateway.d.ts +2 -3
  248. package/dist/types/abi/rwa/iRWAUnderlying.d.ts +2 -3
  249. package/dist/types/abi/rwa/iSecuritizeDegenNFT.d.ts +2 -3
  250. package/dist/types/abi/rwa/iSecuritizeLiquidatorV311.d.ts +2 -3
  251. package/dist/types/abi/rwa/iSecuritizeRWAFactory.d.ts +2 -3
  252. package/dist/types/dev/AccountOpener.d.ts +9 -9
  253. package/dist/types/dev/EthCallSpy.d.ts +6 -7
  254. package/dist/types/dev/RevolverTransport.d.ts +12 -12
  255. package/dist/types/dev/abi.d.ts +6 -7
  256. package/dist/types/dev/calcLiquidatableLTs.d.ts +2 -3
  257. package/dist/types/dev/claimFromFaucet.d.ts +2 -2
  258. package/dist/types/dev/create2.d.ts +10 -11
  259. package/dist/types/dev/createAnvilClient.d.ts +13 -14
  260. package/dist/types/dev/detectChain.d.ts +2 -3
  261. package/dist/types/dev/index.d.ts +2 -1
  262. package/dist/types/dev/isOutOfSyncError.d.ts +2 -3
  263. package/dist/types/dev/isRateLimitError.d.ts +2 -3
  264. package/dist/types/dev/isTransientError.d.ts +2 -3
  265. package/dist/types/dev/kycUtils.d.ts +13 -14
  266. package/dist/types/dev/logSplitterTransport.d.ts +10 -10
  267. package/dist/types/dev/lowerHealthFactor.d.ts +34 -0
  268. package/dist/types/dev/ltUtils.d.ts +3 -4
  269. package/dist/types/dev/midasUtils.d.ts +8 -9
  270. package/dist/types/dev/migrateFaucet.d.ts +2 -3
  271. package/dist/types/dev/mint/AbstractMinter.d.ts +2 -3
  272. package/dist/types/dev/mint/DealMinter.d.ts +2 -3
  273. package/dist/types/dev/mint/DirectMinter.d.ts +2 -3
  274. package/dist/types/dev/mint/FallbackMinter.d.ts +2 -3
  275. package/dist/types/dev/mint/TransferMinter.d.ts +2 -3
  276. package/dist/types/dev/mint/factory.d.ts +2 -3
  277. package/dist/types/dev/mint/types.d.ts +2 -3
  278. package/dist/types/dev/mode-parity/compareOpportunities.d.ts +8 -8
  279. package/dist/types/dev/mode-parity/comparePositions.d.ts +12 -13
  280. package/dist/types/dev/mode-parity/compareRules.d.ts +6 -7
  281. package/dist/types/dev/mode-parity/fieldDiff.d.ts +29 -30
  282. package/dist/types/dev/mode-parity/scriptUtils.d.ts +18 -19
  283. package/dist/types/dev/providers.d.ts +10 -11
  284. package/dist/types/dev/replaceStorage.d.ts +3 -4
  285. package/dist/types/dev/resilientTransport.d.ts +6 -7
  286. package/dist/types/dev/securitizeUtils.d.ts +6 -6
  287. package/dist/types/dev/transports.d.ts +2 -3
  288. package/dist/types/dev/types.d.ts +4 -5
  289. package/dist/types/dev/verifyTestnet.d.ts +4 -5
  290. package/dist/types/dev/withdrawalAbi.d.ts +9 -10
  291. package/dist/types/dev/withdrawalUtils.d.ts +3 -4
  292. package/dist/types/history/assembleOperations.d.ts +3 -4
  293. package/dist/types/history/classifyMulticallOperations.d.ts +3 -4
  294. package/dist/types/history/mapOperations.d.ts +3 -4
  295. package/dist/types/history/parseCreditAccountTransaction.d.ts +3 -4
  296. package/dist/types/history/populateContractsRegister.d.ts +4 -5
  297. package/dist/types/history/toLegacyOperation.d.ts +6 -7
  298. package/dist/types/history/trace/errors.d.ts +6 -7
  299. package/dist/types/history/trace/extractAdapterCallTraces.d.ts +2 -3
  300. package/dist/types/history/trace/extractTransfers.d.ts +4 -4
  301. package/dist/types/history/trace/findFacadeCalls.d.ts +2 -3
  302. package/dist/types/history/trace/types.d.ts +3 -4
  303. package/dist/types/history/types.d.ts +13 -13
  304. package/dist/types/model/analytics.d.ts +66 -13
  305. package/dist/types/model/analytics.schema.d.ts +182 -39
  306. package/dist/types/model/charts.d.ts +29 -29
  307. package/dist/types/model/charts.schema.d.ts +16 -17
  308. package/dist/types/model/compare.schema.d.ts +9 -10
  309. package/dist/types/model/curators.d.ts +3 -4
  310. package/dist/types/model/curators.schema.d.ts +3 -4
  311. package/dist/types/model/delayed-intent.schema.d.ts +2 -3
  312. package/dist/types/model/delayed-intents.d.ts +9 -10
  313. package/dist/types/model/errors/base.d.ts +2 -3
  314. package/dist/types/model/errors/index.d.ts +3 -3
  315. package/dist/types/model/errors/liquidation-errors.d.ts +20 -8
  316. package/dist/types/model/errors/operation-errors.d.ts +76 -39
  317. package/dist/types/model/errors/oracle-errors.d.ts +3 -4
  318. package/dist/types/model/errors/prepare-errors.d.ts +21 -22
  319. package/dist/types/model/errors/preview-errors.d.ts +9 -10
  320. package/dist/types/model/filters.d.ts +6 -7
  321. package/dist/types/model/filters.schema.d.ts +5 -6
  322. package/dist/types/model/index.d.ts +6 -6
  323. package/dist/types/model/liquidations.d.ts +37 -18
  324. package/dist/types/model/liquidations.schema.d.ts +12 -10
  325. package/dist/types/model/notices.d.ts +4 -5
  326. package/dist/types/model/notices.schema.d.ts +3 -4
  327. package/dist/types/model/opportunities.d.ts +32 -33
  328. package/dist/types/model/opportunities.schema.d.ts +26 -27
  329. package/dist/types/model/positions.d.ts +34 -30
  330. package/dist/types/model/positions.schema.d.ts +102 -23
  331. package/dist/types/model/previews.d.ts +21 -21
  332. package/dist/types/model/primitives.d.ts +12 -13
  333. package/dist/types/model/primitives.schema.d.ts +11 -12
  334. package/dist/types/model/response.d.ts +8 -9
  335. package/dist/types/model/response.schema.d.ts +7 -8
  336. package/dist/types/model/result.d.ts +8 -9
  337. package/dist/types/model/rewards.d.ts +4 -5
  338. package/dist/types/model/rwa.d.ts +20 -21
  339. package/dist/types/model/rwa.schema.d.ts +3 -4
  340. package/dist/types/model/withdrawals.d.ts +5 -6
  341. package/dist/types/model/withdrawals.schema.d.ts +5 -6
  342. package/dist/types/offchain/AbstractOffchainNamespace.d.ts +4 -5
  343. package/dist/types/offchain/GearboxAPI.d.ts +2 -3
  344. package/dist/types/offchain/analytics/OffchainAnalytics.d.ts +2 -3
  345. package/dist/types/offchain/analytics/OffchainAnalyticsPositions.d.ts +6 -4
  346. package/dist/types/offchain/analytics/types.d.ts +17 -5
  347. package/dist/types/offchain/errors/OffchainInvalidJsonError.d.ts +2 -3
  348. package/dist/types/offchain/errors/OffchainNotConfiguredError.d.ts +2 -3
  349. package/dist/types/offchain/errors/OffchainNotImplementedError.d.ts +2 -3
  350. package/dist/types/offchain/errors/OffchainRequestFailedError.d.ts +2 -3
  351. package/dist/types/offchain/errors/OffchainStatusError.d.ts +2 -3
  352. package/dist/types/offchain/errors/OffchainTransportError.d.ts +3 -4
  353. package/dist/types/offchain/errors/OffchainValidationError.d.ts +2 -3
  354. package/dist/types/offchain/errors/backendMessage.d.ts +2 -3
  355. package/dist/types/offchain/errors/errorCause.d.ts +3 -4
  356. package/dist/types/offchain/errors/readResponseBody.d.ts +2 -3
  357. package/dist/types/offchain/notices/OffchainNotices.d.ts +2 -3
  358. package/dist/types/offchain/opportunities/OffchainOpportunities.d.ts +2 -3
  359. package/dist/types/offchain/opportunities/types.d.ts +3 -4
  360. package/dist/types/offchain/positions/OffchainPositions.d.ts +2 -3
  361. package/dist/types/offchain/positions/types.d.ts +3 -4
  362. package/dist/types/offchain/types.d.ts +2 -3
  363. package/dist/types/onchain/MultichainSDK.d.ts +7 -8
  364. package/dist/types/onchain/OnchainSDK.d.ts +8 -9
  365. package/dist/types/onchain/abi/oracles.d.ts +27 -28
  366. package/dist/types/onchain/accounts/CreditAccountsServiceV310.d.ts +3 -12
  367. package/dist/types/onchain/accounts/bots/AccountBotsService.d.ts +2 -3
  368. package/dist/types/onchain/accounts/bots/PeripheryCompressorV310Contract.d.ts +2 -2
  369. package/dist/types/onchain/accounts/bots/abi.d.ts +2 -3
  370. package/dist/types/onchain/accounts/bots/types.d.ts +13 -14
  371. package/dist/types/onchain/accounts/credit-account-compressor/CreditAccountCompressor.d.ts +2 -3
  372. package/dist/types/onchain/accounts/credit-account-compressor/CreditAccountCompressorV310Contract.d.ts +2 -2
  373. package/dist/types/onchain/accounts/credit-account-compressor/types.d.ts +11 -12
  374. package/dist/types/onchain/accounts/index.d.ts +5 -4
  375. package/dist/types/onchain/accounts/intents/borrow.d.ts +6 -7
  376. package/dist/types/onchain/accounts/intents/collateral-valuation.d.ts +4 -5
  377. package/dist/types/onchain/accounts/intents/guards.d.ts +7 -7
  378. package/dist/types/onchain/accounts/intents/index.d.ts +6 -6
  379. package/dist/types/onchain/accounts/intents/leverage-band.d.ts +4 -5
  380. package/dist/types/onchain/accounts/intents/math.d.ts +8 -8
  381. package/dist/types/onchain/accounts/intents/maxBorrow.d.ts +3 -4
  382. package/dist/types/onchain/accounts/intents/maxWithdrawCollateral.d.ts +3 -4
  383. package/dist/types/onchain/accounts/intents/open-strategy.d.ts +4 -5
  384. package/dist/types/onchain/accounts/intents/operations.d.ts +34 -28
  385. package/dist/types/onchain/accounts/intents/plan.d.ts +35 -19
  386. package/dist/types/onchain/accounts/intents/realize.d.ts +4 -5
  387. package/dist/types/onchain/accounts/intents/resolveQuotaUpdate.d.ts +38 -0
  388. package/dist/types/onchain/accounts/intents/strategyLimits.d.ts +2 -2
  389. package/dist/types/onchain/accounts/intents/tail.d.ts +4 -4
  390. package/dist/types/onchain/accounts/intents/testing/delayed.d.ts +2 -2
  391. package/dist/types/onchain/accounts/intents/testing/expect.d.ts +2 -2
  392. package/dist/types/onchain/accounts/intents/testing/market.d.ts +6 -6
  393. package/dist/types/onchain/accounts/intents/testing/sdk-mock.d.ts +3 -3
  394. package/dist/types/onchain/accounts/intents/tests/add-collateral.fixtures.d.ts +15 -16
  395. package/dist/types/onchain/accounts/intents/tests/adjust-leverage.fixtures.d.ts +22 -23
  396. package/dist/types/onchain/accounts/intents/tests/deposit.fixtures.d.ts +24 -25
  397. package/dist/types/onchain/accounts/intents/tests/finish-decrease-leverage.fixtures.d.ts +21 -21
  398. package/dist/types/onchain/accounts/intents/tests/finish-withdraw.fixtures.d.ts +30 -31
  399. package/dist/types/onchain/accounts/intents/tests/open-strategy.fixtures.d.ts +16 -17
  400. package/dist/types/onchain/accounts/intents/tests/update-quota.fixtures.d.ts +48 -0
  401. package/dist/types/onchain/accounts/intents/tests/withdraw-asset.fixtures.d.ts +16 -17
  402. package/dist/types/onchain/accounts/intents/tests/withdraw.fixtures.d.ts +26 -27
  403. package/dist/types/onchain/accounts/intents/types.d.ts +46 -30
  404. package/dist/types/onchain/accounts/intents/utils/adjust-state-to-snapshot.d.ts +2 -3
  405. package/dist/types/onchain/accounts/intents/utils/assemble-operation-calls.d.ts +2 -2
  406. package/dist/types/onchain/accounts/intents/utils/borrowed-amount-plus-interest-and-fees.d.ts +2 -3
  407. package/dist/types/onchain/accounts/intents/utils/common.d.ts +5 -6
  408. package/dist/types/onchain/accounts/intents/utils/credit-account-slice.d.ts +4 -5
  409. package/dist/types/onchain/accounts/intents/utils/index.d.ts +2 -2
  410. package/dist/types/onchain/accounts/intents/utils/ledger.d.ts +3 -4
  411. package/dist/types/onchain/accounts/intents/utils/pick-token.d.ts +6 -7
  412. package/dist/types/onchain/accounts/intents/utils/price-impact.d.ts +5 -6
  413. package/dist/types/onchain/accounts/intents/utils/quotas-for-update.d.ts +27 -9
  414. package/dist/types/onchain/accounts/intents/utils/router-path.d.ts +6 -7
  415. package/dist/types/onchain/accounts/intents/view.d.ts +2 -3
  416. package/dist/types/onchain/accounts/intents/withdraw-limits.d.ts +5 -6
  417. package/dist/types/onchain/accounts/liquidations/LiquidationsService.d.ts +50 -4
  418. package/dist/types/onchain/accounts/liquidations/MultichainLiquidationsService.d.ts +13 -4
  419. package/dist/types/onchain/accounts/liquidations/constants.d.ts +4 -5
  420. package/dist/types/onchain/accounts/liquidations/index.d.ts +3 -2
  421. package/dist/types/onchain/accounts/liquidations/partialLiquidation.d.ts +88 -0
  422. package/dist/types/onchain/accounts/liquidations/skipLiquidatableAccount.d.ts +2 -3
  423. package/dist/types/onchain/accounts/liquidations/types.d.ts +146 -21
  424. package/dist/types/onchain/accounts/multicall-utils.d.ts +4 -5
  425. package/dist/types/onchain/accounts/quota-utils.d.ts +11 -11
  426. package/dist/types/onchain/accounts/types.d.ts +18 -95
  427. package/dist/types/onchain/accounts/withdrawal-compressor/AbstractWithdrawalCompressorContract.d.ts +7 -7
  428. package/dist/types/onchain/accounts/withdrawal-compressor/RedemptionLoggerV310Contract.d.ts +2 -2
  429. package/dist/types/onchain/accounts/withdrawal-compressor/WithdrawalCompressorV310Contract.d.ts +2 -2
  430. package/dist/types/onchain/accounts/withdrawal-compressor/WithdrawalCompressorV311Contract.d.ts +2 -2
  431. package/dist/types/onchain/accounts/withdrawal-compressor/WithdrawalCompressorV313Contract.d.ts +2 -2
  432. package/dist/types/onchain/accounts/withdrawal-compressor/addresses.d.ts +4 -5
  433. package/dist/types/onchain/accounts/withdrawal-compressor/createRedemptionLogger.d.ts +2 -3
  434. package/dist/types/onchain/accounts/withdrawal-compressor/createWithdrawalCompressor.d.ts +2 -3
  435. package/dist/types/onchain/accounts/withdrawal-compressor/intent-codec.d.ts +5 -6
  436. package/dist/types/onchain/accounts/withdrawal-compressor/types.d.ts +16 -17
  437. package/dist/types/onchain/base/BaseContract.d.ts +5 -6
  438. package/dist/types/onchain/base/ChainContractsRegister.d.ts +3 -4
  439. package/dist/types/onchain/base/Construct.d.ts +3 -4
  440. package/dist/types/onchain/base/MultichainConstruct.d.ts +7 -8
  441. package/dist/types/onchain/base/SDKConstruct.d.ts +2 -3
  442. package/dist/types/onchain/base/TokensMeta.d.ts +13 -6
  443. package/dist/types/onchain/base/errors.d.ts +2 -3
  444. package/dist/types/onchain/base/token-types.d.ts +18 -18
  445. package/dist/types/onchain/base/types.d.ts +37 -38
  446. package/dist/types/onchain/chain/chains.d.ts +20 -21
  447. package/dist/types/onchain/chain/detectNetwork.d.ts +2 -3
  448. package/dist/types/onchain/constants/address-provider.d.ts +36 -37
  449. package/dist/types/onchain/constants/addresses.d.ts +5 -6
  450. package/dist/types/onchain/constants/bot-permissions.d.ts +3 -4
  451. package/dist/types/onchain/constants/index.d.ts +2 -2
  452. package/dist/types/onchain/constants/math.d.ts +25 -21
  453. package/dist/types/onchain/constants/networks.d.ts +3 -4
  454. package/dist/types/onchain/constants/periphery.d.ts +3 -4
  455. package/dist/types/onchain/constants/versions.d.ts +5 -6
  456. package/dist/types/onchain/core/AbstractAddressProviderContract.d.ts +2 -3
  457. package/dist/types/onchain/core/AddressProviderV310Contract.d.ts +2 -2
  458. package/dist/types/onchain/core/createAddressProvider.d.ts +3 -4
  459. package/dist/types/onchain/core/errors.d.ts +9 -10
  460. package/dist/types/onchain/core/types.d.ts +4 -5
  461. package/dist/types/onchain/index.d.ts +13 -7
  462. package/dist/types/onchain/market/MarketConfiguratorContract.d.ts +2 -2
  463. package/dist/types/onchain/market/MarketRegister.d.ts +4 -5
  464. package/dist/types/onchain/market/MarketSuite.d.ts +2 -3
  465. package/dist/types/onchain/market/ZapperRegister.d.ts +2 -3
  466. package/dist/types/onchain/market/adapters/abi/actionAbi.d.ts +4 -5
  467. package/dist/types/onchain/market/adapters/abi/adapters/erc4626ReferralAdapter.d.ts +2 -3
  468. package/dist/types/onchain/market/adapters/abi/adapters/iBalancerV3RouterAdapter.d.ts +2 -3
  469. package/dist/types/onchain/market/adapters/abi/adapters/iBalancerV3WrapperAdapter.d.ts +2 -3
  470. package/dist/types/onchain/market/adapters/abi/adapters/iCamelotV3Adapter.d.ts +2 -3
  471. package/dist/types/onchain/market/adapters/abi/adapters/iConvexV1BaseRewardPoolAdapter.d.ts +2 -3
  472. package/dist/types/onchain/market/adapters/abi/adapters/iConvexV1BoosterAdapter.d.ts +2 -3
  473. package/dist/types/onchain/market/adapters/abi/adapters/iCurveV1StableNgAdapter.d.ts +2 -3
  474. package/dist/types/onchain/market/adapters/abi/adapters/iCurveV1_2AssetsAdapter.d.ts +2 -3
  475. package/dist/types/onchain/market/adapters/abi/adapters/iCurveV1_3AssetsAdapter.d.ts +2 -3
  476. package/dist/types/onchain/market/adapters/abi/adapters/iCurveV1_4AssetsAdapter.d.ts +2 -3
  477. package/dist/types/onchain/market/adapters/abi/adapters/iDaiUsdsAdapter.d.ts +2 -3
  478. package/dist/types/onchain/market/adapters/abi/adapters/iFluidDexAdapter.d.ts +2 -3
  479. package/dist/types/onchain/market/adapters/abi/adapters/iInfinifiGatewayAdapter.d.ts +2 -3
  480. package/dist/types/onchain/market/adapters/abi/adapters/iInfinifiUnwindingGateway.d.ts +3 -4
  481. package/dist/types/onchain/market/adapters/abi/adapters/iKelpLrtDepositPool.d.ts +3 -4
  482. package/dist/types/onchain/market/adapters/abi/adapters/iKelpLrtWithdrawalManager.d.ts +3 -4
  483. package/dist/types/onchain/market/adapters/abi/adapters/iLidoV1Adapter.d.ts +2 -3
  484. package/dist/types/onchain/market/adapters/abi/adapters/iMellow4626VaultAdapter.d.ts +2 -3
  485. package/dist/types/onchain/market/adapters/abi/adapters/iMellowClaimerAdapter.d.ts +2 -3
  486. package/dist/types/onchain/market/adapters/abi/adapters/iMellowWrapperAdapter.d.ts +2 -3
  487. package/dist/types/onchain/market/adapters/abi/adapters/iMidasGatewayAdapterV311.d.ts +2 -3
  488. package/dist/types/onchain/market/adapters/abi/adapters/iMidasIssuanceVaultAdapterV310.d.ts +2 -3
  489. package/dist/types/onchain/market/adapters/abi/adapters/iMidasRedemptionVaultAdapterV310.d.ts +3 -4
  490. package/dist/types/onchain/market/adapters/abi/adapters/iPendleRouterAdapter.d.ts +2 -3
  491. package/dist/types/onchain/market/adapters/abi/adapters/iSecuritizeOnRampAdapterV310.d.ts +2 -3
  492. package/dist/types/onchain/market/adapters/abi/adapters/iSecuritizeRedemptionGatewayAdapterV311.d.ts +2 -3
  493. package/dist/types/onchain/market/adapters/abi/adapters/iStakingRewardsAdapter.d.ts +2 -3
  494. package/dist/types/onchain/market/adapters/abi/adapters/iTraderJoeRouterAdapter.d.ts +2 -3
  495. package/dist/types/onchain/market/adapters/abi/adapters/iUniswapV2Adapter.d.ts +2 -3
  496. package/dist/types/onchain/market/adapters/abi/adapters/iUniswapV3Adapter.d.ts +2 -3
  497. package/dist/types/onchain/market/adapters/abi/adapters/iUniswapV4Adapter.d.ts +3 -4
  498. package/dist/types/onchain/market/adapters/abi/adapters/iUpshiftVaultAdapter.d.ts +3 -4
  499. package/dist/types/onchain/market/adapters/abi/adapters/iVelodromeV2RouterAdapter.d.ts +2 -3
  500. package/dist/types/onchain/market/adapters/abi/adapters/iwstEthv1Adapter.d.ts +2 -3
  501. package/dist/types/onchain/market/adapters/abi/adapters/mellowDvvAdapter.d.ts +2 -3
  502. package/dist/types/onchain/market/adapters/abi/conctructorAbi.d.ts +2 -3
  503. package/dist/types/onchain/market/adapters/abi/conctructorAbiPatterns.d.ts +12 -13
  504. package/dist/types/onchain/market/adapters/abi/midas/iMidasGatewayV311.d.ts +2 -3
  505. package/dist/types/onchain/market/adapters/abi/securitize/iBaseOnRamp.d.ts +2 -3
  506. package/dist/types/onchain/market/adapters/abi/securitize/iSecuritizeOnRamp.d.ts +2 -3
  507. package/dist/types/onchain/market/adapters/abi/securitize/iSecuritizeRedemptionGatewayV311.d.ts +2 -3
  508. package/dist/types/onchain/market/adapters/abi/targetContractAbi.d.ts +29 -30
  509. package/dist/types/onchain/market/adapters/abi/utils.d.ts +7 -8
  510. package/dist/types/onchain/market/adapters/contracts/AbstractAdapter.d.ts +4 -5
  511. package/dist/types/onchain/market/adapters/contracts/AbstractCurveAdapter.d.ts +2 -3
  512. package/dist/types/onchain/market/adapters/contracts/AccountMigratorAdapterContract.d.ts +2 -2
  513. package/dist/types/onchain/market/adapters/contracts/BalancerV3RouterAdapterContract.d.ts +4 -4
  514. package/dist/types/onchain/market/adapters/contracts/BalancerV3WrapperAdapterContract.d.ts +2 -2
  515. package/dist/types/onchain/market/adapters/contracts/CamelotV3AdapterContract.d.ts +3 -3
  516. package/dist/types/onchain/market/adapters/contracts/ConvexV1BaseRewardPoolAdapterContract.d.ts +2 -2
  517. package/dist/types/onchain/market/adapters/contracts/ConvexV1BoosterAdapterContract.d.ts +2 -2
  518. package/dist/types/onchain/market/adapters/contracts/Curve2AssetsAdapterContract.d.ts +2 -2
  519. package/dist/types/onchain/market/adapters/contracts/Curve3AssetsAdapterContract.d.ts +2 -2
  520. package/dist/types/onchain/market/adapters/contracts/Curve4AssetsAdapterContract.d.ts +2 -2
  521. package/dist/types/onchain/market/adapters/contracts/CurveV1AdapterStETHContract.d.ts +2 -2
  522. package/dist/types/onchain/market/adapters/contracts/CurveV1StableNGAdapterContract.d.ts +2 -2
  523. package/dist/types/onchain/market/adapters/contracts/DaiUsdsAdapterContract.d.ts +2 -2
  524. package/dist/types/onchain/market/adapters/contracts/ERC4626AdapterContract.d.ts +2 -2
  525. package/dist/types/onchain/market/adapters/contracts/ERC4626ReferralAdapterContract.d.ts +2 -2
  526. package/dist/types/onchain/market/adapters/contracts/FluidDexAdapterContract.d.ts +2 -2
  527. package/dist/types/onchain/market/adapters/contracts/InfinifiGatewayAdapterContract.d.ts +2 -2
  528. package/dist/types/onchain/market/adapters/contracts/InfinifiUnwindingGatewayAdapterContract.d.ts +2 -2
  529. package/dist/types/onchain/market/adapters/contracts/KelpLRTDepositPoolAdapterContract.d.ts +2 -2
  530. package/dist/types/onchain/market/adapters/contracts/KelpLRTWithdrawalManagerAdapterContract.d.ts +2 -2
  531. package/dist/types/onchain/market/adapters/contracts/LidoV1AdapterContract.d.ts +2 -2
  532. package/dist/types/onchain/market/adapters/contracts/MellowClaimerAdapterContract.d.ts +2 -2
  533. package/dist/types/onchain/market/adapters/contracts/MellowDVVAdapterContract.d.ts +2 -2
  534. package/dist/types/onchain/market/adapters/contracts/MellowERC4626VaultAdapterContract.d.ts +2 -2
  535. package/dist/types/onchain/market/adapters/contracts/MellowWrapperAdapterContract.d.ts +2 -2
  536. package/dist/types/onchain/market/adapters/contracts/MidasGatewayAdapterContract.d.ts +2 -2
  537. package/dist/types/onchain/market/adapters/contracts/MidasIssuanceVaultAdapterContract.d.ts +2 -2
  538. package/dist/types/onchain/market/adapters/contracts/MidasRedemptionVaultAdapterContract.d.ts +2 -2
  539. package/dist/types/onchain/market/adapters/contracts/PendleRouterAdapterContract.d.ts +5 -5
  540. package/dist/types/onchain/market/adapters/contracts/SecuritizeOnRampAdapterContract.d.ts +2 -2
  541. package/dist/types/onchain/market/adapters/contracts/SecuritizeRedemptionGatewayAdapterContract.d.ts +2 -2
  542. package/dist/types/onchain/market/adapters/contracts/StakingRewardsAdapterContract.d.ts +2 -2
  543. package/dist/types/onchain/market/adapters/contracts/TraderJoeRouterAdapterContract.d.ts +4 -4
  544. package/dist/types/onchain/market/adapters/contracts/UniswapV2AdapterContract.d.ts +2 -2
  545. package/dist/types/onchain/market/adapters/contracts/UniswapV3AdapterContract.d.ts +2 -2
  546. package/dist/types/onchain/market/adapters/contracts/UniswapV4AdapterContract.d.ts +2 -2
  547. package/dist/types/onchain/market/adapters/contracts/UpshiftVaultAdapterContract.d.ts +2 -2
  548. package/dist/types/onchain/market/adapters/contracts/VelodromeV2AdapterContract.d.ts +2 -2
  549. package/dist/types/onchain/market/adapters/contracts/WstETHV1AdapterContract.d.ts +2 -2
  550. package/dist/types/onchain/market/adapters/createAdapter.d.ts +3 -4
  551. package/dist/types/onchain/market/adapters/legacyAdapterOperations.d.ts +27 -28
  552. package/dist/types/onchain/market/adapters/transferHelpers.d.ts +10 -11
  553. package/dist/types/onchain/market/adapters/transfers.d.ts +2 -3
  554. package/dist/types/onchain/market/adapters/types.d.ts +9 -10
  555. package/dist/types/onchain/market/credit/CreditConfiguratorV310Contract.d.ts +3 -3
  556. package/dist/types/onchain/market/credit/CreditFacadeV310BaseContract.d.ts +2 -2
  557. package/dist/types/onchain/market/credit/CreditFacadeV310Contract.d.ts +3 -3
  558. package/dist/types/onchain/market/credit/CreditManagerV310Contract.d.ts +3 -3
  559. package/dist/types/onchain/market/credit/CreditSuite.d.ts +3 -14
  560. package/dist/types/onchain/market/credit/CreditSuiteStrategy.d.ts +2 -3
  561. package/dist/types/onchain/market/credit/collateralUtils.d.ts +6 -6
  562. package/dist/types/onchain/market/credit/createCreditConfigurator.d.ts +2 -3
  563. package/dist/types/onchain/market/credit/createCreditFacade.d.ts +2 -3
  564. package/dist/types/onchain/market/credit/createCreditManager.d.ts +2 -3
  565. package/dist/types/onchain/market/credit/expectedBalanceDeltas.d.ts +4 -5
  566. package/dist/types/onchain/market/credit/index.d.ts +2 -2
  567. package/dist/types/onchain/market/credit/types.d.ts +10 -46
  568. package/dist/types/onchain/market/index.d.ts +3 -3
  569. package/dist/types/onchain/market/loss-policy/AliasLossPolicyV310Contract.d.ts +3 -3
  570. package/dist/types/onchain/market/loss-policy/LossPolicyContract.d.ts +2 -2
  571. package/dist/types/onchain/market/loss-policy/constants.d.ts +5 -6
  572. package/dist/types/onchain/market/loss-policy/createLossPolicy.d.ts +2 -3
  573. package/dist/types/onchain/market/loss-policy/types.d.ts +2 -3
  574. package/dist/types/onchain/market/math.d.ts +48 -30
  575. package/dist/types/onchain/market/oracle/PriceFeedAnswerMap.d.ts +2 -3
  576. package/dist/types/onchain/market/oracle/PriceOracleBaseContract.d.ts +2 -3
  577. package/dist/types/onchain/market/oracle/PriceOracleV310Contract.d.ts +2 -2
  578. package/dist/types/onchain/market/oracle/collateralPriceInUnderlying.d.ts +2 -3
  579. package/dist/types/onchain/market/oracle/createPriceOracle.d.ts +2 -3
  580. package/dist/types/onchain/market/oracle/types.d.ts +5 -6
  581. package/dist/types/onchain/market/pool/GaugeContract.d.ts +3 -3
  582. package/dist/types/onchain/market/pool/LinearInterestRateModelContract.d.ts +2 -2
  583. package/dist/types/onchain/market/pool/PoolQuotaKeeperV310Contract.d.ts +2 -2
  584. package/dist/types/onchain/market/pool/PoolSuite.d.ts +2 -3
  585. package/dist/types/onchain/market/pool/PoolV310Contract.d.ts +3 -3
  586. package/dist/types/onchain/market/pool/TumblerContract.d.ts +2 -2
  587. package/dist/types/onchain/market/pool/createInterestRateModel.d.ts +2 -3
  588. package/dist/types/onchain/market/pool/createPool.d.ts +2 -3
  589. package/dist/types/onchain/market/pool/createPoolQuotaKeeper.d.ts +2 -3
  590. package/dist/types/onchain/market/pool/createRateKeeper.d.ts +2 -3
  591. package/dist/types/onchain/market/pool/math.d.ts +6 -7
  592. package/dist/types/onchain/market/pool/types.d.ts +7 -8
  593. package/dist/types/onchain/market/pricefeeds/AbstractLPPriceFeed.d.ts +3 -4
  594. package/dist/types/onchain/market/pricefeeds/AbstractPriceFeed.d.ts +5 -6
  595. package/dist/types/onchain/market/pricefeeds/PriceFeedRef.d.ts +2 -3
  596. package/dist/types/onchain/market/pricefeeds/PriceFeedRegistry.d.ts +2 -3
  597. package/dist/types/onchain/market/pricefeeds/feeds/BalancerStablePriceFeed.d.ts +2 -2
  598. package/dist/types/onchain/market/pricefeeds/feeds/BalancerWeightedPriceFeed.d.ts +2 -2
  599. package/dist/types/onchain/market/pricefeeds/feeds/BoundedPriceFeed.d.ts +2 -2
  600. package/dist/types/onchain/market/pricefeeds/feeds/CompositePriceFeed.d.ts +2 -2
  601. package/dist/types/onchain/market/pricefeeds/feeds/ConstantPriceFeed.d.ts +2 -2
  602. package/dist/types/onchain/market/pricefeeds/feeds/CurveCryptoPriceFeed.d.ts +2 -2
  603. package/dist/types/onchain/market/pricefeeds/feeds/CurveStablePriceFeed.d.ts +2 -2
  604. package/dist/types/onchain/market/pricefeeds/feeds/CurveUSDPriceFeed.d.ts +2 -2
  605. package/dist/types/onchain/market/pricefeeds/feeds/Erc4626PriceFeed.d.ts +2 -2
  606. package/dist/types/onchain/market/pricefeeds/feeds/ExternalPriceFeed.d.ts +2 -2
  607. package/dist/types/onchain/market/pricefeeds/feeds/MellowLRTPriceFeed.d.ts +2 -2
  608. package/dist/types/onchain/market/pricefeeds/feeds/PendleTWAPPTPriceFeed.d.ts +2 -2
  609. package/dist/types/onchain/market/pricefeeds/feeds/PythPriceFeed.d.ts +2 -2
  610. package/dist/types/onchain/market/pricefeeds/feeds/RedstonePriceFeed.d.ts +2 -2
  611. package/dist/types/onchain/market/pricefeeds/feeds/WstETHPriceFeed.d.ts +2 -2
  612. package/dist/types/onchain/market/pricefeeds/feeds/YearnPriceFeed.d.ts +2 -2
  613. package/dist/types/onchain/market/pricefeeds/feeds/ZeroPriceFeed.d.ts +2 -2
  614. package/dist/types/onchain/market/pricefeeds/types.d.ts +5 -6
  615. package/dist/types/onchain/market/pricefeeds/updates/PriceUpdateTx.d.ts +2 -3
  616. package/dist/types/onchain/market/pricefeeds/updates/PriceUpdatesCache.d.ts +3 -4
  617. package/dist/types/onchain/market/pricefeeds/updates/UpdatablePriceFeedRegistry.d.ts +2 -3
  618. package/dist/types/onchain/market/pricefeeds/updates/getRawPriceUpdates.d.ts +2 -3
  619. package/dist/types/onchain/market/pricefeeds/updates/isUpdatablePriceFeed.d.ts +2 -3
  620. package/dist/types/onchain/market/pricefeeds/updates/types.d.ts +8 -9
  621. package/dist/types/onchain/market/pricefeeds/updates/updatableDependencies.d.ts +2 -3
  622. package/dist/types/onchain/market/rwa/RWARegistry.d.ts +3 -4
  623. package/dist/types/onchain/market/rwa/createDegenNFT.d.ts +2 -3
  624. package/dist/types/onchain/market/rwa/midas/MidasDegenNFT.d.ts +2 -2
  625. package/dist/types/onchain/market/rwa/midas/MidasLiquidatorContract.d.ts +2 -2
  626. package/dist/types/onchain/market/rwa/midas/constants.d.ts +4 -5
  627. package/dist/types/onchain/market/rwa/securitize/SecuritizeDegenNFT.d.ts +2 -2
  628. package/dist/types/onchain/market/rwa/securitize/SecuritizeLiquidatorContract.d.ts +2 -2
  629. package/dist/types/onchain/market/rwa/securitize/SecuritizeRWAFactory.d.ts +2 -2
  630. package/dist/types/onchain/market/rwa/securitize/constants.d.ts +4 -5
  631. package/dist/types/onchain/market/rwa/securitize/types.d.ts +5 -6
  632. package/dist/types/onchain/market/rwa/types.d.ts +16 -16
  633. package/dist/types/onchain/market/strategyName.d.ts +2 -3
  634. package/dist/types/onchain/market/types.d.ts +3 -4
  635. package/dist/types/onchain/market/zapper/IERC20ZapperContract.d.ts +2 -2
  636. package/dist/types/onchain/market/zapper/IETHZapperContract.d.ts +2 -2
  637. package/dist/types/onchain/market/zapper/ZapperContract.d.ts +2 -3
  638. package/dist/types/onchain/market/zapper/createZapper.d.ts +2 -3
  639. package/dist/types/onchain/market/zapper/types.d.ts +5 -6
  640. package/dist/types/onchain/opportunities/MultichainOpportunitiesService.d.ts +2 -3
  641. package/dist/types/onchain/opportunities/OpportunitiesService.d.ts +2 -3
  642. package/dist/types/onchain/opportunities/types.d.ts +2 -3
  643. package/dist/types/onchain/options.d.ts +4 -5
  644. package/dist/types/onchain/plugins/BasePlugin.d.ts +2 -3
  645. package/dist/types/onchain/plugins/errors.d.ts +2 -3
  646. package/dist/types/onchain/plugins/types.d.ts +9 -10
  647. package/dist/types/onchain/pools/PoolService.d.ts +2 -3
  648. package/dist/types/onchain/pools/types.d.ts +12 -13
  649. package/dist/types/onchain/positions/MultichainPositionsService.d.ts +2 -3
  650. package/dist/types/onchain/positions/PositionsService.d.ts +3 -4
  651. package/dist/types/onchain/positions/calcBorrowRate.d.ts +3 -4
  652. package/dist/types/onchain/positions/calcHealthFactor.d.ts +3 -4
  653. package/dist/types/onchain/positions/calcLiquidationPrice.d.ts +3 -4
  654. package/dist/types/onchain/positions/calcLiquidationPriceForTarget.d.ts +4 -5
  655. package/dist/types/onchain/positions/calcTimeToLiquidationMs.d.ts +2 -3
  656. package/dist/types/onchain/positions/types.d.ts +9 -10
  657. package/dist/types/onchain/preview/parse/classifyInnerOperations.d.ts +3 -4
  658. package/dist/types/onchain/preview/parse/parseFacadeOperationCalldata.d.ts +2 -3
  659. package/dist/types/onchain/preview/parse/parseOperationCalldata.d.ts +2 -3
  660. package/dist/types/onchain/preview/parse/parsePoolOperationCalldata.d.ts +2 -3
  661. package/dist/types/onchain/preview/parse/parseRWAFactoryOperationCalldata.d.ts +2 -3
  662. package/dist/types/onchain/preview/parse/types-adapters.d.ts +4 -5
  663. package/dist/types/onchain/preview/parse/types-facades.d.ts +20 -21
  664. package/dist/types/onchain/preview/parse/types-pools.d.ts +6 -7
  665. package/dist/types/onchain/preview/parse/types-rwa.d.ts +5 -6
  666. package/dist/types/onchain/preview/parse/types.d.ts +4 -4
  667. package/dist/types/onchain/preview/preview/CreditAccountState.d.ts +5 -5
  668. package/dist/types/onchain/preview/preview/buildDelayedStrategyPositionOperationPreview.d.ts +2 -3
  669. package/dist/types/onchain/preview/preview/detectCloseOrRepay.d.ts +3 -4
  670. package/dist/types/onchain/preview/preview/detectDelayedClaim.d.ts +4 -5
  671. package/dist/types/onchain/preview/preview/detectDelayedOperation.d.ts +3 -4
  672. package/dist/types/onchain/preview/preview/estimateClaimableAt.d.ts +2 -3
  673. package/dist/types/onchain/preview/preview/midasGreenlistsAccount.d.ts +2 -3
  674. package/dist/types/onchain/preview/preview/previewAdjustStrategyPosition.d.ts +2 -3
  675. package/dist/types/onchain/preview/preview/previewExitOrRepayStrategyPosition.d.ts +3 -4
  676. package/dist/types/onchain/preview/preview/previewOpenStrategyPosition.d.ts +2 -2
  677. package/dist/types/onchain/preview/preview/previewOperation.d.ts +3 -4
  678. package/dist/types/onchain/preview/preview/previewPoolPositionOperation.d.ts +2 -3
  679. package/dist/types/onchain/preview/preview/replayInnerOperations.d.ts +4 -5
  680. package/dist/types/onchain/preview/preview/replayMulticall.d.ts +4 -5
  681. package/dist/types/onchain/preview/preview/unwrapNativeCollateral.d.ts +2 -3
  682. package/dist/types/onchain/router/AbstractRouterContract.d.ts +4 -5
  683. package/dist/types/onchain/router/RouterV310Contract.d.ts +2 -2
  684. package/dist/types/onchain/router/createRouter.d.ts +2 -3
  685. package/dist/types/onchain/router/helpers.d.ts +3 -4
  686. package/dist/types/onchain/router/types.d.ts +15 -16
  687. package/dist/types/onchain/types/logger.d.ts +3 -4
  688. package/dist/types/onchain/types/multichain.d.ts +6 -7
  689. package/dist/types/onchain/types/state-human.d.ts +36 -37
  690. package/dist/types/onchain/types/state.d.ts +3 -4
  691. package/dist/types/onchain/types/transactions.d.ts +5 -6
  692. package/dist/types/onchain/utils/AddressMap.d.ts +2 -3
  693. package/dist/types/onchain/utils/AddressSet.d.ts +2 -3
  694. package/dist/types/onchain/utils/AssetsMap.d.ts +2 -3
  695. package/dist/types/onchain/utils/abi-decode.d.ts +4 -5
  696. package/dist/types/onchain/utils/bigint-math.d.ts +2 -3
  697. package/dist/types/onchain/utils/bytes32ToString.d.ts +2 -3
  698. package/dist/types/onchain/utils/childLogger.d.ts +2 -3
  699. package/dist/types/onchain/utils/createRawTx.d.ts +2 -3
  700. package/dist/types/onchain/utils/etherscan.d.ts +4 -5
  701. package/dist/types/onchain/utils/filterDust.d.ts +4 -5
  702. package/dist/types/onchain/utils/formatter.d.ts +17 -17
  703. package/dist/types/onchain/utils/hex.d.ts +2 -3
  704. package/dist/types/onchain/utils/internal/Hooks.d.ts +3 -4
  705. package/dist/types/onchain/utils/isDust.d.ts +3 -4
  706. package/dist/types/onchain/utils/json.d.ts +3 -4
  707. package/dist/types/onchain/utils/mappers.d.ts +5 -6
  708. package/dist/types/onchain/utils/retry.d.ts +3 -4
  709. package/dist/types/onchain/utils/toAddress.d.ts +2 -3
  710. package/dist/types/onchain/utils/trace.d.ts +8 -9
  711. package/dist/types/onchain/utils/type-utils.d.ts +2 -3
  712. package/dist/types/onchain/utils/viem/cast.d.ts +3 -4
  713. package/dist/types/onchain/utils/viem/executeDelegatedMulticalls.d.ts +3 -4
  714. package/dist/types/onchain/utils/viem/executeMulticallBatches.d.ts +4 -5
  715. package/dist/types/onchain/utils/viem/sendRawTx.d.ts +5 -6
  716. package/dist/types/onchain/utils/viem/simulateCall.d.ts +7 -8
  717. package/dist/types/onchain/utils/viem/simulateMulticall.d.ts +4 -5
  718. package/dist/types/onchain/utils/viem/simulateWithPriceUpdates.d.ts +8 -9
  719. package/dist/types/onchain/utils/viem/watchBlocksAsync.d.ts +4 -4
  720. package/dist/types/onchain/utils/zod.d.ts +4 -5
  721. package/dist/types/onchain/validation/bundles/checkAccountQuotas.d.ts +2 -3
  722. package/dist/types/onchain/validation/bundles/checkCollateralFunding.d.ts +4 -5
  723. package/dist/types/onchain/validation/bundles/checkCreditOperation.d.ts +6 -7
  724. package/dist/types/onchain/validation/bundles/checkHealthFactors.d.ts +4 -5
  725. package/dist/types/onchain/validation/bundles/checkIncreaseDebt.d.ts +2 -3
  726. package/dist/types/onchain/validation/bundles/checkIncreaseQuota.d.ts +2 -3
  727. package/dist/types/onchain/validation/bundles/checkLiquidationEligibility.d.ts +7 -7
  728. package/dist/types/onchain/validation/bundles/checkLiquidationFunding.d.ts +5 -5
  729. package/dist/types/onchain/validation/bundles/checkMarket.d.ts +3 -4
  730. package/dist/types/onchain/validation/bundles/checkMidasAccountGreenlist.d.ts +3 -4
  731. package/dist/types/onchain/validation/bundles/checkObtained.d.ts +2 -3
  732. package/dist/types/onchain/validation/bundles/checkPoolFunding.d.ts +3 -4
  733. package/dist/types/onchain/validation/bundles/checkPoolOperation.d.ts +4 -5
  734. package/dist/types/onchain/validation/bundles/checkQuotaUpdates.d.ts +15 -0
  735. package/dist/types/onchain/validation/bundles/checkRWAOpenRequirements.d.ts +3 -4
  736. package/dist/types/onchain/validation/bundles/checkRWAOpening.d.ts +4 -5
  737. package/dist/types/onchain/validation/bundles/checkWallet.d.ts +4 -5
  738. package/dist/types/onchain/validation/bundles/checkWalletAllowance.d.ts +3 -4
  739. package/dist/types/onchain/validation/bundles/checkWalletBalance.d.ts +3 -4
  740. package/dist/types/onchain/validation/bundles/index.d.ts +2 -1
  741. package/dist/types/onchain/validation/checkLiquidation.d.ts +7 -7
  742. package/dist/types/onchain/validation/checkOperation.d.ts +5 -6
  743. package/dist/types/onchain/validation/checkSimulation.d.ts +5 -6
  744. package/dist/types/onchain/validation/checks/checkBorrowLimit.d.ts +3 -4
  745. package/dist/types/onchain/validation/checks/checkCollateralised.d.ts +3 -4
  746. package/dist/types/onchain/validation/checks/checkCreditAccountFrozen.d.ts +3 -4
  747. package/dist/types/onchain/validation/checks/checkCreditManagerPaused.d.ts +3 -4
  748. package/dist/types/onchain/validation/checks/checkDebtLimits.d.ts +3 -4
  749. package/dist/types/onchain/validation/checks/checkEmergencyLiquidator.d.ts +3 -4
  750. package/dist/types/onchain/validation/checks/checkForbiddenToken.d.ts +3 -4
  751. package/dist/types/onchain/validation/checks/checkLeverage.d.ts +3 -4
  752. package/dist/types/onchain/validation/checks/checkLiquidatorEligible.d.ts +3 -4
  753. package/dist/types/onchain/validation/checks/checkMarketExpired.d.ts +3 -4
  754. package/dist/types/onchain/validation/checks/checkMaxQuota.d.ts +15 -0
  755. package/dist/types/onchain/validation/checks/checkPartiallyLiquidatable.d.ts +16 -0
  756. package/dist/types/onchain/validation/checks/checkPoolLiquidity.d.ts +3 -4
  757. package/dist/types/onchain/validation/checks/checkPoolPaused.d.ts +3 -4
  758. package/dist/types/onchain/validation/checks/checkPoolSunset.d.ts +3 -4
  759. package/dist/types/onchain/validation/checks/checkQuotaActive.d.ts +12 -0
  760. package/dist/types/onchain/validation/checks/checkQuotaChange.d.ts +16 -0
  761. package/dist/types/onchain/validation/checks/checkQuotaCount.d.ts +3 -4
  762. package/dist/types/onchain/validation/checks/checkQuotaLimit.d.ts +3 -4
  763. package/dist/types/onchain/validation/checks/checkReservePriceLimited.d.ts +3 -4
  764. package/dist/types/onchain/validation/checks/index.d.ts +5 -1
  765. package/dist/types/onchain/validation/helpers/amount.d.ts +2 -3
  766. package/dist/types/onchain/validation/helpers/health-factor-limits.d.ts +5 -6
  767. package/dist/types/onchain/validation/helpers/token.d.ts +3 -4
  768. package/dist/types/onchain/validation/index.d.ts +6 -1
  769. package/dist/types/onchain/validation/raise.d.ts +5 -6
  770. package/dist/types/permissionless/api/GearboxPermissionless.d.ts +2 -3
  771. package/dist/types/permissionless/api/chains/ChainsNamespace.d.ts +2 -3
  772. package/dist/types/permissionless/api/chains/schemas.d.ts +5 -6
  773. package/dist/types/permissionless/api/chains/types.d.ts +6 -7
  774. package/dist/types/permissionless/api/deploy/PermissionlessDeploy.d.ts +4 -5
  775. package/dist/types/permissionless/api/deploy/effective-staleness.d.ts +2 -3
  776. package/dist/types/permissionless/api/deploy/types.d.ts +6 -7
  777. package/dist/types/permissionless/api/errors.d.ts +6 -7
  778. package/dist/types/permissionless/api/oracles/PermissionlessOracles.d.ts +4 -5
  779. package/dist/types/permissionless/api/oracles/schemas.d.ts +5 -6
  780. package/dist/types/permissionless/api/oracles/types.d.ts +5 -6
  781. package/dist/types/permissionless/api/schemas.d.ts +4 -5
  782. package/dist/types/permissionless/api/transactions/InstanceOwnerTransactions.d.ts +2 -3
  783. package/dist/types/permissionless/api/transactions/lp-price-feeds.d.ts +3 -4
  784. package/dist/types/permissionless/api/transactions/types.d.ts +7 -8
  785. package/dist/types/permissionless/api/types.d.ts +2 -3
  786. package/dist/types/permissionless/bindings/address-provider.d.ts +2 -3
  787. package/dist/types/permissionless/bindings/bytecode-repository.d.ts +2 -2
  788. package/dist/types/permissionless/bindings/compressors/token-compressor.d.ts +2 -2
  789. package/dist/types/permissionless/bindings/compressors/withdrawal-compressor.d.ts +2 -2
  790. package/dist/types/permissionless/bindings/cross-chain-multisig.d.ts +4 -4
  791. package/dist/types/permissionless/bindings/factory/abstract-factory.d.ts +2 -3
  792. package/dist/types/permissionless/bindings/factory/credit-factory.d.ts +2 -2
  793. package/dist/types/permissionless/bindings/factory/loss-policy-factory.d.ts +2 -2
  794. package/dist/types/permissionless/bindings/factory/pool-factory.d.ts +2 -2
  795. package/dist/types/permissionless/bindings/factory/price-oracle-factory.d.ts +2 -2
  796. package/dist/types/permissionless/bindings/factory/rate-keeper-factory.d.ts +2 -2
  797. package/dist/types/permissionless/bindings/governance/batches-chain.d.ts +2 -2
  798. package/dist/types/permissionless/bindings/governance/governor.d.ts +2 -2
  799. package/dist/types/permissionless/bindings/governance/timelock.d.ts +2 -3
  800. package/dist/types/permissionless/bindings/governance/types.d.ts +7 -8
  801. package/dist/types/permissionless/bindings/instance-manager.d.ts +2 -2
  802. package/dist/types/permissionless/bindings/market-configurator-factory.d.ts +2 -2
  803. package/dist/types/permissionless/bindings/market-configurator.d.ts +2 -2
  804. package/dist/types/permissionless/bindings/price-feed-store.d.ts +2 -2
  805. package/dist/types/permissionless/bindings/pricefeeds/balancer-stable.d.ts +2 -3
  806. package/dist/types/permissionless/bindings/pricefeeds/balancer-weighted.d.ts +2 -3
  807. package/dist/types/permissionless/bindings/pricefeeds/bounded.d.ts +2 -3
  808. package/dist/types/permissionless/bindings/pricefeeds/composite.d.ts +2 -3
  809. package/dist/types/permissionless/bindings/pricefeeds/constant.d.ts +2 -3
  810. package/dist/types/permissionless/bindings/pricefeeds/curve-crypto.d.ts +2 -3
  811. package/dist/types/permissionless/bindings/pricefeeds/curve-stable.d.ts +2 -3
  812. package/dist/types/permissionless/bindings/pricefeeds/curve-twap.d.ts +2 -3
  813. package/dist/types/permissionless/bindings/pricefeeds/curve-usd.d.ts +2 -3
  814. package/dist/types/permissionless/bindings/pricefeeds/erc4626.d.ts +2 -3
  815. package/dist/types/permissionless/bindings/pricefeeds/external.d.ts +2 -3
  816. package/dist/types/permissionless/bindings/pricefeeds/index.d.ts +2 -3
  817. package/dist/types/permissionless/bindings/pricefeeds/kodiak.d.ts +2 -3
  818. package/dist/types/permissionless/bindings/pricefeeds/mellow-lrt.d.ts +2 -3
  819. package/dist/types/permissionless/bindings/pricefeeds/pendle-pt-twap.d.ts +2 -3
  820. package/dist/types/permissionless/bindings/pricefeeds/pyth.d.ts +2 -3
  821. package/dist/types/permissionless/bindings/pricefeeds/redstone.d.ts +2 -3
  822. package/dist/types/permissionless/bindings/pricefeeds/wsteth.d.ts +2 -3
  823. package/dist/types/permissionless/bindings/pricefeeds/zero.d.ts +2 -3
  824. package/dist/types/permissionless/bindings/router/routing-manager.d.ts +2 -2
  825. package/dist/types/permissionless/bindings/treasury-splitter.d.ts +2 -2
  826. package/dist/types/permissionless/bindings/types.d.ts +17 -18
  827. package/dist/types/permissionless/chains/archive-transport.d.ts +3 -4
  828. package/dist/types/permissionless/chains/chunked-log-transport.d.ts +2 -2
  829. package/dist/types/permissionless/core/auditor.d.ts +2 -3
  830. package/dist/types/permissionless/core/bytecode.d.ts +5 -6
  831. package/dist/types/permissionless/core/pricefeed-builder.d.ts +6 -7
  832. package/dist/types/permissionless/core/pricefeed.d.ts +2 -3
  833. package/dist/types/permissionless/core/proposal.d.ts +5 -6
  834. package/dist/types/permissionless/core/raw-tx.d.ts +2 -3
  835. package/dist/types/permissionless/deployment/addresses.d.ts +2 -3
  836. package/dist/types/permissionless/deployment/mainnet.d.ts +6 -7
  837. package/dist/types/permissionless/plugins/irm/constructor-params-abi.d.ts +8 -8
  838. package/dist/types/permissionless/plugins/loss-policies/constructor-params-abi.d.ts +8 -8
  839. package/dist/types/permissionless/plugins/rate-keepers/constructor-params-abi.d.ts +9 -9
  840. package/dist/types/permissionless/utils/abi-encoder.d.ts +4 -5
  841. package/dist/types/permissionless/utils/block-utils.d.ts +2 -3
  842. package/dist/types/permissionless/utils/create2.d.ts +9 -10
  843. package/dist/types/permissionless/utils/format.d.ts +7 -8
  844. package/dist/types/permissionless/utils/governance/batch.d.ts +5 -6
  845. package/dist/types/permissionless/utils/governance/timelock-txs.d.ts +2 -3
  846. package/dist/types/permissionless/utils/governance/types.d.ts +3 -4
  847. package/dist/types/permissionless/utils/literals.d.ts +8 -9
  848. package/dist/types/permissionless/utils/price-update/get-price-update-tx.d.ts +2 -3
  849. package/dist/types/permissionless/utils/price-update/get-prices.d.ts +2 -3
  850. package/dist/types/permissionless/utils/price-update/get-updatable-feeds.d.ts +3 -4
  851. package/dist/types/permissionless/utils/signature.d.ts +2 -3
  852. package/dist/types/plugins/accounts/AccountsPlugin.d.ts +3 -4
  853. package/dist/types/plugins/accounts-counter/AccountsCounterPlugin.d.ts +3 -4
  854. package/dist/types/plugins/bots/BotsPlugin.d.ts +2 -3
  855. package/dist/types/plugins/bots/PartialLiquidationBotV310Contract.d.ts +3 -3
  856. package/dist/types/plugins/bots/abi/iPartialLiquidationBotV310.d.ts +2 -3
  857. package/dist/types/plugins/bots/config.d.ts +6 -7
  858. package/dist/types/plugins/bots/deserializePartialLiquidationBotParams.d.ts +2 -3
  859. package/dist/types/plugins/bots/types.d.ts +11 -12
  860. package/dist/types/sdk/AbstractNamespace.d.ts +3 -4
  861. package/dist/types/sdk/GearboxSDK.d.ts +3 -4
  862. package/dist/types/sdk/analytics/AnalyticsNamespace.d.ts +2 -3
  863. package/dist/types/sdk/analytics/types.d.ts +3 -4
  864. package/dist/types/sdk/errors/AllSourcesFailedError.d.ts +2 -3
  865. package/dist/types/sdk/errors/MissingSourceError.d.ts +2 -3
  866. package/dist/types/sdk/errors/NoSourceServedError.d.ts +2 -3
  867. package/dist/types/sdk/errors/SourceChainMismatchError.d.ts +3 -4
  868. package/dist/types/sdk/errors/SourceUnavailableError.d.ts +2 -3
  869. package/dist/types/sdk/errors/assertSameChains.d.ts +2 -3
  870. package/dist/types/sdk/errors/everyChainFailed.d.ts +2 -3
  871. package/dist/types/sdk/execute/ExecuteApi.d.ts +2 -3
  872. package/dist/types/sdk/execute/types.d.ts +9 -10
  873. package/dist/types/sdk/index.d.ts +2 -2
  874. package/dist/types/sdk/liquidations/LiquidationsNamespace.d.ts +11 -4
  875. package/dist/types/sdk/liquidations/types.d.ts +24 -9
  876. package/dist/types/sdk/opportunities/OpportunitiesNamespace.d.ts +2 -3
  877. package/dist/types/sdk/opportunities/types.d.ts +9 -10
  878. package/dist/types/sdk/positions/PositionsNamespace.d.ts +2 -3
  879. package/dist/types/sdk/positions/mergePositionList.d.ts +2 -3
  880. package/dist/types/sdk/positions/types.d.ts +9 -10
  881. package/dist/types/sdk/prepare/PrepareApi.d.ts +14 -7
  882. package/dist/types/sdk/prepare/index.d.ts +2 -2
  883. package/dist/types/sdk/prepare/types.d.ts +72 -33
  884. package/dist/types/sdk/prepare/withdrawable-collaterals.d.ts +2 -3
  885. package/dist/types/sdk/preview/PreviewNamespace.d.ts +2 -3
  886. package/dist/types/sdk/preview/types.d.ts +4 -5
  887. package/dist/types/sdk/rewards/RewardsNamespace.d.ts +2 -3
  888. package/dist/types/sdk/rewards/errors.d.ts +3 -4
  889. package/dist/types/sdk/rewards/helpers.d.ts +7 -8
  890. package/dist/types/sdk/rewards/merkl-api.d.ts +6 -6
  891. package/dist/types/sdk/rewards/toMerklRewards.d.ts +2 -3
  892. package/dist/types/sdk/rewards/toTurtleRewards.d.ts +2 -3
  893. package/dist/types/sdk/rewards/turtle-api.d.ts +7 -8
  894. package/dist/types/sdk/rewards/types.d.ts +5 -6
  895. package/dist/types/sdk/types.d.ts +13 -14
  896. package/dist/types/sdk/utils/filterResponse.d.ts +2 -3
  897. package/dist/types/sdk/utils/mergeChains.d.ts +4 -5
  898. package/dist/types/sdk/utils/types.d.ts +5 -5
  899. package/package.json +15 -15
@@ -1,7 +1,7 @@
1
1
  import { Bps, ChainId } from "../../model/primitives.js";
2
- import { CreditManagerPausedError, DebtOutOfRangeError, InsufficientPoolLiquidityError, LeverageOutOfRangeError, MarketExpiredError } from "../../model/errors/operation-errors.js";
2
+ import { CreditManagerPausedError, DebtOutOfRangeError, InsufficientPoolLiquidityError, LeverageOutOfRangeError, MarketExpiredError, QuotaAboveMaxError, QuotaInactiveError, QuotaUnchangedError } from "../../model/errors/operation-errors.js";
3
3
  import { CreditAccountNotEmptyError, CreditAccountNotFoundError, MultipleDelayedWithdrawalsError, NoDelayedRouteError, NoRecordedIntentError, NoStrategyTargetCollateralError, UnexpectedFailureError, UnsupportedCollateralTokenError, UnsupportedTokenPairError, WithdrawalInProgressError } from "../../model/errors/prepare-errors.js";
4
- import { PositionCollateral, StrategyPosition } from "../../model/positions.js";
4
+ import { Position, PositionCollateral, StrategyPosition } from "../../model/positions.js";
5
5
  import { SDKReturn } from "../../model/result.js";
6
6
  import "../../model/index.js";
7
7
  import { Asset } from "../../onchain/base/types.js";
@@ -14,7 +14,7 @@ import { LeverageBand } from "../../onchain/accounts/intents/leverage-band.js";
14
14
  import { OpenStrategyState } from "../../onchain/accounts/intents/open-strategy.js";
15
15
  import { PoolOperationError } from "../../onchain/validation/bundles/checkPoolOperation.js";
16
16
  import "../../onchain/index.js";
17
- import { AccountFlowError, AddCollateralParams, AdjustLeverageParams, BorrowParams, BorrowResult, DepositStrategyParams, EmptyCreditAccountResult, FinalizeParams, FinalizeResult, IOpportunitiesPrepare, LpParams, LpRedeemParams, LpResult, LpState, MaxBorrowParams, MaxWithdrawCollateralOptions, OpenFlowError, OpenStrategyParams, OpenStrategyResult, PoolInput, PositionInput, RepayStrategyParams, StrategyInput, StrategyResult, StrategyRoutesResult, WithRouteErrors, WithdrawCollateralParams, WithdrawStrategyParams } from "./types.js";
17
+ import { AccountFlowError, AddCollateralParams, AdjustLeverageParams, BorrowParams, BorrowResult, DepositStrategyParams, EmptyCreditAccountResult, FinalizeParams, FinalizeResult, IOpportunitiesPrepare, LpParams, LpRedeemParams, LpResult, LpState, MaxBorrowParams, MaxWithdrawCollateralOptions, OpenFlowError, OpenStrategyParams, OpenStrategyResult, PoolInput, PositionInput, QuotaBufferState, RepayStrategyParams, StrategyInput, StrategyResult, StrategyRoutesResult, UpdateQuotaParams, WithRouteErrors, WithdrawCollateralParams, WithdrawStrategyParams } from "./types.js";
18
18
  import { EnsureFreshChains } from "../types.js";
19
19
  import { Address } from "viem";
20
20
  //#region src/sdk/prepare/PrepareApi.d.ts
@@ -25,7 +25,7 @@ import { Address } from "viem";
25
25
  * loaded state and have nothing to await; the execute namespace resolves its
26
26
  * chain the same way.
27
27
  **/
28
- type ChainOf = (chainId: ChainId) => OnchainSDK;
28
+ export type ChainOf = (chainId: ChainId) => OnchainSDK;
29
29
  /**
30
30
  * {@inheritDoc IOpportunitiesPrepare}
31
31
  *
@@ -47,7 +47,7 @@ type ChainOf = (chainId: ChainId) => OnchainSDK;
47
47
  * the bare `max*` reads throw on bugs and lifecycle errors instead, see
48
48
  * {@link IOpportunitiesPrepare}.
49
49
  **/
50
- declare class PrepareApi extends MultichainConstruct implements IOpportunitiesPrepare {
50
+ export declare class PrepareApi extends MultichainConstruct implements IOpportunitiesPrepare {
51
51
  #private;
52
52
  constructor(sdk: MultichainSDK, ensureFresh?: EnsureFreshChains);
53
53
  /**
@@ -110,6 +110,10 @@ declare class PrepareApi extends MultichainConstruct implements IOpportunitiesPr
110
110
  * {@inheritDoc IOpportunitiesPrepare.withdrawCollateral}
111
111
  **/
112
112
  withdrawCollateral(position: PositionInput, params: WithdrawCollateralParams): Promise<SDKReturn<StrategyResult, AccountFlowError & WithPartialState<OperationState>>>;
113
+ /**
114
+ * {@inheritDoc IOpportunitiesPrepare.updateQuota}
115
+ **/
116
+ updateQuota(position: PositionInput, params: UpdateQuotaParams): Promise<SDKReturn<StrategyResult, (AccountFlowError | DebtOutOfRangeError | UnsupportedCollateralTokenError | QuotaInactiveError | QuotaUnchangedError | QuotaAboveMaxError) & WithPartialState<OperationState>>>;
113
117
  /**
114
118
  * {@inheritDoc IOpportunitiesPrepare.leverageBand}
115
119
  **/
@@ -126,6 +130,9 @@ declare class PrepareApi extends MultichainConstruct implements IOpportunitiesPr
126
130
  * {@inheritDoc IOpportunitiesPrepare.maxBorrow}
127
131
  **/
128
132
  maxBorrow(strategy: StrategyInput, params: MaxBorrowParams): bigint;
133
+ /** {@inheritDoc IOpportunitiesPrepare.getQuotaBufferState} */
134
+ getQuotaBufferState(position: Position, extraQuotas?: readonly (Pick<Asset, "token"> & {
135
+ quota: bigint;
136
+ })[]): QuotaBufferState | undefined;
129
137
  }
130
- //#endregion
131
- export { ChainOf, PrepareApi };
138
+ //#endregion
@@ -4,6 +4,6 @@ import { ExecutionCost, OperationState, PathLossRate, RouteErrors, WithPartialSt
4
4
  import { BorrowState } from "../../onchain/accounts/intents/borrow.js";
5
5
  import { LeverageBand } from "../../onchain/accounts/intents/leverage-band.js";
6
6
  import { PoolOperationError } from "../../onchain/validation/bundles/checkPoolOperation.js";
7
- import { AccountFlowError, AddCollateralParams, AdjustLeverageParams, BorrowParams, BorrowResult, DelayedStrategyResult, DepositStrategyParams, EmptyCreditAccountResult, FinalizeParams, FinalizeResult, IOpportunitiesPrepare, LpParams, LpRedeemParams, LpResult, LpState, MaxBorrowParams, MaxWithdrawCollateralOptions, OpenFlowError, OpenStrategyParams, OpenStrategyResult, PoolInput, PositionInput, PrepareOptions, RepayStrategyParams, StrategyInput, StrategyResult, StrategyRoutesResult, WithRouteErrors, WithdrawCollateralParams, WithdrawStrategyParams } from "./types.js";
7
+ import { AccountFlowError, AddCollateralParams, AdjustLeverageParams, BorrowParams, BorrowResult, DelayedStrategyResult, DepositStrategyParams, EmptyCreditAccountResult, FinalizeParams, FinalizeResult, IOpportunitiesPrepare, LpParams, LpRedeemParams, LpResult, LpState, MaxBorrowParams, MaxWithdrawCollateralOptions, OpenFlowError, OpenStrategyParams, OpenStrategyResult, PoolInput, PositionInput, PrepareOptions, QuotaBufferState, RepayStrategyParams, StrategyInput, StrategyResult, StrategyRoutesResult, UpdateQuotaParams, WithRouteErrors, WithdrawCollateralParams, WithdrawStrategyParams } from "./types.js";
8
8
  import { ChainOf, PrepareApi } from "./PrepareApi.js";
9
- export { AccountFlowError, AddCollateralParams, AdjustLeverageParams, BorrowParams, BorrowResult, type BorrowState, ChainOf, type CreditAccountNotEmptyError, type CreditAccountNotFoundError, DelayedStrategyResult, DepositStrategyParams, EmptyCreditAccountResult, type ExecutionCost, FinalizeParams, FinalizeResult, IOpportunitiesPrepare, type LeverageBand, LpParams, LpRedeemParams, LpResult, LpState, MaxBorrowParams, MaxWithdrawCollateralOptions, type MultipleDelayedWithdrawalsError, type NoDelayedRouteError, type NoRecordedIntentError, type NoStrategyTargetCollateralError, OpenFlowError, OpenStrategyParams, OpenStrategyResult, type OperationState, type PathLossRate, PoolInput, type PoolOperationError, PositionInput, PrepareApi, PrepareOptions, RepayStrategyParams, type RouteErrors, StrategyInput, StrategyResult, StrategyRoutesResult, type UnexpectedFailureError, type UnsupportedCollateralTokenError, type UnsupportedTokenPairError, type WithPartialState, WithRouteErrors, type WithdrawCeilings, WithdrawCollateralParams, WithdrawStrategyParams, type WithdrawalInProgressError, creditAccountNotEmpty, creditAccountNotFound, noStrategyTargetCollateral, unexpectedFailure };
9
+ export { AccountFlowError, AddCollateralParams, AdjustLeverageParams, BorrowParams, BorrowResult, type BorrowState, ChainOf, type CreditAccountNotEmptyError, type CreditAccountNotFoundError, DelayedStrategyResult, DepositStrategyParams, EmptyCreditAccountResult, type ExecutionCost, FinalizeParams, FinalizeResult, IOpportunitiesPrepare, type LeverageBand, LpParams, LpRedeemParams, LpResult, LpState, MaxBorrowParams, MaxWithdrawCollateralOptions, type MultipleDelayedWithdrawalsError, type NoDelayedRouteError, type NoRecordedIntentError, type NoStrategyTargetCollateralError, OpenFlowError, OpenStrategyParams, OpenStrategyResult, type OperationState, type PathLossRate, PoolInput, type PoolOperationError, PositionInput, PrepareApi, PrepareOptions, QuotaBufferState, RepayStrategyParams, type RouteErrors, StrategyInput, StrategyResult, StrategyRoutesResult, type UnexpectedFailureError, type UnsupportedCollateralTokenError, type UnsupportedTokenPairError, UpdateQuotaParams, type WithPartialState, WithRouteErrors, type WithdrawCeilings, WithdrawCollateralParams, WithdrawStrategyParams, type WithdrawalInProgressError, creditAccountNotEmpty, creditAccountNotFound, noStrategyTargetCollateral, unexpectedFailure };
@@ -1,9 +1,9 @@
1
1
  import { Bps, Timestamp, TokenAmount } from "../../model/primitives.js";
2
2
  import { Curator } from "../../model/curators.js";
3
- import { CreditManagerPausedError, DebtOutOfRangeError, ForbiddenTokenError, InsufficientBalanceError, InsufficientCollateralError, InsufficientPoolLiquidityError, LeverageOutOfRangeError, MarketExpiredError, QuotaLimitReachedError, ReservePriceLimitedError } from "../../model/errors/operation-errors.js";
3
+ import { CreditManagerPausedError, DebtOutOfRangeError, ForbiddenTokenError, InsufficientBalanceError, InsufficientCollateralError, InsufficientPoolLiquidityError, LeverageOutOfRangeError, MarketExpiredError, QuotaAboveMaxError, QuotaInactiveError, QuotaLimitReachedError, QuotaUnchangedError, ReservePriceLimitedError } from "../../model/errors/operation-errors.js";
4
4
  import { CreditAccountNotEmptyError, CreditAccountNotFoundError, MultipleDelayedWithdrawalsError, NoDelayedRouteError, NoRecordedIntentError, NoStrategyTargetCollateralError, UnexpectedFailureError, UnsupportedCollateralTokenError, UnsupportedTokenPairError, WithdrawalInProgressError } from "../../model/errors/prepare-errors.js";
5
5
  import { PoolOpportunityKey, StrategyOpportunityKey } from "../../model/opportunities.js";
6
- import { PositionCollateral, StrategyPosition, StrategyPositionKey } from "../../model/positions.js";
6
+ import { Position, PositionCollateral, StrategyPosition, StrategyPositionKey } from "../../model/positions.js";
7
7
  import { SDKReturn } from "../../model/result.js";
8
8
  import { PositionClaimableWithdrawal } from "../../model/withdrawals.js";
9
9
  import "../../model/index.js";
@@ -19,7 +19,19 @@ import { PoolOperationError } from "../../onchain/validation/bundles/checkPoolOp
19
19
  import "../../onchain/index.js";
20
20
  import { Address } from "viem";
21
21
  //#region src/sdk/prepare/types.d.ts
22
- interface MaxWithdrawCollateralOptions {
22
+ /** Recoverable target-token quota, computed from loaded market state. */
23
+ export interface QuotaBufferState {
24
+ /** Validated strategy context, with a known target collateral. */
25
+ position: StrategyPosition & {
26
+ targetCollateral: NonNullable<StrategyPosition["targetCollateral"]>;
27
+ };
28
+ /** Target value times LT, before reserve and protocol-step rounding. */
29
+ baseQuota: bigint;
30
+ currentQuota: bigint;
31
+ /** Positive increase available under the pool and account limits. */
32
+ quotaIncrease: bigint;
33
+ }
34
+ export interface MaxWithdrawCollateralOptions {
23
35
  /** Main-price HF threshold, in basis points; defaults to 10101. */
24
36
  targetHF?: bigint;
25
37
  /** Safe-price HF threshold, in basis points; defaults to 10001. */
@@ -29,9 +41,9 @@ interface MaxWithdrawCollateralOptions {
29
41
  * What any operation on an existing account can answer with: the engine's
30
42
  * shared guards, the missing account, and a wrapped crash.
31
43
  **/
32
- type AccountFlowError = CreditManagerPausedError | MarketExpiredError | ForbiddenTokenError | QuotaLimitReachedError | InsufficientCollateralError | ReservePriceLimitedError | InsufficientBalanceError | CreditAccountNotFoundError | UnexpectedFailureError;
44
+ export type AccountFlowError = CreditManagerPausedError | MarketExpiredError | ForbiddenTokenError | QuotaLimitReachedError | InsufficientCollateralError | ReservePriceLimitedError | InsufficientBalanceError | CreditAccountNotFoundError | UnexpectedFailureError;
33
45
  /** Same guards for the account-less open flow. */
34
- type OpenFlowError = CreditManagerPausedError | MarketExpiredError | ForbiddenTokenError | QuotaLimitReachedError | InsufficientCollateralError | InsufficientBalanceError | UnexpectedFailureError;
46
+ export type OpenFlowError = CreditManagerPausedError | MarketExpiredError | ForbiddenTokenError | QuotaLimitReachedError | InsufficientCollateralError | InsufficientBalanceError | UnexpectedFailureError;
35
47
  /**
36
48
  * What every error of a two-route request carries on top of its own code,
37
49
  * see {@link StrategyRoutesResult}.
@@ -41,7 +53,7 @@ type OpenFlowError = CreditManagerPausedError | MarketExpiredError | ForbiddenTo
41
53
  * a caller can usually act on — or the delayed route's when the instant one
42
54
  * did not get far enough to have a reason of its own.
43
55
  **/
44
- interface WithRouteErrors {
56
+ export interface WithRouteErrors {
45
57
  errors: RouteErrors;
46
58
  }
47
59
  /**
@@ -50,7 +62,7 @@ interface WithRouteErrors {
50
62
  * simulation cannot know — whose market this is, and how large the position
51
63
  * ends up.
52
64
  **/
53
- interface LpState extends PoolSimulation {
65
+ export interface LpState extends PoolSimulation {
54
66
  /**
55
67
  * Curator of the market the pool belongs to, in the same shape
56
68
  * {@link PoolOpportunity} and {@link CreditOperationMarket} report it.
@@ -77,7 +89,7 @@ interface LpState extends PoolSimulation {
77
89
  * conversion applied to the amount, at the rate of the block the market was
78
90
  * loaded at.
79
91
  **/
80
- interface LpResult {
92
+ export interface LpResult {
81
93
  /**
82
94
  * Always empty: a pool operation is a single transaction, so there is no
83
95
  * chain of steps to show. Present so callers can treat both kinds of
@@ -103,7 +115,7 @@ interface LpResult {
103
115
  /**
104
116
  * What an operation on an existing credit account comes to.
105
117
  **/
106
- interface StrategyResult {
118
+ export interface StrategyResult {
107
119
  /**
108
120
  * The logical steps, each carrying the amounts it was computed from.
109
121
  * Useful for showing the user what will happen, and for pinning behaviour
@@ -129,7 +141,7 @@ interface StrategyResult {
129
141
  * What the tail of a delayed operation comes to: {@link StrategyResult}, plus
130
142
  * whether the claim it was built on settled the withdrawal whole.
131
143
  **/
132
- interface FinalizeResult extends StrategyResult {
144
+ export interface FinalizeResult extends StrategyResult {
133
145
  /**
134
146
  * What the claim did not bring, when the venue settled part of the matured
135
147
  * withdrawal and left the rest of it queued — only a legacy Mellow multivault
@@ -152,7 +164,7 @@ interface FinalizeResult extends StrategyResult {
152
164
  * are meant to be compared on the same footing, so `state` is the end of the
153
165
  * operation in both, not the end of the transaction.
154
166
  **/
155
- interface DelayedStrategyResult {
167
+ export interface DelayedStrategyResult {
156
168
  /**
157
169
  * {@inheritDoc StrategyResult.operations}
158
170
  **/
@@ -195,7 +207,7 @@ interface DelayedStrategyResult {
195
207
  * routes that exist; a failure means neither does, and the error still carries
196
208
  * `errors`, see {@link WithRouteErrors}.
197
209
  **/
198
- interface StrategyRoutesResult {
210
+ export interface StrategyRoutesResult {
199
211
  /**
200
212
  * The router route: one transaction, settled on the spot. `undefined`
201
213
  * when the asset cannot be sold, see `errors.instant`.
@@ -223,7 +235,7 @@ interface StrategyRoutesResult {
223
235
  * The only result that reports both an expected and a floor branch: opening
224
236
  * takes both from a single pathfinder call, and `openCA` consumes both.
225
237
  **/
226
- interface OpenStrategyResult {
238
+ export interface OpenStrategyResult {
227
239
  /**
228
240
  * Everything the opening arrives at: the projection, both branches of the
229
241
  * post-open balances and quotas, and the router path `openCA` is handed.
@@ -241,7 +253,7 @@ interface OpenStrategyResult {
241
253
  * there is no chain of steps to report — with the whole projection on the
242
254
  * state rather than two branches of balances, see {@link BorrowState}.
243
255
  **/
244
- interface BorrowResult {
256
+ export interface BorrowResult {
245
257
  /**
246
258
  * Everything the loan arrives at: the collateral and the debt it backs, the
247
259
  * payout expected and its floor, the position metrics a screen shows beside
@@ -263,7 +275,7 @@ interface BorrowResult {
263
275
  * health factor to read. What the preparation is for is the refusal it can
264
276
  * answer with instead: a market that takes no multicall.
265
277
  **/
266
- interface EmptyCreditAccountResult {
278
+ export interface EmptyCreditAccountResult {
267
279
  /** Block of the chain state this result was computed from. */
268
280
  blockNumber: number;
269
281
  /** Unix seconds of {@link blockNumber}. */
@@ -272,7 +284,7 @@ interface EmptyCreditAccountResult {
272
284
  /**
273
285
  * Shared knobs. Both default to the SDK's own defaults when omitted.
274
286
  **/
275
- interface PrepareOptions {
287
+ export interface PrepareOptions {
276
288
  /** Router slippage in PERCENTAGE_FORMAT (100% = 10_000). */
277
289
  slippage?: number;
278
290
  /**
@@ -285,18 +297,18 @@ interface PrepareOptions {
285
297
  * Position to prepare against. A `StrategyPosition` from
286
298
  * `sdk.positions.list()` satisfies this, as does a bare key.
287
299
  **/
288
- type PositionInput = StrategyPositionKey;
300
+ export type PositionInput = StrategyPositionKey;
289
301
  /**
290
302
  * Pool to prepare against. A `PoolOpportunity` from
291
303
  * `sdk.opportunities.list()` satisfies this, as does a bare key.
292
304
  **/
293
- type PoolInput = PoolOpportunityKey;
305
+ export type PoolInput = PoolOpportunityKey;
294
306
  /**
295
307
  * Market to open a new position in. A `StrategyOpportunity` from
296
308
  * `sdk.opportunities.list()` satisfies this, as does a bare key.
297
309
  **/
298
- type StrategyInput = StrategyOpportunityKey;
299
- interface DepositStrategyParams extends PrepareOptions {
310
+ export type StrategyInput = StrategyOpportunityKey;
311
+ export interface DepositStrategyParams extends PrepareOptions {
300
312
  /**
301
313
  * Collateral to add: the market underlying, or its unwrapped asset on an RWA
302
314
  * market (USDC rather than dcUSDC).
@@ -316,7 +328,7 @@ interface DepositStrategyParams extends PrepareOptions {
316
328
  **/
317
329
  targetLeverage?: bigint;
318
330
  }
319
- interface WithdrawStrategyParams extends PrepareOptions {
331
+ export interface WithdrawStrategyParams extends PrepareOptions {
320
332
  /**
321
333
  * Amount the wallet receives, denominated in `tokenOut`. `MAX_UINT256`, or
322
334
  * anything at or above the account's net value, turns the flow into an exit,
@@ -336,7 +348,7 @@ interface WithdrawStrategyParams extends PrepareOptions {
336
348
  **/
337
349
  sourceToken?: Address;
338
350
  }
339
- interface RepayStrategyParams extends PrepareOptions {
351
+ export interface RepayStrategyParams extends PrepareOptions {
340
352
  /**
341
353
  * Funding token: the market underlying, which needs no conversion and is
342
354
  * repaid where it lands, or — on an RWA market — the unwrapped asset behind
@@ -354,7 +366,7 @@ interface RepayStrategyParams extends PrepareOptions {
354
366
  /** Native value to attach when paying a wrapped-native market in the coin. */
355
367
  value?: bigint;
356
368
  }
357
- interface AdjustLeverageParams extends PrepareOptions {
369
+ export interface AdjustLeverageParams extends PrepareOptions {
358
370
  /**
359
371
  * Target total leverage scaled by `LEVERAGE_DECIMALS` (300n = 3x); 100n means
360
372
  * no debt.
@@ -366,21 +378,30 @@ interface AdjustLeverageParams extends PrepareOptions {
366
378
  **/
367
379
  token?: Address;
368
380
  }
369
- interface AddCollateralParams extends PrepareOptions {
381
+ export interface AddCollateralParams extends PrepareOptions {
370
382
  /** Position token to deposit; nothing else is accepted. */
371
383
  token: Address;
372
384
  amount: bigint;
373
385
  /** Native value to attach when paying a wrapped-native market in the coin. */
374
386
  value?: bigint;
375
387
  }
376
- interface WithdrawCollateralParams extends PrepareOptions {
388
+ export interface WithdrawCollateralParams extends PrepareOptions {
377
389
  /** Token to move out; must already sit on the account. */
378
390
  token: Address;
379
391
  amount: bigint;
380
392
  /** Wallet receiving the tokens. */
381
393
  to: Address;
382
394
  }
383
- interface OpenStrategyParams extends PrepareOptions {
395
+ export interface UpdateQuotaParams extends PrepareOptions {
396
+ /** Collateral token on the account, other than the underlying. */
397
+ token: Address;
398
+ /**
399
+ * Target quota in underlying units; 0 disables it. Omit to size it to the
400
+ * balance: its value in underlying × LT, raised by `quotaReserve`.
401
+ **/
402
+ quota?: bigint;
403
+ }
404
+ export interface OpenStrategyParams extends PrepareOptions {
384
405
  /** Collateral coming from the wallet, in their own tokens. */
385
406
  collateral: Asset[];
386
407
  /**
@@ -404,7 +425,7 @@ interface OpenStrategyParams extends PrepareOptions {
404
425
  **/
405
426
  creditAccount?: Address;
406
427
  }
407
- interface BorrowParams extends PrepareOptions {
428
+ export interface BorrowParams extends PrepareOptions {
408
429
  /**
409
430
  * Token the wallet puts up as collateral. Must be a collateral token of the
410
431
  * market, and cannot be {@link borrowToken} — the payout is swept off the
@@ -453,7 +474,7 @@ interface BorrowParams extends PrepareOptions {
453
474
  * What a borrow form knows before it knows the amount: everything
454
475
  * {@link BorrowParams} carries except the loan itself, which is the answer.
455
476
  **/
456
- interface MaxBorrowParams {
477
+ export interface MaxBorrowParams {
457
478
  /** Token the wallet would put up, as in {@link BorrowParams}. */
458
479
  collateralToken: Address;
459
480
  /** Amount of {@link collateralToken} that would leave the wallet. */
@@ -472,7 +493,7 @@ interface MaxBorrowParams {
472
493
  **/
473
494
  quotaReserve?: number;
474
495
  }
475
- interface LpParams {
496
+ export interface LpParams {
476
497
  /**
477
498
  * On deposit: amount of `tokenIn`. On withdraw: amount of `tokenOut`, which
478
499
  * the pool's `withdraw` takes as is and prices in shares itself.
@@ -500,7 +521,7 @@ interface LpParams {
500
521
  * treats `amount` as the pool shares to burn rather than the underlying to
501
522
  * receive.
502
523
  **/
503
- interface LpRedeemParams {
524
+ export interface LpRedeemParams {
504
525
  /**
505
526
  * Amount of `tokenIn` — pool shares, or the zapper token that wraps them —
506
527
  * to redeem.
@@ -510,7 +531,7 @@ interface LpRedeemParams {
510
531
  tokenIn?: Address;
511
532
  tokenOut?: Address;
512
533
  }
513
- interface FinalizeParams extends PrepareOptions {
534
+ export interface FinalizeParams extends PrepareOptions {
514
535
  /**
515
536
  * The matured withdrawal to claim, from
516
537
  * `sdk.positions.getCurrentWithdrawals()`.
@@ -556,7 +577,14 @@ interface FinalizeParams extends PrepareOptions {
556
577
  * {@link maxBorrow}) weigh state already loaded and say "nothing available"
557
578
  * with `undefined`, an empty list or `0n`.
558
579
  **/
559
- interface IOpportunitiesPrepare {
580
+ export interface IOpportunitiesPrepare {
581
+ /** Synchronous quota-buffer state from loaded chain data. No freshness refresh
582
+ * or account RPC read. Ineligible positions return undefined; unexpected
583
+ * failures are thrown. extraQuotas includes reservations absent from the position.
584
+ */
585
+ getQuotaBufferState(position: Position, extraQuotas?: readonly (Pick<Asset, "token"> & {
586
+ quota: bigint;
587
+ })[]): QuotaBufferState | undefined;
560
588
  /**
561
589
  * Depositing into a pool: underlying in, shares out.
562
590
  *
@@ -730,6 +758,17 @@ interface IOpportunitiesPrepare {
730
758
  * proportion and leaves leverage unchanged.
731
759
  **/
732
760
  withdrawCollateral(position: PositionInput, params: WithdrawCollateralParams): Promise<SDKReturn<StrategyResult, AccountFlowError & WithPartialState<OperationState>>>;
761
+ /**
762
+ * Changing the quota of one token the account already holds, at fixed debt
763
+ * and balances: how much of it counts as collateral, and the quota fee paid
764
+ * for it.
765
+ *
766
+ * A target is sent strictly, so the transaction reverts rather than end
767
+ * below it. An omitted target is sized to the balance and capped at the
768
+ * pool's available quota; the call then accepts a partial fill that keeps the
769
+ * token enabled.
770
+ **/
771
+ updateQuota(position: PositionInput, params: UpdateQuotaParams): Promise<SDKReturn<StrategyResult, (AccountFlowError | DebtOutOfRangeError | UnsupportedCollateralTokenError | QuotaInactiveError | QuotaUnchangedError | QuotaAboveMaxError) & WithPartialState<OperationState>>>;
733
772
  /**
734
773
  * The leverages a deposit of a given size can reach in this market: the
735
774
  * range a leverage slider should mark as available.
@@ -839,4 +878,4 @@ interface IOpportunitiesPrepare {
839
878
  finalize(position: PositionInput, params: FinalizeParams): Promise<SDKReturn<FinalizeResult, (AccountFlowError | NoRecordedIntentError | NoDelayedRouteError | WithdrawalInProgressError | UnsupportedTokenPairError) & WithPartialState<OperationState>>>;
840
879
  }
841
880
  //#endregion
842
- export { AccountFlowError, AddCollateralParams, AdjustLeverageParams, BorrowParams, BorrowResult, type BorrowState, type CreditAccountNotEmptyError, type CreditAccountNotFoundError, DelayedStrategyResult, DepositStrategyParams, EmptyCreditAccountResult, type ExecutionCost, FinalizeParams, FinalizeResult, IOpportunitiesPrepare, type LeverageBand, LpParams, LpRedeemParams, LpResult, LpState, MaxBorrowParams, MaxWithdrawCollateralOptions, type MultipleDelayedWithdrawalsError, type NoDelayedRouteError, type NoRecordedIntentError, type NoStrategyTargetCollateralError, OpenFlowError, OpenStrategyParams, OpenStrategyResult, type OperationState, type PathLossRate, PoolInput, type PoolOperationError, PositionInput, PrepareOptions, RepayStrategyParams, type RouteErrors, StrategyInput, StrategyResult, StrategyRoutesResult, type UnexpectedFailureError, type UnsupportedCollateralTokenError, type UnsupportedTokenPairError, type WithPartialState, WithRouteErrors, type WithdrawCeilings, WithdrawCollateralParams, WithdrawStrategyParams, type WithdrawalInProgressError };
881
+ export type { BorrowState, CreditAccountNotEmptyError, CreditAccountNotFoundError, ExecutionCost, LeverageBand, MultipleDelayedWithdrawalsError, NoDelayedRouteError, NoRecordedIntentError, NoStrategyTargetCollateralError, OperationState, PathLossRate, PoolOperationError, RouteErrors, UnexpectedFailureError, UnsupportedCollateralTokenError, UnsupportedTokenPairError, WithPartialState, WithdrawCeilings, WithdrawalInProgressError };
@@ -6,6 +6,5 @@ import "../../onchain/index.js";
6
6
  /**
7
7
  * {@inheritDoc IOpportunitiesPrepare.withdrawableCollaterals}
8
8
  **/
9
- declare function withdrawableCollaterals(sdk: OnchainSDK, position: StrategyPosition): PositionCollateral[];
10
- //#endregion
11
- export { withdrawableCollaterals };
9
+ export declare function withdrawableCollaterals(sdk: OnchainSDK, position: StrategyPosition): PositionCollateral[];
10
+ //#endregion
@@ -13,7 +13,7 @@ import { NamespaceOptions } from "../types.js";
13
13
  /**
14
14
  * {@inheritDoc IPreview}
15
15
  **/
16
- declare class PreviewNamespace implements IPreview {
16
+ export declare class PreviewNamespace implements IPreview {
17
17
  #private;
18
18
  constructor(onchain: MultichainSDK, options: NamespaceOptions);
19
19
  /**
@@ -29,5 +29,4 @@ declare class PreviewNamespace implements IPreview {
29
29
  **/
30
30
  checkSimulation(props: CheckSimulationInput, options?: HealthFactorThresholds): Promise<SimulationValidationError[]>;
31
31
  }
32
- //#endregion
33
- export { PreviewNamespace };
32
+ //#endregion
@@ -13,14 +13,14 @@ import "../../onchain/index.js";
13
13
  * plus the chain to resolve it on. `OperationPreview` only names the chain
14
14
  * inside a token, so `chainId` is required.
15
15
  **/
16
- type CheckOperationProps = Omit<CheckOperationInput, "sdk"> & {
16
+ export type CheckOperationProps = Omit<CheckOperationInput, "sdk"> & {
17
17
  chainId: ChainId;
18
18
  };
19
19
  /**
20
20
  * On-chain preview of a raw operation calldata, and checks of a parsed or
21
21
  * simulated one.
22
22
  **/
23
- interface IPreview {
23
+ export interface IPreview {
24
24
  /**
25
25
  * Decodes a raw operation and assembles an operation-specific,
26
26
  * human-displayable preview.
@@ -42,10 +42,9 @@ interface IPreview {
42
42
  /**
43
43
  * `sdk.preview` per mode: an on-chain read, absent when the SDK reads no chain.
44
44
  **/
45
- interface IPreviewByMode {
45
+ export interface IPreviewByMode {
46
46
  onchain: IPreview;
47
47
  offchain: undefined;
48
48
  both: IPreview;
49
49
  }
50
- //#endregion
51
- export { CheckOperationProps, IPreview, IPreviewByMode };
50
+ //#endregion
@@ -12,7 +12,7 @@ import { Address } from "viem";
12
12
  /**
13
13
  * {@inheritDoc IRewards}
14
14
  **/
15
- declare class RewardsNamespace extends MultichainConstruct implements IRewards {
15
+ export declare class RewardsNamespace extends MultichainConstruct implements IRewards {
16
16
  #private;
17
17
  constructor(onchain: MultichainSDK, keys: RewardsKeys | undefined, options: NamespaceOptions);
18
18
  /**
@@ -20,5 +20,4 @@ declare class RewardsNamespace extends MultichainConstruct implements IRewards {
20
20
  **/
21
21
  list(wallet: Address, chainIds?: ChainId[]): Promise<DataResponse<Reward[]>>;
22
22
  }
23
- //#endregion
24
- export { RewardsNamespace };
23
+ //#endregion
@@ -9,15 +9,14 @@ import { BaseError } from "viem";
9
9
  * inside a chain's {@link ChainFailed} metadata, where it is typed `unknown`
10
10
  * and may be serialised by something that turns an arbitrary object into `{}`.
11
11
  */
12
- declare class MerklRequestFailedError extends BaseError {
12
+ export declare class MerklRequestFailedError extends BaseError {
13
13
  name: string;
14
14
  readonly chainId: ChainId;
15
15
  constructor(chainId: ChainId, path: string, cause: unknown);
16
16
  }
17
17
  /** Turtle answers for every chain at once, so this names no chain. */
18
- declare class TurtleRequestFailedError extends BaseError {
18
+ export declare class TurtleRequestFailedError extends BaseError {
19
19
  name: string;
20
20
  constructor(path: string, cause: unknown);
21
21
  }
22
- //#endregion
23
- export { MerklRequestFailedError, TurtleRequestFailedError };
22
+ //#endregion
@@ -5,7 +5,7 @@ import { RewardsSdk } from "./types.js";
5
5
  import { Address } from "viem";
6
6
  //#region src/sdk/rewards/helpers.d.ts
7
7
  /** A claimable amount of one token in one pool, before it is merged. */
8
- interface RewardPart {
8
+ export interface RewardPart {
9
9
  pool: Address;
10
10
  poolToken: Token;
11
11
  token: Token;
@@ -18,19 +18,19 @@ interface RewardPart {
18
18
  * ERC-4626 share token, so its address is the only token a campaign can name;
19
19
  * the `AddressMap` owns the casing a source writes it in.
20
20
  */
21
- declare function resolvePool(sdk: RewardsSdk): (address: string | undefined) => {
21
+ export declare function resolvePool(sdk: RewardsSdk): (address: string | undefined) => {
22
22
  pool: `0x${string}`;
23
23
  poolToken: Token;
24
24
  } | undefined;
25
25
  /** Sources send amounts as free-form strings, which `toBigInt` throws on. */
26
- declare function parseAmount(value: string | undefined): bigint | undefined;
26
+ export declare function parseAmount(value: string | undefined): bigint | undefined;
27
27
  /** What is left of `total` after `claimed`, when anything is. */
28
- declare function remaining(total: bigint | undefined, claimed: bigint | undefined): bigint | undefined;
28
+ export declare function remaining(total: bigint | undefined, claimed: bigint | undefined): bigint | undefined;
29
29
  /**
30
30
  * An incentive token is rarely protocol collateral, so the registry usually
31
31
  * has no entry for it — and both sources always name it.
32
32
  */
33
- declare function toRewardToken(sdk: RewardsSdk, address: Address, named: {
33
+ export declare function toRewardToken(sdk: RewardsSdk, address: Address, named: {
34
34
  symbol: string;
35
35
  name?: string;
36
36
  decimals: number;
@@ -40,6 +40,5 @@ declare function toRewardToken(sdk: RewardsSdk, address: Address, named: {
40
40
  * are summed raw and priced once at the end — pricing each part and adding the results would round
41
41
  * every one of them.
42
42
  */
43
- declare function mergeRewards(sdk: RewardsSdk, source: MerklReward["source"], parts: readonly RewardPart[]): MerklReward[];
44
- //#endregion
45
- export { RewardPart, mergeRewards, parseAmount, remaining, resolvePool, toRewardToken };
43
+ export declare function mergeRewards(sdk: RewardsSdk, source: MerklReward["source"], parts: readonly RewardPart[]): MerklReward[];
44
+ //#endregion
@@ -2,7 +2,7 @@ import { ChainId } from "../../model/primitives.js";
2
2
  import "../../model/index.js";
3
3
  import { Address } from "viem";
4
4
  //#region src/sdk/rewards/merkl-api.d.ts
5
- interface MerkleXYZUserRewardsV4 {
5
+ export interface MerkleXYZUserRewardsV4 {
6
6
  chain: MerkleXYZChain;
7
7
  rewards: Array<{
8
8
  root: Address;
@@ -32,14 +32,14 @@ interface MerkleXYZUserRewardsV4 {
32
32
  }>;
33
33
  }>;
34
34
  }
35
- type MerkleXYZUserRewardsV4Response = Array<MerkleXYZUserRewardsV4>;
35
+ export type MerkleXYZUserRewardsV4Response = Array<MerkleXYZUserRewardsV4>;
36
36
  interface MerkleXYZChain {
37
37
  id: number;
38
38
  name: string;
39
39
  icon: string;
40
40
  }
41
- declare const MERKL_API_KEY_HEADER = "X-API-Key";
42
- interface FetchMerklUserRewardsProps {
41
+ export declare const MERKL_API_KEY_HEADER = "X-API-Key";
42
+ export interface FetchMerklUserRewardsProps {
43
43
  chainId: ChainId;
44
44
  /** Checksummed by the caller — Merkl keys its answer on the exact string. */
45
45
  user: Address;
@@ -54,6 +54,6 @@ interface FetchMerklUserRewardsProps {
54
54
  * non-2xx counts as no answer: it carries no rewards either way, and treating
55
55
  * it as success would report emptiness that was never established.
56
56
  */
57
- declare function fetchMerklUserRewards({ chainId, user, apiKey }: FetchMerklUserRewardsProps): Promise<MerkleXYZUserRewardsV4Response>;
57
+ export declare function fetchMerklUserRewards({ chainId, user, apiKey }: FetchMerklUserRewardsProps): Promise<MerkleXYZUserRewardsV4Response>;
58
58
  //#endregion
59
- export { FetchMerklUserRewardsProps, MERKL_API_KEY_HEADER, MerkleXYZUserRewardsV4, MerkleXYZUserRewardsV4Response, fetchMerklUserRewards };
59
+ export {};
@@ -8,6 +8,5 @@ import { MerkleXYZUserRewardsV4Response } from "./merkl-api.js";
8
8
  * A breakdown Merkl cannot be read from is skipped rather than thrown on: it
9
9
  * must not sink the chain, which the caller would then be told is unreachable.
10
10
  */
11
- declare function toMerklRewards(sdk: RewardsSdk, response: MerkleXYZUserRewardsV4Response): MerklReward[];
12
- //#endregion
13
- export { toMerklRewards };
11
+ export declare function toMerklRewards(sdk: RewardsSdk, response: MerkleXYZUserRewardsV4Response): MerklReward[];
12
+ //#endregion
@@ -7,6 +7,5 @@ import { TurtleWalletRewards } from "./turtle-api.js";
7
7
  * The streams targeting a pool on the SDK's chain, merged per pool and
8
8
  * incentive. A token reward is what is committed and not yet claimed.
9
9
  */
10
- declare function toTurtleRewards(sdk: RewardsSdk, { streams, proofs }: TurtleWalletRewards, claimed: ReadonlyMap<string, bigint>): Reward[];
11
- //#endregion
12
- export { toTurtleRewards };
10
+ export declare function toTurtleRewards(sdk: RewardsSdk, { streams, proofs }: TurtleWalletRewards, claimed: ReadonlyMap<string, bigint>): Reward[];
11
+ //#endregion
@@ -2,7 +2,7 @@ import { OnchainSDK } from "../../onchain/OnchainSDK.js";
2
2
  import "../../onchain/index.js";
3
3
  import { Address } from "viem";
4
4
  //#region src/sdk/rewards/turtle-api.d.ts
5
- interface TurtleWalletStream {
5
+ export interface TurtleWalletStream {
6
6
  streamId: string;
7
7
  snapshots: Array<{
8
8
  rewardsAccumulated: string;
@@ -35,18 +35,18 @@ interface TurtleWalletStream {
35
35
  } | null;
36
36
  };
37
37
  }
38
- interface TurtleMerkleProof {
38
+ export interface TurtleMerkleProof {
39
39
  streamId: string;
40
40
  chainId: number;
41
41
  contractAddress: Address;
42
42
  /** Cumulative committed allocation, not what is left to claim. */
43
43
  amount: string;
44
44
  }
45
- interface TurtleWalletRewards {
45
+ export interface TurtleWalletRewards {
46
46
  streams: TurtleWalletStream[];
47
47
  proofs: TurtleMerkleProof[];
48
48
  }
49
- declare const turtleStreamAbi: readonly [{
49
+ export declare const turtleStreamAbi: readonly [{
50
50
  readonly type: "function";
51
51
  readonly name: "getClaimedRewards";
52
52
  readonly stateMutability: "view";
@@ -59,8 +59,7 @@ declare const turtleStreamAbi: readonly [{
59
59
  readonly type: "uint256";
60
60
  }];
61
61
  }];
62
- declare function fetchTurtleWalletRewards(user: Address, apiKey: string): Promise<TurtleWalletRewards>;
62
+ export declare function fetchTurtleWalletRewards(user: Address, apiKey: string): Promise<TurtleWalletRewards>;
63
63
  /** What each of the wallet's streams on the chain has paid out, at the latest block. */
64
- declare function readTurtleClaimed(sdk: OnchainSDK, user: Address, { proofs }: TurtleWalletRewards): Promise<Map<string, bigint>>;
65
- //#endregion
66
- export { TurtleMerkleProof, TurtleWalletRewards, TurtleWalletStream, fetchTurtleWalletRewards, readTurtleClaimed, turtleStreamAbi };
64
+ export declare function readTurtleClaimed(sdk: OnchainSDK, user: Address, { proofs }: TurtleWalletRewards): Promise<Map<string, bigint>>;
65
+ //#endregion
@@ -9,7 +9,7 @@ import { Address } from "viem";
9
9
  /**
10
10
  * Claimable Merkl and Turtle rewards.
11
11
  **/
12
- interface IRewards {
12
+ export interface IRewards {
13
13
  /**
14
14
  * Claimable rewards of `wallet`; a chain errors only when every source failed on it.
15
15
  **/
@@ -18,18 +18,17 @@ interface IRewards {
18
18
  /**
19
19
  * `sdk.rewards` per mode: absent when the SDK reads no chain.
20
20
  **/
21
- interface IRewardsByMode {
21
+ export interface IRewardsByMode {
22
22
  onchain: IRewards;
23
23
  offchain: undefined;
24
24
  both: IRewards;
25
25
  }
26
- interface RewardsKeys {
26
+ export interface RewardsKeys {
27
27
  /** Raises Merkl's rate limit; the keyless path answers too. */
28
28
  merklApiKey?: string;
29
29
  /** Turtle is skipped without one: its API answers no keyless request. */
30
30
  turtleApiKey?: string;
31
31
  }
32
32
  /** What the mapping needs off a chain's SDK, and nothing asynchronous. */
33
- type RewardsSdk = Pick<OnchainSDK, "chainId" | "marketRegister" | "tokensMeta">;
34
- //#endregion
35
- export { IRewards, IRewardsByMode, RewardsKeys, RewardsSdk };
33
+ export type RewardsSdk = Pick<OnchainSDK, "chainId" | "marketRegister" | "tokensMeta">;
34
+ //#endregion