@pendle/core-v2 0.6.4 → 0.6.5
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 +0 -13
- 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 +0 -13
- package/build/artifacts/contracts/SuperComposableYield/implementations/SCYBaseWithRewards.sol/SCYBaseWithRewards.dbg.json +1 -1
- package/build/artifacts/contracts/SuperComposableYield/implementations/SCYBaseWithRewards.sol/SCYBaseWithRewards.json +0 -13
- 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 +51 -56
- package/build/artifacts/contracts/core/PendleMarketFactory.sol/PendleMarketFactory.dbg.json +1 -1
- package/build/artifacts/contracts/core/PendleMarketFactory.sol/PendleMarketFactory.json +4 -30
- package/build/artifacts/contracts/core/PendleOwnershipToken.sol/PendleOwnershipToken.dbg.json +4 -0
- package/build/artifacts/contracts/core/PendleOwnershipToken.sol/PendleOwnershipToken.json +439 -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 +2 -20
- 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 +16 -21
- package/build/artifacts/contracts/core/PendleSCYImpl/PendleBtrflySCY.sol/PendleBtrflyScy.dbg.json +1 -1
- package/build/artifacts/contracts/core/PendleSCYImpl/PendleBtrflySCY.sol/PendleBtrflyScy.json +16 -21
- package/build/artifacts/contracts/core/PendleSCYImpl/PendleStETHSCY.sol/PendleStEthSCY.dbg.json +1 -1
- package/build/artifacts/contracts/core/PendleSCYImpl/PendleStETHSCY.sol/PendleStEthSCY.json +18 -23
- package/build/artifacts/contracts/core/PendleSCYImpl/PendleYearnVaultSCY.sol/PendleYearnVaultScy.dbg.json +1 -1
- package/build/artifacts/contracts/core/PendleSCYImpl/PendleYearnVaultSCY.sol/PendleYearnVaultScy.json +17 -22
- 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 +12 -628
- 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 +92 -128
- package/build/artifacts/contracts/core/actions/ActionRedeem.sol/PendleRouterRedeemUpg.dbg.json +4 -0
- package/build/artifacts/contracts/core/actions/ActionRedeem.sol/{ActionRedeem.json → PendleRouterRedeemUpg.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 +69 -105
- package/build/artifacts/contracts/core/actions/base/ActionSCYAndOTBase.sol/ActionSCYAndOTBase.dbg.json +4 -0
- package/build/artifacts/contracts/core/actions/base/{ActionSCYAndPTBase.sol/ActionSCYAndPTBase.json → ActionSCYAndOTBase.sol/ActionSCYAndOTBase.json} +2 -2
- package/build/artifacts/contracts/core/actions/base/ActionSCYAndYOBase.sol/ActionSCYAndYOBase.dbg.json +4 -0
- package/build/artifacts/contracts/core/actions/base/{ActionSCYAndPYBase.sol/ActionSCYAndPYBase.json → ActionSCYAndYOBase.sol/ActionSCYAndYOBase.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 +78 -114
- 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 +54 -90
- package/build/artifacts/contracts/interfaces/IPAllAction.sol/IPAllAction.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPAllAction.sol/IPAllAction.json +138 -210
- 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/IPOwnershipToken.sol/IPOwnershipToken.dbg.json +4 -0
- package/build/artifacts/contracts/interfaces/{IPPrincipalToken.sol/IPPrincipalToken.json → IPOwnershipToken.sol/IPOwnershipToken.json} +2 -2
- package/build/artifacts/contracts/interfaces/IPPermissionsV2Upg.sol/IPermissionsV2Upg.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPRouterStatic.sol/IPRouterStatic.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPRouterStatic.sol/IPRouterStatic.json +10 -626
- 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/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/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/deployments/kovan.json +21 -24
- package/package.json +1 -1
- package/typechain-types/ActionCallback.ts +5 -5
- package/typechain-types/ActionCore.ts +280 -232
- package/typechain-types/{ActionSCYAndPYBase.ts → ActionSCYAndYOBase.ts} +54 -54
- package/typechain-types/ActionSCYAndYTBase.ts +49 -49
- package/typechain-types/ActionYT.ts +140 -92
- package/typechain-types/AggregatorV2V3Interface.ts +380 -0
- package/typechain-types/BenqiChainlinkOracle.ts +362 -0
- package/typechain-types/BoringOwnable.ts +194 -0
- package/typechain-types/BoringOwnableData.ts +100 -0
- package/typechain-types/BoringOwnableUpg.ts +194 -0
- package/typechain-types/BoringOwnableUpgData.ts +100 -0
- package/typechain-types/Comptroller.ts +2860 -0
- package/typechain-types/ComptrollerErrorReporter.ts +70 -0
- package/typechain-types/ComptrollerInterface.ts +881 -0
- package/typechain-types/ComptrollerVXStorage.ts +781 -0
- package/typechain-types/CrosschainContract.ts +113 -0
- package/typechain-types/CrosschainReceiver.ts +347 -0
- package/typechain-types/CrosschainSender.ts +210 -0
- package/typechain-types/EIP20Interface.ts +337 -0
- package/typechain-types/EIP20NonStandardInterface.ts +298 -0
- package/typechain-types/ERC20Burnable.ts +473 -0
- package/typechain-types/ERC20Locker.ts +91 -0
- package/typechain-types/ERC20Premined.ts +473 -0
- package/typechain-types/ERC20PresetFixedSupply.ts +473 -0
- package/typechain-types/EpochController.ts +195 -0
- package/typechain-types/FundKeeper.ts +347 -0
- package/typechain-types/GaugeTypeControllerAbstract.ts +546 -0
- package/typechain-types/GaugeTypeControllerCrosschain.ts +733 -0
- package/typechain-types/GaugeTypeControllerMainchain.ts +604 -0
- package/typechain-types/IGaugeController.ts +99 -0
- package/typechain-types/ILiquidYieldToken.ts +639 -0
- package/typechain-types/ILiquidYieldTokenWrap.ts +790 -0
- package/typechain-types/IMessageBus.ts +543 -0
- package/typechain-types/IMessageReceiverApp.ts +110 -0
- package/typechain-types/IPActionCore.ts +231 -183
- package/typechain-types/IPActionYT.ts +91 -43
- package/typechain-types/IPAllAction.ts +322 -204
- package/typechain-types/IPFlashCallback.ts +115 -0
- package/typechain-types/IPLiquidYieldToken.ts +641 -0
- package/typechain-types/IPMarket.ts +55 -55
- package/typechain-types/IPMarketAddRemoveCallback.ts +10 -10
- package/typechain-types/IPMarketCallback.ts +107 -0
- package/typechain-types/IPMarketFactory.ts +3 -3
- package/typechain-types/IPMarketSwapCallback.ts +5 -5
- package/typechain-types/{IPPrincipalToken.ts → IPOwnershipToken.ts} +5 -5
- package/typechain-types/IPRouterCore.ts +769 -0
- package/typechain-types/IPRouterRedeem.ts +155 -0
- package/typechain-types/IPRouterStatic.ts +49 -529
- package/typechain-types/IPRouterYT.ts +489 -0
- package/typechain-types/IPYieldContractFactory.ts +19 -19
- package/typechain-types/IPYieldToken.ts +29 -29
- package/typechain-types/IPermissionsV2.ts +87 -0
- package/typechain-types/IRainbowBridge.ts +91 -0
- package/typechain-types/ISCYRewardIndex.ts +695 -0
- package/typechain-types/ISuperComposableYield.ts +0 -13
- package/typechain-types/IVEPendleToken.ts +121 -0
- package/typechain-types/IXPendle.ts +114 -0
- package/typechain-types/InterestRateModel.ts +178 -0
- package/typechain-types/JumpRateModel.ts +347 -0
- package/typechain-types/LYTBase.ts +721 -0
- package/typechain-types/LYTBaseWithRewards.ts +806 -0
- package/typechain-types/LYTWrap.ts +872 -0
- package/typechain-types/LYTWrapWithRewards.ts +979 -0
- package/typechain-types/LiquidityMining.ts +468 -0
- package/typechain-types/Maximillion.ts +145 -0
- package/typechain-types/Ownable.ts +160 -0
- package/typechain-types/PendleAaveV3LYT.ts +808 -0
- package/typechain-types/PendleAaveV3SCY.ts +0 -13
- package/typechain-types/PendleBaseToken.ts +1 -1
- package/typechain-types/PendleBenQiErc20LYT.ts +901 -0
- package/typechain-types/PendleBenQiErc20SCY.ts +20 -14
- package/typechain-types/PendleBenqiLiquidYieldToken.ts +1013 -0
- package/typechain-types/PendleBtrflyLYT.ts +781 -0
- package/typechain-types/PendleBtrflyScy.ts +20 -14
- package/typechain-types/PendleGauge.ts +469 -0
- package/typechain-types/PendleGovernanceManager.ts +5 -5
- package/typechain-types/PendleJoeSwapHelper.ts +92 -0
- package/typechain-types/PendleLYTMockYT.ts +894 -0
- package/typechain-types/PendleLiquidYieldToken.ts +814 -0
- package/typechain-types/PendleLiquidYieldTokenBase.ts +941 -0
- package/typechain-types/PendleMarket.ts +105 -102
- package/typechain-types/PendleMarketFactory.ts +8 -48
- package/typechain-types/{PendlePrincipalToken.ts → PendleOwnershipToken.ts} +6 -15
- package/typechain-types/PendleRouter01.ts +184 -0
- package/typechain-types/PendleRouter02.ts +564 -0
- package/typechain-types/PendleRouter03.ts +224 -0
- package/typechain-types/PendleRouterBase.ts +126 -0
- package/typechain-types/PendleRouterCore.ts +328 -0
- package/typechain-types/PendleRouterCoreUpg.ts +798 -0
- package/typechain-types/PendleRouterLytAndForge.ts +331 -0
- package/typechain-types/PendleRouterMarketBase.ts +82 -0
- package/typechain-types/PendleRouterOT.ts +463 -0
- package/typechain-types/PendleRouterProxy.ts +335 -0
- package/typechain-types/PendleRouterRawTokenOT.ts +865 -0
- package/typechain-types/PendleRouterRawTokenYT.ts +520 -0
- package/typechain-types/{ActionRedeem.ts → PendleRouterRedeemUpg.ts} +5 -5
- package/typechain-types/PendleRouterSCYAndForgeBaseUpg.ts +98 -0
- package/typechain-types/PendleRouterStaticUpg.ts +399 -0
- package/typechain-types/PendleRouterYT.ts +227 -0
- package/typechain-types/PendleRouterYTBaseUpg.ts +134 -0
- package/typechain-types/PendleRouterYTUpg.ts +537 -0
- package/typechain-types/PendleStEthSCY.ts +23 -15
- package/typechain-types/PendleYTLYTBenqi.ts +863 -0
- package/typechain-types/PendleYearnVaultLYT.ts +723 -0
- package/typechain-types/PendleYearnVaultScy.ts +23 -15
- package/typechain-types/PendleYieldContractFactory.ts +28 -28
- package/typechain-types/PendleYieldToken.ts +30 -30
- package/typechain-types/PermissionsV2.ts +87 -0
- package/typechain-types/PermlessAbstract.ts +57 -0
- package/typechain-types/PglStakingContract.ts +662 -0
- package/typechain-types/PglStakingContractProxy.ts +256 -0
- package/typechain-types/PglStakingContractProxyStorage.ts +136 -0
- package/typechain-types/PglStakingContractStorage.ts +397 -0
- package/typechain-types/PriceOracle.ts +116 -0
- package/typechain-types/ProtocolFakeUser.ts +105 -0
- package/typechain-types/Qi.ts +760 -0
- package/typechain-types/QiAvax.ts +1720 -0
- package/typechain-types/QiDelegateInterface.ts +145 -0
- package/typechain-types/QiDelegationStorage.ts +82 -0
- package/typechain-types/QiDelegatorInterface.ts +149 -0
- package/typechain-types/QiErc20.ts +1846 -0
- package/typechain-types/QiErc20Delegate.ts +1926 -0
- package/typechain-types/QiErc20Delegator.ts +1885 -0
- package/typechain-types/QiErc20Interface.ts +382 -0
- package/typechain-types/QiErc20Storage.ts +79 -0
- package/typechain-types/QiToken.ts +1475 -0
- package/typechain-types/QiTokenInterface.ts +1419 -0
- package/typechain-types/QiTokenSaleDistributor.ts +771 -0
- package/typechain-types/QiTokenSaleDistributorProxy.ts +256 -0
- package/typechain-types/QiTokenSaleDistributorProxyStorage.ts +136 -0
- package/typechain-types/QiTokenSaleDistributorStorage.ts +401 -0
- package/typechain-types/QiTokenStorage.ts +311 -0
- package/typechain-types/ReentrancyGuard.ts +52 -0
- package/typechain-types/RouterStatic.ts +49 -529
- package/typechain-types/SCYBase.ts +0 -13
- package/typechain-types/SCYBaseWithRewards.ts +0 -13
- package/typechain-types/SingleGaugeTypeController.ts +478 -0
- package/typechain-types/TokenErrorReporter.ts +70 -0
- package/typechain-types/Unitroller.ts +356 -0
- package/typechain-types/UnitrollerAdminStorage.ts +143 -0
- package/typechain-types/VePendle.ts +1156 -0
- package/typechain-types/VePendleCrosschain.ts +969 -0
- package/typechain-types/VePendleToken.ts +688 -0
- package/typechain-types/VotingController.ts +883 -0
- package/typechain-types/WETH9.ts +414 -0
- package/typechain-types/WhitePaperInterestRateModel.ts +304 -0
- package/typechain-types/XPendle.ts +618 -0
- package/typechain-types/factories/ActionCallback__factory.ts +2 -2
- package/typechain-types/factories/ActionCore__factory.ts +91 -127
- package/typechain-types/factories/{ActionSCYAndPYBase__factory.ts → ActionSCYAndYOBase__factory.ts} +20 -20
- package/typechain-types/factories/ActionSCYAndYTBase__factory.ts +12 -12
- package/typechain-types/factories/ActionYT__factory.ts +68 -104
- package/typechain-types/factories/AggregatorV2V3Interface__factory.ts +288 -0
- package/typechain-types/factories/BenqiChainlinkOracle__factory.ts +311 -0
- package/typechain-types/factories/BoringOwnableData__factory.ts +90 -0
- package/typechain-types/factories/BoringOwnableUpgData__factory.ts +94 -0
- package/typechain-types/factories/BoringOwnableUpg__factory.ts +139 -0
- package/typechain-types/factories/BoringOwnable__factory.ts +149 -0
- package/typechain-types/factories/ComptrollerErrorReporter__factory.ts +93 -0
- package/typechain-types/factories/ComptrollerInterface__factory.ts +595 -0
- package/typechain-types/factories/ComptrollerVXStorage__factory.ts +610 -0
- package/typechain-types/factories/Comptroller__factory.ts +2189 -0
- package/typechain-types/factories/CrosschainContract__factory.ts +52 -0
- package/typechain-types/factories/CrosschainReceiver__factory.ts +187 -0
- package/typechain-types/factories/CrosschainSender__factory.ts +104 -0
- package/typechain-types/factories/EIP20Interface__factory.ts +248 -0
- package/typechain-types/factories/EIP20NonStandardInterface__factory.ts +213 -0
- package/typechain-types/factories/ERC20Burnable__factory.ts +324 -0
- package/typechain-types/factories/ERC20Locker__factory.ts +73 -0
- package/typechain-types/factories/ERC20Premined__factory.ts +393 -0
- package/typechain-types/factories/ERC20PresetFixedSupply__factory.ts +422 -0
- package/typechain-types/factories/EpochController__factory.ts +170 -0
- package/typechain-types/factories/FundKeeper__factory.ts +212 -0
- package/typechain-types/factories/GaugeTypeControllerAbstract__factory.ts +387 -0
- package/typechain-types/factories/GaugeTypeControllerCrosschain__factory.ts +522 -0
- package/typechain-types/factories/GaugeTypeControllerMainchain__factory.ts +431 -0
- package/typechain-types/factories/IGaugeController__factory.ts +45 -0
- package/typechain-types/factories/ILiquidYieldTokenWrap__factory.ts +533 -0
- package/typechain-types/factories/ILiquidYieldToken__factory.ts +429 -0
- package/typechain-types/factories/IMessageBus__factory.ts +396 -0
- package/typechain-types/factories/IMessageReceiverApp__factory.ts +55 -0
- package/typechain-types/factories/IPActionCore__factory.ts +78 -114
- package/typechain-types/factories/IPActionYT__factory.ts +54 -90
- package/typechain-types/factories/IPAllAction__factory.ts +138 -210
- package/typechain-types/factories/IPFlashCallback__factory.ts +49 -0
- package/typechain-types/factories/IPLiquidYieldToken__factory.ts +433 -0
- package/typechain-types/factories/IPMarketAddRemoveCallback__factory.ts +2 -2
- package/typechain-types/factories/IPMarketCallback__factory.ts +55 -0
- 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/{IPPrincipalToken__factory.ts → IPOwnershipToken__factory.ts} +8 -8
- package/typechain-types/factories/IPRouterCore__factory.ts +531 -0
- package/typechain-types/factories/IPRouterRedeem__factory.ts +72 -0
- package/typechain-types/factories/IPRouterStatic__factory.ts +10 -626
- package/typechain-types/factories/IPRouterYT__factory.ts +305 -0
- package/typechain-types/factories/IPYieldContractFactory__factory.ts +3 -3
- package/typechain-types/factories/IPYieldToken__factory.ts +5 -5
- package/typechain-types/factories/IPermissionsV2__factory.ts +39 -0
- package/typechain-types/factories/IRainbowBridge__factory.ts +76 -0
- package/typechain-types/factories/ISCYRewardIndex__factory.ts +465 -0
- package/typechain-types/factories/ISuperComposableYield__factory.ts +0 -13
- package/typechain-types/factories/IVEPendleToken__factory.ts +71 -0
- package/typechain-types/factories/IXPendle__factory.ts +61 -0
- package/typechain-types/factories/InterestRateModel__factory.ts +108 -0
- package/typechain-types/factories/JumpRateModel__factory.ts +334 -0
- package/typechain-types/factories/LYTBaseWithRewards__factory.ts +530 -0
- package/typechain-types/factories/LYTBase__factory.ts +474 -0
- package/typechain-types/factories/LYTWrapWithRewards__factory.ts +643 -0
- package/typechain-types/factories/LYTWrap__factory.ts +574 -0
- package/typechain-types/factories/LiquidityMining__factory.ts +367 -0
- package/typechain-types/factories/Maximillion__factory.ts +125 -0
- package/typechain-types/factories/Ownable__factory.ts +75 -0
- package/typechain-types/factories/PendleAaveV3LYT__factory.ts +657 -0
- package/typechain-types/factories/PendleAaveV3SCY__factory.ts +1 -24
- package/typechain-types/factories/PendleBaseToken__factory.ts +1 -1
- package/typechain-types/factories/PendleBenQiErc20LYT__factory.ts +748 -0
- package/typechain-types/factories/PendleBenQiErc20SCY__factory.ts +15 -25
- package/typechain-types/factories/PendleBenqiLiquidYieldToken__factory.ts +785 -0
- package/typechain-types/factories/PendleBtrflyLYT__factory.ts +647 -0
- package/typechain-types/factories/PendleBtrflyScy__factory.ts +15 -25
- package/typechain-types/factories/PendleGauge__factory.ts +383 -0
- package/typechain-types/factories/PendleGovernanceManager__factory.ts +2 -2
- package/typechain-types/factories/PendleJoeSwapHelper__factory.ts +52 -0
- package/typechain-types/factories/PendleLYTMockYT__factory.ts +732 -0
- package/typechain-types/factories/PendleLiquidYieldTokenBase__factory.ts +603 -0
- package/typechain-types/factories/PendleLiquidYieldToken__factory.ts +510 -0
- package/typechain-types/factories/PendleMarketFactory__factory.ts +3 -29
- package/typechain-types/factories/PendleMarket__factory.ts +54 -59
- package/typechain-types/factories/PendleOwnershipToken__factory.ts +527 -0
- package/typechain-types/factories/PendleRouter01__factory.ts +152 -0
- package/typechain-types/factories/PendleRouter02__factory.ts +438 -0
- package/typechain-types/factories/PendleRouter03__factory.ts +190 -0
- package/typechain-types/factories/PendleRouterBase__factory.ts +68 -0
- package/typechain-types/factories/PendleRouterCoreUpg__factory.ts +635 -0
- package/typechain-types/factories/PendleRouterCore__factory.ts +268 -0
- package/typechain-types/factories/PendleRouterLytAndForge__factory.ts +294 -0
- package/typechain-types/factories/PendleRouterMarketBase__factory.ts +43 -0
- package/typechain-types/factories/PendleRouterOT__factory.ts +372 -0
- package/typechain-types/factories/PendleRouterProxy__factory.ts +285 -0
- package/typechain-types/factories/PendleRouterRawTokenOT__factory.ts +697 -0
- package/typechain-types/factories/PendleRouterRawTokenYT__factory.ts +431 -0
- package/typechain-types/factories/{ActionRedeem__factory.ts → PendleRouterRedeemUpg__factory.ts} +26 -19
- package/typechain-types/factories/PendleRouterSCYAndForgeBaseUpg__factory.ts +56 -0
- package/typechain-types/factories/PendleRouterStaticUpg__factory.ts +315 -0
- package/typechain-types/factories/PendleRouterYTBaseUpg__factory.ts +66 -0
- package/typechain-types/factories/PendleRouterYTUpg__factory.ts +422 -0
- package/typechain-types/factories/PendleRouterYT__factory.ts +184 -0
- package/typechain-types/factories/PendleRouter__factory.ts +1 -1
- package/typechain-types/factories/PendleStEthSCY__factory.ts +17 -27
- package/typechain-types/factories/PendleYTLYTBenqi__factory.ts +713 -0
- package/typechain-types/factories/PendleYearnVaultLYT__factory.ts +586 -0
- package/typechain-types/factories/PendleYearnVaultScy__factory.ts +16 -26
- package/typechain-types/factories/PendleYieldContractFactory__factory.ts +6 -6
- package/typechain-types/factories/PendleYieldToken__factory.ts +12 -12
- package/typechain-types/factories/PermissionsV2__factory.ts +36 -0
- package/typechain-types/factories/PermlessAbstract__factory.ts +30 -0
- package/typechain-types/factories/PglStakingContractProxyStorage__factory.ts +130 -0
- package/typechain-types/factories/PglStakingContractProxy__factory.ts +187 -0
- package/typechain-types/factories/PglStakingContractStorage__factory.ts +309 -0
- package/typechain-types/factories/PglStakingContract__factory.ts +446 -0
- package/typechain-types/factories/PriceOracle__factory.ts +59 -0
- package/typechain-types/factories/ProtocolFakeUser__factory.ts +87 -0
- package/typechain-types/factories/QiAvax__factory.ts +1471 -0
- package/typechain-types/factories/QiDelegateInterface__factory.ts +65 -0
- package/typechain-types/factories/QiDelegationStorage__factory.ts +79 -0
- package/typechain-types/factories/QiDelegatorInterface__factory.ts +89 -0
- package/typechain-types/factories/QiErc20Delegate__factory.ts +1563 -0
- package/typechain-types/factories/QiErc20Delegator__factory.ts +1648 -0
- package/typechain-types/factories/QiErc20Interface__factory.ts +239 -0
- package/typechain-types/factories/QiErc20Storage__factory.ts +79 -0
- package/typechain-types/factories/QiErc20__factory.ts +1515 -0
- package/typechain-types/factories/QiTokenInterface__factory.ts +1182 -0
- package/typechain-types/factories/QiTokenSaleDistributorProxyStorage__factory.ts +124 -0
- package/typechain-types/factories/QiTokenSaleDistributorProxy__factory.ts +171 -0
- package/typechain-types/factories/QiTokenSaleDistributorStorage__factory.ts +289 -0
- package/typechain-types/factories/QiTokenSaleDistributor__factory.ts +480 -0
- package/typechain-types/factories/QiTokenStorage__factory.ts +274 -0
- package/typechain-types/factories/QiToken__factory.ts +1219 -0
- package/typechain-types/factories/Qi__factory.ts +648 -0
- package/typechain-types/factories/ReentrancyGuard__factory.ts +69 -0
- package/typechain-types/factories/RouterStatic__factory.ts +11 -627
- package/typechain-types/factories/SCYBaseWithRewards__factory.ts +0 -13
- package/typechain-types/factories/SCYBase__factory.ts +0 -13
- package/typechain-types/factories/SingleGaugeTypeController__factory.ts +341 -0
- package/typechain-types/factories/TokenErrorReporter__factory.ts +89 -0
- package/typechain-types/factories/UnitrollerAdminStorage__factory.ts +128 -0
- package/typechain-types/factories/Unitroller__factory.ts +305 -0
- package/typechain-types/factories/VePendleCrosschain__factory.ts +727 -0
- package/typechain-types/factories/VePendleToken__factory.ts +494 -0
- package/typechain-types/factories/VePendle__factory.ts +800 -0
- package/typechain-types/factories/VotingController__factory.ts +610 -0
- package/typechain-types/factories/WETH9__factory.ts +342 -0
- package/typechain-types/factories/WhitePaperInterestRateModel__factory.ts +281 -0
- package/typechain-types/factories/XPendle__factory.ts +473 -0
- package/typechain-types/hardhat.d.ts +20 -20
- package/typechain-types/index.ts +8 -8
- package/build/artifacts/contracts/core/PendlePrincipalToken.sol/PendlePrincipalToken.dbg.json +0 -4
- package/build/artifacts/contracts/core/PendlePrincipalToken.sol/PendlePrincipalToken.json +0 -452
- package/build/artifacts/contracts/core/actions/ActionRedeem.sol/ActionRedeem.dbg.json +0 -4
- package/build/artifacts/contracts/core/actions/base/ActionSCYAndPTBase.sol/ActionSCYAndPTBase.dbg.json +0 -4
- package/build/artifacts/contracts/core/actions/base/ActionSCYAndPYBase.sol/ActionSCYAndPYBase.dbg.json +0 -4
- package/build/artifacts/contracts/interfaces/IPPrincipalToken.sol/IPPrincipalToken.dbg.json +0 -4
- package/typechain-types/factories/PendlePrincipalToken__factory.ts +0 -540
|
@@ -0,0 +1,748 @@
|
|
|
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
|
+
PendleBenQiErc20LYT,
|
|
15
|
+
PendleBenQiErc20LYTInterface,
|
|
16
|
+
} from "../PendleBenQiErc20LYT";
|
|
17
|
+
|
|
18
|
+
const _abi = [
|
|
19
|
+
{
|
|
20
|
+
inputs: [
|
|
21
|
+
{
|
|
22
|
+
internalType: "string",
|
|
23
|
+
name: "_name",
|
|
24
|
+
type: "string",
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
internalType: "string",
|
|
28
|
+
name: "_symbol",
|
|
29
|
+
type: "string",
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
internalType: "uint8",
|
|
33
|
+
name: "__lytdecimals",
|
|
34
|
+
type: "uint8",
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
internalType: "uint8",
|
|
38
|
+
name: "__assetDecimals",
|
|
39
|
+
type: "uint8",
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
internalType: "address",
|
|
43
|
+
name: "_underlying",
|
|
44
|
+
type: "address",
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
internalType: "address",
|
|
48
|
+
name: "_qiToken",
|
|
49
|
+
type: "address",
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
internalType: "address",
|
|
53
|
+
name: "_comptroller",
|
|
54
|
+
type: "address",
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
internalType: "address",
|
|
58
|
+
name: "_QI",
|
|
59
|
+
type: "address",
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
internalType: "address",
|
|
63
|
+
name: "_WAVAX",
|
|
64
|
+
type: "address",
|
|
65
|
+
},
|
|
66
|
+
],
|
|
67
|
+
stateMutability: "nonpayable",
|
|
68
|
+
type: "constructor",
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
anonymous: false,
|
|
72
|
+
inputs: [
|
|
73
|
+
{
|
|
74
|
+
indexed: true,
|
|
75
|
+
internalType: "address",
|
|
76
|
+
name: "owner",
|
|
77
|
+
type: "address",
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
indexed: true,
|
|
81
|
+
internalType: "address",
|
|
82
|
+
name: "spender",
|
|
83
|
+
type: "address",
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
indexed: false,
|
|
87
|
+
internalType: "uint256",
|
|
88
|
+
name: "value",
|
|
89
|
+
type: "uint256",
|
|
90
|
+
},
|
|
91
|
+
],
|
|
92
|
+
name: "Approval",
|
|
93
|
+
type: "event",
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
anonymous: false,
|
|
97
|
+
inputs: [
|
|
98
|
+
{
|
|
99
|
+
indexed: true,
|
|
100
|
+
internalType: "address",
|
|
101
|
+
name: "from",
|
|
102
|
+
type: "address",
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
indexed: true,
|
|
106
|
+
internalType: "address",
|
|
107
|
+
name: "to",
|
|
108
|
+
type: "address",
|
|
109
|
+
},
|
|
110
|
+
{
|
|
111
|
+
indexed: false,
|
|
112
|
+
internalType: "uint256",
|
|
113
|
+
name: "value",
|
|
114
|
+
type: "uint256",
|
|
115
|
+
},
|
|
116
|
+
],
|
|
117
|
+
name: "Transfer",
|
|
118
|
+
type: "event",
|
|
119
|
+
},
|
|
120
|
+
{
|
|
121
|
+
inputs: [],
|
|
122
|
+
name: "QI",
|
|
123
|
+
outputs: [
|
|
124
|
+
{
|
|
125
|
+
internalType: "address",
|
|
126
|
+
name: "",
|
|
127
|
+
type: "address",
|
|
128
|
+
},
|
|
129
|
+
],
|
|
130
|
+
stateMutability: "view",
|
|
131
|
+
type: "function",
|
|
132
|
+
},
|
|
133
|
+
{
|
|
134
|
+
inputs: [],
|
|
135
|
+
name: "WAVAX",
|
|
136
|
+
outputs: [
|
|
137
|
+
{
|
|
138
|
+
internalType: "address",
|
|
139
|
+
name: "",
|
|
140
|
+
type: "address",
|
|
141
|
+
},
|
|
142
|
+
],
|
|
143
|
+
stateMutability: "view",
|
|
144
|
+
type: "function",
|
|
145
|
+
},
|
|
146
|
+
{
|
|
147
|
+
inputs: [
|
|
148
|
+
{
|
|
149
|
+
internalType: "address",
|
|
150
|
+
name: "owner",
|
|
151
|
+
type: "address",
|
|
152
|
+
},
|
|
153
|
+
{
|
|
154
|
+
internalType: "address",
|
|
155
|
+
name: "spender",
|
|
156
|
+
type: "address",
|
|
157
|
+
},
|
|
158
|
+
],
|
|
159
|
+
name: "allowance",
|
|
160
|
+
outputs: [
|
|
161
|
+
{
|
|
162
|
+
internalType: "uint256",
|
|
163
|
+
name: "",
|
|
164
|
+
type: "uint256",
|
|
165
|
+
},
|
|
166
|
+
],
|
|
167
|
+
stateMutability: "view",
|
|
168
|
+
type: "function",
|
|
169
|
+
},
|
|
170
|
+
{
|
|
171
|
+
inputs: [
|
|
172
|
+
{
|
|
173
|
+
internalType: "address",
|
|
174
|
+
name: "spender",
|
|
175
|
+
type: "address",
|
|
176
|
+
},
|
|
177
|
+
{
|
|
178
|
+
internalType: "uint256",
|
|
179
|
+
name: "amount",
|
|
180
|
+
type: "uint256",
|
|
181
|
+
},
|
|
182
|
+
],
|
|
183
|
+
name: "approve",
|
|
184
|
+
outputs: [
|
|
185
|
+
{
|
|
186
|
+
internalType: "bool",
|
|
187
|
+
name: "",
|
|
188
|
+
type: "bool",
|
|
189
|
+
},
|
|
190
|
+
],
|
|
191
|
+
stateMutability: "nonpayable",
|
|
192
|
+
type: "function",
|
|
193
|
+
},
|
|
194
|
+
{
|
|
195
|
+
inputs: [],
|
|
196
|
+
name: "assetDecimals",
|
|
197
|
+
outputs: [
|
|
198
|
+
{
|
|
199
|
+
internalType: "uint8",
|
|
200
|
+
name: "",
|
|
201
|
+
type: "uint8",
|
|
202
|
+
},
|
|
203
|
+
],
|
|
204
|
+
stateMutability: "view",
|
|
205
|
+
type: "function",
|
|
206
|
+
},
|
|
207
|
+
{
|
|
208
|
+
inputs: [
|
|
209
|
+
{
|
|
210
|
+
internalType: "address",
|
|
211
|
+
name: "account",
|
|
212
|
+
type: "address",
|
|
213
|
+
},
|
|
214
|
+
],
|
|
215
|
+
name: "balanceOf",
|
|
216
|
+
outputs: [
|
|
217
|
+
{
|
|
218
|
+
internalType: "uint256",
|
|
219
|
+
name: "",
|
|
220
|
+
type: "uint256",
|
|
221
|
+
},
|
|
222
|
+
],
|
|
223
|
+
stateMutability: "view",
|
|
224
|
+
type: "function",
|
|
225
|
+
},
|
|
226
|
+
{
|
|
227
|
+
inputs: [],
|
|
228
|
+
name: "comptroller",
|
|
229
|
+
outputs: [
|
|
230
|
+
{
|
|
231
|
+
internalType: "address",
|
|
232
|
+
name: "",
|
|
233
|
+
type: "address",
|
|
234
|
+
},
|
|
235
|
+
],
|
|
236
|
+
stateMutability: "view",
|
|
237
|
+
type: "function",
|
|
238
|
+
},
|
|
239
|
+
{
|
|
240
|
+
inputs: [],
|
|
241
|
+
name: "decimals",
|
|
242
|
+
outputs: [
|
|
243
|
+
{
|
|
244
|
+
internalType: "uint8",
|
|
245
|
+
name: "",
|
|
246
|
+
type: "uint8",
|
|
247
|
+
},
|
|
248
|
+
],
|
|
249
|
+
stateMutability: "view",
|
|
250
|
+
type: "function",
|
|
251
|
+
},
|
|
252
|
+
{
|
|
253
|
+
inputs: [
|
|
254
|
+
{
|
|
255
|
+
internalType: "address",
|
|
256
|
+
name: "spender",
|
|
257
|
+
type: "address",
|
|
258
|
+
},
|
|
259
|
+
{
|
|
260
|
+
internalType: "uint256",
|
|
261
|
+
name: "subtractedValue",
|
|
262
|
+
type: "uint256",
|
|
263
|
+
},
|
|
264
|
+
],
|
|
265
|
+
name: "decreaseAllowance",
|
|
266
|
+
outputs: [
|
|
267
|
+
{
|
|
268
|
+
internalType: "bool",
|
|
269
|
+
name: "",
|
|
270
|
+
type: "bool",
|
|
271
|
+
},
|
|
272
|
+
],
|
|
273
|
+
stateMutability: "nonpayable",
|
|
274
|
+
type: "function",
|
|
275
|
+
},
|
|
276
|
+
{
|
|
277
|
+
inputs: [],
|
|
278
|
+
name: "getBaseTokens",
|
|
279
|
+
outputs: [
|
|
280
|
+
{
|
|
281
|
+
internalType: "address[]",
|
|
282
|
+
name: "res",
|
|
283
|
+
type: "address[]",
|
|
284
|
+
},
|
|
285
|
+
],
|
|
286
|
+
stateMutability: "view",
|
|
287
|
+
type: "function",
|
|
288
|
+
},
|
|
289
|
+
{
|
|
290
|
+
inputs: [],
|
|
291
|
+
name: "getRewardTokens",
|
|
292
|
+
outputs: [
|
|
293
|
+
{
|
|
294
|
+
internalType: "address[]",
|
|
295
|
+
name: "res",
|
|
296
|
+
type: "address[]",
|
|
297
|
+
},
|
|
298
|
+
],
|
|
299
|
+
stateMutability: "view",
|
|
300
|
+
type: "function",
|
|
301
|
+
},
|
|
302
|
+
{
|
|
303
|
+
inputs: [
|
|
304
|
+
{
|
|
305
|
+
internalType: "address",
|
|
306
|
+
name: "",
|
|
307
|
+
type: "address",
|
|
308
|
+
},
|
|
309
|
+
],
|
|
310
|
+
name: "globalReward",
|
|
311
|
+
outputs: [
|
|
312
|
+
{
|
|
313
|
+
internalType: "uint256",
|
|
314
|
+
name: "index",
|
|
315
|
+
type: "uint256",
|
|
316
|
+
},
|
|
317
|
+
{
|
|
318
|
+
internalType: "uint256",
|
|
319
|
+
name: "lastBalance",
|
|
320
|
+
type: "uint256",
|
|
321
|
+
},
|
|
322
|
+
],
|
|
323
|
+
stateMutability: "view",
|
|
324
|
+
type: "function",
|
|
325
|
+
},
|
|
326
|
+
{
|
|
327
|
+
inputs: [
|
|
328
|
+
{
|
|
329
|
+
internalType: "address",
|
|
330
|
+
name: "spender",
|
|
331
|
+
type: "address",
|
|
332
|
+
},
|
|
333
|
+
{
|
|
334
|
+
internalType: "uint256",
|
|
335
|
+
name: "addedValue",
|
|
336
|
+
type: "uint256",
|
|
337
|
+
},
|
|
338
|
+
],
|
|
339
|
+
name: "increaseAllowance",
|
|
340
|
+
outputs: [
|
|
341
|
+
{
|
|
342
|
+
internalType: "bool",
|
|
343
|
+
name: "",
|
|
344
|
+
type: "bool",
|
|
345
|
+
},
|
|
346
|
+
],
|
|
347
|
+
stateMutability: "nonpayable",
|
|
348
|
+
type: "function",
|
|
349
|
+
},
|
|
350
|
+
{
|
|
351
|
+
inputs: [
|
|
352
|
+
{
|
|
353
|
+
internalType: "address",
|
|
354
|
+
name: "token",
|
|
355
|
+
type: "address",
|
|
356
|
+
},
|
|
357
|
+
],
|
|
358
|
+
name: "isValidBaseToken",
|
|
359
|
+
outputs: [
|
|
360
|
+
{
|
|
361
|
+
internalType: "bool",
|
|
362
|
+
name: "res",
|
|
363
|
+
type: "bool",
|
|
364
|
+
},
|
|
365
|
+
],
|
|
366
|
+
stateMutability: "view",
|
|
367
|
+
type: "function",
|
|
368
|
+
},
|
|
369
|
+
{
|
|
370
|
+
inputs: [],
|
|
371
|
+
name: "lastLytIndex",
|
|
372
|
+
outputs: [
|
|
373
|
+
{
|
|
374
|
+
internalType: "uint256",
|
|
375
|
+
name: "",
|
|
376
|
+
type: "uint256",
|
|
377
|
+
},
|
|
378
|
+
],
|
|
379
|
+
stateMutability: "view",
|
|
380
|
+
type: "function",
|
|
381
|
+
},
|
|
382
|
+
{
|
|
383
|
+
inputs: [],
|
|
384
|
+
name: "lytIndexCurrent",
|
|
385
|
+
outputs: [
|
|
386
|
+
{
|
|
387
|
+
internalType: "uint256",
|
|
388
|
+
name: "res",
|
|
389
|
+
type: "uint256",
|
|
390
|
+
},
|
|
391
|
+
],
|
|
392
|
+
stateMutability: "nonpayable",
|
|
393
|
+
type: "function",
|
|
394
|
+
},
|
|
395
|
+
{
|
|
396
|
+
inputs: [],
|
|
397
|
+
name: "lytIndexStored",
|
|
398
|
+
outputs: [
|
|
399
|
+
{
|
|
400
|
+
internalType: "uint256",
|
|
401
|
+
name: "res",
|
|
402
|
+
type: "uint256",
|
|
403
|
+
},
|
|
404
|
+
],
|
|
405
|
+
stateMutability: "view",
|
|
406
|
+
type: "function",
|
|
407
|
+
},
|
|
408
|
+
{
|
|
409
|
+
inputs: [
|
|
410
|
+
{
|
|
411
|
+
internalType: "address",
|
|
412
|
+
name: "recipient",
|
|
413
|
+
type: "address",
|
|
414
|
+
},
|
|
415
|
+
{
|
|
416
|
+
internalType: "address",
|
|
417
|
+
name: "baseTokenIn",
|
|
418
|
+
type: "address",
|
|
419
|
+
},
|
|
420
|
+
{
|
|
421
|
+
internalType: "uint256",
|
|
422
|
+
name: "minAmountLytOut",
|
|
423
|
+
type: "uint256",
|
|
424
|
+
},
|
|
425
|
+
],
|
|
426
|
+
name: "mint",
|
|
427
|
+
outputs: [
|
|
428
|
+
{
|
|
429
|
+
internalType: "uint256",
|
|
430
|
+
name: "amountLytOut",
|
|
431
|
+
type: "uint256",
|
|
432
|
+
},
|
|
433
|
+
],
|
|
434
|
+
stateMutability: "nonpayable",
|
|
435
|
+
type: "function",
|
|
436
|
+
},
|
|
437
|
+
{
|
|
438
|
+
inputs: [],
|
|
439
|
+
name: "name",
|
|
440
|
+
outputs: [
|
|
441
|
+
{
|
|
442
|
+
internalType: "string",
|
|
443
|
+
name: "",
|
|
444
|
+
type: "string",
|
|
445
|
+
},
|
|
446
|
+
],
|
|
447
|
+
stateMutability: "view",
|
|
448
|
+
type: "function",
|
|
449
|
+
},
|
|
450
|
+
{
|
|
451
|
+
inputs: [],
|
|
452
|
+
name: "qiToken",
|
|
453
|
+
outputs: [
|
|
454
|
+
{
|
|
455
|
+
internalType: "address",
|
|
456
|
+
name: "",
|
|
457
|
+
type: "address",
|
|
458
|
+
},
|
|
459
|
+
],
|
|
460
|
+
stateMutability: "view",
|
|
461
|
+
type: "function",
|
|
462
|
+
},
|
|
463
|
+
{
|
|
464
|
+
inputs: [
|
|
465
|
+
{
|
|
466
|
+
internalType: "address",
|
|
467
|
+
name: "recipient",
|
|
468
|
+
type: "address",
|
|
469
|
+
},
|
|
470
|
+
{
|
|
471
|
+
internalType: "address",
|
|
472
|
+
name: "baseTokenOut",
|
|
473
|
+
type: "address",
|
|
474
|
+
},
|
|
475
|
+
{
|
|
476
|
+
internalType: "uint256",
|
|
477
|
+
name: "minAmountBaseOut",
|
|
478
|
+
type: "uint256",
|
|
479
|
+
},
|
|
480
|
+
],
|
|
481
|
+
name: "redeem",
|
|
482
|
+
outputs: [
|
|
483
|
+
{
|
|
484
|
+
internalType: "uint256",
|
|
485
|
+
name: "amountBaseOut",
|
|
486
|
+
type: "uint256",
|
|
487
|
+
},
|
|
488
|
+
],
|
|
489
|
+
stateMutability: "nonpayable",
|
|
490
|
+
type: "function",
|
|
491
|
+
},
|
|
492
|
+
{
|
|
493
|
+
inputs: [
|
|
494
|
+
{
|
|
495
|
+
internalType: "address",
|
|
496
|
+
name: "user",
|
|
497
|
+
type: "address",
|
|
498
|
+
},
|
|
499
|
+
],
|
|
500
|
+
name: "redeemReward",
|
|
501
|
+
outputs: [
|
|
502
|
+
{
|
|
503
|
+
internalType: "uint256[]",
|
|
504
|
+
name: "outAmounts",
|
|
505
|
+
type: "uint256[]",
|
|
506
|
+
},
|
|
507
|
+
],
|
|
508
|
+
stateMutability: "nonpayable",
|
|
509
|
+
type: "function",
|
|
510
|
+
},
|
|
511
|
+
{
|
|
512
|
+
inputs: [],
|
|
513
|
+
name: "symbol",
|
|
514
|
+
outputs: [
|
|
515
|
+
{
|
|
516
|
+
internalType: "string",
|
|
517
|
+
name: "",
|
|
518
|
+
type: "string",
|
|
519
|
+
},
|
|
520
|
+
],
|
|
521
|
+
stateMutability: "view",
|
|
522
|
+
type: "function",
|
|
523
|
+
},
|
|
524
|
+
{
|
|
525
|
+
inputs: [],
|
|
526
|
+
name: "totalSupply",
|
|
527
|
+
outputs: [
|
|
528
|
+
{
|
|
529
|
+
internalType: "uint256",
|
|
530
|
+
name: "",
|
|
531
|
+
type: "uint256",
|
|
532
|
+
},
|
|
533
|
+
],
|
|
534
|
+
stateMutability: "view",
|
|
535
|
+
type: "function",
|
|
536
|
+
},
|
|
537
|
+
{
|
|
538
|
+
inputs: [
|
|
539
|
+
{
|
|
540
|
+
internalType: "address",
|
|
541
|
+
name: "to",
|
|
542
|
+
type: "address",
|
|
543
|
+
},
|
|
544
|
+
{
|
|
545
|
+
internalType: "uint256",
|
|
546
|
+
name: "amount",
|
|
547
|
+
type: "uint256",
|
|
548
|
+
},
|
|
549
|
+
],
|
|
550
|
+
name: "transfer",
|
|
551
|
+
outputs: [
|
|
552
|
+
{
|
|
553
|
+
internalType: "bool",
|
|
554
|
+
name: "",
|
|
555
|
+
type: "bool",
|
|
556
|
+
},
|
|
557
|
+
],
|
|
558
|
+
stateMutability: "nonpayable",
|
|
559
|
+
type: "function",
|
|
560
|
+
},
|
|
561
|
+
{
|
|
562
|
+
inputs: [
|
|
563
|
+
{
|
|
564
|
+
internalType: "address",
|
|
565
|
+
name: "from",
|
|
566
|
+
type: "address",
|
|
567
|
+
},
|
|
568
|
+
{
|
|
569
|
+
internalType: "address",
|
|
570
|
+
name: "to",
|
|
571
|
+
type: "address",
|
|
572
|
+
},
|
|
573
|
+
{
|
|
574
|
+
internalType: "uint256",
|
|
575
|
+
name: "amount",
|
|
576
|
+
type: "uint256",
|
|
577
|
+
},
|
|
578
|
+
],
|
|
579
|
+
name: "transferFrom",
|
|
580
|
+
outputs: [
|
|
581
|
+
{
|
|
582
|
+
internalType: "bool",
|
|
583
|
+
name: "",
|
|
584
|
+
type: "bool",
|
|
585
|
+
},
|
|
586
|
+
],
|
|
587
|
+
stateMutability: "nonpayable",
|
|
588
|
+
type: "function",
|
|
589
|
+
},
|
|
590
|
+
{
|
|
591
|
+
inputs: [],
|
|
592
|
+
name: "underlying",
|
|
593
|
+
outputs: [
|
|
594
|
+
{
|
|
595
|
+
internalType: "address",
|
|
596
|
+
name: "",
|
|
597
|
+
type: "address",
|
|
598
|
+
},
|
|
599
|
+
],
|
|
600
|
+
stateMutability: "view",
|
|
601
|
+
type: "function",
|
|
602
|
+
},
|
|
603
|
+
{
|
|
604
|
+
inputs: [],
|
|
605
|
+
name: "updateGlobalReward",
|
|
606
|
+
outputs: [],
|
|
607
|
+
stateMutability: "nonpayable",
|
|
608
|
+
type: "function",
|
|
609
|
+
},
|
|
610
|
+
{
|
|
611
|
+
inputs: [
|
|
612
|
+
{
|
|
613
|
+
internalType: "address",
|
|
614
|
+
name: "user",
|
|
615
|
+
type: "address",
|
|
616
|
+
},
|
|
617
|
+
],
|
|
618
|
+
name: "updateUserReward",
|
|
619
|
+
outputs: [],
|
|
620
|
+
stateMutability: "nonpayable",
|
|
621
|
+
type: "function",
|
|
622
|
+
},
|
|
623
|
+
{
|
|
624
|
+
inputs: [
|
|
625
|
+
{
|
|
626
|
+
internalType: "address",
|
|
627
|
+
name: "",
|
|
628
|
+
type: "address",
|
|
629
|
+
},
|
|
630
|
+
{
|
|
631
|
+
internalType: "address",
|
|
632
|
+
name: "",
|
|
633
|
+
type: "address",
|
|
634
|
+
},
|
|
635
|
+
],
|
|
636
|
+
name: "userReward",
|
|
637
|
+
outputs: [
|
|
638
|
+
{
|
|
639
|
+
internalType: "uint256",
|
|
640
|
+
name: "lastIndex",
|
|
641
|
+
type: "uint256",
|
|
642
|
+
},
|
|
643
|
+
{
|
|
644
|
+
internalType: "uint256",
|
|
645
|
+
name: "accuredReward",
|
|
646
|
+
type: "uint256",
|
|
647
|
+
},
|
|
648
|
+
],
|
|
649
|
+
stateMutability: "view",
|
|
650
|
+
type: "function",
|
|
651
|
+
},
|
|
652
|
+
{
|
|
653
|
+
stateMutability: "payable",
|
|
654
|
+
type: "receive",
|
|
655
|
+
},
|
|
656
|
+
];
|
|
657
|
+
|
|
658
|
+
const _bytecode =
|
|
659
|
+
"0x6101606040523480156200001257600080fd5b5060405162002e0f38038062002e0f8339810160408190526200003591620005f6565b888888888383838383838160039080519060200190620000579291906200044b565b5080516200006d9060049060208401906200044b565b50505060ff9182166080521660a052505050506001600160a01b0387811660c081905287821661014081905286831660e0528583166101005291871661012052620000ca93509150600019620000d9602090811b62000bfe17901c565b505050505050505050620007d8565b604051636eb1769f60e11b81523060048201526001600160a01b038381166024830152600091839186169063dd62ed3e9060440160206040518083038186803b1580156200012657600080fd5b505afa1580156200013b573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620001619190620006e3565b6200016d9190620006fd565b604080516001600160a01b038616602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b0390811663095ea7b360e01b17909152919250620001c991869190620001cf16565b50505050565b60006200022b826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316620002b660201b62000cea179092919060201c565b805190915015620002b157808060200190518101906200024c919062000724565b620002b15760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b60648201526084015b60405180910390fd5b505050565b6060620002c78484600085620002d1565b90505b9392505050565b606082471015620003345760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b6064820152608401620002a8565b6001600160a01b0385163b6200038d5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401620002a8565b600080866001600160a01b03168587604051620003ab919062000748565b60006040518083038185875af1925050503d8060008114620003ea576040519150601f19603f3d011682016040523d82523d6000602084013e620003ef565b606091505b509092509050620004028282866200040d565b979650505050505050565b606083156200041e575081620002ca565b8251156200042f5782518084602001fd5b8160405162461bcd60e51b8152600401620002a8919062000766565b82805462000459906200079b565b90600052602060002090601f0160209004810192826200047d5760008555620004c8565b82601f106200049857805160ff1916838001178555620004c8565b82800160010185558215620004c8579182015b82811115620004c8578251825591602001919060010190620004ab565b50620004d6929150620004da565b5090565b5b80821115620004d65760008155600101620004db565b634e487b7160e01b600052604160045260246000fd5b60005b83811015620005245781810151838201526020016200050a565b83811115620001c95750506000910152565b600082601f8301126200054857600080fd5b81516001600160401b0380821115620005655762000565620004f1565b604051601f8301601f19908116603f01168101908282118183101715620005905762000590620004f1565b81604052838152866020858801011115620005aa57600080fd5b620005bd84602083016020890162000507565b9695505050505050565b805160ff81168114620005d957600080fd5b919050565b80516001600160a01b0381168114620005d957600080fd5b60008060008060008060008060006101208a8c0312156200061657600080fd5b89516001600160401b03808211156200062e57600080fd5b6200063c8d838e0162000536565b9a5060208c01519150808211156200065357600080fd5b50620006628c828d0162000536565b9850506200067360408b01620005c7565b96506200068360608b01620005c7565b95506200069360808b01620005de565b9450620006a360a08b01620005de565b9350620006b360c08b01620005de565b9250620006c360e08b01620005de565b9150620006d46101008b01620005de565b90509295985092959850929598565b600060208284031215620006f657600080fd5b5051919050565b600082198211156200071f57634e487b7160e01b600052601160045260246000fd5b500190565b6000602082840312156200073757600080fd5b81518015158114620002ca57600080fd5b600082516200075c81846020870162000507565b9190910192915050565b60208152600082518060208401526200078781604085016020870162000507565b601f01601f19169190910160400192915050565b600181811c90821680620007b057607f821691505b60208210811415620007d257634e487b7160e01b600052602260045260246000fd5b50919050565b60805160a05160c05160e051610100516101205161014051612557620008b86000396000818161029e015281816108e901528181610af001528181610b5e01528181610f6f01528181610fc40152818161104e0152818161179f015281816117f4015281816118a70152611c9101526000818161036701528181611ce80152611d700152600081816103ef01528181610a080152611ded01526000818161033301526109b401526000818161039b0152818161093d01528181610ab501528181611077015261187e0152600061053a0152600061023a01526125576000f3fe6080604052600436106101615760003560e01c806306fdde031461016d578063095ea7b3146101985780630e6dfcd5146101c857806318160ddd146101f657806323b872dd1461020b578063313ce5671461022b578063395093511461026c578063462e4cda1461028c5780635cbadbe4146102cd5780635f22f53f146103215780635fe3b567146103555780636f307dc31461038957806370a08231146103bd57806373b295c2146103dd5780637695caa214610411578063951d9ce21461042857806395d89b411461043d578063a457c2d714610452578063a9059cbb14610472578063abc26b6a14610492578063b2427a6c146104a8578063b286de76146104dc578063bed64c2f14610509578063c2d416011461052b578063c4f59f9b1461055e578063c6c3bbe614610573578063c6d6916c14610593578063c9c0c082146105b3578063dd62ed3e146105d3578063f0d114f6146105f357600080fd5b3661016857005b600080fd5b34801561017957600080fd5b50610182610608565b60405161018f9190612139565b60405180910390f35b3480156101a457600080fd5b506101b86101b3366004612188565b61069a565b604051901515815260200161018f565b3480156101d457600080fd5b506101e86101e33660046121b2565b6106b4565b60405190815260200161018f565b34801561020257600080fd5b506002546101e8565b34801561021757600080fd5b506101b86102263660046121b2565b61074c565b34801561023757600080fd5b507f00000000000000000000000000000000000000000000000000000000000000005b60405160ff909116815260200161018f565b34801561027857600080fd5b506101b8610287366004612188565b610772565b34801561029857600080fd5b506102c07f000000000000000000000000000000000000000000000000000000000000000081565b60405161018f91906121ee565b3480156102d957600080fd5b5061030c6102e8366004612202565b60076020908152600092835260408084209091529082529020805460019091015482565b6040805192835260208301919091520161018f565b34801561032d57600080fd5b506102c07f000000000000000000000000000000000000000000000000000000000000000081565b34801561036157600080fd5b506102c07f000000000000000000000000000000000000000000000000000000000000000081565b34801561039557600080fd5b506102c07f000000000000000000000000000000000000000000000000000000000000000081565b3480156103c957600080fd5b506101e86103d8366004612235565b6107b1565b3480156103e957600080fd5b506102c07f000000000000000000000000000000000000000000000000000000000000000081565b34801561041d57600080fd5b506104266107cc565b005b34801561043457600080fd5b506008546101e8565b34801561044957600080fd5b506101826107ed565b34801561045e57600080fd5b506101b861046d366004612188565b6107fc565b34801561047e57600080fd5b506101b861048d366004612188565b610899565b34801561049e57600080fd5b506101e860085481565b3480156104b457600080fd5b5061030c6104c3366004612235565b6006602052600090815260409020805460019091015482565b3480156104e857600080fd5b506104fc6104f7366004612235565b6108a7565b60405161018f9190612250565b34801561051557600080fd5b5061051e6108c7565b60405161018f91906122d8565b34801561053757600080fd5b507f000000000000000000000000000000000000000000000000000000000000000061025a565b34801561056a57600080fd5b5061051e610992565b34801561057f57600080fd5b506101e861058e3660046121b2565b610a3a565b34801561059f57600080fd5b506104266105ae366004612235565b610aa4565b3480156105bf57600080fd5b506101b86105ce366004612235565b610ab1565b3480156105df57600080fd5b506101e86105ee366004612202565b610b29565b3480156105ff57600080fd5b506101e8610b54565b606060038054610617906122eb565b80601f0160208091040260200160405190810160405280929190818152602001828054610643906122eb565b80156106905780601f1061066557610100808354040283529160200191610690565b820191906000526020600020905b81548152906001019060200180831161067357829003601f168201915b5050505050905090565b6000336106a8818585610d01565b60019150505b92915050565b60006106bf83610ab1565b6106e45760405162461bcd60e51b81526004016106db90612326565b60405180910390fd5b60006106ef306107b1565b90506106fb3082610e26565b6107058482610f6b565b9150828210156107275760405162461bcd60e51b81526004016106db90612352565b61073b6001600160a01b038516868461109b565b610744846110ba565b509392505050565b60003361075a858285611152565b6107658585856111c6565b60019150505b9392505050565b3360008181526001602090815260408083206001600160a01b03871684529091528120549091906106a890829086906107ac908790612392565b610d01565b6001600160a01b031660009081526020819052604090205490565b60006107d6610992565b90506107ea816107e560025490565b61138d565b50565b606060048054610617906122eb565b3360008181526001602090815260408083206001600160a01b0387168452909152812054909190838110156108815760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b60648201526084016106db565b61088e8286868403610d01565b506001949350505050565b6000336106a88185856111c6565b60606108be826108b6846107b1565b6002546114db565b6106ae826114fc565b60408051600280825260608083018452926020830190803683370190505090507f00000000000000000000000000000000000000000000000000000000000000008160008151811061091b5761091b6123c0565b60200260200101906001600160a01b031690816001600160a01b0316815250507f00000000000000000000000000000000000000000000000000000000000000008160018151811061096f5761096f6123c0565b60200260200101906001600160a01b031690816001600160a01b03168152505090565b60408051600280825260608083018452926020830190803683370190505090507f0000000000000000000000000000000000000000000000000000000000000000816000815181106109e6576109e66123c0565b60200260200101906001600160a01b031690816001600160a01b0316815250507f00000000000000000000000000000000000000000000000000000000000000008160018151811061096f5761096f6123c0565b6000610a4583610ab1565b610a615760405162461bcd60e51b81526004016106db90612326565b6000610a6c846116d8565b9050610a78848261179b565b915082821015610a9a5760405162461bcd60e51b81526004016106db90612352565b61074485836118cb565b6107ea816108b6836107b1565b60007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316826001600160a01b031614806106ae57507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316826001600160a01b03161492915050565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b6000610bf46008547f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663bd6d894d6040518163ffffffff1660e01b8152600401602060405180830381600087803b158015610bb757600080fd5b505af1158015610bcb573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610bef91906123d6565b6119a5565b6008819055919050565b604051636eb1769f60e11b81523060048201526001600160a01b038381166024830152600091839186169063dd62ed3e9060440160206040518083038186803b158015610c4a57600080fd5b505afa158015610c5e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c8291906123d6565b610c8c9190612392565b9050610ce48463095ea7b360e01b8584604051602401610cad9291906123ef565b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b0319909316929092179091526119bb565b50505050565b6060610cf98484600085611a8d565b949350505050565b6001600160a01b038316610d635760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b60648201526084016106db565b6001600160a01b038216610dc45760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b60648201526084016106db565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591015b60405180910390a3505050565b6001600160a01b038216610e865760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b60648201526084016106db565b610e9282600083611bbe565b6001600160a01b03821660009081526020819052604090205481811015610f065760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b60648201526084016106db565b6001600160a01b0383166000908152602081905260408120838303905560028054849290610f35908490612408565b90915550506040518281526000906001600160a01b0385169060008051602061250283398151915290602001610e19565b505050565b60007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316836001600160a01b03161415610fae5750806106ae565b60405163db006a7560e01b8152600481018390527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03169063db006a7590602401602060405180830381600087803b15801561101057600080fd5b505af1158015611024573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061104891906123d6565b506110727f00000000000000000000000000000000000000000000000000000000000000006110ba565b61076b7f00000000000000000000000000000000000000000000000000000000000000006116d8565b610f668363a9059cbb60e01b8484604051602401610cad9291906123ef565b6040516370a0823160e01b81526001600160a01b038216906370a08231906110e69030906004016121ee565b60206040518083038186803b1580156110fe57600080fd5b505afa158015611112573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061113691906123d6565b6001600160a01b03909116600090815260056020526040902055565b600061115e8484610b29565b90506000198114610ce457818110156111b95760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e636500000060448201526064016106db565b610ce48484848403610d01565b6001600160a01b03831661122a5760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b60648201526084016106db565b6001600160a01b03821661128c5760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b60648201526084016106db565b611297838383611bbe565b6001600160a01b0383166000908152602081905260409020548181101561130f5760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b60648201526084016106db565b6001600160a01b03808516600090815260208190526040808220858503905591851681529081208054849290611346908490612392565b92505081905550826001600160a01b0316846001600160a01b03166000805160206125028339815191528460405161138091815260200190565b60405180910390a3610ce4565b611395611c16565b61139e82611e63565b60005b8251811015610f665760008382815181106113be576113be6123c0565b602002602001015190506000816001600160a01b03166370a08231306040518263ffffffff1660e01b81526004016113f691906121ee565b60206040518083038186803b15801561140e57600080fd5b505afa158015611422573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061144691906123d6565b905083156114ae576001600160a01b03821660009081526006602052604090206001015461148090859061147a9084612408565b90611f06565b6001600160a01b038316600090815260066020526040812080549091906114a8908490612392565b90915550505b6001600160a01b039091166000908152600660205260409020600101556114d48161241f565b90506113a1565b60006114e5610992565b90506114f1818361138d565b610ce4818585611f3d565b60606000611508610992565b905080516001600160401b03811115611523576115236123aa565b60405190808252806020026020018201604052801561154c578160200160208202803683370190505b50915060005b81518110156116d157600082828151811061156f5761156f6123c0565b6020026020010151905060076000866001600160a01b03166001600160a01b031681526020019081526020016000206000826001600160a01b03166001600160a01b03168152602001908152602001600020600101548483815181106115d7576115d76123c0565b6020908102919091018101919091526001600160a01b0380871660009081526007835260408082209285168252919092528120600101558351849083908110611622576116226123c0565b602002602001015160066000836001600160a01b03166001600160a01b0316815260200190815260200160002060010160008282546116619190612408565b9250508190555083828151811061167a5761167a6123c0565b60200260200101516000146116c0576116c08585848151811061169f5761169f6123c0565b6020026020010151836001600160a01b031661109b9092919063ffffffff16565b506116ca8161241f565b9050611552565b5050919050565b600080826001600160a01b03166370a08231306040518263ffffffff1660e01b815260040161170791906121ee565b60206040518083038186803b15801561171f57600080fd5b505afa158015611733573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061175791906123d6565b6001600160a01b03841660009081526005602052604090205490915061177d9082612408565b6001600160a01b039093166000908152600560205260409020555090565b60007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316836001600160a01b031614156117de5750806106ae565b60405163140e25ad60e31b8152600481018390527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03169063a0712d6890602401602060405180830381600087803b15801561184057600080fd5b505af1158015611854573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061187891906123d6565b506118a27f00000000000000000000000000000000000000000000000000000000000000006110ba565b61076b7f00000000000000000000000000000000000000000000000000000000000000006116d8565b6001600160a01b0382166119215760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f20616464726573730060448201526064016106db565b61192d60008383611bbe565b806002600082825461193f9190612392565b90915550506001600160a01b0382166000908152602081905260408120805483929061196c908490612392565b90915550506040518181526001600160a01b038316906000906000805160206125028339815191529060200160405180910390a35b5050565b60008183116119b4578161076b565b5090919050565b6000611a10826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316610cea9092919063ffffffff16565b805190915015610f665780806020019051810190611a2e919061243a565b610f665760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b60648201526084016106db565b606082471015611aee5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b60648201526084016106db565b6001600160a01b0385163b611b455760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016106db565b600080866001600160a01b03168587604051611b61919061245c565b60006040518083038185875af1925050503d8060008114611b9e576040519150601f19603f3d011682016040523d82523d6000602084013e611ba3565b606091505b5091509150611bb38282866120b3565b979650505050505050565b6000611bc8610992565b9050611bd7816107e560025490565b6001600160a01b03841615611bf957611bf98185611bf4876107b1565b611f3d565b6001600160a01b03831615610ce457610ce48184611bf4866107b1565b6040805160018082528183019092526000916020808301908036833750506040805160018082528183019092529293506000929150602080830190803683370190505090503082600081518110611c6f57611c6f6123c0565b60200260200101906001600160a01b031690816001600160a01b0316815250507f000000000000000000000000000000000000000000000000000000000000000081600081518110611cc357611cc36123c0565b6001600160a01b039283166020918202929092010152604051638805714b60e01b81527f000000000000000000000000000000000000000000000000000000000000000090911690638805714b90611d2990600090869086908390600190600401612478565b600060405180830381600087803b158015611d4357600080fd5b505af1158015611d57573d6000803e3d6000fd5b5050604051638805714b60e01b81526001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169250638805714b9150611db190600190869086906000908490600401612478565b600060405180830381600087803b158015611dcb57600080fd5b505af1158015611ddf573d6000803e3d6000fd5b50505050476000146119a1577f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663d0e30db0476040518263ffffffff1660e01b81526004016000604051808303818588803b158015611e4657600080fd5b505af1158015611e5a573d6000803e3d6000fd5b50505050505050565b60005b81518110156119a15760066000838381518110611e8557611e856123c0565b60200260200101516001600160a01b03166001600160a01b031681526020019081526020016000206000015460001415611ef657600160066000848481518110611ed157611ed16123c0565b6020908102919091018101516001600160a01b03168252810191909152604001600020555b611eff8161241f565b9050611e66565b600082611f15575060006106ae565b6000611f29670de0b6b3a7640000856124c0565b9050611f3583826124df565b9150506106ae565b60005b8351811015610ce4576000848281518110611f5d57611f5d6123c0565b6020908102919091018101516001600160a01b0380871660009081526007845260408082209284168252919093529091205490915080611fce57506001600160a01b0390811660008181526006602090815260408083205494881683526007825280832093835292905220556120a3565b6001600160a01b038216600090815260066020526040902054811415611ff55750506120a3565b6001600160a01b038216600090815260066020526040812054612019908390612408565b9050600061202786836120ec565b6001600160a01b038089166000908152600760209081526040808320938916835292905290812060010180549293508392909190612066908490612392565b9091555050506001600160a01b03928316600081815260066020908152604080832054968a16835260078252808320938352929052209290925550505b6120ac8161241f565b9050611f40565b606083156120c257508161076b565b8251156120d25782518084602001fd5b8160405162461bcd60e51b81526004016106db9190612139565b6000806120f983856124c0565b9050610cf9670de0b6b3a7640000826124df565b60005b83811015612128578181015183820152602001612110565b83811115610ce45750506000910152565b602081526000825180602084015261215881604085016020870161210d565b601f01601f19169190910160400192915050565b80356001600160a01b038116811461218357600080fd5b919050565b6000806040838503121561219b57600080fd5b6121a48361216c565b946020939093013593505050565b6000806000606084860312156121c757600080fd5b6121d08461216c565b92506121de6020850161216c565b9150604084013590509250925092565b6001600160a01b0391909116815260200190565b6000806040838503121561221557600080fd5b61221e8361216c565b915061222c6020840161216c565b90509250929050565b60006020828403121561224757600080fd5b61076b8261216c565b6020808252825182820181905260009190848201906040850190845b818110156122885783518352928401929184019160010161226c565b50909695505050505050565b600081518084526020808501945080840160005b838110156122cd5781516001600160a01b0316875295820195908201906001016122a8565b509495945050505050565b60208152600061076b6020830184612294565b600181811c908216806122ff57607f821691505b6020821081141561232057634e487b7160e01b600052602260045260246000fd5b50919050565b60208082526012908201527134b73b30b634b2103130b9b2903a37b5b2b760711b604082015260600190565b60208082526010908201526f1a5b9cdd59999a58da595b9d081bdd5d60821b604082015260600190565b634e487b7160e01b600052601160045260246000fd5b600082198211156123a5576123a561237c565b500190565b634e487b7160e01b600052604160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b6000602082840312156123e857600080fd5b5051919050565b6001600160a01b03929092168252602082015260400190565b60008282101561241a5761241a61237c565b500390565b60006000198214156124335761243361237c565b5060010190565b60006020828403121561244c57600080fd5b8151801515811461076b57600080fd5b6000825161246e81846020870161210d565b9190910192915050565b60ff8616815260a06020820152600061249460a0830187612294565b82810360408401526124a68187612294565b941515606084015250509015156080909101529392505050565b60008160001904831182151516156124da576124da61237c565b500290565b6000826124fc57634e487b7160e01b600052601260045260246000fd5b50049056feddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3efa2646970667358221220d3f7837c5f60796c12c768f04958381c7dc4bfecf1bca992136682834da186c564736f6c63430008090033";
|
|
660
|
+
|
|
661
|
+
type PendleBenQiErc20LYTConstructorParams =
|
|
662
|
+
| [signer?: Signer]
|
|
663
|
+
| ConstructorParameters<typeof ContractFactory>;
|
|
664
|
+
|
|
665
|
+
const isSuperArgs = (
|
|
666
|
+
xs: PendleBenQiErc20LYTConstructorParams
|
|
667
|
+
): xs is ConstructorParameters<typeof ContractFactory> => xs.length > 1;
|
|
668
|
+
|
|
669
|
+
export class PendleBenQiErc20LYT__factory extends ContractFactory {
|
|
670
|
+
constructor(...args: PendleBenQiErc20LYTConstructorParams) {
|
|
671
|
+
if (isSuperArgs(args)) {
|
|
672
|
+
super(...args);
|
|
673
|
+
} else {
|
|
674
|
+
super(_abi, _bytecode, args[0]);
|
|
675
|
+
}
|
|
676
|
+
this.contractName = "PendleBenQiErc20LYT";
|
|
677
|
+
}
|
|
678
|
+
|
|
679
|
+
deploy(
|
|
680
|
+
_name: string,
|
|
681
|
+
_symbol: string,
|
|
682
|
+
__lytdecimals: BigNumberish,
|
|
683
|
+
__assetDecimals: BigNumberish,
|
|
684
|
+
_underlying: string,
|
|
685
|
+
_qiToken: string,
|
|
686
|
+
_comptroller: string,
|
|
687
|
+
_QI: string,
|
|
688
|
+
_WAVAX: string,
|
|
689
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
690
|
+
): Promise<PendleBenQiErc20LYT> {
|
|
691
|
+
return super.deploy(
|
|
692
|
+
_name,
|
|
693
|
+
_symbol,
|
|
694
|
+
__lytdecimals,
|
|
695
|
+
__assetDecimals,
|
|
696
|
+
_underlying,
|
|
697
|
+
_qiToken,
|
|
698
|
+
_comptroller,
|
|
699
|
+
_QI,
|
|
700
|
+
_WAVAX,
|
|
701
|
+
overrides || {}
|
|
702
|
+
) as Promise<PendleBenQiErc20LYT>;
|
|
703
|
+
}
|
|
704
|
+
getDeployTransaction(
|
|
705
|
+
_name: string,
|
|
706
|
+
_symbol: string,
|
|
707
|
+
__lytdecimals: BigNumberish,
|
|
708
|
+
__assetDecimals: BigNumberish,
|
|
709
|
+
_underlying: string,
|
|
710
|
+
_qiToken: string,
|
|
711
|
+
_comptroller: string,
|
|
712
|
+
_QI: string,
|
|
713
|
+
_WAVAX: string,
|
|
714
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
715
|
+
): TransactionRequest {
|
|
716
|
+
return super.getDeployTransaction(
|
|
717
|
+
_name,
|
|
718
|
+
_symbol,
|
|
719
|
+
__lytdecimals,
|
|
720
|
+
__assetDecimals,
|
|
721
|
+
_underlying,
|
|
722
|
+
_qiToken,
|
|
723
|
+
_comptroller,
|
|
724
|
+
_QI,
|
|
725
|
+
_WAVAX,
|
|
726
|
+
overrides || {}
|
|
727
|
+
);
|
|
728
|
+
}
|
|
729
|
+
attach(address: string): PendleBenQiErc20LYT {
|
|
730
|
+
return super.attach(address) as PendleBenQiErc20LYT;
|
|
731
|
+
}
|
|
732
|
+
connect(signer: Signer): PendleBenQiErc20LYT__factory {
|
|
733
|
+
return super.connect(signer) as PendleBenQiErc20LYT__factory;
|
|
734
|
+
}
|
|
735
|
+
static readonly contractName: "PendleBenQiErc20LYT";
|
|
736
|
+
public readonly contractName: "PendleBenQiErc20LYT";
|
|
737
|
+
static readonly bytecode = _bytecode;
|
|
738
|
+
static readonly abi = _abi;
|
|
739
|
+
static createInterface(): PendleBenQiErc20LYTInterface {
|
|
740
|
+
return new utils.Interface(_abi) as PendleBenQiErc20LYTInterface;
|
|
741
|
+
}
|
|
742
|
+
static connect(
|
|
743
|
+
address: string,
|
|
744
|
+
signerOrProvider: Signer | Provider
|
|
745
|
+
): PendleBenQiErc20LYT {
|
|
746
|
+
return new Contract(address, _abi, signerOrProvider) as PendleBenQiErc20LYT;
|
|
747
|
+
}
|
|
748
|
+
}
|