@pimlico/alto 0.0.0-main.20250123T193838 → 0.0.0-main.20250127T151848
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/alto.js +3 -1
- package/esm/cli/alto.js.map +1 -1
- package/esm/cli/config/bundler.d.ts +193 -181
- package/esm/cli/config/bundler.js +34 -30
- package/esm/cli/config/bundler.js.map +1 -1
- package/esm/cli/config/options.d.ts +2 -1
- package/esm/cli/config/options.js +83 -75
- package/esm/cli/config/options.js.map +1 -1
- package/esm/executor/executor.js +2 -2
- package/esm/executor/executor.js.map +1 -1
- package/esm/executor/executorManager.js +2 -1
- package/esm/executor/executorManager.js.map +1 -1
- package/esm/rpc/rpcHandler.d.ts +1 -0
- package/esm/rpc/rpcHandler.js +22 -0
- package/esm/rpc/rpcHandler.js.map +1 -1
- package/esm/utils/validation.js +5 -1
- package/esm/utils/validation.js.map +1 -1
- package/lib/cli/alto.js +2 -0
- package/lib/cli/alto.js.map +1 -1
- package/lib/cli/config/bundler.d.ts +193 -181
- package/lib/cli/config/bundler.js +35 -31
- package/lib/cli/config/bundler.js.map +1 -1
- package/lib/cli/config/options.d.ts +2 -1
- package/lib/cli/config/options.js +84 -76
- package/lib/cli/config/options.js.map +1 -1
- package/lib/executor/executor.js +2 -2
- package/lib/executor/executor.js.map +1 -1
- package/lib/executor/executorManager.js +2 -1
- package/lib/executor/executorManager.js.map +1 -1
- package/lib/rpc/rpcHandler.d.ts +1 -0
- package/lib/rpc/rpcHandler.js +22 -0
- package/lib/rpc/rpcHandler.js.map +1 -1
- package/lib/utils/validation.js +5 -1
- package/lib/utils/validation.js.map +1 -1
- package/package.json +1 -1
|
@@ -3,10 +3,79 @@ import { z } from "zod";
|
|
|
3
3
|
export declare const bundlerArgsSchema: z.ZodObject<{
|
|
4
4
|
entrypoints: z.ZodEffects<z.ZodString, `0x${string}`[], string>;
|
|
5
5
|
"deterministic-deployer-address": z.ZodEffects<z.ZodString, `0x${string}`, string>;
|
|
6
|
-
"
|
|
6
|
+
"safe-mode": z.ZodBoolean;
|
|
7
|
+
"min-entity-stake": z.ZodNumber;
|
|
8
|
+
"min-entity-unstake-delay": z.ZodNumber;
|
|
9
|
+
"max-bundle-wait": z.ZodNumber;
|
|
10
|
+
"max-bundle-size": z.ZodNumber;
|
|
11
|
+
"gas-price-bump": z.ZodDefault<z.ZodEffects<z.ZodString, bigint, string>>;
|
|
12
|
+
"gas-price-floor-percent": z.ZodNumber;
|
|
13
|
+
"gas-price-expiry": z.ZodNumber;
|
|
14
|
+
"gas-price-multipliers": z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodString, bigint[], string>, bigint[], string>, {
|
|
15
|
+
slow: bigint;
|
|
16
|
+
standard: bigint;
|
|
17
|
+
fast: bigint;
|
|
18
|
+
}, string>;
|
|
19
|
+
"gas-price-refresh-interval": z.ZodNumber;
|
|
20
|
+
"mempool-max-parallel-ops": z.ZodDefault<z.ZodNumber>;
|
|
21
|
+
"mempool-max-queued-ops": z.ZodDefault<z.ZodNumber>;
|
|
22
|
+
"enforce-unique-senders-per-bundle": z.ZodDefault<z.ZodBoolean>;
|
|
23
|
+
"max-gas-per-bundle": z.ZodDefault<z.ZodEffects<z.ZodString, bigint, string>>;
|
|
24
|
+
"rpc-methods": z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodNullable<z.ZodString>, string[] | null, string | null>, string[] | null, string | null>, string[] | null, string | null>;
|
|
25
|
+
"enable-instant-bundling-endpoint": z.ZodBoolean;
|
|
26
|
+
"enable-experimental-7702-endpoints": z.ZodBoolean;
|
|
27
|
+
}, "strip", z.ZodTypeAny, {
|
|
28
|
+
entrypoints: `0x${string}`[];
|
|
29
|
+
"deterministic-deployer-address": `0x${string}`;
|
|
30
|
+
"safe-mode": boolean;
|
|
31
|
+
"min-entity-stake": number;
|
|
32
|
+
"min-entity-unstake-delay": number;
|
|
33
|
+
"max-bundle-wait": number;
|
|
34
|
+
"max-bundle-size": number;
|
|
35
|
+
"gas-price-bump": bigint;
|
|
36
|
+
"gas-price-floor-percent": number;
|
|
37
|
+
"gas-price-expiry": number;
|
|
38
|
+
"gas-price-multipliers": {
|
|
39
|
+
slow: bigint;
|
|
40
|
+
standard: bigint;
|
|
41
|
+
fast: bigint;
|
|
42
|
+
};
|
|
43
|
+
"gas-price-refresh-interval": number;
|
|
44
|
+
"mempool-max-parallel-ops": number;
|
|
45
|
+
"mempool-max-queued-ops": number;
|
|
46
|
+
"enforce-unique-senders-per-bundle": boolean;
|
|
47
|
+
"max-gas-per-bundle": bigint;
|
|
48
|
+
"rpc-methods": string[] | null;
|
|
49
|
+
"enable-instant-bundling-endpoint": boolean;
|
|
50
|
+
"enable-experimental-7702-endpoints": boolean;
|
|
51
|
+
}, {
|
|
52
|
+
entrypoints: string;
|
|
53
|
+
"deterministic-deployer-address": string;
|
|
54
|
+
"safe-mode": boolean;
|
|
55
|
+
"min-entity-stake": number;
|
|
56
|
+
"min-entity-unstake-delay": number;
|
|
57
|
+
"max-bundle-wait": number;
|
|
58
|
+
"max-bundle-size": number;
|
|
59
|
+
"gas-price-floor-percent": number;
|
|
60
|
+
"gas-price-expiry": number;
|
|
61
|
+
"gas-price-multipliers": string;
|
|
62
|
+
"gas-price-refresh-interval": number;
|
|
63
|
+
"rpc-methods": string | null;
|
|
64
|
+
"enable-instant-bundling-endpoint": boolean;
|
|
65
|
+
"enable-experimental-7702-endpoints": boolean;
|
|
66
|
+
"gas-price-bump"?: string | undefined;
|
|
67
|
+
"mempool-max-parallel-ops"?: number | undefined;
|
|
68
|
+
"mempool-max-queued-ops"?: number | undefined;
|
|
69
|
+
"enforce-unique-senders-per-bundle"?: boolean | undefined;
|
|
70
|
+
"max-gas-per-bundle"?: string | undefined;
|
|
71
|
+
}>;
|
|
72
|
+
export declare const executorArgsSchema: z.ZodObject<{
|
|
73
|
+
"enable-fastlane": z.ZodBoolean;
|
|
74
|
+
"resubmit-stuck-timeout": z.ZodDefault<z.ZodNumber>;
|
|
75
|
+
"refilling-wallets": z.ZodDefault<z.ZodBoolean>;
|
|
76
|
+
"aa95-gas-multiplier": z.ZodEffects<z.ZodString, bigint, string>;
|
|
7
77
|
"refill-helper-contract": z.ZodOptional<z.ZodEffects<z.ZodString, `0x${string}`, string>>;
|
|
8
78
|
"no-profit-bundling": z.ZodBoolean;
|
|
9
|
-
"safe-mode": z.ZodBoolean;
|
|
10
79
|
"utility-private-key": z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, {
|
|
11
80
|
address: `0x${string}`;
|
|
12
81
|
nonceManager?: import("viem").NonceManager | undefined;
|
|
@@ -681,34 +750,12 @@ export declare const bundlerArgsSchema: z.ZodObject<{
|
|
|
681
750
|
"min-executor-balance": z.ZodOptional<z.ZodEffects<z.ZodString, bigint, string>>;
|
|
682
751
|
"executor-refill-interval": z.ZodNumber;
|
|
683
752
|
"executor-gas-multiplier": z.ZodEffects<z.ZodString, bigint, string>;
|
|
684
|
-
"min-entity-stake": z.ZodNumber;
|
|
685
|
-
"min-entity-unstake-delay": z.ZodNumber;
|
|
686
|
-
"max-bundle-wait": z.ZodNumber;
|
|
687
|
-
"max-bundle-size": z.ZodNumber;
|
|
688
|
-
"gas-price-bump": z.ZodDefault<z.ZodEffects<z.ZodString, bigint, string>>;
|
|
689
|
-
"gas-price-floor-percent": z.ZodNumber;
|
|
690
|
-
"gas-price-expiry": z.ZodNumber;
|
|
691
|
-
"gas-price-multipliers": z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodString, bigint[], string>, bigint[], string>, {
|
|
692
|
-
slow: bigint;
|
|
693
|
-
standard: bigint;
|
|
694
|
-
fast: bigint;
|
|
695
|
-
}, string>;
|
|
696
|
-
"gas-price-refresh-interval": z.ZodNumber;
|
|
697
|
-
"mempool-max-parallel-ops": z.ZodDefault<z.ZodNumber>;
|
|
698
|
-
"mempool-max-queued-ops": z.ZodDefault<z.ZodNumber>;
|
|
699
|
-
"enforce-unique-senders-per-bundle": z.ZodDefault<z.ZodBoolean>;
|
|
700
|
-
"max-gas-per-bundle": z.ZodDefault<z.ZodEffects<z.ZodString, bigint, string>>;
|
|
701
|
-
"rpc-methods": z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodNullable<z.ZodString>, string[] | null, string | null>, string[] | null, string | null>, string[] | null, string | null>;
|
|
702
|
-
"refilling-wallets": z.ZodDefault<z.ZodBoolean>;
|
|
703
|
-
"aa95-gas-multiplier": z.ZodEffects<z.ZodString, bigint, string>;
|
|
704
|
-
"enable-fastlane": z.ZodBoolean;
|
|
705
|
-
"enable-instant-bundling-endpoint": z.ZodBoolean;
|
|
706
|
-
"enable-experimental-7702-endpoints": z.ZodBoolean;
|
|
707
753
|
}, "strip", z.ZodTypeAny, {
|
|
708
|
-
|
|
709
|
-
"
|
|
754
|
+
"enable-fastlane": boolean;
|
|
755
|
+
"resubmit-stuck-timeout": number;
|
|
756
|
+
"refilling-wallets": boolean;
|
|
757
|
+
"aa95-gas-multiplier": bigint;
|
|
710
758
|
"no-profit-bundling": boolean;
|
|
711
|
-
"safe-mode": boolean;
|
|
712
759
|
"utility-wallet-monitor": boolean;
|
|
713
760
|
"utility-wallet-monitor-interval": number;
|
|
714
761
|
"executor-private-keys": {
|
|
@@ -936,30 +983,6 @@ export declare const bundlerArgsSchema: z.ZodObject<{
|
|
|
936
983
|
}[];
|
|
937
984
|
"executor-refill-interval": number;
|
|
938
985
|
"executor-gas-multiplier": bigint;
|
|
939
|
-
"min-entity-stake": number;
|
|
940
|
-
"min-entity-unstake-delay": number;
|
|
941
|
-
"max-bundle-wait": number;
|
|
942
|
-
"max-bundle-size": number;
|
|
943
|
-
"gas-price-bump": bigint;
|
|
944
|
-
"gas-price-floor-percent": number;
|
|
945
|
-
"gas-price-expiry": number;
|
|
946
|
-
"gas-price-multipliers": {
|
|
947
|
-
slow: bigint;
|
|
948
|
-
standard: bigint;
|
|
949
|
-
fast: bigint;
|
|
950
|
-
};
|
|
951
|
-
"gas-price-refresh-interval": number;
|
|
952
|
-
"mempool-max-parallel-ops": number;
|
|
953
|
-
"mempool-max-queued-ops": number;
|
|
954
|
-
"enforce-unique-senders-per-bundle": boolean;
|
|
955
|
-
"max-gas-per-bundle": bigint;
|
|
956
|
-
"rpc-methods": string[] | null;
|
|
957
|
-
"refilling-wallets": boolean;
|
|
958
|
-
"aa95-gas-multiplier": bigint;
|
|
959
|
-
"enable-fastlane": boolean;
|
|
960
|
-
"enable-instant-bundling-endpoint": boolean;
|
|
961
|
-
"enable-experimental-7702-endpoints": boolean;
|
|
962
|
-
"entrypoint-simulation-contract"?: `0x${string}` | undefined;
|
|
963
986
|
"refill-helper-contract"?: `0x${string}` | undefined;
|
|
964
987
|
"utility-private-key"?: {
|
|
965
988
|
address: `0x${string}`;
|
|
@@ -1187,39 +1210,20 @@ export declare const bundlerArgsSchema: z.ZodObject<{
|
|
|
1187
1210
|
"max-executors"?: number | undefined;
|
|
1188
1211
|
"min-executor-balance"?: bigint | undefined;
|
|
1189
1212
|
}, {
|
|
1190
|
-
|
|
1191
|
-
"
|
|
1213
|
+
"enable-fastlane": boolean;
|
|
1214
|
+
"aa95-gas-multiplier": string;
|
|
1192
1215
|
"no-profit-bundling": boolean;
|
|
1193
|
-
"safe-mode": boolean;
|
|
1194
1216
|
"utility-wallet-monitor": boolean;
|
|
1195
1217
|
"utility-wallet-monitor-interval": number;
|
|
1196
1218
|
"executor-private-keys": (string | string[]) & (string | string[] | undefined);
|
|
1197
1219
|
"executor-refill-interval": number;
|
|
1198
1220
|
"executor-gas-multiplier": string;
|
|
1199
|
-
"
|
|
1200
|
-
"
|
|
1201
|
-
"max-bundle-wait": number;
|
|
1202
|
-
"max-bundle-size": number;
|
|
1203
|
-
"gas-price-floor-percent": number;
|
|
1204
|
-
"gas-price-expiry": number;
|
|
1205
|
-
"gas-price-multipliers": string;
|
|
1206
|
-
"gas-price-refresh-interval": number;
|
|
1207
|
-
"rpc-methods": string | null;
|
|
1208
|
-
"aa95-gas-multiplier": string;
|
|
1209
|
-
"enable-fastlane": boolean;
|
|
1210
|
-
"enable-instant-bundling-endpoint": boolean;
|
|
1211
|
-
"enable-experimental-7702-endpoints": boolean;
|
|
1212
|
-
"entrypoint-simulation-contract"?: unknown;
|
|
1221
|
+
"resubmit-stuck-timeout"?: number | undefined;
|
|
1222
|
+
"refilling-wallets"?: boolean | undefined;
|
|
1213
1223
|
"refill-helper-contract"?: string | undefined;
|
|
1214
1224
|
"utility-private-key"?: string | undefined;
|
|
1215
1225
|
"max-executors"?: number | undefined;
|
|
1216
1226
|
"min-executor-balance"?: string | undefined;
|
|
1217
|
-
"gas-price-bump"?: string | undefined;
|
|
1218
|
-
"mempool-max-parallel-ops"?: number | undefined;
|
|
1219
|
-
"mempool-max-queued-ops"?: number | undefined;
|
|
1220
|
-
"enforce-unique-senders-per-bundle"?: boolean | undefined;
|
|
1221
|
-
"max-gas-per-bundle"?: string | undefined;
|
|
1222
|
-
"refilling-wallets"?: boolean | undefined;
|
|
1223
1227
|
}>;
|
|
1224
1228
|
export declare const compatibilityArgsSchema: z.ZodObject<{
|
|
1225
1229
|
"chain-type": z.ZodEnum<["default", "op-stack", "arbitrum", "hedera", "mantle", "skale"]>;
|
|
@@ -1350,6 +1354,7 @@ export declare const debugArgsSchema: z.ZodObject<{
|
|
|
1350
1354
|
tenderly: boolean;
|
|
1351
1355
|
}>;
|
|
1352
1356
|
export declare const gasEstimationArgsSchema: z.ZodObject<{
|
|
1357
|
+
"entrypoint-simulation-contract": z.ZodEffects<z.ZodOptional<z.ZodEffects<z.ZodString, `0x${string}`, string>>, `0x${string}` | undefined, unknown>;
|
|
1353
1358
|
"binary-search-tolerance-delta": z.ZodDefault<z.ZodEffects<z.ZodString, bigint, string>>;
|
|
1354
1359
|
"binary-search-gas-allowance": z.ZodDefault<z.ZodEffects<z.ZodString, bigint, string>>;
|
|
1355
1360
|
"v6-call-gas-limit-multiplier": z.ZodEffects<z.ZodString, bigint, string>;
|
|
@@ -1373,6 +1378,7 @@ export declare const gasEstimationArgsSchema: z.ZodObject<{
|
|
|
1373
1378
|
"simulation-paymaster-verification-gas-limit": bigint;
|
|
1374
1379
|
"simulation-paymaster-post-op-gas-limit": bigint;
|
|
1375
1380
|
"paymaster-gas-limit-multiplier": bigint;
|
|
1381
|
+
"entrypoint-simulation-contract"?: `0x${string}` | undefined;
|
|
1376
1382
|
}, {
|
|
1377
1383
|
"v6-call-gas-limit-multiplier": string;
|
|
1378
1384
|
"v7-call-gas-limit-multiplier": string;
|
|
@@ -1383,6 +1389,7 @@ export declare const gasEstimationArgsSchema: z.ZodObject<{
|
|
|
1383
1389
|
"simulation-paymaster-verification-gas-limit": string;
|
|
1384
1390
|
"simulation-paymaster-post-op-gas-limit": string;
|
|
1385
1391
|
"paymaster-gas-limit-multiplier": string;
|
|
1392
|
+
"entrypoint-simulation-contract"?: unknown;
|
|
1386
1393
|
"binary-search-tolerance-delta"?: string | undefined;
|
|
1387
1394
|
"binary-search-gas-allowance"?: string | undefined;
|
|
1388
1395
|
}>;
|
|
@@ -1390,6 +1397,8 @@ export type IBundlerArgs = z.infer<typeof bundlerArgsSchema>;
|
|
|
1390
1397
|
export type IBundlerArgsInput = z.input<typeof bundlerArgsSchema>;
|
|
1391
1398
|
export type ICompatibilityArgs = z.infer<typeof compatibilityArgsSchema>;
|
|
1392
1399
|
export type ICompatibilityArgsInput = z.input<typeof compatibilityArgsSchema>;
|
|
1400
|
+
export type IExecutorArgs = z.infer<typeof executorArgsSchema>;
|
|
1401
|
+
export type IExecutorArgsInput = z.input<typeof executorArgsSchema>;
|
|
1393
1402
|
export type IServerArgs = z.infer<typeof serverArgsSchema>;
|
|
1394
1403
|
export type IServerArgsInput = z.input<typeof serverArgsSchema>;
|
|
1395
1404
|
export type IRpcArgs = z.infer<typeof rpcArgsSchema>;
|
|
@@ -1401,59 +1410,12 @@ export type IDebugArgsInput = z.input<typeof debugArgsSchema>;
|
|
|
1401
1410
|
export type IGasEstimationArgs = z.infer<typeof gasEstimationArgsSchema>;
|
|
1402
1411
|
export type IGasEstimationArgsInput = z.input<typeof gasEstimationArgsSchema>;
|
|
1403
1412
|
export declare const optionArgsSchema: z.ZodObject<{
|
|
1404
|
-
"
|
|
1405
|
-
"
|
|
1406
|
-
"
|
|
1407
|
-
"
|
|
1408
|
-
"v7-verification-gas-limit-multiplier": z.ZodEffects<z.ZodString, bigint, string>;
|
|
1409
|
-
"v7-paymaster-verification-gas-limit-multiplier": z.ZodEffects<z.ZodString, bigint, string>;
|
|
1410
|
-
"simulation-call-gas-limit": z.ZodEffects<z.ZodString, bigint, string>;
|
|
1411
|
-
"simulation-verification-gas-limit": z.ZodEffects<z.ZodString, bigint, string>;
|
|
1412
|
-
"simulation-paymaster-verification-gas-limit": z.ZodEffects<z.ZodString, bigint, string>;
|
|
1413
|
-
"simulation-paymaster-post-op-gas-limit": z.ZodEffects<z.ZodString, bigint, string>;
|
|
1414
|
-
"paymaster-gas-limit-multiplier": z.ZodEffects<z.ZodString, bigint, string>;
|
|
1415
|
-
"bundle-mode": z.ZodEnum<["auto", "manual"]>;
|
|
1416
|
-
"enable-debug-endpoints": z.ZodBoolean;
|
|
1417
|
-
"expiration-check": z.ZodBoolean;
|
|
1418
|
-
"dangerous-skip-user-operation-validation": z.ZodBoolean;
|
|
1419
|
-
"deploy-simulations-contract": z.ZodBoolean;
|
|
1420
|
-
tenderly: z.ZodBoolean;
|
|
1421
|
-
"rpc-url": z.ZodString;
|
|
1422
|
-
"send-transaction-rpc-url": z.ZodOptional<z.ZodString>;
|
|
1423
|
-
"polling-interval": z.ZodNumber;
|
|
1424
|
-
"max-block-range": z.ZodOptional<z.ZodNumber>;
|
|
1425
|
-
"block-tag-support": z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
1426
|
-
"code-override-support": z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
1427
|
-
port: z.ZodNumber;
|
|
1428
|
-
timeout: z.ZodOptional<z.ZodNumber>;
|
|
1429
|
-
websocket: z.ZodDefault<z.ZodBoolean>;
|
|
1430
|
-
"websocket-max-payload-size": z.ZodDefault<z.ZodNumber>;
|
|
1431
|
-
"redis-queue-endpoint": z.ZodOptional<z.ZodString>;
|
|
1432
|
-
"redis-event-manager-queue-name": z.ZodOptional<z.ZodString>;
|
|
1433
|
-
json: z.ZodBoolean;
|
|
1434
|
-
"network-name": z.ZodString;
|
|
1435
|
-
"log-level": z.ZodEnum<["trace", "debug", "info", "warn", "error", "fatal"]>;
|
|
1436
|
-
"public-client-log-level": z.ZodOptional<z.ZodEnum<["trace", "debug", "info", "warn", "error", "fatal"]>>;
|
|
1437
|
-
"wallet-client-log-level": z.ZodOptional<z.ZodEnum<["trace", "debug", "info", "warn", "error", "fatal"]>>;
|
|
1438
|
-
"rpc-log-level": z.ZodOptional<z.ZodEnum<["trace", "debug", "info", "warn", "error", "fatal"]>>;
|
|
1439
|
-
"mempool-log-level": z.ZodOptional<z.ZodEnum<["trace", "debug", "info", "warn", "error", "fatal"]>>;
|
|
1440
|
-
"executor-log-level": z.ZodOptional<z.ZodEnum<["trace", "debug", "info", "warn", "error", "fatal"]>>;
|
|
1441
|
-
"reputation-manager-log-level": z.ZodOptional<z.ZodEnum<["trace", "debug", "info", "warn", "error", "fatal"]>>;
|
|
1442
|
-
"nonce-queuer-log-level": z.ZodOptional<z.ZodEnum<["trace", "debug", "info", "warn", "error", "fatal"]>>;
|
|
1443
|
-
"chain-type": z.ZodEnum<["default", "op-stack", "arbitrum", "hedera", "mantle", "skale"]>;
|
|
1444
|
-
"legacy-transactions": z.ZodBoolean;
|
|
1445
|
-
"api-version": z.ZodEffects<z.ZodDefault<z.ZodOptional<z.ZodString>>, ApiVersion[], string | undefined>;
|
|
1446
|
-
"default-api-version": z.ZodEffects<z.ZodOptional<z.ZodEnum<["v1", "v2"]>>, "v1" | "v2", "v1" | "v2" | undefined>;
|
|
1447
|
-
"balance-override": z.ZodBoolean;
|
|
1448
|
-
"local-gas-limit-calculation": z.ZodBoolean;
|
|
1449
|
-
"flush-stuck-transactions-during-startup": z.ZodBoolean;
|
|
1450
|
-
"fixed-gas-limit-for-estimation": z.ZodOptional<z.ZodEffects<z.ZodString, bigint, string>>;
|
|
1451
|
-
entrypoints: z.ZodEffects<z.ZodString, `0x${string}`[], string>;
|
|
1452
|
-
"deterministic-deployer-address": z.ZodEffects<z.ZodString, `0x${string}`, string>;
|
|
1453
|
-
"entrypoint-simulation-contract": z.ZodEffects<z.ZodOptional<z.ZodEffects<z.ZodString, `0x${string}`, string>>, `0x${string}` | undefined, unknown>;
|
|
1413
|
+
"enable-fastlane": z.ZodBoolean;
|
|
1414
|
+
"resubmit-stuck-timeout": z.ZodDefault<z.ZodNumber>;
|
|
1415
|
+
"refilling-wallets": z.ZodDefault<z.ZodBoolean>;
|
|
1416
|
+
"aa95-gas-multiplier": z.ZodEffects<z.ZodString, bigint, string>;
|
|
1454
1417
|
"refill-helper-contract": z.ZodOptional<z.ZodEffects<z.ZodString, `0x${string}`, string>>;
|
|
1455
1418
|
"no-profit-bundling": z.ZodBoolean;
|
|
1456
|
-
"safe-mode": z.ZodBoolean;
|
|
1457
1419
|
"utility-private-key": z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, {
|
|
1458
1420
|
address: `0x${string}`;
|
|
1459
1421
|
nonceManager?: import("viem").NonceManager | undefined;
|
|
@@ -2128,6 +2090,57 @@ export declare const optionArgsSchema: z.ZodObject<{
|
|
|
2128
2090
|
"min-executor-balance": z.ZodOptional<z.ZodEffects<z.ZodString, bigint, string>>;
|
|
2129
2091
|
"executor-refill-interval": z.ZodNumber;
|
|
2130
2092
|
"executor-gas-multiplier": z.ZodEffects<z.ZodString, bigint, string>;
|
|
2093
|
+
"entrypoint-simulation-contract": z.ZodEffects<z.ZodOptional<z.ZodEffects<z.ZodString, `0x${string}`, string>>, `0x${string}` | undefined, unknown>;
|
|
2094
|
+
"binary-search-tolerance-delta": z.ZodDefault<z.ZodEffects<z.ZodString, bigint, string>>;
|
|
2095
|
+
"binary-search-gas-allowance": z.ZodDefault<z.ZodEffects<z.ZodString, bigint, string>>;
|
|
2096
|
+
"v6-call-gas-limit-multiplier": z.ZodEffects<z.ZodString, bigint, string>;
|
|
2097
|
+
"v7-call-gas-limit-multiplier": z.ZodEffects<z.ZodString, bigint, string>;
|
|
2098
|
+
"v7-verification-gas-limit-multiplier": z.ZodEffects<z.ZodString, bigint, string>;
|
|
2099
|
+
"v7-paymaster-verification-gas-limit-multiplier": z.ZodEffects<z.ZodString, bigint, string>;
|
|
2100
|
+
"simulation-call-gas-limit": z.ZodEffects<z.ZodString, bigint, string>;
|
|
2101
|
+
"simulation-verification-gas-limit": z.ZodEffects<z.ZodString, bigint, string>;
|
|
2102
|
+
"simulation-paymaster-verification-gas-limit": z.ZodEffects<z.ZodString, bigint, string>;
|
|
2103
|
+
"simulation-paymaster-post-op-gas-limit": z.ZodEffects<z.ZodString, bigint, string>;
|
|
2104
|
+
"paymaster-gas-limit-multiplier": z.ZodEffects<z.ZodString, bigint, string>;
|
|
2105
|
+
"bundle-mode": z.ZodEnum<["auto", "manual"]>;
|
|
2106
|
+
"enable-debug-endpoints": z.ZodBoolean;
|
|
2107
|
+
"expiration-check": z.ZodBoolean;
|
|
2108
|
+
"dangerous-skip-user-operation-validation": z.ZodBoolean;
|
|
2109
|
+
"deploy-simulations-contract": z.ZodBoolean;
|
|
2110
|
+
tenderly: z.ZodBoolean;
|
|
2111
|
+
"rpc-url": z.ZodString;
|
|
2112
|
+
"send-transaction-rpc-url": z.ZodOptional<z.ZodString>;
|
|
2113
|
+
"polling-interval": z.ZodNumber;
|
|
2114
|
+
"max-block-range": z.ZodOptional<z.ZodNumber>;
|
|
2115
|
+
"block-tag-support": z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
2116
|
+
"code-override-support": z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
2117
|
+
port: z.ZodNumber;
|
|
2118
|
+
timeout: z.ZodOptional<z.ZodNumber>;
|
|
2119
|
+
websocket: z.ZodDefault<z.ZodBoolean>;
|
|
2120
|
+
"websocket-max-payload-size": z.ZodDefault<z.ZodNumber>;
|
|
2121
|
+
"redis-queue-endpoint": z.ZodOptional<z.ZodString>;
|
|
2122
|
+
"redis-event-manager-queue-name": z.ZodOptional<z.ZodString>;
|
|
2123
|
+
json: z.ZodBoolean;
|
|
2124
|
+
"network-name": z.ZodString;
|
|
2125
|
+
"log-level": z.ZodEnum<["trace", "debug", "info", "warn", "error", "fatal"]>;
|
|
2126
|
+
"public-client-log-level": z.ZodOptional<z.ZodEnum<["trace", "debug", "info", "warn", "error", "fatal"]>>;
|
|
2127
|
+
"wallet-client-log-level": z.ZodOptional<z.ZodEnum<["trace", "debug", "info", "warn", "error", "fatal"]>>;
|
|
2128
|
+
"rpc-log-level": z.ZodOptional<z.ZodEnum<["trace", "debug", "info", "warn", "error", "fatal"]>>;
|
|
2129
|
+
"mempool-log-level": z.ZodOptional<z.ZodEnum<["trace", "debug", "info", "warn", "error", "fatal"]>>;
|
|
2130
|
+
"executor-log-level": z.ZodOptional<z.ZodEnum<["trace", "debug", "info", "warn", "error", "fatal"]>>;
|
|
2131
|
+
"reputation-manager-log-level": z.ZodOptional<z.ZodEnum<["trace", "debug", "info", "warn", "error", "fatal"]>>;
|
|
2132
|
+
"nonce-queuer-log-level": z.ZodOptional<z.ZodEnum<["trace", "debug", "info", "warn", "error", "fatal"]>>;
|
|
2133
|
+
"chain-type": z.ZodEnum<["default", "op-stack", "arbitrum", "hedera", "mantle", "skale"]>;
|
|
2134
|
+
"legacy-transactions": z.ZodBoolean;
|
|
2135
|
+
"api-version": z.ZodEffects<z.ZodDefault<z.ZodOptional<z.ZodString>>, ApiVersion[], string | undefined>;
|
|
2136
|
+
"default-api-version": z.ZodEffects<z.ZodOptional<z.ZodEnum<["v1", "v2"]>>, "v1" | "v2", "v1" | "v2" | undefined>;
|
|
2137
|
+
"balance-override": z.ZodBoolean;
|
|
2138
|
+
"local-gas-limit-calculation": z.ZodBoolean;
|
|
2139
|
+
"flush-stuck-transactions-during-startup": z.ZodBoolean;
|
|
2140
|
+
"fixed-gas-limit-for-estimation": z.ZodOptional<z.ZodEffects<z.ZodString, bigint, string>>;
|
|
2141
|
+
entrypoints: z.ZodEffects<z.ZodString, `0x${string}`[], string>;
|
|
2142
|
+
"deterministic-deployer-address": z.ZodEffects<z.ZodString, `0x${string}`, string>;
|
|
2143
|
+
"safe-mode": z.ZodBoolean;
|
|
2131
2144
|
"min-entity-stake": z.ZodNumber;
|
|
2132
2145
|
"min-entity-unstake-delay": z.ZodNumber;
|
|
2133
2146
|
"max-bundle-wait": z.ZodNumber;
|
|
@@ -2146,16 +2159,37 @@ export declare const optionArgsSchema: z.ZodObject<{
|
|
|
2146
2159
|
"enforce-unique-senders-per-bundle": z.ZodDefault<z.ZodBoolean>;
|
|
2147
2160
|
"max-gas-per-bundle": z.ZodDefault<z.ZodEffects<z.ZodString, bigint, string>>;
|
|
2148
2161
|
"rpc-methods": z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodNullable<z.ZodString>, string[] | null, string | null>, string[] | null, string | null>, string[] | null, string | null>;
|
|
2149
|
-
"refilling-wallets": z.ZodDefault<z.ZodBoolean>;
|
|
2150
|
-
"aa95-gas-multiplier": z.ZodEffects<z.ZodString, bigint, string>;
|
|
2151
|
-
"enable-fastlane": z.ZodBoolean;
|
|
2152
2162
|
"enable-instant-bundling-endpoint": z.ZodBoolean;
|
|
2153
2163
|
"enable-experimental-7702-endpoints": z.ZodBoolean;
|
|
2154
2164
|
}, "strip", z.ZodTypeAny, {
|
|
2155
2165
|
entrypoints: `0x${string}`[];
|
|
2156
2166
|
"deterministic-deployer-address": `0x${string}`;
|
|
2157
|
-
"no-profit-bundling": boolean;
|
|
2158
2167
|
"safe-mode": boolean;
|
|
2168
|
+
"min-entity-stake": number;
|
|
2169
|
+
"min-entity-unstake-delay": number;
|
|
2170
|
+
"max-bundle-wait": number;
|
|
2171
|
+
"max-bundle-size": number;
|
|
2172
|
+
"gas-price-bump": bigint;
|
|
2173
|
+
"gas-price-floor-percent": number;
|
|
2174
|
+
"gas-price-expiry": number;
|
|
2175
|
+
"gas-price-multipliers": {
|
|
2176
|
+
slow: bigint;
|
|
2177
|
+
standard: bigint;
|
|
2178
|
+
fast: bigint;
|
|
2179
|
+
};
|
|
2180
|
+
"gas-price-refresh-interval": number;
|
|
2181
|
+
"mempool-max-parallel-ops": number;
|
|
2182
|
+
"mempool-max-queued-ops": number;
|
|
2183
|
+
"enforce-unique-senders-per-bundle": boolean;
|
|
2184
|
+
"max-gas-per-bundle": bigint;
|
|
2185
|
+
"rpc-methods": string[] | null;
|
|
2186
|
+
"enable-instant-bundling-endpoint": boolean;
|
|
2187
|
+
"enable-experimental-7702-endpoints": boolean;
|
|
2188
|
+
"enable-fastlane": boolean;
|
|
2189
|
+
"resubmit-stuck-timeout": number;
|
|
2190
|
+
"refilling-wallets": boolean;
|
|
2191
|
+
"aa95-gas-multiplier": bigint;
|
|
2192
|
+
"no-profit-bundling": boolean;
|
|
2159
2193
|
"utility-wallet-monitor": boolean;
|
|
2160
2194
|
"utility-wallet-monitor-interval": number;
|
|
2161
2195
|
"executor-private-keys": {
|
|
@@ -2383,29 +2417,6 @@ export declare const optionArgsSchema: z.ZodObject<{
|
|
|
2383
2417
|
}[];
|
|
2384
2418
|
"executor-refill-interval": number;
|
|
2385
2419
|
"executor-gas-multiplier": bigint;
|
|
2386
|
-
"min-entity-stake": number;
|
|
2387
|
-
"min-entity-unstake-delay": number;
|
|
2388
|
-
"max-bundle-wait": number;
|
|
2389
|
-
"max-bundle-size": number;
|
|
2390
|
-
"gas-price-bump": bigint;
|
|
2391
|
-
"gas-price-floor-percent": number;
|
|
2392
|
-
"gas-price-expiry": number;
|
|
2393
|
-
"gas-price-multipliers": {
|
|
2394
|
-
slow: bigint;
|
|
2395
|
-
standard: bigint;
|
|
2396
|
-
fast: bigint;
|
|
2397
|
-
};
|
|
2398
|
-
"gas-price-refresh-interval": number;
|
|
2399
|
-
"mempool-max-parallel-ops": number;
|
|
2400
|
-
"mempool-max-queued-ops": number;
|
|
2401
|
-
"enforce-unique-senders-per-bundle": boolean;
|
|
2402
|
-
"max-gas-per-bundle": bigint;
|
|
2403
|
-
"rpc-methods": string[] | null;
|
|
2404
|
-
"refilling-wallets": boolean;
|
|
2405
|
-
"aa95-gas-multiplier": bigint;
|
|
2406
|
-
"enable-fastlane": boolean;
|
|
2407
|
-
"enable-instant-bundling-endpoint": boolean;
|
|
2408
|
-
"enable-experimental-7702-endpoints": boolean;
|
|
2409
2420
|
"chain-type": "default" | "op-stack" | "arbitrum" | "hedera" | "mantle" | "skale";
|
|
2410
2421
|
"legacy-transactions": boolean;
|
|
2411
2422
|
"api-version": ApiVersion[];
|
|
@@ -2440,20 +2451,6 @@ export declare const optionArgsSchema: z.ZodObject<{
|
|
|
2440
2451
|
"simulation-paymaster-verification-gas-limit": bigint;
|
|
2441
2452
|
"simulation-paymaster-post-op-gas-limit": bigint;
|
|
2442
2453
|
"paymaster-gas-limit-multiplier": bigint;
|
|
2443
|
-
"send-transaction-rpc-url"?: string | undefined;
|
|
2444
|
-
"max-block-range"?: number | undefined;
|
|
2445
|
-
timeout?: number | undefined;
|
|
2446
|
-
"redis-queue-endpoint"?: string | undefined;
|
|
2447
|
-
"redis-event-manager-queue-name"?: string | undefined;
|
|
2448
|
-
"public-client-log-level"?: "error" | "info" | "trace" | "debug" | "warn" | "fatal" | undefined;
|
|
2449
|
-
"wallet-client-log-level"?: "error" | "info" | "trace" | "debug" | "warn" | "fatal" | undefined;
|
|
2450
|
-
"rpc-log-level"?: "error" | "info" | "trace" | "debug" | "warn" | "fatal" | undefined;
|
|
2451
|
-
"mempool-log-level"?: "error" | "info" | "trace" | "debug" | "warn" | "fatal" | undefined;
|
|
2452
|
-
"executor-log-level"?: "error" | "info" | "trace" | "debug" | "warn" | "fatal" | undefined;
|
|
2453
|
-
"reputation-manager-log-level"?: "error" | "info" | "trace" | "debug" | "warn" | "fatal" | undefined;
|
|
2454
|
-
"nonce-queuer-log-level"?: "error" | "info" | "trace" | "debug" | "warn" | "fatal" | undefined;
|
|
2455
|
-
"fixed-gas-limit-for-estimation"?: bigint | undefined;
|
|
2456
|
-
"entrypoint-simulation-contract"?: `0x${string}` | undefined;
|
|
2457
2454
|
"refill-helper-contract"?: `0x${string}` | undefined;
|
|
2458
2455
|
"utility-private-key"?: {
|
|
2459
2456
|
address: `0x${string}`;
|
|
@@ -2680,16 +2677,24 @@ export declare const optionArgsSchema: z.ZodObject<{
|
|
|
2680
2677
|
} | undefined;
|
|
2681
2678
|
"max-executors"?: number | undefined;
|
|
2682
2679
|
"min-executor-balance"?: bigint | undefined;
|
|
2680
|
+
"entrypoint-simulation-contract"?: `0x${string}` | undefined;
|
|
2681
|
+
"send-transaction-rpc-url"?: string | undefined;
|
|
2682
|
+
"max-block-range"?: number | undefined;
|
|
2683
|
+
timeout?: number | undefined;
|
|
2684
|
+
"redis-queue-endpoint"?: string | undefined;
|
|
2685
|
+
"redis-event-manager-queue-name"?: string | undefined;
|
|
2686
|
+
"public-client-log-level"?: "error" | "info" | "trace" | "debug" | "warn" | "fatal" | undefined;
|
|
2687
|
+
"wallet-client-log-level"?: "error" | "info" | "trace" | "debug" | "warn" | "fatal" | undefined;
|
|
2688
|
+
"rpc-log-level"?: "error" | "info" | "trace" | "debug" | "warn" | "fatal" | undefined;
|
|
2689
|
+
"mempool-log-level"?: "error" | "info" | "trace" | "debug" | "warn" | "fatal" | undefined;
|
|
2690
|
+
"executor-log-level"?: "error" | "info" | "trace" | "debug" | "warn" | "fatal" | undefined;
|
|
2691
|
+
"reputation-manager-log-level"?: "error" | "info" | "trace" | "debug" | "warn" | "fatal" | undefined;
|
|
2692
|
+
"nonce-queuer-log-level"?: "error" | "info" | "trace" | "debug" | "warn" | "fatal" | undefined;
|
|
2693
|
+
"fixed-gas-limit-for-estimation"?: bigint | undefined;
|
|
2683
2694
|
}, {
|
|
2684
2695
|
entrypoints: string;
|
|
2685
2696
|
"deterministic-deployer-address": string;
|
|
2686
|
-
"no-profit-bundling": boolean;
|
|
2687
2697
|
"safe-mode": boolean;
|
|
2688
|
-
"utility-wallet-monitor": boolean;
|
|
2689
|
-
"utility-wallet-monitor-interval": number;
|
|
2690
|
-
"executor-private-keys": (string | string[]) & (string | string[] | undefined);
|
|
2691
|
-
"executor-refill-interval": number;
|
|
2692
|
-
"executor-gas-multiplier": string;
|
|
2693
2698
|
"min-entity-stake": number;
|
|
2694
2699
|
"min-entity-unstake-delay": number;
|
|
2695
2700
|
"max-bundle-wait": number;
|
|
@@ -2699,10 +2704,16 @@ export declare const optionArgsSchema: z.ZodObject<{
|
|
|
2699
2704
|
"gas-price-multipliers": string;
|
|
2700
2705
|
"gas-price-refresh-interval": number;
|
|
2701
2706
|
"rpc-methods": string | null;
|
|
2702
|
-
"aa95-gas-multiplier": string;
|
|
2703
|
-
"enable-fastlane": boolean;
|
|
2704
2707
|
"enable-instant-bundling-endpoint": boolean;
|
|
2705
2708
|
"enable-experimental-7702-endpoints": boolean;
|
|
2709
|
+
"enable-fastlane": boolean;
|
|
2710
|
+
"aa95-gas-multiplier": string;
|
|
2711
|
+
"no-profit-bundling": boolean;
|
|
2712
|
+
"utility-wallet-monitor": boolean;
|
|
2713
|
+
"utility-wallet-monitor-interval": number;
|
|
2714
|
+
"executor-private-keys": (string | string[]) & (string | string[] | undefined);
|
|
2715
|
+
"executor-refill-interval": number;
|
|
2716
|
+
"executor-gas-multiplier": string;
|
|
2706
2717
|
"chain-type": "default" | "op-stack" | "arbitrum" | "hedera" | "mantle" | "skale";
|
|
2707
2718
|
"legacy-transactions": boolean;
|
|
2708
2719
|
"balance-override": boolean;
|
|
@@ -2729,6 +2740,13 @@ export declare const optionArgsSchema: z.ZodObject<{
|
|
|
2729
2740
|
"simulation-paymaster-verification-gas-limit": string;
|
|
2730
2741
|
"simulation-paymaster-post-op-gas-limit": string;
|
|
2731
2742
|
"paymaster-gas-limit-multiplier": string;
|
|
2743
|
+
"resubmit-stuck-timeout"?: number | undefined;
|
|
2744
|
+
"refilling-wallets"?: boolean | undefined;
|
|
2745
|
+
"refill-helper-contract"?: string | undefined;
|
|
2746
|
+
"utility-private-key"?: string | undefined;
|
|
2747
|
+
"max-executors"?: number | undefined;
|
|
2748
|
+
"min-executor-balance"?: string | undefined;
|
|
2749
|
+
"entrypoint-simulation-contract"?: unknown;
|
|
2732
2750
|
"binary-search-tolerance-delta"?: string | undefined;
|
|
2733
2751
|
"binary-search-gas-allowance"?: string | undefined;
|
|
2734
2752
|
"send-transaction-rpc-url"?: string | undefined;
|
|
@@ -2750,17 +2768,11 @@ export declare const optionArgsSchema: z.ZodObject<{
|
|
|
2750
2768
|
"api-version"?: string | undefined;
|
|
2751
2769
|
"default-api-version"?: "v1" | "v2" | undefined;
|
|
2752
2770
|
"fixed-gas-limit-for-estimation"?: string | undefined;
|
|
2753
|
-
"entrypoint-simulation-contract"?: unknown;
|
|
2754
|
-
"refill-helper-contract"?: string | undefined;
|
|
2755
|
-
"utility-private-key"?: string | undefined;
|
|
2756
|
-
"max-executors"?: number | undefined;
|
|
2757
|
-
"min-executor-balance"?: string | undefined;
|
|
2758
2771
|
"gas-price-bump"?: string | undefined;
|
|
2759
2772
|
"mempool-max-parallel-ops"?: number | undefined;
|
|
2760
2773
|
"mempool-max-queued-ops"?: number | undefined;
|
|
2761
2774
|
"enforce-unique-senders-per-bundle"?: boolean | undefined;
|
|
2762
2775
|
"max-gas-per-bundle"?: string | undefined;
|
|
2763
|
-
"refilling-wallets"?: boolean | undefined;
|
|
2764
2776
|
}>;
|
|
2765
2777
|
export type IOptions = z.infer<typeof optionArgsSchema>;
|
|
2766
2778
|
export type IOptionsInput = z.input<typeof optionArgsSchema>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.optionArgsSchema = exports.gasEstimationArgsSchema = exports.debugArgsSchema = exports.logArgsSchema = exports.rpcArgsSchema = exports.serverArgsSchema = exports.compatibilityArgsSchema = exports.bundlerArgsSchema = void 0;
|
|
3
|
+
exports.optionArgsSchema = exports.gasEstimationArgsSchema = exports.debugArgsSchema = exports.logArgsSchema = exports.rpcArgsSchema = exports.serverArgsSchema = exports.compatibilityArgsSchema = exports.executorArgsSchema = exports.bundlerArgsSchema = void 0;
|
|
4
4
|
const types_1 = require("../../types/index.js");
|
|
5
5
|
const accounts_1 = require("viem/accounts");
|
|
6
6
|
const zod_1 = require("zod");
|
|
@@ -17,33 +17,7 @@ exports.bundlerArgsSchema = zod_1.z.object({
|
|
|
17
17
|
return validatedAddresses;
|
|
18
18
|
}),
|
|
19
19
|
"deterministic-deployer-address": types_1.addressSchema,
|
|
20
|
-
"entrypoint-simulation-contract": zod_1.z.preprocess((v) => (v === "" ? undefined : v), types_1.addressSchema.optional()),
|
|
21
|
-
"refill-helper-contract": types_1.addressSchema.optional(),
|
|
22
|
-
"no-profit-bundling": zod_1.z.boolean(),
|
|
23
20
|
"safe-mode": zod_1.z.boolean(),
|
|
24
|
-
"utility-private-key": types_1.hexData32Schema
|
|
25
|
-
.transform((val) => (0, accounts_1.privateKeyToAccount)(val))
|
|
26
|
-
.optional(),
|
|
27
|
-
"utility-wallet-monitor": zod_1.z.boolean(),
|
|
28
|
-
"utility-wallet-monitor-interval": zod_1.z.number(),
|
|
29
|
-
"executor-private-keys": zod_1.z.union([
|
|
30
|
-
zod_1.z
|
|
31
|
-
.array(types_1.hexData32Schema)
|
|
32
|
-
.transform((vals) => vals.map((val) => (0, accounts_1.privateKeyToAccount)(val))),
|
|
33
|
-
zod_1.z
|
|
34
|
-
.string()
|
|
35
|
-
.regex(/^0x(?:[0-9a-f]{2}){32}(?:,0x(?:[0-9a-f]{2}){32})*$/)
|
|
36
|
-
.transform((val) => val
|
|
37
|
-
.split(",")
|
|
38
|
-
.map((val) => (0, accounts_1.privateKeyToAccount)(val)))
|
|
39
|
-
]),
|
|
40
|
-
"max-executors": zod_1.z.number().int().min(0).optional(),
|
|
41
|
-
"min-executor-balance": zod_1.z
|
|
42
|
-
.string()
|
|
43
|
-
.transform((val) => BigInt(val))
|
|
44
|
-
.optional(),
|
|
45
|
-
"executor-refill-interval": zod_1.z.number().int().min(0),
|
|
46
|
-
"executor-gas-multiplier": zod_1.z.string().transform((val) => BigInt(val)),
|
|
47
21
|
"min-entity-stake": zod_1.z.number().int().min(0),
|
|
48
22
|
"min-entity-unstake-delay": zod_1.z.number().int().min(0),
|
|
49
23
|
"max-bundle-wait": zod_1.z.number().int().min(0),
|
|
@@ -85,12 +59,40 @@ exports.bundlerArgsSchema = zod_1.z.object({
|
|
|
85
59
|
return true;
|
|
86
60
|
return values.every((value) => rpcMethodNames.includes(value));
|
|
87
61
|
}, `Unknown method specified, available methods: ${rpcMethodNames.join(",")}`),
|
|
88
|
-
"refilling-wallets": zod_1.z.boolean().default(true),
|
|
89
|
-
"aa95-gas-multiplier": zod_1.z.string().transform((val) => BigInt(val)),
|
|
90
|
-
"enable-fastlane": zod_1.z.boolean(),
|
|
91
62
|
"enable-instant-bundling-endpoint": zod_1.z.boolean(),
|
|
92
63
|
"enable-experimental-7702-endpoints": zod_1.z.boolean()
|
|
93
64
|
});
|
|
65
|
+
exports.executorArgsSchema = zod_1.z.object({
|
|
66
|
+
"enable-fastlane": zod_1.z.boolean(),
|
|
67
|
+
"resubmit-stuck-timeout": zod_1.z.number().int().min(0).default(15_000),
|
|
68
|
+
"refilling-wallets": zod_1.z.boolean().default(true),
|
|
69
|
+
"aa95-gas-multiplier": zod_1.z.string().transform((val) => BigInt(val)),
|
|
70
|
+
"refill-helper-contract": types_1.addressSchema.optional(),
|
|
71
|
+
"no-profit-bundling": zod_1.z.boolean(),
|
|
72
|
+
"utility-private-key": types_1.hexData32Schema
|
|
73
|
+
.transform((val) => (0, accounts_1.privateKeyToAccount)(val))
|
|
74
|
+
.optional(),
|
|
75
|
+
"utility-wallet-monitor": zod_1.z.boolean(),
|
|
76
|
+
"utility-wallet-monitor-interval": zod_1.z.number(),
|
|
77
|
+
"executor-private-keys": zod_1.z.union([
|
|
78
|
+
zod_1.z
|
|
79
|
+
.array(types_1.hexData32Schema)
|
|
80
|
+
.transform((vals) => vals.map((val) => (0, accounts_1.privateKeyToAccount)(val))),
|
|
81
|
+
zod_1.z
|
|
82
|
+
.string()
|
|
83
|
+
.regex(/^0x(?:[0-9a-f]{2}){32}(?:,0x(?:[0-9a-f]{2}){32})*$/)
|
|
84
|
+
.transform((val) => val
|
|
85
|
+
.split(",")
|
|
86
|
+
.map((val) => (0, accounts_1.privateKeyToAccount)(val)))
|
|
87
|
+
]),
|
|
88
|
+
"max-executors": zod_1.z.number().int().min(0).optional(),
|
|
89
|
+
"min-executor-balance": zod_1.z
|
|
90
|
+
.string()
|
|
91
|
+
.transform((val) => BigInt(val))
|
|
92
|
+
.optional(),
|
|
93
|
+
"executor-refill-interval": zod_1.z.number().int().min(0),
|
|
94
|
+
"executor-gas-multiplier": zod_1.z.string().transform((val) => BigInt(val))
|
|
95
|
+
});
|
|
94
96
|
exports.compatibilityArgsSchema = zod_1.z.object({
|
|
95
97
|
"chain-type": zod_1.z.enum([
|
|
96
98
|
"default",
|
|
@@ -160,6 +162,7 @@ exports.debugArgsSchema = zod_1.z.object({
|
|
|
160
162
|
tenderly: zod_1.z.boolean()
|
|
161
163
|
});
|
|
162
164
|
exports.gasEstimationArgsSchema = zod_1.z.object({
|
|
165
|
+
"entrypoint-simulation-contract": zod_1.z.preprocess((v) => (v === "" ? undefined : v), types_1.addressSchema.optional()),
|
|
163
166
|
"binary-search-tolerance-delta": zod_1.z
|
|
164
167
|
.string()
|
|
165
168
|
.transform((val) => BigInt(val))
|
|
@@ -195,6 +198,7 @@ exports.optionArgsSchema = zod_1.z.object({
|
|
|
195
198
|
...exports.serverArgsSchema.shape,
|
|
196
199
|
...exports.rpcArgsSchema.shape,
|
|
197
200
|
...exports.debugArgsSchema.shape,
|
|
198
|
-
...exports.gasEstimationArgsSchema.shape
|
|
201
|
+
...exports.gasEstimationArgsSchema.shape,
|
|
202
|
+
...exports.executorArgsSchema.shape
|
|
199
203
|
});
|
|
200
204
|
//# sourceMappingURL=bundler.js.map
|