aave-protocol-v2/types/Ierc20.d.ts
2020-08-19 15:23:41 +03:00

434 lines
10 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 Ierc20Interface extends ethers.utils.Interface {
functions: {
"allowance(address,address)": FunctionFragment;
"approve(address,uint256)": FunctionFragment;
"balanceOf(address)": FunctionFragment;
"totalSupply()": FunctionFragment;
"transfer(address,uint256)": FunctionFragment;
"transferFrom(address,address,uint256)": FunctionFragment;
};
encodeFunctionData(
functionFragment: "allowance",
values: [string, string]
): string;
encodeFunctionData(
functionFragment: "approve",
values: [string, BigNumberish]
): string;
encodeFunctionData(functionFragment: "balanceOf", values: [string]): string;
encodeFunctionData(
functionFragment: "totalSupply",
values?: undefined
): string;
encodeFunctionData(
functionFragment: "transfer",
values: [string, BigNumberish]
): string;
encodeFunctionData(
functionFragment: "transferFrom",
values: [string, string, BigNumberish]
): string;
decodeFunctionResult(functionFragment: "allowance", data: BytesLike): Result;
decodeFunctionResult(functionFragment: "approve", data: BytesLike): Result;
decodeFunctionResult(functionFragment: "balanceOf", data: BytesLike): Result;
decodeFunctionResult(
functionFragment: "totalSupply",
data: BytesLike
): Result;
decodeFunctionResult(functionFragment: "transfer", data: BytesLike): Result;
decodeFunctionResult(
functionFragment: "transferFrom",
data: BytesLike
): Result;
events: {
"Approval(address,address,uint256)": EventFragment;
"Transfer(address,address,uint256)": EventFragment;
};
getEvent(nameOrSignatureOrTopic: "Approval"): EventFragment;
getEvent(nameOrSignatureOrTopic: "Transfer"): EventFragment;
}
export class Ierc20 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: Ierc20Interface;
functions: {
allowance(
owner: string,
spender: string,
overrides?: CallOverrides
): Promise<{
0: BigNumber;
}>;
"allowance(address,address)"(
owner: string,
spender: string,
overrides?: CallOverrides
): Promise<{
0: BigNumber;
}>;
approve(
spender: string,
amount: BigNumberish,
overrides?: Overrides
): Promise<ContractTransaction>;
"approve(address,uint256)"(
spender: string,
amount: BigNumberish,
overrides?: Overrides
): Promise<ContractTransaction>;
balanceOf(
account: string,
overrides?: CallOverrides
): Promise<{
0: BigNumber;
}>;
"balanceOf(address)"(
account: string,
overrides?: CallOverrides
): Promise<{
0: BigNumber;
}>;
totalSupply(
overrides?: CallOverrides
): Promise<{
0: BigNumber;
}>;
"totalSupply()"(
overrides?: CallOverrides
): Promise<{
0: BigNumber;
}>;
transfer(
recipient: string,
amount: BigNumberish,
overrides?: Overrides
): Promise<ContractTransaction>;
"transfer(address,uint256)"(
recipient: string,
amount: BigNumberish,
overrides?: Overrides
): Promise<ContractTransaction>;
transferFrom(
sender: string,
recipient: string,
amount: BigNumberish,
overrides?: Overrides
): Promise<ContractTransaction>;
"transferFrom(address,address,uint256)"(
sender: string,
recipient: string,
amount: BigNumberish,
overrides?: Overrides
): Promise<ContractTransaction>;
};
allowance(
owner: string,
spender: string,
overrides?: CallOverrides
): Promise<BigNumber>;
"allowance(address,address)"(
owner: string,
spender: string,
overrides?: CallOverrides
): Promise<BigNumber>;
approve(
spender: string,
amount: BigNumberish,
overrides?: Overrides
): Promise<ContractTransaction>;
"approve(address,uint256)"(
spender: string,
amount: BigNumberish,
overrides?: Overrides
): Promise<ContractTransaction>;
balanceOf(account: string, overrides?: CallOverrides): Promise<BigNumber>;
"balanceOf(address)"(
account: string,
overrides?: CallOverrides
): Promise<BigNumber>;
totalSupply(overrides?: CallOverrides): Promise<BigNumber>;
"totalSupply()"(overrides?: CallOverrides): Promise<BigNumber>;
transfer(
recipient: string,
amount: BigNumberish,
overrides?: Overrides
): Promise<ContractTransaction>;
"transfer(address,uint256)"(
recipient: string,
amount: BigNumberish,
overrides?: Overrides
): Promise<ContractTransaction>;
transferFrom(
sender: string,
recipient: string,
amount: BigNumberish,
overrides?: Overrides
): Promise<ContractTransaction>;
"transferFrom(address,address,uint256)"(
sender: string,
recipient: string,
amount: BigNumberish,
overrides?: Overrides
): Promise<ContractTransaction>;
callStatic: {
allowance(
owner: string,
spender: string,
overrides?: CallOverrides
): Promise<BigNumber>;
"allowance(address,address)"(
owner: string,
spender: string,
overrides?: CallOverrides
): Promise<BigNumber>;
approve(
spender: string,
amount: BigNumberish,
overrides?: CallOverrides
): Promise<boolean>;
"approve(address,uint256)"(
spender: string,
amount: BigNumberish,
overrides?: CallOverrides
): Promise<boolean>;
balanceOf(account: string, overrides?: CallOverrides): Promise<BigNumber>;
"balanceOf(address)"(
account: string,
overrides?: CallOverrides
): Promise<BigNumber>;
totalSupply(overrides?: CallOverrides): Promise<BigNumber>;
"totalSupply()"(overrides?: CallOverrides): Promise<BigNumber>;
transfer(
recipient: string,
amount: BigNumberish,
overrides?: CallOverrides
): Promise<boolean>;
"transfer(address,uint256)"(
recipient: string,
amount: BigNumberish,
overrides?: CallOverrides
): Promise<boolean>;
transferFrom(
sender: string,
recipient: string,
amount: BigNumberish,
overrides?: CallOverrides
): Promise<boolean>;
"transferFrom(address,address,uint256)"(
sender: string,
recipient: string,
amount: BigNumberish,
overrides?: CallOverrides
): Promise<boolean>;
};
filters: {
Approval(
owner: string | null,
spender: string | null,
value: null
): EventFilter;
Transfer(from: string | null, to: string | null, value: null): EventFilter;
};
estimateGas: {
allowance(
owner: string,
spender: string,
overrides?: CallOverrides
): Promise<BigNumber>;
"allowance(address,address)"(
owner: string,
spender: string,
overrides?: CallOverrides
): Promise<BigNumber>;
approve(
spender: string,
amount: BigNumberish,
overrides?: Overrides
): Promise<BigNumber>;
"approve(address,uint256)"(
spender: string,
amount: BigNumberish,
overrides?: Overrides
): Promise<BigNumber>;
balanceOf(account: string, overrides?: CallOverrides): Promise<BigNumber>;
"balanceOf(address)"(
account: string,
overrides?: CallOverrides
): Promise<BigNumber>;
totalSupply(overrides?: CallOverrides): Promise<BigNumber>;
"totalSupply()"(overrides?: CallOverrides): Promise<BigNumber>;
transfer(
recipient: string,
amount: BigNumberish,
overrides?: Overrides
): Promise<BigNumber>;
"transfer(address,uint256)"(
recipient: string,
amount: BigNumberish,
overrides?: Overrides
): Promise<BigNumber>;
transferFrom(
sender: string,
recipient: string,
amount: BigNumberish,
overrides?: Overrides
): Promise<BigNumber>;
"transferFrom(address,address,uint256)"(
sender: string,
recipient: string,
amount: BigNumberish,
overrides?: Overrides
): Promise<BigNumber>;
};
populateTransaction: {
allowance(
owner: string,
spender: string,
overrides?: CallOverrides
): Promise<PopulatedTransaction>;
"allowance(address,address)"(
owner: string,
spender: string,
overrides?: CallOverrides
): Promise<PopulatedTransaction>;
approve(
spender: string,
amount: BigNumberish,
overrides?: Overrides
): Promise<PopulatedTransaction>;
"approve(address,uint256)"(
spender: string,
amount: BigNumberish,
overrides?: Overrides
): Promise<PopulatedTransaction>;
balanceOf(
account: string,
overrides?: CallOverrides
): Promise<PopulatedTransaction>;
"balanceOf(address)"(
account: string,
overrides?: CallOverrides
): Promise<PopulatedTransaction>;
totalSupply(overrides?: CallOverrides): Promise<PopulatedTransaction>;
"totalSupply()"(overrides?: CallOverrides): Promise<PopulatedTransaction>;
transfer(
recipient: string,
amount: BigNumberish,
overrides?: Overrides
): Promise<PopulatedTransaction>;
"transfer(address,uint256)"(
recipient: string,
amount: BigNumberish,
overrides?: Overrides
): Promise<PopulatedTransaction>;
transferFrom(
sender: string,
recipient: string,
amount: BigNumberish,
overrides?: Overrides
): Promise<PopulatedTransaction>;
"transferFrom(address,address,uint256)"(
sender: string,
recipient: string,
amount: BigNumberish,
overrides?: Overrides
): Promise<PopulatedTransaction>;
};
}