@pimlico/alto 0.0.5 → 0.0.7
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/cli/config/bundler.d.ts +52 -34
- package/esm/cli/config/bundler.js +12 -1
- package/esm/cli/config/bundler.js.map +1 -1
- package/esm/cli/config/options.d.ts +2 -1
- package/esm/cli/config/options.js +14 -0
- package/esm/cli/config/options.js.map +1 -1
- package/esm/cli/setupServer.js +2 -2
- package/esm/cli/setupServer.js.map +1 -1
- package/esm/executor/executorManager.js +14 -4
- package/esm/executor/executorManager.js.map +1 -1
- package/esm/handlers/gasPriceManager.d.ts +14 -0
- package/esm/handlers/gasPriceManager.js +71 -1
- package/esm/handlers/gasPriceManager.js.map +1 -1
- package/esm/rpc/estimation/gasEstimationHandler.d.ts +24 -0
- package/esm/rpc/estimation/gasEstimationHandler.js +64 -0
- package/esm/rpc/estimation/gasEstimationHandler.js.map +1 -0
- package/esm/rpc/estimation/gasEstimationsV06.d.ts +19 -0
- package/esm/rpc/estimation/gasEstimationsV06.js +115 -0
- package/esm/rpc/estimation/gasEstimationsV06.js.map +1 -0
- package/esm/rpc/estimation/gasEstimationsV07.d.ts +93 -0
- package/esm/rpc/estimation/gasEstimationsV07.js +417 -0
- package/esm/rpc/estimation/gasEstimationsV07.js.map +1 -0
- package/esm/rpc/estimation/types.d.ts +113 -0
- package/esm/rpc/estimation/types.js +122 -0
- package/esm/rpc/estimation/types.js.map +1 -0
- package/esm/rpc/rpcHandler.js +11 -7
- package/esm/rpc/rpcHandler.js.map +1 -1
- package/esm/rpc/server.js +2 -3
- package/esm/rpc/server.js.map +1 -1
- package/esm/rpc/validation/SafeValidator.d.ts +1 -1
- package/esm/rpc/validation/SafeValidator.js +6 -7
- package/esm/rpc/validation/SafeValidator.js.map +1 -1
- package/esm/rpc/validation/UnsafeValidator.d.ts +4 -6
- package/esm/rpc/validation/UnsafeValidator.js +25 -17
- package/esm/rpc/validation/UnsafeValidator.js.map +1 -1
- package/esm/types/contracts/EntryPointSimulations.d.ts +1369 -143
- package/esm/types/contracts/EntryPointSimulations.js +196 -372
- package/esm/types/contracts/EntryPointSimulations.js.map +1 -1
- package/esm/types/contracts/IAccountExecute.d.ts +53 -0
- package/esm/types/contracts/IAccountExecute.js +68 -0
- package/esm/types/contracts/IAccountExecute.js.map +1 -0
- package/esm/types/contracts/PimlicoEntryPointSimulations.d.ts +1 -1
- package/esm/types/contracts/PimlicoEntryPointSimulations.js +1 -1
- package/esm/types/contracts/PimlicoEntryPointSimulations.js.map +1 -1
- package/esm/types/interfaces.d.ts +1 -1
- package/esm/types/schemas.d.ts +68 -68
- package/esm/utils/validation.d.ts +1 -1
- package/esm/utils/validation.js +19 -7
- package/esm/utils/validation.js.map +1 -1
- package/lib/cli/config/bundler.d.ts +52 -34
- package/lib/cli/config/bundler.js +13 -2
- package/lib/cli/config/bundler.js.map +1 -1
- package/lib/cli/config/options.d.ts +2 -1
- package/lib/cli/config/options.js +15 -1
- package/lib/cli/config/options.js.map +1 -1
- package/lib/cli/setupServer.js +2 -2
- package/lib/cli/setupServer.js.map +1 -1
- package/lib/executor/executorManager.js +14 -4
- package/lib/executor/executorManager.js.map +1 -1
- package/lib/handlers/gasPriceManager.d.ts +14 -0
- package/lib/handlers/gasPriceManager.js +70 -0
- package/lib/handlers/gasPriceManager.js.map +1 -1
- package/lib/rpc/estimation/gasEstimationHandler.d.ts +24 -0
- package/lib/rpc/estimation/gasEstimationHandler.js +68 -0
- package/lib/rpc/estimation/gasEstimationHandler.js.map +1 -0
- package/lib/rpc/estimation/gasEstimationsV06.d.ts +19 -0
- package/lib/rpc/estimation/gasEstimationsV06.js +119 -0
- package/lib/rpc/estimation/gasEstimationsV06.js.map +1 -0
- package/lib/rpc/estimation/gasEstimationsV07.d.ts +93 -0
- package/lib/rpc/estimation/gasEstimationsV07.js +423 -0
- package/lib/rpc/estimation/gasEstimationsV07.js.map +1 -0
- package/lib/rpc/estimation/types.d.ts +113 -0
- package/lib/rpc/estimation/types.js +125 -0
- package/lib/rpc/estimation/types.js.map +1 -0
- package/lib/rpc/rpcHandler.js +10 -6
- package/lib/rpc/rpcHandler.js.map +1 -1
- package/lib/rpc/server.js +2 -3
- package/lib/rpc/server.js.map +1 -1
- package/lib/rpc/validation/SafeValidator.d.ts +1 -1
- package/lib/rpc/validation/SafeValidator.js +7 -8
- package/lib/rpc/validation/SafeValidator.js.map +1 -1
- package/lib/rpc/validation/UnsafeValidator.d.ts +4 -6
- package/lib/rpc/validation/UnsafeValidator.js +25 -17
- package/lib/rpc/validation/UnsafeValidator.js.map +1 -1
- package/lib/types/contracts/EntryPointSimulations.d.ts +1369 -143
- package/lib/types/contracts/EntryPointSimulations.js +196 -372
- package/lib/types/contracts/EntryPointSimulations.js.map +1 -1
- package/lib/types/contracts/IAccountExecute.d.ts +53 -0
- package/lib/types/contracts/IAccountExecute.js +71 -0
- package/lib/types/contracts/IAccountExecute.js.map +1 -0
- package/lib/types/contracts/PimlicoEntryPointSimulations.d.ts +1 -1
- package/lib/types/contracts/PimlicoEntryPointSimulations.js +1 -1
- package/lib/types/contracts/PimlicoEntryPointSimulations.js.map +1 -1
- package/lib/types/interfaces.d.ts +1 -1
- package/lib/types/schemas.d.ts +68 -68
- package/lib/utils/validation.d.ts +1 -1
- package/lib/utils/validation.js +18 -6
- package/lib/utils/validation.js.map +1 -1
- package/package.json +1 -1
- package/esm/rpc/EntryPointSimulationsV07.d.ts +0 -62
- package/esm/rpc/EntryPointSimulationsV07.js +0 -410
- package/esm/rpc/EntryPointSimulationsV07.js.map +0 -1
- package/esm/rpc/ExecuteSimulator.d.ts +0 -37
- package/esm/rpc/ExecuteSimulator.js +0 -48
- package/esm/rpc/ExecuteSimulator.js.map +0 -1
- package/esm/rpc/gasEstimation.d.ts +0 -17
- package/esm/rpc/gasEstimation.js +0 -419
- package/esm/rpc/gasEstimation.js.map +0 -1
- package/lib/rpc/EntryPointSimulationsV07.d.ts +0 -62
- package/lib/rpc/EntryPointSimulationsV07.js +0 -417
- package/lib/rpc/EntryPointSimulationsV07.js.map +0 -1
- package/lib/rpc/ExecuteSimulator.d.ts +0 -37
- package/lib/rpc/ExecuteSimulator.js +0 -51
- package/lib/rpc/ExecuteSimulator.js.map +0 -1
- package/lib/rpc/gasEstimation.d.ts +0 -17
- package/lib/rpc/gasEstimation.js +0 -426
- package/lib/rpc/gasEstimation.js.map +0 -1
package/esm/types/schemas.d.ts
CHANGED
|
@@ -2213,21 +2213,21 @@ declare const chainIdResponseSchema: z.ZodObject<{
|
|
|
2213
2213
|
method: z.ZodLiteral<"eth_chainId">;
|
|
2214
2214
|
result: z.ZodEffects<z.ZodEffects<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodNumber]>, z.ZodBigInt]>, bigint, string | number | bigint>, bigint, string | number | bigint>;
|
|
2215
2215
|
}, "strip", z.ZodTypeAny, {
|
|
2216
|
-
method: "eth_chainId";
|
|
2217
2216
|
result: bigint;
|
|
2218
|
-
}, {
|
|
2219
2217
|
method: "eth_chainId";
|
|
2218
|
+
}, {
|
|
2220
2219
|
result: string | number | bigint;
|
|
2220
|
+
method: "eth_chainId";
|
|
2221
2221
|
}>;
|
|
2222
2222
|
declare const supportedEntryPointsResponseSchema: z.ZodObject<{
|
|
2223
2223
|
method: z.ZodLiteral<"eth_supportedEntryPoints">;
|
|
2224
2224
|
result: z.ZodArray<z.ZodEffects<z.ZodString, `0x${string}`, string>, "many">;
|
|
2225
2225
|
}, "strip", z.ZodTypeAny, {
|
|
2226
|
-
method: "eth_supportedEntryPoints";
|
|
2227
2226
|
result: `0x${string}`[];
|
|
2228
|
-
}, {
|
|
2229
2227
|
method: "eth_supportedEntryPoints";
|
|
2228
|
+
}, {
|
|
2230
2229
|
result: string[];
|
|
2230
|
+
method: "eth_supportedEntryPoints";
|
|
2231
2231
|
}>;
|
|
2232
2232
|
declare const estimateUserOperationGasResponseSchema: z.ZodObject<{
|
|
2233
2233
|
method: z.ZodLiteral<"eth_estimateUserOperationGas">;
|
|
@@ -2266,7 +2266,6 @@ declare const estimateUserOperationGasResponseSchema: z.ZodObject<{
|
|
|
2266
2266
|
paymasterPostOpGasLimit?: string | number | bigint | undefined;
|
|
2267
2267
|
}>]>;
|
|
2268
2268
|
}, "strip", z.ZodTypeAny, {
|
|
2269
|
-
method: "eth_estimateUserOperationGas";
|
|
2270
2269
|
result: ({
|
|
2271
2270
|
callGasLimit: bigint;
|
|
2272
2271
|
verificationGasLimit: bigint;
|
|
@@ -2290,8 +2289,8 @@ declare const estimateUserOperationGasResponseSchema: z.ZodObject<{
|
|
|
2290
2289
|
paymasterVerificationGasLimit?: bigint | undefined;
|
|
2291
2290
|
paymasterPostOpGasLimit?: bigint | undefined;
|
|
2292
2291
|
} | undefined);
|
|
2293
|
-
}, {
|
|
2294
2292
|
method: "eth_estimateUserOperationGas";
|
|
2293
|
+
}, {
|
|
2295
2294
|
result: ({
|
|
2296
2295
|
callGasLimit: string | number | bigint;
|
|
2297
2296
|
verificationGasLimit: string | number | bigint;
|
|
@@ -2315,16 +2314,17 @@ declare const estimateUserOperationGasResponseSchema: z.ZodObject<{
|
|
|
2315
2314
|
paymasterVerificationGasLimit?: string | number | bigint | undefined;
|
|
2316
2315
|
paymasterPostOpGasLimit?: string | number | bigint | undefined;
|
|
2317
2316
|
} | undefined);
|
|
2317
|
+
method: "eth_estimateUserOperationGas";
|
|
2318
2318
|
}>;
|
|
2319
2319
|
declare const sendUserOperationResponseSchema: z.ZodObject<{
|
|
2320
2320
|
method: z.ZodLiteral<"eth_sendUserOperation">;
|
|
2321
2321
|
result: z.ZodEffects<z.ZodString, `0x${string}`, string>;
|
|
2322
2322
|
}, "strip", z.ZodTypeAny, {
|
|
2323
|
-
method: "eth_sendUserOperation";
|
|
2324
2323
|
result: `0x${string}`;
|
|
2325
|
-
}, {
|
|
2326
2324
|
method: "eth_sendUserOperation";
|
|
2325
|
+
}, {
|
|
2327
2326
|
result: string;
|
|
2327
|
+
method: "eth_sendUserOperation";
|
|
2328
2328
|
}>;
|
|
2329
2329
|
declare const getUserOperationByHashResponseSchema: z.ZodObject<{
|
|
2330
2330
|
method: z.ZodLiteral<"eth_getUserOperationByHash">;
|
|
@@ -2600,7 +2600,6 @@ declare const getUserOperationByHashResponseSchema: z.ZodObject<{
|
|
|
2600
2600
|
transactionHash: string;
|
|
2601
2601
|
}>, z.ZodNull]>;
|
|
2602
2602
|
}, "strip", z.ZodTypeAny, {
|
|
2603
|
-
method: "eth_getUserOperationByHash";
|
|
2604
2603
|
result: {
|
|
2605
2604
|
entryPoint: `0x${string}`;
|
|
2606
2605
|
userOperation: ({
|
|
@@ -2664,8 +2663,8 @@ declare const getUserOperationByHashResponseSchema: z.ZodObject<{
|
|
|
2664
2663
|
blockHash: `0x${string}`;
|
|
2665
2664
|
transactionHash: `0x${string}`;
|
|
2666
2665
|
} | null;
|
|
2667
|
-
}, {
|
|
2668
2666
|
method: "eth_getUserOperationByHash";
|
|
2667
|
+
}, {
|
|
2669
2668
|
result: {
|
|
2670
2669
|
entryPoint: string;
|
|
2671
2670
|
userOperation: ({
|
|
@@ -2729,6 +2728,7 @@ declare const getUserOperationByHashResponseSchema: z.ZodObject<{
|
|
|
2729
2728
|
blockHash: string;
|
|
2730
2729
|
transactionHash: string;
|
|
2731
2730
|
} | null;
|
|
2731
|
+
method: "eth_getUserOperationByHash";
|
|
2732
2732
|
}>;
|
|
2733
2733
|
declare const logSchema: z.ZodObject<{
|
|
2734
2734
|
logIndex: z.ZodEffects<z.ZodEffects<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodNumber]>, z.ZodBigInt]>, bigint, string | number | bigint>, bigint, string | number | bigint>;
|
|
@@ -3064,7 +3064,6 @@ declare const getUserOperationReceiptResponseSchema: z.ZodObject<{
|
|
|
3064
3064
|
reason?: string | undefined;
|
|
3065
3065
|
}>, z.ZodNull]>;
|
|
3066
3066
|
}, "strip", z.ZodTypeAny, {
|
|
3067
|
-
method: "eth_getUserOperationReceipt";
|
|
3068
3067
|
result: {
|
|
3069
3068
|
sender: `0x${string}`;
|
|
3070
3069
|
nonce: bigint;
|
|
@@ -3110,8 +3109,8 @@ declare const getUserOperationReceiptResponseSchema: z.ZodObject<{
|
|
|
3110
3109
|
paymaster?: `0x${string}` | undefined;
|
|
3111
3110
|
reason?: `0x${string}` | undefined;
|
|
3112
3111
|
} | null;
|
|
3113
|
-
}, {
|
|
3114
3112
|
method: "eth_getUserOperationReceipt";
|
|
3113
|
+
}, {
|
|
3115
3114
|
result: {
|
|
3116
3115
|
sender: string;
|
|
3117
3116
|
nonce: string | number | bigint;
|
|
@@ -3157,26 +3156,27 @@ declare const getUserOperationReceiptResponseSchema: z.ZodObject<{
|
|
|
3157
3156
|
paymaster?: string | undefined;
|
|
3158
3157
|
reason?: string | undefined;
|
|
3159
3158
|
} | null;
|
|
3159
|
+
method: "eth_getUserOperationReceipt";
|
|
3160
3160
|
}>;
|
|
3161
3161
|
declare const bundlerClearStateResponseSchema: z.ZodObject<{
|
|
3162
3162
|
method: z.ZodLiteral<"debug_bundler_clearState">;
|
|
3163
3163
|
result: z.ZodLiteral<"ok">;
|
|
3164
3164
|
}, "strip", z.ZodTypeAny, {
|
|
3165
|
-
method: "debug_bundler_clearState";
|
|
3166
3165
|
result: "ok";
|
|
3167
|
-
}, {
|
|
3168
3166
|
method: "debug_bundler_clearState";
|
|
3167
|
+
}, {
|
|
3169
3168
|
result: "ok";
|
|
3169
|
+
method: "debug_bundler_clearState";
|
|
3170
3170
|
}>;
|
|
3171
3171
|
declare const bundlerClearMempoolResponseSchema: z.ZodObject<{
|
|
3172
3172
|
method: z.ZodLiteral<"debug_bundler_clearMempool">;
|
|
3173
3173
|
result: z.ZodLiteral<"ok">;
|
|
3174
3174
|
}, "strip", z.ZodTypeAny, {
|
|
3175
|
-
method: "debug_bundler_clearMempool";
|
|
3176
3175
|
result: "ok";
|
|
3177
|
-
}, {
|
|
3178
3176
|
method: "debug_bundler_clearMempool";
|
|
3177
|
+
}, {
|
|
3179
3178
|
result: "ok";
|
|
3179
|
+
method: "debug_bundler_clearMempool";
|
|
3180
3180
|
}>;
|
|
3181
3181
|
declare const bundlerDumpMempoolResponseSchema: z.ZodObject<{
|
|
3182
3182
|
method: z.ZodLiteral<"debug_bundler_dumpMempool">;
|
|
@@ -3322,7 +3322,6 @@ declare const bundlerDumpMempoolResponseSchema: z.ZodObject<{
|
|
|
3322
3322
|
paymasterData?: string | null | undefined;
|
|
3323
3323
|
}>]>, "many">;
|
|
3324
3324
|
}, "strip", z.ZodTypeAny, {
|
|
3325
|
-
method: "debug_bundler_dumpMempool";
|
|
3326
3325
|
result: ({
|
|
3327
3326
|
sender: `0x${string}`;
|
|
3328
3327
|
nonce: bigint;
|
|
@@ -3352,8 +3351,8 @@ declare const bundlerDumpMempoolResponseSchema: z.ZodObject<{
|
|
|
3352
3351
|
factoryData: `0x${string}` | null;
|
|
3353
3352
|
paymasterData: `0x${string}` | null;
|
|
3354
3353
|
})[];
|
|
3355
|
-
}, {
|
|
3356
3354
|
method: "debug_bundler_dumpMempool";
|
|
3355
|
+
}, {
|
|
3357
3356
|
result: ({
|
|
3358
3357
|
sender: string;
|
|
3359
3358
|
nonce: string | number | bigint;
|
|
@@ -3383,6 +3382,7 @@ declare const bundlerDumpMempoolResponseSchema: z.ZodObject<{
|
|
|
3383
3382
|
paymasterPostOpGasLimit?: string | number | bigint | null | undefined;
|
|
3384
3383
|
paymasterData?: string | null | undefined;
|
|
3385
3384
|
})[];
|
|
3385
|
+
method: "debug_bundler_dumpMempool";
|
|
3386
3386
|
}>;
|
|
3387
3387
|
declare const bundlerGetStakeStatusResponseSchema: z.ZodObject<{
|
|
3388
3388
|
method: z.ZodLiteral<"debug_bundler_getStakeStatus">;
|
|
@@ -3417,7 +3417,6 @@ declare const bundlerGetStakeStatusResponseSchema: z.ZodObject<{
|
|
|
3417
3417
|
isStaked: boolean;
|
|
3418
3418
|
}>;
|
|
3419
3419
|
}, "strip", z.ZodTypeAny, {
|
|
3420
|
-
method: "debug_bundler_getStakeStatus";
|
|
3421
3420
|
result: {
|
|
3422
3421
|
stakeInfo: {
|
|
3423
3422
|
stake: string;
|
|
@@ -3426,8 +3425,8 @@ declare const bundlerGetStakeStatusResponseSchema: z.ZodObject<{
|
|
|
3426
3425
|
};
|
|
3427
3426
|
isStaked: boolean;
|
|
3428
3427
|
};
|
|
3429
|
-
}, {
|
|
3430
3428
|
method: "debug_bundler_getStakeStatus";
|
|
3429
|
+
}, {
|
|
3431
3430
|
result: {
|
|
3432
3431
|
stakeInfo: {
|
|
3433
3432
|
stake: string | number | bigint;
|
|
@@ -3436,36 +3435,37 @@ declare const bundlerGetStakeStatusResponseSchema: z.ZodObject<{
|
|
|
3436
3435
|
};
|
|
3437
3436
|
isStaked: boolean;
|
|
3438
3437
|
};
|
|
3438
|
+
method: "debug_bundler_getStakeStatus";
|
|
3439
3439
|
}>;
|
|
3440
3440
|
declare const bundlerSendBundleNowResponseSchema: z.ZodObject<{
|
|
3441
3441
|
method: z.ZodLiteral<"debug_bundler_sendBundleNow">;
|
|
3442
3442
|
result: z.ZodEffects<z.ZodString, `0x${string}`, string>;
|
|
3443
3443
|
}, "strip", z.ZodTypeAny, {
|
|
3444
|
-
method: "debug_bundler_sendBundleNow";
|
|
3445
3444
|
result: `0x${string}`;
|
|
3446
|
-
}, {
|
|
3447
3445
|
method: "debug_bundler_sendBundleNow";
|
|
3446
|
+
}, {
|
|
3448
3447
|
result: string;
|
|
3448
|
+
method: "debug_bundler_sendBundleNow";
|
|
3449
3449
|
}>;
|
|
3450
3450
|
declare const bundlerSetBundlingModeResponseSchema: z.ZodObject<{
|
|
3451
3451
|
method: z.ZodLiteral<"debug_bundler_setBundlingMode">;
|
|
3452
3452
|
result: z.ZodLiteral<"ok">;
|
|
3453
3453
|
}, "strip", z.ZodTypeAny, {
|
|
3454
|
-
method: "debug_bundler_setBundlingMode";
|
|
3455
3454
|
result: "ok";
|
|
3456
|
-
}, {
|
|
3457
3455
|
method: "debug_bundler_setBundlingMode";
|
|
3456
|
+
}, {
|
|
3458
3457
|
result: "ok";
|
|
3458
|
+
method: "debug_bundler_setBundlingMode";
|
|
3459
3459
|
}>;
|
|
3460
3460
|
declare const bundlerSetReputationsResponseSchema: z.ZodObject<{
|
|
3461
3461
|
method: z.ZodLiteral<"debug_bundler_setReputation">;
|
|
3462
3462
|
result: z.ZodLiteral<"ok">;
|
|
3463
3463
|
}, "strip", z.ZodTypeAny, {
|
|
3464
|
-
method: "debug_bundler_setReputation";
|
|
3465
3464
|
result: "ok";
|
|
3466
|
-
}, {
|
|
3467
3465
|
method: "debug_bundler_setReputation";
|
|
3466
|
+
}, {
|
|
3468
3467
|
result: "ok";
|
|
3468
|
+
method: "debug_bundler_setReputation";
|
|
3469
3469
|
}>;
|
|
3470
3470
|
declare const bundlerDumpReputationsResponseSchema: z.ZodObject<{
|
|
3471
3471
|
method: z.ZodLiteral<"debug_bundler_dumpReputation">;
|
|
@@ -3486,21 +3486,21 @@ declare const bundlerDumpReputationsResponseSchema: z.ZodObject<{
|
|
|
3486
3486
|
status?: string | number | bigint | undefined;
|
|
3487
3487
|
}>, "many">;
|
|
3488
3488
|
}, "strip", z.ZodTypeAny, {
|
|
3489
|
-
method: "debug_bundler_dumpReputation";
|
|
3490
3489
|
result: {
|
|
3491
3490
|
address: `0x${string}`;
|
|
3492
3491
|
opsSeen: bigint;
|
|
3493
3492
|
opsIncluded: bigint;
|
|
3494
3493
|
status?: bigint | undefined;
|
|
3495
3494
|
}[];
|
|
3496
|
-
}, {
|
|
3497
3495
|
method: "debug_bundler_dumpReputation";
|
|
3496
|
+
}, {
|
|
3498
3497
|
result: {
|
|
3499
3498
|
address: string;
|
|
3500
3499
|
opsSeen: string | number | bigint;
|
|
3501
3500
|
opsIncluded: string | number | bigint;
|
|
3502
3501
|
status?: string | number | bigint | undefined;
|
|
3503
3502
|
}[];
|
|
3503
|
+
method: "debug_bundler_dumpReputation";
|
|
3504
3504
|
}>;
|
|
3505
3505
|
declare const userOperationStatus: z.ZodObject<{
|
|
3506
3506
|
status: z.ZodEnum<["not_found", "not_submitted", "submitted", "rejected", "reverted", "included", "failed"]>;
|
|
@@ -3526,17 +3526,17 @@ declare const pimlicoGetUserOperationStatusResponseSchema: z.ZodObject<{
|
|
|
3526
3526
|
transactionHash: string | null;
|
|
3527
3527
|
}>;
|
|
3528
3528
|
}, "strip", z.ZodTypeAny, {
|
|
3529
|
-
method: "pimlico_getUserOperationStatus";
|
|
3530
3529
|
result: {
|
|
3531
3530
|
status: "not_submitted" | "rejected" | "submitted" | "included" | "not_found" | "reverted" | "failed";
|
|
3532
3531
|
transactionHash: `0x${string}` | null;
|
|
3533
3532
|
};
|
|
3534
|
-
}, {
|
|
3535
3533
|
method: "pimlico_getUserOperationStatus";
|
|
3534
|
+
}, {
|
|
3536
3535
|
result: {
|
|
3537
3536
|
status: "not_submitted" | "rejected" | "submitted" | "included" | "not_found" | "reverted" | "failed";
|
|
3538
3537
|
transactionHash: string | null;
|
|
3539
3538
|
};
|
|
3539
|
+
method: "pimlico_getUserOperationStatus";
|
|
3540
3540
|
}>;
|
|
3541
3541
|
declare const pimlicoGetUserOperationGasPriceResponseSchema: z.ZodObject<{
|
|
3542
3542
|
method: z.ZodLiteral<"pimlico_getUserOperationGasPrice">;
|
|
@@ -3599,7 +3599,6 @@ declare const pimlicoGetUserOperationGasPriceResponseSchema: z.ZodObject<{
|
|
|
3599
3599
|
};
|
|
3600
3600
|
}>;
|
|
3601
3601
|
}, "strip", z.ZodTypeAny, {
|
|
3602
|
-
method: "pimlico_getUserOperationGasPrice";
|
|
3603
3602
|
result: {
|
|
3604
3603
|
standard: {
|
|
3605
3604
|
maxFeePerGas: bigint;
|
|
@@ -3614,8 +3613,8 @@ declare const pimlicoGetUserOperationGasPriceResponseSchema: z.ZodObject<{
|
|
|
3614
3613
|
maxPriorityFeePerGas: bigint;
|
|
3615
3614
|
};
|
|
3616
3615
|
};
|
|
3617
|
-
}, {
|
|
3618
3616
|
method: "pimlico_getUserOperationGasPrice";
|
|
3617
|
+
}, {
|
|
3619
3618
|
result: {
|
|
3620
3619
|
standard: {
|
|
3621
3620
|
maxFeePerGas: bigint;
|
|
@@ -3630,25 +3629,26 @@ declare const pimlicoGetUserOperationGasPriceResponseSchema: z.ZodObject<{
|
|
|
3630
3629
|
maxPriorityFeePerGas: bigint;
|
|
3631
3630
|
};
|
|
3632
3631
|
};
|
|
3632
|
+
method: "pimlico_getUserOperationGasPrice";
|
|
3633
3633
|
}>;
|
|
3634
3634
|
declare const bundlerResponseSchema: z.ZodDiscriminatedUnion<"method", [z.ZodObject<{
|
|
3635
3635
|
method: z.ZodLiteral<"eth_chainId">;
|
|
3636
3636
|
result: z.ZodEffects<z.ZodEffects<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodNumber]>, z.ZodBigInt]>, bigint, string | number | bigint>, bigint, string | number | bigint>;
|
|
3637
3637
|
}, "strip", z.ZodTypeAny, {
|
|
3638
|
-
method: "eth_chainId";
|
|
3639
3638
|
result: bigint;
|
|
3640
|
-
}, {
|
|
3641
3639
|
method: "eth_chainId";
|
|
3640
|
+
}, {
|
|
3642
3641
|
result: string | number | bigint;
|
|
3642
|
+
method: "eth_chainId";
|
|
3643
3643
|
}>, z.ZodObject<{
|
|
3644
3644
|
method: z.ZodLiteral<"eth_supportedEntryPoints">;
|
|
3645
3645
|
result: z.ZodArray<z.ZodEffects<z.ZodString, `0x${string}`, string>, "many">;
|
|
3646
3646
|
}, "strip", z.ZodTypeAny, {
|
|
3647
|
-
method: "eth_supportedEntryPoints";
|
|
3648
3647
|
result: `0x${string}`[];
|
|
3649
|
-
}, {
|
|
3650
3648
|
method: "eth_supportedEntryPoints";
|
|
3649
|
+
}, {
|
|
3651
3650
|
result: string[];
|
|
3651
|
+
method: "eth_supportedEntryPoints";
|
|
3652
3652
|
}>, z.ZodObject<{
|
|
3653
3653
|
method: z.ZodLiteral<"eth_estimateUserOperationGas">;
|
|
3654
3654
|
result: z.ZodUnion<[z.ZodObject<{
|
|
@@ -3686,7 +3686,6 @@ declare const bundlerResponseSchema: z.ZodDiscriminatedUnion<"method", [z.ZodObj
|
|
|
3686
3686
|
paymasterPostOpGasLimit?: string | number | bigint | undefined;
|
|
3687
3687
|
}>]>;
|
|
3688
3688
|
}, "strip", z.ZodTypeAny, {
|
|
3689
|
-
method: "eth_estimateUserOperationGas";
|
|
3690
3689
|
result: ({
|
|
3691
3690
|
callGasLimit: bigint;
|
|
3692
3691
|
verificationGasLimit: bigint;
|
|
@@ -3710,8 +3709,8 @@ declare const bundlerResponseSchema: z.ZodDiscriminatedUnion<"method", [z.ZodObj
|
|
|
3710
3709
|
paymasterVerificationGasLimit?: bigint | undefined;
|
|
3711
3710
|
paymasterPostOpGasLimit?: bigint | undefined;
|
|
3712
3711
|
} | undefined);
|
|
3713
|
-
}, {
|
|
3714
3712
|
method: "eth_estimateUserOperationGas";
|
|
3713
|
+
}, {
|
|
3715
3714
|
result: ({
|
|
3716
3715
|
callGasLimit: string | number | bigint;
|
|
3717
3716
|
verificationGasLimit: string | number | bigint;
|
|
@@ -3735,15 +3734,16 @@ declare const bundlerResponseSchema: z.ZodDiscriminatedUnion<"method", [z.ZodObj
|
|
|
3735
3734
|
paymasterVerificationGasLimit?: string | number | bigint | undefined;
|
|
3736
3735
|
paymasterPostOpGasLimit?: string | number | bigint | undefined;
|
|
3737
3736
|
} | undefined);
|
|
3737
|
+
method: "eth_estimateUserOperationGas";
|
|
3738
3738
|
}>, z.ZodObject<{
|
|
3739
3739
|
method: z.ZodLiteral<"eth_sendUserOperation">;
|
|
3740
3740
|
result: z.ZodEffects<z.ZodString, `0x${string}`, string>;
|
|
3741
3741
|
}, "strip", z.ZodTypeAny, {
|
|
3742
|
-
method: "eth_sendUserOperation";
|
|
3743
3742
|
result: `0x${string}`;
|
|
3744
|
-
}, {
|
|
3745
3743
|
method: "eth_sendUserOperation";
|
|
3744
|
+
}, {
|
|
3746
3745
|
result: string;
|
|
3746
|
+
method: "eth_sendUserOperation";
|
|
3747
3747
|
}>, z.ZodObject<{
|
|
3748
3748
|
method: z.ZodLiteral<"eth_getUserOperationByHash">;
|
|
3749
3749
|
result: z.ZodUnion<[z.ZodObject<{
|
|
@@ -4018,7 +4018,6 @@ declare const bundlerResponseSchema: z.ZodDiscriminatedUnion<"method", [z.ZodObj
|
|
|
4018
4018
|
transactionHash: string;
|
|
4019
4019
|
}>, z.ZodNull]>;
|
|
4020
4020
|
}, "strip", z.ZodTypeAny, {
|
|
4021
|
-
method: "eth_getUserOperationByHash";
|
|
4022
4021
|
result: {
|
|
4023
4022
|
entryPoint: `0x${string}`;
|
|
4024
4023
|
userOperation: ({
|
|
@@ -4082,8 +4081,8 @@ declare const bundlerResponseSchema: z.ZodDiscriminatedUnion<"method", [z.ZodObj
|
|
|
4082
4081
|
blockHash: `0x${string}`;
|
|
4083
4082
|
transactionHash: `0x${string}`;
|
|
4084
4083
|
} | null;
|
|
4085
|
-
}, {
|
|
4086
4084
|
method: "eth_getUserOperationByHash";
|
|
4085
|
+
}, {
|
|
4087
4086
|
result: {
|
|
4088
4087
|
entryPoint: string;
|
|
4089
4088
|
userOperation: ({
|
|
@@ -4147,6 +4146,7 @@ declare const bundlerResponseSchema: z.ZodDiscriminatedUnion<"method", [z.ZodObj
|
|
|
4147
4146
|
blockHash: string;
|
|
4148
4147
|
transactionHash: string;
|
|
4149
4148
|
} | null;
|
|
4149
|
+
method: "eth_getUserOperationByHash";
|
|
4150
4150
|
}>, z.ZodObject<{
|
|
4151
4151
|
method: z.ZodLiteral<"eth_getUserOperationReceipt">;
|
|
4152
4152
|
result: z.ZodUnion<[z.ZodObject<{
|
|
@@ -4365,7 +4365,6 @@ declare const bundlerResponseSchema: z.ZodDiscriminatedUnion<"method", [z.ZodObj
|
|
|
4365
4365
|
reason?: string | undefined;
|
|
4366
4366
|
}>, z.ZodNull]>;
|
|
4367
4367
|
}, "strip", z.ZodTypeAny, {
|
|
4368
|
-
method: "eth_getUserOperationReceipt";
|
|
4369
4368
|
result: {
|
|
4370
4369
|
sender: `0x${string}`;
|
|
4371
4370
|
nonce: bigint;
|
|
@@ -4411,8 +4410,8 @@ declare const bundlerResponseSchema: z.ZodDiscriminatedUnion<"method", [z.ZodObj
|
|
|
4411
4410
|
paymaster?: `0x${string}` | undefined;
|
|
4412
4411
|
reason?: `0x${string}` | undefined;
|
|
4413
4412
|
} | null;
|
|
4414
|
-
}, {
|
|
4415
4413
|
method: "eth_getUserOperationReceipt";
|
|
4414
|
+
}, {
|
|
4416
4415
|
result: {
|
|
4417
4416
|
sender: string;
|
|
4418
4417
|
nonce: string | number | bigint;
|
|
@@ -4458,24 +4457,25 @@ declare const bundlerResponseSchema: z.ZodDiscriminatedUnion<"method", [z.ZodObj
|
|
|
4458
4457
|
paymaster?: string | undefined;
|
|
4459
4458
|
reason?: string | undefined;
|
|
4460
4459
|
} | null;
|
|
4460
|
+
method: "eth_getUserOperationReceipt";
|
|
4461
4461
|
}>, z.ZodObject<{
|
|
4462
4462
|
method: z.ZodLiteral<"debug_bundler_clearState">;
|
|
4463
4463
|
result: z.ZodLiteral<"ok">;
|
|
4464
4464
|
}, "strip", z.ZodTypeAny, {
|
|
4465
|
-
method: "debug_bundler_clearState";
|
|
4466
4465
|
result: "ok";
|
|
4467
|
-
}, {
|
|
4468
4466
|
method: "debug_bundler_clearState";
|
|
4467
|
+
}, {
|
|
4469
4468
|
result: "ok";
|
|
4469
|
+
method: "debug_bundler_clearState";
|
|
4470
4470
|
}>, z.ZodObject<{
|
|
4471
4471
|
method: z.ZodLiteral<"debug_bundler_clearMempool">;
|
|
4472
4472
|
result: z.ZodLiteral<"ok">;
|
|
4473
4473
|
}, "strip", z.ZodTypeAny, {
|
|
4474
|
-
method: "debug_bundler_clearMempool";
|
|
4475
4474
|
result: "ok";
|
|
4476
|
-
}, {
|
|
4477
4475
|
method: "debug_bundler_clearMempool";
|
|
4476
|
+
}, {
|
|
4478
4477
|
result: "ok";
|
|
4478
|
+
method: "debug_bundler_clearMempool";
|
|
4479
4479
|
}>, z.ZodObject<{
|
|
4480
4480
|
method: z.ZodLiteral<"debug_bundler_dumpMempool">;
|
|
4481
4481
|
result: z.ZodArray<z.ZodUnion<[z.ZodEffects<z.ZodObject<{
|
|
@@ -4620,7 +4620,6 @@ declare const bundlerResponseSchema: z.ZodDiscriminatedUnion<"method", [z.ZodObj
|
|
|
4620
4620
|
paymasterData?: string | null | undefined;
|
|
4621
4621
|
}>]>, "many">;
|
|
4622
4622
|
}, "strip", z.ZodTypeAny, {
|
|
4623
|
-
method: "debug_bundler_dumpMempool";
|
|
4624
4623
|
result: ({
|
|
4625
4624
|
sender: `0x${string}`;
|
|
4626
4625
|
nonce: bigint;
|
|
@@ -4650,8 +4649,8 @@ declare const bundlerResponseSchema: z.ZodDiscriminatedUnion<"method", [z.ZodObj
|
|
|
4650
4649
|
factoryData: `0x${string}` | null;
|
|
4651
4650
|
paymasterData: `0x${string}` | null;
|
|
4652
4651
|
})[];
|
|
4653
|
-
}, {
|
|
4654
4652
|
method: "debug_bundler_dumpMempool";
|
|
4653
|
+
}, {
|
|
4655
4654
|
result: ({
|
|
4656
4655
|
sender: string;
|
|
4657
4656
|
nonce: string | number | bigint;
|
|
@@ -4681,6 +4680,7 @@ declare const bundlerResponseSchema: z.ZodDiscriminatedUnion<"method", [z.ZodObj
|
|
|
4681
4680
|
paymasterPostOpGasLimit?: string | number | bigint | null | undefined;
|
|
4682
4681
|
paymasterData?: string | null | undefined;
|
|
4683
4682
|
})[];
|
|
4683
|
+
method: "debug_bundler_dumpMempool";
|
|
4684
4684
|
}>, z.ZodObject<{
|
|
4685
4685
|
method: z.ZodLiteral<"debug_bundler_getStakeStatus">;
|
|
4686
4686
|
result: z.ZodObject<{
|
|
@@ -4714,7 +4714,6 @@ declare const bundlerResponseSchema: z.ZodDiscriminatedUnion<"method", [z.ZodObj
|
|
|
4714
4714
|
isStaked: boolean;
|
|
4715
4715
|
}>;
|
|
4716
4716
|
}, "strip", z.ZodTypeAny, {
|
|
4717
|
-
method: "debug_bundler_getStakeStatus";
|
|
4718
4717
|
result: {
|
|
4719
4718
|
stakeInfo: {
|
|
4720
4719
|
stake: string;
|
|
@@ -4723,8 +4722,8 @@ declare const bundlerResponseSchema: z.ZodDiscriminatedUnion<"method", [z.ZodObj
|
|
|
4723
4722
|
};
|
|
4724
4723
|
isStaked: boolean;
|
|
4725
4724
|
};
|
|
4726
|
-
}, {
|
|
4727
4725
|
method: "debug_bundler_getStakeStatus";
|
|
4726
|
+
}, {
|
|
4728
4727
|
result: {
|
|
4729
4728
|
stakeInfo: {
|
|
4730
4729
|
stake: string | number | bigint;
|
|
@@ -4733,33 +4732,34 @@ declare const bundlerResponseSchema: z.ZodDiscriminatedUnion<"method", [z.ZodObj
|
|
|
4733
4732
|
};
|
|
4734
4733
|
isStaked: boolean;
|
|
4735
4734
|
};
|
|
4735
|
+
method: "debug_bundler_getStakeStatus";
|
|
4736
4736
|
}>, z.ZodObject<{
|
|
4737
4737
|
method: z.ZodLiteral<"debug_bundler_sendBundleNow">;
|
|
4738
4738
|
result: z.ZodEffects<z.ZodString, `0x${string}`, string>;
|
|
4739
4739
|
}, "strip", z.ZodTypeAny, {
|
|
4740
|
-
method: "debug_bundler_sendBundleNow";
|
|
4741
4740
|
result: `0x${string}`;
|
|
4742
|
-
}, {
|
|
4743
4741
|
method: "debug_bundler_sendBundleNow";
|
|
4742
|
+
}, {
|
|
4744
4743
|
result: string;
|
|
4744
|
+
method: "debug_bundler_sendBundleNow";
|
|
4745
4745
|
}>, z.ZodObject<{
|
|
4746
4746
|
method: z.ZodLiteral<"debug_bundler_setBundlingMode">;
|
|
4747
4747
|
result: z.ZodLiteral<"ok">;
|
|
4748
4748
|
}, "strip", z.ZodTypeAny, {
|
|
4749
|
-
method: "debug_bundler_setBundlingMode";
|
|
4750
4749
|
result: "ok";
|
|
4751
|
-
}, {
|
|
4752
4750
|
method: "debug_bundler_setBundlingMode";
|
|
4751
|
+
}, {
|
|
4753
4752
|
result: "ok";
|
|
4753
|
+
method: "debug_bundler_setBundlingMode";
|
|
4754
4754
|
}>, z.ZodObject<{
|
|
4755
4755
|
method: z.ZodLiteral<"debug_bundler_setReputation">;
|
|
4756
4756
|
result: z.ZodLiteral<"ok">;
|
|
4757
4757
|
}, "strip", z.ZodTypeAny, {
|
|
4758
|
-
method: "debug_bundler_setReputation";
|
|
4759
4758
|
result: "ok";
|
|
4760
|
-
}, {
|
|
4761
4759
|
method: "debug_bundler_setReputation";
|
|
4760
|
+
}, {
|
|
4762
4761
|
result: "ok";
|
|
4762
|
+
method: "debug_bundler_setReputation";
|
|
4763
4763
|
}>, z.ZodObject<{
|
|
4764
4764
|
method: z.ZodLiteral<"debug_bundler_dumpReputation">;
|
|
4765
4765
|
result: z.ZodArray<z.ZodObject<{
|
|
@@ -4779,21 +4779,21 @@ declare const bundlerResponseSchema: z.ZodDiscriminatedUnion<"method", [z.ZodObj
|
|
|
4779
4779
|
status?: string | number | bigint | undefined;
|
|
4780
4780
|
}>, "many">;
|
|
4781
4781
|
}, "strip", z.ZodTypeAny, {
|
|
4782
|
-
method: "debug_bundler_dumpReputation";
|
|
4783
4782
|
result: {
|
|
4784
4783
|
address: `0x${string}`;
|
|
4785
4784
|
opsSeen: bigint;
|
|
4786
4785
|
opsIncluded: bigint;
|
|
4787
4786
|
status?: bigint | undefined;
|
|
4788
4787
|
}[];
|
|
4789
|
-
}, {
|
|
4790
4788
|
method: "debug_bundler_dumpReputation";
|
|
4789
|
+
}, {
|
|
4791
4790
|
result: {
|
|
4792
4791
|
address: string;
|
|
4793
4792
|
opsSeen: string | number | bigint;
|
|
4794
4793
|
opsIncluded: string | number | bigint;
|
|
4795
4794
|
status?: string | number | bigint | undefined;
|
|
4796
4795
|
}[];
|
|
4796
|
+
method: "debug_bundler_dumpReputation";
|
|
4797
4797
|
}>, z.ZodObject<{
|
|
4798
4798
|
method: z.ZodLiteral<"pimlico_getUserOperationStatus">;
|
|
4799
4799
|
result: z.ZodObject<{
|
|
@@ -4807,17 +4807,17 @@ declare const bundlerResponseSchema: z.ZodDiscriminatedUnion<"method", [z.ZodObj
|
|
|
4807
4807
|
transactionHash: string | null;
|
|
4808
4808
|
}>;
|
|
4809
4809
|
}, "strip", z.ZodTypeAny, {
|
|
4810
|
-
method: "pimlico_getUserOperationStatus";
|
|
4811
4810
|
result: {
|
|
4812
4811
|
status: "not_submitted" | "rejected" | "submitted" | "included" | "not_found" | "reverted" | "failed";
|
|
4813
4812
|
transactionHash: `0x${string}` | null;
|
|
4814
4813
|
};
|
|
4815
|
-
}, {
|
|
4816
4814
|
method: "pimlico_getUserOperationStatus";
|
|
4815
|
+
}, {
|
|
4817
4816
|
result: {
|
|
4818
4817
|
status: "not_submitted" | "rejected" | "submitted" | "included" | "not_found" | "reverted" | "failed";
|
|
4819
4818
|
transactionHash: string | null;
|
|
4820
4819
|
};
|
|
4820
|
+
method: "pimlico_getUserOperationStatus";
|
|
4821
4821
|
}>, z.ZodObject<{
|
|
4822
4822
|
method: z.ZodLiteral<"pimlico_getUserOperationGasPrice">;
|
|
4823
4823
|
result: z.ZodObject<{
|
|
@@ -4879,7 +4879,6 @@ declare const bundlerResponseSchema: z.ZodDiscriminatedUnion<"method", [z.ZodObj
|
|
|
4879
4879
|
};
|
|
4880
4880
|
}>;
|
|
4881
4881
|
}, "strip", z.ZodTypeAny, {
|
|
4882
|
-
method: "pimlico_getUserOperationGasPrice";
|
|
4883
4882
|
result: {
|
|
4884
4883
|
standard: {
|
|
4885
4884
|
maxFeePerGas: bigint;
|
|
@@ -4894,8 +4893,8 @@ declare const bundlerResponseSchema: z.ZodDiscriminatedUnion<"method", [z.ZodObj
|
|
|
4894
4893
|
maxPriorityFeePerGas: bigint;
|
|
4895
4894
|
};
|
|
4896
4895
|
};
|
|
4897
|
-
}, {
|
|
4898
4896
|
method: "pimlico_getUserOperationGasPrice";
|
|
4897
|
+
}, {
|
|
4899
4898
|
result: {
|
|
4900
4899
|
standard: {
|
|
4901
4900
|
maxFeePerGas: bigint;
|
|
@@ -4910,15 +4909,16 @@ declare const bundlerResponseSchema: z.ZodDiscriminatedUnion<"method", [z.ZodObj
|
|
|
4910
4909
|
maxPriorityFeePerGas: bigint;
|
|
4911
4910
|
};
|
|
4912
4911
|
};
|
|
4912
|
+
method: "pimlico_getUserOperationGasPrice";
|
|
4913
4913
|
}>, z.ZodObject<{
|
|
4914
4914
|
method: z.ZodLiteral<"pimlico_sendCompressedUserOperation">;
|
|
4915
4915
|
result: z.ZodEffects<z.ZodString, `0x${string}`, string>;
|
|
4916
4916
|
}, "strip", z.ZodTypeAny, {
|
|
4917
|
-
method: "pimlico_sendCompressedUserOperation";
|
|
4918
4917
|
result: `0x${string}`;
|
|
4919
|
-
}, {
|
|
4920
4918
|
method: "pimlico_sendCompressedUserOperation";
|
|
4919
|
+
}, {
|
|
4921
4920
|
result: string;
|
|
4921
|
+
method: "pimlico_sendCompressedUserOperation";
|
|
4922
4922
|
}>, z.ZodObject<{
|
|
4923
4923
|
method: z.ZodLiteral<"pimlico_sendUserOperationNow">;
|
|
4924
4924
|
result: z.ZodUnion<[z.ZodObject<{
|
|
@@ -5137,7 +5137,6 @@ declare const bundlerResponseSchema: z.ZodDiscriminatedUnion<"method", [z.ZodObj
|
|
|
5137
5137
|
reason?: string | undefined;
|
|
5138
5138
|
}>, z.ZodNull]>;
|
|
5139
5139
|
}, "strip", z.ZodTypeAny, {
|
|
5140
|
-
method: "pimlico_sendUserOperationNow";
|
|
5141
5140
|
result: {
|
|
5142
5141
|
sender: `0x${string}`;
|
|
5143
5142
|
nonce: bigint;
|
|
@@ -5183,8 +5182,8 @@ declare const bundlerResponseSchema: z.ZodDiscriminatedUnion<"method", [z.ZodObj
|
|
|
5183
5182
|
paymaster?: `0x${string}` | undefined;
|
|
5184
5183
|
reason?: `0x${string}` | undefined;
|
|
5185
5184
|
} | null;
|
|
5186
|
-
}, {
|
|
5187
5185
|
method: "pimlico_sendUserOperationNow";
|
|
5186
|
+
}, {
|
|
5188
5187
|
result: {
|
|
5189
5188
|
sender: string;
|
|
5190
5189
|
nonce: string | number | bigint;
|
|
@@ -5230,6 +5229,7 @@ declare const bundlerResponseSchema: z.ZodDiscriminatedUnion<"method", [z.ZodObj
|
|
|
5230
5229
|
paymaster?: string | undefined;
|
|
5231
5230
|
reason?: string | undefined;
|
|
5232
5231
|
} | null;
|
|
5232
|
+
method: "pimlico_sendUserOperationNow";
|
|
5233
5233
|
}>]>;
|
|
5234
5234
|
export type BundlingMode = z.infer<typeof bundlerSetBundlingModeRequestSchema>["params"][0];
|
|
5235
5235
|
export type Reputations = z.infer<typeof bundlerSetReputationsRequestSchema>["params"][0];
|
|
@@ -60,6 +60,6 @@ export declare function calcVerificationGasAndCallGasLimit(userOperation: UserOp
|
|
|
60
60
|
*/
|
|
61
61
|
export declare function calcDefaultPreVerificationGas(userOperation: UserOperation, overheads?: Partial<GasOverheads>): bigint;
|
|
62
62
|
export declare function calcOptimismPreVerificationGas(publicClient: PublicClient<Transport, Chain>, op: UserOperation, entryPoint: Address, staticFee: bigint, gasPriceManager: GasPriceManager, verify?: boolean): Promise<bigint>;
|
|
63
|
-
export declare function calcArbitrumPreVerificationGas(publicClient: PublicClient<Transport, Chain | undefined>, op: UserOperation, entryPoint: Address, staticFee: bigint): Promise<bigint>;
|
|
63
|
+
export declare function calcArbitrumPreVerificationGas(publicClient: PublicClient<Transport, Chain | undefined>, op: UserOperation, entryPoint: Address, staticFee: bigint, gasPriceManager: GasPriceManager, validate: boolean): Promise<bigint>;
|
|
64
64
|
export declare function parseViemError(err: unknown): NonceTooLowError | FeeCapTooLowError | InsufficientFundsError | IntrinsicGasTooLowError | ContractFunctionRevertedError | EstimateGasExecutionError | undefined;
|
|
65
65
|
//# sourceMappingURL=validation.d.ts.map
|
package/esm/utils/validation.js
CHANGED
|
@@ -2,7 +2,7 @@ import { EntryPointV06Abi, EntryPointV07Abi } from "../types/index.js";
|
|
|
2
2
|
import { ContractFunctionExecutionError, ContractFunctionRevertedError, EstimateGasExecutionError, FeeCapTooLowError, InsufficientFundsError, IntrinsicGasTooLowError, NonceTooLowError, TransactionExecutionError, bytesToHex, concat, encodeAbiParameters, getAbiItem, getContract, serializeTransaction, toBytes, toFunctionSelector } from "viem";
|
|
3
3
|
import { baseGoerli, baseSepolia, base } from "viem/chains";
|
|
4
4
|
import { isVersion06, toPackedUserOperation } from "./userop.js";
|
|
5
|
-
import { minBigInt } from "./bigInt.js";
|
|
5
|
+
import { maxBigInt, minBigInt } from "./bigInt.js";
|
|
6
6
|
export const DefaultGasOverheads = {
|
|
7
7
|
fixed: 21000,
|
|
8
8
|
perUserOp: 18300,
|
|
@@ -187,7 +187,7 @@ overheads) {
|
|
|
187
187
|
preVerificationGas = await calcOptimismPreVerificationGas(publicClient, userOperation, entryPoint, preVerificationGas, gasPriceManager, validate);
|
|
188
188
|
}
|
|
189
189
|
else if (chainType === "arbitrum") {
|
|
190
|
-
preVerificationGas = await calcArbitrumPreVerificationGas(publicClient, userOperation, entryPoint, preVerificationGas);
|
|
190
|
+
preVerificationGas = await calcArbitrumPreVerificationGas(publicClient, userOperation, entryPoint, preVerificationGas, gasPriceManager, validate);
|
|
191
191
|
}
|
|
192
192
|
return preVerificationGas;
|
|
193
193
|
}
|
|
@@ -203,9 +203,7 @@ export function calcVerificationGasAndCallGasLimit(userOperation, executionResul
|
|
|
203
203
|
}
|
|
204
204
|
const calculatedCallGasLimit = callDataResult?.gasUsed ??
|
|
205
205
|
executionResult.paid / gasPrice - executionResult.preOpGas;
|
|
206
|
-
let callGasLimit = (calculatedCallGasLimit
|
|
207
|
-
21000n +
|
|
208
|
-
50000n;
|
|
206
|
+
let callGasLimit = maxBigInt(calculatedCallGasLimit, 9000n) + 21000n + 50000n;
|
|
209
207
|
if (chainId === baseGoerli.id ||
|
|
210
208
|
chainId === baseSepolia.id ||
|
|
211
209
|
chainId === base.id) {
|
|
@@ -374,7 +372,7 @@ const getArbitrumL1FeeAbi = [
|
|
|
374
372
|
type: "function"
|
|
375
373
|
}
|
|
376
374
|
];
|
|
377
|
-
export async function calcArbitrumPreVerificationGas(publicClient, op, entryPoint, staticFee) {
|
|
375
|
+
export async function calcArbitrumPreVerificationGas(publicClient, op, entryPoint, staticFee, gasPriceManager, validate) {
|
|
378
376
|
let selector;
|
|
379
377
|
let paramData;
|
|
380
378
|
if (isVersion06(op)) {
|
|
@@ -426,7 +424,21 @@ export async function calcArbitrumPreVerificationGas(publicClient, op, entryPoin
|
|
|
426
424
|
false,
|
|
427
425
|
serializedTx
|
|
428
426
|
]);
|
|
429
|
-
|
|
427
|
+
let [gasForL1, l2BaseFee, l1BaseFeeEstimate] = result;
|
|
428
|
+
gasPriceManager.arbitrumManager.saveL1BaseFee(l1BaseFeeEstimate);
|
|
429
|
+
gasPriceManager.arbitrumManager.saveL2BaseFee(l2BaseFee);
|
|
430
|
+
if (validate) {
|
|
431
|
+
if (l1BaseFeeEstimate === 0n) {
|
|
432
|
+
l1BaseFeeEstimate =
|
|
433
|
+
await gasPriceManager.arbitrumManager.getMaxL1BaseFee();
|
|
434
|
+
}
|
|
435
|
+
// gasEstimateL1Component source: https://github.com/OffchainLabs/nitro/blob/5cd7d6913eb6b4dedb08f6ea49d7f9802d2cc5b9/execution/nodeInterface/NodeInterface.go#L515-L551
|
|
436
|
+
const feesForL1 = (gasForL1 * l2BaseFee) / l1BaseFeeEstimate;
|
|
437
|
+
const minL1BaseFeeEstimate = await gasPriceManager.arbitrumManager.getMinL1BaseFee();
|
|
438
|
+
const maxL2BaseFee = await gasPriceManager.arbitrumManager.getMaxL2BaseFee();
|
|
439
|
+
gasForL1 = (feesForL1 * minL1BaseFeeEstimate) / maxL2BaseFee;
|
|
440
|
+
}
|
|
441
|
+
return staticFee + gasForL1;
|
|
430
442
|
}
|
|
431
443
|
export function parseViemError(err) {
|
|
432
444
|
if (err instanceof ContractFunctionExecutionError ||
|