aave-protocol-v2/types/FeeProvider.d.ts

101 lines
2.7 KiB
TypeScript
Raw Normal View History

2020-06-03 10:23:21 +00:00
/* Generated by ts-generator ver. 0.0.8 */
/* tslint:disable */
2020-08-07 17:29:13 +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 FeeProviderInterface extends Interface {
functions: {
2020-08-07 17:29:13 +00:00
FEE_PROVIDER_REVISION: TypedFunctionDescription<{ encode([]: []): string }>;
2020-06-03 10:23:21 +00:00
calculateLoanOriginationFee: TypedFunctionDescription<{
encode([_user, _amount]: [string, BigNumberish]): string;
}>;
getLoanOriginationFeePercentage: TypedFunctionDescription<{
encode([]: []): string;
}>;
initialize: TypedFunctionDescription<{
encode([_addressesProvider]: [string]): string;
}>;
originationFeePercentage: TypedFunctionDescription<{
encode([]: []): string;
}>;
};
events: {};
}
export class FeeProvider extends Contract {
connect(signerOrProvider: Signer | Provider | string): FeeProvider;
attach(addressOrName: string): FeeProvider;
deployed(): Promise<FeeProvider>;
on(event: EventFilter | string, listener: Listener): FeeProvider;
once(event: EventFilter | string, listener: Listener): FeeProvider;
addListener(eventName: EventFilter | string, listener: Listener): FeeProvider;
removeAllListeners(eventName: EventFilter | string): FeeProvider;
removeListener(eventName: any, listener: Listener): FeeProvider;
interface: FeeProviderInterface;
functions: {
FEE_PROVIDER_REVISION(): Promise<BigNumber>;
2020-08-07 17:29:13 +00:00
calculateLoanOriginationFee(
_user: string,
_amount: BigNumberish
): Promise<BigNumber>;
2020-06-03 10:23:21 +00:00
getLoanOriginationFeePercentage(): Promise<BigNumber>;
initialize(
_addressesProvider: string,
overrides?: TransactionOverrides
): Promise<ContractTransaction>;
originationFeePercentage(): Promise<BigNumber>;
};
FEE_PROVIDER_REVISION(): Promise<BigNumber>;
2020-08-07 17:29:13 +00:00
calculateLoanOriginationFee(
_user: string,
_amount: BigNumberish
): Promise<BigNumber>;
2020-06-03 10:23:21 +00:00
getLoanOriginationFeePercentage(): Promise<BigNumber>;
initialize(
_addressesProvider: string,
overrides?: TransactionOverrides
): Promise<ContractTransaction>;
originationFeePercentage(): Promise<BigNumber>;
filters: {};
estimate: {
FEE_PROVIDER_REVISION(): Promise<BigNumber>;
2020-08-07 17:29:13 +00:00
calculateLoanOriginationFee(
_user: string,
_amount: BigNumberish
): Promise<BigNumber>;
2020-06-03 10:23:21 +00:00
getLoanOriginationFeePercentage(): Promise<BigNumber>;
initialize(_addressesProvider: string): Promise<BigNumber>;
originationFeePercentage(): Promise<BigNumber>;
};
}