@avalabs/evm-module 3.9.2 → 3.9.4

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.cts CHANGED
@@ -1,4 +1,3 @@
1
- import * as _metamask_rpc_errors from '@metamask/rpc-errors';
2
1
  import * as _avalabs_vm_module_types from '@avalabs/vm-module-types';
3
2
  import { Module, ConstructorParams, Network, GetAddressParams, GetAddressResponse, BuildDerivationPathParams, DeriveAddressParams, DeriveAddressResponse, DeriveAddressesParams, DeriveAddressesResponse, GetBalancesParams, GetBalancesResponse, Manifest, NetworkFeeParam, NetworkFees, GetTransactionHistory, RpcRequest, TransactionType, TypedDataV1, TypedData, MessageTypes, Error } from '@avalabs/vm-module-types';
4
3
  import { JsonRpcBatchInternal } from '@avalabs/core-wallets-sdk';
@@ -18,16 +17,11 @@ declare class EvmModule implements Module {
18
17
  getTransactionHistory(params: GetTransactionHistory): Promise<_avalabs_vm_module_types.TransactionHistoryResponse>;
19
18
  getTokens(network: Network): Promise<_avalabs_vm_module_types.NetworkContractToken[]>;
20
19
  onRpcRequest(request: RpcRequest, network: Network): Promise<{
21
- error: _metamask_rpc_errors.JsonRpcError<{
22
- cause: unknown;
23
- }>;
24
- result?: undefined;
25
- } | {
26
- error: _metamask_rpc_errors.JsonRpcError<_metamask_rpc_errors.OptionalDataWithOptionalCause>;
27
- result?: undefined;
28
- } | {
29
20
  result: any;
30
21
  error?: undefined;
22
+ } | {
23
+ error: any;
24
+ result?: undefined;
31
25
  }>;
32
26
  }
33
27
 
@@ -56,8 +50,8 @@ declare const transactionSchema: z.ZodObject<{
56
50
  from: string;
57
51
  value?: string | undefined;
58
52
  chainId?: string | number | undefined;
59
- to?: string | undefined;
60
53
  data?: string | undefined;
54
+ to?: string | undefined;
61
55
  gas?: string | undefined;
62
56
  gasPrice?: string | undefined;
63
57
  maxFeePerGas?: string | undefined;
@@ -71,8 +65,8 @@ declare const transactionSchema: z.ZodObject<{
71
65
  from: string;
72
66
  value?: string | undefined;
73
67
  chainId?: string | number | undefined;
74
- to?: string | undefined;
75
68
  data?: string | undefined;
69
+ to?: string | undefined;
76
70
  gas?: string | undefined;
77
71
  gasPrice?: string | undefined;
78
72
  maxFeePerGas?: string | undefined;
@@ -109,8 +103,8 @@ declare const transactionArraySchema: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.Z
109
103
  from: string;
110
104
  value?: string | undefined;
111
105
  chainId?: string | number | undefined;
112
- to?: string | undefined;
113
106
  data?: string | undefined;
107
+ to?: string | undefined;
114
108
  gas?: string | undefined;
115
109
  gasPrice?: string | undefined;
116
110
  maxFeePerGas?: string | undefined;
@@ -124,8 +118,8 @@ declare const transactionArraySchema: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.Z
124
118
  from: string;
125
119
  value?: string | undefined;
126
120
  chainId?: string | number | undefined;
127
- to?: string | undefined;
128
121
  data?: string | undefined;
122
+ to?: string | undefined;
129
123
  gas?: string | undefined;
130
124
  gasPrice?: string | undefined;
131
125
  maxFeePerGas?: string | undefined;
@@ -160,8 +154,8 @@ declare const transactionArraySchema: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.Z
160
154
  from: string;
161
155
  value?: string | undefined;
162
156
  chainId?: string | number | undefined;
163
- to?: string | undefined;
164
157
  data?: string | undefined;
158
+ to?: string | undefined;
165
159
  gas?: string | undefined;
166
160
  gasPrice?: string | undefined;
167
161
  maxFeePerGas?: string | undefined;
@@ -175,8 +169,8 @@ declare const transactionArraySchema: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.Z
175
169
  from: string;
176
170
  value?: string | undefined;
177
171
  chainId?: string | number | undefined;
178
- to?: string | undefined;
179
172
  data?: string | undefined;
173
+ to?: string | undefined;
180
174
  gas?: string | undefined;
181
175
  gasPrice?: string | undefined;
182
176
  maxFeePerGas?: string | undefined;
@@ -211,8 +205,8 @@ declare const transactionArraySchema: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.Z
211
205
  from: string;
212
206
  value?: string | undefined;
213
207
  chainId?: string | number | undefined;
214
- to?: string | undefined;
215
208
  data?: string | undefined;
209
+ to?: string | undefined;
216
210
  gas?: string | undefined;
217
211
  gasPrice?: string | undefined;
218
212
  maxFeePerGas?: string | undefined;
@@ -226,8 +220,8 @@ declare const transactionArraySchema: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.Z
226
220
  from: string;
227
221
  value?: string | undefined;
228
222
  chainId?: string | number | undefined;
229
- to?: string | undefined;
230
223
  data?: string | undefined;
224
+ to?: string | undefined;
231
225
  gas?: string | undefined;
232
226
  gasPrice?: string | undefined;
233
227
  maxFeePerGas?: string | undefined;
@@ -241,8 +235,8 @@ declare const transactionArraySchema: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.Z
241
235
  from: string;
242
236
  value?: string | undefined;
243
237
  chainId?: string | number | undefined;
244
- to?: string | undefined;
245
238
  data?: string | undefined;
239
+ to?: string | undefined;
246
240
  gas?: string | undefined;
247
241
  gasPrice?: string | undefined;
248
242
  maxFeePerGas?: string | undefined;
@@ -256,8 +250,8 @@ declare const transactionArraySchema: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.Z
256
250
  from: string;
257
251
  value?: string | undefined;
258
252
  chainId?: string | number | undefined;
259
- to?: string | undefined;
260
253
  data?: string | undefined;
254
+ to?: string | undefined;
261
255
  gas?: string | undefined;
262
256
  gasPrice?: string | undefined;
263
257
  maxFeePerGas?: string | undefined;
@@ -271,8 +265,8 @@ declare const transactionArraySchema: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.Z
271
265
  from: string;
272
266
  value?: string | undefined;
273
267
  chainId?: string | number | undefined;
274
- to?: string | undefined;
275
268
  data?: string | undefined;
269
+ to?: string | undefined;
276
270
  gas?: string | undefined;
277
271
  gasPrice?: string | undefined;
278
272
  maxFeePerGas?: string | undefined;
@@ -286,8 +280,8 @@ declare const transactionArraySchema: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.Z
286
280
  from: string;
287
281
  value?: string | undefined;
288
282
  chainId?: string | number | undefined;
289
- to?: string | undefined;
290
283
  data?: string | undefined;
284
+ to?: string | undefined;
291
285
  gas?: string | undefined;
292
286
  gasPrice?: string | undefined;
293
287
  maxFeePerGas?: string | undefined;
@@ -301,8 +295,8 @@ declare const transactionArraySchema: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.Z
301
295
  from: string;
302
296
  value?: string | undefined;
303
297
  chainId?: string | number | undefined;
304
- to?: string | undefined;
305
298
  data?: string | undefined;
299
+ to?: string | undefined;
306
300
  gas?: string | undefined;
307
301
  gasPrice?: string | undefined;
308
302
  maxFeePerGas?: string | undefined;
@@ -316,8 +310,8 @@ declare const transactionArraySchema: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.Z
316
310
  from: string;
317
311
  value?: string | undefined;
318
312
  chainId?: string | number | undefined;
319
- to?: string | undefined;
320
313
  data?: string | undefined;
314
+ to?: string | undefined;
321
315
  gas?: string | undefined;
322
316
  gasPrice?: string | undefined;
323
317
  maxFeePerGas?: string | undefined;
@@ -331,8 +325,8 @@ declare const transactionArraySchema: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.Z
331
325
  from: string;
332
326
  value?: string | undefined;
333
327
  chainId?: string | number | undefined;
334
- to?: string | undefined;
335
328
  data?: string | undefined;
329
+ to?: string | undefined;
336
330
  gas?: string | undefined;
337
331
  gasPrice?: string | undefined;
338
332
  maxFeePerGas?: string | undefined;
@@ -346,8 +340,8 @@ declare const transactionArraySchema: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.Z
346
340
  from: string;
347
341
  value?: string | undefined;
348
342
  chainId?: string | number | undefined;
349
- to?: string | undefined;
350
343
  data?: string | undefined;
344
+ to?: string | undefined;
351
345
  gas?: string | undefined;
352
346
  gasPrice?: string | undefined;
353
347
  maxFeePerGas?: string | undefined;
@@ -361,8 +355,8 @@ declare const transactionArraySchema: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.Z
361
355
  from: string;
362
356
  value?: string | undefined;
363
357
  chainId?: string | number | undefined;
364
- to?: string | undefined;
365
358
  data?: string | undefined;
359
+ to?: string | undefined;
366
360
  gas?: string | undefined;
367
361
  gasPrice?: string | undefined;
368
362
  maxFeePerGas?: string | undefined;
@@ -376,8 +370,8 @@ declare const transactionArraySchema: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.Z
376
370
  from: string;
377
371
  value?: string | undefined;
378
372
  chainId?: string | number | undefined;
379
- to?: string | undefined;
380
373
  data?: string | undefined;
374
+ to?: string | undefined;
381
375
  gas?: string | undefined;
382
376
  gasPrice?: string | undefined;
383
377
  maxFeePerGas?: string | undefined;
@@ -391,8 +385,8 @@ declare const transactionArraySchema: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.Z
391
385
  from: string;
392
386
  value?: string | undefined;
393
387
  chainId?: string | number | undefined;
394
- to?: string | undefined;
395
388
  data?: string | undefined;
389
+ to?: string | undefined;
396
390
  gas?: string | undefined;
397
391
  gasPrice?: string | undefined;
398
392
  maxFeePerGas?: string | undefined;
@@ -406,8 +400,8 @@ declare const transactionArraySchema: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.Z
406
400
  from: string;
407
401
  value?: string | undefined;
408
402
  chainId?: string | number | undefined;
409
- to?: string | undefined;
410
403
  data?: string | undefined;
404
+ to?: string | undefined;
411
405
  gas?: string | undefined;
412
406
  gasPrice?: string | undefined;
413
407
  maxFeePerGas?: string | undefined;
@@ -421,8 +415,8 @@ declare const transactionArraySchema: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.Z
421
415
  from: string;
422
416
  value?: string | undefined;
423
417
  chainId?: string | number | undefined;
424
- to?: string | undefined;
425
418
  data?: string | undefined;
419
+ to?: string | undefined;
426
420
  gas?: string | undefined;
427
421
  gasPrice?: string | undefined;
428
422
  maxFeePerGas?: string | undefined;
@@ -436,8 +430,8 @@ declare const transactionArraySchema: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.Z
436
430
  from: string;
437
431
  value?: string | undefined;
438
432
  chainId?: string | number | undefined;
439
- to?: string | undefined;
440
433
  data?: string | undefined;
434
+ to?: string | undefined;
441
435
  gas?: string | undefined;
442
436
  gasPrice?: string | undefined;
443
437
  maxFeePerGas?: string | undefined;
@@ -451,8 +445,8 @@ declare const transactionArraySchema: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.Z
451
445
  from: string;
452
446
  value?: string | undefined;
453
447
  chainId?: string | number | undefined;
454
- to?: string | undefined;
455
448
  data?: string | undefined;
449
+ to?: string | undefined;
456
450
  gas?: string | undefined;
457
451
  gasPrice?: string | undefined;
458
452
  maxFeePerGas?: string | undefined;
@@ -466,8 +460,8 @@ declare const transactionArraySchema: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.Z
466
460
  from: string;
467
461
  value?: string | undefined;
468
462
  chainId?: string | number | undefined;
469
- to?: string | undefined;
470
463
  data?: string | undefined;
464
+ to?: string | undefined;
471
465
  gas?: string | undefined;
472
466
  gasPrice?: string | undefined;
473
467
  maxFeePerGas?: string | undefined;
@@ -481,8 +475,8 @@ declare const transactionArraySchema: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.Z
481
475
  from: string;
482
476
  value?: string | undefined;
483
477
  chainId?: string | number | undefined;
484
- to?: string | undefined;
485
478
  data?: string | undefined;
479
+ to?: string | undefined;
486
480
  gas?: string | undefined;
487
481
  gasPrice?: string | undefined;
488
482
  maxFeePerGas?: string | undefined;
@@ -496,8 +490,8 @@ declare const transactionArraySchema: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.Z
496
490
  from: string;
497
491
  value?: string | undefined;
498
492
  chainId?: string | number | undefined;
499
- to?: string | undefined;
500
493
  data?: string | undefined;
494
+ to?: string | undefined;
501
495
  gas?: string | undefined;
502
496
  gasPrice?: string | undefined;
503
497
  maxFeePerGas?: string | undefined;
@@ -521,6 +515,11 @@ declare enum ERC20TransactionType {
521
515
  APPROVE = "approve",
522
516
  ALLOWANCE = "allowance"
523
517
  }
518
+ declare enum TransactionKind {
519
+ NATIVE_TRANSFER = "native_transfer",
520
+ ERC20_TRANSFER = "erc20_transfer",
521
+ CONTRACT_CALL = "contract_call"
522
+ }
524
523
 
525
524
  declare const isTypedDataV1: (data: unknown) => data is TypedDataV1;
526
525
  declare const isTypedData: (data: unknown) => data is TypedData<MessageTypes>;
@@ -558,4 +557,4 @@ declare function addIdToPromise<T>(promise: Promise<T>, id: string): Promise<IdP
558
557
  */
559
558
  declare function settleAllIdPromises<T>(promises: Promise<IdPromise<T>>[]): Promise<Record<Id, T | Error>>;
560
559
 
561
- export { ERC20TransactionType, EvmModule, IdPromise, NonContractCallTypes, RequiredBy, TransactionBatchParams, TransactionParams, addIdToPromise, isTypedData, isTypedDataV1, settleAllIdPromises };
560
+ export { ERC20TransactionType, EvmModule, IdPromise, NonContractCallTypes, RequiredBy, TransactionBatchParams, TransactionKind, TransactionParams, addIdToPromise, isTypedData, isTypedDataV1, settleAllIdPromises };
package/dist/index.d.ts CHANGED
@@ -1,4 +1,3 @@
1
- import * as _metamask_rpc_errors from '@metamask/rpc-errors';
2
1
  import * as _avalabs_vm_module_types from '@avalabs/vm-module-types';
3
2
  import { Module, ConstructorParams, Network, GetAddressParams, GetAddressResponse, BuildDerivationPathParams, DeriveAddressParams, DeriveAddressResponse, DeriveAddressesParams, DeriveAddressesResponse, GetBalancesParams, GetBalancesResponse, Manifest, NetworkFeeParam, NetworkFees, GetTransactionHistory, RpcRequest, TransactionType, TypedDataV1, TypedData, MessageTypes, Error } from '@avalabs/vm-module-types';
4
3
  import { JsonRpcBatchInternal } from '@avalabs/core-wallets-sdk';
@@ -18,16 +17,11 @@ declare class EvmModule implements Module {
18
17
  getTransactionHistory(params: GetTransactionHistory): Promise<_avalabs_vm_module_types.TransactionHistoryResponse>;
19
18
  getTokens(network: Network): Promise<_avalabs_vm_module_types.NetworkContractToken[]>;
20
19
  onRpcRequest(request: RpcRequest, network: Network): Promise<{
21
- error: _metamask_rpc_errors.JsonRpcError<{
22
- cause: unknown;
23
- }>;
24
- result?: undefined;
25
- } | {
26
- error: _metamask_rpc_errors.JsonRpcError<_metamask_rpc_errors.OptionalDataWithOptionalCause>;
27
- result?: undefined;
28
- } | {
29
20
  result: any;
30
21
  error?: undefined;
22
+ } | {
23
+ error: any;
24
+ result?: undefined;
31
25
  }>;
32
26
  }
33
27
 
@@ -56,8 +50,8 @@ declare const transactionSchema: z.ZodObject<{
56
50
  from: string;
57
51
  value?: string | undefined;
58
52
  chainId?: string | number | undefined;
59
- to?: string | undefined;
60
53
  data?: string | undefined;
54
+ to?: string | undefined;
61
55
  gas?: string | undefined;
62
56
  gasPrice?: string | undefined;
63
57
  maxFeePerGas?: string | undefined;
@@ -71,8 +65,8 @@ declare const transactionSchema: z.ZodObject<{
71
65
  from: string;
72
66
  value?: string | undefined;
73
67
  chainId?: string | number | undefined;
74
- to?: string | undefined;
75
68
  data?: string | undefined;
69
+ to?: string | undefined;
76
70
  gas?: string | undefined;
77
71
  gasPrice?: string | undefined;
78
72
  maxFeePerGas?: string | undefined;
@@ -109,8 +103,8 @@ declare const transactionArraySchema: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.Z
109
103
  from: string;
110
104
  value?: string | undefined;
111
105
  chainId?: string | number | undefined;
112
- to?: string | undefined;
113
106
  data?: string | undefined;
107
+ to?: string | undefined;
114
108
  gas?: string | undefined;
115
109
  gasPrice?: string | undefined;
116
110
  maxFeePerGas?: string | undefined;
@@ -124,8 +118,8 @@ declare const transactionArraySchema: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.Z
124
118
  from: string;
125
119
  value?: string | undefined;
126
120
  chainId?: string | number | undefined;
127
- to?: string | undefined;
128
121
  data?: string | undefined;
122
+ to?: string | undefined;
129
123
  gas?: string | undefined;
130
124
  gasPrice?: string | undefined;
131
125
  maxFeePerGas?: string | undefined;
@@ -160,8 +154,8 @@ declare const transactionArraySchema: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.Z
160
154
  from: string;
161
155
  value?: string | undefined;
162
156
  chainId?: string | number | undefined;
163
- to?: string | undefined;
164
157
  data?: string | undefined;
158
+ to?: string | undefined;
165
159
  gas?: string | undefined;
166
160
  gasPrice?: string | undefined;
167
161
  maxFeePerGas?: string | undefined;
@@ -175,8 +169,8 @@ declare const transactionArraySchema: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.Z
175
169
  from: string;
176
170
  value?: string | undefined;
177
171
  chainId?: string | number | undefined;
178
- to?: string | undefined;
179
172
  data?: string | undefined;
173
+ to?: string | undefined;
180
174
  gas?: string | undefined;
181
175
  gasPrice?: string | undefined;
182
176
  maxFeePerGas?: string | undefined;
@@ -211,8 +205,8 @@ declare const transactionArraySchema: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.Z
211
205
  from: string;
212
206
  value?: string | undefined;
213
207
  chainId?: string | number | undefined;
214
- to?: string | undefined;
215
208
  data?: string | undefined;
209
+ to?: string | undefined;
216
210
  gas?: string | undefined;
217
211
  gasPrice?: string | undefined;
218
212
  maxFeePerGas?: string | undefined;
@@ -226,8 +220,8 @@ declare const transactionArraySchema: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.Z
226
220
  from: string;
227
221
  value?: string | undefined;
228
222
  chainId?: string | number | undefined;
229
- to?: string | undefined;
230
223
  data?: string | undefined;
224
+ to?: string | undefined;
231
225
  gas?: string | undefined;
232
226
  gasPrice?: string | undefined;
233
227
  maxFeePerGas?: string | undefined;
@@ -241,8 +235,8 @@ declare const transactionArraySchema: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.Z
241
235
  from: string;
242
236
  value?: string | undefined;
243
237
  chainId?: string | number | undefined;
244
- to?: string | undefined;
245
238
  data?: string | undefined;
239
+ to?: string | undefined;
246
240
  gas?: string | undefined;
247
241
  gasPrice?: string | undefined;
248
242
  maxFeePerGas?: string | undefined;
@@ -256,8 +250,8 @@ declare const transactionArraySchema: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.Z
256
250
  from: string;
257
251
  value?: string | undefined;
258
252
  chainId?: string | number | undefined;
259
- to?: string | undefined;
260
253
  data?: string | undefined;
254
+ to?: string | undefined;
261
255
  gas?: string | undefined;
262
256
  gasPrice?: string | undefined;
263
257
  maxFeePerGas?: string | undefined;
@@ -271,8 +265,8 @@ declare const transactionArraySchema: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.Z
271
265
  from: string;
272
266
  value?: string | undefined;
273
267
  chainId?: string | number | undefined;
274
- to?: string | undefined;
275
268
  data?: string | undefined;
269
+ to?: string | undefined;
276
270
  gas?: string | undefined;
277
271
  gasPrice?: string | undefined;
278
272
  maxFeePerGas?: string | undefined;
@@ -286,8 +280,8 @@ declare const transactionArraySchema: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.Z
286
280
  from: string;
287
281
  value?: string | undefined;
288
282
  chainId?: string | number | undefined;
289
- to?: string | undefined;
290
283
  data?: string | undefined;
284
+ to?: string | undefined;
291
285
  gas?: string | undefined;
292
286
  gasPrice?: string | undefined;
293
287
  maxFeePerGas?: string | undefined;
@@ -301,8 +295,8 @@ declare const transactionArraySchema: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.Z
301
295
  from: string;
302
296
  value?: string | undefined;
303
297
  chainId?: string | number | undefined;
304
- to?: string | undefined;
305
298
  data?: string | undefined;
299
+ to?: string | undefined;
306
300
  gas?: string | undefined;
307
301
  gasPrice?: string | undefined;
308
302
  maxFeePerGas?: string | undefined;
@@ -316,8 +310,8 @@ declare const transactionArraySchema: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.Z
316
310
  from: string;
317
311
  value?: string | undefined;
318
312
  chainId?: string | number | undefined;
319
- to?: string | undefined;
320
313
  data?: string | undefined;
314
+ to?: string | undefined;
321
315
  gas?: string | undefined;
322
316
  gasPrice?: string | undefined;
323
317
  maxFeePerGas?: string | undefined;
@@ -331,8 +325,8 @@ declare const transactionArraySchema: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.Z
331
325
  from: string;
332
326
  value?: string | undefined;
333
327
  chainId?: string | number | undefined;
334
- to?: string | undefined;
335
328
  data?: string | undefined;
329
+ to?: string | undefined;
336
330
  gas?: string | undefined;
337
331
  gasPrice?: string | undefined;
338
332
  maxFeePerGas?: string | undefined;
@@ -346,8 +340,8 @@ declare const transactionArraySchema: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.Z
346
340
  from: string;
347
341
  value?: string | undefined;
348
342
  chainId?: string | number | undefined;
349
- to?: string | undefined;
350
343
  data?: string | undefined;
344
+ to?: string | undefined;
351
345
  gas?: string | undefined;
352
346
  gasPrice?: string | undefined;
353
347
  maxFeePerGas?: string | undefined;
@@ -361,8 +355,8 @@ declare const transactionArraySchema: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.Z
361
355
  from: string;
362
356
  value?: string | undefined;
363
357
  chainId?: string | number | undefined;
364
- to?: string | undefined;
365
358
  data?: string | undefined;
359
+ to?: string | undefined;
366
360
  gas?: string | undefined;
367
361
  gasPrice?: string | undefined;
368
362
  maxFeePerGas?: string | undefined;
@@ -376,8 +370,8 @@ declare const transactionArraySchema: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.Z
376
370
  from: string;
377
371
  value?: string | undefined;
378
372
  chainId?: string | number | undefined;
379
- to?: string | undefined;
380
373
  data?: string | undefined;
374
+ to?: string | undefined;
381
375
  gas?: string | undefined;
382
376
  gasPrice?: string | undefined;
383
377
  maxFeePerGas?: string | undefined;
@@ -391,8 +385,8 @@ declare const transactionArraySchema: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.Z
391
385
  from: string;
392
386
  value?: string | undefined;
393
387
  chainId?: string | number | undefined;
394
- to?: string | undefined;
395
388
  data?: string | undefined;
389
+ to?: string | undefined;
396
390
  gas?: string | undefined;
397
391
  gasPrice?: string | undefined;
398
392
  maxFeePerGas?: string | undefined;
@@ -406,8 +400,8 @@ declare const transactionArraySchema: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.Z
406
400
  from: string;
407
401
  value?: string | undefined;
408
402
  chainId?: string | number | undefined;
409
- to?: string | undefined;
410
403
  data?: string | undefined;
404
+ to?: string | undefined;
411
405
  gas?: string | undefined;
412
406
  gasPrice?: string | undefined;
413
407
  maxFeePerGas?: string | undefined;
@@ -421,8 +415,8 @@ declare const transactionArraySchema: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.Z
421
415
  from: string;
422
416
  value?: string | undefined;
423
417
  chainId?: string | number | undefined;
424
- to?: string | undefined;
425
418
  data?: string | undefined;
419
+ to?: string | undefined;
426
420
  gas?: string | undefined;
427
421
  gasPrice?: string | undefined;
428
422
  maxFeePerGas?: string | undefined;
@@ -436,8 +430,8 @@ declare const transactionArraySchema: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.Z
436
430
  from: string;
437
431
  value?: string | undefined;
438
432
  chainId?: string | number | undefined;
439
- to?: string | undefined;
440
433
  data?: string | undefined;
434
+ to?: string | undefined;
441
435
  gas?: string | undefined;
442
436
  gasPrice?: string | undefined;
443
437
  maxFeePerGas?: string | undefined;
@@ -451,8 +445,8 @@ declare const transactionArraySchema: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.Z
451
445
  from: string;
452
446
  value?: string | undefined;
453
447
  chainId?: string | number | undefined;
454
- to?: string | undefined;
455
448
  data?: string | undefined;
449
+ to?: string | undefined;
456
450
  gas?: string | undefined;
457
451
  gasPrice?: string | undefined;
458
452
  maxFeePerGas?: string | undefined;
@@ -466,8 +460,8 @@ declare const transactionArraySchema: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.Z
466
460
  from: string;
467
461
  value?: string | undefined;
468
462
  chainId?: string | number | undefined;
469
- to?: string | undefined;
470
463
  data?: string | undefined;
464
+ to?: string | undefined;
471
465
  gas?: string | undefined;
472
466
  gasPrice?: string | undefined;
473
467
  maxFeePerGas?: string | undefined;
@@ -481,8 +475,8 @@ declare const transactionArraySchema: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.Z
481
475
  from: string;
482
476
  value?: string | undefined;
483
477
  chainId?: string | number | undefined;
484
- to?: string | undefined;
485
478
  data?: string | undefined;
479
+ to?: string | undefined;
486
480
  gas?: string | undefined;
487
481
  gasPrice?: string | undefined;
488
482
  maxFeePerGas?: string | undefined;
@@ -496,8 +490,8 @@ declare const transactionArraySchema: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.Z
496
490
  from: string;
497
491
  value?: string | undefined;
498
492
  chainId?: string | number | undefined;
499
- to?: string | undefined;
500
493
  data?: string | undefined;
494
+ to?: string | undefined;
501
495
  gas?: string | undefined;
502
496
  gasPrice?: string | undefined;
503
497
  maxFeePerGas?: string | undefined;
@@ -521,6 +515,11 @@ declare enum ERC20TransactionType {
521
515
  APPROVE = "approve",
522
516
  ALLOWANCE = "allowance"
523
517
  }
518
+ declare enum TransactionKind {
519
+ NATIVE_TRANSFER = "native_transfer",
520
+ ERC20_TRANSFER = "erc20_transfer",
521
+ CONTRACT_CALL = "contract_call"
522
+ }
524
523
 
525
524
  declare const isTypedDataV1: (data: unknown) => data is TypedDataV1;
526
525
  declare const isTypedData: (data: unknown) => data is TypedData<MessageTypes>;
@@ -558,4 +557,4 @@ declare function addIdToPromise<T>(promise: Promise<T>, id: string): Promise<IdP
558
557
  */
559
558
  declare function settleAllIdPromises<T>(promises: Promise<IdPromise<T>>[]): Promise<Record<Id, T | Error>>;
560
559
 
561
- export { ERC20TransactionType, EvmModule, IdPromise, NonContractCallTypes, RequiredBy, TransactionBatchParams, TransactionParams, addIdToPromise, isTypedData, isTypedDataV1, settleAllIdPromises };
560
+ export { ERC20TransactionType, EvmModule, IdPromise, NonContractCallTypes, RequiredBy, TransactionBatchParams, TransactionKind, TransactionParams, addIdToPromise, isTypedData, isTypedDataV1, settleAllIdPromises };