@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.
- package/esm/executor/utils.js +1 -1
- package/esm/rpc/estimation/gasEstimationsV06.js +6 -8
- package/esm/rpc/estimation/gasEstimationsV06.js.map +1 -1
- package/esm/rpc/estimation/gasEstimationsV07.d.ts +1 -3
- package/esm/rpc/estimation/gasEstimationsV07.js +27 -40
- package/esm/rpc/estimation/gasEstimationsV07.js.map +1 -1
- package/esm/rpc/methods/debug_bundler_dumpMempool.d.ts +18 -18
- package/esm/rpc/methods/eth_estimateUserOperationGas.d.ts +48 -48
- package/esm/rpc/methods/eth_estimateUserOperationGas.js +6 -1
- package/esm/rpc/methods/eth_estimateUserOperationGas.js.map +1 -1
- package/esm/rpc/methods/eth_getUserOperationByHash.d.ts +34 -34
- package/esm/rpc/methods/eth_sendUserOperation.d.ts +16 -16
- package/esm/rpc/methods/eth_sendUserOperation.js +6 -0
- package/esm/rpc/methods/eth_sendUserOperation.js.map +1 -1
- package/esm/rpc/methods/pimlico_experimental_estimateUserOperationGas7702.d.ts +48 -48
- package/esm/rpc/methods/pimlico_experimental_estimateUserOperationGas7702.js +3 -1
- package/esm/rpc/methods/pimlico_experimental_estimateUserOperationGas7702.js.map +1 -1
- package/esm/rpc/methods/pimlico_experimental_sendUserOperation7702.d.ts +16 -16
- package/esm/rpc/methods/pimlico_experimental_sendUserOperation7702.js +4 -1
- package/esm/rpc/methods/pimlico_experimental_sendUserOperation7702.js.map +1 -1
- package/esm/rpc/methods/pimlico_sendUserOperationNow.d.ts +16 -16
- package/esm/rpc/rpcHandler.d.ts +4 -1
- package/esm/rpc/rpcHandler.js +8 -6
- package/esm/rpc/rpcHandler.js.map +1 -1
- package/esm/rpc/validation/SafeValidator.js +13 -3
- package/esm/rpc/validation/SafeValidator.js.map +1 -1
- package/esm/rpc/validation/tracer.d.ts +4 -1
- package/esm/rpc/validation/tracer.js +0 -1
- package/esm/rpc/validation/tracer.js.map +1 -1
- package/esm/types/schemas.d.ts +506 -506
- package/esm/types/schemas.js +4 -4
- package/esm/types/schemas.js.map +1 -1
- package/esm/utils/helpers.d.ts +3 -4
- package/esm/utils/helpers.js +24 -15
- package/esm/utils/helpers.js.map +1 -1
- package/esm/utils/validation.js +1 -1
- package/lib/executor/utils.js +1 -1
- package/lib/rpc/estimation/gasEstimationsV06.js +5 -7
- package/lib/rpc/estimation/gasEstimationsV06.js.map +1 -1
- package/lib/rpc/estimation/gasEstimationsV07.d.ts +1 -3
- package/lib/rpc/estimation/gasEstimationsV07.js +26 -39
- package/lib/rpc/estimation/gasEstimationsV07.js.map +1 -1
- package/lib/rpc/methods/debug_bundler_dumpMempool.d.ts +18 -18
- package/lib/rpc/methods/eth_estimateUserOperationGas.d.ts +48 -48
- package/lib/rpc/methods/eth_estimateUserOperationGas.js +6 -1
- package/lib/rpc/methods/eth_estimateUserOperationGas.js.map +1 -1
- package/lib/rpc/methods/eth_getUserOperationByHash.d.ts +34 -34
- package/lib/rpc/methods/eth_sendUserOperation.d.ts +16 -16
- package/lib/rpc/methods/eth_sendUserOperation.js +6 -0
- package/lib/rpc/methods/eth_sendUserOperation.js.map +1 -1
- package/lib/rpc/methods/pimlico_experimental_estimateUserOperationGas7702.d.ts +48 -48
- package/lib/rpc/methods/pimlico_experimental_estimateUserOperationGas7702.js +3 -1
- package/lib/rpc/methods/pimlico_experimental_estimateUserOperationGas7702.js.map +1 -1
- package/lib/rpc/methods/pimlico_experimental_sendUserOperation7702.d.ts +16 -16
- package/lib/rpc/methods/pimlico_experimental_sendUserOperation7702.js +4 -1
- package/lib/rpc/methods/pimlico_experimental_sendUserOperation7702.js.map +1 -1
- package/lib/rpc/methods/pimlico_sendUserOperationNow.d.ts +16 -16
- package/lib/rpc/rpcHandler.d.ts +4 -1
- package/lib/rpc/rpcHandler.js +8 -6
- package/lib/rpc/rpcHandler.js.map +1 -1
- package/lib/rpc/validation/SafeValidator.js +12 -2
- package/lib/rpc/validation/SafeValidator.js.map +1 -1
- package/lib/rpc/validation/tracer.d.ts +4 -1
- package/lib/rpc/validation/tracer.js +0 -1
- package/lib/rpc/validation/tracer.js.map +1 -1
- package/lib/types/schemas.d.ts +506 -506
- package/lib/types/schemas.js +4 -4
- package/lib/types/schemas.js.map +1 -1
- package/lib/utils/helpers.d.ts +3 -4
- package/lib/utils/helpers.js +26 -17
- package/lib/utils/helpers.js.map +1 -1
- package/lib/utils/validation.js +1 -1
- 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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
409
|
+
eip7702Auth?: {
|
|
410
410
|
nonce: number;
|
|
411
411
|
contractAddress: `0x${string}`;
|
|
412
412
|
chainId: number;
|
|
@@ -6,6 +6,12 @@ export const ethSendUserOperationHandler = createMethodHandler({
|
|
|
6
6
|
schema: sendUserOperationSchema,
|
|
7
7
|
handler: async ({ rpcHandler, params, apiVersion }) => {
|
|
8
8
|
const [userOperation, entryPoint] = params;
|
|
9
|
+
if (userOperation.eip7702Auth) {
|
|
10
|
+
await rpcHandler.validateEip7702Auth({
|
|
11
|
+
userOperation,
|
|
12
|
+
validateSender: true
|
|
13
|
+
});
|
|
14
|
+
}
|
|
9
15
|
const hash = getUserOperationHash(userOperation, entryPoint, rpcHandler.config.publicClient.chain.id);
|
|
10
16
|
rpcHandler.eventManager.emitReceived(hash);
|
|
11
17
|
let status = "rejected";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"eth_sendUserOperation.js","sourceRoot":"","sources":["../../../rpc/methods/eth_sendUserOperation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAA;AACzD,OAAO,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAA;AAC5D,OAAO,EAAE,uBAAuB,EAAE,MAAM,aAAa,CAAA;AAErD,MAAM,CAAC,MAAM,2BAA2B,GAAG,mBAAmB,CAAC;IAC3D,MAAM,EAAE,uBAAuB;IAC/B,MAAM,EAAE,uBAAuB;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,oBAAoB,CAC7B,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,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAA;AACzD,OAAO,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAA;AAC5D,OAAO,EAAE,uBAAuB,EAAE,MAAM,aAAa,CAAA;AAErD,MAAM,CAAC,MAAM,2BAA2B,GAAG,mBAAmB,CAAC;IAC3D,MAAM,EAAE,uBAAuB;IAC/B,MAAM,EAAE,uBAAuB;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,oBAAoB,CAC7B,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"}
|