2020-06-30 12:09:28 +00:00
|
|
|
/* 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 VariableDebtTokenInterface extends Interface {
|
|
|
|
functions: {
|
|
|
|
allowance: TypedFunctionDescription<{
|
|
|
|
encode([owner, spender]: [string, string]): string;
|
|
|
|
}>;
|
|
|
|
|
|
|
|
approve: TypedFunctionDescription<{
|
2020-07-09 14:27:19 +00:00
|
|
|
encode([spender, _amount]: [string, BigNumberish]): string;
|
2020-06-30 12:09:28 +00:00
|
|
|
}>;
|
|
|
|
|
2020-07-09 14:27:19 +00:00
|
|
|
balanceOf: TypedFunctionDescription<{ encode([_user]: [string]): string }>;
|
2020-06-30 12:09:28 +00:00
|
|
|
|
|
|
|
burn: TypedFunctionDescription<{
|
2020-07-09 14:27:19 +00:00
|
|
|
encode([_user, _amount]: [string, BigNumberish]): string;
|
2020-06-30 12:09:28 +00:00
|
|
|
}>;
|
|
|
|
|
|
|
|
decimals: TypedFunctionDescription<{ encode([]: []): string }>;
|
|
|
|
|
|
|
|
decreaseAllowance: TypedFunctionDescription<{
|
|
|
|
encode([spender, subtractedValue]: [string, BigNumberish]): string;
|
|
|
|
}>;
|
|
|
|
|
2020-07-03 21:20:02 +00:00
|
|
|
getUserIndex: TypedFunctionDescription<{
|
|
|
|
encode([_user]: [string]): string;
|
|
|
|
}>;
|
|
|
|
|
2020-06-30 12:09:28 +00:00
|
|
|
increaseAllowance: TypedFunctionDescription<{
|
|
|
|
encode([spender, addedValue]: [string, BigNumberish]): string;
|
|
|
|
}>;
|
|
|
|
|
|
|
|
init: TypedFunctionDescription<{
|
|
|
|
encode([_name, _symbol, _decimals, _underlying, _addressesProvider]: [
|
|
|
|
string,
|
|
|
|
string,
|
|
|
|
BigNumberish,
|
|
|
|
string,
|
|
|
|
string
|
|
|
|
]): string;
|
|
|
|
}>;
|
|
|
|
|
|
|
|
mint: TypedFunctionDescription<{
|
2020-07-09 14:27:19 +00:00
|
|
|
encode([_user, _amount]: [string, BigNumberish]): string;
|
2020-06-30 12:09:28 +00:00
|
|
|
}>;
|
|
|
|
|
|
|
|
name: TypedFunctionDescription<{ encode([]: []): string }>;
|
|
|
|
|
|
|
|
principalBalanceOf: TypedFunctionDescription<{
|
2020-07-09 14:27:19 +00:00
|
|
|
encode([_user]: [string]): string;
|
2020-06-30 12:09:28 +00:00
|
|
|
}>;
|
|
|
|
|
|
|
|
symbol: TypedFunctionDescription<{ encode([]: []): string }>;
|
|
|
|
|
|
|
|
totalSupply: TypedFunctionDescription<{ encode([]: []): string }>;
|
|
|
|
|
|
|
|
transfer: TypedFunctionDescription<{
|
2020-07-09 14:27:19 +00:00
|
|
|
encode([recipient, _amount]: [string, BigNumberish]): string;
|
2020-06-30 12:09:28 +00:00
|
|
|
}>;
|
|
|
|
|
|
|
|
transferFrom: TypedFunctionDescription<{
|
2020-07-09 14:27:19 +00:00
|
|
|
encode([sender, recipient, _amount]: [
|
2020-06-30 12:09:28 +00:00
|
|
|
string,
|
|
|
|
string,
|
|
|
|
BigNumberish
|
|
|
|
]): string;
|
|
|
|
}>;
|
|
|
|
|
|
|
|
underlyingAssetAddress: TypedFunctionDescription<{
|
|
|
|
encode([]: []): string;
|
|
|
|
}>;
|
|
|
|
};
|
|
|
|
|
|
|
|
events: {
|
|
|
|
Approval: TypedEventDescription<{
|
|
|
|
encodeTopics([owner, spender, value]: [
|
|
|
|
string | null,
|
|
|
|
string | null,
|
|
|
|
null
|
|
|
|
]): string[];
|
|
|
|
}>;
|
|
|
|
|
|
|
|
Transfer: TypedEventDescription<{
|
|
|
|
encodeTopics([from, to, value]: [
|
|
|
|
string | null,
|
|
|
|
string | null,
|
|
|
|
null
|
|
|
|
]): string[];
|
|
|
|
}>;
|
|
|
|
|
|
|
|
burnDebt: TypedEventDescription<{
|
|
|
|
encodeTopics([
|
|
|
|
_user,
|
|
|
|
_amount,
|
|
|
|
_previousBalance,
|
|
|
|
_currentBalance,
|
|
|
|
_balanceIncrease,
|
|
|
|
_index
|
|
|
|
]: [null, null, null, null, null, null]): string[];
|
|
|
|
}>;
|
|
|
|
|
|
|
|
mintDebt: TypedEventDescription<{
|
|
|
|
encodeTopics([
|
|
|
|
_user,
|
|
|
|
_amount,
|
|
|
|
_previousBalance,
|
|
|
|
_currentBalance,
|
|
|
|
_balanceIncrease,
|
|
|
|
_index
|
|
|
|
]: [null, null, null, null, null, null]): string[];
|
|
|
|
}>;
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
export class VariableDebtToken extends Contract {
|
|
|
|
connect(signerOrProvider: Signer | Provider | string): VariableDebtToken;
|
|
|
|
attach(addressOrName: string): VariableDebtToken;
|
|
|
|
deployed(): Promise<VariableDebtToken>;
|
|
|
|
|
|
|
|
on(event: EventFilter | string, listener: Listener): VariableDebtToken;
|
|
|
|
once(event: EventFilter | string, listener: Listener): VariableDebtToken;
|
|
|
|
addListener(
|
|
|
|
eventName: EventFilter | string,
|
|
|
|
listener: Listener
|
|
|
|
): VariableDebtToken;
|
|
|
|
removeAllListeners(eventName: EventFilter | string): VariableDebtToken;
|
|
|
|
removeListener(eventName: any, listener: Listener): VariableDebtToken;
|
|
|
|
|
|
|
|
interface: VariableDebtTokenInterface;
|
|
|
|
|
|
|
|
functions: {
|
|
|
|
allowance(owner: string, spender: string): Promise<BigNumber>;
|
|
|
|
|
|
|
|
approve(
|
|
|
|
spender: string,
|
2020-07-09 14:27:19 +00:00
|
|
|
_amount: BigNumberish,
|
2020-06-30 12:09:28 +00:00
|
|
|
overrides?: TransactionOverrides
|
|
|
|
): Promise<ContractTransaction>;
|
|
|
|
|
2020-07-09 14:27:19 +00:00
|
|
|
balanceOf(_user: string): Promise<BigNumber>;
|
2020-06-30 12:09:28 +00:00
|
|
|
|
|
|
|
burn(
|
2020-07-09 14:27:19 +00:00
|
|
|
_user: string,
|
|
|
|
_amount: BigNumberish,
|
2020-06-30 12:09:28 +00:00
|
|
|
overrides?: TransactionOverrides
|
|
|
|
): Promise<ContractTransaction>;
|
|
|
|
|
|
|
|
decimals(): Promise<number>;
|
|
|
|
|
|
|
|
decreaseAllowance(
|
|
|
|
spender: string,
|
|
|
|
subtractedValue: BigNumberish,
|
|
|
|
overrides?: TransactionOverrides
|
|
|
|
): Promise<ContractTransaction>;
|
|
|
|
|
2020-07-03 21:20:02 +00:00
|
|
|
getUserIndex(_user: string): Promise<BigNumber>;
|
|
|
|
|
2020-06-30 12:09:28 +00:00
|
|
|
increaseAllowance(
|
|
|
|
spender: string,
|
|
|
|
addedValue: BigNumberish,
|
|
|
|
overrides?: TransactionOverrides
|
|
|
|
): Promise<ContractTransaction>;
|
|
|
|
|
|
|
|
init(
|
|
|
|
_name: string,
|
|
|
|
_symbol: string,
|
|
|
|
_decimals: BigNumberish,
|
|
|
|
_underlying: string,
|
|
|
|
_addressesProvider: string,
|
|
|
|
overrides?: TransactionOverrides
|
|
|
|
): Promise<ContractTransaction>;
|
|
|
|
|
|
|
|
mint(
|
2020-07-09 14:27:19 +00:00
|
|
|
_user: string,
|
|
|
|
_amount: BigNumberish,
|
2020-06-30 12:09:28 +00:00
|
|
|
overrides?: TransactionOverrides
|
|
|
|
): Promise<ContractTransaction>;
|
|
|
|
|
|
|
|
name(): Promise<string>;
|
|
|
|
|
2020-07-09 14:27:19 +00:00
|
|
|
principalBalanceOf(_user: string): Promise<BigNumber>;
|
2020-06-30 12:09:28 +00:00
|
|
|
|
|
|
|
symbol(): Promise<string>;
|
|
|
|
|
|
|
|
totalSupply(): Promise<BigNumber>;
|
|
|
|
|
|
|
|
transfer(
|
|
|
|
recipient: string,
|
2020-07-09 14:27:19 +00:00
|
|
|
_amount: BigNumberish,
|
2020-06-30 12:09:28 +00:00
|
|
|
overrides?: TransactionOverrides
|
|
|
|
): Promise<ContractTransaction>;
|
|
|
|
|
|
|
|
transferFrom(
|
|
|
|
sender: string,
|
|
|
|
recipient: string,
|
2020-07-09 14:27:19 +00:00
|
|
|
_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,
|
2020-07-09 14:27:19 +00:00
|
|
|
_amount: BigNumberish,
|
2020-06-30 12:09:28 +00:00
|
|
|
overrides?: TransactionOverrides
|
|
|
|
): Promise<ContractTransaction>;
|
|
|
|
|
2020-07-09 14:27:19 +00:00
|
|
|
balanceOf(_user: string): Promise<BigNumber>;
|
2020-06-30 12:09:28 +00:00
|
|
|
|
|
|
|
burn(
|
2020-07-09 14:27:19 +00:00
|
|
|
_user: string,
|
|
|
|
_amount: BigNumberish,
|
2020-06-30 12:09:28 +00:00
|
|
|
overrides?: TransactionOverrides
|
|
|
|
): Promise<ContractTransaction>;
|
|
|
|
|
|
|
|
decimals(): Promise<number>;
|
|
|
|
|
|
|
|
decreaseAllowance(
|
|
|
|
spender: string,
|
|
|
|
subtractedValue: BigNumberish,
|
|
|
|
overrides?: TransactionOverrides
|
|
|
|
): Promise<ContractTransaction>;
|
|
|
|
|
2020-07-03 21:20:02 +00:00
|
|
|
getUserIndex(_user: string): Promise<BigNumber>;
|
|
|
|
|
2020-06-30 12:09:28 +00:00
|
|
|
increaseAllowance(
|
|
|
|
spender: string,
|
|
|
|
addedValue: BigNumberish,
|
|
|
|
overrides?: TransactionOverrides
|
|
|
|
): Promise<ContractTransaction>;
|
|
|
|
|
|
|
|
init(
|
|
|
|
_name: string,
|
|
|
|
_symbol: string,
|
|
|
|
_decimals: BigNumberish,
|
|
|
|
_underlying: string,
|
|
|
|
_addressesProvider: string,
|
|
|
|
overrides?: TransactionOverrides
|
|
|
|
): Promise<ContractTransaction>;
|
|
|
|
|
|
|
|
mint(
|
2020-07-09 14:27:19 +00:00
|
|
|
_user: string,
|
|
|
|
_amount: BigNumberish,
|
2020-06-30 12:09:28 +00:00
|
|
|
overrides?: TransactionOverrides
|
|
|
|
): Promise<ContractTransaction>;
|
|
|
|
|
|
|
|
name(): Promise<string>;
|
|
|
|
|
2020-07-09 14:27:19 +00:00
|
|
|
principalBalanceOf(_user: string): Promise<BigNumber>;
|
2020-06-30 12:09:28 +00:00
|
|
|
|
|
|
|
symbol(): Promise<string>;
|
|
|
|
|
|
|
|
totalSupply(): Promise<BigNumber>;
|
|
|
|
|
|
|
|
transfer(
|
|
|
|
recipient: string,
|
2020-07-09 14:27:19 +00:00
|
|
|
_amount: BigNumberish,
|
2020-06-30 12:09:28 +00:00
|
|
|
overrides?: TransactionOverrides
|
|
|
|
): Promise<ContractTransaction>;
|
|
|
|
|
|
|
|
transferFrom(
|
|
|
|
sender: string,
|
|
|
|
recipient: string,
|
2020-07-09 14:27:19 +00:00
|
|
|
_amount: BigNumberish,
|
2020-06-30 12:09:28 +00:00
|
|
|
overrides?: TransactionOverrides
|
|
|
|
): Promise<ContractTransaction>;
|
|
|
|
|
|
|
|
underlyingAssetAddress(): Promise<string>;
|
|
|
|
|
|
|
|
filters: {
|
|
|
|
Approval(
|
|
|
|
owner: string | null,
|
|
|
|
spender: string | null,
|
|
|
|
value: null
|
|
|
|
): EventFilter;
|
|
|
|
|
|
|
|
Transfer(from: string | null, to: string | null, value: null): EventFilter;
|
|
|
|
|
|
|
|
burnDebt(
|
|
|
|
_user: null,
|
|
|
|
_amount: null,
|
|
|
|
_previousBalance: null,
|
|
|
|
_currentBalance: null,
|
|
|
|
_balanceIncrease: null,
|
|
|
|
_index: null
|
|
|
|
): EventFilter;
|
|
|
|
|
|
|
|
mintDebt(
|
|
|
|
_user: null,
|
|
|
|
_amount: null,
|
|
|
|
_previousBalance: null,
|
|
|
|
_currentBalance: null,
|
|
|
|
_balanceIncrease: null,
|
|
|
|
_index: null
|
|
|
|
): EventFilter;
|
|
|
|
};
|
|
|
|
|
|
|
|
estimate: {
|
|
|
|
allowance(owner: string, spender: string): Promise<BigNumber>;
|
|
|
|
|
2020-07-09 14:27:19 +00:00
|
|
|
approve(spender: string, _amount: BigNumberish): Promise<BigNumber>;
|
2020-06-30 12:09:28 +00:00
|
|
|
|
2020-07-09 14:27:19 +00:00
|
|
|
balanceOf(_user: string): Promise<BigNumber>;
|
2020-06-30 12:09:28 +00:00
|
|
|
|
2020-07-09 14:27:19 +00:00
|
|
|
burn(_user: string, _amount: BigNumberish): Promise<BigNumber>;
|
2020-06-30 12:09:28 +00:00
|
|
|
|
|
|
|
decimals(): Promise<BigNumber>;
|
|
|
|
|
|
|
|
decreaseAllowance(
|
|
|
|
spender: string,
|
|
|
|
subtractedValue: BigNumberish
|
|
|
|
): Promise<BigNumber>;
|
|
|
|
|
2020-07-03 21:20:02 +00:00
|
|
|
getUserIndex(_user: string): Promise<BigNumber>;
|
|
|
|
|
2020-06-30 12:09:28 +00:00
|
|
|
increaseAllowance(
|
|
|
|
spender: string,
|
|
|
|
addedValue: BigNumberish
|
|
|
|
): Promise<BigNumber>;
|
|
|
|
|
|
|
|
init(
|
|
|
|
_name: string,
|
|
|
|
_symbol: string,
|
|
|
|
_decimals: BigNumberish,
|
|
|
|
_underlying: string,
|
|
|
|
_addressesProvider: string
|
|
|
|
): Promise<BigNumber>;
|
|
|
|
|
2020-07-09 14:27:19 +00:00
|
|
|
mint(_user: string, _amount: BigNumberish): Promise<BigNumber>;
|
2020-06-30 12:09:28 +00:00
|
|
|
|
|
|
|
name(): Promise<BigNumber>;
|
|
|
|
|
2020-07-09 14:27:19 +00:00
|
|
|
principalBalanceOf(_user: string): Promise<BigNumber>;
|
2020-06-30 12:09:28 +00:00
|
|
|
|
|
|
|
symbol(): Promise<BigNumber>;
|
|
|
|
|
|
|
|
totalSupply(): Promise<BigNumber>;
|
|
|
|
|
2020-07-09 14:27:19 +00:00
|
|
|
transfer(recipient: string, _amount: BigNumberish): Promise<BigNumber>;
|
2020-06-30 12:09:28 +00:00
|
|
|
|
|
|
|
transferFrom(
|
|
|
|
sender: string,
|
|
|
|
recipient: string,
|
2020-07-09 14:27:19 +00:00
|
|
|
_amount: BigNumberish
|
2020-06-30 12:09:28 +00:00
|
|
|
): Promise<BigNumber>;
|
|
|
|
|
|
|
|
underlyingAssetAddress(): Promise<BigNumber>;
|
|
|
|
};
|
|
|
|
}
|