aave-protocol-v2/types/LendingPoolLiquidationManager.d.ts
2020-07-13 11:54:08 +03:00

112 lines
3.2 KiB
TypeScript

/* 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;
}>;
reservesList: TypedFunctionDescription<{
encode([]: [BigNumberish]): string;
}>;
};
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>;
reservesList(arg0: BigNumberish): Promise<string>;
};
addressesProvider(): Promise<string>;
liquidationCall(
_collateral: string,
_reserve: string,
_user: string,
_purchaseAmount: BigNumberish,
_receiveAToken: boolean,
overrides?: TransactionOverrides
): Promise<ContractTransaction>;
reservesList(arg0: BigNumberish): Promise<string>;
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>;
reservesList(arg0: BigNumberish): Promise<BigNumber>;
};
}