@pendle/core-v2 6.3.2-swaphubtest2 → 6.3.2-swaphubtest3

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 (248) hide show
  1. package/build/artifacts/contracts/LiquidityMining/CrossChainMsg/PendleMsgReceiveEndpointUpg.sol/PendleMsgReceiveEndpointUpg.dbg.json +1 -1
  2. package/build/artifacts/contracts/LiquidityMining/CrossChainMsg/PendleMsgReceiverAppUpg.sol/PendleMsgReceiverAppUpg.dbg.json +1 -1
  3. package/build/artifacts/contracts/LiquidityMining/CrossChainMsg/PendleMsgSendEndpointUpg.sol/PendleMsgSendEndpointUpg.dbg.json +1 -1
  4. package/build/artifacts/contracts/LiquidityMining/CrossChainMsg/PendleMsgSenderAppUpg.sol/PendleMsgSenderAppUpg.dbg.json +1 -1
  5. package/build/artifacts/contracts/LiquidityMining/CrossChainMsg/libraries/ExcessivelySafeCall.sol/ExcessivelySafeCall.dbg.json +1 -1
  6. package/build/artifacts/contracts/LiquidityMining/CrossChainMsg/libraries/LayerZeroHelper.sol/LayerZeroHelper.dbg.json +1 -1
  7. package/build/artifacts/contracts/LiquidityMining/GaugeController/PendleGaugeControllerBaseUpg.sol/PendleGaugeControllerBaseUpg.dbg.json +1 -1
  8. package/build/artifacts/contracts/LiquidityMining/GaugeController/PendleGaugeControllerMainchainUpg.sol/PendleGaugeControllerMainchainUpg.dbg.json +1 -1
  9. package/build/artifacts/contracts/LiquidityMining/GaugeController/PendleGaugeControllerSidechainUpg.sol/PendleGaugeControllerSidechainUpg.dbg.json +1 -1
  10. package/build/artifacts/contracts/LiquidityMining/PendleMerkleDistributor.sol/PendleMerkleDistributor.dbg.json +1 -1
  11. package/build/artifacts/contracts/LiquidityMining/PendleMultiTokenMerkleDistributor.sol/PendleMultiTokenMerkleDistributor.dbg.json +1 -1
  12. package/build/artifacts/contracts/LiquidityMining/VotingController/PendleVotingControllerUpg.sol/PendleVotingControllerUpg.dbg.json +1 -1
  13. package/build/artifacts/contracts/LiquidityMining/VotingController/VotingControllerStorageUpg.sol/VotingControllerStorageUpg.dbg.json +1 -1
  14. package/build/artifacts/contracts/LiquidityMining/VotingEscrow/VotingEscrowPendleMainchain.sol/VotingEscrowPendleMainchain.dbg.json +1 -1
  15. package/build/artifacts/contracts/LiquidityMining/VotingEscrow/VotingEscrowPendleSidechain.sol/VotingEscrowPendleSidechain.dbg.json +1 -1
  16. package/build/artifacts/contracts/LiquidityMining/VotingEscrow/VotingEscrowTokenBase.sol/VotingEscrowTokenBase.dbg.json +1 -1
  17. package/build/artifacts/contracts/LiquidityMining/libraries/VeBalanceLib.sol/VeBalanceLib.dbg.json +1 -1
  18. package/build/artifacts/contracts/LiquidityMining/libraries/VeHistoryLib.sol/CheckpointHelper.dbg.json +1 -1
  19. package/build/artifacts/contracts/LiquidityMining/libraries/VeHistoryLib.sol/Checkpoints.dbg.json +1 -1
  20. package/build/artifacts/contracts/LiquidityMining/libraries/WeekMath.sol/WeekMath.dbg.json +1 -1
  21. package/build/artifacts/contracts/core/Market/MarketMathCore.sol/MarketMathCore.dbg.json +1 -1
  22. package/build/artifacts/contracts/core/Market/OracleLib.sol/OracleLib.dbg.json +1 -1
  23. package/build/artifacts/contracts/core/Market/PendleGauge.sol/PendleGauge.dbg.json +1 -1
  24. package/build/artifacts/contracts/core/Market/PendleMarketFactoryV6Upg.sol/PendleMarketFactoryV6Upg.dbg.json +1 -1
  25. package/build/artifacts/contracts/core/Market/PendleMarketV6.sol/PendleMarketV6.dbg.json +1 -1
  26. package/build/artifacts/contracts/core/RewardManager/RewardManager.sol/RewardManager.dbg.json +1 -1
  27. package/build/artifacts/contracts/core/RewardManager/RewardManagerAbstract.sol/RewardManagerAbstract.dbg.json +1 -1
  28. package/build/artifacts/contracts/core/StandardizedYield/PYIndex.sol/PYIndexLib.dbg.json +1 -1
  29. package/build/artifacts/contracts/core/StandardizedYield/SYUtils.sol/SYUtils.dbg.json +1 -1
  30. package/build/artifacts/contracts/core/YieldContracts/InterestManagerYT.sol/InterestManagerYT.dbg.json +1 -1
  31. package/build/artifacts/contracts/core/YieldContracts/PendlePrincipalToken.sol/PendlePrincipalToken.dbg.json +1 -1
  32. package/build/artifacts/contracts/core/YieldContracts/PendleYieldContractFactoryUpg.sol/PendleYieldContractFactoryUpg.dbg.json +1 -1
  33. package/build/artifacts/contracts/core/YieldContracts/PendleYieldToken.sol/PendleYieldToken.dbg.json +1 -1
  34. package/build/artifacts/contracts/core/erc20/PendleERC20.sol/PendleERC20.dbg.json +1 -1
  35. package/build/artifacts/contracts/core/libraries/ArrayLib.sol/ArrayLib.dbg.json +1 -1
  36. package/build/artifacts/contracts/core/libraries/BaseSplitCodeFactory.sol/BaseSplitCodeFactory.dbg.json +1 -1
  37. package/build/artifacts/contracts/core/libraries/BaseSplitCodeFactory.sol/CodeDeployer.dbg.json +1 -1
  38. package/build/artifacts/contracts/core/libraries/BoringOwnableUpgradeableV2.sol/BoringOwnableUpgradeableData.dbg.json +1 -1
  39. package/build/artifacts/contracts/core/libraries/BoringOwnableUpgradeableV2.sol/BoringOwnableUpgradeableV2.dbg.json +1 -1
  40. package/build/artifacts/contracts/core/libraries/Errors.sol/Errors.dbg.json +1 -1
  41. package/build/artifacts/contracts/core/libraries/ExpiryUtilsLib.sol/ExpiryUtils.dbg.json +1 -1
  42. package/build/artifacts/contracts/core/libraries/MiniHelpers.sol/MiniHelpers.dbg.json +1 -1
  43. package/build/artifacts/contracts/core/libraries/StringLib.sol/StringLib.dbg.json +1 -1
  44. package/build/artifacts/contracts/core/libraries/TokenHelper.sol/TokenHelper.dbg.json +1 -1
  45. package/build/artifacts/contracts/core/libraries/math/LogExpMath.sol/LogExpMath.dbg.json +1 -1
  46. package/build/artifacts/contracts/core/libraries/math/PMath.sol/PMath.dbg.json +1 -1
  47. package/build/artifacts/contracts/cross-chain/FixedPricePTAMM.sol/FixedPricePTAMM.dbg.json +1 -1
  48. package/build/artifacts/contracts/cross-chain/factory/hub/PendlePTOFTAdapterFactory.sol/PendlePTOFTAdapterFactory.dbg.json +1 -1
  49. package/build/artifacts/contracts/cross-chain/oftImpl/hub/OFTAdapterImpl.sol/OFTAdapterImpl.dbg.json +1 -1
  50. package/build/artifacts/contracts/cross-chain/oftImpl/spoke/PendleBridgedPrincipalToken.sol/PendleBridgedPrincipalToken.dbg.json +1 -1
  51. package/build/artifacts/contracts/cross-chain/swap-hub/DepositBox.sol/DepositBox.dbg.json +1 -1
  52. package/build/artifacts/contracts/cross-chain/swap-hub/PendleCrossChainSwapHub.sol/PendleCrossChainSwapHub.dbg.json +1 -1
  53. package/build/artifacts/contracts/cross-chain/swap-hub/PendleCrossChainSwapHub.sol/PendleCrossChainSwapHub.json +157 -494
  54. package/build/artifacts/contracts/cross-chain/swap-hub/SwapHubBase.sol/SwapHubBase.dbg.json +1 -1
  55. package/build/artifacts/contracts/cross-chain/swap-hub/SwapHubBase.sol/SwapHubBase.json +155 -492
  56. package/build/artifacts/contracts/cross-chain/swap-hub/swap/IPSwapExecutor.sol/IPSwapExecutor.dbg.json +1 -1
  57. package/build/artifacts/contracts/cross-chain/swap-hub/swap/SwapExecutor.sol/SwapExecutor.dbg.json +1 -1
  58. package/build/artifacts/contracts/cross-chain/swap-hub/swap/SwapExecutor.sol/SwapExecutor.json +2 -2
  59. package/build/artifacts/contracts/deprecated/VeDistributor/PendleFeeDistributor.sol/PendleFeeDistributor.dbg.json +1 -1
  60. package/build/artifacts/contracts/deprecated/VeDistributor/PendleFeeDistributorV2.sol/PendleFeeDistributorV2.dbg.json +1 -1
  61. package/build/artifacts/contracts/interfaces/IAddressProvider.sol/IAddressProvider.dbg.json +1 -1
  62. package/build/artifacts/contracts/interfaces/ILPWrapper.sol/ILPWrapper.dbg.json +1 -1
  63. package/build/artifacts/contracts/interfaces/ILayerZeroEndpoint.sol/ILayerZeroEndpoint.dbg.json +1 -1
  64. package/build/artifacts/contracts/interfaces/ILayerZeroReceiver.sol/ILayerZeroReceiver.dbg.json +1 -1
  65. package/build/artifacts/contracts/interfaces/IMarketSweed.sol/IMarketSweed.dbg.json +1 -1
  66. package/build/artifacts/contracts/interfaces/IOwnable.sol/IOwnable.dbg.json +1 -1
  67. package/build/artifacts/contracts/interfaces/IPActionAddRemoveLiqV3.sol/IPActionAddRemoveLiqV3.dbg.json +1 -1
  68. package/build/artifacts/contracts/interfaces/IPActionCallbackV3.sol/IPActionCallbackV3.dbg.json +1 -1
  69. package/build/artifacts/contracts/interfaces/IPActionInfoStatic.sol/IPActionInfoStatic.dbg.json +1 -1
  70. package/build/artifacts/contracts/interfaces/IPActionMarketAuxStatic.sol/IPActionMarketAuxStatic.dbg.json +1 -1
  71. package/build/artifacts/contracts/interfaces/IPActionMarketCoreStatic.sol/IPActionMarketCoreStatic.dbg.json +1 -1
  72. package/build/artifacts/contracts/interfaces/IPActionMintRedeemStatic.sol/IPActionMintRedeemStatic.dbg.json +1 -1
  73. package/build/artifacts/contracts/interfaces/IPActionMiscV3.sol/IPActionMiscV3.dbg.json +1 -1
  74. package/build/artifacts/contracts/interfaces/IPActionSimple.sol/IPActionSimple.dbg.json +1 -1
  75. package/build/artifacts/contracts/interfaces/IPActionStorageStatic.sol/IPActionStorageStatic.dbg.json +1 -1
  76. package/build/artifacts/contracts/interfaces/IPActionStorageV4.sol/IPActionStorageV4.dbg.json +1 -1
  77. package/build/artifacts/contracts/interfaces/IPActionSwapPTV3.sol/IPActionSwapPTV3.dbg.json +1 -1
  78. package/build/artifacts/contracts/interfaces/IPActionSwapYTV3.sol/IPActionSwapYTV3.dbg.json +1 -1
  79. package/build/artifacts/contracts/interfaces/IPActionVePendleStatic.sol/IPActionVePendleStatic.dbg.json +1 -1
  80. package/build/artifacts/contracts/interfaces/IPAllActionV3.sol/IPAllActionV3.dbg.json +1 -1
  81. package/build/artifacts/contracts/interfaces/IPAllEventsV3.sol/IPActionAddRemoveLiqV3Events.dbg.json +1 -1
  82. package/build/artifacts/contracts/interfaces/IPAllEventsV3.sol/IPActionMiscV3Events.dbg.json +1 -1
  83. package/build/artifacts/contracts/interfaces/IPAllEventsV3.sol/IPActionStorageEvents.dbg.json +1 -1
  84. package/build/artifacts/contracts/interfaces/IPAllEventsV3.sol/IPActionSwapPTV3Events.dbg.json +1 -1
  85. package/build/artifacts/contracts/interfaces/IPAllEventsV3.sol/IPActionSwapYTV3Events.dbg.json +1 -1
  86. package/build/artifacts/contracts/interfaces/IPAllEventsV3.sol/IPAllEventsV3.dbg.json +1 -1
  87. package/build/artifacts/contracts/interfaces/IPBridgedPrincipalToken.sol/IPBridgedPrincipalToken.dbg.json +1 -1
  88. package/build/artifacts/contracts/interfaces/IPChainlinkOracle.sol/IPChainlinkOracle.dbg.json +1 -1
  89. package/build/artifacts/contracts/interfaces/IPChainlinkOracleEssential.sol/IPChainlinkOracleEssential.dbg.json +1 -1
  90. package/build/artifacts/contracts/interfaces/IPChainlinkOracleFactory.sol/IPChainlinkOracleFactory.dbg.json +1 -1
  91. package/build/artifacts/contracts/interfaces/IPChainlinkOracleWithQuote.sol/IPChainlinkOracleWithQuote.dbg.json +1 -1
  92. package/build/artifacts/contracts/interfaces/IPCommonPoolDeployHelperV2.sol/IPCommonPoolDeployHelperV2.dbg.json +1 -1
  93. package/build/artifacts/contracts/interfaces/IPCommonSYFactory.sol/IPCommonSYFactory.dbg.json +1 -1
  94. package/build/artifacts/contracts/interfaces/IPCrossChainSwapHub.sol/IPCrossChainSwapHub.dbg.json +1 -1
  95. package/build/artifacts/contracts/interfaces/IPCrossChainSwapHub.sol/IPCrossChainSwapHub.json +84 -421
  96. package/build/artifacts/contracts/interfaces/IPDepositBox.sol/IPDepositBox.dbg.json +1 -1
  97. package/build/artifacts/contracts/interfaces/IPExchangeRateOracle.sol/IPExchangeRateOracle.dbg.json +1 -1
  98. package/build/artifacts/contracts/interfaces/IPExchangeRateOracleApp.sol/IPExchangeRateOracleApp.dbg.json +1 -1
  99. package/build/artifacts/contracts/interfaces/IPFeeDistributor.sol/IPFeeDistributor.dbg.json +1 -1
  100. package/build/artifacts/contracts/interfaces/IPFeeDistributorV2.sol/IPFeeDistributorV2.dbg.json +1 -1
  101. package/build/artifacts/contracts/interfaces/IPFixedPricePTAMM.sol/IPFixedPricePTAMM.dbg.json +1 -1
  102. package/build/artifacts/contracts/interfaces/IPFixedPricePTAMM.sol/IPFixedPricePTAMMSwapCallback.dbg.json +1 -1
  103. package/build/artifacts/contracts/interfaces/IPGauge.sol/IPGauge.dbg.json +1 -1
  104. package/build/artifacts/contracts/interfaces/IPGaugeController.sol/IPGaugeController.dbg.json +1 -1
  105. package/build/artifacts/contracts/interfaces/IPGaugeControllerMainchain.sol/IPGaugeControllerMainchain.dbg.json +1 -1
  106. package/build/artifacts/contracts/interfaces/IPGovernanceProxy.sol/IPGovernanceProxy.dbg.json +1 -1
  107. package/build/artifacts/contracts/interfaces/IPInterestManagerYT.sol/IPInterestManagerYT.dbg.json +1 -1
  108. package/build/artifacts/contracts/interfaces/IPInterestManagerYTV2.sol/IPInterestManagerYTV2.dbg.json +1 -1
  109. package/build/artifacts/contracts/interfaces/IPLPWrapperFactory.sol/IPLPWrapperFactory.dbg.json +1 -1
  110. package/build/artifacts/contracts/interfaces/IPLimitRouter.sol/IPLimitOrderType.dbg.json +1 -1
  111. package/build/artifacts/contracts/interfaces/IPLimitRouter.sol/IPLimitRouter.dbg.json +1 -1
  112. package/build/artifacts/contracts/interfaces/IPLimitRouter.sol/IPLimitRouterCallback.dbg.json +1 -1
  113. package/build/artifacts/contracts/interfaces/IPMarket.sol/IPMarket.dbg.json +1 -1
  114. package/build/artifacts/contracts/interfaces/IPMarketFactory.sol/IPMarketFactory.dbg.json +1 -1
  115. package/build/artifacts/contracts/interfaces/IPMarketSwapCallback.sol/IPMarketSwapCallback.dbg.json +1 -1
  116. package/build/artifacts/contracts/interfaces/IPMerkleDistributor.sol/IPMerkleDistributor.dbg.json +1 -1
  117. package/build/artifacts/contracts/interfaces/IPMiniDiamond.sol/IPMiniDiamond.dbg.json +1 -1
  118. package/build/artifacts/contracts/interfaces/IPMsgReceiverApp.sol/IPMsgReceiverApp.dbg.json +1 -1
  119. package/build/artifacts/contracts/interfaces/IPMsgSendEndpoint.sol/IPMsgSendEndpoint.dbg.json +1 -1
  120. package/build/artifacts/contracts/interfaces/IPMultiTokenMerkleDistributor.sol/IPMultiTokenMerkleDistributor.dbg.json +1 -1
  121. package/build/artifacts/contracts/interfaces/IPOffchainStorage.sol/IPOffchainStorage.dbg.json +1 -1
  122. package/build/artifacts/contracts/interfaces/IPOracleForSy.sol/IPOracleForSy.dbg.json +1 -1
  123. package/build/artifacts/contracts/interfaces/IPPTOFTAdapterFactory.sol/IPPTOFTAdapterFactory.dbg.json +1 -1
  124. package/build/artifacts/contracts/interfaces/IPPYLpOracle.sol/IPPYLpOracle.dbg.json +1 -1
  125. package/build/artifacts/contracts/interfaces/IPPausingInterface.sol/IPPausingInterface.dbg.json +1 -1
  126. package/build/artifacts/contracts/interfaces/IPPoolDeployHelperV2.sol/IPPoolDeployHelperV2.dbg.json +1 -1
  127. package/build/artifacts/contracts/interfaces/IPPriceFeed.sol/IPPriceFeed.dbg.json +1 -1
  128. package/build/artifacts/contracts/interfaces/IPPrincipalToken.sol/IPPrincipalToken.dbg.json +1 -1
  129. package/build/artifacts/contracts/interfaces/IPReflector.sol/IPReflector.dbg.json +1 -1
  130. package/build/artifacts/contracts/interfaces/IPRouterStatic.sol/IPRouterStatic.dbg.json +1 -1
  131. package/build/artifacts/contracts/interfaces/IPTokenWithSupplyCap.sol/IPTokenWithSupplyCap.dbg.json +1 -1
  132. package/build/artifacts/contracts/interfaces/IPVeToken.sol/IPVeToken.dbg.json +1 -1
  133. package/build/artifacts/contracts/interfaces/IPVotingController.sol/IPVotingController.dbg.json +1 -1
  134. package/build/artifacts/contracts/interfaces/IPVotingEscrowMainchain.sol/IPVotingEscrowMainchain.dbg.json +1 -1
  135. package/build/artifacts/contracts/interfaces/IPYieldContractFactory.sol/IPYieldContractFactory.dbg.json +1 -1
  136. package/build/artifacts/contracts/interfaces/IPYieldToken.sol/IPYieldToken.dbg.json +1 -1
  137. package/build/artifacts/contracts/interfaces/IPYieldTokenV2.sol/IPYieldTokenV2.dbg.json +1 -1
  138. package/build/artifacts/contracts/interfaces/IRedstonePriceFeed.sol/IRedstonePriceFeed.dbg.json +1 -1
  139. package/build/artifacts/contracts/interfaces/IRewardManager.sol/IRewardManager.dbg.json +1 -1
  140. package/build/artifacts/contracts/interfaces/IStandardizedYield.sol/IStandardizedYield.dbg.json +1 -1
  141. package/build/artifacts/contracts/interfaces/IWETH.sol/IWETH.dbg.json +1 -1
  142. package/build/artifacts/contracts/interfaces/IWstETH.sol/IWstETH.dbg.json +1 -1
  143. package/build/artifacts/contracts/limit/LimitMathCore.sol/LimitMathCore.dbg.json +1 -1
  144. package/build/artifacts/contracts/limit/LimitRouterBase.sol/LimitRouterBase.dbg.json +1 -1
  145. package/build/artifacts/contracts/limit/helpers/NonceManager.sol/NonceManager.dbg.json +1 -1
  146. package/build/artifacts/contracts/offchain-helpers/AddressProvider.sol/AddressProvider.dbg.json +1 -1
  147. package/build/artifacts/contracts/offchain-helpers/AutomateReady.sol/AutomateReady.dbg.json +1 -1
  148. package/build/artifacts/contracts/offchain-helpers/AutomateReady.sol/IAutomate.dbg.json +1 -1
  149. package/build/artifacts/contracts/offchain-helpers/AutomateReady.sol/IOpsProxyFactory.dbg.json +1 -1
  150. package/build/artifacts/contracts/offchain-helpers/AutomateReady.sol/ITaskTreasuryUpgradable.dbg.json +1 -1
  151. package/build/artifacts/contracts/offchain-helpers/BalanceReader.sol/BalanceReader.dbg.json +1 -1
  152. package/build/artifacts/contracts/offchain-helpers/BaseSplitCodeFactoryContract.sol/BaseSplitCodeFactoryContract.dbg.json +1 -1
  153. package/build/artifacts/contracts/offchain-helpers/Broadcaster.sol/Broadcaster.dbg.json +1 -1
  154. package/build/artifacts/contracts/offchain-helpers/BytesLib.sol/BytesLib.dbg.json +1 -1
  155. package/build/artifacts/contracts/offchain-helpers/EmptyUUPS.sol/EmptyUUPS.dbg.json +1 -1
  156. package/build/artifacts/contracts/offchain-helpers/ExpiredLpPtRedeemer.sol/ExpiredLpPtRedeemer.dbg.json +1 -1
  157. package/build/artifacts/contracts/offchain-helpers/LegacyNFTHelper.sol/LegacyNFTHelper.dbg.json +1 -1
  158. package/build/artifacts/contracts/offchain-helpers/LegacyNFTHelper.sol/StarNFTV1.dbg.json +1 -1
  159. package/build/artifacts/contracts/offchain-helpers/LimitBackendHelperV2.sol/LimitBackendHelperV2.dbg.json +1 -1
  160. package/build/artifacts/contracts/offchain-helpers/MarketSweed.sol/MarketSweed.dbg.json +1 -1
  161. package/build/artifacts/contracts/offchain-helpers/Multicall2.sol/Multicall2.dbg.json +1 -1
  162. package/build/artifacts/contracts/offchain-helpers/PendleExchangeRateOracle.sol/PendleExchangeRateOracle.dbg.json +1 -1
  163. package/build/artifacts/contracts/offchain-helpers/PendleFeeSetter.sol/PendleFeeSetter.dbg.json +1 -1
  164. package/build/artifacts/contracts/offchain-helpers/PendleGovernanceProxy.sol/PendleGovernanceProxy.dbg.json +1 -1
  165. package/build/artifacts/contracts/offchain-helpers/PendleLPWrapper.sol/PendleLPWrapper.dbg.json +1 -1
  166. package/build/artifacts/contracts/offchain-helpers/PendleLPWrapperFactory.sol/PendleLPWrapperFactory.dbg.json +1 -1
  167. package/build/artifacts/contracts/offchain-helpers/PendleMulticallOwnerV1.sol/PendleMulticallOwnerV1.dbg.json +1 -1
  168. package/build/artifacts/contracts/offchain-helpers/PendleMulticallV1.sol/PendleMulticallV1.dbg.json +1 -1
  169. package/build/artifacts/contracts/offchain-helpers/PendleMulticallV2.sol/PendleMulticallV2.dbg.json +1 -1
  170. package/build/artifacts/contracts/offchain-helpers/PendleOffchainStorage.sol/PendleOffchainStorage.dbg.json +1 -1
  171. package/build/artifacts/contracts/offchain-helpers/PendleWstETHPriceFeed.sol/PendleWstETHPriceFeed.dbg.json +1 -1
  172. package/build/artifacts/contracts/offchain-helpers/SimulateHelper.sol/SimulateHelper.dbg.json +1 -1
  173. package/build/artifacts/contracts/offchain-helpers/SupplyCapReader.sol/IPossibleSupplyCapInterface.dbg.json +1 -1
  174. package/build/artifacts/contracts/offchain-helpers/SupplyCapReader.sol/SupplyCapReader.dbg.json +1 -1
  175. package/build/artifacts/contracts/offchain-helpers/deploy/PendleCommonPoolDeployHelperV2.sol/PendleCommonPoolDeployHelperV2.dbg.json +1 -1
  176. package/build/artifacts/contracts/offchain-helpers/deploy/PendleCommonSYFactory.sol/PendleCommonSYFactory.dbg.json +1 -1
  177. package/build/artifacts/contracts/offchain-helpers/deploy/PendlePoolDeployHelper.sol/PendlePoolDeployHelper.dbg.json +1 -1
  178. package/build/artifacts/contracts/offchain-helpers/deploy/PendlePoolDeployHelperV2.sol/PendlePoolDeployHelperV2.dbg.json +1 -1
  179. package/build/artifacts/contracts/offchain-helpers/deploy/lib/MarketDeployLib.sol/MarketDeployLib.dbg.json +1 -1
  180. package/build/artifacts/contracts/offchain-helpers/errors/SDKErrorsDirectory.sol/SDKErrorsDirectory.dbg.json +1 -1
  181. package/build/artifacts/contracts/offchain-helpers/router-static/PendleRouterStatic.sol/PendleRouterStatic.dbg.json +1 -1
  182. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionInfoStatic.sol/ActionInfoStatic.dbg.json +1 -1
  183. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionMarketAuxStatic.sol/ActionMarketAuxStatic.dbg.json +1 -1
  184. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionMarketCoreStatic.sol/ActionMarketCoreStatic.dbg.json +1 -1
  185. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionMintRedeemStatic.sol/ActionMintRedeemStatic.dbg.json +1 -1
  186. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionStorageStatic.sol/ActionStorageStatic.dbg.json +1 -1
  187. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionVePendleStatic.sol/ActionVePendleStatic.dbg.json +1 -1
  188. package/build/artifacts/contracts/offchain-helpers/router-static/base/MarketApproxLibV1.sol/MarketApproxPtInLibV1.dbg.json +1 -1
  189. package/build/artifacts/contracts/offchain-helpers/router-static/base/MarketApproxLibV1.sol/MarketApproxPtOutLibV1.dbg.json +1 -1
  190. package/build/artifacts/contracts/offchain-helpers/router-static/base/StorageLayout.sol/StorageLayout.dbg.json +1 -1
  191. package/build/artifacts/contracts/oracles/CrossChainOracle/base/PendleCrossChainOracleBaseApp_Init.sol/PendleCrossChainOracleBaseApp_Init.dbg.json +1 -1
  192. package/build/artifacts/contracts/oracles/CrossChainOracle/exchangeRate/PendleExchangeRateOracleApp.sol/PendleExchangeRateOracleApp.dbg.json +1 -1
  193. package/build/artifacts/contracts/oracles/CrossChainOracle/exchangeRate/PendleExchangeRateOracleV2.sol/PendleExchangeRateOracleV2.dbg.json +1 -1
  194. package/build/artifacts/contracts/oracles/CrossChainOracle/libraries/ExchangeRateMsgCodec.sol/ExchangeRateMsgCodec.dbg.json +1 -1
  195. package/build/artifacts/contracts/oracles/PtYtLpOracle/PendleLpOracleLib.sol/PendleLpOracleLib.dbg.json +1 -1
  196. package/build/artifacts/contracts/oracles/PtYtLpOracle/PendlePYLpOracle.sol/PendlePYLpOracle.dbg.json +1 -1
  197. package/build/artifacts/contracts/oracles/PtYtLpOracle/PendlePYOracleLib.sol/PendlePYOracleLib.dbg.json +1 -1
  198. package/build/artifacts/contracts/oracles/PtYtLpOracle/chainlink/PendleChainlinkOracle.sol/PendleChainlinkOracle.dbg.json +1 -1
  199. package/build/artifacts/contracts/oracles/PtYtLpOracle/chainlink/PendleChainlinkOracleFactory.sol/PendleChainlinkOracleFactory.dbg.json +1 -1
  200. package/build/artifacts/contracts/oracles/PtYtLpOracle/chainlink/PendleChainlinkOracleWithQuote.sol/PendleChainlinkOracleWithQuote.dbg.json +1 -1
  201. package/build/artifacts/contracts/oracles/PtYtLpOracle/samples/BoringLpSeller.sol/BoringLpSeller.dbg.json +1 -1
  202. package/build/artifacts/contracts/oracles/PtYtLpOracle/samples/BoringPYUsdChainlinkAssetOracle.sol/BoringPYUsdChainlinkAssetOracle.dbg.json +1 -1
  203. package/build/artifacts/contracts/oracles/PtYtLpOracle/samples/BoringPYUsdChainlinkSYOracle.sol/BoringPYUsdChainlinkSYOracle.dbg.json +1 -1
  204. package/build/artifacts/contracts/oracles/PtYtLpOracle/samples/BoringPtSeller.sol/BoringPtSeller.dbg.json +1 -1
  205. package/build/artifacts/contracts/oracles/StatelessWrapper/PendleLinearDiscountOracleWrapper.sol/PendleLinearDiscountOracleWrapper.dbg.json +1 -1
  206. package/build/artifacts/contracts/oracles/StatelessWrapper/PendleSparkLinearDiscountOracleFactoryWrapper.sol/PendleSparkLinearDiscountOracleFactoryWrapper.dbg.json +1 -1
  207. package/build/artifacts/contracts/oracles/internal/PendleBoringOneracle.sol/PendleBoringOneracle.dbg.json +1 -1
  208. package/build/artifacts/contracts/oracles/internal/PendleBoringSolvBTCOneracle.sol/PendleBoringSolvBTCOneracle.dbg.json +1 -1
  209. package/build/artifacts/contracts/oracles/internal/PendleLpLinearDiscountOracle.sol/LPExpiry.dbg.json +1 -1
  210. package/build/artifacts/contracts/oracles/internal/PendleLpLinearDiscountOracle.sol/PendleLpLinearDiscountOracle.dbg.json +1 -1
  211. package/build/artifacts/contracts/oracles/internal/PendleLpLinearDiscountOracleFactory.sol/PendleLpLinearDiscountOracleFactory.dbg.json +1 -1
  212. package/build/artifacts/contracts/oracles/internal/PendleRedStoneRateOracleAdapter.sol/PendleRedStoneRateOracleAdapter.dbg.json +1 -1
  213. package/build/artifacts/contracts/oracles/internal/PendleSparkLinearDiscountOracle.sol/PTExpiry.dbg.json +1 -1
  214. package/build/artifacts/contracts/oracles/internal/PendleSparkLinearDiscountOracle.sol/PendleSparkLinearDiscountOracle.dbg.json +1 -1
  215. package/build/artifacts/contracts/oracles/internal/PendleSparkLinearDiscountOracleFactory.sol/PendleSparkLinearDiscountOracleFactory.dbg.json +1 -1
  216. package/build/artifacts/contracts/router/ActionStorageV4.sol/ActionStorageV4.dbg.json +1 -1
  217. package/build/artifacts/contracts/router/PendleRouterV4.sol/PendleRouterV4.dbg.json +1 -1
  218. package/build/artifacts/contracts/router/Reflector.sol/Reflector.dbg.json +1 -1
  219. package/build/artifacts/contracts/router/RouterStorage.sol/RouterStorage.dbg.json +1 -1
  220. package/build/artifacts/contracts/router/base/ActionBase.sol/ActionBase.dbg.json +1 -1
  221. package/build/artifacts/contracts/router/base/ActionDelegateBase.sol/ActionDelegateBase.dbg.json +1 -1
  222. package/build/artifacts/contracts/router/base/CallbackHelper.sol/CallbackHelper.dbg.json +1 -1
  223. package/build/artifacts/contracts/router/math/ApproxStateLib.sol/ApproxStateLib.dbg.json +1 -1
  224. package/build/artifacts/contracts/router/math/MarketApproxEstimateLib.sol/MarketApproxEstimateLib.dbg.json +1 -1
  225. package/build/artifacts/contracts/router/math/MarketApproxLibOnchain.sol/MarketApproxPtInLibOnchain.dbg.json +1 -1
  226. package/build/artifacts/contracts/router/math/MarketApproxLibOnchain.sol/MarketApproxPtOutLibOnchain.dbg.json +1 -1
  227. package/build/artifacts/contracts/router/math/MarketApproxLibV2.sol/MarketApproxPtInLibV2.dbg.json +1 -1
  228. package/build/artifacts/contracts/router/math/MarketApproxLibV2.sol/MarketApproxPtOutLibV2.dbg.json +1 -1
  229. package/build/artifacts/contracts/router/swap-aggregator/IPSwapAggregator.sol/IPSwapAggregator.dbg.json +1 -1
  230. package/build/artifacts/contracts/router/swap-aggregator/OKXScaleHelper.sol/IOKXDexRouter.dbg.json +1 -1
  231. package/build/artifacts/contracts/router/swap-aggregator/OKXScaleHelper.sol/OKXScaleHelper.dbg.json +1 -1
  232. package/build/artifacts/contracts/router/swap-aggregator/ParaswapScaleHelper.sol/IAugustusV6.dbg.json +1 -1
  233. package/build/artifacts/contracts/router/swap-aggregator/ParaswapScaleHelper.sol/ParaswapScaleHelper.dbg.json +1 -1
  234. package/build/artifacts/contracts/router/swap-aggregator/PendleSwap.sol/IKyberScalingHelper.dbg.json +1 -1
  235. package/build/artifacts/contracts/router/swap-aggregator/PendleSwap.sol/IOdosRouterV2.dbg.json +1 -1
  236. package/build/artifacts/contracts/router/swap-aggregator/PendleSwap.sol/PendleSwap.dbg.json +1 -1
  237. package/contracts/cross-chain/swap-hub/PendleCrossChainSwapHub.sol +70 -101
  238. package/contracts/cross-chain/swap-hub/SwapHubBase.sol +20 -29
  239. package/contracts/cross-chain/swap-hub/swap/SwapExecutor.sol +2 -7
  240. package/contracts/interfaces/IPCrossChainSwapHub.sol +17 -39
  241. package/package.json +1 -1
  242. package/typechain-types/IPCrossChainSwapHub.ts +138 -302
  243. package/typechain-types/PendleCrossChainSwapHub.ts +138 -302
  244. package/typechain-types/SwapHubBase.ts +138 -302
  245. package/typechain-types/factories/IPCrossChainSwapHub__factory.ts +84 -421
  246. package/typechain-types/factories/PendleCrossChainSwapHub__factory.ts +156 -493
  247. package/typechain-types/factories/SwapExecutor__factory.ts +1 -1
  248. package/typechain-types/factories/SwapHubBase__factory.ts +155 -492
@@ -5,17 +5,17 @@
5
5
  "abi": [
6
6
  {
7
7
  "inputs": [],
8
- "name": "ActionExecuted",
8
+ "name": "InsufficientTokenReceived",
9
9
  "type": "error"
10
10
  },
11
11
  {
12
12
  "inputs": [],
13
- "name": "InsufficientTokenReceived",
13
+ "name": "InvalidNonce",
14
14
  "type": "error"
15
15
  },
16
16
  {
17
17
  "inputs": [],
18
- "name": "InvalidNonce",
18
+ "name": "InvalidReceiver",
19
19
  "type": "error"
20
20
  },
21
21
  {
@@ -43,12 +43,6 @@
43
43
  "name": "boxId",
44
44
  "type": "uint32"
45
45
  },
46
- {
47
- "indexed": false,
48
- "internalType": "bytes32",
49
- "name": "actionHash",
50
- "type": "bytes32"
51
- },
52
46
  {
53
47
  "indexed": false,
54
48
  "internalType": "address",
@@ -72,6 +66,12 @@
72
66
  "internalType": "uint256",
73
67
  "name": "amountFee",
74
68
  "type": "uint256"
69
+ },
70
+ {
71
+ "indexed": false,
72
+ "internalType": "bool",
73
+ "name": "pullFromOwner",
74
+ "type": "bool"
75
75
  }
76
76
  ],
77
77
  "name": "BridgeToken",
@@ -92,12 +92,6 @@
92
92
  "name": "boxId",
93
93
  "type": "uint32"
94
94
  },
95
- {
96
- "indexed": false,
97
- "internalType": "bytes32",
98
- "name": "actionHash",
99
- "type": "bytes32"
100
- },
101
95
  {
102
96
  "indexed": false,
103
97
  "internalType": "address",
@@ -133,46 +127,15 @@
133
127
  "internalType": "uint256",
134
128
  "name": "netPtReceived",
135
129
  "type": "uint256"
136
- }
137
- ],
138
- "name": "BuyCrossChainPt",
139
- "type": "event"
140
- },
141
- {
142
- "anonymous": false,
143
- "inputs": [
144
- {
145
- "indexed": true,
146
- "internalType": "address",
147
- "name": "owner",
148
- "type": "address"
149
- },
150
- {
151
- "indexed": false,
152
- "internalType": "uint32",
153
- "name": "boxId",
154
- "type": "uint32"
155
130
  },
156
131
  {
157
132
  "indexed": false,
158
- "internalType": "bytes32",
159
- "name": "actionHash",
160
- "type": "bytes32"
161
- },
162
- {
163
- "indexed": false,
164
- "internalType": "address",
165
- "name": "token",
166
- "type": "address"
167
- },
168
- {
169
- "indexed": false,
170
- "internalType": "uint256",
171
- "name": "amount",
172
- "type": "uint256"
133
+ "internalType": "bool",
134
+ "name": "pullFromOwner",
135
+ "type": "bool"
173
136
  }
174
137
  ],
175
- "name": "ClaimFeeForFailedAction",
138
+ "name": "BuyCrossChainPt",
176
139
  "type": "event"
177
140
  },
178
141
  {
@@ -247,12 +210,6 @@
247
210
  "name": "boxId",
248
211
  "type": "uint32"
249
212
  },
250
- {
251
- "indexed": false,
252
- "internalType": "bytes32",
253
- "name": "actionHash",
254
- "type": "bytes32"
255
- },
256
213
  {
257
214
  "indexed": false,
258
215
  "internalType": "address",
@@ -282,6 +239,18 @@
282
239
  "internalType": "uint256",
283
240
  "name": "netTokenReceived",
284
241
  "type": "uint256"
242
+ },
243
+ {
244
+ "indexed": false,
245
+ "internalType": "bool",
246
+ "name": "pullFromOwner",
247
+ "type": "bool"
248
+ },
249
+ {
250
+ "indexed": false,
251
+ "internalType": "bool",
252
+ "name": "sendToOwner",
253
+ "type": "bool"
285
254
  }
286
255
  ],
287
256
  "name": "SwapToken",
@@ -302,18 +271,6 @@
302
271
  "name": "boxId",
303
272
  "type": "uint32"
304
273
  },
305
- {
306
- "indexed": false,
307
- "internalType": "bytes32",
308
- "name": "actionHash",
309
- "type": "bytes32"
310
- },
311
- {
312
- "indexed": false,
313
- "internalType": "address",
314
- "name": "receiver",
315
- "type": "address"
316
- },
317
274
  {
318
275
  "indexed": false,
319
276
  "internalType": "address",
@@ -329,284 +286,50 @@
329
286
  {
330
287
  "indexed": false,
331
288
  "internalType": "uint256",
332
- "name": "amountFee",
333
- "type": "uint256"
334
- }
335
- ],
336
- "name": "WithdrawToken",
337
- "type": "event"
338
- },
339
- {
340
- "inputs": [],
341
- "name": "BEACON_PROXY_CODE_CONTRACT",
342
- "outputs": [
343
- {
344
- "internalType": "address",
345
- "name": "",
346
- "type": "address"
347
- }
348
- ],
349
- "stateMutability": "view",
350
- "type": "function"
351
- },
352
- {
353
- "inputs": [],
354
- "name": "DEPOSIT_BOX_BEACON",
355
- "outputs": [
356
- {
357
- "internalType": "address",
358
- "name": "",
359
- "type": "address"
360
- }
361
- ],
362
- "stateMutability": "view",
363
- "type": "function"
364
- },
365
- {
366
- "inputs": [],
367
- "name": "DEPOSIT_BOX_CODE_HASH",
368
- "outputs": [
369
- {
370
- "internalType": "bytes32",
371
- "name": "",
372
- "type": "bytes32"
373
- }
374
- ],
375
- "stateMutability": "view",
376
- "type": "function"
377
- },
378
- {
379
- "inputs": [
380
- {
381
- "internalType": "bytes32",
382
- "name": "actionStatus",
383
- "type": "bytes32"
384
- }
385
- ],
386
- "name": "actionStatus",
387
- "outputs": [
388
- {
389
- "internalType": "enum IPCrossChainSwapHub.ActionStatus",
390
- "name": "",
391
- "type": "uint8"
392
- }
393
- ],
394
- "stateMutability": "view",
395
- "type": "function"
396
- },
397
- {
398
- "inputs": [
399
- {
400
- "components": [
401
- {
402
- "internalType": "address",
403
- "name": "owner",
404
- "type": "address"
405
- },
406
- {
407
- "internalType": "uint32",
408
- "name": "boxId",
409
- "type": "uint32"
410
- },
411
- {
412
- "internalType": "uint256",
413
- "name": "expiry",
414
- "type": "uint256"
415
- },
416
- {
417
- "internalType": "uint256",
418
- "name": "nonce",
419
- "type": "uint256"
420
- },
421
- {
422
- "internalType": "address",
423
- "name": "token",
424
- "type": "address"
425
- },
426
- {
427
- "internalType": "uint256",
428
- "name": "amountBridge",
429
- "type": "uint256"
430
- },
431
- {
432
- "internalType": "uint256",
433
- "name": "amountFee",
434
- "type": "uint256"
435
- },
436
- {
437
- "internalType": "address",
438
- "name": "bridgeExtRouter",
439
- "type": "address"
440
- },
441
- {
442
- "internalType": "bytes",
443
- "name": "bridgeCalldata",
444
- "type": "bytes"
445
- }
446
- ],
447
- "internalType": "struct IPCrossChainSwapHub.BridgeTokenMessage",
448
- "name": "message",
449
- "type": "tuple"
450
- },
451
- {
452
- "internalType": "bytes",
453
- "name": "signature",
454
- "type": "bytes"
455
- }
456
- ],
457
- "name": "bridgeToken",
458
- "outputs": [],
459
- "stateMutability": "payable",
460
- "type": "function"
461
- },
462
- {
463
- "inputs": [
464
- {
465
- "components": [
466
- {
467
- "internalType": "address",
468
- "name": "owner",
469
- "type": "address"
470
- },
471
- {
472
- "internalType": "uint32",
473
- "name": "boxId",
474
- "type": "uint32"
475
- },
476
- {
477
- "internalType": "uint256",
478
- "name": "expiry",
479
- "type": "uint256"
480
- },
481
- {
482
- "internalType": "uint256",
483
- "name": "nonce",
484
- "type": "uint256"
485
- },
486
- {
487
- "internalType": "address",
488
- "name": "tokenSpent",
489
- "type": "address"
490
- },
491
- {
492
- "internalType": "uint256",
493
- "name": "amountSpent",
494
- "type": "uint256"
495
- },
496
- {
497
- "internalType": "uint256",
498
- "name": "amountFee",
499
- "type": "uint256"
500
- },
501
- {
502
- "internalType": "address",
503
- "name": "ptAdapter",
504
- "type": "address"
505
- },
506
- {
507
- "internalType": "uint256",
508
- "name": "minPtReceived",
509
- "type": "uint256"
510
- },
511
- {
512
- "internalType": "uint32",
513
- "name": "dstEid",
514
- "type": "uint32"
515
- },
516
- {
517
- "internalType": "bytes32",
518
- "name": "receiver",
519
- "type": "bytes32"
520
- },
521
- {
522
- "internalType": "address",
523
- "name": "swapExecutor",
524
- "type": "address"
525
- },
526
- {
527
- "internalType": "address",
528
- "name": "swapExtRouter",
529
- "type": "address"
530
- },
531
- {
532
- "internalType": "bytes",
533
- "name": "swapCalldata",
534
- "type": "bytes"
535
- }
536
- ],
537
- "internalType": "struct IPCrossChainSwapHub.BuyCrossChainPtMessage",
538
- "name": "message",
539
- "type": "tuple"
540
- },
541
- {
542
- "internalType": "bytes",
543
- "name": "signature",
544
- "type": "bytes"
545
- }
546
- ],
547
- "name": "buyCrossChainPt",
548
- "outputs": [],
549
- "stateMutability": "payable",
550
- "type": "function"
551
- },
552
- {
553
- "inputs": [
554
- {
555
- "components": [
556
- {
557
- "internalType": "address",
558
- "name": "owner",
559
- "type": "address"
560
- },
561
- {
562
- "internalType": "uint32",
563
- "name": "boxId",
564
- "type": "uint32"
565
- },
566
- {
567
- "internalType": "uint256",
568
- "name": "expiry",
569
- "type": "uint256"
570
- },
571
- {
572
- "internalType": "uint256",
573
- "name": "nonce",
574
- "type": "uint256"
575
- },
576
- {
577
- "internalType": "address",
578
- "name": "receiver",
579
- "type": "address"
580
- },
581
- {
582
- "internalType": "address",
583
- "name": "token",
584
- "type": "address"
585
- },
586
- {
587
- "internalType": "uint256",
588
- "name": "amountWithdraw",
589
- "type": "uint256"
590
- },
591
- {
592
- "internalType": "uint256",
593
- "name": "amountFee",
594
- "type": "uint256"
595
- }
596
- ],
597
- "internalType": "struct IPCrossChainSwapHub.WithdrawTokenMessage",
598
- "name": "message",
599
- "type": "tuple"
600
- },
289
+ "name": "amountFee",
290
+ "type": "uint256"
291
+ }
292
+ ],
293
+ "name": "WithdrawToken",
294
+ "type": "event"
295
+ },
296
+ {
297
+ "inputs": [],
298
+ "name": "BEACON_PROXY_CODE_CONTRACT",
299
+ "outputs": [
601
300
  {
602
- "internalType": "bytes",
603
- "name": "signature",
604
- "type": "bytes"
301
+ "internalType": "address",
302
+ "name": "",
303
+ "type": "address"
605
304
  }
606
305
  ],
607
- "name": "claimFee",
608
- "outputs": [],
609
- "stateMutability": "nonpayable",
306
+ "stateMutability": "view",
307
+ "type": "function"
308
+ },
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",
610
333
  "type": "function"
611
334
  },
612
335
  {
@@ -648,6 +371,11 @@
648
371
  "name": "amountFee",
649
372
  "type": "uint256"
650
373
  },
374
+ {
375
+ "internalType": "bool",
376
+ "name": "pullFromOwner",
377
+ "type": "bool"
378
+ },
651
379
  {
652
380
  "internalType": "address",
653
381
  "name": "bridgeExtRouter",
@@ -669,9 +397,9 @@
669
397
  "type": "bytes"
670
398
  }
671
399
  ],
672
- "name": "claimFee",
400
+ "name": "bridgeToken",
673
401
  "outputs": [],
674
- "stateMutability": "nonpayable",
402
+ "stateMutability": "payable",
675
403
  "type": "function"
676
404
  },
677
405
  {
@@ -734,89 +462,9 @@
734
462
  "type": "bytes32"
735
463
  },
736
464
  {
737
- "internalType": "address",
738
- "name": "swapExecutor",
739
- "type": "address"
740
- },
741
- {
742
- "internalType": "address",
743
- "name": "swapExtRouter",
744
- "type": "address"
745
- },
746
- {
747
- "internalType": "bytes",
748
- "name": "swapCalldata",
749
- "type": "bytes"
750
- }
751
- ],
752
- "internalType": "struct IPCrossChainSwapHub.BuyCrossChainPtMessage",
753
- "name": "message",
754
- "type": "tuple"
755
- },
756
- {
757
- "internalType": "bytes",
758
- "name": "signature",
759
- "type": "bytes"
760
- }
761
- ],
762
- "name": "claimFee",
763
- "outputs": [],
764
- "stateMutability": "nonpayable",
765
- "type": "function"
766
- },
767
- {
768
- "inputs": [
769
- {
770
- "components": [
771
- {
772
- "internalType": "address",
773
- "name": "owner",
774
- "type": "address"
775
- },
776
- {
777
- "internalType": "uint32",
778
- "name": "boxId",
779
- "type": "uint32"
780
- },
781
- {
782
- "internalType": "uint256",
783
- "name": "expiry",
784
- "type": "uint256"
785
- },
786
- {
787
- "internalType": "uint256",
788
- "name": "nonce",
789
- "type": "uint256"
790
- },
791
- {
792
- "internalType": "address",
793
- "name": "tokenSpent",
794
- "type": "address"
795
- },
796
- {
797
- "internalType": "uint256",
798
- "name": "amountSpent",
799
- "type": "uint256"
800
- },
801
- {
802
- "internalType": "uint256",
803
- "name": "amountFee",
804
- "type": "uint256"
805
- },
806
- {
807
- "internalType": "address",
808
- "name": "tokenReceived",
809
- "type": "address"
810
- },
811
- {
812
- "internalType": "uint256",
813
- "name": "minReceived",
814
- "type": "uint256"
815
- },
816
- {
817
- "internalType": "address",
818
- "name": "receiver",
819
- "type": "address"
465
+ "internalType": "bool",
466
+ "name": "pullFromOwner",
467
+ "type": "bool"
820
468
  },
821
469
  {
822
470
  "internalType": "address",
@@ -834,7 +482,7 @@
834
482
  "type": "bytes"
835
483
  }
836
484
  ],
837
- "internalType": "struct IPCrossChainSwapHub.SwapTokenMessage",
485
+ "internalType": "struct IPCrossChainSwapHub.BuyCrossChainPtMessage",
838
486
  "name": "message",
839
487
  "type": "tuple"
840
488
  },
@@ -844,9 +492,9 @@
844
492
  "type": "bytes"
845
493
  }
846
494
  ],
847
- "name": "claimFee",
495
+ "name": "buyCrossChainPt",
848
496
  "outputs": [],
849
- "stateMutability": "nonpayable",
497
+ "stateMutability": "payable",
850
498
  "type": "function"
851
499
  },
852
500
  {
@@ -880,6 +528,11 @@
880
528
  "internalType": "bytes32",
881
529
  "name": "salt",
882
530
  "type": "bytes32"
531
+ },
532
+ {
533
+ "internalType": "bool",
534
+ "name": "deployed",
535
+ "type": "bool"
883
536
  }
884
537
  ],
885
538
  "stateMutability": "view",
@@ -978,9 +631,14 @@
978
631
  "type": "uint256"
979
632
  },
980
633
  {
981
- "internalType": "address",
982
- "name": "receiver",
983
- "type": "address"
634
+ "internalType": "bool",
635
+ "name": "pullFromOwner",
636
+ "type": "bool"
637
+ },
638
+ {
639
+ "internalType": "bool",
640
+ "name": "sendToOwner",
641
+ "type": "bool"
984
642
  },
985
643
  {
986
644
  "internalType": "address",
@@ -1040,56 +698,21 @@
1040
698
  },
1041
699
  {
1042
700
  "internalType": "address",
1043
- "name": "tokenSpent",
701
+ "name": "token",
1044
702
  "type": "address"
1045
703
  },
1046
704
  {
1047
705
  "internalType": "uint256",
1048
- "name": "amountSpent",
706
+ "name": "amountWithdraw",
1049
707
  "type": "uint256"
1050
708
  },
1051
709
  {
1052
710
  "internalType": "uint256",
1053
711
  "name": "amountFee",
1054
712
  "type": "uint256"
1055
- },
1056
- {
1057
- "internalType": "address",
1058
- "name": "ptAdapter",
1059
- "type": "address"
1060
- },
1061
- {
1062
- "internalType": "uint256",
1063
- "name": "minPtReceived",
1064
- "type": "uint256"
1065
- },
1066
- {
1067
- "internalType": "uint32",
1068
- "name": "dstEid",
1069
- "type": "uint32"
1070
- },
1071
- {
1072
- "internalType": "bytes32",
1073
- "name": "receiver",
1074
- "type": "bytes32"
1075
- },
1076
- {
1077
- "internalType": "address",
1078
- "name": "swapExecutor",
1079
- "type": "address"
1080
- },
1081
- {
1082
- "internalType": "address",
1083
- "name": "swapExtRouter",
1084
- "type": "address"
1085
- },
1086
- {
1087
- "internalType": "bytes",
1088
- "name": "swapCalldata",
1089
- "type": "bytes"
1090
713
  }
1091
714
  ],
1092
- "internalType": "struct IPCrossChainSwapHub.BuyCrossChainPtMessage",
715
+ "internalType": "struct IPCrossChainSwapHub.WithdrawTokenMessage",
1093
716
  "name": "message",
1094
717
  "type": "tuple"
1095
718
  }
@@ -1131,12 +754,12 @@
1131
754
  },
1132
755
  {
1133
756
  "internalType": "address",
1134
- "name": "token",
757
+ "name": "tokenSpent",
1135
758
  "type": "address"
1136
759
  },
1137
760
  {
1138
761
  "internalType": "uint256",
1139
- "name": "amountBridge",
762
+ "name": "amountSpent",
1140
763
  "type": "uint256"
1141
764
  },
1142
765
  {
@@ -1146,16 +769,46 @@
1146
769
  },
1147
770
  {
1148
771
  "internalType": "address",
1149
- "name": "bridgeExtRouter",
772
+ "name": "ptAdapter",
773
+ "type": "address"
774
+ },
775
+ {
776
+ "internalType": "uint256",
777
+ "name": "minPtReceived",
778
+ "type": "uint256"
779
+ },
780
+ {
781
+ "internalType": "uint32",
782
+ "name": "dstEid",
783
+ "type": "uint32"
784
+ },
785
+ {
786
+ "internalType": "bytes32",
787
+ "name": "receiver",
788
+ "type": "bytes32"
789
+ },
790
+ {
791
+ "internalType": "bool",
792
+ "name": "pullFromOwner",
793
+ "type": "bool"
794
+ },
795
+ {
796
+ "internalType": "address",
797
+ "name": "swapExecutor",
798
+ "type": "address"
799
+ },
800
+ {
801
+ "internalType": "address",
802
+ "name": "swapExtRouter",
1150
803
  "type": "address"
1151
804
  },
1152
805
  {
1153
806
  "internalType": "bytes",
1154
- "name": "bridgeCalldata",
807
+ "name": "swapCalldata",
1155
808
  "type": "bytes"
1156
809
  }
1157
810
  ],
1158
- "internalType": "struct IPCrossChainSwapHub.BridgeTokenMessage",
811
+ "internalType": "struct IPCrossChainSwapHub.BuyCrossChainPtMessage",
1159
812
  "name": "message",
1160
813
  "type": "tuple"
1161
814
  }
@@ -1195,11 +848,6 @@
1195
848
  "name": "nonce",
1196
849
  "type": "uint256"
1197
850
  },
1198
- {
1199
- "internalType": "address",
1200
- "name": "receiver",
1201
- "type": "address"
1202
- },
1203
851
  {
1204
852
  "internalType": "address",
1205
853
  "name": "token",
@@ -1207,16 +855,31 @@
1207
855
  },
1208
856
  {
1209
857
  "internalType": "uint256",
1210
- "name": "amountWithdraw",
858
+ "name": "amountBridge",
1211
859
  "type": "uint256"
1212
860
  },
1213
861
  {
1214
862
  "internalType": "uint256",
1215
863
  "name": "amountFee",
1216
864
  "type": "uint256"
865
+ },
866
+ {
867
+ "internalType": "bool",
868
+ "name": "pullFromOwner",
869
+ "type": "bool"
870
+ },
871
+ {
872
+ "internalType": "address",
873
+ "name": "bridgeExtRouter",
874
+ "type": "address"
875
+ },
876
+ {
877
+ "internalType": "bytes",
878
+ "name": "bridgeCalldata",
879
+ "type": "bytes"
1217
880
  }
1218
881
  ],
1219
- "internalType": "struct IPCrossChainSwapHub.WithdrawTokenMessage",
882
+ "internalType": "struct IPCrossChainSwapHub.BridgeTokenMessage",
1220
883
  "name": "message",
1221
884
  "type": "tuple"
1222
885
  }
@@ -1364,9 +1027,14 @@
1364
1027
  "type": "uint256"
1365
1028
  },
1366
1029
  {
1367
- "internalType": "address",
1368
- "name": "receiver",
1369
- "type": "address"
1030
+ "internalType": "bool",
1031
+ "name": "pullFromOwner",
1032
+ "type": "bool"
1033
+ },
1034
+ {
1035
+ "internalType": "bool",
1036
+ "name": "sendToOwner",
1037
+ "type": "bool"
1370
1038
  },
1371
1039
  {
1372
1040
  "internalType": "address",
@@ -1446,11 +1114,6 @@
1446
1114
  "name": "nonce",
1447
1115
  "type": "uint256"
1448
1116
  },
1449
- {
1450
- "internalType": "address",
1451
- "name": "receiver",
1452
- "type": "address"
1453
- },
1454
1117
  {
1455
1118
  "internalType": "address",
1456
1119
  "name": "token",