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

244 lines
6.5 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 DebtTokenBaseInterface extends Interface {
functions: {
allowance: TypedFunctionDescription<{
encode([owner, spender]: [string, string]): string;
}>;
approve: TypedFunctionDescription<{
encode([spender, _amount]: [string, BigNumberish]): string;
2020-06-30 12:09:28 +00:00
}>;
2020-07-13 08:54:08 +00:00
balanceOf: TypedFunctionDescription<{encode([_user]: [string]): string}>;
2020-06-30 12:09:28 +00:00
2020-07-13 08:54:08 +00:00
decimals: TypedFunctionDescription<{encode([]: []): string}>;
2020-06-30 12:09:28 +00:00
decreaseAllowance: TypedFunctionDescription<{
encode([spender, subtractedValue]: [string, BigNumberish]): string;
}>;
increaseAllowance: TypedFunctionDescription<{
encode([spender, addedValue]: [string, BigNumberish]): string;
}>;
init: TypedFunctionDescription<{
encode([_name, _symbol, _decimals, _underlying, _addressesProvider]: [
string,
string,
BigNumberish,
string,
string
]): string;
}>;
2020-07-13 08:54:08 +00:00
name: TypedFunctionDescription<{encode([]: []): string}>;
2020-06-30 12:09:28 +00:00
principalBalanceOf: TypedFunctionDescription<{
encode([_user]: [string]): string;
2020-06-30 12:09:28 +00:00
}>;
2020-07-13 08:54:08 +00:00
symbol: TypedFunctionDescription<{encode([]: []): string}>;
2020-06-30 12:09:28 +00:00
2020-07-13 08:54:08 +00:00
totalSupply: TypedFunctionDescription<{encode([]: []): string}>;
2020-06-30 12:09:28 +00:00
transfer: TypedFunctionDescription<{
encode([recipient, _amount]: [string, BigNumberish]): string;
2020-06-30 12:09:28 +00:00
}>;
transferFrom: TypedFunctionDescription<{
2020-07-13 08:54:08 +00:00
encode([sender, recipient, _amount]: [string, string, BigNumberish]): string;
2020-06-30 12:09:28 +00:00
}>;
underlyingAssetAddress: TypedFunctionDescription<{
encode([]: []): string;
}>;
};
events: {
Approval: TypedEventDescription<{
2020-07-13 08:54:08 +00:00
encodeTopics([owner, spender, value]: [string | null, string | null, null]): string[];
2020-06-30 12:09:28 +00:00
}>;
Transfer: TypedEventDescription<{
2020-07-13 08:54:08 +00:00
encodeTopics([from, to, value]: [string | null, string | null, null]): string[];
2020-06-30 12:09:28 +00:00
}>;
};
}
export class DebtTokenBase extends Contract {
connect(signerOrProvider: Signer | Provider | string): DebtTokenBase;
attach(addressOrName: string): DebtTokenBase;
deployed(): Promise<DebtTokenBase>;
on(event: EventFilter | string, listener: Listener): DebtTokenBase;
once(event: EventFilter | string, listener: Listener): DebtTokenBase;
2020-07-13 08:54:08 +00:00
addListener(eventName: EventFilter | string, listener: Listener): DebtTokenBase;
2020-06-30 12:09:28 +00:00
removeAllListeners(eventName: EventFilter | string): DebtTokenBase;
removeListener(eventName: any, listener: Listener): DebtTokenBase;
interface: DebtTokenBaseInterface;
functions: {
allowance(owner: string, spender: string): Promise<BigNumber>;
approve(
spender: string,
_amount: BigNumberish,
2020-06-30 12:09:28 +00:00
overrides?: TransactionOverrides
): Promise<ContractTransaction>;
balanceOf(_user: string): Promise<BigNumber>;
2020-06-30 12:09:28 +00:00
decimals(): Promise<number>;
decreaseAllowance(
spender: string,
subtractedValue: BigNumberish,
overrides?: TransactionOverrides
): Promise<ContractTransaction>;
increaseAllowance(
spender: string,
addedValue: BigNumberish,
overrides?: TransactionOverrides
): Promise<ContractTransaction>;
init(
_name: string,
_symbol: string,
_decimals: BigNumberish,
_underlying: string,
_addressesProvider: string,
overrides?: TransactionOverrides
): Promise<ContractTransaction>;
name(): Promise<string>;
principalBalanceOf(_user: string): Promise<BigNumber>;
2020-06-30 12:09:28 +00:00
symbol(): Promise<string>;
totalSupply(): Promise<BigNumber>;
transfer(
recipient: string,
_amount: BigNumberish,
2020-06-30 12:09:28 +00:00
overrides?: TransactionOverrides
): Promise<ContractTransaction>;
transferFrom(
sender: string,
recipient: string,
_amount: BigNumberish,
2020-06-30 12:09:28 +00:00
overrides?: TransactionOverrides
): Promise<ContractTransaction>;
underlyingAssetAddress(): Promise<string>;
};
allowance(owner: string, spender: string): Promise<BigNumber>;
approve(
spender: string,
_amount: BigNumberish,
2020-06-30 12:09:28 +00:00
overrides?: TransactionOverrides
): Promise<ContractTransaction>;
balanceOf(_user: string): Promise<BigNumber>;
2020-06-30 12:09:28 +00:00
decimals(): Promise<number>;
decreaseAllowance(
spender: string,
subtractedValue: BigNumberish,
overrides?: TransactionOverrides
): Promise<ContractTransaction>;
increaseAllowance(
spender: string,
addedValue: BigNumberish,
overrides?: TransactionOverrides
): Promise<ContractTransaction>;
init(
_name: string,
_symbol: string,
_decimals: BigNumberish,
_underlying: string,
_addressesProvider: string,
overrides?: TransactionOverrides
): Promise<ContractTransaction>;
name(): Promise<string>;
principalBalanceOf(_user: string): Promise<BigNumber>;
2020-06-30 12:09:28 +00:00
symbol(): Promise<string>;
totalSupply(): Promise<BigNumber>;
transfer(
recipient: string,
_amount: BigNumberish,
2020-06-30 12:09:28 +00:00
overrides?: TransactionOverrides
): Promise<ContractTransaction>;
transferFrom(
sender: string,
recipient: string,
_amount: BigNumberish,
2020-06-30 12:09:28 +00:00
overrides?: TransactionOverrides
): Promise<ContractTransaction>;
underlyingAssetAddress(): Promise<string>;
filters: {
2020-07-13 08:54:08 +00:00
Approval(owner: string | null, spender: string | null, value: null): EventFilter;
2020-06-30 12:09:28 +00:00
Transfer(from: string | null, to: string | null, value: null): EventFilter;
};
estimate: {
allowance(owner: string, spender: string): Promise<BigNumber>;
approve(spender: string, _amount: BigNumberish): Promise<BigNumber>;
2020-06-30 12:09:28 +00:00
balanceOf(_user: string): Promise<BigNumber>;
2020-06-30 12:09:28 +00:00
decimals(): Promise<BigNumber>;
2020-07-13 08:54:08 +00:00
decreaseAllowance(spender: string, subtractedValue: BigNumberish): Promise<BigNumber>;
2020-06-30 12:09:28 +00:00
2020-07-13 08:54:08 +00:00
increaseAllowance(spender: string, addedValue: BigNumberish): Promise<BigNumber>;
2020-06-30 12:09:28 +00:00
init(
_name: string,
_symbol: string,
_decimals: BigNumberish,
_underlying: string,
_addressesProvider: string
): Promise<BigNumber>;
name(): Promise<BigNumber>;
principalBalanceOf(_user: string): Promise<BigNumber>;
2020-06-30 12:09:28 +00:00
symbol(): Promise<BigNumber>;
totalSupply(): Promise<BigNumber>;
transfer(recipient: string, _amount: BigNumberish): Promise<BigNumber>;
2020-06-30 12:09:28 +00:00
2020-07-13 08:54:08 +00:00
transferFrom(sender: string, recipient: string, _amount: BigNumberish): Promise<BigNumber>;
2020-06-30 12:09:28 +00:00
underlyingAssetAddress(): Promise<BigNumber>;
};
}