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