@pendle/core-v2 5.6.0 → 5.7.0
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/GaugeController/PendleGaugeControllerBaseUpg.sol/PendleGaugeControllerBaseUpg.dbg.json +1 -1
- package/build/artifacts/contracts/LiquidityMining/GaugeController/PendleGaugeControllerMainchainUpg.sol/PendleGaugeControllerMainchainUpg.dbg.json +1 -1
- package/build/artifacts/contracts/LiquidityMining/GaugeController/PendleGaugeControllerMainchainUpg.sol/PendleGaugeControllerMainchainUpg.json +2 -2
- package/build/artifacts/contracts/LiquidityMining/GaugeController/PendleGaugeControllerSidechainUpg.sol/PendleGaugeControllerSidechainUpg.dbg.json +1 -1
- package/build/artifacts/contracts/LiquidityMining/GaugeController/PendleGaugeControllerSidechainUpg.sol/PendleGaugeControllerSidechainUpg.json +2 -2
- package/build/artifacts/contracts/LiquidityMining/VeDistributor/PendleFeeDistributor.sol/PendleFeeDistributor.dbg.json +1 -1
- package/build/artifacts/contracts/LiquidityMining/VeDistributor/PendleFeeDistributor.sol/PendleFeeDistributor.json +2 -2
- package/build/artifacts/contracts/LiquidityMining/VotingController/PendleVotingControllerUpg.sol/PendleVotingControllerUpg.dbg.json +1 -1
- package/build/artifacts/contracts/LiquidityMining/VotingController/PendleVotingControllerUpg.sol/PendleVotingControllerUpg.json +2 -2
- package/build/artifacts/contracts/LiquidityMining/VotingController/VotingControllerStorageUpg.sol/VotingControllerStorageUpg.dbg.json +1 -1
- package/build/artifacts/contracts/LiquidityMining/VotingEscrow/VotingEscrowPendleMainchain.sol/VotingEscrowPendleMainchain.dbg.json +1 -1
- package/build/artifacts/contracts/LiquidityMining/VotingEscrow/VotingEscrowPendleMainchain.sol/VotingEscrowPendleMainchain.json +2 -2
- package/build/artifacts/contracts/LiquidityMining/VotingEscrow/VotingEscrowPendleSidechain.sol/VotingEscrowPendleSidechain.dbg.json +1 -1
- package/build/artifacts/contracts/LiquidityMining/VotingEscrow/VotingEscrowPendleSidechain.sol/VotingEscrowPendleSidechain.json +2 -2
- package/build/artifacts/contracts/LiquidityMining/VotingEscrow/VotingEscrowTokenBase.sol/VotingEscrowTokenBase.dbg.json +1 -1
- package/build/artifacts/contracts/LiquidityMining/libraries/VeBalanceLib.sol/VeBalanceLib.dbg.json +1 -1
- package/build/artifacts/contracts/LiquidityMining/libraries/VeBalanceLib.sol/VeBalanceLib.json +2 -2
- package/build/artifacts/contracts/LiquidityMining/libraries/VeHistoryLib.sol/CheckpointHelper.dbg.json +1 -1
- package/build/artifacts/contracts/LiquidityMining/libraries/VeHistoryLib.sol/CheckpointHelper.json +2 -2
- package/build/artifacts/contracts/LiquidityMining/libraries/VeHistoryLib.sol/Checkpoints.dbg.json +1 -1
- package/build/artifacts/contracts/LiquidityMining/libraries/VeHistoryLib.sol/Checkpoints.json +2 -2
- package/build/artifacts/contracts/core/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/PendleGauge.sol/PendleGauge.dbg.json +1 -1
- package/build/artifacts/contracts/core/Market/v1/PendleMarket.sol/PendleMarket.dbg.json +1 -1
- package/build/artifacts/contracts/core/Market/v1/PendleMarket.sol/PendleMarket.json +2 -2
- package/build/artifacts/contracts/core/Market/v1/PendleMarketFactory.sol/PendleMarketFactory.dbg.json +1 -1
- package/build/artifacts/contracts/core/Market/v1/PendleMarketFactory.sol/PendleMarketFactory.json +2 -2
- package/build/artifacts/contracts/core/Market/v3/PendleMarketFactoryV3.sol/PendleMarketFactoryV3.dbg.json +1 -1
- package/build/artifacts/contracts/core/Market/v3/PendleMarketFactoryV3.sol/PendleMarketFactoryV3.json +2 -2
- package/build/artifacts/contracts/core/Market/v3/PendleMarketV3.sol/PendleMarketV3.dbg.json +1 -1
- package/build/artifacts/contracts/core/Market/v3/PendleMarketV3.sol/PendleMarketV3.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/YieldContracts/InterestManagerYT.sol/InterestManagerYT.dbg.json +1 -1
- 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/libraries/math/PMath.sol/PMath.dbg.json +1 -1
- package/build/artifacts/contracts/core/libraries/math/PMath.sol/PMath.json +2 -2
- package/build/artifacts/contracts/interfaces/IOwnable.sol/IOwnable.dbg.json +4 -0
- package/build/artifacts/contracts/interfaces/IOwnable.sol/IOwnable.json +34 -0
- package/build/artifacts/contracts/interfaces/IPActionAddRemoveLiqV3.sol/IPActionAddRemoveLiqV3.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPActionCallbackV3.sol/IPActionCallbackV3.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPActionMarketAuxStatic.sol/IPActionMarketAuxStatic.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPActionMarketCoreStatic.sol/IPActionMarketCoreStatic.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPActionMiscV3.sol/IPActionMiscV3.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPActionSimple.sol/IPActionSimple.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPActionStorageStatic.sol/IPActionStorageStatic.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPActionStorageV4.sol/IPActionStorageV4.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPActionSwapPTV3.sol/IPActionSwapPTV3.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPActionSwapYTV3.sol/IPActionSwapYTV3.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPAllActionV3.sol/IPAllActionV3.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPAllEventsV3.sol/IPActionAddRemoveLiqV3Events.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPAllEventsV3.sol/IPActionMiscV3Events.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPAllEventsV3.sol/IPActionStorageEvents.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPAllEventsV3.sol/IPActionSwapPTV3Events.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPAllEventsV3.sol/IPActionSwapYTV3Events.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPAllEventsV3.sol/IPAllEventsV3.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPCommonSYFactory.sol/IPCommonSYFactory.dbg.json +4 -0
- package/build/artifacts/contracts/interfaces/IPCommonSYFactory.sol/IPCommonSYFactory.json +40 -0
- package/build/artifacts/contracts/interfaces/IPLimitRouter.sol/IPLimitOrderType.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPLimitRouter.sol/IPLimitRouter.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPLimitRouter.sol/IPLimitRouterCallback.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPMarket.sol/IPMarket.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPMarketV3.sol/IPMarketV3.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPPoolDeployHelperV2.sol/IPPoolDeployHelperV2.dbg.json +4 -0
- package/build/artifacts/contracts/interfaces/IPPoolDeployHelperV2.sol/IPPoolDeployHelperV2.json +162 -0
- package/build/artifacts/contracts/interfaces/IPRouterStatic.sol/IPRouterStatic.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPVotingController.sol/IPVotingController.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPVotingEscrowMainchain.sol/IPVotingEscrowMainchain.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPendleCommonPoolDeployHelperV2.sol/IPendleCommonPoolDeployHelperV2.dbg.json +4 -0
- package/build/artifacts/contracts/interfaces/IPendleCommonPoolDeployHelperV2.sol/IPendleCommonPoolDeployHelperV2.json +426 -0
- package/build/artifacts/contracts/limit/LimitMathCore.sol/LimitMathCore.dbg.json +1 -1
- package/build/artifacts/contracts/limit/LimitMathCore.sol/LimitMathCore.json +2 -2
- package/build/artifacts/contracts/limit/LimitRouterBase.sol/LimitRouterBase.dbg.json +1 -1
- package/build/artifacts/contracts/limit/PendleLimitRouter.sol/PendleLimitRouter.dbg.json +1 -1
- package/build/artifacts/contracts/limit/PendleLimitRouter.sol/PendleLimitRouter.json +2 -2
- package/build/artifacts/contracts/offchain-helpers/Broadcaster.sol/Broadcaster.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/Broadcaster.sol/Broadcaster.json +2 -2
- package/build/artifacts/contracts/offchain-helpers/LimitBackendHelper.sol/LimitBackendHelper.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/LimitBackendHelper.sol/LimitBackendHelper.json +2 -2
- package/build/artifacts/contracts/offchain-helpers/PendleExchangeRateOracle.sol/PendleExchangeRateOracle.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/PendleExchangeRateOracle.sol/PendleExchangeRateOracle.json +2 -2
- package/build/artifacts/contracts/offchain-helpers/deploy/PendleCommonPoolDeployHelperV2.sol/PendleCommonPoolDeployHelperV2.dbg.json +4 -0
- package/build/artifacts/contracts/offchain-helpers/deploy/PendleCommonPoolDeployHelperV2.sol/PendleCommonPoolDeployHelperV2.json +651 -0
- package/build/artifacts/contracts/offchain-helpers/deploy/PendleCommonSYFactory.sol/PendleCommonSYFactory.dbg.json +4 -0
- package/build/artifacts/contracts/offchain-helpers/deploy/PendleCommonSYFactory.sol/PendleCommonSYFactory.json +329 -0
- package/build/artifacts/contracts/offchain-helpers/deploy/PendlePoolDeployHelper.sol/PendlePoolDeployHelper.dbg.json +4 -0
- package/build/artifacts/contracts/offchain-helpers/{PendlePoolDeployHelper.sol → deploy/PendlePoolDeployHelper.sol}/PendlePoolDeployHelper.json +3 -3
- package/build/artifacts/contracts/offchain-helpers/deploy/PendlePoolDeployHelperV2.sol/PendlePoolDeployHelperV2.dbg.json +4 -0
- package/build/artifacts/contracts/offchain-helpers/deploy/PendlePoolDeployHelperV2.sol/PendlePoolDeployHelperV2.json +235 -0
- package/build/artifacts/contracts/offchain-helpers/deploy/lib/MarketDeployLib.sol/MarketDeployLib.dbg.json +4 -0
- package/build/artifacts/contracts/offchain-helpers/deploy/lib/MarketDeployLib.sol/MarketDeployLib.json +10 -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/MarketApproxLibV1.sol/MarketApproxPtInLibV1.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/router-static/base/MarketApproxLibV1.sol/MarketApproxPtInLibV1.json +2 -2
- package/build/artifacts/contracts/offchain-helpers/router-static/base/MarketApproxLibV1.sol/MarketApproxPtOutLibV1.dbg.json +1 -1
- package/build/artifacts/contracts/offchain-helpers/router-static/base/MarketApproxLibV1.sol/MarketApproxPtOutLibV1.json +2 -2
- package/build/artifacts/contracts/offchain-helpers/router-static/base/StorageLayout.sol/StorageLayout.dbg.json +1 -1
- package/build/artifacts/contracts/oracles/PtYtLpOracle/PendleLpOracleLib.sol/PendleLpOracleLib.dbg.json +1 -1
- package/build/artifacts/contracts/oracles/PtYtLpOracle/PendleLpOracleLib.sol/PendleLpOracleLib.json +2 -2
- package/build/artifacts/contracts/oracles/PtYtLpOracle/PendlePYLpOracle.sol/PendlePYLpOracle.dbg.json +1 -1
- package/build/artifacts/contracts/oracles/PtYtLpOracle/PendlePYLpOracle.sol/PendlePYLpOracle.json +2 -2
- package/build/artifacts/contracts/oracles/PtYtLpOracle/PendlePYOracleLib.sol/PendlePYOracleLib.dbg.json +1 -1
- package/build/artifacts/contracts/oracles/PtYtLpOracle/PendlePYOracleLib.sol/PendlePYOracleLib.json +2 -2
- package/build/artifacts/contracts/oracles/PtYtLpOracle/chainlink/PendleChainlinkOracle.sol/PendleChainlinkOracle.dbg.json +1 -1
- package/build/artifacts/contracts/oracles/PtYtLpOracle/chainlink/PendleChainlinkOracle.sol/PendleChainlinkOracle.json +2 -2
- package/build/artifacts/contracts/oracles/PtYtLpOracle/chainlink/PendleChainlinkOracleFactory.sol/PendleChainlinkOracleFactory.dbg.json +1 -1
- package/build/artifacts/contracts/oracles/PtYtLpOracle/chainlink/PendleChainlinkOracleFactory.sol/PendleChainlinkOracleFactory.json +2 -2
- package/build/artifacts/contracts/oracles/PtYtLpOracle/chainlink/PendleChainlinkOracleWithQuote.sol/PendleChainlinkOracleWithQuote.dbg.json +1 -1
- package/build/artifacts/contracts/oracles/PtYtLpOracle/chainlink/PendleChainlinkOracleWithQuote.sol/PendleChainlinkOracleWithQuote.json +2 -2
- package/build/artifacts/contracts/oracles/PtYtLpOracle/samples/BoringLpSeller.sol/BoringLpSeller.dbg.json +1 -1
- package/build/artifacts/contracts/oracles/PtYtLpOracle/samples/BoringPYUsdChainlinkAssetOracle.sol/BoringPYUsdChainlinkAssetOracle.dbg.json +1 -1
- package/build/artifacts/contracts/oracles/PtYtLpOracle/samples/BoringPYUsdChainlinkAssetOracle.sol/BoringPYUsdChainlinkAssetOracle.json +2 -2
- package/build/artifacts/contracts/oracles/PtYtLpOracle/samples/BoringPYUsdChainlinkSYOracle.sol/BoringPYUsdChainlinkSYOracle.dbg.json +1 -1
- package/build/artifacts/contracts/oracles/PtYtLpOracle/samples/BoringPYUsdChainlinkSYOracle.sol/BoringPYUsdChainlinkSYOracle.json +2 -2
- package/build/artifacts/contracts/oracles/PtYtLpOracle/samples/BoringPtSeller.sol/BoringPtSeller.dbg.json +1 -1
- package/build/artifacts/contracts/oracles/internal/PendleBoringOneracle.sol/PendleBoringOneracle.dbg.json +1 -1
- package/build/artifacts/contracts/oracles/internal/PendleBoringOneracle.sol/PendleBoringOneracle.json +2 -2
- package/build/artifacts/contracts/oracles/internal/PendleBoringSolvBTCOneracle.sol/PendleBoringSolvBTCOneracle.dbg.json +1 -1
- package/build/artifacts/contracts/oracles/internal/PendleBoringSolvBTCOneracle.sol/PendleBoringSolvBTCOneracle.json +2 -2
- package/build/artifacts/contracts/oracles/internal/PendleRedStoneRateOracleAdapter.sol/PendleRedStoneRateOracleAdapter.dbg.json +1 -1
- package/build/artifacts/contracts/oracles/internal/PendleRedStoneRateOracleAdapter.sol/PendleRedStoneRateOracleAdapter.json +2 -2
- package/build/artifacts/contracts/oracles/internal/PendleSparkLinearDiscountOracleFactory.sol/PendleSparkLinearDiscountOracleFactory.dbg.json +1 -1
- package/build/artifacts/contracts/oracles/internal/PendleSparkLinearDiscountOracleFactory.sol/PendleSparkLinearDiscountOracleFactory.json +29 -5
- package/build/artifacts/contracts/router/ActionAddRemoveLiqV3.sol/ActionAddRemoveLiqV3.dbg.json +1 -1
- package/build/artifacts/contracts/router/ActionAddRemoveLiqV3.sol/ActionAddRemoveLiqV3.json +2 -2
- package/build/artifacts/contracts/router/ActionCallbackV3.sol/ActionCallbackV3.dbg.json +1 -1
- package/build/artifacts/contracts/router/ActionCallbackV3.sol/ActionCallbackV3.json +2 -2
- package/build/artifacts/contracts/router/ActionMiscV3.sol/ActionMiscV3.dbg.json +1 -1
- package/build/artifacts/contracts/router/ActionMiscV3.sol/ActionMiscV3.json +2 -2
- package/build/artifacts/contracts/router/ActionSimple.sol/ActionSimple.dbg.json +1 -1
- package/build/artifacts/contracts/router/ActionSimple.sol/ActionSimple.json +2 -2
- package/build/artifacts/contracts/router/ActionStorageV4.sol/ActionStorageV4.dbg.json +1 -1
- package/build/artifacts/contracts/router/ActionStorageV4.sol/ActionStorageV4.json +2 -2
- package/build/artifacts/contracts/router/ActionSwapPTV3.sol/ActionSwapPTV3.dbg.json +1 -1
- package/build/artifacts/contracts/router/ActionSwapPTV3.sol/ActionSwapPTV3.json +2 -2
- package/build/artifacts/contracts/router/ActionSwapYTV3.sol/ActionSwapYTV3.dbg.json +1 -1
- package/build/artifacts/contracts/router/ActionSwapYTV3.sol/ActionSwapYTV3.json +2 -2
- package/build/artifacts/contracts/router/PendleRouterV4.sol/PendleRouterV4.dbg.json +1 -1
- package/build/artifacts/contracts/router/PendleRouterV4.sol/PendleRouterV4.json +2 -2
- package/build/artifacts/contracts/router/Reflector.sol/Reflector.dbg.json +1 -1
- package/build/artifacts/contracts/router/Reflector.sol/Reflector.json +2 -2
- package/build/artifacts/contracts/router/base/ActionBase.sol/ActionBase.dbg.json +1 -1
- package/build/artifacts/contracts/router/base/ActionDelegateBase.sol/ActionDelegateBase.dbg.json +1 -1
- package/build/artifacts/contracts/router/base/ActionDelegateBase.sol/ActionDelegateBase.json +2 -2
- package/build/artifacts/contracts/router/math/ApproxStateLib.sol/ApproxStateLib.dbg.json +1 -1
- package/build/artifacts/contracts/router/math/ApproxStateLib.sol/ApproxStateLib.json +2 -2
- package/build/artifacts/contracts/router/math/MarketApproxEstimateLib.sol/MarketApproxEstimateLib.dbg.json +1 -1
- package/build/artifacts/contracts/router/math/MarketApproxEstimateLib.sol/MarketApproxEstimateLib.json +2 -2
- package/build/artifacts/contracts/router/math/MarketApproxLibOnchain.sol/MarketApproxPtInLibOnchain.dbg.json +1 -1
- package/build/artifacts/contracts/router/math/MarketApproxLibOnchain.sol/MarketApproxPtInLibOnchain.json +2 -2
- package/build/artifacts/contracts/router/math/MarketApproxLibOnchain.sol/MarketApproxPtOutLibOnchain.dbg.json +1 -1
- package/build/artifacts/contracts/router/math/MarketApproxLibOnchain.sol/MarketApproxPtOutLibOnchain.json +2 -2
- package/build/artifacts/contracts/router/math/MarketApproxLibV2.sol/MarketApproxPtInLibV2.dbg.json +1 -1
- package/build/artifacts/contracts/router/math/MarketApproxLibV2.sol/MarketApproxPtInLibV2.json +2 -2
- package/build/artifacts/contracts/router/math/MarketApproxLibV2.sol/MarketApproxPtOutLibV2.dbg.json +1 -1
- package/build/artifacts/contracts/router/math/MarketApproxLibV2.sol/MarketApproxPtOutLibV2.json +2 -2
- package/contracts/core/libraries/math/PMath.sol +5 -0
- package/contracts/interfaces/IOwnable.sol +6 -0
- package/contracts/interfaces/IPCommonSYFactory.sol +6 -0
- package/contracts/interfaces/IPPoolDeployHelperV2.sol +36 -0
- package/contracts/interfaces/IPendleCommonPoolDeployHelperV2.sol +30 -0
- package/contracts/offchain-helpers/deploy/PendleCommonPoolDeployHelperV2.sol +68 -0
- package/contracts/offchain-helpers/deploy/PendleCommonSYFactory.sol +67 -0
- package/contracts/offchain-helpers/{PendlePoolDeployHelper.sol → deploy/PendlePoolDeployHelper.sol} +5 -5
- package/contracts/offchain-helpers/deploy/PendlePoolDeployHelperV2.sol +159 -0
- package/contracts/offchain-helpers/deploy/lib/MarketDeployLib.sol +70 -0
- package/contracts/oracles/internal/PendleSparkLinearDiscountOracleFactory.sol +9 -2
- package/deployments/146-core.json +47 -0
- package/deployments/146-offchain-helper.json +6 -0
- package/package.json +1 -1
- package/typechain-types/BoringPYUsdChainlinkAssetOracle.ts +244 -0
- package/typechain-types/BoringPYUsdChainlinkSYOracle.ts +243 -0
- package/typechain-types/Broadcaster.ts +454 -0
- package/typechain-types/IOwnable.ts +114 -0
- package/typechain-types/IPActionMarketCoreStatic.ts +1974 -0
- package/typechain-types/IPCommonSYFactory.ts +111 -0
- package/typechain-types/IPMarket.ts +1045 -0
- package/typechain-types/IPMarketV3.ts +1068 -0
- package/typechain-types/IPPoolDeployHelperV2.ts +209 -0
- package/typechain-types/IPVotingController.ts +510 -0
- package/typechain-types/IPVotingEscrowMainchain.ts +461 -0
- package/typechain-types/IPendleCommonPoolDeployHelperV2.ts +391 -0
- package/typechain-types/InterestManagerYT.ts +120 -0
- package/typechain-types/PendleBoringOneracle.ts +87 -0
- package/typechain-types/PendleBoringSolvBTCOneracle.ts +87 -0
- package/typechain-types/PendleChainlinkOracle.ts +299 -0
- package/typechain-types/PendleChainlinkOracleFactory.ts +468 -0
- package/typechain-types/PendleChainlinkOracleWithQuote.ts +335 -0
- package/typechain-types/PendleCommonPoolDeployHelperV2.ts +698 -0
- package/typechain-types/PendleCommonSYFactory.ts +420 -0
- package/typechain-types/PendleExchangeRateOracle.ts +393 -0
- package/typechain-types/PendleFeeDistributor.ts +745 -0
- package/typechain-types/PendleGauge.ts +225 -0
- package/typechain-types/PendleGaugeControllerBaseUpg.ts +670 -0
- package/typechain-types/PendleGaugeControllerMainchainUpg.ts +758 -0
- package/typechain-types/PendleGaugeControllerSidechainUpg.ts +750 -0
- package/typechain-types/PendleMarket.ts +1207 -0
- package/typechain-types/PendleMarketFactory.ts +906 -0
- package/typechain-types/PendlePYLpOracle.ts +619 -0
- package/typechain-types/PendlePoolDeployHelperV2.ts +283 -0
- package/typechain-types/PendleRedStoneRateOracleAdapter.ts +133 -0
- package/typechain-types/PendleSparkLinearDiscountOracleFactory.ts +60 -18
- package/typechain-types/PendleVotingControllerUpg.ts +1621 -0
- package/typechain-types/PendleYieldContractFactory.ts +801 -0
- package/typechain-types/PendleYieldToken.ts +1107 -0
- package/typechain-types/RewardManager.ts +161 -0
- package/typechain-types/RewardManagerAbstract.ts +108 -0
- package/typechain-types/VotingControllerStorageUpg.ts +915 -0
- package/typechain-types/VotingEscrowPendleMainchain.ts +1045 -0
- package/typechain-types/VotingEscrowPendleSidechain.ts +558 -0
- package/typechain-types/VotingEscrowTokenBase.ts +252 -0
- package/typechain-types/factories/ActionAddRemoveLiqV3__factory.ts +1 -1
- package/typechain-types/factories/ActionCallbackV3__factory.ts +1 -1
- package/typechain-types/factories/ActionInfoStatic__factory.ts +1 -1
- package/typechain-types/factories/ActionMarketAuxStatic__factory.ts +1 -1
- package/typechain-types/factories/ActionMarketCoreStatic__factory.ts +1 -1
- package/typechain-types/factories/ActionMintRedeemStatic__factory.ts +1 -1
- package/typechain-types/factories/ActionMiscV3__factory.ts +1 -1
- package/typechain-types/factories/ActionSimple__factory.ts +1 -1
- package/typechain-types/factories/ActionStorageStatic__factory.ts +1 -1
- package/typechain-types/factories/ActionStorageV4__factory.ts +1 -1
- package/typechain-types/factories/ActionSwapPTV3__factory.ts +1 -1
- package/typechain-types/factories/ActionSwapYTV3__factory.ts +1 -1
- package/typechain-types/factories/ActionVePendleStatic__factory.ts +1 -1
- package/typechain-types/factories/BoringPYUsdChainlinkAssetOracle__factory.ts +269 -0
- package/typechain-types/factories/BoringPYUsdChainlinkSYOracle__factory.ts +267 -0
- package/typechain-types/factories/Broadcaster__factory.ts +311 -0
- package/typechain-types/factories/IOwnable__factory.ts +46 -0
- package/typechain-types/factories/IPActionMarketCoreStatic__factory.ts +1300 -0
- package/typechain-types/factories/IPCommonSYFactory__factory.ts +55 -0
- package/typechain-types/factories/IPMarketV3__factory.ts +845 -0
- package/typechain-types/factories/IPMarket__factory.ts +832 -0
- package/typechain-types/factories/IPPoolDeployHelperV2__factory.ts +181 -0
- package/typechain-types/factories/IPVotingController__factory.ts +363 -0
- package/typechain-types/factories/IPVotingEscrowMainchain__factory.ts +340 -0
- package/typechain-types/factories/IPendleCommonPoolDeployHelperV2__factory.ts +447 -0
- package/typechain-types/factories/InterestManagerYT__factory.ts +63 -0
- package/typechain-types/factories/LimitBackendHelper__factory.ts +1 -1
- package/typechain-types/factories/PendleBoringOneracle__factory.ts +81 -0
- package/typechain-types/factories/PendleBoringSolvBTCOneracle__factory.ts +83 -0
- package/typechain-types/factories/PendleChainlinkOracleFactory__factory.ts +405 -0
- package/typechain-types/factories/PendleChainlinkOracleWithQuote__factory.ts +341 -0
- package/typechain-types/factories/PendleChainlinkOracle__factory.ts +306 -0
- package/typechain-types/factories/PendleCommonPoolDeployHelperV2__factory.ts +728 -0
- package/typechain-types/factories/PendleCommonSYFactory__factory.ts +386 -0
- package/typechain-types/factories/PendleExchangeRateOracle__factory.ts +379 -0
- package/typechain-types/factories/PendleFeeDistributor__factory.ts +665 -0
- package/typechain-types/factories/PendleGaugeControllerBaseUpg__factory.ts +457 -0
- package/typechain-types/factories/PendleGaugeControllerMainchainUpg__factory.ts +620 -0
- package/typechain-types/factories/PendleGaugeControllerSidechainUpg__factory.ts +610 -0
- package/typechain-types/factories/PendleGauge__factory.ts +140 -0
- package/typechain-types/factories/PendleLimitRouter__factory.ts +1 -1
- package/typechain-types/factories/PendleMarketFactoryV3__factory.ts +1 -1
- package/typechain-types/factories/PendleMarketFactory__factory.ts +748 -0
- package/typechain-types/factories/PendleMarketV3__factory.ts +1 -1
- package/typechain-types/factories/PendleMarket__factory.ts +1212 -0
- package/typechain-types/factories/PendlePYLpOracle__factory.ts +475 -0
- package/typechain-types/factories/PendlePoolDeployHelperV2__factory.ts +308 -0
- package/typechain-types/factories/PendlePoolDeployHelper__factory.ts +1 -1
- package/typechain-types/factories/PendleRedStoneRateOracleAdapter__factory.ts +157 -0
- package/typechain-types/factories/PendleRouterStatic__factory.ts +1 -1
- package/typechain-types/factories/PendleRouterV4__factory.ts +1 -1
- package/typechain-types/factories/PendleSparkLinearDiscountOracleFactory__factory.ts +28 -4
- package/typechain-types/factories/PendleVotingControllerUpg__factory.ts +1278 -0
- package/typechain-types/factories/PendleYieldContractFactory__factory.ts +674 -0
- package/typechain-types/factories/PendleYieldToken__factory.ts +978 -0
- package/typechain-types/factories/Reflector__factory.ts +1 -1
- package/typechain-types/factories/RewardManagerAbstract__factory.ts +59 -0
- package/typechain-types/factories/RewardManager__factory.ts +89 -0
- package/typechain-types/factories/VotingControllerStorageUpg__factory.ts +700 -0
- package/typechain-types/factories/VotingEscrowPendleMainchain__factory.ts +856 -0
- package/typechain-types/factories/VotingEscrowPendleSidechain__factory.ts +455 -0
- package/typechain-types/factories/VotingEscrowTokenBase__factory.ts +162 -0
- package/typechain-types/hardhat.d.ts +72 -9
- package/typechain-types/index.ts +16 -2
- package/build/artifacts/contracts/offchain-helpers/PendlePoolDeployHelper.sol/PendlePoolDeployHelper.dbg.json +0 -4
|
@@ -94,7 +94,7 @@ const _abi = [
|
|
|
94
94
|
];
|
|
95
95
|
|
|
96
96
|
const _bytecode =
|
|
97
|
-
"
|
|
97
|
+
"0x60a060405234801561001057600080fd5b5060405161065738038061065783398101604081905261002f91610040565b6001600160a01b0316608052610070565b60006020828403121561005257600080fd5b81516001600160a01b038116811461006957600080fd5b9392505050565b6080516105cc61008b600039600061016501526105cc6000f3fe608060405234801561001057600080fd5b506004361061002b5760003560e01c8063180e394314610030575b600080fd5b61004361003e366004610406565b610059565b604051610050919061045d565b60405180910390f35b600061006d826001600160801b03166102d3565b6100955781604051637bf16ce960e11b815260040161008c919061045d565b60405180910390fd5b6001600160801b03821642106100c0578160405163d928003560e01b815260040161008c919061045d565b6100ce6303bfc40042610487565b826001600160801b031611156100f757604051632739a01960e11b815260040160405180910390fd5b61010462093a8042610487565b826001600160801b0316101561012d57604051630def6af560e21b815260040160405180910390fd5b60408051808201909152600080825260208201526040516332dad3cf60e21b81526001600160a01b03868116600483015260009182917f0000000000000000000000000000000000000000000000000000000000000000169063cb6b4f3c906024016040805180830381865afa1580156101ab573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906101cf919061049a565b604080518082019091526001600160801b0392831681529082166020820181905290945090861610159150610219905057604051631f8b0c5960e21b815260040160405180910390fd5b805160009061022890866104d4565b9050806001600160801b0316600003610254576040516323fbc14f60e11b815260040160405180910390fd5b600082602001518561026691906104fb565b90506000604051806040016040528088866000015161028591906104d4565b6001600160801b031681526020018386602001516102a391906104d4565b6001600160801b03169052905060006102bb826102e9565b90506102c68161033b565b9998505050505050505050565b60006102e262093a8083610531565b1592915050565b6040805180820190915260008082526020820152815161030e906303bfc40090610545565b6001600160801b0316602080830182905283015161032b9161056b565b6001600160801b03168152919050565b600061034682610363565b1561035357506000919050565b61035d8242610394565b92915050565b600081600001516001600160801b0316428360200151610383919061056b565b6001600160801b0316101592915050565b600082600001516001600160801b03168284602001516103b4919061056b565b6001600160801b031611156103cb5750600061035d565b8183602001516103db919061056b565b83516103e791906104fb565b9392505050565b6001600160801b038116811461040357600080fd5b50565b60008060006060848603121561041b57600080fd5b83356001600160a01b038116811461043257600080fd5b92506020840135610442816103ee565b91506040840135610452816103ee565b809150509250925092565b6001600160801b0391909116815260200190565b634e487b7160e01b600052601160045260246000fd5b8082018082111561035d5761035d610471565b600080604083850312156104ad57600080fd5b82516104b8816103ee565b60208401519092506104c9816103ee565b809150509250929050565b6001600160801b038181168382160190808211156104f4576104f4610471565b5092915050565b6001600160801b038281168282160390808211156104f4576104f4610471565b634e487b7160e01b600052601260045260246000fd5b6000826105405761054061051b565b500690565b60006001600160801b038381168061055f5761055f61051b565b92169190910492915050565b6001600160801b0381811683821602808216919082811461058e5761058e610471565b50509291505056fea2646970667358221220e9f268f88f7c5499cfd34953fb1a362b2bd5a7c6469a376606ebf935945c8f7f64736f6c63430008170033";
|
|
98
98
|
|
|
99
99
|
type ActionVePendleStaticConstructorParams =
|
|
100
100
|
| [signer?: Signer]
|
|
@@ -0,0 +1,269 @@
|
|
|
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
|
+
BoringPYUsdChainlinkAssetOracle,
|
|
15
|
+
BoringPYUsdChainlinkAssetOracleInterface,
|
|
16
|
+
} from "../BoringPYUsdChainlinkAssetOracle";
|
|
17
|
+
|
|
18
|
+
const _abi = [
|
|
19
|
+
{
|
|
20
|
+
inputs: [
|
|
21
|
+
{
|
|
22
|
+
internalType: "uint32",
|
|
23
|
+
name: "_twapDuration",
|
|
24
|
+
type: "uint32",
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
internalType: "address",
|
|
28
|
+
name: "_market",
|
|
29
|
+
type: "address",
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
internalType: "address",
|
|
33
|
+
name: "_feed",
|
|
34
|
+
type: "address",
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
internalType: "address",
|
|
38
|
+
name: "_pyLpOracle",
|
|
39
|
+
type: "address",
|
|
40
|
+
},
|
|
41
|
+
],
|
|
42
|
+
stateMutability: "nonpayable",
|
|
43
|
+
type: "constructor",
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
inputs: [
|
|
47
|
+
{
|
|
48
|
+
internalType: "uint32",
|
|
49
|
+
name: "duration",
|
|
50
|
+
type: "uint32",
|
|
51
|
+
},
|
|
52
|
+
],
|
|
53
|
+
name: "AdditionalWaitRequired",
|
|
54
|
+
type: "error",
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
inputs: [
|
|
58
|
+
{
|
|
59
|
+
internalType: "uint16",
|
|
60
|
+
name: "cardinalityRequired",
|
|
61
|
+
type: "uint16",
|
|
62
|
+
},
|
|
63
|
+
],
|
|
64
|
+
name: "IncreaseCardinalityRequired",
|
|
65
|
+
type: "error",
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
inputs: [],
|
|
69
|
+
name: "checkOracleState",
|
|
70
|
+
outputs: [],
|
|
71
|
+
stateMutability: "view",
|
|
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: "getPtPriceSample1",
|
|
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: "getPtPriceSample2",
|
|
116
|
+
outputs: [
|
|
117
|
+
{
|
|
118
|
+
internalType: "uint256",
|
|
119
|
+
name: "",
|
|
120
|
+
type: "uint256",
|
|
121
|
+
},
|
|
122
|
+
],
|
|
123
|
+
stateMutability: "view",
|
|
124
|
+
type: "function",
|
|
125
|
+
},
|
|
126
|
+
{
|
|
127
|
+
inputs: [],
|
|
128
|
+
name: "getYtPriceSample1",
|
|
129
|
+
outputs: [
|
|
130
|
+
{
|
|
131
|
+
internalType: "uint256",
|
|
132
|
+
name: "",
|
|
133
|
+
type: "uint256",
|
|
134
|
+
},
|
|
135
|
+
],
|
|
136
|
+
stateMutability: "view",
|
|
137
|
+
type: "function",
|
|
138
|
+
},
|
|
139
|
+
{
|
|
140
|
+
inputs: [],
|
|
141
|
+
name: "getYtPriceSample2",
|
|
142
|
+
outputs: [
|
|
143
|
+
{
|
|
144
|
+
internalType: "uint256",
|
|
145
|
+
name: "",
|
|
146
|
+
type: "uint256",
|
|
147
|
+
},
|
|
148
|
+
],
|
|
149
|
+
stateMutability: "view",
|
|
150
|
+
type: "function",
|
|
151
|
+
},
|
|
152
|
+
{
|
|
153
|
+
inputs: [],
|
|
154
|
+
name: "market",
|
|
155
|
+
outputs: [
|
|
156
|
+
{
|
|
157
|
+
internalType: "address",
|
|
158
|
+
name: "",
|
|
159
|
+
type: "address",
|
|
160
|
+
},
|
|
161
|
+
],
|
|
162
|
+
stateMutability: "view",
|
|
163
|
+
type: "function",
|
|
164
|
+
},
|
|
165
|
+
{
|
|
166
|
+
inputs: [],
|
|
167
|
+
name: "pyLpOracle",
|
|
168
|
+
outputs: [
|
|
169
|
+
{
|
|
170
|
+
internalType: "address",
|
|
171
|
+
name: "",
|
|
172
|
+
type: "address",
|
|
173
|
+
},
|
|
174
|
+
],
|
|
175
|
+
stateMutability: "view",
|
|
176
|
+
type: "function",
|
|
177
|
+
},
|
|
178
|
+
{
|
|
179
|
+
inputs: [],
|
|
180
|
+
name: "twapDuration",
|
|
181
|
+
outputs: [
|
|
182
|
+
{
|
|
183
|
+
internalType: "uint32",
|
|
184
|
+
name: "",
|
|
185
|
+
type: "uint32",
|
|
186
|
+
},
|
|
187
|
+
],
|
|
188
|
+
stateMutability: "view",
|
|
189
|
+
type: "function",
|
|
190
|
+
},
|
|
191
|
+
];
|
|
192
|
+
|
|
193
|
+
const _bytecode =
|
|
194
|
+
"0x6101206040523480156200001257600080fd5b50604051620016fe380380620016fe8339810160408190526200003591620000f0565b63ffffffff84166080526001600160a01b0380841660a052821660c08190526040805163313ce56760e01b8152905163313ce567916004808201926020929091908290030181865afa15801562000090573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620000b6919062000157565b60ff1660e0526001600160a01b0316610100525062000183915050565b80516001600160a01b0381168114620000eb57600080fd5b919050565b600080600080608085870312156200010757600080fd5b845163ffffffff811681146200011c57600080fd5b93506200012c60208601620000d3565b92506200013c60408601620000d3565b91506200014c60608601620000d3565b905092959194509250565b6000602082840312156200016a57600080fd5b815160ff811681146200017c57600080fd5b9392505050565b60805160a05160c05160e051610100516114ba620002446000396000818161015d0152818161025f01528181610387015261041a01526000818161018c0152818161063f0152818161066d01526106b001526000818160f701526105b9015260008181610136015281816101e20152818161028e0152818161033c015281816103b6015261044901526000818160b301528181610204015281816102af0152818161035e015281816103d70152818161046a015261053001526114ba6000f3fe608060405234801561001057600080fd5b506004361061008e5760003560e01c8063223a3b261461009357806326d89545146100ae5780632f467dab146100ea57806337a7b7d8146100f257806380f55605146101315780638ca06ea614610158578063addccbb31461017f578063c23953d014610187578063e710b82f146101c0578063f9294d8b146101c8575b600080fd5b61009b6101d2565b6040519081526020015b60405180910390f35b6100d57f000000000000000000000000000000000000000000000000000000000000000081565b60405163ffffffff90911681526020016100a5565b61009b61025a565b6101197f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b0390911681526020016100a5565b6101197f000000000000000000000000000000000000000000000000000000000000000081565b6101197f000000000000000000000000000000000000000000000000000000000000000081565b61009b61032c565b6101ae7f000000000000000000000000000000000000000000000000000000000000000081565b60405160ff90911681526020016100a5565b61009b610382565b6101d0610413565b005b6000806102286001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000167f0000000000000000000000000000000000000000000000000000000000000000610562565b905060006102346105b4565b9050670de0b6b3a7640000610249838361104b565b6102539190611078565b9250505090565b6000807f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663bb0856fe7f00000000000000000000000000000000000000000000000000000000000000007f00000000000000000000000000000000000000000000000000000000000000006040518363ffffffff1660e01b81526004016102eb92919061108c565b602060405180830381865afa158015610308573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061022891906110ab565b6000806102286001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000167f00000000000000000000000000000000000000000000000000000000000000006106f1565b6000807f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663abca0eab7f00000000000000000000000000000000000000000000000000000000000000007f00000000000000000000000000000000000000000000000000000000000000006040518363ffffffff1660e01b81526004016102eb92919061108c565b60008060007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663873e96007f00000000000000000000000000000000000000000000000000000000000000007f00000000000000000000000000000000000000000000000000000000000000006040518363ffffffff1660e01b81526004016104a692919061108c565b606060405180830381865afa1580156104c3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104e791906110d9565b9250925092508215610517576040516333b3ceb360e01b815261ffff831660048201526024015b60405180910390fd5b8061055d57604051631229555360e01b815263ffffffff7f000000000000000000000000000000000000000000000000000000000000000016600482015260240161050e565b505050565b600080600061057085610720565b9150915080821061058e576105858585610950565b925050506105ae565b808261059a8787610950565b6105a4919061104b565b6105859190611078565b92915050565b6000807f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166350d25bcd6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610615573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061063991906110ab565b905060127f000000000000000000000000000000000000000000000000000000000000000060ff16106106ab5761069160127f0000000000000000000000000000000000000000000000000000000000000000611125565b61069c90600a611222565b6106a69082611078565b6106eb565b6106d67f00000000000000000000000000000000000000000000000000000000000000006012611125565b6106e190600a611222565b6106eb908261104b565b91505090565b60008060006106ff85610720565b91509150808210610714576105858585610975565b808261059a8787610975565b600080600080846001600160a01b0316632c8ce6bc6040518163ffffffff1660e01b8152600401606060405180830381865afa158015610764573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107889190611249565b9250509150816001600160a01b0316633ba0b9a96040518163ffffffff1660e01b8152600401602060405180830381865afa1580156107cb573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107ef91906110ab565b93506000816001600160a01b031663d2a3584e6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610831573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061085591906110ab565b9050816001600160a01b031663516399df6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610895573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108b99190611296565b801561092e575043826001600160a01b03166360e0a9e16040518163ffffffff1660e01b8152600401602060405180830381865afa1580156108ff573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061092391906112b1565b6001600160801b0316145b1561093b57809350610948565b6109458582610a4a565b93505b505050915091565b600061095c8383610975565b61096e90670de0b6b3a76400006112da565b9392505050565b600080836001600160a01b031663e184c9be6040518163ffffffff1660e01b8152600401602060405180830381865afa1580156109b6573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109da91906110ab565b90504281116109f457670de0b6b3a76400009150506105ae565b6000610a008585610a60565b90506000610a0e42846112da565b90506000610a24610a1f8484610b87565b610bc8565b9050610a38670de0b6b3a764000082610bdb565b9450505050506105ae565b5092915050565b6000818311610a59578161096e565b5090919050565b604080516002808252606082018352600092839291906020830190803683370190505090508281600081518110610a9957610a99611303565b63ffffffff9092166020928302919091019091015260405163883bdbfd60e01b81526000906001600160a01b0386169063883bdbfd90610add908590600401611319565b600060405180830381865afa158015610afa573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052610b22919081019061137a565b90508363ffffffff1681600081518110610b3e57610b3e611303565b602002602001015182600181518110610b5957610b59611303565b6020026020010151610b6b919061143e565b610b75919061145e565b6001600160d81b031695945050505050565b600080610b996201518061016d61104b565b610ba3848661104b565b610bad9190611078565b9050610bc0610bbb82610c0a565b610c20565b949350505050565b600080821215610bd757600080fd5b5090565b600080610bf0670de0b6b3a76400008561104b565b9050828181610c0157610c01611062565b04949350505050565b60006001600160ff1b03821115610bd757600080fd5b6000680238fd42c5cf03ffff198212158015610c45575068070c1cc73b00c800008213155b610c845760405162461bcd60e51b815260206004820152601060248201526f125b9d985b1a5908195e1c1bdb995b9d60821b604482015260640161050e565b6000821215610cbc57610c9982600003610c20565b6a0c097ce7bc90715b34b9f160241b81610cb557610cb5611062565b0592915050565b60006806f05b59d3b20000008312610cfa57506806f05b59d3b1ffffff199091019072195e54c5dd42177f53a27172fa9ec63026282760241b610d30565b6803782dace9d90000008312610d2c57506803782dace9d8ffffff19909101906b1425982cf597cd205cef7380610d30565b5060015b6064929092029168056bc75e2d6310000068ad78ebc5ac620000008412610d805768ad78ebc5ac61ffffff199093019268056bc75e2d631000006e01855144814a7ff805980ff008400082020590505b6856bc75e2d6310000008412610dbc576856bc75e2d630ffffff199093019268056bc75e2d631000006b02df0ab5a80a22c61ab5a70082020590505b682b5e3af16b188000008412610df657682b5e3af16b187fffff199093019268056bc75e2d63100000693f1fce3da636ea5cf85082020590505b6815af1d78b58c4000008412610e30576815af1d78b58c3fffff199093019268056bc75e2d63100000690127fa27722cc06cc5e282020590505b680ad78ebc5ac62000008412610e6957680ad78ebc5ac61fffff199093019268056bc75e2d6310000068280e60114edb805d0382020590505b68056bc75e2d631000008412610ea25768056bc75e2d630fffff199093019268056bc75e2d63100000680ebc5fb4174612111082020590505b6802b5e3af16b18800008412610edb576802b5e3af16b187ffff199093019268056bc75e2d631000006808f00f760a4b2db55d82020590505b68015af1d78b58c400008412610f145768015af1d78b58c3ffff199093019268056bc75e2d631000006806f5f177578893793782020590505b68056bc75e2d631000008481019085906002908280020505918201919050600368056bc75e2d631000008783020505918201919050600468056bc75e2d631000008783020505918201919050600568056bc75e2d631000008783020505918201919050600668056bc75e2d631000008783020505918201919050600768056bc75e2d631000008783020505918201919050600868056bc75e2d631000008783020505918201919050600968056bc75e2d631000008783020505918201919050600a68056bc75e2d631000008783020505918201919050600b68056bc75e2d631000008783020505918201919050600c68056bc75e2d631000008783020505918201919050606468056bc75e2d63100000848402058502059695505050505050565b634e487b7160e01b600052601160045260246000fd5b80820281158282048414176105ae576105ae611035565b634e487b7160e01b600052601260045260246000fd5b60008261108757611087611062565b500490565b6001600160a01b0392909216825263ffffffff16602082015260400190565b6000602082840312156110bd57600080fd5b5051919050565b805180151581146110d457600080fd5b919050565b6000806000606084860312156110ee57600080fd5b6110f7846110c4565b9250602084015161ffff8116811461110e57600080fd5b915061111c604085016110c4565b90509250925092565b60ff82811682821603908111156105ae576105ae611035565b600181815b8085111561117957816000190482111561115f5761115f611035565b8085161561116c57918102915b93841c9390800290611143565b509250929050565b600082611190575060016105ae565b8161119d575060006105ae565b81600181146111b357600281146111bd576111d9565b60019150506105ae565b60ff8411156111ce576111ce611035565b50506001821b6105ae565b5060208310610133831016604e8410600b84101617156111fc575081810a6105ae565b611206838361113e565b806000190482111561121a5761121a611035565b029392505050565b600061096e60ff841683611181565b6001600160a01b038116811461124657600080fd5b50565b60008060006060848603121561125e57600080fd5b835161126981611231565b602085015190935061127a81611231565b604085015190925061128b81611231565b809150509250925092565b6000602082840312156112a857600080fd5b61096e826110c4565b6000602082840312156112c357600080fd5b81516001600160801b038116811461096e57600080fd5b818103818111156105ae576105ae611035565b634e487b7160e01b600052604160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b6020808252825182820181905260009190848201906040850190845b8181101561135757835163ffffffff1683529284019291840191600101611335565b50909695505050505050565b80516001600160d81b03811681146110d457600080fd5b6000602080838503121561138d57600080fd5b82516001600160401b03808211156113a457600080fd5b818501915085601f8301126113b857600080fd5b8151818111156113ca576113ca6112ed565b8060051b604051601f19603f830116810181811085821117156113ef576113ef6112ed565b60405291825284820192508381018501918883111561140d57600080fd5b938501935b828510156114325761142385611363565b84529385019392850192611412565b98975050505050505050565b6001600160d81b03828116828216039080821115610a4357610a43611035565b60006001600160d81b038381168061147857611478611062565b9216919091049291505056fea264697066735822122062cdb2981065b7b73e36ef2d42fa69dd5452af095baaaf4860405a7def517e3864736f6c63430008170033";
|
|
195
|
+
|
|
196
|
+
type BoringPYUsdChainlinkAssetOracleConstructorParams =
|
|
197
|
+
| [signer?: Signer]
|
|
198
|
+
| ConstructorParameters<typeof ContractFactory>;
|
|
199
|
+
|
|
200
|
+
const isSuperArgs = (
|
|
201
|
+
xs: BoringPYUsdChainlinkAssetOracleConstructorParams
|
|
202
|
+
): xs is ConstructorParameters<typeof ContractFactory> => xs.length > 1;
|
|
203
|
+
|
|
204
|
+
export class BoringPYUsdChainlinkAssetOracle__factory extends ContractFactory {
|
|
205
|
+
constructor(...args: BoringPYUsdChainlinkAssetOracleConstructorParams) {
|
|
206
|
+
if (isSuperArgs(args)) {
|
|
207
|
+
super(...args);
|
|
208
|
+
} else {
|
|
209
|
+
super(_abi, _bytecode, args[0]);
|
|
210
|
+
}
|
|
211
|
+
this.contractName = "BoringPYUsdChainlinkAssetOracle";
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
deploy(
|
|
215
|
+
_twapDuration: BigNumberish,
|
|
216
|
+
_market: string,
|
|
217
|
+
_feed: string,
|
|
218
|
+
_pyLpOracle: string,
|
|
219
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
220
|
+
): Promise<BoringPYUsdChainlinkAssetOracle> {
|
|
221
|
+
return super.deploy(
|
|
222
|
+
_twapDuration,
|
|
223
|
+
_market,
|
|
224
|
+
_feed,
|
|
225
|
+
_pyLpOracle,
|
|
226
|
+
overrides || {}
|
|
227
|
+
) as Promise<BoringPYUsdChainlinkAssetOracle>;
|
|
228
|
+
}
|
|
229
|
+
getDeployTransaction(
|
|
230
|
+
_twapDuration: BigNumberish,
|
|
231
|
+
_market: string,
|
|
232
|
+
_feed: string,
|
|
233
|
+
_pyLpOracle: string,
|
|
234
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
235
|
+
): TransactionRequest {
|
|
236
|
+
return super.getDeployTransaction(
|
|
237
|
+
_twapDuration,
|
|
238
|
+
_market,
|
|
239
|
+
_feed,
|
|
240
|
+
_pyLpOracle,
|
|
241
|
+
overrides || {}
|
|
242
|
+
);
|
|
243
|
+
}
|
|
244
|
+
attach(address: string): BoringPYUsdChainlinkAssetOracle {
|
|
245
|
+
return super.attach(address) as BoringPYUsdChainlinkAssetOracle;
|
|
246
|
+
}
|
|
247
|
+
connect(signer: Signer): BoringPYUsdChainlinkAssetOracle__factory {
|
|
248
|
+
return super.connect(signer) as BoringPYUsdChainlinkAssetOracle__factory;
|
|
249
|
+
}
|
|
250
|
+
static readonly contractName: "BoringPYUsdChainlinkAssetOracle";
|
|
251
|
+
public readonly contractName: "BoringPYUsdChainlinkAssetOracle";
|
|
252
|
+
static readonly bytecode = _bytecode;
|
|
253
|
+
static readonly abi = _abi;
|
|
254
|
+
static createInterface(): BoringPYUsdChainlinkAssetOracleInterface {
|
|
255
|
+
return new utils.Interface(
|
|
256
|
+
_abi
|
|
257
|
+
) as BoringPYUsdChainlinkAssetOracleInterface;
|
|
258
|
+
}
|
|
259
|
+
static connect(
|
|
260
|
+
address: string,
|
|
261
|
+
signerOrProvider: Signer | Provider
|
|
262
|
+
): BoringPYUsdChainlinkAssetOracle {
|
|
263
|
+
return new Contract(
|
|
264
|
+
address,
|
|
265
|
+
_abi,
|
|
266
|
+
signerOrProvider
|
|
267
|
+
) as BoringPYUsdChainlinkAssetOracle;
|
|
268
|
+
}
|
|
269
|
+
}
|
|
@@ -0,0 +1,267 @@
|
|
|
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
|
+
BoringPYUsdChainlinkSYOracle,
|
|
15
|
+
BoringPYUsdChainlinkSYOracleInterface,
|
|
16
|
+
} from "../BoringPYUsdChainlinkSYOracle";
|
|
17
|
+
|
|
18
|
+
const _abi = [
|
|
19
|
+
{
|
|
20
|
+
inputs: [
|
|
21
|
+
{
|
|
22
|
+
internalType: "uint32",
|
|
23
|
+
name: "_twapDuration",
|
|
24
|
+
type: "uint32",
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
internalType: "address",
|
|
28
|
+
name: "_market",
|
|
29
|
+
type: "address",
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
internalType: "address",
|
|
33
|
+
name: "_feed",
|
|
34
|
+
type: "address",
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
internalType: "address",
|
|
38
|
+
name: "_pyLpOracle",
|
|
39
|
+
type: "address",
|
|
40
|
+
},
|
|
41
|
+
],
|
|
42
|
+
stateMutability: "nonpayable",
|
|
43
|
+
type: "constructor",
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
inputs: [
|
|
47
|
+
{
|
|
48
|
+
internalType: "uint32",
|
|
49
|
+
name: "duration",
|
|
50
|
+
type: "uint32",
|
|
51
|
+
},
|
|
52
|
+
],
|
|
53
|
+
name: "AdditionalWaitRequired",
|
|
54
|
+
type: "error",
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
inputs: [
|
|
58
|
+
{
|
|
59
|
+
internalType: "uint16",
|
|
60
|
+
name: "cardinalityRequired",
|
|
61
|
+
type: "uint16",
|
|
62
|
+
},
|
|
63
|
+
],
|
|
64
|
+
name: "IncreaseCardinalityRequired",
|
|
65
|
+
type: "error",
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
inputs: [],
|
|
69
|
+
name: "checkOracleState",
|
|
70
|
+
outputs: [],
|
|
71
|
+
stateMutability: "view",
|
|
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: "getPtPriceSample1",
|
|
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: "getPtPriceSample2",
|
|
116
|
+
outputs: [
|
|
117
|
+
{
|
|
118
|
+
internalType: "uint256",
|
|
119
|
+
name: "",
|
|
120
|
+
type: "uint256",
|
|
121
|
+
},
|
|
122
|
+
],
|
|
123
|
+
stateMutability: "view",
|
|
124
|
+
type: "function",
|
|
125
|
+
},
|
|
126
|
+
{
|
|
127
|
+
inputs: [],
|
|
128
|
+
name: "getYtPriceSample1",
|
|
129
|
+
outputs: [
|
|
130
|
+
{
|
|
131
|
+
internalType: "uint256",
|
|
132
|
+
name: "",
|
|
133
|
+
type: "uint256",
|
|
134
|
+
},
|
|
135
|
+
],
|
|
136
|
+
stateMutability: "view",
|
|
137
|
+
type: "function",
|
|
138
|
+
},
|
|
139
|
+
{
|
|
140
|
+
inputs: [],
|
|
141
|
+
name: "getYtPriceSample2",
|
|
142
|
+
outputs: [
|
|
143
|
+
{
|
|
144
|
+
internalType: "uint256",
|
|
145
|
+
name: "",
|
|
146
|
+
type: "uint256",
|
|
147
|
+
},
|
|
148
|
+
],
|
|
149
|
+
stateMutability: "view",
|
|
150
|
+
type: "function",
|
|
151
|
+
},
|
|
152
|
+
{
|
|
153
|
+
inputs: [],
|
|
154
|
+
name: "market",
|
|
155
|
+
outputs: [
|
|
156
|
+
{
|
|
157
|
+
internalType: "address",
|
|
158
|
+
name: "",
|
|
159
|
+
type: "address",
|
|
160
|
+
},
|
|
161
|
+
],
|
|
162
|
+
stateMutability: "view",
|
|
163
|
+
type: "function",
|
|
164
|
+
},
|
|
165
|
+
{
|
|
166
|
+
inputs: [],
|
|
167
|
+
name: "pyLpOracle",
|
|
168
|
+
outputs: [
|
|
169
|
+
{
|
|
170
|
+
internalType: "address",
|
|
171
|
+
name: "",
|
|
172
|
+
type: "address",
|
|
173
|
+
},
|
|
174
|
+
],
|
|
175
|
+
stateMutability: "view",
|
|
176
|
+
type: "function",
|
|
177
|
+
},
|
|
178
|
+
{
|
|
179
|
+
inputs: [],
|
|
180
|
+
name: "twapDuration",
|
|
181
|
+
outputs: [
|
|
182
|
+
{
|
|
183
|
+
internalType: "uint32",
|
|
184
|
+
name: "",
|
|
185
|
+
type: "uint32",
|
|
186
|
+
},
|
|
187
|
+
],
|
|
188
|
+
stateMutability: "view",
|
|
189
|
+
type: "function",
|
|
190
|
+
},
|
|
191
|
+
];
|
|
192
|
+
|
|
193
|
+
const _bytecode =
|
|
194
|
+
"0x6101206040523480156200001257600080fd5b50604051620016fc380380620016fc8339810160408190526200003591620000f0565b63ffffffff84166080526001600160a01b0380841660a052821660c08190526040805163313ce56760e01b8152905163313ce567916004808201926020929091908290030181865afa15801562000090573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620000b6919062000157565b60ff1660e0526001600160a01b0316610100525062000183915050565b80516001600160a01b0381168114620000eb57600080fd5b919050565b600080600080608085870312156200010757600080fd5b845163ffffffff811681146200011c57600080fd5b93506200012c60208601620000d3565b92506200013c60408601620000d3565b91506200014c60608601620000d3565b905092959194509250565b6000602082840312156200016a57600080fd5b815160ff811681146200017c57600080fd5b9392505050565b60805160a05160c05160e051610100516114b8620002446000396000818161015d0152818161025f01528181610387015261041a01526000818161018c015281816106370152818161066501526106a801526000818160f701526105b1015260008181610136015281816101e20152818161028e0152818161033c015281816103b6015261044901526000818160b301528181610204015281816102af0152818161035e015281816103d70152818161046a015261053001526114b86000f3fe608060405234801561001057600080fd5b506004361061008e5760003560e01c8063223a3b261461009357806326d89545146100ae5780632f467dab146100ea57806337a7b7d8146100f257806380f55605146101315780638ca06ea614610158578063addccbb31461017f578063c23953d014610187578063e710b82f146101c0578063f9294d8b146101c8575b600080fd5b61009b6101d2565b6040519081526020015b60405180910390f35b6100d57f000000000000000000000000000000000000000000000000000000000000000081565b60405163ffffffff90911681526020016100a5565b61009b61025a565b6101197f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b0390911681526020016100a5565b6101197f000000000000000000000000000000000000000000000000000000000000000081565b6101197f000000000000000000000000000000000000000000000000000000000000000081565b61009b61032c565b6101ae7f000000000000000000000000000000000000000000000000000000000000000081565b60405160ff90911681526020016100a5565b61009b610382565b6101d0610413565b005b6000806102286001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000167f0000000000000000000000000000000000000000000000000000000000000000610562565b905060006102346105ac565b9050670de0b6b3a76400006102498383611049565b6102539190611076565b9250505090565b6000807f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663ffec44077f00000000000000000000000000000000000000000000000000000000000000007f00000000000000000000000000000000000000000000000000000000000000006040518363ffffffff1660e01b81526004016102eb92919061108a565b602060405180830381865afa158015610308573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061022891906110a9565b6000806102286001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000167f00000000000000000000000000000000000000000000000000000000000000006106e9565b6000807f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663a31426d17f00000000000000000000000000000000000000000000000000000000000000007f00000000000000000000000000000000000000000000000000000000000000006040518363ffffffff1660e01b81526004016102eb92919061108a565b60008060007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663873e96007f00000000000000000000000000000000000000000000000000000000000000007f00000000000000000000000000000000000000000000000000000000000000006040518363ffffffff1660e01b81526004016104a692919061108a565b606060405180830381865afa1580156104c3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104e791906110d7565b9250925092508215610517576040516333b3ceb360e01b815261ffff831660048201526024015b60405180910390fd5b8061055d57604051631229555360e01b815263ffffffff7f000000000000000000000000000000000000000000000000000000000000000016600482015260240161050e565b505050565b60008060006105708561071e565b915091508082106105985761058f82610589878761094e565b90610973565b925050506105a6565b61058f81610589878761094e565b92915050565b6000807f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166350d25bcd6040518163ffffffff1660e01b8152600401602060405180830381865afa15801561060d573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061063191906110a9565b905060127f000000000000000000000000000000000000000000000000000000000000000060ff16106106a35761068960127f0000000000000000000000000000000000000000000000000000000000000000611123565b61069490600a611220565b61069e9082611076565b6106e3565b6106ce7f00000000000000000000000000000000000000000000000000000000000000006012611123565b6106d990600a611220565b6106e39082611049565b91505090565b60008060006106f78561071e565b915091508082106107105761058f8261058987876109a2565b61058f8161058987876109a2565b600080600080846001600160a01b0316632c8ce6bc6040518163ffffffff1660e01b8152600401606060405180830381865afa158015610762573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107869190611247565b9250509150816001600160a01b0316633ba0b9a96040518163ffffffff1660e01b8152600401602060405180830381865afa1580156107c9573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107ed91906110a9565b93506000816001600160a01b031663d2a3584e6040518163ffffffff1660e01b8152600401602060405180830381865afa15801561082f573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061085391906110a9565b9050816001600160a01b031663516399df6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610893573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108b79190611294565b801561092c575043826001600160a01b03166360e0a9e16040518163ffffffff1660e01b8152600401602060405180830381865afa1580156108fd573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061092191906112af565b6001600160801b0316145b1561093957809350610946565b6109438582610a77565b93505b505050915091565b600061095a83836109a2565b61096c90670de0b6b3a76400006112d8565b9392505050565b600080610988670de0b6b3a764000085611049565b905082818161099957610999611060565b04949350505050565b600080836001600160a01b031663e184c9be6040518163ffffffff1660e01b8152600401602060405180830381865afa1580156109e3573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a0791906110a9565b9050428111610a2157670de0b6b3a76400009150506105a6565b6000610a2d8585610a8d565b90506000610a3b42846112d8565b90506000610a51610a4c8484610bb4565b610bf5565b9050610a65670de0b6b3a764000082610973565b9450505050506105a6565b5092915050565b6000818311610a86578161096c565b5090919050565b604080516002808252606082018352600092839291906020830190803683370190505090508281600081518110610ac657610ac6611301565b63ffffffff9092166020928302919091019091015260405163883bdbfd60e01b81526000906001600160a01b0386169063883bdbfd90610b0a908590600401611317565b600060405180830381865afa158015610b27573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052610b4f9190810190611378565b90508363ffffffff1681600081518110610b6b57610b6b611301565b602002602001015182600181518110610b8657610b86611301565b6020026020010151610b98919061143c565b610ba2919061145c565b6001600160d81b031695945050505050565b600080610bc66201518061016d611049565b610bd08486611049565b610bda9190611076565b9050610bed610be882610c08565b610c1e565b949350505050565b600080821215610c0457600080fd5b5090565b60006001600160ff1b03821115610c0457600080fd5b6000680238fd42c5cf03ffff198212158015610c43575068070c1cc73b00c800008213155b610c825760405162461bcd60e51b815260206004820152601060248201526f125b9d985b1a5908195e1c1bdb995b9d60821b604482015260640161050e565b6000821215610cba57610c9782600003610c1e565b6a0c097ce7bc90715b34b9f160241b81610cb357610cb3611060565b0592915050565b60006806f05b59d3b20000008312610cf857506806f05b59d3b1ffffff199091019072195e54c5dd42177f53a27172fa9ec63026282760241b610d2e565b6803782dace9d90000008312610d2a57506803782dace9d8ffffff19909101906b1425982cf597cd205cef7380610d2e565b5060015b6064929092029168056bc75e2d6310000068ad78ebc5ac620000008412610d7e5768ad78ebc5ac61ffffff199093019268056bc75e2d631000006e01855144814a7ff805980ff008400082020590505b6856bc75e2d6310000008412610dba576856bc75e2d630ffffff199093019268056bc75e2d631000006b02df0ab5a80a22c61ab5a70082020590505b682b5e3af16b188000008412610df457682b5e3af16b187fffff199093019268056bc75e2d63100000693f1fce3da636ea5cf85082020590505b6815af1d78b58c4000008412610e2e576815af1d78b58c3fffff199093019268056bc75e2d63100000690127fa27722cc06cc5e282020590505b680ad78ebc5ac62000008412610e6757680ad78ebc5ac61fffff199093019268056bc75e2d6310000068280e60114edb805d0382020590505b68056bc75e2d631000008412610ea05768056bc75e2d630fffff199093019268056bc75e2d63100000680ebc5fb4174612111082020590505b6802b5e3af16b18800008412610ed9576802b5e3af16b187ffff199093019268056bc75e2d631000006808f00f760a4b2db55d82020590505b68015af1d78b58c400008412610f125768015af1d78b58c3ffff199093019268056bc75e2d631000006806f5f177578893793782020590505b68056bc75e2d631000008481019085906002908280020505918201919050600368056bc75e2d631000008783020505918201919050600468056bc75e2d631000008783020505918201919050600568056bc75e2d631000008783020505918201919050600668056bc75e2d631000008783020505918201919050600768056bc75e2d631000008783020505918201919050600868056bc75e2d631000008783020505918201919050600968056bc75e2d631000008783020505918201919050600a68056bc75e2d631000008783020505918201919050600b68056bc75e2d631000008783020505918201919050600c68056bc75e2d631000008783020505918201919050606468056bc75e2d63100000848402058502059695505050505050565b634e487b7160e01b600052601160045260246000fd5b80820281158282048414176105a6576105a6611033565b634e487b7160e01b600052601260045260246000fd5b60008261108557611085611060565b500490565b6001600160a01b0392909216825263ffffffff16602082015260400190565b6000602082840312156110bb57600080fd5b5051919050565b805180151581146110d257600080fd5b919050565b6000806000606084860312156110ec57600080fd5b6110f5846110c2565b9250602084015161ffff8116811461110c57600080fd5b915061111a604085016110c2565b90509250925092565b60ff82811682821603908111156105a6576105a6611033565b600181815b8085111561117757816000190482111561115d5761115d611033565b8085161561116a57918102915b93841c9390800290611141565b509250929050565b60008261118e575060016105a6565b8161119b575060006105a6565b81600181146111b157600281146111bb576111d7565b60019150506105a6565b60ff8411156111cc576111cc611033565b50506001821b6105a6565b5060208310610133831016604e8410600b84101617156111fa575081810a6105a6565b611204838361113c565b806000190482111561121857611218611033565b029392505050565b600061096c60ff84168361117f565b6001600160a01b038116811461124457600080fd5b50565b60008060006060848603121561125c57600080fd5b83516112678161122f565b60208501519093506112788161122f565b60408501519092506112898161122f565b809150509250925092565b6000602082840312156112a657600080fd5b61096c826110c2565b6000602082840312156112c157600080fd5b81516001600160801b038116811461096c57600080fd5b818103818111156105a6576105a6611033565b634e487b7160e01b600052604160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b6020808252825182820181905260009190848201906040850190845b8181101561135557835163ffffffff1683529284019291840191600101611333565b50909695505050505050565b80516001600160d81b03811681146110d257600080fd5b6000602080838503121561138b57600080fd5b82516001600160401b03808211156113a257600080fd5b818501915085601f8301126113b657600080fd5b8151818111156113c8576113c86112eb565b8060051b604051601f19603f830116810181811085821117156113ed576113ed6112eb565b60405291825284820192508381018501918883111561140b57600080fd5b938501935b828510156114305761142185611361565b84529385019392850192611410565b98975050505050505050565b6001600160d81b03828116828216039080821115610a7057610a70611033565b60006001600160d81b038381168061147657611476611060565b9216919091049291505056fea26469706673582212203356837fee2c6788e4f9505f2c76995df0d2e181803d0ea8c1febdd27d2c8e4064736f6c63430008170033";
|
|
195
|
+
|
|
196
|
+
type BoringPYUsdChainlinkSYOracleConstructorParams =
|
|
197
|
+
| [signer?: Signer]
|
|
198
|
+
| ConstructorParameters<typeof ContractFactory>;
|
|
199
|
+
|
|
200
|
+
const isSuperArgs = (
|
|
201
|
+
xs: BoringPYUsdChainlinkSYOracleConstructorParams
|
|
202
|
+
): xs is ConstructorParameters<typeof ContractFactory> => xs.length > 1;
|
|
203
|
+
|
|
204
|
+
export class BoringPYUsdChainlinkSYOracle__factory extends ContractFactory {
|
|
205
|
+
constructor(...args: BoringPYUsdChainlinkSYOracleConstructorParams) {
|
|
206
|
+
if (isSuperArgs(args)) {
|
|
207
|
+
super(...args);
|
|
208
|
+
} else {
|
|
209
|
+
super(_abi, _bytecode, args[0]);
|
|
210
|
+
}
|
|
211
|
+
this.contractName = "BoringPYUsdChainlinkSYOracle";
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
deploy(
|
|
215
|
+
_twapDuration: BigNumberish,
|
|
216
|
+
_market: string,
|
|
217
|
+
_feed: string,
|
|
218
|
+
_pyLpOracle: string,
|
|
219
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
220
|
+
): Promise<BoringPYUsdChainlinkSYOracle> {
|
|
221
|
+
return super.deploy(
|
|
222
|
+
_twapDuration,
|
|
223
|
+
_market,
|
|
224
|
+
_feed,
|
|
225
|
+
_pyLpOracle,
|
|
226
|
+
overrides || {}
|
|
227
|
+
) as Promise<BoringPYUsdChainlinkSYOracle>;
|
|
228
|
+
}
|
|
229
|
+
getDeployTransaction(
|
|
230
|
+
_twapDuration: BigNumberish,
|
|
231
|
+
_market: string,
|
|
232
|
+
_feed: string,
|
|
233
|
+
_pyLpOracle: string,
|
|
234
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
235
|
+
): TransactionRequest {
|
|
236
|
+
return super.getDeployTransaction(
|
|
237
|
+
_twapDuration,
|
|
238
|
+
_market,
|
|
239
|
+
_feed,
|
|
240
|
+
_pyLpOracle,
|
|
241
|
+
overrides || {}
|
|
242
|
+
);
|
|
243
|
+
}
|
|
244
|
+
attach(address: string): BoringPYUsdChainlinkSYOracle {
|
|
245
|
+
return super.attach(address) as BoringPYUsdChainlinkSYOracle;
|
|
246
|
+
}
|
|
247
|
+
connect(signer: Signer): BoringPYUsdChainlinkSYOracle__factory {
|
|
248
|
+
return super.connect(signer) as BoringPYUsdChainlinkSYOracle__factory;
|
|
249
|
+
}
|
|
250
|
+
static readonly contractName: "BoringPYUsdChainlinkSYOracle";
|
|
251
|
+
public readonly contractName: "BoringPYUsdChainlinkSYOracle";
|
|
252
|
+
static readonly bytecode = _bytecode;
|
|
253
|
+
static readonly abi = _abi;
|
|
254
|
+
static createInterface(): BoringPYUsdChainlinkSYOracleInterface {
|
|
255
|
+
return new utils.Interface(_abi) as BoringPYUsdChainlinkSYOracleInterface;
|
|
256
|
+
}
|
|
257
|
+
static connect(
|
|
258
|
+
address: string,
|
|
259
|
+
signerOrProvider: Signer | Provider
|
|
260
|
+
): BoringPYUsdChainlinkSYOracle {
|
|
261
|
+
return new Contract(
|
|
262
|
+
address,
|
|
263
|
+
_abi,
|
|
264
|
+
signerOrProvider
|
|
265
|
+
) as BoringPYUsdChainlinkSYOracle;
|
|
266
|
+
}
|
|
267
|
+
}
|