@pendle/core-v2 6.4.1 → 6.4.2-swaphubtest2

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 (371) 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/PendleMerkleDistributor.sol/PendleMerkleDistributor.json +2 -2
  12. package/build/artifacts/contracts/LiquidityMining/PendleMultiTokenMerkleDistributor.sol/PendleMultiTokenMerkleDistributor.dbg.json +1 -1
  13. package/build/artifacts/contracts/LiquidityMining/PendleMultiTokenMerkleDistributor.sol/PendleMultiTokenMerkleDistributor.json +2 -2
  14. package/build/artifacts/contracts/LiquidityMining/VotingController/PendleVotingControllerUpg.sol/PendleVotingControllerUpg.dbg.json +1 -1
  15. package/build/artifacts/contracts/LiquidityMining/VotingController/VotingControllerStorageUpg.sol/VotingControllerStorageUpg.dbg.json +1 -1
  16. package/build/artifacts/contracts/LiquidityMining/VotingEscrow/VotingEscrowPendleMainchain.sol/VotingEscrowPendleMainchain.dbg.json +1 -1
  17. package/build/artifacts/contracts/LiquidityMining/VotingEscrow/VotingEscrowPendleSidechain.sol/VotingEscrowPendleSidechain.dbg.json +1 -1
  18. package/build/artifacts/contracts/LiquidityMining/VotingEscrow/VotingEscrowTokenBase.sol/VotingEscrowTokenBase.dbg.json +1 -1
  19. package/build/artifacts/contracts/LiquidityMining/libraries/VeBalanceLib.sol/VeBalanceLib.dbg.json +1 -1
  20. package/build/artifacts/contracts/LiquidityMining/libraries/VeHistoryLib.sol/CheckpointHelper.dbg.json +1 -1
  21. package/build/artifacts/contracts/LiquidityMining/libraries/VeHistoryLib.sol/Checkpoints.dbg.json +1 -1
  22. package/build/artifacts/contracts/LiquidityMining/libraries/WeekMath.sol/WeekMath.dbg.json +1 -1
  23. package/build/artifacts/contracts/core/Market/MarketMathCore.sol/MarketMathCore.dbg.json +1 -1
  24. package/build/artifacts/contracts/core/Market/OracleLib.sol/OracleLib.dbg.json +1 -1
  25. package/build/artifacts/contracts/core/Market/PendleGauge.sol/PendleGauge.dbg.json +1 -1
  26. package/build/artifacts/contracts/core/Market/PendleMarketFactoryV6Upg.sol/PendleMarketFactoryV6Upg.dbg.json +1 -1
  27. package/build/artifacts/contracts/core/Market/PendleMarketV6.sol/PendleMarketV6.dbg.json +1 -1
  28. package/build/artifacts/contracts/core/Market/PendleMarketV6.sol/PendleMarketV6.json +2 -2
  29. package/build/artifacts/contracts/core/RewardManager/RewardManager.sol/RewardManager.dbg.json +1 -1
  30. package/build/artifacts/contracts/core/RewardManager/RewardManagerAbstract.sol/RewardManagerAbstract.dbg.json +1 -1
  31. package/build/artifacts/contracts/core/StandardizedYield/PYIndex.sol/PYIndexLib.dbg.json +1 -1
  32. package/build/artifacts/contracts/core/StandardizedYield/SYUtils.sol/SYUtils.dbg.json +1 -1
  33. package/build/artifacts/contracts/core/YieldContracts/InterestManagerYT.sol/InterestManagerYT.dbg.json +1 -1
  34. package/build/artifacts/contracts/core/YieldContracts/PendlePrincipalToken.sol/PendlePrincipalToken.dbg.json +1 -1
  35. package/build/artifacts/contracts/core/YieldContracts/PendleYieldContractFactoryUpg.sol/PendleYieldContractFactoryUpg.dbg.json +1 -1
  36. package/build/artifacts/contracts/core/YieldContracts/PendleYieldContractFactoryUpg.sol/PendleYieldContractFactoryUpg.json +2 -2
  37. package/build/artifacts/contracts/core/YieldContracts/PendleYieldToken.sol/PendleYieldToken.dbg.json +1 -1
  38. package/build/artifacts/contracts/core/YieldContracts/PendleYieldToken.sol/PendleYieldToken.json +2 -2
  39. package/build/artifacts/contracts/core/erc20/PendleERC20.sol/PendleERC20.dbg.json +1 -1
  40. package/build/artifacts/contracts/core/libraries/ArrayLib.sol/ArrayLib.dbg.json +1 -1
  41. package/build/artifacts/contracts/core/libraries/BaseSplitCodeFactory.sol/BaseSplitCodeFactory.dbg.json +1 -1
  42. package/build/artifacts/contracts/core/libraries/BaseSplitCodeFactory.sol/CodeDeployer.dbg.json +1 -1
  43. package/build/artifacts/contracts/core/libraries/BoringOwnableUpgradeableV2.sol/BoringOwnableUpgradeableData.dbg.json +1 -1
  44. package/build/artifacts/contracts/core/libraries/BoringOwnableUpgradeableV2.sol/BoringOwnableUpgradeableV2.dbg.json +1 -1
  45. package/build/artifacts/contracts/core/libraries/Errors.sol/Errors.dbg.json +1 -1
  46. package/build/artifacts/contracts/core/libraries/ExpiryUtilsLib.sol/ExpiryUtils.dbg.json +1 -1
  47. package/build/artifacts/contracts/core/libraries/MiniHelpers.sol/MiniHelpers.dbg.json +1 -1
  48. package/build/artifacts/contracts/core/libraries/StringLib.sol/StringLib.dbg.json +1 -1
  49. package/build/artifacts/contracts/core/libraries/TokenHelper.sol/TokenHelper.dbg.json +1 -1
  50. package/build/artifacts/contracts/core/libraries/math/LogExpMath.sol/LogExpMath.dbg.json +1 -1
  51. package/build/artifacts/contracts/core/libraries/math/PMath.sol/PMath.dbg.json +1 -1
  52. package/build/artifacts/contracts/cross-chain/FixedPricePTAMM.sol/FixedPricePTAMM.dbg.json +1 -1
  53. package/build/artifacts/contracts/cross-chain/FixedPricePTAMM.sol/FixedPricePTAMM.json +2 -2
  54. package/build/artifacts/contracts/cross-chain/deposit-box/DepositBox.sol/DepositBox.dbg.json +4 -0
  55. package/build/artifacts/contracts/cross-chain/deposit-box/DepositBox.sol/DepositBox.json +170 -0
  56. package/build/artifacts/contracts/cross-chain/deposit-box/DepositBoxFactory.sol/DepositBoxFactory.dbg.json +4 -0
  57. package/build/artifacts/contracts/cross-chain/deposit-box/DepositBoxFactory.sol/DepositBoxFactory.json +124 -0
  58. package/build/artifacts/contracts/cross-chain/factory/hub/PendlePTOFTAdapterFactory.sol/PendlePTOFTAdapterFactory.dbg.json +1 -1
  59. package/build/artifacts/contracts/cross-chain/oftImpl/hub/OFTAdapterImpl.sol/OFTAdapterImpl.dbg.json +1 -1
  60. package/build/artifacts/contracts/cross-chain/oftImpl/spoke/PendleBridgedPrincipalToken.sol/PendleBridgedPrincipalToken.dbg.json +1 -1
  61. package/build/artifacts/contracts/cross-chain/swap-hub/PendleCrossChainSwapHub.sol/PendleCrossChainSwapHub.dbg.json +4 -0
  62. package/build/artifacts/contracts/cross-chain/swap-hub/PendleCrossChainSwapHub.sol/PendleCrossChainSwapHub.json +981 -0
  63. package/build/artifacts/contracts/cross-chain/swap-hub/SwapHubBase.sol/SwapHubBase.dbg.json +4 -0
  64. package/build/artifacts/contracts/cross-chain/swap-hub/SwapHubBase.sol/SwapHubBase.json +952 -0
  65. package/build/artifacts/contracts/deprecated/VeDistributor/PendleFeeDistributor.sol/PendleFeeDistributor.dbg.json +1 -1
  66. package/build/artifacts/contracts/deprecated/VeDistributor/PendleFeeDistributorV2.sol/PendleFeeDistributorV2.dbg.json +1 -1
  67. package/build/artifacts/contracts/deprecated/VeDistributor/PendleFeeDistributorV2.sol/PendleFeeDistributorV2.json +2 -2
  68. package/build/artifacts/contracts/interfaces/IAddressProvider.sol/IAddressProvider.dbg.json +1 -1
  69. package/build/artifacts/contracts/interfaces/ILPWrapper.sol/ILPWrapper.dbg.json +1 -1
  70. package/build/artifacts/contracts/interfaces/ILayerZeroEndpoint.sol/ILayerZeroEndpoint.dbg.json +1 -1
  71. package/build/artifacts/contracts/interfaces/ILayerZeroReceiver.sol/ILayerZeroReceiver.dbg.json +1 -1
  72. package/build/artifacts/contracts/interfaces/IMarketSweed.sol/IMarketSweed.dbg.json +1 -1
  73. package/build/artifacts/contracts/interfaces/IOwnable.sol/IOwnable.dbg.json +1 -1
  74. package/build/artifacts/contracts/interfaces/IPActionAddRemoveLiqV3.sol/IPActionAddRemoveLiqV3.dbg.json +1 -1
  75. package/build/artifacts/contracts/interfaces/IPActionCallbackV3.sol/IPActionCallbackV3.dbg.json +1 -1
  76. package/build/artifacts/contracts/interfaces/IPActionCrossChain.sol/IPActionCrossChain.dbg.json +1 -1
  77. package/build/artifacts/contracts/interfaces/IPActionInfoStatic.sol/IPActionInfoStatic.dbg.json +1 -1
  78. package/build/artifacts/contracts/interfaces/IPActionMarketAuxStatic.sol/IPActionMarketAuxStatic.dbg.json +1 -1
  79. package/build/artifacts/contracts/interfaces/IPActionMarketCoreStatic.sol/IPActionMarketCoreStatic.dbg.json +1 -1
  80. package/build/artifacts/contracts/interfaces/IPActionMintRedeemStatic.sol/IPActionMintRedeemStatic.dbg.json +1 -1
  81. package/build/artifacts/contracts/interfaces/IPActionMiscV3.sol/IPActionMiscV3.dbg.json +1 -1
  82. package/build/artifacts/contracts/interfaces/IPActionSimple.sol/IPActionSimple.dbg.json +1 -1
  83. package/build/artifacts/contracts/interfaces/IPActionStorageStatic.sol/IPActionStorageStatic.dbg.json +1 -1
  84. package/build/artifacts/contracts/interfaces/IPActionStorageV4.sol/IPActionStorageV4.dbg.json +1 -1
  85. package/build/artifacts/contracts/interfaces/IPActionSwapPTV3.sol/IPActionSwapPTV3.dbg.json +1 -1
  86. package/build/artifacts/contracts/interfaces/IPActionSwapYTV3.sol/IPActionSwapYTV3.dbg.json +1 -1
  87. package/build/artifacts/contracts/interfaces/IPActionVePendleStatic.sol/IPActionVePendleStatic.dbg.json +1 -1
  88. package/build/artifacts/contracts/interfaces/IPAllActionV3.sol/IPAllActionV3.dbg.json +1 -1
  89. package/build/artifacts/contracts/interfaces/IPAllEventsV3.sol/IPActionAddRemoveLiqV3Events.dbg.json +1 -1
  90. package/build/artifacts/contracts/interfaces/IPAllEventsV3.sol/IPActionMiscV3Events.dbg.json +1 -1
  91. package/build/artifacts/contracts/interfaces/IPAllEventsV3.sol/IPActionStorageEvents.dbg.json +1 -1
  92. package/build/artifacts/contracts/interfaces/IPAllEventsV3.sol/IPActionSwapPTV3Events.dbg.json +1 -1
  93. package/build/artifacts/contracts/interfaces/IPAllEventsV3.sol/IPActionSwapYTV3Events.dbg.json +1 -1
  94. package/build/artifacts/contracts/interfaces/IPAllEventsV3.sol/IPAllEventsV3.dbg.json +1 -1
  95. package/build/artifacts/contracts/interfaces/IPBridgedPrincipalToken.sol/IPBridgedPrincipalToken.dbg.json +1 -1
  96. package/build/artifacts/contracts/interfaces/IPChainlinkOracle.sol/IPChainlinkOracle.dbg.json +1 -1
  97. package/build/artifacts/contracts/interfaces/IPChainlinkOracleEssential.sol/IPChainlinkOracleEssential.dbg.json +1 -1
  98. package/build/artifacts/contracts/interfaces/IPChainlinkOracleFactory.sol/IPChainlinkOracleFactory.dbg.json +1 -1
  99. package/build/artifacts/contracts/interfaces/IPChainlinkOracleWithQuote.sol/IPChainlinkOracleWithQuote.dbg.json +1 -1
  100. package/build/artifacts/contracts/interfaces/IPCommonPoolDeployHelperV2.sol/IPCommonPoolDeployHelperV2.dbg.json +1 -1
  101. package/build/artifacts/contracts/interfaces/IPCommonSYFactory.sol/IPCommonSYFactory.dbg.json +1 -1
  102. package/build/artifacts/contracts/interfaces/IPCrossChainSwapHub.sol/IPCrossChainSwapHub.dbg.json +4 -0
  103. package/build/artifacts/contracts/interfaces/IPCrossChainSwapHub.sol/IPCrossChainSwapHub.json +789 -0
  104. package/build/artifacts/contracts/interfaces/IPDepositBox.sol/IPDepositBox.dbg.json +4 -0
  105. package/build/artifacts/contracts/interfaces/IPDepositBox.sol/IPDepositBox.json +124 -0
  106. package/build/artifacts/contracts/interfaces/IPDepositBoxFactory.sol/IPDepositBoxFactory.dbg.json +4 -0
  107. package/build/artifacts/contracts/interfaces/IPDepositBoxFactory.sol/IPDepositBoxFactory.json +108 -0
  108. package/build/artifacts/contracts/interfaces/IPExchangeRateOracle.sol/IPExchangeRateOracle.dbg.json +1 -1
  109. package/build/artifacts/contracts/interfaces/IPExchangeRateOracleApp.sol/IPExchangeRateOracleApp.dbg.json +1 -1
  110. package/build/artifacts/contracts/interfaces/IPFeeDistributor.sol/IPFeeDistributor.dbg.json +1 -1
  111. package/build/artifacts/contracts/interfaces/IPFeeDistributorV2.sol/IPFeeDistributorV2.dbg.json +1 -1
  112. package/build/artifacts/contracts/interfaces/IPFixedPricePTAMM.sol/IPFixedPricePTAMM.dbg.json +1 -1
  113. package/build/artifacts/contracts/interfaces/IPFixedPricePTAMM.sol/IPFixedPricePTAMMSwapCallback.dbg.json +1 -1
  114. package/build/artifacts/contracts/interfaces/IPGauge.sol/IPGauge.dbg.json +1 -1
  115. package/build/artifacts/contracts/interfaces/IPGaugeController.sol/IPGaugeController.dbg.json +1 -1
  116. package/build/artifacts/contracts/interfaces/IPGaugeControllerMainchain.sol/IPGaugeControllerMainchain.dbg.json +1 -1
  117. package/build/artifacts/contracts/interfaces/IPGovernanceProxy.sol/IPGovernanceProxy.dbg.json +1 -1
  118. package/build/artifacts/contracts/interfaces/IPInterestManagerYT.sol/IPInterestManagerYT.dbg.json +1 -1
  119. package/build/artifacts/contracts/interfaces/IPInterestManagerYTV2.sol/IPInterestManagerYTV2.dbg.json +1 -1
  120. package/build/artifacts/contracts/interfaces/IPLPWrapperFactory.sol/IPLPWrapperFactory.dbg.json +1 -1
  121. package/build/artifacts/contracts/interfaces/IPLimitRouter.sol/IPLimitOrderType.dbg.json +1 -1
  122. package/build/artifacts/contracts/interfaces/IPLimitRouter.sol/IPLimitRouter.dbg.json +1 -1
  123. package/build/artifacts/contracts/interfaces/IPLimitRouter.sol/IPLimitRouterCallback.dbg.json +1 -1
  124. package/build/artifacts/contracts/interfaces/IPMarket.sol/IPMarket.dbg.json +1 -1
  125. package/build/artifacts/contracts/interfaces/IPMarketFactory.sol/IPMarketFactory.dbg.json +1 -1
  126. package/build/artifacts/contracts/interfaces/IPMarketSwapCallback.sol/IPMarketSwapCallback.dbg.json +1 -1
  127. package/build/artifacts/contracts/interfaces/IPMerkleDistributor.sol/IPMerkleDistributor.dbg.json +1 -1
  128. package/build/artifacts/contracts/interfaces/IPMiniDiamond.sol/IPMiniDiamond.dbg.json +1 -1
  129. package/build/artifacts/contracts/interfaces/IPMsgReceiverApp.sol/IPMsgReceiverApp.dbg.json +1 -1
  130. package/build/artifacts/contracts/interfaces/IPMsgSendEndpoint.sol/IPMsgSendEndpoint.dbg.json +1 -1
  131. package/build/artifacts/contracts/interfaces/IPMultiTokenMerkleDistributor.sol/IPMultiTokenMerkleDistributor.dbg.json +1 -1
  132. package/build/artifacts/contracts/interfaces/IPOffchainStorage.sol/IPOffchainStorage.dbg.json +1 -1
  133. package/build/artifacts/contracts/interfaces/IPOracleForSy.sol/IPOracleForSy.dbg.json +1 -1
  134. package/build/artifacts/contracts/interfaces/IPPTOFTAdapterFactory.sol/IPPTOFTAdapterFactory.dbg.json +1 -1
  135. package/build/artifacts/contracts/interfaces/IPPYLpOracle.sol/IPPYLpOracle.dbg.json +1 -1
  136. package/build/artifacts/contracts/interfaces/IPPausingInterface.sol/IPPausingInterface.dbg.json +1 -1
  137. package/build/artifacts/contracts/interfaces/IPPoolDeployHelperV2.sol/IPPoolDeployHelperV2.dbg.json +1 -1
  138. package/build/artifacts/contracts/interfaces/IPPriceFeed.sol/IPPriceFeed.dbg.json +1 -1
  139. package/build/artifacts/contracts/interfaces/IPPrincipalToken.sol/IPPrincipalToken.dbg.json +1 -1
  140. package/build/artifacts/contracts/interfaces/IPReflector.sol/IPReflector.dbg.json +1 -1
  141. package/build/artifacts/contracts/interfaces/IPRouterStatic.sol/IPRouterStatic.dbg.json +1 -1
  142. package/build/artifacts/contracts/interfaces/IPTokenWithSupplyCap.sol/IPTokenWithSupplyCap.dbg.json +1 -1
  143. package/build/artifacts/contracts/interfaces/IPVeToken.sol/IPVeToken.dbg.json +1 -1
  144. package/build/artifacts/contracts/interfaces/IPVotingController.sol/IPVotingController.dbg.json +1 -1
  145. package/build/artifacts/contracts/interfaces/IPVotingEscrowMainchain.sol/IPVotingEscrowMainchain.dbg.json +1 -1
  146. package/build/artifacts/contracts/interfaces/IPYieldContractFactory.sol/IPYieldContractFactory.dbg.json +1 -1
  147. package/build/artifacts/contracts/interfaces/IPYieldToken.sol/IPYieldToken.dbg.json +1 -1
  148. package/build/artifacts/contracts/interfaces/IPYieldTokenV2.sol/IPYieldTokenV2.dbg.json +1 -1
  149. package/build/artifacts/contracts/interfaces/IRedstonePriceFeed.sol/IRedstonePriceFeed.dbg.json +1 -1
  150. package/build/artifacts/contracts/interfaces/IRewardManager.sol/IRewardManager.dbg.json +1 -1
  151. package/build/artifacts/contracts/interfaces/IStandardizedYield.sol/IStandardizedYield.dbg.json +1 -1
  152. package/build/artifacts/contracts/interfaces/IWETH.sol/IWETH.dbg.json +1 -1
  153. package/build/artifacts/contracts/interfaces/IWstETH.sol/IWstETH.dbg.json +1 -1
  154. package/build/artifacts/contracts/limit/LimitMathCore.sol/LimitMathCore.dbg.json +1 -1
  155. package/build/artifacts/contracts/limit/LimitRouterBase.sol/LimitRouterBase.dbg.json +1 -1
  156. package/build/artifacts/contracts/limit/PendleLimitRouter.sol/PendleLimitRouter.dbg.json +1 -1
  157. package/build/artifacts/contracts/limit/PendleLimitRouter.sol/PendleLimitRouter.json +2 -2
  158. package/build/artifacts/contracts/limit/helpers/NonceManager.sol/NonceManager.dbg.json +1 -1
  159. package/build/artifacts/contracts/offchain-helpers/AddressProvider.sol/AddressProvider.dbg.json +1 -1
  160. package/build/artifacts/contracts/offchain-helpers/AutomateReady.sol/AutomateReady.dbg.json +1 -1
  161. package/build/artifacts/contracts/offchain-helpers/AutomateReady.sol/IAutomate.dbg.json +1 -1
  162. package/build/artifacts/contracts/offchain-helpers/AutomateReady.sol/IOpsProxyFactory.dbg.json +1 -1
  163. package/build/artifacts/contracts/offchain-helpers/AutomateReady.sol/ITaskTreasuryUpgradable.dbg.json +1 -1
  164. package/build/artifacts/contracts/offchain-helpers/BalanceReader.sol/BalanceReader.dbg.json +1 -1
  165. package/build/artifacts/contracts/offchain-helpers/BaseSplitCodeFactoryContract.sol/BaseSplitCodeFactoryContract.dbg.json +1 -1
  166. package/build/artifacts/contracts/offchain-helpers/Broadcaster.sol/Broadcaster.dbg.json +1 -1
  167. package/build/artifacts/contracts/offchain-helpers/Broadcaster.sol/Broadcaster.json +2 -2
  168. package/build/artifacts/contracts/offchain-helpers/BytesLib.sol/BytesLib.dbg.json +1 -1
  169. package/build/artifacts/contracts/offchain-helpers/EmptyUUPS.sol/EmptyUUPS.dbg.json +1 -1
  170. package/build/artifacts/contracts/offchain-helpers/ExpiredLpPtRedeemer.sol/ExpiredLpPtRedeemer.dbg.json +1 -1
  171. package/build/artifacts/contracts/offchain-helpers/ExpiredLpPtRedeemer.sol/ExpiredLpPtRedeemer.json +2 -2
  172. package/build/artifacts/contracts/offchain-helpers/LegacyNFTHelper.sol/LegacyNFTHelper.dbg.json +1 -1
  173. package/build/artifacts/contracts/offchain-helpers/LegacyNFTHelper.sol/StarNFTV1.dbg.json +1 -1
  174. package/build/artifacts/contracts/offchain-helpers/LimitBackendHelperV2.sol/LimitBackendHelperV2.dbg.json +1 -1
  175. package/build/artifacts/contracts/offchain-helpers/LimitBackendHelperV2.sol/LimitBackendHelperV2.json +2 -2
  176. package/build/artifacts/contracts/offchain-helpers/MarketSweed.sol/MarketSweed.dbg.json +1 -1
  177. package/build/artifacts/contracts/offchain-helpers/MarketSweed.sol/MarketSweed.json +2 -2
  178. package/build/artifacts/contracts/offchain-helpers/Multicall2.sol/Multicall2.dbg.json +1 -1
  179. package/build/artifacts/contracts/offchain-helpers/PendleAPIFeeDepositor.sol/PendleAPIFeeDepositor.dbg.json +1 -1
  180. package/build/artifacts/contracts/offchain-helpers/PendleAPIFeeDepositor.sol/PendleAPIFeeDepositor.json +2 -2
  181. package/build/artifacts/contracts/offchain-helpers/PendleExchangeRateOracle.sol/PendleExchangeRateOracle.dbg.json +1 -1
  182. package/build/artifacts/contracts/offchain-helpers/PendleFeeSetter.sol/PendleFeeSetter.dbg.json +1 -1
  183. package/build/artifacts/contracts/offchain-helpers/PendleGovernanceProxy.sol/PendleGovernanceProxy.dbg.json +1 -1
  184. package/build/artifacts/contracts/offchain-helpers/PendleLPWrapper.sol/PendleLPWrapper.dbg.json +1 -1
  185. package/build/artifacts/contracts/offchain-helpers/PendleLPWrapper.sol/PendleLPWrapper.json +2 -2
  186. package/build/artifacts/contracts/offchain-helpers/PendleLPWrapperFactory.sol/PendleLPWrapperFactory.dbg.json +1 -1
  187. package/build/artifacts/contracts/offchain-helpers/PendleLPWrapperFactory.sol/PendleLPWrapperFactory.json +2 -2
  188. package/build/artifacts/contracts/offchain-helpers/PendleMerkleDepositor.sol/PendleMerkleDepositor.dbg.json +1 -1
  189. package/build/artifacts/contracts/offchain-helpers/PendleMulticallOwnerV1.sol/PendleMulticallOwnerV1.dbg.json +1 -1
  190. package/build/artifacts/contracts/offchain-helpers/PendleMulticallV1.sol/PendleMulticallV1.dbg.json +1 -1
  191. package/build/artifacts/contracts/offchain-helpers/PendleMulticallV2.sol/PendleMulticallV2.dbg.json +1 -1
  192. package/build/artifacts/contracts/offchain-helpers/PendleOffchainStorage.sol/PendleOffchainStorage.dbg.json +1 -1
  193. package/build/artifacts/contracts/offchain-helpers/PendleWstETHPriceFeed.sol/PendleWstETHPriceFeed.dbg.json +1 -1
  194. package/build/artifacts/contracts/offchain-helpers/SimulateHelper.sol/SimulateHelper.dbg.json +1 -1
  195. package/build/artifacts/contracts/offchain-helpers/SupplyCapReader.sol/IPossibleSupplyCapInterface.dbg.json +1 -1
  196. package/build/artifacts/contracts/offchain-helpers/SupplyCapReader.sol/SupplyCapReader.dbg.json +1 -1
  197. package/build/artifacts/contracts/offchain-helpers/deploy/PendleCommonPoolDeployHelperV2.sol/PendleCommonPoolDeployHelperV2.dbg.json +1 -1
  198. package/build/artifacts/contracts/offchain-helpers/deploy/PendleCommonPoolDeployHelperV2.sol/PendleCommonPoolDeployHelperV2.json +2 -2
  199. package/build/artifacts/contracts/offchain-helpers/deploy/PendleCommonSYFactory.sol/PendleCommonSYFactory.dbg.json +1 -1
  200. package/build/artifacts/contracts/offchain-helpers/deploy/PendlePoolDeployHelper.sol/PendlePoolDeployHelper.dbg.json +1 -1
  201. package/build/artifacts/contracts/offchain-helpers/deploy/PendlePoolDeployHelper.sol/PendlePoolDeployHelper.json +2 -2
  202. package/build/artifacts/contracts/offchain-helpers/deploy/PendlePoolDeployHelperV2.sol/PendlePoolDeployHelperV2.dbg.json +1 -1
  203. package/build/artifacts/contracts/offchain-helpers/deploy/PendlePoolDeployHelperV2.sol/PendlePoolDeployHelperV2.json +2 -2
  204. package/build/artifacts/contracts/offchain-helpers/deploy/lib/MarketDeployLib.sol/MarketDeployLib.dbg.json +1 -1
  205. package/build/artifacts/contracts/offchain-helpers/errors/SDKErrorsDirectory.sol/SDKErrorsDirectory.dbg.json +1 -1
  206. package/build/artifacts/contracts/offchain-helpers/router-static/PendleRouterStatic.sol/PendleRouterStatic.dbg.json +1 -1
  207. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionInfoStatic.sol/ActionInfoStatic.dbg.json +1 -1
  208. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionMarketAuxStatic.sol/ActionMarketAuxStatic.dbg.json +1 -1
  209. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionMarketCoreStatic.sol/ActionMarketCoreStatic.dbg.json +1 -1
  210. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionMintRedeemStatic.sol/ActionMintRedeemStatic.dbg.json +1 -1
  211. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionStorageStatic.sol/ActionStorageStatic.dbg.json +1 -1
  212. package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionVePendleStatic.sol/ActionVePendleStatic.dbg.json +1 -1
  213. package/build/artifacts/contracts/offchain-helpers/router-static/base/MarketApproxLibV1.sol/MarketApproxPtInLibV1.dbg.json +1 -1
  214. package/build/artifacts/contracts/offchain-helpers/router-static/base/MarketApproxLibV1.sol/MarketApproxPtOutLibV1.dbg.json +1 -1
  215. package/build/artifacts/contracts/offchain-helpers/router-static/base/StorageLayout.sol/StorageLayout.dbg.json +1 -1
  216. package/build/artifacts/contracts/oracles/CrossChainOracle/base/PendleCrossChainOracleBaseApp_Init.sol/PendleCrossChainOracleBaseApp_Init.dbg.json +1 -1
  217. package/build/artifacts/contracts/oracles/CrossChainOracle/exchangeRate/PendleExchangeRateOracleApp.sol/PendleExchangeRateOracleApp.dbg.json +1 -1
  218. package/build/artifacts/contracts/oracles/CrossChainOracle/exchangeRate/PendleExchangeRateOracleV2.sol/PendleExchangeRateOracleV2.dbg.json +1 -1
  219. package/build/artifacts/contracts/oracles/CrossChainOracle/libraries/ExchangeRateMsgCodec.sol/ExchangeRateMsgCodec.dbg.json +1 -1
  220. package/build/artifacts/contracts/oracles/PtYtLpOracle/PendleLpOracleLib.sol/PendleLpOracleLib.dbg.json +1 -1
  221. package/build/artifacts/contracts/oracles/PtYtLpOracle/PendlePYLpOracle.sol/PendlePYLpOracle.dbg.json +1 -1
  222. package/build/artifacts/contracts/oracles/PtYtLpOracle/PendlePYOracleLib.sol/PendlePYOracleLib.dbg.json +1 -1
  223. package/build/artifacts/contracts/oracles/PtYtLpOracle/chainlink/PendleChainlinkOracle.sol/PendleChainlinkOracle.dbg.json +1 -1
  224. package/build/artifacts/contracts/oracles/PtYtLpOracle/chainlink/PendleChainlinkOracleFactory.sol/PendleChainlinkOracleFactory.dbg.json +1 -1
  225. package/build/artifacts/contracts/oracles/PtYtLpOracle/chainlink/PendleChainlinkOracleWithQuote.sol/PendleChainlinkOracleWithQuote.dbg.json +1 -1
  226. package/build/artifacts/contracts/oracles/PtYtLpOracle/samples/BoringLpSeller.sol/BoringLpSeller.dbg.json +1 -1
  227. package/build/artifacts/contracts/oracles/PtYtLpOracle/samples/BoringPYUsdChainlinkAssetOracle.sol/BoringPYUsdChainlinkAssetOracle.dbg.json +1 -1
  228. package/build/artifacts/contracts/oracles/PtYtLpOracle/samples/BoringPYUsdChainlinkSYOracle.sol/BoringPYUsdChainlinkSYOracle.dbg.json +1 -1
  229. package/build/artifacts/contracts/oracles/PtYtLpOracle/samples/BoringPtSeller.sol/BoringPtSeller.dbg.json +1 -1
  230. package/build/artifacts/contracts/oracles/StatelessWrapper/PendleLinearDiscountOracleWrapper.sol/PendleLinearDiscountOracleWrapper.dbg.json +1 -1
  231. package/build/artifacts/contracts/oracles/StatelessWrapper/PendleSparkLinearDiscountOracleFactoryWrapper.sol/PendleSparkLinearDiscountOracleFactoryWrapper.dbg.json +1 -1
  232. package/build/artifacts/contracts/oracles/internal/PendleBoringOneracle.sol/PendleBoringOneracle.dbg.json +1 -1
  233. package/build/artifacts/contracts/oracles/internal/PendleBoringSolvBTCOneracle.sol/PendleBoringSolvBTCOneracle.dbg.json +1 -1
  234. package/build/artifacts/contracts/oracles/internal/PendleLpLinearDiscountOracle.sol/LPExpiry.dbg.json +1 -1
  235. package/build/artifacts/contracts/oracles/internal/PendleLpLinearDiscountOracle.sol/PendleLpLinearDiscountOracle.dbg.json +1 -1
  236. package/build/artifacts/contracts/oracles/internal/PendleLpLinearDiscountOracleFactory.sol/PendleLpLinearDiscountOracleFactory.dbg.json +1 -1
  237. package/build/artifacts/contracts/oracles/internal/PendleRedStoneRateOracleAdapter.sol/PendleRedStoneRateOracleAdapter.dbg.json +1 -1
  238. package/build/artifacts/contracts/oracles/internal/PendleSparkLinearDiscountOracle.sol/PTExpiry.dbg.json +1 -1
  239. package/build/artifacts/contracts/oracles/internal/PendleSparkLinearDiscountOracle.sol/PendleSparkLinearDiscountOracle.dbg.json +1 -1
  240. package/build/artifacts/contracts/oracles/internal/PendleSparkLinearDiscountOracleFactory.sol/PendleSparkLinearDiscountOracleFactory.dbg.json +1 -1
  241. package/build/artifacts/contracts/router/ActionAddRemoveLiqV3.sol/ActionAddRemoveLiqV3.dbg.json +1 -1
  242. package/build/artifacts/contracts/router/ActionAddRemoveLiqV3.sol/ActionAddRemoveLiqV3.json +2 -2
  243. package/build/artifacts/contracts/router/ActionCallbackV3.sol/ActionCallbackV3.dbg.json +1 -1
  244. package/build/artifacts/contracts/router/ActionCallbackV3.sol/ActionCallbackV3.json +2 -2
  245. package/build/artifacts/contracts/router/ActionCrossChain.sol/ActionCrossChain.dbg.json +1 -1
  246. package/build/artifacts/contracts/router/ActionCrossChain.sol/ActionCrossChain.json +2 -2
  247. package/build/artifacts/contracts/router/ActionMiscV3.sol/ActionMiscV3.dbg.json +1 -1
  248. package/build/artifacts/contracts/router/ActionMiscV3.sol/ActionMiscV3.json +2 -2
  249. package/build/artifacts/contracts/router/ActionSimple.sol/ActionSimple.dbg.json +1 -1
  250. package/build/artifacts/contracts/router/ActionSimple.sol/ActionSimple.json +2 -2
  251. package/build/artifacts/contracts/router/ActionStorageV4.sol/ActionStorageV4.dbg.json +1 -1
  252. package/build/artifacts/contracts/router/ActionSwapPTV3.sol/ActionSwapPTV3.dbg.json +1 -1
  253. package/build/artifacts/contracts/router/ActionSwapPTV3.sol/ActionSwapPTV3.json +2 -2
  254. package/build/artifacts/contracts/router/ActionSwapYTV3.sol/ActionSwapYTV3.dbg.json +1 -1
  255. package/build/artifacts/contracts/router/ActionSwapYTV3.sol/ActionSwapYTV3.json +2 -2
  256. package/build/artifacts/contracts/router/PendleRouterV4.sol/PendleRouterV4.dbg.json +1 -1
  257. package/build/artifacts/contracts/router/Reflector.sol/Reflector.dbg.json +1 -1
  258. package/build/artifacts/contracts/router/Reflector.sol/Reflector.json +2 -2
  259. package/build/artifacts/contracts/router/RouterStorage.sol/RouterStorage.dbg.json +1 -1
  260. package/build/artifacts/contracts/router/base/ActionBase.sol/ActionBase.dbg.json +1 -1
  261. package/build/artifacts/contracts/router/base/ActionDelegateBase.sol/ActionDelegateBase.dbg.json +1 -1
  262. package/build/artifacts/contracts/router/base/ActionDelegateBase.sol/ActionDelegateBase.json +2 -2
  263. package/build/artifacts/contracts/router/base/CallbackHelper.sol/CallbackHelper.dbg.json +1 -1
  264. package/build/artifacts/contracts/router/math/ApproxStateLib.sol/ApproxStateLib.dbg.json +1 -1
  265. package/build/artifacts/contracts/router/math/MarketApproxEstimateLib.sol/MarketApproxEstimateLib.dbg.json +1 -1
  266. package/build/artifacts/contracts/router/math/MarketApproxLibOnchain.sol/MarketApproxPtInLibOnchain.dbg.json +1 -1
  267. package/build/artifacts/contracts/router/math/MarketApproxLibOnchain.sol/MarketApproxPtOutLibOnchain.dbg.json +1 -1
  268. package/build/artifacts/contracts/router/math/MarketApproxLibV2.sol/MarketApproxPtInLibV2.dbg.json +1 -1
  269. package/build/artifacts/contracts/router/math/MarketApproxLibV2.sol/MarketApproxPtOutLibV2.dbg.json +1 -1
  270. package/build/artifacts/contracts/router/swap-aggregator/IPSwapAggregator.sol/IPSwapAggregator.dbg.json +1 -1
  271. package/build/artifacts/contracts/router/swap-aggregator/OKXScaleHelper.sol/IOKXDexRouter.dbg.json +1 -1
  272. package/build/artifacts/contracts/router/swap-aggregator/OKXScaleHelper.sol/OKXScaleHelper.dbg.json +1 -1
  273. package/build/artifacts/contracts/router/swap-aggregator/ParaswapScaleHelper.sol/IAugustusV6.dbg.json +1 -1
  274. package/build/artifacts/contracts/router/swap-aggregator/ParaswapScaleHelper.sol/ParaswapScaleHelper.dbg.json +1 -1
  275. package/build/artifacts/contracts/router/swap-aggregator/PendleSwap.sol/IKyberScalingHelper.dbg.json +1 -1
  276. package/build/artifacts/contracts/router/swap-aggregator/PendleSwap.sol/IOdosRouterV2.dbg.json +1 -1
  277. package/build/artifacts/contracts/router/swap-aggregator/PendleSwap.sol/PendleSwap.dbg.json +1 -1
  278. package/build/artifacts/contracts/router/swap-aggregator/PendleSwap.sol/PendleSwap.json +2 -2
  279. package/contracts/core/libraries/TokenHelper.sol +5 -1
  280. package/contracts/cross-chain/deposit-box/DepositBox.sol +66 -0
  281. package/contracts/cross-chain/deposit-box/DepositBoxFactory.sol +44 -0
  282. package/contracts/cross-chain/swap-hub/PendleCrossChainSwapHub.sol +90 -0
  283. package/contracts/cross-chain/swap-hub/SwapHubBase.sol +197 -0
  284. package/contracts/interfaces/IPCrossChainSwapHub.sol +116 -0
  285. package/contracts/interfaces/IPDepositBox.sol +22 -0
  286. package/contracts/interfaces/IPDepositBoxFactory.sol +19 -0
  287. package/deployments/130-core.json +2 -1
  288. package/deployments/9745-core.json +3 -2
  289. package/deployments/999-core.json +5 -5
  290. package/package.json +2 -2
  291. package/typechain-types/DepositBox.ts +260 -0
  292. package/typechain-types/DepositBoxFactory.ts +226 -0
  293. package/typechain-types/IPCrossChainSwapHub.ts +691 -0
  294. package/typechain-types/IPDepositBox.ts +213 -0
  295. package/typechain-types/IPDepositBoxFactory.ts +226 -0
  296. package/typechain-types/PendleCrossChainSwapHub.ts +946 -0
  297. package/typechain-types/SwapHubBase.ts +921 -0
  298. package/typechain-types/factories/ActionAddRemoveLiqV3__factory.ts +1 -1
  299. package/typechain-types/factories/ActionCallbackV3__factory.ts +1 -1
  300. package/typechain-types/factories/ActionCrossChain__factory.ts +1 -1
  301. package/typechain-types/factories/ActionMiscV3__factory.ts +1 -1
  302. package/typechain-types/factories/ActionSimple__factory.ts +1 -1
  303. package/typechain-types/factories/ActionSwapPTV3__factory.ts +1 -1
  304. package/typechain-types/factories/ActionSwapYTV3__factory.ts +1 -1
  305. package/typechain-types/factories/Broadcaster__factory.ts +1 -1
  306. package/typechain-types/factories/DepositBoxFactory__factory.ts +189 -0
  307. package/typechain-types/factories/DepositBox__factory.ts +222 -0
  308. package/typechain-types/factories/ExpiredLpPtRedeemer__factory.ts +1 -1
  309. package/typechain-types/factories/FixedPricePTAMM__factory.ts +1 -1
  310. package/typechain-types/factories/IPCrossChainSwapHub__factory.ts +804 -0
  311. package/typechain-types/factories/IPDepositBoxFactory__factory.ts +123 -0
  312. package/typechain-types/factories/IPDepositBox__factory.ts +136 -0
  313. package/typechain-types/factories/LimitBackendHelperV2__factory.ts +1 -1
  314. package/typechain-types/factories/MarketSweed__factory.ts +1 -1
  315. package/typechain-types/factories/PendleAPIFeeDepositor__factory.ts +1 -1
  316. package/typechain-types/factories/PendleCommonPoolDeployHelperV2__factory.ts +1 -1
  317. package/typechain-types/factories/PendleCrossChainSwapHub__factory.ts +1050 -0
  318. package/typechain-types/factories/PendleFeeDistributorV2__factory.ts +1 -1
  319. package/typechain-types/factories/PendleLPWrapperFactory__factory.ts +1 -1
  320. package/typechain-types/factories/PendleLPWrapper__factory.ts +1 -1
  321. package/typechain-types/factories/PendleLimitRouter__factory.ts +1 -1
  322. package/typechain-types/factories/PendleMarketV6__factory.ts +1 -1
  323. package/typechain-types/factories/PendleMerkleDistributor__factory.ts +1 -1
  324. package/typechain-types/factories/PendleMultiTokenMerkleDistributor__factory.ts +1 -1
  325. package/typechain-types/factories/PendlePoolDeployHelperV2__factory.ts +1 -1
  326. package/typechain-types/factories/PendlePoolDeployHelper__factory.ts +1 -1
  327. package/typechain-types/factories/PendleSwap__factory.ts +1 -1
  328. package/typechain-types/factories/PendleYieldContractFactoryUpg__factory.ts +1 -1
  329. package/typechain-types/factories/PendleYieldToken__factory.ts +1 -1
  330. package/typechain-types/factories/Reflector__factory.ts +1 -1
  331. package/typechain-types/factories/SwapHubBase__factory.ts +964 -0
  332. package/typechain-types/hardhat.d.ts +72 -36
  333. package/typechain-types/index.ts +14 -8
  334. package/typechain-types/ActionDelegateBase.ts +0 -57
  335. package/typechain-types/BasePendleBridgedPrincipalToken.ts +0 -1689
  336. package/typechain-types/EIP712.ts +0 -135
  337. package/typechain-types/ERC20Permit.ts +0 -586
  338. package/typechain-types/IERC5267.ts +0 -135
  339. package/typechain-types/IPMarketFactoryV3.ts +0 -321
  340. package/typechain-types/IPMarketV3.ts +0 -1068
  341. package/typechain-types/LimitBackendHelper.ts +0 -287
  342. package/typechain-types/OverfillMathLib.ts +0 -81
  343. package/typechain-types/PendleBridgedPrincipalToken_18Decimals.ts +0 -1689
  344. package/typechain-types/PendleBridgedPrincipalToken_6Decimals.ts +0 -1689
  345. package/typechain-types/PendleBridgedPrincipalToken_8Decimals.ts +0 -1689
  346. package/typechain-types/PendleERC20Permit.ts +0 -508
  347. package/typechain-types/PendleERC20PermitUpg.ts +0 -517
  348. package/typechain-types/PendleERC20Upg.ts +0 -348
  349. package/typechain-types/PendleMarketFactoryV3.ts +0 -719
  350. package/typechain-types/PendleMarketV3.ts +0 -1195
  351. package/typechain-types/PendleYieldContractFactory.ts +0 -801
  352. package/typechain-types/ShortStrings.ts +0 -57
  353. package/typechain-types/factories/ActionDelegateBase__factory.ts +0 -80
  354. package/typechain-types/factories/BasePendleBridgedPrincipalToken__factory.ts +0 -1548
  355. package/typechain-types/factories/EIP712__factory.ts +0 -85
  356. package/typechain-types/factories/ERC20Permit__factory.ts +0 -433
  357. package/typechain-types/factories/IERC5267__factory.ts +0 -72
  358. package/typechain-types/factories/IPMarketFactoryV3__factory.ts +0 -217
  359. package/typechain-types/factories/IPMarketV3__factory.ts +0 -845
  360. package/typechain-types/factories/LimitBackendHelper__factory.ts +0 -232
  361. package/typechain-types/factories/OverfillMathLib__factory.ts +0 -77
  362. package/typechain-types/factories/PendleBridgedPrincipalToken_18Decimals__factory.ts +0 -1652
  363. package/typechain-types/factories/PendleBridgedPrincipalToken_6Decimals__factory.ts +0 -1650
  364. package/typechain-types/factories/PendleBridgedPrincipalToken_8Decimals__factory.ts +0 -1650
  365. package/typechain-types/factories/PendleERC20PermitUpg__factory.ts +0 -389
  366. package/typechain-types/factories/PendleERC20Permit__factory.ts +0 -470
  367. package/typechain-types/factories/PendleERC20Upg__factory.ts +0 -261
  368. package/typechain-types/factories/PendleMarketFactoryV3__factory.ts +0 -714
  369. package/typechain-types/factories/PendleMarketV3__factory.ts +0 -1211
  370. package/typechain-types/factories/PendleYieldContractFactory__factory.ts +0 -674
  371. package/typechain-types/factories/ShortStrings__factory.ts +0 -77
@@ -0,0 +1,197 @@
1
+ // SPDX-License-Identifier: GPL-3.0-or-later
2
+ pragma solidity ^0.8.30;
3
+
4
+ import {SignatureChecker} from "@openzeppelin/contracts/utils/cryptography/SignatureChecker.sol";
5
+ import {EIP712Upgradeable} from "@openzeppelin/contracts-upgradeable/utils/cryptography/EIP712Upgradeable.sol";
6
+ import {BoringOwnableUpgradeableV2} from "../../core/libraries/BoringOwnableUpgradeableV2.sol";
7
+ import {TokenHelper} from "../../core/libraries/TokenHelper.sol";
8
+ import {IPCrossChainSwapHub} from "../../interfaces/IPCrossChainSwapHub.sol";
9
+ import {ApprovedCall, IPDepositBox} from "../../interfaces/IPDepositBox.sol";
10
+ import {IPDepositBoxFactory} from "../../interfaces/IPDepositBoxFactory.sol";
11
+
12
+ abstract contract SwapHubBase is IPCrossChainSwapHub, EIP712Upgradeable, BoringOwnableUpgradeableV2, TokenHelper {
13
+ // forgefmt: disable-next-item
14
+ bytes32 internal constant WITHDRAW_TOKEN_MESSAGE_TYPEHASH = keccak256(
15
+ "WithdrawTokenMessage("
16
+ "address proposer,"
17
+ "uint256 expiry,"
18
+ "uint256 requestId,"
19
+ "uint256 nonce,"
20
+ //
21
+ "address owner,"
22
+ "uint32 boxId,"
23
+ "address token,"
24
+ "uint256 amountWithdraw,"
25
+ "uint256 amountFee"
26
+ ")"
27
+ );
28
+
29
+ // forgefmt: disable-next-item
30
+ bytes32 internal constant BRIDGE_TOKEN_MESSAGE_TYPEHASH = keccak256(
31
+ "BridgeTokenMessage("
32
+ "address proposer,"
33
+ "uint256 expiry,"
34
+ "uint256 requestId,"
35
+ "uint256 nonce,"
36
+ //
37
+ "address owner,"
38
+ "uint32 boxId,"
39
+ "address token,"
40
+ "uint256 amountBridge,"
41
+ "uint256 amountFee,"
42
+ //
43
+ "address bridgeExtRouter,"
44
+ "address bridgeApprove,"
45
+ "bytes bridgeCalldata"
46
+ ")"
47
+ );
48
+
49
+ // forgefmt: disable-next-item
50
+ bytes32 internal constant SWAP_TOKEN_MESSAGE_TYPEHASH = keccak256(
51
+ "SwapTokenMessage("
52
+ "address proposer,"
53
+ "uint256 expiry,"
54
+ "uint256 requestId,"
55
+ "uint256 nonce,"
56
+ //
57
+ "address owner,"
58
+ "uint32 boxId,"
59
+ "address tokenSpent,"
60
+ "uint256 amountSpent,"
61
+ "address tokenReceived,"
62
+ "uint256 minReceived,"
63
+ //
64
+ "address swapExtRouter,"
65
+ "address swapApprove,"
66
+ "bytes swapCalldata"
67
+ ")"
68
+ );
69
+
70
+ address public immutable TREASURY;
71
+ IPDepositBoxFactory public immutable DEPOSIT_BOX_FACTORY;
72
+
73
+ mapping(address executor => bool) public isExecutor;
74
+ mapping(address proposer => bool) public isProposer;
75
+ mapping(uint256 requestId => uint256 nonce) public requestNonce;
76
+
77
+ constructor(address treasury_, address depositBoxFactory_) {
78
+ TREASURY = treasury_;
79
+ DEPOSIT_BOX_FACTORY = IPDepositBoxFactory(depositBoxFactory_);
80
+ }
81
+
82
+ modifier onlyExecutor() {
83
+ require(isExecutor[msg.sender], "SwapHub: caller is not executor");
84
+ _;
85
+ }
86
+
87
+ function setExecutor(address executor, bool isExecutor_) external onlyOwner {
88
+ isExecutor[executor] = isExecutor_;
89
+ emit SetExecutor(executor, isExecutor_);
90
+ }
91
+
92
+ function setProposer(address proposer, bool isProposer_) external onlyOwner {
93
+ isProposer[proposer] = isProposer_;
94
+ emit SetProposer(proposer, isProposer_);
95
+ }
96
+
97
+ function hashTypedData(WithdrawTokenMessage memory ms) public view returns (bytes32) {
98
+ return _hashTypedDataV4(
99
+ keccak256(
100
+ abi.encode(
101
+ WITHDRAW_TOKEN_MESSAGE_TYPEHASH,
102
+ ms.proposer,
103
+ ms.expiry,
104
+ ms.requestId,
105
+ ms.nonce,
106
+ //
107
+ ms.owner,
108
+ ms.boxId,
109
+ ms.token,
110
+ ms.amountWithdraw,
111
+ ms.amountFee
112
+ )
113
+ )
114
+ );
115
+ }
116
+
117
+ function hashTypedData(BridgeTokenMessage memory ms) public view returns (bytes32) {
118
+ return _hashTypedDataV4(
119
+ keccak256(
120
+ abi.encode(
121
+ BRIDGE_TOKEN_MESSAGE_TYPEHASH,
122
+ ms.proposer,
123
+ ms.expiry,
124
+ ms.requestId,
125
+ ms.nonce,
126
+ //
127
+ ms.owner,
128
+ ms.boxId,
129
+ ms.token,
130
+ ms.amountBridge,
131
+ ms.amountFee,
132
+ //
133
+ ms.bridgeExtRouter,
134
+ ms.bridgeApprove,
135
+ keccak256(ms.bridgeCalldata)
136
+ )
137
+ )
138
+ );
139
+ }
140
+
141
+ function hashTypedData(SwapTokenMessage memory ms) public view returns (bytes32) {
142
+ return _hashTypedDataV4(
143
+ keccak256(
144
+ abi.encode(
145
+ SWAP_TOKEN_MESSAGE_TYPEHASH,
146
+ ms.proposer,
147
+ ms.expiry,
148
+ ms.requestId,
149
+ ms.nonce,
150
+ //
151
+ ms.owner,
152
+ ms.boxId,
153
+ ms.tokenSpent,
154
+ ms.amountSpent,
155
+ ms.tokenReceived,
156
+ ms.minReceived,
157
+ //
158
+ ms.swapExtRouter,
159
+ ms.swapApprove,
160
+ keccak256(ms.swapCalldata)
161
+ )
162
+ )
163
+ );
164
+ }
165
+
166
+ function _verifyProposerSig(
167
+ address proposer,
168
+ uint256 expiry,
169
+ uint256 requestId,
170
+ uint256 nonce,
171
+ bytes32 messageHash,
172
+ bytes memory signature
173
+ ) internal {
174
+ require(SignatureChecker.isValidSignatureNow(proposer, messageHash, signature), InvalidSignature());
175
+ require(expiry > block.timestamp, MessageExpired());
176
+ require(requestNonce[requestId] + 1 == nonce, InvalidNonce());
177
+ requestNonce[requestId] = nonce;
178
+ }
179
+
180
+ function _swapFromBox(
181
+ IPDepositBox box,
182
+ address tokenSpent,
183
+ uint256 amountSpent,
184
+ address tokenReceived,
185
+ address swapExtRouter,
186
+ address swapApprove,
187
+ bytes memory swapCalldata
188
+ ) internal returns (uint256 rawTokenReceived) {
189
+ ApprovedCall memory call = ApprovedCall({
190
+ token: tokenSpent, amount: amountSpent, approveTo: swapApprove, callTo: swapExtRouter, data: swapCalldata
191
+ });
192
+
193
+ uint256 preBalance = _balanceOf(address(box), tokenReceived);
194
+ box.approveAndCall(call, address(box));
195
+ rawTokenReceived = _balanceOf(address(box), tokenReceived) - preBalance;
196
+ }
197
+ }
@@ -0,0 +1,116 @@
1
+ // SPDX-License-Identifier: MIT
2
+ pragma solidity ^0.8.0;
3
+
4
+ interface IPCrossChainSwapHub {
5
+ error InsufficientTokenReceived();
6
+ error InvalidNonce();
7
+ error InvalidSignature();
8
+ error InvalidReceiver();
9
+ error MessageExpired();
10
+
11
+ struct WithdrawTokenMessage {
12
+ address proposer;
13
+ uint256 expiry;
14
+ uint256 requestId;
15
+ uint256 nonce;
16
+ //
17
+ address owner;
18
+ uint32 boxId;
19
+ address token;
20
+ uint256 amountWithdraw;
21
+ uint256 amountFee;
22
+ }
23
+
24
+ struct BridgeTokenMessage {
25
+ address proposer;
26
+ uint256 expiry;
27
+ uint256 requestId;
28
+ uint256 nonce;
29
+ //
30
+ address owner;
31
+ uint32 boxId;
32
+ address token;
33
+ uint256 amountBridge;
34
+ uint256 amountFee;
35
+ //
36
+ address bridgeExtRouter;
37
+ address bridgeApprove;
38
+ bytes bridgeCalldata;
39
+ }
40
+
41
+ struct SwapTokenMessage {
42
+ address proposer;
43
+ uint256 expiry;
44
+ uint256 requestId;
45
+ uint256 nonce;
46
+ //
47
+ address owner;
48
+ uint32 boxId;
49
+ address tokenSpent;
50
+ uint256 amountSpent;
51
+ address tokenReceived;
52
+ uint256 minReceived;
53
+ //
54
+ address swapExtRouter;
55
+ address swapApprove;
56
+ bytes swapCalldata;
57
+ }
58
+
59
+ event WithdrawToken(
60
+ uint256 requestId,
61
+ uint256 nonce,
62
+ address owner,
63
+ uint32 boxId,
64
+ address token,
65
+ uint256 amountWithdraw,
66
+ uint256 amountFee
67
+ );
68
+
69
+ event BridgeToken(
70
+ uint256 requestId,
71
+ uint256 nonce,
72
+ address owner,
73
+ uint32 boxId,
74
+ address bridgeExtRouter,
75
+ address token,
76
+ uint256 amountBridge,
77
+ uint256 amountFee
78
+ );
79
+
80
+ event SwapToken(
81
+ uint256 requestId,
82
+ uint256 nonce,
83
+ address owner,
84
+ uint32 boxId,
85
+ address tokenSpent,
86
+ uint256 amountSpent,
87
+ address tokenReceived,
88
+ uint256 netTokenReceived
89
+ );
90
+
91
+ event SetExecutor(address indexed executor, bool isExecutor);
92
+
93
+ event SetProposer(address indexed proposer, bool isProposer);
94
+
95
+ function isExecutor(address executor) external view returns (bool);
96
+
97
+ function isProposer(address proposer) external view returns (bool);
98
+
99
+ function requestNonce(uint256 requestId) external view returns (uint256);
100
+
101
+ function hashTypedData(WithdrawTokenMessage memory message) external view returns (bytes32);
102
+
103
+ function hashTypedData(BridgeTokenMessage memory message) external view returns (bytes32);
104
+
105
+ function hashTypedData(SwapTokenMessage memory message) external view returns (bytes32);
106
+
107
+ function withdrawToken(WithdrawTokenMessage memory message, bytes memory signature) external;
108
+
109
+ function bridgeToken(BridgeTokenMessage memory message, bytes memory signature) external payable;
110
+
111
+ function swapToken(SwapTokenMessage memory message, bytes memory signature) external;
112
+
113
+ function setExecutor(address executor, bool isExecutor) external;
114
+
115
+ function setProposer(address proposer, bool isProposer) external;
116
+ }
@@ -0,0 +1,22 @@
1
+ // SPDX-License-Identifier: MIT
2
+ pragma solidity ^0.8.0;
3
+
4
+ struct ApprovedCall {
5
+ address token;
6
+ uint256 amount;
7
+ address approveTo;
8
+ address callTo;
9
+ bytes data;
10
+ }
11
+
12
+ interface IPDepositBox {
13
+ function MANAGER() external view returns (address);
14
+
15
+ function OWNER() external view returns (address);
16
+
17
+ function BOX_ID() external view returns (uint32);
18
+
19
+ function withdrawTo(address to, address token, uint256 amount) external;
20
+
21
+ function approveAndCall(ApprovedCall memory call, address nativeRefund) external payable returns (bytes memory);
22
+ }
@@ -0,0 +1,19 @@
1
+ // SPDX-License-Identifier: MIT
2
+ pragma solidity ^0.8.0;
3
+
4
+ import {IPDepositBox} from "./IPDepositBox.sol";
5
+
6
+ interface IPDepositBoxFactory {
7
+ function computeDepositBox(address owner, uint32 boxId)
8
+ external
9
+ view
10
+ returns (address box, bytes32 salt, bool deployed);
11
+
12
+ function deployDepositBox(address owner, uint32 boxId) external returns (IPDepositBox box);
13
+
14
+ function BEACON_PROXY_CODE_CONTRACT() external view returns (address);
15
+
16
+ function DEPOSIT_BOX_BEACON() external view returns (address);
17
+
18
+ function DEPOSIT_BOX_CODE_HASH() external view returns (bytes32);
19
+ }
@@ -2,7 +2,8 @@
2
2
  "deployer": "0x1FcCC097db89A86Bfc474A1028F93958295b1Fb7",
3
3
  "network": {
4
4
  "chainId": 130,
5
- "wrappedNative": "0x4200000000000000000000000000000000000006"
5
+ "wrappedNative": "0x4200000000000000000000000000000000000006",
6
+ "governance": "0x7877AdFaDEd756f3248a0EBfe8Ac2E2eF87b75Ac"
6
7
  },
7
8
  "router": "0x888888888889758F76e7103c6CbF23ABbF58F946",
8
9
  "routerFacets": {
@@ -55,7 +55,8 @@
55
55
  "decimalsFactory": "0x992EC6A490A4B7f256bd59E63746951D98B29Be9",
56
56
  "lpLinearDiscountOracleFactory": "0x44fb16d078e9c39b65d6c15e78ede9736a9f2df5",
57
57
  "cross-chain": {
58
- "exchangeRateOracle": "0xA914c44E960cC95D996969BDf0ab5D6f4f2B5870"
58
+ "exchangeRateOracle": "0xA914c44E960cC95D996969BDf0ab5D6f4f2B5870",
59
+ "ptOftAdapterFactory": "0x41FAD93F225b5C1C95f2445A5d7fcB85bA46713f"
59
60
  },
60
61
  "merkleDistributor": "0x3dAe3d1734cA3C7B3089D4DD03C9876e0A0102b4"
61
- }
62
+ }
@@ -2,9 +2,9 @@
2
2
  "deployer": "0x1FcCC097db89A86Bfc474A1028F93958295b1Fb7",
3
3
  "network": {
4
4
  "chainId": 999,
5
- "treasury": "0x17A191644E750AA24a5ec13A253b9446f4eF178b",
6
- "governance": "0x34Ac848b6eC31BE87f99ddf7ED15Fa5662E7430a",
7
- "devMultisig": "0x2e7542c7BB887269474995fa8b9cB7F7e6fAC895",
5
+ "treasury": "0xCbcb48e22622a3778b6F14C2f5d258Ba026b05e6",
6
+ "governance": "0x7877AdFaDEd756f3248a0EBfe8Ac2E2eF87b75Ac",
7
+ "devMultisig": "0xE6F0489ED91dc27f40f9dbe8f81fccbFC16b9cb1",
8
8
  "pendle": "0xD6Eb81136884713E843936843E286FD2a85A205A",
9
9
  "lzEndpoint": "0x2D61DCDD36F10b22176E0433B86F74567d529aAa",
10
10
  "wrappedNative": "0x5555555555555555555555555555555555555555",
@@ -49,7 +49,7 @@
49
49
  "vePendle": "0x1fBaCedf510dAA79dfD9B41227A7ba192d5D548D",
50
50
  "receiverEndpoint": "0xaD511b12F73c145Cf158EB92E4fa256937d952A4",
51
51
  "gaugeController": "0x7e500c6efbb00fd3227888256e477171a1304721",
52
- "vePendleAirdropDistributor": "0x42c706eab26aA8FAcFa4B3f32902bA872AaA10aC",
52
+ "vePendleAirdropDistributor": "0x3942F7B55094250644cFfDa7160226Caa349A38E",
53
53
  "externalRewardsDistributor": "0x1Cb446fAE25Ae19878f9f71189902e2a6A6A749c",
54
54
  "lpWrapperFactory": "0xcb645C93820B92E5F21781C5c3c18C29BCb6126B",
55
55
  "decimalsFactory": "0xF2a26C2eb3c4098e03807442196FbA7f78b125a2",
@@ -59,4 +59,4 @@
59
59
  "exchangeRateOracle": "0xA914c44E960cC95D996969BDf0ab5D6f4f2B5870"
60
60
  },
61
61
  "merkleDepositor": "0x3dAe3d1734cA3C7B3089D4DD03C9876e0A0102b4"
62
- }
62
+ }
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@pendle/core-v2",
3
3
  "description": "Core smart contracts of Pendle Protocol.",
4
4
  "license": "BUSL-1.1",
5
- "version": "6.4.1",
5
+ "version": "6.4.2-swaphubtest2",
6
6
  "homepage": "https://pendle.finance",
7
7
  "keywords": [
8
8
  "pendle",
@@ -55,4 +55,4 @@
55
55
  "publishConfig": {
56
56
  "access": "public"
57
57
  }
58
- }
58
+ }
@@ -0,0 +1,260 @@
1
+ /* Autogenerated file. Do not edit manually. */
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ import {
5
+ BaseContract,
6
+ BigNumber,
7
+ BigNumberish,
8
+ BytesLike,
9
+ CallOverrides,
10
+ ContractTransaction,
11
+ Overrides,
12
+ PayableOverrides,
13
+ PopulatedTransaction,
14
+ Signer,
15
+ utils,
16
+ } from "ethers";
17
+ import { FunctionFragment, Result, EventFragment } from "@ethersproject/abi";
18
+ import { Listener, Provider } from "@ethersproject/providers";
19
+ import type {
20
+ TypedEventFilter,
21
+ TypedEvent,
22
+ TypedListener,
23
+ OnEvent,
24
+ } from "./common";
25
+
26
+ export type ApprovedCallStruct = {
27
+ token: string;
28
+ amount: BigNumberish;
29
+ approveTo: string;
30
+ callTo: string;
31
+ data: BytesLike;
32
+ };
33
+
34
+ export type ApprovedCallStructOutput = [
35
+ string,
36
+ BigNumber,
37
+ string,
38
+ string,
39
+ string
40
+ ] & {
41
+ token: string;
42
+ amount: BigNumber;
43
+ approveTo: string;
44
+ callTo: string;
45
+ data: string;
46
+ };
47
+
48
+ export interface DepositBoxInterface extends utils.Interface {
49
+ contractName: "DepositBox";
50
+ functions: {
51
+ "BOX_ID()": FunctionFragment;
52
+ "MANAGER()": FunctionFragment;
53
+ "OWNER()": FunctionFragment;
54
+ "approveAndCall((address,uint256,address,address,bytes),address)": FunctionFragment;
55
+ "initialize(address,uint32)": FunctionFragment;
56
+ "withdrawTo(address,address,uint256)": FunctionFragment;
57
+ };
58
+
59
+ encodeFunctionData(functionFragment: "BOX_ID", values?: undefined): string;
60
+ encodeFunctionData(functionFragment: "MANAGER", values?: undefined): string;
61
+ encodeFunctionData(functionFragment: "OWNER", values?: undefined): string;
62
+ encodeFunctionData(
63
+ functionFragment: "approveAndCall",
64
+ values: [ApprovedCallStruct, string]
65
+ ): string;
66
+ encodeFunctionData(
67
+ functionFragment: "initialize",
68
+ values: [string, BigNumberish]
69
+ ): string;
70
+ encodeFunctionData(
71
+ functionFragment: "withdrawTo",
72
+ values: [string, string, BigNumberish]
73
+ ): string;
74
+
75
+ decodeFunctionResult(functionFragment: "BOX_ID", data: BytesLike): Result;
76
+ decodeFunctionResult(functionFragment: "MANAGER", data: BytesLike): Result;
77
+ decodeFunctionResult(functionFragment: "OWNER", data: BytesLike): Result;
78
+ decodeFunctionResult(
79
+ functionFragment: "approveAndCall",
80
+ data: BytesLike
81
+ ): Result;
82
+ decodeFunctionResult(functionFragment: "initialize", data: BytesLike): Result;
83
+ decodeFunctionResult(functionFragment: "withdrawTo", data: BytesLike): Result;
84
+
85
+ events: {
86
+ "Initialized(uint8)": EventFragment;
87
+ };
88
+
89
+ getEvent(nameOrSignatureOrTopic: "Initialized"): EventFragment;
90
+ }
91
+
92
+ export type InitializedEvent = TypedEvent<[number], { version: number }>;
93
+
94
+ export type InitializedEventFilter = TypedEventFilter<InitializedEvent>;
95
+
96
+ export interface DepositBox extends BaseContract {
97
+ contractName: "DepositBox";
98
+ connect(signerOrProvider: Signer | Provider | string): this;
99
+ attach(addressOrName: string): this;
100
+ deployed(): Promise<this>;
101
+
102
+ interface: DepositBoxInterface;
103
+
104
+ queryFilter<TEvent extends TypedEvent>(
105
+ event: TypedEventFilter<TEvent>,
106
+ fromBlockOrBlockhash?: string | number | undefined,
107
+ toBlock?: string | number | undefined
108
+ ): Promise<Array<TEvent>>;
109
+
110
+ listeners<TEvent extends TypedEvent>(
111
+ eventFilter?: TypedEventFilter<TEvent>
112
+ ): Array<TypedListener<TEvent>>;
113
+ listeners(eventName?: string): Array<Listener>;
114
+ removeAllListeners<TEvent extends TypedEvent>(
115
+ eventFilter: TypedEventFilter<TEvent>
116
+ ): this;
117
+ removeAllListeners(eventName?: string): this;
118
+ off: OnEvent<this>;
119
+ on: OnEvent<this>;
120
+ once: OnEvent<this>;
121
+ removeListener: OnEvent<this>;
122
+
123
+ functions: {
124
+ BOX_ID(overrides?: CallOverrides): Promise<[number]>;
125
+
126
+ MANAGER(overrides?: CallOverrides): Promise<[string]>;
127
+
128
+ OWNER(overrides?: CallOverrides): Promise<[string]>;
129
+
130
+ approveAndCall(
131
+ call: ApprovedCallStruct,
132
+ nativeRefund: string,
133
+ overrides?: PayableOverrides & { from?: string | Promise<string> }
134
+ ): Promise<ContractTransaction>;
135
+
136
+ initialize(
137
+ owner_: string,
138
+ boxId_: BigNumberish,
139
+ overrides?: Overrides & { from?: string | Promise<string> }
140
+ ): Promise<ContractTransaction>;
141
+
142
+ withdrawTo(
143
+ to: string,
144
+ token: string,
145
+ amount: BigNumberish,
146
+ overrides?: Overrides & { from?: string | Promise<string> }
147
+ ): Promise<ContractTransaction>;
148
+ };
149
+
150
+ BOX_ID(overrides?: CallOverrides): Promise<number>;
151
+
152
+ MANAGER(overrides?: CallOverrides): Promise<string>;
153
+
154
+ OWNER(overrides?: CallOverrides): Promise<string>;
155
+
156
+ approveAndCall(
157
+ call: ApprovedCallStruct,
158
+ nativeRefund: string,
159
+ overrides?: PayableOverrides & { from?: string | Promise<string> }
160
+ ): Promise<ContractTransaction>;
161
+
162
+ initialize(
163
+ owner_: string,
164
+ boxId_: BigNumberish,
165
+ overrides?: Overrides & { from?: string | Promise<string> }
166
+ ): Promise<ContractTransaction>;
167
+
168
+ withdrawTo(
169
+ to: string,
170
+ token: string,
171
+ amount: BigNumberish,
172
+ overrides?: Overrides & { from?: string | Promise<string> }
173
+ ): Promise<ContractTransaction>;
174
+
175
+ callStatic: {
176
+ BOX_ID(overrides?: CallOverrides): Promise<number>;
177
+
178
+ MANAGER(overrides?: CallOverrides): Promise<string>;
179
+
180
+ OWNER(overrides?: CallOverrides): Promise<string>;
181
+
182
+ approveAndCall(
183
+ call: ApprovedCallStruct,
184
+ nativeRefund: string,
185
+ overrides?: CallOverrides
186
+ ): Promise<string>;
187
+
188
+ initialize(
189
+ owner_: string,
190
+ boxId_: BigNumberish,
191
+ overrides?: CallOverrides
192
+ ): Promise<void>;
193
+
194
+ withdrawTo(
195
+ to: string,
196
+ token: string,
197
+ amount: BigNumberish,
198
+ overrides?: CallOverrides
199
+ ): Promise<void>;
200
+ };
201
+
202
+ filters: {
203
+ "Initialized(uint8)"(version?: null): InitializedEventFilter;
204
+ Initialized(version?: null): InitializedEventFilter;
205
+ };
206
+
207
+ estimateGas: {
208
+ BOX_ID(overrides?: CallOverrides): Promise<BigNumber>;
209
+
210
+ MANAGER(overrides?: CallOverrides): Promise<BigNumber>;
211
+
212
+ OWNER(overrides?: CallOverrides): Promise<BigNumber>;
213
+
214
+ approveAndCall(
215
+ call: ApprovedCallStruct,
216
+ nativeRefund: string,
217
+ overrides?: PayableOverrides & { from?: string | Promise<string> }
218
+ ): Promise<BigNumber>;
219
+
220
+ initialize(
221
+ owner_: string,
222
+ boxId_: BigNumberish,
223
+ overrides?: Overrides & { from?: string | Promise<string> }
224
+ ): Promise<BigNumber>;
225
+
226
+ withdrawTo(
227
+ to: string,
228
+ token: string,
229
+ amount: BigNumberish,
230
+ overrides?: Overrides & { from?: string | Promise<string> }
231
+ ): Promise<BigNumber>;
232
+ };
233
+
234
+ populateTransaction: {
235
+ BOX_ID(overrides?: CallOverrides): Promise<PopulatedTransaction>;
236
+
237
+ MANAGER(overrides?: CallOverrides): Promise<PopulatedTransaction>;
238
+
239
+ OWNER(overrides?: CallOverrides): Promise<PopulatedTransaction>;
240
+
241
+ approveAndCall(
242
+ call: ApprovedCallStruct,
243
+ nativeRefund: string,
244
+ overrides?: PayableOverrides & { from?: string | Promise<string> }
245
+ ): Promise<PopulatedTransaction>;
246
+
247
+ initialize(
248
+ owner_: string,
249
+ boxId_: BigNumberish,
250
+ overrides?: Overrides & { from?: string | Promise<string> }
251
+ ): Promise<PopulatedTransaction>;
252
+
253
+ withdrawTo(
254
+ to: string,
255
+ token: string,
256
+ amount: BigNumberish,
257
+ overrides?: Overrides & { from?: string | Promise<string> }
258
+ ): Promise<PopulatedTransaction>;
259
+ };
260
+ }