@avalabs/evm-module 3.9.3 → 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.cjs +33 -32
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +32 -27
- package/dist/index.d.ts +32 -27
- package/dist/index.js +24 -24
- package/dist/index.js.map +1 -1
- package/manifest.json +1 -0
- package/package.json +2 -2
package/dist/index.d.cts
CHANGED
|
@@ -50,8 +50,8 @@ declare const transactionSchema: z.ZodObject<{
|
|
|
50
50
|
from: string;
|
|
51
51
|
value?: string | undefined;
|
|
52
52
|
chainId?: string | number | undefined;
|
|
53
|
-
to?: string | undefined;
|
|
54
53
|
data?: string | undefined;
|
|
54
|
+
to?: string | undefined;
|
|
55
55
|
gas?: string | undefined;
|
|
56
56
|
gasPrice?: string | undefined;
|
|
57
57
|
maxFeePerGas?: string | undefined;
|
|
@@ -65,8 +65,8 @@ declare const transactionSchema: z.ZodObject<{
|
|
|
65
65
|
from: string;
|
|
66
66
|
value?: string | undefined;
|
|
67
67
|
chainId?: string | number | undefined;
|
|
68
|
-
to?: string | undefined;
|
|
69
68
|
data?: string | undefined;
|
|
69
|
+
to?: string | undefined;
|
|
70
70
|
gas?: string | undefined;
|
|
71
71
|
gasPrice?: string | undefined;
|
|
72
72
|
maxFeePerGas?: string | undefined;
|
|
@@ -103,8 +103,8 @@ declare const transactionArraySchema: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.Z
|
|
|
103
103
|
from: string;
|
|
104
104
|
value?: string | undefined;
|
|
105
105
|
chainId?: string | number | undefined;
|
|
106
|
-
to?: string | undefined;
|
|
107
106
|
data?: string | undefined;
|
|
107
|
+
to?: string | undefined;
|
|
108
108
|
gas?: string | undefined;
|
|
109
109
|
gasPrice?: string | undefined;
|
|
110
110
|
maxFeePerGas?: string | undefined;
|
|
@@ -118,8 +118,8 @@ declare const transactionArraySchema: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.Z
|
|
|
118
118
|
from: string;
|
|
119
119
|
value?: string | undefined;
|
|
120
120
|
chainId?: string | number | undefined;
|
|
121
|
-
to?: string | undefined;
|
|
122
121
|
data?: string | undefined;
|
|
122
|
+
to?: string | undefined;
|
|
123
123
|
gas?: string | undefined;
|
|
124
124
|
gasPrice?: string | undefined;
|
|
125
125
|
maxFeePerGas?: string | undefined;
|
|
@@ -154,8 +154,8 @@ declare const transactionArraySchema: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.Z
|
|
|
154
154
|
from: string;
|
|
155
155
|
value?: string | undefined;
|
|
156
156
|
chainId?: string | number | undefined;
|
|
157
|
-
to?: string | undefined;
|
|
158
157
|
data?: string | undefined;
|
|
158
|
+
to?: string | undefined;
|
|
159
159
|
gas?: string | undefined;
|
|
160
160
|
gasPrice?: string | undefined;
|
|
161
161
|
maxFeePerGas?: string | undefined;
|
|
@@ -169,8 +169,8 @@ declare const transactionArraySchema: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.Z
|
|
|
169
169
|
from: string;
|
|
170
170
|
value?: string | undefined;
|
|
171
171
|
chainId?: string | number | undefined;
|
|
172
|
-
to?: string | undefined;
|
|
173
172
|
data?: string | undefined;
|
|
173
|
+
to?: string | undefined;
|
|
174
174
|
gas?: string | undefined;
|
|
175
175
|
gasPrice?: string | undefined;
|
|
176
176
|
maxFeePerGas?: string | undefined;
|
|
@@ -205,8 +205,8 @@ declare const transactionArraySchema: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.Z
|
|
|
205
205
|
from: string;
|
|
206
206
|
value?: string | undefined;
|
|
207
207
|
chainId?: string | number | undefined;
|
|
208
|
-
to?: string | undefined;
|
|
209
208
|
data?: string | undefined;
|
|
209
|
+
to?: string | undefined;
|
|
210
210
|
gas?: string | undefined;
|
|
211
211
|
gasPrice?: string | undefined;
|
|
212
212
|
maxFeePerGas?: string | undefined;
|
|
@@ -220,8 +220,8 @@ declare const transactionArraySchema: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.Z
|
|
|
220
220
|
from: string;
|
|
221
221
|
value?: string | undefined;
|
|
222
222
|
chainId?: string | number | undefined;
|
|
223
|
-
to?: string | undefined;
|
|
224
223
|
data?: string | undefined;
|
|
224
|
+
to?: string | undefined;
|
|
225
225
|
gas?: string | undefined;
|
|
226
226
|
gasPrice?: string | undefined;
|
|
227
227
|
maxFeePerGas?: string | undefined;
|
|
@@ -235,8 +235,8 @@ declare const transactionArraySchema: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.Z
|
|
|
235
235
|
from: string;
|
|
236
236
|
value?: string | undefined;
|
|
237
237
|
chainId?: string | number | undefined;
|
|
238
|
-
to?: string | undefined;
|
|
239
238
|
data?: string | undefined;
|
|
239
|
+
to?: string | undefined;
|
|
240
240
|
gas?: string | undefined;
|
|
241
241
|
gasPrice?: string | undefined;
|
|
242
242
|
maxFeePerGas?: string | undefined;
|
|
@@ -250,8 +250,8 @@ declare const transactionArraySchema: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.Z
|
|
|
250
250
|
from: string;
|
|
251
251
|
value?: string | undefined;
|
|
252
252
|
chainId?: string | number | undefined;
|
|
253
|
-
to?: string | undefined;
|
|
254
253
|
data?: string | undefined;
|
|
254
|
+
to?: string | undefined;
|
|
255
255
|
gas?: string | undefined;
|
|
256
256
|
gasPrice?: string | undefined;
|
|
257
257
|
maxFeePerGas?: string | undefined;
|
|
@@ -265,8 +265,8 @@ declare const transactionArraySchema: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.Z
|
|
|
265
265
|
from: string;
|
|
266
266
|
value?: string | undefined;
|
|
267
267
|
chainId?: string | number | undefined;
|
|
268
|
-
to?: string | undefined;
|
|
269
268
|
data?: string | undefined;
|
|
269
|
+
to?: string | undefined;
|
|
270
270
|
gas?: string | undefined;
|
|
271
271
|
gasPrice?: string | undefined;
|
|
272
272
|
maxFeePerGas?: string | undefined;
|
|
@@ -280,8 +280,8 @@ declare const transactionArraySchema: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.Z
|
|
|
280
280
|
from: string;
|
|
281
281
|
value?: string | undefined;
|
|
282
282
|
chainId?: string | number | undefined;
|
|
283
|
-
to?: string | undefined;
|
|
284
283
|
data?: string | undefined;
|
|
284
|
+
to?: string | undefined;
|
|
285
285
|
gas?: string | undefined;
|
|
286
286
|
gasPrice?: string | undefined;
|
|
287
287
|
maxFeePerGas?: string | undefined;
|
|
@@ -295,8 +295,8 @@ declare const transactionArraySchema: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.Z
|
|
|
295
295
|
from: string;
|
|
296
296
|
value?: string | undefined;
|
|
297
297
|
chainId?: string | number | undefined;
|
|
298
|
-
to?: string | undefined;
|
|
299
298
|
data?: string | undefined;
|
|
299
|
+
to?: string | undefined;
|
|
300
300
|
gas?: string | undefined;
|
|
301
301
|
gasPrice?: string | undefined;
|
|
302
302
|
maxFeePerGas?: string | undefined;
|
|
@@ -310,8 +310,8 @@ declare const transactionArraySchema: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.Z
|
|
|
310
310
|
from: string;
|
|
311
311
|
value?: string | undefined;
|
|
312
312
|
chainId?: string | number | undefined;
|
|
313
|
-
to?: string | undefined;
|
|
314
313
|
data?: string | undefined;
|
|
314
|
+
to?: string | undefined;
|
|
315
315
|
gas?: string | undefined;
|
|
316
316
|
gasPrice?: string | undefined;
|
|
317
317
|
maxFeePerGas?: string | undefined;
|
|
@@ -325,8 +325,8 @@ declare const transactionArraySchema: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.Z
|
|
|
325
325
|
from: string;
|
|
326
326
|
value?: string | undefined;
|
|
327
327
|
chainId?: string | number | undefined;
|
|
328
|
-
to?: string | undefined;
|
|
329
328
|
data?: string | undefined;
|
|
329
|
+
to?: string | undefined;
|
|
330
330
|
gas?: string | undefined;
|
|
331
331
|
gasPrice?: string | undefined;
|
|
332
332
|
maxFeePerGas?: string | undefined;
|
|
@@ -340,8 +340,8 @@ declare const transactionArraySchema: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.Z
|
|
|
340
340
|
from: string;
|
|
341
341
|
value?: string | undefined;
|
|
342
342
|
chainId?: string | number | undefined;
|
|
343
|
-
to?: string | undefined;
|
|
344
343
|
data?: string | undefined;
|
|
344
|
+
to?: string | undefined;
|
|
345
345
|
gas?: string | undefined;
|
|
346
346
|
gasPrice?: string | undefined;
|
|
347
347
|
maxFeePerGas?: string | undefined;
|
|
@@ -355,8 +355,8 @@ declare const transactionArraySchema: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.Z
|
|
|
355
355
|
from: string;
|
|
356
356
|
value?: string | undefined;
|
|
357
357
|
chainId?: string | number | undefined;
|
|
358
|
-
to?: string | undefined;
|
|
359
358
|
data?: string | undefined;
|
|
359
|
+
to?: string | undefined;
|
|
360
360
|
gas?: string | undefined;
|
|
361
361
|
gasPrice?: string | undefined;
|
|
362
362
|
maxFeePerGas?: string | undefined;
|
|
@@ -370,8 +370,8 @@ declare const transactionArraySchema: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.Z
|
|
|
370
370
|
from: string;
|
|
371
371
|
value?: string | undefined;
|
|
372
372
|
chainId?: string | number | undefined;
|
|
373
|
-
to?: string | undefined;
|
|
374
373
|
data?: string | undefined;
|
|
374
|
+
to?: string | undefined;
|
|
375
375
|
gas?: string | undefined;
|
|
376
376
|
gasPrice?: string | undefined;
|
|
377
377
|
maxFeePerGas?: string | undefined;
|
|
@@ -385,8 +385,8 @@ declare const transactionArraySchema: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.Z
|
|
|
385
385
|
from: string;
|
|
386
386
|
value?: string | undefined;
|
|
387
387
|
chainId?: string | number | undefined;
|
|
388
|
-
to?: string | undefined;
|
|
389
388
|
data?: string | undefined;
|
|
389
|
+
to?: string | undefined;
|
|
390
390
|
gas?: string | undefined;
|
|
391
391
|
gasPrice?: string | undefined;
|
|
392
392
|
maxFeePerGas?: string | undefined;
|
|
@@ -400,8 +400,8 @@ declare const transactionArraySchema: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.Z
|
|
|
400
400
|
from: string;
|
|
401
401
|
value?: string | undefined;
|
|
402
402
|
chainId?: string | number | undefined;
|
|
403
|
-
to?: string | undefined;
|
|
404
403
|
data?: string | undefined;
|
|
404
|
+
to?: string | undefined;
|
|
405
405
|
gas?: string | undefined;
|
|
406
406
|
gasPrice?: string | undefined;
|
|
407
407
|
maxFeePerGas?: string | undefined;
|
|
@@ -415,8 +415,8 @@ declare const transactionArraySchema: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.Z
|
|
|
415
415
|
from: string;
|
|
416
416
|
value?: string | undefined;
|
|
417
417
|
chainId?: string | number | undefined;
|
|
418
|
-
to?: string | undefined;
|
|
419
418
|
data?: string | undefined;
|
|
419
|
+
to?: string | undefined;
|
|
420
420
|
gas?: string | undefined;
|
|
421
421
|
gasPrice?: string | undefined;
|
|
422
422
|
maxFeePerGas?: string | undefined;
|
|
@@ -430,8 +430,8 @@ declare const transactionArraySchema: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.Z
|
|
|
430
430
|
from: string;
|
|
431
431
|
value?: string | undefined;
|
|
432
432
|
chainId?: string | number | undefined;
|
|
433
|
-
to?: string | undefined;
|
|
434
433
|
data?: string | undefined;
|
|
434
|
+
to?: string | undefined;
|
|
435
435
|
gas?: string | undefined;
|
|
436
436
|
gasPrice?: string | undefined;
|
|
437
437
|
maxFeePerGas?: string | undefined;
|
|
@@ -445,8 +445,8 @@ declare const transactionArraySchema: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.Z
|
|
|
445
445
|
from: string;
|
|
446
446
|
value?: string | undefined;
|
|
447
447
|
chainId?: string | number | undefined;
|
|
448
|
-
to?: string | undefined;
|
|
449
448
|
data?: string | undefined;
|
|
449
|
+
to?: string | undefined;
|
|
450
450
|
gas?: string | undefined;
|
|
451
451
|
gasPrice?: string | undefined;
|
|
452
452
|
maxFeePerGas?: string | undefined;
|
|
@@ -460,8 +460,8 @@ declare const transactionArraySchema: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.Z
|
|
|
460
460
|
from: string;
|
|
461
461
|
value?: string | undefined;
|
|
462
462
|
chainId?: string | number | undefined;
|
|
463
|
-
to?: string | undefined;
|
|
464
463
|
data?: string | undefined;
|
|
464
|
+
to?: string | undefined;
|
|
465
465
|
gas?: string | undefined;
|
|
466
466
|
gasPrice?: string | undefined;
|
|
467
467
|
maxFeePerGas?: string | undefined;
|
|
@@ -475,8 +475,8 @@ declare const transactionArraySchema: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.Z
|
|
|
475
475
|
from: string;
|
|
476
476
|
value?: string | undefined;
|
|
477
477
|
chainId?: string | number | undefined;
|
|
478
|
-
to?: string | undefined;
|
|
479
478
|
data?: string | undefined;
|
|
479
|
+
to?: string | undefined;
|
|
480
480
|
gas?: string | undefined;
|
|
481
481
|
gasPrice?: string | undefined;
|
|
482
482
|
maxFeePerGas?: string | undefined;
|
|
@@ -490,8 +490,8 @@ declare const transactionArraySchema: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.Z
|
|
|
490
490
|
from: string;
|
|
491
491
|
value?: string | undefined;
|
|
492
492
|
chainId?: string | number | undefined;
|
|
493
|
-
to?: string | undefined;
|
|
494
493
|
data?: string | undefined;
|
|
494
|
+
to?: string | undefined;
|
|
495
495
|
gas?: string | undefined;
|
|
496
496
|
gasPrice?: string | undefined;
|
|
497
497
|
maxFeePerGas?: string | undefined;
|
|
@@ -515,6 +515,11 @@ declare enum ERC20TransactionType {
|
|
|
515
515
|
APPROVE = "approve",
|
|
516
516
|
ALLOWANCE = "allowance"
|
|
517
517
|
}
|
|
518
|
+
declare enum TransactionKind {
|
|
519
|
+
NATIVE_TRANSFER = "native_transfer",
|
|
520
|
+
ERC20_TRANSFER = "erc20_transfer",
|
|
521
|
+
CONTRACT_CALL = "contract_call"
|
|
522
|
+
}
|
|
518
523
|
|
|
519
524
|
declare const isTypedDataV1: (data: unknown) => data is TypedDataV1;
|
|
520
525
|
declare const isTypedData: (data: unknown) => data is TypedData<MessageTypes>;
|
|
@@ -552,4 +557,4 @@ declare function addIdToPromise<T>(promise: Promise<T>, id: string): Promise<IdP
|
|
|
552
557
|
*/
|
|
553
558
|
declare function settleAllIdPromises<T>(promises: Promise<IdPromise<T>>[]): Promise<Record<Id, T | Error>>;
|
|
554
559
|
|
|
555
|
-
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
|
@@ -50,8 +50,8 @@ declare const transactionSchema: z.ZodObject<{
|
|
|
50
50
|
from: string;
|
|
51
51
|
value?: string | undefined;
|
|
52
52
|
chainId?: string | number | undefined;
|
|
53
|
-
to?: string | undefined;
|
|
54
53
|
data?: string | undefined;
|
|
54
|
+
to?: string | undefined;
|
|
55
55
|
gas?: string | undefined;
|
|
56
56
|
gasPrice?: string | undefined;
|
|
57
57
|
maxFeePerGas?: string | undefined;
|
|
@@ -65,8 +65,8 @@ declare const transactionSchema: z.ZodObject<{
|
|
|
65
65
|
from: string;
|
|
66
66
|
value?: string | undefined;
|
|
67
67
|
chainId?: string | number | undefined;
|
|
68
|
-
to?: string | undefined;
|
|
69
68
|
data?: string | undefined;
|
|
69
|
+
to?: string | undefined;
|
|
70
70
|
gas?: string | undefined;
|
|
71
71
|
gasPrice?: string | undefined;
|
|
72
72
|
maxFeePerGas?: string | undefined;
|
|
@@ -103,8 +103,8 @@ declare const transactionArraySchema: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.Z
|
|
|
103
103
|
from: string;
|
|
104
104
|
value?: string | undefined;
|
|
105
105
|
chainId?: string | number | undefined;
|
|
106
|
-
to?: string | undefined;
|
|
107
106
|
data?: string | undefined;
|
|
107
|
+
to?: string | undefined;
|
|
108
108
|
gas?: string | undefined;
|
|
109
109
|
gasPrice?: string | undefined;
|
|
110
110
|
maxFeePerGas?: string | undefined;
|
|
@@ -118,8 +118,8 @@ declare const transactionArraySchema: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.Z
|
|
|
118
118
|
from: string;
|
|
119
119
|
value?: string | undefined;
|
|
120
120
|
chainId?: string | number | undefined;
|
|
121
|
-
to?: string | undefined;
|
|
122
121
|
data?: string | undefined;
|
|
122
|
+
to?: string | undefined;
|
|
123
123
|
gas?: string | undefined;
|
|
124
124
|
gasPrice?: string | undefined;
|
|
125
125
|
maxFeePerGas?: string | undefined;
|
|
@@ -154,8 +154,8 @@ declare const transactionArraySchema: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.Z
|
|
|
154
154
|
from: string;
|
|
155
155
|
value?: string | undefined;
|
|
156
156
|
chainId?: string | number | undefined;
|
|
157
|
-
to?: string | undefined;
|
|
158
157
|
data?: string | undefined;
|
|
158
|
+
to?: string | undefined;
|
|
159
159
|
gas?: string | undefined;
|
|
160
160
|
gasPrice?: string | undefined;
|
|
161
161
|
maxFeePerGas?: string | undefined;
|
|
@@ -169,8 +169,8 @@ declare const transactionArraySchema: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.Z
|
|
|
169
169
|
from: string;
|
|
170
170
|
value?: string | undefined;
|
|
171
171
|
chainId?: string | number | undefined;
|
|
172
|
-
to?: string | undefined;
|
|
173
172
|
data?: string | undefined;
|
|
173
|
+
to?: string | undefined;
|
|
174
174
|
gas?: string | undefined;
|
|
175
175
|
gasPrice?: string | undefined;
|
|
176
176
|
maxFeePerGas?: string | undefined;
|
|
@@ -205,8 +205,8 @@ declare const transactionArraySchema: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.Z
|
|
|
205
205
|
from: string;
|
|
206
206
|
value?: string | undefined;
|
|
207
207
|
chainId?: string | number | undefined;
|
|
208
|
-
to?: string | undefined;
|
|
209
208
|
data?: string | undefined;
|
|
209
|
+
to?: string | undefined;
|
|
210
210
|
gas?: string | undefined;
|
|
211
211
|
gasPrice?: string | undefined;
|
|
212
212
|
maxFeePerGas?: string | undefined;
|
|
@@ -220,8 +220,8 @@ declare const transactionArraySchema: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.Z
|
|
|
220
220
|
from: string;
|
|
221
221
|
value?: string | undefined;
|
|
222
222
|
chainId?: string | number | undefined;
|
|
223
|
-
to?: string | undefined;
|
|
224
223
|
data?: string | undefined;
|
|
224
|
+
to?: string | undefined;
|
|
225
225
|
gas?: string | undefined;
|
|
226
226
|
gasPrice?: string | undefined;
|
|
227
227
|
maxFeePerGas?: string | undefined;
|
|
@@ -235,8 +235,8 @@ declare const transactionArraySchema: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.Z
|
|
|
235
235
|
from: string;
|
|
236
236
|
value?: string | undefined;
|
|
237
237
|
chainId?: string | number | undefined;
|
|
238
|
-
to?: string | undefined;
|
|
239
238
|
data?: string | undefined;
|
|
239
|
+
to?: string | undefined;
|
|
240
240
|
gas?: string | undefined;
|
|
241
241
|
gasPrice?: string | undefined;
|
|
242
242
|
maxFeePerGas?: string | undefined;
|
|
@@ -250,8 +250,8 @@ declare const transactionArraySchema: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.Z
|
|
|
250
250
|
from: string;
|
|
251
251
|
value?: string | undefined;
|
|
252
252
|
chainId?: string | number | undefined;
|
|
253
|
-
to?: string | undefined;
|
|
254
253
|
data?: string | undefined;
|
|
254
|
+
to?: string | undefined;
|
|
255
255
|
gas?: string | undefined;
|
|
256
256
|
gasPrice?: string | undefined;
|
|
257
257
|
maxFeePerGas?: string | undefined;
|
|
@@ -265,8 +265,8 @@ declare const transactionArraySchema: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.Z
|
|
|
265
265
|
from: string;
|
|
266
266
|
value?: string | undefined;
|
|
267
267
|
chainId?: string | number | undefined;
|
|
268
|
-
to?: string | undefined;
|
|
269
268
|
data?: string | undefined;
|
|
269
|
+
to?: string | undefined;
|
|
270
270
|
gas?: string | undefined;
|
|
271
271
|
gasPrice?: string | undefined;
|
|
272
272
|
maxFeePerGas?: string | undefined;
|
|
@@ -280,8 +280,8 @@ declare const transactionArraySchema: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.Z
|
|
|
280
280
|
from: string;
|
|
281
281
|
value?: string | undefined;
|
|
282
282
|
chainId?: string | number | undefined;
|
|
283
|
-
to?: string | undefined;
|
|
284
283
|
data?: string | undefined;
|
|
284
|
+
to?: string | undefined;
|
|
285
285
|
gas?: string | undefined;
|
|
286
286
|
gasPrice?: string | undefined;
|
|
287
287
|
maxFeePerGas?: string | undefined;
|
|
@@ -295,8 +295,8 @@ declare const transactionArraySchema: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.Z
|
|
|
295
295
|
from: string;
|
|
296
296
|
value?: string | undefined;
|
|
297
297
|
chainId?: string | number | undefined;
|
|
298
|
-
to?: string | undefined;
|
|
299
298
|
data?: string | undefined;
|
|
299
|
+
to?: string | undefined;
|
|
300
300
|
gas?: string | undefined;
|
|
301
301
|
gasPrice?: string | undefined;
|
|
302
302
|
maxFeePerGas?: string | undefined;
|
|
@@ -310,8 +310,8 @@ declare const transactionArraySchema: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.Z
|
|
|
310
310
|
from: string;
|
|
311
311
|
value?: string | undefined;
|
|
312
312
|
chainId?: string | number | undefined;
|
|
313
|
-
to?: string | undefined;
|
|
314
313
|
data?: string | undefined;
|
|
314
|
+
to?: string | undefined;
|
|
315
315
|
gas?: string | undefined;
|
|
316
316
|
gasPrice?: string | undefined;
|
|
317
317
|
maxFeePerGas?: string | undefined;
|
|
@@ -325,8 +325,8 @@ declare const transactionArraySchema: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.Z
|
|
|
325
325
|
from: string;
|
|
326
326
|
value?: string | undefined;
|
|
327
327
|
chainId?: string | number | undefined;
|
|
328
|
-
to?: string | undefined;
|
|
329
328
|
data?: string | undefined;
|
|
329
|
+
to?: string | undefined;
|
|
330
330
|
gas?: string | undefined;
|
|
331
331
|
gasPrice?: string | undefined;
|
|
332
332
|
maxFeePerGas?: string | undefined;
|
|
@@ -340,8 +340,8 @@ declare const transactionArraySchema: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.Z
|
|
|
340
340
|
from: string;
|
|
341
341
|
value?: string | undefined;
|
|
342
342
|
chainId?: string | number | undefined;
|
|
343
|
-
to?: string | undefined;
|
|
344
343
|
data?: string | undefined;
|
|
344
|
+
to?: string | undefined;
|
|
345
345
|
gas?: string | undefined;
|
|
346
346
|
gasPrice?: string | undefined;
|
|
347
347
|
maxFeePerGas?: string | undefined;
|
|
@@ -355,8 +355,8 @@ declare const transactionArraySchema: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.Z
|
|
|
355
355
|
from: string;
|
|
356
356
|
value?: string | undefined;
|
|
357
357
|
chainId?: string | number | undefined;
|
|
358
|
-
to?: string | undefined;
|
|
359
358
|
data?: string | undefined;
|
|
359
|
+
to?: string | undefined;
|
|
360
360
|
gas?: string | undefined;
|
|
361
361
|
gasPrice?: string | undefined;
|
|
362
362
|
maxFeePerGas?: string | undefined;
|
|
@@ -370,8 +370,8 @@ declare const transactionArraySchema: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.Z
|
|
|
370
370
|
from: string;
|
|
371
371
|
value?: string | undefined;
|
|
372
372
|
chainId?: string | number | undefined;
|
|
373
|
-
to?: string | undefined;
|
|
374
373
|
data?: string | undefined;
|
|
374
|
+
to?: string | undefined;
|
|
375
375
|
gas?: string | undefined;
|
|
376
376
|
gasPrice?: string | undefined;
|
|
377
377
|
maxFeePerGas?: string | undefined;
|
|
@@ -385,8 +385,8 @@ declare const transactionArraySchema: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.Z
|
|
|
385
385
|
from: string;
|
|
386
386
|
value?: string | undefined;
|
|
387
387
|
chainId?: string | number | undefined;
|
|
388
|
-
to?: string | undefined;
|
|
389
388
|
data?: string | undefined;
|
|
389
|
+
to?: string | undefined;
|
|
390
390
|
gas?: string | undefined;
|
|
391
391
|
gasPrice?: string | undefined;
|
|
392
392
|
maxFeePerGas?: string | undefined;
|
|
@@ -400,8 +400,8 @@ declare const transactionArraySchema: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.Z
|
|
|
400
400
|
from: string;
|
|
401
401
|
value?: string | undefined;
|
|
402
402
|
chainId?: string | number | undefined;
|
|
403
|
-
to?: string | undefined;
|
|
404
403
|
data?: string | undefined;
|
|
404
|
+
to?: string | undefined;
|
|
405
405
|
gas?: string | undefined;
|
|
406
406
|
gasPrice?: string | undefined;
|
|
407
407
|
maxFeePerGas?: string | undefined;
|
|
@@ -415,8 +415,8 @@ declare const transactionArraySchema: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.Z
|
|
|
415
415
|
from: string;
|
|
416
416
|
value?: string | undefined;
|
|
417
417
|
chainId?: string | number | undefined;
|
|
418
|
-
to?: string | undefined;
|
|
419
418
|
data?: string | undefined;
|
|
419
|
+
to?: string | undefined;
|
|
420
420
|
gas?: string | undefined;
|
|
421
421
|
gasPrice?: string | undefined;
|
|
422
422
|
maxFeePerGas?: string | undefined;
|
|
@@ -430,8 +430,8 @@ declare const transactionArraySchema: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.Z
|
|
|
430
430
|
from: string;
|
|
431
431
|
value?: string | undefined;
|
|
432
432
|
chainId?: string | number | undefined;
|
|
433
|
-
to?: string | undefined;
|
|
434
433
|
data?: string | undefined;
|
|
434
|
+
to?: string | undefined;
|
|
435
435
|
gas?: string | undefined;
|
|
436
436
|
gasPrice?: string | undefined;
|
|
437
437
|
maxFeePerGas?: string | undefined;
|
|
@@ -445,8 +445,8 @@ declare const transactionArraySchema: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.Z
|
|
|
445
445
|
from: string;
|
|
446
446
|
value?: string | undefined;
|
|
447
447
|
chainId?: string | number | undefined;
|
|
448
|
-
to?: string | undefined;
|
|
449
448
|
data?: string | undefined;
|
|
449
|
+
to?: string | undefined;
|
|
450
450
|
gas?: string | undefined;
|
|
451
451
|
gasPrice?: string | undefined;
|
|
452
452
|
maxFeePerGas?: string | undefined;
|
|
@@ -460,8 +460,8 @@ declare const transactionArraySchema: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.Z
|
|
|
460
460
|
from: string;
|
|
461
461
|
value?: string | undefined;
|
|
462
462
|
chainId?: string | number | undefined;
|
|
463
|
-
to?: string | undefined;
|
|
464
463
|
data?: string | undefined;
|
|
464
|
+
to?: string | undefined;
|
|
465
465
|
gas?: string | undefined;
|
|
466
466
|
gasPrice?: string | undefined;
|
|
467
467
|
maxFeePerGas?: string | undefined;
|
|
@@ -475,8 +475,8 @@ declare const transactionArraySchema: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.Z
|
|
|
475
475
|
from: string;
|
|
476
476
|
value?: string | undefined;
|
|
477
477
|
chainId?: string | number | undefined;
|
|
478
|
-
to?: string | undefined;
|
|
479
478
|
data?: string | undefined;
|
|
479
|
+
to?: string | undefined;
|
|
480
480
|
gas?: string | undefined;
|
|
481
481
|
gasPrice?: string | undefined;
|
|
482
482
|
maxFeePerGas?: string | undefined;
|
|
@@ -490,8 +490,8 @@ declare const transactionArraySchema: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.Z
|
|
|
490
490
|
from: string;
|
|
491
491
|
value?: string | undefined;
|
|
492
492
|
chainId?: string | number | undefined;
|
|
493
|
-
to?: string | undefined;
|
|
494
493
|
data?: string | undefined;
|
|
494
|
+
to?: string | undefined;
|
|
495
495
|
gas?: string | undefined;
|
|
496
496
|
gasPrice?: string | undefined;
|
|
497
497
|
maxFeePerGas?: string | undefined;
|
|
@@ -515,6 +515,11 @@ declare enum ERC20TransactionType {
|
|
|
515
515
|
APPROVE = "approve",
|
|
516
516
|
ALLOWANCE = "allowance"
|
|
517
517
|
}
|
|
518
|
+
declare enum TransactionKind {
|
|
519
|
+
NATIVE_TRANSFER = "native_transfer",
|
|
520
|
+
ERC20_TRANSFER = "erc20_transfer",
|
|
521
|
+
CONTRACT_CALL = "contract_call"
|
|
522
|
+
}
|
|
518
523
|
|
|
519
524
|
declare const isTypedDataV1: (data: unknown) => data is TypedDataV1;
|
|
520
525
|
declare const isTypedData: (data: unknown) => data is TypedData<MessageTypes>;
|
|
@@ -552,4 +557,4 @@ declare function addIdToPromise<T>(promise: Promise<T>, id: string): Promise<IdP
|
|
|
552
557
|
*/
|
|
553
558
|
declare function settleAllIdPromises<T>(promises: Promise<IdPromise<T>>[]): Promise<Record<Id, T | Error>>;
|
|
554
559
|
|
|
555
|
-
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 };
|