@avalabs/evm-module 3.3.1 → 3.5.0

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/index.d.ts CHANGED
@@ -17,21 +17,16 @@ declare class EvmModule implements Module {
17
17
  getTransactionHistory(params: GetTransactionHistory): Promise<_avalabs_vm_module_types.TransactionHistoryResponse>;
18
18
  getTokens(network: Network): Promise<_avalabs_vm_module_types.NetworkContractToken[]>;
19
19
  onRpcRequest(request: RpcRequest, network: Network): Promise<{
20
- error: _metamask_rpc_errors.JsonRpcError<_metamask_rpc_errors.OptionalDataWithOptionalCause>;
21
- result?: undefined;
22
- } | {
23
20
  error: _metamask_rpc_errors.JsonRpcError<{
24
21
  cause: unknown;
25
22
  }>;
26
23
  result?: undefined;
24
+ } | {
25
+ error: _metamask_rpc_errors.JsonRpcError<_metamask_rpc_errors.OptionalDataWithOptionalCause>;
26
+ result?: undefined;
27
27
  } | {
28
28
  result: any;
29
29
  error?: undefined;
30
- } | {
31
- error: _metamask_rpc_errors.JsonRpcError<{
32
- originalError: unknown;
33
- }>;
34
- result?: undefined;
35
30
  }>;
36
31
  }
37
32
 
@@ -58,12 +53,12 @@ declare const transactionSchema: z.ZodObject<{
58
53
  }>, "many">>;
59
54
  }, "strip", z.ZodTypeAny, {
60
55
  from: string;
61
- chainId?: string | number | undefined;
62
56
  value?: string | undefined;
57
+ chainId?: string | number | undefined;
63
58
  to?: string | undefined;
64
- gasPrice?: string | undefined;
65
59
  data?: string | undefined;
66
60
  gas?: string | undefined;
61
+ gasPrice?: string | undefined;
67
62
  maxFeePerGas?: string | undefined;
68
63
  maxPriorityFeePerGas?: string | undefined;
69
64
  nonce?: string | undefined;
@@ -73,12 +68,12 @@ declare const transactionSchema: z.ZodObject<{
73
68
  }[] | undefined;
74
69
  }, {
75
70
  from: string;
76
- chainId?: string | number | undefined;
77
71
  value?: string | undefined;
72
+ chainId?: string | number | undefined;
78
73
  to?: string | undefined;
79
- gasPrice?: string | undefined;
80
74
  data?: string | undefined;
81
75
  gas?: string | undefined;
76
+ gasPrice?: string | undefined;
82
77
  maxFeePerGas?: string | undefined;
83
78
  maxPriorityFeePerGas?: string | undefined;
84
79
  nonce?: string | undefined;
@@ -111,12 +106,12 @@ declare const transactionArraySchema: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.Z
111
106
  }>, "many">>;
112
107
  }, "strip", z.ZodTypeAny, {
113
108
  from: string;
114
- chainId?: string | number | undefined;
115
109
  value?: string | undefined;
110
+ chainId?: string | number | undefined;
116
111
  to?: string | undefined;
117
- gasPrice?: string | undefined;
118
112
  data?: string | undefined;
119
113
  gas?: string | undefined;
114
+ gasPrice?: string | undefined;
120
115
  maxFeePerGas?: string | undefined;
121
116
  maxPriorityFeePerGas?: string | undefined;
122
117
  nonce?: string | undefined;
@@ -126,12 +121,12 @@ declare const transactionArraySchema: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.Z
126
121
  }[] | undefined;
127
122
  }, {
128
123
  from: string;
129
- chainId?: string | number | undefined;
130
124
  value?: string | undefined;
125
+ chainId?: string | number | undefined;
131
126
  to?: string | undefined;
132
- gasPrice?: string | undefined;
133
127
  data?: string | undefined;
134
128
  gas?: string | undefined;
129
+ gasPrice?: string | undefined;
135
130
  maxFeePerGas?: string | undefined;
136
131
  maxPriorityFeePerGas?: string | undefined;
137
132
  nonce?: string | undefined;
@@ -162,12 +157,12 @@ declare const transactionArraySchema: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.Z
162
157
  }>, "many">>;
163
158
  }, "strip", z.ZodTypeAny, {
164
159
  from: string;
165
- chainId?: string | number | undefined;
166
160
  value?: string | undefined;
161
+ chainId?: string | number | undefined;
167
162
  to?: string | undefined;
168
- gasPrice?: string | undefined;
169
163
  data?: string | undefined;
170
164
  gas?: string | undefined;
165
+ gasPrice?: string | undefined;
171
166
  maxFeePerGas?: string | undefined;
172
167
  maxPriorityFeePerGas?: string | undefined;
173
168
  nonce?: string | undefined;
@@ -177,12 +172,12 @@ declare const transactionArraySchema: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.Z
177
172
  }[] | undefined;
178
173
  }, {
179
174
  from: string;
180
- chainId?: string | number | undefined;
181
175
  value?: string | undefined;
176
+ chainId?: string | number | undefined;
182
177
  to?: string | undefined;
183
- gasPrice?: string | undefined;
184
178
  data?: string | undefined;
185
179
  gas?: string | undefined;
180
+ gasPrice?: string | undefined;
186
181
  maxFeePerGas?: string | undefined;
187
182
  maxPriorityFeePerGas?: string | undefined;
188
183
  nonce?: string | undefined;
@@ -213,12 +208,12 @@ declare const transactionArraySchema: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.Z
213
208
  }>, "many">>;
214
209
  }, "strip", z.ZodTypeAny, {
215
210
  from: string;
216
- chainId?: string | number | undefined;
217
211
  value?: string | undefined;
212
+ chainId?: string | number | undefined;
218
213
  to?: string | undefined;
219
- gasPrice?: string | undefined;
220
214
  data?: string | undefined;
221
215
  gas?: string | undefined;
216
+ gasPrice?: string | undefined;
222
217
  maxFeePerGas?: string | undefined;
223
218
  maxPriorityFeePerGas?: string | undefined;
224
219
  nonce?: string | undefined;
@@ -228,12 +223,12 @@ declare const transactionArraySchema: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.Z
228
223
  }[] | undefined;
229
224
  }, {
230
225
  from: string;
231
- chainId?: string | number | undefined;
232
226
  value?: string | undefined;
227
+ chainId?: string | number | undefined;
233
228
  to?: string | undefined;
234
- gasPrice?: string | undefined;
235
229
  data?: string | undefined;
236
230
  gas?: string | undefined;
231
+ gasPrice?: string | undefined;
237
232
  maxFeePerGas?: string | undefined;
238
233
  maxPriorityFeePerGas?: string | undefined;
239
234
  nonce?: string | undefined;
@@ -243,12 +238,12 @@ declare const transactionArraySchema: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.Z
243
238
  }[] | undefined;
244
239
  }>>, [{
245
240
  from: string;
246
- chainId?: string | number | undefined;
247
241
  value?: string | undefined;
242
+ chainId?: string | number | undefined;
248
243
  to?: string | undefined;
249
- gasPrice?: string | undefined;
250
244
  data?: string | undefined;
251
245
  gas?: string | undefined;
246
+ gasPrice?: string | undefined;
252
247
  maxFeePerGas?: string | undefined;
253
248
  maxPriorityFeePerGas?: string | undefined;
254
249
  nonce?: string | undefined;
@@ -258,12 +253,12 @@ declare const transactionArraySchema: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.Z
258
253
  }[] | undefined;
259
254
  }, {
260
255
  from: string;
261
- chainId?: string | number | undefined;
262
256
  value?: string | undefined;
257
+ chainId?: string | number | undefined;
263
258
  to?: string | undefined;
264
- gasPrice?: string | undefined;
265
259
  data?: string | undefined;
266
260
  gas?: string | undefined;
261
+ gasPrice?: string | undefined;
267
262
  maxFeePerGas?: string | undefined;
268
263
  maxPriorityFeePerGas?: string | undefined;
269
264
  nonce?: string | undefined;
@@ -273,12 +268,12 @@ declare const transactionArraySchema: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.Z
273
268
  }[] | undefined;
274
269
  }, ...{
275
270
  from: string;
276
- chainId?: string | number | undefined;
277
271
  value?: string | undefined;
272
+ chainId?: string | number | undefined;
278
273
  to?: string | undefined;
279
- gasPrice?: string | undefined;
280
274
  data?: string | undefined;
281
275
  gas?: string | undefined;
276
+ gasPrice?: string | undefined;
282
277
  maxFeePerGas?: string | undefined;
283
278
  maxPriorityFeePerGas?: string | undefined;
284
279
  nonce?: string | undefined;
@@ -288,12 +283,12 @@ declare const transactionArraySchema: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.Z
288
283
  }[] | undefined;
289
284
  }[]], [{
290
285
  from: string;
291
- chainId?: string | number | undefined;
292
286
  value?: string | undefined;
287
+ chainId?: string | number | undefined;
293
288
  to?: string | undefined;
294
- gasPrice?: string | undefined;
295
289
  data?: string | undefined;
296
290
  gas?: string | undefined;
291
+ gasPrice?: string | undefined;
297
292
  maxFeePerGas?: string | undefined;
298
293
  maxPriorityFeePerGas?: string | undefined;
299
294
  nonce?: string | undefined;
@@ -303,12 +298,12 @@ declare const transactionArraySchema: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.Z
303
298
  }[] | undefined;
304
299
  }, {
305
300
  from: string;
306
- chainId?: string | number | undefined;
307
301
  value?: string | undefined;
302
+ chainId?: string | number | undefined;
308
303
  to?: string | undefined;
309
- gasPrice?: string | undefined;
310
304
  data?: string | undefined;
311
305
  gas?: string | undefined;
306
+ gasPrice?: string | undefined;
312
307
  maxFeePerGas?: string | undefined;
313
308
  maxPriorityFeePerGas?: string | undefined;
314
309
  nonce?: string | undefined;
@@ -318,12 +313,12 @@ declare const transactionArraySchema: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.Z
318
313
  }[] | undefined;
319
314
  }, ...{
320
315
  from: string;
321
- chainId?: string | number | undefined;
322
316
  value?: string | undefined;
317
+ chainId?: string | number | undefined;
323
318
  to?: string | undefined;
324
- gasPrice?: string | undefined;
325
319
  data?: string | undefined;
326
320
  gas?: string | undefined;
321
+ gasPrice?: string | undefined;
327
322
  maxFeePerGas?: string | undefined;
328
323
  maxPriorityFeePerGas?: string | undefined;
329
324
  nonce?: string | undefined;
@@ -333,12 +328,12 @@ declare const transactionArraySchema: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.Z
333
328
  }[] | undefined;
334
329
  }[]]>, [{
335
330
  from: string;
336
- chainId?: string | number | undefined;
337
331
  value?: string | undefined;
332
+ chainId?: string | number | undefined;
338
333
  to?: string | undefined;
339
- gasPrice?: string | undefined;
340
334
  data?: string | undefined;
341
335
  gas?: string | undefined;
336
+ gasPrice?: string | undefined;
342
337
  maxFeePerGas?: string | undefined;
343
338
  maxPriorityFeePerGas?: string | undefined;
344
339
  nonce?: string | undefined;
@@ -348,12 +343,12 @@ declare const transactionArraySchema: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.Z
348
343
  }[] | undefined;
349
344
  }, {
350
345
  from: string;
351
- chainId?: string | number | undefined;
352
346
  value?: string | undefined;
347
+ chainId?: string | number | undefined;
353
348
  to?: string | undefined;
354
- gasPrice?: string | undefined;
355
349
  data?: string | undefined;
356
350
  gas?: string | undefined;
351
+ gasPrice?: string | undefined;
357
352
  maxFeePerGas?: string | undefined;
358
353
  maxPriorityFeePerGas?: string | undefined;
359
354
  nonce?: string | undefined;
@@ -363,12 +358,12 @@ declare const transactionArraySchema: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.Z
363
358
  }[] | undefined;
364
359
  }, ...{
365
360
  from: string;
366
- chainId?: string | number | undefined;
367
361
  value?: string | undefined;
362
+ chainId?: string | number | undefined;
368
363
  to?: string | undefined;
369
- gasPrice?: string | undefined;
370
364
  data?: string | undefined;
371
365
  gas?: string | undefined;
366
+ gasPrice?: string | undefined;
372
367
  maxFeePerGas?: string | undefined;
373
368
  maxPriorityFeePerGas?: string | undefined;
374
369
  nonce?: string | undefined;
@@ -378,12 +373,12 @@ declare const transactionArraySchema: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.Z
378
373
  }[] | undefined;
379
374
  }[]], [{
380
375
  from: string;
381
- chainId?: string | number | undefined;
382
376
  value?: string | undefined;
377
+ chainId?: string | number | undefined;
383
378
  to?: string | undefined;
384
- gasPrice?: string | undefined;
385
379
  data?: string | undefined;
386
380
  gas?: string | undefined;
381
+ gasPrice?: string | undefined;
387
382
  maxFeePerGas?: string | undefined;
388
383
  maxPriorityFeePerGas?: string | undefined;
389
384
  nonce?: string | undefined;
@@ -393,12 +388,12 @@ declare const transactionArraySchema: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.Z
393
388
  }[] | undefined;
394
389
  }, {
395
390
  from: string;
396
- chainId?: string | number | undefined;
397
391
  value?: string | undefined;
392
+ chainId?: string | number | undefined;
398
393
  to?: string | undefined;
399
- gasPrice?: string | undefined;
400
394
  data?: string | undefined;
401
395
  gas?: string | undefined;
396
+ gasPrice?: string | undefined;
402
397
  maxFeePerGas?: string | undefined;
403
398
  maxPriorityFeePerGas?: string | undefined;
404
399
  nonce?: string | undefined;
@@ -408,12 +403,12 @@ declare const transactionArraySchema: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.Z
408
403
  }[] | undefined;
409
404
  }, ...{
410
405
  from: string;
411
- chainId?: string | number | undefined;
412
406
  value?: string | undefined;
407
+ chainId?: string | number | undefined;
413
408
  to?: string | undefined;
414
- gasPrice?: string | undefined;
415
409
  data?: string | undefined;
416
410
  gas?: string | undefined;
411
+ gasPrice?: string | undefined;
417
412
  maxFeePerGas?: string | undefined;
418
413
  maxPriorityFeePerGas?: string | undefined;
419
414
  nonce?: string | undefined;
@@ -423,12 +418,12 @@ declare const transactionArraySchema: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.Z
423
418
  }[] | undefined;
424
419
  }[]]>, [{
425
420
  from: string;
426
- chainId?: string | number | undefined;
427
421
  value?: string | undefined;
422
+ chainId?: string | number | undefined;
428
423
  to?: string | undefined;
429
- gasPrice?: string | undefined;
430
424
  data?: string | undefined;
431
425
  gas?: string | undefined;
426
+ gasPrice?: string | undefined;
432
427
  maxFeePerGas?: string | undefined;
433
428
  maxPriorityFeePerGas?: string | undefined;
434
429
  nonce?: string | undefined;
@@ -438,12 +433,12 @@ declare const transactionArraySchema: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.Z
438
433
  }[] | undefined;
439
434
  }, {
440
435
  from: string;
441
- chainId?: string | number | undefined;
442
436
  value?: string | undefined;
437
+ chainId?: string | number | undefined;
443
438
  to?: string | undefined;
444
- gasPrice?: string | undefined;
445
439
  data?: string | undefined;
446
440
  gas?: string | undefined;
441
+ gasPrice?: string | undefined;
447
442
  maxFeePerGas?: string | undefined;
448
443
  maxPriorityFeePerGas?: string | undefined;
449
444
  nonce?: string | undefined;
@@ -453,12 +448,12 @@ declare const transactionArraySchema: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.Z
453
448
  }[] | undefined;
454
449
  }, ...{
455
450
  from: string;
456
- chainId?: string | number | undefined;
457
451
  value?: string | undefined;
452
+ chainId?: string | number | undefined;
458
453
  to?: string | undefined;
459
- gasPrice?: string | undefined;
460
454
  data?: string | undefined;
461
455
  gas?: string | undefined;
456
+ gasPrice?: string | undefined;
462
457
  maxFeePerGas?: string | undefined;
463
458
  maxPriorityFeePerGas?: string | undefined;
464
459
  nonce?: string | undefined;
@@ -468,12 +463,12 @@ declare const transactionArraySchema: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.Z
468
463
  }[] | undefined;
469
464
  }[]], [{
470
465
  from: string;
471
- chainId?: string | number | undefined;
472
466
  value?: string | undefined;
467
+ chainId?: string | number | undefined;
473
468
  to?: string | undefined;
474
- gasPrice?: string | undefined;
475
469
  data?: string | undefined;
476
470
  gas?: string | undefined;
471
+ gasPrice?: string | undefined;
477
472
  maxFeePerGas?: string | undefined;
478
473
  maxPriorityFeePerGas?: string | undefined;
479
474
  nonce?: string | undefined;
@@ -483,12 +478,12 @@ declare const transactionArraySchema: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.Z
483
478
  }[] | undefined;
484
479
  }, {
485
480
  from: string;
486
- chainId?: string | number | undefined;
487
481
  value?: string | undefined;
482
+ chainId?: string | number | undefined;
488
483
  to?: string | undefined;
489
- gasPrice?: string | undefined;
490
484
  data?: string | undefined;
491
485
  gas?: string | undefined;
486
+ gasPrice?: string | undefined;
492
487
  maxFeePerGas?: string | undefined;
493
488
  maxPriorityFeePerGas?: string | undefined;
494
489
  nonce?: string | undefined;
@@ -498,12 +493,12 @@ declare const transactionArraySchema: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.Z
498
493
  }[] | undefined;
499
494
  }, ...{
500
495
  from: string;
501
- chainId?: string | number | undefined;
502
496
  value?: string | undefined;
497
+ chainId?: string | number | undefined;
503
498
  to?: string | undefined;
504
- gasPrice?: string | undefined;
505
499
  data?: string | undefined;
506
500
  gas?: string | undefined;
501
+ gasPrice?: string | undefined;
507
502
  maxFeePerGas?: string | undefined;
508
503
  maxPriorityFeePerGas?: string | undefined;
509
504
  nonce?: string | undefined;