@pimlico/alto 0.0.0-main.20250324T173449 → 0.0.0-main.20250324T205246

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 (35) hide show
  1. package/esm/executor/executor.d.ts +2 -2
  2. package/esm/executor/utils.d.ts +4 -4
  3. package/esm/executor/utils.js +13 -2
  4. package/esm/executor/utils.js.map +1 -1
  5. package/esm/mempool/mempool.d.ts +16 -0
  6. package/esm/rpc/methods/debug_bundler_dumpMempool.d.ts +180 -4
  7. package/esm/rpc/methods/eth_estimateUserOperationGas.d.ts +328 -8
  8. package/esm/rpc/methods/eth_getUserOperationByHash.d.ts +308 -4
  9. package/esm/rpc/methods/eth_sendUserOperation.d.ts +164 -4
  10. package/esm/rpc/methods/pimlico_sendUserOperationNow.d.ts +164 -4
  11. package/esm/rpc/rpcHandler.js +11 -1
  12. package/esm/rpc/rpcHandler.js.map +1 -1
  13. package/esm/types/schemas.d.ts +3279 -95
  14. package/esm/types/schemas.js +20 -9
  15. package/esm/types/schemas.js.map +1 -1
  16. package/esm/utils/helpers.js +11 -1
  17. package/esm/utils/helpers.js.map +1 -1
  18. package/lib/executor/executor.d.ts +2 -2
  19. package/lib/executor/utils.d.ts +4 -4
  20. package/lib/executor/utils.js +13 -2
  21. package/lib/executor/utils.js.map +1 -1
  22. package/lib/mempool/mempool.d.ts +16 -0
  23. package/lib/rpc/methods/debug_bundler_dumpMempool.d.ts +180 -4
  24. package/lib/rpc/methods/eth_estimateUserOperationGas.d.ts +328 -8
  25. package/lib/rpc/methods/eth_getUserOperationByHash.d.ts +308 -4
  26. package/lib/rpc/methods/eth_sendUserOperation.d.ts +164 -4
  27. package/lib/rpc/methods/pimlico_sendUserOperationNow.d.ts +164 -4
  28. package/lib/rpc/rpcHandler.js +11 -1
  29. package/lib/rpc/rpcHandler.js.map +1 -1
  30. package/lib/types/schemas.d.ts +3279 -95
  31. package/lib/types/schemas.js +20 -9
  32. package/lib/types/schemas.js.map +1 -1
  33. package/lib/utils/helpers.js +11 -1
  34. package/lib/utils/helpers.js.map +1 -1
  35. package/package.json +1 -1
@@ -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").ZodUnion<[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>;
@@ -37,7 +37,31 @@ export declare const ethSendUserOperationHandler: {
37
37
  s: string;
38
38
  v: string | number | bigint;
39
39
  yParity: string | number | bigint;
40
- }>>>;
40
+ }>, import("zod").ZodObject<{
41
+ address: import("zod").ZodEffects<import("zod").ZodString, `0x${string}`, string>;
42
+ 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>;
43
+ 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>;
44
+ r: import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodString, `0x${string}`, string>, `0x${string}`, string>;
45
+ s: import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodString, `0x${string}`, string>, `0x${string}`, string>;
46
+ v: 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>;
47
+ yParity: 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>;
48
+ }, "strip", import("zod").ZodTypeAny, {
49
+ address: `0x${string}`;
50
+ nonce: number;
51
+ chainId: number;
52
+ r: `0x${string}`;
53
+ s: `0x${string}`;
54
+ v: bigint;
55
+ yParity: number;
56
+ }, {
57
+ address: string;
58
+ nonce: string | number | bigint;
59
+ chainId: string | number | bigint;
60
+ r: string;
61
+ s: string;
62
+ v: string | number | bigint;
63
+ yParity: string | number | bigint;
64
+ }>]>>>;
41
65
  }, "strict", import("zod").ZodTypeAny, {
42
66
  sender: `0x${string}`;
43
67
  nonce: bigint;
@@ -58,6 +82,14 @@ export declare const ethSendUserOperationHandler: {
58
82
  s: `0x${string}`;
59
83
  v: bigint;
60
84
  yParity: number;
85
+ } | {
86
+ address: `0x${string}`;
87
+ nonce: number;
88
+ chainId: number;
89
+ r: `0x${string}`;
90
+ s: `0x${string}`;
91
+ v: bigint;
92
+ yParity: number;
61
93
  } | null | undefined;
62
94
  }, {
63
95
  sender: string;
@@ -79,6 +111,14 @@ export declare const ethSendUserOperationHandler: {
79
111
  s: string;
80
112
  v: string | number | bigint;
81
113
  yParity: string | number | bigint;
114
+ } | {
115
+ address: string;
116
+ nonce: string | number | bigint;
117
+ chainId: string | number | bigint;
118
+ r: string;
119
+ s: string;
120
+ v: string | number | bigint;
121
+ yParity: string | number | bigint;
82
122
  } | null | undefined;
83
123
  }>, {
84
124
  sender: `0x${string}`;
@@ -100,6 +140,14 @@ export declare const ethSendUserOperationHandler: {
100
140
  s: `0x${string}`;
101
141
  v: bigint;
102
142
  yParity: number;
143
+ } | {
144
+ address: `0x${string}`;
145
+ nonce: number;
146
+ chainId: number;
147
+ r: `0x${string}`;
148
+ s: `0x${string}`;
149
+ v: bigint;
150
+ yParity: number;
103
151
  } | null | undefined;
104
152
  }, {
105
153
  sender: string;
@@ -121,6 +169,14 @@ export declare const ethSendUserOperationHandler: {
121
169
  s: string;
122
170
  v: string | number | bigint;
123
171
  yParity: string | number | bigint;
172
+ } | {
173
+ address: string;
174
+ nonce: string | number | bigint;
175
+ chainId: string | number | bigint;
176
+ r: string;
177
+ s: string;
178
+ v: string | number | bigint;
179
+ yParity: string | number | bigint;
124
180
  } | null | undefined;
125
181
  }>, import("zod").ZodEffects<import("zod").ZodObject<{
126
182
  sender: import("zod").ZodEffects<import("zod").ZodString, `0x${string}`, string>;
@@ -138,7 +194,7 @@ export declare const ethSendUserOperationHandler: {
138
194
  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
195
  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
196
  signature: import("zod").ZodEffects<import("zod").ZodString, `0x${string}`, string>;
141
- eip7702Auth: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodObject<{
197
+ eip7702Auth: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodObject<{
142
198
  contractAddress: import("zod").ZodEffects<import("zod").ZodString, `0x${string}`, string>;
143
199
  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
200
  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>;
@@ -162,7 +218,31 @@ export declare const ethSendUserOperationHandler: {
162
218
  s: string;
163
219
  v: string | number | bigint;
164
220
  yParity: string | number | bigint;
165
- }>>>;
221
+ }>, import("zod").ZodObject<{
222
+ address: import("zod").ZodEffects<import("zod").ZodString, `0x${string}`, string>;
223
+ 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>;
224
+ 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>;
225
+ r: import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodString, `0x${string}`, string>, `0x${string}`, string>;
226
+ s: import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodString, `0x${string}`, string>, `0x${string}`, string>;
227
+ v: 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>;
228
+ yParity: 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>;
229
+ }, "strip", import("zod").ZodTypeAny, {
230
+ address: `0x${string}`;
231
+ nonce: number;
232
+ chainId: number;
233
+ r: `0x${string}`;
234
+ s: `0x${string}`;
235
+ v: bigint;
236
+ yParity: number;
237
+ }, {
238
+ address: string;
239
+ nonce: string | number | bigint;
240
+ chainId: string | number | bigint;
241
+ r: string;
242
+ s: string;
243
+ v: string | number | bigint;
244
+ yParity: string | number | bigint;
245
+ }>]>>>;
166
246
  }, "strict", import("zod").ZodTypeAny, {
167
247
  sender: `0x${string}`;
168
248
  factory: `0x${string}` | null;
@@ -187,6 +267,14 @@ export declare const ethSendUserOperationHandler: {
187
267
  s: `0x${string}`;
188
268
  v: bigint;
189
269
  yParity: number;
270
+ } | {
271
+ address: `0x${string}`;
272
+ nonce: number;
273
+ chainId: number;
274
+ r: `0x${string}`;
275
+ s: `0x${string}`;
276
+ v: bigint;
277
+ yParity: number;
190
278
  } | null | undefined;
191
279
  }, {
192
280
  sender: string;
@@ -212,6 +300,14 @@ export declare const ethSendUserOperationHandler: {
212
300
  s: string;
213
301
  v: string | number | bigint;
214
302
  yParity: string | number | bigint;
303
+ } | {
304
+ address: string;
305
+ nonce: string | number | bigint;
306
+ chainId: string | number | bigint;
307
+ r: string;
308
+ s: string;
309
+ v: string | number | bigint;
310
+ yParity: string | number | bigint;
215
311
  } | null | undefined;
216
312
  }>, {
217
313
  sender: `0x${string}`;
@@ -237,6 +333,14 @@ export declare const ethSendUserOperationHandler: {
237
333
  s: `0x${string}`;
238
334
  v: bigint;
239
335
  yParity: number;
336
+ } | {
337
+ address: `0x${string}`;
338
+ nonce: number;
339
+ chainId: number;
340
+ r: `0x${string}`;
341
+ s: `0x${string}`;
342
+ v: bigint;
343
+ yParity: number;
240
344
  } | null | undefined;
241
345
  }, {
242
346
  sender: string;
@@ -262,6 +366,14 @@ export declare const ethSendUserOperationHandler: {
262
366
  s: string;
263
367
  v: string | number | bigint;
264
368
  yParity: string | number | bigint;
369
+ } | {
370
+ address: string;
371
+ nonce: string | number | bigint;
372
+ chainId: string | number | bigint;
373
+ r: string;
374
+ s: string;
375
+ v: string | number | bigint;
376
+ yParity: string | number | bigint;
265
377
  } | null | undefined;
266
378
  }>]>, import("zod").ZodEffects<import("zod").ZodString, `0x${string}`, string>], null>;
267
379
  result: import("zod").ZodEffects<import("zod").ZodString, `0x${string}`, string>;
@@ -287,6 +399,14 @@ export declare const ethSendUserOperationHandler: {
287
399
  s: `0x${string}`;
288
400
  v: bigint;
289
401
  yParity: number;
402
+ } | {
403
+ address: `0x${string}`;
404
+ nonce: number;
405
+ chainId: number;
406
+ r: `0x${string}`;
407
+ s: `0x${string}`;
408
+ v: bigint;
409
+ yParity: number;
290
410
  } | null | undefined;
291
411
  } | {
292
412
  sender: `0x${string}`;
@@ -312,6 +432,14 @@ export declare const ethSendUserOperationHandler: {
312
432
  s: `0x${string}`;
313
433
  v: bigint;
314
434
  yParity: number;
435
+ } | {
436
+ address: `0x${string}`;
437
+ nonce: number;
438
+ chainId: number;
439
+ r: `0x${string}`;
440
+ s: `0x${string}`;
441
+ v: bigint;
442
+ yParity: number;
315
443
  } | null | undefined;
316
444
  }, `0x${string}`];
317
445
  method: "eth_sendUserOperation";
@@ -337,6 +465,14 @@ export declare const ethSendUserOperationHandler: {
337
465
  s: string;
338
466
  v: string | number | bigint;
339
467
  yParity: string | number | bigint;
468
+ } | {
469
+ address: string;
470
+ nonce: string | number | bigint;
471
+ chainId: string | number | bigint;
472
+ r: string;
473
+ s: string;
474
+ v: string | number | bigint;
475
+ yParity: string | number | bigint;
340
476
  } | null | undefined;
341
477
  } | {
342
478
  sender: string;
@@ -362,6 +498,14 @@ export declare const ethSendUserOperationHandler: {
362
498
  s: string;
363
499
  v: string | number | bigint;
364
500
  yParity: string | number | bigint;
501
+ } | {
502
+ address: string;
503
+ nonce: string | number | bigint;
504
+ chainId: string | number | bigint;
505
+ r: string;
506
+ s: string;
507
+ v: string | number | bigint;
508
+ yParity: string | number | bigint;
365
509
  } | null | undefined;
366
510
  }, string];
367
511
  method: "eth_sendUserOperation";
@@ -389,6 +533,14 @@ export declare const ethSendUserOperationHandler: {
389
533
  s: `0x${string}`;
390
534
  v: bigint;
391
535
  yParity: number;
536
+ } | {
537
+ address: `0x${string}`;
538
+ nonce: number;
539
+ chainId: number;
540
+ r: `0x${string}`;
541
+ s: `0x${string}`;
542
+ v: bigint;
543
+ yParity: number;
392
544
  } | null | undefined;
393
545
  }> | import("type-fest/source/readonly-deep").ReadonlyObjectDeep<{
394
546
  sender: `0x${string}`;
@@ -414,6 +566,14 @@ export declare const ethSendUserOperationHandler: {
414
566
  s: `0x${string}`;
415
567
  v: bigint;
416
568
  yParity: number;
569
+ } | {
570
+ address: `0x${string}`;
571
+ nonce: number;
572
+ chainId: number;
573
+ r: `0x${string}`;
574
+ s: `0x${string}`;
575
+ v: bigint;
576
+ yParity: number;
417
577
  } | null | undefined;
418
578
  }>, `0x${string}`];
419
579
  apiVersion: import("../../types/index.js").ApiVersion;
@@ -13,7 +13,7 @@ export declare const pimlicoSendUserOperationNowHandler: {
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").ZodUnion<[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>;
@@ -37,7 +37,31 @@ export declare const pimlicoSendUserOperationNowHandler: {
37
37
  s: string;
38
38
  v: string | number | bigint;
39
39
  yParity: string | number | bigint;
40
- }>>>;
40
+ }>, import("zod").ZodObject<{
41
+ address: import("zod").ZodEffects<import("zod").ZodString, `0x${string}`, string>;
42
+ 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>;
43
+ 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>;
44
+ r: import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodString, `0x${string}`, string>, `0x${string}`, string>;
45
+ s: import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodString, `0x${string}`, string>, `0x${string}`, string>;
46
+ v: 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>;
47
+ yParity: 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>;
48
+ }, "strip", import("zod").ZodTypeAny, {
49
+ address: `0x${string}`;
50
+ nonce: number;
51
+ chainId: number;
52
+ r: `0x${string}`;
53
+ s: `0x${string}`;
54
+ v: bigint;
55
+ yParity: number;
56
+ }, {
57
+ address: string;
58
+ nonce: string | number | bigint;
59
+ chainId: string | number | bigint;
60
+ r: string;
61
+ s: string;
62
+ v: string | number | bigint;
63
+ yParity: string | number | bigint;
64
+ }>]>>>;
41
65
  }, "strict", import("zod").ZodTypeAny, {
42
66
  sender: `0x${string}`;
43
67
  nonce: bigint;
@@ -58,6 +82,14 @@ export declare const pimlicoSendUserOperationNowHandler: {
58
82
  s: `0x${string}`;
59
83
  v: bigint;
60
84
  yParity: number;
85
+ } | {
86
+ address: `0x${string}`;
87
+ nonce: number;
88
+ chainId: number;
89
+ r: `0x${string}`;
90
+ s: `0x${string}`;
91
+ v: bigint;
92
+ yParity: number;
61
93
  } | null | undefined;
62
94
  }, {
63
95
  sender: string;
@@ -79,6 +111,14 @@ export declare const pimlicoSendUserOperationNowHandler: {
79
111
  s: string;
80
112
  v: string | number | bigint;
81
113
  yParity: string | number | bigint;
114
+ } | {
115
+ address: string;
116
+ nonce: string | number | bigint;
117
+ chainId: string | number | bigint;
118
+ r: string;
119
+ s: string;
120
+ v: string | number | bigint;
121
+ yParity: string | number | bigint;
82
122
  } | null | undefined;
83
123
  }>, {
84
124
  sender: `0x${string}`;
@@ -100,6 +140,14 @@ export declare const pimlicoSendUserOperationNowHandler: {
100
140
  s: `0x${string}`;
101
141
  v: bigint;
102
142
  yParity: number;
143
+ } | {
144
+ address: `0x${string}`;
145
+ nonce: number;
146
+ chainId: number;
147
+ r: `0x${string}`;
148
+ s: `0x${string}`;
149
+ v: bigint;
150
+ yParity: number;
103
151
  } | null | undefined;
104
152
  }, {
105
153
  sender: string;
@@ -121,6 +169,14 @@ export declare const pimlicoSendUserOperationNowHandler: {
121
169
  s: string;
122
170
  v: string | number | bigint;
123
171
  yParity: string | number | bigint;
172
+ } | {
173
+ address: string;
174
+ nonce: string | number | bigint;
175
+ chainId: string | number | bigint;
176
+ r: string;
177
+ s: string;
178
+ v: string | number | bigint;
179
+ yParity: string | number | bigint;
124
180
  } | null | undefined;
125
181
  }>, import("zod").ZodEffects<import("zod").ZodObject<{
126
182
  sender: import("zod").ZodEffects<import("zod").ZodString, `0x${string}`, string>;
@@ -138,7 +194,7 @@ export declare const pimlicoSendUserOperationNowHandler: {
138
194
  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
195
  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
196
  signature: import("zod").ZodEffects<import("zod").ZodString, `0x${string}`, string>;
141
- eip7702Auth: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodObject<{
197
+ eip7702Auth: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodObject<{
142
198
  contractAddress: import("zod").ZodEffects<import("zod").ZodString, `0x${string}`, string>;
143
199
  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
200
  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>;
@@ -162,7 +218,31 @@ export declare const pimlicoSendUserOperationNowHandler: {
162
218
  s: string;
163
219
  v: string | number | bigint;
164
220
  yParity: string | number | bigint;
165
- }>>>;
221
+ }>, import("zod").ZodObject<{
222
+ address: import("zod").ZodEffects<import("zod").ZodString, `0x${string}`, string>;
223
+ 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>;
224
+ 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>;
225
+ r: import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodString, `0x${string}`, string>, `0x${string}`, string>;
226
+ s: import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodString, `0x${string}`, string>, `0x${string}`, string>;
227
+ v: 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>;
228
+ yParity: 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>;
229
+ }, "strip", import("zod").ZodTypeAny, {
230
+ address: `0x${string}`;
231
+ nonce: number;
232
+ chainId: number;
233
+ r: `0x${string}`;
234
+ s: `0x${string}`;
235
+ v: bigint;
236
+ yParity: number;
237
+ }, {
238
+ address: string;
239
+ nonce: string | number | bigint;
240
+ chainId: string | number | bigint;
241
+ r: string;
242
+ s: string;
243
+ v: string | number | bigint;
244
+ yParity: string | number | bigint;
245
+ }>]>>>;
166
246
  }, "strict", import("zod").ZodTypeAny, {
167
247
  sender: `0x${string}`;
168
248
  factory: `0x${string}` | null;
@@ -187,6 +267,14 @@ export declare const pimlicoSendUserOperationNowHandler: {
187
267
  s: `0x${string}`;
188
268
  v: bigint;
189
269
  yParity: number;
270
+ } | {
271
+ address: `0x${string}`;
272
+ nonce: number;
273
+ chainId: number;
274
+ r: `0x${string}`;
275
+ s: `0x${string}`;
276
+ v: bigint;
277
+ yParity: number;
190
278
  } | null | undefined;
191
279
  }, {
192
280
  sender: string;
@@ -212,6 +300,14 @@ export declare const pimlicoSendUserOperationNowHandler: {
212
300
  s: string;
213
301
  v: string | number | bigint;
214
302
  yParity: string | number | bigint;
303
+ } | {
304
+ address: string;
305
+ nonce: string | number | bigint;
306
+ chainId: string | number | bigint;
307
+ r: string;
308
+ s: string;
309
+ v: string | number | bigint;
310
+ yParity: string | number | bigint;
215
311
  } | null | undefined;
216
312
  }>, {
217
313
  sender: `0x${string}`;
@@ -237,6 +333,14 @@ export declare const pimlicoSendUserOperationNowHandler: {
237
333
  s: `0x${string}`;
238
334
  v: bigint;
239
335
  yParity: number;
336
+ } | {
337
+ address: `0x${string}`;
338
+ nonce: number;
339
+ chainId: number;
340
+ r: `0x${string}`;
341
+ s: `0x${string}`;
342
+ v: bigint;
343
+ yParity: number;
240
344
  } | null | undefined;
241
345
  }, {
242
346
  sender: string;
@@ -262,6 +366,14 @@ export declare const pimlicoSendUserOperationNowHandler: {
262
366
  s: string;
263
367
  v: string | number | bigint;
264
368
  yParity: string | number | bigint;
369
+ } | {
370
+ address: string;
371
+ nonce: string | number | bigint;
372
+ chainId: string | number | bigint;
373
+ r: string;
374
+ s: string;
375
+ v: string | number | bigint;
376
+ yParity: string | number | bigint;
265
377
  } | null | undefined;
266
378
  }>]>, import("zod").ZodEffects<import("zod").ZodString, `0x${string}`, string>], null>;
267
379
  result: import("zod").ZodUnion<[import("zod").ZodObject<{
@@ -545,6 +657,14 @@ export declare const pimlicoSendUserOperationNowHandler: {
545
657
  s: `0x${string}`;
546
658
  v: bigint;
547
659
  yParity: number;
660
+ } | {
661
+ address: `0x${string}`;
662
+ nonce: number;
663
+ chainId: number;
664
+ r: `0x${string}`;
665
+ s: `0x${string}`;
666
+ v: bigint;
667
+ yParity: number;
548
668
  } | null | undefined;
549
669
  } | {
550
670
  sender: `0x${string}`;
@@ -570,6 +690,14 @@ export declare const pimlicoSendUserOperationNowHandler: {
570
690
  s: `0x${string}`;
571
691
  v: bigint;
572
692
  yParity: number;
693
+ } | {
694
+ address: `0x${string}`;
695
+ nonce: number;
696
+ chainId: number;
697
+ r: `0x${string}`;
698
+ s: `0x${string}`;
699
+ v: bigint;
700
+ yParity: number;
573
701
  } | null | undefined;
574
702
  }, `0x${string}`];
575
703
  method: "pimlico_sendUserOperationNow";
@@ -639,6 +767,14 @@ export declare const pimlicoSendUserOperationNowHandler: {
639
767
  s: string;
640
768
  v: string | number | bigint;
641
769
  yParity: string | number | bigint;
770
+ } | {
771
+ address: string;
772
+ nonce: string | number | bigint;
773
+ chainId: string | number | bigint;
774
+ r: string;
775
+ s: string;
776
+ v: string | number | bigint;
777
+ yParity: string | number | bigint;
642
778
  } | null | undefined;
643
779
  } | {
644
780
  sender: string;
@@ -664,6 +800,14 @@ export declare const pimlicoSendUserOperationNowHandler: {
664
800
  s: string;
665
801
  v: string | number | bigint;
666
802
  yParity: string | number | bigint;
803
+ } | {
804
+ address: string;
805
+ nonce: string | number | bigint;
806
+ chainId: string | number | bigint;
807
+ r: string;
808
+ s: string;
809
+ v: string | number | bigint;
810
+ yParity: string | number | bigint;
667
811
  } | null | undefined;
668
812
  }, string];
669
813
  method: "pimlico_sendUserOperationNow";
@@ -691,6 +835,14 @@ export declare const pimlicoSendUserOperationNowHandler: {
691
835
  s: `0x${string}`;
692
836
  v: bigint;
693
837
  yParity: number;
838
+ } | {
839
+ address: `0x${string}`;
840
+ nonce: number;
841
+ chainId: number;
842
+ r: `0x${string}`;
843
+ s: `0x${string}`;
844
+ v: bigint;
845
+ yParity: number;
694
846
  } | null | undefined;
695
847
  }> | import("type-fest/source/readonly-deep").ReadonlyObjectDeep<{
696
848
  sender: `0x${string}`;
@@ -716,6 +868,14 @@ export declare const pimlicoSendUserOperationNowHandler: {
716
868
  s: `0x${string}`;
717
869
  v: bigint;
718
870
  yParity: number;
871
+ } | {
872
+ address: `0x${string}`;
873
+ nonce: number;
874
+ chainId: number;
875
+ r: `0x${string}`;
876
+ s: `0x${string}`;
877
+ v: bigint;
878
+ yParity: number;
719
879
  } | null | undefined;
720
880
  }>, `0x${string}`];
721
881
  apiVersion: import("../../types/index.js").ApiVersion;
@@ -166,7 +166,17 @@ export class RpcHandler {
166
166
  // Check that auth is valid.
167
167
  const sender = validateSender
168
168
  ? await recoverAuthorizationAddress({
169
- authorization: userOperation.eip7702Auth
169
+ authorization: {
170
+ contractAddress: "address" in userOperation.eip7702Auth
171
+ ? userOperation.eip7702Auth.address
172
+ : userOperation.eip7702Auth.contractAddress,
173
+ chainId: userOperation.eip7702Auth.chainId,
174
+ nonce: userOperation.eip7702Auth.nonce,
175
+ r: userOperation.eip7702Auth.r,
176
+ s: userOperation.eip7702Auth.s,
177
+ v: userOperation.eip7702Auth.v,
178
+ yParity: userOperation.eip7702Auth.yParity
179
+ }
170
180
  })
171
181
  : userOperation.sender;
172
182
  if (sender !== userOperation.sender) {