@pendle/core-v2 6.7.0 → 6.8.0

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 (680) hide show
  1. package/build/artifacts/contracts/LiquidityMining/CrossChainMsg/PendleMsgReceiveEndpointUpg.sol/PendleMsgReceiveEndpointUpg.dbg.json +1 -1
  2. package/build/artifacts/contracts/LiquidityMining/CrossChainMsg/PendleMsgReceiveEndpointUpg.sol/PendleMsgReceiveEndpointUpg.json +2 -2
  3. package/build/artifacts/contracts/LiquidityMining/CrossChainMsg/PendleMsgReceiverAppUpg.sol/PendleMsgReceiverAppUpg.dbg.json +1 -1
  4. package/build/artifacts/contracts/LiquidityMining/CrossChainMsg/PendleMsgSendEndpointUpg.sol/PendleMsgSendEndpointUpg.dbg.json +1 -1
  5. package/build/artifacts/contracts/LiquidityMining/CrossChainMsg/PendleMsgSendEndpointUpg.sol/PendleMsgSendEndpointUpg.json +2 -2
  6. package/build/artifacts/contracts/LiquidityMining/CrossChainMsg/PendleMsgSenderAppUpg.sol/PendleMsgSenderAppUpg.dbg.json +1 -1
  7. package/build/artifacts/contracts/LiquidityMining/CrossChainMsg/libraries/ExcessivelySafeCall.sol/ExcessivelySafeCall.dbg.json +1 -1
  8. package/build/artifacts/contracts/LiquidityMining/CrossChainMsg/libraries/ExcessivelySafeCall.sol/ExcessivelySafeCall.json +2 -2
  9. package/build/artifacts/contracts/LiquidityMining/CrossChainMsg/libraries/LayerZeroHelper.sol/LayerZeroHelper.dbg.json +1 -1
  10. package/build/artifacts/contracts/LiquidityMining/CrossChainMsg/libraries/LayerZeroHelper.sol/LayerZeroHelper.json +2 -2
  11. package/build/artifacts/contracts/LiquidityMining/GaugeController/PendleGaugeControllerUpg.sol/PendleGaugeControllerUpg.dbg.json +1 -1
  12. package/build/artifacts/contracts/LiquidityMining/GaugeController/PendleGaugeControllerUpg.sol/PendleGaugeControllerUpg.json +2 -2
  13. package/build/artifacts/contracts/LiquidityMining/PendleMerkleDistributor.sol/PendleMerkleDistributor.dbg.json +1 -1
  14. package/build/artifacts/contracts/LiquidityMining/PendleMerkleDistributor.sol/PendleMerkleDistributor.json +2 -2
  15. package/build/artifacts/contracts/LiquidityMining/PendleMultiTokenMerkleDistributor.sol/PendleMultiTokenMerkleDistributor.dbg.json +1 -1
  16. package/build/artifacts/contracts/LiquidityMining/PendleMultiTokenMerkleDistributor.sol/PendleMultiTokenMerkleDistributor.json +2 -2
  17. package/build/artifacts/contracts/LiquidityMining/VotingEscrow/VotingEscrowPendleMainchain.sol/VotingEscrowPendleMainchain.dbg.json +1 -1
  18. package/build/artifacts/contracts/LiquidityMining/VotingEscrow/VotingEscrowPendleMainchain.sol/VotingEscrowPendleMainchain.json +2 -2
  19. package/build/artifacts/contracts/LiquidityMining/VotingEscrow/VotingEscrowPendleSidechain.sol/VotingEscrowPendleSidechain.dbg.json +1 -1
  20. package/build/artifacts/contracts/LiquidityMining/VotingEscrow/VotingEscrowPendleSidechain.sol/VotingEscrowPendleSidechain.json +2 -2
  21. package/build/artifacts/contracts/LiquidityMining/VotingEscrow/VotingEscrowTokenBase.sol/VotingEscrowTokenBase.dbg.json +1 -1
  22. package/build/artifacts/contracts/LiquidityMining/libraries/VeBalanceLib.sol/VeBalanceLib.dbg.json +1 -1
  23. package/build/artifacts/contracts/LiquidityMining/libraries/VeBalanceLib.sol/VeBalanceLib.json +2 -2
  24. package/build/artifacts/contracts/LiquidityMining/libraries/VeHistoryLib.sol/CheckpointHelper.dbg.json +1 -1
  25. package/build/artifacts/contracts/LiquidityMining/libraries/VeHistoryLib.sol/CheckpointHelper.json +2 -2
  26. package/build/artifacts/contracts/LiquidityMining/libraries/VeHistoryLib.sol/Checkpoints.dbg.json +1 -1
  27. package/build/artifacts/contracts/LiquidityMining/libraries/VeHistoryLib.sol/Checkpoints.json +2 -2
  28. package/build/artifacts/contracts/LiquidityMining/libraries/WeekMath.sol/WeekMath.dbg.json +1 -1
  29. package/build/artifacts/contracts/LiquidityMining/libraries/WeekMath.sol/WeekMath.json +2 -2
  30. package/build/artifacts/contracts/LiquidityMining/sPendle/StakedPendle.sol/StakedPendle.dbg.json +1 -1
  31. package/build/artifacts/contracts/LiquidityMining/sPendle/StakedPendle.sol/StakedPendle.json +2 -2
  32. package/build/artifacts/contracts/core/Market/MarketMathCore.sol/MarketMathCore.dbg.json +1 -1
  33. package/build/artifacts/contracts/core/Market/MarketMathCore.sol/MarketMathCore.json +2 -2
  34. package/build/artifacts/contracts/core/Market/OracleLib.sol/OracleLib.dbg.json +1 -1
  35. package/build/artifacts/contracts/core/Market/OracleLib.sol/OracleLib.json +2 -2
  36. package/build/artifacts/contracts/core/Market/PendleGauge.sol/PendleGauge.dbg.json +1 -1
  37. package/build/artifacts/contracts/core/Market/PendleMarketFactoryV7Upg.sol/PendleMarketFactoryV7Upg.dbg.json +1 -1
  38. package/build/artifacts/contracts/core/Market/PendleMarketFactoryV7Upg.sol/PendleMarketFactoryV7Upg.json +2 -2
  39. package/build/artifacts/contracts/core/Market/PendleMarketV7.sol/PendleMarketV7.dbg.json +1 -1
  40. package/build/artifacts/contracts/core/Market/PendleMarketV7.sol/PendleMarketV7.json +5 -5
  41. package/build/artifacts/contracts/core/RewardManager/RewardManager.sol/RewardManager.dbg.json +1 -1
  42. package/build/artifacts/contracts/core/RewardManager/RewardManagerAbstract.sol/RewardManagerAbstract.dbg.json +1 -1
  43. package/build/artifacts/contracts/core/StandardizedYield/PYIndex.sol/PYIndexLib.dbg.json +1 -1
  44. package/build/artifacts/contracts/core/StandardizedYield/PYIndex.sol/PYIndexLib.json +2 -2
  45. package/build/artifacts/contracts/core/StandardizedYield/SYUtils.sol/SYUtils.dbg.json +1 -1
  46. package/build/artifacts/contracts/core/StandardizedYield/SYUtils.sol/SYUtils.json +2 -2
  47. package/build/artifacts/contracts/core/YieldContracts/InterestManagerYT.sol/InterestManagerYT.dbg.json +1 -1
  48. package/build/artifacts/contracts/core/YieldContracts/PendlePrincipalToken.sol/PendlePrincipalToken.dbg.json +1 -1
  49. package/build/artifacts/contracts/core/YieldContracts/PendlePrincipalToken.sol/PendlePrincipalToken.json +2 -2
  50. package/build/artifacts/contracts/core/YieldContracts/PendleYieldContractFactoryUpg.sol/PendleYieldContractFactoryUpg.dbg.json +1 -1
  51. package/build/artifacts/contracts/core/YieldContracts/PendleYieldContractFactoryUpg.sol/PendleYieldContractFactoryUpg.json +2 -2
  52. package/build/artifacts/contracts/core/YieldContracts/PendleYieldToken.sol/PendleYieldToken.dbg.json +1 -1
  53. package/build/artifacts/contracts/core/YieldContracts/PendleYieldToken.sol/PendleYieldToken.json +2 -2
  54. package/build/artifacts/contracts/core/erc20/PendleERC20.sol/PendleERC20.dbg.json +1 -1
  55. package/build/artifacts/contracts/core/erc20/PendleERC20.sol/PendleERC20.json +2 -2
  56. package/build/artifacts/contracts/core/libraries/ArrayLib.sol/ArrayLib.dbg.json +1 -1
  57. package/build/artifacts/contracts/core/libraries/ArrayLib.sol/ArrayLib.json +2 -2
  58. package/build/artifacts/contracts/core/libraries/BaseSplitCodeFactory.sol/BaseSplitCodeFactory.dbg.json +1 -1
  59. package/build/artifacts/contracts/core/libraries/BaseSplitCodeFactory.sol/BaseSplitCodeFactory.json +2 -2
  60. package/build/artifacts/contracts/core/libraries/BaseSplitCodeFactory.sol/CodeDeployer.dbg.json +1 -1
  61. package/build/artifacts/contracts/core/libraries/BaseSplitCodeFactory.sol/CodeDeployer.json +2 -2
  62. package/build/artifacts/contracts/core/libraries/BoringOwnableUpgradeableV2.sol/BoringOwnableUpgradeableData.dbg.json +1 -1
  63. package/build/artifacts/contracts/core/libraries/BoringOwnableUpgradeableV2.sol/BoringOwnableUpgradeableData.json +2 -2
  64. package/build/artifacts/contracts/core/libraries/BoringOwnableUpgradeableV2.sol/BoringOwnableUpgradeableV2.dbg.json +1 -1
  65. package/build/artifacts/contracts/core/libraries/Errors.sol/Errors.dbg.json +1 -1
  66. package/build/artifacts/contracts/core/libraries/Errors.sol/Errors.json +2 -2
  67. package/build/artifacts/contracts/core/libraries/ExpiryUtilsLib.sol/ExpiryUtils.dbg.json +1 -1
  68. package/build/artifacts/contracts/core/libraries/ExpiryUtilsLib.sol/ExpiryUtils.json +2 -2
  69. package/build/artifacts/contracts/core/libraries/MiniHelpers.sol/MiniHelpers.dbg.json +1 -1
  70. package/build/artifacts/contracts/core/libraries/MiniHelpers.sol/MiniHelpers.json +2 -2
  71. package/build/artifacts/contracts/core/libraries/StringLib.sol/StringLib.dbg.json +1 -1
  72. package/build/artifacts/contracts/core/libraries/StringLib.sol/StringLib.json +2 -2
  73. package/build/artifacts/contracts/core/libraries/TokenHelper.sol/TokenHelper.dbg.json +1 -1
  74. package/build/artifacts/contracts/core/libraries/math/LogExpMath.sol/LogExpMath.dbg.json +1 -1
  75. package/build/artifacts/contracts/core/libraries/math/LogExpMath.sol/LogExpMath.json +2 -2
  76. package/build/artifacts/contracts/core/libraries/math/PMath.sol/PMath.dbg.json +1 -1
  77. package/build/artifacts/contracts/core/libraries/math/PMath.sol/PMath.json +2 -2
  78. package/build/artifacts/contracts/cross-chain/FixedPricePTAMMV2.sol/FixedPricePTAMMV2.dbg.json +1 -1
  79. package/build/artifacts/contracts/cross-chain/FixedPricePTAMMV2.sol/FixedPricePTAMMV2.json +2 -2
  80. package/build/artifacts/contracts/cross-chain/OFTPTSwapper.sol/OFTPTSwapper.dbg.json +4 -0
  81. package/build/artifacts/contracts/cross-chain/OFTPTSwapper.sol/OFTPTSwapper.json +99 -0
  82. package/build/artifacts/contracts/cross-chain/deposit-box/DepositBox.sol/DepositBox.dbg.json +1 -1
  83. package/build/artifacts/contracts/cross-chain/deposit-box/DepositBox.sol/DepositBox.json +2 -2
  84. package/build/artifacts/contracts/cross-chain/deposit-box/DepositBoxFactory.sol/DepositBoxFactory.dbg.json +1 -1
  85. package/build/artifacts/contracts/cross-chain/deposit-box/DepositBoxFactory.sol/DepositBoxFactory.json +2 -2
  86. package/build/artifacts/contracts/cross-chain/factory/PendleBridgePTFactory.sol/PendleBridgePTFactory.dbg.json +1 -1
  87. package/build/artifacts/contracts/cross-chain/factory/PendleBridgePTFactory.sol/PendleBridgePTFactory.json +2 -2
  88. package/build/artifacts/contracts/cross-chain/funder/BridgeFunder.sol/BridgeFunder.dbg.json +1 -1
  89. package/build/artifacts/contracts/cross-chain/funder/BridgeFunder.sol/BridgeFunder.json +2 -2
  90. package/build/artifacts/contracts/cross-chain/oftImpl/hub/OFTAdapterAltImpl.sol/OFTAdapterAltImpl.dbg.json +1 -1
  91. package/build/artifacts/contracts/cross-chain/oftImpl/hub/OFTAdapterAltImpl.sol/OFTAdapterAltImpl.json +2 -2
  92. package/build/artifacts/contracts/cross-chain/oftImpl/hub/OFTAdapterImpl.sol/OFTAdapterImpl.dbg.json +1 -1
  93. package/build/artifacts/contracts/cross-chain/oftImpl/hub/OFTAdapterImpl.sol/OFTAdapterImpl.json +2 -2
  94. package/build/artifacts/contracts/cross-chain/oftImpl/pendleOft/PendleOFT.sol/PendleOFT.dbg.json +1 -1
  95. package/build/artifacts/contracts/cross-chain/oftImpl/pendleOft/PendleOFT.sol/PendleOFT.json +2 -2
  96. package/build/artifacts/contracts/cross-chain/oftImpl/pendleOft/PendleOFTAlt.sol/PendleOFTAlt.dbg.json +1 -1
  97. package/build/artifacts/contracts/cross-chain/oftImpl/pendleOft/PendleOFTAlt.sol/PendleOFTAlt.json +2 -2
  98. package/build/artifacts/contracts/cross-chain/oftImpl/spoke/PendleBridgedPrincipalToken.sol/PendleBridgedPrincipalToken.dbg.json +1 -1
  99. package/build/artifacts/contracts/cross-chain/oftImpl/spoke/PendleBridgedPrincipalToken.sol/PendleBridgedPrincipalToken.json +2 -2
  100. package/build/artifacts/contracts/cross-chain/oftImpl/spoke/PendleBridgedPrincipalTokenAlt.sol/PendleBridgedPrincipalTokenAlt.dbg.json +1 -1
  101. package/build/artifacts/contracts/cross-chain/oftImpl/spoke/PendleBridgedPrincipalTokenAlt.sol/PendleBridgedPrincipalTokenAlt.json +2 -2
  102. package/build/artifacts/contracts/cross-chain/swap-hub/PendleCrossChainSwapHub.sol/PendleCrossChainSwapHub.dbg.json +1 -1
  103. package/build/artifacts/contracts/cross-chain/swap-hub/PendleCrossChainSwapHub.sol/PendleCrossChainSwapHub.json +2 -2
  104. package/build/artifacts/contracts/cross-chain/swap-hub/SwapHubBase.sol/SwapHubBase.dbg.json +1 -1
  105. package/build/artifacts/contracts/deprecated/VeDistributor/PendleFeeDistributorV2.sol/PendleFeeDistributorV2.dbg.json +1 -1
  106. package/build/artifacts/contracts/deprecated/VeDistributor/PendleFeeDistributorV2.sol/PendleFeeDistributorV2.json +2 -2
  107. package/build/artifacts/contracts/interfaces/IAddressProvider.sol/IAddressProvider.dbg.json +1 -1
  108. package/build/artifacts/contracts/interfaces/ILPWrapper.sol/ILPWrapper.dbg.json +1 -1
  109. package/build/artifacts/contracts/interfaces/ILayerZeroEndpoint.sol/ILayerZeroEndpoint.dbg.json +1 -1
  110. package/build/artifacts/contracts/interfaces/ILayerZeroReceiver.sol/ILayerZeroReceiver.dbg.json +1 -1
  111. package/build/artifacts/contracts/interfaces/IMarketSweed.sol/IMarketSweed.dbg.json +1 -1
  112. package/build/artifacts/contracts/interfaces/IMoneyMarket.sol/IMoneyMarket.dbg.json +4 -0
  113. package/build/artifacts/contracts/interfaces/IMoneyMarket.sol/IMoneyMarket.json +578 -0
  114. package/build/artifacts/contracts/interfaces/IMoneyMarket.sol/IMoneyMarketEvents.dbg.json +4 -0
  115. package/build/artifacts/contracts/interfaces/IMoneyMarket.sol/IMoneyMarketEvents.json +160 -0
  116. package/build/artifacts/contracts/interfaces/IMoneyMarketView.sol/IMoneyMarketView.dbg.json +4 -0
  117. package/build/artifacts/contracts/interfaces/IMoneyMarketView.sol/IMoneyMarketView.json +238 -0
  118. package/build/artifacts/contracts/interfaces/IOwnable.sol/IOwnable.dbg.json +1 -1
  119. package/build/artifacts/contracts/interfaces/IPActionAddRemoveLiqV3.sol/IPActionAddRemoveLiqV3.dbg.json +1 -1
  120. package/build/artifacts/contracts/interfaces/IPActionCallbackV3.sol/IPActionCallbackV3.dbg.json +1 -1
  121. package/build/artifacts/contracts/interfaces/IPActionInfoStatic.sol/IPActionInfoStatic.dbg.json +1 -1
  122. package/build/artifacts/contracts/interfaces/IPActionMarketAuxStatic.sol/IPActionMarketAuxStatic.dbg.json +1 -1
  123. package/build/artifacts/contracts/interfaces/IPActionMarketCoreStatic.sol/IPActionMarketCoreStatic.dbg.json +1 -1
  124. package/build/artifacts/contracts/interfaces/IPActionMintRedeemStatic.sol/IPActionMintRedeemStatic.dbg.json +1 -1
  125. package/build/artifacts/contracts/interfaces/IPActionMiscV3.sol/IPActionMiscV3.dbg.json +1 -1
  126. package/build/artifacts/contracts/interfaces/IPActionSimple.sol/IPActionSimple.dbg.json +1 -1
  127. package/build/artifacts/contracts/interfaces/IPActionStorageStatic.sol/IPActionStorageStatic.dbg.json +1 -1
  128. package/build/artifacts/contracts/interfaces/IPActionStorageV4.sol/IPActionStorageV4.dbg.json +1 -1
  129. package/build/artifacts/contracts/interfaces/IPActionSwapPTV3.sol/IPActionSwapPTV3.dbg.json +1 -1
  130. package/build/artifacts/contracts/interfaces/IPActionSwapYTV3.sol/IPActionSwapYTV3.dbg.json +1 -1
  131. package/build/artifacts/contracts/interfaces/IPActionVePendleStatic.sol/IPActionVePendleStatic.dbg.json +1 -1
  132. package/build/artifacts/contracts/interfaces/IPAllActionV3.sol/IPAllActionV3.dbg.json +1 -1
  133. package/build/artifacts/contracts/interfaces/IPAllEventsV3.sol/IPActionAddRemoveLiqV3Events.dbg.json +1 -1
  134. package/build/artifacts/contracts/interfaces/IPAllEventsV3.sol/IPActionMiscV3Events.dbg.json +1 -1
  135. package/build/artifacts/contracts/interfaces/IPAllEventsV3.sol/IPActionStorageEvents.dbg.json +1 -1
  136. package/build/artifacts/contracts/interfaces/IPAllEventsV3.sol/IPActionSwapPTV3Events.dbg.json +1 -1
  137. package/build/artifacts/contracts/interfaces/IPAllEventsV3.sol/IPActionSwapYTV3Events.dbg.json +1 -1
  138. package/build/artifacts/contracts/interfaces/IPAllEventsV3.sol/IPAllEventsV3.dbg.json +1 -1
  139. package/build/artifacts/contracts/interfaces/IPBridgeDataVerifier.sol/IPBridgeDataVerifier.dbg.json +4 -0
  140. package/build/artifacts/contracts/interfaces/IPBridgeDataVerifier.sol/IPBridgeDataVerifier.json +81 -0
  141. package/build/artifacts/contracts/interfaces/IPBridgeFunder.sol/IPBridgeFunder.dbg.json +1 -1
  142. package/build/artifacts/contracts/interfaces/IPBridgePTFactory.sol/IPBridgePTFactory.dbg.json +1 -1
  143. package/build/artifacts/contracts/interfaces/IPBridgedPrincipalToken.sol/IPBridgedPrincipalToken.dbg.json +1 -1
  144. package/build/artifacts/contracts/interfaces/IPChainlinkOracle.sol/IPChainlinkOracle.dbg.json +1 -1
  145. package/build/artifacts/contracts/interfaces/IPChainlinkOracleEssential.sol/IPChainlinkOracleEssential.dbg.json +1 -1
  146. package/build/artifacts/contracts/interfaces/IPChainlinkOracleFactory.sol/IPChainlinkOracleFactory.dbg.json +1 -1
  147. package/build/artifacts/contracts/interfaces/IPChainlinkOracleWithQuote.sol/IPChainlinkOracleWithQuote.dbg.json +1 -1
  148. package/build/artifacts/contracts/interfaces/IPCommonPoolDeployHelperV2.sol/IPCommonPoolDeployHelperV2.dbg.json +1 -1
  149. package/build/artifacts/contracts/interfaces/IPCommonSYFactory.sol/IPCommonSYFactory.dbg.json +1 -1
  150. package/build/artifacts/contracts/interfaces/IPCrossChainSwapHub.sol/IPCrossChainSwapHub.dbg.json +1 -1
  151. package/build/artifacts/contracts/interfaces/IPDepositBox.sol/IPDepositBox.dbg.json +1 -1
  152. package/build/artifacts/contracts/interfaces/IPDepositBoxFactory.sol/IPDepositBoxFactory.dbg.json +1 -1
  153. package/build/artifacts/contracts/interfaces/IPExchangeRateOracle.sol/IPExchangeRateOracle.dbg.json +1 -1
  154. package/build/artifacts/contracts/interfaces/IPExchangeRateOracleApp.sol/IPExchangeRateOracleApp.dbg.json +1 -1
  155. package/build/artifacts/contracts/interfaces/IPFeeDistributor.sol/IPFeeDistributor.dbg.json +1 -1
  156. package/build/artifacts/contracts/interfaces/IPFeeDistributorV2.sol/IPFeeDistributorV2.dbg.json +1 -1
  157. package/build/artifacts/contracts/interfaces/IPFixedPricePTAMMV2.sol/IPFixedPricePTAMMSwapCallback.dbg.json +1 -1
  158. package/build/artifacts/contracts/interfaces/IPFixedPricePTAMMV2.sol/IPFixedPricePTAMMV2.dbg.json +1 -1
  159. package/build/artifacts/contracts/interfaces/IPGauge.sol/IPGauge.dbg.json +1 -1
  160. package/build/artifacts/contracts/interfaces/IPGaugeController.sol/IPGaugeController.dbg.json +1 -1
  161. package/build/artifacts/contracts/interfaces/IPGovernanceProxy.sol/IPGovernanceProxy.dbg.json +1 -1
  162. package/build/artifacts/contracts/interfaces/IPInterestManagerYT.sol/IPInterestManagerYT.dbg.json +1 -1
  163. package/build/artifacts/contracts/interfaces/IPInterestManagerYTV2.sol/IPInterestManagerYTV2.dbg.json +1 -1
  164. package/build/artifacts/contracts/interfaces/IPLPWrapperFactory.sol/IPLPWrapperFactory.dbg.json +1 -1
  165. package/build/artifacts/contracts/interfaces/IPLimitRouter.sol/IPLimitOrderType.dbg.json +1 -1
  166. package/build/artifacts/contracts/interfaces/IPLimitRouter.sol/IPLimitRouter.dbg.json +1 -1
  167. package/build/artifacts/contracts/interfaces/IPLimitRouter.sol/IPLimitRouterCallback.dbg.json +1 -1
  168. package/build/artifacts/contracts/interfaces/IPLoopPositionBox.sol/IPLoopPositionBox.dbg.json +4 -0
  169. package/build/artifacts/contracts/interfaces/IPLoopPositionBox.sol/IPLoopPositionBox.json +170 -0
  170. package/build/artifacts/contracts/interfaces/IPLoopPositionBoxFactory.sol/IPLoopPositionBoxFactory.dbg.json +4 -0
  171. package/build/artifacts/contracts/interfaces/IPLoopPositionBoxFactory.sol/IPLoopPositionBoxFactory.json +377 -0
  172. package/build/artifacts/contracts/interfaces/IPMarket.sol/IPMarket.dbg.json +1 -1
  173. package/build/artifacts/contracts/interfaces/IPMarketFactory.sol/IPMarketFactory.dbg.json +1 -1
  174. package/build/artifacts/contracts/interfaces/IPMarketSwapCallback.sol/IPMarketSwapCallback.dbg.json +1 -1
  175. package/build/artifacts/contracts/interfaces/IPMerkleDistributor.sol/IPMerkleDistributor.dbg.json +1 -1
  176. package/build/artifacts/contracts/interfaces/IPMiniDiamond.sol/IPMiniDiamond.dbg.json +1 -1
  177. package/build/artifacts/contracts/interfaces/IPMsgReceiverApp.sol/IPMsgReceiverApp.dbg.json +1 -1
  178. package/build/artifacts/contracts/interfaces/IPMsgSendEndpoint.sol/IPMsgSendEndpoint.dbg.json +1 -1
  179. package/build/artifacts/contracts/interfaces/IPMultiTokenMerkleDistributor.sol/IPMultiTokenMerkleDistributor.dbg.json +1 -1
  180. package/build/artifacts/contracts/interfaces/IPOFTPTSwapper.sol/IPOFTPTSwapper.dbg.json +4 -0
  181. package/build/artifacts/contracts/interfaces/{IPSwapHelper.sol/IPSwapHelper.json → IPOFTPTSwapper.sol/IPOFTPTSwapper.json} +2 -2
  182. package/build/artifacts/contracts/interfaces/IPOffchainStorage.sol/IPOffchainStorage.dbg.json +1 -1
  183. package/build/artifacts/contracts/interfaces/IPOracleForSy.sol/IPOracleForSy.dbg.json +1 -1
  184. package/build/artifacts/contracts/interfaces/IPPTLooper.sol/IPPTLooper.dbg.json +4 -0
  185. package/build/artifacts/contracts/interfaces/IPPTLooper.sol/IPPTLooper.json +2476 -0
  186. package/build/artifacts/contracts/interfaces/IPPTLooper.sol/IPPTLooperEIP712Types.dbg.json +4 -0
  187. package/build/artifacts/contracts/interfaces/IPPTLooper.sol/IPPTLooperEIP712Types.json +10 -0
  188. package/build/artifacts/contracts/interfaces/IPPTLooperView.sol/IPPTLooperView.dbg.json +4 -0
  189. package/build/artifacts/contracts/interfaces/IPPTLooperView.sol/IPPTLooperView.json +209 -0
  190. package/build/artifacts/contracts/interfaces/IPPTOFTAdapterFactory.sol/IPPTOFTAdapterFactory.dbg.json +1 -1
  191. package/build/artifacts/contracts/interfaces/IPPYLpOracle.sol/IPPYLpOracle.dbg.json +1 -1
  192. package/build/artifacts/contracts/interfaces/IPPausingInterface.sol/IPPausingInterface.dbg.json +1 -1
  193. package/build/artifacts/contracts/interfaces/IPPoolDeployHelperV2.sol/IPPoolDeployHelperV2.dbg.json +1 -1
  194. package/build/artifacts/contracts/interfaces/IPPostPtLoopStateChecker.sol/IPPostPtLoopStateChecker.dbg.json +4 -0
  195. package/build/artifacts/contracts/interfaces/IPPostPtLoopStateChecker.sol/IPPostPtLoopStateChecker.json +29 -0
  196. package/build/artifacts/contracts/interfaces/IPPriceFeed.sol/IPPriceFeed.dbg.json +1 -1
  197. package/build/artifacts/contracts/interfaces/IPPrincipalToken.sol/IPPrincipalToken.dbg.json +1 -1
  198. package/build/artifacts/contracts/interfaces/IPReflector.sol/IPReflector.dbg.json +1 -1
  199. package/build/artifacts/contracts/interfaces/IPRouterStatic.sol/IPRouterStatic.dbg.json +1 -1
  200. package/build/artifacts/contracts/interfaces/IPStakedPendle.sol/IPStakedPendle.dbg.json +1 -1
  201. package/build/artifacts/contracts/interfaces/IPStaticQuoter.sol/IPStaticQuoter.dbg.json +4 -0
  202. package/build/artifacts/contracts/interfaces/IPStaticQuoter.sol/IPStaticQuoter.json +55 -0
  203. package/build/artifacts/contracts/interfaces/IPTokenWithSupplyCap.sol/IPTokenWithSupplyCap.dbg.json +1 -1
  204. package/build/artifacts/contracts/interfaces/IPVeToken.sol/IPVeToken.dbg.json +1 -1
  205. package/build/artifacts/contracts/interfaces/IPVotingEscrowMainchain.sol/IPVotingEscrowMainchain.dbg.json +1 -1
  206. package/build/artifacts/contracts/interfaces/IPYieldContractFactory.sol/IPYieldContractFactory.dbg.json +1 -1
  207. package/build/artifacts/contracts/interfaces/IPYieldToken.sol/IPYieldToken.dbg.json +1 -1
  208. package/build/artifacts/contracts/interfaces/IPYieldTokenV2.sol/IPYieldTokenV2.dbg.json +1 -1
  209. package/build/artifacts/contracts/interfaces/IRedstonePriceFeed.sol/IRedstonePriceFeed.dbg.json +1 -1
  210. package/build/artifacts/contracts/interfaces/IRewardManager.sol/IRewardManager.dbg.json +1 -1
  211. package/build/artifacts/contracts/interfaces/IStandardizedYield.sol/IStandardizedYield.dbg.json +1 -1
  212. package/build/artifacts/contracts/interfaces/IWETH.sol/IWETH.dbg.json +1 -1
  213. package/build/artifacts/contracts/interfaces/IWstETH.sol/IWstETH.dbg.json +1 -1
  214. package/build/artifacts/contracts/limit/LimitMathCore.sol/LimitMathCore.dbg.json +1 -1
  215. package/build/artifacts/contracts/limit/LimitMathCore.sol/LimitMathCore.json +2 -2
  216. package/build/artifacts/contracts/limit/LimitRouterBase.sol/LimitRouterBase.dbg.json +1 -1
  217. package/build/artifacts/contracts/limit/PendleLimitRouter.sol/PendleLimitRouter.dbg.json +1 -1
  218. package/build/artifacts/contracts/limit/PendleLimitRouter.sol/PendleLimitRouter.json +2 -2
  219. package/build/artifacts/contracts/limit/helpers/MintSyHelper.sol/MintSyHelper.dbg.json +1 -1
  220. package/build/artifacts/contracts/limit/helpers/NonceManager.sol/NonceManager.dbg.json +1 -1
  221. package/build/artifacts/contracts/limit/helpers/NonceManager.sol/NonceManager.json +2 -2
  222. package/build/artifacts/contracts/offchain-helpers/AddressProvider.sol/AddressProvider.dbg.json +1 -1
  223. package/build/artifacts/contracts/offchain-helpers/AddressProvider.sol/AddressProvider.json +2 -2
  224. package/build/artifacts/contracts/offchain-helpers/AutomateReady.sol/AutomateReady.dbg.json +1 -1
  225. package/build/artifacts/contracts/offchain-helpers/AutomateReady.sol/IAutomate.dbg.json +1 -1
  226. package/build/artifacts/contracts/offchain-helpers/AutomateReady.sol/IOpsProxyFactory.dbg.json +1 -1
  227. package/build/artifacts/contracts/offchain-helpers/AutomateReady.sol/ITaskTreasuryUpgradable.dbg.json +1 -1
  228. package/build/artifacts/contracts/offchain-helpers/BalanceReader.sol/BalanceReader.dbg.json +1 -1
  229. package/build/artifacts/contracts/offchain-helpers/BalanceReader.sol/BalanceReader.json +2 -2
  230. package/build/artifacts/contracts/offchain-helpers/BalanceReader.sol/ILegacyMarket.dbg.json +1 -1
  231. package/build/artifacts/contracts/offchain-helpers/BaseSplitCodeFactoryContract.sol/BaseSplitCodeFactoryContract.dbg.json +1 -1
  232. package/build/artifacts/contracts/offchain-helpers/BaseSplitCodeFactoryContract.sol/BaseSplitCodeFactoryContract.json +2 -2
  233. package/build/artifacts/contracts/offchain-helpers/BytesLib.sol/BytesLib.dbg.json +1 -1
  234. package/build/artifacts/contracts/offchain-helpers/BytesLib.sol/BytesLib.json +2 -2
  235. package/build/artifacts/contracts/offchain-helpers/EmptyUUPS.sol/EmptyUUPS.dbg.json +1 -1
  236. package/build/artifacts/contracts/offchain-helpers/EmptyUUPS.sol/EmptyUUPS.json +2 -2
  237. package/build/artifacts/contracts/offchain-helpers/ExpiredLpPtRedeemer.sol/ExpiredLpPtRedeemer.dbg.json +1 -1
  238. package/build/artifacts/contracts/offchain-helpers/ExpiredLpPtRedeemer.sol/ExpiredLpPtRedeemer.json +2 -2
  239. package/build/artifacts/contracts/offchain-helpers/LegacyNFTHelper.sol/LegacyNFTHelper.dbg.json +1 -1
  240. package/build/artifacts/contracts/offchain-helpers/LegacyNFTHelper.sol/LegacyNFTHelper.json +2 -2
  241. package/build/artifacts/contracts/offchain-helpers/LegacyNFTHelper.sol/StarNFTV1.dbg.json +1 -1
  242. package/build/artifacts/contracts/offchain-helpers/LimitBackendHelperV2.sol/LimitBackendHelperV2.dbg.json +1 -1
  243. package/build/artifacts/contracts/offchain-helpers/LimitBackendHelperV2.sol/LimitBackendHelperV2.json +2 -2
  244. package/build/artifacts/contracts/offchain-helpers/MarketSweed.sol/MarketSweed.dbg.json +1 -1
  245. package/build/artifacts/contracts/offchain-helpers/MarketSweed.sol/MarketSweed.json +2 -2
  246. package/build/artifacts/contracts/offchain-helpers/Multicall2.sol/Multicall2.dbg.json +1 -1
  247. package/build/artifacts/contracts/offchain-helpers/Multicall2.sol/Multicall2.json +2 -2
  248. package/build/artifacts/contracts/offchain-helpers/PendleAPIFeeDepositor.sol/PendleAPIFeeDepositor.dbg.json +1 -1
  249. package/build/artifacts/contracts/offchain-helpers/PendleAPIFeeDepositor.sol/PendleAPIFeeDepositor.json +2 -2
  250. package/build/artifacts/contracts/offchain-helpers/PendleExchangeRateOracle.sol/PendleExchangeRateOracle.dbg.json +1 -1
  251. package/build/artifacts/contracts/offchain-helpers/PendleExchangeRateOracle.sol/PendleExchangeRateOracle.json +2 -2
  252. package/build/artifacts/contracts/offchain-helpers/PendleFeeSetter.sol/PendleFeeSetter.dbg.json +1 -1
  253. package/build/artifacts/contracts/offchain-helpers/PendleFeeSetter.sol/PendleFeeSetter.json +2 -2
  254. package/build/artifacts/contracts/offchain-helpers/PendleGovernanceProxy.sol/PendleGovernanceProxy.dbg.json +1 -1
  255. package/build/artifacts/contracts/offchain-helpers/PendleGovernanceProxy.sol/PendleGovernanceProxy.json +2 -2
  256. package/build/artifacts/contracts/offchain-helpers/PendleLPWrapper.sol/PendleLPWrapper.dbg.json +1 -1
  257. package/build/artifacts/contracts/offchain-helpers/PendleLPWrapper.sol/PendleLPWrapper.json +2 -2
  258. package/build/artifacts/contracts/offchain-helpers/PendleLPWrapperFactory.sol/PendleLPWrapperFactory.dbg.json +1 -1
  259. package/build/artifacts/contracts/offchain-helpers/PendleLPWrapperFactory.sol/PendleLPWrapperFactory.json +2 -2
  260. package/build/artifacts/contracts/offchain-helpers/PendleMerkleDepositor.sol/PendleMerkleDepositor.dbg.json +1 -1
  261. package/build/artifacts/contracts/offchain-helpers/PendleMerkleDepositor.sol/PendleMerkleDepositor.json +2 -2
  262. package/build/artifacts/contracts/offchain-helpers/PendleMulticallOwnerV1.sol/PendleMulticallOwnerV1.dbg.json +1 -1
  263. package/build/artifacts/contracts/offchain-helpers/PendleMulticallOwnerV1.sol/PendleMulticallOwnerV1.json +2 -2
  264. package/build/artifacts/contracts/offchain-helpers/PendleMulticallV1.sol/PendleMulticallV1.dbg.json +1 -1
  265. package/build/artifacts/contracts/offchain-helpers/PendleMulticallV1.sol/PendleMulticallV1.json +2 -2
  266. package/build/artifacts/contracts/offchain-helpers/PendleMulticallV2.sol/PendleMulticallV2.dbg.json +1 -1
  267. package/build/artifacts/contracts/offchain-helpers/PendleMulticallV2.sol/PendleMulticallV2.json +2 -2
  268. package/build/artifacts/contracts/offchain-helpers/PendleOffchainStorage.sol/PendleOffchainStorage.dbg.json +1 -1
  269. package/build/artifacts/contracts/offchain-helpers/PendleOffchainStorage.sol/PendleOffchainStorage.json +2 -2
  270. package/build/artifacts/contracts/offchain-helpers/PendleProxyAdmin.sol/PendleProxyAdmin.dbg.json +1 -1
  271. package/build/artifacts/contracts/offchain-helpers/PendleProxyAdmin.sol/PendleProxyAdmin.json +2 -2
  272. package/build/artifacts/contracts/offchain-helpers/PendleWstETHPriceFeed.sol/PendleWstETHPriceFeed.dbg.json +1 -1
  273. package/build/artifacts/contracts/offchain-helpers/PendleWstETHPriceFeed.sol/PendleWstETHPriceFeed.json +2 -2
  274. package/build/artifacts/contracts/offchain-helpers/SimulateHelper.sol/SimulateHelper.dbg.json +1 -1
  275. package/build/artifacts/contracts/offchain-helpers/SimulateHelper.sol/SimulateHelper.json +2 -2
  276. package/build/artifacts/contracts/offchain-helpers/SupplyCapReader.sol/IPossibleSupplyCapInterface.dbg.json +1 -1
  277. package/build/artifacts/contracts/offchain-helpers/SupplyCapReader.sol/SupplyCapReader.dbg.json +1 -1
  278. package/build/artifacts/contracts/offchain-helpers/SupplyCapReader.sol/SupplyCapReader.json +2 -2
  279. package/build/artifacts/contracts/offchain-helpers/deploy/PendleCommonPoolDeployHelperV2.sol/PendleCommonPoolDeployHelperV2.dbg.json +1 -1
  280. package/build/artifacts/contracts/offchain-helpers/deploy/PendleCommonPoolDeployHelperV2.sol/PendleCommonPoolDeployHelperV2.json +2 -2
  281. package/build/artifacts/contracts/offchain-helpers/deploy/PendleCommonSYFactory.sol/PendleCommonSYFactory.dbg.json +1 -1
  282. package/build/artifacts/contracts/offchain-helpers/deploy/PendleCommonSYFactory.sol/PendleCommonSYFactory.json +2 -2
  283. package/build/artifacts/contracts/offchain-helpers/deploy/PendlePoolDeployHelper.sol/PendlePoolDeployHelper.dbg.json +1 -1
  284. package/build/artifacts/contracts/offchain-helpers/deploy/PendlePoolDeployHelper.sol/PendlePoolDeployHelper.json +2 -2
  285. package/build/artifacts/contracts/offchain-helpers/deploy/PendlePoolDeployHelperV2.sol/PendlePoolDeployHelperV2.dbg.json +1 -1
  286. package/build/artifacts/contracts/offchain-helpers/deploy/PendlePoolDeployHelperV2.sol/PendlePoolDeployHelperV2.json +2 -2
  287. package/build/artifacts/contracts/offchain-helpers/deploy/lib/MarketDeployLib.sol/MarketDeployLib.dbg.json +1 -1
  288. package/build/artifacts/contracts/offchain-helpers/deploy/lib/MarketDeployLib.sol/MarketDeployLib.json +2 -2
  289. package/build/artifacts/contracts/offchain-helpers/errors/SDKErrorsDirectory.sol/SDKErrorsDirectory.dbg.json +1 -1
  290. package/build/artifacts/contracts/offchain-helpers/errors/SDKErrorsDirectory.sol/SDKErrorsDirectory.json +2 -2
  291. package/build/artifacts/contracts/offchain-helpers/router-static/PendleRouterStatic.sol/PendleRouterStatic.dbg.json +1 -1
  292. package/build/artifacts/contracts/offchain-helpers/router-static/PendleRouterStatic.sol/PendleRouterStatic.json +2 -2
  293. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionInfoStatic.sol/ActionInfoStatic.dbg.json +1 -1
  294. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionInfoStatic.sol/ActionInfoStatic.json +2 -2
  295. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionMarketAuxStatic.sol/ActionMarketAuxStatic.dbg.json +1 -1
  296. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionMarketAuxStatic.sol/ActionMarketAuxStatic.json +2 -2
  297. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionMarketCoreStatic.sol/ActionMarketCoreStatic.dbg.json +1 -1
  298. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionMarketCoreStatic.sol/ActionMarketCoreStatic.json +2 -2
  299. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionMintRedeemStatic.sol/ActionMintRedeemStatic.dbg.json +1 -1
  300. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionMintRedeemStatic.sol/ActionMintRedeemStatic.json +2 -2
  301. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionStorageStatic.sol/ActionStorageStatic.dbg.json +1 -1
  302. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionStorageStatic.sol/ActionStorageStatic.json +2 -2
  303. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionVePendleStatic.sol/ActionVePendleStatic.dbg.json +1 -1
  304. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionVePendleStatic.sol/ActionVePendleStatic.json +2 -2
  305. package/build/artifacts/contracts/offchain-helpers/router-static/base/MarketApproxLibV1.sol/MarketApproxPtInLibV1.dbg.json +1 -1
  306. package/build/artifacts/contracts/offchain-helpers/router-static/base/MarketApproxLibV1.sol/MarketApproxPtInLibV1.json +2 -2
  307. package/build/artifacts/contracts/offchain-helpers/router-static/base/MarketApproxLibV1.sol/MarketApproxPtOutLibV1.dbg.json +1 -1
  308. package/build/artifacts/contracts/offchain-helpers/router-static/base/MarketApproxLibV1.sol/MarketApproxPtOutLibV1.json +2 -2
  309. package/build/artifacts/contracts/offchain-helpers/router-static/base/StorageLayout.sol/StorageLayout.dbg.json +1 -1
  310. package/build/artifacts/contracts/oracles/CrossChainOracle/base/PendleCrossChainOracleBaseApp_Init.sol/PendleCrossChainOracleBaseApp_Init.dbg.json +1 -1
  311. package/build/artifacts/contracts/oracles/CrossChainOracle/exchangeRate/PendleExchangeRateOracleApp.sol/PendleExchangeRateOracleApp.dbg.json +1 -1
  312. package/build/artifacts/contracts/oracles/CrossChainOracle/exchangeRate/PendleExchangeRateOracleApp.sol/PendleExchangeRateOracleApp.json +2 -2
  313. package/build/artifacts/contracts/oracles/CrossChainOracle/exchangeRate/PendleExchangeRateOracleV2.sol/PendleExchangeRateOracleV2.dbg.json +1 -1
  314. package/build/artifacts/contracts/oracles/CrossChainOracle/exchangeRate/PendleExchangeRateOracleV2.sol/PendleExchangeRateOracleV2.json +2 -2
  315. package/build/artifacts/contracts/oracles/CrossChainOracle/libraries/ExchangeRateMsgCodec.sol/ExchangeRateMsgCodec.dbg.json +1 -1
  316. package/build/artifacts/contracts/oracles/CrossChainOracle/libraries/ExchangeRateMsgCodec.sol/ExchangeRateMsgCodec.json +2 -2
  317. package/build/artifacts/contracts/oracles/PtYtLpOracle/PendleLpOracleLib.sol/PendleLpOracleLib.dbg.json +1 -1
  318. package/build/artifacts/contracts/oracles/PtYtLpOracle/PendleLpOracleLib.sol/PendleLpOracleLib.json +2 -2
  319. package/build/artifacts/contracts/oracles/PtYtLpOracle/PendlePYLpOracle.sol/PendlePYLpOracle.dbg.json +1 -1
  320. package/build/artifacts/contracts/oracles/PtYtLpOracle/PendlePYLpOracle.sol/PendlePYLpOracle.json +2 -2
  321. package/build/artifacts/contracts/oracles/PtYtLpOracle/PendlePYOracleLib.sol/PendlePYOracleLib.dbg.json +1 -1
  322. package/build/artifacts/contracts/oracles/PtYtLpOracle/PendlePYOracleLib.sol/PendlePYOracleLib.json +2 -2
  323. package/build/artifacts/contracts/oracles/PtYtLpOracle/chainlink/PendleChainlinkOracle.sol/PendleChainlinkOracle.dbg.json +1 -1
  324. package/build/artifacts/contracts/oracles/PtYtLpOracle/chainlink/PendleChainlinkOracle.sol/PendleChainlinkOracle.json +2 -2
  325. package/build/artifacts/contracts/oracles/PtYtLpOracle/chainlink/PendleChainlinkOracleFactory.sol/PendleChainlinkOracleFactory.dbg.json +1 -1
  326. package/build/artifacts/contracts/oracles/PtYtLpOracle/chainlink/PendleChainlinkOracleFactory.sol/PendleChainlinkOracleFactory.json +2 -2
  327. package/build/artifacts/contracts/oracles/PtYtLpOracle/chainlink/PendleChainlinkOracleWithQuote.sol/PendleChainlinkOracleWithQuote.dbg.json +1 -1
  328. package/build/artifacts/contracts/oracles/PtYtLpOracle/chainlink/PendleChainlinkOracleWithQuote.sol/PendleChainlinkOracleWithQuote.json +2 -2
  329. package/build/artifacts/contracts/oracles/PtYtLpOracle/samples/BoringLpSeller.sol/BoringLpSeller.dbg.json +1 -1
  330. package/build/artifacts/contracts/oracles/PtYtLpOracle/samples/BoringPYUsdChainlinkAssetOracle.sol/BoringPYUsdChainlinkAssetOracle.dbg.json +1 -1
  331. package/build/artifacts/contracts/oracles/PtYtLpOracle/samples/BoringPYUsdChainlinkAssetOracle.sol/BoringPYUsdChainlinkAssetOracle.json +2 -2
  332. package/build/artifacts/contracts/oracles/PtYtLpOracle/samples/BoringPYUsdChainlinkSYOracle.sol/BoringPYUsdChainlinkSYOracle.dbg.json +1 -1
  333. package/build/artifacts/contracts/oracles/PtYtLpOracle/samples/BoringPYUsdChainlinkSYOracle.sol/BoringPYUsdChainlinkSYOracle.json +2 -2
  334. package/build/artifacts/contracts/oracles/PtYtLpOracle/samples/BoringPtSeller.sol/BoringPtSeller.dbg.json +1 -1
  335. package/build/artifacts/contracts/oracles/StatelessWrapper/PendleLinearDiscountOracleWrapper.sol/PendleLinearDiscountOracleWrapper.dbg.json +1 -1
  336. package/build/artifacts/contracts/oracles/StatelessWrapper/PendleLinearDiscountOracleWrapper.sol/PendleLinearDiscountOracleWrapper.json +2 -2
  337. package/build/artifacts/contracts/oracles/StatelessWrapper/PendleSparkLinearDiscountOracleFactoryWrapper.sol/PendleSparkLinearDiscountOracleFactoryWrapper.dbg.json +1 -1
  338. package/build/artifacts/contracts/oracles/StatelessWrapper/PendleSparkLinearDiscountOracleFactoryWrapper.sol/PendleSparkLinearDiscountOracleFactoryWrapper.json +2 -2
  339. package/build/artifacts/contracts/oracles/internal/PendleBoringOneracle.sol/PendleBoringOneracle.dbg.json +1 -1
  340. package/build/artifacts/contracts/oracles/internal/PendleBoringOneracle.sol/PendleBoringOneracle.json +2 -2
  341. package/build/artifacts/contracts/oracles/internal/PendleBoringSolvBTCOneracle.sol/PendleBoringSolvBTCOneracle.dbg.json +1 -1
  342. package/build/artifacts/contracts/oracles/internal/PendleBoringSolvBTCOneracle.sol/PendleBoringSolvBTCOneracle.json +2 -2
  343. package/build/artifacts/contracts/oracles/internal/PendleLpLinearDiscountOracle.sol/LPExpiry.dbg.json +1 -1
  344. package/build/artifacts/contracts/oracles/internal/PendleLpLinearDiscountOracle.sol/PendleLpLinearDiscountOracle.dbg.json +1 -1
  345. package/build/artifacts/contracts/oracles/internal/PendleLpLinearDiscountOracle.sol/PendleLpLinearDiscountOracle.json +2 -2
  346. package/build/artifacts/contracts/oracles/internal/PendleLpLinearDiscountOracleFactory.sol/PendleLpLinearDiscountOracleFactory.dbg.json +1 -1
  347. package/build/artifacts/contracts/oracles/internal/PendleLpLinearDiscountOracleFactory.sol/PendleLpLinearDiscountOracleFactory.json +2 -2
  348. package/build/artifacts/contracts/oracles/internal/PendleRedStoneRateOracleAdapter.sol/PendleRedStoneRateOracleAdapter.dbg.json +1 -1
  349. package/build/artifacts/contracts/oracles/internal/PendleRedStoneRateOracleAdapter.sol/PendleRedStoneRateOracleAdapter.json +2 -2
  350. package/build/artifacts/contracts/oracles/internal/PendleSparkLinearDiscountOracle.sol/PTExpiry.dbg.json +1 -1
  351. package/build/artifacts/contracts/oracles/internal/PendleSparkLinearDiscountOracle.sol/PendleSparkLinearDiscountOracle.dbg.json +1 -1
  352. package/build/artifacts/contracts/oracles/internal/PendleSparkLinearDiscountOracle.sol/PendleSparkLinearDiscountOracle.json +2 -2
  353. package/build/artifacts/contracts/oracles/internal/PendleSparkLinearDiscountOracleFactory.sol/PendleSparkLinearDiscountOracleFactory.dbg.json +1 -1
  354. package/build/artifacts/contracts/oracles/internal/PendleSparkLinearDiscountOracleFactory.sol/PendleSparkLinearDiscountOracleFactory.json +2 -2
  355. package/build/artifacts/contracts/pt-looping/BridgeDataVerifier.sol/BridgeDataVerifier.dbg.json +4 -0
  356. package/build/artifacts/contracts/pt-looping/BridgeDataVerifier.sol/BridgeDataVerifier.json +405 -0
  357. package/build/artifacts/contracts/pt-looping/PTLooperBase.sol/PTLooperBase.dbg.json +4 -0
  358. package/build/artifacts/contracts/pt-looping/PTLooperBase.sol/PTLooperBase.json +2626 -0
  359. package/build/artifacts/contracts/pt-looping/PTLooperEIP712TypesEncodeDataLib.sol/PTLooperEIP712TypesEncodeDataLib.dbg.json +4 -0
  360. package/build/artifacts/contracts/pt-looping/PTLooperEIP712TypesEncodeDataLib.sol/PTLooperEIP712TypesEncodeDataLib.json +10 -0
  361. package/build/artifacts/contracts/pt-looping/PendlePTLooper.sol/PendlePTLooper.dbg.json +4 -0
  362. package/build/artifacts/contracts/pt-looping/PendlePTLooper.sol/PendlePTLooper.json +2660 -0
  363. package/build/artifacts/contracts/pt-looping/PendlePTLooperView.sol/PendlePTLooperView.dbg.json +4 -0
  364. package/build/artifacts/contracts/pt-looping/PendlePTLooperView.sol/PendlePTLooperView.json +334 -0
  365. package/build/artifacts/contracts/pt-looping/PostPtLoopStateChecker.sol/PostPtLoopStateChecker.dbg.json +4 -0
  366. package/build/artifacts/contracts/pt-looping/PostPtLoopStateChecker.sol/PostPtLoopStateChecker.json +79 -0
  367. package/build/artifacts/contracts/pt-looping/StaticStableQuoter.sol/StaticStableQuoter.dbg.json +4 -0
  368. package/build/artifacts/contracts/pt-looping/StaticStableQuoter.sol/StaticStableQuoter.json +233 -0
  369. package/build/artifacts/contracts/pt-looping/loop-position-box/LoopPositionBox.sol/LoopPositionBox.dbg.json +4 -0
  370. package/build/artifacts/contracts/pt-looping/loop-position-box/LoopPositionBox.sol/LoopPositionBox.json +198 -0
  371. package/build/artifacts/contracts/pt-looping/loop-position-box/LoopPositionBoxFactory.sol/LoopPositionBoxFactory.dbg.json +4 -0
  372. package/build/artifacts/contracts/pt-looping/loop-position-box/LoopPositionBoxFactory.sol/LoopPositionBoxFactory.json +555 -0
  373. package/build/artifacts/contracts/pt-looping/money-market/BaseMoneyMarket.sol/BaseMoneyMarket.dbg.json +4 -0
  374. package/build/artifacts/contracts/pt-looping/money-market/BaseMoneyMarket.sol/BaseMoneyMarket.json +604 -0
  375. package/build/artifacts/contracts/pt-looping/money-market/BaseMoneyMarketView.sol/BaseMoneyMarketView.dbg.json +4 -0
  376. package/build/artifacts/contracts/pt-looping/money-market/BaseMoneyMarketView.sol/BaseMoneyMarketView.json +264 -0
  377. package/build/artifacts/contracts/pt-looping/money-market/implementations/aave/AaveMMPayloadLib.sol/AaveMMPayloadLib.dbg.json +4 -0
  378. package/build/artifacts/contracts/pt-looping/money-market/implementations/aave/AaveMMPayloadLib.sol/AaveMMPayloadLib.json +10 -0
  379. package/build/artifacts/contracts/pt-looping/money-market/implementations/aave/AaveMoneyMarket.sol/AaveMoneyMarket.dbg.json +4 -0
  380. package/build/artifacts/contracts/pt-looping/money-market/implementations/aave/AaveMoneyMarket.sol/AaveMoneyMarket.json +659 -0
  381. package/build/artifacts/contracts/pt-looping/money-market/implementations/aave/AaveMoneyMarketView.sol/AaveMoneyMarketView.dbg.json +4 -0
  382. package/build/artifacts/contracts/pt-looping/money-market/implementations/aave/AaveMoneyMarketView.sol/AaveMoneyMarketView.json +355 -0
  383. package/build/artifacts/contracts/pt-looping/money-market/implementations/aave/dependencies/AaveDataTypes.sol/AaveDataTypes.dbg.json +4 -0
  384. package/build/artifacts/contracts/pt-looping/money-market/implementations/aave/dependencies/AaveDataTypes.sol/AaveDataTypes.json +10 -0
  385. package/build/artifacts/contracts/pt-looping/money-market/implementations/aave/dependencies/IAToken.sol/IAToken.dbg.json +4 -0
  386. package/build/artifacts/contracts/pt-looping/money-market/implementations/aave/dependencies/IAToken.sol/IAToken.json +246 -0
  387. package/build/artifacts/contracts/pt-looping/money-market/implementations/aave/dependencies/IAaveOracle.sol/IAaveOracle.dbg.json +4 -0
  388. package/build/artifacts/contracts/pt-looping/money-market/implementations/aave/dependencies/IAaveOracle.sol/IAaveOracle.json +120 -0
  389. package/build/artifacts/contracts/pt-looping/money-market/implementations/aave/dependencies/IAaveRewardsController.sol/IAaveRewardsController.dbg.json +4 -0
  390. package/build/artifacts/contracts/pt-looping/money-market/implementations/aave/dependencies/IAaveRewardsController.sol/IAaveRewardsController.json +724 -0
  391. package/build/artifacts/contracts/pt-looping/money-market/implementations/aave/dependencies/IPool.sol/IPool.dbg.json +4 -0
  392. package/build/artifacts/contracts/pt-looping/money-market/implementations/aave/dependencies/IPool.sol/IPool.json +1600 -0
  393. package/build/artifacts/contracts/pt-looping/money-market/implementations/aave/dependencies/IPoolAddressesProvider.sol/IPoolAddressesProvider.dbg.json +4 -0
  394. package/build/artifacts/contracts/pt-looping/money-market/implementations/aave/dependencies/IPoolAddressesProvider.sol/IPoolAddressesProvider.json +507 -0
  395. package/build/artifacts/contracts/pt-looping/money-market/implementations/aave/dependencies/IPoolDataProviderV3.sol/IPoolDataProviderV3.dbg.json +4 -0
  396. package/build/artifacts/contracts/pt-looping/money-market/implementations/aave/dependencies/IPoolDataProviderV3.sol/IPoolDataProviderV3.json +577 -0
  397. package/build/artifacts/contracts/pt-looping/money-market/implementations/aave/dependencies/IPriceOracleGetter.sol/IPriceOracleGetter.dbg.json +4 -0
  398. package/build/artifacts/contracts/pt-looping/money-market/implementations/aave/dependencies/IPriceOracleGetter.sol/IPriceOracleGetter.json +56 -0
  399. package/build/artifacts/contracts/pt-looping/money-market/implementations/morpho/MorphoBlueMoneyMarket.sol/MorphoBlueMoneyMarket.dbg.json +4 -0
  400. package/build/artifacts/contracts/pt-looping/money-market/implementations/morpho/MorphoBlueMoneyMarket.sol/MorphoBlueMoneyMarket.json +633 -0
  401. package/build/artifacts/contracts/pt-looping/money-market/implementations/morpho/MorphoBlueMoneyMarketView.sol/MorphoBlueMoneyMarketView.dbg.json +4 -0
  402. package/build/artifacts/contracts/pt-looping/money-market/implementations/morpho/MorphoBlueMoneyMarketView.sol/MorphoBlueMoneyMarketView.json +298 -0
  403. package/build/artifacts/contracts/pt-looping/money-market/implementations/morpho/dependencies/IMorpho.sol/IIrm.dbg.json +4 -0
  404. package/build/artifacts/contracts/pt-looping/money-market/implementations/morpho/dependencies/IMorpho.sol/IIrm.json +234 -0
  405. package/build/artifacts/contracts/pt-looping/money-market/implementations/morpho/dependencies/IMorpho.sol/IMorpho.dbg.json +4 -0
  406. package/build/artifacts/contracts/pt-looping/money-market/implementations/morpho/dependencies/IMorpho.sol/IMorpho.json +1033 -0
  407. package/build/artifacts/contracts/pt-looping/money-market/implementations/morpho/dependencies/IMorphoOracle.sol/IMorphoOracle.dbg.json +4 -0
  408. package/build/artifacts/contracts/pt-looping/money-market/implementations/morpho/dependencies/IMorphoOracle.sol/IMorphoOracle.json +24 -0
  409. package/build/artifacts/contracts/pt-looping/money-market/implementations/morpho/dependencies/MathLib.sol/MathLib.dbg.json +4 -0
  410. package/build/artifacts/contracts/pt-looping/money-market/implementations/morpho/dependencies/MathLib.sol/MathLib.json +10 -0
  411. package/build/artifacts/contracts/pt-looping/money-market/implementations/morpho/dependencies/SharesMathLib.sol/SharesMathLib.dbg.json +4 -0
  412. package/build/artifacts/contracts/pt-looping/money-market/implementations/morpho/dependencies/SharesMathLib.sol/SharesMathLib.json +10 -0
  413. package/build/artifacts/contracts/pt-looping/vendor/bungee/IBungeeInbox.sol/IBungeeSORInbox.dbg.json +4 -0
  414. package/build/artifacts/contracts/pt-looping/vendor/bungee/IBungeeInbox.sol/IBungeeSORInbox.json +143 -0
  415. package/build/artifacts/contracts/router/ActionAddRemoveLiqV3.sol/ActionAddRemoveLiqV3.dbg.json +1 -1
  416. package/build/artifacts/contracts/router/ActionAddRemoveLiqV3.sol/ActionAddRemoveLiqV3.json +2 -2
  417. package/build/artifacts/contracts/router/ActionCallbackV3.sol/ActionCallbackV3.dbg.json +1 -1
  418. package/build/artifacts/contracts/router/ActionCallbackV3.sol/ActionCallbackV3.json +2 -2
  419. package/build/artifacts/contracts/router/ActionMiscV3.sol/ActionMiscV3.dbg.json +1 -1
  420. package/build/artifacts/contracts/router/ActionMiscV3.sol/ActionMiscV3.json +2 -2
  421. package/build/artifacts/contracts/router/ActionSimple.sol/ActionSimple.dbg.json +1 -1
  422. package/build/artifacts/contracts/router/ActionSimple.sol/ActionSimple.json +2 -2
  423. package/build/artifacts/contracts/router/ActionStorageV4.sol/ActionStorageV4.dbg.json +1 -1
  424. package/build/artifacts/contracts/router/ActionStorageV4.sol/ActionStorageV4.json +2 -2
  425. package/build/artifacts/contracts/router/ActionSwapPTV3.sol/ActionSwapPTV3.dbg.json +1 -1
  426. package/build/artifacts/contracts/router/ActionSwapPTV3.sol/ActionSwapPTV3.json +2 -2
  427. package/build/artifacts/contracts/router/ActionSwapYTV3.sol/ActionSwapYTV3.dbg.json +1 -1
  428. package/build/artifacts/contracts/router/ActionSwapYTV3.sol/ActionSwapYTV3.json +2 -2
  429. package/build/artifacts/contracts/router/PendleRouterV4.sol/PendleRouterV4.dbg.json +1 -1
  430. package/build/artifacts/contracts/router/PendleRouterV4.sol/PendleRouterV4.json +2 -2
  431. package/build/artifacts/contracts/router/Reflector.sol/Reflector.dbg.json +1 -1
  432. package/build/artifacts/contracts/router/Reflector.sol/Reflector.json +2 -2
  433. package/build/artifacts/contracts/router/RouterStorage.sol/RouterStorage.dbg.json +1 -1
  434. package/build/artifacts/contracts/router/base/ActionBase.sol/ActionBase.dbg.json +1 -1
  435. package/build/artifacts/contracts/router/base/ActionDelegateBase.sol/ActionDelegateBase.dbg.json +1 -1
  436. package/build/artifacts/contracts/router/base/ActionDelegateBase.sol/ActionDelegateBase.json +2 -2
  437. package/build/artifacts/contracts/router/base/CallbackHelper.sol/CallbackHelper.dbg.json +1 -1
  438. package/build/artifacts/contracts/router/math/ApproxStateLib.sol/ApproxStateLib.dbg.json +1 -1
  439. package/build/artifacts/contracts/router/math/ApproxStateLib.sol/ApproxStateLib.json +2 -2
  440. package/build/artifacts/contracts/router/math/MarketApproxEstimateLib.sol/MarketApproxEstimateLib.dbg.json +1 -1
  441. package/build/artifacts/contracts/router/math/MarketApproxEstimateLib.sol/MarketApproxEstimateLib.json +2 -2
  442. package/build/artifacts/contracts/router/math/MarketApproxLibOnchain.sol/MarketApproxPtInLibOnchain.dbg.json +1 -1
  443. package/build/artifacts/contracts/router/math/MarketApproxLibOnchain.sol/MarketApproxPtInLibOnchain.json +2 -2
  444. package/build/artifacts/contracts/router/math/MarketApproxLibOnchain.sol/MarketApproxPtOutLibOnchain.dbg.json +1 -1
  445. package/build/artifacts/contracts/router/math/MarketApproxLibOnchain.sol/MarketApproxPtOutLibOnchain.json +2 -2
  446. package/build/artifacts/contracts/router/math/MarketApproxLibV2.sol/MarketApproxPtInLibV2.dbg.json +1 -1
  447. package/build/artifacts/contracts/router/math/MarketApproxLibV2.sol/MarketApproxPtInLibV2.json +2 -2
  448. package/build/artifacts/contracts/router/math/MarketApproxLibV2.sol/MarketApproxPtOutLibV2.dbg.json +1 -1
  449. package/build/artifacts/contracts/router/math/MarketApproxLibV2.sol/MarketApproxPtOutLibV2.json +2 -2
  450. package/build/artifacts/contracts/router/swap-aggregator/IPSwapAggregator.sol/IPSwapAggregator.dbg.json +1 -1
  451. package/build/artifacts/contracts/router/swap-aggregator/OKXScaleHelper.sol/IOKXDexRouter.dbg.json +1 -1
  452. package/build/artifacts/contracts/router/swap-aggregator/OKXScaleHelper.sol/OKXScaleHelper.dbg.json +1 -1
  453. package/build/artifacts/contracts/router/swap-aggregator/ParaswapScaleHelper.sol/IAugustusV6.dbg.json +1 -1
  454. package/build/artifacts/contracts/router/swap-aggregator/ParaswapScaleHelper.sol/ParaswapScaleHelper.dbg.json +1 -1
  455. package/build/artifacts/contracts/router/swap-aggregator/ParaswapScaleHelper.sol/ParaswapScaleHelper.json +2 -2
  456. package/build/artifacts/contracts/router/swap-aggregator/PendleSwap.sol/IKyberScalingHelper.dbg.json +1 -1
  457. package/build/artifacts/contracts/router/swap-aggregator/PendleSwap.sol/IOdosRouterV2.dbg.json +1 -1
  458. package/build/artifacts/contracts/router/swap-aggregator/PendleSwap.sol/PendleSwap.dbg.json +1 -1
  459. package/build/artifacts/contracts/router/swap-aggregator/PendleSwap.sol/PendleSwap.json +2 -2
  460. package/contracts/cross-chain/{PendleSwapHelper.sol → OFTPTSwapper.sol} +4 -3
  461. package/contracts/interfaces/IMoneyMarket.sol +60 -0
  462. package/contracts/interfaces/IMoneyMarketView.sol +42 -0
  463. package/contracts/interfaces/IPBridgeDataVerifier.sol +23 -0
  464. package/contracts/interfaces/IPLoopPositionBox.sol +38 -0
  465. package/contracts/interfaces/IPLoopPositionBoxFactory.sol +37 -0
  466. package/contracts/interfaces/{IPSwapHelper.sol → IPOFTPTSwapper.sol} +1 -1
  467. package/contracts/interfaces/IPPTLooper.sol +301 -0
  468. package/contracts/interfaces/IPPTLooperView.sol +35 -0
  469. package/contracts/interfaces/IPPostPtLoopStateChecker.sol +8 -0
  470. package/contracts/interfaces/IPStaticQuoter.sol +13 -0
  471. package/contracts/pt-looping/BridgeDataVerifier.sol +158 -0
  472. package/contracts/pt-looping/PTLooperBase.sol +236 -0
  473. package/contracts/pt-looping/PTLooperEIP712TypesEncodeDataLib.sol +210 -0
  474. package/contracts/pt-looping/PendlePTLooper.sol +318 -0
  475. package/contracts/pt-looping/PendlePTLooperView.sol +42 -0
  476. package/contracts/pt-looping/PostPtLoopStateChecker.sol +79 -0
  477. package/contracts/pt-looping/StaticStableQuoter.sol +46 -0
  478. package/contracts/pt-looping/loop-position-box/LoopPositionBox.sol +85 -0
  479. package/contracts/pt-looping/loop-position-box/LoopPositionBoxFactory.sol +123 -0
  480. package/contracts/pt-looping/money-market/BaseMoneyMarket.sol +129 -0
  481. package/contracts/pt-looping/money-market/BaseMoneyMarketView.sol +123 -0
  482. package/contracts/pt-looping/money-market/implementations/aave/AaveMMPayloadLib.sol +16 -0
  483. package/contracts/pt-looping/money-market/implementations/aave/AaveMoneyMarket.sol +123 -0
  484. package/contracts/pt-looping/money-market/implementations/aave/AaveMoneyMarketView.sol +200 -0
  485. package/contracts/pt-looping/money-market/implementations/aave/dependencies/AaveDataTypes.sol +259 -0
  486. package/contracts/pt-looping/money-market/implementations/aave/dependencies/IAToken.sol +8 -0
  487. package/contracts/pt-looping/money-market/implementations/aave/dependencies/IAaveOracle.sol +33 -0
  488. package/contracts/pt-looping/money-market/implementations/aave/dependencies/IAaveRewardsController.sol +68 -0
  489. package/contracts/pt-looping/money-market/implementations/aave/dependencies/IPool.sol +664 -0
  490. package/contracts/pt-looping/money-market/implementations/aave/dependencies/IPoolAddressesProvider.sol +227 -0
  491. package/contracts/pt-looping/money-market/implementations/aave/dependencies/IPoolDataProviderV3.sol +228 -0
  492. package/contracts/pt-looping/money-market/implementations/aave/dependencies/IPriceOracleGetter.sol +32 -0
  493. package/contracts/pt-looping/money-market/implementations/morpho/MorphoBlueMoneyMarket.sol +123 -0
  494. package/contracts/pt-looping/money-market/implementations/morpho/MorphoBlueMoneyMarketView.sol +66 -0
  495. package/contracts/pt-looping/money-market/implementations/morpho/dependencies/IMorpho.sol +300 -0
  496. package/contracts/pt-looping/money-market/implementations/morpho/dependencies/IMorphoOracle.sol +14 -0
  497. package/contracts/pt-looping/money-market/implementations/morpho/dependencies/MathLib.sol +35 -0
  498. package/contracts/pt-looping/money-market/implementations/morpho/dependencies/SharesMathLib.sol +42 -0
  499. package/contracts/pt-looping/vendor/bungee/IBungeeInbox.sol +36 -0
  500. package/contracts/router/swap-aggregator/OKXScaleHelper.sol +4 -1
  501. package/deployments/1-core.json +4 -1
  502. package/deployments/130-core.json +2 -1
  503. package/deployments/143-core.json +2 -1
  504. package/deployments/42161-core.json +2 -1
  505. package/deployments/4217-core.json +5 -1
  506. package/deployments/43114-core.json +2 -1
  507. package/deployments/56-core.json +2 -1
  508. package/deployments/57073-core.json +2 -1
  509. package/deployments/747474-core.json +2 -1
  510. package/deployments/8453-core.json +2 -1
  511. package/deployments/9745-core.json +2 -1
  512. package/deployments/999-core.json +2 -1
  513. package/package.json +2 -1
  514. package/typechain-types/AaveMoneyMarket.ts +147 -290
  515. package/typechain-types/AaveMoneyMarketView.ts +0 -13
  516. package/typechain-types/BaseMoneyMarket.ts +147 -271
  517. package/typechain-types/BridgeDataVerifier.ts +564 -0
  518. package/typechain-types/IBungeeSORInbox.ts +192 -0
  519. package/typechain-types/IMoneyMarket.ts +124 -282
  520. package/typechain-types/IMoneyMarketEvents.ts +31 -56
  521. package/typechain-types/IPBridgeDataVerifier.ts +148 -0
  522. package/typechain-types/IPLoopPositionBox.ts +0 -13
  523. package/typechain-types/IPLoopPositionBoxFactory.ts +5 -39
  524. package/typechain-types/IPOFTPTSwapper.ts +161 -0
  525. package/typechain-types/IPPTLooper.ts +658 -695
  526. package/typechain-types/IPPTLooperView.ts +56 -251
  527. package/typechain-types/IPPostPtLoopStateChecker.ts +106 -0
  528. package/typechain-types/IPStaticQuoter.ts +132 -0
  529. package/typechain-types/IPool.ts +8 -8
  530. package/typechain-types/IPoolDataProviderV3.ts +76 -8
  531. package/typechain-types/LoopPositionBox.ts +25 -38
  532. package/typechain-types/LoopPositionBoxFactory.ts +17 -51
  533. package/typechain-types/MorphoBlueMoneyMarket.ts +141 -286
  534. package/typechain-types/MorphoBlueMoneyMarketView.ts +0 -21
  535. package/typechain-types/OFTPTSwapper.ts +161 -0
  536. package/typechain-types/PTLooperBase.ts +671 -708
  537. package/typechain-types/PendlePTLooper.ts +671 -708
  538. package/typechain-types/PendlePTLooperView.ts +71 -266
  539. package/typechain-types/PostPtLoopStateChecker.ts +151 -0
  540. package/typechain-types/StaticStableQuoter.ts +395 -0
  541. package/typechain-types/factories/AaveMoneyMarketView__factory.ts +1 -23
  542. package/typechain-types/factories/AaveMoneyMarket__factory.ts +265 -267
  543. package/typechain-types/factories/ActionAddRemoveLiqV3__factory.ts +1 -1
  544. package/typechain-types/factories/ActionCallbackV3__factory.ts +1 -1
  545. package/typechain-types/factories/ActionInfoStatic__factory.ts +1 -1
  546. package/typechain-types/factories/ActionMarketAuxStatic__factory.ts +1 -1
  547. package/typechain-types/factories/ActionMarketCoreStatic__factory.ts +1 -1
  548. package/typechain-types/factories/ActionMintRedeemStatic__factory.ts +1 -1
  549. package/typechain-types/factories/ActionMiscV3__factory.ts +1 -1
  550. package/typechain-types/factories/ActionSimple__factory.ts +1 -1
  551. package/typechain-types/factories/ActionStorageStatic__factory.ts +1 -1
  552. package/typechain-types/factories/ActionStorageV4__factory.ts +1 -1
  553. package/typechain-types/factories/ActionSwapPTV3__factory.ts +1 -1
  554. package/typechain-types/factories/ActionSwapYTV3__factory.ts +1 -1
  555. package/typechain-types/factories/ActionVePendleStatic__factory.ts +1 -1
  556. package/typechain-types/factories/AddressCast__factory.ts +1 -1
  557. package/typechain-types/factories/AddressProvider__factory.ts +1 -1
  558. package/typechain-types/factories/BalanceReader__factory.ts +1 -1
  559. package/typechain-types/factories/BaseMoneyMarket__factory.ts +264 -244
  560. package/typechain-types/factories/BaseSplitCodeFactoryContract__factory.ts +1 -1
  561. package/typechain-types/factories/BoringOwnableUpgradeableData__factory.ts +1 -1
  562. package/typechain-types/factories/BoringPYUsdChainlinkAssetOracle__factory.ts +1 -1
  563. package/typechain-types/factories/BoringPYUsdChainlinkSYOracle__factory.ts +1 -1
  564. package/typechain-types/factories/BridgeDataVerifier__factory.ts +463 -0
  565. package/typechain-types/factories/BridgeFunder__factory.ts +1 -1
  566. package/typechain-types/factories/DVNOptions__factory.ts +1 -1
  567. package/typechain-types/factories/DepositBoxFactory__factory.ts +1 -1
  568. package/typechain-types/factories/DepositBox__factory.ts +1 -1
  569. package/typechain-types/factories/ERC1967Proxy__factory.ts +1 -1
  570. package/typechain-types/factories/ERC20Upgradeable__factory.ts +1 -1
  571. package/typechain-types/factories/ERC20__factory.ts +1 -1
  572. package/typechain-types/factories/EmptyUUPS__factory.ts +1 -1
  573. package/typechain-types/factories/Errors__factory.ts +1 -1
  574. package/typechain-types/factories/ExchangeRateMsgCodec__factory.ts +1 -1
  575. package/typechain-types/factories/ExecutorOptions__factory.ts +1 -1
  576. package/typechain-types/factories/ExpiredLpPtRedeemer__factory.ts +1 -1
  577. package/typechain-types/factories/FixedPricePTAMMV2__factory.ts +1 -1
  578. package/typechain-types/factories/IBungeeSORInbox__factory.ts +158 -0
  579. package/typechain-types/factories/IMoneyMarketEvents__factory.ts +11 -61
  580. package/typechain-types/factories/IMoneyMarket__factory.ts +250 -256
  581. package/typechain-types/factories/IPBridgeDataVerifier__factory.ts +100 -0
  582. package/typechain-types/factories/IPLoopPositionBoxFactory__factory.ts +8 -32
  583. package/typechain-types/factories/IPLoopPositionBox__factory.ts +0 -13
  584. package/typechain-types/factories/IPOFTPTSwapper__factory.ts +114 -0
  585. package/typechain-types/factories/IPPTLooperView__factory.ts +94 -201
  586. package/typechain-types/factories/IPPTLooper__factory.ts +1030 -1043
  587. package/typechain-types/factories/IPPostPtLoopStateChecker__factory.ts +48 -0
  588. package/typechain-types/factories/IPStaticQuoter__factory.ts +70 -0
  589. package/typechain-types/factories/IPoolDataProviderV3__factory.ts +39 -1
  590. package/typechain-types/factories/IPool__factory.ts +2 -2
  591. package/typechain-types/factories/LegacyNFTHelper__factory.ts +1 -1
  592. package/typechain-types/factories/LimitBackendHelperV2__factory.ts +1 -1
  593. package/typechain-types/factories/LoopPositionBoxFactory__factory.ts +26 -50
  594. package/typechain-types/factories/LoopPositionBox__factory.ts +11 -35
  595. package/typechain-types/factories/MarketSweed__factory.ts +1 -1
  596. package/typechain-types/factories/MorphoBlueMoneyMarketView__factory.ts +1 -14
  597. package/typechain-types/factories/MorphoBlueMoneyMarket__factory.ts +257 -250
  598. package/typechain-types/factories/Multicall2__factory.ts +1 -1
  599. package/typechain-types/factories/NonceManager__factory.ts +1 -1
  600. package/typechain-types/factories/OFTAdapterAltImpl__factory.ts +1 -1
  601. package/typechain-types/factories/OFTAdapterImpl__factory.ts +1 -1
  602. package/typechain-types/factories/OFTAdapter__factory.ts +0 -11
  603. package/typechain-types/factories/OFTPTSwapper__factory.ts +149 -0
  604. package/typechain-types/factories/OptionsBuilder__factory.ts +1 -1
  605. package/typechain-types/factories/OracleLib__factory.ts +1 -1
  606. package/typechain-types/factories/PTLooperBase__factory.ts +1122 -1135
  607. package/typechain-types/factories/PendleAPIFeeDepositor__factory.ts +1 -1
  608. package/typechain-types/factories/PendleBoringOneracle__factory.ts +1 -1
  609. package/typechain-types/factories/PendleBoringSolvBTCOneracle__factory.ts +1 -1
  610. package/typechain-types/factories/PendleBridgePTFactory__factory.ts +1 -1
  611. package/typechain-types/factories/PendleBridgedPrincipalTokenAlt__factory.ts +1 -1
  612. package/typechain-types/factories/PendleBridgedPrincipalToken__factory.ts +1 -1
  613. package/typechain-types/factories/PendleChainlinkOracleFactory__factory.ts +1 -1
  614. package/typechain-types/factories/PendleChainlinkOracleWithQuote__factory.ts +1 -1
  615. package/typechain-types/factories/PendleChainlinkOracle__factory.ts +1 -1
  616. package/typechain-types/factories/PendleCommonPoolDeployHelperV2__factory.ts +1 -1
  617. package/typechain-types/factories/PendleCommonSYFactory__factory.ts +1 -1
  618. package/typechain-types/factories/PendleCrossChainSwapHub__factory.ts +1 -1
  619. package/typechain-types/factories/PendleERC20__factory.ts +1 -1
  620. package/typechain-types/factories/PendleExchangeRateOracleApp__factory.ts +1 -1
  621. package/typechain-types/factories/PendleExchangeRateOracleV2__factory.ts +1 -1
  622. package/typechain-types/factories/PendleExchangeRateOracle__factory.ts +1 -1
  623. package/typechain-types/factories/PendleFeeDistributorV2__factory.ts +1 -1
  624. package/typechain-types/factories/PendleFeeSetter__factory.ts +1 -1
  625. package/typechain-types/factories/PendleGaugeControllerUpg__factory.ts +1 -1
  626. package/typechain-types/factories/PendleGovernanceProxy__factory.ts +1 -1
  627. package/typechain-types/factories/PendleLPWrapperFactory__factory.ts +1 -1
  628. package/typechain-types/factories/PendleLPWrapper__factory.ts +1 -1
  629. package/typechain-types/factories/PendleLimitRouter__factory.ts +1 -1
  630. package/typechain-types/factories/PendleLinearDiscountOracleWrapper__factory.ts +1 -1
  631. package/typechain-types/factories/PendleLpLinearDiscountOracleFactory__factory.ts +1 -1
  632. package/typechain-types/factories/PendleLpLinearDiscountOracle__factory.ts +1 -1
  633. package/typechain-types/factories/PendleMarketFactoryV7Upg__factory.ts +1 -1
  634. package/typechain-types/factories/PendleMarketV7__factory.ts +1 -1
  635. package/typechain-types/factories/PendleMerkleDepositor__factory.ts +1 -1
  636. package/typechain-types/factories/PendleMerkleDistributor__factory.ts +1 -1
  637. package/typechain-types/factories/PendleMsgReceiveEndpointUpg__factory.ts +1 -1
  638. package/typechain-types/factories/PendleMsgSendEndpointUpg__factory.ts +1 -1
  639. package/typechain-types/factories/PendleMultiTokenMerkleDistributor__factory.ts +1 -1
  640. package/typechain-types/factories/PendleMulticallOwnerV1__factory.ts +1 -1
  641. package/typechain-types/factories/PendleMulticallV1__factory.ts +1 -1
  642. package/typechain-types/factories/PendleMulticallV2__factory.ts +1 -1
  643. package/typechain-types/factories/PendleOFTAlt__factory.ts +1 -1
  644. package/typechain-types/factories/PendleOFT__factory.ts +1 -1
  645. package/typechain-types/factories/PendleOffchainStorage__factory.ts +1 -1
  646. package/typechain-types/factories/PendlePTLooperView__factory.ts +100 -207
  647. package/typechain-types/factories/PendlePTLooper__factory.ts +1132 -1136
  648. package/typechain-types/factories/PendlePTOFTAdapterFactory__factory.ts +1 -1
  649. package/typechain-types/factories/PendlePYLpOracle__factory.ts +1 -1
  650. package/typechain-types/factories/PendlePoolDeployHelperV2__factory.ts +1 -1
  651. package/typechain-types/factories/PendlePoolDeployHelper__factory.ts +1 -1
  652. package/typechain-types/factories/PendlePrincipalToken__factory.ts +1 -1
  653. package/typechain-types/factories/PendleProxyAdmin__factory.ts +1 -1
  654. package/typechain-types/factories/PendleRedStoneRateOracleAdapter__factory.ts +1 -1
  655. package/typechain-types/factories/PendleRouterStatic__factory.ts +1 -1
  656. package/typechain-types/factories/PendleRouterV4__factory.ts +1 -1
  657. package/typechain-types/factories/PendleSparkLinearDiscountOracleFactoryWrapper__factory.ts +1 -1
  658. package/typechain-types/factories/PendleSparkLinearDiscountOracleFactory__factory.ts +1 -1
  659. package/typechain-types/factories/PendleSparkLinearDiscountOracle__factory.ts +1 -1
  660. package/typechain-types/factories/PendleSwapHelper__factory.ts +1 -1
  661. package/typechain-types/factories/PendleSwap__factory.ts +1 -1
  662. package/typechain-types/factories/PendleWstETHPriceFeed__factory.ts +1 -1
  663. package/typechain-types/factories/PendleYieldContractFactoryUpg__factory.ts +1 -1
  664. package/typechain-types/factories/PendleYieldToken__factory.ts +1 -1
  665. package/typechain-types/factories/PostPtLoopStateChecker__factory.ts +141 -0
  666. package/typechain-types/factories/ProxyAdmin__factory.ts +1 -1
  667. package/typechain-types/factories/Reflector__factory.ts +1 -1
  668. package/typechain-types/factories/SDKErrorsDirectory__factory.ts +1 -1
  669. package/typechain-types/factories/SimulateHelper__factory.ts +1 -1
  670. package/typechain-types/factories/StakedPendle__factory.ts +1 -1
  671. package/typechain-types/factories/StaticStableQuoter__factory.ts +286 -0
  672. package/typechain-types/factories/SupplyCapReader__factory.ts +1 -1
  673. package/typechain-types/factories/TransparentUpgradeableProxy__factory.ts +1 -1
  674. package/typechain-types/factories/VotingEscrowPendleMainchain__factory.ts +1 -1
  675. package/typechain-types/factories/VotingEscrowPendleSidechain__factory.ts +1 -1
  676. package/typechain-types/hardhat.d.ts +360 -0
  677. package/typechain-types/index.ts +80 -0
  678. package/build/artifacts/contracts/cross-chain/PendleSwapHelper.sol/PendleSwapHelper.dbg.json +0 -4
  679. package/build/artifacts/contracts/cross-chain/PendleSwapHelper.sol/PendleSwapHelper.json +0 -99
  680. package/build/artifacts/contracts/interfaces/IPSwapHelper.sol/IPSwapHelper.dbg.json +0 -4
@@ -23,27 +23,71 @@ import type {
23
23
  OnEvent,
24
24
  } from "./common";
25
25
 
26
- export declare namespace IPPTLooper {
26
+ export declare namespace IPPTLooperEIP712Types {
27
27
  export type BoxPermitStruct = {
28
28
  owner: string;
29
29
  boxId: BytesLike;
30
30
  expiry: BigNumberish;
31
- ownerSigHash: BytesLike;
32
31
  nonce: BigNumberish;
33
32
  };
34
33
 
35
- export type BoxPermitStructOutput = [
36
- string,
34
+ export type BoxPermitStructOutput = [string, string, BigNumber, BigNumber] & {
35
+ owner: string;
36
+ boxId: string;
37
+ expiry: BigNumber;
38
+ nonce: BigNumber;
39
+ };
40
+
41
+ export type ClaimMMRewardsMessageStruct = {
42
+ permit: IPPTLooperEIP712Types.BoxPermitStruct;
43
+ };
44
+
45
+ export type ClaimMMRewardsMessageStructOutput = [
46
+ IPPTLooperEIP712Types.BoxPermitStructOutput
47
+ ] & { permit: IPPTLooperEIP712Types.BoxPermitStructOutput };
48
+
49
+ export type RequestHeaderStruct = {
50
+ boxId: BytesLike;
51
+ expiry: BigNumberish;
52
+ sessionNonce: BigNumberish;
53
+ permitNonceCap: BigNumberish;
54
+ swapBridgeSlippage: BigNumberish;
55
+ offchainMetadata: BytesLike;
56
+ };
57
+
58
+ export type RequestHeaderStructOutput = [
37
59
  string,
38
60
  BigNumber,
39
- string,
40
- BigNumber
61
+ number,
62
+ number,
63
+ BigNumber,
64
+ string
41
65
  ] & {
42
- owner: string;
43
66
  boxId: string;
44
67
  expiry: BigNumber;
45
- ownerSigHash: string;
46
- nonce: BigNumber;
68
+ sessionNonce: number;
69
+ permitNonceCap: number;
70
+ swapBridgeSlippage: BigNumber;
71
+ offchainMetadata: string;
72
+ };
73
+
74
+ export type ClaimMMRewardsRequestStruct = {
75
+ header: IPPTLooperEIP712Types.RequestHeaderStruct;
76
+ extRewardController: string;
77
+ data: BytesLike;
78
+ rewardTokens: string[];
79
+ };
80
+
81
+ export type ClaimMMRewardsRequestStructOutput = [
82
+ IPPTLooperEIP712Types.RequestHeaderStructOutput,
83
+ string,
84
+ string,
85
+ string[]
86
+ ] & {
87
+ header: IPPTLooperEIP712Types.RequestHeaderStructOutput;
88
+ extRewardController: string;
89
+ data: string;
90
+ rewardTokens: string[];
47
91
  };
48
92
 
49
93
  export type BoxApprovedCallStruct = {
@@ -58,264 +102,190 @@ export declare namespace IPPTLooper {
58
102
  callData: string;
59
103
  };
60
104
 
61
- export type DecreasePositionMessageStruct = {
62
- permit: IPPTLooper.BoxPermitStruct;
63
- swap: IPPTLooper.BoxApprovedCallStruct;
64
- bridge: IPPTLooper.BoxApprovedCallStruct;
65
- maxBridgeAmount: BigNumberish;
66
- bridgeNativeFee: BigNumberish;
67
- minDebtRepaid: BigNumberish;
68
- amountPtWithdrawn: BigNumberish;
69
- minPtWithdrawn: BigNumberish;
70
- postWithdrawMaxLTV: BigNumberish;
105
+ export type BridgeDataStruct = {
106
+ call: IPPTLooperEIP712Types.BoxApprovedCallStruct;
107
+ maxAmount: BigNumberish;
108
+ nativeFee: BigNumberish;
71
109
  };
72
110
 
73
- export type DecreasePositionMessageStructOutput = [
74
- IPPTLooper.BoxPermitStructOutput,
75
- IPPTLooper.BoxApprovedCallStructOutput,
76
- IPPTLooper.BoxApprovedCallStructOutput,
77
- BigNumber,
78
- BigNumber,
79
- BigNumber,
80
- BigNumber,
111
+ export type BridgeDataStructOutput = [
112
+ IPPTLooperEIP712Types.BoxApprovedCallStructOutput,
81
113
  BigNumber,
82
114
  BigNumber
83
115
  ] & {
84
- permit: IPPTLooper.BoxPermitStructOutput;
85
- swap: IPPTLooper.BoxApprovedCallStructOutput;
86
- bridge: IPPTLooper.BoxApprovedCallStructOutput;
87
- maxBridgeAmount: BigNumber;
88
- bridgeNativeFee: BigNumber;
89
- minDebtRepaid: BigNumber;
90
- amountPtWithdrawn: BigNumber;
91
- minPtWithdrawn: BigNumber;
92
- postWithdrawMaxLTV: BigNumber;
116
+ call: IPPTLooperEIP712Types.BoxApprovedCallStructOutput;
117
+ maxAmount: BigNumber;
118
+ nativeFee: BigNumber;
93
119
  };
94
120
 
95
- export type RequestHeaderStruct = {
96
- boxId: BytesLike;
97
- expiry: BigNumberish;
98
- sessionNonce: BigNumberish;
99
- permitNonceCap: BigNumberish;
121
+ export type DecreasePositionMessageStruct = {
122
+ permit: IPPTLooperEIP712Types.BoxPermitStruct;
123
+ swap: IPPTLooperEIP712Types.BoxApprovedCallStruct;
124
+ bridge: IPPTLooperEIP712Types.BridgeDataStruct;
125
+ amountPtWithdrawn: BigNumberish;
126
+ postStateCheckData: BytesLike;
100
127
  };
101
128
 
102
- export type RequestHeaderStructOutput = [
103
- string,
129
+ export type DecreasePositionMessageStructOutput = [
130
+ IPPTLooperEIP712Types.BoxPermitStructOutput,
131
+ IPPTLooperEIP712Types.BoxApprovedCallStructOutput,
132
+ IPPTLooperEIP712Types.BridgeDataStructOutput,
104
133
  BigNumber,
105
- number,
106
- number
134
+ string
107
135
  ] & {
108
- boxId: string;
109
- expiry: BigNumber;
110
- sessionNonce: number;
111
- permitNonceCap: number;
136
+ permit: IPPTLooperEIP712Types.BoxPermitStructOutput;
137
+ swap: IPPTLooperEIP712Types.BoxApprovedCallStructOutput;
138
+ bridge: IPPTLooperEIP712Types.BridgeDataStructOutput;
139
+ amountPtWithdrawn: BigNumber;
140
+ postStateCheckData: string;
112
141
  };
113
142
 
114
143
  export type DecreasePositionRequestStruct = {
115
- header: IPPTLooper.RequestHeaderStruct;
116
- targetMaxDebt: BigNumberish;
117
- minPtToTokenSwapRate: BigNumberish;
144
+ header: IPPTLooperEIP712Types.RequestHeaderStruct;
145
+ minPtToDebtSwapRate: BigNumberish;
118
146
  postWithdrawMaxLTV: BigNumberish;
119
147
  };
120
148
 
121
149
  export type DecreasePositionRequestStructOutput = [
122
- IPPTLooper.RequestHeaderStructOutput,
123
- BigNumber,
150
+ IPPTLooperEIP712Types.RequestHeaderStructOutput,
124
151
  BigNumber,
125
152
  BigNumber
126
153
  ] & {
127
- header: IPPTLooper.RequestHeaderStructOutput;
128
- targetMaxDebt: BigNumber;
129
- minPtToTokenSwapRate: BigNumber;
154
+ header: IPPTLooperEIP712Types.RequestHeaderStructOutput;
155
+ minPtToDebtSwapRate: BigNumber;
130
156
  postWithdrawMaxLTV: BigNumber;
131
157
  };
132
158
 
159
+ export type IncreasePositionRequestStruct = {
160
+ header: IPPTLooperEIP712Types.RequestHeaderStruct;
161
+ initTokenIn: string;
162
+ initMinToPtSwapRate: BigNumberish;
163
+ minDebtToPtSwapRate: BigNumberish;
164
+ postBorrowMaxLTV: BigNumberish;
165
+ isZeroPriceImpact: boolean;
166
+ maxFeeRate: BigNumberish;
167
+ };
168
+
169
+ export type IncreasePositionRequestStructOutput = [
170
+ IPPTLooperEIP712Types.RequestHeaderStructOutput,
171
+ string,
172
+ BigNumber,
173
+ BigNumber,
174
+ BigNumber,
175
+ boolean,
176
+ BigNumber
177
+ ] & {
178
+ header: IPPTLooperEIP712Types.RequestHeaderStructOutput;
179
+ initTokenIn: string;
180
+ initMinToPtSwapRate: BigNumber;
181
+ minDebtToPtSwapRate: BigNumber;
182
+ postBorrowMaxLTV: BigNumber;
183
+ isZeroPriceImpact: boolean;
184
+ maxFeeRate: BigNumber;
185
+ };
186
+
133
187
  export type SwapBridgeWithdrawAllRequestStruct = {
134
- header: IPPTLooper.RequestHeaderStruct;
188
+ header: IPPTLooperEIP712Types.RequestHeaderStruct;
135
189
  receiveOnSpoke: boolean;
136
190
  hubTokenOut: string;
137
191
  dstTokenOut: string;
138
- minTokenOut: BigNumberish;
192
+ minTokenWithdrawn: BigNumberish;
139
193
  };
140
194
 
141
195
  export type SwapBridgeWithdrawAllRequestStructOutput = [
142
- IPPTLooper.RequestHeaderStructOutput,
196
+ IPPTLooperEIP712Types.RequestHeaderStructOutput,
143
197
  boolean,
144
198
  string,
145
199
  string,
146
200
  BigNumber
147
201
  ] & {
148
- header: IPPTLooper.RequestHeaderStructOutput;
202
+ header: IPPTLooperEIP712Types.RequestHeaderStructOutput;
149
203
  receiveOnSpoke: boolean;
150
204
  hubTokenOut: string;
151
205
  dstTokenOut: string;
152
- minTokenOut: BigNumber;
153
- };
154
-
155
- export type BatchDecPosThenWithdrawRequestStruct = {
156
- decreasePositionReq: IPPTLooper.DecreasePositionRequestStruct;
157
- swapBridgeWithdrawAllReq: IPPTLooper.SwapBridgeWithdrawAllRequestStruct;
158
- };
159
-
160
- export type BatchDecPosThenWithdrawRequestStructOutput = [
161
- IPPTLooper.DecreasePositionRequestStructOutput,
162
- IPPTLooper.SwapBridgeWithdrawAllRequestStructOutput
163
- ] & {
164
- decreasePositionReq: IPPTLooper.DecreasePositionRequestStructOutput;
165
- swapBridgeWithdrawAllReq: IPPTLooper.SwapBridgeWithdrawAllRequestStructOutput;
206
+ minTokenWithdrawn: BigNumber;
166
207
  };
167
208
 
168
209
  export type IncreasePositionMessageStruct = {
169
- permit: IPPTLooper.BoxPermitStruct;
170
- swap: IPPTLooper.BoxApprovedCallStruct;
171
- debtTokenFee: BigNumberish;
172
- bridge: IPPTLooper.BoxApprovedCallStruct;
173
- maxBridgeAmount: BigNumberish;
174
- bridgeNativeFee: BigNumberish;
175
- minPtLent: BigNumberish;
210
+ permit: IPPTLooperEIP712Types.BoxPermitStruct;
211
+ swap: IPPTLooperEIP712Types.BoxApprovedCallStruct;
212
+ fee: BigNumberish;
213
+ bridge: IPPTLooperEIP712Types.BridgeDataStruct;
176
214
  amountDebtBorrowed: BigNumberish;
177
- minDebtBorrowed: BigNumberish;
178
- postBorrowMaxLTV: BigNumberish;
215
+ postStateCheckData: BytesLike;
179
216
  };
180
217
 
181
218
  export type IncreasePositionMessageStructOutput = [
182
- IPPTLooper.BoxPermitStructOutput,
183
- IPPTLooper.BoxApprovedCallStructOutput,
184
- BigNumber,
185
- IPPTLooper.BoxApprovedCallStructOutput,
219
+ IPPTLooperEIP712Types.BoxPermitStructOutput,
220
+ IPPTLooperEIP712Types.BoxApprovedCallStructOutput,
186
221
  BigNumber,
222
+ IPPTLooperEIP712Types.BridgeDataStructOutput,
187
223
  BigNumber,
188
- BigNumber,
189
- BigNumber,
190
- BigNumber,
191
- BigNumber
224
+ string
192
225
  ] & {
193
- permit: IPPTLooper.BoxPermitStructOutput;
194
- swap: IPPTLooper.BoxApprovedCallStructOutput;
195
- debtTokenFee: BigNumber;
196
- bridge: IPPTLooper.BoxApprovedCallStructOutput;
197
- maxBridgeAmount: BigNumber;
198
- bridgeNativeFee: BigNumber;
199
- minPtLent: BigNumber;
226
+ permit: IPPTLooperEIP712Types.BoxPermitStructOutput;
227
+ swap: IPPTLooperEIP712Types.BoxApprovedCallStructOutput;
228
+ fee: BigNumber;
229
+ bridge: IPPTLooperEIP712Types.BridgeDataStructOutput;
200
230
  amountDebtBorrowed: BigNumber;
201
- minDebtBorrowed: BigNumber;
202
- postBorrowMaxLTV: BigNumber;
203
- };
204
-
205
- export type IncreasePositionRequestStruct = {
206
- header: IPPTLooper.RequestHeaderStruct;
207
- targetMinPt: BigNumberish;
208
- minTokenToPtSwapRate: BigNumberish;
209
- postBorrowMaxLTV: BigNumberish;
210
- isZeroPriceImpact: boolean;
211
- };
212
-
213
- export type IncreasePositionRequestStructOutput = [
214
- IPPTLooper.RequestHeaderStructOutput,
215
- BigNumber,
216
- BigNumber,
217
- BigNumber,
218
- boolean
219
- ] & {
220
- header: IPPTLooper.RequestHeaderStructOutput;
221
- targetMinPt: BigNumber;
222
- minTokenToPtSwapRate: BigNumber;
223
- postBorrowMaxLTV: BigNumber;
224
- isZeroPriceImpact: boolean;
231
+ postStateCheckData: string;
225
232
  };
226
233
 
227
234
  export type SwapBridgeWithdrawAllMessageStruct = {
228
- permit: IPPTLooper.BoxPermitStruct;
229
- swap: IPPTLooper.BoxApprovedCallStruct;
230
- bridge: IPPTLooper.BoxApprovedCallStruct;
231
- maxBridgeAmount: BigNumberish;
232
- bridgeNativeFee: BigNumberish;
235
+ permit: IPPTLooperEIP712Types.BoxPermitStruct;
236
+ swap: IPPTLooperEIP712Types.BoxApprovedCallStruct;
237
+ bridge: IPPTLooperEIP712Types.BridgeDataStruct;
238
+ postStateCheckData: BytesLike;
233
239
  };
234
240
 
235
241
  export type SwapBridgeWithdrawAllMessageStructOutput = [
236
- IPPTLooper.BoxPermitStructOutput,
237
- IPPTLooper.BoxApprovedCallStructOutput,
238
- IPPTLooper.BoxApprovedCallStructOutput,
239
- BigNumber,
240
- BigNumber
242
+ IPPTLooperEIP712Types.BoxPermitStructOutput,
243
+ IPPTLooperEIP712Types.BoxApprovedCallStructOutput,
244
+ IPPTLooperEIP712Types.BridgeDataStructOutput,
245
+ string
241
246
  ] & {
242
- permit: IPPTLooper.BoxPermitStructOutput;
243
- swap: IPPTLooper.BoxApprovedCallStructOutput;
244
- bridge: IPPTLooper.BoxApprovedCallStructOutput;
245
- maxBridgeAmount: BigNumber;
246
- bridgeNativeFee: BigNumber;
247
- };
248
-
249
- export type UserRequestStateSetMessageStruct = {
250
- permit: IPPTLooper.BoxPermitStruct;
251
- isInitiate: boolean;
247
+ permit: IPPTLooperEIP712Types.BoxPermitStructOutput;
248
+ swap: IPPTLooperEIP712Types.BoxApprovedCallStructOutput;
249
+ bridge: IPPTLooperEIP712Types.BridgeDataStructOutput;
250
+ postStateCheckData: string;
252
251
  };
252
+ }
253
253
 
254
- export type UserRequestStateSetMessageStructOutput = [
255
- IPPTLooper.BoxPermitStructOutput,
256
- boolean
257
- ] & { permit: IPPTLooper.BoxPermitStructOutput; isInitiate: boolean };
258
-
254
+ export declare namespace IPPTLooper {
259
255
  export type UserRequestInfoStruct = {
260
- sigHash: BytesLike;
256
+ requestHash: BytesLike;
261
257
  sessionNonce: BigNumberish;
262
258
  };
263
259
 
264
260
  export type UserRequestInfoStructOutput = [string, number] & {
265
- sigHash: string;
261
+ requestHash: string;
266
262
  sessionNonce: number;
267
263
  };
268
264
  }
269
265
 
270
- export declare namespace IMulticall {
271
- export type Call3Struct = { allowFailure: boolean; callData: BytesLike };
272
-
273
- export type Call3StructOutput = [boolean, string] & {
274
- allowFailure: boolean;
275
- callData: string;
276
- };
277
-
278
- export type ResultStruct = { success: boolean; returnData: BytesLike };
279
-
280
- export type ResultStructOutput = [boolean, string] & {
281
- success: boolean;
282
- returnData: string;
283
- };
284
- }
285
-
286
266
  export interface PendlePTLooperInterface extends utils.Interface {
287
267
  contractName: "PendlePTLooper";
288
268
  functions: {
289
269
  "POSITION_BOX_FACTORY()": FunctionFragment;
270
+ "POST_LOOP_STATE_CHECKER()": FunctionFragment;
290
271
  "TREASURY()": FunctionFragment;
291
- "claimMoneyMarketRewards(address,bytes32)": FunctionFragment;
272
+ "claimMMRewards(((address,bytes32,uint256,uint256)),bytes,((bytes32,uint256,uint32,uint32,uint256,bytes),address,bytes,address[]),bytes)": FunctionFragment;
292
273
  "claimOwnership()": FunctionFragment;
293
- "decreaseLoopPosition(((address,bytes32,uint256,bytes32,uint256),(address,address,bytes),(address,address,bytes),uint256,uint256,uint256,uint256,uint256,uint256),bytes,(((bytes32,uint256,uint32,uint32),uint256,uint256,uint256),((bytes32,uint256,uint32,uint32),bool,address,address,uint256)),bytes)": FunctionFragment;
294
- "depositToBox(bytes32,address,uint256,(address,address,bytes),uint256)": FunctionFragment;
274
+ "decreaseLoopPosition(((address,bytes32,uint256,uint256),(address,address,bytes),((address,address,bytes),uint256,uint256),uint256,bytes),bytes,((bytes32,uint256,uint32,uint32,uint256,bytes),uint256,uint256),bytes)": FunctionFragment;
295
275
  "eip712Domain()": FunctionFragment;
296
276
  "executor()": FunctionFragment;
297
- "hashBoxApprovedCall((address,address,bytes))": FunctionFragment;
298
- "hashBoxPermit((address,bytes32,uint256,bytes32,uint256))": FunctionFragment;
299
- "hashRequestHeader((bytes32,uint256,uint32,uint32))": FunctionFragment;
300
- "hashTyped_BatchDecPosThenWithdrawReq((((bytes32,uint256,uint32,uint32),uint256,uint256,uint256),((bytes32,uint256,uint32,uint32),bool,address,address,uint256)))": FunctionFragment;
301
- "hashTyped_DecreasePositionMsg(((address,bytes32,uint256,bytes32,uint256),(address,address,bytes),(address,address,bytes),uint256,uint256,uint256,uint256,uint256,uint256))": FunctionFragment;
302
- "hashTyped_DecreasePositionReq(((bytes32,uint256,uint32,uint32),uint256,uint256,uint256))": FunctionFragment;
303
- "hashTyped_IncreasePositionMsg(((address,bytes32,uint256,bytes32,uint256),(address,address,bytes),uint256,(address,address,bytes),uint256,uint256,uint256,uint256,uint256,uint256))": FunctionFragment;
304
- "hashTyped_IncreasePositionReq(((bytes32,uint256,uint32,uint32),uint256,uint256,uint256,bool))": FunctionFragment;
305
- "hashTyped_SwapBridgeWithdrawAllMsg(((address,bytes32,uint256,bytes32,uint256),(address,address,bytes),(address,address,bytes),uint256,uint256))": FunctionFragment;
306
- "hashTyped_SwapBridgeWithdrawAllReq(((bytes32,uint256,uint32,uint32),bool,address,address,uint256))": FunctionFragment;
307
- "hashTyped_UserRequestStateSetMsg(((address,bytes32,uint256,bytes32,uint256),bool))": FunctionFragment;
308
- "increaseLoopPosition(((address,bytes32,uint256,bytes32,uint256),(address,address,bytes),uint256,(address,address,bytes),uint256,uint256,uint256,uint256,uint256,uint256),bytes,((bytes32,uint256,uint32,uint32),uint256,uint256,uint256,bool),bytes)": FunctionFragment;
277
+ "hashRaw(((bytes32,uint256,uint32,uint32,uint256,bytes),address,uint256,uint256,uint256,bool,uint256))": FunctionFragment;
278
+ "hashTyped(((bytes32,uint256,uint32,uint32,uint256,bytes),uint256,uint256))": FunctionFragment;
279
+ "increaseLoopPosition(((address,bytes32,uint256,uint256),(address,address,bytes),uint256,((address,address,bytes),uint256,uint256),uint256,bytes),bytes,((bytes32,uint256,uint32,uint32,uint256,bytes),address,uint256,uint256,uint256,bool,uint256),bytes)": FunctionFragment;
309
280
  "initialize(address)": FunctionFragment;
310
- "multicall((bool,bytes)[])": FunctionFragment;
311
281
  "owner()": FunctionFragment;
312
282
  "pendingOwner()": FunctionFragment;
313
283
  "proposer()": FunctionFragment;
314
- "proposerNonce(bytes32)": FunctionFragment;
284
+ "proposerNonce(address,bytes32)": FunctionFragment;
315
285
  "setExecutor(address)": FunctionFragment;
316
286
  "setProposer(address)": FunctionFragment;
317
- "setUserRequestState(((address,bytes32,uint256,bytes32,uint256),bool),bytes)": FunctionFragment;
318
- "swapBridgeWithdrawAll(((address,bytes32,uint256,bytes32,uint256),(address,address,bytes),(address,address,bytes),uint256,uint256),bytes,(((bytes32,uint256,uint32,uint32),uint256,uint256,uint256),((bytes32,uint256,uint32,uint32),bool,address,address,uint256)),bytes)": FunctionFragment;
287
+ "swapBridgeWithdrawAll(((address,bytes32,uint256,uint256),(address,address,bytes),((address,address,bytes),uint256,uint256),bytes),bytes,((bytes32,uint256,uint32,uint32,uint256,bytes),bool,address,address,uint256),bytes)": FunctionFragment;
288
+ "terminateSession(address,bytes32,bytes32)": FunctionFragment;
319
289
  "transferOwnership(address,bool,bool)": FunctionFragment;
320
290
  "userRequest(address,bytes32)": FunctionFragment;
321
291
  };
@@ -324,32 +294,31 @@ export interface PendlePTLooperInterface extends utils.Interface {
324
294
  functionFragment: "POSITION_BOX_FACTORY",
325
295
  values?: undefined
326
296
  ): string;
327
- encodeFunctionData(functionFragment: "TREASURY", values?: undefined): string;
328
297
  encodeFunctionData(
329
- functionFragment: "claimMoneyMarketRewards",
330
- values: [string, BytesLike]
331
- ): string;
332
- encodeFunctionData(
333
- functionFragment: "claimOwnership",
298
+ functionFragment: "POST_LOOP_STATE_CHECKER",
334
299
  values?: undefined
335
300
  ): string;
301
+ encodeFunctionData(functionFragment: "TREASURY", values?: undefined): string;
336
302
  encodeFunctionData(
337
- functionFragment: "decreaseLoopPosition",
303
+ functionFragment: "claimMMRewards",
338
304
  values: [
339
- IPPTLooper.DecreasePositionMessageStruct,
305
+ IPPTLooperEIP712Types.ClaimMMRewardsMessageStruct,
340
306
  BytesLike,
341
- IPPTLooper.BatchDecPosThenWithdrawRequestStruct,
307
+ IPPTLooperEIP712Types.ClaimMMRewardsRequestStruct,
342
308
  BytesLike
343
309
  ]
344
310
  ): string;
345
311
  encodeFunctionData(
346
- functionFragment: "depositToBox",
312
+ functionFragment: "claimOwnership",
313
+ values?: undefined
314
+ ): string;
315
+ encodeFunctionData(
316
+ functionFragment: "decreaseLoopPosition",
347
317
  values: [
318
+ IPPTLooperEIP712Types.DecreasePositionMessageStruct,
348
319
  BytesLike,
349
- string,
350
- BigNumberish,
351
- IPPTLooper.BoxApprovedCallStruct,
352
- BigNumberish
320
+ IPPTLooperEIP712Types.DecreasePositionRequestStruct,
321
+ BytesLike
353
322
  ]
354
323
  ): string;
355
324
  encodeFunctionData(
@@ -358,63 +327,23 @@ export interface PendlePTLooperInterface extends utils.Interface {
358
327
  ): string;
359
328
  encodeFunctionData(functionFragment: "executor", values?: undefined): string;
360
329
  encodeFunctionData(
361
- functionFragment: "hashBoxApprovedCall",
362
- values: [IPPTLooper.BoxApprovedCallStruct]
363
- ): string;
364
- encodeFunctionData(
365
- functionFragment: "hashBoxPermit",
366
- values: [IPPTLooper.BoxPermitStruct]
330
+ functionFragment: "hashRaw",
331
+ values: [IPPTLooperEIP712Types.IncreasePositionRequestStruct]
367
332
  ): string;
368
333
  encodeFunctionData(
369
- functionFragment: "hashRequestHeader",
370
- values: [IPPTLooper.RequestHeaderStruct]
371
- ): string;
372
- encodeFunctionData(
373
- functionFragment: "hashTyped_BatchDecPosThenWithdrawReq",
374
- values: [IPPTLooper.BatchDecPosThenWithdrawRequestStruct]
375
- ): string;
376
- encodeFunctionData(
377
- functionFragment: "hashTyped_DecreasePositionMsg",
378
- values: [IPPTLooper.DecreasePositionMessageStruct]
379
- ): string;
380
- encodeFunctionData(
381
- functionFragment: "hashTyped_DecreasePositionReq",
382
- values: [IPPTLooper.DecreasePositionRequestStruct]
383
- ): string;
384
- encodeFunctionData(
385
- functionFragment: "hashTyped_IncreasePositionMsg",
386
- values: [IPPTLooper.IncreasePositionMessageStruct]
387
- ): string;
388
- encodeFunctionData(
389
- functionFragment: "hashTyped_IncreasePositionReq",
390
- values: [IPPTLooper.IncreasePositionRequestStruct]
391
- ): string;
392
- encodeFunctionData(
393
- functionFragment: "hashTyped_SwapBridgeWithdrawAllMsg",
394
- values: [IPPTLooper.SwapBridgeWithdrawAllMessageStruct]
395
- ): string;
396
- encodeFunctionData(
397
- functionFragment: "hashTyped_SwapBridgeWithdrawAllReq",
398
- values: [IPPTLooper.SwapBridgeWithdrawAllRequestStruct]
399
- ): string;
400
- encodeFunctionData(
401
- functionFragment: "hashTyped_UserRequestStateSetMsg",
402
- values: [IPPTLooper.UserRequestStateSetMessageStruct]
334
+ functionFragment: "hashTyped",
335
+ values: [IPPTLooperEIP712Types.DecreasePositionRequestStruct]
403
336
  ): string;
404
337
  encodeFunctionData(
405
338
  functionFragment: "increaseLoopPosition",
406
339
  values: [
407
- IPPTLooper.IncreasePositionMessageStruct,
340
+ IPPTLooperEIP712Types.IncreasePositionMessageStruct,
408
341
  BytesLike,
409
- IPPTLooper.IncreasePositionRequestStruct,
342
+ IPPTLooperEIP712Types.IncreasePositionRequestStruct,
410
343
  BytesLike
411
344
  ]
412
345
  ): string;
413
346
  encodeFunctionData(functionFragment: "initialize", values: [string]): string;
414
- encodeFunctionData(
415
- functionFragment: "multicall",
416
- values: [IMulticall.Call3Struct[]]
417
- ): string;
418
347
  encodeFunctionData(functionFragment: "owner", values?: undefined): string;
419
348
  encodeFunctionData(
420
349
  functionFragment: "pendingOwner",
@@ -423,23 +352,23 @@ export interface PendlePTLooperInterface extends utils.Interface {
423
352
  encodeFunctionData(functionFragment: "proposer", values?: undefined): string;
424
353
  encodeFunctionData(
425
354
  functionFragment: "proposerNonce",
426
- values: [BytesLike]
355
+ values: [string, BytesLike]
427
356
  ): string;
428
357
  encodeFunctionData(functionFragment: "setExecutor", values: [string]): string;
429
358
  encodeFunctionData(functionFragment: "setProposer", values: [string]): string;
430
- encodeFunctionData(
431
- functionFragment: "setUserRequestState",
432
- values: [IPPTLooper.UserRequestStateSetMessageStruct, BytesLike]
433
- ): string;
434
359
  encodeFunctionData(
435
360
  functionFragment: "swapBridgeWithdrawAll",
436
361
  values: [
437
- IPPTLooper.SwapBridgeWithdrawAllMessageStruct,
362
+ IPPTLooperEIP712Types.SwapBridgeWithdrawAllMessageStruct,
438
363
  BytesLike,
439
- IPPTLooper.BatchDecPosThenWithdrawRequestStruct,
364
+ IPPTLooperEIP712Types.SwapBridgeWithdrawAllRequestStruct,
440
365
  BytesLike
441
366
  ]
442
367
  ): string;
368
+ encodeFunctionData(
369
+ functionFragment: "terminateSession",
370
+ values: [string, BytesLike, BytesLike]
371
+ ): string;
443
372
  encodeFunctionData(
444
373
  functionFragment: "transferOwnership",
445
374
  values: [string, boolean, boolean]
@@ -453,21 +382,21 @@ export interface PendlePTLooperInterface extends utils.Interface {
453
382
  functionFragment: "POSITION_BOX_FACTORY",
454
383
  data: BytesLike
455
384
  ): Result;
456
- decodeFunctionResult(functionFragment: "TREASURY", data: BytesLike): Result;
457
385
  decodeFunctionResult(
458
- functionFragment: "claimMoneyMarketRewards",
386
+ functionFragment: "POST_LOOP_STATE_CHECKER",
459
387
  data: BytesLike
460
388
  ): Result;
389
+ decodeFunctionResult(functionFragment: "TREASURY", data: BytesLike): Result;
461
390
  decodeFunctionResult(
462
- functionFragment: "claimOwnership",
391
+ functionFragment: "claimMMRewards",
463
392
  data: BytesLike
464
393
  ): Result;
465
394
  decodeFunctionResult(
466
- functionFragment: "decreaseLoopPosition",
395
+ functionFragment: "claimOwnership",
467
396
  data: BytesLike
468
397
  ): Result;
469
398
  decodeFunctionResult(
470
- functionFragment: "depositToBox",
399
+ functionFragment: "decreaseLoopPosition",
471
400
  data: BytesLike
472
401
  ): Result;
473
402
  decodeFunctionResult(
@@ -475,56 +404,13 @@ export interface PendlePTLooperInterface extends utils.Interface {
475
404
  data: BytesLike
476
405
  ): Result;
477
406
  decodeFunctionResult(functionFragment: "executor", data: BytesLike): Result;
478
- decodeFunctionResult(
479
- functionFragment: "hashBoxApprovedCall",
480
- data: BytesLike
481
- ): Result;
482
- decodeFunctionResult(
483
- functionFragment: "hashBoxPermit",
484
- data: BytesLike
485
- ): Result;
486
- decodeFunctionResult(
487
- functionFragment: "hashRequestHeader",
488
- data: BytesLike
489
- ): Result;
490
- decodeFunctionResult(
491
- functionFragment: "hashTyped_BatchDecPosThenWithdrawReq",
492
- data: BytesLike
493
- ): Result;
494
- decodeFunctionResult(
495
- functionFragment: "hashTyped_DecreasePositionMsg",
496
- data: BytesLike
497
- ): Result;
498
- decodeFunctionResult(
499
- functionFragment: "hashTyped_DecreasePositionReq",
500
- data: BytesLike
501
- ): Result;
502
- decodeFunctionResult(
503
- functionFragment: "hashTyped_IncreasePositionMsg",
504
- data: BytesLike
505
- ): Result;
506
- decodeFunctionResult(
507
- functionFragment: "hashTyped_IncreasePositionReq",
508
- data: BytesLike
509
- ): Result;
510
- decodeFunctionResult(
511
- functionFragment: "hashTyped_SwapBridgeWithdrawAllMsg",
512
- data: BytesLike
513
- ): Result;
514
- decodeFunctionResult(
515
- functionFragment: "hashTyped_SwapBridgeWithdrawAllReq",
516
- data: BytesLike
517
- ): Result;
518
- decodeFunctionResult(
519
- functionFragment: "hashTyped_UserRequestStateSetMsg",
520
- data: BytesLike
521
- ): Result;
407
+ decodeFunctionResult(functionFragment: "hashRaw", data: BytesLike): Result;
408
+ decodeFunctionResult(functionFragment: "hashTyped", data: BytesLike): Result;
522
409
  decodeFunctionResult(
523
410
  functionFragment: "increaseLoopPosition",
524
411
  data: BytesLike
525
412
  ): Result;
526
413
  decodeFunctionResult(functionFragment: "initialize", data: BytesLike): Result;
527
- decodeFunctionResult(functionFragment: "multicall", data: BytesLike): Result;
528
414
  decodeFunctionResult(functionFragment: "owner", data: BytesLike): Result;
529
415
  decodeFunctionResult(
530
416
  functionFragment: "pendingOwner",
@@ -544,11 +430,11 @@ export interface PendlePTLooperInterface extends utils.Interface {
544
430
  data: BytesLike
545
431
  ): Result;
546
432
  decodeFunctionResult(
547
- functionFragment: "setUserRequestState",
433
+ functionFragment: "swapBridgeWithdrawAll",
548
434
  data: BytesLike
549
435
  ): Result;
550
436
  decodeFunctionResult(
551
- functionFragment: "swapBridgeWithdrawAll",
437
+ functionFragment: "terminateSession",
552
438
  data: BytesLike
553
439
  ): Result;
554
440
  decodeFunctionResult(
@@ -568,12 +454,14 @@ export interface PendlePTLooperInterface extends utils.Interface {
568
454
  "OwnershipTransferred(address,address)": EventFragment;
569
455
  "PositionDecreased(address,bytes32,bytes32,uint256,uint256,uint256,uint256)": EventFragment;
570
456
  "PositionIncreased(address,bytes32,bytes32,uint256,uint256,uint256,uint256)": EventFragment;
457
+ "RewardsClaimed(address,bytes32,bytes32,uint256,address[],uint256[])": EventFragment;
458
+ "SessionInitiated(address,bytes32,bytes32,uint32)": EventFragment;
459
+ "SessionTerminated(address,bytes32,bytes32,uint32)": EventFragment;
571
460
  "SetExecutor(address)": EventFragment;
572
461
  "SetProposer(address)": EventFragment;
573
462
  "TokenBridged(address,address,uint256)": EventFragment;
574
463
  "TokenSwapped(address,address,uint256,address,uint256)": EventFragment;
575
- "UserRequestStateSet(address,bytes32,bytes32,uint32,bool)": EventFragment;
576
- "Withdrawn(address,bytes32,bytes32,uint256,address,uint256,uint256)": EventFragment;
464
+ "Withdrawn(address,bytes32,bytes32,uint256,address,uint256)": EventFragment;
577
465
  };
578
466
 
579
467
  getEvent(nameOrSignatureOrTopic: "EIP712DomainChanged"): EventFragment;
@@ -587,11 +475,13 @@ export interface PendlePTLooperInterface extends utils.Interface {
587
475
  getEvent(nameOrSignatureOrTopic: "OwnershipTransferred"): EventFragment;
588
476
  getEvent(nameOrSignatureOrTopic: "PositionDecreased"): EventFragment;
589
477
  getEvent(nameOrSignatureOrTopic: "PositionIncreased"): EventFragment;
478
+ getEvent(nameOrSignatureOrTopic: "RewardsClaimed"): EventFragment;
479
+ getEvent(nameOrSignatureOrTopic: "SessionInitiated"): EventFragment;
480
+ getEvent(nameOrSignatureOrTopic: "SessionTerminated"): EventFragment;
590
481
  getEvent(nameOrSignatureOrTopic: "SetExecutor"): EventFragment;
591
482
  getEvent(nameOrSignatureOrTopic: "SetProposer"): EventFragment;
592
483
  getEvent(nameOrSignatureOrTopic: "TokenBridged"): EventFragment;
593
484
  getEvent(nameOrSignatureOrTopic: "TokenSwapped"): EventFragment;
594
- getEvent(nameOrSignatureOrTopic: "UserRequestStateSet"): EventFragment;
595
485
  getEvent(nameOrSignatureOrTopic: "Withdrawn"): EventFragment;
596
486
  }
597
487
 
@@ -633,7 +523,7 @@ export type PositionDecreasedEvent = TypedEvent<
633
523
  {
634
524
  owner: string;
635
525
  boxId: string;
636
- ownerSigHash: string;
526
+ requestHash: string;
637
527
  nonce: BigNumber;
638
528
  preDebtBalance: BigNumber;
639
529
  netPtToSwap: BigNumber;
@@ -649,9 +539,9 @@ export type PositionIncreasedEvent = TypedEvent<
649
539
  {
650
540
  owner: string;
651
541
  boxId: string;
652
- ownerSigHash: string;
542
+ requestHash: string;
653
543
  nonce: BigNumber;
654
- preDebtBalance: BigNumber;
544
+ preInBalance: BigNumber;
655
545
  netPtToMM: BigNumber;
656
546
  postDebtBalance: BigNumber;
657
547
  }
@@ -660,6 +550,36 @@ export type PositionIncreasedEvent = TypedEvent<
660
550
  export type PositionIncreasedEventFilter =
661
551
  TypedEventFilter<PositionIncreasedEvent>;
662
552
 
553
+ export type RewardsClaimedEvent = TypedEvent<
554
+ [string, string, string, BigNumber, string[], BigNumber[]],
555
+ {
556
+ owner: string;
557
+ boxId: string;
558
+ requestHash: string;
559
+ nonce: BigNumber;
560
+ rewardTokens: string[];
561
+ claimedAmounts: BigNumber[];
562
+ }
563
+ >;
564
+
565
+ export type RewardsClaimedEventFilter = TypedEventFilter<RewardsClaimedEvent>;
566
+
567
+ export type SessionInitiatedEvent = TypedEvent<
568
+ [string, string, string, number],
569
+ { owner: string; boxId: string; requestHash: string; sessionNonce: number }
570
+ >;
571
+
572
+ export type SessionInitiatedEventFilter =
573
+ TypedEventFilter<SessionInitiatedEvent>;
574
+
575
+ export type SessionTerminatedEvent = TypedEvent<
576
+ [string, string, string, number],
577
+ { owner: string; boxId: string; requestHash: string; sessionNonce: number }
578
+ >;
579
+
580
+ export type SessionTerminatedEventFilter =
581
+ TypedEventFilter<SessionTerminatedEvent>;
582
+
663
583
  export type SetExecutorEvent = TypedEvent<[string], { executor: string }>;
664
584
 
665
585
  export type SetExecutorEventFilter = TypedEventFilter<SetExecutorEvent>;
@@ -682,36 +602,21 @@ export type TokenSwappedEvent = TypedEvent<
682
602
  tokenIn: string;
683
603
  netIn: BigNumber;
684
604
  tokenOut: string;
685
- netOut: BigNumber;
605
+ netSwappedOut: BigNumber;
686
606
  }
687
607
  >;
688
608
 
689
609
  export type TokenSwappedEventFilter = TypedEventFilter<TokenSwappedEvent>;
690
610
 
691
- export type UserRequestStateSetEvent = TypedEvent<
692
- [string, string, string, number, boolean],
693
- {
694
- owner: string;
695
- boxId: string;
696
- ownerSigHash: string;
697
- sessionNonce: number;
698
- isInitiate: boolean;
699
- }
700
- >;
701
-
702
- export type UserRequestStateSetEventFilter =
703
- TypedEventFilter<UserRequestStateSetEvent>;
704
-
705
611
  export type WithdrawnEvent = TypedEvent<
706
- [string, string, string, BigNumber, string, BigNumber, BigNumber],
612
+ [string, string, string, BigNumber, string, BigNumber],
707
613
  {
708
614
  owner: string;
709
615
  boxId: string;
710
- ownerSigHash: string;
616
+ requestHash: string;
711
617
  nonce: BigNumber;
712
618
  tokenOut: string;
713
619
  netOut: BigNumber;
714
- fee: BigNumber;
715
620
  }
716
621
  >;
717
622
 
@@ -747,11 +652,15 @@ export interface PendlePTLooper extends BaseContract {
747
652
  functions: {
748
653
  POSITION_BOX_FACTORY(overrides?: CallOverrides): Promise<[string]>;
749
654
 
655
+ POST_LOOP_STATE_CHECKER(overrides?: CallOverrides): Promise<[string]>;
656
+
750
657
  TREASURY(overrides?: CallOverrides): Promise<[string]>;
751
658
 
752
- claimMoneyMarketRewards(
753
- owner: string,
754
- boxId: BytesLike,
659
+ claimMMRewards(
660
+ ms: IPPTLooperEIP712Types.ClaimMMRewardsMessageStruct,
661
+ proposerSig: BytesLike,
662
+ req: IPPTLooperEIP712Types.ClaimMMRewardsRequestStruct,
663
+ ownerSigIfFirstCall: BytesLike,
755
664
  overrides?: Overrides & { from?: string | Promise<string> }
756
665
  ): Promise<ContractTransaction>;
757
666
 
@@ -759,28 +668,11 @@ export interface PendlePTLooper extends BaseContract {
759
668
  overrides?: Overrides & { from?: string | Promise<string> }
760
669
  ): Promise<ContractTransaction>;
761
670
 
762
- "decreaseLoopPosition(((address,bytes32,uint256,bytes32,uint256),(address,address,bytes),(address,address,bytes),uint256,uint256,uint256,uint256,uint256,uint256),bytes,(((bytes32,uint256,uint32,uint32),uint256,uint256,uint256),((bytes32,uint256,uint32,uint32),bool,address,address,uint256)),bytes)"(
763
- ms: IPPTLooper.DecreasePositionMessageStruct,
764
- proposerSig: BytesLike,
765
- req: IPPTLooper.BatchDecPosThenWithdrawRequestStruct,
766
- ownerSig: BytesLike,
767
- overrides?: PayableOverrides & { from?: string | Promise<string> }
768
- ): Promise<ContractTransaction>;
769
-
770
- "decreaseLoopPosition(((address,bytes32,uint256,bytes32,uint256),(address,address,bytes),(address,address,bytes),uint256,uint256,uint256,uint256,uint256,uint256),bytes,((bytes32,uint256,uint32,uint32),uint256,uint256,uint256),bytes)"(
771
- ms: IPPTLooper.DecreasePositionMessageStruct,
671
+ decreaseLoopPosition(
672
+ ms: IPPTLooperEIP712Types.DecreasePositionMessageStruct,
772
673
  proposerSig: BytesLike,
773
- req: IPPTLooper.DecreasePositionRequestStruct,
774
- ownerSig: BytesLike,
775
- overrides?: PayableOverrides & { from?: string | Promise<string> }
776
- ): Promise<ContractTransaction>;
777
-
778
- depositToBox(
779
- boxId: BytesLike,
780
- tokenIn: string,
781
- amountIn: BigNumberish,
782
- swapCall: IPPTLooper.BoxApprovedCallStruct,
783
- minDebtTokenSwapOut: BigNumberish,
674
+ req: IPPTLooperEIP712Types.DecreasePositionRequestStruct,
675
+ ownerSigIfFirstCall: BytesLike,
784
676
  overrides?: PayableOverrides & { from?: string | Promise<string> }
785
677
  ): Promise<ContractTransaction>;
786
678
 
@@ -800,66 +692,96 @@ export interface PendlePTLooper extends BaseContract {
800
692
 
801
693
  executor(overrides?: CallOverrides): Promise<[string]>;
802
694
 
803
- hashBoxApprovedCall(
804
- sb: IPPTLooper.BoxApprovedCallStruct,
695
+ "hashRaw(((bytes32,uint256,uint32,uint32,uint256,bytes),address,uint256,uint256,uint256,bool,uint256))"(
696
+ req: IPPTLooperEIP712Types.IncreasePositionRequestStruct,
805
697
  overrides?: CallOverrides
806
698
  ): Promise<[string]>;
807
699
 
808
- hashBoxPermit(
809
- permit: IPPTLooper.BoxPermitStruct,
700
+ "hashRaw((bytes32,uint256,uint32,uint32,uint256,bytes))"(
701
+ header: IPPTLooperEIP712Types.RequestHeaderStruct,
810
702
  overrides?: CallOverrides
811
703
  ): Promise<[string]>;
812
704
 
813
- hashRequestHeader(
814
- header: IPPTLooper.RequestHeaderStruct,
705
+ "hashRaw(((address,bytes32,uint256,uint256)))"(
706
+ ms: IPPTLooperEIP712Types.ClaimMMRewardsMessageStruct,
815
707
  overrides?: CallOverrides
816
708
  ): Promise<[string]>;
817
709
 
818
- hashTyped_BatchDecPosThenWithdrawReq(
819
- req: IPPTLooper.BatchDecPosThenWithdrawRequestStruct,
710
+ "hashRaw(((address,address,bytes),uint256,uint256))"(
711
+ bridge: IPPTLooperEIP712Types.BridgeDataStruct,
820
712
  overrides?: CallOverrides
821
713
  ): Promise<[string]>;
822
714
 
823
- hashTyped_DecreasePositionMsg(
824
- ms: IPPTLooper.DecreasePositionMessageStruct,
715
+ "hashRaw((address,bytes32,uint256,uint256))"(
716
+ permit: IPPTLooperEIP712Types.BoxPermitStruct,
825
717
  overrides?: CallOverrides
826
718
  ): Promise<[string]>;
827
719
 
828
- hashTyped_DecreasePositionReq(
829
- req: IPPTLooper.DecreasePositionRequestStruct,
720
+ "hashRaw(((bytes32,uint256,uint32,uint32,uint256,bytes),address,bytes,address[]))"(
721
+ req: IPPTLooperEIP712Types.ClaimMMRewardsRequestStruct,
830
722
  overrides?: CallOverrides
831
723
  ): Promise<[string]>;
832
724
 
833
- hashTyped_IncreasePositionMsg(
834
- ms: IPPTLooper.IncreasePositionMessageStruct,
725
+ "hashRaw(((bytes32,uint256,uint32,uint32,uint256,bytes),uint256,uint256))"(
726
+ req: IPPTLooperEIP712Types.DecreasePositionRequestStruct,
835
727
  overrides?: CallOverrides
836
728
  ): Promise<[string]>;
837
729
 
838
- hashTyped_IncreasePositionReq(
839
- req: IPPTLooper.IncreasePositionRequestStruct,
730
+ "hashRaw(((bytes32,uint256,uint32,uint32,uint256,bytes),bool,address,address,uint256))"(
731
+ req: IPPTLooperEIP712Types.SwapBridgeWithdrawAllRequestStruct,
840
732
  overrides?: CallOverrides
841
733
  ): Promise<[string]>;
842
734
 
843
- hashTyped_SwapBridgeWithdrawAllMsg(
844
- ms: IPPTLooper.SwapBridgeWithdrawAllMessageStruct,
735
+ "hashRaw((address,address,bytes))"(
736
+ call: IPPTLooperEIP712Types.BoxApprovedCallStruct,
845
737
  overrides?: CallOverrides
846
738
  ): Promise<[string]>;
847
739
 
848
- hashTyped_SwapBridgeWithdrawAllReq(
849
- req: IPPTLooper.SwapBridgeWithdrawAllRequestStruct,
740
+ "hashTyped(((bytes32,uint256,uint32,uint32,uint256,bytes),uint256,uint256))"(
741
+ req: IPPTLooperEIP712Types.DecreasePositionRequestStruct,
850
742
  overrides?: CallOverrides
851
743
  ): Promise<[string]>;
852
744
 
853
- hashTyped_UserRequestStateSetMsg(
854
- ms: IPPTLooper.UserRequestStateSetMessageStruct,
745
+ "hashTyped(((address,bytes32,uint256,uint256),(address,address,bytes),((address,address,bytes),uint256,uint256),uint256,bytes))"(
746
+ ms: IPPTLooperEIP712Types.DecreasePositionMessageStruct,
747
+ overrides?: CallOverrides
748
+ ): Promise<[string]>;
749
+
750
+ "hashTyped(((address,bytes32,uint256,uint256),(address,address,bytes),uint256,((address,address,bytes),uint256,uint256),uint256,bytes))"(
751
+ ms: IPPTLooperEIP712Types.IncreasePositionMessageStruct,
752
+ overrides?: CallOverrides
753
+ ): Promise<[string]>;
754
+
755
+ "hashTyped(((bytes32,uint256,uint32,uint32,uint256,bytes),bool,address,address,uint256))"(
756
+ req: IPPTLooperEIP712Types.SwapBridgeWithdrawAllRequestStruct,
757
+ overrides?: CallOverrides
758
+ ): Promise<[string]>;
759
+
760
+ "hashTyped(((bytes32,uint256,uint32,uint32,uint256,bytes),address,bytes,address[]))"(
761
+ req: IPPTLooperEIP712Types.ClaimMMRewardsRequestStruct,
762
+ overrides?: CallOverrides
763
+ ): Promise<[string]>;
764
+
765
+ "hashTyped(((bytes32,uint256,uint32,uint32,uint256,bytes),address,uint256,uint256,uint256,bool,uint256))"(
766
+ req: IPPTLooperEIP712Types.IncreasePositionRequestStruct,
767
+ overrides?: CallOverrides
768
+ ): Promise<[string]>;
769
+
770
+ "hashTyped(((address,bytes32,uint256,uint256),(address,address,bytes),((address,address,bytes),uint256,uint256),bytes))"(
771
+ ms: IPPTLooperEIP712Types.SwapBridgeWithdrawAllMessageStruct,
772
+ overrides?: CallOverrides
773
+ ): Promise<[string]>;
774
+
775
+ "hashTyped(((address,bytes32,uint256,uint256)))"(
776
+ ms: IPPTLooperEIP712Types.ClaimMMRewardsMessageStruct,
855
777
  overrides?: CallOverrides
856
778
  ): Promise<[string]>;
857
779
 
858
780
  increaseLoopPosition(
859
- ms: IPPTLooper.IncreasePositionMessageStruct,
781
+ ms: IPPTLooperEIP712Types.IncreasePositionMessageStruct,
860
782
  proposerSig: BytesLike,
861
- req: IPPTLooper.IncreasePositionRequestStruct,
862
- ownerSig: BytesLike,
783
+ req: IPPTLooperEIP712Types.IncreasePositionRequestStruct,
784
+ ownerSigIfFirstCall: BytesLike,
863
785
  overrides?: PayableOverrides & { from?: string | Promise<string> }
864
786
  ): Promise<ContractTransaction>;
865
787
 
@@ -868,11 +790,6 @@ export interface PendlePTLooper extends BaseContract {
868
790
  overrides?: Overrides & { from?: string | Promise<string> }
869
791
  ): Promise<ContractTransaction>;
870
792
 
871
- multicall(
872
- calls: IMulticall.Call3Struct[],
873
- overrides?: PayableOverrides & { from?: string | Promise<string> }
874
- ): Promise<ContractTransaction>;
875
-
876
793
  owner(overrides?: CallOverrides): Promise<[string]>;
877
794
 
878
795
  pendingOwner(overrides?: CallOverrides): Promise<[string]>;
@@ -880,7 +797,8 @@ export interface PendlePTLooper extends BaseContract {
880
797
  proposer(overrides?: CallOverrides): Promise<[string]>;
881
798
 
882
799
  proposerNonce(
883
- ownerSigHash: BytesLike,
800
+ owner: string,
801
+ requestHash: BytesLike,
884
802
  overrides?: CallOverrides
885
803
  ): Promise<[BigNumber] & { nonce: BigNumber }>;
886
804
 
@@ -894,26 +812,19 @@ export interface PendlePTLooper extends BaseContract {
894
812
  overrides?: Overrides & { from?: string | Promise<string> }
895
813
  ): Promise<ContractTransaction>;
896
814
 
897
- setUserRequestState(
898
- ms: IPPTLooper.UserRequestStateSetMessageStruct,
899
- proposerSignature: BytesLike,
900
- overrides?: Overrides & { from?: string | Promise<string> }
901
- ): Promise<ContractTransaction>;
902
-
903
- "swapBridgeWithdrawAll(((address,bytes32,uint256,bytes32,uint256),(address,address,bytes),(address,address,bytes),uint256,uint256),bytes,(((bytes32,uint256,uint32,uint32),uint256,uint256,uint256),((bytes32,uint256,uint32,uint32),bool,address,address,uint256)),bytes)"(
904
- ms: IPPTLooper.SwapBridgeWithdrawAllMessageStruct,
815
+ swapBridgeWithdrawAll(
816
+ ms: IPPTLooperEIP712Types.SwapBridgeWithdrawAllMessageStruct,
905
817
  proposerSig: BytesLike,
906
- req: IPPTLooper.BatchDecPosThenWithdrawRequestStruct,
907
- ownerSig: BytesLike,
818
+ req: IPPTLooperEIP712Types.SwapBridgeWithdrawAllRequestStruct,
819
+ ownerSigIfFirstCall: BytesLike,
908
820
  overrides?: PayableOverrides & { from?: string | Promise<string> }
909
821
  ): Promise<ContractTransaction>;
910
822
 
911
- "swapBridgeWithdrawAll(((address,bytes32,uint256,bytes32,uint256),(address,address,bytes),(address,address,bytes),uint256,uint256),bytes,((bytes32,uint256,uint32,uint32),bool,address,address,uint256),bytes)"(
912
- ms: IPPTLooper.SwapBridgeWithdrawAllMessageStruct,
913
- proposerSig: BytesLike,
914
- req: IPPTLooper.SwapBridgeWithdrawAllRequestStruct,
915
- ownerSig: BytesLike,
916
- overrides?: PayableOverrides & { from?: string | Promise<string> }
823
+ terminateSession(
824
+ owner: string,
825
+ boxId: BytesLike,
826
+ requestHash: BytesLike,
827
+ overrides?: Overrides & { from?: string | Promise<string> }
917
828
  ): Promise<ContractTransaction>;
918
829
 
919
830
  transferOwnership(
@@ -932,11 +843,15 @@ export interface PendlePTLooper extends BaseContract {
932
843
 
933
844
  POSITION_BOX_FACTORY(overrides?: CallOverrides): Promise<string>;
934
845
 
846
+ POST_LOOP_STATE_CHECKER(overrides?: CallOverrides): Promise<string>;
847
+
935
848
  TREASURY(overrides?: CallOverrides): Promise<string>;
936
849
 
937
- claimMoneyMarketRewards(
938
- owner: string,
939
- boxId: BytesLike,
850
+ claimMMRewards(
851
+ ms: IPPTLooperEIP712Types.ClaimMMRewardsMessageStruct,
852
+ proposerSig: BytesLike,
853
+ req: IPPTLooperEIP712Types.ClaimMMRewardsRequestStruct,
854
+ ownerSigIfFirstCall: BytesLike,
940
855
  overrides?: Overrides & { from?: string | Promise<string> }
941
856
  ): Promise<ContractTransaction>;
942
857
 
@@ -944,28 +859,11 @@ export interface PendlePTLooper extends BaseContract {
944
859
  overrides?: Overrides & { from?: string | Promise<string> }
945
860
  ): Promise<ContractTransaction>;
946
861
 
947
- "decreaseLoopPosition(((address,bytes32,uint256,bytes32,uint256),(address,address,bytes),(address,address,bytes),uint256,uint256,uint256,uint256,uint256,uint256),bytes,(((bytes32,uint256,uint32,uint32),uint256,uint256,uint256),((bytes32,uint256,uint32,uint32),bool,address,address,uint256)),bytes)"(
948
- ms: IPPTLooper.DecreasePositionMessageStruct,
862
+ decreaseLoopPosition(
863
+ ms: IPPTLooperEIP712Types.DecreasePositionMessageStruct,
949
864
  proposerSig: BytesLike,
950
- req: IPPTLooper.BatchDecPosThenWithdrawRequestStruct,
951
- ownerSig: BytesLike,
952
- overrides?: PayableOverrides & { from?: string | Promise<string> }
953
- ): Promise<ContractTransaction>;
954
-
955
- "decreaseLoopPosition(((address,bytes32,uint256,bytes32,uint256),(address,address,bytes),(address,address,bytes),uint256,uint256,uint256,uint256,uint256,uint256),bytes,((bytes32,uint256,uint32,uint32),uint256,uint256,uint256),bytes)"(
956
- ms: IPPTLooper.DecreasePositionMessageStruct,
957
- proposerSig: BytesLike,
958
- req: IPPTLooper.DecreasePositionRequestStruct,
959
- ownerSig: BytesLike,
960
- overrides?: PayableOverrides & { from?: string | Promise<string> }
961
- ): Promise<ContractTransaction>;
962
-
963
- depositToBox(
964
- boxId: BytesLike,
965
- tokenIn: string,
966
- amountIn: BigNumberish,
967
- swapCall: IPPTLooper.BoxApprovedCallStruct,
968
- minDebtTokenSwapOut: BigNumberish,
865
+ req: IPPTLooperEIP712Types.DecreasePositionRequestStruct,
866
+ ownerSigIfFirstCall: BytesLike,
969
867
  overrides?: PayableOverrides & { from?: string | Promise<string> }
970
868
  ): Promise<ContractTransaction>;
971
869
 
@@ -985,66 +883,96 @@ export interface PendlePTLooper extends BaseContract {
985
883
 
986
884
  executor(overrides?: CallOverrides): Promise<string>;
987
885
 
988
- hashBoxApprovedCall(
989
- sb: IPPTLooper.BoxApprovedCallStruct,
886
+ "hashRaw(((bytes32,uint256,uint32,uint32,uint256,bytes),address,uint256,uint256,uint256,bool,uint256))"(
887
+ req: IPPTLooperEIP712Types.IncreasePositionRequestStruct,
888
+ overrides?: CallOverrides
889
+ ): Promise<string>;
890
+
891
+ "hashRaw((bytes32,uint256,uint32,uint32,uint256,bytes))"(
892
+ header: IPPTLooperEIP712Types.RequestHeaderStruct,
893
+ overrides?: CallOverrides
894
+ ): Promise<string>;
895
+
896
+ "hashRaw(((address,bytes32,uint256,uint256)))"(
897
+ ms: IPPTLooperEIP712Types.ClaimMMRewardsMessageStruct,
898
+ overrides?: CallOverrides
899
+ ): Promise<string>;
900
+
901
+ "hashRaw(((address,address,bytes),uint256,uint256))"(
902
+ bridge: IPPTLooperEIP712Types.BridgeDataStruct,
990
903
  overrides?: CallOverrides
991
904
  ): Promise<string>;
992
905
 
993
- hashBoxPermit(
994
- permit: IPPTLooper.BoxPermitStruct,
906
+ "hashRaw((address,bytes32,uint256,uint256))"(
907
+ permit: IPPTLooperEIP712Types.BoxPermitStruct,
995
908
  overrides?: CallOverrides
996
909
  ): Promise<string>;
997
910
 
998
- hashRequestHeader(
999
- header: IPPTLooper.RequestHeaderStruct,
911
+ "hashRaw(((bytes32,uint256,uint32,uint32,uint256,bytes),address,bytes,address[]))"(
912
+ req: IPPTLooperEIP712Types.ClaimMMRewardsRequestStruct,
1000
913
  overrides?: CallOverrides
1001
914
  ): Promise<string>;
1002
915
 
1003
- hashTyped_BatchDecPosThenWithdrawReq(
1004
- req: IPPTLooper.BatchDecPosThenWithdrawRequestStruct,
916
+ "hashRaw(((bytes32,uint256,uint32,uint32,uint256,bytes),uint256,uint256))"(
917
+ req: IPPTLooperEIP712Types.DecreasePositionRequestStruct,
1005
918
  overrides?: CallOverrides
1006
919
  ): Promise<string>;
1007
920
 
1008
- hashTyped_DecreasePositionMsg(
1009
- ms: IPPTLooper.DecreasePositionMessageStruct,
921
+ "hashRaw(((bytes32,uint256,uint32,uint32,uint256,bytes),bool,address,address,uint256))"(
922
+ req: IPPTLooperEIP712Types.SwapBridgeWithdrawAllRequestStruct,
1010
923
  overrides?: CallOverrides
1011
924
  ): Promise<string>;
1012
925
 
1013
- hashTyped_DecreasePositionReq(
1014
- req: IPPTLooper.DecreasePositionRequestStruct,
926
+ "hashRaw((address,address,bytes))"(
927
+ call: IPPTLooperEIP712Types.BoxApprovedCallStruct,
1015
928
  overrides?: CallOverrides
1016
929
  ): Promise<string>;
1017
930
 
1018
- hashTyped_IncreasePositionMsg(
1019
- ms: IPPTLooper.IncreasePositionMessageStruct,
931
+ "hashTyped(((bytes32,uint256,uint32,uint32,uint256,bytes),uint256,uint256))"(
932
+ req: IPPTLooperEIP712Types.DecreasePositionRequestStruct,
1020
933
  overrides?: CallOverrides
1021
934
  ): Promise<string>;
1022
935
 
1023
- hashTyped_IncreasePositionReq(
1024
- req: IPPTLooper.IncreasePositionRequestStruct,
936
+ "hashTyped(((address,bytes32,uint256,uint256),(address,address,bytes),((address,address,bytes),uint256,uint256),uint256,bytes))"(
937
+ ms: IPPTLooperEIP712Types.DecreasePositionMessageStruct,
1025
938
  overrides?: CallOverrides
1026
939
  ): Promise<string>;
1027
940
 
1028
- hashTyped_SwapBridgeWithdrawAllMsg(
1029
- ms: IPPTLooper.SwapBridgeWithdrawAllMessageStruct,
941
+ "hashTyped(((address,bytes32,uint256,uint256),(address,address,bytes),uint256,((address,address,bytes),uint256,uint256),uint256,bytes))"(
942
+ ms: IPPTLooperEIP712Types.IncreasePositionMessageStruct,
1030
943
  overrides?: CallOverrides
1031
944
  ): Promise<string>;
1032
945
 
1033
- hashTyped_SwapBridgeWithdrawAllReq(
1034
- req: IPPTLooper.SwapBridgeWithdrawAllRequestStruct,
946
+ "hashTyped(((bytes32,uint256,uint32,uint32,uint256,bytes),bool,address,address,uint256))"(
947
+ req: IPPTLooperEIP712Types.SwapBridgeWithdrawAllRequestStruct,
1035
948
  overrides?: CallOverrides
1036
949
  ): Promise<string>;
1037
950
 
1038
- hashTyped_UserRequestStateSetMsg(
1039
- ms: IPPTLooper.UserRequestStateSetMessageStruct,
951
+ "hashTyped(((bytes32,uint256,uint32,uint32,uint256,bytes),address,bytes,address[]))"(
952
+ req: IPPTLooperEIP712Types.ClaimMMRewardsRequestStruct,
953
+ overrides?: CallOverrides
954
+ ): Promise<string>;
955
+
956
+ "hashTyped(((bytes32,uint256,uint32,uint32,uint256,bytes),address,uint256,uint256,uint256,bool,uint256))"(
957
+ req: IPPTLooperEIP712Types.IncreasePositionRequestStruct,
958
+ overrides?: CallOverrides
959
+ ): Promise<string>;
960
+
961
+ "hashTyped(((address,bytes32,uint256,uint256),(address,address,bytes),((address,address,bytes),uint256,uint256),bytes))"(
962
+ ms: IPPTLooperEIP712Types.SwapBridgeWithdrawAllMessageStruct,
963
+ overrides?: CallOverrides
964
+ ): Promise<string>;
965
+
966
+ "hashTyped(((address,bytes32,uint256,uint256)))"(
967
+ ms: IPPTLooperEIP712Types.ClaimMMRewardsMessageStruct,
1040
968
  overrides?: CallOverrides
1041
969
  ): Promise<string>;
1042
970
 
1043
971
  increaseLoopPosition(
1044
- ms: IPPTLooper.IncreasePositionMessageStruct,
972
+ ms: IPPTLooperEIP712Types.IncreasePositionMessageStruct,
1045
973
  proposerSig: BytesLike,
1046
- req: IPPTLooper.IncreasePositionRequestStruct,
1047
- ownerSig: BytesLike,
974
+ req: IPPTLooperEIP712Types.IncreasePositionRequestStruct,
975
+ ownerSigIfFirstCall: BytesLike,
1048
976
  overrides?: PayableOverrides & { from?: string | Promise<string> }
1049
977
  ): Promise<ContractTransaction>;
1050
978
 
@@ -1053,11 +981,6 @@ export interface PendlePTLooper extends BaseContract {
1053
981
  overrides?: Overrides & { from?: string | Promise<string> }
1054
982
  ): Promise<ContractTransaction>;
1055
983
 
1056
- multicall(
1057
- calls: IMulticall.Call3Struct[],
1058
- overrides?: PayableOverrides & { from?: string | Promise<string> }
1059
- ): Promise<ContractTransaction>;
1060
-
1061
984
  owner(overrides?: CallOverrides): Promise<string>;
1062
985
 
1063
986
  pendingOwner(overrides?: CallOverrides): Promise<string>;
@@ -1065,7 +988,8 @@ export interface PendlePTLooper extends BaseContract {
1065
988
  proposer(overrides?: CallOverrides): Promise<string>;
1066
989
 
1067
990
  proposerNonce(
1068
- ownerSigHash: BytesLike,
991
+ owner: string,
992
+ requestHash: BytesLike,
1069
993
  overrides?: CallOverrides
1070
994
  ): Promise<BigNumber>;
1071
995
 
@@ -1079,26 +1003,19 @@ export interface PendlePTLooper extends BaseContract {
1079
1003
  overrides?: Overrides & { from?: string | Promise<string> }
1080
1004
  ): Promise<ContractTransaction>;
1081
1005
 
1082
- setUserRequestState(
1083
- ms: IPPTLooper.UserRequestStateSetMessageStruct,
1084
- proposerSignature: BytesLike,
1085
- overrides?: Overrides & { from?: string | Promise<string> }
1086
- ): Promise<ContractTransaction>;
1087
-
1088
- "swapBridgeWithdrawAll(((address,bytes32,uint256,bytes32,uint256),(address,address,bytes),(address,address,bytes),uint256,uint256),bytes,(((bytes32,uint256,uint32,uint32),uint256,uint256,uint256),((bytes32,uint256,uint32,uint32),bool,address,address,uint256)),bytes)"(
1089
- ms: IPPTLooper.SwapBridgeWithdrawAllMessageStruct,
1006
+ swapBridgeWithdrawAll(
1007
+ ms: IPPTLooperEIP712Types.SwapBridgeWithdrawAllMessageStruct,
1090
1008
  proposerSig: BytesLike,
1091
- req: IPPTLooper.BatchDecPosThenWithdrawRequestStruct,
1092
- ownerSig: BytesLike,
1009
+ req: IPPTLooperEIP712Types.SwapBridgeWithdrawAllRequestStruct,
1010
+ ownerSigIfFirstCall: BytesLike,
1093
1011
  overrides?: PayableOverrides & { from?: string | Promise<string> }
1094
1012
  ): Promise<ContractTransaction>;
1095
1013
 
1096
- "swapBridgeWithdrawAll(((address,bytes32,uint256,bytes32,uint256),(address,address,bytes),(address,address,bytes),uint256,uint256),bytes,((bytes32,uint256,uint32,uint32),bool,address,address,uint256),bytes)"(
1097
- ms: IPPTLooper.SwapBridgeWithdrawAllMessageStruct,
1098
- proposerSig: BytesLike,
1099
- req: IPPTLooper.SwapBridgeWithdrawAllRequestStruct,
1100
- ownerSig: BytesLike,
1101
- overrides?: PayableOverrides & { from?: string | Promise<string> }
1014
+ terminateSession(
1015
+ owner: string,
1016
+ boxId: BytesLike,
1017
+ requestHash: BytesLike,
1018
+ overrides?: Overrides & { from?: string | Promise<string> }
1102
1019
  ): Promise<ContractTransaction>;
1103
1020
 
1104
1021
  transferOwnership(
@@ -1117,41 +1034,28 @@ export interface PendlePTLooper extends BaseContract {
1117
1034
  callStatic: {
1118
1035
  POSITION_BOX_FACTORY(overrides?: CallOverrides): Promise<string>;
1119
1036
 
1037
+ POST_LOOP_STATE_CHECKER(overrides?: CallOverrides): Promise<string>;
1038
+
1120
1039
  TREASURY(overrides?: CallOverrides): Promise<string>;
1121
1040
 
1122
- claimMoneyMarketRewards(
1123
- owner: string,
1124
- boxId: BytesLike,
1041
+ claimMMRewards(
1042
+ ms: IPPTLooperEIP712Types.ClaimMMRewardsMessageStruct,
1043
+ proposerSig: BytesLike,
1044
+ req: IPPTLooperEIP712Types.ClaimMMRewardsRequestStruct,
1045
+ ownerSigIfFirstCall: BytesLike,
1125
1046
  overrides?: CallOverrides
1126
1047
  ): Promise<void>;
1127
1048
 
1128
1049
  claimOwnership(overrides?: CallOverrides): Promise<void>;
1129
1050
 
1130
- "decreaseLoopPosition(((address,bytes32,uint256,bytes32,uint256),(address,address,bytes),(address,address,bytes),uint256,uint256,uint256,uint256,uint256,uint256),bytes,(((bytes32,uint256,uint32,uint32),uint256,uint256,uint256),((bytes32,uint256,uint32,uint32),bool,address,address,uint256)),bytes)"(
1131
- ms: IPPTLooper.DecreasePositionMessageStruct,
1051
+ decreaseLoopPosition(
1052
+ ms: IPPTLooperEIP712Types.DecreasePositionMessageStruct,
1132
1053
  proposerSig: BytesLike,
1133
- req: IPPTLooper.BatchDecPosThenWithdrawRequestStruct,
1134
- ownerSig: BytesLike,
1054
+ req: IPPTLooperEIP712Types.DecreasePositionRequestStruct,
1055
+ ownerSigIfFirstCall: BytesLike,
1135
1056
  overrides?: CallOverrides
1136
1057
  ): Promise<void>;
1137
1058
 
1138
- "decreaseLoopPosition(((address,bytes32,uint256,bytes32,uint256),(address,address,bytes),(address,address,bytes),uint256,uint256,uint256,uint256,uint256,uint256),bytes,((bytes32,uint256,uint32,uint32),uint256,uint256,uint256),bytes)"(
1139
- ms: IPPTLooper.DecreasePositionMessageStruct,
1140
- proposerSig: BytesLike,
1141
- req: IPPTLooper.DecreasePositionRequestStruct,
1142
- ownerSig: BytesLike,
1143
- overrides?: CallOverrides
1144
- ): Promise<void>;
1145
-
1146
- depositToBox(
1147
- boxId: BytesLike,
1148
- tokenIn: string,
1149
- amountIn: BigNumberish,
1150
- swapCall: IPPTLooper.BoxApprovedCallStruct,
1151
- minDebtTokenSwapOut: BigNumberish,
1152
- overrides?: CallOverrides
1153
- ): Promise<BigNumber>;
1154
-
1155
1059
  eip712Domain(
1156
1060
  overrides?: CallOverrides
1157
1061
  ): Promise<
@@ -1168,76 +1072,101 @@ export interface PendlePTLooper extends BaseContract {
1168
1072
 
1169
1073
  executor(overrides?: CallOverrides): Promise<string>;
1170
1074
 
1171
- hashBoxApprovedCall(
1172
- sb: IPPTLooper.BoxApprovedCallStruct,
1075
+ "hashRaw(((bytes32,uint256,uint32,uint32,uint256,bytes),address,uint256,uint256,uint256,bool,uint256))"(
1076
+ req: IPPTLooperEIP712Types.IncreasePositionRequestStruct,
1077
+ overrides?: CallOverrides
1078
+ ): Promise<string>;
1079
+
1080
+ "hashRaw((bytes32,uint256,uint32,uint32,uint256,bytes))"(
1081
+ header: IPPTLooperEIP712Types.RequestHeaderStruct,
1082
+ overrides?: CallOverrides
1083
+ ): Promise<string>;
1084
+
1085
+ "hashRaw(((address,bytes32,uint256,uint256)))"(
1086
+ ms: IPPTLooperEIP712Types.ClaimMMRewardsMessageStruct,
1173
1087
  overrides?: CallOverrides
1174
1088
  ): Promise<string>;
1175
1089
 
1176
- hashBoxPermit(
1177
- permit: IPPTLooper.BoxPermitStruct,
1090
+ "hashRaw(((address,address,bytes),uint256,uint256))"(
1091
+ bridge: IPPTLooperEIP712Types.BridgeDataStruct,
1178
1092
  overrides?: CallOverrides
1179
1093
  ): Promise<string>;
1180
1094
 
1181
- hashRequestHeader(
1182
- header: IPPTLooper.RequestHeaderStruct,
1095
+ "hashRaw((address,bytes32,uint256,uint256))"(
1096
+ permit: IPPTLooperEIP712Types.BoxPermitStruct,
1183
1097
  overrides?: CallOverrides
1184
1098
  ): Promise<string>;
1185
1099
 
1186
- hashTyped_BatchDecPosThenWithdrawReq(
1187
- req: IPPTLooper.BatchDecPosThenWithdrawRequestStruct,
1100
+ "hashRaw(((bytes32,uint256,uint32,uint32,uint256,bytes),address,bytes,address[]))"(
1101
+ req: IPPTLooperEIP712Types.ClaimMMRewardsRequestStruct,
1188
1102
  overrides?: CallOverrides
1189
1103
  ): Promise<string>;
1190
1104
 
1191
- hashTyped_DecreasePositionMsg(
1192
- ms: IPPTLooper.DecreasePositionMessageStruct,
1105
+ "hashRaw(((bytes32,uint256,uint32,uint32,uint256,bytes),uint256,uint256))"(
1106
+ req: IPPTLooperEIP712Types.DecreasePositionRequestStruct,
1193
1107
  overrides?: CallOverrides
1194
1108
  ): Promise<string>;
1195
1109
 
1196
- hashTyped_DecreasePositionReq(
1197
- req: IPPTLooper.DecreasePositionRequestStruct,
1110
+ "hashRaw(((bytes32,uint256,uint32,uint32,uint256,bytes),bool,address,address,uint256))"(
1111
+ req: IPPTLooperEIP712Types.SwapBridgeWithdrawAllRequestStruct,
1198
1112
  overrides?: CallOverrides
1199
1113
  ): Promise<string>;
1200
1114
 
1201
- hashTyped_IncreasePositionMsg(
1202
- ms: IPPTLooper.IncreasePositionMessageStruct,
1115
+ "hashRaw((address,address,bytes))"(
1116
+ call: IPPTLooperEIP712Types.BoxApprovedCallStruct,
1203
1117
  overrides?: CallOverrides
1204
1118
  ): Promise<string>;
1205
1119
 
1206
- hashTyped_IncreasePositionReq(
1207
- req: IPPTLooper.IncreasePositionRequestStruct,
1120
+ "hashTyped(((bytes32,uint256,uint32,uint32,uint256,bytes),uint256,uint256))"(
1121
+ req: IPPTLooperEIP712Types.DecreasePositionRequestStruct,
1208
1122
  overrides?: CallOverrides
1209
1123
  ): Promise<string>;
1210
1124
 
1211
- hashTyped_SwapBridgeWithdrawAllMsg(
1212
- ms: IPPTLooper.SwapBridgeWithdrawAllMessageStruct,
1125
+ "hashTyped(((address,bytes32,uint256,uint256),(address,address,bytes),((address,address,bytes),uint256,uint256),uint256,bytes))"(
1126
+ ms: IPPTLooperEIP712Types.DecreasePositionMessageStruct,
1213
1127
  overrides?: CallOverrides
1214
1128
  ): Promise<string>;
1215
1129
 
1216
- hashTyped_SwapBridgeWithdrawAllReq(
1217
- req: IPPTLooper.SwapBridgeWithdrawAllRequestStruct,
1130
+ "hashTyped(((address,bytes32,uint256,uint256),(address,address,bytes),uint256,((address,address,bytes),uint256,uint256),uint256,bytes))"(
1131
+ ms: IPPTLooperEIP712Types.IncreasePositionMessageStruct,
1218
1132
  overrides?: CallOverrides
1219
1133
  ): Promise<string>;
1220
1134
 
1221
- hashTyped_UserRequestStateSetMsg(
1222
- ms: IPPTLooper.UserRequestStateSetMessageStruct,
1135
+ "hashTyped(((bytes32,uint256,uint32,uint32,uint256,bytes),bool,address,address,uint256))"(
1136
+ req: IPPTLooperEIP712Types.SwapBridgeWithdrawAllRequestStruct,
1137
+ overrides?: CallOverrides
1138
+ ): Promise<string>;
1139
+
1140
+ "hashTyped(((bytes32,uint256,uint32,uint32,uint256,bytes),address,bytes,address[]))"(
1141
+ req: IPPTLooperEIP712Types.ClaimMMRewardsRequestStruct,
1142
+ overrides?: CallOverrides
1143
+ ): Promise<string>;
1144
+
1145
+ "hashTyped(((bytes32,uint256,uint32,uint32,uint256,bytes),address,uint256,uint256,uint256,bool,uint256))"(
1146
+ req: IPPTLooperEIP712Types.IncreasePositionRequestStruct,
1147
+ overrides?: CallOverrides
1148
+ ): Promise<string>;
1149
+
1150
+ "hashTyped(((address,bytes32,uint256,uint256),(address,address,bytes),((address,address,bytes),uint256,uint256),bytes))"(
1151
+ ms: IPPTLooperEIP712Types.SwapBridgeWithdrawAllMessageStruct,
1152
+ overrides?: CallOverrides
1153
+ ): Promise<string>;
1154
+
1155
+ "hashTyped(((address,bytes32,uint256,uint256)))"(
1156
+ ms: IPPTLooperEIP712Types.ClaimMMRewardsMessageStruct,
1223
1157
  overrides?: CallOverrides
1224
1158
  ): Promise<string>;
1225
1159
 
1226
1160
  increaseLoopPosition(
1227
- ms: IPPTLooper.IncreasePositionMessageStruct,
1161
+ ms: IPPTLooperEIP712Types.IncreasePositionMessageStruct,
1228
1162
  proposerSig: BytesLike,
1229
- req: IPPTLooper.IncreasePositionRequestStruct,
1230
- ownerSig: BytesLike,
1163
+ req: IPPTLooperEIP712Types.IncreasePositionRequestStruct,
1164
+ ownerSigIfFirstCall: BytesLike,
1231
1165
  overrides?: CallOverrides
1232
1166
  ): Promise<void>;
1233
1167
 
1234
1168
  initialize(_owner: string, overrides?: CallOverrides): Promise<void>;
1235
1169
 
1236
- multicall(
1237
- calls: IMulticall.Call3Struct[],
1238
- overrides?: CallOverrides
1239
- ): Promise<IMulticall.ResultStructOutput[]>;
1240
-
1241
1170
  owner(overrides?: CallOverrides): Promise<string>;
1242
1171
 
1243
1172
  pendingOwner(overrides?: CallOverrides): Promise<string>;
@@ -1245,7 +1174,8 @@ export interface PendlePTLooper extends BaseContract {
1245
1174
  proposer(overrides?: CallOverrides): Promise<string>;
1246
1175
 
1247
1176
  proposerNonce(
1248
- ownerSigHash: BytesLike,
1177
+ owner: string,
1178
+ requestHash: BytesLike,
1249
1179
  overrides?: CallOverrides
1250
1180
  ): Promise<BigNumber>;
1251
1181
 
@@ -1253,25 +1183,18 @@ export interface PendlePTLooper extends BaseContract {
1253
1183
 
1254
1184
  setProposer(proposer_: string, overrides?: CallOverrides): Promise<void>;
1255
1185
 
1256
- setUserRequestState(
1257
- ms: IPPTLooper.UserRequestStateSetMessageStruct,
1258
- proposerSignature: BytesLike,
1259
- overrides?: CallOverrides
1260
- ): Promise<void>;
1261
-
1262
- "swapBridgeWithdrawAll(((address,bytes32,uint256,bytes32,uint256),(address,address,bytes),(address,address,bytes),uint256,uint256),bytes,(((bytes32,uint256,uint32,uint32),uint256,uint256,uint256),((bytes32,uint256,uint32,uint32),bool,address,address,uint256)),bytes)"(
1263
- ms: IPPTLooper.SwapBridgeWithdrawAllMessageStruct,
1186
+ swapBridgeWithdrawAll(
1187
+ ms: IPPTLooperEIP712Types.SwapBridgeWithdrawAllMessageStruct,
1264
1188
  proposerSig: BytesLike,
1265
- req: IPPTLooper.BatchDecPosThenWithdrawRequestStruct,
1266
- ownerSig: BytesLike,
1189
+ req: IPPTLooperEIP712Types.SwapBridgeWithdrawAllRequestStruct,
1190
+ ownerSigIfFirstCall: BytesLike,
1267
1191
  overrides?: CallOverrides
1268
1192
  ): Promise<void>;
1269
1193
 
1270
- "swapBridgeWithdrawAll(((address,bytes32,uint256,bytes32,uint256),(address,address,bytes),(address,address,bytes),uint256,uint256),bytes,((bytes32,uint256,uint32,uint32),bool,address,address,uint256),bytes)"(
1271
- ms: IPPTLooper.SwapBridgeWithdrawAllMessageStruct,
1272
- proposerSig: BytesLike,
1273
- req: IPPTLooper.SwapBridgeWithdrawAllRequestStruct,
1274
- ownerSig: BytesLike,
1194
+ terminateSession(
1195
+ owner: string,
1196
+ boxId: BytesLike,
1197
+ requestHash: BytesLike,
1275
1198
  overrides?: CallOverrides
1276
1199
  ): Promise<void>;
1277
1200
 
@@ -1330,7 +1253,7 @@ export interface PendlePTLooper extends BaseContract {
1330
1253
  "PositionDecreased(address,bytes32,bytes32,uint256,uint256,uint256,uint256)"(
1331
1254
  owner?: string | null,
1332
1255
  boxId?: BytesLike | null,
1333
- ownerSigHash?: null,
1256
+ requestHash?: null,
1334
1257
  nonce?: null,
1335
1258
  preDebtBalance?: null,
1336
1259
  netPtToSwap?: null,
@@ -1339,7 +1262,7 @@ export interface PendlePTLooper extends BaseContract {
1339
1262
  PositionDecreased(
1340
1263
  owner?: string | null,
1341
1264
  boxId?: BytesLike | null,
1342
- ownerSigHash?: null,
1265
+ requestHash?: null,
1343
1266
  nonce?: null,
1344
1267
  preDebtBalance?: null,
1345
1268
  netPtToSwap?: null,
@@ -1349,22 +1272,65 @@ export interface PendlePTLooper extends BaseContract {
1349
1272
  "PositionIncreased(address,bytes32,bytes32,uint256,uint256,uint256,uint256)"(
1350
1273
  owner?: string | null,
1351
1274
  boxId?: BytesLike | null,
1352
- ownerSigHash?: null,
1275
+ requestHash?: null,
1353
1276
  nonce?: null,
1354
- preDebtBalance?: null,
1277
+ preInBalance?: null,
1355
1278
  netPtToMM?: null,
1356
1279
  postDebtBalance?: null
1357
1280
  ): PositionIncreasedEventFilter;
1358
1281
  PositionIncreased(
1359
1282
  owner?: string | null,
1360
1283
  boxId?: BytesLike | null,
1361
- ownerSigHash?: null,
1284
+ requestHash?: null,
1362
1285
  nonce?: null,
1363
- preDebtBalance?: null,
1286
+ preInBalance?: null,
1364
1287
  netPtToMM?: null,
1365
1288
  postDebtBalance?: null
1366
1289
  ): PositionIncreasedEventFilter;
1367
1290
 
1291
+ "RewardsClaimed(address,bytes32,bytes32,uint256,address[],uint256[])"(
1292
+ owner?: string | null,
1293
+ boxId?: BytesLike | null,
1294
+ requestHash?: null,
1295
+ nonce?: null,
1296
+ rewardTokens?: null,
1297
+ claimedAmounts?: null
1298
+ ): RewardsClaimedEventFilter;
1299
+ RewardsClaimed(
1300
+ owner?: string | null,
1301
+ boxId?: BytesLike | null,
1302
+ requestHash?: null,
1303
+ nonce?: null,
1304
+ rewardTokens?: null,
1305
+ claimedAmounts?: null
1306
+ ): RewardsClaimedEventFilter;
1307
+
1308
+ "SessionInitiated(address,bytes32,bytes32,uint32)"(
1309
+ owner?: string | null,
1310
+ boxId?: BytesLike | null,
1311
+ requestHash?: null,
1312
+ sessionNonce?: null
1313
+ ): SessionInitiatedEventFilter;
1314
+ SessionInitiated(
1315
+ owner?: string | null,
1316
+ boxId?: BytesLike | null,
1317
+ requestHash?: null,
1318
+ sessionNonce?: null
1319
+ ): SessionInitiatedEventFilter;
1320
+
1321
+ "SessionTerminated(address,bytes32,bytes32,uint32)"(
1322
+ owner?: string | null,
1323
+ boxId?: BytesLike | null,
1324
+ requestHash?: null,
1325
+ sessionNonce?: null
1326
+ ): SessionTerminatedEventFilter;
1327
+ SessionTerminated(
1328
+ owner?: string | null,
1329
+ boxId?: BytesLike | null,
1330
+ requestHash?: null,
1331
+ sessionNonce?: null
1332
+ ): SessionTerminatedEventFilter;
1333
+
1368
1334
  "SetExecutor(address)"(executor?: null): SetExecutorEventFilter;
1369
1335
  SetExecutor(executor?: null): SetExecutorEventFilter;
1370
1336
 
@@ -1387,59 +1353,46 @@ export interface PendlePTLooper extends BaseContract {
1387
1353
  tokenIn?: string | null,
1388
1354
  netIn?: null,
1389
1355
  tokenOut?: string | null,
1390
- netOut?: null
1356
+ netSwappedOut?: null
1391
1357
  ): TokenSwappedEventFilter;
1392
1358
  TokenSwapped(
1393
1359
  box?: string | null,
1394
1360
  tokenIn?: string | null,
1395
1361
  netIn?: null,
1396
1362
  tokenOut?: string | null,
1397
- netOut?: null
1363
+ netSwappedOut?: null
1398
1364
  ): TokenSwappedEventFilter;
1399
1365
 
1400
- "UserRequestStateSet(address,bytes32,bytes32,uint32,bool)"(
1366
+ "Withdrawn(address,bytes32,bytes32,uint256,address,uint256)"(
1401
1367
  owner?: string | null,
1402
1368
  boxId?: BytesLike | null,
1403
- ownerSigHash?: null,
1404
- sessionNonce?: null,
1405
- isInitiate?: null
1406
- ): UserRequestStateSetEventFilter;
1407
- UserRequestStateSet(
1408
- owner?: string | null,
1409
- boxId?: BytesLike | null,
1410
- ownerSigHash?: null,
1411
- sessionNonce?: null,
1412
- isInitiate?: null
1413
- ): UserRequestStateSetEventFilter;
1414
-
1415
- "Withdrawn(address,bytes32,bytes32,uint256,address,uint256,uint256)"(
1416
- owner?: string | null,
1417
- boxId?: BytesLike | null,
1418
- ownerSigHash?: null,
1369
+ requestHash?: null,
1419
1370
  nonce?: null,
1420
1371
  tokenOut?: null,
1421
- netOut?: null,
1422
- fee?: null
1372
+ netOut?: null
1423
1373
  ): WithdrawnEventFilter;
1424
1374
  Withdrawn(
1425
1375
  owner?: string | null,
1426
1376
  boxId?: BytesLike | null,
1427
- ownerSigHash?: null,
1377
+ requestHash?: null,
1428
1378
  nonce?: null,
1429
1379
  tokenOut?: null,
1430
- netOut?: null,
1431
- fee?: null
1380
+ netOut?: null
1432
1381
  ): WithdrawnEventFilter;
1433
1382
  };
1434
1383
 
1435
1384
  estimateGas: {
1436
1385
  POSITION_BOX_FACTORY(overrides?: CallOverrides): Promise<BigNumber>;
1437
1386
 
1387
+ POST_LOOP_STATE_CHECKER(overrides?: CallOverrides): Promise<BigNumber>;
1388
+
1438
1389
  TREASURY(overrides?: CallOverrides): Promise<BigNumber>;
1439
1390
 
1440
- claimMoneyMarketRewards(
1441
- owner: string,
1442
- boxId: BytesLike,
1391
+ claimMMRewards(
1392
+ ms: IPPTLooperEIP712Types.ClaimMMRewardsMessageStruct,
1393
+ proposerSig: BytesLike,
1394
+ req: IPPTLooperEIP712Types.ClaimMMRewardsRequestStruct,
1395
+ ownerSigIfFirstCall: BytesLike,
1443
1396
  overrides?: Overrides & { from?: string | Promise<string> }
1444
1397
  ): Promise<BigNumber>;
1445
1398
 
@@ -1447,95 +1400,108 @@ export interface PendlePTLooper extends BaseContract {
1447
1400
  overrides?: Overrides & { from?: string | Promise<string> }
1448
1401
  ): Promise<BigNumber>;
1449
1402
 
1450
- "decreaseLoopPosition(((address,bytes32,uint256,bytes32,uint256),(address,address,bytes),(address,address,bytes),uint256,uint256,uint256,uint256,uint256,uint256),bytes,(((bytes32,uint256,uint32,uint32),uint256,uint256,uint256),((bytes32,uint256,uint32,uint32),bool,address,address,uint256)),bytes)"(
1451
- ms: IPPTLooper.DecreasePositionMessageStruct,
1403
+ decreaseLoopPosition(
1404
+ ms: IPPTLooperEIP712Types.DecreasePositionMessageStruct,
1452
1405
  proposerSig: BytesLike,
1453
- req: IPPTLooper.BatchDecPosThenWithdrawRequestStruct,
1454
- ownerSig: BytesLike,
1406
+ req: IPPTLooperEIP712Types.DecreasePositionRequestStruct,
1407
+ ownerSigIfFirstCall: BytesLike,
1455
1408
  overrides?: PayableOverrides & { from?: string | Promise<string> }
1456
1409
  ): Promise<BigNumber>;
1457
1410
 
1458
- "decreaseLoopPosition(((address,bytes32,uint256,bytes32,uint256),(address,address,bytes),(address,address,bytes),uint256,uint256,uint256,uint256,uint256,uint256),bytes,((bytes32,uint256,uint32,uint32),uint256,uint256,uint256),bytes)"(
1459
- ms: IPPTLooper.DecreasePositionMessageStruct,
1460
- proposerSig: BytesLike,
1461
- req: IPPTLooper.DecreasePositionRequestStruct,
1462
- ownerSig: BytesLike,
1463
- overrides?: PayableOverrides & { from?: string | Promise<string> }
1411
+ eip712Domain(overrides?: CallOverrides): Promise<BigNumber>;
1412
+
1413
+ executor(overrides?: CallOverrides): Promise<BigNumber>;
1414
+
1415
+ "hashRaw(((bytes32,uint256,uint32,uint32,uint256,bytes),address,uint256,uint256,uint256,bool,uint256))"(
1416
+ req: IPPTLooperEIP712Types.IncreasePositionRequestStruct,
1417
+ overrides?: CallOverrides
1464
1418
  ): Promise<BigNumber>;
1465
1419
 
1466
- depositToBox(
1467
- boxId: BytesLike,
1468
- tokenIn: string,
1469
- amountIn: BigNumberish,
1470
- swapCall: IPPTLooper.BoxApprovedCallStruct,
1471
- minDebtTokenSwapOut: BigNumberish,
1472
- overrides?: PayableOverrides & { from?: string | Promise<string> }
1420
+ "hashRaw((bytes32,uint256,uint32,uint32,uint256,bytes))"(
1421
+ header: IPPTLooperEIP712Types.RequestHeaderStruct,
1422
+ overrides?: CallOverrides
1473
1423
  ): Promise<BigNumber>;
1474
1424
 
1475
- eip712Domain(overrides?: CallOverrides): Promise<BigNumber>;
1425
+ "hashRaw(((address,bytes32,uint256,uint256)))"(
1426
+ ms: IPPTLooperEIP712Types.ClaimMMRewardsMessageStruct,
1427
+ overrides?: CallOverrides
1428
+ ): Promise<BigNumber>;
1476
1429
 
1477
- executor(overrides?: CallOverrides): Promise<BigNumber>;
1430
+ "hashRaw(((address,address,bytes),uint256,uint256))"(
1431
+ bridge: IPPTLooperEIP712Types.BridgeDataStruct,
1432
+ overrides?: CallOverrides
1433
+ ): Promise<BigNumber>;
1478
1434
 
1479
- hashBoxApprovedCall(
1480
- sb: IPPTLooper.BoxApprovedCallStruct,
1435
+ "hashRaw((address,bytes32,uint256,uint256))"(
1436
+ permit: IPPTLooperEIP712Types.BoxPermitStruct,
1481
1437
  overrides?: CallOverrides
1482
1438
  ): Promise<BigNumber>;
1483
1439
 
1484
- hashBoxPermit(
1485
- permit: IPPTLooper.BoxPermitStruct,
1440
+ "hashRaw(((bytes32,uint256,uint32,uint32,uint256,bytes),address,bytes,address[]))"(
1441
+ req: IPPTLooperEIP712Types.ClaimMMRewardsRequestStruct,
1486
1442
  overrides?: CallOverrides
1487
1443
  ): Promise<BigNumber>;
1488
1444
 
1489
- hashRequestHeader(
1490
- header: IPPTLooper.RequestHeaderStruct,
1445
+ "hashRaw(((bytes32,uint256,uint32,uint32,uint256,bytes),uint256,uint256))"(
1446
+ req: IPPTLooperEIP712Types.DecreasePositionRequestStruct,
1491
1447
  overrides?: CallOverrides
1492
1448
  ): Promise<BigNumber>;
1493
1449
 
1494
- hashTyped_BatchDecPosThenWithdrawReq(
1495
- req: IPPTLooper.BatchDecPosThenWithdrawRequestStruct,
1450
+ "hashRaw(((bytes32,uint256,uint32,uint32,uint256,bytes),bool,address,address,uint256))"(
1451
+ req: IPPTLooperEIP712Types.SwapBridgeWithdrawAllRequestStruct,
1496
1452
  overrides?: CallOverrides
1497
1453
  ): Promise<BigNumber>;
1498
1454
 
1499
- hashTyped_DecreasePositionMsg(
1500
- ms: IPPTLooper.DecreasePositionMessageStruct,
1455
+ "hashRaw((address,address,bytes))"(
1456
+ call: IPPTLooperEIP712Types.BoxApprovedCallStruct,
1501
1457
  overrides?: CallOverrides
1502
1458
  ): Promise<BigNumber>;
1503
1459
 
1504
- hashTyped_DecreasePositionReq(
1505
- req: IPPTLooper.DecreasePositionRequestStruct,
1460
+ "hashTyped(((bytes32,uint256,uint32,uint32,uint256,bytes),uint256,uint256))"(
1461
+ req: IPPTLooperEIP712Types.DecreasePositionRequestStruct,
1506
1462
  overrides?: CallOverrides
1507
1463
  ): Promise<BigNumber>;
1508
1464
 
1509
- hashTyped_IncreasePositionMsg(
1510
- ms: IPPTLooper.IncreasePositionMessageStruct,
1465
+ "hashTyped(((address,bytes32,uint256,uint256),(address,address,bytes),((address,address,bytes),uint256,uint256),uint256,bytes))"(
1466
+ ms: IPPTLooperEIP712Types.DecreasePositionMessageStruct,
1511
1467
  overrides?: CallOverrides
1512
1468
  ): Promise<BigNumber>;
1513
1469
 
1514
- hashTyped_IncreasePositionReq(
1515
- req: IPPTLooper.IncreasePositionRequestStruct,
1470
+ "hashTyped(((address,bytes32,uint256,uint256),(address,address,bytes),uint256,((address,address,bytes),uint256,uint256),uint256,bytes))"(
1471
+ ms: IPPTLooperEIP712Types.IncreasePositionMessageStruct,
1516
1472
  overrides?: CallOverrides
1517
1473
  ): Promise<BigNumber>;
1518
1474
 
1519
- hashTyped_SwapBridgeWithdrawAllMsg(
1520
- ms: IPPTLooper.SwapBridgeWithdrawAllMessageStruct,
1475
+ "hashTyped(((bytes32,uint256,uint32,uint32,uint256,bytes),bool,address,address,uint256))"(
1476
+ req: IPPTLooperEIP712Types.SwapBridgeWithdrawAllRequestStruct,
1521
1477
  overrides?: CallOverrides
1522
1478
  ): Promise<BigNumber>;
1523
1479
 
1524
- hashTyped_SwapBridgeWithdrawAllReq(
1525
- req: IPPTLooper.SwapBridgeWithdrawAllRequestStruct,
1480
+ "hashTyped(((bytes32,uint256,uint32,uint32,uint256,bytes),address,bytes,address[]))"(
1481
+ req: IPPTLooperEIP712Types.ClaimMMRewardsRequestStruct,
1526
1482
  overrides?: CallOverrides
1527
1483
  ): Promise<BigNumber>;
1528
1484
 
1529
- hashTyped_UserRequestStateSetMsg(
1530
- ms: IPPTLooper.UserRequestStateSetMessageStruct,
1485
+ "hashTyped(((bytes32,uint256,uint32,uint32,uint256,bytes),address,uint256,uint256,uint256,bool,uint256))"(
1486
+ req: IPPTLooperEIP712Types.IncreasePositionRequestStruct,
1487
+ overrides?: CallOverrides
1488
+ ): Promise<BigNumber>;
1489
+
1490
+ "hashTyped(((address,bytes32,uint256,uint256),(address,address,bytes),((address,address,bytes),uint256,uint256),bytes))"(
1491
+ ms: IPPTLooperEIP712Types.SwapBridgeWithdrawAllMessageStruct,
1492
+ overrides?: CallOverrides
1493
+ ): Promise<BigNumber>;
1494
+
1495
+ "hashTyped(((address,bytes32,uint256,uint256)))"(
1496
+ ms: IPPTLooperEIP712Types.ClaimMMRewardsMessageStruct,
1531
1497
  overrides?: CallOverrides
1532
1498
  ): Promise<BigNumber>;
1533
1499
 
1534
1500
  increaseLoopPosition(
1535
- ms: IPPTLooper.IncreasePositionMessageStruct,
1501
+ ms: IPPTLooperEIP712Types.IncreasePositionMessageStruct,
1536
1502
  proposerSig: BytesLike,
1537
- req: IPPTLooper.IncreasePositionRequestStruct,
1538
- ownerSig: BytesLike,
1503
+ req: IPPTLooperEIP712Types.IncreasePositionRequestStruct,
1504
+ ownerSigIfFirstCall: BytesLike,
1539
1505
  overrides?: PayableOverrides & { from?: string | Promise<string> }
1540
1506
  ): Promise<BigNumber>;
1541
1507
 
@@ -1544,11 +1510,6 @@ export interface PendlePTLooper extends BaseContract {
1544
1510
  overrides?: Overrides & { from?: string | Promise<string> }
1545
1511
  ): Promise<BigNumber>;
1546
1512
 
1547
- multicall(
1548
- calls: IMulticall.Call3Struct[],
1549
- overrides?: PayableOverrides & { from?: string | Promise<string> }
1550
- ): Promise<BigNumber>;
1551
-
1552
1513
  owner(overrides?: CallOverrides): Promise<BigNumber>;
1553
1514
 
1554
1515
  pendingOwner(overrides?: CallOverrides): Promise<BigNumber>;
@@ -1556,7 +1517,8 @@ export interface PendlePTLooper extends BaseContract {
1556
1517
  proposer(overrides?: CallOverrides): Promise<BigNumber>;
1557
1518
 
1558
1519
  proposerNonce(
1559
- ownerSigHash: BytesLike,
1520
+ owner: string,
1521
+ requestHash: BytesLike,
1560
1522
  overrides?: CallOverrides
1561
1523
  ): Promise<BigNumber>;
1562
1524
 
@@ -1570,26 +1532,19 @@ export interface PendlePTLooper extends BaseContract {
1570
1532
  overrides?: Overrides & { from?: string | Promise<string> }
1571
1533
  ): Promise<BigNumber>;
1572
1534
 
1573
- setUserRequestState(
1574
- ms: IPPTLooper.UserRequestStateSetMessageStruct,
1575
- proposerSignature: BytesLike,
1576
- overrides?: Overrides & { from?: string | Promise<string> }
1577
- ): Promise<BigNumber>;
1578
-
1579
- "swapBridgeWithdrawAll(((address,bytes32,uint256,bytes32,uint256),(address,address,bytes),(address,address,bytes),uint256,uint256),bytes,(((bytes32,uint256,uint32,uint32),uint256,uint256,uint256),((bytes32,uint256,uint32,uint32),bool,address,address,uint256)),bytes)"(
1580
- ms: IPPTLooper.SwapBridgeWithdrawAllMessageStruct,
1535
+ swapBridgeWithdrawAll(
1536
+ ms: IPPTLooperEIP712Types.SwapBridgeWithdrawAllMessageStruct,
1581
1537
  proposerSig: BytesLike,
1582
- req: IPPTLooper.BatchDecPosThenWithdrawRequestStruct,
1583
- ownerSig: BytesLike,
1538
+ req: IPPTLooperEIP712Types.SwapBridgeWithdrawAllRequestStruct,
1539
+ ownerSigIfFirstCall: BytesLike,
1584
1540
  overrides?: PayableOverrides & { from?: string | Promise<string> }
1585
1541
  ): Promise<BigNumber>;
1586
1542
 
1587
- "swapBridgeWithdrawAll(((address,bytes32,uint256,bytes32,uint256),(address,address,bytes),(address,address,bytes),uint256,uint256),bytes,((bytes32,uint256,uint32,uint32),bool,address,address,uint256),bytes)"(
1588
- ms: IPPTLooper.SwapBridgeWithdrawAllMessageStruct,
1589
- proposerSig: BytesLike,
1590
- req: IPPTLooper.SwapBridgeWithdrawAllRequestStruct,
1591
- ownerSig: BytesLike,
1592
- overrides?: PayableOverrides & { from?: string | Promise<string> }
1543
+ terminateSession(
1544
+ owner: string,
1545
+ boxId: BytesLike,
1546
+ requestHash: BytesLike,
1547
+ overrides?: Overrides & { from?: string | Promise<string> }
1593
1548
  ): Promise<BigNumber>;
1594
1549
 
1595
1550
  transferOwnership(
@@ -1611,11 +1566,17 @@ export interface PendlePTLooper extends BaseContract {
1611
1566
  overrides?: CallOverrides
1612
1567
  ): Promise<PopulatedTransaction>;
1613
1568
 
1569
+ POST_LOOP_STATE_CHECKER(
1570
+ overrides?: CallOverrides
1571
+ ): Promise<PopulatedTransaction>;
1572
+
1614
1573
  TREASURY(overrides?: CallOverrides): Promise<PopulatedTransaction>;
1615
1574
 
1616
- claimMoneyMarketRewards(
1617
- owner: string,
1618
- boxId: BytesLike,
1575
+ claimMMRewards(
1576
+ ms: IPPTLooperEIP712Types.ClaimMMRewardsMessageStruct,
1577
+ proposerSig: BytesLike,
1578
+ req: IPPTLooperEIP712Types.ClaimMMRewardsRequestStruct,
1579
+ ownerSigIfFirstCall: BytesLike,
1619
1580
  overrides?: Overrides & { from?: string | Promise<string> }
1620
1581
  ): Promise<PopulatedTransaction>;
1621
1582
 
@@ -1623,95 +1584,108 @@ export interface PendlePTLooper extends BaseContract {
1623
1584
  overrides?: Overrides & { from?: string | Promise<string> }
1624
1585
  ): Promise<PopulatedTransaction>;
1625
1586
 
1626
- "decreaseLoopPosition(((address,bytes32,uint256,bytes32,uint256),(address,address,bytes),(address,address,bytes),uint256,uint256,uint256,uint256,uint256,uint256),bytes,(((bytes32,uint256,uint32,uint32),uint256,uint256,uint256),((bytes32,uint256,uint32,uint32),bool,address,address,uint256)),bytes)"(
1627
- ms: IPPTLooper.DecreasePositionMessageStruct,
1587
+ decreaseLoopPosition(
1588
+ ms: IPPTLooperEIP712Types.DecreasePositionMessageStruct,
1628
1589
  proposerSig: BytesLike,
1629
- req: IPPTLooper.BatchDecPosThenWithdrawRequestStruct,
1630
- ownerSig: BytesLike,
1590
+ req: IPPTLooperEIP712Types.DecreasePositionRequestStruct,
1591
+ ownerSigIfFirstCall: BytesLike,
1631
1592
  overrides?: PayableOverrides & { from?: string | Promise<string> }
1632
1593
  ): Promise<PopulatedTransaction>;
1633
1594
 
1634
- "decreaseLoopPosition(((address,bytes32,uint256,bytes32,uint256),(address,address,bytes),(address,address,bytes),uint256,uint256,uint256,uint256,uint256,uint256),bytes,((bytes32,uint256,uint32,uint32),uint256,uint256,uint256),bytes)"(
1635
- ms: IPPTLooper.DecreasePositionMessageStruct,
1636
- proposerSig: BytesLike,
1637
- req: IPPTLooper.DecreasePositionRequestStruct,
1638
- ownerSig: BytesLike,
1639
- overrides?: PayableOverrides & { from?: string | Promise<string> }
1595
+ eip712Domain(overrides?: CallOverrides): Promise<PopulatedTransaction>;
1596
+
1597
+ executor(overrides?: CallOverrides): Promise<PopulatedTransaction>;
1598
+
1599
+ "hashRaw(((bytes32,uint256,uint32,uint32,uint256,bytes),address,uint256,uint256,uint256,bool,uint256))"(
1600
+ req: IPPTLooperEIP712Types.IncreasePositionRequestStruct,
1601
+ overrides?: CallOverrides
1640
1602
  ): Promise<PopulatedTransaction>;
1641
1603
 
1642
- depositToBox(
1643
- boxId: BytesLike,
1644
- tokenIn: string,
1645
- amountIn: BigNumberish,
1646
- swapCall: IPPTLooper.BoxApprovedCallStruct,
1647
- minDebtTokenSwapOut: BigNumberish,
1648
- overrides?: PayableOverrides & { from?: string | Promise<string> }
1604
+ "hashRaw((bytes32,uint256,uint32,uint32,uint256,bytes))"(
1605
+ header: IPPTLooperEIP712Types.RequestHeaderStruct,
1606
+ overrides?: CallOverrides
1649
1607
  ): Promise<PopulatedTransaction>;
1650
1608
 
1651
- eip712Domain(overrides?: CallOverrides): Promise<PopulatedTransaction>;
1609
+ "hashRaw(((address,bytes32,uint256,uint256)))"(
1610
+ ms: IPPTLooperEIP712Types.ClaimMMRewardsMessageStruct,
1611
+ overrides?: CallOverrides
1612
+ ): Promise<PopulatedTransaction>;
1652
1613
 
1653
- executor(overrides?: CallOverrides): Promise<PopulatedTransaction>;
1614
+ "hashRaw(((address,address,bytes),uint256,uint256))"(
1615
+ bridge: IPPTLooperEIP712Types.BridgeDataStruct,
1616
+ overrides?: CallOverrides
1617
+ ): Promise<PopulatedTransaction>;
1618
+
1619
+ "hashRaw((address,bytes32,uint256,uint256))"(
1620
+ permit: IPPTLooperEIP712Types.BoxPermitStruct,
1621
+ overrides?: CallOverrides
1622
+ ): Promise<PopulatedTransaction>;
1623
+
1624
+ "hashRaw(((bytes32,uint256,uint32,uint32,uint256,bytes),address,bytes,address[]))"(
1625
+ req: IPPTLooperEIP712Types.ClaimMMRewardsRequestStruct,
1626
+ overrides?: CallOverrides
1627
+ ): Promise<PopulatedTransaction>;
1654
1628
 
1655
- hashBoxApprovedCall(
1656
- sb: IPPTLooper.BoxApprovedCallStruct,
1629
+ "hashRaw(((bytes32,uint256,uint32,uint32,uint256,bytes),uint256,uint256))"(
1630
+ req: IPPTLooperEIP712Types.DecreasePositionRequestStruct,
1657
1631
  overrides?: CallOverrides
1658
1632
  ): Promise<PopulatedTransaction>;
1659
1633
 
1660
- hashBoxPermit(
1661
- permit: IPPTLooper.BoxPermitStruct,
1634
+ "hashRaw(((bytes32,uint256,uint32,uint32,uint256,bytes),bool,address,address,uint256))"(
1635
+ req: IPPTLooperEIP712Types.SwapBridgeWithdrawAllRequestStruct,
1662
1636
  overrides?: CallOverrides
1663
1637
  ): Promise<PopulatedTransaction>;
1664
1638
 
1665
- hashRequestHeader(
1666
- header: IPPTLooper.RequestHeaderStruct,
1639
+ "hashRaw((address,address,bytes))"(
1640
+ call: IPPTLooperEIP712Types.BoxApprovedCallStruct,
1667
1641
  overrides?: CallOverrides
1668
1642
  ): Promise<PopulatedTransaction>;
1669
1643
 
1670
- hashTyped_BatchDecPosThenWithdrawReq(
1671
- req: IPPTLooper.BatchDecPosThenWithdrawRequestStruct,
1644
+ "hashTyped(((bytes32,uint256,uint32,uint32,uint256,bytes),uint256,uint256))"(
1645
+ req: IPPTLooperEIP712Types.DecreasePositionRequestStruct,
1672
1646
  overrides?: CallOverrides
1673
1647
  ): Promise<PopulatedTransaction>;
1674
1648
 
1675
- hashTyped_DecreasePositionMsg(
1676
- ms: IPPTLooper.DecreasePositionMessageStruct,
1649
+ "hashTyped(((address,bytes32,uint256,uint256),(address,address,bytes),((address,address,bytes),uint256,uint256),uint256,bytes))"(
1650
+ ms: IPPTLooperEIP712Types.DecreasePositionMessageStruct,
1677
1651
  overrides?: CallOverrides
1678
1652
  ): Promise<PopulatedTransaction>;
1679
1653
 
1680
- hashTyped_DecreasePositionReq(
1681
- req: IPPTLooper.DecreasePositionRequestStruct,
1654
+ "hashTyped(((address,bytes32,uint256,uint256),(address,address,bytes),uint256,((address,address,bytes),uint256,uint256),uint256,bytes))"(
1655
+ ms: IPPTLooperEIP712Types.IncreasePositionMessageStruct,
1682
1656
  overrides?: CallOverrides
1683
1657
  ): Promise<PopulatedTransaction>;
1684
1658
 
1685
- hashTyped_IncreasePositionMsg(
1686
- ms: IPPTLooper.IncreasePositionMessageStruct,
1659
+ "hashTyped(((bytes32,uint256,uint32,uint32,uint256,bytes),bool,address,address,uint256))"(
1660
+ req: IPPTLooperEIP712Types.SwapBridgeWithdrawAllRequestStruct,
1687
1661
  overrides?: CallOverrides
1688
1662
  ): Promise<PopulatedTransaction>;
1689
1663
 
1690
- hashTyped_IncreasePositionReq(
1691
- req: IPPTLooper.IncreasePositionRequestStruct,
1664
+ "hashTyped(((bytes32,uint256,uint32,uint32,uint256,bytes),address,bytes,address[]))"(
1665
+ req: IPPTLooperEIP712Types.ClaimMMRewardsRequestStruct,
1692
1666
  overrides?: CallOverrides
1693
1667
  ): Promise<PopulatedTransaction>;
1694
1668
 
1695
- hashTyped_SwapBridgeWithdrawAllMsg(
1696
- ms: IPPTLooper.SwapBridgeWithdrawAllMessageStruct,
1669
+ "hashTyped(((bytes32,uint256,uint32,uint32,uint256,bytes),address,uint256,uint256,uint256,bool,uint256))"(
1670
+ req: IPPTLooperEIP712Types.IncreasePositionRequestStruct,
1697
1671
  overrides?: CallOverrides
1698
1672
  ): Promise<PopulatedTransaction>;
1699
1673
 
1700
- hashTyped_SwapBridgeWithdrawAllReq(
1701
- req: IPPTLooper.SwapBridgeWithdrawAllRequestStruct,
1674
+ "hashTyped(((address,bytes32,uint256,uint256),(address,address,bytes),((address,address,bytes),uint256,uint256),bytes))"(
1675
+ ms: IPPTLooperEIP712Types.SwapBridgeWithdrawAllMessageStruct,
1702
1676
  overrides?: CallOverrides
1703
1677
  ): Promise<PopulatedTransaction>;
1704
1678
 
1705
- hashTyped_UserRequestStateSetMsg(
1706
- ms: IPPTLooper.UserRequestStateSetMessageStruct,
1679
+ "hashTyped(((address,bytes32,uint256,uint256)))"(
1680
+ ms: IPPTLooperEIP712Types.ClaimMMRewardsMessageStruct,
1707
1681
  overrides?: CallOverrides
1708
1682
  ): Promise<PopulatedTransaction>;
1709
1683
 
1710
1684
  increaseLoopPosition(
1711
- ms: IPPTLooper.IncreasePositionMessageStruct,
1685
+ ms: IPPTLooperEIP712Types.IncreasePositionMessageStruct,
1712
1686
  proposerSig: BytesLike,
1713
- req: IPPTLooper.IncreasePositionRequestStruct,
1714
- ownerSig: BytesLike,
1687
+ req: IPPTLooperEIP712Types.IncreasePositionRequestStruct,
1688
+ ownerSigIfFirstCall: BytesLike,
1715
1689
  overrides?: PayableOverrides & { from?: string | Promise<string> }
1716
1690
  ): Promise<PopulatedTransaction>;
1717
1691
 
@@ -1720,11 +1694,6 @@ export interface PendlePTLooper extends BaseContract {
1720
1694
  overrides?: Overrides & { from?: string | Promise<string> }
1721
1695
  ): Promise<PopulatedTransaction>;
1722
1696
 
1723
- multicall(
1724
- calls: IMulticall.Call3Struct[],
1725
- overrides?: PayableOverrides & { from?: string | Promise<string> }
1726
- ): Promise<PopulatedTransaction>;
1727
-
1728
1697
  owner(overrides?: CallOverrides): Promise<PopulatedTransaction>;
1729
1698
 
1730
1699
  pendingOwner(overrides?: CallOverrides): Promise<PopulatedTransaction>;
@@ -1732,7 +1701,8 @@ export interface PendlePTLooper extends BaseContract {
1732
1701
  proposer(overrides?: CallOverrides): Promise<PopulatedTransaction>;
1733
1702
 
1734
1703
  proposerNonce(
1735
- ownerSigHash: BytesLike,
1704
+ owner: string,
1705
+ requestHash: BytesLike,
1736
1706
  overrides?: CallOverrides
1737
1707
  ): Promise<PopulatedTransaction>;
1738
1708
 
@@ -1746,26 +1716,19 @@ export interface PendlePTLooper extends BaseContract {
1746
1716
  overrides?: Overrides & { from?: string | Promise<string> }
1747
1717
  ): Promise<PopulatedTransaction>;
1748
1718
 
1749
- setUserRequestState(
1750
- ms: IPPTLooper.UserRequestStateSetMessageStruct,
1751
- proposerSignature: BytesLike,
1752
- overrides?: Overrides & { from?: string | Promise<string> }
1753
- ): Promise<PopulatedTransaction>;
1754
-
1755
- "swapBridgeWithdrawAll(((address,bytes32,uint256,bytes32,uint256),(address,address,bytes),(address,address,bytes),uint256,uint256),bytes,(((bytes32,uint256,uint32,uint32),uint256,uint256,uint256),((bytes32,uint256,uint32,uint32),bool,address,address,uint256)),bytes)"(
1756
- ms: IPPTLooper.SwapBridgeWithdrawAllMessageStruct,
1719
+ swapBridgeWithdrawAll(
1720
+ ms: IPPTLooperEIP712Types.SwapBridgeWithdrawAllMessageStruct,
1757
1721
  proposerSig: BytesLike,
1758
- req: IPPTLooper.BatchDecPosThenWithdrawRequestStruct,
1759
- ownerSig: BytesLike,
1722
+ req: IPPTLooperEIP712Types.SwapBridgeWithdrawAllRequestStruct,
1723
+ ownerSigIfFirstCall: BytesLike,
1760
1724
  overrides?: PayableOverrides & { from?: string | Promise<string> }
1761
1725
  ): Promise<PopulatedTransaction>;
1762
1726
 
1763
- "swapBridgeWithdrawAll(((address,bytes32,uint256,bytes32,uint256),(address,address,bytes),(address,address,bytes),uint256,uint256),bytes,((bytes32,uint256,uint32,uint32),bool,address,address,uint256),bytes)"(
1764
- ms: IPPTLooper.SwapBridgeWithdrawAllMessageStruct,
1765
- proposerSig: BytesLike,
1766
- req: IPPTLooper.SwapBridgeWithdrawAllRequestStruct,
1767
- ownerSig: BytesLike,
1768
- overrides?: PayableOverrides & { from?: string | Promise<string> }
1727
+ terminateSession(
1728
+ owner: string,
1729
+ boxId: BytesLike,
1730
+ requestHash: BytesLike,
1731
+ overrides?: Overrides & { from?: string | Promise<string> }
1769
1732
  ): Promise<PopulatedTransaction>;
1770
1733
 
1771
1734
  transferOwnership(