@pendle/core-v2 6.4.2-swaphubtest → 6.4.2

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