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

80 lines
2.3 KiB
TypeScript
Raw Normal View History

2020-06-30 12:09:28 +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-30 12:09:28 +00:00
interface IVariableDebtTokenInterface extends Interface {
functions: {
burn: TypedFunctionDescription<{
encode([_user, _amount]: [string, BigNumberish]): string;
2020-06-30 12:09:28 +00:00
}>;
2020-07-03 21:20:02 +00:00
getUserIndex: TypedFunctionDescription<{
encode([_user]: [string]): string;
2020-07-03 21:20:02 +00:00
}>;
2020-06-30 12:09:28 +00:00
mint: TypedFunctionDescription<{
encode([_user, _amount]: [string, BigNumberish]): string;
2020-06-30 12:09:28 +00:00
}>;
};
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;
2020-07-13 08:54:08 +00:00
addListener(eventName: EventFilter | string, listener: Listener): IVariableDebtToken;
2020-06-30 12:09:28 +00:00
removeAllListeners(eventName: EventFilter | string): IVariableDebtToken;
removeListener(eventName: any, listener: Listener): IVariableDebtToken;
interface: IVariableDebtTokenInterface;
functions: {
burn(
_user: string,
2020-06-30 12:09:28 +00:00
_amount: BigNumberish,
overrides?: TransactionOverrides
): Promise<ContractTransaction>;
getUserIndex(_user: string): Promise<BigNumber>;
2020-07-03 21:20:02 +00:00
2020-06-30 12:09:28 +00:00
mint(
_user: string,
_amount: BigNumberish,
2020-06-30 12:09:28 +00:00
overrides?: TransactionOverrides
): Promise<ContractTransaction>;
};
burn(
_user: string,
2020-06-30 12:09:28 +00:00
_amount: BigNumberish,
overrides?: TransactionOverrides
): Promise<ContractTransaction>;
getUserIndex(_user: string): Promise<BigNumber>;
2020-07-03 21:20:02 +00:00
2020-06-30 12:09:28 +00:00
mint(
_user: string,
_amount: BigNumberish,
2020-06-30 12:09:28 +00:00
overrides?: TransactionOverrides
): Promise<ContractTransaction>;
filters: {};
estimate: {
burn(_user: string, _amount: BigNumberish): Promise<BigNumber>;
2020-06-30 12:09:28 +00:00
getUserIndex(_user: string): Promise<BigNumber>;
2020-07-03 21:20:02 +00:00
mint(_user: string, _amount: BigNumberish): Promise<BigNumber>;
2020-06-30 12:09:28 +00:00
};
}