@argent/x-shared 1.59.0 → 1.60.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.
@@ -1,4 +1,5 @@
1
1
  import { z } from 'zod';
2
+ import { UnionEvaluate } from '../../../utils/type.utils';
2
3
  export declare const estimatedFeeSchema: z.ZodObject<{
3
4
  feeTokenAddress: z.ZodEffects<z.ZodPipeline<z.ZodString, z.ZodEffects<z.ZodString, string, string>>, `0x${string}`, string>;
4
5
  amount: z.ZodBigInt;
@@ -202,3 +203,850 @@ export interface EstimatedFeesEnriched extends EstimatedFees {
202
203
  id: string;
203
204
  timestamp: number;
204
205
  }
206
+ export declare const nativeEstimatedFeeSchema: z.ZodObject<z.objectUtil.extendShape<{
207
+ feeTokenAddress: z.ZodEffects<z.ZodPipeline<z.ZodString, z.ZodEffects<z.ZodString, string, string>>, `0x${string}`, string>;
208
+ amount: z.ZodBigInt;
209
+ pricePerUnit: z.ZodBigInt;
210
+ max: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
211
+ amount: z.ZodBigInt;
212
+ pricePerUnit: z.ZodBigInt;
213
+ }, "strip", z.ZodTypeAny, {
214
+ amount: bigint;
215
+ pricePerUnit: bigint;
216
+ }, {
217
+ amount: bigint;
218
+ pricePerUnit: bigint;
219
+ }>, z.ZodObject<{
220
+ maxFee: z.ZodBigInt;
221
+ }, "strip", z.ZodTypeAny, {
222
+ maxFee: bigint;
223
+ }, {
224
+ maxFee: bigint;
225
+ }>]>>;
226
+ dataGasConsumed: z.ZodOptional<z.ZodBigInt>;
227
+ dataGasPrice: z.ZodOptional<z.ZodBigInt>;
228
+ }, {
229
+ type: z.ZodLiteral<"native">;
230
+ }>, "strip", z.ZodTypeAny, {
231
+ type: "native";
232
+ amount: bigint;
233
+ pricePerUnit: bigint;
234
+ feeTokenAddress: `0x${string}`;
235
+ max?: {
236
+ amount: bigint;
237
+ pricePerUnit: bigint;
238
+ } | {
239
+ maxFee: bigint;
240
+ } | undefined;
241
+ dataGasConsumed?: bigint | undefined;
242
+ dataGasPrice?: bigint | undefined;
243
+ }, {
244
+ type: "native";
245
+ amount: bigint;
246
+ pricePerUnit: bigint;
247
+ feeTokenAddress: string;
248
+ max?: {
249
+ amount: bigint;
250
+ pricePerUnit: bigint;
251
+ } | {
252
+ maxFee: bigint;
253
+ } | undefined;
254
+ dataGasConsumed?: bigint | undefined;
255
+ dataGasPrice?: bigint | undefined;
256
+ }>;
257
+ export declare const paymasterEstimatedFeeSchema: z.ZodObject<{
258
+ type: z.ZodLiteral<"paymaster">;
259
+ feeTokenAddress: z.ZodEffects<z.ZodPipeline<z.ZodString, z.ZodEffects<z.ZodString, string, string>>, `0x${string}`, string>;
260
+ maxFee: z.ZodBigInt;
261
+ overallFee: z.ZodBigInt;
262
+ }, "strip", z.ZodTypeAny, {
263
+ type: "paymaster";
264
+ maxFee: bigint;
265
+ feeTokenAddress: `0x${string}`;
266
+ overallFee: bigint;
267
+ }, {
268
+ type: "paymaster";
269
+ maxFee: bigint;
270
+ feeTokenAddress: string;
271
+ overallFee: bigint;
272
+ }>;
273
+ export declare const estimatedFeeV2Schema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z.objectUtil.extendShape<{
274
+ feeTokenAddress: z.ZodEffects<z.ZodPipeline<z.ZodString, z.ZodEffects<z.ZodString, string, string>>, `0x${string}`, string>;
275
+ amount: z.ZodBigInt;
276
+ pricePerUnit: z.ZodBigInt;
277
+ max: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
278
+ amount: z.ZodBigInt;
279
+ pricePerUnit: z.ZodBigInt;
280
+ }, "strip", z.ZodTypeAny, {
281
+ amount: bigint;
282
+ pricePerUnit: bigint;
283
+ }, {
284
+ amount: bigint;
285
+ pricePerUnit: bigint;
286
+ }>, z.ZodObject<{
287
+ maxFee: z.ZodBigInt;
288
+ }, "strip", z.ZodTypeAny, {
289
+ maxFee: bigint;
290
+ }, {
291
+ maxFee: bigint;
292
+ }>]>>;
293
+ dataGasConsumed: z.ZodOptional<z.ZodBigInt>;
294
+ dataGasPrice: z.ZodOptional<z.ZodBigInt>;
295
+ }, {
296
+ type: z.ZodLiteral<"native">;
297
+ }>, "strip", z.ZodTypeAny, {
298
+ type: "native";
299
+ amount: bigint;
300
+ pricePerUnit: bigint;
301
+ feeTokenAddress: `0x${string}`;
302
+ max?: {
303
+ amount: bigint;
304
+ pricePerUnit: bigint;
305
+ } | {
306
+ maxFee: bigint;
307
+ } | undefined;
308
+ dataGasConsumed?: bigint | undefined;
309
+ dataGasPrice?: bigint | undefined;
310
+ }, {
311
+ type: "native";
312
+ amount: bigint;
313
+ pricePerUnit: bigint;
314
+ feeTokenAddress: string;
315
+ max?: {
316
+ amount: bigint;
317
+ pricePerUnit: bigint;
318
+ } | {
319
+ maxFee: bigint;
320
+ } | undefined;
321
+ dataGasConsumed?: bigint | undefined;
322
+ dataGasPrice?: bigint | undefined;
323
+ }>, z.ZodObject<{
324
+ type: z.ZodLiteral<"paymaster">;
325
+ feeTokenAddress: z.ZodEffects<z.ZodPipeline<z.ZodString, z.ZodEffects<z.ZodString, string, string>>, `0x${string}`, string>;
326
+ maxFee: z.ZodBigInt;
327
+ overallFee: z.ZodBigInt;
328
+ }, "strip", z.ZodTypeAny, {
329
+ type: "paymaster";
330
+ maxFee: bigint;
331
+ feeTokenAddress: `0x${string}`;
332
+ overallFee: bigint;
333
+ }, {
334
+ type: "paymaster";
335
+ maxFee: bigint;
336
+ feeTokenAddress: string;
337
+ overallFee: bigint;
338
+ }>]>;
339
+ export type EstimatedFeeV2 = z.infer<typeof estimatedFeeV2Schema>;
340
+ export declare const nativeEstimatedFeesSchema: z.ZodObject<{
341
+ type: z.ZodLiteral<"native">;
342
+ transactions: z.ZodObject<{
343
+ feeTokenAddress: z.ZodEffects<z.ZodPipeline<z.ZodString, z.ZodEffects<z.ZodString, string, string>>, `0x${string}`, string>;
344
+ amount: z.ZodBigInt;
345
+ pricePerUnit: z.ZodBigInt;
346
+ max: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
347
+ amount: z.ZodBigInt;
348
+ pricePerUnit: z.ZodBigInt;
349
+ }, "strip", z.ZodTypeAny, {
350
+ amount: bigint;
351
+ pricePerUnit: bigint;
352
+ }, {
353
+ amount: bigint;
354
+ pricePerUnit: bigint;
355
+ }>, z.ZodObject<{
356
+ maxFee: z.ZodBigInt;
357
+ }, "strip", z.ZodTypeAny, {
358
+ maxFee: bigint;
359
+ }, {
360
+ maxFee: bigint;
361
+ }>]>>;
362
+ dataGasConsumed: z.ZodOptional<z.ZodBigInt>;
363
+ dataGasPrice: z.ZodOptional<z.ZodBigInt>;
364
+ }, "strip", z.ZodTypeAny, {
365
+ amount: bigint;
366
+ pricePerUnit: bigint;
367
+ feeTokenAddress: `0x${string}`;
368
+ max?: {
369
+ amount: bigint;
370
+ pricePerUnit: bigint;
371
+ } | {
372
+ maxFee: bigint;
373
+ } | undefined;
374
+ dataGasConsumed?: bigint | undefined;
375
+ dataGasPrice?: bigint | undefined;
376
+ }, {
377
+ amount: bigint;
378
+ pricePerUnit: bigint;
379
+ feeTokenAddress: string;
380
+ max?: {
381
+ amount: bigint;
382
+ pricePerUnit: bigint;
383
+ } | {
384
+ maxFee: bigint;
385
+ } | undefined;
386
+ dataGasConsumed?: bigint | undefined;
387
+ dataGasPrice?: bigint | undefined;
388
+ }>;
389
+ deployment: z.ZodOptional<z.ZodObject<{
390
+ feeTokenAddress: z.ZodEffects<z.ZodPipeline<z.ZodString, z.ZodEffects<z.ZodString, string, string>>, `0x${string}`, string>;
391
+ amount: z.ZodBigInt;
392
+ pricePerUnit: z.ZodBigInt;
393
+ max: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
394
+ amount: z.ZodBigInt;
395
+ pricePerUnit: z.ZodBigInt;
396
+ }, "strip", z.ZodTypeAny, {
397
+ amount: bigint;
398
+ pricePerUnit: bigint;
399
+ }, {
400
+ amount: bigint;
401
+ pricePerUnit: bigint;
402
+ }>, z.ZodObject<{
403
+ maxFee: z.ZodBigInt;
404
+ }, "strip", z.ZodTypeAny, {
405
+ maxFee: bigint;
406
+ }, {
407
+ maxFee: bigint;
408
+ }>]>>;
409
+ dataGasConsumed: z.ZodOptional<z.ZodBigInt>;
410
+ dataGasPrice: z.ZodOptional<z.ZodBigInt>;
411
+ }, "strip", z.ZodTypeAny, {
412
+ amount: bigint;
413
+ pricePerUnit: bigint;
414
+ feeTokenAddress: `0x${string}`;
415
+ max?: {
416
+ amount: bigint;
417
+ pricePerUnit: bigint;
418
+ } | {
419
+ maxFee: bigint;
420
+ } | undefined;
421
+ dataGasConsumed?: bigint | undefined;
422
+ dataGasPrice?: bigint | undefined;
423
+ }, {
424
+ amount: bigint;
425
+ pricePerUnit: bigint;
426
+ feeTokenAddress: string;
427
+ max?: {
428
+ amount: bigint;
429
+ pricePerUnit: bigint;
430
+ } | {
431
+ maxFee: bigint;
432
+ } | undefined;
433
+ dataGasConsumed?: bigint | undefined;
434
+ dataGasPrice?: bigint | undefined;
435
+ }>>;
436
+ }, "strip", z.ZodTypeAny, {
437
+ type: "native";
438
+ transactions: {
439
+ amount: bigint;
440
+ pricePerUnit: bigint;
441
+ feeTokenAddress: `0x${string}`;
442
+ max?: {
443
+ amount: bigint;
444
+ pricePerUnit: bigint;
445
+ } | {
446
+ maxFee: bigint;
447
+ } | undefined;
448
+ dataGasConsumed?: bigint | undefined;
449
+ dataGasPrice?: bigint | undefined;
450
+ };
451
+ deployment?: {
452
+ amount: bigint;
453
+ pricePerUnit: bigint;
454
+ feeTokenAddress: `0x${string}`;
455
+ max?: {
456
+ amount: bigint;
457
+ pricePerUnit: bigint;
458
+ } | {
459
+ maxFee: bigint;
460
+ } | undefined;
461
+ dataGasConsumed?: bigint | undefined;
462
+ dataGasPrice?: bigint | undefined;
463
+ } | undefined;
464
+ }, {
465
+ type: "native";
466
+ transactions: {
467
+ amount: bigint;
468
+ pricePerUnit: bigint;
469
+ feeTokenAddress: string;
470
+ max?: {
471
+ amount: bigint;
472
+ pricePerUnit: bigint;
473
+ } | {
474
+ maxFee: bigint;
475
+ } | undefined;
476
+ dataGasConsumed?: bigint | undefined;
477
+ dataGasPrice?: bigint | undefined;
478
+ };
479
+ deployment?: {
480
+ amount: bigint;
481
+ pricePerUnit: bigint;
482
+ feeTokenAddress: string;
483
+ max?: {
484
+ amount: bigint;
485
+ pricePerUnit: bigint;
486
+ } | {
487
+ maxFee: bigint;
488
+ } | undefined;
489
+ dataGasConsumed?: bigint | undefined;
490
+ dataGasPrice?: bigint | undefined;
491
+ } | undefined;
492
+ }>;
493
+ export declare const paymasterEstimatedFeesSchema: z.ZodObject<{
494
+ type: z.ZodLiteral<"paymaster">;
495
+ transactions: z.ZodObject<Omit<{
496
+ type: z.ZodLiteral<"paymaster">;
497
+ feeTokenAddress: z.ZodEffects<z.ZodPipeline<z.ZodString, z.ZodEffects<z.ZodString, string, string>>, `0x${string}`, string>;
498
+ maxFee: z.ZodBigInt;
499
+ overallFee: z.ZodBigInt;
500
+ }, "type">, "strip", z.ZodTypeAny, {
501
+ maxFee: bigint;
502
+ feeTokenAddress: `0x${string}`;
503
+ overallFee: bigint;
504
+ }, {
505
+ maxFee: bigint;
506
+ feeTokenAddress: string;
507
+ overallFee: bigint;
508
+ }>;
509
+ deployment: z.ZodOptional<z.ZodObject<Omit<{
510
+ type: z.ZodLiteral<"paymaster">;
511
+ feeTokenAddress: z.ZodEffects<z.ZodPipeline<z.ZodString, z.ZodEffects<z.ZodString, string, string>>, `0x${string}`, string>;
512
+ maxFee: z.ZodBigInt;
513
+ overallFee: z.ZodBigInt;
514
+ }, "type">, "strip", z.ZodTypeAny, {
515
+ maxFee: bigint;
516
+ feeTokenAddress: `0x${string}`;
517
+ overallFee: bigint;
518
+ }, {
519
+ maxFee: bigint;
520
+ feeTokenAddress: string;
521
+ overallFee: bigint;
522
+ }>>;
523
+ }, "strip", z.ZodTypeAny, {
524
+ type: "paymaster";
525
+ transactions: {
526
+ maxFee: bigint;
527
+ feeTokenAddress: `0x${string}`;
528
+ overallFee: bigint;
529
+ };
530
+ deployment?: {
531
+ maxFee: bigint;
532
+ feeTokenAddress: `0x${string}`;
533
+ overallFee: bigint;
534
+ } | undefined;
535
+ }, {
536
+ type: "paymaster";
537
+ transactions: {
538
+ maxFee: bigint;
539
+ feeTokenAddress: string;
540
+ overallFee: bigint;
541
+ };
542
+ deployment?: {
543
+ maxFee: bigint;
544
+ feeTokenAddress: string;
545
+ overallFee: bigint;
546
+ } | undefined;
547
+ }>;
548
+ export declare const estimatedFeesV2Schema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
549
+ type: z.ZodLiteral<"native">;
550
+ transactions: z.ZodObject<{
551
+ feeTokenAddress: z.ZodEffects<z.ZodPipeline<z.ZodString, z.ZodEffects<z.ZodString, string, string>>, `0x${string}`, string>;
552
+ amount: z.ZodBigInt;
553
+ pricePerUnit: z.ZodBigInt;
554
+ max: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
555
+ amount: z.ZodBigInt;
556
+ pricePerUnit: z.ZodBigInt;
557
+ }, "strip", z.ZodTypeAny, {
558
+ amount: bigint;
559
+ pricePerUnit: bigint;
560
+ }, {
561
+ amount: bigint;
562
+ pricePerUnit: bigint;
563
+ }>, z.ZodObject<{
564
+ maxFee: z.ZodBigInt;
565
+ }, "strip", z.ZodTypeAny, {
566
+ maxFee: bigint;
567
+ }, {
568
+ maxFee: bigint;
569
+ }>]>>;
570
+ dataGasConsumed: z.ZodOptional<z.ZodBigInt>;
571
+ dataGasPrice: z.ZodOptional<z.ZodBigInt>;
572
+ }, "strip", z.ZodTypeAny, {
573
+ amount: bigint;
574
+ pricePerUnit: bigint;
575
+ feeTokenAddress: `0x${string}`;
576
+ max?: {
577
+ amount: bigint;
578
+ pricePerUnit: bigint;
579
+ } | {
580
+ maxFee: bigint;
581
+ } | undefined;
582
+ dataGasConsumed?: bigint | undefined;
583
+ dataGasPrice?: bigint | undefined;
584
+ }, {
585
+ amount: bigint;
586
+ pricePerUnit: bigint;
587
+ feeTokenAddress: string;
588
+ max?: {
589
+ amount: bigint;
590
+ pricePerUnit: bigint;
591
+ } | {
592
+ maxFee: bigint;
593
+ } | undefined;
594
+ dataGasConsumed?: bigint | undefined;
595
+ dataGasPrice?: bigint | undefined;
596
+ }>;
597
+ deployment: z.ZodOptional<z.ZodObject<{
598
+ feeTokenAddress: z.ZodEffects<z.ZodPipeline<z.ZodString, z.ZodEffects<z.ZodString, string, string>>, `0x${string}`, string>;
599
+ amount: z.ZodBigInt;
600
+ pricePerUnit: z.ZodBigInt;
601
+ max: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
602
+ amount: z.ZodBigInt;
603
+ pricePerUnit: z.ZodBigInt;
604
+ }, "strip", z.ZodTypeAny, {
605
+ amount: bigint;
606
+ pricePerUnit: bigint;
607
+ }, {
608
+ amount: bigint;
609
+ pricePerUnit: bigint;
610
+ }>, z.ZodObject<{
611
+ maxFee: z.ZodBigInt;
612
+ }, "strip", z.ZodTypeAny, {
613
+ maxFee: bigint;
614
+ }, {
615
+ maxFee: bigint;
616
+ }>]>>;
617
+ dataGasConsumed: z.ZodOptional<z.ZodBigInt>;
618
+ dataGasPrice: z.ZodOptional<z.ZodBigInt>;
619
+ }, "strip", z.ZodTypeAny, {
620
+ amount: bigint;
621
+ pricePerUnit: bigint;
622
+ feeTokenAddress: `0x${string}`;
623
+ max?: {
624
+ amount: bigint;
625
+ pricePerUnit: bigint;
626
+ } | {
627
+ maxFee: bigint;
628
+ } | undefined;
629
+ dataGasConsumed?: bigint | undefined;
630
+ dataGasPrice?: bigint | undefined;
631
+ }, {
632
+ amount: bigint;
633
+ pricePerUnit: bigint;
634
+ feeTokenAddress: string;
635
+ max?: {
636
+ amount: bigint;
637
+ pricePerUnit: bigint;
638
+ } | {
639
+ maxFee: bigint;
640
+ } | undefined;
641
+ dataGasConsumed?: bigint | undefined;
642
+ dataGasPrice?: bigint | undefined;
643
+ }>>;
644
+ }, "strip", z.ZodTypeAny, {
645
+ type: "native";
646
+ transactions: {
647
+ amount: bigint;
648
+ pricePerUnit: bigint;
649
+ feeTokenAddress: `0x${string}`;
650
+ max?: {
651
+ amount: bigint;
652
+ pricePerUnit: bigint;
653
+ } | {
654
+ maxFee: bigint;
655
+ } | undefined;
656
+ dataGasConsumed?: bigint | undefined;
657
+ dataGasPrice?: bigint | undefined;
658
+ };
659
+ deployment?: {
660
+ amount: bigint;
661
+ pricePerUnit: bigint;
662
+ feeTokenAddress: `0x${string}`;
663
+ max?: {
664
+ amount: bigint;
665
+ pricePerUnit: bigint;
666
+ } | {
667
+ maxFee: bigint;
668
+ } | undefined;
669
+ dataGasConsumed?: bigint | undefined;
670
+ dataGasPrice?: bigint | undefined;
671
+ } | undefined;
672
+ }, {
673
+ type: "native";
674
+ transactions: {
675
+ amount: bigint;
676
+ pricePerUnit: bigint;
677
+ feeTokenAddress: string;
678
+ max?: {
679
+ amount: bigint;
680
+ pricePerUnit: bigint;
681
+ } | {
682
+ maxFee: bigint;
683
+ } | undefined;
684
+ dataGasConsumed?: bigint | undefined;
685
+ dataGasPrice?: bigint | undefined;
686
+ };
687
+ deployment?: {
688
+ amount: bigint;
689
+ pricePerUnit: bigint;
690
+ feeTokenAddress: string;
691
+ max?: {
692
+ amount: bigint;
693
+ pricePerUnit: bigint;
694
+ } | {
695
+ maxFee: bigint;
696
+ } | undefined;
697
+ dataGasConsumed?: bigint | undefined;
698
+ dataGasPrice?: bigint | undefined;
699
+ } | undefined;
700
+ }>, z.ZodObject<{
701
+ type: z.ZodLiteral<"paymaster">;
702
+ transactions: z.ZodObject<Omit<{
703
+ type: z.ZodLiteral<"paymaster">;
704
+ feeTokenAddress: z.ZodEffects<z.ZodPipeline<z.ZodString, z.ZodEffects<z.ZodString, string, string>>, `0x${string}`, string>;
705
+ maxFee: z.ZodBigInt;
706
+ overallFee: z.ZodBigInt;
707
+ }, "type">, "strip", z.ZodTypeAny, {
708
+ maxFee: bigint;
709
+ feeTokenAddress: `0x${string}`;
710
+ overallFee: bigint;
711
+ }, {
712
+ maxFee: bigint;
713
+ feeTokenAddress: string;
714
+ overallFee: bigint;
715
+ }>;
716
+ deployment: z.ZodOptional<z.ZodObject<Omit<{
717
+ type: z.ZodLiteral<"paymaster">;
718
+ feeTokenAddress: z.ZodEffects<z.ZodPipeline<z.ZodString, z.ZodEffects<z.ZodString, string, string>>, `0x${string}`, string>;
719
+ maxFee: z.ZodBigInt;
720
+ overallFee: z.ZodBigInt;
721
+ }, "type">, "strip", z.ZodTypeAny, {
722
+ maxFee: bigint;
723
+ feeTokenAddress: `0x${string}`;
724
+ overallFee: bigint;
725
+ }, {
726
+ maxFee: bigint;
727
+ feeTokenAddress: string;
728
+ overallFee: bigint;
729
+ }>>;
730
+ }, "strip", z.ZodTypeAny, {
731
+ type: "paymaster";
732
+ transactions: {
733
+ maxFee: bigint;
734
+ feeTokenAddress: `0x${string}`;
735
+ overallFee: bigint;
736
+ };
737
+ deployment?: {
738
+ maxFee: bigint;
739
+ feeTokenAddress: `0x${string}`;
740
+ overallFee: bigint;
741
+ } | undefined;
742
+ }, {
743
+ type: "paymaster";
744
+ transactions: {
745
+ maxFee: bigint;
746
+ feeTokenAddress: string;
747
+ overallFee: bigint;
748
+ };
749
+ deployment?: {
750
+ maxFee: bigint;
751
+ feeTokenAddress: string;
752
+ overallFee: bigint;
753
+ } | undefined;
754
+ }>]>;
755
+ export type EstimatedFeesV2 = z.infer<typeof estimatedFeesV2Schema>;
756
+ export type EstimatedFeesV2Enriched = UnionEvaluate<EstimatedFeesV2 & {
757
+ id: string;
758
+ timestamp: number;
759
+ }>;
760
+ export type NativeEstimatedFee = z.infer<typeof nativeEstimatedFeeSchema>;
761
+ export type PaymasterEstimatedFee = z.infer<typeof paymasterEstimatedFeeSchema>;
762
+ export type NativeEstimatedFees = z.infer<typeof nativeEstimatedFeesSchema>;
763
+ export type PaymasterEstimatedFees = z.infer<typeof paymasterEstimatedFeesSchema>;
764
+ export declare const feeEstimationResultV2Schema: z.ZodObject<{
765
+ native: z.ZodObject<Omit<{
766
+ type: z.ZodLiteral<"native">;
767
+ transactions: z.ZodObject<{
768
+ feeTokenAddress: z.ZodEffects<z.ZodPipeline<z.ZodString, z.ZodEffects<z.ZodString, string, string>>, `0x${string}`, string>;
769
+ amount: z.ZodBigInt;
770
+ pricePerUnit: z.ZodBigInt;
771
+ max: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
772
+ amount: z.ZodBigInt;
773
+ pricePerUnit: z.ZodBigInt;
774
+ }, "strip", z.ZodTypeAny, {
775
+ amount: bigint;
776
+ pricePerUnit: bigint;
777
+ }, {
778
+ amount: bigint;
779
+ pricePerUnit: bigint;
780
+ }>, z.ZodObject<{
781
+ maxFee: z.ZodBigInt;
782
+ }, "strip", z.ZodTypeAny, {
783
+ maxFee: bigint;
784
+ }, {
785
+ maxFee: bigint;
786
+ }>]>>;
787
+ dataGasConsumed: z.ZodOptional<z.ZodBigInt>;
788
+ dataGasPrice: z.ZodOptional<z.ZodBigInt>;
789
+ }, "strip", z.ZodTypeAny, {
790
+ amount: bigint;
791
+ pricePerUnit: bigint;
792
+ feeTokenAddress: `0x${string}`;
793
+ max?: {
794
+ amount: bigint;
795
+ pricePerUnit: bigint;
796
+ } | {
797
+ maxFee: bigint;
798
+ } | undefined;
799
+ dataGasConsumed?: bigint | undefined;
800
+ dataGasPrice?: bigint | undefined;
801
+ }, {
802
+ amount: bigint;
803
+ pricePerUnit: bigint;
804
+ feeTokenAddress: string;
805
+ max?: {
806
+ amount: bigint;
807
+ pricePerUnit: bigint;
808
+ } | {
809
+ maxFee: bigint;
810
+ } | undefined;
811
+ dataGasConsumed?: bigint | undefined;
812
+ dataGasPrice?: bigint | undefined;
813
+ }>;
814
+ deployment: z.ZodOptional<z.ZodObject<{
815
+ feeTokenAddress: z.ZodEffects<z.ZodPipeline<z.ZodString, z.ZodEffects<z.ZodString, string, string>>, `0x${string}`, string>;
816
+ amount: z.ZodBigInt;
817
+ pricePerUnit: z.ZodBigInt;
818
+ max: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
819
+ amount: z.ZodBigInt;
820
+ pricePerUnit: z.ZodBigInt;
821
+ }, "strip", z.ZodTypeAny, {
822
+ amount: bigint;
823
+ pricePerUnit: bigint;
824
+ }, {
825
+ amount: bigint;
826
+ pricePerUnit: bigint;
827
+ }>, z.ZodObject<{
828
+ maxFee: z.ZodBigInt;
829
+ }, "strip", z.ZodTypeAny, {
830
+ maxFee: bigint;
831
+ }, {
832
+ maxFee: bigint;
833
+ }>]>>;
834
+ dataGasConsumed: z.ZodOptional<z.ZodBigInt>;
835
+ dataGasPrice: z.ZodOptional<z.ZodBigInt>;
836
+ }, "strip", z.ZodTypeAny, {
837
+ amount: bigint;
838
+ pricePerUnit: bigint;
839
+ feeTokenAddress: `0x${string}`;
840
+ max?: {
841
+ amount: bigint;
842
+ pricePerUnit: bigint;
843
+ } | {
844
+ maxFee: bigint;
845
+ } | undefined;
846
+ dataGasConsumed?: bigint | undefined;
847
+ dataGasPrice?: bigint | undefined;
848
+ }, {
849
+ amount: bigint;
850
+ pricePerUnit: bigint;
851
+ feeTokenAddress: string;
852
+ max?: {
853
+ amount: bigint;
854
+ pricePerUnit: bigint;
855
+ } | {
856
+ maxFee: bigint;
857
+ } | undefined;
858
+ dataGasConsumed?: bigint | undefined;
859
+ dataGasPrice?: bigint | undefined;
860
+ }>>;
861
+ }, "type">, "strip", z.ZodTypeAny, {
862
+ transactions: {
863
+ amount: bigint;
864
+ pricePerUnit: bigint;
865
+ feeTokenAddress: `0x${string}`;
866
+ max?: {
867
+ amount: bigint;
868
+ pricePerUnit: bigint;
869
+ } | {
870
+ maxFee: bigint;
871
+ } | undefined;
872
+ dataGasConsumed?: bigint | undefined;
873
+ dataGasPrice?: bigint | undefined;
874
+ };
875
+ deployment?: {
876
+ amount: bigint;
877
+ pricePerUnit: bigint;
878
+ feeTokenAddress: `0x${string}`;
879
+ max?: {
880
+ amount: bigint;
881
+ pricePerUnit: bigint;
882
+ } | {
883
+ maxFee: bigint;
884
+ } | undefined;
885
+ dataGasConsumed?: bigint | undefined;
886
+ dataGasPrice?: bigint | undefined;
887
+ } | undefined;
888
+ }, {
889
+ transactions: {
890
+ amount: bigint;
891
+ pricePerUnit: bigint;
892
+ feeTokenAddress: string;
893
+ max?: {
894
+ amount: bigint;
895
+ pricePerUnit: bigint;
896
+ } | {
897
+ maxFee: bigint;
898
+ } | undefined;
899
+ dataGasConsumed?: bigint | undefined;
900
+ dataGasPrice?: bigint | undefined;
901
+ };
902
+ deployment?: {
903
+ amount: bigint;
904
+ pricePerUnit: bigint;
905
+ feeTokenAddress: string;
906
+ max?: {
907
+ amount: bigint;
908
+ pricePerUnit: bigint;
909
+ } | {
910
+ maxFee: bigint;
911
+ } | undefined;
912
+ dataGasConsumed?: bigint | undefined;
913
+ dataGasPrice?: bigint | undefined;
914
+ } | undefined;
915
+ }>;
916
+ paymaster: z.ZodOptional<z.ZodObject<Omit<{
917
+ type: z.ZodLiteral<"paymaster">;
918
+ transactions: z.ZodObject<Omit<{
919
+ type: z.ZodLiteral<"paymaster">;
920
+ feeTokenAddress: z.ZodEffects<z.ZodPipeline<z.ZodString, z.ZodEffects<z.ZodString, string, string>>, `0x${string}`, string>;
921
+ maxFee: z.ZodBigInt;
922
+ overallFee: z.ZodBigInt;
923
+ }, "type">, "strip", z.ZodTypeAny, {
924
+ maxFee: bigint;
925
+ feeTokenAddress: `0x${string}`;
926
+ overallFee: bigint;
927
+ }, {
928
+ maxFee: bigint;
929
+ feeTokenAddress: string;
930
+ overallFee: bigint;
931
+ }>;
932
+ deployment: z.ZodOptional<z.ZodObject<Omit<{
933
+ type: z.ZodLiteral<"paymaster">;
934
+ feeTokenAddress: z.ZodEffects<z.ZodPipeline<z.ZodString, z.ZodEffects<z.ZodString, string, string>>, `0x${string}`, string>;
935
+ maxFee: z.ZodBigInt;
936
+ overallFee: z.ZodBigInt;
937
+ }, "type">, "strip", z.ZodTypeAny, {
938
+ maxFee: bigint;
939
+ feeTokenAddress: `0x${string}`;
940
+ overallFee: bigint;
941
+ }, {
942
+ maxFee: bigint;
943
+ feeTokenAddress: string;
944
+ overallFee: bigint;
945
+ }>>;
946
+ }, "type">, "strip", z.ZodTypeAny, {
947
+ transactions: {
948
+ maxFee: bigint;
949
+ feeTokenAddress: `0x${string}`;
950
+ overallFee: bigint;
951
+ };
952
+ deployment?: {
953
+ maxFee: bigint;
954
+ feeTokenAddress: `0x${string}`;
955
+ overallFee: bigint;
956
+ } | undefined;
957
+ }, {
958
+ transactions: {
959
+ maxFee: bigint;
960
+ feeTokenAddress: string;
961
+ overallFee: bigint;
962
+ };
963
+ deployment?: {
964
+ maxFee: bigint;
965
+ feeTokenAddress: string;
966
+ overallFee: bigint;
967
+ } | undefined;
968
+ }>>;
969
+ }, "strip", z.ZodTypeAny, {
970
+ native: {
971
+ transactions: {
972
+ amount: bigint;
973
+ pricePerUnit: bigint;
974
+ feeTokenAddress: `0x${string}`;
975
+ max?: {
976
+ amount: bigint;
977
+ pricePerUnit: bigint;
978
+ } | {
979
+ maxFee: bigint;
980
+ } | undefined;
981
+ dataGasConsumed?: bigint | undefined;
982
+ dataGasPrice?: bigint | undefined;
983
+ };
984
+ deployment?: {
985
+ amount: bigint;
986
+ pricePerUnit: bigint;
987
+ feeTokenAddress: `0x${string}`;
988
+ max?: {
989
+ amount: bigint;
990
+ pricePerUnit: bigint;
991
+ } | {
992
+ maxFee: bigint;
993
+ } | undefined;
994
+ dataGasConsumed?: bigint | undefined;
995
+ dataGasPrice?: bigint | undefined;
996
+ } | undefined;
997
+ };
998
+ paymaster?: {
999
+ transactions: {
1000
+ maxFee: bigint;
1001
+ feeTokenAddress: `0x${string}`;
1002
+ overallFee: bigint;
1003
+ };
1004
+ deployment?: {
1005
+ maxFee: bigint;
1006
+ feeTokenAddress: `0x${string}`;
1007
+ overallFee: bigint;
1008
+ } | undefined;
1009
+ } | undefined;
1010
+ }, {
1011
+ native: {
1012
+ transactions: {
1013
+ amount: bigint;
1014
+ pricePerUnit: bigint;
1015
+ feeTokenAddress: string;
1016
+ max?: {
1017
+ amount: bigint;
1018
+ pricePerUnit: bigint;
1019
+ } | {
1020
+ maxFee: bigint;
1021
+ } | undefined;
1022
+ dataGasConsumed?: bigint | undefined;
1023
+ dataGasPrice?: bigint | undefined;
1024
+ };
1025
+ deployment?: {
1026
+ amount: bigint;
1027
+ pricePerUnit: bigint;
1028
+ feeTokenAddress: string;
1029
+ max?: {
1030
+ amount: bigint;
1031
+ pricePerUnit: bigint;
1032
+ } | {
1033
+ maxFee: bigint;
1034
+ } | undefined;
1035
+ dataGasConsumed?: bigint | undefined;
1036
+ dataGasPrice?: bigint | undefined;
1037
+ } | undefined;
1038
+ };
1039
+ paymaster?: {
1040
+ transactions: {
1041
+ maxFee: bigint;
1042
+ feeTokenAddress: string;
1043
+ overallFee: bigint;
1044
+ };
1045
+ deployment?: {
1046
+ maxFee: bigint;
1047
+ feeTokenAddress: string;
1048
+ overallFee: bigint;
1049
+ } | undefined;
1050
+ } | undefined;
1051
+ }>;
1052
+ export type FeeEstimationResultV2 = z.infer<typeof feeEstimationResultV2Schema>;