@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,422 @@
|
|
|
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
|
+
ERC20PresetFixedSupply,
|
|
15
|
+
ERC20PresetFixedSupplyInterface,
|
|
16
|
+
} from "../ERC20PresetFixedSupply";
|
|
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: "uint256",
|
|
33
|
+
name: "initialSupply",
|
|
34
|
+
type: "uint256",
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
internalType: "address",
|
|
38
|
+
name: "owner",
|
|
39
|
+
type: "address",
|
|
40
|
+
},
|
|
41
|
+
],
|
|
42
|
+
stateMutability: "nonpayable",
|
|
43
|
+
type: "constructor",
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
anonymous: false,
|
|
47
|
+
inputs: [
|
|
48
|
+
{
|
|
49
|
+
indexed: true,
|
|
50
|
+
internalType: "address",
|
|
51
|
+
name: "owner",
|
|
52
|
+
type: "address",
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
indexed: true,
|
|
56
|
+
internalType: "address",
|
|
57
|
+
name: "spender",
|
|
58
|
+
type: "address",
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
indexed: false,
|
|
62
|
+
internalType: "uint256",
|
|
63
|
+
name: "value",
|
|
64
|
+
type: "uint256",
|
|
65
|
+
},
|
|
66
|
+
],
|
|
67
|
+
name: "Approval",
|
|
68
|
+
type: "event",
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
anonymous: false,
|
|
72
|
+
inputs: [
|
|
73
|
+
{
|
|
74
|
+
indexed: true,
|
|
75
|
+
internalType: "address",
|
|
76
|
+
name: "from",
|
|
77
|
+
type: "address",
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
indexed: true,
|
|
81
|
+
internalType: "address",
|
|
82
|
+
name: "to",
|
|
83
|
+
type: "address",
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
indexed: false,
|
|
87
|
+
internalType: "uint256",
|
|
88
|
+
name: "value",
|
|
89
|
+
type: "uint256",
|
|
90
|
+
},
|
|
91
|
+
],
|
|
92
|
+
name: "Transfer",
|
|
93
|
+
type: "event",
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
inputs: [
|
|
97
|
+
{
|
|
98
|
+
internalType: "address",
|
|
99
|
+
name: "owner",
|
|
100
|
+
type: "address",
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
internalType: "address",
|
|
104
|
+
name: "spender",
|
|
105
|
+
type: "address",
|
|
106
|
+
},
|
|
107
|
+
],
|
|
108
|
+
name: "allowance",
|
|
109
|
+
outputs: [
|
|
110
|
+
{
|
|
111
|
+
internalType: "uint256",
|
|
112
|
+
name: "",
|
|
113
|
+
type: "uint256",
|
|
114
|
+
},
|
|
115
|
+
],
|
|
116
|
+
stateMutability: "view",
|
|
117
|
+
type: "function",
|
|
118
|
+
},
|
|
119
|
+
{
|
|
120
|
+
inputs: [
|
|
121
|
+
{
|
|
122
|
+
internalType: "address",
|
|
123
|
+
name: "spender",
|
|
124
|
+
type: "address",
|
|
125
|
+
},
|
|
126
|
+
{
|
|
127
|
+
internalType: "uint256",
|
|
128
|
+
name: "amount",
|
|
129
|
+
type: "uint256",
|
|
130
|
+
},
|
|
131
|
+
],
|
|
132
|
+
name: "approve",
|
|
133
|
+
outputs: [
|
|
134
|
+
{
|
|
135
|
+
internalType: "bool",
|
|
136
|
+
name: "",
|
|
137
|
+
type: "bool",
|
|
138
|
+
},
|
|
139
|
+
],
|
|
140
|
+
stateMutability: "nonpayable",
|
|
141
|
+
type: "function",
|
|
142
|
+
},
|
|
143
|
+
{
|
|
144
|
+
inputs: [
|
|
145
|
+
{
|
|
146
|
+
internalType: "address",
|
|
147
|
+
name: "account",
|
|
148
|
+
type: "address",
|
|
149
|
+
},
|
|
150
|
+
],
|
|
151
|
+
name: "balanceOf",
|
|
152
|
+
outputs: [
|
|
153
|
+
{
|
|
154
|
+
internalType: "uint256",
|
|
155
|
+
name: "",
|
|
156
|
+
type: "uint256",
|
|
157
|
+
},
|
|
158
|
+
],
|
|
159
|
+
stateMutability: "view",
|
|
160
|
+
type: "function",
|
|
161
|
+
},
|
|
162
|
+
{
|
|
163
|
+
inputs: [
|
|
164
|
+
{
|
|
165
|
+
internalType: "uint256",
|
|
166
|
+
name: "amount",
|
|
167
|
+
type: "uint256",
|
|
168
|
+
},
|
|
169
|
+
],
|
|
170
|
+
name: "burn",
|
|
171
|
+
outputs: [],
|
|
172
|
+
stateMutability: "nonpayable",
|
|
173
|
+
type: "function",
|
|
174
|
+
},
|
|
175
|
+
{
|
|
176
|
+
inputs: [
|
|
177
|
+
{
|
|
178
|
+
internalType: "address",
|
|
179
|
+
name: "account",
|
|
180
|
+
type: "address",
|
|
181
|
+
},
|
|
182
|
+
{
|
|
183
|
+
internalType: "uint256",
|
|
184
|
+
name: "amount",
|
|
185
|
+
type: "uint256",
|
|
186
|
+
},
|
|
187
|
+
],
|
|
188
|
+
name: "burnFrom",
|
|
189
|
+
outputs: [],
|
|
190
|
+
stateMutability: "nonpayable",
|
|
191
|
+
type: "function",
|
|
192
|
+
},
|
|
193
|
+
{
|
|
194
|
+
inputs: [],
|
|
195
|
+
name: "decimals",
|
|
196
|
+
outputs: [
|
|
197
|
+
{
|
|
198
|
+
internalType: "uint8",
|
|
199
|
+
name: "",
|
|
200
|
+
type: "uint8",
|
|
201
|
+
},
|
|
202
|
+
],
|
|
203
|
+
stateMutability: "view",
|
|
204
|
+
type: "function",
|
|
205
|
+
},
|
|
206
|
+
{
|
|
207
|
+
inputs: [
|
|
208
|
+
{
|
|
209
|
+
internalType: "address",
|
|
210
|
+
name: "spender",
|
|
211
|
+
type: "address",
|
|
212
|
+
},
|
|
213
|
+
{
|
|
214
|
+
internalType: "uint256",
|
|
215
|
+
name: "subtractedValue",
|
|
216
|
+
type: "uint256",
|
|
217
|
+
},
|
|
218
|
+
],
|
|
219
|
+
name: "decreaseAllowance",
|
|
220
|
+
outputs: [
|
|
221
|
+
{
|
|
222
|
+
internalType: "bool",
|
|
223
|
+
name: "",
|
|
224
|
+
type: "bool",
|
|
225
|
+
},
|
|
226
|
+
],
|
|
227
|
+
stateMutability: "nonpayable",
|
|
228
|
+
type: "function",
|
|
229
|
+
},
|
|
230
|
+
{
|
|
231
|
+
inputs: [
|
|
232
|
+
{
|
|
233
|
+
internalType: "address",
|
|
234
|
+
name: "spender",
|
|
235
|
+
type: "address",
|
|
236
|
+
},
|
|
237
|
+
{
|
|
238
|
+
internalType: "uint256",
|
|
239
|
+
name: "addedValue",
|
|
240
|
+
type: "uint256",
|
|
241
|
+
},
|
|
242
|
+
],
|
|
243
|
+
name: "increaseAllowance",
|
|
244
|
+
outputs: [
|
|
245
|
+
{
|
|
246
|
+
internalType: "bool",
|
|
247
|
+
name: "",
|
|
248
|
+
type: "bool",
|
|
249
|
+
},
|
|
250
|
+
],
|
|
251
|
+
stateMutability: "nonpayable",
|
|
252
|
+
type: "function",
|
|
253
|
+
},
|
|
254
|
+
{
|
|
255
|
+
inputs: [],
|
|
256
|
+
name: "name",
|
|
257
|
+
outputs: [
|
|
258
|
+
{
|
|
259
|
+
internalType: "string",
|
|
260
|
+
name: "",
|
|
261
|
+
type: "string",
|
|
262
|
+
},
|
|
263
|
+
],
|
|
264
|
+
stateMutability: "view",
|
|
265
|
+
type: "function",
|
|
266
|
+
},
|
|
267
|
+
{
|
|
268
|
+
inputs: [],
|
|
269
|
+
name: "symbol",
|
|
270
|
+
outputs: [
|
|
271
|
+
{
|
|
272
|
+
internalType: "string",
|
|
273
|
+
name: "",
|
|
274
|
+
type: "string",
|
|
275
|
+
},
|
|
276
|
+
],
|
|
277
|
+
stateMutability: "view",
|
|
278
|
+
type: "function",
|
|
279
|
+
},
|
|
280
|
+
{
|
|
281
|
+
inputs: [],
|
|
282
|
+
name: "totalSupply",
|
|
283
|
+
outputs: [
|
|
284
|
+
{
|
|
285
|
+
internalType: "uint256",
|
|
286
|
+
name: "",
|
|
287
|
+
type: "uint256",
|
|
288
|
+
},
|
|
289
|
+
],
|
|
290
|
+
stateMutability: "view",
|
|
291
|
+
type: "function",
|
|
292
|
+
},
|
|
293
|
+
{
|
|
294
|
+
inputs: [
|
|
295
|
+
{
|
|
296
|
+
internalType: "address",
|
|
297
|
+
name: "to",
|
|
298
|
+
type: "address",
|
|
299
|
+
},
|
|
300
|
+
{
|
|
301
|
+
internalType: "uint256",
|
|
302
|
+
name: "amount",
|
|
303
|
+
type: "uint256",
|
|
304
|
+
},
|
|
305
|
+
],
|
|
306
|
+
name: "transfer",
|
|
307
|
+
outputs: [
|
|
308
|
+
{
|
|
309
|
+
internalType: "bool",
|
|
310
|
+
name: "",
|
|
311
|
+
type: "bool",
|
|
312
|
+
},
|
|
313
|
+
],
|
|
314
|
+
stateMutability: "nonpayable",
|
|
315
|
+
type: "function",
|
|
316
|
+
},
|
|
317
|
+
{
|
|
318
|
+
inputs: [
|
|
319
|
+
{
|
|
320
|
+
internalType: "address",
|
|
321
|
+
name: "from",
|
|
322
|
+
type: "address",
|
|
323
|
+
},
|
|
324
|
+
{
|
|
325
|
+
internalType: "address",
|
|
326
|
+
name: "to",
|
|
327
|
+
type: "address",
|
|
328
|
+
},
|
|
329
|
+
{
|
|
330
|
+
internalType: "uint256",
|
|
331
|
+
name: "amount",
|
|
332
|
+
type: "uint256",
|
|
333
|
+
},
|
|
334
|
+
],
|
|
335
|
+
name: "transferFrom",
|
|
336
|
+
outputs: [
|
|
337
|
+
{
|
|
338
|
+
internalType: "bool",
|
|
339
|
+
name: "",
|
|
340
|
+
type: "bool",
|
|
341
|
+
},
|
|
342
|
+
],
|
|
343
|
+
stateMutability: "nonpayable",
|
|
344
|
+
type: "function",
|
|
345
|
+
},
|
|
346
|
+
];
|
|
347
|
+
|
|
348
|
+
const _bytecode =
|
|
349
|
+
"0x60806040523480156200001157600080fd5b5060405162000ea738038062000ea78339810160408190526200003491620002dd565b8351849084906200004d9060039060208501906200016a565b508051620000639060049060208401906200016a565b5050506200007881836200008260201b60201c565b50505050620003d6565b6001600160a01b038216620000dd5760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015260640160405180910390fd5b8060026000828254620000f1919062000372565b90915550506001600160a01b038216600090815260208190526040812080548392906200012090849062000372565b90915550506040518181526001600160a01b038316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a35050565b828054620001789062000399565b90600052602060002090601f0160209004810192826200019c5760008555620001e7565b82601f10620001b757805160ff1916838001178555620001e7565b82800160010185558215620001e7579182015b82811115620001e7578251825591602001919060010190620001ca565b50620001f5929150620001f9565b5090565b5b80821115620001f55760008155600101620001fa565b634e487b7160e01b600052604160045260246000fd5b600082601f8301126200023857600080fd5b81516001600160401b038082111562000255576200025562000210565b604051601f8301601f19908116603f0116810190828211818310171562000280576200028062000210565b816040528381526020925086838588010111156200029d57600080fd5b600091505b83821015620002c15785820183015181830184015290820190620002a2565b83821115620002d35760008385830101525b9695505050505050565b60008060008060808587031215620002f457600080fd5b84516001600160401b03808211156200030c57600080fd5b6200031a8883890162000226565b955060208701519150808211156200033157600080fd5b50620003408782880162000226565b60408701516060880151919550935090506001600160a01b03811681146200036757600080fd5b939692955090935050565b600082198211156200039457634e487b7160e01b600052601160045260246000fd5b500190565b600181811c90821680620003ae57607f821691505b60208210811415620003d057634e487b7160e01b600052602260045260246000fd5b50919050565b610ac180620003e66000396000f3fe608060405234801561001057600080fd5b50600436106100cf5760003560e01c806342966c681161008c57806395d89b411161006657806395d89b41146101ad578063a457c2d7146101b5578063a9059cbb146101c8578063dd62ed3e146101db57600080fd5b806342966c681461015c57806370a082311461017157806379cc67901461019a57600080fd5b806306fdde03146100d4578063095ea7b3146100f257806318160ddd1461011557806323b872dd14610127578063313ce5671461013a5780633950935114610149575b600080fd5b6100dc610214565b6040516100e991906108c6565b60405180910390f35b610105610100366004610937565b6102a6565b60405190151581526020016100e9565b6002545b6040519081526020016100e9565b610105610135366004610961565b6102be565b604051601281526020016100e9565b610105610157366004610937565b6102e2565b61016f61016a36600461099d565b610321565b005b61011961017f3660046109b6565b6001600160a01b031660009081526020819052604090205490565b61016f6101a8366004610937565b61032e565b6100dc610347565b6101056101c3366004610937565b610356565b6101056101d6366004610937565b6103ed565b6101196101e93660046109d8565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b60606003805461022390610a0b565b80601f016020809104026020016040519081016040528092919081815260200182805461024f90610a0b565b801561029c5780601f106102715761010080835404028352916020019161029c565b820191906000526020600020905b81548152906001019060200180831161027f57829003601f168201915b5050505050905090565b6000336102b48185856103fb565b5060019392505050565b6000336102cc858285610520565b6102d78585856105b2565b506001949350505050565b3360008181526001602090815260408083206001600160a01b03871684529091528120549091906102b4908290869061031c908790610a5c565b6103fb565b61032b3382610780565b50565b610339823383610520565b6103438282610780565b5050565b60606004805461022390610a0b565b3360008181526001602090815260408083206001600160a01b0387168452909152812054909190838110156103e05760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b60648201526084015b60405180910390fd5b6102d782868684036103fb565b6000336102b48185856105b2565b6001600160a01b03831661045d5760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b60648201526084016103d7565b6001600160a01b0382166104be5760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b60648201526084016103d7565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591015b60405180910390a3505050565b6001600160a01b0383811660009081526001602090815260408083209386168352929052205460001981146105ac578181101561059f5760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e636500000060448201526064016103d7565b6105ac84848484036103fb565b50505050565b6001600160a01b0383166106165760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b60648201526084016103d7565b6001600160a01b0382166106785760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b60648201526084016103d7565b6001600160a01b038316600090815260208190526040902054818110156106f05760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b60648201526084016103d7565b6001600160a01b03808516600090815260208190526040808220858503905591851681529081208054849290610727908490610a5c565b92505081905550826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8460405161077391815260200190565b60405180910390a36105ac565b6001600160a01b0382166107e05760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b60648201526084016103d7565b6001600160a01b038216600090815260208190526040902054818110156108545760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b60648201526084016103d7565b6001600160a01b0383166000908152602081905260408120838303905560028054849290610883908490610a74565b90915550506040518281526000906001600160a01b038516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef90602001610513565b600060208083528351808285015260005b818110156108f3578581018301518582016040015282016108d7565b81811115610905576000604083870101525b50601f01601f1916929092016040019392505050565b80356001600160a01b038116811461093257600080fd5b919050565b6000806040838503121561094a57600080fd5b6109538361091b565b946020939093013593505050565b60008060006060848603121561097657600080fd5b61097f8461091b565b925061098d6020850161091b565b9150604084013590509250925092565b6000602082840312156109af57600080fd5b5035919050565b6000602082840312156109c857600080fd5b6109d18261091b565b9392505050565b600080604083850312156109eb57600080fd5b6109f48361091b565b9150610a026020840161091b565b90509250929050565b600181811c90821680610a1f57607f821691505b60208210811415610a4057634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b60008219821115610a6f57610a6f610a46565b500190565b600082821015610a8657610a86610a46565b50039056fea2646970667358221220b0921898bffe37c1e4b1447f73325dab532e1ce17e7bc67f56460dda9be48fbf64736f6c63430008090033";
|
|
350
|
+
|
|
351
|
+
type ERC20PresetFixedSupplyConstructorParams =
|
|
352
|
+
| [signer?: Signer]
|
|
353
|
+
| ConstructorParameters<typeof ContractFactory>;
|
|
354
|
+
|
|
355
|
+
const isSuperArgs = (
|
|
356
|
+
xs: ERC20PresetFixedSupplyConstructorParams
|
|
357
|
+
): xs is ConstructorParameters<typeof ContractFactory> => xs.length > 1;
|
|
358
|
+
|
|
359
|
+
export class ERC20PresetFixedSupply__factory extends ContractFactory {
|
|
360
|
+
constructor(...args: ERC20PresetFixedSupplyConstructorParams) {
|
|
361
|
+
if (isSuperArgs(args)) {
|
|
362
|
+
super(...args);
|
|
363
|
+
} else {
|
|
364
|
+
super(_abi, _bytecode, args[0]);
|
|
365
|
+
}
|
|
366
|
+
this.contractName = "ERC20PresetFixedSupply";
|
|
367
|
+
}
|
|
368
|
+
|
|
369
|
+
deploy(
|
|
370
|
+
name: string,
|
|
371
|
+
symbol: string,
|
|
372
|
+
initialSupply: BigNumberish,
|
|
373
|
+
owner: string,
|
|
374
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
375
|
+
): Promise<ERC20PresetFixedSupply> {
|
|
376
|
+
return super.deploy(
|
|
377
|
+
name,
|
|
378
|
+
symbol,
|
|
379
|
+
initialSupply,
|
|
380
|
+
owner,
|
|
381
|
+
overrides || {}
|
|
382
|
+
) as Promise<ERC20PresetFixedSupply>;
|
|
383
|
+
}
|
|
384
|
+
getDeployTransaction(
|
|
385
|
+
name: string,
|
|
386
|
+
symbol: string,
|
|
387
|
+
initialSupply: BigNumberish,
|
|
388
|
+
owner: string,
|
|
389
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
390
|
+
): TransactionRequest {
|
|
391
|
+
return super.getDeployTransaction(
|
|
392
|
+
name,
|
|
393
|
+
symbol,
|
|
394
|
+
initialSupply,
|
|
395
|
+
owner,
|
|
396
|
+
overrides || {}
|
|
397
|
+
);
|
|
398
|
+
}
|
|
399
|
+
attach(address: string): ERC20PresetFixedSupply {
|
|
400
|
+
return super.attach(address) as ERC20PresetFixedSupply;
|
|
401
|
+
}
|
|
402
|
+
connect(signer: Signer): ERC20PresetFixedSupply__factory {
|
|
403
|
+
return super.connect(signer) as ERC20PresetFixedSupply__factory;
|
|
404
|
+
}
|
|
405
|
+
static readonly contractName: "ERC20PresetFixedSupply";
|
|
406
|
+
public readonly contractName: "ERC20PresetFixedSupply";
|
|
407
|
+
static readonly bytecode = _bytecode;
|
|
408
|
+
static readonly abi = _abi;
|
|
409
|
+
static createInterface(): ERC20PresetFixedSupplyInterface {
|
|
410
|
+
return new utils.Interface(_abi) as ERC20PresetFixedSupplyInterface;
|
|
411
|
+
}
|
|
412
|
+
static connect(
|
|
413
|
+
address: string,
|
|
414
|
+
signerOrProvider: Signer | Provider
|
|
415
|
+
): ERC20PresetFixedSupply {
|
|
416
|
+
return new Contract(
|
|
417
|
+
address,
|
|
418
|
+
_abi,
|
|
419
|
+
signerOrProvider
|
|
420
|
+
) as ERC20PresetFixedSupply;
|
|
421
|
+
}
|
|
422
|
+
}
|
|
@@ -0,0 +1,170 @@
|
|
|
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
|
+
EpochController,
|
|
15
|
+
EpochControllerInterface,
|
|
16
|
+
} from "../EpochController";
|
|
17
|
+
|
|
18
|
+
const _abi = [
|
|
19
|
+
{
|
|
20
|
+
inputs: [
|
|
21
|
+
{
|
|
22
|
+
internalType: "uint256",
|
|
23
|
+
name: "_startTime",
|
|
24
|
+
type: "uint256",
|
|
25
|
+
},
|
|
26
|
+
],
|
|
27
|
+
stateMutability: "nonpayable",
|
|
28
|
+
type: "constructor",
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
inputs: [],
|
|
32
|
+
name: "EPOCH_DURATION",
|
|
33
|
+
outputs: [
|
|
34
|
+
{
|
|
35
|
+
internalType: "uint256",
|
|
36
|
+
name: "",
|
|
37
|
+
type: "uint256",
|
|
38
|
+
},
|
|
39
|
+
],
|
|
40
|
+
stateMutability: "view",
|
|
41
|
+
type: "function",
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
inputs: [
|
|
45
|
+
{
|
|
46
|
+
internalType: "uint256",
|
|
47
|
+
name: "epochId",
|
|
48
|
+
type: "uint256",
|
|
49
|
+
},
|
|
50
|
+
],
|
|
51
|
+
name: "getEpochEndingTimestamp",
|
|
52
|
+
outputs: [
|
|
53
|
+
{
|
|
54
|
+
internalType: "uint256",
|
|
55
|
+
name: "",
|
|
56
|
+
type: "uint256",
|
|
57
|
+
},
|
|
58
|
+
],
|
|
59
|
+
stateMutability: "view",
|
|
60
|
+
type: "function",
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
inputs: [
|
|
64
|
+
{
|
|
65
|
+
internalType: "uint256",
|
|
66
|
+
name: "timestamp",
|
|
67
|
+
type: "uint256",
|
|
68
|
+
},
|
|
69
|
+
],
|
|
70
|
+
name: "getEpochId",
|
|
71
|
+
outputs: [
|
|
72
|
+
{
|
|
73
|
+
internalType: "uint256",
|
|
74
|
+
name: "",
|
|
75
|
+
type: "uint256",
|
|
76
|
+
},
|
|
77
|
+
],
|
|
78
|
+
stateMutability: "view",
|
|
79
|
+
type: "function",
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
inputs: [
|
|
83
|
+
{
|
|
84
|
+
internalType: "uint256",
|
|
85
|
+
name: "epochId",
|
|
86
|
+
type: "uint256",
|
|
87
|
+
},
|
|
88
|
+
],
|
|
89
|
+
name: "getEpochStartingTimestamp",
|
|
90
|
+
outputs: [
|
|
91
|
+
{
|
|
92
|
+
internalType: "uint256",
|
|
93
|
+
name: "",
|
|
94
|
+
type: "uint256",
|
|
95
|
+
},
|
|
96
|
+
],
|
|
97
|
+
stateMutability: "view",
|
|
98
|
+
type: "function",
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
inputs: [],
|
|
102
|
+
name: "startTime",
|
|
103
|
+
outputs: [
|
|
104
|
+
{
|
|
105
|
+
internalType: "uint256",
|
|
106
|
+
name: "",
|
|
107
|
+
type: "uint256",
|
|
108
|
+
},
|
|
109
|
+
],
|
|
110
|
+
stateMutability: "view",
|
|
111
|
+
type: "function",
|
|
112
|
+
},
|
|
113
|
+
];
|
|
114
|
+
|
|
115
|
+
const _bytecode =
|
|
116
|
+
"0x60a060405234801561001057600080fd5b506040516103b83803806103b883398101604081905261002f91610037565b608052610050565b60006020828403121561004957600080fd5b5051919050565b60805161033961007f6000396000818160ac01528181610140015281816101bf015261022a01526103396000f3fe608060405234801561001057600080fd5b50600436106100575760003560e01c806327c8e9b61461005c57806343a3a397146100815780635303548b1461009457806378e97925146100a7578063a70b9f0c146100ce575b600080fd5b61006f61006a366004610264565b6100d8565b60405190815260200160405180910390f35b61006f61008f366004610264565b61016a565b61006f6100a2366004610264565b6101bb565b61006f7f000000000000000000000000000000000000000000000000000000000000000081565b61006f62093a8081565b60008082116101215760405162461bcd60e51b815260206004820152601060248201526f1253959053125117d15413d0d217d25160821b60448201526064015b60405180910390fd5b62093a80610130600184610293565b61013a91906102aa565b610164907f00000000000000000000000000000000000000000000000000000000000000006102c9565b92915050565b60008082116101ae5760405162461bcd60e51b815260206004820152601060248201526f1253959053125117d15413d0d217d25160821b6044820152606401610118565b61013a62093a80836102aa565b60007f00000000000000000000000000000000000000000000000000000000000000008210156102215760405162461bcd60e51b81526020600482015260116024820152700494e56414c49445f54494d455354414d5607c1b6044820152606401610118565b62093a8061024f7f000000000000000000000000000000000000000000000000000000000000000084610293565b61025991906102e1565b6101649060016102c9565b60006020828403121561027657600080fd5b5035919050565b634e487b7160e01b600052601160045260246000fd5b6000828210156102a5576102a561027d565b500390565b60008160001904831182151516156102c4576102c461027d565b500290565b600082198211156102dc576102dc61027d565b500190565b6000826102fe57634e487b7160e01b600052601260045260246000fd5b50049056fea26469706673582212203a8c85134b3cfc5c83332ed4707d12864d7cf7d9bc05bd5f307b8d30e0cf1b4f64736f6c63430008090033";
|
|
117
|
+
|
|
118
|
+
type EpochControllerConstructorParams =
|
|
119
|
+
| [signer?: Signer]
|
|
120
|
+
| ConstructorParameters<typeof ContractFactory>;
|
|
121
|
+
|
|
122
|
+
const isSuperArgs = (
|
|
123
|
+
xs: EpochControllerConstructorParams
|
|
124
|
+
): xs is ConstructorParameters<typeof ContractFactory> => xs.length > 1;
|
|
125
|
+
|
|
126
|
+
export class EpochController__factory extends ContractFactory {
|
|
127
|
+
constructor(...args: EpochControllerConstructorParams) {
|
|
128
|
+
if (isSuperArgs(args)) {
|
|
129
|
+
super(...args);
|
|
130
|
+
} else {
|
|
131
|
+
super(_abi, _bytecode, args[0]);
|
|
132
|
+
}
|
|
133
|
+
this.contractName = "EpochController";
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
deploy(
|
|
137
|
+
_startTime: BigNumberish,
|
|
138
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
139
|
+
): Promise<EpochController> {
|
|
140
|
+
return super.deploy(
|
|
141
|
+
_startTime,
|
|
142
|
+
overrides || {}
|
|
143
|
+
) as Promise<EpochController>;
|
|
144
|
+
}
|
|
145
|
+
getDeployTransaction(
|
|
146
|
+
_startTime: BigNumberish,
|
|
147
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
148
|
+
): TransactionRequest {
|
|
149
|
+
return super.getDeployTransaction(_startTime, overrides || {});
|
|
150
|
+
}
|
|
151
|
+
attach(address: string): EpochController {
|
|
152
|
+
return super.attach(address) as EpochController;
|
|
153
|
+
}
|
|
154
|
+
connect(signer: Signer): EpochController__factory {
|
|
155
|
+
return super.connect(signer) as EpochController__factory;
|
|
156
|
+
}
|
|
157
|
+
static readonly contractName: "EpochController";
|
|
158
|
+
public readonly contractName: "EpochController";
|
|
159
|
+
static readonly bytecode = _bytecode;
|
|
160
|
+
static readonly abi = _abi;
|
|
161
|
+
static createInterface(): EpochControllerInterface {
|
|
162
|
+
return new utils.Interface(_abi) as EpochControllerInterface;
|
|
163
|
+
}
|
|
164
|
+
static connect(
|
|
165
|
+
address: string,
|
|
166
|
+
signerOrProvider: Signer | Provider
|
|
167
|
+
): EpochController {
|
|
168
|
+
return new Contract(address, _abi, signerOrProvider) as EpochController;
|
|
169
|
+
}
|
|
170
|
+
}
|