@pendle/core-v2 1.1.0-mainnet → 1.1.0-testnet
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/LayerZeroHelper.sol/LayerZeroHelper.dbg.json +1 -1
- package/build/artifacts/contracts/LiquidityMining/CrossChainMsg/libraries/LayerZeroHelper.sol/LayerZeroHelper.json +2 -2
- package/build/artifacts/contracts/LiquidityMining/GaugeController/PendleGaugeControllerBaseUpg.sol/PendleGaugeControllerBaseUpg.dbg.json +1 -1
- package/build/artifacts/contracts/LiquidityMining/GaugeController/PendleGaugeControllerMainchainUpg.sol/PendleGaugeControllerMainchainUpg.dbg.json +1 -1
- package/build/artifacts/contracts/LiquidityMining/GaugeController/PendleGaugeControllerMainchainUpg.sol/PendleGaugeControllerMainchainUpg.json +2 -2
- package/build/artifacts/contracts/LiquidityMining/GaugeController/PendleGaugeControllerSidechainUpg.sol/PendleGaugeControllerSidechainUpg.dbg.json +1 -1
- package/build/artifacts/contracts/LiquidityMining/GaugeController/PendleGaugeControllerSidechainUpg.sol/PendleGaugeControllerSidechainUpg.json +2 -2
- package/build/artifacts/contracts/LiquidityMining/VeDistributor/PendleFeeDistributor.sol/PendleFeeDistributor.dbg.json +4 -0
- package/build/artifacts/contracts/LiquidityMining/VeDistributor/PendleFeeDistributor.sol/PendleFeeDistributor.json +592 -0
- package/build/artifacts/contracts/LiquidityMining/VotingController/PendleVotingControllerUpg.sol/PendleVotingControllerUpg.dbg.json +1 -1
- package/build/artifacts/contracts/LiquidityMining/VotingController/PendleVotingControllerUpg.sol/PendleVotingControllerUpg.json +2 -2
- package/build/artifacts/contracts/LiquidityMining/VotingController/VotingControllerStorageUpg.sol/VotingControllerStorageUpg.dbg.json +1 -1
- 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/core/BulkSeller/BulkSeller.sol/BulkSeller.dbg.json +1 -1
- package/build/artifacts/contracts/core/BulkSeller/BulkSeller.sol/BulkSeller.json +2 -2
- package/build/artifacts/contracts/core/BulkSeller/BulkSellerFactory.sol/BulkSellerFactory.dbg.json +1 -1
- package/build/artifacts/contracts/core/BulkSeller/BulkSellerFactory.sol/BulkSellerFactory.json +2 -2
- package/build/artifacts/contracts/core/BulkSeller/BulkSellerMathCore.sol/BulkSellerMathCore.dbg.json +1 -1
- package/build/artifacts/contracts/core/BulkSeller/BulkSellerMathCore.sol/BulkSellerMathCore.json +2 -2
- 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/PendleMarket.sol/PendleMarket.dbg.json +1 -1
- package/build/artifacts/contracts/core/Market/PendleMarket.sol/PendleMarket.json +2 -2
- package/build/artifacts/contracts/core/Market/PendleMarketFactory.sol/PendleMarketFactory.dbg.json +1 -1
- package/build/artifacts/contracts/core/Market/PendleMarketFactory.sol/PendleMarketFactory.json +2 -2
- 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/SYBase.sol/SYBase.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/SYBase.sol/SYBase.json +141 -0
- package/build/artifacts/contracts/core/StandardizedYield/SYBaseWithRewards.sol/SYBaseWithRewards.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/SYBaseWithRewards.sol/SYBaseWithRewards.json +141 -0
- package/build/artifacts/contracts/core/StandardizedYield/StEthHelper.sol/StEthHelper.dbg.json +4 -0
- package/build/artifacts/contracts/core/StandardizedYield/StEthHelper.sol/StEthHelper.json +10 -0
- package/build/artifacts/contracts/core/StandardizedYield/implementations/Ape/sAPE.sol/sAPE.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/Ape/sAPE.sol/sAPE.json +143 -2
- package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/PendleAura3EthSY.sol/PendleAura3EthSY.dbg.json +4 -0
- package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/PendleAura3EthSY.sol/PendleAura3EthSY.json +1257 -0
- package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/PendleAuraCbethWstethSY.sol/PendleAuraCbethWstethSY.dbg.json +4 -0
- package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/PendleAuraCbethWstethSY.sol/PendleAuraCbethWstethSY.json +1244 -0
- package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/PendleAuraWethRethSY.sol/PendleAuraWethRethSY.dbg.json +4 -0
- package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/PendleAuraWethRethSY.sol/PendleAuraWethRethSY.json +1218 -0
- package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/PendleAuraWethWstethSY.sol/PendleAuraWethWstethSY.dbg.json +4 -0
- package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/PendleAuraWethWstethSY.sol/PendleAuraWethWstethSY.json +1192 -0
- package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/base/ComposableStable/ComposableStableMath.sol/ComposableStableMath.dbg.json +4 -0
- package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/base/ComposableStable/ComposableStableMath.sol/ComposableStableMath.json +10 -0
- package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/base/ComposableStable/ComposableStablePreview.sol/ComposableStablePreview.dbg.json +4 -0
- package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/base/ComposableStable/ComposableStablePreview.sol/ComposableStablePreview.json +133 -0
- package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/base/FixedPoint.sol/FixedPoint.dbg.json +4 -0
- package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/base/FixedPoint.sol/FixedPoint.json +10 -0
- package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/base/MetaStable/MetaStableMath.sol/MetaStableMath.dbg.json +4 -0
- package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/base/MetaStable/MetaStableMath.sol/MetaStableMath.json +40 -0
- package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/base/MetaStable/MetaStablePreview.sol/MetaStablePreview.dbg.json +4 -0
- package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/base/MetaStable/MetaStablePreview.sol/MetaStablePreview.json +322 -0
- package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/base/PendleAuraBalancerStableLPSY.sol/PendleAuraBalancerStableLPSY.dbg.json +4 -0
- package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/base/PendleAuraBalancerStableLPSY.sol/PendleAuraBalancerStableLPSY.json +1171 -0
- package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/base/StablePoolUserData.sol/StablePoolUserData.dbg.json +4 -0
- package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/base/StablePoolUserData.sol/StablePoolUserData.json +10 -0
- package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/base/StablePreviewBase.sol/StablePreviewBase.dbg.json +4 -0
- package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/base/StablePreviewBase.sol/StablePreviewBase.json +133 -0
- package/build/artifacts/contracts/core/StandardizedYield/implementations/BenQi/PendleQiTokenHelper.sol/PendleQiTokenHelper.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/BenQi/PendleQiTokenHelper.sol/PendleQiTokenHelper.json +2 -2
- package/build/artifacts/contracts/core/StandardizedYield/implementations/BenQi/PendleQiTokenSY.sol/PendleQiTokenSY.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/BenQi/PendleQiTokenSY.sol/PendleQiTokenSY.json +143 -2
- package/build/artifacts/contracts/core/StandardizedYield/implementations/Convex/PendleCurveFraxUsdcSY.sol/PendleCurveFraxUsdcSY.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/Convex/PendleCurveFraxUsdcSY.sol/PendleCurveFraxUsdcSY.json +143 -2
- package/build/artifacts/contracts/core/StandardizedYield/implementations/Convex/PendleCurveUsdd3CrvSY.sol/PendleCurveUsdd3CrvSY.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/Convex/PendleCurveUsdd3CrvSY.sol/PendleCurveUsdd3CrvSY.json +143 -2
- package/build/artifacts/contracts/core/StandardizedYield/implementations/Convex/base/PendleConvexLPSY.sol/PendleConvexLPSY.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/Convex/base/PendleConvexLPSY.sol/PendleConvexLPSY.json +141 -0
- package/build/artifacts/contracts/core/StandardizedYield/implementations/GMX/GMXPreviewHelper.sol/GMXPreviewHelper.dbg.json +4 -0
- package/build/artifacts/contracts/core/StandardizedYield/implementations/GMX/GMXPreviewHelper.sol/GMXPreviewHelper.json +50 -0
- package/build/artifacts/contracts/core/StandardizedYield/implementations/GMX/PendleGlpSY.sol/PendleGlpSY.dbg.json +4 -0
- package/build/artifacts/contracts/core/StandardizedYield/implementations/GMX/PendleGlpSY.sol/PendleGlpSY.json +1163 -0
- package/build/artifacts/contracts/core/StandardizedYield/implementations/PendleLooksStakingSY.sol/PendleLooksStakingSY.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/PendleLooksStakingSY.sol/PendleLooksStakingSY.json +143 -2
- package/build/artifacts/contracts/core/StandardizedYield/implementations/PendleWstEthSY.sol/PendleWstEthSY.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/PendleWstEthSY.sol/PendleWstEthSY.json +143 -2
- 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/PendleYieldContractFactory.sol/PendleYieldContractFactory.dbg.json +1 -1
- package/build/artifacts/contracts/core/YieldContracts/PendleYieldContractFactory.sol/PendleYieldContractFactory.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/YieldContractsV2/InterestManagerYTV2.sol/InterestManagerYTV2.dbg.json +4 -0
- package/build/artifacts/contracts/core/YieldContractsV2/InterestManagerYTV2.sol/InterestManagerYTV2.json +66 -0
- package/build/artifacts/contracts/core/YieldContractsV2/PendlePrincipalTokenV2.sol/PendlePrincipalTokenV2.dbg.json +4 -0
- package/build/artifacts/contracts/core/YieldContractsV2/PendlePrincipalTokenV2.sol/PendlePrincipalTokenV2.json +476 -0
- package/build/artifacts/contracts/core/YieldContractsV2/PendleYieldContractFactoryV2.sol/PendleYieldContractFactoryV2.dbg.json +4 -0
- package/build/artifacts/contracts/core/YieldContractsV2/PendleYieldContractFactoryV2.sol/PendleYieldContractFactoryV2.json +590 -0
- package/build/artifacts/contracts/core/YieldContractsV2/PendleYieldTokenV2.sol/PendleYieldTokenV2.dbg.json +4 -0
- package/build/artifacts/contracts/core/YieldContractsV2/PendleYieldTokenV2.sol/PendleYieldTokenV2.json +1017 -0
- package/build/artifacts/contracts/core/libraries/ArrayLib.sol/ArrayLib.dbg.json +1 -1
- package/build/artifacts/contracts/core/libraries/ArrayLib.sol/ArrayLib.json +2 -2
- package/build/artifacts/contracts/core/libraries/Errors.sol/Errors.dbg.json +1 -1
- package/build/artifacts/contracts/core/libraries/Errors.sol/Errors.json +171 -5
- package/build/artifacts/contracts/core/libraries/TokenHelper.sol/TokenHelper.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/Balancer/IAsset.sol/IAsset.dbg.json +4 -0
- package/build/artifacts/contracts/interfaces/Balancer/IAsset.sol/IAsset.json +10 -0
- package/build/artifacts/contracts/interfaces/Balancer/IBalancerFees.sol/IBalancerFees.dbg.json +4 -0
- package/build/artifacts/contracts/interfaces/Balancer/IBalancerFees.sol/IBalancerFees.json +24 -0
- package/build/artifacts/contracts/interfaces/Balancer/IBalancerStablePreview.sol/IBalancerStablePreview.dbg.json +4 -0
- package/build/artifacts/contracts/interfaces/Balancer/IBalancerStablePreview.sol/IBalancerStablePreview.json +133 -0
- package/build/artifacts/contracts/interfaces/Balancer/IBasePool.sol/IBasePool.dbg.json +4 -0
- package/build/artifacts/contracts/interfaces/Balancer/IBasePool.sol/IBasePool.json +328 -0
- package/build/artifacts/contracts/interfaces/Balancer/IComposableStable.sol/IComposableStable.dbg.json +4 -0
- package/build/artifacts/contracts/interfaces/Balancer/IComposableStable.sol/IComposableStable.json +467 -0
- package/build/artifacts/contracts/interfaces/Balancer/IGauge.sol/IGauge.dbg.json +4 -0
- package/build/artifacts/contracts/interfaces/{IPFeeDistributorFactory.sol/IPFeeDistributorFactory.json → Balancer/IGauge.sol/IGauge.json} +18 -33
- package/build/artifacts/contracts/interfaces/Balancer/ILiquidityGaugeFactory.sol/ILiquidityGaugeFactory.dbg.json +4 -0
- package/build/artifacts/contracts/interfaces/Balancer/ILiquidityGaugeFactory.sol/ILiquidityGaugeFactory.json +30 -0
- package/build/artifacts/contracts/interfaces/Balancer/IMetaStablePool.sol/IMetaStablePool.dbg.json +4 -0
- package/build/artifacts/contracts/interfaces/Balancer/IMetaStablePool.sol/IMetaStablePool.json +398 -0
- package/build/artifacts/contracts/interfaces/Balancer/IRateProvider.sol/IRateProvider.dbg.json +4 -0
- package/build/artifacts/contracts/{router/kyberswap/KyberSwapHelper.sol/KyberSwapHelper.json → interfaces/Balancer/IRateProvider.sol/IRateProvider.json} +5 -5
- package/build/artifacts/contracts/interfaces/Balancer/IVault.sol/IVault.dbg.json +4 -0
- package/build/artifacts/contracts/interfaces/Balancer/IVault.sol/IVault.json +278 -0
- package/build/artifacts/contracts/interfaces/ConvexCurve/IRewards.sol/IRewards.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/ConvexCurve/IRewards.sol/IRewards.json +18 -0
- package/build/artifacts/contracts/interfaces/GMX/IGMXVault.sol/IGMXVault.dbg.json +4 -0
- package/build/artifacts/contracts/interfaces/GMX/IGMXVault.sol/IGMXVault.json +308 -0
- package/build/artifacts/contracts/interfaces/GMX/IGlpManager.sol/IGlpManager.dbg.json +4 -0
- package/build/artifacts/contracts/interfaces/GMX/IGlpManager.sol/IGlpManager.json +43 -0
- package/build/artifacts/contracts/interfaces/GMX/IRewardRouterV2.sol/IRewardRouterV2.dbg.json +4 -0
- package/build/artifacts/contracts/{LiquidityMining/FeeDistributor/EpochResultManager.sol/EpochResultManager.json → interfaces/GMX/IRewardRouterV2.sol/IRewardRouterV2.json} +80 -46
- package/build/artifacts/contracts/interfaces/GMX/IVaultPriceFeed.sol/IVaultPriceFeed.dbg.json +4 -0
- package/build/artifacts/contracts/interfaces/GMX/IVaultPriceFeed.sol/IVaultPriceFeed.json +45 -0
- package/build/artifacts/contracts/interfaces/IApeStaking.sol/IApeStaking.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IDiamondCut.sol/IDiamondCut.dbg.json +4 -0
- package/build/artifacts/contracts/interfaces/IDiamondCut.sol/IDiamondCut.json +93 -0
- package/build/artifacts/contracts/interfaces/IDiamondLoupe.sol/IDiamondLoupe.dbg.json +4 -0
- package/build/artifacts/contracts/interfaces/IDiamondLoupe.sol/IDiamondLoupe.json +87 -0
- package/build/artifacts/contracts/interfaces/IPActionAddRemoveLiq.sol/IPActionAddRemoveLiq.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPActionAddRemoveLiq.sol/IPActionAddRemoveLiq.json +338 -16
- package/build/artifacts/contracts/interfaces/IPActionMintRedeem.sol/IPActionMintRedeem.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPActionMintRedeem.sol/IPActionMintRedeem.json +105 -224
- package/build/artifacts/contracts/interfaces/IPActionMisc.sol/IPActionMisc.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPActionMisc.sol/IPActionMisc.json +56 -12
- package/build/artifacts/contracts/interfaces/IPActionSwapPT.sol/IPActionSwapPT.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPActionSwapPT.sol/IPActionSwapPT.json +52 -8
- package/build/artifacts/contracts/interfaces/IPActionSwapYT.sol/IPActionSwapYT.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPActionSwapYT.sol/IPActionSwapYT.json +231 -8
- package/build/artifacts/contracts/interfaces/IPAllAction.sol/IPAllAction.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPAllAction.sol/IPAllAction.json +675 -241
- package/build/artifacts/contracts/interfaces/IPBulkSeller.sol/IPBulkSeller.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPFeeDistributor.sol/IPFeeDistributor.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPFeeDistributor.sol/IPFeeDistributor.json +43 -32
- package/build/artifacts/contracts/interfaces/IPInterestManagerYTV2.sol/IPInterestManagerYTV2.dbg.json +4 -0
- package/build/artifacts/contracts/interfaces/IPInterestManagerYTV2.sol/IPInterestManagerYTV2.json +40 -0
- package/build/artifacts/contracts/interfaces/IPMarket.sol/IPMarket.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPVotingController.sol/IPVotingController.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPVotingEscrowMainchain.sol/IPVotingEscrowMainchain.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPYieldTokenV2.sol/IPYieldTokenV2.dbg.json +4 -0
- package/build/artifacts/contracts/interfaces/IPYieldTokenV2.sol/IPYieldTokenV2.json +679 -0
- package/build/artifacts/contracts/offchain-helpers/BulkSellerOffchain.sol/BulkSellerOffchain.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/BulkSellerOffchain.sol/BulkSellerOffchain.json +2 -2
- package/build/artifacts/contracts/offchain-helpers/MarketMathStatic.sol/MarketMathStatic.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/MarketMathStatic.sol/MarketMathStatic.json +2 -28
- package/build/artifacts/contracts/offchain-helpers/Multicall2.sol/Multicall2.dbg.json +4 -0
- package/build/artifacts/contracts/offchain-helpers/Multicall2.sol/Multicall2.json +322 -0
- package/build/artifacts/contracts/offchain-helpers/PendleMulticall.sol/PendleMulticall.dbg.json +4 -0
- package/build/artifacts/contracts/offchain-helpers/PendleMulticall.sol/PendleMulticall.json +47 -0
- package/build/artifacts/contracts/offchain-helpers/RouterStatic.sol/RouterStatic.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/RouterStatic.sol/RouterStatic.json +144 -60
- package/build/artifacts/contracts/router/ActionAddRemoveLiq.sol/ActionAddRemoveLiq.dbg.json +1 -1
- package/build/artifacts/contracts/router/ActionAddRemoveLiq.sol/ActionAddRemoveLiq.json +345 -62
- package/build/artifacts/contracts/router/ActionMintRedeem.sol/ActionMintRedeem.dbg.json +1 -1
- package/build/artifacts/contracts/router/ActionMintRedeem.sol/ActionMintRedeem.json +107 -260
- package/build/artifacts/contracts/router/ActionMisc.sol/ActionMisc.dbg.json +1 -1
- package/build/artifacts/contracts/router/ActionMisc.sol/ActionMisc.json +57 -18
- package/build/artifacts/contracts/router/ActionSwapPT.sol/ActionSwapPT.dbg.json +1 -1
- package/build/artifacts/contracts/router/ActionSwapPT.sol/ActionSwapPT.json +54 -65
- package/build/artifacts/contracts/router/ActionSwapYT.sol/ActionSwapYT.dbg.json +1 -1
- package/build/artifacts/contracts/router/ActionSwapYT.sol/ActionSwapYT.json +338 -45
- package/build/artifacts/contracts/router/PendleRouter.sol/PendleRouter.dbg.json +1 -1
- package/build/artifacts/contracts/router/PendleRouter.sol/PendleRouter.json +76 -67
- package/build/artifacts/contracts/router/base/ActionBaseCallback.sol/ActionBaseCallback.dbg.json +4 -0
- package/build/artifacts/contracts/router/base/ActionBaseCallback.sol/ActionBaseCallback.json +141 -0
- package/build/artifacts/contracts/router/base/ActionBaseMintRedeem.sol/ActionBaseMintRedeem.dbg.json +1 -1
- package/build/artifacts/contracts/router/base/ActionBaseMintRedeem.sol/ActionBaseMintRedeem.json +1 -15
- package/build/artifacts/contracts/router/base/CallbackHelper.sol/CallbackHelper.dbg.json +1 -1
- package/build/artifacts/contracts/router/base/MarketApproxLib.sol/MarketApproxPtInLib.dbg.json +1 -1
- package/build/artifacts/contracts/router/base/MarketApproxLib.sol/MarketApproxPtInLib.json +2 -2
- package/build/artifacts/contracts/router/base/MarketApproxLib.sol/MarketApproxPtOutLib.dbg.json +1 -1
- package/build/artifacts/contracts/router/base/MarketApproxLib.sol/MarketApproxPtOutLib.json +2 -2
- package/build/artifacts/contracts/router/swap-aggregator/1inch/I1inchAggregationRouterV5.sol/I1inchAggregationRouterV5.dbg.json +4 -0
- package/build/artifacts/contracts/router/swap-aggregator/1inch/I1inchAggregationRouterV5.sol/I1inchAggregationRouterV5.json +160 -0
- package/build/artifacts/contracts/router/swap-aggregator/1inch/OneInchAggregationRouterHelper.sol/OneInchAggregationRouterHelper.dbg.json +4 -0
- package/build/artifacts/contracts/router/swap-aggregator/1inch/OneInchAggregationRouterHelper.sol/OneInchAggregationRouterHelper.json +10 -0
- package/build/artifacts/contracts/router/swap-aggregator/IPSwapAggregator.sol/IPSwapAggregator.dbg.json +4 -0
- package/build/artifacts/contracts/router/swap-aggregator/IPSwapAggregator.sol/IPSwapAggregator.json +56 -0
- package/build/artifacts/contracts/router/swap-aggregator/PendleSwapAggregator.sol/PendleSwapAggregator.dbg.json +4 -0
- package/build/artifacts/contracts/router/swap-aggregator/PendleSwapAggregator.sol/PendleSwapAggregator.json +97 -0
- package/build/artifacts/contracts/router/swap-aggregator/kyberswap/KyberAggregationRouterHelper.sol/KyberAggregationRouterHelper.dbg.json +4 -0
- package/build/artifacts/contracts/router/swap-aggregator/kyberswap/KyberAggregationRouterHelper.sol/KyberAggregationRouterHelper.json +10 -0
- package/build/artifacts/contracts/router/swap-aggregator/kyberswap/ScaleDataHelperEthereum1.sol/ScaleDataHelperEthereum1.dbg.json +4 -0
- package/build/artifacts/contracts/router/swap-aggregator/kyberswap/ScaleDataHelperEthereum1.sol/ScaleDataHelperEthereum1.json +10 -0
- package/build/artifacts/contracts/router/swap-aggregator/kyberswap/interfaces/IAggregationExecutor.sol/IAggregationExecutor.dbg.json +4 -0
- package/build/artifacts/contracts/router/swap-aggregator/kyberswap/interfaces/IAggregationExecutor.sol/IAggregationExecutor.json +65 -0
- package/build/artifacts/contracts/router/swap-aggregator/kyberswap/interfaces/IExecutorHelperEthereum1.sol/IExecutorHelperEthereum1.dbg.json +4 -0
- package/build/artifacts/contracts/router/swap-aggregator/kyberswap/interfaces/IExecutorHelperEthereum1.sol/IExecutorHelperEthereum1.json +388 -0
- package/build/artifacts/contracts/router/swap-aggregator/kyberswap/interfaces/IHashflow.sol/IHashflow.dbg.json +4 -0
- package/build/artifacts/contracts/router/swap-aggregator/kyberswap/interfaces/IHashflow.sol/IHashflow.json +101 -0
- package/build/artifacts/contracts/router/swap-aggregator/kyberswap/interfaces/IMetaAggregationRouterV2.sol/IMetaAggregationRouterV2.dbg.json +4 -0
- package/build/artifacts/contracts/router/swap-aggregator/kyberswap/interfaces/IMetaAggregationRouterV2.sol/IMetaAggregationRouterV2.json +215 -0
- package/contracts/LiquidityMining/CrossChainMsg/libraries/LayerZeroHelper.sol +7 -9
- package/contracts/LiquidityMining/VeDistributor/PendleFeeDistributor.sol +224 -0
- package/contracts/core/BulkSeller/BulkSeller.sol +1 -1
- package/contracts/core/StandardizedYield/SYBase.sol +23 -5
- package/contracts/core/StandardizedYield/StEthHelper.sol +71 -0
- package/contracts/core/StandardizedYield/implementations/BalancerStable/PendleAura3EthSY.sol +170 -0
- package/contracts/core/StandardizedYield/implementations/BalancerStable/PendleAuraCbethWstethSY.sol +162 -0
- package/contracts/core/StandardizedYield/implementations/BalancerStable/PendleAuraWethRethSY.sol +134 -0
- package/contracts/core/StandardizedYield/implementations/BalancerStable/PendleAuraWethWstethSY.sol +154 -0
- package/contracts/core/StandardizedYield/implementations/BalancerStable/base/ComposableStable/ComposableStableMath.sol +289 -0
- package/contracts/core/StandardizedYield/implementations/BalancerStable/base/ComposableStable/ComposableStablePreview.sol +618 -0
- package/contracts/core/StandardizedYield/implementations/BalancerStable/base/FixedPoint.sol +68 -0
- package/contracts/core/StandardizedYield/implementations/BalancerStable/base/MetaStable/MetaStableMath.sol +322 -0
- package/contracts/core/StandardizedYield/implementations/BalancerStable/base/MetaStable/MetaStablePreview.sol +390 -0
- package/contracts/core/StandardizedYield/implementations/BalancerStable/base/PendleAuraBalancerStableLPSY.sol +329 -0
- package/contracts/core/StandardizedYield/implementations/BalancerStable/base/StablePoolUserData.sol +30 -0
- package/contracts/core/StandardizedYield/implementations/BalancerStable/base/StablePreviewBase.sol +189 -0
- package/contracts/core/StandardizedYield/implementations/GMX/GMXPreviewHelper.sol +142 -0
- package/contracts/core/StandardizedYield/implementations/GMX/PendleGlpSY.sol +244 -0
- package/contracts/core/StandardizedYield/implementations/GMX/README.md +61 -0
- package/contracts/core/YieldContracts/PendleYieldContractFactory.sol +10 -0
- package/contracts/core/YieldContractsV2/InterestManagerYTV2.sol +114 -0
- package/contracts/core/YieldContractsV2/PendlePrincipalTokenV2.sol +63 -0
- package/contracts/core/YieldContractsV2/PendleYieldContractFactoryV2.sol +200 -0
- package/contracts/core/YieldContractsV2/PendleYieldTokenV2.sol +485 -0
- package/contracts/core/libraries/ArrayLib.sol +12 -0
- package/contracts/core/libraries/Errors.sol +18 -2
- package/contracts/core/libraries/TokenHelper.sol +10 -0
- package/contracts/interfaces/Balancer/IAsset.sol +4 -0
- package/contracts/interfaces/Balancer/IBalancerFees.sol +6 -0
- package/contracts/interfaces/Balancer/IBalancerStablePreview.sol +22 -0
- package/contracts/interfaces/Balancer/IBasePool.sol +30 -0
- package/contracts/interfaces/Balancer/IComposableStable.sol +39 -0
- package/contracts/interfaces/Balancer/IGauge.sol +10 -0
- package/contracts/interfaces/Balancer/ILiquidityGaugeFactory.sol +6 -0
- package/contracts/interfaces/Balancer/IMetaStablePool.sol +31 -0
- package/contracts/interfaces/Balancer/IRateProvider.sol +6 -0
- package/contracts/interfaces/Balancer/IVault.sol +78 -0
- package/contracts/interfaces/ConvexCurve/IRewards.sol +5 -0
- package/contracts/interfaces/GMX/IGMXVault.sol +47 -0
- package/contracts/interfaces/GMX/IGlpManager.sol +8 -0
- package/contracts/interfaces/GMX/IRewardRouterV2.sol +35 -0
- package/contracts/interfaces/GMX/IVaultPriceFeed.sol +11 -0
- package/contracts/interfaces/IDiamondCut.sol +36 -0
- package/contracts/interfaces/IDiamondLoupe.sol +38 -0
- package/contracts/interfaces/IPActionAddRemoveLiq.sol +36 -1
- package/contracts/interfaces/IPActionMintRedeem.sol +2 -55
- package/contracts/interfaces/IPActionMisc.sol +20 -3
- package/contracts/interfaces/IPActionSwapPT.sol +1 -1
- package/contracts/interfaces/IPActionSwapYT.sol +28 -4
- package/contracts/interfaces/IPAllAction.sol +5 -3
- package/contracts/interfaces/IPFeeDistributor.sol +12 -10
- package/contracts/interfaces/IPInterestManagerYTV2.sol +13 -0
- package/contracts/interfaces/IPYieldTokenV2.sol +66 -0
- package/contracts/offchain-helpers/MarketMathStatic.sol +15 -0
- package/contracts/offchain-helpers/Multicall2.sol +103 -0
- package/contracts/offchain-helpers/PendleMulticall.sol +26 -0
- package/contracts/offchain-helpers/RouterStatic.sol +22 -0
- package/contracts/router/ActionAddRemoveLiq.sol +116 -6
- package/contracts/router/ActionMintRedeem.sol +12 -202
- package/contracts/router/ActionMisc.sol +45 -19
- package/contracts/router/ActionSwapPT.sol +0 -5
- package/contracts/router/ActionSwapYT.sol +98 -13
- package/contracts/router/PendleRouter.sol +211 -72
- package/contracts/router/{ActionCallback.sol → base/ActionBaseCallback.sol} +47 -47
- package/contracts/router/base/ActionBaseMintRedeem.sol +105 -60
- package/contracts/router/base/CallbackHelper.sol +137 -44
- package/contracts/router/base/MarketApproxLib.sol +227 -350
- package/contracts/router/swap-aggregator/1inch/I1inchAggregationRouterV5.sol +45 -0
- package/contracts/router/swap-aggregator/1inch/OneInchAggregationRouterHelper.sol +69 -0
- package/contracts/router/swap-aggregator/IPSwapAggregator.sol +30 -0
- package/contracts/router/swap-aggregator/PendleSwapAggregator.sol +63 -0
- package/contracts/router/swap-aggregator/kyberswap/KyberAggregationRouterHelper.sol +214 -0
- package/contracts/router/swap-aggregator/kyberswap/ScaleDataHelperEthereum1.sol +147 -0
- package/contracts/router/swap-aggregator/kyberswap/interfaces/IAggregationExecutor.sol +17 -0
- package/contracts/router/swap-aggregator/kyberswap/interfaces/IExecutorHelperEthereum1.sol +191 -0
- package/contracts/router/swap-aggregator/kyberswap/interfaces/IHashflow.sol +30 -0
- package/contracts/router/swap-aggregator/kyberswap/interfaces/IMetaAggregationRouterV2.sol +42 -0
- package/deployments/43113-core.json +30 -0
- package/deployments/43113-markets/APE-30-MARCH.json +10 -0
- package/deployments/43113-markets/USDC-FEB-2ND-2024.json +10 -0
- package/deployments/43113-markets/USDC-FEB-2ND.json +10 -0
- package/deployments/43113-markets/USDC-FEB-4TH.json +10 -0
- package/deployments/43113-markets/WETH-FEB-2ND.json +11 -0
- package/deployments/43113-markets/WETH-FEB-4TH.json +11 -0
- package/deployments/43113-offchain-helper.json +4 -0
- package/deployments/43113-testenv.json +22 -0
- package/deployments/80001-core.json +29 -0
- package/deployments/80001-markets/GLP-DEC-8TH.json +10 -0
- package/deployments/80001-markets/USDC-DEC-8TH.json +10 -0
- package/deployments/80001-markets/USDC-FEB-4TH.json +10 -0
- package/deployments/80001-markets/WETH-FEB-4TH.json +11 -0
- package/deployments/80001-offchain-helper.json +4 -0
- package/deployments/80001-testenv.json +22 -0
- package/package.json +6 -6
- package/typechain-types/ActionAddRemoveLiq.ts +203 -23
- package/typechain-types/ActionBaseCallback.ts +115 -0
- package/typechain-types/ActionMintRedeem.ts +29 -230
- package/typechain-types/ActionMisc.ts +78 -27
- package/typechain-types/ActionSwapPT.ts +26 -31
- package/typechain-types/ActionSwapYT.ts +202 -21
- package/typechain-types/BribeDistributor.ts +363 -0
- package/typechain-types/ComposableStablePreview.ts +217 -0
- package/typechain-types/DistributorBase.ts +363 -0
- package/typechain-types/FeeDistributor.ts +416 -0
- package/typechain-types/GMXPreviewHelper.ts +121 -0
- package/typechain-types/I1inchAggregationRouterV5.ts +257 -0
- package/typechain-types/IAggregationExecutor.ts +182 -0
- package/typechain-types/IBalancerFees.ts +89 -0
- package/typechain-types/IBalancerStablePreview.ts +217 -0
- package/typechain-types/IBasePool.ts +482 -0
- package/typechain-types/IComposableStable.ts +730 -0
- package/typechain-types/IDiamondCut.ts +152 -0
- package/typechain-types/IDiamondLoupe.ts +190 -0
- package/typechain-types/IExecutorHelperEthereum1.ts +643 -0
- package/typechain-types/IGMXVault.ts +494 -0
- package/typechain-types/IGauge.ts +160 -0
- package/typechain-types/IGlpManager.ts +115 -0
- package/typechain-types/IHashflow.ts +159 -0
- package/typechain-types/IKyberSwapAggregationRouterHelper.ts +109 -0
- package/typechain-types/ILiquidityGaugeFactory.ts +99 -0
- package/typechain-types/IMetaAggregationRouter.ts +213 -0
- package/typechain-types/IMetaAggregationRouterV2.ts +221 -0
- package/typechain-types/IMetaStablePool.ts +619 -0
- package/typechain-types/IMultihopRouterEthereum.ts +209 -0
- package/typechain-types/IPActionAddRemoveLiq.ts +213 -14
- package/typechain-types/IPActionMintRedeem.ts +29 -211
- package/typechain-types/IPActionMisc.ts +78 -27
- package/typechain-types/IPActionSwapPT.ts +26 -12
- package/typechain-types/IPActionSwapYT.ts +168 -12
- package/typechain-types/IPAllAction.ts +445 -227
- package/typechain-types/IPFeeDistributor.ts +61 -78
- package/typechain-types/IPFeeDistributorFactory.ts +53 -139
- package/typechain-types/IPInterestManagerYTV2.ts +117 -0
- package/typechain-types/IPSwapAggregator.ts +126 -0
- package/typechain-types/IPYieldTokenV2.ts +901 -0
- package/typechain-types/IRateProvider.ts +81 -0
- package/typechain-types/IRewardRouterV2.ts +303 -0
- package/typechain-types/IRewards.ts +35 -5
- package/typechain-types/ISwapAggregator.ts +124 -0
- package/typechain-types/IVault.ts +410 -0
- package/typechain-types/IVaultPriceFeed.ts +114 -0
- package/typechain-types/InterestManagerYTV2.ts +157 -0
- package/typechain-types/MetaStableMath.ts +113 -0
- package/typechain-types/MetaStablePreview.ts +501 -0
- package/typechain-types/Multicall2.ts +437 -0
- package/typechain-types/PendleAura3EthSY.ts +1600 -0
- package/typechain-types/PendleAuraBalancerStableLPSY.ts +1523 -0
- package/typechain-types/PendleAuraCbethWstethSY.ts +1587 -0
- package/typechain-types/PendleAuraWethRethSY.ts +1549 -0
- package/typechain-types/PendleAuraWethWstethSY.ts +1523 -0
- package/typechain-types/PendleConvexLPSY.ts +204 -0
- package/typechain-types/PendleCurveFraxUsdcSY.ts +204 -0
- package/typechain-types/PendleCurveUsdd3CrvSY.ts +204 -0
- package/typechain-types/PendleFeeDistributor.ts +409 -117
- package/typechain-types/PendleGlpSY.ts +1463 -0
- package/typechain-types/PendleLooksStakingSY.ts +204 -0
- package/typechain-types/PendleMulticall.ts +110 -0
- package/typechain-types/PendlePrincipalTokenV2.ts +614 -0
- package/typechain-types/PendleQiTokenSY.ts +204 -0
- package/typechain-types/PendleRouter.ts +109 -131
- package/typechain-types/PendleSwapAggregator.ts +167 -0
- package/typechain-types/PendleWstEthSY.ts +204 -0
- package/typechain-types/PendleYieldContractFactoryV2.ts +801 -0
- package/typechain-types/PendleYieldTokenV2.ts +1298 -0
- package/typechain-types/RouterStatic.ts +92 -0
- package/typechain-types/SAPE.ts +204 -0
- package/typechain-types/SYBase.ts +204 -0
- package/typechain-types/SYBaseWithRewards.ts +204 -0
- package/typechain-types/StEthHelper.ts +107 -0
- package/typechain-types/StablePreviewBase.ts +217 -0
- package/typechain-types/SwapAggregator.ts +406 -0
- package/typechain-types/factories/ActionAddRemoveLiq__factory.ts +346 -68
- package/typechain-types/factories/ActionBaseCallback__factory.ts +156 -0
- package/typechain-types/factories/ActionCallback__factory.ts +1 -1
- package/typechain-types/factories/ActionMintRedeem__factory.ts +108 -266
- package/typechain-types/factories/ActionMisc__factory.ts +56 -17
- package/typechain-types/factories/ActionSwapPTYT__factory.ts +1 -1
- package/typechain-types/factories/ActionSwapPT__factory.ts +55 -71
- package/typechain-types/factories/ActionSwapYT__factory.ts +341 -48
- package/typechain-types/factories/AggregationRouterHelper__factory.ts +1 -1
- package/typechain-types/factories/BribeDistributor__factory.ts +303 -0
- package/typechain-types/factories/BulkSellerFactory__factory.ts +1 -1
- package/typechain-types/factories/BulkSellerOffchain__factory.ts +1 -1
- package/typechain-types/factories/BulkSeller__factory.ts +1 -1
- package/typechain-types/factories/ComposableStablePreview__factory.ts +190 -0
- package/typechain-types/factories/DistributorBase__factory.ts +249 -0
- package/typechain-types/factories/Errors__factory.ts +170 -4
- package/typechain-types/factories/FeeDistributor__factory.ts +339 -0
- package/typechain-types/factories/GMXPreviewHelper__factory.ts +65 -0
- package/typechain-types/factories/I1inchAggregationRouterV5__factory.ts +179 -0
- package/typechain-types/factories/IAggregationExecutor__factory.ts +84 -0
- package/typechain-types/factories/IBalancerFees__factory.ts +36 -0
- package/typechain-types/factories/IBalancerStablePreview__factory.ts +152 -0
- package/typechain-types/factories/IBasePool__factory.ts +340 -0
- package/typechain-types/factories/IComposableStable__factory.ts +482 -0
- package/typechain-types/factories/IDiamondCut__factory.ts +105 -0
- package/typechain-types/factories/IDiamondLoupe__factory.ts +99 -0
- package/typechain-types/factories/IExecutorHelperEthereum1__factory.ts +407 -0
- package/typechain-types/factories/IGMXVault__factory.ts +320 -0
- package/typechain-types/factories/IGauge__factory.ts +70 -0
- package/typechain-types/factories/IGlpManager__factory.ts +55 -0
- package/typechain-types/factories/IHashflow__factory.ts +113 -0
- package/typechain-types/factories/IKyberSwapAggregationRouterHelper__factory.ts +56 -0
- package/typechain-types/factories/ILiquidityGaugeFactory__factory.ts +49 -0
- package/typechain-types/factories/IMetaAggregationRouterV2__factory.ts +234 -0
- package/typechain-types/factories/IMetaAggregationRouter__factory.ts +202 -0
- package/typechain-types/factories/IMetaStablePool__factory.ts +413 -0
- package/typechain-types/factories/IMultihopRouterEthereum__factory.ts +155 -0
- package/typechain-types/factories/IPActionAddRemoveLiq__factory.ts +338 -16
- package/typechain-types/factories/IPActionMintRedeem__factory.ts +105 -224
- package/typechain-types/factories/IPActionMisc__factory.ts +55 -11
- package/typechain-types/factories/IPActionSwapPT__factory.ts +52 -8
- package/typechain-types/factories/IPActionSwapYT__factory.ts +231 -8
- package/typechain-types/factories/IPAllAction__factory.ts +675 -241
- package/typechain-types/factories/IPFeeDistributorFactory__factory.ts +25 -34
- package/typechain-types/factories/IPFeeDistributor__factory.ts +42 -31
- package/typechain-types/factories/IPInterestManagerYTV2__factory.ts +59 -0
- package/typechain-types/factories/IPSwapAggregator__factory.ts +71 -0
- package/typechain-types/factories/IPYieldTokenV2__factory.ts +694 -0
- package/typechain-types/factories/IRateProvider__factory.ts +36 -0
- package/typechain-types/factories/IRewardRouterV2__factory.ts +180 -0
- package/typechain-types/factories/IRewards__factory.ts +18 -0
- package/typechain-types/factories/ISwapAggregator__factory.ts +66 -0
- package/typechain-types/factories/IVaultPriceFeed__factory.ts +60 -0
- package/typechain-types/factories/IVault__factory.ts +287 -0
- package/typechain-types/factories/InterestManagerYTV2__factory.ts +81 -0
- package/typechain-types/factories/MarketMathStatic__factory.ts +1 -27
- package/typechain-types/factories/MetaStableMath__factory.ts +93 -0
- package/typechain-types/factories/MetaStablePreview__factory.ts +375 -0
- package/typechain-types/factories/Multicall2__factory.ts +372 -0
- package/typechain-types/factories/OracleLib__factory.ts +1 -1
- package/typechain-types/factories/PendleAura3EthSY__factory.ts +1326 -0
- package/typechain-types/factories/PendleAuraBalancerStableLPSY__factory.ts +1190 -0
- package/typechain-types/factories/PendleAuraCbethWstethSY__factory.ts +1317 -0
- package/typechain-types/factories/PendleAuraWethRethSY__factory.ts +1291 -0
- package/typechain-types/factories/PendleAuraWethWstethSY__factory.ts +1265 -0
- package/typechain-types/factories/PendleConvexLPSY__factory.ts +141 -0
- package/typechain-types/factories/PendleCurveFraxUsdcSY__factory.ts +142 -1
- package/typechain-types/factories/PendleCurveUsdd3CrvSY__factory.ts +142 -1
- package/typechain-types/factories/PendleFeeDistributor__factory.ts +341 -66
- package/typechain-types/factories/PendleGaugeControllerMainchainUpg__factory.ts +1 -1
- package/typechain-types/factories/PendleGaugeControllerSidechainUpg__factory.ts +1 -1
- package/typechain-types/factories/PendleGlpSY__factory.ts +1249 -0
- package/typechain-types/factories/PendleLooksStakingSY__factory.ts +142 -1
- package/typechain-types/factories/PendleMarketFactory__factory.ts +1 -1
- package/typechain-types/factories/PendleMarket__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/PendleMulticall__factory.ts +100 -0
- package/typechain-types/factories/PendlePrincipalTokenV2__factory.ts +564 -0
- package/typechain-types/factories/PendlePrincipalToken__factory.ts +1 -1
- package/typechain-types/factories/PendleQiTokenHelper__factory.ts +1 -1
- package/typechain-types/factories/PendleQiTokenSY__factory.ts +142 -1
- package/typechain-types/factories/PendleRouter__factory.ts +75 -74
- package/typechain-types/factories/PendleSwapAggregator__factory.ts +154 -0
- package/typechain-types/factories/PendleVotingControllerUpg__factory.ts +1 -1
- package/typechain-types/factories/PendleWstEthSY__factory.ts +142 -1
- package/typechain-types/factories/PendleYieldContractFactoryV2__factory.ts +674 -0
- package/typechain-types/factories/PendleYieldContractFactory__factory.ts +1 -1
- package/typechain-types/factories/PendleYieldTokenV2__factory.ts +1109 -0
- package/typechain-types/factories/PendleYieldToken__factory.ts +1 -1
- package/typechain-types/factories/RouterStatic__factory.ts +69 -1
- package/typechain-types/factories/SAPE__factory.ts +142 -1
- package/typechain-types/factories/SYBaseWithRewards__factory.ts +141 -0
- package/typechain-types/factories/SYBase__factory.ts +141 -0
- package/typechain-types/factories/StEthHelper__factory.ts +62 -0
- package/typechain-types/factories/StablePreviewBase__factory.ts +148 -0
- package/typechain-types/factories/SwapAggregator__factory.ts +309 -0
- package/typechain-types/factories/VotingEscrowPendleMainchain__factory.ts +1 -1
- package/typechain-types/factories/VotingEscrowPendleSidechain__factory.ts +1 -1
- package/typechain-types/hardhat.d.ts +365 -86
- package/typechain-types/index.ts +86 -24
- package/build/artifacts/contracts/LiquidityMining/FeeDistributor/EpochResultManager.sol/EpochResultManager.dbg.json +0 -4
- package/build/artifacts/contracts/LiquidityMining/FeeDistributor/PendleFeeDistributor.sol/PendleFeeDistributor.dbg.json +0 -4
- package/build/artifacts/contracts/LiquidityMining/FeeDistributor/PendleFeeDistributor.sol/PendleFeeDistributor.json +0 -310
- package/build/artifacts/contracts/LiquidityMining/FeeDistributor/PendleFeeDistributorFactory.sol/PendleFeeDistributorFactory.dbg.json +0 -4
- package/build/artifacts/contracts/LiquidityMining/FeeDistributor/PendleFeeDistributorFactory.sol/PendleFeeDistributorFactory.json +0 -389
- package/build/artifacts/contracts/interfaces/IPActionSwapPTYT.sol/IPActionSwapPTYT.dbg.json +0 -4
- package/build/artifacts/contracts/interfaces/IPActionSwapPTYT.sol/IPActionSwapPTYT.json +0 -190
- package/build/artifacts/contracts/interfaces/IPFeeDistributorFactory.sol/IPFeeDistributorFactory.dbg.json +0 -4
- package/build/artifacts/contracts/router/ActionCallback.sol/ActionCallback.dbg.json +0 -4
- package/build/artifacts/contracts/router/ActionCallback.sol/ActionCallback.json +0 -165
- package/build/artifacts/contracts/router/ActionSwapPTYT.sol/ActionSwapPTYT.dbg.json +0 -4
- package/build/artifacts/contracts/router/ActionSwapPTYT.sol/ActionSwapPTYT.json +0 -343
- package/build/artifacts/contracts/router/kyberswap/AggregationRouterHelper.sol/AggregationRouterHelper.dbg.json +0 -4
- package/build/artifacts/contracts/router/kyberswap/AggregationRouterHelper.sol/AggregationRouterHelper.json +0 -224
- package/build/artifacts/contracts/router/kyberswap/IAggregatorRouterHelper.sol/IAggregationRouterHelper.dbg.json +0 -4
- package/build/artifacts/contracts/router/kyberswap/IAggregatorRouterHelper.sol/IAggregationRouterHelper.json +0 -35
- package/build/artifacts/contracts/router/kyberswap/IMultihopRouter.sol/IMultihopRouter.dbg.json +0 -4
- package/build/artifacts/contracts/router/kyberswap/IMultihopRouter.sol/IMultihopRouter.json +0 -136
- package/build/artifacts/contracts/router/kyberswap/KyberSwapHelper.sol/KyberSwapHelper.dbg.json +0 -4
- package/contracts/LiquidityMining/FeeDistributor/EpochResultManager.sol +0 -159
- package/contracts/LiquidityMining/FeeDistributor/PendleFeeDistributor.sol +0 -99
- package/contracts/LiquidityMining/FeeDistributor/PendleFeeDistributorFactory.sol +0 -70
- package/contracts/interfaces/IPActionSwapPTYT.sol +0 -31
- package/contracts/interfaces/IPFeeDistributorFactory.sol +0 -14
- package/contracts/router/ActionSwapPTYT.sol +0 -108
- package/contracts/router/kyberswap/AggregationRouterHelper.sol +0 -317
- package/contracts/router/kyberswap/IAggregatorRouterHelper.sol +0 -10
- package/contracts/router/kyberswap/IMultihopRouter.sol +0 -139
- package/contracts/router/kyberswap/KyberSwapHelper.sol +0 -79
- package/deployments/1-core.json +0 -29
- package/deployments/1-markets/APE-JUNE-29.json +0 -8
- package/deployments/1-markets/FRAXUSDC-CURVELP-MARCH30.json +0 -11
- package/deployments/1-markets/LOOKS-STAKING-MARCH30.json +0 -10
- package/deployments/1-markets/STETH-JUNE29.json +0 -10
- package/deployments/1-markets/STETH-MARCH30.json +0 -10
|
@@ -28,16 +28,6 @@ const _abi = [
|
|
|
28
28
|
name: "_ACTION_SWAP_YT",
|
|
29
29
|
type: "address",
|
|
30
30
|
},
|
|
31
|
-
{
|
|
32
|
-
internalType: "address",
|
|
33
|
-
name: "_ACTION_SWAP_PTYT",
|
|
34
|
-
type: "address",
|
|
35
|
-
},
|
|
36
|
-
{
|
|
37
|
-
internalType: "address",
|
|
38
|
-
name: "_ACTION_CALLBACK",
|
|
39
|
-
type: "address",
|
|
40
|
-
},
|
|
41
31
|
{
|
|
42
32
|
internalType: "address",
|
|
43
33
|
name: "_ACTION_MISC",
|
|
@@ -59,51 +49,71 @@ const _abi = [
|
|
|
59
49
|
type: "error",
|
|
60
50
|
},
|
|
61
51
|
{
|
|
62
|
-
|
|
63
|
-
type: "fallback",
|
|
64
|
-
},
|
|
65
|
-
{
|
|
66
|
-
inputs: [],
|
|
67
|
-
name: "ACTION_ADD_REMOVE_LIQ",
|
|
68
|
-
outputs: [
|
|
52
|
+
inputs: [
|
|
69
53
|
{
|
|
70
54
|
internalType: "address",
|
|
71
|
-
name: "",
|
|
55
|
+
name: "facet",
|
|
72
56
|
type: "address",
|
|
73
57
|
},
|
|
74
58
|
],
|
|
75
|
-
|
|
76
|
-
type: "
|
|
59
|
+
name: "RouterInvalidFacet",
|
|
60
|
+
type: "error",
|
|
77
61
|
},
|
|
78
62
|
{
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
outputs: [
|
|
63
|
+
anonymous: false,
|
|
64
|
+
inputs: [
|
|
82
65
|
{
|
|
66
|
+
components: [
|
|
67
|
+
{
|
|
68
|
+
internalType: "address",
|
|
69
|
+
name: "facetAddress",
|
|
70
|
+
type: "address",
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
internalType: "enum IDiamondCut.FacetCutAction",
|
|
74
|
+
name: "action",
|
|
75
|
+
type: "uint8",
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
internalType: "bytes4[]",
|
|
79
|
+
name: "functionSelectors",
|
|
80
|
+
type: "bytes4[]",
|
|
81
|
+
},
|
|
82
|
+
],
|
|
83
|
+
indexed: false,
|
|
84
|
+
internalType: "struct IDiamondCut.FacetCut[]",
|
|
85
|
+
name: "_diamondCut",
|
|
86
|
+
type: "tuple[]",
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
indexed: false,
|
|
83
90
|
internalType: "address",
|
|
84
|
-
name: "",
|
|
91
|
+
name: "_init",
|
|
85
92
|
type: "address",
|
|
86
93
|
},
|
|
94
|
+
{
|
|
95
|
+
indexed: false,
|
|
96
|
+
internalType: "bytes",
|
|
97
|
+
name: "_calldata",
|
|
98
|
+
type: "bytes",
|
|
99
|
+
},
|
|
87
100
|
],
|
|
88
|
-
|
|
89
|
-
type: "
|
|
101
|
+
name: "DiamondCut",
|
|
102
|
+
type: "event",
|
|
90
103
|
},
|
|
91
104
|
{
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
105
|
+
stateMutability: "payable",
|
|
106
|
+
type: "fallback",
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
inputs: [
|
|
95
110
|
{
|
|
96
|
-
internalType: "
|
|
97
|
-
name: "",
|
|
98
|
-
type: "
|
|
111
|
+
internalType: "bytes4",
|
|
112
|
+
name: "sig",
|
|
113
|
+
type: "bytes4",
|
|
99
114
|
},
|
|
100
115
|
],
|
|
101
|
-
|
|
102
|
-
type: "function",
|
|
103
|
-
},
|
|
104
|
-
{
|
|
105
|
-
inputs: [],
|
|
106
|
-
name: "ACTION_MISC",
|
|
116
|
+
name: "facetAddress",
|
|
107
117
|
outputs: [
|
|
108
118
|
{
|
|
109
119
|
internalType: "address",
|
|
@@ -116,57 +126,56 @@ const _abi = [
|
|
|
116
126
|
},
|
|
117
127
|
{
|
|
118
128
|
inputs: [],
|
|
119
|
-
name: "
|
|
129
|
+
name: "facetAddresses",
|
|
120
130
|
outputs: [
|
|
121
131
|
{
|
|
122
|
-
internalType: "address",
|
|
132
|
+
internalType: "address[]",
|
|
123
133
|
name: "",
|
|
124
|
-
type: "address",
|
|
134
|
+
type: "address[]",
|
|
125
135
|
},
|
|
126
136
|
],
|
|
127
137
|
stateMutability: "view",
|
|
128
138
|
type: "function",
|
|
129
139
|
},
|
|
130
140
|
{
|
|
131
|
-
inputs: [
|
|
132
|
-
name: "ACTION_SWAP_PTYT",
|
|
133
|
-
outputs: [
|
|
141
|
+
inputs: [
|
|
134
142
|
{
|
|
135
143
|
internalType: "address",
|
|
136
|
-
name: "",
|
|
144
|
+
name: "facet",
|
|
137
145
|
type: "address",
|
|
138
146
|
},
|
|
139
147
|
],
|
|
140
|
-
|
|
141
|
-
type: "function",
|
|
142
|
-
},
|
|
143
|
-
{
|
|
144
|
-
inputs: [],
|
|
145
|
-
name: "ACTION_SWAP_YT",
|
|
148
|
+
name: "facetFunctionSelectors",
|
|
146
149
|
outputs: [
|
|
147
150
|
{
|
|
148
|
-
internalType: "
|
|
149
|
-
name: "",
|
|
150
|
-
type: "
|
|
151
|
+
internalType: "bytes4[]",
|
|
152
|
+
name: "res",
|
|
153
|
+
type: "bytes4[]",
|
|
151
154
|
},
|
|
152
155
|
],
|
|
153
156
|
stateMutability: "view",
|
|
154
157
|
type: "function",
|
|
155
158
|
},
|
|
156
159
|
{
|
|
157
|
-
inputs: [
|
|
158
|
-
|
|
159
|
-
internalType: "bytes4",
|
|
160
|
-
name: "sig",
|
|
161
|
-
type: "bytes4",
|
|
162
|
-
},
|
|
163
|
-
],
|
|
164
|
-
name: "getRouterImplementation",
|
|
160
|
+
inputs: [],
|
|
161
|
+
name: "facets",
|
|
165
162
|
outputs: [
|
|
166
163
|
{
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
164
|
+
components: [
|
|
165
|
+
{
|
|
166
|
+
internalType: "address",
|
|
167
|
+
name: "facetAddress",
|
|
168
|
+
type: "address",
|
|
169
|
+
},
|
|
170
|
+
{
|
|
171
|
+
internalType: "bytes4[]",
|
|
172
|
+
name: "functionSelectors",
|
|
173
|
+
type: "bytes4[]",
|
|
174
|
+
},
|
|
175
|
+
],
|
|
176
|
+
internalType: "struct IDiamondLoupe.Facet[]",
|
|
177
|
+
name: "facets_",
|
|
178
|
+
type: "tuple[]",
|
|
170
179
|
},
|
|
171
180
|
],
|
|
172
181
|
stateMutability: "view",
|
|
@@ -179,7 +188,7 @@ const _abi = [
|
|
|
179
188
|
];
|
|
180
189
|
|
|
181
190
|
const _bytecode =
|
|
182
|
-
"0x61016060405234801561001157600080fd5b5060405161093338038061093383398101604081905261003091610082565b6001600160a01b0396871660805294861660a05292851660c05290841660e0528316610100528216610120521661014052610108565b80516001600160a01b038116811461007d57600080fd5b919050565b600080600080600080600060e0888a03121561009d57600080fd5b6100a688610066565b96506100b460208901610066565b95506100c260408901610066565b94506100d060608901610066565b93506100de60808901610066565b92506100ec60a08901610066565b91506100fa60c08901610066565b905092959891949750929550565b60805160a05160c05160e0516101005161012051610140516107a26101916000396000818161016a01526106ae0152600081816101d2015261066f01526000818161019e0152610630015260008181609201526105d501526000818160e2015261050f0152600081816101160152610448015260008181610206015261031501526107a26000f3fe60806040526004361061006f5760003560e01c806305b91e121461008057806306ddc9a6146100d0578063552407d21461010457806376e1df48146101385780637c868aa11461015857806386df09761461018c578063a25228c9146101c0578063b06cc6b0146101f457610076565b3661007657005b61007e610228565b005b34801561008c57600080fd5b506100b47f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b03909116815260200160405180910390f35b3480156100dc57600080fd5b506100b47f000000000000000000000000000000000000000000000000000000000000000081565b34801561011057600080fd5b506100b47f000000000000000000000000000000000000000000000000000000000000000081565b34801561014457600080fd5b506100b461015336600461073b565b61023a565b34801561016457600080fd5b506100b47f000000000000000000000000000000000000000000000000000000000000000081565b34801561019857600080fd5b506100b47f000000000000000000000000000000000000000000000000000000000000000081565b3480156101cc57600080fd5b506100b47f000000000000000000000000000000000000000000000000000000000000000081565b34801561020057600080fd5b506100b47f000000000000000000000000000000000000000000000000000000000000000081565b6102386102336106fb565b610717565b565b60006001600160e01b031982166346fd07b160e01b148061026b57506001600160e01b031982166316dfd9d360e31b145b8061028657506001600160e01b03198216637298779b60e01b145b806102a157506001600160e01b031982166359be67bf60e01b145b806102bc57506001600160e01b03198216630d4318d960e11b145b806102d757506001600160e01b0319821663339748cb60e01b145b806102f257506001600160e01b03198216631efc6ebd60e31b145b8061030d57506001600160e01b03198216635b8c874f60e01b145b1561033957507f0000000000000000000000000000000000000000000000000000000000000000919050565b6001600160e01b03198216634bf713cf60e11b148061036857506001600160e01b03198216630cf8553560e31b145b8061038357506001600160e01b03198216633af1f32960e01b145b8061039e57506001600160e01b0319821663409c7a8960e01b145b806103b957506001600160e01b03198216635b67cdad60e01b145b806103d457506001600160e01b0319821663b7d75b8b60e01b145b806103ef57506001600160e01b0319821663522e181160e11b145b8061040a57506001600160e01b0319821663694ab55960e01b145b8061042557506001600160e01b0319821663178d29d360e01b145b8061044057506001600160e01b0319821663942244eb60e01b145b1561046c57507f0000000000000000000000000000000000000000000000000000000000000000919050565b6001600160e01b03198216632032aecd60e01b148061049b57506001600160e01b0319821663dd371acd60e01b145b806104b657506001600160e01b031982166335c5ef9960e11b145b806104d157506001600160e01b031982166383c71b6960e01b145b806104ec57506001600160e01b03198216631b7077d560e01b145b8061050757506001600160e01b031982166359d697d560e11b145b1561053357507f0000000000000000000000000000000000000000000000000000000000000000919050565b6001600160e01b0319821662d5f59560e61b148061056157506001600160e01b03198216632fc6f50d60e21b145b8061057c57506001600160e01b0319821663fdd71f4360e01b145b8061059757506001600160e01b0319821663a000aaa960e01b145b806105b257506001600160e01b03198216630abbc79d60e41b145b806105cd57506001600160e01b03198216631c2b981360e31b145b156105f957507f0000000000000000000000000000000000000000000000000000000000000000919050565b6001600160e01b0319821663190c351360e31b148061062857506001600160e01b0319821663448b9b9560e01b145b1561065457507f0000000000000000000000000000000000000000000000000000000000000000919050565b6302dbe0c760e11b6001600160e01b031983160161069357507f0000000000000000000000000000000000000000000000000000000000000000919050565b637dbecb7760e01b6001600160e01b03198316016106d257507f0000000000000000000000000000000000000000000000000000000000000000919050565b604051636ad67de160e11b81526001600160e01b03198316600482015260240160405180910390fd5b60006107126000356001600160e01b03191661023a565b905090565b3660008037600080366000845af43d6000803e808015610736573d6000f35b3d6000fd5b60006020828403121561074d57600080fd5b81356001600160e01b03198116811461076557600080fd5b939250505056fea264697066735822122010a230a33c89bda1290a1ee4951e8cd6076eb97c83153712d231144219c7373e64736f6c63430008110033";
|
|
191
|
+
"0x6101206040523480156200001257600080fd5b5060405162002db238038062002db2833981016040819052620000359162000f1e565b6001600160a01b0380861660805284811660a05283811660c05282811660e0528116610100526200006562000070565b5050505050620010d3565b60006200007c62000237565b80519091506000816001600160401b038111156200009e576200009e62000f8e565b604051908082528060200260200182016040528015620000ed57816020015b60408051606080820183526000808352602083015291810191909152815260200190600190039081620000bd5790505b50905060005b82811015620001f55783818151811062000111576200011162000fa4565b60200260200101516000015182828151811062000132576200013262000fa4565b6020026020010151600001906001600160a01b031690816001600160a01b03168152505060008282815181106200016d576200016d62000fa4565b60200260200101516020019060028111156200018d576200018d62000fba565b90816002811115620001a357620001a362000fba565b81525050838181518110620001bc57620001bc62000fa4565b602002602001015160200151828281518110620001dd57620001dd62000fa4565b602090810291909101015160400152600101620000f3565b507f8faa70878671ccd212d20771b795c50af8fd3ff6cf27f4bde57e5d4de0aeb6738160006040516200022a92919062000fd0565b60405180910390a1505050565b606060006200024562000371565b8051909150806001600160401b0381111562000265576200026562000f8e565b604051908082528060200260200182016040528015620002ad57816020015b604080518082019091526000815260606020820152815260200190600190039081620002845790505b50925060005b818110156200036b57828181518110620002d157620002d162000fa4565b6020026020010151848281518110620002ee57620002ee62000fa4565b6020026020010151600001906001600160a01b031690816001600160a01b0316815250506200033f8382815181106200032b576200032b62000fa4565b6020026020010151620004ea60201b60201c565b84828151811062000354576200035462000fa4565b6020908102919091018101510152600101620002b3565b50505090565b60408051600680825260e08201909252606091600091906020820160c08036833701905050905060a05181600081518110620003b157620003b162000fa4565b60200260200101906001600160a01b031690816001600160a01b03168152505060805181600181518110620003ea57620003ea62000fa4565b60200260200101906001600160a01b031690816001600160a01b03168152505060c0518160028151811062000423576200042362000fa4565b60200260200101906001600160a01b031690816001600160a01b03168152505060e051816003815181106200045c576200045c62000fa4565b60200260200101906001600160a01b031690816001600160a01b031681525050610100518160048151811062000496576200049662000fa4565b60200260200101906001600160a01b031690816001600160a01b0316815250503081600581518110620004cd57620004cd62000fa4565b6001600160a01b0390921660209283029190910190910152919050565b606060a0516001600160a01b0316826001600160a01b031603620007e55760408051600c8082526101a082019092529060208201610180803683370190505090506397ee279e60e01b8160008151811062000549576200054962000fa4565b6001600160e01b03199092166020928302919091019091015280516365ac8f5960e11b908290600190811062000583576200058362000fa4565b6001600160e01b0319909216602092830291909101909101528051633af1f32960e01b9082906002908110620005bd57620005bd62000fa4565b6001600160e01b031990921660209283029190910190910152805163409c7a8960e01b9082906003908110620005f757620005f762000fa4565b6001600160e01b031990921660209283029190910190910152805163015491d160e01b908290600490811062000631576200063162000fa4565b6001600160e01b031990921660209283029190910190910152805163b7d75b8b60e01b90829060059081106200066b576200066b62000fa4565b6001600160e01b031990921660209283029190910190910152805163e6eaba0160e01b9082906006908110620006a557620006a562000fa4565b6001600160e01b031990921660209283029190910190910152805163694ab55960e01b9082906007908110620006df57620006df62000fa4565b6001600160e01b031990921660209283029190910190910152805163178d29d360e01b908290600890811062000719576200071962000fa4565b6001600160e01b031990921660209283029190910190910152805163690807ad60e01b908290600990811062000753576200075362000fa4565b6001600160e01b0319909216602092830291909101909101528051636fde40a760e11b908290600a9081106200078d576200078d62000fa4565b6001600160e01b0319909216602092830291909101909101528051634221c25560e11b908290600b908110620007c757620007c762000fa4565b6001600160e01b031990921660209283029190910190910152919050565b6080516001600160a01b0316826001600160a01b0316036200099d576040805160078082526101008201909252906020820160e080368337019050509050631a8631b260e01b8160008151811062000841576200084162000fa4565b6001600160e01b031990921660209283029190910190910152805163237596db60e11b90829060019081106200087b576200087b62000fa4565b6001600160e01b031990921660209283029190910190910152805163221f328960e11b9082906002908110620008b557620008b562000fa4565b6001600160e01b0319909216602092830291909101909101528051631efc6ebd60e31b9082906003908110620008ef57620008ef62000fa4565b6001600160e01b031990921660209283029190910190910152805163339748cb60e01b908290600490811062000929576200092962000fa4565b6001600160e01b031990921660209283029190910190910152805163527df19960e01b908290600590811062000963576200096362000fa4565b6001600160e01b03199092166020928302919091019091015280516342d94c9b60e11b9082906006908110620007c757620007c762000fa4565b60c0516001600160a01b0316826001600160a01b03160362000b1a5760408051600680825260e08201909252906020820160c080368337019050509050632032aecd60e01b81600081518110620009f857620009f862000fa4565b6001600160e01b0319909216602092830291909101909101528051635c2fa85d60e11b908290600190811062000a325762000a3262000fa4565b6001600160e01b03199092166020928302919091019091015280516383c71b6960e01b908290600290811062000a6c5762000a6c62000fa4565b6001600160e01b031990921660209283029190910190910152805163a5f9931b60e01b908290600390811062000aa65762000aa662000fa4565b6001600160e01b031990921660209283029190910190910152805163dd371acd60e01b908290600490811062000ae05762000ae062000fa4565b6001600160e01b03199092166020928302919091019091015280516335c5ef9960e11b9082906005908110620007c757620007c762000fa4565b60e0516001600160a01b0316826001600160a01b03160362000d4657604080516009808252610140820190925290602082016101208036833701905050905063fa483e7260e01b8160008151811062000b775762000b7762000fa4565b6001600160e01b031990921660209283029190910190910152805163190c351360e31b908290600190811062000bb15762000bb162000fa4565b6001600160e01b031990921660209283029190910190910152805163448b9b9560e01b908290600290811062000beb5762000beb62000fa4565b6001600160e01b031990921660209283029190910190910152805163fdd71f4360e01b908290600390811062000c255762000c2562000fa4565b6001600160e01b0319909216602092830291909101909101528051636254e3ef60e11b908290600490811062000c5f5762000c5f62000fa4565b6001600160e01b031990921660209283029190910190910152805162d5f59560e61b908290600590811062000c985762000c9862000fa4565b6001600160e01b031990921660209283029190910190910152805163358c23e960e21b908290600690811062000cd25762000cd262000fa4565b6001600160e01b0319909216602092830291909101909101528051632fc6f50d60e21b908290600790811062000d0c5762000d0c62000fa4565b6001600160e01b0319909216602092830291909101909101528051631c2b981360e31b9082906008908110620007c757620007c762000fa4565b610100516001600160a01b0316826001600160a01b03160362000ddb57604080516002808252606082018352909160208301908036833701905050905063acdb32df60e01b8160008151811062000da15762000da162000fa4565b6001600160e01b031990921660209283029190910190910152805163d617b03b60e01b9082906001908110620007c757620007c762000fa4565b306001600160a01b0383160362000ed95760408051600480825260a08201909252906020820160808036833701905050905063cdffacc660e01b8160008151811062000e2b5762000e2b62000fa4565b6001600160e01b03199092166020928302919091019091015280516314bbdacb60e21b908290600190811062000e655762000e6562000fa4565b6001600160e01b03199092166020928302919091019091015280516356fe50af60e11b908290600290811062000e9f5762000e9f62000fa4565b6001600160e01b0319909216602092830291909101909101528051637a0ed62760e01b9082906003908110620007c757620007c762000fa4565b60405163da21759360e01b81526001600160a01b038316600482015260240160405180910390fd5b80516001600160a01b038116811462000f1957600080fd5b919050565b600080600080600060a0868803121562000f3757600080fd5b62000f428662000f01565b945062000f526020870162000f01565b935062000f626040870162000f01565b925062000f726060870162000f01565b915062000f826080870162000f01565b90509295509295909350565b634e487b7160e01b600052604160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052602160045260246000fd5b60006060808301818452808651808352608092508286019150828160051b8701016020808a0160005b84811015620010a557898403607f19018652815180516001600160a01b031685528381015189860190600381106200104157634e487b7160e01b600052602160045260246000fd5b868601526040918201519186018a905281519081905290840190600090898701905b808310156200108f5783516001600160e01b031916825292860192600192909201919086019062001063565b5097850197955050509082019060010162000ff9565b50506001600160a01b0389168882015250868103604088015260008152602081019998505050505050505050565b60805160a05160c05160e05161010051611b7b620012376000396000818161028601528181610c92015281816114ec01526116d001526000818161023201528181610a640152818161102801528181611124015281816115a2015281816115e10152818161165f0152818161172e015281816118430152818161188201526119000152600081816101de015281816108dc01528181610f92015281816112c9015281816113a50152818161142f0152818161156301526117ac0152600081816101360152818161042a01528181610ed001528181610f0f01528181611067015281816110a60152818161121301528181611252015281816113660152818161146e015281816114ad015281816116200152818161176d015261180401526000818161018a0152818161071c01528181610f5301528181610fd1015281816110e501528181611195015281816111d40152818161132701526118c10152611b7b6000f3fe6080604052600436106100435760003560e01c806352ef6b2c146100545780637a0ed6271461007f578063adfca15e146100a1578063cdffacc6146100ce5761004a565b3661004a57005b6100526100fb565b005b34801561006057600080fd5b5061006961010d565b6040516100769190611989565b60405180910390f35b34801561008b57600080fd5b50610094610309565b6040516100769190611a1b565b3480156100ad57600080fd5b506100c16100bc366004611a98565b610426565b6040516100769190611ac8565b3480156100da57600080fd5b506100ee6100e9366004611adb565b610e50565b6040516100769190611b05565b61010b610106611949565b611965565b565b60408051600680825260e08201909252606091600091906020820160c0803683370190505090507f00000000000000000000000000000000000000000000000000000000000000008160008151811061016857610168611b2f565b60200260200101906001600160a01b031690816001600160a01b0316815250507f0000000000000000000000000000000000000000000000000000000000000000816001815181106101bc576101bc611b2f565b60200260200101906001600160a01b031690816001600160a01b0316815250507f00000000000000000000000000000000000000000000000000000000000000008160028151811061021057610210611b2f565b60200260200101906001600160a01b031690816001600160a01b0316815250507f00000000000000000000000000000000000000000000000000000000000000008160038151811061026457610264611b2f565b60200260200101906001600160a01b031690816001600160a01b0316815250507f0000000000000000000000000000000000000000000000000000000000000000816004815181106102b8576102b8611b2f565b60200260200101906001600160a01b031690816001600160a01b03168152505030816005815181106102ec576102ec611b2f565b6001600160a01b0390921660209283029190910190910152919050565b6060600061031561010d565b8051909150806001600160401b0381111561033257610332611b19565b60405190808252806020026020018201604052801561037857816020015b6040805180820190915260008152606060208201528152602001906001900390816103505790505b50925060005b818110156104205782818151811061039857610398611b2f565b60200260200101518482815181106103b2576103b2611b2f565b6020026020010151600001906001600160a01b031690816001600160a01b0316815250506103f88382815181106103eb576103eb611b2f565b6020026020010151610426565b84828151811061040a5761040a611b2f565b602090810291909101810151015260010161037e565b50505090565b60607f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316826001600160a01b03160361071a5760408051600c8082526101a082019092529060208201610180803683370190505090506397ee279e60e01b8160008151811061049f5761049f611b2f565b6001600160e01b03199092166020928302919091019091015280516365ac8f5960e11b90829060019081106104d6576104d6611b2f565b6001600160e01b0319909216602092830291909101909101528051633af1f32960e01b908290600290811061050d5761050d611b2f565b6001600160e01b031990921660209283029190910190910152805163409c7a8960e01b908290600390811061054457610544611b2f565b6001600160e01b031990921660209283029190910190910152805163015491d160e01b908290600490811061057b5761057b611b2f565b6001600160e01b031990921660209283029190910190910152805163b7d75b8b60e01b90829060059081106105b2576105b2611b2f565b6001600160e01b031990921660209283029190910190910152805163e6eaba0160e01b90829060069081106105e9576105e9611b2f565b6001600160e01b031990921660209283029190910190910152805163694ab55960e01b908290600790811061062057610620611b2f565b6001600160e01b031990921660209283029190910190910152805163178d29d360e01b908290600890811061065757610657611b2f565b6001600160e01b031990921660209283029190910190910152805163690807ad60e01b908290600990811061068e5761068e611b2f565b6001600160e01b0319909216602092830291909101909101528051636fde40a760e11b908290600a9081106106c5576106c5611b2f565b6001600160e01b0319909216602092830291909101909101528051634221c25560e11b908290600b9081106106fc576106fc611b2f565b6001600160e01b031990921660209283029190910190910152919050565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316826001600160a01b0316036108da576040805160078082526101008201909252906020820160e080368337019050509050631a8631b260e01b8160008151811061079057610790611b2f565b6001600160e01b031990921660209283029190910190910152805163237596db60e11b90829060019081106107c7576107c7611b2f565b6001600160e01b031990921660209283029190910190910152805163221f328960e11b90829060029081106107fe576107fe611b2f565b6001600160e01b0319909216602092830291909101909101528051631efc6ebd60e31b908290600390811061083557610835611b2f565b6001600160e01b031990921660209283029190910190910152805163339748cb60e01b908290600490811061086c5761086c611b2f565b6001600160e01b031990921660209283029190910190910152805163527df19960e01b90829060059081106108a3576108a3611b2f565b6001600160e01b03199092166020928302919091019091015280516342d94c9b60e11b90829060069081106106fc576106fc611b2f565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316826001600160a01b031603610a625760408051600680825260e08201909252906020820160c080368337019050509050632032aecd60e01b8160008151811061094f5761094f611b2f565b6001600160e01b0319909216602092830291909101909101528051635c2fa85d60e11b908290600190811061098657610986611b2f565b6001600160e01b03199092166020928302919091019091015280516383c71b6960e01b90829060029081106109bd576109bd611b2f565b6001600160e01b031990921660209283029190910190910152805163a5f9931b60e01b90829060039081106109f4576109f4611b2f565b6001600160e01b031990921660209283029190910190910152805163dd371acd60e01b9082906004908110610a2b57610a2b611b2f565b6001600160e01b03199092166020928302919091019091015280516335c5ef9960e11b90829060059081106106fc576106fc611b2f565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316826001600160a01b031603610c9057604080516009808252610140820190925290602082016101208036833701905050905063fa483e7260e01b81600081518110610ad957610ad9611b2f565b6001600160e01b031990921660209283029190910190910152805163190c351360e31b9082906001908110610b1057610b10611b2f565b6001600160e01b031990921660209283029190910190910152805163448b9b9560e01b9082906002908110610b4757610b47611b2f565b6001600160e01b031990921660209283029190910190910152805163fdd71f4360e01b9082906003908110610b7e57610b7e611b2f565b6001600160e01b0319909216602092830291909101909101528051636254e3ef60e11b9082906004908110610bb557610bb5611b2f565b6001600160e01b031990921660209283029190910190910152805162d5f59560e61b9082906005908110610beb57610beb611b2f565b6001600160e01b031990921660209283029190910190910152805163358c23e960e21b9082906006908110610c2257610c22611b2f565b6001600160e01b0319909216602092830291909101909101528051632fc6f50d60e21b9082906007908110610c5957610c59611b2f565b6001600160e01b0319909216602092830291909101909101528051631c2b981360e31b90829060089081106106fc576106fc611b2f565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316826001600160a01b031603610d3b57604080516002808252606082018352909160208301908036833701905050905063acdb32df60e01b81600081518110610d0457610d04611b2f565b6001600160e01b031990921660209283029190910190910152805163d617b03b60e01b90829060019081106106fc576106fc611b2f565b306001600160a01b03831603610e2c5760408051600480825260a08201909252906020820160808036833701905050905063cdffacc660e01b81600081518110610d8757610d87611b2f565b6001600160e01b03199092166020928302919091019091015280516314bbdacb60e21b9082906001908110610dbe57610dbe611b2f565b6001600160e01b03199092166020928302919091019091015280516356fe50af60e11b9082906002908110610df557610df5611b2f565b6001600160e01b0319909216602092830291909101909101528051637a0ed62760e01b90829060039081106106fc576106fc611b2f565b8160405163da21759360e01b8152600401610e479190611b05565b60405180910390fd5b6000634bf713cf60e11b6001600160e01b0319831610156113c95763237596db60e11b6001600160e01b0319831610156111485762d5f59560e61b6001600160e01b031983161015610ff557630d4318d960e11b6001600160e01b031983161015610f38576001600160e01b0319821663015491d160e01b03610ef457507f0000000000000000000000000000000000000000000000000000000000000000919050565b6001600160e01b0319821663178d29d360e01b03610f3357507f0000000000000000000000000000000000000000000000000000000000000000919050565b611924565b6001600160e01b03198216630d4318d960e11b03610f7757507f0000000000000000000000000000000000000000000000000000000000000000919050565b6001600160e01b03198216632032aecd60e01b03610fb657507f0000000000000000000000000000000000000000000000000000000000000000919050565b6001600160e01b0319821663339748cb60e01b03610f3357507f0000000000000000000000000000000000000000000000000000000000000000919050565b63409c7a8960e01b6001600160e01b03198316101561108b576001600160e01b0319821662d5f59560e61b0361104c57507f0000000000000000000000000000000000000000000000000000000000000000919050565b6001600160e01b03198216633af1f32960e01b03610f3357507f0000000000000000000000000000000000000000000000000000000000000000919050565b6001600160e01b0319821663409c7a8960e01b036110ca57507f0000000000000000000000000000000000000000000000000000000000000000919050565b6001600160e01b0319821663221f328960e11b0361110957507f0000000000000000000000000000000000000000000000000000000000000000919050565b6001600160e01b0319821663448b9b9560e01b03610f3357507f0000000000000000000000000000000000000000000000000000000000000000919050565b6335c5ef9960e11b6001600160e01b031983161015611295576314bbdacb60e21b6001600160e01b0319831610156111f8576001600160e01b0319821663237596db60e11b036111b957507f0000000000000000000000000000000000000000000000000000000000000000919050565b6001600160e01b0319821663527df19960e01b03610f3357507f0000000000000000000000000000000000000000000000000000000000000000919050565b6001600160e01b0319821663690807ad60e01b0361123757507f0000000000000000000000000000000000000000000000000000000000000000919050565b6001600160e01b0319821663694ab55960e01b0361127657507f0000000000000000000000000000000000000000000000000000000000000000919050565b6001600160e01b031982166314bbdacb60e21b03610f33575030919050565b6383c71b6960e01b6001600160e01b03198316101561130c576001600160e01b031982166335c5ef9960e11b036112ed57507f0000000000000000000000000000000000000000000000000000000000000000919050565b6001600160e01b03198216637a0ed62760e01b03610f33575030919050565b6001600160e01b031982166342d94c9b60e11b0361134b57507f0000000000000000000000000000000000000000000000000000000000000000919050565b6001600160e01b03198216634221c25560e11b0361138a57507f0000000000000000000000000000000000000000000000000000000000000000919050565b6001600160e01b031982166383c71b6960e01b03610f3357507f0000000000000000000000000000000000000000000000000000000000000000919050565b6366ffd66360e11b6001600160e01b03198316101561168357635c2fa85d60e11b6001600160e01b03198316101561152f5763acdb32df60e01b6001600160e01b031983161015611492576001600160e01b0319821663a5f9931b60e01b0361145357507f0000000000000000000000000000000000000000000000000000000000000000919050565b6001600160e01b03198216634bf713cf60e11b03610f3357507f0000000000000000000000000000000000000000000000000000000000000000919050565b6001600160e01b0319821663b7d75b8b60e01b036114d157507f0000000000000000000000000000000000000000000000000000000000000000919050565b6001600160e01b0319821663acdb32df60e01b0361151057507f0000000000000000000000000000000000000000000000000000000000000000919050565b6001600160e01b031982166356fe50af60e11b03610f33575030919050565b636254e3ef60e11b6001600160e01b0319831610156115c6576001600160e01b03198216635c2fa85d60e11b0361158757507f0000000000000000000000000000000000000000000000000000000000000000919050565b6001600160e01b03198216632fc6f50d60e21b03610f3357507f0000000000000000000000000000000000000000000000000000000000000000919050565b6001600160e01b03198216636254e3ef60e11b0361160557507f0000000000000000000000000000000000000000000000000000000000000000919050565b6001600160e01b031982166365ac8f5960e11b0361164457507f0000000000000000000000000000000000000000000000000000000000000000919050565b6001600160e01b0319821663190c351360e31b03610f3357507f0000000000000000000000000000000000000000000000000000000000000000919050565b631c2b981360e31b6001600160e01b0319831610156117d05763358c23e960e21b6001600160e01b031983161015611713576001600160e01b0319821663d617b03b60e01b036116f457507f0000000000000000000000000000000000000000000000000000000000000000919050565b6001600160e01b031982166366ffd66360e11b03610f33575030919050565b6001600160e01b0319821663358c23e960e21b0361175257507f0000000000000000000000000000000000000000000000000000000000000000919050565b6001600160e01b03198216636fde40a760e11b0361179157507f0000000000000000000000000000000000000000000000000000000000000000919050565b6001600160e01b0319821663dd371acd60e01b03610f3357507f0000000000000000000000000000000000000000000000000000000000000000919050565b631efc6ebd60e31b6001600160e01b031983161015611867576001600160e01b0319821663e6eaba0160e01b0361182857507f0000000000000000000000000000000000000000000000000000000000000000919050565b6001600160e01b03198216631c2b981360e31b03610f3357507f0000000000000000000000000000000000000000000000000000000000000000919050565b6001600160e01b03198216637d241f3960e11b036118a657507f0000000000000000000000000000000000000000000000000000000000000000919050565b6001600160e01b03198216631efc6ebd60e31b036118e557507f0000000000000000000000000000000000000000000000000000000000000000919050565b6001600160e01b0319821663fdd71f4360e01b0361192457507f0000000000000000000000000000000000000000000000000000000000000000919050565b604051636ad67de160e11b81526001600160e01b031983166004820152602401610e47565b60006119606000356001600160e01b031916610e50565b905090565b3660008037600080366000845af43d6000803e808015611984573d6000f35b3d6000fd5b6020808252825182820181905260009190848201906040850190845b818110156119ca5783516001600160a01b0316835292840192918401916001016119a5565b50909695505050505050565b600081518084526020808501945080840160005b83811015611a105781516001600160e01b031916875295820195908201906001016119ea565b509495945050505050565b60006020808301818452808551808352604092508286019150828160051b87010184880160005b83811015611a8a57888303603f19018552815180516001600160a01b03168452870151878401879052611a77878501826119d6565b9588019593505090860190600101611a42565b509098975050505050505050565b600060208284031215611aaa57600080fd5b81356001600160a01b0381168114611ac157600080fd5b9392505050565b602081526000611ac160208301846119d6565b600060208284031215611aed57600080fd5b81356001600160e01b031981168114611ac157600080fd5b6001600160a01b0391909116815260200190565b634e487b7160e01b600052604160045260246000fd5b634e487b7160e01b600052603260045260246000fdfea2646970667358221220c0392929896d762032d9d894de88016f0c53e448c027bd2232558e54be8b58f464736f6c63430008110033";
|
|
183
192
|
|
|
184
193
|
type PendleRouterConstructorParams =
|
|
185
194
|
| [signer?: Signer]
|
|
@@ -204,8 +213,6 @@ export class PendleRouter__factory extends ContractFactory {
|
|
|
204
213
|
_ACTION_ADD_REMOVE_LIQ: string,
|
|
205
214
|
_ACTION_SWAP_PT: string,
|
|
206
215
|
_ACTION_SWAP_YT: string,
|
|
207
|
-
_ACTION_SWAP_PTYT: string,
|
|
208
|
-
_ACTION_CALLBACK: string,
|
|
209
216
|
_ACTION_MISC: string,
|
|
210
217
|
overrides?: Overrides & { from?: string | Promise<string> }
|
|
211
218
|
): Promise<PendleRouter> {
|
|
@@ -214,8 +221,6 @@ export class PendleRouter__factory extends ContractFactory {
|
|
|
214
221
|
_ACTION_ADD_REMOVE_LIQ,
|
|
215
222
|
_ACTION_SWAP_PT,
|
|
216
223
|
_ACTION_SWAP_YT,
|
|
217
|
-
_ACTION_SWAP_PTYT,
|
|
218
|
-
_ACTION_CALLBACK,
|
|
219
224
|
_ACTION_MISC,
|
|
220
225
|
overrides || {}
|
|
221
226
|
) as Promise<PendleRouter>;
|
|
@@ -225,8 +230,6 @@ export class PendleRouter__factory extends ContractFactory {
|
|
|
225
230
|
_ACTION_ADD_REMOVE_LIQ: string,
|
|
226
231
|
_ACTION_SWAP_PT: string,
|
|
227
232
|
_ACTION_SWAP_YT: string,
|
|
228
|
-
_ACTION_SWAP_PTYT: string,
|
|
229
|
-
_ACTION_CALLBACK: string,
|
|
230
233
|
_ACTION_MISC: string,
|
|
231
234
|
overrides?: Overrides & { from?: string | Promise<string> }
|
|
232
235
|
): TransactionRequest {
|
|
@@ -235,8 +238,6 @@ export class PendleRouter__factory extends ContractFactory {
|
|
|
235
238
|
_ACTION_ADD_REMOVE_LIQ,
|
|
236
239
|
_ACTION_SWAP_PT,
|
|
237
240
|
_ACTION_SWAP_YT,
|
|
238
|
-
_ACTION_SWAP_PTYT,
|
|
239
|
-
_ACTION_CALLBACK,
|
|
240
241
|
_ACTION_MISC,
|
|
241
242
|
overrides || {}
|
|
242
243
|
);
|
|
@@ -0,0 +1,154 @@
|
|
|
1
|
+
/* Autogenerated file. Do not edit manually. */
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
import { Signer, utils, Contract, ContractFactory, Overrides } from "ethers";
|
|
5
|
+
import { Provider, TransactionRequest } from "@ethersproject/providers";
|
|
6
|
+
import type {
|
|
7
|
+
PendleSwapAggregator,
|
|
8
|
+
PendleSwapAggregatorInterface,
|
|
9
|
+
} from "../PendleSwapAggregator";
|
|
10
|
+
|
|
11
|
+
const _abi = [
|
|
12
|
+
{
|
|
13
|
+
inputs: [
|
|
14
|
+
{
|
|
15
|
+
internalType: "uint256",
|
|
16
|
+
name: "aggregatorType",
|
|
17
|
+
type: "uint256",
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
internalType: "bytes4",
|
|
21
|
+
name: "selector",
|
|
22
|
+
type: "bytes4",
|
|
23
|
+
},
|
|
24
|
+
],
|
|
25
|
+
name: "UnsupportedSelector",
|
|
26
|
+
type: "error",
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
inputs: [
|
|
30
|
+
{
|
|
31
|
+
components: [
|
|
32
|
+
{
|
|
33
|
+
internalType: "address[]",
|
|
34
|
+
name: "tokens",
|
|
35
|
+
type: "address[]",
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
internalType: "address",
|
|
39
|
+
name: "spender",
|
|
40
|
+
type: "address",
|
|
41
|
+
},
|
|
42
|
+
],
|
|
43
|
+
internalType: "struct IPSwapAggregator.MultiApproval[]",
|
|
44
|
+
name: "arr",
|
|
45
|
+
type: "tuple[]",
|
|
46
|
+
},
|
|
47
|
+
],
|
|
48
|
+
name: "approveInf",
|
|
49
|
+
outputs: [],
|
|
50
|
+
stateMutability: "nonpayable",
|
|
51
|
+
type: "function",
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
inputs: [
|
|
55
|
+
{
|
|
56
|
+
internalType: "address",
|
|
57
|
+
name: "tokenIn",
|
|
58
|
+
type: "address",
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
internalType: "uint256",
|
|
62
|
+
name: "amountIn",
|
|
63
|
+
type: "uint256",
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
components: [
|
|
67
|
+
{
|
|
68
|
+
internalType: "enum SwapType",
|
|
69
|
+
name: "swapType",
|
|
70
|
+
type: "uint8",
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
internalType: "address",
|
|
74
|
+
name: "extRouter",
|
|
75
|
+
type: "address",
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
internalType: "bytes",
|
|
79
|
+
name: "extCalldata",
|
|
80
|
+
type: "bytes",
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
internalType: "bool",
|
|
84
|
+
name: "needScale",
|
|
85
|
+
type: "bool",
|
|
86
|
+
},
|
|
87
|
+
],
|
|
88
|
+
internalType: "struct SwapData",
|
|
89
|
+
name: "data",
|
|
90
|
+
type: "tuple",
|
|
91
|
+
},
|
|
92
|
+
],
|
|
93
|
+
name: "swap",
|
|
94
|
+
outputs: [],
|
|
95
|
+
stateMutability: "payable",
|
|
96
|
+
type: "function",
|
|
97
|
+
},
|
|
98
|
+
];
|
|
99
|
+
|
|
100
|
+
const _bytecode =
|
|
101
|
+
"0x608060405234801561001057600080fd5b506131ef806100206000396000f3fe6080604052600436106100295760003560e01c80632bdb823c1461002e578063acdb32df14610043575b600080fd5b61004161003c3660046114c3565b610063565b005b34801561004f57600080fd5b5061004161005e366004611522565b61013b565b61007c836100776040840160208501611596565b6101dc565b61013561008f60808301606084016115c1565b6100da576100a060408301836115de565b8080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152506100fd92505050565b6100fd6100ea602084018461162b565b6100f760408501856115de565b866102a0565b6001600160a01b03851615610113576000610115565b835b6101256040850160208601611596565b6001600160a01b03169190610301565b50505050565b60005b818110156101d757368383838181106101595761015961164c565b905060200281019061016b9190611662565b905060005b61017a8280611682565b90508110156101cd576101c56101908380611682565b838181106101a0576101a061164c565b90506020020160208101906101b59190611596565b6100776040850160208601611596565b600101610170565b505060010161013e565b505050565b6001600160a01b0382166101ee575050565b61020060026001600160601b036116f7565b604051636eb1769f60e11b81523060048201526001600160a01b0383811660248301526001600160601b03929092169184169063dd62ed3e90604401602060405180830381865afa158015610259573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061027d919061172a565b101561029c5761028f82826000610331565b61029c8282600019610331565b5050565b606060018560038111156102b6576102b6611743565b036102cd576102c6848484610440565b90506102f9565b60028560038111156102e1576102e1611743565b036102f1576102c6848484610614565b6102f9611759565b949350505050565b60606103278484846040518060600160405280602981526020016131916029913961085f565b90505b9392505050565b604080516001600160a01b038481166024830152604480830185905283518084039091018152606490920183526020820180516001600160e01b031663095ea7b360e01b179052915160009283929087169161038d9190611793565b6000604051808303816000865af19150503d80600081146103ca576040519150601f19603f3d011682016040523d82523d6000602084013e6103cf565b606091505b50915091508180156103f95750805115806103f95750808060200190518101906103f991906117b0565b6104395760405162461bcd60e51b815260206004820152600c60248201526b5361666520417070726f766560a01b60448201526064015b60405180910390fd5b5050505050565b6060600061045160048286886117cd565b61045a916117f7565b9050631de02f1760e01b6001600160e01b031982160161051757600061048385600481896117cd565b8101906104909190611c02565b90506104b981606001518260400151866104b4856060015161012001516020610990565b61099c565b8260600183604001829052829052505081816040516024016104db9190611e4d565b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152925061032a915050565b63750fcc0560e01b6001600160e01b03198216016105c0576000808080610541886004818c6117cd565b81019061054e9190611ece565b9350935093509350610563838389600161099c565b60405191945092508590610581908690869086908690602401611f68565b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152955061032a945050505050565b60405162461bcd60e51b8152602060048201526024808201527f496e7075745363616c696e6748656c7065723a20496e76616c69642073656c6560448201526331ba37b960e11b6064820152608401610430565b6060600061062560048286886117cd565b61062e916117f7565b9050600061063f85600481896117cd565b8080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152509293505050506001600160e01b0319821663086fe1cb60e31b0161071857600080600080848060200190518101906106a8919061200d565b93509350935093506106bb82848a610a0a565b915087925085848484846040516024016106d89493929190612065565b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152965061032a95505050505050565b63ed55c35160e01b6001600160e01b031983160161078a576000806000808480602001905181019061074a91906120d7565b93509350935093506107658360a0015184608001518a610a0a565b60a08401526080830188905260405186906106d89086908690869086906024016121cf565b6308723dad60e01b6001600160e01b0319831601610833576000806000806000858060200190518101906107be9190612254565b945094509450945094506107d382848b610a0a565b91508892508685858585856040516024016107f29594939291906122cc565b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152975061032a9650505050505050565b60405163a7dd6a9560e01b8152600160048201526001600160e01b031983166024820152604401610430565b6060824710156108c05760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b6064820152608401610430565b6001600160a01b0385163b6109175760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610430565b600080866001600160a01b031685876040516109339190611793565b60006040518083038185875af1925050503d8060008114610970576040519150601f19603f3d011682016040523d82523d6000602084013e610975565b606091505b5091509150610985828286610a21565b979650505050505050565b81811615155b92915050565b6109a4611426565b60e08501516060908481036109bf5786869250925050610a01565b83156109e5576109d0878287610a5a565b6109db878388610bb9565b9250925050610a01565b6109f0878287610a5a565b6109fb878388610ce6565b92509250505b94509492505050565b600082610a178386612306565b610327919061231d565b60608315610a3057508161032a565b825115610a405782518084602001fd5b8160405162461bcd60e51b81526004016104309190612331565b610a62611426565b61010084015183610a738483612306565b610a7d919061231d565b6101008601528015801590610a955750610100850151155b15610aa35760016101008601525b60e08501839052604085015151600003610ac0578491505061032a565b6000805b866040015151811015610bae576001876040015151610ae39190612344565b8103610b1a57610af38286612344565b87606001518281518110610b0957610b0961164c565b602002602001018181525050610b71565b858588606001518381518110610b3257610b3261164c565b6020026020010151610b449190612306565b610b4e919061231d565b87606001518281518110610b6457610b6461164c565b6020026020010181815250505b86606001518181518110610b8757610b8761164c565b602002602001015182610b9a9190612357565b915080610ba68161236a565b915050610ac4565b509495945050505050565b6060600084806020019051810190610bd19190612471565b8051519091506000805b82811015610cb957610bee600184612344565b8103610c2557610bfe8287612344565b84602001518281518110610c1457610c1461164c565b602002602001018181525050610c7c565b868685602001518381518110610c3d57610c3d61164c565b6020026020010151610c4f9190612306565b610c59919061231d565b84602001518281518110610c6f57610c6f61164c565b6020026020010181815250505b83602001518181518110610c9257610c9261164c565b602002602001015182610ca59190612357565b915080610cb18161236a565b915050610bdb565b5082604051602001610ccb9190612544565b60405160208183030381529060405293505050509392505050565b6060600084806020019051810190610cfe919061277d565b905083838260600151610d119190612306565b610d1b919061231d565b606082015260005b815151811015610fe157600082600001518281518110610d4557610d4561164c565b6020026020010151600081518110610d5f57610d5f61164c565b60209081029190910181015190810151909150630be1a7a360e21b6001600160e01b0319821601610d9e578151610d9790888861100c565b8252610fcc565b6301b966ef60e71b6001600160e01b0319821601610dc3578151610d97908888611057565b633409dd2d60e01b6001600160e01b0319821601610de8578151610d979088886110a2565b63b6bb37eb60e01b6001600160e01b0319821601610e0d578151610d9790888861100c565b63617556cb60e01b6001600160e01b0319821601610e32578151610d979088886110ed565b6308c49cdf60e11b6001600160e01b0319821601610e625760405162461bcd60e51b815260040161043090612854565b635a2f8d7160e01b6001600160e01b0319821601610e87578151610d979088886111a0565b6375a256f160e01b6001600160e01b0319821601610eac578151610d97908888611235565b63a7c1a92960e01b6001600160e01b0319821601610ed1578151610d97908888611280565b6360fabb9d60e01b6001600160e01b0319821601610ef6578151610d979088886112ec565b63873c52e160e01b6001600160e01b0319821601610f1b578151610d9790888861139b565b630590bce960e11b6001600160e01b0319821601610f4b5760405162461bcd60e51b815260040161043090612854565b6310262a3d60e01b6001600160e01b0319821601610f70578151610d9790888861100c565b60405162461bcd60e51b815260206004820152602b60248201527f4167677265676174696f6e4578656375746f723a204465782074797065206e6f60448201526a1d081cdd5c1c1bdc9d195960aa1b6064820152608401610430565b50508080610fd99061236a565b915050610d23565b5080604051602001610ff3919061289e565b6040516020818303038152906040529150509392505050565b606060008480602001905181019061102491906129ec565b9050838382608001516110379190612306565b611041919061231d565b6080820152604051610ff3908290602001612a94565b606060008480602001905181019061106f9190612b48565b905083838260a001516110829190612306565b61108c919061231d565b60a0820152604051610ff3908290602001612bf0565b60606000848060200190518101906110ba9190612cac565b905083838260a001516110cd9190612306565b6110d7919061231d565b60a0820152604051610ff3908290602001612d49565b60606000848060200190518101906111059190612de3565b9050838382608001516111189190612306565b611122919061231d565b6080820152604051610ff390829060200160006101008201905060018060a01b038084511683528060208501511660208401528060408501511660408401528060608501511660608401526080840151608084015260a084015160a08401528060c08501511660c08401525060e0830151151560e083015292915050565b60606000848060200190518101906111b89190612e7d565b9050838382608001516111cb9190612306565b6111d5919061231d565b6080820152604051610ff390829060200181516001600160a01b03908116825260208084015190830152604080840151821690830152606080840151909116908201526080808301519082015260a0918201519181019190915260c00190565b606060008480602001905181019061124d9190612f0e565b9050838382608001516112609190612306565b61126a919061231d565b6080820152604051610ff3908290602001612f98565b6060600084806020019051810190611298919061301a565b9050838382602001516112ab9190612306565b6112b5919061231d565b60208281019182526040805184516001600160a01b0316928101929092529151818301529082015115156060820152608001610ff3565b60606000848060200190518101906113049190613082565b9050838382608001516113179190612306565b611321919061231d565b6080820152604051610ff390829060200160006101008201905060018060a01b0380845116835280602085015116602084015280604085015116604084015250606083015160608301526080830151608083015260a083015160a083015260c083015160c083015260e0830151151560e083015292915050565b60606000848060200190518101906113b39190613102565b9050838382606001516113c69190612306565b6113d0919061231d565b6060820152604051610ff390829060200181516001600160a01b03908116825260208084015182169083015260408084015182169083015260608084015190830152608092830151169181019190915260a00190565b60405180610160016040528060006001600160a01b0316815260200160006001600160a01b031681526020016060815260200160608152602001606081526020016060815260200160006001600160a01b03168152602001600081526020016000815260200160008152602001606081525090565b6001600160a01b03811681146114b057600080fd5b50565b80356114be8161149b565b919050565b6000806000606084860312156114d857600080fd5b83356114e38161149b565b92506020840135915060408401356001600160401b0381111561150557600080fd5b84016080818703121561151757600080fd5b809150509250925092565b6000806020838503121561153557600080fd5b82356001600160401b038082111561154c57600080fd5b818501915085601f83011261156057600080fd5b81358181111561156f57600080fd5b8660208260051b850101111561158457600080fd5b60209290920196919550909350505050565b6000602082840312156115a857600080fd5b813561032a8161149b565b80151581146114b057600080fd5b6000602082840312156115d357600080fd5b813561032a816115b3565b6000808335601e198436030181126115f557600080fd5b8301803591506001600160401b0382111561160f57600080fd5b60200191503681900382131561162457600080fd5b9250929050565b60006020828403121561163d57600080fd5b81356004811061032a57600080fd5b634e487b7160e01b600052603260045260246000fd5b60008235603e1983360301811261167857600080fd5b9190910192915050565b6000808335601e1984360301811261169957600080fd5b8301803591506001600160401b038211156116b357600080fd5b6020019150600581901b360382131561162457600080fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b60006001600160601b0383811680611711576117116116cb565b92169190910492915050565b6001600160a01b03169052565b60006020828403121561173c57600080fd5b5051919050565b634e487b7160e01b600052602160045260246000fd5b634e487b7160e01b600052600160045260246000fd5b60005b8381101561178a578181015183820152602001611772565b50506000910152565b6000825161167881846020870161176f565b80516114be816115b3565b6000602082840312156117c257600080fd5b815161032a816115b3565b600080858511156117dd57600080fd5b838611156117ea57600080fd5b5050820193919092039150565b6001600160e01b0319813581811691600485101561181f5780818660040360031b1b83161692505b505092915050565b634e487b7160e01b600052604160045260246000fd5b60405161016081016001600160401b038111828210171561186057611860611827565b60405290565b60405160a081016001600160401b038111828210171561186057611860611827565b60405160e081016001600160401b038111828210171561186057611860611827565b604080519081016001600160401b038111828210171561186057611860611827565b60405161012081016001600160401b038111828210171561186057611860611827565b60405161014081016001600160401b038111828210171561186057611860611827565b60405161010081016001600160401b038111828210171561186057611860611827565b604051601f8201601f191681016001600160401b038111828210171561195d5761195d611827565b604052919050565b60006001600160401b0382111561197e5761197e611827565b50601f01601f191660200190565b600082601f83011261199d57600080fd5b81356119b06119ab82611965565b611935565b8181528460208386010111156119c557600080fd5b816020850160208301376000918101602001919091529392505050565b60006001600160401b038211156119fb576119fb611827565b5060051b60200190565b600082601f830112611a1657600080fd5b81356020611a266119ab836119e2565b82815260059290921b84018101918181019086841115611a4557600080fd5b8286015b84811015611a69578035611a5c8161149b565b8352918301918301611a49565b509695505050505050565b600082601f830112611a8557600080fd5b81356020611a956119ab836119e2565b82815260059290921b84018101918181019086841115611ab457600080fd5b8286015b84811015611a695780358352918301918301611ab8565b60006101608284031215611ae257600080fd5b611aea61183d565b9050611af5826114b3565b8152611b03602083016114b3565b602082015260408201356001600160401b0380821115611b2257600080fd5b611b2e85838601611a05565b60408401526060840135915080821115611b4757600080fd5b611b5385838601611a74565b60608401526080840135915080821115611b6c57600080fd5b611b7885838601611a05565b608084015260a0840135915080821115611b9157600080fd5b611b9d85838601611a74565b60a0840152611bae60c085016114b3565b60c084015260e084810135908401526101008085013590840152610120808501359084015261014091508184013581811115611be957600080fd5b611bf58682870161198c565b8385015250505092915050565b600060208284031215611c1457600080fd5b81356001600160401b0380821115611c2b57600080fd5b9083019060a08286031215611c3f57600080fd5b611c47611866565b611c50836114b3565b8152611c5e602084016114b3565b6020820152604083013582811115611c7557600080fd5b611c818782860161198c565b604083015250606083013582811115611c9957600080fd5b611ca587828601611acf565b606083015250608083013582811115611cbd57600080fd5b611cc98782860161198c565b60808301525095945050505050565b60008151808452611cf081602086016020860161176f565b601f01601f19169290920160200192915050565b600081518084526020808501945080840160005b83811015610bae5781516001600160a01b031687529582019590820190600101611d18565b600081518084526020808501945080840160005b83811015610bae57815187529582019590820190600101611d51565b6000610160611d7d84845161171d565b6020830151611d8f602086018261171d565b506040830151816040860152611da782860182611d04565b91505060608301518482036060860152611dc18282611d3d565b91505060808301518482036080860152611ddb8282611d04565b91505060a083015184820360a0860152611df58282611d3d565b91505060c0830151611e0a60c086018261171d565b5060e08381015190850152610100808401519085015261012080840151908501526101408084015185830382870152611e438382611cd8565b9695505050505050565b60208152600060018060a01b0380845116602084015280602085015116604084015250604083015160a06060840152611e8960c0840182611cd8565b90506060840151601f1980858403016080860152611ea78383611d6d565b925060808601519150808584030160a086015250611ec58282611cd8565b95945050505050565b60008060008060808587031215611ee457600080fd5b8435611eef8161149b565b935060208501356001600160401b0380821115611f0b57600080fd5b611f1788838901611acf565b94506040870135915080821115611f2d57600080fd5b611f398883890161198c565b93506060870135915080821115611f4f57600080fd5b50611f5c8782880161198c565b91505092959194509250565b6001600160a01b0385168152608060208201819052600090611f8c90830186611d6d565b8281036040840152611f9e8186611cd8565b905082810360608401526109858185611cd8565b600082601f830112611fc357600080fd5b81516020611fd36119ab836119e2565b82815260059290921b84018101918181019086841115611ff257600080fd5b8286015b84811015611a695780518352918301918301611ff6565b6000806000806080858703121561202357600080fd5b845161202e8161149b565b60208601516040870151606088015192965090945092506001600160401b0381111561205957600080fd5b611f5c87828801611fb2565b60018060a01b0385168152836020820152826040820152608060608201526000611e436080830184611d3d565b600082601f8301126120a357600080fd5b81516120b16119ab82611965565b8181528460208386010111156120c657600080fd5b6102f982602083016020870161176f565b6000806000808486036101408112156120ef57600080fd5b85516120fa8161149b565b945060e0601f198201121561210e57600080fd5b50612117611888565b60208601516121258161149b565b815260408601516121358161149b565b602082015260608601516121488161149b565b6040820152608086015161215b8161149b565b606082015260a086810151608083015260c0808801519183019190915260e0870151908201526101008601519093506001600160401b038082111561219f57600080fd5b6121ab88838901612092565b93506101208701519150808211156121c257600080fd5b50611f5c87828801612092565b600061014060018060a01b03808816845280875116602085015280602088015116604085015280604088015116606085015280606088015116608085015250608086015160a084015260a086015160c084015260c086015160e08401528061010084015261223f81840186611cd8565b90508281036101208401526109858185611cd8565b600080600080600060a0868803121561226c57600080fd5b85516122778161149b565b60208701519095506122888161149b565b60408701516060880151608089015192965090945092506001600160401b038111156122b357600080fd5b6122bf88828901611fb2565b9150509295509295909350565b6001600160a01b03868116825285166020820152604081018490526060810183905260a06080820181905260009061098590830184611d3d565b8082028115828204841417610996576109966116e1565b60008261232c5761232c6116cb565b500490565b60208152600061032a6020830184611cd8565b81810381811115610996576109966116e1565b80820180821115610996576109966116e1565b60006001820161237c5761237c6116e1565b5060010190565b80516114be8161149b565b600082601f83011261239f57600080fd5b815160206123af6119ab836119e2565b82815260059290921b840181019181810190868411156123ce57600080fd5b8286015b84811015611a695780516123e58161149b565b83529183019183016123d2565b600082601f83011261240357600080fd5b815160206124136119ab836119e2565b82815260059290921b8401810191818101908684111561243257600080fd5b8286015b84811015611a695780516001600160401b038111156124555760008081fd5b6124638986838b0101612092565b845250918301918301612436565b60006020828403121561248357600080fd5b81516001600160401b038082111561249a57600080fd5b9083019060a082860312156124ae57600080fd5b6124b6611866565b8251828111156124c557600080fd5b6124d18782860161238e565b8252506020830151828111156124e657600080fd5b6124f287828601611fb2565b60208301525060408301518281111561250a57600080fd5b612516878286016123f2565b6040830152506060830151606082015260808301518281111561253857600080fd5b611cc987828601612092565b60006020808352835160a08285015261256060c0850182611d04565b905081850151601f198086840301604087015261257d8383611d3d565b60408801518782038301606089015280518083529194508501925084840190600581901b8501860160005b828110156125d457848783030184526125c2828751611cd8565b958801959388019391506001016125a8565b5060608a015160808a015260808a01519650838982030160a08a01526125fa8188611cd8565b9a9950505050505050505050565b600082601f83011261261957600080fd5b81516126276119ab826119e2565b808282526020820191508560208460051b870101111561264657600080fd5b602085015b60208460051b8701018110156127735780516001600160401b0381111561267157600080fd5b8601603f8101881361268257600080fd5b60208101516126936119ab826119e2565b808282526020820191508a60408460051b86010111156126b257600080fd5b604084015b60408460051b86010181101561275d5780516001600160401b038111156126dd57600080fd5b60408682018e03603f190112156126f357600080fd5b6126fb6118aa565b868201604001516001600160401b0381111561271657600080fd5b6127278f604083868c010101612092565b82525090860160600151906001600160e01b03198216821461274857600080fd5b602081810192909252845292830192016126b7565b508652505060209384019391909101905061264b565b5095945050505050565b60006020828403121561278f57600080fd5b81516001600160401b03808211156127a657600080fd5b9083019060e082860312156127ba57600080fd5b6127c2611888565b8251828111156127d157600080fd5b6127dd87828601612608565b8252506127ec60208401612383565b60208201526127fd60408401612383565b60408201526060830151606082015261281860808401612383565b608082015260a083015160a082015260c08301518281111561283957600080fd5b61284587828601612092565b60c08301525095945050505050565b6020808252602a908201527f496e7075745363616c696e6748656c7065723a2043616e206e6f74207363616c6040820152690652052465120737761760b41b606082015260800190565b6020808252825160e0838301528051610100840181905260009291600582811b860161012090810193928501929087019186805b838110156129665789870361011f1901855285518051808952908901908989019080861b8a018b01855b8281101561295057601f198c830301845284516040815181855261292282860182611cd8565b91505063ffffffff60e01b8f830151168f85015280935050508c850194508c840193506001810190506128fc565b50995050509588019550938701936001016128d2565b50505050505081850151915061297f604085018361171d565b60408501519150612993606085018361171d565b60608501516080850152608085015191506129b160a085018361171d565b60a085015160c085015260c08501519150601f198482030160e0850152611ec58183611cd8565b805163ffffffff811681146114be57600080fd5b600061012082840312156129ff57600080fd5b612a076118cc565b612a1083612383565b8152612a1e60208401612383565b6020820152612a2f60408401612383565b6040820152612a4060608401612383565b60608201526080830151608082015260a083015160a0820152612a6560c084016129d8565b60c0820152612a7660e084016129d8565b60e0820152610100612a898185016129d8565b908201529392505050565b81516001600160a01b03908116825260208084015190911690820152604080830151610120830191612ac89084018261171d565b506060830151612adb606084018261171d565b506080830151608083015260a083015160a083015260c0830151612b0760c084018263ffffffff169052565b5060e0830151612b1f60e084018263ffffffff169052565b506101008381015163ffffffff81168483015261181f565b805160ff811681146114be57600080fd5b60006101408284031215612b5b57600080fd5b612b636118ef565b612b6c83612383565b8152612b7a60208401612383565b6020820152612b8b60408401612383565b6040820152612b9c60608401612b37565b6060820152612bad60808401612b37565b608082015260a083015160a082015260c083015160c082015260e083015160e0820152610100612bde818501612383565b90820152610120612a898482016117a5565b600061014082019050612c0482845161171d565b6020830151612c16602084018261171d565b506040830151612c29604084018261171d565b506060830151612c3e606084018260ff169052565b506080830151612c53608084018260ff169052565b5060a083015160a083015260c083015160c083015260e083015160e083015261010080840151612c858285018261171d565b5050610120838101518015158483015261181f565b8051600f81900b81146114be57600080fd5b60006101208284031215612cbf57600080fd5b612cc76118cc565b612cd083612383565b8152612cde60208401612383565b6020820152612cef60408401612383565b6040820152612d0060608401612c9a565b6060820152612d1160808401612c9a565b608082015260a083015160a082015260c083015160c0820152612d3660e084016117a5565b60e0820152610100612a898185016117a5565b81516001600160a01b03908116825260208084015190911690820152604080830151610120830191612d7d9084018261171d565b506060830151612d926060840182600f0b9052565b506080830151612da76080840182600f0b9052565b5060a083015160a083015260c083015160c083015260e0830151612dcf60e084018215159052565b50610100838101518015158483015261181f565b60006101008284031215612df657600080fd5b612dfe611912565b8251612e098161149b565b81526020830151612e198161149b565b6020820152612e2a60408401612383565b6040820152612e3b60608401612383565b60608201526080830151608082015260a083015160a0820152612e6060c08401612383565b60c0820152612e7160e084016117a5565b60e08201529392505050565b600060c08284031215612e8f57600080fd5b60405160c081016001600160401b0381118282101715612eb157612eb1611827565b6040528251612ebf8161149b565b8152602083810151908201526040830151612ed98161149b565b60408201526060830151612eec8161149b565b60608201526080838101519082015260a0928301519281019290925250919050565b60006101208284031215612f2157600080fd5b612f296118cc565b612f3283612383565b8152612f4060208401612383565b6020820152612f5160408401612383565b6040820152612f6260608401612383565b60608201526080830151608082015260a083015160a0820152612f8760c08401612383565b60c0820152612d3660e084016117a5565b81516001600160a01b03908116825260208084015190911690820152604080830151610120830191612fcc9084018261171d565b506060830151612fdf606084018261171d565b506080830151608083015260a083015160a083015260c083015161300660c084018261171d565b5060e0830151612dcf60e084018215159052565b60006060828403121561302c57600080fd5b604051606081016001600160401b038111828210171561304e5761304e611827565b604052825161305c8161149b565b8152602083810151908201526040830151613076816115b3565b60408201529392505050565b6000610100828403121561309557600080fd5b61309d611912565b82516130a88161149b565b815260208301516130b88161149b565b60208201526130c960408401612383565b6040820152606083015160608201526080830151608082015260a083015160a082015260c083015160c0820152612e7160e084016117a5565b600060a0828403121561311457600080fd5b60405160a081016001600160401b038111828210171561313657613136611827565b60405282516131448161149b565b815260208301516131548161149b565b602082015260408301516131678161149b565b60408201526060838101519082015260808301516131848161149b565b6080820152939250505056fe416464726573733a206c6f772d6c6576656c2063616c6c20776974682076616c7565206661696c6564a264697066735822122016fcb0678b06af69409717ec979ad57ccb60bf6a6260705ebf6059ef1aa3c88f64736f6c63430008110033";
|
|
102
|
+
|
|
103
|
+
type PendleSwapAggregatorConstructorParams =
|
|
104
|
+
| [signer?: Signer]
|
|
105
|
+
| ConstructorParameters<typeof ContractFactory>;
|
|
106
|
+
|
|
107
|
+
const isSuperArgs = (
|
|
108
|
+
xs: PendleSwapAggregatorConstructorParams
|
|
109
|
+
): xs is ConstructorParameters<typeof ContractFactory> => xs.length > 1;
|
|
110
|
+
|
|
111
|
+
export class PendleSwapAggregator__factory extends ContractFactory {
|
|
112
|
+
constructor(...args: PendleSwapAggregatorConstructorParams) {
|
|
113
|
+
if (isSuperArgs(args)) {
|
|
114
|
+
super(...args);
|
|
115
|
+
} else {
|
|
116
|
+
super(_abi, _bytecode, args[0]);
|
|
117
|
+
}
|
|
118
|
+
this.contractName = "PendleSwapAggregator";
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
deploy(
|
|
122
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
123
|
+
): Promise<PendleSwapAggregator> {
|
|
124
|
+
return super.deploy(overrides || {}) as Promise<PendleSwapAggregator>;
|
|
125
|
+
}
|
|
126
|
+
getDeployTransaction(
|
|
127
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
128
|
+
): TransactionRequest {
|
|
129
|
+
return super.getDeployTransaction(overrides || {});
|
|
130
|
+
}
|
|
131
|
+
attach(address: string): PendleSwapAggregator {
|
|
132
|
+
return super.attach(address) as PendleSwapAggregator;
|
|
133
|
+
}
|
|
134
|
+
connect(signer: Signer): PendleSwapAggregator__factory {
|
|
135
|
+
return super.connect(signer) as PendleSwapAggregator__factory;
|
|
136
|
+
}
|
|
137
|
+
static readonly contractName: "PendleSwapAggregator";
|
|
138
|
+
public readonly contractName: "PendleSwapAggregator";
|
|
139
|
+
static readonly bytecode = _bytecode;
|
|
140
|
+
static readonly abi = _abi;
|
|
141
|
+
static createInterface(): PendleSwapAggregatorInterface {
|
|
142
|
+
return new utils.Interface(_abi) as PendleSwapAggregatorInterface;
|
|
143
|
+
}
|
|
144
|
+
static connect(
|
|
145
|
+
address: string,
|
|
146
|
+
signerOrProvider: Signer | Provider
|
|
147
|
+
): PendleSwapAggregator {
|
|
148
|
+
return new Contract(
|
|
149
|
+
address,
|
|
150
|
+
_abi,
|
|
151
|
+
signerOrProvider
|
|
152
|
+
) as PendleSwapAggregator;
|
|
153
|
+
}
|
|
154
|
+
}
|