@pendle/core-v2 2.8.1-mainnet → 2.8.2-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/PendleGaugeControllerSidechainUpg.sol/PendleGaugeControllerSidechainUpg.dbg.json +1 -1
- 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/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/PendleMarketFactory.sol/PendleMarketFactory.dbg.json +1 -1
- 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/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/PendleAuraWethRocketEthSYV2.sol/PendleAuraWethRocketEthSYV2.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/PendleAuraWethStafiEthSY.sol/PendleAuraWethStafiEthSY.dbg.json +1 -1
- package/build/artifacts/contracts/core/StandardizedYield/implementations/BalancerStable/PendleAuraWethWstethSYV2.sol/PendleAuraWethWstethSYV2.dbg.json +1 -1
- 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/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/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/StandardizedYield/implementations/UniV2/PendleUniV2Base.sol/PendleCamelotV1Base.dbg.json +4 -0
- package/build/artifacts/contracts/core/StandardizedYield/implementations/UniV2/PendleUniV2Base.sol/PendleCamelotV1Base.json +63 -0
- 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/PendleYieldContractFactory.sol/PendleYieldContractFactory.dbg.json +1 -1
- package/build/artifacts/contracts/core/YieldContracts/PendleYieldToken.sol/PendleYieldToken.dbg.json +1 -1
- 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/PendleYieldContractFactoryV2.sol/PendleYieldContractFactoryV2.dbg.json +1 -1
- package/build/artifacts/contracts/core/YieldContractsV2/PendleYieldTokenV2.sol/PendleYieldTokenV2.dbg.json +1 -1
- 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/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/ICamelotPair.sol/ICamelotPair.dbg.json +4 -0
- package/build/artifacts/contracts/interfaces/ICamelotPair.sol/ICamelotPair.json +716 -0
- package/build/artifacts/contracts/interfaces/ICamelotRouter.sol/ICamelotRouter.dbg.json +4 -0
- package/build/artifacts/contracts/interfaces/ICamelotRouter.sol/ICamelotRouter.json +647 -0
- 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/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/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/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/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/PendleMulticall.sol/PendleMulticall.dbg.json +4 -0
- package/build/artifacts/contracts/offchain-helpers/PendleMulticall.sol/PendleMulticall.json +47 -0
- package/build/artifacts/contracts/offchain-helpers/router-static/PendleRouterStatic.sol/PendleRouterStatic.dbg.json +1 -1
- 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/ActionMarketAuxStatic.sol/ActionMarketAuxStatic.dbg.json +1 -1
- 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/ActionMintRedeemStatic.sol/ActionMintRedeemStatic.dbg.json +1 -1
- 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/ActionVePendleStatic.sol/ActionVePendleStatic.dbg.json +1 -1
- 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/ActionMintRedeem.sol/ActionMintRedeem.dbg.json +1 -1
- 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/ActionSwapYT.sol/ActionSwapYT.dbg.json +1 -1
- package/build/artifacts/contracts/router/PendleRouter.sol/PendleRouter.dbg.json +1 -1
- package/build/artifacts/contracts/router/PendleRouterHelper.sol/PendleRouterHelper.dbg.json +1 -1
- 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/MarketApproxPtOutLib.dbg.json +1 -1
- 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/core/StandardizedYield/implementations/BalancerStable/base/PendleAuraBalancerStableLPSYV2.sol +31 -10
- package/deployments/1-markets/BALANCER-LP-AURA-STAFI-RETH-WETH-JUNE-27-2024.json +5 -5
- package/deployments/42161-core.json +3 -3
- 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/ICamelotPair.ts +972 -0
- package/typechain-types/ICamelotRouter.ts +955 -0
- package/typechain-types/IPPtAssetOracle.ts +115 -0
- package/typechain-types/IPPtOracle.ts +165 -0
- package/typechain-types/IPPtUsdOracle.ts +97 -0
- package/typechain-types/PendleAuraBalancerStableLPSY.ts +1523 -0
- package/typechain-types/PendleAuraWethAnkrethSY.ts +1523 -0
- package/typechain-types/PendleAuraWethRethSY.ts +1549 -0
- package/typechain-types/PendleAuraWethWstethSY.ts +1523 -0
- package/typechain-types/PendleCamelotV1Base.ts +120 -0
- package/typechain-types/{PendleMulticallV1.ts → PendleMulticall.ts} +12 -64
- package/typechain-types/PendleOracleFactory.ts +251 -0
- package/typechain-types/PendlePtAssetOracle.ts +188 -0
- package/typechain-types/PendlePtGlpOracle.ts +145 -0
- package/typechain-types/PendlePtOracle.ts +207 -0
- package/typechain-types/PendlePtUsdChainlinkOracle.ts +174 -0
- package/typechain-types/PendlePtUsdOracle.ts +142 -0
- package/typechain-types/PendleStafiEthSY.ts +100 -0
- 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/ICamelotPair__factory.ts +728 -0
- package/typechain-types/factories/ICamelotRouter__factory.ts +662 -0
- package/typechain-types/factories/IPPtAssetOracle__factory.ts +65 -0
- package/typechain-types/factories/IPPtOracle__factory.ts +81 -0
- package/typechain-types/factories/IPPtUsdOracle__factory.ts +49 -0
- package/typechain-types/factories/PendleAuraBalancerStableLPSY__factory.ts +1190 -0
- package/typechain-types/factories/PendleAuraWethAnkrethSY__factory.ts +1265 -0
- package/typechain-types/factories/PendleAuraWethRethSY__factory.ts +1291 -0
- package/typechain-types/factories/PendleAuraWethWstethSY__factory.ts +1265 -0
- package/typechain-types/factories/PendleCamelotV1Base__factory.ts +78 -0
- package/typechain-types/factories/PendleMulticall__factory.ts +100 -0
- package/typechain-types/factories/PendleOracleFactory__factory.ts +258 -0
- package/typechain-types/factories/PendlePtAssetOracle__factory.ts +199 -0
- package/typechain-types/factories/PendlePtGlpOracle__factory.ts +198 -0
- package/typechain-types/factories/PendlePtOracle__factory.ts +187 -0
- package/typechain-types/factories/PendlePtUsdChainlinkOracle__factory.ts +228 -0
- package/typechain-types/factories/PendlePtUsdOracle__factory.ts +153 -0
- package/typechain-types/factories/PendleStafiEthSY__factory.ts +118 -0
- package/typechain-types/hardhat.d.ts +31 -4
- package/typechain-types/index.ts +8 -2
- package/build/artifacts/contracts/offchain-helpers/PendleMulticallV1.sol/PendleMulticallV1.dbg.json +0 -4
- package/build/artifacts/contracts/offchain-helpers/PendleMulticallV1.sol/PendleMulticallV1.json +0 -89
- package/typechain-types/factories/PendleMulticallV1__factory.ts +0 -142
- /package/deployments/1-markets/{BALANCER-LP-AURA-ANKRETH-WETH-MARCH-28-2024.json → deprecated/BALANCER-LP-AURA-ANKRETH-WETH-MARCH-28-2024.json} +0 -0
- /package/deployments/1-markets/{BALANCER-LP-AURA-RETH-WETH-28DEC.json → deprecated/BALANCER-LP-AURA-RETH-WETH-28DEC.json} +0 -0
- /package/deployments/1-markets/{BALANCER-LP-AURA-WSTETH-WETH-JUN272024.json → deprecated/BALANCER-LP-AURA-WSTETH-WETH-JUN272024.json} +0 -0
- /package/deployments/1-markets/{FRAXUSDC-CURVELP-MARCH30.json → deprecated/FRAXUSDC-CURVELP-MARCH30.json} +0 -0
- /package/deployments/1-markets/{LOOKS-STAKING-MARCH30.json → deprecated/LOOKS-STAKING-MARCH30.json} +0 -0
- /package/deployments/1-markets/{STETH-MARCH30.json → deprecated/STETH-MARCH30.json} +0 -0
|
@@ -0,0 +1,198 @@
|
|
|
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
|
+
PendlePtGlpOracle,
|
|
15
|
+
PendlePtGlpOracleInterface,
|
|
16
|
+
} from "../PendlePtGlpOracle";
|
|
17
|
+
|
|
18
|
+
const _abi = [
|
|
19
|
+
{
|
|
20
|
+
inputs: [
|
|
21
|
+
{
|
|
22
|
+
internalType: "address",
|
|
23
|
+
name: "_ptOracle",
|
|
24
|
+
type: "address",
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
internalType: "uint32",
|
|
28
|
+
name: "_twapDuration",
|
|
29
|
+
type: "uint32",
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
internalType: "address",
|
|
33
|
+
name: "_market",
|
|
34
|
+
type: "address",
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
internalType: "address",
|
|
38
|
+
name: "_glpManager",
|
|
39
|
+
type: "address",
|
|
40
|
+
},
|
|
41
|
+
],
|
|
42
|
+
stateMutability: "nonpayable",
|
|
43
|
+
type: "constructor",
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
inputs: [
|
|
47
|
+
{
|
|
48
|
+
internalType: "bool",
|
|
49
|
+
name: "increaseCardinalityRequired",
|
|
50
|
+
type: "bool",
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
internalType: "bool",
|
|
54
|
+
name: "oldestObservationSatisfied",
|
|
55
|
+
type: "bool",
|
|
56
|
+
},
|
|
57
|
+
],
|
|
58
|
+
name: "OracleNotReady",
|
|
59
|
+
type: "error",
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
inputs: [],
|
|
63
|
+
name: "decimals",
|
|
64
|
+
outputs: [
|
|
65
|
+
{
|
|
66
|
+
internalType: "uint8",
|
|
67
|
+
name: "",
|
|
68
|
+
type: "uint8",
|
|
69
|
+
},
|
|
70
|
+
],
|
|
71
|
+
stateMutability: "pure",
|
|
72
|
+
type: "function",
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
inputs: [],
|
|
76
|
+
name: "getPtPrice",
|
|
77
|
+
outputs: [
|
|
78
|
+
{
|
|
79
|
+
internalType: "uint256",
|
|
80
|
+
name: "",
|
|
81
|
+
type: "uint256",
|
|
82
|
+
},
|
|
83
|
+
],
|
|
84
|
+
stateMutability: "view",
|
|
85
|
+
type: "function",
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
inputs: [],
|
|
89
|
+
name: "glpManager",
|
|
90
|
+
outputs: [
|
|
91
|
+
{
|
|
92
|
+
internalType: "address",
|
|
93
|
+
name: "",
|
|
94
|
+
type: "address",
|
|
95
|
+
},
|
|
96
|
+
],
|
|
97
|
+
stateMutability: "view",
|
|
98
|
+
type: "function",
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
inputs: [],
|
|
102
|
+
name: "market",
|
|
103
|
+
outputs: [
|
|
104
|
+
{
|
|
105
|
+
internalType: "address",
|
|
106
|
+
name: "",
|
|
107
|
+
type: "address",
|
|
108
|
+
},
|
|
109
|
+
],
|
|
110
|
+
stateMutability: "view",
|
|
111
|
+
type: "function",
|
|
112
|
+
},
|
|
113
|
+
{
|
|
114
|
+
inputs: [],
|
|
115
|
+
name: "twapDuration",
|
|
116
|
+
outputs: [
|
|
117
|
+
{
|
|
118
|
+
internalType: "uint32",
|
|
119
|
+
name: "",
|
|
120
|
+
type: "uint32",
|
|
121
|
+
},
|
|
122
|
+
],
|
|
123
|
+
stateMutability: "view",
|
|
124
|
+
type: "function",
|
|
125
|
+
},
|
|
126
|
+
];
|
|
127
|
+
|
|
128
|
+
const _bytecode =
|
|
129
|
+
"0x60e06040523480156200001157600080fd5b5060405162000d5d38038062000d5d83398101604081905262000034916200012f565b63ffffffff831660808190526001600160a01b0383811660a081905283821660c05260405162439f4b60e91b815260048101919091526024810192909252600091829187169063873e960090604401606060405180830381865afa158015620000a1573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620000c79190620001a7565b92505091508180620000d7575080155b15620001065760405163685ddbe760e11b81528215156004820152811515602482015260440160405180910390fd5b505050505050620001f9565b80516001600160a01b03811681146200012a57600080fd5b919050565b600080600080608085870312156200014657600080fd5b620001518562000112565b9350602085015163ffffffff811681146200016b57600080fd5b92506200017b6040860162000112565b91506200018b6060860162000112565b905092959194509250565b805180151581146200012a57600080fd5b600080600060608486031215620001bd57600080fd5b620001c88462000196565b9250602084015161ffff81168114620001e057600080fd5b9150620001f06040850162000196565b90509250925092565b60805160a05160c051610b216200023c6000396000818161010601526101a201526000818160b101526101380152600081816061015261015a0152610b216000f3fe608060405234801561001057600080fd5b50600436106100575760003560e01c806326d895451461005c578063313ce5671461009d57806380f55605146100ac578063bc3ff1dc146100eb578063fa6db1bc14610101575b600080fd5b6100837f000000000000000000000000000000000000000000000000000000000000000081565b60405163ffffffff90911681526020015b60405180910390f35b60405160128152602001610094565b6100d37f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b039091168152602001610094565b6100f3610128565b604051908152602001610094565b6100d37f000000000000000000000000000000000000000000000000000000000000000081565b60008061017e6001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000167f0000000000000000000000000000000000000000000000000000000000000000610233565b60405163e245b5af60e01b8152600160048201529091506000906001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169063e245b5af90602401602060405180830381865afa1580156101e9573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061020d91906108c5565b9050670de0b6b3a764000061022283836108f4565b61022c9190610921565b9250505090565b600080836001600160a01b031663e184c9be6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610274573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061029891906108c5565b90504281116102b257670de0b6b3a76400009150506102f5565b60006102be85856102fb565b905060006102cc4284610935565b905060006102da8383610422565b90506102ee670de0b6b3a764000082610463565b9450505050505b92915050565b6040805160028082526060820183526000928392919060208301908036833701905050905082816000815181106103345761033461095e565b63ffffffff9092166020928302919091019091015260405163883bdbfd60e01b81526000906001600160a01b0386169063883bdbfd90610378908590600401610974565b600060405180830381865afa158015610395573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526103bd91908101906109da565b90508363ffffffff16816000815181106103d9576103d961095e565b6020026020010151826001815181106103f4576103f461095e565b60200260200101516104069190610a9e565b6104109190610ac5565b6001600160d81b031695945050505050565b6000806104346201518061016d6108f4565b61043e84866108f4565b6104489190610921565b905061045b61045682610492565b6104ac565b949350505050565b600080610478670de0b6b3a7640000856108f4565b90508281816104895761048961090b565b04949350505050565b60006001600160ff1b038211156104a857600080fd5b5090565b6000680238fd42c5cf03ffff1982121580156104d1575068070c1cc73b00c800008213155b6105145760405162461bcd60e51b815260206004820152601060248201526f125b9d985b1a5908195e1c1bdb995b9d60821b604482015260640160405180910390fd5b600082121561054c57610529826000036104ac565b6a0c097ce7bc90715b34b9f160241b816105455761054561090b565b0592915050565b60006806f05b59d3b2000000831261058a57506806f05b59d3b1ffffff199091019072195e54c5dd42177f53a27172fa9ec63026282760241b6105c0565b6803782dace9d900000083126105bc57506803782dace9d8ffffff19909101906b1425982cf597cd205cef73806105c0565b5060015b6064929092029168056bc75e2d6310000068ad78ebc5ac6200000084126106105768ad78ebc5ac61ffffff199093019268056bc75e2d631000006e01855144814a7ff805980ff008400082020590505b6856bc75e2d631000000841261064c576856bc75e2d630ffffff199093019268056bc75e2d631000006b02df0ab5a80a22c61ab5a70082020590505b682b5e3af16b18800000841261068657682b5e3af16b187fffff199093019268056bc75e2d63100000693f1fce3da636ea5cf85082020590505b6815af1d78b58c40000084126106c0576815af1d78b58c3fffff199093019268056bc75e2d63100000690127fa27722cc06cc5e282020590505b680ad78ebc5ac620000084126106f957680ad78ebc5ac61fffff199093019268056bc75e2d6310000068280e60114edb805d0382020590505b68056bc75e2d6310000084126107325768056bc75e2d630fffff199093019268056bc75e2d63100000680ebc5fb4174612111082020590505b6802b5e3af16b1880000841261076b576802b5e3af16b187ffff199093019268056bc75e2d631000006808f00f760a4b2db55d82020590505b68015af1d78b58c4000084126107a45768015af1d78b58c3ffff199093019268056bc75e2d631000006806f5f177578893793782020590505b68056bc75e2d631000008481019085906002908280020505918201919050600368056bc75e2d631000008783020505918201919050600468056bc75e2d631000008783020505918201919050600568056bc75e2d631000008783020505918201919050600668056bc75e2d631000008783020505918201919050600768056bc75e2d631000008783020505918201919050600868056bc75e2d631000008783020505918201919050600968056bc75e2d631000008783020505918201919050600a68056bc75e2d631000008783020505918201919050600b68056bc75e2d631000008783020505918201919050600c68056bc75e2d631000008783020505918201919050606468056bc75e2d63100000848402058502059695505050505050565b6000602082840312156108d757600080fd5b5051919050565b634e487b7160e01b600052601160045260246000fd5b80820281158282048414176102f5576102f56108de565b634e487b7160e01b600052601260045260246000fd5b6000826109305761093061090b565b500490565b818103818111156102f5576102f56108de565b634e487b7160e01b600052604160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b6020808252825182820181905260009190848201906040850190845b818110156109b257835163ffffffff1683529284019291840191600101610990565b50909695505050505050565b80516001600160d81b03811681146109d557600080fd5b919050565b600060208083850312156109ed57600080fd5b82516001600160401b0380821115610a0457600080fd5b818501915085601f830112610a1857600080fd5b815181811115610a2a57610a2a610948565b8060051b604051601f19603f83011681018181108582111715610a4f57610a4f610948565b604052918252848201925083810185019188831115610a6d57600080fd5b938501935b82851015610a9257610a83856109be565b84529385019392850192610a72565b98975050505050505050565b6001600160d81b03828116828216039080821115610abe57610abe6108de565b5092915050565b60006001600160d81b0383811680610adf57610adf61090b565b9216919091049291505056fea2646970667358221220f072340f7f496347cb6a72deaafccd6504de70a51417a58e2f2011defbf40e0364736f6c63430008110033";
|
|
130
|
+
|
|
131
|
+
type PendlePtGlpOracleConstructorParams =
|
|
132
|
+
| [signer?: Signer]
|
|
133
|
+
| ConstructorParameters<typeof ContractFactory>;
|
|
134
|
+
|
|
135
|
+
const isSuperArgs = (
|
|
136
|
+
xs: PendlePtGlpOracleConstructorParams
|
|
137
|
+
): xs is ConstructorParameters<typeof ContractFactory> => xs.length > 1;
|
|
138
|
+
|
|
139
|
+
export class PendlePtGlpOracle__factory extends ContractFactory {
|
|
140
|
+
constructor(...args: PendlePtGlpOracleConstructorParams) {
|
|
141
|
+
if (isSuperArgs(args)) {
|
|
142
|
+
super(...args);
|
|
143
|
+
} else {
|
|
144
|
+
super(_abi, _bytecode, args[0]);
|
|
145
|
+
}
|
|
146
|
+
this.contractName = "PendlePtGlpOracle";
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
deploy(
|
|
150
|
+
_ptOracle: string,
|
|
151
|
+
_twapDuration: BigNumberish,
|
|
152
|
+
_market: string,
|
|
153
|
+
_glpManager: string,
|
|
154
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
155
|
+
): Promise<PendlePtGlpOracle> {
|
|
156
|
+
return super.deploy(
|
|
157
|
+
_ptOracle,
|
|
158
|
+
_twapDuration,
|
|
159
|
+
_market,
|
|
160
|
+
_glpManager,
|
|
161
|
+
overrides || {}
|
|
162
|
+
) as Promise<PendlePtGlpOracle>;
|
|
163
|
+
}
|
|
164
|
+
getDeployTransaction(
|
|
165
|
+
_ptOracle: string,
|
|
166
|
+
_twapDuration: BigNumberish,
|
|
167
|
+
_market: string,
|
|
168
|
+
_glpManager: string,
|
|
169
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
170
|
+
): TransactionRequest {
|
|
171
|
+
return super.getDeployTransaction(
|
|
172
|
+
_ptOracle,
|
|
173
|
+
_twapDuration,
|
|
174
|
+
_market,
|
|
175
|
+
_glpManager,
|
|
176
|
+
overrides || {}
|
|
177
|
+
);
|
|
178
|
+
}
|
|
179
|
+
attach(address: string): PendlePtGlpOracle {
|
|
180
|
+
return super.attach(address) as PendlePtGlpOracle;
|
|
181
|
+
}
|
|
182
|
+
connect(signer: Signer): PendlePtGlpOracle__factory {
|
|
183
|
+
return super.connect(signer) as PendlePtGlpOracle__factory;
|
|
184
|
+
}
|
|
185
|
+
static readonly contractName: "PendlePtGlpOracle";
|
|
186
|
+
public readonly contractName: "PendlePtGlpOracle";
|
|
187
|
+
static readonly bytecode = _bytecode;
|
|
188
|
+
static readonly abi = _abi;
|
|
189
|
+
static createInterface(): PendlePtGlpOracleInterface {
|
|
190
|
+
return new utils.Interface(_abi) as PendlePtGlpOracleInterface;
|
|
191
|
+
}
|
|
192
|
+
static connect(
|
|
193
|
+
address: string,
|
|
194
|
+
signerOrProvider: Signer | Provider
|
|
195
|
+
): PendlePtGlpOracle {
|
|
196
|
+
return new Contract(address, _abi, signerOrProvider) as PendlePtGlpOracle;
|
|
197
|
+
}
|
|
198
|
+
}
|
|
@@ -0,0 +1,187 @@
|
|
|
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
|
+
PendlePtOracle,
|
|
15
|
+
PendlePtOracleInterface,
|
|
16
|
+
} from "../PendlePtOracle";
|
|
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: "uint32",
|
|
34
|
+
name: "duration",
|
|
35
|
+
type: "uint32",
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
internalType: "uint32",
|
|
39
|
+
name: "cardinalityRequired",
|
|
40
|
+
type: "uint32",
|
|
41
|
+
},
|
|
42
|
+
],
|
|
43
|
+
name: "TwapDurationTooLarge",
|
|
44
|
+
type: "error",
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
inputs: [],
|
|
48
|
+
name: "BLOCK_CYCLE_DENOMINATOR",
|
|
49
|
+
outputs: [
|
|
50
|
+
{
|
|
51
|
+
internalType: "uint16",
|
|
52
|
+
name: "",
|
|
53
|
+
type: "uint16",
|
|
54
|
+
},
|
|
55
|
+
],
|
|
56
|
+
stateMutability: "view",
|
|
57
|
+
type: "function",
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
inputs: [],
|
|
61
|
+
name: "blockCycleNumerator",
|
|
62
|
+
outputs: [
|
|
63
|
+
{
|
|
64
|
+
internalType: "uint16",
|
|
65
|
+
name: "",
|
|
66
|
+
type: "uint16",
|
|
67
|
+
},
|
|
68
|
+
],
|
|
69
|
+
stateMutability: "view",
|
|
70
|
+
type: "function",
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
inputs: [
|
|
74
|
+
{
|
|
75
|
+
internalType: "address",
|
|
76
|
+
name: "market",
|
|
77
|
+
type: "address",
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
internalType: "uint32",
|
|
81
|
+
name: "duration",
|
|
82
|
+
type: "uint32",
|
|
83
|
+
},
|
|
84
|
+
],
|
|
85
|
+
name: "getOracleState",
|
|
86
|
+
outputs: [
|
|
87
|
+
{
|
|
88
|
+
internalType: "bool",
|
|
89
|
+
name: "increaseCardinalityRequired",
|
|
90
|
+
type: "bool",
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
internalType: "uint16",
|
|
94
|
+
name: "cardinalityRequired",
|
|
95
|
+
type: "uint16",
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
internalType: "bool",
|
|
99
|
+
name: "oldestObservationSatisfied",
|
|
100
|
+
type: "bool",
|
|
101
|
+
},
|
|
102
|
+
],
|
|
103
|
+
stateMutability: "view",
|
|
104
|
+
type: "function",
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
inputs: [
|
|
108
|
+
{
|
|
109
|
+
internalType: "address",
|
|
110
|
+
name: "market",
|
|
111
|
+
type: "address",
|
|
112
|
+
},
|
|
113
|
+
{
|
|
114
|
+
internalType: "uint32",
|
|
115
|
+
name: "duration",
|
|
116
|
+
type: "uint32",
|
|
117
|
+
},
|
|
118
|
+
],
|
|
119
|
+
name: "getPtToAssetRate",
|
|
120
|
+
outputs: [
|
|
121
|
+
{
|
|
122
|
+
internalType: "uint256",
|
|
123
|
+
name: "ptToAssetRate",
|
|
124
|
+
type: "uint256",
|
|
125
|
+
},
|
|
126
|
+
],
|
|
127
|
+
stateMutability: "view",
|
|
128
|
+
type: "function",
|
|
129
|
+
},
|
|
130
|
+
];
|
|
131
|
+
|
|
132
|
+
const _bytecode =
|
|
133
|
+
"0x60a060405234801561001057600080fd5b50604051610ed6380380610ed683398101604081905261002f91610094565b61ffff811660808190526103e8111561008e5760405162461bcd60e51b815260206004820152601c60248201527f496e76616c696420626c6f636b2072617465206e756d657261746f7200000000604482015260640160405180910390fd5b506100bf565b6000602082840312156100a657600080fd5b815161ffff811681146100b857600080fd5b9392505050565b608051610df66100e060003960008181605601526102c80152610df66000f3fe608060405234801561001057600080fd5b506004361061004c5760003560e01c806358f6e5a114610051578063873e960014610090578063abca0eab146100c5578063fa040f64146100e6575b600080fd5b6100787f000000000000000000000000000000000000000000000000000000000000000081565b60405161ffff90911681526020015b60405180910390f35b6100a361009e3660046109e5565b6100ef565b60408051931515845261ffff9092166020840152151590820152606001610087565b6100d86100d33660046109e5565b6102a4565b604051908152602001610087565b6100786103e881565b600080600080600080876001600160a01b031663c3fb90d66040518163ffffffff1660e01b815260040160c060405180830381865afa158015610136573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061015a9190610a53565b95509550955050505061016c876102c0565b61ffff80821690831610965094506000806001600160a01b038a1663252c09d785610198886001610aec565b6101a29190610b24565b6040516001600160e01b031960e084901b16815261ffff9091166004820152602401606060405180830381865afa1580156101e1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102059190610b5c565b92505091508061027e5760405163252c09d760e01b8152600060048201526001600160a01b038b169063252c09d790602401606060405180830381865afa158015610254573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102789190610b5c565b50909250505b61028e63ffffffff8a1642610baa565b8263ffffffff1610955050505050509250925092565b60006102b96001600160a01b03841683610344565b9392505050565b60008061ffff7f0000000000000000000000000000000000000000000000000000000000000000166102f46103e885610bbd565b6102fe9190610be5565b905061ffff63ffffffff8216111561033e57604051632212b64b60e21b815263ffffffff8085166004830152821660248201526044015b60405180910390fd5b92915050565b600080836001600160a01b031663e184c9be6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610385573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906103a99190610c08565b90504281116103c357670de0b6b3a764000091505061033e565b60006103cf858561040a565b905060006103dd4284610baa565b905060006103eb8383610531565b90506103ff670de0b6b3a764000082610572565b979650505050505050565b60408051600280825260608201835260009283929190602083019080368337019050509050828160008151811061044357610443610c37565b63ffffffff9092166020928302919091019091015260405163883bdbfd60e01b81526000906001600160a01b0386169063883bdbfd90610487908590600401610c4d565b600060405180830381865afa1580156104a4573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526104cc9190810190610c97565b90508363ffffffff16816000815181106104e8576104e8610c37565b60200260200101518260018151811061050357610503610c37565b60200260200101516105159190610d5b565b61051f9190610d7b565b6001600160d81b031695945050505050565b6000806105436201518061016d610d95565b61054d8486610d95565b6105579190610dac565b905061056a610565826105a1565b6105bb565b949350505050565b600080610587670de0b6b3a764000085610d95565b905082818161059857610598610b0e565b04949350505050565b60006001600160ff1b038211156105b757600080fd5b5090565b6000680238fd42c5cf03ffff1982121580156105e0575068070c1cc73b00c800008213155b61061f5760405162461bcd60e51b815260206004820152601060248201526f125b9d985b1a5908195e1c1bdb995b9d60821b6044820152606401610335565b600082121561065757610634826000036105bb565b6a0c097ce7bc90715b34b9f160241b8161065057610650610b0e565b0592915050565b60006806f05b59d3b2000000831261069557506806f05b59d3b1ffffff199091019072195e54c5dd42177f53a27172fa9ec63026282760241b6106cb565b6803782dace9d900000083126106c757506803782dace9d8ffffff19909101906b1425982cf597cd205cef73806106cb565b5060015b6064929092029168056bc75e2d6310000068ad78ebc5ac62000000841261071b5768ad78ebc5ac61ffffff199093019268056bc75e2d631000006e01855144814a7ff805980ff008400082020590505b6856bc75e2d6310000008412610757576856bc75e2d630ffffff199093019268056bc75e2d631000006b02df0ab5a80a22c61ab5a70082020590505b682b5e3af16b18800000841261079157682b5e3af16b187fffff199093019268056bc75e2d63100000693f1fce3da636ea5cf85082020590505b6815af1d78b58c40000084126107cb576815af1d78b58c3fffff199093019268056bc75e2d63100000690127fa27722cc06cc5e282020590505b680ad78ebc5ac6200000841261080457680ad78ebc5ac61fffff199093019268056bc75e2d6310000068280e60114edb805d0382020590505b68056bc75e2d63100000841261083d5768056bc75e2d630fffff199093019268056bc75e2d63100000680ebc5fb4174612111082020590505b6802b5e3af16b18800008412610876576802b5e3af16b187ffff199093019268056bc75e2d631000006808f00f760a4b2db55d82020590505b68015af1d78b58c4000084126108af5768015af1d78b58c3ffff199093019268056bc75e2d631000006806f5f177578893793782020590505b68056bc75e2d631000008481019085906002908280020505918201919050600368056bc75e2d631000008783020505918201919050600468056bc75e2d631000008783020505918201919050600568056bc75e2d631000008783020505918201919050600668056bc75e2d631000008783020505918201919050600768056bc75e2d631000008783020505918201919050600868056bc75e2d631000008783020505918201919050600968056bc75e2d631000008783020505918201919050600a68056bc75e2d631000008783020505918201919050600b68056bc75e2d631000008783020505918201919050600c68056bc75e2d631000008783020505918201919050606468056bc75e2d63100000848402058502059695505050505050565b63ffffffff811681146109e257600080fd5b50565b600080604083850312156109f857600080fd5b82356001600160a01b0381168114610a0f57600080fd5b91506020830135610a1f816109d0565b809150509250929050565b8051600f81900b8114610a3c57600080fd5b919050565b805161ffff81168114610a3c57600080fd5b60008060008060008060c08789031215610a6c57600080fd5b610a7587610a2a565b9550610a8360208801610a2a565b60408801519095506001600160601b0381168114610aa057600080fd5b9350610aae60608801610a41565b9250610abc60808801610a41565b9150610aca60a08801610a41565b90509295509295509295565b634e487b7160e01b600052601160045260246000fd5b61ffff818116838216019080821115610b0757610b07610ad6565b5092915050565b634e487b7160e01b600052601260045260246000fd5b600061ffff80841680610b3957610b39610b0e565b92169190910692915050565b80516001600160d81b0381168114610a3c57600080fd5b600080600060608486031215610b7157600080fd5b8351610b7c816109d0565b9250610b8a60208501610b45565b915060408401518015158114610b9f57600080fd5b809150509250925092565b8181038181111561033e5761033e610ad6565b63ffffffff818116838216028082169190828114610bdd57610bdd610ad6565b505092915050565b600063ffffffff80841680610bfc57610bfc610b0e565b92169190910492915050565b600060208284031215610c1a57600080fd5b5051919050565b634e487b7160e01b600052604160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b6020808252825182820181905260009190848201906040850190845b81811015610c8b57835163ffffffff1683529284019291840191600101610c69565b50909695505050505050565b60006020808385031215610caa57600080fd5b82516001600160401b0380821115610cc157600080fd5b818501915085601f830112610cd557600080fd5b815181811115610ce757610ce7610c21565b8060051b604051601f19603f83011681018181108582111715610d0c57610d0c610c21565b604052918252848201925083810185019188831115610d2a57600080fd5b938501935b82851015610d4f57610d4085610b45565b84529385019392850192610d2f565b98975050505050505050565b6001600160d81b03828116828216039080821115610b0757610b07610ad6565b60006001600160d81b0383811680610bfc57610bfc610b0e565b808202811582820484141761033e5761033e610ad6565b600082610dbb57610dbb610b0e565b50049056fea2646970667358221220b061b8d6b02a0cd9466192b792e05df8cabfe996fa13f04d4c5805552894ad1764736f6c63430008110033";
|
|
134
|
+
|
|
135
|
+
type PendlePtOracleConstructorParams =
|
|
136
|
+
| [signer?: Signer]
|
|
137
|
+
| ConstructorParameters<typeof ContractFactory>;
|
|
138
|
+
|
|
139
|
+
const isSuperArgs = (
|
|
140
|
+
xs: PendlePtOracleConstructorParams
|
|
141
|
+
): xs is ConstructorParameters<typeof ContractFactory> => xs.length > 1;
|
|
142
|
+
|
|
143
|
+
export class PendlePtOracle__factory extends ContractFactory {
|
|
144
|
+
constructor(...args: PendlePtOracleConstructorParams) {
|
|
145
|
+
if (isSuperArgs(args)) {
|
|
146
|
+
super(...args);
|
|
147
|
+
} else {
|
|
148
|
+
super(_abi, _bytecode, args[0]);
|
|
149
|
+
}
|
|
150
|
+
this.contractName = "PendlePtOracle";
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
deploy(
|
|
154
|
+
_blockCycleNumerator: BigNumberish,
|
|
155
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
156
|
+
): Promise<PendlePtOracle> {
|
|
157
|
+
return super.deploy(
|
|
158
|
+
_blockCycleNumerator,
|
|
159
|
+
overrides || {}
|
|
160
|
+
) as Promise<PendlePtOracle>;
|
|
161
|
+
}
|
|
162
|
+
getDeployTransaction(
|
|
163
|
+
_blockCycleNumerator: BigNumberish,
|
|
164
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
165
|
+
): TransactionRequest {
|
|
166
|
+
return super.getDeployTransaction(_blockCycleNumerator, overrides || {});
|
|
167
|
+
}
|
|
168
|
+
attach(address: string): PendlePtOracle {
|
|
169
|
+
return super.attach(address) as PendlePtOracle;
|
|
170
|
+
}
|
|
171
|
+
connect(signer: Signer): PendlePtOracle__factory {
|
|
172
|
+
return super.connect(signer) as PendlePtOracle__factory;
|
|
173
|
+
}
|
|
174
|
+
static readonly contractName: "PendlePtOracle";
|
|
175
|
+
public readonly contractName: "PendlePtOracle";
|
|
176
|
+
static readonly bytecode = _bytecode;
|
|
177
|
+
static readonly abi = _abi;
|
|
178
|
+
static createInterface(): PendlePtOracleInterface {
|
|
179
|
+
return new utils.Interface(_abi) as PendlePtOracleInterface;
|
|
180
|
+
}
|
|
181
|
+
static connect(
|
|
182
|
+
address: string,
|
|
183
|
+
signerOrProvider: Signer | Provider
|
|
184
|
+
): PendlePtOracle {
|
|
185
|
+
return new Contract(address, _abi, signerOrProvider) as PendlePtOracle;
|
|
186
|
+
}
|
|
187
|
+
}
|
|
@@ -0,0 +1,228 @@
|
|
|
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
|
+
PendlePtUsdChainlinkOracle,
|
|
15
|
+
PendlePtUsdChainlinkOracleInterface,
|
|
16
|
+
} from "../PendlePtUsdChainlinkOracle";
|
|
17
|
+
|
|
18
|
+
const _abi = [
|
|
19
|
+
{
|
|
20
|
+
inputs: [
|
|
21
|
+
{
|
|
22
|
+
internalType: "address",
|
|
23
|
+
name: "_ptOracle",
|
|
24
|
+
type: "address",
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
internalType: "uint32",
|
|
28
|
+
name: "_twapDuration",
|
|
29
|
+
type: "uint32",
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
internalType: "address",
|
|
33
|
+
name: "_market",
|
|
34
|
+
type: "address",
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
internalType: "address",
|
|
38
|
+
name: "_feed",
|
|
39
|
+
type: "address",
|
|
40
|
+
},
|
|
41
|
+
],
|
|
42
|
+
stateMutability: "nonpayable",
|
|
43
|
+
type: "constructor",
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
inputs: [
|
|
47
|
+
{
|
|
48
|
+
internalType: "bool",
|
|
49
|
+
name: "increaseCardinalityRequired",
|
|
50
|
+
type: "bool",
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
internalType: "bool",
|
|
54
|
+
name: "oldestObservationSatisfied",
|
|
55
|
+
type: "bool",
|
|
56
|
+
},
|
|
57
|
+
],
|
|
58
|
+
name: "OracleNotReady",
|
|
59
|
+
type: "error",
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
inputs: [],
|
|
63
|
+
name: "decimals",
|
|
64
|
+
outputs: [
|
|
65
|
+
{
|
|
66
|
+
internalType: "uint8",
|
|
67
|
+
name: "",
|
|
68
|
+
type: "uint8",
|
|
69
|
+
},
|
|
70
|
+
],
|
|
71
|
+
stateMutability: "pure",
|
|
72
|
+
type: "function",
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
inputs: [],
|
|
76
|
+
name: "feed",
|
|
77
|
+
outputs: [
|
|
78
|
+
{
|
|
79
|
+
internalType: "address",
|
|
80
|
+
name: "",
|
|
81
|
+
type: "address",
|
|
82
|
+
},
|
|
83
|
+
],
|
|
84
|
+
stateMutability: "view",
|
|
85
|
+
type: "function",
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
inputs: [],
|
|
89
|
+
name: "feedDecimals",
|
|
90
|
+
outputs: [
|
|
91
|
+
{
|
|
92
|
+
internalType: "uint8",
|
|
93
|
+
name: "",
|
|
94
|
+
type: "uint8",
|
|
95
|
+
},
|
|
96
|
+
],
|
|
97
|
+
stateMutability: "view",
|
|
98
|
+
type: "function",
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
inputs: [],
|
|
102
|
+
name: "getPtPrice",
|
|
103
|
+
outputs: [
|
|
104
|
+
{
|
|
105
|
+
internalType: "uint256",
|
|
106
|
+
name: "",
|
|
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: "ptOracle",
|
|
129
|
+
outputs: [
|
|
130
|
+
{
|
|
131
|
+
internalType: "address",
|
|
132
|
+
name: "",
|
|
133
|
+
type: "address",
|
|
134
|
+
},
|
|
135
|
+
],
|
|
136
|
+
stateMutability: "view",
|
|
137
|
+
type: "function",
|
|
138
|
+
},
|
|
139
|
+
{
|
|
140
|
+
inputs: [],
|
|
141
|
+
name: "twapDuration",
|
|
142
|
+
outputs: [
|
|
143
|
+
{
|
|
144
|
+
internalType: "uint32",
|
|
145
|
+
name: "",
|
|
146
|
+
type: "uint32",
|
|
147
|
+
},
|
|
148
|
+
],
|
|
149
|
+
stateMutability: "view",
|
|
150
|
+
type: "function",
|
|
151
|
+
},
|
|
152
|
+
];
|
|
153
|
+
|
|
154
|
+
const _bytecode =
|
|
155
|
+
"0x61012060405234801561001157600080fd5b5060405161088c38038061088c833981016040819052610030916101a1565b6001600160a01b0380851660805263ffffffff841660a05282811660c052811660e08190526040805163313ce56760e01b8152905163313ce567916004808201926020929091908290030181865afa158015610090573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906100b49190610200565b60ff166101005260c05160a05160405162439f4b60e91b81526001600160a01b03928316600482015263ffffffff909116602482015260009182919087169063873e960090604401606060405180830381865afa158015610119573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061013d919061023a565b9250509150818061014c575080155b1561017a5760405163685ddbe760e11b81528215156004820152811515602482015260440160405180910390fd5b505050505050610286565b80516001600160a01b038116811461019c57600080fd5b919050565b600080600080608085870312156101b757600080fd5b6101c085610185565b9350602085015163ffffffff811681146101d957600080fd5b92506101e760408601610185565b91506101f560608601610185565b905092959194509250565b60006020828403121561021257600080fd5b815160ff8116811461022357600080fd5b9392505050565b8051801515811461019c57600080fd5b60008060006060848603121561024f57600080fd5b6102588461022a565b9250602084015161ffff8116811461026f57600080fd5b915061027d6040850161022a565b90509250925092565b60805160a05160c05160e051610100516105936102f9600039600081816101700152818161032a01528181610358015261039b01526000818161010c01526102a401526000818161013301526101a901526000818160bb01526101d10152600081816077015261020201526105936000f3fe608060405234801561001057600080fd5b506004361061006d5760003560e01c806305d7b9a21461007257806326d89545146100b6578063313ce567146100f257806337a7b7d81461010757806380f556051461012e578063bc3ff1dc14610155578063c23953d01461016b575b600080fd5b6100997f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b0390911681526020015b60405180910390f35b6100dd7f000000000000000000000000000000000000000000000000000000000000000081565b60405163ffffffff90911681526020016100ad565b60125b60405160ff90911681526020016100ad565b6100997f000000000000000000000000000000000000000000000000000000000000000081565b6100997f000000000000000000000000000000000000000000000000000000000000000081565b61015d610192565b6040519081526020016100ad565b6100f57f000000000000000000000000000000000000000000000000000000000000000081565b60405163abca0eab60e01b81526001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000811660048301527f000000000000000000000000000000000000000000000000000000000000000063ffffffff16602483015260009182917f0000000000000000000000000000000000000000000000000000000000000000169063abca0eab90604401602060405180830381865afa158015610249573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061026d91906103dc565b9050600061027961029f565b9050670de0b6b3a764000061028e838361040b565b6102989190610428565b9250505090565b6000807f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166350d25bcd6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610300573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061032491906103dc565b905060127f000000000000000000000000000000000000000000000000000000000000000060ff16106103965761037c60127f000000000000000000000000000000000000000000000000000000000000000061044a565b61038790600a610547565b6103919082610428565b6103d6565b6103c17f0000000000000000000000000000000000000000000000000000000000000000601261044a565b6103cc90600a610547565b6103d6908261040b565b91505090565b6000602082840312156103ee57600080fd5b5051919050565b634e487b7160e01b600052601160045260246000fd5b8082028115828204841417610422576104226103f5565b92915050565b60008261044557634e487b7160e01b600052601260045260246000fd5b500490565b60ff8281168282160390811115610422576104226103f5565b600181815b8085111561049e578160001904821115610484576104846103f5565b8085161561049157918102915b93841c9390800290610468565b509250929050565b6000826104b557506001610422565b816104c257506000610422565b81600181146104d857600281146104e2576104fe565b6001915050610422565b60ff8411156104f3576104f36103f5565b50506001821b610422565b5060208310610133831016604e8410600b8410161715610521575081810a610422565b61052b8383610463565b806000190482111561053f5761053f6103f5565b029392505050565b600061055660ff8416836104a6565b939250505056fea26469706673582212202aceccee83f0e503008dc8c66466468ae93d4f0a374c4cb4218dc33e017b5c1664736f6c63430008110033";
|
|
156
|
+
|
|
157
|
+
type PendlePtUsdChainlinkOracleConstructorParams =
|
|
158
|
+
| [signer?: Signer]
|
|
159
|
+
| ConstructorParameters<typeof ContractFactory>;
|
|
160
|
+
|
|
161
|
+
const isSuperArgs = (
|
|
162
|
+
xs: PendlePtUsdChainlinkOracleConstructorParams
|
|
163
|
+
): xs is ConstructorParameters<typeof ContractFactory> => xs.length > 1;
|
|
164
|
+
|
|
165
|
+
export class PendlePtUsdChainlinkOracle__factory extends ContractFactory {
|
|
166
|
+
constructor(...args: PendlePtUsdChainlinkOracleConstructorParams) {
|
|
167
|
+
if (isSuperArgs(args)) {
|
|
168
|
+
super(...args);
|
|
169
|
+
} else {
|
|
170
|
+
super(_abi, _bytecode, args[0]);
|
|
171
|
+
}
|
|
172
|
+
this.contractName = "PendlePtUsdChainlinkOracle";
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
deploy(
|
|
176
|
+
_ptOracle: string,
|
|
177
|
+
_twapDuration: BigNumberish,
|
|
178
|
+
_market: string,
|
|
179
|
+
_feed: string,
|
|
180
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
181
|
+
): Promise<PendlePtUsdChainlinkOracle> {
|
|
182
|
+
return super.deploy(
|
|
183
|
+
_ptOracle,
|
|
184
|
+
_twapDuration,
|
|
185
|
+
_market,
|
|
186
|
+
_feed,
|
|
187
|
+
overrides || {}
|
|
188
|
+
) as Promise<PendlePtUsdChainlinkOracle>;
|
|
189
|
+
}
|
|
190
|
+
getDeployTransaction(
|
|
191
|
+
_ptOracle: string,
|
|
192
|
+
_twapDuration: BigNumberish,
|
|
193
|
+
_market: string,
|
|
194
|
+
_feed: string,
|
|
195
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
196
|
+
): TransactionRequest {
|
|
197
|
+
return super.getDeployTransaction(
|
|
198
|
+
_ptOracle,
|
|
199
|
+
_twapDuration,
|
|
200
|
+
_market,
|
|
201
|
+
_feed,
|
|
202
|
+
overrides || {}
|
|
203
|
+
);
|
|
204
|
+
}
|
|
205
|
+
attach(address: string): PendlePtUsdChainlinkOracle {
|
|
206
|
+
return super.attach(address) as PendlePtUsdChainlinkOracle;
|
|
207
|
+
}
|
|
208
|
+
connect(signer: Signer): PendlePtUsdChainlinkOracle__factory {
|
|
209
|
+
return super.connect(signer) as PendlePtUsdChainlinkOracle__factory;
|
|
210
|
+
}
|
|
211
|
+
static readonly contractName: "PendlePtUsdChainlinkOracle";
|
|
212
|
+
public readonly contractName: "PendlePtUsdChainlinkOracle";
|
|
213
|
+
static readonly bytecode = _bytecode;
|
|
214
|
+
static readonly abi = _abi;
|
|
215
|
+
static createInterface(): PendlePtUsdChainlinkOracleInterface {
|
|
216
|
+
return new utils.Interface(_abi) as PendlePtUsdChainlinkOracleInterface;
|
|
217
|
+
}
|
|
218
|
+
static connect(
|
|
219
|
+
address: string,
|
|
220
|
+
signerOrProvider: Signer | Provider
|
|
221
|
+
): PendlePtUsdChainlinkOracle {
|
|
222
|
+
return new Contract(
|
|
223
|
+
address,
|
|
224
|
+
_abi,
|
|
225
|
+
signerOrProvider
|
|
226
|
+
) as PendlePtUsdChainlinkOracle;
|
|
227
|
+
}
|
|
228
|
+
}
|