@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
@@ -19,24 +19,24 @@ const _abi = [
19
19
  },
20
20
  {
21
21
  inputs: [],
22
- name: "InvalidReceiver",
22
+ name: "InvalidSignature",
23
23
  type: "error",
24
24
  },
25
25
  {
26
26
  inputs: [],
27
- name: "InvalidSignature",
27
+ name: "MessageExpired",
28
28
  type: "error",
29
29
  },
30
30
  {
31
31
  inputs: [],
32
- name: "MessageExpired",
32
+ name: "Unauthorized",
33
33
  type: "error",
34
34
  },
35
35
  {
36
36
  anonymous: false,
37
37
  inputs: [
38
38
  {
39
- indexed: true,
39
+ indexed: false,
40
40
  internalType: "address",
41
41
  name: "owner",
42
42
  type: "address",
@@ -47,65 +47,34 @@ const _abi = [
47
47
  name: "boxId",
48
48
  type: "uint32",
49
49
  },
50
- {
51
- indexed: false,
52
- internalType: "address",
53
- name: "bridgeExtRouter",
54
- type: "address",
55
- },
56
- {
57
- indexed: false,
58
- internalType: "address",
59
- name: "token",
60
- type: "address",
61
- },
62
50
  {
63
51
  indexed: false,
64
52
  internalType: "uint256",
65
- name: "amountBridge",
53
+ name: "requestId",
66
54
  type: "uint256",
67
55
  },
68
56
  {
69
57
  indexed: false,
70
58
  internalType: "uint256",
71
- name: "amountFee",
59
+ name: "nonce",
72
60
  type: "uint256",
73
61
  },
74
62
  {
75
63
  indexed: false,
76
- internalType: "bool",
77
- name: "pullFromOwner",
78
- type: "bool",
79
- },
80
- ],
81
- name: "BridgeToken",
82
- type: "event",
83
- },
84
- {
85
- anonymous: false,
86
- inputs: [
87
- {
88
- indexed: true,
89
64
  internalType: "address",
90
- name: "owner",
65
+ name: "bridgeExtRouter",
91
66
  type: "address",
92
67
  },
93
- {
94
- indexed: false,
95
- internalType: "uint32",
96
- name: "boxId",
97
- type: "uint32",
98
- },
99
68
  {
100
69
  indexed: false,
101
70
  internalType: "address",
102
- name: "tokenSpent",
71
+ name: "token",
103
72
  type: "address",
104
73
  },
105
74
  {
106
75
  indexed: false,
107
76
  internalType: "uint256",
108
- name: "amountSpent",
77
+ name: "amountBridge",
109
78
  type: "uint256",
110
79
  },
111
80
  {
@@ -114,32 +83,8 @@ const _abi = [
114
83
  name: "amountFee",
115
84
  type: "uint256",
116
85
  },
117
- {
118
- indexed: false,
119
- internalType: "address",
120
- name: "ptAdapter",
121
- type: "address",
122
- },
123
- {
124
- indexed: false,
125
- internalType: "address",
126
- name: "pt",
127
- type: "address",
128
- },
129
- {
130
- indexed: false,
131
- internalType: "uint256",
132
- name: "netPtReceived",
133
- type: "uint256",
134
- },
135
- {
136
- indexed: false,
137
- internalType: "bool",
138
- name: "pullFromOwner",
139
- type: "bool",
140
- },
141
86
  ],
142
- name: "BuyCrossChainPt",
87
+ name: "BridgeToken",
143
88
  type: "event",
144
89
  },
145
90
  {
@@ -184,26 +129,33 @@ const _abi = [
184
129
  anonymous: false,
185
130
  inputs: [
186
131
  {
187
- indexed: true,
132
+ indexed: false,
188
133
  internalType: "address",
189
134
  name: "executor",
190
135
  type: "address",
191
136
  },
137
+ ],
138
+ name: "SetExecutor",
139
+ type: "event",
140
+ },
141
+ {
142
+ anonymous: false,
143
+ inputs: [
192
144
  {
193
145
  indexed: false,
194
- internalType: "bool",
195
- name: "isExecutor",
196
- type: "bool",
146
+ internalType: "address",
147
+ name: "proposer",
148
+ type: "address",
197
149
  },
198
150
  ],
199
- name: "SetExecutor",
151
+ name: "SetProposer",
200
152
  type: "event",
201
153
  },
202
154
  {
203
155
  anonymous: false,
204
156
  inputs: [
205
157
  {
206
- indexed: true,
158
+ indexed: false,
207
159
  internalType: "address",
208
160
  name: "owner",
209
161
  type: "address",
@@ -214,47 +166,41 @@ const _abi = [
214
166
  name: "boxId",
215
167
  type: "uint32",
216
168
  },
217
- {
218
- indexed: false,
219
- internalType: "address",
220
- name: "tokenSpent",
221
- type: "address",
222
- },
223
169
  {
224
170
  indexed: false,
225
171
  internalType: "uint256",
226
- name: "amountSpent",
172
+ name: "requestId",
227
173
  type: "uint256",
228
174
  },
229
175
  {
230
176
  indexed: false,
231
177
  internalType: "uint256",
232
- name: "amountFee",
178
+ name: "nonce",
233
179
  type: "uint256",
234
180
  },
235
181
  {
236
182
  indexed: false,
237
183
  internalType: "address",
238
- name: "tokenReceived",
184
+ name: "tokenSpent",
239
185
  type: "address",
240
186
  },
241
187
  {
242
188
  indexed: false,
243
189
  internalType: "uint256",
244
- name: "netTokenReceived",
190
+ name: "amountSpent",
245
191
  type: "uint256",
246
192
  },
247
193
  {
248
194
  indexed: false,
249
- internalType: "bool",
250
- name: "pullFromOwner",
251
- type: "bool",
195
+ internalType: "address",
196
+ name: "tokenReceived",
197
+ type: "address",
252
198
  },
253
199
  {
254
200
  indexed: false,
255
- internalType: "bool",
256
- name: "sendToOwner",
257
- type: "bool",
201
+ internalType: "uint256",
202
+ name: "netTokenReceived",
203
+ type: "uint256",
258
204
  },
259
205
  ],
260
206
  name: "SwapToken",
@@ -264,7 +210,7 @@ const _abi = [
264
210
  anonymous: false,
265
211
  inputs: [
266
212
  {
267
- indexed: true,
213
+ indexed: false,
268
214
  internalType: "address",
269
215
  name: "owner",
270
216
  type: "address",
@@ -275,6 +221,18 @@ const _abi = [
275
221
  name: "boxId",
276
222
  type: "uint32",
277
223
  },
224
+ {
225
+ indexed: false,
226
+ internalType: "uint256",
227
+ name: "requestId",
228
+ type: "uint256",
229
+ },
230
+ {
231
+ indexed: false,
232
+ internalType: "uint256",
233
+ name: "nonce",
234
+ type: "uint256",
235
+ },
278
236
  {
279
237
  indexed: false,
280
238
  internalType: "address",
@@ -299,10 +257,10 @@ const _abi = [
299
257
  },
300
258
  {
301
259
  inputs: [],
302
- name: "BEACON_PROXY_CODE_CONTRACT",
260
+ name: "DEPOSIT_BOX_FACTORY",
303
261
  outputs: [
304
262
  {
305
- internalType: "address",
263
+ internalType: "contract IPDepositBoxFactory",
306
264
  name: "",
307
265
  type: "address",
308
266
  },
@@ -310,32 +268,6 @@ const _abi = [
310
268
  stateMutability: "view",
311
269
  type: "function",
312
270
  },
313
- {
314
- inputs: [],
315
- name: "DEPOSIT_BOX_BEACON",
316
- outputs: [
317
- {
318
- internalType: "address",
319
- name: "",
320
- type: "address",
321
- },
322
- ],
323
- stateMutability: "view",
324
- type: "function",
325
- },
326
- {
327
- inputs: [],
328
- name: "DEPOSIT_BOX_CODE_HASH",
329
- outputs: [
330
- {
331
- internalType: "bytes32",
332
- name: "",
333
- type: "bytes32",
334
- },
335
- ],
336
- stateMutability: "view",
337
- type: "function",
338
- },
339
271
  {
340
272
  inputs: [],
341
273
  name: "TREASURY",
@@ -354,24 +286,36 @@ const _abi = [
354
286
  {
355
287
  components: [
356
288
  {
357
- internalType: "address",
358
- name: "owner",
359
- type: "address",
360
- },
361
- {
362
- internalType: "uint32",
363
- name: "boxId",
364
- type: "uint32",
365
- },
366
- {
367
- internalType: "uint256",
368
- name: "expiry",
369
- type: "uint256",
370
- },
371
- {
372
- internalType: "uint256",
373
- name: "nonce",
374
- type: "uint256",
289
+ components: [
290
+ {
291
+ internalType: "address",
292
+ name: "owner",
293
+ type: "address",
294
+ },
295
+ {
296
+ internalType: "uint32",
297
+ name: "boxId",
298
+ type: "uint32",
299
+ },
300
+ {
301
+ internalType: "uint256",
302
+ name: "expiry",
303
+ type: "uint256",
304
+ },
305
+ {
306
+ internalType: "uint256",
307
+ name: "requestId",
308
+ type: "uint256",
309
+ },
310
+ {
311
+ internalType: "uint256",
312
+ name: "nonce",
313
+ type: "uint256",
314
+ },
315
+ ],
316
+ internalType: "struct IPCrossChainSwapHub.BoxPermit",
317
+ name: "permit",
318
+ type: "tuple",
375
319
  },
376
320
  {
377
321
  internalType: "address",
@@ -388,11 +332,6 @@ const _abi = [
388
332
  name: "amountFee",
389
333
  type: "uint256",
390
334
  },
391
- {
392
- internalType: "bool",
393
- name: "pullFromOwner",
394
- type: "bool",
395
- },
396
335
  {
397
336
  internalType: "address",
398
337
  name: "bridgeExtRouter",
@@ -424,140 +363,11 @@ const _abi = [
424
363
  stateMutability: "payable",
425
364
  type: "function",
426
365
  },
427
- {
428
- inputs: [
429
- {
430
- components: [
431
- {
432
- internalType: "address",
433
- name: "owner",
434
- type: "address",
435
- },
436
- {
437
- internalType: "uint32",
438
- name: "boxId",
439
- type: "uint32",
440
- },
441
- {
442
- internalType: "uint256",
443
- name: "expiry",
444
- type: "uint256",
445
- },
446
- {
447
- internalType: "uint256",
448
- name: "nonce",
449
- type: "uint256",
450
- },
451
- {
452
- internalType: "address",
453
- name: "tokenSpent",
454
- type: "address",
455
- },
456
- {
457
- internalType: "uint256",
458
- name: "amountSpent",
459
- type: "uint256",
460
- },
461
- {
462
- internalType: "uint256",
463
- name: "amountFee",
464
- type: "uint256",
465
- },
466
- {
467
- internalType: "address",
468
- name: "ptAdapter",
469
- type: "address",
470
- },
471
- {
472
- internalType: "uint256",
473
- name: "minPtReceived",
474
- type: "uint256",
475
- },
476
- {
477
- internalType: "uint32",
478
- name: "dstEid",
479
- type: "uint32",
480
- },
481
- {
482
- internalType: "bytes32",
483
- name: "receiver",
484
- type: "bytes32",
485
- },
486
- {
487
- internalType: "bool",
488
- name: "pullFromOwner",
489
- type: "bool",
490
- },
491
- {
492
- internalType: "address",
493
- name: "swapExtRouter",
494
- type: "address",
495
- },
496
- {
497
- internalType: "address",
498
- name: "swapApprove",
499
- type: "address",
500
- },
501
- {
502
- internalType: "bytes",
503
- name: "swapCalldata",
504
- type: "bytes",
505
- },
506
- ],
507
- internalType: "struct IPCrossChainSwapHub.BuyCrossChainPtMessage",
508
- name: "message",
509
- type: "tuple",
510
- },
511
- {
512
- internalType: "bytes",
513
- name: "signature",
514
- type: "bytes",
515
- },
516
- ],
517
- name: "buyCrossChainPt",
518
- outputs: [],
519
- stateMutability: "payable",
520
- type: "function",
521
- },
522
- {
523
- inputs: [],
524
- name: "claimOwnership",
525
- outputs: [],
526
- stateMutability: "nonpayable",
527
- type: "function",
528
- },
529
- {
530
- inputs: [
531
- {
532
- internalType: "address",
533
- name: "owner",
534
- type: "address",
535
- },
536
- {
537
- internalType: "uint32",
538
- name: "boxId",
539
- type: "uint32",
540
- },
541
- ],
542
- name: "computeDepositBox",
543
- outputs: [
544
- {
545
- internalType: "address",
546
- name: "box",
547
- type: "address",
548
- },
549
- {
550
- internalType: "bytes32",
551
- name: "salt",
552
- type: "bytes32",
553
- },
554
- {
555
- internalType: "bool",
556
- name: "deployed",
557
- type: "bool",
558
- },
559
- ],
560
- stateMutability: "view",
366
+ {
367
+ inputs: [],
368
+ name: "claimOwnership",
369
+ outputs: [],
370
+ stateMutability: "nonpayable",
561
371
  type: "function",
562
372
  },
563
373
  {
@@ -604,91 +414,13 @@ const _abi = [
604
414
  type: "function",
605
415
  },
606
416
  {
607
- inputs: [
608
- {
609
- components: [
610
- {
611
- internalType: "address",
612
- name: "owner",
613
- type: "address",
614
- },
615
- {
616
- internalType: "uint32",
617
- name: "boxId",
618
- type: "uint32",
619
- },
620
- {
621
- internalType: "uint256",
622
- name: "expiry",
623
- type: "uint256",
624
- },
625
- {
626
- internalType: "uint256",
627
- name: "nonce",
628
- type: "uint256",
629
- },
630
- {
631
- internalType: "address",
632
- name: "tokenSpent",
633
- type: "address",
634
- },
635
- {
636
- internalType: "uint256",
637
- name: "amountSpent",
638
- type: "uint256",
639
- },
640
- {
641
- internalType: "uint256",
642
- name: "amountFee",
643
- type: "uint256",
644
- },
645
- {
646
- internalType: "address",
647
- name: "tokenReceived",
648
- type: "address",
649
- },
650
- {
651
- internalType: "uint256",
652
- name: "minReceived",
653
- type: "uint256",
654
- },
655
- {
656
- internalType: "bool",
657
- name: "pullFromOwner",
658
- type: "bool",
659
- },
660
- {
661
- internalType: "bool",
662
- name: "sendToOwner",
663
- type: "bool",
664
- },
665
- {
666
- internalType: "address",
667
- name: "swapExtRouter",
668
- type: "address",
669
- },
670
- {
671
- internalType: "address",
672
- name: "swapApprove",
673
- type: "address",
674
- },
675
- {
676
- internalType: "bytes",
677
- name: "swapCalldata",
678
- type: "bytes",
679
- },
680
- ],
681
- internalType: "struct IPCrossChainSwapHub.SwapTokenMessage",
682
- name: "message",
683
- type: "tuple",
684
- },
685
- ],
686
- name: "hashTypedData",
417
+ inputs: [],
418
+ name: "executor",
687
419
  outputs: [
688
420
  {
689
- internalType: "bytes32",
421
+ internalType: "address",
690
422
  name: "",
691
- type: "bytes32",
423
+ type: "address",
692
424
  },
693
425
  ],
694
426
  stateMutability: "view",
@@ -715,31 +447,21 @@ const _abi = [
715
447
  },
716
448
  {
717
449
  internalType: "uint256",
718
- name: "nonce",
719
- type: "uint256",
720
- },
721
- {
722
- internalType: "address",
723
- name: "token",
724
- type: "address",
725
- },
726
- {
727
- internalType: "uint256",
728
- name: "amountWithdraw",
450
+ name: "requestId",
729
451
  type: "uint256",
730
452
  },
731
453
  {
732
454
  internalType: "uint256",
733
- name: "amountFee",
455
+ name: "nonce",
734
456
  type: "uint256",
735
457
  },
736
458
  ],
737
- internalType: "struct IPCrossChainSwapHub.WithdrawTokenMessage",
738
- name: "message",
459
+ internalType: "struct IPCrossChainSwapHub.BoxPermit",
460
+ name: "permit",
739
461
  type: "tuple",
740
462
  },
741
463
  ],
742
- name: "hashTypedData",
464
+ name: "hashBoxPermit",
743
465
  outputs: [
744
466
  {
745
467
  internalType: "bytes32",
@@ -747,7 +469,7 @@ const _abi = [
747
469
  type: "bytes32",
748
470
  },
749
471
  ],
750
- stateMutability: "view",
472
+ stateMutability: "pure",
751
473
  type: "function",
752
474
  },
753
475
  {
@@ -755,24 +477,36 @@ const _abi = [
755
477
  {
756
478
  components: [
757
479
  {
758
- internalType: "address",
759
- name: "owner",
760
- type: "address",
761
- },
762
- {
763
- internalType: "uint32",
764
- name: "boxId",
765
- type: "uint32",
766
- },
767
- {
768
- internalType: "uint256",
769
- name: "expiry",
770
- type: "uint256",
771
- },
772
- {
773
- internalType: "uint256",
774
- name: "nonce",
775
- type: "uint256",
480
+ components: [
481
+ {
482
+ internalType: "address",
483
+ name: "owner",
484
+ type: "address",
485
+ },
486
+ {
487
+ internalType: "uint32",
488
+ name: "boxId",
489
+ type: "uint32",
490
+ },
491
+ {
492
+ internalType: "uint256",
493
+ name: "expiry",
494
+ type: "uint256",
495
+ },
496
+ {
497
+ internalType: "uint256",
498
+ name: "requestId",
499
+ type: "uint256",
500
+ },
501
+ {
502
+ internalType: "uint256",
503
+ name: "nonce",
504
+ type: "uint256",
505
+ },
506
+ ],
507
+ internalType: "struct IPCrossChainSwapHub.BoxPermit",
508
+ name: "permit",
509
+ type: "tuple",
776
510
  },
777
511
  {
778
512
  internalType: "address",
@@ -784,36 +518,16 @@ const _abi = [
784
518
  name: "amountSpent",
785
519
  type: "uint256",
786
520
  },
787
- {
788
- internalType: "uint256",
789
- name: "amountFee",
790
- type: "uint256",
791
- },
792
521
  {
793
522
  internalType: "address",
794
- name: "ptAdapter",
523
+ name: "tokenReceived",
795
524
  type: "address",
796
525
  },
797
526
  {
798
527
  internalType: "uint256",
799
- name: "minPtReceived",
528
+ name: "minReceived",
800
529
  type: "uint256",
801
530
  },
802
- {
803
- internalType: "uint32",
804
- name: "dstEid",
805
- type: "uint32",
806
- },
807
- {
808
- internalType: "bytes32",
809
- name: "receiver",
810
- type: "bytes32",
811
- },
812
- {
813
- internalType: "bool",
814
- name: "pullFromOwner",
815
- type: "bool",
816
- },
817
531
  {
818
532
  internalType: "address",
819
533
  name: "swapExtRouter",
@@ -830,8 +544,8 @@ const _abi = [
830
544
  type: "bytes",
831
545
  },
832
546
  ],
833
- internalType: "struct IPCrossChainSwapHub.BuyCrossChainPtMessage",
834
- name: "message",
547
+ internalType: "struct IPCrossChainSwapHub.SwapTokenMessage",
548
+ name: "ms",
835
549
  type: "tuple",
836
550
  },
837
551
  ],
@@ -851,25 +565,105 @@ const _abi = [
851
565
  {
852
566
  components: [
853
567
  {
854
- internalType: "address",
855
- name: "owner",
856
- type: "address",
568
+ components: [
569
+ {
570
+ internalType: "address",
571
+ name: "owner",
572
+ type: "address",
573
+ },
574
+ {
575
+ internalType: "uint32",
576
+ name: "boxId",
577
+ type: "uint32",
578
+ },
579
+ {
580
+ internalType: "uint256",
581
+ name: "expiry",
582
+ type: "uint256",
583
+ },
584
+ {
585
+ internalType: "uint256",
586
+ name: "requestId",
587
+ type: "uint256",
588
+ },
589
+ {
590
+ internalType: "uint256",
591
+ name: "nonce",
592
+ type: "uint256",
593
+ },
594
+ ],
595
+ internalType: "struct IPCrossChainSwapHub.BoxPermit",
596
+ name: "permit",
597
+ type: "tuple",
857
598
  },
858
599
  {
859
- internalType: "uint32",
860
- name: "boxId",
861
- type: "uint32",
600
+ internalType: "address",
601
+ name: "token",
602
+ type: "address",
862
603
  },
863
604
  {
864
605
  internalType: "uint256",
865
- name: "expiry",
606
+ name: "amountWithdraw",
866
607
  type: "uint256",
867
608
  },
868
609
  {
869
610
  internalType: "uint256",
870
- name: "nonce",
611
+ name: "amountFee",
871
612
  type: "uint256",
872
613
  },
614
+ ],
615
+ internalType: "struct IPCrossChainSwapHub.WithdrawTokenMessage",
616
+ name: "ms",
617
+ type: "tuple",
618
+ },
619
+ ],
620
+ name: "hashTypedData",
621
+ outputs: [
622
+ {
623
+ internalType: "bytes32",
624
+ name: "",
625
+ type: "bytes32",
626
+ },
627
+ ],
628
+ stateMutability: "view",
629
+ type: "function",
630
+ },
631
+ {
632
+ inputs: [
633
+ {
634
+ components: [
635
+ {
636
+ components: [
637
+ {
638
+ internalType: "address",
639
+ name: "owner",
640
+ type: "address",
641
+ },
642
+ {
643
+ internalType: "uint32",
644
+ name: "boxId",
645
+ type: "uint32",
646
+ },
647
+ {
648
+ internalType: "uint256",
649
+ name: "expiry",
650
+ type: "uint256",
651
+ },
652
+ {
653
+ internalType: "uint256",
654
+ name: "requestId",
655
+ type: "uint256",
656
+ },
657
+ {
658
+ internalType: "uint256",
659
+ name: "nonce",
660
+ type: "uint256",
661
+ },
662
+ ],
663
+ internalType: "struct IPCrossChainSwapHub.BoxPermit",
664
+ name: "permit",
665
+ type: "tuple",
666
+ },
873
667
  {
874
668
  internalType: "address",
875
669
  name: "token",
@@ -885,11 +679,6 @@ const _abi = [
885
679
  name: "amountFee",
886
680
  type: "uint256",
887
681
  },
888
- {
889
- internalType: "bool",
890
- name: "pullFromOwner",
891
- type: "bool",
892
- },
893
682
  {
894
683
  internalType: "address",
895
684
  name: "bridgeExtRouter",
@@ -907,7 +696,7 @@ const _abi = [
907
696
  },
908
697
  ],
909
698
  internalType: "struct IPCrossChainSwapHub.BridgeTokenMessage",
910
- name: "message",
699
+ name: "ms",
911
700
  type: "tuple",
912
701
  },
913
702
  ],
@@ -923,19 +712,26 @@ const _abi = [
923
712
  type: "function",
924
713
  },
925
714
  {
926
- inputs: [
715
+ inputs: [],
716
+ name: "owner",
717
+ outputs: [
927
718
  {
928
719
  internalType: "address",
929
- name: "executor",
720
+ name: "",
930
721
  type: "address",
931
722
  },
932
723
  ],
933
- name: "isExecutor",
724
+ stateMutability: "view",
725
+ type: "function",
726
+ },
727
+ {
728
+ inputs: [],
729
+ name: "pendingOwner",
934
730
  outputs: [
935
731
  {
936
- internalType: "bool",
732
+ internalType: "address",
937
733
  name: "",
938
- type: "bool",
734
+ type: "address",
939
735
  },
940
736
  ],
941
737
  stateMutability: "view",
@@ -943,7 +739,7 @@ const _abi = [
943
739
  },
944
740
  {
945
741
  inputs: [],
946
- name: "owner",
742
+ name: "proposer",
947
743
  outputs: [
948
744
  {
949
745
  internalType: "address",
@@ -957,12 +753,12 @@ const _abi = [
957
753
  {
958
754
  inputs: [
959
755
  {
960
- internalType: "address",
961
- name: "owner",
962
- type: "address",
756
+ internalType: "uint256",
757
+ name: "requestId",
758
+ type: "uint256",
963
759
  },
964
760
  ],
965
- name: "ownerNonce",
761
+ name: "requestNonce",
966
762
  outputs: [
967
763
  {
968
764
  internalType: "uint256",
@@ -974,32 +770,27 @@ const _abi = [
974
770
  type: "function",
975
771
  },
976
772
  {
977
- inputs: [],
978
- name: "pendingOwner",
979
- outputs: [
773
+ inputs: [
980
774
  {
981
775
  internalType: "address",
982
- name: "",
776
+ name: "executor_",
983
777
  type: "address",
984
778
  },
985
779
  ],
986
- stateMutability: "view",
780
+ name: "setExecutor",
781
+ outputs: [],
782
+ stateMutability: "nonpayable",
987
783
  type: "function",
988
784
  },
989
785
  {
990
786
  inputs: [
991
787
  {
992
788
  internalType: "address",
993
- name: "executor",
789
+ name: "proposer_",
994
790
  type: "address",
995
791
  },
996
- {
997
- internalType: "bool",
998
- name: "isExecutor_",
999
- type: "bool",
1000
- },
1001
792
  ],
1002
- name: "setExecutor",
793
+ name: "setProposer",
1003
794
  outputs: [],
1004
795
  stateMutability: "nonpayable",
1005
796
  type: "function",
@@ -1009,24 +800,36 @@ const _abi = [
1009
800
  {
1010
801
  components: [
1011
802
  {
1012
- internalType: "address",
1013
- name: "owner",
1014
- type: "address",
1015
- },
1016
- {
1017
- internalType: "uint32",
1018
- name: "boxId",
1019
- type: "uint32",
1020
- },
1021
- {
1022
- internalType: "uint256",
1023
- name: "expiry",
1024
- type: "uint256",
1025
- },
1026
- {
1027
- internalType: "uint256",
1028
- name: "nonce",
1029
- type: "uint256",
803
+ components: [
804
+ {
805
+ internalType: "address",
806
+ name: "owner",
807
+ type: "address",
808
+ },
809
+ {
810
+ internalType: "uint32",
811
+ name: "boxId",
812
+ type: "uint32",
813
+ },
814
+ {
815
+ internalType: "uint256",
816
+ name: "expiry",
817
+ type: "uint256",
818
+ },
819
+ {
820
+ internalType: "uint256",
821
+ name: "requestId",
822
+ type: "uint256",
823
+ },
824
+ {
825
+ internalType: "uint256",
826
+ name: "nonce",
827
+ type: "uint256",
828
+ },
829
+ ],
830
+ internalType: "struct IPCrossChainSwapHub.BoxPermit",
831
+ name: "permit",
832
+ type: "tuple",
1030
833
  },
1031
834
  {
1032
835
  internalType: "address",
@@ -1038,11 +841,6 @@ const _abi = [
1038
841
  name: "amountSpent",
1039
842
  type: "uint256",
1040
843
  },
1041
- {
1042
- internalType: "uint256",
1043
- name: "amountFee",
1044
- type: "uint256",
1045
- },
1046
844
  {
1047
845
  internalType: "address",
1048
846
  name: "tokenReceived",
@@ -1053,16 +851,6 @@ const _abi = [
1053
851
  name: "minReceived",
1054
852
  type: "uint256",
1055
853
  },
1056
- {
1057
- internalType: "bool",
1058
- name: "pullFromOwner",
1059
- type: "bool",
1060
- },
1061
- {
1062
- internalType: "bool",
1063
- name: "sendToOwner",
1064
- type: "bool",
1065
- },
1066
854
  {
1067
855
  internalType: "address",
1068
856
  name: "swapExtRouter",
@@ -1122,24 +910,36 @@ const _abi = [
1122
910
  {
1123
911
  components: [
1124
912
  {
1125
- internalType: "address",
1126
- name: "owner",
1127
- type: "address",
1128
- },
1129
- {
1130
- internalType: "uint32",
1131
- name: "boxId",
1132
- type: "uint32",
1133
- },
1134
- {
1135
- internalType: "uint256",
1136
- name: "expiry",
1137
- type: "uint256",
1138
- },
1139
- {
1140
- internalType: "uint256",
1141
- name: "nonce",
1142
- type: "uint256",
913
+ components: [
914
+ {
915
+ internalType: "address",
916
+ name: "owner",
917
+ type: "address",
918
+ },
919
+ {
920
+ internalType: "uint32",
921
+ name: "boxId",
922
+ type: "uint32",
923
+ },
924
+ {
925
+ internalType: "uint256",
926
+ name: "expiry",
927
+ type: "uint256",
928
+ },
929
+ {
930
+ internalType: "uint256",
931
+ name: "requestId",
932
+ type: "uint256",
933
+ },
934
+ {
935
+ internalType: "uint256",
936
+ name: "nonce",
937
+ type: "uint256",
938
+ },
939
+ ],
940
+ internalType: "struct IPCrossChainSwapHub.BoxPermit",
941
+ name: "permit",
942
+ type: "tuple",
1143
943
  },
1144
944
  {
1145
945
  internalType: "address",