@gearbox-protocol/sdk 18.4.1 → 18.4.2

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 (1476) hide show
  1. package/dist/types/dev/AccountOpener.d.ts +109 -0
  2. package/dist/types/dev/EthCallSpy.d.ts +28 -0
  3. package/dist/types/dev/RevolverTransport.d.ts +212 -0
  4. package/dist/types/dev/calcLiquidatableLTs.d.ts +10 -0
  5. package/dist/types/dev/claimFromFaucet.d.ts +28 -0
  6. package/dist/types/dev/create2.d.ts +62 -0
  7. package/dist/types/dev/index.d.ts +30 -0
  8. package/dist/types/dev/kycUtils.d.ts +129 -0
  9. package/dist/types/dev/lowerHealthFactor.d.ts +32 -0
  10. package/dist/types/dev/ltUtils.d.ts +13 -0
  11. package/dist/types/dev/midasUtils.d.ts +63 -0
  12. package/dist/types/dev/migrateFaucet.d.ts +10 -0
  13. package/dist/types/dev/mint/AbstractMinter.d.ts +17 -0
  14. package/dist/types/dev/mint/DealMinter.d.ts +6 -0
  15. package/dist/types/dev/mint/DirectMinter.d.ts +6 -0
  16. package/dist/types/dev/mint/FallbackMinter.d.ts +11 -0
  17. package/dist/types/dev/mint/TransferMinter.d.ts +6 -0
  18. package/dist/types/dev/mint/factory.d.ts +6 -0
  19. package/dist/types/dev/mint/index.d.ts +3 -0
  20. package/dist/types/dev/mode-parity/compareOpportunities.d.ts +99 -0
  21. package/dist/types/dev/mode-parity/comparePositions.d.ts +144 -0
  22. package/dist/types/dev/mode-parity/compareRules.d.ts +30 -0
  23. package/dist/types/dev/mode-parity/fieldDiff.d.ts +209 -0
  24. package/dist/types/dev/mode-parity/scriptUtils.d.ts +69 -0
  25. package/dist/types/dev/providers.d.ts +63 -0
  26. package/dist/types/dev/replaceStorage.d.ts +23 -0
  27. package/dist/types/dev/securitizeUtils.d.ts +59 -0
  28. package/dist/types/dev/withdrawalUtils.d.ts +24 -0
  29. package/dist/types/history/assembleOperations.d.ts +33 -0
  30. package/dist/types/history/classifyMulticallOperations.d.ts +53 -0
  31. package/dist/types/history/index.d.ts +13 -0
  32. package/dist/types/history/mapOperations.d.ts +26 -0
  33. package/dist/types/history/parseCreditAccountTransaction.d.ts +28 -0
  34. package/dist/types/history/populateContractsRegister.d.ts +23 -0
  35. package/dist/types/history/toLegacyOperation.d.ts +18 -0
  36. package/dist/types/history/trace/extractAdapterCallTraces.d.ts +23 -0
  37. package/dist/types/history/trace/extractTransfers.d.ts +52 -0
  38. package/dist/types/history/trace/findFacadeCalls.d.ts +11 -0
  39. package/dist/types/history/trace/index.d.ts +6 -0
  40. package/dist/types/history/trace/types.d.ts +22 -0
  41. package/dist/types/history/types.d.ts +30 -0
  42. package/dist/types/model/analytics.d.ts +154 -0
  43. package/dist/types/model/analytics.schema.d.ts +464 -0
  44. package/dist/types/model/charts.d.ts +365 -0
  45. package/dist/types/model/charts.schema.d.ts +365 -0
  46. package/dist/types/model/errors/index.d.ts +7 -0
  47. package/dist/types/model/errors/liquidation-errors.d.ts +59 -0
  48. package/dist/types/model/errors/operation-errors.d.ts +349 -0
  49. package/dist/types/model/errors/oracle-errors.d.ts +16 -0
  50. package/dist/types/model/errors/prepare-errors.d.ts +119 -0
  51. package/dist/types/model/errors/preview-errors.d.ts +69 -0
  52. package/dist/types/model/filters.d.ts +33 -0
  53. package/dist/types/model/filters.schema.d.ts +23 -0
  54. package/dist/types/model/index.d.ts +35 -0
  55. package/dist/types/model/liquidations.d.ts +261 -0
  56. package/dist/types/model/opportunities.d.ts +671 -0
  57. package/dist/types/model/positions.d.ts +545 -0
  58. package/dist/types/model/previews.d.ts +592 -0
  59. package/dist/types/model/response.d.ts +102 -0
  60. package/dist/types/model/response.schema.d.ts +95 -0
  61. package/dist/types/model/result.d.ts +56 -0
  62. package/dist/types/model/rewards.d.ts +33 -0
  63. package/dist/types/model/rwa.d.ts +184 -0
  64. package/dist/types/model/withdrawals.d.ts +103 -0
  65. package/dist/types/offchain/AbstractOffchainNamespace.d.ts +73 -0
  66. package/dist/types/offchain/GearboxAPI.d.ts +42 -0
  67. package/dist/types/offchain/analytics/OffchainAnalytics.d.ts +20 -0
  68. package/dist/types/offchain/analytics/OffchainAnalyticsPositions.d.ts +14 -0
  69. package/dist/types/offchain/analytics/index.d.ts +4 -0
  70. package/dist/types/offchain/analytics/types.d.ts +38 -0
  71. package/dist/types/offchain/errors/OffchainInvalidJsonError.d.ts +13 -0
  72. package/dist/types/offchain/errors/OffchainRequestFailedError.d.ts +9 -0
  73. package/dist/types/offchain/errors/OffchainStatusError.d.ts +13 -0
  74. package/dist/types/offchain/errors/index.d.ts +15 -0
  75. package/dist/types/offchain/index.d.ts +31 -0
  76. package/dist/types/offchain/opportunities/OffchainOpportunities.d.ts +33 -0
  77. package/dist/types/offchain/opportunities/index.d.ts +3 -0
  78. package/dist/types/offchain/opportunities/types.d.ts +33 -0
  79. package/dist/types/offchain/positions/OffchainPositions.d.ts +31 -0
  80. package/dist/types/offchain/positions/index.d.ts +3 -0
  81. package/dist/types/offchain/positions/types.d.ts +33 -0
  82. package/dist/types/offchain/types.d.ts +25 -0
  83. package/dist/types/onchain/MultichainSDK.d.ts +157 -0
  84. package/dist/types/onchain/OnchainSDK.d.ts +309 -0
  85. package/dist/types/onchain/abi/index.d.ts +2 -0
  86. package/dist/types/onchain/accounts/CreditAccountsServiceV310.d.ts +151 -0
  87. package/dist/types/onchain/accounts/bots/AccountBotsService.d.ts +35 -0
  88. package/dist/types/onchain/accounts/bots/PeripheryCompressorV310Contract.d.ts +234 -0
  89. package/dist/types/onchain/accounts/bots/index.d.ts +4 -0
  90. package/dist/types/onchain/accounts/bots/types.d.ts +140 -0
  91. package/dist/types/onchain/accounts/credit-account-compressor/CreditAccountCompressor.d.ts +48 -0
  92. package/dist/types/onchain/accounts/credit-account-compressor/CreditAccountCompressorV310Contract.d.ts +877 -0
  93. package/dist/types/onchain/accounts/credit-account-compressor/index.d.ts +4 -0
  94. package/dist/types/onchain/accounts/credit-account-compressor/types.d.ts +147 -0
  95. package/dist/types/onchain/accounts/index.d.ts +37 -0
  96. package/dist/types/onchain/accounts/intents/borrow.d.ts +143 -0
  97. package/dist/types/onchain/accounts/intents/collateral-valuation.d.ts +41 -0
  98. package/dist/types/onchain/accounts/intents/guards.d.ts +103 -0
  99. package/dist/types/onchain/accounts/intents/index.d.ts +287 -0
  100. package/dist/types/onchain/accounts/intents/leverage-band.d.ts +57 -0
  101. package/dist/types/onchain/accounts/intents/math.d.ts +56 -0
  102. package/dist/types/onchain/accounts/intents/maxBorrow.d.ts +53 -0
  103. package/dist/types/onchain/accounts/intents/maxBorrowAndWithdraw.d.ts +10 -0
  104. package/dist/types/onchain/accounts/intents/maxWithdrawCollateral.d.ts +31 -0
  105. package/dist/types/onchain/accounts/intents/open-strategy.d.ts +86 -0
  106. package/dist/types/onchain/accounts/intents/operations.d.ts +221 -0
  107. package/dist/types/onchain/accounts/intents/plan.d.ts +227 -0
  108. package/dist/types/onchain/accounts/intents/realize.d.ts +47 -0
  109. package/dist/types/onchain/accounts/intents/resolveQuotaUpdate.d.ts +36 -0
  110. package/dist/types/onchain/accounts/intents/strategyLimits.d.ts +31 -0
  111. package/dist/types/onchain/accounts/intents/tail.d.ts +64 -0
  112. package/dist/types/onchain/accounts/intents/testing/delayed.d.ts +4 -4
  113. package/dist/types/onchain/accounts/intents/testing/expect.d.ts +6 -6
  114. package/dist/types/onchain/accounts/intents/testing/market.d.ts +3 -3
  115. package/dist/types/onchain/accounts/intents/testing/sdk-mock.d.ts +6 -6
  116. package/dist/types/onchain/accounts/intents/tests/add-collateral.fixtures.d.ts +42 -0
  117. package/dist/types/onchain/accounts/intents/tests/adjust-leverage.fixtures.d.ts +53 -0
  118. package/dist/types/onchain/accounts/intents/tests/deposit.fixtures.d.ts +61 -0
  119. package/dist/types/onchain/accounts/intents/tests/finish-decrease-leverage.fixtures.d.ts +107 -0
  120. package/dist/types/onchain/accounts/intents/tests/finish-withdraw.fixtures.d.ts +135 -0
  121. package/dist/types/onchain/accounts/intents/tests/open-strategy.fixtures.d.ts +53 -0
  122. package/dist/types/onchain/accounts/intents/tests/update-quota.fixtures.d.ts +46 -0
  123. package/dist/types/onchain/accounts/intents/tests/withdraw-asset.fixtures.d.ts +57 -0
  124. package/dist/types/onchain/accounts/intents/tests/withdraw.fixtures.d.ts +76 -0
  125. package/dist/types/onchain/accounts/intents/types.d.ts +584 -0
  126. package/dist/types/onchain/accounts/intents/utils/adjust-state-to-snapshot.d.ts +10 -0
  127. package/dist/types/onchain/accounts/intents/utils/assemble-operation-calls.d.ts +8 -0
  128. package/dist/types/onchain/accounts/intents/utils/common.d.ts +30 -0
  129. package/dist/types/onchain/accounts/intents/utils/credit-account-slice.d.ts +39 -0
  130. package/dist/types/onchain/accounts/intents/utils/index.d.ts +11 -0
  131. package/dist/types/onchain/accounts/intents/utils/ledger.d.ts +38 -0
  132. package/dist/types/onchain/accounts/intents/utils/pick-token.d.ts +52 -0
  133. package/dist/types/onchain/accounts/intents/utils/price-impact.d.ts +50 -0
  134. package/dist/types/onchain/accounts/intents/utils/quotas-for-update.d.ts +92 -0
  135. package/dist/types/onchain/accounts/intents/utils/router-path.d.ts +87 -0
  136. package/dist/types/onchain/accounts/intents/view.d.ts +12 -0
  137. package/dist/types/onchain/accounts/intents/withdraw-limits.d.ts +84 -0
  138. package/dist/types/onchain/accounts/liquidations/LiquidationsService.d.ts +89 -0
  139. package/dist/types/onchain/accounts/liquidations/MultichainLiquidationsService.d.ts +55 -0
  140. package/dist/types/onchain/accounts/liquidations/index.d.ts +6 -0
  141. package/dist/types/onchain/accounts/liquidations/partialLiquidation.d.ts +86 -0
  142. package/dist/types/onchain/accounts/liquidations/skipLiquidatableAccount.d.ts +8 -0
  143. package/dist/types/onchain/accounts/liquidations/types.d.ts +248 -0
  144. package/dist/types/onchain/accounts/multicall-utils.d.ts +40 -0
  145. package/dist/types/onchain/accounts/quota-utils.d.ts +96 -0
  146. package/dist/types/onchain/accounts/types.d.ts +575 -0
  147. package/dist/types/onchain/accounts/withdrawal-compressor/AbstractWithdrawalCompressorContract.d.ts +118 -0
  148. package/dist/types/onchain/accounts/withdrawal-compressor/RedemptionLoggerV310Contract.d.ts +154 -0
  149. package/dist/types/onchain/accounts/withdrawal-compressor/WithdrawalCompressorV310Contract.d.ts +334 -0
  150. package/dist/types/onchain/accounts/withdrawal-compressor/WithdrawalCompressorV311Contract.d.ts +338 -0
  151. package/dist/types/onchain/accounts/withdrawal-compressor/WithdrawalCompressorV313Contract.d.ts +653 -0
  152. package/dist/types/onchain/accounts/withdrawal-compressor/addresses.d.ts +20 -0
  153. package/dist/types/onchain/accounts/withdrawal-compressor/createRedemptionLogger.d.ts +10 -0
  154. package/dist/types/onchain/accounts/withdrawal-compressor/createWithdrawalCompressor.d.ts +10 -0
  155. package/dist/types/onchain/accounts/withdrawal-compressor/index.d.ts +11 -0
  156. package/dist/types/onchain/accounts/withdrawal-compressor/intent-codec.d.ts +27 -0
  157. package/dist/types/onchain/accounts/withdrawal-compressor/types.d.ts +409 -0
  158. package/dist/types/onchain/base/BaseContract.d.ts +190 -0
  159. package/dist/types/onchain/base/ChainContractsRegister.d.ts +131 -0
  160. package/dist/types/onchain/base/Construct.d.ts +71 -0
  161. package/dist/types/onchain/base/MultichainConstruct.d.ts +103 -0
  162. package/dist/types/onchain/base/SDKConstruct.d.ts +18 -0
  163. package/dist/types/onchain/base/TokensMeta.d.ts +211 -0
  164. package/dist/types/onchain/base/index.d.ts +10 -0
  165. package/dist/types/onchain/base/token-types.d.ts +77 -0
  166. package/dist/types/onchain/base/types.d.ts +490 -0
  167. package/dist/types/onchain/chain/chains.d.ts +242 -0
  168. package/dist/types/onchain/chain/detectNetwork.d.ts +10 -0
  169. package/dist/types/onchain/chain/index.d.ts +3 -0
  170. package/dist/types/onchain/constants/index.d.ts +8 -0
  171. package/dist/types/onchain/constants/networks.d.ts +4 -0
  172. package/dist/types/onchain/core/AbstractAddressProviderContract.d.ts +42 -0
  173. package/dist/types/onchain/core/AddressProviderV310Contract.d.ts +262 -0
  174. package/dist/types/onchain/core/createAddressProvider.d.ts +5 -0
  175. package/dist/types/onchain/core/errors.d.ts +72 -0
  176. package/dist/types/onchain/core/index.d.ts +5 -0
  177. package/dist/types/onchain/core/types.d.ts +79 -0
  178. package/dist/types/onchain/index.d.ts +357 -0
  179. package/dist/types/onchain/market/MarketConfiguratorContract.d.ts +1552 -0
  180. package/dist/types/onchain/market/MarketRegister.d.ts +143 -0
  181. package/dist/types/onchain/market/MarketSuite.d.ts +208 -0
  182. package/dist/types/onchain/market/ZapperRegister.d.ts +60 -0
  183. package/dist/types/onchain/market/adapters/abi/actionAbi.d.ts +22 -0
  184. package/dist/types/onchain/market/adapters/abi/adapters/index.d.ts +39 -0
  185. package/dist/types/onchain/market/adapters/abi/conctructorAbi.d.ts +7 -0
  186. package/dist/types/onchain/market/adapters/abi/index.d.ts +54 -0
  187. package/dist/types/onchain/market/adapters/abi/midas/index.d.ts +2 -0
  188. package/dist/types/onchain/market/adapters/abi/securitize/index.d.ts +4 -0
  189. package/dist/types/onchain/market/adapters/abi/treehouse/index.d.ts +4 -0
  190. package/dist/types/onchain/market/adapters/abi/utils.d.ts +30 -0
  191. package/dist/types/onchain/market/adapters/contracts/AbstractAdapter.d.ts +138 -0
  192. package/dist/types/onchain/market/adapters/contracts/AbstractCurveAdapter.d.ts +20 -0
  193. package/dist/types/onchain/market/adapters/contracts/AccountMigratorAdapterContract.d.ts +482 -0
  194. package/dist/types/onchain/market/adapters/contracts/BalancerV3RouterAdapterContract.d.ts +457 -0
  195. package/dist/types/onchain/market/adapters/contracts/BalancerV3WrapperAdapterContract.d.ts +170 -0
  196. package/dist/types/onchain/market/adapters/contracts/CamelotV3AdapterContract.d.ts +661 -0
  197. package/dist/types/onchain/market/adapters/contracts/ConvexV1BaseRewardPoolAdapterContract.d.ts +698 -0
  198. package/dist/types/onchain/market/adapters/contracts/ConvexV1BoosterAdapterContract.d.ts +429 -0
  199. package/dist/types/onchain/market/adapters/contracts/Curve2AssetsAdapterContract.d.ts +1778 -0
  200. package/dist/types/onchain/market/adapters/contracts/Curve3AssetsAdapterContract.d.ts +1778 -0
  201. package/dist/types/onchain/market/adapters/contracts/Curve4AssetsAdapterContract.d.ts +1778 -0
  202. package/dist/types/onchain/market/adapters/contracts/CurveV1AdapterStETHContract.d.ts +1765 -0
  203. package/dist/types/onchain/market/adapters/contracts/CurveV1StableNGAdapterContract.d.ts +1748 -0
  204. package/dist/types/onchain/market/adapters/contracts/DaiUsdsAdapterContract.d.ts +213 -0
  205. package/dist/types/onchain/market/adapters/contracts/ERC4626AdapterContract.d.ts +693 -0
  206. package/dist/types/onchain/market/adapters/contracts/ERC4626ReferralAdapterContract.d.ts +307 -0
  207. package/dist/types/onchain/market/adapters/contracts/FluidDexAdapterContract.d.ts +258 -0
  208. package/dist/types/onchain/market/adapters/contracts/InfinifiGatewayAdapterContract.d.ts +489 -0
  209. package/dist/types/onchain/market/adapters/contracts/InfinifiUnwindingGatewayAdapterContract.d.ts +365 -0
  210. package/dist/types/onchain/market/adapters/contracts/KelpLRTDepositPoolAdapterContract.d.ts +255 -0
  211. package/dist/types/onchain/market/adapters/contracts/KelpLRTWithdrawalManagerAdapterContract.d.ts +374 -0
  212. package/dist/types/onchain/market/adapters/contracts/LidoV1AdapterContract.d.ts +222 -0
  213. package/dist/types/onchain/market/adapters/contracts/MellowClaimerAdapterContract.d.ts +300 -0
  214. package/dist/types/onchain/market/adapters/contracts/MellowDVVAdapterContract.d.ts +718 -0
  215. package/dist/types/onchain/market/adapters/contracts/MellowERC4626VaultAdapterContract.d.ts +698 -0
  216. package/dist/types/onchain/market/adapters/contracts/MellowWrapperAdapterContract.d.ts +214 -0
  217. package/dist/types/onchain/market/adapters/contracts/MidasGatewayAdapterContract.d.ts +676 -0
  218. package/dist/types/onchain/market/adapters/contracts/MidasIssuanceVaultAdapterContract.d.ts +248 -0
  219. package/dist/types/onchain/market/adapters/contracts/MidasRedemptionVaultAdapterContract.d.ts +488 -0
  220. package/dist/types/onchain/market/adapters/contracts/PendleRouterAdapterContract.d.ts +2413 -0
  221. package/dist/types/onchain/market/adapters/contracts/SecuritizeOnRampAdapterContract.d.ts +452 -0
  222. package/dist/types/onchain/market/adapters/contracts/SecuritizeRedemptionGatewayAdapterContract.d.ts +512 -0
  223. package/dist/types/onchain/market/adapters/contracts/StakingRewardsAdapterContract.d.ts +286 -0
  224. package/dist/types/onchain/market/adapters/contracts/TraderJoeRouterAdapterContract.d.ts +489 -0
  225. package/dist/types/onchain/market/adapters/contracts/TreehouseFastlaneAdapterContract.d.ts +154 -0
  226. package/dist/types/onchain/market/adapters/contracts/TreehouseRedemptionGatewayAdapterContract.d.ts +479 -0
  227. package/dist/types/onchain/market/adapters/contracts/TreehouseRouterAdapterContract.d.ts +191 -0
  228. package/dist/types/onchain/market/adapters/contracts/UniswapV2AdapterContract.d.ts +973 -0
  229. package/dist/types/onchain/market/adapters/contracts/UniswapV3AdapterContract.d.ts +565 -0
  230. package/dist/types/onchain/market/adapters/contracts/UniswapV4AdapterContract.d.ts +429 -0
  231. package/dist/types/onchain/market/adapters/contracts/UpshiftVaultAdapterContract.d.ts +362 -0
  232. package/dist/types/onchain/market/adapters/contracts/VelodromeV2AdapterContract.d.ts +367 -0
  233. package/dist/types/onchain/market/adapters/contracts/WstETHV1AdapterContract.d.ts +401 -0
  234. package/dist/types/onchain/market/adapters/contracts/index.d.ts +43 -0
  235. package/dist/types/onchain/market/adapters/createAdapter.d.ts +8 -0
  236. package/dist/types/onchain/market/adapters/index.d.ts +99 -0
  237. package/dist/types/onchain/market/adapters/transferHelpers.d.ts +60 -0
  238. package/dist/types/onchain/market/adapters/types.d.ts +116 -0
  239. package/dist/types/onchain/market/credit/CreditConfiguratorV310Contract.d.ts +499 -0
  240. package/dist/types/onchain/market/credit/CreditFacadeV310BaseContract.d.ts +856 -0
  241. package/dist/types/onchain/market/credit/CreditFacadeV310Contract.d.ts +74 -0
  242. package/dist/types/onchain/market/credit/CreditManagerV310Contract.d.ts +1013 -0
  243. package/dist/types/onchain/market/credit/CreditSuite.d.ts +254 -0
  244. package/dist/types/onchain/market/credit/CreditSuiteStrategy.d.ts +75 -0
  245. package/dist/types/onchain/market/credit/collateralUtils.d.ts +94 -0
  246. package/dist/types/onchain/market/credit/createCreditConfigurator.d.ts +5 -0
  247. package/dist/types/onchain/market/credit/createCreditFacade.d.ts +5 -0
  248. package/dist/types/onchain/market/credit/createCreditManager.d.ts +5 -0
  249. package/dist/types/onchain/market/credit/expectedBalanceDeltas.d.ts +36 -0
  250. package/dist/types/onchain/market/credit/index.d.ts +10 -0
  251. package/dist/types/onchain/market/credit/types.d.ts +296 -0
  252. package/dist/types/onchain/market/index.d.ts +170 -0
  253. package/dist/types/onchain/market/loss-policy/AliasLossPolicyV310Contract.d.ts +295 -0
  254. package/dist/types/onchain/market/loss-policy/LossPolicyContract.d.ts +138 -0
  255. package/dist/types/onchain/market/loss-policy/createLossPolicy.d.ts +5 -0
  256. package/dist/types/onchain/market/loss-policy/index.d.ts +5 -0
  257. package/dist/types/onchain/market/loss-policy/types.d.ts +15 -0
  258. package/dist/types/onchain/market/math.d.ts +270 -0
  259. package/dist/types/onchain/market/oracle/PriceFeedAnswerMap.d.ts +8 -0
  260. package/dist/types/onchain/market/oracle/PriceOracleBaseContract.d.ts +146 -0
  261. package/dist/types/onchain/market/oracle/PriceOracleV310Contract.d.ts +350 -0
  262. package/dist/types/onchain/market/oracle/collateralPriceInUnderlying.d.ts +16 -0
  263. package/dist/types/onchain/market/oracle/createPriceOracle.d.ts +5 -0
  264. package/dist/types/onchain/market/oracle/index.d.ts +5 -0
  265. package/dist/types/onchain/market/oracle/types.d.ts +257 -0
  266. package/dist/types/onchain/market/pool/GaugeContract.d.ts +403 -0
  267. package/dist/types/onchain/market/pool/LinearInterestRateModelContract.d.ts +143 -0
  268. package/dist/types/onchain/market/pool/PoolQuotaKeeperV310Contract.d.ts +510 -0
  269. package/dist/types/onchain/market/pool/PoolSuite.d.ts +123 -0
  270. package/dist/types/onchain/market/pool/PoolV310Contract.d.ts +1186 -0
  271. package/dist/types/onchain/market/pool/TumblerContract.d.ts +193 -0
  272. package/dist/types/onchain/market/pool/createInterestRateModel.d.ts +5 -0
  273. package/dist/types/onchain/market/pool/createPool.d.ts +5 -0
  274. package/dist/types/onchain/market/pool/createPoolQuotaKeeper.d.ts +5 -0
  275. package/dist/types/onchain/market/pool/createRateKeeper.d.ts +5 -0
  276. package/dist/types/onchain/market/pool/index.d.ts +6 -0
  277. package/dist/types/onchain/market/pool/math.d.ts +64 -0
  278. package/dist/types/onchain/market/pool/types.d.ts +174 -0
  279. package/dist/types/onchain/market/pricefeeds/AbstractLPPriceFeed.d.ts +16 -0
  280. package/dist/types/onchain/market/pricefeeds/AbstractPriceFeed.d.ts +42 -0
  281. package/dist/types/onchain/market/pricefeeds/PriceFeedRef.d.ts +37 -0
  282. package/dist/types/onchain/market/pricefeeds/PriceFeedRegistry.d.ts +57 -0
  283. package/dist/types/onchain/market/pricefeeds/feeds/BalancerStablePriceFeed.d.ts +10 -0
  284. package/dist/types/onchain/market/pricefeeds/feeds/BalancerWeightedPriceFeed.d.ts +16 -0
  285. package/dist/types/onchain/market/pricefeeds/feeds/BoundedPriceFeed.d.ts +13 -0
  286. package/dist/types/onchain/market/pricefeeds/feeds/CompositePriceFeed.d.ts +12 -0
  287. package/dist/types/onchain/market/pricefeeds/feeds/ConstantPriceFeed.d.ts +12 -0
  288. package/dist/types/onchain/market/pricefeeds/feeds/CurveCryptoPriceFeed.d.ts +10 -0
  289. package/dist/types/onchain/market/pricefeeds/feeds/CurveStablePriceFeed.d.ts +10 -0
  290. package/dist/types/onchain/market/pricefeeds/feeds/CurveUSDPriceFeed.d.ts +10 -0
  291. package/dist/types/onchain/market/pricefeeds/feeds/Erc4626PriceFeed.d.ts +10 -0
  292. package/dist/types/onchain/market/pricefeeds/feeds/ExternalPriceFeed.d.ts +9 -0
  293. package/dist/types/onchain/market/pricefeeds/feeds/MellowLRTPriceFeed.d.ts +10 -0
  294. package/dist/types/onchain/market/pricefeeds/feeds/PendleTWAPPTPriceFeed.d.ts +215 -0
  295. package/dist/types/onchain/market/pricefeeds/feeds/PythPriceFeed.d.ts +224 -0
  296. package/dist/types/onchain/market/pricefeeds/feeds/RedstonePriceFeed.d.ts +20 -0
  297. package/dist/types/onchain/market/pricefeeds/feeds/WstETHPriceFeed.d.ts +10 -0
  298. package/dist/types/onchain/market/pricefeeds/feeds/YearnPriceFeed.d.ts +10 -0
  299. package/dist/types/onchain/market/pricefeeds/feeds/ZeroPriceFeed.d.ts +9 -0
  300. package/dist/types/onchain/market/pricefeeds/feeds/index.d.ts +18 -0
  301. package/dist/types/onchain/market/pricefeeds/index.d.ts +31 -0
  302. package/dist/types/onchain/market/pricefeeds/types.d.ts +97 -0
  303. package/dist/types/onchain/market/pricefeeds/updates/PriceUpdateTx.d.ts +14 -0
  304. package/dist/types/onchain/market/pricefeeds/updates/PriceUpdatesCache.d.ts +17 -0
  305. package/dist/types/onchain/market/pricefeeds/updates/UpdatablePriceFeedRegistry.d.ts +109 -0
  306. package/dist/types/onchain/market/pricefeeds/updates/getRawPriceUpdates.d.ts +3 -0
  307. package/dist/types/onchain/market/pricefeeds/updates/index.d.ts +7 -0
  308. package/dist/types/onchain/market/pricefeeds/updates/isUpdatablePriceFeed.d.ts +3 -0
  309. package/dist/types/onchain/market/pricefeeds/updates/types.d.ts +70 -0
  310. package/dist/types/onchain/market/pricefeeds/updates/updatableDependencies.d.ts +7 -0
  311. package/dist/types/onchain/market/rwa/RWARegistry.d.ts +70 -0
  312. package/dist/types/onchain/market/rwa/createDegenNFT.d.ts +9 -0
  313. package/dist/types/onchain/market/rwa/index.d.ts +13 -0
  314. package/dist/types/onchain/market/rwa/midas/MidasDegenNFT.d.ts +111 -0
  315. package/dist/types/onchain/market/rwa/midas/MidasLiquidatorContract.d.ts +91 -0
  316. package/dist/types/onchain/market/rwa/midas/index.d.ts +4 -0
  317. package/dist/types/onchain/market/rwa/securitize/SecuritizeDegenNFT.d.ts +439 -0
  318. package/dist/types/onchain/market/rwa/securitize/SecuritizeLiquidatorContract.d.ts +102 -0
  319. package/dist/types/onchain/market/rwa/securitize/SecuritizeRWAFactory.d.ts +505 -0
  320. package/dist/types/onchain/market/rwa/securitize/index.d.ts +6 -0
  321. package/dist/types/onchain/market/rwa/securitize/types.d.ts +62 -0
  322. package/dist/types/onchain/market/rwa/types.d.ts +214 -0
  323. package/dist/types/onchain/market/strategyName.d.ts +13 -0
  324. package/dist/types/onchain/market/types.d.ts +14 -0
  325. package/dist/types/onchain/market/zapper/IERC20ZapperContract.d.ts +405 -0
  326. package/dist/types/onchain/market/zapper/IETHZapperContract.d.ts +241 -0
  327. package/dist/types/onchain/market/zapper/ZapperContract.d.ts +41 -0
  328. package/dist/types/onchain/market/zapper/createZapper.d.ts +4 -0
  329. package/dist/types/onchain/market/zapper/index.d.ts +6 -0
  330. package/dist/types/onchain/market/zapper/types.d.ts +69 -0
  331. package/dist/types/onchain/opportunities/MultichainOpportunitiesService.d.ts +42 -0
  332. package/dist/types/onchain/opportunities/OpportunitiesService.d.ts +50 -0
  333. package/dist/types/onchain/opportunities/index.d.ts +4 -0
  334. package/dist/types/onchain/opportunities/types.d.ts +35 -0
  335. package/dist/types/onchain/options.d.ts +40 -0
  336. package/dist/types/onchain/plugins/BasePlugin.d.ts +65 -0
  337. package/dist/types/onchain/plugins/errors.d.ts +4 -0
  338. package/dist/types/onchain/plugins/index.d.ts +4 -0
  339. package/dist/types/onchain/plugins/types.d.ts +120 -0
  340. package/dist/types/onchain/pools/PoolService.d.ts +62 -0
  341. package/dist/types/onchain/pools/index.d.ts +3 -0
  342. package/dist/types/onchain/pools/types.d.ts +288 -0
  343. package/dist/types/onchain/positions/MultichainPositionsService.d.ts +26 -0
  344. package/dist/types/onchain/positions/PositionsService.d.ts +112 -0
  345. package/dist/types/onchain/positions/calcBorrowRate.d.ts +43 -0
  346. package/dist/types/onchain/positions/calcHealthFactor.d.ts +56 -0
  347. package/dist/types/onchain/positions/calcLiquidationPrice.d.ts +18 -0
  348. package/dist/types/onchain/positions/calcLiquidationPriceForTarget.d.ts +40 -0
  349. package/dist/types/onchain/positions/calcTimeToLiquidationMs.d.ts +13 -0
  350. package/dist/types/onchain/positions/index.d.ts +9 -0
  351. package/dist/types/onchain/positions/types.d.ts +130 -0
  352. package/dist/types/onchain/preview/index.d.ts +25 -0
  353. package/dist/types/onchain/preview/parse/classifyInnerOperations.d.ts +22 -0
  354. package/dist/types/onchain/preview/parse/index.d.ts +11 -0
  355. package/dist/types/onchain/preview/parse/parseFacadeOperationCalldata.d.ts +21 -0
  356. package/dist/types/onchain/preview/parse/parseOperationCalldata.d.ts +15 -0
  357. package/dist/types/onchain/preview/parse/parsePoolOperationCalldata.d.ts +18 -0
  358. package/dist/types/onchain/preview/parse/parseRWAFactoryOperationCalldata.d.ts +15 -0
  359. package/dist/types/onchain/preview/parse/types-adapters.d.ts +63 -0
  360. package/dist/types/onchain/preview/parse/types-facades.d.ts +148 -0
  361. package/dist/types/onchain/preview/parse/types-rwa.d.ts +37 -0
  362. package/dist/types/onchain/preview/parse/types.d.ts +22 -0
  363. package/dist/types/onchain/preview/preview/CreditAccountState.d.ts +92 -0
  364. package/dist/types/onchain/preview/preview/buildDelayedStrategyPositionOperationPreview.d.ts +30 -0
  365. package/dist/types/onchain/preview/preview/detectCloseOrRepay.d.ts +23 -0
  366. package/dist/types/onchain/preview/preview/detectDelayedClaim.d.ts +50 -0
  367. package/dist/types/onchain/preview/preview/detectDelayedOperation.d.ts +36 -0
  368. package/dist/types/onchain/preview/preview/estimateClaimableAt.d.ts +16 -0
  369. package/dist/types/onchain/preview/preview/index.d.ts +13 -0
  370. package/dist/types/onchain/preview/preview/midasGreenlistsAccount.d.ts +10 -0
  371. package/dist/types/onchain/preview/preview/previewAdjustStrategyPosition.d.ts +17 -0
  372. package/dist/types/onchain/preview/preview/previewExitOrRepayStrategyPosition.d.ts +18 -0
  373. package/dist/types/onchain/preview/preview/previewOpenStrategyPosition.d.ts +14 -0
  374. package/dist/types/onchain/preview/preview/previewOperation.d.ts +29 -0
  375. package/dist/types/onchain/preview/preview/previewPoolPositionOperation.d.ts +10 -0
  376. package/dist/types/onchain/preview/preview/replayInnerOperations.d.ts +48 -0
  377. package/dist/types/onchain/preview/preview/replayMulticall.d.ts +42 -0
  378. package/dist/types/onchain/preview/preview/unwrapNativeCollateral.d.ts +26 -0
  379. package/dist/types/onchain/router/AbstractRouterContract.d.ts +45 -0
  380. package/dist/types/onchain/router/RouterV310Contract.d.ts +934 -0
  381. package/dist/types/onchain/router/createRouter.d.ts +4 -0
  382. package/dist/types/onchain/router/helpers.d.ts +12 -0
  383. package/dist/types/onchain/router/index.d.ts +5 -0
  384. package/dist/types/onchain/router/types.d.ts +282 -0
  385. package/dist/types/onchain/types/index.d.ts +6 -0
  386. package/dist/types/onchain/types/multichain.d.ts +42 -0
  387. package/dist/types/onchain/types/state-human.d.ts +226 -0
  388. package/dist/types/onchain/types/state.d.ts +89 -0
  389. package/dist/types/onchain/utils/AssetsMap.d.ts +44 -0
  390. package/dist/types/onchain/utils/childLogger.d.ts +3 -0
  391. package/dist/types/onchain/utils/createRawTx.d.ts +11 -0
  392. package/dist/types/onchain/utils/etherscan.d.ts +14 -0
  393. package/dist/types/onchain/utils/filterDust.d.ts +19 -0
  394. package/dist/types/onchain/utils/index.d.ts +21 -0
  395. package/dist/types/onchain/utils/internal/index.d.ts +2 -0
  396. package/dist/types/onchain/utils/isDust.d.ts +18 -0
  397. package/dist/types/onchain/utils/toAddress.d.ts +4 -0
  398. package/dist/types/onchain/utils/viem/executeDelegatedMulticalls.d.ts +29 -0
  399. package/dist/types/onchain/utils/viem/index.d.ts +9 -0
  400. package/dist/types/onchain/utils/viem/sendRawTx.d.ts +12 -0
  401. package/dist/types/onchain/utils/viem/simulateWithPriceUpdates.d.ts +42 -0
  402. package/dist/types/onchain/validation/bundles/checkAccountQuotas.d.ts +13 -0
  403. package/dist/types/onchain/validation/bundles/checkCollateralFunding.d.ts +19 -0
  404. package/dist/types/onchain/validation/bundles/checkCreditOperation.d.ts +29 -0
  405. package/dist/types/onchain/validation/bundles/checkHealthFactors.d.ts +36 -0
  406. package/dist/types/onchain/validation/bundles/checkIncreaseDebt.d.ts +17 -0
  407. package/dist/types/onchain/validation/bundles/checkIncreaseQuota.d.ts +7 -0
  408. package/dist/types/onchain/validation/bundles/checkLiquidationEligibility.d.ts +18 -0
  409. package/dist/types/onchain/validation/bundles/checkLiquidationFunding.d.ts +16 -0
  410. package/dist/types/onchain/validation/bundles/checkMarket.d.ts +12 -0
  411. package/dist/types/onchain/validation/bundles/checkMidasAccountGreenlist.d.ts +19 -0
  412. package/dist/types/onchain/validation/bundles/checkObtained.d.ts +6 -0
  413. package/dist/types/onchain/validation/bundles/checkPoolFunding.d.ts +16 -0
  414. package/dist/types/onchain/validation/bundles/checkPoolOperation.d.ts +22 -0
  415. package/dist/types/onchain/validation/bundles/checkQuotaUpdates.d.ts +13 -0
  416. package/dist/types/onchain/validation/bundles/checkRWAOpenRequirements.d.ts +18 -0
  417. package/dist/types/onchain/validation/bundles/checkRWAOpening.d.ts +18 -0
  418. package/dist/types/onchain/validation/bundles/checkWallet.d.ts +20 -0
  419. package/dist/types/onchain/validation/bundles/checkWalletAllowance.d.ts +15 -0
  420. package/dist/types/onchain/validation/bundles/checkWalletBalance.d.ts +14 -0
  421. package/dist/types/onchain/validation/bundles/index.d.ts +20 -0
  422. package/dist/types/onchain/validation/checkLiquidation.d.ts +21 -0
  423. package/dist/types/onchain/validation/checkOperation.d.ts +29 -0
  424. package/dist/types/onchain/validation/checkSimulation.d.ts +42 -0
  425. package/dist/types/onchain/validation/checks/checkBorrowLimit.d.ts +18 -0
  426. package/dist/types/onchain/validation/checks/checkCollateralised.d.ts +22 -0
  427. package/dist/types/onchain/validation/checks/checkCreditAccountFrozen.d.ts +9 -0
  428. package/dist/types/onchain/validation/checks/checkCreditManagerPaused.d.ts +9 -0
  429. package/dist/types/onchain/validation/checks/checkDebtLimits.d.ts +22 -0
  430. package/dist/types/onchain/validation/checks/checkEmergencyLiquidator.d.ts +14 -0
  431. package/dist/types/onchain/validation/checks/checkForbiddenToken.d.ts +9 -0
  432. package/dist/types/onchain/validation/checks/checkLeverage.d.ts +9 -0
  433. package/dist/types/onchain/validation/checks/checkLiquidatorEligible.d.ts +10 -0
  434. package/dist/types/onchain/validation/checks/checkMarketExpired.d.ts +11 -0
  435. package/dist/types/onchain/validation/checks/checkMaxQuota.d.ts +13 -0
  436. package/dist/types/onchain/validation/checks/checkPartiallyLiquidatable.d.ts +14 -0
  437. package/dist/types/onchain/validation/checks/checkPoolLiquidity.d.ts +10 -0
  438. package/dist/types/onchain/validation/checks/checkPoolPaused.d.ts +9 -0
  439. package/dist/types/onchain/validation/checks/checkPoolSunset.d.ts +10 -0
  440. package/dist/types/onchain/validation/checks/checkQuotaActive.d.ts +10 -0
  441. package/dist/types/onchain/validation/checks/checkQuotaChange.d.ts +14 -0
  442. package/dist/types/onchain/validation/checks/checkQuotaCount.d.ts +8 -0
  443. package/dist/types/onchain/validation/checks/checkQuotaLimit.d.ts +15 -0
  444. package/dist/types/onchain/validation/checks/checkReservePriceLimited.d.ts +28 -0
  445. package/dist/types/onchain/validation/checks/index.d.ts +21 -0
  446. package/dist/types/onchain/validation/helpers/amount.d.ts +4 -0
  447. package/dist/types/onchain/validation/helpers/index.d.ts +4 -0
  448. package/dist/types/onchain/validation/helpers/token.d.ts +14 -0
  449. package/dist/types/onchain/validation/index.d.ts +50 -0
  450. package/dist/types/onchain/validation/raise.d.ts +30 -0
  451. package/dist/types/permissionless/api/GearboxPermissionless.d.ts +74 -0
  452. package/dist/types/permissionless/api/analytics/PermissionlessAnalytics.d.ts +36 -0
  453. package/dist/types/permissionless/api/analytics/index.d.ts +3 -0
  454. package/dist/types/permissionless/api/analytics/types.d.ts +36 -0
  455. package/dist/types/permissionless/api/chains/ChainsNamespace.d.ts +96 -0
  456. package/dist/types/permissionless/api/chains/index.d.ts +3 -0
  457. package/dist/types/permissionless/api/deploy/PermissionlessDeploy.d.ts +66 -0
  458. package/dist/types/permissionless/api/deploy/index.d.ts +4 -0
  459. package/dist/types/permissionless/api/deploy/types.d.ts +84 -0
  460. package/dist/types/permissionless/api/index.d.ts +32 -0
  461. package/dist/types/permissionless/api/oracles/PermissionlessOracles.d.ts +342 -0
  462. package/dist/types/permissionless/api/oracles/enrich.d.ts +57 -0
  463. package/dist/types/permissionless/api/oracles/index.d.ts +13 -0
  464. package/dist/types/permissionless/api/oracles/onchain-feed.d.ts +13 -0
  465. package/dist/types/permissionless/api/oracles/score/formula.d.ts +34 -0
  466. package/dist/types/permissionless/api/oracles/score/index.d.ts +4 -0
  467. package/dist/types/permissionless/api/oracles/score/run.d.ts +40 -0
  468. package/dist/types/permissionless/api/oracles/stress/classify.d.ts +55 -0
  469. package/dist/types/permissionless/api/oracles/stress/index.d.ts +6 -0
  470. package/dist/types/permissionless/api/oracles/stress/override.d.ts +57 -0
  471. package/dist/types/permissionless/api/oracles/stress/run.d.ts +98 -0
  472. package/dist/types/permissionless/api/oracles/stress/score.d.ts +55 -0
  473. package/dist/types/permissionless/api/oracles/types.d.ts +494 -0
  474. package/dist/types/permissionless/api/transactions/InstanceOwnerTransactions.d.ts +65 -0
  475. package/dist/types/permissionless/api/transactions/index.d.ts +3 -0
  476. package/dist/types/permissionless/api/transactions/lp-price-feeds.d.ts +22 -0
  477. package/dist/types/permissionless/api/transactions/types.d.ts +55 -0
  478. package/dist/types/permissionless/api/types.d.ts +24 -0
  479. package/dist/types/permissionless/bindings/address-provider.d.ts +9 -0
  480. package/dist/types/permissionless/bindings/bytecode-repository.d.ts +1364 -0
  481. package/dist/types/permissionless/bindings/compressors/index.d.ts +3 -0
  482. package/dist/types/permissionless/bindings/compressors/token-compressor.d.ts +119 -0
  483. package/dist/types/permissionless/bindings/compressors/withdrawal-compressor.d.ts +784 -0
  484. package/dist/types/permissionless/bindings/cross-chain-multisig.d.ts +838 -0
  485. package/dist/types/permissionless/bindings/factory/credit-factory.d.ts +224 -0
  486. package/dist/types/permissionless/bindings/factory/loss-policy-factory.d.ts +143 -0
  487. package/dist/types/permissionless/bindings/factory/pool-factory.d.ts +86 -0
  488. package/dist/types/permissionless/bindings/factory/price-oracle-factory.d.ts +38 -0
  489. package/dist/types/permissionless/bindings/factory/rate-keeper-factory.d.ts +179 -0
  490. package/dist/types/permissionless/bindings/governance/batches-chain.d.ts +40 -0
  491. package/dist/types/permissionless/bindings/governance/governor.d.ts +618 -0
  492. package/dist/types/permissionless/bindings/governance/index.d.ts +4 -0
  493. package/dist/types/permissionless/bindings/governance/timelock.d.ts +11 -0
  494. package/dist/types/permissionless/bindings/governance/types.d.ts +43 -0
  495. package/dist/types/permissionless/bindings/index.d.ts +21 -0
  496. package/dist/types/permissionless/bindings/instance-manager.d.ts +365 -0
  497. package/dist/types/permissionless/bindings/kill-switch-proxy.d.ts +203 -0
  498. package/dist/types/permissionless/bindings/market-configurator-factory.d.ts +275 -0
  499. package/dist/types/permissionless/bindings/market-configurator.d.ts +1699 -0
  500. package/dist/types/permissionless/bindings/price-feed-store.d.ts +608 -0
  501. package/dist/types/permissionless/bindings/pricefeeds/balancer-stable.d.ts +3 -0
  502. package/dist/types/permissionless/bindings/pricefeeds/balancer-weighted.d.ts +3 -0
  503. package/dist/types/permissionless/bindings/pricefeeds/bounded.d.ts +3 -0
  504. package/dist/types/permissionless/bindings/pricefeeds/composite.d.ts +3 -0
  505. package/dist/types/permissionless/bindings/pricefeeds/constant.d.ts +3 -0
  506. package/dist/types/permissionless/bindings/pricefeeds/curve-crypto.d.ts +3 -0
  507. package/dist/types/permissionless/bindings/pricefeeds/curve-stable.d.ts +3 -0
  508. package/dist/types/permissionless/bindings/pricefeeds/curve-twap.d.ts +3 -0
  509. package/dist/types/permissionless/bindings/pricefeeds/curve-usd.d.ts +3 -0
  510. package/dist/types/permissionless/bindings/pricefeeds/erc4626.d.ts +3 -0
  511. package/dist/types/permissionless/bindings/pricefeeds/external.d.ts +3 -0
  512. package/dist/types/permissionless/bindings/pricefeeds/index.d.ts +3 -0
  513. package/dist/types/permissionless/bindings/pricefeeds/kodiak.d.ts +3 -0
  514. package/dist/types/permissionless/bindings/pricefeeds/mellow-lrt.d.ts +3 -0
  515. package/dist/types/permissionless/bindings/pricefeeds/pendle-pt-twap.d.ts +3 -0
  516. package/dist/types/permissionless/bindings/pricefeeds/pyth.d.ts +3 -0
  517. package/dist/types/permissionless/bindings/pricefeeds/redstone.d.ts +3 -0
  518. package/dist/types/permissionless/bindings/pricefeeds/wsteth.d.ts +3 -0
  519. package/dist/types/permissionless/bindings/pricefeeds/zero.d.ts +3 -0
  520. package/dist/types/permissionless/bindings/router/index.d.ts +2 -0
  521. package/dist/types/permissionless/bindings/router/routing-manager.d.ts +503 -0
  522. package/dist/types/permissionless/bindings/treasury-splitter.d.ts +394 -0
  523. package/dist/types/permissionless/core/index.d.ts +7 -0
  524. package/dist/types/permissionless/core/proposal.d.ts +28 -0
  525. package/dist/types/permissionless/index.d.ts +66 -0
  526. package/dist/types/permissionless/plugins/index.d.ts +4 -0
  527. package/dist/types/permissionless/utils/create2.d.ts +18 -0
  528. package/dist/types/permissionless/utils/governance/batch.d.ts +19 -0
  529. package/dist/types/permissionless/utils/governance/index.d.ts +4 -0
  530. package/dist/types/permissionless/utils/governance/timelock-txs.d.ts +3 -0
  531. package/dist/types/permissionless/utils/governance/types.d.ts +21 -0
  532. package/dist/types/permissionless/utils/index.d.ts +15 -0
  533. package/dist/types/permissionless/utils/price-update/get-price-update-tx.d.ts +14 -0
  534. package/dist/types/permissionless/utils/price-update/get-updatable-feeds.d.ts +16 -0
  535. package/dist/types/permissionless/utils/price-update/index.d.ts +4 -0
  536. package/dist/types/plugins/accounts/AccountsPlugin.d.ts +23 -0
  537. package/dist/types/plugins/accounts/index.d.ts +2 -0
  538. package/dist/types/plugins/accounts-counter/AccountsCounterPlugin.d.ts +21 -0
  539. package/dist/types/plugins/accounts-counter/index.d.ts +2 -0
  540. package/dist/types/plugins/bots/BotsPlugin.d.ts +15 -0
  541. package/dist/types/plugins/bots/PartialLiquidationBotV310Contract.d.ts +214 -0
  542. package/dist/types/plugins/bots/abi/index.d.ts +2 -0
  543. package/dist/types/plugins/bots/config.d.ts +9 -0
  544. package/dist/types/plugins/bots/deserializePartialLiquidationBotParams.d.ts +4 -0
  545. package/dist/types/plugins/bots/index.d.ts +7 -0
  546. package/dist/types/plugins/bots/types.d.ts +50 -0
  547. package/dist/types/sdk/AbstractNamespace.d.ts +64 -0
  548. package/dist/types/sdk/GearboxSDK.d.ts +97 -0
  549. package/dist/types/sdk/analytics/AnalyticsNamespace.d.ts +14 -0
  550. package/dist/types/sdk/analytics/index.d.ts +3 -0
  551. package/dist/types/sdk/analytics/types.d.ts +28 -0
  552. package/dist/types/sdk/errors/AllSourcesFailedError.d.ts +8 -0
  553. package/dist/types/sdk/errors/MissingSourceError.d.ts +20 -0
  554. package/dist/types/sdk/errors/NoSourceServedError.d.ts +14 -0
  555. package/dist/types/sdk/errors/SourceChainMismatchError.d.ts +32 -0
  556. package/dist/types/sdk/errors/SourceUnavailableError.d.ts +19 -0
  557. package/dist/types/sdk/errors/assertSameChains.d.ts +8 -0
  558. package/dist/types/sdk/errors/everyChainFailed.d.ts +7 -0
  559. package/dist/types/sdk/errors/index.d.ts +11 -0
  560. package/dist/types/sdk/execute/ExecuteApi.d.ts +16 -0
  561. package/dist/types/sdk/execute/index.d.ts +3 -0
  562. package/dist/types/sdk/execute/types.d.ts +130 -0
  563. package/dist/types/sdk/index.d.ts +48 -0
  564. package/dist/types/sdk/liquidations/LiquidationsNamespace.d.ts +49 -0
  565. package/dist/types/sdk/liquidations/index.d.ts +3 -0
  566. package/dist/types/sdk/liquidations/types.d.ts +75 -0
  567. package/dist/types/sdk/opportunities/OpportunitiesNamespace.d.ts +69 -0
  568. package/dist/types/sdk/opportunities/index.d.ts +3 -0
  569. package/dist/types/sdk/opportunities/types.d.ts +140 -0
  570. package/dist/types/sdk/positions/PositionsNamespace.d.ts +52 -0
  571. package/dist/types/sdk/positions/index.d.ts +3 -0
  572. package/dist/types/sdk/positions/mergePositionList.d.ts +21 -0
  573. package/dist/types/sdk/positions/types.d.ts +112 -0
  574. package/dist/types/sdk/prepare/PrepareApi.d.ts +140 -0
  575. package/dist/types/sdk/prepare/index.d.ts +9 -0
  576. package/dist/types/sdk/prepare/types.d.ts +899 -0
  577. package/dist/types/sdk/prepare/withdrawable-collaterals.d.ts +8 -0
  578. package/dist/types/sdk/preview/PreviewNamespace.d.ts +30 -0
  579. package/dist/types/sdk/preview/index.d.ts +3 -0
  580. package/dist/types/sdk/preview/types.d.ts +48 -0
  581. package/dist/types/sdk/rewards/RewardsNamespace.d.ts +21 -0
  582. package/dist/types/sdk/rewards/errors.d.ts +20 -0
  583. package/dist/types/sdk/rewards/helpers.d.ts +42 -0
  584. package/dist/types/sdk/rewards/index.d.ts +6 -0
  585. package/dist/types/sdk/rewards/merkl-api.d.ts +57 -0
  586. package/dist/types/sdk/rewards/toMerklRewards.d.ts +10 -0
  587. package/dist/types/sdk/rewards/toTurtleRewards.d.ts +9 -0
  588. package/dist/types/sdk/rewards/turtle-api.d.ts +63 -0
  589. package/dist/types/sdk/rewards/types.d.ts +32 -0
  590. package/dist/types/sdk/types.d.ts +176 -0
  591. package/dist/types/sdk/utils/filterResponse.d.ts +16 -0
  592. package/dist/types/sdk/utils/index.d.ts +4 -0
  593. package/dist/types/sdk/utils/mergeChains.d.ts +19 -0
  594. package/dist/types/sdk/utils/types.d.ts +41 -0
  595. package/dist/types/testnets/TestnetsAPI.d.ts +106 -0
  596. package/dist/types/testnets/errors/TestnetNotFoundError.d.ts +10 -0
  597. package/dist/types/testnets/errors/TestnetRequestFailedError.d.ts +9 -0
  598. package/dist/types/testnets/errors/TestnetStatusError.d.ts +13 -0
  599. package/dist/types/testnets/errors/TestnetValidationError.d.ts +14 -0
  600. package/dist/types/testnets/errors/TestnetWaitTimeoutError.d.ts +19 -0
  601. package/dist/types/testnets/errors/index.d.ts +7 -0
  602. package/dist/types/testnets/index.d.ts +17 -0
  603. package/dist/types/testnets/types.d.ts +715 -0
  604. package/package.json +1 -1
  605. package/dist/types/dev/AccountOpener.d.mts +0 -109
  606. package/dist/types/dev/EthCallSpy.d.mts +0 -28
  607. package/dist/types/dev/RevolverTransport.d.mts +0 -212
  608. package/dist/types/dev/calcLiquidatableLTs.d.mts +0 -10
  609. package/dist/types/dev/claimFromFaucet.d.mts +0 -28
  610. package/dist/types/dev/create2.d.mts +0 -62
  611. package/dist/types/dev/index.d.mts +0 -30
  612. package/dist/types/dev/kycUtils.d.mts +0 -129
  613. package/dist/types/dev/lowerHealthFactor.d.mts +0 -32
  614. package/dist/types/dev/ltUtils.d.mts +0 -13
  615. package/dist/types/dev/midasUtils.d.mts +0 -63
  616. package/dist/types/dev/migrateFaucet.d.mts +0 -10
  617. package/dist/types/dev/mint/AbstractMinter.d.mts +0 -17
  618. package/dist/types/dev/mint/DealMinter.d.mts +0 -6
  619. package/dist/types/dev/mint/DirectMinter.d.mts +0 -6
  620. package/dist/types/dev/mint/FallbackMinter.d.mts +0 -11
  621. package/dist/types/dev/mint/TransferMinter.d.mts +0 -6
  622. package/dist/types/dev/mint/factory.d.mts +0 -6
  623. package/dist/types/dev/mint/index.d.mts +0 -3
  624. package/dist/types/dev/mode-parity/compareOpportunities.d.mts +0 -99
  625. package/dist/types/dev/mode-parity/comparePositions.d.mts +0 -144
  626. package/dist/types/dev/mode-parity/compareRules.d.mts +0 -30
  627. package/dist/types/dev/mode-parity/fieldDiff.d.mts +0 -209
  628. package/dist/types/dev/mode-parity/scriptUtils.d.mts +0 -69
  629. package/dist/types/dev/providers.d.mts +0 -63
  630. package/dist/types/dev/replaceStorage.d.mts +0 -23
  631. package/dist/types/dev/securitizeUtils.d.mts +0 -59
  632. package/dist/types/dev/withdrawalUtils.d.mts +0 -24
  633. package/dist/types/history/assembleOperations.d.mts +0 -33
  634. package/dist/types/history/classifyMulticallOperations.d.mts +0 -53
  635. package/dist/types/history/index.d.mts +0 -13
  636. package/dist/types/history/mapOperations.d.mts +0 -26
  637. package/dist/types/history/parseCreditAccountTransaction.d.mts +0 -28
  638. package/dist/types/history/populateContractsRegister.d.mts +0 -23
  639. package/dist/types/history/toLegacyOperation.d.mts +0 -18
  640. package/dist/types/history/trace/extractAdapterCallTraces.d.mts +0 -23
  641. package/dist/types/history/trace/extractTransfers.d.mts +0 -52
  642. package/dist/types/history/trace/findFacadeCalls.d.mts +0 -11
  643. package/dist/types/history/trace/index.d.mts +0 -6
  644. package/dist/types/history/trace/types.d.mts +0 -22
  645. package/dist/types/history/types.d.mts +0 -30
  646. package/dist/types/model/analytics.d.mts +0 -154
  647. package/dist/types/model/analytics.schema.d.mts +0 -464
  648. package/dist/types/model/charts.d.mts +0 -365
  649. package/dist/types/model/charts.schema.d.mts +0 -365
  650. package/dist/types/model/errors/index.d.mts +0 -7
  651. package/dist/types/model/errors/liquidation-errors.d.mts +0 -59
  652. package/dist/types/model/errors/operation-errors.d.mts +0 -349
  653. package/dist/types/model/errors/oracle-errors.d.mts +0 -16
  654. package/dist/types/model/errors/prepare-errors.d.mts +0 -119
  655. package/dist/types/model/errors/preview-errors.d.mts +0 -69
  656. package/dist/types/model/filters.d.mts +0 -33
  657. package/dist/types/model/filters.schema.d.mts +0 -23
  658. package/dist/types/model/index.d.mts +0 -35
  659. package/dist/types/model/liquidations.d.mts +0 -261
  660. package/dist/types/model/opportunities.d.mts +0 -671
  661. package/dist/types/model/positions.d.mts +0 -545
  662. package/dist/types/model/previews.d.mts +0 -592
  663. package/dist/types/model/response.d.mts +0 -102
  664. package/dist/types/model/response.schema.d.mts +0 -95
  665. package/dist/types/model/result.d.mts +0 -56
  666. package/dist/types/model/rewards.d.mts +0 -33
  667. package/dist/types/model/rwa.d.mts +0 -184
  668. package/dist/types/model/withdrawals.d.mts +0 -103
  669. package/dist/types/offchain/AbstractOffchainNamespace.d.mts +0 -73
  670. package/dist/types/offchain/GearboxAPI.d.mts +0 -42
  671. package/dist/types/offchain/analytics/OffchainAnalytics.d.mts +0 -20
  672. package/dist/types/offchain/analytics/OffchainAnalyticsPositions.d.mts +0 -14
  673. package/dist/types/offchain/analytics/index.d.mts +0 -4
  674. package/dist/types/offchain/analytics/types.d.mts +0 -38
  675. package/dist/types/offchain/errors/OffchainInvalidJsonError.d.mts +0 -13
  676. package/dist/types/offchain/errors/OffchainRequestFailedError.d.mts +0 -9
  677. package/dist/types/offchain/errors/OffchainStatusError.d.mts +0 -13
  678. package/dist/types/offchain/errors/index.d.mts +0 -15
  679. package/dist/types/offchain/index.d.mts +0 -31
  680. package/dist/types/offchain/opportunities/OffchainOpportunities.d.mts +0 -33
  681. package/dist/types/offchain/opportunities/index.d.mts +0 -3
  682. package/dist/types/offchain/opportunities/types.d.mts +0 -33
  683. package/dist/types/offchain/positions/OffchainPositions.d.mts +0 -31
  684. package/dist/types/offchain/positions/index.d.mts +0 -3
  685. package/dist/types/offchain/positions/types.d.mts +0 -33
  686. package/dist/types/offchain/types.d.mts +0 -25
  687. package/dist/types/onchain/MultichainSDK.d.mts +0 -157
  688. package/dist/types/onchain/OnchainSDK.d.mts +0 -309
  689. package/dist/types/onchain/abi/index.d.mts +0 -2
  690. package/dist/types/onchain/accounts/CreditAccountsServiceV310.d.mts +0 -151
  691. package/dist/types/onchain/accounts/bots/AccountBotsService.d.mts +0 -35
  692. package/dist/types/onchain/accounts/bots/PeripheryCompressorV310Contract.d.mts +0 -234
  693. package/dist/types/onchain/accounts/bots/index.d.mts +0 -4
  694. package/dist/types/onchain/accounts/bots/types.d.mts +0 -140
  695. package/dist/types/onchain/accounts/credit-account-compressor/CreditAccountCompressor.d.mts +0 -48
  696. package/dist/types/onchain/accounts/credit-account-compressor/CreditAccountCompressorV310Contract.d.mts +0 -877
  697. package/dist/types/onchain/accounts/credit-account-compressor/index.d.mts +0 -4
  698. package/dist/types/onchain/accounts/credit-account-compressor/types.d.mts +0 -147
  699. package/dist/types/onchain/accounts/index.d.mts +0 -37
  700. package/dist/types/onchain/accounts/intents/borrow.d.mts +0 -143
  701. package/dist/types/onchain/accounts/intents/collateral-valuation.d.mts +0 -41
  702. package/dist/types/onchain/accounts/intents/guards.d.mts +0 -103
  703. package/dist/types/onchain/accounts/intents/index.d.mts +0 -287
  704. package/dist/types/onchain/accounts/intents/leverage-band.d.mts +0 -57
  705. package/dist/types/onchain/accounts/intents/math.d.mts +0 -56
  706. package/dist/types/onchain/accounts/intents/maxBorrow.d.mts +0 -53
  707. package/dist/types/onchain/accounts/intents/maxBorrowAndWithdraw.d.mts +0 -10
  708. package/dist/types/onchain/accounts/intents/maxWithdrawCollateral.d.mts +0 -31
  709. package/dist/types/onchain/accounts/intents/open-strategy.d.mts +0 -86
  710. package/dist/types/onchain/accounts/intents/operations.d.mts +0 -221
  711. package/dist/types/onchain/accounts/intents/plan.d.mts +0 -227
  712. package/dist/types/onchain/accounts/intents/realize.d.mts +0 -47
  713. package/dist/types/onchain/accounts/intents/resolveQuotaUpdate.d.mts +0 -36
  714. package/dist/types/onchain/accounts/intents/strategyLimits.d.mts +0 -31
  715. package/dist/types/onchain/accounts/intents/tail.d.mts +0 -64
  716. package/dist/types/onchain/accounts/intents/tests/add-collateral.fixtures.d.mts +0 -42
  717. package/dist/types/onchain/accounts/intents/tests/adjust-leverage.fixtures.d.mts +0 -53
  718. package/dist/types/onchain/accounts/intents/tests/deposit.fixtures.d.mts +0 -61
  719. package/dist/types/onchain/accounts/intents/tests/finish-decrease-leverage.fixtures.d.mts +0 -107
  720. package/dist/types/onchain/accounts/intents/tests/finish-withdraw.fixtures.d.mts +0 -135
  721. package/dist/types/onchain/accounts/intents/tests/open-strategy.fixtures.d.mts +0 -53
  722. package/dist/types/onchain/accounts/intents/tests/update-quota.fixtures.d.mts +0 -46
  723. package/dist/types/onchain/accounts/intents/tests/withdraw-asset.fixtures.d.mts +0 -57
  724. package/dist/types/onchain/accounts/intents/tests/withdraw.fixtures.d.mts +0 -76
  725. package/dist/types/onchain/accounts/intents/types.d.mts +0 -584
  726. package/dist/types/onchain/accounts/intents/utils/adjust-state-to-snapshot.d.mts +0 -10
  727. package/dist/types/onchain/accounts/intents/utils/assemble-operation-calls.d.mts +0 -8
  728. package/dist/types/onchain/accounts/intents/utils/common.d.mts +0 -30
  729. package/dist/types/onchain/accounts/intents/utils/credit-account-slice.d.mts +0 -39
  730. package/dist/types/onchain/accounts/intents/utils/index.d.mts +0 -11
  731. package/dist/types/onchain/accounts/intents/utils/ledger.d.mts +0 -38
  732. package/dist/types/onchain/accounts/intents/utils/pick-token.d.mts +0 -52
  733. package/dist/types/onchain/accounts/intents/utils/price-impact.d.mts +0 -50
  734. package/dist/types/onchain/accounts/intents/utils/quotas-for-update.d.mts +0 -92
  735. package/dist/types/onchain/accounts/intents/utils/router-path.d.mts +0 -87
  736. package/dist/types/onchain/accounts/intents/view.d.mts +0 -12
  737. package/dist/types/onchain/accounts/intents/withdraw-limits.d.mts +0 -84
  738. package/dist/types/onchain/accounts/liquidations/LiquidationsService.d.mts +0 -89
  739. package/dist/types/onchain/accounts/liquidations/MultichainLiquidationsService.d.mts +0 -55
  740. package/dist/types/onchain/accounts/liquidations/index.d.mts +0 -6
  741. package/dist/types/onchain/accounts/liquidations/partialLiquidation.d.mts +0 -86
  742. package/dist/types/onchain/accounts/liquidations/skipLiquidatableAccount.d.mts +0 -8
  743. package/dist/types/onchain/accounts/liquidations/types.d.mts +0 -248
  744. package/dist/types/onchain/accounts/multicall-utils.d.mts +0 -40
  745. package/dist/types/onchain/accounts/quota-utils.d.mts +0 -96
  746. package/dist/types/onchain/accounts/types.d.mts +0 -575
  747. package/dist/types/onchain/accounts/withdrawal-compressor/AbstractWithdrawalCompressorContract.d.mts +0 -118
  748. package/dist/types/onchain/accounts/withdrawal-compressor/RedemptionLoggerV310Contract.d.mts +0 -154
  749. package/dist/types/onchain/accounts/withdrawal-compressor/WithdrawalCompressorV310Contract.d.mts +0 -334
  750. package/dist/types/onchain/accounts/withdrawal-compressor/WithdrawalCompressorV311Contract.d.mts +0 -338
  751. package/dist/types/onchain/accounts/withdrawal-compressor/WithdrawalCompressorV313Contract.d.mts +0 -653
  752. package/dist/types/onchain/accounts/withdrawal-compressor/addresses.d.mts +0 -20
  753. package/dist/types/onchain/accounts/withdrawal-compressor/createRedemptionLogger.d.mts +0 -10
  754. package/dist/types/onchain/accounts/withdrawal-compressor/createWithdrawalCompressor.d.mts +0 -10
  755. package/dist/types/onchain/accounts/withdrawal-compressor/index.d.mts +0 -11
  756. package/dist/types/onchain/accounts/withdrawal-compressor/intent-codec.d.mts +0 -27
  757. package/dist/types/onchain/accounts/withdrawal-compressor/types.d.mts +0 -409
  758. package/dist/types/onchain/base/BaseContract.d.mts +0 -190
  759. package/dist/types/onchain/base/ChainContractsRegister.d.mts +0 -131
  760. package/dist/types/onchain/base/Construct.d.mts +0 -71
  761. package/dist/types/onchain/base/MultichainConstruct.d.mts +0 -103
  762. package/dist/types/onchain/base/SDKConstruct.d.mts +0 -18
  763. package/dist/types/onchain/base/TokensMeta.d.mts +0 -211
  764. package/dist/types/onchain/base/index.d.mts +0 -10
  765. package/dist/types/onchain/base/token-types.d.mts +0 -77
  766. package/dist/types/onchain/base/types.d.mts +0 -490
  767. package/dist/types/onchain/chain/chains.d.mts +0 -242
  768. package/dist/types/onchain/chain/detectNetwork.d.mts +0 -10
  769. package/dist/types/onchain/chain/index.d.mts +0 -3
  770. package/dist/types/onchain/constants/index.d.mts +0 -8
  771. package/dist/types/onchain/constants/networks.d.mts +0 -4
  772. package/dist/types/onchain/core/AbstractAddressProviderContract.d.mts +0 -42
  773. package/dist/types/onchain/core/AddressProviderV310Contract.d.mts +0 -262
  774. package/dist/types/onchain/core/createAddressProvider.d.mts +0 -5
  775. package/dist/types/onchain/core/errors.d.mts +0 -72
  776. package/dist/types/onchain/core/index.d.mts +0 -5
  777. package/dist/types/onchain/core/types.d.mts +0 -79
  778. package/dist/types/onchain/index.d.mts +0 -357
  779. package/dist/types/onchain/market/MarketConfiguratorContract.d.mts +0 -1552
  780. package/dist/types/onchain/market/MarketRegister.d.mts +0 -143
  781. package/dist/types/onchain/market/MarketSuite.d.mts +0 -208
  782. package/dist/types/onchain/market/ZapperRegister.d.mts +0 -60
  783. package/dist/types/onchain/market/adapters/abi/actionAbi.d.mts +0 -22
  784. package/dist/types/onchain/market/adapters/abi/adapters/index.d.mts +0 -39
  785. package/dist/types/onchain/market/adapters/abi/conctructorAbi.d.mts +0 -7
  786. package/dist/types/onchain/market/adapters/abi/index.d.mts +0 -54
  787. package/dist/types/onchain/market/adapters/abi/midas/index.d.mts +0 -2
  788. package/dist/types/onchain/market/adapters/abi/securitize/index.d.mts +0 -4
  789. package/dist/types/onchain/market/adapters/abi/treehouse/index.d.mts +0 -4
  790. package/dist/types/onchain/market/adapters/abi/utils.d.mts +0 -30
  791. package/dist/types/onchain/market/adapters/contracts/AbstractAdapter.d.mts +0 -138
  792. package/dist/types/onchain/market/adapters/contracts/AbstractCurveAdapter.d.mts +0 -20
  793. package/dist/types/onchain/market/adapters/contracts/AccountMigratorAdapterContract.d.mts +0 -482
  794. package/dist/types/onchain/market/adapters/contracts/BalancerV3RouterAdapterContract.d.mts +0 -457
  795. package/dist/types/onchain/market/adapters/contracts/BalancerV3WrapperAdapterContract.d.mts +0 -170
  796. package/dist/types/onchain/market/adapters/contracts/CamelotV3AdapterContract.d.mts +0 -661
  797. package/dist/types/onchain/market/adapters/contracts/ConvexV1BaseRewardPoolAdapterContract.d.mts +0 -698
  798. package/dist/types/onchain/market/adapters/contracts/ConvexV1BoosterAdapterContract.d.mts +0 -429
  799. package/dist/types/onchain/market/adapters/contracts/Curve2AssetsAdapterContract.d.mts +0 -1778
  800. package/dist/types/onchain/market/adapters/contracts/Curve3AssetsAdapterContract.d.mts +0 -1778
  801. package/dist/types/onchain/market/adapters/contracts/Curve4AssetsAdapterContract.d.mts +0 -1778
  802. package/dist/types/onchain/market/adapters/contracts/CurveV1AdapterStETHContract.d.mts +0 -1765
  803. package/dist/types/onchain/market/adapters/contracts/CurveV1StableNGAdapterContract.d.mts +0 -1748
  804. package/dist/types/onchain/market/adapters/contracts/DaiUsdsAdapterContract.d.mts +0 -213
  805. package/dist/types/onchain/market/adapters/contracts/ERC4626AdapterContract.d.mts +0 -693
  806. package/dist/types/onchain/market/adapters/contracts/ERC4626ReferralAdapterContract.d.mts +0 -307
  807. package/dist/types/onchain/market/adapters/contracts/FluidDexAdapterContract.d.mts +0 -258
  808. package/dist/types/onchain/market/adapters/contracts/InfinifiGatewayAdapterContract.d.mts +0 -489
  809. package/dist/types/onchain/market/adapters/contracts/InfinifiUnwindingGatewayAdapterContract.d.mts +0 -365
  810. package/dist/types/onchain/market/adapters/contracts/KelpLRTDepositPoolAdapterContract.d.mts +0 -255
  811. package/dist/types/onchain/market/adapters/contracts/KelpLRTWithdrawalManagerAdapterContract.d.mts +0 -374
  812. package/dist/types/onchain/market/adapters/contracts/LidoV1AdapterContract.d.mts +0 -222
  813. package/dist/types/onchain/market/adapters/contracts/MellowClaimerAdapterContract.d.mts +0 -300
  814. package/dist/types/onchain/market/adapters/contracts/MellowDVVAdapterContract.d.mts +0 -718
  815. package/dist/types/onchain/market/adapters/contracts/MellowERC4626VaultAdapterContract.d.mts +0 -698
  816. package/dist/types/onchain/market/adapters/contracts/MellowWrapperAdapterContract.d.mts +0 -214
  817. package/dist/types/onchain/market/adapters/contracts/MidasGatewayAdapterContract.d.mts +0 -676
  818. package/dist/types/onchain/market/adapters/contracts/MidasIssuanceVaultAdapterContract.d.mts +0 -248
  819. package/dist/types/onchain/market/adapters/contracts/MidasRedemptionVaultAdapterContract.d.mts +0 -488
  820. package/dist/types/onchain/market/adapters/contracts/PendleRouterAdapterContract.d.mts +0 -2413
  821. package/dist/types/onchain/market/adapters/contracts/SecuritizeOnRampAdapterContract.d.mts +0 -452
  822. package/dist/types/onchain/market/adapters/contracts/SecuritizeRedemptionGatewayAdapterContract.d.mts +0 -512
  823. package/dist/types/onchain/market/adapters/contracts/StakingRewardsAdapterContract.d.mts +0 -286
  824. package/dist/types/onchain/market/adapters/contracts/TraderJoeRouterAdapterContract.d.mts +0 -489
  825. package/dist/types/onchain/market/adapters/contracts/TreehouseFastlaneAdapterContract.d.mts +0 -154
  826. package/dist/types/onchain/market/adapters/contracts/TreehouseRedemptionGatewayAdapterContract.d.mts +0 -479
  827. package/dist/types/onchain/market/adapters/contracts/TreehouseRouterAdapterContract.d.mts +0 -191
  828. package/dist/types/onchain/market/adapters/contracts/UniswapV2AdapterContract.d.mts +0 -973
  829. package/dist/types/onchain/market/adapters/contracts/UniswapV3AdapterContract.d.mts +0 -565
  830. package/dist/types/onchain/market/adapters/contracts/UniswapV4AdapterContract.d.mts +0 -429
  831. package/dist/types/onchain/market/adapters/contracts/UpshiftVaultAdapterContract.d.mts +0 -362
  832. package/dist/types/onchain/market/adapters/contracts/VelodromeV2AdapterContract.d.mts +0 -367
  833. package/dist/types/onchain/market/adapters/contracts/WstETHV1AdapterContract.d.mts +0 -401
  834. package/dist/types/onchain/market/adapters/contracts/index.d.mts +0 -43
  835. package/dist/types/onchain/market/adapters/createAdapter.d.mts +0 -8
  836. package/dist/types/onchain/market/adapters/index.d.mts +0 -99
  837. package/dist/types/onchain/market/adapters/transferHelpers.d.mts +0 -60
  838. package/dist/types/onchain/market/adapters/types.d.mts +0 -116
  839. package/dist/types/onchain/market/credit/CreditConfiguratorV310Contract.d.mts +0 -499
  840. package/dist/types/onchain/market/credit/CreditFacadeV310BaseContract.d.mts +0 -856
  841. package/dist/types/onchain/market/credit/CreditFacadeV310Contract.d.mts +0 -74
  842. package/dist/types/onchain/market/credit/CreditManagerV310Contract.d.mts +0 -1013
  843. package/dist/types/onchain/market/credit/CreditSuite.d.mts +0 -254
  844. package/dist/types/onchain/market/credit/CreditSuiteStrategy.d.mts +0 -75
  845. package/dist/types/onchain/market/credit/collateralUtils.d.mts +0 -94
  846. package/dist/types/onchain/market/credit/createCreditConfigurator.d.mts +0 -5
  847. package/dist/types/onchain/market/credit/createCreditFacade.d.mts +0 -5
  848. package/dist/types/onchain/market/credit/createCreditManager.d.mts +0 -5
  849. package/dist/types/onchain/market/credit/expectedBalanceDeltas.d.mts +0 -36
  850. package/dist/types/onchain/market/credit/index.d.mts +0 -10
  851. package/dist/types/onchain/market/credit/types.d.mts +0 -296
  852. package/dist/types/onchain/market/index.d.mts +0 -170
  853. package/dist/types/onchain/market/loss-policy/AliasLossPolicyV310Contract.d.mts +0 -295
  854. package/dist/types/onchain/market/loss-policy/LossPolicyContract.d.mts +0 -138
  855. package/dist/types/onchain/market/loss-policy/createLossPolicy.d.mts +0 -5
  856. package/dist/types/onchain/market/loss-policy/index.d.mts +0 -5
  857. package/dist/types/onchain/market/loss-policy/types.d.mts +0 -15
  858. package/dist/types/onchain/market/math.d.mts +0 -270
  859. package/dist/types/onchain/market/oracle/PriceFeedAnswerMap.d.mts +0 -8
  860. package/dist/types/onchain/market/oracle/PriceOracleBaseContract.d.mts +0 -146
  861. package/dist/types/onchain/market/oracle/PriceOracleV310Contract.d.mts +0 -350
  862. package/dist/types/onchain/market/oracle/collateralPriceInUnderlying.d.mts +0 -16
  863. package/dist/types/onchain/market/oracle/createPriceOracle.d.mts +0 -5
  864. package/dist/types/onchain/market/oracle/index.d.mts +0 -5
  865. package/dist/types/onchain/market/oracle/types.d.mts +0 -257
  866. package/dist/types/onchain/market/pool/GaugeContract.d.mts +0 -403
  867. package/dist/types/onchain/market/pool/LinearInterestRateModelContract.d.mts +0 -143
  868. package/dist/types/onchain/market/pool/PoolQuotaKeeperV310Contract.d.mts +0 -510
  869. package/dist/types/onchain/market/pool/PoolSuite.d.mts +0 -123
  870. package/dist/types/onchain/market/pool/PoolV310Contract.d.mts +0 -1186
  871. package/dist/types/onchain/market/pool/TumblerContract.d.mts +0 -193
  872. package/dist/types/onchain/market/pool/createInterestRateModel.d.mts +0 -5
  873. package/dist/types/onchain/market/pool/createPool.d.mts +0 -5
  874. package/dist/types/onchain/market/pool/createPoolQuotaKeeper.d.mts +0 -5
  875. package/dist/types/onchain/market/pool/createRateKeeper.d.mts +0 -5
  876. package/dist/types/onchain/market/pool/index.d.mts +0 -6
  877. package/dist/types/onchain/market/pool/math.d.mts +0 -64
  878. package/dist/types/onchain/market/pool/types.d.mts +0 -174
  879. package/dist/types/onchain/market/pricefeeds/AbstractLPPriceFeed.d.mts +0 -16
  880. package/dist/types/onchain/market/pricefeeds/AbstractPriceFeed.d.mts +0 -42
  881. package/dist/types/onchain/market/pricefeeds/PriceFeedRef.d.mts +0 -37
  882. package/dist/types/onchain/market/pricefeeds/PriceFeedRegistry.d.mts +0 -57
  883. package/dist/types/onchain/market/pricefeeds/feeds/BalancerStablePriceFeed.d.mts +0 -10
  884. package/dist/types/onchain/market/pricefeeds/feeds/BalancerWeightedPriceFeed.d.mts +0 -16
  885. package/dist/types/onchain/market/pricefeeds/feeds/BoundedPriceFeed.d.mts +0 -13
  886. package/dist/types/onchain/market/pricefeeds/feeds/CompositePriceFeed.d.mts +0 -12
  887. package/dist/types/onchain/market/pricefeeds/feeds/ConstantPriceFeed.d.mts +0 -12
  888. package/dist/types/onchain/market/pricefeeds/feeds/CurveCryptoPriceFeed.d.mts +0 -10
  889. package/dist/types/onchain/market/pricefeeds/feeds/CurveStablePriceFeed.d.mts +0 -10
  890. package/dist/types/onchain/market/pricefeeds/feeds/CurveUSDPriceFeed.d.mts +0 -10
  891. package/dist/types/onchain/market/pricefeeds/feeds/Erc4626PriceFeed.d.mts +0 -10
  892. package/dist/types/onchain/market/pricefeeds/feeds/ExternalPriceFeed.d.mts +0 -9
  893. package/dist/types/onchain/market/pricefeeds/feeds/MellowLRTPriceFeed.d.mts +0 -10
  894. package/dist/types/onchain/market/pricefeeds/feeds/PendleTWAPPTPriceFeed.d.mts +0 -215
  895. package/dist/types/onchain/market/pricefeeds/feeds/PythPriceFeed.d.mts +0 -224
  896. package/dist/types/onchain/market/pricefeeds/feeds/RedstonePriceFeed.d.mts +0 -20
  897. package/dist/types/onchain/market/pricefeeds/feeds/WstETHPriceFeed.d.mts +0 -10
  898. package/dist/types/onchain/market/pricefeeds/feeds/YearnPriceFeed.d.mts +0 -10
  899. package/dist/types/onchain/market/pricefeeds/feeds/ZeroPriceFeed.d.mts +0 -9
  900. package/dist/types/onchain/market/pricefeeds/feeds/index.d.mts +0 -18
  901. package/dist/types/onchain/market/pricefeeds/index.d.mts +0 -31
  902. package/dist/types/onchain/market/pricefeeds/types.d.mts +0 -97
  903. package/dist/types/onchain/market/pricefeeds/updates/PriceUpdateTx.d.mts +0 -14
  904. package/dist/types/onchain/market/pricefeeds/updates/PriceUpdatesCache.d.mts +0 -17
  905. package/dist/types/onchain/market/pricefeeds/updates/UpdatablePriceFeedRegistry.d.mts +0 -109
  906. package/dist/types/onchain/market/pricefeeds/updates/getRawPriceUpdates.d.mts +0 -3
  907. package/dist/types/onchain/market/pricefeeds/updates/index.d.mts +0 -7
  908. package/dist/types/onchain/market/pricefeeds/updates/isUpdatablePriceFeed.d.mts +0 -3
  909. package/dist/types/onchain/market/pricefeeds/updates/types.d.mts +0 -70
  910. package/dist/types/onchain/market/pricefeeds/updates/updatableDependencies.d.mts +0 -7
  911. package/dist/types/onchain/market/rwa/RWARegistry.d.mts +0 -70
  912. package/dist/types/onchain/market/rwa/createDegenNFT.d.mts +0 -9
  913. package/dist/types/onchain/market/rwa/index.d.mts +0 -13
  914. package/dist/types/onchain/market/rwa/midas/MidasDegenNFT.d.mts +0 -111
  915. package/dist/types/onchain/market/rwa/midas/MidasLiquidatorContract.d.mts +0 -91
  916. package/dist/types/onchain/market/rwa/midas/index.d.mts +0 -4
  917. package/dist/types/onchain/market/rwa/securitize/SecuritizeDegenNFT.d.mts +0 -439
  918. package/dist/types/onchain/market/rwa/securitize/SecuritizeLiquidatorContract.d.mts +0 -102
  919. package/dist/types/onchain/market/rwa/securitize/SecuritizeRWAFactory.d.mts +0 -505
  920. package/dist/types/onchain/market/rwa/securitize/index.d.mts +0 -6
  921. package/dist/types/onchain/market/rwa/securitize/types.d.mts +0 -62
  922. package/dist/types/onchain/market/rwa/types.d.mts +0 -214
  923. package/dist/types/onchain/market/strategyName.d.mts +0 -13
  924. package/dist/types/onchain/market/types.d.mts +0 -14
  925. package/dist/types/onchain/market/zapper/IERC20ZapperContract.d.mts +0 -405
  926. package/dist/types/onchain/market/zapper/IETHZapperContract.d.mts +0 -241
  927. package/dist/types/onchain/market/zapper/ZapperContract.d.mts +0 -41
  928. package/dist/types/onchain/market/zapper/createZapper.d.mts +0 -4
  929. package/dist/types/onchain/market/zapper/index.d.mts +0 -6
  930. package/dist/types/onchain/market/zapper/types.d.mts +0 -69
  931. package/dist/types/onchain/opportunities/MultichainOpportunitiesService.d.mts +0 -42
  932. package/dist/types/onchain/opportunities/OpportunitiesService.d.mts +0 -50
  933. package/dist/types/onchain/opportunities/index.d.mts +0 -4
  934. package/dist/types/onchain/opportunities/types.d.mts +0 -35
  935. package/dist/types/onchain/options.d.mts +0 -40
  936. package/dist/types/onchain/plugins/BasePlugin.d.mts +0 -65
  937. package/dist/types/onchain/plugins/errors.d.mts +0 -4
  938. package/dist/types/onchain/plugins/index.d.mts +0 -4
  939. package/dist/types/onchain/plugins/types.d.mts +0 -120
  940. package/dist/types/onchain/pools/PoolService.d.mts +0 -62
  941. package/dist/types/onchain/pools/index.d.mts +0 -3
  942. package/dist/types/onchain/pools/types.d.mts +0 -288
  943. package/dist/types/onchain/positions/MultichainPositionsService.d.mts +0 -26
  944. package/dist/types/onchain/positions/PositionsService.d.mts +0 -112
  945. package/dist/types/onchain/positions/calcBorrowRate.d.mts +0 -43
  946. package/dist/types/onchain/positions/calcHealthFactor.d.mts +0 -56
  947. package/dist/types/onchain/positions/calcLiquidationPrice.d.mts +0 -18
  948. package/dist/types/onchain/positions/calcLiquidationPriceForTarget.d.mts +0 -40
  949. package/dist/types/onchain/positions/calcTimeToLiquidationMs.d.mts +0 -13
  950. package/dist/types/onchain/positions/index.d.mts +0 -9
  951. package/dist/types/onchain/positions/types.d.mts +0 -130
  952. package/dist/types/onchain/preview/index.d.mts +0 -25
  953. package/dist/types/onchain/preview/parse/classifyInnerOperations.d.mts +0 -22
  954. package/dist/types/onchain/preview/parse/index.d.mts +0 -11
  955. package/dist/types/onchain/preview/parse/parseFacadeOperationCalldata.d.mts +0 -21
  956. package/dist/types/onchain/preview/parse/parseOperationCalldata.d.mts +0 -15
  957. package/dist/types/onchain/preview/parse/parsePoolOperationCalldata.d.mts +0 -18
  958. package/dist/types/onchain/preview/parse/parseRWAFactoryOperationCalldata.d.mts +0 -15
  959. package/dist/types/onchain/preview/parse/types-adapters.d.mts +0 -63
  960. package/dist/types/onchain/preview/parse/types-facades.d.mts +0 -148
  961. package/dist/types/onchain/preview/parse/types-rwa.d.mts +0 -37
  962. package/dist/types/onchain/preview/parse/types.d.mts +0 -22
  963. package/dist/types/onchain/preview/preview/CreditAccountState.d.mts +0 -92
  964. package/dist/types/onchain/preview/preview/buildDelayedStrategyPositionOperationPreview.d.mts +0 -30
  965. package/dist/types/onchain/preview/preview/detectCloseOrRepay.d.mts +0 -23
  966. package/dist/types/onchain/preview/preview/detectDelayedClaim.d.mts +0 -50
  967. package/dist/types/onchain/preview/preview/detectDelayedOperation.d.mts +0 -36
  968. package/dist/types/onchain/preview/preview/estimateClaimableAt.d.mts +0 -16
  969. package/dist/types/onchain/preview/preview/index.d.mts +0 -13
  970. package/dist/types/onchain/preview/preview/midasGreenlistsAccount.d.mts +0 -10
  971. package/dist/types/onchain/preview/preview/previewAdjustStrategyPosition.d.mts +0 -17
  972. package/dist/types/onchain/preview/preview/previewExitOrRepayStrategyPosition.d.mts +0 -18
  973. package/dist/types/onchain/preview/preview/previewOpenStrategyPosition.d.mts +0 -14
  974. package/dist/types/onchain/preview/preview/previewOperation.d.mts +0 -29
  975. package/dist/types/onchain/preview/preview/previewPoolPositionOperation.d.mts +0 -10
  976. package/dist/types/onchain/preview/preview/replayInnerOperations.d.mts +0 -48
  977. package/dist/types/onchain/preview/preview/replayMulticall.d.mts +0 -42
  978. package/dist/types/onchain/preview/preview/unwrapNativeCollateral.d.mts +0 -26
  979. package/dist/types/onchain/router/AbstractRouterContract.d.mts +0 -45
  980. package/dist/types/onchain/router/RouterV310Contract.d.mts +0 -934
  981. package/dist/types/onchain/router/createRouter.d.mts +0 -4
  982. package/dist/types/onchain/router/helpers.d.mts +0 -12
  983. package/dist/types/onchain/router/index.d.mts +0 -5
  984. package/dist/types/onchain/router/types.d.mts +0 -282
  985. package/dist/types/onchain/types/index.d.mts +0 -6
  986. package/dist/types/onchain/types/multichain.d.mts +0 -42
  987. package/dist/types/onchain/types/state-human.d.mts +0 -226
  988. package/dist/types/onchain/types/state.d.mts +0 -89
  989. package/dist/types/onchain/utils/AssetsMap.d.mts +0 -44
  990. package/dist/types/onchain/utils/childLogger.d.mts +0 -3
  991. package/dist/types/onchain/utils/createRawTx.d.mts +0 -11
  992. package/dist/types/onchain/utils/etherscan.d.mts +0 -14
  993. package/dist/types/onchain/utils/filterDust.d.mts +0 -19
  994. package/dist/types/onchain/utils/index.d.mts +0 -21
  995. package/dist/types/onchain/utils/internal/index.d.mts +0 -2
  996. package/dist/types/onchain/utils/isDust.d.mts +0 -18
  997. package/dist/types/onchain/utils/toAddress.d.mts +0 -4
  998. package/dist/types/onchain/utils/viem/executeDelegatedMulticalls.d.mts +0 -29
  999. package/dist/types/onchain/utils/viem/index.d.mts +0 -9
  1000. package/dist/types/onchain/utils/viem/sendRawTx.d.mts +0 -12
  1001. package/dist/types/onchain/utils/viem/simulateWithPriceUpdates.d.mts +0 -42
  1002. package/dist/types/onchain/validation/bundles/checkAccountQuotas.d.mts +0 -13
  1003. package/dist/types/onchain/validation/bundles/checkCollateralFunding.d.mts +0 -19
  1004. package/dist/types/onchain/validation/bundles/checkCreditOperation.d.mts +0 -29
  1005. package/dist/types/onchain/validation/bundles/checkHealthFactors.d.mts +0 -36
  1006. package/dist/types/onchain/validation/bundles/checkIncreaseDebt.d.mts +0 -17
  1007. package/dist/types/onchain/validation/bundles/checkIncreaseQuota.d.mts +0 -7
  1008. package/dist/types/onchain/validation/bundles/checkLiquidationEligibility.d.mts +0 -18
  1009. package/dist/types/onchain/validation/bundles/checkLiquidationFunding.d.mts +0 -16
  1010. package/dist/types/onchain/validation/bundles/checkMarket.d.mts +0 -12
  1011. package/dist/types/onchain/validation/bundles/checkMidasAccountGreenlist.d.mts +0 -19
  1012. package/dist/types/onchain/validation/bundles/checkObtained.d.mts +0 -6
  1013. package/dist/types/onchain/validation/bundles/checkPoolFunding.d.mts +0 -16
  1014. package/dist/types/onchain/validation/bundles/checkPoolOperation.d.mts +0 -22
  1015. package/dist/types/onchain/validation/bundles/checkQuotaUpdates.d.mts +0 -13
  1016. package/dist/types/onchain/validation/bundles/checkRWAOpenRequirements.d.mts +0 -18
  1017. package/dist/types/onchain/validation/bundles/checkRWAOpening.d.mts +0 -18
  1018. package/dist/types/onchain/validation/bundles/checkWallet.d.mts +0 -20
  1019. package/dist/types/onchain/validation/bundles/checkWalletAllowance.d.mts +0 -15
  1020. package/dist/types/onchain/validation/bundles/checkWalletBalance.d.mts +0 -14
  1021. package/dist/types/onchain/validation/bundles/index.d.mts +0 -20
  1022. package/dist/types/onchain/validation/checkLiquidation.d.mts +0 -21
  1023. package/dist/types/onchain/validation/checkOperation.d.mts +0 -29
  1024. package/dist/types/onchain/validation/checkSimulation.d.mts +0 -42
  1025. package/dist/types/onchain/validation/checks/checkBorrowLimit.d.mts +0 -18
  1026. package/dist/types/onchain/validation/checks/checkCollateralised.d.mts +0 -22
  1027. package/dist/types/onchain/validation/checks/checkCreditAccountFrozen.d.mts +0 -9
  1028. package/dist/types/onchain/validation/checks/checkCreditManagerPaused.d.mts +0 -9
  1029. package/dist/types/onchain/validation/checks/checkDebtLimits.d.mts +0 -22
  1030. package/dist/types/onchain/validation/checks/checkEmergencyLiquidator.d.mts +0 -14
  1031. package/dist/types/onchain/validation/checks/checkForbiddenToken.d.mts +0 -9
  1032. package/dist/types/onchain/validation/checks/checkLeverage.d.mts +0 -9
  1033. package/dist/types/onchain/validation/checks/checkLiquidatorEligible.d.mts +0 -10
  1034. package/dist/types/onchain/validation/checks/checkMarketExpired.d.mts +0 -11
  1035. package/dist/types/onchain/validation/checks/checkMaxQuota.d.mts +0 -13
  1036. package/dist/types/onchain/validation/checks/checkPartiallyLiquidatable.d.mts +0 -14
  1037. package/dist/types/onchain/validation/checks/checkPoolLiquidity.d.mts +0 -10
  1038. package/dist/types/onchain/validation/checks/checkPoolPaused.d.mts +0 -9
  1039. package/dist/types/onchain/validation/checks/checkPoolSunset.d.mts +0 -10
  1040. package/dist/types/onchain/validation/checks/checkQuotaActive.d.mts +0 -10
  1041. package/dist/types/onchain/validation/checks/checkQuotaChange.d.mts +0 -14
  1042. package/dist/types/onchain/validation/checks/checkQuotaCount.d.mts +0 -8
  1043. package/dist/types/onchain/validation/checks/checkQuotaLimit.d.mts +0 -15
  1044. package/dist/types/onchain/validation/checks/checkReservePriceLimited.d.mts +0 -28
  1045. package/dist/types/onchain/validation/checks/index.d.mts +0 -21
  1046. package/dist/types/onchain/validation/helpers/amount.d.mts +0 -4
  1047. package/dist/types/onchain/validation/helpers/index.d.mts +0 -4
  1048. package/dist/types/onchain/validation/helpers/token.d.mts +0 -14
  1049. package/dist/types/onchain/validation/index.d.mts +0 -50
  1050. package/dist/types/onchain/validation/raise.d.mts +0 -30
  1051. package/dist/types/permissionless/api/GearboxPermissionless.d.mts +0 -74
  1052. package/dist/types/permissionless/api/analytics/PermissionlessAnalytics.d.mts +0 -36
  1053. package/dist/types/permissionless/api/analytics/index.d.mts +0 -3
  1054. package/dist/types/permissionless/api/analytics/types.d.mts +0 -36
  1055. package/dist/types/permissionless/api/chains/ChainsNamespace.d.mts +0 -96
  1056. package/dist/types/permissionless/api/chains/index.d.mts +0 -3
  1057. package/dist/types/permissionless/api/deploy/PermissionlessDeploy.d.mts +0 -66
  1058. package/dist/types/permissionless/api/deploy/index.d.mts +0 -4
  1059. package/dist/types/permissionless/api/deploy/types.d.mts +0 -84
  1060. package/dist/types/permissionless/api/index.d.mts +0 -32
  1061. package/dist/types/permissionless/api/oracles/PermissionlessOracles.d.mts +0 -342
  1062. package/dist/types/permissionless/api/oracles/enrich.d.mts +0 -57
  1063. package/dist/types/permissionless/api/oracles/index.d.mts +0 -13
  1064. package/dist/types/permissionless/api/oracles/onchain-feed.d.mts +0 -13
  1065. package/dist/types/permissionless/api/oracles/score/formula.d.mts +0 -34
  1066. package/dist/types/permissionless/api/oracles/score/index.d.mts +0 -4
  1067. package/dist/types/permissionless/api/oracles/score/run.d.mts +0 -40
  1068. package/dist/types/permissionless/api/oracles/stress/classify.d.mts +0 -55
  1069. package/dist/types/permissionless/api/oracles/stress/index.d.mts +0 -6
  1070. package/dist/types/permissionless/api/oracles/stress/override.d.mts +0 -57
  1071. package/dist/types/permissionless/api/oracles/stress/run.d.mts +0 -98
  1072. package/dist/types/permissionless/api/oracles/stress/score.d.mts +0 -55
  1073. package/dist/types/permissionless/api/oracles/types.d.mts +0 -494
  1074. package/dist/types/permissionless/api/transactions/InstanceOwnerTransactions.d.mts +0 -65
  1075. package/dist/types/permissionless/api/transactions/index.d.mts +0 -3
  1076. package/dist/types/permissionless/api/transactions/lp-price-feeds.d.mts +0 -22
  1077. package/dist/types/permissionless/api/transactions/types.d.mts +0 -55
  1078. package/dist/types/permissionless/api/types.d.mts +0 -24
  1079. package/dist/types/permissionless/bindings/address-provider.d.mts +0 -9
  1080. package/dist/types/permissionless/bindings/bytecode-repository.d.mts +0 -1364
  1081. package/dist/types/permissionless/bindings/compressors/index.d.mts +0 -3
  1082. package/dist/types/permissionless/bindings/compressors/token-compressor.d.mts +0 -119
  1083. package/dist/types/permissionless/bindings/compressors/withdrawal-compressor.d.mts +0 -784
  1084. package/dist/types/permissionless/bindings/cross-chain-multisig.d.mts +0 -838
  1085. package/dist/types/permissionless/bindings/factory/credit-factory.d.mts +0 -224
  1086. package/dist/types/permissionless/bindings/factory/loss-policy-factory.d.mts +0 -143
  1087. package/dist/types/permissionless/bindings/factory/pool-factory.d.mts +0 -86
  1088. package/dist/types/permissionless/bindings/factory/price-oracle-factory.d.mts +0 -38
  1089. package/dist/types/permissionless/bindings/factory/rate-keeper-factory.d.mts +0 -179
  1090. package/dist/types/permissionless/bindings/governance/batches-chain.d.mts +0 -40
  1091. package/dist/types/permissionless/bindings/governance/governor.d.mts +0 -618
  1092. package/dist/types/permissionless/bindings/governance/index.d.mts +0 -4
  1093. package/dist/types/permissionless/bindings/governance/timelock.d.mts +0 -11
  1094. package/dist/types/permissionless/bindings/governance/types.d.mts +0 -43
  1095. package/dist/types/permissionless/bindings/index.d.mts +0 -21
  1096. package/dist/types/permissionless/bindings/instance-manager.d.mts +0 -365
  1097. package/dist/types/permissionless/bindings/kill-switch-proxy.d.mts +0 -203
  1098. package/dist/types/permissionless/bindings/market-configurator-factory.d.mts +0 -275
  1099. package/dist/types/permissionless/bindings/market-configurator.d.mts +0 -1699
  1100. package/dist/types/permissionless/bindings/price-feed-store.d.mts +0 -608
  1101. package/dist/types/permissionless/bindings/pricefeeds/balancer-stable.d.mts +0 -3
  1102. package/dist/types/permissionless/bindings/pricefeeds/balancer-weighted.d.mts +0 -3
  1103. package/dist/types/permissionless/bindings/pricefeeds/bounded.d.mts +0 -3
  1104. package/dist/types/permissionless/bindings/pricefeeds/composite.d.mts +0 -3
  1105. package/dist/types/permissionless/bindings/pricefeeds/constant.d.mts +0 -3
  1106. package/dist/types/permissionless/bindings/pricefeeds/curve-crypto.d.mts +0 -3
  1107. package/dist/types/permissionless/bindings/pricefeeds/curve-stable.d.mts +0 -3
  1108. package/dist/types/permissionless/bindings/pricefeeds/curve-twap.d.mts +0 -3
  1109. package/dist/types/permissionless/bindings/pricefeeds/curve-usd.d.mts +0 -3
  1110. package/dist/types/permissionless/bindings/pricefeeds/erc4626.d.mts +0 -3
  1111. package/dist/types/permissionless/bindings/pricefeeds/external.d.mts +0 -3
  1112. package/dist/types/permissionless/bindings/pricefeeds/index.d.mts +0 -3
  1113. package/dist/types/permissionless/bindings/pricefeeds/kodiak.d.mts +0 -3
  1114. package/dist/types/permissionless/bindings/pricefeeds/mellow-lrt.d.mts +0 -3
  1115. package/dist/types/permissionless/bindings/pricefeeds/pendle-pt-twap.d.mts +0 -3
  1116. package/dist/types/permissionless/bindings/pricefeeds/pyth.d.mts +0 -3
  1117. package/dist/types/permissionless/bindings/pricefeeds/redstone.d.mts +0 -3
  1118. package/dist/types/permissionless/bindings/pricefeeds/wsteth.d.mts +0 -3
  1119. package/dist/types/permissionless/bindings/pricefeeds/zero.d.mts +0 -3
  1120. package/dist/types/permissionless/bindings/router/index.d.mts +0 -2
  1121. package/dist/types/permissionless/bindings/router/routing-manager.d.mts +0 -503
  1122. package/dist/types/permissionless/bindings/treasury-splitter.d.mts +0 -394
  1123. package/dist/types/permissionless/core/index.d.mts +0 -7
  1124. package/dist/types/permissionless/core/proposal.d.mts +0 -28
  1125. package/dist/types/permissionless/index.d.mts +0 -66
  1126. package/dist/types/permissionless/plugins/index.d.mts +0 -4
  1127. package/dist/types/permissionless/utils/create2.d.mts +0 -18
  1128. package/dist/types/permissionless/utils/governance/batch.d.mts +0 -19
  1129. package/dist/types/permissionless/utils/governance/index.d.mts +0 -4
  1130. package/dist/types/permissionless/utils/governance/timelock-txs.d.mts +0 -3
  1131. package/dist/types/permissionless/utils/governance/types.d.mts +0 -21
  1132. package/dist/types/permissionless/utils/index.d.mts +0 -15
  1133. package/dist/types/permissionless/utils/price-update/get-price-update-tx.d.mts +0 -14
  1134. package/dist/types/permissionless/utils/price-update/get-updatable-feeds.d.mts +0 -16
  1135. package/dist/types/permissionless/utils/price-update/index.d.mts +0 -4
  1136. package/dist/types/plugins/accounts/AccountsPlugin.d.mts +0 -23
  1137. package/dist/types/plugins/accounts/index.d.mts +0 -2
  1138. package/dist/types/plugins/accounts-counter/AccountsCounterPlugin.d.mts +0 -21
  1139. package/dist/types/plugins/accounts-counter/index.d.mts +0 -2
  1140. package/dist/types/plugins/bots/BotsPlugin.d.mts +0 -15
  1141. package/dist/types/plugins/bots/PartialLiquidationBotV310Contract.d.mts +0 -214
  1142. package/dist/types/plugins/bots/abi/index.d.mts +0 -2
  1143. package/dist/types/plugins/bots/config.d.mts +0 -9
  1144. package/dist/types/plugins/bots/deserializePartialLiquidationBotParams.d.mts +0 -4
  1145. package/dist/types/plugins/bots/index.d.mts +0 -7
  1146. package/dist/types/plugins/bots/types.d.mts +0 -50
  1147. package/dist/types/sdk/AbstractNamespace.d.mts +0 -64
  1148. package/dist/types/sdk/GearboxSDK.d.mts +0 -97
  1149. package/dist/types/sdk/analytics/AnalyticsNamespace.d.mts +0 -14
  1150. package/dist/types/sdk/analytics/index.d.mts +0 -3
  1151. package/dist/types/sdk/analytics/types.d.mts +0 -28
  1152. package/dist/types/sdk/errors/AllSourcesFailedError.d.mts +0 -8
  1153. package/dist/types/sdk/errors/MissingSourceError.d.mts +0 -20
  1154. package/dist/types/sdk/errors/NoSourceServedError.d.mts +0 -14
  1155. package/dist/types/sdk/errors/SourceChainMismatchError.d.mts +0 -32
  1156. package/dist/types/sdk/errors/SourceUnavailableError.d.mts +0 -19
  1157. package/dist/types/sdk/errors/assertSameChains.d.mts +0 -8
  1158. package/dist/types/sdk/errors/everyChainFailed.d.mts +0 -7
  1159. package/dist/types/sdk/errors/index.d.mts +0 -11
  1160. package/dist/types/sdk/execute/ExecuteApi.d.mts +0 -16
  1161. package/dist/types/sdk/execute/index.d.mts +0 -3
  1162. package/dist/types/sdk/execute/types.d.mts +0 -130
  1163. package/dist/types/sdk/index.d.mts +0 -48
  1164. package/dist/types/sdk/liquidations/LiquidationsNamespace.d.mts +0 -49
  1165. package/dist/types/sdk/liquidations/index.d.mts +0 -3
  1166. package/dist/types/sdk/liquidations/types.d.mts +0 -75
  1167. package/dist/types/sdk/opportunities/OpportunitiesNamespace.d.mts +0 -69
  1168. package/dist/types/sdk/opportunities/index.d.mts +0 -3
  1169. package/dist/types/sdk/opportunities/types.d.mts +0 -140
  1170. package/dist/types/sdk/positions/PositionsNamespace.d.mts +0 -52
  1171. package/dist/types/sdk/positions/index.d.mts +0 -3
  1172. package/dist/types/sdk/positions/mergePositionList.d.mts +0 -21
  1173. package/dist/types/sdk/positions/types.d.mts +0 -112
  1174. package/dist/types/sdk/prepare/PrepareApi.d.mts +0 -140
  1175. package/dist/types/sdk/prepare/index.d.mts +0 -9
  1176. package/dist/types/sdk/prepare/types.d.mts +0 -899
  1177. package/dist/types/sdk/prepare/withdrawable-collaterals.d.mts +0 -8
  1178. package/dist/types/sdk/preview/PreviewNamespace.d.mts +0 -30
  1179. package/dist/types/sdk/preview/index.d.mts +0 -3
  1180. package/dist/types/sdk/preview/types.d.mts +0 -48
  1181. package/dist/types/sdk/rewards/RewardsNamespace.d.mts +0 -21
  1182. package/dist/types/sdk/rewards/errors.d.mts +0 -20
  1183. package/dist/types/sdk/rewards/helpers.d.mts +0 -42
  1184. package/dist/types/sdk/rewards/index.d.mts +0 -6
  1185. package/dist/types/sdk/rewards/merkl-api.d.mts +0 -57
  1186. package/dist/types/sdk/rewards/toMerklRewards.d.mts +0 -10
  1187. package/dist/types/sdk/rewards/toTurtleRewards.d.mts +0 -9
  1188. package/dist/types/sdk/rewards/turtle-api.d.mts +0 -63
  1189. package/dist/types/sdk/rewards/types.d.mts +0 -32
  1190. package/dist/types/sdk/types.d.mts +0 -176
  1191. package/dist/types/sdk/utils/filterResponse.d.mts +0 -16
  1192. package/dist/types/sdk/utils/index.d.mts +0 -4
  1193. package/dist/types/sdk/utils/mergeChains.d.mts +0 -19
  1194. package/dist/types/sdk/utils/types.d.mts +0 -41
  1195. package/dist/types/testnets/TestnetsAPI.d.mts +0 -106
  1196. package/dist/types/testnets/errors/TestnetNotFoundError.d.mts +0 -10
  1197. package/dist/types/testnets/errors/TestnetRequestFailedError.d.mts +0 -9
  1198. package/dist/types/testnets/errors/TestnetStatusError.d.mts +0 -13
  1199. package/dist/types/testnets/errors/TestnetValidationError.d.mts +0 -14
  1200. package/dist/types/testnets/errors/TestnetWaitTimeoutError.d.mts +0 -19
  1201. package/dist/types/testnets/errors/index.d.mts +0 -7
  1202. package/dist/types/testnets/index.d.mts +0 -17
  1203. package/dist/types/testnets/types.d.mts +0 -715
  1204. /package/dist/types/abi/310/configure/{creditSuiteParams.d.mts → creditSuiteParams.d.ts} +0 -0
  1205. /package/dist/types/abi/310/configure/{iCreditConfigureActions.d.mts → iCreditConfigureActions.d.ts} +0 -0
  1206. /package/dist/types/abi/310/configure/{iPoolConfigureActions.d.mts → iPoolConfigureActions.d.ts} +0 -0
  1207. /package/dist/types/abi/310/configure/{iPriceOracleConfigureActions.d.mts → iPriceOracleConfigureActions.d.ts} +0 -0
  1208. /package/dist/types/abi/310/{crossChainMultisig.d.mts → crossChainMultisig.d.ts} +0 -0
  1209. /package/dist/types/abi/310/{generated.d.mts → generated.d.ts} +0 -0
  1210. /package/dist/types/abi/310/{iBytecodeRepository.d.mts → iBytecodeRepository.d.ts} +0 -0
  1211. /package/dist/types/abi/310/{iKillSwitchProxy.d.mts → iKillSwitchProxy.d.ts} +0 -0
  1212. /package/dist/types/abi/310/{iLinearInterestRateModelV310.d.mts → iLinearInterestRateModelV310.d.ts} +0 -0
  1213. /package/dist/types/abi/310/{iMarketConfiguratorFactory.d.mts → iMarketConfiguratorFactory.d.ts} +0 -0
  1214. /package/dist/types/abi/310/{iPriceFeedStore.d.mts → iPriceFeedStore.d.ts} +0 -0
  1215. /package/dist/types/abi/310/{iTreasurySplitter.d.mts → iTreasurySplitter.d.ts} +0 -0
  1216. /package/dist/types/abi/310/{instanceManager.d.mts → instanceManager.d.ts} +0 -0
  1217. /package/dist/types/abi/{AccountMigrator.d.mts → AccountMigrator.d.ts} +0 -0
  1218. /package/dist/types/abi/{ILiquidationCompressorV313.d.mts → ILiquidationCompressorV313.d.ts} +0 -0
  1219. /package/dist/types/abi/{IWithdrawalCompressorV310.d.mts → IWithdrawalCompressorV310.d.ts} +0 -0
  1220. /package/dist/types/abi/{IWithdrawalCompressorV311.d.mts → IWithdrawalCompressorV311.d.ts} +0 -0
  1221. /package/dist/types/abi/{IWithdrawalCompressorV313.d.mts → IWithdrawalCompressorV313.d.ts} +0 -0
  1222. /package/dist/types/abi/compressors/{creditAccountCompressor.d.mts → creditAccountCompressor.d.ts} +0 -0
  1223. /package/dist/types/abi/compressors/{creditSuiteCompressor.d.mts → creditSuiteCompressor.d.ts} +0 -0
  1224. /package/dist/types/abi/compressors/{defillamaCompressor.d.mts → defillamaCompressor.d.ts} +0 -0
  1225. /package/dist/types/abi/compressors/{gaugeCompressor.d.mts → gaugeCompressor.d.ts} +0 -0
  1226. /package/dist/types/abi/compressors/{liquidationCompressor.d.mts → liquidationCompressor.d.ts} +0 -0
  1227. /package/dist/types/abi/compressors/{marketCompressor.d.mts → marketCompressor.d.ts} +0 -0
  1228. /package/dist/types/abi/compressors/{peripheryCompressor.d.mts → peripheryCompressor.d.ts} +0 -0
  1229. /package/dist/types/abi/compressors/{priceFeedCompressor.d.mts → priceFeedCompressor.d.ts} +0 -0
  1230. /package/dist/types/abi/compressors/{rewardsCompressor.d.mts → rewardsCompressor.d.ts} +0 -0
  1231. /package/dist/types/abi/compressors/{rwaCompressor.d.mts → rwaCompressor.d.ts} +0 -0
  1232. /package/dist/types/abi/compressors/subcompressors/liquidation/{midasLiquidationSubcompressor.d.mts → midasLiquidationSubcompressor.d.ts} +0 -0
  1233. /package/dist/types/abi/compressors/subcompressors/liquidation/{securitizeLiquidationSubcompressor.d.mts → securitizeLiquidationSubcompressor.d.ts} +0 -0
  1234. /package/dist/types/abi/compressors/subcompressors/liquidation/{treehouseLiquidationSubcompressor.d.mts → treehouseLiquidationSubcompressor.d.ts} +0 -0
  1235. /package/dist/types/abi/compressors/subcompressors/rwa/{onDemandRWAUnderlyingSubcompressor.d.mts → onDemandRWAUnderlyingSubcompressor.d.ts} +0 -0
  1236. /package/dist/types/abi/compressors/subcompressors/rwa/{securitizeRWAFactorySubcompressor.d.mts → securitizeRWAFactorySubcompressor.d.ts} +0 -0
  1237. /package/dist/types/abi/compressors/subcompressors/withdrawal/{infinifiWithdrawalSubcompressor.d.mts → infinifiWithdrawalSubcompressor.d.ts} +0 -0
  1238. /package/dist/types/abi/compressors/subcompressors/withdrawal/{kelpLRTWithdrawalSubcompressor.d.mts → kelpLRTWithdrawalSubcompressor.d.ts} +0 -0
  1239. /package/dist/types/abi/compressors/subcompressors/withdrawal/{mellowFlexibleDepositSubcompressor.d.mts → mellowFlexibleDepositSubcompressor.d.ts} +0 -0
  1240. /package/dist/types/abi/compressors/subcompressors/withdrawal/{mellowFlexibleRedeemSubcompressor.d.mts → mellowFlexibleRedeemSubcompressor.d.ts} +0 -0
  1241. /package/dist/types/abi/compressors/subcompressors/withdrawal/{mellowWithdrawalSubcompressor.d.mts → mellowWithdrawalSubcompressor.d.ts} +0 -0
  1242. /package/dist/types/abi/compressors/subcompressors/withdrawal/{midasWithdrawalSubcompressor.d.mts → midasWithdrawalSubcompressor.d.ts} +0 -0
  1243. /package/dist/types/abi/compressors/subcompressors/withdrawal/{securitizeRedemptionSubcompressor.d.mts → securitizeRedemptionSubcompressor.d.ts} +0 -0
  1244. /package/dist/types/abi/compressors/subcompressors/withdrawal/{treehouseWithdrawalSubcompressor.d.mts → treehouseWithdrawalSubcompressor.d.ts} +0 -0
  1245. /package/dist/types/abi/compressors/subcompressors/withdrawal/{upshiftWithdrawalSubcompressor.d.mts → upshiftWithdrawalSubcompressor.d.ts} +0 -0
  1246. /package/dist/types/abi/compressors/{tokenCompressor.d.mts → tokenCompressor.d.ts} +0 -0
  1247. /package/dist/types/abi/compressors/{withdrawalCompressor.d.mts → withdrawalCompressor.d.ts} +0 -0
  1248. /package/dist/types/abi/{errors.d.mts → errors.d.ts} +0 -0
  1249. /package/dist/types/abi/governance/{batchesChain.d.mts → batchesChain.d.ts} +0 -0
  1250. /package/dist/types/abi/governance/{governor.d.mts → governor.d.ts} +0 -0
  1251. /package/dist/types/abi/governance/{iTimeLock.d.mts → iTimeLock.d.ts} +0 -0
  1252. /package/dist/types/abi/helpers/{redemptionLogger.d.mts → redemptionLogger.d.ts} +0 -0
  1253. /package/dist/types/abi/{iAirdropDistributor.d.mts → iAirdropDistributor.d.ts} +0 -0
  1254. /package/dist/types/abi/{iBaseRewardPool.d.mts → iBaseRewardPool.d.ts} +0 -0
  1255. /package/dist/types/abi/{iCurvePool.d.mts → iCurvePool.d.ts} +0 -0
  1256. /package/dist/types/abi/{iDefaultAccountFactoryV3.d.mts → iDefaultAccountFactoryV3.d.ts} +0 -0
  1257. /package/dist/types/abi/{iDegenNFTV2.d.mts → iDegenNFTV2.d.ts} +0 -0
  1258. /package/dist/types/abi/{iERC20.d.mts → iERC20.d.ts} +0 -0
  1259. /package/dist/types/abi/{iERC20Permit.d.mts → iERC20Permit.d.ts} +0 -0
  1260. /package/dist/types/abi/{iERC20Zapper.d.mts → iERC20Zapper.d.ts} +0 -0
  1261. /package/dist/types/abi/{iERC20ZapperDeposits.d.mts → iERC20ZapperDeposits.d.ts} +0 -0
  1262. /package/dist/types/abi/{iETHZapper.d.mts → iETHZapper.d.ts} +0 -0
  1263. /package/dist/types/abi/{iETHZapperDeposits.d.mts → iETHZapperDeposits.d.ts} +0 -0
  1264. /package/dist/types/abi/{iExpirable.d.mts → iExpirable.d.ts} +0 -0
  1265. /package/dist/types/abi/{iFarmingPool.d.mts → iFarmingPool.d.ts} +0 -0
  1266. /package/dist/types/abi/{iInterestRateModel.d.mts → iInterestRateModel.d.ts} +0 -0
  1267. /package/dist/types/abi/{iMulticall3.d.mts → iMulticall3.d.ts} +0 -0
  1268. /package/dist/types/abi/{iOffchainOracle.d.mts → iOffchainOracle.d.ts} +0 -0
  1269. /package/dist/types/abi/{iPausable.d.mts → iPausable.d.ts} +0 -0
  1270. /package/dist/types/abi/{iPhantomToken.d.mts → iPhantomToken.d.ts} +0 -0
  1271. /package/dist/types/abi/{iPriceFeed.d.mts → iPriceFeed.d.ts} +0 -0
  1272. /package/dist/types/abi/{iRedemptionLoggerV310.d.mts → iRedemptionLoggerV310.d.ts} +0 -0
  1273. /package/dist/types/abi/{iStateSerializer.d.mts → iStateSerializer.d.ts} +0 -0
  1274. /package/dist/types/abi/{iUpdatablePriceFeed.d.mts → iUpdatablePriceFeed.d.ts} +0 -0
  1275. /package/dist/types/abi/{iVersion.d.mts → iVersion.d.ts} +0 -0
  1276. /package/dist/types/abi/{iZapper.d.mts → iZapper.d.ts} +0 -0
  1277. /package/dist/types/abi/{ierc4626Adapter.d.mts → ierc4626Adapter.d.ts} +0 -0
  1278. /package/dist/types/abi/{mellow.d.mts → mellow.d.ts} +0 -0
  1279. /package/dist/types/abi/{migration.d.mts → migration.d.ts} +0 -0
  1280. /package/dist/types/abi/router/{balancerV2Worker.d.mts → balancerV2Worker.d.ts} +0 -0
  1281. /package/dist/types/abi/router/{balancerV3Worker.d.mts → balancerV3Worker.d.ts} +0 -0
  1282. /package/dist/types/abi/router/{balancerV3WrapperWorker.d.mts → balancerV3WrapperWorker.d.ts} +0 -0
  1283. /package/dist/types/abi/router/{camelotV3Worker.d.mts → camelotV3Worker.d.ts} +0 -0
  1284. /package/dist/types/abi/router/{convexWorker.d.mts → convexWorker.d.ts} +0 -0
  1285. /package/dist/types/abi/router/{curveWorker.d.mts → curveWorker.d.ts} +0 -0
  1286. /package/dist/types/abi/router/{daiUsdsWorker.d.mts → daiUsdsWorker.d.ts} +0 -0
  1287. /package/dist/types/abi/router/{equalizerRouterWorker.d.mts → equalizerRouterWorker.d.ts} +0 -0
  1288. /package/dist/types/abi/router/{erc4626Worker.d.mts → erc4626Worker.d.ts} +0 -0
  1289. /package/dist/types/abi/router/{fluidDexWorker.d.mts → fluidDexWorker.d.ts} +0 -0
  1290. /package/dist/types/abi/router/{gearboxRouter.d.mts → gearboxRouter.d.ts} +0 -0
  1291. /package/dist/types/abi/router/{infinifiWorker.d.mts → infinifiWorker.d.ts} +0 -0
  1292. /package/dist/types/abi/router/{infraredVaultWorker.d.mts → infraredVaultWorker.d.ts} +0 -0
  1293. /package/dist/types/abi/router/{kelpLRTDepositPoolWorker.d.mts → kelpLRTDepositPoolWorker.d.ts} +0 -0
  1294. /package/dist/types/abi/router/{kodiakWorker.d.mts → kodiakWorker.d.ts} +0 -0
  1295. /package/dist/types/abi/router/{lidoWorker.d.mts → lidoWorker.d.ts} +0 -0
  1296. /package/dist/types/abi/router/{mellow4626Worker.d.mts → mellow4626Worker.d.ts} +0 -0
  1297. /package/dist/types/abi/router/{mellowDVVWorker.d.mts → mellowDVVWorker.d.ts} +0 -0
  1298. /package/dist/types/abi/router/{mellowVaultWorker.d.mts → mellowVaultWorker.d.ts} +0 -0
  1299. /package/dist/types/abi/router/{midasWorker.d.mts → midasWorker.d.ts} +0 -0
  1300. /package/dist/types/abi/router/{pendleRouterWorker.d.mts → pendleRouterWorker.d.ts} +0 -0
  1301. /package/dist/types/abi/router/{routingManager.d.mts → routingManager.d.ts} +0 -0
  1302. /package/dist/types/abi/router/{securitizeOnrampWorker.d.mts → securitizeOnrampWorker.d.ts} +0 -0
  1303. /package/dist/types/abi/router/{stakingRewardsWorker.d.mts → stakingRewardsWorker.d.ts} +0 -0
  1304. /package/dist/types/abi/router/{traderJoeWorker.d.mts → traderJoeWorker.d.ts} +0 -0
  1305. /package/dist/types/abi/router/{treehouseWorker.d.mts → treehouseWorker.d.ts} +0 -0
  1306. /package/dist/types/abi/router/{uniswapV2Worker.d.mts → uniswapV2Worker.d.ts} +0 -0
  1307. /package/dist/types/abi/router/{uniswapV3Worker.d.mts → uniswapV3Worker.d.ts} +0 -0
  1308. /package/dist/types/abi/router/{uniswapV4Worker.d.mts → uniswapV4Worker.d.ts} +0 -0
  1309. /package/dist/types/abi/router/{upshiftWorker.d.mts → upshiftWorker.d.ts} +0 -0
  1310. /package/dist/types/abi/router/{velodromeV2Worker.d.mts → velodromeV2Worker.d.ts} +0 -0
  1311. /package/dist/types/abi/router/{wstETHWorker.d.mts → wstETHWorker.d.ts} +0 -0
  1312. /package/dist/types/abi/router/{yearnV2Worker.d.mts → yearnV2Worker.d.ts} +0 -0
  1313. /package/dist/types/abi/rwa/{iDSRegistryService.d.mts → iDSRegistryService.d.ts} +0 -0
  1314. /package/dist/types/abi/rwa/{iDSToken.d.mts → iDSToken.d.ts} +0 -0
  1315. /package/dist/types/abi/rwa/{iMidasAccessControl.d.mts → iMidasAccessControl.d.ts} +0 -0
  1316. /package/dist/types/abi/rwa/{iMidasDegenNFT.d.mts → iMidasDegenNFT.d.ts} +0 -0
  1317. /package/dist/types/abi/rwa/{iMidasLiquidatorV311.d.mts → iMidasLiquidatorV311.d.ts} +0 -0
  1318. /package/dist/types/abi/rwa/{iRWACompressor.d.mts → iRWACompressor.d.ts} +0 -0
  1319. /package/dist/types/abi/rwa/{iRWAFactory.d.mts → iRWAFactory.d.ts} +0 -0
  1320. /package/dist/types/abi/rwa/{iRWAGateway.d.mts → iRWAGateway.d.ts} +0 -0
  1321. /package/dist/types/abi/rwa/{iRWAUnderlying.d.mts → iRWAUnderlying.d.ts} +0 -0
  1322. /package/dist/types/abi/rwa/{iSecuritizeDegenNFT.d.mts → iSecuritizeDegenNFT.d.ts} +0 -0
  1323. /package/dist/types/abi/rwa/{iSecuritizeLiquidatorV311.d.mts → iSecuritizeLiquidatorV311.d.ts} +0 -0
  1324. /package/dist/types/abi/rwa/{iSecuritizeRWAFactory.d.mts → iSecuritizeRWAFactory.d.ts} +0 -0
  1325. /package/dist/types/dev/{abi.d.mts → abi.d.ts} +0 -0
  1326. /package/dist/types/dev/{createAnvilClient.d.mts → createAnvilClient.d.ts} +0 -0
  1327. /package/dist/types/dev/{detectChain.d.mts → detectChain.d.ts} +0 -0
  1328. /package/dist/types/dev/{isOutOfSyncError.d.mts → isOutOfSyncError.d.ts} +0 -0
  1329. /package/dist/types/dev/{isRateLimitError.d.mts → isRateLimitError.d.ts} +0 -0
  1330. /package/dist/types/dev/{isTransientError.d.mts → isTransientError.d.ts} +0 -0
  1331. /package/dist/types/dev/{logSplitterTransport.d.mts → logSplitterTransport.d.ts} +0 -0
  1332. /package/dist/types/dev/mint/{types.d.mts → types.d.ts} +0 -0
  1333. /package/dist/types/dev/{resilientTransport.d.mts → resilientTransport.d.ts} +0 -0
  1334. /package/dist/types/dev/{transports.d.mts → transports.d.ts} +0 -0
  1335. /package/dist/types/dev/{types.d.mts → types.d.ts} +0 -0
  1336. /package/dist/types/dev/{verifyTestnet.d.mts → verifyTestnet.d.ts} +0 -0
  1337. /package/dist/types/dev/{withdrawalAbi.d.mts → withdrawalAbi.d.ts} +0 -0
  1338. /package/dist/types/history/trace/{errors.d.mts → errors.d.ts} +0 -0
  1339. /package/dist/types/model/{compare.schema.d.mts → compare.schema.d.ts} +0 -0
  1340. /package/dist/types/model/{curators.d.mts → curators.d.ts} +0 -0
  1341. /package/dist/types/model/{curators.schema.d.mts → curators.schema.d.ts} +0 -0
  1342. /package/dist/types/model/{delayed-intent.schema.d.mts → delayed-intent.schema.d.ts} +0 -0
  1343. /package/dist/types/model/{delayed-intents.d.mts → delayed-intents.d.ts} +0 -0
  1344. /package/dist/types/model/errors/{base.d.mts → base.d.ts} +0 -0
  1345. /package/dist/types/model/{liquidations.schema.d.mts → liquidations.schema.d.ts} +0 -0
  1346. /package/dist/types/model/{opportunities.schema.d.mts → opportunities.schema.d.ts} +0 -0
  1347. /package/dist/types/model/{positions.schema.d.mts → positions.schema.d.ts} +0 -0
  1348. /package/dist/types/model/{primitives.d.mts → primitives.d.ts} +0 -0
  1349. /package/dist/types/model/{primitives.schema.d.mts → primitives.schema.d.ts} +0 -0
  1350. /package/dist/types/model/{rwa.schema.d.mts → rwa.schema.d.ts} +0 -0
  1351. /package/dist/types/model/{withdrawals.schema.d.mts → withdrawals.schema.d.ts} +0 -0
  1352. /package/dist/types/offchain/errors/{OffchainNotConfiguredError.d.mts → OffchainNotConfiguredError.d.ts} +0 -0
  1353. /package/dist/types/offchain/errors/{OffchainNotImplementedError.d.mts → OffchainNotImplementedError.d.ts} +0 -0
  1354. /package/dist/types/offchain/errors/{OffchainTransportError.d.mts → OffchainTransportError.d.ts} +0 -0
  1355. /package/dist/types/offchain/errors/{OffchainValidationError.d.mts → OffchainValidationError.d.ts} +0 -0
  1356. /package/dist/types/offchain/errors/{backendMessage.d.mts → backendMessage.d.ts} +0 -0
  1357. /package/dist/types/offchain/errors/{errorCause.d.mts → errorCause.d.ts} +0 -0
  1358. /package/dist/types/offchain/errors/{readResponseBody.d.mts → readResponseBody.d.ts} +0 -0
  1359. /package/dist/types/onchain/abi/{oracles.d.mts → oracles.d.ts} +0 -0
  1360. /package/dist/types/onchain/accounts/bots/{abi.d.mts → abi.d.ts} +0 -0
  1361. /package/dist/types/onchain/accounts/intents/utils/{borrowed-amount-plus-interest-and-fees.d.mts → borrowed-amount-plus-interest-and-fees.d.ts} +0 -0
  1362. /package/dist/types/onchain/accounts/liquidations/{constants.d.mts → constants.d.ts} +0 -0
  1363. /package/dist/types/onchain/base/{errors.d.mts → errors.d.ts} +0 -0
  1364. /package/dist/types/onchain/constants/{address-provider.d.mts → address-provider.d.ts} +0 -0
  1365. /package/dist/types/onchain/constants/{addresses.d.mts → addresses.d.ts} +0 -0
  1366. /package/dist/types/onchain/constants/{bot-permissions.d.mts → bot-permissions.d.ts} +0 -0
  1367. /package/dist/types/onchain/constants/{math.d.mts → math.d.ts} +0 -0
  1368. /package/dist/types/onchain/constants/{periphery.d.mts → periphery.d.ts} +0 -0
  1369. /package/dist/types/onchain/constants/{versions.d.mts → versions.d.ts} +0 -0
  1370. /package/dist/types/onchain/market/adapters/abi/adapters/{erc4626ReferralAdapter.d.mts → erc4626ReferralAdapter.d.ts} +0 -0
  1371. /package/dist/types/onchain/market/adapters/abi/adapters/{iBalancerV3RouterAdapter.d.mts → iBalancerV3RouterAdapter.d.ts} +0 -0
  1372. /package/dist/types/onchain/market/adapters/abi/adapters/{iBalancerV3WrapperAdapter.d.mts → iBalancerV3WrapperAdapter.d.ts} +0 -0
  1373. /package/dist/types/onchain/market/adapters/abi/adapters/{iCamelotV3Adapter.d.mts → iCamelotV3Adapter.d.ts} +0 -0
  1374. /package/dist/types/onchain/market/adapters/abi/adapters/{iConvexV1BaseRewardPoolAdapter.d.mts → iConvexV1BaseRewardPoolAdapter.d.ts} +0 -0
  1375. /package/dist/types/onchain/market/adapters/abi/adapters/{iConvexV1BoosterAdapter.d.mts → iConvexV1BoosterAdapter.d.ts} +0 -0
  1376. /package/dist/types/onchain/market/adapters/abi/adapters/{iCurveV1StableNgAdapter.d.mts → iCurveV1StableNgAdapter.d.ts} +0 -0
  1377. /package/dist/types/onchain/market/adapters/abi/adapters/{iCurveV1_2AssetsAdapter.d.mts → iCurveV1_2AssetsAdapter.d.ts} +0 -0
  1378. /package/dist/types/onchain/market/adapters/abi/adapters/{iCurveV1_3AssetsAdapter.d.mts → iCurveV1_3AssetsAdapter.d.ts} +0 -0
  1379. /package/dist/types/onchain/market/adapters/abi/adapters/{iCurveV1_4AssetsAdapter.d.mts → iCurveV1_4AssetsAdapter.d.ts} +0 -0
  1380. /package/dist/types/onchain/market/adapters/abi/adapters/{iDaiUsdsAdapter.d.mts → iDaiUsdsAdapter.d.ts} +0 -0
  1381. /package/dist/types/onchain/market/adapters/abi/adapters/{iFluidDexAdapter.d.mts → iFluidDexAdapter.d.ts} +0 -0
  1382. /package/dist/types/onchain/market/adapters/abi/adapters/{iInfinifiGatewayAdapter.d.mts → iInfinifiGatewayAdapter.d.ts} +0 -0
  1383. /package/dist/types/onchain/market/adapters/abi/adapters/{iInfinifiUnwindingGateway.d.mts → iInfinifiUnwindingGateway.d.ts} +0 -0
  1384. /package/dist/types/onchain/market/adapters/abi/adapters/{iKelpLrtDepositPool.d.mts → iKelpLrtDepositPool.d.ts} +0 -0
  1385. /package/dist/types/onchain/market/adapters/abi/adapters/{iKelpLrtWithdrawalManager.d.mts → iKelpLrtWithdrawalManager.d.ts} +0 -0
  1386. /package/dist/types/onchain/market/adapters/abi/adapters/{iLidoV1Adapter.d.mts → iLidoV1Adapter.d.ts} +0 -0
  1387. /package/dist/types/onchain/market/adapters/abi/adapters/{iMellow4626VaultAdapter.d.mts → iMellow4626VaultAdapter.d.ts} +0 -0
  1388. /package/dist/types/onchain/market/adapters/abi/adapters/{iMellowClaimerAdapter.d.mts → iMellowClaimerAdapter.d.ts} +0 -0
  1389. /package/dist/types/onchain/market/adapters/abi/adapters/{iMellowWrapperAdapter.d.mts → iMellowWrapperAdapter.d.ts} +0 -0
  1390. /package/dist/types/onchain/market/adapters/abi/adapters/{iMidasGatewayAdapterV311.d.mts → iMidasGatewayAdapterV311.d.ts} +0 -0
  1391. /package/dist/types/onchain/market/adapters/abi/adapters/{iMidasIssuanceVaultAdapterV310.d.mts → iMidasIssuanceVaultAdapterV310.d.ts} +0 -0
  1392. /package/dist/types/onchain/market/adapters/abi/adapters/{iMidasRedemptionVaultAdapterV310.d.mts → iMidasRedemptionVaultAdapterV310.d.ts} +0 -0
  1393. /package/dist/types/onchain/market/adapters/abi/adapters/{iPendleRouterAdapter.d.mts → iPendleRouterAdapter.d.ts} +0 -0
  1394. /package/dist/types/onchain/market/adapters/abi/adapters/{iSecuritizeOnRampAdapterV310.d.mts → iSecuritizeOnRampAdapterV310.d.ts} +0 -0
  1395. /package/dist/types/onchain/market/adapters/abi/adapters/{iSecuritizeRedemptionGatewayAdapterV311.d.mts → iSecuritizeRedemptionGatewayAdapterV311.d.ts} +0 -0
  1396. /package/dist/types/onchain/market/adapters/abi/adapters/{iStakingRewardsAdapter.d.mts → iStakingRewardsAdapter.d.ts} +0 -0
  1397. /package/dist/types/onchain/market/adapters/abi/adapters/{iTraderJoeRouterAdapter.d.mts → iTraderJoeRouterAdapter.d.ts} +0 -0
  1398. /package/dist/types/onchain/market/adapters/abi/adapters/{iTreehouseFastlaneAdapter.d.mts → iTreehouseFastlaneAdapter.d.ts} +0 -0
  1399. /package/dist/types/onchain/market/adapters/abi/adapters/{iTreehouseRedemptionGatewayAdapter.d.mts → iTreehouseRedemptionGatewayAdapter.d.ts} +0 -0
  1400. /package/dist/types/onchain/market/adapters/abi/adapters/{iTreehouseRouterAdapter.d.mts → iTreehouseRouterAdapter.d.ts} +0 -0
  1401. /package/dist/types/onchain/market/adapters/abi/adapters/{iUniswapV2Adapter.d.mts → iUniswapV2Adapter.d.ts} +0 -0
  1402. /package/dist/types/onchain/market/adapters/abi/adapters/{iUniswapV3Adapter.d.mts → iUniswapV3Adapter.d.ts} +0 -0
  1403. /package/dist/types/onchain/market/adapters/abi/adapters/{iUniswapV4Adapter.d.mts → iUniswapV4Adapter.d.ts} +0 -0
  1404. /package/dist/types/onchain/market/adapters/abi/adapters/{iUpshiftVaultAdapter.d.mts → iUpshiftVaultAdapter.d.ts} +0 -0
  1405. /package/dist/types/onchain/market/adapters/abi/adapters/{iVelodromeV2RouterAdapter.d.mts → iVelodromeV2RouterAdapter.d.ts} +0 -0
  1406. /package/dist/types/onchain/market/adapters/abi/adapters/{iwstEthv1Adapter.d.mts → iwstEthv1Adapter.d.ts} +0 -0
  1407. /package/dist/types/onchain/market/adapters/abi/adapters/{mellowDvvAdapter.d.mts → mellowDvvAdapter.d.ts} +0 -0
  1408. /package/dist/types/onchain/market/adapters/abi/{conctructorAbiPatterns.d.mts → conctructorAbiPatterns.d.ts} +0 -0
  1409. /package/dist/types/onchain/market/adapters/abi/midas/{iMidasGatewayV311.d.mts → iMidasGatewayV311.d.ts} +0 -0
  1410. /package/dist/types/onchain/market/adapters/abi/securitize/{iBaseOnRamp.d.mts → iBaseOnRamp.d.ts} +0 -0
  1411. /package/dist/types/onchain/market/adapters/abi/securitize/{iSecuritizeOnRamp.d.mts → iSecuritizeOnRamp.d.ts} +0 -0
  1412. /package/dist/types/onchain/market/adapters/abi/securitize/{iSecuritizeRedemptionGatewayV311.d.mts → iSecuritizeRedemptionGatewayV311.d.ts} +0 -0
  1413. /package/dist/types/onchain/market/adapters/abi/{targetContractAbi.d.mts → targetContractAbi.d.ts} +0 -0
  1414. /package/dist/types/onchain/market/adapters/abi/treehouse/{iTreehouseFastlane.d.mts → iTreehouseFastlane.d.ts} +0 -0
  1415. /package/dist/types/onchain/market/adapters/abi/treehouse/{iTreehouseRedemptionGateway.d.mts → iTreehouseRedemptionGateway.d.ts} +0 -0
  1416. /package/dist/types/onchain/market/adapters/abi/treehouse/{iTreehouseRouter.d.mts → iTreehouseRouter.d.ts} +0 -0
  1417. /package/dist/types/onchain/market/adapters/{legacyAdapterOperations.d.mts → legacyAdapterOperations.d.ts} +0 -0
  1418. /package/dist/types/onchain/market/adapters/{transfers.d.mts → transfers.d.ts} +0 -0
  1419. /package/dist/types/onchain/market/loss-policy/{constants.d.mts → constants.d.ts} +0 -0
  1420. /package/dist/types/onchain/market/rwa/midas/{constants.d.mts → constants.d.ts} +0 -0
  1421. /package/dist/types/onchain/market/rwa/securitize/{constants.d.mts → constants.d.ts} +0 -0
  1422. /package/dist/types/onchain/preview/parse/{types-pools.d.mts → types-pools.d.ts} +0 -0
  1423. /package/dist/types/onchain/types/{logger.d.mts → logger.d.ts} +0 -0
  1424. /package/dist/types/onchain/types/{transactions.d.mts → transactions.d.ts} +0 -0
  1425. /package/dist/types/onchain/utils/{AddressMap.d.mts → AddressMap.d.ts} +0 -0
  1426. /package/dist/types/onchain/utils/{AddressSet.d.mts → AddressSet.d.ts} +0 -0
  1427. /package/dist/types/onchain/utils/{abi-decode.d.mts → abi-decode.d.ts} +0 -0
  1428. /package/dist/types/onchain/utils/{bigint-math.d.mts → bigint-math.d.ts} +0 -0
  1429. /package/dist/types/onchain/utils/{bytes32ToString.d.mts → bytes32ToString.d.ts} +0 -0
  1430. /package/dist/types/onchain/utils/{formatter.d.mts → formatter.d.ts} +0 -0
  1431. /package/dist/types/onchain/utils/{hex.d.mts → hex.d.ts} +0 -0
  1432. /package/dist/types/onchain/utils/internal/{Hooks.d.mts → Hooks.d.ts} +0 -0
  1433. /package/dist/types/onchain/utils/{json.d.mts → json.d.ts} +0 -0
  1434. /package/dist/types/onchain/utils/{mappers.d.mts → mappers.d.ts} +0 -0
  1435. /package/dist/types/onchain/utils/{retry.d.mts → retry.d.ts} +0 -0
  1436. /package/dist/types/onchain/utils/{trace.d.mts → trace.d.ts} +0 -0
  1437. /package/dist/types/onchain/utils/{type-utils.d.mts → type-utils.d.ts} +0 -0
  1438. /package/dist/types/onchain/utils/viem/{cast.d.mts → cast.d.ts} +0 -0
  1439. /package/dist/types/onchain/utils/viem/{executeMulticallBatches.d.mts → executeMulticallBatches.d.ts} +0 -0
  1440. /package/dist/types/onchain/utils/viem/{simulateCall.d.mts → simulateCall.d.ts} +0 -0
  1441. /package/dist/types/onchain/utils/viem/{simulateMulticall.d.mts → simulateMulticall.d.ts} +0 -0
  1442. /package/dist/types/onchain/utils/viem/{watchBlocksAsync.d.mts → watchBlocksAsync.d.ts} +0 -0
  1443. /package/dist/types/onchain/utils/{zod.d.mts → zod.d.ts} +0 -0
  1444. /package/dist/types/onchain/validation/helpers/{health-factor-limits.d.mts → health-factor-limits.d.ts} +0 -0
  1445. /package/dist/types/permissionless/api/analytics/{schemas.d.mts → schemas.d.ts} +0 -0
  1446. /package/dist/types/permissionless/api/chains/{schemas.d.mts → schemas.d.ts} +0 -0
  1447. /package/dist/types/permissionless/api/chains/{types.d.mts → types.d.ts} +0 -0
  1448. /package/dist/types/permissionless/api/deploy/{effective-staleness.d.mts → effective-staleness.d.ts} +0 -0
  1449. /package/dist/types/permissionless/api/{errors.d.mts → errors.d.ts} +0 -0
  1450. /package/dist/types/permissionless/api/oracles/{schemas.d.mts → schemas.d.ts} +0 -0
  1451. /package/dist/types/permissionless/api/oracles/score/{types.d.mts → types.d.ts} +0 -0
  1452. /package/dist/types/permissionless/api/oracles/stress/{types.d.mts → types.d.ts} +0 -0
  1453. /package/dist/types/permissionless/api/{schemas.d.mts → schemas.d.ts} +0 -0
  1454. /package/dist/types/permissionless/bindings/factory/{abstract-factory.d.mts → abstract-factory.d.ts} +0 -0
  1455. /package/dist/types/permissionless/bindings/{types.d.mts → types.d.ts} +0 -0
  1456. /package/dist/types/permissionless/chains/{archive-transport.d.mts → archive-transport.d.ts} +0 -0
  1457. /package/dist/types/permissionless/chains/{chunked-log-transport.d.mts → chunked-log-transport.d.ts} +0 -0
  1458. /package/dist/types/permissionless/core/{auditor.d.mts → auditor.d.ts} +0 -0
  1459. /package/dist/types/permissionless/core/{bytecode.d.mts → bytecode.d.ts} +0 -0
  1460. /package/dist/types/permissionless/core/{pricefeed-builder.d.mts → pricefeed-builder.d.ts} +0 -0
  1461. /package/dist/types/permissionless/core/{pricefeed.d.mts → pricefeed.d.ts} +0 -0
  1462. /package/dist/types/permissionless/core/{raw-tx.d.mts → raw-tx.d.ts} +0 -0
  1463. /package/dist/types/permissionless/deployment/{addresses.d.mts → addresses.d.ts} +0 -0
  1464. /package/dist/types/permissionless/deployment/{mainnet.d.mts → mainnet.d.ts} +0 -0
  1465. /package/dist/types/permissionless/plugins/irm/{constructor-params-abi.d.mts → constructor-params-abi.d.ts} +0 -0
  1466. /package/dist/types/permissionless/plugins/loss-policies/{constructor-params-abi.d.mts → constructor-params-abi.d.ts} +0 -0
  1467. /package/dist/types/permissionless/plugins/rate-keepers/{constructor-params-abi.d.mts → constructor-params-abi.d.ts} +0 -0
  1468. /package/dist/types/permissionless/utils/{abi-encoder.d.mts → abi-encoder.d.ts} +0 -0
  1469. /package/dist/types/permissionless/utils/{block-utils.d.mts → block-utils.d.ts} +0 -0
  1470. /package/dist/types/permissionless/utils/{format.d.mts → format.d.ts} +0 -0
  1471. /package/dist/types/permissionless/utils/{literals.d.mts → literals.d.ts} +0 -0
  1472. /package/dist/types/permissionless/utils/price-update/{get-prices.d.mts → get-prices.d.ts} +0 -0
  1473. /package/dist/types/permissionless/utils/{signature.d.mts → signature.d.ts} +0 -0
  1474. /package/dist/types/plugins/bots/abi/{iPartialLiquidationBotV310.d.mts → iPartialLiquidationBotV310.d.ts} +0 -0
  1475. /package/dist/types/testnets/errors/{TestnetsError.d.mts → TestnetsError.d.ts} +0 -0
  1476. /package/dist/types/testnets/{schemas.d.mts → schemas.d.ts} +0 -0
@@ -0,0 +1,899 @@
1
+ import { Bps, Timestamp, TokenAmount } from "../../model/primitives.js";
2
+ import { Curator } from "../../model/curators.js";
3
+ import { CreditManagerPausedError, DebtOutOfRangeError, ForbiddenTokenError, InsufficientBalanceError, InsufficientCollateralError, InsufficientPoolLiquidityError, LeverageOutOfRangeError, MarketExpiredError, QuotaAboveMaxError, QuotaInactiveError, QuotaLimitReachedError, QuotaUnchangedError, ReservePriceLimitedError } from "../../model/errors/operation-errors.js";
4
+ import { CreditAccountNotEmptyError, CreditAccountNotFoundError, MultipleDelayedWithdrawalsError, NoDelayedRouteError, NoRecordedIntentError, NoStrategyTargetCollateralError, UnexpectedFailureError, UnsupportedCollateralTokenError, UnsupportedTokenPairError, WithdrawalInProgressError } from "../../model/errors/prepare-errors.js";
5
+ import { PoolOpportunityKey, StrategyOpportunityKey } from "../../model/opportunities.js";
6
+ import { Position, PositionCollateral, StrategyPosition, StrategyPositionKey } from "../../model/positions.js";
7
+ import { SDKReturn } from "../../model/result.js";
8
+ import { PositionClaimableWithdrawal } from "../../model/withdrawals.js";
9
+ import "../../model/index.js";
10
+ import { Asset } from "../../onchain/base/types.js";
11
+ import { MultiCall } from "../../onchain/types/transactions.js";
12
+ import { PoolSimulation } from "../../onchain/pools/types.js";
13
+ import { AccountCalculatorOperation } from "../../onchain/accounts/intents/operations.js";
14
+ import { ClaimRemainder, DelayedStart, ExecutionCost, OperationState, PathLossRate, ResumableIntent, RouteErrors, WithPartialState, WithdrawCeilings } from "../../onchain/accounts/intents/types.js";
15
+ import { BorrowState } from "../../onchain/accounts/intents/borrow.js";
16
+ import { LeverageBand } from "../../onchain/accounts/intents/leverage-band.js";
17
+ import { OpenStrategyState } from "../../onchain/accounts/intents/open-strategy.js";
18
+ import { PoolOperationError } from "../../onchain/validation/bundles/checkPoolOperation.js";
19
+ import "../../onchain/index.js";
20
+ import { Address } from "viem";
21
+ /** Recoverable target-token quota, computed from loaded market state. */
22
+ export interface QuotaBufferState {
23
+ /** Validated strategy context, with a known target collateral. */
24
+ position: StrategyPosition & {
25
+ targetCollateral: NonNullable<StrategyPosition["targetCollateral"]>;
26
+ };
27
+ /** Target value times LT, before reserve and protocol-step rounding. */
28
+ baseQuota: bigint;
29
+ currentQuota: bigint;
30
+ /** Positive increase available under the pool and account limits. */
31
+ quotaIncrease: bigint;
32
+ }
33
+ export interface MaxBorrowAndWithdrawOptions {
34
+ /** Main-price HF threshold, in basis points; defaults to 10101. */
35
+ targetHF?: bigint;
36
+ /** Safe-price HF threshold, in basis points; defaults to 10001. */
37
+ targetSafeHF?: bigint;
38
+ }
39
+ export interface MaxWithdrawCollateralOptions {
40
+ /** Main-price HF threshold, in basis points; defaults to 10101. */
41
+ targetHF?: bigint;
42
+ /** Safe-price HF threshold, in basis points; defaults to 10001. */
43
+ targetSafeHF?: bigint;
44
+ }
45
+ /**
46
+ * What any operation on an existing account can answer with: the engine's
47
+ * shared guards, the missing account, and a wrapped crash.
48
+ **/
49
+ export type AccountFlowError = CreditManagerPausedError | MarketExpiredError | ForbiddenTokenError | QuotaLimitReachedError | InsufficientCollateralError | ReservePriceLimitedError | InsufficientBalanceError | CreditAccountNotFoundError | UnexpectedFailureError;
50
+ /** Same guards for the account-less open flow. */
51
+ export type OpenFlowError = CreditManagerPausedError | MarketExpiredError | ForbiddenTokenError | QuotaLimitReachedError | InsufficientCollateralError | InsufficientBalanceError | UnexpectedFailureError;
52
+ /**
53
+ * What every error of a two-route request carries on top of its own code,
54
+ * see {@link StrategyRoutesResult}.
55
+ *
56
+ * `errors` says why each route is missing, which is the answer a form needs
57
+ * even when neither exists: the error itself is the instant route's — the one
58
+ * a caller can usually act on — or the delayed route's when the instant one
59
+ * did not get far enough to have a reason of its own.
60
+ **/
61
+ export interface WithRouteErrors {
62
+ errors: RouteErrors;
63
+ }
64
+ /**
65
+ * Where a pool operation leaves the wallet: the two sides of the trade as
66
+ * `sdk.pools` prices them, plus what a screen needs beside them and the raw
67
+ * simulation cannot know — whose market this is, and how large the position
68
+ * ends up.
69
+ **/
70
+ export interface LpState extends PoolSimulation {
71
+ /**
72
+ * Curator of the market the pool belongs to, in the same shape
73
+ * {@link PoolOpportunity} and {@link CreditOperationMarket} report it.
74
+ **/
75
+ curator: Curator;
76
+ /**
77
+ * The wallet's position in this pool once the operation has run, in the
78
+ * market's underlying.
79
+ *
80
+ * Denominated like {@link PoolPosition.netValue}, so a screen showing both
81
+ * reads one token: on an RWA market that is the unwrapped asset — USDC
82
+ * rather than the dcUSDC the pool actually holds.
83
+ *
84
+ * Does not account for withdrawal fee: this is what the remaining shares
85
+ * are worth, not what leaving with them would pay.
86
+ **/
87
+ netValue: TokenAmount;
88
+ }
89
+ /**
90
+ * What a pool deposit or withdrawal comes to.
91
+ *
92
+ * Shaped like {@link StrategyResult} so both kinds of result are consumed the
93
+ * same way, with the pool's own numbers as the state: the ERC-4626
94
+ * conversion applied to the amount, at the rate of the block the market was
95
+ * loaded at.
96
+ **/
97
+ export interface LpResult {
98
+ /**
99
+ * Always empty: a pool operation is a single transaction, so there is no
100
+ * chain of steps to show. Present so callers can treat both kinds of
101
+ * result alike.
102
+ **/
103
+ operations: [];
104
+ /**
105
+ * What the wallet parts with and what it receives, the zapper the
106
+ * transaction goes through when one is involved, and where the position ends
107
+ * up, see {@link LpState}.
108
+ **/
109
+ state: LpState;
110
+ /**
111
+ * The transaction implementing the operation: exactly one, since a pool
112
+ * operation is a single call on the pool or on its zapper.
113
+ **/
114
+ calls: MultiCall[];
115
+ /** Block of the chain state this result was computed from. */
116
+ blockNumber: number;
117
+ /** Unix seconds of {@link blockNumber}. */
118
+ timestamp: Timestamp;
119
+ }
120
+ /**
121
+ * What an operation on an existing credit account comes to.
122
+ **/
123
+ export interface StrategyResult {
124
+ /**
125
+ * The logical steps, each carrying the amounts it was computed from.
126
+ * Useful for showing the user what will happen, and for pinning behaviour
127
+ * in tests.
128
+ **/
129
+ operations: AccountCalculatorOperation[];
130
+ /**
131
+ * Projected account state once the operations execute: TVL, debt,
132
+ * balances and quotas.
133
+ **/
134
+ state: OperationState;
135
+ /**
136
+ * Credit-facade multicall implementing the operations, ready to be sent
137
+ * through `sdk.accounts`.
138
+ **/
139
+ calls: MultiCall[];
140
+ /** Block of the chain state this result was computed from. */
141
+ blockNumber: number;
142
+ /** Unix seconds of {@link blockNumber}. */
143
+ timestamp: Timestamp;
144
+ }
145
+ /**
146
+ * What the tail of a delayed operation comes to: {@link StrategyResult}, plus
147
+ * whether the claim it was built on settled the withdrawal whole.
148
+ **/
149
+ export interface FinalizeResult extends StrategyResult {
150
+ /**
151
+ * What the claim did not bring, when the venue settled part of the matured
152
+ * withdrawal and left the rest of it queued — only a legacy Mellow multivault
153
+ * does. `undefined` everywhere else, which is the normal case: one request,
154
+ * one claim, one tail.
155
+ *
156
+ * When it is set, the result beside it serves only the share that arrived,
157
+ * and the operation is not over: pass `remainder.intent` back to
158
+ * {@link IOpportunitiesPrepare.finalize} with the next claim, see
159
+ * {@link ClaimRemainder}.
160
+ **/
161
+ remainder: ClaimRemainder | undefined;
162
+ }
163
+ /**
164
+ * What the leading half of a delayed operation comes to: the request
165
+ * transaction, plus what it recorded for the tail and where that tail leads.
166
+ *
167
+ * Shaped like {@link StrategyResult} with one field more, so the instant and
168
+ * the delayed route of the same request are compared side by side — and they
169
+ * are meant to be compared on the same footing, so `state` is the end of the
170
+ * operation in both, not the end of the transaction.
171
+ **/
172
+ export interface DelayedStrategyResult {
173
+ /**
174
+ * {@inheritDoc StrategyResult.operations}
175
+ **/
176
+ operations: AccountCalculatorOperation[];
177
+ /**
178
+ * Where the operation ends: the account once the redemption has matured,
179
+ * been claimed and the tail has run — the same place the instant route
180
+ * reaches in one transaction, which is what makes the two comparable.
181
+ *
182
+ * The tail's half of it is an estimate priced by the oracle: the funds it
183
+ * trades do not exist yet, so no route can be quoted for them. The state
184
+ * the request alone lands in — source spent, withdrawal position in its
185
+ * place, debt untouched — is `delayed.afterRequest`.
186
+ **/
187
+ state: OperationState;
188
+ /**
189
+ * {@inheritDoc StrategyResult.calls}
190
+ **/
191
+ calls: MultiCall[];
192
+ /**
193
+ * When the tail can be run, and what the request recorded for it, see
194
+ * {@link DelayedStart}.
195
+ **/
196
+ delayed: DelayedStart;
197
+ /** Block of the chain state this result was computed from. */
198
+ blockNumber: number;
199
+ /** Unix seconds of {@link blockNumber}. */
200
+ timestamp: Timestamp;
201
+ }
202
+ /**
203
+ * What one of the two flows that sell a position asset —
204
+ * {@link IOpportunitiesPrepare.withdrawStrategy} and
205
+ * {@link IOpportunitiesPrepare.adjustLeverage} — would yield each way it can be
206
+ * served.
207
+ *
208
+ * Whether the account can sell that asset on the router, redeem it through its
209
+ * issuer, or both, is not something the caller can know up front, so both routes
210
+ * are quoted from one request. A route the account cannot take is `undefined`
211
+ * with its error in `errors`, which is what lets a form offer exactly the
212
+ * routes that exist; a failure means neither does, and the error still carries
213
+ * `errors`, see {@link WithRouteErrors}.
214
+ **/
215
+ export interface StrategyRoutesResult {
216
+ /**
217
+ * The router route: one transaction, settled on the spot. `undefined`
218
+ * when the asset cannot be sold, see `errors.instant`.
219
+ **/
220
+ instant: StrategyResult | undefined;
221
+ /**
222
+ * The request half of the redemption route, which
223
+ * {@link IOpportunitiesPrepare.finalize} completes once it matures.
224
+ * `undefined` when the route does not exist — no redemption venue for the
225
+ * asset, or a request that settles at once anyway — see `errors.delayed`.
226
+ **/
227
+ delayed: DelayedStrategyResult | undefined;
228
+ /**
229
+ * Why a missing route is missing, see {@link RouteErrors}.
230
+ **/
231
+ errors: RouteErrors;
232
+ /** Block of the chain state this result was computed from. */
233
+ blockNumber: number;
234
+ /** Unix seconds of {@link blockNumber}. */
235
+ timestamp: Timestamp;
236
+ }
237
+ /**
238
+ * What opening a new leveraged position comes to.
239
+ *
240
+ * The only result that reports both an expected and a floor branch: opening
241
+ * takes both from a single pathfinder call, and `openCA` consumes both.
242
+ **/
243
+ export interface OpenStrategyResult {
244
+ /**
245
+ * Everything the opening arrives at: the projection, both branches of the
246
+ * post-open balances and quotas, and the router path `openCA` is handed.
247
+ **/
248
+ state: OpenStrategyState;
249
+ /** Block of the chain state this result was computed from. */
250
+ blockNumber: number;
251
+ /** Unix seconds of {@link blockNumber}. */
252
+ timestamp: Timestamp;
253
+ }
254
+ /**
255
+ * What taking a loan against collateral comes to.
256
+ *
257
+ * Shaped like {@link OpenStrategyResult} — a borrow opens its account too, so
258
+ * there is no chain of steps to report — with the whole projection on the
259
+ * state rather than two branches of balances, see {@link BorrowState}.
260
+ **/
261
+ export interface BorrowResult {
262
+ /**
263
+ * Everything the loan arrives at: the collateral and the debt it backs, the
264
+ * payout expected and its floor, the position metrics a screen shows beside
265
+ * them, and the router path `openCA` is handed.
266
+ **/
267
+ state: BorrowState;
268
+ /** Block of the chain state this result was computed from. */
269
+ blockNumber: number;
270
+ /** Unix seconds of {@link blockNumber}. */
271
+ timestamp: Timestamp;
272
+ }
273
+ /**
274
+ * What opening an account that holds nothing comes to: the block it was
275
+ * cleared at, and nothing else.
276
+ *
277
+ * The one prepared operation with no state to report. Every other result
278
+ * describes where the account lands, but this one lands it holding nothing and
279
+ * owing nothing — there is no collateral to value, no debt to weigh and no
280
+ * health factor to read. What the preparation is for is the refusal it can
281
+ * answer with instead: a market that takes no multicall.
282
+ **/
283
+ export interface EmptyCreditAccountResult {
284
+ /** Block of the chain state this result was computed from. */
285
+ blockNumber: number;
286
+ /** Unix seconds of {@link blockNumber}. */
287
+ timestamp: Timestamp;
288
+ }
289
+ /**
290
+ * Shared knobs. Both default to the SDK's own defaults when omitted.
291
+ **/
292
+ export interface PrepareOptions {
293
+ /** Router slippage in PERCENTAGE_FORMAT (100% = 10_000). */
294
+ slippage?: number;
295
+ /**
296
+ * Extra quota headroom in PERCENTAGE_FORMAT, to survive price drift between
297
+ * the preparation and execution.
298
+ **/
299
+ quotaReserve?: number;
300
+ }
301
+ /**
302
+ * Position to prepare against. A `StrategyPosition` from
303
+ * `sdk.positions.list()` satisfies this, as does a bare key.
304
+ **/
305
+ export type PositionInput = StrategyPositionKey;
306
+ /**
307
+ * Pool to prepare against. A `PoolOpportunity` from
308
+ * `sdk.opportunities.list()` satisfies this, as does a bare key.
309
+ **/
310
+ export type PoolInput = PoolOpportunityKey;
311
+ /**
312
+ * Market to open a new position in. A `StrategyOpportunity` from
313
+ * `sdk.opportunities.list()` satisfies this, as does a bare key.
314
+ **/
315
+ export type StrategyInput = StrategyOpportunityKey;
316
+ export interface DepositStrategyParams extends PrepareOptions {
317
+ /**
318
+ * Collateral to add: the market underlying, or its unwrapped asset on an RWA
319
+ * market (USDC rather than dcUSDC).
320
+ **/
321
+ token: Address;
322
+ amount: bigint;
323
+ /** Native value to attach when paying a wrapped-native market in the coin. */
324
+ value?: bigint;
325
+ /**
326
+ * Token the position ends up in. Defaults to the account's most valuable
327
+ * non-phantom, non-underlying balance.
328
+ **/
329
+ positionToken?: Address;
330
+ /**
331
+ * Target total leverage scaled by `LEVERAGE_DECIMALS` (300n = 3x). Omit to
332
+ * keep the account's current leverage.
333
+ **/
334
+ targetLeverage?: bigint;
335
+ }
336
+ export interface WithdrawStrategyParams extends PrepareOptions {
337
+ /**
338
+ * Amount the wallet receives, denominated in `tokenOut`. `MAX_UINT256`, or
339
+ * anything at or above the account's net value, turns the flow into an exit,
340
+ * see {@link IOpportunitiesPrepare.withdrawStrategy}.
341
+ **/
342
+ amount: bigint;
343
+ /** Token recipient. */
344
+ to: Address;
345
+ /**
346
+ * Token the wallet receives. Defaults to the market underlying, force-unwrapped
347
+ * to the RWA asset on an RWA market.
348
+ **/
349
+ tokenOut?: Address;
350
+ /**
351
+ * Token liquidated to fund the withdrawal. Defaults to the account's most
352
+ * valuable non-phantom balance.
353
+ **/
354
+ sourceToken?: Address;
355
+ }
356
+ export interface RepayStrategyParams extends PrepareOptions {
357
+ /**
358
+ * Funding token: the market underlying, which needs no conversion and is
359
+ * repaid where it lands, or — on an RWA market — the unwrapped asset behind
360
+ * it (USDC rather than dcUSDC), which this flow wraps on the way in.
361
+ **/
362
+ token: Address;
363
+ /**
364
+ * Amount taken from the wallet. Anything above the outstanding debt settles
365
+ * it in full and stays on the account as collateral, so a caller clearing the
366
+ * account can add a buffer for the interest that accrues before the
367
+ * transaction lands, see {@link IOpportunitiesPrepare.maxRepay}.
368
+ * `MAX_UINT256` settles the debt and sizes that buffer itself.
369
+ **/
370
+ amount: bigint;
371
+ /** Native value to attach when paying a wrapped-native market in the coin. */
372
+ value?: bigint;
373
+ }
374
+ export interface AdjustLeverageParams extends PrepareOptions {
375
+ /**
376
+ * Target total leverage scaled by `LEVERAGE_DECIMALS` (300n = 3x); 100n means
377
+ * no debt.
378
+ **/
379
+ targetLeverage: bigint;
380
+ /**
381
+ * Position token to buy into or sell out of. Defaults to the account's most
382
+ * valuable non-phantom, non-underlying balance.
383
+ **/
384
+ token?: Address;
385
+ }
386
+ export interface AddCollateralParams extends PrepareOptions {
387
+ /** Position token to deposit; nothing else is accepted. */
388
+ token: Address;
389
+ amount: bigint;
390
+ /** Native value to attach when paying a wrapped-native market in the coin. */
391
+ value?: bigint;
392
+ }
393
+ export interface BorrowAndWithdrawParams {
394
+ /** Wallet receiving the tokens. */
395
+ to: Address;
396
+ /** Exact payout in the underlying, or the asset behind an RWA wrapper. */
397
+ amount: bigint;
398
+ }
399
+ export interface WithdrawCollateralParams extends PrepareOptions {
400
+ /** Token to move out; must already sit on the account. */
401
+ token: Address;
402
+ amount: bigint;
403
+ /** Wallet receiving the tokens. */
404
+ to: Address;
405
+ }
406
+ export interface UpdateQuotaParams extends PrepareOptions {
407
+ /** Collateral token on the account, other than the underlying. */
408
+ token: Address;
409
+ /**
410
+ * Target quota in underlying units; 0 disables it. Omit to size it to the
411
+ * balance: its value in underlying × LT, raised by `quotaReserve`.
412
+ **/
413
+ quota?: bigint;
414
+ }
415
+ export interface OpenStrategyParams extends PrepareOptions {
416
+ /** Collateral coming from the wallet, in their own tokens. */
417
+ collateral: Asset[];
418
+ /**
419
+ * Target total leverage scaled by `LEVERAGE_DECIMALS` (300n = 3x).
420
+ **/
421
+ leverage: bigint;
422
+ /**
423
+ * Token the position ends up in. Defaults to the opportunity's target
424
+ * collateral.
425
+ **/
426
+ targetToken?: Address;
427
+ /** Collateral to leave unswapped; everything else is routed into the target. */
428
+ leftoverBalances?: Asset[];
429
+ /**
430
+ * Existing credit account to open the position on, instead of creating one.
431
+ *
432
+ * Any account of `strategy.creditManager` that carries no debt and no
433
+ * quotas qualifies. The projection is identical either way; only the
434
+ * transaction differs, and `execute.buildTx` reads which one to build off
435
+ * the result's own `state.creditAccount`.
436
+ **/
437
+ creditAccount?: Address;
438
+ }
439
+ export interface BorrowParams extends PrepareOptions {
440
+ /**
441
+ * Token the wallet puts up as collateral. Must be a collateral token of the
442
+ * market, and cannot be {@link borrowToken} — the payout is swept off the
443
+ * account, and a sweep takes the whole balance of the token it names.
444
+ **/
445
+ collateralToken: Address;
446
+ /** Amount of {@link collateralToken} that leaves the wallet. */
447
+ collateralAmount: bigint;
448
+ /**
449
+ * Token the wallet is paid the loan in. The market underlying is handed over
450
+ * as it is borrowed; anything else the router has a path to is bought with
451
+ * the borrowed underlying first, and then {@link BorrowResult} reports both
452
+ * what that trade is expected to return and its floor.
453
+ *
454
+ * An RWA market is paid in the asset its underlying wraps — `USDC`, not the
455
+ * `dcUSDC` the pool lends — because the wrapper cannot leave the account.
456
+ * The two convert one for one through the market's vault, so that payout is
457
+ * exact like the underlying's. Naming the wrapper is refused with
458
+ * `unsupportedCollateralToken`.
459
+ **/
460
+ borrowToken: Address;
461
+ /**
462
+ * Amount of {@link borrowToken} the wallet asks for. It is the debt exactly
463
+ * when `borrowToken` is the market underlying, and the same amount in the
464
+ * underlying's own decimals when it is the asset an RWA market unwraps into;
465
+ * otherwise the debt is what the oracle prices that much of it at, and what
466
+ * actually arrives is the router's answer.
467
+ **/
468
+ borrowAmount: bigint;
469
+ /**
470
+ * Existing credit account to draw the loan on, instead of opening one.
471
+ *
472
+ * Any account of `strategy.creditManager` that carries no debt and no
473
+ * quotas qualifies. Only the transaction differs; `execute.buildTx` reads
474
+ * which one to build off the result's own `state.creditAccount`.
475
+ *
476
+ * Balances already sitting on it are left where they are and are **not**
477
+ * counted towards the health factor, so the loan this allows is the one the
478
+ * named collateral alone carries. The exception is a balance in
479
+ * {@link borrowToken}: the payout sweep takes the whole balance of the token
480
+ * it names, so that one leaves with the loan.
481
+ **/
482
+ creditAccount?: Address;
483
+ }
484
+ /**
485
+ * What a borrow form knows before it knows the amount: everything
486
+ * {@link BorrowParams} carries except the loan itself, which is the answer.
487
+ **/
488
+ export interface MaxBorrowParams {
489
+ /** Token the wallet would put up, as in {@link BorrowParams}. */
490
+ collateralToken: Address;
491
+ /** Amount of {@link collateralToken} that would leave the wallet. */
492
+ collateralAmount: bigint;
493
+ /** Token the loan would be paid in; the ceiling comes back in its units. */
494
+ borrowToken: Address;
495
+ /**
496
+ * Health factor the loan should leave the account at, in basis points.
497
+ * Omitted, the SDK holds it to the threshold a form would.
498
+ **/
499
+ targetHF?: bigint;
500
+ /**
501
+ * Extra quota headroom in PERCENTAGE_FORMAT. Pass what the borrow itself
502
+ * will pass: a quota short of the collateral's weighted value is what caps
503
+ * the loan, so a different reserve here answers about a different loan.
504
+ **/
505
+ quotaReserve?: number;
506
+ }
507
+ export interface LpParams {
508
+ /**
509
+ * On deposit: amount of `tokenIn`. On withdraw: amount of `tokenOut`, which
510
+ * the pool's `withdraw` takes as is and prices in shares itself.
511
+ **/
512
+ amount: bigint;
513
+ /**
514
+ * Wallet funding the deposit or receiving the withdrawal. Required because it
515
+ * is baked into the calldata.
516
+ **/
517
+ wallet: Address;
518
+ /**
519
+ * Token the user parts with. Defaults to the pool underlying on deposit and to
520
+ * the pool shares on withdrawal.
521
+ **/
522
+ tokenIn?: Address;
523
+ /**
524
+ * Token the user receives. Defaults to the only route available for `tokenIn`;
525
+ * required when the pool offers several, otherwise the preparation answers
526
+ * with `unsupportedTokenPair`.
527
+ **/
528
+ tokenOut?: Address;
529
+ }
530
+ /**
531
+ * Same shape as {@link LpParams}, but {@link IOpportunitiesPrepare.redeem}
532
+ * treats `amount` as the pool shares to burn rather than the underlying to
533
+ * receive.
534
+ **/
535
+ export interface LpRedeemParams {
536
+ /**
537
+ * Amount of `tokenIn` — pool shares, or the zapper token that wraps them —
538
+ * to redeem.
539
+ **/
540
+ amount: bigint;
541
+ wallet: Address;
542
+ tokenIn?: Address;
543
+ tokenOut?: Address;
544
+ }
545
+ export interface FinalizeParams extends PrepareOptions {
546
+ /**
547
+ * The matured withdrawal to claim, from
548
+ * `sdk.positions.getCurrentWithdrawals()`.
549
+ **/
550
+ claimable: PositionClaimableWithdrawal;
551
+ /**
552
+ * The operation to resume. Defaults to the one the request recorded in the
553
+ * withdrawal's `extraData`, which is what
554
+ * {@link PositionClaimableWithdrawal.intent} decodes; pass it explicitly
555
+ * when the compressor is too old to report it — as a Mellow one is, since a
556
+ * Mellow request cannot carry an intent at all — or when a previous claim
557
+ * served only part of the operation and left one in
558
+ * {@link FinalizeResult.remainder}.
559
+ **/
560
+ intent?: ResumableIntent;
561
+ }
562
+ /**
563
+ * Everything a wallet can do to a pool or a credit account, prepared.
564
+ *
565
+ * On-chain only: every method reads live state and, for strategies, asks the
566
+ * pathfinder for real swap paths. Nothing is executed and nothing is signed —
567
+ * the result is the numbers plus the calldata that would produce them.
568
+ *
569
+ * Not to be confused with `src/onchain/preview`, which goes the other way: it takes
570
+ * calldata that already exists and reports what it would do.
571
+ *
572
+ * Every refusable method answers `SDKReturn` and names, in its own signature,
573
+ * exactly the errors its flow can answer with — the union is the list of
574
+ * everything a caller has to handle, checked by the compiler. None of them
575
+ * throws: a chain that cannot be reached or a crash on the way arrives as
576
+ * `unexpectedFailure` with the cause attached.
577
+ *
578
+ * Every method that reports a state reports one when it refuses too: the error
579
+ * carries `state`, the same shape the answer beside it would have had, with
580
+ * the fields the request never got far enough to say left out — see
581
+ * {@link WithPartialState}. A form that asked "what would this do to my
582
+ * position" is told as much of it as there was, and can explain the no in
583
+ * numbers rather than in a code alone.
584
+ *
585
+ * The bare readers stay outside the envelope. The ones that read an account
586
+ * answer their number and throw on an account or chain the SDK does not hold;
587
+ * the synchronous ones ({@link leverageBand}, {@link withdrawableCollaterals},
588
+ * {@link maxBorrow}) weigh state already loaded and say "nothing available"
589
+ * with `undefined`, an empty list or `0n`.
590
+ **/
591
+ export interface IOpportunitiesPrepare {
592
+ /** Synchronous quota-buffer state from loaded chain data. No freshness refresh
593
+ * or account RPC read. Ineligible positions return undefined; unexpected
594
+ * failures are thrown. extraQuotas includes reservations absent from the position.
595
+ */
596
+ getQuotaBufferState(position: Position, extraQuotas?: readonly (Pick<Asset, "token"> & {
597
+ quota: bigint;
598
+ })[]): QuotaBufferState | undefined;
599
+ /**
600
+ * Depositing into a pool: underlying in, shares out.
601
+ *
602
+ * The trade itself is the pool's share rate applied to the amount, which is
603
+ * loaded already; the wait is for the one thing that is not, the shares the
604
+ * wallet holds, without which {@link LpState.netValue} cannot be said.
605
+ **/
606
+ deposit(pool: PoolInput, params: LpParams): Promise<SDKReturn<LpResult, (UnsupportedTokenPairError | UnexpectedFailureError | PoolOperationError) & WithPartialState<LpState>>>;
607
+ /**
608
+ * Taking underlying out of a pool: `amount` is the `tokenOut` the wallet
609
+ * wants back, and the pool burns whatever shares that costs.
610
+ *
611
+ * The LP counterpart of {@link withdrawStrategy} / {@link withdrawCollateral},
612
+ * which act on credit accounts.
613
+ **/
614
+ withdraw(pool: PoolInput, params: LpParams): Promise<SDKReturn<LpResult, (UnsupportedTokenPairError | UnexpectedFailureError | PoolOperationError) & WithPartialState<LpState>>>;
615
+ /**
616
+ * Redeeming pool shares: `amount` is the `tokenIn` the wallet parts with,
617
+ * and the reported state is the underlying it converts to.
618
+ **/
619
+ redeem(pool: PoolInput, params: LpRedeemParams): Promise<SDKReturn<LpResult, (UnsupportedTokenPairError | UnexpectedFailureError | PoolOperationError) & WithPartialState<LpState>>>;
620
+ /**
621
+ * Opening a leveraged position from wallet collateral.
622
+ *
623
+ * There is no account to walk yet, so the result carries no operation list —
624
+ * it feeds `sdk.accounts.openCA` instead.
625
+ *
626
+ * `creditAccount` puts the position on an account the wallet already holds
627
+ * rather than creating one.
628
+ **/
629
+ openNewStrategy(strategy: StrategyInput, params: OpenStrategyParams): Promise<SDKReturn<OpenStrategyResult, (OpenFlowError | DebtOutOfRangeError | LeverageOutOfRangeError | UnsupportedTokenPairError | InsufficientPoolLiquidityError | NoStrategyTargetCollateralError | CreditAccountNotFoundError | CreditAccountNotEmptyError) & WithPartialState<OpenStrategyState>>>;
630
+ /**
631
+ * Handing a wallet an account that holds nothing: no collateral, no debt, no
632
+ * quotas and no route quoted. It exists so a wallet can hold an account
633
+ * ahead of having a use for one, and so the two flows that put something on
634
+ * an account have one to name as their `creditAccount`.
635
+ *
636
+ * The market is the whole request, and the only thing that can refuse it is
637
+ * the market itself: a facade that is paused or past its expiration takes no
638
+ * multicall, so an account cannot be opened there either.
639
+ **/
640
+ openEmptyCreditAccount(strategy: StrategyInput): Promise<SDKReturn<EmptyCreditAccountResult, CreditManagerPausedError | MarketExpiredError | UnexpectedFailureError>>;
641
+ /**
642
+ * Borrowing against collateral: one transaction opens an account, puts the
643
+ * collateral on it, draws the loan and pays it out to the wallet.
644
+ *
645
+ * The account is left holding the collateral and owing the debt, and nothing
646
+ * else — which is what tells this apart from {@link openNewStrategy}, where
647
+ * the borrowed funds stay on the account as part of the position. There is
648
+ * no leverage to name for the same reason: the loan is the amount asked for.
649
+ *
650
+ * The payout leaves the account, so the market weighs what is left at safe
651
+ * prices, and a loan the remaining collateral cannot carry there comes back
652
+ * as `insufficientCollateral` rather than reverting on arrival.
653
+ *
654
+ * `creditAccount` draws the loan on an account the wallet already holds
655
+ * instead of opening another, as {@link openNewStrategy} does.
656
+ **/
657
+ borrow(strategy: StrategyInput, params: BorrowParams): Promise<SDKReturn<BorrowResult, (OpenFlowError | DebtOutOfRangeError | UnsupportedCollateralTokenError | UnsupportedTokenPairError | InsufficientPoolLiquidityError | CreditAccountNotFoundError | CreditAccountNotEmptyError) & WithPartialState<BorrowState>>>;
658
+ /**
659
+ * Growing a position: collateral in, debt drawn on top, both converted into
660
+ * the position token.
661
+ *
662
+ * Leverage stays put unless `targetLeverage` asks for more.
663
+ **/
664
+ depositStrategy(position: PositionInput, params: DepositStrategyParams): Promise<SDKReturn<StrategyResult, (AccountFlowError | DebtOutOfRangeError | LeverageOutOfRangeError | UnsupportedCollateralTokenError | UnsupportedTokenPairError | InsufficientPoolLiquidityError) & WithPartialState<OperationState>>>;
665
+ /**
666
+ * Shrinking a position: part of its net value goes to the wallet and debt is
667
+ * repaid in the same proportion, so leverage is unchanged.
668
+ *
669
+ * Answers with both routes the withdrawal can take — sold through the router
670
+ * now, or redeemed through the source's issuer and finished days later — since
671
+ * the source token decides which of them exist, see
672
+ * {@link StrategyRoutesResult}.
673
+ *
674
+ * `MAX_UINT256` — or any amount at or above the account's net value — is an
675
+ * exit instead: the quotas are dropped, the position is sold whole in one
676
+ * many-to-one route, the debt is settled in full and every balance left goes
677
+ * to `to`. `tokenOut` is ignored, since the proceeds are already the
678
+ * underlying (unwrapped on an RWA market). The account stays open with
679
+ * nothing on it.
680
+ *
681
+ * An exit has both routes as well, which is what lets an account whose
682
+ * position only redeems through its issuer leave at all: the delayed route
683
+ * redeems `sourceToken` whole and records the exit, and {@link finalize}
684
+ * rebuilds it against the account the claim finds — the debt as it stands by
685
+ * then, whatever else is on the account, everything sold in one route.
686
+ *
687
+ * @see withdrawCollateral to move an asset out without touching debt, which
688
+ * raises leverage instead.
689
+ **/
690
+ withdrawStrategy(position: PositionInput, params: WithdrawStrategyParams): Promise<SDKReturn<StrategyRoutesResult, (AccountFlowError | DebtOutOfRangeError | UnsupportedTokenPairError | NoDelayedRouteError | MultipleDelayedWithdrawalsError | WithdrawalInProgressError) & WithRouteErrors & WithPartialState<OperationState>>>;
691
+ /**
692
+ * How much {@link withdrawStrategy} can take out, every end of it, in
693
+ * underlying units: `safePartial` is the largest partial withdrawal the flow
694
+ * accepts, `partial` the same figure before the safe-price collateral check
695
+ * has had its say, and `exit` the net value leaving entirely hands over.
696
+ *
697
+ * More than one number because the range has a hole in it: between the
698
+ * largest partial and `exit` the flow refuses with `debtOutOfRange`, since
699
+ * the leftover loan would sit below the floor. A form driving a slider off
700
+ * `safePartial` and a Max button off `exit` describes what the account can
701
+ * actually do; a form using either alone will misstate one of them — see
702
+ * {@link WithdrawCeilings}, which spells out how far apart they can be and
703
+ * why the two partial figures differ.
704
+ *
705
+ * `sourceToken` is the collateral the withdrawal would be funded from, the
706
+ * same argument {@link withdrawStrategy} takes. It matters because selling
707
+ * one collateral and selling another cost the safe-price check different
708
+ * amounts; omitted, both this and the flow itself reach for the account's
709
+ * largest non-phantom balance.
710
+ *
711
+ * `targetHF` is the health factor `safePartial` has to leave behind, in
712
+ * basis points. The default is the facade's own threshold; a form holding
713
+ * the account to something stricter passes its own, so the ceiling it
714
+ * offers clears its own bar rather than landing a basis point under it.
715
+ *
716
+ * Taking everything out needs none of the figures: send `MAX_UINT256` to
717
+ * {@link withdrawStrategy} and the exit is what runs, named rather than
718
+ * priced.
719
+ *
720
+ * A bare read: it answers its numbers, and throws on an account or a chain
721
+ * the SDK does not hold.
722
+ **/
723
+ maxWithdraw(position: PositionInput, sourceToken?: Address, targetHF?: bigint): Promise<WithdrawCeilings>;
724
+ /**
725
+ * Paying debt down with funds from the wallet: collateral stays where it is,
726
+ * so net value grows by what was repaid, leverage falls and the health factor
727
+ * rises. The flow to reach for when a position is close to liquidation.
728
+ *
729
+ * A partial repayment is two calls and nothing else: the funding lands and
730
+ * the debt shrinks, quotas untouched — they still back a loan.
731
+ *
732
+ * A repayment that covers the whole debt clears the account's quotas with it,
733
+ * which the facade requires of a loan going to zero, and asks for the full
734
+ * outstanding amount, so nothing is left owing because interest moved between
735
+ * this preparation and the transaction. `MAX_UINT256` is how to ask for that
736
+ * settlement without naming a figure: the wallet is charged the debt plus a
737
+ * 10bps margin for the interest still to come, and whatever the facade does
738
+ * not take stays on the account.
739
+ **/
740
+ repayStrategy(position: PositionInput, params: RepayStrategyParams): Promise<SDKReturn<StrategyResult, (AccountFlowError | DebtOutOfRangeError | UnsupportedCollateralTokenError) & WithPartialState<OperationState>>>;
741
+ /**
742
+ * Debt {@link repayStrategy} would have to cover to clear the account, in
743
+ * underlying units: principal, interest and fees as of this read. Interest
744
+ * keeps accruing, so a wallet meaning to settle sends this with a buffer.
745
+ *
746
+ * A bare read: it answers its number, and throws on an account or a chain
747
+ * the SDK does not hold.
748
+ **/
749
+ maxRepay(position: PositionInput): Promise<bigint>;
750
+ /**
751
+ * Retargeting leverage at fixed collateral: debt moves, own funds do not.
752
+ *
753
+ * Answers with both routes, like {@link withdrawStrategy}, since deleveraging
754
+ * sells the position token and may only be able to redeem it. Raising leverage
755
+ * buys instead, so there the delayed route is always absent with
756
+ * `errors.delayed` set to `noDelayedRoute`.
757
+ **/
758
+ adjustLeverage(position: PositionInput, params: AdjustLeverageParams): Promise<SDKReturn<StrategyRoutesResult, (AccountFlowError | DebtOutOfRangeError | UnsupportedTokenPairError | NoDelayedRouteError | MultipleDelayedWithdrawalsError | WithdrawalInProgressError | InsufficientPoolLiquidityError | LeverageOutOfRangeError) & WithRouteErrors & WithPartialState<OperationState>>>;
759
+ /**
760
+ * Putting the position token onto the account at fixed debt, which lowers
761
+ * leverage and raises the health factor.
762
+ **/
763
+ addCollateral(position: PositionInput, params: AddCollateralParams): Promise<SDKReturn<StrategyResult, AccountFlowError & WithPartialState<OperationState>>>;
764
+ /** Maximum additional loan paid out without changing existing balances or quotas.
765
+ * Returns payout token units; zero when no amount can be borrowed.
766
+ */
767
+ maxBorrowAndWithdraw(position: PositionInput, options?: MaxBorrowAndWithdrawOptions): Promise<bigint>;
768
+ /** Increase existing debt and pay the exact amount to the supplied recipient.
769
+ * Ordinary markets pay underlying; RWA markets unwrap into its asset.
770
+ */
771
+ borrowAndWithdraw(position: PositionInput, params: BorrowAndWithdrawParams): Promise<SDKReturn<StrategyResult, (AccountFlowError | DebtOutOfRangeError | InsufficientPoolLiquidityError) & WithPartialState<OperationState>>>;
772
+ /**
773
+ * Moving one asset that already sits on the account out to the wallet, at
774
+ * fixed debt — so TVL falls and leverage rises.
775
+ *
776
+ * @see withdrawStrategy for the deleveraging withdrawal, which repays debt in
777
+ * proportion and leaves leverage unchanged.
778
+ **/
779
+ withdrawCollateral(position: PositionInput, params: WithdrawCollateralParams): Promise<SDKReturn<StrategyResult, AccountFlowError & WithPartialState<OperationState>>>;
780
+ /**
781
+ * Changing the quota of one token the account already holds, at fixed debt
782
+ * and balances: how much of it counts as collateral, and the quota fee paid
783
+ * for it.
784
+ *
785
+ * A target is sent strictly, so the transaction reverts rather than end
786
+ * below it. An omitted target is sized to the balance and capped at the
787
+ * pool's available quota; the call then accepts a partial fill that keeps the
788
+ * token enabled.
789
+ **/
790
+ updateQuota(position: PositionInput, params: UpdateQuotaParams): Promise<SDKReturn<StrategyResult, (AccountFlowError | DebtOutOfRangeError | UnsupportedCollateralTokenError | QuotaInactiveError | QuotaUnchangedError | QuotaAboveMaxError) & WithPartialState<OperationState>>>;
791
+ /**
792
+ * The leverages a deposit of a given size can reach in this market: the
793
+ * range a leverage slider should mark as available.
794
+ *
795
+ * `maxLeverage` on the opportunity is the ceiling the liquidation threshold
796
+ * allows, and it is the same number whatever the deposit. What a given
797
+ * deposit reaches is decided by the debt it implies —
798
+ * `debt = netValue x (leverage - 1)` — and by the `debtLimits` the market puts that
799
+ * debt in.
800
+ *
801
+ * Synchronous, unlike the ceilings above it: those read the account from the
802
+ * chain, this one only needs loaded market state, so a form can ask on every
803
+ * keystroke. Opening values `collateral`; passing `position` selects adjust
804
+ * mode, which derives own funds, debt and quota state from that position.
805
+ *
806
+ * Nothing at all when the market has no range to offer: a deposit too small
807
+ * to carry `minDebt` at any leverage the threshold allows, or a manager with
808
+ * no borrowing room left. Not the same answer as "every leverage works", and
809
+ * a caller must not mark a range for it.
810
+ **/
811
+ leverageBand(strategy: StrategyInput, collateral: readonly Asset[], targetHF?: Bps, position?: StrategyPosition): LeverageBand | undefined;
812
+ /**
813
+ * The collaterals an account can actually take out, most valuable first —
814
+ * what a withdraw-collateral picker offers.
815
+ *
816
+ * `StrategyPosition.collaterals` is everything the account holds, in the
817
+ * order the manager keeps its tokens. Phantoms are in there: the position
818
+ * reports one as itself and puts the asset it redeems into under
819
+ * `withdrawals`, and {@link withdrawCollateral} cannot move a balance that
820
+ * is not transferable. Balances below dust are already gone — the position
821
+ * drops them as it is built.
822
+ *
823
+ * Synchronous, like {@link leverageBand}: it reads loaded token metadata and
824
+ * the position it was handed, so a form can ask on every render. Nothing is
825
+ * quoted here — which of these the router can sell is a different question,
826
+ * and the answer to it is a prepared operation.
827
+ **/
828
+ withdrawableCollaterals(position: StrategyPosition): PositionCollateral[];
829
+ /**
830
+ * Largest amount of one collateral {@link withdrawCollateral} can move out
831
+ * while the account stays safely collateralised, in the token's units: the
832
+ * remaining assets are weighed by their liquidation thresholds (quoted ones
833
+ * capped by their quotas) and the target keeps covering what the debt still
834
+ * requires. Zero debt frees the whole balance — the ceiling a
835
+ * withdraw-collateral form should offer.
836
+ *
837
+ * Options name independent main and safe price health-factor thresholds in
838
+ * basis points. The SDK defaults to the form thresholds and adds its margin.
839
+ *
840
+ * A bare read: it answers its number, and throws on an account or a chain
841
+ * the SDK does not hold.
842
+ **/
843
+ maxWithdrawCollateral(position: PositionInput, token: Address, options?: MaxWithdrawCollateralOptions): Promise<bigint>;
844
+ /**
845
+ * Largest loan {@link borrow} can draw against a given collateral while the
846
+ * account stays safely collateralised, in the payout token's units — the
847
+ * ceiling a borrow form should offer.
848
+ *
849
+ * The loan leaves the account, so the collateral alone backs the debt and
850
+ * the market weighs it at safe prices, under its liquidation threshold and
851
+ * capped by the quota the borrow buys for it. The answer is then held to
852
+ * what the market will actually lend: the pool's free liquidity, the
853
+ * manager's own allowance and the facade's `maxDebt`.
854
+ *
855
+ * `targetHF` names the health factor to land at, in basis points; omitted,
856
+ * the SDK holds it to the threshold a form would.
857
+ *
858
+ * Synchronous, like {@link leverageBand} and for the same reason: the
859
+ * account does not exist yet, so there is nothing to read and a form can ask
860
+ * on every keystroke.
861
+ *
862
+ * It is a ceiling and not a verdict: the facade's `minDebt` is a floor, and
863
+ * holding the answer to it would tell a form `0` for collateral that does
864
+ * carry a loan, only a smaller one than this market lends. So a Max offered
865
+ * from here can still be refused by {@link borrow} with `debtOutOfRange`,
866
+ * which names the floor the amount fell short of.
867
+ *
868
+ * `0n` where this market funds no loan of this shape at any size — a
869
+ * collateral worth nothing at safe prices, a payout token equal to the
870
+ * collateral, a market with nothing left to lend, or a manager the SDK does
871
+ * not hold. Not the same as "any amount works", and a caller must not offer
872
+ * a Max for it.
873
+ **/
874
+ maxBorrow(strategy: StrategyInput, params: MaxBorrowParams): bigint;
875
+ /**
876
+ * The tail of a delayed route: claim the matured withdrawal, then whatever the
877
+ * operation that requested it still owes — repaying debt and paying the wallet
878
+ * out for a withdrawal, repaying alone for a deleveraging, selling the rest of
879
+ * the account and settling the loan for an exit, nothing beyond the claim for
880
+ * the rest.
881
+ *
882
+ * The route is requested by {@link withdrawStrategy} or
883
+ * {@link adjustLeverage}, whose `delayed` branch is the transaction that
884
+ * starts it; days later the redemption matures and this finishes it. Nothing
885
+ * has to be kept on the client in between: the request writes the operation
886
+ * into the withdrawal's `extraData`, and reading the claimable decodes it
887
+ * back.
888
+ *
889
+ * Answers like the instant flows, so both halves are consumed the same way.
890
+ * Reports `noRecordedIntent` when the claim names no operation to resume.
891
+ *
892
+ * A claim can settle only part of what was queued — a legacy Mellow
893
+ * multivault hands over what it holds liquid and re-queues the rest — and then
894
+ * the result serves that share and `remainder` says what is left, see
895
+ * {@link FinalizeResult.remainder}.
896
+ **/
897
+ finalize(position: PositionInput, params: FinalizeParams): Promise<SDKReturn<FinalizeResult, (AccountFlowError | NoRecordedIntentError | NoDelayedRouteError | WithdrawalInProgressError | UnsupportedTokenPairError) & WithPartialState<OperationState>>>;
898
+ }
899
+ export type { BorrowState, CreditAccountNotEmptyError, CreditAccountNotFoundError, ExecutionCost, LeverageBand, MultipleDelayedWithdrawalsError, NoDelayedRouteError, NoRecordedIntentError, NoStrategyTargetCollateralError, OperationState, PathLossRate, PoolOperationError, RouteErrors, UnexpectedFailureError, UnsupportedCollateralTokenError, UnsupportedTokenPairError, WithPartialState, WithdrawCeilings, WithdrawalInProgressError };