@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
|
@@ -0,0 +1,674 @@
|
|
|
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
|
+
PendleYieldContractFactory,
|
|
15
|
+
PendleYieldContractFactoryInterface,
|
|
16
|
+
} from "../PendleYieldContractFactory";
|
|
17
|
+
|
|
18
|
+
const _abi = [
|
|
19
|
+
{
|
|
20
|
+
inputs: [
|
|
21
|
+
{
|
|
22
|
+
internalType: "address",
|
|
23
|
+
name: "_ytCreationCodeContractA",
|
|
24
|
+
type: "address",
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
internalType: "uint256",
|
|
28
|
+
name: "_ytCreationCodeSizeA",
|
|
29
|
+
type: "uint256",
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
internalType: "address",
|
|
33
|
+
name: "_ytCreationCodeContractB",
|
|
34
|
+
type: "address",
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
internalType: "uint256",
|
|
38
|
+
name: "_ytCreationCodeSizeB",
|
|
39
|
+
type: "uint256",
|
|
40
|
+
},
|
|
41
|
+
],
|
|
42
|
+
stateMutability: "nonpayable",
|
|
43
|
+
type: "constructor",
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
inputs: [
|
|
47
|
+
{
|
|
48
|
+
internalType: "uint256",
|
|
49
|
+
name: "interestFeeRate",
|
|
50
|
+
type: "uint256",
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
internalType: "uint256",
|
|
54
|
+
name: "maxInterestFeeRate",
|
|
55
|
+
type: "uint256",
|
|
56
|
+
},
|
|
57
|
+
],
|
|
58
|
+
name: "YCFactoryInterestFeeRateTooHigh",
|
|
59
|
+
type: "error",
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
inputs: [],
|
|
63
|
+
name: "YCFactoryInvalidExpiry",
|
|
64
|
+
type: "error",
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
inputs: [
|
|
68
|
+
{
|
|
69
|
+
internalType: "uint256",
|
|
70
|
+
name: "newRewardFeeRate",
|
|
71
|
+
type: "uint256",
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
internalType: "uint256",
|
|
75
|
+
name: "maxRewardFeeRate",
|
|
76
|
+
type: "uint256",
|
|
77
|
+
},
|
|
78
|
+
],
|
|
79
|
+
name: "YCFactoryRewardFeeRateTooHigh",
|
|
80
|
+
type: "error",
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
inputs: [],
|
|
84
|
+
name: "YCFactoryYieldContractExisted",
|
|
85
|
+
type: "error",
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
inputs: [],
|
|
89
|
+
name: "YCFactoryZeroExpiryDivisor",
|
|
90
|
+
type: "error",
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
inputs: [],
|
|
94
|
+
name: "YCFactoryZeroTreasury",
|
|
95
|
+
type: "error",
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
anonymous: false,
|
|
99
|
+
inputs: [
|
|
100
|
+
{
|
|
101
|
+
indexed: true,
|
|
102
|
+
internalType: "address",
|
|
103
|
+
name: "SY",
|
|
104
|
+
type: "address",
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
indexed: true,
|
|
108
|
+
internalType: "uint256",
|
|
109
|
+
name: "expiry",
|
|
110
|
+
type: "uint256",
|
|
111
|
+
},
|
|
112
|
+
{
|
|
113
|
+
indexed: false,
|
|
114
|
+
internalType: "address",
|
|
115
|
+
name: "PT",
|
|
116
|
+
type: "address",
|
|
117
|
+
},
|
|
118
|
+
{
|
|
119
|
+
indexed: false,
|
|
120
|
+
internalType: "address",
|
|
121
|
+
name: "YT",
|
|
122
|
+
type: "address",
|
|
123
|
+
},
|
|
124
|
+
],
|
|
125
|
+
name: "CreateYieldContract",
|
|
126
|
+
type: "event",
|
|
127
|
+
},
|
|
128
|
+
{
|
|
129
|
+
anonymous: false,
|
|
130
|
+
inputs: [
|
|
131
|
+
{
|
|
132
|
+
indexed: false,
|
|
133
|
+
internalType: "uint8",
|
|
134
|
+
name: "version",
|
|
135
|
+
type: "uint8",
|
|
136
|
+
},
|
|
137
|
+
],
|
|
138
|
+
name: "Initialized",
|
|
139
|
+
type: "event",
|
|
140
|
+
},
|
|
141
|
+
{
|
|
142
|
+
anonymous: false,
|
|
143
|
+
inputs: [
|
|
144
|
+
{
|
|
145
|
+
indexed: true,
|
|
146
|
+
internalType: "address",
|
|
147
|
+
name: "previousOwner",
|
|
148
|
+
type: "address",
|
|
149
|
+
},
|
|
150
|
+
{
|
|
151
|
+
indexed: true,
|
|
152
|
+
internalType: "address",
|
|
153
|
+
name: "newOwner",
|
|
154
|
+
type: "address",
|
|
155
|
+
},
|
|
156
|
+
],
|
|
157
|
+
name: "OwnershipTransferred",
|
|
158
|
+
type: "event",
|
|
159
|
+
},
|
|
160
|
+
{
|
|
161
|
+
anonymous: false,
|
|
162
|
+
inputs: [
|
|
163
|
+
{
|
|
164
|
+
indexed: false,
|
|
165
|
+
internalType: "uint256",
|
|
166
|
+
name: "newExpiryDivisor",
|
|
167
|
+
type: "uint256",
|
|
168
|
+
},
|
|
169
|
+
],
|
|
170
|
+
name: "SetExpiryDivisor",
|
|
171
|
+
type: "event",
|
|
172
|
+
},
|
|
173
|
+
{
|
|
174
|
+
anonymous: false,
|
|
175
|
+
inputs: [
|
|
176
|
+
{
|
|
177
|
+
indexed: false,
|
|
178
|
+
internalType: "uint256",
|
|
179
|
+
name: "newInterestFeeRate",
|
|
180
|
+
type: "uint256",
|
|
181
|
+
},
|
|
182
|
+
],
|
|
183
|
+
name: "SetInterestFeeRate",
|
|
184
|
+
type: "event",
|
|
185
|
+
},
|
|
186
|
+
{
|
|
187
|
+
anonymous: false,
|
|
188
|
+
inputs: [
|
|
189
|
+
{
|
|
190
|
+
indexed: false,
|
|
191
|
+
internalType: "uint256",
|
|
192
|
+
name: "newRewardFeeRate",
|
|
193
|
+
type: "uint256",
|
|
194
|
+
},
|
|
195
|
+
],
|
|
196
|
+
name: "SetRewardFeeRate",
|
|
197
|
+
type: "event",
|
|
198
|
+
},
|
|
199
|
+
{
|
|
200
|
+
anonymous: false,
|
|
201
|
+
inputs: [
|
|
202
|
+
{
|
|
203
|
+
indexed: true,
|
|
204
|
+
internalType: "address",
|
|
205
|
+
name: "treasury",
|
|
206
|
+
type: "address",
|
|
207
|
+
},
|
|
208
|
+
],
|
|
209
|
+
name: "SetTreasury",
|
|
210
|
+
type: "event",
|
|
211
|
+
},
|
|
212
|
+
{
|
|
213
|
+
inputs: [],
|
|
214
|
+
name: "claimOwnership",
|
|
215
|
+
outputs: [],
|
|
216
|
+
stateMutability: "nonpayable",
|
|
217
|
+
type: "function",
|
|
218
|
+
},
|
|
219
|
+
{
|
|
220
|
+
inputs: [
|
|
221
|
+
{
|
|
222
|
+
internalType: "address",
|
|
223
|
+
name: "SY",
|
|
224
|
+
type: "address",
|
|
225
|
+
},
|
|
226
|
+
{
|
|
227
|
+
internalType: "uint32",
|
|
228
|
+
name: "expiry",
|
|
229
|
+
type: "uint32",
|
|
230
|
+
},
|
|
231
|
+
{
|
|
232
|
+
internalType: "bool",
|
|
233
|
+
name: "doCacheIndexSameBlock",
|
|
234
|
+
type: "bool",
|
|
235
|
+
},
|
|
236
|
+
],
|
|
237
|
+
name: "createYieldContract",
|
|
238
|
+
outputs: [
|
|
239
|
+
{
|
|
240
|
+
internalType: "address",
|
|
241
|
+
name: "PT",
|
|
242
|
+
type: "address",
|
|
243
|
+
},
|
|
244
|
+
{
|
|
245
|
+
internalType: "address",
|
|
246
|
+
name: "YT",
|
|
247
|
+
type: "address",
|
|
248
|
+
},
|
|
249
|
+
],
|
|
250
|
+
stateMutability: "nonpayable",
|
|
251
|
+
type: "function",
|
|
252
|
+
},
|
|
253
|
+
{
|
|
254
|
+
inputs: [],
|
|
255
|
+
name: "expiryDivisor",
|
|
256
|
+
outputs: [
|
|
257
|
+
{
|
|
258
|
+
internalType: "uint96",
|
|
259
|
+
name: "",
|
|
260
|
+
type: "uint96",
|
|
261
|
+
},
|
|
262
|
+
],
|
|
263
|
+
stateMutability: "view",
|
|
264
|
+
type: "function",
|
|
265
|
+
},
|
|
266
|
+
{
|
|
267
|
+
inputs: [
|
|
268
|
+
{
|
|
269
|
+
internalType: "address",
|
|
270
|
+
name: "",
|
|
271
|
+
type: "address",
|
|
272
|
+
},
|
|
273
|
+
{
|
|
274
|
+
internalType: "uint256",
|
|
275
|
+
name: "",
|
|
276
|
+
type: "uint256",
|
|
277
|
+
},
|
|
278
|
+
],
|
|
279
|
+
name: "getPT",
|
|
280
|
+
outputs: [
|
|
281
|
+
{
|
|
282
|
+
internalType: "address",
|
|
283
|
+
name: "",
|
|
284
|
+
type: "address",
|
|
285
|
+
},
|
|
286
|
+
],
|
|
287
|
+
stateMutability: "view",
|
|
288
|
+
type: "function",
|
|
289
|
+
},
|
|
290
|
+
{
|
|
291
|
+
inputs: [
|
|
292
|
+
{
|
|
293
|
+
internalType: "address",
|
|
294
|
+
name: "",
|
|
295
|
+
type: "address",
|
|
296
|
+
},
|
|
297
|
+
{
|
|
298
|
+
internalType: "uint256",
|
|
299
|
+
name: "",
|
|
300
|
+
type: "uint256",
|
|
301
|
+
},
|
|
302
|
+
],
|
|
303
|
+
name: "getYT",
|
|
304
|
+
outputs: [
|
|
305
|
+
{
|
|
306
|
+
internalType: "address",
|
|
307
|
+
name: "",
|
|
308
|
+
type: "address",
|
|
309
|
+
},
|
|
310
|
+
],
|
|
311
|
+
stateMutability: "view",
|
|
312
|
+
type: "function",
|
|
313
|
+
},
|
|
314
|
+
{
|
|
315
|
+
inputs: [
|
|
316
|
+
{
|
|
317
|
+
internalType: "uint96",
|
|
318
|
+
name: "_expiryDivisor",
|
|
319
|
+
type: "uint96",
|
|
320
|
+
},
|
|
321
|
+
{
|
|
322
|
+
internalType: "uint128",
|
|
323
|
+
name: "_interestFeeRate",
|
|
324
|
+
type: "uint128",
|
|
325
|
+
},
|
|
326
|
+
{
|
|
327
|
+
internalType: "uint128",
|
|
328
|
+
name: "_rewardFeeRate",
|
|
329
|
+
type: "uint128",
|
|
330
|
+
},
|
|
331
|
+
{
|
|
332
|
+
internalType: "address",
|
|
333
|
+
name: "_treasury",
|
|
334
|
+
type: "address",
|
|
335
|
+
},
|
|
336
|
+
],
|
|
337
|
+
name: "initialize",
|
|
338
|
+
outputs: [],
|
|
339
|
+
stateMutability: "nonpayable",
|
|
340
|
+
type: "function",
|
|
341
|
+
},
|
|
342
|
+
{
|
|
343
|
+
inputs: [],
|
|
344
|
+
name: "interestFeeRate",
|
|
345
|
+
outputs: [
|
|
346
|
+
{
|
|
347
|
+
internalType: "uint128",
|
|
348
|
+
name: "",
|
|
349
|
+
type: "uint128",
|
|
350
|
+
},
|
|
351
|
+
],
|
|
352
|
+
stateMutability: "view",
|
|
353
|
+
type: "function",
|
|
354
|
+
},
|
|
355
|
+
{
|
|
356
|
+
inputs: [
|
|
357
|
+
{
|
|
358
|
+
internalType: "address",
|
|
359
|
+
name: "",
|
|
360
|
+
type: "address",
|
|
361
|
+
},
|
|
362
|
+
],
|
|
363
|
+
name: "isPT",
|
|
364
|
+
outputs: [
|
|
365
|
+
{
|
|
366
|
+
internalType: "bool",
|
|
367
|
+
name: "",
|
|
368
|
+
type: "bool",
|
|
369
|
+
},
|
|
370
|
+
],
|
|
371
|
+
stateMutability: "view",
|
|
372
|
+
type: "function",
|
|
373
|
+
},
|
|
374
|
+
{
|
|
375
|
+
inputs: [
|
|
376
|
+
{
|
|
377
|
+
internalType: "address",
|
|
378
|
+
name: "",
|
|
379
|
+
type: "address",
|
|
380
|
+
},
|
|
381
|
+
],
|
|
382
|
+
name: "isYT",
|
|
383
|
+
outputs: [
|
|
384
|
+
{
|
|
385
|
+
internalType: "bool",
|
|
386
|
+
name: "",
|
|
387
|
+
type: "bool",
|
|
388
|
+
},
|
|
389
|
+
],
|
|
390
|
+
stateMutability: "view",
|
|
391
|
+
type: "function",
|
|
392
|
+
},
|
|
393
|
+
{
|
|
394
|
+
inputs: [],
|
|
395
|
+
name: "maxInterestFeeRate",
|
|
396
|
+
outputs: [
|
|
397
|
+
{
|
|
398
|
+
internalType: "uint256",
|
|
399
|
+
name: "",
|
|
400
|
+
type: "uint256",
|
|
401
|
+
},
|
|
402
|
+
],
|
|
403
|
+
stateMutability: "view",
|
|
404
|
+
type: "function",
|
|
405
|
+
},
|
|
406
|
+
{
|
|
407
|
+
inputs: [],
|
|
408
|
+
name: "maxRewardFeeRate",
|
|
409
|
+
outputs: [
|
|
410
|
+
{
|
|
411
|
+
internalType: "uint256",
|
|
412
|
+
name: "",
|
|
413
|
+
type: "uint256",
|
|
414
|
+
},
|
|
415
|
+
],
|
|
416
|
+
stateMutability: "view",
|
|
417
|
+
type: "function",
|
|
418
|
+
},
|
|
419
|
+
{
|
|
420
|
+
inputs: [],
|
|
421
|
+
name: "owner",
|
|
422
|
+
outputs: [
|
|
423
|
+
{
|
|
424
|
+
internalType: "address",
|
|
425
|
+
name: "",
|
|
426
|
+
type: "address",
|
|
427
|
+
},
|
|
428
|
+
],
|
|
429
|
+
stateMutability: "view",
|
|
430
|
+
type: "function",
|
|
431
|
+
},
|
|
432
|
+
{
|
|
433
|
+
inputs: [],
|
|
434
|
+
name: "pendingOwner",
|
|
435
|
+
outputs: [
|
|
436
|
+
{
|
|
437
|
+
internalType: "address",
|
|
438
|
+
name: "",
|
|
439
|
+
type: "address",
|
|
440
|
+
},
|
|
441
|
+
],
|
|
442
|
+
stateMutability: "view",
|
|
443
|
+
type: "function",
|
|
444
|
+
},
|
|
445
|
+
{
|
|
446
|
+
inputs: [],
|
|
447
|
+
name: "rewardFeeRate",
|
|
448
|
+
outputs: [
|
|
449
|
+
{
|
|
450
|
+
internalType: "uint128",
|
|
451
|
+
name: "",
|
|
452
|
+
type: "uint128",
|
|
453
|
+
},
|
|
454
|
+
],
|
|
455
|
+
stateMutability: "view",
|
|
456
|
+
type: "function",
|
|
457
|
+
},
|
|
458
|
+
{
|
|
459
|
+
inputs: [
|
|
460
|
+
{
|
|
461
|
+
internalType: "uint96",
|
|
462
|
+
name: "newExpiryDivisor",
|
|
463
|
+
type: "uint96",
|
|
464
|
+
},
|
|
465
|
+
],
|
|
466
|
+
name: "setExpiryDivisor",
|
|
467
|
+
outputs: [],
|
|
468
|
+
stateMutability: "nonpayable",
|
|
469
|
+
type: "function",
|
|
470
|
+
},
|
|
471
|
+
{
|
|
472
|
+
inputs: [
|
|
473
|
+
{
|
|
474
|
+
internalType: "uint128",
|
|
475
|
+
name: "newInterestFeeRate",
|
|
476
|
+
type: "uint128",
|
|
477
|
+
},
|
|
478
|
+
],
|
|
479
|
+
name: "setInterestFeeRate",
|
|
480
|
+
outputs: [],
|
|
481
|
+
stateMutability: "nonpayable",
|
|
482
|
+
type: "function",
|
|
483
|
+
},
|
|
484
|
+
{
|
|
485
|
+
inputs: [
|
|
486
|
+
{
|
|
487
|
+
internalType: "uint128",
|
|
488
|
+
name: "newRewardFeeRate",
|
|
489
|
+
type: "uint128",
|
|
490
|
+
},
|
|
491
|
+
],
|
|
492
|
+
name: "setRewardFeeRate",
|
|
493
|
+
outputs: [],
|
|
494
|
+
stateMutability: "nonpayable",
|
|
495
|
+
type: "function",
|
|
496
|
+
},
|
|
497
|
+
{
|
|
498
|
+
inputs: [
|
|
499
|
+
{
|
|
500
|
+
internalType: "address",
|
|
501
|
+
name: "newTreasury",
|
|
502
|
+
type: "address",
|
|
503
|
+
},
|
|
504
|
+
],
|
|
505
|
+
name: "setTreasury",
|
|
506
|
+
outputs: [],
|
|
507
|
+
stateMutability: "nonpayable",
|
|
508
|
+
type: "function",
|
|
509
|
+
},
|
|
510
|
+
{
|
|
511
|
+
inputs: [
|
|
512
|
+
{
|
|
513
|
+
internalType: "address",
|
|
514
|
+
name: "newOwner",
|
|
515
|
+
type: "address",
|
|
516
|
+
},
|
|
517
|
+
{
|
|
518
|
+
internalType: "bool",
|
|
519
|
+
name: "direct",
|
|
520
|
+
type: "bool",
|
|
521
|
+
},
|
|
522
|
+
{
|
|
523
|
+
internalType: "bool",
|
|
524
|
+
name: "renounce",
|
|
525
|
+
type: "bool",
|
|
526
|
+
},
|
|
527
|
+
],
|
|
528
|
+
name: "transferOwnership",
|
|
529
|
+
outputs: [],
|
|
530
|
+
stateMutability: "nonpayable",
|
|
531
|
+
type: "function",
|
|
532
|
+
},
|
|
533
|
+
{
|
|
534
|
+
inputs: [],
|
|
535
|
+
name: "treasury",
|
|
536
|
+
outputs: [
|
|
537
|
+
{
|
|
538
|
+
internalType: "address",
|
|
539
|
+
name: "",
|
|
540
|
+
type: "address",
|
|
541
|
+
},
|
|
542
|
+
],
|
|
543
|
+
stateMutability: "view",
|
|
544
|
+
type: "function",
|
|
545
|
+
},
|
|
546
|
+
{
|
|
547
|
+
inputs: [],
|
|
548
|
+
name: "ytCreationCodeContractA",
|
|
549
|
+
outputs: [
|
|
550
|
+
{
|
|
551
|
+
internalType: "address",
|
|
552
|
+
name: "",
|
|
553
|
+
type: "address",
|
|
554
|
+
},
|
|
555
|
+
],
|
|
556
|
+
stateMutability: "view",
|
|
557
|
+
type: "function",
|
|
558
|
+
},
|
|
559
|
+
{
|
|
560
|
+
inputs: [],
|
|
561
|
+
name: "ytCreationCodeContractB",
|
|
562
|
+
outputs: [
|
|
563
|
+
{
|
|
564
|
+
internalType: "address",
|
|
565
|
+
name: "",
|
|
566
|
+
type: "address",
|
|
567
|
+
},
|
|
568
|
+
],
|
|
569
|
+
stateMutability: "view",
|
|
570
|
+
type: "function",
|
|
571
|
+
},
|
|
572
|
+
{
|
|
573
|
+
inputs: [],
|
|
574
|
+
name: "ytCreationCodeSizeA",
|
|
575
|
+
outputs: [
|
|
576
|
+
{
|
|
577
|
+
internalType: "uint256",
|
|
578
|
+
name: "",
|
|
579
|
+
type: "uint256",
|
|
580
|
+
},
|
|
581
|
+
],
|
|
582
|
+
stateMutability: "view",
|
|
583
|
+
type: "function",
|
|
584
|
+
},
|
|
585
|
+
{
|
|
586
|
+
inputs: [],
|
|
587
|
+
name: "ytCreationCodeSizeB",
|
|
588
|
+
outputs: [
|
|
589
|
+
{
|
|
590
|
+
internalType: "uint256",
|
|
591
|
+
name: "",
|
|
592
|
+
type: "uint256",
|
|
593
|
+
},
|
|
594
|
+
],
|
|
595
|
+
stateMutability: "view",
|
|
596
|
+
type: "function",
|
|
597
|
+
},
|
|
598
|
+
];
|
|
599
|
+
|
|
600
|
+
const _bytecode =
|
|
601
|
+
"0x6101006040523480156200001257600080fd5b506040516200390038038062003900833981016040819052620000359162000075565b6001600160a01b0393841660805260a09290925290911660c05260e052620000be565b80516001600160a01b03811681146200007057600080fd5b919050565b600080600080608085870312156200008c57600080fd5b620000978562000058565b935060208501519250620000ae6040860162000058565b6060959095015193969295505050565b60805160a05160c05160e0516137ec62000114600039600081816103410152610dcc0152600081816101d80152610dab01526000818161014d0152610d8a0152600081816103f10152610d6901526137ec6000f3fe60806040523480156200001157600080fd5b5060043610620001425760003560e01c806307274b191462000147578063078dfbe7146200018257806318b7373d146200019b5780632cb5b6c114620001d257806344601d6914620002095780634e71e0c81462000220578063586007bc146200022a57806361d027b314620002415780636348cb21146200025557806371846aa8146200026c5780637d39cabf146200029257806387efe5a714620002a95780638c9f796214620002e05780638da5cb5b146200031757806395ce8917146200032b578063a14135f5146200033b578063dd86fea11462000363578063e28a68b61462000386578063e30c397814620003ad578063e9e5f3cf14620003c1578063ea938547146200032b578063ebd7cb8a14620003eb578063f0f442601462000413578063f5de2d1f146200042a575b600080fd5b6200016f7f000000000000000000000000000000000000000000000000000000000000000081565b6040519081526020015b60405180910390f35b620001996200019336600462001c7b565b62000445565b005b620001c1620001ac36600462001cc7565b60366020526000908152604090205460ff1681565b604051901515815260200162000179565b620001fa7f000000000000000000000000000000000000000000000000000000000000000081565b60405162000179919062001ce7565b620001996200021a36600462001d13565b62000553565b6200019962000618565b620001996200023b36600462001d49565b620006c6565b603354620001fa906001600160a01b031681565b620001996200026636600462001d67565b62000770565b620001c16200027d36600462001cc7565b60376020526000908152604090205460ff1681565b62000199620002a336600462001d13565b620008d1565b620001fa620002ba36600462001dc6565b60346020908152600092835260408084209091529082529020546001600160a01b031681565b620001fa620002f136600462001dc6565b60356020908152600092835260408084209091529082529020546001600160a01b031681565b600054620001fa906001600160a01b031681565b6200016f6702c68af0bb14000081565b6200016f7f000000000000000000000000000000000000000000000000000000000000000081565b60325462000377906001600160801b031681565b60405162000179919062001df5565b6200039d6200039736600462001e09565b6200098c565b6040516200017992919062001e46565b600154620001fa906001600160a01b031681565b603354620003dc90600160a01b90046001600160601b031681565b60405162000179919062001e60565b620001fa7f000000000000000000000000000000000000000000000000000000000000000081565b620001996200042436600462001cc7565b62000f2e565b6032546200037790600160801b90046001600160801b031681565b6000546001600160a01b031633146200047b5760405162461bcd60e51b8152600401620004729062001e74565b60405180910390fd5b811562000531576001600160a01b038316151580620004975750805b620004dd5760405162461bcd60e51b81526020600482015260156024820152744f776e61626c653a207a65726f206164647265737360581b604482015260640162000472565b600080546040516001600160a01b03808716939216916000805160206200379783398151915291a3600080546001600160a01b0385166001600160a01b031991821617909155600180549091169055505050565b600180546001600160a01b0385166001600160a01b0319909116179055505050565b6000546001600160a01b03163314620005805760405162461bcd60e51b8152600401620004729062001e74565b6702c68af0bb140000816001600160801b03161115620005c157806702c68af0bb140000604051635dbf545160e01b81526004016200047292919062001ea9565b603280546001600160801b03808416600160801b0291161790556040517f8dfda2f0f14feea9a776359ded0d062934c38098a21d140fcdd9a3dbfb6294c1906200060d90839062001df5565b60405180910390a150565b6001546001600160a01b0316338114620006755760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c657220213d2070656e64696e67206f776e6572604482015260640162000472565b600080546040516001600160a01b03808516939216916000805160206200379783398151915291a3600080546001600160a01b039092166001600160a01b0319928316179055600180549091169055565b6000546001600160a01b03163314620006f35760405162461bcd60e51b8152600401620004729062001e74565b806001600160601b03166000036200071e5760405163f2baeb4960e01b815260040160405180910390fd5b603380546001600160a01b0316600160a01b6001600160601b038416021790556040517fdaf60f79a59eb1d8c1748ab26dc83c44f364ce8c1fc497ec2df45d9538a1aa11906200060d90839062001e60565b600154600160a81b900460ff161580801562000797575060018054600160a01b900460ff16105b80620007b95750303b158015620007b9575060018054600160a01b900460ff16145b6200081e5760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b606482015260840162000472565b6001805460ff60a01b1916600160a01b17905580156200084c576001805460ff60a81b1916600160a81b1790555b6200085662000fcd565b6200086185620006c6565b6200086c84620008d1565b620008778362000553565b620008828262000f2e565b8015620008ca576001805460ff60a81b191681556040519081527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989060200160405180910390a15b5050505050565b6000546001600160a01b03163314620008fe5760405162461bcd60e51b8152600401620004729062001e74565b6702c68af0bb140000816001600160801b031611156200093f57806702c68af0bb140000604051630f9818e760e31b81526004016200047292919062001ea9565b603280546001600160801b0319166001600160801b0383161790556040517fa9d618683ded3ac7317e1717ad10e9e3b92041092a8e97ceb038c699cc54d640906200060d90839062001df5565b60008063ffffffff841642101580620009d15750603354620009c590600160a01b90046001600160601b031663ffffffff861662001ed8565b6001600160601b031615155b15620009f0576040516301f687fd60e41b815260040160405180910390fd5b6001600160a01b03858116600090815260346020908152604080832063ffffffff89168452909152902054161562000a3b57604051635286ca8160e11b815260040160405180910390fd5b60008590506000816001600160a01b031663a40bee506040518163ffffffff1660e01b8152600401606060405180830381865afa15801562000a81573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062000aa7919062001f01565b92505050600062000b20836001600160a01b03166306fdde036040518163ffffffff1660e01b8152600401600060405180830381865afa15801562000af0573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405262000b1a919081019062001f99565b62001050565b9050600062000b67846001600160a01b03166395d89b416040518163ffffffff1660e01b8152600401600060405180830381865afa15801562000af0573d6000803e3d6000fd5b905062000c8b60004660001b6040518060200162000b859062001c24565b6020820181038252601f19601f820116604052508c62000bec878e63ffffffff16604051806040016040528060018152602001600160fd1b81525060405180604001604052806002815260200161141560f21b815250620010e0909392919063ffffffff16565b62000c3e878f63ffffffff16604051806040016040528060018152602001602d60f81b81525060405180604001604052806002815260200161141560f21b815250620010e0909392919063ffffffff16565b898f60405160200162000c569594939291906200207f565b60408051601f198184030181529082905262000c769291602001620020db565b60405160208183030381529060405262001120565b955062000df160004660001b8b8962000ceb878e63ffffffff16604051806040016040528060018152602001600160fd1b81525060405180604001604052806002815260200161165560f21b815250620010e0909392919063ffffffff16565b62000d3d878f63ffffffff16604051806040016040528060018152602001602d60f81b81525060405180604001604052806002815260200161165560f21b815250620010e0909392919063ffffffff16565b898f8f60405160200162000d5897969594939291906200210e565b6040516020818303038152906040527f00000000000000000000000000000000000000000000000000000000000000007f00000000000000000000000000000000000000000000000000000000000000007f00000000000000000000000000000000000000000000000000000000000000007f00000000000000000000000000000000000000000000000000000000000000006200122d565b60405163189acdbd60e31b81529095506001600160a01b0387169063c4d66de89062000e2290889060040162001ce7565b600060405180830381600087803b15801562000e3d57600080fd5b505af115801562000e52573d6000803e3d6000fd5b505050506001600160a01b03898116600081815260346020908152604080832063ffffffff8e1680855290835281842080548d88166001600160a01b031991821681179092558686526035855283862083875285528386208054988e169890911688179055845260368352818420805460ff199081166001908117909255968552603790935292819020805490951690911790935591517faa79d8f17776adeaa316c5411b72e8b0057d064974fa8748f32492ecaa22ecd19062000f1a908a908a9062001e46565b60405180910390a350505050935093915050565b6000546001600160a01b0316331462000f5b5760405162461bcd60e51b8152600401620004729062001e74565b6001600160a01b03811662000f835760405163b8c9673160e01b815260040160405180910390fd5b603380546001600160a01b0319166001600160a01b0383169081179091556040517fcb7ef3e545f5cdb893f5c568ba710fe08f336375a2d9fd66e161033f8fc09ef390600090a250565b600154600160a81b900460ff166200103c5760405162461bcd60e51b815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201526a6e697469616c697a696e6760a81b606482015260840162000472565b600080546001600160a01b03191633179055565b606060006200105f836200125b565b905060006200108960405180604001604052806003815260200162029ac960ed1b8152506200125b565b90506000620010b36040518060400160405280600381526020016253592d60e81b8152506200125b565b9050620010d7620010d182620010ca868662001283565b9062001283565b62001309565b95945050505050565b606084828584620010f1876200137e565b604051602001620011079594939291906200217b565b6040516020818303038152906040529050949350505050565b600083471015620011745760405162461bcd60e51b815260206004820152601d60248201527f437265617465323a20696e73756666696369656e742062616c616e6365000000604482015260640162000472565b8151600003620011c75760405162461bcd60e51b815260206004820181905260248201527f437265617465323a2062797465636f6465206c656e677468206973207a65726f604482015260640162000472565b8282516020840186f590506001600160a01b038116620012265760405162461bcd60e51b8152602060048201526019602482015278437265617465323a204661696c6564206f6e206465706c6f7960381b604482015260640162000472565b9392505050565b6000806200123f8787878787620013fc565b90506200124e89898362001120565b9998505050505050505050565b6200126562001c32565b50604080518082019091528151815260209182019181019190915290565b6200128d62001c32565b815183511015620012a057508162001303565b6020808301519084015160019114620012c85750815160208481015190840151829020919020145b8015620012fe57825184518590620012e290839062002206565b9052508251602085018051620012fa9083906200221c565b9052505b839150505b92915050565b6060600082600001516001600160401b038111156200132c576200132c62001f5d565b6040519080825280601f01601f19166020018201604052801562001357576020820181803683370190505b509050600060208201905062001377818560200151866000015162001450565b5092915050565b606060006200138d83620014d9565b90506000620013a3826040015160ff166200168e565b90506000620013b283620017c8565b90506000620013c9846000015161ffff166200168e565b9050828282604051602001620013e29392919062002232565b604051602081830303815290604052945050505050919050565b8451604080516020848701808501808401830190945283835291939192908401876000828b3c856000898301893c50602089810190858501016200144281838662001952565b505050505095945050505050565b602081106200149057815183526200146a6020846200221c565b9250620014796020836200221c565b91506200148860208262002206565b905062001450565b6000198115620014c6576001620014a983602062002206565b620014b79061010062002378565b620014c3919062002206565b90505b9151835183169219169190911790915250565b60408051606081018252600080825260208201819052918101829052908080620015038562001992565b61ffff168452620015166107b262001aab565b8451620015279061ffff1662001aab565b62001533919062002206565b915062001545826301e2850062002386565b6200155190846200221c565b9250816107b28560000151620015689190620023a0565b61ffff1662001578919062002206565b62001588906301e1338062002386565b6200159490846200221c565b92506000600191505b600c8260ff16116200161357620015b982866000015162001afc565b620015cb9060ff166201518062002386565b905085620015da85836200221c565b1115620015f05760ff8216602086015262001613565b620015fc81856200221c565b9350816200160a81620023be565b9250506200159d565b600191505b6200162c8560200151866000015162001afc565b60ff168260ff16116200168557856200164985620151806200221c565b11156200165f5760ff8216604086015262001685565b6200166e62015180856200221c565b9350816200167c81620023be565b92505062001618565b50505050919050565b606081600003620016b65750506040805180820190915260018152600360fc1b602082015290565b8160005b8115620016e65780620016cd81620023e0565b9150620016de9050600a83620023fc565b9150620016ba565b6000816001600160401b0381111562001703576200170362001f5d565b6040519080825280601f01601f1916602001820160405280156200172e576020820181803683370190505b50905060006200174060018462002206565b90505b8515620017bf5762001757600a8762002413565b620017649060306200221c565b60f81b8282815181106200177c576200177c6200242a565b60200101906001600160f81b031916908160001a9053508015620017aa5780620017a68162002440565b9150505b620017b7600a87620023fc565b955062001743565b50949350505050565b604080516101c08101825260036101808201818152622520a760e91b6101a0840152825282518084018452818152622322a160e91b60208281019190915280840191909152835180850185528281526226a0a960e91b8183015283850152835180850185528281526220a82960e91b8183015260608481019190915284518086018652838152624d415960e81b8184015260808501528451808601865283815262252aa760e91b8184015260a0850152845180860186528381526212955360ea1b8184015260c0850152845180860186528381526241554760e81b8184015260e0850152845180860186528381526205345560ec1b81840152610100850152845180860186528381526213d0d560ea1b8184015261012085015284518086018652838152622727ab60e91b8184015261014085015284518086019095529184526244454360e81b8482015261016083019390935291830151819062001930906001906200245a565b60ff16600c81106200194657620019466200242a565b60200201519392505050565b5b6020811062001974578151835260209283019290910190601f190162001953565b905182516020929092036101000a6000190180199091169116179052565b6000808080620019a76301e1338086620023fc565b620019b5906107b26200221c565b9150620019c46107b262001aab565b620019d38361ffff1662001aab565b620019df919062002206565b9050620019f1816301e2850062002386565b620019fd90846200221c565b92508062001a0e6107b284620023a0565b61ffff1662001a1e919062002206565b62001a2e906301e1338062002386565b62001a3a90846200221c565b92505b8483111562001aa35762001a5d62001a57600184620023a0565b62001bd4565b1562001a7b5762001a736301e285008462002206565b925062001a8e565b62001a8b6301e133808462002206565b92505b62001a9b600183620023a0565b915062001a3d565b509392505050565b600062001aba60018362002206565b915062001aca61019083620023fc565b62001ad7606484620023fc565b62001ae4600485620023fc565b62001af0919062002206565b6200130391906200221c565b60008260ff166001148062001b1457508260ff166003145b8062001b2357508260ff166005145b8062001b3257508260ff166007145b8062001b4157508260ff166008145b8062001b5057508260ff16600a145b8062001b5f57508260ff16600c145b1562001b6e5750601f62001303565b8260ff166004148062001b8457508260ff166006145b8062001b9357508260ff166009145b8062001ba257508260ff16600b145b1562001bb15750601e62001303565b62001bbc8262001bd4565b1562001bcb5750601d62001303565b50601c62001303565b600062001be360048362002476565b61ffff1615801562001c04575062001bfd60648362002476565b61ffff1615155b8062001303575062001c196101908362002476565b61ffff161592915050565b611308806200248f83390190565b604051806040016040528060008152602001600081525090565b6001600160a01b038116811462001c6257600080fd5b50565b8035801515811462001c7657600080fd5b919050565b60008060006060848603121562001c9157600080fd5b833562001c9e8162001c4c565b925062001cae6020850162001c65565b915062001cbe6040850162001c65565b90509250925092565b60006020828403121562001cda57600080fd5b8135620012268162001c4c565b6001600160a01b0391909116815260200190565b80356001600160801b038116811462001c7657600080fd5b60006020828403121562001d2657600080fd5b620012268262001cfb565b80356001600160601b038116811462001c7657600080fd5b60006020828403121562001d5c57600080fd5b620012268262001d31565b6000806000806080858703121562001d7e57600080fd5b62001d898562001d31565b935062001d996020860162001cfb565b925062001da96040860162001cfb565b9150606085013562001dbb8162001c4c565b939692955090935050565b6000806040838503121562001dda57600080fd5b823562001de78162001c4c565b946020939093013593505050565b6001600160801b0391909116815260200190565b60008060006060848603121562001e1f57600080fd5b833562001e2c8162001c4c565b9250602084013563ffffffff8116811462001cae57600080fd5b6001600160a01b0392831681529116602082015260400190565b6001600160601b0391909116815260200190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b6001600160801b03929092168252602082015260400190565b634e487b7160e01b600052601260045260246000fd5b60006001600160601b038381168062001ef55762001ef562001ec2565b92169190910692915050565b60008060006060848603121562001f1757600080fd5b83516002811062001f2757600080fd5b602085015190935062001f3a8162001c4c565b604085015190925060ff8116811462001f5257600080fd5b809150509250925092565b634e487b7160e01b600052604160045260246000fd5b60005b8381101562001f9057818101518382015260200162001f76565b50506000910152565b60006020828403121562001fac57600080fd5b81516001600160401b038082111562001fc457600080fd5b818401915084601f83011262001fd957600080fd5b81518181111562001fee5762001fee62001f5d565b604051601f8201601f19908116603f0116810190838211818310171562002019576200201962001f5d565b816040528281528760208487010111156200203357600080fd5b6200204683602083016020880162001f73565b979650505050505050565b600081518084526200206b81602086016020860162001f73565b601f01601f19169290920160200192915050565b6001600160a01b038616815260a060208201819052600090620020a59083018762002051565b8281036040840152620020b9818762002051565b91505060ff8416606083015263ffffffff831660808301529695505050505050565b60008351620020ef81846020880162001f73565b8351908301906200210581836020880162001f73565b01949350505050565b6001600160a01b0388811682528716602082015260e0604082018190526000906200213c9083018862002051565b828103606084015262002150818862002051565b60ff969096166080840152505063ffffffff9290921660a0830152151560c090910152949350505050565b600086516200218f818460208b0162001f73565b865190830190620021a5818360208b0162001f73565b8651910190620021ba818360208a0162001f73565b8551910190620021cf81836020890162001f73565b8451910190620021e481836020880162001f73565b01979650505050505050565b634e487b7160e01b600052601160045260246000fd5b81810381811115620013035762001303620021f0565b80820180821115620013035762001303620021f0565b600084516200224681846020890162001f73565b8451908301906200225c81836020890162001f73565b84519101906200227181836020880162001f73565b0195945050505050565b600181815b80851115620022bc578160001904821115620022a057620022a0620021f0565b80851615620022ae57918102915b93841c939080029062002280565b509250929050565b600082620022d55750600162001303565b81620022e45750600062001303565b8160018114620022fd5760028114620023085762002328565b600191505062001303565b60ff8411156200231c576200231c620021f0565b50506001821b62001303565b5060208310610133831016604e8410600b84101617156200234d575081810a62001303565b6200235983836200227b565b8060001904821115620023705762002370620021f0565b029392505050565b6000620012268383620022c4565b8082028115828204841417620013035762001303620021f0565b61ffff828116828216039080821115620013775762001377620021f0565b600060ff821660ff8103620023d757620023d7620021f0565b60010192915050565b600060018201620023f557620023f5620021f0565b5060010190565b6000826200240e576200240e62001ec2565b500490565b60008262002425576200242562001ec2565b500690565b634e487b7160e01b600052603260045260246000fd5b600081620024525762002452620021f0565b506000190190565b60ff8281168282160390811115620013035762001303620021f0565b600061ffff8084168062001ef55762001ef562001ec256fe6101006040523480156200001257600080fd5b506040516200130838038062001308833981016040819052620000359162000159565b83838360036200004684826200029a565b5060046200005583826200029a565b5060ff166080525050600280546001600160f81b0316600160f81b1790556001600160a01b0390941660a05250505060e0523360c05262000366565b634e487b7160e01b600052604160045260246000fd5b600082601f830112620000b957600080fd5b81516001600160401b0380821115620000d657620000d662000091565b604051601f8301601f19908116603f0116810190828211818310171562000101576200010162000091565b81604052838152602092508660208588010111156200011f57600080fd5b600091505b8382101562000143578582018301518183018401529082019062000124565b6000602085830101528094505050505092915050565b600080600080600060a086880312156200017257600080fd5b85516001600160a01b03811681146200018a57600080fd5b60208701519095506001600160401b0380821115620001a857600080fd5b620001b689838a01620000a7565b95506040880151915080821115620001cd57600080fd5b50620001dc88828901620000a7565b935050606086015160ff81168114620001f457600080fd5b80925050608086015190509295509295909350565b600181811c908216806200021e57607f821691505b6020821081036200023f57634e487b7160e01b600052602260045260246000fd5b50919050565b601f82111562000295576000816000526020600020601f850160051c81016020861015620002705750805b601f850160051c820191505b8181101562000291578281556001016200027c565b5050505b505050565b81516001600160401b03811115620002b657620002b662000091565b620002ce81620002c7845462000209565b8462000245565b602080601f831160018114620003065760008415620002ed5750858301515b600019600386901b1c1916600185901b17855562000291565b600085815260208120601f198616915b82811015620003375788860151825594840194600190910190840162000316565b5085821015620003565787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b60805160a05160c05160e051610f5a620003ae6000396000818161016601526102c701526000818161027a01526105e201526000610240015260006101920152610f5a6000f3fe608060405234801561001057600080fd5b50600436106100db5760003560e01c806306fdde03146100e0578063095ea7b3146100fe57806312a31dcc1461012157806318160ddd1461013657806323b872dd146101515780632f13b60c14610164578063313ce5671461018d57806370a08231146101c6578063781c18db146101ef57806395d89b4114610220578063a9059cbb14610228578063afd27bf51461023b578063b64761f914610262578063c45a015514610275578063c4d66de81461029c578063dd62ed3e146102af578063e184c9be146102c2575b600080fd5b6100e86102e9565b6040516100f59190610cfd565b60405180910390f35b61011161010c366004610d68565b61037b565b60405190151581526020016100f5565b61013461012f366004610d68565b610395565b005b6002546001600160f81b03165b6040519081526020016100f5565b61011161015f366004610d92565b6103d4565b7f0000000000000000000000000000000000000000000000000000000000000000421015610111565b6101b47f000000000000000000000000000000000000000000000000000000000000000081565b60405160ff90911681526020016100f5565b6101436101d4366004610dce565b6001600160a01b031660009081526020819052604090205490565b600554610208906201000090046001600160a01b031681565b6040516001600160a01b0390911681526020016100f5565b6100e861045b565b610111610236366004610d68565b61046a565b6102087f000000000000000000000000000000000000000000000000000000000000000081565b610134610270366004610d68565b6104dc565b6102087f000000000000000000000000000000000000000000000000000000000000000081565b6101346102aa366004610dce565b610517565b6101436102bd366004610df0565b61068b565b6101437f000000000000000000000000000000000000000000000000000000000000000081565b6060600380546102f890610e23565b80601f016020809104026020016040519081016040528092919081815260200182805461032490610e23565b80156103715780601f1061034657610100808354040283529160200191610371565b820191906000526020600020905b81548152906001019060200180831161035457829003601f168201915b5050505050905090565b6000336103898185856106b6565b60019150505b92915050565b6005546201000090046001600160a01b031633146103c657604051631622975360e31b815260040160405180910390fd5b6103d082826107db565b5050565b600254600090600119600160f81b90910460ff160161040e5760405162461bcd60e51b815260040161040590610e5d565b60405180910390fd5b600280546001600160f81b0316600160f91b1790553361042f8582856108e5565b61043a85858561095f565b6001915050600280546001600160f81b0316600160f81b1790559392505050565b6060600480546102f890610e23565b600254600090600119600160f81b90910460ff160161049b5760405162461bcd60e51b815260040161040590610e5d565b600280546001600160f81b0316600160f91b179055336104bc81858561095f565b6001915050600280546001600160f81b0316600160f81b17905592915050565b6005546201000090046001600160a01b0316331461050d57604051631622975360e31b815260040160405180910390fd5b6103d08282610b76565b600554610100900460ff16158080156105375750600554600160ff909116105b806105515750303b158015610551575060055460ff166001145b6105b45760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b6064820152608401610405565b6005805460ff1916600117905580156105d7576005805461ff0019166101001790555b336001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146106205760405163fe10817360e01b815260040160405180910390fd5b6005805462010000600160b01b031916620100006001600160a01b0385160217905580156103d0576005805461ff0019169055604051600181527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989060200160405180910390a15050565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b6001600160a01b0383166107185760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608401610405565b6001600160a01b0382166107795760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608401610405565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591015b60405180910390a3505050565b6001600160a01b0382166108315760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f2061646472657373006044820152606401610405565b61083a81610ce3565b600280546000906108559084906001600160f81b0316610eaa565b92506101000a8154816001600160f81b0302191690836001600160f81b0316021790555080600080846001600160a01b03166001600160a01b0316815260200190815260200160002060008282546108ad9190610ed1565b90915550506040518181526001600160a01b03831690600090600080516020610f058339815191529060200160405180910390a35050565b60006108f1848461068b565b90506000198114610959578181101561094c5760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e63650000006044820152606401610405565b61095984848484036106b6565b50505050565b6001600160a01b0383166109c35760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b6064820152608401610405565b6001600160a01b038216610a255760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b6064820152608401610405565b816001600160a01b0316836001600160a01b031603610a805760405162461bcd60e51b815260206004820152601760248201527622a92199181d103a3930b739b332b9103a379039b2b63360491b6044820152606401610405565b6001600160a01b03831660009081526020819052604090205481811015610af85760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b6064820152608401610405565b6001600160a01b03808516600090815260208190526040808220858503905591851681529081208054849290610b2f908490610ed1565b92505081905550826001600160a01b0316846001600160a01b0316600080516020610f0583398151915284604051610b6991815260200190565b60405180910390a3610959565b6001600160a01b038216610bd65760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b6064820152608401610405565b6001600160a01b03821660009081526020819052604090205481811015610c4a5760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b6064820152608401610405565b6001600160a01b03831660009081526020819052604090208282039055610c7082610ce3565b60028054600090610c8b9084906001600160f81b0316610ee4565b92506101000a8154816001600160f81b0302191690836001600160f81b0316021790555060006001600160a01b0316836001600160a01b0316600080516020610f05833981519152846040516107ce91815260200190565b60006001600160f81b03821115610cf957600080fd5b5090565b60006020808352835180602085015260005b81811015610d2b57858101830151858201604001528201610d0f565b506000604082860101526040601f19601f8301168501019250505092915050565b80356001600160a01b0381168114610d6357600080fd5b919050565b60008060408385031215610d7b57600080fd5b610d8483610d4c565b946020939093013593505050565b600080600060608486031215610da757600080fd5b610db084610d4c565b9250610dbe60208501610d4c565b9150604084013590509250925092565b600060208284031215610de057600080fd5b610de982610d4c565b9392505050565b60008060408385031215610e0357600080fd5b610e0c83610d4c565b9150610e1a60208401610d4c565b90509250929050565b600181811c90821680610e3757607f821691505b602082108103610e5757634e487b7160e01b600052602260045260246000fd5b50919050565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b634e487b7160e01b600052601160045260246000fd5b6001600160f81b03818116838216019080821115610eca57610eca610e94565b5092915050565b8082018082111561038f5761038f610e94565b6001600160f81b03828116828216039080821115610eca57610eca610e9456feddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3efa26469706673582212205f5a4b84184097654798248d1b8620a71e2d839a95f8eb5c34500cc7b9ccf0f964736f6c634300081700338be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0a2646970667358221220e389724d0488d04b7bc2211a418925e1cdd81032c7e73dc673667203d700980c64736f6c63430008170033";
|
|
602
|
+
|
|
603
|
+
type PendleYieldContractFactoryConstructorParams =
|
|
604
|
+
| [signer?: Signer]
|
|
605
|
+
| ConstructorParameters<typeof ContractFactory>;
|
|
606
|
+
|
|
607
|
+
const isSuperArgs = (
|
|
608
|
+
xs: PendleYieldContractFactoryConstructorParams
|
|
609
|
+
): xs is ConstructorParameters<typeof ContractFactory> => xs.length > 1;
|
|
610
|
+
|
|
611
|
+
export class PendleYieldContractFactory__factory extends ContractFactory {
|
|
612
|
+
constructor(...args: PendleYieldContractFactoryConstructorParams) {
|
|
613
|
+
if (isSuperArgs(args)) {
|
|
614
|
+
super(...args);
|
|
615
|
+
} else {
|
|
616
|
+
super(_abi, _bytecode, args[0]);
|
|
617
|
+
}
|
|
618
|
+
this.contractName = "PendleYieldContractFactory";
|
|
619
|
+
}
|
|
620
|
+
|
|
621
|
+
deploy(
|
|
622
|
+
_ytCreationCodeContractA: string,
|
|
623
|
+
_ytCreationCodeSizeA: BigNumberish,
|
|
624
|
+
_ytCreationCodeContractB: string,
|
|
625
|
+
_ytCreationCodeSizeB: BigNumberish,
|
|
626
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
627
|
+
): Promise<PendleYieldContractFactory> {
|
|
628
|
+
return super.deploy(
|
|
629
|
+
_ytCreationCodeContractA,
|
|
630
|
+
_ytCreationCodeSizeA,
|
|
631
|
+
_ytCreationCodeContractB,
|
|
632
|
+
_ytCreationCodeSizeB,
|
|
633
|
+
overrides || {}
|
|
634
|
+
) as Promise<PendleYieldContractFactory>;
|
|
635
|
+
}
|
|
636
|
+
getDeployTransaction(
|
|
637
|
+
_ytCreationCodeContractA: string,
|
|
638
|
+
_ytCreationCodeSizeA: BigNumberish,
|
|
639
|
+
_ytCreationCodeContractB: string,
|
|
640
|
+
_ytCreationCodeSizeB: BigNumberish,
|
|
641
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
642
|
+
): TransactionRequest {
|
|
643
|
+
return super.getDeployTransaction(
|
|
644
|
+
_ytCreationCodeContractA,
|
|
645
|
+
_ytCreationCodeSizeA,
|
|
646
|
+
_ytCreationCodeContractB,
|
|
647
|
+
_ytCreationCodeSizeB,
|
|
648
|
+
overrides || {}
|
|
649
|
+
);
|
|
650
|
+
}
|
|
651
|
+
attach(address: string): PendleYieldContractFactory {
|
|
652
|
+
return super.attach(address) as PendleYieldContractFactory;
|
|
653
|
+
}
|
|
654
|
+
connect(signer: Signer): PendleYieldContractFactory__factory {
|
|
655
|
+
return super.connect(signer) as PendleYieldContractFactory__factory;
|
|
656
|
+
}
|
|
657
|
+
static readonly contractName: "PendleYieldContractFactory";
|
|
658
|
+
public readonly contractName: "PendleYieldContractFactory";
|
|
659
|
+
static readonly bytecode = _bytecode;
|
|
660
|
+
static readonly abi = _abi;
|
|
661
|
+
static createInterface(): PendleYieldContractFactoryInterface {
|
|
662
|
+
return new utils.Interface(_abi) as PendleYieldContractFactoryInterface;
|
|
663
|
+
}
|
|
664
|
+
static connect(
|
|
665
|
+
address: string,
|
|
666
|
+
signerOrProvider: Signer | Provider
|
|
667
|
+
): PendleYieldContractFactory {
|
|
668
|
+
return new Contract(
|
|
669
|
+
address,
|
|
670
|
+
_abi,
|
|
671
|
+
signerOrProvider
|
|
672
|
+
) as PendleYieldContractFactory;
|
|
673
|
+
}
|
|
674
|
+
}
|