@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
@@ -4,123 +4,96 @@
4
4
 
5
5
  import { Contract, Signer, utils } from "ethers";
6
6
  import { Provider } from "@ethersproject/providers";
7
- import type {
8
- BasePendleBridgedPrincipalToken,
9
- BasePendleBridgedPrincipalTokenInterface,
10
- } from "../BasePendleBridgedPrincipalToken";
7
+ import type { SwapHubBase, SwapHubBaseInterface } from "../SwapHubBase";
11
8
 
12
9
  const _abi = [
13
10
  {
14
11
  inputs: [],
15
- name: "InvalidDelegate",
12
+ name: "ExcessiveNativeFee",
16
13
  type: "error",
17
14
  },
18
15
  {
19
16
  inputs: [],
20
- name: "InvalidEndpointCall",
17
+ name: "InsufficientTokenReceived",
21
18
  type: "error",
22
19
  },
23
20
  {
24
21
  inputs: [],
25
- name: "InvalidLocalDecimals",
22
+ name: "IntentExecuted",
26
23
  type: "error",
27
24
  },
28
25
  {
29
- inputs: [
30
- {
31
- internalType: "bytes",
32
- name: "options",
33
- type: "bytes",
34
- },
35
- ],
36
- name: "InvalidOptions",
26
+ inputs: [],
27
+ name: "IntentHashMismatch",
37
28
  type: "error",
38
29
  },
39
30
  {
40
31
  inputs: [],
41
- name: "LzTokenUnavailable",
32
+ name: "InvalidAmountIn",
42
33
  type: "error",
43
34
  },
44
35
  {
45
- inputs: [
46
- {
47
- internalType: "uint32",
48
- name: "eid",
49
- type: "uint32",
50
- },
51
- ],
52
- name: "NoPeer",
36
+ inputs: [],
37
+ name: "InvalidNonce",
53
38
  type: "error",
54
39
  },
55
40
  {
56
- inputs: [
57
- {
58
- internalType: "uint256",
59
- name: "msgValue",
60
- type: "uint256",
61
- },
62
- ],
63
- name: "NotEnoughNative",
41
+ inputs: [],
42
+ name: "InvalidSignature",
43
+ type: "error",
44
+ },
45
+ {
46
+ inputs: [],
47
+ name: "InvalidValidator",
48
+ type: "error",
49
+ },
50
+ {
51
+ inputs: [],
52
+ name: "MessageExpired",
64
53
  type: "error",
65
54
  },
66
55
  {
56
+ anonymous: false,
67
57
  inputs: [
68
58
  {
59
+ indexed: true,
69
60
  internalType: "address",
70
- name: "addr",
61
+ name: "owner",
71
62
  type: "address",
72
63
  },
73
- ],
74
- name: "OnlyEndpoint",
75
- type: "error",
76
- },
77
- {
78
- inputs: [
79
64
  {
65
+ indexed: false,
80
66
  internalType: "uint32",
81
- name: "eid",
67
+ name: "boxId",
82
68
  type: "uint32",
83
69
  },
84
70
  {
85
- internalType: "bytes32",
86
- name: "sender",
87
- type: "bytes32",
71
+ indexed: false,
72
+ internalType: "address",
73
+ name: "bridgeExtRouter",
74
+ type: "address",
88
75
  },
89
- ],
90
- name: "OnlyPeer",
91
- type: "error",
92
- },
93
- {
94
- inputs: [],
95
- name: "OnlySelf",
96
- type: "error",
97
- },
98
- {
99
- inputs: [
100
76
  {
101
- internalType: "bytes",
102
- name: "result",
103
- type: "bytes",
77
+ indexed: false,
78
+ internalType: "address",
79
+ name: "token",
80
+ type: "address",
104
81
  },
105
- ],
106
- name: "SimulationResult",
107
- type: "error",
108
- },
109
- {
110
- inputs: [
111
82
  {
83
+ indexed: false,
112
84
  internalType: "uint256",
113
- name: "amountLD",
85
+ name: "bridgeAmount",
114
86
  type: "uint256",
115
87
  },
116
88
  {
89
+ indexed: false,
117
90
  internalType: "uint256",
118
- name: "minAmountLD",
91
+ name: "feeAmount",
119
92
  type: "uint256",
120
93
  },
121
94
  ],
122
- name: "SlippageExceeded",
123
- type: "error",
95
+ name: "BridgeToken",
96
+ type: "event",
124
97
  },
125
98
  {
126
99
  anonymous: false,
@@ -132,62 +105,87 @@ const _abi = [
132
105
  type: "address",
133
106
  },
134
107
  {
135
- indexed: true,
108
+ indexed: false,
109
+ internalType: "uint32",
110
+ name: "boxId",
111
+ type: "uint32",
112
+ },
113
+ {
114
+ indexed: false,
115
+ internalType: "bytes32",
116
+ name: "intentHash",
117
+ type: "bytes32",
118
+ },
119
+ {
120
+ indexed: false,
121
+ internalType: "address",
122
+ name: "tokenSpent",
123
+ type: "address",
124
+ },
125
+ {
126
+ indexed: false,
127
+ internalType: "uint256",
128
+ name: "amountSpent",
129
+ type: "uint256",
130
+ },
131
+ {
132
+ indexed: false,
136
133
  internalType: "address",
137
- name: "spender",
134
+ name: "pt",
135
+ type: "address",
136
+ },
137
+ {
138
+ indexed: false,
139
+ internalType: "address",
140
+ name: "ptAdapter",
138
141
  type: "address",
139
142
  },
140
143
  {
141
144
  indexed: false,
142
145
  internalType: "uint256",
143
- name: "value",
146
+ name: "netPtReceived",
144
147
  type: "uint256",
145
148
  },
146
149
  ],
147
- name: "Approval",
150
+ name: "BuyCrossChainPt",
151
+ type: "event",
152
+ },
153
+ {
154
+ anonymous: false,
155
+ inputs: [],
156
+ name: "EIP712DomainChanged",
148
157
  type: "event",
149
158
  },
150
159
  {
151
160
  anonymous: false,
152
161
  inputs: [
153
162
  {
154
- components: [
155
- {
156
- internalType: "uint32",
157
- name: "eid",
158
- type: "uint32",
159
- },
160
- {
161
- internalType: "uint16",
162
- name: "msgType",
163
- type: "uint16",
164
- },
165
- {
166
- internalType: "bytes",
167
- name: "options",
168
- type: "bytes",
169
- },
170
- ],
171
163
  indexed: false,
172
- internalType: "struct EnforcedOptionParam[]",
173
- name: "_enforcedOptions",
174
- type: "tuple[]",
164
+ internalType: "uint8",
165
+ name: "version",
166
+ type: "uint8",
175
167
  },
176
168
  ],
177
- name: "EnforcedOptionSet",
169
+ name: "Initialized",
178
170
  type: "event",
179
171
  },
180
172
  {
181
173
  anonymous: false,
182
174
  inputs: [
183
175
  {
184
- indexed: false,
176
+ indexed: true,
177
+ internalType: "address",
178
+ name: "previousOwner",
179
+ type: "address",
180
+ },
181
+ {
182
+ indexed: true,
185
183
  internalType: "address",
186
- name: "inspector",
184
+ name: "newOwner",
187
185
  type: "address",
188
186
  },
189
187
  ],
190
- name: "MsgInspectorSet",
188
+ name: "OwnershipTransferred",
191
189
  type: "event",
192
190
  },
193
191
  {
@@ -195,30 +193,37 @@ const _abi = [
195
193
  inputs: [
196
194
  {
197
195
  indexed: true,
198
- internalType: "bytes32",
199
- name: "guid",
200
- type: "bytes32",
196
+ internalType: "address",
197
+ name: "executor",
198
+ type: "address",
201
199
  },
202
200
  {
203
201
  indexed: false,
204
- internalType: "uint32",
205
- name: "srcEid",
206
- type: "uint32",
202
+ internalType: "bool",
203
+ name: "isExecutor",
204
+ type: "bool",
207
205
  },
206
+ ],
207
+ name: "SetExecutor",
208
+ type: "event",
209
+ },
210
+ {
211
+ anonymous: false,
212
+ inputs: [
208
213
  {
209
214
  indexed: true,
210
215
  internalType: "address",
211
- name: "toAddress",
216
+ name: "validator",
212
217
  type: "address",
213
218
  },
214
219
  {
215
220
  indexed: false,
216
- internalType: "uint256",
217
- name: "amountReceivedLD",
218
- type: "uint256",
221
+ internalType: "bool",
222
+ name: "isValidator",
223
+ type: "bool",
219
224
  },
220
225
  ],
221
- name: "OFTReceived",
226
+ name: "SetValidator",
222
227
  type: "event",
223
228
  },
224
229
  {
@@ -226,36 +231,42 @@ const _abi = [
226
231
  inputs: [
227
232
  {
228
233
  indexed: true,
229
- internalType: "bytes32",
230
- name: "guid",
231
- type: "bytes32",
234
+ internalType: "address",
235
+ name: "owner",
236
+ type: "address",
232
237
  },
233
238
  {
234
239
  indexed: false,
235
240
  internalType: "uint32",
236
- name: "dstEid",
241
+ name: "boxId",
237
242
  type: "uint32",
238
243
  },
239
244
  {
240
- indexed: true,
245
+ indexed: false,
241
246
  internalType: "address",
242
- name: "fromAddress",
247
+ name: "tokenSpent",
243
248
  type: "address",
244
249
  },
245
250
  {
246
251
  indexed: false,
247
252
  internalType: "uint256",
248
- name: "amountSentLD",
253
+ name: "amountSpent",
249
254
  type: "uint256",
250
255
  },
256
+ {
257
+ indexed: false,
258
+ internalType: "address",
259
+ name: "tokenReceived",
260
+ type: "address",
261
+ },
251
262
  {
252
263
  indexed: false,
253
264
  internalType: "uint256",
254
- name: "amountReceivedLD",
265
+ name: "netTokenReceived",
255
266
  type: "uint256",
256
267
  },
257
268
  ],
258
- name: "OFTSent",
269
+ name: "SwapToken",
259
270
  type: "event",
260
271
  },
261
272
  {
@@ -264,84 +275,64 @@ const _abi = [
264
275
  {
265
276
  indexed: true,
266
277
  internalType: "address",
267
- name: "previousOwner",
268
- type: "address",
269
- },
270
- {
271
- indexed: true,
272
- internalType: "address",
273
- name: "newOwner",
278
+ name: "owner",
274
279
  type: "address",
275
280
  },
276
- ],
277
- name: "OwnershipTransferred",
278
- type: "event",
279
- },
280
- {
281
- anonymous: false,
282
- inputs: [
283
281
  {
284
282
  indexed: false,
285
283
  internalType: "uint32",
286
- name: "eid",
284
+ name: "boxId",
287
285
  type: "uint32",
288
286
  },
289
- {
290
- indexed: false,
291
- internalType: "bytes32",
292
- name: "peer",
293
- type: "bytes32",
294
- },
295
- ],
296
- name: "PeerSet",
297
- type: "event",
298
- },
299
- {
300
- anonymous: false,
301
- inputs: [
302
287
  {
303
288
  indexed: false,
304
289
  internalType: "address",
305
- name: "preCrimeAddress",
290
+ name: "receiver",
306
291
  type: "address",
307
292
  },
308
- ],
309
- name: "PreCrimeSet",
310
- type: "event",
311
- },
312
- {
313
- anonymous: false,
314
- inputs: [
315
293
  {
316
- indexed: true,
294
+ indexed: false,
317
295
  internalType: "address",
318
- name: "from",
296
+ name: "token",
319
297
  type: "address",
320
298
  },
321
299
  {
322
- indexed: true,
323
- internalType: "address",
324
- name: "to",
325
- type: "address",
300
+ indexed: false,
301
+ internalType: "uint256",
302
+ name: "withdrawAmount",
303
+ type: "uint256",
326
304
  },
327
305
  {
328
306
  indexed: false,
329
307
  internalType: "uint256",
330
- name: "value",
308
+ name: "feeAmount",
331
309
  type: "uint256",
332
310
  },
333
311
  ],
334
- name: "Transfer",
312
+ name: "WithdrawToken",
335
313
  type: "event",
336
314
  },
337
315
  {
338
316
  inputs: [],
339
- name: "SEND",
317
+ name: "BEACON_PROXY_CODE_CONTRACT",
318
+ outputs: [
319
+ {
320
+ internalType: "address",
321
+ name: "",
322
+ type: "address",
323
+ },
324
+ ],
325
+ stateMutability: "view",
326
+ type: "function",
327
+ },
328
+ {
329
+ inputs: [],
330
+ name: "DEPOSIT_BOX_BEACON",
340
331
  outputs: [
341
332
  {
342
- internalType: "uint16",
333
+ internalType: "address",
343
334
  name: "",
344
- type: "uint16",
335
+ type: "address",
345
336
  },
346
337
  ],
347
338
  stateMutability: "view",
@@ -349,12 +340,12 @@ const _abi = [
349
340
  },
350
341
  {
351
342
  inputs: [],
352
- name: "SEND_AND_CALL",
343
+ name: "DEPOSIT_BOX_CODE_HASH",
353
344
  outputs: [
354
345
  {
355
- internalType: "uint16",
346
+ internalType: "bytes32",
356
347
  name: "",
357
- type: "uint16",
348
+ type: "bytes32",
358
349
  },
359
350
  ],
360
351
  stateMutability: "view",
@@ -364,652 +355,269 @@ const _abi = [
364
355
  inputs: [
365
356
  {
366
357
  components: [
358
+ {
359
+ internalType: "address",
360
+ name: "owner",
361
+ type: "address",
362
+ },
367
363
  {
368
364
  internalType: "uint32",
369
- name: "srcEid",
365
+ name: "boxId",
370
366
  type: "uint32",
371
367
  },
372
368
  {
373
- internalType: "bytes32",
374
- name: "sender",
375
- type: "bytes32",
369
+ internalType: "uint256",
370
+ name: "expiry",
371
+ type: "uint256",
376
372
  },
377
373
  {
378
- internalType: "uint64",
374
+ internalType: "uint256",
379
375
  name: "nonce",
380
- type: "uint64",
376
+ type: "uint256",
377
+ },
378
+ {
379
+ internalType: "address",
380
+ name: "token",
381
+ type: "address",
382
+ },
383
+ {
384
+ internalType: "uint256",
385
+ name: "bridgeAmount",
386
+ type: "uint256",
387
+ },
388
+ {
389
+ internalType: "uint256",
390
+ name: "feeAmount",
391
+ type: "uint256",
392
+ },
393
+ {
394
+ internalType: "address",
395
+ name: "bridgeExtRouter",
396
+ type: "address",
397
+ },
398
+ {
399
+ internalType: "bytes",
400
+ name: "bridgeCalldata",
401
+ type: "bytes",
381
402
  },
382
403
  ],
383
- internalType: "struct Origin",
384
- name: "origin",
404
+ internalType: "struct IPCrossChainSwapHub.BridgeTokenMessage",
405
+ name: "message",
385
406
  type: "tuple",
386
407
  },
387
- ],
388
- name: "allowInitializePath",
389
- outputs: [
390
408
  {
391
- internalType: "bool",
392
- name: "",
393
- type: "bool",
409
+ internalType: "bytes",
410
+ name: "signature",
411
+ type: "bytes",
394
412
  },
395
413
  ],
396
- stateMutability: "view",
397
- type: "function",
398
- },
399
- {
400
- inputs: [
401
- {
402
- internalType: "address",
403
- name: "owner",
404
- type: "address",
405
- },
406
- {
407
- internalType: "address",
408
- name: "spender",
409
- type: "address",
410
- },
411
- ],
412
- name: "allowance",
413
- outputs: [
414
- {
415
- internalType: "uint256",
416
- name: "",
417
- type: "uint256",
418
- },
419
- ],
420
- stateMutability: "view",
421
- type: "function",
422
- },
423
- {
424
- inputs: [],
425
- name: "approvalRequired",
426
- outputs: [
427
- {
428
- internalType: "bool",
429
- name: "",
430
- type: "bool",
431
- },
432
- ],
433
- stateMutability: "pure",
434
- type: "function",
435
- },
436
- {
437
- inputs: [
438
- {
439
- internalType: "address",
440
- name: "spender",
441
- type: "address",
442
- },
443
- {
444
- internalType: "uint256",
445
- name: "amount",
446
- type: "uint256",
447
- },
448
- ],
449
- name: "approve",
450
- outputs: [
451
- {
452
- internalType: "bool",
453
- name: "",
454
- type: "bool",
455
- },
456
- ],
457
- stateMutability: "nonpayable",
458
- type: "function",
459
- },
460
- {
461
- inputs: [
462
- {
463
- internalType: "address",
464
- name: "account",
465
- type: "address",
466
- },
467
- ],
468
- name: "balanceOf",
469
- outputs: [
470
- {
471
- internalType: "uint256",
472
- name: "",
473
- type: "uint256",
474
- },
475
- ],
476
- stateMutability: "view",
477
- type: "function",
478
- },
479
- {
480
- inputs: [
481
- {
482
- internalType: "uint32",
483
- name: "_eid",
484
- type: "uint32",
485
- },
486
- {
487
- internalType: "uint16",
488
- name: "_msgType",
489
- type: "uint16",
490
- },
491
- {
492
- internalType: "bytes",
493
- name: "_extraOptions",
494
- type: "bytes",
495
- },
496
- ],
497
- name: "combineOptions",
498
- outputs: [
499
- {
500
- internalType: "bytes",
501
- name: "",
502
- type: "bytes",
503
- },
504
- ],
505
- stateMutability: "view",
506
- type: "function",
507
- },
508
- {
509
- inputs: [],
510
- name: "decimalConversionRate",
511
- outputs: [
512
- {
513
- internalType: "uint256",
514
- name: "",
515
- type: "uint256",
516
- },
517
- ],
518
- stateMutability: "view",
519
- type: "function",
520
- },
521
- {
522
- inputs: [],
523
- name: "decimals",
524
- outputs: [
525
- {
526
- internalType: "uint8",
527
- name: "",
528
- type: "uint8",
529
- },
530
- ],
531
- stateMutability: "view",
532
- type: "function",
533
- },
534
- {
535
- inputs: [
536
- {
537
- internalType: "address",
538
- name: "spender",
539
- type: "address",
540
- },
541
- {
542
- internalType: "uint256",
543
- name: "subtractedValue",
544
- type: "uint256",
545
- },
546
- ],
547
- name: "decreaseAllowance",
548
- outputs: [
549
- {
550
- internalType: "bool",
551
- name: "",
552
- type: "bool",
553
- },
554
- ],
555
- stateMutability: "nonpayable",
556
- type: "function",
557
- },
558
- {
559
- inputs: [],
560
- name: "endpoint",
561
- outputs: [
562
- {
563
- internalType: "contract ILayerZeroEndpointV2",
564
- name: "",
565
- type: "address",
566
- },
567
- ],
568
- stateMutability: "view",
569
- type: "function",
570
- },
571
- {
572
- inputs: [
573
- {
574
- internalType: "uint32",
575
- name: "eid",
576
- type: "uint32",
577
- },
578
- {
579
- internalType: "uint16",
580
- name: "msgType",
581
- type: "uint16",
582
- },
583
- ],
584
- name: "enforcedOptions",
585
- outputs: [
586
- {
587
- internalType: "bytes",
588
- name: "enforcedOption",
589
- type: "bytes",
590
- },
591
- ],
592
- stateMutability: "view",
593
- type: "function",
594
- },
595
- {
596
- inputs: [],
597
- name: "expiry",
598
- outputs: [
599
- {
600
- internalType: "uint256",
601
- name: "",
602
- type: "uint256",
603
- },
604
- ],
605
- stateMutability: "view",
606
- type: "function",
607
- },
608
- {
609
- inputs: [
610
- {
611
- internalType: "address",
612
- name: "spender",
613
- type: "address",
614
- },
615
- {
616
- internalType: "uint256",
617
- name: "addedValue",
618
- type: "uint256",
619
- },
620
- ],
621
- name: "increaseAllowance",
622
- outputs: [
623
- {
624
- internalType: "bool",
625
- name: "",
626
- type: "bool",
627
- },
628
- ],
629
- stateMutability: "nonpayable",
414
+ name: "bridgeToken",
415
+ outputs: [],
416
+ stateMutability: "payable",
630
417
  type: "function",
631
418
  },
632
419
  {
633
420
  inputs: [
634
421
  {
635
422
  components: [
423
+ {
424
+ internalType: "address",
425
+ name: "owner",
426
+ type: "address",
427
+ },
636
428
  {
637
429
  internalType: "uint32",
638
- name: "srcEid",
430
+ name: "boxId",
639
431
  type: "uint32",
640
432
  },
641
433
  {
642
- internalType: "bytes32",
643
- name: "sender",
644
- type: "bytes32",
434
+ internalType: "uint256",
435
+ name: "salt",
436
+ type: "uint256",
645
437
  },
646
438
  {
647
- internalType: "uint64",
648
- name: "nonce",
649
- type: "uint64",
439
+ internalType: "uint256",
440
+ name: "expiry",
441
+ type: "uint256",
442
+ },
443
+ {
444
+ internalType: "address",
445
+ name: "tokenSpent",
446
+ type: "address",
447
+ },
448
+ {
449
+ internalType: "uint256",
450
+ name: "maxAmountSpent",
451
+ type: "uint256",
452
+ },
453
+ {
454
+ internalType: "address",
455
+ name: "pt",
456
+ type: "address",
457
+ },
458
+ {
459
+ internalType: "address",
460
+ name: "ptAdapter",
461
+ type: "address",
462
+ },
463
+ {
464
+ internalType: "uint256",
465
+ name: "minPtReceived",
466
+ type: "uint256",
650
467
  },
651
- ],
652
- internalType: "struct Origin",
653
- name: "",
654
- type: "tuple",
655
- },
656
- {
657
- internalType: "bytes",
658
- name: "",
659
- type: "bytes",
660
- },
661
- {
662
- internalType: "address",
663
- name: "_sender",
664
- type: "address",
665
- },
666
- ],
667
- name: "isComposeMsgSender",
668
- outputs: [
669
- {
670
- internalType: "bool",
671
- name: "",
672
- type: "bool",
673
- },
674
- ],
675
- stateMutability: "view",
676
- type: "function",
677
- },
678
- {
679
- inputs: [
680
- {
681
- internalType: "uint32",
682
- name: "_eid",
683
- type: "uint32",
684
- },
685
- {
686
- internalType: "bytes32",
687
- name: "_peer",
688
- type: "bytes32",
689
- },
690
- ],
691
- name: "isPeer",
692
- outputs: [
693
- {
694
- internalType: "bool",
695
- name: "",
696
- type: "bool",
697
- },
698
- ],
699
- stateMutability: "view",
700
- type: "function",
701
- },
702
- {
703
- inputs: [
704
- {
705
- components: [
706
468
  {
707
469
  internalType: "uint32",
708
- name: "srcEid",
470
+ name: "dstLzEid",
709
471
  type: "uint32",
710
472
  },
711
473
  {
712
474
  internalType: "bytes32",
713
- name: "sender",
475
+ name: "receiver",
714
476
  type: "bytes32",
715
477
  },
716
- {
717
- internalType: "uint64",
718
- name: "nonce",
719
- type: "uint64",
720
- },
721
478
  ],
722
- internalType: "struct Origin",
723
- name: "_origin",
479
+ internalType: "struct IPCrossChainSwapHub.BuyCrossChainPtIntent",
480
+ name: "intent",
724
481
  type: "tuple",
725
482
  },
726
- {
727
- internalType: "bytes32",
728
- name: "_guid",
729
- type: "bytes32",
730
- },
731
483
  {
732
484
  internalType: "bytes",
733
- name: "_message",
485
+ name: "intentSig",
734
486
  type: "bytes",
735
487
  },
736
- {
737
- internalType: "address",
738
- name: "_executor",
739
- type: "address",
740
- },
741
- {
742
- internalType: "bytes",
743
- name: "_extraData",
744
- type: "bytes",
745
- },
746
- ],
747
- name: "lzReceive",
748
- outputs: [],
749
- stateMutability: "payable",
750
- type: "function",
751
- },
752
- {
753
- inputs: [
754
488
  {
755
489
  components: [
756
- {
757
- components: [
758
- {
759
- internalType: "uint32",
760
- name: "srcEid",
761
- type: "uint32",
762
- },
763
- {
764
- internalType: "bytes32",
765
- name: "sender",
766
- type: "bytes32",
767
- },
768
- {
769
- internalType: "uint64",
770
- name: "nonce",
771
- type: "uint64",
772
- },
773
- ],
774
- internalType: "struct Origin",
775
- name: "origin",
776
- type: "tuple",
777
- },
778
- {
779
- internalType: "uint32",
780
- name: "dstEid",
781
- type: "uint32",
782
- },
783
490
  {
784
491
  internalType: "address",
785
- name: "receiver",
492
+ name: "validator",
786
493
  type: "address",
787
494
  },
788
495
  {
789
496
  internalType: "bytes32",
790
- name: "guid",
497
+ name: "intentHash",
791
498
  type: "bytes32",
792
499
  },
793
500
  {
794
501
  internalType: "uint256",
795
- name: "value",
502
+ name: "amountSpent",
503
+ type: "uint256",
504
+ },
505
+ {
506
+ internalType: "uint256",
507
+ name: "feeAmount",
796
508
  type: "uint256",
797
509
  },
798
510
  {
799
511
  internalType: "address",
800
- name: "executor",
512
+ name: "swapExecutor",
801
513
  type: "address",
802
514
  },
803
515
  {
804
- internalType: "bytes",
805
- name: "message",
806
- type: "bytes",
516
+ internalType: "address",
517
+ name: "swapExtRouter",
518
+ type: "address",
807
519
  },
808
520
  {
809
521
  internalType: "bytes",
810
- name: "extraData",
522
+ name: "swapCalldata",
811
523
  type: "bytes",
812
524
  },
813
- ],
814
- internalType: "struct InboundPacket[]",
815
- name: "_packets",
816
- type: "tuple[]",
817
- },
818
- ],
819
- name: "lzReceiveAndRevert",
820
- outputs: [],
821
- stateMutability: "payable",
822
- type: "function",
823
- },
824
- {
825
- inputs: [
826
- {
827
- components: [
828
- {
829
- internalType: "uint32",
830
- name: "srcEid",
831
- type: "uint32",
832
- },
833
- {
834
- internalType: "bytes32",
835
- name: "sender",
836
- type: "bytes32",
837
- },
838
525
  {
839
- internalType: "uint64",
840
- name: "nonce",
841
- type: "uint64",
526
+ internalType: "uint256",
527
+ name: "expiry",
528
+ type: "uint256",
842
529
  },
843
530
  ],
844
- internalType: "struct Origin",
845
- name: "_origin",
531
+ internalType:
532
+ "struct IPCrossChainSwapHub.ExecuteBuyCrossChainPtMessage",
533
+ name: "execMsg",
846
534
  type: "tuple",
847
- },
848
- {
849
- internalType: "bytes32",
850
- name: "_guid",
851
- type: "bytes32",
852
- },
853
- {
854
- internalType: "bytes",
855
- name: "_message",
856
- type: "bytes",
857
- },
858
- {
859
- internalType: "address",
860
- name: "_executor",
861
- type: "address",
862
- },
863
- {
864
- internalType: "bytes",
865
- name: "_extraData",
866
- type: "bytes",
867
- },
868
- ],
869
- name: "lzReceiveSimulate",
870
- outputs: [],
871
- stateMutability: "payable",
872
- type: "function",
873
- },
874
- {
875
- inputs: [],
876
- name: "msgInspector",
877
- outputs: [
535
+ },
878
536
  {
879
- internalType: "address",
880
- name: "",
881
- type: "address",
537
+ internalType: "bytes",
538
+ name: "execSig",
539
+ type: "bytes",
882
540
  },
883
541
  ],
884
- stateMutability: "view",
542
+ name: "buyCrossChainPt",
543
+ outputs: [],
544
+ stateMutability: "payable",
885
545
  type: "function",
886
546
  },
887
547
  {
888
548
  inputs: [],
889
- name: "name",
890
- outputs: [
891
- {
892
- internalType: "string",
893
- name: "",
894
- type: "string",
895
- },
896
- ],
897
- stateMutability: "view",
549
+ name: "claimOwnership",
550
+ outputs: [],
551
+ stateMutability: "nonpayable",
898
552
  type: "function",
899
553
  },
900
554
  {
901
555
  inputs: [
902
556
  {
903
- internalType: "uint32",
904
- name: "",
905
- type: "uint32",
906
- },
907
- {
908
- internalType: "bytes32",
909
- name: "",
910
- type: "bytes32",
557
+ internalType: "address",
558
+ name: "owner",
559
+ type: "address",
911
560
  },
912
- ],
913
- name: "nextNonce",
914
- outputs: [
915
561
  {
916
- internalType: "uint64",
917
- name: "nonce",
918
- type: "uint64",
562
+ internalType: "uint32",
563
+ name: "boxId",
564
+ type: "uint32",
919
565
  },
920
566
  ],
921
- stateMutability: "view",
922
- type: "function",
923
- },
924
- {
925
- inputs: [],
926
- name: "oApp",
567
+ name: "computeDepositBox",
927
568
  outputs: [
928
569
  {
929
570
  internalType: "address",
930
- name: "",
571
+ name: "box",
931
572
  type: "address",
932
573
  },
574
+ {
575
+ internalType: "bytes32",
576
+ name: "salt",
577
+ type: "bytes32",
578
+ },
933
579
  ],
934
580
  stateMutability: "view",
935
581
  type: "function",
936
582
  },
937
583
  {
938
584
  inputs: [],
939
- name: "oAppVersion",
585
+ name: "eip712Domain",
940
586
  outputs: [
941
587
  {
942
- internalType: "uint64",
943
- name: "senderVersion",
944
- type: "uint64",
588
+ internalType: "bytes1",
589
+ name: "fields",
590
+ type: "bytes1",
945
591
  },
946
592
  {
947
- internalType: "uint64",
948
- name: "receiverVersion",
949
- type: "uint64",
593
+ internalType: "string",
594
+ name: "name",
595
+ type: "string",
950
596
  },
951
- ],
952
- stateMutability: "pure",
953
- type: "function",
954
- },
955
- {
956
- inputs: [],
957
- name: "oftVersion",
958
- outputs: [
959
597
  {
960
- internalType: "bytes4",
961
- name: "interfaceId",
962
- type: "bytes4",
598
+ internalType: "string",
599
+ name: "version",
600
+ type: "string",
963
601
  },
964
602
  {
965
- internalType: "uint64",
966
- name: "version",
967
- type: "uint64",
603
+ internalType: "uint256",
604
+ name: "chainId",
605
+ type: "uint256",
968
606
  },
969
- ],
970
- stateMutability: "pure",
971
- type: "function",
972
- },
973
- {
974
- inputs: [],
975
- name: "owner",
976
- outputs: [
977
607
  {
978
608
  internalType: "address",
979
- name: "",
609
+ name: "verifyingContract",
980
610
  type: "address",
981
611
  },
982
- ],
983
- stateMutability: "view",
984
- type: "function",
985
- },
986
- {
987
- inputs: [
988
- {
989
- internalType: "uint32",
990
- name: "eid",
991
- type: "uint32",
992
- },
993
- ],
994
- name: "peers",
995
- outputs: [
996
612
  {
997
613
  internalType: "bytes32",
998
- name: "peer",
614
+ name: "salt",
999
615
  type: "bytes32",
1000
616
  },
1001
- ],
1002
- stateMutability: "view",
1003
- type: "function",
1004
- },
1005
- {
1006
- inputs: [],
1007
- name: "preCrime",
1008
- outputs: [
1009
617
  {
1010
- internalType: "address",
1011
- name: "",
1012
- type: "address",
618
+ internalType: "uint256[]",
619
+ name: "extensions",
620
+ type: "uint256[]",
1013
621
  },
1014
622
  ],
1015
623
  stateMutability: "view",
@@ -1020,100 +628,79 @@ const _abi = [
1020
628
  {
1021
629
  components: [
1022
630
  {
1023
- internalType: "uint32",
1024
- name: "dstEid",
1025
- type: "uint32",
631
+ internalType: "address",
632
+ name: "owner",
633
+ type: "address",
1026
634
  },
1027
635
  {
1028
- internalType: "bytes32",
1029
- name: "to",
1030
- type: "bytes32",
636
+ internalType: "uint32",
637
+ name: "boxId",
638
+ type: "uint32",
1031
639
  },
1032
640
  {
1033
641
  internalType: "uint256",
1034
- name: "amountLD",
642
+ name: "expiry",
1035
643
  type: "uint256",
1036
644
  },
1037
645
  {
1038
646
  internalType: "uint256",
1039
- name: "minAmountLD",
647
+ name: "nonce",
1040
648
  type: "uint256",
1041
649
  },
1042
650
  {
1043
- internalType: "bytes",
1044
- name: "extraOptions",
1045
- type: "bytes",
651
+ internalType: "address",
652
+ name: "tokenSpent",
653
+ type: "address",
1046
654
  },
1047
655
  {
1048
- internalType: "bytes",
1049
- name: "composeMsg",
1050
- type: "bytes",
656
+ internalType: "uint256",
657
+ name: "amountSpent",
658
+ type: "uint256",
1051
659
  },
1052
660
  {
1053
- internalType: "bytes",
1054
- name: "oftCmd",
1055
- type: "bytes",
661
+ internalType: "address",
662
+ name: "tokenReceived",
663
+ type: "address",
1056
664
  },
1057
- ],
1058
- internalType: "struct SendParam",
1059
- name: "_sendParam",
1060
- type: "tuple",
1061
- },
1062
- ],
1063
- name: "quoteOFT",
1064
- outputs: [
1065
- {
1066
- components: [
1067
665
  {
1068
666
  internalType: "uint256",
1069
- name: "minAmountLD",
667
+ name: "minReceived",
1070
668
  type: "uint256",
1071
669
  },
1072
670
  {
1073
671
  internalType: "uint256",
1074
- name: "maxAmountLD",
672
+ name: "feeAmount",
1075
673
  type: "uint256",
1076
674
  },
1077
- ],
1078
- internalType: "struct OFTLimit",
1079
- name: "oftLimit",
1080
- type: "tuple",
1081
- },
1082
- {
1083
- components: [
1084
- {
1085
- internalType: "int256",
1086
- name: "feeAmountLD",
1087
- type: "int256",
1088
- },
1089
675
  {
1090
- internalType: "string",
1091
- name: "description",
1092
- type: "string",
676
+ internalType: "address",
677
+ name: "swapExecutor",
678
+ type: "address",
1093
679
  },
1094
- ],
1095
- internalType: "struct OFTFeeDetail[]",
1096
- name: "oftFeeDetails",
1097
- type: "tuple[]",
1098
- },
1099
- {
1100
- components: [
1101
680
  {
1102
- internalType: "uint256",
1103
- name: "amountSentLD",
1104
- type: "uint256",
681
+ internalType: "address",
682
+ name: "swapExtRouter",
683
+ type: "address",
1105
684
  },
1106
685
  {
1107
- internalType: "uint256",
1108
- name: "amountReceivedLD",
1109
- type: "uint256",
686
+ internalType: "bytes",
687
+ name: "swapCalldata",
688
+ type: "bytes",
1110
689
  },
1111
690
  ],
1112
- internalType: "struct OFTReceipt",
1113
- name: "oftReceipt",
691
+ internalType: "struct IPCrossChainSwapHub.SwapTokenMessage",
692
+ name: "message",
1114
693
  type: "tuple",
1115
694
  },
1116
695
  ],
696
+ name: "hashTypedData",
697
+ outputs: [
698
+ {
699
+ internalType: "bytes32",
700
+ name: "",
701
+ type: "bytes32",
702
+ },
703
+ ],
1117
704
  stateMutability: "view",
1118
705
  type: "function",
1119
706
  },
@@ -1122,300 +709,318 @@ const _abi = [
1122
709
  {
1123
710
  components: [
1124
711
  {
1125
- internalType: "uint32",
1126
- name: "dstEid",
1127
- type: "uint32",
712
+ internalType: "address",
713
+ name: "validator",
714
+ type: "address",
1128
715
  },
1129
716
  {
1130
717
  internalType: "bytes32",
1131
- name: "to",
718
+ name: "intentHash",
1132
719
  type: "bytes32",
1133
720
  },
1134
721
  {
1135
722
  internalType: "uint256",
1136
- name: "amountLD",
723
+ name: "amountSpent",
1137
724
  type: "uint256",
1138
725
  },
1139
726
  {
1140
727
  internalType: "uint256",
1141
- name: "minAmountLD",
728
+ name: "feeAmount",
1142
729
  type: "uint256",
1143
730
  },
1144
731
  {
1145
- internalType: "bytes",
1146
- name: "extraOptions",
1147
- type: "bytes",
732
+ internalType: "address",
733
+ name: "swapExecutor",
734
+ type: "address",
1148
735
  },
1149
736
  {
1150
- internalType: "bytes",
1151
- name: "composeMsg",
1152
- type: "bytes",
737
+ internalType: "address",
738
+ name: "swapExtRouter",
739
+ type: "address",
1153
740
  },
1154
741
  {
1155
742
  internalType: "bytes",
1156
- name: "oftCmd",
743
+ name: "swapCalldata",
1157
744
  type: "bytes",
1158
745
  },
1159
- ],
1160
- internalType: "struct SendParam",
1161
- name: "_sendParam",
1162
- type: "tuple",
1163
- },
1164
- {
1165
- internalType: "bool",
1166
- name: "_payInLzToken",
1167
- type: "bool",
1168
- },
1169
- ],
1170
- name: "quoteSend",
1171
- outputs: [
1172
- {
1173
- components: [
1174
- {
1175
- internalType: "uint256",
1176
- name: "nativeFee",
1177
- type: "uint256",
1178
- },
1179
746
  {
1180
747
  internalType: "uint256",
1181
- name: "lzTokenFee",
748
+ name: "expiry",
1182
749
  type: "uint256",
1183
750
  },
1184
751
  ],
1185
- internalType: "struct MessagingFee",
1186
- name: "msgFee",
752
+ internalType:
753
+ "struct IPCrossChainSwapHub.ExecuteBuyCrossChainPtMessage",
754
+ name: "message",
1187
755
  type: "tuple",
1188
756
  },
1189
757
  ],
758
+ name: "hashTypedData",
759
+ outputs: [
760
+ {
761
+ internalType: "bytes32",
762
+ name: "",
763
+ type: "bytes32",
764
+ },
765
+ ],
1190
766
  stateMutability: "view",
1191
767
  type: "function",
1192
768
  },
1193
- {
1194
- inputs: [],
1195
- name: "renounceOwnership",
1196
- outputs: [],
1197
- stateMutability: "nonpayable",
1198
- type: "function",
1199
- },
1200
769
  {
1201
770
  inputs: [
1202
771
  {
1203
772
  components: [
1204
773
  {
1205
- internalType: "uint32",
1206
- name: "dstEid",
1207
- type: "uint32",
774
+ internalType: "address",
775
+ name: "owner",
776
+ type: "address",
1208
777
  },
1209
778
  {
1210
- internalType: "bytes32",
1211
- name: "to",
1212
- type: "bytes32",
779
+ internalType: "uint32",
780
+ name: "boxId",
781
+ type: "uint32",
1213
782
  },
1214
783
  {
1215
784
  internalType: "uint256",
1216
- name: "amountLD",
785
+ name: "salt",
1217
786
  type: "uint256",
1218
787
  },
1219
788
  {
1220
789
  internalType: "uint256",
1221
- name: "minAmountLD",
790
+ name: "expiry",
1222
791
  type: "uint256",
1223
792
  },
1224
793
  {
1225
- internalType: "bytes",
1226
- name: "extraOptions",
1227
- type: "bytes",
794
+ internalType: "address",
795
+ name: "tokenSpent",
796
+ type: "address",
1228
797
  },
1229
798
  {
1230
- internalType: "bytes",
1231
- name: "composeMsg",
1232
- type: "bytes",
799
+ internalType: "uint256",
800
+ name: "maxAmountSpent",
801
+ type: "uint256",
1233
802
  },
1234
803
  {
1235
- internalType: "bytes",
1236
- name: "oftCmd",
1237
- type: "bytes",
804
+ internalType: "address",
805
+ name: "pt",
806
+ type: "address",
1238
807
  },
1239
- ],
1240
- internalType: "struct SendParam",
1241
- name: "_sendParam",
1242
- type: "tuple",
1243
- },
1244
- {
1245
- components: [
1246
808
  {
1247
- internalType: "uint256",
1248
- name: "nativeFee",
1249
- type: "uint256",
809
+ internalType: "address",
810
+ name: "ptAdapter",
811
+ type: "address",
1250
812
  },
1251
813
  {
1252
814
  internalType: "uint256",
1253
- name: "lzTokenFee",
815
+ name: "minPtReceived",
1254
816
  type: "uint256",
1255
817
  },
818
+ {
819
+ internalType: "uint32",
820
+ name: "dstLzEid",
821
+ type: "uint32",
822
+ },
823
+ {
824
+ internalType: "bytes32",
825
+ name: "receiver",
826
+ type: "bytes32",
827
+ },
1256
828
  ],
1257
- internalType: "struct MessagingFee",
1258
- name: "_fee",
829
+ internalType: "struct IPCrossChainSwapHub.BuyCrossChainPtIntent",
830
+ name: "intent",
1259
831
  type: "tuple",
1260
832
  },
833
+ ],
834
+ name: "hashTypedData",
835
+ outputs: [
1261
836
  {
1262
- internalType: "address",
1263
- name: "_refundAddress",
1264
- type: "address",
837
+ internalType: "bytes32",
838
+ name: "",
839
+ type: "bytes32",
1265
840
  },
1266
841
  ],
1267
- name: "send",
1268
- outputs: [
842
+ stateMutability: "view",
843
+ type: "function",
844
+ },
845
+ {
846
+ inputs: [
1269
847
  {
1270
848
  components: [
1271
849
  {
1272
- internalType: "bytes32",
1273
- name: "guid",
1274
- type: "bytes32",
850
+ internalType: "address",
851
+ name: "owner",
852
+ type: "address",
1275
853
  },
1276
854
  {
1277
- internalType: "uint64",
855
+ internalType: "uint32",
856
+ name: "boxId",
857
+ type: "uint32",
858
+ },
859
+ {
860
+ internalType: "uint256",
861
+ name: "expiry",
862
+ type: "uint256",
863
+ },
864
+ {
865
+ internalType: "uint256",
1278
866
  name: "nonce",
1279
- type: "uint64",
1280
- },
1281
- {
1282
- components: [
1283
- {
1284
- internalType: "uint256",
1285
- name: "nativeFee",
1286
- type: "uint256",
1287
- },
1288
- {
1289
- internalType: "uint256",
1290
- name: "lzTokenFee",
1291
- type: "uint256",
1292
- },
1293
- ],
1294
- internalType: "struct MessagingFee",
1295
- name: "fee",
1296
- type: "tuple",
867
+ type: "uint256",
868
+ },
869
+ {
870
+ internalType: "address",
871
+ name: "token",
872
+ type: "address",
1297
873
  },
1298
- ],
1299
- internalType: "struct MessagingReceipt",
1300
- name: "msgReceipt",
1301
- type: "tuple",
1302
- },
1303
- {
1304
- components: [
1305
874
  {
1306
875
  internalType: "uint256",
1307
- name: "amountSentLD",
876
+ name: "bridgeAmount",
1308
877
  type: "uint256",
1309
878
  },
1310
879
  {
1311
880
  internalType: "uint256",
1312
- name: "amountReceivedLD",
881
+ name: "feeAmount",
1313
882
  type: "uint256",
1314
883
  },
884
+ {
885
+ internalType: "address",
886
+ name: "bridgeExtRouter",
887
+ type: "address",
888
+ },
889
+ {
890
+ internalType: "bytes",
891
+ name: "bridgeCalldata",
892
+ type: "bytes",
893
+ },
1315
894
  ],
1316
- internalType: "struct OFTReceipt",
1317
- name: "oftReceipt",
895
+ internalType: "struct IPCrossChainSwapHub.BridgeTokenMessage",
896
+ name: "message",
1318
897
  type: "tuple",
1319
898
  },
1320
899
  ],
1321
- stateMutability: "payable",
1322
- type: "function",
1323
- },
1324
- {
1325
- inputs: [
900
+ name: "hashTypedData",
901
+ outputs: [
1326
902
  {
1327
- internalType: "address",
1328
- name: "_delegate",
1329
- type: "address",
903
+ internalType: "bytes32",
904
+ name: "",
905
+ type: "bytes32",
1330
906
  },
1331
907
  ],
1332
- name: "setDelegate",
1333
- outputs: [],
1334
- stateMutability: "nonpayable",
908
+ stateMutability: "view",
1335
909
  type: "function",
1336
910
  },
1337
911
  {
1338
912
  inputs: [
1339
913
  {
1340
914
  components: [
915
+ {
916
+ internalType: "address",
917
+ name: "owner",
918
+ type: "address",
919
+ },
1341
920
  {
1342
921
  internalType: "uint32",
1343
- name: "eid",
922
+ name: "boxId",
1344
923
  type: "uint32",
1345
924
  },
1346
925
  {
1347
- internalType: "uint16",
1348
- name: "msgType",
1349
- type: "uint16",
926
+ internalType: "uint256",
927
+ name: "expiry",
928
+ type: "uint256",
1350
929
  },
1351
930
  {
1352
- internalType: "bytes",
1353
- name: "options",
1354
- type: "bytes",
931
+ internalType: "uint256",
932
+ name: "nonce",
933
+ type: "uint256",
934
+ },
935
+ {
936
+ internalType: "address",
937
+ name: "receiver",
938
+ type: "address",
939
+ },
940
+ {
941
+ internalType: "address",
942
+ name: "token",
943
+ type: "address",
944
+ },
945
+ {
946
+ internalType: "uint256",
947
+ name: "withdrawAmount",
948
+ type: "uint256",
949
+ },
950
+ {
951
+ internalType: "uint256",
952
+ name: "feeAmount",
953
+ type: "uint256",
1355
954
  },
1356
955
  ],
1357
- internalType: "struct EnforcedOptionParam[]",
1358
- name: "_enforcedOptions",
1359
- type: "tuple[]",
956
+ internalType: "struct IPCrossChainSwapHub.WithdrawTokenMessage",
957
+ name: "message",
958
+ type: "tuple",
1360
959
  },
1361
960
  ],
1362
- name: "setEnforcedOptions",
1363
- outputs: [],
1364
- stateMutability: "nonpayable",
961
+ name: "hashTypedData",
962
+ outputs: [
963
+ {
964
+ internalType: "bytes32",
965
+ name: "",
966
+ type: "bytes32",
967
+ },
968
+ ],
969
+ stateMutability: "view",
1365
970
  type: "function",
1366
971
  },
1367
972
  {
1368
973
  inputs: [
1369
974
  {
1370
975
  internalType: "address",
1371
- name: "_msgInspector",
976
+ name: "executor",
1372
977
  type: "address",
1373
978
  },
1374
979
  ],
1375
- name: "setMsgInspector",
1376
- outputs: [],
1377
- stateMutability: "nonpayable",
980
+ name: "isExecutor",
981
+ outputs: [
982
+ {
983
+ internalType: "bool",
984
+ name: "",
985
+ type: "bool",
986
+ },
987
+ ],
988
+ stateMutability: "view",
1378
989
  type: "function",
1379
990
  },
1380
991
  {
1381
992
  inputs: [
1382
- {
1383
- internalType: "uint32",
1384
- name: "_eid",
1385
- type: "uint32",
1386
- },
1387
993
  {
1388
994
  internalType: "bytes32",
1389
- name: "_peer",
995
+ name: "intentHash",
1390
996
  type: "bytes32",
1391
997
  },
1392
998
  ],
1393
- name: "setPeer",
1394
- outputs: [],
1395
- stateMutability: "nonpayable",
999
+ name: "isIntentExecuted",
1000
+ outputs: [
1001
+ {
1002
+ internalType: "bool",
1003
+ name: "",
1004
+ type: "bool",
1005
+ },
1006
+ ],
1007
+ stateMutability: "view",
1396
1008
  type: "function",
1397
1009
  },
1398
1010
  {
1399
1011
  inputs: [
1400
1012
  {
1401
1013
  internalType: "address",
1402
- name: "_preCrime",
1014
+ name: "validator",
1403
1015
  type: "address",
1404
1016
  },
1405
1017
  ],
1406
- name: "setPreCrime",
1407
- outputs: [],
1408
- stateMutability: "nonpayable",
1409
- type: "function",
1410
- },
1411
- {
1412
- inputs: [],
1413
- name: "sharedDecimals",
1018
+ name: "isValidator",
1414
1019
  outputs: [
1415
1020
  {
1416
- internalType: "uint8",
1021
+ internalType: "bool",
1417
1022
  name: "",
1418
- type: "uint8",
1023
+ type: "bool",
1419
1024
  },
1420
1025
  ],
1421
1026
  stateMutability: "view",
@@ -1423,38 +1028,44 @@ const _abi = [
1423
1028
  },
1424
1029
  {
1425
1030
  inputs: [],
1426
- name: "symbol",
1031
+ name: "owner",
1427
1032
  outputs: [
1428
1033
  {
1429
- internalType: "string",
1034
+ internalType: "address",
1430
1035
  name: "",
1431
- type: "string",
1036
+ type: "address",
1432
1037
  },
1433
1038
  ],
1434
1039
  stateMutability: "view",
1435
1040
  type: "function",
1436
1041
  },
1437
1042
  {
1438
- inputs: [],
1439
- name: "token",
1440
- outputs: [
1043
+ inputs: [
1441
1044
  {
1442
1045
  internalType: "address",
1443
- name: "",
1046
+ name: "owner",
1444
1047
  type: "address",
1445
1048
  },
1446
1049
  ],
1050
+ name: "ownerNonce",
1051
+ outputs: [
1052
+ {
1053
+ internalType: "uint256",
1054
+ name: "nonce",
1055
+ type: "uint256",
1056
+ },
1057
+ ],
1447
1058
  stateMutability: "view",
1448
1059
  type: "function",
1449
1060
  },
1450
1061
  {
1451
1062
  inputs: [],
1452
- name: "totalSupply",
1063
+ name: "pendingOwner",
1453
1064
  outputs: [
1454
1065
  {
1455
- internalType: "uint256",
1066
+ internalType: "address",
1456
1067
  name: "",
1457
- type: "uint256",
1068
+ type: "address",
1458
1069
  },
1459
1070
  ],
1460
1071
  stateMutability: "view",
@@ -1464,85 +1075,212 @@ const _abi = [
1464
1075
  inputs: [
1465
1076
  {
1466
1077
  internalType: "address",
1467
- name: "to",
1078
+ name: "executor",
1468
1079
  type: "address",
1469
1080
  },
1470
1081
  {
1471
- internalType: "uint256",
1472
- name: "amount",
1473
- type: "uint256",
1082
+ internalType: "bool",
1083
+ name: "isExecutor_",
1084
+ type: "bool",
1474
1085
  },
1475
1086
  ],
1476
- name: "transfer",
1477
- outputs: [
1087
+ name: "setExecutor",
1088
+ outputs: [],
1089
+ stateMutability: "nonpayable",
1090
+ type: "function",
1091
+ },
1092
+ {
1093
+ inputs: [
1094
+ {
1095
+ internalType: "address",
1096
+ name: "validator",
1097
+ type: "address",
1098
+ },
1478
1099
  {
1479
1100
  internalType: "bool",
1480
- name: "",
1101
+ name: "isValidator_",
1481
1102
  type: "bool",
1482
1103
  },
1483
1104
  ],
1105
+ name: "setValidator",
1106
+ outputs: [],
1484
1107
  stateMutability: "nonpayable",
1485
1108
  type: "function",
1486
1109
  },
1487
1110
  {
1488
1111
  inputs: [
1489
1112
  {
1490
- internalType: "address",
1491
- name: "from",
1492
- type: "address",
1113
+ components: [
1114
+ {
1115
+ internalType: "address",
1116
+ name: "owner",
1117
+ type: "address",
1118
+ },
1119
+ {
1120
+ internalType: "uint32",
1121
+ name: "boxId",
1122
+ type: "uint32",
1123
+ },
1124
+ {
1125
+ internalType: "uint256",
1126
+ name: "expiry",
1127
+ type: "uint256",
1128
+ },
1129
+ {
1130
+ internalType: "uint256",
1131
+ name: "nonce",
1132
+ type: "uint256",
1133
+ },
1134
+ {
1135
+ internalType: "address",
1136
+ name: "tokenSpent",
1137
+ type: "address",
1138
+ },
1139
+ {
1140
+ internalType: "uint256",
1141
+ name: "amountSpent",
1142
+ type: "uint256",
1143
+ },
1144
+ {
1145
+ internalType: "address",
1146
+ name: "tokenReceived",
1147
+ type: "address",
1148
+ },
1149
+ {
1150
+ internalType: "uint256",
1151
+ name: "minReceived",
1152
+ type: "uint256",
1153
+ },
1154
+ {
1155
+ internalType: "uint256",
1156
+ name: "feeAmount",
1157
+ type: "uint256",
1158
+ },
1159
+ {
1160
+ internalType: "address",
1161
+ name: "swapExecutor",
1162
+ type: "address",
1163
+ },
1164
+ {
1165
+ internalType: "address",
1166
+ name: "swapExtRouter",
1167
+ type: "address",
1168
+ },
1169
+ {
1170
+ internalType: "bytes",
1171
+ name: "swapCalldata",
1172
+ type: "bytes",
1173
+ },
1174
+ ],
1175
+ internalType: "struct IPCrossChainSwapHub.SwapTokenMessage",
1176
+ name: "message",
1177
+ type: "tuple",
1178
+ },
1179
+ {
1180
+ internalType: "bytes",
1181
+ name: "signature",
1182
+ type: "bytes",
1493
1183
  },
1184
+ ],
1185
+ name: "swapToken",
1186
+ outputs: [],
1187
+ stateMutability: "nonpayable",
1188
+ type: "function",
1189
+ },
1190
+ {
1191
+ inputs: [
1494
1192
  {
1495
1193
  internalType: "address",
1496
- name: "to",
1194
+ name: "newOwner",
1497
1195
  type: "address",
1498
1196
  },
1499
1197
  {
1500
- internalType: "uint256",
1501
- name: "amount",
1502
- type: "uint256",
1198
+ internalType: "bool",
1199
+ name: "direct",
1200
+ type: "bool",
1503
1201
  },
1504
- ],
1505
- name: "transferFrom",
1506
- outputs: [
1507
1202
  {
1508
1203
  internalType: "bool",
1509
- name: "",
1204
+ name: "renounce",
1510
1205
  type: "bool",
1511
1206
  },
1512
1207
  ],
1208
+ name: "transferOwnership",
1209
+ outputs: [],
1513
1210
  stateMutability: "nonpayable",
1514
1211
  type: "function",
1515
1212
  },
1516
1213
  {
1517
1214
  inputs: [
1518
1215
  {
1519
- internalType: "address",
1520
- name: "newOwner",
1521
- type: "address",
1216
+ components: [
1217
+ {
1218
+ internalType: "address",
1219
+ name: "owner",
1220
+ type: "address",
1221
+ },
1222
+ {
1223
+ internalType: "uint32",
1224
+ name: "boxId",
1225
+ type: "uint32",
1226
+ },
1227
+ {
1228
+ internalType: "uint256",
1229
+ name: "expiry",
1230
+ type: "uint256",
1231
+ },
1232
+ {
1233
+ internalType: "uint256",
1234
+ name: "nonce",
1235
+ type: "uint256",
1236
+ },
1237
+ {
1238
+ internalType: "address",
1239
+ name: "receiver",
1240
+ type: "address",
1241
+ },
1242
+ {
1243
+ internalType: "address",
1244
+ name: "token",
1245
+ type: "address",
1246
+ },
1247
+ {
1248
+ internalType: "uint256",
1249
+ name: "withdrawAmount",
1250
+ type: "uint256",
1251
+ },
1252
+ {
1253
+ internalType: "uint256",
1254
+ name: "feeAmount",
1255
+ type: "uint256",
1256
+ },
1257
+ ],
1258
+ internalType: "struct IPCrossChainSwapHub.WithdrawTokenMessage",
1259
+ name: "message",
1260
+ type: "tuple",
1261
+ },
1262
+ {
1263
+ internalType: "bytes",
1264
+ name: "signature",
1265
+ type: "bytes",
1522
1266
  },
1523
1267
  ],
1524
- name: "transferOwnership",
1268
+ name: "withdrawToken",
1525
1269
  outputs: [],
1526
1270
  stateMutability: "nonpayable",
1527
1271
  type: "function",
1528
1272
  },
1529
1273
  ];
1530
1274
 
1531
- export class BasePendleBridgedPrincipalToken__factory {
1275
+ export class SwapHubBase__factory {
1532
1276
  static readonly abi = _abi;
1533
- static createInterface(): BasePendleBridgedPrincipalTokenInterface {
1534
- return new utils.Interface(
1535
- _abi
1536
- ) as BasePendleBridgedPrincipalTokenInterface;
1277
+ static createInterface(): SwapHubBaseInterface {
1278
+ return new utils.Interface(_abi) as SwapHubBaseInterface;
1537
1279
  }
1538
1280
  static connect(
1539
1281
  address: string,
1540
1282
  signerOrProvider: Signer | Provider
1541
- ): BasePendleBridgedPrincipalToken {
1542
- return new Contract(
1543
- address,
1544
- _abi,
1545
- signerOrProvider
1546
- ) as BasePendleBridgedPrincipalToken;
1283
+ ): SwapHubBase {
1284
+ return new Contract(address, _abi, signerOrProvider) as SwapHubBase;
1547
1285
  }
1548
1286
  }