@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,263 +102,189 @@ export declare namespace IPPTLooper {
58
102
  callData: string;
59
103
  };
60
104
 
61
- export type DecreasePositionMessageStruct = {
62
- permit: IPPTLooper.BoxPermitStruct;
63
- swap: IPPTLooper.BoxApprovedCallStruct;
64
- bridge: IPPTLooper.BoxApprovedCallStruct;
65
- maxBridgeAmount: BigNumberish;
66
- bridgeNativeFee: BigNumberish;
67
- minDebtRepaid: BigNumberish;
68
- amountPtWithdrawn: BigNumberish;
69
- minPtWithdrawn: BigNumberish;
70
- postWithdrawMaxLTV: BigNumberish;
105
+ export type BridgeDataStruct = {
106
+ call: IPPTLooperEIP712Types.BoxApprovedCallStruct;
107
+ maxAmount: BigNumberish;
108
+ nativeFee: BigNumberish;
71
109
  };
72
110
 
73
- export type DecreasePositionMessageStructOutput = [
74
- IPPTLooper.BoxPermitStructOutput,
75
- IPPTLooper.BoxApprovedCallStructOutput,
76
- IPPTLooper.BoxApprovedCallStructOutput,
77
- BigNumber,
78
- BigNumber,
79
- BigNumber,
80
- BigNumber,
111
+ export type BridgeDataStructOutput = [
112
+ IPPTLooperEIP712Types.BoxApprovedCallStructOutput,
81
113
  BigNumber,
82
114
  BigNumber
83
115
  ] & {
84
- permit: IPPTLooper.BoxPermitStructOutput;
85
- swap: IPPTLooper.BoxApprovedCallStructOutput;
86
- bridge: IPPTLooper.BoxApprovedCallStructOutput;
87
- maxBridgeAmount: BigNumber;
88
- bridgeNativeFee: BigNumber;
89
- minDebtRepaid: BigNumber;
90
- amountPtWithdrawn: BigNumber;
91
- minPtWithdrawn: BigNumber;
92
- postWithdrawMaxLTV: BigNumber;
116
+ call: IPPTLooperEIP712Types.BoxApprovedCallStructOutput;
117
+ maxAmount: BigNumber;
118
+ nativeFee: BigNumber;
93
119
  };
94
120
 
95
- export type RequestHeaderStruct = {
96
- boxId: BytesLike;
97
- expiry: BigNumberish;
98
- sessionNonce: BigNumberish;
99
- permitNonceCap: BigNumberish;
121
+ export type DecreasePositionMessageStruct = {
122
+ permit: IPPTLooperEIP712Types.BoxPermitStruct;
123
+ swap: IPPTLooperEIP712Types.BoxApprovedCallStruct;
124
+ bridge: IPPTLooperEIP712Types.BridgeDataStruct;
125
+ amountPtWithdrawn: BigNumberish;
126
+ postStateCheckData: BytesLike;
100
127
  };
101
128
 
102
- export type RequestHeaderStructOutput = [
103
- string,
129
+ export type DecreasePositionMessageStructOutput = [
130
+ IPPTLooperEIP712Types.BoxPermitStructOutput,
131
+ IPPTLooperEIP712Types.BoxApprovedCallStructOutput,
132
+ IPPTLooperEIP712Types.BridgeDataStructOutput,
104
133
  BigNumber,
105
- number,
106
- number
134
+ string
107
135
  ] & {
108
- boxId: string;
109
- expiry: BigNumber;
110
- sessionNonce: number;
111
- permitNonceCap: number;
136
+ permit: IPPTLooperEIP712Types.BoxPermitStructOutput;
137
+ swap: IPPTLooperEIP712Types.BoxApprovedCallStructOutput;
138
+ bridge: IPPTLooperEIP712Types.BridgeDataStructOutput;
139
+ amountPtWithdrawn: BigNumber;
140
+ postStateCheckData: string;
112
141
  };
113
142
 
114
143
  export type DecreasePositionRequestStruct = {
115
- header: IPPTLooper.RequestHeaderStruct;
116
- targetMaxDebt: BigNumberish;
117
- minPtToTokenSwapRate: BigNumberish;
144
+ header: IPPTLooperEIP712Types.RequestHeaderStruct;
145
+ minPtToDebtSwapRate: BigNumberish;
118
146
  postWithdrawMaxLTV: BigNumberish;
119
147
  };
120
148
 
121
149
  export type DecreasePositionRequestStructOutput = [
122
- IPPTLooper.RequestHeaderStructOutput,
123
- BigNumber,
150
+ IPPTLooperEIP712Types.RequestHeaderStructOutput,
124
151
  BigNumber,
125
152
  BigNumber
126
153
  ] & {
127
- header: IPPTLooper.RequestHeaderStructOutput;
128
- targetMaxDebt: BigNumber;
129
- minPtToTokenSwapRate: BigNumber;
154
+ header: IPPTLooperEIP712Types.RequestHeaderStructOutput;
155
+ minPtToDebtSwapRate: BigNumber;
130
156
  postWithdrawMaxLTV: BigNumber;
131
157
  };
132
158
 
159
+ export type IncreasePositionRequestStruct = {
160
+ header: IPPTLooperEIP712Types.RequestHeaderStruct;
161
+ initTokenIn: string;
162
+ initMinToPtSwapRate: BigNumberish;
163
+ minDebtToPtSwapRate: BigNumberish;
164
+ postBorrowMaxLTV: BigNumberish;
165
+ isZeroPriceImpact: boolean;
166
+ maxFeeRate: BigNumberish;
167
+ };
168
+
169
+ export type IncreasePositionRequestStructOutput = [
170
+ IPPTLooperEIP712Types.RequestHeaderStructOutput,
171
+ string,
172
+ BigNumber,
173
+ BigNumber,
174
+ BigNumber,
175
+ boolean,
176
+ BigNumber
177
+ ] & {
178
+ header: IPPTLooperEIP712Types.RequestHeaderStructOutput;
179
+ initTokenIn: string;
180
+ initMinToPtSwapRate: BigNumber;
181
+ minDebtToPtSwapRate: BigNumber;
182
+ postBorrowMaxLTV: BigNumber;
183
+ isZeroPriceImpact: boolean;
184
+ maxFeeRate: BigNumber;
185
+ };
186
+
133
187
  export type SwapBridgeWithdrawAllRequestStruct = {
134
- header: IPPTLooper.RequestHeaderStruct;
188
+ header: IPPTLooperEIP712Types.RequestHeaderStruct;
135
189
  receiveOnSpoke: boolean;
136
190
  hubTokenOut: string;
137
191
  dstTokenOut: string;
138
- minTokenOut: BigNumberish;
192
+ minTokenWithdrawn: BigNumberish;
139
193
  };
140
194
 
141
195
  export type SwapBridgeWithdrawAllRequestStructOutput = [
142
- IPPTLooper.RequestHeaderStructOutput,
196
+ IPPTLooperEIP712Types.RequestHeaderStructOutput,
143
197
  boolean,
144
198
  string,
145
199
  string,
146
200
  BigNumber
147
201
  ] & {
148
- header: IPPTLooper.RequestHeaderStructOutput;
202
+ header: IPPTLooperEIP712Types.RequestHeaderStructOutput;
149
203
  receiveOnSpoke: boolean;
150
204
  hubTokenOut: string;
151
205
  dstTokenOut: string;
152
- minTokenOut: BigNumber;
153
- };
154
-
155
- export type BatchDecPosThenWithdrawRequestStruct = {
156
- decreasePositionReq: IPPTLooper.DecreasePositionRequestStruct;
157
- swapBridgeWithdrawAllReq: IPPTLooper.SwapBridgeWithdrawAllRequestStruct;
158
- };
159
-
160
- export type BatchDecPosThenWithdrawRequestStructOutput = [
161
- IPPTLooper.DecreasePositionRequestStructOutput,
162
- IPPTLooper.SwapBridgeWithdrawAllRequestStructOutput
163
- ] & {
164
- decreasePositionReq: IPPTLooper.DecreasePositionRequestStructOutput;
165
- swapBridgeWithdrawAllReq: IPPTLooper.SwapBridgeWithdrawAllRequestStructOutput;
206
+ minTokenWithdrawn: BigNumber;
166
207
  };
167
208
 
168
209
  export type IncreasePositionMessageStruct = {
169
- permit: IPPTLooper.BoxPermitStruct;
170
- swap: IPPTLooper.BoxApprovedCallStruct;
171
- debtTokenFee: BigNumberish;
172
- bridge: IPPTLooper.BoxApprovedCallStruct;
173
- maxBridgeAmount: BigNumberish;
174
- bridgeNativeFee: BigNumberish;
175
- minPtLent: BigNumberish;
210
+ permit: IPPTLooperEIP712Types.BoxPermitStruct;
211
+ swap: IPPTLooperEIP712Types.BoxApprovedCallStruct;
212
+ fee: BigNumberish;
213
+ bridge: IPPTLooperEIP712Types.BridgeDataStruct;
176
214
  amountDebtBorrowed: BigNumberish;
177
- minDebtBorrowed: BigNumberish;
178
- postBorrowMaxLTV: BigNumberish;
215
+ postStateCheckData: BytesLike;
179
216
  };
180
217
 
181
218
  export type IncreasePositionMessageStructOutput = [
182
- IPPTLooper.BoxPermitStructOutput,
183
- IPPTLooper.BoxApprovedCallStructOutput,
184
- BigNumber,
185
- IPPTLooper.BoxApprovedCallStructOutput,
219
+ IPPTLooperEIP712Types.BoxPermitStructOutput,
220
+ IPPTLooperEIP712Types.BoxApprovedCallStructOutput,
186
221
  BigNumber,
222
+ IPPTLooperEIP712Types.BridgeDataStructOutput,
187
223
  BigNumber,
188
- BigNumber,
189
- BigNumber,
190
- BigNumber,
191
- BigNumber
224
+ string
192
225
  ] & {
193
- permit: IPPTLooper.BoxPermitStructOutput;
194
- swap: IPPTLooper.BoxApprovedCallStructOutput;
195
- debtTokenFee: BigNumber;
196
- bridge: IPPTLooper.BoxApprovedCallStructOutput;
197
- maxBridgeAmount: BigNumber;
198
- bridgeNativeFee: BigNumber;
199
- minPtLent: BigNumber;
226
+ permit: IPPTLooperEIP712Types.BoxPermitStructOutput;
227
+ swap: IPPTLooperEIP712Types.BoxApprovedCallStructOutput;
228
+ fee: BigNumber;
229
+ bridge: IPPTLooperEIP712Types.BridgeDataStructOutput;
200
230
  amountDebtBorrowed: BigNumber;
201
- minDebtBorrowed: BigNumber;
202
- postBorrowMaxLTV: BigNumber;
203
- };
204
-
205
- export type IncreasePositionRequestStruct = {
206
- header: IPPTLooper.RequestHeaderStruct;
207
- targetMinPt: BigNumberish;
208
- minTokenToPtSwapRate: BigNumberish;
209
- postBorrowMaxLTV: BigNumberish;
210
- isZeroPriceImpact: boolean;
211
- };
212
-
213
- export type IncreasePositionRequestStructOutput = [
214
- IPPTLooper.RequestHeaderStructOutput,
215
- BigNumber,
216
- BigNumber,
217
- BigNumber,
218
- boolean
219
- ] & {
220
- header: IPPTLooper.RequestHeaderStructOutput;
221
- targetMinPt: BigNumber;
222
- minTokenToPtSwapRate: BigNumber;
223
- postBorrowMaxLTV: BigNumber;
224
- isZeroPriceImpact: boolean;
231
+ postStateCheckData: string;
225
232
  };
226
233
 
227
234
  export type SwapBridgeWithdrawAllMessageStruct = {
228
- permit: IPPTLooper.BoxPermitStruct;
229
- swap: IPPTLooper.BoxApprovedCallStruct;
230
- bridge: IPPTLooper.BoxApprovedCallStruct;
231
- maxBridgeAmount: BigNumberish;
232
- bridgeNativeFee: BigNumberish;
235
+ permit: IPPTLooperEIP712Types.BoxPermitStruct;
236
+ swap: IPPTLooperEIP712Types.BoxApprovedCallStruct;
237
+ bridge: IPPTLooperEIP712Types.BridgeDataStruct;
238
+ postStateCheckData: BytesLike;
233
239
  };
234
240
 
235
241
  export type SwapBridgeWithdrawAllMessageStructOutput = [
236
- IPPTLooper.BoxPermitStructOutput,
237
- IPPTLooper.BoxApprovedCallStructOutput,
238
- IPPTLooper.BoxApprovedCallStructOutput,
239
- BigNumber,
240
- BigNumber
242
+ IPPTLooperEIP712Types.BoxPermitStructOutput,
243
+ IPPTLooperEIP712Types.BoxApprovedCallStructOutput,
244
+ IPPTLooperEIP712Types.BridgeDataStructOutput,
245
+ string
241
246
  ] & {
242
- permit: IPPTLooper.BoxPermitStructOutput;
243
- swap: IPPTLooper.BoxApprovedCallStructOutput;
244
- bridge: IPPTLooper.BoxApprovedCallStructOutput;
245
- maxBridgeAmount: BigNumber;
246
- bridgeNativeFee: BigNumber;
247
- };
248
-
249
- export type UserRequestStateSetMessageStruct = {
250
- permit: IPPTLooper.BoxPermitStruct;
251
- isInitiate: boolean;
247
+ permit: IPPTLooperEIP712Types.BoxPermitStructOutput;
248
+ swap: IPPTLooperEIP712Types.BoxApprovedCallStructOutput;
249
+ bridge: IPPTLooperEIP712Types.BridgeDataStructOutput;
250
+ postStateCheckData: string;
252
251
  };
252
+ }
253
253
 
254
- export type UserRequestStateSetMessageStructOutput = [
255
- IPPTLooper.BoxPermitStructOutput,
256
- boolean
257
- ] & { permit: IPPTLooper.BoxPermitStructOutput; isInitiate: boolean };
258
-
254
+ export declare namespace IPPTLooper {
259
255
  export type UserRequestInfoStruct = {
260
- sigHash: BytesLike;
256
+ requestHash: BytesLike;
261
257
  sessionNonce: BigNumberish;
262
258
  };
263
259
 
264
260
  export type UserRequestInfoStructOutput = [string, number] & {
265
- sigHash: string;
261
+ requestHash: string;
266
262
  sessionNonce: number;
267
263
  };
268
264
  }
269
265
 
270
- export declare namespace IMulticall {
271
- export type Call3Struct = { allowFailure: boolean; callData: BytesLike };
272
-
273
- export type Call3StructOutput = [boolean, string] & {
274
- allowFailure: boolean;
275
- callData: string;
276
- };
277
-
278
- export type ResultStruct = { success: boolean; returnData: BytesLike };
279
-
280
- export type ResultStructOutput = [boolean, string] & {
281
- success: boolean;
282
- returnData: string;
283
- };
284
- }
285
-
286
266
  export interface PTLooperBaseInterface extends utils.Interface {
287
267
  contractName: "PTLooperBase";
288
268
  functions: {
289
269
  "POSITION_BOX_FACTORY()": FunctionFragment;
270
+ "POST_LOOP_STATE_CHECKER()": FunctionFragment;
290
271
  "TREASURY()": FunctionFragment;
291
- "claimMoneyMarketRewards(address,bytes32)": FunctionFragment;
272
+ "claimMMRewards(((address,bytes32,uint256,uint256)),bytes,((bytes32,uint256,uint32,uint32,uint256,bytes),address,bytes,address[]),bytes)": FunctionFragment;
292
273
  "claimOwnership()": FunctionFragment;
293
- "decreaseLoopPosition(((address,bytes32,uint256,bytes32,uint256),(address,address,bytes),(address,address,bytes),uint256,uint256,uint256,uint256,uint256,uint256),bytes,(((bytes32,uint256,uint32,uint32),uint256,uint256,uint256),((bytes32,uint256,uint32,uint32),bool,address,address,uint256)),bytes)": FunctionFragment;
294
- "depositToBox(bytes32,address,uint256,(address,address,bytes),uint256)": FunctionFragment;
274
+ "decreaseLoopPosition(((address,bytes32,uint256,uint256),(address,address,bytes),((address,address,bytes),uint256,uint256),uint256,bytes),bytes,((bytes32,uint256,uint32,uint32,uint256,bytes),uint256,uint256),bytes)": FunctionFragment;
295
275
  "eip712Domain()": FunctionFragment;
296
276
  "executor()": FunctionFragment;
297
- "hashBoxApprovedCall((address,address,bytes))": FunctionFragment;
298
- "hashBoxPermit((address,bytes32,uint256,bytes32,uint256))": FunctionFragment;
299
- "hashRequestHeader((bytes32,uint256,uint32,uint32))": FunctionFragment;
300
- "hashTyped_BatchDecPosThenWithdrawReq((((bytes32,uint256,uint32,uint32),uint256,uint256,uint256),((bytes32,uint256,uint32,uint32),bool,address,address,uint256)))": FunctionFragment;
301
- "hashTyped_DecreasePositionMsg(((address,bytes32,uint256,bytes32,uint256),(address,address,bytes),(address,address,bytes),uint256,uint256,uint256,uint256,uint256,uint256))": FunctionFragment;
302
- "hashTyped_DecreasePositionReq(((bytes32,uint256,uint32,uint32),uint256,uint256,uint256))": FunctionFragment;
303
- "hashTyped_IncreasePositionMsg(((address,bytes32,uint256,bytes32,uint256),(address,address,bytes),uint256,(address,address,bytes),uint256,uint256,uint256,uint256,uint256,uint256))": FunctionFragment;
304
- "hashTyped_IncreasePositionReq(((bytes32,uint256,uint32,uint32),uint256,uint256,uint256,bool))": FunctionFragment;
305
- "hashTyped_SwapBridgeWithdrawAllMsg(((address,bytes32,uint256,bytes32,uint256),(address,address,bytes),(address,address,bytes),uint256,uint256))": FunctionFragment;
306
- "hashTyped_SwapBridgeWithdrawAllReq(((bytes32,uint256,uint32,uint32),bool,address,address,uint256))": FunctionFragment;
307
- "hashTyped_UserRequestStateSetMsg(((address,bytes32,uint256,bytes32,uint256),bool))": FunctionFragment;
308
- "increaseLoopPosition(((address,bytes32,uint256,bytes32,uint256),(address,address,bytes),uint256,(address,address,bytes),uint256,uint256,uint256,uint256,uint256,uint256),bytes,((bytes32,uint256,uint32,uint32),uint256,uint256,uint256,bool),bytes)": FunctionFragment;
309
- "multicall((bool,bytes)[])": FunctionFragment;
277
+ "hashRaw(((bytes32,uint256,uint32,uint32,uint256,bytes),address,uint256,uint256,uint256,bool,uint256))": FunctionFragment;
278
+ "hashTyped(((bytes32,uint256,uint32,uint32,uint256,bytes),uint256,uint256))": FunctionFragment;
279
+ "increaseLoopPosition(((address,bytes32,uint256,uint256),(address,address,bytes),uint256,((address,address,bytes),uint256,uint256),uint256,bytes),bytes,((bytes32,uint256,uint32,uint32,uint256,bytes),address,uint256,uint256,uint256,bool,uint256),bytes)": FunctionFragment;
310
280
  "owner()": FunctionFragment;
311
281
  "pendingOwner()": FunctionFragment;
312
282
  "proposer()": FunctionFragment;
313
- "proposerNonce(bytes32)": FunctionFragment;
283
+ "proposerNonce(address,bytes32)": FunctionFragment;
314
284
  "setExecutor(address)": FunctionFragment;
315
285
  "setProposer(address)": FunctionFragment;
316
- "setUserRequestState(((address,bytes32,uint256,bytes32,uint256),bool),bytes)": FunctionFragment;
317
- "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;
286
+ "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;
287
+ "terminateSession(address,bytes32,bytes32)": FunctionFragment;
318
288
  "transferOwnership(address,bool,bool)": FunctionFragment;
319
289
  "userRequest(address,bytes32)": FunctionFragment;
320
290
  };
@@ -323,32 +293,31 @@ export interface PTLooperBaseInterface extends utils.Interface {
323
293
  functionFragment: "POSITION_BOX_FACTORY",
324
294
  values?: undefined
325
295
  ): string;
326
- encodeFunctionData(functionFragment: "TREASURY", values?: undefined): string;
327
296
  encodeFunctionData(
328
- functionFragment: "claimMoneyMarketRewards",
329
- values: [string, BytesLike]
330
- ): string;
331
- encodeFunctionData(
332
- functionFragment: "claimOwnership",
297
+ functionFragment: "POST_LOOP_STATE_CHECKER",
333
298
  values?: undefined
334
299
  ): string;
300
+ encodeFunctionData(functionFragment: "TREASURY", values?: undefined): string;
335
301
  encodeFunctionData(
336
- functionFragment: "decreaseLoopPosition",
302
+ functionFragment: "claimMMRewards",
337
303
  values: [
338
- IPPTLooper.DecreasePositionMessageStruct,
304
+ IPPTLooperEIP712Types.ClaimMMRewardsMessageStruct,
339
305
  BytesLike,
340
- IPPTLooper.BatchDecPosThenWithdrawRequestStruct,
306
+ IPPTLooperEIP712Types.ClaimMMRewardsRequestStruct,
341
307
  BytesLike
342
308
  ]
343
309
  ): string;
344
310
  encodeFunctionData(
345
- functionFragment: "depositToBox",
311
+ functionFragment: "claimOwnership",
312
+ values?: undefined
313
+ ): string;
314
+ encodeFunctionData(
315
+ functionFragment: "decreaseLoopPosition",
346
316
  values: [
317
+ IPPTLooperEIP712Types.DecreasePositionMessageStruct,
347
318
  BytesLike,
348
- string,
349
- BigNumberish,
350
- IPPTLooper.BoxApprovedCallStruct,
351
- BigNumberish
319
+ IPPTLooperEIP712Types.DecreasePositionRequestStruct,
320
+ BytesLike
352
321
  ]
353
322
  ): string;
354
323
  encodeFunctionData(
@@ -357,62 +326,22 @@ export interface PTLooperBaseInterface extends utils.Interface {
357
326
  ): string;
358
327
  encodeFunctionData(functionFragment: "executor", values?: undefined): string;
359
328
  encodeFunctionData(
360
- functionFragment: "hashBoxApprovedCall",
361
- values: [IPPTLooper.BoxApprovedCallStruct]
362
- ): string;
363
- encodeFunctionData(
364
- functionFragment: "hashBoxPermit",
365
- values: [IPPTLooper.BoxPermitStruct]
329
+ functionFragment: "hashRaw",
330
+ values: [IPPTLooperEIP712Types.IncreasePositionRequestStruct]
366
331
  ): string;
367
332
  encodeFunctionData(
368
- functionFragment: "hashRequestHeader",
369
- values: [IPPTLooper.RequestHeaderStruct]
370
- ): string;
371
- encodeFunctionData(
372
- functionFragment: "hashTyped_BatchDecPosThenWithdrawReq",
373
- values: [IPPTLooper.BatchDecPosThenWithdrawRequestStruct]
374
- ): string;
375
- encodeFunctionData(
376
- functionFragment: "hashTyped_DecreasePositionMsg",
377
- values: [IPPTLooper.DecreasePositionMessageStruct]
378
- ): string;
379
- encodeFunctionData(
380
- functionFragment: "hashTyped_DecreasePositionReq",
381
- values: [IPPTLooper.DecreasePositionRequestStruct]
382
- ): string;
383
- encodeFunctionData(
384
- functionFragment: "hashTyped_IncreasePositionMsg",
385
- values: [IPPTLooper.IncreasePositionMessageStruct]
386
- ): string;
387
- encodeFunctionData(
388
- functionFragment: "hashTyped_IncreasePositionReq",
389
- values: [IPPTLooper.IncreasePositionRequestStruct]
390
- ): string;
391
- encodeFunctionData(
392
- functionFragment: "hashTyped_SwapBridgeWithdrawAllMsg",
393
- values: [IPPTLooper.SwapBridgeWithdrawAllMessageStruct]
394
- ): string;
395
- encodeFunctionData(
396
- functionFragment: "hashTyped_SwapBridgeWithdrawAllReq",
397
- values: [IPPTLooper.SwapBridgeWithdrawAllRequestStruct]
398
- ): string;
399
- encodeFunctionData(
400
- functionFragment: "hashTyped_UserRequestStateSetMsg",
401
- values: [IPPTLooper.UserRequestStateSetMessageStruct]
333
+ functionFragment: "hashTyped",
334
+ values: [IPPTLooperEIP712Types.DecreasePositionRequestStruct]
402
335
  ): string;
403
336
  encodeFunctionData(
404
337
  functionFragment: "increaseLoopPosition",
405
338
  values: [
406
- IPPTLooper.IncreasePositionMessageStruct,
339
+ IPPTLooperEIP712Types.IncreasePositionMessageStruct,
407
340
  BytesLike,
408
- IPPTLooper.IncreasePositionRequestStruct,
341
+ IPPTLooperEIP712Types.IncreasePositionRequestStruct,
409
342
  BytesLike
410
343
  ]
411
344
  ): string;
412
- encodeFunctionData(
413
- functionFragment: "multicall",
414
- values: [IMulticall.Call3Struct[]]
415
- ): string;
416
345
  encodeFunctionData(functionFragment: "owner", values?: undefined): string;
417
346
  encodeFunctionData(
418
347
  functionFragment: "pendingOwner",
@@ -421,23 +350,23 @@ export interface PTLooperBaseInterface extends utils.Interface {
421
350
  encodeFunctionData(functionFragment: "proposer", values?: undefined): string;
422
351
  encodeFunctionData(
423
352
  functionFragment: "proposerNonce",
424
- values: [BytesLike]
353
+ values: [string, BytesLike]
425
354
  ): string;
426
355
  encodeFunctionData(functionFragment: "setExecutor", values: [string]): string;
427
356
  encodeFunctionData(functionFragment: "setProposer", values: [string]): string;
428
- encodeFunctionData(
429
- functionFragment: "setUserRequestState",
430
- values: [IPPTLooper.UserRequestStateSetMessageStruct, BytesLike]
431
- ): string;
432
357
  encodeFunctionData(
433
358
  functionFragment: "swapBridgeWithdrawAll",
434
359
  values: [
435
- IPPTLooper.SwapBridgeWithdrawAllMessageStruct,
360
+ IPPTLooperEIP712Types.SwapBridgeWithdrawAllMessageStruct,
436
361
  BytesLike,
437
- IPPTLooper.BatchDecPosThenWithdrawRequestStruct,
362
+ IPPTLooperEIP712Types.SwapBridgeWithdrawAllRequestStruct,
438
363
  BytesLike
439
364
  ]
440
365
  ): string;
366
+ encodeFunctionData(
367
+ functionFragment: "terminateSession",
368
+ values: [string, BytesLike, BytesLike]
369
+ ): string;
441
370
  encodeFunctionData(
442
371
  functionFragment: "transferOwnership",
443
372
  values: [string, boolean, boolean]
@@ -451,21 +380,21 @@ export interface PTLooperBaseInterface extends utils.Interface {
451
380
  functionFragment: "POSITION_BOX_FACTORY",
452
381
  data: BytesLike
453
382
  ): Result;
454
- decodeFunctionResult(functionFragment: "TREASURY", data: BytesLike): Result;
455
383
  decodeFunctionResult(
456
- functionFragment: "claimMoneyMarketRewards",
384
+ functionFragment: "POST_LOOP_STATE_CHECKER",
457
385
  data: BytesLike
458
386
  ): Result;
387
+ decodeFunctionResult(functionFragment: "TREASURY", data: BytesLike): Result;
459
388
  decodeFunctionResult(
460
- functionFragment: "claimOwnership",
389
+ functionFragment: "claimMMRewards",
461
390
  data: BytesLike
462
391
  ): Result;
463
392
  decodeFunctionResult(
464
- functionFragment: "decreaseLoopPosition",
393
+ functionFragment: "claimOwnership",
465
394
  data: BytesLike
466
395
  ): Result;
467
396
  decodeFunctionResult(
468
- functionFragment: "depositToBox",
397
+ functionFragment: "decreaseLoopPosition",
469
398
  data: BytesLike
470
399
  ): Result;
471
400
  decodeFunctionResult(
@@ -473,55 +402,12 @@ export interface PTLooperBaseInterface extends utils.Interface {
473
402
  data: BytesLike
474
403
  ): Result;
475
404
  decodeFunctionResult(functionFragment: "executor", data: BytesLike): Result;
476
- decodeFunctionResult(
477
- functionFragment: "hashBoxApprovedCall",
478
- data: BytesLike
479
- ): Result;
480
- decodeFunctionResult(
481
- functionFragment: "hashBoxPermit",
482
- data: BytesLike
483
- ): Result;
484
- decodeFunctionResult(
485
- functionFragment: "hashRequestHeader",
486
- data: BytesLike
487
- ): Result;
488
- decodeFunctionResult(
489
- functionFragment: "hashTyped_BatchDecPosThenWithdrawReq",
490
- data: BytesLike
491
- ): Result;
492
- decodeFunctionResult(
493
- functionFragment: "hashTyped_DecreasePositionMsg",
494
- data: BytesLike
495
- ): Result;
496
- decodeFunctionResult(
497
- functionFragment: "hashTyped_DecreasePositionReq",
498
- data: BytesLike
499
- ): Result;
500
- decodeFunctionResult(
501
- functionFragment: "hashTyped_IncreasePositionMsg",
502
- data: BytesLike
503
- ): Result;
504
- decodeFunctionResult(
505
- functionFragment: "hashTyped_IncreasePositionReq",
506
- data: BytesLike
507
- ): Result;
508
- decodeFunctionResult(
509
- functionFragment: "hashTyped_SwapBridgeWithdrawAllMsg",
510
- data: BytesLike
511
- ): Result;
512
- decodeFunctionResult(
513
- functionFragment: "hashTyped_SwapBridgeWithdrawAllReq",
514
- data: BytesLike
515
- ): Result;
516
- decodeFunctionResult(
517
- functionFragment: "hashTyped_UserRequestStateSetMsg",
518
- data: BytesLike
519
- ): Result;
405
+ decodeFunctionResult(functionFragment: "hashRaw", data: BytesLike): Result;
406
+ decodeFunctionResult(functionFragment: "hashTyped", data: BytesLike): Result;
520
407
  decodeFunctionResult(
521
408
  functionFragment: "increaseLoopPosition",
522
409
  data: BytesLike
523
410
  ): Result;
524
- decodeFunctionResult(functionFragment: "multicall", data: BytesLike): Result;
525
411
  decodeFunctionResult(functionFragment: "owner", data: BytesLike): Result;
526
412
  decodeFunctionResult(
527
413
  functionFragment: "pendingOwner",
@@ -541,11 +427,11 @@ export interface PTLooperBaseInterface extends utils.Interface {
541
427
  data: BytesLike
542
428
  ): Result;
543
429
  decodeFunctionResult(
544
- functionFragment: "setUserRequestState",
430
+ functionFragment: "swapBridgeWithdrawAll",
545
431
  data: BytesLike
546
432
  ): Result;
547
433
  decodeFunctionResult(
548
- functionFragment: "swapBridgeWithdrawAll",
434
+ functionFragment: "terminateSession",
549
435
  data: BytesLike
550
436
  ): Result;
551
437
  decodeFunctionResult(
@@ -565,12 +451,14 @@ export interface PTLooperBaseInterface extends utils.Interface {
565
451
  "OwnershipTransferred(address,address)": EventFragment;
566
452
  "PositionDecreased(address,bytes32,bytes32,uint256,uint256,uint256,uint256)": EventFragment;
567
453
  "PositionIncreased(address,bytes32,bytes32,uint256,uint256,uint256,uint256)": EventFragment;
454
+ "RewardsClaimed(address,bytes32,bytes32,uint256,address[],uint256[])": EventFragment;
455
+ "SessionInitiated(address,bytes32,bytes32,uint32)": EventFragment;
456
+ "SessionTerminated(address,bytes32,bytes32,uint32)": EventFragment;
568
457
  "SetExecutor(address)": EventFragment;
569
458
  "SetProposer(address)": EventFragment;
570
459
  "TokenBridged(address,address,uint256)": EventFragment;
571
460
  "TokenSwapped(address,address,uint256,address,uint256)": EventFragment;
572
- "UserRequestStateSet(address,bytes32,bytes32,uint32,bool)": EventFragment;
573
- "Withdrawn(address,bytes32,bytes32,uint256,address,uint256,uint256)": EventFragment;
461
+ "Withdrawn(address,bytes32,bytes32,uint256,address,uint256)": EventFragment;
574
462
  };
575
463
 
576
464
  getEvent(nameOrSignatureOrTopic: "EIP712DomainChanged"): EventFragment;
@@ -584,11 +472,13 @@ export interface PTLooperBaseInterface extends utils.Interface {
584
472
  getEvent(nameOrSignatureOrTopic: "OwnershipTransferred"): EventFragment;
585
473
  getEvent(nameOrSignatureOrTopic: "PositionDecreased"): EventFragment;
586
474
  getEvent(nameOrSignatureOrTopic: "PositionIncreased"): EventFragment;
475
+ getEvent(nameOrSignatureOrTopic: "RewardsClaimed"): EventFragment;
476
+ getEvent(nameOrSignatureOrTopic: "SessionInitiated"): EventFragment;
477
+ getEvent(nameOrSignatureOrTopic: "SessionTerminated"): EventFragment;
587
478
  getEvent(nameOrSignatureOrTopic: "SetExecutor"): EventFragment;
588
479
  getEvent(nameOrSignatureOrTopic: "SetProposer"): EventFragment;
589
480
  getEvent(nameOrSignatureOrTopic: "TokenBridged"): EventFragment;
590
481
  getEvent(nameOrSignatureOrTopic: "TokenSwapped"): EventFragment;
591
- getEvent(nameOrSignatureOrTopic: "UserRequestStateSet"): EventFragment;
592
482
  getEvent(nameOrSignatureOrTopic: "Withdrawn"): EventFragment;
593
483
  }
594
484
 
@@ -630,7 +520,7 @@ export type PositionDecreasedEvent = TypedEvent<
630
520
  {
631
521
  owner: string;
632
522
  boxId: string;
633
- ownerSigHash: string;
523
+ requestHash: string;
634
524
  nonce: BigNumber;
635
525
  preDebtBalance: BigNumber;
636
526
  netPtToSwap: BigNumber;
@@ -646,9 +536,9 @@ export type PositionIncreasedEvent = TypedEvent<
646
536
  {
647
537
  owner: string;
648
538
  boxId: string;
649
- ownerSigHash: string;
539
+ requestHash: string;
650
540
  nonce: BigNumber;
651
- preDebtBalance: BigNumber;
541
+ preInBalance: BigNumber;
652
542
  netPtToMM: BigNumber;
653
543
  postDebtBalance: BigNumber;
654
544
  }
@@ -657,6 +547,36 @@ export type PositionIncreasedEvent = TypedEvent<
657
547
  export type PositionIncreasedEventFilter =
658
548
  TypedEventFilter<PositionIncreasedEvent>;
659
549
 
550
+ export type RewardsClaimedEvent = TypedEvent<
551
+ [string, string, string, BigNumber, string[], BigNumber[]],
552
+ {
553
+ owner: string;
554
+ boxId: string;
555
+ requestHash: string;
556
+ nonce: BigNumber;
557
+ rewardTokens: string[];
558
+ claimedAmounts: BigNumber[];
559
+ }
560
+ >;
561
+
562
+ export type RewardsClaimedEventFilter = TypedEventFilter<RewardsClaimedEvent>;
563
+
564
+ export type SessionInitiatedEvent = TypedEvent<
565
+ [string, string, string, number],
566
+ { owner: string; boxId: string; requestHash: string; sessionNonce: number }
567
+ >;
568
+
569
+ export type SessionInitiatedEventFilter =
570
+ TypedEventFilter<SessionInitiatedEvent>;
571
+
572
+ export type SessionTerminatedEvent = TypedEvent<
573
+ [string, string, string, number],
574
+ { owner: string; boxId: string; requestHash: string; sessionNonce: number }
575
+ >;
576
+
577
+ export type SessionTerminatedEventFilter =
578
+ TypedEventFilter<SessionTerminatedEvent>;
579
+
660
580
  export type SetExecutorEvent = TypedEvent<[string], { executor: string }>;
661
581
 
662
582
  export type SetExecutorEventFilter = TypedEventFilter<SetExecutorEvent>;
@@ -679,36 +599,21 @@ export type TokenSwappedEvent = TypedEvent<
679
599
  tokenIn: string;
680
600
  netIn: BigNumber;
681
601
  tokenOut: string;
682
- netOut: BigNumber;
602
+ netSwappedOut: BigNumber;
683
603
  }
684
604
  >;
685
605
 
686
606
  export type TokenSwappedEventFilter = TypedEventFilter<TokenSwappedEvent>;
687
607
 
688
- export type UserRequestStateSetEvent = TypedEvent<
689
- [string, string, string, number, boolean],
690
- {
691
- owner: string;
692
- boxId: string;
693
- ownerSigHash: string;
694
- sessionNonce: number;
695
- isInitiate: boolean;
696
- }
697
- >;
698
-
699
- export type UserRequestStateSetEventFilter =
700
- TypedEventFilter<UserRequestStateSetEvent>;
701
-
702
608
  export type WithdrawnEvent = TypedEvent<
703
- [string, string, string, BigNumber, string, BigNumber, BigNumber],
609
+ [string, string, string, BigNumber, string, BigNumber],
704
610
  {
705
611
  owner: string;
706
612
  boxId: string;
707
- ownerSigHash: string;
613
+ requestHash: string;
708
614
  nonce: BigNumber;
709
615
  tokenOut: string;
710
616
  netOut: BigNumber;
711
- fee: BigNumber;
712
617
  }
713
618
  >;
714
619
 
@@ -744,11 +649,15 @@ export interface PTLooperBase extends BaseContract {
744
649
  functions: {
745
650
  POSITION_BOX_FACTORY(overrides?: CallOverrides): Promise<[string]>;
746
651
 
652
+ POST_LOOP_STATE_CHECKER(overrides?: CallOverrides): Promise<[string]>;
653
+
747
654
  TREASURY(overrides?: CallOverrides): Promise<[string]>;
748
655
 
749
- claimMoneyMarketRewards(
750
- owner: string,
751
- boxId: BytesLike,
656
+ claimMMRewards(
657
+ ms: IPPTLooperEIP712Types.ClaimMMRewardsMessageStruct,
658
+ proposerSig: BytesLike,
659
+ req: IPPTLooperEIP712Types.ClaimMMRewardsRequestStruct,
660
+ ownerSigIfFirstCall: BytesLike,
752
661
  overrides?: Overrides & { from?: string | Promise<string> }
753
662
  ): Promise<ContractTransaction>;
754
663
 
@@ -756,28 +665,11 @@ export interface PTLooperBase extends BaseContract {
756
665
  overrides?: Overrides & { from?: string | Promise<string> }
757
666
  ): Promise<ContractTransaction>;
758
667
 
759
- "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)"(
760
- ms: IPPTLooper.DecreasePositionMessageStruct,
761
- proposerSig: BytesLike,
762
- req: IPPTLooper.BatchDecPosThenWithdrawRequestStruct,
763
- ownerSig: BytesLike,
764
- overrides?: PayableOverrides & { from?: string | Promise<string> }
765
- ): Promise<ContractTransaction>;
766
-
767
- "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)"(
768
- ms: IPPTLooper.DecreasePositionMessageStruct,
668
+ decreaseLoopPosition(
669
+ ms: IPPTLooperEIP712Types.DecreasePositionMessageStruct,
769
670
  proposerSig: BytesLike,
770
- req: IPPTLooper.DecreasePositionRequestStruct,
771
- ownerSig: BytesLike,
772
- overrides?: PayableOverrides & { from?: string | Promise<string> }
773
- ): Promise<ContractTransaction>;
774
-
775
- depositToBox(
776
- boxId: BytesLike,
777
- tokenIn: string,
778
- amountIn: BigNumberish,
779
- swapCall: IPPTLooper.BoxApprovedCallStruct,
780
- minDebtTokenSwapOut: BigNumberish,
671
+ req: IPPTLooperEIP712Types.DecreasePositionRequestStruct,
672
+ ownerSigIfFirstCall: BytesLike,
781
673
  overrides?: PayableOverrides & { from?: string | Promise<string> }
782
674
  ): Promise<ContractTransaction>;
783
675
 
@@ -797,71 +689,96 @@ export interface PTLooperBase extends BaseContract {
797
689
 
798
690
  executor(overrides?: CallOverrides): Promise<[string]>;
799
691
 
800
- hashBoxApprovedCall(
801
- sb: IPPTLooper.BoxApprovedCallStruct,
692
+ "hashRaw(((bytes32,uint256,uint32,uint32,uint256,bytes),address,uint256,uint256,uint256,bool,uint256))"(
693
+ req: IPPTLooperEIP712Types.IncreasePositionRequestStruct,
802
694
  overrides?: CallOverrides
803
695
  ): Promise<[string]>;
804
696
 
805
- hashBoxPermit(
806
- permit: IPPTLooper.BoxPermitStruct,
697
+ "hashRaw((bytes32,uint256,uint32,uint32,uint256,bytes))"(
698
+ header: IPPTLooperEIP712Types.RequestHeaderStruct,
807
699
  overrides?: CallOverrides
808
700
  ): Promise<[string]>;
809
701
 
810
- hashRequestHeader(
811
- header: IPPTLooper.RequestHeaderStruct,
702
+ "hashRaw(((address,bytes32,uint256,uint256)))"(
703
+ ms: IPPTLooperEIP712Types.ClaimMMRewardsMessageStruct,
812
704
  overrides?: CallOverrides
813
705
  ): Promise<[string]>;
814
706
 
815
- hashTyped_BatchDecPosThenWithdrawReq(
816
- req: IPPTLooper.BatchDecPosThenWithdrawRequestStruct,
707
+ "hashRaw(((address,address,bytes),uint256,uint256))"(
708
+ bridge: IPPTLooperEIP712Types.BridgeDataStruct,
817
709
  overrides?: CallOverrides
818
710
  ): Promise<[string]>;
819
711
 
820
- hashTyped_DecreasePositionMsg(
821
- ms: IPPTLooper.DecreasePositionMessageStruct,
712
+ "hashRaw((address,bytes32,uint256,uint256))"(
713
+ permit: IPPTLooperEIP712Types.BoxPermitStruct,
822
714
  overrides?: CallOverrides
823
715
  ): Promise<[string]>;
824
716
 
825
- hashTyped_DecreasePositionReq(
826
- req: IPPTLooper.DecreasePositionRequestStruct,
717
+ "hashRaw(((bytes32,uint256,uint32,uint32,uint256,bytes),address,bytes,address[]))"(
718
+ req: IPPTLooperEIP712Types.ClaimMMRewardsRequestStruct,
827
719
  overrides?: CallOverrides
828
720
  ): Promise<[string]>;
829
721
 
830
- hashTyped_IncreasePositionMsg(
831
- ms: IPPTLooper.IncreasePositionMessageStruct,
722
+ "hashRaw(((bytes32,uint256,uint32,uint32,uint256,bytes),uint256,uint256))"(
723
+ req: IPPTLooperEIP712Types.DecreasePositionRequestStruct,
832
724
  overrides?: CallOverrides
833
725
  ): Promise<[string]>;
834
726
 
835
- hashTyped_IncreasePositionReq(
836
- req: IPPTLooper.IncreasePositionRequestStruct,
727
+ "hashRaw(((bytes32,uint256,uint32,uint32,uint256,bytes),bool,address,address,uint256))"(
728
+ req: IPPTLooperEIP712Types.SwapBridgeWithdrawAllRequestStruct,
837
729
  overrides?: CallOverrides
838
730
  ): Promise<[string]>;
839
731
 
840
- hashTyped_SwapBridgeWithdrawAllMsg(
841
- ms: IPPTLooper.SwapBridgeWithdrawAllMessageStruct,
732
+ "hashRaw((address,address,bytes))"(
733
+ call: IPPTLooperEIP712Types.BoxApprovedCallStruct,
842
734
  overrides?: CallOverrides
843
735
  ): Promise<[string]>;
844
736
 
845
- hashTyped_SwapBridgeWithdrawAllReq(
846
- req: IPPTLooper.SwapBridgeWithdrawAllRequestStruct,
737
+ "hashTyped(((bytes32,uint256,uint32,uint32,uint256,bytes),uint256,uint256))"(
738
+ req: IPPTLooperEIP712Types.DecreasePositionRequestStruct,
847
739
  overrides?: CallOverrides
848
740
  ): Promise<[string]>;
849
741
 
850
- hashTyped_UserRequestStateSetMsg(
851
- ms: IPPTLooper.UserRequestStateSetMessageStruct,
742
+ "hashTyped(((address,bytes32,uint256,uint256),(address,address,bytes),((address,address,bytes),uint256,uint256),uint256,bytes))"(
743
+ ms: IPPTLooperEIP712Types.DecreasePositionMessageStruct,
744
+ overrides?: CallOverrides
745
+ ): Promise<[string]>;
746
+
747
+ "hashTyped(((address,bytes32,uint256,uint256),(address,address,bytes),uint256,((address,address,bytes),uint256,uint256),uint256,bytes))"(
748
+ ms: IPPTLooperEIP712Types.IncreasePositionMessageStruct,
749
+ overrides?: CallOverrides
750
+ ): Promise<[string]>;
751
+
752
+ "hashTyped(((bytes32,uint256,uint32,uint32,uint256,bytes),bool,address,address,uint256))"(
753
+ req: IPPTLooperEIP712Types.SwapBridgeWithdrawAllRequestStruct,
754
+ overrides?: CallOverrides
755
+ ): Promise<[string]>;
756
+
757
+ "hashTyped(((bytes32,uint256,uint32,uint32,uint256,bytes),address,bytes,address[]))"(
758
+ req: IPPTLooperEIP712Types.ClaimMMRewardsRequestStruct,
759
+ overrides?: CallOverrides
760
+ ): Promise<[string]>;
761
+
762
+ "hashTyped(((bytes32,uint256,uint32,uint32,uint256,bytes),address,uint256,uint256,uint256,bool,uint256))"(
763
+ req: IPPTLooperEIP712Types.IncreasePositionRequestStruct,
764
+ overrides?: CallOverrides
765
+ ): Promise<[string]>;
766
+
767
+ "hashTyped(((address,bytes32,uint256,uint256),(address,address,bytes),((address,address,bytes),uint256,uint256),bytes))"(
768
+ ms: IPPTLooperEIP712Types.SwapBridgeWithdrawAllMessageStruct,
769
+ overrides?: CallOverrides
770
+ ): Promise<[string]>;
771
+
772
+ "hashTyped(((address,bytes32,uint256,uint256)))"(
773
+ ms: IPPTLooperEIP712Types.ClaimMMRewardsMessageStruct,
852
774
  overrides?: CallOverrides
853
775
  ): Promise<[string]>;
854
776
 
855
777
  increaseLoopPosition(
856
- ms: IPPTLooper.IncreasePositionMessageStruct,
778
+ ms: IPPTLooperEIP712Types.IncreasePositionMessageStruct,
857
779
  proposerSig: BytesLike,
858
- req: IPPTLooper.IncreasePositionRequestStruct,
859
- ownerSig: BytesLike,
860
- overrides?: PayableOverrides & { from?: string | Promise<string> }
861
- ): Promise<ContractTransaction>;
862
-
863
- multicall(
864
- calls: IMulticall.Call3Struct[],
780
+ req: IPPTLooperEIP712Types.IncreasePositionRequestStruct,
781
+ ownerSigIfFirstCall: BytesLike,
865
782
  overrides?: PayableOverrides & { from?: string | Promise<string> }
866
783
  ): Promise<ContractTransaction>;
867
784
 
@@ -872,7 +789,8 @@ export interface PTLooperBase extends BaseContract {
872
789
  proposer(overrides?: CallOverrides): Promise<[string]>;
873
790
 
874
791
  proposerNonce(
875
- ownerSigHash: BytesLike,
792
+ owner: string,
793
+ requestHash: BytesLike,
876
794
  overrides?: CallOverrides
877
795
  ): Promise<[BigNumber] & { nonce: BigNumber }>;
878
796
 
@@ -886,26 +804,19 @@ export interface PTLooperBase extends BaseContract {
886
804
  overrides?: Overrides & { from?: string | Promise<string> }
887
805
  ): Promise<ContractTransaction>;
888
806
 
889
- setUserRequestState(
890
- ms: IPPTLooper.UserRequestStateSetMessageStruct,
891
- proposerSignature: BytesLike,
892
- overrides?: Overrides & { from?: string | Promise<string> }
893
- ): Promise<ContractTransaction>;
894
-
895
- "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)"(
896
- ms: IPPTLooper.SwapBridgeWithdrawAllMessageStruct,
807
+ swapBridgeWithdrawAll(
808
+ ms: IPPTLooperEIP712Types.SwapBridgeWithdrawAllMessageStruct,
897
809
  proposerSig: BytesLike,
898
- req: IPPTLooper.BatchDecPosThenWithdrawRequestStruct,
899
- ownerSig: BytesLike,
810
+ req: IPPTLooperEIP712Types.SwapBridgeWithdrawAllRequestStruct,
811
+ ownerSigIfFirstCall: BytesLike,
900
812
  overrides?: PayableOverrides & { from?: string | Promise<string> }
901
813
  ): Promise<ContractTransaction>;
902
814
 
903
- "swapBridgeWithdrawAll(((address,bytes32,uint256,bytes32,uint256),(address,address,bytes),(address,address,bytes),uint256,uint256),bytes,((bytes32,uint256,uint32,uint32),bool,address,address,uint256),bytes)"(
904
- ms: IPPTLooper.SwapBridgeWithdrawAllMessageStruct,
905
- proposerSig: BytesLike,
906
- req: IPPTLooper.SwapBridgeWithdrawAllRequestStruct,
907
- ownerSig: BytesLike,
908
- overrides?: PayableOverrides & { from?: string | Promise<string> }
815
+ terminateSession(
816
+ owner: string,
817
+ boxId: BytesLike,
818
+ requestHash: BytesLike,
819
+ overrides?: Overrides & { from?: string | Promise<string> }
909
820
  ): Promise<ContractTransaction>;
910
821
 
911
822
  transferOwnership(
@@ -924,11 +835,15 @@ export interface PTLooperBase extends BaseContract {
924
835
 
925
836
  POSITION_BOX_FACTORY(overrides?: CallOverrides): Promise<string>;
926
837
 
838
+ POST_LOOP_STATE_CHECKER(overrides?: CallOverrides): Promise<string>;
839
+
927
840
  TREASURY(overrides?: CallOverrides): Promise<string>;
928
841
 
929
- claimMoneyMarketRewards(
930
- owner: string,
931
- boxId: BytesLike,
842
+ claimMMRewards(
843
+ ms: IPPTLooperEIP712Types.ClaimMMRewardsMessageStruct,
844
+ proposerSig: BytesLike,
845
+ req: IPPTLooperEIP712Types.ClaimMMRewardsRequestStruct,
846
+ ownerSigIfFirstCall: BytesLike,
932
847
  overrides?: Overrides & { from?: string | Promise<string> }
933
848
  ): Promise<ContractTransaction>;
934
849
 
@@ -936,28 +851,11 @@ export interface PTLooperBase extends BaseContract {
936
851
  overrides?: Overrides & { from?: string | Promise<string> }
937
852
  ): Promise<ContractTransaction>;
938
853
 
939
- "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)"(
940
- ms: IPPTLooper.DecreasePositionMessageStruct,
854
+ decreaseLoopPosition(
855
+ ms: IPPTLooperEIP712Types.DecreasePositionMessageStruct,
941
856
  proposerSig: BytesLike,
942
- req: IPPTLooper.BatchDecPosThenWithdrawRequestStruct,
943
- ownerSig: BytesLike,
944
- overrides?: PayableOverrides & { from?: string | Promise<string> }
945
- ): Promise<ContractTransaction>;
946
-
947
- "decreaseLoopPosition(((address,bytes32,uint256,bytes32,uint256),(address,address,bytes),(address,address,bytes),uint256,uint256,uint256,uint256,uint256,uint256),bytes,((bytes32,uint256,uint32,uint32),uint256,uint256,uint256),bytes)"(
948
- ms: IPPTLooper.DecreasePositionMessageStruct,
949
- proposerSig: BytesLike,
950
- req: IPPTLooper.DecreasePositionRequestStruct,
951
- ownerSig: BytesLike,
952
- overrides?: PayableOverrides & { from?: string | Promise<string> }
953
- ): Promise<ContractTransaction>;
954
-
955
- depositToBox(
956
- boxId: BytesLike,
957
- tokenIn: string,
958
- amountIn: BigNumberish,
959
- swapCall: IPPTLooper.BoxApprovedCallStruct,
960
- minDebtTokenSwapOut: BigNumberish,
857
+ req: IPPTLooperEIP712Types.DecreasePositionRequestStruct,
858
+ ownerSigIfFirstCall: BytesLike,
961
859
  overrides?: PayableOverrides & { from?: string | Promise<string> }
962
860
  ): Promise<ContractTransaction>;
963
861
 
@@ -977,71 +875,96 @@ export interface PTLooperBase extends BaseContract {
977
875
 
978
876
  executor(overrides?: CallOverrides): Promise<string>;
979
877
 
980
- hashBoxApprovedCall(
981
- sb: IPPTLooper.BoxApprovedCallStruct,
878
+ "hashRaw(((bytes32,uint256,uint32,uint32,uint256,bytes),address,uint256,uint256,uint256,bool,uint256))"(
879
+ req: IPPTLooperEIP712Types.IncreasePositionRequestStruct,
880
+ overrides?: CallOverrides
881
+ ): Promise<string>;
882
+
883
+ "hashRaw((bytes32,uint256,uint32,uint32,uint256,bytes))"(
884
+ header: IPPTLooperEIP712Types.RequestHeaderStruct,
885
+ overrides?: CallOverrides
886
+ ): Promise<string>;
887
+
888
+ "hashRaw(((address,bytes32,uint256,uint256)))"(
889
+ ms: IPPTLooperEIP712Types.ClaimMMRewardsMessageStruct,
890
+ overrides?: CallOverrides
891
+ ): Promise<string>;
892
+
893
+ "hashRaw(((address,address,bytes),uint256,uint256))"(
894
+ bridge: IPPTLooperEIP712Types.BridgeDataStruct,
982
895
  overrides?: CallOverrides
983
896
  ): Promise<string>;
984
897
 
985
- hashBoxPermit(
986
- permit: IPPTLooper.BoxPermitStruct,
898
+ "hashRaw((address,bytes32,uint256,uint256))"(
899
+ permit: IPPTLooperEIP712Types.BoxPermitStruct,
987
900
  overrides?: CallOverrides
988
901
  ): Promise<string>;
989
902
 
990
- hashRequestHeader(
991
- header: IPPTLooper.RequestHeaderStruct,
903
+ "hashRaw(((bytes32,uint256,uint32,uint32,uint256,bytes),address,bytes,address[]))"(
904
+ req: IPPTLooperEIP712Types.ClaimMMRewardsRequestStruct,
992
905
  overrides?: CallOverrides
993
906
  ): Promise<string>;
994
907
 
995
- hashTyped_BatchDecPosThenWithdrawReq(
996
- req: IPPTLooper.BatchDecPosThenWithdrawRequestStruct,
908
+ "hashRaw(((bytes32,uint256,uint32,uint32,uint256,bytes),uint256,uint256))"(
909
+ req: IPPTLooperEIP712Types.DecreasePositionRequestStruct,
997
910
  overrides?: CallOverrides
998
911
  ): Promise<string>;
999
912
 
1000
- hashTyped_DecreasePositionMsg(
1001
- ms: IPPTLooper.DecreasePositionMessageStruct,
913
+ "hashRaw(((bytes32,uint256,uint32,uint32,uint256,bytes),bool,address,address,uint256))"(
914
+ req: IPPTLooperEIP712Types.SwapBridgeWithdrawAllRequestStruct,
1002
915
  overrides?: CallOverrides
1003
916
  ): Promise<string>;
1004
917
 
1005
- hashTyped_DecreasePositionReq(
1006
- req: IPPTLooper.DecreasePositionRequestStruct,
918
+ "hashRaw((address,address,bytes))"(
919
+ call: IPPTLooperEIP712Types.BoxApprovedCallStruct,
1007
920
  overrides?: CallOverrides
1008
921
  ): Promise<string>;
1009
922
 
1010
- hashTyped_IncreasePositionMsg(
1011
- ms: IPPTLooper.IncreasePositionMessageStruct,
923
+ "hashTyped(((bytes32,uint256,uint32,uint32,uint256,bytes),uint256,uint256))"(
924
+ req: IPPTLooperEIP712Types.DecreasePositionRequestStruct,
1012
925
  overrides?: CallOverrides
1013
926
  ): Promise<string>;
1014
927
 
1015
- hashTyped_IncreasePositionReq(
1016
- req: IPPTLooper.IncreasePositionRequestStruct,
928
+ "hashTyped(((address,bytes32,uint256,uint256),(address,address,bytes),((address,address,bytes),uint256,uint256),uint256,bytes))"(
929
+ ms: IPPTLooperEIP712Types.DecreasePositionMessageStruct,
1017
930
  overrides?: CallOverrides
1018
931
  ): Promise<string>;
1019
932
 
1020
- hashTyped_SwapBridgeWithdrawAllMsg(
1021
- ms: IPPTLooper.SwapBridgeWithdrawAllMessageStruct,
933
+ "hashTyped(((address,bytes32,uint256,uint256),(address,address,bytes),uint256,((address,address,bytes),uint256,uint256),uint256,bytes))"(
934
+ ms: IPPTLooperEIP712Types.IncreasePositionMessageStruct,
1022
935
  overrides?: CallOverrides
1023
936
  ): Promise<string>;
1024
937
 
1025
- hashTyped_SwapBridgeWithdrawAllReq(
1026
- req: IPPTLooper.SwapBridgeWithdrawAllRequestStruct,
938
+ "hashTyped(((bytes32,uint256,uint32,uint32,uint256,bytes),bool,address,address,uint256))"(
939
+ req: IPPTLooperEIP712Types.SwapBridgeWithdrawAllRequestStruct,
1027
940
  overrides?: CallOverrides
1028
941
  ): Promise<string>;
1029
942
 
1030
- hashTyped_UserRequestStateSetMsg(
1031
- ms: IPPTLooper.UserRequestStateSetMessageStruct,
943
+ "hashTyped(((bytes32,uint256,uint32,uint32,uint256,bytes),address,bytes,address[]))"(
944
+ req: IPPTLooperEIP712Types.ClaimMMRewardsRequestStruct,
945
+ overrides?: CallOverrides
946
+ ): Promise<string>;
947
+
948
+ "hashTyped(((bytes32,uint256,uint32,uint32,uint256,bytes),address,uint256,uint256,uint256,bool,uint256))"(
949
+ req: IPPTLooperEIP712Types.IncreasePositionRequestStruct,
950
+ overrides?: CallOverrides
951
+ ): Promise<string>;
952
+
953
+ "hashTyped(((address,bytes32,uint256,uint256),(address,address,bytes),((address,address,bytes),uint256,uint256),bytes))"(
954
+ ms: IPPTLooperEIP712Types.SwapBridgeWithdrawAllMessageStruct,
955
+ overrides?: CallOverrides
956
+ ): Promise<string>;
957
+
958
+ "hashTyped(((address,bytes32,uint256,uint256)))"(
959
+ ms: IPPTLooperEIP712Types.ClaimMMRewardsMessageStruct,
1032
960
  overrides?: CallOverrides
1033
961
  ): Promise<string>;
1034
962
 
1035
963
  increaseLoopPosition(
1036
- ms: IPPTLooper.IncreasePositionMessageStruct,
964
+ ms: IPPTLooperEIP712Types.IncreasePositionMessageStruct,
1037
965
  proposerSig: BytesLike,
1038
- req: IPPTLooper.IncreasePositionRequestStruct,
1039
- ownerSig: BytesLike,
1040
- overrides?: PayableOverrides & { from?: string | Promise<string> }
1041
- ): Promise<ContractTransaction>;
1042
-
1043
- multicall(
1044
- calls: IMulticall.Call3Struct[],
966
+ req: IPPTLooperEIP712Types.IncreasePositionRequestStruct,
967
+ ownerSigIfFirstCall: BytesLike,
1045
968
  overrides?: PayableOverrides & { from?: string | Promise<string> }
1046
969
  ): Promise<ContractTransaction>;
1047
970
 
@@ -1052,7 +975,8 @@ export interface PTLooperBase extends BaseContract {
1052
975
  proposer(overrides?: CallOverrides): Promise<string>;
1053
976
 
1054
977
  proposerNonce(
1055
- ownerSigHash: BytesLike,
978
+ owner: string,
979
+ requestHash: BytesLike,
1056
980
  overrides?: CallOverrides
1057
981
  ): Promise<BigNumber>;
1058
982
 
@@ -1066,26 +990,19 @@ export interface PTLooperBase extends BaseContract {
1066
990
  overrides?: Overrides & { from?: string | Promise<string> }
1067
991
  ): Promise<ContractTransaction>;
1068
992
 
1069
- setUserRequestState(
1070
- ms: IPPTLooper.UserRequestStateSetMessageStruct,
1071
- proposerSignature: BytesLike,
1072
- overrides?: Overrides & { from?: string | Promise<string> }
1073
- ): Promise<ContractTransaction>;
1074
-
1075
- "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)"(
1076
- ms: IPPTLooper.SwapBridgeWithdrawAllMessageStruct,
993
+ swapBridgeWithdrawAll(
994
+ ms: IPPTLooperEIP712Types.SwapBridgeWithdrawAllMessageStruct,
1077
995
  proposerSig: BytesLike,
1078
- req: IPPTLooper.BatchDecPosThenWithdrawRequestStruct,
1079
- ownerSig: BytesLike,
996
+ req: IPPTLooperEIP712Types.SwapBridgeWithdrawAllRequestStruct,
997
+ ownerSigIfFirstCall: BytesLike,
1080
998
  overrides?: PayableOverrides & { from?: string | Promise<string> }
1081
999
  ): Promise<ContractTransaction>;
1082
1000
 
1083
- "swapBridgeWithdrawAll(((address,bytes32,uint256,bytes32,uint256),(address,address,bytes),(address,address,bytes),uint256,uint256),bytes,((bytes32,uint256,uint32,uint32),bool,address,address,uint256),bytes)"(
1084
- ms: IPPTLooper.SwapBridgeWithdrawAllMessageStruct,
1085
- proposerSig: BytesLike,
1086
- req: IPPTLooper.SwapBridgeWithdrawAllRequestStruct,
1087
- ownerSig: BytesLike,
1088
- overrides?: PayableOverrides & { from?: string | Promise<string> }
1001
+ terminateSession(
1002
+ owner: string,
1003
+ boxId: BytesLike,
1004
+ requestHash: BytesLike,
1005
+ overrides?: Overrides & { from?: string | Promise<string> }
1089
1006
  ): Promise<ContractTransaction>;
1090
1007
 
1091
1008
  transferOwnership(
@@ -1104,41 +1021,28 @@ export interface PTLooperBase extends BaseContract {
1104
1021
  callStatic: {
1105
1022
  POSITION_BOX_FACTORY(overrides?: CallOverrides): Promise<string>;
1106
1023
 
1024
+ POST_LOOP_STATE_CHECKER(overrides?: CallOverrides): Promise<string>;
1025
+
1107
1026
  TREASURY(overrides?: CallOverrides): Promise<string>;
1108
1027
 
1109
- claimMoneyMarketRewards(
1110
- owner: string,
1111
- boxId: BytesLike,
1028
+ claimMMRewards(
1029
+ ms: IPPTLooperEIP712Types.ClaimMMRewardsMessageStruct,
1030
+ proposerSig: BytesLike,
1031
+ req: IPPTLooperEIP712Types.ClaimMMRewardsRequestStruct,
1032
+ ownerSigIfFirstCall: BytesLike,
1112
1033
  overrides?: CallOverrides
1113
1034
  ): Promise<void>;
1114
1035
 
1115
1036
  claimOwnership(overrides?: CallOverrides): Promise<void>;
1116
1037
 
1117
- "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)"(
1118
- ms: IPPTLooper.DecreasePositionMessageStruct,
1038
+ decreaseLoopPosition(
1039
+ ms: IPPTLooperEIP712Types.DecreasePositionMessageStruct,
1119
1040
  proposerSig: BytesLike,
1120
- req: IPPTLooper.BatchDecPosThenWithdrawRequestStruct,
1121
- ownerSig: BytesLike,
1041
+ req: IPPTLooperEIP712Types.DecreasePositionRequestStruct,
1042
+ ownerSigIfFirstCall: BytesLike,
1122
1043
  overrides?: CallOverrides
1123
1044
  ): Promise<void>;
1124
1045
 
1125
- "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)"(
1126
- ms: IPPTLooper.DecreasePositionMessageStruct,
1127
- proposerSig: BytesLike,
1128
- req: IPPTLooper.DecreasePositionRequestStruct,
1129
- ownerSig: BytesLike,
1130
- overrides?: CallOverrides
1131
- ): Promise<void>;
1132
-
1133
- depositToBox(
1134
- boxId: BytesLike,
1135
- tokenIn: string,
1136
- amountIn: BigNumberish,
1137
- swapCall: IPPTLooper.BoxApprovedCallStruct,
1138
- minDebtTokenSwapOut: BigNumberish,
1139
- overrides?: CallOverrides
1140
- ): Promise<BigNumber>;
1141
-
1142
1046
  eip712Domain(
1143
1047
  overrides?: CallOverrides
1144
1048
  ): Promise<
@@ -1155,74 +1059,99 @@ export interface PTLooperBase extends BaseContract {
1155
1059
 
1156
1060
  executor(overrides?: CallOverrides): Promise<string>;
1157
1061
 
1158
- hashBoxApprovedCall(
1159
- sb: IPPTLooper.BoxApprovedCallStruct,
1062
+ "hashRaw(((bytes32,uint256,uint32,uint32,uint256,bytes),address,uint256,uint256,uint256,bool,uint256))"(
1063
+ req: IPPTLooperEIP712Types.IncreasePositionRequestStruct,
1064
+ overrides?: CallOverrides
1065
+ ): Promise<string>;
1066
+
1067
+ "hashRaw((bytes32,uint256,uint32,uint32,uint256,bytes))"(
1068
+ header: IPPTLooperEIP712Types.RequestHeaderStruct,
1069
+ overrides?: CallOverrides
1070
+ ): Promise<string>;
1071
+
1072
+ "hashRaw(((address,bytes32,uint256,uint256)))"(
1073
+ ms: IPPTLooperEIP712Types.ClaimMMRewardsMessageStruct,
1160
1074
  overrides?: CallOverrides
1161
1075
  ): Promise<string>;
1162
1076
 
1163
- hashBoxPermit(
1164
- permit: IPPTLooper.BoxPermitStruct,
1077
+ "hashRaw(((address,address,bytes),uint256,uint256))"(
1078
+ bridge: IPPTLooperEIP712Types.BridgeDataStruct,
1165
1079
  overrides?: CallOverrides
1166
1080
  ): Promise<string>;
1167
1081
 
1168
- hashRequestHeader(
1169
- header: IPPTLooper.RequestHeaderStruct,
1082
+ "hashRaw((address,bytes32,uint256,uint256))"(
1083
+ permit: IPPTLooperEIP712Types.BoxPermitStruct,
1170
1084
  overrides?: CallOverrides
1171
1085
  ): Promise<string>;
1172
1086
 
1173
- hashTyped_BatchDecPosThenWithdrawReq(
1174
- req: IPPTLooper.BatchDecPosThenWithdrawRequestStruct,
1087
+ "hashRaw(((bytes32,uint256,uint32,uint32,uint256,bytes),address,bytes,address[]))"(
1088
+ req: IPPTLooperEIP712Types.ClaimMMRewardsRequestStruct,
1175
1089
  overrides?: CallOverrides
1176
1090
  ): Promise<string>;
1177
1091
 
1178
- hashTyped_DecreasePositionMsg(
1179
- ms: IPPTLooper.DecreasePositionMessageStruct,
1092
+ "hashRaw(((bytes32,uint256,uint32,uint32,uint256,bytes),uint256,uint256))"(
1093
+ req: IPPTLooperEIP712Types.DecreasePositionRequestStruct,
1180
1094
  overrides?: CallOverrides
1181
1095
  ): Promise<string>;
1182
1096
 
1183
- hashTyped_DecreasePositionReq(
1184
- req: IPPTLooper.DecreasePositionRequestStruct,
1097
+ "hashRaw(((bytes32,uint256,uint32,uint32,uint256,bytes),bool,address,address,uint256))"(
1098
+ req: IPPTLooperEIP712Types.SwapBridgeWithdrawAllRequestStruct,
1185
1099
  overrides?: CallOverrides
1186
1100
  ): Promise<string>;
1187
1101
 
1188
- hashTyped_IncreasePositionMsg(
1189
- ms: IPPTLooper.IncreasePositionMessageStruct,
1102
+ "hashRaw((address,address,bytes))"(
1103
+ call: IPPTLooperEIP712Types.BoxApprovedCallStruct,
1190
1104
  overrides?: CallOverrides
1191
1105
  ): Promise<string>;
1192
1106
 
1193
- hashTyped_IncreasePositionReq(
1194
- req: IPPTLooper.IncreasePositionRequestStruct,
1107
+ "hashTyped(((bytes32,uint256,uint32,uint32,uint256,bytes),uint256,uint256))"(
1108
+ req: IPPTLooperEIP712Types.DecreasePositionRequestStruct,
1195
1109
  overrides?: CallOverrides
1196
1110
  ): Promise<string>;
1197
1111
 
1198
- hashTyped_SwapBridgeWithdrawAllMsg(
1199
- ms: IPPTLooper.SwapBridgeWithdrawAllMessageStruct,
1112
+ "hashTyped(((address,bytes32,uint256,uint256),(address,address,bytes),((address,address,bytes),uint256,uint256),uint256,bytes))"(
1113
+ ms: IPPTLooperEIP712Types.DecreasePositionMessageStruct,
1200
1114
  overrides?: CallOverrides
1201
1115
  ): Promise<string>;
1202
1116
 
1203
- hashTyped_SwapBridgeWithdrawAllReq(
1204
- req: IPPTLooper.SwapBridgeWithdrawAllRequestStruct,
1117
+ "hashTyped(((address,bytes32,uint256,uint256),(address,address,bytes),uint256,((address,address,bytes),uint256,uint256),uint256,bytes))"(
1118
+ ms: IPPTLooperEIP712Types.IncreasePositionMessageStruct,
1205
1119
  overrides?: CallOverrides
1206
1120
  ): Promise<string>;
1207
1121
 
1208
- hashTyped_UserRequestStateSetMsg(
1209
- ms: IPPTLooper.UserRequestStateSetMessageStruct,
1122
+ "hashTyped(((bytes32,uint256,uint32,uint32,uint256,bytes),bool,address,address,uint256))"(
1123
+ req: IPPTLooperEIP712Types.SwapBridgeWithdrawAllRequestStruct,
1124
+ overrides?: CallOverrides
1125
+ ): Promise<string>;
1126
+
1127
+ "hashTyped(((bytes32,uint256,uint32,uint32,uint256,bytes),address,bytes,address[]))"(
1128
+ req: IPPTLooperEIP712Types.ClaimMMRewardsRequestStruct,
1129
+ overrides?: CallOverrides
1130
+ ): Promise<string>;
1131
+
1132
+ "hashTyped(((bytes32,uint256,uint32,uint32,uint256,bytes),address,uint256,uint256,uint256,bool,uint256))"(
1133
+ req: IPPTLooperEIP712Types.IncreasePositionRequestStruct,
1134
+ overrides?: CallOverrides
1135
+ ): Promise<string>;
1136
+
1137
+ "hashTyped(((address,bytes32,uint256,uint256),(address,address,bytes),((address,address,bytes),uint256,uint256),bytes))"(
1138
+ ms: IPPTLooperEIP712Types.SwapBridgeWithdrawAllMessageStruct,
1139
+ overrides?: CallOverrides
1140
+ ): Promise<string>;
1141
+
1142
+ "hashTyped(((address,bytes32,uint256,uint256)))"(
1143
+ ms: IPPTLooperEIP712Types.ClaimMMRewardsMessageStruct,
1210
1144
  overrides?: CallOverrides
1211
1145
  ): Promise<string>;
1212
1146
 
1213
1147
  increaseLoopPosition(
1214
- ms: IPPTLooper.IncreasePositionMessageStruct,
1148
+ ms: IPPTLooperEIP712Types.IncreasePositionMessageStruct,
1215
1149
  proposerSig: BytesLike,
1216
- req: IPPTLooper.IncreasePositionRequestStruct,
1217
- ownerSig: BytesLike,
1150
+ req: IPPTLooperEIP712Types.IncreasePositionRequestStruct,
1151
+ ownerSigIfFirstCall: BytesLike,
1218
1152
  overrides?: CallOverrides
1219
1153
  ): Promise<void>;
1220
1154
 
1221
- multicall(
1222
- calls: IMulticall.Call3Struct[],
1223
- overrides?: CallOverrides
1224
- ): Promise<IMulticall.ResultStructOutput[]>;
1225
-
1226
1155
  owner(overrides?: CallOverrides): Promise<string>;
1227
1156
 
1228
1157
  pendingOwner(overrides?: CallOverrides): Promise<string>;
@@ -1230,7 +1159,8 @@ export interface PTLooperBase extends BaseContract {
1230
1159
  proposer(overrides?: CallOverrides): Promise<string>;
1231
1160
 
1232
1161
  proposerNonce(
1233
- ownerSigHash: BytesLike,
1162
+ owner: string,
1163
+ requestHash: BytesLike,
1234
1164
  overrides?: CallOverrides
1235
1165
  ): Promise<BigNumber>;
1236
1166
 
@@ -1238,25 +1168,18 @@ export interface PTLooperBase extends BaseContract {
1238
1168
 
1239
1169
  setProposer(proposer_: string, overrides?: CallOverrides): Promise<void>;
1240
1170
 
1241
- setUserRequestState(
1242
- ms: IPPTLooper.UserRequestStateSetMessageStruct,
1243
- proposerSignature: BytesLike,
1244
- overrides?: CallOverrides
1245
- ): Promise<void>;
1246
-
1247
- "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)"(
1248
- ms: IPPTLooper.SwapBridgeWithdrawAllMessageStruct,
1171
+ swapBridgeWithdrawAll(
1172
+ ms: IPPTLooperEIP712Types.SwapBridgeWithdrawAllMessageStruct,
1249
1173
  proposerSig: BytesLike,
1250
- req: IPPTLooper.BatchDecPosThenWithdrawRequestStruct,
1251
- ownerSig: BytesLike,
1174
+ req: IPPTLooperEIP712Types.SwapBridgeWithdrawAllRequestStruct,
1175
+ ownerSigIfFirstCall: BytesLike,
1252
1176
  overrides?: CallOverrides
1253
1177
  ): Promise<void>;
1254
1178
 
1255
- "swapBridgeWithdrawAll(((address,bytes32,uint256,bytes32,uint256),(address,address,bytes),(address,address,bytes),uint256,uint256),bytes,((bytes32,uint256,uint32,uint32),bool,address,address,uint256),bytes)"(
1256
- ms: IPPTLooper.SwapBridgeWithdrawAllMessageStruct,
1257
- proposerSig: BytesLike,
1258
- req: IPPTLooper.SwapBridgeWithdrawAllRequestStruct,
1259
- ownerSig: BytesLike,
1179
+ terminateSession(
1180
+ owner: string,
1181
+ boxId: BytesLike,
1182
+ requestHash: BytesLike,
1260
1183
  overrides?: CallOverrides
1261
1184
  ): Promise<void>;
1262
1185
 
@@ -1315,7 +1238,7 @@ export interface PTLooperBase extends BaseContract {
1315
1238
  "PositionDecreased(address,bytes32,bytes32,uint256,uint256,uint256,uint256)"(
1316
1239
  owner?: string | null,
1317
1240
  boxId?: BytesLike | null,
1318
- ownerSigHash?: null,
1241
+ requestHash?: null,
1319
1242
  nonce?: null,
1320
1243
  preDebtBalance?: null,
1321
1244
  netPtToSwap?: null,
@@ -1324,7 +1247,7 @@ export interface PTLooperBase extends BaseContract {
1324
1247
  PositionDecreased(
1325
1248
  owner?: string | null,
1326
1249
  boxId?: BytesLike | null,
1327
- ownerSigHash?: null,
1250
+ requestHash?: null,
1328
1251
  nonce?: null,
1329
1252
  preDebtBalance?: null,
1330
1253
  netPtToSwap?: null,
@@ -1334,22 +1257,65 @@ export interface PTLooperBase extends BaseContract {
1334
1257
  "PositionIncreased(address,bytes32,bytes32,uint256,uint256,uint256,uint256)"(
1335
1258
  owner?: string | null,
1336
1259
  boxId?: BytesLike | null,
1337
- ownerSigHash?: null,
1260
+ requestHash?: null,
1338
1261
  nonce?: null,
1339
- preDebtBalance?: null,
1262
+ preInBalance?: null,
1340
1263
  netPtToMM?: null,
1341
1264
  postDebtBalance?: null
1342
1265
  ): PositionIncreasedEventFilter;
1343
1266
  PositionIncreased(
1344
1267
  owner?: string | null,
1345
1268
  boxId?: BytesLike | null,
1346
- ownerSigHash?: null,
1269
+ requestHash?: null,
1347
1270
  nonce?: null,
1348
- preDebtBalance?: null,
1271
+ preInBalance?: null,
1349
1272
  netPtToMM?: null,
1350
1273
  postDebtBalance?: null
1351
1274
  ): PositionIncreasedEventFilter;
1352
1275
 
1276
+ "RewardsClaimed(address,bytes32,bytes32,uint256,address[],uint256[])"(
1277
+ owner?: string | null,
1278
+ boxId?: BytesLike | null,
1279
+ requestHash?: null,
1280
+ nonce?: null,
1281
+ rewardTokens?: null,
1282
+ claimedAmounts?: null
1283
+ ): RewardsClaimedEventFilter;
1284
+ RewardsClaimed(
1285
+ owner?: string | null,
1286
+ boxId?: BytesLike | null,
1287
+ requestHash?: null,
1288
+ nonce?: null,
1289
+ rewardTokens?: null,
1290
+ claimedAmounts?: null
1291
+ ): RewardsClaimedEventFilter;
1292
+
1293
+ "SessionInitiated(address,bytes32,bytes32,uint32)"(
1294
+ owner?: string | null,
1295
+ boxId?: BytesLike | null,
1296
+ requestHash?: null,
1297
+ sessionNonce?: null
1298
+ ): SessionInitiatedEventFilter;
1299
+ SessionInitiated(
1300
+ owner?: string | null,
1301
+ boxId?: BytesLike | null,
1302
+ requestHash?: null,
1303
+ sessionNonce?: null
1304
+ ): SessionInitiatedEventFilter;
1305
+
1306
+ "SessionTerminated(address,bytes32,bytes32,uint32)"(
1307
+ owner?: string | null,
1308
+ boxId?: BytesLike | null,
1309
+ requestHash?: null,
1310
+ sessionNonce?: null
1311
+ ): SessionTerminatedEventFilter;
1312
+ SessionTerminated(
1313
+ owner?: string | null,
1314
+ boxId?: BytesLike | null,
1315
+ requestHash?: null,
1316
+ sessionNonce?: null
1317
+ ): SessionTerminatedEventFilter;
1318
+
1353
1319
  "SetExecutor(address)"(executor?: null): SetExecutorEventFilter;
1354
1320
  SetExecutor(executor?: null): SetExecutorEventFilter;
1355
1321
 
@@ -1372,59 +1338,46 @@ export interface PTLooperBase extends BaseContract {
1372
1338
  tokenIn?: string | null,
1373
1339
  netIn?: null,
1374
1340
  tokenOut?: string | null,
1375
- netOut?: null
1341
+ netSwappedOut?: null
1376
1342
  ): TokenSwappedEventFilter;
1377
1343
  TokenSwapped(
1378
1344
  box?: string | null,
1379
1345
  tokenIn?: string | null,
1380
1346
  netIn?: null,
1381
1347
  tokenOut?: string | null,
1382
- netOut?: null
1348
+ netSwappedOut?: null
1383
1349
  ): TokenSwappedEventFilter;
1384
1350
 
1385
- "UserRequestStateSet(address,bytes32,bytes32,uint32,bool)"(
1351
+ "Withdrawn(address,bytes32,bytes32,uint256,address,uint256)"(
1386
1352
  owner?: string | null,
1387
1353
  boxId?: BytesLike | null,
1388
- ownerSigHash?: null,
1389
- sessionNonce?: null,
1390
- isInitiate?: null
1391
- ): UserRequestStateSetEventFilter;
1392
- UserRequestStateSet(
1393
- owner?: string | null,
1394
- boxId?: BytesLike | null,
1395
- ownerSigHash?: null,
1396
- sessionNonce?: null,
1397
- isInitiate?: null
1398
- ): UserRequestStateSetEventFilter;
1399
-
1400
- "Withdrawn(address,bytes32,bytes32,uint256,address,uint256,uint256)"(
1401
- owner?: string | null,
1402
- boxId?: BytesLike | null,
1403
- ownerSigHash?: null,
1354
+ requestHash?: null,
1404
1355
  nonce?: null,
1405
1356
  tokenOut?: null,
1406
- netOut?: null,
1407
- fee?: null
1357
+ netOut?: null
1408
1358
  ): WithdrawnEventFilter;
1409
1359
  Withdrawn(
1410
1360
  owner?: string | null,
1411
1361
  boxId?: BytesLike | null,
1412
- ownerSigHash?: null,
1362
+ requestHash?: null,
1413
1363
  nonce?: null,
1414
1364
  tokenOut?: null,
1415
- netOut?: null,
1416
- fee?: null
1365
+ netOut?: null
1417
1366
  ): WithdrawnEventFilter;
1418
1367
  };
1419
1368
 
1420
1369
  estimateGas: {
1421
1370
  POSITION_BOX_FACTORY(overrides?: CallOverrides): Promise<BigNumber>;
1422
1371
 
1372
+ POST_LOOP_STATE_CHECKER(overrides?: CallOverrides): Promise<BigNumber>;
1373
+
1423
1374
  TREASURY(overrides?: CallOverrides): Promise<BigNumber>;
1424
1375
 
1425
- claimMoneyMarketRewards(
1426
- owner: string,
1427
- boxId: BytesLike,
1376
+ claimMMRewards(
1377
+ ms: IPPTLooperEIP712Types.ClaimMMRewardsMessageStruct,
1378
+ proposerSig: BytesLike,
1379
+ req: IPPTLooperEIP712Types.ClaimMMRewardsRequestStruct,
1380
+ ownerSigIfFirstCall: BytesLike,
1428
1381
  overrides?: Overrides & { from?: string | Promise<string> }
1429
1382
  ): Promise<BigNumber>;
1430
1383
 
@@ -1432,100 +1385,108 @@ export interface PTLooperBase extends BaseContract {
1432
1385
  overrides?: Overrides & { from?: string | Promise<string> }
1433
1386
  ): Promise<BigNumber>;
1434
1387
 
1435
- "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)"(
1436
- ms: IPPTLooper.DecreasePositionMessageStruct,
1388
+ decreaseLoopPosition(
1389
+ ms: IPPTLooperEIP712Types.DecreasePositionMessageStruct,
1437
1390
  proposerSig: BytesLike,
1438
- req: IPPTLooper.BatchDecPosThenWithdrawRequestStruct,
1439
- ownerSig: BytesLike,
1391
+ req: IPPTLooperEIP712Types.DecreasePositionRequestStruct,
1392
+ ownerSigIfFirstCall: BytesLike,
1440
1393
  overrides?: PayableOverrides & { from?: string | Promise<string> }
1441
1394
  ): Promise<BigNumber>;
1442
1395
 
1443
- "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)"(
1444
- ms: IPPTLooper.DecreasePositionMessageStruct,
1445
- proposerSig: BytesLike,
1446
- req: IPPTLooper.DecreasePositionRequestStruct,
1447
- ownerSig: BytesLike,
1448
- overrides?: PayableOverrides & { from?: string | Promise<string> }
1396
+ eip712Domain(overrides?: CallOverrides): Promise<BigNumber>;
1397
+
1398
+ executor(overrides?: CallOverrides): Promise<BigNumber>;
1399
+
1400
+ "hashRaw(((bytes32,uint256,uint32,uint32,uint256,bytes),address,uint256,uint256,uint256,bool,uint256))"(
1401
+ req: IPPTLooperEIP712Types.IncreasePositionRequestStruct,
1402
+ overrides?: CallOverrides
1449
1403
  ): Promise<BigNumber>;
1450
1404
 
1451
- depositToBox(
1452
- boxId: BytesLike,
1453
- tokenIn: string,
1454
- amountIn: BigNumberish,
1455
- swapCall: IPPTLooper.BoxApprovedCallStruct,
1456
- minDebtTokenSwapOut: BigNumberish,
1457
- overrides?: PayableOverrides & { from?: string | Promise<string> }
1405
+ "hashRaw((bytes32,uint256,uint32,uint32,uint256,bytes))"(
1406
+ header: IPPTLooperEIP712Types.RequestHeaderStruct,
1407
+ overrides?: CallOverrides
1458
1408
  ): Promise<BigNumber>;
1459
1409
 
1460
- eip712Domain(overrides?: CallOverrides): Promise<BigNumber>;
1410
+ "hashRaw(((address,bytes32,uint256,uint256)))"(
1411
+ ms: IPPTLooperEIP712Types.ClaimMMRewardsMessageStruct,
1412
+ overrides?: CallOverrides
1413
+ ): Promise<BigNumber>;
1461
1414
 
1462
- executor(overrides?: CallOverrides): Promise<BigNumber>;
1415
+ "hashRaw(((address,address,bytes),uint256,uint256))"(
1416
+ bridge: IPPTLooperEIP712Types.BridgeDataStruct,
1417
+ overrides?: CallOverrides
1418
+ ): Promise<BigNumber>;
1463
1419
 
1464
- hashBoxApprovedCall(
1465
- sb: IPPTLooper.BoxApprovedCallStruct,
1420
+ "hashRaw((address,bytes32,uint256,uint256))"(
1421
+ permit: IPPTLooperEIP712Types.BoxPermitStruct,
1466
1422
  overrides?: CallOverrides
1467
1423
  ): Promise<BigNumber>;
1468
1424
 
1469
- hashBoxPermit(
1470
- permit: IPPTLooper.BoxPermitStruct,
1425
+ "hashRaw(((bytes32,uint256,uint32,uint32,uint256,bytes),address,bytes,address[]))"(
1426
+ req: IPPTLooperEIP712Types.ClaimMMRewardsRequestStruct,
1471
1427
  overrides?: CallOverrides
1472
1428
  ): Promise<BigNumber>;
1473
1429
 
1474
- hashRequestHeader(
1475
- header: IPPTLooper.RequestHeaderStruct,
1430
+ "hashRaw(((bytes32,uint256,uint32,uint32,uint256,bytes),uint256,uint256))"(
1431
+ req: IPPTLooperEIP712Types.DecreasePositionRequestStruct,
1476
1432
  overrides?: CallOverrides
1477
1433
  ): Promise<BigNumber>;
1478
1434
 
1479
- hashTyped_BatchDecPosThenWithdrawReq(
1480
- req: IPPTLooper.BatchDecPosThenWithdrawRequestStruct,
1435
+ "hashRaw(((bytes32,uint256,uint32,uint32,uint256,bytes),bool,address,address,uint256))"(
1436
+ req: IPPTLooperEIP712Types.SwapBridgeWithdrawAllRequestStruct,
1481
1437
  overrides?: CallOverrides
1482
1438
  ): Promise<BigNumber>;
1483
1439
 
1484
- hashTyped_DecreasePositionMsg(
1485
- ms: IPPTLooper.DecreasePositionMessageStruct,
1440
+ "hashRaw((address,address,bytes))"(
1441
+ call: IPPTLooperEIP712Types.BoxApprovedCallStruct,
1486
1442
  overrides?: CallOverrides
1487
1443
  ): Promise<BigNumber>;
1488
1444
 
1489
- hashTyped_DecreasePositionReq(
1490
- req: IPPTLooper.DecreasePositionRequestStruct,
1445
+ "hashTyped(((bytes32,uint256,uint32,uint32,uint256,bytes),uint256,uint256))"(
1446
+ req: IPPTLooperEIP712Types.DecreasePositionRequestStruct,
1491
1447
  overrides?: CallOverrides
1492
1448
  ): Promise<BigNumber>;
1493
1449
 
1494
- hashTyped_IncreasePositionMsg(
1495
- ms: IPPTLooper.IncreasePositionMessageStruct,
1450
+ "hashTyped(((address,bytes32,uint256,uint256),(address,address,bytes),((address,address,bytes),uint256,uint256),uint256,bytes))"(
1451
+ ms: IPPTLooperEIP712Types.DecreasePositionMessageStruct,
1496
1452
  overrides?: CallOverrides
1497
1453
  ): Promise<BigNumber>;
1498
1454
 
1499
- hashTyped_IncreasePositionReq(
1500
- req: IPPTLooper.IncreasePositionRequestStruct,
1455
+ "hashTyped(((address,bytes32,uint256,uint256),(address,address,bytes),uint256,((address,address,bytes),uint256,uint256),uint256,bytes))"(
1456
+ ms: IPPTLooperEIP712Types.IncreasePositionMessageStruct,
1501
1457
  overrides?: CallOverrides
1502
1458
  ): Promise<BigNumber>;
1503
1459
 
1504
- hashTyped_SwapBridgeWithdrawAllMsg(
1505
- ms: IPPTLooper.SwapBridgeWithdrawAllMessageStruct,
1460
+ "hashTyped(((bytes32,uint256,uint32,uint32,uint256,bytes),bool,address,address,uint256))"(
1461
+ req: IPPTLooperEIP712Types.SwapBridgeWithdrawAllRequestStruct,
1506
1462
  overrides?: CallOverrides
1507
1463
  ): Promise<BigNumber>;
1508
1464
 
1509
- hashTyped_SwapBridgeWithdrawAllReq(
1510
- req: IPPTLooper.SwapBridgeWithdrawAllRequestStruct,
1465
+ "hashTyped(((bytes32,uint256,uint32,uint32,uint256,bytes),address,bytes,address[]))"(
1466
+ req: IPPTLooperEIP712Types.ClaimMMRewardsRequestStruct,
1511
1467
  overrides?: CallOverrides
1512
1468
  ): Promise<BigNumber>;
1513
1469
 
1514
- hashTyped_UserRequestStateSetMsg(
1515
- ms: IPPTLooper.UserRequestStateSetMessageStruct,
1470
+ "hashTyped(((bytes32,uint256,uint32,uint32,uint256,bytes),address,uint256,uint256,uint256,bool,uint256))"(
1471
+ req: IPPTLooperEIP712Types.IncreasePositionRequestStruct,
1516
1472
  overrides?: CallOverrides
1517
1473
  ): Promise<BigNumber>;
1518
1474
 
1519
- increaseLoopPosition(
1520
- ms: IPPTLooper.IncreasePositionMessageStruct,
1521
- proposerSig: BytesLike,
1522
- req: IPPTLooper.IncreasePositionRequestStruct,
1523
- ownerSig: BytesLike,
1524
- overrides?: PayableOverrides & { from?: string | Promise<string> }
1475
+ "hashTyped(((address,bytes32,uint256,uint256),(address,address,bytes),((address,address,bytes),uint256,uint256),bytes))"(
1476
+ ms: IPPTLooperEIP712Types.SwapBridgeWithdrawAllMessageStruct,
1477
+ overrides?: CallOverrides
1525
1478
  ): Promise<BigNumber>;
1526
1479
 
1527
- multicall(
1528
- calls: IMulticall.Call3Struct[],
1480
+ "hashTyped(((address,bytes32,uint256,uint256)))"(
1481
+ ms: IPPTLooperEIP712Types.ClaimMMRewardsMessageStruct,
1482
+ overrides?: CallOverrides
1483
+ ): Promise<BigNumber>;
1484
+
1485
+ increaseLoopPosition(
1486
+ ms: IPPTLooperEIP712Types.IncreasePositionMessageStruct,
1487
+ proposerSig: BytesLike,
1488
+ req: IPPTLooperEIP712Types.IncreasePositionRequestStruct,
1489
+ ownerSigIfFirstCall: BytesLike,
1529
1490
  overrides?: PayableOverrides & { from?: string | Promise<string> }
1530
1491
  ): Promise<BigNumber>;
1531
1492
 
@@ -1536,7 +1497,8 @@ export interface PTLooperBase extends BaseContract {
1536
1497
  proposer(overrides?: CallOverrides): Promise<BigNumber>;
1537
1498
 
1538
1499
  proposerNonce(
1539
- ownerSigHash: BytesLike,
1500
+ owner: string,
1501
+ requestHash: BytesLike,
1540
1502
  overrides?: CallOverrides
1541
1503
  ): Promise<BigNumber>;
1542
1504
 
@@ -1550,26 +1512,19 @@ export interface PTLooperBase extends BaseContract {
1550
1512
  overrides?: Overrides & { from?: string | Promise<string> }
1551
1513
  ): Promise<BigNumber>;
1552
1514
 
1553
- setUserRequestState(
1554
- ms: IPPTLooper.UserRequestStateSetMessageStruct,
1555
- proposerSignature: BytesLike,
1556
- overrides?: Overrides & { from?: string | Promise<string> }
1557
- ): Promise<BigNumber>;
1558
-
1559
- "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)"(
1560
- ms: IPPTLooper.SwapBridgeWithdrawAllMessageStruct,
1515
+ swapBridgeWithdrawAll(
1516
+ ms: IPPTLooperEIP712Types.SwapBridgeWithdrawAllMessageStruct,
1561
1517
  proposerSig: BytesLike,
1562
- req: IPPTLooper.BatchDecPosThenWithdrawRequestStruct,
1563
- ownerSig: BytesLike,
1518
+ req: IPPTLooperEIP712Types.SwapBridgeWithdrawAllRequestStruct,
1519
+ ownerSigIfFirstCall: BytesLike,
1564
1520
  overrides?: PayableOverrides & { from?: string | Promise<string> }
1565
1521
  ): Promise<BigNumber>;
1566
1522
 
1567
- "swapBridgeWithdrawAll(((address,bytes32,uint256,bytes32,uint256),(address,address,bytes),(address,address,bytes),uint256,uint256),bytes,((bytes32,uint256,uint32,uint32),bool,address,address,uint256),bytes)"(
1568
- ms: IPPTLooper.SwapBridgeWithdrawAllMessageStruct,
1569
- proposerSig: BytesLike,
1570
- req: IPPTLooper.SwapBridgeWithdrawAllRequestStruct,
1571
- ownerSig: BytesLike,
1572
- overrides?: PayableOverrides & { from?: string | Promise<string> }
1523
+ terminateSession(
1524
+ owner: string,
1525
+ boxId: BytesLike,
1526
+ requestHash: BytesLike,
1527
+ overrides?: Overrides & { from?: string | Promise<string> }
1573
1528
  ): Promise<BigNumber>;
1574
1529
 
1575
1530
  transferOwnership(
@@ -1591,11 +1546,17 @@ export interface PTLooperBase extends BaseContract {
1591
1546
  overrides?: CallOverrides
1592
1547
  ): Promise<PopulatedTransaction>;
1593
1548
 
1549
+ POST_LOOP_STATE_CHECKER(
1550
+ overrides?: CallOverrides
1551
+ ): Promise<PopulatedTransaction>;
1552
+
1594
1553
  TREASURY(overrides?: CallOverrides): Promise<PopulatedTransaction>;
1595
1554
 
1596
- claimMoneyMarketRewards(
1597
- owner: string,
1598
- boxId: BytesLike,
1555
+ claimMMRewards(
1556
+ ms: IPPTLooperEIP712Types.ClaimMMRewardsMessageStruct,
1557
+ proposerSig: BytesLike,
1558
+ req: IPPTLooperEIP712Types.ClaimMMRewardsRequestStruct,
1559
+ ownerSigIfFirstCall: BytesLike,
1599
1560
  overrides?: Overrides & { from?: string | Promise<string> }
1600
1561
  ): Promise<PopulatedTransaction>;
1601
1562
 
@@ -1603,100 +1564,108 @@ export interface PTLooperBase extends BaseContract {
1603
1564
  overrides?: Overrides & { from?: string | Promise<string> }
1604
1565
  ): Promise<PopulatedTransaction>;
1605
1566
 
1606
- "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)"(
1607
- ms: IPPTLooper.DecreasePositionMessageStruct,
1567
+ decreaseLoopPosition(
1568
+ ms: IPPTLooperEIP712Types.DecreasePositionMessageStruct,
1608
1569
  proposerSig: BytesLike,
1609
- req: IPPTLooper.BatchDecPosThenWithdrawRequestStruct,
1610
- ownerSig: BytesLike,
1570
+ req: IPPTLooperEIP712Types.DecreasePositionRequestStruct,
1571
+ ownerSigIfFirstCall: BytesLike,
1611
1572
  overrides?: PayableOverrides & { from?: string | Promise<string> }
1612
1573
  ): Promise<PopulatedTransaction>;
1613
1574
 
1614
- "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)"(
1615
- ms: IPPTLooper.DecreasePositionMessageStruct,
1616
- proposerSig: BytesLike,
1617
- req: IPPTLooper.DecreasePositionRequestStruct,
1618
- ownerSig: BytesLike,
1619
- overrides?: PayableOverrides & { from?: string | Promise<string> }
1575
+ eip712Domain(overrides?: CallOverrides): Promise<PopulatedTransaction>;
1576
+
1577
+ executor(overrides?: CallOverrides): Promise<PopulatedTransaction>;
1578
+
1579
+ "hashRaw(((bytes32,uint256,uint32,uint32,uint256,bytes),address,uint256,uint256,uint256,bool,uint256))"(
1580
+ req: IPPTLooperEIP712Types.IncreasePositionRequestStruct,
1581
+ overrides?: CallOverrides
1620
1582
  ): Promise<PopulatedTransaction>;
1621
1583
 
1622
- depositToBox(
1623
- boxId: BytesLike,
1624
- tokenIn: string,
1625
- amountIn: BigNumberish,
1626
- swapCall: IPPTLooper.BoxApprovedCallStruct,
1627
- minDebtTokenSwapOut: BigNumberish,
1628
- overrides?: PayableOverrides & { from?: string | Promise<string> }
1584
+ "hashRaw((bytes32,uint256,uint32,uint32,uint256,bytes))"(
1585
+ header: IPPTLooperEIP712Types.RequestHeaderStruct,
1586
+ overrides?: CallOverrides
1629
1587
  ): Promise<PopulatedTransaction>;
1630
1588
 
1631
- eip712Domain(overrides?: CallOverrides): Promise<PopulatedTransaction>;
1589
+ "hashRaw(((address,bytes32,uint256,uint256)))"(
1590
+ ms: IPPTLooperEIP712Types.ClaimMMRewardsMessageStruct,
1591
+ overrides?: CallOverrides
1592
+ ): Promise<PopulatedTransaction>;
1632
1593
 
1633
- executor(overrides?: CallOverrides): Promise<PopulatedTransaction>;
1594
+ "hashRaw(((address,address,bytes),uint256,uint256))"(
1595
+ bridge: IPPTLooperEIP712Types.BridgeDataStruct,
1596
+ overrides?: CallOverrides
1597
+ ): Promise<PopulatedTransaction>;
1634
1598
 
1635
- hashBoxApprovedCall(
1636
- sb: IPPTLooper.BoxApprovedCallStruct,
1599
+ "hashRaw((address,bytes32,uint256,uint256))"(
1600
+ permit: IPPTLooperEIP712Types.BoxPermitStruct,
1637
1601
  overrides?: CallOverrides
1638
1602
  ): Promise<PopulatedTransaction>;
1639
1603
 
1640
- hashBoxPermit(
1641
- permit: IPPTLooper.BoxPermitStruct,
1604
+ "hashRaw(((bytes32,uint256,uint32,uint32,uint256,bytes),address,bytes,address[]))"(
1605
+ req: IPPTLooperEIP712Types.ClaimMMRewardsRequestStruct,
1642
1606
  overrides?: CallOverrides
1643
1607
  ): Promise<PopulatedTransaction>;
1644
1608
 
1645
- hashRequestHeader(
1646
- header: IPPTLooper.RequestHeaderStruct,
1609
+ "hashRaw(((bytes32,uint256,uint32,uint32,uint256,bytes),uint256,uint256))"(
1610
+ req: IPPTLooperEIP712Types.DecreasePositionRequestStruct,
1647
1611
  overrides?: CallOverrides
1648
1612
  ): Promise<PopulatedTransaction>;
1649
1613
 
1650
- hashTyped_BatchDecPosThenWithdrawReq(
1651
- req: IPPTLooper.BatchDecPosThenWithdrawRequestStruct,
1614
+ "hashRaw(((bytes32,uint256,uint32,uint32,uint256,bytes),bool,address,address,uint256))"(
1615
+ req: IPPTLooperEIP712Types.SwapBridgeWithdrawAllRequestStruct,
1652
1616
  overrides?: CallOverrides
1653
1617
  ): Promise<PopulatedTransaction>;
1654
1618
 
1655
- hashTyped_DecreasePositionMsg(
1656
- ms: IPPTLooper.DecreasePositionMessageStruct,
1619
+ "hashRaw((address,address,bytes))"(
1620
+ call: IPPTLooperEIP712Types.BoxApprovedCallStruct,
1657
1621
  overrides?: CallOverrides
1658
1622
  ): Promise<PopulatedTransaction>;
1659
1623
 
1660
- hashTyped_DecreasePositionReq(
1661
- req: IPPTLooper.DecreasePositionRequestStruct,
1624
+ "hashTyped(((bytes32,uint256,uint32,uint32,uint256,bytes),uint256,uint256))"(
1625
+ req: IPPTLooperEIP712Types.DecreasePositionRequestStruct,
1662
1626
  overrides?: CallOverrides
1663
1627
  ): Promise<PopulatedTransaction>;
1664
1628
 
1665
- hashTyped_IncreasePositionMsg(
1666
- ms: IPPTLooper.IncreasePositionMessageStruct,
1629
+ "hashTyped(((address,bytes32,uint256,uint256),(address,address,bytes),((address,address,bytes),uint256,uint256),uint256,bytes))"(
1630
+ ms: IPPTLooperEIP712Types.DecreasePositionMessageStruct,
1667
1631
  overrides?: CallOverrides
1668
1632
  ): Promise<PopulatedTransaction>;
1669
1633
 
1670
- hashTyped_IncreasePositionReq(
1671
- req: IPPTLooper.IncreasePositionRequestStruct,
1634
+ "hashTyped(((address,bytes32,uint256,uint256),(address,address,bytes),uint256,((address,address,bytes),uint256,uint256),uint256,bytes))"(
1635
+ ms: IPPTLooperEIP712Types.IncreasePositionMessageStruct,
1672
1636
  overrides?: CallOverrides
1673
1637
  ): Promise<PopulatedTransaction>;
1674
1638
 
1675
- hashTyped_SwapBridgeWithdrawAllMsg(
1676
- ms: IPPTLooper.SwapBridgeWithdrawAllMessageStruct,
1639
+ "hashTyped(((bytes32,uint256,uint32,uint32,uint256,bytes),bool,address,address,uint256))"(
1640
+ req: IPPTLooperEIP712Types.SwapBridgeWithdrawAllRequestStruct,
1677
1641
  overrides?: CallOverrides
1678
1642
  ): Promise<PopulatedTransaction>;
1679
1643
 
1680
- hashTyped_SwapBridgeWithdrawAllReq(
1681
- req: IPPTLooper.SwapBridgeWithdrawAllRequestStruct,
1644
+ "hashTyped(((bytes32,uint256,uint32,uint32,uint256,bytes),address,bytes,address[]))"(
1645
+ req: IPPTLooperEIP712Types.ClaimMMRewardsRequestStruct,
1682
1646
  overrides?: CallOverrides
1683
1647
  ): Promise<PopulatedTransaction>;
1684
1648
 
1685
- hashTyped_UserRequestStateSetMsg(
1686
- ms: IPPTLooper.UserRequestStateSetMessageStruct,
1649
+ "hashTyped(((bytes32,uint256,uint32,uint32,uint256,bytes),address,uint256,uint256,uint256,bool,uint256))"(
1650
+ req: IPPTLooperEIP712Types.IncreasePositionRequestStruct,
1687
1651
  overrides?: CallOverrides
1688
1652
  ): Promise<PopulatedTransaction>;
1689
1653
 
1690
- increaseLoopPosition(
1691
- ms: IPPTLooper.IncreasePositionMessageStruct,
1692
- proposerSig: BytesLike,
1693
- req: IPPTLooper.IncreasePositionRequestStruct,
1694
- ownerSig: BytesLike,
1695
- overrides?: PayableOverrides & { from?: string | Promise<string> }
1654
+ "hashTyped(((address,bytes32,uint256,uint256),(address,address,bytes),((address,address,bytes),uint256,uint256),bytes))"(
1655
+ ms: IPPTLooperEIP712Types.SwapBridgeWithdrawAllMessageStruct,
1656
+ overrides?: CallOverrides
1696
1657
  ): Promise<PopulatedTransaction>;
1697
1658
 
1698
- multicall(
1699
- calls: IMulticall.Call3Struct[],
1659
+ "hashTyped(((address,bytes32,uint256,uint256)))"(
1660
+ ms: IPPTLooperEIP712Types.ClaimMMRewardsMessageStruct,
1661
+ overrides?: CallOverrides
1662
+ ): Promise<PopulatedTransaction>;
1663
+
1664
+ increaseLoopPosition(
1665
+ ms: IPPTLooperEIP712Types.IncreasePositionMessageStruct,
1666
+ proposerSig: BytesLike,
1667
+ req: IPPTLooperEIP712Types.IncreasePositionRequestStruct,
1668
+ ownerSigIfFirstCall: BytesLike,
1700
1669
  overrides?: PayableOverrides & { from?: string | Promise<string> }
1701
1670
  ): Promise<PopulatedTransaction>;
1702
1671
 
@@ -1707,7 +1676,8 @@ export interface PTLooperBase extends BaseContract {
1707
1676
  proposer(overrides?: CallOverrides): Promise<PopulatedTransaction>;
1708
1677
 
1709
1678
  proposerNonce(
1710
- ownerSigHash: BytesLike,
1679
+ owner: string,
1680
+ requestHash: BytesLike,
1711
1681
  overrides?: CallOverrides
1712
1682
  ): Promise<PopulatedTransaction>;
1713
1683
 
@@ -1721,26 +1691,19 @@ export interface PTLooperBase extends BaseContract {
1721
1691
  overrides?: Overrides & { from?: string | Promise<string> }
1722
1692
  ): Promise<PopulatedTransaction>;
1723
1693
 
1724
- setUserRequestState(
1725
- ms: IPPTLooper.UserRequestStateSetMessageStruct,
1726
- proposerSignature: BytesLike,
1727
- overrides?: Overrides & { from?: string | Promise<string> }
1728
- ): Promise<PopulatedTransaction>;
1729
-
1730
- "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)"(
1731
- ms: IPPTLooper.SwapBridgeWithdrawAllMessageStruct,
1694
+ swapBridgeWithdrawAll(
1695
+ ms: IPPTLooperEIP712Types.SwapBridgeWithdrawAllMessageStruct,
1732
1696
  proposerSig: BytesLike,
1733
- req: IPPTLooper.BatchDecPosThenWithdrawRequestStruct,
1734
- ownerSig: BytesLike,
1697
+ req: IPPTLooperEIP712Types.SwapBridgeWithdrawAllRequestStruct,
1698
+ ownerSigIfFirstCall: BytesLike,
1735
1699
  overrides?: PayableOverrides & { from?: string | Promise<string> }
1736
1700
  ): Promise<PopulatedTransaction>;
1737
1701
 
1738
- "swapBridgeWithdrawAll(((address,bytes32,uint256,bytes32,uint256),(address,address,bytes),(address,address,bytes),uint256,uint256),bytes,((bytes32,uint256,uint32,uint32),bool,address,address,uint256),bytes)"(
1739
- ms: IPPTLooper.SwapBridgeWithdrawAllMessageStruct,
1740
- proposerSig: BytesLike,
1741
- req: IPPTLooper.SwapBridgeWithdrawAllRequestStruct,
1742
- ownerSig: BytesLike,
1743
- overrides?: PayableOverrides & { from?: string | Promise<string> }
1702
+ terminateSession(
1703
+ owner: string,
1704
+ boxId: BytesLike,
1705
+ requestHash: BytesLike,
1706
+ overrides?: Overrides & { from?: string | Promise<string> }
1744
1707
  ): Promise<PopulatedTransaction>;
1745
1708
 
1746
1709
  transferOwnership(