generated from PaulRBerg/hardhat-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Greeter.ts
135 lines (106 loc) · 3.86 KB
/
Greeter.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
/* Autogenerated file. Do not edit manually. */
/* tslint:disable */
/* eslint-disable */
import {
BaseContract,
BigNumber,
BytesLike,
CallOverrides,
ContractTransaction,
Overrides,
PopulatedTransaction,
Signer,
utils,
} from "ethers";
import { FunctionFragment, Result } from "@ethersproject/abi";
import { Listener, Provider } from "@ethersproject/providers";
import { TypedEventFilter, TypedEvent, TypedListener, OnEvent } from "./common";
export interface GreeterInterface extends utils.Interface {
contractName: "Greeter";
functions: {
"greet()": FunctionFragment;
"greeting()": FunctionFragment;
"setGreeting(string)": FunctionFragment;
"throwError()": FunctionFragment;
};
encodeFunctionData(functionFragment: "greet", values?: undefined): string;
encodeFunctionData(functionFragment: "greeting", values?: undefined): string;
encodeFunctionData(functionFragment: "setGreeting", values: [string]): string;
encodeFunctionData(
functionFragment: "throwError",
values?: undefined
): string;
decodeFunctionResult(functionFragment: "greet", data: BytesLike): Result;
decodeFunctionResult(functionFragment: "greeting", data: BytesLike): Result;
decodeFunctionResult(
functionFragment: "setGreeting",
data: BytesLike
): Result;
decodeFunctionResult(functionFragment: "throwError", data: BytesLike): Result;
events: {};
}
export interface Greeter extends BaseContract {
contractName: "Greeter";
connect(signerOrProvider: Signer | Provider | string): this;
attach(addressOrName: string): this;
deployed(): Promise<this>;
interface: GreeterInterface;
queryFilter<TEvent extends TypedEvent>(
event: TypedEventFilter<TEvent>,
fromBlockOrBlockhash?: string | number | undefined,
toBlock?: string | number | undefined
): Promise<Array<TEvent>>;
listeners<TEvent extends TypedEvent>(
eventFilter?: TypedEventFilter<TEvent>
): Array<TypedListener<TEvent>>;
listeners(eventName?: string): Array<Listener>;
removeAllListeners<TEvent extends TypedEvent>(
eventFilter: TypedEventFilter<TEvent>
): this;
removeAllListeners(eventName?: string): this;
off: OnEvent<this>;
on: OnEvent<this>;
once: OnEvent<this>;
removeListener: OnEvent<this>;
functions: {
greet(overrides?: CallOverrides): Promise<[string]>;
greeting(overrides?: CallOverrides): Promise<[string]>;
setGreeting(
_greeting: string,
overrides?: Overrides & { from?: string | Promise<string> }
): Promise<ContractTransaction>;
throwError(overrides?: CallOverrides): Promise<[void]>;
};
greet(overrides?: CallOverrides): Promise<string>;
greeting(overrides?: CallOverrides): Promise<string>;
setGreeting(
_greeting: string,
overrides?: Overrides & { from?: string | Promise<string> }
): Promise<ContractTransaction>;
throwError(overrides?: CallOverrides): Promise<void>;
callStatic: {
greet(overrides?: CallOverrides): Promise<string>;
greeting(overrides?: CallOverrides): Promise<string>;
setGreeting(_greeting: string, overrides?: CallOverrides): Promise<void>;
throwError(overrides?: CallOverrides): Promise<void>;
};
filters: {};
estimateGas: {
greet(overrides?: CallOverrides): Promise<BigNumber>;
greeting(overrides?: CallOverrides): Promise<BigNumber>;
setGreeting(
_greeting: string,
overrides?: Overrides & { from?: string | Promise<string> }
): Promise<BigNumber>;
throwError(overrides?: CallOverrides): Promise<BigNumber>;
};
populateTransaction: {
greet(overrides?: CallOverrides): Promise<PopulatedTransaction>;
greeting(overrides?: CallOverrides): Promise<PopulatedTransaction>;
setGreeting(
_greeting: string,
overrides?: Overrides & { from?: string | Promise<string> }
): Promise<PopulatedTransaction>;
throwError(overrides?: CallOverrides): Promise<PopulatedTransaction>;
};
}