@pendle/core-v2 2.8.2-mainnet → 2.9.0-mainnet
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/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/PendleMsgSenderAppUpg.sol/PendleMsgSenderAppUpg.dbg.json +1 -1
- package/build/artifacts/contracts/LiquidityMining/CrossChainMsg/libraries/ExcessivelySafeCall.sol/ExcessivelySafeCall.dbg.json +1 -1
- package/build/artifacts/contracts/LiquidityMining/CrossChainMsg/libraries/LayerZeroHelper.sol/LayerZeroHelper.dbg.json +1 -1
- package/build/artifacts/contracts/LiquidityMining/GaugeController/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/VotingController/PendleVotingControllerUpg.sol/PendleVotingControllerUpg.dbg.json +1 -1
- 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/VotingEscrowPendleSidechain.sol/VotingEscrowPendleSidechain.dbg.json +1 -1
- 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/VeHistoryLib.sol/CheckpointHelper.dbg.json +1 -1
- package/build/artifacts/contracts/LiquidityMining/libraries/VeHistoryLib.sol/Checkpoints.dbg.json +1 -1
- package/build/artifacts/contracts/LiquidityMining/libraries/WeekMath.sol/WeekMath.dbg.json +1 -1
- package/build/artifacts/contracts/core/BulkSeller/BulkSeller.sol/BulkSeller.dbg.json +1 -1
- package/build/artifacts/contracts/core/BulkSeller/BulkSellerFactory.sol/BulkSellerFactory.dbg.json +1 -1
- package/build/artifacts/contracts/core/BulkSeller/BulkSellerMathCore.sol/BulkSellerMathCore.dbg.json +1 -1
- 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/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/PYIndex.sol/PYIndexLib.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/PYIndex.sol/PYIndexLib.json +2 -2
- package/build/artifacts/contracts/core/StandardizedYield/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/SYUtils.sol/SYUtils.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/StEthHelper.sol/StEthHelper.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/BalancerStable/PendleAuraWethAnkrethSYV2.sol/PendleAuraWethAnkrethSYV2.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/PendleAuraWethAnkrethSYV2.sol/PendleAuraWethAnkrethSYV2.json +28 -2
- package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/PendleAuraWethRocketEthSYV2.sol/PendleAuraWethRocketEthSYV2.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/PendleAuraWethRocketEthSYV2.sol/PendleAuraWethRocketEthSYV2.json +28 -2
- package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/PendleAuraWethStafiEthSY.sol/PendleAuraWethStafiEthSY.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/PendleAuraWethStafiEthSY.sol/PendleAuraWethStafiEthSY.json +28 -2
- package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/PendleAuraWethWstethSYV2.sol/PendleAuraWethWstethSYV2.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/PendleAuraWethWstethSYV2.sol/PendleAuraWethWstethSYV2.json +28 -2
- package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/base/FixedPoint.sol/FixedPoint.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/base/MetaStable/MetaStableMath.sol/MetaStableMath.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/base/MetaStable/MetaStablePreview.sol/MetaStablePreview.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/base/PendleAuraBalancerStableLPSYV2.sol/PendleAuraBalancerStableLPSYV2.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/base/PendleAuraBalancerStableLPSYV2.sol/PendleAuraBalancerStableLPSYV2.json +26 -0
- package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/base/StablePoolUserData.sol/StablePoolUserData.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/base/StablePreviewBase.sol/StablePreviewBase.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/PendleQiTokenSY.sol/PendleQiTokenSY.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/Convex/PendleCurveFraxUsdcSY.sol/PendleCurveFraxUsdcSY.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/Convex/PendleCurveUsdd3CrvSY.sol/PendleCurveUsdd3CrvSY.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/Convex/base/Curve3CrvPoolHelper.sol/Curve3CrvPoolHelper.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/Convex/base/CurveFraxUsdcPoolHelper.sol/CurveFraxUsdcPoolHelper.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/Convex/base/CurveUsdd3CrvPoolHelper.sol/CurveUsdd3CrvPoolHelper.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/Convex/base/PendleConvexLPSY.sol/PendleConvexLPSY.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/GLP/GLPPreviewHelper.sol/GLPPreviewHelper.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/PendleLooksStakingSY.sol/PendleLooksStakingSY.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/PendleSfrxEthSY.sol/PendleSfrxEthSY.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/PendleStargateLPSY.sol/PendleStargateLPSY.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/PendleWstEthSY.sol/PendleWstEthSY.dbg.json +1 -1
- package/build/artifacts/contracts/core/YieldContracts/InterestManagerYT.sol/InterestManagerYT.dbg.json +1 -1
- package/build/artifacts/contracts/core/YieldContracts/PendlePrincipalToken.sol/PendlePrincipalToken.dbg.json +1 -1
- package/build/artifacts/contracts/core/YieldContracts/PendlePrincipalToken.sol/PendlePrincipalToken.json +2 -2
- package/build/artifacts/contracts/core/YieldContracts/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 +1 -1
- 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/erc20/PendleERC20.sol/PendleERC20.dbg.json +1 -1
- package/build/artifacts/contracts/core/erc20/PendleERC20Permit.sol/PendleERC20Permit.dbg.json +1 -1
- package/build/artifacts/contracts/core/libraries/ArrayLib.sol/ArrayLib.dbg.json +1 -1
- package/build/artifacts/contracts/core/libraries/BaseSplitCodeFactory.sol/BaseSplitCodeFactory.dbg.json +1 -1
- package/build/artifacts/contracts/core/libraries/BaseSplitCodeFactory.sol/CodeDeployer.dbg.json +1 -1
- package/build/artifacts/contracts/core/libraries/BoringOwnableUpgradeable.sol/BoringOwnableUpgradeable.dbg.json +1 -1
- package/build/artifacts/contracts/core/libraries/BoringOwnableUpgradeable.sol/BoringOwnableUpgradeableData.dbg.json +1 -1
- package/build/artifacts/contracts/core/libraries/Errors.sol/Errors.dbg.json +1 -1
- package/build/artifacts/contracts/core/libraries/ExpiryUtilsLib.sol/ExpiryUtils.dbg.json +1 -1
- package/build/artifacts/contracts/core/libraries/MiniHelpers.sol/MiniHelpers.dbg.json +1 -1
- package/build/artifacts/contracts/core/libraries/StringLib.sol/StringLib.dbg.json +1 -1
- package/build/artifacts/contracts/core/libraries/TokenHelper.sol/TokenHelper.dbg.json +1 -1
- package/build/artifacts/contracts/core/libraries/math/LogExpMath.sol/LogExpMath.dbg.json +1 -1
- package/build/artifacts/contracts/core/libraries/math/Math.sol/Math.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/Balancer/IAsset.sol/IAsset.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/Balancer/IBalancerFees.sol/IBalancerFees.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/Balancer/IBalancerStablePreview.sol/IBalancerStablePreview.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/Balancer/IBasePool.sol/IBasePool.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/Balancer/IComposableStable.sol/IComposableStable.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/Balancer/IGauge.sol/IGauge.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/Balancer/ILiquidityGaugeFactory.sol/ILiquidityGaugeFactory.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/Balancer/IMetaStablePool.sol/IMetaStablePool.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/Balancer/IRateProvider.sol/IRateProvider.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/Balancer/IVault.sol/IVault.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/ConvexCurve/IBooster.sol/IBooster.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/ConvexCurve/ICrvDepositor.sol/ICrvDepositor.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/ConvexCurve/ICvxCrv.sol/ICvxCrv.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/ConvexCurve/IRewards.sol/IRewards.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/Curve/ICrvPool.sol/ICrvPool.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/Curve/ITriCrvPool.sol/ITriCrvPool.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/Frax/IFrxEthMinter.sol/IFrxEthMinter.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/GMX/IGMXVault.sol/IGMXVault.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/GMX/IGlpManager.sol/IGlpManager.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/GMX/IGlpManager.sol/IGlpManager.json +19 -0
- package/build/artifacts/contracts/interfaces/GMX/IRewardRouterV2.sol/IRewardRouterV2.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/GMX/IVaultPriceFeed.sol/IVaultPriceFeed.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IAddressProvider.sol/IAddressProvider.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IApeStaking.sol/IApeStaking.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IBenQiComptroller.sol/IBenQiComptroller.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IBenQiInterestRateModel.sol/IBenQiInterestRateModel.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IDiamondCut.sol/IDiamondCut.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IDiamondLoupe.sol/IDiamondLoupe.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IERC4626.sol/IERC4626.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/ILayerZeroEndpoint.sol/ILayerZeroEndpoint.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/ILayerZeroReceiver.sol/ILayerZeroReceiver.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/ILooksFeeSharing.sol/ILooksFeeSharing.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/ILooksStaking.sol/ILooksStaking.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPActionAddRemoveLiq.sol/IPActionAddRemoveLiq.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPActionInfoStatic.sol/IPActionInfoStatic.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPActionMarketAuxStatic.sol/IPActionMarketAuxStatic.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPActionMarketCoreStatic.sol/IPActionMarketCoreStatic.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPActionMintRedeem.sol/IPActionMintRedeem.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPActionMintRedeemStatic.sol/IPActionMintRedeemStatic.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPActionMisc.sol/IPActionMisc.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/IPActionVePendleStatic.sol/IPActionVePendleStatic.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/IPBulkSellerFactory.sol/IPBulkSellerFactory.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPBulkSellerSYCallback.sol/IPBulkSellerCallback.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPFeeDistributor.sol/IPFeeDistributor.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPGauge.sol/IPGauge.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPGaugeController.sol/IPGaugeController.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPGaugeControllerMainchain.sol/IPGaugeControllerMainchain.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPInterestManagerYT.sol/IPInterestManagerYT.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPInterestManagerYTV2.sol/IPInterestManagerYTV2.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPMarket.sol/IPMarket.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPMarket.sol/IPMarket.json +67 -0
- package/build/artifacts/contracts/interfaces/IPMarketFactory.sol/IPMarketFactory.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPMarketSwapCallback.sol/IPMarketSwapCallback.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPMiniDiamond.sol/IPMiniDiamond.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPMsgReceiverApp.sol/IPMsgReceiverApp.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPMsgSendEndpoint.sol/IPMsgSendEndpoint.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPPrincipalToken.sol/IPPrincipalToken.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPPtOracle.sol/IPPtOracle.dbg.json +4 -0
- package/build/artifacts/contracts/interfaces/IPPtOracle.sol/IPPtOracle.json +82 -0
- package/build/artifacts/contracts/interfaces/IPRouterHelper.sol/IPRouterHelper.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPRouterStatic.sol/IPRouterStatic.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPVeToken.sol/IPVeToken.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/IPYieldContractFactory.sol/IPYieldContractFactory.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPYieldToken.sol/IPYieldToken.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPYieldToken.sol/IPYieldToken.json +13 -0
- package/build/artifacts/contracts/interfaces/IPYieldTokenV2.sol/IPYieldTokenV2.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IQiAvax.sol/IQiAvax.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IQiErc20.sol/IQiErc20.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IQiToken.sol/IQiToken.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IRewardManager.sol/IRewardManager.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IStETH.sol/IStETH.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IStandardizedYield.sol/IStandardizedYield.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IStargateLP.sol/IStargateLP.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IStargateRouter.sol/IStargateRouter.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IStargateStaking.sol/IStargateStaking.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IWETH.sol/IWETH.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IWstETH.sol/IWstETH.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/AddressProvider.sol/AddressProvider.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/BaseSplitCodeFactoryContract.sol/BaseSplitCodeFactoryContract.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/BoringPtSeller.sol/BoringPtSeller.dbg.json +4 -0
- package/build/artifacts/contracts/offchain-helpers/BoringPtSeller.sol/BoringPtSeller.json +10 -0
- package/build/artifacts/contracts/offchain-helpers/Broadcaster.sol/Broadcaster.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/BulkSellerOffchain.sol/BulkSellerOffchain.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/Multicall2.sol/Multicall2.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/PendleMulticallV1.sol/PendleMulticallV1.dbg.json +4 -0
- package/build/artifacts/contracts/offchain-helpers/PendleMulticallV1.sol/PendleMulticallV1.json +89 -0
- 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/oracles/PendlePtOracle.sol/PendlePtOracle.dbg.json +4 -0
- package/build/artifacts/contracts/oracles/PendlePtOracle.sol/PendlePtOracle.json +247 -0
- package/build/artifacts/contracts/oracles/PendlePtOracleLib.sol/PendlePtOracleLib.dbg.json +4 -0
- package/build/artifacts/contracts/oracles/PendlePtOracleLib.sol/PendlePtOracleLib.json +10 -0
- package/build/artifacts/contracts/oracles/samples/PendlePtGlpOracle.sol/PendlePtGlpOracle.dbg.json +4 -0
- package/build/artifacts/contracts/oracles/samples/PendlePtGlpOracle.sol/PendlePtGlpOracle.json +118 -0
- package/build/artifacts/contracts/oracles/samples/PendlePtUsdChainlinkOracle.sol/PendlePtUsdChainlinkOracle.dbg.json +4 -0
- package/build/artifacts/contracts/oracles/samples/PendlePtUsdChainlinkOracle.sol/PendlePtUsdChainlinkOracle.json +144 -0
- 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/ActionMisc.sol/ActionMisc.dbg.json +1 -1
- 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 +2 -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/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 +1 -1
- package/build/artifacts/contracts/router/swap-aggregator/1inch/OneInchAggregationRouterHelper.sol/OneInchAggregationRouterHelper.dbg.json +1 -1
- package/build/artifacts/contracts/router/swap-aggregator/IPSwapAggregator.sol/IPSwapAggregator.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/PendleSwapEthereum.sol/PendleSwapEthereum.dbg.json +1 -1
- package/build/artifacts/contracts/router/swap-aggregator/kyberswap/arbitrum/IAggregationExecutor.sol/IAggregationExecutor.dbg.json +1 -1
- package/build/artifacts/contracts/router/swap-aggregator/kyberswap/arbitrum/IExecutorHelper1.sol/IExecutorHelper1.dbg.json +1 -1
- package/build/artifacts/contracts/router/swap-aggregator/kyberswap/arbitrum/IExecutorHelper2.sol/IExecutorHelper2.dbg.json +1 -1
- package/build/artifacts/contracts/router/swap-aggregator/kyberswap/arbitrum/IHashflow.sol/IHashflow.dbg.json +1 -1
- package/build/artifacts/contracts/router/swap-aggregator/kyberswap/arbitrum/IMetaAggregationRouterV2.sol/IMetaAggregationRouterV2.dbg.json +1 -1
- package/build/artifacts/contracts/router/swap-aggregator/kyberswap/arbitrum/KyberHelperArbitrum.sol/KyberHelperArbitrum.dbg.json +1 -1
- package/build/artifacts/contracts/router/swap-aggregator/kyberswap/arbitrum/ScaleDataHelperArbitrum.sol/ScaleDataHelperArbitrum.dbg.json +1 -1
- package/build/artifacts/contracts/router/swap-aggregator/kyberswap/ethereum/IAggregationExecutor.sol/IAggregationExecutor.dbg.json +1 -1
- package/build/artifacts/contracts/router/swap-aggregator/kyberswap/ethereum/IExecutorHelperEthereum1.sol/IExecutorHelperEthereum1.dbg.json +1 -1
- package/build/artifacts/contracts/router/swap-aggregator/kyberswap/ethereum/IHashflow.sol/IHashflow.dbg.json +1 -1
- package/build/artifacts/contracts/router/swap-aggregator/kyberswap/ethereum/IMetaAggregationRouterV2.sol/IMetaAggregationRouterV2.dbg.json +1 -1
- package/build/artifacts/contracts/router/swap-aggregator/kyberswap/ethereum/KyberHelperEthereum.sol/KyberHelperEthereum.dbg.json +1 -1
- package/build/artifacts/contracts/router/swap-aggregator/kyberswap/ethereum/ScaleDataHelperEthereum.sol/ScaleDataHelperEthereum.dbg.json +1 -1
- package/contracts/interfaces/GMX/IGlpManager.sol +2 -0
- package/contracts/interfaces/IPMarket.sol +19 -0
- package/contracts/interfaces/IPPtOracle.sol +23 -0
- package/contracts/interfaces/IPYieldToken.sol +3 -0
- package/contracts/offchain-helpers/BoringPtSeller.sol +39 -0
- package/contracts/oracles/PendlePtOracle.sol +99 -0
- package/contracts/oracles/PendlePtOracleLib.sol +59 -0
- package/contracts/oracles/samples/PendlePtGlpOracle.sol +53 -0
- package/contracts/oracles/samples/PendlePtUsdChainlinkOracle.sol +61 -0
- package/deployments/1-core.json +3 -2
- package/deployments/1-markets/BALANCER-LP-AURA-ANKRETH-WETH-SEP-26-2024.json +5 -5
- package/deployments/1-markets/BALANCER-LP-AURA-RETH-WETH-DEC-26-2024.json +5 -5
- package/deployments/42161-core.json +1 -0
- package/package.json +2 -1
- package/typechain-types/IGlpManager.ts +19 -0
- package/typechain-types/IPMarket.ts +98 -0
- package/typechain-types/IPPtOracle.ts +22 -3
- package/typechain-types/IPYieldToken.ts +21 -0
- package/typechain-types/PendleAuraBalancerStableLPSYV2.ts +55 -0
- package/typechain-types/PendleAuraWethAnkrethSYV2.ts +55 -0
- package/typechain-types/PendleAuraWethRocketEthSYV2.ts +55 -0
- package/typechain-types/PendleAuraWethStafiEthSY.ts +55 -0
- package/typechain-types/PendleAuraWethWstethSYV2.ts +55 -0
- package/typechain-types/PendleMulticallV1.ts +162 -0
- package/typechain-types/PendlePtOracle.ts +189 -3
- 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/IGlpManager__factory.ts +19 -0
- package/typechain-types/factories/IPMarket__factory.ts +67 -0
- package/typechain-types/factories/IPPtOracle__factory.ts +13 -0
- package/typechain-types/factories/IPYieldToken__factory.ts +13 -0
- package/typechain-types/factories/PendleAuraBalancerStableLPSYV2__factory.ts +26 -0
- package/typechain-types/factories/PendleAuraWethAnkrethSYV2__factory.ts +27 -1
- package/typechain-types/factories/PendleAuraWethRocketEthSYV2__factory.ts +27 -1
- package/typechain-types/factories/PendleAuraWethStafiEthSY__factory.ts +27 -1
- package/typechain-types/factories/PendleAuraWethWstethSYV2__factory.ts +27 -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/PendleMarketFactory__factory.ts +1 -1
- package/typechain-types/factories/PendleMarket__factory.ts +1 -1
- package/typechain-types/factories/PendleMulticallV1__factory.ts +142 -0
- package/typechain-types/factories/PendlePrincipalTokenV2__factory.ts +1 -1
- package/typechain-types/factories/PendlePrincipalToken__factory.ts +1 -1
- package/typechain-types/factories/PendlePtGlpOracle__factory.ts +1 -1
- package/typechain-types/factories/PendlePtOracle__factory.ts +126 -1
- package/typechain-types/factories/PendlePtUsdChainlinkOracle__factory.ts +1 -1
- package/typechain-types/factories/PendleRouterHelper__factory.ts +1 -1
- package/typechain-types/factories/PendleRouterStatic__factory.ts +1 -1
- package/typechain-types/factories/PendleRouter__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/hardhat.d.ts +81 -9
- package/typechain-types/index.ts +18 -2
- package/build/artifacts/contracts/core/StandardizedYield/implementations/UniV2/PendleUniV2Base.sol/PendleCamelotV1Base.dbg.json +0 -4
- package/build/artifacts/contracts/core/StandardizedYield/implementations/UniV2/PendleUniV2Base.sol/PendleCamelotV1Base.json +0 -63
- package/build/artifacts/contracts/interfaces/ICamelotPair.sol/ICamelotPair.dbg.json +0 -4
- package/build/artifacts/contracts/interfaces/ICamelotPair.sol/ICamelotPair.json +0 -716
- package/build/artifacts/contracts/interfaces/ICamelotRouter.sol/ICamelotRouter.dbg.json +0 -4
- package/build/artifacts/contracts/interfaces/ICamelotRouter.sol/ICamelotRouter.json +0 -647
- package/build/artifacts/contracts/offchain-helpers/PendleMulticall.sol/PendleMulticall.dbg.json +0 -4
- package/build/artifacts/contracts/offchain-helpers/PendleMulticall.sol/PendleMulticall.json +0 -47
- package/typechain-types/IPPtAssetOracle.ts +0 -115
- package/typechain-types/IPPtUsdOracle.ts +0 -97
- package/typechain-types/PendleAuraBalancerStableLPSY.ts +0 -1523
- package/typechain-types/PendleAuraWethAnkrethSY.ts +0 -1523
- package/typechain-types/PendleAuraWethRethSY.ts +0 -1549
- package/typechain-types/PendleAuraWethWstethSY.ts +0 -1523
- package/typechain-types/PendleOracleFactory.ts +0 -251
- package/typechain-types/PendlePtAssetOracle.ts +0 -188
- package/typechain-types/PendlePtUsdOracle.ts +0 -142
- package/typechain-types/PendleStafiEthSY.ts +0 -100
- package/typechain-types/factories/IPPtAssetOracle__factory.ts +0 -65
- package/typechain-types/factories/IPPtUsdOracle__factory.ts +0 -49
- package/typechain-types/factories/PendleAuraBalancerStableLPSY__factory.ts +0 -1190
- package/typechain-types/factories/PendleAuraWethAnkrethSY__factory.ts +0 -1265
- package/typechain-types/factories/PendleAuraWethRethSY__factory.ts +0 -1291
- package/typechain-types/factories/PendleAuraWethWstethSY__factory.ts +0 -1265
- package/typechain-types/factories/PendleOracleFactory__factory.ts +0 -258
- package/typechain-types/factories/PendlePtAssetOracle__factory.ts +0 -199
- package/typechain-types/factories/PendlePtUsdOracle__factory.ts +0 -153
- package/typechain-types/factories/PendleStafiEthSY__factory.ts +0 -118
|
@@ -1,258 +0,0 @@
|
|
|
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
|
-
PendleOracleFactory,
|
|
15
|
-
PendleOracleFactoryInterface,
|
|
16
|
-
} from "../PendleOracleFactory";
|
|
17
|
-
|
|
18
|
-
const _abi = [
|
|
19
|
-
{
|
|
20
|
-
inputs: [
|
|
21
|
-
{
|
|
22
|
-
internalType: "uint16",
|
|
23
|
-
name: "_blockCycleNumerator",
|
|
24
|
-
type: "uint16",
|
|
25
|
-
},
|
|
26
|
-
],
|
|
27
|
-
stateMutability: "nonpayable",
|
|
28
|
-
type: "constructor",
|
|
29
|
-
},
|
|
30
|
-
{
|
|
31
|
-
inputs: [
|
|
32
|
-
{
|
|
33
|
-
internalType: "uint16",
|
|
34
|
-
name: "numSlotRequired",
|
|
35
|
-
type: "uint16",
|
|
36
|
-
},
|
|
37
|
-
{
|
|
38
|
-
internalType: "uint16",
|
|
39
|
-
name: "numSlotReserved",
|
|
40
|
-
type: "uint16",
|
|
41
|
-
},
|
|
42
|
-
],
|
|
43
|
-
name: "InsufficientNumSlotReserved",
|
|
44
|
-
type: "error",
|
|
45
|
-
},
|
|
46
|
-
{
|
|
47
|
-
inputs: [
|
|
48
|
-
{
|
|
49
|
-
internalType: "uint16",
|
|
50
|
-
name: "duration",
|
|
51
|
-
type: "uint16",
|
|
52
|
-
},
|
|
53
|
-
],
|
|
54
|
-
name: "InvalidDuration",
|
|
55
|
-
type: "error",
|
|
56
|
-
},
|
|
57
|
-
{
|
|
58
|
-
inputs: [
|
|
59
|
-
{
|
|
60
|
-
internalType: "address",
|
|
61
|
-
name: "market",
|
|
62
|
-
type: "address",
|
|
63
|
-
},
|
|
64
|
-
{
|
|
65
|
-
internalType: "uint16",
|
|
66
|
-
name: "duration",
|
|
67
|
-
type: "uint16",
|
|
68
|
-
},
|
|
69
|
-
{
|
|
70
|
-
internalType: "address",
|
|
71
|
-
name: "oracle",
|
|
72
|
-
type: "address",
|
|
73
|
-
},
|
|
74
|
-
],
|
|
75
|
-
name: "OracleExisted",
|
|
76
|
-
type: "error",
|
|
77
|
-
},
|
|
78
|
-
{
|
|
79
|
-
anonymous: false,
|
|
80
|
-
inputs: [
|
|
81
|
-
{
|
|
82
|
-
indexed: true,
|
|
83
|
-
internalType: "address",
|
|
84
|
-
name: "market",
|
|
85
|
-
type: "address",
|
|
86
|
-
},
|
|
87
|
-
{
|
|
88
|
-
indexed: true,
|
|
89
|
-
internalType: "uint16",
|
|
90
|
-
name: "duration",
|
|
91
|
-
type: "uint16",
|
|
92
|
-
},
|
|
93
|
-
{
|
|
94
|
-
indexed: true,
|
|
95
|
-
internalType: "address",
|
|
96
|
-
name: "oracle",
|
|
97
|
-
type: "address",
|
|
98
|
-
},
|
|
99
|
-
{
|
|
100
|
-
indexed: false,
|
|
101
|
-
internalType: "uint16",
|
|
102
|
-
name: "numSlotRequired",
|
|
103
|
-
type: "uint16",
|
|
104
|
-
},
|
|
105
|
-
],
|
|
106
|
-
name: "OracleCreated",
|
|
107
|
-
type: "event",
|
|
108
|
-
},
|
|
109
|
-
{
|
|
110
|
-
inputs: [],
|
|
111
|
-
name: "BLOCK_CYCLE_DENOMINATOR",
|
|
112
|
-
outputs: [
|
|
113
|
-
{
|
|
114
|
-
internalType: "uint16",
|
|
115
|
-
name: "",
|
|
116
|
-
type: "uint16",
|
|
117
|
-
},
|
|
118
|
-
],
|
|
119
|
-
stateMutability: "view",
|
|
120
|
-
type: "function",
|
|
121
|
-
},
|
|
122
|
-
{
|
|
123
|
-
inputs: [],
|
|
124
|
-
name: "blockCycleNumerator",
|
|
125
|
-
outputs: [
|
|
126
|
-
{
|
|
127
|
-
internalType: "uint16",
|
|
128
|
-
name: "",
|
|
129
|
-
type: "uint16",
|
|
130
|
-
},
|
|
131
|
-
],
|
|
132
|
-
stateMutability: "view",
|
|
133
|
-
type: "function",
|
|
134
|
-
},
|
|
135
|
-
{
|
|
136
|
-
inputs: [
|
|
137
|
-
{
|
|
138
|
-
internalType: "address",
|
|
139
|
-
name: "market",
|
|
140
|
-
type: "address",
|
|
141
|
-
},
|
|
142
|
-
{
|
|
143
|
-
internalType: "uint16",
|
|
144
|
-
name: "duration",
|
|
145
|
-
type: "uint16",
|
|
146
|
-
},
|
|
147
|
-
],
|
|
148
|
-
name: "createOracle",
|
|
149
|
-
outputs: [],
|
|
150
|
-
stateMutability: "nonpayable",
|
|
151
|
-
type: "function",
|
|
152
|
-
},
|
|
153
|
-
{
|
|
154
|
-
inputs: [
|
|
155
|
-
{
|
|
156
|
-
internalType: "address",
|
|
157
|
-
name: "market",
|
|
158
|
-
type: "address",
|
|
159
|
-
},
|
|
160
|
-
{
|
|
161
|
-
internalType: "uint16",
|
|
162
|
-
name: "duration",
|
|
163
|
-
type: "uint16",
|
|
164
|
-
},
|
|
165
|
-
],
|
|
166
|
-
name: "getAdditionalCardinalityRequired",
|
|
167
|
-
outputs: [
|
|
168
|
-
{
|
|
169
|
-
internalType: "uint16",
|
|
170
|
-
name: "additionalCardinalityRequired",
|
|
171
|
-
type: "uint16",
|
|
172
|
-
},
|
|
173
|
-
],
|
|
174
|
-
stateMutability: "view",
|
|
175
|
-
type: "function",
|
|
176
|
-
},
|
|
177
|
-
{
|
|
178
|
-
inputs: [
|
|
179
|
-
{
|
|
180
|
-
internalType: "address",
|
|
181
|
-
name: "",
|
|
182
|
-
type: "address",
|
|
183
|
-
},
|
|
184
|
-
{
|
|
185
|
-
internalType: "uint16",
|
|
186
|
-
name: "",
|
|
187
|
-
type: "uint16",
|
|
188
|
-
},
|
|
189
|
-
],
|
|
190
|
-
name: "oracles",
|
|
191
|
-
outputs: [
|
|
192
|
-
{
|
|
193
|
-
internalType: "address",
|
|
194
|
-
name: "",
|
|
195
|
-
type: "address",
|
|
196
|
-
},
|
|
197
|
-
],
|
|
198
|
-
stateMutability: "view",
|
|
199
|
-
type: "function",
|
|
200
|
-
},
|
|
201
|
-
];
|
|
202
|
-
|
|
203
|
-
const _bytecode =
|
|
204
|
-
"0x60a060405234801561001057600080fd5b5060405161161038038061161083398101604081905261002f91610094565b61ffff811660808190526103e8111561008e5760405162461bcd60e51b815260206004820152601c60248201527f496e76616c696420626c6f636b2072617465206e756d657261746f7200000000604482015260640160405180910390fd5b506100bf565b6000602082840312156100a657600080fd5b815161ffff811681146100b857600080fd5b9392505050565b6080516115306100e0600039600081816076015261042501526115306000f3fe608060405234801561001057600080fd5b50600436106100575760003560e01c806322b5d0e01461005c57806358f6e5a114610071578063aaf12adf146100ae578063f5ea1fce146100f7578063fa040f641461010a575b600080fd5b61006f61006a36600461047a565b610113565b005b6100987f000000000000000000000000000000000000000000000000000000000000000081565b6040516100a591906104bf565b60405180910390f35b6100df6100bc36600461047a565b60006020818152928152604080822090935290815220546001600160a01b031681565b6040516001600160a01b0390911681526020016100a5565b61009861010536600461047a565b61033b565b6100986103e881565b6101208161ffff166103e3565b610148578060405163ae91902760e01b815260040161013f91906104bf565b60405180910390fd5b6001600160a01b0382811660009081526020818152604080832061ffff8616845290915290205416156101c7576001600160a01b0382811660008181526020818152604080832061ffff871680855292529182902054915163901d898960e01b815260048101939093526024830152909116604482015260640161013f565b60006101d282610421565b90506000836001600160a01b031663c3fb90d66040518163ffffffff1660e01b815260040160c060405180830381865afa158015610214573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061023891906104e5565b955050505050508161ffff168161ffff1610156102765760405163dc47f80360e01b815261ffff80841660048301528216602482015260440161013f565b600084846040516102869061045a565b6001600160a01b03909216825261ffff166020820152604001604051809103906000f0801580156102bb573d6000803e3d6000fd5b506001600160a01b0386811660008181526020818152604080832061ffff8b1680855292529182902080546001600160a01b0319169486169485179055905193945091927f88ac96be7d72fc6b3167fe32889188dc9b70ab8e2b692f737a60100f34dcac059061032c9088906104bf565b60405180910390a45050505050565b60008061034783610421565b90506000846001600160a01b031663c3fb90d66040518163ffffffff1660e01b815260040160c060405180830381865afa158015610389573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906103ad91906104e5565b955050505050508061ffff168261ffff16116103ce576000925050506103dd565b6103d88183610589565b925050505b92915050565b6000808263ffffffff161180156104085750610400603c836105c1565b63ffffffff16155b80156103dd5750506201518063ffffffff909116111590565b60007f00000000000000000000000000000000000000000000000000000000000000006104506103e8846105e4565b6103dd919061060a565b610ecf8061062c83390190565b61ffff8116811461047757600080fd5b50565b6000806040838503121561048d57600080fd5b82356001600160a01b03811681146104a457600080fd5b915060208301356104b481610467565b809150509250929050565b61ffff91909116815260200190565b8051600f81900b81146104e057600080fd5b919050565b60008060008060008060c087890312156104fe57600080fd5b610507876104ce565b9550610515602088016104ce565b60408801519095506001600160601b038116811461053257600080fd5b606088015190945061054381610467565b608088015190935061055481610467565b60a088015190925061056581610467565b809150509295509295509295565b634e487b7160e01b600052601160045260246000fd5b61ffff8281168282160390808211156105a4576105a4610573565b5092915050565b634e487b7160e01b600052601260045260246000fd5b600063ffffffff808416806105d8576105d86105ab565b92169190910692915050565b61ffff81811683821602808216919082811461060257610602610573565b505092915050565b600061ffff8084168061061f5761061f6105ab565b9216919091049291505056fe6101206040523480156200001257600080fd5b5060405162000ecf38038062000ecf833981016040819052620000359162000156565b6001600160a01b03821660a081905261ffff821660805260408051630b2339af60e21b81529051632c8ce6bc916004808201926060929091908290030181865afa15801562000088573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620000ae91906200019b565b506001600160a01b0390811660c0521660e081905260408051630a40bee560e41b8152905163a40bee50916004808201926060929091908290030181865afa158015620000ff573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620001259190620001ef565b506001600160a01b0316610100525062000240915050565b6001600160a01b03811681146200015357600080fd5b50565b600080604083850312156200016a57600080fd5b825162000177816200013d565b602084015190925061ffff811681146200019057600080fd5b809150509250929050565b600080600060608486031215620001b157600080fd5b8351620001be816200013d565b6020850151909350620001d1816200013d565b6040850151909250620001e4816200013d565b809150509250925092565b6000806000606084860312156200020557600080fd5b8351600281106200021557600080fd5b602085015190935062000228816200013d565b604085015190925060ff81168114620001e457600080fd5b60805160a05160c05160e05161010051610c29620002a6600039600060d201526000818161014d01526101b0015260006101740152600081816101110152818161023d01526103a001526000818160820152818161033f015261041e0152610c296000f3fe608060405234801561001057600080fd5b50600436106100785760003560e01c806326d895451461007d578063313ce567146100be57806338d52e0f146100cd57806380f556051461010c578063a40bee5014610133578063afd27bf514610148578063d94073d41461016f578063e06c25ba14610196575b600080fd5b6100a47f000000000000000000000000000000000000000000000000000000000000000081565b60405163ffffffff90911681526020015b60405180910390f35b604051601281526020016100b5565b6100f47f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b0390911681526020016100b5565b6100f47f000000000000000000000000000000000000000000000000000000000000000081565b61013b6101ac565b6040516100b59190610942565b6100f47f000000000000000000000000000000000000000000000000000000000000000081565b6100f47f000000000000000000000000000000000000000000000000000000000000000081565b61019e610238565b6040519081526020016100b5565b60007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663a40bee506040518163ffffffff1660e01b8152600401606060405180830381865afa15801561020c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610230919061096a565b509092915050565b6000807f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663e184c9be6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610299573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102bd91906109cd565b90504281116102d557670de0b6b3a764000091505090565b60006102df610318565b905060006102ed42846109fc565b905060006102fb838361049d565b905061030f670de0b6b3a7640000826104de565b94505050505090565b604080516002808252606082018352600092839291906020830190803683370190505090507f00000000000000000000000000000000000000000000000000000000000000008160008151811061037157610371610a25565b63ffffffff9092166020928302919091019091015260405163883bdbfd60e01b81526000906001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169063883bdbfd906103d5908590600401610a3b565b600060405180830381865afa1580156103f2573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261041a9190810190610aa1565b90507f000000000000000000000000000000000000000000000000000000000000000063ffffffff168160008151811061045657610456610a25565b60200260200101518260018151811061047157610471610a25565b60200260200101516104839190610b65565b61048d9190610ba2565b6001600160d81b03169250505090565b6000806104af6201518061016d610bc8565b6104b98486610bc8565b6104c39190610bdf565b90506104d66104d18261050f565b610529565b949350505050565b6000806104f3670de0b6b3a764000085610bc8565b905082818161050457610504610b8c565b049150505b92915050565b60006001600160ff1b0382111561052557600080fd5b5090565b6000680238fd42c5cf03ffff19821215801561054e575068070c1cc73b00c800008213155b6105915760405162461bcd60e51b815260206004820152601060248201526f125b9d985b1a5908195e1c1bdb995b9d60821b604482015260640160405180910390fd5b60008212156105c9576105a682600003610529565b6a0c097ce7bc90715b34b9f160241b816105c2576105c2610b8c565b0592915050565b60006806f05b59d3b2000000831261060757506806f05b59d3b1ffffff199091019072195e54c5dd42177f53a27172fa9ec63026282760241b61063d565b6803782dace9d9000000831261063957506803782dace9d8ffffff19909101906b1425982cf597cd205cef738061063d565b5060015b6064929092029168056bc75e2d6310000068ad78ebc5ac62000000841261068d5768ad78ebc5ac61ffffff199093019268056bc75e2d631000006e01855144814a7ff805980ff008400082020590505b6856bc75e2d63100000084126106c9576856bc75e2d630ffffff199093019268056bc75e2d631000006b02df0ab5a80a22c61ab5a70082020590505b682b5e3af16b18800000841261070357682b5e3af16b187fffff199093019268056bc75e2d63100000693f1fce3da636ea5cf85082020590505b6815af1d78b58c400000841261073d576815af1d78b58c3fffff199093019268056bc75e2d63100000690127fa27722cc06cc5e282020590505b680ad78ebc5ac6200000841261077657680ad78ebc5ac61fffff199093019268056bc75e2d6310000068280e60114edb805d0382020590505b68056bc75e2d6310000084126107af5768056bc75e2d630fffff199093019268056bc75e2d63100000680ebc5fb4174612111082020590505b6802b5e3af16b188000084126107e8576802b5e3af16b187ffff199093019268056bc75e2d631000006808f00f760a4b2db55d82020590505b68015af1d78b58c4000084126108215768015af1d78b58c3ffff199093019268056bc75e2d631000006806f5f177578893793782020590505b68056bc75e2d631000008481019085906002908280020505918201919050600368056bc75e2d631000008783020505918201919050600468056bc75e2d631000008783020505918201919050600568056bc75e2d631000008783020505918201919050600668056bc75e2d631000008783020505918201919050600768056bc75e2d631000008783020505918201919050600868056bc75e2d631000008783020505918201919050600968056bc75e2d631000008783020505918201919050600a68056bc75e2d631000008783020505918201919050600b68056bc75e2d631000008783020505918201919050600c68056bc75e2d631000008783020505918201919050606468056bc75e2d63100000848402058502059695505050505050565b602081016002831061096457634e487b7160e01b600052602160045260246000fd5b91905290565b60008060006060848603121561097f57600080fd5b83516002811061098e57600080fd5b60208501519093506001600160a01b03811681146109ab57600080fd5b604085015190925060ff811681146109c257600080fd5b809150509250925092565b6000602082840312156109df57600080fd5b5051919050565b634e487b7160e01b600052601160045260246000fd5b81810381811115610509576105096109e6565b634e487b7160e01b600052604160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b6020808252825182820181905260009190848201906040850190845b81811015610a7957835163ffffffff1683529284019291840191600101610a57565b50909695505050505050565b80516001600160d81b0381168114610a9c57600080fd5b919050565b60006020808385031215610ab457600080fd5b82516001600160401b0380821115610acb57600080fd5b818501915085601f830112610adf57600080fd5b815181811115610af157610af1610a0f565b8060051b604051601f19603f83011681018181108582111715610b1657610b16610a0f565b604052918252848201925083810185019188831115610b3457600080fd5b938501935b82851015610b5957610b4a85610a85565b84529385019392850192610b39565b98975050505050505050565b6001600160d81b03828116828216039080821115610b8557610b856109e6565b5092915050565b634e487b7160e01b600052601260045260246000fd5b60006001600160d81b0383811680610bbc57610bbc610b8c565b92169190910492915050565b8082028115828204841417610509576105096109e6565b600082610bee57610bee610b8c565b50049056fea2646970667358221220aa4ee74f92dd1b905f9075da50db33d27745aa9cba9ba433614cae56ade4229d64736f6c63430008110033a2646970667358221220efc4157d75bdaa9ff67280169e454f705d7fe5dba44e9259ca8300ef9dd091c364736f6c63430008110033";
|
|
205
|
-
|
|
206
|
-
type PendleOracleFactoryConstructorParams =
|
|
207
|
-
| [signer?: Signer]
|
|
208
|
-
| ConstructorParameters<typeof ContractFactory>;
|
|
209
|
-
|
|
210
|
-
const isSuperArgs = (
|
|
211
|
-
xs: PendleOracleFactoryConstructorParams
|
|
212
|
-
): xs is ConstructorParameters<typeof ContractFactory> => xs.length > 1;
|
|
213
|
-
|
|
214
|
-
export class PendleOracleFactory__factory extends ContractFactory {
|
|
215
|
-
constructor(...args: PendleOracleFactoryConstructorParams) {
|
|
216
|
-
if (isSuperArgs(args)) {
|
|
217
|
-
super(...args);
|
|
218
|
-
} else {
|
|
219
|
-
super(_abi, _bytecode, args[0]);
|
|
220
|
-
}
|
|
221
|
-
this.contractName = "PendleOracleFactory";
|
|
222
|
-
}
|
|
223
|
-
|
|
224
|
-
deploy(
|
|
225
|
-
_blockCycleNumerator: BigNumberish,
|
|
226
|
-
overrides?: Overrides & { from?: string | Promise<string> }
|
|
227
|
-
): Promise<PendleOracleFactory> {
|
|
228
|
-
return super.deploy(
|
|
229
|
-
_blockCycleNumerator,
|
|
230
|
-
overrides || {}
|
|
231
|
-
) as Promise<PendleOracleFactory>;
|
|
232
|
-
}
|
|
233
|
-
getDeployTransaction(
|
|
234
|
-
_blockCycleNumerator: BigNumberish,
|
|
235
|
-
overrides?: Overrides & { from?: string | Promise<string> }
|
|
236
|
-
): TransactionRequest {
|
|
237
|
-
return super.getDeployTransaction(_blockCycleNumerator, overrides || {});
|
|
238
|
-
}
|
|
239
|
-
attach(address: string): PendleOracleFactory {
|
|
240
|
-
return super.attach(address) as PendleOracleFactory;
|
|
241
|
-
}
|
|
242
|
-
connect(signer: Signer): PendleOracleFactory__factory {
|
|
243
|
-
return super.connect(signer) as PendleOracleFactory__factory;
|
|
244
|
-
}
|
|
245
|
-
static readonly contractName: "PendleOracleFactory";
|
|
246
|
-
public readonly contractName: "PendleOracleFactory";
|
|
247
|
-
static readonly bytecode = _bytecode;
|
|
248
|
-
static readonly abi = _abi;
|
|
249
|
-
static createInterface(): PendleOracleFactoryInterface {
|
|
250
|
-
return new utils.Interface(_abi) as PendleOracleFactoryInterface;
|
|
251
|
-
}
|
|
252
|
-
static connect(
|
|
253
|
-
address: string,
|
|
254
|
-
signerOrProvider: Signer | Provider
|
|
255
|
-
): PendleOracleFactory {
|
|
256
|
-
return new Contract(address, _abi, signerOrProvider) as PendleOracleFactory;
|
|
257
|
-
}
|
|
258
|
-
}
|
|
@@ -1,199 +0,0 @@
|
|
|
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: "uint16",
|
|
28
|
-
name: "_twapDuration",
|
|
29
|
-
type: "uint16",
|
|
30
|
-
},
|
|
31
|
-
],
|
|
32
|
-
stateMutability: "nonpayable",
|
|
33
|
-
type: "constructor",
|
|
34
|
-
},
|
|
35
|
-
{
|
|
36
|
-
inputs: [],
|
|
37
|
-
name: "PT",
|
|
38
|
-
outputs: [
|
|
39
|
-
{
|
|
40
|
-
internalType: "contract IPPrincipalToken",
|
|
41
|
-
name: "",
|
|
42
|
-
type: "address",
|
|
43
|
-
},
|
|
44
|
-
],
|
|
45
|
-
stateMutability: "view",
|
|
46
|
-
type: "function",
|
|
47
|
-
},
|
|
48
|
-
{
|
|
49
|
-
inputs: [],
|
|
50
|
-
name: "SY",
|
|
51
|
-
outputs: [
|
|
52
|
-
{
|
|
53
|
-
internalType: "contract IStandardizedYield",
|
|
54
|
-
name: "",
|
|
55
|
-
type: "address",
|
|
56
|
-
},
|
|
57
|
-
],
|
|
58
|
-
stateMutability: "view",
|
|
59
|
-
type: "function",
|
|
60
|
-
},
|
|
61
|
-
{
|
|
62
|
-
inputs: [],
|
|
63
|
-
name: "asset",
|
|
64
|
-
outputs: [
|
|
65
|
-
{
|
|
66
|
-
internalType: "address",
|
|
67
|
-
name: "",
|
|
68
|
-
type: "address",
|
|
69
|
-
},
|
|
70
|
-
],
|
|
71
|
-
stateMutability: "view",
|
|
72
|
-
type: "function",
|
|
73
|
-
},
|
|
74
|
-
{
|
|
75
|
-
inputs: [],
|
|
76
|
-
name: "assetInfo",
|
|
77
|
-
outputs: [
|
|
78
|
-
{
|
|
79
|
-
internalType: "enum IStandardizedYield.AssetType",
|
|
80
|
-
name: "assetType",
|
|
81
|
-
type: "uint8",
|
|
82
|
-
},
|
|
83
|
-
],
|
|
84
|
-
stateMutability: "view",
|
|
85
|
-
type: "function",
|
|
86
|
-
},
|
|
87
|
-
{
|
|
88
|
-
inputs: [],
|
|
89
|
-
name: "decimals",
|
|
90
|
-
outputs: [
|
|
91
|
-
{
|
|
92
|
-
internalType: "uint8",
|
|
93
|
-
name: "",
|
|
94
|
-
type: "uint8",
|
|
95
|
-
},
|
|
96
|
-
],
|
|
97
|
-
stateMutability: "pure",
|
|
98
|
-
type: "function",
|
|
99
|
-
},
|
|
100
|
-
{
|
|
101
|
-
inputs: [],
|
|
102
|
-
name: "getPtToAssetRate",
|
|
103
|
-
outputs: [
|
|
104
|
-
{
|
|
105
|
-
internalType: "uint256",
|
|
106
|
-
name: "ptToAssetRate",
|
|
107
|
-
type: "uint256",
|
|
108
|
-
},
|
|
109
|
-
],
|
|
110
|
-
stateMutability: "view",
|
|
111
|
-
type: "function",
|
|
112
|
-
},
|
|
113
|
-
{
|
|
114
|
-
inputs: [],
|
|
115
|
-
name: "market",
|
|
116
|
-
outputs: [
|
|
117
|
-
{
|
|
118
|
-
internalType: "address",
|
|
119
|
-
name: "",
|
|
120
|
-
type: "address",
|
|
121
|
-
},
|
|
122
|
-
],
|
|
123
|
-
stateMutability: "view",
|
|
124
|
-
type: "function",
|
|
125
|
-
},
|
|
126
|
-
{
|
|
127
|
-
inputs: [],
|
|
128
|
-
name: "twapDuration",
|
|
129
|
-
outputs: [
|
|
130
|
-
{
|
|
131
|
-
internalType: "uint32",
|
|
132
|
-
name: "",
|
|
133
|
-
type: "uint32",
|
|
134
|
-
},
|
|
135
|
-
],
|
|
136
|
-
stateMutability: "view",
|
|
137
|
-
type: "function",
|
|
138
|
-
},
|
|
139
|
-
];
|
|
140
|
-
|
|
141
|
-
const _bytecode =
|
|
142
|
-
"0x6101206040523480156200001257600080fd5b5060405162000ecf38038062000ecf833981016040819052620000359162000156565b6001600160a01b03821660a081905261ffff821660805260408051630b2339af60e21b81529051632c8ce6bc916004808201926060929091908290030181865afa15801562000088573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620000ae91906200019b565b506001600160a01b0390811660c0521660e081905260408051630a40bee560e41b8152905163a40bee50916004808201926060929091908290030181865afa158015620000ff573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620001259190620001ef565b506001600160a01b0316610100525062000240915050565b6001600160a01b03811681146200015357600080fd5b50565b600080604083850312156200016a57600080fd5b825162000177816200013d565b602084015190925061ffff811681146200019057600080fd5b809150509250929050565b600080600060608486031215620001b157600080fd5b8351620001be816200013d565b6020850151909350620001d1816200013d565b6040850151909250620001e4816200013d565b809150509250925092565b6000806000606084860312156200020557600080fd5b8351600281106200021557600080fd5b602085015190935062000228816200013d565b604085015190925060ff81168114620001e457600080fd5b60805160a05160c05160e05161010051610c29620002a6600039600060d201526000818161014d01526101b0015260006101740152600081816101110152818161023d01526103a001526000818160820152818161033f015261041e0152610c296000f3fe608060405234801561001057600080fd5b50600436106100785760003560e01c806326d895451461007d578063313ce567146100be57806338d52e0f146100cd57806380f556051461010c578063a40bee5014610133578063afd27bf514610148578063d94073d41461016f578063e06c25ba14610196575b600080fd5b6100a47f000000000000000000000000000000000000000000000000000000000000000081565b60405163ffffffff90911681526020015b60405180910390f35b604051601281526020016100b5565b6100f47f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b0390911681526020016100b5565b6100f47f000000000000000000000000000000000000000000000000000000000000000081565b61013b6101ac565b6040516100b59190610942565b6100f47f000000000000000000000000000000000000000000000000000000000000000081565b6100f47f000000000000000000000000000000000000000000000000000000000000000081565b61019e610238565b6040519081526020016100b5565b60007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663a40bee506040518163ffffffff1660e01b8152600401606060405180830381865afa15801561020c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610230919061096a565b509092915050565b6000807f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663e184c9be6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610299573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102bd91906109cd565b90504281116102d557670de0b6b3a764000091505090565b60006102df610318565b905060006102ed42846109fc565b905060006102fb838361049d565b905061030f670de0b6b3a7640000826104de565b94505050505090565b604080516002808252606082018352600092839291906020830190803683370190505090507f00000000000000000000000000000000000000000000000000000000000000008160008151811061037157610371610a25565b63ffffffff9092166020928302919091019091015260405163883bdbfd60e01b81526000906001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169063883bdbfd906103d5908590600401610a3b565b600060405180830381865afa1580156103f2573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261041a9190810190610aa1565b90507f000000000000000000000000000000000000000000000000000000000000000063ffffffff168160008151811061045657610456610a25565b60200260200101518260018151811061047157610471610a25565b60200260200101516104839190610b65565b61048d9190610ba2565b6001600160d81b03169250505090565b6000806104af6201518061016d610bc8565b6104b98486610bc8565b6104c39190610bdf565b90506104d66104d18261050f565b610529565b949350505050565b6000806104f3670de0b6b3a764000085610bc8565b905082818161050457610504610b8c565b049150505b92915050565b60006001600160ff1b0382111561052557600080fd5b5090565b6000680238fd42c5cf03ffff19821215801561054e575068070c1cc73b00c800008213155b6105915760405162461bcd60e51b815260206004820152601060248201526f125b9d985b1a5908195e1c1bdb995b9d60821b604482015260640160405180910390fd5b60008212156105c9576105a682600003610529565b6a0c097ce7bc90715b34b9f160241b816105c2576105c2610b8c565b0592915050565b60006806f05b59d3b2000000831261060757506806f05b59d3b1ffffff199091019072195e54c5dd42177f53a27172fa9ec63026282760241b61063d565b6803782dace9d9000000831261063957506803782dace9d8ffffff19909101906b1425982cf597cd205cef738061063d565b5060015b6064929092029168056bc75e2d6310000068ad78ebc5ac62000000841261068d5768ad78ebc5ac61ffffff199093019268056bc75e2d631000006e01855144814a7ff805980ff008400082020590505b6856bc75e2d63100000084126106c9576856bc75e2d630ffffff199093019268056bc75e2d631000006b02df0ab5a80a22c61ab5a70082020590505b682b5e3af16b18800000841261070357682b5e3af16b187fffff199093019268056bc75e2d63100000693f1fce3da636ea5cf85082020590505b6815af1d78b58c400000841261073d576815af1d78b58c3fffff199093019268056bc75e2d63100000690127fa27722cc06cc5e282020590505b680ad78ebc5ac6200000841261077657680ad78ebc5ac61fffff199093019268056bc75e2d6310000068280e60114edb805d0382020590505b68056bc75e2d6310000084126107af5768056bc75e2d630fffff199093019268056bc75e2d63100000680ebc5fb4174612111082020590505b6802b5e3af16b188000084126107e8576802b5e3af16b187ffff199093019268056bc75e2d631000006808f00f760a4b2db55d82020590505b68015af1d78b58c4000084126108215768015af1d78b58c3ffff199093019268056bc75e2d631000006806f5f177578893793782020590505b68056bc75e2d631000008481019085906002908280020505918201919050600368056bc75e2d631000008783020505918201919050600468056bc75e2d631000008783020505918201919050600568056bc75e2d631000008783020505918201919050600668056bc75e2d631000008783020505918201919050600768056bc75e2d631000008783020505918201919050600868056bc75e2d631000008783020505918201919050600968056bc75e2d631000008783020505918201919050600a68056bc75e2d631000008783020505918201919050600b68056bc75e2d631000008783020505918201919050600c68056bc75e2d631000008783020505918201919050606468056bc75e2d63100000848402058502059695505050505050565b602081016002831061096457634e487b7160e01b600052602160045260246000fd5b91905290565b60008060006060848603121561097f57600080fd5b83516002811061098e57600080fd5b60208501519093506001600160a01b03811681146109ab57600080fd5b604085015190925060ff811681146109c257600080fd5b809150509250925092565b6000602082840312156109df57600080fd5b5051919050565b634e487b7160e01b600052601160045260246000fd5b81810381811115610509576105096109e6565b634e487b7160e01b600052604160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b6020808252825182820181905260009190848201906040850190845b81811015610a7957835163ffffffff1683529284019291840191600101610a57565b50909695505050505050565b80516001600160d81b0381168114610a9c57600080fd5b919050565b60006020808385031215610ab457600080fd5b82516001600160401b0380821115610acb57600080fd5b818501915085601f830112610adf57600080fd5b815181811115610af157610af1610a0f565b8060051b604051601f19603f83011681018181108582111715610b1657610b16610a0f565b604052918252848201925083810185019188831115610b3457600080fd5b938501935b82851015610b5957610b4a85610a85565b84529385019392850192610b39565b98975050505050505050565b6001600160d81b03828116828216039080821115610b8557610b856109e6565b5092915050565b634e487b7160e01b600052601260045260246000fd5b60006001600160d81b0383811680610bbc57610bbc610b8c565b92169190910492915050565b8082028115828204841417610509576105096109e6565b600082610bee57610bee610b8c565b50049056fea2646970667358221220aa4ee74f92dd1b905f9075da50db33d27745aa9cba9ba433614cae56ade4229d64736f6c63430008110033";
|
|
143
|
-
|
|
144
|
-
type PendlePtAssetOracleConstructorParams =
|
|
145
|
-
| [signer?: Signer]
|
|
146
|
-
| ConstructorParameters<typeof ContractFactory>;
|
|
147
|
-
|
|
148
|
-
const isSuperArgs = (
|
|
149
|
-
xs: PendlePtAssetOracleConstructorParams
|
|
150
|
-
): xs is ConstructorParameters<typeof ContractFactory> => xs.length > 1;
|
|
151
|
-
|
|
152
|
-
export class PendlePtAssetOracle__factory extends ContractFactory {
|
|
153
|
-
constructor(...args: PendlePtAssetOracleConstructorParams) {
|
|
154
|
-
if (isSuperArgs(args)) {
|
|
155
|
-
super(...args);
|
|
156
|
-
} else {
|
|
157
|
-
super(_abi, _bytecode, args[0]);
|
|
158
|
-
}
|
|
159
|
-
this.contractName = "PendlePtAssetOracle";
|
|
160
|
-
}
|
|
161
|
-
|
|
162
|
-
deploy(
|
|
163
|
-
_market: string,
|
|
164
|
-
_twapDuration: BigNumberish,
|
|
165
|
-
overrides?: Overrides & { from?: string | Promise<string> }
|
|
166
|
-
): Promise<PendlePtAssetOracle> {
|
|
167
|
-
return super.deploy(
|
|
168
|
-
_market,
|
|
169
|
-
_twapDuration,
|
|
170
|
-
overrides || {}
|
|
171
|
-
) as Promise<PendlePtAssetOracle>;
|
|
172
|
-
}
|
|
173
|
-
getDeployTransaction(
|
|
174
|
-
_market: string,
|
|
175
|
-
_twapDuration: BigNumberish,
|
|
176
|
-
overrides?: Overrides & { from?: string | Promise<string> }
|
|
177
|
-
): TransactionRequest {
|
|
178
|
-
return super.getDeployTransaction(_market, _twapDuration, overrides || {});
|
|
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
|
-
}
|
|
@@ -1,153 +0,0 @@
|
|
|
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
|
-
PendlePtUsdOracle,
|
|
8
|
-
PendlePtUsdOracleInterface,
|
|
9
|
-
} from "../PendlePtUsdOracle";
|
|
10
|
-
|
|
11
|
-
const _abi = [
|
|
12
|
-
{
|
|
13
|
-
inputs: [
|
|
14
|
-
{
|
|
15
|
-
internalType: "address",
|
|
16
|
-
name: "_ptOracle",
|
|
17
|
-
type: "address",
|
|
18
|
-
},
|
|
19
|
-
{
|
|
20
|
-
internalType: "address",
|
|
21
|
-
name: "_feed",
|
|
22
|
-
type: "address",
|
|
23
|
-
},
|
|
24
|
-
],
|
|
25
|
-
stateMutability: "nonpayable",
|
|
26
|
-
type: "constructor",
|
|
27
|
-
},
|
|
28
|
-
{
|
|
29
|
-
inputs: [],
|
|
30
|
-
name: "decimals",
|
|
31
|
-
outputs: [
|
|
32
|
-
{
|
|
33
|
-
internalType: "uint8",
|
|
34
|
-
name: "",
|
|
35
|
-
type: "uint8",
|
|
36
|
-
},
|
|
37
|
-
],
|
|
38
|
-
stateMutability: "pure",
|
|
39
|
-
type: "function",
|
|
40
|
-
},
|
|
41
|
-
{
|
|
42
|
-
inputs: [],
|
|
43
|
-
name: "feed",
|
|
44
|
-
outputs: [
|
|
45
|
-
{
|
|
46
|
-
internalType: "address",
|
|
47
|
-
name: "",
|
|
48
|
-
type: "address",
|
|
49
|
-
},
|
|
50
|
-
],
|
|
51
|
-
stateMutability: "view",
|
|
52
|
-
type: "function",
|
|
53
|
-
},
|
|
54
|
-
{
|
|
55
|
-
inputs: [],
|
|
56
|
-
name: "feedDecimals",
|
|
57
|
-
outputs: [
|
|
58
|
-
{
|
|
59
|
-
internalType: "uint8",
|
|
60
|
-
name: "",
|
|
61
|
-
type: "uint8",
|
|
62
|
-
},
|
|
63
|
-
],
|
|
64
|
-
stateMutability: "view",
|
|
65
|
-
type: "function",
|
|
66
|
-
},
|
|
67
|
-
{
|
|
68
|
-
inputs: [],
|
|
69
|
-
name: "getPtPrice",
|
|
70
|
-
outputs: [
|
|
71
|
-
{
|
|
72
|
-
internalType: "uint256",
|
|
73
|
-
name: "",
|
|
74
|
-
type: "uint256",
|
|
75
|
-
},
|
|
76
|
-
],
|
|
77
|
-
stateMutability: "view",
|
|
78
|
-
type: "function",
|
|
79
|
-
},
|
|
80
|
-
{
|
|
81
|
-
inputs: [],
|
|
82
|
-
name: "ptOracle",
|
|
83
|
-
outputs: [
|
|
84
|
-
{
|
|
85
|
-
internalType: "address",
|
|
86
|
-
name: "",
|
|
87
|
-
type: "address",
|
|
88
|
-
},
|
|
89
|
-
],
|
|
90
|
-
stateMutability: "view",
|
|
91
|
-
type: "function",
|
|
92
|
-
},
|
|
93
|
-
];
|
|
94
|
-
|
|
95
|
-
const _bytecode =
|
|
96
|
-
"0x60e060405234801561001057600080fd5b5060405161063d38038061063d83398101604081905261002f916100cd565b6001600160a01b03808316608052811660a08190526040805163313ce56760e01b8152905163313ce567916004808201926020929091908290030181865afa15801561007f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906100a39190610100565b60ff1660c0525061012a9050565b80516001600160a01b03811681146100c857600080fd5b919050565b600080604083850312156100e057600080fd5b6100e9836100b1565b91506100f7602084016100b1565b90509250929050565b60006020828403121561011257600080fd5b815160ff8116811461012357600080fd5b9392505050565b60805160a05160c0516104c46101796000396000818160f70152818161025b0152818161028901526102cc01526000818160ba01526101d50152600081816061015261011e01526104c46000f3fe608060405234801561001057600080fd5b50600436106100575760003560e01c806305d7b9a21461005c578063313ce567146100a057806337a7b7d8146100b5578063bc3ff1dc146100dc578063c23953d0146100f2575b600080fd5b6100837f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b0390911681526020015b60405180910390f35b60125b60405160ff9091168152602001610097565b6100837f000000000000000000000000000000000000000000000000000000000000000081565b6100e4610119565b604051908152602001610097565b6100a37f000000000000000000000000000000000000000000000000000000000000000081565b6000807f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663e06c25ba6040518163ffffffff1660e01b8152600401602060405180830381865afa15801561017a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061019e919061030d565b905060006101aa6101d0565b9050670de0b6b3a76400006101bf838361033c565b6101c99190610359565b9250505090565b6000807f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166350d25bcd6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610231573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610255919061030d565b905060127f000000000000000000000000000000000000000000000000000000000000000060ff16106102c7576102ad60127f000000000000000000000000000000000000000000000000000000000000000061037b565b6102b890600a610478565b6102c29082610359565b610307565b6102f27f0000000000000000000000000000000000000000000000000000000000000000601261037b565b6102fd90600a610478565b610307908261033c565b91505090565b60006020828403121561031f57600080fd5b5051919050565b634e487b7160e01b600052601160045260246000fd5b808202811582820484141761035357610353610326565b92915050565b60008261037657634e487b7160e01b600052601260045260246000fd5b500490565b60ff828116828216039081111561035357610353610326565b600181815b808511156103cf5781600019048211156103b5576103b5610326565b808516156103c257918102915b93841c9390800290610399565b509250929050565b6000826103e657506001610353565b816103f357506000610353565b816001811461040957600281146104135761042f565b6001915050610353565b60ff84111561042457610424610326565b50506001821b610353565b5060208310610133831016604e8410600b8410161715610452575081810a610353565b61045c8383610394565b806000190482111561047057610470610326565b029392505050565b600061048760ff8416836103d7565b939250505056fea26469706673582212207bf9fddcb63ccba7242f9d1e4461e2708d9330dd88a33d642cd639787224c07f64736f6c63430008110033";
|
|
97
|
-
|
|
98
|
-
type PendlePtUsdOracleConstructorParams =
|
|
99
|
-
| [signer?: Signer]
|
|
100
|
-
| ConstructorParameters<typeof ContractFactory>;
|
|
101
|
-
|
|
102
|
-
const isSuperArgs = (
|
|
103
|
-
xs: PendlePtUsdOracleConstructorParams
|
|
104
|
-
): xs is ConstructorParameters<typeof ContractFactory> => xs.length > 1;
|
|
105
|
-
|
|
106
|
-
export class PendlePtUsdOracle__factory extends ContractFactory {
|
|
107
|
-
constructor(...args: PendlePtUsdOracleConstructorParams) {
|
|
108
|
-
if (isSuperArgs(args)) {
|
|
109
|
-
super(...args);
|
|
110
|
-
} else {
|
|
111
|
-
super(_abi, _bytecode, args[0]);
|
|
112
|
-
}
|
|
113
|
-
this.contractName = "PendlePtUsdOracle";
|
|
114
|
-
}
|
|
115
|
-
|
|
116
|
-
deploy(
|
|
117
|
-
_ptOracle: string,
|
|
118
|
-
_feed: string,
|
|
119
|
-
overrides?: Overrides & { from?: string | Promise<string> }
|
|
120
|
-
): Promise<PendlePtUsdOracle> {
|
|
121
|
-
return super.deploy(
|
|
122
|
-
_ptOracle,
|
|
123
|
-
_feed,
|
|
124
|
-
overrides || {}
|
|
125
|
-
) as Promise<PendlePtUsdOracle>;
|
|
126
|
-
}
|
|
127
|
-
getDeployTransaction(
|
|
128
|
-
_ptOracle: string,
|
|
129
|
-
_feed: string,
|
|
130
|
-
overrides?: Overrides & { from?: string | Promise<string> }
|
|
131
|
-
): TransactionRequest {
|
|
132
|
-
return super.getDeployTransaction(_ptOracle, _feed, overrides || {});
|
|
133
|
-
}
|
|
134
|
-
attach(address: string): PendlePtUsdOracle {
|
|
135
|
-
return super.attach(address) as PendlePtUsdOracle;
|
|
136
|
-
}
|
|
137
|
-
connect(signer: Signer): PendlePtUsdOracle__factory {
|
|
138
|
-
return super.connect(signer) as PendlePtUsdOracle__factory;
|
|
139
|
-
}
|
|
140
|
-
static readonly contractName: "PendlePtUsdOracle";
|
|
141
|
-
public readonly contractName: "PendlePtUsdOracle";
|
|
142
|
-
static readonly bytecode = _bytecode;
|
|
143
|
-
static readonly abi = _abi;
|
|
144
|
-
static createInterface(): PendlePtUsdOracleInterface {
|
|
145
|
-
return new utils.Interface(_abi) as PendlePtUsdOracleInterface;
|
|
146
|
-
}
|
|
147
|
-
static connect(
|
|
148
|
-
address: string,
|
|
149
|
-
signerOrProvider: Signer | Provider
|
|
150
|
-
): PendlePtUsdOracle {
|
|
151
|
-
return new Contract(address, _abi, signerOrProvider) as PendlePtUsdOracle;
|
|
152
|
-
}
|
|
153
|
-
}
|