@pendle/core-v2 6.4.4-swaphubtest → 6.5.0-swaphubtest

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 (500) 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/LayerZeroHelper.sol/LayerZeroHelper.dbg.json +1 -1
  9. package/build/artifacts/contracts/LiquidityMining/GaugeController/PendleGaugeControllerUpg.sol/PendleGaugeControllerUpg.dbg.json +4 -0
  10. package/build/artifacts/contracts/LiquidityMining/GaugeController/PendleGaugeControllerUpg.sol/PendleGaugeControllerUpg.json +457 -0
  11. package/build/artifacts/contracts/LiquidityMining/PendleMerkleDistributor.sol/PendleMerkleDistributor.dbg.json +1 -1
  12. package/build/artifacts/contracts/LiquidityMining/PendleMerkleDistributor.sol/PendleMerkleDistributor.json +2 -2
  13. package/build/artifacts/contracts/LiquidityMining/PendleMultiTokenMerkleDistributor.sol/PendleMultiTokenMerkleDistributor.dbg.json +1 -1
  14. package/build/artifacts/contracts/LiquidityMining/PendleMultiTokenMerkleDistributor.sol/PendleMultiTokenMerkleDistributor.json +2 -2
  15. package/build/artifacts/contracts/LiquidityMining/VotingEscrow/VotingEscrowPendleMainchain.sol/VotingEscrowPendleMainchain.dbg.json +1 -1
  16. package/build/artifacts/contracts/LiquidityMining/VotingEscrow/VotingEscrowPendleMainchain.sol/VotingEscrowPendleMainchain.json +2 -2
  17. package/build/artifacts/contracts/LiquidityMining/VotingEscrow/VotingEscrowPendleSidechain.sol/VotingEscrowPendleSidechain.dbg.json +1 -1
  18. package/build/artifacts/contracts/LiquidityMining/VotingEscrow/VotingEscrowPendleSidechain.sol/VotingEscrowPendleSidechain.json +2 -2
  19. package/build/artifacts/contracts/LiquidityMining/VotingEscrow/VotingEscrowTokenBase.sol/VotingEscrowTokenBase.dbg.json +1 -1
  20. package/build/artifacts/contracts/LiquidityMining/libraries/VeBalanceLib.sol/VeBalanceLib.dbg.json +1 -1
  21. package/build/artifacts/contracts/LiquidityMining/libraries/VeBalanceLib.sol/VeBalanceLib.json +2 -2
  22. package/build/artifacts/contracts/LiquidityMining/libraries/VeHistoryLib.sol/CheckpointHelper.dbg.json +1 -1
  23. package/build/artifacts/contracts/LiquidityMining/libraries/VeHistoryLib.sol/CheckpointHelper.json +2 -2
  24. package/build/artifacts/contracts/LiquidityMining/libraries/VeHistoryLib.sol/Checkpoints.dbg.json +1 -1
  25. package/build/artifacts/contracts/LiquidityMining/libraries/VeHistoryLib.sol/Checkpoints.json +2 -2
  26. package/build/artifacts/contracts/LiquidityMining/libraries/WeekMath.sol/WeekMath.dbg.json +1 -1
  27. package/build/artifacts/contracts/LiquidityMining/sPendle/StakedPendle.sol/StakedPendle.dbg.json +4 -0
  28. package/build/artifacts/contracts/LiquidityMining/sPendle/StakedPendle.sol/StakedPendle.json +733 -0
  29. package/build/artifacts/contracts/core/Market/MarketMathCore.sol/MarketMathCore.dbg.json +1 -1
  30. package/build/artifacts/contracts/core/Market/MarketMathCore.sol/MarketMathCore.json +2 -2
  31. package/build/artifacts/contracts/core/Market/OracleLib.sol/OracleLib.dbg.json +1 -1
  32. package/build/artifacts/contracts/core/Market/OracleLib.sol/OracleLib.json +2 -2
  33. package/build/artifacts/contracts/core/Market/PendleGauge.sol/PendleGauge.dbg.json +1 -1
  34. package/build/artifacts/contracts/core/Market/PendleGauge.sol/PendleGauge.json +0 -51
  35. package/build/artifacts/contracts/core/Market/PendleMarketFactoryV7Upg.sol/PendleMarketFactoryV7Upg.dbg.json +4 -0
  36. package/build/artifacts/contracts/core/Market/PendleMarketFactoryV7Upg.sol/PendleMarketFactoryV7Upg.json +618 -0
  37. package/build/artifacts/contracts/core/Market/PendleMarketV7.sol/PendleMarketV7.dbg.json +4 -0
  38. package/build/artifacts/contracts/core/Market/PendleMarketV7.sol/PendleMarketV7.json +1157 -0
  39. package/build/artifacts/contracts/core/RewardManager/RewardManager.sol/RewardManager.dbg.json +1 -1
  40. package/build/artifacts/contracts/core/RewardManager/RewardManagerAbstract.sol/RewardManagerAbstract.dbg.json +1 -1
  41. package/build/artifacts/contracts/core/StandardizedYield/PYIndex.sol/PYIndexLib.dbg.json +1 -1
  42. package/build/artifacts/contracts/core/StandardizedYield/PYIndex.sol/PYIndexLib.json +2 -2
  43. package/build/artifacts/contracts/core/StandardizedYield/SYUtils.sol/SYUtils.dbg.json +1 -1
  44. package/build/artifacts/contracts/core/YieldContracts/InterestManagerYT.sol/InterestManagerYT.dbg.json +1 -1
  45. package/build/artifacts/contracts/core/YieldContracts/PendlePrincipalToken.sol/PendlePrincipalToken.dbg.json +1 -1
  46. package/build/artifacts/contracts/core/YieldContracts/PendlePrincipalToken.sol/PendlePrincipalToken.json +2 -2
  47. package/build/artifacts/contracts/core/YieldContracts/PendleYieldContractFactoryUpg.sol/PendleYieldContractFactoryUpg.dbg.json +1 -1
  48. package/build/artifacts/contracts/core/YieldContracts/PendleYieldContractFactoryUpg.sol/PendleYieldContractFactoryUpg.json +2 -2
  49. package/build/artifacts/contracts/core/YieldContracts/PendleYieldToken.sol/PendleYieldToken.dbg.json +1 -1
  50. package/build/artifacts/contracts/core/YieldContracts/PendleYieldToken.sol/PendleYieldToken.json +2 -2
  51. package/build/artifacts/contracts/core/erc20/PendleERC20.sol/PendleERC20.dbg.json +1 -1
  52. package/build/artifacts/contracts/core/libraries/ArrayLib.sol/ArrayLib.dbg.json +1 -1
  53. package/build/artifacts/contracts/core/libraries/BaseSplitCodeFactory.sol/BaseSplitCodeFactory.dbg.json +1 -1
  54. package/build/artifacts/contracts/core/libraries/BaseSplitCodeFactory.sol/CodeDeployer.dbg.json +1 -1
  55. package/build/artifacts/contracts/core/libraries/BoringOwnableUpgradeableV2.sol/BoringOwnableUpgradeableData.dbg.json +1 -1
  56. package/build/artifacts/contracts/core/libraries/BoringOwnableUpgradeableV2.sol/BoringOwnableUpgradeableV2.dbg.json +1 -1
  57. package/build/artifacts/contracts/core/libraries/Errors.sol/Errors.dbg.json +1 -1
  58. package/build/artifacts/contracts/core/libraries/Errors.sol/Errors.json +3 -3
  59. package/build/artifacts/contracts/core/libraries/ExpiryUtilsLib.sol/ExpiryUtils.dbg.json +1 -1
  60. package/build/artifacts/contracts/core/libraries/MiniHelpers.sol/MiniHelpers.dbg.json +1 -1
  61. package/build/artifacts/contracts/core/libraries/StringLib.sol/StringLib.dbg.json +1 -1
  62. package/build/artifacts/contracts/core/libraries/TokenHelper.sol/TokenHelper.dbg.json +1 -1
  63. package/build/artifacts/contracts/core/libraries/math/LogExpMath.sol/LogExpMath.dbg.json +1 -1
  64. package/build/artifacts/contracts/core/libraries/math/PMath.sol/PMath.dbg.json +1 -1
  65. package/build/artifacts/contracts/core/libraries/math/PMath.sol/PMath.json +2 -2
  66. package/build/artifacts/contracts/cross-chain/FixedPricePTAMM.sol/FixedPricePTAMM.dbg.json +1 -1
  67. package/build/artifacts/contracts/cross-chain/FixedPricePTAMM.sol/FixedPricePTAMM.json +2 -2
  68. package/build/artifacts/contracts/cross-chain/deposit-box/DepositBox.sol/DepositBox.dbg.json +4 -0
  69. package/build/artifacts/contracts/cross-chain/deposit-box/DepositBox.sol/DepositBox.json +170 -0
  70. package/build/artifacts/contracts/cross-chain/deposit-box/DepositBoxFactory.sol/DepositBoxFactory.dbg.json +4 -0
  71. package/build/artifacts/contracts/cross-chain/deposit-box/DepositBoxFactory.sol/DepositBoxFactory.json +124 -0
  72. package/build/artifacts/contracts/cross-chain/factory/hub/PendlePTOFTAdapterFactory.sol/PendlePTOFTAdapterFactory.dbg.json +1 -1
  73. package/build/artifacts/contracts/cross-chain/oftImpl/hub/OFTAdapterImpl.sol/OFTAdapterImpl.dbg.json +1 -1
  74. package/build/artifacts/contracts/cross-chain/oftImpl/spoke/PendleBridgedPrincipalToken.sol/PendleBridgedPrincipalToken.dbg.json +1 -1
  75. package/build/artifacts/contracts/cross-chain/swap-hub/PendleCrossChainSwapHub.sol/PendleCrossChainSwapHub.dbg.json +1 -1
  76. package/build/artifacts/contracts/cross-chain/swap-hub/PendleCrossChainSwapHub.sol/PendleCrossChainSwapHub.json +302 -511
  77. package/build/artifacts/contracts/cross-chain/swap-hub/SwapHubBase.sol/SwapHubBase.dbg.json +1 -1
  78. package/build/artifacts/contracts/cross-chain/swap-hub/SwapHubBase.sol/SwapHubBase.json +301 -501
  79. package/build/artifacts/contracts/deprecated/VeDistributor/PendleFeeDistributorV2.sol/PendleFeeDistributorV2.dbg.json +1 -1
  80. package/build/artifacts/contracts/deprecated/VeDistributor/PendleFeeDistributorV2.sol/PendleFeeDistributorV2.json +2 -2
  81. package/build/artifacts/contracts/interfaces/IAddressProvider.sol/IAddressProvider.dbg.json +1 -1
  82. package/build/artifacts/contracts/interfaces/ILPWrapper.sol/ILPWrapper.dbg.json +1 -1
  83. package/build/artifacts/contracts/interfaces/ILayerZeroEndpoint.sol/ILayerZeroEndpoint.dbg.json +1 -1
  84. package/build/artifacts/contracts/interfaces/ILayerZeroReceiver.sol/ILayerZeroReceiver.dbg.json +1 -1
  85. package/build/artifacts/contracts/interfaces/IMarketSweed.sol/IMarketSweed.dbg.json +1 -1
  86. package/build/artifacts/contracts/interfaces/IOwnable.sol/IOwnable.dbg.json +1 -1
  87. package/build/artifacts/contracts/interfaces/IPActionAddRemoveLiqV3.sol/IPActionAddRemoveLiqV3.dbg.json +1 -1
  88. package/build/artifacts/contracts/interfaces/IPActionCallbackV3.sol/IPActionCallbackV3.dbg.json +1 -1
  89. package/build/artifacts/contracts/interfaces/IPActionCrossChain.sol/IPActionCrossChain.dbg.json +1 -1
  90. package/build/artifacts/contracts/interfaces/IPActionInfoStatic.sol/IPActionInfoStatic.dbg.json +1 -1
  91. package/build/artifacts/contracts/interfaces/IPActionMarketAuxStatic.sol/IPActionMarketAuxStatic.dbg.json +1 -1
  92. package/build/artifacts/contracts/interfaces/IPActionMarketCoreStatic.sol/IPActionMarketCoreStatic.dbg.json +1 -1
  93. package/build/artifacts/contracts/interfaces/IPActionMintRedeemStatic.sol/IPActionMintRedeemStatic.dbg.json +1 -1
  94. package/build/artifacts/contracts/interfaces/IPActionMiscV3.sol/IPActionMiscV3.dbg.json +1 -1
  95. package/build/artifacts/contracts/interfaces/IPActionSimple.sol/IPActionSimple.dbg.json +1 -1
  96. package/build/artifacts/contracts/interfaces/IPActionStorageStatic.sol/IPActionStorageStatic.dbg.json +1 -1
  97. package/build/artifacts/contracts/interfaces/IPActionStorageV4.sol/IPActionStorageV4.dbg.json +1 -1
  98. package/build/artifacts/contracts/interfaces/IPActionSwapPTV3.sol/IPActionSwapPTV3.dbg.json +1 -1
  99. package/build/artifacts/contracts/interfaces/IPActionSwapYTV3.sol/IPActionSwapYTV3.dbg.json +1 -1
  100. package/build/artifacts/contracts/interfaces/IPActionVePendleStatic.sol/IPActionVePendleStatic.dbg.json +1 -1
  101. package/build/artifacts/contracts/interfaces/IPAllActionV3.sol/IPAllActionV3.dbg.json +1 -1
  102. package/build/artifacts/contracts/interfaces/IPAllEventsV3.sol/IPActionAddRemoveLiqV3Events.dbg.json +1 -1
  103. package/build/artifacts/contracts/interfaces/IPAllEventsV3.sol/IPActionMiscV3Events.dbg.json +1 -1
  104. package/build/artifacts/contracts/interfaces/IPAllEventsV3.sol/IPActionStorageEvents.dbg.json +1 -1
  105. package/build/artifacts/contracts/interfaces/IPAllEventsV3.sol/IPActionSwapPTV3Events.dbg.json +1 -1
  106. package/build/artifacts/contracts/interfaces/IPAllEventsV3.sol/IPActionSwapYTV3Events.dbg.json +1 -1
  107. package/build/artifacts/contracts/interfaces/IPAllEventsV3.sol/IPAllEventsV3.dbg.json +1 -1
  108. package/build/artifacts/contracts/interfaces/IPBridgedPrincipalToken.sol/IPBridgedPrincipalToken.dbg.json +1 -1
  109. package/build/artifacts/contracts/interfaces/IPChainlinkOracle.sol/IPChainlinkOracle.dbg.json +1 -1
  110. package/build/artifacts/contracts/interfaces/IPChainlinkOracleEssential.sol/IPChainlinkOracleEssential.dbg.json +1 -1
  111. package/build/artifacts/contracts/interfaces/IPChainlinkOracleFactory.sol/IPChainlinkOracleFactory.dbg.json +1 -1
  112. package/build/artifacts/contracts/interfaces/IPChainlinkOracleWithQuote.sol/IPChainlinkOracleWithQuote.dbg.json +1 -1
  113. package/build/artifacts/contracts/interfaces/IPCommonPoolDeployHelperV2.sol/IPCommonPoolDeployHelperV2.dbg.json +1 -1
  114. package/build/artifacts/contracts/interfaces/IPCommonSYFactory.sol/IPCommonSYFactory.dbg.json +1 -1
  115. package/build/artifacts/contracts/interfaces/IPCrossChainSwapHub.sol/IPCrossChainSwapHub.dbg.json +1 -1
  116. package/build/artifacts/contracts/interfaces/IPCrossChainSwapHub.sol/IPCrossChainSwapHub.json +265 -478
  117. package/build/artifacts/contracts/interfaces/IPDepositBox.sol/IPDepositBox.dbg.json +1 -1
  118. package/build/artifacts/contracts/interfaces/IPDepositBoxFactory.sol/IPDepositBoxFactory.dbg.json +4 -0
  119. package/build/artifacts/contracts/interfaces/IPDepositBoxFactory.sol/IPDepositBoxFactory.json +108 -0
  120. package/build/artifacts/contracts/interfaces/IPExchangeRateOracle.sol/IPExchangeRateOracle.dbg.json +1 -1
  121. package/build/artifacts/contracts/interfaces/IPExchangeRateOracleApp.sol/IPExchangeRateOracleApp.dbg.json +1 -1
  122. package/build/artifacts/contracts/interfaces/IPFeeDistributor.sol/IPFeeDistributor.dbg.json +1 -1
  123. package/build/artifacts/contracts/interfaces/IPFeeDistributorV2.sol/IPFeeDistributorV2.dbg.json +1 -1
  124. package/build/artifacts/contracts/interfaces/IPFixedPricePTAMM.sol/IPFixedPricePTAMM.dbg.json +1 -1
  125. package/build/artifacts/contracts/interfaces/IPFixedPricePTAMM.sol/IPFixedPricePTAMMSwapCallback.dbg.json +1 -1
  126. package/build/artifacts/contracts/interfaces/IPGauge.sol/IPGauge.dbg.json +1 -1
  127. package/build/artifacts/contracts/interfaces/IPGauge.sol/IPGauge.json +0 -51
  128. package/build/artifacts/contracts/interfaces/IPGaugeController.sol/IPGaugeController.dbg.json +1 -1
  129. package/build/artifacts/contracts/interfaces/IPGaugeController.sol/IPGaugeController.json +102 -11
  130. package/build/artifacts/contracts/interfaces/IPGovernanceProxy.sol/IPGovernanceProxy.dbg.json +1 -1
  131. package/build/artifacts/contracts/interfaces/IPInterestManagerYT.sol/IPInterestManagerYT.dbg.json +1 -1
  132. package/build/artifacts/contracts/interfaces/IPInterestManagerYTV2.sol/IPInterestManagerYTV2.dbg.json +1 -1
  133. package/build/artifacts/contracts/interfaces/IPLPWrapperFactory.sol/IPLPWrapperFactory.dbg.json +1 -1
  134. package/build/artifacts/contracts/interfaces/IPLimitRouter.sol/IPLimitOrderType.dbg.json +1 -1
  135. package/build/artifacts/contracts/interfaces/IPLimitRouter.sol/IPLimitRouter.dbg.json +1 -1
  136. package/build/artifacts/contracts/interfaces/IPLimitRouter.sol/IPLimitRouterCallback.dbg.json +1 -1
  137. package/build/artifacts/contracts/interfaces/IPMarket.sol/IPMarket.dbg.json +1 -1
  138. package/build/artifacts/contracts/interfaces/IPMarket.sol/IPMarket.json +0 -19
  139. package/build/artifacts/contracts/interfaces/IPMarketFactory.sol/IPMarketFactory.dbg.json +1 -1
  140. package/build/artifacts/contracts/interfaces/IPMarketSwapCallback.sol/IPMarketSwapCallback.dbg.json +1 -1
  141. package/build/artifacts/contracts/interfaces/IPMerkleDistributor.sol/IPMerkleDistributor.dbg.json +1 -1
  142. package/build/artifacts/contracts/interfaces/IPMiniDiamond.sol/IPMiniDiamond.dbg.json +1 -1
  143. package/build/artifacts/contracts/interfaces/IPMsgReceiverApp.sol/IPMsgReceiverApp.dbg.json +1 -1
  144. package/build/artifacts/contracts/interfaces/IPMsgSendEndpoint.sol/IPMsgSendEndpoint.dbg.json +1 -1
  145. package/build/artifacts/contracts/interfaces/IPMultiTokenMerkleDistributor.sol/IPMultiTokenMerkleDistributor.dbg.json +1 -1
  146. package/build/artifacts/contracts/interfaces/IPOffchainStorage.sol/IPOffchainStorage.dbg.json +1 -1
  147. package/build/artifacts/contracts/interfaces/IPOracleForSy.sol/IPOracleForSy.dbg.json +1 -1
  148. package/build/artifacts/contracts/interfaces/IPPTOFTAdapterFactory.sol/IPPTOFTAdapterFactory.dbg.json +1 -1
  149. package/build/artifacts/contracts/interfaces/IPPYLpOracle.sol/IPPYLpOracle.dbg.json +1 -1
  150. package/build/artifacts/contracts/interfaces/IPPausingInterface.sol/IPPausingInterface.dbg.json +1 -1
  151. package/build/artifacts/contracts/interfaces/IPPoolDeployHelperV2.sol/IPPoolDeployHelperV2.dbg.json +1 -1
  152. package/build/artifacts/contracts/interfaces/IPPriceFeed.sol/IPPriceFeed.dbg.json +1 -1
  153. package/build/artifacts/contracts/interfaces/IPPrincipalToken.sol/IPPrincipalToken.dbg.json +1 -1
  154. package/build/artifacts/contracts/interfaces/IPReflector.sol/IPReflector.dbg.json +1 -1
  155. package/build/artifacts/contracts/interfaces/IPRouterStatic.sol/IPRouterStatic.dbg.json +1 -1
  156. package/build/artifacts/contracts/interfaces/IPStakedPendle.sol/IPStakedPendle.dbg.json +4 -0
  157. package/build/artifacts/contracts/interfaces/IPStakedPendle.sol/IPStakedPendle.json +351 -0
  158. package/build/artifacts/contracts/interfaces/IPTokenWithSupplyCap.sol/IPTokenWithSupplyCap.dbg.json +1 -1
  159. package/build/artifacts/contracts/interfaces/IPVeToken.sol/IPVeToken.dbg.json +1 -1
  160. package/build/artifacts/contracts/interfaces/IPVotingEscrowMainchain.sol/IPVotingEscrowMainchain.dbg.json +1 -1
  161. package/build/artifacts/contracts/interfaces/IPYieldContractFactory.sol/IPYieldContractFactory.dbg.json +1 -1
  162. package/build/artifacts/contracts/interfaces/IPYieldToken.sol/IPYieldToken.dbg.json +1 -1
  163. package/build/artifacts/contracts/interfaces/IPYieldTokenV2.sol/IPYieldTokenV2.dbg.json +1 -1
  164. package/build/artifacts/contracts/interfaces/IRedstonePriceFeed.sol/IRedstonePriceFeed.dbg.json +1 -1
  165. package/build/artifacts/contracts/interfaces/IRewardManager.sol/IRewardManager.dbg.json +1 -1
  166. package/build/artifacts/contracts/interfaces/IStandardizedYield.sol/IStandardizedYield.dbg.json +1 -1
  167. package/build/artifacts/contracts/interfaces/IWETH.sol/IWETH.dbg.json +1 -1
  168. package/build/artifacts/contracts/interfaces/IWstETH.sol/IWstETH.dbg.json +1 -1
  169. package/build/artifacts/contracts/limit/LimitMathCore.sol/LimitMathCore.dbg.json +1 -1
  170. package/build/artifacts/contracts/limit/LimitMathCore.sol/LimitMathCore.json +2 -2
  171. package/build/artifacts/contracts/limit/LimitRouterBase.sol/LimitRouterBase.dbg.json +1 -1
  172. package/build/artifacts/contracts/limit/PendleLimitRouter.sol/PendleLimitRouter.dbg.json +1 -1
  173. package/build/artifacts/contracts/limit/PendleLimitRouter.sol/PendleLimitRouter.json +2 -2
  174. package/build/artifacts/contracts/limit/helpers/NonceManager.sol/NonceManager.dbg.json +1 -1
  175. package/build/artifacts/contracts/offchain-helpers/AddressProvider.sol/AddressProvider.dbg.json +1 -1
  176. package/build/artifacts/contracts/offchain-helpers/AutomateReady.sol/AutomateReady.dbg.json +1 -1
  177. package/build/artifacts/contracts/offchain-helpers/AutomateReady.sol/IAutomate.dbg.json +1 -1
  178. package/build/artifacts/contracts/offchain-helpers/AutomateReady.sol/IOpsProxyFactory.dbg.json +1 -1
  179. package/build/artifacts/contracts/offchain-helpers/AutomateReady.sol/ITaskTreasuryUpgradable.dbg.json +1 -1
  180. package/build/artifacts/contracts/offchain-helpers/BalanceReader.sol/BalanceReader.dbg.json +1 -1
  181. package/build/artifacts/contracts/offchain-helpers/BalanceReader.sol/BalanceReader.json +2 -2
  182. package/build/artifacts/contracts/offchain-helpers/BalanceReader.sol/ILegacyMarket.dbg.json +4 -0
  183. package/build/artifacts/contracts/offchain-helpers/BalanceReader.sol/ILegacyMarket.json +30 -0
  184. package/build/artifacts/contracts/offchain-helpers/BaseSplitCodeFactoryContract.sol/BaseSplitCodeFactoryContract.dbg.json +1 -1
  185. package/build/artifacts/contracts/offchain-helpers/BytesLib.sol/BytesLib.dbg.json +1 -1
  186. package/build/artifacts/contracts/offchain-helpers/EmptyUUPS.sol/EmptyUUPS.dbg.json +1 -1
  187. package/build/artifacts/contracts/offchain-helpers/ExpiredLpPtRedeemer.sol/ExpiredLpPtRedeemer.dbg.json +1 -1
  188. package/build/artifacts/contracts/offchain-helpers/ExpiredLpPtRedeemer.sol/ExpiredLpPtRedeemer.json +2 -2
  189. package/build/artifacts/contracts/offchain-helpers/LegacyNFTHelper.sol/LegacyNFTHelper.dbg.json +1 -1
  190. package/build/artifacts/contracts/offchain-helpers/LegacyNFTHelper.sol/StarNFTV1.dbg.json +1 -1
  191. package/build/artifacts/contracts/offchain-helpers/LimitBackendHelperV2.sol/LimitBackendHelperV2.dbg.json +1 -1
  192. package/build/artifacts/contracts/offchain-helpers/LimitBackendHelperV2.sol/LimitBackendHelperV2.json +2 -2
  193. package/build/artifacts/contracts/offchain-helpers/MarketSweed.sol/MarketSweed.dbg.json +1 -1
  194. package/build/artifacts/contracts/offchain-helpers/MarketSweed.sol/MarketSweed.json +2 -2
  195. package/build/artifacts/contracts/offchain-helpers/Multicall2.sol/Multicall2.dbg.json +1 -1
  196. package/build/artifacts/contracts/offchain-helpers/PendleAPIFeeDepositor.sol/PendleAPIFeeDepositor.dbg.json +1 -1
  197. package/build/artifacts/contracts/offchain-helpers/PendleAPIFeeDepositor.sol/PendleAPIFeeDepositor.json +2 -2
  198. package/build/artifacts/contracts/offchain-helpers/PendleExchangeRateOracle.sol/PendleExchangeRateOracle.dbg.json +1 -1
  199. package/build/artifacts/contracts/offchain-helpers/PendleExchangeRateOracle.sol/PendleExchangeRateOracle.json +2 -2
  200. package/build/artifacts/contracts/offchain-helpers/PendleFeeSetter.sol/PendleFeeSetter.dbg.json +1 -1
  201. package/build/artifacts/contracts/offchain-helpers/PendleFeeSetter.sol/PendleFeeSetter.json +2 -2
  202. package/build/artifacts/contracts/offchain-helpers/PendleGovernanceProxy.sol/PendleGovernanceProxy.dbg.json +1 -1
  203. package/build/artifacts/contracts/offchain-helpers/PendleLPWrapper.sol/PendleLPWrapper.dbg.json +1 -1
  204. package/build/artifacts/contracts/offchain-helpers/PendleLPWrapper.sol/PendleLPWrapper.json +2 -2
  205. package/build/artifacts/contracts/offchain-helpers/PendleLPWrapperFactory.sol/PendleLPWrapperFactory.dbg.json +1 -1
  206. package/build/artifacts/contracts/offchain-helpers/PendleLPWrapperFactory.sol/PendleLPWrapperFactory.json +2 -2
  207. package/build/artifacts/contracts/offchain-helpers/PendleMerkleDepositor.sol/PendleMerkleDepositor.dbg.json +1 -1
  208. package/build/artifacts/contracts/offchain-helpers/PendleMerkleDepositor.sol/PendleMerkleDepositor.json +2 -2
  209. package/build/artifacts/contracts/offchain-helpers/PendleMulticallOwnerV1.sol/PendleMulticallOwnerV1.dbg.json +1 -1
  210. package/build/artifacts/contracts/offchain-helpers/PendleMulticallV1.sol/PendleMulticallV1.dbg.json +1 -1
  211. package/build/artifacts/contracts/offchain-helpers/PendleMulticallV2.sol/PendleMulticallV2.dbg.json +1 -1
  212. package/build/artifacts/contracts/offchain-helpers/PendleOffchainStorage.sol/PendleOffchainStorage.dbg.json +1 -1
  213. package/build/artifacts/contracts/offchain-helpers/PendleWstETHPriceFeed.sol/PendleWstETHPriceFeed.dbg.json +1 -1
  214. package/build/artifacts/contracts/offchain-helpers/SimulateHelper.sol/SimulateHelper.dbg.json +1 -1
  215. package/build/artifacts/contracts/offchain-helpers/SimulateHelper.sol/SimulateHelper.json +2 -2
  216. package/build/artifacts/contracts/offchain-helpers/SupplyCapReader.sol/IPossibleSupplyCapInterface.dbg.json +1 -1
  217. package/build/artifacts/contracts/offchain-helpers/SupplyCapReader.sol/SupplyCapReader.dbg.json +1 -1
  218. package/build/artifacts/contracts/offchain-helpers/deploy/PendleCommonPoolDeployHelperV2.sol/PendleCommonPoolDeployHelperV2.dbg.json +1 -1
  219. package/build/artifacts/contracts/offchain-helpers/deploy/PendleCommonPoolDeployHelperV2.sol/PendleCommonPoolDeployHelperV2.json +2 -2
  220. package/build/artifacts/contracts/offchain-helpers/deploy/PendleCommonSYFactory.sol/PendleCommonSYFactory.dbg.json +1 -1
  221. package/build/artifacts/contracts/offchain-helpers/deploy/PendlePoolDeployHelper.sol/PendlePoolDeployHelper.dbg.json +1 -1
  222. package/build/artifacts/contracts/offchain-helpers/deploy/PendlePoolDeployHelper.sol/PendlePoolDeployHelper.json +2 -2
  223. package/build/artifacts/contracts/offchain-helpers/deploy/PendlePoolDeployHelperV2.sol/PendlePoolDeployHelperV2.dbg.json +1 -1
  224. package/build/artifacts/contracts/offchain-helpers/deploy/PendlePoolDeployHelperV2.sol/PendlePoolDeployHelperV2.json +2 -2
  225. package/build/artifacts/contracts/offchain-helpers/deploy/lib/MarketDeployLib.sol/MarketDeployLib.dbg.json +1 -1
  226. package/build/artifacts/contracts/offchain-helpers/deploy/lib/MarketDeployLib.sol/MarketDeployLib.json +2 -2
  227. package/build/artifacts/contracts/offchain-helpers/errors/SDKErrorsDirectory.sol/SDKErrorsDirectory.dbg.json +1 -1
  228. package/build/artifacts/contracts/offchain-helpers/router-static/PendleRouterStatic.sol/PendleRouterStatic.dbg.json +1 -1
  229. package/build/artifacts/contracts/offchain-helpers/router-static/PendleRouterStatic.sol/PendleRouterStatic.json +2 -2
  230. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionInfoStatic.sol/ActionInfoStatic.dbg.json +1 -1
  231. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionInfoStatic.sol/ActionInfoStatic.json +2 -2
  232. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionMarketAuxStatic.sol/ActionMarketAuxStatic.dbg.json +1 -1
  233. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionMarketAuxStatic.sol/ActionMarketAuxStatic.json +2 -2
  234. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionMarketCoreStatic.sol/ActionMarketCoreStatic.dbg.json +1 -1
  235. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionMarketCoreStatic.sol/ActionMarketCoreStatic.json +2 -2
  236. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionMintRedeemStatic.sol/ActionMintRedeemStatic.dbg.json +1 -1
  237. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionMintRedeemStatic.sol/ActionMintRedeemStatic.json +2 -2
  238. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionStorageStatic.sol/ActionStorageStatic.dbg.json +1 -1
  239. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionStorageStatic.sol/ActionStorageStatic.json +2 -2
  240. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionVePendleStatic.sol/ActionVePendleStatic.dbg.json +1 -1
  241. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionVePendleStatic.sol/ActionVePendleStatic.json +2 -2
  242. package/build/artifacts/contracts/offchain-helpers/router-static/base/MarketApproxLibV1.sol/MarketApproxPtInLibV1.dbg.json +1 -1
  243. package/build/artifacts/contracts/offchain-helpers/router-static/base/MarketApproxLibV1.sol/MarketApproxPtInLibV1.json +2 -2
  244. package/build/artifacts/contracts/offchain-helpers/router-static/base/MarketApproxLibV1.sol/MarketApproxPtOutLibV1.dbg.json +1 -1
  245. package/build/artifacts/contracts/offchain-helpers/router-static/base/MarketApproxLibV1.sol/MarketApproxPtOutLibV1.json +2 -2
  246. package/build/artifacts/contracts/offchain-helpers/router-static/base/StorageLayout.sol/StorageLayout.dbg.json +1 -1
  247. package/build/artifacts/contracts/oracles/CrossChainOracle/base/PendleCrossChainOracleBaseApp_Init.sol/PendleCrossChainOracleBaseApp_Init.dbg.json +1 -1
  248. package/build/artifacts/contracts/oracles/CrossChainOracle/exchangeRate/PendleExchangeRateOracleApp.sol/PendleExchangeRateOracleApp.dbg.json +1 -1
  249. package/build/artifacts/contracts/oracles/CrossChainOracle/exchangeRate/PendleExchangeRateOracleApp.sol/PendleExchangeRateOracleApp.json +2 -2
  250. package/build/artifacts/contracts/oracles/CrossChainOracle/exchangeRate/PendleExchangeRateOracleV2.sol/PendleExchangeRateOracleV2.dbg.json +1 -1
  251. package/build/artifacts/contracts/oracles/CrossChainOracle/libraries/ExchangeRateMsgCodec.sol/ExchangeRateMsgCodec.dbg.json +1 -1
  252. package/build/artifacts/contracts/oracles/CrossChainOracle/libraries/ExchangeRateMsgCodec.sol/ExchangeRateMsgCodec.json +2 -2
  253. package/build/artifacts/contracts/oracles/PtYtLpOracle/PendleLpOracleLib.sol/PendleLpOracleLib.dbg.json +1 -1
  254. package/build/artifacts/contracts/oracles/PtYtLpOracle/PendleLpOracleLib.sol/PendleLpOracleLib.json +2 -2
  255. package/build/artifacts/contracts/oracles/PtYtLpOracle/PendlePYLpOracle.sol/PendlePYLpOracle.dbg.json +1 -1
  256. package/build/artifacts/contracts/oracles/PtYtLpOracle/PendlePYLpOracle.sol/PendlePYLpOracle.json +2 -2
  257. package/build/artifacts/contracts/oracles/PtYtLpOracle/PendlePYOracleLib.sol/PendlePYOracleLib.dbg.json +1 -1
  258. package/build/artifacts/contracts/oracles/PtYtLpOracle/PendlePYOracleLib.sol/PendlePYOracleLib.json +2 -2
  259. package/build/artifacts/contracts/oracles/PtYtLpOracle/chainlink/PendleChainlinkOracle.sol/PendleChainlinkOracle.dbg.json +1 -1
  260. package/build/artifacts/contracts/oracles/PtYtLpOracle/chainlink/PendleChainlinkOracle.sol/PendleChainlinkOracle.json +2 -2
  261. package/build/artifacts/contracts/oracles/PtYtLpOracle/chainlink/PendleChainlinkOracleFactory.sol/PendleChainlinkOracleFactory.dbg.json +1 -1
  262. package/build/artifacts/contracts/oracles/PtYtLpOracle/chainlink/PendleChainlinkOracleFactory.sol/PendleChainlinkOracleFactory.json +2 -2
  263. package/build/artifacts/contracts/oracles/PtYtLpOracle/chainlink/PendleChainlinkOracleWithQuote.sol/PendleChainlinkOracleWithQuote.dbg.json +1 -1
  264. package/build/artifacts/contracts/oracles/PtYtLpOracle/chainlink/PendleChainlinkOracleWithQuote.sol/PendleChainlinkOracleWithQuote.json +2 -2
  265. package/build/artifacts/contracts/oracles/PtYtLpOracle/samples/BoringLpSeller.sol/BoringLpSeller.dbg.json +1 -1
  266. package/build/artifacts/contracts/oracles/PtYtLpOracle/samples/BoringPYUsdChainlinkAssetOracle.sol/BoringPYUsdChainlinkAssetOracle.dbg.json +1 -1
  267. package/build/artifacts/contracts/oracles/PtYtLpOracle/samples/BoringPYUsdChainlinkAssetOracle.sol/BoringPYUsdChainlinkAssetOracle.json +2 -2
  268. package/build/artifacts/contracts/oracles/PtYtLpOracle/samples/BoringPYUsdChainlinkSYOracle.sol/BoringPYUsdChainlinkSYOracle.dbg.json +1 -1
  269. package/build/artifacts/contracts/oracles/PtYtLpOracle/samples/BoringPYUsdChainlinkSYOracle.sol/BoringPYUsdChainlinkSYOracle.json +2 -2
  270. package/build/artifacts/contracts/oracles/PtYtLpOracle/samples/BoringPtSeller.sol/BoringPtSeller.dbg.json +1 -1
  271. package/build/artifacts/contracts/oracles/StatelessWrapper/PendleLinearDiscountOracleWrapper.sol/PendleLinearDiscountOracleWrapper.dbg.json +1 -1
  272. package/build/artifacts/contracts/oracles/StatelessWrapper/PendleSparkLinearDiscountOracleFactoryWrapper.sol/PendleSparkLinearDiscountOracleFactoryWrapper.dbg.json +1 -1
  273. package/build/artifacts/contracts/oracles/StatelessWrapper/PendleSparkLinearDiscountOracleFactoryWrapper.sol/PendleSparkLinearDiscountOracleFactoryWrapper.json +2 -2
  274. package/build/artifacts/contracts/oracles/internal/PendleBoringOneracle.sol/PendleBoringOneracle.dbg.json +1 -1
  275. package/build/artifacts/contracts/oracles/internal/PendleBoringOneracle.sol/PendleBoringOneracle.json +2 -2
  276. package/build/artifacts/contracts/oracles/internal/PendleBoringSolvBTCOneracle.sol/PendleBoringSolvBTCOneracle.dbg.json +1 -1
  277. package/build/artifacts/contracts/oracles/internal/PendleBoringSolvBTCOneracle.sol/PendleBoringSolvBTCOneracle.json +2 -2
  278. package/build/artifacts/contracts/oracles/internal/PendleLpLinearDiscountOracle.sol/LPExpiry.dbg.json +1 -1
  279. package/build/artifacts/contracts/oracles/internal/PendleLpLinearDiscountOracle.sol/PendleLpLinearDiscountOracle.dbg.json +1 -1
  280. package/build/artifacts/contracts/oracles/internal/PendleLpLinearDiscountOracleFactory.sol/PendleLpLinearDiscountOracleFactory.dbg.json +1 -1
  281. package/build/artifacts/contracts/oracles/internal/PendleRedStoneRateOracleAdapter.sol/PendleRedStoneRateOracleAdapter.dbg.json +1 -1
  282. package/build/artifacts/contracts/oracles/internal/PendleRedStoneRateOracleAdapter.sol/PendleRedStoneRateOracleAdapter.json +2 -2
  283. package/build/artifacts/contracts/oracles/internal/PendleSparkLinearDiscountOracle.sol/PTExpiry.dbg.json +1 -1
  284. package/build/artifacts/contracts/oracles/internal/PendleSparkLinearDiscountOracle.sol/PendleSparkLinearDiscountOracle.dbg.json +1 -1
  285. package/build/artifacts/contracts/oracles/internal/PendleSparkLinearDiscountOracleFactory.sol/PendleSparkLinearDiscountOracleFactory.dbg.json +1 -1
  286. package/build/artifacts/contracts/oracles/internal/PendleSparkLinearDiscountOracleFactory.sol/PendleSparkLinearDiscountOracleFactory.json +2 -2
  287. package/build/artifacts/contracts/router/ActionAddRemoveLiqV3.sol/ActionAddRemoveLiqV3.dbg.json +1 -1
  288. package/build/artifacts/contracts/router/ActionAddRemoveLiqV3.sol/ActionAddRemoveLiqV3.json +2 -2
  289. package/build/artifacts/contracts/router/ActionCallbackV3.sol/ActionCallbackV3.dbg.json +1 -1
  290. package/build/artifacts/contracts/router/ActionCallbackV3.sol/ActionCallbackV3.json +2 -2
  291. package/build/artifacts/contracts/router/ActionCrossChain.sol/ActionCrossChain.dbg.json +1 -1
  292. package/build/artifacts/contracts/router/ActionCrossChain.sol/ActionCrossChain.json +2 -2
  293. package/build/artifacts/contracts/router/ActionMiscV3.sol/ActionMiscV3.dbg.json +1 -1
  294. package/build/artifacts/contracts/router/ActionMiscV3.sol/ActionMiscV3.json +2 -2
  295. package/build/artifacts/contracts/router/ActionSimple.sol/ActionSimple.dbg.json +1 -1
  296. package/build/artifacts/contracts/router/ActionSimple.sol/ActionSimple.json +2 -2
  297. package/build/artifacts/contracts/router/ActionStorageV4.sol/ActionStorageV4.dbg.json +1 -1
  298. package/build/artifacts/contracts/router/ActionStorageV4.sol/ActionStorageV4.json +2 -2
  299. package/build/artifacts/contracts/router/ActionSwapPTV3.sol/ActionSwapPTV3.dbg.json +1 -1
  300. package/build/artifacts/contracts/router/ActionSwapPTV3.sol/ActionSwapPTV3.json +2 -2
  301. package/build/artifacts/contracts/router/ActionSwapYTV3.sol/ActionSwapYTV3.dbg.json +1 -1
  302. package/build/artifacts/contracts/router/ActionSwapYTV3.sol/ActionSwapYTV3.json +2 -2
  303. package/build/artifacts/contracts/router/PendleRouterV4.sol/PendleRouterV4.dbg.json +1 -1
  304. package/build/artifacts/contracts/router/PendleRouterV4.sol/PendleRouterV4.json +2 -2
  305. package/build/artifacts/contracts/router/Reflector.sol/Reflector.dbg.json +1 -1
  306. package/build/artifacts/contracts/router/Reflector.sol/Reflector.json +2 -2
  307. package/build/artifacts/contracts/router/RouterStorage.sol/RouterStorage.dbg.json +1 -1
  308. package/build/artifacts/contracts/router/base/ActionBase.sol/ActionBase.dbg.json +1 -1
  309. package/build/artifacts/contracts/router/base/ActionDelegateBase.sol/ActionDelegateBase.dbg.json +1 -1
  310. package/build/artifacts/contracts/router/base/ActionDelegateBase.sol/ActionDelegateBase.json +2 -2
  311. package/build/artifacts/contracts/router/base/CallbackHelper.sol/CallbackHelper.dbg.json +1 -1
  312. package/build/artifacts/contracts/router/math/ApproxStateLib.sol/ApproxStateLib.dbg.json +1 -1
  313. package/build/artifacts/contracts/router/math/ApproxStateLib.sol/ApproxStateLib.json +2 -2
  314. package/build/artifacts/contracts/router/math/MarketApproxEstimateLib.sol/MarketApproxEstimateLib.dbg.json +1 -1
  315. package/build/artifacts/contracts/router/math/MarketApproxEstimateLib.sol/MarketApproxEstimateLib.json +2 -2
  316. package/build/artifacts/contracts/router/math/MarketApproxLibOnchain.sol/MarketApproxPtInLibOnchain.dbg.json +1 -1
  317. package/build/artifacts/contracts/router/math/MarketApproxLibOnchain.sol/MarketApproxPtInLibOnchain.json +2 -2
  318. package/build/artifacts/contracts/router/math/MarketApproxLibOnchain.sol/MarketApproxPtOutLibOnchain.dbg.json +1 -1
  319. package/build/artifacts/contracts/router/math/MarketApproxLibOnchain.sol/MarketApproxPtOutLibOnchain.json +2 -2
  320. package/build/artifacts/contracts/router/math/MarketApproxLibV2.sol/MarketApproxPtInLibV2.dbg.json +1 -1
  321. package/build/artifacts/contracts/router/math/MarketApproxLibV2.sol/MarketApproxPtInLibV2.json +2 -2
  322. package/build/artifacts/contracts/router/math/MarketApproxLibV2.sol/MarketApproxPtOutLibV2.dbg.json +1 -1
  323. package/build/artifacts/contracts/router/math/MarketApproxLibV2.sol/MarketApproxPtOutLibV2.json +2 -2
  324. package/build/artifacts/contracts/router/swap-aggregator/IPSwapAggregator.sol/IPSwapAggregator.dbg.json +1 -1
  325. package/build/artifacts/contracts/router/swap-aggregator/OKXScaleHelper.sol/IOKXDexRouter.dbg.json +1 -1
  326. package/build/artifacts/contracts/router/swap-aggregator/OKXScaleHelper.sol/OKXScaleHelper.dbg.json +1 -1
  327. package/build/artifacts/contracts/router/swap-aggregator/ParaswapScaleHelper.sol/IAugustusV6.dbg.json +1 -1
  328. package/build/artifacts/contracts/router/swap-aggregator/ParaswapScaleHelper.sol/ParaswapScaleHelper.dbg.json +1 -1
  329. package/build/artifacts/contracts/router/swap-aggregator/PendleSwap.sol/IKyberScalingHelper.dbg.json +1 -1
  330. package/build/artifacts/contracts/router/swap-aggregator/PendleSwap.sol/IOdosRouterV2.dbg.json +1 -1
  331. package/build/artifacts/contracts/router/swap-aggregator/PendleSwap.sol/PendleSwap.dbg.json +1 -1
  332. package/build/artifacts/contracts/router/swap-aggregator/PendleSwap.sol/PendleSwap.json +2 -2
  333. package/contracts/LiquidityMining/GaugeController/PendleGaugeControllerUpg.sol +122 -0
  334. package/contracts/LiquidityMining/sPendle/StakedPendle.sol +129 -0
  335. package/contracts/core/Market/PendleGauge.sol +1 -76
  336. package/contracts/core/Market/{PendleMarketFactoryV6Upg.sol → PendleMarketFactoryV7Upg.sol} +3 -6
  337. package/contracts/core/Market/{PendleMarketV6.sol → PendleMarketV7.sol} +16 -16
  338. package/contracts/core/libraries/Errors.sol +1 -1
  339. package/contracts/core/libraries/TokenHelper.sol +6 -2
  340. package/contracts/core/libraries/math/PMath.sol +5 -0
  341. package/contracts/cross-chain/deposit-box/DepositBoxFactory.sol +44 -0
  342. package/contracts/cross-chain/swap-hub/PendleCrossChainSwapHub.sol +37 -114
  343. package/contracts/cross-chain/swap-hub/SwapHubBase.sol +82 -172
  344. package/contracts/interfaces/IPCrossChainSwapHub.sol +34 -73
  345. package/contracts/interfaces/IPDepositBoxFactory.sol +19 -0
  346. package/contracts/interfaces/IPGauge.sol +0 -6
  347. package/contracts/interfaces/IPGaugeController.sol +20 -3
  348. package/contracts/interfaces/IPMarket.sol +12 -0
  349. package/contracts/interfaces/IPStakedPendle.sol +69 -0
  350. package/contracts/offchain-helpers/BalanceReader.sol +11 -1
  351. package/contracts/offchain-helpers/MarketSweed.sol +46 -54
  352. package/contracts/offchain-helpers/PendleMerkleDepositor.sol +5 -6
  353. package/contracts/router/ActionCrossChain.sol +14 -18
  354. package/contracts/router/Reflector.sol +19 -2
  355. package/deployments/1-core.json +3 -2
  356. package/deployments/10-core.json +1 -1
  357. package/deployments/130-core.json +2 -1
  358. package/deployments/146-core.json +1 -1
  359. package/deployments/42161-core.json +1 -1
  360. package/deployments/5000-core.json +1 -1
  361. package/deployments/56-core.json +1 -1
  362. package/deployments/80094-core.json +1 -1
  363. package/deployments/8453-core.json +1 -1
  364. package/deployments/9745-core.json +4 -3
  365. package/deployments/999-core.json +6 -6
  366. package/package.json +1 -1
  367. package/typechain-types/DepositBoxFactory.ts +226 -0
  368. package/typechain-types/ERC20Upgradeable.ts +426 -0
  369. package/typechain-types/IERC20MetadataUpgradeable.ts +339 -0
  370. package/typechain-types/IERC20Upgradeable.ts +300 -0
  371. package/typechain-types/ILegacyMarket.ts +93 -0
  372. package/typechain-types/IPCrossChainSwapHub.ts +183 -409
  373. package/typechain-types/IPDepositBoxFactory.ts +226 -0
  374. package/typechain-types/IPGauge.ts +7 -81
  375. package/typechain-types/IPGaugeController.ts +168 -38
  376. package/typechain-types/IPMarket.ts +0 -19
  377. package/typechain-types/IPStakedPendle.ts +558 -0
  378. package/typechain-types/PendleCrossChainSwapHub.ts +226 -434
  379. package/typechain-types/PendleGauge.ts +0 -63
  380. package/typechain-types/PendleGaugeControllerUpg.ts +686 -0
  381. package/typechain-types/PendleMarketFactoryV7Upg.ts +760 -0
  382. package/typechain-types/PendleMarketV7.ts +1229 -0
  383. package/typechain-types/StakedPendle.ts +1058 -0
  384. package/typechain-types/SwapHubBase.ts +225 -433
  385. package/typechain-types/factories/ActionAddRemoveLiqV3__factory.ts +1 -1
  386. package/typechain-types/factories/ActionCallbackV3__factory.ts +1 -1
  387. package/typechain-types/factories/ActionCrossChain__factory.ts +1 -1
  388. package/typechain-types/factories/ActionInfoStatic__factory.ts +1 -1
  389. package/typechain-types/factories/ActionMarketAuxStatic__factory.ts +1 -1
  390. package/typechain-types/factories/ActionMarketCoreStatic__factory.ts +1 -1
  391. package/typechain-types/factories/ActionMintRedeemStatic__factory.ts +1 -1
  392. package/typechain-types/factories/ActionMiscV3__factory.ts +1 -1
  393. package/typechain-types/factories/ActionSimple__factory.ts +1 -1
  394. package/typechain-types/factories/ActionStorageStatic__factory.ts +1 -1
  395. package/typechain-types/factories/ActionStorageV4__factory.ts +1 -1
  396. package/typechain-types/factories/ActionSwapPTV3__factory.ts +1 -1
  397. package/typechain-types/factories/ActionSwapYTV3__factory.ts +1 -1
  398. package/typechain-types/factories/ActionVePendleStatic__factory.ts +1 -1
  399. package/typechain-types/factories/BalanceReader__factory.ts +1 -1
  400. package/typechain-types/factories/BoringPYUsdChainlinkAssetOracle__factory.ts +1 -1
  401. package/typechain-types/factories/BoringPYUsdChainlinkSYOracle__factory.ts +1 -1
  402. package/typechain-types/factories/Broadcaster__factory.ts +1 -1
  403. package/typechain-types/factories/DepositBoxFactory__factory.ts +189 -0
  404. package/typechain-types/factories/DepositBox__factory.ts +1 -1
  405. package/typechain-types/factories/ERC20Upgradeable__factory.ts +347 -0
  406. package/typechain-types/factories/Errors__factory.ts +2 -2
  407. package/typechain-types/factories/ExchangeRateMsgCodec__factory.ts +1 -1
  408. package/typechain-types/factories/ExpiredLpPtRedeemer__factory.ts +1 -1
  409. package/typechain-types/factories/FixedPricePTAMM__factory.ts +1 -1
  410. package/typechain-types/factories/IERC20MetadataUpgradeable__factory.ts +252 -0
  411. package/typechain-types/factories/IERC20Upgradeable__factory.ts +209 -0
  412. package/typechain-types/factories/ILegacyMarket__factory.ts +42 -0
  413. package/typechain-types/factories/IPCrossChainSwapHub__factory.ts +264 -477
  414. package/typechain-types/factories/IPDepositBoxFactory__factory.ts +123 -0
  415. package/typechain-types/factories/IPGaugeController__factory.ts +102 -11
  416. package/typechain-types/factories/IPGauge__factory.ts +0 -51
  417. package/typechain-types/factories/IPMarket__factory.ts +0 -19
  418. package/typechain-types/factories/IPStakedPendle__factory.ts +366 -0
  419. package/typechain-types/factories/LimitBackendHelperV2__factory.ts +1 -1
  420. package/typechain-types/factories/MarketSweed__factory.ts +1 -1
  421. package/typechain-types/factories/OracleLib__factory.ts +1 -1
  422. package/typechain-types/factories/PendleAPIFeeDepositor__factory.ts +1 -1
  423. package/typechain-types/factories/PendleBoringOneracle__factory.ts +1 -1
  424. package/typechain-types/factories/PendleBoringSolvBTCOneracle__factory.ts +1 -1
  425. package/typechain-types/factories/PendleChainlinkOracleFactory__factory.ts +1 -1
  426. package/typechain-types/factories/PendleChainlinkOracleWithQuote__factory.ts +1 -1
  427. package/typechain-types/factories/PendleChainlinkOracle__factory.ts +1 -1
  428. package/typechain-types/factories/PendleCommonPoolDeployHelperV2__factory.ts +1 -1
  429. package/typechain-types/factories/PendleCrossChainSwapHub__factory.ts +304 -517
  430. package/typechain-types/factories/PendleExchangeRateOracleApp__factory.ts +1 -1
  431. package/typechain-types/factories/PendleExchangeRateOracle__factory.ts +1 -1
  432. package/typechain-types/factories/PendleFeeDistributorV2__factory.ts +1 -1
  433. package/typechain-types/factories/PendleFeeSetter__factory.ts +1 -1
  434. package/typechain-types/factories/PendleGaugeControllerUpg__factory.ts +519 -0
  435. package/typechain-types/factories/PendleGauge__factory.ts +0 -51
  436. package/typechain-types/factories/PendleLPWrapperFactory__factory.ts +1 -1
  437. package/typechain-types/factories/PendleLPWrapper__factory.ts +1 -1
  438. package/typechain-types/factories/PendleLimitRouter__factory.ts +1 -1
  439. package/typechain-types/factories/PendleMarketFactoryV7Upg__factory.ts +710 -0
  440. package/typechain-types/factories/PendleMarketV6__factory.ts +1 -1
  441. package/typechain-types/factories/PendleMarketV7__factory.ts +1233 -0
  442. package/typechain-types/factories/PendleMerkleDepositor__factory.ts +1 -1
  443. package/typechain-types/factories/PendleMerkleDistributor__factory.ts +1 -1
  444. package/typechain-types/factories/PendleMsgReceiveEndpointUpg__factory.ts +1 -1
  445. package/typechain-types/factories/PendleMsgSendEndpointUpg__factory.ts +1 -1
  446. package/typechain-types/factories/PendleMultiTokenMerkleDistributor__factory.ts +1 -1
  447. package/typechain-types/factories/PendlePYLpOracle__factory.ts +1 -1
  448. package/typechain-types/factories/PendlePoolDeployHelperV2__factory.ts +1 -1
  449. package/typechain-types/factories/PendlePoolDeployHelper__factory.ts +1 -1
  450. package/typechain-types/factories/PendlePrincipalToken__factory.ts +1 -1
  451. package/typechain-types/factories/PendleRedStoneRateOracleAdapter__factory.ts +1 -1
  452. package/typechain-types/factories/PendleRouterStatic__factory.ts +1 -1
  453. package/typechain-types/factories/PendleRouterV4__factory.ts +1 -1
  454. package/typechain-types/factories/PendleSparkLinearDiscountOracleFactoryWrapper__factory.ts +1 -1
  455. package/typechain-types/factories/PendleSparkLinearDiscountOracleFactory__factory.ts +1 -1
  456. package/typechain-types/factories/PendleSwap__factory.ts +1 -1
  457. package/typechain-types/factories/PendleYieldContractFactoryUpg__factory.ts +1 -1
  458. package/typechain-types/factories/PendleYieldToken__factory.ts +1 -1
  459. package/typechain-types/factories/Reflector__factory.ts +1 -1
  460. package/typechain-types/factories/SimulateHelper__factory.ts +1 -1
  461. package/typechain-types/factories/StakedPendle__factory.ts +785 -0
  462. package/typechain-types/factories/SwapHubBase__factory.ts +300 -500
  463. package/typechain-types/factories/VotingEscrowPendleMainchain__factory.ts +1 -1
  464. package/typechain-types/factories/VotingEscrowPendleSidechain__factory.ts +1 -1
  465. package/typechain-types/hardhat.d.ts +87 -87
  466. package/typechain-types/index.ts +24 -24
  467. package/build/artifacts/contracts/LiquidityMining/GaugeController/PendleGaugeControllerBaseUpg.sol/PendleGaugeControllerBaseUpg.dbg.json +0 -4
  468. package/build/artifacts/contracts/LiquidityMining/GaugeController/PendleGaugeControllerBaseUpg.sol/PendleGaugeControllerBaseUpg.json +0 -451
  469. package/build/artifacts/contracts/LiquidityMining/GaugeController/PendleGaugeControllerMainchainUpg.sol/PendleGaugeControllerMainchainUpg.dbg.json +0 -4
  470. package/build/artifacts/contracts/LiquidityMining/GaugeController/PendleGaugeControllerMainchainUpg.sol/PendleGaugeControllerMainchainUpg.json +0 -557
  471. package/build/artifacts/contracts/LiquidityMining/GaugeController/PendleGaugeControllerSidechainUpg.sol/PendleGaugeControllerSidechainUpg.dbg.json +0 -4
  472. package/build/artifacts/contracts/LiquidityMining/GaugeController/PendleGaugeControllerSidechainUpg.sol/PendleGaugeControllerSidechainUpg.json +0 -547
  473. package/build/artifacts/contracts/LiquidityMining/VotingController/PendleVotingControllerUpg.sol/PendleVotingControllerUpg.dbg.json +0 -4
  474. package/build/artifacts/contracts/LiquidityMining/VotingController/PendleVotingControllerUpg.sol/PendleVotingControllerUpg.json +0 -1311
  475. package/build/artifacts/contracts/LiquidityMining/VotingController/VotingControllerStorageUpg.sol/VotingControllerStorageUpg.dbg.json +0 -4
  476. package/build/artifacts/contracts/LiquidityMining/VotingController/VotingControllerStorageUpg.sol/VotingControllerStorageUpg.json +0 -764
  477. package/build/artifacts/contracts/core/Market/PendleMarketFactoryV6Upg.sol/PendleMarketFactoryV6Upg.dbg.json +0 -4
  478. package/build/artifacts/contracts/core/Market/PendleMarketFactoryV6Upg.sol/PendleMarketFactoryV6Upg.json +0 -636
  479. package/build/artifacts/contracts/core/Market/PendleMarketV6.sol/PendleMarketV6.dbg.json +0 -4
  480. package/build/artifacts/contracts/core/Market/PendleMarketV6.sol/PendleMarketV6.json +0 -1181
  481. package/build/artifacts/contracts/cross-chain/swap-hub/DepositBox.sol/DepositBox.dbg.json +0 -4
  482. package/build/artifacts/contracts/cross-chain/swap-hub/DepositBox.sol/DepositBox.json +0 -170
  483. package/build/artifacts/contracts/deprecated/VeDistributor/PendleFeeDistributor.sol/PendleFeeDistributor.dbg.json +0 -4
  484. package/build/artifacts/contracts/deprecated/VeDistributor/PendleFeeDistributor.sol/PendleFeeDistributor.json +0 -598
  485. package/build/artifacts/contracts/interfaces/IPGaugeControllerMainchain.sol/IPGaugeControllerMainchain.dbg.json +0 -4
  486. package/build/artifacts/contracts/interfaces/IPGaugeControllerMainchain.sol/IPGaugeControllerMainchain.json +0 -183
  487. package/build/artifacts/contracts/interfaces/IPVotingController.sol/IPVotingController.dbg.json +0 -4
  488. package/build/artifacts/contracts/interfaces/IPVotingController.sol/IPVotingController.json +0 -380
  489. package/build/artifacts/contracts/offchain-helpers/Broadcaster.sol/Broadcaster.dbg.json +0 -4
  490. package/build/artifacts/contracts/offchain-helpers/Broadcaster.sol/Broadcaster.json +0 -262
  491. package/contracts/LiquidityMining/GaugeController/PendleGaugeControllerBaseUpg.sol +0 -164
  492. package/contracts/LiquidityMining/GaugeController/PendleGaugeControllerMainchainUpg.sol +0 -42
  493. package/contracts/LiquidityMining/GaugeController/PendleGaugeControllerSidechainUpg.sol +0 -36
  494. package/contracts/LiquidityMining/VotingController/PendleVotingControllerUpg.sol +0 -304
  495. package/contracts/LiquidityMining/VotingController/VotingControllerStorageUpg.sol +0 -301
  496. package/contracts/deprecated/VeDistributor/PendleFeeDistributor.sol +0 -204
  497. package/contracts/interfaces/IPGaugeControllerMainchain.sol +0 -8
  498. package/contracts/interfaces/IPVotingController.sol +0 -43
  499. package/contracts/offchain-helpers/Broadcaster.sol +0 -48
  500. /package/contracts/cross-chain/{swap-hub → deposit-box}/DepositBox.sol +0 -0
@@ -15,24 +15,24 @@
15
15
  },
16
16
  {
17
17
  "inputs": [],
18
- "name": "InvalidReceiver",
18
+ "name": "InvalidSignature",
19
19
  "type": "error"
20
20
  },
21
21
  {
22
22
  "inputs": [],
23
- "name": "InvalidSignature",
23
+ "name": "MessageExpired",
24
24
  "type": "error"
25
25
  },
26
26
  {
27
27
  "inputs": [],
28
- "name": "MessageExpired",
28
+ "name": "Unauthorized",
29
29
  "type": "error"
30
30
  },
31
31
  {
32
32
  "anonymous": false,
33
33
  "inputs": [
34
34
  {
35
- "indexed": true,
35
+ "indexed": false,
36
36
  "internalType": "address",
37
37
  "name": "owner",
38
38
  "type": "address"
@@ -43,65 +43,34 @@
43
43
  "name": "boxId",
44
44
  "type": "uint32"
45
45
  },
46
- {
47
- "indexed": false,
48
- "internalType": "address",
49
- "name": "bridgeExtRouter",
50
- "type": "address"
51
- },
52
- {
53
- "indexed": false,
54
- "internalType": "address",
55
- "name": "token",
56
- "type": "address"
57
- },
58
46
  {
59
47
  "indexed": false,
60
48
  "internalType": "uint256",
61
- "name": "amountBridge",
49
+ "name": "requestId",
62
50
  "type": "uint256"
63
51
  },
64
52
  {
65
53
  "indexed": false,
66
54
  "internalType": "uint256",
67
- "name": "amountFee",
55
+ "name": "nonce",
68
56
  "type": "uint256"
69
57
  },
70
58
  {
71
59
  "indexed": false,
72
- "internalType": "bool",
73
- "name": "pullFromOwner",
74
- "type": "bool"
75
- }
76
- ],
77
- "name": "BridgeToken",
78
- "type": "event"
79
- },
80
- {
81
- "anonymous": false,
82
- "inputs": [
83
- {
84
- "indexed": true,
85
60
  "internalType": "address",
86
- "name": "owner",
61
+ "name": "bridgeExtRouter",
87
62
  "type": "address"
88
63
  },
89
- {
90
- "indexed": false,
91
- "internalType": "uint32",
92
- "name": "boxId",
93
- "type": "uint32"
94
- },
95
64
  {
96
65
  "indexed": false,
97
66
  "internalType": "address",
98
- "name": "tokenSpent",
67
+ "name": "token",
99
68
  "type": "address"
100
69
  },
101
70
  {
102
71
  "indexed": false,
103
72
  "internalType": "uint256",
104
- "name": "amountSpent",
73
+ "name": "amountBridge",
105
74
  "type": "uint256"
106
75
  },
107
76
  {
@@ -109,33 +78,9 @@
109
78
  "internalType": "uint256",
110
79
  "name": "amountFee",
111
80
  "type": "uint256"
112
- },
113
- {
114
- "indexed": false,
115
- "internalType": "address",
116
- "name": "ptAdapter",
117
- "type": "address"
118
- },
119
- {
120
- "indexed": false,
121
- "internalType": "address",
122
- "name": "pt",
123
- "type": "address"
124
- },
125
- {
126
- "indexed": false,
127
- "internalType": "uint256",
128
- "name": "netPtReceived",
129
- "type": "uint256"
130
- },
131
- {
132
- "indexed": false,
133
- "internalType": "bool",
134
- "name": "pullFromOwner",
135
- "type": "bool"
136
81
  }
137
82
  ],
138
- "name": "BuyCrossChainPt",
83
+ "name": "BridgeToken",
139
84
  "type": "event"
140
85
  },
141
86
  {
@@ -180,26 +125,33 @@
180
125
  "anonymous": false,
181
126
  "inputs": [
182
127
  {
183
- "indexed": true,
128
+ "indexed": false,
184
129
  "internalType": "address",
185
130
  "name": "executor",
186
131
  "type": "address"
187
- },
132
+ }
133
+ ],
134
+ "name": "SetExecutor",
135
+ "type": "event"
136
+ },
137
+ {
138
+ "anonymous": false,
139
+ "inputs": [
188
140
  {
189
141
  "indexed": false,
190
- "internalType": "bool",
191
- "name": "isExecutor",
192
- "type": "bool"
142
+ "internalType": "address",
143
+ "name": "proposer",
144
+ "type": "address"
193
145
  }
194
146
  ],
195
- "name": "SetExecutor",
147
+ "name": "SetProposer",
196
148
  "type": "event"
197
149
  },
198
150
  {
199
151
  "anonymous": false,
200
152
  "inputs": [
201
153
  {
202
- "indexed": true,
154
+ "indexed": false,
203
155
  "internalType": "address",
204
156
  "name": "owner",
205
157
  "type": "address"
@@ -210,47 +162,41 @@
210
162
  "name": "boxId",
211
163
  "type": "uint32"
212
164
  },
213
- {
214
- "indexed": false,
215
- "internalType": "address",
216
- "name": "tokenSpent",
217
- "type": "address"
218
- },
219
165
  {
220
166
  "indexed": false,
221
167
  "internalType": "uint256",
222
- "name": "amountSpent",
168
+ "name": "requestId",
223
169
  "type": "uint256"
224
170
  },
225
171
  {
226
172
  "indexed": false,
227
173
  "internalType": "uint256",
228
- "name": "amountFee",
174
+ "name": "nonce",
229
175
  "type": "uint256"
230
176
  },
231
177
  {
232
178
  "indexed": false,
233
179
  "internalType": "address",
234
- "name": "tokenReceived",
180
+ "name": "tokenSpent",
235
181
  "type": "address"
236
182
  },
237
183
  {
238
184
  "indexed": false,
239
185
  "internalType": "uint256",
240
- "name": "netTokenReceived",
186
+ "name": "amountSpent",
241
187
  "type": "uint256"
242
188
  },
243
189
  {
244
190
  "indexed": false,
245
- "internalType": "bool",
246
- "name": "pullFromOwner",
247
- "type": "bool"
191
+ "internalType": "address",
192
+ "name": "tokenReceived",
193
+ "type": "address"
248
194
  },
249
195
  {
250
196
  "indexed": false,
251
- "internalType": "bool",
252
- "name": "sendToOwner",
253
- "type": "bool"
197
+ "internalType": "uint256",
198
+ "name": "netTokenReceived",
199
+ "type": "uint256"
254
200
  }
255
201
  ],
256
202
  "name": "SwapToken",
@@ -260,7 +206,7 @@
260
206
  "anonymous": false,
261
207
  "inputs": [
262
208
  {
263
- "indexed": true,
209
+ "indexed": false,
264
210
  "internalType": "address",
265
211
  "name": "owner",
266
212
  "type": "address"
@@ -271,6 +217,18 @@
271
217
  "name": "boxId",
272
218
  "type": "uint32"
273
219
  },
220
+ {
221
+ "indexed": false,
222
+ "internalType": "uint256",
223
+ "name": "requestId",
224
+ "type": "uint256"
225
+ },
226
+ {
227
+ "indexed": false,
228
+ "internalType": "uint256",
229
+ "name": "nonce",
230
+ "type": "uint256"
231
+ },
274
232
  {
275
233
  "indexed": false,
276
234
  "internalType": "address",
@@ -295,10 +253,10 @@
295
253
  },
296
254
  {
297
255
  "inputs": [],
298
- "name": "BEACON_PROXY_CODE_CONTRACT",
256
+ "name": "DEPOSIT_BOX_FACTORY",
299
257
  "outputs": [
300
258
  {
301
- "internalType": "address",
259
+ "internalType": "contract IPDepositBoxFactory",
302
260
  "name": "",
303
261
  "type": "address"
304
262
  }
@@ -306,32 +264,6 @@
306
264
  "stateMutability": "view",
307
265
  "type": "function"
308
266
  },
309
- {
310
- "inputs": [],
311
- "name": "DEPOSIT_BOX_BEACON",
312
- "outputs": [
313
- {
314
- "internalType": "address",
315
- "name": "",
316
- "type": "address"
317
- }
318
- ],
319
- "stateMutability": "view",
320
- "type": "function"
321
- },
322
- {
323
- "inputs": [],
324
- "name": "DEPOSIT_BOX_CODE_HASH",
325
- "outputs": [
326
- {
327
- "internalType": "bytes32",
328
- "name": "",
329
- "type": "bytes32"
330
- }
331
- ],
332
- "stateMutability": "view",
333
- "type": "function"
334
- },
335
267
  {
336
268
  "inputs": [],
337
269
  "name": "TREASURY",
@@ -350,24 +282,36 @@
350
282
  {
351
283
  "components": [
352
284
  {
353
- "internalType": "address",
354
- "name": "owner",
355
- "type": "address"
356
- },
357
- {
358
- "internalType": "uint32",
359
- "name": "boxId",
360
- "type": "uint32"
361
- },
362
- {
363
- "internalType": "uint256",
364
- "name": "expiry",
365
- "type": "uint256"
366
- },
367
- {
368
- "internalType": "uint256",
369
- "name": "nonce",
370
- "type": "uint256"
285
+ "components": [
286
+ {
287
+ "internalType": "address",
288
+ "name": "owner",
289
+ "type": "address"
290
+ },
291
+ {
292
+ "internalType": "uint32",
293
+ "name": "boxId",
294
+ "type": "uint32"
295
+ },
296
+ {
297
+ "internalType": "uint256",
298
+ "name": "expiry",
299
+ "type": "uint256"
300
+ },
301
+ {
302
+ "internalType": "uint256",
303
+ "name": "requestId",
304
+ "type": "uint256"
305
+ },
306
+ {
307
+ "internalType": "uint256",
308
+ "name": "nonce",
309
+ "type": "uint256"
310
+ }
311
+ ],
312
+ "internalType": "struct IPCrossChainSwapHub.BoxPermit",
313
+ "name": "permit",
314
+ "type": "tuple"
371
315
  },
372
316
  {
373
317
  "internalType": "address",
@@ -384,11 +328,6 @@
384
328
  "name": "amountFee",
385
329
  "type": "uint256"
386
330
  },
387
- {
388
- "internalType": "bool",
389
- "name": "pullFromOwner",
390
- "type": "bool"
391
- },
392
331
  {
393
332
  "internalType": "address",
394
333
  "name": "bridgeExtRouter",
@@ -420,140 +359,11 @@
420
359
  "stateMutability": "payable",
421
360
  "type": "function"
422
361
  },
423
- {
424
- "inputs": [
425
- {
426
- "components": [
427
- {
428
- "internalType": "address",
429
- "name": "owner",
430
- "type": "address"
431
- },
432
- {
433
- "internalType": "uint32",
434
- "name": "boxId",
435
- "type": "uint32"
436
- },
437
- {
438
- "internalType": "uint256",
439
- "name": "expiry",
440
- "type": "uint256"
441
- },
442
- {
443
- "internalType": "uint256",
444
- "name": "nonce",
445
- "type": "uint256"
446
- },
447
- {
448
- "internalType": "address",
449
- "name": "tokenSpent",
450
- "type": "address"
451
- },
452
- {
453
- "internalType": "uint256",
454
- "name": "amountSpent",
455
- "type": "uint256"
456
- },
457
- {
458
- "internalType": "uint256",
459
- "name": "amountFee",
460
- "type": "uint256"
461
- },
462
- {
463
- "internalType": "address",
464
- "name": "ptAdapter",
465
- "type": "address"
466
- },
467
- {
468
- "internalType": "uint256",
469
- "name": "minPtReceived",
470
- "type": "uint256"
471
- },
472
- {
473
- "internalType": "uint32",
474
- "name": "dstEid",
475
- "type": "uint32"
476
- },
477
- {
478
- "internalType": "bytes32",
479
- "name": "receiver",
480
- "type": "bytes32"
481
- },
482
- {
483
- "internalType": "bool",
484
- "name": "pullFromOwner",
485
- "type": "bool"
486
- },
487
- {
488
- "internalType": "address",
489
- "name": "swapExtRouter",
490
- "type": "address"
491
- },
492
- {
493
- "internalType": "address",
494
- "name": "swapApprove",
495
- "type": "address"
496
- },
497
- {
498
- "internalType": "bytes",
499
- "name": "swapCalldata",
500
- "type": "bytes"
501
- }
502
- ],
503
- "internalType": "struct IPCrossChainSwapHub.BuyCrossChainPtMessage",
504
- "name": "message",
505
- "type": "tuple"
506
- },
507
- {
508
- "internalType": "bytes",
509
- "name": "signature",
510
- "type": "bytes"
511
- }
512
- ],
513
- "name": "buyCrossChainPt",
514
- "outputs": [],
515
- "stateMutability": "payable",
516
- "type": "function"
517
- },
518
- {
519
- "inputs": [],
520
- "name": "claimOwnership",
521
- "outputs": [],
522
- "stateMutability": "nonpayable",
523
- "type": "function"
524
- },
525
- {
526
- "inputs": [
527
- {
528
- "internalType": "address",
529
- "name": "owner",
530
- "type": "address"
531
- },
532
- {
533
- "internalType": "uint32",
534
- "name": "boxId",
535
- "type": "uint32"
536
- }
537
- ],
538
- "name": "computeDepositBox",
539
- "outputs": [
540
- {
541
- "internalType": "address",
542
- "name": "box",
543
- "type": "address"
544
- },
545
- {
546
- "internalType": "bytes32",
547
- "name": "salt",
548
- "type": "bytes32"
549
- },
550
- {
551
- "internalType": "bool",
552
- "name": "deployed",
553
- "type": "bool"
554
- }
555
- ],
556
- "stateMutability": "view",
362
+ {
363
+ "inputs": [],
364
+ "name": "claimOwnership",
365
+ "outputs": [],
366
+ "stateMutability": "nonpayable",
557
367
  "type": "function"
558
368
  },
559
369
  {
@@ -600,91 +410,13 @@
600
410
  "type": "function"
601
411
  },
602
412
  {
603
- "inputs": [
604
- {
605
- "components": [
606
- {
607
- "internalType": "address",
608
- "name": "owner",
609
- "type": "address"
610
- },
611
- {
612
- "internalType": "uint32",
613
- "name": "boxId",
614
- "type": "uint32"
615
- },
616
- {
617
- "internalType": "uint256",
618
- "name": "expiry",
619
- "type": "uint256"
620
- },
621
- {
622
- "internalType": "uint256",
623
- "name": "nonce",
624
- "type": "uint256"
625
- },
626
- {
627
- "internalType": "address",
628
- "name": "tokenSpent",
629
- "type": "address"
630
- },
631
- {
632
- "internalType": "uint256",
633
- "name": "amountSpent",
634
- "type": "uint256"
635
- },
636
- {
637
- "internalType": "uint256",
638
- "name": "amountFee",
639
- "type": "uint256"
640
- },
641
- {
642
- "internalType": "address",
643
- "name": "tokenReceived",
644
- "type": "address"
645
- },
646
- {
647
- "internalType": "uint256",
648
- "name": "minReceived",
649
- "type": "uint256"
650
- },
651
- {
652
- "internalType": "bool",
653
- "name": "pullFromOwner",
654
- "type": "bool"
655
- },
656
- {
657
- "internalType": "bool",
658
- "name": "sendToOwner",
659
- "type": "bool"
660
- },
661
- {
662
- "internalType": "address",
663
- "name": "swapExtRouter",
664
- "type": "address"
665
- },
666
- {
667
- "internalType": "address",
668
- "name": "swapApprove",
669
- "type": "address"
670
- },
671
- {
672
- "internalType": "bytes",
673
- "name": "swapCalldata",
674
- "type": "bytes"
675
- }
676
- ],
677
- "internalType": "struct IPCrossChainSwapHub.SwapTokenMessage",
678
- "name": "message",
679
- "type": "tuple"
680
- }
681
- ],
682
- "name": "hashTypedData",
413
+ "inputs": [],
414
+ "name": "executor",
683
415
  "outputs": [
684
416
  {
685
- "internalType": "bytes32",
417
+ "internalType": "address",
686
418
  "name": "",
687
- "type": "bytes32"
419
+ "type": "address"
688
420
  }
689
421
  ],
690
422
  "stateMutability": "view",
@@ -711,31 +443,21 @@
711
443
  },
712
444
  {
713
445
  "internalType": "uint256",
714
- "name": "nonce",
715
- "type": "uint256"
716
- },
717
- {
718
- "internalType": "address",
719
- "name": "token",
720
- "type": "address"
721
- },
722
- {
723
- "internalType": "uint256",
724
- "name": "amountWithdraw",
446
+ "name": "requestId",
725
447
  "type": "uint256"
726
448
  },
727
449
  {
728
450
  "internalType": "uint256",
729
- "name": "amountFee",
451
+ "name": "nonce",
730
452
  "type": "uint256"
731
453
  }
732
454
  ],
733
- "internalType": "struct IPCrossChainSwapHub.WithdrawTokenMessage",
734
- "name": "message",
455
+ "internalType": "struct IPCrossChainSwapHub.BoxPermit",
456
+ "name": "permit",
735
457
  "type": "tuple"
736
458
  }
737
459
  ],
738
- "name": "hashTypedData",
460
+ "name": "hashBoxPermit",
739
461
  "outputs": [
740
462
  {
741
463
  "internalType": "bytes32",
@@ -743,7 +465,7 @@
743
465
  "type": "bytes32"
744
466
  }
745
467
  ],
746
- "stateMutability": "view",
468
+ "stateMutability": "pure",
747
469
  "type": "function"
748
470
  },
749
471
  {
@@ -751,24 +473,36 @@
751
473
  {
752
474
  "components": [
753
475
  {
754
- "internalType": "address",
755
- "name": "owner",
756
- "type": "address"
757
- },
758
- {
759
- "internalType": "uint32",
760
- "name": "boxId",
761
- "type": "uint32"
762
- },
763
- {
764
- "internalType": "uint256",
765
- "name": "expiry",
766
- "type": "uint256"
767
- },
768
- {
769
- "internalType": "uint256",
770
- "name": "nonce",
771
- "type": "uint256"
476
+ "components": [
477
+ {
478
+ "internalType": "address",
479
+ "name": "owner",
480
+ "type": "address"
481
+ },
482
+ {
483
+ "internalType": "uint32",
484
+ "name": "boxId",
485
+ "type": "uint32"
486
+ },
487
+ {
488
+ "internalType": "uint256",
489
+ "name": "expiry",
490
+ "type": "uint256"
491
+ },
492
+ {
493
+ "internalType": "uint256",
494
+ "name": "requestId",
495
+ "type": "uint256"
496
+ },
497
+ {
498
+ "internalType": "uint256",
499
+ "name": "nonce",
500
+ "type": "uint256"
501
+ }
502
+ ],
503
+ "internalType": "struct IPCrossChainSwapHub.BoxPermit",
504
+ "name": "permit",
505
+ "type": "tuple"
772
506
  },
773
507
  {
774
508
  "internalType": "address",
@@ -780,36 +514,16 @@
780
514
  "name": "amountSpent",
781
515
  "type": "uint256"
782
516
  },
783
- {
784
- "internalType": "uint256",
785
- "name": "amountFee",
786
- "type": "uint256"
787
- },
788
517
  {
789
518
  "internalType": "address",
790
- "name": "ptAdapter",
519
+ "name": "tokenReceived",
791
520
  "type": "address"
792
521
  },
793
522
  {
794
523
  "internalType": "uint256",
795
- "name": "minPtReceived",
524
+ "name": "minReceived",
796
525
  "type": "uint256"
797
526
  },
798
- {
799
- "internalType": "uint32",
800
- "name": "dstEid",
801
- "type": "uint32"
802
- },
803
- {
804
- "internalType": "bytes32",
805
- "name": "receiver",
806
- "type": "bytes32"
807
- },
808
- {
809
- "internalType": "bool",
810
- "name": "pullFromOwner",
811
- "type": "bool"
812
- },
813
527
  {
814
528
  "internalType": "address",
815
529
  "name": "swapExtRouter",
@@ -826,8 +540,8 @@
826
540
  "type": "bytes"
827
541
  }
828
542
  ],
829
- "internalType": "struct IPCrossChainSwapHub.BuyCrossChainPtMessage",
830
- "name": "message",
543
+ "internalType": "struct IPCrossChainSwapHub.SwapTokenMessage",
544
+ "name": "ms",
831
545
  "type": "tuple"
832
546
  }
833
547
  ],
@@ -847,24 +561,104 @@
847
561
  {
848
562
  "components": [
849
563
  {
850
- "internalType": "address",
851
- "name": "owner",
852
- "type": "address"
564
+ "components": [
565
+ {
566
+ "internalType": "address",
567
+ "name": "owner",
568
+ "type": "address"
569
+ },
570
+ {
571
+ "internalType": "uint32",
572
+ "name": "boxId",
573
+ "type": "uint32"
574
+ },
575
+ {
576
+ "internalType": "uint256",
577
+ "name": "expiry",
578
+ "type": "uint256"
579
+ },
580
+ {
581
+ "internalType": "uint256",
582
+ "name": "requestId",
583
+ "type": "uint256"
584
+ },
585
+ {
586
+ "internalType": "uint256",
587
+ "name": "nonce",
588
+ "type": "uint256"
589
+ }
590
+ ],
591
+ "internalType": "struct IPCrossChainSwapHub.BoxPermit",
592
+ "name": "permit",
593
+ "type": "tuple"
853
594
  },
854
595
  {
855
- "internalType": "uint32",
856
- "name": "boxId",
857
- "type": "uint32"
596
+ "internalType": "address",
597
+ "name": "token",
598
+ "type": "address"
858
599
  },
859
600
  {
860
601
  "internalType": "uint256",
861
- "name": "expiry",
602
+ "name": "amountWithdraw",
862
603
  "type": "uint256"
863
604
  },
864
605
  {
865
606
  "internalType": "uint256",
866
- "name": "nonce",
607
+ "name": "amountFee",
867
608
  "type": "uint256"
609
+ }
610
+ ],
611
+ "internalType": "struct IPCrossChainSwapHub.WithdrawTokenMessage",
612
+ "name": "ms",
613
+ "type": "tuple"
614
+ }
615
+ ],
616
+ "name": "hashTypedData",
617
+ "outputs": [
618
+ {
619
+ "internalType": "bytes32",
620
+ "name": "",
621
+ "type": "bytes32"
622
+ }
623
+ ],
624
+ "stateMutability": "view",
625
+ "type": "function"
626
+ },
627
+ {
628
+ "inputs": [
629
+ {
630
+ "components": [
631
+ {
632
+ "components": [
633
+ {
634
+ "internalType": "address",
635
+ "name": "owner",
636
+ "type": "address"
637
+ },
638
+ {
639
+ "internalType": "uint32",
640
+ "name": "boxId",
641
+ "type": "uint32"
642
+ },
643
+ {
644
+ "internalType": "uint256",
645
+ "name": "expiry",
646
+ "type": "uint256"
647
+ },
648
+ {
649
+ "internalType": "uint256",
650
+ "name": "requestId",
651
+ "type": "uint256"
652
+ },
653
+ {
654
+ "internalType": "uint256",
655
+ "name": "nonce",
656
+ "type": "uint256"
657
+ }
658
+ ],
659
+ "internalType": "struct IPCrossChainSwapHub.BoxPermit",
660
+ "name": "permit",
661
+ "type": "tuple"
868
662
  },
869
663
  {
870
664
  "internalType": "address",
@@ -881,11 +675,6 @@
881
675
  "name": "amountFee",
882
676
  "type": "uint256"
883
677
  },
884
- {
885
- "internalType": "bool",
886
- "name": "pullFromOwner",
887
- "type": "bool"
888
- },
889
678
  {
890
679
  "internalType": "address",
891
680
  "name": "bridgeExtRouter",
@@ -903,7 +692,7 @@
903
692
  }
904
693
  ],
905
694
  "internalType": "struct IPCrossChainSwapHub.BridgeTokenMessage",
906
- "name": "message",
695
+ "name": "ms",
907
696
  "type": "tuple"
908
697
  }
909
698
  ],
@@ -919,19 +708,26 @@
919
708
  "type": "function"
920
709
  },
921
710
  {
922
- "inputs": [
711
+ "inputs": [],
712
+ "name": "owner",
713
+ "outputs": [
923
714
  {
924
715
  "internalType": "address",
925
- "name": "executor",
716
+ "name": "",
926
717
  "type": "address"
927
718
  }
928
719
  ],
929
- "name": "isExecutor",
720
+ "stateMutability": "view",
721
+ "type": "function"
722
+ },
723
+ {
724
+ "inputs": [],
725
+ "name": "pendingOwner",
930
726
  "outputs": [
931
727
  {
932
- "internalType": "bool",
728
+ "internalType": "address",
933
729
  "name": "",
934
- "type": "bool"
730
+ "type": "address"
935
731
  }
936
732
  ],
937
733
  "stateMutability": "view",
@@ -939,7 +735,7 @@
939
735
  },
940
736
  {
941
737
  "inputs": [],
942
- "name": "owner",
738
+ "name": "proposer",
943
739
  "outputs": [
944
740
  {
945
741
  "internalType": "address",
@@ -953,12 +749,12 @@
953
749
  {
954
750
  "inputs": [
955
751
  {
956
- "internalType": "address",
957
- "name": "owner",
958
- "type": "address"
752
+ "internalType": "uint256",
753
+ "name": "requestId",
754
+ "type": "uint256"
959
755
  }
960
756
  ],
961
- "name": "ownerNonce",
757
+ "name": "requestNonce",
962
758
  "outputs": [
963
759
  {
964
760
  "internalType": "uint256",
@@ -970,32 +766,27 @@
970
766
  "type": "function"
971
767
  },
972
768
  {
973
- "inputs": [],
974
- "name": "pendingOwner",
975
- "outputs": [
769
+ "inputs": [
976
770
  {
977
771
  "internalType": "address",
978
- "name": "",
772
+ "name": "executor_",
979
773
  "type": "address"
980
774
  }
981
775
  ],
982
- "stateMutability": "view",
776
+ "name": "setExecutor",
777
+ "outputs": [],
778
+ "stateMutability": "nonpayable",
983
779
  "type": "function"
984
780
  },
985
781
  {
986
782
  "inputs": [
987
783
  {
988
784
  "internalType": "address",
989
- "name": "executor",
785
+ "name": "proposer_",
990
786
  "type": "address"
991
- },
992
- {
993
- "internalType": "bool",
994
- "name": "isExecutor_",
995
- "type": "bool"
996
787
  }
997
788
  ],
998
- "name": "setExecutor",
789
+ "name": "setProposer",
999
790
  "outputs": [],
1000
791
  "stateMutability": "nonpayable",
1001
792
  "type": "function"
@@ -1005,24 +796,36 @@
1005
796
  {
1006
797
  "components": [
1007
798
  {
1008
- "internalType": "address",
1009
- "name": "owner",
1010
- "type": "address"
1011
- },
1012
- {
1013
- "internalType": "uint32",
1014
- "name": "boxId",
1015
- "type": "uint32"
1016
- },
1017
- {
1018
- "internalType": "uint256",
1019
- "name": "expiry",
1020
- "type": "uint256"
1021
- },
1022
- {
1023
- "internalType": "uint256",
1024
- "name": "nonce",
1025
- "type": "uint256"
799
+ "components": [
800
+ {
801
+ "internalType": "address",
802
+ "name": "owner",
803
+ "type": "address"
804
+ },
805
+ {
806
+ "internalType": "uint32",
807
+ "name": "boxId",
808
+ "type": "uint32"
809
+ },
810
+ {
811
+ "internalType": "uint256",
812
+ "name": "expiry",
813
+ "type": "uint256"
814
+ },
815
+ {
816
+ "internalType": "uint256",
817
+ "name": "requestId",
818
+ "type": "uint256"
819
+ },
820
+ {
821
+ "internalType": "uint256",
822
+ "name": "nonce",
823
+ "type": "uint256"
824
+ }
825
+ ],
826
+ "internalType": "struct IPCrossChainSwapHub.BoxPermit",
827
+ "name": "permit",
828
+ "type": "tuple"
1026
829
  },
1027
830
  {
1028
831
  "internalType": "address",
@@ -1034,11 +837,6 @@
1034
837
  "name": "amountSpent",
1035
838
  "type": "uint256"
1036
839
  },
1037
- {
1038
- "internalType": "uint256",
1039
- "name": "amountFee",
1040
- "type": "uint256"
1041
- },
1042
840
  {
1043
841
  "internalType": "address",
1044
842
  "name": "tokenReceived",
@@ -1049,16 +847,6 @@
1049
847
  "name": "minReceived",
1050
848
  "type": "uint256"
1051
849
  },
1052
- {
1053
- "internalType": "bool",
1054
- "name": "pullFromOwner",
1055
- "type": "bool"
1056
- },
1057
- {
1058
- "internalType": "bool",
1059
- "name": "sendToOwner",
1060
- "type": "bool"
1061
- },
1062
850
  {
1063
851
  "internalType": "address",
1064
852
  "name": "swapExtRouter",
@@ -1118,24 +906,36 @@
1118
906
  {
1119
907
  "components": [
1120
908
  {
1121
- "internalType": "address",
1122
- "name": "owner",
1123
- "type": "address"
1124
- },
1125
- {
1126
- "internalType": "uint32",
1127
- "name": "boxId",
1128
- "type": "uint32"
1129
- },
1130
- {
1131
- "internalType": "uint256",
1132
- "name": "expiry",
1133
- "type": "uint256"
1134
- },
1135
- {
1136
- "internalType": "uint256",
1137
- "name": "nonce",
1138
- "type": "uint256"
909
+ "components": [
910
+ {
911
+ "internalType": "address",
912
+ "name": "owner",
913
+ "type": "address"
914
+ },
915
+ {
916
+ "internalType": "uint32",
917
+ "name": "boxId",
918
+ "type": "uint32"
919
+ },
920
+ {
921
+ "internalType": "uint256",
922
+ "name": "expiry",
923
+ "type": "uint256"
924
+ },
925
+ {
926
+ "internalType": "uint256",
927
+ "name": "requestId",
928
+ "type": "uint256"
929
+ },
930
+ {
931
+ "internalType": "uint256",
932
+ "name": "nonce",
933
+ "type": "uint256"
934
+ }
935
+ ],
936
+ "internalType": "struct IPCrossChainSwapHub.BoxPermit",
937
+ "name": "permit",
938
+ "type": "tuple"
1139
939
  },
1140
940
  {
1141
941
  "internalType": "address",