2020-07-05 21:44:19 +00:00
|
|
|
/* Generated by ts-generator ver. 0.0.8 */
|
|
|
|
/* tslint:disable */
|
|
|
|
|
2020-08-07 17:29:13 +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-07-05 21:44:19 +00:00
|
|
|
|
|
|
|
interface MockWbtcInterface extends Interface {
|
|
|
|
functions: {
|
|
|
|
allowance: TypedFunctionDescription<{
|
|
|
|
encode([owner, spender]: [string, string]): string;
|
|
|
|
}>;
|
|
|
|
|
|
|
|
approve: TypedFunctionDescription<{
|
|
|
|
encode([spender, amount]: [string, BigNumberish]): string;
|
|
|
|
}>;
|
|
|
|
|
|
|
|
balanceOf: TypedFunctionDescription<{
|
|
|
|
encode([account]: [string]): string;
|
|
|
|
}>;
|
|
|
|
|
2020-08-07 17:29:13 +00:00
|
|
|
decimals: TypedFunctionDescription<{ encode([]: []): string }>;
|
2020-07-05 21:44:19 +00:00
|
|
|
|
|
|
|
decreaseAllowance: TypedFunctionDescription<{
|
|
|
|
encode([spender, subtractedValue]: [string, BigNumberish]): string;
|
|
|
|
}>;
|
|
|
|
|
|
|
|
increaseAllowance: TypedFunctionDescription<{
|
|
|
|
encode([spender, addedValue]: [string, BigNumberish]): string;
|
|
|
|
}>;
|
|
|
|
|
2020-08-07 17:29:13 +00:00
|
|
|
mint: TypedFunctionDescription<{ encode([value]: [BigNumberish]): string }>;
|
2020-07-05 21:44:19 +00:00
|
|
|
|
2020-08-07 17:29:13 +00:00
|
|
|
name: TypedFunctionDescription<{ encode([]: []): string }>;
|
2020-07-05 21:44:19 +00:00
|
|
|
|
2020-08-07 17:29:13 +00:00
|
|
|
symbol: TypedFunctionDescription<{ encode([]: []): string }>;
|
2020-07-05 21:44:19 +00:00
|
|
|
|
2020-08-07 17:29:13 +00:00
|
|
|
totalSupply: TypedFunctionDescription<{ encode([]: []): string }>;
|
2020-07-05 21:44:19 +00:00
|
|
|
|
|
|
|
transfer: TypedFunctionDescription<{
|
|
|
|
encode([recipient, amount]: [string, BigNumberish]): string;
|
|
|
|
}>;
|
|
|
|
|
|
|
|
transferFrom: TypedFunctionDescription<{
|
2020-08-07 17:29:13 +00:00
|
|
|
encode([sender, recipient, amount]: [
|
|
|
|
string,
|
|
|
|
string,
|
|
|
|
BigNumberish
|
|
|
|
]): string;
|
2020-07-05 21:44:19 +00:00
|
|
|
}>;
|
|
|
|
};
|
|
|
|
|
|
|
|
events: {
|
|
|
|
Approval: TypedEventDescription<{
|
2020-08-07 17:29:13 +00:00
|
|
|
encodeTopics([owner, spender, value]: [
|
|
|
|
string | null,
|
|
|
|
string | null,
|
|
|
|
null
|
|
|
|
]): string[];
|
2020-07-05 21:44:19 +00:00
|
|
|
}>;
|
|
|
|
|
|
|
|
Transfer: TypedEventDescription<{
|
2020-08-07 17:29:13 +00:00
|
|
|
encodeTopics([from, to, value]: [
|
|
|
|
string | null,
|
|
|
|
string | null,
|
|
|
|
null
|
|
|
|
]): string[];
|
2020-07-05 21:44:19 +00:00
|
|
|
}>;
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
export class MockWbtc extends Contract {
|
|
|
|
connect(signerOrProvider: Signer | Provider | string): MockWbtc;
|
|
|
|
attach(addressOrName: string): MockWbtc;
|
|
|
|
deployed(): Promise<MockWbtc>;
|
|
|
|
|
|
|
|
on(event: EventFilter | string, listener: Listener): MockWbtc;
|
|
|
|
once(event: EventFilter | string, listener: Listener): MockWbtc;
|
|
|
|
addListener(eventName: EventFilter | string, listener: Listener): MockWbtc;
|
|
|
|
removeAllListeners(eventName: EventFilter | string): MockWbtc;
|
|
|
|
removeListener(eventName: any, listener: Listener): MockWbtc;
|
|
|
|
|
|
|
|
interface: MockWbtcInterface;
|
|
|
|
|
|
|
|
functions: {
|
|
|
|
allowance(owner: string, spender: string): Promise<BigNumber>;
|
|
|
|
|
|
|
|
approve(
|
|
|
|
spender: string,
|
|
|
|
amount: BigNumberish,
|
|
|
|
overrides?: TransactionOverrides
|
|
|
|
): Promise<ContractTransaction>;
|
|
|
|
|
|
|
|
balanceOf(account: string): Promise<BigNumber>;
|
|
|
|
|
|
|
|
decimals(): Promise<number>;
|
|
|
|
|
|
|
|
decreaseAllowance(
|
|
|
|
spender: string,
|
|
|
|
subtractedValue: BigNumberish,
|
|
|
|
overrides?: TransactionOverrides
|
|
|
|
): Promise<ContractTransaction>;
|
|
|
|
|
|
|
|
increaseAllowance(
|
|
|
|
spender: string,
|
|
|
|
addedValue: BigNumberish,
|
|
|
|
overrides?: TransactionOverrides
|
|
|
|
): Promise<ContractTransaction>;
|
|
|
|
|
2020-08-07 17:29:13 +00:00
|
|
|
mint(
|
|
|
|
value: BigNumberish,
|
|
|
|
overrides?: TransactionOverrides
|
|
|
|
): Promise<ContractTransaction>;
|
2020-07-05 21:44:19 +00:00
|
|
|
|
|
|
|
name(): Promise<string>;
|
|
|
|
|
|
|
|
symbol(): Promise<string>;
|
|
|
|
|
|
|
|
totalSupply(): Promise<BigNumber>;
|
|
|
|
|
|
|
|
transfer(
|
|
|
|
recipient: string,
|
|
|
|
amount: BigNumberish,
|
|
|
|
overrides?: TransactionOverrides
|
|
|
|
): Promise<ContractTransaction>;
|
|
|
|
|
|
|
|
transferFrom(
|
|
|
|
sender: string,
|
|
|
|
recipient: string,
|
|
|
|
amount: BigNumberish,
|
|
|
|
overrides?: TransactionOverrides
|
|
|
|
): Promise<ContractTransaction>;
|
|
|
|
};
|
|
|
|
|
|
|
|
allowance(owner: string, spender: string): Promise<BigNumber>;
|
|
|
|
|
|
|
|
approve(
|
|
|
|
spender: string,
|
|
|
|
amount: BigNumberish,
|
|
|
|
overrides?: TransactionOverrides
|
|
|
|
): Promise<ContractTransaction>;
|
|
|
|
|
|
|
|
balanceOf(account: string): Promise<BigNumber>;
|
|
|
|
|
|
|
|
decimals(): Promise<number>;
|
|
|
|
|
|
|
|
decreaseAllowance(
|
|
|
|
spender: string,
|
|
|
|
subtractedValue: BigNumberish,
|
|
|
|
overrides?: TransactionOverrides
|
|
|
|
): Promise<ContractTransaction>;
|
|
|
|
|
|
|
|
increaseAllowance(
|
|
|
|
spender: string,
|
|
|
|
addedValue: BigNumberish,
|
|
|
|
overrides?: TransactionOverrides
|
|
|
|
): Promise<ContractTransaction>;
|
|
|
|
|
2020-08-07 17:29:13 +00:00
|
|
|
mint(
|
|
|
|
value: BigNumberish,
|
|
|
|
overrides?: TransactionOverrides
|
|
|
|
): Promise<ContractTransaction>;
|
2020-07-05 21:44:19 +00:00
|
|
|
|
|
|
|
name(): Promise<string>;
|
|
|
|
|
|
|
|
symbol(): Promise<string>;
|
|
|
|
|
|
|
|
totalSupply(): Promise<BigNumber>;
|
|
|
|
|
|
|
|
transfer(
|
|
|
|
recipient: string,
|
|
|
|
amount: BigNumberish,
|
|
|
|
overrides?: TransactionOverrides
|
|
|
|
): Promise<ContractTransaction>;
|
|
|
|
|
|
|
|
transferFrom(
|
|
|
|
sender: string,
|
|
|
|
recipient: string,
|
|
|
|
amount: BigNumberish,
|
|
|
|
overrides?: TransactionOverrides
|
|
|
|
): Promise<ContractTransaction>;
|
|
|
|
|
|
|
|
filters: {
|
2020-08-07 17:29:13 +00:00
|
|
|
Approval(
|
|
|
|
owner: string | null,
|
|
|
|
spender: string | null,
|
|
|
|
value: null
|
|
|
|
): EventFilter;
|
2020-07-05 21:44:19 +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>;
|
|
|
|
|
|
|
|
balanceOf(account: string): Promise<BigNumber>;
|
|
|
|
|
|
|
|
decimals(): Promise<BigNumber>;
|
|
|
|
|
2020-08-07 17:29:13 +00:00
|
|
|
decreaseAllowance(
|
|
|
|
spender: string,
|
|
|
|
subtractedValue: BigNumberish
|
|
|
|
): Promise<BigNumber>;
|
2020-07-05 21:44:19 +00:00
|
|
|
|
2020-08-07 17:29:13 +00:00
|
|
|
increaseAllowance(
|
|
|
|
spender: string,
|
|
|
|
addedValue: BigNumberish
|
|
|
|
): Promise<BigNumber>;
|
2020-07-05 21:44:19 +00:00
|
|
|
|
|
|
|
mint(value: BigNumberish): Promise<BigNumber>;
|
|
|
|
|
|
|
|
name(): Promise<BigNumber>;
|
|
|
|
|
|
|
|
symbol(): Promise<BigNumber>;
|
|
|
|
|
|
|
|
totalSupply(): Promise<BigNumber>;
|
|
|
|
|
|
|
|
transfer(recipient: string, amount: BigNumberish): Promise<BigNumber>;
|
|
|
|
|
2020-08-07 17:29:13 +00:00
|
|
|
transferFrom(
|
|
|
|
sender: string,
|
|
|
|
recipient: string,
|
|
|
|
amount: BigNumberish
|
|
|
|
): Promise<BigNumber>;
|
2020-07-05 21:44:19 +00:00
|
|
|
};
|
|
|
|
}
|