@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,1041 +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 {
8
- IPCrossChainSwapHub,
9
- IPCrossChainSwapHubInterface,
10
- } from "../IPCrossChainSwapHub";
11
-
12
- const _abi = [
13
- {
14
- inputs: [],
15
- name: "InsufficientTokenReceived",
16
- type: "error",
17
- },
18
- {
19
- inputs: [],
20
- name: "InvalidNonce",
21
- type: "error",
22
- },
23
- {
24
- inputs: [],
25
- name: "InvalidReceiver",
26
- type: "error",
27
- },
28
- {
29
- inputs: [],
30
- name: "InvalidSignature",
31
- type: "error",
32
- },
33
- {
34
- inputs: [],
35
- name: "MessageExpired",
36
- type: "error",
37
- },
38
- {
39
- anonymous: false,
40
- inputs: [
41
- {
42
- indexed: true,
43
- internalType: "address",
44
- name: "owner",
45
- type: "address",
46
- },
47
- {
48
- indexed: false,
49
- internalType: "uint32",
50
- name: "boxId",
51
- type: "uint32",
52
- },
53
- {
54
- indexed: false,
55
- internalType: "address",
56
- name: "bridgeExtRouter",
57
- type: "address",
58
- },
59
- {
60
- indexed: false,
61
- internalType: "address",
62
- name: "token",
63
- type: "address",
64
- },
65
- {
66
- indexed: false,
67
- internalType: "uint256",
68
- name: "amountBridge",
69
- type: "uint256",
70
- },
71
- {
72
- indexed: false,
73
- internalType: "uint256",
74
- name: "amountFee",
75
- type: "uint256",
76
- },
77
- {
78
- indexed: false,
79
- internalType: "bool",
80
- name: "pullFromOwner",
81
- type: "bool",
82
- },
83
- ],
84
- name: "BridgeToken",
85
- type: "event",
86
- },
87
- {
88
- anonymous: false,
89
- inputs: [
90
- {
91
- indexed: true,
92
- internalType: "address",
93
- name: "owner",
94
- type: "address",
95
- },
96
- {
97
- indexed: false,
98
- internalType: "uint32",
99
- name: "boxId",
100
- type: "uint32",
101
- },
102
- {
103
- indexed: false,
104
- internalType: "address",
105
- name: "tokenSpent",
106
- type: "address",
107
- },
108
- {
109
- indexed: false,
110
- internalType: "uint256",
111
- name: "amountSpent",
112
- type: "uint256",
113
- },
114
- {
115
- indexed: false,
116
- internalType: "uint256",
117
- name: "amountFee",
118
- type: "uint256",
119
- },
120
- {
121
- indexed: false,
122
- internalType: "address",
123
- name: "ptAdapter",
124
- type: "address",
125
- },
126
- {
127
- indexed: false,
128
- internalType: "address",
129
- name: "pt",
130
- type: "address",
131
- },
132
- {
133
- indexed: false,
134
- internalType: "uint256",
135
- name: "netPtReceived",
136
- type: "uint256",
137
- },
138
- {
139
- indexed: false,
140
- internalType: "bool",
141
- name: "pullFromOwner",
142
- type: "bool",
143
- },
144
- ],
145
- name: "BuyCrossChainPt",
146
- type: "event",
147
- },
148
- {
149
- anonymous: false,
150
- inputs: [
151
- {
152
- indexed: true,
153
- internalType: "address",
154
- name: "executor",
155
- type: "address",
156
- },
157
- {
158
- indexed: false,
159
- internalType: "bool",
160
- name: "isExecutor",
161
- type: "bool",
162
- },
163
- ],
164
- name: "SetExecutor",
165
- type: "event",
166
- },
167
- {
168
- anonymous: false,
169
- inputs: [
170
- {
171
- indexed: true,
172
- internalType: "address",
173
- name: "owner",
174
- type: "address",
175
- },
176
- {
177
- indexed: false,
178
- internalType: "uint32",
179
- name: "boxId",
180
- type: "uint32",
181
- },
182
- {
183
- indexed: false,
184
- internalType: "address",
185
- name: "tokenSpent",
186
- type: "address",
187
- },
188
- {
189
- indexed: false,
190
- internalType: "uint256",
191
- name: "amountSpent",
192
- type: "uint256",
193
- },
194
- {
195
- indexed: false,
196
- internalType: "uint256",
197
- name: "amountFee",
198
- type: "uint256",
199
- },
200
- {
201
- indexed: false,
202
- internalType: "address",
203
- name: "tokenReceived",
204
- type: "address",
205
- },
206
- {
207
- indexed: false,
208
- internalType: "uint256",
209
- name: "netTokenReceived",
210
- type: "uint256",
211
- },
212
- {
213
- indexed: false,
214
- internalType: "bool",
215
- name: "pullFromOwner",
216
- type: "bool",
217
- },
218
- {
219
- indexed: false,
220
- internalType: "bool",
221
- name: "sendToOwner",
222
- type: "bool",
223
- },
224
- ],
225
- name: "SwapToken",
226
- type: "event",
227
- },
228
- {
229
- anonymous: false,
230
- inputs: [
231
- {
232
- indexed: true,
233
- internalType: "address",
234
- name: "owner",
235
- type: "address",
236
- },
237
- {
238
- indexed: false,
239
- internalType: "uint32",
240
- name: "boxId",
241
- type: "uint32",
242
- },
243
- {
244
- indexed: false,
245
- internalType: "address",
246
- name: "token",
247
- type: "address",
248
- },
249
- {
250
- indexed: false,
251
- internalType: "uint256",
252
- name: "amountWithdraw",
253
- type: "uint256",
254
- },
255
- {
256
- indexed: false,
257
- internalType: "uint256",
258
- name: "amountFee",
259
- type: "uint256",
260
- },
261
- ],
262
- name: "WithdrawToken",
263
- type: "event",
264
- },
265
- {
266
- inputs: [],
267
- name: "BEACON_PROXY_CODE_CONTRACT",
268
- outputs: [
269
- {
270
- internalType: "address",
271
- name: "",
272
- type: "address",
273
- },
274
- ],
275
- stateMutability: "view",
276
- type: "function",
277
- },
278
- {
279
- inputs: [],
280
- name: "DEPOSIT_BOX_BEACON",
281
- outputs: [
282
- {
283
- internalType: "address",
284
- name: "",
285
- type: "address",
286
- },
287
- ],
288
- stateMutability: "view",
289
- type: "function",
290
- },
291
- {
292
- inputs: [],
293
- name: "DEPOSIT_BOX_CODE_HASH",
294
- outputs: [
295
- {
296
- internalType: "bytes32",
297
- name: "",
298
- type: "bytes32",
299
- },
300
- ],
301
- stateMutability: "view",
302
- type: "function",
303
- },
304
- {
305
- inputs: [
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: "nonce",
326
- type: "uint256",
327
- },
328
- {
329
- internalType: "address",
330
- name: "token",
331
- type: "address",
332
- },
333
- {
334
- internalType: "uint256",
335
- name: "amountBridge",
336
- type: "uint256",
337
- },
338
- {
339
- internalType: "uint256",
340
- name: "amountFee",
341
- type: "uint256",
342
- },
343
- {
344
- internalType: "bool",
345
- name: "pullFromOwner",
346
- type: "bool",
347
- },
348
- {
349
- internalType: "address",
350
- name: "bridgeExtRouter",
351
- type: "address",
352
- },
353
- {
354
- internalType: "address",
355
- name: "bridgeApprove",
356
- type: "address",
357
- },
358
- {
359
- internalType: "bytes",
360
- name: "bridgeCalldata",
361
- type: "bytes",
362
- },
363
- ],
364
- internalType: "struct IPCrossChainSwapHub.BridgeTokenMessage",
365
- name: "message",
366
- type: "tuple",
367
- },
368
- {
369
- internalType: "bytes",
370
- name: "signature",
371
- type: "bytes",
372
- },
373
- ],
374
- name: "bridgeToken",
375
- outputs: [],
376
- stateMutability: "payable",
377
- type: "function",
378
- },
379
- {
380
- inputs: [
381
- {
382
- components: [
383
- {
384
- internalType: "address",
385
- name: "owner",
386
- type: "address",
387
- },
388
- {
389
- internalType: "uint32",
390
- name: "boxId",
391
- type: "uint32",
392
- },
393
- {
394
- internalType: "uint256",
395
- name: "expiry",
396
- type: "uint256",
397
- },
398
- {
399
- internalType: "uint256",
400
- name: "nonce",
401
- type: "uint256",
402
- },
403
- {
404
- internalType: "address",
405
- name: "tokenSpent",
406
- type: "address",
407
- },
408
- {
409
- internalType: "uint256",
410
- name: "amountSpent",
411
- type: "uint256",
412
- },
413
- {
414
- internalType: "uint256",
415
- name: "amountFee",
416
- type: "uint256",
417
- },
418
- {
419
- internalType: "address",
420
- name: "ptAdapter",
421
- type: "address",
422
- },
423
- {
424
- internalType: "uint256",
425
- name: "minPtReceived",
426
- type: "uint256",
427
- },
428
- {
429
- internalType: "uint32",
430
- name: "dstEid",
431
- type: "uint32",
432
- },
433
- {
434
- internalType: "bytes32",
435
- name: "receiver",
436
- type: "bytes32",
437
- },
438
- {
439
- internalType: "bool",
440
- name: "pullFromOwner",
441
- type: "bool",
442
- },
443
- {
444
- internalType: "address",
445
- name: "swapExtRouter",
446
- type: "address",
447
- },
448
- {
449
- internalType: "address",
450
- name: "swapApprove",
451
- type: "address",
452
- },
453
- {
454
- internalType: "bytes",
455
- name: "swapCalldata",
456
- type: "bytes",
457
- },
458
- ],
459
- internalType: "struct IPCrossChainSwapHub.BuyCrossChainPtMessage",
460
- name: "message",
461
- type: "tuple",
462
- },
463
- {
464
- internalType: "bytes",
465
- name: "signature",
466
- type: "bytes",
467
- },
468
- ],
469
- name: "buyCrossChainPt",
470
- outputs: [],
471
- stateMutability: "payable",
472
- type: "function",
473
- },
474
- {
475
- inputs: [
476
- {
477
- internalType: "address",
478
- name: "owner",
479
- type: "address",
480
- },
481
- {
482
- internalType: "uint32",
483
- name: "boxId",
484
- type: "uint32",
485
- },
486
- ],
487
- name: "computeDepositBox",
488
- outputs: [
489
- {
490
- internalType: "address",
491
- name: "box",
492
- type: "address",
493
- },
494
- {
495
- internalType: "bytes32",
496
- name: "salt",
497
- type: "bytes32",
498
- },
499
- {
500
- internalType: "bool",
501
- name: "deployed",
502
- type: "bool",
503
- },
504
- ],
505
- stateMutability: "view",
506
- type: "function",
507
- },
508
- {
509
- inputs: [
510
- {
511
- components: [
512
- {
513
- internalType: "address",
514
- name: "owner",
515
- type: "address",
516
- },
517
- {
518
- internalType: "uint32",
519
- name: "boxId",
520
- type: "uint32",
521
- },
522
- {
523
- internalType: "uint256",
524
- name: "expiry",
525
- type: "uint256",
526
- },
527
- {
528
- internalType: "uint256",
529
- name: "nonce",
530
- type: "uint256",
531
- },
532
- {
533
- internalType: "address",
534
- name: "tokenSpent",
535
- type: "address",
536
- },
537
- {
538
- internalType: "uint256",
539
- name: "amountSpent",
540
- type: "uint256",
541
- },
542
- {
543
- internalType: "uint256",
544
- name: "amountFee",
545
- type: "uint256",
546
- },
547
- {
548
- internalType: "address",
549
- name: "tokenReceived",
550
- type: "address",
551
- },
552
- {
553
- internalType: "uint256",
554
- name: "minReceived",
555
- type: "uint256",
556
- },
557
- {
558
- internalType: "bool",
559
- name: "pullFromOwner",
560
- type: "bool",
561
- },
562
- {
563
- internalType: "bool",
564
- name: "sendToOwner",
565
- type: "bool",
566
- },
567
- {
568
- internalType: "address",
569
- name: "swapExtRouter",
570
- type: "address",
571
- },
572
- {
573
- internalType: "address",
574
- name: "swapApprove",
575
- type: "address",
576
- },
577
- {
578
- internalType: "bytes",
579
- name: "swapCalldata",
580
- type: "bytes",
581
- },
582
- ],
583
- internalType: "struct IPCrossChainSwapHub.SwapTokenMessage",
584
- name: "message",
585
- type: "tuple",
586
- },
587
- ],
588
- name: "hashTypedData",
589
- outputs: [
590
- {
591
- internalType: "bytes32",
592
- name: "",
593
- type: "bytes32",
594
- },
595
- ],
596
- stateMutability: "view",
597
- type: "function",
598
- },
599
- {
600
- inputs: [
601
- {
602
- components: [
603
- {
604
- internalType: "address",
605
- name: "owner",
606
- type: "address",
607
- },
608
- {
609
- internalType: "uint32",
610
- name: "boxId",
611
- type: "uint32",
612
- },
613
- {
614
- internalType: "uint256",
615
- name: "expiry",
616
- type: "uint256",
617
- },
618
- {
619
- internalType: "uint256",
620
- name: "nonce",
621
- type: "uint256",
622
- },
623
- {
624
- internalType: "address",
625
- name: "token",
626
- type: "address",
627
- },
628
- {
629
- internalType: "uint256",
630
- name: "amountWithdraw",
631
- type: "uint256",
632
- },
633
- {
634
- internalType: "uint256",
635
- name: "amountFee",
636
- type: "uint256",
637
- },
638
- ],
639
- internalType: "struct IPCrossChainSwapHub.WithdrawTokenMessage",
640
- name: "message",
641
- type: "tuple",
642
- },
643
- ],
644
- name: "hashTypedData",
645
- outputs: [
646
- {
647
- internalType: "bytes32",
648
- name: "",
649
- type: "bytes32",
650
- },
651
- ],
652
- stateMutability: "view",
653
- type: "function",
654
- },
655
- {
656
- inputs: [
657
- {
658
- components: [
659
- {
660
- internalType: "address",
661
- name: "owner",
662
- type: "address",
663
- },
664
- {
665
- internalType: "uint32",
666
- name: "boxId",
667
- type: "uint32",
668
- },
669
- {
670
- internalType: "uint256",
671
- name: "expiry",
672
- type: "uint256",
673
- },
674
- {
675
- internalType: "uint256",
676
- name: "nonce",
677
- type: "uint256",
678
- },
679
- {
680
- internalType: "address",
681
- name: "tokenSpent",
682
- type: "address",
683
- },
684
- {
685
- internalType: "uint256",
686
- name: "amountSpent",
687
- type: "uint256",
688
- },
689
- {
690
- internalType: "uint256",
691
- name: "amountFee",
692
- type: "uint256",
693
- },
694
- {
695
- internalType: "address",
696
- name: "ptAdapter",
697
- type: "address",
698
- },
699
- {
700
- internalType: "uint256",
701
- name: "minPtReceived",
702
- type: "uint256",
703
- },
704
- {
705
- internalType: "uint32",
706
- name: "dstEid",
707
- type: "uint32",
708
- },
709
- {
710
- internalType: "bytes32",
711
- name: "receiver",
712
- type: "bytes32",
713
- },
714
- {
715
- internalType: "bool",
716
- name: "pullFromOwner",
717
- type: "bool",
718
- },
719
- {
720
- internalType: "address",
721
- name: "swapExtRouter",
722
- type: "address",
723
- },
724
- {
725
- internalType: "address",
726
- name: "swapApprove",
727
- type: "address",
728
- },
729
- {
730
- internalType: "bytes",
731
- name: "swapCalldata",
732
- type: "bytes",
733
- },
734
- ],
735
- internalType: "struct IPCrossChainSwapHub.BuyCrossChainPtMessage",
736
- name: "message",
737
- type: "tuple",
738
- },
739
- ],
740
- name: "hashTypedData",
741
- outputs: [
742
- {
743
- internalType: "bytes32",
744
- name: "",
745
- type: "bytes32",
746
- },
747
- ],
748
- stateMutability: "view",
749
- type: "function",
750
- },
751
- {
752
- inputs: [
753
- {
754
- components: [
755
- {
756
- internalType: "address",
757
- name: "owner",
758
- type: "address",
759
- },
760
- {
761
- internalType: "uint32",
762
- name: "boxId",
763
- type: "uint32",
764
- },
765
- {
766
- internalType: "uint256",
767
- name: "expiry",
768
- type: "uint256",
769
- },
770
- {
771
- internalType: "uint256",
772
- name: "nonce",
773
- type: "uint256",
774
- },
775
- {
776
- internalType: "address",
777
- name: "token",
778
- type: "address",
779
- },
780
- {
781
- internalType: "uint256",
782
- name: "amountBridge",
783
- type: "uint256",
784
- },
785
- {
786
- internalType: "uint256",
787
- name: "amountFee",
788
- type: "uint256",
789
- },
790
- {
791
- internalType: "bool",
792
- name: "pullFromOwner",
793
- type: "bool",
794
- },
795
- {
796
- internalType: "address",
797
- name: "bridgeExtRouter",
798
- type: "address",
799
- },
800
- {
801
- internalType: "address",
802
- name: "bridgeApprove",
803
- type: "address",
804
- },
805
- {
806
- internalType: "bytes",
807
- name: "bridgeCalldata",
808
- type: "bytes",
809
- },
810
- ],
811
- internalType: "struct IPCrossChainSwapHub.BridgeTokenMessage",
812
- name: "message",
813
- type: "tuple",
814
- },
815
- ],
816
- name: "hashTypedData",
817
- outputs: [
818
- {
819
- internalType: "bytes32",
820
- name: "",
821
- type: "bytes32",
822
- },
823
- ],
824
- stateMutability: "view",
825
- type: "function",
826
- },
827
- {
828
- inputs: [
829
- {
830
- internalType: "address",
831
- name: "executor",
832
- type: "address",
833
- },
834
- ],
835
- name: "isExecutor",
836
- outputs: [
837
- {
838
- internalType: "bool",
839
- name: "",
840
- type: "bool",
841
- },
842
- ],
843
- stateMutability: "view",
844
- type: "function",
845
- },
846
- {
847
- inputs: [
848
- {
849
- internalType: "address",
850
- name: "owner",
851
- type: "address",
852
- },
853
- ],
854
- name: "ownerNonce",
855
- outputs: [
856
- {
857
- internalType: "uint256",
858
- name: "",
859
- type: "uint256",
860
- },
861
- ],
862
- stateMutability: "view",
863
- type: "function",
864
- },
865
- {
866
- inputs: [
867
- {
868
- internalType: "address",
869
- name: "executor",
870
- type: "address",
871
- },
872
- {
873
- internalType: "bool",
874
- name: "isExecutor",
875
- type: "bool",
876
- },
877
- ],
878
- name: "setExecutor",
879
- outputs: [],
880
- stateMutability: "nonpayable",
881
- type: "function",
882
- },
883
- {
884
- inputs: [
885
- {
886
- components: [
887
- {
888
- internalType: "address",
889
- name: "owner",
890
- type: "address",
891
- },
892
- {
893
- internalType: "uint32",
894
- name: "boxId",
895
- type: "uint32",
896
- },
897
- {
898
- internalType: "uint256",
899
- name: "expiry",
900
- type: "uint256",
901
- },
902
- {
903
- internalType: "uint256",
904
- name: "nonce",
905
- type: "uint256",
906
- },
907
- {
908
- internalType: "address",
909
- name: "tokenSpent",
910
- type: "address",
911
- },
912
- {
913
- internalType: "uint256",
914
- name: "amountSpent",
915
- type: "uint256",
916
- },
917
- {
918
- internalType: "uint256",
919
- name: "amountFee",
920
- type: "uint256",
921
- },
922
- {
923
- internalType: "address",
924
- name: "tokenReceived",
925
- type: "address",
926
- },
927
- {
928
- internalType: "uint256",
929
- name: "minReceived",
930
- type: "uint256",
931
- },
932
- {
933
- internalType: "bool",
934
- name: "pullFromOwner",
935
- type: "bool",
936
- },
937
- {
938
- internalType: "bool",
939
- name: "sendToOwner",
940
- type: "bool",
941
- },
942
- {
943
- internalType: "address",
944
- name: "swapExtRouter",
945
- type: "address",
946
- },
947
- {
948
- internalType: "address",
949
- name: "swapApprove",
950
- type: "address",
951
- },
952
- {
953
- internalType: "bytes",
954
- name: "swapCalldata",
955
- type: "bytes",
956
- },
957
- ],
958
- internalType: "struct IPCrossChainSwapHub.SwapTokenMessage",
959
- name: "message",
960
- type: "tuple",
961
- },
962
- {
963
- internalType: "bytes",
964
- name: "signature",
965
- type: "bytes",
966
- },
967
- ],
968
- name: "swapToken",
969
- outputs: [],
970
- stateMutability: "nonpayable",
971
- type: "function",
972
- },
973
- {
974
- inputs: [
975
- {
976
- components: [
977
- {
978
- internalType: "address",
979
- name: "owner",
980
- type: "address",
981
- },
982
- {
983
- internalType: "uint32",
984
- name: "boxId",
985
- type: "uint32",
986
- },
987
- {
988
- internalType: "uint256",
989
- name: "expiry",
990
- type: "uint256",
991
- },
992
- {
993
- internalType: "uint256",
994
- name: "nonce",
995
- type: "uint256",
996
- },
997
- {
998
- internalType: "address",
999
- name: "token",
1000
- type: "address",
1001
- },
1002
- {
1003
- internalType: "uint256",
1004
- name: "amountWithdraw",
1005
- type: "uint256",
1006
- },
1007
- {
1008
- internalType: "uint256",
1009
- name: "amountFee",
1010
- type: "uint256",
1011
- },
1012
- ],
1013
- internalType: "struct IPCrossChainSwapHub.WithdrawTokenMessage",
1014
- name: "message",
1015
- type: "tuple",
1016
- },
1017
- {
1018
- internalType: "bytes",
1019
- name: "signature",
1020
- type: "bytes",
1021
- },
1022
- ],
1023
- name: "withdrawToken",
1024
- outputs: [],
1025
- stateMutability: "nonpayable",
1026
- type: "function",
1027
- },
1028
- ];
1029
-
1030
- export class IPCrossChainSwapHub__factory {
1031
- static readonly abi = _abi;
1032
- static createInterface(): IPCrossChainSwapHubInterface {
1033
- return new utils.Interface(_abi) as IPCrossChainSwapHubInterface;
1034
- }
1035
- static connect(
1036
- address: string,
1037
- signerOrProvider: Signer | Provider
1038
- ): IPCrossChainSwapHub {
1039
- return new Contract(address, _abi, signerOrProvider) as IPCrossChainSwapHub;
1040
- }
1041
- }