@pimlico/alto 0.0.0-main.20250225T164854 → 0.0.0-main.20250227T131500
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/gasEstimationHandler.d.ts +3 -3
- package/esm/rpc/estimation/gasEstimationHandler.js +10 -17
- package/esm/rpc/estimation/gasEstimationHandler.js.map +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 +32 -32
- 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 +32 -32
- 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 +7 -7
- 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/UnsafeValidator.d.ts +2 -2
- package/esm/rpc/validation/UnsafeValidator.js +3 -3
- package/esm/rpc/validation/UnsafeValidator.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/interfaces.d.ts +1 -1
- package/esm/types/schemas.d.ts +422 -422
- package/esm/types/schemas.js +4 -4
- 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/gasEstimationHandler.d.ts +3 -3
- package/lib/rpc/estimation/gasEstimationHandler.js +9 -16
- package/lib/rpc/estimation/gasEstimationHandler.js.map +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 +32 -32
- 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 +32 -32
- 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 +7 -7
- 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/UnsafeValidator.d.ts +2 -2
- package/lib/rpc/validation/UnsafeValidator.js +3 -3
- package/lib/rpc/validation/UnsafeValidator.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/interfaces.d.ts +1 -1
- package/lib/types/schemas.d.ts +422 -422
- package/lib/types/schemas.js +4 -4
- 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
|
@@ -14,7 +14,7 @@ export declare const debugBundlerDumpMempoolHandler: {
|
|
|
14
14
|
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>;
|
|
15
15
|
paymasterAndData: import("zod").ZodEffects<import("zod").ZodString, `0x${string}`, string>;
|
|
16
16
|
signature: import("zod").ZodEffects<import("zod").ZodString, `0x${string}`, string>;
|
|
17
|
-
|
|
17
|
+
eip7702Auth: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodObject<{
|
|
18
18
|
contractAddress: import("zod").ZodEffects<import("zod").ZodString, `0x${string}`, string>;
|
|
19
19
|
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>;
|
|
20
20
|
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>;
|
|
@@ -51,7 +51,7 @@ export declare const debugBundlerDumpMempoolHandler: {
|
|
|
51
51
|
maxFeePerGas: bigint;
|
|
52
52
|
maxPriorityFeePerGas: bigint;
|
|
53
53
|
signature: `0x${string}`;
|
|
54
|
-
|
|
54
|
+
eip7702Auth?: {
|
|
55
55
|
nonce: number;
|
|
56
56
|
contractAddress: `0x${string}`;
|
|
57
57
|
chainId: number;
|
|
@@ -72,7 +72,7 @@ export declare const debugBundlerDumpMempoolHandler: {
|
|
|
72
72
|
maxFeePerGas: string | number | bigint;
|
|
73
73
|
maxPriorityFeePerGas: string | number | bigint;
|
|
74
74
|
signature: string;
|
|
75
|
-
|
|
75
|
+
eip7702Auth?: {
|
|
76
76
|
nonce: string | number | bigint;
|
|
77
77
|
contractAddress: string;
|
|
78
78
|
chainId: string | number | bigint;
|
|
@@ -93,7 +93,7 @@ export declare const debugBundlerDumpMempoolHandler: {
|
|
|
93
93
|
maxFeePerGas: bigint;
|
|
94
94
|
maxPriorityFeePerGas: bigint;
|
|
95
95
|
signature: `0x${string}`;
|
|
96
|
-
|
|
96
|
+
eip7702Auth?: {
|
|
97
97
|
nonce: number;
|
|
98
98
|
contractAddress: `0x${string}`;
|
|
99
99
|
chainId: number;
|
|
@@ -114,7 +114,7 @@ export declare const debugBundlerDumpMempoolHandler: {
|
|
|
114
114
|
maxFeePerGas: string | number | bigint;
|
|
115
115
|
maxPriorityFeePerGas: string | number | bigint;
|
|
116
116
|
signature: string;
|
|
117
|
-
|
|
117
|
+
eip7702Auth?: {
|
|
118
118
|
nonce: string | number | bigint;
|
|
119
119
|
contractAddress: string;
|
|
120
120
|
chainId: string | number | bigint;
|
|
@@ -139,7 +139,7 @@ export declare const debugBundlerDumpMempoolHandler: {
|
|
|
139
139
|
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>;
|
|
140
140
|
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>;
|
|
141
141
|
signature: import("zod").ZodEffects<import("zod").ZodString, `0x${string}`, string>;
|
|
142
|
-
|
|
142
|
+
eip7702Auth: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodObject<{
|
|
143
143
|
contractAddress: import("zod").ZodEffects<import("zod").ZodString, `0x${string}`, string>;
|
|
144
144
|
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>;
|
|
145
145
|
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>;
|
|
@@ -180,7 +180,7 @@ export declare const debugBundlerDumpMempoolHandler: {
|
|
|
180
180
|
paymasterPostOpGasLimit: bigint | null;
|
|
181
181
|
factoryData: `0x${string}` | null;
|
|
182
182
|
paymasterData: `0x${string}` | null;
|
|
183
|
-
|
|
183
|
+
eip7702Auth?: {
|
|
184
184
|
nonce: number;
|
|
185
185
|
contractAddress: `0x${string}`;
|
|
186
186
|
chainId: number;
|
|
@@ -205,7 +205,7 @@ export declare const debugBundlerDumpMempoolHandler: {
|
|
|
205
205
|
paymasterVerificationGasLimit?: string | number | bigint | null | undefined;
|
|
206
206
|
paymasterPostOpGasLimit?: string | number | bigint | null | undefined;
|
|
207
207
|
paymasterData?: string | null | undefined;
|
|
208
|
-
|
|
208
|
+
eip7702Auth?: {
|
|
209
209
|
nonce: string | number | bigint;
|
|
210
210
|
contractAddress: string;
|
|
211
211
|
chainId: string | number | bigint;
|
|
@@ -230,7 +230,7 @@ export declare const debugBundlerDumpMempoolHandler: {
|
|
|
230
230
|
paymasterPostOpGasLimit: bigint | null;
|
|
231
231
|
factoryData: `0x${string}` | null;
|
|
232
232
|
paymasterData: `0x${string}` | null;
|
|
233
|
-
|
|
233
|
+
eip7702Auth?: {
|
|
234
234
|
nonce: number;
|
|
235
235
|
contractAddress: `0x${string}`;
|
|
236
236
|
chainId: number;
|
|
@@ -255,7 +255,7 @@ export declare const debugBundlerDumpMempoolHandler: {
|
|
|
255
255
|
paymasterVerificationGasLimit?: string | number | bigint | null | undefined;
|
|
256
256
|
paymasterPostOpGasLimit?: string | number | bigint | null | undefined;
|
|
257
257
|
paymasterData?: string | null | undefined;
|
|
258
|
-
|
|
258
|
+
eip7702Auth?: {
|
|
259
259
|
nonce: string | number | bigint;
|
|
260
260
|
contractAddress: string;
|
|
261
261
|
chainId: string | number | bigint;
|
|
@@ -278,7 +278,7 @@ export declare const debugBundlerDumpMempoolHandler: {
|
|
|
278
278
|
maxFeePerGas: bigint;
|
|
279
279
|
maxPriorityFeePerGas: bigint;
|
|
280
280
|
signature: `0x${string}`;
|
|
281
|
-
|
|
281
|
+
eip7702Auth?: {
|
|
282
282
|
nonce: number;
|
|
283
283
|
contractAddress: `0x${string}`;
|
|
284
284
|
chainId: number;
|
|
@@ -303,7 +303,7 @@ export declare const debugBundlerDumpMempoolHandler: {
|
|
|
303
303
|
paymasterPostOpGasLimit: bigint | null;
|
|
304
304
|
factoryData: `0x${string}` | null;
|
|
305
305
|
paymasterData: `0x${string}` | null;
|
|
306
|
-
|
|
306
|
+
eip7702Auth?: {
|
|
307
307
|
nonce: number;
|
|
308
308
|
contractAddress: `0x${string}`;
|
|
309
309
|
chainId: number;
|
|
@@ -328,7 +328,7 @@ export declare const debugBundlerDumpMempoolHandler: {
|
|
|
328
328
|
maxFeePerGas: string | number | bigint;
|
|
329
329
|
maxPriorityFeePerGas: string | number | bigint;
|
|
330
330
|
signature: string;
|
|
331
|
-
|
|
331
|
+
eip7702Auth?: {
|
|
332
332
|
nonce: string | number | bigint;
|
|
333
333
|
contractAddress: string;
|
|
334
334
|
chainId: string | number | bigint;
|
|
@@ -353,7 +353,7 @@ export declare const debugBundlerDumpMempoolHandler: {
|
|
|
353
353
|
paymasterVerificationGasLimit?: string | number | bigint | null | undefined;
|
|
354
354
|
paymasterPostOpGasLimit?: string | number | bigint | null | undefined;
|
|
355
355
|
paymasterData?: string | null | undefined;
|
|
356
|
-
|
|
356
|
+
eip7702Auth?: {
|
|
357
357
|
nonce: string | number | bigint;
|
|
358
358
|
contractAddress: string;
|
|
359
359
|
chainId: string | number | bigint;
|
|
@@ -383,7 +383,7 @@ export declare const debugBundlerDumpMempoolHandler: {
|
|
|
383
383
|
maxFeePerGas: bigint;
|
|
384
384
|
maxPriorityFeePerGas: bigint;
|
|
385
385
|
signature: `0x${string}`;
|
|
386
|
-
|
|
386
|
+
eip7702Auth?: {
|
|
387
387
|
nonce: number;
|
|
388
388
|
contractAddress: `0x${string}`;
|
|
389
389
|
chainId: number;
|
|
@@ -408,7 +408,7 @@ export declare const debugBundlerDumpMempoolHandler: {
|
|
|
408
408
|
paymasterPostOpGasLimit: bigint | null;
|
|
409
409
|
factoryData: `0x${string}` | null;
|
|
410
410
|
paymasterData: `0x${string}` | null;
|
|
411
|
-
|
|
411
|
+
eip7702Auth?: {
|
|
412
412
|
nonce: number;
|
|
413
413
|
contractAddress: `0x${string}`;
|
|
414
414
|
chainId: number;
|
|
@@ -429,7 +429,7 @@ export declare const debugBundlerDumpMempoolHandler: {
|
|
|
429
429
|
maxFeePerGas: bigint;
|
|
430
430
|
maxPriorityFeePerGas: bigint;
|
|
431
431
|
signature: `0x${string}`;
|
|
432
|
-
|
|
432
|
+
eip7702Auth?: {
|
|
433
433
|
nonce: number;
|
|
434
434
|
contractAddress: `0x${string}`;
|
|
435
435
|
chainId: number;
|
|
@@ -454,7 +454,7 @@ export declare const debugBundlerDumpMempoolHandler: {
|
|
|
454
454
|
paymasterPostOpGasLimit: bigint | null;
|
|
455
455
|
factoryData: `0x${string}` | null;
|
|
456
456
|
paymasterData: `0x${string}` | null;
|
|
457
|
-
|
|
457
|
+
eip7702Auth?: {
|
|
458
458
|
nonce: number;
|
|
459
459
|
contractAddress: `0x${string}`;
|
|
460
460
|
chainId: number;
|
|
@@ -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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
916
|
+
eip7702Auth?: {
|
|
917
917
|
nonce: number;
|
|
918
918
|
contractAddress: `0x${string}`;
|
|
919
919
|
chainId: number;
|
|
@@ -6,10 +6,15 @@ const types_1 = require("../../types/index.js");
|
|
|
6
6
|
exports.ethEstimateUserOperationGasHandler = (0, createMethodHandler_1.createMethodHandler)({
|
|
7
7
|
method: "eth_estimateUserOperationGas",
|
|
8
8
|
schema: types_1.estimateUserOperationGasSchema,
|
|
9
|
-
handler: ({ rpcHandler, apiVersion, params }) => {
|
|
9
|
+
handler: async ({ rpcHandler, apiVersion, params }) => {
|
|
10
10
|
const userOperation = params[0];
|
|
11
11
|
const entryPoint = params[1];
|
|
12
12
|
const stateOverrides = params[2];
|
|
13
|
+
if (userOperation.eip7702Auth) {
|
|
14
|
+
await rpcHandler.validateEip7702Auth({
|
|
15
|
+
userOperation
|
|
16
|
+
});
|
|
17
|
+
}
|
|
13
18
|
return rpcHandler.estimateGas({
|
|
14
19
|
apiVersion,
|
|
15
20
|
userOperation,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"eth_estimateUserOperationGas.js","sourceRoot":"","sources":["../../../rpc/methods/eth_estimateUserOperationGas.ts"],"names":[],"mappings":";;;AAAA,gEAA4D;AAC5D,uCAA4D;AAE/C,QAAA,kCAAkC,GAAG,IAAA,yCAAmB,EAAC;IAClE,MAAM,EAAE,8BAA8B;IACtC,MAAM,EAAE,sCAA8B;IACtC,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"eth_estimateUserOperationGas.js","sourceRoot":"","sources":["../../../rpc/methods/eth_estimateUserOperationGas.ts"],"names":[],"mappings":";;;AAAA,gEAA4D;AAC5D,uCAA4D;AAE/C,QAAA,kCAAkC,GAAG,IAAA,yCAAmB,EAAC;IAClE,MAAM,EAAE,8BAA8B;IACtC,MAAM,EAAE,sCAA8B;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"}
|