@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,647 +0,0 @@
|
|
|
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
|
-
PendleBtrflyLYT,
|
|
15
|
-
PendleBtrflyLYTInterface,
|
|
16
|
-
} from "../PendleBtrflyLYT";
|
|
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: "_BTRFLY",
|
|
44
|
-
type: "address",
|
|
45
|
-
},
|
|
46
|
-
{
|
|
47
|
-
internalType: "address",
|
|
48
|
-
name: "_xBTRFLY",
|
|
49
|
-
type: "address",
|
|
50
|
-
},
|
|
51
|
-
{
|
|
52
|
-
internalType: "address",
|
|
53
|
-
name: "_wxBTRFLY",
|
|
54
|
-
type: "address",
|
|
55
|
-
},
|
|
56
|
-
],
|
|
57
|
-
stateMutability: "nonpayable",
|
|
58
|
-
type: "constructor",
|
|
59
|
-
},
|
|
60
|
-
{
|
|
61
|
-
anonymous: false,
|
|
62
|
-
inputs: [
|
|
63
|
-
{
|
|
64
|
-
indexed: true,
|
|
65
|
-
internalType: "address",
|
|
66
|
-
name: "owner",
|
|
67
|
-
type: "address",
|
|
68
|
-
},
|
|
69
|
-
{
|
|
70
|
-
indexed: true,
|
|
71
|
-
internalType: "address",
|
|
72
|
-
name: "spender",
|
|
73
|
-
type: "address",
|
|
74
|
-
},
|
|
75
|
-
{
|
|
76
|
-
indexed: false,
|
|
77
|
-
internalType: "uint256",
|
|
78
|
-
name: "value",
|
|
79
|
-
type: "uint256",
|
|
80
|
-
},
|
|
81
|
-
],
|
|
82
|
-
name: "Approval",
|
|
83
|
-
type: "event",
|
|
84
|
-
},
|
|
85
|
-
{
|
|
86
|
-
anonymous: false,
|
|
87
|
-
inputs: [
|
|
88
|
-
{
|
|
89
|
-
indexed: true,
|
|
90
|
-
internalType: "address",
|
|
91
|
-
name: "from",
|
|
92
|
-
type: "address",
|
|
93
|
-
},
|
|
94
|
-
{
|
|
95
|
-
indexed: true,
|
|
96
|
-
internalType: "address",
|
|
97
|
-
name: "to",
|
|
98
|
-
type: "address",
|
|
99
|
-
},
|
|
100
|
-
{
|
|
101
|
-
indexed: false,
|
|
102
|
-
internalType: "uint256",
|
|
103
|
-
name: "value",
|
|
104
|
-
type: "uint256",
|
|
105
|
-
},
|
|
106
|
-
],
|
|
107
|
-
name: "Transfer",
|
|
108
|
-
type: "event",
|
|
109
|
-
},
|
|
110
|
-
{
|
|
111
|
-
inputs: [],
|
|
112
|
-
name: "BTRFLY",
|
|
113
|
-
outputs: [
|
|
114
|
-
{
|
|
115
|
-
internalType: "address",
|
|
116
|
-
name: "",
|
|
117
|
-
type: "address",
|
|
118
|
-
},
|
|
119
|
-
],
|
|
120
|
-
stateMutability: "view",
|
|
121
|
-
type: "function",
|
|
122
|
-
},
|
|
123
|
-
{
|
|
124
|
-
inputs: [
|
|
125
|
-
{
|
|
126
|
-
internalType: "address",
|
|
127
|
-
name: "owner",
|
|
128
|
-
type: "address",
|
|
129
|
-
},
|
|
130
|
-
{
|
|
131
|
-
internalType: "address",
|
|
132
|
-
name: "spender",
|
|
133
|
-
type: "address",
|
|
134
|
-
},
|
|
135
|
-
],
|
|
136
|
-
name: "allowance",
|
|
137
|
-
outputs: [
|
|
138
|
-
{
|
|
139
|
-
internalType: "uint256",
|
|
140
|
-
name: "",
|
|
141
|
-
type: "uint256",
|
|
142
|
-
},
|
|
143
|
-
],
|
|
144
|
-
stateMutability: "view",
|
|
145
|
-
type: "function",
|
|
146
|
-
},
|
|
147
|
-
{
|
|
148
|
-
inputs: [
|
|
149
|
-
{
|
|
150
|
-
internalType: "address",
|
|
151
|
-
name: "spender",
|
|
152
|
-
type: "address",
|
|
153
|
-
},
|
|
154
|
-
{
|
|
155
|
-
internalType: "uint256",
|
|
156
|
-
name: "amount",
|
|
157
|
-
type: "uint256",
|
|
158
|
-
},
|
|
159
|
-
],
|
|
160
|
-
name: "approve",
|
|
161
|
-
outputs: [
|
|
162
|
-
{
|
|
163
|
-
internalType: "bool",
|
|
164
|
-
name: "",
|
|
165
|
-
type: "bool",
|
|
166
|
-
},
|
|
167
|
-
],
|
|
168
|
-
stateMutability: "nonpayable",
|
|
169
|
-
type: "function",
|
|
170
|
-
},
|
|
171
|
-
{
|
|
172
|
-
inputs: [],
|
|
173
|
-
name: "assetDecimals",
|
|
174
|
-
outputs: [
|
|
175
|
-
{
|
|
176
|
-
internalType: "uint8",
|
|
177
|
-
name: "",
|
|
178
|
-
type: "uint8",
|
|
179
|
-
},
|
|
180
|
-
],
|
|
181
|
-
stateMutability: "view",
|
|
182
|
-
type: "function",
|
|
183
|
-
},
|
|
184
|
-
{
|
|
185
|
-
inputs: [
|
|
186
|
-
{
|
|
187
|
-
internalType: "address",
|
|
188
|
-
name: "account",
|
|
189
|
-
type: "address",
|
|
190
|
-
},
|
|
191
|
-
],
|
|
192
|
-
name: "balanceOf",
|
|
193
|
-
outputs: [
|
|
194
|
-
{
|
|
195
|
-
internalType: "uint256",
|
|
196
|
-
name: "",
|
|
197
|
-
type: "uint256",
|
|
198
|
-
},
|
|
199
|
-
],
|
|
200
|
-
stateMutability: "view",
|
|
201
|
-
type: "function",
|
|
202
|
-
},
|
|
203
|
-
{
|
|
204
|
-
inputs: [],
|
|
205
|
-
name: "decimals",
|
|
206
|
-
outputs: [
|
|
207
|
-
{
|
|
208
|
-
internalType: "uint8",
|
|
209
|
-
name: "",
|
|
210
|
-
type: "uint8",
|
|
211
|
-
},
|
|
212
|
-
],
|
|
213
|
-
stateMutability: "view",
|
|
214
|
-
type: "function",
|
|
215
|
-
},
|
|
216
|
-
{
|
|
217
|
-
inputs: [
|
|
218
|
-
{
|
|
219
|
-
internalType: "address",
|
|
220
|
-
name: "spender",
|
|
221
|
-
type: "address",
|
|
222
|
-
},
|
|
223
|
-
{
|
|
224
|
-
internalType: "uint256",
|
|
225
|
-
name: "subtractedValue",
|
|
226
|
-
type: "uint256",
|
|
227
|
-
},
|
|
228
|
-
],
|
|
229
|
-
name: "decreaseAllowance",
|
|
230
|
-
outputs: [
|
|
231
|
-
{
|
|
232
|
-
internalType: "bool",
|
|
233
|
-
name: "",
|
|
234
|
-
type: "bool",
|
|
235
|
-
},
|
|
236
|
-
],
|
|
237
|
-
stateMutability: "nonpayable",
|
|
238
|
-
type: "function",
|
|
239
|
-
},
|
|
240
|
-
{
|
|
241
|
-
inputs: [],
|
|
242
|
-
name: "getBaseTokens",
|
|
243
|
-
outputs: [
|
|
244
|
-
{
|
|
245
|
-
internalType: "address[]",
|
|
246
|
-
name: "res",
|
|
247
|
-
type: "address[]",
|
|
248
|
-
},
|
|
249
|
-
],
|
|
250
|
-
stateMutability: "view",
|
|
251
|
-
type: "function",
|
|
252
|
-
},
|
|
253
|
-
{
|
|
254
|
-
inputs: [],
|
|
255
|
-
name: "getRewardTokens",
|
|
256
|
-
outputs: [
|
|
257
|
-
{
|
|
258
|
-
internalType: "address[]",
|
|
259
|
-
name: "res",
|
|
260
|
-
type: "address[]",
|
|
261
|
-
},
|
|
262
|
-
],
|
|
263
|
-
stateMutability: "view",
|
|
264
|
-
type: "function",
|
|
265
|
-
},
|
|
266
|
-
{
|
|
267
|
-
inputs: [
|
|
268
|
-
{
|
|
269
|
-
internalType: "address",
|
|
270
|
-
name: "spender",
|
|
271
|
-
type: "address",
|
|
272
|
-
},
|
|
273
|
-
{
|
|
274
|
-
internalType: "uint256",
|
|
275
|
-
name: "addedValue",
|
|
276
|
-
type: "uint256",
|
|
277
|
-
},
|
|
278
|
-
],
|
|
279
|
-
name: "increaseAllowance",
|
|
280
|
-
outputs: [
|
|
281
|
-
{
|
|
282
|
-
internalType: "bool",
|
|
283
|
-
name: "",
|
|
284
|
-
type: "bool",
|
|
285
|
-
},
|
|
286
|
-
],
|
|
287
|
-
stateMutability: "nonpayable",
|
|
288
|
-
type: "function",
|
|
289
|
-
},
|
|
290
|
-
{
|
|
291
|
-
inputs: [
|
|
292
|
-
{
|
|
293
|
-
internalType: "address",
|
|
294
|
-
name: "token",
|
|
295
|
-
type: "address",
|
|
296
|
-
},
|
|
297
|
-
],
|
|
298
|
-
name: "isValidBaseToken",
|
|
299
|
-
outputs: [
|
|
300
|
-
{
|
|
301
|
-
internalType: "bool",
|
|
302
|
-
name: "res",
|
|
303
|
-
type: "bool",
|
|
304
|
-
},
|
|
305
|
-
],
|
|
306
|
-
stateMutability: "view",
|
|
307
|
-
type: "function",
|
|
308
|
-
},
|
|
309
|
-
{
|
|
310
|
-
inputs: [],
|
|
311
|
-
name: "lastLytIndex",
|
|
312
|
-
outputs: [
|
|
313
|
-
{
|
|
314
|
-
internalType: "uint256",
|
|
315
|
-
name: "",
|
|
316
|
-
type: "uint256",
|
|
317
|
-
},
|
|
318
|
-
],
|
|
319
|
-
stateMutability: "view",
|
|
320
|
-
type: "function",
|
|
321
|
-
},
|
|
322
|
-
{
|
|
323
|
-
inputs: [],
|
|
324
|
-
name: "lytIndexCurrent",
|
|
325
|
-
outputs: [
|
|
326
|
-
{
|
|
327
|
-
internalType: "uint256",
|
|
328
|
-
name: "res",
|
|
329
|
-
type: "uint256",
|
|
330
|
-
},
|
|
331
|
-
],
|
|
332
|
-
stateMutability: "nonpayable",
|
|
333
|
-
type: "function",
|
|
334
|
-
},
|
|
335
|
-
{
|
|
336
|
-
inputs: [],
|
|
337
|
-
name: "lytIndexStored",
|
|
338
|
-
outputs: [
|
|
339
|
-
{
|
|
340
|
-
internalType: "uint256",
|
|
341
|
-
name: "res",
|
|
342
|
-
type: "uint256",
|
|
343
|
-
},
|
|
344
|
-
],
|
|
345
|
-
stateMutability: "view",
|
|
346
|
-
type: "function",
|
|
347
|
-
},
|
|
348
|
-
{
|
|
349
|
-
inputs: [
|
|
350
|
-
{
|
|
351
|
-
internalType: "address",
|
|
352
|
-
name: "recipient",
|
|
353
|
-
type: "address",
|
|
354
|
-
},
|
|
355
|
-
{
|
|
356
|
-
internalType: "address",
|
|
357
|
-
name: "baseTokenIn",
|
|
358
|
-
type: "address",
|
|
359
|
-
},
|
|
360
|
-
{
|
|
361
|
-
internalType: "uint256",
|
|
362
|
-
name: "minAmountLytOut",
|
|
363
|
-
type: "uint256",
|
|
364
|
-
},
|
|
365
|
-
],
|
|
366
|
-
name: "mint",
|
|
367
|
-
outputs: [
|
|
368
|
-
{
|
|
369
|
-
internalType: "uint256",
|
|
370
|
-
name: "amountLytOut",
|
|
371
|
-
type: "uint256",
|
|
372
|
-
},
|
|
373
|
-
],
|
|
374
|
-
stateMutability: "nonpayable",
|
|
375
|
-
type: "function",
|
|
376
|
-
},
|
|
377
|
-
{
|
|
378
|
-
inputs: [],
|
|
379
|
-
name: "name",
|
|
380
|
-
outputs: [
|
|
381
|
-
{
|
|
382
|
-
internalType: "string",
|
|
383
|
-
name: "",
|
|
384
|
-
type: "string",
|
|
385
|
-
},
|
|
386
|
-
],
|
|
387
|
-
stateMutability: "view",
|
|
388
|
-
type: "function",
|
|
389
|
-
},
|
|
390
|
-
{
|
|
391
|
-
inputs: [
|
|
392
|
-
{
|
|
393
|
-
internalType: "address",
|
|
394
|
-
name: "recipient",
|
|
395
|
-
type: "address",
|
|
396
|
-
},
|
|
397
|
-
{
|
|
398
|
-
internalType: "address",
|
|
399
|
-
name: "baseTokenOut",
|
|
400
|
-
type: "address",
|
|
401
|
-
},
|
|
402
|
-
{
|
|
403
|
-
internalType: "uint256",
|
|
404
|
-
name: "minAmountBaseOut",
|
|
405
|
-
type: "uint256",
|
|
406
|
-
},
|
|
407
|
-
],
|
|
408
|
-
name: "redeem",
|
|
409
|
-
outputs: [
|
|
410
|
-
{
|
|
411
|
-
internalType: "uint256",
|
|
412
|
-
name: "amountBaseOut",
|
|
413
|
-
type: "uint256",
|
|
414
|
-
},
|
|
415
|
-
],
|
|
416
|
-
stateMutability: "nonpayable",
|
|
417
|
-
type: "function",
|
|
418
|
-
},
|
|
419
|
-
{
|
|
420
|
-
inputs: [
|
|
421
|
-
{
|
|
422
|
-
internalType: "address",
|
|
423
|
-
name: "user",
|
|
424
|
-
type: "address",
|
|
425
|
-
},
|
|
426
|
-
],
|
|
427
|
-
name: "redeemReward",
|
|
428
|
-
outputs: [
|
|
429
|
-
{
|
|
430
|
-
internalType: "uint256[]",
|
|
431
|
-
name: "",
|
|
432
|
-
type: "uint256[]",
|
|
433
|
-
},
|
|
434
|
-
],
|
|
435
|
-
stateMutability: "nonpayable",
|
|
436
|
-
type: "function",
|
|
437
|
-
},
|
|
438
|
-
{
|
|
439
|
-
inputs: [],
|
|
440
|
-
name: "symbol",
|
|
441
|
-
outputs: [
|
|
442
|
-
{
|
|
443
|
-
internalType: "string",
|
|
444
|
-
name: "",
|
|
445
|
-
type: "string",
|
|
446
|
-
},
|
|
447
|
-
],
|
|
448
|
-
stateMutability: "view",
|
|
449
|
-
type: "function",
|
|
450
|
-
},
|
|
451
|
-
{
|
|
452
|
-
inputs: [],
|
|
453
|
-
name: "totalSupply",
|
|
454
|
-
outputs: [
|
|
455
|
-
{
|
|
456
|
-
internalType: "uint256",
|
|
457
|
-
name: "",
|
|
458
|
-
type: "uint256",
|
|
459
|
-
},
|
|
460
|
-
],
|
|
461
|
-
stateMutability: "view",
|
|
462
|
-
type: "function",
|
|
463
|
-
},
|
|
464
|
-
{
|
|
465
|
-
inputs: [
|
|
466
|
-
{
|
|
467
|
-
internalType: "address",
|
|
468
|
-
name: "to",
|
|
469
|
-
type: "address",
|
|
470
|
-
},
|
|
471
|
-
{
|
|
472
|
-
internalType: "uint256",
|
|
473
|
-
name: "amount",
|
|
474
|
-
type: "uint256",
|
|
475
|
-
},
|
|
476
|
-
],
|
|
477
|
-
name: "transfer",
|
|
478
|
-
outputs: [
|
|
479
|
-
{
|
|
480
|
-
internalType: "bool",
|
|
481
|
-
name: "",
|
|
482
|
-
type: "bool",
|
|
483
|
-
},
|
|
484
|
-
],
|
|
485
|
-
stateMutability: "nonpayable",
|
|
486
|
-
type: "function",
|
|
487
|
-
},
|
|
488
|
-
{
|
|
489
|
-
inputs: [
|
|
490
|
-
{
|
|
491
|
-
internalType: "address",
|
|
492
|
-
name: "from",
|
|
493
|
-
type: "address",
|
|
494
|
-
},
|
|
495
|
-
{
|
|
496
|
-
internalType: "address",
|
|
497
|
-
name: "to",
|
|
498
|
-
type: "address",
|
|
499
|
-
},
|
|
500
|
-
{
|
|
501
|
-
internalType: "uint256",
|
|
502
|
-
name: "amount",
|
|
503
|
-
type: "uint256",
|
|
504
|
-
},
|
|
505
|
-
],
|
|
506
|
-
name: "transferFrom",
|
|
507
|
-
outputs: [
|
|
508
|
-
{
|
|
509
|
-
internalType: "bool",
|
|
510
|
-
name: "",
|
|
511
|
-
type: "bool",
|
|
512
|
-
},
|
|
513
|
-
],
|
|
514
|
-
stateMutability: "nonpayable",
|
|
515
|
-
type: "function",
|
|
516
|
-
},
|
|
517
|
-
{
|
|
518
|
-
inputs: [],
|
|
519
|
-
name: "updateGlobalReward",
|
|
520
|
-
outputs: [],
|
|
521
|
-
stateMutability: "nonpayable",
|
|
522
|
-
type: "function",
|
|
523
|
-
},
|
|
524
|
-
{
|
|
525
|
-
inputs: [
|
|
526
|
-
{
|
|
527
|
-
internalType: "address",
|
|
528
|
-
name: "user",
|
|
529
|
-
type: "address",
|
|
530
|
-
},
|
|
531
|
-
],
|
|
532
|
-
name: "updateUserReward",
|
|
533
|
-
outputs: [],
|
|
534
|
-
stateMutability: "nonpayable",
|
|
535
|
-
type: "function",
|
|
536
|
-
},
|
|
537
|
-
{
|
|
538
|
-
inputs: [],
|
|
539
|
-
name: "wxBTRFLY",
|
|
540
|
-
outputs: [
|
|
541
|
-
{
|
|
542
|
-
internalType: "address",
|
|
543
|
-
name: "",
|
|
544
|
-
type: "address",
|
|
545
|
-
},
|
|
546
|
-
],
|
|
547
|
-
stateMutability: "view",
|
|
548
|
-
type: "function",
|
|
549
|
-
},
|
|
550
|
-
{
|
|
551
|
-
inputs: [],
|
|
552
|
-
name: "xBTRFLY",
|
|
553
|
-
outputs: [
|
|
554
|
-
{
|
|
555
|
-
internalType: "address",
|
|
556
|
-
name: "",
|
|
557
|
-
type: "address",
|
|
558
|
-
},
|
|
559
|
-
],
|
|
560
|
-
stateMutability: "view",
|
|
561
|
-
type: "function",
|
|
562
|
-
},
|
|
563
|
-
];
|
|
564
|
-
|
|
565
|
-
const _bytecode =
|
|
566
|
-
"0x6101206040523480156200001257600080fd5b50604051620022fa380380620022fa83398101604081905262000035916200060a565b8686868683838160039080519060200190620000539291906200045f565b508051620000699060049060208401906200045f565b50505060ff9182166080521660a05250506001600160a01b0383811660c081905283821660e052908216610100819052620000b49190600019620000ed602090811b6200093f17901c565b620000e06101005160001960e0516001600160a01b0316620000ed60201b6200093f179092919060201c565b50505050505050620007c6565b604051636eb1769f60e11b81523060048201526001600160a01b038381166024830152600091839186169063dd62ed3e9060440160206040518083038186803b1580156200013a57600080fd5b505afa1580156200014f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620001759190620006d1565b620001819190620006eb565b604080516001600160a01b038616602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b0390811663095ea7b360e01b17909152919250620001dd91869190620001e316565b50505050565b60006200023f826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316620002ca60201b62000a2b179092919060201c565b805190915015620002c5578080602001905181019062000260919062000712565b620002c55760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b60648201526084015b60405180910390fd5b505050565b6060620002db8484600085620002e5565b90505b9392505050565b606082471015620003485760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b6064820152608401620002bc565b6001600160a01b0385163b620003a15760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401620002bc565b600080866001600160a01b03168587604051620003bf919062000736565b60006040518083038185875af1925050503d8060008114620003fe576040519150601f19603f3d011682016040523d82523d6000602084013e62000403565b606091505b5090925090506200041682828662000421565b979650505050505050565b6060831562000432575081620002de565b825115620004435782518084602001fd5b8160405162461bcd60e51b8152600401620002bc919062000754565b8280546200046d9062000789565b90600052602060002090601f016020900481019282620004915760008555620004dc565b82601f10620004ac57805160ff1916838001178555620004dc565b82800160010185558215620004dc579182015b82811115620004dc578251825591602001919060010190620004bf565b50620004ea929150620004ee565b5090565b5b80821115620004ea5760008155600101620004ef565b634e487b7160e01b600052604160045260246000fd5b60005b83811015620005385781810151838201526020016200051e565b83811115620001dd5750506000910152565b600082601f8301126200055c57600080fd5b81516001600160401b038082111562000579576200057962000505565b604051601f8301601f19908116603f01168101908282118183101715620005a457620005a462000505565b81604052838152866020858801011115620005be57600080fd5b620005d18460208301602089016200051b565b9695505050505050565b805160ff81168114620005ed57600080fd5b919050565b80516001600160a01b0381168114620005ed57600080fd5b600080600080600080600060e0888a0312156200062657600080fd5b87516001600160401b03808211156200063e57600080fd5b6200064c8b838c016200054a565b985060208a01519150808211156200066357600080fd5b50620006728a828b016200054a565b9650506200068360408901620005db565b94506200069360608901620005db565b9350620006a360808901620005f2565b9250620006b360a08901620005f2565b9150620006c360c08901620005f2565b905092959891949750929550565b600060208284031215620006e457600080fd5b5051919050565b600082198211156200070d57634e487b7160e01b600052601160045260246000fd5b500190565b6000602082840312156200072557600080fd5b81518015158114620002de57600080fd5b600082516200074a8184602087016200051b565b9190910192915050565b6020815260008251806020840152620007758160408501602087016200051b565b601f01601f19169190910160400192915050565b600181811c908216806200079e57607f821691505b60208210811415620007c057634e487b7160e01b600052602260045260246000fd5b50919050565b60805160a05160c05160e05161010051611a716200088960003960008181610278015281816106e901528181610823015281816108b601528181610cf201528181610d7e01528181610df701528181611230015261132f01526000818161037501528181610695015281816107e701528181610da9015281816112e101526113ba0152600081816101b201528181610641015281816107ac01528181610ca4015281816111e201526112bb015260006102ee015260006101f60152611a716000f3fe608060405234801561001057600080fd5b506004361061013e5760003560e01c806306fdde0314610143578063095ea7b3146101615780630e6dfcd51461018457806318160ddd146101a557806322443c10146101ad57806323b872dd146101e1578063313ce567146101f4578063395093511461022857806370a082311461023b5780637695caa21461024e578063951d9ce21461025057806395d89b4114610258578063a457c2d714610260578063a6ba93ec14610273578063a9059cbb1461029a578063abc26b6a146102ad578063b286de76146102b6578063bed64c2f146102d7578063c2d41601146102ec578063c4f59f9b14610312578063c6c3bbe614610326578063c6d6916c14610339578063c9c0c0821461034a578063dd62ed3e1461035d578063df776f7614610370578063f0d114f614610397575b600080fd5b61014b61039f565b6040516101589190611729565b60405180910390f35b61017461016f366004611778565b610431565b6040519015158152602001610158565b6101976101923660046117a2565b61044b565b604051908152602001610158565b600254610197565b6101d47f000000000000000000000000000000000000000000000000000000000000000081565b60405161015891906117de565b6101746101ef3660046117a2565b6104e3565b7f00000000000000000000000000000000000000000000000000000000000000005b60405160ff9091168152602001610158565b610174610236366004611778565b610509565b6101976102493660046117f2565b610548565b005b600654610197565b61014b610563565b61017461026e366004611778565b610572565b6101d47f000000000000000000000000000000000000000000000000000000000000000081565b6101746102a8366004611778565b61060f565b61019760065481565b6102ca6102c43660046117f2565b50606090565b604051610158919061180d565b6102df61061d565b6040516101589190611851565b7f0000000000000000000000000000000000000000000000000000000000000000610216565b6040805160008152602081019091526102df565b6101976103343660046117a2565b61073e565b61024e6103473660046117f2565b50565b6101746103583660046117f2565b6107a8565b61019761036b366004611892565b61085c565b6101d47f000000000000000000000000000000000000000000000000000000000000000081565b610197610887565b6060600380546103ae906118c5565b80601f01602080910402602001604051908101604052809291908181526020018280546103da906118c5565b80156104275780601f106103fc57610100808354040283529160200191610427565b820191906000526020600020905b81548152906001019060200180831161040a57829003601f168201915b5050505050905090565b60003361043f818585610a42565b60019150505b92915050565b6000610456836107a8565b61047b5760405162461bcd60e51b8152600401610472906118fa565b60405180910390fd5b600061048630610548565b90506104923082610b67565b61049c8482610ca0565b9150828210156104be5760405162461bcd60e51b815260040161047290611926565b6104d26001600160a01b0385168684610e34565b6104db84610e53565b509392505050565b6000336104f1858285610eeb565b6104fc858585610f5f565b60019150505b9392505050565b3360008181526001602090815260408083206001600160a01b038716845290915281205490919061043f9082908690610543908790611966565b610a42565b6001600160a01b031660009081526020819052604090205490565b6060600480546103ae906118c5565b3360008181526001602090815260408083206001600160a01b0387168452909152812054909190838110156105f75760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b6064820152608401610472565b6106048286868403610a42565b506001949350505050565b60003361043f818585610f5f565b604080516003808252608082019092526060916020820183803683370190505090507f0000000000000000000000000000000000000000000000000000000000000000816000815181106106735761067361197e565b60200260200101906001600160a01b031690816001600160a01b0316815250507f0000000000000000000000000000000000000000000000000000000000000000816001815181106106c7576106c761197e565b60200260200101906001600160a01b031690816001600160a01b0316815250507f00000000000000000000000000000000000000000000000000000000000000008160028151811061071b5761071b61197e565b60200260200101906001600160a01b031690816001600160a01b03168152505090565b6000610749836107a8565b6107655760405162461bcd60e51b8152600401610472906118fa565b60006107708461111b565b905061077c84826111de565b91508282101561079e5760405162461bcd60e51b815260040161047290611926565b6104db85836113de565b60007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316826001600160a01b0316148061081b57507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316826001600160a01b0316145b8061044557507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316826001600160a01b03161492915050565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b60065460405163d9f7e9a760e01b8152670de0b6b3a76400006004820152600091610935916001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169063d9f7e9a79060240160206040518083038186803b1580156108f857600080fd5b505afa15801561090c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109309190611994565b6114ab565b6006819055919050565b604051636eb1769f60e11b81523060048201526001600160a01b038381166024830152600091839186169063dd62ed3e9060440160206040518083038186803b15801561098b57600080fd5b505afa15801561099f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109c39190611994565b6109cd9190611966565b9050610a258463095ea7b360e01b85846040516024016109ee9291906119ad565b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b0319909316929092179091526114c1565b50505050565b6060610a3a8484600085611593565b949350505050565b6001600160a01b038316610aa45760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608401610472565b6001600160a01b038216610b055760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608401610472565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591015b60405180910390a3505050565b6001600160a01b038216610bc75760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b6064820152608401610472565b6001600160a01b03821660009081526020819052604090205481811015610c3b5760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b6064820152608401610472565b6001600160a01b0383166000908152602081905260408120838303905560028054849290610c6a9084906119c6565b90915550506040518281526000906001600160a01b03851690600080516020611a1c83398151915290602001610b5a565b505050565b60007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316836001600160a01b03161415610da757604051634a97344b60e01b8152600481018390527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031690634a97344b906024015b602060405180830381600087803b158015610d3f57600080fd5b505af1158015610d53573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d779190611994565b9050610da27f0000000000000000000000000000000000000000000000000000000000000000610e53565b610445565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316836001600160a01b03161415610e2e5760405163e09ae5f760e01b8152600481018390527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03169063e09ae5f790602401610d25565b50919050565b610c9b8363a9059cbb60e01b84846040516024016109ee9291906119ad565b6040516370a0823160e01b81526001600160a01b038216906370a0823190610e7f9030906004016117de565b60206040518083038186803b158015610e9757600080fd5b505afa158015610eab573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ecf9190611994565b6001600160a01b03909116600090815260056020526040902055565b6000610ef7848461085c565b90506000198114610a255781811015610f525760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e63650000006044820152606401610472565b610a258484848403610a42565b6001600160a01b038316610fc35760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b6064820152608401610472565b6001600160a01b0382166110255760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b6064820152608401610472565b6001600160a01b0383166000908152602081905260409020548181101561109d5760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b6064820152608401610472565b6001600160a01b038085166000908152602081905260408082208585039055918516815290812080548492906110d4908490611966565b92505081905550826001600160a01b0316846001600160a01b0316600080516020611a1c8339815191528460405161110e91815260200190565b60405180910390a3610a25565b600080826001600160a01b03166370a08231306040518263ffffffff1660e01b815260040161114a91906117de565b60206040518083038186803b15801561116257600080fd5b505afa158015611176573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061119a9190611994565b6001600160a01b0384166000908152600560205260409020549091506111c090826119c6565b6001600160a01b039093166000908152600560205260409020555090565b60007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316836001600160a01b031614156112df57604051630969ad2960e31b8152600481018390527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031690634b4d694890602401602060405180830381600087803b15801561127c57600080fd5b505af1158015611290573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112b49190611994565b9050610da27f0000000000000000000000000000000000000000000000000000000000000000610e53565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316836001600160a01b03161415610e2e57604051631077c0f960e11b8152600481018390527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906320ef81f290602401602060405180830381600087803b15801561137b57600080fd5b505af115801561138f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113b39190611994565b9050610da27f0000000000000000000000000000000000000000000000000000000000000000610e53565b6001600160a01b0382166114345760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f2061646472657373006044820152606401610472565b80600260008282546114469190611966565b90915550506001600160a01b03821660009081526020819052604081208054839290611473908490611966565b90915550506040518181526001600160a01b03831690600090600080516020611a1c8339815191529060200160405180910390a35050565b60008183116114ba5781610502565b5090919050565b6000611516826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316610a2b9092919063ffffffff16565b805190915015610c9b578080602001905181019061153491906119dd565b610c9b5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401610472565b6060824710156115f45760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b6064820152608401610472565b6001600160a01b0385163b61164b5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610472565b600080866001600160a01b0316858760405161166791906119ff565b60006040518083038185875af1925050503d80600081146116a4576040519150601f19603f3d011682016040523d82523d6000602084013e6116a9565b606091505b50915091506116b98282866116c4565b979650505050505050565b606083156116d3575081610502565b8251156116e35782518084602001fd5b8160405162461bcd60e51b81526004016104729190611729565b60005b83811015611718578181015183820152602001611700565b83811115610a255750506000910152565b60208152600082518060208401526117488160408501602087016116fd565b601f01601f19169190910160400192915050565b80356001600160a01b038116811461177357600080fd5b919050565b6000806040838503121561178b57600080fd5b6117948361175c565b946020939093013593505050565b6000806000606084860312156117b757600080fd5b6117c08461175c565b92506117ce6020850161175c565b9150604084013590509250925092565b6001600160a01b0391909116815260200190565b60006020828403121561180457600080fd5b6105028261175c565b6020808252825182820181905260009190848201906040850190845b8181101561184557835183529284019291840191600101611829565b50909695505050505050565b6020808252825182820181905260009190848201906040850190845b818110156118455783516001600160a01b03168352928401929184019160010161186d565b600080604083850312156118a557600080fd5b6118ae8361175c565b91506118bc6020840161175c565b90509250929050565b600181811c908216806118d957607f821691505b60208210811415610e2e57634e487b7160e01b600052602260045260246000fd5b60208082526012908201527134b73b30b634b2103130b9b2903a37b5b2b760711b604082015260600190565b60208082526010908201526f1a5b9cdd59999a58da595b9d081bdd5d60821b604082015260600190565b634e487b7160e01b600052601160045260246000fd5b6000821982111561197957611979611950565b500190565b634e487b7160e01b600052603260045260246000fd5b6000602082840312156119a657600080fd5b5051919050565b6001600160a01b03929092168252602082015260400190565b6000828210156119d8576119d8611950565b500390565b6000602082840312156119ef57600080fd5b8151801515811461050257600080fd5b60008251611a118184602087016116fd565b919091019291505056feddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3efa26469706673582212206aa5288d604266fa4f91dcd9573183adbcbe00a105659129623add9c10b843f564736f6c63430008090033";
|
|
567
|
-
|
|
568
|
-
type PendleBtrflyLYTConstructorParams =
|
|
569
|
-
| [signer?: Signer]
|
|
570
|
-
| ConstructorParameters<typeof ContractFactory>;
|
|
571
|
-
|
|
572
|
-
const isSuperArgs = (
|
|
573
|
-
xs: PendleBtrflyLYTConstructorParams
|
|
574
|
-
): xs is ConstructorParameters<typeof ContractFactory> => xs.length > 1;
|
|
575
|
-
|
|
576
|
-
export class PendleBtrflyLYT__factory extends ContractFactory {
|
|
577
|
-
constructor(...args: PendleBtrflyLYTConstructorParams) {
|
|
578
|
-
if (isSuperArgs(args)) {
|
|
579
|
-
super(...args);
|
|
580
|
-
} else {
|
|
581
|
-
super(_abi, _bytecode, args[0]);
|
|
582
|
-
}
|
|
583
|
-
this.contractName = "PendleBtrflyLYT";
|
|
584
|
-
}
|
|
585
|
-
|
|
586
|
-
deploy(
|
|
587
|
-
_name: string,
|
|
588
|
-
_symbol: string,
|
|
589
|
-
__lytdecimals: BigNumberish,
|
|
590
|
-
__assetDecimals: BigNumberish,
|
|
591
|
-
_BTRFLY: string,
|
|
592
|
-
_xBTRFLY: string,
|
|
593
|
-
_wxBTRFLY: string,
|
|
594
|
-
overrides?: Overrides & { from?: string | Promise<string> }
|
|
595
|
-
): Promise<PendleBtrflyLYT> {
|
|
596
|
-
return super.deploy(
|
|
597
|
-
_name,
|
|
598
|
-
_symbol,
|
|
599
|
-
__lytdecimals,
|
|
600
|
-
__assetDecimals,
|
|
601
|
-
_BTRFLY,
|
|
602
|
-
_xBTRFLY,
|
|
603
|
-
_wxBTRFLY,
|
|
604
|
-
overrides || {}
|
|
605
|
-
) as Promise<PendleBtrflyLYT>;
|
|
606
|
-
}
|
|
607
|
-
getDeployTransaction(
|
|
608
|
-
_name: string,
|
|
609
|
-
_symbol: string,
|
|
610
|
-
__lytdecimals: BigNumberish,
|
|
611
|
-
__assetDecimals: BigNumberish,
|
|
612
|
-
_BTRFLY: string,
|
|
613
|
-
_xBTRFLY: string,
|
|
614
|
-
_wxBTRFLY: string,
|
|
615
|
-
overrides?: Overrides & { from?: string | Promise<string> }
|
|
616
|
-
): TransactionRequest {
|
|
617
|
-
return super.getDeployTransaction(
|
|
618
|
-
_name,
|
|
619
|
-
_symbol,
|
|
620
|
-
__lytdecimals,
|
|
621
|
-
__assetDecimals,
|
|
622
|
-
_BTRFLY,
|
|
623
|
-
_xBTRFLY,
|
|
624
|
-
_wxBTRFLY,
|
|
625
|
-
overrides || {}
|
|
626
|
-
);
|
|
627
|
-
}
|
|
628
|
-
attach(address: string): PendleBtrflyLYT {
|
|
629
|
-
return super.attach(address) as PendleBtrflyLYT;
|
|
630
|
-
}
|
|
631
|
-
connect(signer: Signer): PendleBtrflyLYT__factory {
|
|
632
|
-
return super.connect(signer) as PendleBtrflyLYT__factory;
|
|
633
|
-
}
|
|
634
|
-
static readonly contractName: "PendleBtrflyLYT";
|
|
635
|
-
public readonly contractName: "PendleBtrflyLYT";
|
|
636
|
-
static readonly bytecode = _bytecode;
|
|
637
|
-
static readonly abi = _abi;
|
|
638
|
-
static createInterface(): PendleBtrflyLYTInterface {
|
|
639
|
-
return new utils.Interface(_abi) as PendleBtrflyLYTInterface;
|
|
640
|
-
}
|
|
641
|
-
static connect(
|
|
642
|
-
address: string,
|
|
643
|
-
signerOrProvider: Signer | Provider
|
|
644
|
-
): PendleBtrflyLYT {
|
|
645
|
-
return new Contract(address, _abi, signerOrProvider) as PendleBtrflyLYT;
|
|
646
|
-
}
|
|
647
|
-
}
|