@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
@@ -7,31 +7,11 @@ import { Provider } from "@ethersproject/providers";
7
7
  import type { SwapHubBase, SwapHubBaseInterface } from "../SwapHubBase";
8
8
 
9
9
  const _abi = [
10
- {
11
- inputs: [],
12
- name: "ExcessiveNativeFee",
13
- type: "error",
14
- },
15
10
  {
16
11
  inputs: [],
17
12
  name: "InsufficientTokenReceived",
18
13
  type: "error",
19
14
  },
20
- {
21
- inputs: [],
22
- name: "IntentExecuted",
23
- type: "error",
24
- },
25
- {
26
- inputs: [],
27
- name: "IntentHashMismatch",
28
- type: "error",
29
- },
30
- {
31
- inputs: [],
32
- name: "InvalidAmountIn",
33
- type: "error",
34
- },
35
15
  {
36
16
  inputs: [],
37
17
  name: "InvalidNonce",
@@ -39,12 +19,12 @@ const _abi = [
39
19
  },
40
20
  {
41
21
  inputs: [],
42
- name: "InvalidSignature",
22
+ name: "InvalidReceiver",
43
23
  type: "error",
44
24
  },
45
25
  {
46
26
  inputs: [],
47
- name: "InvalidValidator",
27
+ name: "InvalidSignature",
48
28
  type: "error",
49
29
  },
50
30
  {
@@ -82,15 +62,21 @@ const _abi = [
82
62
  {
83
63
  indexed: false,
84
64
  internalType: "uint256",
85
- name: "bridgeAmount",
65
+ name: "amountBridge",
86
66
  type: "uint256",
87
67
  },
88
68
  {
89
69
  indexed: false,
90
70
  internalType: "uint256",
91
- name: "feeAmount",
71
+ name: "amountFee",
92
72
  type: "uint256",
93
73
  },
74
+ {
75
+ indexed: false,
76
+ internalType: "bool",
77
+ name: "pullFromOwner",
78
+ type: "bool",
79
+ },
94
80
  ],
95
81
  name: "BridgeToken",
96
82
  type: "event",
@@ -110,12 +96,6 @@ const _abi = [
110
96
  name: "boxId",
111
97
  type: "uint32",
112
98
  },
113
- {
114
- indexed: false,
115
- internalType: "bytes32",
116
- name: "intentHash",
117
- type: "bytes32",
118
- },
119
99
  {
120
100
  indexed: false,
121
101
  internalType: "address",
@@ -128,16 +108,22 @@ const _abi = [
128
108
  name: "amountSpent",
129
109
  type: "uint256",
130
110
  },
111
+ {
112
+ indexed: false,
113
+ internalType: "uint256",
114
+ name: "amountFee",
115
+ type: "uint256",
116
+ },
131
117
  {
132
118
  indexed: false,
133
119
  internalType: "address",
134
- name: "pt",
120
+ name: "ptAdapter",
135
121
  type: "address",
136
122
  },
137
123
  {
138
124
  indexed: false,
139
125
  internalType: "address",
140
- name: "ptAdapter",
126
+ name: "pt",
141
127
  type: "address",
142
128
  },
143
129
  {
@@ -146,6 +132,12 @@ const _abi = [
146
132
  name: "netPtReceived",
147
133
  type: "uint256",
148
134
  },
135
+ {
136
+ indexed: false,
137
+ internalType: "bool",
138
+ name: "pullFromOwner",
139
+ type: "bool",
140
+ },
149
141
  ],
150
142
  name: "BuyCrossChainPt",
151
143
  type: "event",
@@ -207,25 +199,6 @@ const _abi = [
207
199
  name: "SetExecutor",
208
200
  type: "event",
209
201
  },
210
- {
211
- anonymous: false,
212
- inputs: [
213
- {
214
- indexed: true,
215
- internalType: "address",
216
- name: "validator",
217
- type: "address",
218
- },
219
- {
220
- indexed: false,
221
- internalType: "bool",
222
- name: "isValidator",
223
- type: "bool",
224
- },
225
- ],
226
- name: "SetValidator",
227
- type: "event",
228
- },
229
202
  {
230
203
  anonymous: false,
231
204
  inputs: [
@@ -253,6 +226,12 @@ const _abi = [
253
226
  name: "amountSpent",
254
227
  type: "uint256",
255
228
  },
229
+ {
230
+ indexed: false,
231
+ internalType: "uint256",
232
+ name: "amountFee",
233
+ type: "uint256",
234
+ },
256
235
  {
257
236
  indexed: false,
258
237
  internalType: "address",
@@ -265,6 +244,18 @@ const _abi = [
265
244
  name: "netTokenReceived",
266
245
  type: "uint256",
267
246
  },
247
+ {
248
+ indexed: false,
249
+ internalType: "bool",
250
+ name: "pullFromOwner",
251
+ type: "bool",
252
+ },
253
+ {
254
+ indexed: false,
255
+ internalType: "bool",
256
+ name: "sendToOwner",
257
+ type: "bool",
258
+ },
268
259
  ],
269
260
  name: "SwapToken",
270
261
  type: "event",
@@ -284,12 +275,6 @@ const _abi = [
284
275
  name: "boxId",
285
276
  type: "uint32",
286
277
  },
287
- {
288
- indexed: false,
289
- internalType: "address",
290
- name: "receiver",
291
- type: "address",
292
- },
293
278
  {
294
279
  indexed: false,
295
280
  internalType: "address",
@@ -299,13 +284,13 @@ const _abi = [
299
284
  {
300
285
  indexed: false,
301
286
  internalType: "uint256",
302
- name: "withdrawAmount",
287
+ name: "amountWithdraw",
303
288
  type: "uint256",
304
289
  },
305
290
  {
306
291
  indexed: false,
307
292
  internalType: "uint256",
308
- name: "feeAmount",
293
+ name: "amountFee",
309
294
  type: "uint256",
310
295
  },
311
296
  ],
@@ -382,14 +367,19 @@ const _abi = [
382
367
  },
383
368
  {
384
369
  internalType: "uint256",
385
- name: "bridgeAmount",
370
+ name: "amountBridge",
386
371
  type: "uint256",
387
372
  },
388
373
  {
389
374
  internalType: "uint256",
390
- name: "feeAmount",
375
+ name: "amountFee",
391
376
  type: "uint256",
392
377
  },
378
+ {
379
+ internalType: "bool",
380
+ name: "pullFromOwner",
381
+ type: "bool",
382
+ },
393
383
  {
394
384
  internalType: "address",
395
385
  name: "bridgeExtRouter",
@@ -432,12 +422,12 @@ const _abi = [
432
422
  },
433
423
  {
434
424
  internalType: "uint256",
435
- name: "salt",
425
+ name: "expiry",
436
426
  type: "uint256",
437
427
  },
438
428
  {
439
429
  internalType: "uint256",
440
- name: "expiry",
430
+ name: "nonce",
441
431
  type: "uint256",
442
432
  },
443
433
  {
@@ -447,13 +437,13 @@ const _abi = [
447
437
  },
448
438
  {
449
439
  internalType: "uint256",
450
- name: "maxAmountSpent",
440
+ name: "amountSpent",
451
441
  type: "uint256",
452
442
  },
453
443
  {
454
- internalType: "address",
455
- name: "pt",
456
- type: "address",
444
+ internalType: "uint256",
445
+ name: "amountFee",
446
+ type: "uint256",
457
447
  },
458
448
  {
459
449
  internalType: "address",
@@ -467,7 +457,7 @@ const _abi = [
467
457
  },
468
458
  {
469
459
  internalType: "uint32",
470
- name: "dstLzEid",
460
+ name: "dstEid",
471
461
  type: "uint32",
472
462
  },
473
463
  {
@@ -475,37 +465,10 @@ const _abi = [
475
465
  name: "receiver",
476
466
  type: "bytes32",
477
467
  },
478
- ],
479
- internalType: "struct IPCrossChainSwapHub.BuyCrossChainPtIntent",
480
- name: "intent",
481
- type: "tuple",
482
- },
483
- {
484
- internalType: "bytes",
485
- name: "intentSig",
486
- type: "bytes",
487
- },
488
- {
489
- components: [
490
- {
491
- internalType: "address",
492
- name: "validator",
493
- type: "address",
494
- },
495
- {
496
- internalType: "bytes32",
497
- name: "intentHash",
498
- type: "bytes32",
499
- },
500
468
  {
501
- internalType: "uint256",
502
- name: "amountSpent",
503
- type: "uint256",
504
- },
505
- {
506
- internalType: "uint256",
507
- name: "feeAmount",
508
- type: "uint256",
469
+ internalType: "bool",
470
+ name: "pullFromOwner",
471
+ type: "bool",
509
472
  },
510
473
  {
511
474
  internalType: "address",
@@ -522,20 +485,14 @@ const _abi = [
522
485
  name: "swapCalldata",
523
486
  type: "bytes",
524
487
  },
525
- {
526
- internalType: "uint256",
527
- name: "expiry",
528
- type: "uint256",
529
- },
530
488
  ],
531
- internalType:
532
- "struct IPCrossChainSwapHub.ExecuteBuyCrossChainPtMessage",
533
- name: "execMsg",
489
+ internalType: "struct IPCrossChainSwapHub.BuyCrossChainPtMessage",
490
+ name: "message",
534
491
  type: "tuple",
535
492
  },
536
493
  {
537
494
  internalType: "bytes",
538
- name: "execSig",
495
+ name: "signature",
539
496
  type: "bytes",
540
497
  },
541
498
  ],
@@ -576,6 +533,11 @@ const _abi = [
576
533
  name: "salt",
577
534
  type: "bytes32",
578
535
  },
536
+ {
537
+ internalType: "bool",
538
+ name: "deployed",
539
+ type: "bool",
540
+ },
579
541
  ],
580
542
  stateMutability: "view",
581
543
  type: "function",
@@ -657,6 +619,11 @@ const _abi = [
657
619
  name: "amountSpent",
658
620
  type: "uint256",
659
621
  },
622
+ {
623
+ internalType: "uint256",
624
+ name: "amountFee",
625
+ type: "uint256",
626
+ },
660
627
  {
661
628
  internalType: "address",
662
629
  name: "tokenReceived",
@@ -668,9 +635,14 @@ const _abi = [
668
635
  type: "uint256",
669
636
  },
670
637
  {
671
- internalType: "uint256",
672
- name: "feeAmount",
673
- type: "uint256",
638
+ internalType: "bool",
639
+ name: "pullFromOwner",
640
+ type: "bool",
641
+ },
642
+ {
643
+ internalType: "bool",
644
+ name: "sendToOwner",
645
+ type: "bool",
674
646
  },
675
647
  {
676
648
  internalType: "address",
@@ -710,47 +682,41 @@ const _abi = [
710
682
  components: [
711
683
  {
712
684
  internalType: "address",
713
- name: "validator",
685
+ name: "owner",
714
686
  type: "address",
715
687
  },
716
688
  {
717
- internalType: "bytes32",
718
- name: "intentHash",
719
- type: "bytes32",
689
+ internalType: "uint32",
690
+ name: "boxId",
691
+ type: "uint32",
720
692
  },
721
693
  {
722
694
  internalType: "uint256",
723
- name: "amountSpent",
695
+ name: "expiry",
724
696
  type: "uint256",
725
697
  },
726
698
  {
727
699
  internalType: "uint256",
728
- name: "feeAmount",
700
+ name: "nonce",
729
701
  type: "uint256",
730
702
  },
731
703
  {
732
704
  internalType: "address",
733
- name: "swapExecutor",
734
- type: "address",
735
- },
736
- {
737
- internalType: "address",
738
- name: "swapExtRouter",
705
+ name: "token",
739
706
  type: "address",
740
707
  },
741
708
  {
742
- internalType: "bytes",
743
- name: "swapCalldata",
744
- type: "bytes",
709
+ internalType: "uint256",
710
+ name: "amountWithdraw",
711
+ type: "uint256",
745
712
  },
746
713
  {
747
714
  internalType: "uint256",
748
- name: "expiry",
715
+ name: "amountFee",
749
716
  type: "uint256",
750
717
  },
751
718
  ],
752
- internalType:
753
- "struct IPCrossChainSwapHub.ExecuteBuyCrossChainPtMessage",
719
+ internalType: "struct IPCrossChainSwapHub.WithdrawTokenMessage",
754
720
  name: "message",
755
721
  type: "tuple",
756
722
  },
@@ -782,12 +748,12 @@ const _abi = [
782
748
  },
783
749
  {
784
750
  internalType: "uint256",
785
- name: "salt",
751
+ name: "expiry",
786
752
  type: "uint256",
787
753
  },
788
754
  {
789
755
  internalType: "uint256",
790
- name: "expiry",
756
+ name: "nonce",
791
757
  type: "uint256",
792
758
  },
793
759
  {
@@ -797,13 +763,13 @@ const _abi = [
797
763
  },
798
764
  {
799
765
  internalType: "uint256",
800
- name: "maxAmountSpent",
766
+ name: "amountSpent",
801
767
  type: "uint256",
802
768
  },
803
769
  {
804
- internalType: "address",
805
- name: "pt",
806
- type: "address",
770
+ internalType: "uint256",
771
+ name: "amountFee",
772
+ type: "uint256",
807
773
  },
808
774
  {
809
775
  internalType: "address",
@@ -817,7 +783,7 @@ const _abi = [
817
783
  },
818
784
  {
819
785
  internalType: "uint32",
820
- name: "dstLzEid",
786
+ name: "dstEid",
821
787
  type: "uint32",
822
788
  },
823
789
  {
@@ -825,74 +791,28 @@ const _abi = [
825
791
  name: "receiver",
826
792
  type: "bytes32",
827
793
  },
828
- ],
829
- internalType: "struct IPCrossChainSwapHub.BuyCrossChainPtIntent",
830
- name: "intent",
831
- type: "tuple",
832
- },
833
- ],
834
- name: "hashTypedData",
835
- outputs: [
836
- {
837
- internalType: "bytes32",
838
- name: "",
839
- type: "bytes32",
840
- },
841
- ],
842
- stateMutability: "view",
843
- type: "function",
844
- },
845
- {
846
- inputs: [
847
- {
848
- components: [
849
- {
850
- internalType: "address",
851
- name: "owner",
852
- type: "address",
853
- },
854
- {
855
- internalType: "uint32",
856
- name: "boxId",
857
- type: "uint32",
858
- },
859
794
  {
860
- internalType: "uint256",
861
- name: "expiry",
862
- type: "uint256",
863
- },
864
- {
865
- internalType: "uint256",
866
- name: "nonce",
867
- type: "uint256",
795
+ internalType: "bool",
796
+ name: "pullFromOwner",
797
+ type: "bool",
868
798
  },
869
799
  {
870
800
  internalType: "address",
871
- name: "token",
801
+ name: "swapExecutor",
872
802
  type: "address",
873
803
  },
874
- {
875
- internalType: "uint256",
876
- name: "bridgeAmount",
877
- type: "uint256",
878
- },
879
- {
880
- internalType: "uint256",
881
- name: "feeAmount",
882
- type: "uint256",
883
- },
884
804
  {
885
805
  internalType: "address",
886
- name: "bridgeExtRouter",
806
+ name: "swapExtRouter",
887
807
  type: "address",
888
808
  },
889
809
  {
890
810
  internalType: "bytes",
891
- name: "bridgeCalldata",
811
+ name: "swapCalldata",
892
812
  type: "bytes",
893
813
  },
894
814
  ],
895
- internalType: "struct IPCrossChainSwapHub.BridgeTokenMessage",
815
+ internalType: "struct IPCrossChainSwapHub.BuyCrossChainPtMessage",
896
816
  name: "message",
897
817
  type: "tuple",
898
818
  },
@@ -932,11 +852,6 @@ const _abi = [
932
852
  name: "nonce",
933
853
  type: "uint256",
934
854
  },
935
- {
936
- internalType: "address",
937
- name: "receiver",
938
- type: "address",
939
- },
940
855
  {
941
856
  internalType: "address",
942
857
  name: "token",
@@ -944,16 +859,31 @@ const _abi = [
944
859
  },
945
860
  {
946
861
  internalType: "uint256",
947
- name: "withdrawAmount",
862
+ name: "amountBridge",
948
863
  type: "uint256",
949
864
  },
950
865
  {
951
866
  internalType: "uint256",
952
- name: "feeAmount",
867
+ name: "amountFee",
953
868
  type: "uint256",
954
869
  },
870
+ {
871
+ internalType: "bool",
872
+ name: "pullFromOwner",
873
+ type: "bool",
874
+ },
875
+ {
876
+ internalType: "address",
877
+ name: "bridgeExtRouter",
878
+ type: "address",
879
+ },
880
+ {
881
+ internalType: "bytes",
882
+ name: "bridgeCalldata",
883
+ type: "bytes",
884
+ },
955
885
  ],
956
- internalType: "struct IPCrossChainSwapHub.WithdrawTokenMessage",
886
+ internalType: "struct IPCrossChainSwapHub.BridgeTokenMessage",
957
887
  name: "message",
958
888
  type: "tuple",
959
889
  },
@@ -988,44 +918,6 @@ const _abi = [
988
918
  stateMutability: "view",
989
919
  type: "function",
990
920
  },
991
- {
992
- inputs: [
993
- {
994
- internalType: "bytes32",
995
- name: "intentHash",
996
- type: "bytes32",
997
- },
998
- ],
999
- name: "isIntentExecuted",
1000
- outputs: [
1001
- {
1002
- internalType: "bool",
1003
- name: "",
1004
- type: "bool",
1005
- },
1006
- ],
1007
- stateMutability: "view",
1008
- type: "function",
1009
- },
1010
- {
1011
- inputs: [
1012
- {
1013
- internalType: "address",
1014
- name: "validator",
1015
- type: "address",
1016
- },
1017
- ],
1018
- name: "isValidator",
1019
- outputs: [
1020
- {
1021
- internalType: "bool",
1022
- name: "",
1023
- type: "bool",
1024
- },
1025
- ],
1026
- stateMutability: "view",
1027
- type: "function",
1028
- },
1029
921
  {
1030
922
  inputs: [],
1031
923
  name: "owner",
@@ -1089,24 +981,6 @@ const _abi = [
1089
981
  stateMutability: "nonpayable",
1090
982
  type: "function",
1091
983
  },
1092
- {
1093
- inputs: [
1094
- {
1095
- internalType: "address",
1096
- name: "validator",
1097
- type: "address",
1098
- },
1099
- {
1100
- internalType: "bool",
1101
- name: "isValidator_",
1102
- type: "bool",
1103
- },
1104
- ],
1105
- name: "setValidator",
1106
- outputs: [],
1107
- stateMutability: "nonpayable",
1108
- type: "function",
1109
- },
1110
984
  {
1111
985
  inputs: [
1112
986
  {
@@ -1141,6 +1015,11 @@ const _abi = [
1141
1015
  name: "amountSpent",
1142
1016
  type: "uint256",
1143
1017
  },
1018
+ {
1019
+ internalType: "uint256",
1020
+ name: "amountFee",
1021
+ type: "uint256",
1022
+ },
1144
1023
  {
1145
1024
  internalType: "address",
1146
1025
  name: "tokenReceived",
@@ -1152,9 +1031,14 @@ const _abi = [
1152
1031
  type: "uint256",
1153
1032
  },
1154
1033
  {
1155
- internalType: "uint256",
1156
- name: "feeAmount",
1157
- type: "uint256",
1034
+ internalType: "bool",
1035
+ name: "pullFromOwner",
1036
+ type: "bool",
1037
+ },
1038
+ {
1039
+ internalType: "bool",
1040
+ name: "sendToOwner",
1041
+ type: "bool",
1158
1042
  },
1159
1043
  {
1160
1044
  internalType: "address",
@@ -1234,11 +1118,6 @@ const _abi = [
1234
1118
  name: "nonce",
1235
1119
  type: "uint256",
1236
1120
  },
1237
- {
1238
- internalType: "address",
1239
- name: "receiver",
1240
- type: "address",
1241
- },
1242
1121
  {
1243
1122
  internalType: "address",
1244
1123
  name: "token",
@@ -1246,12 +1125,12 @@ const _abi = [
1246
1125
  },
1247
1126
  {
1248
1127
  internalType: "uint256",
1249
- name: "withdrawAmount",
1128
+ name: "amountWithdraw",
1250
1129
  type: "uint256",
1251
1130
  },
1252
1131
  {
1253
1132
  internalType: "uint256",
1254
- name: "feeAmount",
1133
+ name: "amountFee",
1255
1134
  type: "uint256",
1256
1135
  },
1257
1136
  ],