@pendle/core-v2 6.5.0 → 6.6.0

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 (395) hide show
  1. package/LICENSE +12 -82
  2. package/build/artifacts/contracts/LiquidityMining/CrossChainMsg/PendleMsgReceiveEndpointUpg.sol/PendleMsgReceiveEndpointUpg.dbg.json +1 -1
  3. package/build/artifacts/contracts/LiquidityMining/CrossChainMsg/PendleMsgReceiverAppUpg.sol/PendleMsgReceiverAppUpg.dbg.json +1 -1
  4. package/build/artifacts/contracts/LiquidityMining/CrossChainMsg/PendleMsgSendEndpointUpg.sol/PendleMsgSendEndpointUpg.dbg.json +1 -1
  5. package/build/artifacts/contracts/LiquidityMining/CrossChainMsg/PendleMsgSenderAppUpg.sol/PendleMsgSenderAppUpg.dbg.json +1 -1
  6. package/build/artifacts/contracts/LiquidityMining/CrossChainMsg/libraries/ExcessivelySafeCall.sol/ExcessivelySafeCall.dbg.json +1 -1
  7. package/build/artifacts/contracts/LiquidityMining/CrossChainMsg/libraries/LayerZeroHelper.sol/LayerZeroHelper.dbg.json +1 -1
  8. package/build/artifacts/contracts/LiquidityMining/GaugeController/PendleGaugeControllerUpg.sol/PendleGaugeControllerUpg.dbg.json +1 -1
  9. package/build/artifacts/contracts/LiquidityMining/GaugeController/PendleGaugeControllerUpg.sol/PendleGaugeControllerUpg.json +58 -2
  10. package/build/artifacts/contracts/LiquidityMining/PendleMerkleDistributor.sol/PendleMerkleDistributor.dbg.json +1 -1
  11. package/build/artifacts/contracts/LiquidityMining/PendleMerkleDistributor.sol/PendleMerkleDistributor.json +2 -2
  12. package/build/artifacts/contracts/LiquidityMining/PendleMultiTokenMerkleDistributor.sol/PendleMultiTokenMerkleDistributor.dbg.json +1 -1
  13. package/build/artifacts/contracts/LiquidityMining/PendleMultiTokenMerkleDistributor.sol/PendleMultiTokenMerkleDistributor.json +2 -2
  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/LiquidityMining/sPendle/StakedPendle.sol/StakedPendle.dbg.json +1 -1
  22. package/build/artifacts/contracts/LiquidityMining/sPendle/StakedPendle.sol/StakedPendle.json +2 -2
  23. package/build/artifacts/contracts/core/Market/MarketMathCore.sol/MarketMathCore.dbg.json +1 -1
  24. package/build/artifacts/contracts/core/Market/OracleLib.sol/OracleLib.dbg.json +1 -1
  25. package/build/artifacts/contracts/core/Market/PendleGauge.sol/PendleGauge.dbg.json +1 -1
  26. package/build/artifacts/contracts/core/Market/PendleMarketFactoryV7Upg.sol/PendleMarketFactoryV7Upg.dbg.json +1 -1
  27. package/build/artifacts/contracts/core/Market/PendleMarketV7.sol/PendleMarketV7.dbg.json +1 -1
  28. package/build/artifacts/contracts/core/Market/PendleMarketV7.sol/PendleMarketV7.json +2 -2
  29. package/build/artifacts/contracts/core/RewardManager/RewardManager.sol/RewardManager.dbg.json +1 -1
  30. package/build/artifacts/contracts/core/RewardManager/RewardManagerAbstract.sol/RewardManagerAbstract.dbg.json +1 -1
  31. package/build/artifacts/contracts/core/StandardizedYield/PYIndex.sol/PYIndexLib.dbg.json +1 -1
  32. package/build/artifacts/contracts/core/StandardizedYield/SYUtils.sol/SYUtils.dbg.json +1 -1
  33. package/build/artifacts/contracts/core/YieldContracts/InterestManagerYT.sol/InterestManagerYT.dbg.json +1 -1
  34. package/build/artifacts/contracts/core/YieldContracts/PendlePrincipalToken.sol/PendlePrincipalToken.dbg.json +1 -1
  35. package/build/artifacts/contracts/core/YieldContracts/PendleYieldContractFactoryUpg.sol/PendleYieldContractFactoryUpg.dbg.json +1 -1
  36. package/build/artifacts/contracts/core/YieldContracts/PendleYieldContractFactoryUpg.sol/PendleYieldContractFactoryUpg.json +2 -2
  37. package/build/artifacts/contracts/core/YieldContracts/PendleYieldToken.sol/PendleYieldToken.dbg.json +1 -1
  38. package/build/artifacts/contracts/core/YieldContracts/PendleYieldToken.sol/PendleYieldToken.json +2 -2
  39. package/build/artifacts/contracts/core/erc20/PendleERC20.sol/PendleERC20.dbg.json +1 -1
  40. package/build/artifacts/contracts/core/libraries/ArrayLib.sol/ArrayLib.dbg.json +1 -1
  41. package/build/artifacts/contracts/core/libraries/BaseSplitCodeFactory.sol/BaseSplitCodeFactory.dbg.json +1 -1
  42. package/build/artifacts/contracts/core/libraries/BaseSplitCodeFactory.sol/CodeDeployer.dbg.json +1 -1
  43. package/build/artifacts/contracts/core/libraries/BoringOwnableUpgradeableV2.sol/BoringOwnableUpgradeableData.dbg.json +1 -1
  44. package/build/artifacts/contracts/core/libraries/BoringOwnableUpgradeableV2.sol/BoringOwnableUpgradeableV2.dbg.json +1 -1
  45. package/build/artifacts/contracts/core/libraries/Errors.sol/Errors.dbg.json +1 -1
  46. package/build/artifacts/contracts/core/libraries/ExpiryUtilsLib.sol/ExpiryUtils.dbg.json +1 -1
  47. package/build/artifacts/contracts/core/libraries/MiniHelpers.sol/MiniHelpers.dbg.json +1 -1
  48. package/build/artifacts/contracts/core/libraries/StringLib.sol/StringLib.dbg.json +1 -1
  49. package/build/artifacts/contracts/core/libraries/TokenHelper.sol/TokenHelper.dbg.json +1 -1
  50. package/build/artifacts/contracts/core/libraries/math/LogExpMath.sol/LogExpMath.dbg.json +1 -1
  51. package/build/artifacts/contracts/core/libraries/math/PMath.sol/PMath.dbg.json +1 -1
  52. package/build/artifacts/contracts/cross-chain/FixedPricePTAMM.sol/FixedPricePTAMM.dbg.json +1 -1
  53. package/build/artifacts/contracts/cross-chain/FixedPricePTAMM.sol/FixedPricePTAMM.json +2 -2
  54. package/build/artifacts/contracts/cross-chain/deposit-box/DepositBox.sol/DepositBox.dbg.json +4 -0
  55. package/build/artifacts/contracts/cross-chain/deposit-box/DepositBox.sol/DepositBox.json +170 -0
  56. package/build/artifacts/contracts/cross-chain/deposit-box/DepositBoxFactory.sol/DepositBoxFactory.dbg.json +4 -0
  57. package/build/artifacts/contracts/cross-chain/deposit-box/DepositBoxFactory.sol/DepositBoxFactory.json +124 -0
  58. package/build/artifacts/contracts/cross-chain/factory/hub/PendlePTOFTAdapterFactory.sol/PendlePTOFTAdapterFactory.dbg.json +1 -1
  59. package/build/artifacts/contracts/cross-chain/oftImpl/hub/OFTAdapterImpl.sol/OFTAdapterImpl.dbg.json +1 -1
  60. package/build/artifacts/contracts/cross-chain/oftImpl/spoke/PendleBridgedPrincipalToken.sol/PendleBridgedPrincipalToken.dbg.json +1 -1
  61. package/build/artifacts/contracts/cross-chain/swap-hub/PendleCrossChainSwapHub.sol/PendleCrossChainSwapHub.dbg.json +4 -0
  62. package/build/artifacts/contracts/cross-chain/swap-hub/PendleCrossChainSwapHub.sol/PendleCrossChainSwapHub.json +1005 -0
  63. package/build/artifacts/contracts/cross-chain/swap-hub/SwapHubBase.sol/SwapHubBase.dbg.json +4 -0
  64. package/build/artifacts/contracts/cross-chain/swap-hub/SwapHubBase.sol/SwapHubBase.json +976 -0
  65. package/build/artifacts/contracts/deprecated/VeDistributor/PendleFeeDistributorV2.sol/PendleFeeDistributorV2.dbg.json +1 -1
  66. package/build/artifacts/contracts/deprecated/VeDistributor/PendleFeeDistributorV2.sol/PendleFeeDistributorV2.json +2 -2
  67. package/build/artifacts/contracts/interfaces/IAddressProvider.sol/IAddressProvider.dbg.json +1 -1
  68. package/build/artifacts/contracts/interfaces/ILPWrapper.sol/ILPWrapper.dbg.json +1 -1
  69. package/build/artifacts/contracts/interfaces/ILayerZeroEndpoint.sol/ILayerZeroEndpoint.dbg.json +1 -1
  70. package/build/artifacts/contracts/interfaces/ILayerZeroReceiver.sol/ILayerZeroReceiver.dbg.json +1 -1
  71. package/build/artifacts/contracts/interfaces/IMarketSweed.sol/IMarketSweed.dbg.json +1 -1
  72. package/build/artifacts/contracts/interfaces/IOwnable.sol/IOwnable.dbg.json +1 -1
  73. package/build/artifacts/contracts/interfaces/IPActionAddRemoveLiqV3.sol/IPActionAddRemoveLiqV3.dbg.json +1 -1
  74. package/build/artifacts/contracts/interfaces/IPActionCallbackV3.sol/IPActionCallbackV3.dbg.json +1 -1
  75. package/build/artifacts/contracts/interfaces/IPActionCrossChain.sol/IPActionCrossChain.dbg.json +1 -1
  76. package/build/artifacts/contracts/interfaces/IPActionInfoStatic.sol/IPActionInfoStatic.dbg.json +1 -1
  77. package/build/artifacts/contracts/interfaces/IPActionMarketAuxStatic.sol/IPActionMarketAuxStatic.dbg.json +1 -1
  78. package/build/artifacts/contracts/interfaces/IPActionMarketCoreStatic.sol/IPActionMarketCoreStatic.dbg.json +1 -1
  79. package/build/artifacts/contracts/interfaces/IPActionMintRedeemStatic.sol/IPActionMintRedeemStatic.dbg.json +1 -1
  80. package/build/artifacts/contracts/interfaces/IPActionMiscV3.sol/IPActionMiscV3.dbg.json +1 -1
  81. package/build/artifacts/contracts/interfaces/IPActionSimple.sol/IPActionSimple.dbg.json +1 -1
  82. package/build/artifacts/contracts/interfaces/IPActionStorageStatic.sol/IPActionStorageStatic.dbg.json +1 -1
  83. package/build/artifacts/contracts/interfaces/IPActionStorageV4.sol/IPActionStorageV4.dbg.json +1 -1
  84. package/build/artifacts/contracts/interfaces/IPActionSwapPTV3.sol/IPActionSwapPTV3.dbg.json +1 -1
  85. package/build/artifacts/contracts/interfaces/IPActionSwapYTV3.sol/IPActionSwapYTV3.dbg.json +1 -1
  86. package/build/artifacts/contracts/interfaces/IPActionVePendleStatic.sol/IPActionVePendleStatic.dbg.json +1 -1
  87. package/build/artifacts/contracts/interfaces/IPAllActionV3.sol/IPAllActionV3.dbg.json +1 -1
  88. package/build/artifacts/contracts/interfaces/IPAllEventsV3.sol/IPActionAddRemoveLiqV3Events.dbg.json +1 -1
  89. package/build/artifacts/contracts/interfaces/IPAllEventsV3.sol/IPActionMiscV3Events.dbg.json +1 -1
  90. package/build/artifacts/contracts/interfaces/IPAllEventsV3.sol/IPActionStorageEvents.dbg.json +1 -1
  91. package/build/artifacts/contracts/interfaces/IPAllEventsV3.sol/IPActionSwapPTV3Events.dbg.json +1 -1
  92. package/build/artifacts/contracts/interfaces/IPAllEventsV3.sol/IPActionSwapYTV3Events.dbg.json +1 -1
  93. package/build/artifacts/contracts/interfaces/IPAllEventsV3.sol/IPAllEventsV3.dbg.json +1 -1
  94. package/build/artifacts/contracts/interfaces/IPBridgedPrincipalToken.sol/IPBridgedPrincipalToken.dbg.json +1 -1
  95. package/build/artifacts/contracts/interfaces/IPChainlinkOracle.sol/IPChainlinkOracle.dbg.json +1 -1
  96. package/build/artifacts/contracts/interfaces/IPChainlinkOracleEssential.sol/IPChainlinkOracleEssential.dbg.json +1 -1
  97. package/build/artifacts/contracts/interfaces/IPChainlinkOracleFactory.sol/IPChainlinkOracleFactory.dbg.json +1 -1
  98. package/build/artifacts/contracts/interfaces/IPChainlinkOracleWithQuote.sol/IPChainlinkOracleWithQuote.dbg.json +1 -1
  99. package/build/artifacts/contracts/interfaces/IPCommonPoolDeployHelperV2.sol/IPCommonPoolDeployHelperV2.dbg.json +1 -1
  100. package/build/artifacts/contracts/interfaces/IPCommonSYFactory.sol/IPCommonSYFactory.dbg.json +1 -1
  101. package/build/artifacts/contracts/interfaces/IPCrossChainSwapHub.sol/IPCrossChainSwapHub.dbg.json +4 -0
  102. package/build/artifacts/contracts/interfaces/IPCrossChainSwapHub.sol/IPCrossChainSwapHub.json +813 -0
  103. package/build/artifacts/contracts/interfaces/IPDepositBox.sol/IPDepositBox.dbg.json +4 -0
  104. package/build/artifacts/contracts/interfaces/IPDepositBox.sol/IPDepositBox.json +124 -0
  105. package/build/artifacts/contracts/interfaces/IPDepositBoxFactory.sol/IPDepositBoxFactory.dbg.json +4 -0
  106. package/build/artifacts/contracts/interfaces/IPDepositBoxFactory.sol/IPDepositBoxFactory.json +108 -0
  107. package/build/artifacts/contracts/interfaces/IPExchangeRateOracle.sol/IPExchangeRateOracle.dbg.json +1 -1
  108. package/build/artifacts/contracts/interfaces/IPExchangeRateOracleApp.sol/IPExchangeRateOracleApp.dbg.json +1 -1
  109. package/build/artifacts/contracts/interfaces/IPFeeDistributor.sol/IPFeeDistributor.dbg.json +1 -1
  110. package/build/artifacts/contracts/interfaces/IPFeeDistributorV2.sol/IPFeeDistributorV2.dbg.json +1 -1
  111. package/build/artifacts/contracts/interfaces/IPFixedPricePTAMM.sol/IPFixedPricePTAMM.dbg.json +1 -1
  112. package/build/artifacts/contracts/interfaces/IPFixedPricePTAMM.sol/IPFixedPricePTAMMSwapCallback.dbg.json +1 -1
  113. package/build/artifacts/contracts/interfaces/IPGauge.sol/IPGauge.dbg.json +1 -1
  114. package/build/artifacts/contracts/interfaces/IPGaugeController.sol/IPGaugeController.dbg.json +1 -1
  115. package/build/artifacts/contracts/interfaces/IPGaugeController.sol/IPGaugeController.json +56 -0
  116. package/build/artifacts/contracts/interfaces/IPGovernanceProxy.sol/IPGovernanceProxy.dbg.json +1 -1
  117. package/build/artifacts/contracts/interfaces/IPInterestManagerYT.sol/IPInterestManagerYT.dbg.json +1 -1
  118. package/build/artifacts/contracts/interfaces/IPInterestManagerYTV2.sol/IPInterestManagerYTV2.dbg.json +1 -1
  119. package/build/artifacts/contracts/interfaces/IPLPWrapperFactory.sol/IPLPWrapperFactory.dbg.json +1 -1
  120. package/build/artifacts/contracts/interfaces/IPLimitRouter.sol/IPLimitOrderType.dbg.json +1 -1
  121. package/build/artifacts/contracts/interfaces/IPLimitRouter.sol/IPLimitRouter.dbg.json +1 -1
  122. package/build/artifacts/contracts/interfaces/IPLimitRouter.sol/IPLimitRouter.json +231 -0
  123. package/build/artifacts/contracts/interfaces/IPLimitRouter.sol/IPLimitRouterCallback.dbg.json +1 -1
  124. package/build/artifacts/contracts/interfaces/IPMarket.sol/IPMarket.dbg.json +1 -1
  125. package/build/artifacts/contracts/interfaces/IPMarketFactory.sol/IPMarketFactory.dbg.json +1 -1
  126. package/build/artifacts/contracts/interfaces/IPMarketSwapCallback.sol/IPMarketSwapCallback.dbg.json +1 -1
  127. package/build/artifacts/contracts/interfaces/IPMerkleDistributor.sol/IPMerkleDistributor.dbg.json +1 -1
  128. package/build/artifacts/contracts/interfaces/IPMiniDiamond.sol/IPMiniDiamond.dbg.json +1 -1
  129. package/build/artifacts/contracts/interfaces/IPMsgReceiverApp.sol/IPMsgReceiverApp.dbg.json +1 -1
  130. package/build/artifacts/contracts/interfaces/IPMsgSendEndpoint.sol/IPMsgSendEndpoint.dbg.json +1 -1
  131. package/build/artifacts/contracts/interfaces/IPMultiTokenMerkleDistributor.sol/IPMultiTokenMerkleDistributor.dbg.json +1 -1
  132. package/build/artifacts/contracts/interfaces/IPOffchainStorage.sol/IPOffchainStorage.dbg.json +1 -1
  133. package/build/artifacts/contracts/interfaces/IPOracleForSy.sol/IPOracleForSy.dbg.json +1 -1
  134. package/build/artifacts/contracts/interfaces/IPPTOFTAdapterFactory.sol/IPPTOFTAdapterFactory.dbg.json +1 -1
  135. package/build/artifacts/contracts/interfaces/IPPYLpOracle.sol/IPPYLpOracle.dbg.json +1 -1
  136. package/build/artifacts/contracts/interfaces/IPPausingInterface.sol/IPPausingInterface.dbg.json +1 -1
  137. package/build/artifacts/contracts/interfaces/IPPoolDeployHelperV2.sol/IPPoolDeployHelperV2.dbg.json +1 -1
  138. package/build/artifacts/contracts/interfaces/IPPriceFeed.sol/IPPriceFeed.dbg.json +1 -1
  139. package/build/artifacts/contracts/interfaces/IPPrincipalToken.sol/IPPrincipalToken.dbg.json +1 -1
  140. package/build/artifacts/contracts/interfaces/IPReflector.sol/IPReflector.dbg.json +1 -1
  141. package/build/artifacts/contracts/interfaces/IPRouterStatic.sol/IPRouterStatic.dbg.json +1 -1
  142. package/build/artifacts/contracts/interfaces/IPStakedPendle.sol/IPStakedPendle.dbg.json +1 -1
  143. package/build/artifacts/contracts/interfaces/IPTokenWithSupplyCap.sol/IPTokenWithSupplyCap.dbg.json +1 -1
  144. package/build/artifacts/contracts/interfaces/IPVeToken.sol/IPVeToken.dbg.json +1 -1
  145. package/build/artifacts/contracts/interfaces/IPVotingEscrowMainchain.sol/IPVotingEscrowMainchain.dbg.json +1 -1
  146. package/build/artifacts/contracts/interfaces/IPYieldContractFactory.sol/IPYieldContractFactory.dbg.json +1 -1
  147. package/build/artifacts/contracts/interfaces/IPYieldToken.sol/IPYieldToken.dbg.json +1 -1
  148. package/build/artifacts/contracts/interfaces/IPYieldTokenV2.sol/IPYieldTokenV2.dbg.json +1 -1
  149. package/build/artifacts/contracts/interfaces/IRedstonePriceFeed.sol/IRedstonePriceFeed.dbg.json +1 -1
  150. package/build/artifacts/contracts/interfaces/IRewardManager.sol/IRewardManager.dbg.json +1 -1
  151. package/build/artifacts/contracts/interfaces/IStandardizedYield.sol/IStandardizedYield.dbg.json +1 -1
  152. package/build/artifacts/contracts/interfaces/IWETH.sol/IWETH.dbg.json +1 -1
  153. package/build/artifacts/contracts/interfaces/IWstETH.sol/IWstETH.dbg.json +1 -1
  154. package/build/artifacts/contracts/limit/LimitMathCore.sol/LimitMathCore.dbg.json +1 -1
  155. package/build/artifacts/contracts/limit/LimitMathCore.sol/LimitMathCore.json +2 -2
  156. package/build/artifacts/contracts/limit/LimitRouterBase.sol/LimitRouterBase.dbg.json +1 -1
  157. package/build/artifacts/contracts/limit/LimitRouterBase.sol/LimitRouterBase.json +226 -21
  158. package/build/artifacts/contracts/limit/PendleLimitRouter.sol/PendleLimitRouter.dbg.json +1 -1
  159. package/build/artifacts/contracts/limit/PendleLimitRouter.sol/PendleLimitRouter.json +228 -23
  160. package/build/artifacts/contracts/limit/helpers/NonceManager.sol/NonceManager.dbg.json +1 -1
  161. package/build/artifacts/contracts/offchain-helpers/AddressProvider.sol/AddressProvider.dbg.json +1 -1
  162. package/build/artifacts/contracts/offchain-helpers/AutomateReady.sol/AutomateReady.dbg.json +1 -1
  163. package/build/artifacts/contracts/offchain-helpers/AutomateReady.sol/IAutomate.dbg.json +1 -1
  164. package/build/artifacts/contracts/offchain-helpers/AutomateReady.sol/IOpsProxyFactory.dbg.json +1 -1
  165. package/build/artifacts/contracts/offchain-helpers/AutomateReady.sol/ITaskTreasuryUpgradable.dbg.json +1 -1
  166. package/build/artifacts/contracts/offchain-helpers/BalanceReader.sol/BalanceReader.dbg.json +1 -1
  167. package/build/artifacts/contracts/offchain-helpers/BalanceReader.sol/ILegacyMarket.dbg.json +1 -1
  168. package/build/artifacts/contracts/offchain-helpers/BaseSplitCodeFactoryContract.sol/BaseSplitCodeFactoryContract.dbg.json +1 -1
  169. package/build/artifacts/contracts/offchain-helpers/BytesLib.sol/BytesLib.dbg.json +1 -1
  170. package/build/artifacts/contracts/offchain-helpers/EmptyUUPS.sol/EmptyUUPS.dbg.json +1 -1
  171. package/build/artifacts/contracts/offchain-helpers/ExpiredLpPtRedeemer.sol/ExpiredLpPtRedeemer.dbg.json +1 -1
  172. package/build/artifacts/contracts/offchain-helpers/ExpiredLpPtRedeemer.sol/ExpiredLpPtRedeemer.json +2 -2
  173. package/build/artifacts/contracts/offchain-helpers/LegacyNFTHelper.sol/LegacyNFTHelper.dbg.json +1 -1
  174. package/build/artifacts/contracts/offchain-helpers/LegacyNFTHelper.sol/StarNFTV1.dbg.json +1 -1
  175. package/build/artifacts/contracts/offchain-helpers/LimitBackendHelperV2.sol/LimitBackendHelperV2.dbg.json +1 -1
  176. package/build/artifacts/contracts/offchain-helpers/LimitBackendHelperV2.sol/LimitBackendHelperV2.json +2 -2
  177. package/build/artifacts/contracts/offchain-helpers/MarketSweed.sol/MarketSweed.dbg.json +1 -1
  178. package/build/artifacts/contracts/offchain-helpers/MarketSweed.sol/MarketSweed.json +2 -2
  179. package/build/artifacts/contracts/offchain-helpers/Multicall2.sol/Multicall2.dbg.json +1 -1
  180. package/build/artifacts/contracts/offchain-helpers/PendleAPIFeeDepositor.sol/PendleAPIFeeDepositor.dbg.json +1 -1
  181. package/build/artifacts/contracts/offchain-helpers/PendleAPIFeeDepositor.sol/PendleAPIFeeDepositor.json +2 -2
  182. package/build/artifacts/contracts/offchain-helpers/PendleExchangeRateOracle.sol/PendleExchangeRateOracle.dbg.json +1 -1
  183. package/build/artifacts/contracts/offchain-helpers/PendleFeeSetter.sol/PendleFeeSetter.dbg.json +1 -1
  184. package/build/artifacts/contracts/offchain-helpers/PendleFeeSetter.sol/PendleFeeSetter.json +2 -2
  185. package/build/artifacts/contracts/offchain-helpers/PendleGovernanceProxy.sol/PendleGovernanceProxy.dbg.json +1 -1
  186. package/build/artifacts/contracts/offchain-helpers/PendleLPWrapper.sol/PendleLPWrapper.dbg.json +1 -1
  187. package/build/artifacts/contracts/offchain-helpers/PendleLPWrapper.sol/PendleLPWrapper.json +2 -2
  188. package/build/artifacts/contracts/offchain-helpers/PendleLPWrapperFactory.sol/PendleLPWrapperFactory.dbg.json +1 -1
  189. package/build/artifacts/contracts/offchain-helpers/PendleLPWrapperFactory.sol/PendleLPWrapperFactory.json +2 -2
  190. package/build/artifacts/contracts/offchain-helpers/PendleMerkleDepositor.sol/PendleMerkleDepositor.dbg.json +1 -1
  191. package/build/artifacts/contracts/offchain-helpers/PendleMulticallOwnerV1.sol/PendleMulticallOwnerV1.dbg.json +1 -1
  192. package/build/artifacts/contracts/offchain-helpers/PendleMulticallV1.sol/PendleMulticallV1.dbg.json +1 -1
  193. package/build/artifacts/contracts/offchain-helpers/PendleMulticallV2.sol/PendleMulticallV2.dbg.json +1 -1
  194. package/build/artifacts/contracts/offchain-helpers/PendleOffchainStorage.sol/PendleOffchainStorage.dbg.json +1 -1
  195. package/build/artifacts/contracts/offchain-helpers/PendleWstETHPriceFeed.sol/PendleWstETHPriceFeed.dbg.json +1 -1
  196. package/build/artifacts/contracts/offchain-helpers/SimulateHelper.sol/SimulateHelper.dbg.json +1 -1
  197. package/build/artifacts/contracts/offchain-helpers/SupplyCapReader.sol/IPossibleSupplyCapInterface.dbg.json +1 -1
  198. package/build/artifacts/contracts/offchain-helpers/SupplyCapReader.sol/SupplyCapReader.dbg.json +1 -1
  199. package/build/artifacts/contracts/offchain-helpers/deploy/PendleCommonPoolDeployHelperV2.sol/PendleCommonPoolDeployHelperV2.dbg.json +1 -1
  200. package/build/artifacts/contracts/offchain-helpers/deploy/PendleCommonPoolDeployHelperV2.sol/PendleCommonPoolDeployHelperV2.json +2 -2
  201. package/build/artifacts/contracts/offchain-helpers/deploy/PendleCommonSYFactory.sol/PendleCommonSYFactory.dbg.json +1 -1
  202. package/build/artifacts/contracts/offchain-helpers/deploy/PendlePoolDeployHelper.sol/PendlePoolDeployHelper.dbg.json +1 -1
  203. package/build/artifacts/contracts/offchain-helpers/deploy/PendlePoolDeployHelper.sol/PendlePoolDeployHelper.json +2 -2
  204. package/build/artifacts/contracts/offchain-helpers/deploy/PendlePoolDeployHelperV2.sol/PendlePoolDeployHelperV2.dbg.json +1 -1
  205. package/build/artifacts/contracts/offchain-helpers/deploy/PendlePoolDeployHelperV2.sol/PendlePoolDeployHelperV2.json +2 -2
  206. package/build/artifacts/contracts/offchain-helpers/deploy/lib/MarketDeployLib.sol/MarketDeployLib.dbg.json +1 -1
  207. package/build/artifacts/contracts/offchain-helpers/errors/SDKErrorsDirectory.sol/SDKErrorsDirectory.dbg.json +1 -1
  208. package/build/artifacts/contracts/offchain-helpers/router-static/PendleRouterStatic.sol/PendleRouterStatic.dbg.json +1 -1
  209. package/build/artifacts/contracts/offchain-helpers/router-static/PendleRouterStatic.sol/PendleRouterStatic.json +2 -2
  210. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionInfoStatic.sol/ActionInfoStatic.dbg.json +1 -1
  211. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionInfoStatic.sol/ActionInfoStatic.json +2 -2
  212. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionMarketAuxStatic.sol/ActionMarketAuxStatic.dbg.json +1 -1
  213. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionMarketAuxStatic.sol/ActionMarketAuxStatic.json +2 -2
  214. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionMarketCoreStatic.sol/ActionMarketCoreStatic.dbg.json +1 -1
  215. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionMarketCoreStatic.sol/ActionMarketCoreStatic.json +2 -2
  216. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionMintRedeemStatic.sol/ActionMintRedeemStatic.dbg.json +1 -1
  217. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionMintRedeemStatic.sol/ActionMintRedeemStatic.json +2 -2
  218. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionStorageStatic.sol/ActionStorageStatic.dbg.json +1 -1
  219. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionStorageStatic.sol/ActionStorageStatic.json +2 -2
  220. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionVePendleStatic.sol/ActionVePendleStatic.dbg.json +1 -1
  221. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionVePendleStatic.sol/ActionVePendleStatic.json +2 -2
  222. package/build/artifacts/contracts/offchain-helpers/router-static/base/MarketApproxLibV1.sol/MarketApproxPtInLibV1.dbg.json +1 -1
  223. package/build/artifacts/contracts/offchain-helpers/router-static/base/MarketApproxLibV1.sol/MarketApproxPtInLibV1.json +2 -2
  224. package/build/artifacts/contracts/offchain-helpers/router-static/base/MarketApproxLibV1.sol/MarketApproxPtOutLibV1.dbg.json +1 -1
  225. package/build/artifacts/contracts/offchain-helpers/router-static/base/MarketApproxLibV1.sol/MarketApproxPtOutLibV1.json +2 -2
  226. package/build/artifacts/contracts/offchain-helpers/router-static/base/StorageLayout.sol/StorageLayout.dbg.json +1 -1
  227. package/build/artifacts/contracts/oracles/CrossChainOracle/base/PendleCrossChainOracleBaseApp_Init.sol/PendleCrossChainOracleBaseApp_Init.dbg.json +1 -1
  228. package/build/artifacts/contracts/oracles/CrossChainOracle/exchangeRate/PendleExchangeRateOracleApp.sol/PendleExchangeRateOracleApp.dbg.json +1 -1
  229. package/build/artifacts/contracts/oracles/CrossChainOracle/exchangeRate/PendleExchangeRateOracleV2.sol/PendleExchangeRateOracleV2.dbg.json +1 -1
  230. package/build/artifacts/contracts/oracles/CrossChainOracle/libraries/ExchangeRateMsgCodec.sol/ExchangeRateMsgCodec.dbg.json +1 -1
  231. package/build/artifacts/contracts/oracles/PtYtLpOracle/PendleLpOracleLib.sol/PendleLpOracleLib.dbg.json +1 -1
  232. package/build/artifacts/contracts/oracles/PtYtLpOracle/PendlePYLpOracle.sol/PendlePYLpOracle.dbg.json +1 -1
  233. package/build/artifacts/contracts/oracles/PtYtLpOracle/PendlePYOracleLib.sol/PendlePYOracleLib.dbg.json +1 -1
  234. package/build/artifacts/contracts/oracles/PtYtLpOracle/chainlink/PendleChainlinkOracle.sol/PendleChainlinkOracle.dbg.json +1 -1
  235. package/build/artifacts/contracts/oracles/PtYtLpOracle/chainlink/PendleChainlinkOracleFactory.sol/PendleChainlinkOracleFactory.dbg.json +1 -1
  236. package/build/artifacts/contracts/oracles/PtYtLpOracle/chainlink/PendleChainlinkOracleWithQuote.sol/PendleChainlinkOracleWithQuote.dbg.json +1 -1
  237. package/build/artifacts/contracts/oracles/PtYtLpOracle/samples/BoringLpSeller.sol/BoringLpSeller.dbg.json +1 -1
  238. package/build/artifacts/contracts/oracles/PtYtLpOracle/samples/BoringPYUsdChainlinkAssetOracle.sol/BoringPYUsdChainlinkAssetOracle.dbg.json +1 -1
  239. package/build/artifacts/contracts/oracles/PtYtLpOracle/samples/BoringPYUsdChainlinkSYOracle.sol/BoringPYUsdChainlinkSYOracle.dbg.json +1 -1
  240. package/build/artifacts/contracts/oracles/PtYtLpOracle/samples/BoringPtSeller.sol/BoringPtSeller.dbg.json +1 -1
  241. package/build/artifacts/contracts/oracles/StatelessWrapper/PendleLinearDiscountOracleWrapper.sol/PendleLinearDiscountOracleWrapper.dbg.json +1 -1
  242. package/build/artifacts/contracts/oracles/StatelessWrapper/PendleSparkLinearDiscountOracleFactoryWrapper.sol/PendleSparkLinearDiscountOracleFactoryWrapper.dbg.json +1 -1
  243. package/build/artifacts/contracts/oracles/internal/PendleBoringOneracle.sol/PendleBoringOneracle.dbg.json +1 -1
  244. package/build/artifacts/contracts/oracles/internal/PendleBoringSolvBTCOneracle.sol/PendleBoringSolvBTCOneracle.dbg.json +1 -1
  245. package/build/artifacts/contracts/oracles/internal/PendleLpLinearDiscountOracle.sol/LPExpiry.dbg.json +1 -1
  246. package/build/artifacts/contracts/oracles/internal/PendleLpLinearDiscountOracle.sol/PendleLpLinearDiscountOracle.dbg.json +1 -1
  247. package/build/artifacts/contracts/oracles/internal/PendleLpLinearDiscountOracleFactory.sol/PendleLpLinearDiscountOracleFactory.dbg.json +1 -1
  248. package/build/artifacts/contracts/oracles/internal/PendleRedStoneRateOracleAdapter.sol/PendleRedStoneRateOracleAdapter.dbg.json +1 -1
  249. package/build/artifacts/contracts/oracles/internal/PendleSparkLinearDiscountOracle.sol/PTExpiry.dbg.json +1 -1
  250. package/build/artifacts/contracts/oracles/internal/PendleSparkLinearDiscountOracle.sol/PendleSparkLinearDiscountOracle.dbg.json +1 -1
  251. package/build/artifacts/contracts/oracles/internal/PendleSparkLinearDiscountOracleFactory.sol/PendleSparkLinearDiscountOracleFactory.dbg.json +1 -1
  252. package/build/artifacts/contracts/router/ActionAddRemoveLiqV3.sol/ActionAddRemoveLiqV3.dbg.json +1 -1
  253. package/build/artifacts/contracts/router/ActionAddRemoveLiqV3.sol/ActionAddRemoveLiqV3.json +2 -2
  254. package/build/artifacts/contracts/router/ActionCallbackV3.sol/ActionCallbackV3.dbg.json +1 -1
  255. package/build/artifacts/contracts/router/ActionCallbackV3.sol/ActionCallbackV3.json +2 -2
  256. package/build/artifacts/contracts/router/ActionCrossChain.sol/ActionCrossChain.dbg.json +1 -1
  257. package/build/artifacts/contracts/router/ActionCrossChain.sol/ActionCrossChain.json +2 -2
  258. package/build/artifacts/contracts/router/ActionMiscV3.sol/ActionMiscV3.dbg.json +1 -1
  259. package/build/artifacts/contracts/router/ActionMiscV3.sol/ActionMiscV3.json +2 -2
  260. package/build/artifacts/contracts/router/ActionSimple.sol/ActionSimple.dbg.json +1 -1
  261. package/build/artifacts/contracts/router/ActionSimple.sol/ActionSimple.json +2 -2
  262. package/build/artifacts/contracts/router/ActionStorageV4.sol/ActionStorageV4.dbg.json +1 -1
  263. package/build/artifacts/contracts/router/ActionStorageV4.sol/ActionStorageV4.json +2 -2
  264. package/build/artifacts/contracts/router/ActionSwapPTV3.sol/ActionSwapPTV3.dbg.json +1 -1
  265. package/build/artifacts/contracts/router/ActionSwapPTV3.sol/ActionSwapPTV3.json +2 -2
  266. package/build/artifacts/contracts/router/ActionSwapYTV3.sol/ActionSwapYTV3.dbg.json +1 -1
  267. package/build/artifacts/contracts/router/ActionSwapYTV3.sol/ActionSwapYTV3.json +2 -2
  268. package/build/artifacts/contracts/router/PendleRouterV4.sol/PendleRouterV4.dbg.json +1 -1
  269. package/build/artifacts/contracts/router/PendleRouterV4.sol/PendleRouterV4.json +2 -2
  270. package/build/artifacts/contracts/router/Reflector.sol/Reflector.dbg.json +1 -1
  271. package/build/artifacts/contracts/router/Reflector.sol/Reflector.json +2 -2
  272. package/build/artifacts/contracts/router/RouterStorage.sol/RouterStorage.dbg.json +1 -1
  273. package/build/artifacts/contracts/router/base/ActionBase.sol/ActionBase.dbg.json +1 -1
  274. package/build/artifacts/contracts/router/base/ActionDelegateBase.sol/ActionDelegateBase.dbg.json +1 -1
  275. package/build/artifacts/contracts/router/base/ActionDelegateBase.sol/ActionDelegateBase.json +2 -2
  276. package/build/artifacts/contracts/router/base/CallbackHelper.sol/CallbackHelper.dbg.json +1 -1
  277. package/build/artifacts/contracts/router/math/ApproxStateLib.sol/ApproxStateLib.dbg.json +1 -1
  278. package/build/artifacts/contracts/router/math/ApproxStateLib.sol/ApproxStateLib.json +2 -2
  279. package/build/artifacts/contracts/router/math/MarketApproxEstimateLib.sol/MarketApproxEstimateLib.dbg.json +1 -1
  280. package/build/artifacts/contracts/router/math/MarketApproxLibOnchain.sol/MarketApproxPtInLibOnchain.dbg.json +1 -1
  281. package/build/artifacts/contracts/router/math/MarketApproxLibOnchain.sol/MarketApproxPtInLibOnchain.json +2 -2
  282. package/build/artifacts/contracts/router/math/MarketApproxLibOnchain.sol/MarketApproxPtOutLibOnchain.dbg.json +1 -1
  283. package/build/artifacts/contracts/router/math/MarketApproxLibOnchain.sol/MarketApproxPtOutLibOnchain.json +2 -2
  284. package/build/artifacts/contracts/router/math/MarketApproxLibV2.sol/MarketApproxPtInLibV2.dbg.json +1 -1
  285. package/build/artifacts/contracts/router/math/MarketApproxLibV2.sol/MarketApproxPtInLibV2.json +2 -2
  286. package/build/artifacts/contracts/router/math/MarketApproxLibV2.sol/MarketApproxPtOutLibV2.dbg.json +1 -1
  287. package/build/artifacts/contracts/router/math/MarketApproxLibV2.sol/MarketApproxPtOutLibV2.json +2 -2
  288. package/build/artifacts/contracts/router/swap-aggregator/IPSwapAggregator.sol/IPSwapAggregator.dbg.json +1 -1
  289. package/build/artifacts/contracts/router/swap-aggregator/OKXScaleHelper.sol/IOKXDexRouter.dbg.json +1 -1
  290. package/build/artifacts/contracts/router/swap-aggregator/OKXScaleHelper.sol/OKXScaleHelper.dbg.json +1 -1
  291. package/build/artifacts/contracts/router/swap-aggregator/ParaswapScaleHelper.sol/IAugustusV6.dbg.json +1 -1
  292. package/build/artifacts/contracts/router/swap-aggregator/ParaswapScaleHelper.sol/ParaswapScaleHelper.dbg.json +1 -1
  293. package/build/artifacts/contracts/router/swap-aggregator/PendleSwap.sol/IKyberScalingHelper.dbg.json +1 -1
  294. package/build/artifacts/contracts/router/swap-aggregator/PendleSwap.sol/IOdosRouterV2.dbg.json +1 -1
  295. package/build/artifacts/contracts/router/swap-aggregator/PendleSwap.sol/PendleSwap.dbg.json +1 -1
  296. package/build/artifacts/contracts/router/swap-aggregator/PendleSwap.sol/PendleSwap.json +2 -2
  297. package/contracts/LiquidityMining/GaugeController/PendleGaugeControllerUpg.sol +12 -2
  298. package/contracts/core/libraries/TokenHelper.sol +6 -2
  299. package/contracts/cross-chain/deposit-box/DepositBox.sol +66 -0
  300. package/contracts/cross-chain/deposit-box/DepositBoxFactory.sol +44 -0
  301. package/contracts/cross-chain/swap-hub/PendleCrossChainSwapHub.sol +101 -0
  302. package/contracts/cross-chain/swap-hub/SwapHubBase.sol +184 -0
  303. package/contracts/interfaces/IPCrossChainSwapHub.sol +108 -0
  304. package/contracts/interfaces/IPDepositBox.sol +22 -0
  305. package/contracts/interfaces/IPDepositBoxFactory.sol +19 -0
  306. package/contracts/interfaces/IPGaugeController.sol +7 -3
  307. package/contracts/interfaces/IPLimitRouter.sol +7 -0
  308. package/contracts/limit/LimitRouterBase.sol +2 -11
  309. package/contracts/limit/PendleLimitRouter.sol +23 -1
  310. package/deployments/1-core.json +10 -6
  311. package/deployments/10-core.json +8 -4
  312. package/deployments/130-core.json +8 -2
  313. package/deployments/143-core.json +18 -0
  314. package/deployments/146-core.json +8 -4
  315. package/deployments/42161-core.json +8 -4
  316. package/deployments/43114-core.json +5 -2
  317. package/deployments/43114-offchain-helper.json +3 -0
  318. package/deployments/5000-core.json +8 -4
  319. package/deployments/56-core.json +8 -4
  320. package/deployments/57073-core.json +18 -0
  321. package/deployments/747474-core.json +18 -0
  322. package/deployments/80094-core.json +8 -4
  323. package/deployments/8453-core.json +8 -4
  324. package/deployments/9745-core.json +7 -3
  325. package/deployments/999-core.json +7 -3
  326. package/package.json +2 -2
  327. package/typechain-types/DepositBox.ts +260 -0
  328. package/typechain-types/DepositBoxFactory.ts +226 -0
  329. package/typechain-types/IPCrossChainSwapHub.ts +656 -0
  330. package/typechain-types/IPDepositBox.ts +213 -0
  331. package/typechain-types/IPDepositBoxFactory.ts +226 -0
  332. package/typechain-types/IPGaugeController.ts +86 -0
  333. package/typechain-types/IPLimitRouter.ts +83 -0
  334. package/typechain-types/LimitRouterBase.ts +79 -46
  335. package/typechain-types/PendleCrossChainSwapHub.ts +911 -0
  336. package/typechain-types/PendleGaugeControllerUpg.ts +86 -0
  337. package/typechain-types/PendleLimitRouter.ts +79 -46
  338. package/typechain-types/SwapHubBase.ts +886 -0
  339. package/typechain-types/factories/ActionAddRemoveLiqV3__factory.ts +1 -1
  340. package/typechain-types/factories/ActionCallbackV3__factory.ts +1 -1
  341. package/typechain-types/factories/ActionCrossChain__factory.ts +1 -1
  342. package/typechain-types/factories/ActionInfoStatic__factory.ts +1 -1
  343. package/typechain-types/factories/ActionMarketAuxStatic__factory.ts +1 -1
  344. package/typechain-types/factories/ActionMarketCoreStatic__factory.ts +1 -1
  345. package/typechain-types/factories/ActionMintRedeemStatic__factory.ts +1 -1
  346. package/typechain-types/factories/ActionMiscV3__factory.ts +1 -1
  347. package/typechain-types/factories/ActionSimple__factory.ts +1 -1
  348. package/typechain-types/factories/ActionStorageStatic__factory.ts +1 -1
  349. package/typechain-types/factories/ActionStorageV4__factory.ts +1 -1
  350. package/typechain-types/factories/ActionSwapPTV3__factory.ts +1 -1
  351. package/typechain-types/factories/ActionSwapYTV3__factory.ts +1 -1
  352. package/typechain-types/factories/ActionVePendleStatic__factory.ts +1 -1
  353. package/typechain-types/factories/DepositBoxFactory__factory.ts +189 -0
  354. package/typechain-types/factories/DepositBox__factory.ts +222 -0
  355. package/typechain-types/factories/ExpiredLpPtRedeemer__factory.ts +1 -1
  356. package/typechain-types/factories/FixedPricePTAMM__factory.ts +1 -1
  357. package/typechain-types/factories/IPCrossChainSwapHub__factory.ts +828 -0
  358. package/typechain-types/factories/IPDepositBoxFactory__factory.ts +123 -0
  359. package/typechain-types/factories/IPDepositBox__factory.ts +136 -0
  360. package/typechain-types/factories/IPGaugeController__factory.ts +56 -0
  361. package/typechain-types/factories/IPLimitRouter__factory.ts +231 -0
  362. package/typechain-types/factories/LimitBackendHelperV2__factory.ts +1 -1
  363. package/typechain-types/factories/LimitRouterBase__factory.ts +226 -21
  364. package/typechain-types/factories/MarketSweed__factory.ts +1 -1
  365. package/typechain-types/factories/PendleAPIFeeDepositor__factory.ts +1 -1
  366. package/typechain-types/factories/PendleCommonPoolDeployHelperV2__factory.ts +1 -1
  367. package/typechain-types/factories/PendleCrossChainSwapHub__factory.ts +1074 -0
  368. package/typechain-types/factories/PendleFeeDistributorV2__factory.ts +1 -1
  369. package/typechain-types/factories/PendleFeeSetter__factory.ts +1 -1
  370. package/typechain-types/factories/PendleGaugeControllerUpg__factory.ts +57 -1
  371. package/typechain-types/factories/PendleLPWrapperFactory__factory.ts +1 -1
  372. package/typechain-types/factories/PendleLPWrapper__factory.ts +1 -1
  373. package/typechain-types/factories/PendleLimitRouter__factory.ts +227 -22
  374. package/typechain-types/factories/PendleMarketV7__factory.ts +1 -1
  375. package/typechain-types/factories/PendleMerkleDistributor__factory.ts +1 -1
  376. package/typechain-types/factories/PendleMultiTokenMerkleDistributor__factory.ts +1 -1
  377. package/typechain-types/factories/PendlePoolDeployHelperV2__factory.ts +1 -1
  378. package/typechain-types/factories/PendlePoolDeployHelper__factory.ts +1 -1
  379. package/typechain-types/factories/PendleRouterStatic__factory.ts +1 -1
  380. package/typechain-types/factories/PendleRouterV4__factory.ts +1 -1
  381. package/typechain-types/factories/PendleSwap__factory.ts +1 -1
  382. package/typechain-types/factories/PendleYieldContractFactoryUpg__factory.ts +1 -1
  383. package/typechain-types/factories/PendleYieldToken__factory.ts +1 -1
  384. package/typechain-types/factories/Reflector__factory.ts +1 -1
  385. package/typechain-types/factories/StakedPendle__factory.ts +1 -1
  386. package/typechain-types/factories/SwapHubBase__factory.ts +988 -0
  387. package/typechain-types/hardhat.d.ts +72 -9
  388. package/typechain-types/index.ts +14 -2
  389. package/build/artifacts/contracts/StPendle.sol/RoundDataLib.dbg.json +0 -4
  390. package/build/artifacts/contracts/StPendle.sol/RoundDataLib.json +0 -10
  391. package/build/artifacts/contracts/StPendle.sol/StPendle.dbg.json +0 -4
  392. package/build/artifacts/contracts/StPendle.sol/StPendle.json +0 -228
  393. package/contracts/StPendle.sol +0 -121
  394. package/typechain-types/StPendle.ts +0 -362
  395. package/typechain-types/factories/StPendle__factory.ts +0 -260
@@ -0,0 +1,988 @@
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 { SwapHubBase, SwapHubBaseInterface } from "../SwapHubBase";
8
+
9
+ const _abi = [
10
+ {
11
+ inputs: [],
12
+ name: "InsufficientTokenReceived",
13
+ type: "error",
14
+ },
15
+ {
16
+ inputs: [],
17
+ name: "InvalidNonce",
18
+ type: "error",
19
+ },
20
+ {
21
+ inputs: [],
22
+ name: "InvalidSignature",
23
+ type: "error",
24
+ },
25
+ {
26
+ inputs: [],
27
+ name: "MessageExpired",
28
+ type: "error",
29
+ },
30
+ {
31
+ inputs: [],
32
+ name: "Unauthorized",
33
+ type: "error",
34
+ },
35
+ {
36
+ anonymous: false,
37
+ inputs: [
38
+ {
39
+ indexed: false,
40
+ internalType: "address",
41
+ name: "owner",
42
+ type: "address",
43
+ },
44
+ {
45
+ indexed: false,
46
+ internalType: "uint32",
47
+ name: "boxId",
48
+ type: "uint32",
49
+ },
50
+ {
51
+ indexed: false,
52
+ internalType: "uint256",
53
+ name: "requestId",
54
+ type: "uint256",
55
+ },
56
+ {
57
+ indexed: false,
58
+ internalType: "uint256",
59
+ name: "nonce",
60
+ type: "uint256",
61
+ },
62
+ {
63
+ indexed: false,
64
+ internalType: "address",
65
+ name: "bridgeExtRouter",
66
+ type: "address",
67
+ },
68
+ {
69
+ indexed: false,
70
+ internalType: "address",
71
+ name: "token",
72
+ type: "address",
73
+ },
74
+ {
75
+ indexed: false,
76
+ internalType: "uint256",
77
+ name: "amountBridge",
78
+ type: "uint256",
79
+ },
80
+ {
81
+ indexed: false,
82
+ internalType: "uint256",
83
+ name: "amountFee",
84
+ type: "uint256",
85
+ },
86
+ ],
87
+ name: "BridgeToken",
88
+ type: "event",
89
+ },
90
+ {
91
+ anonymous: false,
92
+ inputs: [],
93
+ name: "EIP712DomainChanged",
94
+ type: "event",
95
+ },
96
+ {
97
+ anonymous: false,
98
+ inputs: [
99
+ {
100
+ indexed: false,
101
+ internalType: "uint8",
102
+ name: "version",
103
+ type: "uint8",
104
+ },
105
+ ],
106
+ name: "Initialized",
107
+ type: "event",
108
+ },
109
+ {
110
+ anonymous: false,
111
+ inputs: [
112
+ {
113
+ indexed: true,
114
+ internalType: "address",
115
+ name: "previousOwner",
116
+ type: "address",
117
+ },
118
+ {
119
+ indexed: true,
120
+ internalType: "address",
121
+ name: "newOwner",
122
+ type: "address",
123
+ },
124
+ ],
125
+ name: "OwnershipTransferred",
126
+ type: "event",
127
+ },
128
+ {
129
+ anonymous: false,
130
+ inputs: [
131
+ {
132
+ indexed: false,
133
+ internalType: "address",
134
+ name: "executor",
135
+ type: "address",
136
+ },
137
+ ],
138
+ name: "SetExecutor",
139
+ type: "event",
140
+ },
141
+ {
142
+ anonymous: false,
143
+ inputs: [
144
+ {
145
+ indexed: false,
146
+ internalType: "address",
147
+ name: "proposer",
148
+ type: "address",
149
+ },
150
+ ],
151
+ name: "SetProposer",
152
+ type: "event",
153
+ },
154
+ {
155
+ anonymous: false,
156
+ inputs: [
157
+ {
158
+ indexed: false,
159
+ internalType: "address",
160
+ name: "owner",
161
+ type: "address",
162
+ },
163
+ {
164
+ indexed: false,
165
+ internalType: "uint32",
166
+ name: "boxId",
167
+ type: "uint32",
168
+ },
169
+ {
170
+ indexed: false,
171
+ internalType: "uint256",
172
+ name: "requestId",
173
+ type: "uint256",
174
+ },
175
+ {
176
+ indexed: false,
177
+ internalType: "uint256",
178
+ name: "nonce",
179
+ type: "uint256",
180
+ },
181
+ {
182
+ indexed: false,
183
+ internalType: "address",
184
+ name: "tokenSpent",
185
+ type: "address",
186
+ },
187
+ {
188
+ indexed: false,
189
+ internalType: "uint256",
190
+ name: "amountSpent",
191
+ type: "uint256",
192
+ },
193
+ {
194
+ indexed: false,
195
+ internalType: "address",
196
+ name: "tokenReceived",
197
+ type: "address",
198
+ },
199
+ {
200
+ indexed: false,
201
+ internalType: "uint256",
202
+ name: "netTokenReceived",
203
+ type: "uint256",
204
+ },
205
+ ],
206
+ name: "SwapToken",
207
+ type: "event",
208
+ },
209
+ {
210
+ anonymous: false,
211
+ inputs: [
212
+ {
213
+ indexed: false,
214
+ internalType: "address",
215
+ name: "owner",
216
+ type: "address",
217
+ },
218
+ {
219
+ indexed: false,
220
+ internalType: "uint32",
221
+ name: "boxId",
222
+ type: "uint32",
223
+ },
224
+ {
225
+ indexed: false,
226
+ internalType: "uint256",
227
+ name: "requestId",
228
+ type: "uint256",
229
+ },
230
+ {
231
+ indexed: false,
232
+ internalType: "uint256",
233
+ name: "nonce",
234
+ type: "uint256",
235
+ },
236
+ {
237
+ indexed: false,
238
+ internalType: "address",
239
+ name: "token",
240
+ type: "address",
241
+ },
242
+ {
243
+ indexed: false,
244
+ internalType: "uint256",
245
+ name: "amountWithdraw",
246
+ type: "uint256",
247
+ },
248
+ {
249
+ indexed: false,
250
+ internalType: "uint256",
251
+ name: "amountFee",
252
+ type: "uint256",
253
+ },
254
+ ],
255
+ name: "WithdrawToken",
256
+ type: "event",
257
+ },
258
+ {
259
+ inputs: [],
260
+ name: "DEPOSIT_BOX_FACTORY",
261
+ outputs: [
262
+ {
263
+ internalType: "contract IPDepositBoxFactory",
264
+ name: "",
265
+ type: "address",
266
+ },
267
+ ],
268
+ stateMutability: "view",
269
+ type: "function",
270
+ },
271
+ {
272
+ inputs: [],
273
+ name: "TREASURY",
274
+ outputs: [
275
+ {
276
+ internalType: "address",
277
+ name: "",
278
+ type: "address",
279
+ },
280
+ ],
281
+ stateMutability: "view",
282
+ type: "function",
283
+ },
284
+ {
285
+ inputs: [
286
+ {
287
+ components: [
288
+ {
289
+ components: [
290
+ {
291
+ internalType: "address",
292
+ name: "owner",
293
+ type: "address",
294
+ },
295
+ {
296
+ internalType: "uint32",
297
+ name: "boxId",
298
+ type: "uint32",
299
+ },
300
+ {
301
+ internalType: "uint256",
302
+ name: "expiry",
303
+ type: "uint256",
304
+ },
305
+ {
306
+ internalType: "uint256",
307
+ name: "requestId",
308
+ type: "uint256",
309
+ },
310
+ {
311
+ internalType: "uint256",
312
+ name: "nonce",
313
+ type: "uint256",
314
+ },
315
+ ],
316
+ internalType: "struct IPCrossChainSwapHub.BoxPermit",
317
+ name: "permit",
318
+ type: "tuple",
319
+ },
320
+ {
321
+ internalType: "address",
322
+ name: "token",
323
+ type: "address",
324
+ },
325
+ {
326
+ internalType: "uint256",
327
+ name: "amountBridge",
328
+ type: "uint256",
329
+ },
330
+ {
331
+ internalType: "uint256",
332
+ name: "amountFee",
333
+ type: "uint256",
334
+ },
335
+ {
336
+ internalType: "address",
337
+ name: "bridgeExtRouter",
338
+ type: "address",
339
+ },
340
+ {
341
+ internalType: "address",
342
+ name: "bridgeApprove",
343
+ type: "address",
344
+ },
345
+ {
346
+ internalType: "bytes",
347
+ name: "bridgeCalldata",
348
+ type: "bytes",
349
+ },
350
+ ],
351
+ internalType: "struct IPCrossChainSwapHub.BridgeTokenMessage",
352
+ name: "message",
353
+ type: "tuple",
354
+ },
355
+ {
356
+ internalType: "bytes",
357
+ name: "signature",
358
+ type: "bytes",
359
+ },
360
+ ],
361
+ name: "bridgeToken",
362
+ outputs: [],
363
+ stateMutability: "payable",
364
+ type: "function",
365
+ },
366
+ {
367
+ inputs: [],
368
+ name: "claimOwnership",
369
+ outputs: [],
370
+ stateMutability: "nonpayable",
371
+ type: "function",
372
+ },
373
+ {
374
+ inputs: [],
375
+ name: "eip712Domain",
376
+ outputs: [
377
+ {
378
+ internalType: "bytes1",
379
+ name: "fields",
380
+ type: "bytes1",
381
+ },
382
+ {
383
+ internalType: "string",
384
+ name: "name",
385
+ type: "string",
386
+ },
387
+ {
388
+ internalType: "string",
389
+ name: "version",
390
+ type: "string",
391
+ },
392
+ {
393
+ internalType: "uint256",
394
+ name: "chainId",
395
+ type: "uint256",
396
+ },
397
+ {
398
+ internalType: "address",
399
+ name: "verifyingContract",
400
+ type: "address",
401
+ },
402
+ {
403
+ internalType: "bytes32",
404
+ name: "salt",
405
+ type: "bytes32",
406
+ },
407
+ {
408
+ internalType: "uint256[]",
409
+ name: "extensions",
410
+ type: "uint256[]",
411
+ },
412
+ ],
413
+ stateMutability: "view",
414
+ type: "function",
415
+ },
416
+ {
417
+ inputs: [],
418
+ name: "executor",
419
+ outputs: [
420
+ {
421
+ internalType: "address",
422
+ name: "",
423
+ type: "address",
424
+ },
425
+ ],
426
+ stateMutability: "view",
427
+ type: "function",
428
+ },
429
+ {
430
+ inputs: [
431
+ {
432
+ components: [
433
+ {
434
+ internalType: "address",
435
+ name: "owner",
436
+ type: "address",
437
+ },
438
+ {
439
+ internalType: "uint32",
440
+ name: "boxId",
441
+ type: "uint32",
442
+ },
443
+ {
444
+ internalType: "uint256",
445
+ name: "expiry",
446
+ type: "uint256",
447
+ },
448
+ {
449
+ internalType: "uint256",
450
+ name: "requestId",
451
+ type: "uint256",
452
+ },
453
+ {
454
+ internalType: "uint256",
455
+ name: "nonce",
456
+ type: "uint256",
457
+ },
458
+ ],
459
+ internalType: "struct IPCrossChainSwapHub.BoxPermit",
460
+ name: "permit",
461
+ type: "tuple",
462
+ },
463
+ ],
464
+ name: "hashBoxPermit",
465
+ outputs: [
466
+ {
467
+ internalType: "bytes32",
468
+ name: "",
469
+ type: "bytes32",
470
+ },
471
+ ],
472
+ stateMutability: "pure",
473
+ type: "function",
474
+ },
475
+ {
476
+ inputs: [
477
+ {
478
+ components: [
479
+ {
480
+ components: [
481
+ {
482
+ internalType: "address",
483
+ name: "owner",
484
+ type: "address",
485
+ },
486
+ {
487
+ internalType: "uint32",
488
+ name: "boxId",
489
+ type: "uint32",
490
+ },
491
+ {
492
+ internalType: "uint256",
493
+ name: "expiry",
494
+ type: "uint256",
495
+ },
496
+ {
497
+ internalType: "uint256",
498
+ name: "requestId",
499
+ type: "uint256",
500
+ },
501
+ {
502
+ internalType: "uint256",
503
+ name: "nonce",
504
+ type: "uint256",
505
+ },
506
+ ],
507
+ internalType: "struct IPCrossChainSwapHub.BoxPermit",
508
+ name: "permit",
509
+ type: "tuple",
510
+ },
511
+ {
512
+ internalType: "address",
513
+ name: "tokenSpent",
514
+ type: "address",
515
+ },
516
+ {
517
+ internalType: "uint256",
518
+ name: "amountSpent",
519
+ type: "uint256",
520
+ },
521
+ {
522
+ internalType: "address",
523
+ name: "tokenReceived",
524
+ type: "address",
525
+ },
526
+ {
527
+ internalType: "uint256",
528
+ name: "minReceived",
529
+ type: "uint256",
530
+ },
531
+ {
532
+ internalType: "address",
533
+ name: "swapExtRouter",
534
+ type: "address",
535
+ },
536
+ {
537
+ internalType: "address",
538
+ name: "swapApprove",
539
+ type: "address",
540
+ },
541
+ {
542
+ internalType: "bytes",
543
+ name: "swapCalldata",
544
+ type: "bytes",
545
+ },
546
+ ],
547
+ internalType: "struct IPCrossChainSwapHub.SwapTokenMessage",
548
+ name: "ms",
549
+ type: "tuple",
550
+ },
551
+ ],
552
+ name: "hashTypedData",
553
+ outputs: [
554
+ {
555
+ internalType: "bytes32",
556
+ name: "",
557
+ type: "bytes32",
558
+ },
559
+ ],
560
+ stateMutability: "view",
561
+ type: "function",
562
+ },
563
+ {
564
+ inputs: [
565
+ {
566
+ components: [
567
+ {
568
+ components: [
569
+ {
570
+ internalType: "address",
571
+ name: "owner",
572
+ type: "address",
573
+ },
574
+ {
575
+ internalType: "uint32",
576
+ name: "boxId",
577
+ type: "uint32",
578
+ },
579
+ {
580
+ internalType: "uint256",
581
+ name: "expiry",
582
+ type: "uint256",
583
+ },
584
+ {
585
+ internalType: "uint256",
586
+ name: "requestId",
587
+ type: "uint256",
588
+ },
589
+ {
590
+ internalType: "uint256",
591
+ name: "nonce",
592
+ type: "uint256",
593
+ },
594
+ ],
595
+ internalType: "struct IPCrossChainSwapHub.BoxPermit",
596
+ name: "permit",
597
+ type: "tuple",
598
+ },
599
+ {
600
+ internalType: "address",
601
+ name: "token",
602
+ type: "address",
603
+ },
604
+ {
605
+ internalType: "uint256",
606
+ name: "amountWithdraw",
607
+ type: "uint256",
608
+ },
609
+ {
610
+ internalType: "uint256",
611
+ name: "amountFee",
612
+ type: "uint256",
613
+ },
614
+ ],
615
+ internalType: "struct IPCrossChainSwapHub.WithdrawTokenMessage",
616
+ name: "ms",
617
+ type: "tuple",
618
+ },
619
+ ],
620
+ name: "hashTypedData",
621
+ outputs: [
622
+ {
623
+ internalType: "bytes32",
624
+ name: "",
625
+ type: "bytes32",
626
+ },
627
+ ],
628
+ stateMutability: "view",
629
+ type: "function",
630
+ },
631
+ {
632
+ inputs: [
633
+ {
634
+ components: [
635
+ {
636
+ components: [
637
+ {
638
+ internalType: "address",
639
+ name: "owner",
640
+ type: "address",
641
+ },
642
+ {
643
+ internalType: "uint32",
644
+ name: "boxId",
645
+ type: "uint32",
646
+ },
647
+ {
648
+ internalType: "uint256",
649
+ name: "expiry",
650
+ type: "uint256",
651
+ },
652
+ {
653
+ internalType: "uint256",
654
+ name: "requestId",
655
+ type: "uint256",
656
+ },
657
+ {
658
+ internalType: "uint256",
659
+ name: "nonce",
660
+ type: "uint256",
661
+ },
662
+ ],
663
+ internalType: "struct IPCrossChainSwapHub.BoxPermit",
664
+ name: "permit",
665
+ type: "tuple",
666
+ },
667
+ {
668
+ internalType: "address",
669
+ name: "token",
670
+ type: "address",
671
+ },
672
+ {
673
+ internalType: "uint256",
674
+ name: "amountBridge",
675
+ type: "uint256",
676
+ },
677
+ {
678
+ internalType: "uint256",
679
+ name: "amountFee",
680
+ type: "uint256",
681
+ },
682
+ {
683
+ internalType: "address",
684
+ name: "bridgeExtRouter",
685
+ type: "address",
686
+ },
687
+ {
688
+ internalType: "address",
689
+ name: "bridgeApprove",
690
+ type: "address",
691
+ },
692
+ {
693
+ internalType: "bytes",
694
+ name: "bridgeCalldata",
695
+ type: "bytes",
696
+ },
697
+ ],
698
+ internalType: "struct IPCrossChainSwapHub.BridgeTokenMessage",
699
+ name: "ms",
700
+ type: "tuple",
701
+ },
702
+ ],
703
+ name: "hashTypedData",
704
+ outputs: [
705
+ {
706
+ internalType: "bytes32",
707
+ name: "",
708
+ type: "bytes32",
709
+ },
710
+ ],
711
+ stateMutability: "view",
712
+ type: "function",
713
+ },
714
+ {
715
+ inputs: [],
716
+ name: "owner",
717
+ outputs: [
718
+ {
719
+ internalType: "address",
720
+ name: "",
721
+ type: "address",
722
+ },
723
+ ],
724
+ stateMutability: "view",
725
+ type: "function",
726
+ },
727
+ {
728
+ inputs: [],
729
+ name: "pendingOwner",
730
+ outputs: [
731
+ {
732
+ internalType: "address",
733
+ name: "",
734
+ type: "address",
735
+ },
736
+ ],
737
+ stateMutability: "view",
738
+ type: "function",
739
+ },
740
+ {
741
+ inputs: [],
742
+ name: "proposer",
743
+ outputs: [
744
+ {
745
+ internalType: "address",
746
+ name: "",
747
+ type: "address",
748
+ },
749
+ ],
750
+ stateMutability: "view",
751
+ type: "function",
752
+ },
753
+ {
754
+ inputs: [
755
+ {
756
+ internalType: "uint256",
757
+ name: "requestId",
758
+ type: "uint256",
759
+ },
760
+ ],
761
+ name: "requestNonce",
762
+ outputs: [
763
+ {
764
+ internalType: "uint256",
765
+ name: "nonce",
766
+ type: "uint256",
767
+ },
768
+ ],
769
+ stateMutability: "view",
770
+ type: "function",
771
+ },
772
+ {
773
+ inputs: [
774
+ {
775
+ internalType: "address",
776
+ name: "executor_",
777
+ type: "address",
778
+ },
779
+ ],
780
+ name: "setExecutor",
781
+ outputs: [],
782
+ stateMutability: "nonpayable",
783
+ type: "function",
784
+ },
785
+ {
786
+ inputs: [
787
+ {
788
+ internalType: "address",
789
+ name: "proposer_",
790
+ type: "address",
791
+ },
792
+ ],
793
+ name: "setProposer",
794
+ outputs: [],
795
+ stateMutability: "nonpayable",
796
+ type: "function",
797
+ },
798
+ {
799
+ inputs: [
800
+ {
801
+ components: [
802
+ {
803
+ components: [
804
+ {
805
+ internalType: "address",
806
+ name: "owner",
807
+ type: "address",
808
+ },
809
+ {
810
+ internalType: "uint32",
811
+ name: "boxId",
812
+ type: "uint32",
813
+ },
814
+ {
815
+ internalType: "uint256",
816
+ name: "expiry",
817
+ type: "uint256",
818
+ },
819
+ {
820
+ internalType: "uint256",
821
+ name: "requestId",
822
+ type: "uint256",
823
+ },
824
+ {
825
+ internalType: "uint256",
826
+ name: "nonce",
827
+ type: "uint256",
828
+ },
829
+ ],
830
+ internalType: "struct IPCrossChainSwapHub.BoxPermit",
831
+ name: "permit",
832
+ type: "tuple",
833
+ },
834
+ {
835
+ internalType: "address",
836
+ name: "tokenSpent",
837
+ type: "address",
838
+ },
839
+ {
840
+ internalType: "uint256",
841
+ name: "amountSpent",
842
+ type: "uint256",
843
+ },
844
+ {
845
+ internalType: "address",
846
+ name: "tokenReceived",
847
+ type: "address",
848
+ },
849
+ {
850
+ internalType: "uint256",
851
+ name: "minReceived",
852
+ type: "uint256",
853
+ },
854
+ {
855
+ internalType: "address",
856
+ name: "swapExtRouter",
857
+ type: "address",
858
+ },
859
+ {
860
+ internalType: "address",
861
+ name: "swapApprove",
862
+ type: "address",
863
+ },
864
+ {
865
+ internalType: "bytes",
866
+ name: "swapCalldata",
867
+ type: "bytes",
868
+ },
869
+ ],
870
+ internalType: "struct IPCrossChainSwapHub.SwapTokenMessage",
871
+ name: "message",
872
+ type: "tuple",
873
+ },
874
+ {
875
+ internalType: "bytes",
876
+ name: "signature",
877
+ type: "bytes",
878
+ },
879
+ ],
880
+ name: "swapToken",
881
+ outputs: [],
882
+ stateMutability: "nonpayable",
883
+ type: "function",
884
+ },
885
+ {
886
+ inputs: [
887
+ {
888
+ internalType: "address",
889
+ name: "newOwner",
890
+ type: "address",
891
+ },
892
+ {
893
+ internalType: "bool",
894
+ name: "direct",
895
+ type: "bool",
896
+ },
897
+ {
898
+ internalType: "bool",
899
+ name: "renounce",
900
+ type: "bool",
901
+ },
902
+ ],
903
+ name: "transferOwnership",
904
+ outputs: [],
905
+ stateMutability: "nonpayable",
906
+ type: "function",
907
+ },
908
+ {
909
+ inputs: [
910
+ {
911
+ components: [
912
+ {
913
+ components: [
914
+ {
915
+ internalType: "address",
916
+ name: "owner",
917
+ type: "address",
918
+ },
919
+ {
920
+ internalType: "uint32",
921
+ name: "boxId",
922
+ type: "uint32",
923
+ },
924
+ {
925
+ internalType: "uint256",
926
+ name: "expiry",
927
+ type: "uint256",
928
+ },
929
+ {
930
+ internalType: "uint256",
931
+ name: "requestId",
932
+ type: "uint256",
933
+ },
934
+ {
935
+ internalType: "uint256",
936
+ name: "nonce",
937
+ type: "uint256",
938
+ },
939
+ ],
940
+ internalType: "struct IPCrossChainSwapHub.BoxPermit",
941
+ name: "permit",
942
+ type: "tuple",
943
+ },
944
+ {
945
+ internalType: "address",
946
+ name: "token",
947
+ type: "address",
948
+ },
949
+ {
950
+ internalType: "uint256",
951
+ name: "amountWithdraw",
952
+ type: "uint256",
953
+ },
954
+ {
955
+ internalType: "uint256",
956
+ name: "amountFee",
957
+ type: "uint256",
958
+ },
959
+ ],
960
+ internalType: "struct IPCrossChainSwapHub.WithdrawTokenMessage",
961
+ name: "message",
962
+ type: "tuple",
963
+ },
964
+ {
965
+ internalType: "bytes",
966
+ name: "signature",
967
+ type: "bytes",
968
+ },
969
+ ],
970
+ name: "withdrawToken",
971
+ outputs: [],
972
+ stateMutability: "nonpayable",
973
+ type: "function",
974
+ },
975
+ ];
976
+
977
+ export class SwapHubBase__factory {
978
+ static readonly abi = _abi;
979
+ static createInterface(): SwapHubBaseInterface {
980
+ return new utils.Interface(_abi) as SwapHubBaseInterface;
981
+ }
982
+ static connect(
983
+ address: string,
984
+ signerOrProvider: Signer | Provider
985
+ ): SwapHubBase {
986
+ return new Contract(address, _abi, signerOrProvider) as SwapHubBase;
987
+ }
988
+ }