mirror of
https://github.com/Instadapp/aave-protocol-v2.git
synced 2024-07-29 21:47:30 +00:00
240 lines
5.4 KiB
TypeScript
240 lines
5.4 KiB
TypeScript
/* Generated by ts-generator ver. 0.0.8 */
|
|
/* tslint:disable */
|
|
|
|
import {
|
|
ethers,
|
|
EventFilter,
|
|
Signer,
|
|
BigNumber,
|
|
BigNumberish,
|
|
PopulatedTransaction
|
|
} from "ethers";
|
|
import {
|
|
Contract,
|
|
ContractTransaction,
|
|
Overrides,
|
|
CallOverrides
|
|
} from "@ethersproject/contracts";
|
|
import { BytesLike } from "@ethersproject/bytes";
|
|
import { Listener, Provider } from "@ethersproject/providers";
|
|
import { FunctionFragment, EventFragment, Result } from "@ethersproject/abi";
|
|
|
|
interface IVariableDebtTokenInterface extends ethers.utils.Interface {
|
|
functions: {
|
|
"burn(address,uint256)": FunctionFragment;
|
|
"getUserIndex(address)": FunctionFragment;
|
|
"mint(address,uint256)": FunctionFragment;
|
|
};
|
|
|
|
encodeFunctionData(
|
|
functionFragment: "burn",
|
|
values: [string, BigNumberish]
|
|
): string;
|
|
encodeFunctionData(
|
|
functionFragment: "getUserIndex",
|
|
values: [string]
|
|
): string;
|
|
encodeFunctionData(
|
|
functionFragment: "mint",
|
|
values: [string, BigNumberish]
|
|
): string;
|
|
|
|
decodeFunctionResult(functionFragment: "burn", data: BytesLike): Result;
|
|
decodeFunctionResult(
|
|
functionFragment: "getUserIndex",
|
|
data: BytesLike
|
|
): Result;
|
|
decodeFunctionResult(functionFragment: "mint", data: BytesLike): Result;
|
|
|
|
events: {};
|
|
}
|
|
|
|
export class IVariableDebtToken extends Contract {
|
|
connect(signerOrProvider: Signer | Provider | string): this;
|
|
attach(addressOrName: string): this;
|
|
deployed(): Promise<this>;
|
|
|
|
on(event: EventFilter | string, listener: Listener): this;
|
|
once(event: EventFilter | string, listener: Listener): this;
|
|
addListener(eventName: EventFilter | string, listener: Listener): this;
|
|
removeAllListeners(eventName: EventFilter | string): this;
|
|
removeListener(eventName: any, listener: Listener): this;
|
|
|
|
interface: IVariableDebtTokenInterface;
|
|
|
|
functions: {
|
|
burn(
|
|
_user: string,
|
|
_amount: BigNumberish,
|
|
overrides?: Overrides
|
|
): Promise<ContractTransaction>;
|
|
|
|
"burn(address,uint256)"(
|
|
_user: string,
|
|
_amount: BigNumberish,
|
|
overrides?: Overrides
|
|
): Promise<ContractTransaction>;
|
|
|
|
getUserIndex(
|
|
_user: string,
|
|
overrides?: CallOverrides
|
|
): Promise<{
|
|
0: BigNumber;
|
|
}>;
|
|
|
|
"getUserIndex(address)"(
|
|
_user: string,
|
|
overrides?: CallOverrides
|
|
): Promise<{
|
|
0: BigNumber;
|
|
}>;
|
|
|
|
mint(
|
|
_user: string,
|
|
_amount: BigNumberish,
|
|
overrides?: Overrides
|
|
): Promise<ContractTransaction>;
|
|
|
|
"mint(address,uint256)"(
|
|
_user: string,
|
|
_amount: BigNumberish,
|
|
overrides?: Overrides
|
|
): Promise<ContractTransaction>;
|
|
};
|
|
|
|
burn(
|
|
_user: string,
|
|
_amount: BigNumberish,
|
|
overrides?: Overrides
|
|
): Promise<ContractTransaction>;
|
|
|
|
"burn(address,uint256)"(
|
|
_user: string,
|
|
_amount: BigNumberish,
|
|
overrides?: Overrides
|
|
): Promise<ContractTransaction>;
|
|
|
|
getUserIndex(_user: string, overrides?: CallOverrides): Promise<BigNumber>;
|
|
|
|
"getUserIndex(address)"(
|
|
_user: string,
|
|
overrides?: CallOverrides
|
|
): Promise<BigNumber>;
|
|
|
|
mint(
|
|
_user: string,
|
|
_amount: BigNumberish,
|
|
overrides?: Overrides
|
|
): Promise<ContractTransaction>;
|
|
|
|
"mint(address,uint256)"(
|
|
_user: string,
|
|
_amount: BigNumberish,
|
|
overrides?: Overrides
|
|
): Promise<ContractTransaction>;
|
|
|
|
callStatic: {
|
|
burn(
|
|
_user: string,
|
|
_amount: BigNumberish,
|
|
overrides?: CallOverrides
|
|
): Promise<void>;
|
|
|
|
"burn(address,uint256)"(
|
|
_user: string,
|
|
_amount: BigNumberish,
|
|
overrides?: CallOverrides
|
|
): Promise<void>;
|
|
|
|
getUserIndex(_user: string, overrides?: CallOverrides): Promise<BigNumber>;
|
|
|
|
"getUserIndex(address)"(
|
|
_user: string,
|
|
overrides?: CallOverrides
|
|
): Promise<BigNumber>;
|
|
|
|
mint(
|
|
_user: string,
|
|
_amount: BigNumberish,
|
|
overrides?: CallOverrides
|
|
): Promise<void>;
|
|
|
|
"mint(address,uint256)"(
|
|
_user: string,
|
|
_amount: BigNumberish,
|
|
overrides?: CallOverrides
|
|
): Promise<void>;
|
|
};
|
|
|
|
filters: {};
|
|
|
|
estimateGas: {
|
|
burn(
|
|
_user: string,
|
|
_amount: BigNumberish,
|
|
overrides?: Overrides
|
|
): Promise<BigNumber>;
|
|
|
|
"burn(address,uint256)"(
|
|
_user: string,
|
|
_amount: BigNumberish,
|
|
overrides?: Overrides
|
|
): Promise<BigNumber>;
|
|
|
|
getUserIndex(_user: string, overrides?: CallOverrides): Promise<BigNumber>;
|
|
|
|
"getUserIndex(address)"(
|
|
_user: string,
|
|
overrides?: CallOverrides
|
|
): Promise<BigNumber>;
|
|
|
|
mint(
|
|
_user: string,
|
|
_amount: BigNumberish,
|
|
overrides?: Overrides
|
|
): Promise<BigNumber>;
|
|
|
|
"mint(address,uint256)"(
|
|
_user: string,
|
|
_amount: BigNumberish,
|
|
overrides?: Overrides
|
|
): Promise<BigNumber>;
|
|
};
|
|
|
|
populateTransaction: {
|
|
burn(
|
|
_user: string,
|
|
_amount: BigNumberish,
|
|
overrides?: Overrides
|
|
): Promise<PopulatedTransaction>;
|
|
|
|
"burn(address,uint256)"(
|
|
_user: string,
|
|
_amount: BigNumberish,
|
|
overrides?: Overrides
|
|
): Promise<PopulatedTransaction>;
|
|
|
|
getUserIndex(
|
|
_user: string,
|
|
overrides?: CallOverrides
|
|
): Promise<PopulatedTransaction>;
|
|
|
|
"getUserIndex(address)"(
|
|
_user: string,
|
|
overrides?: CallOverrides
|
|
): Promise<PopulatedTransaction>;
|
|
|
|
mint(
|
|
_user: string,
|
|
_amount: BigNumberish,
|
|
overrides?: Overrides
|
|
): Promise<PopulatedTransaction>;
|
|
|
|
"mint(address,uint256)"(
|
|
_user: string,
|
|
_amount: BigNumberish,
|
|
overrides?: Overrides
|
|
): Promise<PopulatedTransaction>;
|
|
};
|
|
}
|