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

80 lines
2.3 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 IVariableDebtTokenInterface extends Interface {
functions: {
burn: TypedFunctionDescription<{
encode([_user, _amount]: [string, BigNumberish]): string;
}>;
getUserIndex: TypedFunctionDescription<{
encode([_user]: [string]): string;
}>;
mint: TypedFunctionDescription<{
encode([_user, _amount]: [string, BigNumberish]): string;
}>;
};
events: {};
}
export class IVariableDebtToken extends Contract {
connect(signerOrProvider: Signer | Provider | string): IVariableDebtToken;
attach(addressOrName: string): IVariableDebtToken;
deployed(): Promise<IVariableDebtToken>;
on(event: EventFilter | string, listener: Listener): IVariableDebtToken;
once(event: EventFilter | string, listener: Listener): IVariableDebtToken;
addListener(eventName: EventFilter | string, listener: Listener): IVariableDebtToken;
removeAllListeners(eventName: EventFilter | string): IVariableDebtToken;
removeListener(eventName: any, listener: Listener): IVariableDebtToken;
interface: IVariableDebtTokenInterface;
functions: {
burn(
_user: string,
_amount: BigNumberish,
overrides?: TransactionOverrides
): Promise<ContractTransaction>;
getUserIndex(_user: string): Promise<BigNumber>;
mint(
_user: string,
_amount: BigNumberish,
overrides?: TransactionOverrides
): Promise<ContractTransaction>;
};
burn(
_user: string,
_amount: BigNumberish,
overrides?: TransactionOverrides
): Promise<ContractTransaction>;
getUserIndex(_user: string): Promise<BigNumber>;
mint(
_user: string,
_amount: BigNumberish,
overrides?: TransactionOverrides
): Promise<ContractTransaction>;
filters: {};
estimate: {
burn(_user: string, _amount: BigNumberish): Promise<BigNumber>;
getUserIndex(_user: string): Promise<BigNumber>;
mint(_user: string, _amount: BigNumberish): Promise<BigNumber>;
};
}