@pendle/core-v2 6.4.4-swaphubtest → 6.5.0-swaphubtest
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.
- package/build/artifacts/contracts/LiquidityMining/CrossChainMsg/PendleMsgReceiveEndpointUpg.sol/PendleMsgReceiveEndpointUpg.dbg.json +1 -1
- package/build/artifacts/contracts/LiquidityMining/CrossChainMsg/PendleMsgReceiveEndpointUpg.sol/PendleMsgReceiveEndpointUpg.json +2 -2
- package/build/artifacts/contracts/LiquidityMining/CrossChainMsg/PendleMsgReceiverAppUpg.sol/PendleMsgReceiverAppUpg.dbg.json +1 -1
- package/build/artifacts/contracts/LiquidityMining/CrossChainMsg/PendleMsgSendEndpointUpg.sol/PendleMsgSendEndpointUpg.dbg.json +1 -1
- package/build/artifacts/contracts/LiquidityMining/CrossChainMsg/PendleMsgSendEndpointUpg.sol/PendleMsgSendEndpointUpg.json +2 -2
- package/build/artifacts/contracts/LiquidityMining/CrossChainMsg/PendleMsgSenderAppUpg.sol/PendleMsgSenderAppUpg.dbg.json +1 -1
- package/build/artifacts/contracts/LiquidityMining/CrossChainMsg/libraries/ExcessivelySafeCall.sol/ExcessivelySafeCall.dbg.json +1 -1
- package/build/artifacts/contracts/LiquidityMining/CrossChainMsg/libraries/LayerZeroHelper.sol/LayerZeroHelper.dbg.json +1 -1
- package/build/artifacts/contracts/LiquidityMining/GaugeController/PendleGaugeControllerUpg.sol/PendleGaugeControllerUpg.dbg.json +4 -0
- package/build/artifacts/contracts/LiquidityMining/GaugeController/PendleGaugeControllerUpg.sol/PendleGaugeControllerUpg.json +457 -0
- package/build/artifacts/contracts/LiquidityMining/PendleMerkleDistributor.sol/PendleMerkleDistributor.dbg.json +1 -1
- package/build/artifacts/contracts/LiquidityMining/PendleMerkleDistributor.sol/PendleMerkleDistributor.json +2 -2
- package/build/artifacts/contracts/LiquidityMining/PendleMultiTokenMerkleDistributor.sol/PendleMultiTokenMerkleDistributor.dbg.json +1 -1
- package/build/artifacts/contracts/LiquidityMining/PendleMultiTokenMerkleDistributor.sol/PendleMultiTokenMerkleDistributor.json +2 -2
- package/build/artifacts/contracts/LiquidityMining/VotingEscrow/VotingEscrowPendleMainchain.sol/VotingEscrowPendleMainchain.dbg.json +1 -1
- package/build/artifacts/contracts/LiquidityMining/VotingEscrow/VotingEscrowPendleMainchain.sol/VotingEscrowPendleMainchain.json +2 -2
- package/build/artifacts/contracts/LiquidityMining/VotingEscrow/VotingEscrowPendleSidechain.sol/VotingEscrowPendleSidechain.dbg.json +1 -1
- package/build/artifacts/contracts/LiquidityMining/VotingEscrow/VotingEscrowPendleSidechain.sol/VotingEscrowPendleSidechain.json +2 -2
- package/build/artifacts/contracts/LiquidityMining/VotingEscrow/VotingEscrowTokenBase.sol/VotingEscrowTokenBase.dbg.json +1 -1
- package/build/artifacts/contracts/LiquidityMining/libraries/VeBalanceLib.sol/VeBalanceLib.dbg.json +1 -1
- package/build/artifacts/contracts/LiquidityMining/libraries/VeBalanceLib.sol/VeBalanceLib.json +2 -2
- package/build/artifacts/contracts/LiquidityMining/libraries/VeHistoryLib.sol/CheckpointHelper.dbg.json +1 -1
- package/build/artifacts/contracts/LiquidityMining/libraries/VeHistoryLib.sol/CheckpointHelper.json +2 -2
- package/build/artifacts/contracts/LiquidityMining/libraries/VeHistoryLib.sol/Checkpoints.dbg.json +1 -1
- package/build/artifacts/contracts/LiquidityMining/libraries/VeHistoryLib.sol/Checkpoints.json +2 -2
- package/build/artifacts/contracts/LiquidityMining/libraries/WeekMath.sol/WeekMath.dbg.json +1 -1
- package/build/artifacts/contracts/LiquidityMining/sPendle/StakedPendle.sol/StakedPendle.dbg.json +4 -0
- package/build/artifacts/contracts/LiquidityMining/sPendle/StakedPendle.sol/StakedPendle.json +733 -0
- package/build/artifacts/contracts/core/Market/MarketMathCore.sol/MarketMathCore.dbg.json +1 -1
- package/build/artifacts/contracts/core/Market/MarketMathCore.sol/MarketMathCore.json +2 -2
- package/build/artifacts/contracts/core/Market/OracleLib.sol/OracleLib.dbg.json +1 -1
- package/build/artifacts/contracts/core/Market/OracleLib.sol/OracleLib.json +2 -2
- package/build/artifacts/contracts/core/Market/PendleGauge.sol/PendleGauge.dbg.json +1 -1
- package/build/artifacts/contracts/core/Market/PendleGauge.sol/PendleGauge.json +0 -51
- package/build/artifacts/contracts/core/Market/PendleMarketFactoryV7Upg.sol/PendleMarketFactoryV7Upg.dbg.json +4 -0
- package/build/artifacts/contracts/core/Market/PendleMarketFactoryV7Upg.sol/PendleMarketFactoryV7Upg.json +618 -0
- package/build/artifacts/contracts/core/Market/PendleMarketV7.sol/PendleMarketV7.dbg.json +4 -0
- package/build/artifacts/contracts/core/Market/PendleMarketV7.sol/PendleMarketV7.json +1157 -0
- package/build/artifacts/contracts/core/RewardManager/RewardManager.sol/RewardManager.dbg.json +1 -1
- package/build/artifacts/contracts/core/RewardManager/RewardManagerAbstract.sol/RewardManagerAbstract.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/PYIndex.sol/PYIndexLib.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/PYIndex.sol/PYIndexLib.json +2 -2
- package/build/artifacts/contracts/core/StandardizedYield/SYUtils.sol/SYUtils.dbg.json +1 -1
- package/build/artifacts/contracts/core/YieldContracts/InterestManagerYT.sol/InterestManagerYT.dbg.json +1 -1
- package/build/artifacts/contracts/core/YieldContracts/PendlePrincipalToken.sol/PendlePrincipalToken.dbg.json +1 -1
- package/build/artifacts/contracts/core/YieldContracts/PendlePrincipalToken.sol/PendlePrincipalToken.json +2 -2
- package/build/artifacts/contracts/core/YieldContracts/PendleYieldContractFactoryUpg.sol/PendleYieldContractFactoryUpg.dbg.json +1 -1
- package/build/artifacts/contracts/core/YieldContracts/PendleYieldContractFactoryUpg.sol/PendleYieldContractFactoryUpg.json +2 -2
- package/build/artifacts/contracts/core/YieldContracts/PendleYieldToken.sol/PendleYieldToken.dbg.json +1 -1
- package/build/artifacts/contracts/core/YieldContracts/PendleYieldToken.sol/PendleYieldToken.json +2 -2
- package/build/artifacts/contracts/core/erc20/PendleERC20.sol/PendleERC20.dbg.json +1 -1
- package/build/artifacts/contracts/core/libraries/ArrayLib.sol/ArrayLib.dbg.json +1 -1
- package/build/artifacts/contracts/core/libraries/BaseSplitCodeFactory.sol/BaseSplitCodeFactory.dbg.json +1 -1
- package/build/artifacts/contracts/core/libraries/BaseSplitCodeFactory.sol/CodeDeployer.dbg.json +1 -1
- package/build/artifacts/contracts/core/libraries/BoringOwnableUpgradeableV2.sol/BoringOwnableUpgradeableData.dbg.json +1 -1
- package/build/artifacts/contracts/core/libraries/BoringOwnableUpgradeableV2.sol/BoringOwnableUpgradeableV2.dbg.json +1 -1
- package/build/artifacts/contracts/core/libraries/Errors.sol/Errors.dbg.json +1 -1
- package/build/artifacts/contracts/core/libraries/Errors.sol/Errors.json +3 -3
- package/build/artifacts/contracts/core/libraries/ExpiryUtilsLib.sol/ExpiryUtils.dbg.json +1 -1
- package/build/artifacts/contracts/core/libraries/MiniHelpers.sol/MiniHelpers.dbg.json +1 -1
- package/build/artifacts/contracts/core/libraries/StringLib.sol/StringLib.dbg.json +1 -1
- package/build/artifacts/contracts/core/libraries/TokenHelper.sol/TokenHelper.dbg.json +1 -1
- package/build/artifacts/contracts/core/libraries/math/LogExpMath.sol/LogExpMath.dbg.json +1 -1
- package/build/artifacts/contracts/core/libraries/math/PMath.sol/PMath.dbg.json +1 -1
- package/build/artifacts/contracts/core/libraries/math/PMath.sol/PMath.json +2 -2
- package/build/artifacts/contracts/cross-chain/FixedPricePTAMM.sol/FixedPricePTAMM.dbg.json +1 -1
- package/build/artifacts/contracts/cross-chain/FixedPricePTAMM.sol/FixedPricePTAMM.json +2 -2
- package/build/artifacts/contracts/cross-chain/deposit-box/DepositBox.sol/DepositBox.dbg.json +4 -0
- package/build/artifacts/contracts/cross-chain/deposit-box/DepositBox.sol/DepositBox.json +170 -0
- package/build/artifacts/contracts/cross-chain/deposit-box/DepositBoxFactory.sol/DepositBoxFactory.dbg.json +4 -0
- package/build/artifacts/contracts/cross-chain/deposit-box/DepositBoxFactory.sol/DepositBoxFactory.json +124 -0
- package/build/artifacts/contracts/cross-chain/factory/hub/PendlePTOFTAdapterFactory.sol/PendlePTOFTAdapterFactory.dbg.json +1 -1
- package/build/artifacts/contracts/cross-chain/oftImpl/hub/OFTAdapterImpl.sol/OFTAdapterImpl.dbg.json +1 -1
- package/build/artifacts/contracts/cross-chain/oftImpl/spoke/PendleBridgedPrincipalToken.sol/PendleBridgedPrincipalToken.dbg.json +1 -1
- package/build/artifacts/contracts/cross-chain/swap-hub/PendleCrossChainSwapHub.sol/PendleCrossChainSwapHub.dbg.json +1 -1
- package/build/artifacts/contracts/cross-chain/swap-hub/PendleCrossChainSwapHub.sol/PendleCrossChainSwapHub.json +302 -511
- package/build/artifacts/contracts/cross-chain/swap-hub/SwapHubBase.sol/SwapHubBase.dbg.json +1 -1
- package/build/artifacts/contracts/cross-chain/swap-hub/SwapHubBase.sol/SwapHubBase.json +301 -501
- package/build/artifacts/contracts/deprecated/VeDistributor/PendleFeeDistributorV2.sol/PendleFeeDistributorV2.dbg.json +1 -1
- package/build/artifacts/contracts/deprecated/VeDistributor/PendleFeeDistributorV2.sol/PendleFeeDistributorV2.json +2 -2
- package/build/artifacts/contracts/interfaces/IAddressProvider.sol/IAddressProvider.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/ILPWrapper.sol/ILPWrapper.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/ILayerZeroEndpoint.sol/ILayerZeroEndpoint.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/ILayerZeroReceiver.sol/ILayerZeroReceiver.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IMarketSweed.sol/IMarketSweed.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IOwnable.sol/IOwnable.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPActionAddRemoveLiqV3.sol/IPActionAddRemoveLiqV3.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPActionCallbackV3.sol/IPActionCallbackV3.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPActionCrossChain.sol/IPActionCrossChain.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPActionInfoStatic.sol/IPActionInfoStatic.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPActionMarketAuxStatic.sol/IPActionMarketAuxStatic.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPActionMarketCoreStatic.sol/IPActionMarketCoreStatic.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPActionMintRedeemStatic.sol/IPActionMintRedeemStatic.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPActionMiscV3.sol/IPActionMiscV3.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPActionSimple.sol/IPActionSimple.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPActionStorageStatic.sol/IPActionStorageStatic.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPActionStorageV4.sol/IPActionStorageV4.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPActionSwapPTV3.sol/IPActionSwapPTV3.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPActionSwapYTV3.sol/IPActionSwapYTV3.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPActionVePendleStatic.sol/IPActionVePendleStatic.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPAllActionV3.sol/IPAllActionV3.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPAllEventsV3.sol/IPActionAddRemoveLiqV3Events.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPAllEventsV3.sol/IPActionMiscV3Events.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPAllEventsV3.sol/IPActionStorageEvents.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPAllEventsV3.sol/IPActionSwapPTV3Events.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPAllEventsV3.sol/IPActionSwapYTV3Events.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPAllEventsV3.sol/IPAllEventsV3.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPBridgedPrincipalToken.sol/IPBridgedPrincipalToken.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPChainlinkOracle.sol/IPChainlinkOracle.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPChainlinkOracleEssential.sol/IPChainlinkOracleEssential.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPChainlinkOracleFactory.sol/IPChainlinkOracleFactory.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPChainlinkOracleWithQuote.sol/IPChainlinkOracleWithQuote.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPCommonPoolDeployHelperV2.sol/IPCommonPoolDeployHelperV2.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPCommonSYFactory.sol/IPCommonSYFactory.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPCrossChainSwapHub.sol/IPCrossChainSwapHub.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPCrossChainSwapHub.sol/IPCrossChainSwapHub.json +265 -478
- package/build/artifacts/contracts/interfaces/IPDepositBox.sol/IPDepositBox.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPDepositBoxFactory.sol/IPDepositBoxFactory.dbg.json +4 -0
- package/build/artifacts/contracts/interfaces/IPDepositBoxFactory.sol/IPDepositBoxFactory.json +108 -0
- package/build/artifacts/contracts/interfaces/IPExchangeRateOracle.sol/IPExchangeRateOracle.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPExchangeRateOracleApp.sol/IPExchangeRateOracleApp.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPFeeDistributor.sol/IPFeeDistributor.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPFeeDistributorV2.sol/IPFeeDistributorV2.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPFixedPricePTAMM.sol/IPFixedPricePTAMM.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPFixedPricePTAMM.sol/IPFixedPricePTAMMSwapCallback.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPGauge.sol/IPGauge.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPGauge.sol/IPGauge.json +0 -51
- package/build/artifacts/contracts/interfaces/IPGaugeController.sol/IPGaugeController.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPGaugeController.sol/IPGaugeController.json +102 -11
- package/build/artifacts/contracts/interfaces/IPGovernanceProxy.sol/IPGovernanceProxy.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPInterestManagerYT.sol/IPInterestManagerYT.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPInterestManagerYTV2.sol/IPInterestManagerYTV2.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPLPWrapperFactory.sol/IPLPWrapperFactory.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPLimitRouter.sol/IPLimitOrderType.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPLimitRouter.sol/IPLimitRouter.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPLimitRouter.sol/IPLimitRouterCallback.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPMarket.sol/IPMarket.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPMarket.sol/IPMarket.json +0 -19
- package/build/artifacts/contracts/interfaces/IPMarketFactory.sol/IPMarketFactory.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPMarketSwapCallback.sol/IPMarketSwapCallback.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPMerkleDistributor.sol/IPMerkleDistributor.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPMiniDiamond.sol/IPMiniDiamond.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPMsgReceiverApp.sol/IPMsgReceiverApp.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPMsgSendEndpoint.sol/IPMsgSendEndpoint.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPMultiTokenMerkleDistributor.sol/IPMultiTokenMerkleDistributor.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPOffchainStorage.sol/IPOffchainStorage.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPOracleForSy.sol/IPOracleForSy.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPPTOFTAdapterFactory.sol/IPPTOFTAdapterFactory.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPPYLpOracle.sol/IPPYLpOracle.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPPausingInterface.sol/IPPausingInterface.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPPoolDeployHelperV2.sol/IPPoolDeployHelperV2.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPPriceFeed.sol/IPPriceFeed.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPPrincipalToken.sol/IPPrincipalToken.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPReflector.sol/IPReflector.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPRouterStatic.sol/IPRouterStatic.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPStakedPendle.sol/IPStakedPendle.dbg.json +4 -0
- package/build/artifacts/contracts/interfaces/IPStakedPendle.sol/IPStakedPendle.json +351 -0
- package/build/artifacts/contracts/interfaces/IPTokenWithSupplyCap.sol/IPTokenWithSupplyCap.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPVeToken.sol/IPVeToken.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPVotingEscrowMainchain.sol/IPVotingEscrowMainchain.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPYieldContractFactory.sol/IPYieldContractFactory.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPYieldToken.sol/IPYieldToken.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPYieldTokenV2.sol/IPYieldTokenV2.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IRedstonePriceFeed.sol/IRedstonePriceFeed.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IRewardManager.sol/IRewardManager.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IStandardizedYield.sol/IStandardizedYield.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IWETH.sol/IWETH.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IWstETH.sol/IWstETH.dbg.json +1 -1
- package/build/artifacts/contracts/limit/LimitMathCore.sol/LimitMathCore.dbg.json +1 -1
- package/build/artifacts/contracts/limit/LimitMathCore.sol/LimitMathCore.json +2 -2
- package/build/artifacts/contracts/limit/LimitRouterBase.sol/LimitRouterBase.dbg.json +1 -1
- package/build/artifacts/contracts/limit/PendleLimitRouter.sol/PendleLimitRouter.dbg.json +1 -1
- package/build/artifacts/contracts/limit/PendleLimitRouter.sol/PendleLimitRouter.json +2 -2
- package/build/artifacts/contracts/limit/helpers/NonceManager.sol/NonceManager.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/AddressProvider.sol/AddressProvider.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/AutomateReady.sol/AutomateReady.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/AutomateReady.sol/IAutomate.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/AutomateReady.sol/IOpsProxyFactory.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/AutomateReady.sol/ITaskTreasuryUpgradable.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/BalanceReader.sol/BalanceReader.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/BalanceReader.sol/BalanceReader.json +2 -2
- package/build/artifacts/contracts/offchain-helpers/BalanceReader.sol/ILegacyMarket.dbg.json +4 -0
- package/build/artifacts/contracts/offchain-helpers/BalanceReader.sol/ILegacyMarket.json +30 -0
- package/build/artifacts/contracts/offchain-helpers/BaseSplitCodeFactoryContract.sol/BaseSplitCodeFactoryContract.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/BytesLib.sol/BytesLib.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/EmptyUUPS.sol/EmptyUUPS.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/ExpiredLpPtRedeemer.sol/ExpiredLpPtRedeemer.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/ExpiredLpPtRedeemer.sol/ExpiredLpPtRedeemer.json +2 -2
- package/build/artifacts/contracts/offchain-helpers/LegacyNFTHelper.sol/LegacyNFTHelper.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/LegacyNFTHelper.sol/StarNFTV1.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/LimitBackendHelperV2.sol/LimitBackendHelperV2.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/LimitBackendHelperV2.sol/LimitBackendHelperV2.json +2 -2
- package/build/artifacts/contracts/offchain-helpers/MarketSweed.sol/MarketSweed.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/MarketSweed.sol/MarketSweed.json +2 -2
- package/build/artifacts/contracts/offchain-helpers/Multicall2.sol/Multicall2.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/PendleAPIFeeDepositor.sol/PendleAPIFeeDepositor.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/PendleAPIFeeDepositor.sol/PendleAPIFeeDepositor.json +2 -2
- package/build/artifacts/contracts/offchain-helpers/PendleExchangeRateOracle.sol/PendleExchangeRateOracle.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/PendleExchangeRateOracle.sol/PendleExchangeRateOracle.json +2 -2
- package/build/artifacts/contracts/offchain-helpers/PendleFeeSetter.sol/PendleFeeSetter.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/PendleFeeSetter.sol/PendleFeeSetter.json +2 -2
- package/build/artifacts/contracts/offchain-helpers/PendleGovernanceProxy.sol/PendleGovernanceProxy.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/PendleLPWrapper.sol/PendleLPWrapper.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/PendleLPWrapper.sol/PendleLPWrapper.json +2 -2
- package/build/artifacts/contracts/offchain-helpers/PendleLPWrapperFactory.sol/PendleLPWrapperFactory.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/PendleLPWrapperFactory.sol/PendleLPWrapperFactory.json +2 -2
- package/build/artifacts/contracts/offchain-helpers/PendleMerkleDepositor.sol/PendleMerkleDepositor.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/PendleMerkleDepositor.sol/PendleMerkleDepositor.json +2 -2
- package/build/artifacts/contracts/offchain-helpers/PendleMulticallOwnerV1.sol/PendleMulticallOwnerV1.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/PendleMulticallV1.sol/PendleMulticallV1.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/PendleMulticallV2.sol/PendleMulticallV2.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/PendleOffchainStorage.sol/PendleOffchainStorage.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/PendleWstETHPriceFeed.sol/PendleWstETHPriceFeed.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/SimulateHelper.sol/SimulateHelper.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/SimulateHelper.sol/SimulateHelper.json +2 -2
- package/build/artifacts/contracts/offchain-helpers/SupplyCapReader.sol/IPossibleSupplyCapInterface.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/SupplyCapReader.sol/SupplyCapReader.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/deploy/PendleCommonPoolDeployHelperV2.sol/PendleCommonPoolDeployHelperV2.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/deploy/PendleCommonPoolDeployHelperV2.sol/PendleCommonPoolDeployHelperV2.json +2 -2
- package/build/artifacts/contracts/offchain-helpers/deploy/PendleCommonSYFactory.sol/PendleCommonSYFactory.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/deploy/PendlePoolDeployHelper.sol/PendlePoolDeployHelper.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/deploy/PendlePoolDeployHelper.sol/PendlePoolDeployHelper.json +2 -2
- package/build/artifacts/contracts/offchain-helpers/deploy/PendlePoolDeployHelperV2.sol/PendlePoolDeployHelperV2.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/deploy/PendlePoolDeployHelperV2.sol/PendlePoolDeployHelperV2.json +2 -2
- package/build/artifacts/contracts/offchain-helpers/deploy/lib/MarketDeployLib.sol/MarketDeployLib.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/deploy/lib/MarketDeployLib.sol/MarketDeployLib.json +2 -2
- package/build/artifacts/contracts/offchain-helpers/errors/SDKErrorsDirectory.sol/SDKErrorsDirectory.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/router-static/PendleRouterStatic.sol/PendleRouterStatic.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/router-static/PendleRouterStatic.sol/PendleRouterStatic.json +2 -2
- package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionInfoStatic.sol/ActionInfoStatic.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionInfoStatic.sol/ActionInfoStatic.json +2 -2
- package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionMarketAuxStatic.sol/ActionMarketAuxStatic.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionMarketAuxStatic.sol/ActionMarketAuxStatic.json +2 -2
- package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionMarketCoreStatic.sol/ActionMarketCoreStatic.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionMarketCoreStatic.sol/ActionMarketCoreStatic.json +2 -2
- package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionMintRedeemStatic.sol/ActionMintRedeemStatic.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionMintRedeemStatic.sol/ActionMintRedeemStatic.json +2 -2
- package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionStorageStatic.sol/ActionStorageStatic.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionStorageStatic.sol/ActionStorageStatic.json +2 -2
- package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionVePendleStatic.sol/ActionVePendleStatic.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionVePendleStatic.sol/ActionVePendleStatic.json +2 -2
- package/build/artifacts/contracts/offchain-helpers/router-static/base/MarketApproxLibV1.sol/MarketApproxPtInLibV1.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/router-static/base/MarketApproxLibV1.sol/MarketApproxPtInLibV1.json +2 -2
- package/build/artifacts/contracts/offchain-helpers/router-static/base/MarketApproxLibV1.sol/MarketApproxPtOutLibV1.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/router-static/base/MarketApproxLibV1.sol/MarketApproxPtOutLibV1.json +2 -2
- package/build/artifacts/contracts/offchain-helpers/router-static/base/StorageLayout.sol/StorageLayout.dbg.json +1 -1
- package/build/artifacts/contracts/oracles/CrossChainOracle/base/PendleCrossChainOracleBaseApp_Init.sol/PendleCrossChainOracleBaseApp_Init.dbg.json +1 -1
- package/build/artifacts/contracts/oracles/CrossChainOracle/exchangeRate/PendleExchangeRateOracleApp.sol/PendleExchangeRateOracleApp.dbg.json +1 -1
- package/build/artifacts/contracts/oracles/CrossChainOracle/exchangeRate/PendleExchangeRateOracleApp.sol/PendleExchangeRateOracleApp.json +2 -2
- package/build/artifacts/contracts/oracles/CrossChainOracle/exchangeRate/PendleExchangeRateOracleV2.sol/PendleExchangeRateOracleV2.dbg.json +1 -1
- package/build/artifacts/contracts/oracles/CrossChainOracle/libraries/ExchangeRateMsgCodec.sol/ExchangeRateMsgCodec.dbg.json +1 -1
- package/build/artifacts/contracts/oracles/CrossChainOracle/libraries/ExchangeRateMsgCodec.sol/ExchangeRateMsgCodec.json +2 -2
- package/build/artifacts/contracts/oracles/PtYtLpOracle/PendleLpOracleLib.sol/PendleLpOracleLib.dbg.json +1 -1
- package/build/artifacts/contracts/oracles/PtYtLpOracle/PendleLpOracleLib.sol/PendleLpOracleLib.json +2 -2
- package/build/artifacts/contracts/oracles/PtYtLpOracle/PendlePYLpOracle.sol/PendlePYLpOracle.dbg.json +1 -1
- package/build/artifacts/contracts/oracles/PtYtLpOracle/PendlePYLpOracle.sol/PendlePYLpOracle.json +2 -2
- package/build/artifacts/contracts/oracles/PtYtLpOracle/PendlePYOracleLib.sol/PendlePYOracleLib.dbg.json +1 -1
- package/build/artifacts/contracts/oracles/PtYtLpOracle/PendlePYOracleLib.sol/PendlePYOracleLib.json +2 -2
- package/build/artifacts/contracts/oracles/PtYtLpOracle/chainlink/PendleChainlinkOracle.sol/PendleChainlinkOracle.dbg.json +1 -1
- package/build/artifacts/contracts/oracles/PtYtLpOracle/chainlink/PendleChainlinkOracle.sol/PendleChainlinkOracle.json +2 -2
- package/build/artifacts/contracts/oracles/PtYtLpOracle/chainlink/PendleChainlinkOracleFactory.sol/PendleChainlinkOracleFactory.dbg.json +1 -1
- package/build/artifacts/contracts/oracles/PtYtLpOracle/chainlink/PendleChainlinkOracleFactory.sol/PendleChainlinkOracleFactory.json +2 -2
- package/build/artifacts/contracts/oracles/PtYtLpOracle/chainlink/PendleChainlinkOracleWithQuote.sol/PendleChainlinkOracleWithQuote.dbg.json +1 -1
- package/build/artifacts/contracts/oracles/PtYtLpOracle/chainlink/PendleChainlinkOracleWithQuote.sol/PendleChainlinkOracleWithQuote.json +2 -2
- package/build/artifacts/contracts/oracles/PtYtLpOracle/samples/BoringLpSeller.sol/BoringLpSeller.dbg.json +1 -1
- package/build/artifacts/contracts/oracles/PtYtLpOracle/samples/BoringPYUsdChainlinkAssetOracle.sol/BoringPYUsdChainlinkAssetOracle.dbg.json +1 -1
- package/build/artifacts/contracts/oracles/PtYtLpOracle/samples/BoringPYUsdChainlinkAssetOracle.sol/BoringPYUsdChainlinkAssetOracle.json +2 -2
- package/build/artifacts/contracts/oracles/PtYtLpOracle/samples/BoringPYUsdChainlinkSYOracle.sol/BoringPYUsdChainlinkSYOracle.dbg.json +1 -1
- package/build/artifacts/contracts/oracles/PtYtLpOracle/samples/BoringPYUsdChainlinkSYOracle.sol/BoringPYUsdChainlinkSYOracle.json +2 -2
- package/build/artifacts/contracts/oracles/PtYtLpOracle/samples/BoringPtSeller.sol/BoringPtSeller.dbg.json +1 -1
- package/build/artifacts/contracts/oracles/StatelessWrapper/PendleLinearDiscountOracleWrapper.sol/PendleLinearDiscountOracleWrapper.dbg.json +1 -1
- package/build/artifacts/contracts/oracles/StatelessWrapper/PendleSparkLinearDiscountOracleFactoryWrapper.sol/PendleSparkLinearDiscountOracleFactoryWrapper.dbg.json +1 -1
- package/build/artifacts/contracts/oracles/StatelessWrapper/PendleSparkLinearDiscountOracleFactoryWrapper.sol/PendleSparkLinearDiscountOracleFactoryWrapper.json +2 -2
- package/build/artifacts/contracts/oracles/internal/PendleBoringOneracle.sol/PendleBoringOneracle.dbg.json +1 -1
- package/build/artifacts/contracts/oracles/internal/PendleBoringOneracle.sol/PendleBoringOneracle.json +2 -2
- package/build/artifacts/contracts/oracles/internal/PendleBoringSolvBTCOneracle.sol/PendleBoringSolvBTCOneracle.dbg.json +1 -1
- package/build/artifacts/contracts/oracles/internal/PendleBoringSolvBTCOneracle.sol/PendleBoringSolvBTCOneracle.json +2 -2
- package/build/artifacts/contracts/oracles/internal/PendleLpLinearDiscountOracle.sol/LPExpiry.dbg.json +1 -1
- package/build/artifacts/contracts/oracles/internal/PendleLpLinearDiscountOracle.sol/PendleLpLinearDiscountOracle.dbg.json +1 -1
- package/build/artifacts/contracts/oracles/internal/PendleLpLinearDiscountOracleFactory.sol/PendleLpLinearDiscountOracleFactory.dbg.json +1 -1
- package/build/artifacts/contracts/oracles/internal/PendleRedStoneRateOracleAdapter.sol/PendleRedStoneRateOracleAdapter.dbg.json +1 -1
- package/build/artifacts/contracts/oracles/internal/PendleRedStoneRateOracleAdapter.sol/PendleRedStoneRateOracleAdapter.json +2 -2
- package/build/artifacts/contracts/oracles/internal/PendleSparkLinearDiscountOracle.sol/PTExpiry.dbg.json +1 -1
- package/build/artifacts/contracts/oracles/internal/PendleSparkLinearDiscountOracle.sol/PendleSparkLinearDiscountOracle.dbg.json +1 -1
- package/build/artifacts/contracts/oracles/internal/PendleSparkLinearDiscountOracleFactory.sol/PendleSparkLinearDiscountOracleFactory.dbg.json +1 -1
- package/build/artifacts/contracts/oracles/internal/PendleSparkLinearDiscountOracleFactory.sol/PendleSparkLinearDiscountOracleFactory.json +2 -2
- package/build/artifacts/contracts/router/ActionAddRemoveLiqV3.sol/ActionAddRemoveLiqV3.dbg.json +1 -1
- package/build/artifacts/contracts/router/ActionAddRemoveLiqV3.sol/ActionAddRemoveLiqV3.json +2 -2
- package/build/artifacts/contracts/router/ActionCallbackV3.sol/ActionCallbackV3.dbg.json +1 -1
- package/build/artifacts/contracts/router/ActionCallbackV3.sol/ActionCallbackV3.json +2 -2
- package/build/artifacts/contracts/router/ActionCrossChain.sol/ActionCrossChain.dbg.json +1 -1
- package/build/artifacts/contracts/router/ActionCrossChain.sol/ActionCrossChain.json +2 -2
- package/build/artifacts/contracts/router/ActionMiscV3.sol/ActionMiscV3.dbg.json +1 -1
- package/build/artifacts/contracts/router/ActionMiscV3.sol/ActionMiscV3.json +2 -2
- package/build/artifacts/contracts/router/ActionSimple.sol/ActionSimple.dbg.json +1 -1
- package/build/artifacts/contracts/router/ActionSimple.sol/ActionSimple.json +2 -2
- package/build/artifacts/contracts/router/ActionStorageV4.sol/ActionStorageV4.dbg.json +1 -1
- package/build/artifacts/contracts/router/ActionStorageV4.sol/ActionStorageV4.json +2 -2
- package/build/artifacts/contracts/router/ActionSwapPTV3.sol/ActionSwapPTV3.dbg.json +1 -1
- package/build/artifacts/contracts/router/ActionSwapPTV3.sol/ActionSwapPTV3.json +2 -2
- package/build/artifacts/contracts/router/ActionSwapYTV3.sol/ActionSwapYTV3.dbg.json +1 -1
- package/build/artifacts/contracts/router/ActionSwapYTV3.sol/ActionSwapYTV3.json +2 -2
- package/build/artifacts/contracts/router/PendleRouterV4.sol/PendleRouterV4.dbg.json +1 -1
- package/build/artifacts/contracts/router/PendleRouterV4.sol/PendleRouterV4.json +2 -2
- package/build/artifacts/contracts/router/Reflector.sol/Reflector.dbg.json +1 -1
- package/build/artifacts/contracts/router/Reflector.sol/Reflector.json +2 -2
- package/build/artifacts/contracts/router/RouterStorage.sol/RouterStorage.dbg.json +1 -1
- package/build/artifacts/contracts/router/base/ActionBase.sol/ActionBase.dbg.json +1 -1
- package/build/artifacts/contracts/router/base/ActionDelegateBase.sol/ActionDelegateBase.dbg.json +1 -1
- package/build/artifacts/contracts/router/base/ActionDelegateBase.sol/ActionDelegateBase.json +2 -2
- package/build/artifacts/contracts/router/base/CallbackHelper.sol/CallbackHelper.dbg.json +1 -1
- package/build/artifacts/contracts/router/math/ApproxStateLib.sol/ApproxStateLib.dbg.json +1 -1
- package/build/artifacts/contracts/router/math/ApproxStateLib.sol/ApproxStateLib.json +2 -2
- package/build/artifacts/contracts/router/math/MarketApproxEstimateLib.sol/MarketApproxEstimateLib.dbg.json +1 -1
- package/build/artifacts/contracts/router/math/MarketApproxEstimateLib.sol/MarketApproxEstimateLib.json +2 -2
- package/build/artifacts/contracts/router/math/MarketApproxLibOnchain.sol/MarketApproxPtInLibOnchain.dbg.json +1 -1
- package/build/artifacts/contracts/router/math/MarketApproxLibOnchain.sol/MarketApproxPtInLibOnchain.json +2 -2
- package/build/artifacts/contracts/router/math/MarketApproxLibOnchain.sol/MarketApproxPtOutLibOnchain.dbg.json +1 -1
- package/build/artifacts/contracts/router/math/MarketApproxLibOnchain.sol/MarketApproxPtOutLibOnchain.json +2 -2
- package/build/artifacts/contracts/router/math/MarketApproxLibV2.sol/MarketApproxPtInLibV2.dbg.json +1 -1
- package/build/artifacts/contracts/router/math/MarketApproxLibV2.sol/MarketApproxPtInLibV2.json +2 -2
- package/build/artifacts/contracts/router/math/MarketApproxLibV2.sol/MarketApproxPtOutLibV2.dbg.json +1 -1
- package/build/artifacts/contracts/router/math/MarketApproxLibV2.sol/MarketApproxPtOutLibV2.json +2 -2
- package/build/artifacts/contracts/router/swap-aggregator/IPSwapAggregator.sol/IPSwapAggregator.dbg.json +1 -1
- package/build/artifacts/contracts/router/swap-aggregator/OKXScaleHelper.sol/IOKXDexRouter.dbg.json +1 -1
- package/build/artifacts/contracts/router/swap-aggregator/OKXScaleHelper.sol/OKXScaleHelper.dbg.json +1 -1
- package/build/artifacts/contracts/router/swap-aggregator/ParaswapScaleHelper.sol/IAugustusV6.dbg.json +1 -1
- package/build/artifacts/contracts/router/swap-aggregator/ParaswapScaleHelper.sol/ParaswapScaleHelper.dbg.json +1 -1
- package/build/artifacts/contracts/router/swap-aggregator/PendleSwap.sol/IKyberScalingHelper.dbg.json +1 -1
- package/build/artifacts/contracts/router/swap-aggregator/PendleSwap.sol/IOdosRouterV2.dbg.json +1 -1
- package/build/artifacts/contracts/router/swap-aggregator/PendleSwap.sol/PendleSwap.dbg.json +1 -1
- package/build/artifacts/contracts/router/swap-aggregator/PendleSwap.sol/PendleSwap.json +2 -2
- package/contracts/LiquidityMining/GaugeController/PendleGaugeControllerUpg.sol +122 -0
- package/contracts/LiquidityMining/sPendle/StakedPendle.sol +129 -0
- package/contracts/core/Market/PendleGauge.sol +1 -76
- package/contracts/core/Market/{PendleMarketFactoryV6Upg.sol → PendleMarketFactoryV7Upg.sol} +3 -6
- package/contracts/core/Market/{PendleMarketV6.sol → PendleMarketV7.sol} +16 -16
- package/contracts/core/libraries/Errors.sol +1 -1
- package/contracts/core/libraries/TokenHelper.sol +6 -2
- package/contracts/core/libraries/math/PMath.sol +5 -0
- package/contracts/cross-chain/deposit-box/DepositBoxFactory.sol +44 -0
- package/contracts/cross-chain/swap-hub/PendleCrossChainSwapHub.sol +37 -114
- package/contracts/cross-chain/swap-hub/SwapHubBase.sol +82 -172
- package/contracts/interfaces/IPCrossChainSwapHub.sol +34 -73
- package/contracts/interfaces/IPDepositBoxFactory.sol +19 -0
- package/contracts/interfaces/IPGauge.sol +0 -6
- package/contracts/interfaces/IPGaugeController.sol +20 -3
- package/contracts/interfaces/IPMarket.sol +12 -0
- package/contracts/interfaces/IPStakedPendle.sol +69 -0
- package/contracts/offchain-helpers/BalanceReader.sol +11 -1
- package/contracts/offchain-helpers/MarketSweed.sol +46 -54
- package/contracts/offchain-helpers/PendleMerkleDepositor.sol +5 -6
- package/contracts/router/ActionCrossChain.sol +14 -18
- package/contracts/router/Reflector.sol +19 -2
- package/deployments/1-core.json +3 -2
- package/deployments/10-core.json +1 -1
- package/deployments/130-core.json +2 -1
- package/deployments/146-core.json +1 -1
- package/deployments/42161-core.json +1 -1
- package/deployments/5000-core.json +1 -1
- package/deployments/56-core.json +1 -1
- package/deployments/80094-core.json +1 -1
- package/deployments/8453-core.json +1 -1
- package/deployments/9745-core.json +4 -3
- package/deployments/999-core.json +6 -6
- package/package.json +1 -1
- package/typechain-types/DepositBoxFactory.ts +226 -0
- package/typechain-types/ERC20Upgradeable.ts +426 -0
- package/typechain-types/IERC20MetadataUpgradeable.ts +339 -0
- package/typechain-types/IERC20Upgradeable.ts +300 -0
- package/typechain-types/ILegacyMarket.ts +93 -0
- package/typechain-types/IPCrossChainSwapHub.ts +183 -409
- package/typechain-types/IPDepositBoxFactory.ts +226 -0
- package/typechain-types/IPGauge.ts +7 -81
- package/typechain-types/IPGaugeController.ts +168 -38
- package/typechain-types/IPMarket.ts +0 -19
- package/typechain-types/IPStakedPendle.ts +558 -0
- package/typechain-types/PendleCrossChainSwapHub.ts +226 -434
- package/typechain-types/PendleGauge.ts +0 -63
- package/typechain-types/PendleGaugeControllerUpg.ts +686 -0
- package/typechain-types/PendleMarketFactoryV7Upg.ts +760 -0
- package/typechain-types/PendleMarketV7.ts +1229 -0
- package/typechain-types/StakedPendle.ts +1058 -0
- package/typechain-types/SwapHubBase.ts +225 -433
- package/typechain-types/factories/ActionAddRemoveLiqV3__factory.ts +1 -1
- package/typechain-types/factories/ActionCallbackV3__factory.ts +1 -1
- package/typechain-types/factories/ActionCrossChain__factory.ts +1 -1
- package/typechain-types/factories/ActionInfoStatic__factory.ts +1 -1
- package/typechain-types/factories/ActionMarketAuxStatic__factory.ts +1 -1
- package/typechain-types/factories/ActionMarketCoreStatic__factory.ts +1 -1
- package/typechain-types/factories/ActionMintRedeemStatic__factory.ts +1 -1
- package/typechain-types/factories/ActionMiscV3__factory.ts +1 -1
- package/typechain-types/factories/ActionSimple__factory.ts +1 -1
- package/typechain-types/factories/ActionStorageStatic__factory.ts +1 -1
- package/typechain-types/factories/ActionStorageV4__factory.ts +1 -1
- package/typechain-types/factories/ActionSwapPTV3__factory.ts +1 -1
- package/typechain-types/factories/ActionSwapYTV3__factory.ts +1 -1
- package/typechain-types/factories/ActionVePendleStatic__factory.ts +1 -1
- package/typechain-types/factories/BalanceReader__factory.ts +1 -1
- package/typechain-types/factories/BoringPYUsdChainlinkAssetOracle__factory.ts +1 -1
- package/typechain-types/factories/BoringPYUsdChainlinkSYOracle__factory.ts +1 -1
- package/typechain-types/factories/Broadcaster__factory.ts +1 -1
- package/typechain-types/factories/DepositBoxFactory__factory.ts +189 -0
- package/typechain-types/factories/DepositBox__factory.ts +1 -1
- package/typechain-types/factories/ERC20Upgradeable__factory.ts +347 -0
- package/typechain-types/factories/Errors__factory.ts +2 -2
- package/typechain-types/factories/ExchangeRateMsgCodec__factory.ts +1 -1
- package/typechain-types/factories/ExpiredLpPtRedeemer__factory.ts +1 -1
- package/typechain-types/factories/FixedPricePTAMM__factory.ts +1 -1
- package/typechain-types/factories/IERC20MetadataUpgradeable__factory.ts +252 -0
- package/typechain-types/factories/IERC20Upgradeable__factory.ts +209 -0
- package/typechain-types/factories/ILegacyMarket__factory.ts +42 -0
- package/typechain-types/factories/IPCrossChainSwapHub__factory.ts +264 -477
- package/typechain-types/factories/IPDepositBoxFactory__factory.ts +123 -0
- package/typechain-types/factories/IPGaugeController__factory.ts +102 -11
- package/typechain-types/factories/IPGauge__factory.ts +0 -51
- package/typechain-types/factories/IPMarket__factory.ts +0 -19
- package/typechain-types/factories/IPStakedPendle__factory.ts +366 -0
- package/typechain-types/factories/LimitBackendHelperV2__factory.ts +1 -1
- package/typechain-types/factories/MarketSweed__factory.ts +1 -1
- package/typechain-types/factories/OracleLib__factory.ts +1 -1
- package/typechain-types/factories/PendleAPIFeeDepositor__factory.ts +1 -1
- package/typechain-types/factories/PendleBoringOneracle__factory.ts +1 -1
- package/typechain-types/factories/PendleBoringSolvBTCOneracle__factory.ts +1 -1
- package/typechain-types/factories/PendleChainlinkOracleFactory__factory.ts +1 -1
- package/typechain-types/factories/PendleChainlinkOracleWithQuote__factory.ts +1 -1
- package/typechain-types/factories/PendleChainlinkOracle__factory.ts +1 -1
- package/typechain-types/factories/PendleCommonPoolDeployHelperV2__factory.ts +1 -1
- package/typechain-types/factories/PendleCrossChainSwapHub__factory.ts +304 -517
- package/typechain-types/factories/PendleExchangeRateOracleApp__factory.ts +1 -1
- package/typechain-types/factories/PendleExchangeRateOracle__factory.ts +1 -1
- package/typechain-types/factories/PendleFeeDistributorV2__factory.ts +1 -1
- package/typechain-types/factories/PendleFeeSetter__factory.ts +1 -1
- package/typechain-types/factories/PendleGaugeControllerUpg__factory.ts +519 -0
- package/typechain-types/factories/PendleGauge__factory.ts +0 -51
- package/typechain-types/factories/PendleLPWrapperFactory__factory.ts +1 -1
- package/typechain-types/factories/PendleLPWrapper__factory.ts +1 -1
- package/typechain-types/factories/PendleLimitRouter__factory.ts +1 -1
- package/typechain-types/factories/PendleMarketFactoryV7Upg__factory.ts +710 -0
- package/typechain-types/factories/PendleMarketV6__factory.ts +1 -1
- package/typechain-types/factories/PendleMarketV7__factory.ts +1233 -0
- package/typechain-types/factories/PendleMerkleDepositor__factory.ts +1 -1
- package/typechain-types/factories/PendleMerkleDistributor__factory.ts +1 -1
- package/typechain-types/factories/PendleMsgReceiveEndpointUpg__factory.ts +1 -1
- package/typechain-types/factories/PendleMsgSendEndpointUpg__factory.ts +1 -1
- package/typechain-types/factories/PendleMultiTokenMerkleDistributor__factory.ts +1 -1
- package/typechain-types/factories/PendlePYLpOracle__factory.ts +1 -1
- package/typechain-types/factories/PendlePoolDeployHelperV2__factory.ts +1 -1
- package/typechain-types/factories/PendlePoolDeployHelper__factory.ts +1 -1
- package/typechain-types/factories/PendlePrincipalToken__factory.ts +1 -1
- package/typechain-types/factories/PendleRedStoneRateOracleAdapter__factory.ts +1 -1
- package/typechain-types/factories/PendleRouterStatic__factory.ts +1 -1
- package/typechain-types/factories/PendleRouterV4__factory.ts +1 -1
- package/typechain-types/factories/PendleSparkLinearDiscountOracleFactoryWrapper__factory.ts +1 -1
- package/typechain-types/factories/PendleSparkLinearDiscountOracleFactory__factory.ts +1 -1
- package/typechain-types/factories/PendleSwap__factory.ts +1 -1
- package/typechain-types/factories/PendleYieldContractFactoryUpg__factory.ts +1 -1
- package/typechain-types/factories/PendleYieldToken__factory.ts +1 -1
- package/typechain-types/factories/Reflector__factory.ts +1 -1
- package/typechain-types/factories/SimulateHelper__factory.ts +1 -1
- package/typechain-types/factories/StakedPendle__factory.ts +785 -0
- package/typechain-types/factories/SwapHubBase__factory.ts +300 -500
- package/typechain-types/factories/VotingEscrowPendleMainchain__factory.ts +1 -1
- package/typechain-types/factories/VotingEscrowPendleSidechain__factory.ts +1 -1
- package/typechain-types/hardhat.d.ts +87 -87
- package/typechain-types/index.ts +24 -24
- package/build/artifacts/contracts/LiquidityMining/GaugeController/PendleGaugeControllerBaseUpg.sol/PendleGaugeControllerBaseUpg.dbg.json +0 -4
- package/build/artifacts/contracts/LiquidityMining/GaugeController/PendleGaugeControllerBaseUpg.sol/PendleGaugeControllerBaseUpg.json +0 -451
- package/build/artifacts/contracts/LiquidityMining/GaugeController/PendleGaugeControllerMainchainUpg.sol/PendleGaugeControllerMainchainUpg.dbg.json +0 -4
- package/build/artifacts/contracts/LiquidityMining/GaugeController/PendleGaugeControllerMainchainUpg.sol/PendleGaugeControllerMainchainUpg.json +0 -557
- package/build/artifacts/contracts/LiquidityMining/GaugeController/PendleGaugeControllerSidechainUpg.sol/PendleGaugeControllerSidechainUpg.dbg.json +0 -4
- package/build/artifacts/contracts/LiquidityMining/GaugeController/PendleGaugeControllerSidechainUpg.sol/PendleGaugeControllerSidechainUpg.json +0 -547
- package/build/artifacts/contracts/LiquidityMining/VotingController/PendleVotingControllerUpg.sol/PendleVotingControllerUpg.dbg.json +0 -4
- package/build/artifacts/contracts/LiquidityMining/VotingController/PendleVotingControllerUpg.sol/PendleVotingControllerUpg.json +0 -1311
- package/build/artifacts/contracts/LiquidityMining/VotingController/VotingControllerStorageUpg.sol/VotingControllerStorageUpg.dbg.json +0 -4
- package/build/artifacts/contracts/LiquidityMining/VotingController/VotingControllerStorageUpg.sol/VotingControllerStorageUpg.json +0 -764
- package/build/artifacts/contracts/core/Market/PendleMarketFactoryV6Upg.sol/PendleMarketFactoryV6Upg.dbg.json +0 -4
- package/build/artifacts/contracts/core/Market/PendleMarketFactoryV6Upg.sol/PendleMarketFactoryV6Upg.json +0 -636
- package/build/artifacts/contracts/core/Market/PendleMarketV6.sol/PendleMarketV6.dbg.json +0 -4
- package/build/artifacts/contracts/core/Market/PendleMarketV6.sol/PendleMarketV6.json +0 -1181
- package/build/artifacts/contracts/cross-chain/swap-hub/DepositBox.sol/DepositBox.dbg.json +0 -4
- package/build/artifacts/contracts/cross-chain/swap-hub/DepositBox.sol/DepositBox.json +0 -170
- package/build/artifacts/contracts/deprecated/VeDistributor/PendleFeeDistributor.sol/PendleFeeDistributor.dbg.json +0 -4
- package/build/artifacts/contracts/deprecated/VeDistributor/PendleFeeDistributor.sol/PendleFeeDistributor.json +0 -598
- package/build/artifacts/contracts/interfaces/IPGaugeControllerMainchain.sol/IPGaugeControllerMainchain.dbg.json +0 -4
- package/build/artifacts/contracts/interfaces/IPGaugeControllerMainchain.sol/IPGaugeControllerMainchain.json +0 -183
- package/build/artifacts/contracts/interfaces/IPVotingController.sol/IPVotingController.dbg.json +0 -4
- package/build/artifacts/contracts/interfaces/IPVotingController.sol/IPVotingController.json +0 -380
- package/build/artifacts/contracts/offchain-helpers/Broadcaster.sol/Broadcaster.dbg.json +0 -4
- package/build/artifacts/contracts/offchain-helpers/Broadcaster.sol/Broadcaster.json +0 -262
- package/contracts/LiquidityMining/GaugeController/PendleGaugeControllerBaseUpg.sol +0 -164
- package/contracts/LiquidityMining/GaugeController/PendleGaugeControllerMainchainUpg.sol +0 -42
- package/contracts/LiquidityMining/GaugeController/PendleGaugeControllerSidechainUpg.sol +0 -36
- package/contracts/LiquidityMining/VotingController/PendleVotingControllerUpg.sol +0 -304
- package/contracts/LiquidityMining/VotingController/VotingControllerStorageUpg.sol +0 -301
- package/contracts/deprecated/VeDistributor/PendleFeeDistributor.sol +0 -204
- package/contracts/interfaces/IPGaugeControllerMainchain.sol +0 -8
- package/contracts/interfaces/IPVotingController.sol +0 -43
- package/contracts/offchain-helpers/Broadcaster.sol +0 -48
- /package/contracts/cross-chain/{swap-hub → deposit-box}/DepositBox.sol +0 -0
|
@@ -24,170 +24,101 @@ import type {
|
|
|
24
24
|
} from "./common";
|
|
25
25
|
|
|
26
26
|
export declare namespace IPCrossChainSwapHub {
|
|
27
|
-
export type
|
|
27
|
+
export type BoxPermitStruct = {
|
|
28
28
|
owner: string;
|
|
29
29
|
boxId: BigNumberish;
|
|
30
30
|
expiry: BigNumberish;
|
|
31
|
+
requestId: BigNumberish;
|
|
31
32
|
nonce: BigNumberish;
|
|
32
|
-
token: string;
|
|
33
|
-
amountBridge: BigNumberish;
|
|
34
|
-
amountFee: BigNumberish;
|
|
35
|
-
pullFromOwner: boolean;
|
|
36
|
-
bridgeExtRouter: string;
|
|
37
|
-
bridgeApprove: string;
|
|
38
|
-
bridgeCalldata: BytesLike;
|
|
39
33
|
};
|
|
40
34
|
|
|
41
|
-
export type
|
|
35
|
+
export type BoxPermitStructOutput = [
|
|
42
36
|
string,
|
|
43
37
|
number,
|
|
44
38
|
BigNumber,
|
|
45
39
|
BigNumber,
|
|
46
|
-
|
|
47
|
-
BigNumber,
|
|
48
|
-
BigNumber,
|
|
49
|
-
boolean,
|
|
50
|
-
string,
|
|
51
|
-
string,
|
|
52
|
-
string
|
|
40
|
+
BigNumber
|
|
53
41
|
] & {
|
|
54
42
|
owner: string;
|
|
55
43
|
boxId: number;
|
|
56
44
|
expiry: BigNumber;
|
|
45
|
+
requestId: BigNumber;
|
|
57
46
|
nonce: BigNumber;
|
|
58
|
-
token: string;
|
|
59
|
-
amountBridge: BigNumber;
|
|
60
|
-
amountFee: BigNumber;
|
|
61
|
-
pullFromOwner: boolean;
|
|
62
|
-
bridgeExtRouter: string;
|
|
63
|
-
bridgeApprove: string;
|
|
64
|
-
bridgeCalldata: string;
|
|
65
47
|
};
|
|
66
48
|
|
|
67
|
-
export type
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
nonce: BigNumberish;
|
|
72
|
-
tokenSpent: string;
|
|
73
|
-
amountSpent: BigNumberish;
|
|
49
|
+
export type BridgeTokenMessageStruct = {
|
|
50
|
+
permit: IPCrossChainSwapHub.BoxPermitStruct;
|
|
51
|
+
token: string;
|
|
52
|
+
amountBridge: BigNumberish;
|
|
74
53
|
amountFee: BigNumberish;
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
receiver: BytesLike;
|
|
79
|
-
pullFromOwner: boolean;
|
|
80
|
-
swapExtRouter: string;
|
|
81
|
-
swapApprove: string;
|
|
82
|
-
swapCalldata: BytesLike;
|
|
54
|
+
bridgeExtRouter: string;
|
|
55
|
+
bridgeApprove: string;
|
|
56
|
+
bridgeCalldata: BytesLike;
|
|
83
57
|
};
|
|
84
58
|
|
|
85
|
-
export type
|
|
86
|
-
|
|
87
|
-
number,
|
|
88
|
-
BigNumber,
|
|
89
|
-
BigNumber,
|
|
59
|
+
export type BridgeTokenMessageStructOutput = [
|
|
60
|
+
IPCrossChainSwapHub.BoxPermitStructOutput,
|
|
90
61
|
string,
|
|
91
62
|
BigNumber,
|
|
92
63
|
BigNumber,
|
|
93
64
|
string,
|
|
94
|
-
BigNumber,
|
|
95
|
-
number,
|
|
96
|
-
string,
|
|
97
|
-
boolean,
|
|
98
|
-
string,
|
|
99
65
|
string,
|
|
100
66
|
string
|
|
101
67
|
] & {
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
nonce: BigNumber;
|
|
106
|
-
tokenSpent: string;
|
|
107
|
-
amountSpent: BigNumber;
|
|
68
|
+
permit: IPCrossChainSwapHub.BoxPermitStructOutput;
|
|
69
|
+
token: string;
|
|
70
|
+
amountBridge: BigNumber;
|
|
108
71
|
amountFee: BigNumber;
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
receiver: string;
|
|
113
|
-
pullFromOwner: boolean;
|
|
114
|
-
swapExtRouter: string;
|
|
115
|
-
swapApprove: string;
|
|
116
|
-
swapCalldata: string;
|
|
72
|
+
bridgeExtRouter: string;
|
|
73
|
+
bridgeApprove: string;
|
|
74
|
+
bridgeCalldata: string;
|
|
117
75
|
};
|
|
118
76
|
|
|
119
77
|
export type SwapTokenMessageStruct = {
|
|
120
|
-
|
|
121
|
-
boxId: BigNumberish;
|
|
122
|
-
expiry: BigNumberish;
|
|
123
|
-
nonce: BigNumberish;
|
|
78
|
+
permit: IPCrossChainSwapHub.BoxPermitStruct;
|
|
124
79
|
tokenSpent: string;
|
|
125
80
|
amountSpent: BigNumberish;
|
|
126
|
-
amountFee: BigNumberish;
|
|
127
81
|
tokenReceived: string;
|
|
128
82
|
minReceived: BigNumberish;
|
|
129
|
-
pullFromOwner: boolean;
|
|
130
|
-
sendToOwner: boolean;
|
|
131
83
|
swapExtRouter: string;
|
|
132
84
|
swapApprove: string;
|
|
133
85
|
swapCalldata: BytesLike;
|
|
134
86
|
};
|
|
135
87
|
|
|
136
88
|
export type SwapTokenMessageStructOutput = [
|
|
89
|
+
IPCrossChainSwapHub.BoxPermitStructOutput,
|
|
137
90
|
string,
|
|
138
|
-
number,
|
|
139
|
-
BigNumber,
|
|
140
91
|
BigNumber,
|
|
141
92
|
string,
|
|
142
93
|
BigNumber,
|
|
143
|
-
BigNumber,
|
|
144
|
-
string,
|
|
145
|
-
BigNumber,
|
|
146
|
-
boolean,
|
|
147
|
-
boolean,
|
|
148
94
|
string,
|
|
149
95
|
string,
|
|
150
96
|
string
|
|
151
97
|
] & {
|
|
152
|
-
|
|
153
|
-
boxId: number;
|
|
154
|
-
expiry: BigNumber;
|
|
155
|
-
nonce: BigNumber;
|
|
98
|
+
permit: IPCrossChainSwapHub.BoxPermitStructOutput;
|
|
156
99
|
tokenSpent: string;
|
|
157
100
|
amountSpent: BigNumber;
|
|
158
|
-
amountFee: BigNumber;
|
|
159
101
|
tokenReceived: string;
|
|
160
102
|
minReceived: BigNumber;
|
|
161
|
-
pullFromOwner: boolean;
|
|
162
|
-
sendToOwner: boolean;
|
|
163
103
|
swapExtRouter: string;
|
|
164
104
|
swapApprove: string;
|
|
165
105
|
swapCalldata: string;
|
|
166
106
|
};
|
|
167
107
|
|
|
168
108
|
export type WithdrawTokenMessageStruct = {
|
|
169
|
-
|
|
170
|
-
boxId: BigNumberish;
|
|
171
|
-
expiry: BigNumberish;
|
|
172
|
-
nonce: BigNumberish;
|
|
109
|
+
permit: IPCrossChainSwapHub.BoxPermitStruct;
|
|
173
110
|
token: string;
|
|
174
111
|
amountWithdraw: BigNumberish;
|
|
175
112
|
amountFee: BigNumberish;
|
|
176
113
|
};
|
|
177
114
|
|
|
178
115
|
export type WithdrawTokenMessageStructOutput = [
|
|
179
|
-
|
|
180
|
-
number,
|
|
181
|
-
BigNumber,
|
|
182
|
-
BigNumber,
|
|
116
|
+
IPCrossChainSwapHub.BoxPermitStructOutput,
|
|
183
117
|
string,
|
|
184
118
|
BigNumber,
|
|
185
119
|
BigNumber
|
|
186
120
|
] & {
|
|
187
|
-
|
|
188
|
-
boxId: number;
|
|
189
|
-
expiry: BigNumber;
|
|
190
|
-
nonce: BigNumber;
|
|
121
|
+
permit: IPCrossChainSwapHub.BoxPermitStructOutput;
|
|
191
122
|
token: string;
|
|
192
123
|
amountWithdraw: BigNumber;
|
|
193
124
|
amountFee: BigNumber;
|
|
@@ -197,54 +128,38 @@ export declare namespace IPCrossChainSwapHub {
|
|
|
197
128
|
export interface IPCrossChainSwapHubInterface extends utils.Interface {
|
|
198
129
|
contractName: "IPCrossChainSwapHub";
|
|
199
130
|
functions: {
|
|
200
|
-
"
|
|
201
|
-
"
|
|
202
|
-
"
|
|
203
|
-
"
|
|
204
|
-
"
|
|
205
|
-
"
|
|
206
|
-
"
|
|
207
|
-
"
|
|
208
|
-
"
|
|
209
|
-
"
|
|
210
|
-
"swapToken((address,uint32,uint256,uint256,address,uint256,uint256,address,uint256,bool,bool,address,address,bytes),bytes)": FunctionFragment;
|
|
211
|
-
"withdrawToken((address,uint32,uint256,uint256,address,uint256,uint256),bytes)": FunctionFragment;
|
|
131
|
+
"bridgeToken(((address,uint32,uint256,uint256,uint256),address,uint256,uint256,address,address,bytes),bytes)": FunctionFragment;
|
|
132
|
+
"executor()": FunctionFragment;
|
|
133
|
+
"hashBoxPermit((address,uint32,uint256,uint256,uint256))": FunctionFragment;
|
|
134
|
+
"hashTypedData(((address,uint32,uint256,uint256,uint256),address,uint256,address,uint256,address,address,bytes))": FunctionFragment;
|
|
135
|
+
"proposer()": FunctionFragment;
|
|
136
|
+
"requestNonce(uint256)": FunctionFragment;
|
|
137
|
+
"setExecutor(address)": FunctionFragment;
|
|
138
|
+
"setProposer(address)": FunctionFragment;
|
|
139
|
+
"swapToken(((address,uint32,uint256,uint256,uint256),address,uint256,address,uint256,address,address,bytes),bytes)": FunctionFragment;
|
|
140
|
+
"withdrawToken(((address,uint32,uint256,uint256,uint256),address,uint256,uint256),bytes)": FunctionFragment;
|
|
212
141
|
};
|
|
213
142
|
|
|
214
|
-
encodeFunctionData(
|
|
215
|
-
functionFragment: "BEACON_PROXY_CODE_CONTRACT",
|
|
216
|
-
values?: undefined
|
|
217
|
-
): string;
|
|
218
|
-
encodeFunctionData(
|
|
219
|
-
functionFragment: "DEPOSIT_BOX_BEACON",
|
|
220
|
-
values?: undefined
|
|
221
|
-
): string;
|
|
222
|
-
encodeFunctionData(
|
|
223
|
-
functionFragment: "DEPOSIT_BOX_CODE_HASH",
|
|
224
|
-
values?: undefined
|
|
225
|
-
): string;
|
|
226
143
|
encodeFunctionData(
|
|
227
144
|
functionFragment: "bridgeToken",
|
|
228
145
|
values: [IPCrossChainSwapHub.BridgeTokenMessageStruct, BytesLike]
|
|
229
146
|
): string;
|
|
147
|
+
encodeFunctionData(functionFragment: "executor", values?: undefined): string;
|
|
230
148
|
encodeFunctionData(
|
|
231
|
-
functionFragment: "
|
|
232
|
-
values: [IPCrossChainSwapHub.
|
|
233
|
-
): string;
|
|
234
|
-
encodeFunctionData(
|
|
235
|
-
functionFragment: "computeDepositBox",
|
|
236
|
-
values: [string, BigNumberish]
|
|
149
|
+
functionFragment: "hashBoxPermit",
|
|
150
|
+
values: [IPCrossChainSwapHub.BoxPermitStruct]
|
|
237
151
|
): string;
|
|
238
152
|
encodeFunctionData(
|
|
239
153
|
functionFragment: "hashTypedData",
|
|
240
154
|
values: [IPCrossChainSwapHub.SwapTokenMessageStruct]
|
|
241
155
|
): string;
|
|
242
|
-
encodeFunctionData(functionFragment: "
|
|
243
|
-
encodeFunctionData(functionFragment: "ownerNonce", values: [string]): string;
|
|
156
|
+
encodeFunctionData(functionFragment: "proposer", values?: undefined): string;
|
|
244
157
|
encodeFunctionData(
|
|
245
|
-
functionFragment: "
|
|
246
|
-
values: [
|
|
158
|
+
functionFragment: "requestNonce",
|
|
159
|
+
values: [BigNumberish]
|
|
247
160
|
): string;
|
|
161
|
+
encodeFunctionData(functionFragment: "setExecutor", values: [string]): string;
|
|
162
|
+
encodeFunctionData(functionFragment: "setProposer", values: [string]): string;
|
|
248
163
|
encodeFunctionData(
|
|
249
164
|
functionFragment: "swapToken",
|
|
250
165
|
values: [IPCrossChainSwapHub.SwapTokenMessageStruct, BytesLike]
|
|
@@ -255,37 +170,29 @@ export interface IPCrossChainSwapHubInterface extends utils.Interface {
|
|
|
255
170
|
): string;
|
|
256
171
|
|
|
257
172
|
decodeFunctionResult(
|
|
258
|
-
functionFragment: "
|
|
259
|
-
data: BytesLike
|
|
260
|
-
): Result;
|
|
261
|
-
decodeFunctionResult(
|
|
262
|
-
functionFragment: "DEPOSIT_BOX_BEACON",
|
|
263
|
-
data: BytesLike
|
|
264
|
-
): Result;
|
|
265
|
-
decodeFunctionResult(
|
|
266
|
-
functionFragment: "DEPOSIT_BOX_CODE_HASH",
|
|
173
|
+
functionFragment: "bridgeToken",
|
|
267
174
|
data: BytesLike
|
|
268
175
|
): Result;
|
|
176
|
+
decodeFunctionResult(functionFragment: "executor", data: BytesLike): Result;
|
|
269
177
|
decodeFunctionResult(
|
|
270
|
-
functionFragment: "
|
|
178
|
+
functionFragment: "hashBoxPermit",
|
|
271
179
|
data: BytesLike
|
|
272
180
|
): Result;
|
|
273
181
|
decodeFunctionResult(
|
|
274
|
-
functionFragment: "
|
|
182
|
+
functionFragment: "hashTypedData",
|
|
275
183
|
data: BytesLike
|
|
276
184
|
): Result;
|
|
185
|
+
decodeFunctionResult(functionFragment: "proposer", data: BytesLike): Result;
|
|
277
186
|
decodeFunctionResult(
|
|
278
|
-
functionFragment: "
|
|
187
|
+
functionFragment: "requestNonce",
|
|
279
188
|
data: BytesLike
|
|
280
189
|
): Result;
|
|
281
190
|
decodeFunctionResult(
|
|
282
|
-
functionFragment: "
|
|
191
|
+
functionFragment: "setExecutor",
|
|
283
192
|
data: BytesLike
|
|
284
193
|
): Result;
|
|
285
|
-
decodeFunctionResult(functionFragment: "isExecutor", data: BytesLike): Result;
|
|
286
|
-
decodeFunctionResult(functionFragment: "ownerNonce", data: BytesLike): Result;
|
|
287
194
|
decodeFunctionResult(
|
|
288
|
-
functionFragment: "
|
|
195
|
+
functionFragment: "setProposer",
|
|
289
196
|
data: BytesLike
|
|
290
197
|
): Result;
|
|
291
198
|
decodeFunctionResult(functionFragment: "swapToken", data: BytesLike): Result;
|
|
@@ -295,101 +202,67 @@ export interface IPCrossChainSwapHubInterface extends utils.Interface {
|
|
|
295
202
|
): Result;
|
|
296
203
|
|
|
297
204
|
events: {
|
|
298
|
-
"BridgeToken(address,uint32,address,address,uint256,uint256
|
|
299
|
-
"
|
|
300
|
-
"
|
|
301
|
-
"SwapToken(address,uint32,
|
|
302
|
-
"WithdrawToken(address,uint32,address,uint256,uint256)": EventFragment;
|
|
205
|
+
"BridgeToken(address,uint32,uint256,uint256,address,address,uint256,uint256)": EventFragment;
|
|
206
|
+
"SetExecutor(address)": EventFragment;
|
|
207
|
+
"SetProposer(address)": EventFragment;
|
|
208
|
+
"SwapToken(address,uint32,uint256,uint256,address,uint256,address,uint256)": EventFragment;
|
|
209
|
+
"WithdrawToken(address,uint32,uint256,uint256,address,uint256,uint256)": EventFragment;
|
|
303
210
|
};
|
|
304
211
|
|
|
305
212
|
getEvent(nameOrSignatureOrTopic: "BridgeToken"): EventFragment;
|
|
306
|
-
getEvent(nameOrSignatureOrTopic: "BuyCrossChainPt"): EventFragment;
|
|
307
213
|
getEvent(nameOrSignatureOrTopic: "SetExecutor"): EventFragment;
|
|
214
|
+
getEvent(nameOrSignatureOrTopic: "SetProposer"): EventFragment;
|
|
308
215
|
getEvent(nameOrSignatureOrTopic: "SwapToken"): EventFragment;
|
|
309
216
|
getEvent(nameOrSignatureOrTopic: "WithdrawToken"): EventFragment;
|
|
310
217
|
}
|
|
311
218
|
|
|
312
219
|
export type BridgeTokenEvent = TypedEvent<
|
|
313
|
-
[string, number, string, string, BigNumber, BigNumber
|
|
220
|
+
[string, number, BigNumber, BigNumber, string, string, BigNumber, BigNumber],
|
|
314
221
|
{
|
|
315
222
|
owner: string;
|
|
316
223
|
boxId: number;
|
|
224
|
+
requestId: BigNumber;
|
|
225
|
+
nonce: BigNumber;
|
|
317
226
|
bridgeExtRouter: string;
|
|
318
227
|
token: string;
|
|
319
228
|
amountBridge: BigNumber;
|
|
320
229
|
amountFee: BigNumber;
|
|
321
|
-
pullFromOwner: boolean;
|
|
322
230
|
}
|
|
323
231
|
>;
|
|
324
232
|
|
|
325
233
|
export type BridgeTokenEventFilter = TypedEventFilter<BridgeTokenEvent>;
|
|
326
234
|
|
|
327
|
-
export type
|
|
328
|
-
[
|
|
329
|
-
string,
|
|
330
|
-
number,
|
|
331
|
-
string,
|
|
332
|
-
BigNumber,
|
|
333
|
-
BigNumber,
|
|
334
|
-
string,
|
|
335
|
-
string,
|
|
336
|
-
BigNumber,
|
|
337
|
-
boolean
|
|
338
|
-
],
|
|
339
|
-
{
|
|
340
|
-
owner: string;
|
|
341
|
-
boxId: number;
|
|
342
|
-
tokenSpent: string;
|
|
343
|
-
amountSpent: BigNumber;
|
|
344
|
-
amountFee: BigNumber;
|
|
345
|
-
ptAdapter: string;
|
|
346
|
-
pt: string;
|
|
347
|
-
netPtReceived: BigNumber;
|
|
348
|
-
pullFromOwner: boolean;
|
|
349
|
-
}
|
|
350
|
-
>;
|
|
235
|
+
export type SetExecutorEvent = TypedEvent<[string], { executor: string }>;
|
|
351
236
|
|
|
352
|
-
export type
|
|
237
|
+
export type SetExecutorEventFilter = TypedEventFilter<SetExecutorEvent>;
|
|
353
238
|
|
|
354
|
-
export type
|
|
355
|
-
[string, boolean],
|
|
356
|
-
{ executor: string; isExecutor: boolean }
|
|
357
|
-
>;
|
|
239
|
+
export type SetProposerEvent = TypedEvent<[string], { proposer: string }>;
|
|
358
240
|
|
|
359
|
-
export type
|
|
241
|
+
export type SetProposerEventFilter = TypedEventFilter<SetProposerEvent>;
|
|
360
242
|
|
|
361
243
|
export type SwapTokenEvent = TypedEvent<
|
|
362
|
-
[
|
|
363
|
-
string,
|
|
364
|
-
number,
|
|
365
|
-
string,
|
|
366
|
-
BigNumber,
|
|
367
|
-
BigNumber,
|
|
368
|
-
string,
|
|
369
|
-
BigNumber,
|
|
370
|
-
boolean,
|
|
371
|
-
boolean
|
|
372
|
-
],
|
|
244
|
+
[string, number, BigNumber, BigNumber, string, BigNumber, string, BigNumber],
|
|
373
245
|
{
|
|
374
246
|
owner: string;
|
|
375
247
|
boxId: number;
|
|
248
|
+
requestId: BigNumber;
|
|
249
|
+
nonce: BigNumber;
|
|
376
250
|
tokenSpent: string;
|
|
377
251
|
amountSpent: BigNumber;
|
|
378
|
-
amountFee: BigNumber;
|
|
379
252
|
tokenReceived: string;
|
|
380
253
|
netTokenReceived: BigNumber;
|
|
381
|
-
pullFromOwner: boolean;
|
|
382
|
-
sendToOwner: boolean;
|
|
383
254
|
}
|
|
384
255
|
>;
|
|
385
256
|
|
|
386
257
|
export type SwapTokenEventFilter = TypedEventFilter<SwapTokenEvent>;
|
|
387
258
|
|
|
388
259
|
export type WithdrawTokenEvent = TypedEvent<
|
|
389
|
-
[string, number, string, BigNumber, BigNumber],
|
|
260
|
+
[string, number, BigNumber, BigNumber, string, BigNumber, BigNumber],
|
|
390
261
|
{
|
|
391
262
|
owner: string;
|
|
392
263
|
boxId: number;
|
|
264
|
+
requestId: BigNumber;
|
|
265
|
+
nonce: BigNumber;
|
|
393
266
|
token: string;
|
|
394
267
|
amountWithdraw: BigNumber;
|
|
395
268
|
amountFee: BigNumber;
|
|
@@ -426,63 +299,48 @@ export interface IPCrossChainSwapHub extends BaseContract {
|
|
|
426
299
|
removeListener: OnEvent<this>;
|
|
427
300
|
|
|
428
301
|
functions: {
|
|
429
|
-
BEACON_PROXY_CODE_CONTRACT(overrides?: CallOverrides): Promise<[string]>;
|
|
430
|
-
|
|
431
|
-
DEPOSIT_BOX_BEACON(overrides?: CallOverrides): Promise<[string]>;
|
|
432
|
-
|
|
433
|
-
DEPOSIT_BOX_CODE_HASH(overrides?: CallOverrides): Promise<[string]>;
|
|
434
|
-
|
|
435
302
|
bridgeToken(
|
|
436
303
|
message: IPCrossChainSwapHub.BridgeTokenMessageStruct,
|
|
437
304
|
signature: BytesLike,
|
|
438
305
|
overrides?: PayableOverrides & { from?: string | Promise<string> }
|
|
439
306
|
): Promise<ContractTransaction>;
|
|
440
307
|
|
|
441
|
-
|
|
442
|
-
message: IPCrossChainSwapHub.BuyCrossChainPtMessageStruct,
|
|
443
|
-
signature: BytesLike,
|
|
444
|
-
overrides?: PayableOverrides & { from?: string | Promise<string> }
|
|
445
|
-
): Promise<ContractTransaction>;
|
|
308
|
+
executor(overrides?: CallOverrides): Promise<[string]>;
|
|
446
309
|
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
boxId: BigNumberish,
|
|
450
|
-
overrides?: CallOverrides
|
|
451
|
-
): Promise<
|
|
452
|
-
[string, string, boolean] & {
|
|
453
|
-
box: string;
|
|
454
|
-
salt: string;
|
|
455
|
-
deployed: boolean;
|
|
456
|
-
}
|
|
457
|
-
>;
|
|
458
|
-
|
|
459
|
-
"hashTypedData((address,uint32,uint256,uint256,address,uint256,uint256,address,uint256,bool,bool,address,address,bytes))"(
|
|
460
|
-
message: IPCrossChainSwapHub.SwapTokenMessageStruct,
|
|
310
|
+
hashBoxPermit(
|
|
311
|
+
permit: IPCrossChainSwapHub.BoxPermitStruct,
|
|
461
312
|
overrides?: CallOverrides
|
|
462
313
|
): Promise<[string]>;
|
|
463
314
|
|
|
464
|
-
"hashTypedData((address,uint32,uint256,uint256,address,uint256,uint256))"(
|
|
465
|
-
message: IPCrossChainSwapHub.
|
|
315
|
+
"hashTypedData(((address,uint32,uint256,uint256,uint256),address,uint256,address,uint256,address,address,bytes))"(
|
|
316
|
+
message: IPCrossChainSwapHub.SwapTokenMessageStruct,
|
|
466
317
|
overrides?: CallOverrides
|
|
467
318
|
): Promise<[string]>;
|
|
468
319
|
|
|
469
|
-
"hashTypedData((address,uint32,uint256,uint256,
|
|
470
|
-
message: IPCrossChainSwapHub.
|
|
320
|
+
"hashTypedData(((address,uint32,uint256,uint256,uint256),address,uint256,uint256))"(
|
|
321
|
+
message: IPCrossChainSwapHub.WithdrawTokenMessageStruct,
|
|
471
322
|
overrides?: CallOverrides
|
|
472
323
|
): Promise<[string]>;
|
|
473
324
|
|
|
474
|
-
"hashTypedData((address,uint32,uint256,uint256,address,uint256,uint256,
|
|
325
|
+
"hashTypedData(((address,uint32,uint256,uint256,uint256),address,uint256,uint256,address,address,bytes))"(
|
|
475
326
|
message: IPCrossChainSwapHub.BridgeTokenMessageStruct,
|
|
476
327
|
overrides?: CallOverrides
|
|
477
328
|
): Promise<[string]>;
|
|
478
329
|
|
|
479
|
-
|
|
330
|
+
proposer(overrides?: CallOverrides): Promise<[string]>;
|
|
480
331
|
|
|
481
|
-
|
|
332
|
+
requestNonce(
|
|
333
|
+
requestId: BigNumberish,
|
|
334
|
+
overrides?: CallOverrides
|
|
335
|
+
): Promise<[BigNumber]>;
|
|
482
336
|
|
|
483
337
|
setExecutor(
|
|
484
338
|
executor: string,
|
|
485
|
-
|
|
339
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
340
|
+
): Promise<ContractTransaction>;
|
|
341
|
+
|
|
342
|
+
setProposer(
|
|
343
|
+
proposer: string,
|
|
486
344
|
overrides?: Overrides & { from?: string | Promise<string> }
|
|
487
345
|
): Promise<ContractTransaction>;
|
|
488
346
|
|
|
@@ -499,59 +357,48 @@ export interface IPCrossChainSwapHub extends BaseContract {
|
|
|
499
357
|
): Promise<ContractTransaction>;
|
|
500
358
|
};
|
|
501
359
|
|
|
502
|
-
BEACON_PROXY_CODE_CONTRACT(overrides?: CallOverrides): Promise<string>;
|
|
503
|
-
|
|
504
|
-
DEPOSIT_BOX_BEACON(overrides?: CallOverrides): Promise<string>;
|
|
505
|
-
|
|
506
|
-
DEPOSIT_BOX_CODE_HASH(overrides?: CallOverrides): Promise<string>;
|
|
507
|
-
|
|
508
360
|
bridgeToken(
|
|
509
361
|
message: IPCrossChainSwapHub.BridgeTokenMessageStruct,
|
|
510
362
|
signature: BytesLike,
|
|
511
363
|
overrides?: PayableOverrides & { from?: string | Promise<string> }
|
|
512
364
|
): Promise<ContractTransaction>;
|
|
513
365
|
|
|
514
|
-
|
|
515
|
-
message: IPCrossChainSwapHub.BuyCrossChainPtMessageStruct,
|
|
516
|
-
signature: BytesLike,
|
|
517
|
-
overrides?: PayableOverrides & { from?: string | Promise<string> }
|
|
518
|
-
): Promise<ContractTransaction>;
|
|
366
|
+
executor(overrides?: CallOverrides): Promise<string>;
|
|
519
367
|
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
boxId: BigNumberish,
|
|
368
|
+
hashBoxPermit(
|
|
369
|
+
permit: IPCrossChainSwapHub.BoxPermitStruct,
|
|
523
370
|
overrides?: CallOverrides
|
|
524
|
-
): Promise<
|
|
525
|
-
[string, string, boolean] & { box: string; salt: string; deployed: boolean }
|
|
526
|
-
>;
|
|
371
|
+
): Promise<string>;
|
|
527
372
|
|
|
528
|
-
"hashTypedData((address,uint32,uint256,uint256,address,uint256,
|
|
373
|
+
"hashTypedData(((address,uint32,uint256,uint256,uint256),address,uint256,address,uint256,address,address,bytes))"(
|
|
529
374
|
message: IPCrossChainSwapHub.SwapTokenMessageStruct,
|
|
530
375
|
overrides?: CallOverrides
|
|
531
376
|
): Promise<string>;
|
|
532
377
|
|
|
533
|
-
"hashTypedData((address,uint32,uint256,uint256,address,uint256,uint256))"(
|
|
378
|
+
"hashTypedData(((address,uint32,uint256,uint256,uint256),address,uint256,uint256))"(
|
|
534
379
|
message: IPCrossChainSwapHub.WithdrawTokenMessageStruct,
|
|
535
380
|
overrides?: CallOverrides
|
|
536
381
|
): Promise<string>;
|
|
537
382
|
|
|
538
|
-
"hashTypedData((address,uint32,uint256,uint256,
|
|
539
|
-
message: IPCrossChainSwapHub.BuyCrossChainPtMessageStruct,
|
|
540
|
-
overrides?: CallOverrides
|
|
541
|
-
): Promise<string>;
|
|
542
|
-
|
|
543
|
-
"hashTypedData((address,uint32,uint256,uint256,address,uint256,uint256,bool,address,address,bytes))"(
|
|
383
|
+
"hashTypedData(((address,uint32,uint256,uint256,uint256),address,uint256,uint256,address,address,bytes))"(
|
|
544
384
|
message: IPCrossChainSwapHub.BridgeTokenMessageStruct,
|
|
545
385
|
overrides?: CallOverrides
|
|
546
386
|
): Promise<string>;
|
|
547
387
|
|
|
548
|
-
|
|
388
|
+
proposer(overrides?: CallOverrides): Promise<string>;
|
|
549
389
|
|
|
550
|
-
|
|
390
|
+
requestNonce(
|
|
391
|
+
requestId: BigNumberish,
|
|
392
|
+
overrides?: CallOverrides
|
|
393
|
+
): Promise<BigNumber>;
|
|
551
394
|
|
|
552
395
|
setExecutor(
|
|
553
396
|
executor: string,
|
|
554
|
-
|
|
397
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
398
|
+
): Promise<ContractTransaction>;
|
|
399
|
+
|
|
400
|
+
setProposer(
|
|
401
|
+
proposer: string,
|
|
555
402
|
overrides?: Overrides & { from?: string | Promise<string> }
|
|
556
403
|
): Promise<ContractTransaction>;
|
|
557
404
|
|
|
@@ -568,65 +415,44 @@ export interface IPCrossChainSwapHub extends BaseContract {
|
|
|
568
415
|
): Promise<ContractTransaction>;
|
|
569
416
|
|
|
570
417
|
callStatic: {
|
|
571
|
-
BEACON_PROXY_CODE_CONTRACT(overrides?: CallOverrides): Promise<string>;
|
|
572
|
-
|
|
573
|
-
DEPOSIT_BOX_BEACON(overrides?: CallOverrides): Promise<string>;
|
|
574
|
-
|
|
575
|
-
DEPOSIT_BOX_CODE_HASH(overrides?: CallOverrides): Promise<string>;
|
|
576
|
-
|
|
577
418
|
bridgeToken(
|
|
578
419
|
message: IPCrossChainSwapHub.BridgeTokenMessageStruct,
|
|
579
420
|
signature: BytesLike,
|
|
580
421
|
overrides?: CallOverrides
|
|
581
422
|
): Promise<void>;
|
|
582
423
|
|
|
583
|
-
|
|
584
|
-
message: IPCrossChainSwapHub.BuyCrossChainPtMessageStruct,
|
|
585
|
-
signature: BytesLike,
|
|
586
|
-
overrides?: CallOverrides
|
|
587
|
-
): Promise<void>;
|
|
424
|
+
executor(overrides?: CallOverrides): Promise<string>;
|
|
588
425
|
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
boxId: BigNumberish,
|
|
592
|
-
overrides?: CallOverrides
|
|
593
|
-
): Promise<
|
|
594
|
-
[string, string, boolean] & {
|
|
595
|
-
box: string;
|
|
596
|
-
salt: string;
|
|
597
|
-
deployed: boolean;
|
|
598
|
-
}
|
|
599
|
-
>;
|
|
600
|
-
|
|
601
|
-
"hashTypedData((address,uint32,uint256,uint256,address,uint256,uint256,address,uint256,bool,bool,address,address,bytes))"(
|
|
602
|
-
message: IPCrossChainSwapHub.SwapTokenMessageStruct,
|
|
426
|
+
hashBoxPermit(
|
|
427
|
+
permit: IPCrossChainSwapHub.BoxPermitStruct,
|
|
603
428
|
overrides?: CallOverrides
|
|
604
429
|
): Promise<string>;
|
|
605
430
|
|
|
606
|
-
"hashTypedData((address,uint32,uint256,uint256,address,uint256,uint256))"(
|
|
607
|
-
message: IPCrossChainSwapHub.
|
|
431
|
+
"hashTypedData(((address,uint32,uint256,uint256,uint256),address,uint256,address,uint256,address,address,bytes))"(
|
|
432
|
+
message: IPCrossChainSwapHub.SwapTokenMessageStruct,
|
|
608
433
|
overrides?: CallOverrides
|
|
609
434
|
): Promise<string>;
|
|
610
435
|
|
|
611
|
-
"hashTypedData((address,uint32,uint256,uint256,
|
|
612
|
-
message: IPCrossChainSwapHub.
|
|
436
|
+
"hashTypedData(((address,uint32,uint256,uint256,uint256),address,uint256,uint256))"(
|
|
437
|
+
message: IPCrossChainSwapHub.WithdrawTokenMessageStruct,
|
|
613
438
|
overrides?: CallOverrides
|
|
614
439
|
): Promise<string>;
|
|
615
440
|
|
|
616
|
-
"hashTypedData((address,uint32,uint256,uint256,address,uint256,uint256,
|
|
441
|
+
"hashTypedData(((address,uint32,uint256,uint256,uint256),address,uint256,uint256,address,address,bytes))"(
|
|
617
442
|
message: IPCrossChainSwapHub.BridgeTokenMessageStruct,
|
|
618
443
|
overrides?: CallOverrides
|
|
619
444
|
): Promise<string>;
|
|
620
445
|
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
ownerNonce(owner: string, overrides?: CallOverrides): Promise<BigNumber>;
|
|
446
|
+
proposer(overrides?: CallOverrides): Promise<string>;
|
|
624
447
|
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
isExecutor: boolean,
|
|
448
|
+
requestNonce(
|
|
449
|
+
requestId: BigNumberish,
|
|
628
450
|
overrides?: CallOverrides
|
|
629
|
-
): Promise<
|
|
451
|
+
): Promise<BigNumber>;
|
|
452
|
+
|
|
453
|
+
setExecutor(executor: string, overrides?: CallOverrides): Promise<void>;
|
|
454
|
+
|
|
455
|
+
setProposer(proposer: string, overrides?: CallOverrides): Promise<void>;
|
|
630
456
|
|
|
631
457
|
swapToken(
|
|
632
458
|
message: IPCrossChainSwapHub.SwapTokenMessageStruct,
|
|
@@ -642,90 +468,68 @@ export interface IPCrossChainSwapHub extends BaseContract {
|
|
|
642
468
|
};
|
|
643
469
|
|
|
644
470
|
filters: {
|
|
645
|
-
"BridgeToken(address,uint32,address,address,uint256,uint256
|
|
646
|
-
owner?:
|
|
471
|
+
"BridgeToken(address,uint32,uint256,uint256,address,address,uint256,uint256)"(
|
|
472
|
+
owner?: null,
|
|
647
473
|
boxId?: null,
|
|
474
|
+
requestId?: null,
|
|
475
|
+
nonce?: null,
|
|
648
476
|
bridgeExtRouter?: null,
|
|
649
477
|
token?: null,
|
|
650
478
|
amountBridge?: null,
|
|
651
|
-
amountFee?: null
|
|
652
|
-
pullFromOwner?: null
|
|
479
|
+
amountFee?: null
|
|
653
480
|
): BridgeTokenEventFilter;
|
|
654
481
|
BridgeToken(
|
|
655
|
-
owner?:
|
|
482
|
+
owner?: null,
|
|
656
483
|
boxId?: null,
|
|
484
|
+
requestId?: null,
|
|
485
|
+
nonce?: null,
|
|
657
486
|
bridgeExtRouter?: null,
|
|
658
487
|
token?: null,
|
|
659
488
|
amountBridge?: null,
|
|
660
|
-
amountFee?: null
|
|
661
|
-
pullFromOwner?: null
|
|
489
|
+
amountFee?: null
|
|
662
490
|
): BridgeTokenEventFilter;
|
|
663
491
|
|
|
664
|
-
"
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
netPtReceived?: null,
|
|
673
|
-
pullFromOwner?: null
|
|
674
|
-
): BuyCrossChainPtEventFilter;
|
|
675
|
-
BuyCrossChainPt(
|
|
676
|
-
owner?: string | null,
|
|
677
|
-
boxId?: null,
|
|
678
|
-
tokenSpent?: null,
|
|
679
|
-
amountSpent?: null,
|
|
680
|
-
amountFee?: null,
|
|
681
|
-
ptAdapter?: null,
|
|
682
|
-
pt?: null,
|
|
683
|
-
netPtReceived?: null,
|
|
684
|
-
pullFromOwner?: null
|
|
685
|
-
): BuyCrossChainPtEventFilter;
|
|
686
|
-
|
|
687
|
-
"SetExecutor(address,bool)"(
|
|
688
|
-
executor?: string | null,
|
|
689
|
-
isExecutor?: null
|
|
690
|
-
): SetExecutorEventFilter;
|
|
691
|
-
SetExecutor(
|
|
692
|
-
executor?: string | null,
|
|
693
|
-
isExecutor?: null
|
|
694
|
-
): SetExecutorEventFilter;
|
|
695
|
-
|
|
696
|
-
"SwapToken(address,uint32,address,uint256,uint256,address,uint256,bool,bool)"(
|
|
697
|
-
owner?: string | null,
|
|
492
|
+
"SetExecutor(address)"(executor?: null): SetExecutorEventFilter;
|
|
493
|
+
SetExecutor(executor?: null): SetExecutorEventFilter;
|
|
494
|
+
|
|
495
|
+
"SetProposer(address)"(proposer?: null): SetProposerEventFilter;
|
|
496
|
+
SetProposer(proposer?: null): SetProposerEventFilter;
|
|
497
|
+
|
|
498
|
+
"SwapToken(address,uint32,uint256,uint256,address,uint256,address,uint256)"(
|
|
499
|
+
owner?: null,
|
|
698
500
|
boxId?: null,
|
|
501
|
+
requestId?: null,
|
|
502
|
+
nonce?: null,
|
|
699
503
|
tokenSpent?: null,
|
|
700
504
|
amountSpent?: null,
|
|
701
|
-
amountFee?: null,
|
|
702
505
|
tokenReceived?: null,
|
|
703
|
-
netTokenReceived?: null
|
|
704
|
-
pullFromOwner?: null,
|
|
705
|
-
sendToOwner?: null
|
|
506
|
+
netTokenReceived?: null
|
|
706
507
|
): SwapTokenEventFilter;
|
|
707
508
|
SwapToken(
|
|
708
|
-
owner?:
|
|
509
|
+
owner?: null,
|
|
709
510
|
boxId?: null,
|
|
511
|
+
requestId?: null,
|
|
512
|
+
nonce?: null,
|
|
710
513
|
tokenSpent?: null,
|
|
711
514
|
amountSpent?: null,
|
|
712
|
-
amountFee?: null,
|
|
713
515
|
tokenReceived?: null,
|
|
714
|
-
netTokenReceived?: null
|
|
715
|
-
pullFromOwner?: null,
|
|
716
|
-
sendToOwner?: null
|
|
516
|
+
netTokenReceived?: null
|
|
717
517
|
): SwapTokenEventFilter;
|
|
718
518
|
|
|
719
|
-
"WithdrawToken(address,uint32,address,uint256,uint256)"(
|
|
720
|
-
owner?:
|
|
519
|
+
"WithdrawToken(address,uint32,uint256,uint256,address,uint256,uint256)"(
|
|
520
|
+
owner?: null,
|
|
721
521
|
boxId?: null,
|
|
522
|
+
requestId?: null,
|
|
523
|
+
nonce?: null,
|
|
722
524
|
token?: null,
|
|
723
525
|
amountWithdraw?: null,
|
|
724
526
|
amountFee?: null
|
|
725
527
|
): WithdrawTokenEventFilter;
|
|
726
528
|
WithdrawToken(
|
|
727
|
-
owner?:
|
|
529
|
+
owner?: null,
|
|
728
530
|
boxId?: null,
|
|
531
|
+
requestId?: null,
|
|
532
|
+
nonce?: null,
|
|
729
533
|
token?: null,
|
|
730
534
|
amountWithdraw?: null,
|
|
731
535
|
amountFee?: null
|
|
@@ -733,57 +537,48 @@ export interface IPCrossChainSwapHub extends BaseContract {
|
|
|
733
537
|
};
|
|
734
538
|
|
|
735
539
|
estimateGas: {
|
|
736
|
-
BEACON_PROXY_CODE_CONTRACT(overrides?: CallOverrides): Promise<BigNumber>;
|
|
737
|
-
|
|
738
|
-
DEPOSIT_BOX_BEACON(overrides?: CallOverrides): Promise<BigNumber>;
|
|
739
|
-
|
|
740
|
-
DEPOSIT_BOX_CODE_HASH(overrides?: CallOverrides): Promise<BigNumber>;
|
|
741
|
-
|
|
742
540
|
bridgeToken(
|
|
743
541
|
message: IPCrossChainSwapHub.BridgeTokenMessageStruct,
|
|
744
542
|
signature: BytesLike,
|
|
745
543
|
overrides?: PayableOverrides & { from?: string | Promise<string> }
|
|
746
544
|
): Promise<BigNumber>;
|
|
747
545
|
|
|
748
|
-
|
|
749
|
-
message: IPCrossChainSwapHub.BuyCrossChainPtMessageStruct,
|
|
750
|
-
signature: BytesLike,
|
|
751
|
-
overrides?: PayableOverrides & { from?: string | Promise<string> }
|
|
752
|
-
): Promise<BigNumber>;
|
|
546
|
+
executor(overrides?: CallOverrides): Promise<BigNumber>;
|
|
753
547
|
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
boxId: BigNumberish,
|
|
548
|
+
hashBoxPermit(
|
|
549
|
+
permit: IPCrossChainSwapHub.BoxPermitStruct,
|
|
757
550
|
overrides?: CallOverrides
|
|
758
551
|
): Promise<BigNumber>;
|
|
759
552
|
|
|
760
|
-
"hashTypedData((address,uint32,uint256,uint256,address,uint256,
|
|
553
|
+
"hashTypedData(((address,uint32,uint256,uint256,uint256),address,uint256,address,uint256,address,address,bytes))"(
|
|
761
554
|
message: IPCrossChainSwapHub.SwapTokenMessageStruct,
|
|
762
555
|
overrides?: CallOverrides
|
|
763
556
|
): Promise<BigNumber>;
|
|
764
557
|
|
|
765
|
-
"hashTypedData((address,uint32,uint256,uint256,address,uint256,uint256))"(
|
|
558
|
+
"hashTypedData(((address,uint32,uint256,uint256,uint256),address,uint256,uint256))"(
|
|
766
559
|
message: IPCrossChainSwapHub.WithdrawTokenMessageStruct,
|
|
767
560
|
overrides?: CallOverrides
|
|
768
561
|
): Promise<BigNumber>;
|
|
769
562
|
|
|
770
|
-
"hashTypedData((address,uint32,uint256,uint256,
|
|
771
|
-
message: IPCrossChainSwapHub.BuyCrossChainPtMessageStruct,
|
|
772
|
-
overrides?: CallOverrides
|
|
773
|
-
): Promise<BigNumber>;
|
|
774
|
-
|
|
775
|
-
"hashTypedData((address,uint32,uint256,uint256,address,uint256,uint256,bool,address,address,bytes))"(
|
|
563
|
+
"hashTypedData(((address,uint32,uint256,uint256,uint256),address,uint256,uint256,address,address,bytes))"(
|
|
776
564
|
message: IPCrossChainSwapHub.BridgeTokenMessageStruct,
|
|
777
565
|
overrides?: CallOverrides
|
|
778
566
|
): Promise<BigNumber>;
|
|
779
567
|
|
|
780
|
-
|
|
568
|
+
proposer(overrides?: CallOverrides): Promise<BigNumber>;
|
|
781
569
|
|
|
782
|
-
|
|
570
|
+
requestNonce(
|
|
571
|
+
requestId: BigNumberish,
|
|
572
|
+
overrides?: CallOverrides
|
|
573
|
+
): Promise<BigNumber>;
|
|
783
574
|
|
|
784
575
|
setExecutor(
|
|
785
576
|
executor: string,
|
|
786
|
-
|
|
577
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
578
|
+
): Promise<BigNumber>;
|
|
579
|
+
|
|
580
|
+
setProposer(
|
|
581
|
+
proposer: string,
|
|
787
582
|
overrides?: Overrides & { from?: string | Promise<string> }
|
|
788
583
|
): Promise<BigNumber>;
|
|
789
584
|
|
|
@@ -801,69 +596,48 @@ export interface IPCrossChainSwapHub extends BaseContract {
|
|
|
801
596
|
};
|
|
802
597
|
|
|
803
598
|
populateTransaction: {
|
|
804
|
-
BEACON_PROXY_CODE_CONTRACT(
|
|
805
|
-
overrides?: CallOverrides
|
|
806
|
-
): Promise<PopulatedTransaction>;
|
|
807
|
-
|
|
808
|
-
DEPOSIT_BOX_BEACON(
|
|
809
|
-
overrides?: CallOverrides
|
|
810
|
-
): Promise<PopulatedTransaction>;
|
|
811
|
-
|
|
812
|
-
DEPOSIT_BOX_CODE_HASH(
|
|
813
|
-
overrides?: CallOverrides
|
|
814
|
-
): Promise<PopulatedTransaction>;
|
|
815
|
-
|
|
816
599
|
bridgeToken(
|
|
817
600
|
message: IPCrossChainSwapHub.BridgeTokenMessageStruct,
|
|
818
601
|
signature: BytesLike,
|
|
819
602
|
overrides?: PayableOverrides & { from?: string | Promise<string> }
|
|
820
603
|
): Promise<PopulatedTransaction>;
|
|
821
604
|
|
|
822
|
-
|
|
823
|
-
message: IPCrossChainSwapHub.BuyCrossChainPtMessageStruct,
|
|
824
|
-
signature: BytesLike,
|
|
825
|
-
overrides?: PayableOverrides & { from?: string | Promise<string> }
|
|
826
|
-
): Promise<PopulatedTransaction>;
|
|
605
|
+
executor(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
|
827
606
|
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
boxId: BigNumberish,
|
|
607
|
+
hashBoxPermit(
|
|
608
|
+
permit: IPCrossChainSwapHub.BoxPermitStruct,
|
|
831
609
|
overrides?: CallOverrides
|
|
832
610
|
): Promise<PopulatedTransaction>;
|
|
833
611
|
|
|
834
|
-
"hashTypedData((address,uint32,uint256,uint256,address,uint256,
|
|
612
|
+
"hashTypedData(((address,uint32,uint256,uint256,uint256),address,uint256,address,uint256,address,address,bytes))"(
|
|
835
613
|
message: IPCrossChainSwapHub.SwapTokenMessageStruct,
|
|
836
614
|
overrides?: CallOverrides
|
|
837
615
|
): Promise<PopulatedTransaction>;
|
|
838
616
|
|
|
839
|
-
"hashTypedData((address,uint32,uint256,uint256,address,uint256,uint256))"(
|
|
617
|
+
"hashTypedData(((address,uint32,uint256,uint256,uint256),address,uint256,uint256))"(
|
|
840
618
|
message: IPCrossChainSwapHub.WithdrawTokenMessageStruct,
|
|
841
619
|
overrides?: CallOverrides
|
|
842
620
|
): Promise<PopulatedTransaction>;
|
|
843
621
|
|
|
844
|
-
"hashTypedData((address,uint32,uint256,uint256,
|
|
845
|
-
message: IPCrossChainSwapHub.BuyCrossChainPtMessageStruct,
|
|
846
|
-
overrides?: CallOverrides
|
|
847
|
-
): Promise<PopulatedTransaction>;
|
|
848
|
-
|
|
849
|
-
"hashTypedData((address,uint32,uint256,uint256,address,uint256,uint256,bool,address,address,bytes))"(
|
|
622
|
+
"hashTypedData(((address,uint32,uint256,uint256,uint256),address,uint256,uint256,address,address,bytes))"(
|
|
850
623
|
message: IPCrossChainSwapHub.BridgeTokenMessageStruct,
|
|
851
624
|
overrides?: CallOverrides
|
|
852
625
|
): Promise<PopulatedTransaction>;
|
|
853
626
|
|
|
854
|
-
|
|
855
|
-
executor: string,
|
|
856
|
-
overrides?: CallOverrides
|
|
857
|
-
): Promise<PopulatedTransaction>;
|
|
627
|
+
proposer(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
|
858
628
|
|
|
859
|
-
|
|
860
|
-
|
|
629
|
+
requestNonce(
|
|
630
|
+
requestId: BigNumberish,
|
|
861
631
|
overrides?: CallOverrides
|
|
862
632
|
): Promise<PopulatedTransaction>;
|
|
863
633
|
|
|
864
634
|
setExecutor(
|
|
865
635
|
executor: string,
|
|
866
|
-
|
|
636
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
637
|
+
): Promise<PopulatedTransaction>;
|
|
638
|
+
|
|
639
|
+
setProposer(
|
|
640
|
+
proposer: string,
|
|
867
641
|
overrides?: Overrides & { from?: string | Promise<string> }
|
|
868
642
|
): Promise<PopulatedTransaction>;
|
|
869
643
|
|