@pendle/core-v2 6.3.2-swaphubtest → 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 +143 -262
  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 +141 -260
  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 +140 -259
  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 +81 -68
  238. package/contracts/cross-chain/swap-hub/SwapHubBase.sol +56 -95
  239. package/contracts/cross-chain/swap-hub/swap/SwapExecutor.sol +2 -7
  240. package/contracts/interfaces/IPCrossChainSwapHub.sol +34 -51
  241. package/package.json +1 -1
  242. package/typechain-types/IPCrossChainSwapHub.ts +172 -295
  243. package/typechain-types/PendleCrossChainSwapHub.ts +172 -295
  244. package/typechain-types/SwapHubBase.ts +172 -295
  245. package/typechain-types/factories/IPCrossChainSwapHub__factory.ts +140 -261
  246. package/typechain-types/factories/PendleCrossChainSwapHub__factory.ts +142 -263
  247. package/typechain-types/factories/SwapExecutor__factory.ts +1 -1
  248. package/typechain-types/factories/SwapHubBase__factory.ts +141 -262
@@ -3,31 +3,11 @@
3
3
  "contractName": "IPCrossChainSwapHub",
4
4
  "sourceName": "contracts/interfaces/IPCrossChainSwapHub.sol",
5
5
  "abi": [
6
- {
7
- "inputs": [],
8
- "name": "ExcessiveNativeFee",
9
- "type": "error"
10
- },
11
6
  {
12
7
  "inputs": [],
13
8
  "name": "InsufficientTokenReceived",
14
9
  "type": "error"
15
10
  },
16
- {
17
- "inputs": [],
18
- "name": "IntentExecuted",
19
- "type": "error"
20
- },
21
- {
22
- "inputs": [],
23
- "name": "IntentHashMismatch",
24
- "type": "error"
25
- },
26
- {
27
- "inputs": [],
28
- "name": "InvalidAmountIn",
29
- "type": "error"
30
- },
31
11
  {
32
12
  "inputs": [],
33
13
  "name": "InvalidNonce",
@@ -35,12 +15,12 @@
35
15
  },
36
16
  {
37
17
  "inputs": [],
38
- "name": "InvalidSignature",
18
+ "name": "InvalidReceiver",
39
19
  "type": "error"
40
20
  },
41
21
  {
42
22
  "inputs": [],
43
- "name": "InvalidValidator",
23
+ "name": "InvalidSignature",
44
24
  "type": "error"
45
25
  },
46
26
  {
@@ -78,14 +58,20 @@
78
58
  {
79
59
  "indexed": false,
80
60
  "internalType": "uint256",
81
- "name": "bridgeAmount",
61
+ "name": "amountBridge",
82
62
  "type": "uint256"
83
63
  },
84
64
  {
85
65
  "indexed": false,
86
66
  "internalType": "uint256",
87
- "name": "feeAmount",
67
+ "name": "amountFee",
88
68
  "type": "uint256"
69
+ },
70
+ {
71
+ "indexed": false,
72
+ "internalType": "bool",
73
+ "name": "pullFromOwner",
74
+ "type": "bool"
89
75
  }
90
76
  ],
91
77
  "name": "BridgeToken",
@@ -106,12 +92,6 @@
106
92
  "name": "boxId",
107
93
  "type": "uint32"
108
94
  },
109
- {
110
- "indexed": false,
111
- "internalType": "bytes32",
112
- "name": "intentHash",
113
- "type": "bytes32"
114
- },
115
95
  {
116
96
  "indexed": false,
117
97
  "internalType": "address",
@@ -124,16 +104,22 @@
124
104
  "name": "amountSpent",
125
105
  "type": "uint256"
126
106
  },
107
+ {
108
+ "indexed": false,
109
+ "internalType": "uint256",
110
+ "name": "amountFee",
111
+ "type": "uint256"
112
+ },
127
113
  {
128
114
  "indexed": false,
129
115
  "internalType": "address",
130
- "name": "pt",
116
+ "name": "ptAdapter",
131
117
  "type": "address"
132
118
  },
133
119
  {
134
120
  "indexed": false,
135
121
  "internalType": "address",
136
- "name": "ptAdapter",
122
+ "name": "pt",
137
123
  "type": "address"
138
124
  },
139
125
  {
@@ -141,28 +127,15 @@
141
127
  "internalType": "uint256",
142
128
  "name": "netPtReceived",
143
129
  "type": "uint256"
144
- }
145
- ],
146
- "name": "BuyCrossChainPt",
147
- "type": "event"
148
- },
149
- {
150
- "anonymous": false,
151
- "inputs": [
152
- {
153
- "indexed": true,
154
- "internalType": "address",
155
- "name": "executor",
156
- "type": "address"
157
130
  },
158
131
  {
159
132
  "indexed": false,
160
133
  "internalType": "bool",
161
- "name": "isExecutor",
134
+ "name": "pullFromOwner",
162
135
  "type": "bool"
163
136
  }
164
137
  ],
165
- "name": "SetExecutor",
138
+ "name": "BuyCrossChainPt",
166
139
  "type": "event"
167
140
  },
168
141
  {
@@ -171,17 +144,17 @@
171
144
  {
172
145
  "indexed": true,
173
146
  "internalType": "address",
174
- "name": "validator",
147
+ "name": "executor",
175
148
  "type": "address"
176
149
  },
177
150
  {
178
151
  "indexed": false,
179
152
  "internalType": "bool",
180
- "name": "isValidator",
153
+ "name": "isExecutor",
181
154
  "type": "bool"
182
155
  }
183
156
  ],
184
- "name": "SetValidator",
157
+ "name": "SetExecutor",
185
158
  "type": "event"
186
159
  },
187
160
  {
@@ -211,6 +184,12 @@
211
184
  "name": "amountSpent",
212
185
  "type": "uint256"
213
186
  },
187
+ {
188
+ "indexed": false,
189
+ "internalType": "uint256",
190
+ "name": "amountFee",
191
+ "type": "uint256"
192
+ },
214
193
  {
215
194
  "indexed": false,
216
195
  "internalType": "address",
@@ -222,6 +201,18 @@
222
201
  "internalType": "uint256",
223
202
  "name": "netTokenReceived",
224
203
  "type": "uint256"
204
+ },
205
+ {
206
+ "indexed": false,
207
+ "internalType": "bool",
208
+ "name": "pullFromOwner",
209
+ "type": "bool"
210
+ },
211
+ {
212
+ "indexed": false,
213
+ "internalType": "bool",
214
+ "name": "sendToOwner",
215
+ "type": "bool"
225
216
  }
226
217
  ],
227
218
  "name": "SwapToken",
@@ -242,12 +233,6 @@
242
233
  "name": "boxId",
243
234
  "type": "uint32"
244
235
  },
245
- {
246
- "indexed": false,
247
- "internalType": "address",
248
- "name": "receiver",
249
- "type": "address"
250
- },
251
236
  {
252
237
  "indexed": false,
253
238
  "internalType": "address",
@@ -257,13 +242,13 @@
257
242
  {
258
243
  "indexed": false,
259
244
  "internalType": "uint256",
260
- "name": "withdrawAmount",
245
+ "name": "amountWithdraw",
261
246
  "type": "uint256"
262
247
  },
263
248
  {
264
249
  "indexed": false,
265
250
  "internalType": "uint256",
266
- "name": "feeAmount",
251
+ "name": "amountFee",
267
252
  "type": "uint256"
268
253
  }
269
254
  ],
@@ -340,14 +325,19 @@
340
325
  },
341
326
  {
342
327
  "internalType": "uint256",
343
- "name": "bridgeAmount",
328
+ "name": "amountBridge",
344
329
  "type": "uint256"
345
330
  },
346
331
  {
347
332
  "internalType": "uint256",
348
- "name": "feeAmount",
333
+ "name": "amountFee",
349
334
  "type": "uint256"
350
335
  },
336
+ {
337
+ "internalType": "bool",
338
+ "name": "pullFromOwner",
339
+ "type": "bool"
340
+ },
351
341
  {
352
342
  "internalType": "address",
353
343
  "name": "bridgeExtRouter",
@@ -390,12 +380,12 @@
390
380
  },
391
381
  {
392
382
  "internalType": "uint256",
393
- "name": "salt",
383
+ "name": "expiry",
394
384
  "type": "uint256"
395
385
  },
396
386
  {
397
387
  "internalType": "uint256",
398
- "name": "expiry",
388
+ "name": "nonce",
399
389
  "type": "uint256"
400
390
  },
401
391
  {
@@ -405,13 +395,13 @@
405
395
  },
406
396
  {
407
397
  "internalType": "uint256",
408
- "name": "maxAmountSpent",
398
+ "name": "amountSpent",
409
399
  "type": "uint256"
410
400
  },
411
401
  {
412
- "internalType": "address",
413
- "name": "pt",
414
- "type": "address"
402
+ "internalType": "uint256",
403
+ "name": "amountFee",
404
+ "type": "uint256"
415
405
  },
416
406
  {
417
407
  "internalType": "address",
@@ -425,45 +415,18 @@
425
415
  },
426
416
  {
427
417
  "internalType": "uint32",
428
- "name": "dstLzEid",
418
+ "name": "dstEid",
429
419
  "type": "uint32"
430
420
  },
431
421
  {
432
422
  "internalType": "bytes32",
433
423
  "name": "receiver",
434
424
  "type": "bytes32"
435
- }
436
- ],
437
- "internalType": "struct IPCrossChainSwapHub.BuyCrossChainPtIntent",
438
- "name": "intent",
439
- "type": "tuple"
440
- },
441
- {
442
- "internalType": "bytes",
443
- "name": "intentSig",
444
- "type": "bytes"
445
- },
446
- {
447
- "components": [
448
- {
449
- "internalType": "address",
450
- "name": "validator",
451
- "type": "address"
452
- },
453
- {
454
- "internalType": "bytes32",
455
- "name": "intentHash",
456
- "type": "bytes32"
457
425
  },
458
426
  {
459
- "internalType": "uint256",
460
- "name": "amountSpent",
461
- "type": "uint256"
462
- },
463
- {
464
- "internalType": "uint256",
465
- "name": "feeAmount",
466
- "type": "uint256"
427
+ "internalType": "bool",
428
+ "name": "pullFromOwner",
429
+ "type": "bool"
467
430
  },
468
431
  {
469
432
  "internalType": "address",
@@ -479,20 +442,15 @@
479
442
  "internalType": "bytes",
480
443
  "name": "swapCalldata",
481
444
  "type": "bytes"
482
- },
483
- {
484
- "internalType": "uint256",
485
- "name": "expiry",
486
- "type": "uint256"
487
445
  }
488
446
  ],
489
- "internalType": "struct IPCrossChainSwapHub.ExecuteBuyCrossChainPtMessage",
490
- "name": "execMsg",
447
+ "internalType": "struct IPCrossChainSwapHub.BuyCrossChainPtMessage",
448
+ "name": "message",
491
449
  "type": "tuple"
492
450
  },
493
451
  {
494
452
  "internalType": "bytes",
495
- "name": "execSig",
453
+ "name": "signature",
496
454
  "type": "bytes"
497
455
  }
498
456
  ],
@@ -525,6 +483,11 @@
525
483
  "internalType": "bytes32",
526
484
  "name": "salt",
527
485
  "type": "bytes32"
486
+ },
487
+ {
488
+ "internalType": "bool",
489
+ "name": "deployed",
490
+ "type": "bool"
528
491
  }
529
492
  ],
530
493
  "stateMutability": "view",
@@ -564,6 +527,11 @@
564
527
  "name": "amountSpent",
565
528
  "type": "uint256"
566
529
  },
530
+ {
531
+ "internalType": "uint256",
532
+ "name": "amountFee",
533
+ "type": "uint256"
534
+ },
567
535
  {
568
536
  "internalType": "address",
569
537
  "name": "tokenReceived",
@@ -575,9 +543,14 @@
575
543
  "type": "uint256"
576
544
  },
577
545
  {
578
- "internalType": "uint256",
579
- "name": "feeAmount",
580
- "type": "uint256"
546
+ "internalType": "bool",
547
+ "name": "pullFromOwner",
548
+ "type": "bool"
549
+ },
550
+ {
551
+ "internalType": "bool",
552
+ "name": "sendToOwner",
553
+ "type": "bool"
581
554
  },
582
555
  {
583
556
  "internalType": "address",
@@ -617,46 +590,41 @@
617
590
  "components": [
618
591
  {
619
592
  "internalType": "address",
620
- "name": "validator",
593
+ "name": "owner",
621
594
  "type": "address"
622
595
  },
623
596
  {
624
- "internalType": "bytes32",
625
- "name": "intentHash",
626
- "type": "bytes32"
597
+ "internalType": "uint32",
598
+ "name": "boxId",
599
+ "type": "uint32"
627
600
  },
628
601
  {
629
602
  "internalType": "uint256",
630
- "name": "amountSpent",
603
+ "name": "expiry",
631
604
  "type": "uint256"
632
605
  },
633
606
  {
634
607
  "internalType": "uint256",
635
- "name": "feeAmount",
608
+ "name": "nonce",
636
609
  "type": "uint256"
637
610
  },
638
611
  {
639
612
  "internalType": "address",
640
- "name": "swapExecutor",
641
- "type": "address"
642
- },
643
- {
644
- "internalType": "address",
645
- "name": "swapExtRouter",
613
+ "name": "token",
646
614
  "type": "address"
647
615
  },
648
616
  {
649
- "internalType": "bytes",
650
- "name": "swapCalldata",
651
- "type": "bytes"
617
+ "internalType": "uint256",
618
+ "name": "amountWithdraw",
619
+ "type": "uint256"
652
620
  },
653
621
  {
654
622
  "internalType": "uint256",
655
- "name": "expiry",
623
+ "name": "amountFee",
656
624
  "type": "uint256"
657
625
  }
658
626
  ],
659
- "internalType": "struct IPCrossChainSwapHub.ExecuteBuyCrossChainPtMessage",
627
+ "internalType": "struct IPCrossChainSwapHub.WithdrawTokenMessage",
660
628
  "name": "message",
661
629
  "type": "tuple"
662
630
  }
@@ -688,12 +656,12 @@
688
656
  },
689
657
  {
690
658
  "internalType": "uint256",
691
- "name": "salt",
659
+ "name": "expiry",
692
660
  "type": "uint256"
693
661
  },
694
662
  {
695
663
  "internalType": "uint256",
696
- "name": "expiry",
664
+ "name": "nonce",
697
665
  "type": "uint256"
698
666
  },
699
667
  {
@@ -703,13 +671,13 @@
703
671
  },
704
672
  {
705
673
  "internalType": "uint256",
706
- "name": "maxAmountSpent",
674
+ "name": "amountSpent",
707
675
  "type": "uint256"
708
676
  },
709
677
  {
710
- "internalType": "address",
711
- "name": "pt",
712
- "type": "address"
678
+ "internalType": "uint256",
679
+ "name": "amountFee",
680
+ "type": "uint256"
713
681
  },
714
682
  {
715
683
  "internalType": "address",
@@ -723,82 +691,36 @@
723
691
  },
724
692
  {
725
693
  "internalType": "uint32",
726
- "name": "dstLzEid",
694
+ "name": "dstEid",
727
695
  "type": "uint32"
728
696
  },
729
697
  {
730
698
  "internalType": "bytes32",
731
699
  "name": "receiver",
732
700
  "type": "bytes32"
733
- }
734
- ],
735
- "internalType": "struct IPCrossChainSwapHub.BuyCrossChainPtIntent",
736
- "name": "intent",
737
- "type": "tuple"
738
- }
739
- ],
740
- "name": "hashTypedData",
741
- "outputs": [
742
- {
743
- "internalType": "bytes32",
744
- "name": "",
745
- "type": "bytes32"
746
- }
747
- ],
748
- "stateMutability": "view",
749
- "type": "function"
750
- },
751
- {
752
- "inputs": [
753
- {
754
- "components": [
755
- {
756
- "internalType": "address",
757
- "name": "owner",
758
- "type": "address"
759
701
  },
760
702
  {
761
- "internalType": "uint32",
762
- "name": "boxId",
763
- "type": "uint32"
764
- },
765
- {
766
- "internalType": "uint256",
767
- "name": "expiry",
768
- "type": "uint256"
769
- },
770
- {
771
- "internalType": "uint256",
772
- "name": "nonce",
773
- "type": "uint256"
703
+ "internalType": "bool",
704
+ "name": "pullFromOwner",
705
+ "type": "bool"
774
706
  },
775
707
  {
776
708
  "internalType": "address",
777
- "name": "token",
709
+ "name": "swapExecutor",
778
710
  "type": "address"
779
711
  },
780
- {
781
- "internalType": "uint256",
782
- "name": "bridgeAmount",
783
- "type": "uint256"
784
- },
785
- {
786
- "internalType": "uint256",
787
- "name": "feeAmount",
788
- "type": "uint256"
789
- },
790
712
  {
791
713
  "internalType": "address",
792
- "name": "bridgeExtRouter",
714
+ "name": "swapExtRouter",
793
715
  "type": "address"
794
716
  },
795
717
  {
796
718
  "internalType": "bytes",
797
- "name": "bridgeCalldata",
719
+ "name": "swapCalldata",
798
720
  "type": "bytes"
799
721
  }
800
722
  ],
801
- "internalType": "struct IPCrossChainSwapHub.BridgeTokenMessage",
723
+ "internalType": "struct IPCrossChainSwapHub.BuyCrossChainPtMessage",
802
724
  "name": "message",
803
725
  "type": "tuple"
804
726
  }
@@ -838,11 +760,6 @@
838
760
  "name": "nonce",
839
761
  "type": "uint256"
840
762
  },
841
- {
842
- "internalType": "address",
843
- "name": "receiver",
844
- "type": "address"
845
- },
846
763
  {
847
764
  "internalType": "address",
848
765
  "name": "token",
@@ -850,16 +767,31 @@
850
767
  },
851
768
  {
852
769
  "internalType": "uint256",
853
- "name": "withdrawAmount",
770
+ "name": "amountBridge",
854
771
  "type": "uint256"
855
772
  },
856
773
  {
857
774
  "internalType": "uint256",
858
- "name": "feeAmount",
775
+ "name": "amountFee",
859
776
  "type": "uint256"
777
+ },
778
+ {
779
+ "internalType": "bool",
780
+ "name": "pullFromOwner",
781
+ "type": "bool"
782
+ },
783
+ {
784
+ "internalType": "address",
785
+ "name": "bridgeExtRouter",
786
+ "type": "address"
787
+ },
788
+ {
789
+ "internalType": "bytes",
790
+ "name": "bridgeCalldata",
791
+ "type": "bytes"
860
792
  }
861
793
  ],
862
- "internalType": "struct IPCrossChainSwapHub.WithdrawTokenMessage",
794
+ "internalType": "struct IPCrossChainSwapHub.BridgeTokenMessage",
863
795
  "name": "message",
864
796
  "type": "tuple"
865
797
  }
@@ -894,44 +826,6 @@
894
826
  "stateMutability": "view",
895
827
  "type": "function"
896
828
  },
897
- {
898
- "inputs": [
899
- {
900
- "internalType": "bytes32",
901
- "name": "intentHash",
902
- "type": "bytes32"
903
- }
904
- ],
905
- "name": "isIntentExecuted",
906
- "outputs": [
907
- {
908
- "internalType": "bool",
909
- "name": "",
910
- "type": "bool"
911
- }
912
- ],
913
- "stateMutability": "view",
914
- "type": "function"
915
- },
916
- {
917
- "inputs": [
918
- {
919
- "internalType": "address",
920
- "name": "validator",
921
- "type": "address"
922
- }
923
- ],
924
- "name": "isValidator",
925
- "outputs": [
926
- {
927
- "internalType": "bool",
928
- "name": "",
929
- "type": "bool"
930
- }
931
- ],
932
- "stateMutability": "view",
933
- "type": "function"
934
- },
935
829
  {
936
830
  "inputs": [
937
831
  {
@@ -969,24 +863,6 @@
969
863
  "stateMutability": "nonpayable",
970
864
  "type": "function"
971
865
  },
972
- {
973
- "inputs": [
974
- {
975
- "internalType": "address",
976
- "name": "validator",
977
- "type": "address"
978
- },
979
- {
980
- "internalType": "bool",
981
- "name": "isValidator",
982
- "type": "bool"
983
- }
984
- ],
985
- "name": "setValidator",
986
- "outputs": [],
987
- "stateMutability": "nonpayable",
988
- "type": "function"
989
- },
990
866
  {
991
867
  "inputs": [
992
868
  {
@@ -1021,6 +897,11 @@
1021
897
  "name": "amountSpent",
1022
898
  "type": "uint256"
1023
899
  },
900
+ {
901
+ "internalType": "uint256",
902
+ "name": "amountFee",
903
+ "type": "uint256"
904
+ },
1024
905
  {
1025
906
  "internalType": "address",
1026
907
  "name": "tokenReceived",
@@ -1032,9 +913,14 @@
1032
913
  "type": "uint256"
1033
914
  },
1034
915
  {
1035
- "internalType": "uint256",
1036
- "name": "feeAmount",
1037
- "type": "uint256"
916
+ "internalType": "bool",
917
+ "name": "pullFromOwner",
918
+ "type": "bool"
919
+ },
920
+ {
921
+ "internalType": "bool",
922
+ "name": "sendToOwner",
923
+ "type": "bool"
1038
924
  },
1039
925
  {
1040
926
  "internalType": "address",
@@ -1091,11 +977,6 @@
1091
977
  "name": "nonce",
1092
978
  "type": "uint256"
1093
979
  },
1094
- {
1095
- "internalType": "address",
1096
- "name": "receiver",
1097
- "type": "address"
1098
- },
1099
980
  {
1100
981
  "internalType": "address",
1101
982
  "name": "token",
@@ -1103,12 +984,12 @@
1103
984
  },
1104
985
  {
1105
986
  "internalType": "uint256",
1106
- "name": "withdrawAmount",
987
+ "name": "amountWithdraw",
1107
988
  "type": "uint256"
1108
989
  },
1109
990
  {
1110
991
  "internalType": "uint256",
1111
- "name": "feeAmount",
992
+ "name": "amountFee",
1112
993
  "type": "uint256"
1113
994
  }
1114
995
  ],