2020-06-03 10:23:21 +00:00
|
|
|
/* Generated by ts-generator ver. 0.0.8 */
|
|
|
|
/* tslint:disable */
|
|
|
|
|
2020-07-13 08:54:08 +00:00
|
|
|
import {Contract, ContractTransaction, EventFilter, Signer} from 'ethers';
|
|
|
|
import {Listener, Provider} from 'ethers/providers';
|
|
|
|
import {Arrayish, BigNumber, BigNumberish, Interface} from 'ethers/utils';
|
|
|
|
import {TransactionOverrides, TypedEventDescription, TypedFunctionDescription} from '.';
|
2020-06-03 10:23:21 +00:00
|
|
|
|
|
|
|
interface LendingPoolInterface extends Interface {
|
|
|
|
functions: {
|
2020-07-13 08:54:08 +00:00
|
|
|
LENDINGPOOL_REVISION: TypedFunctionDescription<{encode([]: []): string}>;
|
2020-06-03 10:23:21 +00:00
|
|
|
|
2020-07-13 08:54:08 +00:00
|
|
|
UINT_MAX_VALUE: TypedFunctionDescription<{encode([]: []): string}>;
|
2020-06-03 10:23:21 +00:00
|
|
|
|
2020-07-13 08:54:08 +00:00
|
|
|
addressesProvider: TypedFunctionDescription<{encode([]: []): string}>;
|
2020-06-03 10:23:21 +00:00
|
|
|
|
2020-06-20 23:40:03 +00:00
|
|
|
balanceDecreaseAllowed: TypedFunctionDescription<{
|
2020-07-13 08:54:08 +00:00
|
|
|
encode([_reserve, _user, _amount]: [string, string, BigNumberish]): string;
|
2020-06-20 23:40:03 +00:00
|
|
|
}>;
|
|
|
|
|
2020-06-03 10:23:21 +00:00
|
|
|
borrow: TypedFunctionDescription<{
|
|
|
|
encode([_reserve, _amount, _interestRateMode, _referralCode]: [
|
|
|
|
string,
|
|
|
|
BigNumberish,
|
|
|
|
BigNumberish,
|
|
|
|
BigNumberish
|
|
|
|
]): string;
|
|
|
|
}>;
|
|
|
|
|
|
|
|
deposit: TypedFunctionDescription<{
|
2020-07-13 08:54:08 +00:00
|
|
|
encode([_reserve, _amount, _referralCode]: [string, BigNumberish, BigNumberish]): string;
|
2020-06-03 10:23:21 +00:00
|
|
|
}>;
|
|
|
|
|
|
|
|
flashLoan: TypedFunctionDescription<{
|
|
|
|
encode([_receiver, _reserve, _amount, _params]: [
|
|
|
|
string,
|
|
|
|
string,
|
|
|
|
BigNumberish,
|
|
|
|
Arrayish
|
|
|
|
]): string;
|
|
|
|
}>;
|
|
|
|
|
2020-07-23 15:18:06 +00:00
|
|
|
getConfiguration: TypedFunctionDescription<{
|
|
|
|
encode([_reserve]: [string]): string;
|
|
|
|
}>;
|
|
|
|
|
2020-06-03 10:23:21 +00:00
|
|
|
getReserveConfigurationData: TypedFunctionDescription<{
|
|
|
|
encode([_reserve]: [string]): string;
|
|
|
|
}>;
|
|
|
|
|
|
|
|
getReserveData: TypedFunctionDescription<{
|
|
|
|
encode([_reserve]: [string]): string;
|
|
|
|
}>;
|
|
|
|
|
2020-06-20 23:40:03 +00:00
|
|
|
getReserveNormalizedIncome: TypedFunctionDescription<{
|
|
|
|
encode([_reserve]: [string]): string;
|
|
|
|
}>;
|
|
|
|
|
2020-06-30 12:09:28 +00:00
|
|
|
getReserveNormalizedVariableDebt: TypedFunctionDescription<{
|
|
|
|
encode([_reserve]: [string]): string;
|
|
|
|
}>;
|
|
|
|
|
2020-07-09 14:27:19 +00:00
|
|
|
getReserveTokensAddresses: TypedFunctionDescription<{
|
|
|
|
encode([_reserve]: [string]): string;
|
|
|
|
}>;
|
|
|
|
|
2020-07-13 08:54:08 +00:00
|
|
|
getReserves: TypedFunctionDescription<{encode([]: []): string}>;
|
2020-06-03 10:23:21 +00:00
|
|
|
|
|
|
|
getUserAccountData: TypedFunctionDescription<{
|
|
|
|
encode([_user]: [string]): string;
|
|
|
|
}>;
|
|
|
|
|
|
|
|
getUserReserveData: TypedFunctionDescription<{
|
|
|
|
encode([_reserve, _user]: [string, string]): string;
|
|
|
|
}>;
|
|
|
|
|
2020-06-20 23:40:03 +00:00
|
|
|
initReserve: TypedFunctionDescription<{
|
|
|
|
encode([
|
|
|
|
_reserve,
|
|
|
|
_aTokenAddress,
|
2020-06-30 12:09:28 +00:00
|
|
|
_stableDebtAddress,
|
|
|
|
_variableDebtAddress,
|
2020-07-13 08:54:08 +00:00
|
|
|
_interestRateStrategyAddress,
|
2020-07-23 15:18:06 +00:00
|
|
|
]: [string, string, string, string, string]): string;
|
2020-06-20 23:40:03 +00:00
|
|
|
}>;
|
|
|
|
|
2020-06-03 10:23:21 +00:00
|
|
|
initialize: TypedFunctionDescription<{
|
|
|
|
encode([_addressesProvider]: [string]): string;
|
|
|
|
}>;
|
|
|
|
|
|
|
|
liquidationCall: TypedFunctionDescription<{
|
|
|
|
encode([_collateral, _reserve, _user, _purchaseAmount, _receiveAToken]: [
|
|
|
|
string,
|
|
|
|
string,
|
|
|
|
string,
|
|
|
|
BigNumberish,
|
|
|
|
boolean
|
|
|
|
]): string;
|
|
|
|
}>;
|
|
|
|
|
|
|
|
rebalanceStableBorrowRate: TypedFunctionDescription<{
|
|
|
|
encode([_reserve, _user]: [string, string]): string;
|
|
|
|
}>;
|
|
|
|
|
|
|
|
redeemUnderlying: TypedFunctionDescription<{
|
|
|
|
encode([_reserve, _user, _amount, _aTokenBalanceAfterRedeem]: [
|
|
|
|
string,
|
|
|
|
string,
|
|
|
|
BigNumberish,
|
|
|
|
BigNumberish
|
|
|
|
]): string;
|
|
|
|
}>;
|
|
|
|
|
|
|
|
repay: TypedFunctionDescription<{
|
2020-06-30 12:09:28 +00:00
|
|
|
encode([_reserve, _amount, _rateMode, _onBehalfOf]: [
|
2020-06-03 10:23:21 +00:00
|
|
|
string,
|
|
|
|
BigNumberish,
|
2020-06-30 12:09:28 +00:00
|
|
|
BigNumberish,
|
2020-06-03 10:23:21 +00:00
|
|
|
string
|
|
|
|
]): string;
|
|
|
|
}>;
|
|
|
|
|
2020-06-20 23:40:03 +00:00
|
|
|
reservesList: TypedFunctionDescription<{
|
|
|
|
encode([]: [BigNumberish]): string;
|
|
|
|
}>;
|
|
|
|
|
2020-07-23 15:18:06 +00:00
|
|
|
setConfiguration: TypedFunctionDescription<{
|
|
|
|
encode([_reserve, _configuration]: [string, BigNumberish]): string;
|
2020-06-20 23:40:03 +00:00
|
|
|
}>;
|
|
|
|
|
|
|
|
setReserveInterestRateStrategyAddress: TypedFunctionDescription<{
|
|
|
|
encode([_reserve, _rateStrategyAddress]: [string, string]): string;
|
|
|
|
}>;
|
|
|
|
|
2020-06-03 10:23:21 +00:00
|
|
|
setUserUseReserveAsCollateral: TypedFunctionDescription<{
|
|
|
|
encode([_reserve, _useAsCollateral]: [string, boolean]): string;
|
|
|
|
}>;
|
|
|
|
|
|
|
|
swapBorrowRateMode: TypedFunctionDescription<{
|
2020-07-07 10:07:31 +00:00
|
|
|
encode([_reserve, _rateMode]: [string, BigNumberish]): string;
|
2020-06-03 10:23:21 +00:00
|
|
|
}>;
|
|
|
|
};
|
|
|
|
|
|
|
|
events: {
|
|
|
|
Borrow: TypedEventDescription<{
|
|
|
|
encodeTopics([
|
|
|
|
_reserve,
|
|
|
|
_user,
|
|
|
|
_amount,
|
|
|
|
_borrowRateMode,
|
|
|
|
_borrowRate,
|
|
|
|
_referral,
|
2020-07-13 08:54:08 +00:00
|
|
|
_timestamp,
|
|
|
|
]: [string | null, string | null, null, null, null, BigNumberish | null, null]): string[];
|
2020-06-03 10:23:21 +00:00
|
|
|
}>;
|
|
|
|
|
|
|
|
Deposit: TypedEventDescription<{
|
|
|
|
encodeTopics([_reserve, _user, _amount, _referral, _timestamp]: [
|
|
|
|
string | null,
|
|
|
|
string | null,
|
|
|
|
null,
|
|
|
|
BigNumberish | null,
|
|
|
|
null
|
|
|
|
]): string[];
|
|
|
|
}>;
|
|
|
|
|
|
|
|
FlashLoan: TypedEventDescription<{
|
2020-07-13 08:54:08 +00:00
|
|
|
encodeTopics([_target, _reserve, _amount, _totalFee, _protocolFee, _timestamp]: [
|
|
|
|
string | null,
|
|
|
|
string | null,
|
|
|
|
null,
|
|
|
|
null,
|
|
|
|
null,
|
|
|
|
null
|
|
|
|
]): string[];
|
2020-06-03 10:23:21 +00:00
|
|
|
}>;
|
|
|
|
|
|
|
|
LiquidationCall: TypedEventDescription<{
|
|
|
|
encodeTopics([
|
|
|
|
_collateral,
|
|
|
|
_reserve,
|
|
|
|
_user,
|
|
|
|
_purchaseAmount,
|
|
|
|
_liquidatedCollateralAmount,
|
|
|
|
_accruedBorrowInterest,
|
|
|
|
_liquidator,
|
|
|
|
_receiveAToken,
|
2020-07-13 08:54:08 +00:00
|
|
|
_timestamp,
|
2020-06-03 10:23:21 +00:00
|
|
|
]: [
|
|
|
|
string | null,
|
|
|
|
string | null,
|
|
|
|
string | null,
|
|
|
|
null,
|
|
|
|
null,
|
|
|
|
null,
|
|
|
|
null,
|
|
|
|
null,
|
|
|
|
null
|
|
|
|
]): string[];
|
|
|
|
}>;
|
|
|
|
|
|
|
|
OriginationFeeLiquidated: TypedEventDescription<{
|
|
|
|
encodeTopics([
|
|
|
|
_collateral,
|
|
|
|
_reserve,
|
|
|
|
_user,
|
|
|
|
_feeLiquidated,
|
|
|
|
_liquidatedCollateralForFee,
|
2020-07-13 08:54:08 +00:00
|
|
|
_timestamp,
|
|
|
|
]: [string | null, string | null, string | null, null, null, null]): string[];
|
2020-06-03 10:23:21 +00:00
|
|
|
}>;
|
|
|
|
|
|
|
|
RebalanceStableBorrowRate: TypedEventDescription<{
|
2020-07-13 08:54:08 +00:00
|
|
|
encodeTopics([_reserve, _user, _timestamp]: [string | null, string | null, null]): string[];
|
2020-06-03 10:23:21 +00:00
|
|
|
}>;
|
|
|
|
|
|
|
|
RedeemUnderlying: TypedEventDescription<{
|
|
|
|
encodeTopics([_reserve, _user, _amount, _timestamp]: [
|
|
|
|
string | null,
|
|
|
|
string | null,
|
|
|
|
null,
|
|
|
|
null
|
|
|
|
]): string[];
|
|
|
|
}>;
|
|
|
|
|
|
|
|
Repay: TypedEventDescription<{
|
2020-06-30 12:09:28 +00:00
|
|
|
encodeTopics([_reserve, _user, _repayer, _amount, _timestamp]: [
|
2020-06-03 10:23:21 +00:00
|
|
|
string | null,
|
|
|
|
string | null,
|
|
|
|
string | null,
|
|
|
|
null,
|
|
|
|
null
|
|
|
|
]): string[];
|
|
|
|
}>;
|
|
|
|
|
|
|
|
ReserveUsedAsCollateralDisabled: TypedEventDescription<{
|
|
|
|
encodeTopics([_reserve, _user]: [string | null, string | null]): string[];
|
|
|
|
}>;
|
|
|
|
|
|
|
|
ReserveUsedAsCollateralEnabled: TypedEventDescription<{
|
|
|
|
encodeTopics([_reserve, _user]: [string | null, string | null]): string[];
|
|
|
|
}>;
|
|
|
|
|
|
|
|
Swap: TypedEventDescription<{
|
2020-07-13 08:54:08 +00:00
|
|
|
encodeTopics([_reserve, _user, _timestamp]: [string | null, string | null, null]): string[];
|
2020-06-03 10:23:21 +00:00
|
|
|
}>;
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
export class LendingPool extends Contract {
|
|
|
|
connect(signerOrProvider: Signer | Provider | string): LendingPool;
|
|
|
|
attach(addressOrName: string): LendingPool;
|
|
|
|
deployed(): Promise<LendingPool>;
|
|
|
|
|
|
|
|
on(event: EventFilter | string, listener: Listener): LendingPool;
|
|
|
|
once(event: EventFilter | string, listener: Listener): LendingPool;
|
|
|
|
addListener(eventName: EventFilter | string, listener: Listener): LendingPool;
|
|
|
|
removeAllListeners(eventName: EventFilter | string): LendingPool;
|
|
|
|
removeListener(eventName: any, listener: Listener): LendingPool;
|
|
|
|
|
|
|
|
interface: LendingPoolInterface;
|
|
|
|
|
|
|
|
functions: {
|
|
|
|
LENDINGPOOL_REVISION(): Promise<BigNumber>;
|
|
|
|
|
|
|
|
UINT_MAX_VALUE(): Promise<BigNumber>;
|
|
|
|
|
|
|
|
addressesProvider(): Promise<string>;
|
|
|
|
|
2020-06-20 23:40:03 +00:00
|
|
|
balanceDecreaseAllowed(
|
|
|
|
_reserve: string,
|
|
|
|
_user: string,
|
|
|
|
_amount: BigNumberish
|
|
|
|
): Promise<boolean>;
|
|
|
|
|
2020-06-03 10:23:21 +00:00
|
|
|
borrow(
|
|
|
|
_reserve: string,
|
|
|
|
_amount: BigNumberish,
|
|
|
|
_interestRateMode: BigNumberish,
|
|
|
|
_referralCode: BigNumberish,
|
|
|
|
overrides?: TransactionOverrides
|
|
|
|
): Promise<ContractTransaction>;
|
|
|
|
|
|
|
|
deposit(
|
|
|
|
_reserve: string,
|
|
|
|
_amount: BigNumberish,
|
|
|
|
_referralCode: BigNumberish,
|
|
|
|
overrides?: TransactionOverrides
|
|
|
|
): Promise<ContractTransaction>;
|
|
|
|
|
|
|
|
flashLoan(
|
|
|
|
_receiver: string,
|
|
|
|
_reserve: string,
|
|
|
|
_amount: BigNumberish,
|
|
|
|
_params: Arrayish,
|
|
|
|
overrides?: TransactionOverrides
|
|
|
|
): Promise<ContractTransaction>;
|
|
|
|
|
2020-07-23 15:18:06 +00:00
|
|
|
getConfiguration(_reserve: string): Promise<{data: BigNumber; 0: BigNumber}>;
|
|
|
|
|
2020-06-03 10:23:21 +00:00
|
|
|
getReserveConfigurationData(
|
|
|
|
_reserve: string
|
|
|
|
): Promise<{
|
2020-07-08 15:26:50 +00:00
|
|
|
decimals: BigNumber;
|
2020-06-03 10:23:21 +00:00
|
|
|
ltv: BigNumber;
|
|
|
|
liquidationThreshold: BigNumber;
|
|
|
|
liquidationBonus: BigNumber;
|
|
|
|
interestRateStrategyAddress: string;
|
|
|
|
usageAsCollateralEnabled: boolean;
|
|
|
|
borrowingEnabled: boolean;
|
|
|
|
stableBorrowRateEnabled: boolean;
|
|
|
|
isActive: boolean;
|
2020-06-27 02:13:32 +00:00
|
|
|
isFreezed: boolean;
|
2020-06-03 10:23:21 +00:00
|
|
|
0: BigNumber;
|
|
|
|
1: BigNumber;
|
|
|
|
2: BigNumber;
|
2020-07-08 15:26:50 +00:00
|
|
|
3: BigNumber;
|
2020-06-20 23:40:03 +00:00
|
|
|
4: string;
|
2020-07-09 14:27:19 +00:00
|
|
|
5: boolean;
|
2020-06-03 10:23:21 +00:00
|
|
|
6: boolean;
|
|
|
|
7: boolean;
|
2020-06-20 23:40:03 +00:00
|
|
|
8: boolean;
|
2020-06-27 02:13:32 +00:00
|
|
|
9: boolean;
|
2020-06-03 10:23:21 +00:00
|
|
|
}>;
|
|
|
|
|
|
|
|
getReserveData(
|
|
|
|
_reserve: string
|
|
|
|
): Promise<{
|
|
|
|
availableLiquidity: BigNumber;
|
|
|
|
totalBorrowsStable: BigNumber;
|
|
|
|
totalBorrowsVariable: BigNumber;
|
|
|
|
liquidityRate: BigNumber;
|
|
|
|
variableBorrowRate: BigNumber;
|
|
|
|
stableBorrowRate: BigNumber;
|
|
|
|
averageStableBorrowRate: BigNumber;
|
|
|
|
liquidityIndex: BigNumber;
|
|
|
|
variableBorrowIndex: BigNumber;
|
|
|
|
lastUpdateTimestamp: number;
|
|
|
|
0: BigNumber;
|
|
|
|
1: BigNumber;
|
|
|
|
2: BigNumber;
|
|
|
|
3: BigNumber;
|
|
|
|
4: BigNumber;
|
|
|
|
5: BigNumber;
|
|
|
|
6: BigNumber;
|
|
|
|
7: BigNumber;
|
|
|
|
8: BigNumber;
|
2020-06-20 23:40:03 +00:00
|
|
|
9: number;
|
2020-06-03 10:23:21 +00:00
|
|
|
}>;
|
|
|
|
|
2020-06-20 23:40:03 +00:00
|
|
|
getReserveNormalizedIncome(_reserve: string): Promise<BigNumber>;
|
|
|
|
|
2020-06-30 12:09:28 +00:00
|
|
|
getReserveNormalizedVariableDebt(_reserve: string): Promise<BigNumber>;
|
|
|
|
|
2020-07-09 14:27:19 +00:00
|
|
|
getReserveTokensAddresses(
|
|
|
|
_reserve: string
|
|
|
|
): Promise<{
|
|
|
|
aTokenAddress: string;
|
|
|
|
stableDebtTokenAddress: string;
|
|
|
|
variableDebtTokenAddress: string;
|
|
|
|
0: string;
|
|
|
|
1: string;
|
|
|
|
2: string;
|
|
|
|
}>;
|
|
|
|
|
2020-06-03 10:23:21 +00:00
|
|
|
getReserves(): Promise<string[]>;
|
|
|
|
|
|
|
|
getUserAccountData(
|
|
|
|
_user: string
|
|
|
|
): Promise<{
|
|
|
|
totalCollateralETH: BigNumber;
|
|
|
|
totalBorrowsETH: BigNumber;
|
|
|
|
availableBorrowsETH: BigNumber;
|
|
|
|
currentLiquidationThreshold: BigNumber;
|
|
|
|
ltv: BigNumber;
|
|
|
|
healthFactor: BigNumber;
|
|
|
|
0: BigNumber;
|
|
|
|
1: BigNumber;
|
|
|
|
2: BigNumber;
|
|
|
|
3: BigNumber;
|
|
|
|
4: BigNumber;
|
|
|
|
5: BigNumber;
|
|
|
|
}>;
|
|
|
|
|
|
|
|
getUserReserveData(
|
|
|
|
_reserve: string,
|
|
|
|
_user: string
|
|
|
|
): Promise<{
|
|
|
|
currentATokenBalance: BigNumber;
|
2020-07-07 15:14:44 +00:00
|
|
|
currentStableDebt: BigNumber;
|
|
|
|
currentVariableDebt: BigNumber;
|
|
|
|
principalStableDebt: BigNumber;
|
|
|
|
principalVariableDebt: BigNumber;
|
2020-06-30 12:09:28 +00:00
|
|
|
stableBorrowRate: BigNumber;
|
2020-06-03 10:23:21 +00:00
|
|
|
liquidityRate: BigNumber;
|
|
|
|
variableBorrowIndex: BigNumber;
|
2020-07-03 21:20:02 +00:00
|
|
|
stableRateLastUpdated: number;
|
2020-06-03 10:23:21 +00:00
|
|
|
usageAsCollateralEnabled: boolean;
|
|
|
|
0: BigNumber;
|
|
|
|
1: BigNumber;
|
|
|
|
2: BigNumber;
|
|
|
|
3: BigNumber;
|
|
|
|
4: BigNumber;
|
|
|
|
5: BigNumber;
|
|
|
|
6: BigNumber;
|
|
|
|
7: BigNumber;
|
2020-07-03 21:20:02 +00:00
|
|
|
8: number;
|
|
|
|
9: boolean;
|
2020-06-03 10:23:21 +00:00
|
|
|
}>;
|
|
|
|
|
2020-06-20 23:40:03 +00:00
|
|
|
initReserve(
|
|
|
|
_reserve: string,
|
|
|
|
_aTokenAddress: string,
|
2020-06-30 12:09:28 +00:00
|
|
|
_stableDebtAddress: string,
|
|
|
|
_variableDebtAddress: string,
|
2020-06-20 23:40:03 +00:00
|
|
|
_interestRateStrategyAddress: string,
|
|
|
|
overrides?: TransactionOverrides
|
|
|
|
): Promise<ContractTransaction>;
|
|
|
|
|
2020-06-03 10:23:21 +00:00
|
|
|
initialize(
|
|
|
|
_addressesProvider: string,
|
|
|
|
overrides?: TransactionOverrides
|
|
|
|
): Promise<ContractTransaction>;
|
|
|
|
|
|
|
|
liquidationCall(
|
|
|
|
_collateral: string,
|
|
|
|
_reserve: string,
|
|
|
|
_user: string,
|
|
|
|
_purchaseAmount: BigNumberish,
|
|
|
|
_receiveAToken: boolean,
|
|
|
|
overrides?: TransactionOverrides
|
|
|
|
): Promise<ContractTransaction>;
|
|
|
|
|
|
|
|
rebalanceStableBorrowRate(
|
|
|
|
_reserve: string,
|
|
|
|
_user: string,
|
|
|
|
overrides?: TransactionOverrides
|
|
|
|
): Promise<ContractTransaction>;
|
|
|
|
|
|
|
|
redeemUnderlying(
|
|
|
|
_reserve: string,
|
|
|
|
_user: string,
|
|
|
|
_amount: BigNumberish,
|
|
|
|
_aTokenBalanceAfterRedeem: BigNumberish,
|
|
|
|
overrides?: TransactionOverrides
|
|
|
|
): Promise<ContractTransaction>;
|
|
|
|
|
|
|
|
repay(
|
|
|
|
_reserve: string,
|
|
|
|
_amount: BigNumberish,
|
2020-06-30 12:09:28 +00:00
|
|
|
_rateMode: BigNumberish,
|
2020-06-03 10:23:21 +00:00
|
|
|
_onBehalfOf: string,
|
|
|
|
overrides?: TransactionOverrides
|
|
|
|
): Promise<ContractTransaction>;
|
|
|
|
|
2020-06-20 23:40:03 +00:00
|
|
|
reservesList(arg0: BigNumberish): Promise<string>;
|
|
|
|
|
2020-07-23 15:18:06 +00:00
|
|
|
setConfiguration(
|
2020-06-20 23:40:03 +00:00
|
|
|
_reserve: string,
|
2020-07-23 15:18:06 +00:00
|
|
|
_configuration: BigNumberish,
|
2020-06-20 23:40:03 +00:00
|
|
|
overrides?: TransactionOverrides
|
|
|
|
): Promise<ContractTransaction>;
|
|
|
|
|
|
|
|
setReserveInterestRateStrategyAddress(
|
|
|
|
_reserve: string,
|
|
|
|
_rateStrategyAddress: string,
|
|
|
|
overrides?: TransactionOverrides
|
|
|
|
): Promise<ContractTransaction>;
|
|
|
|
|
2020-06-03 10:23:21 +00:00
|
|
|
setUserUseReserveAsCollateral(
|
|
|
|
_reserve: string,
|
|
|
|
_useAsCollateral: boolean,
|
|
|
|
overrides?: TransactionOverrides
|
|
|
|
): Promise<ContractTransaction>;
|
|
|
|
|
|
|
|
swapBorrowRateMode(
|
|
|
|
_reserve: string,
|
2020-07-07 10:07:31 +00:00
|
|
|
_rateMode: BigNumberish,
|
2020-06-03 10:23:21 +00:00
|
|
|
overrides?: TransactionOverrides
|
|
|
|
): Promise<ContractTransaction>;
|
|
|
|
};
|
|
|
|
|
|
|
|
LENDINGPOOL_REVISION(): Promise<BigNumber>;
|
|
|
|
|
|
|
|
UINT_MAX_VALUE(): Promise<BigNumber>;
|
|
|
|
|
|
|
|
addressesProvider(): Promise<string>;
|
|
|
|
|
2020-07-13 08:54:08 +00:00
|
|
|
balanceDecreaseAllowed(_reserve: string, _user: string, _amount: BigNumberish): Promise<boolean>;
|
2020-06-20 23:40:03 +00:00
|
|
|
|
2020-06-03 10:23:21 +00:00
|
|
|
borrow(
|
|
|
|
_reserve: string,
|
|
|
|
_amount: BigNumberish,
|
|
|
|
_interestRateMode: BigNumberish,
|
|
|
|
_referralCode: BigNumberish,
|
|
|
|
overrides?: TransactionOverrides
|
|
|
|
): Promise<ContractTransaction>;
|
|
|
|
|
|
|
|
deposit(
|
|
|
|
_reserve: string,
|
|
|
|
_amount: BigNumberish,
|
|
|
|
_referralCode: BigNumberish,
|
|
|
|
overrides?: TransactionOverrides
|
|
|
|
): Promise<ContractTransaction>;
|
|
|
|
|
|
|
|
flashLoan(
|
|
|
|
_receiver: string,
|
|
|
|
_reserve: string,
|
|
|
|
_amount: BigNumberish,
|
|
|
|
_params: Arrayish,
|
|
|
|
overrides?: TransactionOverrides
|
|
|
|
): Promise<ContractTransaction>;
|
|
|
|
|
2020-07-23 15:18:06 +00:00
|
|
|
getConfiguration(_reserve: string): Promise<{data: BigNumber; 0: BigNumber}>;
|
|
|
|
|
2020-06-03 10:23:21 +00:00
|
|
|
getReserveConfigurationData(
|
|
|
|
_reserve: string
|
|
|
|
): Promise<{
|
2020-07-08 15:26:50 +00:00
|
|
|
decimals: BigNumber;
|
2020-06-03 10:23:21 +00:00
|
|
|
ltv: BigNumber;
|
|
|
|
liquidationThreshold: BigNumber;
|
|
|
|
liquidationBonus: BigNumber;
|
|
|
|
interestRateStrategyAddress: string;
|
|
|
|
usageAsCollateralEnabled: boolean;
|
|
|
|
borrowingEnabled: boolean;
|
|
|
|
stableBorrowRateEnabled: boolean;
|
|
|
|
isActive: boolean;
|
2020-06-27 02:13:32 +00:00
|
|
|
isFreezed: boolean;
|
2020-06-03 10:23:21 +00:00
|
|
|
0: BigNumber;
|
|
|
|
1: BigNumber;
|
|
|
|
2: BigNumber;
|
2020-07-08 15:26:50 +00:00
|
|
|
3: BigNumber;
|
2020-06-20 23:40:03 +00:00
|
|
|
4: string;
|
2020-07-09 14:27:19 +00:00
|
|
|
5: boolean;
|
2020-06-03 10:23:21 +00:00
|
|
|
6: boolean;
|
|
|
|
7: boolean;
|
2020-06-20 23:40:03 +00:00
|
|
|
8: boolean;
|
2020-06-27 02:13:32 +00:00
|
|
|
9: boolean;
|
2020-06-03 10:23:21 +00:00
|
|
|
}>;
|
|
|
|
|
|
|
|
getReserveData(
|
|
|
|
_reserve: string
|
|
|
|
): Promise<{
|
|
|
|
availableLiquidity: BigNumber;
|
|
|
|
totalBorrowsStable: BigNumber;
|
|
|
|
totalBorrowsVariable: BigNumber;
|
|
|
|
liquidityRate: BigNumber;
|
|
|
|
variableBorrowRate: BigNumber;
|
|
|
|
stableBorrowRate: BigNumber;
|
|
|
|
averageStableBorrowRate: BigNumber;
|
|
|
|
liquidityIndex: BigNumber;
|
|
|
|
variableBorrowIndex: BigNumber;
|
|
|
|
lastUpdateTimestamp: number;
|
|
|
|
0: BigNumber;
|
|
|
|
1: BigNumber;
|
|
|
|
2: BigNumber;
|
|
|
|
3: BigNumber;
|
|
|
|
4: BigNumber;
|
|
|
|
5: BigNumber;
|
|
|
|
6: BigNumber;
|
|
|
|
7: BigNumber;
|
|
|
|
8: BigNumber;
|
2020-06-20 23:40:03 +00:00
|
|
|
9: number;
|
2020-06-03 10:23:21 +00:00
|
|
|
}>;
|
|
|
|
|
2020-06-20 23:40:03 +00:00
|
|
|
getReserveNormalizedIncome(_reserve: string): Promise<BigNumber>;
|
|
|
|
|
2020-06-30 12:09:28 +00:00
|
|
|
getReserveNormalizedVariableDebt(_reserve: string): Promise<BigNumber>;
|
|
|
|
|
2020-07-09 14:27:19 +00:00
|
|
|
getReserveTokensAddresses(
|
|
|
|
_reserve: string
|
|
|
|
): Promise<{
|
|
|
|
aTokenAddress: string;
|
|
|
|
stableDebtTokenAddress: string;
|
|
|
|
variableDebtTokenAddress: string;
|
|
|
|
0: string;
|
|
|
|
1: string;
|
|
|
|
2: string;
|
|
|
|
}>;
|
|
|
|
|
2020-06-03 10:23:21 +00:00
|
|
|
getReserves(): Promise<string[]>;
|
|
|
|
|
|
|
|
getUserAccountData(
|
|
|
|
_user: string
|
|
|
|
): Promise<{
|
|
|
|
totalCollateralETH: BigNumber;
|
|
|
|
totalBorrowsETH: BigNumber;
|
|
|
|
availableBorrowsETH: BigNumber;
|
|
|
|
currentLiquidationThreshold: BigNumber;
|
|
|
|
ltv: BigNumber;
|
|
|
|
healthFactor: BigNumber;
|
|
|
|
0: BigNumber;
|
|
|
|
1: BigNumber;
|
|
|
|
2: BigNumber;
|
|
|
|
3: BigNumber;
|
|
|
|
4: BigNumber;
|
|
|
|
5: BigNumber;
|
|
|
|
}>;
|
|
|
|
|
|
|
|
getUserReserveData(
|
|
|
|
_reserve: string,
|
|
|
|
_user: string
|
|
|
|
): Promise<{
|
|
|
|
currentATokenBalance: BigNumber;
|
2020-07-07 15:14:44 +00:00
|
|
|
currentStableDebt: BigNumber;
|
|
|
|
currentVariableDebt: BigNumber;
|
|
|
|
principalStableDebt: BigNumber;
|
|
|
|
principalVariableDebt: BigNumber;
|
2020-06-30 12:09:28 +00:00
|
|
|
stableBorrowRate: BigNumber;
|
2020-06-03 10:23:21 +00:00
|
|
|
liquidityRate: BigNumber;
|
|
|
|
variableBorrowIndex: BigNumber;
|
2020-07-03 21:20:02 +00:00
|
|
|
stableRateLastUpdated: number;
|
2020-06-03 10:23:21 +00:00
|
|
|
usageAsCollateralEnabled: boolean;
|
|
|
|
0: BigNumber;
|
|
|
|
1: BigNumber;
|
|
|
|
2: BigNumber;
|
|
|
|
3: BigNumber;
|
|
|
|
4: BigNumber;
|
|
|
|
5: BigNumber;
|
|
|
|
6: BigNumber;
|
|
|
|
7: BigNumber;
|
2020-07-03 21:20:02 +00:00
|
|
|
8: number;
|
|
|
|
9: boolean;
|
2020-06-03 10:23:21 +00:00
|
|
|
}>;
|
|
|
|
|
2020-06-20 23:40:03 +00:00
|
|
|
initReserve(
|
|
|
|
_reserve: string,
|
|
|
|
_aTokenAddress: string,
|
2020-06-30 12:09:28 +00:00
|
|
|
_stableDebtAddress: string,
|
|
|
|
_variableDebtAddress: string,
|
2020-06-20 23:40:03 +00:00
|
|
|
_interestRateStrategyAddress: string,
|
|
|
|
overrides?: TransactionOverrides
|
|
|
|
): Promise<ContractTransaction>;
|
|
|
|
|
2020-06-03 10:23:21 +00:00
|
|
|
initialize(
|
|
|
|
_addressesProvider: string,
|
|
|
|
overrides?: TransactionOverrides
|
|
|
|
): Promise<ContractTransaction>;
|
|
|
|
|
|
|
|
liquidationCall(
|
|
|
|
_collateral: string,
|
|
|
|
_reserve: string,
|
|
|
|
_user: string,
|
|
|
|
_purchaseAmount: BigNumberish,
|
|
|
|
_receiveAToken: boolean,
|
|
|
|
overrides?: TransactionOverrides
|
|
|
|
): Promise<ContractTransaction>;
|
|
|
|
|
|
|
|
rebalanceStableBorrowRate(
|
|
|
|
_reserve: string,
|
|
|
|
_user: string,
|
|
|
|
overrides?: TransactionOverrides
|
|
|
|
): Promise<ContractTransaction>;
|
|
|
|
|
|
|
|
redeemUnderlying(
|
|
|
|
_reserve: string,
|
|
|
|
_user: string,
|
|
|
|
_amount: BigNumberish,
|
|
|
|
_aTokenBalanceAfterRedeem: BigNumberish,
|
|
|
|
overrides?: TransactionOverrides
|
|
|
|
): Promise<ContractTransaction>;
|
|
|
|
|
|
|
|
repay(
|
|
|
|
_reserve: string,
|
|
|
|
_amount: BigNumberish,
|
2020-06-30 12:09:28 +00:00
|
|
|
_rateMode: BigNumberish,
|
2020-06-03 10:23:21 +00:00
|
|
|
_onBehalfOf: string,
|
|
|
|
overrides?: TransactionOverrides
|
|
|
|
): Promise<ContractTransaction>;
|
|
|
|
|
2020-06-20 23:40:03 +00:00
|
|
|
reservesList(arg0: BigNumberish): Promise<string>;
|
|
|
|
|
2020-07-23 15:18:06 +00:00
|
|
|
setConfiguration(
|
2020-06-20 23:40:03 +00:00
|
|
|
_reserve: string,
|
2020-07-23 15:18:06 +00:00
|
|
|
_configuration: BigNumberish,
|
2020-06-20 23:40:03 +00:00
|
|
|
overrides?: TransactionOverrides
|
|
|
|
): Promise<ContractTransaction>;
|
|
|
|
|
|
|
|
setReserveInterestRateStrategyAddress(
|
|
|
|
_reserve: string,
|
|
|
|
_rateStrategyAddress: string,
|
|
|
|
overrides?: TransactionOverrides
|
|
|
|
): Promise<ContractTransaction>;
|
|
|
|
|
2020-06-03 10:23:21 +00:00
|
|
|
setUserUseReserveAsCollateral(
|
|
|
|
_reserve: string,
|
|
|
|
_useAsCollateral: boolean,
|
|
|
|
overrides?: TransactionOverrides
|
|
|
|
): Promise<ContractTransaction>;
|
|
|
|
|
|
|
|
swapBorrowRateMode(
|
|
|
|
_reserve: string,
|
2020-07-07 10:07:31 +00:00
|
|
|
_rateMode: BigNumberish,
|
2020-06-03 10:23:21 +00:00
|
|
|
overrides?: TransactionOverrides
|
|
|
|
): Promise<ContractTransaction>;
|
|
|
|
|
|
|
|
filters: {
|
|
|
|
Borrow(
|
|
|
|
_reserve: string | null,
|
|
|
|
_user: string | null,
|
|
|
|
_amount: null,
|
|
|
|
_borrowRateMode: null,
|
|
|
|
_borrowRate: null,
|
|
|
|
_referral: BigNumberish | null,
|
|
|
|
_timestamp: null
|
|
|
|
): EventFilter;
|
|
|
|
|
|
|
|
Deposit(
|
|
|
|
_reserve: string | null,
|
|
|
|
_user: string | null,
|
|
|
|
_amount: null,
|
|
|
|
_referral: BigNumberish | null,
|
|
|
|
_timestamp: null
|
|
|
|
): EventFilter;
|
|
|
|
|
|
|
|
FlashLoan(
|
|
|
|
_target: string | null,
|
|
|
|
_reserve: string | null,
|
|
|
|
_amount: null,
|
|
|
|
_totalFee: null,
|
|
|
|
_protocolFee: null,
|
|
|
|
_timestamp: null
|
|
|
|
): EventFilter;
|
|
|
|
|
|
|
|
LiquidationCall(
|
|
|
|
_collateral: string | null,
|
|
|
|
_reserve: string | null,
|
|
|
|
_user: string | null,
|
|
|
|
_purchaseAmount: null,
|
|
|
|
_liquidatedCollateralAmount: null,
|
|
|
|
_accruedBorrowInterest: null,
|
|
|
|
_liquidator: null,
|
|
|
|
_receiveAToken: null,
|
|
|
|
_timestamp: null
|
|
|
|
): EventFilter;
|
|
|
|
|
|
|
|
OriginationFeeLiquidated(
|
|
|
|
_collateral: string | null,
|
|
|
|
_reserve: string | null,
|
|
|
|
_user: string | null,
|
|
|
|
_feeLiquidated: null,
|
|
|
|
_liquidatedCollateralForFee: null,
|
|
|
|
_timestamp: null
|
|
|
|
): EventFilter;
|
|
|
|
|
|
|
|
RebalanceStableBorrowRate(
|
|
|
|
_reserve: string | null,
|
|
|
|
_user: string | null,
|
|
|
|
_timestamp: null
|
|
|
|
): EventFilter;
|
|
|
|
|
|
|
|
RedeemUnderlying(
|
|
|
|
_reserve: string | null,
|
|
|
|
_user: string | null,
|
|
|
|
_amount: null,
|
|
|
|
_timestamp: null
|
|
|
|
): EventFilter;
|
|
|
|
|
|
|
|
Repay(
|
|
|
|
_reserve: string | null,
|
|
|
|
_user: string | null,
|
|
|
|
_repayer: string | null,
|
2020-06-30 12:09:28 +00:00
|
|
|
_amount: null,
|
2020-06-03 10:23:21 +00:00
|
|
|
_timestamp: null
|
|
|
|
): EventFilter;
|
|
|
|
|
2020-07-13 08:54:08 +00:00
|
|
|
ReserveUsedAsCollateralDisabled(_reserve: string | null, _user: string | null): EventFilter;
|
2020-06-03 10:23:21 +00:00
|
|
|
|
2020-07-13 08:54:08 +00:00
|
|
|
ReserveUsedAsCollateralEnabled(_reserve: string | null, _user: string | null): EventFilter;
|
2020-06-03 10:23:21 +00:00
|
|
|
|
2020-07-13 08:54:08 +00:00
|
|
|
Swap(_reserve: string | null, _user: string | null, _timestamp: null): EventFilter;
|
2020-06-03 10:23:21 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
estimate: {
|
|
|
|
LENDINGPOOL_REVISION(): Promise<BigNumber>;
|
|
|
|
|
|
|
|
UINT_MAX_VALUE(): Promise<BigNumber>;
|
|
|
|
|
|
|
|
addressesProvider(): Promise<BigNumber>;
|
|
|
|
|
2020-06-20 23:40:03 +00:00
|
|
|
balanceDecreaseAllowed(
|
|
|
|
_reserve: string,
|
|
|
|
_user: string,
|
|
|
|
_amount: BigNumberish
|
|
|
|
): Promise<BigNumber>;
|
|
|
|
|
2020-06-03 10:23:21 +00:00
|
|
|
borrow(
|
|
|
|
_reserve: string,
|
|
|
|
_amount: BigNumberish,
|
|
|
|
_interestRateMode: BigNumberish,
|
|
|
|
_referralCode: BigNumberish
|
|
|
|
): Promise<BigNumber>;
|
|
|
|
|
|
|
|
deposit(
|
|
|
|
_reserve: string,
|
|
|
|
_amount: BigNumberish,
|
|
|
|
_referralCode: BigNumberish
|
|
|
|
): Promise<BigNumber>;
|
|
|
|
|
|
|
|
flashLoan(
|
|
|
|
_receiver: string,
|
|
|
|
_reserve: string,
|
|
|
|
_amount: BigNumberish,
|
|
|
|
_params: Arrayish
|
|
|
|
): Promise<BigNumber>;
|
|
|
|
|
2020-07-23 15:18:06 +00:00
|
|
|
getConfiguration(_reserve: string): Promise<BigNumber>;
|
|
|
|
|
2020-06-03 10:23:21 +00:00
|
|
|
getReserveConfigurationData(_reserve: string): Promise<BigNumber>;
|
|
|
|
|
|
|
|
getReserveData(_reserve: string): Promise<BigNumber>;
|
|
|
|
|
2020-06-20 23:40:03 +00:00
|
|
|
getReserveNormalizedIncome(_reserve: string): Promise<BigNumber>;
|
|
|
|
|
2020-06-30 12:09:28 +00:00
|
|
|
getReserveNormalizedVariableDebt(_reserve: string): Promise<BigNumber>;
|
|
|
|
|
2020-07-09 14:27:19 +00:00
|
|
|
getReserveTokensAddresses(_reserve: string): Promise<BigNumber>;
|
|
|
|
|
2020-06-03 10:23:21 +00:00
|
|
|
getReserves(): Promise<BigNumber>;
|
|
|
|
|
|
|
|
getUserAccountData(_user: string): Promise<BigNumber>;
|
|
|
|
|
|
|
|
getUserReserveData(_reserve: string, _user: string): Promise<BigNumber>;
|
|
|
|
|
2020-06-20 23:40:03 +00:00
|
|
|
initReserve(
|
|
|
|
_reserve: string,
|
|
|
|
_aTokenAddress: string,
|
2020-06-30 12:09:28 +00:00
|
|
|
_stableDebtAddress: string,
|
|
|
|
_variableDebtAddress: string,
|
2020-06-20 23:40:03 +00:00
|
|
|
_interestRateStrategyAddress: string
|
|
|
|
): Promise<BigNumber>;
|
|
|
|
|
2020-06-03 10:23:21 +00:00
|
|
|
initialize(_addressesProvider: string): Promise<BigNumber>;
|
|
|
|
|
|
|
|
liquidationCall(
|
|
|
|
_collateral: string,
|
|
|
|
_reserve: string,
|
|
|
|
_user: string,
|
|
|
|
_purchaseAmount: BigNumberish,
|
|
|
|
_receiveAToken: boolean
|
|
|
|
): Promise<BigNumber>;
|
|
|
|
|
2020-07-13 08:54:08 +00:00
|
|
|
rebalanceStableBorrowRate(_reserve: string, _user: string): Promise<BigNumber>;
|
2020-06-03 10:23:21 +00:00
|
|
|
|
|
|
|
redeemUnderlying(
|
|
|
|
_reserve: string,
|
|
|
|
_user: string,
|
|
|
|
_amount: BigNumberish,
|
|
|
|
_aTokenBalanceAfterRedeem: BigNumberish
|
|
|
|
): Promise<BigNumber>;
|
|
|
|
|
|
|
|
repay(
|
|
|
|
_reserve: string,
|
|
|
|
_amount: BigNumberish,
|
2020-06-30 12:09:28 +00:00
|
|
|
_rateMode: BigNumberish,
|
2020-06-03 10:23:21 +00:00
|
|
|
_onBehalfOf: string
|
|
|
|
): Promise<BigNumber>;
|
|
|
|
|
2020-06-20 23:40:03 +00:00
|
|
|
reservesList(arg0: BigNumberish): Promise<BigNumber>;
|
|
|
|
|
2020-07-23 15:18:06 +00:00
|
|
|
setConfiguration(_reserve: string, _configuration: BigNumberish): Promise<BigNumber>;
|
2020-06-20 23:40:03 +00:00
|
|
|
|
|
|
|
setReserveInterestRateStrategyAddress(
|
|
|
|
_reserve: string,
|
|
|
|
_rateStrategyAddress: string
|
|
|
|
): Promise<BigNumber>;
|
|
|
|
|
2020-07-13 08:54:08 +00:00
|
|
|
setUserUseReserveAsCollateral(_reserve: string, _useAsCollateral: boolean): Promise<BigNumber>;
|
2020-06-03 10:23:21 +00:00
|
|
|
|
2020-07-13 08:54:08 +00:00
|
|
|
swapBorrowRateMode(_reserve: string, _rateMode: BigNumberish): Promise<BigNumber>;
|
2020-06-03 10:23:21 +00:00
|
|
|
};
|
|
|
|
}
|