2020-06-03 10:23:21 +00:00
|
|
|
/* Generated by ts-generator ver. 0.0.8 */
|
|
|
|
/* tslint:disable */
|
|
|
|
|
|
|
|
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 ".";
|
|
|
|
|
|
|
|
interface LendingPoolLiquidationManagerInterface extends Interface {
|
|
|
|
functions: {
|
|
|
|
addressesProvider: TypedFunctionDescription<{ encode([]: []): string }>;
|
|
|
|
|
|
|
|
liquidationCall: TypedFunctionDescription<{
|
|
|
|
encode([_collateral, _reserve, _user, _purchaseAmount, _receiveAToken]: [
|
|
|
|
string,
|
|
|
|
string,
|
|
|
|
string,
|
|
|
|
BigNumberish,
|
|
|
|
boolean
|
|
|
|
]): string;
|
|
|
|
}>;
|
2020-06-20 23:40:03 +00:00
|
|
|
|
|
|
|
reservesList: TypedFunctionDescription<{
|
|
|
|
encode([]: [BigNumberish]): string;
|
|
|
|
}>;
|
2020-06-03 10:23:21 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
events: {
|
|
|
|
LiquidationCall: TypedEventDescription<{
|
|
|
|
encodeTopics([
|
|
|
|
_collateral,
|
|
|
|
_reserve,
|
|
|
|
_user,
|
|
|
|
_purchaseAmount,
|
|
|
|
_liquidatedCollateralAmount,
|
|
|
|
_liquidator,
|
|
|
|
_receiveAToken,
|
|
|
|
_timestamp
|
|
|
|
]: [
|
|
|
|
string | null,
|
|
|
|
string | null,
|
|
|
|
string | null,
|
|
|
|
null,
|
|
|
|
null,
|
|
|
|
null,
|
|
|
|
null,
|
|
|
|
null
|
|
|
|
]): string[];
|
|
|
|
}>;
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
export class LendingPoolLiquidationManager extends Contract {
|
|
|
|
connect(
|
|
|
|
signerOrProvider: Signer | Provider | string
|
|
|
|
): LendingPoolLiquidationManager;
|
|
|
|
attach(addressOrName: string): LendingPoolLiquidationManager;
|
|
|
|
deployed(): Promise<LendingPoolLiquidationManager>;
|
|
|
|
|
|
|
|
on(
|
|
|
|
event: EventFilter | string,
|
|
|
|
listener: Listener
|
|
|
|
): LendingPoolLiquidationManager;
|
|
|
|
once(
|
|
|
|
event: EventFilter | string,
|
|
|
|
listener: Listener
|
|
|
|
): LendingPoolLiquidationManager;
|
|
|
|
addListener(
|
|
|
|
eventName: EventFilter | string,
|
|
|
|
listener: Listener
|
|
|
|
): LendingPoolLiquidationManager;
|
|
|
|
removeAllListeners(
|
|
|
|
eventName: EventFilter | string
|
|
|
|
): LendingPoolLiquidationManager;
|
|
|
|
removeListener(
|
|
|
|
eventName: any,
|
|
|
|
listener: Listener
|
|
|
|
): LendingPoolLiquidationManager;
|
|
|
|
|
|
|
|
interface: LendingPoolLiquidationManagerInterface;
|
|
|
|
|
|
|
|
functions: {
|
|
|
|
addressesProvider(): Promise<string>;
|
|
|
|
|
|
|
|
liquidationCall(
|
|
|
|
_collateral: string,
|
|
|
|
_reserve: string,
|
|
|
|
_user: string,
|
|
|
|
_purchaseAmount: BigNumberish,
|
|
|
|
_receiveAToken: boolean,
|
|
|
|
overrides?: TransactionOverrides
|
|
|
|
): Promise<ContractTransaction>;
|
2020-06-20 23:40:03 +00:00
|
|
|
|
|
|
|
reservesList(arg0: BigNumberish): Promise<string>;
|
2020-06-03 10:23:21 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
addressesProvider(): Promise<string>;
|
|
|
|
|
|
|
|
liquidationCall(
|
|
|
|
_collateral: string,
|
|
|
|
_reserve: string,
|
|
|
|
_user: string,
|
|
|
|
_purchaseAmount: BigNumberish,
|
|
|
|
_receiveAToken: boolean,
|
|
|
|
overrides?: TransactionOverrides
|
|
|
|
): Promise<ContractTransaction>;
|
|
|
|
|
2020-06-20 23:40:03 +00:00
|
|
|
reservesList(arg0: BigNumberish): Promise<string>;
|
|
|
|
|
2020-06-03 10:23:21 +00:00
|
|
|
filters: {
|
|
|
|
LiquidationCall(
|
|
|
|
_collateral: string | null,
|
|
|
|
_reserve: string | null,
|
|
|
|
_user: string | null,
|
|
|
|
_purchaseAmount: null,
|
|
|
|
_liquidatedCollateralAmount: null,
|
|
|
|
_liquidator: null,
|
|
|
|
_receiveAToken: null,
|
|
|
|
_timestamp: null
|
|
|
|
): EventFilter;
|
|
|
|
};
|
|
|
|
|
|
|
|
estimate: {
|
|
|
|
addressesProvider(): Promise<BigNumber>;
|
|
|
|
|
|
|
|
liquidationCall(
|
|
|
|
_collateral: string,
|
|
|
|
_reserve: string,
|
|
|
|
_user: string,
|
|
|
|
_purchaseAmount: BigNumberish,
|
|
|
|
_receiveAToken: boolean
|
|
|
|
): Promise<BigNumber>;
|
2020-06-20 23:40:03 +00:00
|
|
|
|
|
|
|
reservesList(arg0: BigNumberish): Promise<BigNumber>;
|
2020-06-03 10:23:21 +00:00
|
|
|
};
|
|
|
|
}
|