@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,647 @@
|
|
|
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
|
+
}
|