@nomicfoundation/hardhat-errors 3.0.0-next.3 → 3.0.0-next.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/src/descriptors.d.ts +1634 -1204
- package/dist/src/descriptors.d.ts.map +1 -1
- package/dist/src/descriptors.js +1861 -1266
- package/dist/src/descriptors.js.map +1 -1
- package/dist/src/errors.d.ts.map +1 -1
- package/dist/src/errors.js +10 -3
- package/dist/src/errors.js.map +1 -1
- package/package.json +3 -3
- package/src/descriptors.ts +2036 -1388
- package/src/errors.ts +13 -3
package/src/descriptors.ts
CHANGED
|
@@ -7,11 +7,6 @@ export interface ErrorDescriptor {
|
|
|
7
7
|
*/
|
|
8
8
|
number: number;
|
|
9
9
|
|
|
10
|
-
/**
|
|
11
|
-
* The id of the plugin that throws this error.
|
|
12
|
-
*/
|
|
13
|
-
pluginId?: string;
|
|
14
|
-
|
|
15
10
|
/**
|
|
16
11
|
* A tempalte of the message of the error.
|
|
17
12
|
*
|
|
@@ -41,1187 +36,1888 @@ export interface ErrorDescriptor {
|
|
|
41
36
|
}
|
|
42
37
|
|
|
43
38
|
export const ERROR_CATEGORIES: {
|
|
44
|
-
[
|
|
39
|
+
[packageName: string]: {
|
|
45
40
|
min: number;
|
|
46
41
|
max: number;
|
|
42
|
+
pluginId: string | undefined;
|
|
47
43
|
websiteTitle: string;
|
|
44
|
+
CATEGORIES: {
|
|
45
|
+
[categoryName: string]: {
|
|
46
|
+
min: number;
|
|
47
|
+
max: number;
|
|
48
|
+
websiteSubTitle: string;
|
|
49
|
+
};
|
|
50
|
+
};
|
|
48
51
|
};
|
|
49
52
|
} = {
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
53
|
+
CORE: {
|
|
54
|
+
min: 1,
|
|
55
|
+
max: 9999,
|
|
56
|
+
pluginId: undefined,
|
|
57
|
+
websiteTitle: "Hardhat Core",
|
|
58
|
+
CATEGORIES: {
|
|
59
|
+
GENERAL: {
|
|
60
|
+
min: 1,
|
|
61
|
+
max: 99,
|
|
62
|
+
websiteSubTitle: "General errors",
|
|
63
|
+
},
|
|
64
|
+
INTERNAL: {
|
|
65
|
+
min: 100,
|
|
66
|
+
max: 199,
|
|
67
|
+
websiteSubTitle: "Internal errors",
|
|
68
|
+
},
|
|
69
|
+
PLUGINS: {
|
|
70
|
+
min: 200,
|
|
71
|
+
max: 299,
|
|
72
|
+
websiteSubTitle: "Plugin errors",
|
|
73
|
+
},
|
|
74
|
+
HOOKS: {
|
|
75
|
+
min: 300,
|
|
76
|
+
max: 399,
|
|
77
|
+
websiteSubTitle: "Hooks errors",
|
|
78
|
+
},
|
|
79
|
+
TASK_DEFINITIONS: {
|
|
80
|
+
min: 400,
|
|
81
|
+
max: 499,
|
|
82
|
+
websiteSubTitle: "Task definition errors",
|
|
83
|
+
},
|
|
84
|
+
ARGUMENTS: {
|
|
85
|
+
min: 500,
|
|
86
|
+
max: 599,
|
|
87
|
+
websiteSubTitle: "Arguments related errors",
|
|
88
|
+
},
|
|
89
|
+
BUILTIN_TASKS: {
|
|
90
|
+
min: 600,
|
|
91
|
+
max: 699,
|
|
92
|
+
websiteSubTitle: "Built-in tasks errors",
|
|
93
|
+
},
|
|
94
|
+
NETWORK: {
|
|
95
|
+
min: 700,
|
|
96
|
+
max: 799,
|
|
97
|
+
websiteSubTitle: "Network errors",
|
|
98
|
+
},
|
|
99
|
+
SOLIDITY_TESTS: {
|
|
100
|
+
min: 800,
|
|
101
|
+
max: 899,
|
|
102
|
+
websiteSubTitle: "Solidity tests errors",
|
|
103
|
+
},
|
|
104
|
+
SOLIDITY: {
|
|
105
|
+
min: 900,
|
|
106
|
+
max: 999,
|
|
107
|
+
websiteSubTitle: "Solidity errors",
|
|
108
|
+
},
|
|
109
|
+
ARTIFACTS: {
|
|
110
|
+
min: 1000,
|
|
111
|
+
max: 1099,
|
|
112
|
+
websiteSubTitle: "Compilation artifacts related errors",
|
|
113
|
+
},
|
|
114
|
+
NODE: {
|
|
115
|
+
min: 1100,
|
|
116
|
+
max: 1199,
|
|
117
|
+
websiteSubTitle: "Hardhat node errors",
|
|
118
|
+
},
|
|
119
|
+
},
|
|
61
120
|
},
|
|
62
|
-
|
|
63
|
-
min:
|
|
64
|
-
max:
|
|
65
|
-
|
|
121
|
+
IGNITION: {
|
|
122
|
+
min: 10000,
|
|
123
|
+
max: 19999,
|
|
124
|
+
pluginId: "hardhat-ignition",
|
|
125
|
+
websiteTitle: "Hardhat Ignition",
|
|
126
|
+
CATEGORIES: {
|
|
127
|
+
GENERAL: {
|
|
128
|
+
min: 10000,
|
|
129
|
+
max: 10099,
|
|
130
|
+
websiteSubTitle: "General errors",
|
|
131
|
+
},
|
|
132
|
+
INTERNAL: {
|
|
133
|
+
min: 10100,
|
|
134
|
+
max: 10199,
|
|
135
|
+
websiteSubTitle: "Internal errors",
|
|
136
|
+
},
|
|
137
|
+
MODULE: {
|
|
138
|
+
min: 10200,
|
|
139
|
+
max: 10299,
|
|
140
|
+
websiteSubTitle: "Module errors",
|
|
141
|
+
},
|
|
142
|
+
SERIALIZATION: {
|
|
143
|
+
min: 10300,
|
|
144
|
+
max: 10399,
|
|
145
|
+
websiteSubTitle: "Serialization errors",
|
|
146
|
+
},
|
|
147
|
+
EXECUTION: {
|
|
148
|
+
min: 10400,
|
|
149
|
+
max: 10499,
|
|
150
|
+
websiteSubTitle: "Execution errors",
|
|
151
|
+
},
|
|
152
|
+
RECONCILIATION: {
|
|
153
|
+
min: 10500,
|
|
154
|
+
max: 10599,
|
|
155
|
+
websiteSubTitle: "Reconciliation errors",
|
|
156
|
+
},
|
|
157
|
+
WIPE: {
|
|
158
|
+
min: 10600,
|
|
159
|
+
max: 10699,
|
|
160
|
+
websiteSubTitle: "Wipe errors",
|
|
161
|
+
},
|
|
162
|
+
VALIDATION: {
|
|
163
|
+
min: 10700,
|
|
164
|
+
max: 10799,
|
|
165
|
+
websiteSubTitle: "Validation errors",
|
|
166
|
+
},
|
|
167
|
+
STATUS: {
|
|
168
|
+
min: 10800,
|
|
169
|
+
max: 10899,
|
|
170
|
+
websiteSubTitle: "Status errors",
|
|
171
|
+
},
|
|
172
|
+
DEPLOY: {
|
|
173
|
+
min: 10900,
|
|
174
|
+
max: 10999,
|
|
175
|
+
websiteSubTitle: "Deploy errors",
|
|
176
|
+
},
|
|
177
|
+
VERIFY: {
|
|
178
|
+
min: 11000,
|
|
179
|
+
max: 11099,
|
|
180
|
+
websiteSubTitle: "Verify errors",
|
|
181
|
+
},
|
|
182
|
+
STRATEGIES: {
|
|
183
|
+
min: 11100,
|
|
184
|
+
max: 11199,
|
|
185
|
+
websiteSubTitle: "Strategies errors",
|
|
186
|
+
},
|
|
187
|
+
LIST_TRANSACTIONS: {
|
|
188
|
+
min: 11200,
|
|
189
|
+
max: 11299,
|
|
190
|
+
websiteSubTitle: "List transactions errors",
|
|
191
|
+
},
|
|
192
|
+
},
|
|
66
193
|
},
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
194
|
+
HARDHAT_ETHERS: {
|
|
195
|
+
min: 20000,
|
|
196
|
+
max: 29999,
|
|
197
|
+
pluginId: "hardhat-ethers",
|
|
198
|
+
websiteTitle: "Hardhat Ethers",
|
|
199
|
+
CATEGORIES: {
|
|
200
|
+
GENERAL: {
|
|
201
|
+
min: 20000,
|
|
202
|
+
max: 20099,
|
|
203
|
+
websiteSubTitle: "General errors",
|
|
204
|
+
},
|
|
205
|
+
},
|
|
75
206
|
},
|
|
76
|
-
|
|
77
|
-
min:
|
|
78
|
-
max:
|
|
79
|
-
|
|
207
|
+
HARDHAT_MOCHA: {
|
|
208
|
+
min: 30000,
|
|
209
|
+
max: 39999,
|
|
210
|
+
pluginId: "hardhat-mocha",
|
|
211
|
+
websiteTitle: "Hardhat Mocha",
|
|
212
|
+
CATEGORIES: {
|
|
213
|
+
GENERAL: {
|
|
214
|
+
min: 30000,
|
|
215
|
+
max: 30099,
|
|
216
|
+
websiteSubTitle: "General errors",
|
|
217
|
+
},
|
|
218
|
+
},
|
|
80
219
|
},
|
|
81
|
-
|
|
82
|
-
min:
|
|
83
|
-
max:
|
|
84
|
-
|
|
220
|
+
HARDHAT_VIEM: {
|
|
221
|
+
min: 40000,
|
|
222
|
+
max: 49999,
|
|
223
|
+
pluginId: "hardhat-viem",
|
|
224
|
+
websiteTitle: "Hardhat Viem",
|
|
225
|
+
CATEGORIES: {
|
|
226
|
+
GENERAL: {
|
|
227
|
+
min: 40000,
|
|
228
|
+
max: 40099,
|
|
229
|
+
websiteSubTitle: "General errors",
|
|
230
|
+
},
|
|
231
|
+
},
|
|
85
232
|
},
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
233
|
+
HARDHAT_KEYSTORE: {
|
|
234
|
+
min: 50000,
|
|
235
|
+
max: 59999,
|
|
236
|
+
pluginId: "hardhat-keystore",
|
|
237
|
+
websiteTitle: "Hardhat Keystore",
|
|
238
|
+
CATEGORIES: {
|
|
239
|
+
GENERAL: {
|
|
240
|
+
min: 50000,
|
|
241
|
+
max: 50099,
|
|
242
|
+
websiteSubTitle: "General errors",
|
|
243
|
+
},
|
|
244
|
+
},
|
|
93
245
|
},
|
|
94
|
-
|
|
95
|
-
min:
|
|
96
|
-
max:
|
|
97
|
-
|
|
246
|
+
NETWORK_HELPERS: {
|
|
247
|
+
min: 60000,
|
|
248
|
+
max: 69999,
|
|
249
|
+
pluginId: "hardhat-network-helpers",
|
|
250
|
+
websiteTitle: "Hardhat Network Helpers",
|
|
251
|
+
CATEGORIES: {
|
|
252
|
+
GENERAL: {
|
|
253
|
+
min: 60000,
|
|
254
|
+
max: 60099,
|
|
255
|
+
websiteSubTitle: "General errors",
|
|
256
|
+
},
|
|
257
|
+
},
|
|
98
258
|
},
|
|
99
|
-
|
|
100
|
-
min:
|
|
101
|
-
max:
|
|
102
|
-
|
|
259
|
+
CHAI_MATCHERS: {
|
|
260
|
+
min: 70000,
|
|
261
|
+
max: 79999,
|
|
262
|
+
pluginId: "hardhat-ethers-chai-matchers",
|
|
263
|
+
websiteTitle: "Hardhat Chai Matchers",
|
|
264
|
+
CATEGORIES: {
|
|
265
|
+
GENERAL: {
|
|
266
|
+
min: 70000,
|
|
267
|
+
max: 70099,
|
|
268
|
+
websiteSubTitle: "General errors",
|
|
269
|
+
},
|
|
270
|
+
},
|
|
103
271
|
},
|
|
104
272
|
};
|
|
105
273
|
|
|
106
274
|
export const ERRORS = {
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
275
|
+
CORE: {
|
|
276
|
+
GENERAL: {
|
|
277
|
+
NOT_INSIDE_PROJECT: {
|
|
278
|
+
number: 1,
|
|
279
|
+
messageTemplate: "You are not inside a Hardhat project.",
|
|
280
|
+
websiteTitle: "You are not inside a Hardhat project",
|
|
281
|
+
websiteDescription: `You are trying to run Hardhat outside of a Hardhat project.
|
|
113
282
|
|
|
114
283
|
You can learn how to use Hardhat by reading the [Getting Started guide](/hardhat-runner/docs/getting-started).`,
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
284
|
+
},
|
|
285
|
+
DUPLICATED_PLUGIN_ID: {
|
|
286
|
+
number: 2,
|
|
287
|
+
shouldBeReported: true,
|
|
288
|
+
messageTemplate:
|
|
289
|
+
'Duplicated plugin id "{id}" found. Did you install multiple versions of the same plugin?',
|
|
290
|
+
websiteTitle: "Duplicated plugin id",
|
|
291
|
+
websiteDescription: `While loading the plugins, two different plugins where found with the same id.
|
|
123
292
|
|
|
124
293
|
Please double check whether you have multiple versions of the same plugin installed.`,
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
294
|
+
},
|
|
295
|
+
NO_CONFIG_FILE_FOUND: {
|
|
296
|
+
number: 3,
|
|
297
|
+
messageTemplate:
|
|
298
|
+
"No Hardhat config file found.\n\nYou can initialize a new project by running Hardhat with --init",
|
|
299
|
+
websiteTitle: "No Hardhat config file found",
|
|
300
|
+
websiteDescription:
|
|
301
|
+
"Hardhat couldn't find a config file in the current directory or any of its parents.",
|
|
302
|
+
},
|
|
303
|
+
INVALID_CONFIG_PATH: {
|
|
304
|
+
number: 4,
|
|
305
|
+
messageTemplate: "Config file {configPath} not found",
|
|
306
|
+
websiteTitle: "Invalid config path",
|
|
307
|
+
websiteDescription:
|
|
308
|
+
"The config file doesn't exist at the provided path.",
|
|
309
|
+
},
|
|
310
|
+
NO_CONFIG_EXPORTED: {
|
|
311
|
+
number: 5,
|
|
312
|
+
messageTemplate: "No config exported in {configPath}",
|
|
313
|
+
websiteTitle: "No config exported",
|
|
314
|
+
websiteDescription: "There is nothing exported from the config file.",
|
|
315
|
+
},
|
|
316
|
+
INVALID_CONFIG_OBJECT: {
|
|
317
|
+
number: 6,
|
|
318
|
+
messageTemplate: "Invalid config exported in {configPath}",
|
|
319
|
+
websiteTitle: "Invalid config object",
|
|
320
|
+
websiteDescription:
|
|
321
|
+
"The config file doesn't export a valid configuration object.",
|
|
322
|
+
},
|
|
323
|
+
ENV_VAR_NOT_FOUND: {
|
|
324
|
+
number: 7,
|
|
325
|
+
messageTemplate: `Configuration Variable "{name}" not found.
|
|
156
326
|
|
|
157
327
|
You can define it using a plugin like hardhat-keystore, or set it as an environment variable.`,
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
328
|
+
websiteTitle: "Configuration variable not found",
|
|
329
|
+
websiteDescription: `A configuration variable was expected to be set as an environment variable, but it wasn't.`,
|
|
330
|
+
},
|
|
331
|
+
INVALID_URL: {
|
|
332
|
+
number: 8,
|
|
333
|
+
messageTemplate: "Invalid URL: {url}",
|
|
334
|
+
websiteTitle: "Invalid URL",
|
|
335
|
+
websiteDescription: `Given value was not a valid URL.`,
|
|
336
|
+
},
|
|
337
|
+
INVALID_BIGINT: {
|
|
338
|
+
number: 9,
|
|
339
|
+
messageTemplate: "Invalid BigInt: {value}",
|
|
340
|
+
websiteTitle: "Invalid BigInt",
|
|
341
|
+
websiteDescription: `Given value was not a valid BigInt.`,
|
|
342
|
+
},
|
|
343
|
+
HARDHAT_PROJECT_ALREADY_CREATED: {
|
|
344
|
+
number: 10,
|
|
345
|
+
messageTemplate:
|
|
346
|
+
"You are trying to initialize a project inside an existing Hardhat project. The path to the project's configuration file is: {hardhatProjectRootPath}.",
|
|
347
|
+
websiteTitle: "Hardhat project already created",
|
|
348
|
+
websiteDescription: `Cannot create a new Hardhat project, the current folder is already associated with a project.`,
|
|
349
|
+
},
|
|
350
|
+
NOT_IN_INTERACTIVE_SHELL: {
|
|
351
|
+
number: 11,
|
|
352
|
+
messageTemplate:
|
|
353
|
+
"You are trying to initialize a project but you are not in an interactive shell.",
|
|
354
|
+
websiteTitle: "Not inside an interactive shell",
|
|
355
|
+
websiteDescription: `You are trying to initialize a project but you are not in an interactive shell.
|
|
186
356
|
|
|
187
357
|
Please re-run the command inside an interactive shell.`,
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
358
|
+
},
|
|
359
|
+
UNSUPPORTED_OPERATION: {
|
|
360
|
+
number: 12,
|
|
361
|
+
messageTemplate: "{operation} is not supported in Hardhat.",
|
|
362
|
+
websiteTitle: "Unsupported operation",
|
|
363
|
+
websiteDescription: `You are trying to perform an unsupported operation.
|
|
194
364
|
|
|
195
365
|
Unless you are creating a task or plugin, this is probably a bug.
|
|
196
366
|
|
|
197
367
|
Please [report it](https://github.com/nomiclabs/hardhat/issues/new) to help us improve Hardhat.`,
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
368
|
+
},
|
|
369
|
+
ONLY_ESM_SUPPORTED: {
|
|
370
|
+
number: 13,
|
|
371
|
+
messageTemplate: `Hardhat only supports ESM projects. Please be sure to specify "'type': 'module'" in your package.json`,
|
|
372
|
+
websiteTitle: "Only ESM projects are supported",
|
|
373
|
+
websiteDescription: `You are trying to initialize a new Hardhat project, but your package.json does not have the property "type" set to "module".
|
|
204
374
|
|
|
205
375
|
Currently, Hardhat only supports ESM projects.
|
|
206
376
|
|
|
207
377
|
Please add the property "type" with the value "module" in your package.json to ensure that your project is recognized as an ESM project.`,
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
378
|
+
},
|
|
379
|
+
GLOBAL_OPTION_ALREADY_DEFINED: {
|
|
380
|
+
number: 14,
|
|
381
|
+
messageTemplate:
|
|
382
|
+
'Plugin "{plugin}"" is trying to define the global option "{globalOption}" but it is already defined by plugin "{definedByPlugin}"',
|
|
383
|
+
websiteTitle: "Global option already defined",
|
|
384
|
+
websiteDescription:
|
|
385
|
+
"The global option is already defined by another plugin. Please ensure that global options are uniquely named to avoid conflicts.",
|
|
386
|
+
},
|
|
387
|
+
INVALID_CONFIG: {
|
|
388
|
+
number: 15,
|
|
389
|
+
messageTemplate: `Invalid config:
|
|
220
390
|
{errors}`,
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
391
|
+
websiteTitle: "Invalid config",
|
|
392
|
+
websiteDescription: `The configuration you provided is invalid. Please check the documentation to learn how to configure Hardhat correctly.`,
|
|
393
|
+
},
|
|
394
|
+
TEMPLATE_NOT_FOUND: {
|
|
395
|
+
number: 16,
|
|
396
|
+
messageTemplate: `Template "{template}" not found`,
|
|
397
|
+
websiteTitle: "Template not found",
|
|
398
|
+
websiteDescription: `The template you provided is not found. Please check the documentation to learn which templates are available.`,
|
|
399
|
+
},
|
|
400
|
+
WORKSPACE_NOT_FOUND: {
|
|
401
|
+
number: 17,
|
|
402
|
+
messageTemplate: `Workspace "{workspace}" not found`,
|
|
403
|
+
websiteTitle: "Workspace not found",
|
|
404
|
+
websiteDescription: `The workspace you provided does not exist. Please ensure that the workspace exists and try again.`,
|
|
405
|
+
},
|
|
406
|
+
INVALID_HEX_STRING: {
|
|
407
|
+
number: 18,
|
|
408
|
+
messageTemplate: `Invalid hex string "{value}"`,
|
|
409
|
+
websiteTitle: "Invalid hex string",
|
|
410
|
+
websiteDescription: `Given value was not a valid hex string.`,
|
|
411
|
+
},
|
|
412
|
+
},
|
|
413
|
+
INTERNAL: {
|
|
414
|
+
ASSERTION_ERROR: {
|
|
415
|
+
number: 100,
|
|
416
|
+
messageTemplate: "An internal invariant was violated: {message}",
|
|
417
|
+
websiteTitle: "Invariant violation",
|
|
418
|
+
websiteDescription: `An internal invariant was violated. This is probably caused by a programming error in Hardhat or in one of the used plugins.
|
|
249
419
|
|
|
250
420
|
Please [report it](https://github.com/nomiclabs/hardhat/issues/new) to help us improve Hardhat.`,
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
421
|
+
shouldBeReported: true,
|
|
422
|
+
},
|
|
423
|
+
NOT_IMPLEMENTED_ERROR: {
|
|
424
|
+
number: 101,
|
|
425
|
+
messageTemplate: "Not implemented: {message}",
|
|
426
|
+
websiteTitle: "Not implemented",
|
|
427
|
+
websiteDescription: `A code path that has not been implemented was unexpectedly triggered.
|
|
258
428
|
|
|
259
429
|
Please [report it](https://github.com/nomiclabs/hardhat/issues/new) to help us improve Hardhat.`,
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
430
|
+
shouldBeReported: true,
|
|
431
|
+
},
|
|
432
|
+
},
|
|
433
|
+
PLUGINS: {
|
|
434
|
+
PLUGIN_NOT_INSTALLED: {
|
|
435
|
+
number: 200,
|
|
436
|
+
messageTemplate: 'Plugin "{pluginId}" is not installed.',
|
|
437
|
+
websiteTitle: "Plugin not installed",
|
|
438
|
+
websiteDescription: `A plugin was included in the Hardhat config but has not been installed into "node_modules".`,
|
|
439
|
+
},
|
|
440
|
+
PLUGIN_MISSING_DEPENDENCY: {
|
|
441
|
+
number: 201,
|
|
442
|
+
messageTemplate:
|
|
443
|
+
'Plugin "{pluginId}" is missing a peer dependency "{peerDependencyName}".',
|
|
444
|
+
websiteTitle: "Plugin missing peer dependency",
|
|
445
|
+
websiteDescription: `A plugin's peer dependency has not been installed.`,
|
|
446
|
+
},
|
|
447
|
+
DEPENDENCY_VERSION_MISMATCH: {
|
|
448
|
+
number: 202,
|
|
449
|
+
messageTemplate:
|
|
450
|
+
'Plugin "{pluginId}" has a peer dependency "{peerDependencyName}" with expected version "{expectedVersion}" but the installed version is "{installedVersion}".',
|
|
451
|
+
websiteTitle: "Dependency version mismatch",
|
|
452
|
+
websiteDescription: `A plugin's peer dependency expected version does not match the version of the installed package.
|
|
283
453
|
|
|
284
454
|
Please install a version of the peer dependency that meets the plugin's requirements.`,
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
455
|
+
},
|
|
456
|
+
PLUGIN_DEPENDENCY_FAILED_LOAD: {
|
|
457
|
+
number: 203,
|
|
458
|
+
messageTemplate: 'Plugin "{pluginId}" dependency could not be loaded.',
|
|
459
|
+
websiteTitle: "Plugin dependency could not be loaded",
|
|
460
|
+
websiteDescription: `The loading of a plugin's dependent plugin failed.`,
|
|
461
|
+
},
|
|
462
|
+
},
|
|
463
|
+
HOOKS: {
|
|
464
|
+
INVALID_HOOK_FACTORY_PATH: {
|
|
465
|
+
number: 300,
|
|
466
|
+
messageTemplate:
|
|
467
|
+
'Plugin "{pluginId}" hook factory for "{hookCategoryName}" is not a valid file:// URL: {path}.',
|
|
468
|
+
websiteTitle: "Plugin hook factory is not a valid file URL",
|
|
469
|
+
websiteDescription: `The loading of a plugin's hook factory failed as the import path is not a valid file:// URL.`,
|
|
470
|
+
},
|
|
471
|
+
},
|
|
472
|
+
TASK_DEFINITIONS: {
|
|
473
|
+
INVALID_FILE_ACTION: {
|
|
474
|
+
number: 400,
|
|
475
|
+
messageTemplate:
|
|
476
|
+
"Invalid file action: {action} is not a valid file URL",
|
|
477
|
+
websiteTitle: "Invalid file action",
|
|
478
|
+
websiteDescription: `The setAction function was called with a string parameter that is not a valid file URL. A valid file URL must start with 'file://'.
|
|
308
479
|
|
|
309
480
|
Please ensure that you are providing a correct file URL.`,
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
481
|
+
},
|
|
482
|
+
NO_ACTION: {
|
|
483
|
+
number: 401,
|
|
484
|
+
messageTemplate: `The task "{task}" doesn't have an action`,
|
|
485
|
+
websiteTitle: "Task missing action",
|
|
486
|
+
websiteDescription: `A task was defined without an action.
|
|
316
487
|
|
|
317
488
|
Please ensure that an action is defined for each task.`,
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
489
|
+
},
|
|
490
|
+
POSITIONAL_ARG_AFTER_VARIADIC: {
|
|
491
|
+
number: 402,
|
|
492
|
+
messageTemplate:
|
|
493
|
+
'Cannot add the positional argument "{name}" after a variadic one',
|
|
494
|
+
websiteTitle: "Invalid task definition",
|
|
495
|
+
websiteDescription:
|
|
496
|
+
"A variadic argument must always be the last positional argument in a task definition.",
|
|
497
|
+
},
|
|
498
|
+
REQUIRED_ARG_AFTER_OPTIONAL: {
|
|
499
|
+
number: 403,
|
|
500
|
+
messageTemplate:
|
|
501
|
+
'Cannot add required positional argument "{name}" after an optional one',
|
|
502
|
+
websiteTitle: "Invalid task definition",
|
|
503
|
+
websiteDescription:
|
|
504
|
+
"Required positional arguments must be defined before optional ones in a task definition.",
|
|
505
|
+
},
|
|
506
|
+
TASK_NOT_FOUND: {
|
|
507
|
+
number: 404,
|
|
508
|
+
messageTemplate: 'Task "{task}" not found',
|
|
509
|
+
websiteTitle: "Task not found",
|
|
510
|
+
websiteDescription: "The provided task name does not match any task.",
|
|
511
|
+
},
|
|
512
|
+
SUBTASK_WITHOUT_PARENT: {
|
|
513
|
+
number: 405,
|
|
514
|
+
messageTemplate:
|
|
515
|
+
'Task "{task}" not found when attempting to define subtask "{subtask}". If you intend to only define subtasks, please first define "{task}" as an empty task',
|
|
516
|
+
websiteTitle: "Subtask without parent",
|
|
517
|
+
websiteDescription:
|
|
518
|
+
"The parent task of the subtask being defined was not found. If you intend to only define subtasks, please first define the parent task as an empty task.",
|
|
519
|
+
},
|
|
520
|
+
TASK_ALREADY_DEFINED: {
|
|
521
|
+
number: 406,
|
|
522
|
+
messageTemplate:
|
|
523
|
+
'{actorFragment} trying to define the task "{task}" but it is already defined{definedByFragment}',
|
|
524
|
+
websiteTitle: "Task already defined",
|
|
525
|
+
websiteDescription:
|
|
526
|
+
"The task is already defined. Please ensure that tasks are uniquely named to avoid conflicts.",
|
|
527
|
+
},
|
|
528
|
+
EMPTY_TASK_ID: {
|
|
529
|
+
number: 407,
|
|
530
|
+
messageTemplate: "Task id cannot be an empty string or an empty array",
|
|
531
|
+
websiteTitle: "Empty task id",
|
|
532
|
+
websiteDescription:
|
|
533
|
+
"The task id cannot be an empty string or an empty array. Please ensure that the array of task names is not empty.",
|
|
534
|
+
},
|
|
535
|
+
TASK_OPTION_ALREADY_DEFINED: {
|
|
536
|
+
number: 408,
|
|
537
|
+
messageTemplate:
|
|
538
|
+
'{actorFragment} trying to define task "{task}" with the option "{option}" but it is already defined as a global option by plugin "{globalOptionPluginId}"',
|
|
539
|
+
websiteTitle: "Task option already defined",
|
|
540
|
+
websiteDescription:
|
|
541
|
+
"The task option is already defined as a global option by another plugin. Please ensure that task options are uniquely named to avoid conflicts.",
|
|
542
|
+
},
|
|
543
|
+
TASK_OVERRIDE_OPTION_ALREADY_DEFINED: {
|
|
544
|
+
number: 409,
|
|
545
|
+
messageTemplate:
|
|
546
|
+
'{actorFragment} trying to override the option "{option}" of the task "{task}" but it is already defined',
|
|
547
|
+
websiteTitle: "Task override option already defined",
|
|
548
|
+
websiteDescription:
|
|
549
|
+
"An attempt is being made to override an option that has already been defined. Please ensure that the option is not defined before trying to override it.",
|
|
550
|
+
},
|
|
551
|
+
EMPTY_TASK: {
|
|
552
|
+
number: 410,
|
|
553
|
+
messageTemplate: `Can't run the empty task "{task}"`,
|
|
554
|
+
websiteTitle: "Empty task",
|
|
555
|
+
websiteDescription:
|
|
556
|
+
"The task is empty. Please ensure that tasks have at least one action.",
|
|
557
|
+
},
|
|
558
|
+
INVALID_ACTION_URL: {
|
|
559
|
+
number: 411,
|
|
560
|
+
messageTemplate:
|
|
561
|
+
'Unable to import the action specified by task "{task}" from the module "{action}"',
|
|
562
|
+
websiteTitle: "Invalid action URL",
|
|
563
|
+
websiteDescription:
|
|
564
|
+
"The action URL is invalid. Please ensure that the URL is correct.",
|
|
565
|
+
},
|
|
566
|
+
INVALID_ACTION: {
|
|
567
|
+
number: 412,
|
|
568
|
+
messageTemplate:
|
|
569
|
+
'The action resolved from "{action}" in task "{task}" is not a function',
|
|
570
|
+
websiteTitle: "Invalid action",
|
|
571
|
+
websiteDescription:
|
|
572
|
+
"The action of the task is not a function. Make sure that the file pointed to by the action URL exports a function as the default export.",
|
|
573
|
+
},
|
|
574
|
+
MISSING_VALUE_FOR_TASK_ARGUMENT: {
|
|
575
|
+
number: 413,
|
|
576
|
+
messageTemplate:
|
|
577
|
+
'Missing value for the argument named "{argument}" in the task "{task}"',
|
|
578
|
+
websiteTitle: "Missing value for the task argument",
|
|
579
|
+
websiteDescription: `You tried to run a task, but one of the values of its arguments was missing.
|
|
409
580
|
|
|
410
581
|
Please double check how you invoked Hardhat or ran your task.`,
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
582
|
+
},
|
|
583
|
+
INVALID_VALUE_FOR_TYPE: {
|
|
584
|
+
number: 414,
|
|
585
|
+
messageTemplate:
|
|
586
|
+
'Invalid value "{value}" for argument "{name}" of type "{type}" in the task "{task}"',
|
|
587
|
+
websiteTitle: "Invalid argument type",
|
|
588
|
+
websiteDescription: `One of your task arguments has an invalid type.
|
|
418
589
|
|
|
419
590
|
Please double check your task arguments.`,
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
591
|
+
},
|
|
592
|
+
UNRECOGNIZED_TASK_OPTION: {
|
|
593
|
+
number: 415,
|
|
594
|
+
messageTemplate: 'Invalid option "{option}" for the task "{task}"',
|
|
595
|
+
websiteTitle: "Invalid option value",
|
|
596
|
+
websiteDescription: `One of the options for your task is invalid.
|
|
426
597
|
|
|
427
598
|
Please double check your arguments.`,
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
599
|
+
},
|
|
600
|
+
UNRECOGNIZED_SUBTASK: {
|
|
601
|
+
number: 416,
|
|
602
|
+
messageTemplate:
|
|
603
|
+
'Unrecognized subtask "{invalidSubtask}" for the task "{task}"',
|
|
604
|
+
websiteTitle: "Unrecognized subtask",
|
|
605
|
+
websiteDescription: `The subtask for the task you provided is not recognized.
|
|
435
606
|
|
|
436
607
|
Please check you have the correct subtask.`,
|
|
608
|
+
},
|
|
437
609
|
},
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
websiteDescription: `One of your Hardhat or task arguments has an invalid type.
|
|
610
|
+
ARGUMENTS: {
|
|
611
|
+
INVALID_VALUE_FOR_TYPE: {
|
|
612
|
+
number: 500,
|
|
613
|
+
messageTemplate:
|
|
614
|
+
'Invalid value "{value}" for argument "{name}" of type "{type}"',
|
|
615
|
+
websiteTitle: "Invalid argument type",
|
|
616
|
+
websiteDescription: `One of your Hardhat or task arguments has an invalid type.
|
|
446
617
|
|
|
447
618
|
Please double check your arguments.`,
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
619
|
+
},
|
|
620
|
+
RESERVED_NAME: {
|
|
621
|
+
number: 501,
|
|
622
|
+
messageTemplate: 'Argument name "{name}" is reserved',
|
|
623
|
+
websiteTitle: "Reserved argument name",
|
|
624
|
+
websiteDescription: `One of your Hardhat or task arguments has a reserved name.
|
|
454
625
|
|
|
455
626
|
Please double check your arguments.`,
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
627
|
+
},
|
|
628
|
+
DUPLICATED_NAME: {
|
|
629
|
+
number: 502,
|
|
630
|
+
messageTemplate: 'Argument name "{name}" is already in use',
|
|
631
|
+
websiteTitle: "Argument name already in use",
|
|
632
|
+
websiteDescription: `One of your Hardhat or task argument names is already in use.
|
|
462
633
|
|
|
463
634
|
Please double check your arguments.`,
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
635
|
+
},
|
|
636
|
+
INVALID_NAME: {
|
|
637
|
+
number: 503,
|
|
638
|
+
messageTemplate: `Argument name "{name}" is invalid. It must consist only of alphanumeric characters and cannot start with a number.`,
|
|
639
|
+
websiteTitle: "Invalid argument name",
|
|
640
|
+
websiteDescription: `One of your Hardhat or task argument names is invalid.
|
|
470
641
|
|
|
471
642
|
Please double check your arguments.`,
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
643
|
+
},
|
|
644
|
+
UNRECOGNIZED_OPTION: {
|
|
645
|
+
number: 504,
|
|
646
|
+
messageTemplate:
|
|
647
|
+
'Invalid option "{option}". It is neither a valid global option nor associated with any task. Did you forget to add the task first, or did you misspell it?',
|
|
648
|
+
websiteTitle: "Invalid option value",
|
|
649
|
+
websiteDescription: `One of your Hardhat options is invalid.
|
|
479
650
|
|
|
480
651
|
Please double check your arguments.`,
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
652
|
+
},
|
|
653
|
+
MISSING_VALUE_FOR_ARGUMENT: {
|
|
654
|
+
number: 505,
|
|
655
|
+
messageTemplate:
|
|
656
|
+
'Missing value for the task argument named "{argument}"',
|
|
657
|
+
websiteTitle: "Missing value for the task argument",
|
|
658
|
+
websiteDescription: `You tried to run a task, but one of the values of its arguments was missing.
|
|
487
659
|
|
|
488
660
|
Please double check how you invoked Hardhat or ran your task.`,
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
661
|
+
},
|
|
662
|
+
UNUSED_ARGUMENT: {
|
|
663
|
+
number: 506,
|
|
664
|
+
messageTemplate:
|
|
665
|
+
'The argument with value "{value}" was not consumed because it is not associated with any task.',
|
|
666
|
+
websiteTitle: "Argument was not consumed",
|
|
667
|
+
websiteDescription: `You tried to run a task, but one of your arguments was not consumed.
|
|
496
668
|
|
|
497
669
|
Please double check how you invoked Hardhat or ran your task.`,
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
670
|
+
},
|
|
671
|
+
MISSING_CONFIG_FILE: {
|
|
672
|
+
number: 507,
|
|
673
|
+
messageTemplate:
|
|
674
|
+
'The global option "--config" was passed, but no file path was provided.',
|
|
675
|
+
websiteTitle: "Missing configuration file path",
|
|
676
|
+
websiteDescription: `A path to the configuration file is expected after the global option "--config", but none was provided.
|
|
505
677
|
|
|
506
678
|
Please double check your arguments.`,
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
679
|
+
},
|
|
680
|
+
CANNOT_COMBINE_INIT_AND_CONFIG_PATH: {
|
|
681
|
+
number: 508,
|
|
682
|
+
messageTemplate:
|
|
683
|
+
'The global option "--config" cannot be used with the "init" command',
|
|
684
|
+
websiteTitle:
|
|
685
|
+
'The global option "--config" cannot be used with the "init" command',
|
|
686
|
+
websiteDescription: `The global option "--config" cannot be used with the "init" command.
|
|
515
687
|
|
|
516
688
|
Please double check your arguments.`,
|
|
689
|
+
},
|
|
517
690
|
},
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
websiteDescription: `Tried to use \`hardhat run\` to execute a nonexistent script.
|
|
691
|
+
BUILTIN_TASKS: {
|
|
692
|
+
RUN_FILE_NOT_FOUND: {
|
|
693
|
+
number: 600,
|
|
694
|
+
messageTemplate: `Script "{script}" doesn't exist`,
|
|
695
|
+
websiteTitle: "Script doesn't exist",
|
|
696
|
+
websiteDescription: `Tried to use \`hardhat run\` to execute a nonexistent script.
|
|
525
697
|
|
|
526
698
|
Please double check your script's path.`,
|
|
699
|
+
},
|
|
527
700
|
},
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
},
|
|
535
|
-
},
|
|
536
|
-
NETWORK: {
|
|
537
|
-
INVALID_URL: {
|
|
538
|
-
number: 700,
|
|
539
|
-
messageTemplate: 'Invalid URL "{value}" for network or forking.',
|
|
540
|
-
websiteTitle: "Invalid URL for network or forking",
|
|
541
|
-
websiteDescription: `You are trying to connect to a network with an invalid network or forking URL.
|
|
701
|
+
NETWORK: {
|
|
702
|
+
INVALID_URL: {
|
|
703
|
+
number: 700,
|
|
704
|
+
messageTemplate: 'Invalid URL "{value}" for network or forking.',
|
|
705
|
+
websiteTitle: "Invalid URL for network or forking",
|
|
706
|
+
websiteDescription: `You are trying to connect to a network with an invalid network or forking URL.
|
|
542
707
|
|
|
543
708
|
Please check that you are sending a valid URL string for the network or forking \`URL\` parameter.`,
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
709
|
+
},
|
|
710
|
+
INVALID_REQUEST_PARAMS: {
|
|
711
|
+
number: 701,
|
|
712
|
+
messageTemplate:
|
|
713
|
+
"Invalid request arguments: only array parameters are supported.",
|
|
714
|
+
websiteTitle: "Invalid method parameters",
|
|
715
|
+
websiteDescription:
|
|
716
|
+
"The JSON-RPC request parameters are invalid. You are trying to make an EIP-1193 request with object parameters, but only array parameters are supported. Ensure that the 'params' parameter is correctly specified as an array in your JSON-RPC request.",
|
|
717
|
+
},
|
|
718
|
+
INVALID_JSON_RESPONSE: {
|
|
719
|
+
number: 702,
|
|
720
|
+
messageTemplate: "Invalid JSON-RPC response received: {response}",
|
|
721
|
+
websiteTitle: "Invalid JSON-RPC response",
|
|
722
|
+
websiteDescription: `One of your JSON-RPC requests received an invalid response.
|
|
558
723
|
|
|
559
724
|
Please make sure your node is running, and check your internet connection and networks config.`,
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
725
|
+
},
|
|
726
|
+
CONNECTION_REFUSED: {
|
|
727
|
+
number: 703,
|
|
728
|
+
messageTemplate: `Cannot connect to the network "{network}".
|
|
564
729
|
Please make sure your node is running, and check your internet connection and networks config`,
|
|
565
|
-
|
|
566
|
-
|
|
730
|
+
websiteTitle: "Cannot connect to the network",
|
|
731
|
+
websiteDescription: `Cannot connect to the network.
|
|
567
732
|
|
|
568
733
|
Please make sure your node is running, and check your internet connection and networks config.`,
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
734
|
+
},
|
|
735
|
+
NETWORK_TIMEOUT: {
|
|
736
|
+
number: 704,
|
|
737
|
+
messageTemplate: `Network connection timed out.
|
|
573
738
|
Please check your internet connection and networks config`,
|
|
574
|
-
|
|
575
|
-
|
|
739
|
+
websiteTitle: "Network timeout",
|
|
740
|
+
websiteDescription: `One of your JSON-RPC requests timed out.
|
|
576
741
|
|
|
577
742
|
Please make sure your node is running, and check your internet connection and networks config.`,
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
743
|
+
},
|
|
744
|
+
NETWORK_NOT_FOUND: {
|
|
745
|
+
number: 705,
|
|
746
|
+
messageTemplate: `The network "{networkName}" is not defined in your networks config.`,
|
|
747
|
+
websiteTitle: "Network not found",
|
|
748
|
+
websiteDescription: `The network you are trying to connect to is not found.
|
|
584
749
|
|
|
585
750
|
Please double check that the network is correctly defined in your networks config.`,
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
751
|
+
},
|
|
752
|
+
INVALID_CHAIN_TYPE: {
|
|
753
|
+
number: 706,
|
|
754
|
+
messageTemplate: `The provided chain type "{chainType}" does not match the network's chain type "{networkChainType}" for network "{networkName}".`,
|
|
755
|
+
websiteTitle: "Invalid chain type",
|
|
756
|
+
websiteDescription: `The chain type does not match the network's chain type.
|
|
592
757
|
|
|
593
758
|
If you want to use a different chain type, please update your networks config.`,
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
759
|
+
},
|
|
760
|
+
INVALID_CONFIG_OVERRIDE: {
|
|
761
|
+
number: 707,
|
|
762
|
+
messageTemplate: `Invalid config override:
|
|
598
763
|
{errors}`,
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
764
|
+
websiteTitle: "Invalid config override",
|
|
765
|
+
websiteDescription: `The configuration override you provided is invalid.`,
|
|
766
|
+
},
|
|
767
|
+
INVALID_GLOBAL_CHAIN_ID: {
|
|
768
|
+
number: 708,
|
|
769
|
+
messageTemplate:
|
|
770
|
+
'Hardhat was set to use chain id "{configChainId}", but connected to a chain with id "{connectionChainId}".',
|
|
771
|
+
websiteTitle: "Invalid global chain id",
|
|
772
|
+
websiteDescription: `Hardhat was set to use a chain id but connected to a chain with a different id`,
|
|
773
|
+
},
|
|
774
|
+
NO_REMOTE_ACCOUNT_AVAILABLE: {
|
|
775
|
+
number: 709,
|
|
776
|
+
messageTemplate:
|
|
777
|
+
"No local account was set and there are accounts in the remote node.",
|
|
778
|
+
websiteTitle: "No remote account available",
|
|
779
|
+
websiteDescription:
|
|
780
|
+
"No local account was set and there are accounts in the remote node",
|
|
781
|
+
},
|
|
782
|
+
ETHSIGN_MISSING_DATA_PARAM: {
|
|
783
|
+
number: 710,
|
|
784
|
+
messageTemplate: `Missing "data" param when calling eth_sign.`,
|
|
785
|
+
websiteTitle: `Missing "data" param when calling eth_sign`,
|
|
786
|
+
websiteDescription: `You called "eth_sign" with incorrect parameters.
|
|
622
787
|
|
|
623
788
|
Please check that you are sending a "data" parameter.`,
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
789
|
+
},
|
|
790
|
+
PERSONALSIGN_MISSING_ADDRESS_PARAM: {
|
|
791
|
+
number: 711,
|
|
792
|
+
messageTemplate: `Missing "address" param when calling personal_sign.`,
|
|
793
|
+
websiteTitle: `Missing "address" param when calling personal_sign`,
|
|
794
|
+
websiteDescription: `You called "personal_sign" with incorrect parameters.
|
|
630
795
|
|
|
631
796
|
Please check that you are sending an "address" parameter.`,
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
797
|
+
},
|
|
798
|
+
ETHSIGN_TYPED_DATA_V4_INVALID_DATA_PARAM: {
|
|
799
|
+
number: 712,
|
|
800
|
+
messageTemplate: `Invalid "data" param when calling eth_signTypedData_v4.`,
|
|
801
|
+
websiteTitle: `Invalid "data" param when calling eth_signTypedData_v4`,
|
|
802
|
+
websiteDescription: `You called "eth_signTypedData_v4" with incorrect parameters.
|
|
638
803
|
|
|
639
804
|
Please check that you are sending a "data" parameter with a JSON string or object conforming to EIP712 TypedData schema.`,
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
805
|
+
},
|
|
806
|
+
MISSING_TX_PARAM_TO_SIGN_LOCALLY: {
|
|
807
|
+
number: 713,
|
|
808
|
+
messageTemplate: `Missing param "{param}" from a tx being signed locally.`,
|
|
809
|
+
websiteTitle: "Missing transaction parameter",
|
|
810
|
+
websiteDescription: `You are trying to send a transaction with a locally managed account, and some parameters are missing.
|
|
646
811
|
|
|
647
812
|
Please double check your transactions' parameters.`,
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
813
|
+
},
|
|
814
|
+
MISSING_FEE_PRICE_FIELDS: {
|
|
815
|
+
number: 714,
|
|
816
|
+
messageTemplate:
|
|
817
|
+
"Tried to sign a transaction locally, but gasPrice, maxFeePerGas, and maxPriorityFeePerGas were missing.",
|
|
818
|
+
websiteTitle: "Missing fee price parameters",
|
|
819
|
+
websiteDescription: `You are trying to send a transaction with a locally managed account, and no fee price parameters were provided. You need to send gasPrice, or maxFeePerGas and maxPriorityFeePerGas.
|
|
655
820
|
|
|
656
821
|
Please double check your transactions' parameters.`,
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
822
|
+
},
|
|
823
|
+
INCOMPATIBLE_FEE_PRICE_FIELDS: {
|
|
824
|
+
number: 715,
|
|
825
|
+
messageTemplate:
|
|
826
|
+
"An incompatible transaction with gasPrice and EIP-1559 fee price fields.",
|
|
827
|
+
websiteTitle: "Incompatible fee price parameters",
|
|
828
|
+
websiteDescription: `You are trying to send a transaction with a locally managed account, and its parameters are incompatible. You sent both gasPrice, and maxFeePerGas or maxPriorityFeePerGas.
|
|
664
829
|
|
|
665
830
|
Please double check your transactions' parameters.`,
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
831
|
+
},
|
|
832
|
+
NOT_LOCAL_ACCOUNT: {
|
|
833
|
+
number: 716,
|
|
834
|
+
messageTemplate: `Account "{account}" is not managed by the node you are connected to.`,
|
|
835
|
+
websiteTitle: "Unrecognized account",
|
|
836
|
+
websiteDescription: `You are trying to send a transaction or sign some data with an account not managed by your Ethereum node nor Hardhat.
|
|
672
837
|
|
|
673
838
|
Please double check your accounts and the "from" parameter in your RPC calls.`,
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
839
|
+
},
|
|
840
|
+
INVALID_HD_PATH: {
|
|
841
|
+
number: 717,
|
|
842
|
+
messageTemplate: `HD path "{path}" is invalid. Read about BIP32 to know about the valid forms.`,
|
|
843
|
+
websiteTitle: "Invalid HD path",
|
|
844
|
+
websiteDescription: `An invalid HD/BIP32 derivation path was provided in your config.
|
|
680
845
|
|
|
681
846
|
Read the [documentation](https://hardhat.org/hardhat-runner/docs/config#hd-wallet-config) to learn how to define HD accounts correctly.`,
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
847
|
+
},
|
|
848
|
+
CANT_DERIVE_KEY: {
|
|
849
|
+
number: 718,
|
|
850
|
+
messageTemplate: `Cannot derive key "{path}" from mnemonic "{mnemonic}". Try using another mnemonic or deriving fewer keys.`,
|
|
851
|
+
websiteTitle: "Could not derive an HD key",
|
|
852
|
+
websiteDescription: `One of your HD keys could not be derived.
|
|
688
853
|
|
|
689
854
|
Try using another mnemonic or deriving less keys.`,
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
number: 900,
|
|
733
|
-
messageTemplate: `Only hex-encoded strings prefixed with "0x" are accepted`,
|
|
734
|
-
websiteTitle: `Only hex-encoded strings prefixed with "0x" are accepted`,
|
|
735
|
-
websiteDescription: `Only hex-encoded strings prefixed with "0x" are accepted`,
|
|
736
|
-
},
|
|
737
|
-
CANNOT_CONVERT_TO_RPC_QUANTITY: {
|
|
738
|
-
number: 901,
|
|
739
|
-
messageTemplate: `The value "{value}" cannot be converted into an RPC quantity`,
|
|
740
|
-
websiteTitle: "Cannot converted into an RPC quantity",
|
|
741
|
-
websiteDescription: "The value cannot be converted into an RPC quantity",
|
|
742
|
-
},
|
|
743
|
-
INVALID_HEX_STRING: {
|
|
744
|
-
number: 902,
|
|
745
|
-
messageTemplate: `"{value}" is not a valid hex string`,
|
|
746
|
-
websiteTitle: "Invalid hex string",
|
|
747
|
-
websiteDescription: "The value is not a valid hex string",
|
|
748
|
-
},
|
|
749
|
-
INVALID_TX_HASH: {
|
|
750
|
-
number: 903,
|
|
751
|
-
messageTemplate: `"{value}" is not a valid transaction hash`,
|
|
752
|
-
websiteTitle: "Invalid transaction hash",
|
|
753
|
-
websiteDescription: "The value is not a valid transaction hash",
|
|
754
|
-
},
|
|
755
|
-
INVALID_ADDRESS: {
|
|
756
|
-
number: 904,
|
|
757
|
-
messageTemplate: `"{value}" is not a valid address`,
|
|
758
|
-
websiteTitle: "Invalid address",
|
|
759
|
-
websiteDescription: "The value is not a valid address",
|
|
760
|
-
},
|
|
761
|
-
INVALID_CHECKSUM_ADDRESS: {
|
|
762
|
-
number: 905,
|
|
763
|
-
messageTemplate: `Address "{value}" has an invalid checksum`,
|
|
764
|
-
websiteTitle: "Invalid checksum address",
|
|
765
|
-
websiteDescription: "The address has an invalid checksum",
|
|
766
|
-
},
|
|
767
|
-
BLOCK_NUMBER_SMALLER_THAN_CURRENT: {
|
|
768
|
-
number: 906,
|
|
769
|
-
messageTemplate: `The block number "{newValue}" is smaller than the current block number "{currentValue}"`,
|
|
770
|
-
websiteTitle: "Block number smaller than the current block number",
|
|
771
|
-
websiteDescription:
|
|
772
|
-
"The block number is smaller than the current block number",
|
|
773
|
-
},
|
|
774
|
-
EVM_SNAPSHOT_VALUE_NOT_A_STRING: {
|
|
775
|
-
number: 907,
|
|
776
|
-
messageTemplate: `The value returned by evm_snapshot should be a string`,
|
|
777
|
-
websiteTitle: "The evm_snapshot value should be a string",
|
|
778
|
-
websiteDescription:
|
|
779
|
-
"The value returned by evm_snapshot should be a string",
|
|
780
|
-
},
|
|
781
|
-
EVM_REVERT_VALUE_NOT_A_BOOLEAN: {
|
|
782
|
-
number: 908,
|
|
783
|
-
messageTemplate: `The value returned by evm_revert should be a boolean`,
|
|
784
|
-
websiteTitle: "The evm_revert value should be a boolean",
|
|
785
|
-
websiteDescription:
|
|
786
|
-
"The value returned by evm_revert should be a boolean",
|
|
787
|
-
},
|
|
788
|
-
INVALID_SNAPSHOT: {
|
|
789
|
-
number: 909,
|
|
790
|
-
messageTemplate: `Trying to restore an invalid snapshot.`,
|
|
791
|
-
websiteTitle: "Trying to restore an invalid snapshot.",
|
|
792
|
-
websiteDescription: "Trying to restore an invalid snapshot.",
|
|
793
|
-
},
|
|
794
|
-
EXPECTED_NON_NEGATIVE_NUMBER: {
|
|
795
|
-
number: 910,
|
|
796
|
-
messageTemplate: `Invalid input: expected a non-negative number but "{value}" was given.`,
|
|
797
|
-
websiteTitle: "Invalid input, expected a non-negative number",
|
|
798
|
-
websiteDescription: "Invalid input, expected a non-negative number",
|
|
799
|
-
},
|
|
800
|
-
CANNOT_CONVERT_NEGATIVE_NUMBER_TO_RPC_QUANTITY: {
|
|
801
|
-
number: 911,
|
|
802
|
-
messageTemplate: `Cannot convert negative number "{value}" to RPC quantity`,
|
|
803
|
-
websiteTitle: "Cannot convert negative number to RPC quantity",
|
|
804
|
-
websiteDescription: "Cannot convert negative number to RPC quantity",
|
|
805
|
-
},
|
|
806
|
-
FIXTURE_ANONYMOUS_FUNCTION_ERROR: {
|
|
807
|
-
number: 912,
|
|
808
|
-
messageTemplate: `Anonymous functions cannot be used as fixtures.
|
|
809
|
-
|
|
810
|
-
You probably did something like this:
|
|
811
|
-
|
|
812
|
-
loadFixture(async () => ... );
|
|
813
|
-
|
|
814
|
-
Instead, define a fixture function and refer to that same function in each call to loadFixture.
|
|
815
|
-
|
|
816
|
-
Learn more at (https://hardhat.org/hardhat-network-helpers/docs/reference#fixtures)`,
|
|
817
|
-
websiteTitle: "Anonymous functions cannot be used as fixtures",
|
|
818
|
-
websiteDescription: "Anonymous functions cannot be used as fixtures",
|
|
819
|
-
},
|
|
820
|
-
FIXTURE_SNAPSHOT_ERROR: {
|
|
821
|
-
number: 913,
|
|
822
|
-
messageTemplate: `There was an error reverting the snapshot of the fixture.
|
|
823
|
-
|
|
824
|
-
This might be caused by using hardhat_reset and loadFixture calls in a testcase.`,
|
|
825
|
-
websiteTitle: "Error while reverting snapshot",
|
|
826
|
-
websiteDescription: "Error while reverting snapshot",
|
|
827
|
-
},
|
|
828
|
-
CAN_ONLY_BE_USED_WITH_HARDHAT_NETWORK: {
|
|
829
|
-
number: 914,
|
|
830
|
-
messageTemplate: `This helper can only be used with the Hardhat Network. You are connected to "{networkName}".`,
|
|
831
|
-
websiteTitle:
|
|
832
|
-
"Hardhat network helpers can only be used with the Hardhat Network",
|
|
833
|
-
websiteDescription:
|
|
834
|
-
"Hardhat network helpers can only be used with the Hardhat Network",
|
|
835
|
-
},
|
|
836
|
-
CAN_ONLY_BE_USED_WITH_HARDHAT_NETWORK_VERSIONED: {
|
|
837
|
-
number: 915,
|
|
838
|
-
messageTemplate: `This helper can only be used with the Hardhat Network. You are connected to "{networkName}", whose identifier is "{version}".`,
|
|
839
|
-
websiteTitle:
|
|
840
|
-
"Hardhat network helpers can only be used with the Hardhat Network - version info",
|
|
841
|
-
websiteDescription:
|
|
842
|
-
"Hardhat network helpers can only be used with the Hardhat Network",
|
|
843
|
-
},
|
|
844
|
-
},
|
|
845
|
-
SOLIDITY_TESTS: {
|
|
846
|
-
BUILD_INFO_NOT_FOUND_FOR_CONTRACT: {
|
|
847
|
-
number: 1000,
|
|
848
|
-
shouldBeReported: true,
|
|
849
|
-
messageTemplate: `Build info not found for contract "{fqn}"`,
|
|
850
|
-
websiteTitle: `Build info not found for contract`,
|
|
851
|
-
websiteDescription: `Build info not found for contract while compiling Solidity test contracts.`,
|
|
852
|
-
},
|
|
853
|
-
RUNNER_TIMEOUT: {
|
|
854
|
-
number: 1001,
|
|
855
|
-
messageTemplate: `Runner timed out after {duration} ms.
|
|
855
|
+
},
|
|
856
|
+
WRONG_VALIDATION_PARAMS: {
|
|
857
|
+
number: 719,
|
|
858
|
+
messageTemplate:
|
|
859
|
+
"Validation of parameters against the schemas failed for the following reason: {reason}",
|
|
860
|
+
websiteTitle: "Invalid validation parameters",
|
|
861
|
+
websiteDescription:
|
|
862
|
+
"The validation of parameters against the schemas failed.",
|
|
863
|
+
},
|
|
864
|
+
INVALID_NETWORK_TYPE: {
|
|
865
|
+
number: 720,
|
|
866
|
+
messageTemplate:
|
|
867
|
+
'The provided network type "{networkType}" for network "{networkName}" is not recognized, only `http` and `edr` are supported.',
|
|
868
|
+
websiteTitle: "Invalid network type",
|
|
869
|
+
websiteDescription: `The network manager only supports the network types 'http' and 'edr'.`,
|
|
870
|
+
},
|
|
871
|
+
DATA_FIELD_CANNOT_BE_NULL_WITH_NULL_ADDRESS: {
|
|
872
|
+
number: 721,
|
|
873
|
+
messageTemplate: `The "to" field is undefined, and the "data" field is also undefined; however, a transaction to the null address cannot have an undefined "data" field.`,
|
|
874
|
+
websiteTitle: "Transaction to null address cannot have undefined data",
|
|
875
|
+
websiteDescription:
|
|
876
|
+
"The transaction to the null address cannot have undefined data",
|
|
877
|
+
},
|
|
878
|
+
PROVIDER_CLOSED: {
|
|
879
|
+
number: 722,
|
|
880
|
+
messageTemplate: "The provider has been closed.",
|
|
881
|
+
websiteTitle: "Provider closed",
|
|
882
|
+
websiteDescription:
|
|
883
|
+
"The provider your are trying to use has been closed. Please create a new one using hre.network.connect() and try again.",
|
|
884
|
+
},
|
|
885
|
+
},
|
|
886
|
+
SOLIDITY_TESTS: {
|
|
887
|
+
BUILD_INFO_NOT_FOUND_FOR_CONTRACT: {
|
|
888
|
+
number: 800,
|
|
889
|
+
shouldBeReported: true,
|
|
890
|
+
messageTemplate: `Build info not found for contract "{fqn}"`,
|
|
891
|
+
websiteTitle: `Build info not found for contract`,
|
|
892
|
+
websiteDescription: `Build info not found for contract while compiling Solidity test contracts.`,
|
|
893
|
+
},
|
|
894
|
+
RUNNER_TIMEOUT: {
|
|
895
|
+
number: 801,
|
|
896
|
+
messageTemplate: `Runner timed out after {duration} ms.
|
|
856
897
|
|
|
857
898
|
Remaining test suites: {suites}`,
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
messageTemplate: `Cannot get account with address "{address}"`,
|
|
890
|
-
websiteTitle: "Cannot get account",
|
|
891
|
-
websiteDescription: "Cannot get account",
|
|
892
|
-
},
|
|
893
|
-
INVALID_BLOCK_TAG: {
|
|
894
|
-
number: 1105,
|
|
895
|
-
messageTemplate: `Invalid block tag "{blockTag}"`,
|
|
896
|
-
websiteTitle: "Invalid block tag",
|
|
897
|
-
websiteDescription: "Invalid block tag",
|
|
898
|
-
},
|
|
899
|
-
INVALID_ARTIFACT_FOR_FACTORY: {
|
|
900
|
-
number: 1106,
|
|
901
|
-
messageTemplate:
|
|
902
|
-
"You are trying to create a contract factory from an artifact, but you have not passed a valid artifact parameter.",
|
|
903
|
-
websiteTitle: "Invalid artifact for contract factory creation",
|
|
904
|
-
websiteDescription: "Invalid artifact for contract factory creation",
|
|
905
|
-
},
|
|
906
|
-
INVALID_ABSTRACT_CONTRACT_FOR_FACTORY: {
|
|
907
|
-
number: 1107,
|
|
908
|
-
messageTemplate: `You are trying to create a contract factory for the contract "{contractName}", which is abstract and can't be deployed. If you want to call a contract using "{contractName}" as its interface use the "getContractAt" function instead.`,
|
|
909
|
-
websiteTitle: "Invalid abstract contract for contract factory creation",
|
|
910
|
-
websiteDescription:
|
|
911
|
-
"Invalid abstract contract for contract factory creation",
|
|
912
|
-
},
|
|
913
|
-
INVALID_ADDRESS_TO_LINK_CONTRACT_TO_LIBRARY: {
|
|
914
|
-
number: 1108,
|
|
915
|
-
messageTemplate: `You tried to link the contract "{contractName}" with the library "{linkedLibraryName}", but you provided this invalid address: {resolvedAddress}`,
|
|
916
|
-
websiteTitle: "Invalid address to link contract",
|
|
917
|
-
websiteDescription: "Invalid address to link contract",
|
|
918
|
-
},
|
|
919
|
-
LIBRARY_NOT_AMONG_CONTRACT_LIBRARIES: {
|
|
920
|
-
number: 1109,
|
|
921
|
-
messageTemplate: `You tried to link the contract "{contractName}" with the library "{linkedLibraryName}", which is not one of its libraries. Detailed message: {detailedMessage}`,
|
|
922
|
-
websiteTitle: "Library is not one of the contract libraries",
|
|
923
|
-
websiteDescription: "Library is not one of the contract libraries",
|
|
924
|
-
},
|
|
925
|
-
AMBIGUOUS_LIBRARY_NAME: {
|
|
926
|
-
number: 1110,
|
|
927
|
-
messageTemplate: `The library name "{linkedLibraryName}" is ambiguous for the contract "{contractName}". It may resolve to one of the following libraries: "{matchingNeededLibrariesFQNs}". To fix this, choose one of these fully qualified library names and replace where appropriate.`,
|
|
928
|
-
websiteTitle: "Ambiguous library name",
|
|
929
|
-
websiteDescription: "Ambiguous library name",
|
|
930
|
-
},
|
|
931
|
-
REFERENCE_TO_SAME_LIBRARY: {
|
|
932
|
-
number: 1111,
|
|
933
|
-
messageTemplate: `The library names "{linkedLibraryName1}" and "{linkedLibraryName2}" refer to the same library and were given as two separate library links. Remove one of them and review your library links before proceeding.`,
|
|
934
|
-
websiteTitle: "Reference to same library",
|
|
935
|
-
websiteDescription: "Reference to same library",
|
|
936
|
-
},
|
|
937
|
-
MISSING_LINK_FOR_LIBRARY: {
|
|
938
|
-
number: 1112,
|
|
939
|
-
messageTemplate: `The contract "{contractName}" is missing links for the following libraries: "{missingLibraries}". Learn more about linking contracts at (https://hardhat.org/hardhat-runner/plugins/nomicfoundation-hardhat-ethers#library-linking).`,
|
|
940
|
-
websiteTitle: "Missing links for library",
|
|
941
|
-
websiteDescription: "Missing links for library",
|
|
942
|
-
},
|
|
943
|
-
UNSUPPORTED_TYPE_FOR_DEEP_COPY: {
|
|
944
|
-
number: 1113,
|
|
945
|
-
messageTemplate: `The value "{value}" with type "{type}" is not supported by the deepCopy function.`,
|
|
946
|
-
websiteTitle: "Unsupported type for deep copy",
|
|
947
|
-
websiteDescription: "Unsupported type for deep copy",
|
|
948
|
-
},
|
|
949
|
-
},
|
|
950
|
-
SOLIDITY: {
|
|
951
|
-
RESOLVING_INCORRECT_FILE_AS_PROJECT_FILE: {
|
|
952
|
-
number: 1200,
|
|
953
|
-
shouldBeReported: true,
|
|
954
|
-
messageTemplate: `File "{file}" is being resolved as a project file, but it's not part of the project.`,
|
|
955
|
-
websiteTitle: "Solidity project file is outside the project",
|
|
956
|
-
websiteDescription: `Tried to resolve a file as a project file, but it's not part of the project.`,
|
|
957
|
-
},
|
|
958
|
-
RESOLVING_NONEXISTENT_PROJECT_FILE: {
|
|
959
|
-
number: 1201,
|
|
960
|
-
shouldBeReported: true,
|
|
961
|
-
messageTemplate: `File "{file}" is being resolved as a project file, but it doesn't exist.`,
|
|
962
|
-
websiteTitle: "Solidity project file doesn't exist",
|
|
963
|
-
websiteDescription: `Tried to resolve a file as a project file, but it doesn't exist.`,
|
|
964
|
-
},
|
|
965
|
-
IMPORTED_FILE_DOESNT_EXIST: {
|
|
966
|
-
number: 1202,
|
|
967
|
-
messageTemplate: `The import "{importPath} from "{from}" doesn't exist.`,
|
|
968
|
-
websiteTitle: "Imported file doesn't exist",
|
|
969
|
-
websiteDescription: `An imported file doesn't exist.`,
|
|
970
|
-
},
|
|
971
|
-
IMPORTED_FILE_WITH_INCORRECT_CASING: {
|
|
972
|
-
number: 1203,
|
|
973
|
-
messageTemplate:
|
|
974
|
-
'The import "{importPath} from "{from}" exists, but its casing is incorrect. The correct casing is "{correctCasing}".',
|
|
975
|
-
websiteTitle: "Imported file with incorrect casing",
|
|
976
|
-
websiteDescription: `Hardhat enforces that you import your files with the correct casing (as stored in the filesystem).
|
|
899
|
+
websiteTitle: `Runner timed out`,
|
|
900
|
+
websiteDescription: `Runner timed out while running Solidity tests.`,
|
|
901
|
+
},
|
|
902
|
+
},
|
|
903
|
+
SOLIDITY: {
|
|
904
|
+
RESOLVING_INCORRECT_FILE_AS_PROJECT_FILE: {
|
|
905
|
+
number: 900,
|
|
906
|
+
shouldBeReported: true,
|
|
907
|
+
messageTemplate: `File "{file}" is being resolved as a project file, but it's not part of the project.`,
|
|
908
|
+
websiteTitle: "Solidity project file is outside the project",
|
|
909
|
+
websiteDescription: `Tried to resolve a file as a project file, but it's not part of the project.`,
|
|
910
|
+
},
|
|
911
|
+
RESOLVING_NONEXISTENT_PROJECT_FILE: {
|
|
912
|
+
number: 901,
|
|
913
|
+
shouldBeReported: true,
|
|
914
|
+
messageTemplate: `File "{file}" is being resolved as a project file, but it doesn't exist.`,
|
|
915
|
+
websiteTitle: "Solidity project file doesn't exist",
|
|
916
|
+
websiteDescription: `Tried to resolve a file as a project file, but it doesn't exist.`,
|
|
917
|
+
},
|
|
918
|
+
IMPORTED_FILE_DOESNT_EXIST: {
|
|
919
|
+
number: 902,
|
|
920
|
+
messageTemplate: `The import "{importPath} from "{from}" doesn't exist.`,
|
|
921
|
+
websiteTitle: "Imported file doesn't exist",
|
|
922
|
+
websiteDescription: `An imported file doesn't exist.`,
|
|
923
|
+
},
|
|
924
|
+
IMPORTED_FILE_WITH_INCORRECT_CASING: {
|
|
925
|
+
number: 903,
|
|
926
|
+
messageTemplate:
|
|
927
|
+
'The import "{importPath} from "{from}" exists, but its casing is incorrect. The correct casing is "{correctCasing}".',
|
|
928
|
+
websiteTitle: "Imported file with incorrect casing",
|
|
929
|
+
websiteDescription: `Hardhat enforces that you import your files with the correct casing (as stored in the filesystem).
|
|
977
930
|
|
|
978
931
|
This error is thrown when you import a file with the wrong casing under a case insensitve filesystem.`,
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
932
|
+
},
|
|
933
|
+
IMPORTED_PACKAGE_EXPORTS_FILE_WITH_INCORRECT_CASING: {
|
|
934
|
+
number: 904,
|
|
935
|
+
messageTemplate:
|
|
936
|
+
'The import "{importPath} from "{from}" exists, but its casing is incorrect.',
|
|
937
|
+
websiteTitle: "Imported file with incorrect casing",
|
|
938
|
+
websiteDescription: `Hardhat enforces that you import your files with the correct casing (as stored in the filesystem).
|
|
986
939
|
|
|
987
940
|
This error is thrown when you import a file with the wrong casing under a case insensitve filesystem.`,
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
941
|
+
},
|
|
942
|
+
NPM_DEPEDNDENCY_NOT_INSTALLED: {
|
|
943
|
+
number: 905,
|
|
944
|
+
messageTemplate:
|
|
945
|
+
'The npm package "{packageName}" isn\'t installed in the {from}.',
|
|
946
|
+
websiteTitle: "Uninstalled npm dependency",
|
|
947
|
+
websiteDescription: `Trying to use an npm package as a solidity dependency, but it's not installed.`,
|
|
948
|
+
},
|
|
949
|
+
IMPORTED_NPM_DEPENDENCY_NOT_INSTALLED: {
|
|
950
|
+
number: 906,
|
|
951
|
+
messageTemplate:
|
|
952
|
+
'The import "{importPath}" from "{from}" is trying to use an uninstalled npm dependency.',
|
|
953
|
+
websiteTitle: "Uninstalled npm solidity dependency",
|
|
954
|
+
websiteDescription: `One of your files is traying to import a dependency using npm, but it hasn't been installed`,
|
|
955
|
+
},
|
|
956
|
+
USER_REMAPPING_WITH_NPM_CONTEXT: {
|
|
957
|
+
number: 907,
|
|
958
|
+
messageTemplate:
|
|
959
|
+
'The remapping "{remapping}" has a context starting with "npm/", which is forbidden. Hardhat doesn\'t allow changing the behaviour of npm package\'s imports.',
|
|
960
|
+
websiteTitle: "Remapping imports in npm packages is not allowed",
|
|
961
|
+
websiteDescription: `This error happened because you are trying to change how the imports within an npm package, which is not allowed.
|
|
1009
962
|
|
|
1010
963
|
While Hardhat supports user-defined remappings, it doesn't support remapping the behavior of npm packages to ensure that everything what's imported via npm uses the same npm resolution logic.`,
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
964
|
+
},
|
|
965
|
+
REMAPPING_WITH_INVALID_SYNTAX: {
|
|
966
|
+
number: 908,
|
|
967
|
+
messageTemplate: `The remapping "{remapping}" is invalid.`,
|
|
968
|
+
websiteTitle: "Invalid remapping",
|
|
969
|
+
websiteDescription: `You are trying to set a user remapping, but it's syntax is invalid.
|
|
1017
970
|
|
|
1018
971
|
Please double check your remmpaings' syntax.`,
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
972
|
+
},
|
|
973
|
+
REMAPPING_TO_UNINSTALLED_PACKAGE: {
|
|
974
|
+
number: 909,
|
|
975
|
+
messageTemplate: `The remapping "{remapping}" is trying to use the npm package "{package}", which is not installed`,
|
|
976
|
+
websiteTitle: "Remapping into an uninstaleld npm package",
|
|
977
|
+
websiteDescription: `You are trying to set a user remapping that uses an npm pacakge as target, but it's not installed.
|
|
1025
978
|
|
|
1026
979
|
Please make sure to install the package or fix the remapping.`,
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
980
|
+
},
|
|
981
|
+
REMAPPING_NPM_PACKAGE_AS_MONOREPO: {
|
|
982
|
+
number: 910,
|
|
983
|
+
messageTemplate: `The remapping "{remapping}" targets the npm pacakge "{pacakge}" as if it were part of this repository, but version "{version}" is installed instead`,
|
|
984
|
+
websiteTitle:
|
|
985
|
+
"Remapping into a monorepo package but found an npm package instead",
|
|
986
|
+
websiteDescription: `You are trying to set a remapping setting a monorepo package as target, but Hardhat found the pacakge to be installed from the npm regristry instead.`,
|
|
987
|
+
},
|
|
988
|
+
REMAPPING_HARDHAT_PROJECT_AS_MONOREPO_PACKAGE: {
|
|
989
|
+
number: 911,
|
|
990
|
+
messageTemplate: `The remapping "{remapping}" is trying to set the npm package "{package}" as target, but that's the project is the Hardhat project, so it shouldn't be remapped through npm/, but as internal project remappings.`,
|
|
991
|
+
websiteTitle: `Remapping into the project using npm`,
|
|
992
|
+
websiteDescription: `You are trying to set a remapping whose target uses the npm/ syntax, but is within your Hardhat project.
|
|
1040
993
|
|
|
1041
994
|
Please don't use npm/... as target, but use normal internal project remapping istead.`,
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
995
|
+
},
|
|
996
|
+
REMAPPING_INCORRECT_VERSION: {
|
|
997
|
+
number: 912,
|
|
998
|
+
messageTemplate: `The remapping "{remapping}" is trying to set the npm package "{package}" version "{expectedVersion}" as target, but found version "{actualVersion}" instead.`,
|
|
999
|
+
websiteTitle: `Remapping into incorrect npm package version`,
|
|
1000
|
+
websiteDescription: `You are trying to set a remapping into an npm package, but the version that you are using is not the currently installed one.
|
|
1048
1001
|
|
|
1049
1002
|
Please change your remapping to match the installed version, or installed the correct one.`,
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1003
|
+
},
|
|
1004
|
+
INVALID_NPM_IMPORT: {
|
|
1005
|
+
number: 913,
|
|
1006
|
+
messageTemplate: `The import "{importPath}" in "{from}" is treated as an npm import as it's first directory doesn't exist in your project, but it's syntax is not that of a valid npm import either.`,
|
|
1007
|
+
websiteTitle: `Invalid npm import`,
|
|
1008
|
+
websiteDescription: `You are trying to import a file that is not a valid npm import. Please double check that you are using the correct syntax.`,
|
|
1009
|
+
},
|
|
1010
|
+
ILLEGAL_PACKAGE_IMPORT: {
|
|
1011
|
+
number: 914,
|
|
1012
|
+
messageTemplate: `The import "{importPath}" in "{from}" is not a legal import as it's trying to import a file outside of its package.`,
|
|
1013
|
+
websiteTitle: `Illegal package import`,
|
|
1014
|
+
websiteDescription: `One of your npm packages has a Solidity file that is trying to import a file outside of its package using a relative import. This is disabled for security reasons.`,
|
|
1015
|
+
},
|
|
1016
|
+
ILEGALL_PROJECT_IMPORT: {
|
|
1017
|
+
number: 915,
|
|
1018
|
+
messageTemplate: `The import "{importPath}" in "{from}" is not a legal import as it's trying to import a file outside of the project.`,
|
|
1019
|
+
websiteTitle: `Illegal project import`,
|
|
1020
|
+
websiteDescription: `One of your Solidity files is trying to import a file outside of the Hardhat project using a relative import. This is disabled for security reasons.`,
|
|
1021
|
+
},
|
|
1022
|
+
ILLEGAL_PROJECT_IMPORT_AFTER_REMAPPING: {
|
|
1023
|
+
number: 916,
|
|
1024
|
+
messageTemplate: `Applying the remapping "{remapping}" to the import "{importPath}" from "{from}" results in an invalid import "{remappedDirectImport}", as it's not a local file. If you are trying to remap into an npm module use the npm/ syntax instead.`,
|
|
1025
|
+
websiteTitle: `Illegal project import after remapping`,
|
|
1026
|
+
websiteDescription: `One of your Solidity files has an import which after applying a user remapping becomes an illegal import, as it tries to import a file outside of the project. This is disabled for security reasons.
|
|
1074
1027
|
|
|
1075
1028
|
If you are trying to remap into an npm module use the npm/ syntax instead.`,
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
|
|
1029
|
+
},
|
|
1030
|
+
IMPORT_PATH_WITH_WINDOWS_SEPARATOR: {
|
|
1031
|
+
number: 917,
|
|
1032
|
+
messageTemplate: `The import "{importPath}" in "{from}" is not a valid import as it contains a Windows path separator.`,
|
|
1033
|
+
websiteTitle: `Import path with Windows path separator`,
|
|
1034
|
+
websiteDescription: `One of your Solidity files is trying to import a file with a Windows path separator, and this is not supported. Please use a Unix-style path instead.`,
|
|
1035
|
+
},
|
|
1036
|
+
INVALID_SOLC_VERSION: {
|
|
1037
|
+
number: 918,
|
|
1038
|
+
messageTemplate: `Solidity version {version} is invalid or hasn't been released yet.
|
|
1086
1039
|
|
|
1087
1040
|
If you are certain it has been released, run "npx hardhat clean --global" and try again`,
|
|
1088
|
-
|
|
1089
|
-
|
|
1041
|
+
websiteTitle: "Invalid or unreleased `solc` version",
|
|
1042
|
+
websiteDescription: `The Solidity version in your config is invalid or hasn't been released yet.
|
|
1090
1043
|
|
|
1091
1044
|
If you are certain it has been released, run \`npx hardhat clean --global\` and try again.`,
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1045
|
+
},
|
|
1046
|
+
RESOLVE_NPM_FILE_WITH_INVALID_FORMAT: {
|
|
1047
|
+
number: 919,
|
|
1048
|
+
messageTemplate: `Couldn't resolve the npm file "{module}" because it has an invalid format.
|
|
1096
1049
|
|
|
1097
1050
|
Make sure that you are providing valid npm file paths (e.g. package/File.sol) in your config and programatically.`,
|
|
1098
|
-
|
|
1099
|
-
|
|
1051
|
+
websiteTitle: "Resolving invalid npm file",
|
|
1052
|
+
websiteDescription: `Tried to resolve an npm file directly (i.e. not imported by another file) but its format is invalid.
|
|
1100
1053
|
|
|
1101
1054
|
This can happen if you setting npm files to be compiled as local files, with invalid file paths, or by misusing the solidity build system.`,
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
|
|
1055
|
+
},
|
|
1056
|
+
RESOLVE_NPM_FILE_CLASHES_WITH_LOCAL_FILES: {
|
|
1057
|
+
number: 920,
|
|
1058
|
+
shouldBeReported: true,
|
|
1059
|
+
messageTemplate: `You are tying to resolve the npm file "{module}", for example to compile it as a local one, but it can clash with your project as the "{directory}" directory is present in your project.
|
|
1107
1060
|
|
|
1108
1061
|
Please try renaming the directory.`,
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
|
|
1062
|
+
websiteTitle: "Resolution of npm file clashes with local files",
|
|
1063
|
+
websiteDescription: `You are tying to resolve an npm file, for example to compile it as a local one, but it can clash with your project files.`,
|
|
1064
|
+
},
|
|
1065
|
+
RESOLVE_NON_EXISTENT_NPM_ROOT: {
|
|
1066
|
+
number: 921,
|
|
1067
|
+
messageTemplate: `You are tying to compile the npm file "{module}", but it doesn't exist within its package.`,
|
|
1068
|
+
websiteTitle: "Resolution of non-existent npm file",
|
|
1069
|
+
websiteDescription: `You are tying to resolve an npm file that doesn't exist within its package.`,
|
|
1070
|
+
},
|
|
1071
|
+
RESOLVE_WRONG_CASING_NPM_ROOT: {
|
|
1072
|
+
number: 922,
|
|
1073
|
+
messageTemplate: `You are tying to compile the npm file "{module}", its casing is incorrect. Please double check it in your config.`,
|
|
1074
|
+
websiteTitle: "Resolution of npm file with incorrect casing",
|
|
1075
|
+
websiteDescription: `You are tying to resolve an npm file whose casing is incorrect.`,
|
|
1076
|
+
},
|
|
1077
|
+
DOWNLOAD_FAILED: {
|
|
1078
|
+
number: 923,
|
|
1079
|
+
messageTemplate:
|
|
1080
|
+
"Couldn't download compiler version {remoteVersion}. Please check your internet connection and try again.",
|
|
1081
|
+
websiteTitle: "`solc` download failed",
|
|
1082
|
+
websiteDescription: `Couldn't download \`solc\`.
|
|
1130
1083
|
|
|
1131
1084
|
Please check your internet connection and try again.`,
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
|
|
1135
|
-
|
|
1136
|
-
|
|
1137
|
-
|
|
1138
|
-
|
|
1085
|
+
},
|
|
1086
|
+
VERSION_LIST_DOWNLOAD_FAILED: {
|
|
1087
|
+
number: 924,
|
|
1088
|
+
messageTemplate:
|
|
1089
|
+
"Couldn't download compiler version list. Please check your internet connection and try again.",
|
|
1090
|
+
websiteTitle: "Couldn't obtain `solc` version list",
|
|
1091
|
+
websiteDescription: `Couldn't download \`solc\`'s version list.
|
|
1139
1092
|
|
|
1140
1093
|
Please check your internet connection and try again.`,
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
|
|
1144
|
-
|
|
1094
|
+
},
|
|
1095
|
+
INVALID_DOWNLOAD: {
|
|
1096
|
+
number: 925,
|
|
1097
|
+
messageTemplate: `Couldn't download compiler version {remoteVersion}: Checksum verification failed.
|
|
1145
1098
|
|
|
1146
1099
|
Please check your internet connection and try again.
|
|
1147
1100
|
|
|
1148
1101
|
If this error persists, run "npx hardhat clean --global".`,
|
|
1149
|
-
|
|
1150
|
-
|
|
1102
|
+
websiteTitle: "Downloaded `solc` checksum verification failed",
|
|
1103
|
+
websiteDescription: `Hardhat downloaded a version of the Solidity compiler, and its checksum verification failed.
|
|
1151
1104
|
|
|
1152
1105
|
Please check your internet connection and try again.
|
|
1153
1106
|
|
|
1154
1107
|
If this error persists, run \`npx hardhat clean --global\`.`,
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
|
|
1108
|
+
},
|
|
1109
|
+
CANT_RUN_NATIVE_COMPILER: {
|
|
1110
|
+
number: 926,
|
|
1111
|
+
messageTemplate: `A native version of solc failed to run.
|
|
1159
1112
|
|
|
1160
1113
|
If you are running MacOS, try installing Apple Rosetta.
|
|
1161
1114
|
|
|
1162
1115
|
If this error persists, run "npx hardhat clean --global".`,
|
|
1163
|
-
|
|
1164
|
-
|
|
1116
|
+
websiteTitle: "Failed to run native solc",
|
|
1117
|
+
websiteDescription: `Hardhat successfully downloaded a native version of solc but it doesn't run.
|
|
1165
1118
|
|
|
1166
1119
|
If you are running MacOS, try installing Apple Rosetta.
|
|
1167
1120
|
|
|
1168
1121
|
If this error persists, run "npx hardhat clean --global".`,
|
|
1169
|
-
|
|
1170
|
-
|
|
1171
|
-
|
|
1172
|
-
|
|
1122
|
+
},
|
|
1123
|
+
CANT_RUN_SOLCJS_COMPILER: {
|
|
1124
|
+
number: 927,
|
|
1125
|
+
messageTemplate: `A wasm version of solc failed to run.
|
|
1173
1126
|
|
|
1174
1127
|
If this error persists, run "npx hardhat clean --global".`,
|
|
1175
|
-
|
|
1176
|
-
|
|
1128
|
+
websiteTitle: "Failed to run solcjs",
|
|
1129
|
+
websiteDescription: `Hardhat successfully downloaded a WASM version of solc but it doesn't run.
|
|
1177
1130
|
|
|
1178
1131
|
If you are running MacOS, try installing Apple Rosetta.
|
|
1179
1132
|
|
|
1180
1133
|
If this error persists, run "npx hardhat clean --global".`,
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
|
|
1184
|
-
|
|
1134
|
+
},
|
|
1135
|
+
COMPILATION_JOB_CREATION_ERROR: {
|
|
1136
|
+
number: 928,
|
|
1137
|
+
messageTemplate: `Failed to create compilation job for file "{rootFilePath}" using the build profile "{buildProfile}".
|
|
1185
1138
|
|
|
1186
1139
|
{reason}`,
|
|
1187
|
-
|
|
1188
|
-
|
|
1140
|
+
websiteTitle: "Failed to create compilation job",
|
|
1141
|
+
websiteDescription: `Hardhat failed to create a compilation job for a file in your project.
|
|
1189
1142
|
|
|
1190
1143
|
This happens when your files require incompatible versions of solc or you haven't configured a version that works with them`,
|
|
1191
|
-
|
|
1192
|
-
|
|
1193
|
-
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
-
|
|
1144
|
+
},
|
|
1145
|
+
BUILD_FAILED: {
|
|
1146
|
+
number: 929,
|
|
1147
|
+
messageTemplate: "Compilation failed",
|
|
1148
|
+
websiteTitle: "Compilation failed",
|
|
1149
|
+
websiteDescription: `Your smart contracts failed to compile.
|
|
1197
1150
|
|
|
1198
1151
|
Please check Hardhat's output for more details.`,
|
|
1152
|
+
},
|
|
1153
|
+
INVALID_SOLCJS_COMPILER: {
|
|
1154
|
+
number: 930,
|
|
1155
|
+
messageTemplate: `A wasm version of solc {version} is invalid. The compile function is not available.`,
|
|
1156
|
+
websiteTitle: "Invalid solcjs compiler",
|
|
1157
|
+
websiteDescription: `Hardhat successfully downloaded a WASM version of solc {version} but it is invalid. The compile function is missing.`,
|
|
1158
|
+
},
|
|
1159
|
+
RESOLVE_NOT_EXPORTED_NPM_FILE: {
|
|
1160
|
+
number: 931,
|
|
1161
|
+
messageTemplate: `You are tying to resolve the npm file "{module}", but it's not exported by its package`,
|
|
1162
|
+
websiteTitle: "Resolution of not-exported npm file",
|
|
1163
|
+
websiteDescription: `You are tying to resolve an npm file that is not exported by its package.`,
|
|
1164
|
+
},
|
|
1165
|
+
BUILD_PROFILE_NOT_FOUND: {
|
|
1166
|
+
number: 932,
|
|
1167
|
+
messageTemplate: `The build profile "{buildProfileName}" is not defined in your Hardhat config`,
|
|
1168
|
+
websiteTitle: "Build profile not defined",
|
|
1169
|
+
websiteDescription: `The build profile you are trying to use is not defined in your Hardhat config.`,
|
|
1170
|
+
},
|
|
1171
|
+
},
|
|
1172
|
+
ARTIFACTS: {
|
|
1173
|
+
NOT_FOUND: {
|
|
1174
|
+
number: 1000,
|
|
1175
|
+
messageTemplate:
|
|
1176
|
+
'Artifact for contract "{contractName}" not found. {suggestion}',
|
|
1177
|
+
websiteTitle: "Artifact not found",
|
|
1178
|
+
websiteDescription: `Tried to read a nonexistent artifact.
|
|
1179
|
+
|
|
1180
|
+
Please double check that your contracts have been compiled and double check your artifact's name.`,
|
|
1181
|
+
},
|
|
1182
|
+
MULTIPLE_FOUND: {
|
|
1183
|
+
number: 1001,
|
|
1184
|
+
messageTemplate: `There are multiple artifacts for contract "{contractName}", please use a fully qualified name.
|
|
1185
|
+
|
|
1186
|
+
Please replace "{contractName}" for one of these options wherever you are trying to read its artifact:
|
|
1187
|
+
|
|
1188
|
+
{candidates}
|
|
1189
|
+
`,
|
|
1190
|
+
websiteTitle: "Multiple artifacts found",
|
|
1191
|
+
websiteDescription: `There are multiple artifacts that match the given contract name, and Hardhat doesn't know which one to use.
|
|
1192
|
+
|
|
1193
|
+
Please use the fully qualified name of the contract to disambiguate it.`,
|
|
1194
|
+
},
|
|
1195
|
+
},
|
|
1196
|
+
NODE: {
|
|
1197
|
+
INVALID_NETWORK_TYPE: {
|
|
1198
|
+
number: 1100,
|
|
1199
|
+
messageTemplate: `The provided node network type "{networkType}" for network "{networkName}" is not recognized, only 'edr' is supported.`,
|
|
1200
|
+
websiteTitle: "Invalid node network type",
|
|
1201
|
+
websiteDescription: `The node only supports the 'edr' network type.`,
|
|
1202
|
+
},
|
|
1199
1203
|
},
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
|
|
1204
|
+
},
|
|
1205
|
+
IGNITION: {
|
|
1206
|
+
GENERAL: {
|
|
1207
|
+
ASSERTION_ERROR: {
|
|
1208
|
+
number: 10000,
|
|
1209
|
+
messageTemplate:
|
|
1210
|
+
"Internal Hardhat Ignition invariant was violated: {description}",
|
|
1211
|
+
websiteTitle: "Internal Hardhat Ignition invariant was violated",
|
|
1212
|
+
websiteDescription: `An internal Hardhat Ignition invariant was violated.`,
|
|
1213
|
+
},
|
|
1214
|
+
UNSUPPORTED_DECODE: {
|
|
1215
|
+
number: 10001,
|
|
1216
|
+
messageTemplate:
|
|
1217
|
+
"Hardhat Ignition can't decode ethers.js value of type {type}: {value}",
|
|
1218
|
+
websiteTitle: "Unsupported ethers.js value",
|
|
1219
|
+
websiteDescription: "Unsupported ethers.js value",
|
|
1220
|
+
},
|
|
1221
|
+
},
|
|
1222
|
+
INTERNAL: {
|
|
1223
|
+
INTERNAL_ERROR: {
|
|
1224
|
+
number: 10100,
|
|
1225
|
+
shouldBeReported: true,
|
|
1226
|
+
messageTemplate: "Hardhat Ignition Internal Error",
|
|
1227
|
+
websiteTitle: "An internal error to Hardhat Ignition has occurred",
|
|
1228
|
+
websiteDescription: `An internal error to Hardhat Ignition has occurred`,
|
|
1229
|
+
},
|
|
1230
|
+
TEMPLATE_INVALID_VARIABLE_NAME: {
|
|
1231
|
+
number: 10101,
|
|
1232
|
+
messageTemplate:
|
|
1233
|
+
"Variable names can only include ascii letters and numbers, and start with a letter, but got {variable}",
|
|
1234
|
+
websiteTitle: "Invalid variable name",
|
|
1235
|
+
websiteDescription: `One of your Hardhat Ignition template variables has an invalid name`,
|
|
1236
|
+
},
|
|
1237
|
+
TEMPLATE_VARIABLE_NOT_FOUND: {
|
|
1238
|
+
number: 10102,
|
|
1239
|
+
messageTemplate:
|
|
1240
|
+
"Variable {variable}'s tag not present in the template",
|
|
1241
|
+
websiteTitle: "Variable tag not found in template",
|
|
1242
|
+
websiteDescription: `One of your Hardhat Ignition template variables has a tag that is not present in the template`,
|
|
1243
|
+
},
|
|
1244
|
+
TEMPLATE_VALUE_CONTAINS_VARIABLE_TAG: {
|
|
1245
|
+
number: 10103,
|
|
1246
|
+
messageTemplate:
|
|
1247
|
+
"Template values can't include variable tags, but {variable}'s value includes one",
|
|
1248
|
+
websiteTitle: "Template value includes variable tag",
|
|
1249
|
+
websiteDescription: `One of your Hardhat Ignition template variables has a value that includes a variable tag`,
|
|
1250
|
+
},
|
|
1251
|
+
ETHERSCAN_API_KEY_NOT_CONFIGURED: {
|
|
1252
|
+
number: 10104,
|
|
1253
|
+
messageTemplate: "No etherscan API key configured",
|
|
1254
|
+
websiteTitle: "No etherscan API key configured",
|
|
1255
|
+
websiteDescription: `You are trying to run verification during a Hardhat Ignition deploy, but there is no Etherscan API Key set.`,
|
|
1256
|
+
},
|
|
1257
|
+
CANNOT_RESET_EPHEMERAL_NETWORK: {
|
|
1258
|
+
number: 10105,
|
|
1259
|
+
messageTemplate:
|
|
1260
|
+
"Deploy cancelled: Cannot reset deployment on ephemeral Hardhat network",
|
|
1261
|
+
websiteTitle: "Cannot reset deployment on ephemeral Hardhat network",
|
|
1262
|
+
websiteDescription: `The reset flag can only used against a persistent network. You are trying to reset a deployment against an in-memory network.`,
|
|
1263
|
+
},
|
|
1264
|
+
NO_MODULES_FOUND: {
|
|
1265
|
+
number: 10106,
|
|
1266
|
+
messageTemplate: "No Ignition modules found",
|
|
1267
|
+
websiteTitle: "No Ignition modules found",
|
|
1268
|
+
websiteDescription:
|
|
1269
|
+
"Ignition was unable to find the module requested for deployment.",
|
|
1270
|
+
},
|
|
1271
|
+
FAILED_TO_PARSE_JSON: {
|
|
1272
|
+
number: 10107,
|
|
1273
|
+
messageTemplate: "Could not parse JSON parameters",
|
|
1274
|
+
websiteTitle: "Could not parse JSON parameters",
|
|
1275
|
+
websiteDescription:
|
|
1276
|
+
"Ignition failed to parse the JSON parameters for deployment. Review the JSON and try again.",
|
|
1277
|
+
},
|
|
1278
|
+
INVALID_DEPLOYMENT_ID: {
|
|
1279
|
+
number: 10108,
|
|
1280
|
+
messageTemplate: `The deployment-id "{deploymentId}" contains banned characters, ids can only contain alphanumerics, dashes or underscores`,
|
|
1281
|
+
websiteTitle: "The deployment-id contains banned characters",
|
|
1282
|
+
websiteDescription:
|
|
1283
|
+
"The deployment-id being used for the Hardhat Ignition deployment contains banned characters. Deployment ids can only contain alphanumerics, dashes or underscores.",
|
|
1284
|
+
},
|
|
1285
|
+
IGNITION_CLIENT_EXTENSION_NOT_INSTALLED: {
|
|
1286
|
+
number: 10109,
|
|
1287
|
+
messageTemplate:
|
|
1288
|
+
"Please install either `@nomicfoundation/hardhat-ignition-viem` or `@nomicfoundation/hardhat-ignition-ethers` to use Ignition in your Hardhat tests",
|
|
1289
|
+
websiteTitle:
|
|
1290
|
+
"Neither the `viem` or `ethers` Ignition extension plugin is installed.",
|
|
1291
|
+
websiteDescription:
|
|
1292
|
+
"Please install either `@nomicfoundation/hardhat-ignition-viem` or `@nomicfoundation/hardhat-ignition-ethers` to use Ignition in your Hardhat tests",
|
|
1293
|
+
},
|
|
1294
|
+
UNKNOWN_TRANSACTION_TYPE: {
|
|
1295
|
+
number: 10110,
|
|
1296
|
+
shouldBeReported: true,
|
|
1297
|
+
messageTemplate: `Unknown transaction type: "{type}"`,
|
|
1298
|
+
websiteTitle:
|
|
1299
|
+
"Hardhat Ignition was unable to display an unknown transaction type",
|
|
1300
|
+
websiteDescription:
|
|
1301
|
+
"Hardhat Ignition was unable to display an unknown transaction type",
|
|
1302
|
+
},
|
|
1303
|
+
PARAMETER_EXCEEDS_MAXIMUM_SAFE_INTEGER: {
|
|
1304
|
+
number: 10111,
|
|
1305
|
+
messageTemplate: `Parameter "{parameter}" exceeds maximum safe integer size. Encode the value as a string using bigint notation: "{value}n"`,
|
|
1306
|
+
websiteTitle: "Parameter exceeds maximum safe integer size",
|
|
1307
|
+
websiteDescription: "Parameter exceeds maximum safe integer size",
|
|
1308
|
+
},
|
|
1309
|
+
MODULE_VALIDATION_FAILED: {
|
|
1310
|
+
number: 10112,
|
|
1311
|
+
messageTemplate:
|
|
1312
|
+
"Module validation failed. Check the stack trace above to identify the issue and its source code location.",
|
|
1313
|
+
websiteTitle: "Module validation failed.",
|
|
1314
|
+
websiteDescription:
|
|
1315
|
+
"Hardhat Ignition found problems while validating the module. Please review the module and try again.",
|
|
1316
|
+
},
|
|
1317
|
+
FAILED_TO_PARSE_DEPLOYMENT_PARAMETERS: {
|
|
1318
|
+
number: 10113,
|
|
1319
|
+
messageTemplate: `Could not parse parameters from "{filepath}"`,
|
|
1320
|
+
websiteTitle: "Parsing of deployment parameters failed.",
|
|
1321
|
+
websiteDescription: "Parsing of deployment parameters failed.",
|
|
1322
|
+
},
|
|
1323
|
+
VISUALIZATION_TEMPLATE_DIR_NOT_FOUND: {
|
|
1324
|
+
number: 10114,
|
|
1325
|
+
shouldBeReported: true,
|
|
1326
|
+
messageTemplate: `Unable to find template directory: "{templateDir}"`,
|
|
1327
|
+
websiteTitle: "Visualization template directory not found",
|
|
1328
|
+
websiteDescription: "Visualization template directory not found",
|
|
1329
|
+
},
|
|
1330
|
+
MODULE_NOT_FOUND_AT_PATH: {
|
|
1331
|
+
number: 10115,
|
|
1332
|
+
messageTemplate: `Could not find a module file at the path: "{modulePath}"`,
|
|
1333
|
+
websiteTitle: "Ignition module not found",
|
|
1334
|
+
websiteDescription:
|
|
1335
|
+
"Hardhat Ignition was not able to find an Ignition Module at the given path.",
|
|
1336
|
+
},
|
|
1337
|
+
MODULE_OUTSIDE_MODULE_DIRECTORY: {
|
|
1338
|
+
number: 10116,
|
|
1339
|
+
messageTemplate: `The referenced module file "{modulePath}" is outside the module directory "{shortModulesDirectoryName}"`,
|
|
1340
|
+
websiteTitle: "Ignition module outside of module directory",
|
|
1341
|
+
websiteDescription:
|
|
1342
|
+
"Ignition modules must be located within the module directory.",
|
|
1343
|
+
},
|
|
1344
|
+
VIEM_TEST_HELPER_ERROR: {
|
|
1345
|
+
number: 10117,
|
|
1346
|
+
messageTemplate: `Hardhat Ignition Viem Test Error: {message}`,
|
|
1347
|
+
websiteTitle: "Test error in Hardhat Ignition Viem's test helper",
|
|
1348
|
+
websiteDescription:
|
|
1349
|
+
"Test error in Hardhat Ignition Viem's test helper.",
|
|
1350
|
+
},
|
|
1351
|
+
ARTIFACT_PATH_NOT_FOUND: {
|
|
1352
|
+
number: 10118,
|
|
1353
|
+
messageTemplate: `Artifact path not found for "{contractName}"`,
|
|
1354
|
+
websiteTitle:
|
|
1355
|
+
"Hardhat Ignition unable to find artifact path for the contract name",
|
|
1356
|
+
websiteDescription:
|
|
1357
|
+
"Hardhat Ignition unable to find artifact path for the contract name",
|
|
1358
|
+
},
|
|
1359
|
+
ONLY_ONE_IGNITION_EXTENSION_PLUGIN_ALLOWED: {
|
|
1360
|
+
number: 10119,
|
|
1361
|
+
messageTemplate:
|
|
1362
|
+
"Found ethers and viem, but only one Hardhat Ignition extension plugin can be used at a time",
|
|
1363
|
+
websiteTitle: "Only one Ignition extension plugin allowed",
|
|
1364
|
+
websiteDescription: `Both the ethers and viem Ignition extension plugins were found, but only one can be used at a time.
|
|
1365
|
+
|
|
1366
|
+
Please only include one of the plugins in your Hardhat configuration.`,
|
|
1367
|
+
},
|
|
1368
|
+
DEPLOYMENT_ERROR: {
|
|
1369
|
+
number: 10120,
|
|
1370
|
+
messageTemplate: "Hardhat Ignition deployment error: {message}",
|
|
1371
|
+
websiteTitle: "Hardhat Ignition deployment error",
|
|
1372
|
+
websiteDescription: `Hardhat Ignition was not able to successfully complete a deployment.
|
|
1373
|
+
|
|
1374
|
+
Please review the error message and try again.`,
|
|
1375
|
+
},
|
|
1376
|
+
NO_DEFAULT_VIEM_WALLET_CLIENT: {
|
|
1377
|
+
number: 10121,
|
|
1378
|
+
messageTemplate:
|
|
1379
|
+
"No default wallet client found while creating Viem contract instances for deployed contracts",
|
|
1380
|
+
websiteTitle: "No default Viem wallet client found",
|
|
1381
|
+
websiteDescription: `Hardhat Ignition will use the default wallet client to create Viem contract instances for deployed contracts. No wallet clients were found.`,
|
|
1382
|
+
},
|
|
1383
|
+
},
|
|
1384
|
+
MODULE: {
|
|
1385
|
+
INVALID_MODULE_ID: {
|
|
1386
|
+
number: 10200,
|
|
1387
|
+
messageTemplate: "Module id must be a string",
|
|
1388
|
+
websiteTitle: "Invalid module id type",
|
|
1389
|
+
websiteDescription: `Module id must be a string`,
|
|
1390
|
+
},
|
|
1391
|
+
INVALID_MODULE_ID_CHARACTERS: {
|
|
1392
|
+
number: 10201,
|
|
1393
|
+
messageTemplate:
|
|
1394
|
+
'The moduleId "{moduleId}" is invalid. Module ids can only have alphanumerics and underscore, and they must start with an alphanumeric.',
|
|
1395
|
+
websiteTitle: "Invalid module id",
|
|
1396
|
+
websiteDescription: `Module ids can only have alphanumerics and underscore, and they must start with an alphanumeric.`,
|
|
1397
|
+
},
|
|
1398
|
+
INVALID_MODULE_DEFINITION_FUNCTION: {
|
|
1399
|
+
number: 10202,
|
|
1400
|
+
messageTemplate: "Module definition function must be a function.",
|
|
1401
|
+
websiteTitle: "Invalid module definition function",
|
|
1402
|
+
websiteDescription: `Module definition function must be a function.`,
|
|
1403
|
+
},
|
|
1404
|
+
ASYNC_MODULE_DEFINITION_FUNCTION: {
|
|
1405
|
+
number: 10203,
|
|
1406
|
+
messageTemplate:
|
|
1407
|
+
"The callback passed to 'buildModule' for {moduleDefinitionId} returns a Promise; async callbacks are not allowed in 'buildModule'.",
|
|
1408
|
+
websiteTitle: "Async module definition function",
|
|
1409
|
+
websiteDescription: `Async callbacks are not allowed in 'buildModule'.`,
|
|
1410
|
+
},
|
|
1411
|
+
DUPLICATE_MODULE_ID: {
|
|
1412
|
+
number: 10204,
|
|
1413
|
+
messageTemplate:
|
|
1414
|
+
"The following module ids are duplicated: {duplicateModuleIds}. Please make sure all module ids are unique.",
|
|
1415
|
+
websiteTitle: "Duplicate module ids",
|
|
1416
|
+
websiteDescription: `Please make sure all module ids are unique.`,
|
|
1417
|
+
},
|
|
1418
|
+
},
|
|
1419
|
+
SERIALIZATION: {
|
|
1420
|
+
INVALID_FUTURE_ID: {
|
|
1421
|
+
number: 10300,
|
|
1422
|
+
messageTemplate:
|
|
1423
|
+
"Unable to lookup future during deserialization: {futureId}",
|
|
1424
|
+
websiteTitle: "Invalid future id",
|
|
1425
|
+
websiteDescription: `Unable to lookup future during deserialization`,
|
|
1426
|
+
},
|
|
1427
|
+
INVALID_FUTURE_TYPE: {
|
|
1428
|
+
number: 10301,
|
|
1429
|
+
messageTemplate: "Invalid FutureType {type} as serialized argument",
|
|
1430
|
+
websiteTitle: "Invalid future type",
|
|
1431
|
+
websiteDescription: `Invalid FutureType as serialized argument`,
|
|
1432
|
+
},
|
|
1433
|
+
LOOKAHEAD_NOT_FOUND: {
|
|
1434
|
+
number: 10302,
|
|
1435
|
+
messageTemplate: "Lookahead value {key} missing",
|
|
1436
|
+
websiteTitle: "Lookahead value not found",
|
|
1437
|
+
websiteDescription: `Lookahead value missing`,
|
|
1438
|
+
},
|
|
1439
|
+
},
|
|
1440
|
+
EXECUTION: {
|
|
1441
|
+
DROPPED_TRANSACTION: {
|
|
1442
|
+
number: 10400,
|
|
1443
|
+
messageTemplate:
|
|
1444
|
+
"Error while executing {futureId}: all the transactions of its network interaction {networkInteractionId} were dropped. Please try rerunning Hardhat Ignition.",
|
|
1445
|
+
websiteTitle: "Dropped transaction",
|
|
1446
|
+
websiteDescription: `One of the transactions sent by Hardhat Ignition was dropped`,
|
|
1447
|
+
},
|
|
1448
|
+
INVALID_JSON_RPC_RESPONSE: {
|
|
1449
|
+
number: 10401,
|
|
1450
|
+
messageTemplate: "Invalid JSON-RPC response for {method}: {response}",
|
|
1451
|
+
websiteTitle: "Invalid JSON-RPC response",
|
|
1452
|
+
websiteDescription: `Hardhat Ignition received an invalid JSON-RPC response for the given method`,
|
|
1453
|
+
},
|
|
1454
|
+
WAITING_FOR_CONFIRMATIONS: {
|
|
1455
|
+
number: 10402,
|
|
1456
|
+
messageTemplate:
|
|
1457
|
+
"You have sent transactions from {sender} and they interfere with Hardhat Ignition. Please wait until they get {requiredConfirmations} confirmations before running Hardhat Ignition again.",
|
|
1458
|
+
websiteTitle: "Waiting for confirmations",
|
|
1459
|
+
websiteDescription: `Waiting for confirmations for transactions sent from the sender`,
|
|
1460
|
+
},
|
|
1461
|
+
WAITING_FOR_NONCE: {
|
|
1462
|
+
number: 10403,
|
|
1463
|
+
messageTemplate:
|
|
1464
|
+
"You have sent transactions from {sender} with nonce {nonce} and it interferes with Hardhat Ignition. Please wait until they get {requiredConfirmations} confirmations before running Hardhat Ignition again.",
|
|
1465
|
+
websiteTitle: "Waiting for nonce",
|
|
1466
|
+
websiteDescription: `Waiting for confirmations for transactions sent from the sender`,
|
|
1467
|
+
},
|
|
1468
|
+
INVALID_NONCE: {
|
|
1469
|
+
number: 10404,
|
|
1470
|
+
messageTemplate:
|
|
1471
|
+
"The next nonce for {sender} should be {expectedNonce}, but is {pendingCount}. Please make sure not to send transactions from {sender} while running this deployment and try again.",
|
|
1472
|
+
websiteTitle: "Invalid nonce",
|
|
1473
|
+
websiteDescription: `The next nonce for the sender is not what Hardhat Ignition expected`,
|
|
1474
|
+
},
|
|
1475
|
+
BASE_FEE_EXCEEDS_GAS_LIMIT: {
|
|
1476
|
+
number: 10405,
|
|
1477
|
+
messageTemplate:
|
|
1478
|
+
"The configured base fee exceeds the block gas limit. Please reduce the configured base fee or increase the block gas limit.",
|
|
1479
|
+
websiteTitle: "Base fee exceeds gas limit",
|
|
1480
|
+
websiteDescription: `The configured base fee exceeds the block gas limit`,
|
|
1481
|
+
},
|
|
1482
|
+
MAX_FEE_PER_GAS_EXCEEDS_GAS_LIMIT: {
|
|
1483
|
+
number: 10406,
|
|
1484
|
+
messageTemplate:
|
|
1485
|
+
"The calculated max fee per gas exceeds the configured limit.",
|
|
1486
|
+
websiteTitle: "Max fee per gas exceeds gas limit",
|
|
1487
|
+
websiteDescription: `The calculated max fee per gas exceeds the configured limit`,
|
|
1488
|
+
},
|
|
1489
|
+
INSUFFICIENT_FUNDS_FOR_TRANSFER: {
|
|
1490
|
+
number: 10407,
|
|
1491
|
+
messageTemplate:
|
|
1492
|
+
"Account {sender} has insufficient funds to transfer {amount} wei",
|
|
1493
|
+
websiteTitle: "Insufficient funds for transfer",
|
|
1494
|
+
websiteDescription: `Sender account has insufficient funds for transfer`,
|
|
1495
|
+
},
|
|
1496
|
+
INSUFFICIENT_FUNDS_FOR_DEPLOY: {
|
|
1497
|
+
number: 10408,
|
|
1498
|
+
messageTemplate:
|
|
1499
|
+
"Account {sender} has insufficient funds to deploy the contract",
|
|
1500
|
+
websiteTitle: "Insufficient funds for deploy",
|
|
1501
|
+
websiteDescription: `Sender account has insufficient funds for deploy`,
|
|
1502
|
+
},
|
|
1503
|
+
GAS_ESTIMATION_FAILED: {
|
|
1504
|
+
number: 10409,
|
|
1505
|
+
messageTemplate: "Gas estimation failed: {error}",
|
|
1506
|
+
websiteTitle: "Gas estimation failed",
|
|
1507
|
+
websiteDescription: `Gas estimation failed`,
|
|
1508
|
+
},
|
|
1509
|
+
},
|
|
1510
|
+
RECONCILIATION: {
|
|
1511
|
+
INVALID_EXECUTION_STATUS: {
|
|
1512
|
+
number: 10500,
|
|
1513
|
+
messageTemplate: "Unsupported execution status: {status}",
|
|
1514
|
+
websiteTitle: "Invalid execution status",
|
|
1515
|
+
websiteDescription: `Unsupported execution status`,
|
|
1516
|
+
},
|
|
1517
|
+
},
|
|
1518
|
+
WIPE: {
|
|
1519
|
+
UNINITIALIZED_DEPLOYMENT: {
|
|
1520
|
+
number: 10600,
|
|
1521
|
+
messageTemplate:
|
|
1522
|
+
"Cannot wipe {futureId} as the deployment hasn't been intialialized yet",
|
|
1523
|
+
websiteTitle: "Uninitialized deployment",
|
|
1524
|
+
websiteDescription: `Cannot wipe future as the deployment hasn't been intialialized yet`,
|
|
1525
|
+
},
|
|
1526
|
+
NO_STATE_FOR_FUTURE: {
|
|
1527
|
+
number: 10601,
|
|
1528
|
+
messageTemplate:
|
|
1529
|
+
"Cannot wipe {futureId} as it has no previous execution recorded",
|
|
1530
|
+
websiteTitle: "No state for future",
|
|
1531
|
+
websiteDescription: `Cannot wipe future as it has no previous execution recorded`,
|
|
1532
|
+
},
|
|
1533
|
+
DEPENDENT_FUTURES: {
|
|
1534
|
+
number: 10602,
|
|
1535
|
+
messageTemplate: `Cannot wipe {futureId} as there are dependent futures that have previous executions recorded. Consider wiping these first: {dependents}`,
|
|
1536
|
+
websiteTitle: "Dependent futures",
|
|
1537
|
+
websiteDescription: `Cannot wipe future as there are dependent futures that have previous executions recorded`,
|
|
1538
|
+
},
|
|
1539
|
+
},
|
|
1540
|
+
VALIDATION: {
|
|
1541
|
+
INVALID_DEFAULT_SENDER: {
|
|
1542
|
+
number: 10700,
|
|
1543
|
+
messageTemplate:
|
|
1544
|
+
"Default sender {defaultSender} is not part of the configured accounts.",
|
|
1545
|
+
websiteTitle: "Invalid default sender",
|
|
1546
|
+
websiteDescription: `The default sender is not part of the configured accounts`,
|
|
1547
|
+
},
|
|
1548
|
+
MISSING_EMITTER: {
|
|
1549
|
+
number: 10701,
|
|
1550
|
+
messageTemplate:
|
|
1551
|
+
"`options.emitter` must be provided when reading an event from a SendDataFuture",
|
|
1552
|
+
websiteTitle: "Missing emitter",
|
|
1553
|
+
websiteDescription: `The emitter must be provided when reading an event from a SendDataFuture`,
|
|
1554
|
+
},
|
|
1555
|
+
INVALID_MODULE: {
|
|
1556
|
+
number: 10702,
|
|
1557
|
+
messageTemplate: "Module validation failed with reason: {message}",
|
|
1558
|
+
websiteTitle: "Module validation failed",
|
|
1559
|
+
websiteDescription: `Module validation failed`,
|
|
1560
|
+
},
|
|
1561
|
+
INVALID_CONSTRUCTOR_ARGS_LENGTH: {
|
|
1562
|
+
number: 10703,
|
|
1563
|
+
messageTemplate:
|
|
1564
|
+
"The constructor of the contract '{contractName}' expects {expectedArgsLength} arguments but {argsLength} were given",
|
|
1565
|
+
websiteTitle: "Invalid constructor arguments length",
|
|
1566
|
+
websiteDescription: `Invalid constructor arguments length`,
|
|
1567
|
+
},
|
|
1568
|
+
INVALID_FUNCTION_ARGS_LENGTH: {
|
|
1569
|
+
number: 10704,
|
|
1570
|
+
messageTemplate:
|
|
1571
|
+
"Function {functionName} in contract {contractName} expects {expectedLength} arguments but {argsLength} were given",
|
|
1572
|
+
websiteTitle: "Invalid function arguments length",
|
|
1573
|
+
websiteDescription: `Invalid function arguments length`,
|
|
1574
|
+
},
|
|
1575
|
+
INVALID_STATIC_CALL: {
|
|
1576
|
+
number: 10705,
|
|
1577
|
+
messageTemplate:
|
|
1578
|
+
"Function {functionName} in contract {contractName} is not 'pure' or 'view' and should not be statically called",
|
|
1579
|
+
websiteTitle: "Invalid static call",
|
|
1580
|
+
websiteDescription: `Function is not 'pure' or 'view' and should not be statically called`,
|
|
1581
|
+
},
|
|
1582
|
+
INDEXED_EVENT_ARG: {
|
|
1583
|
+
number: 10706,
|
|
1584
|
+
messageTemplate:
|
|
1585
|
+
"Indexed argument {argument} of event {eventName} of contract {contractName} is not stored in the receipt (its hash is stored instead), so you can't read it.",
|
|
1586
|
+
websiteTitle: "Indexed event argument",
|
|
1587
|
+
websiteDescription: `Indexed argument of event is not stored in the receipt`,
|
|
1588
|
+
},
|
|
1589
|
+
INVALID_OVERLOAD_NAME: {
|
|
1590
|
+
number: 10707,
|
|
1591
|
+
messageTemplate: "Invalid {eventOrFunction} name '{name}'",
|
|
1592
|
+
websiteTitle: "Invalid overload name",
|
|
1593
|
+
websiteDescription: `Invalid overload name`,
|
|
1594
|
+
},
|
|
1595
|
+
OVERLOAD_NOT_FOUND: {
|
|
1596
|
+
number: 10708,
|
|
1597
|
+
messageTemplate:
|
|
1598
|
+
"{eventOrFunction} '{name}' not found in contract {contractName}",
|
|
1599
|
+
websiteTitle: "Overload not found",
|
|
1600
|
+
websiteDescription: `Overload not found`,
|
|
1601
|
+
},
|
|
1602
|
+
REQUIRE_BARE_NAME: {
|
|
1603
|
+
number: 10709,
|
|
1604
|
+
messageTemplate:
|
|
1605
|
+
"{eventOrFunction} name '{name}' used for contract {contractName}, but it's not overloaded. Use '{bareName}' instead.",
|
|
1606
|
+
websiteTitle: "Overload name used for non-overloaded contract",
|
|
1607
|
+
websiteDescription: `Overload name used for non-overloaded contract`,
|
|
1608
|
+
},
|
|
1609
|
+
OVERLOAD_NAME_REQUIRED: {
|
|
1610
|
+
number: 10710,
|
|
1611
|
+
messageTemplate: `{eventOrFunction} '{name}' is overloaded in contract {contractName}. Please use one of these names instead:
|
|
1612
|
+
|
|
1613
|
+
{normalizedNameList}`,
|
|
1614
|
+
websiteTitle: "Overload name required",
|
|
1615
|
+
websiteDescription: `Overload name required`,
|
|
1616
|
+
},
|
|
1617
|
+
INVALID_OVERLOAD_GIVEN: {
|
|
1618
|
+
number: 10711,
|
|
1619
|
+
messageTemplate: `{eventOrFunction} '{name}' is not a valid overload of '{bareName}' in contract {contractName}. Please use one of these names instead:
|
|
1620
|
+
|
|
1621
|
+
{normalizedNameList}`,
|
|
1622
|
+
websiteTitle: "Invalid overload given",
|
|
1623
|
+
websiteDescription: `Invalid overload given`,
|
|
1624
|
+
},
|
|
1625
|
+
EVENT_ARG_NOT_FOUND: {
|
|
1626
|
+
number: 10712,
|
|
1627
|
+
messageTemplate:
|
|
1628
|
+
"Event {eventName} of contract {contractName} has no argument named {argument}",
|
|
1629
|
+
websiteTitle: "Event argument not found",
|
|
1630
|
+
websiteDescription: `Event argument not found`,
|
|
1631
|
+
},
|
|
1632
|
+
INVALID_EVENT_ARG_INDEX: {
|
|
1633
|
+
number: 10713,
|
|
1634
|
+
messageTemplate:
|
|
1635
|
+
"Event {eventName} of contract {contractName} has only {expectedLength} arguments, but argument {argument} was requested",
|
|
1636
|
+
websiteTitle: "Invalid event argument index",
|
|
1637
|
+
websiteDescription: `Invalid event argument index`,
|
|
1638
|
+
},
|
|
1639
|
+
FUNCTION_ARG_NOT_FOUND: {
|
|
1640
|
+
number: 10714,
|
|
1641
|
+
messageTemplate:
|
|
1642
|
+
"Function {functionName} of contract {contractName} has no return value named {argument}",
|
|
1643
|
+
websiteTitle: "Function argument not found",
|
|
1644
|
+
websiteDescription: `Function argument not found`,
|
|
1645
|
+
},
|
|
1646
|
+
INVALID_FUNCTION_ARG_INDEX: {
|
|
1647
|
+
number: 10715,
|
|
1648
|
+
messageTemplate:
|
|
1649
|
+
"Function {functionName} of contract {contractName} has only {expectedLength} return values, but value {argument} was requested",
|
|
1650
|
+
websiteTitle: "Invalid function argument index",
|
|
1651
|
+
websiteDescription: `Invalid function argument index`,
|
|
1652
|
+
},
|
|
1653
|
+
MISSING_LIBRARIES: {
|
|
1654
|
+
number: 10716,
|
|
1655
|
+
messageTemplate:
|
|
1656
|
+
"Invalid libraries for contract {contractName}: The following libraries are missing: {fullyQualifiedNames}",
|
|
1657
|
+
websiteTitle: "Missing libraries",
|
|
1658
|
+
websiteDescription: `The following libraries are missing`,
|
|
1659
|
+
},
|
|
1660
|
+
CONFLICTING_LIBRARY_NAMES: {
|
|
1661
|
+
number: 10717,
|
|
1662
|
+
messageTemplate:
|
|
1663
|
+
"Invalid libraries for contract {contractName}: The names '{inputName}' and '{libName}' clash with each other, please use qualified names for both.",
|
|
1664
|
+
websiteTitle: "Conflicting library names",
|
|
1665
|
+
websiteDescription: `The libray names clash with each other`,
|
|
1666
|
+
},
|
|
1667
|
+
INVALID_LIBRARY_NAME: {
|
|
1668
|
+
number: 10718,
|
|
1669
|
+
messageTemplate:
|
|
1670
|
+
"Invalid library name {libraryName} for contract {contractName}",
|
|
1671
|
+
websiteTitle: "Invalid library name",
|
|
1672
|
+
websiteDescription: `Invalid library name`,
|
|
1673
|
+
},
|
|
1674
|
+
LIBRARY_NOT_NEEDED: {
|
|
1675
|
+
number: 10719,
|
|
1676
|
+
messageTemplate:
|
|
1677
|
+
"Invalid library {libraryName} for contract {contractName}: this library is not needed by this contract.",
|
|
1678
|
+
websiteTitle: "Invalid library",
|
|
1679
|
+
websiteDescription: `Invalid library`,
|
|
1680
|
+
},
|
|
1681
|
+
AMBIGUOUS_LIBRARY_NAME: {
|
|
1682
|
+
number: 10720,
|
|
1683
|
+
messageTemplate: `Invalid libraries for contract {contractName}: The name "{libraryName}" is ambiguous, please use one of the following fully qualified names: {fullyQualifiedNames}`,
|
|
1684
|
+
websiteTitle: "Ambiguous library name",
|
|
1685
|
+
websiteDescription: `The library name is ambiguous`,
|
|
1686
|
+
},
|
|
1687
|
+
INVALID_LIBRARY_ADDRESS: {
|
|
1688
|
+
number: 10721,
|
|
1689
|
+
messageTemplate: `Invalid address {address} for library {libraryName} of contract {contractName}`,
|
|
1690
|
+
websiteTitle: "Invalid library address",
|
|
1691
|
+
websiteDescription: `Invalid address for library`,
|
|
1692
|
+
},
|
|
1693
|
+
NEGATIVE_ACCOUNT_INDEX: {
|
|
1694
|
+
number: 10722,
|
|
1695
|
+
messageTemplate: "Account index cannot be a negative number",
|
|
1696
|
+
websiteTitle: "Negative account index",
|
|
1697
|
+
websiteDescription: `Account index cannot be a negative number`,
|
|
1698
|
+
},
|
|
1699
|
+
ACCOUNT_INDEX_TOO_HIGH: {
|
|
1700
|
+
number: 10723,
|
|
1701
|
+
messageTemplate:
|
|
1702
|
+
"Requested account index '{accountIndex}' is greater than the total number of available accounts '{accountsLength}'",
|
|
1703
|
+
websiteTitle: "Account index too high",
|
|
1704
|
+
websiteDescription: `Requested account index is greater than the total number of available accounts`,
|
|
1705
|
+
},
|
|
1706
|
+
INVALID_ARTIFACT: {
|
|
1707
|
+
number: 10724,
|
|
1708
|
+
messageTemplate: "Artifact for contract '{contractName}' is invalid",
|
|
1709
|
+
websiteTitle: "Invalid artifact",
|
|
1710
|
+
websiteDescription: `Artifact for contract is invalid`,
|
|
1711
|
+
},
|
|
1712
|
+
MISSING_MODULE_PARAMETER: {
|
|
1713
|
+
number: 10725,
|
|
1714
|
+
messageTemplate:
|
|
1715
|
+
"Module parameter '{name}' requires a value but was given none",
|
|
1716
|
+
websiteTitle: "Missing module parameter",
|
|
1717
|
+
websiteDescription: `Module parameter requires a value but was given none`,
|
|
1718
|
+
},
|
|
1719
|
+
INVALID_MODULE_PARAMETER_TYPE: {
|
|
1720
|
+
number: 10726,
|
|
1721
|
+
messageTemplate: `Module parameter '{name}' must be of type '{expectedType}' but is '{actualType}'`,
|
|
1722
|
+
websiteTitle: "Invalid module parameter type",
|
|
1723
|
+
websiteDescription: `Module parameter must be of the expected type`,
|
|
1724
|
+
},
|
|
1725
|
+
},
|
|
1726
|
+
STATUS: {
|
|
1727
|
+
UNINITIALIZED_DEPLOYMENT: {
|
|
1728
|
+
number: 10800,
|
|
1729
|
+
messageTemplate:
|
|
1730
|
+
"Cannot get status for nonexistant deployment at {deploymentDir}",
|
|
1731
|
+
websiteTitle: "Uninitialized deployment",
|
|
1732
|
+
websiteDescription: `Cannot get status for nonexistant deployment`,
|
|
1733
|
+
},
|
|
1734
|
+
},
|
|
1735
|
+
DEPLOY: {
|
|
1736
|
+
CHANGED_CHAINID: {
|
|
1737
|
+
number: 10900,
|
|
1738
|
+
messageTemplate: `The deployment's chain cannot be changed between runs. The deployment was previously run against the chain {previousChainId}, but the current network is the chain {currentChainId}.`,
|
|
1739
|
+
websiteTitle: "Chain ID changed",
|
|
1740
|
+
websiteDescription: `The deployment's chain cannot be changed between runs.`,
|
|
1741
|
+
},
|
|
1742
|
+
},
|
|
1743
|
+
VERIFY: {
|
|
1744
|
+
UNINITIALIZED_DEPLOYMENT: {
|
|
1745
|
+
number: 11000,
|
|
1746
|
+
messageTemplate:
|
|
1747
|
+
"Cannot verify contracts for nonexistant deployment at {deploymentDir}",
|
|
1748
|
+
websiteTitle: "Uninitialized deployment",
|
|
1749
|
+
websiteDescription: `Cannot verify contracts for nonexistant deployment`,
|
|
1750
|
+
},
|
|
1751
|
+
NO_CONTRACTS_DEPLOYED: {
|
|
1752
|
+
number: 11001,
|
|
1753
|
+
messageTemplate:
|
|
1754
|
+
"Cannot verify deployment {deploymentDir} as no contracts were deployed",
|
|
1755
|
+
websiteTitle: "No contracts deployed",
|
|
1756
|
+
websiteDescription: `Cannot verify deployment as no contracts were deployed`,
|
|
1757
|
+
},
|
|
1758
|
+
UNSUPPORTED_CHAIN: {
|
|
1759
|
+
number: 11002,
|
|
1760
|
+
messageTemplate:
|
|
1761
|
+
"Verification not natively supported for chainId {chainId}. Please use a custom chain configuration to add support.",
|
|
1762
|
+
websiteTitle: "Unsupported chain",
|
|
1763
|
+
websiteDescription: `Verification not natively supported for the requested chain`,
|
|
1764
|
+
},
|
|
1765
|
+
},
|
|
1766
|
+
STRATEGIES: {
|
|
1767
|
+
UNKNOWN_STRATEGY: {
|
|
1768
|
+
number: 11100,
|
|
1769
|
+
messageTemplate: `Invalid strategy name "{strategyName}", must be either 'basic' or 'create2'`,
|
|
1770
|
+
websiteTitle:
|
|
1771
|
+
"Invalid strategy name, must be either 'basic' or 'create2'",
|
|
1772
|
+
websiteDescription:
|
|
1773
|
+
"Invalid strategy, must be either 'basic' or 'create2'",
|
|
1774
|
+
},
|
|
1775
|
+
MISSING_CONFIG: {
|
|
1776
|
+
number: 11101,
|
|
1777
|
+
messageTemplate:
|
|
1778
|
+
"No strategy config passed for strategy '{strategyName}'",
|
|
1779
|
+
websiteTitle: "Missing strategy config",
|
|
1780
|
+
websiteDescription: `No strategy config passed for strategy`,
|
|
1781
|
+
},
|
|
1782
|
+
MISSING_CONFIG_PARAM: {
|
|
1783
|
+
number: 11102,
|
|
1784
|
+
messageTemplate:
|
|
1785
|
+
"Missing required strategy configuration parameter '{requiredParam}' for the strategy '{strategyName}'",
|
|
1786
|
+
websiteTitle: "Missing strategy config parameter",
|
|
1787
|
+
websiteDescription: `Missing required strategy configuration parameter`,
|
|
1788
|
+
},
|
|
1789
|
+
INVALID_CONFIG_PARAM: {
|
|
1790
|
+
number: 11103,
|
|
1791
|
+
messageTemplate:
|
|
1792
|
+
"Strategy configuration parameter '{paramName}' for the strategy '{strategyName}' is invalid: {reason}",
|
|
1793
|
+
websiteTitle: "Invalid strategy config parameter",
|
|
1794
|
+
websiteDescription: `Strategy configuration parameter is invalid`,
|
|
1795
|
+
},
|
|
1796
|
+
CREATE_X_NOT_DEPLOYED: {
|
|
1797
|
+
number: 11104,
|
|
1798
|
+
messageTemplate: "CreateX not deployed on current network {chainId}",
|
|
1799
|
+
websiteTitle: "CreateX contract not deployed",
|
|
1800
|
+
websiteDescription: `The CreateX contract is not deployed on the current network`,
|
|
1801
|
+
},
|
|
1802
|
+
},
|
|
1803
|
+
LIST_TRANSACTIONS: {
|
|
1804
|
+
UNINITIALIZED_DEPLOYMENT: {
|
|
1805
|
+
number: 11200,
|
|
1806
|
+
messageTemplate:
|
|
1807
|
+
"Cannot list transactions for nonexistant deployment at {deploymentDir}",
|
|
1808
|
+
websiteTitle: "Uninitialized deployment",
|
|
1809
|
+
websiteDescription: `Cannot list transactions for nonexistant deployment`,
|
|
1810
|
+
},
|
|
1205
1811
|
},
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
|
|
1209
|
-
|
|
1210
|
-
|
|
1812
|
+
},
|
|
1813
|
+
HARDHAT_ETHERS: {
|
|
1814
|
+
GENERAL: {
|
|
1815
|
+
METHOD_NOT_IMPLEMENTED: {
|
|
1816
|
+
number: 20000,
|
|
1817
|
+
messageTemplate: `Method "{method}" is not implemented`,
|
|
1818
|
+
websiteTitle: "Method not implemented",
|
|
1819
|
+
websiteDescription: "Method not implemented",
|
|
1820
|
+
},
|
|
1821
|
+
EVENT_NOT_SUPPORTED: {
|
|
1822
|
+
number: 20001,
|
|
1823
|
+
messageTemplate: `Event "{event}" is not supported`,
|
|
1824
|
+
websiteTitle: "Event not supported",
|
|
1825
|
+
websiteDescription: "Event not supported",
|
|
1826
|
+
},
|
|
1827
|
+
ACCOUNT_INDEX_OUT_OF_RANGE: {
|
|
1828
|
+
number: 20002,
|
|
1829
|
+
messageTemplate: `Tried to get account with index {accountIndex} but there are only {accountsLength} accounts`,
|
|
1830
|
+
websiteTitle: "Account index out of range",
|
|
1831
|
+
websiteDescription: "Account index out of range",
|
|
1832
|
+
},
|
|
1833
|
+
BROADCASTED_TX_DIFFERENT_HASH: {
|
|
1834
|
+
number: 20003,
|
|
1835
|
+
messageTemplate: `Expected broadcasted transaction to have hash "{txHash}", but got "{broadcastedTxHash}"`,
|
|
1836
|
+
websiteTitle: "Broadcasted transaction hash mismatch",
|
|
1837
|
+
websiteDescription: "Broadcasted transaction hash mismatch",
|
|
1838
|
+
},
|
|
1839
|
+
CANNOT_GET_ACCOUNT: {
|
|
1840
|
+
number: 20004,
|
|
1841
|
+
messageTemplate: `Cannot get account with address "{address}"`,
|
|
1842
|
+
websiteTitle: "Cannot get account",
|
|
1843
|
+
websiteDescription: "Cannot get account",
|
|
1844
|
+
},
|
|
1845
|
+
INVALID_BLOCK_TAG: {
|
|
1846
|
+
number: 20005,
|
|
1847
|
+
messageTemplate: `Invalid block tag "{blockTag}"`,
|
|
1848
|
+
websiteTitle: "Invalid block tag",
|
|
1849
|
+
websiteDescription: "Invalid block tag",
|
|
1850
|
+
},
|
|
1851
|
+
INVALID_ARTIFACT_FOR_FACTORY: {
|
|
1852
|
+
number: 20006,
|
|
1853
|
+
messageTemplate:
|
|
1854
|
+
"You are trying to create a contract factory from an artifact, but you have not passed a valid artifact parameter.",
|
|
1855
|
+
websiteTitle: "Invalid artifact for contract factory creation",
|
|
1856
|
+
websiteDescription: "Invalid artifact for contract factory creation",
|
|
1857
|
+
},
|
|
1858
|
+
INVALID_ABSTRACT_CONTRACT_FOR_FACTORY: {
|
|
1859
|
+
number: 20007,
|
|
1860
|
+
messageTemplate: `You are trying to create a contract factory for the contract "{contractName}", which is abstract and can't be deployed. If you want to call a contract using "{contractName}" as its interface use the "getContractAt" function instead.`,
|
|
1861
|
+
websiteTitle: "Invalid abstract contract for contract factory creation",
|
|
1862
|
+
websiteDescription:
|
|
1863
|
+
"Invalid abstract contract for contract factory creation",
|
|
1864
|
+
},
|
|
1865
|
+
INVALID_ADDRESS_TO_LINK_CONTRACT_TO_LIBRARY: {
|
|
1866
|
+
number: 20008,
|
|
1867
|
+
messageTemplate: `You tried to link the contract "{contractName}" with the library "{linkedLibraryName}", but you provided this invalid address: {resolvedAddress}`,
|
|
1868
|
+
websiteTitle: "Invalid address to link contract",
|
|
1869
|
+
websiteDescription: "Invalid address to link contract",
|
|
1870
|
+
},
|
|
1871
|
+
LIBRARY_NOT_AMONG_CONTRACT_LIBRARIES: {
|
|
1872
|
+
number: 20009,
|
|
1873
|
+
messageTemplate: `You tried to link the contract "{contractName}" with the library "{linkedLibraryName}", which is not one of its libraries. Detailed message: {detailedMessage}`,
|
|
1874
|
+
websiteTitle: "Library is not one of the contract libraries",
|
|
1875
|
+
websiteDescription: "Library is not one of the contract libraries",
|
|
1876
|
+
},
|
|
1877
|
+
AMBIGUOUS_LIBRARY_NAME: {
|
|
1878
|
+
number: 20010,
|
|
1879
|
+
messageTemplate: `The library name "{linkedLibraryName}" is ambiguous for the contract "{contractName}". It may resolve to one of the following libraries: "{matchingNeededLibrariesFQNs}". To fix this, choose one of these fully qualified library names and replace where appropriate.`,
|
|
1880
|
+
websiteTitle: "Ambiguous library name",
|
|
1881
|
+
websiteDescription: "Ambiguous library name",
|
|
1882
|
+
},
|
|
1883
|
+
REFERENCE_TO_SAME_LIBRARY: {
|
|
1884
|
+
number: 20011,
|
|
1885
|
+
messageTemplate: `The library names "{linkedLibraryName1}" and "{linkedLibraryName2}" refer to the same library and were given as two separate library links. Remove one of them and review your library links before proceeding.`,
|
|
1886
|
+
websiteTitle: "Reference to same library",
|
|
1887
|
+
websiteDescription: "Reference to same library",
|
|
1888
|
+
},
|
|
1889
|
+
MISSING_LINK_FOR_LIBRARY: {
|
|
1890
|
+
number: 20012,
|
|
1891
|
+
messageTemplate: `The contract "{contractName}" is missing links for the following libraries: "{missingLibraries}". Learn more about linking contracts at (https://hardhat.org/hardhat-runner/plugins/nomicfoundation-hardhat-ethers#library-linking).`,
|
|
1892
|
+
websiteTitle: "Missing links for library",
|
|
1893
|
+
websiteDescription: "Missing links for library",
|
|
1894
|
+
},
|
|
1895
|
+
UNSUPPORTED_TYPE_FOR_DEEP_COPY: {
|
|
1896
|
+
number: 20013,
|
|
1897
|
+
messageTemplate: `The value "{value}" with type "{type}" is not supported by the deepCopy function.`,
|
|
1898
|
+
websiteTitle: "Unsupported type for deep copy",
|
|
1899
|
+
websiteDescription: "Unsupported type for deep copy",
|
|
1900
|
+
},
|
|
1211
1901
|
},
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
|
|
1902
|
+
},
|
|
1903
|
+
HARDHAT_MOCHA: {
|
|
1904
|
+
GENERAL: {
|
|
1905
|
+
TEST_TASK_ESM_TESTS_RUN_TWICE: {
|
|
1906
|
+
number: 30000,
|
|
1907
|
+
messageTemplate: `Your project uses ESM and you've programmatically run your tests twice. This is not supported yet.`,
|
|
1908
|
+
websiteTitle: "Running tests twice in an ESM project",
|
|
1909
|
+
websiteDescription:
|
|
1910
|
+
'You have run your tests twice programmatically and your project is an ESM project (you have `"type": "module"` in your `package.json`, or some of your files have the `.mjs` extension). This is not supported by Mocha yet (https://github.com/mochajs/mocha/issues/2706).',
|
|
1911
|
+
},
|
|
1217
1912
|
},
|
|
1218
1913
|
},
|
|
1219
|
-
|
|
1220
|
-
|
|
1221
|
-
|
|
1222
|
-
|
|
1223
|
-
|
|
1224
|
-
|
|
1914
|
+
HARDHAT_VIEM: {
|
|
1915
|
+
GENERAL: {
|
|
1916
|
+
NETWORK_NOT_FOUND: {
|
|
1917
|
+
number: 40000,
|
|
1918
|
+
messageTemplate: `No network with chain id "{chainId}" found.`,
|
|
1919
|
+
websiteTitle: "Network not found",
|
|
1920
|
+
websiteDescription: `No network with the specified chain id was found. You can override the chain by passing it as a parameter to the client getter:
|
|
1225
1921
|
|
|
1226
1922
|
import { someChain } from "viem/chains";
|
|
1227
1923
|
const client = await hre.viem.getPublicClient({
|
|
@@ -1230,21 +1926,21 @@ const client = await hre.viem.getPublicClient({
|
|
|
1230
1926
|
});
|
|
1231
1927
|
|
|
1232
1928
|
You can find a list of supported networks here: https://github.com/wevm/viem/blob/main/src/chains/index.ts`,
|
|
1233
|
-
|
|
1234
|
-
|
|
1235
|
-
|
|
1236
|
-
|
|
1237
|
-
|
|
1238
|
-
|
|
1239
|
-
|
|
1929
|
+
},
|
|
1930
|
+
UNSUPPORTED_DEVELOPMENT_NETWORK: {
|
|
1931
|
+
number: 40001,
|
|
1932
|
+
messageTemplate:
|
|
1933
|
+
"Unsupported development network detected. Hardhat and Anvil are the only supported networks.",
|
|
1934
|
+
websiteTitle: "Unsupported Development Network",
|
|
1935
|
+
websiteDescription: `The chain ID corresponds to a development network, but we were unable to identify it as either Hardhat or Anvil.
|
|
1240
1936
|
|
|
1241
1937
|
Please ensure you're using one of the supported networks.`,
|
|
1242
|
-
|
|
1243
|
-
|
|
1244
|
-
|
|
1245
|
-
|
|
1246
|
-
|
|
1247
|
-
|
|
1938
|
+
},
|
|
1939
|
+
DEFAULT_WALLET_CLIENT_NOT_FOUND: {
|
|
1940
|
+
number: 40002,
|
|
1941
|
+
messageTemplate: `No default wallet client found for chain id "{chainId}".`,
|
|
1942
|
+
websiteTitle: "Default Wallet Client Not Found",
|
|
1943
|
+
websiteDescription: `A default wallet client could not be found for the specified chain ID. This issue may occur if no accounts were configured for the selected network.
|
|
1248
1944
|
|
|
1249
1945
|
To resolve this, make sure to add an account to the specified network in the Hardhat config. Alternatively, you can set a custom wallet client by passing it as a parameter in the relevant function:
|
|
1250
1946
|
|
|
@@ -1254,381 +1950,333 @@ const walletClient = await networkConnection.viem.getWalletClient(address);
|
|
|
1254
1950
|
await networkConnection.viem.deployContract(contractName, constructorArgs, { walletClient });
|
|
1255
1951
|
await networkConnection.viem.sendDeploymentTransaction(contractName, constructorArgs, { walletClient });
|
|
1256
1952
|
await networkConnection.viem.getContractAt(contractName, address, { walletClient });`,
|
|
1257
|
-
|
|
1258
|
-
|
|
1259
|
-
|
|
1260
|
-
|
|
1953
|
+
},
|
|
1954
|
+
LINKING_CONTRACT_ERROR: {
|
|
1955
|
+
number: 40003,
|
|
1956
|
+
messageTemplate: `Error linking the contract "{contractName}":
|
|
1261
1957
|
|
|
1262
1958
|
{error}`,
|
|
1263
|
-
|
|
1264
|
-
|
|
1959
|
+
websiteTitle: "Error Linking Contract",
|
|
1960
|
+
websiteDescription: `An error occurred while linking the contract libraries.
|
|
1265
1961
|
|
|
1266
1962
|
Please check Hardhat's output for more details.`,
|
|
1267
|
-
|
|
1268
|
-
|
|
1269
|
-
|
|
1270
|
-
|
|
1271
|
-
|
|
1272
|
-
|
|
1273
|
-
|
|
1274
|
-
|
|
1275
|
-
|
|
1276
|
-
|
|
1277
|
-
|
|
1278
|
-
|
|
1279
|
-
|
|
1963
|
+
},
|
|
1964
|
+
INVALID_CONFIRMATIONS: {
|
|
1965
|
+
number: 40004,
|
|
1966
|
+
messageTemplate: `Invalid confirmations value. {error}`,
|
|
1967
|
+
websiteTitle: "Invalid Confirmations Value",
|
|
1968
|
+
websiteDescription: `Invalid confirmations value. The confirmations value provided is invalid.`,
|
|
1969
|
+
},
|
|
1970
|
+
DEPLOY_CONTRACT_ERROR: {
|
|
1971
|
+
number: 40005,
|
|
1972
|
+
messageTemplate: `The deployment transaction "{txHash}" was mined in block "{blockNumber}" but its receipt doesn't contain a contract address`,
|
|
1973
|
+
websiteTitle: "Deployment Transaction Error",
|
|
1974
|
+
websiteDescription:
|
|
1975
|
+
"The deployment transaction was mined but its receipt doesn't contain a contract address.",
|
|
1976
|
+
},
|
|
1280
1977
|
},
|
|
1281
1978
|
},
|
|
1282
|
-
|
|
1283
|
-
|
|
1284
|
-
|
|
1285
|
-
|
|
1286
|
-
|
|
1287
|
-
|
|
1979
|
+
HARDHAT_KEYSTORE: {
|
|
1980
|
+
GENERAL: {
|
|
1981
|
+
INVALID_PASSWORD_OR_CORRUPTED_KEYSTORE: {
|
|
1982
|
+
number: 50000,
|
|
1983
|
+
messageTemplate: "Invalid password or corrupted keystore file.",
|
|
1984
|
+
websiteTitle: "Invalid password or corrupted keystore file",
|
|
1985
|
+
websiteDescription:
|
|
1986
|
+
"The password you provided is incorrect or the keystore file is corrupted.",
|
|
1987
|
+
},
|
|
1288
1988
|
},
|
|
1289
1989
|
},
|
|
1290
|
-
|
|
1291
|
-
|
|
1292
|
-
|
|
1293
|
-
|
|
1294
|
-
|
|
1295
|
-
|
|
1296
|
-
|
|
1297
|
-
|
|
1298
|
-
|
|
1299
|
-
|
|
1300
|
-
|
|
1301
|
-
|
|
1302
|
-
|
|
1303
|
-
|
|
1304
|
-
|
|
1305
|
-
|
|
1306
|
-
|
|
1307
|
-
|
|
1308
|
-
|
|
1309
|
-
|
|
1310
|
-
|
|
1311
|
-
|
|
1312
|
-
|
|
1313
|
-
|
|
1314
|
-
|
|
1315
|
-
|
|
1316
|
-
|
|
1317
|
-
|
|
1318
|
-
|
|
1319
|
-
|
|
1320
|
-
|
|
1321
|
-
|
|
1322
|
-
|
|
1323
|
-
|
|
1324
|
-
|
|
1325
|
-
|
|
1326
|
-
|
|
1327
|
-
|
|
1328
|
-
|
|
1329
|
-
|
|
1330
|
-
|
|
1331
|
-
|
|
1332
|
-
|
|
1333
|
-
|
|
1334
|
-
|
|
1335
|
-
|
|
1336
|
-
|
|
1337
|
-
|
|
1338
|
-
|
|
1339
|
-
|
|
1340
|
-
|
|
1341
|
-
|
|
1342
|
-
|
|
1343
|
-
|
|
1344
|
-
|
|
1345
|
-
|
|
1346
|
-
|
|
1347
|
-
|
|
1348
|
-
|
|
1349
|
-
|
|
1350
|
-
|
|
1351
|
-
|
|
1352
|
-
|
|
1353
|
-
|
|
1354
|
-
"
|
|
1355
|
-
|
|
1356
|
-
|
|
1357
|
-
|
|
1358
|
-
|
|
1359
|
-
|
|
1360
|
-
|
|
1361
|
-
|
|
1362
|
-
|
|
1363
|
-
|
|
1364
|
-
|
|
1365
|
-
"
|
|
1366
|
-
|
|
1367
|
-
|
|
1368
|
-
|
|
1369
|
-
|
|
1370
|
-
|
|
1371
|
-
websiteTitle:
|
|
1372
|
-
"[.withArgs] should never happen, please submit an issue to the Hardhat repository",
|
|
1373
|
-
websiteDescription:
|
|
1374
|
-
"[.withArgs] should never happen, please submit an issue to the Hardhat repository",
|
|
1375
|
-
},
|
|
1376
|
-
INDEXED_EVENT_FORBIDDEN: {
|
|
1377
|
-
number: 1512,
|
|
1378
|
-
messageTemplate:
|
|
1379
|
-
"Should not get an indexed event when the assertion type is not event. Please open an issue about this.",
|
|
1380
|
-
websiteTitle:
|
|
1381
|
-
"Should not get an indexed event when the assertion type is not event",
|
|
1382
|
-
websiteDescription:
|
|
1383
|
-
"Should not get an indexed event when the assertion type is not event",
|
|
1384
|
-
},
|
|
1385
|
-
PANIC_CODE_EXPECTED: {
|
|
1386
|
-
number: 1513,
|
|
1387
|
-
messageTemplate: `Expected the given panic code to be a number-like value, but got "{panicCode}"`,
|
|
1388
|
-
websiteTitle: "Expected the given panic code to be a number-like value",
|
|
1389
|
-
websiteDescription:
|
|
1390
|
-
"Expected the given panic code to be a number-like value",
|
|
1391
|
-
},
|
|
1392
|
-
ACCOUNTS_NUMBER_DIFFERENT_FROM_BALANCE_CHANGES: {
|
|
1393
|
-
number: 1514,
|
|
1394
|
-
messageTemplate: `The number of accounts ({accounts}) is different than the number of expected balance changes ({balanceChanges})`,
|
|
1395
|
-
websiteTitle:
|
|
1396
|
-
"The number of accounts is different than the number of expected balance changes",
|
|
1397
|
-
websiteDescription:
|
|
1398
|
-
"The number of accounts is different than the number of expected balance changes",
|
|
1399
|
-
},
|
|
1400
|
-
FIRST_ARGUMENT_MUST_BE_A_CONTRACT_INSTANCE: {
|
|
1401
|
-
number: 1515,
|
|
1402
|
-
messageTemplate: `The first argument of "{method}" must be the contract instance of the token`,
|
|
1403
|
-
websiteTitle: "First argument must be a contract instance",
|
|
1404
|
-
websiteDescription: "First argument must be a contract instance",
|
|
1405
|
-
},
|
|
1406
|
-
CONTRACT_IS_NOT_AN_ERC20_TOKEN: {
|
|
1407
|
-
number: 1516,
|
|
1408
|
-
messageTemplate: `The given contract instance is not an ERC20 token`,
|
|
1409
|
-
websiteTitle: "Given contract instance is not an ERC20 token",
|
|
1410
|
-
websiteDescription: "Given contract instance is not an ERC20 token",
|
|
1411
|
-
},
|
|
1412
|
-
INVALID_TRANSACTION: {
|
|
1413
|
-
number: 1517,
|
|
1414
|
-
messageTemplate: '"{transaction}" is not a valid transaction',
|
|
1415
|
-
websiteTitle: "Invalid transaction",
|
|
1416
|
-
websiteDescription: "Invalid transaction",
|
|
1417
|
-
},
|
|
1418
|
-
CONTRACT_TARGET_MUST_BE_A_STRING: {
|
|
1419
|
-
number: 1518,
|
|
1420
|
-
messageTemplate: "The contract target should be a string",
|
|
1421
|
-
websiteTitle: "Contract target must be a string",
|
|
1422
|
-
websiteDescription: "Contract target must be a string",
|
|
1423
|
-
},
|
|
1424
|
-
EMIT_EXPECTS_TWO_ARGUMENTS: {
|
|
1425
|
-
number: 1519,
|
|
1426
|
-
messageTemplate:
|
|
1427
|
-
"The .emit matcher expects two arguments: the contract and the event name. Arguments should be asserted with the .withArgs helper.",
|
|
1428
|
-
websiteTitle: "Invalid arguments length for the .emit matcher",
|
|
1429
|
-
websiteDescription: "Invalid arguments length for the .emit matcher",
|
|
1430
|
-
},
|
|
1431
|
-
CONTRACT_RUNNER_PROVIDER_NOT_NULL: {
|
|
1432
|
-
number: 1520,
|
|
1433
|
-
messageTemplate: "contract.runner.provider shouldn't be null",
|
|
1434
|
-
websiteTitle: "Contract runner's provider shouldn't be null",
|
|
1435
|
-
websiteDescription: "Contract runner's provider shouldn't be null",
|
|
1436
|
-
},
|
|
1437
|
-
WITH_ARGS_CANNOT_BE_COMBINED_WITH_NOT: {
|
|
1438
|
-
number: 1521,
|
|
1439
|
-
messageTemplate: "Do not combine .not. with .withArgs()",
|
|
1440
|
-
websiteTitle: "Do not combine .not. with .withArgs()",
|
|
1441
|
-
websiteDescription: "Do not combine .not. with .withArgs()",
|
|
1442
|
-
},
|
|
1443
|
-
WITH_ARGS_WRONG_COMBINATION: {
|
|
1444
|
-
number: 1522,
|
|
1445
|
-
messageTemplate:
|
|
1446
|
-
"withArgs can only be used in combination with a previous .emit or .revertedWithCustomError assertion",
|
|
1447
|
-
websiteTitle:
|
|
1448
|
-
"withArgs can only be used in combination with a previous .emit or .revertedWithCustomError assertion",
|
|
1449
|
-
websiteDescription:
|
|
1450
|
-
"withArgs can only be used in combination with a previous .emit or .revertedWithCustomError assertion",
|
|
1451
|
-
},
|
|
1452
|
-
WITH_ARGS_COMBINED_WITH_INCOMPATIBLE_ASSERTIONS: {
|
|
1453
|
-
number: 1523,
|
|
1454
|
-
messageTemplate:
|
|
1455
|
-
"withArgs called with both .emit and .revertedWithCustomError, but these assertions cannot be combined",
|
|
1456
|
-
websiteTitle:
|
|
1457
|
-
"withArgs called with both .emit and .revertedWithCustomError, but these assertions cannot be combined",
|
|
1458
|
-
websiteDescription:
|
|
1459
|
-
"withArgs called with both .emit and .revertedWithCustomError, but these assertions cannot be combined",
|
|
1460
|
-
},
|
|
1461
|
-
},
|
|
1462
|
-
ARTIFACTS: {
|
|
1463
|
-
NOT_FOUND: {
|
|
1464
|
-
number: 1600,
|
|
1465
|
-
messageTemplate:
|
|
1466
|
-
'Artifact for contract "{contractName}" not found. {suggestion}',
|
|
1467
|
-
websiteTitle: "Artifact not found",
|
|
1468
|
-
websiteDescription: `Tried to read a nonexistent artifact.
|
|
1469
|
-
|
|
1470
|
-
Please double check that your contracts have been compiled and double check your artifact's name.`,
|
|
1471
|
-
},
|
|
1472
|
-
MULTIPLE_FOUND: {
|
|
1473
|
-
number: 1601,
|
|
1474
|
-
messageTemplate: `There are multiple artifacts for contract "{contractName}", please use a fully qualified name.
|
|
1990
|
+
NETWORK_HELPERS: {
|
|
1991
|
+
GENERAL: {
|
|
1992
|
+
ONLY_ALLOW_0X_PREFIXED_STRINGS: {
|
|
1993
|
+
number: 60000,
|
|
1994
|
+
messageTemplate: `Only hex-encoded strings prefixed with "0x" are accepted`,
|
|
1995
|
+
websiteTitle: `Only hex-encoded strings prefixed with "0x" are accepted`,
|
|
1996
|
+
websiteDescription: `Only hex-encoded strings prefixed with "0x" are accepted`,
|
|
1997
|
+
},
|
|
1998
|
+
CANNOT_CONVERT_TO_RPC_QUANTITY: {
|
|
1999
|
+
number: 60001,
|
|
2000
|
+
messageTemplate: `The value "{value}" cannot be converted into an RPC quantity`,
|
|
2001
|
+
websiteTitle: "Cannot converted into an RPC quantity",
|
|
2002
|
+
websiteDescription:
|
|
2003
|
+
"The value cannot be converted into an RPC quantity",
|
|
2004
|
+
},
|
|
2005
|
+
INVALID_HEX_STRING: {
|
|
2006
|
+
number: 60002,
|
|
2007
|
+
messageTemplate: `"{value}" is not a valid hex string`,
|
|
2008
|
+
websiteTitle: "Invalid hex string",
|
|
2009
|
+
websiteDescription: "The value is not a valid hex string",
|
|
2010
|
+
},
|
|
2011
|
+
INVALID_TX_HASH: {
|
|
2012
|
+
number: 60003,
|
|
2013
|
+
messageTemplate: `"{value}" is not a valid transaction hash`,
|
|
2014
|
+
websiteTitle: "Invalid transaction hash",
|
|
2015
|
+
websiteDescription: "The value is not a valid transaction hash",
|
|
2016
|
+
},
|
|
2017
|
+
INVALID_ADDRESS: {
|
|
2018
|
+
number: 60004,
|
|
2019
|
+
messageTemplate: `"{value}" is not a valid address`,
|
|
2020
|
+
websiteTitle: "Invalid address",
|
|
2021
|
+
websiteDescription: "The value is not a valid address",
|
|
2022
|
+
},
|
|
2023
|
+
INVALID_CHECKSUM_ADDRESS: {
|
|
2024
|
+
number: 60005,
|
|
2025
|
+
messageTemplate: `Address "{value}" has an invalid checksum`,
|
|
2026
|
+
websiteTitle: "Invalid checksum address",
|
|
2027
|
+
websiteDescription: "The address has an invalid checksum",
|
|
2028
|
+
},
|
|
2029
|
+
BLOCK_NUMBER_SMALLER_THAN_CURRENT: {
|
|
2030
|
+
number: 60006,
|
|
2031
|
+
messageTemplate: `The block number "{newValue}" is smaller than the current block number "{currentValue}"`,
|
|
2032
|
+
websiteTitle: "Block number smaller than the current block number",
|
|
2033
|
+
websiteDescription:
|
|
2034
|
+
"The block number is smaller than the current block number",
|
|
2035
|
+
},
|
|
2036
|
+
EVM_SNAPSHOT_VALUE_NOT_A_STRING: {
|
|
2037
|
+
number: 60007,
|
|
2038
|
+
messageTemplate: `The value returned by evm_snapshot should be a string`,
|
|
2039
|
+
websiteTitle: "The evm_snapshot value should be a string",
|
|
2040
|
+
websiteDescription:
|
|
2041
|
+
"The value returned by evm_snapshot should be a string",
|
|
2042
|
+
},
|
|
2043
|
+
EVM_REVERT_VALUE_NOT_A_BOOLEAN: {
|
|
2044
|
+
number: 60008,
|
|
2045
|
+
messageTemplate: `The value returned by evm_revert should be a boolean`,
|
|
2046
|
+
websiteTitle: "The evm_revert value should be a boolean",
|
|
2047
|
+
websiteDescription:
|
|
2048
|
+
"The value returned by evm_revert should be a boolean",
|
|
2049
|
+
},
|
|
2050
|
+
INVALID_SNAPSHOT: {
|
|
2051
|
+
number: 60009,
|
|
2052
|
+
messageTemplate: `Trying to restore an invalid snapshot.`,
|
|
2053
|
+
websiteTitle: "Trying to restore an invalid snapshot.",
|
|
2054
|
+
websiteDescription: "Trying to restore an invalid snapshot.",
|
|
2055
|
+
},
|
|
2056
|
+
EXPECTED_NON_NEGATIVE_NUMBER: {
|
|
2057
|
+
number: 60010,
|
|
2058
|
+
messageTemplate: `Invalid input: expected a non-negative number but "{value}" was given.`,
|
|
2059
|
+
websiteTitle: "Invalid input, expected a non-negative number",
|
|
2060
|
+
websiteDescription: "Invalid input, expected a non-negative number",
|
|
2061
|
+
},
|
|
2062
|
+
CANNOT_CONVERT_NEGATIVE_NUMBER_TO_RPC_QUANTITY: {
|
|
2063
|
+
number: 60011,
|
|
2064
|
+
messageTemplate: `Cannot convert negative number "{value}" to RPC quantity`,
|
|
2065
|
+
websiteTitle: "Cannot convert negative number to RPC quantity",
|
|
2066
|
+
websiteDescription: "Cannot convert negative number to RPC quantity",
|
|
2067
|
+
},
|
|
2068
|
+
FIXTURE_ANONYMOUS_FUNCTION_ERROR: {
|
|
2069
|
+
number: 60012,
|
|
2070
|
+
messageTemplate: `Anonymous functions cannot be used as fixtures.
|
|
1475
2071
|
|
|
1476
|
-
|
|
2072
|
+
You probably did something like this:
|
|
1477
2073
|
|
|
1478
|
-
|
|
1479
|
-
`,
|
|
1480
|
-
websiteTitle: "Multiple artifacts found",
|
|
1481
|
-
websiteDescription: `There are multiple artifacts that match the given contract name, and Hardhat doesn't know which one to use.
|
|
2074
|
+
loadFixture(async () => ... );
|
|
1482
2075
|
|
|
1483
|
-
|
|
1484
|
-
},
|
|
1485
|
-
},
|
|
1486
|
-
IGNITION: {
|
|
1487
|
-
INTERNAL_ERROR: {
|
|
1488
|
-
number: 1700,
|
|
1489
|
-
shouldBeReported: true,
|
|
1490
|
-
messageTemplate: "Hardhat Ignition Internal Error",
|
|
1491
|
-
websiteTitle: "An internal error to Hardhat Ignition has occurred",
|
|
1492
|
-
websiteDescription: `An internal error to Hardhat Ignition has occurred`,
|
|
1493
|
-
},
|
|
1494
|
-
ETHERSCAN_API_KEY_NOT_CONFIGURED: {
|
|
1495
|
-
number: 1701,
|
|
1496
|
-
messageTemplate: "No etherscan API key configured",
|
|
1497
|
-
websiteTitle: "No etherscan API key configured",
|
|
1498
|
-
websiteDescription: `You are trying to run verification during a Hardhat Ignition deploy, but there is no Etherscan API Key set.`,
|
|
1499
|
-
},
|
|
1500
|
-
CANNOT_RESET_EPHEMERAL_NETWORK: {
|
|
1501
|
-
number: 1702,
|
|
1502
|
-
messageTemplate:
|
|
1503
|
-
"Deploy cancelled: Cannot reset deployment on ephemeral Hardhat network",
|
|
1504
|
-
websiteTitle: "Cannot reset deployment on ephemeral Hardhat network",
|
|
1505
|
-
websiteDescription: `The reset flag can only used against a persistent network. You are trying to reset a deployment against an in-memory network.`,
|
|
1506
|
-
},
|
|
1507
|
-
UNKNOWN_STRATEGY: {
|
|
1508
|
-
number: 1703,
|
|
1509
|
-
messageTemplate: `Invalid strategy name "{strategyName}", must be either 'basic' or 'create2'`,
|
|
1510
|
-
websiteTitle:
|
|
1511
|
-
"Invalid strategy name, must be either 'basic' or 'create2'",
|
|
1512
|
-
websiteDescription:
|
|
1513
|
-
"Invalid strategy, must be either 'basic' or 'create2'",
|
|
1514
|
-
},
|
|
1515
|
-
NO_MODULES_FOUND: {
|
|
1516
|
-
number: 1704,
|
|
1517
|
-
messageTemplate: "No Ignition modules found",
|
|
1518
|
-
websiteTitle: "No Ignition modules found",
|
|
1519
|
-
websiteDescription:
|
|
1520
|
-
"Ignition was unable to find the module requested for deployment.",
|
|
1521
|
-
},
|
|
1522
|
-
FAILED_TO_PARSE_JSON: {
|
|
1523
|
-
number: 1705,
|
|
1524
|
-
messageTemplate: "Could not parse JSON parameters",
|
|
1525
|
-
websiteTitle: "Could not parse JSON parameters",
|
|
1526
|
-
websiteDescription:
|
|
1527
|
-
"Ignition failed to parse the JSON parameters for deployment. Review the JSON and try again.",
|
|
1528
|
-
},
|
|
1529
|
-
INVALID_DEPLOYMENT_ID: {
|
|
1530
|
-
number: 1706,
|
|
1531
|
-
messageTemplate: `The deployment-id "{deploymentId}" contains banned characters, ids can only contain alphanumerics, dashes or underscores`,
|
|
1532
|
-
websiteTitle: "The deployment-id contains banned characters",
|
|
1533
|
-
websiteDescription:
|
|
1534
|
-
"The deployment-id being used for the Hardhat Ignition deployment contains banned characters. Deployment ids can only contain alphanumerics, dashes or underscores.",
|
|
1535
|
-
},
|
|
1536
|
-
IGNITION_CLIENT_EXTENSION_NOT_INSTALLED: {
|
|
1537
|
-
number: 1707,
|
|
1538
|
-
messageTemplate:
|
|
1539
|
-
"Please install either `@nomicfoundation/hardhat-ignition-viem` or `@nomicfoundation/hardhat-ignition-ethers` to use Ignition in your Hardhat tests",
|
|
1540
|
-
websiteTitle:
|
|
1541
|
-
"Neither the `viem` or `ethers` Ignition extension plugin is installed.",
|
|
1542
|
-
websiteDescription:
|
|
1543
|
-
"Please install either `@nomicfoundation/hardhat-ignition-viem` or `@nomicfoundation/hardhat-ignition-ethers` to use Ignition in your Hardhat tests",
|
|
1544
|
-
},
|
|
1545
|
-
UNKNOWN_TRANSACTION_TYPE: {
|
|
1546
|
-
number: 1708,
|
|
1547
|
-
shouldBeReported: true,
|
|
1548
|
-
messageTemplate: `Unknown transaction type: "{type}"`,
|
|
1549
|
-
websiteTitle:
|
|
1550
|
-
"Hardhat Ignition was unable to display an unknown transaction type",
|
|
1551
|
-
websiteDescription:
|
|
1552
|
-
"Hardhat Ignition was unable to display an unknown transaction type",
|
|
1553
|
-
},
|
|
1554
|
-
PARAMETER_EXCEEDS_MAXIMUM_SAFE_INTEGER: {
|
|
1555
|
-
number: 1709,
|
|
1556
|
-
messageTemplate: `Parameter "{parameter}" exceeds maximum safe integer size. Encode the value as a string using bigint notation: "{value}n"`,
|
|
1557
|
-
websiteTitle: "Parameter exceeds maximum safe integer size",
|
|
1558
|
-
websiteDescription: "Parameter exceeds maximum safe integer size",
|
|
1559
|
-
},
|
|
1560
|
-
MODULE_VALIDATION_FAILED: {
|
|
1561
|
-
number: 1710,
|
|
1562
|
-
messageTemplate:
|
|
1563
|
-
"Module validation failed. Check the stack trace above to identify the issue and its source code location.",
|
|
1564
|
-
websiteTitle: "Module validation failed.",
|
|
1565
|
-
websiteDescription:
|
|
1566
|
-
"Hardhat Ignition found problems while validating the module. Please review the module and try again.",
|
|
1567
|
-
},
|
|
1568
|
-
FAILED_TO_PARSE_DEPLOYMENT_PARAMETERS: {
|
|
1569
|
-
number: 1711,
|
|
1570
|
-
messageTemplate: `Could not parse parameters from "{filepath}"`,
|
|
1571
|
-
websiteTitle: "Parsing of deployment parameters failed.",
|
|
1572
|
-
websiteDescription: "Parsing of deployment parameters failed.",
|
|
1573
|
-
},
|
|
1574
|
-
VISUALIZATION_TEMPLATE_DIR_NOT_FOUND: {
|
|
1575
|
-
number: 1712,
|
|
1576
|
-
shouldBeReported: true,
|
|
1577
|
-
messageTemplate: `Unable to find template directory: "{templateDir}"`,
|
|
1578
|
-
websiteTitle: "Visualization template directory not found",
|
|
1579
|
-
websiteDescription: "Visualization template directory not found",
|
|
1580
|
-
},
|
|
1581
|
-
MODULE_NOT_FOUND_AT_PATH: {
|
|
1582
|
-
number: 1713,
|
|
1583
|
-
messageTemplate: `Could not find a module file at the path: "{modulePath}"`,
|
|
1584
|
-
websiteTitle: "Ignition module not found",
|
|
1585
|
-
websiteDescription:
|
|
1586
|
-
"Hardhat Ignition was not able to find an Ignition Module at the given path.",
|
|
1587
|
-
},
|
|
1588
|
-
MODULE_OUTSIDE_MODULE_DIRECTORY: {
|
|
1589
|
-
number: 1714,
|
|
1590
|
-
messageTemplate: `The referenced module file "{modulePath}" is outside the module directory "{shortModulesDirectoryName}"`,
|
|
1591
|
-
websiteTitle: "Ignition module outside of module directory",
|
|
1592
|
-
websiteDescription:
|
|
1593
|
-
"Ignition modules must be located within the module directory.",
|
|
1594
|
-
},
|
|
1595
|
-
VIEM_TEST_HELPER_ERROR: {
|
|
1596
|
-
number: 1715,
|
|
1597
|
-
messageTemplate: `Hardhat Ignition Viem Test Error: {message}`,
|
|
1598
|
-
websiteTitle: "Test error in Hardhat Ignition Viem's test helper",
|
|
1599
|
-
websiteDescription: "Test error in Hardhat Ignition Viem's test helper.",
|
|
1600
|
-
},
|
|
1601
|
-
ARTIFACT_PATH_NOT_FOUND: {
|
|
1602
|
-
number: 1716,
|
|
1603
|
-
messageTemplate: `Artifact path not found for "{contractName}"`,
|
|
1604
|
-
websiteTitle:
|
|
1605
|
-
"Hardhat Ignition unable to find artifact path for the contract name",
|
|
1606
|
-
websiteDescription:
|
|
1607
|
-
"Hardhat Ignition unable to find artifact path for the contract name",
|
|
1608
|
-
},
|
|
1609
|
-
ONLY_ONE_IGNITION_EXTENSION_PLUGIN_ALLOWED: {
|
|
1610
|
-
number: 1717,
|
|
1611
|
-
messageTemplate:
|
|
1612
|
-
"Found ethers and viem, but only one Hardhat Ignition extension plugin can be used at a time",
|
|
1613
|
-
websiteTitle: "Only one Ignition extension plugin allowed",
|
|
1614
|
-
websiteDescription: `Both the ethers and viem Ignition extension plugins were found, but only one can be used at a time.
|
|
2076
|
+
Instead, define a fixture function and refer to that same function in each call to loadFixture.
|
|
1615
2077
|
|
|
1616
|
-
|
|
1617
|
-
|
|
1618
|
-
|
|
1619
|
-
|
|
1620
|
-
|
|
1621
|
-
|
|
1622
|
-
|
|
2078
|
+
Learn more at (https://hardhat.org/hardhat-network-helpers/docs/reference#fixtures)`,
|
|
2079
|
+
websiteTitle: "Anonymous functions cannot be used as fixtures",
|
|
2080
|
+
websiteDescription: "Anonymous functions cannot be used as fixtures",
|
|
2081
|
+
},
|
|
2082
|
+
FIXTURE_SNAPSHOT_ERROR: {
|
|
2083
|
+
number: 60013,
|
|
2084
|
+
messageTemplate: `There was an error reverting the snapshot of the fixture.
|
|
1623
2085
|
|
|
1624
|
-
|
|
2086
|
+
This might be caused by using hardhat_reset and loadFixture calls in a testcase.`,
|
|
2087
|
+
websiteTitle: "Error while reverting snapshot",
|
|
2088
|
+
websiteDescription: "Error while reverting snapshot",
|
|
2089
|
+
},
|
|
2090
|
+
CAN_ONLY_BE_USED_WITH_HARDHAT_NETWORK: {
|
|
2091
|
+
number: 60014,
|
|
2092
|
+
messageTemplate: `This helper can only be used with the Hardhat Network. You are connected to "{networkName}".`,
|
|
2093
|
+
websiteTitle:
|
|
2094
|
+
"Hardhat network helpers can only be used with the Hardhat Network",
|
|
2095
|
+
websiteDescription:
|
|
2096
|
+
"Hardhat network helpers can only be used with the Hardhat Network",
|
|
2097
|
+
},
|
|
2098
|
+
CAN_ONLY_BE_USED_WITH_HARDHAT_NETWORK_VERSIONED: {
|
|
2099
|
+
number: 60015,
|
|
2100
|
+
messageTemplate: `This helper can only be used with the Hardhat Network. You are connected to "{networkName}", whose identifier is "{version}".`,
|
|
2101
|
+
websiteTitle:
|
|
2102
|
+
"Hardhat network helpers can only be used with the Hardhat Network - version info",
|
|
2103
|
+
websiteDescription:
|
|
2104
|
+
"Hardhat network helpers can only be used with the Hardhat Network",
|
|
2105
|
+
},
|
|
1625
2106
|
},
|
|
1626
|
-
|
|
1627
|
-
|
|
1628
|
-
|
|
1629
|
-
|
|
1630
|
-
|
|
1631
|
-
|
|
2107
|
+
},
|
|
2108
|
+
CHAI_MATCHERS: {
|
|
2109
|
+
GENERAL: {
|
|
2110
|
+
UNKNOWN_COMPARISON_OPERATION: {
|
|
2111
|
+
number: 70000,
|
|
2112
|
+
messageTemplate: `Unknown comparison operation "{method}"`,
|
|
2113
|
+
websiteTitle: "Unknown comparison operation",
|
|
2114
|
+
websiteDescription: "Unknown comparison operation",
|
|
2115
|
+
},
|
|
2116
|
+
EXPECTED_STRING_OR_ADDRESSABLE: {
|
|
2117
|
+
number: 70001,
|
|
2118
|
+
messageTemplate: `Expected string or addressable, but got "{account}"`,
|
|
2119
|
+
websiteTitle: "Expected string or addressable",
|
|
2120
|
+
websiteDescription: "Expected string or addressable",
|
|
2121
|
+
},
|
|
2122
|
+
ASSERTION_WITHOUT_ERROR_MESSAGE: {
|
|
2123
|
+
number: 70002,
|
|
2124
|
+
messageTemplate: `Assertion doesn't have an error message. Please open an issue to report this.`,
|
|
2125
|
+
websiteTitle: "Assertion doesn't have an error message",
|
|
2126
|
+
websiteDescription: `Assertion doesn't have an error message. Please open an issue to report this.`,
|
|
2127
|
+
shouldBeReported: true,
|
|
2128
|
+
},
|
|
2129
|
+
MATCHER_CANNOT_BE_CHAINED_AFTER: {
|
|
2130
|
+
number: 70003,
|
|
2131
|
+
messageTemplate: `The matcher "{matcher}" cannot be chained after "{previousMatcher}". For more information, please refer to the documentation at: (https://hardhat.org/chaining-async-matchers).`,
|
|
2132
|
+
websiteTitle: "Matcher cannot be chained after",
|
|
2133
|
+
websiteDescription: `The matcher cannot be chained after another matcher. Please open an issue to report this.`,
|
|
2134
|
+
},
|
|
2135
|
+
DECODING_ERROR: {
|
|
2136
|
+
number: 70004,
|
|
2137
|
+
messageTemplate: `There was an error decoding "{encodedData}" as a "{type}. Reason: {reason}"`,
|
|
2138
|
+
websiteTitle: "Error while decoding data",
|
|
2139
|
+
websiteDescription: `There was an error decoding data`,
|
|
2140
|
+
},
|
|
2141
|
+
EXPECTED_VALID_TRANSACTION_HASH: {
|
|
2142
|
+
number: 70005,
|
|
2143
|
+
messageTemplate: `Expected a valid transaction hash, but got "{hash}"`,
|
|
2144
|
+
websiteTitle: "Expected a valid transaction hash",
|
|
2145
|
+
websiteDescription: `Expected a valid transaction hash`,
|
|
2146
|
+
},
|
|
2147
|
+
EXPECT_STRING_OR_REGEX_AS_REVERT_REASON: {
|
|
2148
|
+
number: 70006,
|
|
2149
|
+
messageTemplate:
|
|
2150
|
+
"Expected the revert reason to be a string or a regular expression",
|
|
2151
|
+
websiteTitle:
|
|
2152
|
+
"Expected the revert reason to be a string or a regular expression",
|
|
2153
|
+
websiteDescription:
|
|
2154
|
+
"Expected the revert reason to be a string or a regular expression",
|
|
2155
|
+
},
|
|
2156
|
+
FIRST_ARGUMENT_MUST_BE_A_CONTRACT: {
|
|
2157
|
+
number: 70007,
|
|
2158
|
+
messageTemplate:
|
|
2159
|
+
"The first argument of .revertedWithCustomError must be the contract that defines the custom error",
|
|
2160
|
+
websiteTitle: "First argument must be a contract",
|
|
2161
|
+
websiteDescription: "First argument must be a contract",
|
|
2162
|
+
},
|
|
2163
|
+
STRING_EXPECTED_AS_CUSTOM_ERROR_NAME: {
|
|
2164
|
+
number: 70008,
|
|
2165
|
+
messageTemplate: "Expected the custom error name to be a string",
|
|
2166
|
+
websiteTitle: "Expected the custom error name to be a string",
|
|
2167
|
+
websiteDescription: "Expected the custom error name to be a string",
|
|
2168
|
+
},
|
|
2169
|
+
CONTRACT_DOES_NOT_HAVE_CUSTOM_ERROR: {
|
|
2170
|
+
number: 70009,
|
|
2171
|
+
messageTemplate: `The given contract doesn't have a custom error named "{customErrorName}"`,
|
|
2172
|
+
websiteTitle:
|
|
2173
|
+
"Contract doesn't have a custom error with the specified name",
|
|
2174
|
+
websiteDescription:
|
|
2175
|
+
"Contract doesn't have a custom error with the specified name",
|
|
2176
|
+
},
|
|
2177
|
+
REVERT_INVALID_ARGUMENTS_LENGTH: {
|
|
2178
|
+
number: 70010,
|
|
2179
|
+
messageTemplate:
|
|
2180
|
+
"The .revertedWithCustomError matcher expects two arguments: the contract and the custom error name. Arguments should be asserted with the .withArgs helper.",
|
|
2181
|
+
websiteTitle:
|
|
2182
|
+
"Invalid arguments length for the .revertedWithCustomError matcher",
|
|
2183
|
+
websiteDescription:
|
|
2184
|
+
"Invalid arguments length for the .revertedWithCustomError matcher",
|
|
2185
|
+
},
|
|
2186
|
+
WITH_ARGS_FORBIDDEN: {
|
|
2187
|
+
number: 70011,
|
|
2188
|
+
messageTemplate:
|
|
2189
|
+
"[.withArgs] should never happen, please submit an issue to the Hardhat repository",
|
|
2190
|
+
websiteTitle:
|
|
2191
|
+
"[.withArgs] should never happen, please submit an issue to the Hardhat repository",
|
|
2192
|
+
websiteDescription:
|
|
2193
|
+
"[.withArgs] should never happen, please submit an issue to the Hardhat repository",
|
|
2194
|
+
},
|
|
2195
|
+
INDEXED_EVENT_FORBIDDEN: {
|
|
2196
|
+
number: 70012,
|
|
2197
|
+
messageTemplate:
|
|
2198
|
+
"Should not get an indexed event when the assertion type is not event. Please open an issue about this.",
|
|
2199
|
+
websiteTitle:
|
|
2200
|
+
"Should not get an indexed event when the assertion type is not event",
|
|
2201
|
+
websiteDescription:
|
|
2202
|
+
"Should not get an indexed event when the assertion type is not event",
|
|
2203
|
+
},
|
|
2204
|
+
PANIC_CODE_EXPECTED: {
|
|
2205
|
+
number: 70013,
|
|
2206
|
+
messageTemplate: `Expected the given panic code to be a number-like value, but got "{panicCode}"`,
|
|
2207
|
+
websiteTitle: "Expected the given panic code to be a number-like value",
|
|
2208
|
+
websiteDescription:
|
|
2209
|
+
"Expected the given panic code to be a number-like value",
|
|
2210
|
+
},
|
|
2211
|
+
ACCOUNTS_NUMBER_DIFFERENT_FROM_BALANCE_CHANGES: {
|
|
2212
|
+
number: 70014,
|
|
2213
|
+
messageTemplate: `The number of accounts ({accounts}) is different than the number of expected balance changes ({balanceChanges})`,
|
|
2214
|
+
websiteTitle:
|
|
2215
|
+
"The number of accounts is different than the number of expected balance changes",
|
|
2216
|
+
websiteDescription:
|
|
2217
|
+
"The number of accounts is different than the number of expected balance changes",
|
|
2218
|
+
},
|
|
2219
|
+
FIRST_ARGUMENT_MUST_BE_A_CONTRACT_INSTANCE: {
|
|
2220
|
+
number: 70015,
|
|
2221
|
+
messageTemplate: `The first argument of "{method}" must be the contract instance of the token`,
|
|
2222
|
+
websiteTitle: "First argument must be a contract instance",
|
|
2223
|
+
websiteDescription: "First argument must be a contract instance",
|
|
2224
|
+
},
|
|
2225
|
+
CONTRACT_IS_NOT_AN_ERC20_TOKEN: {
|
|
2226
|
+
number: 70016,
|
|
2227
|
+
messageTemplate: `The given contract instance is not an ERC20 token`,
|
|
2228
|
+
websiteTitle: "Given contract instance is not an ERC20 token",
|
|
2229
|
+
websiteDescription: "Given contract instance is not an ERC20 token",
|
|
2230
|
+
},
|
|
2231
|
+
INVALID_TRANSACTION: {
|
|
2232
|
+
number: 70017,
|
|
2233
|
+
messageTemplate: '"{transaction}" is not a valid transaction',
|
|
2234
|
+
websiteTitle: "Invalid transaction",
|
|
2235
|
+
websiteDescription: "Invalid transaction",
|
|
2236
|
+
},
|
|
2237
|
+
CONTRACT_TARGET_MUST_BE_A_STRING: {
|
|
2238
|
+
number: 70018,
|
|
2239
|
+
messageTemplate: "The contract target should be a string",
|
|
2240
|
+
websiteTitle: "Contract target must be a string",
|
|
2241
|
+
websiteDescription: "Contract target must be a string",
|
|
2242
|
+
},
|
|
2243
|
+
EMIT_EXPECTS_TWO_ARGUMENTS: {
|
|
2244
|
+
number: 70019,
|
|
2245
|
+
messageTemplate:
|
|
2246
|
+
"The .emit matcher expects two arguments: the contract and the event name. Arguments should be asserted with the .withArgs helper.",
|
|
2247
|
+
websiteTitle: "Invalid arguments length for the .emit matcher",
|
|
2248
|
+
websiteDescription: "Invalid arguments length for the .emit matcher",
|
|
2249
|
+
},
|
|
2250
|
+
CONTRACT_RUNNER_PROVIDER_NOT_NULL: {
|
|
2251
|
+
number: 70020,
|
|
2252
|
+
messageTemplate: "contract.runner.provider shouldn't be null",
|
|
2253
|
+
websiteTitle: "Contract runner's provider shouldn't be null",
|
|
2254
|
+
websiteDescription: "Contract runner's provider shouldn't be null",
|
|
2255
|
+
},
|
|
2256
|
+
WITH_ARGS_CANNOT_BE_COMBINED_WITH_NOT: {
|
|
2257
|
+
number: 70021,
|
|
2258
|
+
messageTemplate: "Do not combine .not. with .withArgs()",
|
|
2259
|
+
websiteTitle: "Do not combine .not. with .withArgs()",
|
|
2260
|
+
websiteDescription: "Do not combine .not. with .withArgs()",
|
|
2261
|
+
},
|
|
2262
|
+
WITH_ARGS_WRONG_COMBINATION: {
|
|
2263
|
+
number: 70022,
|
|
2264
|
+
messageTemplate:
|
|
2265
|
+
"withArgs can only be used in combination with a previous .emit or .revertedWithCustomError assertion",
|
|
2266
|
+
websiteTitle:
|
|
2267
|
+
"withArgs can only be used in combination with a previous .emit or .revertedWithCustomError assertion",
|
|
2268
|
+
websiteDescription:
|
|
2269
|
+
"withArgs can only be used in combination with a previous .emit or .revertedWithCustomError assertion",
|
|
2270
|
+
},
|
|
2271
|
+
WITH_ARGS_COMBINED_WITH_INCOMPATIBLE_ASSERTIONS: {
|
|
2272
|
+
number: 70023,
|
|
2273
|
+
messageTemplate:
|
|
2274
|
+
"withArgs called with both .emit and .revertedWithCustomError, but these assertions cannot be combined",
|
|
2275
|
+
websiteTitle:
|
|
2276
|
+
"withArgs called with both .emit and .revertedWithCustomError, but these assertions cannot be combined",
|
|
2277
|
+
websiteDescription:
|
|
2278
|
+
"withArgs called with both .emit and .revertedWithCustomError, but these assertions cannot be combined",
|
|
2279
|
+
},
|
|
1632
2280
|
},
|
|
1633
2281
|
},
|
|
1634
2282
|
} as const;
|