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

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 (71) hide show
  1. package/esm/executor/utils.js +1 -1
  2. package/esm/rpc/estimation/gasEstimationsV06.js +8 -6
  3. package/esm/rpc/estimation/gasEstimationsV06.js.map +1 -1
  4. package/esm/rpc/estimation/gasEstimationsV07.d.ts +3 -1
  5. package/esm/rpc/estimation/gasEstimationsV07.js +40 -27
  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 +32 -32
  9. package/esm/rpc/methods/eth_estimateUserOperationGas.js +1 -6
  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 +0 -6
  14. package/esm/rpc/methods/eth_sendUserOperation.js.map +1 -1
  15. package/esm/rpc/methods/pimlico_experimental_estimateUserOperationGas7702.d.ts +32 -32
  16. package/esm/rpc/methods/pimlico_experimental_estimateUserOperationGas7702.js +1 -3
  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 +1 -4
  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 +1 -4
  23. package/esm/rpc/rpcHandler.js +5 -5
  24. package/esm/rpc/rpcHandler.js.map +1 -1
  25. package/esm/rpc/validation/SafeValidator.js +3 -13
  26. package/esm/rpc/validation/SafeValidator.js.map +1 -1
  27. package/esm/rpc/validation/tracer.d.ts +1 -4
  28. package/esm/rpc/validation/tracer.js +1 -0
  29. package/esm/rpc/validation/tracer.js.map +1 -1
  30. package/esm/types/schemas.d.ts +422 -422
  31. package/esm/types/schemas.js +4 -4
  32. package/esm/utils/helpers.d.ts +4 -3
  33. package/esm/utils/helpers.js +15 -24
  34. package/esm/utils/helpers.js.map +1 -1
  35. package/esm/utils/validation.js +1 -1
  36. package/lib/executor/utils.js +1 -1
  37. package/lib/rpc/estimation/gasEstimationsV06.js +7 -5
  38. package/lib/rpc/estimation/gasEstimationsV06.js.map +1 -1
  39. package/lib/rpc/estimation/gasEstimationsV07.d.ts +3 -1
  40. package/lib/rpc/estimation/gasEstimationsV07.js +39 -26
  41. package/lib/rpc/estimation/gasEstimationsV07.js.map +1 -1
  42. package/lib/rpc/methods/debug_bundler_dumpMempool.d.ts +18 -18
  43. package/lib/rpc/methods/eth_estimateUserOperationGas.d.ts +32 -32
  44. package/lib/rpc/methods/eth_estimateUserOperationGas.js +1 -6
  45. package/lib/rpc/methods/eth_estimateUserOperationGas.js.map +1 -1
  46. package/lib/rpc/methods/eth_getUserOperationByHash.d.ts +34 -34
  47. package/lib/rpc/methods/eth_sendUserOperation.d.ts +16 -16
  48. package/lib/rpc/methods/eth_sendUserOperation.js +0 -6
  49. package/lib/rpc/methods/eth_sendUserOperation.js.map +1 -1
  50. package/lib/rpc/methods/pimlico_experimental_estimateUserOperationGas7702.d.ts +32 -32
  51. package/lib/rpc/methods/pimlico_experimental_estimateUserOperationGas7702.js +1 -3
  52. package/lib/rpc/methods/pimlico_experimental_estimateUserOperationGas7702.js.map +1 -1
  53. package/lib/rpc/methods/pimlico_experimental_sendUserOperation7702.d.ts +16 -16
  54. package/lib/rpc/methods/pimlico_experimental_sendUserOperation7702.js +1 -4
  55. package/lib/rpc/methods/pimlico_experimental_sendUserOperation7702.js.map +1 -1
  56. package/lib/rpc/methods/pimlico_sendUserOperationNow.d.ts +16 -16
  57. package/lib/rpc/rpcHandler.d.ts +1 -4
  58. package/lib/rpc/rpcHandler.js +5 -5
  59. package/lib/rpc/rpcHandler.js.map +1 -1
  60. package/lib/rpc/validation/SafeValidator.js +2 -12
  61. package/lib/rpc/validation/SafeValidator.js.map +1 -1
  62. package/lib/rpc/validation/tracer.d.ts +1 -4
  63. package/lib/rpc/validation/tracer.js +1 -0
  64. package/lib/rpc/validation/tracer.js.map +1 -1
  65. package/lib/types/schemas.d.ts +422 -422
  66. package/lib/types/schemas.js +4 -4
  67. package/lib/utils/helpers.d.ts +4 -3
  68. package/lib/utils/helpers.js +17 -26
  69. package/lib/utils/helpers.js.map +1 -1
  70. package/lib/utils/validation.js +1 -1
  71. package/package.json +1 -1
@@ -13,7 +13,7 @@ export declare const ethEstimateUserOperationGasHandler: {
13
13
  maxFeePerGas: import("zod").ZodDefault<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").ZodOptional<import("zod").ZodObject<{
16
+ eip7702auth: 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 ethEstimateUserOperationGasHandler: {
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 ethEstimateUserOperationGasHandler: {
71
71
  preVerificationGas?: string | number | bigint | undefined;
72
72
  maxPriorityFeePerGas?: string | number | bigint | undefined;
73
73
  maxFeePerGas?: string | number | bigint | undefined;
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 ethEstimateUserOperationGasHandler: {
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 ethEstimateUserOperationGasHandler: {
113
113
  preVerificationGas?: string | number | bigint | undefined;
114
114
  maxPriorityFeePerGas?: string | number | bigint | undefined;
115
115
  maxFeePerGas?: string | number | bigint | undefined;
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 ethEstimateUserOperationGasHandler: {
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 ethEstimateUserOperationGasHandler: {
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 ethEstimateUserOperationGasHandler: {
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 ethEstimateUserOperationGasHandler: {
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 ethEstimateUserOperationGasHandler: {
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;
@@ -275,7 +275,7 @@ export declare const ethEstimateUserOperationGasHandler: {
275
275
  maxFeePerGas: import("zod").ZodDefault<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>>;
276
276
  paymasterAndData: import("zod").ZodEffects<import("zod").ZodString, `0x${string}`, string>;
277
277
  signature: import("zod").ZodEffects<import("zod").ZodString, `0x${string}`, string>;
278
- eip7702Auth: import("zod").ZodOptional<import("zod").ZodObject<{
278
+ eip7702auth: import("zod").ZodOptional<import("zod").ZodObject<{
279
279
  contractAddress: import("zod").ZodEffects<import("zod").ZodString, `0x${string}`, string>;
280
280
  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>;
281
281
  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>;
@@ -312,7 +312,7 @@ export declare const ethEstimateUserOperationGasHandler: {
312
312
  maxFeePerGas: bigint;
313
313
  maxPriorityFeePerGas: bigint;
314
314
  signature: `0x${string}`;
315
- eip7702Auth?: {
315
+ eip7702auth?: {
316
316
  nonce: number;
317
317
  contractAddress: `0x${string}`;
318
318
  chainId: number;
@@ -333,7 +333,7 @@ export declare const ethEstimateUserOperationGasHandler: {
333
333
  preVerificationGas?: string | number | bigint | undefined;
334
334
  maxPriorityFeePerGas?: string | number | bigint | undefined;
335
335
  maxFeePerGas?: string | number | bigint | undefined;
336
- eip7702Auth?: {
336
+ eip7702auth?: {
337
337
  nonce: string | number | bigint;
338
338
  contractAddress: string;
339
339
  chainId: string | number | bigint;
@@ -354,7 +354,7 @@ export declare const ethEstimateUserOperationGasHandler: {
354
354
  maxFeePerGas: bigint;
355
355
  maxPriorityFeePerGas: bigint;
356
356
  signature: `0x${string}`;
357
- eip7702Auth?: {
357
+ eip7702auth?: {
358
358
  nonce: number;
359
359
  contractAddress: `0x${string}`;
360
360
  chainId: number;
@@ -375,7 +375,7 @@ export declare const ethEstimateUserOperationGasHandler: {
375
375
  preVerificationGas?: string | number | bigint | undefined;
376
376
  maxPriorityFeePerGas?: string | number | bigint | undefined;
377
377
  maxFeePerGas?: string | number | bigint | undefined;
378
- eip7702Auth?: {
378
+ eip7702auth?: {
379
379
  nonce: string | number | bigint;
380
380
  contractAddress: string;
381
381
  chainId: string | number | bigint;
@@ -400,7 +400,7 @@ export declare const ethEstimateUserOperationGasHandler: {
400
400
  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>;
401
401
  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>;
402
402
  signature: import("zod").ZodEffects<import("zod").ZodString, `0x${string}`, string>;
403
- eip7702Auth: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodObject<{
403
+ eip7702auth: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodObject<{
404
404
  contractAddress: import("zod").ZodEffects<import("zod").ZodString, `0x${string}`, string>;
405
405
  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>;
406
406
  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>;
@@ -441,7 +441,7 @@ export declare const ethEstimateUserOperationGasHandler: {
441
441
  paymasterPostOpGasLimit: bigint | null;
442
442
  factoryData: `0x${string}` | null;
443
443
  paymasterData: `0x${string}` | null;
444
- eip7702Auth?: {
444
+ eip7702auth?: {
445
445
  nonce: number;
446
446
  contractAddress: `0x${string}`;
447
447
  chainId: number;
@@ -466,7 +466,7 @@ export declare const ethEstimateUserOperationGasHandler: {
466
466
  paymasterVerificationGasLimit?: string | number | bigint | null | undefined;
467
467
  paymasterPostOpGasLimit?: string | number | bigint | null | undefined;
468
468
  paymasterData?: string | null | undefined;
469
- eip7702Auth?: {
469
+ eip7702auth?: {
470
470
  nonce: string | number | bigint;
471
471
  contractAddress: string;
472
472
  chainId: string | number | bigint;
@@ -491,7 +491,7 @@ export declare const ethEstimateUserOperationGasHandler: {
491
491
  paymasterPostOpGasLimit: bigint | null;
492
492
  factoryData: `0x${string}` | null;
493
493
  paymasterData: `0x${string}` | null;
494
- eip7702Auth?: {
494
+ eip7702auth?: {
495
495
  nonce: number;
496
496
  contractAddress: `0x${string}`;
497
497
  chainId: number;
@@ -516,7 +516,7 @@ export declare const ethEstimateUserOperationGasHandler: {
516
516
  paymasterVerificationGasLimit?: string | number | bigint | null | undefined;
517
517
  paymasterPostOpGasLimit?: string | number | bigint | null | undefined;
518
518
  paymasterData?: string | null | undefined;
519
- eip7702Auth?: {
519
+ eip7702auth?: {
520
520
  nonce: string | number | bigint;
521
521
  contractAddress: string;
522
522
  chainId: string | number | bigint;
@@ -614,7 +614,7 @@ export declare const ethEstimateUserOperationGasHandler: {
614
614
  maxFeePerGas: bigint;
615
615
  maxPriorityFeePerGas: bigint;
616
616
  signature: `0x${string}`;
617
- eip7702Auth?: {
617
+ eip7702auth?: {
618
618
  nonce: number;
619
619
  contractAddress: `0x${string}`;
620
620
  chainId: number;
@@ -639,7 +639,7 @@ export declare const ethEstimateUserOperationGasHandler: {
639
639
  paymasterPostOpGasLimit: bigint | null;
640
640
  factoryData: `0x${string}` | null;
641
641
  paymasterData: `0x${string}` | null;
642
- eip7702Auth?: {
642
+ eip7702auth?: {
643
643
  nonce: number;
644
644
  contractAddress: `0x${string}`;
645
645
  chainId: number;
@@ -660,7 +660,7 @@ export declare const ethEstimateUserOperationGasHandler: {
660
660
  maxFeePerGas: bigint;
661
661
  maxPriorityFeePerGas: bigint;
662
662
  signature: `0x${string}`;
663
- eip7702Auth?: {
663
+ eip7702auth?: {
664
664
  nonce: number;
665
665
  contractAddress: `0x${string}`;
666
666
  chainId: number;
@@ -685,7 +685,7 @@ export declare const ethEstimateUserOperationGasHandler: {
685
685
  paymasterPostOpGasLimit: bigint | null;
686
686
  factoryData: `0x${string}` | null;
687
687
  paymasterData: `0x${string}` | null;
688
- eip7702Auth?: {
688
+ eip7702auth?: {
689
689
  nonce: number;
690
690
  contractAddress: `0x${string}`;
691
691
  chainId: number;
@@ -738,7 +738,7 @@ export declare const ethEstimateUserOperationGasHandler: {
738
738
  preVerificationGas?: string | number | bigint | undefined;
739
739
  maxPriorityFeePerGas?: string | number | bigint | undefined;
740
740
  maxFeePerGas?: string | number | bigint | undefined;
741
- eip7702Auth?: {
741
+ eip7702auth?: {
742
742
  nonce: string | number | bigint;
743
743
  contractAddress: string;
744
744
  chainId: string | number | bigint;
@@ -763,7 +763,7 @@ export declare const ethEstimateUserOperationGasHandler: {
763
763
  paymasterVerificationGasLimit?: string | number | bigint | null | undefined;
764
764
  paymasterPostOpGasLimit?: string | number | bigint | null | undefined;
765
765
  paymasterData?: string | null | undefined;
766
- eip7702Auth?: {
766
+ eip7702auth?: {
767
767
  nonce: string | number | bigint;
768
768
  contractAddress: string;
769
769
  chainId: string | number | bigint;
@@ -784,7 +784,7 @@ export declare const ethEstimateUserOperationGasHandler: {
784
784
  preVerificationGas?: string | number | bigint | undefined;
785
785
  maxPriorityFeePerGas?: string | number | bigint | undefined;
786
786
  maxFeePerGas?: string | number | bigint | undefined;
787
- eip7702Auth?: {
787
+ eip7702auth?: {
788
788
  nonce: string | number | bigint;
789
789
  contractAddress: string;
790
790
  chainId: string | number | bigint;
@@ -809,7 +809,7 @@ export declare const ethEstimateUserOperationGasHandler: {
809
809
  paymasterVerificationGasLimit?: string | number | bigint | null | undefined;
810
810
  paymasterPostOpGasLimit?: string | number | bigint | null | undefined;
811
811
  paymasterData?: string | null | undefined;
812
- eip7702Auth?: {
812
+ eip7702auth?: {
813
813
  nonce: string | number | bigint;
814
814
  contractAddress: string;
815
815
  chainId: string | number | bigint;
@@ -842,7 +842,7 @@ export declare const ethEstimateUserOperationGasHandler: {
842
842
  maxFeePerGas: bigint;
843
843
  maxPriorityFeePerGas: bigint;
844
844
  signature: `0x${string}`;
845
- eip7702Auth?: {
845
+ eip7702auth?: {
846
846
  nonce: number;
847
847
  contractAddress: `0x${string}`;
848
848
  chainId: number;
@@ -867,7 +867,7 @@ export declare const ethEstimateUserOperationGasHandler: {
867
867
  paymasterPostOpGasLimit: bigint | null;
868
868
  factoryData: `0x${string}` | null;
869
869
  paymasterData: `0x${string}` | null;
870
- eip7702Auth?: {
870
+ eip7702auth?: {
871
871
  nonce: number;
872
872
  contractAddress: `0x${string}`;
873
873
  chainId: number;
@@ -888,7 +888,7 @@ export declare const ethEstimateUserOperationGasHandler: {
888
888
  maxFeePerGas: bigint;
889
889
  maxPriorityFeePerGas: bigint;
890
890
  signature: `0x${string}`;
891
- eip7702Auth?: {
891
+ eip7702auth?: {
892
892
  nonce: number;
893
893
  contractAddress: `0x${string}`;
894
894
  chainId: number;
@@ -913,7 +913,7 @@ export declare const ethEstimateUserOperationGasHandler: {
913
913
  paymasterPostOpGasLimit: bigint | null;
914
914
  factoryData: `0x${string}` | null;
915
915
  paymasterData: `0x${string}` | null;
916
- eip7702Auth?: {
916
+ eip7702auth?: {
917
917
  nonce: number;
918
918
  contractAddress: `0x${string}`;
919
919
  chainId: number;
@@ -3,15 +3,10 @@ import { estimateUserOperationGasSchema } from "../../types/index.js";
3
3
  export const ethEstimateUserOperationGasHandler = createMethodHandler({
4
4
  method: "eth_estimateUserOperationGas",
5
5
  schema: estimateUserOperationGasSchema,
6
- handler: async ({ rpcHandler, apiVersion, params }) => {
6
+ handler: ({ rpcHandler, apiVersion, params }) => {
7
7
  const userOperation = params[0];
8
8
  const entryPoint = params[1];
9
9
  const stateOverrides = params[2];
10
- if (userOperation.eip7702Auth) {
11
- await rpcHandler.validateEip7702Auth({
12
- userOperation
13
- });
14
- }
15
10
  return rpcHandler.estimateGas({
16
11
  apiVersion,
17
12
  userOperation,
@@ -1 +1 @@
1
- {"version":3,"file":"eth_estimateUserOperationGas.js","sourceRoot":"","sources":["../../../rpc/methods/eth_estimateUserOperationGas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAA;AAC5D,OAAO,EAAE,8BAA8B,EAAE,MAAM,aAAa,CAAA;AAE5D,MAAM,CAAC,MAAM,kCAAkC,GAAG,mBAAmB,CAAC;IAClE,MAAM,EAAE,8BAA8B;IACtC,MAAM,EAAE,8BAA8B;IACtC,OAAO,EAAE,KAAK,EAAE,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,EAAE,EAAE,EAAE;QAClD,MAAM,aAAa,GAAG,MAAM,CAAC,CAAC,CAAC,CAAA;QAC/B,MAAM,UAAU,GAAG,MAAM,CAAC,CAAC,CAAC,CAAA;QAC5B,MAAM,cAAc,GAAG,MAAM,CAAC,CAAC,CAAC,CAAA;QAEhC,IAAI,aAAa,CAAC,WAAW,EAAE,CAAC;YAC5B,MAAM,UAAU,CAAC,mBAAmB,CAAC;gBACjC,aAAa;aAChB,CAAC,CAAA;QACN,CAAC;QAED,OAAO,UAAU,CAAC,WAAW,CAAC;YAC1B,UAAU;YACV,aAAa;YACb,UAAU;YACV,cAAc;SACjB,CAAC,CAAA;IACN,CAAC;CACJ,CAAC,CAAA"}
1
+ {"version":3,"file":"eth_estimateUserOperationGas.js","sourceRoot":"","sources":["../../../rpc/methods/eth_estimateUserOperationGas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAA;AAC5D,OAAO,EAAE,8BAA8B,EAAE,MAAM,aAAa,CAAA;AAE5D,MAAM,CAAC,MAAM,kCAAkC,GAAG,mBAAmB,CAAC;IAClE,MAAM,EAAE,8BAA8B;IACtC,MAAM,EAAE,8BAA8B;IACtC,OAAO,EAAE,CAAC,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,EAAE,EAAE,EAAE;QAC5C,MAAM,aAAa,GAAG,MAAM,CAAC,CAAC,CAAC,CAAA;QAC/B,MAAM,UAAU,GAAG,MAAM,CAAC,CAAC,CAAC,CAAA;QAC5B,MAAM,cAAc,GAAG,MAAM,CAAC,CAAC,CAAC,CAAA;QAEhC,OAAO,UAAU,CAAC,WAAW,CAAC;YAC1B,UAAU;YACV,aAAa;YACb,UAAU;YACV,cAAc;SACjB,CAAC,CAAA;IACN,CAAC;CACJ,CAAC,CAAA"}
@@ -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;