@meterio/sumer-js 0.2.130 → 0.2.131
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 +10 -10
- package/dist/nodejs/abi.d.ts +180 -0
- package/dist/nodejs/abi.js +3155 -50
- package/dist/nodejs/abi.js.map +1 -1
- package/dist/nodejs/constants/arbitrum.js +0 -11
- package/dist/nodejs/constants/arbitrum.js.map +1 -1
- package/dist/nodejs/constants/b2main.js +0 -11
- package/dist/nodejs/constants/b2main.js.map +1 -1
- package/dist/nodejs/constants/basemain.js +0 -11
- package/dist/nodejs/constants/basemain.js.map +1 -1
- package/dist/nodejs/constants/basetest.js +0 -11
- package/dist/nodejs/constants/basetest.js.map +1 -1
- package/dist/nodejs/constants/berabartio.js +0 -11
- package/dist/nodejs/constants/berabartio.js.map +1 -1
- package/dist/nodejs/constants/beramain.js +0 -11
- package/dist/nodejs/constants/beramain.js.map +1 -1
- package/dist/nodejs/constants/bsc.js +0 -11
- package/dist/nodejs/constants/bsc.js.map +1 -1
- package/dist/nodejs/constants/core.js +0 -11
- package/dist/nodejs/constants/core.js.map +1 -1
- package/dist/nodejs/constants/ethereum.js +0 -11
- package/dist/nodejs/constants/ethereum.js.map +1 -1
- package/dist/nodejs/constants/hemi.js +0 -11
- package/dist/nodejs/constants/hemi.js.map +1 -1
- package/dist/nodejs/constants/metertest.js +0 -11
- package/dist/nodejs/constants/metertest.js.map +1 -1
- package/dist/nodejs/constants/monadtest.d.ts +3 -0
- package/dist/nodejs/constants/monadtest.js +17 -13
- package/dist/nodejs/constants/monadtest.js.map +1 -1
- package/dist/nodejs/constants/sepolia.d.ts +17 -2
- package/dist/nodejs/constants/sepolia.js +35 -31
- package/dist/nodejs/constants/sepolia.js.map +1 -1
- package/dist/nodejs/constants/zklink.js +0 -11
- package/dist/nodejs/constants/zklink.js.map +1 -1
- package/dist/nodejs/errorABIs.js +522 -0
- package/dist/nodejs/errorABIs.js.map +1 -1
- package/dist/nodejs/index.d.ts +180 -0
- package/dist/nodejs/typechain/@openzeppelin/contracts/proxy/beacon/index.d.ts +2 -0
- package/dist/nodejs/typechain/contracts/CToken/CAavePool.sol/CAavePool.d.ts +1060 -0
- package/dist/nodejs/typechain/contracts/CToken/CAavePool.sol/CAavePool.js +3 -0
- package/dist/nodejs/typechain/contracts/CToken/CAavePool.sol/CAavePool.js.map +1 -0
- package/dist/nodejs/typechain/contracts/CToken/CAavePool.sol/IAToken.d.ts +37 -0
- package/dist/nodejs/typechain/contracts/CToken/CAavePool.sol/IAToken.js +3 -0
- package/dist/nodejs/typechain/contracts/CToken/CAavePool.sol/IAToken.js.map +1 -0
- package/dist/nodejs/typechain/contracts/CToken/CAavePool.sol/IAaveV3Pool.d.ts +133 -0
- package/dist/nodejs/typechain/contracts/CToken/CAavePool.sol/IAaveV3Pool.js +3 -0
- package/dist/nodejs/typechain/contracts/CToken/CAavePool.sol/IAaveV3Pool.js.map +1 -0
- package/dist/nodejs/typechain/contracts/CToken/CAavePool.sol/index.d.ts +3 -0
- package/dist/nodejs/typechain/contracts/CToken/CAavePool.sol/index.js +3 -0
- package/dist/nodejs/typechain/contracts/CToken/CAavePool.sol/index.js.map +1 -0
- package/dist/nodejs/typechain/contracts/CToken/CErc20.d.ts +17 -1
- package/dist/nodejs/typechain/contracts/CToken/CEther.d.ts +17 -1
- package/dist/nodejs/typechain/contracts/CToken/CToken.d.ts +17 -1
- package/dist/nodejs/typechain/contracts/CToken/CTokenStorage.d.ts +5 -1
- package/dist/nodejs/typechain/contracts/CToken/SuErc20.d.ts +17 -1
- package/dist/nodejs/typechain/contracts/CToken/index.d.ts +2 -0
- package/dist/nodejs/typechain/contracts/Infrared/CInfraredVault.sol/CInfraredVault.d.ts +17 -1
- package/dist/nodejs/typechain/contracts/InterestRateModel/JumpRateModelForAave.sol/IAaveV3Pool.d.ts +133 -0
- package/dist/nodejs/typechain/contracts/InterestRateModel/JumpRateModelForAave.sol/IAaveV3Pool.js +3 -0
- package/dist/nodejs/typechain/contracts/InterestRateModel/JumpRateModelForAave.sol/IAaveV3Pool.js.map +1 -0
- package/dist/nodejs/typechain/contracts/InterestRateModel/JumpRateModelForAave.sol/JumpRateModelForAave.d.ts +196 -0
- package/dist/nodejs/typechain/contracts/InterestRateModel/JumpRateModelForAave.sol/JumpRateModelForAave.js +3 -0
- package/dist/nodejs/typechain/contracts/InterestRateModel/JumpRateModelForAave.sol/JumpRateModelForAave.js.map +1 -0
- package/dist/nodejs/typechain/contracts/InterestRateModel/JumpRateModelForAave.sol/index.d.ts +2 -0
- package/dist/nodejs/typechain/contracts/InterestRateModel/JumpRateModelForAave.sol/index.js +3 -0
- package/dist/nodejs/typechain/contracts/InterestRateModel/JumpRateModelForAave.sol/index.js.map +1 -0
- package/dist/nodejs/typechain/contracts/InterestRateModel/index.d.ts +2 -0
- package/dist/nodejs/typechain/contracts/Oracle/aprMONAdapter.sol/AprMONAdapter.d.ts +25 -0
- package/dist/nodejs/typechain/contracts/Oracle/aprMONAdapter.sol/AprMONAdapter.js +3 -0
- package/dist/nodejs/typechain/contracts/Oracle/aprMONAdapter.sol/AprMONAdapter.js.map +1 -0
- package/dist/nodejs/typechain/contracts/Oracle/aprMONAdapter.sol/IAprMon.d.ts +37 -0
- package/dist/nodejs/typechain/contracts/Oracle/aprMONAdapter.sol/IAprMon.js +3 -0
- package/dist/nodejs/typechain/contracts/Oracle/aprMONAdapter.sol/IAprMon.js.map +1 -0
- package/dist/nodejs/typechain/contracts/Oracle/aprMONAdapter.sol/index.d.ts +2 -0
- package/dist/nodejs/typechain/contracts/Oracle/aprMONAdapter.sol/index.js +3 -0
- package/dist/nodejs/typechain/contracts/Oracle/aprMONAdapter.sol/index.js.map +1 -0
- package/dist/nodejs/typechain/contracts/Oracle/index.d.ts +2 -0
- package/dist/nodejs/typechain/factories/@openzeppelin/contracts/proxy/beacon/index.d.ts +2 -0
- package/dist/nodejs/typechain/factories/@openzeppelin/contracts/proxy/beacon/index.js +5 -1
- package/dist/nodejs/typechain/factories/@openzeppelin/contracts/proxy/beacon/index.js.map +1 -1
- package/dist/nodejs/typechain/factories/contracts/CToken/CAavePool.sol/CAavePool__factory.d.ts +1733 -0
- package/dist/nodejs/typechain/factories/contracts/CToken/CAavePool.sol/CAavePool__factory.js +2223 -0
- package/dist/nodejs/typechain/factories/contracts/CToken/CAavePool.sol/CAavePool__factory.js.map +1 -0
- package/dist/nodejs/typechain/factories/contracts/CToken/CAavePool.sol/IAToken__factory.d.ts +55 -0
- package/dist/nodejs/typechain/factories/contracts/CToken/CAavePool.sol/IAToken__factory.js +84 -0
- package/dist/nodejs/typechain/factories/contracts/CToken/CAavePool.sol/IAToken__factory.js.map +1 -0
- package/dist/nodejs/typechain/factories/contracts/CToken/CAavePool.sol/IAaveV3Pool__factory.d.ts +145 -0
- package/dist/nodejs/typechain/factories/contracts/CToken/CAavePool.sol/IAaveV3Pool__factory.js +199 -0
- package/dist/nodejs/typechain/factories/contracts/CToken/CAavePool.sol/IAaveV3Pool__factory.js.map +1 -0
- package/dist/nodejs/typechain/factories/contracts/CToken/CAavePool.sol/index.d.ts +3 -0
- package/dist/nodejs/typechain/factories/contracts/CToken/CAavePool.sol/index.js +13 -0
- package/dist/nodejs/typechain/factories/contracts/CToken/CAavePool.sol/index.js.map +1 -0
- package/dist/nodejs/typechain/factories/contracts/CToken/CErc20__factory.d.ts +35 -1
- package/dist/nodejs/typechain/factories/contracts/CToken/CErc20__factory.js +46 -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 +35 -1
- package/dist/nodejs/typechain/factories/contracts/CToken/CEther__factory.js +46 -1
- package/dist/nodejs/typechain/factories/contracts/CToken/CEther__factory.js.map +1 -1
- package/dist/nodejs/typechain/factories/contracts/CToken/CTokenStorage__factory.d.ts +14 -0
- package/dist/nodejs/typechain/factories/contracts/CToken/CTokenStorage__factory.js +19 -0
- package/dist/nodejs/typechain/factories/contracts/CToken/CTokenStorage__factory.js.map +1 -1
- package/dist/nodejs/typechain/factories/contracts/CToken/CToken__factory.d.ts +34 -0
- package/dist/nodejs/typechain/factories/contracts/CToken/CToken__factory.js +45 -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 +35 -1
- package/dist/nodejs/typechain/factories/contracts/CToken/SuErc20__factory.js +46 -1
- package/dist/nodejs/typechain/factories/contracts/CToken/SuErc20__factory.js.map +1 -1
- package/dist/nodejs/typechain/factories/contracts/CToken/index.d.ts +1 -0
- package/dist/nodejs/typechain/factories/contracts/CToken/index.js +25 -1
- package/dist/nodejs/typechain/factories/contracts/CToken/index.js.map +1 -1
- package/dist/nodejs/typechain/factories/contracts/Infrared/CInfraredVault.sol/CInfraredVault__factory.d.ts +35 -1
- package/dist/nodejs/typechain/factories/contracts/Infrared/CInfraredVault.sol/CInfraredVault__factory.js +46 -1
- package/dist/nodejs/typechain/factories/contracts/Infrared/CInfraredVault.sol/CInfraredVault__factory.js.map +1 -1
- package/dist/nodejs/typechain/factories/contracts/InterestRateModel/JumpRateModelForAave.sol/IAaveV3Pool__factory.d.ts +145 -0
- package/dist/nodejs/typechain/factories/contracts/InterestRateModel/JumpRateModelForAave.sol/IAaveV3Pool__factory.js +199 -0
- package/dist/nodejs/typechain/factories/contracts/InterestRateModel/JumpRateModelForAave.sol/IAaveV3Pool__factory.js.map +1 -0
- package/dist/nodejs/typechain/factories/contracts/InterestRateModel/JumpRateModelForAave.sol/JumpRateModelForAave__factory.d.ts +299 -0
- package/dist/nodejs/typechain/factories/contracts/InterestRateModel/JumpRateModelForAave.sol/JumpRateModelForAave__factory.js +396 -0
- package/dist/nodejs/typechain/factories/contracts/InterestRateModel/JumpRateModelForAave.sol/JumpRateModelForAave__factory.js.map +1 -0
- package/dist/nodejs/typechain/factories/contracts/InterestRateModel/JumpRateModelForAave.sol/index.d.ts +2 -0
- package/dist/nodejs/typechain/factories/contracts/InterestRateModel/JumpRateModelForAave.sol/index.js +11 -0
- package/dist/nodejs/typechain/factories/contracts/InterestRateModel/JumpRateModelForAave.sol/index.js.map +1 -0
- package/dist/nodejs/typechain/factories/contracts/InterestRateModel/index.d.ts +1 -0
- package/dist/nodejs/typechain/factories/contracts/InterestRateModel/index.js +25 -1
- package/dist/nodejs/typechain/factories/contracts/InterestRateModel/index.js.map +1 -1
- package/dist/nodejs/typechain/factories/contracts/Oracle/aprMONAdapter.sol/AprMONAdapter__factory.d.ts +44 -0
- package/dist/nodejs/typechain/factories/contracts/Oracle/aprMONAdapter.sol/AprMONAdapter__factory.js +69 -0
- package/dist/nodejs/typechain/factories/contracts/Oracle/aprMONAdapter.sol/AprMONAdapter__factory.js.map +1 -0
- package/dist/nodejs/typechain/factories/contracts/Oracle/aprMONAdapter.sol/IAprMon__factory.d.ts +35 -0
- package/dist/nodejs/typechain/factories/contracts/Oracle/aprMONAdapter.sol/IAprMon__factory.js +58 -0
- package/dist/nodejs/typechain/factories/contracts/Oracle/aprMONAdapter.sol/IAprMon__factory.js.map +1 -0
- package/dist/nodejs/typechain/factories/contracts/Oracle/aprMONAdapter.sol/index.d.ts +2 -0
- package/dist/nodejs/typechain/factories/contracts/Oracle/aprMONAdapter.sol/index.js +11 -0
- package/dist/nodejs/typechain/factories/contracts/Oracle/aprMONAdapter.sol/index.js.map +1 -0
- package/dist/nodejs/typechain/factories/contracts/Oracle/index.d.ts +1 -0
- package/dist/nodejs/typechain/factories/contracts/Oracle/index.js +2 -1
- package/dist/nodejs/typechain/factories/contracts/Oracle/index.js.map +1 -1
- package/dist/nodejs/typechain/hardhat.d.ts +162 -0
- package/dist/nodejs/typechain/index.d.ts +16 -0
- package/dist/nodejs/typechain/index.js +19 -3
- package/dist/nodejs/typechain/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CAavePool.js","sourceRoot":"","sources":["../../../../../../src/typechain/contracts/CToken/CAavePool.sol/CAavePool.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import type { BaseContract, BytesLike, FunctionFragment, Result, Interface, AddressLike, ContractRunner, ContractMethod, Listener } from "ethers";
|
|
2
|
+
import type { TypedContractEvent, TypedDeferredTopicFilter, TypedEventLog, TypedListener, TypedContractMethod } from "../../../common";
|
|
3
|
+
export interface IATokenInterface extends Interface {
|
|
4
|
+
getFunction(nameOrSignature: "balanceOf" | "scaledBalanceOf" | "scaledTotalSupply" | "totalSupply"): FunctionFragment;
|
|
5
|
+
encodeFunctionData(functionFragment: "balanceOf", values: [AddressLike]): string;
|
|
6
|
+
encodeFunctionData(functionFragment: "scaledBalanceOf", values: [AddressLike]): string;
|
|
7
|
+
encodeFunctionData(functionFragment: "scaledTotalSupply", values?: undefined): string;
|
|
8
|
+
encodeFunctionData(functionFragment: "totalSupply", values?: undefined): string;
|
|
9
|
+
decodeFunctionResult(functionFragment: "balanceOf", data: BytesLike): Result;
|
|
10
|
+
decodeFunctionResult(functionFragment: "scaledBalanceOf", data: BytesLike): Result;
|
|
11
|
+
decodeFunctionResult(functionFragment: "scaledTotalSupply", data: BytesLike): Result;
|
|
12
|
+
decodeFunctionResult(functionFragment: "totalSupply", data: BytesLike): Result;
|
|
13
|
+
}
|
|
14
|
+
export interface IAToken extends BaseContract {
|
|
15
|
+
connect(runner?: ContractRunner | null): IAToken;
|
|
16
|
+
waitForDeployment(): Promise<this>;
|
|
17
|
+
interface: IATokenInterface;
|
|
18
|
+
queryFilter<TCEvent extends TypedContractEvent>(event: TCEvent, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise<Array<TypedEventLog<TCEvent>>>;
|
|
19
|
+
queryFilter<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise<Array<TypedEventLog<TCEvent>>>;
|
|
20
|
+
on<TCEvent extends TypedContractEvent>(event: TCEvent, listener: TypedListener<TCEvent>): Promise<this>;
|
|
21
|
+
on<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, listener: TypedListener<TCEvent>): Promise<this>;
|
|
22
|
+
once<TCEvent extends TypedContractEvent>(event: TCEvent, listener: TypedListener<TCEvent>): Promise<this>;
|
|
23
|
+
once<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, listener: TypedListener<TCEvent>): Promise<this>;
|
|
24
|
+
listeners<TCEvent extends TypedContractEvent>(event: TCEvent): Promise<Array<TypedListener<TCEvent>>>;
|
|
25
|
+
listeners(eventName?: string): Promise<Array<Listener>>;
|
|
26
|
+
removeAllListeners<TCEvent extends TypedContractEvent>(event?: TCEvent): Promise<this>;
|
|
27
|
+
balanceOf: TypedContractMethod<[user: AddressLike], [bigint], "view">;
|
|
28
|
+
scaledBalanceOf: TypedContractMethod<[user: AddressLike], [bigint], "view">;
|
|
29
|
+
scaledTotalSupply: TypedContractMethod<[], [bigint], "view">;
|
|
30
|
+
totalSupply: TypedContractMethod<[], [bigint], "view">;
|
|
31
|
+
getFunction<T extends ContractMethod = ContractMethod>(key: string | FunctionFragment): T;
|
|
32
|
+
getFunction(nameOrSignature: "balanceOf"): TypedContractMethod<[user: AddressLike], [bigint], "view">;
|
|
33
|
+
getFunction(nameOrSignature: "scaledBalanceOf"): TypedContractMethod<[user: AddressLike], [bigint], "view">;
|
|
34
|
+
getFunction(nameOrSignature: "scaledTotalSupply"): TypedContractMethod<[], [bigint], "view">;
|
|
35
|
+
getFunction(nameOrSignature: "totalSupply"): TypedContractMethod<[], [bigint], "view">;
|
|
36
|
+
filters: {};
|
|
37
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IAToken.js","sourceRoot":"","sources":["../../../../../../src/typechain/contracts/CToken/CAavePool.sol/IAToken.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
import type { BaseContract, BigNumberish, BytesLike, FunctionFragment, Result, Interface, AddressLike, ContractRunner, ContractMethod, Listener } from "ethers";
|
|
2
|
+
import type { TypedContractEvent, TypedDeferredTopicFilter, TypedEventLog, TypedListener, TypedContractMethod } from "../../../common";
|
|
3
|
+
export declare namespace IAaveV3Pool {
|
|
4
|
+
type ReserveConfigurationMapStruct = {
|
|
5
|
+
data: BigNumberish;
|
|
6
|
+
};
|
|
7
|
+
type ReserveConfigurationMapStructOutput = [data: bigint] & {
|
|
8
|
+
data: bigint;
|
|
9
|
+
};
|
|
10
|
+
type ReserveDataStruct = {
|
|
11
|
+
configuration: IAaveV3Pool.ReserveConfigurationMapStruct;
|
|
12
|
+
liquidityIndex: BigNumberish;
|
|
13
|
+
currentLiquidityRate: BigNumberish;
|
|
14
|
+
variableBorrowIndex: BigNumberish;
|
|
15
|
+
currentVariableBorrowRate: BigNumberish;
|
|
16
|
+
currentStableBorrowRate: BigNumberish;
|
|
17
|
+
lastUpdateTimestamp: BigNumberish;
|
|
18
|
+
id: BigNumberish;
|
|
19
|
+
aTokenAddress: AddressLike;
|
|
20
|
+
stableDebtTokenAddress: AddressLike;
|
|
21
|
+
variableDebtTokenAddress: AddressLike;
|
|
22
|
+
interestRateStrategyAddress: AddressLike;
|
|
23
|
+
accruedToTreasury: BigNumberish;
|
|
24
|
+
unbacked: BigNumberish;
|
|
25
|
+
isolationModeTotalDebt: BigNumberish;
|
|
26
|
+
};
|
|
27
|
+
type ReserveDataStructOutput = [
|
|
28
|
+
configuration: IAaveV3Pool.ReserveConfigurationMapStructOutput,
|
|
29
|
+
liquidityIndex: bigint,
|
|
30
|
+
currentLiquidityRate: bigint,
|
|
31
|
+
variableBorrowIndex: bigint,
|
|
32
|
+
currentVariableBorrowRate: bigint,
|
|
33
|
+
currentStableBorrowRate: bigint,
|
|
34
|
+
lastUpdateTimestamp: bigint,
|
|
35
|
+
id: bigint,
|
|
36
|
+
aTokenAddress: string,
|
|
37
|
+
stableDebtTokenAddress: string,
|
|
38
|
+
variableDebtTokenAddress: string,
|
|
39
|
+
interestRateStrategyAddress: string,
|
|
40
|
+
accruedToTreasury: bigint,
|
|
41
|
+
unbacked: bigint,
|
|
42
|
+
isolationModeTotalDebt: bigint
|
|
43
|
+
] & {
|
|
44
|
+
configuration: IAaveV3Pool.ReserveConfigurationMapStructOutput;
|
|
45
|
+
liquidityIndex: bigint;
|
|
46
|
+
currentLiquidityRate: bigint;
|
|
47
|
+
variableBorrowIndex: bigint;
|
|
48
|
+
currentVariableBorrowRate: bigint;
|
|
49
|
+
currentStableBorrowRate: bigint;
|
|
50
|
+
lastUpdateTimestamp: bigint;
|
|
51
|
+
id: bigint;
|
|
52
|
+
aTokenAddress: string;
|
|
53
|
+
stableDebtTokenAddress: string;
|
|
54
|
+
variableDebtTokenAddress: string;
|
|
55
|
+
interestRateStrategyAddress: string;
|
|
56
|
+
accruedToTreasury: bigint;
|
|
57
|
+
unbacked: bigint;
|
|
58
|
+
isolationModeTotalDebt: bigint;
|
|
59
|
+
};
|
|
60
|
+
}
|
|
61
|
+
export interface IAaveV3PoolInterface extends Interface {
|
|
62
|
+
getFunction(nameOrSignature: "getReserveData" | "getReserveNormalizedIncome" | "supply" | "withdraw"): FunctionFragment;
|
|
63
|
+
encodeFunctionData(functionFragment: "getReserveData", values: [AddressLike]): string;
|
|
64
|
+
encodeFunctionData(functionFragment: "getReserveNormalizedIncome", values: [AddressLike]): string;
|
|
65
|
+
encodeFunctionData(functionFragment: "supply", values: [AddressLike, BigNumberish, AddressLike, BigNumberish]): string;
|
|
66
|
+
encodeFunctionData(functionFragment: "withdraw", values: [AddressLike, BigNumberish, AddressLike]): string;
|
|
67
|
+
decodeFunctionResult(functionFragment: "getReserveData", data: BytesLike): Result;
|
|
68
|
+
decodeFunctionResult(functionFragment: "getReserveNormalizedIncome", data: BytesLike): Result;
|
|
69
|
+
decodeFunctionResult(functionFragment: "supply", data: BytesLike): Result;
|
|
70
|
+
decodeFunctionResult(functionFragment: "withdraw", data: BytesLike): Result;
|
|
71
|
+
}
|
|
72
|
+
export interface IAaveV3Pool extends BaseContract {
|
|
73
|
+
connect(runner?: ContractRunner | null): IAaveV3Pool;
|
|
74
|
+
waitForDeployment(): Promise<this>;
|
|
75
|
+
interface: IAaveV3PoolInterface;
|
|
76
|
+
queryFilter<TCEvent extends TypedContractEvent>(event: TCEvent, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise<Array<TypedEventLog<TCEvent>>>;
|
|
77
|
+
queryFilter<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise<Array<TypedEventLog<TCEvent>>>;
|
|
78
|
+
on<TCEvent extends TypedContractEvent>(event: TCEvent, listener: TypedListener<TCEvent>): Promise<this>;
|
|
79
|
+
on<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, listener: TypedListener<TCEvent>): Promise<this>;
|
|
80
|
+
once<TCEvent extends TypedContractEvent>(event: TCEvent, listener: TypedListener<TCEvent>): Promise<this>;
|
|
81
|
+
once<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, listener: TypedListener<TCEvent>): Promise<this>;
|
|
82
|
+
listeners<TCEvent extends TypedContractEvent>(event: TCEvent): Promise<Array<TypedListener<TCEvent>>>;
|
|
83
|
+
listeners(eventName?: string): Promise<Array<Listener>>;
|
|
84
|
+
removeAllListeners<TCEvent extends TypedContractEvent>(event?: TCEvent): Promise<this>;
|
|
85
|
+
getReserveData: TypedContractMethod<[
|
|
86
|
+
asset: AddressLike
|
|
87
|
+
], [
|
|
88
|
+
IAaveV3Pool.ReserveDataStructOutput
|
|
89
|
+
], "view">;
|
|
90
|
+
getReserveNormalizedIncome: TypedContractMethod<[
|
|
91
|
+
underlyingAsset: AddressLike
|
|
92
|
+
], [
|
|
93
|
+
bigint
|
|
94
|
+
], "view">;
|
|
95
|
+
supply: TypedContractMethod<[
|
|
96
|
+
asset: AddressLike,
|
|
97
|
+
amount: BigNumberish,
|
|
98
|
+
onBehalfOf: AddressLike,
|
|
99
|
+
referralCode: BigNumberish
|
|
100
|
+
], [
|
|
101
|
+
void
|
|
102
|
+
], "nonpayable">;
|
|
103
|
+
withdraw: TypedContractMethod<[
|
|
104
|
+
asset: AddressLike,
|
|
105
|
+
amount: BigNumberish,
|
|
106
|
+
to: AddressLike
|
|
107
|
+
], [
|
|
108
|
+
bigint
|
|
109
|
+
], "nonpayable">;
|
|
110
|
+
getFunction<T extends ContractMethod = ContractMethod>(key: string | FunctionFragment): T;
|
|
111
|
+
getFunction(nameOrSignature: "getReserveData"): TypedContractMethod<[
|
|
112
|
+
asset: AddressLike
|
|
113
|
+
], [
|
|
114
|
+
IAaveV3Pool.ReserveDataStructOutput
|
|
115
|
+
], "view">;
|
|
116
|
+
getFunction(nameOrSignature: "getReserveNormalizedIncome"): TypedContractMethod<[underlyingAsset: AddressLike], [bigint], "view">;
|
|
117
|
+
getFunction(nameOrSignature: "supply"): TypedContractMethod<[
|
|
118
|
+
asset: AddressLike,
|
|
119
|
+
amount: BigNumberish,
|
|
120
|
+
onBehalfOf: AddressLike,
|
|
121
|
+
referralCode: BigNumberish
|
|
122
|
+
], [
|
|
123
|
+
void
|
|
124
|
+
], "nonpayable">;
|
|
125
|
+
getFunction(nameOrSignature: "withdraw"): TypedContractMethod<[
|
|
126
|
+
asset: AddressLike,
|
|
127
|
+
amount: BigNumberish,
|
|
128
|
+
to: AddressLike
|
|
129
|
+
], [
|
|
130
|
+
bigint
|
|
131
|
+
], "nonpayable">;
|
|
132
|
+
filters: {};
|
|
133
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IAaveV3Pool.js","sourceRoot":"","sources":["../../../../../../src/typechain/contracts/CToken/CAavePool.sol/IAaveV3Pool.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/typechain/contracts/CToken/CAavePool.sol/index.ts"],"names":[],"mappings":""}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { BaseContract, BigNumberish, BytesLike, FunctionFragment, Result, Interface, EventFragment, AddressLike, ContractRunner, ContractMethod, Listener } from "ethers";
|
|
2
2
|
import type { TypedContractEvent, TypedDeferredTopicFilter, TypedEventLog, TypedLogDescription, TypedListener, TypedContractMethod } from "../../common";
|
|
3
3
|
export interface CErc20Interface extends Interface {
|
|
4
|
-
getFunction(nameOrSignature: "_acceptAdmin" | "_addReserves" | "_reduceReserves" | "_setComptroller" | "_setDiscountRate" | "_setInterestRateModel" | "_setPendingAdmin" | "_setReserveFactor" | "_syncUnderlyingBalance" | "accrualBlockTimestamp" | "accrueInterest" | "admin" | "allowance" | "approve" | "balanceOf" | "balanceOfUnderlying" | "borrow" | "borrowAndDepositBack" | "borrowBalanceCurrent" | "borrowBalanceStored" | "borrowIndex" | "borrowRatePerBlock" | "comptroller" | "decimals" | "discountRateMantissa" | "exchangeRateCurrent" | "exchangeRateStored" | "getAccountSnapshot" | "getCash" | "initialize" | "interestRateModel" | "isCEther" | "isCEtherDeprecated" | "isCToken" | "isCTokenDeprecated" | "liquidateBorrow" | "liquidateCalculateSeizeTokens" | "mint" | "mintWithPermit" | "name" | "pendingAdmin" | "percentScale" | "protocolSeizeShareMantissa" | "redeem" | "redeemUnderlying" | "repayBorrow" | "repayBorrowBehalf" | "repayBorrowWithPermit" | "reserveFactorMantissa" | "seize" | "supplyRatePerBlock" | "sweepToken" | "symbol" | "tokenType" | "totalBorrows" | "totalBorrowsCurrent" | "totalReserves" | "totalSupply" | "transfer" | "transferFrom" | "underlying" | "underlyingBalance"): FunctionFragment;
|
|
4
|
+
getFunction(nameOrSignature: "_acceptAdmin" | "_addReserves" | "_reduceReserves" | "_setComptroller" | "_setDiscountRate" | "_setInterestRateModel" | "_setPendingAdmin" | "_setReserveFactor" | "_syncUnderlyingBalance" | "accrualBlockTimestamp" | "accrueInterest" | "admin" | "allowance" | "approve" | "balanceOf" | "balanceOfUnderlying" | "borrow" | "borrowAndDepositBack" | "borrowBalanceCurrent" | "borrowBalanceStored" | "borrowIndex" | "borrowRatePerBlock" | "comptroller" | "decimals" | "discountRateMantissa" | "exchangeRateCurrent" | "exchangeRateStored" | "getAccountSnapshot" | "getCash" | "initialize" | "interestRateModel" | "isCEther" | "isCEtherDeprecated" | "isCToken" | "isCTokenDeprecated" | "liquidateBorrow" | "liquidateCalculateSeizeTokens" | "mint" | "mintWithPermit" | "name" | "pendingAdmin" | "percentScale" | "protocolSeizeShareMantissa" | "redeem" | "redeemUnderlying" | "repayBorrow" | "repayBorrowBehalf" | "repayBorrowWithPermit" | "reserveFactorMantissa" | "revokeWhitelist" | "seize" | "supplyRatePerBlock" | "sweepToken" | "symbol" | "tokenType" | "totalBorrows" | "totalBorrowsCurrent" | "totalReserves" | "totalSupply" | "transfer" | "transferFrom" | "underlying" | "underlyingBalance" | "whitelist" | "whitelisted"): FunctionFragment;
|
|
5
5
|
getEvent(nameOrSignatureOrTopic: "AccrueInterest" | "Approval" | "Borrow" | "Initialized" | "LiquidateBorrow" | "Mint" | "NewAdmin" | "NewComptroller" | "NewDiscountRate" | "NewMarketInterestRateModel" | "NewPendingAdmin" | "NewReserveFactor" | "Redeem" | "RedeemFaceValue" | "RepayBorrow" | "ReservesAdded" | "ReservesReduced" | "Transfer"): EventFragment;
|
|
6
6
|
encodeFunctionData(functionFragment: "_acceptAdmin", values?: undefined): string;
|
|
7
7
|
encodeFunctionData(functionFragment: "_addReserves", values: [BigNumberish]): string;
|
|
@@ -61,6 +61,7 @@ export interface CErc20Interface extends Interface {
|
|
|
61
61
|
encodeFunctionData(functionFragment: "repayBorrowBehalf", values: [AddressLike, BigNumberish]): string;
|
|
62
62
|
encodeFunctionData(functionFragment: "repayBorrowWithPermit", values: [BigNumberish, BigNumberish, BytesLike]): string;
|
|
63
63
|
encodeFunctionData(functionFragment: "reserveFactorMantissa", values?: undefined): string;
|
|
64
|
+
encodeFunctionData(functionFragment: "revokeWhitelist", values: [AddressLike]): string;
|
|
64
65
|
encodeFunctionData(functionFragment: "seize", values: [
|
|
65
66
|
AddressLike,
|
|
66
67
|
AddressLike,
|
|
@@ -81,6 +82,8 @@ export interface CErc20Interface extends Interface {
|
|
|
81
82
|
encodeFunctionData(functionFragment: "transferFrom", values: [AddressLike, AddressLike, BigNumberish]): string;
|
|
82
83
|
encodeFunctionData(functionFragment: "underlying", values?: undefined): string;
|
|
83
84
|
encodeFunctionData(functionFragment: "underlyingBalance", values?: undefined): string;
|
|
85
|
+
encodeFunctionData(functionFragment: "whitelist", values: [AddressLike]): string;
|
|
86
|
+
encodeFunctionData(functionFragment: "whitelisted", values: [AddressLike]): string;
|
|
84
87
|
decodeFunctionResult(functionFragment: "_acceptAdmin", data: BytesLike): Result;
|
|
85
88
|
decodeFunctionResult(functionFragment: "_addReserves", data: BytesLike): Result;
|
|
86
89
|
decodeFunctionResult(functionFragment: "_reduceReserves", data: BytesLike): Result;
|
|
@@ -130,6 +133,7 @@ export interface CErc20Interface extends Interface {
|
|
|
130
133
|
decodeFunctionResult(functionFragment: "repayBorrowBehalf", data: BytesLike): Result;
|
|
131
134
|
decodeFunctionResult(functionFragment: "repayBorrowWithPermit", data: BytesLike): Result;
|
|
132
135
|
decodeFunctionResult(functionFragment: "reserveFactorMantissa", data: BytesLike): Result;
|
|
136
|
+
decodeFunctionResult(functionFragment: "revokeWhitelist", data: BytesLike): Result;
|
|
133
137
|
decodeFunctionResult(functionFragment: "seize", data: BytesLike): Result;
|
|
134
138
|
decodeFunctionResult(functionFragment: "supplyRatePerBlock", data: BytesLike): Result;
|
|
135
139
|
decodeFunctionResult(functionFragment: "sweepToken", data: BytesLike): Result;
|
|
@@ -143,6 +147,8 @@ export interface CErc20Interface extends Interface {
|
|
|
143
147
|
decodeFunctionResult(functionFragment: "transferFrom", data: BytesLike): Result;
|
|
144
148
|
decodeFunctionResult(functionFragment: "underlying", data: BytesLike): Result;
|
|
145
149
|
decodeFunctionResult(functionFragment: "underlyingBalance", data: BytesLike): Result;
|
|
150
|
+
decodeFunctionResult(functionFragment: "whitelist", data: BytesLike): Result;
|
|
151
|
+
decodeFunctionResult(functionFragment: "whitelisted", data: BytesLike): Result;
|
|
146
152
|
}
|
|
147
153
|
export declare namespace AccrueInterestEvent {
|
|
148
154
|
type InputTuple = [
|
|
@@ -677,6 +683,11 @@ export interface CErc20 extends BaseContract {
|
|
|
677
683
|
void
|
|
678
684
|
], "nonpayable">;
|
|
679
685
|
reserveFactorMantissa: TypedContractMethod<[], [bigint], "view">;
|
|
686
|
+
revokeWhitelist: TypedContractMethod<[
|
|
687
|
+
addr: AddressLike
|
|
688
|
+
], [
|
|
689
|
+
void
|
|
690
|
+
], "nonpayable">;
|
|
680
691
|
seize: TypedContractMethod<[
|
|
681
692
|
liquidator: AddressLike,
|
|
682
693
|
borrower: AddressLike,
|
|
@@ -710,6 +721,8 @@ export interface CErc20 extends BaseContract {
|
|
|
710
721
|
], "nonpayable">;
|
|
711
722
|
underlying: TypedContractMethod<[], [string], "view">;
|
|
712
723
|
underlyingBalance: TypedContractMethod<[], [bigint], "view">;
|
|
724
|
+
whitelist: TypedContractMethod<[addr: AddressLike], [void], "nonpayable">;
|
|
725
|
+
whitelisted: TypedContractMethod<[arg0: AddressLike], [boolean], "view">;
|
|
713
726
|
getFunction<T extends ContractMethod = ContractMethod>(key: string | FunctionFragment): T;
|
|
714
727
|
getFunction(nameOrSignature: "_acceptAdmin"): TypedContractMethod<[], [void], "nonpayable">;
|
|
715
728
|
getFunction(nameOrSignature: "_addReserves"): TypedContractMethod<[addAmount: BigNumberish], [void], "nonpayable">;
|
|
@@ -830,6 +843,7 @@ export interface CErc20 extends BaseContract {
|
|
|
830
843
|
void
|
|
831
844
|
], "nonpayable">;
|
|
832
845
|
getFunction(nameOrSignature: "reserveFactorMantissa"): TypedContractMethod<[], [bigint], "view">;
|
|
846
|
+
getFunction(nameOrSignature: "revokeWhitelist"): TypedContractMethod<[addr: AddressLike], [void], "nonpayable">;
|
|
833
847
|
getFunction(nameOrSignature: "seize"): TypedContractMethod<[
|
|
834
848
|
liquidator: AddressLike,
|
|
835
849
|
borrower: AddressLike,
|
|
@@ -863,6 +877,8 @@ export interface CErc20 extends BaseContract {
|
|
|
863
877
|
], "nonpayable">;
|
|
864
878
|
getFunction(nameOrSignature: "underlying"): TypedContractMethod<[], [string], "view">;
|
|
865
879
|
getFunction(nameOrSignature: "underlyingBalance"): TypedContractMethod<[], [bigint], "view">;
|
|
880
|
+
getFunction(nameOrSignature: "whitelist"): TypedContractMethod<[addr: AddressLike], [void], "nonpayable">;
|
|
881
|
+
getFunction(nameOrSignature: "whitelisted"): TypedContractMethod<[arg0: AddressLike], [boolean], "view">;
|
|
866
882
|
getEvent(key: "AccrueInterest"): TypedContractEvent<AccrueInterestEvent.InputTuple, AccrueInterestEvent.OutputTuple, AccrueInterestEvent.OutputObject>;
|
|
867
883
|
getEvent(key: "Approval"): TypedContractEvent<ApprovalEvent.InputTuple, ApprovalEvent.OutputTuple, ApprovalEvent.OutputObject>;
|
|
868
884
|
getEvent(key: "Borrow"): TypedContractEvent<BorrowEvent.InputTuple, BorrowEvent.OutputTuple, BorrowEvent.OutputObject>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { BaseContract, BigNumberish, BytesLike, FunctionFragment, Result, Interface, EventFragment, AddressLike, ContractRunner, ContractMethod, Listener } from "ethers";
|
|
2
2
|
import type { TypedContractEvent, TypedDeferredTopicFilter, TypedEventLog, TypedLogDescription, TypedListener, TypedContractMethod } from "../../common";
|
|
3
3
|
export interface CEtherInterface extends Interface {
|
|
4
|
-
getFunction(nameOrSignature: "_acceptAdmin" | "_addReserves" | "_reduceReserves" | "_setComptroller" | "_setDiscountRate" | "_setInterestRateModel" | "_setPendingAdmin" | "_setReserveFactor" | "_syncUnderlyingBalance" | "accrualBlockTimestamp" | "accrueInterest" | "admin" | "allowance" | "approve" | "balanceOf" | "balanceOfUnderlying" | "borrow" | "borrowAndDepositBack" | "borrowBalanceCurrent" | "borrowBalanceStored" | "borrowIndex" | "borrowRatePerBlock" | "comptroller" | "decimals" | "discountRateMantissa" | "exchangeRateCurrent" | "exchangeRateStored" | "getAccountSnapshot" | "getCash" | "initialize" | "initializeVersion2" | "interestRateModel" | "isCEther" | "isCEtherDeprecated" | "isCToken" | "isCTokenDeprecated" | "liquidateBorrow" | "liquidateCalculateSeizeTokens" | "mint" | "name" | "pendingAdmin" | "percentScale" | "protocolSeizeShareMantissa" | "redeem" | "redeemUnderlying" | "repayBorrow" | "repayBorrowBehalf" | "reserveFactorMantissa" | "seize" | "supplyRatePerBlock" | "symbol" | "tokenType" | "totalBorrows" | "totalBorrowsCurrent" | "totalReserves" | "totalSupply" | "transfer" | "transferFrom" | "underlying" | "underlyingBalance"): FunctionFragment;
|
|
4
|
+
getFunction(nameOrSignature: "_acceptAdmin" | "_addReserves" | "_reduceReserves" | "_setComptroller" | "_setDiscountRate" | "_setInterestRateModel" | "_setPendingAdmin" | "_setReserveFactor" | "_syncUnderlyingBalance" | "accrualBlockTimestamp" | "accrueInterest" | "admin" | "allowance" | "approve" | "balanceOf" | "balanceOfUnderlying" | "borrow" | "borrowAndDepositBack" | "borrowBalanceCurrent" | "borrowBalanceStored" | "borrowIndex" | "borrowRatePerBlock" | "comptroller" | "decimals" | "discountRateMantissa" | "exchangeRateCurrent" | "exchangeRateStored" | "getAccountSnapshot" | "getCash" | "initialize" | "initializeVersion2" | "interestRateModel" | "isCEther" | "isCEtherDeprecated" | "isCToken" | "isCTokenDeprecated" | "liquidateBorrow" | "liquidateCalculateSeizeTokens" | "mint" | "name" | "pendingAdmin" | "percentScale" | "protocolSeizeShareMantissa" | "redeem" | "redeemUnderlying" | "repayBorrow" | "repayBorrowBehalf" | "reserveFactorMantissa" | "revokeWhitelist" | "seize" | "supplyRatePerBlock" | "symbol" | "tokenType" | "totalBorrows" | "totalBorrowsCurrent" | "totalReserves" | "totalSupply" | "transfer" | "transferFrom" | "underlying" | "underlyingBalance" | "whitelist" | "whitelisted"): FunctionFragment;
|
|
5
5
|
getEvent(nameOrSignatureOrTopic: "AccrueInterest" | "Approval" | "Borrow" | "Initialized" | "LiquidateBorrow" | "Mint" | "NewAdmin" | "NewComptroller" | "NewDiscountRate" | "NewMarketInterestRateModel" | "NewPendingAdmin" | "NewReserveFactor" | "Redeem" | "RedeemFaceValue" | "RepayBorrow" | "ReservesAdded" | "ReservesReduced" | "Transfer"): EventFragment;
|
|
6
6
|
encodeFunctionData(functionFragment: "_acceptAdmin", values?: undefined): string;
|
|
7
7
|
encodeFunctionData(functionFragment: "_addReserves", values?: undefined): string;
|
|
@@ -59,6 +59,7 @@ export interface CEtherInterface extends Interface {
|
|
|
59
59
|
encodeFunctionData(functionFragment: "repayBorrow", values?: undefined): string;
|
|
60
60
|
encodeFunctionData(functionFragment: "repayBorrowBehalf", values: [AddressLike]): string;
|
|
61
61
|
encodeFunctionData(functionFragment: "reserveFactorMantissa", values?: undefined): string;
|
|
62
|
+
encodeFunctionData(functionFragment: "revokeWhitelist", values: [AddressLike]): string;
|
|
62
63
|
encodeFunctionData(functionFragment: "seize", values: [
|
|
63
64
|
AddressLike,
|
|
64
65
|
AddressLike,
|
|
@@ -78,6 +79,8 @@ export interface CEtherInterface extends Interface {
|
|
|
78
79
|
encodeFunctionData(functionFragment: "transferFrom", values: [AddressLike, AddressLike, BigNumberish]): string;
|
|
79
80
|
encodeFunctionData(functionFragment: "underlying", values?: undefined): string;
|
|
80
81
|
encodeFunctionData(functionFragment: "underlyingBalance", values?: undefined): string;
|
|
82
|
+
encodeFunctionData(functionFragment: "whitelist", values: [AddressLike]): string;
|
|
83
|
+
encodeFunctionData(functionFragment: "whitelisted", values: [AddressLike]): string;
|
|
81
84
|
decodeFunctionResult(functionFragment: "_acceptAdmin", data: BytesLike): Result;
|
|
82
85
|
decodeFunctionResult(functionFragment: "_addReserves", data: BytesLike): Result;
|
|
83
86
|
decodeFunctionResult(functionFragment: "_reduceReserves", data: BytesLike): Result;
|
|
@@ -126,6 +129,7 @@ export interface CEtherInterface extends Interface {
|
|
|
126
129
|
decodeFunctionResult(functionFragment: "repayBorrow", data: BytesLike): Result;
|
|
127
130
|
decodeFunctionResult(functionFragment: "repayBorrowBehalf", data: BytesLike): Result;
|
|
128
131
|
decodeFunctionResult(functionFragment: "reserveFactorMantissa", data: BytesLike): Result;
|
|
132
|
+
decodeFunctionResult(functionFragment: "revokeWhitelist", data: BytesLike): Result;
|
|
129
133
|
decodeFunctionResult(functionFragment: "seize", data: BytesLike): Result;
|
|
130
134
|
decodeFunctionResult(functionFragment: "supplyRatePerBlock", data: BytesLike): Result;
|
|
131
135
|
decodeFunctionResult(functionFragment: "symbol", data: BytesLike): Result;
|
|
@@ -138,6 +142,8 @@ export interface CEtherInterface extends Interface {
|
|
|
138
142
|
decodeFunctionResult(functionFragment: "transferFrom", data: BytesLike): Result;
|
|
139
143
|
decodeFunctionResult(functionFragment: "underlying", data: BytesLike): Result;
|
|
140
144
|
decodeFunctionResult(functionFragment: "underlyingBalance", data: BytesLike): Result;
|
|
145
|
+
decodeFunctionResult(functionFragment: "whitelist", data: BytesLike): Result;
|
|
146
|
+
decodeFunctionResult(functionFragment: "whitelisted", data: BytesLike): Result;
|
|
141
147
|
}
|
|
142
148
|
export declare namespace AccrueInterestEvent {
|
|
143
149
|
type InputTuple = [
|
|
@@ -648,6 +654,11 @@ export interface CEther extends BaseContract {
|
|
|
648
654
|
void
|
|
649
655
|
], "payable">;
|
|
650
656
|
reserveFactorMantissa: TypedContractMethod<[], [bigint], "view">;
|
|
657
|
+
revokeWhitelist: TypedContractMethod<[
|
|
658
|
+
addr: AddressLike
|
|
659
|
+
], [
|
|
660
|
+
void
|
|
661
|
+
], "nonpayable">;
|
|
651
662
|
seize: TypedContractMethod<[
|
|
652
663
|
liquidator: AddressLike,
|
|
653
664
|
borrower: AddressLike,
|
|
@@ -680,6 +691,8 @@ export interface CEther extends BaseContract {
|
|
|
680
691
|
], "nonpayable">;
|
|
681
692
|
underlying: TypedContractMethod<[], [string], "view">;
|
|
682
693
|
underlyingBalance: TypedContractMethod<[], [bigint], "view">;
|
|
694
|
+
whitelist: TypedContractMethod<[addr: AddressLike], [void], "nonpayable">;
|
|
695
|
+
whitelisted: TypedContractMethod<[arg0: AddressLike], [boolean], "view">;
|
|
683
696
|
getFunction<T extends ContractMethod = ContractMethod>(key: string | FunctionFragment): T;
|
|
684
697
|
getFunction(nameOrSignature: "_acceptAdmin"): TypedContractMethod<[], [void], "nonpayable">;
|
|
685
698
|
getFunction(nameOrSignature: "_addReserves"): TypedContractMethod<[], [void], "payable">;
|
|
@@ -780,6 +793,7 @@ export interface CEther extends BaseContract {
|
|
|
780
793
|
getFunction(nameOrSignature: "repayBorrow"): TypedContractMethod<[], [void], "payable">;
|
|
781
794
|
getFunction(nameOrSignature: "repayBorrowBehalf"): TypedContractMethod<[borrower: AddressLike], [void], "payable">;
|
|
782
795
|
getFunction(nameOrSignature: "reserveFactorMantissa"): TypedContractMethod<[], [bigint], "view">;
|
|
796
|
+
getFunction(nameOrSignature: "revokeWhitelist"): TypedContractMethod<[addr: AddressLike], [void], "nonpayable">;
|
|
783
797
|
getFunction(nameOrSignature: "seize"): TypedContractMethod<[
|
|
784
798
|
liquidator: AddressLike,
|
|
785
799
|
borrower: AddressLike,
|
|
@@ -812,6 +826,8 @@ export interface CEther extends BaseContract {
|
|
|
812
826
|
], "nonpayable">;
|
|
813
827
|
getFunction(nameOrSignature: "underlying"): TypedContractMethod<[], [string], "view">;
|
|
814
828
|
getFunction(nameOrSignature: "underlyingBalance"): TypedContractMethod<[], [bigint], "view">;
|
|
829
|
+
getFunction(nameOrSignature: "whitelist"): TypedContractMethod<[addr: AddressLike], [void], "nonpayable">;
|
|
830
|
+
getFunction(nameOrSignature: "whitelisted"): TypedContractMethod<[arg0: AddressLike], [boolean], "view">;
|
|
815
831
|
getEvent(key: "AccrueInterest"): TypedContractEvent<AccrueInterestEvent.InputTuple, AccrueInterestEvent.OutputTuple, AccrueInterestEvent.OutputObject>;
|
|
816
832
|
getEvent(key: "Approval"): TypedContractEvent<ApprovalEvent.InputTuple, ApprovalEvent.OutputTuple, ApprovalEvent.OutputObject>;
|
|
817
833
|
getEvent(key: "Borrow"): TypedContractEvent<BorrowEvent.InputTuple, BorrowEvent.OutputTuple, BorrowEvent.OutputObject>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { BaseContract, BigNumberish, BytesLike, FunctionFragment, Result, Interface, EventFragment, AddressLike, ContractRunner, ContractMethod, Listener } from "ethers";
|
|
2
2
|
import type { TypedContractEvent, TypedDeferredTopicFilter, TypedEventLog, TypedLogDescription, TypedListener, TypedContractMethod } from "../../common";
|
|
3
3
|
export interface CTokenInterface extends Interface {
|
|
4
|
-
getFunction(nameOrSignature: "_acceptAdmin" | "_reduceReserves" | "_setComptroller" | "_setDiscountRate" | "_setInterestRateModel" | "_setPendingAdmin" | "_setReserveFactor" | "_syncUnderlyingBalance" | "accrualBlockTimestamp" | "accrueInterest" | "admin" | "allowance" | "approve" | "balanceOf" | "balanceOfUnderlying" | "borrowAndDepositBack" | "borrowBalanceCurrent" | "borrowBalanceStored" | "borrowIndex" | "borrowRatePerBlock" | "comptroller" | "decimals" | "discountRateMantissa" | "exchangeRateCurrent" | "exchangeRateStored" | "getAccountSnapshot" | "getCash" | "interestRateModel" | "isCEther" | "isCEtherDeprecated" | "isCToken" | "isCTokenDeprecated" | "liquidateCalculateSeizeTokens" | "name" | "pendingAdmin" | "percentScale" | "protocolSeizeShareMantissa" | "reserveFactorMantissa" | "seize" | "supplyRatePerBlock" | "symbol" | "totalBorrows" | "totalBorrowsCurrent" | "totalReserves" | "totalSupply" | "transfer" | "transferFrom" | "underlying" | "underlyingBalance"): FunctionFragment;
|
|
4
|
+
getFunction(nameOrSignature: "_acceptAdmin" | "_reduceReserves" | "_setComptroller" | "_setDiscountRate" | "_setInterestRateModel" | "_setPendingAdmin" | "_setReserveFactor" | "_syncUnderlyingBalance" | "accrualBlockTimestamp" | "accrueInterest" | "admin" | "allowance" | "approve" | "balanceOf" | "balanceOfUnderlying" | "borrowAndDepositBack" | "borrowBalanceCurrent" | "borrowBalanceStored" | "borrowIndex" | "borrowRatePerBlock" | "comptroller" | "decimals" | "discountRateMantissa" | "exchangeRateCurrent" | "exchangeRateStored" | "getAccountSnapshot" | "getCash" | "interestRateModel" | "isCEther" | "isCEtherDeprecated" | "isCToken" | "isCTokenDeprecated" | "liquidateCalculateSeizeTokens" | "name" | "pendingAdmin" | "percentScale" | "protocolSeizeShareMantissa" | "reserveFactorMantissa" | "revokeWhitelist" | "seize" | "supplyRatePerBlock" | "symbol" | "totalBorrows" | "totalBorrowsCurrent" | "totalReserves" | "totalSupply" | "transfer" | "transferFrom" | "underlying" | "underlyingBalance" | "whitelist" | "whitelisted"): FunctionFragment;
|
|
5
5
|
getEvent(nameOrSignatureOrTopic: "AccrueInterest" | "Approval" | "Borrow" | "LiquidateBorrow" | "Mint" | "NewAdmin" | "NewComptroller" | "NewDiscountRate" | "NewMarketInterestRateModel" | "NewPendingAdmin" | "NewReserveFactor" | "Redeem" | "RedeemFaceValue" | "RepayBorrow" | "ReservesAdded" | "ReservesReduced" | "Transfer"): EventFragment;
|
|
6
6
|
encodeFunctionData(functionFragment: "_acceptAdmin", values?: undefined): string;
|
|
7
7
|
encodeFunctionData(functionFragment: "_reduceReserves", values: [BigNumberish]): string;
|
|
@@ -41,6 +41,7 @@ export interface CTokenInterface extends Interface {
|
|
|
41
41
|
encodeFunctionData(functionFragment: "percentScale", values?: undefined): string;
|
|
42
42
|
encodeFunctionData(functionFragment: "protocolSeizeShareMantissa", values?: undefined): string;
|
|
43
43
|
encodeFunctionData(functionFragment: "reserveFactorMantissa", values?: undefined): string;
|
|
44
|
+
encodeFunctionData(functionFragment: "revokeWhitelist", values: [AddressLike]): string;
|
|
44
45
|
encodeFunctionData(functionFragment: "seize", values: [
|
|
45
46
|
AddressLike,
|
|
46
47
|
AddressLike,
|
|
@@ -59,6 +60,8 @@ export interface CTokenInterface extends Interface {
|
|
|
59
60
|
encodeFunctionData(functionFragment: "transferFrom", values: [AddressLike, AddressLike, BigNumberish]): string;
|
|
60
61
|
encodeFunctionData(functionFragment: "underlying", values?: undefined): string;
|
|
61
62
|
encodeFunctionData(functionFragment: "underlyingBalance", values?: undefined): string;
|
|
63
|
+
encodeFunctionData(functionFragment: "whitelist", values: [AddressLike]): string;
|
|
64
|
+
encodeFunctionData(functionFragment: "whitelisted", values: [AddressLike]): string;
|
|
62
65
|
decodeFunctionResult(functionFragment: "_acceptAdmin", data: BytesLike): Result;
|
|
63
66
|
decodeFunctionResult(functionFragment: "_reduceReserves", data: BytesLike): Result;
|
|
64
67
|
decodeFunctionResult(functionFragment: "_setComptroller", data: BytesLike): Result;
|
|
@@ -97,6 +100,7 @@ export interface CTokenInterface extends Interface {
|
|
|
97
100
|
decodeFunctionResult(functionFragment: "percentScale", data: BytesLike): Result;
|
|
98
101
|
decodeFunctionResult(functionFragment: "protocolSeizeShareMantissa", data: BytesLike): Result;
|
|
99
102
|
decodeFunctionResult(functionFragment: "reserveFactorMantissa", data: BytesLike): Result;
|
|
103
|
+
decodeFunctionResult(functionFragment: "revokeWhitelist", data: BytesLike): Result;
|
|
100
104
|
decodeFunctionResult(functionFragment: "seize", data: BytesLike): Result;
|
|
101
105
|
decodeFunctionResult(functionFragment: "supplyRatePerBlock", data: BytesLike): Result;
|
|
102
106
|
decodeFunctionResult(functionFragment: "symbol", data: BytesLike): Result;
|
|
@@ -108,6 +112,8 @@ export interface CTokenInterface extends Interface {
|
|
|
108
112
|
decodeFunctionResult(functionFragment: "transferFrom", data: BytesLike): Result;
|
|
109
113
|
decodeFunctionResult(functionFragment: "underlying", data: BytesLike): Result;
|
|
110
114
|
decodeFunctionResult(functionFragment: "underlyingBalance", data: BytesLike): Result;
|
|
115
|
+
decodeFunctionResult(functionFragment: "whitelist", data: BytesLike): Result;
|
|
116
|
+
decodeFunctionResult(functionFragment: "whitelisted", data: BytesLike): Result;
|
|
111
117
|
}
|
|
112
118
|
export declare namespace AccrueInterestEvent {
|
|
113
119
|
type InputTuple = [
|
|
@@ -566,6 +572,11 @@ export interface CToken extends BaseContract {
|
|
|
566
572
|
percentScale: TypedContractMethod<[], [bigint], "view">;
|
|
567
573
|
protocolSeizeShareMantissa: TypedContractMethod<[], [bigint], "view">;
|
|
568
574
|
reserveFactorMantissa: TypedContractMethod<[], [bigint], "view">;
|
|
575
|
+
revokeWhitelist: TypedContractMethod<[
|
|
576
|
+
addr: AddressLike
|
|
577
|
+
], [
|
|
578
|
+
void
|
|
579
|
+
], "nonpayable">;
|
|
569
580
|
seize: TypedContractMethod<[
|
|
570
581
|
liquidator: AddressLike,
|
|
571
582
|
borrower: AddressLike,
|
|
@@ -597,6 +608,8 @@ export interface CToken extends BaseContract {
|
|
|
597
608
|
], "nonpayable">;
|
|
598
609
|
underlying: TypedContractMethod<[], [string], "view">;
|
|
599
610
|
underlyingBalance: TypedContractMethod<[], [bigint], "view">;
|
|
611
|
+
whitelist: TypedContractMethod<[addr: AddressLike], [void], "nonpayable">;
|
|
612
|
+
whitelisted: TypedContractMethod<[arg0: AddressLike], [boolean], "view">;
|
|
600
613
|
getFunction<T extends ContractMethod = ContractMethod>(key: string | FunctionFragment): T;
|
|
601
614
|
getFunction(nameOrSignature: "_acceptAdmin"): TypedContractMethod<[], [void], "nonpayable">;
|
|
602
615
|
getFunction(nameOrSignature: "_reduceReserves"): TypedContractMethod<[reduceAmount: BigNumberish], [void], "nonpayable">;
|
|
@@ -672,6 +685,7 @@ export interface CToken extends BaseContract {
|
|
|
672
685
|
getFunction(nameOrSignature: "percentScale"): TypedContractMethod<[], [bigint], "view">;
|
|
673
686
|
getFunction(nameOrSignature: "protocolSeizeShareMantissa"): TypedContractMethod<[], [bigint], "view">;
|
|
674
687
|
getFunction(nameOrSignature: "reserveFactorMantissa"): TypedContractMethod<[], [bigint], "view">;
|
|
688
|
+
getFunction(nameOrSignature: "revokeWhitelist"): TypedContractMethod<[addr: AddressLike], [void], "nonpayable">;
|
|
675
689
|
getFunction(nameOrSignature: "seize"): TypedContractMethod<[
|
|
676
690
|
liquidator: AddressLike,
|
|
677
691
|
borrower: AddressLike,
|
|
@@ -703,6 +717,8 @@ export interface CToken extends BaseContract {
|
|
|
703
717
|
], "nonpayable">;
|
|
704
718
|
getFunction(nameOrSignature: "underlying"): TypedContractMethod<[], [string], "view">;
|
|
705
719
|
getFunction(nameOrSignature: "underlyingBalance"): TypedContractMethod<[], [bigint], "view">;
|
|
720
|
+
getFunction(nameOrSignature: "whitelist"): TypedContractMethod<[addr: AddressLike], [void], "nonpayable">;
|
|
721
|
+
getFunction(nameOrSignature: "whitelisted"): TypedContractMethod<[arg0: AddressLike], [boolean], "view">;
|
|
706
722
|
getEvent(key: "AccrueInterest"): TypedContractEvent<AccrueInterestEvent.InputTuple, AccrueInterestEvent.OutputTuple, AccrueInterestEvent.OutputObject>;
|
|
707
723
|
getEvent(key: "Approval"): TypedContractEvent<ApprovalEvent.InputTuple, ApprovalEvent.OutputTuple, ApprovalEvent.OutputObject>;
|
|
708
724
|
getEvent(key: "Borrow"): TypedContractEvent<BorrowEvent.InputTuple, BorrowEvent.OutputTuple, BorrowEvent.OutputObject>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { BaseContract, BigNumberish, BytesLike, FunctionFragment, Result, Interface, AddressLike, ContractRunner, ContractMethod, Listener } from "ethers";
|
|
2
2
|
import type { TypedContractEvent, TypedDeferredTopicFilter, TypedEventLog, TypedListener, TypedContractMethod } from "../../common";
|
|
3
3
|
export interface CTokenStorageInterface extends Interface {
|
|
4
|
-
getFunction(nameOrSignature: "_acceptAdmin" | "_reduceReserves" | "_setComptroller" | "_setDiscountRate" | "_setInterestRateModel" | "_setPendingAdmin" | "_setReserveFactor" | "accrualBlockTimestamp" | "accrueInterest" | "admin" | "allowance" | "approve" | "balanceOf" | "balanceOfUnderlying" | "borrowBalanceCurrent" | "borrowBalanceStored" | "borrowIndex" | "borrowRatePerBlock" | "comptroller" | "decimals" | "discountRateMantissa" | "exchangeRateCurrent" | "exchangeRateStored" | "getAccountSnapshot" | "getCash" | "interestRateModel" | "isCEtherDeprecated" | "isCTokenDeprecated" | "name" | "pendingAdmin" | "percentScale" | "protocolSeizeShareMantissa" | "reserveFactorMantissa" | "seize" | "supplyRatePerBlock" | "symbol" | "totalBorrows" | "totalBorrowsCurrent" | "totalReserves" | "totalSupply" | "transfer" | "transferFrom" | "underlying" | "underlyingBalance"): FunctionFragment;
|
|
4
|
+
getFunction(nameOrSignature: "_acceptAdmin" | "_reduceReserves" | "_setComptroller" | "_setDiscountRate" | "_setInterestRateModel" | "_setPendingAdmin" | "_setReserveFactor" | "accrualBlockTimestamp" | "accrueInterest" | "admin" | "allowance" | "approve" | "balanceOf" | "balanceOfUnderlying" | "borrowBalanceCurrent" | "borrowBalanceStored" | "borrowIndex" | "borrowRatePerBlock" | "comptroller" | "decimals" | "discountRateMantissa" | "exchangeRateCurrent" | "exchangeRateStored" | "getAccountSnapshot" | "getCash" | "interestRateModel" | "isCEtherDeprecated" | "isCTokenDeprecated" | "name" | "pendingAdmin" | "percentScale" | "protocolSeizeShareMantissa" | "reserveFactorMantissa" | "seize" | "supplyRatePerBlock" | "symbol" | "totalBorrows" | "totalBorrowsCurrent" | "totalReserves" | "totalSupply" | "transfer" | "transferFrom" | "underlying" | "underlyingBalance" | "whitelisted"): FunctionFragment;
|
|
5
5
|
encodeFunctionData(functionFragment: "_acceptAdmin", values?: undefined): string;
|
|
6
6
|
encodeFunctionData(functionFragment: "_reduceReserves", values: [BigNumberish]): string;
|
|
7
7
|
encodeFunctionData(functionFragment: "_setComptroller", values: [AddressLike]): string;
|
|
@@ -53,6 +53,7 @@ export interface CTokenStorageInterface extends Interface {
|
|
|
53
53
|
encodeFunctionData(functionFragment: "transferFrom", values: [AddressLike, AddressLike, BigNumberish]): string;
|
|
54
54
|
encodeFunctionData(functionFragment: "underlying", values?: undefined): string;
|
|
55
55
|
encodeFunctionData(functionFragment: "underlyingBalance", values?: undefined): string;
|
|
56
|
+
encodeFunctionData(functionFragment: "whitelisted", values: [AddressLike]): string;
|
|
56
57
|
decodeFunctionResult(functionFragment: "_acceptAdmin", data: BytesLike): Result;
|
|
57
58
|
decodeFunctionResult(functionFragment: "_reduceReserves", data: BytesLike): Result;
|
|
58
59
|
decodeFunctionResult(functionFragment: "_setComptroller", data: BytesLike): Result;
|
|
@@ -97,6 +98,7 @@ export interface CTokenStorageInterface extends Interface {
|
|
|
97
98
|
decodeFunctionResult(functionFragment: "transferFrom", data: BytesLike): Result;
|
|
98
99
|
decodeFunctionResult(functionFragment: "underlying", data: BytesLike): Result;
|
|
99
100
|
decodeFunctionResult(functionFragment: "underlyingBalance", data: BytesLike): Result;
|
|
101
|
+
decodeFunctionResult(functionFragment: "whitelisted", data: BytesLike): Result;
|
|
100
102
|
}
|
|
101
103
|
export interface CTokenStorage extends BaseContract {
|
|
102
104
|
connect(runner?: ContractRunner | null): CTokenStorage;
|
|
@@ -225,6 +227,7 @@ export interface CTokenStorage extends BaseContract {
|
|
|
225
227
|
], "nonpayable">;
|
|
226
228
|
underlying: TypedContractMethod<[], [string], "view">;
|
|
227
229
|
underlyingBalance: TypedContractMethod<[], [bigint], "view">;
|
|
230
|
+
whitelisted: TypedContractMethod<[arg0: AddressLike], [boolean], "view">;
|
|
228
231
|
getFunction<T extends ContractMethod = ContractMethod>(key: string | FunctionFragment): T;
|
|
229
232
|
getFunction(nameOrSignature: "_acceptAdmin"): TypedContractMethod<[], [void], "nonpayable">;
|
|
230
233
|
getFunction(nameOrSignature: "_reduceReserves"): TypedContractMethod<[reduceAmount: BigNumberish], [void], "nonpayable">;
|
|
@@ -316,5 +319,6 @@ export interface CTokenStorage extends BaseContract {
|
|
|
316
319
|
], "nonpayable">;
|
|
317
320
|
getFunction(nameOrSignature: "underlying"): TypedContractMethod<[], [string], "view">;
|
|
318
321
|
getFunction(nameOrSignature: "underlyingBalance"): TypedContractMethod<[], [bigint], "view">;
|
|
322
|
+
getFunction(nameOrSignature: "whitelisted"): TypedContractMethod<[arg0: AddressLike], [boolean], "view">;
|
|
319
323
|
filters: {};
|
|
320
324
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { BaseContract, BigNumberish, BytesLike, FunctionFragment, Result, Interface, EventFragment, AddressLike, ContractRunner, ContractMethod, Listener } from "ethers";
|
|
2
2
|
import type { TypedContractEvent, TypedDeferredTopicFilter, TypedEventLog, TypedLogDescription, TypedListener, TypedContractMethod } from "../../common";
|
|
3
3
|
export interface SuErc20Interface extends Interface {
|
|
4
|
-
getFunction(nameOrSignature: "_acceptAdmin" | "_addReserves" | "_reduceReserves" | "_setComptroller" | "_setDiscountRate" | "_setInterestRateModel" | "_setPendingAdmin" | "_setReserveFactor" | "_syncUnderlyingBalance" | "accrualBlockTimestamp" | "accrueInterest" | "admin" | "allowance" | "approve" | "balanceOf" | "balanceOfUnderlying" | "borrow" | "borrowAndDepositBack" | "borrowBalanceCurrent" | "borrowBalanceStored" | "borrowIndex" | "borrowRatePerBlock" | "comptroller" | "decimals" | "discountRateMantissa" | "exchangeRateCurrent" | "exchangeRateStored" | "executeRedemption" | "getAccountSnapshot" | "getCash" | "initialize" | "interestRateModel" | "isCEther" | "isCEtherDeprecated" | "isCToken" | "isCTokenDeprecated" | "liquidateBorrow" | "liquidateCalculateSeizeTokens" | "mint" | "mintWithPermit" | "name" | "pendingAdmin" | "percentScale" | "protectedMint" | "protocolSeizeShareMantissa" | "redeem" | "redeemUnderlying" | "repayBorrow" | "repayBorrowBehalf" | "repayBorrowWithPermit" | "reserveFactorMantissa" | "seize" | "supplyRatePerBlock" | "sweepToken" | "symbol" | "tokenType" | "totalBorrows" | "totalBorrowsCurrent" | "totalReserves" | "totalSupply" | "transfer" | "transferFrom" | "underlying" | "underlyingBalance"): FunctionFragment;
|
|
4
|
+
getFunction(nameOrSignature: "_acceptAdmin" | "_addReserves" | "_reduceReserves" | "_setComptroller" | "_setDiscountRate" | "_setInterestRateModel" | "_setPendingAdmin" | "_setReserveFactor" | "_syncUnderlyingBalance" | "accrualBlockTimestamp" | "accrueInterest" | "admin" | "allowance" | "approve" | "balanceOf" | "balanceOfUnderlying" | "borrow" | "borrowAndDepositBack" | "borrowBalanceCurrent" | "borrowBalanceStored" | "borrowIndex" | "borrowRatePerBlock" | "comptroller" | "decimals" | "discountRateMantissa" | "exchangeRateCurrent" | "exchangeRateStored" | "executeRedemption" | "getAccountSnapshot" | "getCash" | "initialize" | "interestRateModel" | "isCEther" | "isCEtherDeprecated" | "isCToken" | "isCTokenDeprecated" | "liquidateBorrow" | "liquidateCalculateSeizeTokens" | "mint" | "mintWithPermit" | "name" | "pendingAdmin" | "percentScale" | "protectedMint" | "protocolSeizeShareMantissa" | "redeem" | "redeemUnderlying" | "repayBorrow" | "repayBorrowBehalf" | "repayBorrowWithPermit" | "reserveFactorMantissa" | "revokeWhitelist" | "seize" | "supplyRatePerBlock" | "sweepToken" | "symbol" | "tokenType" | "totalBorrows" | "totalBorrowsCurrent" | "totalReserves" | "totalSupply" | "transfer" | "transferFrom" | "underlying" | "underlyingBalance" | "whitelist" | "whitelisted"): FunctionFragment;
|
|
5
5
|
getEvent(nameOrSignatureOrTopic: "AccrueInterest" | "Approval" | "Borrow" | "Initialized" | "LiquidateBorrow" | "Mint" | "NewAdmin" | "NewComptroller" | "NewDiscountRate" | "NewMarketInterestRateModel" | "NewPendingAdmin" | "NewReserveFactor" | "Redeem" | "RedeemFaceValue" | "RepayBorrow" | "ReservesAdded" | "ReservesReduced" | "Transfer"): EventFragment;
|
|
6
6
|
encodeFunctionData(functionFragment: "_acceptAdmin", values?: undefined): string;
|
|
7
7
|
encodeFunctionData(functionFragment: "_addReserves", values: [BigNumberish]): string;
|
|
@@ -70,6 +70,7 @@ export interface SuErc20Interface extends Interface {
|
|
|
70
70
|
encodeFunctionData(functionFragment: "repayBorrowBehalf", values: [AddressLike, BigNumberish]): string;
|
|
71
71
|
encodeFunctionData(functionFragment: "repayBorrowWithPermit", values: [BigNumberish, BigNumberish, BytesLike]): string;
|
|
72
72
|
encodeFunctionData(functionFragment: "reserveFactorMantissa", values?: undefined): string;
|
|
73
|
+
encodeFunctionData(functionFragment: "revokeWhitelist", values: [AddressLike]): string;
|
|
73
74
|
encodeFunctionData(functionFragment: "seize", values: [
|
|
74
75
|
AddressLike,
|
|
75
76
|
AddressLike,
|
|
@@ -90,6 +91,8 @@ export interface SuErc20Interface extends Interface {
|
|
|
90
91
|
encodeFunctionData(functionFragment: "transferFrom", values: [AddressLike, AddressLike, BigNumberish]): string;
|
|
91
92
|
encodeFunctionData(functionFragment: "underlying", values?: undefined): string;
|
|
92
93
|
encodeFunctionData(functionFragment: "underlyingBalance", values?: undefined): string;
|
|
94
|
+
encodeFunctionData(functionFragment: "whitelist", values: [AddressLike]): string;
|
|
95
|
+
encodeFunctionData(functionFragment: "whitelisted", values: [AddressLike]): string;
|
|
93
96
|
decodeFunctionResult(functionFragment: "_acceptAdmin", data: BytesLike): Result;
|
|
94
97
|
decodeFunctionResult(functionFragment: "_addReserves", data: BytesLike): Result;
|
|
95
98
|
decodeFunctionResult(functionFragment: "_reduceReserves", data: BytesLike): Result;
|
|
@@ -141,6 +144,7 @@ export interface SuErc20Interface extends Interface {
|
|
|
141
144
|
decodeFunctionResult(functionFragment: "repayBorrowBehalf", data: BytesLike): Result;
|
|
142
145
|
decodeFunctionResult(functionFragment: "repayBorrowWithPermit", data: BytesLike): Result;
|
|
143
146
|
decodeFunctionResult(functionFragment: "reserveFactorMantissa", data: BytesLike): Result;
|
|
147
|
+
decodeFunctionResult(functionFragment: "revokeWhitelist", data: BytesLike): Result;
|
|
144
148
|
decodeFunctionResult(functionFragment: "seize", data: BytesLike): Result;
|
|
145
149
|
decodeFunctionResult(functionFragment: "supplyRatePerBlock", data: BytesLike): Result;
|
|
146
150
|
decodeFunctionResult(functionFragment: "sweepToken", data: BytesLike): Result;
|
|
@@ -154,6 +158,8 @@ export interface SuErc20Interface extends Interface {
|
|
|
154
158
|
decodeFunctionResult(functionFragment: "transferFrom", data: BytesLike): Result;
|
|
155
159
|
decodeFunctionResult(functionFragment: "underlying", data: BytesLike): Result;
|
|
156
160
|
decodeFunctionResult(functionFragment: "underlyingBalance", data: BytesLike): Result;
|
|
161
|
+
decodeFunctionResult(functionFragment: "whitelist", data: BytesLike): Result;
|
|
162
|
+
decodeFunctionResult(functionFragment: "whitelisted", data: BytesLike): Result;
|
|
157
163
|
}
|
|
158
164
|
export declare namespace AccrueInterestEvent {
|
|
159
165
|
type InputTuple = [
|
|
@@ -705,6 +711,11 @@ export interface SuErc20 extends BaseContract {
|
|
|
705
711
|
void
|
|
706
712
|
], "nonpayable">;
|
|
707
713
|
reserveFactorMantissa: TypedContractMethod<[], [bigint], "view">;
|
|
714
|
+
revokeWhitelist: TypedContractMethod<[
|
|
715
|
+
addr: AddressLike
|
|
716
|
+
], [
|
|
717
|
+
void
|
|
718
|
+
], "nonpayable">;
|
|
708
719
|
seize: TypedContractMethod<[
|
|
709
720
|
liquidator: AddressLike,
|
|
710
721
|
borrower: AddressLike,
|
|
@@ -738,6 +749,8 @@ export interface SuErc20 extends BaseContract {
|
|
|
738
749
|
], "nonpayable">;
|
|
739
750
|
underlying: TypedContractMethod<[], [string], "view">;
|
|
740
751
|
underlyingBalance: TypedContractMethod<[], [bigint], "view">;
|
|
752
|
+
whitelist: TypedContractMethod<[addr: AddressLike], [void], "nonpayable">;
|
|
753
|
+
whitelisted: TypedContractMethod<[arg0: AddressLike], [boolean], "view">;
|
|
741
754
|
getFunction<T extends ContractMethod = ContractMethod>(key: string | FunctionFragment): T;
|
|
742
755
|
getFunction(nameOrSignature: "_acceptAdmin"): TypedContractMethod<[], [void], "nonpayable">;
|
|
743
756
|
getFunction(nameOrSignature: "_addReserves"): TypedContractMethod<[addAmount: BigNumberish], [void], "nonpayable">;
|
|
@@ -875,6 +888,7 @@ export interface SuErc20 extends BaseContract {
|
|
|
875
888
|
void
|
|
876
889
|
], "nonpayable">;
|
|
877
890
|
getFunction(nameOrSignature: "reserveFactorMantissa"): TypedContractMethod<[], [bigint], "view">;
|
|
891
|
+
getFunction(nameOrSignature: "revokeWhitelist"): TypedContractMethod<[addr: AddressLike], [void], "nonpayable">;
|
|
878
892
|
getFunction(nameOrSignature: "seize"): TypedContractMethod<[
|
|
879
893
|
liquidator: AddressLike,
|
|
880
894
|
borrower: AddressLike,
|
|
@@ -908,6 +922,8 @@ export interface SuErc20 extends BaseContract {
|
|
|
908
922
|
], "nonpayable">;
|
|
909
923
|
getFunction(nameOrSignature: "underlying"): TypedContractMethod<[], [string], "view">;
|
|
910
924
|
getFunction(nameOrSignature: "underlyingBalance"): TypedContractMethod<[], [bigint], "view">;
|
|
925
|
+
getFunction(nameOrSignature: "whitelist"): TypedContractMethod<[addr: AddressLike], [void], "nonpayable">;
|
|
926
|
+
getFunction(nameOrSignature: "whitelisted"): TypedContractMethod<[arg0: AddressLike], [boolean], "view">;
|
|
911
927
|
getEvent(key: "AccrueInterest"): TypedContractEvent<AccrueInterestEvent.InputTuple, AccrueInterestEvent.OutputTuple, AccrueInterestEvent.OutputObject>;
|
|
912
928
|
getEvent(key: "Approval"): TypedContractEvent<ApprovalEvent.InputTuple, ApprovalEvent.OutputTuple, ApprovalEvent.OutputObject>;
|
|
913
929
|
getEvent(key: "Borrow"): TypedContractEvent<BorrowEvent.InputTuple, BorrowEvent.OutputTuple, BorrowEvent.OutputObject>;
|