@pendle/core-v2 6.5.0 → 6.6.1

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