@gearbox-protocol/sdk 14.12.0-next.3 → 14.12.0-next.31

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 (554) hide show
  1. package/dist/cjs/abi/IWithdrawalCompressorV313.js +230 -0
  2. package/dist/cjs/abi/compressors/subcompressors/withdrawal/mellowWithdrawalSubcompressor.js +45 -1
  3. package/dist/cjs/abi/compressors/subcompressors/withdrawal/midasWithdrawalSubcompressor.js +45 -1
  4. package/dist/cjs/abi/compressors/subcompressors/withdrawal/securitizeRedemptionSubcompressor.js +45 -1
  5. package/dist/cjs/abi/compressors/withdrawalCompressor.js +47 -2
  6. package/dist/cjs/abi/ierc4626Adapter.js +264 -0
  7. package/dist/cjs/dev/AccountOpener.js +7 -13
  8. package/dist/cjs/dev/index.js +3 -1
  9. package/dist/cjs/dev/withdrawalAbi.js +2105 -0
  10. package/dist/cjs/dev/withdrawalUtils.js +278 -0
  11. package/dist/cjs/history/classifyMulticallOperations.js +2 -0
  12. package/dist/cjs/history/mapOperations.js +7 -0
  13. package/dist/cjs/history/populateContractsRegister.js +14 -11
  14. package/dist/cjs/{preview/simulate/holders.js → permissionless/bindings/factory/rate-keeper-factory.js} +11 -21
  15. package/dist/cjs/permissionless/bindings/market-configurator.js +11 -0
  16. package/dist/cjs/plugins/adapters/abi/actionAbi.js +1 -10
  17. package/dist/cjs/plugins/adapters/abi/adapters/erc4626ReferralAdapter.js +332 -0
  18. package/dist/cjs/plugins/adapters/abi/adapters/iBalancerV3RouterAdapter.js +436 -0
  19. package/dist/cjs/plugins/adapters/abi/adapters/iBalancerV3WrapperAdapter.js +183 -0
  20. package/dist/cjs/plugins/adapters/abi/adapters/iCamelotV3Adapter.js +586 -0
  21. package/dist/cjs/plugins/adapters/abi/adapters/iConvexV1BaseRewardPoolAdapter.js +385 -0
  22. package/dist/cjs/plugins/adapters/abi/adapters/iConvexV1BoosterAdapter.js +143 -0
  23. package/dist/cjs/plugins/adapters/abi/adapters/iCurveV1StableNgAdapter.js +708 -0
  24. package/dist/cjs/plugins/adapters/abi/adapters/iCurveV1_2AssetsAdapter.js +708 -0
  25. package/dist/cjs/plugins/adapters/abi/adapters/iCurveV1_3AssetsAdapter.js +708 -0
  26. package/dist/cjs/plugins/adapters/abi/adapters/iCurveV1_4AssetsAdapter.js +708 -0
  27. package/dist/cjs/plugins/adapters/abi/adapters/iDaiUsdsAdapter.js +206 -0
  28. package/dist/cjs/plugins/adapters/abi/adapters/iFluidDexAdapter.js +183 -0
  29. package/dist/cjs/plugins/adapters/abi/adapters/iInfinifiGatewayAdapter.js +473 -0
  30. package/dist/cjs/plugins/adapters/abi/adapters/iInfinifiUnwindingGateway.js +482 -0
  31. package/dist/cjs/plugins/adapters/abi/adapters/iKelpLrtDepositPool.js +333 -0
  32. package/dist/cjs/plugins/adapters/abi/adapters/iKelpLrtWithdrawalManager.js +488 -0
  33. package/dist/cjs/plugins/adapters/abi/adapters/iLidoV1Adapter.js +171 -0
  34. package/dist/cjs/plugins/adapters/abi/adapters/iMellow4626VaultAdapter.js +269 -0
  35. package/dist/cjs/plugins/adapters/abi/adapters/iMellowClaimerAdapter.js +350 -0
  36. package/dist/cjs/plugins/adapters/abi/adapters/iMellowWrapperAdapter.js +225 -0
  37. package/dist/cjs/plugins/adapters/abi/adapters/iMidasGatewayAdapterV311.js +1015 -0
  38. package/dist/cjs/plugins/adapters/abi/adapters/iMidasIssuanceVaultAdapterV310.js +262 -0
  39. package/dist/cjs/plugins/adapters/abi/adapters/iMidasRedemptionVaultAdapterV310.js +622 -0
  40. package/dist/cjs/plugins/adapters/abi/adapters/iPendleRouterAdapter.js +1787 -0
  41. package/dist/cjs/plugins/adapters/abi/{securitize/iSecuritizeOnRampAdapter.js → adapters/iSecuritizeOnRampAdapterV310.js} +6 -6
  42. package/dist/cjs/plugins/adapters/abi/{securitize/iSecuritizeRedemptionGatewayAdapter.js → adapters/iSecuritizeRedemptionGatewayAdapterV311.js} +26 -6
  43. package/dist/cjs/plugins/adapters/abi/adapters/iStakingRewardsAdapter.js +288 -0
  44. package/dist/cjs/plugins/adapters/abi/adapters/iTraderJoeRouterAdapter.js +459 -0
  45. package/dist/cjs/plugins/adapters/abi/adapters/iUniswapV2Adapter.js +290 -0
  46. package/dist/cjs/plugins/adapters/abi/adapters/iUniswapV3Adapter.js +505 -0
  47. package/dist/cjs/plugins/adapters/abi/adapters/iUniswapV4Adapter.js +534 -0
  48. package/dist/cjs/plugins/adapters/abi/adapters/iUpshiftVaultAdapter.js +475 -0
  49. package/dist/cjs/plugins/adapters/abi/adapters/iVelodromeV2RouterAdapter.js +327 -0
  50. package/dist/cjs/plugins/adapters/abi/adapters/index.js +90 -0
  51. package/dist/cjs/plugins/adapters/abi/adapters/iwstEthv1Adapter.js +183 -0
  52. package/dist/cjs/plugins/adapters/abi/adapters/mellowDvvAdapter.js +319 -0
  53. package/dist/cjs/plugins/adapters/abi/conctructorAbi.js +4 -42
  54. package/dist/cjs/plugins/adapters/abi/conctructorAbiPatterns.js +0 -16
  55. package/dist/cjs/plugins/adapters/abi/index.js +2 -0
  56. package/dist/cjs/plugins/adapters/abi/securitize/{iSecuritizeRedemptionGateway.js → iSecuritizeRedemptionGatewayV311.js} +15 -7
  57. package/dist/cjs/plugins/adapters/abi/securitize/index.js +2 -6
  58. package/dist/cjs/plugins/adapters/abi/targetContractAbi.js +3 -296
  59. package/dist/cjs/plugins/adapters/contracts/AbstractAdapter.js +80 -2
  60. package/dist/cjs/plugins/adapters/contracts/AbstractCurveAdapter.js +69 -0
  61. package/dist/cjs/plugins/adapters/contracts/AccountMigratorAdapterContract.js +2 -2
  62. package/dist/cjs/plugins/adapters/contracts/BalancerV3RouterAdapterContract.js +25 -4
  63. package/dist/cjs/plugins/adapters/contracts/BalancerV3WrapperAdapterContract.js +21 -4
  64. package/dist/cjs/plugins/adapters/contracts/CamelotV3AdapterContract.js +21 -4
  65. package/dist/cjs/plugins/adapters/contracts/ConvexV1BaseRewardPoolAdapterContract.js +24 -4
  66. package/dist/cjs/plugins/adapters/contracts/ConvexV1BoosterAdapterContract.js +32 -4
  67. package/dist/cjs/plugins/adapters/contracts/Curve2AssetsAdapterContract.js +6 -11
  68. package/dist/cjs/plugins/adapters/contracts/Curve3AssetsAdapterContract.js +6 -11
  69. package/dist/cjs/plugins/adapters/contracts/Curve4AssetsAdapterContract.js +6 -11
  70. package/dist/cjs/plugins/adapters/contracts/CurveV1AdapterStETHContract.js +6 -11
  71. package/dist/cjs/plugins/adapters/contracts/CurveV1StableNGAdapterContract.js +6 -11
  72. package/dist/cjs/plugins/adapters/contracts/DaiUsdsAdapterContract.js +20 -4
  73. package/dist/cjs/plugins/adapters/contracts/ERC4626AdapterContract.js +42 -4
  74. package/dist/cjs/plugins/adapters/contracts/ERC4626ReferralAdapterContract.js +20 -4
  75. package/dist/cjs/plugins/adapters/contracts/FluidDexAdapterContract.js +19 -4
  76. package/dist/cjs/plugins/adapters/contracts/InfinifiGatewayAdapterContract.js +28 -4
  77. package/dist/cjs/plugins/adapters/contracts/InfinifiUnwindingGatewayAdapterContract.js +5 -5
  78. package/dist/cjs/plugins/adapters/contracts/KelpLRTDepositPoolAdapterContract.js +16 -5
  79. package/dist/cjs/plugins/adapters/contracts/KelpLRTWithdrawalManagerAdapterContract.js +5 -5
  80. package/dist/cjs/plugins/adapters/contracts/LidoV1AdapterContract.js +16 -4
  81. package/dist/cjs/plugins/adapters/contracts/MellowClaimerAdapterContract.js +26 -4
  82. package/dist/cjs/plugins/adapters/contracts/MellowDVVAdapterContract.js +21 -4
  83. package/dist/cjs/plugins/adapters/contracts/MellowERC4626VaultAdapterContract.js +57 -4
  84. package/dist/cjs/plugins/adapters/contracts/MellowWrapperAdapterContract.js +16 -4
  85. package/dist/cjs/plugins/adapters/contracts/MidasGatewayAdapterContract.js +155 -0
  86. package/dist/cjs/plugins/adapters/contracts/MidasIssuanceVaultAdapterContract.js +16 -5
  87. package/dist/cjs/plugins/adapters/contracts/MidasRedemptionVaultAdapterContract.js +18 -5
  88. package/dist/cjs/plugins/adapters/contracts/PendleRouterAdapterContract.js +60 -4
  89. package/dist/cjs/plugins/adapters/contracts/SecuritizeOnRampAdapterContract.js +16 -4
  90. package/dist/cjs/plugins/adapters/contracts/SecuritizeRedemptionGatewayAdapterContract.js +43 -6
  91. package/dist/cjs/plugins/adapters/contracts/StakingRewardsAdapterContract.js +23 -4
  92. package/dist/cjs/plugins/adapters/contracts/TraderJoeRouterAdapterContract.js +15 -4
  93. package/dist/cjs/plugins/adapters/contracts/UniswapV2AdapterContract.js +15 -4
  94. package/dist/cjs/plugins/adapters/contracts/UniswapV3AdapterContract.js +21 -4
  95. package/dist/cjs/plugins/adapters/contracts/UniswapV4AdapterContract.js +20 -5
  96. package/dist/cjs/plugins/adapters/contracts/UpshiftVaultAdapterContract.js +21 -5
  97. package/dist/cjs/plugins/adapters/contracts/VelodromeV2AdapterContract.js +15 -4
  98. package/dist/cjs/plugins/adapters/contracts/WstETHV1AdapterContract.js +21 -4
  99. package/dist/cjs/plugins/adapters/contracts/index.js +2 -12
  100. package/dist/cjs/plugins/adapters/createAdapter.js +42 -49
  101. package/dist/cjs/plugins/adapters/types.js +2 -11
  102. package/dist/cjs/plugins/delayed-withdrawal/DelayedWithdrawalPlugin.js +18 -39
  103. package/dist/cjs/preview/index.js +5 -3
  104. package/dist/cjs/preview/parse/classifyInnerOperations.js +14 -1
  105. package/dist/cjs/preview/parse/index.js +0 -2
  106. package/dist/cjs/preview/parse/parseFacadeOperationCalldata.js +6 -14
  107. package/dist/cjs/preview/parse/parseOperationCalldata.js +9 -15
  108. package/dist/cjs/preview/parse/parsePoolOperationCalldata.js +5 -2
  109. package/dist/cjs/preview/parse/parseRWAFactoryOperationCalldata.js +24 -12
  110. package/dist/cjs/preview/parse/types-rwa.js +16 -0
  111. package/dist/cjs/preview/parse/types.js +9 -2
  112. package/dist/cjs/preview/prerequisites/AllowancePrerequisite.js +20 -43
  113. package/dist/cjs/preview/prerequisites/BalancePrerequisite.js +25 -39
  114. package/dist/cjs/preview/prerequisites/Prerequisite.js +10 -35
  115. package/dist/cjs/preview/prerequisites/RWAOpenRequirementsPrerequisite.js +71 -0
  116. package/dist/cjs/preview/prerequisites/buildCollateralPrerequisites.js +55 -0
  117. package/dist/cjs/preview/prerequisites/{prepareAction.js → buildPartialLiquidationPrerequisites.js} +16 -24
  118. package/dist/cjs/preview/prerequisites/buildPoolPrerequisites.js +114 -0
  119. package/dist/cjs/preview/prerequisites/buildRWAPrerequisites.js +59 -0
  120. package/dist/cjs/preview/prerequisites/checkPrerequisites.js +85 -0
  121. package/dist/cjs/preview/prerequisites/helpers.js +36 -0
  122. package/dist/cjs/preview/prerequisites/index.js +4 -6
  123. package/dist/cjs/preview/preview/CreditAccountState.js +154 -0
  124. package/dist/cjs/preview/preview/applyRWAWrapUnwrap.js +74 -0
  125. package/dist/cjs/preview/preview/buildDelayedPreview.js +146 -0
  126. package/dist/cjs/preview/preview/detectCloseOrRepay.js +51 -0
  127. package/dist/cjs/preview/preview/detectDelayedOperation.js +71 -0
  128. package/dist/cjs/preview/preview/errors.js +53 -0
  129. package/dist/cjs/preview/preview/index.js +42 -0
  130. package/dist/cjs/preview/preview/previewAdjustCreditAccount.js +78 -0
  131. package/dist/cjs/preview/preview/previewCloseOrRepayCreditAccount.js +79 -0
  132. package/dist/cjs/preview/preview/previewOpenCreditAccount.js +84 -0
  133. package/dist/cjs/preview/preview/previewOperation.js +94 -0
  134. package/dist/cjs/preview/preview/previewPoolOperation.js +42 -0
  135. package/dist/cjs/preview/preview/replayInnerOperations.js +153 -0
  136. package/dist/cjs/preview/preview/replayMulticall.js +37 -0
  137. package/dist/cjs/preview/preview/types.js +49 -0
  138. package/dist/cjs/preview/preview/unwrapNativeCollateral.js +51 -0
  139. package/dist/cjs/preview/simulate/index.js +5 -2
  140. package/dist/cjs/preview/simulate/simulateOperation.js +4 -0
  141. package/dist/cjs/preview/simulate/simulatePoolOperation.js +20 -119
  142. package/dist/cjs/preview/simulate/simulateRWAOperation.js +30 -0
  143. package/dist/cjs/preview/types.js +16 -0
  144. package/dist/cjs/sdk/OnchainSDK.js +8 -0
  145. package/dist/cjs/sdk/accounts/CreditAccountsServiceV310.js +157 -210
  146. package/dist/cjs/sdk/accounts/index.js +3 -1
  147. package/dist/cjs/sdk/accounts/withdrawal-compressor/AbstractWithdrawalCompressorContract.js +224 -0
  148. package/dist/cjs/sdk/accounts/withdrawal-compressor/WithdrawalCompressorV310Contract.js +40 -0
  149. package/dist/cjs/sdk/accounts/withdrawal-compressor/WithdrawalCompressorV311Contract.js +40 -0
  150. package/dist/cjs/sdk/accounts/withdrawal-compressor/WithdrawalCompressorV313Contract.js +40 -0
  151. package/dist/cjs/sdk/accounts/withdrawal-compressor/addresses.js +40 -0
  152. package/dist/cjs/sdk/accounts/withdrawal-compressor/createWithdrawalCompressor.js +51 -0
  153. package/dist/cjs/sdk/accounts/withdrawal-compressor/index.js +36 -0
  154. package/dist/cjs/sdk/accounts/withdrawal-compressor/intent-codec.js +118 -0
  155. package/dist/cjs/sdk/accounts/withdrawal-compressor/types.js +16 -0
  156. package/dist/cjs/sdk/base/BaseContract.js +4 -2
  157. package/dist/cjs/sdk/base/ChainContractsRegister.js +1 -0
  158. package/dist/cjs/sdk/market/rwa/securitize/SecuritizeRWAFactory.js +40 -8
  159. package/dist/cjs/sdk/market/rwa/types.js +5 -2
  160. package/dist/cjs/sdk/market/zapper/ZapperContract.js +0 -3
  161. package/dist/cjs/sdk/router/AbstractRouterContract.js +21 -27
  162. package/dist/cjs/sdk/router/RouterV310Contract.js +11 -12
  163. package/dist/cjs/sdk/router/helpers.js +0 -5
  164. package/dist/cjs/sdk/utils/AddressMap.js +6 -0
  165. package/dist/cjs/sdk/utils/AddressSet.js +7 -0
  166. package/dist/cjs/sdk/utils/AssetsMap.js +97 -0
  167. package/dist/cjs/sdk/utils/index.js +2 -0
  168. package/dist/esm/abi/IWithdrawalCompressorV313.js +206 -0
  169. package/dist/esm/abi/compressors/subcompressors/withdrawal/mellowWithdrawalSubcompressor.js +45 -1
  170. package/dist/esm/abi/compressors/subcompressors/withdrawal/midasWithdrawalSubcompressor.js +45 -1
  171. package/dist/esm/abi/compressors/subcompressors/withdrawal/securitizeRedemptionSubcompressor.js +45 -1
  172. package/dist/esm/abi/compressors/withdrawalCompressor.js +47 -2
  173. package/dist/esm/abi/ierc4626Adapter.js +240 -0
  174. package/dist/esm/dev/AccountOpener.js +8 -13
  175. package/dist/esm/dev/index.js +1 -0
  176. package/dist/esm/dev/withdrawalAbi.js +2074 -0
  177. package/dist/esm/dev/withdrawalUtils.js +266 -0
  178. package/dist/esm/history/classifyMulticallOperations.js +2 -0
  179. package/dist/esm/history/mapOperations.js +7 -0
  180. package/dist/esm/history/populateContractsRegister.js +17 -12
  181. package/dist/esm/permissionless/bindings/factory/rate-keeper-factory.js +11 -0
  182. package/dist/esm/permissionless/bindings/market-configurator.js +11 -0
  183. package/dist/esm/plugins/adapters/abi/actionAbi.js +1 -10
  184. package/dist/esm/plugins/adapters/abi/adapters/erc4626ReferralAdapter.js +308 -0
  185. package/dist/esm/plugins/adapters/abi/adapters/iBalancerV3RouterAdapter.js +412 -0
  186. package/dist/esm/plugins/adapters/abi/adapters/iBalancerV3WrapperAdapter.js +159 -0
  187. package/dist/esm/plugins/adapters/abi/adapters/iCamelotV3Adapter.js +562 -0
  188. package/dist/esm/plugins/adapters/abi/adapters/iConvexV1BaseRewardPoolAdapter.js +361 -0
  189. package/dist/esm/plugins/adapters/abi/adapters/iConvexV1BoosterAdapter.js +119 -0
  190. package/dist/esm/plugins/adapters/abi/adapters/iCurveV1StableNgAdapter.js +684 -0
  191. package/dist/esm/plugins/adapters/abi/adapters/iCurveV1_2AssetsAdapter.js +684 -0
  192. package/dist/esm/plugins/adapters/abi/adapters/iCurveV1_3AssetsAdapter.js +684 -0
  193. package/dist/esm/plugins/adapters/abi/adapters/iCurveV1_4AssetsAdapter.js +684 -0
  194. package/dist/esm/plugins/adapters/abi/adapters/iDaiUsdsAdapter.js +182 -0
  195. package/dist/esm/plugins/adapters/abi/adapters/iFluidDexAdapter.js +159 -0
  196. package/dist/esm/plugins/adapters/abi/adapters/iInfinifiGatewayAdapter.js +449 -0
  197. package/dist/esm/plugins/adapters/abi/adapters/iInfinifiUnwindingGateway.js +457 -0
  198. package/dist/esm/plugins/adapters/abi/adapters/iKelpLrtDepositPool.js +308 -0
  199. package/dist/esm/plugins/adapters/abi/adapters/iKelpLrtWithdrawalManager.js +463 -0
  200. package/dist/esm/plugins/adapters/abi/adapters/iLidoV1Adapter.js +147 -0
  201. package/dist/esm/plugins/adapters/abi/adapters/iMellow4626VaultAdapter.js +245 -0
  202. package/dist/esm/plugins/adapters/abi/adapters/iMellowClaimerAdapter.js +326 -0
  203. package/dist/esm/plugins/adapters/abi/adapters/iMellowWrapperAdapter.js +201 -0
  204. package/dist/esm/plugins/adapters/abi/adapters/iMidasGatewayAdapterV311.js +990 -0
  205. package/dist/esm/plugins/adapters/abi/adapters/iMidasIssuanceVaultAdapterV310.js +238 -0
  206. package/dist/esm/plugins/adapters/abi/adapters/iMidasRedemptionVaultAdapterV310.js +597 -0
  207. package/dist/esm/plugins/adapters/abi/adapters/iPendleRouterAdapter.js +1763 -0
  208. package/dist/esm/plugins/adapters/abi/{securitize/iSecuritizeOnRampAdapter.js → adapters/iSecuritizeOnRampAdapterV310.js} +2 -2
  209. package/dist/esm/plugins/adapters/abi/{securitize/iSecuritizeRedemptionGatewayAdapter.js → adapters/iSecuritizeRedemptionGatewayAdapterV311.js} +22 -2
  210. package/dist/esm/plugins/adapters/abi/adapters/iStakingRewardsAdapter.js +264 -0
  211. package/dist/esm/plugins/adapters/abi/adapters/iTraderJoeRouterAdapter.js +435 -0
  212. package/dist/esm/plugins/adapters/abi/adapters/iUniswapV2Adapter.js +266 -0
  213. package/dist/esm/plugins/adapters/abi/adapters/iUniswapV3Adapter.js +481 -0
  214. package/dist/esm/plugins/adapters/abi/adapters/iUniswapV4Adapter.js +509 -0
  215. package/dist/esm/plugins/adapters/abi/adapters/iUpshiftVaultAdapter.js +450 -0
  216. package/dist/esm/plugins/adapters/abi/adapters/iVelodromeV2RouterAdapter.js +303 -0
  217. package/dist/esm/plugins/adapters/abi/adapters/index.js +35 -0
  218. package/dist/esm/plugins/adapters/abi/adapters/iwstEthv1Adapter.js +159 -0
  219. package/dist/esm/plugins/adapters/abi/adapters/mellowDvvAdapter.js +295 -0
  220. package/dist/esm/plugins/adapters/abi/conctructorAbi.js +4 -44
  221. package/dist/esm/plugins/adapters/abi/conctructorAbiPatterns.js +0 -14
  222. package/dist/esm/plugins/adapters/abi/index.js +1 -0
  223. package/dist/esm/plugins/adapters/abi/securitize/{iSecuritizeRedemptionGateway.js → iSecuritizeRedemptionGatewayV311.js} +11 -3
  224. package/dist/esm/plugins/adapters/abi/securitize/index.js +1 -3
  225. package/dist/esm/plugins/adapters/abi/targetContractAbi.js +2 -291
  226. package/dist/esm/plugins/adapters/contracts/AbstractAdapter.js +80 -2
  227. package/dist/esm/plugins/adapters/contracts/AbstractCurveAdapter.js +45 -0
  228. package/dist/esm/plugins/adapters/contracts/AccountMigratorAdapterContract.js +2 -2
  229. package/dist/esm/plugins/adapters/contracts/BalancerV3RouterAdapterContract.js +27 -4
  230. package/dist/esm/plugins/adapters/contracts/BalancerV3WrapperAdapterContract.js +23 -4
  231. package/dist/esm/plugins/adapters/contracts/CamelotV3AdapterContract.js +23 -4
  232. package/dist/esm/plugins/adapters/contracts/ConvexV1BaseRewardPoolAdapterContract.js +27 -4
  233. package/dist/esm/plugins/adapters/contracts/ConvexV1BoosterAdapterContract.js +34 -4
  234. package/dist/esm/plugins/adapters/contracts/Curve2AssetsAdapterContract.js +5 -10
  235. package/dist/esm/plugins/adapters/contracts/Curve3AssetsAdapterContract.js +5 -10
  236. package/dist/esm/plugins/adapters/contracts/Curve4AssetsAdapterContract.js +5 -10
  237. package/dist/esm/plugins/adapters/contracts/CurveV1AdapterStETHContract.js +5 -10
  238. package/dist/esm/plugins/adapters/contracts/CurveV1StableNGAdapterContract.js +5 -10
  239. package/dist/esm/plugins/adapters/contracts/DaiUsdsAdapterContract.js +22 -4
  240. package/dist/esm/plugins/adapters/contracts/ERC4626AdapterContract.js +45 -4
  241. package/dist/esm/plugins/adapters/contracts/ERC4626ReferralAdapterContract.js +22 -4
  242. package/dist/esm/plugins/adapters/contracts/FluidDexAdapterContract.js +21 -4
  243. package/dist/esm/plugins/adapters/contracts/InfinifiGatewayAdapterContract.js +30 -4
  244. package/dist/esm/plugins/adapters/contracts/InfinifiUnwindingGatewayAdapterContract.js +6 -6
  245. package/dist/esm/plugins/adapters/contracts/KelpLRTDepositPoolAdapterContract.js +19 -6
  246. package/dist/esm/plugins/adapters/contracts/KelpLRTWithdrawalManagerAdapterContract.js +6 -6
  247. package/dist/esm/plugins/adapters/contracts/LidoV1AdapterContract.js +18 -4
  248. package/dist/esm/plugins/adapters/contracts/MellowClaimerAdapterContract.js +28 -4
  249. package/dist/esm/plugins/adapters/contracts/MellowDVVAdapterContract.js +23 -4
  250. package/dist/esm/plugins/adapters/contracts/MellowERC4626VaultAdapterContract.js +60 -4
  251. package/dist/esm/plugins/adapters/contracts/MellowWrapperAdapterContract.js +18 -4
  252. package/dist/esm/plugins/adapters/contracts/MidasGatewayAdapterContract.js +140 -0
  253. package/dist/esm/plugins/adapters/contracts/MidasIssuanceVaultAdapterContract.js +20 -7
  254. package/dist/esm/plugins/adapters/contracts/MidasRedemptionVaultAdapterContract.js +23 -8
  255. package/dist/esm/plugins/adapters/contracts/PendleRouterAdapterContract.js +62 -4
  256. package/dist/esm/plugins/adapters/contracts/SecuritizeOnRampAdapterContract.js +19 -5
  257. package/dist/esm/plugins/adapters/contracts/SecuritizeRedemptionGatewayAdapterContract.js +47 -7
  258. package/dist/esm/plugins/adapters/contracts/StakingRewardsAdapterContract.js +25 -4
  259. package/dist/esm/plugins/adapters/contracts/TraderJoeRouterAdapterContract.js +17 -4
  260. package/dist/esm/plugins/adapters/contracts/UniswapV2AdapterContract.js +14 -3
  261. package/dist/esm/plugins/adapters/contracts/UniswapV3AdapterContract.js +20 -3
  262. package/dist/esm/plugins/adapters/contracts/UniswapV4AdapterContract.js +22 -5
  263. package/dist/esm/plugins/adapters/contracts/UpshiftVaultAdapterContract.js +24 -6
  264. package/dist/esm/plugins/adapters/contracts/VelodromeV2AdapterContract.js +17 -4
  265. package/dist/esm/plugins/adapters/contracts/WstETHV1AdapterContract.js +23 -4
  266. package/dist/esm/plugins/adapters/contracts/index.js +1 -6
  267. package/dist/esm/plugins/adapters/createAdapter.js +43 -52
  268. package/dist/esm/plugins/adapters/types.js +2 -11
  269. package/dist/esm/plugins/delayed-withdrawal/DelayedWithdrawalPlugin.js +19 -44
  270. package/dist/esm/preview/index.js +2 -1
  271. package/dist/esm/preview/parse/classifyInnerOperations.js +14 -1
  272. package/dist/esm/preview/parse/index.js +0 -1
  273. package/dist/esm/preview/parse/parseFacadeOperationCalldata.js +6 -14
  274. package/dist/esm/preview/parse/parseOperationCalldata.js +10 -16
  275. package/dist/esm/preview/parse/parsePoolOperationCalldata.js +5 -2
  276. package/dist/esm/preview/parse/parseRWAFactoryOperationCalldata.js +27 -13
  277. package/dist/esm/preview/parse/types-rwa.js +0 -0
  278. package/dist/esm/preview/parse/types.js +6 -1
  279. package/dist/esm/preview/prerequisites/AllowancePrerequisite.js +21 -47
  280. package/dist/esm/preview/prerequisites/BalancePrerequisite.js +26 -43
  281. package/dist/esm/preview/prerequisites/Prerequisite.js +10 -37
  282. package/dist/esm/preview/prerequisites/RWAOpenRequirementsPrerequisite.js +47 -0
  283. package/dist/esm/preview/prerequisites/buildCollateralPrerequisites.js +33 -0
  284. package/dist/esm/preview/prerequisites/buildPartialLiquidationPrerequisites.js +16 -0
  285. package/dist/esm/preview/prerequisites/buildPoolPrerequisites.js +90 -0
  286. package/dist/esm/preview/prerequisites/buildRWAPrerequisites.js +35 -0
  287. package/dist/esm/preview/prerequisites/checkPrerequisites.js +61 -0
  288. package/dist/esm/preview/prerequisites/helpers.js +14 -0
  289. package/dist/esm/preview/prerequisites/index.js +2 -3
  290. package/dist/esm/preview/preview/CreditAccountState.js +133 -0
  291. package/dist/esm/preview/preview/applyRWAWrapUnwrap.js +50 -0
  292. package/dist/esm/preview/preview/buildDelayedPreview.js +125 -0
  293. package/dist/esm/preview/preview/detectCloseOrRepay.js +26 -0
  294. package/dist/esm/preview/preview/detectDelayedOperation.js +51 -0
  295. package/dist/esm/preview/preview/errors.js +28 -0
  296. package/dist/esm/preview/preview/index.js +11 -0
  297. package/dist/esm/preview/preview/previewAdjustCreditAccount.js +57 -0
  298. package/dist/esm/preview/preview/previewCloseOrRepayCreditAccount.js +57 -0
  299. package/dist/esm/preview/preview/previewOpenCreditAccount.js +68 -0
  300. package/dist/esm/preview/preview/previewOperation.js +75 -0
  301. package/dist/esm/preview/preview/previewPoolOperation.js +18 -0
  302. package/dist/esm/preview/preview/replayInnerOperations.js +137 -0
  303. package/dist/esm/preview/preview/replayMulticall.js +16 -0
  304. package/dist/esm/preview/preview/types.js +18 -0
  305. package/dist/esm/preview/preview/unwrapNativeCollateral.js +29 -0
  306. package/dist/esm/preview/simulate/index.js +3 -1
  307. package/dist/esm/preview/simulate/simulateOperation.js +5 -1
  308. package/dist/esm/preview/simulate/simulatePoolOperation.js +21 -123
  309. package/dist/esm/preview/simulate/simulateRWAOperation.js +6 -0
  310. package/dist/esm/preview/types.js +0 -0
  311. package/dist/esm/sdk/OnchainSDK.js +10 -1
  312. package/dist/esm/sdk/accounts/CreditAccountsServiceV310.js +153 -205
  313. package/dist/esm/sdk/accounts/index.js +1 -0
  314. package/dist/esm/sdk/accounts/withdrawal-compressor/AbstractWithdrawalCompressorContract.js +200 -0
  315. package/dist/esm/sdk/accounts/withdrawal-compressor/WithdrawalCompressorV310Contract.js +16 -0
  316. package/dist/esm/sdk/accounts/withdrawal-compressor/WithdrawalCompressorV311Contract.js +16 -0
  317. package/dist/esm/sdk/accounts/withdrawal-compressor/WithdrawalCompressorV313Contract.js +16 -0
  318. package/dist/esm/sdk/accounts/withdrawal-compressor/addresses.js +16 -0
  319. package/dist/esm/sdk/accounts/withdrawal-compressor/createWithdrawalCompressor.js +27 -0
  320. package/dist/esm/sdk/accounts/withdrawal-compressor/index.js +8 -0
  321. package/dist/esm/sdk/accounts/withdrawal-compressor/intent-codec.js +91 -0
  322. package/dist/esm/sdk/accounts/withdrawal-compressor/types.js +0 -0
  323. package/dist/esm/sdk/base/BaseContract.js +4 -2
  324. package/dist/esm/sdk/base/ChainContractsRegister.js +1 -0
  325. package/dist/esm/sdk/market/rwa/securitize/SecuritizeRWAFactory.js +40 -8
  326. package/dist/esm/sdk/market/rwa/types.js +5 -2
  327. package/dist/esm/sdk/market/zapper/ZapperContract.js +0 -3
  328. package/dist/esm/sdk/router/AbstractRouterContract.js +25 -29
  329. package/dist/esm/sdk/router/RouterV310Contract.js +11 -12
  330. package/dist/esm/sdk/router/helpers.js +0 -4
  331. package/dist/esm/sdk/utils/AddressMap.js +6 -0
  332. package/dist/esm/sdk/utils/AddressSet.js +7 -0
  333. package/dist/esm/sdk/utils/AssetsMap.js +73 -0
  334. package/dist/esm/sdk/utils/index.js +1 -0
  335. package/dist/types/abi/IWithdrawalCompressorV313.d.ts +293 -0
  336. package/dist/types/abi/compressors/subcompressors/withdrawal/mellowWithdrawalSubcompressor.d.ts +77 -0
  337. package/dist/types/abi/compressors/subcompressors/withdrawal/midasWithdrawalSubcompressor.d.ts +77 -0
  338. package/dist/types/abi/compressors/subcompressors/withdrawal/securitizeRedemptionSubcompressor.d.ts +77 -0
  339. package/dist/types/abi/compressors/withdrawalCompressor.d.ts +81 -0
  340. package/dist/types/abi/ierc4626Adapter.d.ts +179 -0
  341. package/dist/types/common-utils/utils/creditAccount/sort.d.ts +3 -3
  342. package/dist/types/common-utils/utils/strategies/assets/assets.d.ts +1 -1
  343. package/dist/types/common-utils/utils/strategies/credit-managers/get-wallet-balances-allowed-on-cm.d.ts +1 -1
  344. package/dist/types/common-utils/utils/strategies/eligibility/is-strategy-eligible.d.ts +1 -1
  345. package/dist/types/common-utils/utils/strategies/lists/get-available-and-disabled-strategies.d.ts +1 -1
  346. package/dist/types/common-utils/utils/strategies/strategy-info/calculate-total-apy.d.ts +1 -1
  347. package/dist/types/common-utils/utils/strategies/strategy-info/calculate-total-points.d.ts +1 -1
  348. package/dist/types/common-utils/utils/strategies/tokens/add-amount-in-target.d.ts +1 -1
  349. package/dist/types/common-utils/utils/strategies/tokens/get-list-with-amount-in-target.d.ts +1 -1
  350. package/dist/types/common-utils/utils/strategies/types/strategy-earnings.d.ts +1 -1
  351. package/dist/types/common-utils/utils/validation/validate-balances.d.ts +1 -1
  352. package/dist/types/common-utils/utils/validation/validate-open-account.d.ts +1 -1
  353. package/dist/types/common-utils/utils/validation/validate-quota.d.ts +1 -1
  354. package/dist/types/common-utils/utils/validation/validate-token-to-obtain.d.ts +1 -1
  355. package/dist/types/dev/abi.d.ts +4 -4
  356. package/dist/types/dev/index.d.ts +1 -0
  357. package/dist/types/dev/providers.d.ts +1 -1
  358. package/dist/types/dev/withdrawalAbi.d.ts +1584 -0
  359. package/dist/types/dev/withdrawalUtils.d.ts +19 -0
  360. package/dist/types/history/populateContractsRegister.d.ts +1 -1
  361. package/dist/types/history/types.d.ts +4 -4
  362. package/dist/types/permissionless/bindings/bytecode-repository.d.ts +9 -9
  363. package/dist/types/permissionless/bindings/compressors/withdrawal-compressor.d.ts +81 -0
  364. package/dist/types/permissionless/bindings/factory/rate-keeper-factory.d.ts +179 -0
  365. package/dist/types/permissionless/bindings/market-configurator.d.ts +2 -0
  366. package/dist/types/permissionless/bindings/treasury-splitter.d.ts +1 -1
  367. package/dist/types/plugins/adapters/abi/adapters/erc4626ReferralAdapter.d.ts +231 -0
  368. package/dist/types/plugins/adapters/abi/adapters/iBalancerV3RouterAdapter.d.ts +314 -0
  369. package/dist/types/plugins/adapters/abi/adapters/iBalancerV3WrapperAdapter.d.ts +117 -0
  370. package/dist/types/plugins/adapters/abi/adapters/iCamelotV3Adapter.d.ts +428 -0
  371. package/dist/types/plugins/adapters/abi/adapters/iConvexV1BaseRewardPoolAdapter.d.ts +271 -0
  372. package/dist/types/plugins/adapters/abi/adapters/iConvexV1BoosterAdapter.d.ts +204 -0
  373. package/dist/types/plugins/adapters/abi/adapters/iCurveV1StableNgAdapter.d.ts +519 -0
  374. package/dist/types/plugins/adapters/abi/adapters/iCurveV1_2AssetsAdapter.d.ts +519 -0
  375. package/dist/types/plugins/adapters/abi/adapters/iCurveV1_3AssetsAdapter.d.ts +519 -0
  376. package/dist/types/plugins/adapters/abi/adapters/iCurveV1_4AssetsAdapter.d.ts +519 -0
  377. package/dist/types/plugins/adapters/abi/adapters/iDaiUsdsAdapter.d.ts +135 -0
  378. package/dist/types/plugins/adapters/abi/adapters/iFluidDexAdapter.d.ts +119 -0
  379. package/dist/types/plugins/adapters/abi/adapters/iInfinifiGatewayAdapter.d.ts +338 -0
  380. package/dist/types/plugins/adapters/abi/adapters/iInfinifiUnwindingGateway.d.ts +346 -0
  381. package/dist/types/plugins/adapters/abi/adapters/iKelpLrtDepositPool.d.ts +233 -0
  382. package/dist/types/plugins/adapters/abi/adapters/iKelpLrtWithdrawalManager.d.ts +349 -0
  383. package/dist/types/plugins/adapters/abi/adapters/iLidoV1Adapter.d.ts +109 -0
  384. package/dist/types/plugins/adapters/abi/adapters/iMellow4626VaultAdapter.d.ts +183 -0
  385. package/dist/types/plugins/adapters/abi/adapters/iMellowClaimerAdapter.d.ts +247 -0
  386. package/dist/types/plugins/adapters/abi/adapters/iMellowWrapperAdapter.d.ts +151 -0
  387. package/dist/types/plugins/adapters/abi/adapters/iMidasGatewayAdapterV311.d.ts +754 -0
  388. package/dist/types/plugins/adapters/abi/adapters/iMidasIssuanceVaultAdapterV310.d.ts +180 -0
  389. package/dist/types/plugins/adapters/abi/adapters/iMidasRedemptionVaultAdapterV310.d.ts +453 -0
  390. package/dist/types/plugins/adapters/abi/adapters/iPendleRouterAdapter.d.ts +1366 -0
  391. package/dist/types/plugins/adapters/abi/{securitize/iSecuritizeOnRampAdapter.d.ts → adapters/iSecuritizeOnRampAdapterV310.d.ts} +1 -1
  392. package/dist/types/plugins/adapters/abi/{securitize/iSecuritizeRedemptionGatewayAdapter.d.ts → adapters/iSecuritizeRedemptionGatewayAdapterV311.d.ts} +37 -1
  393. package/dist/types/plugins/adapters/abi/adapters/iStakingRewardsAdapter.d.ts +197 -0
  394. package/dist/types/plugins/adapters/abi/adapters/iTraderJoeRouterAdapter.d.ts +333 -0
  395. package/dist/types/plugins/adapters/abi/adapters/iUniswapV2Adapter.d.ts +202 -0
  396. package/dist/types/plugins/adapters/abi/adapters/iUniswapV3Adapter.d.ts +367 -0
  397. package/dist/types/plugins/adapters/abi/adapters/iUniswapV4Adapter.d.ts +390 -0
  398. package/dist/types/plugins/adapters/abi/adapters/iUpshiftVaultAdapter.d.ts +336 -0
  399. package/dist/types/plugins/adapters/abi/adapters/iVelodromeV2RouterAdapter.d.ts +232 -0
  400. package/dist/types/plugins/adapters/abi/adapters/index.d.ts +35 -0
  401. package/dist/types/plugins/adapters/abi/adapters/iwstEthv1Adapter.d.ts +117 -0
  402. package/dist/types/plugins/adapters/abi/adapters/mellowDvvAdapter.d.ts +221 -0
  403. package/dist/types/plugins/adapters/abi/conctructorAbiPatterns.d.ts +0 -26
  404. package/dist/types/plugins/adapters/abi/index.d.ts +1 -0
  405. package/dist/types/plugins/adapters/abi/securitize/{iSecuritizeRedemptionGateway.d.ts → iSecuritizeRedemptionGatewayV311.d.ts} +15 -1
  406. package/dist/types/plugins/adapters/abi/securitize/index.d.ts +1 -3
  407. package/dist/types/plugins/adapters/abi/targetContractAbi.d.ts +1 -477
  408. package/dist/types/plugins/adapters/contracts/AbstractAdapter.d.ts +56 -4
  409. package/dist/types/plugins/adapters/contracts/AbstractCurveAdapter.d.ts +17 -0
  410. package/dist/types/plugins/adapters/contracts/AccountMigratorAdapterContract.d.ts +2 -2
  411. package/dist/types/plugins/adapters/contracts/BalancerV3RouterAdapterContract.d.ts +9 -8
  412. package/dist/types/plugins/adapters/contracts/BalancerV3WrapperAdapterContract.d.ts +7 -6
  413. package/dist/types/plugins/adapters/contracts/CamelotV3AdapterContract.d.ts +9 -8
  414. package/dist/types/plugins/adapters/contracts/ConvexV1BaseRewardPoolAdapterContract.d.ts +9 -8
  415. package/dist/types/plugins/adapters/contracts/ConvexV1BoosterAdapterContract.d.ts +13 -12
  416. package/dist/types/plugins/adapters/contracts/Curve2AssetsAdapterContract.d.ts +9 -12
  417. package/dist/types/plugins/adapters/contracts/Curve3AssetsAdapterContract.d.ts +9 -12
  418. package/dist/types/plugins/adapters/contracts/Curve4AssetsAdapterContract.d.ts +9 -12
  419. package/dist/types/plugins/adapters/contracts/CurveV1AdapterStETHContract.d.ts +4 -7
  420. package/dist/types/plugins/adapters/contracts/CurveV1StableNGAdapterContract.d.ts +9 -12
  421. package/dist/types/plugins/adapters/contracts/DaiUsdsAdapterContract.d.ts +8 -7
  422. package/dist/types/plugins/adapters/contracts/ERC4626AdapterContract.d.ts +14 -7
  423. package/dist/types/plugins/adapters/contracts/ERC4626ReferralAdapterContract.d.ts +8 -7
  424. package/dist/types/plugins/adapters/contracts/FluidDexAdapterContract.d.ts +8 -7
  425. package/dist/types/plugins/adapters/contracts/InfinifiGatewayAdapterContract.d.ts +9 -8
  426. package/dist/types/plugins/adapters/contracts/InfinifiUnwindingGatewayAdapterContract.d.ts +5 -5
  427. package/dist/types/plugins/adapters/contracts/KelpLRTDepositPoolAdapterContract.d.ts +7 -6
  428. package/dist/types/plugins/adapters/contracts/KelpLRTWithdrawalManagerAdapterContract.d.ts +7 -7
  429. package/dist/types/plugins/adapters/contracts/LidoV1AdapterContract.d.ts +9 -8
  430. package/dist/types/plugins/adapters/contracts/MellowClaimerAdapterContract.d.ts +7 -6
  431. package/dist/types/plugins/adapters/contracts/MellowDVVAdapterContract.d.ts +8 -7
  432. package/dist/types/plugins/adapters/contracts/MellowERC4626VaultAdapterContract.d.ts +22 -8
  433. package/dist/types/plugins/adapters/contracts/MellowWrapperAdapterContract.d.ts +7 -6
  434. package/dist/types/plugins/adapters/contracts/MidasGatewayAdapterContract.d.ts +797 -0
  435. package/dist/types/plugins/adapters/contracts/MidasIssuanceVaultAdapterContract.d.ts +9 -8
  436. package/dist/types/plugins/adapters/contracts/MidasRedemptionVaultAdapterContract.d.ts +9 -8
  437. package/dist/types/plugins/adapters/contracts/PendleRouterAdapterContract.d.ts +9 -8
  438. package/dist/types/plugins/adapters/contracts/SecuritizeOnRampAdapterContract.d.ts +8 -7
  439. package/dist/types/plugins/adapters/contracts/SecuritizeRedemptionGatewayAdapterContract.d.ts +67 -8
  440. package/dist/types/plugins/adapters/contracts/StakingRewardsAdapterContract.d.ts +9 -8
  441. package/dist/types/plugins/adapters/contracts/TraderJoeRouterAdapterContract.d.ts +9 -8
  442. package/dist/types/plugins/adapters/contracts/UniswapV2AdapterContract.d.ts +8 -7
  443. package/dist/types/plugins/adapters/contracts/UniswapV3AdapterContract.d.ts +8 -7
  444. package/dist/types/plugins/adapters/contracts/UniswapV4AdapterContract.d.ts +9 -8
  445. package/dist/types/plugins/adapters/contracts/UpshiftVaultAdapterContract.d.ts +9 -8
  446. package/dist/types/plugins/adapters/contracts/VelodromeV2AdapterContract.d.ts +9 -8
  447. package/dist/types/plugins/adapters/contracts/WstETHV1AdapterContract.d.ts +7 -6
  448. package/dist/types/plugins/adapters/contracts/index.d.ts +1 -6
  449. package/dist/types/plugins/adapters/createAdapter.d.ts +2 -2
  450. package/dist/types/plugins/adapters/types.d.ts +43 -14
  451. package/dist/types/plugins/delayed-withdrawal/types.d.ts +4 -17
  452. package/dist/types/preview/index.d.ts +2 -1
  453. package/dist/types/preview/parse/index.d.ts +0 -1
  454. package/dist/types/preview/parse/parseFacadeOperationCalldata.d.ts +6 -7
  455. package/dist/types/preview/parse/parseOperationCalldata.d.ts +5 -18
  456. package/dist/types/preview/parse/parsePoolOperationCalldata.d.ts +7 -12
  457. package/dist/types/preview/parse/parseRWAFactoryOperationCalldata.d.ts +9 -19
  458. package/dist/types/preview/parse/types-adapters.d.ts +5 -1
  459. package/dist/types/preview/parse/types-facades.d.ts +23 -34
  460. package/dist/types/preview/parse/types-pools.d.ts +29 -1
  461. package/dist/types/preview/parse/types-rwa.d.ts +36 -0
  462. package/dist/types/preview/parse/types.d.ts +11 -31
  463. package/dist/types/preview/prerequisites/AllowancePrerequisite.d.ts +16 -17
  464. package/dist/types/preview/prerequisites/BalancePrerequisite.d.ts +21 -18
  465. package/dist/types/preview/prerequisites/Prerequisite.d.ts +18 -55
  466. package/dist/types/preview/prerequisites/RWAOpenRequirementsPrerequisite.d.ts +51 -0
  467. package/dist/types/preview/prerequisites/buildCollateralPrerequisites.d.ts +14 -0
  468. package/dist/types/preview/prerequisites/buildPartialLiquidationPrerequisites.d.ts +8 -0
  469. package/dist/types/preview/prerequisites/buildPoolPrerequisites.d.ts +8 -0
  470. package/dist/types/preview/prerequisites/buildRWAPrerequisites.d.ts +21 -0
  471. package/dist/types/preview/prerequisites/checkPrerequisites.d.ts +19 -0
  472. package/dist/types/preview/prerequisites/helpers.d.ts +7 -0
  473. package/dist/types/preview/prerequisites/index.d.ts +2 -3
  474. package/dist/types/preview/prerequisites/types.d.ts +13 -50
  475. package/dist/types/preview/preview/CreditAccountState.d.ts +83 -0
  476. package/dist/types/preview/preview/applyRWAWrapUnwrap.d.ts +13 -0
  477. package/dist/types/preview/preview/buildDelayedPreview.d.ts +42 -0
  478. package/dist/types/preview/preview/detectCloseOrRepay.d.ts +18 -0
  479. package/dist/types/preview/preview/detectDelayedOperation.d.ts +29 -0
  480. package/dist/types/preview/preview/errors.d.ts +24 -0
  481. package/dist/types/preview/preview/index.d.ts +11 -0
  482. package/dist/types/preview/preview/previewAdjustCreditAccount.d.ts +12 -0
  483. package/dist/types/preview/preview/previewCloseOrRepayCreditAccount.d.ts +11 -0
  484. package/dist/types/preview/preview/previewOpenCreditAccount.d.ts +5 -0
  485. package/dist/types/preview/preview/previewOperation.d.ts +8 -0
  486. package/dist/types/preview/preview/previewPoolOperation.d.ts +5 -0
  487. package/dist/types/preview/preview/replayInnerOperations.d.ts +44 -0
  488. package/dist/types/preview/preview/replayMulticall.d.ts +38 -0
  489. package/dist/types/preview/preview/types.d.ts +317 -0
  490. package/dist/types/preview/preview/unwrapNativeCollateral.d.ts +35 -0
  491. package/dist/types/preview/simulate/index.d.ts +2 -3
  492. package/dist/types/preview/simulate/simulateFacadeOperation.d.ts +3 -16
  493. package/dist/types/preview/simulate/simulateOperation.d.ts +4 -18
  494. package/dist/types/preview/simulate/simulatePoolOperation.d.ts +10 -18
  495. package/dist/types/preview/simulate/simulateRWAOperation.d.ts +12 -0
  496. package/dist/types/preview/simulate/types.d.ts +20 -51
  497. package/dist/types/preview/types.d.ts +63 -0
  498. package/dist/types/sdk/OnchainSDK.d.ts +7 -1
  499. package/dist/types/sdk/accounts/CreditAccountsServiceV310.d.ts +23 -15
  500. package/dist/types/sdk/accounts/index.d.ts +1 -0
  501. package/dist/types/sdk/accounts/types.d.ts +171 -53
  502. package/dist/types/sdk/accounts/withdrawal-compressor/AbstractWithdrawalCompressorContract.d.ts +38 -0
  503. package/dist/types/sdk/accounts/withdrawal-compressor/WithdrawalCompressorV310Contract.d.ts +334 -0
  504. package/dist/types/sdk/accounts/withdrawal-compressor/WithdrawalCompressorV311Contract.d.ts +338 -0
  505. package/dist/types/sdk/accounts/withdrawal-compressor/WithdrawalCompressorV313Contract.d.ts +304 -0
  506. package/dist/types/sdk/accounts/withdrawal-compressor/addresses.d.ts +20 -0
  507. package/dist/types/sdk/accounts/withdrawal-compressor/createWithdrawalCompressor.d.ts +9 -0
  508. package/dist/types/sdk/accounts/withdrawal-compressor/index.d.ts +8 -0
  509. package/dist/types/sdk/accounts/withdrawal-compressor/intent-codec.d.ts +26 -0
  510. package/dist/types/sdk/accounts/withdrawal-compressor/types.d.ts +296 -0
  511. package/dist/types/sdk/base/BaseContract.d.ts +1 -1
  512. package/dist/types/sdk/base/TokensMeta.d.ts +1 -1
  513. package/dist/types/sdk/base/types.d.ts +18 -0
  514. package/dist/types/sdk/chain/chains.d.ts +8 -8
  515. package/dist/types/sdk/market/MarketConfiguratorContract.d.ts +5 -5
  516. package/dist/types/sdk/market/pricefeeds/PythPriceFeed.d.ts +1 -1
  517. package/dist/types/sdk/market/rwa/securitize/SecuritizeRWAFactory.d.ts +15 -3
  518. package/dist/types/sdk/market/rwa/securitize/types.d.ts +18 -2
  519. package/dist/types/sdk/market/rwa/types.d.ts +39 -14
  520. package/dist/types/sdk/market/zapper/types.d.ts +6 -6
  521. package/dist/types/sdk/pools/types.d.ts +1 -1
  522. package/dist/types/sdk/router/AbstractRouterContract.d.ts +5 -5
  523. package/dist/types/sdk/router/helpers.d.ts +1 -2
  524. package/dist/types/sdk/router/types.d.ts +1 -15
  525. package/dist/types/sdk/utils/AddressMap.d.ts +4 -0
  526. package/dist/types/sdk/utils/AddressSet.d.ts +1 -0
  527. package/dist/types/sdk/utils/AssetsMap.d.ts +44 -0
  528. package/dist/types/sdk/utils/index.d.ts +1 -0
  529. package/package.json +11 -12
  530. package/dist/cjs/plugins/adapters/contracts/CurveV1AdapterDeposit.js +0 -116
  531. package/dist/cjs/plugins/adapters/contracts/MellowDepositQueueAdapterContract.js +0 -76
  532. package/dist/cjs/plugins/adapters/contracts/MellowRedeemQueueAdapterContract.js +0 -68
  533. package/dist/cjs/plugins/adapters/contracts/SecuritizeSwapAdapterContract.js +0 -68
  534. package/dist/cjs/preview/parse/extractExpectedBalanceChanges.js +0 -48
  535. package/dist/cjs/preview/prerequisites/buildPrerequisites.js +0 -234
  536. package/dist/cjs/preview/prerequisites/runPrerequisites.js +0 -71
  537. package/dist/esm/plugins/adapters/contracts/CurveV1AdapterDeposit.js +0 -94
  538. package/dist/esm/plugins/adapters/contracts/MellowDepositQueueAdapterContract.js +0 -54
  539. package/dist/esm/plugins/adapters/contracts/MellowRedeemQueueAdapterContract.js +0 -46
  540. package/dist/esm/plugins/adapters/contracts/SecuritizeSwapAdapterContract.js +0 -46
  541. package/dist/esm/preview/parse/extractExpectedBalanceChanges.js +0 -24
  542. package/dist/esm/preview/prerequisites/buildPrerequisites.js +0 -210
  543. package/dist/esm/preview/prerequisites/prepareAction.js +0 -23
  544. package/dist/esm/preview/prerequisites/runPrerequisites.js +0 -47
  545. package/dist/esm/preview/simulate/holders.js +0 -21
  546. package/dist/types/plugins/adapters/contracts/CurveV1AdapterDeposit.d.ts +0 -1045
  547. package/dist/types/plugins/adapters/contracts/MellowDepositQueueAdapterContract.d.ts +0 -26
  548. package/dist/types/plugins/adapters/contracts/MellowRedeemQueueAdapterContract.d.ts +0 -24
  549. package/dist/types/plugins/adapters/contracts/SecuritizeSwapAdapterContract.d.ts +0 -24
  550. package/dist/types/preview/parse/extractExpectedBalanceChanges.d.ts +0 -22
  551. package/dist/types/preview/prerequisites/buildPrerequisites.d.ts +0 -16
  552. package/dist/types/preview/prerequisites/prepareAction.d.ts +0 -52
  553. package/dist/types/preview/prerequisites/runPrerequisites.d.ts +0 -12
  554. package/dist/types/preview/simulate/holders.d.ts +0 -7
@@ -0,0 +1,1366 @@
1
+ export declare const iPendleRouterAdapterAbi: readonly [{
2
+ readonly type: "function";
3
+ readonly inputs: readonly [{
4
+ readonly name: "receiver";
5
+ readonly internalType: "address";
6
+ readonly type: "address";
7
+ }, {
8
+ readonly name: "market";
9
+ readonly internalType: "address";
10
+ readonly type: "address";
11
+ }, {
12
+ readonly name: "minLpOut";
13
+ readonly internalType: "uint256";
14
+ readonly type: "uint256";
15
+ }, {
16
+ readonly name: "guessPtReceivedFromSy";
17
+ readonly internalType: "struct ApproxParams";
18
+ readonly type: "tuple";
19
+ readonly components: readonly [{
20
+ readonly name: "guessMin";
21
+ readonly internalType: "uint256";
22
+ readonly type: "uint256";
23
+ }, {
24
+ readonly name: "guessMax";
25
+ readonly internalType: "uint256";
26
+ readonly type: "uint256";
27
+ }, {
28
+ readonly name: "guessOffchain";
29
+ readonly internalType: "uint256";
30
+ readonly type: "uint256";
31
+ }, {
32
+ readonly name: "maxIteration";
33
+ readonly internalType: "uint256";
34
+ readonly type: "uint256";
35
+ }, {
36
+ readonly name: "eps";
37
+ readonly internalType: "uint256";
38
+ readonly type: "uint256";
39
+ }];
40
+ }, {
41
+ readonly name: "input";
42
+ readonly internalType: "struct TokenInput";
43
+ readonly type: "tuple";
44
+ readonly components: readonly [{
45
+ readonly name: "tokenIn";
46
+ readonly internalType: "address";
47
+ readonly type: "address";
48
+ }, {
49
+ readonly name: "netTokenIn";
50
+ readonly internalType: "uint256";
51
+ readonly type: "uint256";
52
+ }, {
53
+ readonly name: "tokenMintSy";
54
+ readonly internalType: "address";
55
+ readonly type: "address";
56
+ }, {
57
+ readonly name: "pendleSwap";
58
+ readonly internalType: "address";
59
+ readonly type: "address";
60
+ }, {
61
+ readonly name: "swapData";
62
+ readonly internalType: "struct SwapData";
63
+ readonly type: "tuple";
64
+ readonly components: readonly [{
65
+ readonly name: "swapType";
66
+ readonly internalType: "enum SwapType";
67
+ readonly type: "uint8";
68
+ }, {
69
+ readonly name: "extRouter";
70
+ readonly internalType: "address";
71
+ readonly type: "address";
72
+ }, {
73
+ readonly name: "extCalldata";
74
+ readonly internalType: "bytes";
75
+ readonly type: "bytes";
76
+ }, {
77
+ readonly name: "needScale";
78
+ readonly internalType: "bool";
79
+ readonly type: "bool";
80
+ }];
81
+ }];
82
+ }, {
83
+ readonly name: "limit";
84
+ readonly internalType: "struct LimitOrderData";
85
+ readonly type: "tuple";
86
+ readonly components: readonly [{
87
+ readonly name: "limitRouter";
88
+ readonly internalType: "address";
89
+ readonly type: "address";
90
+ }, {
91
+ readonly name: "epsSkipMarket";
92
+ readonly internalType: "uint256";
93
+ readonly type: "uint256";
94
+ }, {
95
+ readonly name: "normalFills";
96
+ readonly internalType: "struct FillOrderParams[]";
97
+ readonly type: "tuple[]";
98
+ readonly components: readonly [{
99
+ readonly name: "order";
100
+ readonly internalType: "struct Order";
101
+ readonly type: "tuple";
102
+ readonly components: readonly [{
103
+ readonly name: "salt";
104
+ readonly internalType: "uint256";
105
+ readonly type: "uint256";
106
+ }, {
107
+ readonly name: "expiry";
108
+ readonly internalType: "uint256";
109
+ readonly type: "uint256";
110
+ }, {
111
+ readonly name: "nonce";
112
+ readonly internalType: "uint256";
113
+ readonly type: "uint256";
114
+ }, {
115
+ readonly name: "orderType";
116
+ readonly internalType: "enum OrderType";
117
+ readonly type: "uint8";
118
+ }, {
119
+ readonly name: "token";
120
+ readonly internalType: "address";
121
+ readonly type: "address";
122
+ }, {
123
+ readonly name: "YT";
124
+ readonly internalType: "address";
125
+ readonly type: "address";
126
+ }, {
127
+ readonly name: "maker";
128
+ readonly internalType: "address";
129
+ readonly type: "address";
130
+ }, {
131
+ readonly name: "receiver";
132
+ readonly internalType: "address";
133
+ readonly type: "address";
134
+ }, {
135
+ readonly name: "makingAmount";
136
+ readonly internalType: "uint256";
137
+ readonly type: "uint256";
138
+ }, {
139
+ readonly name: "lnImpliedRate";
140
+ readonly internalType: "uint256";
141
+ readonly type: "uint256";
142
+ }, {
143
+ readonly name: "failSafeRate";
144
+ readonly internalType: "uint256";
145
+ readonly type: "uint256";
146
+ }, {
147
+ readonly name: "permit";
148
+ readonly internalType: "bytes";
149
+ readonly type: "bytes";
150
+ }];
151
+ }, {
152
+ readonly name: "signature";
153
+ readonly internalType: "bytes";
154
+ readonly type: "bytes";
155
+ }, {
156
+ readonly name: "makingAmount";
157
+ readonly internalType: "uint256";
158
+ readonly type: "uint256";
159
+ }];
160
+ }, {
161
+ readonly name: "flashFills";
162
+ readonly internalType: "struct FillOrderParams[]";
163
+ readonly type: "tuple[]";
164
+ readonly components: readonly [{
165
+ readonly name: "order";
166
+ readonly internalType: "struct Order";
167
+ readonly type: "tuple";
168
+ readonly components: readonly [{
169
+ readonly name: "salt";
170
+ readonly internalType: "uint256";
171
+ readonly type: "uint256";
172
+ }, {
173
+ readonly name: "expiry";
174
+ readonly internalType: "uint256";
175
+ readonly type: "uint256";
176
+ }, {
177
+ readonly name: "nonce";
178
+ readonly internalType: "uint256";
179
+ readonly type: "uint256";
180
+ }, {
181
+ readonly name: "orderType";
182
+ readonly internalType: "enum OrderType";
183
+ readonly type: "uint8";
184
+ }, {
185
+ readonly name: "token";
186
+ readonly internalType: "address";
187
+ readonly type: "address";
188
+ }, {
189
+ readonly name: "YT";
190
+ readonly internalType: "address";
191
+ readonly type: "address";
192
+ }, {
193
+ readonly name: "maker";
194
+ readonly internalType: "address";
195
+ readonly type: "address";
196
+ }, {
197
+ readonly name: "receiver";
198
+ readonly internalType: "address";
199
+ readonly type: "address";
200
+ }, {
201
+ readonly name: "makingAmount";
202
+ readonly internalType: "uint256";
203
+ readonly type: "uint256";
204
+ }, {
205
+ readonly name: "lnImpliedRate";
206
+ readonly internalType: "uint256";
207
+ readonly type: "uint256";
208
+ }, {
209
+ readonly name: "failSafeRate";
210
+ readonly internalType: "uint256";
211
+ readonly type: "uint256";
212
+ }, {
213
+ readonly name: "permit";
214
+ readonly internalType: "bytes";
215
+ readonly type: "bytes";
216
+ }];
217
+ }, {
218
+ readonly name: "signature";
219
+ readonly internalType: "bytes";
220
+ readonly type: "bytes";
221
+ }, {
222
+ readonly name: "makingAmount";
223
+ readonly internalType: "uint256";
224
+ readonly type: "uint256";
225
+ }];
226
+ }, {
227
+ readonly name: "optData";
228
+ readonly internalType: "bytes";
229
+ readonly type: "bytes";
230
+ }];
231
+ }];
232
+ readonly name: "addLiquiditySingleToken";
233
+ readonly outputs: readonly [{
234
+ readonly name: "useSafePrices";
235
+ readonly internalType: "bool";
236
+ readonly type: "bool";
237
+ }];
238
+ readonly stateMutability: "nonpayable";
239
+ }, {
240
+ readonly type: "function";
241
+ readonly inputs: readonly [{
242
+ readonly name: "market";
243
+ readonly internalType: "address";
244
+ readonly type: "address";
245
+ }, {
246
+ readonly name: "minRateRAY";
247
+ readonly internalType: "uint256";
248
+ readonly type: "uint256";
249
+ }, {
250
+ readonly name: "guessPtReceivedFromSy";
251
+ readonly internalType: "struct ApproxParams";
252
+ readonly type: "tuple";
253
+ readonly components: readonly [{
254
+ readonly name: "guessMin";
255
+ readonly internalType: "uint256";
256
+ readonly type: "uint256";
257
+ }, {
258
+ readonly name: "guessMax";
259
+ readonly internalType: "uint256";
260
+ readonly type: "uint256";
261
+ }, {
262
+ readonly name: "guessOffchain";
263
+ readonly internalType: "uint256";
264
+ readonly type: "uint256";
265
+ }, {
266
+ readonly name: "maxIteration";
267
+ readonly internalType: "uint256";
268
+ readonly type: "uint256";
269
+ }, {
270
+ readonly name: "eps";
271
+ readonly internalType: "uint256";
272
+ readonly type: "uint256";
273
+ }];
274
+ }, {
275
+ readonly name: "diffInput";
276
+ readonly internalType: "struct TokenDiffInput";
277
+ readonly type: "tuple";
278
+ readonly components: readonly [{
279
+ readonly name: "tokenIn";
280
+ readonly internalType: "address";
281
+ readonly type: "address";
282
+ }, {
283
+ readonly name: "leftoverTokenIn";
284
+ readonly internalType: "uint256";
285
+ readonly type: "uint256";
286
+ }];
287
+ }];
288
+ readonly name: "addLiquiditySingleTokenDiff";
289
+ readonly outputs: readonly [{
290
+ readonly name: "useSafePrices";
291
+ readonly internalType: "bool";
292
+ readonly type: "bool";
293
+ }];
294
+ readonly stateMutability: "nonpayable";
295
+ }, {
296
+ readonly type: "function";
297
+ readonly inputs: readonly [];
298
+ readonly name: "contractType";
299
+ readonly outputs: readonly [{
300
+ readonly name: "";
301
+ readonly internalType: "bytes32";
302
+ readonly type: "bytes32";
303
+ }];
304
+ readonly stateMutability: "view";
305
+ }, {
306
+ readonly type: "function";
307
+ readonly inputs: readonly [];
308
+ readonly name: "creditManager";
309
+ readonly outputs: readonly [{
310
+ readonly name: "";
311
+ readonly internalType: "address";
312
+ readonly type: "address";
313
+ }];
314
+ readonly stateMutability: "view";
315
+ }, {
316
+ readonly type: "function";
317
+ readonly inputs: readonly [];
318
+ readonly name: "getAllowedPairs";
319
+ readonly outputs: readonly [{
320
+ readonly name: "pairs";
321
+ readonly internalType: "struct PendlePairStatus[]";
322
+ readonly type: "tuple[]";
323
+ readonly components: readonly [{
324
+ readonly name: "market";
325
+ readonly internalType: "address";
326
+ readonly type: "address";
327
+ }, {
328
+ readonly name: "inputToken";
329
+ readonly internalType: "address";
330
+ readonly type: "address";
331
+ }, {
332
+ readonly name: "pendleToken";
333
+ readonly internalType: "address";
334
+ readonly type: "address";
335
+ }, {
336
+ readonly name: "pendleTokenType";
337
+ readonly internalType: "enum PendleTokenType";
338
+ readonly type: "uint8";
339
+ }, {
340
+ readonly name: "status";
341
+ readonly internalType: "enum PendleStatus";
342
+ readonly type: "uint8";
343
+ }];
344
+ }];
345
+ readonly stateMutability: "view";
346
+ }, {
347
+ readonly type: "function";
348
+ readonly inputs: readonly [{
349
+ readonly name: "market";
350
+ readonly internalType: "address";
351
+ readonly type: "address";
352
+ }, {
353
+ readonly name: "inputToken";
354
+ readonly internalType: "address";
355
+ readonly type: "address";
356
+ }, {
357
+ readonly name: "pendleToken";
358
+ readonly internalType: "address";
359
+ readonly type: "address";
360
+ }];
361
+ readonly name: "isPairAllowed";
362
+ readonly outputs: readonly [{
363
+ readonly name: "status";
364
+ readonly internalType: "enum PendleStatus";
365
+ readonly type: "uint8";
366
+ }];
367
+ readonly stateMutability: "view";
368
+ }, {
369
+ readonly type: "function";
370
+ readonly inputs: readonly [{
371
+ readonly name: "pt";
372
+ readonly internalType: "address";
373
+ readonly type: "address";
374
+ }];
375
+ readonly name: "ptToMarket";
376
+ readonly outputs: readonly [{
377
+ readonly name: "market";
378
+ readonly internalType: "address";
379
+ readonly type: "address";
380
+ }];
381
+ readonly stateMutability: "view";
382
+ }, {
383
+ readonly type: "function";
384
+ readonly inputs: readonly [{
385
+ readonly name: "yt";
386
+ readonly internalType: "address";
387
+ readonly type: "address";
388
+ }, {
389
+ readonly name: "leftoverPt";
390
+ readonly internalType: "uint256";
391
+ readonly type: "uint256";
392
+ }, {
393
+ readonly name: "output";
394
+ readonly internalType: "struct TokenDiffOutput";
395
+ readonly type: "tuple";
396
+ readonly components: readonly [{
397
+ readonly name: "tokenOut";
398
+ readonly internalType: "address";
399
+ readonly type: "address";
400
+ }, {
401
+ readonly name: "minRateRAY";
402
+ readonly internalType: "uint256";
403
+ readonly type: "uint256";
404
+ }];
405
+ }];
406
+ readonly name: "redeemDiffPyToToken";
407
+ readonly outputs: readonly [{
408
+ readonly name: "useSafePrices";
409
+ readonly internalType: "bool";
410
+ readonly type: "bool";
411
+ }];
412
+ readonly stateMutability: "nonpayable";
413
+ }, {
414
+ readonly type: "function";
415
+ readonly inputs: readonly [{
416
+ readonly name: "receiver";
417
+ readonly internalType: "address";
418
+ readonly type: "address";
419
+ }, {
420
+ readonly name: "yt";
421
+ readonly internalType: "address";
422
+ readonly type: "address";
423
+ }, {
424
+ readonly name: "netPyIn";
425
+ readonly internalType: "uint256";
426
+ readonly type: "uint256";
427
+ }, {
428
+ readonly name: "output";
429
+ readonly internalType: "struct TokenOutput";
430
+ readonly type: "tuple";
431
+ readonly components: readonly [{
432
+ readonly name: "tokenOut";
433
+ readonly internalType: "address";
434
+ readonly type: "address";
435
+ }, {
436
+ readonly name: "minTokenOut";
437
+ readonly internalType: "uint256";
438
+ readonly type: "uint256";
439
+ }, {
440
+ readonly name: "tokenRedeemSy";
441
+ readonly internalType: "address";
442
+ readonly type: "address";
443
+ }, {
444
+ readonly name: "pendleSwap";
445
+ readonly internalType: "address";
446
+ readonly type: "address";
447
+ }, {
448
+ readonly name: "swapData";
449
+ readonly internalType: "struct SwapData";
450
+ readonly type: "tuple";
451
+ readonly components: readonly [{
452
+ readonly name: "swapType";
453
+ readonly internalType: "enum SwapType";
454
+ readonly type: "uint8";
455
+ }, {
456
+ readonly name: "extRouter";
457
+ readonly internalType: "address";
458
+ readonly type: "address";
459
+ }, {
460
+ readonly name: "extCalldata";
461
+ readonly internalType: "bytes";
462
+ readonly type: "bytes";
463
+ }, {
464
+ readonly name: "needScale";
465
+ readonly internalType: "bool";
466
+ readonly type: "bool";
467
+ }];
468
+ }];
469
+ }];
470
+ readonly name: "redeemPyToToken";
471
+ readonly outputs: readonly [{
472
+ readonly name: "useSafePrices";
473
+ readonly internalType: "bool";
474
+ readonly type: "bool";
475
+ }];
476
+ readonly stateMutability: "nonpayable";
477
+ }, {
478
+ readonly type: "function";
479
+ readonly inputs: readonly [{
480
+ readonly name: "receiver";
481
+ readonly internalType: "address";
482
+ readonly type: "address";
483
+ }, {
484
+ readonly name: "market";
485
+ readonly internalType: "address";
486
+ readonly type: "address";
487
+ }, {
488
+ readonly name: "netLpToRemove";
489
+ readonly internalType: "uint256";
490
+ readonly type: "uint256";
491
+ }, {
492
+ readonly name: "output";
493
+ readonly internalType: "struct TokenOutput";
494
+ readonly type: "tuple";
495
+ readonly components: readonly [{
496
+ readonly name: "tokenOut";
497
+ readonly internalType: "address";
498
+ readonly type: "address";
499
+ }, {
500
+ readonly name: "minTokenOut";
501
+ readonly internalType: "uint256";
502
+ readonly type: "uint256";
503
+ }, {
504
+ readonly name: "tokenRedeemSy";
505
+ readonly internalType: "address";
506
+ readonly type: "address";
507
+ }, {
508
+ readonly name: "pendleSwap";
509
+ readonly internalType: "address";
510
+ readonly type: "address";
511
+ }, {
512
+ readonly name: "swapData";
513
+ readonly internalType: "struct SwapData";
514
+ readonly type: "tuple";
515
+ readonly components: readonly [{
516
+ readonly name: "swapType";
517
+ readonly internalType: "enum SwapType";
518
+ readonly type: "uint8";
519
+ }, {
520
+ readonly name: "extRouter";
521
+ readonly internalType: "address";
522
+ readonly type: "address";
523
+ }, {
524
+ readonly name: "extCalldata";
525
+ readonly internalType: "bytes";
526
+ readonly type: "bytes";
527
+ }, {
528
+ readonly name: "needScale";
529
+ readonly internalType: "bool";
530
+ readonly type: "bool";
531
+ }];
532
+ }];
533
+ }, {
534
+ readonly name: "limit";
535
+ readonly internalType: "struct LimitOrderData";
536
+ readonly type: "tuple";
537
+ readonly components: readonly [{
538
+ readonly name: "limitRouter";
539
+ readonly internalType: "address";
540
+ readonly type: "address";
541
+ }, {
542
+ readonly name: "epsSkipMarket";
543
+ readonly internalType: "uint256";
544
+ readonly type: "uint256";
545
+ }, {
546
+ readonly name: "normalFills";
547
+ readonly internalType: "struct FillOrderParams[]";
548
+ readonly type: "tuple[]";
549
+ readonly components: readonly [{
550
+ readonly name: "order";
551
+ readonly internalType: "struct Order";
552
+ readonly type: "tuple";
553
+ readonly components: readonly [{
554
+ readonly name: "salt";
555
+ readonly internalType: "uint256";
556
+ readonly type: "uint256";
557
+ }, {
558
+ readonly name: "expiry";
559
+ readonly internalType: "uint256";
560
+ readonly type: "uint256";
561
+ }, {
562
+ readonly name: "nonce";
563
+ readonly internalType: "uint256";
564
+ readonly type: "uint256";
565
+ }, {
566
+ readonly name: "orderType";
567
+ readonly internalType: "enum OrderType";
568
+ readonly type: "uint8";
569
+ }, {
570
+ readonly name: "token";
571
+ readonly internalType: "address";
572
+ readonly type: "address";
573
+ }, {
574
+ readonly name: "YT";
575
+ readonly internalType: "address";
576
+ readonly type: "address";
577
+ }, {
578
+ readonly name: "maker";
579
+ readonly internalType: "address";
580
+ readonly type: "address";
581
+ }, {
582
+ readonly name: "receiver";
583
+ readonly internalType: "address";
584
+ readonly type: "address";
585
+ }, {
586
+ readonly name: "makingAmount";
587
+ readonly internalType: "uint256";
588
+ readonly type: "uint256";
589
+ }, {
590
+ readonly name: "lnImpliedRate";
591
+ readonly internalType: "uint256";
592
+ readonly type: "uint256";
593
+ }, {
594
+ readonly name: "failSafeRate";
595
+ readonly internalType: "uint256";
596
+ readonly type: "uint256";
597
+ }, {
598
+ readonly name: "permit";
599
+ readonly internalType: "bytes";
600
+ readonly type: "bytes";
601
+ }];
602
+ }, {
603
+ readonly name: "signature";
604
+ readonly internalType: "bytes";
605
+ readonly type: "bytes";
606
+ }, {
607
+ readonly name: "makingAmount";
608
+ readonly internalType: "uint256";
609
+ readonly type: "uint256";
610
+ }];
611
+ }, {
612
+ readonly name: "flashFills";
613
+ readonly internalType: "struct FillOrderParams[]";
614
+ readonly type: "tuple[]";
615
+ readonly components: readonly [{
616
+ readonly name: "order";
617
+ readonly internalType: "struct Order";
618
+ readonly type: "tuple";
619
+ readonly components: readonly [{
620
+ readonly name: "salt";
621
+ readonly internalType: "uint256";
622
+ readonly type: "uint256";
623
+ }, {
624
+ readonly name: "expiry";
625
+ readonly internalType: "uint256";
626
+ readonly type: "uint256";
627
+ }, {
628
+ readonly name: "nonce";
629
+ readonly internalType: "uint256";
630
+ readonly type: "uint256";
631
+ }, {
632
+ readonly name: "orderType";
633
+ readonly internalType: "enum OrderType";
634
+ readonly type: "uint8";
635
+ }, {
636
+ readonly name: "token";
637
+ readonly internalType: "address";
638
+ readonly type: "address";
639
+ }, {
640
+ readonly name: "YT";
641
+ readonly internalType: "address";
642
+ readonly type: "address";
643
+ }, {
644
+ readonly name: "maker";
645
+ readonly internalType: "address";
646
+ readonly type: "address";
647
+ }, {
648
+ readonly name: "receiver";
649
+ readonly internalType: "address";
650
+ readonly type: "address";
651
+ }, {
652
+ readonly name: "makingAmount";
653
+ readonly internalType: "uint256";
654
+ readonly type: "uint256";
655
+ }, {
656
+ readonly name: "lnImpliedRate";
657
+ readonly internalType: "uint256";
658
+ readonly type: "uint256";
659
+ }, {
660
+ readonly name: "failSafeRate";
661
+ readonly internalType: "uint256";
662
+ readonly type: "uint256";
663
+ }, {
664
+ readonly name: "permit";
665
+ readonly internalType: "bytes";
666
+ readonly type: "bytes";
667
+ }];
668
+ }, {
669
+ readonly name: "signature";
670
+ readonly internalType: "bytes";
671
+ readonly type: "bytes";
672
+ }, {
673
+ readonly name: "makingAmount";
674
+ readonly internalType: "uint256";
675
+ readonly type: "uint256";
676
+ }];
677
+ }, {
678
+ readonly name: "optData";
679
+ readonly internalType: "bytes";
680
+ readonly type: "bytes";
681
+ }];
682
+ }];
683
+ readonly name: "removeLiquiditySingleToken";
684
+ readonly outputs: readonly [{
685
+ readonly name: "useSafePrices";
686
+ readonly internalType: "bool";
687
+ readonly type: "bool";
688
+ }];
689
+ readonly stateMutability: "nonpayable";
690
+ }, {
691
+ readonly type: "function";
692
+ readonly inputs: readonly [{
693
+ readonly name: "market";
694
+ readonly internalType: "address";
695
+ readonly type: "address";
696
+ }, {
697
+ readonly name: "leftoverLp";
698
+ readonly internalType: "uint256";
699
+ readonly type: "uint256";
700
+ }, {
701
+ readonly name: "diffOutput";
702
+ readonly internalType: "struct TokenDiffOutput";
703
+ readonly type: "tuple";
704
+ readonly components: readonly [{
705
+ readonly name: "tokenOut";
706
+ readonly internalType: "address";
707
+ readonly type: "address";
708
+ }, {
709
+ readonly name: "minRateRAY";
710
+ readonly internalType: "uint256";
711
+ readonly type: "uint256";
712
+ }];
713
+ }];
714
+ readonly name: "removeLiquiditySingleTokenDiff";
715
+ readonly outputs: readonly [{
716
+ readonly name: "useSafePrices";
717
+ readonly internalType: "bool";
718
+ readonly type: "bool";
719
+ }];
720
+ readonly stateMutability: "nonpayable";
721
+ }, {
722
+ readonly type: "function";
723
+ readonly inputs: readonly [];
724
+ readonly name: "serialize";
725
+ readonly outputs: readonly [{
726
+ readonly name: "serializedData";
727
+ readonly internalType: "bytes";
728
+ readonly type: "bytes";
729
+ }];
730
+ readonly stateMutability: "view";
731
+ }, {
732
+ readonly type: "function";
733
+ readonly inputs: readonly [{
734
+ readonly name: "pairs";
735
+ readonly internalType: "struct PendlePairStatus[]";
736
+ readonly type: "tuple[]";
737
+ readonly components: readonly [{
738
+ readonly name: "market";
739
+ readonly internalType: "address";
740
+ readonly type: "address";
741
+ }, {
742
+ readonly name: "inputToken";
743
+ readonly internalType: "address";
744
+ readonly type: "address";
745
+ }, {
746
+ readonly name: "pendleToken";
747
+ readonly internalType: "address";
748
+ readonly type: "address";
749
+ }, {
750
+ readonly name: "pendleTokenType";
751
+ readonly internalType: "enum PendleTokenType";
752
+ readonly type: "uint8";
753
+ }, {
754
+ readonly name: "status";
755
+ readonly internalType: "enum PendleStatus";
756
+ readonly type: "uint8";
757
+ }];
758
+ }];
759
+ readonly name: "setPairStatusBatch";
760
+ readonly outputs: readonly [];
761
+ readonly stateMutability: "nonpayable";
762
+ }, {
763
+ readonly type: "function";
764
+ readonly inputs: readonly [{
765
+ readonly name: "market";
766
+ readonly internalType: "address";
767
+ readonly type: "address";
768
+ }, {
769
+ readonly name: "leftoverPt";
770
+ readonly internalType: "uint256";
771
+ readonly type: "uint256";
772
+ }, {
773
+ readonly name: "diffOutput";
774
+ readonly internalType: "struct TokenDiffOutput";
775
+ readonly type: "tuple";
776
+ readonly components: readonly [{
777
+ readonly name: "tokenOut";
778
+ readonly internalType: "address";
779
+ readonly type: "address";
780
+ }, {
781
+ readonly name: "minRateRAY";
782
+ readonly internalType: "uint256";
783
+ readonly type: "uint256";
784
+ }];
785
+ }];
786
+ readonly name: "swapDiffPtForToken";
787
+ readonly outputs: readonly [{
788
+ readonly name: "useSafePrices";
789
+ readonly internalType: "bool";
790
+ readonly type: "bool";
791
+ }];
792
+ readonly stateMutability: "nonpayable";
793
+ }, {
794
+ readonly type: "function";
795
+ readonly inputs: readonly [{
796
+ readonly name: "market";
797
+ readonly internalType: "address";
798
+ readonly type: "address";
799
+ }, {
800
+ readonly name: "minRateRAY";
801
+ readonly internalType: "uint256";
802
+ readonly type: "uint256";
803
+ }, {
804
+ readonly name: "guessPtOut";
805
+ readonly internalType: "struct ApproxParams";
806
+ readonly type: "tuple";
807
+ readonly components: readonly [{
808
+ readonly name: "guessMin";
809
+ readonly internalType: "uint256";
810
+ readonly type: "uint256";
811
+ }, {
812
+ readonly name: "guessMax";
813
+ readonly internalType: "uint256";
814
+ readonly type: "uint256";
815
+ }, {
816
+ readonly name: "guessOffchain";
817
+ readonly internalType: "uint256";
818
+ readonly type: "uint256";
819
+ }, {
820
+ readonly name: "maxIteration";
821
+ readonly internalType: "uint256";
822
+ readonly type: "uint256";
823
+ }, {
824
+ readonly name: "eps";
825
+ readonly internalType: "uint256";
826
+ readonly type: "uint256";
827
+ }];
828
+ }, {
829
+ readonly name: "diffInput";
830
+ readonly internalType: "struct TokenDiffInput";
831
+ readonly type: "tuple";
832
+ readonly components: readonly [{
833
+ readonly name: "tokenIn";
834
+ readonly internalType: "address";
835
+ readonly type: "address";
836
+ }, {
837
+ readonly name: "leftoverTokenIn";
838
+ readonly internalType: "uint256";
839
+ readonly type: "uint256";
840
+ }];
841
+ }];
842
+ readonly name: "swapDiffTokenForPt";
843
+ readonly outputs: readonly [{
844
+ readonly name: "useSafePrices";
845
+ readonly internalType: "bool";
846
+ readonly type: "bool";
847
+ }];
848
+ readonly stateMutability: "nonpayable";
849
+ }, {
850
+ readonly type: "function";
851
+ readonly inputs: readonly [{
852
+ readonly name: "receiver";
853
+ readonly internalType: "address";
854
+ readonly type: "address";
855
+ }, {
856
+ readonly name: "market";
857
+ readonly internalType: "address";
858
+ readonly type: "address";
859
+ }, {
860
+ readonly name: "exactPtIn";
861
+ readonly internalType: "uint256";
862
+ readonly type: "uint256";
863
+ }, {
864
+ readonly name: "output";
865
+ readonly internalType: "struct TokenOutput";
866
+ readonly type: "tuple";
867
+ readonly components: readonly [{
868
+ readonly name: "tokenOut";
869
+ readonly internalType: "address";
870
+ readonly type: "address";
871
+ }, {
872
+ readonly name: "minTokenOut";
873
+ readonly internalType: "uint256";
874
+ readonly type: "uint256";
875
+ }, {
876
+ readonly name: "tokenRedeemSy";
877
+ readonly internalType: "address";
878
+ readonly type: "address";
879
+ }, {
880
+ readonly name: "pendleSwap";
881
+ readonly internalType: "address";
882
+ readonly type: "address";
883
+ }, {
884
+ readonly name: "swapData";
885
+ readonly internalType: "struct SwapData";
886
+ readonly type: "tuple";
887
+ readonly components: readonly [{
888
+ readonly name: "swapType";
889
+ readonly internalType: "enum SwapType";
890
+ readonly type: "uint8";
891
+ }, {
892
+ readonly name: "extRouter";
893
+ readonly internalType: "address";
894
+ readonly type: "address";
895
+ }, {
896
+ readonly name: "extCalldata";
897
+ readonly internalType: "bytes";
898
+ readonly type: "bytes";
899
+ }, {
900
+ readonly name: "needScale";
901
+ readonly internalType: "bool";
902
+ readonly type: "bool";
903
+ }];
904
+ }];
905
+ }, {
906
+ readonly name: "limit";
907
+ readonly internalType: "struct LimitOrderData";
908
+ readonly type: "tuple";
909
+ readonly components: readonly [{
910
+ readonly name: "limitRouter";
911
+ readonly internalType: "address";
912
+ readonly type: "address";
913
+ }, {
914
+ readonly name: "epsSkipMarket";
915
+ readonly internalType: "uint256";
916
+ readonly type: "uint256";
917
+ }, {
918
+ readonly name: "normalFills";
919
+ readonly internalType: "struct FillOrderParams[]";
920
+ readonly type: "tuple[]";
921
+ readonly components: readonly [{
922
+ readonly name: "order";
923
+ readonly internalType: "struct Order";
924
+ readonly type: "tuple";
925
+ readonly components: readonly [{
926
+ readonly name: "salt";
927
+ readonly internalType: "uint256";
928
+ readonly type: "uint256";
929
+ }, {
930
+ readonly name: "expiry";
931
+ readonly internalType: "uint256";
932
+ readonly type: "uint256";
933
+ }, {
934
+ readonly name: "nonce";
935
+ readonly internalType: "uint256";
936
+ readonly type: "uint256";
937
+ }, {
938
+ readonly name: "orderType";
939
+ readonly internalType: "enum OrderType";
940
+ readonly type: "uint8";
941
+ }, {
942
+ readonly name: "token";
943
+ readonly internalType: "address";
944
+ readonly type: "address";
945
+ }, {
946
+ readonly name: "YT";
947
+ readonly internalType: "address";
948
+ readonly type: "address";
949
+ }, {
950
+ readonly name: "maker";
951
+ readonly internalType: "address";
952
+ readonly type: "address";
953
+ }, {
954
+ readonly name: "receiver";
955
+ readonly internalType: "address";
956
+ readonly type: "address";
957
+ }, {
958
+ readonly name: "makingAmount";
959
+ readonly internalType: "uint256";
960
+ readonly type: "uint256";
961
+ }, {
962
+ readonly name: "lnImpliedRate";
963
+ readonly internalType: "uint256";
964
+ readonly type: "uint256";
965
+ }, {
966
+ readonly name: "failSafeRate";
967
+ readonly internalType: "uint256";
968
+ readonly type: "uint256";
969
+ }, {
970
+ readonly name: "permit";
971
+ readonly internalType: "bytes";
972
+ readonly type: "bytes";
973
+ }];
974
+ }, {
975
+ readonly name: "signature";
976
+ readonly internalType: "bytes";
977
+ readonly type: "bytes";
978
+ }, {
979
+ readonly name: "makingAmount";
980
+ readonly internalType: "uint256";
981
+ readonly type: "uint256";
982
+ }];
983
+ }, {
984
+ readonly name: "flashFills";
985
+ readonly internalType: "struct FillOrderParams[]";
986
+ readonly type: "tuple[]";
987
+ readonly components: readonly [{
988
+ readonly name: "order";
989
+ readonly internalType: "struct Order";
990
+ readonly type: "tuple";
991
+ readonly components: readonly [{
992
+ readonly name: "salt";
993
+ readonly internalType: "uint256";
994
+ readonly type: "uint256";
995
+ }, {
996
+ readonly name: "expiry";
997
+ readonly internalType: "uint256";
998
+ readonly type: "uint256";
999
+ }, {
1000
+ readonly name: "nonce";
1001
+ readonly internalType: "uint256";
1002
+ readonly type: "uint256";
1003
+ }, {
1004
+ readonly name: "orderType";
1005
+ readonly internalType: "enum OrderType";
1006
+ readonly type: "uint8";
1007
+ }, {
1008
+ readonly name: "token";
1009
+ readonly internalType: "address";
1010
+ readonly type: "address";
1011
+ }, {
1012
+ readonly name: "YT";
1013
+ readonly internalType: "address";
1014
+ readonly type: "address";
1015
+ }, {
1016
+ readonly name: "maker";
1017
+ readonly internalType: "address";
1018
+ readonly type: "address";
1019
+ }, {
1020
+ readonly name: "receiver";
1021
+ readonly internalType: "address";
1022
+ readonly type: "address";
1023
+ }, {
1024
+ readonly name: "makingAmount";
1025
+ readonly internalType: "uint256";
1026
+ readonly type: "uint256";
1027
+ }, {
1028
+ readonly name: "lnImpliedRate";
1029
+ readonly internalType: "uint256";
1030
+ readonly type: "uint256";
1031
+ }, {
1032
+ readonly name: "failSafeRate";
1033
+ readonly internalType: "uint256";
1034
+ readonly type: "uint256";
1035
+ }, {
1036
+ readonly name: "permit";
1037
+ readonly internalType: "bytes";
1038
+ readonly type: "bytes";
1039
+ }];
1040
+ }, {
1041
+ readonly name: "signature";
1042
+ readonly internalType: "bytes";
1043
+ readonly type: "bytes";
1044
+ }, {
1045
+ readonly name: "makingAmount";
1046
+ readonly internalType: "uint256";
1047
+ readonly type: "uint256";
1048
+ }];
1049
+ }, {
1050
+ readonly name: "optData";
1051
+ readonly internalType: "bytes";
1052
+ readonly type: "bytes";
1053
+ }];
1054
+ }];
1055
+ readonly name: "swapExactPtForToken";
1056
+ readonly outputs: readonly [{
1057
+ readonly name: "useSafePrices";
1058
+ readonly internalType: "bool";
1059
+ readonly type: "bool";
1060
+ }];
1061
+ readonly stateMutability: "nonpayable";
1062
+ }, {
1063
+ readonly type: "function";
1064
+ readonly inputs: readonly [{
1065
+ readonly name: "receiver";
1066
+ readonly internalType: "address";
1067
+ readonly type: "address";
1068
+ }, {
1069
+ readonly name: "market";
1070
+ readonly internalType: "address";
1071
+ readonly type: "address";
1072
+ }, {
1073
+ readonly name: "minPtOut";
1074
+ readonly internalType: "uint256";
1075
+ readonly type: "uint256";
1076
+ }, {
1077
+ readonly name: "guessPtOut";
1078
+ readonly internalType: "struct ApproxParams";
1079
+ readonly type: "tuple";
1080
+ readonly components: readonly [{
1081
+ readonly name: "guessMin";
1082
+ readonly internalType: "uint256";
1083
+ readonly type: "uint256";
1084
+ }, {
1085
+ readonly name: "guessMax";
1086
+ readonly internalType: "uint256";
1087
+ readonly type: "uint256";
1088
+ }, {
1089
+ readonly name: "guessOffchain";
1090
+ readonly internalType: "uint256";
1091
+ readonly type: "uint256";
1092
+ }, {
1093
+ readonly name: "maxIteration";
1094
+ readonly internalType: "uint256";
1095
+ readonly type: "uint256";
1096
+ }, {
1097
+ readonly name: "eps";
1098
+ readonly internalType: "uint256";
1099
+ readonly type: "uint256";
1100
+ }];
1101
+ }, {
1102
+ readonly name: "input";
1103
+ readonly internalType: "struct TokenInput";
1104
+ readonly type: "tuple";
1105
+ readonly components: readonly [{
1106
+ readonly name: "tokenIn";
1107
+ readonly internalType: "address";
1108
+ readonly type: "address";
1109
+ }, {
1110
+ readonly name: "netTokenIn";
1111
+ readonly internalType: "uint256";
1112
+ readonly type: "uint256";
1113
+ }, {
1114
+ readonly name: "tokenMintSy";
1115
+ readonly internalType: "address";
1116
+ readonly type: "address";
1117
+ }, {
1118
+ readonly name: "pendleSwap";
1119
+ readonly internalType: "address";
1120
+ readonly type: "address";
1121
+ }, {
1122
+ readonly name: "swapData";
1123
+ readonly internalType: "struct SwapData";
1124
+ readonly type: "tuple";
1125
+ readonly components: readonly [{
1126
+ readonly name: "swapType";
1127
+ readonly internalType: "enum SwapType";
1128
+ readonly type: "uint8";
1129
+ }, {
1130
+ readonly name: "extRouter";
1131
+ readonly internalType: "address";
1132
+ readonly type: "address";
1133
+ }, {
1134
+ readonly name: "extCalldata";
1135
+ readonly internalType: "bytes";
1136
+ readonly type: "bytes";
1137
+ }, {
1138
+ readonly name: "needScale";
1139
+ readonly internalType: "bool";
1140
+ readonly type: "bool";
1141
+ }];
1142
+ }];
1143
+ }, {
1144
+ readonly name: "limit";
1145
+ readonly internalType: "struct LimitOrderData";
1146
+ readonly type: "tuple";
1147
+ readonly components: readonly [{
1148
+ readonly name: "limitRouter";
1149
+ readonly internalType: "address";
1150
+ readonly type: "address";
1151
+ }, {
1152
+ readonly name: "epsSkipMarket";
1153
+ readonly internalType: "uint256";
1154
+ readonly type: "uint256";
1155
+ }, {
1156
+ readonly name: "normalFills";
1157
+ readonly internalType: "struct FillOrderParams[]";
1158
+ readonly type: "tuple[]";
1159
+ readonly components: readonly [{
1160
+ readonly name: "order";
1161
+ readonly internalType: "struct Order";
1162
+ readonly type: "tuple";
1163
+ readonly components: readonly [{
1164
+ readonly name: "salt";
1165
+ readonly internalType: "uint256";
1166
+ readonly type: "uint256";
1167
+ }, {
1168
+ readonly name: "expiry";
1169
+ readonly internalType: "uint256";
1170
+ readonly type: "uint256";
1171
+ }, {
1172
+ readonly name: "nonce";
1173
+ readonly internalType: "uint256";
1174
+ readonly type: "uint256";
1175
+ }, {
1176
+ readonly name: "orderType";
1177
+ readonly internalType: "enum OrderType";
1178
+ readonly type: "uint8";
1179
+ }, {
1180
+ readonly name: "token";
1181
+ readonly internalType: "address";
1182
+ readonly type: "address";
1183
+ }, {
1184
+ readonly name: "YT";
1185
+ readonly internalType: "address";
1186
+ readonly type: "address";
1187
+ }, {
1188
+ readonly name: "maker";
1189
+ readonly internalType: "address";
1190
+ readonly type: "address";
1191
+ }, {
1192
+ readonly name: "receiver";
1193
+ readonly internalType: "address";
1194
+ readonly type: "address";
1195
+ }, {
1196
+ readonly name: "makingAmount";
1197
+ readonly internalType: "uint256";
1198
+ readonly type: "uint256";
1199
+ }, {
1200
+ readonly name: "lnImpliedRate";
1201
+ readonly internalType: "uint256";
1202
+ readonly type: "uint256";
1203
+ }, {
1204
+ readonly name: "failSafeRate";
1205
+ readonly internalType: "uint256";
1206
+ readonly type: "uint256";
1207
+ }, {
1208
+ readonly name: "permit";
1209
+ readonly internalType: "bytes";
1210
+ readonly type: "bytes";
1211
+ }];
1212
+ }, {
1213
+ readonly name: "signature";
1214
+ readonly internalType: "bytes";
1215
+ readonly type: "bytes";
1216
+ }, {
1217
+ readonly name: "makingAmount";
1218
+ readonly internalType: "uint256";
1219
+ readonly type: "uint256";
1220
+ }];
1221
+ }, {
1222
+ readonly name: "flashFills";
1223
+ readonly internalType: "struct FillOrderParams[]";
1224
+ readonly type: "tuple[]";
1225
+ readonly components: readonly [{
1226
+ readonly name: "order";
1227
+ readonly internalType: "struct Order";
1228
+ readonly type: "tuple";
1229
+ readonly components: readonly [{
1230
+ readonly name: "salt";
1231
+ readonly internalType: "uint256";
1232
+ readonly type: "uint256";
1233
+ }, {
1234
+ readonly name: "expiry";
1235
+ readonly internalType: "uint256";
1236
+ readonly type: "uint256";
1237
+ }, {
1238
+ readonly name: "nonce";
1239
+ readonly internalType: "uint256";
1240
+ readonly type: "uint256";
1241
+ }, {
1242
+ readonly name: "orderType";
1243
+ readonly internalType: "enum OrderType";
1244
+ readonly type: "uint8";
1245
+ }, {
1246
+ readonly name: "token";
1247
+ readonly internalType: "address";
1248
+ readonly type: "address";
1249
+ }, {
1250
+ readonly name: "YT";
1251
+ readonly internalType: "address";
1252
+ readonly type: "address";
1253
+ }, {
1254
+ readonly name: "maker";
1255
+ readonly internalType: "address";
1256
+ readonly type: "address";
1257
+ }, {
1258
+ readonly name: "receiver";
1259
+ readonly internalType: "address";
1260
+ readonly type: "address";
1261
+ }, {
1262
+ readonly name: "makingAmount";
1263
+ readonly internalType: "uint256";
1264
+ readonly type: "uint256";
1265
+ }, {
1266
+ readonly name: "lnImpliedRate";
1267
+ readonly internalType: "uint256";
1268
+ readonly type: "uint256";
1269
+ }, {
1270
+ readonly name: "failSafeRate";
1271
+ readonly internalType: "uint256";
1272
+ readonly type: "uint256";
1273
+ }, {
1274
+ readonly name: "permit";
1275
+ readonly internalType: "bytes";
1276
+ readonly type: "bytes";
1277
+ }];
1278
+ }, {
1279
+ readonly name: "signature";
1280
+ readonly internalType: "bytes";
1281
+ readonly type: "bytes";
1282
+ }, {
1283
+ readonly name: "makingAmount";
1284
+ readonly internalType: "uint256";
1285
+ readonly type: "uint256";
1286
+ }];
1287
+ }, {
1288
+ readonly name: "optData";
1289
+ readonly internalType: "bytes";
1290
+ readonly type: "bytes";
1291
+ }];
1292
+ }];
1293
+ readonly name: "swapExactTokenForPt";
1294
+ readonly outputs: readonly [{
1295
+ readonly name: "useSafePrices";
1296
+ readonly internalType: "bool";
1297
+ readonly type: "bool";
1298
+ }];
1299
+ readonly stateMutability: "nonpayable";
1300
+ }, {
1301
+ readonly type: "function";
1302
+ readonly inputs: readonly [];
1303
+ readonly name: "targetContract";
1304
+ readonly outputs: readonly [{
1305
+ readonly name: "";
1306
+ readonly internalType: "address";
1307
+ readonly type: "address";
1308
+ }];
1309
+ readonly stateMutability: "view";
1310
+ }, {
1311
+ readonly type: "function";
1312
+ readonly inputs: readonly [];
1313
+ readonly name: "version";
1314
+ readonly outputs: readonly [{
1315
+ readonly name: "";
1316
+ readonly internalType: "uint256";
1317
+ readonly type: "uint256";
1318
+ }];
1319
+ readonly stateMutability: "view";
1320
+ }, {
1321
+ readonly type: "event";
1322
+ readonly anonymous: false;
1323
+ readonly inputs: readonly [{
1324
+ readonly name: "market";
1325
+ readonly internalType: "address";
1326
+ readonly type: "address";
1327
+ readonly indexed: true;
1328
+ }, {
1329
+ readonly name: "inputToken";
1330
+ readonly internalType: "address";
1331
+ readonly type: "address";
1332
+ readonly indexed: true;
1333
+ }, {
1334
+ readonly name: "pendleToken";
1335
+ readonly internalType: "address";
1336
+ readonly type: "address";
1337
+ readonly indexed: true;
1338
+ }, {
1339
+ readonly name: "pendleTokenType";
1340
+ readonly internalType: "enum PendleTokenType";
1341
+ readonly type: "uint8";
1342
+ readonly indexed: false;
1343
+ }, {
1344
+ readonly name: "allowed";
1345
+ readonly internalType: "enum PendleStatus";
1346
+ readonly type: "uint8";
1347
+ readonly indexed: false;
1348
+ }];
1349
+ readonly name: "SetPairStatus";
1350
+ }, {
1351
+ readonly type: "error";
1352
+ readonly inputs: readonly [];
1353
+ readonly name: "PairNotAllowedException";
1354
+ }, {
1355
+ readonly type: "error";
1356
+ readonly inputs: readonly [];
1357
+ readonly name: "PendleTokenIsNotPTException";
1358
+ }, {
1359
+ readonly type: "error";
1360
+ readonly inputs: readonly [];
1361
+ readonly name: "PendleTokenNotEqualToMarketException";
1362
+ }, {
1363
+ readonly type: "error";
1364
+ readonly inputs: readonly [];
1365
+ readonly name: "RedemptionNotAllowedException";
1366
+ }];