@pimlico/alto 0.0.0-main.20250227T132020 → 0.0.0-main.20250227T150033

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 (73) hide show
  1. package/esm/executor/utils.js +1 -1
  2. package/esm/rpc/estimation/gasEstimationsV06.js +6 -8
  3. package/esm/rpc/estimation/gasEstimationsV06.js.map +1 -1
  4. package/esm/rpc/estimation/gasEstimationsV07.d.ts +1 -3
  5. package/esm/rpc/estimation/gasEstimationsV07.js +27 -40
  6. package/esm/rpc/estimation/gasEstimationsV07.js.map +1 -1
  7. package/esm/rpc/methods/debug_bundler_dumpMempool.d.ts +18 -18
  8. package/esm/rpc/methods/eth_estimateUserOperationGas.d.ts +48 -48
  9. package/esm/rpc/methods/eth_estimateUserOperationGas.js +6 -1
  10. package/esm/rpc/methods/eth_estimateUserOperationGas.js.map +1 -1
  11. package/esm/rpc/methods/eth_getUserOperationByHash.d.ts +34 -34
  12. package/esm/rpc/methods/eth_sendUserOperation.d.ts +16 -16
  13. package/esm/rpc/methods/eth_sendUserOperation.js +6 -0
  14. package/esm/rpc/methods/eth_sendUserOperation.js.map +1 -1
  15. package/esm/rpc/methods/pimlico_experimental_estimateUserOperationGas7702.d.ts +48 -48
  16. package/esm/rpc/methods/pimlico_experimental_estimateUserOperationGas7702.js +3 -1
  17. package/esm/rpc/methods/pimlico_experimental_estimateUserOperationGas7702.js.map +1 -1
  18. package/esm/rpc/methods/pimlico_experimental_sendUserOperation7702.d.ts +16 -16
  19. package/esm/rpc/methods/pimlico_experimental_sendUserOperation7702.js +4 -1
  20. package/esm/rpc/methods/pimlico_experimental_sendUserOperation7702.js.map +1 -1
  21. package/esm/rpc/methods/pimlico_sendUserOperationNow.d.ts +16 -16
  22. package/esm/rpc/rpcHandler.d.ts +4 -1
  23. package/esm/rpc/rpcHandler.js +8 -6
  24. package/esm/rpc/rpcHandler.js.map +1 -1
  25. package/esm/rpc/validation/SafeValidator.js +13 -3
  26. package/esm/rpc/validation/SafeValidator.js.map +1 -1
  27. package/esm/rpc/validation/tracer.d.ts +4 -1
  28. package/esm/rpc/validation/tracer.js +0 -1
  29. package/esm/rpc/validation/tracer.js.map +1 -1
  30. package/esm/types/schemas.d.ts +506 -506
  31. package/esm/types/schemas.js +4 -4
  32. package/esm/types/schemas.js.map +1 -1
  33. package/esm/utils/helpers.d.ts +3 -4
  34. package/esm/utils/helpers.js +24 -15
  35. package/esm/utils/helpers.js.map +1 -1
  36. package/esm/utils/validation.js +1 -1
  37. package/lib/executor/utils.js +1 -1
  38. package/lib/rpc/estimation/gasEstimationsV06.js +5 -7
  39. package/lib/rpc/estimation/gasEstimationsV06.js.map +1 -1
  40. package/lib/rpc/estimation/gasEstimationsV07.d.ts +1 -3
  41. package/lib/rpc/estimation/gasEstimationsV07.js +26 -39
  42. package/lib/rpc/estimation/gasEstimationsV07.js.map +1 -1
  43. package/lib/rpc/methods/debug_bundler_dumpMempool.d.ts +18 -18
  44. package/lib/rpc/methods/eth_estimateUserOperationGas.d.ts +48 -48
  45. package/lib/rpc/methods/eth_estimateUserOperationGas.js +6 -1
  46. package/lib/rpc/methods/eth_estimateUserOperationGas.js.map +1 -1
  47. package/lib/rpc/methods/eth_getUserOperationByHash.d.ts +34 -34
  48. package/lib/rpc/methods/eth_sendUserOperation.d.ts +16 -16
  49. package/lib/rpc/methods/eth_sendUserOperation.js +6 -0
  50. package/lib/rpc/methods/eth_sendUserOperation.js.map +1 -1
  51. package/lib/rpc/methods/pimlico_experimental_estimateUserOperationGas7702.d.ts +48 -48
  52. package/lib/rpc/methods/pimlico_experimental_estimateUserOperationGas7702.js +3 -1
  53. package/lib/rpc/methods/pimlico_experimental_estimateUserOperationGas7702.js.map +1 -1
  54. package/lib/rpc/methods/pimlico_experimental_sendUserOperation7702.d.ts +16 -16
  55. package/lib/rpc/methods/pimlico_experimental_sendUserOperation7702.js +4 -1
  56. package/lib/rpc/methods/pimlico_experimental_sendUserOperation7702.js.map +1 -1
  57. package/lib/rpc/methods/pimlico_sendUserOperationNow.d.ts +16 -16
  58. package/lib/rpc/rpcHandler.d.ts +4 -1
  59. package/lib/rpc/rpcHandler.js +8 -6
  60. package/lib/rpc/rpcHandler.js.map +1 -1
  61. package/lib/rpc/validation/SafeValidator.js +12 -2
  62. package/lib/rpc/validation/SafeValidator.js.map +1 -1
  63. package/lib/rpc/validation/tracer.d.ts +4 -1
  64. package/lib/rpc/validation/tracer.js +0 -1
  65. package/lib/rpc/validation/tracer.js.map +1 -1
  66. package/lib/types/schemas.d.ts +506 -506
  67. package/lib/types/schemas.js +4 -4
  68. package/lib/types/schemas.js.map +1 -1
  69. package/lib/utils/helpers.d.ts +3 -4
  70. package/lib/utils/helpers.js +26 -17
  71. package/lib/utils/helpers.js.map +1 -1
  72. package/lib/utils/validation.js +1 -1
  73. package/package.json +1 -1
@@ -15,7 +15,7 @@ export declare const ethGetUserOperationByHashHandler: {
15
15
  maxFeePerGas: import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodUnion<[import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber]>, import("zod").ZodBigInt]>, bigint, string | number | bigint>, bigint, string | number | bigint>;
16
16
  paymasterAndData: import("zod").ZodEffects<import("zod").ZodString, `0x${string}`, string>;
17
17
  signature: import("zod").ZodEffects<import("zod").ZodString, `0x${string}`, string>;
18
- eip7702auth: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodObject<{
18
+ eip7702Auth: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodObject<{
19
19
  contractAddress: import("zod").ZodEffects<import("zod").ZodString, `0x${string}`, string>;
20
20
  chainId: import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodUnion<[import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber]>, import("zod").ZodBigInt]>, bigint, string | number | bigint>, bigint, string | number | bigint>, number, string | number | bigint>;
21
21
  nonce: import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodUnion<[import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber]>, import("zod").ZodBigInt]>, bigint, string | number | bigint>, bigint, string | number | bigint>, number, string | number | bigint>;
@@ -52,7 +52,7 @@ export declare const ethGetUserOperationByHashHandler: {
52
52
  maxFeePerGas: bigint;
53
53
  maxPriorityFeePerGas: bigint;
54
54
  signature: `0x${string}`;
55
- eip7702auth?: {
55
+ eip7702Auth?: {
56
56
  nonce: number;
57
57
  contractAddress: `0x${string}`;
58
58
  chainId: number;
@@ -73,7 +73,7 @@ export declare const ethGetUserOperationByHashHandler: {
73
73
  maxFeePerGas: string | number | bigint;
74
74
  maxPriorityFeePerGas: string | number | bigint;
75
75
  signature: string;
76
- eip7702auth?: {
76
+ eip7702Auth?: {
77
77
  nonce: string | number | bigint;
78
78
  contractAddress: string;
79
79
  chainId: string | number | bigint;
@@ -94,7 +94,7 @@ export declare const ethGetUserOperationByHashHandler: {
94
94
  maxFeePerGas: bigint;
95
95
  maxPriorityFeePerGas: bigint;
96
96
  signature: `0x${string}`;
97
- eip7702auth?: {
97
+ eip7702Auth?: {
98
98
  nonce: number;
99
99
  contractAddress: `0x${string}`;
100
100
  chainId: number;
@@ -115,7 +115,7 @@ export declare const ethGetUserOperationByHashHandler: {
115
115
  maxFeePerGas: string | number | bigint;
116
116
  maxPriorityFeePerGas: string | number | bigint;
117
117
  signature: string;
118
- eip7702auth?: {
118
+ eip7702Auth?: {
119
119
  nonce: string | number | bigint;
120
120
  contractAddress: string;
121
121
  chainId: string | number | bigint;
@@ -140,7 +140,7 @@ export declare const ethGetUserOperationByHashHandler: {
140
140
  paymasterPostOpGasLimit: import("zod").ZodEffects<import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodUnion<[import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber]>, import("zod").ZodBigInt]>, bigint, string | number | bigint>, bigint, string | number | bigint>>>, bigint | null, string | number | bigint | null | undefined>;
141
141
  paymasterData: import("zod").ZodEffects<import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodEffects<import("zod").ZodString, `0x${string}`, string>>>, `0x${string}` | null, string | null | undefined>;
142
142
  signature: import("zod").ZodEffects<import("zod").ZodString, `0x${string}`, string>;
143
- eip7702auth: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodObject<{
143
+ eip7702Auth: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodObject<{
144
144
  contractAddress: import("zod").ZodEffects<import("zod").ZodString, `0x${string}`, string>;
145
145
  chainId: import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodUnion<[import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber]>, import("zod").ZodBigInt]>, bigint, string | number | bigint>, bigint, string | number | bigint>, number, string | number | bigint>;
146
146
  nonce: import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodUnion<[import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber]>, import("zod").ZodBigInt]>, bigint, string | number | bigint>, bigint, string | number | bigint>, number, string | number | bigint>;
@@ -181,7 +181,7 @@ export declare const ethGetUserOperationByHashHandler: {
181
181
  paymasterPostOpGasLimit: bigint | null;
182
182
  factoryData: `0x${string}` | null;
183
183
  paymasterData: `0x${string}` | null;
184
- eip7702auth?: {
184
+ eip7702Auth?: {
185
185
  nonce: number;
186
186
  contractAddress: `0x${string}`;
187
187
  chainId: number;
@@ -206,7 +206,7 @@ export declare const ethGetUserOperationByHashHandler: {
206
206
  paymasterVerificationGasLimit?: string | number | bigint | null | undefined;
207
207
  paymasterPostOpGasLimit?: string | number | bigint | null | undefined;
208
208
  paymasterData?: string | null | undefined;
209
- eip7702auth?: {
209
+ eip7702Auth?: {
210
210
  nonce: string | number | bigint;
211
211
  contractAddress: string;
212
212
  chainId: string | number | bigint;
@@ -231,7 +231,7 @@ export declare const ethGetUserOperationByHashHandler: {
231
231
  paymasterPostOpGasLimit: bigint | null;
232
232
  factoryData: `0x${string}` | null;
233
233
  paymasterData: `0x${string}` | null;
234
- eip7702auth?: {
234
+ eip7702Auth?: {
235
235
  nonce: number;
236
236
  contractAddress: `0x${string}`;
237
237
  chainId: number;
@@ -256,7 +256,7 @@ export declare const ethGetUserOperationByHashHandler: {
256
256
  paymasterVerificationGasLimit?: string | number | bigint | null | undefined;
257
257
  paymasterPostOpGasLimit?: string | number | bigint | null | undefined;
258
258
  paymasterData?: string | null | undefined;
259
- eip7702auth?: {
259
+ eip7702Auth?: {
260
260
  nonce: string | number | bigint;
261
261
  contractAddress: string;
262
262
  chainId: string | number | bigint;
@@ -284,7 +284,7 @@ export declare const ethGetUserOperationByHashHandler: {
284
284
  maxFeePerGas: bigint;
285
285
  maxPriorityFeePerGas: bigint;
286
286
  signature: `0x${string}`;
287
- eip7702auth?: {
287
+ eip7702Auth?: {
288
288
  nonce: number;
289
289
  contractAddress: `0x${string}`;
290
290
  chainId: number;
@@ -309,7 +309,7 @@ export declare const ethGetUserOperationByHashHandler: {
309
309
  paymasterPostOpGasLimit: bigint | null;
310
310
  factoryData: `0x${string}` | null;
311
311
  paymasterData: `0x${string}` | null;
312
- eip7702auth?: {
312
+ eip7702Auth?: {
313
313
  nonce: number;
314
314
  contractAddress: `0x${string}`;
315
315
  chainId: number;
@@ -330,7 +330,7 @@ export declare const ethGetUserOperationByHashHandler: {
330
330
  maxFeePerGas: bigint;
331
331
  maxPriorityFeePerGas: bigint;
332
332
  signature: `0x${string}`;
333
- eip7702auth?: {
333
+ eip7702Auth?: {
334
334
  nonce: number;
335
335
  contractAddress: `0x${string}`;
336
336
  chainId: number;
@@ -355,7 +355,7 @@ export declare const ethGetUserOperationByHashHandler: {
355
355
  paymasterPostOpGasLimit: bigint | null;
356
356
  factoryData: `0x${string}` | null;
357
357
  paymasterData: `0x${string}` | null;
358
- eip7702auth?: {
358
+ eip7702Auth?: {
359
359
  nonce: number;
360
360
  contractAddress: `0x${string}`;
361
361
  chainId: number;
@@ -382,7 +382,7 @@ export declare const ethGetUserOperationByHashHandler: {
382
382
  maxFeePerGas: string | number | bigint;
383
383
  maxPriorityFeePerGas: string | number | bigint;
384
384
  signature: string;
385
- eip7702auth?: {
385
+ eip7702Auth?: {
386
386
  nonce: string | number | bigint;
387
387
  contractAddress: string;
388
388
  chainId: string | number | bigint;
@@ -407,7 +407,7 @@ export declare const ethGetUserOperationByHashHandler: {
407
407
  paymasterVerificationGasLimit?: string | number | bigint | null | undefined;
408
408
  paymasterPostOpGasLimit?: string | number | bigint | null | undefined;
409
409
  paymasterData?: string | null | undefined;
410
- eip7702auth?: {
410
+ eip7702Auth?: {
411
411
  nonce: string | number | bigint;
412
412
  contractAddress: string;
413
413
  chainId: string | number | bigint;
@@ -428,7 +428,7 @@ export declare const ethGetUserOperationByHashHandler: {
428
428
  maxFeePerGas: string | number | bigint;
429
429
  maxPriorityFeePerGas: string | number | bigint;
430
430
  signature: string;
431
- eip7702auth?: {
431
+ eip7702Auth?: {
432
432
  nonce: string | number | bigint;
433
433
  contractAddress: string;
434
434
  chainId: string | number | bigint;
@@ -453,7 +453,7 @@ export declare const ethGetUserOperationByHashHandler: {
453
453
  paymasterVerificationGasLimit?: string | number | bigint | null | undefined;
454
454
  paymasterPostOpGasLimit?: string | number | bigint | null | undefined;
455
455
  paymasterData?: string | null | undefined;
456
- eip7702auth?: {
456
+ eip7702Auth?: {
457
457
  nonce: string | number | bigint;
458
458
  contractAddress: string;
459
459
  chainId: string | number | bigint;
@@ -482,7 +482,7 @@ export declare const ethGetUserOperationByHashHandler: {
482
482
  maxFeePerGas: bigint;
483
483
  maxPriorityFeePerGas: bigint;
484
484
  signature: `0x${string}`;
485
- eip7702auth?: {
485
+ eip7702Auth?: {
486
486
  nonce: number;
487
487
  contractAddress: `0x${string}`;
488
488
  chainId: number;
@@ -507,7 +507,7 @@ export declare const ethGetUserOperationByHashHandler: {
507
507
  paymasterPostOpGasLimit: bigint | null;
508
508
  factoryData: `0x${string}` | null;
509
509
  paymasterData: `0x${string}` | null;
510
- eip7702auth?: {
510
+ eip7702Auth?: {
511
511
  nonce: number;
512
512
  contractAddress: `0x${string}`;
513
513
  chainId: number;
@@ -528,7 +528,7 @@ export declare const ethGetUserOperationByHashHandler: {
528
528
  maxFeePerGas: bigint;
529
529
  maxPriorityFeePerGas: bigint;
530
530
  signature: `0x${string}`;
531
- eip7702auth?: {
531
+ eip7702Auth?: {
532
532
  nonce: number;
533
533
  contractAddress: `0x${string}`;
534
534
  chainId: number;
@@ -553,7 +553,7 @@ export declare const ethGetUserOperationByHashHandler: {
553
553
  paymasterPostOpGasLimit: bigint | null;
554
554
  factoryData: `0x${string}` | null;
555
555
  paymasterData: `0x${string}` | null;
556
- eip7702auth?: {
556
+ eip7702Auth?: {
557
557
  nonce: number;
558
558
  contractAddress: `0x${string}`;
559
559
  chainId: number;
@@ -584,7 +584,7 @@ export declare const ethGetUserOperationByHashHandler: {
584
584
  maxFeePerGas: string | number | bigint;
585
585
  maxPriorityFeePerGas: string | number | bigint;
586
586
  signature: string;
587
- eip7702auth?: {
587
+ eip7702Auth?: {
588
588
  nonce: string | number | bigint;
589
589
  contractAddress: string;
590
590
  chainId: string | number | bigint;
@@ -609,7 +609,7 @@ export declare const ethGetUserOperationByHashHandler: {
609
609
  paymasterVerificationGasLimit?: string | number | bigint | null | undefined;
610
610
  paymasterPostOpGasLimit?: string | number | bigint | null | undefined;
611
611
  paymasterData?: string | null | undefined;
612
- eip7702auth?: {
612
+ eip7702Auth?: {
613
613
  nonce: string | number | bigint;
614
614
  contractAddress: string;
615
615
  chainId: string | number | bigint;
@@ -630,7 +630,7 @@ export declare const ethGetUserOperationByHashHandler: {
630
630
  maxFeePerGas: string | number | bigint;
631
631
  maxPriorityFeePerGas: string | number | bigint;
632
632
  signature: string;
633
- eip7702auth?: {
633
+ eip7702Auth?: {
634
634
  nonce: string | number | bigint;
635
635
  contractAddress: string;
636
636
  chainId: string | number | bigint;
@@ -655,7 +655,7 @@ export declare const ethGetUserOperationByHashHandler: {
655
655
  paymasterVerificationGasLimit?: string | number | bigint | null | undefined;
656
656
  paymasterPostOpGasLimit?: string | number | bigint | null | undefined;
657
657
  paymasterData?: string | null | undefined;
658
- eip7702auth?: {
658
+ eip7702Auth?: {
659
659
  nonce: string | number | bigint;
660
660
  contractAddress: string;
661
661
  chainId: string | number | bigint;
@@ -691,7 +691,7 @@ export declare const ethGetUserOperationByHashHandler: {
691
691
  maxFeePerGas: bigint;
692
692
  maxPriorityFeePerGas: bigint;
693
693
  signature: `0x${string}`;
694
- eip7702auth?: {
694
+ eip7702Auth?: {
695
695
  nonce: number;
696
696
  contractAddress: `0x${string}`;
697
697
  chainId: number;
@@ -716,7 +716,7 @@ export declare const ethGetUserOperationByHashHandler: {
716
716
  paymasterPostOpGasLimit: bigint | null;
717
717
  factoryData: `0x${string}` | null;
718
718
  paymasterData: `0x${string}` | null;
719
- eip7702auth?: {
719
+ eip7702Auth?: {
720
720
  nonce: number;
721
721
  contractAddress: `0x${string}`;
722
722
  chainId: number;
@@ -737,7 +737,7 @@ export declare const ethGetUserOperationByHashHandler: {
737
737
  maxFeePerGas: bigint;
738
738
  maxPriorityFeePerGas: bigint;
739
739
  signature: `0x${string}`;
740
- eip7702auth?: {
740
+ eip7702Auth?: {
741
741
  nonce: number;
742
742
  contractAddress: `0x${string}`;
743
743
  chainId: number;
@@ -762,7 +762,7 @@ export declare const ethGetUserOperationByHashHandler: {
762
762
  paymasterPostOpGasLimit: bigint | null;
763
763
  factoryData: `0x${string}` | null;
764
764
  paymasterData: `0x${string}` | null;
765
- eip7702auth?: {
765
+ eip7702Auth?: {
766
766
  nonce: number;
767
767
  contractAddress: `0x${string}`;
768
768
  chainId: number;
@@ -789,7 +789,7 @@ export declare const ethGetUserOperationByHashHandler: {
789
789
  maxFeePerGas: bigint;
790
790
  maxPriorityFeePerGas: bigint;
791
791
  signature: `0x${string}`;
792
- eip7702auth?: {
792
+ eip7702Auth?: {
793
793
  nonce: number;
794
794
  contractAddress: `0x${string}`;
795
795
  chainId: number;
@@ -814,7 +814,7 @@ export declare const ethGetUserOperationByHashHandler: {
814
814
  paymasterPostOpGasLimit: bigint | null;
815
815
  factoryData: `0x${string}` | null;
816
816
  paymasterData: `0x${string}` | null;
817
- eip7702auth?: {
817
+ eip7702Auth?: {
818
818
  nonce: number;
819
819
  contractAddress: `0x${string}`;
820
820
  chainId: number;
@@ -835,7 +835,7 @@ export declare const ethGetUserOperationByHashHandler: {
835
835
  maxFeePerGas: bigint;
836
836
  maxPriorityFeePerGas: bigint;
837
837
  signature: `0x${string}`;
838
- eip7702auth?: {
838
+ eip7702Auth?: {
839
839
  nonce: number;
840
840
  contractAddress: `0x${string}`;
841
841
  chainId: number;
@@ -860,7 +860,7 @@ export declare const ethGetUserOperationByHashHandler: {
860
860
  paymasterPostOpGasLimit: bigint | null;
861
861
  factoryData: `0x${string}` | null;
862
862
  paymasterData: `0x${string}` | null;
863
- eip7702auth?: {
863
+ eip7702Auth?: {
864
864
  nonce: number;
865
865
  contractAddress: `0x${string}`;
866
866
  chainId: number;
@@ -13,7 +13,7 @@ export declare const ethSendUserOperationHandler: {
13
13
  maxFeePerGas: import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodUnion<[import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber]>, import("zod").ZodBigInt]>, bigint, string | number | bigint>, bigint, string | number | bigint>;
14
14
  paymasterAndData: import("zod").ZodEffects<import("zod").ZodString, `0x${string}`, string>;
15
15
  signature: import("zod").ZodEffects<import("zod").ZodString, `0x${string}`, string>;
16
- eip7702auth: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodObject<{
16
+ eip7702Auth: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodObject<{
17
17
  contractAddress: import("zod").ZodEffects<import("zod").ZodString, `0x${string}`, string>;
18
18
  chainId: import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodUnion<[import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber]>, import("zod").ZodBigInt]>, bigint, string | number | bigint>, bigint, string | number | bigint>, number, string | number | bigint>;
19
19
  nonce: import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodUnion<[import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber]>, import("zod").ZodBigInt]>, bigint, string | number | bigint>, bigint, string | number | bigint>, number, string | number | bigint>;
@@ -50,7 +50,7 @@ export declare const ethSendUserOperationHandler: {
50
50
  maxFeePerGas: bigint;
51
51
  maxPriorityFeePerGas: bigint;
52
52
  signature: `0x${string}`;
53
- eip7702auth?: {
53
+ eip7702Auth?: {
54
54
  nonce: number;
55
55
  contractAddress: `0x${string}`;
56
56
  chainId: number;
@@ -71,7 +71,7 @@ export declare const ethSendUserOperationHandler: {
71
71
  maxFeePerGas: string | number | bigint;
72
72
  maxPriorityFeePerGas: string | number | bigint;
73
73
  signature: string;
74
- eip7702auth?: {
74
+ eip7702Auth?: {
75
75
  nonce: string | number | bigint;
76
76
  contractAddress: string;
77
77
  chainId: string | number | bigint;
@@ -92,7 +92,7 @@ export declare const ethSendUserOperationHandler: {
92
92
  maxFeePerGas: bigint;
93
93
  maxPriorityFeePerGas: bigint;
94
94
  signature: `0x${string}`;
95
- eip7702auth?: {
95
+ eip7702Auth?: {
96
96
  nonce: number;
97
97
  contractAddress: `0x${string}`;
98
98
  chainId: number;
@@ -113,7 +113,7 @@ export declare const ethSendUserOperationHandler: {
113
113
  maxFeePerGas: string | number | bigint;
114
114
  maxPriorityFeePerGas: string | number | bigint;
115
115
  signature: string;
116
- eip7702auth?: {
116
+ eip7702Auth?: {
117
117
  nonce: string | number | bigint;
118
118
  contractAddress: string;
119
119
  chainId: string | number | bigint;
@@ -138,7 +138,7 @@ export declare const ethSendUserOperationHandler: {
138
138
  paymasterPostOpGasLimit: import("zod").ZodEffects<import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodUnion<[import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber]>, import("zod").ZodBigInt]>, bigint, string | number | bigint>, bigint, string | number | bigint>>>, bigint | null, string | number | bigint | null | undefined>;
139
139
  paymasterData: import("zod").ZodEffects<import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodEffects<import("zod").ZodString, `0x${string}`, string>>>, `0x${string}` | null, string | null | undefined>;
140
140
  signature: import("zod").ZodEffects<import("zod").ZodString, `0x${string}`, string>;
141
- eip7702auth: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodObject<{
141
+ eip7702Auth: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodObject<{
142
142
  contractAddress: import("zod").ZodEffects<import("zod").ZodString, `0x${string}`, string>;
143
143
  chainId: import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodUnion<[import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber]>, import("zod").ZodBigInt]>, bigint, string | number | bigint>, bigint, string | number | bigint>, number, string | number | bigint>;
144
144
  nonce: import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodUnion<[import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber]>, import("zod").ZodBigInt]>, bigint, string | number | bigint>, bigint, string | number | bigint>, number, string | number | bigint>;
@@ -179,7 +179,7 @@ export declare const ethSendUserOperationHandler: {
179
179
  paymasterPostOpGasLimit: bigint | null;
180
180
  factoryData: `0x${string}` | null;
181
181
  paymasterData: `0x${string}` | null;
182
- eip7702auth?: {
182
+ eip7702Auth?: {
183
183
  nonce: number;
184
184
  contractAddress: `0x${string}`;
185
185
  chainId: number;
@@ -204,7 +204,7 @@ export declare const ethSendUserOperationHandler: {
204
204
  paymasterVerificationGasLimit?: string | number | bigint | null | undefined;
205
205
  paymasterPostOpGasLimit?: string | number | bigint | null | undefined;
206
206
  paymasterData?: string | null | undefined;
207
- eip7702auth?: {
207
+ eip7702Auth?: {
208
208
  nonce: string | number | bigint;
209
209
  contractAddress: string;
210
210
  chainId: string | number | bigint;
@@ -229,7 +229,7 @@ export declare const ethSendUserOperationHandler: {
229
229
  paymasterPostOpGasLimit: bigint | null;
230
230
  factoryData: `0x${string}` | null;
231
231
  paymasterData: `0x${string}` | null;
232
- eip7702auth?: {
232
+ eip7702Auth?: {
233
233
  nonce: number;
234
234
  contractAddress: `0x${string}`;
235
235
  chainId: number;
@@ -254,7 +254,7 @@ export declare const ethSendUserOperationHandler: {
254
254
  paymasterVerificationGasLimit?: string | number | bigint | null | undefined;
255
255
  paymasterPostOpGasLimit?: string | number | bigint | null | undefined;
256
256
  paymasterData?: string | null | undefined;
257
- eip7702auth?: {
257
+ eip7702Auth?: {
258
258
  nonce: string | number | bigint;
259
259
  contractAddress: string;
260
260
  chainId: string | number | bigint;
@@ -279,7 +279,7 @@ export declare const ethSendUserOperationHandler: {
279
279
  maxFeePerGas: bigint;
280
280
  maxPriorityFeePerGas: bigint;
281
281
  signature: `0x${string}`;
282
- eip7702auth?: {
282
+ eip7702Auth?: {
283
283
  nonce: number;
284
284
  contractAddress: `0x${string}`;
285
285
  chainId: number;
@@ -304,7 +304,7 @@ export declare const ethSendUserOperationHandler: {
304
304
  paymasterPostOpGasLimit: bigint | null;
305
305
  factoryData: `0x${string}` | null;
306
306
  paymasterData: `0x${string}` | null;
307
- eip7702auth?: {
307
+ eip7702Auth?: {
308
308
  nonce: number;
309
309
  contractAddress: `0x${string}`;
310
310
  chainId: number;
@@ -329,7 +329,7 @@ export declare const ethSendUserOperationHandler: {
329
329
  maxFeePerGas: string | number | bigint;
330
330
  maxPriorityFeePerGas: string | number | bigint;
331
331
  signature: string;
332
- eip7702auth?: {
332
+ eip7702Auth?: {
333
333
  nonce: string | number | bigint;
334
334
  contractAddress: string;
335
335
  chainId: string | number | bigint;
@@ -354,7 +354,7 @@ export declare const ethSendUserOperationHandler: {
354
354
  paymasterVerificationGasLimit?: string | number | bigint | null | undefined;
355
355
  paymasterPostOpGasLimit?: string | number | bigint | null | undefined;
356
356
  paymasterData?: string | null | undefined;
357
- eip7702auth?: {
357
+ eip7702Auth?: {
358
358
  nonce: string | number | bigint;
359
359
  contractAddress: string;
360
360
  chainId: string | number | bigint;
@@ -381,7 +381,7 @@ export declare const ethSendUserOperationHandler: {
381
381
  maxFeePerGas: bigint;
382
382
  maxPriorityFeePerGas: bigint;
383
383
  signature: `0x${string}`;
384
- eip7702auth?: {
384
+ eip7702Auth?: {
385
385
  nonce: number;
386
386
  contractAddress: `0x${string}`;
387
387
  chainId: number;
@@ -406,7 +406,7 @@ export declare const ethSendUserOperationHandler: {
406
406
  paymasterPostOpGasLimit: bigint | null;
407
407
  factoryData: `0x${string}` | null;
408
408
  paymasterData: `0x${string}` | null;
409
- eip7702auth?: {
409
+ eip7702Auth?: {
410
410
  nonce: number;
411
411
  contractAddress: `0x${string}`;
412
412
  chainId: number;
@@ -9,6 +9,12 @@ exports.ethSendUserOperationHandler = (0, createMethodHandler_1.createMethodHand
9
9
  schema: types_1.sendUserOperationSchema,
10
10
  handler: async ({ rpcHandler, params, apiVersion }) => {
11
11
  const [userOperation, entryPoint] = params;
12
+ if (userOperation.eip7702Auth) {
13
+ await rpcHandler.validateEip7702Auth({
14
+ userOperation,
15
+ validateSender: true
16
+ });
17
+ }
12
18
  const hash = (0, userop_1.getUserOperationHash)(userOperation, entryPoint, rpcHandler.config.publicClient.chain.id);
13
19
  rpcHandler.eventManager.emitReceived(hash);
14
20
  let status = "rejected";
@@ -1 +1 @@
1
- {"version":3,"file":"eth_sendUserOperation.js","sourceRoot":"","sources":["../../../rpc/methods/eth_sendUserOperation.ts"],"names":[],"mappings":";;;AAAA,+CAAyD;AACzD,gEAA4D;AAC5D,uCAAqD;AAExC,QAAA,2BAA2B,GAAG,IAAA,yCAAmB,EAAC;IAC3D,MAAM,EAAE,uBAAuB;IAC/B,MAAM,EAAE,+BAAuB;IAC/B,OAAO,EAAE,KAAK,EAAE,EAAE,UAAU,EAAE,MAAM,EAAE,UAAU,EAAE,EAAE,EAAE;QAClD,MAAM,CAAC,aAAa,EAAE,UAAU,CAAC,GAAG,MAAM,CAAA;QAE1C,MAAM,IAAI,GAAG,IAAA,6BAAoB,EAC7B,aAAa,EACb,UAAU,EACV,UAAU,CAAC,MAAM,CAAC,YAAY,CAAC,KAAK,CAAC,EAAE,CAC1C,CAAA;QACD,UAAU,CAAC,YAAY,CAAC,YAAY,CAAC,IAAI,CAAC,CAAA;QAE1C,IAAI,MAAM,GAAoC,UAAU,CAAA;QACxD,IAAI,CAAC;YACD,MAAM,GAAG,MAAM,UAAU,CAAC,mBAAmB,CACzC,aAAa,EACb,UAAU,EACV,UAAU,CACb,CAAA;YAED,OAAO,IAAI,CAAA;QACf,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACb,MAAM,GAAG,UAAU,CAAA;YACnB,MAAM,KAAK,CAAA;QACf,CAAC;gBAAS,CAAC;YACP,UAAU,CAAC,OAAO,CAAC,sBAAsB;iBACpC,MAAM,CAAC;gBACJ,MAAM;gBACN,IAAI,EAAE,SAAS;aAClB,CAAC;iBACD,GAAG,EAAE,CAAA;QACd,CAAC;IACL,CAAC;CACJ,CAAC,CAAA"}
1
+ {"version":3,"file":"eth_sendUserOperation.js","sourceRoot":"","sources":["../../../rpc/methods/eth_sendUserOperation.ts"],"names":[],"mappings":";;;AAAA,+CAAyD;AACzD,gEAA4D;AAC5D,uCAAqD;AAExC,QAAA,2BAA2B,GAAG,IAAA,yCAAmB,EAAC;IAC3D,MAAM,EAAE,uBAAuB;IAC/B,MAAM,EAAE,+BAAuB;IAC/B,OAAO,EAAE,KAAK,EAAE,EAAE,UAAU,EAAE,MAAM,EAAE,UAAU,EAAE,EAAE,EAAE;QAClD,MAAM,CAAC,aAAa,EAAE,UAAU,CAAC,GAAG,MAAM,CAAA;QAE1C,IAAI,aAAa,CAAC,WAAW,EAAE,CAAC;YAC5B,MAAM,UAAU,CAAC,mBAAmB,CAAC;gBACjC,aAAa;gBACb,cAAc,EAAE,IAAI;aACvB,CAAC,CAAA;QACN,CAAC;QAED,MAAM,IAAI,GAAG,IAAA,6BAAoB,EAC7B,aAAa,EACb,UAAU,EACV,UAAU,CAAC,MAAM,CAAC,YAAY,CAAC,KAAK,CAAC,EAAE,CAC1C,CAAA;QACD,UAAU,CAAC,YAAY,CAAC,YAAY,CAAC,IAAI,CAAC,CAAA;QAE1C,IAAI,MAAM,GAAoC,UAAU,CAAA;QACxD,IAAI,CAAC;YACD,MAAM,GAAG,MAAM,UAAU,CAAC,mBAAmB,CACzC,aAAa,EACb,UAAU,EACV,UAAU,CACb,CAAA;YAED,OAAO,IAAI,CAAA;QACf,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACb,MAAM,GAAG,UAAU,CAAA;YACnB,MAAM,KAAK,CAAA;QACf,CAAC;gBAAS,CAAC;YACP,UAAU,CAAC,OAAO,CAAC,sBAAsB;iBACpC,MAAM,CAAC;gBACJ,MAAM;gBACN,IAAI,EAAE,SAAS;aAClB,CAAC;iBACD,GAAG,EAAE,CAAA;QACd,CAAC;IACL,CAAC;CACJ,CAAC,CAAA"}