@argent/x-shared 1.71.0 → 1.72.1

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.
Files changed (30) hide show
  1. package/dist/index.cjs +1 -1
  2. package/dist/index.js +36 -36
  3. package/dist/simulation.cjs +1 -1
  4. package/dist/simulation.js +54 -48
  5. package/dist/src/features/simulation/activity/utils/index.d.ts +3 -0
  6. package/dist/src/features/simulation/activity/utils/isAddMultisigSignersActivity.cjs +1 -0
  7. package/dist/src/features/simulation/activity/utils/isAddMultisigSignersActivity.d.ts +3 -0
  8. package/dist/src/features/simulation/activity/utils/isAddMultisigSignersActivity.js +24 -0
  9. package/dist/src/features/simulation/activity/utils/isChangeMultisigThresholdActivity.cjs +1 -0
  10. package/dist/src/features/simulation/activity/utils/isChangeMultisigThresholdActivity.d.ts +3 -0
  11. package/dist/src/features/simulation/activity/utils/isChangeMultisigThresholdActivity.js +24 -0
  12. package/dist/src/features/simulation/activity/utils/isRemoveMultisigSignersActivity.cjs +1 -0
  13. package/dist/src/features/simulation/activity/utils/isRemoveMultisigSignersActivity.d.ts +3 -0
  14. package/dist/src/features/simulation/activity/utils/isRemoveMultisigSignersActivity.js +24 -0
  15. package/dist/src/features/simulation/activity/utils/isReplaceMultisigSignersActivity.d.ts +3 -0
  16. package/dist/src/features/simulation/activity/utils/isSwapActivity.cjs +1 -1
  17. package/dist/src/features/simulation/activity/utils/isSwapActivity.d.ts +2 -1
  18. package/dist/src/features/simulation/activity/utils/isSwapActivity.js +15 -17
  19. package/dist/src/features/simulation/activity/utils/isUpgradeActivity.cjs +1 -1
  20. package/dist/src/features/simulation/activity/utils/isUpgradeActivity.d.ts +2 -1
  21. package/dist/src/features/simulation/activity/utils/isUpgradeActivity.js +16 -14
  22. package/dist/src/features/simulation/fees/schema.cjs +1 -1
  23. package/dist/src/features/simulation/fees/schema.d.ts +72 -32
  24. package/dist/src/features/simulation/fees/schema.js +9 -8
  25. package/dist/src/features/simulation/transactionReview/schema.d.ts +62 -48
  26. package/dist/src/transactions/estimate/utils.cjs +1 -1
  27. package/dist/src/transactions/estimate/utils.d.ts +1 -1
  28. package/dist/src/transactions/estimate/utils.js +109 -108
  29. package/dist/src/transactions/service/implementation.d.ts +4 -2
  30. package/package.json +1 -1
@@ -44,6 +44,7 @@ export declare const nativeEstimatedFeeSchema: z.ZodObject<{
44
44
  gasConsumed: bigint;
45
45
  gasPrice: bigint;
46
46
  }>;
47
+ overallFee: z.ZodOptional<z.ZodBigInt>;
47
48
  }, "strip", z.ZodTypeAny, {
48
49
  type: "native";
49
50
  feeTokenAddress: `0x${string}`;
@@ -59,6 +60,7 @@ export declare const nativeEstimatedFeeSchema: z.ZodObject<{
59
60
  gasConsumed: bigint;
60
61
  gasPrice: bigint;
61
62
  };
63
+ overallFee?: bigint | undefined;
62
64
  }, {
63
65
  type: "native";
64
66
  feeTokenAddress: string;
@@ -74,6 +76,7 @@ export declare const nativeEstimatedFeeSchema: z.ZodObject<{
74
76
  gasConsumed: bigint;
75
77
  gasPrice: bigint;
76
78
  };
79
+ overallFee?: bigint | undefined;
77
80
  }>;
78
81
  export declare const paymasterEstimatedFeeSchema: z.ZodObject<{
79
82
  type: z.ZodLiteral<"paymaster">;
@@ -83,13 +86,13 @@ export declare const paymasterEstimatedFeeSchema: z.ZodObject<{
83
86
  }, "strip", z.ZodTypeAny, {
84
87
  type: "paymaster";
85
88
  feeTokenAddress: `0x${string}`;
86
- maxFee: bigint;
87
89
  overallFee: bigint;
90
+ maxFee: bigint;
88
91
  }, {
89
92
  type: "paymaster";
90
93
  feeTokenAddress: string;
91
- maxFee: bigint;
92
94
  overallFee: bigint;
95
+ maxFee: bigint;
93
96
  }>;
94
97
  export declare const estimatedFeeSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
95
98
  type: z.ZodLiteral<"native">;
@@ -124,6 +127,7 @@ export declare const estimatedFeeSchema: z.ZodDiscriminatedUnion<"type", [z.ZodO
124
127
  gasConsumed: bigint;
125
128
  gasPrice: bigint;
126
129
  }>;
130
+ overallFee: z.ZodOptional<z.ZodBigInt>;
127
131
  }, "strip", z.ZodTypeAny, {
128
132
  type: "native";
129
133
  feeTokenAddress: `0x${string}`;
@@ -139,6 +143,7 @@ export declare const estimatedFeeSchema: z.ZodDiscriminatedUnion<"type", [z.ZodO
139
143
  gasConsumed: bigint;
140
144
  gasPrice: bigint;
141
145
  };
146
+ overallFee?: bigint | undefined;
142
147
  }, {
143
148
  type: "native";
144
149
  feeTokenAddress: string;
@@ -154,6 +159,7 @@ export declare const estimatedFeeSchema: z.ZodDiscriminatedUnion<"type", [z.ZodO
154
159
  gasConsumed: bigint;
155
160
  gasPrice: bigint;
156
161
  };
162
+ overallFee?: bigint | undefined;
157
163
  }>, z.ZodObject<{
158
164
  type: z.ZodLiteral<"paymaster">;
159
165
  feeTokenAddress: z.ZodEffects<z.ZodPipeline<z.ZodString, z.ZodEffects<z.ZodString, string, string>>, `0x${string}`, string>;
@@ -162,13 +168,13 @@ export declare const estimatedFeeSchema: z.ZodDiscriminatedUnion<"type", [z.ZodO
162
168
  }, "strip", z.ZodTypeAny, {
163
169
  type: "paymaster";
164
170
  feeTokenAddress: `0x${string}`;
165
- maxFee: bigint;
166
171
  overallFee: bigint;
172
+ maxFee: bigint;
167
173
  }, {
168
174
  type: "paymaster";
169
175
  feeTokenAddress: string;
170
- maxFee: bigint;
171
176
  overallFee: bigint;
177
+ maxFee: bigint;
172
178
  }>]>;
173
179
  export type EstimatedFee = z.infer<typeof estimatedFeeSchema>;
174
180
  export declare const nativeEstimatedFeesSchema: z.ZodObject<{
@@ -206,6 +212,7 @@ export declare const nativeEstimatedFeesSchema: z.ZodObject<{
206
212
  gasConsumed: bigint;
207
213
  gasPrice: bigint;
208
214
  }>;
215
+ overallFee: z.ZodOptional<z.ZodBigInt>;
209
216
  }, "type">, "strip", z.ZodTypeAny, {
210
217
  feeTokenAddress: `0x${string}`;
211
218
  l1Gas: {
@@ -220,6 +227,7 @@ export declare const nativeEstimatedFeesSchema: z.ZodObject<{
220
227
  gasConsumed: bigint;
221
228
  gasPrice: bigint;
222
229
  };
230
+ overallFee?: bigint | undefined;
223
231
  }, {
224
232
  feeTokenAddress: string;
225
233
  l1Gas: {
@@ -234,6 +242,7 @@ export declare const nativeEstimatedFeesSchema: z.ZodObject<{
234
242
  gasConsumed: bigint;
235
243
  gasPrice: bigint;
236
244
  };
245
+ overallFee?: bigint | undefined;
237
246
  }>;
238
247
  deployment: z.ZodOptional<z.ZodObject<Omit<{
239
248
  type: z.ZodLiteral<"native">;
@@ -268,6 +277,7 @@ export declare const nativeEstimatedFeesSchema: z.ZodObject<{
268
277
  gasConsumed: bigint;
269
278
  gasPrice: bigint;
270
279
  }>;
280
+ overallFee: z.ZodOptional<z.ZodBigInt>;
271
281
  }, "type">, "strip", z.ZodTypeAny, {
272
282
  feeTokenAddress: `0x${string}`;
273
283
  l1Gas: {
@@ -282,6 +292,7 @@ export declare const nativeEstimatedFeesSchema: z.ZodObject<{
282
292
  gasConsumed: bigint;
283
293
  gasPrice: bigint;
284
294
  };
295
+ overallFee?: bigint | undefined;
285
296
  }, {
286
297
  feeTokenAddress: string;
287
298
  l1Gas: {
@@ -296,6 +307,7 @@ export declare const nativeEstimatedFeesSchema: z.ZodObject<{
296
307
  gasConsumed: bigint;
297
308
  gasPrice: bigint;
298
309
  };
310
+ overallFee?: bigint | undefined;
299
311
  }>>;
300
312
  }, "strip", z.ZodTypeAny, {
301
313
  type: "native";
@@ -313,6 +325,7 @@ export declare const nativeEstimatedFeesSchema: z.ZodObject<{
313
325
  gasConsumed: bigint;
314
326
  gasPrice: bigint;
315
327
  };
328
+ overallFee?: bigint | undefined;
316
329
  };
317
330
  deployment?: {
318
331
  feeTokenAddress: `0x${string}`;
@@ -328,6 +341,7 @@ export declare const nativeEstimatedFeesSchema: z.ZodObject<{
328
341
  gasConsumed: bigint;
329
342
  gasPrice: bigint;
330
343
  };
344
+ overallFee?: bigint | undefined;
331
345
  } | undefined;
332
346
  }, {
333
347
  type: "native";
@@ -345,6 +359,7 @@ export declare const nativeEstimatedFeesSchema: z.ZodObject<{
345
359
  gasConsumed: bigint;
346
360
  gasPrice: bigint;
347
361
  };
362
+ overallFee?: bigint | undefined;
348
363
  };
349
364
  deployment?: {
350
365
  feeTokenAddress: string;
@@ -360,6 +375,7 @@ export declare const nativeEstimatedFeesSchema: z.ZodObject<{
360
375
  gasConsumed: bigint;
361
376
  gasPrice: bigint;
362
377
  };
378
+ overallFee?: bigint | undefined;
363
379
  } | undefined;
364
380
  }>;
365
381
  export declare const paymasterEstimatedFeesSchema: z.ZodObject<{
@@ -371,12 +387,12 @@ export declare const paymasterEstimatedFeesSchema: z.ZodObject<{
371
387
  overallFee: z.ZodBigInt;
372
388
  }, "type">, "strip", z.ZodTypeAny, {
373
389
  feeTokenAddress: `0x${string}`;
374
- maxFee: bigint;
375
390
  overallFee: bigint;
391
+ maxFee: bigint;
376
392
  }, {
377
393
  feeTokenAddress: string;
378
- maxFee: bigint;
379
394
  overallFee: bigint;
395
+ maxFee: bigint;
380
396
  }>;
381
397
  deployment: z.ZodOptional<z.ZodObject<Omit<{
382
398
  type: z.ZodLiteral<"paymaster">;
@@ -385,36 +401,36 @@ export declare const paymasterEstimatedFeesSchema: z.ZodObject<{
385
401
  overallFee: z.ZodBigInt;
386
402
  }, "type">, "strip", z.ZodTypeAny, {
387
403
  feeTokenAddress: `0x${string}`;
388
- maxFee: bigint;
389
404
  overallFee: bigint;
405
+ maxFee: bigint;
390
406
  }, {
391
407
  feeTokenAddress: string;
392
- maxFee: bigint;
393
408
  overallFee: bigint;
409
+ maxFee: bigint;
394
410
  }>>;
395
411
  }, "strip", z.ZodTypeAny, {
396
412
  type: "paymaster";
397
413
  transactions: {
398
414
  feeTokenAddress: `0x${string}`;
399
- maxFee: bigint;
400
415
  overallFee: bigint;
416
+ maxFee: bigint;
401
417
  };
402
418
  deployment?: {
403
419
  feeTokenAddress: `0x${string}`;
404
- maxFee: bigint;
405
420
  overallFee: bigint;
421
+ maxFee: bigint;
406
422
  } | undefined;
407
423
  }, {
408
424
  type: "paymaster";
409
425
  transactions: {
410
426
  feeTokenAddress: string;
411
- maxFee: bigint;
412
427
  overallFee: bigint;
428
+ maxFee: bigint;
413
429
  };
414
430
  deployment?: {
415
431
  feeTokenAddress: string;
416
- maxFee: bigint;
417
432
  overallFee: bigint;
433
+ maxFee: bigint;
418
434
  } | undefined;
419
435
  }>;
420
436
  export declare const estimatedFeesSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
@@ -452,6 +468,7 @@ export declare const estimatedFeesSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
452
468
  gasConsumed: bigint;
453
469
  gasPrice: bigint;
454
470
  }>;
471
+ overallFee: z.ZodOptional<z.ZodBigInt>;
455
472
  }, "type">, "strip", z.ZodTypeAny, {
456
473
  feeTokenAddress: `0x${string}`;
457
474
  l1Gas: {
@@ -466,6 +483,7 @@ export declare const estimatedFeesSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
466
483
  gasConsumed: bigint;
467
484
  gasPrice: bigint;
468
485
  };
486
+ overallFee?: bigint | undefined;
469
487
  }, {
470
488
  feeTokenAddress: string;
471
489
  l1Gas: {
@@ -480,6 +498,7 @@ export declare const estimatedFeesSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
480
498
  gasConsumed: bigint;
481
499
  gasPrice: bigint;
482
500
  };
501
+ overallFee?: bigint | undefined;
483
502
  }>;
484
503
  deployment: z.ZodOptional<z.ZodObject<Omit<{
485
504
  type: z.ZodLiteral<"native">;
@@ -514,6 +533,7 @@ export declare const estimatedFeesSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
514
533
  gasConsumed: bigint;
515
534
  gasPrice: bigint;
516
535
  }>;
536
+ overallFee: z.ZodOptional<z.ZodBigInt>;
517
537
  }, "type">, "strip", z.ZodTypeAny, {
518
538
  feeTokenAddress: `0x${string}`;
519
539
  l1Gas: {
@@ -528,6 +548,7 @@ export declare const estimatedFeesSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
528
548
  gasConsumed: bigint;
529
549
  gasPrice: bigint;
530
550
  };
551
+ overallFee?: bigint | undefined;
531
552
  }, {
532
553
  feeTokenAddress: string;
533
554
  l1Gas: {
@@ -542,6 +563,7 @@ export declare const estimatedFeesSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
542
563
  gasConsumed: bigint;
543
564
  gasPrice: bigint;
544
565
  };
566
+ overallFee?: bigint | undefined;
545
567
  }>>;
546
568
  }, "strip", z.ZodTypeAny, {
547
569
  type: "native";
@@ -559,6 +581,7 @@ export declare const estimatedFeesSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
559
581
  gasConsumed: bigint;
560
582
  gasPrice: bigint;
561
583
  };
584
+ overallFee?: bigint | undefined;
562
585
  };
563
586
  deployment?: {
564
587
  feeTokenAddress: `0x${string}`;
@@ -574,6 +597,7 @@ export declare const estimatedFeesSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
574
597
  gasConsumed: bigint;
575
598
  gasPrice: bigint;
576
599
  };
600
+ overallFee?: bigint | undefined;
577
601
  } | undefined;
578
602
  }, {
579
603
  type: "native";
@@ -591,6 +615,7 @@ export declare const estimatedFeesSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
591
615
  gasConsumed: bigint;
592
616
  gasPrice: bigint;
593
617
  };
618
+ overallFee?: bigint | undefined;
594
619
  };
595
620
  deployment?: {
596
621
  feeTokenAddress: string;
@@ -606,6 +631,7 @@ export declare const estimatedFeesSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
606
631
  gasConsumed: bigint;
607
632
  gasPrice: bigint;
608
633
  };
634
+ overallFee?: bigint | undefined;
609
635
  } | undefined;
610
636
  }>, z.ZodObject<{
611
637
  type: z.ZodLiteral<"paymaster">;
@@ -616,12 +642,12 @@ export declare const estimatedFeesSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
616
642
  overallFee: z.ZodBigInt;
617
643
  }, "type">, "strip", z.ZodTypeAny, {
618
644
  feeTokenAddress: `0x${string}`;
619
- maxFee: bigint;
620
645
  overallFee: bigint;
646
+ maxFee: bigint;
621
647
  }, {
622
648
  feeTokenAddress: string;
623
- maxFee: bigint;
624
649
  overallFee: bigint;
650
+ maxFee: bigint;
625
651
  }>;
626
652
  deployment: z.ZodOptional<z.ZodObject<Omit<{
627
653
  type: z.ZodLiteral<"paymaster">;
@@ -630,36 +656,36 @@ export declare const estimatedFeesSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
630
656
  overallFee: z.ZodBigInt;
631
657
  }, "type">, "strip", z.ZodTypeAny, {
632
658
  feeTokenAddress: `0x${string}`;
633
- maxFee: bigint;
634
659
  overallFee: bigint;
660
+ maxFee: bigint;
635
661
  }, {
636
662
  feeTokenAddress: string;
637
- maxFee: bigint;
638
663
  overallFee: bigint;
664
+ maxFee: bigint;
639
665
  }>>;
640
666
  }, "strip", z.ZodTypeAny, {
641
667
  type: "paymaster";
642
668
  transactions: {
643
669
  feeTokenAddress: `0x${string}`;
644
- maxFee: bigint;
645
670
  overallFee: bigint;
671
+ maxFee: bigint;
646
672
  };
647
673
  deployment?: {
648
674
  feeTokenAddress: `0x${string}`;
649
- maxFee: bigint;
650
675
  overallFee: bigint;
676
+ maxFee: bigint;
651
677
  } | undefined;
652
678
  }, {
653
679
  type: "paymaster";
654
680
  transactions: {
655
681
  feeTokenAddress: string;
656
- maxFee: bigint;
657
682
  overallFee: bigint;
683
+ maxFee: bigint;
658
684
  };
659
685
  deployment?: {
660
686
  feeTokenAddress: string;
661
- maxFee: bigint;
662
687
  overallFee: bigint;
688
+ maxFee: bigint;
663
689
  } | undefined;
664
690
  }>]>;
665
691
  export type EstimatedFees = z.infer<typeof estimatedFeesSchema>;
@@ -708,6 +734,7 @@ export declare const feeEstimationResultSchema: z.ZodObject<{
708
734
  gasConsumed: bigint;
709
735
  gasPrice: bigint;
710
736
  }>;
737
+ overallFee: z.ZodOptional<z.ZodBigInt>;
711
738
  }, "type">, "strip", z.ZodTypeAny, {
712
739
  feeTokenAddress: `0x${string}`;
713
740
  l1Gas: {
@@ -722,6 +749,7 @@ export declare const feeEstimationResultSchema: z.ZodObject<{
722
749
  gasConsumed: bigint;
723
750
  gasPrice: bigint;
724
751
  };
752
+ overallFee?: bigint | undefined;
725
753
  }, {
726
754
  feeTokenAddress: string;
727
755
  l1Gas: {
@@ -736,6 +764,7 @@ export declare const feeEstimationResultSchema: z.ZodObject<{
736
764
  gasConsumed: bigint;
737
765
  gasPrice: bigint;
738
766
  };
767
+ overallFee?: bigint | undefined;
739
768
  }>;
740
769
  deployment: z.ZodOptional<z.ZodObject<Omit<{
741
770
  type: z.ZodLiteral<"native">;
@@ -770,6 +799,7 @@ export declare const feeEstimationResultSchema: z.ZodObject<{
770
799
  gasConsumed: bigint;
771
800
  gasPrice: bigint;
772
801
  }>;
802
+ overallFee: z.ZodOptional<z.ZodBigInt>;
773
803
  }, "type">, "strip", z.ZodTypeAny, {
774
804
  feeTokenAddress: `0x${string}`;
775
805
  l1Gas: {
@@ -784,6 +814,7 @@ export declare const feeEstimationResultSchema: z.ZodObject<{
784
814
  gasConsumed: bigint;
785
815
  gasPrice: bigint;
786
816
  };
817
+ overallFee?: bigint | undefined;
787
818
  }, {
788
819
  feeTokenAddress: string;
789
820
  l1Gas: {
@@ -798,6 +829,7 @@ export declare const feeEstimationResultSchema: z.ZodObject<{
798
829
  gasConsumed: bigint;
799
830
  gasPrice: bigint;
800
831
  };
832
+ overallFee?: bigint | undefined;
801
833
  }>>;
802
834
  }, "type">, "strip", z.ZodTypeAny, {
803
835
  transactions: {
@@ -814,6 +846,7 @@ export declare const feeEstimationResultSchema: z.ZodObject<{
814
846
  gasConsumed: bigint;
815
847
  gasPrice: bigint;
816
848
  };
849
+ overallFee?: bigint | undefined;
817
850
  };
818
851
  deployment?: {
819
852
  feeTokenAddress: `0x${string}`;
@@ -829,6 +862,7 @@ export declare const feeEstimationResultSchema: z.ZodObject<{
829
862
  gasConsumed: bigint;
830
863
  gasPrice: bigint;
831
864
  };
865
+ overallFee?: bigint | undefined;
832
866
  } | undefined;
833
867
  }, {
834
868
  transactions: {
@@ -845,6 +879,7 @@ export declare const feeEstimationResultSchema: z.ZodObject<{
845
879
  gasConsumed: bigint;
846
880
  gasPrice: bigint;
847
881
  };
882
+ overallFee?: bigint | undefined;
848
883
  };
849
884
  deployment?: {
850
885
  feeTokenAddress: string;
@@ -860,6 +895,7 @@ export declare const feeEstimationResultSchema: z.ZodObject<{
860
895
  gasConsumed: bigint;
861
896
  gasPrice: bigint;
862
897
  };
898
+ overallFee?: bigint | undefined;
863
899
  } | undefined;
864
900
  }>;
865
901
  paymaster: z.ZodOptional<z.ZodObject<Omit<{
@@ -871,12 +907,12 @@ export declare const feeEstimationResultSchema: z.ZodObject<{
871
907
  overallFee: z.ZodBigInt;
872
908
  }, "type">, "strip", z.ZodTypeAny, {
873
909
  feeTokenAddress: `0x${string}`;
874
- maxFee: bigint;
875
910
  overallFee: bigint;
911
+ maxFee: bigint;
876
912
  }, {
877
913
  feeTokenAddress: string;
878
- maxFee: bigint;
879
914
  overallFee: bigint;
915
+ maxFee: bigint;
880
916
  }>;
881
917
  deployment: z.ZodOptional<z.ZodObject<Omit<{
882
918
  type: z.ZodLiteral<"paymaster">;
@@ -885,34 +921,34 @@ export declare const feeEstimationResultSchema: z.ZodObject<{
885
921
  overallFee: z.ZodBigInt;
886
922
  }, "type">, "strip", z.ZodTypeAny, {
887
923
  feeTokenAddress: `0x${string}`;
888
- maxFee: bigint;
889
924
  overallFee: bigint;
925
+ maxFee: bigint;
890
926
  }, {
891
927
  feeTokenAddress: string;
892
- maxFee: bigint;
893
928
  overallFee: bigint;
929
+ maxFee: bigint;
894
930
  }>>;
895
931
  }, "type">, "strip", z.ZodTypeAny, {
896
932
  transactions: {
897
933
  feeTokenAddress: `0x${string}`;
898
- maxFee: bigint;
899
934
  overallFee: bigint;
935
+ maxFee: bigint;
900
936
  };
901
937
  deployment?: {
902
938
  feeTokenAddress: `0x${string}`;
903
- maxFee: bigint;
904
939
  overallFee: bigint;
940
+ maxFee: bigint;
905
941
  } | undefined;
906
942
  }, {
907
943
  transactions: {
908
944
  feeTokenAddress: string;
909
- maxFee: bigint;
910
945
  overallFee: bigint;
946
+ maxFee: bigint;
911
947
  };
912
948
  deployment?: {
913
949
  feeTokenAddress: string;
914
- maxFee: bigint;
915
950
  overallFee: bigint;
951
+ maxFee: bigint;
916
952
  } | undefined;
917
953
  }>>;
918
954
  }, "strip", z.ZodTypeAny, {
@@ -931,6 +967,7 @@ export declare const feeEstimationResultSchema: z.ZodObject<{
931
967
  gasConsumed: bigint;
932
968
  gasPrice: bigint;
933
969
  };
970
+ overallFee?: bigint | undefined;
934
971
  };
935
972
  deployment?: {
936
973
  feeTokenAddress: `0x${string}`;
@@ -946,18 +983,19 @@ export declare const feeEstimationResultSchema: z.ZodObject<{
946
983
  gasConsumed: bigint;
947
984
  gasPrice: bigint;
948
985
  };
986
+ overallFee?: bigint | undefined;
949
987
  } | undefined;
950
988
  };
951
989
  paymaster?: {
952
990
  transactions: {
953
991
  feeTokenAddress: `0x${string}`;
954
- maxFee: bigint;
955
992
  overallFee: bigint;
993
+ maxFee: bigint;
956
994
  };
957
995
  deployment?: {
958
996
  feeTokenAddress: `0x${string}`;
959
- maxFee: bigint;
960
997
  overallFee: bigint;
998
+ maxFee: bigint;
961
999
  } | undefined;
962
1000
  } | undefined;
963
1001
  }, {
@@ -976,6 +1014,7 @@ export declare const feeEstimationResultSchema: z.ZodObject<{
976
1014
  gasConsumed: bigint;
977
1015
  gasPrice: bigint;
978
1016
  };
1017
+ overallFee?: bigint | undefined;
979
1018
  };
980
1019
  deployment?: {
981
1020
  feeTokenAddress: string;
@@ -991,18 +1030,19 @@ export declare const feeEstimationResultSchema: z.ZodObject<{
991
1030
  gasConsumed: bigint;
992
1031
  gasPrice: bigint;
993
1032
  };
1033
+ overallFee?: bigint | undefined;
994
1034
  } | undefined;
995
1035
  };
996
1036
  paymaster?: {
997
1037
  transactions: {
998
1038
  feeTokenAddress: string;
999
- maxFee: bigint;
1000
1039
  overallFee: bigint;
1040
+ maxFee: bigint;
1001
1041
  };
1002
1042
  deployment?: {
1003
1043
  feeTokenAddress: string;
1004
- maxFee: bigint;
1005
1044
  overallFee: bigint;
1045
+ maxFee: bigint;
1006
1046
  } | undefined;
1007
1047
  } | undefined;
1008
1048
  }>;
@@ -8,13 +8,14 @@ const t = e.object({
8
8
  feeTokenAddress: o,
9
9
  l1Gas: t,
10
10
  l2Gas: t,
11
- l1DataGas: t
11
+ l1DataGas: t,
12
+ overallFee: e.bigint().optional()
13
+ // overall fee computed by backend
12
14
  }), i = e.object({
13
15
  type: e.literal("paymaster"),
14
16
  feeTokenAddress: o,
15
17
  maxFee: e.bigint(),
16
18
  overallFee: e.bigint()
17
- // might not be needed, maybe remove?
18
19
  }), c = e.discriminatedUnion("type", [
19
20
  a,
20
21
  i
@@ -22,24 +23,24 @@ const t = e.object({
22
23
  type: e.literal("native"),
23
24
  transactions: a.omit({ type: !0 }),
24
25
  deployment: a.omit({ type: !0 }).optional()
25
- }), m = e.object({
26
+ }), n = e.object({
26
27
  type: e.literal("paymaster"),
27
28
  transactions: i.omit({ type: !0 }),
28
29
  deployment: i.omit({ type: !0 }).optional()
29
30
  }), p = e.discriminatedUnion("type", [
30
31
  s,
31
- m
32
- ]), d = e.object({
32
+ n
33
+ ]), l = e.object({
33
34
  native: s.omit({ type: !0 }),
34
- paymaster: m.omit({ type: !0 }).optional()
35
+ paymaster: n.omit({ type: !0 }).optional()
35
36
  });
36
37
  export {
37
38
  c as estimatedFeeSchema,
38
39
  p as estimatedFeesSchema,
39
- d as feeEstimationResultSchema,
40
+ l as feeEstimationResultSchema,
40
41
  a as nativeEstimatedFeeSchema,
41
42
  s as nativeEstimatedFeesSchema,
42
43
  i as paymasterEstimatedFeeSchema,
43
- m as paymasterEstimatedFeesSchema,
44
+ n as paymasterEstimatedFeesSchema,
44
45
  t as resourceBoundsSchema
45
46
  };