@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,130 @@
|
|
|
1
|
+
/* Autogenerated file. Do not edit manually. */
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
import { Signer, utils, Contract, ContractFactory, Overrides } from "ethers";
|
|
5
|
+
import { Provider, TransactionRequest } from "@ethersproject/providers";
|
|
6
|
+
import type {
|
|
7
|
+
PglStakingContractProxyStorage,
|
|
8
|
+
PglStakingContractProxyStorageInterface,
|
|
9
|
+
} from "../PglStakingContractProxyStorage";
|
|
10
|
+
|
|
11
|
+
const _abi = [
|
|
12
|
+
{
|
|
13
|
+
constant: true,
|
|
14
|
+
inputs: [],
|
|
15
|
+
name: "admin",
|
|
16
|
+
outputs: [
|
|
17
|
+
{
|
|
18
|
+
internalType: "address",
|
|
19
|
+
name: "",
|
|
20
|
+
type: "address",
|
|
21
|
+
},
|
|
22
|
+
],
|
|
23
|
+
payable: false,
|
|
24
|
+
stateMutability: "view",
|
|
25
|
+
type: "function",
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
constant: true,
|
|
29
|
+
inputs: [],
|
|
30
|
+
name: "implementation",
|
|
31
|
+
outputs: [
|
|
32
|
+
{
|
|
33
|
+
internalType: "address",
|
|
34
|
+
name: "",
|
|
35
|
+
type: "address",
|
|
36
|
+
},
|
|
37
|
+
],
|
|
38
|
+
payable: false,
|
|
39
|
+
stateMutability: "view",
|
|
40
|
+
type: "function",
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
constant: true,
|
|
44
|
+
inputs: [],
|
|
45
|
+
name: "pendingAdmin",
|
|
46
|
+
outputs: [
|
|
47
|
+
{
|
|
48
|
+
internalType: "address",
|
|
49
|
+
name: "",
|
|
50
|
+
type: "address",
|
|
51
|
+
},
|
|
52
|
+
],
|
|
53
|
+
payable: false,
|
|
54
|
+
stateMutability: "view",
|
|
55
|
+
type: "function",
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
constant: true,
|
|
59
|
+
inputs: [],
|
|
60
|
+
name: "pendingImplementation",
|
|
61
|
+
outputs: [
|
|
62
|
+
{
|
|
63
|
+
internalType: "address",
|
|
64
|
+
name: "",
|
|
65
|
+
type: "address",
|
|
66
|
+
},
|
|
67
|
+
],
|
|
68
|
+
payable: false,
|
|
69
|
+
stateMutability: "view",
|
|
70
|
+
type: "function",
|
|
71
|
+
},
|
|
72
|
+
];
|
|
73
|
+
|
|
74
|
+
const _bytecode =
|
|
75
|
+
"0x608060405234801561001057600080fd5b5060f08061001f6000396000f3fe6080604052348015600f57600080fd5b506004361060465760003560e01c80632678224714604b578063396f7b2314606d5780635c60da1b146073578063f851a440146079575b600080fd5b6051607f565b604080516001600160a01b039092168252519081900360200190f35b6051608e565b6051609d565b605160ac565b6001546001600160a01b031681565b6003546001600160a01b031681565b6002546001600160a01b031681565b6000546001600160a01b03168156fea265627a7a7231582001feab87d8ec95775301beb60193c3acb3a4337016b5865e808c92e98c5b5cc164736f6c63430005110032";
|
|
76
|
+
|
|
77
|
+
type PglStakingContractProxyStorageConstructorParams =
|
|
78
|
+
| [signer?: Signer]
|
|
79
|
+
| ConstructorParameters<typeof ContractFactory>;
|
|
80
|
+
|
|
81
|
+
const isSuperArgs = (
|
|
82
|
+
xs: PglStakingContractProxyStorageConstructorParams
|
|
83
|
+
): xs is ConstructorParameters<typeof ContractFactory> => xs.length > 1;
|
|
84
|
+
|
|
85
|
+
export class PglStakingContractProxyStorage__factory extends ContractFactory {
|
|
86
|
+
constructor(...args: PglStakingContractProxyStorageConstructorParams) {
|
|
87
|
+
if (isSuperArgs(args)) {
|
|
88
|
+
super(...args);
|
|
89
|
+
} else {
|
|
90
|
+
super(_abi, _bytecode, args[0]);
|
|
91
|
+
}
|
|
92
|
+
this.contractName = "PglStakingContractProxyStorage";
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
deploy(
|
|
96
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
97
|
+
): Promise<PglStakingContractProxyStorage> {
|
|
98
|
+
return super.deploy(
|
|
99
|
+
overrides || {}
|
|
100
|
+
) as Promise<PglStakingContractProxyStorage>;
|
|
101
|
+
}
|
|
102
|
+
getDeployTransaction(
|
|
103
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
104
|
+
): TransactionRequest {
|
|
105
|
+
return super.getDeployTransaction(overrides || {});
|
|
106
|
+
}
|
|
107
|
+
attach(address: string): PglStakingContractProxyStorage {
|
|
108
|
+
return super.attach(address) as PglStakingContractProxyStorage;
|
|
109
|
+
}
|
|
110
|
+
connect(signer: Signer): PglStakingContractProxyStorage__factory {
|
|
111
|
+
return super.connect(signer) as PglStakingContractProxyStorage__factory;
|
|
112
|
+
}
|
|
113
|
+
static readonly contractName: "PglStakingContractProxyStorage";
|
|
114
|
+
public readonly contractName: "PglStakingContractProxyStorage";
|
|
115
|
+
static readonly bytecode = _bytecode;
|
|
116
|
+
static readonly abi = _abi;
|
|
117
|
+
static createInterface(): PglStakingContractProxyStorageInterface {
|
|
118
|
+
return new utils.Interface(_abi) as PglStakingContractProxyStorageInterface;
|
|
119
|
+
}
|
|
120
|
+
static connect(
|
|
121
|
+
address: string,
|
|
122
|
+
signerOrProvider: Signer | Provider
|
|
123
|
+
): PglStakingContractProxyStorage {
|
|
124
|
+
return new Contract(
|
|
125
|
+
address,
|
|
126
|
+
_abi,
|
|
127
|
+
signerOrProvider
|
|
128
|
+
) as PglStakingContractProxyStorage;
|
|
129
|
+
}
|
|
130
|
+
}
|
|
@@ -0,0 +1,187 @@
|
|
|
1
|
+
/* Autogenerated file. Do not edit manually. */
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
import { Signer, utils, Contract, ContractFactory, Overrides } from "ethers";
|
|
5
|
+
import { Provider, TransactionRequest } from "@ethersproject/providers";
|
|
6
|
+
import type {
|
|
7
|
+
PglStakingContractProxy,
|
|
8
|
+
PglStakingContractProxyInterface,
|
|
9
|
+
} from "../PglStakingContractProxy";
|
|
10
|
+
|
|
11
|
+
const _abi = [
|
|
12
|
+
{
|
|
13
|
+
inputs: [],
|
|
14
|
+
payable: false,
|
|
15
|
+
stateMutability: "nonpayable",
|
|
16
|
+
type: "constructor",
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
payable: true,
|
|
20
|
+
stateMutability: "payable",
|
|
21
|
+
type: "fallback",
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
constant: false,
|
|
25
|
+
inputs: [],
|
|
26
|
+
name: "acceptPendingAdmin",
|
|
27
|
+
outputs: [],
|
|
28
|
+
payable: false,
|
|
29
|
+
stateMutability: "nonpayable",
|
|
30
|
+
type: "function",
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
constant: false,
|
|
34
|
+
inputs: [],
|
|
35
|
+
name: "acceptPendingImplementation",
|
|
36
|
+
outputs: [],
|
|
37
|
+
payable: false,
|
|
38
|
+
stateMutability: "nonpayable",
|
|
39
|
+
type: "function",
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
constant: true,
|
|
43
|
+
inputs: [],
|
|
44
|
+
name: "admin",
|
|
45
|
+
outputs: [
|
|
46
|
+
{
|
|
47
|
+
internalType: "address",
|
|
48
|
+
name: "",
|
|
49
|
+
type: "address",
|
|
50
|
+
},
|
|
51
|
+
],
|
|
52
|
+
payable: false,
|
|
53
|
+
stateMutability: "view",
|
|
54
|
+
type: "function",
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
constant: true,
|
|
58
|
+
inputs: [],
|
|
59
|
+
name: "implementation",
|
|
60
|
+
outputs: [
|
|
61
|
+
{
|
|
62
|
+
internalType: "address",
|
|
63
|
+
name: "",
|
|
64
|
+
type: "address",
|
|
65
|
+
},
|
|
66
|
+
],
|
|
67
|
+
payable: false,
|
|
68
|
+
stateMutability: "view",
|
|
69
|
+
type: "function",
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
constant: true,
|
|
73
|
+
inputs: [],
|
|
74
|
+
name: "pendingAdmin",
|
|
75
|
+
outputs: [
|
|
76
|
+
{
|
|
77
|
+
internalType: "address",
|
|
78
|
+
name: "",
|
|
79
|
+
type: "address",
|
|
80
|
+
},
|
|
81
|
+
],
|
|
82
|
+
payable: false,
|
|
83
|
+
stateMutability: "view",
|
|
84
|
+
type: "function",
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
constant: true,
|
|
88
|
+
inputs: [],
|
|
89
|
+
name: "pendingImplementation",
|
|
90
|
+
outputs: [
|
|
91
|
+
{
|
|
92
|
+
internalType: "address",
|
|
93
|
+
name: "",
|
|
94
|
+
type: "address",
|
|
95
|
+
},
|
|
96
|
+
],
|
|
97
|
+
payable: false,
|
|
98
|
+
stateMutability: "view",
|
|
99
|
+
type: "function",
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
constant: false,
|
|
103
|
+
inputs: [
|
|
104
|
+
{
|
|
105
|
+
internalType: "address",
|
|
106
|
+
name: "newAdmin",
|
|
107
|
+
type: "address",
|
|
108
|
+
},
|
|
109
|
+
],
|
|
110
|
+
name: "setPendingAdmin",
|
|
111
|
+
outputs: [],
|
|
112
|
+
payable: false,
|
|
113
|
+
stateMutability: "nonpayable",
|
|
114
|
+
type: "function",
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
constant: false,
|
|
118
|
+
inputs: [
|
|
119
|
+
{
|
|
120
|
+
internalType: "address",
|
|
121
|
+
name: "newImplementation",
|
|
122
|
+
type: "address",
|
|
123
|
+
},
|
|
124
|
+
],
|
|
125
|
+
name: "setPendingImplementation",
|
|
126
|
+
outputs: [],
|
|
127
|
+
payable: false,
|
|
128
|
+
stateMutability: "nonpayable",
|
|
129
|
+
type: "function",
|
|
130
|
+
},
|
|
131
|
+
];
|
|
132
|
+
|
|
133
|
+
const _bytecode =
|
|
134
|
+
"0x608060405234801561001057600080fd5b506001600081905580546001600160a01b031916331790556104a5806100376000396000f3fe60806040526004361061007b5760003560e01c80634dd18bf51161004e5780634dd18bf51461018e5780635c60da1b146101c1578063709920c1146101d6578063f851a440146101eb5761007b565b806309ed43c9146100fe57806316ec205c146101335780632678224714610148578063396f7b2314610179575b6003546040516000916001600160a01b031690829036908083838082843760405192019450600093509091505080830381855af49150503d80600081146100de576040519150601f19603f3d011682016040523d82523d6000602084013e6100e3565b606091505b505090506040513d6000823e8180156100fa573d82f35b3d82fd5b34801561010a57600080fd5b506101316004803603602081101561012157600080fd5b50356001600160a01b0316610200565b005b34801561013f57600080fd5b5061013161026e565b34801561015457600080fd5b5061015d6102f4565b604080516001600160a01b039092168252519081900360200190f35b34801561018557600080fd5b5061015d610303565b34801561019a57600080fd5b50610131600480360360208110156101b157600080fd5b50356001600160a01b0316610312565b3480156101cd57600080fd5b5061015d610380565b3480156101e257600080fd5b5061013161038f565b3480156101f757600080fd5b5061015d61042b565b6001546001600160a01b0316331461024c576040805162461bcd60e51b815260206004820152600a60248201526961646d696e206f6e6c7960b01b604482015290519081900360640190fd5b600480546001600160a01b0319166001600160a01b0392909216919091179055565b6004546001600160a01b03163314801561029257506004546001600160a01b031615155b6102cd5760405162461bcd60e51b815260040180806020018281038252603681526020018061043b6036913960400191505060405180910390fd5b60048054600380546001600160a01b03199081166001600160a01b03841617909155169055565b6002546001600160a01b031681565b6004546001600160a01b031681565b6001546001600160a01b0316331461035e576040805162461bcd60e51b815260206004820152600a60248201526961646d696e206f6e6c7960b01b604482015290519081900360640190fd5b600280546001600160a01b0319166001600160a01b0392909216919091179055565b6003546001600160a01b031681565b6002546001600160a01b0316331480156103b357506002546001600160a01b031615155b610404576040805162461bcd60e51b815260206004820181905260248201527f43616c6c6572206d757374206265207468652070656e64696e672061646d696e604482015290519081900360640190fd5b60028054600180546001600160a01b03199081166001600160a01b03841617909155169055565b6001546001600160a01b03168156fe4f6e6c79207468652070656e64696e6720696d706c656d656e746174696f6e20636f6e74726163742063616e2063616c6c2074686973a265627a7a7231582070003e45c8fda98250b72af1ac8914058bb4dc605aa4fccc088540abce43a52f64736f6c63430005110032";
|
|
135
|
+
|
|
136
|
+
type PglStakingContractProxyConstructorParams =
|
|
137
|
+
| [signer?: Signer]
|
|
138
|
+
| ConstructorParameters<typeof ContractFactory>;
|
|
139
|
+
|
|
140
|
+
const isSuperArgs = (
|
|
141
|
+
xs: PglStakingContractProxyConstructorParams
|
|
142
|
+
): xs is ConstructorParameters<typeof ContractFactory> => xs.length > 1;
|
|
143
|
+
|
|
144
|
+
export class PglStakingContractProxy__factory extends ContractFactory {
|
|
145
|
+
constructor(...args: PglStakingContractProxyConstructorParams) {
|
|
146
|
+
if (isSuperArgs(args)) {
|
|
147
|
+
super(...args);
|
|
148
|
+
} else {
|
|
149
|
+
super(_abi, _bytecode, args[0]);
|
|
150
|
+
}
|
|
151
|
+
this.contractName = "PglStakingContractProxy";
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
deploy(
|
|
155
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
156
|
+
): Promise<PglStakingContractProxy> {
|
|
157
|
+
return super.deploy(overrides || {}) as Promise<PglStakingContractProxy>;
|
|
158
|
+
}
|
|
159
|
+
getDeployTransaction(
|
|
160
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
161
|
+
): TransactionRequest {
|
|
162
|
+
return super.getDeployTransaction(overrides || {});
|
|
163
|
+
}
|
|
164
|
+
attach(address: string): PglStakingContractProxy {
|
|
165
|
+
return super.attach(address) as PglStakingContractProxy;
|
|
166
|
+
}
|
|
167
|
+
connect(signer: Signer): PglStakingContractProxy__factory {
|
|
168
|
+
return super.connect(signer) as PglStakingContractProxy__factory;
|
|
169
|
+
}
|
|
170
|
+
static readonly contractName: "PglStakingContractProxy";
|
|
171
|
+
public readonly contractName: "PglStakingContractProxy";
|
|
172
|
+
static readonly bytecode = _bytecode;
|
|
173
|
+
static readonly abi = _abi;
|
|
174
|
+
static createInterface(): PglStakingContractProxyInterface {
|
|
175
|
+
return new utils.Interface(_abi) as PglStakingContractProxyInterface;
|
|
176
|
+
}
|
|
177
|
+
static connect(
|
|
178
|
+
address: string,
|
|
179
|
+
signerOrProvider: Signer | Provider
|
|
180
|
+
): PglStakingContractProxy {
|
|
181
|
+
return new Contract(
|
|
182
|
+
address,
|
|
183
|
+
_abi,
|
|
184
|
+
signerOrProvider
|
|
185
|
+
) as PglStakingContractProxy;
|
|
186
|
+
}
|
|
187
|
+
}
|
|
@@ -0,0 +1,309 @@
|
|
|
1
|
+
/* Autogenerated file. Do not edit manually. */
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
import { Signer, utils, Contract, ContractFactory, Overrides } from "ethers";
|
|
5
|
+
import { Provider, TransactionRequest } from "@ethersproject/providers";
|
|
6
|
+
import type {
|
|
7
|
+
PglStakingContractStorage,
|
|
8
|
+
PglStakingContractStorageInterface,
|
|
9
|
+
} from "../PglStakingContractStorage";
|
|
10
|
+
|
|
11
|
+
const _abi = [
|
|
12
|
+
{
|
|
13
|
+
constant: true,
|
|
14
|
+
inputs: [],
|
|
15
|
+
name: "accrualBlockTimestamp",
|
|
16
|
+
outputs: [
|
|
17
|
+
{
|
|
18
|
+
internalType: "uint256",
|
|
19
|
+
name: "",
|
|
20
|
+
type: "uint256",
|
|
21
|
+
},
|
|
22
|
+
],
|
|
23
|
+
payable: false,
|
|
24
|
+
stateMutability: "view",
|
|
25
|
+
type: "function",
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
constant: true,
|
|
29
|
+
inputs: [
|
|
30
|
+
{
|
|
31
|
+
internalType: "address",
|
|
32
|
+
name: "",
|
|
33
|
+
type: "address",
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
internalType: "uint256",
|
|
37
|
+
name: "",
|
|
38
|
+
type: "uint256",
|
|
39
|
+
},
|
|
40
|
+
],
|
|
41
|
+
name: "accruedReward",
|
|
42
|
+
outputs: [
|
|
43
|
+
{
|
|
44
|
+
internalType: "uint256",
|
|
45
|
+
name: "",
|
|
46
|
+
type: "uint256",
|
|
47
|
+
},
|
|
48
|
+
],
|
|
49
|
+
payable: false,
|
|
50
|
+
stateMutability: "view",
|
|
51
|
+
type: "function",
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
constant: true,
|
|
55
|
+
inputs: [],
|
|
56
|
+
name: "admin",
|
|
57
|
+
outputs: [
|
|
58
|
+
{
|
|
59
|
+
internalType: "address",
|
|
60
|
+
name: "",
|
|
61
|
+
type: "address",
|
|
62
|
+
},
|
|
63
|
+
],
|
|
64
|
+
payable: false,
|
|
65
|
+
stateMutability: "view",
|
|
66
|
+
type: "function",
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
constant: true,
|
|
70
|
+
inputs: [],
|
|
71
|
+
name: "implementation",
|
|
72
|
+
outputs: [
|
|
73
|
+
{
|
|
74
|
+
internalType: "address",
|
|
75
|
+
name: "",
|
|
76
|
+
type: "address",
|
|
77
|
+
},
|
|
78
|
+
],
|
|
79
|
+
payable: false,
|
|
80
|
+
stateMutability: "view",
|
|
81
|
+
type: "function",
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
constant: true,
|
|
85
|
+
inputs: [],
|
|
86
|
+
name: "pendingAdmin",
|
|
87
|
+
outputs: [
|
|
88
|
+
{
|
|
89
|
+
internalType: "address",
|
|
90
|
+
name: "",
|
|
91
|
+
type: "address",
|
|
92
|
+
},
|
|
93
|
+
],
|
|
94
|
+
payable: false,
|
|
95
|
+
stateMutability: "view",
|
|
96
|
+
type: "function",
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
constant: true,
|
|
100
|
+
inputs: [],
|
|
101
|
+
name: "pendingImplementation",
|
|
102
|
+
outputs: [
|
|
103
|
+
{
|
|
104
|
+
internalType: "address",
|
|
105
|
+
name: "",
|
|
106
|
+
type: "address",
|
|
107
|
+
},
|
|
108
|
+
],
|
|
109
|
+
payable: false,
|
|
110
|
+
stateMutability: "view",
|
|
111
|
+
type: "function",
|
|
112
|
+
},
|
|
113
|
+
{
|
|
114
|
+
constant: true,
|
|
115
|
+
inputs: [],
|
|
116
|
+
name: "pglTokenAddress",
|
|
117
|
+
outputs: [
|
|
118
|
+
{
|
|
119
|
+
internalType: "address",
|
|
120
|
+
name: "",
|
|
121
|
+
type: "address",
|
|
122
|
+
},
|
|
123
|
+
],
|
|
124
|
+
payable: false,
|
|
125
|
+
stateMutability: "view",
|
|
126
|
+
type: "function",
|
|
127
|
+
},
|
|
128
|
+
{
|
|
129
|
+
constant: true,
|
|
130
|
+
inputs: [
|
|
131
|
+
{
|
|
132
|
+
internalType: "uint256",
|
|
133
|
+
name: "",
|
|
134
|
+
type: "uint256",
|
|
135
|
+
},
|
|
136
|
+
],
|
|
137
|
+
name: "rewardIndex",
|
|
138
|
+
outputs: [
|
|
139
|
+
{
|
|
140
|
+
internalType: "uint256",
|
|
141
|
+
name: "",
|
|
142
|
+
type: "uint256",
|
|
143
|
+
},
|
|
144
|
+
],
|
|
145
|
+
payable: false,
|
|
146
|
+
stateMutability: "view",
|
|
147
|
+
type: "function",
|
|
148
|
+
},
|
|
149
|
+
{
|
|
150
|
+
constant: true,
|
|
151
|
+
inputs: [
|
|
152
|
+
{
|
|
153
|
+
internalType: "uint256",
|
|
154
|
+
name: "",
|
|
155
|
+
type: "uint256",
|
|
156
|
+
},
|
|
157
|
+
],
|
|
158
|
+
name: "rewardSpeeds",
|
|
159
|
+
outputs: [
|
|
160
|
+
{
|
|
161
|
+
internalType: "uint256",
|
|
162
|
+
name: "",
|
|
163
|
+
type: "uint256",
|
|
164
|
+
},
|
|
165
|
+
],
|
|
166
|
+
payable: false,
|
|
167
|
+
stateMutability: "view",
|
|
168
|
+
type: "function",
|
|
169
|
+
},
|
|
170
|
+
{
|
|
171
|
+
constant: true,
|
|
172
|
+
inputs: [
|
|
173
|
+
{
|
|
174
|
+
internalType: "uint256",
|
|
175
|
+
name: "",
|
|
176
|
+
type: "uint256",
|
|
177
|
+
},
|
|
178
|
+
],
|
|
179
|
+
name: "rewardTokenAddresses",
|
|
180
|
+
outputs: [
|
|
181
|
+
{
|
|
182
|
+
internalType: "address",
|
|
183
|
+
name: "",
|
|
184
|
+
type: "address",
|
|
185
|
+
},
|
|
186
|
+
],
|
|
187
|
+
payable: false,
|
|
188
|
+
stateMutability: "view",
|
|
189
|
+
type: "function",
|
|
190
|
+
},
|
|
191
|
+
{
|
|
192
|
+
constant: true,
|
|
193
|
+
inputs: [
|
|
194
|
+
{
|
|
195
|
+
internalType: "address",
|
|
196
|
+
name: "",
|
|
197
|
+
type: "address",
|
|
198
|
+
},
|
|
199
|
+
{
|
|
200
|
+
internalType: "uint256",
|
|
201
|
+
name: "",
|
|
202
|
+
type: "uint256",
|
|
203
|
+
},
|
|
204
|
+
],
|
|
205
|
+
name: "supplierRewardIndex",
|
|
206
|
+
outputs: [
|
|
207
|
+
{
|
|
208
|
+
internalType: "uint256",
|
|
209
|
+
name: "",
|
|
210
|
+
type: "uint256",
|
|
211
|
+
},
|
|
212
|
+
],
|
|
213
|
+
payable: false,
|
|
214
|
+
stateMutability: "view",
|
|
215
|
+
type: "function",
|
|
216
|
+
},
|
|
217
|
+
{
|
|
218
|
+
constant: true,
|
|
219
|
+
inputs: [
|
|
220
|
+
{
|
|
221
|
+
internalType: "address",
|
|
222
|
+
name: "",
|
|
223
|
+
type: "address",
|
|
224
|
+
},
|
|
225
|
+
],
|
|
226
|
+
name: "supplyAmount",
|
|
227
|
+
outputs: [
|
|
228
|
+
{
|
|
229
|
+
internalType: "uint256",
|
|
230
|
+
name: "",
|
|
231
|
+
type: "uint256",
|
|
232
|
+
},
|
|
233
|
+
],
|
|
234
|
+
payable: false,
|
|
235
|
+
stateMutability: "view",
|
|
236
|
+
type: "function",
|
|
237
|
+
},
|
|
238
|
+
{
|
|
239
|
+
constant: true,
|
|
240
|
+
inputs: [],
|
|
241
|
+
name: "totalSupplies",
|
|
242
|
+
outputs: [
|
|
243
|
+
{
|
|
244
|
+
internalType: "uint256",
|
|
245
|
+
name: "",
|
|
246
|
+
type: "uint256",
|
|
247
|
+
},
|
|
248
|
+
],
|
|
249
|
+
payable: false,
|
|
250
|
+
stateMutability: "view",
|
|
251
|
+
type: "function",
|
|
252
|
+
},
|
|
253
|
+
];
|
|
254
|
+
|
|
255
|
+
const _bytecode =
|
|
256
|
+
"0x608060405234801561001057600080fd5b50610326806100206000396000f3fe608060405234801561001057600080fd5b50600436106100cf5760003560e01c80637b2d9b2c1161008c578063d068cdc511610066578063d068cdc5146101a7578063f495c9c9146101af578063f75ddfa8146101db578063f851a44014610207576100cf565b80637b2d9b2c1461017a57806392d8282f14610197578063cfa992011461019f576100cf565b80631130a36c146100d457806324cb2d9a1461010c5780632678224714610129578063396f7b231461014d5780635c60da1b146101555780636612313a1461015d575b600080fd5b6100fa600480360360208110156100ea57600080fd5b50356001600160a01b031661020f565b60408051918252519081900360200190f35b6100fa6004803603602081101561012257600080fd5b5035610221565b610131610233565b604080516001600160a01b039092168252519081900360200190f35b610131610242565b610131610251565b6100fa6004803603602081101561017357600080fd5b5035610260565b6101316004803603602081101561019057600080fd5b5035610272565b61013161028d565b6100fa61029c565b6100fa6102a2565b6100fa600480360360408110156101c557600080fd5b506001600160a01b0381351690602001356102a8565b6100fa600480360360408110156101f157600080fd5b506001600160a01b0381351690602001356102c5565b6101316102e2565b60086020526000908152604090205481565b60066020526000908152604090205481565b6001546001600160a01b031681565b6003546001600160a01b031681565b6002546001600160a01b031681565b600a6020526000908152604090205481565b6005602052600090815260409020546001600160a01b031681565b6004546001600160a01b031681565b600c5481565b60095481565b600760209081526000928352604080842090915290825290205481565b600b60209081526000928352604080842090915290825290205481565b6000546001600160a01b03168156fea265627a7a72315820cf1e00cee59b239c97c8df3316151d4ff4f4eef817358737a377e06eb549ed0c64736f6c63430005110032";
|
|
257
|
+
|
|
258
|
+
type PglStakingContractStorageConstructorParams =
|
|
259
|
+
| [signer?: Signer]
|
|
260
|
+
| ConstructorParameters<typeof ContractFactory>;
|
|
261
|
+
|
|
262
|
+
const isSuperArgs = (
|
|
263
|
+
xs: PglStakingContractStorageConstructorParams
|
|
264
|
+
): xs is ConstructorParameters<typeof ContractFactory> => xs.length > 1;
|
|
265
|
+
|
|
266
|
+
export class PglStakingContractStorage__factory extends ContractFactory {
|
|
267
|
+
constructor(...args: PglStakingContractStorageConstructorParams) {
|
|
268
|
+
if (isSuperArgs(args)) {
|
|
269
|
+
super(...args);
|
|
270
|
+
} else {
|
|
271
|
+
super(_abi, _bytecode, args[0]);
|
|
272
|
+
}
|
|
273
|
+
this.contractName = "PglStakingContractStorage";
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
deploy(
|
|
277
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
278
|
+
): Promise<PglStakingContractStorage> {
|
|
279
|
+
return super.deploy(overrides || {}) as Promise<PglStakingContractStorage>;
|
|
280
|
+
}
|
|
281
|
+
getDeployTransaction(
|
|
282
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
283
|
+
): TransactionRequest {
|
|
284
|
+
return super.getDeployTransaction(overrides || {});
|
|
285
|
+
}
|
|
286
|
+
attach(address: string): PglStakingContractStorage {
|
|
287
|
+
return super.attach(address) as PglStakingContractStorage;
|
|
288
|
+
}
|
|
289
|
+
connect(signer: Signer): PglStakingContractStorage__factory {
|
|
290
|
+
return super.connect(signer) as PglStakingContractStorage__factory;
|
|
291
|
+
}
|
|
292
|
+
static readonly contractName: "PglStakingContractStorage";
|
|
293
|
+
public readonly contractName: "PglStakingContractStorage";
|
|
294
|
+
static readonly bytecode = _bytecode;
|
|
295
|
+
static readonly abi = _abi;
|
|
296
|
+
static createInterface(): PglStakingContractStorageInterface {
|
|
297
|
+
return new utils.Interface(_abi) as PglStakingContractStorageInterface;
|
|
298
|
+
}
|
|
299
|
+
static connect(
|
|
300
|
+
address: string,
|
|
301
|
+
signerOrProvider: Signer | Provider
|
|
302
|
+
): PglStakingContractStorage {
|
|
303
|
+
return new Contract(
|
|
304
|
+
address,
|
|
305
|
+
_abi,
|
|
306
|
+
signerOrProvider
|
|
307
|
+
) as PglStakingContractStorage;
|
|
308
|
+
}
|
|
309
|
+
}
|