2020-06-20 23:40:03 +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-20 23:40:03 +00:00
|
|
|
|
|
|
|
interface GenericLogicInterface extends Interface {
|
|
|
|
functions: {
|
|
|
|
HEALTH_FACTOR_LIQUIDATION_THRESHOLD: TypedFunctionDescription<{
|
|
|
|
encode([]: []): string;
|
|
|
|
}>;
|
|
|
|
|
|
|
|
calculateAvailableBorrowsETH: TypedFunctionDescription<{
|
2020-07-13 08:54:08 +00:00
|
|
|
encode([collateralBalanceETH, borrowBalanceETH, totalFeesETH, ltv, _feeProvider]: [
|
2020-06-20 23:40:03 +00:00
|
|
|
BigNumberish,
|
|
|
|
BigNumberish,
|
|
|
|
BigNumberish,
|
|
|
|
BigNumberish,
|
|
|
|
string
|
|
|
|
]): string;
|
|
|
|
}>;
|
|
|
|
};
|
|
|
|
|
|
|
|
events: {};
|
|
|
|
}
|
|
|
|
|
|
|
|
export class GenericLogic extends Contract {
|
|
|
|
connect(signerOrProvider: Signer | Provider | string): GenericLogic;
|
|
|
|
attach(addressOrName: string): GenericLogic;
|
|
|
|
deployed(): Promise<GenericLogic>;
|
|
|
|
|
|
|
|
on(event: EventFilter | string, listener: Listener): GenericLogic;
|
|
|
|
once(event: EventFilter | string, listener: Listener): GenericLogic;
|
2020-07-13 08:54:08 +00:00
|
|
|
addListener(eventName: EventFilter | string, listener: Listener): GenericLogic;
|
2020-06-20 23:40:03 +00:00
|
|
|
removeAllListeners(eventName: EventFilter | string): GenericLogic;
|
|
|
|
removeListener(eventName: any, listener: Listener): GenericLogic;
|
|
|
|
|
|
|
|
interface: GenericLogicInterface;
|
|
|
|
|
|
|
|
functions: {
|
|
|
|
HEALTH_FACTOR_LIQUIDATION_THRESHOLD(): Promise<BigNumber>;
|
|
|
|
|
|
|
|
calculateAvailableBorrowsETH(
|
|
|
|
collateralBalanceETH: BigNumberish,
|
|
|
|
borrowBalanceETH: BigNumberish,
|
|
|
|
totalFeesETH: BigNumberish,
|
|
|
|
ltv: BigNumberish,
|
|
|
|
_feeProvider: string
|
|
|
|
): Promise<BigNumber>;
|
|
|
|
};
|
|
|
|
|
|
|
|
HEALTH_FACTOR_LIQUIDATION_THRESHOLD(): Promise<BigNumber>;
|
|
|
|
|
|
|
|
calculateAvailableBorrowsETH(
|
|
|
|
collateralBalanceETH: BigNumberish,
|
|
|
|
borrowBalanceETH: BigNumberish,
|
|
|
|
totalFeesETH: BigNumberish,
|
|
|
|
ltv: BigNumberish,
|
|
|
|
_feeProvider: string
|
|
|
|
): Promise<BigNumber>;
|
|
|
|
|
|
|
|
filters: {};
|
|
|
|
|
|
|
|
estimate: {
|
|
|
|
HEALTH_FACTOR_LIQUIDATION_THRESHOLD(): Promise<BigNumber>;
|
|
|
|
|
|
|
|
calculateAvailableBorrowsETH(
|
|
|
|
collateralBalanceETH: BigNumberish,
|
|
|
|
borrowBalanceETH: BigNumberish,
|
|
|
|
totalFeesETH: BigNumberish,
|
|
|
|
ltv: BigNumberish,
|
|
|
|
_feeProvider: string
|
|
|
|
): Promise<BigNumber>;
|
|
|
|
};
|
|
|
|
}
|