@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,69 @@
|
|
|
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
|
+
ReentrancyGuard,
|
|
8
|
+
ReentrancyGuardInterface,
|
|
9
|
+
} from "../ReentrancyGuard";
|
|
10
|
+
|
|
11
|
+
const _abi = [
|
|
12
|
+
{
|
|
13
|
+
inputs: [],
|
|
14
|
+
stateMutability: "nonpayable",
|
|
15
|
+
type: "constructor",
|
|
16
|
+
},
|
|
17
|
+
];
|
|
18
|
+
|
|
19
|
+
const _bytecode =
|
|
20
|
+
"0x6080604052348015600f57600080fd5b506001600055603f8060226000396000f3fe6080604052600080fdfea26469706673582212203b85b09f96c604f3504ce2973990177194eb1da9bb1b5628c55220eb1323e31c64736f6c634300060c0033";
|
|
21
|
+
|
|
22
|
+
type ReentrancyGuardConstructorParams =
|
|
23
|
+
| [signer?: Signer]
|
|
24
|
+
| ConstructorParameters<typeof ContractFactory>;
|
|
25
|
+
|
|
26
|
+
const isSuperArgs = (
|
|
27
|
+
xs: ReentrancyGuardConstructorParams
|
|
28
|
+
): xs is ConstructorParameters<typeof ContractFactory> => xs.length > 1;
|
|
29
|
+
|
|
30
|
+
export class ReentrancyGuard__factory extends ContractFactory {
|
|
31
|
+
constructor(...args: ReentrancyGuardConstructorParams) {
|
|
32
|
+
if (isSuperArgs(args)) {
|
|
33
|
+
super(...args);
|
|
34
|
+
} else {
|
|
35
|
+
super(_abi, _bytecode, args[0]);
|
|
36
|
+
}
|
|
37
|
+
this.contractName = "ReentrancyGuard";
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
deploy(
|
|
41
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
42
|
+
): Promise<ReentrancyGuard> {
|
|
43
|
+
return super.deploy(overrides || {}) as Promise<ReentrancyGuard>;
|
|
44
|
+
}
|
|
45
|
+
getDeployTransaction(
|
|
46
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
47
|
+
): TransactionRequest {
|
|
48
|
+
return super.getDeployTransaction(overrides || {});
|
|
49
|
+
}
|
|
50
|
+
attach(address: string): ReentrancyGuard {
|
|
51
|
+
return super.attach(address) as ReentrancyGuard;
|
|
52
|
+
}
|
|
53
|
+
connect(signer: Signer): ReentrancyGuard__factory {
|
|
54
|
+
return super.connect(signer) as ReentrancyGuard__factory;
|
|
55
|
+
}
|
|
56
|
+
static readonly contractName: "ReentrancyGuard";
|
|
57
|
+
public readonly contractName: "ReentrancyGuard";
|
|
58
|
+
static readonly bytecode = _bytecode;
|
|
59
|
+
static readonly abi = _abi;
|
|
60
|
+
static createInterface(): ReentrancyGuardInterface {
|
|
61
|
+
return new utils.Interface(_abi) as ReentrancyGuardInterface;
|
|
62
|
+
}
|
|
63
|
+
static connect(
|
|
64
|
+
address: string,
|
|
65
|
+
signerOrProvider: Signer | Provider
|
|
66
|
+
): ReentrancyGuard {
|
|
67
|
+
return new Contract(address, _abi, signerOrProvider) as ReentrancyGuard;
|
|
68
|
+
}
|
|
69
|
+
}
|
|
@@ -0,0 +1,341 @@
|
|
|
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
|
+
SingleGaugeTypeController,
|
|
15
|
+
SingleGaugeTypeControllerInterface,
|
|
16
|
+
} from "../SingleGaugeTypeController";
|
|
17
|
+
|
|
18
|
+
const _abi = [
|
|
19
|
+
{
|
|
20
|
+
inputs: [
|
|
21
|
+
{
|
|
22
|
+
internalType: "uint256",
|
|
23
|
+
name: "_startTime",
|
|
24
|
+
type: "uint256",
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
internalType: "contract IERC20",
|
|
28
|
+
name: "_pendle",
|
|
29
|
+
type: "address",
|
|
30
|
+
},
|
|
31
|
+
],
|
|
32
|
+
stateMutability: "nonpayable",
|
|
33
|
+
type: "constructor",
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
anonymous: false,
|
|
37
|
+
inputs: [
|
|
38
|
+
{
|
|
39
|
+
indexed: true,
|
|
40
|
+
internalType: "address",
|
|
41
|
+
name: "previousOwner",
|
|
42
|
+
type: "address",
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
indexed: true,
|
|
46
|
+
internalType: "address",
|
|
47
|
+
name: "newOwner",
|
|
48
|
+
type: "address",
|
|
49
|
+
},
|
|
50
|
+
],
|
|
51
|
+
name: "OwnershipTransferred",
|
|
52
|
+
type: "event",
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
inputs: [],
|
|
56
|
+
name: "EPOCH_DURATION",
|
|
57
|
+
outputs: [
|
|
58
|
+
{
|
|
59
|
+
internalType: "uint256",
|
|
60
|
+
name: "",
|
|
61
|
+
type: "uint256",
|
|
62
|
+
},
|
|
63
|
+
],
|
|
64
|
+
stateMutability: "view",
|
|
65
|
+
type: "function",
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
inputs: [
|
|
69
|
+
{
|
|
70
|
+
internalType: "address",
|
|
71
|
+
name: "",
|
|
72
|
+
type: "address",
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
internalType: "uint256",
|
|
76
|
+
name: "",
|
|
77
|
+
type: "uint256",
|
|
78
|
+
},
|
|
79
|
+
],
|
|
80
|
+
name: "gaugeEpochIncentives",
|
|
81
|
+
outputs: [
|
|
82
|
+
{
|
|
83
|
+
internalType: "uint256",
|
|
84
|
+
name: "",
|
|
85
|
+
type: "uint256",
|
|
86
|
+
},
|
|
87
|
+
],
|
|
88
|
+
stateMutability: "view",
|
|
89
|
+
type: "function",
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
inputs: [
|
|
93
|
+
{
|
|
94
|
+
internalType: "uint256",
|
|
95
|
+
name: "epochId",
|
|
96
|
+
type: "uint256",
|
|
97
|
+
},
|
|
98
|
+
],
|
|
99
|
+
name: "getEpochEndingTimestamp",
|
|
100
|
+
outputs: [
|
|
101
|
+
{
|
|
102
|
+
internalType: "uint256",
|
|
103
|
+
name: "",
|
|
104
|
+
type: "uint256",
|
|
105
|
+
},
|
|
106
|
+
],
|
|
107
|
+
stateMutability: "view",
|
|
108
|
+
type: "function",
|
|
109
|
+
},
|
|
110
|
+
{
|
|
111
|
+
inputs: [
|
|
112
|
+
{
|
|
113
|
+
internalType: "uint256",
|
|
114
|
+
name: "timestamp",
|
|
115
|
+
type: "uint256",
|
|
116
|
+
},
|
|
117
|
+
],
|
|
118
|
+
name: "getEpochId",
|
|
119
|
+
outputs: [
|
|
120
|
+
{
|
|
121
|
+
internalType: "uint256",
|
|
122
|
+
name: "",
|
|
123
|
+
type: "uint256",
|
|
124
|
+
},
|
|
125
|
+
],
|
|
126
|
+
stateMutability: "view",
|
|
127
|
+
type: "function",
|
|
128
|
+
},
|
|
129
|
+
{
|
|
130
|
+
inputs: [
|
|
131
|
+
{
|
|
132
|
+
internalType: "uint256",
|
|
133
|
+
name: "epochId",
|
|
134
|
+
type: "uint256",
|
|
135
|
+
},
|
|
136
|
+
],
|
|
137
|
+
name: "getEpochStartingTimestamp",
|
|
138
|
+
outputs: [
|
|
139
|
+
{
|
|
140
|
+
internalType: "uint256",
|
|
141
|
+
name: "",
|
|
142
|
+
type: "uint256",
|
|
143
|
+
},
|
|
144
|
+
],
|
|
145
|
+
stateMutability: "view",
|
|
146
|
+
type: "function",
|
|
147
|
+
},
|
|
148
|
+
{
|
|
149
|
+
inputs: [
|
|
150
|
+
{
|
|
151
|
+
internalType: "address",
|
|
152
|
+
name: "gauge",
|
|
153
|
+
type: "address",
|
|
154
|
+
},
|
|
155
|
+
{
|
|
156
|
+
internalType: "uint256",
|
|
157
|
+
name: "l",
|
|
158
|
+
type: "uint256",
|
|
159
|
+
},
|
|
160
|
+
{
|
|
161
|
+
internalType: "uint256",
|
|
162
|
+
name: "r",
|
|
163
|
+
type: "uint256",
|
|
164
|
+
},
|
|
165
|
+
],
|
|
166
|
+
name: "getRewardEarned",
|
|
167
|
+
outputs: [
|
|
168
|
+
{
|
|
169
|
+
internalType: "uint256",
|
|
170
|
+
name: "",
|
|
171
|
+
type: "uint256",
|
|
172
|
+
},
|
|
173
|
+
],
|
|
174
|
+
stateMutability: "view",
|
|
175
|
+
type: "function",
|
|
176
|
+
},
|
|
177
|
+
{
|
|
178
|
+
inputs: [],
|
|
179
|
+
name: "owner",
|
|
180
|
+
outputs: [
|
|
181
|
+
{
|
|
182
|
+
internalType: "address",
|
|
183
|
+
name: "",
|
|
184
|
+
type: "address",
|
|
185
|
+
},
|
|
186
|
+
],
|
|
187
|
+
stateMutability: "view",
|
|
188
|
+
type: "function",
|
|
189
|
+
},
|
|
190
|
+
{
|
|
191
|
+
inputs: [],
|
|
192
|
+
name: "pendle",
|
|
193
|
+
outputs: [
|
|
194
|
+
{
|
|
195
|
+
internalType: "contract IERC20",
|
|
196
|
+
name: "",
|
|
197
|
+
type: "address",
|
|
198
|
+
},
|
|
199
|
+
],
|
|
200
|
+
stateMutability: "view",
|
|
201
|
+
type: "function",
|
|
202
|
+
},
|
|
203
|
+
{
|
|
204
|
+
inputs: [],
|
|
205
|
+
name: "pendlePerSec",
|
|
206
|
+
outputs: [
|
|
207
|
+
{
|
|
208
|
+
internalType: "uint256",
|
|
209
|
+
name: "",
|
|
210
|
+
type: "uint256",
|
|
211
|
+
},
|
|
212
|
+
],
|
|
213
|
+
stateMutability: "view",
|
|
214
|
+
type: "function",
|
|
215
|
+
},
|
|
216
|
+
{
|
|
217
|
+
inputs: [],
|
|
218
|
+
name: "renounceOwnership",
|
|
219
|
+
outputs: [],
|
|
220
|
+
stateMutability: "nonpayable",
|
|
221
|
+
type: "function",
|
|
222
|
+
},
|
|
223
|
+
{
|
|
224
|
+
inputs: [
|
|
225
|
+
{
|
|
226
|
+
internalType: "address",
|
|
227
|
+
name: "gauge",
|
|
228
|
+
type: "address",
|
|
229
|
+
},
|
|
230
|
+
{
|
|
231
|
+
internalType: "bool",
|
|
232
|
+
name: "validity",
|
|
233
|
+
type: "bool",
|
|
234
|
+
},
|
|
235
|
+
],
|
|
236
|
+
name: "setGaugeValidity",
|
|
237
|
+
outputs: [],
|
|
238
|
+
stateMutability: "nonpayable",
|
|
239
|
+
type: "function",
|
|
240
|
+
},
|
|
241
|
+
{
|
|
242
|
+
inputs: [
|
|
243
|
+
{
|
|
244
|
+
internalType: "uint256",
|
|
245
|
+
name: "newPendlePerSec",
|
|
246
|
+
type: "uint256",
|
|
247
|
+
},
|
|
248
|
+
],
|
|
249
|
+
name: "setPendlePerSec",
|
|
250
|
+
outputs: [],
|
|
251
|
+
stateMutability: "nonpayable",
|
|
252
|
+
type: "function",
|
|
253
|
+
},
|
|
254
|
+
{
|
|
255
|
+
inputs: [],
|
|
256
|
+
name: "startTime",
|
|
257
|
+
outputs: [
|
|
258
|
+
{
|
|
259
|
+
internalType: "uint256",
|
|
260
|
+
name: "",
|
|
261
|
+
type: "uint256",
|
|
262
|
+
},
|
|
263
|
+
],
|
|
264
|
+
stateMutability: "view",
|
|
265
|
+
type: "function",
|
|
266
|
+
},
|
|
267
|
+
{
|
|
268
|
+
inputs: [
|
|
269
|
+
{
|
|
270
|
+
internalType: "address",
|
|
271
|
+
name: "newOwner",
|
|
272
|
+
type: "address",
|
|
273
|
+
},
|
|
274
|
+
],
|
|
275
|
+
name: "transferOwnership",
|
|
276
|
+
outputs: [],
|
|
277
|
+
stateMutability: "nonpayable",
|
|
278
|
+
type: "function",
|
|
279
|
+
},
|
|
280
|
+
];
|
|
281
|
+
|
|
282
|
+
const _bytecode =
|
|
283
|
+
"0x60c060405234801561001057600080fd5b50604051610af5380380610af583398101604081905261002f9161009f565b6100383361004f565b60a0919091526001600160a01b03166080526100dc565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b600080604083850312156100b257600080fd5b825160208401519092506001600160a01b03811681146100d157600080fd5b809150509250929050565b60805160a0516109c361013260003960008181610175015281816102aa01528181610329015281816103940152818161043b01526104670152600081816101c1015281816105be015261066601526109c36000f3fe608060405234801561001057600080fd5b50600436106100ea5760003560e01c8063a2c530da1161008c578063c98c9e0611610066578063c98c9e0614610200578063ce5ae2f114610213578063f2fde38b14610226578063f7f03fea1461023957600080fd5b8063a2c530da146101bc578063a70b9f0c146101e3578063b9e246ff146101ed57600080fd5b80635e120226116100c85780635e1202261461013b578063715018a61461016657806378e97925146101705780638da5cb5b1461019757600080fd5b806327c8e9b6146100ef57806343a3a397146101155780635303548b14610128575b600080fd5b6101026100fd3660046107a8565b610242565b6040519081526020015b60405180910390f35b6101026101233660046107a8565b6102d4565b6101026101363660046107a8565b610325565b6101026101493660046107dd565b600360209081526000928352604080842090915290825290205481565b61016e6103ce565b005b6101027f000000000000000000000000000000000000000000000000000000000000000081565b6000546001600160a01b03165b6040516001600160a01b03909116815260200161010c565b6101a47f000000000000000000000000000000000000000000000000000000000000000081565b61010262093a8081565b61016e6101fb3660046107a8565b610404565b61010261020e366004610807565b610433565b61016e610221366004610848565b610540565b61016e61023436600461087f565b610695565b61010260015481565b600080821161028b5760405162461bcd60e51b815260206004820152601060248201526f1253959053125117d15413d0d217d25160821b60448201526064015b60405180910390fd5b62093a8061029a6001846108b0565b6102a491906108c7565b6102ce907f00000000000000000000000000000000000000000000000000000000000000006108e6565b92915050565b60008082116103185760405162461bcd60e51b815260206004820152601060248201526f1253959053125117d15413d0d217d25160821b6044820152606401610282565b6102a462093a80836108c7565b60007f000000000000000000000000000000000000000000000000000000000000000082101561038b5760405162461bcd60e51b81526020600482015260116024820152700494e56414c49445f54494d455354414d5607c1b6044820152606401610282565b62093a806103b97f0000000000000000000000000000000000000000000000000000000000000000846108b0565b6103c391906108fe565b6102ce9060016108e6565b6000546001600160a01b031633146103f85760405162461bcd60e51b815260040161028290610920565b6104026000610730565b565b6000546001600160a01b0316331461042e5760405162461bcd60e51b815260040161028290610920565b600155565b600061045f837f0000000000000000000000000000000000000000000000000000000000000000610780565b925061048b827f0000000000000000000000000000000000000000000000000000000000000000610780565b915060008061049985610325565b905060006104a685610325565b9050815b8181116105345760006104c56104bf83610242565b89610780565b905060006104db6104d5846102d4565b89610799565b90506104e782826108b0565b6001600160a01b038b16600090815260036020908152604080832087845290915290205461051591906108c7565b61051f90876108e6565b955050508061052d90610955565b90506104aa565b50919695505050505050565b6000546001600160a01b0316331461056a5760405162461bcd60e51b815260040161028290610920565b6001600160a01b0382166000908152600260205260409020805460ff191682158015919091179091556106405760405163095ea7b360e01b81526001600160a01b03838116600483015260001960248301527f0000000000000000000000000000000000000000000000000000000000000000169063095ea7b3906044015b602060405180830381600087803b15801561060357600080fd5b505af1158015610617573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061063b9190610970565b505050565b60405163095ea7b360e01b81526001600160a01b038381166004830152600060248301527f0000000000000000000000000000000000000000000000000000000000000000169063095ea7b3906044016105e9565b6000546001600160a01b031633146106bf5760405162461bcd60e51b815260040161028290610920565b6001600160a01b0381166107245760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610282565b61072d81610730565b50565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6000818310156107905781610792565b825b9392505050565b60008183106107905781610792565b6000602082840312156107ba57600080fd5b5035919050565b80356001600160a01b03811681146107d857600080fd5b919050565b600080604083850312156107f057600080fd5b6107f9836107c1565b946020939093013593505050565b60008060006060848603121561081c57600080fd5b610825846107c1565b95602085013595506040909401359392505050565b801515811461072d57600080fd5b6000806040838503121561085b57600080fd5b610864836107c1565b915060208301356108748161083a565b809150509250929050565b60006020828403121561089157600080fd5b610792826107c1565b634e487b7160e01b600052601160045260246000fd5b6000828210156108c2576108c261089a565b500390565b60008160001904831182151516156108e1576108e161089a565b500290565b600082198211156108f9576108f961089a565b500190565b60008261091b57634e487b7160e01b600052601260045260246000fd5b500490565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60006000198214156109695761096961089a565b5060010190565b60006020828403121561098257600080fd5b81516107928161083a56fea26469706673582212201b6c80b4c02ac1c9e1c9a6ec6931e18f79f3ecbfe54d1a59bee8d7d03d78634964736f6c63430008090033";
|
|
284
|
+
|
|
285
|
+
type SingleGaugeTypeControllerConstructorParams =
|
|
286
|
+
| [signer?: Signer]
|
|
287
|
+
| ConstructorParameters<typeof ContractFactory>;
|
|
288
|
+
|
|
289
|
+
const isSuperArgs = (
|
|
290
|
+
xs: SingleGaugeTypeControllerConstructorParams
|
|
291
|
+
): xs is ConstructorParameters<typeof ContractFactory> => xs.length > 1;
|
|
292
|
+
|
|
293
|
+
export class SingleGaugeTypeController__factory extends ContractFactory {
|
|
294
|
+
constructor(...args: SingleGaugeTypeControllerConstructorParams) {
|
|
295
|
+
if (isSuperArgs(args)) {
|
|
296
|
+
super(...args);
|
|
297
|
+
} else {
|
|
298
|
+
super(_abi, _bytecode, args[0]);
|
|
299
|
+
}
|
|
300
|
+
}
|
|
301
|
+
|
|
302
|
+
deploy(
|
|
303
|
+
_startTime: BigNumberish,
|
|
304
|
+
_pendle: string,
|
|
305
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
306
|
+
): Promise<SingleGaugeTypeController> {
|
|
307
|
+
return super.deploy(
|
|
308
|
+
_startTime,
|
|
309
|
+
_pendle,
|
|
310
|
+
overrides || {}
|
|
311
|
+
) as Promise<SingleGaugeTypeController>;
|
|
312
|
+
}
|
|
313
|
+
getDeployTransaction(
|
|
314
|
+
_startTime: BigNumberish,
|
|
315
|
+
_pendle: string,
|
|
316
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
317
|
+
): TransactionRequest {
|
|
318
|
+
return super.getDeployTransaction(_startTime, _pendle, overrides || {});
|
|
319
|
+
}
|
|
320
|
+
attach(address: string): SingleGaugeTypeController {
|
|
321
|
+
return super.attach(address) as SingleGaugeTypeController;
|
|
322
|
+
}
|
|
323
|
+
connect(signer: Signer): SingleGaugeTypeController__factory {
|
|
324
|
+
return super.connect(signer) as SingleGaugeTypeController__factory;
|
|
325
|
+
}
|
|
326
|
+
static readonly bytecode = _bytecode;
|
|
327
|
+
static readonly abi = _abi;
|
|
328
|
+
static createInterface(): SingleGaugeTypeControllerInterface {
|
|
329
|
+
return new utils.Interface(_abi) as SingleGaugeTypeControllerInterface;
|
|
330
|
+
}
|
|
331
|
+
static connect(
|
|
332
|
+
address: string,
|
|
333
|
+
signerOrProvider: Signer | Provider
|
|
334
|
+
): SingleGaugeTypeController {
|
|
335
|
+
return new Contract(
|
|
336
|
+
address,
|
|
337
|
+
_abi,
|
|
338
|
+
signerOrProvider
|
|
339
|
+
) as SingleGaugeTypeController;
|
|
340
|
+
}
|
|
341
|
+
}
|
|
@@ -0,0 +1,89 @@
|
|
|
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
|
+
TokenErrorReporter,
|
|
8
|
+
TokenErrorReporterInterface,
|
|
9
|
+
} from "../TokenErrorReporter";
|
|
10
|
+
|
|
11
|
+
const _abi = [
|
|
12
|
+
{
|
|
13
|
+
anonymous: false,
|
|
14
|
+
inputs: [
|
|
15
|
+
{
|
|
16
|
+
indexed: false,
|
|
17
|
+
internalType: "uint256",
|
|
18
|
+
name: "error",
|
|
19
|
+
type: "uint256",
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
indexed: false,
|
|
23
|
+
internalType: "uint256",
|
|
24
|
+
name: "info",
|
|
25
|
+
type: "uint256",
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
indexed: false,
|
|
29
|
+
internalType: "uint256",
|
|
30
|
+
name: "detail",
|
|
31
|
+
type: "uint256",
|
|
32
|
+
},
|
|
33
|
+
],
|
|
34
|
+
name: "Failure",
|
|
35
|
+
type: "event",
|
|
36
|
+
},
|
|
37
|
+
];
|
|
38
|
+
|
|
39
|
+
const _bytecode =
|
|
40
|
+
"0x6080604052348015600f57600080fd5b50603e80601d6000396000f3fe6080604052600080fdfea265627a7a72315820297cc0e262e064754cc37c110b624c2e4502e77b43f9c038a38914a38029b16764736f6c63430005110032";
|
|
41
|
+
|
|
42
|
+
type TokenErrorReporterConstructorParams =
|
|
43
|
+
| [signer?: Signer]
|
|
44
|
+
| ConstructorParameters<typeof ContractFactory>;
|
|
45
|
+
|
|
46
|
+
const isSuperArgs = (
|
|
47
|
+
xs: TokenErrorReporterConstructorParams
|
|
48
|
+
): xs is ConstructorParameters<typeof ContractFactory> => xs.length > 1;
|
|
49
|
+
|
|
50
|
+
export class TokenErrorReporter__factory extends ContractFactory {
|
|
51
|
+
constructor(...args: TokenErrorReporterConstructorParams) {
|
|
52
|
+
if (isSuperArgs(args)) {
|
|
53
|
+
super(...args);
|
|
54
|
+
} else {
|
|
55
|
+
super(_abi, _bytecode, args[0]);
|
|
56
|
+
}
|
|
57
|
+
this.contractName = "TokenErrorReporter";
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
deploy(
|
|
61
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
62
|
+
): Promise<TokenErrorReporter> {
|
|
63
|
+
return super.deploy(overrides || {}) as Promise<TokenErrorReporter>;
|
|
64
|
+
}
|
|
65
|
+
getDeployTransaction(
|
|
66
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
67
|
+
): TransactionRequest {
|
|
68
|
+
return super.getDeployTransaction(overrides || {});
|
|
69
|
+
}
|
|
70
|
+
attach(address: string): TokenErrorReporter {
|
|
71
|
+
return super.attach(address) as TokenErrorReporter;
|
|
72
|
+
}
|
|
73
|
+
connect(signer: Signer): TokenErrorReporter__factory {
|
|
74
|
+
return super.connect(signer) as TokenErrorReporter__factory;
|
|
75
|
+
}
|
|
76
|
+
static readonly contractName: "TokenErrorReporter";
|
|
77
|
+
public readonly contractName: "TokenErrorReporter";
|
|
78
|
+
static readonly bytecode = _bytecode;
|
|
79
|
+
static readonly abi = _abi;
|
|
80
|
+
static createInterface(): TokenErrorReporterInterface {
|
|
81
|
+
return new utils.Interface(_abi) as TokenErrorReporterInterface;
|
|
82
|
+
}
|
|
83
|
+
static connect(
|
|
84
|
+
address: string,
|
|
85
|
+
signerOrProvider: Signer | Provider
|
|
86
|
+
): TokenErrorReporter {
|
|
87
|
+
return new Contract(address, _abi, signerOrProvider) as TokenErrorReporter;
|
|
88
|
+
}
|
|
89
|
+
}
|
|
@@ -0,0 +1,128 @@
|
|
|
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
|
+
UnitrollerAdminStorage,
|
|
8
|
+
UnitrollerAdminStorageInterface,
|
|
9
|
+
} from "../UnitrollerAdminStorage";
|
|
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: "comptrollerImplementation",
|
|
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: "pendingComptrollerImplementation",
|
|
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
|
+
"0x608060405234801561001057600080fd5b5060f08061001f6000396000f3fe6080604052348015600f57600080fd5b506004361060465760003560e01c80632678224714604b578063bb82aa5e14606d578063dcfbc0c7146073578063f851a440146079575b600080fd5b6051607f565b604080516001600160a01b039092168252519081900360200190f35b6051608e565b6051609d565b605160ac565b6001546001600160a01b031681565b6002546001600160a01b031681565b6003546001600160a01b031681565b6000546001600160a01b03168156fea265627a7a723158201fb6f88604a537070d7a65256e281099069637147c66e1f864c8f0b8d663573d64736f6c63430005110032";
|
|
76
|
+
|
|
77
|
+
type UnitrollerAdminStorageConstructorParams =
|
|
78
|
+
| [signer?: Signer]
|
|
79
|
+
| ConstructorParameters<typeof ContractFactory>;
|
|
80
|
+
|
|
81
|
+
const isSuperArgs = (
|
|
82
|
+
xs: UnitrollerAdminStorageConstructorParams
|
|
83
|
+
): xs is ConstructorParameters<typeof ContractFactory> => xs.length > 1;
|
|
84
|
+
|
|
85
|
+
export class UnitrollerAdminStorage__factory extends ContractFactory {
|
|
86
|
+
constructor(...args: UnitrollerAdminStorageConstructorParams) {
|
|
87
|
+
if (isSuperArgs(args)) {
|
|
88
|
+
super(...args);
|
|
89
|
+
} else {
|
|
90
|
+
super(_abi, _bytecode, args[0]);
|
|
91
|
+
}
|
|
92
|
+
this.contractName = "UnitrollerAdminStorage";
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
deploy(
|
|
96
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
97
|
+
): Promise<UnitrollerAdminStorage> {
|
|
98
|
+
return super.deploy(overrides || {}) as Promise<UnitrollerAdminStorage>;
|
|
99
|
+
}
|
|
100
|
+
getDeployTransaction(
|
|
101
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
102
|
+
): TransactionRequest {
|
|
103
|
+
return super.getDeployTransaction(overrides || {});
|
|
104
|
+
}
|
|
105
|
+
attach(address: string): UnitrollerAdminStorage {
|
|
106
|
+
return super.attach(address) as UnitrollerAdminStorage;
|
|
107
|
+
}
|
|
108
|
+
connect(signer: Signer): UnitrollerAdminStorage__factory {
|
|
109
|
+
return super.connect(signer) as UnitrollerAdminStorage__factory;
|
|
110
|
+
}
|
|
111
|
+
static readonly contractName: "UnitrollerAdminStorage";
|
|
112
|
+
public readonly contractName: "UnitrollerAdminStorage";
|
|
113
|
+
static readonly bytecode = _bytecode;
|
|
114
|
+
static readonly abi = _abi;
|
|
115
|
+
static createInterface(): UnitrollerAdminStorageInterface {
|
|
116
|
+
return new utils.Interface(_abi) as UnitrollerAdminStorageInterface;
|
|
117
|
+
}
|
|
118
|
+
static connect(
|
|
119
|
+
address: string,
|
|
120
|
+
signerOrProvider: Signer | Provider
|
|
121
|
+
): UnitrollerAdminStorage {
|
|
122
|
+
return new Contract(
|
|
123
|
+
address,
|
|
124
|
+
_abi,
|
|
125
|
+
signerOrProvider
|
|
126
|
+
) as UnitrollerAdminStorage;
|
|
127
|
+
}
|
|
128
|
+
}
|