@pendle/core-v2 0.6.5 → 0.6.7
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/SuperComposableYield/ISuperComposableYield.sol/ISuperComposableYield.dbg.json +1 -1
- package/build/artifacts/contracts/SuperComposableYield/ISuperComposableYield.sol/ISuperComposableYield.json +13 -0
- package/build/artifacts/contracts/SuperComposableYield/SCYUtils.sol/SCYUtils.dbg.json +1 -1
- package/build/artifacts/contracts/SuperComposableYield/implementations/IRewardManager.sol/IRewardManager.dbg.json +1 -1
- package/build/artifacts/contracts/SuperComposableYield/implementations/RewardManager.sol/RewardManager.dbg.json +1 -1
- package/build/artifacts/contracts/SuperComposableYield/implementations/SCYBase.sol/SCYBase.dbg.json +1 -1
- package/build/artifacts/contracts/SuperComposableYield/implementations/SCYBase.sol/SCYBase.json +13 -0
- package/build/artifacts/contracts/SuperComposableYield/implementations/SCYBaseWithRewards.sol/SCYBaseWithRewards.dbg.json +1 -1
- package/build/artifacts/contracts/SuperComposableYield/implementations/SCYBaseWithRewards.sol/SCYBaseWithRewards.json +13 -0
- package/build/artifacts/contracts/core/PendleBaseToken.sol/PendleBaseToken.dbg.json +1 -1
- package/build/artifacts/contracts/core/PendleBaseToken.sol/PendleBaseToken.json +1 -1
- package/build/artifacts/contracts/core/PendleMarket.sol/PendleMarket.dbg.json +1 -1
- package/build/artifacts/contracts/core/PendleMarket.sol/PendleMarket.json +56 -51
- package/build/artifacts/contracts/core/PendleMarketFactory.sol/PendleMarketFactory.dbg.json +1 -1
- package/build/artifacts/contracts/core/PendleMarketFactory.sol/PendleMarketFactory.json +30 -4
- package/build/artifacts/contracts/core/PendlePrincipalToken.sol/PendlePrincipalToken.dbg.json +4 -0
- package/build/artifacts/contracts/core/PendlePrincipalToken.sol/PendlePrincipalToken.json +452 -0
- package/build/artifacts/contracts/core/PendleRouter.sol/PendleRouter.dbg.json +1 -1
- package/build/artifacts/contracts/core/PendleRouter.sol/PendleRouter.json +2 -2
- package/build/artifacts/contracts/core/PendleSCYImpl/AaveV3/PendleAaveV3SCY.sol/PendleAaveV3SCY.dbg.json +1 -1
- package/build/artifacts/contracts/core/PendleSCYImpl/AaveV3/PendleAaveV3SCY.sol/PendleAaveV3SCY.json +20 -2
- package/build/artifacts/contracts/core/PendleSCYImpl/AaveV3/WadRayMath.sol/WadRayMath.dbg.json +1 -1
- package/build/artifacts/contracts/core/PendleSCYImpl/PendleBenQiErc20SCY.sol/PendleBenQiErc20SCY.dbg.json +1 -1
- package/build/artifacts/contracts/core/PendleSCYImpl/PendleBenQiErc20SCY.sol/PendleBenQiErc20SCY.json +21 -16
- package/build/artifacts/contracts/core/PendleSCYImpl/PendleBtrflySCY.sol/PendleBtrflyScy.dbg.json +1 -1
- package/build/artifacts/contracts/core/PendleSCYImpl/PendleBtrflySCY.sol/PendleBtrflyScy.json +21 -16
- package/build/artifacts/contracts/core/PendleSCYImpl/PendleStETHSCY.sol/PendleStEthSCY.dbg.json +1 -1
- package/build/artifacts/contracts/core/PendleSCYImpl/PendleStETHSCY.sol/PendleStEthSCY.json +23 -18
- package/build/artifacts/contracts/core/PendleSCYImpl/PendleYearnVaultSCY.sol/PendleYearnVaultScy.dbg.json +1 -1
- package/build/artifacts/contracts/core/PendleSCYImpl/PendleYearnVaultSCY.sol/PendleYearnVaultScy.json +22 -17
- package/build/artifacts/contracts/core/PendleYieldContractFactory.sol/PendleYieldContractFactory.dbg.json +1 -1
- package/build/artifacts/contracts/core/PendleYieldContractFactory.sol/PendleYieldContractFactory.json +7 -7
- package/build/artifacts/contracts/core/PendleYieldToken.sol/PendleYieldToken.dbg.json +1 -1
- package/build/artifacts/contracts/core/PendleYieldToken.sol/PendleYieldToken.json +9 -9
- package/build/artifacts/contracts/core/RouterStatic.sol/RouterStatic.dbg.json +1 -1
- package/build/artifacts/contracts/core/RouterStatic.sol/RouterStatic.json +628 -12
- package/build/artifacts/contracts/core/actions/ActionCallback.sol/ActionCallback.dbg.json +1 -1
- package/build/artifacts/contracts/core/actions/ActionCallback.sol/ActionCallback.json +3 -3
- package/build/artifacts/contracts/core/actions/ActionCore.sol/ActionCore.dbg.json +1 -1
- package/build/artifacts/contracts/core/actions/ActionCore.sol/ActionCore.json +128 -92
- package/build/artifacts/contracts/core/actions/ActionRedeem.sol/ActionRedeem.dbg.json +4 -0
- package/build/artifacts/contracts/core/actions/ActionRedeem.sol/{PendleRouterRedeemUpg.json → ActionRedeem.json} +3 -3
- package/build/artifacts/contracts/core/actions/ActionYT.sol/ActionYT.dbg.json +1 -1
- package/build/artifacts/contracts/core/actions/ActionYT.sol/ActionYT.json +105 -69
- package/build/artifacts/contracts/core/actions/base/ActionSCYAndPTBase.sol/ActionSCYAndPTBase.dbg.json +4 -0
- package/build/artifacts/contracts/core/actions/base/{ActionSCYAndOTBase.sol/ActionSCYAndOTBase.json → ActionSCYAndPTBase.sol/ActionSCYAndPTBase.json} +2 -2
- package/build/artifacts/contracts/core/actions/base/ActionSCYAndPYBase.sol/ActionSCYAndPYBase.dbg.json +4 -0
- package/build/artifacts/contracts/core/actions/base/{ActionSCYAndYOBase.sol/ActionSCYAndYOBase.json → ActionSCYAndPYBase.sol/ActionSCYAndPYBase.json} +14 -14
- package/build/artifacts/contracts/core/actions/base/ActionSCYAndYTBase.sol/ActionSCYAndYTBase.dbg.json +1 -1
- package/build/artifacts/contracts/core/actions/base/ActionSCYAndYTBase.sol/ActionSCYAndYTBase.json +12 -12
- package/build/artifacts/contracts/core/actions/base/ActionType.sol/ActionType.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IAToken.sol/IAToken.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IAavePool.sol/IAavePool.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IAaveRewardsController.sol/IAaveRewardsController.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IBenQiComptroller.sol/IBenQiComptroller.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IJoePair.sol/IJoePair.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IJoeRouter01.sol/IJoeRouter01.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPActionCore.sol/IPActionCore.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPActionCore.sol/IPActionCore.json +114 -78
- package/build/artifacts/contracts/interfaces/IPActionRedeem.sol/IPActionRedeem.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPActionYT.sol/IPActionYT.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPActionYT.sol/IPActionYT.json +90 -54
- package/build/artifacts/contracts/interfaces/IPAllAction.sol/IPAllAction.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPAllAction.sol/IPAllAction.json +210 -138
- package/build/artifacts/contracts/interfaces/IPBaseToken.sol/IPBaseToken.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPGovernanceManager.sol/IPGovernanceManager.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPMarket.sol/IPMarket.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPMarket.sol/IPMarket.json +14 -14
- package/build/artifacts/contracts/interfaces/IPMarketAddRemoveCallback.sol/IPMarketAddRemoveCallback.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPMarketAddRemoveCallback.sol/IPMarketAddRemoveCallback.json +2 -2
- package/build/artifacts/contracts/interfaces/IPMarketFactory.sol/IPMarketFactory.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPMarketFactory.sol/IPMarketFactory.json +1 -1
- package/build/artifacts/contracts/interfaces/IPMarketSwapCallback.sol/IPMarketSwapCallback.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPMarketSwapCallback.sol/IPMarketSwapCallback.json +1 -1
- package/build/artifacts/contracts/interfaces/IPPermissionsV2Upg.sol/IPermissionsV2Upg.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPPrincipalToken.sol/IPPrincipalToken.dbg.json +4 -0
- package/build/artifacts/contracts/interfaces/{IPOwnershipToken.sol/IPOwnershipToken.json → IPPrincipalToken.sol/IPPrincipalToken.json} +2 -2
- package/build/artifacts/contracts/interfaces/IPRouterStatic.sol/IPRouterStatic.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPRouterStatic.sol/IPRouterStatic.json +626 -10
- package/build/artifacts/contracts/interfaces/IPYieldContractFactory.sol/IPYieldContractFactory.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPYieldContractFactory.sol/IPYieldContractFactory.json +3 -3
- package/build/artifacts/contracts/interfaces/IPYieldToken.sol/IPYieldToken.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPYieldToken.sol/IPYieldToken.json +5 -5
- package/build/artifacts/contracts/interfaces/IPendleGauge.sol/IPendleGauge.dbg.json +4 -0
- package/build/artifacts/contracts/interfaces/IPendleGauge.sol/IPendleGauge.json +113 -0
- package/build/artifacts/contracts/interfaces/IQiErc20.sol/IQiErc20.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IQiToken.sol/IQiToken.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IREDACTEDStaking.sol/IREDACTEDStaking.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IVePToken.sol/IVePToken.dbg.json +4 -0
- package/build/artifacts/contracts/interfaces/IVePToken.sol/IVePToken.json +43 -0
- package/build/artifacts/contracts/interfaces/IVotingEscrowController.sol/VotingEscrowController.dbg.json +4 -0
- package/build/artifacts/contracts/interfaces/IVotingEscrowController.sol/VotingEscrowController.json +61 -0
- package/build/artifacts/contracts/interfaces/IVotingEscrowPendle.sol/IVotingEscrowPendle.dbg.json +4 -0
- package/build/artifacts/contracts/interfaces/IVotingEscrowPendle.sol/IVotingEscrowPendle.json +167 -0
- package/build/artifacts/contracts/interfaces/IWETH.sol/IWETH.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IWXBTRFLY.sol/IWXBTRFLY.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IWstETH.sol/IWstETH.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IYearnVault.sol/IYearnVault.dbg.json +1 -1
- package/build/artifacts/contracts/libraries/JoeLibrary.sol/JoeLibrary.dbg.json +1 -1
- package/build/artifacts/contracts/libraries/JoeLibrary.sol/JoeLibrary.json +2 -2
- package/build/artifacts/contracts/libraries/SCYIndex.sol/SCYIndexLib.dbg.json +1 -1
- package/build/artifacts/contracts/libraries/SCYIndex.sol/SCYIndexLib.json +2 -2
- package/build/artifacts/contracts/libraries/helpers/ExpiryUtilsLib.sol/ExpiryUtils.dbg.json +1 -1
- package/build/artifacts/contracts/libraries/math/LogExpMath.sol/LogExpMath.dbg.json +1 -1
- package/build/artifacts/contracts/libraries/math/LogExpMath.sol/LogExpMath.json +2 -2
- package/build/artifacts/contracts/libraries/math/MarketApproxLib.sol/MarketApproxLib.dbg.json +1 -1
- package/build/artifacts/contracts/libraries/math/MarketApproxLib.sol/MarketApproxLib.json +2 -2
- package/build/artifacts/contracts/libraries/math/MarketMathAux.sol/MarketMathAux.dbg.json +1 -1
- package/build/artifacts/contracts/libraries/math/MarketMathAux.sol/MarketMathAux.json +2 -2
- package/build/artifacts/contracts/libraries/math/MarketMathCore.sol/MarketMathCore.dbg.json +1 -1
- package/build/artifacts/contracts/libraries/math/MarketMathCore.sol/MarketMathCore.json +2 -2
- package/build/artifacts/contracts/libraries/math/Math.sol/Math.dbg.json +1 -1
- package/build/artifacts/contracts/libraries/math/Math.sol/Math.json +2 -2
- package/build/artifacts/contracts/periphery/PendleGovernanceManager.sol/PendleGovernanceManager.dbg.json +1 -1
- package/build/artifacts/contracts/periphery/PendleGovernanceManager.sol/PendleGovernanceManager.json +3 -3
- package/build/artifacts/contracts/periphery/PendleJoeSwapHelperUpg.sol/PendleJoeSwapHelperUpg.dbg.json +1 -1
- package/build/artifacts/contracts/periphery/PermissionsV2Upg.sol/PermissionsV2Upg.dbg.json +1 -1
- package/contracts/interfaces/IPendleGauge.sol +32 -0
- package/contracts/interfaces/IVePToken.sol +14 -0
- package/contracts/interfaces/IVotingEscrowController.sol +14 -0
- package/contracts/interfaces/IVotingEscrowPendle.sol +32 -0
- package/contracts/libraries/math/MarketApproxLib.sol +1 -1
- package/package.json +1 -1
- package/typechain-types/ActionCallback.ts +5 -5
- package/typechain-types/ActionCore.ts +232 -280
- package/typechain-types/{PendleRouterRedeemUpg.ts → ActionRedeem.ts} +5 -5
- package/typechain-types/{ActionSCYAndYOBase.ts → ActionSCYAndPYBase.ts} +54 -54
- package/typechain-types/ActionSCYAndYTBase.ts +49 -49
- package/typechain-types/ActionYT.ts +92 -140
- package/typechain-types/IPActionCore.ts +183 -231
- package/typechain-types/IPActionYT.ts +43 -91
- package/typechain-types/IPAllAction.ts +204 -322
- package/typechain-types/IPMarket.ts +55 -55
- package/typechain-types/IPMarketAddRemoveCallback.ts +10 -10
- package/typechain-types/IPMarketFactory.ts +3 -3
- package/typechain-types/IPMarketSwapCallback.ts +5 -5
- package/typechain-types/{IPOwnershipToken.ts → IPPrincipalToken.ts} +5 -5
- package/typechain-types/IPRouterStatic.ts +529 -49
- package/typechain-types/IPYieldContractFactory.ts +19 -19
- package/typechain-types/IPYieldToken.ts +29 -29
- package/typechain-types/IPendleGauge.ts +241 -0
- package/typechain-types/ISuperComposableYield.ts +13 -0
- package/typechain-types/{IVEPendleToken.ts → IVePToken.ts} +16 -34
- package/typechain-types/IVotingEscrowPendle.ts +297 -0
- package/typechain-types/PendleAaveV3SCY.ts +13 -0
- package/typechain-types/PendleBaseToken.ts +1 -1
- package/typechain-types/PendleBenQiErc20SCY.ts +14 -20
- package/typechain-types/PendleBtrflyScy.ts +14 -20
- package/typechain-types/PendleGovernanceManager.ts +5 -5
- package/typechain-types/PendleMarket.ts +102 -105
- package/typechain-types/PendleMarketFactory.ts +48 -8
- package/typechain-types/{PendleOwnershipToken.ts → PendlePrincipalToken.ts} +15 -6
- package/typechain-types/PendleStEthSCY.ts +15 -23
- package/typechain-types/PendleYearnVaultScy.ts +15 -23
- package/typechain-types/PendleYieldContractFactory.ts +28 -28
- package/typechain-types/PendleYieldToken.ts +30 -30
- package/typechain-types/RouterStatic.ts +529 -49
- package/typechain-types/SCYBase.ts +13 -0
- package/typechain-types/SCYBaseWithRewards.ts +13 -0
- package/typechain-types/{IPRouterRedeem.ts → VotingEscrowController.ts} +55 -56
- package/typechain-types/factories/ActionCallback__factory.ts +2 -2
- package/typechain-types/factories/ActionCore__factory.ts +127 -91
- package/typechain-types/factories/{PendleRouterRedeemUpg__factory.ts → ActionRedeem__factory.ts} +19 -26
- package/typechain-types/factories/{ActionSCYAndYOBase__factory.ts → ActionSCYAndPYBase__factory.ts} +20 -20
- package/typechain-types/factories/ActionSCYAndYTBase__factory.ts +12 -12
- package/typechain-types/factories/ActionYT__factory.ts +104 -68
- package/typechain-types/factories/IPActionCore__factory.ts +114 -78
- package/typechain-types/factories/IPActionYT__factory.ts +90 -54
- package/typechain-types/factories/IPAllAction__factory.ts +210 -138
- package/typechain-types/factories/IPMarketAddRemoveCallback__factory.ts +2 -2
- package/typechain-types/factories/IPMarketFactory__factory.ts +1 -1
- package/typechain-types/factories/IPMarketSwapCallback__factory.ts +1 -1
- package/typechain-types/factories/IPMarket__factory.ts +14 -14
- package/typechain-types/factories/{IPOwnershipToken__factory.ts → IPPrincipalToken__factory.ts} +8 -8
- package/typechain-types/factories/IPRouterStatic__factory.ts +626 -10
- package/typechain-types/factories/IPYieldContractFactory__factory.ts +3 -3
- package/typechain-types/factories/IPYieldToken__factory.ts +5 -5
- package/typechain-types/factories/IPendleGauge__factory.ts +125 -0
- package/typechain-types/factories/ISuperComposableYield__factory.ts +13 -0
- package/typechain-types/factories/{IXPendle__factory.ts → IVePToken__factory.ts} +10 -16
- package/typechain-types/factories/{QiErc20Interface__factory.ts → IVotingEscrowPendle__factory.ts} +41 -98
- package/typechain-types/factories/PendleAaveV3SCY__factory.ts +24 -1
- package/typechain-types/factories/PendleBaseToken__factory.ts +1 -1
- package/typechain-types/factories/PendleBenQiErc20SCY__factory.ts +25 -15
- package/typechain-types/factories/PendleBtrflyScy__factory.ts +25 -15
- package/typechain-types/factories/PendleGovernanceManager__factory.ts +2 -2
- package/typechain-types/factories/PendleMarketFactory__factory.ts +29 -3
- package/typechain-types/factories/PendleMarket__factory.ts +59 -54
- package/typechain-types/factories/PendlePrincipalToken__factory.ts +540 -0
- package/typechain-types/factories/PendleRouter__factory.ts +1 -1
- package/typechain-types/factories/PendleStEthSCY__factory.ts +27 -17
- package/typechain-types/factories/PendleYearnVaultScy__factory.ts +26 -16
- package/typechain-types/factories/PendleYieldContractFactory__factory.ts +6 -6
- package/typechain-types/factories/PendleYieldToken__factory.ts +12 -12
- package/typechain-types/factories/RouterStatic__factory.ts +627 -11
- package/typechain-types/factories/SCYBaseWithRewards__factory.ts +13 -0
- package/typechain-types/factories/SCYBase__factory.ts +13 -0
- package/typechain-types/factories/{IVEPendleToken__factory.ts → VotingEscrowController__factory.ts} +33 -24
- package/typechain-types/hardhat.d.ts +56 -20
- package/typechain-types/index.ts +16 -8
- package/build/artifacts/contracts/core/PendleOwnershipToken.sol/PendleOwnershipToken.dbg.json +0 -4
- package/build/artifacts/contracts/core/PendleOwnershipToken.sol/PendleOwnershipToken.json +0 -439
- package/build/artifacts/contracts/core/actions/ActionRedeem.sol/PendleRouterRedeemUpg.dbg.json +0 -4
- package/build/artifacts/contracts/core/actions/base/ActionSCYAndOTBase.sol/ActionSCYAndOTBase.dbg.json +0 -4
- package/build/artifacts/contracts/core/actions/base/ActionSCYAndYOBase.sol/ActionSCYAndYOBase.dbg.json +0 -4
- package/build/artifacts/contracts/interfaces/IPOwnershipToken.sol/IPOwnershipToken.dbg.json +0 -4
- package/typechain-types/AggregatorV2V3Interface.ts +0 -380
- package/typechain-types/BenqiChainlinkOracle.ts +0 -362
- package/typechain-types/BoringOwnable.ts +0 -194
- package/typechain-types/BoringOwnableData.ts +0 -100
- package/typechain-types/BoringOwnableUpg.ts +0 -194
- package/typechain-types/BoringOwnableUpgData.ts +0 -100
- package/typechain-types/Comptroller.ts +0 -2860
- package/typechain-types/ComptrollerErrorReporter.ts +0 -70
- package/typechain-types/ComptrollerInterface.ts +0 -881
- package/typechain-types/ComptrollerVXStorage.ts +0 -781
- package/typechain-types/CrosschainContract.ts +0 -113
- package/typechain-types/CrosschainReceiver.ts +0 -347
- package/typechain-types/CrosschainSender.ts +0 -210
- package/typechain-types/EIP20Interface.ts +0 -337
- package/typechain-types/EIP20NonStandardInterface.ts +0 -298
- package/typechain-types/ERC20Burnable.ts +0 -473
- package/typechain-types/ERC20Locker.ts +0 -91
- package/typechain-types/ERC20Premined.ts +0 -473
- package/typechain-types/ERC20PresetFixedSupply.ts +0 -473
- package/typechain-types/EpochController.ts +0 -195
- package/typechain-types/FundKeeper.ts +0 -347
- package/typechain-types/GaugeTypeControllerAbstract.ts +0 -546
- package/typechain-types/GaugeTypeControllerCrosschain.ts +0 -733
- package/typechain-types/GaugeTypeControllerMainchain.ts +0 -604
- package/typechain-types/IGaugeController.ts +0 -99
- package/typechain-types/ILiquidYieldToken.ts +0 -639
- package/typechain-types/ILiquidYieldTokenWrap.ts +0 -790
- package/typechain-types/IMessageBus.ts +0 -543
- package/typechain-types/IMessageReceiverApp.ts +0 -110
- package/typechain-types/IPFlashCallback.ts +0 -115
- package/typechain-types/IPLiquidYieldToken.ts +0 -641
- package/typechain-types/IPMarketCallback.ts +0 -107
- package/typechain-types/IPRouterCore.ts +0 -769
- package/typechain-types/IPRouterYT.ts +0 -489
- package/typechain-types/IPermissionsV2.ts +0 -87
- package/typechain-types/IRainbowBridge.ts +0 -91
- package/typechain-types/ISCYRewardIndex.ts +0 -695
- package/typechain-types/IXPendle.ts +0 -114
- package/typechain-types/InterestRateModel.ts +0 -178
- package/typechain-types/JumpRateModel.ts +0 -347
- package/typechain-types/LYTBase.ts +0 -721
- package/typechain-types/LYTBaseWithRewards.ts +0 -806
- package/typechain-types/LYTWrap.ts +0 -872
- package/typechain-types/LYTWrapWithRewards.ts +0 -979
- package/typechain-types/LiquidityMining.ts +0 -468
- package/typechain-types/Maximillion.ts +0 -145
- package/typechain-types/Ownable.ts +0 -160
- package/typechain-types/PendleAaveV3LYT.ts +0 -808
- package/typechain-types/PendleBenQiErc20LYT.ts +0 -901
- package/typechain-types/PendleBenqiLiquidYieldToken.ts +0 -1013
- package/typechain-types/PendleBtrflyLYT.ts +0 -781
- package/typechain-types/PendleGauge.ts +0 -469
- package/typechain-types/PendleJoeSwapHelper.ts +0 -92
- package/typechain-types/PendleLYTMockYT.ts +0 -894
- package/typechain-types/PendleLiquidYieldToken.ts +0 -814
- package/typechain-types/PendleLiquidYieldTokenBase.ts +0 -941
- package/typechain-types/PendleRouter01.ts +0 -184
- package/typechain-types/PendleRouter02.ts +0 -564
- package/typechain-types/PendleRouter03.ts +0 -224
- package/typechain-types/PendleRouterBase.ts +0 -126
- package/typechain-types/PendleRouterCore.ts +0 -328
- package/typechain-types/PendleRouterCoreUpg.ts +0 -798
- package/typechain-types/PendleRouterLytAndForge.ts +0 -331
- package/typechain-types/PendleRouterMarketBase.ts +0 -82
- package/typechain-types/PendleRouterOT.ts +0 -463
- package/typechain-types/PendleRouterProxy.ts +0 -335
- package/typechain-types/PendleRouterRawTokenOT.ts +0 -865
- package/typechain-types/PendleRouterRawTokenYT.ts +0 -520
- package/typechain-types/PendleRouterSCYAndForgeBaseUpg.ts +0 -98
- package/typechain-types/PendleRouterStaticUpg.ts +0 -399
- package/typechain-types/PendleRouterYT.ts +0 -227
- package/typechain-types/PendleRouterYTBaseUpg.ts +0 -134
- package/typechain-types/PendleRouterYTUpg.ts +0 -537
- package/typechain-types/PendleYTLYTBenqi.ts +0 -863
- package/typechain-types/PendleYearnVaultLYT.ts +0 -723
- package/typechain-types/PermissionsV2.ts +0 -87
- package/typechain-types/PermlessAbstract.ts +0 -57
- package/typechain-types/PglStakingContract.ts +0 -662
- package/typechain-types/PglStakingContractProxy.ts +0 -256
- package/typechain-types/PglStakingContractProxyStorage.ts +0 -136
- package/typechain-types/PglStakingContractStorage.ts +0 -397
- package/typechain-types/PriceOracle.ts +0 -116
- package/typechain-types/ProtocolFakeUser.ts +0 -105
- package/typechain-types/Qi.ts +0 -760
- package/typechain-types/QiAvax.ts +0 -1720
- package/typechain-types/QiDelegateInterface.ts +0 -145
- package/typechain-types/QiDelegationStorage.ts +0 -82
- package/typechain-types/QiDelegatorInterface.ts +0 -149
- package/typechain-types/QiErc20.ts +0 -1846
- package/typechain-types/QiErc20Delegate.ts +0 -1926
- package/typechain-types/QiErc20Delegator.ts +0 -1885
- package/typechain-types/QiErc20Interface.ts +0 -382
- package/typechain-types/QiErc20Storage.ts +0 -79
- package/typechain-types/QiToken.ts +0 -1475
- package/typechain-types/QiTokenInterface.ts +0 -1419
- package/typechain-types/QiTokenSaleDistributor.ts +0 -771
- package/typechain-types/QiTokenSaleDistributorProxy.ts +0 -256
- package/typechain-types/QiTokenSaleDistributorProxyStorage.ts +0 -136
- package/typechain-types/QiTokenSaleDistributorStorage.ts +0 -401
- package/typechain-types/QiTokenStorage.ts +0 -311
- package/typechain-types/ReentrancyGuard.ts +0 -52
- package/typechain-types/SingleGaugeTypeController.ts +0 -478
- package/typechain-types/TokenErrorReporter.ts +0 -70
- package/typechain-types/Unitroller.ts +0 -356
- package/typechain-types/UnitrollerAdminStorage.ts +0 -143
- package/typechain-types/VePendle.ts +0 -1156
- package/typechain-types/VePendleCrosschain.ts +0 -969
- package/typechain-types/VePendleToken.ts +0 -688
- package/typechain-types/VotingController.ts +0 -883
- package/typechain-types/WETH9.ts +0 -414
- package/typechain-types/WhitePaperInterestRateModel.ts +0 -304
- package/typechain-types/XPendle.ts +0 -618
- package/typechain-types/factories/AggregatorV2V3Interface__factory.ts +0 -288
- package/typechain-types/factories/BenqiChainlinkOracle__factory.ts +0 -311
- package/typechain-types/factories/BoringOwnableData__factory.ts +0 -90
- package/typechain-types/factories/BoringOwnableUpgData__factory.ts +0 -94
- package/typechain-types/factories/BoringOwnableUpg__factory.ts +0 -139
- package/typechain-types/factories/BoringOwnable__factory.ts +0 -149
- package/typechain-types/factories/ComptrollerErrorReporter__factory.ts +0 -93
- package/typechain-types/factories/ComptrollerInterface__factory.ts +0 -595
- package/typechain-types/factories/ComptrollerVXStorage__factory.ts +0 -610
- package/typechain-types/factories/Comptroller__factory.ts +0 -2189
- package/typechain-types/factories/CrosschainContract__factory.ts +0 -52
- package/typechain-types/factories/CrosschainReceiver__factory.ts +0 -187
- package/typechain-types/factories/CrosschainSender__factory.ts +0 -104
- package/typechain-types/factories/EIP20Interface__factory.ts +0 -248
- package/typechain-types/factories/EIP20NonStandardInterface__factory.ts +0 -213
- package/typechain-types/factories/ERC20Burnable__factory.ts +0 -324
- package/typechain-types/factories/ERC20Locker__factory.ts +0 -73
- package/typechain-types/factories/ERC20Premined__factory.ts +0 -393
- package/typechain-types/factories/ERC20PresetFixedSupply__factory.ts +0 -422
- package/typechain-types/factories/EpochController__factory.ts +0 -170
- package/typechain-types/factories/FundKeeper__factory.ts +0 -212
- package/typechain-types/factories/GaugeTypeControllerAbstract__factory.ts +0 -387
- package/typechain-types/factories/GaugeTypeControllerCrosschain__factory.ts +0 -522
- package/typechain-types/factories/GaugeTypeControllerMainchain__factory.ts +0 -431
- package/typechain-types/factories/IGaugeController__factory.ts +0 -45
- package/typechain-types/factories/ILiquidYieldTokenWrap__factory.ts +0 -533
- package/typechain-types/factories/ILiquidYieldToken__factory.ts +0 -429
- package/typechain-types/factories/IMessageBus__factory.ts +0 -396
- package/typechain-types/factories/IMessageReceiverApp__factory.ts +0 -55
- package/typechain-types/factories/IPFlashCallback__factory.ts +0 -49
- package/typechain-types/factories/IPLiquidYieldToken__factory.ts +0 -433
- package/typechain-types/factories/IPMarketCallback__factory.ts +0 -55
- package/typechain-types/factories/IPRouterCore__factory.ts +0 -531
- package/typechain-types/factories/IPRouterRedeem__factory.ts +0 -72
- package/typechain-types/factories/IPRouterYT__factory.ts +0 -305
- package/typechain-types/factories/IPermissionsV2__factory.ts +0 -39
- package/typechain-types/factories/IRainbowBridge__factory.ts +0 -76
- package/typechain-types/factories/ISCYRewardIndex__factory.ts +0 -465
- package/typechain-types/factories/InterestRateModel__factory.ts +0 -108
- package/typechain-types/factories/JumpRateModel__factory.ts +0 -334
- package/typechain-types/factories/LYTBaseWithRewards__factory.ts +0 -530
- package/typechain-types/factories/LYTBase__factory.ts +0 -474
- package/typechain-types/factories/LYTWrapWithRewards__factory.ts +0 -643
- package/typechain-types/factories/LYTWrap__factory.ts +0 -574
- package/typechain-types/factories/LiquidityMining__factory.ts +0 -367
- package/typechain-types/factories/Maximillion__factory.ts +0 -125
- package/typechain-types/factories/Ownable__factory.ts +0 -75
- package/typechain-types/factories/PendleAaveV3LYT__factory.ts +0 -657
- package/typechain-types/factories/PendleBenQiErc20LYT__factory.ts +0 -748
- package/typechain-types/factories/PendleBenqiLiquidYieldToken__factory.ts +0 -785
- package/typechain-types/factories/PendleBtrflyLYT__factory.ts +0 -647
- package/typechain-types/factories/PendleGauge__factory.ts +0 -383
- package/typechain-types/factories/PendleJoeSwapHelper__factory.ts +0 -52
- package/typechain-types/factories/PendleLYTMockYT__factory.ts +0 -732
- package/typechain-types/factories/PendleLiquidYieldTokenBase__factory.ts +0 -603
- package/typechain-types/factories/PendleLiquidYieldToken__factory.ts +0 -510
- package/typechain-types/factories/PendleOwnershipToken__factory.ts +0 -527
- package/typechain-types/factories/PendleRouter01__factory.ts +0 -152
- package/typechain-types/factories/PendleRouter02__factory.ts +0 -438
- package/typechain-types/factories/PendleRouter03__factory.ts +0 -190
- package/typechain-types/factories/PendleRouterBase__factory.ts +0 -68
- package/typechain-types/factories/PendleRouterCoreUpg__factory.ts +0 -635
- package/typechain-types/factories/PendleRouterCore__factory.ts +0 -268
- package/typechain-types/factories/PendleRouterLytAndForge__factory.ts +0 -294
- package/typechain-types/factories/PendleRouterMarketBase__factory.ts +0 -43
- package/typechain-types/factories/PendleRouterOT__factory.ts +0 -372
- package/typechain-types/factories/PendleRouterProxy__factory.ts +0 -285
- package/typechain-types/factories/PendleRouterRawTokenOT__factory.ts +0 -697
- package/typechain-types/factories/PendleRouterRawTokenYT__factory.ts +0 -431
- package/typechain-types/factories/PendleRouterSCYAndForgeBaseUpg__factory.ts +0 -56
- package/typechain-types/factories/PendleRouterStaticUpg__factory.ts +0 -315
- package/typechain-types/factories/PendleRouterYTBaseUpg__factory.ts +0 -66
- package/typechain-types/factories/PendleRouterYTUpg__factory.ts +0 -422
- package/typechain-types/factories/PendleRouterYT__factory.ts +0 -184
- package/typechain-types/factories/PendleYTLYTBenqi__factory.ts +0 -713
- package/typechain-types/factories/PendleYearnVaultLYT__factory.ts +0 -586
- package/typechain-types/factories/PermissionsV2__factory.ts +0 -36
- package/typechain-types/factories/PermlessAbstract__factory.ts +0 -30
- package/typechain-types/factories/PglStakingContractProxyStorage__factory.ts +0 -130
- package/typechain-types/factories/PglStakingContractProxy__factory.ts +0 -187
- package/typechain-types/factories/PglStakingContractStorage__factory.ts +0 -309
- package/typechain-types/factories/PglStakingContract__factory.ts +0 -446
- package/typechain-types/factories/PriceOracle__factory.ts +0 -59
- package/typechain-types/factories/ProtocolFakeUser__factory.ts +0 -87
- package/typechain-types/factories/QiAvax__factory.ts +0 -1471
- package/typechain-types/factories/QiDelegateInterface__factory.ts +0 -65
- package/typechain-types/factories/QiDelegationStorage__factory.ts +0 -79
- package/typechain-types/factories/QiDelegatorInterface__factory.ts +0 -89
- package/typechain-types/factories/QiErc20Delegate__factory.ts +0 -1563
- package/typechain-types/factories/QiErc20Delegator__factory.ts +0 -1648
- package/typechain-types/factories/QiErc20Storage__factory.ts +0 -79
- package/typechain-types/factories/QiErc20__factory.ts +0 -1515
- package/typechain-types/factories/QiTokenInterface__factory.ts +0 -1182
- package/typechain-types/factories/QiTokenSaleDistributorProxyStorage__factory.ts +0 -124
- package/typechain-types/factories/QiTokenSaleDistributorProxy__factory.ts +0 -171
- package/typechain-types/factories/QiTokenSaleDistributorStorage__factory.ts +0 -289
- package/typechain-types/factories/QiTokenSaleDistributor__factory.ts +0 -480
- package/typechain-types/factories/QiTokenStorage__factory.ts +0 -274
- package/typechain-types/factories/QiToken__factory.ts +0 -1219
- package/typechain-types/factories/Qi__factory.ts +0 -648
- package/typechain-types/factories/ReentrancyGuard__factory.ts +0 -69
- package/typechain-types/factories/SingleGaugeTypeController__factory.ts +0 -341
- package/typechain-types/factories/TokenErrorReporter__factory.ts +0 -89
- package/typechain-types/factories/UnitrollerAdminStorage__factory.ts +0 -128
- package/typechain-types/factories/Unitroller__factory.ts +0 -305
- package/typechain-types/factories/VePendleCrosschain__factory.ts +0 -727
- package/typechain-types/factories/VePendleToken__factory.ts +0 -494
- package/typechain-types/factories/VePendle__factory.ts +0 -800
- package/typechain-types/factories/VotingController__factory.ts +0 -610
- package/typechain-types/factories/WETH9__factory.ts +0 -342
- package/typechain-types/factories/WhitePaperInterestRateModel__factory.ts +0 -281
- package/typechain-types/factories/XPendle__factory.ts +0 -473
|
@@ -1,446 +0,0 @@
|
|
|
1
|
-
/* Autogenerated file. Do not edit manually. */
|
|
2
|
-
/* tslint:disable */
|
|
3
|
-
/* eslint-disable */
|
|
4
|
-
import { Signer, utils, Contract, ContractFactory, Overrides } from "ethers";
|
|
5
|
-
import { Provider, TransactionRequest } from "@ethersproject/providers";
|
|
6
|
-
import type {
|
|
7
|
-
PglStakingContract,
|
|
8
|
-
PglStakingContractInterface,
|
|
9
|
-
} from "../PglStakingContract";
|
|
10
|
-
|
|
11
|
-
const _abi = [
|
|
12
|
-
{
|
|
13
|
-
inputs: [],
|
|
14
|
-
payable: false,
|
|
15
|
-
stateMutability: "nonpayable",
|
|
16
|
-
type: "constructor",
|
|
17
|
-
},
|
|
18
|
-
{
|
|
19
|
-
payable: true,
|
|
20
|
-
stateMutability: "payable",
|
|
21
|
-
type: "fallback",
|
|
22
|
-
},
|
|
23
|
-
{
|
|
24
|
-
constant: true,
|
|
25
|
-
inputs: [],
|
|
26
|
-
name: "accrualBlockTimestamp",
|
|
27
|
-
outputs: [
|
|
28
|
-
{
|
|
29
|
-
internalType: "uint256",
|
|
30
|
-
name: "",
|
|
31
|
-
type: "uint256",
|
|
32
|
-
},
|
|
33
|
-
],
|
|
34
|
-
payable: false,
|
|
35
|
-
stateMutability: "view",
|
|
36
|
-
type: "function",
|
|
37
|
-
},
|
|
38
|
-
{
|
|
39
|
-
constant: true,
|
|
40
|
-
inputs: [
|
|
41
|
-
{
|
|
42
|
-
internalType: "address",
|
|
43
|
-
name: "",
|
|
44
|
-
type: "address",
|
|
45
|
-
},
|
|
46
|
-
{
|
|
47
|
-
internalType: "uint256",
|
|
48
|
-
name: "",
|
|
49
|
-
type: "uint256",
|
|
50
|
-
},
|
|
51
|
-
],
|
|
52
|
-
name: "accruedReward",
|
|
53
|
-
outputs: [
|
|
54
|
-
{
|
|
55
|
-
internalType: "uint256",
|
|
56
|
-
name: "",
|
|
57
|
-
type: "uint256",
|
|
58
|
-
},
|
|
59
|
-
],
|
|
60
|
-
payable: false,
|
|
61
|
-
stateMutability: "view",
|
|
62
|
-
type: "function",
|
|
63
|
-
},
|
|
64
|
-
{
|
|
65
|
-
constant: true,
|
|
66
|
-
inputs: [],
|
|
67
|
-
name: "admin",
|
|
68
|
-
outputs: [
|
|
69
|
-
{
|
|
70
|
-
internalType: "address",
|
|
71
|
-
name: "",
|
|
72
|
-
type: "address",
|
|
73
|
-
},
|
|
74
|
-
],
|
|
75
|
-
payable: false,
|
|
76
|
-
stateMutability: "view",
|
|
77
|
-
type: "function",
|
|
78
|
-
},
|
|
79
|
-
{
|
|
80
|
-
constant: false,
|
|
81
|
-
inputs: [
|
|
82
|
-
{
|
|
83
|
-
internalType: "contract PglStakingContractProxy",
|
|
84
|
-
name: "proxy",
|
|
85
|
-
type: "address",
|
|
86
|
-
},
|
|
87
|
-
],
|
|
88
|
-
name: "becomeImplementation",
|
|
89
|
-
outputs: [],
|
|
90
|
-
payable: false,
|
|
91
|
-
stateMutability: "nonpayable",
|
|
92
|
-
type: "function",
|
|
93
|
-
},
|
|
94
|
-
{
|
|
95
|
-
constant: false,
|
|
96
|
-
inputs: [],
|
|
97
|
-
name: "claimRewards",
|
|
98
|
-
outputs: [],
|
|
99
|
-
payable: false,
|
|
100
|
-
stateMutability: "nonpayable",
|
|
101
|
-
type: "function",
|
|
102
|
-
},
|
|
103
|
-
{
|
|
104
|
-
constant: false,
|
|
105
|
-
inputs: [
|
|
106
|
-
{
|
|
107
|
-
internalType: "uint256",
|
|
108
|
-
name: "pglAmount",
|
|
109
|
-
type: "uint256",
|
|
110
|
-
},
|
|
111
|
-
],
|
|
112
|
-
name: "deposit",
|
|
113
|
-
outputs: [],
|
|
114
|
-
payable: false,
|
|
115
|
-
stateMutability: "nonpayable",
|
|
116
|
-
type: "function",
|
|
117
|
-
},
|
|
118
|
-
{
|
|
119
|
-
constant: true,
|
|
120
|
-
inputs: [
|
|
121
|
-
{
|
|
122
|
-
internalType: "uint256",
|
|
123
|
-
name: "rewardToken",
|
|
124
|
-
type: "uint256",
|
|
125
|
-
},
|
|
126
|
-
],
|
|
127
|
-
name: "getClaimableRewards",
|
|
128
|
-
outputs: [
|
|
129
|
-
{
|
|
130
|
-
internalType: "uint256",
|
|
131
|
-
name: "",
|
|
132
|
-
type: "uint256",
|
|
133
|
-
},
|
|
134
|
-
],
|
|
135
|
-
payable: false,
|
|
136
|
-
stateMutability: "view",
|
|
137
|
-
type: "function",
|
|
138
|
-
},
|
|
139
|
-
{
|
|
140
|
-
constant: true,
|
|
141
|
-
inputs: [],
|
|
142
|
-
name: "implementation",
|
|
143
|
-
outputs: [
|
|
144
|
-
{
|
|
145
|
-
internalType: "address",
|
|
146
|
-
name: "",
|
|
147
|
-
type: "address",
|
|
148
|
-
},
|
|
149
|
-
],
|
|
150
|
-
payable: false,
|
|
151
|
-
stateMutability: "view",
|
|
152
|
-
type: "function",
|
|
153
|
-
},
|
|
154
|
-
{
|
|
155
|
-
constant: true,
|
|
156
|
-
inputs: [],
|
|
157
|
-
name: "pendingAdmin",
|
|
158
|
-
outputs: [
|
|
159
|
-
{
|
|
160
|
-
internalType: "address",
|
|
161
|
-
name: "",
|
|
162
|
-
type: "address",
|
|
163
|
-
},
|
|
164
|
-
],
|
|
165
|
-
payable: false,
|
|
166
|
-
stateMutability: "view",
|
|
167
|
-
type: "function",
|
|
168
|
-
},
|
|
169
|
-
{
|
|
170
|
-
constant: true,
|
|
171
|
-
inputs: [],
|
|
172
|
-
name: "pendingImplementation",
|
|
173
|
-
outputs: [
|
|
174
|
-
{
|
|
175
|
-
internalType: "address",
|
|
176
|
-
name: "",
|
|
177
|
-
type: "address",
|
|
178
|
-
},
|
|
179
|
-
],
|
|
180
|
-
payable: false,
|
|
181
|
-
stateMutability: "view",
|
|
182
|
-
type: "function",
|
|
183
|
-
},
|
|
184
|
-
{
|
|
185
|
-
constant: true,
|
|
186
|
-
inputs: [],
|
|
187
|
-
name: "pglTokenAddress",
|
|
188
|
-
outputs: [
|
|
189
|
-
{
|
|
190
|
-
internalType: "address",
|
|
191
|
-
name: "",
|
|
192
|
-
type: "address",
|
|
193
|
-
},
|
|
194
|
-
],
|
|
195
|
-
payable: false,
|
|
196
|
-
stateMutability: "view",
|
|
197
|
-
type: "function",
|
|
198
|
-
},
|
|
199
|
-
{
|
|
200
|
-
constant: false,
|
|
201
|
-
inputs: [
|
|
202
|
-
{
|
|
203
|
-
internalType: "uint256",
|
|
204
|
-
name: "pglAmount",
|
|
205
|
-
type: "uint256",
|
|
206
|
-
},
|
|
207
|
-
],
|
|
208
|
-
name: "redeem",
|
|
209
|
-
outputs: [],
|
|
210
|
-
payable: false,
|
|
211
|
-
stateMutability: "nonpayable",
|
|
212
|
-
type: "function",
|
|
213
|
-
},
|
|
214
|
-
{
|
|
215
|
-
constant: true,
|
|
216
|
-
inputs: [
|
|
217
|
-
{
|
|
218
|
-
internalType: "uint256",
|
|
219
|
-
name: "",
|
|
220
|
-
type: "uint256",
|
|
221
|
-
},
|
|
222
|
-
],
|
|
223
|
-
name: "rewardIndex",
|
|
224
|
-
outputs: [
|
|
225
|
-
{
|
|
226
|
-
internalType: "uint256",
|
|
227
|
-
name: "",
|
|
228
|
-
type: "uint256",
|
|
229
|
-
},
|
|
230
|
-
],
|
|
231
|
-
payable: false,
|
|
232
|
-
stateMutability: "view",
|
|
233
|
-
type: "function",
|
|
234
|
-
},
|
|
235
|
-
{
|
|
236
|
-
constant: true,
|
|
237
|
-
inputs: [
|
|
238
|
-
{
|
|
239
|
-
internalType: "uint256",
|
|
240
|
-
name: "",
|
|
241
|
-
type: "uint256",
|
|
242
|
-
},
|
|
243
|
-
],
|
|
244
|
-
name: "rewardSpeeds",
|
|
245
|
-
outputs: [
|
|
246
|
-
{
|
|
247
|
-
internalType: "uint256",
|
|
248
|
-
name: "",
|
|
249
|
-
type: "uint256",
|
|
250
|
-
},
|
|
251
|
-
],
|
|
252
|
-
payable: false,
|
|
253
|
-
stateMutability: "view",
|
|
254
|
-
type: "function",
|
|
255
|
-
},
|
|
256
|
-
{
|
|
257
|
-
constant: true,
|
|
258
|
-
inputs: [
|
|
259
|
-
{
|
|
260
|
-
internalType: "uint256",
|
|
261
|
-
name: "",
|
|
262
|
-
type: "uint256",
|
|
263
|
-
},
|
|
264
|
-
],
|
|
265
|
-
name: "rewardTokenAddresses",
|
|
266
|
-
outputs: [
|
|
267
|
-
{
|
|
268
|
-
internalType: "address",
|
|
269
|
-
name: "",
|
|
270
|
-
type: "address",
|
|
271
|
-
},
|
|
272
|
-
],
|
|
273
|
-
payable: false,
|
|
274
|
-
stateMutability: "view",
|
|
275
|
-
type: "function",
|
|
276
|
-
},
|
|
277
|
-
{
|
|
278
|
-
constant: false,
|
|
279
|
-
inputs: [
|
|
280
|
-
{
|
|
281
|
-
internalType: "address",
|
|
282
|
-
name: "newPglTokenAddress",
|
|
283
|
-
type: "address",
|
|
284
|
-
},
|
|
285
|
-
],
|
|
286
|
-
name: "setPglTokenAddress",
|
|
287
|
-
outputs: [],
|
|
288
|
-
payable: false,
|
|
289
|
-
stateMutability: "nonpayable",
|
|
290
|
-
type: "function",
|
|
291
|
-
},
|
|
292
|
-
{
|
|
293
|
-
constant: false,
|
|
294
|
-
inputs: [
|
|
295
|
-
{
|
|
296
|
-
internalType: "uint256",
|
|
297
|
-
name: "rewardToken",
|
|
298
|
-
type: "uint256",
|
|
299
|
-
},
|
|
300
|
-
{
|
|
301
|
-
internalType: "uint256",
|
|
302
|
-
name: "speed",
|
|
303
|
-
type: "uint256",
|
|
304
|
-
},
|
|
305
|
-
],
|
|
306
|
-
name: "setRewardSpeed",
|
|
307
|
-
outputs: [],
|
|
308
|
-
payable: false,
|
|
309
|
-
stateMutability: "nonpayable",
|
|
310
|
-
type: "function",
|
|
311
|
-
},
|
|
312
|
-
{
|
|
313
|
-
constant: false,
|
|
314
|
-
inputs: [
|
|
315
|
-
{
|
|
316
|
-
internalType: "uint256",
|
|
317
|
-
name: "rewardToken",
|
|
318
|
-
type: "uint256",
|
|
319
|
-
},
|
|
320
|
-
{
|
|
321
|
-
internalType: "address",
|
|
322
|
-
name: "rewardTokenAddress",
|
|
323
|
-
type: "address",
|
|
324
|
-
},
|
|
325
|
-
],
|
|
326
|
-
name: "setRewardTokenAddress",
|
|
327
|
-
outputs: [],
|
|
328
|
-
payable: false,
|
|
329
|
-
stateMutability: "nonpayable",
|
|
330
|
-
type: "function",
|
|
331
|
-
},
|
|
332
|
-
{
|
|
333
|
-
constant: true,
|
|
334
|
-
inputs: [
|
|
335
|
-
{
|
|
336
|
-
internalType: "address",
|
|
337
|
-
name: "",
|
|
338
|
-
type: "address",
|
|
339
|
-
},
|
|
340
|
-
{
|
|
341
|
-
internalType: "uint256",
|
|
342
|
-
name: "",
|
|
343
|
-
type: "uint256",
|
|
344
|
-
},
|
|
345
|
-
],
|
|
346
|
-
name: "supplierRewardIndex",
|
|
347
|
-
outputs: [
|
|
348
|
-
{
|
|
349
|
-
internalType: "uint256",
|
|
350
|
-
name: "",
|
|
351
|
-
type: "uint256",
|
|
352
|
-
},
|
|
353
|
-
],
|
|
354
|
-
payable: false,
|
|
355
|
-
stateMutability: "view",
|
|
356
|
-
type: "function",
|
|
357
|
-
},
|
|
358
|
-
{
|
|
359
|
-
constant: true,
|
|
360
|
-
inputs: [
|
|
361
|
-
{
|
|
362
|
-
internalType: "address",
|
|
363
|
-
name: "",
|
|
364
|
-
type: "address",
|
|
365
|
-
},
|
|
366
|
-
],
|
|
367
|
-
name: "supplyAmount",
|
|
368
|
-
outputs: [
|
|
369
|
-
{
|
|
370
|
-
internalType: "uint256",
|
|
371
|
-
name: "",
|
|
372
|
-
type: "uint256",
|
|
373
|
-
},
|
|
374
|
-
],
|
|
375
|
-
payable: false,
|
|
376
|
-
stateMutability: "view",
|
|
377
|
-
type: "function",
|
|
378
|
-
},
|
|
379
|
-
{
|
|
380
|
-
constant: true,
|
|
381
|
-
inputs: [],
|
|
382
|
-
name: "totalSupplies",
|
|
383
|
-
outputs: [
|
|
384
|
-
{
|
|
385
|
-
internalType: "uint256",
|
|
386
|
-
name: "",
|
|
387
|
-
type: "uint256",
|
|
388
|
-
},
|
|
389
|
-
],
|
|
390
|
-
payable: false,
|
|
391
|
-
stateMutability: "view",
|
|
392
|
-
type: "function",
|
|
393
|
-
},
|
|
394
|
-
];
|
|
395
|
-
|
|
396
|
-
const _bytecode =
|
|
397
|
-
"0x608060405234801561001057600080fd5b506001600081905580546001600160a01b0319163317905561165e806100376000396000f3fe60806040526004361061012a5760003560e01c806392d8282f116100ab578063d068cdc51161006f578063d068cdc514610379578063db006a751461038e578063eaac8c32146103b8578063f495c9c9146103eb578063f75ddfa814610424578063f851a4401461045d5761012a565b806392d8282f146102c25780639c41f6ca146102d7578063b6b55f251461030a578063cfa9920114610334578063d03a7d25146103495761012a565b80635c60da1b116100f25780635c60da1b146101f65780636612313a1461020b5780637b167dfa146102355780637b2d9b2c1461025f57806384ae152d146102895761012a565b80631130a36c1461012c57806324cb2d9a14610171578063267822471461019b578063372500ab146101cc578063396f7b23146101e1575b005b34801561013857600080fd5b5061015f6004803603602081101561014f57600080fd5b50356001600160a01b0316610472565b60408051918252519081900360200190f35b34801561017d57600080fd5b5061015f6004803603602081101561019457600080fd5b5035610484565b3480156101a757600080fd5b506101b0610496565b604080516001600160a01b039092168252519081900360200190f35b3480156101d857600080fd5b5061012a6104a5565b3480156101ed57600080fd5b506101b0610562565b34801561020257600080fd5b506101b0610571565b34801561021757600080fd5b5061015f6004803603602081101561022e57600080fd5b5035610580565b34801561024157600080fd5b5061015f6004803603602081101561025857600080fd5b5035610592565b34801561026b57600080fd5b506101b06004803603602081101561028257600080fd5b5035610688565b34801561029557600080fd5b5061012a600480360360408110156102ac57600080fd5b50803590602001356001600160a01b03166106a3565b3480156102ce57600080fd5b506101b061076f565b3480156102e357600080fd5b5061012a600480360360208110156102fa57600080fd5b50356001600160a01b031661077e565b34801561031657600080fd5b5061012a6004803603602081101561032d57600080fd5b50356107ec565b34801561034057600080fd5b5061015f610abb565b34801561035557600080fd5b5061012a6004803603604081101561036c57600080fd5b5080359060200135610ac1565b34801561038557600080fd5b5061015f610b2f565b34801561039a57600080fd5b5061012a600480360360208110156103b157600080fd5b5035610b35565b3480156103c457600080fd5b5061012a600480360360208110156103db57600080fd5b50356001600160a01b0316610d0d565b3480156103f757600080fd5b5061015f6004803603604081101561040e57600080fd5b506001600160a01b038135169060200135610e0e565b34801561043057600080fd5b5061015f6004803603604081101561044757600080fd5b506001600160a01b038135169060200135610e2b565b34801561046957600080fd5b506101b0610e48565b60096020526000908152604090205481565b60076020526000908152604090205481565b6002546001600160a01b031681565b600260005414156104fd576040805162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015290519081900360640190fd5b600260005561050b33610e57565b60005b600281101561055a5733600090815260086020908152604080832084845290915290205481610546576105413382610f71565b610551565b610551823383611074565b5060010161050e565b506001600055565b6004546001600160a01b031681565b6003546001600160a01b031681565b600b6020526000908152604090205481565b600060028211156105e1576040805162461bcd60e51b815260206004820152601460248201527324b73b30b634b2103932bbb0b932103a37b5b2b760611b604482015290519081900360640190fd5b336000908152600c60209081526040808320858452825280832054600b9092528220546106139163ffffffff61127416565b3360008181526008602090815260408083208884528252808320549383526009909152812054929350916106809190610674906ec097ce7bc90715b34b9f10000000009061066890879063ffffffff6112bf16565b9063ffffffff61131816565b9063ffffffff61135a16565b949350505050565b6006602052600090815260409020546001600160a01b031681565b6001546001600160a01b031633146106ef576040805162461bcd60e51b815260206004820152600a60248201526961646d696e206f6e6c7960b01b604482015290519081900360640190fd5b81610741576040805162461bcd60e51b815260206004820152601760248201527f43616e6e6f742073657420415641582061646472657373000000000000000000604482015290519081900360640190fd5b60009182526006602052604090912080546001600160a01b0319166001600160a01b03909216919091179055565b6005546001600160a01b031681565b6001546001600160a01b031633146107ca576040805162461bcd60e51b815260206004820152600a60248201526961646d696e206f6e6c7960b01b604482015290519081900360640190fd5b600580546001600160a01b0319166001600160a01b0392909216919091179055565b60026000541415610844576040805162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015290519081900360640190fd5b60026000556005546001600160a01b03166108905760405162461bcd60e51b81526004018080602001828103825260218152602001806115c46021913960400191505060405180910390fd5b600554604080516370a0823160e01b815230600482015290516001600160a01b039092169160009183916370a0823191602480820192602092909190829003018186803b1580156108e057600080fd5b505afa1580156108f4573d6000803e3d6000fd5b505050506040513d602081101561090a57600080fd5b5051604080516323b872dd60e01b81523360048201523060248201526044810186905290519192506001600160a01b038416916323b872dd916064808201926020929091908290030181600087803b15801561096557600080fd5b505af1158015610979573d6000803e3d6000fd5b505050506040513d602081101561098f57600080fd5b5050604080516370a0823160e01b81523060048201529051600091610a199184916001600160a01b038716916370a0823191602480820192602092909190829003018186803b1580156109e157600080fd5b505afa1580156109f5573d6000803e3d6000fd5b505050506040513d6020811015610a0b57600080fd5b50519063ffffffff61127416565b905060008111610a5f576040805162461bcd60e51b815260206004820152600c60248201526b16995c9bc819195c1bdcda5d60a21b604482015290519081900360640190fd5b610a6833610e57565b600a54610a7b908263ffffffff61135a16565b600a5533600090815260096020526040902054610a9e908263ffffffff61135a16565b336000908152600960205260408120919091556001905550505050565b600d5481565b6001546001600160a01b03163314610b0d576040805162461bcd60e51b815260206004820152600a60248201526961646d696e206f6e6c7960b01b604482015290519081900360640190fd5b600d5415610b1d57610b1d6113b4565b60009182526007602052604090912055565b600a5481565b60026000541415610b8d576040805162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015290519081900360640190fd5b60026000556005546001600160a01b0316610bd95760405162461bcd60e51b81526004018080602001828103825260218152602001806115c46021913960400191505060405180910390fd5b33600090815260096020526040902054811115610c34576040805162461bcd60e51b8152602060048201526014602482015273151bdbc81b185c99d9481dda5d1a191c985dd85b60621b604482015290519081900360640190fd5b610c3d33610e57565b33600090815260096020526040902054610c5d908263ffffffff61127416565b33600090815260096020526040902055600a54610c80908263ffffffff61127416565b600a556005546040805163a9059cbb60e01b81523360048201526024810184905290516001600160a01b0390921691829163a9059cbb9160448083019260209291908290030181600087803b158015610cd857600080fd5b505af1158015610cec573d6000803e3d6000fd5b505050506040513d6020811015610d0257600080fd5b505060016000555050565b806001600160a01b031663f851a4406040518163ffffffff1660e01b815260040160206040518083038186803b158015610d4657600080fd5b505afa158015610d5a573d6000803e3d6000fd5b505050506040513d6020811015610d7057600080fd5b50516001600160a01b03163314610db85760405162461bcd60e51b815260040180806020018281038252602e815260200180611596602e913960400191505060405180910390fd5b806001600160a01b03166316ec205c6040518163ffffffff1660e01b8152600401600060405180830381600087803b158015610df357600080fd5b505af1158015610e07573d6000803e3d6000fd5b5050505050565b600860209081526000928352604080842090915290825290205481565b600c60209081526000928352604080842090915290825290205481565b6001546001600160a01b031681565b610e5f6113b4565b60005b6002811015610f6d576001600160a01b0382166000908152600c60209081526040808320848452825280832054600b909252822054610ea69163ffffffff61127416565b6001600160a01b03841660009081526009602052604081205491925090610ee9906ec097ce7bc90715b34b9f10000000009061066890859063ffffffff6112bf16565b6001600160a01b0385166000908152600860209081526040808320878452909152902054909150610f20908263ffffffff61135a16565b6001600160a01b0385166000818152600860209081526040808320888452825280832094909455600b815283822054928252600c8152838220878352905291909120555050600101610e62565b5050565b6001600160a01b0382166000908152600860209081526040808320838052909152902054811015610fe9576040805162461bcd60e51b815260206004820152601a60248201527f4e6f7420656e6f75676820616363727565642072657761726473000000000000604482015290519081900360640190fd5b6001600160a01b038216600090815260086020908152604080832083805290915290205461101d908263ffffffff61127416565b6001600160a01b0383166000818152600860209081526040808320838052909152808220939093559151909183156108fc02918491818181858888f1935050505015801561106f573d6000803e3d6000fd5b505050565b826110c6576040805162461bcd60e51b815260206004820152601e60248201527f43616e6e6f742075736520636c61696d457263323020666f7220415641580000604482015290519081900360640190fd5b6001600160a01b038216600090815260086020908152604080832086845290915290205481101561113e576040805162461bcd60e51b815260206004820152601a60248201527f4e6f7420656e6f75676820616363727565642072657761726473000000000000604482015290519081900360640190fd5b6000838152600660205260409020546001600160a01b03166111915760405162461bcd60e51b81526004018080602001828103825260248152602001806116066024913960400191505060405180910390fd5b6000838152600660209081526040808320546001600160a01b038681168552600884528285208886529093529220549116906111d3908363ffffffff61127416565b6001600160a01b0380851660008181526008602090815260408083208a8452825280832095909555845163a9059cbb60e01b815260048101939093526024830187905293519285169363a9059cbb93604480850194929391928390030190829087803b15801561124257600080fd5b505af1158015611256573d6000803e3d6000fd5b505050506040513d602081101561126c57600080fd5b505050505050565b60006112b683836040518060400160405280601f81526020017f536166654d6174683a207375627472616374696f6e20756e646572666c6f7700815250611499565b90505b92915050565b6000826112ce575060006112b9565b828202828482816112db57fe5b04146112b65760405162461bcd60e51b81526004018080602001828103825260218152602001806115e56021913960400191505060405180910390fd5b60006112b683836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f000000000000815250611530565b6000828201838110156112b6576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b60006113cb600d544261127490919063ffffffff16565b42600d5590508015806113de5750600a54155b156113e95750611497565b60005b6002811015610f6d576000818152600760205260409020548061140f575061148f565b60008281526007602052604081205461142e908563ffffffff6112bf16565b9050600061145a600a546106686ec097ce7bc90715b34b9f1000000000856112bf90919063ffffffff16565b6000858152600b602052604090205490915061147c908263ffffffff61135a16565b6000858152600b60205260409020555050505b6001016113ec565b565b600081848411156115285760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b838110156114ed5781810151838201526020016114d5565b50505050905090810190601f16801561151a5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b6000818361157f5760405162461bcd60e51b81526020600482018181528351602484015283519092839260449091019190850190808383600083156114ed5781810151838201526020016114d5565b50600083858161158b57fe5b049594505050505056fe4f6e6c792070726f78792061646d696e2063616e206368616e67652074686520696d706c656d656e746174696f6e50474c20546f6b656e20616464726573732063616e206e6f74206265207a65726f536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f7772657761726420746f6b656e20616464726573732063616e206e6f74206265207a65726fa265627a7a7231582001a557f256923bf17bf291fff42d985380debb22cb69e8727f58a9836bc45d1964736f6c63430005110032";
|
|
398
|
-
|
|
399
|
-
type PglStakingContractConstructorParams =
|
|
400
|
-
| [signer?: Signer]
|
|
401
|
-
| ConstructorParameters<typeof ContractFactory>;
|
|
402
|
-
|
|
403
|
-
const isSuperArgs = (
|
|
404
|
-
xs: PglStakingContractConstructorParams
|
|
405
|
-
): xs is ConstructorParameters<typeof ContractFactory> => xs.length > 1;
|
|
406
|
-
|
|
407
|
-
export class PglStakingContract__factory extends ContractFactory {
|
|
408
|
-
constructor(...args: PglStakingContractConstructorParams) {
|
|
409
|
-
if (isSuperArgs(args)) {
|
|
410
|
-
super(...args);
|
|
411
|
-
} else {
|
|
412
|
-
super(_abi, _bytecode, args[0]);
|
|
413
|
-
}
|
|
414
|
-
this.contractName = "PglStakingContract";
|
|
415
|
-
}
|
|
416
|
-
|
|
417
|
-
deploy(
|
|
418
|
-
overrides?: Overrides & { from?: string | Promise<string> }
|
|
419
|
-
): Promise<PglStakingContract> {
|
|
420
|
-
return super.deploy(overrides || {}) as Promise<PglStakingContract>;
|
|
421
|
-
}
|
|
422
|
-
getDeployTransaction(
|
|
423
|
-
overrides?: Overrides & { from?: string | Promise<string> }
|
|
424
|
-
): TransactionRequest {
|
|
425
|
-
return super.getDeployTransaction(overrides || {});
|
|
426
|
-
}
|
|
427
|
-
attach(address: string): PglStakingContract {
|
|
428
|
-
return super.attach(address) as PglStakingContract;
|
|
429
|
-
}
|
|
430
|
-
connect(signer: Signer): PglStakingContract__factory {
|
|
431
|
-
return super.connect(signer) as PglStakingContract__factory;
|
|
432
|
-
}
|
|
433
|
-
static readonly contractName: "PglStakingContract";
|
|
434
|
-
public readonly contractName: "PglStakingContract";
|
|
435
|
-
static readonly bytecode = _bytecode;
|
|
436
|
-
static readonly abi = _abi;
|
|
437
|
-
static createInterface(): PglStakingContractInterface {
|
|
438
|
-
return new utils.Interface(_abi) as PglStakingContractInterface;
|
|
439
|
-
}
|
|
440
|
-
static connect(
|
|
441
|
-
address: string,
|
|
442
|
-
signerOrProvider: Signer | Provider
|
|
443
|
-
): PglStakingContract {
|
|
444
|
-
return new Contract(address, _abi, signerOrProvider) as PglStakingContract;
|
|
445
|
-
}
|
|
446
|
-
}
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
/* Autogenerated file. Do not edit manually. */
|
|
2
|
-
/* tslint:disable */
|
|
3
|
-
/* eslint-disable */
|
|
4
|
-
|
|
5
|
-
import { Contract, Signer, utils } from "ethers";
|
|
6
|
-
import { Provider } from "@ethersproject/providers";
|
|
7
|
-
import type { PriceOracle, PriceOracleInterface } from "../PriceOracle";
|
|
8
|
-
|
|
9
|
-
const _abi = [
|
|
10
|
-
{
|
|
11
|
-
constant: true,
|
|
12
|
-
inputs: [
|
|
13
|
-
{
|
|
14
|
-
internalType: "contract QiToken",
|
|
15
|
-
name: "qiToken",
|
|
16
|
-
type: "address",
|
|
17
|
-
},
|
|
18
|
-
],
|
|
19
|
-
name: "getUnderlyingPrice",
|
|
20
|
-
outputs: [
|
|
21
|
-
{
|
|
22
|
-
internalType: "uint256",
|
|
23
|
-
name: "",
|
|
24
|
-
type: "uint256",
|
|
25
|
-
},
|
|
26
|
-
],
|
|
27
|
-
payable: false,
|
|
28
|
-
stateMutability: "view",
|
|
29
|
-
type: "function",
|
|
30
|
-
},
|
|
31
|
-
{
|
|
32
|
-
constant: true,
|
|
33
|
-
inputs: [],
|
|
34
|
-
name: "isPriceOracle",
|
|
35
|
-
outputs: [
|
|
36
|
-
{
|
|
37
|
-
internalType: "bool",
|
|
38
|
-
name: "",
|
|
39
|
-
type: "bool",
|
|
40
|
-
},
|
|
41
|
-
],
|
|
42
|
-
payable: false,
|
|
43
|
-
stateMutability: "view",
|
|
44
|
-
type: "function",
|
|
45
|
-
},
|
|
46
|
-
];
|
|
47
|
-
|
|
48
|
-
export class PriceOracle__factory {
|
|
49
|
-
static readonly abi = _abi;
|
|
50
|
-
static createInterface(): PriceOracleInterface {
|
|
51
|
-
return new utils.Interface(_abi) as PriceOracleInterface;
|
|
52
|
-
}
|
|
53
|
-
static connect(
|
|
54
|
-
address: string,
|
|
55
|
-
signerOrProvider: Signer | Provider
|
|
56
|
-
): PriceOracle {
|
|
57
|
-
return new Contract(address, _abi, signerOrProvider) as PriceOracle;
|
|
58
|
-
}
|
|
59
|
-
}
|
|
@@ -1,87 +0,0 @@
|
|
|
1
|
-
/* Autogenerated file. Do not edit manually. */
|
|
2
|
-
/* tslint:disable */
|
|
3
|
-
/* eslint-disable */
|
|
4
|
-
import { Signer, utils, Contract, ContractFactory, Overrides } from "ethers";
|
|
5
|
-
import { Provider, TransactionRequest } from "@ethersproject/providers";
|
|
6
|
-
import type {
|
|
7
|
-
ProtocolFakeUser,
|
|
8
|
-
ProtocolFakeUserInterface,
|
|
9
|
-
} from "../ProtocolFakeUser";
|
|
10
|
-
|
|
11
|
-
const _abi = [
|
|
12
|
-
{
|
|
13
|
-
inputs: [],
|
|
14
|
-
stateMutability: "nonpayable",
|
|
15
|
-
type: "constructor",
|
|
16
|
-
},
|
|
17
|
-
{
|
|
18
|
-
inputs: [
|
|
19
|
-
{
|
|
20
|
-
internalType: "contract IQiErc20",
|
|
21
|
-
name: "qiToken",
|
|
22
|
-
type: "address",
|
|
23
|
-
},
|
|
24
|
-
{
|
|
25
|
-
internalType: "uint256",
|
|
26
|
-
name: "amount",
|
|
27
|
-
type: "uint256",
|
|
28
|
-
},
|
|
29
|
-
],
|
|
30
|
-
name: "depositBenqi",
|
|
31
|
-
outputs: [],
|
|
32
|
-
stateMutability: "nonpayable",
|
|
33
|
-
type: "function",
|
|
34
|
-
},
|
|
35
|
-
];
|
|
36
|
-
|
|
37
|
-
const _bytecode =
|
|
38
|
-
"0x608060405234801561001057600080fd5b50610345806100206000396000f3fe608060405234801561001057600080fd5b506004361061002b5760003560e01c806368a9511314610030575b600080fd5b61004361003e366004610262565b610045565b005b6000826001600160a01b0316636f307dc36040518163ffffffff1660e01b815260040160206040518083038186803b15801561008057600080fd5b505afa158015610094573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906100b8919061028e565b60405163095ea7b360e01b81526001600160a01b038581166004830152602482018590529192509082169063095ea7b390604401602060405180830381600087803b15801561010657600080fd5b505af115801561011a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061013e91906102b2565b5060405163140e25ad60e31b8152600481018390526001600160a01b0384169063a0712d6890602401602060405180830381600087803b15801561018157600080fd5b505af1158015610195573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906101b991906102d4565b506001600160a01b03831663c5ebeaec6101d46002856102ed565b6040518263ffffffff1660e01b81526004016101f291815260200190565b602060405180830381600087803b15801561020c57600080fd5b505af1158015610220573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061024491906102d4565b50505050565b6001600160a01b038116811461025f57600080fd5b50565b6000806040838503121561027557600080fd5b82356102808161024a565b946020939093013593505050565b6000602082840312156102a057600080fd5b81516102ab8161024a565b9392505050565b6000602082840312156102c457600080fd5b815180151581146102ab57600080fd5b6000602082840312156102e657600080fd5b5051919050565b60008261030a57634e487b7160e01b600052601260045260246000fd5b50049056fea2646970667358221220a70dd46a6424d672af9ec936d88fa656a3bc4ff2af4b88082302efb4be7e788664736f6c63430008090033";
|
|
39
|
-
|
|
40
|
-
type ProtocolFakeUserConstructorParams =
|
|
41
|
-
| [signer?: Signer]
|
|
42
|
-
| ConstructorParameters<typeof ContractFactory>;
|
|
43
|
-
|
|
44
|
-
const isSuperArgs = (
|
|
45
|
-
xs: ProtocolFakeUserConstructorParams
|
|
46
|
-
): xs is ConstructorParameters<typeof ContractFactory> => xs.length > 1;
|
|
47
|
-
|
|
48
|
-
export class ProtocolFakeUser__factory extends ContractFactory {
|
|
49
|
-
constructor(...args: ProtocolFakeUserConstructorParams) {
|
|
50
|
-
if (isSuperArgs(args)) {
|
|
51
|
-
super(...args);
|
|
52
|
-
} else {
|
|
53
|
-
super(_abi, _bytecode, args[0]);
|
|
54
|
-
}
|
|
55
|
-
this.contractName = "ProtocolFakeUser";
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
deploy(
|
|
59
|
-
overrides?: Overrides & { from?: string | Promise<string> }
|
|
60
|
-
): Promise<ProtocolFakeUser> {
|
|
61
|
-
return super.deploy(overrides || {}) as Promise<ProtocolFakeUser>;
|
|
62
|
-
}
|
|
63
|
-
getDeployTransaction(
|
|
64
|
-
overrides?: Overrides & { from?: string | Promise<string> }
|
|
65
|
-
): TransactionRequest {
|
|
66
|
-
return super.getDeployTransaction(overrides || {});
|
|
67
|
-
}
|
|
68
|
-
attach(address: string): ProtocolFakeUser {
|
|
69
|
-
return super.attach(address) as ProtocolFakeUser;
|
|
70
|
-
}
|
|
71
|
-
connect(signer: Signer): ProtocolFakeUser__factory {
|
|
72
|
-
return super.connect(signer) as ProtocolFakeUser__factory;
|
|
73
|
-
}
|
|
74
|
-
static readonly contractName: "ProtocolFakeUser";
|
|
75
|
-
public readonly contractName: "ProtocolFakeUser";
|
|
76
|
-
static readonly bytecode = _bytecode;
|
|
77
|
-
static readonly abi = _abi;
|
|
78
|
-
static createInterface(): ProtocolFakeUserInterface {
|
|
79
|
-
return new utils.Interface(_abi) as ProtocolFakeUserInterface;
|
|
80
|
-
}
|
|
81
|
-
static connect(
|
|
82
|
-
address: string,
|
|
83
|
-
signerOrProvider: Signer | Provider
|
|
84
|
-
): ProtocolFakeUser {
|
|
85
|
-
return new Contract(address, _abi, signerOrProvider) as ProtocolFakeUser;
|
|
86
|
-
}
|
|
87
|
-
}
|