@pendle/core-v2 6.3.1 → 6.3.2-swaphubtest

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (324) 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 +4 -0
  52. package/build/artifacts/contracts/cross-chain/swap-hub/DepositBox.sol/DepositBox.json +201 -0
  53. package/build/artifacts/contracts/cross-chain/swap-hub/PendleCrossChainSwapHub.sol/PendleCrossChainSwapHub.dbg.json +4 -0
  54. package/build/artifacts/contracts/cross-chain/swap-hub/PendleCrossChainSwapHub.sol/PendleCrossChainSwapHub.json +1301 -0
  55. package/build/artifacts/contracts/cross-chain/swap-hub/SwapHubBase.sol/SwapHubBase.dbg.json +4 -0
  56. package/build/artifacts/contracts/cross-chain/swap-hub/SwapHubBase.sol/SwapHubBase.json +1272 -0
  57. package/build/artifacts/contracts/cross-chain/swap-hub/swap/IPSwapExecutor.sol/IPSwapExecutor.dbg.json +4 -0
  58. package/build/artifacts/contracts/cross-chain/swap-hub/swap/IPSwapExecutor.sol/IPSwapExecutor.json +56 -0
  59. package/build/artifacts/contracts/cross-chain/swap-hub/swap/SwapExecutor.sol/SwapExecutor.dbg.json +4 -0
  60. package/build/artifacts/contracts/cross-chain/swap-hub/swap/SwapExecutor.sol/SwapExecutor.json +60 -0
  61. package/build/artifacts/contracts/deprecated/VeDistributor/PendleFeeDistributor.sol/PendleFeeDistributor.dbg.json +1 -1
  62. package/build/artifacts/contracts/deprecated/VeDistributor/PendleFeeDistributorV2.sol/PendleFeeDistributorV2.dbg.json +1 -1
  63. package/build/artifacts/contracts/interfaces/IAddressProvider.sol/IAddressProvider.dbg.json +1 -1
  64. package/build/artifacts/contracts/interfaces/ILPWrapper.sol/ILPWrapper.dbg.json +1 -1
  65. package/build/artifacts/contracts/interfaces/ILayerZeroEndpoint.sol/ILayerZeroEndpoint.dbg.json +1 -1
  66. package/build/artifacts/contracts/interfaces/ILayerZeroReceiver.sol/ILayerZeroReceiver.dbg.json +1 -1
  67. package/build/artifacts/contracts/interfaces/IMarketSweed.sol/IMarketSweed.dbg.json +4 -0
  68. package/build/artifacts/contracts/interfaces/IMarketSweed.sol/IMarketSweed.json +141 -0
  69. package/build/artifacts/contracts/interfaces/IOwnable.sol/IOwnable.dbg.json +1 -1
  70. package/build/artifacts/contracts/interfaces/IPActionAddRemoveLiqV3.sol/IPActionAddRemoveLiqV3.dbg.json +1 -1
  71. package/build/artifacts/contracts/interfaces/IPActionCallbackV3.sol/IPActionCallbackV3.dbg.json +1 -1
  72. package/build/artifacts/contracts/interfaces/IPActionInfoStatic.sol/IPActionInfoStatic.dbg.json +1 -1
  73. package/build/artifacts/contracts/interfaces/IPActionMarketAuxStatic.sol/IPActionMarketAuxStatic.dbg.json +1 -1
  74. package/build/artifacts/contracts/interfaces/IPActionMarketCoreStatic.sol/IPActionMarketCoreStatic.dbg.json +1 -1
  75. package/build/artifacts/contracts/interfaces/IPActionMintRedeemStatic.sol/IPActionMintRedeemStatic.dbg.json +1 -1
  76. package/build/artifacts/contracts/interfaces/IPActionMiscV3.sol/IPActionMiscV3.dbg.json +1 -1
  77. package/build/artifacts/contracts/interfaces/IPActionSimple.sol/IPActionSimple.dbg.json +1 -1
  78. package/build/artifacts/contracts/interfaces/IPActionStorageStatic.sol/IPActionStorageStatic.dbg.json +1 -1
  79. package/build/artifacts/contracts/interfaces/IPActionStorageV4.sol/IPActionStorageV4.dbg.json +1 -1
  80. package/build/artifacts/contracts/interfaces/IPActionSwapPTV3.sol/IPActionSwapPTV3.dbg.json +1 -1
  81. package/build/artifacts/contracts/interfaces/IPActionSwapYTV3.sol/IPActionSwapYTV3.dbg.json +1 -1
  82. package/build/artifacts/contracts/interfaces/IPActionVePendleStatic.sol/IPActionVePendleStatic.dbg.json +1 -1
  83. package/build/artifacts/contracts/interfaces/IPAllActionV3.sol/IPAllActionV3.dbg.json +1 -1
  84. package/build/artifacts/contracts/interfaces/IPAllEventsV3.sol/IPActionAddRemoveLiqV3Events.dbg.json +1 -1
  85. package/build/artifacts/contracts/interfaces/IPAllEventsV3.sol/IPActionMiscV3Events.dbg.json +1 -1
  86. package/build/artifacts/contracts/interfaces/IPAllEventsV3.sol/IPActionStorageEvents.dbg.json +1 -1
  87. package/build/artifacts/contracts/interfaces/IPAllEventsV3.sol/IPActionSwapPTV3Events.dbg.json +1 -1
  88. package/build/artifacts/contracts/interfaces/IPAllEventsV3.sol/IPActionSwapYTV3Events.dbg.json +1 -1
  89. package/build/artifacts/contracts/interfaces/IPAllEventsV3.sol/IPAllEventsV3.dbg.json +1 -1
  90. package/build/artifacts/contracts/interfaces/IPBridgedPrincipalToken.sol/IPBridgedPrincipalToken.dbg.json +1 -1
  91. package/build/artifacts/contracts/interfaces/IPChainlinkOracle.sol/IPChainlinkOracle.dbg.json +1 -1
  92. package/build/artifacts/contracts/interfaces/IPChainlinkOracleEssential.sol/IPChainlinkOracleEssential.dbg.json +1 -1
  93. package/build/artifacts/contracts/interfaces/IPChainlinkOracleFactory.sol/IPChainlinkOracleFactory.dbg.json +1 -1
  94. package/build/artifacts/contracts/interfaces/IPChainlinkOracleWithQuote.sol/IPChainlinkOracleWithQuote.dbg.json +1 -1
  95. package/build/artifacts/contracts/interfaces/IPCommonPoolDeployHelperV2.sol/IPCommonPoolDeployHelperV2.dbg.json +1 -1
  96. package/build/artifacts/contracts/interfaces/IPCommonSYFactory.sol/IPCommonSYFactory.dbg.json +1 -1
  97. package/build/artifacts/contracts/interfaces/IPCrossChainSwapHub.sol/IPCrossChainSwapHub.dbg.json +4 -0
  98. package/build/artifacts/contracts/interfaces/IPCrossChainSwapHub.sol/IPCrossChainSwapHub.json +1135 -0
  99. package/build/artifacts/contracts/interfaces/IPDepositBox.sol/IPDepositBox.dbg.json +4 -0
  100. package/build/artifacts/contracts/interfaces/IPDepositBox.sol/IPDepositBox.json +150 -0
  101. package/build/artifacts/contracts/interfaces/IPExchangeRateOracle.sol/IPExchangeRateOracle.dbg.json +1 -1
  102. package/build/artifacts/contracts/interfaces/IPExchangeRateOracleApp.sol/IPExchangeRateOracleApp.dbg.json +1 -1
  103. package/build/artifacts/contracts/interfaces/IPFeeDistributor.sol/IPFeeDistributor.dbg.json +1 -1
  104. package/build/artifacts/contracts/interfaces/IPFeeDistributorV2.sol/IPFeeDistributorV2.dbg.json +1 -1
  105. package/build/artifacts/contracts/interfaces/IPFixedPricePTAMM.sol/IPFixedPricePTAMM.dbg.json +1 -1
  106. package/build/artifacts/contracts/interfaces/IPFixedPricePTAMM.sol/IPFixedPricePTAMMSwapCallback.dbg.json +1 -1
  107. package/build/artifacts/contracts/interfaces/IPGauge.sol/IPGauge.dbg.json +1 -1
  108. package/build/artifacts/contracts/interfaces/IPGaugeController.sol/IPGaugeController.dbg.json +1 -1
  109. package/build/artifacts/contracts/interfaces/IPGaugeControllerMainchain.sol/IPGaugeControllerMainchain.dbg.json +1 -1
  110. package/build/artifacts/contracts/interfaces/IPGovernanceProxy.sol/IPGovernanceProxy.dbg.json +1 -1
  111. package/build/artifacts/contracts/interfaces/IPInterestManagerYT.sol/IPInterestManagerYT.dbg.json +1 -1
  112. package/build/artifacts/contracts/interfaces/IPInterestManagerYTV2.sol/IPInterestManagerYTV2.dbg.json +1 -1
  113. package/build/artifacts/contracts/interfaces/IPLPWrapperFactory.sol/IPLPWrapperFactory.dbg.json +1 -1
  114. package/build/artifacts/contracts/interfaces/IPLimitRouter.sol/IPLimitOrderType.dbg.json +1 -1
  115. package/build/artifacts/contracts/interfaces/IPLimitRouter.sol/IPLimitRouter.dbg.json +1 -1
  116. package/build/artifacts/contracts/interfaces/IPLimitRouter.sol/IPLimitRouterCallback.dbg.json +1 -1
  117. package/build/artifacts/contracts/interfaces/IPMarket.sol/IPMarket.dbg.json +1 -1
  118. package/build/artifacts/contracts/interfaces/IPMarketFactory.sol/IPMarketFactory.dbg.json +1 -1
  119. package/build/artifacts/contracts/interfaces/IPMarketSwapCallback.sol/IPMarketSwapCallback.dbg.json +1 -1
  120. package/build/artifacts/contracts/interfaces/IPMerkleDistributor.sol/IPMerkleDistributor.dbg.json +1 -1
  121. package/build/artifacts/contracts/interfaces/IPMiniDiamond.sol/IPMiniDiamond.dbg.json +1 -1
  122. package/build/artifacts/contracts/interfaces/IPMsgReceiverApp.sol/IPMsgReceiverApp.dbg.json +1 -1
  123. package/build/artifacts/contracts/interfaces/IPMsgSendEndpoint.sol/IPMsgSendEndpoint.dbg.json +1 -1
  124. package/build/artifacts/contracts/interfaces/IPMultiTokenMerkleDistributor.sol/IPMultiTokenMerkleDistributor.dbg.json +1 -1
  125. package/build/artifacts/contracts/interfaces/IPOffchainStorage.sol/IPOffchainStorage.dbg.json +1 -1
  126. package/build/artifacts/contracts/interfaces/IPOracleForSy.sol/IPOracleForSy.dbg.json +1 -1
  127. package/build/artifacts/contracts/interfaces/IPPTOFTAdapterFactory.sol/IPPTOFTAdapterFactory.dbg.json +1 -1
  128. package/build/artifacts/contracts/interfaces/IPPYLpOracle.sol/IPPYLpOracle.dbg.json +1 -1
  129. package/build/artifacts/contracts/interfaces/IPPausingInterface.sol/IPPausingInterface.dbg.json +1 -1
  130. package/build/artifacts/contracts/interfaces/IPPoolDeployHelperV2.sol/IPPoolDeployHelperV2.dbg.json +1 -1
  131. package/build/artifacts/contracts/interfaces/IPPriceFeed.sol/IPPriceFeed.dbg.json +1 -1
  132. package/build/artifacts/contracts/interfaces/IPPrincipalToken.sol/IPPrincipalToken.dbg.json +1 -1
  133. package/build/artifacts/contracts/interfaces/IPReflector.sol/IPReflector.dbg.json +1 -1
  134. package/build/artifacts/contracts/interfaces/IPRouterStatic.sol/IPRouterStatic.dbg.json +1 -1
  135. package/build/artifacts/contracts/interfaces/IPTokenWithSupplyCap.sol/IPTokenWithSupplyCap.dbg.json +1 -1
  136. package/build/artifacts/contracts/interfaces/IPVeToken.sol/IPVeToken.dbg.json +1 -1
  137. package/build/artifacts/contracts/interfaces/IPVotingController.sol/IPVotingController.dbg.json +1 -1
  138. package/build/artifacts/contracts/interfaces/IPVotingEscrowMainchain.sol/IPVotingEscrowMainchain.dbg.json +1 -1
  139. package/build/artifacts/contracts/interfaces/IPYieldContractFactory.sol/IPYieldContractFactory.dbg.json +1 -1
  140. package/build/artifacts/contracts/interfaces/IPYieldToken.sol/IPYieldToken.dbg.json +1 -1
  141. package/build/artifacts/contracts/interfaces/IPYieldTokenV2.sol/IPYieldTokenV2.dbg.json +1 -1
  142. package/build/artifacts/contracts/interfaces/IRedstonePriceFeed.sol/IRedstonePriceFeed.dbg.json +1 -1
  143. package/build/artifacts/contracts/interfaces/IRewardManager.sol/IRewardManager.dbg.json +1 -1
  144. package/build/artifacts/contracts/interfaces/IStandardizedYield.sol/IStandardizedYield.dbg.json +1 -1
  145. package/build/artifacts/contracts/interfaces/IWETH.sol/IWETH.dbg.json +1 -1
  146. package/build/artifacts/contracts/interfaces/IWstETH.sol/IWstETH.dbg.json +1 -1
  147. package/build/artifacts/contracts/limit/LimitMathCore.sol/LimitMathCore.dbg.json +1 -1
  148. package/build/artifacts/contracts/limit/LimitRouterBase.sol/LimitRouterBase.dbg.json +1 -1
  149. package/build/artifacts/contracts/limit/helpers/NonceManager.sol/NonceManager.dbg.json +1 -1
  150. package/build/artifacts/contracts/offchain-helpers/AddressProvider.sol/AddressProvider.dbg.json +1 -1
  151. package/build/artifacts/contracts/offchain-helpers/AutomateReady.sol/AutomateReady.dbg.json +1 -1
  152. package/build/artifacts/contracts/offchain-helpers/AutomateReady.sol/IAutomate.dbg.json +1 -1
  153. package/build/artifacts/contracts/offchain-helpers/AutomateReady.sol/IOpsProxyFactory.dbg.json +1 -1
  154. package/build/artifacts/contracts/offchain-helpers/AutomateReady.sol/ITaskTreasuryUpgradable.dbg.json +1 -1
  155. package/build/artifacts/contracts/offchain-helpers/BalanceReader.sol/BalanceReader.dbg.json +1 -1
  156. package/build/artifacts/contracts/offchain-helpers/BaseSplitCodeFactoryContract.sol/BaseSplitCodeFactoryContract.dbg.json +1 -1
  157. package/build/artifacts/contracts/offchain-helpers/Broadcaster.sol/Broadcaster.dbg.json +1 -1
  158. package/build/artifacts/contracts/offchain-helpers/BytesLib.sol/BytesLib.dbg.json +1 -1
  159. package/build/artifacts/contracts/offchain-helpers/EmptyUUPS.sol/EmptyUUPS.dbg.json +1 -1
  160. package/build/artifacts/contracts/offchain-helpers/ExpiredLpPtRedeemer.sol/ExpiredLpPtRedeemer.dbg.json +1 -1
  161. package/build/artifacts/contracts/offchain-helpers/LegacyNFTHelper.sol/LegacyNFTHelper.dbg.json +1 -1
  162. package/build/artifacts/contracts/offchain-helpers/LegacyNFTHelper.sol/StarNFTV1.dbg.json +1 -1
  163. package/build/artifacts/contracts/offchain-helpers/LimitBackendHelperV2.sol/LimitBackendHelperV2.dbg.json +1 -1
  164. package/build/artifacts/contracts/offchain-helpers/MarketSweed.sol/MarketSweed.dbg.json +4 -0
  165. package/build/artifacts/contracts/offchain-helpers/MarketSweed.sol/MarketSweed.json +314 -0
  166. package/build/artifacts/contracts/offchain-helpers/Multicall2.sol/Multicall2.dbg.json +1 -1
  167. package/build/artifacts/contracts/offchain-helpers/PendleExchangeRateOracle.sol/PendleExchangeRateOracle.dbg.json +1 -1
  168. package/build/artifacts/contracts/offchain-helpers/PendleFeeSetter.sol/PendleFeeSetter.dbg.json +1 -1
  169. package/build/artifacts/contracts/offchain-helpers/PendleGovernanceProxy.sol/PendleGovernanceProxy.dbg.json +1 -1
  170. package/build/artifacts/contracts/offchain-helpers/PendleLPWrapper.sol/PendleLPWrapper.dbg.json +1 -1
  171. package/build/artifacts/contracts/offchain-helpers/PendleLPWrapperFactory.sol/PendleLPWrapperFactory.dbg.json +1 -1
  172. package/build/artifacts/contracts/offchain-helpers/PendleMulticallOwnerV1.sol/PendleMulticallOwnerV1.dbg.json +1 -1
  173. package/build/artifacts/contracts/offchain-helpers/PendleMulticallV1.sol/PendleMulticallV1.dbg.json +1 -1
  174. package/build/artifacts/contracts/offchain-helpers/PendleMulticallV2.sol/PendleMulticallV2.dbg.json +1 -1
  175. package/build/artifacts/contracts/offchain-helpers/PendleOffchainStorage.sol/PendleOffchainStorage.dbg.json +1 -1
  176. package/build/artifacts/contracts/offchain-helpers/PendleWstETHPriceFeed.sol/PendleWstETHPriceFeed.dbg.json +1 -1
  177. package/build/artifacts/contracts/offchain-helpers/SimulateHelper.sol/SimulateHelper.dbg.json +1 -1
  178. package/build/artifacts/contracts/offchain-helpers/SupplyCapReader.sol/IPossibleSupplyCapInterface.dbg.json +1 -1
  179. package/build/artifacts/contracts/offchain-helpers/SupplyCapReader.sol/SupplyCapReader.dbg.json +1 -1
  180. package/build/artifacts/contracts/offchain-helpers/deploy/PendleCommonPoolDeployHelperV2.sol/PendleCommonPoolDeployHelperV2.dbg.json +1 -1
  181. package/build/artifacts/contracts/offchain-helpers/deploy/PendleCommonSYFactory.sol/PendleCommonSYFactory.dbg.json +1 -1
  182. package/build/artifacts/contracts/offchain-helpers/deploy/PendlePoolDeployHelper.sol/PendlePoolDeployHelper.dbg.json +1 -1
  183. package/build/artifacts/contracts/offchain-helpers/deploy/PendlePoolDeployHelperV2.sol/PendlePoolDeployHelperV2.dbg.json +1 -1
  184. package/build/artifacts/contracts/offchain-helpers/deploy/lib/MarketDeployLib.sol/MarketDeployLib.dbg.json +1 -1
  185. package/build/artifacts/contracts/offchain-helpers/errors/SDKErrorsDirectory.sol/SDKErrorsDirectory.dbg.json +1 -1
  186. package/build/artifacts/contracts/offchain-helpers/router-static/PendleRouterStatic.sol/PendleRouterStatic.dbg.json +1 -1
  187. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionInfoStatic.sol/ActionInfoStatic.dbg.json +1 -1
  188. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionMarketAuxStatic.sol/ActionMarketAuxStatic.dbg.json +1 -1
  189. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionMarketCoreStatic.sol/ActionMarketCoreStatic.dbg.json +1 -1
  190. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionMintRedeemStatic.sol/ActionMintRedeemStatic.dbg.json +1 -1
  191. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionStorageStatic.sol/ActionStorageStatic.dbg.json +1 -1
  192. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionVePendleStatic.sol/ActionVePendleStatic.dbg.json +1 -1
  193. package/build/artifacts/contracts/offchain-helpers/router-static/base/MarketApproxLibV1.sol/MarketApproxPtInLibV1.dbg.json +1 -1
  194. package/build/artifacts/contracts/offchain-helpers/router-static/base/MarketApproxLibV1.sol/MarketApproxPtOutLibV1.dbg.json +1 -1
  195. package/build/artifacts/contracts/offchain-helpers/router-static/base/StorageLayout.sol/StorageLayout.dbg.json +1 -1
  196. package/build/artifacts/contracts/oracles/CrossChainOracle/base/PendleCrossChainOracleBaseApp_Init.sol/PendleCrossChainOracleBaseApp_Init.dbg.json +1 -1
  197. package/build/artifacts/contracts/oracles/CrossChainOracle/exchangeRate/PendleExchangeRateOracleApp.sol/PendleExchangeRateOracleApp.dbg.json +1 -1
  198. package/build/artifacts/contracts/oracles/CrossChainOracle/exchangeRate/PendleExchangeRateOracleV2.sol/PendleExchangeRateOracleV2.dbg.json +1 -1
  199. package/build/artifacts/contracts/oracles/CrossChainOracle/libraries/ExchangeRateMsgCodec.sol/ExchangeRateMsgCodec.dbg.json +1 -1
  200. package/build/artifacts/contracts/oracles/PtYtLpOracle/PendleLpOracleLib.sol/PendleLpOracleLib.dbg.json +1 -1
  201. package/build/artifacts/contracts/oracles/PtYtLpOracle/PendlePYLpOracle.sol/PendlePYLpOracle.dbg.json +1 -1
  202. package/build/artifacts/contracts/oracles/PtYtLpOracle/PendlePYOracleLib.sol/PendlePYOracleLib.dbg.json +1 -1
  203. package/build/artifacts/contracts/oracles/PtYtLpOracle/chainlink/PendleChainlinkOracle.sol/PendleChainlinkOracle.dbg.json +1 -1
  204. package/build/artifacts/contracts/oracles/PtYtLpOracle/chainlink/PendleChainlinkOracleFactory.sol/PendleChainlinkOracleFactory.dbg.json +1 -1
  205. package/build/artifacts/contracts/oracles/PtYtLpOracle/chainlink/PendleChainlinkOracleWithQuote.sol/PendleChainlinkOracleWithQuote.dbg.json +1 -1
  206. package/build/artifacts/contracts/oracles/PtYtLpOracle/samples/BoringLpSeller.sol/BoringLpSeller.dbg.json +1 -1
  207. package/build/artifacts/contracts/oracles/PtYtLpOracle/samples/BoringPYUsdChainlinkAssetOracle.sol/BoringPYUsdChainlinkAssetOracle.dbg.json +1 -1
  208. package/build/artifacts/contracts/oracles/PtYtLpOracle/samples/BoringPYUsdChainlinkSYOracle.sol/BoringPYUsdChainlinkSYOracle.dbg.json +1 -1
  209. package/build/artifacts/contracts/oracles/PtYtLpOracle/samples/BoringPtSeller.sol/BoringPtSeller.dbg.json +1 -1
  210. package/build/artifacts/contracts/oracles/StatelessWrapper/PendleLinearDiscountOracleWrapper.sol/PendleLinearDiscountOracleWrapper.dbg.json +1 -1
  211. package/build/artifacts/contracts/oracles/StatelessWrapper/PendleSparkLinearDiscountOracleFactoryWrapper.sol/PendleSparkLinearDiscountOracleFactoryWrapper.dbg.json +1 -1
  212. package/build/artifacts/contracts/oracles/internal/PendleBoringOneracle.sol/PendleBoringOneracle.dbg.json +1 -1
  213. package/build/artifacts/contracts/oracles/internal/PendleBoringSolvBTCOneracle.sol/PendleBoringSolvBTCOneracle.dbg.json +1 -1
  214. package/build/artifacts/contracts/oracles/internal/PendleLpLinearDiscountOracle.sol/LPExpiry.dbg.json +1 -1
  215. package/build/artifacts/contracts/oracles/internal/PendleLpLinearDiscountOracle.sol/PendleLpLinearDiscountOracle.dbg.json +1 -1
  216. package/build/artifacts/contracts/oracles/internal/PendleLpLinearDiscountOracleFactory.sol/PendleLpLinearDiscountOracleFactory.dbg.json +1 -1
  217. package/build/artifacts/contracts/oracles/internal/PendleRedStoneRateOracleAdapter.sol/PendleRedStoneRateOracleAdapter.dbg.json +1 -1
  218. package/build/artifacts/contracts/oracles/internal/PendleSparkLinearDiscountOracle.sol/PTExpiry.dbg.json +1 -1
  219. package/build/artifacts/contracts/oracles/internal/PendleSparkLinearDiscountOracle.sol/PendleSparkLinearDiscountOracle.dbg.json +1 -1
  220. package/build/artifacts/contracts/oracles/internal/PendleSparkLinearDiscountOracleFactory.sol/PendleSparkLinearDiscountOracleFactory.dbg.json +1 -1
  221. package/build/artifacts/contracts/router/ActionStorageV4.sol/ActionStorageV4.dbg.json +1 -1
  222. package/build/artifacts/contracts/router/PendleRouterV4.sol/PendleRouterV4.dbg.json +1 -1
  223. package/build/artifacts/contracts/router/Reflector.sol/Reflector.dbg.json +1 -1
  224. package/build/artifacts/contracts/router/RouterStorage.sol/RouterStorage.dbg.json +1 -1
  225. package/build/artifacts/contracts/router/base/ActionBase.sol/ActionBase.dbg.json +1 -1
  226. package/build/artifacts/contracts/router/base/ActionDelegateBase.sol/ActionDelegateBase.dbg.json +1 -1
  227. package/build/artifacts/contracts/router/base/CallbackHelper.sol/CallbackHelper.dbg.json +1 -1
  228. package/build/artifacts/contracts/router/math/ApproxStateLib.sol/ApproxStateLib.dbg.json +1 -1
  229. package/build/artifacts/contracts/router/math/MarketApproxEstimateLib.sol/MarketApproxEstimateLib.dbg.json +1 -1
  230. package/build/artifacts/contracts/router/math/MarketApproxLibOnchain.sol/MarketApproxPtInLibOnchain.dbg.json +1 -1
  231. package/build/artifacts/contracts/router/math/MarketApproxLibOnchain.sol/MarketApproxPtOutLibOnchain.dbg.json +1 -1
  232. package/build/artifacts/contracts/router/math/MarketApproxLibV2.sol/MarketApproxPtInLibV2.dbg.json +1 -1
  233. package/build/artifacts/contracts/router/math/MarketApproxLibV2.sol/MarketApproxPtOutLibV2.dbg.json +1 -1
  234. package/build/artifacts/contracts/router/swap-aggregator/IPSwapAggregator.sol/IPSwapAggregator.dbg.json +1 -1
  235. package/build/artifacts/contracts/router/swap-aggregator/OKXScaleHelper.sol/IOKXDexRouter.dbg.json +1 -1
  236. package/build/artifacts/contracts/router/swap-aggregator/OKXScaleHelper.sol/OKXScaleHelper.dbg.json +1 -1
  237. package/build/artifacts/contracts/router/swap-aggregator/ParaswapScaleHelper.sol/IAugustusV6.dbg.json +1 -1
  238. package/build/artifacts/contracts/router/swap-aggregator/ParaswapScaleHelper.sol/ParaswapScaleHelper.dbg.json +1 -1
  239. package/build/artifacts/contracts/router/swap-aggregator/PendleSwap.sol/IKyberScalingHelper.dbg.json +1 -1
  240. package/build/artifacts/contracts/router/swap-aggregator/PendleSwap.sol/IOdosRouterV2.dbg.json +1 -1
  241. package/build/artifacts/contracts/router/swap-aggregator/PendleSwap.sol/PendleSwap.dbg.json +1 -1
  242. package/build/artifacts/contracts/router/swap-aggregator/PendleSwap.sol/PendleSwap.json +2 -2
  243. package/contracts/cross-chain/swap-hub/DepositBox.sol +72 -0
  244. package/contracts/cross-chain/swap-hub/PendleCrossChainSwapHub.sol +162 -0
  245. package/contracts/cross-chain/swap-hub/SwapHubBase.sol +303 -0
  246. package/contracts/cross-chain/swap-hub/swap/IPSwapExecutor.sol +14 -0
  247. package/contracts/cross-chain/swap-hub/swap/SwapExecutor.sol +33 -0
  248. package/contracts/interfaces/IMarketSweed.sol +23 -0
  249. package/contracts/interfaces/IPCrossChainSwapHub.sol +163 -0
  250. package/contracts/interfaces/IPDepositBox.sol +25 -0
  251. package/contracts/offchain-helpers/MarketSweed.sol +250 -0
  252. package/contracts/router/swap-aggregator/OKXScaleHelper.sol +25 -90
  253. package/deployments/1-core.json +2 -1
  254. package/deployments/10-core.json +2 -1
  255. package/deployments/146-core.json +2 -1
  256. package/deployments/42161-core.json +2 -1
  257. package/deployments/5000-core.json +2 -1
  258. package/deployments/56-core.json +2 -1
  259. package/deployments/80094-core.json +2 -1
  260. package/deployments/8453-core.json +2 -1
  261. package/deployments/9745-core.json +2 -1
  262. package/deployments/999-core.json +2 -1
  263. package/package.json +2 -2
  264. package/typechain-types/DepositBox.ts +304 -0
  265. package/typechain-types/IMarketSweed.ts +203 -0
  266. package/typechain-types/IPCrossChainSwapHub.ts +1002 -0
  267. package/typechain-types/IPDepositBox.ts +257 -0
  268. package/typechain-types/IPSwapExecutor.ts +129 -0
  269. package/typechain-types/MarketSweed.ts +242 -0
  270. package/typechain-types/PendleCrossChainSwapHub.ts +1226 -0
  271. package/typechain-types/SwapExecutor.ts +129 -0
  272. package/typechain-types/SwapHubBase.ts +1201 -0
  273. package/typechain-types/factories/DepositBox__factory.ts +259 -0
  274. package/typechain-types/factories/{IPActionCrossChain__factory.ts → IMarketSweed__factory.ts} +61 -22
  275. package/typechain-types/factories/IPCrossChainSwapHub__factory.ts +1152 -0
  276. package/typechain-types/factories/IPDepositBox__factory.ts +162 -0
  277. package/typechain-types/factories/IPSwapExecutor__factory.ts +71 -0
  278. package/typechain-types/factories/MarketSweed__factory.ts +364 -0
  279. package/typechain-types/factories/PendleCrossChainSwapHub__factory.ts +1372 -0
  280. package/typechain-types/factories/PendleSwap__factory.ts +1 -1
  281. package/typechain-types/factories/SwapExecutor__factory.ts +110 -0
  282. package/typechain-types/factories/{BasePendleBridgedPrincipalToken__factory.ts → SwapHubBase__factory.ts} +693 -955
  283. package/typechain-types/hardhat.d.ts +90 -54
  284. package/typechain-types/index.ts +18 -12
  285. package/typechain-types/ActionCrossChain.ts +0 -161
  286. package/typechain-types/ActionDelegateBase.ts +0 -57
  287. package/typechain-types/BasePendleBridgedPrincipalToken.ts +0 -1689
  288. package/typechain-types/EIP712.ts +0 -135
  289. package/typechain-types/ERC20Permit.ts +0 -586
  290. package/typechain-types/IERC5267.ts +0 -135
  291. package/typechain-types/IPActionCrossChain.ts +0 -161
  292. package/typechain-types/IPMarketFactoryV3.ts +0 -321
  293. package/typechain-types/IPMarketV3.ts +0 -1068
  294. package/typechain-types/LimitBackendHelper.ts +0 -287
  295. package/typechain-types/OverfillMathLib.ts +0 -81
  296. package/typechain-types/PendleBridgedPrincipalToken_18Decimals.ts +0 -1689
  297. package/typechain-types/PendleBridgedPrincipalToken_6Decimals.ts +0 -1689
  298. package/typechain-types/PendleBridgedPrincipalToken_8Decimals.ts +0 -1689
  299. package/typechain-types/PendleERC20Permit.ts +0 -508
  300. package/typechain-types/PendleERC20PermitUpg.ts +0 -517
  301. package/typechain-types/PendleERC20Upg.ts +0 -348
  302. package/typechain-types/PendleMarketFactoryV3.ts +0 -719
  303. package/typechain-types/PendleMarketV3.ts +0 -1195
  304. package/typechain-types/PendleYieldContractFactory.ts +0 -801
  305. package/typechain-types/ShortStrings.ts +0 -57
  306. package/typechain-types/factories/ActionCrossChain__factory.ts +0 -152
  307. package/typechain-types/factories/ActionDelegateBase__factory.ts +0 -80
  308. package/typechain-types/factories/EIP712__factory.ts +0 -85
  309. package/typechain-types/factories/ERC20Permit__factory.ts +0 -433
  310. package/typechain-types/factories/IERC5267__factory.ts +0 -72
  311. package/typechain-types/factories/IPMarketFactoryV3__factory.ts +0 -217
  312. package/typechain-types/factories/IPMarketV3__factory.ts +0 -845
  313. package/typechain-types/factories/LimitBackendHelper__factory.ts +0 -232
  314. package/typechain-types/factories/OverfillMathLib__factory.ts +0 -77
  315. package/typechain-types/factories/PendleBridgedPrincipalToken_18Decimals__factory.ts +0 -1652
  316. package/typechain-types/factories/PendleBridgedPrincipalToken_6Decimals__factory.ts +0 -1650
  317. package/typechain-types/factories/PendleBridgedPrincipalToken_8Decimals__factory.ts +0 -1650
  318. package/typechain-types/factories/PendleERC20PermitUpg__factory.ts +0 -389
  319. package/typechain-types/factories/PendleERC20Permit__factory.ts +0 -470
  320. package/typechain-types/factories/PendleERC20Upg__factory.ts +0 -261
  321. package/typechain-types/factories/PendleMarketFactoryV3__factory.ts +0 -714
  322. package/typechain-types/factories/PendleMarketV3__factory.ts +0 -1211
  323. package/typechain-types/factories/PendleYieldContractFactory__factory.ts +0 -674
  324. package/typechain-types/factories/ShortStrings__factory.ts +0 -77
@@ -0,0 +1,1152 @@
1
+ /* Autogenerated file. Do not edit manually. */
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+
5
+ import { Contract, Signer, utils } from "ethers";
6
+ import { Provider } from "@ethersproject/providers";
7
+ import type {
8
+ IPCrossChainSwapHub,
9
+ IPCrossChainSwapHubInterface,
10
+ } from "../IPCrossChainSwapHub";
11
+
12
+ const _abi = [
13
+ {
14
+ inputs: [],
15
+ name: "ExcessiveNativeFee",
16
+ type: "error",
17
+ },
18
+ {
19
+ inputs: [],
20
+ name: "InsufficientTokenReceived",
21
+ type: "error",
22
+ },
23
+ {
24
+ inputs: [],
25
+ name: "IntentExecuted",
26
+ type: "error",
27
+ },
28
+ {
29
+ inputs: [],
30
+ name: "IntentHashMismatch",
31
+ type: "error",
32
+ },
33
+ {
34
+ inputs: [],
35
+ name: "InvalidAmountIn",
36
+ type: "error",
37
+ },
38
+ {
39
+ inputs: [],
40
+ name: "InvalidNonce",
41
+ type: "error",
42
+ },
43
+ {
44
+ inputs: [],
45
+ name: "InvalidSignature",
46
+ type: "error",
47
+ },
48
+ {
49
+ inputs: [],
50
+ name: "InvalidValidator",
51
+ type: "error",
52
+ },
53
+ {
54
+ inputs: [],
55
+ name: "MessageExpired",
56
+ type: "error",
57
+ },
58
+ {
59
+ anonymous: false,
60
+ inputs: [
61
+ {
62
+ indexed: true,
63
+ internalType: "address",
64
+ name: "owner",
65
+ type: "address",
66
+ },
67
+ {
68
+ indexed: false,
69
+ internalType: "uint32",
70
+ name: "boxId",
71
+ type: "uint32",
72
+ },
73
+ {
74
+ indexed: false,
75
+ internalType: "address",
76
+ name: "bridgeExtRouter",
77
+ type: "address",
78
+ },
79
+ {
80
+ indexed: false,
81
+ internalType: "address",
82
+ name: "token",
83
+ type: "address",
84
+ },
85
+ {
86
+ indexed: false,
87
+ internalType: "uint256",
88
+ name: "bridgeAmount",
89
+ type: "uint256",
90
+ },
91
+ {
92
+ indexed: false,
93
+ internalType: "uint256",
94
+ name: "feeAmount",
95
+ type: "uint256",
96
+ },
97
+ ],
98
+ name: "BridgeToken",
99
+ type: "event",
100
+ },
101
+ {
102
+ anonymous: false,
103
+ inputs: [
104
+ {
105
+ indexed: true,
106
+ internalType: "address",
107
+ name: "owner",
108
+ type: "address",
109
+ },
110
+ {
111
+ indexed: false,
112
+ internalType: "uint32",
113
+ name: "boxId",
114
+ type: "uint32",
115
+ },
116
+ {
117
+ indexed: false,
118
+ internalType: "bytes32",
119
+ name: "intentHash",
120
+ type: "bytes32",
121
+ },
122
+ {
123
+ indexed: false,
124
+ internalType: "address",
125
+ name: "tokenSpent",
126
+ type: "address",
127
+ },
128
+ {
129
+ indexed: false,
130
+ internalType: "uint256",
131
+ name: "amountSpent",
132
+ type: "uint256",
133
+ },
134
+ {
135
+ indexed: false,
136
+ internalType: "address",
137
+ name: "pt",
138
+ type: "address",
139
+ },
140
+ {
141
+ indexed: false,
142
+ internalType: "address",
143
+ name: "ptAdapter",
144
+ type: "address",
145
+ },
146
+ {
147
+ indexed: false,
148
+ internalType: "uint256",
149
+ name: "netPtReceived",
150
+ type: "uint256",
151
+ },
152
+ ],
153
+ name: "BuyCrossChainPt",
154
+ type: "event",
155
+ },
156
+ {
157
+ anonymous: false,
158
+ inputs: [
159
+ {
160
+ indexed: true,
161
+ internalType: "address",
162
+ name: "executor",
163
+ type: "address",
164
+ },
165
+ {
166
+ indexed: false,
167
+ internalType: "bool",
168
+ name: "isExecutor",
169
+ type: "bool",
170
+ },
171
+ ],
172
+ name: "SetExecutor",
173
+ type: "event",
174
+ },
175
+ {
176
+ anonymous: false,
177
+ inputs: [
178
+ {
179
+ indexed: true,
180
+ internalType: "address",
181
+ name: "validator",
182
+ type: "address",
183
+ },
184
+ {
185
+ indexed: false,
186
+ internalType: "bool",
187
+ name: "isValidator",
188
+ type: "bool",
189
+ },
190
+ ],
191
+ name: "SetValidator",
192
+ type: "event",
193
+ },
194
+ {
195
+ anonymous: false,
196
+ inputs: [
197
+ {
198
+ indexed: true,
199
+ internalType: "address",
200
+ name: "owner",
201
+ type: "address",
202
+ },
203
+ {
204
+ indexed: false,
205
+ internalType: "uint32",
206
+ name: "boxId",
207
+ type: "uint32",
208
+ },
209
+ {
210
+ indexed: false,
211
+ internalType: "address",
212
+ name: "tokenSpent",
213
+ type: "address",
214
+ },
215
+ {
216
+ indexed: false,
217
+ internalType: "uint256",
218
+ name: "amountSpent",
219
+ type: "uint256",
220
+ },
221
+ {
222
+ indexed: false,
223
+ internalType: "address",
224
+ name: "tokenReceived",
225
+ type: "address",
226
+ },
227
+ {
228
+ indexed: false,
229
+ internalType: "uint256",
230
+ name: "netTokenReceived",
231
+ type: "uint256",
232
+ },
233
+ ],
234
+ name: "SwapToken",
235
+ type: "event",
236
+ },
237
+ {
238
+ anonymous: false,
239
+ inputs: [
240
+ {
241
+ indexed: true,
242
+ internalType: "address",
243
+ name: "owner",
244
+ type: "address",
245
+ },
246
+ {
247
+ indexed: false,
248
+ internalType: "uint32",
249
+ name: "boxId",
250
+ type: "uint32",
251
+ },
252
+ {
253
+ indexed: false,
254
+ internalType: "address",
255
+ name: "receiver",
256
+ type: "address",
257
+ },
258
+ {
259
+ indexed: false,
260
+ internalType: "address",
261
+ name: "token",
262
+ type: "address",
263
+ },
264
+ {
265
+ indexed: false,
266
+ internalType: "uint256",
267
+ name: "withdrawAmount",
268
+ type: "uint256",
269
+ },
270
+ {
271
+ indexed: false,
272
+ internalType: "uint256",
273
+ name: "feeAmount",
274
+ type: "uint256",
275
+ },
276
+ ],
277
+ name: "WithdrawToken",
278
+ type: "event",
279
+ },
280
+ {
281
+ inputs: [],
282
+ name: "BEACON_PROXY_CODE_CONTRACT",
283
+ outputs: [
284
+ {
285
+ internalType: "address",
286
+ name: "",
287
+ type: "address",
288
+ },
289
+ ],
290
+ stateMutability: "view",
291
+ type: "function",
292
+ },
293
+ {
294
+ inputs: [],
295
+ name: "DEPOSIT_BOX_BEACON",
296
+ outputs: [
297
+ {
298
+ internalType: "address",
299
+ name: "",
300
+ type: "address",
301
+ },
302
+ ],
303
+ stateMutability: "view",
304
+ type: "function",
305
+ },
306
+ {
307
+ inputs: [],
308
+ name: "DEPOSIT_BOX_CODE_HASH",
309
+ outputs: [
310
+ {
311
+ internalType: "bytes32",
312
+ name: "",
313
+ type: "bytes32",
314
+ },
315
+ ],
316
+ stateMutability: "view",
317
+ type: "function",
318
+ },
319
+ {
320
+ inputs: [
321
+ {
322
+ components: [
323
+ {
324
+ internalType: "address",
325
+ name: "owner",
326
+ type: "address",
327
+ },
328
+ {
329
+ internalType: "uint32",
330
+ name: "boxId",
331
+ type: "uint32",
332
+ },
333
+ {
334
+ internalType: "uint256",
335
+ name: "expiry",
336
+ type: "uint256",
337
+ },
338
+ {
339
+ internalType: "uint256",
340
+ name: "nonce",
341
+ type: "uint256",
342
+ },
343
+ {
344
+ internalType: "address",
345
+ name: "token",
346
+ type: "address",
347
+ },
348
+ {
349
+ internalType: "uint256",
350
+ name: "bridgeAmount",
351
+ type: "uint256",
352
+ },
353
+ {
354
+ internalType: "uint256",
355
+ name: "feeAmount",
356
+ type: "uint256",
357
+ },
358
+ {
359
+ internalType: "address",
360
+ name: "bridgeExtRouter",
361
+ type: "address",
362
+ },
363
+ {
364
+ internalType: "bytes",
365
+ name: "bridgeCalldata",
366
+ type: "bytes",
367
+ },
368
+ ],
369
+ internalType: "struct IPCrossChainSwapHub.BridgeTokenMessage",
370
+ name: "message",
371
+ type: "tuple",
372
+ },
373
+ {
374
+ internalType: "bytes",
375
+ name: "signature",
376
+ type: "bytes",
377
+ },
378
+ ],
379
+ name: "bridgeToken",
380
+ outputs: [],
381
+ stateMutability: "payable",
382
+ type: "function",
383
+ },
384
+ {
385
+ inputs: [
386
+ {
387
+ components: [
388
+ {
389
+ internalType: "address",
390
+ name: "owner",
391
+ type: "address",
392
+ },
393
+ {
394
+ internalType: "uint32",
395
+ name: "boxId",
396
+ type: "uint32",
397
+ },
398
+ {
399
+ internalType: "uint256",
400
+ name: "salt",
401
+ type: "uint256",
402
+ },
403
+ {
404
+ internalType: "uint256",
405
+ name: "expiry",
406
+ type: "uint256",
407
+ },
408
+ {
409
+ internalType: "address",
410
+ name: "tokenSpent",
411
+ type: "address",
412
+ },
413
+ {
414
+ internalType: "uint256",
415
+ name: "maxAmountSpent",
416
+ type: "uint256",
417
+ },
418
+ {
419
+ internalType: "address",
420
+ name: "pt",
421
+ type: "address",
422
+ },
423
+ {
424
+ internalType: "address",
425
+ name: "ptAdapter",
426
+ type: "address",
427
+ },
428
+ {
429
+ internalType: "uint256",
430
+ name: "minPtReceived",
431
+ type: "uint256",
432
+ },
433
+ {
434
+ internalType: "uint32",
435
+ name: "dstLzEid",
436
+ type: "uint32",
437
+ },
438
+ {
439
+ internalType: "bytes32",
440
+ name: "receiver",
441
+ type: "bytes32",
442
+ },
443
+ ],
444
+ internalType: "struct IPCrossChainSwapHub.BuyCrossChainPtIntent",
445
+ name: "intent",
446
+ type: "tuple",
447
+ },
448
+ {
449
+ internalType: "bytes",
450
+ name: "intentSig",
451
+ type: "bytes",
452
+ },
453
+ {
454
+ components: [
455
+ {
456
+ internalType: "address",
457
+ name: "validator",
458
+ type: "address",
459
+ },
460
+ {
461
+ internalType: "bytes32",
462
+ name: "intentHash",
463
+ type: "bytes32",
464
+ },
465
+ {
466
+ internalType: "uint256",
467
+ name: "amountSpent",
468
+ type: "uint256",
469
+ },
470
+ {
471
+ internalType: "uint256",
472
+ name: "feeAmount",
473
+ type: "uint256",
474
+ },
475
+ {
476
+ internalType: "address",
477
+ name: "swapExecutor",
478
+ type: "address",
479
+ },
480
+ {
481
+ internalType: "address",
482
+ name: "swapExtRouter",
483
+ type: "address",
484
+ },
485
+ {
486
+ internalType: "bytes",
487
+ name: "swapCalldata",
488
+ type: "bytes",
489
+ },
490
+ {
491
+ internalType: "uint256",
492
+ name: "expiry",
493
+ type: "uint256",
494
+ },
495
+ ],
496
+ internalType:
497
+ "struct IPCrossChainSwapHub.ExecuteBuyCrossChainPtMessage",
498
+ name: "execMsg",
499
+ type: "tuple",
500
+ },
501
+ {
502
+ internalType: "bytes",
503
+ name: "execSig",
504
+ type: "bytes",
505
+ },
506
+ ],
507
+ name: "buyCrossChainPt",
508
+ outputs: [],
509
+ stateMutability: "payable",
510
+ type: "function",
511
+ },
512
+ {
513
+ inputs: [
514
+ {
515
+ internalType: "address",
516
+ name: "owner",
517
+ type: "address",
518
+ },
519
+ {
520
+ internalType: "uint32",
521
+ name: "boxId",
522
+ type: "uint32",
523
+ },
524
+ ],
525
+ name: "computeDepositBox",
526
+ outputs: [
527
+ {
528
+ internalType: "address",
529
+ name: "box",
530
+ type: "address",
531
+ },
532
+ {
533
+ internalType: "bytes32",
534
+ name: "salt",
535
+ type: "bytes32",
536
+ },
537
+ ],
538
+ stateMutability: "view",
539
+ type: "function",
540
+ },
541
+ {
542
+ inputs: [
543
+ {
544
+ components: [
545
+ {
546
+ internalType: "address",
547
+ name: "owner",
548
+ type: "address",
549
+ },
550
+ {
551
+ internalType: "uint32",
552
+ name: "boxId",
553
+ type: "uint32",
554
+ },
555
+ {
556
+ internalType: "uint256",
557
+ name: "expiry",
558
+ type: "uint256",
559
+ },
560
+ {
561
+ internalType: "uint256",
562
+ name: "nonce",
563
+ type: "uint256",
564
+ },
565
+ {
566
+ internalType: "address",
567
+ name: "tokenSpent",
568
+ type: "address",
569
+ },
570
+ {
571
+ internalType: "uint256",
572
+ name: "amountSpent",
573
+ type: "uint256",
574
+ },
575
+ {
576
+ internalType: "address",
577
+ name: "tokenReceived",
578
+ type: "address",
579
+ },
580
+ {
581
+ internalType: "uint256",
582
+ name: "minReceived",
583
+ type: "uint256",
584
+ },
585
+ {
586
+ internalType: "uint256",
587
+ name: "feeAmount",
588
+ type: "uint256",
589
+ },
590
+ {
591
+ internalType: "address",
592
+ name: "swapExecutor",
593
+ type: "address",
594
+ },
595
+ {
596
+ internalType: "address",
597
+ name: "swapExtRouter",
598
+ type: "address",
599
+ },
600
+ {
601
+ internalType: "bytes",
602
+ name: "swapCalldata",
603
+ type: "bytes",
604
+ },
605
+ ],
606
+ internalType: "struct IPCrossChainSwapHub.SwapTokenMessage",
607
+ name: "message",
608
+ type: "tuple",
609
+ },
610
+ ],
611
+ name: "hashTypedData",
612
+ outputs: [
613
+ {
614
+ internalType: "bytes32",
615
+ name: "",
616
+ type: "bytes32",
617
+ },
618
+ ],
619
+ stateMutability: "view",
620
+ type: "function",
621
+ },
622
+ {
623
+ inputs: [
624
+ {
625
+ components: [
626
+ {
627
+ internalType: "address",
628
+ name: "validator",
629
+ type: "address",
630
+ },
631
+ {
632
+ internalType: "bytes32",
633
+ name: "intentHash",
634
+ type: "bytes32",
635
+ },
636
+ {
637
+ internalType: "uint256",
638
+ name: "amountSpent",
639
+ type: "uint256",
640
+ },
641
+ {
642
+ internalType: "uint256",
643
+ name: "feeAmount",
644
+ type: "uint256",
645
+ },
646
+ {
647
+ internalType: "address",
648
+ name: "swapExecutor",
649
+ type: "address",
650
+ },
651
+ {
652
+ internalType: "address",
653
+ name: "swapExtRouter",
654
+ type: "address",
655
+ },
656
+ {
657
+ internalType: "bytes",
658
+ name: "swapCalldata",
659
+ type: "bytes",
660
+ },
661
+ {
662
+ internalType: "uint256",
663
+ name: "expiry",
664
+ type: "uint256",
665
+ },
666
+ ],
667
+ internalType:
668
+ "struct IPCrossChainSwapHub.ExecuteBuyCrossChainPtMessage",
669
+ name: "message",
670
+ type: "tuple",
671
+ },
672
+ ],
673
+ name: "hashTypedData",
674
+ outputs: [
675
+ {
676
+ internalType: "bytes32",
677
+ name: "",
678
+ type: "bytes32",
679
+ },
680
+ ],
681
+ stateMutability: "view",
682
+ type: "function",
683
+ },
684
+ {
685
+ inputs: [
686
+ {
687
+ components: [
688
+ {
689
+ internalType: "address",
690
+ name: "owner",
691
+ type: "address",
692
+ },
693
+ {
694
+ internalType: "uint32",
695
+ name: "boxId",
696
+ type: "uint32",
697
+ },
698
+ {
699
+ internalType: "uint256",
700
+ name: "salt",
701
+ type: "uint256",
702
+ },
703
+ {
704
+ internalType: "uint256",
705
+ name: "expiry",
706
+ type: "uint256",
707
+ },
708
+ {
709
+ internalType: "address",
710
+ name: "tokenSpent",
711
+ type: "address",
712
+ },
713
+ {
714
+ internalType: "uint256",
715
+ name: "maxAmountSpent",
716
+ type: "uint256",
717
+ },
718
+ {
719
+ internalType: "address",
720
+ name: "pt",
721
+ type: "address",
722
+ },
723
+ {
724
+ internalType: "address",
725
+ name: "ptAdapter",
726
+ type: "address",
727
+ },
728
+ {
729
+ internalType: "uint256",
730
+ name: "minPtReceived",
731
+ type: "uint256",
732
+ },
733
+ {
734
+ internalType: "uint32",
735
+ name: "dstLzEid",
736
+ type: "uint32",
737
+ },
738
+ {
739
+ internalType: "bytes32",
740
+ name: "receiver",
741
+ type: "bytes32",
742
+ },
743
+ ],
744
+ internalType: "struct IPCrossChainSwapHub.BuyCrossChainPtIntent",
745
+ name: "intent",
746
+ type: "tuple",
747
+ },
748
+ ],
749
+ name: "hashTypedData",
750
+ outputs: [
751
+ {
752
+ internalType: "bytes32",
753
+ name: "",
754
+ type: "bytes32",
755
+ },
756
+ ],
757
+ stateMutability: "view",
758
+ type: "function",
759
+ },
760
+ {
761
+ inputs: [
762
+ {
763
+ components: [
764
+ {
765
+ internalType: "address",
766
+ name: "owner",
767
+ type: "address",
768
+ },
769
+ {
770
+ internalType: "uint32",
771
+ name: "boxId",
772
+ type: "uint32",
773
+ },
774
+ {
775
+ internalType: "uint256",
776
+ name: "expiry",
777
+ type: "uint256",
778
+ },
779
+ {
780
+ internalType: "uint256",
781
+ name: "nonce",
782
+ type: "uint256",
783
+ },
784
+ {
785
+ internalType: "address",
786
+ name: "token",
787
+ type: "address",
788
+ },
789
+ {
790
+ internalType: "uint256",
791
+ name: "bridgeAmount",
792
+ type: "uint256",
793
+ },
794
+ {
795
+ internalType: "uint256",
796
+ name: "feeAmount",
797
+ type: "uint256",
798
+ },
799
+ {
800
+ internalType: "address",
801
+ name: "bridgeExtRouter",
802
+ type: "address",
803
+ },
804
+ {
805
+ internalType: "bytes",
806
+ name: "bridgeCalldata",
807
+ type: "bytes",
808
+ },
809
+ ],
810
+ internalType: "struct IPCrossChainSwapHub.BridgeTokenMessage",
811
+ name: "message",
812
+ type: "tuple",
813
+ },
814
+ ],
815
+ name: "hashTypedData",
816
+ outputs: [
817
+ {
818
+ internalType: "bytes32",
819
+ name: "",
820
+ type: "bytes32",
821
+ },
822
+ ],
823
+ stateMutability: "view",
824
+ type: "function",
825
+ },
826
+ {
827
+ inputs: [
828
+ {
829
+ components: [
830
+ {
831
+ internalType: "address",
832
+ name: "owner",
833
+ type: "address",
834
+ },
835
+ {
836
+ internalType: "uint32",
837
+ name: "boxId",
838
+ type: "uint32",
839
+ },
840
+ {
841
+ internalType: "uint256",
842
+ name: "expiry",
843
+ type: "uint256",
844
+ },
845
+ {
846
+ internalType: "uint256",
847
+ name: "nonce",
848
+ type: "uint256",
849
+ },
850
+ {
851
+ internalType: "address",
852
+ name: "receiver",
853
+ type: "address",
854
+ },
855
+ {
856
+ internalType: "address",
857
+ name: "token",
858
+ type: "address",
859
+ },
860
+ {
861
+ internalType: "uint256",
862
+ name: "withdrawAmount",
863
+ type: "uint256",
864
+ },
865
+ {
866
+ internalType: "uint256",
867
+ name: "feeAmount",
868
+ type: "uint256",
869
+ },
870
+ ],
871
+ internalType: "struct IPCrossChainSwapHub.WithdrawTokenMessage",
872
+ name: "message",
873
+ type: "tuple",
874
+ },
875
+ ],
876
+ name: "hashTypedData",
877
+ outputs: [
878
+ {
879
+ internalType: "bytes32",
880
+ name: "",
881
+ type: "bytes32",
882
+ },
883
+ ],
884
+ stateMutability: "view",
885
+ type: "function",
886
+ },
887
+ {
888
+ inputs: [
889
+ {
890
+ internalType: "address",
891
+ name: "executor",
892
+ type: "address",
893
+ },
894
+ ],
895
+ name: "isExecutor",
896
+ outputs: [
897
+ {
898
+ internalType: "bool",
899
+ name: "",
900
+ type: "bool",
901
+ },
902
+ ],
903
+ stateMutability: "view",
904
+ type: "function",
905
+ },
906
+ {
907
+ inputs: [
908
+ {
909
+ internalType: "bytes32",
910
+ name: "intentHash",
911
+ type: "bytes32",
912
+ },
913
+ ],
914
+ name: "isIntentExecuted",
915
+ outputs: [
916
+ {
917
+ internalType: "bool",
918
+ name: "",
919
+ type: "bool",
920
+ },
921
+ ],
922
+ stateMutability: "view",
923
+ type: "function",
924
+ },
925
+ {
926
+ inputs: [
927
+ {
928
+ internalType: "address",
929
+ name: "validator",
930
+ type: "address",
931
+ },
932
+ ],
933
+ name: "isValidator",
934
+ outputs: [
935
+ {
936
+ internalType: "bool",
937
+ name: "",
938
+ type: "bool",
939
+ },
940
+ ],
941
+ stateMutability: "view",
942
+ type: "function",
943
+ },
944
+ {
945
+ inputs: [
946
+ {
947
+ internalType: "address",
948
+ name: "owner",
949
+ type: "address",
950
+ },
951
+ ],
952
+ name: "ownerNonce",
953
+ outputs: [
954
+ {
955
+ internalType: "uint256",
956
+ name: "",
957
+ type: "uint256",
958
+ },
959
+ ],
960
+ stateMutability: "view",
961
+ type: "function",
962
+ },
963
+ {
964
+ inputs: [
965
+ {
966
+ internalType: "address",
967
+ name: "executor",
968
+ type: "address",
969
+ },
970
+ {
971
+ internalType: "bool",
972
+ name: "isExecutor",
973
+ type: "bool",
974
+ },
975
+ ],
976
+ name: "setExecutor",
977
+ outputs: [],
978
+ stateMutability: "nonpayable",
979
+ type: "function",
980
+ },
981
+ {
982
+ inputs: [
983
+ {
984
+ internalType: "address",
985
+ name: "validator",
986
+ type: "address",
987
+ },
988
+ {
989
+ internalType: "bool",
990
+ name: "isValidator",
991
+ type: "bool",
992
+ },
993
+ ],
994
+ name: "setValidator",
995
+ outputs: [],
996
+ stateMutability: "nonpayable",
997
+ type: "function",
998
+ },
999
+ {
1000
+ inputs: [
1001
+ {
1002
+ components: [
1003
+ {
1004
+ internalType: "address",
1005
+ name: "owner",
1006
+ type: "address",
1007
+ },
1008
+ {
1009
+ internalType: "uint32",
1010
+ name: "boxId",
1011
+ type: "uint32",
1012
+ },
1013
+ {
1014
+ internalType: "uint256",
1015
+ name: "expiry",
1016
+ type: "uint256",
1017
+ },
1018
+ {
1019
+ internalType: "uint256",
1020
+ name: "nonce",
1021
+ type: "uint256",
1022
+ },
1023
+ {
1024
+ internalType: "address",
1025
+ name: "tokenSpent",
1026
+ type: "address",
1027
+ },
1028
+ {
1029
+ internalType: "uint256",
1030
+ name: "amountSpent",
1031
+ type: "uint256",
1032
+ },
1033
+ {
1034
+ internalType: "address",
1035
+ name: "tokenReceived",
1036
+ type: "address",
1037
+ },
1038
+ {
1039
+ internalType: "uint256",
1040
+ name: "minReceived",
1041
+ type: "uint256",
1042
+ },
1043
+ {
1044
+ internalType: "uint256",
1045
+ name: "feeAmount",
1046
+ type: "uint256",
1047
+ },
1048
+ {
1049
+ internalType: "address",
1050
+ name: "swapExecutor",
1051
+ type: "address",
1052
+ },
1053
+ {
1054
+ internalType: "address",
1055
+ name: "swapExtRouter",
1056
+ type: "address",
1057
+ },
1058
+ {
1059
+ internalType: "bytes",
1060
+ name: "swapCalldata",
1061
+ type: "bytes",
1062
+ },
1063
+ ],
1064
+ internalType: "struct IPCrossChainSwapHub.SwapTokenMessage",
1065
+ name: "message",
1066
+ type: "tuple",
1067
+ },
1068
+ {
1069
+ internalType: "bytes",
1070
+ name: "signature",
1071
+ type: "bytes",
1072
+ },
1073
+ ],
1074
+ name: "swapToken",
1075
+ outputs: [],
1076
+ stateMutability: "nonpayable",
1077
+ type: "function",
1078
+ },
1079
+ {
1080
+ inputs: [
1081
+ {
1082
+ components: [
1083
+ {
1084
+ internalType: "address",
1085
+ name: "owner",
1086
+ type: "address",
1087
+ },
1088
+ {
1089
+ internalType: "uint32",
1090
+ name: "boxId",
1091
+ type: "uint32",
1092
+ },
1093
+ {
1094
+ internalType: "uint256",
1095
+ name: "expiry",
1096
+ type: "uint256",
1097
+ },
1098
+ {
1099
+ internalType: "uint256",
1100
+ name: "nonce",
1101
+ type: "uint256",
1102
+ },
1103
+ {
1104
+ internalType: "address",
1105
+ name: "receiver",
1106
+ type: "address",
1107
+ },
1108
+ {
1109
+ internalType: "address",
1110
+ name: "token",
1111
+ type: "address",
1112
+ },
1113
+ {
1114
+ internalType: "uint256",
1115
+ name: "withdrawAmount",
1116
+ type: "uint256",
1117
+ },
1118
+ {
1119
+ internalType: "uint256",
1120
+ name: "feeAmount",
1121
+ type: "uint256",
1122
+ },
1123
+ ],
1124
+ internalType: "struct IPCrossChainSwapHub.WithdrawTokenMessage",
1125
+ name: "message",
1126
+ type: "tuple",
1127
+ },
1128
+ {
1129
+ internalType: "bytes",
1130
+ name: "signature",
1131
+ type: "bytes",
1132
+ },
1133
+ ],
1134
+ name: "withdrawToken",
1135
+ outputs: [],
1136
+ stateMutability: "nonpayable",
1137
+ type: "function",
1138
+ },
1139
+ ];
1140
+
1141
+ export class IPCrossChainSwapHub__factory {
1142
+ static readonly abi = _abi;
1143
+ static createInterface(): IPCrossChainSwapHubInterface {
1144
+ return new utils.Interface(_abi) as IPCrossChainSwapHubInterface;
1145
+ }
1146
+ static connect(
1147
+ address: string,
1148
+ signerOrProvider: Signer | Provider
1149
+ ): IPCrossChainSwapHub {
1150
+ return new Contract(address, _abi, signerOrProvider) as IPCrossChainSwapHub;
1151
+ }
1152
+ }