@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,258 +102,184 @@ 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,
186
- BigNumber,
187
- BigNumber,
219
+ IPPTLooperEIP712Types.BoxPermitStructOutput,
220
+ IPPTLooperEIP712Types.BoxApprovedCallStructOutput,
188
221
  BigNumber,
222
+ IPPTLooperEIP712Types.BridgeDataStructOutput,
189
223
  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 IPPTLooperInterface extends utils.Interface {
287
267
  contractName: "IPPTLooper";
288
268
  functions: {
289
269
  "POSITION_BOX_FACTORY()": FunctionFragment;
290
- "claimMoneyMarketRewards(address,bytes32)": FunctionFragment;
291
- "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;
292
- "depositToBox(bytes32,address,uint256,(address,address,bytes),uint256)": FunctionFragment;
270
+ "POST_LOOP_STATE_CHECKER()": FunctionFragment;
271
+ "claimMMRewards(((address,bytes32,uint256,uint256)),bytes,((bytes32,uint256,uint32,uint32,uint256,bytes),address,bytes,address[]),bytes)": FunctionFragment;
272
+ "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;
293
273
  "executor()": FunctionFragment;
294
- "hashBoxApprovedCall((address,address,bytes))": FunctionFragment;
295
- "hashBoxPermit((address,bytes32,uint256,bytes32,uint256))": FunctionFragment;
296
- "hashRequestHeader((bytes32,uint256,uint32,uint32))": FunctionFragment;
297
- "hashTyped_BatchDecPosThenWithdrawReq((((bytes32,uint256,uint32,uint32),uint256,uint256,uint256),((bytes32,uint256,uint32,uint32),bool,address,address,uint256)))": FunctionFragment;
298
- "hashTyped_DecreasePositionMsg(((address,bytes32,uint256,bytes32,uint256),(address,address,bytes),(address,address,bytes),uint256,uint256,uint256,uint256,uint256,uint256))": FunctionFragment;
299
- "hashTyped_DecreasePositionReq(((bytes32,uint256,uint32,uint32),uint256,uint256,uint256))": FunctionFragment;
300
- "hashTyped_IncreasePositionMsg(((address,bytes32,uint256,bytes32,uint256),(address,address,bytes),uint256,(address,address,bytes),uint256,uint256,uint256,uint256,uint256,uint256))": FunctionFragment;
301
- "hashTyped_IncreasePositionReq(((bytes32,uint256,uint32,uint32),uint256,uint256,uint256,bool))": FunctionFragment;
302
- "hashTyped_SwapBridgeWithdrawAllMsg(((address,bytes32,uint256,bytes32,uint256),(address,address,bytes),(address,address,bytes),uint256,uint256))": FunctionFragment;
303
- "hashTyped_SwapBridgeWithdrawAllReq(((bytes32,uint256,uint32,uint32),bool,address,address,uint256))": FunctionFragment;
304
- "hashTyped_UserRequestStateSetMsg(((address,bytes32,uint256,bytes32,uint256),bool))": FunctionFragment;
305
- "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;
306
- "multicall((bool,bytes)[])": FunctionFragment;
274
+ "hashRaw(((bytes32,uint256,uint32,uint32,uint256,bytes),address,uint256,uint256,uint256,bool,uint256))": FunctionFragment;
275
+ "hashTyped(((bytes32,uint256,uint32,uint32,uint256,bytes),uint256,uint256))": FunctionFragment;
276
+ "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;
307
277
  "proposer()": FunctionFragment;
308
- "proposerNonce(bytes32)": FunctionFragment;
278
+ "proposerNonce(address,bytes32)": FunctionFragment;
309
279
  "setExecutor(address)": FunctionFragment;
310
280
  "setProposer(address)": FunctionFragment;
311
- "setUserRequestState(((address,bytes32,uint256,bytes32,uint256),bool),bytes)": FunctionFragment;
312
- "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;
281
+ "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;
282
+ "terminateSession(address,bytes32,bytes32)": FunctionFragment;
313
283
  "userRequest(address,bytes32)": FunctionFragment;
314
284
  };
315
285
 
@@ -318,106 +288,65 @@ export interface IPPTLooperInterface extends utils.Interface {
318
288
  values?: undefined
319
289
  ): string;
320
290
  encodeFunctionData(
321
- functionFragment: "claimMoneyMarketRewards",
322
- values: [string, BytesLike]
291
+ functionFragment: "POST_LOOP_STATE_CHECKER",
292
+ values?: undefined
323
293
  ): string;
324
294
  encodeFunctionData(
325
- functionFragment: "decreaseLoopPosition",
295
+ functionFragment: "claimMMRewards",
326
296
  values: [
327
- IPPTLooper.DecreasePositionMessageStruct,
297
+ IPPTLooperEIP712Types.ClaimMMRewardsMessageStruct,
328
298
  BytesLike,
329
- IPPTLooper.BatchDecPosThenWithdrawRequestStruct,
299
+ IPPTLooperEIP712Types.ClaimMMRewardsRequestStruct,
330
300
  BytesLike
331
301
  ]
332
302
  ): string;
333
303
  encodeFunctionData(
334
- functionFragment: "depositToBox",
304
+ functionFragment: "decreaseLoopPosition",
335
305
  values: [
306
+ IPPTLooperEIP712Types.DecreasePositionMessageStruct,
336
307
  BytesLike,
337
- string,
338
- BigNumberish,
339
- IPPTLooper.BoxApprovedCallStruct,
340
- BigNumberish
308
+ IPPTLooperEIP712Types.DecreasePositionRequestStruct,
309
+ BytesLike
341
310
  ]
342
311
  ): string;
343
312
  encodeFunctionData(functionFragment: "executor", values?: undefined): string;
344
313
  encodeFunctionData(
345
- functionFragment: "hashBoxApprovedCall",
346
- values: [IPPTLooper.BoxApprovedCallStruct]
347
- ): string;
348
- encodeFunctionData(
349
- functionFragment: "hashBoxPermit",
350
- values: [IPPTLooper.BoxPermitStruct]
351
- ): string;
352
- encodeFunctionData(
353
- functionFragment: "hashRequestHeader",
354
- values: [IPPTLooper.RequestHeaderStruct]
355
- ): string;
356
- encodeFunctionData(
357
- functionFragment: "hashTyped_BatchDecPosThenWithdrawReq",
358
- values: [IPPTLooper.BatchDecPosThenWithdrawRequestStruct]
359
- ): string;
360
- encodeFunctionData(
361
- functionFragment: "hashTyped_DecreasePositionMsg",
362
- values: [IPPTLooper.DecreasePositionMessageStruct]
314
+ functionFragment: "hashRaw",
315
+ values: [IPPTLooperEIP712Types.IncreasePositionRequestStruct]
363
316
  ): string;
364
317
  encodeFunctionData(
365
- functionFragment: "hashTyped_DecreasePositionReq",
366
- values: [IPPTLooper.DecreasePositionRequestStruct]
367
- ): string;
368
- encodeFunctionData(
369
- functionFragment: "hashTyped_IncreasePositionMsg",
370
- values: [IPPTLooper.IncreasePositionMessageStruct]
371
- ): string;
372
- encodeFunctionData(
373
- functionFragment: "hashTyped_IncreasePositionReq",
374
- values: [IPPTLooper.IncreasePositionRequestStruct]
375
- ): string;
376
- encodeFunctionData(
377
- functionFragment: "hashTyped_SwapBridgeWithdrawAllMsg",
378
- values: [IPPTLooper.SwapBridgeWithdrawAllMessageStruct]
379
- ): string;
380
- encodeFunctionData(
381
- functionFragment: "hashTyped_SwapBridgeWithdrawAllReq",
382
- values: [IPPTLooper.SwapBridgeWithdrawAllRequestStruct]
383
- ): string;
384
- encodeFunctionData(
385
- functionFragment: "hashTyped_UserRequestStateSetMsg",
386
- values: [IPPTLooper.UserRequestStateSetMessageStruct]
318
+ functionFragment: "hashTyped",
319
+ values: [IPPTLooperEIP712Types.DecreasePositionRequestStruct]
387
320
  ): string;
388
321
  encodeFunctionData(
389
322
  functionFragment: "increaseLoopPosition",
390
323
  values: [
391
- IPPTLooper.IncreasePositionMessageStruct,
324
+ IPPTLooperEIP712Types.IncreasePositionMessageStruct,
392
325
  BytesLike,
393
- IPPTLooper.IncreasePositionRequestStruct,
326
+ IPPTLooperEIP712Types.IncreasePositionRequestStruct,
394
327
  BytesLike
395
328
  ]
396
329
  ): string;
397
- encodeFunctionData(
398
- functionFragment: "multicall",
399
- values: [IMulticall.Call3Struct[]]
400
- ): string;
401
330
  encodeFunctionData(functionFragment: "proposer", values?: undefined): string;
402
331
  encodeFunctionData(
403
332
  functionFragment: "proposerNonce",
404
- values: [BytesLike]
333
+ values: [string, BytesLike]
405
334
  ): string;
406
335
  encodeFunctionData(functionFragment: "setExecutor", values: [string]): string;
407
336
  encodeFunctionData(functionFragment: "setProposer", values: [string]): string;
408
- encodeFunctionData(
409
- functionFragment: "setUserRequestState",
410
- values: [IPPTLooper.UserRequestStateSetMessageStruct, BytesLike]
411
- ): string;
412
337
  encodeFunctionData(
413
338
  functionFragment: "swapBridgeWithdrawAll",
414
339
  values: [
415
- IPPTLooper.SwapBridgeWithdrawAllMessageStruct,
340
+ IPPTLooperEIP712Types.SwapBridgeWithdrawAllMessageStruct,
416
341
  BytesLike,
417
- IPPTLooper.BatchDecPosThenWithdrawRequestStruct,
342
+ IPPTLooperEIP712Types.SwapBridgeWithdrawAllRequestStruct,
418
343
  BytesLike
419
344
  ]
420
345
  ): string;
346
+ encodeFunctionData(
347
+ functionFragment: "terminateSession",
348
+ values: [string, BytesLike, BytesLike]
349
+ ): string;
421
350
  encodeFunctionData(
422
351
  functionFragment: "userRequest",
423
352
  values: [string, BytesLike]
@@ -428,67 +357,24 @@ export interface IPPTLooperInterface extends utils.Interface {
428
357
  data: BytesLike
429
358
  ): Result;
430
359
  decodeFunctionResult(
431
- functionFragment: "claimMoneyMarketRewards",
360
+ functionFragment: "POST_LOOP_STATE_CHECKER",
432
361
  data: BytesLike
433
362
  ): Result;
434
363
  decodeFunctionResult(
435
- functionFragment: "decreaseLoopPosition",
364
+ functionFragment: "claimMMRewards",
436
365
  data: BytesLike
437
366
  ): Result;
438
367
  decodeFunctionResult(
439
- functionFragment: "depositToBox",
368
+ functionFragment: "decreaseLoopPosition",
440
369
  data: BytesLike
441
370
  ): Result;
442
371
  decodeFunctionResult(functionFragment: "executor", data: BytesLike): Result;
443
- decodeFunctionResult(
444
- functionFragment: "hashBoxApprovedCall",
445
- data: BytesLike
446
- ): Result;
447
- decodeFunctionResult(
448
- functionFragment: "hashBoxPermit",
449
- data: BytesLike
450
- ): Result;
451
- decodeFunctionResult(
452
- functionFragment: "hashRequestHeader",
453
- data: BytesLike
454
- ): Result;
455
- decodeFunctionResult(
456
- functionFragment: "hashTyped_BatchDecPosThenWithdrawReq",
457
- data: BytesLike
458
- ): Result;
459
- decodeFunctionResult(
460
- functionFragment: "hashTyped_DecreasePositionMsg",
461
- data: BytesLike
462
- ): Result;
463
- decodeFunctionResult(
464
- functionFragment: "hashTyped_DecreasePositionReq",
465
- data: BytesLike
466
- ): Result;
467
- decodeFunctionResult(
468
- functionFragment: "hashTyped_IncreasePositionMsg",
469
- data: BytesLike
470
- ): Result;
471
- decodeFunctionResult(
472
- functionFragment: "hashTyped_IncreasePositionReq",
473
- data: BytesLike
474
- ): Result;
475
- decodeFunctionResult(
476
- functionFragment: "hashTyped_SwapBridgeWithdrawAllMsg",
477
- data: BytesLike
478
- ): Result;
479
- decodeFunctionResult(
480
- functionFragment: "hashTyped_SwapBridgeWithdrawAllReq",
481
- data: BytesLike
482
- ): Result;
483
- decodeFunctionResult(
484
- functionFragment: "hashTyped_UserRequestStateSetMsg",
485
- data: BytesLike
486
- ): Result;
372
+ decodeFunctionResult(functionFragment: "hashRaw", data: BytesLike): Result;
373
+ decodeFunctionResult(functionFragment: "hashTyped", data: BytesLike): Result;
487
374
  decodeFunctionResult(
488
375
  functionFragment: "increaseLoopPosition",
489
376
  data: BytesLike
490
377
  ): Result;
491
- decodeFunctionResult(functionFragment: "multicall", data: BytesLike): Result;
492
378
  decodeFunctionResult(functionFragment: "proposer", data: BytesLike): Result;
493
379
  decodeFunctionResult(
494
380
  functionFragment: "proposerNonce",
@@ -503,11 +389,11 @@ export interface IPPTLooperInterface extends utils.Interface {
503
389
  data: BytesLike
504
390
  ): Result;
505
391
  decodeFunctionResult(
506
- functionFragment: "setUserRequestState",
392
+ functionFragment: "swapBridgeWithdrawAll",
507
393
  data: BytesLike
508
394
  ): Result;
509
395
  decodeFunctionResult(
510
- functionFragment: "swapBridgeWithdrawAll",
396
+ functionFragment: "terminateSession",
511
397
  data: BytesLike
512
398
  ): Result;
513
399
  decodeFunctionResult(
@@ -520,12 +406,14 @@ export interface IPPTLooperInterface extends utils.Interface {
520
406
  "MoneyMarketRepaidThenWithdrawn(address,uint256,uint256)": EventFragment;
521
407
  "PositionDecreased(address,bytes32,bytes32,uint256,uint256,uint256,uint256)": EventFragment;
522
408
  "PositionIncreased(address,bytes32,bytes32,uint256,uint256,uint256,uint256)": EventFragment;
409
+ "RewardsClaimed(address,bytes32,bytes32,uint256,address[],uint256[])": EventFragment;
410
+ "SessionInitiated(address,bytes32,bytes32,uint32)": EventFragment;
411
+ "SessionTerminated(address,bytes32,bytes32,uint32)": EventFragment;
523
412
  "SetExecutor(address)": EventFragment;
524
413
  "SetProposer(address)": EventFragment;
525
414
  "TokenBridged(address,address,uint256)": EventFragment;
526
415
  "TokenSwapped(address,address,uint256,address,uint256)": EventFragment;
527
- "UserRequestStateSet(address,bytes32,bytes32,uint32,bool)": EventFragment;
528
- "Withdrawn(address,bytes32,bytes32,uint256,address,uint256,uint256)": EventFragment;
416
+ "Withdrawn(address,bytes32,bytes32,uint256,address,uint256)": EventFragment;
529
417
  };
530
418
 
531
419
  getEvent(
@@ -536,11 +424,13 @@ export interface IPPTLooperInterface extends utils.Interface {
536
424
  ): EventFragment;
537
425
  getEvent(nameOrSignatureOrTopic: "PositionDecreased"): EventFragment;
538
426
  getEvent(nameOrSignatureOrTopic: "PositionIncreased"): EventFragment;
427
+ getEvent(nameOrSignatureOrTopic: "RewardsClaimed"): EventFragment;
428
+ getEvent(nameOrSignatureOrTopic: "SessionInitiated"): EventFragment;
429
+ getEvent(nameOrSignatureOrTopic: "SessionTerminated"): EventFragment;
539
430
  getEvent(nameOrSignatureOrTopic: "SetExecutor"): EventFragment;
540
431
  getEvent(nameOrSignatureOrTopic: "SetProposer"): EventFragment;
541
432
  getEvent(nameOrSignatureOrTopic: "TokenBridged"): EventFragment;
542
433
  getEvent(nameOrSignatureOrTopic: "TokenSwapped"): EventFragment;
543
- getEvent(nameOrSignatureOrTopic: "UserRequestStateSet"): EventFragment;
544
434
  getEvent(nameOrSignatureOrTopic: "Withdrawn"): EventFragment;
545
435
  }
546
436
 
@@ -565,7 +455,7 @@ export type PositionDecreasedEvent = TypedEvent<
565
455
  {
566
456
  owner: string;
567
457
  boxId: string;
568
- ownerSigHash: string;
458
+ requestHash: string;
569
459
  nonce: BigNumber;
570
460
  preDebtBalance: BigNumber;
571
461
  netPtToSwap: BigNumber;
@@ -581,9 +471,9 @@ export type PositionIncreasedEvent = TypedEvent<
581
471
  {
582
472
  owner: string;
583
473
  boxId: string;
584
- ownerSigHash: string;
474
+ requestHash: string;
585
475
  nonce: BigNumber;
586
- preDebtBalance: BigNumber;
476
+ preInBalance: BigNumber;
587
477
  netPtToMM: BigNumber;
588
478
  postDebtBalance: BigNumber;
589
479
  }
@@ -592,6 +482,36 @@ export type PositionIncreasedEvent = TypedEvent<
592
482
  export type PositionIncreasedEventFilter =
593
483
  TypedEventFilter<PositionIncreasedEvent>;
594
484
 
485
+ export type RewardsClaimedEvent = TypedEvent<
486
+ [string, string, string, BigNumber, string[], BigNumber[]],
487
+ {
488
+ owner: string;
489
+ boxId: string;
490
+ requestHash: string;
491
+ nonce: BigNumber;
492
+ rewardTokens: string[];
493
+ claimedAmounts: BigNumber[];
494
+ }
495
+ >;
496
+
497
+ export type RewardsClaimedEventFilter = TypedEventFilter<RewardsClaimedEvent>;
498
+
499
+ export type SessionInitiatedEvent = TypedEvent<
500
+ [string, string, string, number],
501
+ { owner: string; boxId: string; requestHash: string; sessionNonce: number }
502
+ >;
503
+
504
+ export type SessionInitiatedEventFilter =
505
+ TypedEventFilter<SessionInitiatedEvent>;
506
+
507
+ export type SessionTerminatedEvent = TypedEvent<
508
+ [string, string, string, number],
509
+ { owner: string; boxId: string; requestHash: string; sessionNonce: number }
510
+ >;
511
+
512
+ export type SessionTerminatedEventFilter =
513
+ TypedEventFilter<SessionTerminatedEvent>;
514
+
595
515
  export type SetExecutorEvent = TypedEvent<[string], { executor: string }>;
596
516
 
597
517
  export type SetExecutorEventFilter = TypedEventFilter<SetExecutorEvent>;
@@ -614,36 +534,21 @@ export type TokenSwappedEvent = TypedEvent<
614
534
  tokenIn: string;
615
535
  netIn: BigNumber;
616
536
  tokenOut: string;
617
- netOut: BigNumber;
537
+ netSwappedOut: BigNumber;
618
538
  }
619
539
  >;
620
540
 
621
541
  export type TokenSwappedEventFilter = TypedEventFilter<TokenSwappedEvent>;
622
542
 
623
- export type UserRequestStateSetEvent = TypedEvent<
624
- [string, string, string, number, boolean],
625
- {
626
- owner: string;
627
- boxId: string;
628
- ownerSigHash: string;
629
- sessionNonce: number;
630
- isInitiate: boolean;
631
- }
632
- >;
633
-
634
- export type UserRequestStateSetEventFilter =
635
- TypedEventFilter<UserRequestStateSetEvent>;
636
-
637
543
  export type WithdrawnEvent = TypedEvent<
638
- [string, string, string, BigNumber, string, BigNumber, BigNumber],
544
+ [string, string, string, BigNumber, string, BigNumber],
639
545
  {
640
546
  owner: string;
641
547
  boxId: string;
642
- ownerSigHash: string;
548
+ requestHash: string;
643
549
  nonce: BigNumber;
644
550
  tokenOut: string;
645
551
  netOut: BigNumber;
646
- fee: BigNumber;
647
552
  }
648
553
  >;
649
554
 
@@ -679,111 +584,124 @@ export interface IPPTLooper extends BaseContract {
679
584
  functions: {
680
585
  POSITION_BOX_FACTORY(overrides?: CallOverrides): Promise<[string]>;
681
586
 
682
- claimMoneyMarketRewards(
683
- owner: string,
684
- boxId: BytesLike,
685
- overrides?: Overrides & { from?: string | Promise<string> }
686
- ): Promise<ContractTransaction>;
587
+ POST_LOOP_STATE_CHECKER(overrides?: CallOverrides): Promise<[string]>;
687
588
 
688
- "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)"(
689
- ms: IPPTLooper.DecreasePositionMessageStruct,
589
+ claimMMRewards(
590
+ ms: IPPTLooperEIP712Types.ClaimMMRewardsMessageStruct,
690
591
  proposerSig: BytesLike,
691
- req: IPPTLooper.BatchDecPosThenWithdrawRequestStruct,
692
- ownerSig: BytesLike,
693
- overrides?: PayableOverrides & { from?: string | Promise<string> }
592
+ req: IPPTLooperEIP712Types.ClaimMMRewardsRequestStruct,
593
+ ownerSigIfFirstCall: BytesLike,
594
+ overrides?: Overrides & { from?: string | Promise<string> }
694
595
  ): Promise<ContractTransaction>;
695
596
 
696
- "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)"(
697
- ms: IPPTLooper.DecreasePositionMessageStruct,
597
+ decreaseLoopPosition(
598
+ ms: IPPTLooperEIP712Types.DecreasePositionMessageStruct,
698
599
  proposerSig: BytesLike,
699
- req: IPPTLooper.DecreasePositionRequestStruct,
700
- ownerSig: BytesLike,
701
- overrides?: PayableOverrides & { from?: string | Promise<string> }
702
- ): Promise<ContractTransaction>;
703
-
704
- depositToBox(
705
- boxId: BytesLike,
706
- tokenIn: string,
707
- amountIn: BigNumberish,
708
- swapCall: IPPTLooper.BoxApprovedCallStruct,
709
- minDebtTokenSwapOut: BigNumberish,
600
+ req: IPPTLooperEIP712Types.DecreasePositionRequestStruct,
601
+ ownerSigIfFirstCall: BytesLike,
710
602
  overrides?: PayableOverrides & { from?: string | Promise<string> }
711
603
  ): Promise<ContractTransaction>;
712
604
 
713
605
  executor(overrides?: CallOverrides): Promise<[string]>;
714
606
 
715
- hashBoxApprovedCall(
716
- call: IPPTLooper.BoxApprovedCallStruct,
607
+ "hashRaw(((bytes32,uint256,uint32,uint32,uint256,bytes),address,uint256,uint256,uint256,bool,uint256))"(
608
+ req: IPPTLooperEIP712Types.IncreasePositionRequestStruct,
609
+ overrides?: CallOverrides
610
+ ): Promise<[string]>;
611
+
612
+ "hashRaw((bytes32,uint256,uint32,uint32,uint256,bytes))"(
613
+ header: IPPTLooperEIP712Types.RequestHeaderStruct,
614
+ overrides?: CallOverrides
615
+ ): Promise<[string]>;
616
+
617
+ "hashRaw(((address,bytes32,uint256,uint256)))"(
618
+ ms: IPPTLooperEIP712Types.ClaimMMRewardsMessageStruct,
619
+ overrides?: CallOverrides
620
+ ): Promise<[string]>;
621
+
622
+ "hashRaw(((address,address,bytes),uint256,uint256))"(
623
+ bridge: IPPTLooperEIP712Types.BridgeDataStruct,
624
+ overrides?: CallOverrides
625
+ ): Promise<[string]>;
626
+
627
+ "hashRaw((address,bytes32,uint256,uint256))"(
628
+ permit: IPPTLooperEIP712Types.BoxPermitStruct,
629
+ overrides?: CallOverrides
630
+ ): Promise<[string]>;
631
+
632
+ "hashRaw(((bytes32,uint256,uint32,uint32,uint256,bytes),address,bytes,address[]))"(
633
+ req: IPPTLooperEIP712Types.ClaimMMRewardsRequestStruct,
634
+ overrides?: CallOverrides
635
+ ): Promise<[string]>;
636
+
637
+ "hashRaw(((bytes32,uint256,uint32,uint32,uint256,bytes),uint256,uint256))"(
638
+ req: IPPTLooperEIP712Types.DecreasePositionRequestStruct,
717
639
  overrides?: CallOverrides
718
640
  ): Promise<[string]>;
719
641
 
720
- hashBoxPermit(
721
- permit: IPPTLooper.BoxPermitStruct,
642
+ "hashRaw(((bytes32,uint256,uint32,uint32,uint256,bytes),bool,address,address,uint256))"(
643
+ req: IPPTLooperEIP712Types.SwapBridgeWithdrawAllRequestStruct,
722
644
  overrides?: CallOverrides
723
645
  ): Promise<[string]>;
724
646
 
725
- hashRequestHeader(
726
- header: IPPTLooper.RequestHeaderStruct,
647
+ "hashRaw((address,address,bytes))"(
648
+ call: IPPTLooperEIP712Types.BoxApprovedCallStruct,
727
649
  overrides?: CallOverrides
728
650
  ): Promise<[string]>;
729
651
 
730
- hashTyped_BatchDecPosThenWithdrawReq(
731
- req: IPPTLooper.BatchDecPosThenWithdrawRequestStruct,
652
+ "hashTyped(((bytes32,uint256,uint32,uint32,uint256,bytes),uint256,uint256))"(
653
+ req: IPPTLooperEIP712Types.DecreasePositionRequestStruct,
732
654
  overrides?: CallOverrides
733
655
  ): Promise<[string]>;
734
656
 
735
- hashTyped_DecreasePositionMsg(
736
- message: IPPTLooper.DecreasePositionMessageStruct,
657
+ "hashTyped(((address,bytes32,uint256,uint256),(address,address,bytes),((address,address,bytes),uint256,uint256),uint256,bytes))"(
658
+ ms: IPPTLooperEIP712Types.DecreasePositionMessageStruct,
737
659
  overrides?: CallOverrides
738
660
  ): Promise<[string]>;
739
661
 
740
- hashTyped_DecreasePositionReq(
741
- request: IPPTLooper.DecreasePositionRequestStruct,
662
+ "hashTyped(((address,bytes32,uint256,uint256),(address,address,bytes),uint256,((address,address,bytes),uint256,uint256),uint256,bytes))"(
663
+ ms: IPPTLooperEIP712Types.IncreasePositionMessageStruct,
742
664
  overrides?: CallOverrides
743
665
  ): Promise<[string]>;
744
666
 
745
- hashTyped_IncreasePositionMsg(
746
- message: IPPTLooper.IncreasePositionMessageStruct,
667
+ "hashTyped(((bytes32,uint256,uint32,uint32,uint256,bytes),bool,address,address,uint256))"(
668
+ req: IPPTLooperEIP712Types.SwapBridgeWithdrawAllRequestStruct,
747
669
  overrides?: CallOverrides
748
670
  ): Promise<[string]>;
749
671
 
750
- hashTyped_IncreasePositionReq(
751
- request: IPPTLooper.IncreasePositionRequestStruct,
672
+ "hashTyped(((bytes32,uint256,uint32,uint32,uint256,bytes),address,bytes,address[]))"(
673
+ req: IPPTLooperEIP712Types.ClaimMMRewardsRequestStruct,
752
674
  overrides?: CallOverrides
753
675
  ): Promise<[string]>;
754
676
 
755
- hashTyped_SwapBridgeWithdrawAllMsg(
756
- message: IPPTLooper.SwapBridgeWithdrawAllMessageStruct,
677
+ "hashTyped(((bytes32,uint256,uint32,uint32,uint256,bytes),address,uint256,uint256,uint256,bool,uint256))"(
678
+ req: IPPTLooperEIP712Types.IncreasePositionRequestStruct,
757
679
  overrides?: CallOverrides
758
680
  ): Promise<[string]>;
759
681
 
760
- hashTyped_SwapBridgeWithdrawAllReq(
761
- request: IPPTLooper.SwapBridgeWithdrawAllRequestStruct,
682
+ "hashTyped(((address,bytes32,uint256,uint256),(address,address,bytes),((address,address,bytes),uint256,uint256),bytes))"(
683
+ ms: IPPTLooperEIP712Types.SwapBridgeWithdrawAllMessageStruct,
762
684
  overrides?: CallOverrides
763
685
  ): Promise<[string]>;
764
686
 
765
- hashTyped_UserRequestStateSetMsg(
766
- msg: IPPTLooper.UserRequestStateSetMessageStruct,
687
+ "hashTyped(((address,bytes32,uint256,uint256)))"(
688
+ ms: IPPTLooperEIP712Types.ClaimMMRewardsMessageStruct,
767
689
  overrides?: CallOverrides
768
690
  ): Promise<[string]>;
769
691
 
770
692
  increaseLoopPosition(
771
- ms: IPPTLooper.IncreasePositionMessageStruct,
693
+ ms: IPPTLooperEIP712Types.IncreasePositionMessageStruct,
772
694
  proposerSig: BytesLike,
773
- req: IPPTLooper.IncreasePositionRequestStruct,
774
- ownerSig: BytesLike,
775
- overrides?: PayableOverrides & { from?: string | Promise<string> }
776
- ): Promise<ContractTransaction>;
777
-
778
- multicall(
779
- calls: IMulticall.Call3Struct[],
695
+ req: IPPTLooperEIP712Types.IncreasePositionRequestStruct,
696
+ ownerSigIfFirstCall: BytesLike,
780
697
  overrides?: PayableOverrides & { from?: string | Promise<string> }
781
698
  ): Promise<ContractTransaction>;
782
699
 
783
700
  proposer(overrides?: CallOverrides): Promise<[string]>;
784
701
 
785
702
  proposerNonce(
786
- ownerSigHash: BytesLike,
703
+ owner: string,
704
+ requestHash: BytesLike,
787
705
  overrides?: CallOverrides
788
706
  ): Promise<[BigNumber]>;
789
707
 
@@ -797,26 +715,19 @@ export interface IPPTLooper extends BaseContract {
797
715
  overrides?: Overrides & { from?: string | Promise<string> }
798
716
  ): Promise<ContractTransaction>;
799
717
 
800
- setUserRequestState(
801
- ms: IPPTLooper.UserRequestStateSetMessageStruct,
802
- proposerSignature: BytesLike,
803
- overrides?: Overrides & { from?: string | Promise<string> }
804
- ): Promise<ContractTransaction>;
805
-
806
- "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)"(
807
- ms: IPPTLooper.SwapBridgeWithdrawAllMessageStruct,
718
+ swapBridgeWithdrawAll(
719
+ ms: IPPTLooperEIP712Types.SwapBridgeWithdrawAllMessageStruct,
808
720
  proposerSig: BytesLike,
809
- req: IPPTLooper.BatchDecPosThenWithdrawRequestStruct,
810
- ownerSig: BytesLike,
721
+ req: IPPTLooperEIP712Types.SwapBridgeWithdrawAllRequestStruct,
722
+ ownerSigIfFirstCall: BytesLike,
811
723
  overrides?: PayableOverrides & { from?: string | Promise<string> }
812
724
  ): Promise<ContractTransaction>;
813
725
 
814
- "swapBridgeWithdrawAll(((address,bytes32,uint256,bytes32,uint256),(address,address,bytes),(address,address,bytes),uint256,uint256),bytes,((bytes32,uint256,uint32,uint32),bool,address,address,uint256),bytes)"(
815
- ms: IPPTLooper.SwapBridgeWithdrawAllMessageStruct,
816
- proposerSig: BytesLike,
817
- req: IPPTLooper.SwapBridgeWithdrawAllRequestStruct,
818
- ownerSig: BytesLike,
819
- overrides?: PayableOverrides & { from?: string | Promise<string> }
726
+ terminateSession(
727
+ owner: string,
728
+ boxId: BytesLike,
729
+ requestHash: BytesLike,
730
+ overrides?: Overrides & { from?: string | Promise<string> }
820
731
  ): Promise<ContractTransaction>;
821
732
 
822
733
  userRequest(
@@ -828,111 +739,124 @@ export interface IPPTLooper extends BaseContract {
828
739
 
829
740
  POSITION_BOX_FACTORY(overrides?: CallOverrides): Promise<string>;
830
741
 
831
- claimMoneyMarketRewards(
832
- owner: string,
833
- boxId: BytesLike,
834
- overrides?: Overrides & { from?: string | Promise<string> }
835
- ): Promise<ContractTransaction>;
742
+ POST_LOOP_STATE_CHECKER(overrides?: CallOverrides): Promise<string>;
836
743
 
837
- "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)"(
838
- ms: IPPTLooper.DecreasePositionMessageStruct,
744
+ claimMMRewards(
745
+ ms: IPPTLooperEIP712Types.ClaimMMRewardsMessageStruct,
839
746
  proposerSig: BytesLike,
840
- req: IPPTLooper.BatchDecPosThenWithdrawRequestStruct,
841
- ownerSig: BytesLike,
842
- overrides?: PayableOverrides & { from?: string | Promise<string> }
747
+ req: IPPTLooperEIP712Types.ClaimMMRewardsRequestStruct,
748
+ ownerSigIfFirstCall: BytesLike,
749
+ overrides?: Overrides & { from?: string | Promise<string> }
843
750
  ): Promise<ContractTransaction>;
844
751
 
845
- "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)"(
846
- ms: IPPTLooper.DecreasePositionMessageStruct,
752
+ decreaseLoopPosition(
753
+ ms: IPPTLooperEIP712Types.DecreasePositionMessageStruct,
847
754
  proposerSig: BytesLike,
848
- req: IPPTLooper.DecreasePositionRequestStruct,
849
- ownerSig: BytesLike,
850
- overrides?: PayableOverrides & { from?: string | Promise<string> }
851
- ): Promise<ContractTransaction>;
852
-
853
- depositToBox(
854
- boxId: BytesLike,
855
- tokenIn: string,
856
- amountIn: BigNumberish,
857
- swapCall: IPPTLooper.BoxApprovedCallStruct,
858
- minDebtTokenSwapOut: BigNumberish,
755
+ req: IPPTLooperEIP712Types.DecreasePositionRequestStruct,
756
+ ownerSigIfFirstCall: BytesLike,
859
757
  overrides?: PayableOverrides & { from?: string | Promise<string> }
860
758
  ): Promise<ContractTransaction>;
861
759
 
862
760
  executor(overrides?: CallOverrides): Promise<string>;
863
761
 
864
- hashBoxApprovedCall(
865
- call: IPPTLooper.BoxApprovedCallStruct,
762
+ "hashRaw(((bytes32,uint256,uint32,uint32,uint256,bytes),address,uint256,uint256,uint256,bool,uint256))"(
763
+ req: IPPTLooperEIP712Types.IncreasePositionRequestStruct,
764
+ overrides?: CallOverrides
765
+ ): Promise<string>;
766
+
767
+ "hashRaw((bytes32,uint256,uint32,uint32,uint256,bytes))"(
768
+ header: IPPTLooperEIP712Types.RequestHeaderStruct,
866
769
  overrides?: CallOverrides
867
770
  ): Promise<string>;
868
771
 
869
- hashBoxPermit(
870
- permit: IPPTLooper.BoxPermitStruct,
772
+ "hashRaw(((address,bytes32,uint256,uint256)))"(
773
+ ms: IPPTLooperEIP712Types.ClaimMMRewardsMessageStruct,
871
774
  overrides?: CallOverrides
872
775
  ): Promise<string>;
873
776
 
874
- hashRequestHeader(
875
- header: IPPTLooper.RequestHeaderStruct,
777
+ "hashRaw(((address,address,bytes),uint256,uint256))"(
778
+ bridge: IPPTLooperEIP712Types.BridgeDataStruct,
876
779
  overrides?: CallOverrides
877
780
  ): Promise<string>;
878
781
 
879
- hashTyped_BatchDecPosThenWithdrawReq(
880
- req: IPPTLooper.BatchDecPosThenWithdrawRequestStruct,
782
+ "hashRaw((address,bytes32,uint256,uint256))"(
783
+ permit: IPPTLooperEIP712Types.BoxPermitStruct,
881
784
  overrides?: CallOverrides
882
785
  ): Promise<string>;
883
786
 
884
- hashTyped_DecreasePositionMsg(
885
- message: IPPTLooper.DecreasePositionMessageStruct,
787
+ "hashRaw(((bytes32,uint256,uint32,uint32,uint256,bytes),address,bytes,address[]))"(
788
+ req: IPPTLooperEIP712Types.ClaimMMRewardsRequestStruct,
886
789
  overrides?: CallOverrides
887
790
  ): Promise<string>;
888
791
 
889
- hashTyped_DecreasePositionReq(
890
- request: IPPTLooper.DecreasePositionRequestStruct,
792
+ "hashRaw(((bytes32,uint256,uint32,uint32,uint256,bytes),uint256,uint256))"(
793
+ req: IPPTLooperEIP712Types.DecreasePositionRequestStruct,
891
794
  overrides?: CallOverrides
892
795
  ): Promise<string>;
893
796
 
894
- hashTyped_IncreasePositionMsg(
895
- message: IPPTLooper.IncreasePositionMessageStruct,
797
+ "hashRaw(((bytes32,uint256,uint32,uint32,uint256,bytes),bool,address,address,uint256))"(
798
+ req: IPPTLooperEIP712Types.SwapBridgeWithdrawAllRequestStruct,
896
799
  overrides?: CallOverrides
897
800
  ): Promise<string>;
898
801
 
899
- hashTyped_IncreasePositionReq(
900
- request: IPPTLooper.IncreasePositionRequestStruct,
802
+ "hashRaw((address,address,bytes))"(
803
+ call: IPPTLooperEIP712Types.BoxApprovedCallStruct,
901
804
  overrides?: CallOverrides
902
805
  ): Promise<string>;
903
806
 
904
- hashTyped_SwapBridgeWithdrawAllMsg(
905
- message: IPPTLooper.SwapBridgeWithdrawAllMessageStruct,
807
+ "hashTyped(((bytes32,uint256,uint32,uint32,uint256,bytes),uint256,uint256))"(
808
+ req: IPPTLooperEIP712Types.DecreasePositionRequestStruct,
906
809
  overrides?: CallOverrides
907
810
  ): Promise<string>;
908
811
 
909
- hashTyped_SwapBridgeWithdrawAllReq(
910
- request: IPPTLooper.SwapBridgeWithdrawAllRequestStruct,
812
+ "hashTyped(((address,bytes32,uint256,uint256),(address,address,bytes),((address,address,bytes),uint256,uint256),uint256,bytes))"(
813
+ ms: IPPTLooperEIP712Types.DecreasePositionMessageStruct,
911
814
  overrides?: CallOverrides
912
815
  ): Promise<string>;
913
816
 
914
- hashTyped_UserRequestStateSetMsg(
915
- msg: IPPTLooper.UserRequestStateSetMessageStruct,
817
+ "hashTyped(((address,bytes32,uint256,uint256),(address,address,bytes),uint256,((address,address,bytes),uint256,uint256),uint256,bytes))"(
818
+ ms: IPPTLooperEIP712Types.IncreasePositionMessageStruct,
819
+ overrides?: CallOverrides
820
+ ): Promise<string>;
821
+
822
+ "hashTyped(((bytes32,uint256,uint32,uint32,uint256,bytes),bool,address,address,uint256))"(
823
+ req: IPPTLooperEIP712Types.SwapBridgeWithdrawAllRequestStruct,
824
+ overrides?: CallOverrides
825
+ ): Promise<string>;
826
+
827
+ "hashTyped(((bytes32,uint256,uint32,uint32,uint256,bytes),address,bytes,address[]))"(
828
+ req: IPPTLooperEIP712Types.ClaimMMRewardsRequestStruct,
829
+ overrides?: CallOverrides
830
+ ): Promise<string>;
831
+
832
+ "hashTyped(((bytes32,uint256,uint32,uint32,uint256,bytes),address,uint256,uint256,uint256,bool,uint256))"(
833
+ req: IPPTLooperEIP712Types.IncreasePositionRequestStruct,
834
+ overrides?: CallOverrides
835
+ ): Promise<string>;
836
+
837
+ "hashTyped(((address,bytes32,uint256,uint256),(address,address,bytes),((address,address,bytes),uint256,uint256),bytes))"(
838
+ ms: IPPTLooperEIP712Types.SwapBridgeWithdrawAllMessageStruct,
839
+ overrides?: CallOverrides
840
+ ): Promise<string>;
841
+
842
+ "hashTyped(((address,bytes32,uint256,uint256)))"(
843
+ ms: IPPTLooperEIP712Types.ClaimMMRewardsMessageStruct,
916
844
  overrides?: CallOverrides
917
845
  ): Promise<string>;
918
846
 
919
847
  increaseLoopPosition(
920
- ms: IPPTLooper.IncreasePositionMessageStruct,
848
+ ms: IPPTLooperEIP712Types.IncreasePositionMessageStruct,
921
849
  proposerSig: BytesLike,
922
- req: IPPTLooper.IncreasePositionRequestStruct,
923
- ownerSig: BytesLike,
924
- overrides?: PayableOverrides & { from?: string | Promise<string> }
925
- ): Promise<ContractTransaction>;
926
-
927
- multicall(
928
- calls: IMulticall.Call3Struct[],
850
+ req: IPPTLooperEIP712Types.IncreasePositionRequestStruct,
851
+ ownerSigIfFirstCall: BytesLike,
929
852
  overrides?: PayableOverrides & { from?: string | Promise<string> }
930
853
  ): Promise<ContractTransaction>;
931
854
 
932
855
  proposer(overrides?: CallOverrides): Promise<string>;
933
856
 
934
857
  proposerNonce(
935
- ownerSigHash: BytesLike,
858
+ owner: string,
859
+ requestHash: BytesLike,
936
860
  overrides?: CallOverrides
937
861
  ): Promise<BigNumber>;
938
862
 
@@ -946,26 +870,19 @@ export interface IPPTLooper extends BaseContract {
946
870
  overrides?: Overrides & { from?: string | Promise<string> }
947
871
  ): Promise<ContractTransaction>;
948
872
 
949
- setUserRequestState(
950
- ms: IPPTLooper.UserRequestStateSetMessageStruct,
951
- proposerSignature: BytesLike,
952
- overrides?: Overrides & { from?: string | Promise<string> }
953
- ): Promise<ContractTransaction>;
954
-
955
- "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)"(
956
- ms: IPPTLooper.SwapBridgeWithdrawAllMessageStruct,
873
+ swapBridgeWithdrawAll(
874
+ ms: IPPTLooperEIP712Types.SwapBridgeWithdrawAllMessageStruct,
957
875
  proposerSig: BytesLike,
958
- req: IPPTLooper.BatchDecPosThenWithdrawRequestStruct,
959
- ownerSig: BytesLike,
876
+ req: IPPTLooperEIP712Types.SwapBridgeWithdrawAllRequestStruct,
877
+ ownerSigIfFirstCall: BytesLike,
960
878
  overrides?: PayableOverrides & { from?: string | Promise<string> }
961
879
  ): Promise<ContractTransaction>;
962
880
 
963
- "swapBridgeWithdrawAll(((address,bytes32,uint256,bytes32,uint256),(address,address,bytes),(address,address,bytes),uint256,uint256),bytes,((bytes32,uint256,uint32,uint32),bool,address,address,uint256),bytes)"(
964
- ms: IPPTLooper.SwapBridgeWithdrawAllMessageStruct,
965
- proposerSig: BytesLike,
966
- req: IPPTLooper.SwapBridgeWithdrawAllRequestStruct,
967
- ownerSig: BytesLike,
968
- overrides?: PayableOverrides & { from?: string | Promise<string> }
881
+ terminateSession(
882
+ owner: string,
883
+ boxId: BytesLike,
884
+ requestHash: BytesLike,
885
+ overrides?: Overrides & { from?: string | Promise<string> }
969
886
  ): Promise<ContractTransaction>;
970
887
 
971
888
  userRequest(
@@ -977,111 +894,124 @@ export interface IPPTLooper extends BaseContract {
977
894
  callStatic: {
978
895
  POSITION_BOX_FACTORY(overrides?: CallOverrides): Promise<string>;
979
896
 
980
- claimMoneyMarketRewards(
981
- owner: string,
982
- boxId: BytesLike,
983
- overrides?: CallOverrides
984
- ): Promise<void>;
897
+ POST_LOOP_STATE_CHECKER(overrides?: CallOverrides): Promise<string>;
985
898
 
986
- "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)"(
987
- ms: IPPTLooper.DecreasePositionMessageStruct,
899
+ claimMMRewards(
900
+ ms: IPPTLooperEIP712Types.ClaimMMRewardsMessageStruct,
988
901
  proposerSig: BytesLike,
989
- req: IPPTLooper.BatchDecPosThenWithdrawRequestStruct,
990
- ownerSig: BytesLike,
902
+ req: IPPTLooperEIP712Types.ClaimMMRewardsRequestStruct,
903
+ ownerSigIfFirstCall: BytesLike,
991
904
  overrides?: CallOverrides
992
905
  ): Promise<void>;
993
906
 
994
- "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)"(
995
- ms: IPPTLooper.DecreasePositionMessageStruct,
907
+ decreaseLoopPosition(
908
+ ms: IPPTLooperEIP712Types.DecreasePositionMessageStruct,
996
909
  proposerSig: BytesLike,
997
- req: IPPTLooper.DecreasePositionRequestStruct,
998
- ownerSig: BytesLike,
910
+ req: IPPTLooperEIP712Types.DecreasePositionRequestStruct,
911
+ ownerSigIfFirstCall: BytesLike,
999
912
  overrides?: CallOverrides
1000
913
  ): Promise<void>;
1001
914
 
1002
- depositToBox(
1003
- boxId: BytesLike,
1004
- tokenIn: string,
1005
- amountIn: BigNumberish,
1006
- swapCall: IPPTLooper.BoxApprovedCallStruct,
1007
- minDebtTokenSwapOut: BigNumberish,
915
+ executor(overrides?: CallOverrides): Promise<string>;
916
+
917
+ "hashRaw(((bytes32,uint256,uint32,uint32,uint256,bytes),address,uint256,uint256,uint256,bool,uint256))"(
918
+ req: IPPTLooperEIP712Types.IncreasePositionRequestStruct,
1008
919
  overrides?: CallOverrides
1009
- ): Promise<BigNumber>;
920
+ ): Promise<string>;
1010
921
 
1011
- executor(overrides?: CallOverrides): Promise<string>;
922
+ "hashRaw((bytes32,uint256,uint32,uint32,uint256,bytes))"(
923
+ header: IPPTLooperEIP712Types.RequestHeaderStruct,
924
+ overrides?: CallOverrides
925
+ ): Promise<string>;
926
+
927
+ "hashRaw(((address,bytes32,uint256,uint256)))"(
928
+ ms: IPPTLooperEIP712Types.ClaimMMRewardsMessageStruct,
929
+ overrides?: CallOverrides
930
+ ): Promise<string>;
1012
931
 
1013
- hashBoxApprovedCall(
1014
- call: IPPTLooper.BoxApprovedCallStruct,
932
+ "hashRaw(((address,address,bytes),uint256,uint256))"(
933
+ bridge: IPPTLooperEIP712Types.BridgeDataStruct,
1015
934
  overrides?: CallOverrides
1016
935
  ): Promise<string>;
1017
936
 
1018
- hashBoxPermit(
1019
- permit: IPPTLooper.BoxPermitStruct,
937
+ "hashRaw((address,bytes32,uint256,uint256))"(
938
+ permit: IPPTLooperEIP712Types.BoxPermitStruct,
1020
939
  overrides?: CallOverrides
1021
940
  ): Promise<string>;
1022
941
 
1023
- hashRequestHeader(
1024
- header: IPPTLooper.RequestHeaderStruct,
942
+ "hashRaw(((bytes32,uint256,uint32,uint32,uint256,bytes),address,bytes,address[]))"(
943
+ req: IPPTLooperEIP712Types.ClaimMMRewardsRequestStruct,
1025
944
  overrides?: CallOverrides
1026
945
  ): Promise<string>;
1027
946
 
1028
- hashTyped_BatchDecPosThenWithdrawReq(
1029
- req: IPPTLooper.BatchDecPosThenWithdrawRequestStruct,
947
+ "hashRaw(((bytes32,uint256,uint32,uint32,uint256,bytes),uint256,uint256))"(
948
+ req: IPPTLooperEIP712Types.DecreasePositionRequestStruct,
1030
949
  overrides?: CallOverrides
1031
950
  ): Promise<string>;
1032
951
 
1033
- hashTyped_DecreasePositionMsg(
1034
- message: IPPTLooper.DecreasePositionMessageStruct,
952
+ "hashRaw(((bytes32,uint256,uint32,uint32,uint256,bytes),bool,address,address,uint256))"(
953
+ req: IPPTLooperEIP712Types.SwapBridgeWithdrawAllRequestStruct,
1035
954
  overrides?: CallOverrides
1036
955
  ): Promise<string>;
1037
956
 
1038
- hashTyped_DecreasePositionReq(
1039
- request: IPPTLooper.DecreasePositionRequestStruct,
957
+ "hashRaw((address,address,bytes))"(
958
+ call: IPPTLooperEIP712Types.BoxApprovedCallStruct,
1040
959
  overrides?: CallOverrides
1041
960
  ): Promise<string>;
1042
961
 
1043
- hashTyped_IncreasePositionMsg(
1044
- message: IPPTLooper.IncreasePositionMessageStruct,
962
+ "hashTyped(((bytes32,uint256,uint32,uint32,uint256,bytes),uint256,uint256))"(
963
+ req: IPPTLooperEIP712Types.DecreasePositionRequestStruct,
1045
964
  overrides?: CallOverrides
1046
965
  ): Promise<string>;
1047
966
 
1048
- hashTyped_IncreasePositionReq(
1049
- request: IPPTLooper.IncreasePositionRequestStruct,
967
+ "hashTyped(((address,bytes32,uint256,uint256),(address,address,bytes),((address,address,bytes),uint256,uint256),uint256,bytes))"(
968
+ ms: IPPTLooperEIP712Types.DecreasePositionMessageStruct,
1050
969
  overrides?: CallOverrides
1051
970
  ): Promise<string>;
1052
971
 
1053
- hashTyped_SwapBridgeWithdrawAllMsg(
1054
- message: IPPTLooper.SwapBridgeWithdrawAllMessageStruct,
972
+ "hashTyped(((address,bytes32,uint256,uint256),(address,address,bytes),uint256,((address,address,bytes),uint256,uint256),uint256,bytes))"(
973
+ ms: IPPTLooperEIP712Types.IncreasePositionMessageStruct,
1055
974
  overrides?: CallOverrides
1056
975
  ): Promise<string>;
1057
976
 
1058
- hashTyped_SwapBridgeWithdrawAllReq(
1059
- request: IPPTLooper.SwapBridgeWithdrawAllRequestStruct,
977
+ "hashTyped(((bytes32,uint256,uint32,uint32,uint256,bytes),bool,address,address,uint256))"(
978
+ req: IPPTLooperEIP712Types.SwapBridgeWithdrawAllRequestStruct,
1060
979
  overrides?: CallOverrides
1061
980
  ): Promise<string>;
1062
981
 
1063
- hashTyped_UserRequestStateSetMsg(
1064
- msg: IPPTLooper.UserRequestStateSetMessageStruct,
982
+ "hashTyped(((bytes32,uint256,uint32,uint32,uint256,bytes),address,bytes,address[]))"(
983
+ req: IPPTLooperEIP712Types.ClaimMMRewardsRequestStruct,
984
+ overrides?: CallOverrides
985
+ ): Promise<string>;
986
+
987
+ "hashTyped(((bytes32,uint256,uint32,uint32,uint256,bytes),address,uint256,uint256,uint256,bool,uint256))"(
988
+ req: IPPTLooperEIP712Types.IncreasePositionRequestStruct,
989
+ overrides?: CallOverrides
990
+ ): Promise<string>;
991
+
992
+ "hashTyped(((address,bytes32,uint256,uint256),(address,address,bytes),((address,address,bytes),uint256,uint256),bytes))"(
993
+ ms: IPPTLooperEIP712Types.SwapBridgeWithdrawAllMessageStruct,
994
+ overrides?: CallOverrides
995
+ ): Promise<string>;
996
+
997
+ "hashTyped(((address,bytes32,uint256,uint256)))"(
998
+ ms: IPPTLooperEIP712Types.ClaimMMRewardsMessageStruct,
1065
999
  overrides?: CallOverrides
1066
1000
  ): Promise<string>;
1067
1001
 
1068
1002
  increaseLoopPosition(
1069
- ms: IPPTLooper.IncreasePositionMessageStruct,
1003
+ ms: IPPTLooperEIP712Types.IncreasePositionMessageStruct,
1070
1004
  proposerSig: BytesLike,
1071
- req: IPPTLooper.IncreasePositionRequestStruct,
1072
- ownerSig: BytesLike,
1005
+ req: IPPTLooperEIP712Types.IncreasePositionRequestStruct,
1006
+ ownerSigIfFirstCall: BytesLike,
1073
1007
  overrides?: CallOverrides
1074
1008
  ): Promise<void>;
1075
1009
 
1076
- multicall(
1077
- calls: IMulticall.Call3Struct[],
1078
- overrides?: CallOverrides
1079
- ): Promise<IMulticall.ResultStructOutput[]>;
1080
-
1081
1010
  proposer(overrides?: CallOverrides): Promise<string>;
1082
1011
 
1083
1012
  proposerNonce(
1084
- ownerSigHash: BytesLike,
1013
+ owner: string,
1014
+ requestHash: BytesLike,
1085
1015
  overrides?: CallOverrides
1086
1016
  ): Promise<BigNumber>;
1087
1017
 
@@ -1089,25 +1019,18 @@ export interface IPPTLooper extends BaseContract {
1089
1019
 
1090
1020
  setProposer(proposer: string, overrides?: CallOverrides): Promise<void>;
1091
1021
 
1092
- setUserRequestState(
1093
- ms: IPPTLooper.UserRequestStateSetMessageStruct,
1094
- proposerSignature: BytesLike,
1095
- overrides?: CallOverrides
1096
- ): Promise<void>;
1097
-
1098
- "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)"(
1099
- ms: IPPTLooper.SwapBridgeWithdrawAllMessageStruct,
1022
+ swapBridgeWithdrawAll(
1023
+ ms: IPPTLooperEIP712Types.SwapBridgeWithdrawAllMessageStruct,
1100
1024
  proposerSig: BytesLike,
1101
- req: IPPTLooper.BatchDecPosThenWithdrawRequestStruct,
1102
- ownerSig: BytesLike,
1025
+ req: IPPTLooperEIP712Types.SwapBridgeWithdrawAllRequestStruct,
1026
+ ownerSigIfFirstCall: BytesLike,
1103
1027
  overrides?: CallOverrides
1104
1028
  ): Promise<void>;
1105
1029
 
1106
- "swapBridgeWithdrawAll(((address,bytes32,uint256,bytes32,uint256),(address,address,bytes),(address,address,bytes),uint256,uint256),bytes,((bytes32,uint256,uint32,uint32),bool,address,address,uint256),bytes)"(
1107
- ms: IPPTLooper.SwapBridgeWithdrawAllMessageStruct,
1108
- proposerSig: BytesLike,
1109
- req: IPPTLooper.SwapBridgeWithdrawAllRequestStruct,
1110
- ownerSig: BytesLike,
1030
+ terminateSession(
1031
+ owner: string,
1032
+ boxId: BytesLike,
1033
+ requestHash: BytesLike,
1111
1034
  overrides?: CallOverrides
1112
1035
  ): Promise<void>;
1113
1036
 
@@ -1144,7 +1067,7 @@ export interface IPPTLooper extends BaseContract {
1144
1067
  "PositionDecreased(address,bytes32,bytes32,uint256,uint256,uint256,uint256)"(
1145
1068
  owner?: string | null,
1146
1069
  boxId?: BytesLike | null,
1147
- ownerSigHash?: null,
1070
+ requestHash?: null,
1148
1071
  nonce?: null,
1149
1072
  preDebtBalance?: null,
1150
1073
  netPtToSwap?: null,
@@ -1153,7 +1076,7 @@ export interface IPPTLooper extends BaseContract {
1153
1076
  PositionDecreased(
1154
1077
  owner?: string | null,
1155
1078
  boxId?: BytesLike | null,
1156
- ownerSigHash?: null,
1079
+ requestHash?: null,
1157
1080
  nonce?: null,
1158
1081
  preDebtBalance?: null,
1159
1082
  netPtToSwap?: null,
@@ -1163,22 +1086,65 @@ export interface IPPTLooper extends BaseContract {
1163
1086
  "PositionIncreased(address,bytes32,bytes32,uint256,uint256,uint256,uint256)"(
1164
1087
  owner?: string | null,
1165
1088
  boxId?: BytesLike | null,
1166
- ownerSigHash?: null,
1089
+ requestHash?: null,
1167
1090
  nonce?: null,
1168
- preDebtBalance?: null,
1091
+ preInBalance?: null,
1169
1092
  netPtToMM?: null,
1170
1093
  postDebtBalance?: null
1171
1094
  ): PositionIncreasedEventFilter;
1172
1095
  PositionIncreased(
1173
1096
  owner?: string | null,
1174
1097
  boxId?: BytesLike | null,
1175
- ownerSigHash?: null,
1098
+ requestHash?: null,
1176
1099
  nonce?: null,
1177
- preDebtBalance?: null,
1100
+ preInBalance?: null,
1178
1101
  netPtToMM?: null,
1179
1102
  postDebtBalance?: null
1180
1103
  ): PositionIncreasedEventFilter;
1181
1104
 
1105
+ "RewardsClaimed(address,bytes32,bytes32,uint256,address[],uint256[])"(
1106
+ owner?: string | null,
1107
+ boxId?: BytesLike | null,
1108
+ requestHash?: null,
1109
+ nonce?: null,
1110
+ rewardTokens?: null,
1111
+ claimedAmounts?: null
1112
+ ): RewardsClaimedEventFilter;
1113
+ RewardsClaimed(
1114
+ owner?: string | null,
1115
+ boxId?: BytesLike | null,
1116
+ requestHash?: null,
1117
+ nonce?: null,
1118
+ rewardTokens?: null,
1119
+ claimedAmounts?: null
1120
+ ): RewardsClaimedEventFilter;
1121
+
1122
+ "SessionInitiated(address,bytes32,bytes32,uint32)"(
1123
+ owner?: string | null,
1124
+ boxId?: BytesLike | null,
1125
+ requestHash?: null,
1126
+ sessionNonce?: null
1127
+ ): SessionInitiatedEventFilter;
1128
+ SessionInitiated(
1129
+ owner?: string | null,
1130
+ boxId?: BytesLike | null,
1131
+ requestHash?: null,
1132
+ sessionNonce?: null
1133
+ ): SessionInitiatedEventFilter;
1134
+
1135
+ "SessionTerminated(address,bytes32,bytes32,uint32)"(
1136
+ owner?: string | null,
1137
+ boxId?: BytesLike | null,
1138
+ requestHash?: null,
1139
+ sessionNonce?: null
1140
+ ): SessionTerminatedEventFilter;
1141
+ SessionTerminated(
1142
+ owner?: string | null,
1143
+ boxId?: BytesLike | null,
1144
+ requestHash?: null,
1145
+ sessionNonce?: null
1146
+ ): SessionTerminatedEventFilter;
1147
+
1182
1148
  "SetExecutor(address)"(executor?: null): SetExecutorEventFilter;
1183
1149
  SetExecutor(executor?: null): SetExecutorEventFilter;
1184
1150
 
@@ -1201,159 +1167,155 @@ export interface IPPTLooper extends BaseContract {
1201
1167
  tokenIn?: string | null,
1202
1168
  netIn?: null,
1203
1169
  tokenOut?: string | null,
1204
- netOut?: null
1170
+ netSwappedOut?: null
1205
1171
  ): TokenSwappedEventFilter;
1206
1172
  TokenSwapped(
1207
1173
  box?: string | null,
1208
1174
  tokenIn?: string | null,
1209
1175
  netIn?: null,
1210
1176
  tokenOut?: string | null,
1211
- netOut?: null
1177
+ netSwappedOut?: null
1212
1178
  ): TokenSwappedEventFilter;
1213
1179
 
1214
- "UserRequestStateSet(address,bytes32,bytes32,uint32,bool)"(
1215
- owner?: string | null,
1216
- boxId?: BytesLike | null,
1217
- ownerSigHash?: null,
1218
- sessionNonce?: null,
1219
- isInitiate?: null
1220
- ): UserRequestStateSetEventFilter;
1221
- UserRequestStateSet(
1222
- owner?: string | null,
1223
- boxId?: BytesLike | null,
1224
- ownerSigHash?: null,
1225
- sessionNonce?: null,
1226
- isInitiate?: null
1227
- ): UserRequestStateSetEventFilter;
1228
-
1229
- "Withdrawn(address,bytes32,bytes32,uint256,address,uint256,uint256)"(
1180
+ "Withdrawn(address,bytes32,bytes32,uint256,address,uint256)"(
1230
1181
  owner?: string | null,
1231
1182
  boxId?: BytesLike | null,
1232
- ownerSigHash?: null,
1183
+ requestHash?: null,
1233
1184
  nonce?: null,
1234
1185
  tokenOut?: null,
1235
- netOut?: null,
1236
- fee?: null
1186
+ netOut?: null
1237
1187
  ): WithdrawnEventFilter;
1238
1188
  Withdrawn(
1239
1189
  owner?: string | null,
1240
1190
  boxId?: BytesLike | null,
1241
- ownerSigHash?: null,
1191
+ requestHash?: null,
1242
1192
  nonce?: null,
1243
1193
  tokenOut?: null,
1244
- netOut?: null,
1245
- fee?: null
1194
+ netOut?: null
1246
1195
  ): WithdrawnEventFilter;
1247
1196
  };
1248
1197
 
1249
1198
  estimateGas: {
1250
1199
  POSITION_BOX_FACTORY(overrides?: CallOverrides): Promise<BigNumber>;
1251
1200
 
1252
- claimMoneyMarketRewards(
1253
- owner: string,
1254
- boxId: BytesLike,
1201
+ POST_LOOP_STATE_CHECKER(overrides?: CallOverrides): Promise<BigNumber>;
1202
+
1203
+ claimMMRewards(
1204
+ ms: IPPTLooperEIP712Types.ClaimMMRewardsMessageStruct,
1205
+ proposerSig: BytesLike,
1206
+ req: IPPTLooperEIP712Types.ClaimMMRewardsRequestStruct,
1207
+ ownerSigIfFirstCall: BytesLike,
1255
1208
  overrides?: Overrides & { from?: string | Promise<string> }
1256
1209
  ): Promise<BigNumber>;
1257
1210
 
1258
- "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)"(
1259
- ms: IPPTLooper.DecreasePositionMessageStruct,
1211
+ decreaseLoopPosition(
1212
+ ms: IPPTLooperEIP712Types.DecreasePositionMessageStruct,
1260
1213
  proposerSig: BytesLike,
1261
- req: IPPTLooper.BatchDecPosThenWithdrawRequestStruct,
1262
- ownerSig: BytesLike,
1214
+ req: IPPTLooperEIP712Types.DecreasePositionRequestStruct,
1215
+ ownerSigIfFirstCall: BytesLike,
1263
1216
  overrides?: PayableOverrides & { from?: string | Promise<string> }
1264
1217
  ): Promise<BigNumber>;
1265
1218
 
1266
- "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)"(
1267
- ms: IPPTLooper.DecreasePositionMessageStruct,
1268
- proposerSig: BytesLike,
1269
- req: IPPTLooper.DecreasePositionRequestStruct,
1270
- ownerSig: BytesLike,
1271
- overrides?: PayableOverrides & { from?: string | Promise<string> }
1219
+ executor(overrides?: CallOverrides): Promise<BigNumber>;
1220
+
1221
+ "hashRaw(((bytes32,uint256,uint32,uint32,uint256,bytes),address,uint256,uint256,uint256,bool,uint256))"(
1222
+ req: IPPTLooperEIP712Types.IncreasePositionRequestStruct,
1223
+ overrides?: CallOverrides
1272
1224
  ): Promise<BigNumber>;
1273
1225
 
1274
- depositToBox(
1275
- boxId: BytesLike,
1276
- tokenIn: string,
1277
- amountIn: BigNumberish,
1278
- swapCall: IPPTLooper.BoxApprovedCallStruct,
1279
- minDebtTokenSwapOut: BigNumberish,
1280
- overrides?: PayableOverrides & { from?: string | Promise<string> }
1226
+ "hashRaw((bytes32,uint256,uint32,uint32,uint256,bytes))"(
1227
+ header: IPPTLooperEIP712Types.RequestHeaderStruct,
1228
+ overrides?: CallOverrides
1281
1229
  ): Promise<BigNumber>;
1282
1230
 
1283
- executor(overrides?: CallOverrides): Promise<BigNumber>;
1231
+ "hashRaw(((address,bytes32,uint256,uint256)))"(
1232
+ ms: IPPTLooperEIP712Types.ClaimMMRewardsMessageStruct,
1233
+ overrides?: CallOverrides
1234
+ ): Promise<BigNumber>;
1284
1235
 
1285
- hashBoxApprovedCall(
1286
- call: IPPTLooper.BoxApprovedCallStruct,
1236
+ "hashRaw(((address,address,bytes),uint256,uint256))"(
1237
+ bridge: IPPTLooperEIP712Types.BridgeDataStruct,
1287
1238
  overrides?: CallOverrides
1288
1239
  ): Promise<BigNumber>;
1289
1240
 
1290
- hashBoxPermit(
1291
- permit: IPPTLooper.BoxPermitStruct,
1241
+ "hashRaw((address,bytes32,uint256,uint256))"(
1242
+ permit: IPPTLooperEIP712Types.BoxPermitStruct,
1292
1243
  overrides?: CallOverrides
1293
1244
  ): Promise<BigNumber>;
1294
1245
 
1295
- hashRequestHeader(
1296
- header: IPPTLooper.RequestHeaderStruct,
1246
+ "hashRaw(((bytes32,uint256,uint32,uint32,uint256,bytes),address,bytes,address[]))"(
1247
+ req: IPPTLooperEIP712Types.ClaimMMRewardsRequestStruct,
1297
1248
  overrides?: CallOverrides
1298
1249
  ): Promise<BigNumber>;
1299
1250
 
1300
- hashTyped_BatchDecPosThenWithdrawReq(
1301
- req: IPPTLooper.BatchDecPosThenWithdrawRequestStruct,
1251
+ "hashRaw(((bytes32,uint256,uint32,uint32,uint256,bytes),uint256,uint256))"(
1252
+ req: IPPTLooperEIP712Types.DecreasePositionRequestStruct,
1302
1253
  overrides?: CallOverrides
1303
1254
  ): Promise<BigNumber>;
1304
1255
 
1305
- hashTyped_DecreasePositionMsg(
1306
- message: IPPTLooper.DecreasePositionMessageStruct,
1256
+ "hashRaw(((bytes32,uint256,uint32,uint32,uint256,bytes),bool,address,address,uint256))"(
1257
+ req: IPPTLooperEIP712Types.SwapBridgeWithdrawAllRequestStruct,
1307
1258
  overrides?: CallOverrides
1308
1259
  ): Promise<BigNumber>;
1309
1260
 
1310
- hashTyped_DecreasePositionReq(
1311
- request: IPPTLooper.DecreasePositionRequestStruct,
1261
+ "hashRaw((address,address,bytes))"(
1262
+ call: IPPTLooperEIP712Types.BoxApprovedCallStruct,
1312
1263
  overrides?: CallOverrides
1313
1264
  ): Promise<BigNumber>;
1314
1265
 
1315
- hashTyped_IncreasePositionMsg(
1316
- message: IPPTLooper.IncreasePositionMessageStruct,
1266
+ "hashTyped(((bytes32,uint256,uint32,uint32,uint256,bytes),uint256,uint256))"(
1267
+ req: IPPTLooperEIP712Types.DecreasePositionRequestStruct,
1317
1268
  overrides?: CallOverrides
1318
1269
  ): Promise<BigNumber>;
1319
1270
 
1320
- hashTyped_IncreasePositionReq(
1321
- request: IPPTLooper.IncreasePositionRequestStruct,
1271
+ "hashTyped(((address,bytes32,uint256,uint256),(address,address,bytes),((address,address,bytes),uint256,uint256),uint256,bytes))"(
1272
+ ms: IPPTLooperEIP712Types.DecreasePositionMessageStruct,
1322
1273
  overrides?: CallOverrides
1323
1274
  ): Promise<BigNumber>;
1324
1275
 
1325
- hashTyped_SwapBridgeWithdrawAllMsg(
1326
- message: IPPTLooper.SwapBridgeWithdrawAllMessageStruct,
1276
+ "hashTyped(((address,bytes32,uint256,uint256),(address,address,bytes),uint256,((address,address,bytes),uint256,uint256),uint256,bytes))"(
1277
+ ms: IPPTLooperEIP712Types.IncreasePositionMessageStruct,
1327
1278
  overrides?: CallOverrides
1328
1279
  ): Promise<BigNumber>;
1329
1280
 
1330
- hashTyped_SwapBridgeWithdrawAllReq(
1331
- request: IPPTLooper.SwapBridgeWithdrawAllRequestStruct,
1281
+ "hashTyped(((bytes32,uint256,uint32,uint32,uint256,bytes),bool,address,address,uint256))"(
1282
+ req: IPPTLooperEIP712Types.SwapBridgeWithdrawAllRequestStruct,
1332
1283
  overrides?: CallOverrides
1333
1284
  ): Promise<BigNumber>;
1334
1285
 
1335
- hashTyped_UserRequestStateSetMsg(
1336
- msg: IPPTLooper.UserRequestStateSetMessageStruct,
1286
+ "hashTyped(((bytes32,uint256,uint32,uint32,uint256,bytes),address,bytes,address[]))"(
1287
+ req: IPPTLooperEIP712Types.ClaimMMRewardsRequestStruct,
1337
1288
  overrides?: CallOverrides
1338
1289
  ): Promise<BigNumber>;
1339
1290
 
1340
- increaseLoopPosition(
1341
- ms: IPPTLooper.IncreasePositionMessageStruct,
1342
- proposerSig: BytesLike,
1343
- req: IPPTLooper.IncreasePositionRequestStruct,
1344
- ownerSig: BytesLike,
1345
- overrides?: PayableOverrides & { from?: string | Promise<string> }
1291
+ "hashTyped(((bytes32,uint256,uint32,uint32,uint256,bytes),address,uint256,uint256,uint256,bool,uint256))"(
1292
+ req: IPPTLooperEIP712Types.IncreasePositionRequestStruct,
1293
+ overrides?: CallOverrides
1346
1294
  ): Promise<BigNumber>;
1347
1295
 
1348
- multicall(
1349
- calls: IMulticall.Call3Struct[],
1296
+ "hashTyped(((address,bytes32,uint256,uint256),(address,address,bytes),((address,address,bytes),uint256,uint256),bytes))"(
1297
+ ms: IPPTLooperEIP712Types.SwapBridgeWithdrawAllMessageStruct,
1298
+ overrides?: CallOverrides
1299
+ ): Promise<BigNumber>;
1300
+
1301
+ "hashTyped(((address,bytes32,uint256,uint256)))"(
1302
+ ms: IPPTLooperEIP712Types.ClaimMMRewardsMessageStruct,
1303
+ overrides?: CallOverrides
1304
+ ): Promise<BigNumber>;
1305
+
1306
+ increaseLoopPosition(
1307
+ ms: IPPTLooperEIP712Types.IncreasePositionMessageStruct,
1308
+ proposerSig: BytesLike,
1309
+ req: IPPTLooperEIP712Types.IncreasePositionRequestStruct,
1310
+ ownerSigIfFirstCall: BytesLike,
1350
1311
  overrides?: PayableOverrides & { from?: string | Promise<string> }
1351
1312
  ): Promise<BigNumber>;
1352
1313
 
1353
1314
  proposer(overrides?: CallOverrides): Promise<BigNumber>;
1354
1315
 
1355
1316
  proposerNonce(
1356
- ownerSigHash: BytesLike,
1317
+ owner: string,
1318
+ requestHash: BytesLike,
1357
1319
  overrides?: CallOverrides
1358
1320
  ): Promise<BigNumber>;
1359
1321
 
@@ -1367,26 +1329,19 @@ export interface IPPTLooper extends BaseContract {
1367
1329
  overrides?: Overrides & { from?: string | Promise<string> }
1368
1330
  ): Promise<BigNumber>;
1369
1331
 
1370
- setUserRequestState(
1371
- ms: IPPTLooper.UserRequestStateSetMessageStruct,
1372
- proposerSignature: BytesLike,
1373
- overrides?: Overrides & { from?: string | Promise<string> }
1374
- ): Promise<BigNumber>;
1375
-
1376
- "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)"(
1377
- ms: IPPTLooper.SwapBridgeWithdrawAllMessageStruct,
1332
+ swapBridgeWithdrawAll(
1333
+ ms: IPPTLooperEIP712Types.SwapBridgeWithdrawAllMessageStruct,
1378
1334
  proposerSig: BytesLike,
1379
- req: IPPTLooper.BatchDecPosThenWithdrawRequestStruct,
1380
- ownerSig: BytesLike,
1335
+ req: IPPTLooperEIP712Types.SwapBridgeWithdrawAllRequestStruct,
1336
+ ownerSigIfFirstCall: BytesLike,
1381
1337
  overrides?: PayableOverrides & { from?: string | Promise<string> }
1382
1338
  ): Promise<BigNumber>;
1383
1339
 
1384
- "swapBridgeWithdrawAll(((address,bytes32,uint256,bytes32,uint256),(address,address,bytes),(address,address,bytes),uint256,uint256),bytes,((bytes32,uint256,uint32,uint32),bool,address,address,uint256),bytes)"(
1385
- ms: IPPTLooper.SwapBridgeWithdrawAllMessageStruct,
1386
- proposerSig: BytesLike,
1387
- req: IPPTLooper.SwapBridgeWithdrawAllRequestStruct,
1388
- ownerSig: BytesLike,
1389
- overrides?: PayableOverrides & { from?: string | Promise<string> }
1340
+ terminateSession(
1341
+ owner: string,
1342
+ boxId: BytesLike,
1343
+ requestHash: BytesLike,
1344
+ overrides?: Overrides & { from?: string | Promise<string> }
1390
1345
  ): Promise<BigNumber>;
1391
1346
 
1392
1347
  userRequest(
@@ -1401,111 +1356,126 @@ export interface IPPTLooper extends BaseContract {
1401
1356
  overrides?: CallOverrides
1402
1357
  ): Promise<PopulatedTransaction>;
1403
1358
 
1404
- claimMoneyMarketRewards(
1405
- owner: string,
1406
- boxId: BytesLike,
1407
- overrides?: Overrides & { from?: string | Promise<string> }
1359
+ POST_LOOP_STATE_CHECKER(
1360
+ overrides?: CallOverrides
1408
1361
  ): Promise<PopulatedTransaction>;
1409
1362
 
1410
- "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)"(
1411
- ms: IPPTLooper.DecreasePositionMessageStruct,
1363
+ claimMMRewards(
1364
+ ms: IPPTLooperEIP712Types.ClaimMMRewardsMessageStruct,
1412
1365
  proposerSig: BytesLike,
1413
- req: IPPTLooper.BatchDecPosThenWithdrawRequestStruct,
1414
- ownerSig: BytesLike,
1415
- overrides?: PayableOverrides & { from?: string | Promise<string> }
1366
+ req: IPPTLooperEIP712Types.ClaimMMRewardsRequestStruct,
1367
+ ownerSigIfFirstCall: BytesLike,
1368
+ overrides?: Overrides & { from?: string | Promise<string> }
1416
1369
  ): Promise<PopulatedTransaction>;
1417
1370
 
1418
- "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)"(
1419
- ms: IPPTLooper.DecreasePositionMessageStruct,
1371
+ decreaseLoopPosition(
1372
+ ms: IPPTLooperEIP712Types.DecreasePositionMessageStruct,
1420
1373
  proposerSig: BytesLike,
1421
- req: IPPTLooper.DecreasePositionRequestStruct,
1422
- ownerSig: BytesLike,
1374
+ req: IPPTLooperEIP712Types.DecreasePositionRequestStruct,
1375
+ ownerSigIfFirstCall: BytesLike,
1423
1376
  overrides?: PayableOverrides & { from?: string | Promise<string> }
1424
1377
  ): Promise<PopulatedTransaction>;
1425
1378
 
1426
- depositToBox(
1427
- boxId: BytesLike,
1428
- tokenIn: string,
1429
- amountIn: BigNumberish,
1430
- swapCall: IPPTLooper.BoxApprovedCallStruct,
1431
- minDebtTokenSwapOut: BigNumberish,
1432
- overrides?: PayableOverrides & { from?: string | Promise<string> }
1379
+ executor(overrides?: CallOverrides): Promise<PopulatedTransaction>;
1380
+
1381
+ "hashRaw(((bytes32,uint256,uint32,uint32,uint256,bytes),address,uint256,uint256,uint256,bool,uint256))"(
1382
+ req: IPPTLooperEIP712Types.IncreasePositionRequestStruct,
1383
+ overrides?: CallOverrides
1433
1384
  ): Promise<PopulatedTransaction>;
1434
1385
 
1435
- executor(overrides?: CallOverrides): Promise<PopulatedTransaction>;
1386
+ "hashRaw((bytes32,uint256,uint32,uint32,uint256,bytes))"(
1387
+ header: IPPTLooperEIP712Types.RequestHeaderStruct,
1388
+ overrides?: CallOverrides
1389
+ ): Promise<PopulatedTransaction>;
1436
1390
 
1437
- hashBoxApprovedCall(
1438
- call: IPPTLooper.BoxApprovedCallStruct,
1391
+ "hashRaw(((address,bytes32,uint256,uint256)))"(
1392
+ ms: IPPTLooperEIP712Types.ClaimMMRewardsMessageStruct,
1439
1393
  overrides?: CallOverrides
1440
1394
  ): Promise<PopulatedTransaction>;
1441
1395
 
1442
- hashBoxPermit(
1443
- permit: IPPTLooper.BoxPermitStruct,
1396
+ "hashRaw(((address,address,bytes),uint256,uint256))"(
1397
+ bridge: IPPTLooperEIP712Types.BridgeDataStruct,
1444
1398
  overrides?: CallOverrides
1445
1399
  ): Promise<PopulatedTransaction>;
1446
1400
 
1447
- hashRequestHeader(
1448
- header: IPPTLooper.RequestHeaderStruct,
1401
+ "hashRaw((address,bytes32,uint256,uint256))"(
1402
+ permit: IPPTLooperEIP712Types.BoxPermitStruct,
1449
1403
  overrides?: CallOverrides
1450
1404
  ): Promise<PopulatedTransaction>;
1451
1405
 
1452
- hashTyped_BatchDecPosThenWithdrawReq(
1453
- req: IPPTLooper.BatchDecPosThenWithdrawRequestStruct,
1406
+ "hashRaw(((bytes32,uint256,uint32,uint32,uint256,bytes),address,bytes,address[]))"(
1407
+ req: IPPTLooperEIP712Types.ClaimMMRewardsRequestStruct,
1454
1408
  overrides?: CallOverrides
1455
1409
  ): Promise<PopulatedTransaction>;
1456
1410
 
1457
- hashTyped_DecreasePositionMsg(
1458
- message: IPPTLooper.DecreasePositionMessageStruct,
1411
+ "hashRaw(((bytes32,uint256,uint32,uint32,uint256,bytes),uint256,uint256))"(
1412
+ req: IPPTLooperEIP712Types.DecreasePositionRequestStruct,
1459
1413
  overrides?: CallOverrides
1460
1414
  ): Promise<PopulatedTransaction>;
1461
1415
 
1462
- hashTyped_DecreasePositionReq(
1463
- request: IPPTLooper.DecreasePositionRequestStruct,
1416
+ "hashRaw(((bytes32,uint256,uint32,uint32,uint256,bytes),bool,address,address,uint256))"(
1417
+ req: IPPTLooperEIP712Types.SwapBridgeWithdrawAllRequestStruct,
1464
1418
  overrides?: CallOverrides
1465
1419
  ): Promise<PopulatedTransaction>;
1466
1420
 
1467
- hashTyped_IncreasePositionMsg(
1468
- message: IPPTLooper.IncreasePositionMessageStruct,
1421
+ "hashRaw((address,address,bytes))"(
1422
+ call: IPPTLooperEIP712Types.BoxApprovedCallStruct,
1469
1423
  overrides?: CallOverrides
1470
1424
  ): Promise<PopulatedTransaction>;
1471
1425
 
1472
- hashTyped_IncreasePositionReq(
1473
- request: IPPTLooper.IncreasePositionRequestStruct,
1426
+ "hashTyped(((bytes32,uint256,uint32,uint32,uint256,bytes),uint256,uint256))"(
1427
+ req: IPPTLooperEIP712Types.DecreasePositionRequestStruct,
1474
1428
  overrides?: CallOverrides
1475
1429
  ): Promise<PopulatedTransaction>;
1476
1430
 
1477
- hashTyped_SwapBridgeWithdrawAllMsg(
1478
- message: IPPTLooper.SwapBridgeWithdrawAllMessageStruct,
1431
+ "hashTyped(((address,bytes32,uint256,uint256),(address,address,bytes),((address,address,bytes),uint256,uint256),uint256,bytes))"(
1432
+ ms: IPPTLooperEIP712Types.DecreasePositionMessageStruct,
1479
1433
  overrides?: CallOverrides
1480
1434
  ): Promise<PopulatedTransaction>;
1481
1435
 
1482
- hashTyped_SwapBridgeWithdrawAllReq(
1483
- request: IPPTLooper.SwapBridgeWithdrawAllRequestStruct,
1436
+ "hashTyped(((address,bytes32,uint256,uint256),(address,address,bytes),uint256,((address,address,bytes),uint256,uint256),uint256,bytes))"(
1437
+ ms: IPPTLooperEIP712Types.IncreasePositionMessageStruct,
1484
1438
  overrides?: CallOverrides
1485
1439
  ): Promise<PopulatedTransaction>;
1486
1440
 
1487
- hashTyped_UserRequestStateSetMsg(
1488
- msg: IPPTLooper.UserRequestStateSetMessageStruct,
1441
+ "hashTyped(((bytes32,uint256,uint32,uint32,uint256,bytes),bool,address,address,uint256))"(
1442
+ req: IPPTLooperEIP712Types.SwapBridgeWithdrawAllRequestStruct,
1489
1443
  overrides?: CallOverrides
1490
1444
  ): Promise<PopulatedTransaction>;
1491
1445
 
1492
- increaseLoopPosition(
1493
- ms: IPPTLooper.IncreasePositionMessageStruct,
1494
- proposerSig: BytesLike,
1495
- req: IPPTLooper.IncreasePositionRequestStruct,
1496
- ownerSig: BytesLike,
1497
- overrides?: PayableOverrides & { from?: string | Promise<string> }
1446
+ "hashTyped(((bytes32,uint256,uint32,uint32,uint256,bytes),address,bytes,address[]))"(
1447
+ req: IPPTLooperEIP712Types.ClaimMMRewardsRequestStruct,
1448
+ overrides?: CallOverrides
1449
+ ): Promise<PopulatedTransaction>;
1450
+
1451
+ "hashTyped(((bytes32,uint256,uint32,uint32,uint256,bytes),address,uint256,uint256,uint256,bool,uint256))"(
1452
+ req: IPPTLooperEIP712Types.IncreasePositionRequestStruct,
1453
+ overrides?: CallOverrides
1454
+ ): Promise<PopulatedTransaction>;
1455
+
1456
+ "hashTyped(((address,bytes32,uint256,uint256),(address,address,bytes),((address,address,bytes),uint256,uint256),bytes))"(
1457
+ ms: IPPTLooperEIP712Types.SwapBridgeWithdrawAllMessageStruct,
1458
+ overrides?: CallOverrides
1459
+ ): Promise<PopulatedTransaction>;
1460
+
1461
+ "hashTyped(((address,bytes32,uint256,uint256)))"(
1462
+ ms: IPPTLooperEIP712Types.ClaimMMRewardsMessageStruct,
1463
+ overrides?: CallOverrides
1498
1464
  ): Promise<PopulatedTransaction>;
1499
1465
 
1500
- multicall(
1501
- calls: IMulticall.Call3Struct[],
1466
+ increaseLoopPosition(
1467
+ ms: IPPTLooperEIP712Types.IncreasePositionMessageStruct,
1468
+ proposerSig: BytesLike,
1469
+ req: IPPTLooperEIP712Types.IncreasePositionRequestStruct,
1470
+ ownerSigIfFirstCall: BytesLike,
1502
1471
  overrides?: PayableOverrides & { from?: string | Promise<string> }
1503
1472
  ): Promise<PopulatedTransaction>;
1504
1473
 
1505
1474
  proposer(overrides?: CallOverrides): Promise<PopulatedTransaction>;
1506
1475
 
1507
1476
  proposerNonce(
1508
- ownerSigHash: BytesLike,
1477
+ owner: string,
1478
+ requestHash: BytesLike,
1509
1479
  overrides?: CallOverrides
1510
1480
  ): Promise<PopulatedTransaction>;
1511
1481
 
@@ -1519,26 +1489,19 @@ export interface IPPTLooper extends BaseContract {
1519
1489
  overrides?: Overrides & { from?: string | Promise<string> }
1520
1490
  ): Promise<PopulatedTransaction>;
1521
1491
 
1522
- setUserRequestState(
1523
- ms: IPPTLooper.UserRequestStateSetMessageStruct,
1524
- proposerSignature: BytesLike,
1525
- overrides?: Overrides & { from?: string | Promise<string> }
1526
- ): Promise<PopulatedTransaction>;
1527
-
1528
- "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)"(
1529
- ms: IPPTLooper.SwapBridgeWithdrawAllMessageStruct,
1492
+ swapBridgeWithdrawAll(
1493
+ ms: IPPTLooperEIP712Types.SwapBridgeWithdrawAllMessageStruct,
1530
1494
  proposerSig: BytesLike,
1531
- req: IPPTLooper.BatchDecPosThenWithdrawRequestStruct,
1532
- ownerSig: BytesLike,
1495
+ req: IPPTLooperEIP712Types.SwapBridgeWithdrawAllRequestStruct,
1496
+ ownerSigIfFirstCall: BytesLike,
1533
1497
  overrides?: PayableOverrides & { from?: string | Promise<string> }
1534
1498
  ): Promise<PopulatedTransaction>;
1535
1499
 
1536
- "swapBridgeWithdrawAll(((address,bytes32,uint256,bytes32,uint256),(address,address,bytes),(address,address,bytes),uint256,uint256),bytes,((bytes32,uint256,uint32,uint32),bool,address,address,uint256),bytes)"(
1537
- ms: IPPTLooper.SwapBridgeWithdrawAllMessageStruct,
1538
- proposerSig: BytesLike,
1539
- req: IPPTLooper.SwapBridgeWithdrawAllRequestStruct,
1540
- ownerSig: BytesLike,
1541
- overrides?: PayableOverrides & { from?: string | Promise<string> }
1500
+ terminateSession(
1501
+ owner: string,
1502
+ boxId: BytesLike,
1503
+ requestHash: BytesLike,
1504
+ overrides?: Overrides & { from?: string | Promise<string> }
1542
1505
  ): Promise<PopulatedTransaction>;
1543
1506
 
1544
1507
  userRequest(