mirror of
https://github.com/Instadapp/aave-protocol-v2.git
synced 2024-07-29 21:47:30 +00:00
171 lines
4.0 KiB
TypeScript
171 lines
4.0 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,
|
|
_accruedBorrowInterest,
|
|
_liquidator,
|
|
_receiveAToken,
|
|
_timestamp
|
|
]: [
|
|
string | null,
|
|
string | null,
|
|
string | null,
|
|
null,
|
|
null,
|
|
null,
|
|
null,
|
|
null,
|
|
null
|
|
]): string[];
|
|
}>;
|
|
|
|
OriginationFeeLiquidated: TypedEventDescription<{
|
|
encodeTopics([
|
|
_collateral,
|
|
_reserve,
|
|
_user,
|
|
_feeLiquidated,
|
|
_liquidatedCollateralForFee,
|
|
_timestamp
|
|
]: [
|
|
string | null,
|
|
string | null,
|
|
string | 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,
|
|
_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;
|
|
};
|
|
|
|
estimate: {
|
|
addressesProvider(): Promise<BigNumber>;
|
|
|
|
liquidationCall(
|
|
_collateral: string,
|
|
_reserve: string,
|
|
_user: string,
|
|
_purchaseAmount: BigNumberish,
|
|
_receiveAToken: boolean
|
|
): Promise<BigNumber>;
|
|
|
|
reservesList(arg0: BigNumberish): Promise<BigNumber>;
|
|
};
|
|
}
|