@meterio/sumer-js 0.2.10 → 0.2.12
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/dist/browser/sumer.min.js +8 -8
- package/dist/nodejs/abi.d.ts +99 -19
- package/dist/nodejs/abi.js +305 -22
- package/dist/nodejs/abi.js.map +1 -1
- package/dist/nodejs/comptroller.d.ts +0 -1
- package/dist/nodejs/comptroller.js +1 -104
- package/dist/nodejs/comptroller.js.map +1 -1
- package/dist/nodejs/constants/basemain.d.ts +1 -0
- package/dist/nodejs/constants/basemain.js +1 -0
- package/dist/nodejs/constants/basemain.js.map +1 -1
- package/dist/nodejs/constants/basetest.d.ts +1 -0
- package/dist/nodejs/constants/basetest.js +1 -0
- package/dist/nodejs/constants/basetest.js.map +1 -1
- package/dist/nodejs/constants/metermain.d.ts +2 -0
- package/dist/nodejs/constants/metermain.js +2 -0
- package/dist/nodejs/constants/metermain.js.map +1 -1
- package/dist/nodejs/constants/metertest.d.ts +1 -0
- package/dist/nodejs/constants/metertest.js +2 -1
- package/dist/nodejs/constants/metertest.js.map +1 -1
- package/dist/nodejs/constants/sepolia.d.ts +3 -56
- package/dist/nodejs/constants/sepolia.js +5 -99
- package/dist/nodejs/constants/sepolia.js.map +1 -1
- package/dist/nodejs/errorABIs.js +50 -0
- package/dist/nodejs/errorABIs.js.map +1 -1
- package/dist/nodejs/errors.d.ts +4 -0
- package/dist/nodejs/errors.js +4 -0
- package/dist/nodejs/errors.js.map +1 -1
- package/dist/nodejs/index.d.ts +99 -19
- package/dist/nodejs/typechain/@openzeppelin/contracts-upgradeable/index.d.ts +2 -0
- package/dist/nodejs/typechain/@openzeppelin/contracts-upgradeable/security/ReentrancyGuardUpgradeable.d.ts +36 -0
- package/dist/nodejs/typechain/@openzeppelin/contracts-upgradeable/security/ReentrancyGuardUpgradeable.js +3 -0
- package/dist/nodejs/typechain/@openzeppelin/contracts-upgradeable/security/ReentrancyGuardUpgradeable.js.map +1 -0
- package/dist/nodejs/typechain/@openzeppelin/contracts-upgradeable/security/index.d.ts +1 -0
- package/dist/nodejs/typechain/@openzeppelin/contracts-upgradeable/security/index.js +3 -0
- package/dist/nodejs/typechain/@openzeppelin/contracts-upgradeable/security/index.js.map +1 -0
- package/dist/nodejs/typechain/contracts/Comptroller/Comptroller.d.ts +51 -2
- package/dist/nodejs/typechain/contracts/Interfaces/IComptroller.d.ts +15 -1
- package/dist/nodejs/typechain/contracts/Library/CreateCall.d.ts +67 -0
- package/dist/nodejs/typechain/contracts/Library/CreateCall.js +3 -0
- package/dist/nodejs/typechain/contracts/Library/CreateCall.js.map +1 -0
- package/dist/nodejs/typechain/contracts/Library/index.d.ts +1 -0
- package/dist/nodejs/typechain/contracts/Timelock.d.ts +36 -2
- package/dist/nodejs/typechain/factories/@openzeppelin/contracts-upgradeable/index.d.ts +1 -0
- package/dist/nodejs/typechain/factories/@openzeppelin/contracts-upgradeable/index.js +2 -1
- package/dist/nodejs/typechain/factories/@openzeppelin/contracts-upgradeable/index.js.map +1 -1
- package/dist/nodejs/typechain/factories/@openzeppelin/contracts-upgradeable/security/ReentrancyGuardUpgradeable__factory.d.ts +17 -0
- package/dist/nodejs/typechain/factories/@openzeppelin/contracts-upgradeable/security/ReentrancyGuardUpgradeable__factory.js +33 -0
- package/dist/nodejs/typechain/factories/@openzeppelin/contracts-upgradeable/security/ReentrancyGuardUpgradeable__factory.js.map +1 -0
- package/dist/nodejs/typechain/factories/@openzeppelin/contracts-upgradeable/security/index.d.ts +1 -0
- package/dist/nodejs/typechain/factories/@openzeppelin/contracts-upgradeable/security/index.js +9 -0
- package/dist/nodejs/typechain/factories/@openzeppelin/contracts-upgradeable/security/index.js.map +1 -0
- package/dist/nodejs/typechain/factories/contracts/CToken/CErc20__factory.d.ts +9 -1
- package/dist/nodejs/typechain/factories/contracts/CToken/CErc20__factory.js +11 -1
- package/dist/nodejs/typechain/factories/contracts/CToken/CErc20__factory.js.map +1 -1
- package/dist/nodejs/typechain/factories/contracts/CToken/CEther__factory.d.ts +9 -1
- package/dist/nodejs/typechain/factories/contracts/CToken/CEther__factory.js +11 -1
- package/dist/nodejs/typechain/factories/contracts/CToken/CEther__factory.js.map +1 -1
- package/dist/nodejs/typechain/factories/contracts/CToken/CToken__factory.d.ts +4 -0
- package/dist/nodejs/typechain/factories/contracts/CToken/CToken__factory.js +5 -0
- package/dist/nodejs/typechain/factories/contracts/CToken/CToken__factory.js.map +1 -1
- package/dist/nodejs/typechain/factories/contracts/CToken/SuErc20__factory.d.ts +9 -1
- package/dist/nodejs/typechain/factories/contracts/CToken/SuErc20__factory.js +11 -1
- package/dist/nodejs/typechain/factories/contracts/CToken/SuErc20__factory.js.map +1 -1
- package/dist/nodejs/typechain/factories/contracts/Comptroller/AccountLiquidity__factory.d.ts +9 -1
- package/dist/nodejs/typechain/factories/contracts/Comptroller/AccountLiquidity__factory.js +11 -1
- package/dist/nodejs/typechain/factories/contracts/Comptroller/AccountLiquidity__factory.js.map +1 -1
- package/dist/nodejs/typechain/factories/contracts/Comptroller/CompLogic__factory.d.ts +5 -1
- package/dist/nodejs/typechain/factories/contracts/Comptroller/CompLogic__factory.js +6 -1
- package/dist/nodejs/typechain/factories/contracts/Comptroller/CompLogic__factory.js.map +1 -1
- package/dist/nodejs/typechain/factories/contracts/Comptroller/CompoundLens__factory.d.ts +5 -1
- package/dist/nodejs/typechain/factories/contracts/Comptroller/CompoundLens__factory.js +6 -1
- package/dist/nodejs/typechain/factories/contracts/Comptroller/CompoundLens__factory.js.map +1 -1
- package/dist/nodejs/typechain/factories/contracts/Comptroller/ComptrollerStorage__factory.d.ts +1 -1
- package/dist/nodejs/typechain/factories/contracts/Comptroller/ComptrollerStorage__factory.js +1 -1
- package/dist/nodejs/typechain/factories/contracts/Comptroller/Comptroller__factory.d.ts +72 -1
- package/dist/nodejs/typechain/factories/contracts/Comptroller/Comptroller__factory.js +93 -1
- package/dist/nodejs/typechain/factories/contracts/Comptroller/Comptroller__factory.js.map +1 -1
- package/dist/nodejs/typechain/factories/contracts/Comptroller/RedemptionManager__factory.d.ts +9 -1
- package/dist/nodejs/typechain/factories/contracts/Comptroller/RedemptionManager__factory.js +11 -1
- package/dist/nodejs/typechain/factories/contracts/Comptroller/RedemptionManager__factory.js.map +1 -1
- package/dist/nodejs/typechain/factories/contracts/Comptroller/SortedBorrows__factory.d.ts +5 -1
- package/dist/nodejs/typechain/factories/contracts/Comptroller/SortedBorrows__factory.js +6 -1
- package/dist/nodejs/typechain/factories/contracts/Comptroller/SortedBorrows__factory.js.map +1 -1
- package/dist/nodejs/typechain/factories/contracts/InterestRateModel/WhitePaperInterestRateModel__factory.d.ts +1 -1
- package/dist/nodejs/typechain/factories/contracts/InterestRateModel/WhitePaperInterestRateModel__factory.js +1 -1
- package/dist/nodejs/typechain/factories/contracts/InterestRateModel/WhitePaperInterestRateModel__factory.js.map +1 -1
- package/dist/nodejs/typechain/factories/contracts/Interfaces/IComptroller__factory.d.ts +14 -0
- package/dist/nodejs/typechain/factories/contracts/Interfaces/IComptroller__factory.js +18 -0
- package/dist/nodejs/typechain/factories/contracts/Interfaces/IComptroller__factory.js.map +1 -1
- package/dist/nodejs/typechain/factories/contracts/Library/CreateCall__factory.d.ts +72 -0
- package/dist/nodejs/typechain/factories/contracts/Library/CreateCall__factory.js +106 -0
- package/dist/nodejs/typechain/factories/contracts/Library/CreateCall__factory.js.map +1 -0
- package/dist/nodejs/typechain/factories/contracts/Library/RateLimiter__factory.d.ts +1 -1
- package/dist/nodejs/typechain/factories/contracts/Library/RateLimiter__factory.js +1 -1
- package/dist/nodejs/typechain/factories/contracts/Library/index.d.ts +1 -0
- package/dist/nodejs/typechain/factories/contracts/Library/index.js +3 -1
- package/dist/nodejs/typechain/factories/contracts/Library/index.js.map +1 -1
- package/dist/nodejs/typechain/factories/contracts/SumerErrors__factory.d.ts +5 -1
- package/dist/nodejs/typechain/factories/contracts/SumerErrors__factory.js +6 -1
- package/dist/nodejs/typechain/factories/contracts/SumerErrors__factory.js.map +1 -1
- package/dist/nodejs/typechain/factories/contracts/Timelock__factory.d.ts +45 -21
- package/dist/nodejs/typechain/factories/contracts/Timelock__factory.js +57 -27
- package/dist/nodejs/typechain/factories/contracts/Timelock__factory.js.map +1 -1
- package/dist/nodejs/typechain/factories/contracts/stake/VeSumer.sol/VeSumer__factory.d.ts +1 -1
- package/dist/nodejs/typechain/factories/contracts/stake/VeSumer.sol/VeSumer__factory.js +1 -1
- package/dist/nodejs/typechain/factories/contracts/stake/VeSumer.sol/VeSumer__factory.js.map +1 -1
- package/dist/nodejs/typechain/hardhat.d.ts +36 -0
- package/dist/nodejs/typechain/index.d.ts +4 -0
- package/dist/nodejs/typechain/index.js +6 -2
- package/dist/nodejs/typechain/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -2,5 +2,7 @@ import type * as access from "./access";
|
|
|
2
2
|
export type { access };
|
|
3
3
|
import type * as proxy from "./proxy";
|
|
4
4
|
export type { proxy };
|
|
5
|
+
import type * as security from "./security";
|
|
6
|
+
export type { security };
|
|
5
7
|
import type * as utils from "./utils";
|
|
6
8
|
export type { utils };
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import type { BaseContract, BigNumberish, FunctionFragment, Interface, EventFragment, ContractRunner, ContractMethod, Listener } from "ethers";
|
|
2
|
+
import type { TypedContractEvent, TypedDeferredTopicFilter, TypedEventLog, TypedLogDescription, TypedListener } from "../../../common";
|
|
3
|
+
export interface ReentrancyGuardUpgradeableInterface extends Interface {
|
|
4
|
+
getEvent(nameOrSignatureOrTopic: "Initialized"): EventFragment;
|
|
5
|
+
}
|
|
6
|
+
export declare namespace InitializedEvent {
|
|
7
|
+
type InputTuple = [version: BigNumberish];
|
|
8
|
+
type OutputTuple = [version: bigint];
|
|
9
|
+
interface OutputObject {
|
|
10
|
+
version: bigint;
|
|
11
|
+
}
|
|
12
|
+
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
13
|
+
type Filter = TypedDeferredTopicFilter<Event>;
|
|
14
|
+
type Log = TypedEventLog<Event>;
|
|
15
|
+
type LogDescription = TypedLogDescription<Event>;
|
|
16
|
+
}
|
|
17
|
+
export interface ReentrancyGuardUpgradeable extends BaseContract {
|
|
18
|
+
connect(runner?: ContractRunner | null): ReentrancyGuardUpgradeable;
|
|
19
|
+
waitForDeployment(): Promise<this>;
|
|
20
|
+
interface: ReentrancyGuardUpgradeableInterface;
|
|
21
|
+
queryFilter<TCEvent extends TypedContractEvent>(event: TCEvent, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise<Array<TypedEventLog<TCEvent>>>;
|
|
22
|
+
queryFilter<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise<Array<TypedEventLog<TCEvent>>>;
|
|
23
|
+
on<TCEvent extends TypedContractEvent>(event: TCEvent, listener: TypedListener<TCEvent>): Promise<this>;
|
|
24
|
+
on<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, listener: TypedListener<TCEvent>): Promise<this>;
|
|
25
|
+
once<TCEvent extends TypedContractEvent>(event: TCEvent, listener: TypedListener<TCEvent>): Promise<this>;
|
|
26
|
+
once<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, listener: TypedListener<TCEvent>): Promise<this>;
|
|
27
|
+
listeners<TCEvent extends TypedContractEvent>(event: TCEvent): Promise<Array<TypedListener<TCEvent>>>;
|
|
28
|
+
listeners(eventName?: string): Promise<Array<Listener>>;
|
|
29
|
+
removeAllListeners<TCEvent extends TypedContractEvent>(event?: TCEvent): Promise<this>;
|
|
30
|
+
getFunction<T extends ContractMethod = ContractMethod>(key: string | FunctionFragment): T;
|
|
31
|
+
getEvent(key: "Initialized"): TypedContractEvent<InitializedEvent.InputTuple, InitializedEvent.OutputTuple, InitializedEvent.OutputObject>;
|
|
32
|
+
filters: {
|
|
33
|
+
"Initialized(uint8)": TypedContractEvent<InitializedEvent.InputTuple, InitializedEvent.OutputTuple, InitializedEvent.OutputObject>;
|
|
34
|
+
Initialized: TypedContractEvent<InitializedEvent.InputTuple, InitializedEvent.OutputTuple, InitializedEvent.OutputObject>;
|
|
35
|
+
};
|
|
36
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ReentrancyGuardUpgradeable.js","sourceRoot":"","sources":["../../../../../../src/typechain/@openzeppelin/contracts-upgradeable/security/ReentrancyGuardUpgradeable.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type { ReentrancyGuardUpgradeable } from "./ReentrancyGuardUpgradeable";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/typechain/@openzeppelin/contracts-upgradeable/security/index.ts"],"names":[],"mappings":""}
|
|
@@ -32,8 +32,8 @@ export declare namespace IComptroller {
|
|
|
32
32
|
};
|
|
33
33
|
}
|
|
34
34
|
export interface ComptrollerInterface extends Interface {
|
|
35
|
-
getFunction(nameOrSignature: "CAPPER_ROLE" | "COMP_LOGIC" | "DEFAULT_ADMIN_ROLE" | "PAUSER_ROLE" | "_borrowGuardianPaused" | "_getBorrowCapGuardian" | "_getPauseGuardian" | "_mintGuardianPaused" | "_setBorrowCapGuardian" | "_setBorrowPaused" | "_setCloseFactor" | "_setLiquidationIncentive" | "_setMarketBorrowCaps" | "_setMaxSupply" | "_setMintPaused" | "_setPauseGuardian" | "_setPriceOracle" | "_setProtocolPaused" | "_setSeizePaused" | "_setTransferPaused" | "_supportMarket" | "accountAssets" | "accountLiquidity" | "allMarkets" | "assetGroupIdToIndex" | "borrowAllowed" | "borrowCapGuardian" | "borrowCaps" | "borrowGuardianPaused" | "checkMembership" | "cleanAssetGroup" | "closeFactorMantissa" | "compLogic" | "enterMarkets" | "enterMarketsForAll" | "exitMarket" | "getAccountLiquidity" | "getAccountSafeLimit" | "getAllAssetGroup" | "getAllMarkets" | "getAssetGroup" | "getAssetGroupByIndex" | "getAssetGroupNum" | "getAssetsIn" | "getCollateralRate" | "getCompAddress" | "getHypotheticalAccountLiquidity" | "getRoleAdmin" | "getRoleMember" | "getRoleMemberCount" | "getUnderlyingPriceNormalized" | "governanceToken" | "grantRole" | "hasRole" | "heteroLiquidationIncentiveMantissa" | "homoLiquidationIncentiveMantissa" | "initialize" | "isComptroller" | "isListed" | "liquidateBorrowAllowed" | "liquidationIncentiveMantissa" | "marketGroupId" | "markets" | "maxSupply" | "minCloseValue" | "minSuBorrowValue" | "mintAllowed" | "mintGuardianPaused" | "oracle" | "pauseGuardian" | "redeemAllowed" | "redemptionManager" | "removeAssetGroup" | "renounceRole" | "repayBorrowAllowed" | "revokeRole" | "seizeAllowed" | "seizeGuardianPaused" | "setAccountLiquidity" | "setAssetGroup" | "setCompLogic" | "setCompSpeed" | "setGovTokenAddress" | "setMinCloseValue" | "setMinSuBorrowValue" | "setRedemptionManager" | "setTimelock" | "suTokenRateMantissa" | "supportsInterface" | "sutokenLiquidationIncentiveMantissa" | "timelock" | "transferAllowed" | "transferGuardianPaused"): FunctionFragment;
|
|
36
|
-
getEvent(nameOrSignatureOrTopic: "ActionPaused" | "Initialized" | "MarketEntered" | "MarketExited" | "MarketListed" | "NewAccountLiquidity" | "NewAssetGroup" | "NewBorrowCap" | "NewBorrowCapGuardian" | "NewCloseFactor" | "NewCompLogic" | "NewLiquidationIncentive" | "NewMinCloseValue" | "NewMinSuBorrowValue" | "NewPauseGuardian" | "NewPriceOracle" | "NewRedemptionManager" | "RemoveAssetGroup" | "RoleAdminChanged" | "RoleGranted" | "RoleRevoked" | "SetMaxSupply"): EventFragment;
|
|
35
|
+
getFunction(nameOrSignature: "CAPPER_ROLE" | "COMP_LOGIC" | "DEFAULT_ADMIN_ROLE" | "PAUSER_ROLE" | "_borrowGuardianPaused" | "_getBorrowCapGuardian" | "_getPauseGuardian" | "_mintGuardianPaused" | "_setBorrowCapGuardian" | "_setBorrowPaused" | "_setCloseFactor" | "_setLiquidationIncentive" | "_setMarketBorrowCaps" | "_setMaxSupply" | "_setMintPaused" | "_setPauseGuardian" | "_setPriceOracle" | "_setProtocolPaused" | "_setSeizePaused" | "_setTransferPaused" | "_supportMarket" | "accountAssets" | "accountLiquidity" | "allMarkets" | "assetGroupIdToIndex" | "borrowAllowed" | "borrowCapGuardian" | "borrowCaps" | "borrowGuardianPaused" | "borrowVerify" | "checkMembership" | "cleanAssetGroup" | "closeFactorMantissa" | "compLogic" | "enterMarkets" | "enterMarketsForAll" | "exitMarket" | "getAccountLiquidity" | "getAccountSafeLimit" | "getAllAssetGroup" | "getAllMarkets" | "getAssetGroup" | "getAssetGroupByIndex" | "getAssetGroupNum" | "getAssetsIn" | "getCollateralRate" | "getCompAddress" | "getHypotheticalAccountLiquidity" | "getRoleAdmin" | "getRoleMember" | "getRoleMemberCount" | "getUnderlyingPriceNormalized" | "governanceToken" | "grantRole" | "hasRole" | "heteroLiquidationIncentiveMantissa" | "homoLiquidationIncentiveMantissa" | "initialize" | "isComptroller" | "isListed" | "lastBorrowedAt" | "liquidateBorrowAllowed" | "liquidationIncentiveMantissa" | "marketGroupId" | "markets" | "maxSupply" | "minCloseValue" | "minSuBorrowValue" | "minWaitBeforeLiquidatable" | "mintAllowed" | "mintGuardianPaused" | "oracle" | "pauseGuardian" | "redeemAllowed" | "redemptionManager" | "removeAssetGroup" | "renounceRole" | "repayBorrowAllowed" | "revokeRole" | "seizeAllowed" | "seizeGuardianPaused" | "setAccountLiquidity" | "setAssetGroup" | "setCompLogic" | "setCompSpeed" | "setGovTokenAddress" | "setMinCloseValue" | "setMinSuBorrowValue" | "setMinWaitBeforeLiquidatable" | "setRedemptionManager" | "setTimelock" | "suTokenRateMantissa" | "supportsInterface" | "sutokenLiquidationIncentiveMantissa" | "timelock" | "transferAllowed" | "transferGuardianPaused"): FunctionFragment;
|
|
36
|
+
getEvent(nameOrSignatureOrTopic: "ActionPaused" | "Initialized" | "MarketEntered" | "MarketExited" | "MarketListed" | "NewAccountLiquidity" | "NewAssetGroup" | "NewBorrowCap" | "NewBorrowCapGuardian" | "NewCloseFactor" | "NewCompLogic" | "NewLiquidationIncentive" | "NewMinCloseValue" | "NewMinSuBorrowValue" | "NewMinWaitBeforeLiquidatable" | "NewPauseGuardian" | "NewPriceOracle" | "NewRedemptionManager" | "RemoveAssetGroup" | "RoleAdminChanged" | "RoleGranted" | "RoleRevoked" | "SetMaxSupply"): EventFragment;
|
|
37
37
|
encodeFunctionData(functionFragment: "CAPPER_ROLE", values?: undefined): string;
|
|
38
38
|
encodeFunctionData(functionFragment: "COMP_LOGIC", values?: undefined): string;
|
|
39
39
|
encodeFunctionData(functionFragment: "DEFAULT_ADMIN_ROLE", values?: undefined): string;
|
|
@@ -63,6 +63,7 @@ export interface ComptrollerInterface extends Interface {
|
|
|
63
63
|
encodeFunctionData(functionFragment: "borrowCapGuardian", values?: undefined): string;
|
|
64
64
|
encodeFunctionData(functionFragment: "borrowCaps", values: [AddressLike]): string;
|
|
65
65
|
encodeFunctionData(functionFragment: "borrowGuardianPaused", values: [AddressLike]): string;
|
|
66
|
+
encodeFunctionData(functionFragment: "borrowVerify", values: [AddressLike, BigNumberish]): string;
|
|
66
67
|
encodeFunctionData(functionFragment: "checkMembership", values: [AddressLike, AddressLike]): string;
|
|
67
68
|
encodeFunctionData(functionFragment: "cleanAssetGroup", values?: undefined): string;
|
|
68
69
|
encodeFunctionData(functionFragment: "closeFactorMantissa", values?: undefined): string;
|
|
@@ -103,6 +104,7 @@ export interface ComptrollerInterface extends Interface {
|
|
|
103
104
|
]): string;
|
|
104
105
|
encodeFunctionData(functionFragment: "isComptroller", values?: undefined): string;
|
|
105
106
|
encodeFunctionData(functionFragment: "isListed", values: [AddressLike]): string;
|
|
107
|
+
encodeFunctionData(functionFragment: "lastBorrowedAt", values: [AddressLike]): string;
|
|
106
108
|
encodeFunctionData(functionFragment: "liquidateBorrowAllowed", values: [AddressLike, AddressLike, AddressLike, AddressLike, BigNumberish]): string;
|
|
107
109
|
encodeFunctionData(functionFragment: "liquidationIncentiveMantissa", values?: undefined): string;
|
|
108
110
|
encodeFunctionData(functionFragment: "marketGroupId", values: [AddressLike]): string;
|
|
@@ -110,6 +112,7 @@ export interface ComptrollerInterface extends Interface {
|
|
|
110
112
|
encodeFunctionData(functionFragment: "maxSupply", values: [AddressLike]): string;
|
|
111
113
|
encodeFunctionData(functionFragment: "minCloseValue", values?: undefined): string;
|
|
112
114
|
encodeFunctionData(functionFragment: "minSuBorrowValue", values?: undefined): string;
|
|
115
|
+
encodeFunctionData(functionFragment: "minWaitBeforeLiquidatable", values?: undefined): string;
|
|
113
116
|
encodeFunctionData(functionFragment: "mintAllowed", values: [AddressLike, AddressLike, BigNumberish]): string;
|
|
114
117
|
encodeFunctionData(functionFragment: "mintGuardianPaused", values: [AddressLike]): string;
|
|
115
118
|
encodeFunctionData(functionFragment: "oracle", values?: undefined): string;
|
|
@@ -137,6 +140,7 @@ export interface ComptrollerInterface extends Interface {
|
|
|
137
140
|
encodeFunctionData(functionFragment: "setGovTokenAddress", values: [AddressLike]): string;
|
|
138
141
|
encodeFunctionData(functionFragment: "setMinCloseValue", values: [BigNumberish]): string;
|
|
139
142
|
encodeFunctionData(functionFragment: "setMinSuBorrowValue", values: [BigNumberish]): string;
|
|
143
|
+
encodeFunctionData(functionFragment: "setMinWaitBeforeLiquidatable", values: [BigNumberish]): string;
|
|
140
144
|
encodeFunctionData(functionFragment: "setRedemptionManager", values: [AddressLike]): string;
|
|
141
145
|
encodeFunctionData(functionFragment: "setTimelock", values: [AddressLike]): string;
|
|
142
146
|
encodeFunctionData(functionFragment: "suTokenRateMantissa", values?: undefined): string;
|
|
@@ -174,6 +178,7 @@ export interface ComptrollerInterface extends Interface {
|
|
|
174
178
|
decodeFunctionResult(functionFragment: "borrowCapGuardian", data: BytesLike): Result;
|
|
175
179
|
decodeFunctionResult(functionFragment: "borrowCaps", data: BytesLike): Result;
|
|
176
180
|
decodeFunctionResult(functionFragment: "borrowGuardianPaused", data: BytesLike): Result;
|
|
181
|
+
decodeFunctionResult(functionFragment: "borrowVerify", data: BytesLike): Result;
|
|
177
182
|
decodeFunctionResult(functionFragment: "checkMembership", data: BytesLike): Result;
|
|
178
183
|
decodeFunctionResult(functionFragment: "cleanAssetGroup", data: BytesLike): Result;
|
|
179
184
|
decodeFunctionResult(functionFragment: "closeFactorMantissa", data: BytesLike): Result;
|
|
@@ -204,6 +209,7 @@ export interface ComptrollerInterface extends Interface {
|
|
|
204
209
|
decodeFunctionResult(functionFragment: "initialize", data: BytesLike): Result;
|
|
205
210
|
decodeFunctionResult(functionFragment: "isComptroller", data: BytesLike): Result;
|
|
206
211
|
decodeFunctionResult(functionFragment: "isListed", data: BytesLike): Result;
|
|
212
|
+
decodeFunctionResult(functionFragment: "lastBorrowedAt", data: BytesLike): Result;
|
|
207
213
|
decodeFunctionResult(functionFragment: "liquidateBorrowAllowed", data: BytesLike): Result;
|
|
208
214
|
decodeFunctionResult(functionFragment: "liquidationIncentiveMantissa", data: BytesLike): Result;
|
|
209
215
|
decodeFunctionResult(functionFragment: "marketGroupId", data: BytesLike): Result;
|
|
@@ -211,6 +217,7 @@ export interface ComptrollerInterface extends Interface {
|
|
|
211
217
|
decodeFunctionResult(functionFragment: "maxSupply", data: BytesLike): Result;
|
|
212
218
|
decodeFunctionResult(functionFragment: "minCloseValue", data: BytesLike): Result;
|
|
213
219
|
decodeFunctionResult(functionFragment: "minSuBorrowValue", data: BytesLike): Result;
|
|
220
|
+
decodeFunctionResult(functionFragment: "minWaitBeforeLiquidatable", data: BytesLike): Result;
|
|
214
221
|
decodeFunctionResult(functionFragment: "mintAllowed", data: BytesLike): Result;
|
|
215
222
|
decodeFunctionResult(functionFragment: "mintGuardianPaused", data: BytesLike): Result;
|
|
216
223
|
decodeFunctionResult(functionFragment: "oracle", data: BytesLike): Result;
|
|
@@ -230,6 +237,7 @@ export interface ComptrollerInterface extends Interface {
|
|
|
230
237
|
decodeFunctionResult(functionFragment: "setGovTokenAddress", data: BytesLike): Result;
|
|
231
238
|
decodeFunctionResult(functionFragment: "setMinCloseValue", data: BytesLike): Result;
|
|
232
239
|
decodeFunctionResult(functionFragment: "setMinSuBorrowValue", data: BytesLike): Result;
|
|
240
|
+
decodeFunctionResult(functionFragment: "setMinWaitBeforeLiquidatable", data: BytesLike): Result;
|
|
233
241
|
decodeFunctionResult(functionFragment: "setRedemptionManager", data: BytesLike): Result;
|
|
234
242
|
decodeFunctionResult(functionFragment: "setTimelock", data: BytesLike): Result;
|
|
235
243
|
decodeFunctionResult(functionFragment: "suTokenRateMantissa", data: BytesLike): Result;
|
|
@@ -468,6 +476,18 @@ export declare namespace NewMinSuBorrowValueEvent {
|
|
|
468
476
|
type Log = TypedEventLog<Event>;
|
|
469
477
|
type LogDescription = TypedLogDescription<Event>;
|
|
470
478
|
}
|
|
479
|
+
export declare namespace NewMinWaitBeforeLiquidatableEvent {
|
|
480
|
+
type InputTuple = [oldValue: BigNumberish, newValue: BigNumberish];
|
|
481
|
+
type OutputTuple = [oldValue: bigint, newValue: bigint];
|
|
482
|
+
interface OutputObject {
|
|
483
|
+
oldValue: bigint;
|
|
484
|
+
newValue: bigint;
|
|
485
|
+
}
|
|
486
|
+
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
487
|
+
type Filter = TypedDeferredTopicFilter<Event>;
|
|
488
|
+
type Log = TypedEventLog<Event>;
|
|
489
|
+
type LogDescription = TypedLogDescription<Event>;
|
|
490
|
+
}
|
|
471
491
|
export declare namespace NewPauseGuardianEvent {
|
|
472
492
|
type InputTuple = [
|
|
473
493
|
oldPauseGuardian: AddressLike,
|
|
@@ -717,6 +737,12 @@ export interface Comptroller extends BaseContract {
|
|
|
717
737
|
], [
|
|
718
738
|
boolean
|
|
719
739
|
], "view">;
|
|
740
|
+
borrowVerify: TypedContractMethod<[
|
|
741
|
+
borrower: AddressLike,
|
|
742
|
+
borrowAmount: BigNumberish
|
|
743
|
+
], [
|
|
744
|
+
void
|
|
745
|
+
], "nonpayable">;
|
|
720
746
|
checkMembership: TypedContractMethod<[
|
|
721
747
|
account: AddressLike,
|
|
722
748
|
cToken: AddressLike
|
|
@@ -829,6 +855,7 @@ export interface Comptroller extends BaseContract {
|
|
|
829
855
|
], "nonpayable">;
|
|
830
856
|
isComptroller: TypedContractMethod<[], [boolean], "view">;
|
|
831
857
|
isListed: TypedContractMethod<[asset: AddressLike], [boolean], "view">;
|
|
858
|
+
lastBorrowedAt: TypedContractMethod<[arg0: AddressLike], [bigint], "view">;
|
|
832
859
|
liquidateBorrowAllowed: TypedContractMethod<[
|
|
833
860
|
cTokenBorrowed: AddressLike,
|
|
834
861
|
cTokenCollateral: AddressLike,
|
|
@@ -859,6 +886,7 @@ export interface Comptroller extends BaseContract {
|
|
|
859
886
|
maxSupply: TypedContractMethod<[arg0: AddressLike], [bigint], "view">;
|
|
860
887
|
minCloseValue: TypedContractMethod<[], [bigint], "view">;
|
|
861
888
|
minSuBorrowValue: TypedContractMethod<[], [bigint], "view">;
|
|
889
|
+
minWaitBeforeLiquidatable: TypedContractMethod<[], [bigint], "view">;
|
|
862
890
|
mintAllowed: TypedContractMethod<[
|
|
863
891
|
cToken: AddressLike,
|
|
864
892
|
minter: AddressLike,
|
|
@@ -959,6 +987,11 @@ export interface Comptroller extends BaseContract {
|
|
|
959
987
|
], [
|
|
960
988
|
void
|
|
961
989
|
], "nonpayable">;
|
|
990
|
+
setMinWaitBeforeLiquidatable: TypedContractMethod<[
|
|
991
|
+
_minWaitBeforeLiquidatable: BigNumberish
|
|
992
|
+
], [
|
|
993
|
+
void
|
|
994
|
+
], "nonpayable">;
|
|
962
995
|
setRedemptionManager: TypedContractMethod<[
|
|
963
996
|
_redemptionManager: AddressLike
|
|
964
997
|
], [
|
|
@@ -1075,6 +1108,12 @@ export interface Comptroller extends BaseContract {
|
|
|
1075
1108
|
getFunction(nameOrSignature: "borrowCapGuardian"): TypedContractMethod<[], [string], "view">;
|
|
1076
1109
|
getFunction(nameOrSignature: "borrowCaps"): TypedContractMethod<[arg0: AddressLike], [bigint], "view">;
|
|
1077
1110
|
getFunction(nameOrSignature: "borrowGuardianPaused"): TypedContractMethod<[arg0: AddressLike], [boolean], "view">;
|
|
1111
|
+
getFunction(nameOrSignature: "borrowVerify"): TypedContractMethod<[
|
|
1112
|
+
borrower: AddressLike,
|
|
1113
|
+
borrowAmount: BigNumberish
|
|
1114
|
+
], [
|
|
1115
|
+
void
|
|
1116
|
+
], "nonpayable">;
|
|
1078
1117
|
getFunction(nameOrSignature: "checkMembership"): TypedContractMethod<[
|
|
1079
1118
|
account: AddressLike,
|
|
1080
1119
|
cToken: AddressLike
|
|
@@ -1168,6 +1207,7 @@ export interface Comptroller extends BaseContract {
|
|
|
1168
1207
|
], "nonpayable">;
|
|
1169
1208
|
getFunction(nameOrSignature: "isComptroller"): TypedContractMethod<[], [boolean], "view">;
|
|
1170
1209
|
getFunction(nameOrSignature: "isListed"): TypedContractMethod<[asset: AddressLike], [boolean], "view">;
|
|
1210
|
+
getFunction(nameOrSignature: "lastBorrowedAt"): TypedContractMethod<[arg0: AddressLike], [bigint], "view">;
|
|
1171
1211
|
getFunction(nameOrSignature: "liquidateBorrowAllowed"): TypedContractMethod<[
|
|
1172
1212
|
cTokenBorrowed: AddressLike,
|
|
1173
1213
|
cTokenCollateral: AddressLike,
|
|
@@ -1195,6 +1235,7 @@ export interface Comptroller extends BaseContract {
|
|
|
1195
1235
|
getFunction(nameOrSignature: "maxSupply"): TypedContractMethod<[arg0: AddressLike], [bigint], "view">;
|
|
1196
1236
|
getFunction(nameOrSignature: "minCloseValue"): TypedContractMethod<[], [bigint], "view">;
|
|
1197
1237
|
getFunction(nameOrSignature: "minSuBorrowValue"): TypedContractMethod<[], [bigint], "view">;
|
|
1238
|
+
getFunction(nameOrSignature: "minWaitBeforeLiquidatable"): TypedContractMethod<[], [bigint], "view">;
|
|
1198
1239
|
getFunction(nameOrSignature: "mintAllowed"): TypedContractMethod<[
|
|
1199
1240
|
cToken: AddressLike,
|
|
1200
1241
|
minter: AddressLike,
|
|
@@ -1275,6 +1316,11 @@ export interface Comptroller extends BaseContract {
|
|
|
1275
1316
|
], [
|
|
1276
1317
|
void
|
|
1277
1318
|
], "nonpayable">;
|
|
1319
|
+
getFunction(nameOrSignature: "setMinWaitBeforeLiquidatable"): TypedContractMethod<[
|
|
1320
|
+
_minWaitBeforeLiquidatable: BigNumberish
|
|
1321
|
+
], [
|
|
1322
|
+
void
|
|
1323
|
+
], "nonpayable">;
|
|
1278
1324
|
getFunction(nameOrSignature: "setRedemptionManager"): TypedContractMethod<[
|
|
1279
1325
|
_redemptionManager: AddressLike
|
|
1280
1326
|
], [
|
|
@@ -1308,6 +1354,7 @@ export interface Comptroller extends BaseContract {
|
|
|
1308
1354
|
getEvent(key: "NewLiquidationIncentive"): TypedContractEvent<NewLiquidationIncentiveEvent.InputTuple, NewLiquidationIncentiveEvent.OutputTuple, NewLiquidationIncentiveEvent.OutputObject>;
|
|
1309
1355
|
getEvent(key: "NewMinCloseValue"): TypedContractEvent<NewMinCloseValueEvent.InputTuple, NewMinCloseValueEvent.OutputTuple, NewMinCloseValueEvent.OutputObject>;
|
|
1310
1356
|
getEvent(key: "NewMinSuBorrowValue"): TypedContractEvent<NewMinSuBorrowValueEvent.InputTuple, NewMinSuBorrowValueEvent.OutputTuple, NewMinSuBorrowValueEvent.OutputObject>;
|
|
1357
|
+
getEvent(key: "NewMinWaitBeforeLiquidatable"): TypedContractEvent<NewMinWaitBeforeLiquidatableEvent.InputTuple, NewMinWaitBeforeLiquidatableEvent.OutputTuple, NewMinWaitBeforeLiquidatableEvent.OutputObject>;
|
|
1311
1358
|
getEvent(key: "NewPauseGuardian"): TypedContractEvent<NewPauseGuardianEvent.InputTuple, NewPauseGuardianEvent.OutputTuple, NewPauseGuardianEvent.OutputObject>;
|
|
1312
1359
|
getEvent(key: "NewPriceOracle"): TypedContractEvent<NewPriceOracleEvent.InputTuple, NewPriceOracleEvent.OutputTuple, NewPriceOracleEvent.OutputObject>;
|
|
1313
1360
|
getEvent(key: "NewRedemptionManager"): TypedContractEvent<NewRedemptionManagerEvent.InputTuple, NewRedemptionManagerEvent.OutputTuple, NewRedemptionManagerEvent.OutputObject>;
|
|
@@ -1345,6 +1392,8 @@ export interface Comptroller extends BaseContract {
|
|
|
1345
1392
|
NewMinCloseValue: TypedContractEvent<NewMinCloseValueEvent.InputTuple, NewMinCloseValueEvent.OutputTuple, NewMinCloseValueEvent.OutputObject>;
|
|
1346
1393
|
"NewMinSuBorrowValue(uint256,uint256)": TypedContractEvent<NewMinSuBorrowValueEvent.InputTuple, NewMinSuBorrowValueEvent.OutputTuple, NewMinSuBorrowValueEvent.OutputObject>;
|
|
1347
1394
|
NewMinSuBorrowValue: TypedContractEvent<NewMinSuBorrowValueEvent.InputTuple, NewMinSuBorrowValueEvent.OutputTuple, NewMinSuBorrowValueEvent.OutputObject>;
|
|
1395
|
+
"NewMinWaitBeforeLiquidatable(uint48,uint48)": TypedContractEvent<NewMinWaitBeforeLiquidatableEvent.InputTuple, NewMinWaitBeforeLiquidatableEvent.OutputTuple, NewMinWaitBeforeLiquidatableEvent.OutputObject>;
|
|
1396
|
+
NewMinWaitBeforeLiquidatable: TypedContractEvent<NewMinWaitBeforeLiquidatableEvent.InputTuple, NewMinWaitBeforeLiquidatableEvent.OutputTuple, NewMinWaitBeforeLiquidatableEvent.OutputObject>;
|
|
1348
1397
|
"NewPauseGuardian(address,address)": TypedContractEvent<NewPauseGuardianEvent.InputTuple, NewPauseGuardianEvent.OutputTuple, NewPauseGuardianEvent.OutputObject>;
|
|
1349
1398
|
NewPauseGuardian: TypedContractEvent<NewPauseGuardianEvent.InputTuple, NewPauseGuardianEvent.OutputTuple, NewPauseGuardianEvent.OutputObject>;
|
|
1350
1399
|
"NewPriceOracle(address,address)": TypedContractEvent<NewPriceOracleEvent.InputTuple, NewPriceOracleEvent.OutputTuple, NewPriceOracleEvent.OutputObject>;
|
|
@@ -32,12 +32,13 @@ export declare namespace IComptroller {
|
|
|
32
32
|
};
|
|
33
33
|
}
|
|
34
34
|
export interface IComptrollerInterface extends Interface {
|
|
35
|
-
getFunction(nameOrSignature: "assetGroupIdToIndex" | "borrowAllowed" | "borrowCaps" | "borrowGuardianPaused" | "claimComp" | "closeFactorMantissa" | "compAccrued" | "enterMarkets" | "exitMarket" | "getAccountLiquidity" | "getAllAssetGroup" | "getAllMarkets" | "getAssetGroup" | "getAssetGroupNum" | "getAssetsIn" | "getCollateralRate" | "getCompAddress" | "getHypotheticalAccountLiquidity" | "getUnderlyingPriceNormalized" | "isComptroller" | "isListed" | "liquidateBorrowAllowed" | "liquidationIncentiveMantissa" | "marketGroupId" | "markets" | "mintAllowed" | "oracle" | "redeemAllowed" | "redemptionManager" | "repayBorrowAllowed" | "seizeAllowed" | "seizeVerify" | "timelock" | "transferAllowed"): FunctionFragment;
|
|
35
|
+
getFunction(nameOrSignature: "assetGroupIdToIndex" | "borrowAllowed" | "borrowCaps" | "borrowGuardianPaused" | "borrowVerify" | "claimComp" | "closeFactorMantissa" | "compAccrued" | "enterMarkets" | "exitMarket" | "getAccountLiquidity" | "getAllAssetGroup" | "getAllMarkets" | "getAssetGroup" | "getAssetGroupNum" | "getAssetsIn" | "getCollateralRate" | "getCompAddress" | "getHypotheticalAccountLiquidity" | "getUnderlyingPriceNormalized" | "isComptroller" | "isListed" | "liquidateBorrowAllowed" | "liquidationIncentiveMantissa" | "marketGroupId" | "markets" | "mintAllowed" | "oracle" | "redeemAllowed" | "redemptionManager" | "repayBorrowAllowed" | "seizeAllowed" | "seizeVerify" | "timelock" | "transferAllowed"): FunctionFragment;
|
|
36
36
|
getEvent(nameOrSignatureOrTopic: "ActionPaused" | "NewBorrowCap" | "NewBorrowCapGuardian" | "NewPauseGuardian" | "RemoveAssetGroup"): EventFragment;
|
|
37
37
|
encodeFunctionData(functionFragment: "assetGroupIdToIndex", values: [BigNumberish]): string;
|
|
38
38
|
encodeFunctionData(functionFragment: "borrowAllowed", values: [AddressLike, AddressLike, BigNumberish]): string;
|
|
39
39
|
encodeFunctionData(functionFragment: "borrowCaps", values: [AddressLike]): string;
|
|
40
40
|
encodeFunctionData(functionFragment: "borrowGuardianPaused", values: [AddressLike]): string;
|
|
41
|
+
encodeFunctionData(functionFragment: "borrowVerify", values: [AddressLike, BigNumberish]): string;
|
|
41
42
|
encodeFunctionData(functionFragment: "claimComp", values: [AddressLike]): string;
|
|
42
43
|
encodeFunctionData(functionFragment: "closeFactorMantissa", values?: undefined): string;
|
|
43
44
|
encodeFunctionData(functionFragment: "compAccrued", values: [AddressLike]): string;
|
|
@@ -72,6 +73,7 @@ export interface IComptrollerInterface extends Interface {
|
|
|
72
73
|
decodeFunctionResult(functionFragment: "borrowAllowed", data: BytesLike): Result;
|
|
73
74
|
decodeFunctionResult(functionFragment: "borrowCaps", data: BytesLike): Result;
|
|
74
75
|
decodeFunctionResult(functionFragment: "borrowGuardianPaused", data: BytesLike): Result;
|
|
76
|
+
decodeFunctionResult(functionFragment: "borrowVerify", data: BytesLike): Result;
|
|
75
77
|
decodeFunctionResult(functionFragment: "claimComp", data: BytesLike): Result;
|
|
76
78
|
decodeFunctionResult(functionFragment: "closeFactorMantissa", data: BytesLike): Result;
|
|
77
79
|
decodeFunctionResult(functionFragment: "compAccrued", data: BytesLike): Result;
|
|
@@ -218,6 +220,12 @@ export interface IComptroller extends BaseContract {
|
|
|
218
220
|
], [
|
|
219
221
|
boolean
|
|
220
222
|
], "view">;
|
|
223
|
+
borrowVerify: TypedContractMethod<[
|
|
224
|
+
borrower: AddressLike,
|
|
225
|
+
borrowAmount: BigNumberish
|
|
226
|
+
], [
|
|
227
|
+
void
|
|
228
|
+
], "nonpayable">;
|
|
221
229
|
claimComp: TypedContractMethod<[arg0: AddressLike], [void], "nonpayable">;
|
|
222
230
|
closeFactorMantissa: TypedContractMethod<[], [bigint], "view">;
|
|
223
231
|
compAccrued: TypedContractMethod<[arg0: AddressLike], [bigint], "view">;
|
|
@@ -351,6 +359,12 @@ export interface IComptroller extends BaseContract {
|
|
|
351
359
|
], "nonpayable">;
|
|
352
360
|
getFunction(nameOrSignature: "borrowCaps"): TypedContractMethod<[cToken: AddressLike], [bigint], "view">;
|
|
353
361
|
getFunction(nameOrSignature: "borrowGuardianPaused"): TypedContractMethod<[cToken: AddressLike], [boolean], "view">;
|
|
362
|
+
getFunction(nameOrSignature: "borrowVerify"): TypedContractMethod<[
|
|
363
|
+
borrower: AddressLike,
|
|
364
|
+
borrowAmount: BigNumberish
|
|
365
|
+
], [
|
|
366
|
+
void
|
|
367
|
+
], "nonpayable">;
|
|
354
368
|
getFunction(nameOrSignature: "claimComp"): TypedContractMethod<[arg0: AddressLike], [void], "nonpayable">;
|
|
355
369
|
getFunction(nameOrSignature: "closeFactorMantissa"): TypedContractMethod<[], [bigint], "view">;
|
|
356
370
|
getFunction(nameOrSignature: "compAccrued"): TypedContractMethod<[arg0: AddressLike], [bigint], "view">;
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import type { BaseContract, BigNumberish, BytesLike, FunctionFragment, Result, Interface, EventFragment, AddressLike, ContractRunner, ContractMethod, Listener } from "ethers";
|
|
2
|
+
import type { TypedContractEvent, TypedDeferredTopicFilter, TypedEventLog, TypedLogDescription, TypedListener, TypedContractMethod } from "../../common";
|
|
3
|
+
export interface CreateCallInterface extends Interface {
|
|
4
|
+
getFunction(nameOrSignature: "performCreate" | "performCreate2"): FunctionFragment;
|
|
5
|
+
getEvent(nameOrSignatureOrTopic: "ContractCreation"): EventFragment;
|
|
6
|
+
encodeFunctionData(functionFragment: "performCreate", values: [BigNumberish, BytesLike]): string;
|
|
7
|
+
encodeFunctionData(functionFragment: "performCreate2", values: [BigNumberish, BytesLike, BytesLike]): string;
|
|
8
|
+
decodeFunctionResult(functionFragment: "performCreate", data: BytesLike): Result;
|
|
9
|
+
decodeFunctionResult(functionFragment: "performCreate2", data: BytesLike): Result;
|
|
10
|
+
}
|
|
11
|
+
export declare namespace ContractCreationEvent {
|
|
12
|
+
type InputTuple = [newContract: AddressLike];
|
|
13
|
+
type OutputTuple = [newContract: string];
|
|
14
|
+
interface OutputObject {
|
|
15
|
+
newContract: string;
|
|
16
|
+
}
|
|
17
|
+
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
18
|
+
type Filter = TypedDeferredTopicFilter<Event>;
|
|
19
|
+
type Log = TypedEventLog<Event>;
|
|
20
|
+
type LogDescription = TypedLogDescription<Event>;
|
|
21
|
+
}
|
|
22
|
+
export interface CreateCall extends BaseContract {
|
|
23
|
+
connect(runner?: ContractRunner | null): CreateCall;
|
|
24
|
+
waitForDeployment(): Promise<this>;
|
|
25
|
+
interface: CreateCallInterface;
|
|
26
|
+
queryFilter<TCEvent extends TypedContractEvent>(event: TCEvent, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise<Array<TypedEventLog<TCEvent>>>;
|
|
27
|
+
queryFilter<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise<Array<TypedEventLog<TCEvent>>>;
|
|
28
|
+
on<TCEvent extends TypedContractEvent>(event: TCEvent, listener: TypedListener<TCEvent>): Promise<this>;
|
|
29
|
+
on<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, listener: TypedListener<TCEvent>): Promise<this>;
|
|
30
|
+
once<TCEvent extends TypedContractEvent>(event: TCEvent, listener: TypedListener<TCEvent>): Promise<this>;
|
|
31
|
+
once<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, listener: TypedListener<TCEvent>): Promise<this>;
|
|
32
|
+
listeners<TCEvent extends TypedContractEvent>(event: TCEvent): Promise<Array<TypedListener<TCEvent>>>;
|
|
33
|
+
listeners(eventName?: string): Promise<Array<Listener>>;
|
|
34
|
+
removeAllListeners<TCEvent extends TypedContractEvent>(event?: TCEvent): Promise<this>;
|
|
35
|
+
performCreate: TypedContractMethod<[
|
|
36
|
+
value: BigNumberish,
|
|
37
|
+
deploymentData: BytesLike
|
|
38
|
+
], [
|
|
39
|
+
string
|
|
40
|
+
], "nonpayable">;
|
|
41
|
+
performCreate2: TypedContractMethod<[
|
|
42
|
+
value: BigNumberish,
|
|
43
|
+
deploymentData: BytesLike,
|
|
44
|
+
salt: BytesLike
|
|
45
|
+
], [
|
|
46
|
+
string
|
|
47
|
+
], "nonpayable">;
|
|
48
|
+
getFunction<T extends ContractMethod = ContractMethod>(key: string | FunctionFragment): T;
|
|
49
|
+
getFunction(nameOrSignature: "performCreate"): TypedContractMethod<[
|
|
50
|
+
value: BigNumberish,
|
|
51
|
+
deploymentData: BytesLike
|
|
52
|
+
], [
|
|
53
|
+
string
|
|
54
|
+
], "nonpayable">;
|
|
55
|
+
getFunction(nameOrSignature: "performCreate2"): TypedContractMethod<[
|
|
56
|
+
value: BigNumberish,
|
|
57
|
+
deploymentData: BytesLike,
|
|
58
|
+
salt: BytesLike
|
|
59
|
+
], [
|
|
60
|
+
string
|
|
61
|
+
], "nonpayable">;
|
|
62
|
+
getEvent(key: "ContractCreation"): TypedContractEvent<ContractCreationEvent.InputTuple, ContractCreationEvent.OutputTuple, ContractCreationEvent.OutputObject>;
|
|
63
|
+
filters: {
|
|
64
|
+
"ContractCreation(address)": TypedContractEvent<ContractCreationEvent.InputTuple, ContractCreationEvent.OutputTuple, ContractCreationEvent.OutputObject>;
|
|
65
|
+
ContractCreation: TypedContractEvent<ContractCreationEvent.InputTuple, ContractCreationEvent.OutputTuple, ContractCreationEvent.OutputObject>;
|
|
66
|
+
};
|
|
67
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CreateCall.js","sourceRoot":"","sources":["../../../../../src/typechain/contracts/Library/CreateCall.ts"],"names":[],"mappings":""}
|
|
@@ -65,8 +65,8 @@ export declare namespace ITimelock {
|
|
|
65
65
|
};
|
|
66
66
|
}
|
|
67
67
|
export interface TimelockInterface extends Interface {
|
|
68
|
-
getFunction(nameOrSignature: "DEFAULT_ADMIN_ROLE" | "EMERGENCY_ADMIN" | "agreementCount" | "agreements" | "balances" | "claim" | "consumeValue" | "consumeValuePreview" | "createAgreement" | "currentState" | "freeze" | "freezeAgreement" | "frozen" | "getMinWaitInSeconds" | "getRoleAdmin" | "getRoleMember" | "getRoleMemberCount" | "grantRole" | "hasRole" | "isAgreementMature" | "maxDelay" | "minDelay" | "renounceRole" | "rescueAgreement" | "revokeRole" | "setLimiter" | "setMaxDelay" | "setMinDelay" | "setRateLimiterConfig" | "setThreshold" | "supportsInterface" | "threshold" | "unfreeze" | "unfreezeAgreement" | "userAgreements"): FunctionFragment;
|
|
69
|
-
getEvent(nameOrSignatureOrTopic: "AgreementClaimed" | "AgreementCreated" | "AgreementFrozen" | "NewLimiter" | "NewMaxDelay" | "NewMinDelay" | "NewThreshold" | "RescueAgreement" | "RoleAdminChanged" | "RoleGranted" | "RoleRevoked" | "TimeLockFrozen"): EventFragment;
|
|
68
|
+
getFunction(nameOrSignature: "DEFAULT_ADMIN_ROLE" | "EMERGENCY_ADMIN" | "agreementCount" | "agreements" | "balances" | "claim" | "consumeValue" | "consumeValuePreview" | "createAgreement" | "currentState" | "freeze" | "freezeAgreement" | "frozen" | "getMinWaitInSeconds" | "getRoleAdmin" | "getRoleMember" | "getRoleMemberCount" | "grantRole" | "hasRole" | "initialize" | "isAgreementMature" | "maxDelay" | "minDelay" | "renounceRole" | "rescueAgreement" | "revokeRole" | "setLimiter" | "setMaxDelay" | "setMinDelay" | "setRateLimiterConfig" | "setThreshold" | "supportsInterface" | "threshold" | "unfreeze" | "unfreezeAgreement" | "userAgreements"): FunctionFragment;
|
|
69
|
+
getEvent(nameOrSignatureOrTopic: "AgreementClaimed" | "AgreementCreated" | "AgreementFrozen" | "Initialized" | "NewLimiter" | "NewMaxDelay" | "NewMinDelay" | "NewThreshold" | "RescueAgreement" | "RoleAdminChanged" | "RoleGranted" | "RoleRevoked" | "TimeLockFrozen"): EventFragment;
|
|
70
70
|
encodeFunctionData(functionFragment: "DEFAULT_ADMIN_ROLE", values?: undefined): string;
|
|
71
71
|
encodeFunctionData(functionFragment: "EMERGENCY_ADMIN", values?: undefined): string;
|
|
72
72
|
encodeFunctionData(functionFragment: "agreementCount", values?: undefined): string;
|
|
@@ -86,6 +86,7 @@ export interface TimelockInterface extends Interface {
|
|
|
86
86
|
encodeFunctionData(functionFragment: "getRoleMemberCount", values: [BytesLike]): string;
|
|
87
87
|
encodeFunctionData(functionFragment: "grantRole", values: [BytesLike, AddressLike]): string;
|
|
88
88
|
encodeFunctionData(functionFragment: "hasRole", values: [BytesLike, AddressLike]): string;
|
|
89
|
+
encodeFunctionData(functionFragment: "initialize", values: [AddressLike, AddressLike, BigNumberish, BigNumberish, BigNumberish]): string;
|
|
89
90
|
encodeFunctionData(functionFragment: "isAgreementMature", values: [BigNumberish]): string;
|
|
90
91
|
encodeFunctionData(functionFragment: "maxDelay", values?: undefined): string;
|
|
91
92
|
encodeFunctionData(functionFragment: "minDelay", values?: undefined): string;
|
|
@@ -121,6 +122,7 @@ export interface TimelockInterface extends Interface {
|
|
|
121
122
|
decodeFunctionResult(functionFragment: "getRoleMemberCount", data: BytesLike): Result;
|
|
122
123
|
decodeFunctionResult(functionFragment: "grantRole", data: BytesLike): Result;
|
|
123
124
|
decodeFunctionResult(functionFragment: "hasRole", data: BytesLike): Result;
|
|
125
|
+
decodeFunctionResult(functionFragment: "initialize", data: BytesLike): Result;
|
|
124
126
|
decodeFunctionResult(functionFragment: "isAgreementMature", data: BytesLike): Result;
|
|
125
127
|
decodeFunctionResult(functionFragment: "maxDelay", data: BytesLike): Result;
|
|
126
128
|
decodeFunctionResult(functionFragment: "minDelay", data: BytesLike): Result;
|
|
@@ -207,6 +209,17 @@ export declare namespace AgreementFrozenEvent {
|
|
|
207
209
|
type Log = TypedEventLog<Event>;
|
|
208
210
|
type LogDescription = TypedLogDescription<Event>;
|
|
209
211
|
}
|
|
212
|
+
export declare namespace InitializedEvent {
|
|
213
|
+
type InputTuple = [version: BigNumberish];
|
|
214
|
+
type OutputTuple = [version: bigint];
|
|
215
|
+
interface OutputObject {
|
|
216
|
+
version: bigint;
|
|
217
|
+
}
|
|
218
|
+
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
219
|
+
type Filter = TypedDeferredTopicFilter<Event>;
|
|
220
|
+
type Log = TypedEventLog<Event>;
|
|
221
|
+
type LogDescription = TypedLogDescription<Event>;
|
|
222
|
+
}
|
|
210
223
|
export declare namespace NewLimiterEvent {
|
|
211
224
|
type InputTuple = [
|
|
212
225
|
oldRate: BigNumberish,
|
|
@@ -454,6 +467,15 @@ export interface Timelock extends BaseContract {
|
|
|
454
467
|
], [
|
|
455
468
|
boolean
|
|
456
469
|
], "view">;
|
|
470
|
+
initialize: TypedContractMethod<[
|
|
471
|
+
_admin: AddressLike,
|
|
472
|
+
_comptroller: AddressLike,
|
|
473
|
+
rate: BigNumberish,
|
|
474
|
+
capacity: BigNumberish,
|
|
475
|
+
_threshold: BigNumberish
|
|
476
|
+
], [
|
|
477
|
+
void
|
|
478
|
+
], "nonpayable">;
|
|
457
479
|
isAgreementMature: TypedContractMethod<[
|
|
458
480
|
agreementId: BigNumberish
|
|
459
481
|
], [
|
|
@@ -588,6 +610,15 @@ export interface Timelock extends BaseContract {
|
|
|
588
610
|
], [
|
|
589
611
|
boolean
|
|
590
612
|
], "view">;
|
|
613
|
+
getFunction(nameOrSignature: "initialize"): TypedContractMethod<[
|
|
614
|
+
_admin: AddressLike,
|
|
615
|
+
_comptroller: AddressLike,
|
|
616
|
+
rate: BigNumberish,
|
|
617
|
+
capacity: BigNumberish,
|
|
618
|
+
_threshold: BigNumberish
|
|
619
|
+
], [
|
|
620
|
+
void
|
|
621
|
+
], "nonpayable">;
|
|
591
622
|
getFunction(nameOrSignature: "isAgreementMature"): TypedContractMethod<[agreementId: BigNumberish], [boolean], "view">;
|
|
592
623
|
getFunction(nameOrSignature: "maxDelay"): TypedContractMethod<[], [bigint], "view">;
|
|
593
624
|
getFunction(nameOrSignature: "minDelay"): TypedContractMethod<[], [bigint], "view">;
|
|
@@ -643,6 +674,7 @@ export interface Timelock extends BaseContract {
|
|
|
643
674
|
getEvent(key: "AgreementClaimed"): TypedContractEvent<AgreementClaimedEvent.InputTuple, AgreementClaimedEvent.OutputTuple, AgreementClaimedEvent.OutputObject>;
|
|
644
675
|
getEvent(key: "AgreementCreated"): TypedContractEvent<AgreementCreatedEvent.InputTuple, AgreementCreatedEvent.OutputTuple, AgreementCreatedEvent.OutputObject>;
|
|
645
676
|
getEvent(key: "AgreementFrozen"): TypedContractEvent<AgreementFrozenEvent.InputTuple, AgreementFrozenEvent.OutputTuple, AgreementFrozenEvent.OutputObject>;
|
|
677
|
+
getEvent(key: "Initialized"): TypedContractEvent<InitializedEvent.InputTuple, InitializedEvent.OutputTuple, InitializedEvent.OutputObject>;
|
|
646
678
|
getEvent(key: "NewLimiter"): TypedContractEvent<NewLimiterEvent.InputTuple, NewLimiterEvent.OutputTuple, NewLimiterEvent.OutputObject>;
|
|
647
679
|
getEvent(key: "NewMaxDelay"): TypedContractEvent<NewMaxDelayEvent.InputTuple, NewMaxDelayEvent.OutputTuple, NewMaxDelayEvent.OutputObject>;
|
|
648
680
|
getEvent(key: "NewMinDelay"): TypedContractEvent<NewMinDelayEvent.InputTuple, NewMinDelayEvent.OutputTuple, NewMinDelayEvent.OutputObject>;
|
|
@@ -659,6 +691,8 @@ export interface Timelock extends BaseContract {
|
|
|
659
691
|
AgreementCreated: TypedContractEvent<AgreementCreatedEvent.InputTuple, AgreementCreatedEvent.OutputTuple, AgreementCreatedEvent.OutputObject>;
|
|
660
692
|
"AgreementFrozen(uint256,bool)": TypedContractEvent<AgreementFrozenEvent.InputTuple, AgreementFrozenEvent.OutputTuple, AgreementFrozenEvent.OutputObject>;
|
|
661
693
|
AgreementFrozen: TypedContractEvent<AgreementFrozenEvent.InputTuple, AgreementFrozenEvent.OutputTuple, AgreementFrozenEvent.OutputObject>;
|
|
694
|
+
"Initialized(uint8)": TypedContractEvent<InitializedEvent.InputTuple, InitializedEvent.OutputTuple, InitializedEvent.OutputObject>;
|
|
695
|
+
Initialized: TypedContractEvent<InitializedEvent.InputTuple, InitializedEvent.OutputTuple, InitializedEvent.OutputObject>;
|
|
662
696
|
"NewLimiter(uint256,uint256,uint256,uint256)": TypedContractEvent<NewLimiterEvent.InputTuple, NewLimiterEvent.OutputTuple, NewLimiterEvent.OutputObject>;
|
|
663
697
|
NewLimiter: TypedContractEvent<NewLimiterEvent.InputTuple, NewLimiterEvent.OutputTuple, NewLimiterEvent.OutputObject>;
|
|
664
698
|
"NewMaxDelay(uint48,uint48)": TypedContractEvent<NewMaxDelayEvent.InputTuple, NewMaxDelayEvent.OutputTuple, NewMaxDelayEvent.OutputObject>;
|
|
@@ -23,11 +23,12 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
23
23
|
return result;
|
|
24
24
|
};
|
|
25
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
-
exports.utils = exports.proxy = exports.access = void 0;
|
|
26
|
+
exports.utils = exports.security = exports.proxy = exports.access = void 0;
|
|
27
27
|
/* Autogenerated file. Do not edit manually. */
|
|
28
28
|
/* tslint:disable */
|
|
29
29
|
/* eslint-disable */
|
|
30
30
|
exports.access = __importStar(require("./access"));
|
|
31
31
|
exports.proxy = __importStar(require("./proxy"));
|
|
32
|
+
exports.security = __importStar(require("./security"));
|
|
32
33
|
exports.utils = __importStar(require("./utils"));
|
|
33
34
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/typechain/factories/@openzeppelin/contracts-upgradeable/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+CAA+C;AAC/C,oBAAoB;AACpB,oBAAoB;AACpB,mDAAmC;AACnC,iDAAiC;AACjC,iDAAiC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/typechain/factories/@openzeppelin/contracts-upgradeable/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+CAA+C;AAC/C,oBAAoB;AACpB,oBAAoB;AACpB,mDAAmC;AACnC,iDAAiC;AACjC,uDAAuC;AACvC,iDAAiC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { type ContractRunner } from "ethers";
|
|
2
|
+
import type { ReentrancyGuardUpgradeable, ReentrancyGuardUpgradeableInterface } from "../../../../@openzeppelin/contracts-upgradeable/security/ReentrancyGuardUpgradeable";
|
|
3
|
+
export declare class ReentrancyGuardUpgradeable__factory {
|
|
4
|
+
static readonly abi: readonly [{
|
|
5
|
+
readonly anonymous: false;
|
|
6
|
+
readonly inputs: readonly [{
|
|
7
|
+
readonly indexed: false;
|
|
8
|
+
readonly internalType: "uint8";
|
|
9
|
+
readonly name: "version";
|
|
10
|
+
readonly type: "uint8";
|
|
11
|
+
}];
|
|
12
|
+
readonly name: "Initialized";
|
|
13
|
+
readonly type: "event";
|
|
14
|
+
}];
|
|
15
|
+
static createInterface(): ReentrancyGuardUpgradeableInterface;
|
|
16
|
+
static connect(address: string, runner?: ContractRunner | null): ReentrancyGuardUpgradeable;
|
|
17
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* Autogenerated file. Do not edit manually. */
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
/* eslint-disable */
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.ReentrancyGuardUpgradeable__factory = void 0;
|
|
7
|
+
const ethers_1 = require("ethers");
|
|
8
|
+
const _abi = [
|
|
9
|
+
{
|
|
10
|
+
anonymous: false,
|
|
11
|
+
inputs: [
|
|
12
|
+
{
|
|
13
|
+
indexed: false,
|
|
14
|
+
internalType: "uint8",
|
|
15
|
+
name: "version",
|
|
16
|
+
type: "uint8",
|
|
17
|
+
},
|
|
18
|
+
],
|
|
19
|
+
name: "Initialized",
|
|
20
|
+
type: "event",
|
|
21
|
+
},
|
|
22
|
+
];
|
|
23
|
+
class ReentrancyGuardUpgradeable__factory {
|
|
24
|
+
static createInterface() {
|
|
25
|
+
return new ethers_1.Interface(_abi);
|
|
26
|
+
}
|
|
27
|
+
static connect(address, runner) {
|
|
28
|
+
return new ethers_1.Contract(address, _abi, runner);
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
exports.ReentrancyGuardUpgradeable__factory = ReentrancyGuardUpgradeable__factory;
|
|
32
|
+
ReentrancyGuardUpgradeable__factory.abi = _abi;
|
|
33
|
+
//# sourceMappingURL=ReentrancyGuardUpgradeable__factory.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ReentrancyGuardUpgradeable__factory.js","sourceRoot":"","sources":["../../../../../../../src/typechain/factories/@openzeppelin/contracts-upgradeable/security/ReentrancyGuardUpgradeable__factory.ts"],"names":[],"mappings":";AAAA,+CAA+C;AAC/C,oBAAoB;AACpB,oBAAoB;;;AAEpB,mCAAkE;AAMlE,MAAM,IAAI,GAAG;IACX;QACE,SAAS,EAAE,KAAK;QAChB,MAAM,EAAE;YACN;gBACE,OAAO,EAAE,KAAK;gBACd,YAAY,EAAE,OAAO;gBACrB,IAAI,EAAE,SAAS;gBACf,IAAI,EAAE,OAAO;aACd;SACF;QACD,IAAI,EAAE,aAAa;QACnB,IAAI,EAAE,OAAO;KACd;CACO,CAAC;AAEX,MAAa,mCAAmC;IAE9C,MAAM,CAAC,eAAe;QACpB,OAAO,IAAI,kBAAS,CAAC,IAAI,CAAwC,CAAC;IACpE,CAAC;IACD,MAAM,CAAC,OAAO,CACZ,OAAe,EACf,MAA8B;QAE9B,OAAO,IAAI,iBAAQ,CACjB,OAAO,EACP,IAAI,EACJ,MAAM,CACkC,CAAC;IAC7C,CAAC;;AAdH,kFAeC;AAdiB,uCAAG,GAAG,IAAI,CAAC"}
|
package/dist/nodejs/typechain/factories/@openzeppelin/contracts-upgradeable/security/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { ReentrancyGuardUpgradeable__factory } from "./ReentrancyGuardUpgradeable__factory";
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ReentrancyGuardUpgradeable__factory = void 0;
|
|
4
|
+
/* Autogenerated file. Do not edit manually. */
|
|
5
|
+
/* tslint:disable */
|
|
6
|
+
/* eslint-disable */
|
|
7
|
+
var ReentrancyGuardUpgradeable__factory_1 = require("./ReentrancyGuardUpgradeable__factory");
|
|
8
|
+
Object.defineProperty(exports, "ReentrancyGuardUpgradeable__factory", { enumerable: true, get: function () { return ReentrancyGuardUpgradeable__factory_1.ReentrancyGuardUpgradeable__factory; } });
|
|
9
|
+
//# sourceMappingURL=index.js.map
|
package/dist/nodejs/typechain/factories/@openzeppelin/contracts-upgradeable/security/index.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/typechain/factories/@openzeppelin/contracts-upgradeable/security/index.ts"],"names":[],"mappings":";;;AAAA,+CAA+C;AAC/C,oBAAoB;AACpB,oBAAoB;AACpB,6FAA4F;AAAnF,0JAAA,mCAAmC,OAAA"}
|