@pendle/core-v2 1.4.4-testnet → 1.5.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/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 +1 -1
- package/build/artifacts/contracts/LiquidityMining/VeDistributor/PendleFeeDistributor.sol/PendleFeeDistributor.json +2 -2
- 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/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/StandardizedYield/SYBase.sol/SYBase.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/SYBaseWithRewards.sol/SYBaseWithRewards.dbg.json +1 -1
- 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 +2 -2
- package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/PendleAuraWethAnkrethSY.sol/PendleAuraWethAnkrethSY.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/PendleAuraWethAnkrethSY.sol/PendleAuraWethAnkrethSY.json +2 -2
- package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/PendleAuraWethRethSY.sol/PendleAuraWethRethSY.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/PendleAuraWethRethSY.sol/PendleAuraWethRethSY.json +2 -2
- package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/PendleAuraWethWstethSY.sol/PendleAuraWethWstethSY.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/PendleAuraWethWstethSY.sol/PendleAuraWethWstethSY.json +2 -2
- package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/base/PendleAuraBalancerStableLPSY.sol/PendleAuraBalancerStableLPSY.dbg.json +1 -1
- 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 +2 -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 +2 -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 +2 -2
- package/build/artifacts/contracts/core/StandardizedYield/implementations/Convex/base/PendleConvexLPSY.sol/PendleConvexLPSY.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/GLP/PendleGlpSY.sol/PendleGlpSY.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/GLP/PendleGlpSY.sol/PendleGlpSY.json +2 -2
- package/build/artifacts/contracts/core/StandardizedYield/implementations/PendleGdaiSY.sol/PendleGDaiSY.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/PendleGdaiSY.sol/PendleGDaiSY.json +2 -2
- 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 +2 -2
- package/build/artifacts/contracts/core/StandardizedYield/implementations/PendleStargateLPSY.sol/PendleStargateLPSY.dbg.json +4 -0
- package/build/artifacts/contracts/core/StandardizedYield/implementations/PendleStargateLPSY.sol/PendleStargateLPSY.json +1157 -0
- 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 +2 -2
- 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/PendlePrincipalTokenV2.sol/PendlePrincipalTokenV2.dbg.json +1 -1
- package/build/artifacts/contracts/core/YieldContractsV2/PendlePrincipalTokenV2.sol/PendlePrincipalTokenV2.json +2 -2
- package/build/artifacts/contracts/core/YieldContractsV2/PendleYieldContractFactoryV2.sol/PendleYieldContractFactoryV2.dbg.json +1 -1
- package/build/artifacts/contracts/core/YieldContractsV2/PendleYieldContractFactoryV2.sol/PendleYieldContractFactoryV2.json +2 -2
- package/build/artifacts/contracts/core/YieldContractsV2/PendleYieldTokenV2.sol/PendleYieldTokenV2.dbg.json +1 -1
- package/build/artifacts/contracts/core/YieldContractsV2/PendleYieldTokenV2.sol/PendleYieldTokenV2.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 +18 -2
- package/build/artifacts/contracts/interfaces/IPActionAddRemoveLiq.sol/IPActionAddRemoveLiq.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPActionMarketAuxStatic.sol/IPActionMarketAuxStatic.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPActionMintRedeem.sol/IPActionMintRedeem.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPActionStorageStatic.sol/IPActionStorageStatic.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPActionSwapPT.sol/IPActionSwapPT.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPActionSwapYT.sol/IPActionSwapYT.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPAllAction.sol/IPAllAction.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPBulkSeller.sol/IPBulkSeller.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPMarket.sol/IPMarket.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPRouterHelper.sol/IPRouterHelper.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPRouterHelper.sol/IPRouterHelper.json +141 -0
- package/build/artifacts/contracts/interfaces/IPRouterStatic.sol/IPRouterStatic.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/IStargateLP.sol/IStargateLP.dbg.json +4 -0
- package/build/artifacts/contracts/interfaces/{IStargatePool.sol/IStargatePool.json → IStargateLP.sol/IStargateLP.json} +68 -3
- package/build/artifacts/contracts/interfaces/IStargateStaking.sol/IStargateStaking.dbg.json +4 -0
- package/build/artifacts/contracts/interfaces/{IStargateLPStaking.sol/IStargateLPStaking.json → IStargateStaking.sol/IStargateStaking.json} +20 -27
- package/build/artifacts/contracts/offchain-helpers/Broadcaster.sol/Broadcaster.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/Broadcaster.sol/Broadcaster.json +2 -2
- 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/router-static/PendleRouterStatic.sol/PendleRouterStatic.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/router-static/PendleRouterStatic.sol/PendleRouterStatic.json +2 -2
- package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionInfoStatic.sol/ActionInfoStatic.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionInfoStatic.sol/ActionInfoStatic.json +2 -2
- package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionMarketAuxStatic.sol/ActionMarketAuxStatic.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionMarketAuxStatic.sol/ActionMarketAuxStatic.json +2 -2
- package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionMarketCoreStatic.sol/ActionMarketCoreStatic.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionMarketCoreStatic.sol/ActionMarketCoreStatic.json +2 -2
- package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionMintRedeemStatic.sol/ActionMintRedeemStatic.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionMintRedeemStatic.sol/ActionMintRedeemStatic.json +2 -2
- package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionStorageStatic.sol/ActionStorageStatic.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionStorageStatic.sol/ActionStorageStatic.json +2 -2
- package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionVePendleStatic.sol/ActionVePendleStatic.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/router-static/base/ActionVePendleStatic.sol/ActionVePendleStatic.json +2 -2
- package/build/artifacts/contracts/offchain-helpers/router-static/base/StorageLayout.sol/StorageLayout.dbg.json +1 -1
- package/build/artifacts/contracts/router/ActionAddRemoveLiq.sol/ActionAddRemoveLiq.dbg.json +1 -1
- package/build/artifacts/contracts/router/ActionAddRemoveLiq.sol/ActionAddRemoveLiq.json +2 -2
- package/build/artifacts/contracts/router/ActionMintRedeem.sol/ActionMintRedeem.dbg.json +1 -1
- package/build/artifacts/contracts/router/ActionMintRedeem.sol/ActionMintRedeem.json +2 -2
- package/build/artifacts/contracts/router/ActionSwapPT.sol/ActionSwapPT.dbg.json +1 -1
- package/build/artifacts/contracts/router/ActionSwapPT.sol/ActionSwapPT.json +2 -2
- package/build/artifacts/contracts/router/ActionSwapYT.sol/ActionSwapYT.dbg.json +1 -1
- package/build/artifacts/contracts/router/ActionSwapYT.sol/ActionSwapYT.json +2 -2
- package/build/artifacts/contracts/router/PendleRouter.sol/PendleRouter.dbg.json +1 -1
- package/build/artifacts/contracts/router/PendleRouter.sol/PendleRouter.json +2 -2
- package/build/artifacts/contracts/router/PendleRouterHelper.sol/PendleRouterHelper.dbg.json +1 -1
- package/build/artifacts/contracts/router/PendleRouterHelper.sol/PendleRouterHelper.json +143 -2
- package/build/artifacts/contracts/router/base/ActionBaseCallback.sol/ActionBaseCallback.dbg.json +1 -1
- package/build/artifacts/contracts/router/base/ActionBaseMintRedeem.sol/ActionBaseMintRedeem.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/OneInchAggregationRouterHelper.sol/OneInchAggregationRouterHelper.dbg.json +1 -1
- package/build/artifacts/contracts/router/swap-aggregator/PendleSwapArbitrum.sol/PendleSwapArbitrum.dbg.json +1 -1
- package/build/artifacts/contracts/router/swap-aggregator/PendleSwapArbitrum.sol/PendleSwapArbitrum.json +2 -2
- package/build/artifacts/contracts/router/swap-aggregator/PendleSwapEthereum.sol/PendleSwapEthereum.dbg.json +1 -1
- package/build/artifacts/contracts/router/swap-aggregator/PendleSwapEthereum.sol/PendleSwapEthereum.json +2 -2
- package/contracts/core/StandardizedYield/implementations/PendleStargateLPSY.sol +222 -0
- package/contracts/core/libraries/Errors.sol +2 -0
- package/contracts/interfaces/IPRouterHelper.sol +8 -0
- package/contracts/interfaces/{IStargatePool.sol → IStargateLP.sol} +14 -1
- package/contracts/interfaces/{IStargateLPStaking.sol → IStargateStaking.sol} +2 -2
- package/contracts/router/PendleRouterHelper.sol +9 -8
- package/contracts/router/base/ActionBaseMintRedeem.sol +5 -5
- package/deployments/43113-core.json +1 -1
- package/deployments/80001-core.json +1 -1
- package/package.json +1 -1
- package/typechain-types/AggregatorInterface.ts +233 -0
- package/typechain-types/AggregatorV2V3Interface.ts +385 -0
- package/typechain-types/AggregatorV3Interface.ts +221 -0
- package/typechain-types/IPRouterHelper.ts +84 -12
- package/typechain-types/PendlePtAssetOracle.ts +167 -0
- package/typechain-types/PendlePtChainlinkOracle.ts +215 -0
- package/typechain-types/PendlePtSingleAssetOracle.ts +167 -0
- package/typechain-types/PendlePtUSDOracle.ts +215 -0
- package/typechain-types/PendleRouterHelper.ts +84 -12
- package/typechain-types/factories/ActionAddRemoveLiq__factory.ts +1 -1
- package/typechain-types/factories/ActionInfoStatic__factory.ts +1 -1
- package/typechain-types/factories/ActionMarketAuxStatic__factory.ts +1 -1
- package/typechain-types/factories/ActionMarketCoreStatic__factory.ts +1 -1
- package/typechain-types/factories/ActionMintRedeemStatic__factory.ts +1 -1
- package/typechain-types/factories/ActionMintRedeem__factory.ts +1 -1
- package/typechain-types/factories/ActionStorageStatic__factory.ts +1 -1
- package/typechain-types/factories/ActionSwapPT__factory.ts +1 -1
- package/typechain-types/factories/ActionSwapYT__factory.ts +1 -1
- package/typechain-types/factories/ActionVePendleStatic__factory.ts +1 -1
- package/typechain-types/factories/AggregatorInterface__factory.ts +153 -0
- package/typechain-types/factories/AggregatorV2V3Interface__factory.ts +268 -0
- package/typechain-types/factories/AggregatorV3Interface__factory.ts +141 -0
- package/typechain-types/factories/Broadcaster__factory.ts +1 -1
- 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/Errors__factory.ts +17 -1
- package/typechain-types/factories/IPRouterHelper__factory.ts +141 -0
- package/typechain-types/factories/OracleLib__factory.ts +1 -1
- package/typechain-types/factories/PendleAuraWethAnkrethSY__factory.ts +1 -1
- package/typechain-types/factories/PendleAuraWethRethSY__factory.ts +1 -1
- package/typechain-types/factories/PendleAuraWethWstethSY__factory.ts +1 -1
- package/typechain-types/factories/PendleCurveFraxUsdcSY__factory.ts +1 -1
- package/typechain-types/factories/PendleCurveUsdd3CrvSY__factory.ts +1 -1
- package/typechain-types/factories/PendleFeeDistributor__factory.ts +1 -1
- package/typechain-types/factories/PendleGDaiSY__factory.ts +1 -1
- 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 +1 -1
- package/typechain-types/factories/PendleLooksStakingSY__factory.ts +1 -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/PendlePrincipalTokenV2__factory.ts +1 -1
- package/typechain-types/factories/PendlePrincipalToken__factory.ts +1 -1
- package/typechain-types/factories/PendlePtAssetOracle__factory.ts +199 -0
- package/typechain-types/factories/PendlePtChainlinkOracle__factory.ts +251 -0
- package/typechain-types/factories/PendlePtSingleAssetOracle__factory.ts +203 -0
- package/typechain-types/factories/PendlePtUSDOracle__factory.ts +247 -0
- package/typechain-types/factories/PendleQiTokenHelper__factory.ts +1 -1
- package/typechain-types/factories/PendleQiTokenSY__factory.ts +1 -1
- package/typechain-types/factories/PendleRouterHelper__factory.ts +142 -1
- package/typechain-types/factories/PendleRouterStatic__factory.ts +1 -1
- package/typechain-types/factories/PendleRouter__factory.ts +1 -1
- package/typechain-types/factories/PendleSwapArbitrum__factory.ts +1 -1
- package/typechain-types/factories/PendleSwapEthereum__factory.ts +1 -1
- package/typechain-types/factories/PendleVotingControllerUpg__factory.ts +1 -1
- package/typechain-types/factories/PendleWstEthSY__factory.ts +1 -1
- package/typechain-types/factories/PendleYieldContractFactoryV2__factory.ts +1 -1
- package/typechain-types/factories/PendleYieldContractFactory__factory.ts +1 -1
- package/typechain-types/factories/PendleYieldTokenV2__factory.ts +1 -1
- package/typechain-types/factories/PendleYieldToken__factory.ts +1 -1
- package/typechain-types/factories/SAPE__factory.ts +1 -1
- package/typechain-types/factories/VotingEscrowPendleMainchain__factory.ts +1 -1
- package/typechain-types/factories/VotingEscrowPendleSidechain__factory.ts +1 -1
- package/typechain-types/hardhat.d.ts +35 -71
- package/typechain-types/index.ts +10 -16
- package/build/artifacts/contracts/interfaces/IPLiquidityMigrator.sol/IPLiquidityMigrator.dbg.json +0 -4
- package/build/artifacts/contracts/interfaces/IPLiquidityMigrator.sol/IPLiquidityMigrator.json +0 -655
- package/build/artifacts/contracts/interfaces/IStargateLPStaking.sol/IStargateLPStaking.dbg.json +0 -4
- package/build/artifacts/contracts/interfaces/IStargatePool.sol/IStargatePool.dbg.json +0 -4
- package/contracts/interfaces/IPLiquidityMigrator.sol +0 -130
|
@@ -0,0 +1,199 @@
|
|
|
1
|
+
/* Autogenerated file. Do not edit manually. */
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
import {
|
|
5
|
+
Signer,
|
|
6
|
+
utils,
|
|
7
|
+
Contract,
|
|
8
|
+
ContractFactory,
|
|
9
|
+
Overrides,
|
|
10
|
+
BigNumberish,
|
|
11
|
+
} from "ethers";
|
|
12
|
+
import { Provider, TransactionRequest } from "@ethersproject/providers";
|
|
13
|
+
import type {
|
|
14
|
+
PendlePtAssetOracle,
|
|
15
|
+
PendlePtAssetOracleInterface,
|
|
16
|
+
} from "../PendlePtAssetOracle";
|
|
17
|
+
|
|
18
|
+
const _abi = [
|
|
19
|
+
{
|
|
20
|
+
inputs: [
|
|
21
|
+
{
|
|
22
|
+
internalType: "address",
|
|
23
|
+
name: "_market",
|
|
24
|
+
type: "address",
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
internalType: "uint32",
|
|
28
|
+
name: "_twapDuration",
|
|
29
|
+
type: "uint32",
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
internalType: "uint16",
|
|
33
|
+
name: "_numSlotRequired",
|
|
34
|
+
type: "uint16",
|
|
35
|
+
},
|
|
36
|
+
],
|
|
37
|
+
stateMutability: "nonpayable",
|
|
38
|
+
type: "constructor",
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
inputs: [],
|
|
42
|
+
name: "PT",
|
|
43
|
+
outputs: [
|
|
44
|
+
{
|
|
45
|
+
internalType: "contract IPPrincipalToken",
|
|
46
|
+
name: "",
|
|
47
|
+
type: "address",
|
|
48
|
+
},
|
|
49
|
+
],
|
|
50
|
+
stateMutability: "view",
|
|
51
|
+
type: "function",
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
inputs: [],
|
|
55
|
+
name: "SY",
|
|
56
|
+
outputs: [
|
|
57
|
+
{
|
|
58
|
+
internalType: "contract IStandardizedYield",
|
|
59
|
+
name: "",
|
|
60
|
+
type: "address",
|
|
61
|
+
},
|
|
62
|
+
],
|
|
63
|
+
stateMutability: "view",
|
|
64
|
+
type: "function",
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
inputs: [],
|
|
68
|
+
name: "asset",
|
|
69
|
+
outputs: [
|
|
70
|
+
{
|
|
71
|
+
internalType: "address",
|
|
72
|
+
name: "",
|
|
73
|
+
type: "address",
|
|
74
|
+
},
|
|
75
|
+
],
|
|
76
|
+
stateMutability: "view",
|
|
77
|
+
type: "function",
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
inputs: [],
|
|
81
|
+
name: "decimals",
|
|
82
|
+
outputs: [
|
|
83
|
+
{
|
|
84
|
+
internalType: "uint8",
|
|
85
|
+
name: "",
|
|
86
|
+
type: "uint8",
|
|
87
|
+
},
|
|
88
|
+
],
|
|
89
|
+
stateMutability: "pure",
|
|
90
|
+
type: "function",
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
inputs: [],
|
|
94
|
+
name: "getPtRate",
|
|
95
|
+
outputs: [
|
|
96
|
+
{
|
|
97
|
+
internalType: "uint256",
|
|
98
|
+
name: "rate",
|
|
99
|
+
type: "uint256",
|
|
100
|
+
},
|
|
101
|
+
],
|
|
102
|
+
stateMutability: "view",
|
|
103
|
+
type: "function",
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
inputs: [],
|
|
107
|
+
name: "market",
|
|
108
|
+
outputs: [
|
|
109
|
+
{
|
|
110
|
+
internalType: "address",
|
|
111
|
+
name: "",
|
|
112
|
+
type: "address",
|
|
113
|
+
},
|
|
114
|
+
],
|
|
115
|
+
stateMutability: "view",
|
|
116
|
+
type: "function",
|
|
117
|
+
},
|
|
118
|
+
{
|
|
119
|
+
inputs: [],
|
|
120
|
+
name: "twapDuration",
|
|
121
|
+
outputs: [
|
|
122
|
+
{
|
|
123
|
+
internalType: "uint32",
|
|
124
|
+
name: "",
|
|
125
|
+
type: "uint32",
|
|
126
|
+
},
|
|
127
|
+
],
|
|
128
|
+
stateMutability: "view",
|
|
129
|
+
type: "function",
|
|
130
|
+
},
|
|
131
|
+
];
|
|
132
|
+
|
|
133
|
+
const _bytecode =
|
|
134
|
+
"0x6101206040523480156200001257600080fd5b5060405162000dff38038062000dff8339810160408190526200003591620001b2565b6001600160a01b03831660a081905263ffffffff8316608052604051631bea2f1d60e11b815261ffff831660048201526337d45e3a90602401600060405180830381600087803b1580156200008957600080fd5b505af11580156200009e573d6000803e3d6000fd5b5050505060a0516001600160a01b0316632c8ce6bc6040518163ffffffff1660e01b8152600401606060405180830381865afa158015620000e3573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062000109919062000214565b506001600160a01b0390811660c0521660e081905260408051630a40bee560e41b8152905163a40bee50916004808201926060929091908290030181865afa1580156200015a573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906200018091906200025d565b506001600160a01b03166101005250620002ae92505050565b6001600160a01b0381168114620001af57600080fd5b50565b600080600060608486031215620001c857600080fd5b8351620001d58162000199565b602085015190935063ffffffff81168114620001f057600080fd5b604085015190925061ffff811681146200020957600080fd5b809150509250925092565b6000806000606084860312156200022a57600080fd5b8351620002378162000199565b60208501519093506200024a8162000199565b6040850151909250620002098162000199565b6000806000606084860312156200027357600080fd5b8351600281106200028357600080fd5b6020850151909350620002968162000199565b604085015190925060ff811681146200020957600080fd5b60805160a05160c05160e05161010051610af26200030d600039600060c7015260006101430152600061016a01526000818161011c0152818161019101526102f401526000818160770152818161029301526103720152610af26000f3fe608060405234801561001057600080fd5b506004361061006d5760003560e01c806326d8954514610072578063313ce567146100b357806338d52e0f146100c25780635d77d43a1461010157806380f5560514610117578063afd27bf51461013e578063d94073d414610165575b600080fd5b6100997f000000000000000000000000000000000000000000000000000000000000000081565b60405163ffffffff90911681526020015b60405180910390f35b604051601281526020016100aa565b6100e97f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b0390911681526020016100aa565b61010961018c565b6040519081526020016100aa565b6100e97f000000000000000000000000000000000000000000000000000000000000000081565b6100e97f000000000000000000000000000000000000000000000000000000000000000081565b6100e97f000000000000000000000000000000000000000000000000000000000000000081565b6000807f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663e184c9be6040518163ffffffff1660e01b8152600401602060405180830381865afa1580156101ed573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102119190610896565b905042811061022957670de0b6b3a764000091505090565b600061023361026c565b9050600061024142846108c5565b9050600061024f83836103f1565b9050610263670de0b6b3a764000082610432565b94505050505090565b604080516002808252606082018352600092839291906020830190803683370190505090507f0000000000000000000000000000000000000000000000000000000000000000816000815181106102c5576102c56108ee565b63ffffffff9092166020928302919091019091015260405163883bdbfd60e01b81526000906001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169063883bdbfd90610329908590600401610904565b600060405180830381865afa158015610346573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261036e919081019061096a565b90507f000000000000000000000000000000000000000000000000000000000000000063ffffffff16816000815181106103aa576103aa6108ee565b6020026020010151826001815181106103c5576103c56108ee565b60200260200101516103d79190610a2e565b6103e19190610a6b565b6001600160d81b03169250505090565b6000806104036201518061016d610a91565b61040d8486610a91565b6104179190610aa8565b905061042a61042582610463565b61047d565b949350505050565b600080610447670de0b6b3a764000085610a91565b905082818161045857610458610a55565b049150505b92915050565b60006001600160ff1b0382111561047957600080fd5b5090565b6000680238fd42c5cf03ffff1982121580156104a2575068070c1cc73b00c800008213155b6104e55760405162461bcd60e51b815260206004820152601060248201526f125b9d985b1a5908195e1c1bdb995b9d60821b604482015260640160405180910390fd5b600082121561051d576104fa8260000361047d565b6a0c097ce7bc90715b34b9f160241b8161051657610516610a55565b0592915050565b60006806f05b59d3b2000000831261055b57506806f05b59d3b1ffffff199091019072195e54c5dd42177f53a27172fa9ec63026282760241b610591565b6803782dace9d9000000831261058d57506803782dace9d8ffffff19909101906b1425982cf597cd205cef7380610591565b5060015b6064929092029168056bc75e2d6310000068ad78ebc5ac6200000084126105e15768ad78ebc5ac61ffffff199093019268056bc75e2d631000006e01855144814a7ff805980ff008400082020590505b6856bc75e2d631000000841261061d576856bc75e2d630ffffff199093019268056bc75e2d631000006b02df0ab5a80a22c61ab5a70082020590505b682b5e3af16b18800000841261065757682b5e3af16b187fffff199093019268056bc75e2d63100000693f1fce3da636ea5cf85082020590505b6815af1d78b58c4000008412610691576815af1d78b58c3fffff199093019268056bc75e2d63100000690127fa27722cc06cc5e282020590505b680ad78ebc5ac620000084126106ca57680ad78ebc5ac61fffff199093019268056bc75e2d6310000068280e60114edb805d0382020590505b68056bc75e2d6310000084126107035768056bc75e2d630fffff199093019268056bc75e2d63100000680ebc5fb4174612111082020590505b6802b5e3af16b1880000841261073c576802b5e3af16b187ffff199093019268056bc75e2d631000006808f00f760a4b2db55d82020590505b68015af1d78b58c4000084126107755768015af1d78b58c3ffff199093019268056bc75e2d631000006806f5f177578893793782020590505b68056bc75e2d631000008481019085906002908280020505918201919050600368056bc75e2d631000008783020505918201919050600468056bc75e2d631000008783020505918201919050600568056bc75e2d631000008783020505918201919050600668056bc75e2d631000008783020505918201919050600768056bc75e2d631000008783020505918201919050600868056bc75e2d631000008783020505918201919050600968056bc75e2d631000008783020505918201919050600a68056bc75e2d631000008783020505918201919050600b68056bc75e2d631000008783020505918201919050600c68056bc75e2d631000008783020505918201919050606468056bc75e2d63100000848402058502059695505050505050565b6000602082840312156108a857600080fd5b5051919050565b634e487b7160e01b600052601160045260246000fd5b8181038181111561045d5761045d6108af565b634e487b7160e01b600052604160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b6020808252825182820181905260009190848201906040850190845b8181101561094257835163ffffffff1683529284019291840191600101610920565b50909695505050505050565b80516001600160d81b038116811461096557600080fd5b919050565b6000602080838503121561097d57600080fd5b82516001600160401b038082111561099457600080fd5b818501915085601f8301126109a857600080fd5b8151818111156109ba576109ba6108d8565b8060051b604051601f19603f830116810181811085821117156109df576109df6108d8565b6040529182528482019250838101850191888311156109fd57600080fd5b938501935b82851015610a2257610a138561094e565b84529385019392850192610a02565b98975050505050505050565b6001600160d81b03828116828216039080821115610a4e57610a4e6108af565b5092915050565b634e487b7160e01b600052601260045260246000fd5b60006001600160d81b0383811680610a8557610a85610a55565b92169190910492915050565b808202811582820484141761045d5761045d6108af565b600082610ab757610ab7610a55565b50049056fea2646970667358221220c44b75664d1cf389f4d828b604c831c6f80194a7ec2688b8125bffeecc82f2b864736f6c63430008110033";
|
|
135
|
+
|
|
136
|
+
type PendlePtAssetOracleConstructorParams =
|
|
137
|
+
| [signer?: Signer]
|
|
138
|
+
| ConstructorParameters<typeof ContractFactory>;
|
|
139
|
+
|
|
140
|
+
const isSuperArgs = (
|
|
141
|
+
xs: PendlePtAssetOracleConstructorParams
|
|
142
|
+
): xs is ConstructorParameters<typeof ContractFactory> => xs.length > 1;
|
|
143
|
+
|
|
144
|
+
export class PendlePtAssetOracle__factory extends ContractFactory {
|
|
145
|
+
constructor(...args: PendlePtAssetOracleConstructorParams) {
|
|
146
|
+
if (isSuperArgs(args)) {
|
|
147
|
+
super(...args);
|
|
148
|
+
} else {
|
|
149
|
+
super(_abi, _bytecode, args[0]);
|
|
150
|
+
}
|
|
151
|
+
this.contractName = "PendlePtAssetOracle";
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
deploy(
|
|
155
|
+
_market: string,
|
|
156
|
+
_twapDuration: BigNumberish,
|
|
157
|
+
_numSlotRequired: BigNumberish,
|
|
158
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
159
|
+
): Promise<PendlePtAssetOracle> {
|
|
160
|
+
return super.deploy(
|
|
161
|
+
_market,
|
|
162
|
+
_twapDuration,
|
|
163
|
+
_numSlotRequired,
|
|
164
|
+
overrides || {}
|
|
165
|
+
) as Promise<PendlePtAssetOracle>;
|
|
166
|
+
}
|
|
167
|
+
getDeployTransaction(
|
|
168
|
+
_market: string,
|
|
169
|
+
_twapDuration: BigNumberish,
|
|
170
|
+
_numSlotRequired: BigNumberish,
|
|
171
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
172
|
+
): TransactionRequest {
|
|
173
|
+
return super.getDeployTransaction(
|
|
174
|
+
_market,
|
|
175
|
+
_twapDuration,
|
|
176
|
+
_numSlotRequired,
|
|
177
|
+
overrides || {}
|
|
178
|
+
);
|
|
179
|
+
}
|
|
180
|
+
attach(address: string): PendlePtAssetOracle {
|
|
181
|
+
return super.attach(address) as PendlePtAssetOracle;
|
|
182
|
+
}
|
|
183
|
+
connect(signer: Signer): PendlePtAssetOracle__factory {
|
|
184
|
+
return super.connect(signer) as PendlePtAssetOracle__factory;
|
|
185
|
+
}
|
|
186
|
+
static readonly contractName: "PendlePtAssetOracle";
|
|
187
|
+
public readonly contractName: "PendlePtAssetOracle";
|
|
188
|
+
static readonly bytecode = _bytecode;
|
|
189
|
+
static readonly abi = _abi;
|
|
190
|
+
static createInterface(): PendlePtAssetOracleInterface {
|
|
191
|
+
return new utils.Interface(_abi) as PendlePtAssetOracleInterface;
|
|
192
|
+
}
|
|
193
|
+
static connect(
|
|
194
|
+
address: string,
|
|
195
|
+
signerOrProvider: Signer | Provider
|
|
196
|
+
): PendlePtAssetOracle {
|
|
197
|
+
return new Contract(address, _abi, signerOrProvider) as PendlePtAssetOracle;
|
|
198
|
+
}
|
|
199
|
+
}
|
|
@@ -0,0 +1,251 @@
|
|
|
1
|
+
/* Autogenerated file. Do not edit manually. */
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
import {
|
|
5
|
+
Signer,
|
|
6
|
+
utils,
|
|
7
|
+
Contract,
|
|
8
|
+
ContractFactory,
|
|
9
|
+
Overrides,
|
|
10
|
+
BigNumberish,
|
|
11
|
+
} from "ethers";
|
|
12
|
+
import { Provider, TransactionRequest } from "@ethersproject/providers";
|
|
13
|
+
import type {
|
|
14
|
+
PendlePtChainlinkOracle,
|
|
15
|
+
PendlePtChainlinkOracleInterface,
|
|
16
|
+
} from "../PendlePtChainlinkOracle";
|
|
17
|
+
|
|
18
|
+
const _abi = [
|
|
19
|
+
{
|
|
20
|
+
inputs: [
|
|
21
|
+
{
|
|
22
|
+
internalType: "address",
|
|
23
|
+
name: "_market",
|
|
24
|
+
type: "address",
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
internalType: "uint32",
|
|
28
|
+
name: "_twapDuration",
|
|
29
|
+
type: "uint32",
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
internalType: "uint16",
|
|
33
|
+
name: "_numSlotRequired",
|
|
34
|
+
type: "uint16",
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
internalType: "address",
|
|
38
|
+
name: "_feed",
|
|
39
|
+
type: "address",
|
|
40
|
+
},
|
|
41
|
+
],
|
|
42
|
+
stateMutability: "nonpayable",
|
|
43
|
+
type: "constructor",
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
inputs: [],
|
|
47
|
+
name: "PT",
|
|
48
|
+
outputs: [
|
|
49
|
+
{
|
|
50
|
+
internalType: "contract IPPrincipalToken",
|
|
51
|
+
name: "",
|
|
52
|
+
type: "address",
|
|
53
|
+
},
|
|
54
|
+
],
|
|
55
|
+
stateMutability: "view",
|
|
56
|
+
type: "function",
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
inputs: [],
|
|
60
|
+
name: "SY",
|
|
61
|
+
outputs: [
|
|
62
|
+
{
|
|
63
|
+
internalType: "contract IStandardizedYield",
|
|
64
|
+
name: "",
|
|
65
|
+
type: "address",
|
|
66
|
+
},
|
|
67
|
+
],
|
|
68
|
+
stateMutability: "view",
|
|
69
|
+
type: "function",
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
inputs: [],
|
|
73
|
+
name: "asset",
|
|
74
|
+
outputs: [
|
|
75
|
+
{
|
|
76
|
+
internalType: "address",
|
|
77
|
+
name: "",
|
|
78
|
+
type: "address",
|
|
79
|
+
},
|
|
80
|
+
],
|
|
81
|
+
stateMutability: "view",
|
|
82
|
+
type: "function",
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
inputs: [],
|
|
86
|
+
name: "decimals",
|
|
87
|
+
outputs: [
|
|
88
|
+
{
|
|
89
|
+
internalType: "uint8",
|
|
90
|
+
name: "",
|
|
91
|
+
type: "uint8",
|
|
92
|
+
},
|
|
93
|
+
],
|
|
94
|
+
stateMutability: "pure",
|
|
95
|
+
type: "function",
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
inputs: [],
|
|
99
|
+
name: "feed",
|
|
100
|
+
outputs: [
|
|
101
|
+
{
|
|
102
|
+
internalType: "address",
|
|
103
|
+
name: "",
|
|
104
|
+
type: "address",
|
|
105
|
+
},
|
|
106
|
+
],
|
|
107
|
+
stateMutability: "view",
|
|
108
|
+
type: "function",
|
|
109
|
+
},
|
|
110
|
+
{
|
|
111
|
+
inputs: [],
|
|
112
|
+
name: "feedDecimals",
|
|
113
|
+
outputs: [
|
|
114
|
+
{
|
|
115
|
+
internalType: "uint8",
|
|
116
|
+
name: "",
|
|
117
|
+
type: "uint8",
|
|
118
|
+
},
|
|
119
|
+
],
|
|
120
|
+
stateMutability: "view",
|
|
121
|
+
type: "function",
|
|
122
|
+
},
|
|
123
|
+
{
|
|
124
|
+
inputs: [],
|
|
125
|
+
name: "getPtPrice",
|
|
126
|
+
outputs: [
|
|
127
|
+
{
|
|
128
|
+
internalType: "uint256",
|
|
129
|
+
name: "",
|
|
130
|
+
type: "uint256",
|
|
131
|
+
},
|
|
132
|
+
],
|
|
133
|
+
stateMutability: "view",
|
|
134
|
+
type: "function",
|
|
135
|
+
},
|
|
136
|
+
{
|
|
137
|
+
inputs: [],
|
|
138
|
+
name: "getPtRate",
|
|
139
|
+
outputs: [
|
|
140
|
+
{
|
|
141
|
+
internalType: "uint256",
|
|
142
|
+
name: "rate",
|
|
143
|
+
type: "uint256",
|
|
144
|
+
},
|
|
145
|
+
],
|
|
146
|
+
stateMutability: "view",
|
|
147
|
+
type: "function",
|
|
148
|
+
},
|
|
149
|
+
{
|
|
150
|
+
inputs: [],
|
|
151
|
+
name: "market",
|
|
152
|
+
outputs: [
|
|
153
|
+
{
|
|
154
|
+
internalType: "address",
|
|
155
|
+
name: "",
|
|
156
|
+
type: "address",
|
|
157
|
+
},
|
|
158
|
+
],
|
|
159
|
+
stateMutability: "view",
|
|
160
|
+
type: "function",
|
|
161
|
+
},
|
|
162
|
+
{
|
|
163
|
+
inputs: [],
|
|
164
|
+
name: "twapDuration",
|
|
165
|
+
outputs: [
|
|
166
|
+
{
|
|
167
|
+
internalType: "uint32",
|
|
168
|
+
name: "",
|
|
169
|
+
type: "uint32",
|
|
170
|
+
},
|
|
171
|
+
],
|
|
172
|
+
stateMutability: "view",
|
|
173
|
+
type: "function",
|
|
174
|
+
},
|
|
175
|
+
];
|
|
176
|
+
|
|
177
|
+
const _bytecode =
|
|
178
|
+
"0x6101606040523480156200001257600080fd5b506040516200121538038062001215833981016040819052620000359162000230565b6001600160a01b03841660a081905263ffffffff8416608052604051631bea2f1d60e11b815261ffff84166004820152859185918591906337d45e3a90602401600060405180830381600087803b1580156200009057600080fd5b505af1158015620000a5573d6000803e3d6000fd5b5050505060a0516001600160a01b0316632c8ce6bc6040518163ffffffff1660e01b8152600401606060405180830381865afa158015620000ea573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620001109190620002a6565b506001600160a01b0390811660c0521660e081905260408051630a40bee560e41b8152905163a40bee50916004808201926060929091908290030181865afa15801562000161573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062000187919062000311565b506001600160a01b039081166101005285166101208190526040805163313ce56760e01b8152905191955063313ce56794506004808201945060209350908290030181865afa158015620001df573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062000205919062000363565b60ff1661014052506200038892505050565b6001600160a01b03811681146200022d57600080fd5b50565b600080600080608085870312156200024757600080fd5b8451620002548162000217565b602086015190945063ffffffff811681146200026f57600080fd5b604086015190935061ffff811681146200028857600080fd5b60608601519092506200029b8162000217565b939692955090935050565b600080600060608486031215620002bc57600080fd5b8351620002c98162000217565b6020850151909350620002dc8162000217565b6040850151909250620002ef8162000217565b809150509250925092565b805160ff811681146200030c57600080fd5b919050565b6000806000606084860312156200032757600080fd5b8351600281106200033757600080fd5b60208501519093506200034a8162000217565b91506200035a60408501620002fa565b90509250925092565b6000602082840312156200037657600080fd5b6200038182620002fa565b9392505050565b60805160a05160c05160e051610100516101205161014051610dfc62000419600039600081816101c0015281816105a8015281816105d6015261061901526000818160ee01526105220152600061012d01526000610191015260006101e701526000818161016a0152818161020e01526103ae01526000818160980152818161034d015261042c0152610dfc6000f3fe608060405234801561001057600080fd5b506004361061008e5760003560e01c806326d8954514610093578063313ce567146100d457806337a7b7d8146100e957806338d52e0f146101285780635d77d43a1461014f57806380f5560514610165578063afd27bf51461018c578063bc3ff1dc146101b3578063c23953d0146101bb578063d94073d4146101e2575b600080fd5b6100ba7f000000000000000000000000000000000000000000000000000000000000000081565b60405163ffffffff90911681526020015b60405180910390f35b60125b60405160ff90911681526020016100cb565b6101107f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b0390911681526020016100cb565b6101107f000000000000000000000000000000000000000000000000000000000000000081565b610157610209565b6040519081526020016100cb565b6101107f000000000000000000000000000000000000000000000000000000000000000081565b6101107f000000000000000000000000000000000000000000000000000000000000000081565b6101576102e9565b6100d77f000000000000000000000000000000000000000000000000000000000000000081565b6101107f000000000000000000000000000000000000000000000000000000000000000081565b6000807f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663e184c9be6040518163ffffffff1660e01b8152600401602060405180830381865afa15801561026a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061028e9190610a8d565b90504281106102a657670de0b6b3a764000091505090565b60006102b0610326565b905060006102be4284610abc565b905060006102cc83836104ab565b90506102e0670de0b6b3a7640000826104ec565b94505050505090565b6000806102f4610209565b9050600061030061051d565b905081610315670de0b6b3a764000083610acf565b61031f9190610afc565b9250505090565b604080516002808252606082018352600092839291906020830190803683370190505090507f00000000000000000000000000000000000000000000000000000000000000008160008151811061037f5761037f610b26565b63ffffffff9092166020928302919091019091015260405163883bdbfd60e01b81526000906001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169063883bdbfd906103e3908590600401610b3c565b600060405180830381865afa158015610400573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526104289190810190610ba2565b90507f000000000000000000000000000000000000000000000000000000000000000063ffffffff168160008151811061046457610464610b26565b60200260200101518260018151811061047f5761047f610b26565b60200260200101516104919190610c66565b61049b9190610c8d565b6001600160d81b03169250505090565b6000806104bd6201518061016d610acf565b6104c78486610acf565b6104d19190610afc565b90506104e46104df8261065a565b610674565b949350505050565b600080610501670de0b6b3a764000085610acf565b905082818161051257610512610ae6565b049150505b92915050565b6000807f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166350d25bcd6040518163ffffffff1660e01b8152600401602060405180830381865afa15801561057e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105a29190610a8d565b905060127f000000000000000000000000000000000000000000000000000000000000000060ff1610610614576105fa60127f0000000000000000000000000000000000000000000000000000000000000000610cb3565b61060590600a610db0565b61060f9082610afc565b610654565b61063f7f00000000000000000000000000000000000000000000000000000000000000006012610cb3565b61064a90600a610db0565b6106549082610acf565b91505090565b60006001600160ff1b0382111561067057600080fd5b5090565b6000680238fd42c5cf03ffff198212158015610699575068070c1cc73b00c800008213155b6106dc5760405162461bcd60e51b815260206004820152601060248201526f125b9d985b1a5908195e1c1bdb995b9d60821b604482015260640160405180910390fd5b6000821215610714576106f182600003610674565b6a0c097ce7bc90715b34b9f160241b8161070d5761070d610ae6565b0592915050565b60006806f05b59d3b2000000831261075257506806f05b59d3b1ffffff199091019072195e54c5dd42177f53a27172fa9ec63026282760241b610788565b6803782dace9d9000000831261078457506803782dace9d8ffffff19909101906b1425982cf597cd205cef7380610788565b5060015b6064929092029168056bc75e2d6310000068ad78ebc5ac6200000084126107d85768ad78ebc5ac61ffffff199093019268056bc75e2d631000006e01855144814a7ff805980ff008400082020590505b6856bc75e2d6310000008412610814576856bc75e2d630ffffff199093019268056bc75e2d631000006b02df0ab5a80a22c61ab5a70082020590505b682b5e3af16b18800000841261084e57682b5e3af16b187fffff199093019268056bc75e2d63100000693f1fce3da636ea5cf85082020590505b6815af1d78b58c4000008412610888576815af1d78b58c3fffff199093019268056bc75e2d63100000690127fa27722cc06cc5e282020590505b680ad78ebc5ac620000084126108c157680ad78ebc5ac61fffff199093019268056bc75e2d6310000068280e60114edb805d0382020590505b68056bc75e2d6310000084126108fa5768056bc75e2d630fffff199093019268056bc75e2d63100000680ebc5fb4174612111082020590505b6802b5e3af16b18800008412610933576802b5e3af16b187ffff199093019268056bc75e2d631000006808f00f760a4b2db55d82020590505b68015af1d78b58c40000841261096c5768015af1d78b58c3ffff199093019268056bc75e2d631000006806f5f177578893793782020590505b68056bc75e2d631000008481019085906002908280020505918201919050600368056bc75e2d631000008783020505918201919050600468056bc75e2d631000008783020505918201919050600568056bc75e2d631000008783020505918201919050600668056bc75e2d631000008783020505918201919050600768056bc75e2d631000008783020505918201919050600868056bc75e2d631000008783020505918201919050600968056bc75e2d631000008783020505918201919050600a68056bc75e2d631000008783020505918201919050600b68056bc75e2d631000008783020505918201919050600c68056bc75e2d631000008783020505918201919050606468056bc75e2d63100000848402058502059695505050505050565b600060208284031215610a9f57600080fd5b5051919050565b634e487b7160e01b600052601160045260246000fd5b8181038181111561051757610517610aa6565b808202811582820484141761051757610517610aa6565b634e487b7160e01b600052601260045260246000fd5b600082610b0b57610b0b610ae6565b500490565b634e487b7160e01b600052604160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b6020808252825182820181905260009190848201906040850190845b81811015610b7a57835163ffffffff1683529284019291840191600101610b58565b50909695505050505050565b80516001600160d81b0381168114610b9d57600080fd5b919050565b60006020808385031215610bb557600080fd5b82516001600160401b0380821115610bcc57600080fd5b818501915085601f830112610be057600080fd5b815181811115610bf257610bf2610b10565b8060051b604051601f19603f83011681018181108582111715610c1757610c17610b10565b604052918252848201925083810185019188831115610c3557600080fd5b938501935b82851015610c5a57610c4b85610b86565b84529385019392850192610c3a565b98975050505050505050565b6001600160d81b03828116828216039080821115610c8657610c86610aa6565b5092915050565b60006001600160d81b0383811680610ca757610ca7610ae6565b92169190910492915050565b60ff828116828216039081111561051757610517610aa6565b600181815b80851115610d07578160001904821115610ced57610ced610aa6565b80851615610cfa57918102915b93841c9390800290610cd1565b509250929050565b600082610d1e57506001610517565b81610d2b57506000610517565b8160018114610d415760028114610d4b57610d67565b6001915050610517565b60ff841115610d5c57610d5c610aa6565b50506001821b610517565b5060208310610133831016604e8410600b8410161715610d8a575081810a610517565b610d948383610ccc565b8060001904821115610da857610da8610aa6565b029392505050565b6000610dbf60ff841683610d0f565b939250505056fea26469706673582212205ffe5b656050b65f8720d202c89c8b8538e0c4de26ce4902f70884ae51dba27164736f6c63430008110033";
|
|
179
|
+
|
|
180
|
+
type PendlePtChainlinkOracleConstructorParams =
|
|
181
|
+
| [signer?: Signer]
|
|
182
|
+
| ConstructorParameters<typeof ContractFactory>;
|
|
183
|
+
|
|
184
|
+
const isSuperArgs = (
|
|
185
|
+
xs: PendlePtChainlinkOracleConstructorParams
|
|
186
|
+
): xs is ConstructorParameters<typeof ContractFactory> => xs.length > 1;
|
|
187
|
+
|
|
188
|
+
export class PendlePtChainlinkOracle__factory extends ContractFactory {
|
|
189
|
+
constructor(...args: PendlePtChainlinkOracleConstructorParams) {
|
|
190
|
+
if (isSuperArgs(args)) {
|
|
191
|
+
super(...args);
|
|
192
|
+
} else {
|
|
193
|
+
super(_abi, _bytecode, args[0]);
|
|
194
|
+
}
|
|
195
|
+
this.contractName = "PendlePtChainlinkOracle";
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
deploy(
|
|
199
|
+
_market: string,
|
|
200
|
+
_twapDuration: BigNumberish,
|
|
201
|
+
_numSlotRequired: BigNumberish,
|
|
202
|
+
_feed: string,
|
|
203
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
204
|
+
): Promise<PendlePtChainlinkOracle> {
|
|
205
|
+
return super.deploy(
|
|
206
|
+
_market,
|
|
207
|
+
_twapDuration,
|
|
208
|
+
_numSlotRequired,
|
|
209
|
+
_feed,
|
|
210
|
+
overrides || {}
|
|
211
|
+
) as Promise<PendlePtChainlinkOracle>;
|
|
212
|
+
}
|
|
213
|
+
getDeployTransaction(
|
|
214
|
+
_market: string,
|
|
215
|
+
_twapDuration: BigNumberish,
|
|
216
|
+
_numSlotRequired: BigNumberish,
|
|
217
|
+
_feed: string,
|
|
218
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
219
|
+
): TransactionRequest {
|
|
220
|
+
return super.getDeployTransaction(
|
|
221
|
+
_market,
|
|
222
|
+
_twapDuration,
|
|
223
|
+
_numSlotRequired,
|
|
224
|
+
_feed,
|
|
225
|
+
overrides || {}
|
|
226
|
+
);
|
|
227
|
+
}
|
|
228
|
+
attach(address: string): PendlePtChainlinkOracle {
|
|
229
|
+
return super.attach(address) as PendlePtChainlinkOracle;
|
|
230
|
+
}
|
|
231
|
+
connect(signer: Signer): PendlePtChainlinkOracle__factory {
|
|
232
|
+
return super.connect(signer) as PendlePtChainlinkOracle__factory;
|
|
233
|
+
}
|
|
234
|
+
static readonly contractName: "PendlePtChainlinkOracle";
|
|
235
|
+
public readonly contractName: "PendlePtChainlinkOracle";
|
|
236
|
+
static readonly bytecode = _bytecode;
|
|
237
|
+
static readonly abi = _abi;
|
|
238
|
+
static createInterface(): PendlePtChainlinkOracleInterface {
|
|
239
|
+
return new utils.Interface(_abi) as PendlePtChainlinkOracleInterface;
|
|
240
|
+
}
|
|
241
|
+
static connect(
|
|
242
|
+
address: string,
|
|
243
|
+
signerOrProvider: Signer | Provider
|
|
244
|
+
): PendlePtChainlinkOracle {
|
|
245
|
+
return new Contract(
|
|
246
|
+
address,
|
|
247
|
+
_abi,
|
|
248
|
+
signerOrProvider
|
|
249
|
+
) as PendlePtChainlinkOracle;
|
|
250
|
+
}
|
|
251
|
+
}
|
|
@@ -0,0 +1,203 @@
|
|
|
1
|
+
/* Autogenerated file. Do not edit manually. */
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
import {
|
|
5
|
+
Signer,
|
|
6
|
+
utils,
|
|
7
|
+
Contract,
|
|
8
|
+
ContractFactory,
|
|
9
|
+
Overrides,
|
|
10
|
+
BigNumberish,
|
|
11
|
+
} from "ethers";
|
|
12
|
+
import { Provider, TransactionRequest } from "@ethersproject/providers";
|
|
13
|
+
import type {
|
|
14
|
+
PendlePtSingleAssetOracle,
|
|
15
|
+
PendlePtSingleAssetOracleInterface,
|
|
16
|
+
} from "../PendlePtSingleAssetOracle";
|
|
17
|
+
|
|
18
|
+
const _abi = [
|
|
19
|
+
{
|
|
20
|
+
inputs: [
|
|
21
|
+
{
|
|
22
|
+
internalType: "address",
|
|
23
|
+
name: "_market",
|
|
24
|
+
type: "address",
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
internalType: "uint32",
|
|
28
|
+
name: "_twapDuration",
|
|
29
|
+
type: "uint32",
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
internalType: "uint16",
|
|
33
|
+
name: "_numSlotRequired",
|
|
34
|
+
type: "uint16",
|
|
35
|
+
},
|
|
36
|
+
],
|
|
37
|
+
stateMutability: "nonpayable",
|
|
38
|
+
type: "constructor",
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
inputs: [],
|
|
42
|
+
name: "PT",
|
|
43
|
+
outputs: [
|
|
44
|
+
{
|
|
45
|
+
internalType: "contract IPPrincipalToken",
|
|
46
|
+
name: "",
|
|
47
|
+
type: "address",
|
|
48
|
+
},
|
|
49
|
+
],
|
|
50
|
+
stateMutability: "view",
|
|
51
|
+
type: "function",
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
inputs: [],
|
|
55
|
+
name: "SY",
|
|
56
|
+
outputs: [
|
|
57
|
+
{
|
|
58
|
+
internalType: "contract IStandardizedYield",
|
|
59
|
+
name: "",
|
|
60
|
+
type: "address",
|
|
61
|
+
},
|
|
62
|
+
],
|
|
63
|
+
stateMutability: "view",
|
|
64
|
+
type: "function",
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
inputs: [],
|
|
68
|
+
name: "asset",
|
|
69
|
+
outputs: [
|
|
70
|
+
{
|
|
71
|
+
internalType: "address",
|
|
72
|
+
name: "",
|
|
73
|
+
type: "address",
|
|
74
|
+
},
|
|
75
|
+
],
|
|
76
|
+
stateMutability: "view",
|
|
77
|
+
type: "function",
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
inputs: [],
|
|
81
|
+
name: "decimals",
|
|
82
|
+
outputs: [
|
|
83
|
+
{
|
|
84
|
+
internalType: "uint8",
|
|
85
|
+
name: "",
|
|
86
|
+
type: "uint8",
|
|
87
|
+
},
|
|
88
|
+
],
|
|
89
|
+
stateMutability: "pure",
|
|
90
|
+
type: "function",
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
inputs: [],
|
|
94
|
+
name: "getPtRate",
|
|
95
|
+
outputs: [
|
|
96
|
+
{
|
|
97
|
+
internalType: "uint256",
|
|
98
|
+
name: "rate",
|
|
99
|
+
type: "uint256",
|
|
100
|
+
},
|
|
101
|
+
],
|
|
102
|
+
stateMutability: "view",
|
|
103
|
+
type: "function",
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
inputs: [],
|
|
107
|
+
name: "market",
|
|
108
|
+
outputs: [
|
|
109
|
+
{
|
|
110
|
+
internalType: "address",
|
|
111
|
+
name: "",
|
|
112
|
+
type: "address",
|
|
113
|
+
},
|
|
114
|
+
],
|
|
115
|
+
stateMutability: "view",
|
|
116
|
+
type: "function",
|
|
117
|
+
},
|
|
118
|
+
{
|
|
119
|
+
inputs: [],
|
|
120
|
+
name: "twapDuration",
|
|
121
|
+
outputs: [
|
|
122
|
+
{
|
|
123
|
+
internalType: "uint32",
|
|
124
|
+
name: "",
|
|
125
|
+
type: "uint32",
|
|
126
|
+
},
|
|
127
|
+
],
|
|
128
|
+
stateMutability: "view",
|
|
129
|
+
type: "function",
|
|
130
|
+
},
|
|
131
|
+
];
|
|
132
|
+
|
|
133
|
+
const _bytecode =
|
|
134
|
+
"0x6101206040523480156200001257600080fd5b5060405162000dff38038062000dff8339810160408190526200003591620001b2565b6001600160a01b03831660a081905263ffffffff8316608052604051631bea2f1d60e11b815261ffff831660048201526337d45e3a90602401600060405180830381600087803b1580156200008957600080fd5b505af11580156200009e573d6000803e3d6000fd5b5050505060a0516001600160a01b0316632c8ce6bc6040518163ffffffff1660e01b8152600401606060405180830381865afa158015620000e3573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062000109919062000214565b506001600160a01b0390811660c0521660e081905260408051630a40bee560e41b8152905163a40bee50916004808201926060929091908290030181865afa1580156200015a573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906200018091906200025d565b506001600160a01b03166101005250620002ae92505050565b6001600160a01b0381168114620001af57600080fd5b50565b600080600060608486031215620001c857600080fd5b8351620001d58162000199565b602085015190935063ffffffff81168114620001f057600080fd5b604085015190925061ffff811681146200020957600080fd5b809150509250925092565b6000806000606084860312156200022a57600080fd5b8351620002378162000199565b60208501519093506200024a8162000199565b6040850151909250620002098162000199565b6000806000606084860312156200027357600080fd5b8351600281106200028357600080fd5b6020850151909350620002968162000199565b604085015190925060ff811681146200020957600080fd5b60805160a05160c05160e05161010051610af26200030d600039600060c7015260006101430152600061016a01526000818161011c0152818161019101526102f401526000818160770152818161029301526103720152610af26000f3fe608060405234801561001057600080fd5b506004361061006d5760003560e01c806326d8954514610072578063313ce567146100b357806338d52e0f146100c25780635d77d43a1461010157806380f5560514610117578063afd27bf51461013e578063d94073d414610165575b600080fd5b6100997f000000000000000000000000000000000000000000000000000000000000000081565b60405163ffffffff90911681526020015b60405180910390f35b604051601281526020016100aa565b6100e97f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b0390911681526020016100aa565b61010961018c565b6040519081526020016100aa565b6100e97f000000000000000000000000000000000000000000000000000000000000000081565b6100e97f000000000000000000000000000000000000000000000000000000000000000081565b6100e97f000000000000000000000000000000000000000000000000000000000000000081565b6000807f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663e184c9be6040518163ffffffff1660e01b8152600401602060405180830381865afa1580156101ed573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102119190610896565b905042811061022957670de0b6b3a764000091505090565b600061023361026c565b9050600061024142846108c5565b9050600061024f83836103f1565b9050610263670de0b6b3a764000082610432565b94505050505090565b604080516002808252606082018352600092839291906020830190803683370190505090507f0000000000000000000000000000000000000000000000000000000000000000816000815181106102c5576102c56108ee565b63ffffffff9092166020928302919091019091015260405163883bdbfd60e01b81526000906001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169063883bdbfd90610329908590600401610904565b600060405180830381865afa158015610346573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261036e919081019061096a565b90507f000000000000000000000000000000000000000000000000000000000000000063ffffffff16816000815181106103aa576103aa6108ee565b6020026020010151826001815181106103c5576103c56108ee565b60200260200101516103d79190610a2e565b6103e19190610a6b565b6001600160d81b03169250505090565b6000806104036201518061016d610a91565b61040d8486610a91565b6104179190610aa8565b905061042a61042582610463565b61047d565b949350505050565b600080610447670de0b6b3a764000085610a91565b905082818161045857610458610a55565b049150505b92915050565b60006001600160ff1b0382111561047957600080fd5b5090565b6000680238fd42c5cf03ffff1982121580156104a2575068070c1cc73b00c800008213155b6104e55760405162461bcd60e51b815260206004820152601060248201526f125b9d985b1a5908195e1c1bdb995b9d60821b604482015260640160405180910390fd5b600082121561051d576104fa8260000361047d565b6a0c097ce7bc90715b34b9f160241b8161051657610516610a55565b0592915050565b60006806f05b59d3b2000000831261055b57506806f05b59d3b1ffffff199091019072195e54c5dd42177f53a27172fa9ec63026282760241b610591565b6803782dace9d9000000831261058d57506803782dace9d8ffffff19909101906b1425982cf597cd205cef7380610591565b5060015b6064929092029168056bc75e2d6310000068ad78ebc5ac6200000084126105e15768ad78ebc5ac61ffffff199093019268056bc75e2d631000006e01855144814a7ff805980ff008400082020590505b6856bc75e2d631000000841261061d576856bc75e2d630ffffff199093019268056bc75e2d631000006b02df0ab5a80a22c61ab5a70082020590505b682b5e3af16b18800000841261065757682b5e3af16b187fffff199093019268056bc75e2d63100000693f1fce3da636ea5cf85082020590505b6815af1d78b58c4000008412610691576815af1d78b58c3fffff199093019268056bc75e2d63100000690127fa27722cc06cc5e282020590505b680ad78ebc5ac620000084126106ca57680ad78ebc5ac61fffff199093019268056bc75e2d6310000068280e60114edb805d0382020590505b68056bc75e2d6310000084126107035768056bc75e2d630fffff199093019268056bc75e2d63100000680ebc5fb4174612111082020590505b6802b5e3af16b1880000841261073c576802b5e3af16b187ffff199093019268056bc75e2d631000006808f00f760a4b2db55d82020590505b68015af1d78b58c4000084126107755768015af1d78b58c3ffff199093019268056bc75e2d631000006806f5f177578893793782020590505b68056bc75e2d631000008481019085906002908280020505918201919050600368056bc75e2d631000008783020505918201919050600468056bc75e2d631000008783020505918201919050600568056bc75e2d631000008783020505918201919050600668056bc75e2d631000008783020505918201919050600768056bc75e2d631000008783020505918201919050600868056bc75e2d631000008783020505918201919050600968056bc75e2d631000008783020505918201919050600a68056bc75e2d631000008783020505918201919050600b68056bc75e2d631000008783020505918201919050600c68056bc75e2d631000008783020505918201919050606468056bc75e2d63100000848402058502059695505050505050565b6000602082840312156108a857600080fd5b5051919050565b634e487b7160e01b600052601160045260246000fd5b8181038181111561045d5761045d6108af565b634e487b7160e01b600052604160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b6020808252825182820181905260009190848201906040850190845b8181101561094257835163ffffffff1683529284019291840191600101610920565b50909695505050505050565b80516001600160d81b038116811461096557600080fd5b919050565b6000602080838503121561097d57600080fd5b82516001600160401b038082111561099457600080fd5b818501915085601f8301126109a857600080fd5b8151818111156109ba576109ba6108d8565b8060051b604051601f19603f830116810181811085821117156109df576109df6108d8565b6040529182528482019250838101850191888311156109fd57600080fd5b938501935b82851015610a2257610a138561094e565b84529385019392850192610a02565b98975050505050505050565b6001600160d81b03828116828216039080821115610a4e57610a4e6108af565b5092915050565b634e487b7160e01b600052601260045260246000fd5b60006001600160d81b0383811680610a8557610a85610a55565b92169190910492915050565b808202811582820484141761045d5761045d6108af565b600082610ab757610ab7610a55565b50049056fea26469706673582212208d61cf7ecbcf64a4c7942bc85ad691d5a82e20acc35421e646f0988b721f5caf64736f6c63430008110033";
|
|
135
|
+
|
|
136
|
+
type PendlePtSingleAssetOracleConstructorParams =
|
|
137
|
+
| [signer?: Signer]
|
|
138
|
+
| ConstructorParameters<typeof ContractFactory>;
|
|
139
|
+
|
|
140
|
+
const isSuperArgs = (
|
|
141
|
+
xs: PendlePtSingleAssetOracleConstructorParams
|
|
142
|
+
): xs is ConstructorParameters<typeof ContractFactory> => xs.length > 1;
|
|
143
|
+
|
|
144
|
+
export class PendlePtSingleAssetOracle__factory extends ContractFactory {
|
|
145
|
+
constructor(...args: PendlePtSingleAssetOracleConstructorParams) {
|
|
146
|
+
if (isSuperArgs(args)) {
|
|
147
|
+
super(...args);
|
|
148
|
+
} else {
|
|
149
|
+
super(_abi, _bytecode, args[0]);
|
|
150
|
+
}
|
|
151
|
+
this.contractName = "PendlePtSingleAssetOracle";
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
deploy(
|
|
155
|
+
_market: string,
|
|
156
|
+
_twapDuration: BigNumberish,
|
|
157
|
+
_numSlotRequired: BigNumberish,
|
|
158
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
159
|
+
): Promise<PendlePtSingleAssetOracle> {
|
|
160
|
+
return super.deploy(
|
|
161
|
+
_market,
|
|
162
|
+
_twapDuration,
|
|
163
|
+
_numSlotRequired,
|
|
164
|
+
overrides || {}
|
|
165
|
+
) as Promise<PendlePtSingleAssetOracle>;
|
|
166
|
+
}
|
|
167
|
+
getDeployTransaction(
|
|
168
|
+
_market: string,
|
|
169
|
+
_twapDuration: BigNumberish,
|
|
170
|
+
_numSlotRequired: BigNumberish,
|
|
171
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
172
|
+
): TransactionRequest {
|
|
173
|
+
return super.getDeployTransaction(
|
|
174
|
+
_market,
|
|
175
|
+
_twapDuration,
|
|
176
|
+
_numSlotRequired,
|
|
177
|
+
overrides || {}
|
|
178
|
+
);
|
|
179
|
+
}
|
|
180
|
+
attach(address: string): PendlePtSingleAssetOracle {
|
|
181
|
+
return super.attach(address) as PendlePtSingleAssetOracle;
|
|
182
|
+
}
|
|
183
|
+
connect(signer: Signer): PendlePtSingleAssetOracle__factory {
|
|
184
|
+
return super.connect(signer) as PendlePtSingleAssetOracle__factory;
|
|
185
|
+
}
|
|
186
|
+
static readonly contractName: "PendlePtSingleAssetOracle";
|
|
187
|
+
public readonly contractName: "PendlePtSingleAssetOracle";
|
|
188
|
+
static readonly bytecode = _bytecode;
|
|
189
|
+
static readonly abi = _abi;
|
|
190
|
+
static createInterface(): PendlePtSingleAssetOracleInterface {
|
|
191
|
+
return new utils.Interface(_abi) as PendlePtSingleAssetOracleInterface;
|
|
192
|
+
}
|
|
193
|
+
static connect(
|
|
194
|
+
address: string,
|
|
195
|
+
signerOrProvider: Signer | Provider
|
|
196
|
+
): PendlePtSingleAssetOracle {
|
|
197
|
+
return new Contract(
|
|
198
|
+
address,
|
|
199
|
+
_abi,
|
|
200
|
+
signerOrProvider
|
|
201
|
+
) as PendlePtSingleAssetOracle;
|
|
202
|
+
}
|
|
203
|
+
}
|