@pimlico/alto 0.0.0-alto-package.20240604T154418
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/lib/cli/alto.d.ts +6 -0
- package/lib/cli/alto.js +123 -0
- package/lib/cli/alto.js.map +1 -0
- package/lib/cli/config/bundler.d.ts +391 -0
- package/lib/cli/config/bundler.js +135 -0
- package/lib/cli/config/bundler.js.map +1 -0
- package/lib/cli/config/index.d.ts +3 -0
- package/lib/cli/config/index.js +19 -0
- package/lib/cli/config/index.js.map +1 -0
- package/lib/cli/config/options.d.ts +11 -0
- package/lib/cli/config/options.js +339 -0
- package/lib/cli/config/options.js.map +1 -0
- package/lib/cli/customTransport.d.ts +14 -0
- package/lib/cli/customTransport.js +57 -0
- package/lib/cli/customTransport.js.map +1 -0
- package/lib/cli/handler.d.ts +3 -0
- package/lib/cli/handler.js +120 -0
- package/lib/cli/handler.js.map +1 -0
- package/lib/cli/index.d.ts +4 -0
- package/lib/cli/index.js +20 -0
- package/lib/cli/index.js.map +1 -0
- package/lib/cli/instrumentation.d.ts +2 -0
- package/lib/cli/instrumentation.js +41 -0
- package/lib/cli/instrumentation.js.map +1 -0
- package/lib/cli/setupServer.d.ts +17 -0
- package/lib/cli/setupServer.js +159 -0
- package/lib/cli/setupServer.js.map +1 -0
- package/lib/cli/util.d.ts +22 -0
- package/lib/cli/util.js +34 -0
- package/lib/cli/util.js.map +1 -0
- package/lib/executor/executor.d.ts +54 -0
- package/lib/executor/executor.js +665 -0
- package/lib/executor/executor.js.map +1 -0
- package/lib/executor/executorManager.d.ts +34 -0
- package/lib/executor/executorManager.js +405 -0
- package/lib/executor/executorManager.js.map +1 -0
- package/lib/executor/index.d.ts +5 -0
- package/lib/executor/index.js +21 -0
- package/lib/executor/index.js.map +1 -0
- package/lib/executor/senderManager.d.ts +17 -0
- package/lib/executor/senderManager.js +164 -0
- package/lib/executor/senderManager.js.map +1 -0
- package/lib/executor/test/utils.d.ts +13 -0
- package/lib/executor/test/utils.js +81 -0
- package/lib/executor/test/utils.js.map +1 -0
- package/lib/executor/utils.d.ts +32 -0
- package/lib/executor/utils.js +269 -0
- package/lib/executor/utils.js.map +1 -0
- package/lib/mempool/index.d.ts +5 -0
- package/lib/mempool/index.js +21 -0
- package/lib/mempool/index.js.map +1 -0
- package/lib/mempool/mempool.d.ts +64 -0
- package/lib/mempool/mempool.js +493 -0
- package/lib/mempool/mempool.js.map +1 -0
- package/lib/mempool/monitoring.d.ts +10 -0
- package/lib/mempool/monitoring.js +38 -0
- package/lib/mempool/monitoring.js.map +1 -0
- package/lib/mempool/nullMempool.d.ts +15 -0
- package/lib/mempool/nullMempool.js +40 -0
- package/lib/mempool/nullMempool.js.map +1 -0
- package/lib/mempool/reputationManager.d.ts +115 -0
- package/lib/mempool/reputationManager.js +402 -0
- package/lib/mempool/reputationManager.js.map +1 -0
- package/lib/mempool/store.d.ts +22 -0
- package/lib/mempool/store.js +127 -0
- package/lib/mempool/store.js.map +1 -0
- package/lib/rpc/EntryPointSimulationsV07.d.ts +58 -0
- package/lib/rpc/EntryPointSimulationsV07.js +413 -0
- package/lib/rpc/EntryPointSimulationsV07.js.map +1 -0
- package/lib/rpc/ExecuteSimulator.d.ts +37 -0
- package/lib/rpc/ExecuteSimulator.js +51 -0
- package/lib/rpc/ExecuteSimulator.js.map +1 -0
- package/lib/rpc/gasEstimation.d.ts +17 -0
- package/lib/rpc/gasEstimation.js +417 -0
- package/lib/rpc/gasEstimation.js.map +1 -0
- package/lib/rpc/index.d.ts +5 -0
- package/lib/rpc/index.js +21 -0
- package/lib/rpc/index.js.map +1 -0
- package/lib/rpc/nonceQueuer.d.ts +25 -0
- package/lib/rpc/nonceQueuer.js +139 -0
- package/lib/rpc/nonceQueuer.js.map +1 -0
- package/lib/rpc/rpcHandler.d.ts +64 -0
- package/lib/rpc/rpcHandler.js +754 -0
- package/lib/rpc/rpcHandler.js.map +1 -0
- package/lib/rpc/server.d.ts +31 -0
- package/lib/rpc/server.js +268 -0
- package/lib/rpc/server.js.map +1 -0
- package/lib/rpc/validation/BundlerCollectorTracerV06.d.ts +102 -0
- package/lib/rpc/validation/BundlerCollectorTracerV06.js +259 -0
- package/lib/rpc/validation/BundlerCollectorTracerV06.js.map +1 -0
- package/lib/rpc/validation/BundlerCollectorTracerV07.d.ts +102 -0
- package/lib/rpc/validation/BundlerCollectorTracerV07.js +258 -0
- package/lib/rpc/validation/BundlerCollectorTracerV07.js.map +1 -0
- package/lib/rpc/validation/SafeValidator.d.ts +35 -0
- package/lib/rpc/validation/SafeValidator.js +491 -0
- package/lib/rpc/validation/SafeValidator.js.map +1 -0
- package/lib/rpc/validation/TracerResultParserV06.d.ts +13 -0
- package/lib/rpc/validation/TracerResultParserV06.js +582 -0
- package/lib/rpc/validation/TracerResultParserV06.js.map +1 -0
- package/lib/rpc/validation/TracerResultParserV07.d.ts +33 -0
- package/lib/rpc/validation/TracerResultParserV07.js +564 -0
- package/lib/rpc/validation/TracerResultParserV07.js.map +1 -0
- package/lib/rpc/validation/UnsafeValidator.d.ts +63 -0
- package/lib/rpc/validation/UnsafeValidator.js +284 -0
- package/lib/rpc/validation/UnsafeValidator.js.map +1 -0
- package/lib/rpc/validation/index.d.ts +3 -0
- package/lib/rpc/validation/index.js +19 -0
- package/lib/rpc/validation/index.js.map +1 -0
- package/lib/rpc/validation/tracer.d.ts +122 -0
- package/lib/rpc/validation/tracer.js +112 -0
- package/lib/rpc/validation/tracer.js.map +1 -0
- package/lib/types/contracts/BundleBulker.d.ts +120 -0
- package/lib/types/contracts/BundleBulker.js +160 -0
- package/lib/types/contracts/BundleBulker.js.map +1 -0
- package/lib/types/contracts/CallEngine.d.ts +28 -0
- package/lib/types/contracts/CallEngine.js +40 -0
- package/lib/types/contracts/CallEngine.js.map +1 -0
- package/lib/types/contracts/CodeHashGetter.d.ts +37 -0
- package/lib/types/contracts/CodeHashGetter.js +48 -0
- package/lib/types/contracts/CodeHashGetter.js.map +1 -0
- package/lib/types/contracts/EntryPoint.d.ts +1789 -0
- package/lib/types/contracts/EntryPoint.js +2307 -0
- package/lib/types/contracts/EntryPoint.js.map +1 -0
- package/lib/types/contracts/EntryPointSimulations.d.ts +153 -0
- package/lib/types/contracts/EntryPointSimulations.js +18 -0
- package/lib/types/contracts/EntryPointSimulations.js.map +1 -0
- package/lib/types/contracts/IOpInflator.d.ts +61 -0
- package/lib/types/contracts/IOpInflator.js +83 -0
- package/lib/types/contracts/IOpInflator.js.map +1 -0
- package/lib/types/contracts/IPaymaster.d.ts +3 -0
- package/lib/types/contracts/IPaymaster.js +120 -0
- package/lib/types/contracts/IPaymaster.js.map +1 -0
- package/lib/types/contracts/Inflator.d.ts +65 -0
- package/lib/types/contracts/Inflator.js +87 -0
- package/lib/types/contracts/Inflator.js.map +1 -0
- package/lib/types/contracts/PerOpInflator.d.ts +176 -0
- package/lib/types/contracts/PerOpInflator.js +232 -0
- package/lib/types/contracts/PerOpInflator.js.map +1 -0
- package/lib/types/contracts/PimlicoEntryPointSimulations.d.ts +23 -0
- package/lib/types/contracts/PimlicoEntryPointSimulations.js +36 -0
- package/lib/types/contracts/PimlicoEntryPointSimulations.js.map +1 -0
- package/lib/types/contracts/SenderCreator.d.ts +4 -0
- package/lib/types/contracts/SenderCreator.js +26 -0
- package/lib/types/contracts/SenderCreator.js.map +1 -0
- package/lib/types/contracts/SimpleAccountFactory.d.ts +57 -0
- package/lib/types/contracts/SimpleAccountFactory.js +79 -0
- package/lib/types/contracts/SimpleAccountFactory.js.map +1 -0
- package/lib/types/contracts/TestOpcodesAccount.d.ts +4 -0
- package/lib/types/contracts/TestOpcodesAccount.js +284 -0
- package/lib/types/contracts/TestOpcodesAccount.js.map +1 -0
- package/lib/types/contracts/TestOpcodesAccountFactory.d.ts +4 -0
- package/lib/types/contracts/TestOpcodesAccountFactory.js +26 -0
- package/lib/types/contracts/TestOpcodesAccountFactory.js.map +1 -0
- package/lib/types/contracts/TestStorageAccount.d.ts +4 -0
- package/lib/types/contracts/TestStorageAccount.js +316 -0
- package/lib/types/contracts/TestStorageAccount.js.map +1 -0
- package/lib/types/contracts/index.d.ts +17 -0
- package/lib/types/contracts/index.js +33 -0
- package/lib/types/contracts/index.js.map +1 -0
- package/lib/types/gasPrice.d.ts +110 -0
- package/lib/types/gasPrice.js +55 -0
- package/lib/types/gasPrice.js.map +1 -0
- package/lib/types/index.d.ts +11 -0
- package/lib/types/index.js +27 -0
- package/lib/types/index.js.map +1 -0
- package/lib/types/interfaces.d.ts +26 -0
- package/lib/types/interfaces.js +3 -0
- package/lib/types/interfaces.js.map +1 -0
- package/lib/types/mempool.d.ts +78 -0
- package/lib/types/mempool.js +21 -0
- package/lib/types/mempool.js.map +1 -0
- package/lib/types/schemas.d.ts +4523 -0
- package/lib/types/schemas.js +527 -0
- package/lib/types/schemas.js.map +1 -0
- package/lib/types/test/validationTestErrors.d.ts +3 -0
- package/lib/types/test/validationTestErrors.js +232 -0
- package/lib/types/test/validationTestErrors.js.map +1 -0
- package/lib/types/utils.d.ts +24 -0
- package/lib/types/utils.js +34 -0
- package/lib/types/utils.js.map +1 -0
- package/lib/types/validation.d.ts +9691 -0
- package/lib/types/validation.js +307 -0
- package/lib/types/validation.js.map +1 -0
- package/lib/utils/bigInt.d.ts +3 -0
- package/lib/utils/bigInt.js +14 -0
- package/lib/utils/bigInt.js.map +1 -0
- package/lib/utils/compressionHandler.d.ts +11 -0
- package/lib/utils/compressionHandler.js +43 -0
- package/lib/utils/compressionHandler.js.map +1 -0
- package/lib/utils/gasPriceManager.d.ts +34 -0
- package/lib/utils/gasPriceManager.js +365 -0
- package/lib/utils/gasPriceManager.js.map +1 -0
- package/lib/utils/helpers.d.ts +4 -0
- package/lib/utils/helpers.js +18 -0
- package/lib/utils/helpers.js.map +1 -0
- package/lib/utils/index.d.ts +11 -0
- package/lib/utils/index.js +26 -0
- package/lib/utils/index.js.map +1 -0
- package/lib/utils/logger.d.ts +6 -0
- package/lib/utils/logger.js +85 -0
- package/lib/utils/logger.js.map +1 -0
- package/lib/utils/metrics.d.ts +22 -0
- package/lib/utils/metrics.js +154 -0
- package/lib/utils/metrics.js.map +1 -0
- package/lib/utils/rpc-reply.d.ts +17 -0
- package/lib/utils/rpc-reply.js +43 -0
- package/lib/utils/rpc-reply.js.map +1 -0
- package/lib/utils/test.d.ts +17 -0
- package/lib/utils/test.js +161 -0
- package/lib/utils/test.js.map +1 -0
- package/lib/utils/userop.d.ts +49 -0
- package/lib/utils/userop.js +453 -0
- package/lib/utils/userop.js.map +1 -0
- package/lib/utils/validation.d.ts +65 -0
- package/lib/utils/validation.js +496 -0
- package/lib/utils/validation.js.map +1 -0
- package/package.json +85 -0
package/lib/cli/alto.js
ADDED
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
25
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
26
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
27
|
+
};
|
|
28
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
+
exports.YargsError = exports.getAltoCli = exports.yarg = void 0;
|
|
30
|
+
const sentry = __importStar(require("@sentry/node"));
|
|
31
|
+
const dotenv_1 = __importDefault(require("dotenv"));
|
|
32
|
+
const yargs_1 = __importDefault(require("yargs"));
|
|
33
|
+
const helpers_1 = require("yargs/helpers");
|
|
34
|
+
const config_1 = require("./config/index.js");
|
|
35
|
+
const util_1 = require("./util.js");
|
|
36
|
+
// Load environment variables from .env file
|
|
37
|
+
if (process.env.DOTENV_CONFIG_PATH) {
|
|
38
|
+
dotenv_1.default.config({ path: process.env.DOTENV_CONFIG_PATH });
|
|
39
|
+
}
|
|
40
|
+
else {
|
|
41
|
+
dotenv_1.default.config();
|
|
42
|
+
}
|
|
43
|
+
if (process.env.SENTRY_DSN) {
|
|
44
|
+
sentry.init({
|
|
45
|
+
dsn: process.env.SENTRY_DSN,
|
|
46
|
+
// Performance Monitoring
|
|
47
|
+
tracesSampleRate: 1.0,
|
|
48
|
+
// Set sampling rate for profiling - this is relative to tracesSampleRate
|
|
49
|
+
profilesSampleRate: 1.0,
|
|
50
|
+
environment: process.env.ENVIRONMENT
|
|
51
|
+
});
|
|
52
|
+
}
|
|
53
|
+
exports.yarg = (0, yargs_1.default)(helpers_1.hideBin(process.argv));
|
|
54
|
+
const topBanner = `🏔️ Alto: TypeScript ERC-4337 Bundler.
|
|
55
|
+
* by Pimlico, 2024`;
|
|
56
|
+
const bottomBanner = `📖 For more information, check the our docs:
|
|
57
|
+
* https://docs.pimlico.io/
|
|
58
|
+
`;
|
|
59
|
+
function getAltoCli() {
|
|
60
|
+
const alto = exports.yarg
|
|
61
|
+
.wrap(null)
|
|
62
|
+
.env("ALTO")
|
|
63
|
+
.parserConfiguration({
|
|
64
|
+
// As of yargs v16.1.0 dot-notation breaks strictOptions()
|
|
65
|
+
// Manually processing options is typesafe tho more verbose
|
|
66
|
+
"dot-notation": true
|
|
67
|
+
})
|
|
68
|
+
.options(config_1.bundlerOptions)
|
|
69
|
+
.group(Object.keys(config_1.bundlerOptions), "Options:")
|
|
70
|
+
.options(config_1.compatibilityOptions)
|
|
71
|
+
.group(Object.keys(config_1.compatibilityOptions), "Compatibility Options:")
|
|
72
|
+
.options(config_1.serverOptions)
|
|
73
|
+
.group(Object.keys(config_1.serverOptions), "Server Options:")
|
|
74
|
+
.options(config_1.rpcOptions)
|
|
75
|
+
.group(Object.keys(config_1.rpcOptions), "RPC Options:")
|
|
76
|
+
.options(config_1.bundleCompressionOptions)
|
|
77
|
+
.group(Object.keys(config_1.bundleCompressionOptions), "Bundle Compression Options:")
|
|
78
|
+
.options(config_1.logOptions)
|
|
79
|
+
.group(Object.keys(config_1.logOptions), "Logging Options:")
|
|
80
|
+
.options(config_1.debugOptions)
|
|
81
|
+
.group(Object.keys(config_1.debugOptions), "Debug Options:")
|
|
82
|
+
// blank scriptName so that help text doesn't display the cli name before each command
|
|
83
|
+
.scriptName("")
|
|
84
|
+
.demandCommand(1)
|
|
85
|
+
.usage(topBanner)
|
|
86
|
+
.epilogue(bottomBanner)
|
|
87
|
+
// Control show help behaviour below on .fail()
|
|
88
|
+
.showHelpOnFail(false)
|
|
89
|
+
.alias("h", "help")
|
|
90
|
+
.alias("v", "version")
|
|
91
|
+
.recommendCommands();
|
|
92
|
+
// throw an error if we see an unrecognized cmd
|
|
93
|
+
alto.recommendCommands(); //.strict()
|
|
94
|
+
alto.config();
|
|
95
|
+
// yargs.command and all ./cmds
|
|
96
|
+
(0, util_1.registerCommandToYargs)(alto, config_1.bundlerCommand);
|
|
97
|
+
return alto;
|
|
98
|
+
}
|
|
99
|
+
exports.getAltoCli = getAltoCli;
|
|
100
|
+
class YargsError extends Error {
|
|
101
|
+
}
|
|
102
|
+
exports.YargsError = YargsError;
|
|
103
|
+
const alto = getAltoCli();
|
|
104
|
+
// eslint-disable-next-line @typescript-eslint/no-floating-promises
|
|
105
|
+
alto.fail((msg, err) => {
|
|
106
|
+
if (msg) {
|
|
107
|
+
// Show command help message when no command is provided
|
|
108
|
+
if (msg.includes("Not enough non-option arguments")) {
|
|
109
|
+
exports.yarg.showHelp();
|
|
110
|
+
// eslint-disable-next-line no-console
|
|
111
|
+
console.log("\n");
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
const errorMessage = err !== undefined
|
|
115
|
+
? err instanceof YargsError
|
|
116
|
+
? err.message
|
|
117
|
+
: err.stack
|
|
118
|
+
: msg || "Unknown error";
|
|
119
|
+
// eslint-disable-next-line no-console
|
|
120
|
+
console.error(` ✖ ${errorMessage}\n`);
|
|
121
|
+
process.exit(1);
|
|
122
|
+
}).parse();
|
|
123
|
+
//# sourceMappingURL=alto.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"alto.js","sourceRoot":"","sources":["../../cli/alto.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,391 @@
|
|
|
1
|
+
import { type ApiVersion } from "../../types/index.js";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
export declare const bundlerArgsSchema: z.ZodObject<{
|
|
4
|
+
entrypoints: z.ZodEffects<z.ZodString, `0x${string}`[], string>;
|
|
5
|
+
"entrypoint-simulation-contract": z.ZodEffects<z.ZodOptional<z.ZodEffects<z.ZodString, `0x${string}`, string>>, `0x${string}` | undefined, unknown>;
|
|
6
|
+
"safe-mode": z.ZodBoolean;
|
|
7
|
+
"utility-private-key": z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, import("viem").PrivateKeyAccount, string>>;
|
|
8
|
+
"executor-private-keys": z.ZodUnion<[z.ZodEffects<z.ZodArray<z.ZodEffects<z.ZodString, `0x${string}`, string>, "many">, import("viem").PrivateKeyAccount[], string[]>, z.ZodEffects<z.ZodString, import("viem").PrivateKeyAccount[], string>]>;
|
|
9
|
+
"max-executors": z.ZodOptional<z.ZodNumber>;
|
|
10
|
+
"min-executor-balance": z.ZodOptional<z.ZodEffects<z.ZodString, bigint, string>>;
|
|
11
|
+
"executor-refill-interval": z.ZodNumber;
|
|
12
|
+
"min-entity-stake": z.ZodNumber;
|
|
13
|
+
"min-entity-unstake-delay": z.ZodNumber;
|
|
14
|
+
"max-bundle-wait": z.ZodNumber;
|
|
15
|
+
"max-bundle-size": z.ZodNumber;
|
|
16
|
+
"gas-price-bump": z.ZodDefault<z.ZodEffects<z.ZodString, bigint, string>>;
|
|
17
|
+
"gas-price-floor-percent": z.ZodNumber;
|
|
18
|
+
"gas-price-expiry": z.ZodNumber;
|
|
19
|
+
"gas-price-multipliers": z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodString, bigint[], string>, bigint[], string>, {
|
|
20
|
+
slow: bigint;
|
|
21
|
+
standard: bigint;
|
|
22
|
+
fast: bigint;
|
|
23
|
+
}, string>;
|
|
24
|
+
"mempool-max-parallel-ops": z.ZodDefault<z.ZodNumber>;
|
|
25
|
+
"mempool-max-queued-ops": z.ZodDefault<z.ZodNumber>;
|
|
26
|
+
"enforce-unique-senders-per-bundle": z.ZodDefault<z.ZodBoolean>;
|
|
27
|
+
"max-gas-per-bundle": z.ZodDefault<z.ZodEffects<z.ZodString, bigint, string>>;
|
|
28
|
+
}, "strip", z.ZodTypeAny, {
|
|
29
|
+
entrypoints: `0x${string}`[];
|
|
30
|
+
"safe-mode": boolean;
|
|
31
|
+
"executor-private-keys": import("viem").PrivateKeyAccount[];
|
|
32
|
+
"executor-refill-interval": number;
|
|
33
|
+
"min-entity-stake": number;
|
|
34
|
+
"min-entity-unstake-delay": number;
|
|
35
|
+
"max-bundle-wait": number;
|
|
36
|
+
"max-bundle-size": number;
|
|
37
|
+
"gas-price-bump": bigint;
|
|
38
|
+
"gas-price-floor-percent": number;
|
|
39
|
+
"gas-price-expiry": number;
|
|
40
|
+
"gas-price-multipliers": {
|
|
41
|
+
slow: bigint;
|
|
42
|
+
standard: bigint;
|
|
43
|
+
fast: bigint;
|
|
44
|
+
};
|
|
45
|
+
"mempool-max-parallel-ops": number;
|
|
46
|
+
"mempool-max-queued-ops": number;
|
|
47
|
+
"enforce-unique-senders-per-bundle": boolean;
|
|
48
|
+
"max-gas-per-bundle": bigint;
|
|
49
|
+
"entrypoint-simulation-contract"?: `0x${string}` | undefined;
|
|
50
|
+
"utility-private-key"?: import("viem").PrivateKeyAccount | undefined;
|
|
51
|
+
"max-executors"?: number | undefined;
|
|
52
|
+
"min-executor-balance"?: bigint | undefined;
|
|
53
|
+
}, {
|
|
54
|
+
entrypoints: string;
|
|
55
|
+
"safe-mode": boolean;
|
|
56
|
+
"executor-private-keys": string | string[];
|
|
57
|
+
"executor-refill-interval": number;
|
|
58
|
+
"min-entity-stake": number;
|
|
59
|
+
"min-entity-unstake-delay": number;
|
|
60
|
+
"max-bundle-wait": number;
|
|
61
|
+
"max-bundle-size": number;
|
|
62
|
+
"gas-price-floor-percent": number;
|
|
63
|
+
"gas-price-expiry": number;
|
|
64
|
+
"gas-price-multipliers": string;
|
|
65
|
+
"entrypoint-simulation-contract"?: unknown;
|
|
66
|
+
"utility-private-key"?: string | undefined;
|
|
67
|
+
"max-executors"?: number | undefined;
|
|
68
|
+
"min-executor-balance"?: string | undefined;
|
|
69
|
+
"gas-price-bump"?: string | undefined;
|
|
70
|
+
"mempool-max-parallel-ops"?: number | undefined;
|
|
71
|
+
"mempool-max-queued-ops"?: number | undefined;
|
|
72
|
+
"enforce-unique-senders-per-bundle"?: boolean | undefined;
|
|
73
|
+
"max-gas-per-bundle"?: string | undefined;
|
|
74
|
+
}>;
|
|
75
|
+
export declare const compatibilityArgsSchema: z.ZodObject<{
|
|
76
|
+
"chain-type": z.ZodEnum<["default", "op-stack", "arbitrum"]>;
|
|
77
|
+
"legacy-transactions": z.ZodBoolean;
|
|
78
|
+
"api-version": z.ZodEffects<z.ZodDefault<z.ZodOptional<z.ZodString>>, ApiVersion[], string | undefined>;
|
|
79
|
+
"default-api-version": z.ZodEffects<z.ZodOptional<z.ZodEnum<["v1", "v2"]>>, "v1" | "v2", "v1" | "v2" | undefined>;
|
|
80
|
+
"balance-override": z.ZodBoolean;
|
|
81
|
+
"local-gas-limit-calculation": z.ZodBoolean;
|
|
82
|
+
"flush-stuck-transactions-during-startup": z.ZodBoolean;
|
|
83
|
+
"paymaster-gas-limit-multiplier": z.ZodEffects<z.ZodString, bigint, string>;
|
|
84
|
+
"fixed-gas-limit-for-estimation": z.ZodOptional<z.ZodEffects<z.ZodString, bigint, string>>;
|
|
85
|
+
}, "strip", z.ZodTypeAny, {
|
|
86
|
+
"chain-type": "default" | "op-stack" | "arbitrum";
|
|
87
|
+
"legacy-transactions": boolean;
|
|
88
|
+
"api-version": ApiVersion[];
|
|
89
|
+
"default-api-version": "v1" | "v2";
|
|
90
|
+
"balance-override": boolean;
|
|
91
|
+
"local-gas-limit-calculation": boolean;
|
|
92
|
+
"flush-stuck-transactions-during-startup": boolean;
|
|
93
|
+
"paymaster-gas-limit-multiplier": bigint;
|
|
94
|
+
"fixed-gas-limit-for-estimation"?: bigint | undefined;
|
|
95
|
+
}, {
|
|
96
|
+
"chain-type": "default" | "op-stack" | "arbitrum";
|
|
97
|
+
"legacy-transactions": boolean;
|
|
98
|
+
"balance-override": boolean;
|
|
99
|
+
"local-gas-limit-calculation": boolean;
|
|
100
|
+
"flush-stuck-transactions-during-startup": boolean;
|
|
101
|
+
"paymaster-gas-limit-multiplier": string;
|
|
102
|
+
"api-version"?: string | undefined;
|
|
103
|
+
"default-api-version"?: "v1" | "v2" | undefined;
|
|
104
|
+
"fixed-gas-limit-for-estimation"?: string | undefined;
|
|
105
|
+
}>;
|
|
106
|
+
export declare const serverArgsSchema: z.ZodObject<{
|
|
107
|
+
port: z.ZodNumber;
|
|
108
|
+
timeout: z.ZodOptional<z.ZodNumber>;
|
|
109
|
+
websocket: z.ZodDefault<z.ZodBoolean>;
|
|
110
|
+
"websocket-max-payload-size": z.ZodDefault<z.ZodNumber>;
|
|
111
|
+
}, "strip", z.ZodTypeAny, {
|
|
112
|
+
port: number;
|
|
113
|
+
websocket: boolean;
|
|
114
|
+
"websocket-max-payload-size": number;
|
|
115
|
+
timeout?: number | undefined;
|
|
116
|
+
}, {
|
|
117
|
+
port: number;
|
|
118
|
+
timeout?: number | undefined;
|
|
119
|
+
websocket?: boolean | undefined;
|
|
120
|
+
"websocket-max-payload-size"?: number | undefined;
|
|
121
|
+
}>;
|
|
122
|
+
export declare const rpcArgsSchema: z.ZodObject<{
|
|
123
|
+
"rpc-url": z.ZodString;
|
|
124
|
+
"send-transaction-rpc-url": z.ZodOptional<z.ZodString>;
|
|
125
|
+
"polling-interval": z.ZodNumber;
|
|
126
|
+
"max-block-range": z.ZodOptional<z.ZodNumber>;
|
|
127
|
+
}, "strip", z.ZodTypeAny, {
|
|
128
|
+
"rpc-url": string;
|
|
129
|
+
"polling-interval": number;
|
|
130
|
+
"send-transaction-rpc-url"?: string | undefined;
|
|
131
|
+
"max-block-range"?: number | undefined;
|
|
132
|
+
}, {
|
|
133
|
+
"rpc-url": string;
|
|
134
|
+
"polling-interval": number;
|
|
135
|
+
"send-transaction-rpc-url"?: string | undefined;
|
|
136
|
+
"max-block-range"?: number | undefined;
|
|
137
|
+
}>;
|
|
138
|
+
export declare const bundleCopmressionArgsSchema: z.ZodObject<{
|
|
139
|
+
"bundle-bulker-address": z.ZodOptional<z.ZodEffects<z.ZodString, `0x${string}`, string>>;
|
|
140
|
+
"per-op-inflator-address": z.ZodOptional<z.ZodEffects<z.ZodString, `0x${string}`, string>>;
|
|
141
|
+
}, "strip", z.ZodTypeAny, {
|
|
142
|
+
"bundle-bulker-address"?: `0x${string}` | undefined;
|
|
143
|
+
"per-op-inflator-address"?: `0x${string}` | undefined;
|
|
144
|
+
}, {
|
|
145
|
+
"bundle-bulker-address"?: string | undefined;
|
|
146
|
+
"per-op-inflator-address"?: string | undefined;
|
|
147
|
+
}>;
|
|
148
|
+
export declare const logArgsSchema: z.ZodObject<{
|
|
149
|
+
json: z.ZodBoolean;
|
|
150
|
+
"network-name": z.ZodString;
|
|
151
|
+
"log-level": z.ZodEnum<["trace", "debug", "info", "warn", "error", "fatal"]>;
|
|
152
|
+
"public-client-log-level": z.ZodOptional<z.ZodEnum<["trace", "debug", "info", "warn", "error", "fatal"]>>;
|
|
153
|
+
"wallet-client-log-level": z.ZodOptional<z.ZodEnum<["trace", "debug", "info", "warn", "error", "fatal"]>>;
|
|
154
|
+
"rpc-log-level": z.ZodOptional<z.ZodEnum<["trace", "debug", "info", "warn", "error", "fatal"]>>;
|
|
155
|
+
"mempool-log-level": z.ZodOptional<z.ZodEnum<["trace", "debug", "info", "warn", "error", "fatal"]>>;
|
|
156
|
+
"executor-log-level": z.ZodOptional<z.ZodEnum<["trace", "debug", "info", "warn", "error", "fatal"]>>;
|
|
157
|
+
"reputation-manager-log-level": z.ZodOptional<z.ZodEnum<["trace", "debug", "info", "warn", "error", "fatal"]>>;
|
|
158
|
+
"nonce-queuer-log-level": z.ZodOptional<z.ZodEnum<["trace", "debug", "info", "warn", "error", "fatal"]>>;
|
|
159
|
+
}, "strip", z.ZodTypeAny, {
|
|
160
|
+
json: boolean;
|
|
161
|
+
"network-name": string;
|
|
162
|
+
"log-level": "error" | "info" | "debug" | "fatal" | "warn" | "trace";
|
|
163
|
+
"public-client-log-level"?: "error" | "info" | "debug" | "fatal" | "warn" | "trace" | undefined;
|
|
164
|
+
"wallet-client-log-level"?: "error" | "info" | "debug" | "fatal" | "warn" | "trace" | undefined;
|
|
165
|
+
"rpc-log-level"?: "error" | "info" | "debug" | "fatal" | "warn" | "trace" | undefined;
|
|
166
|
+
"mempool-log-level"?: "error" | "info" | "debug" | "fatal" | "warn" | "trace" | undefined;
|
|
167
|
+
"executor-log-level"?: "error" | "info" | "debug" | "fatal" | "warn" | "trace" | undefined;
|
|
168
|
+
"reputation-manager-log-level"?: "error" | "info" | "debug" | "fatal" | "warn" | "trace" | undefined;
|
|
169
|
+
"nonce-queuer-log-level"?: "error" | "info" | "debug" | "fatal" | "warn" | "trace" | undefined;
|
|
170
|
+
}, {
|
|
171
|
+
json: boolean;
|
|
172
|
+
"network-name": string;
|
|
173
|
+
"log-level": "error" | "info" | "debug" | "fatal" | "warn" | "trace";
|
|
174
|
+
"public-client-log-level"?: "error" | "info" | "debug" | "fatal" | "warn" | "trace" | undefined;
|
|
175
|
+
"wallet-client-log-level"?: "error" | "info" | "debug" | "fatal" | "warn" | "trace" | undefined;
|
|
176
|
+
"rpc-log-level"?: "error" | "info" | "debug" | "fatal" | "warn" | "trace" | undefined;
|
|
177
|
+
"mempool-log-level"?: "error" | "info" | "debug" | "fatal" | "warn" | "trace" | undefined;
|
|
178
|
+
"executor-log-level"?: "error" | "info" | "debug" | "fatal" | "warn" | "trace" | undefined;
|
|
179
|
+
"reputation-manager-log-level"?: "error" | "info" | "debug" | "fatal" | "warn" | "trace" | undefined;
|
|
180
|
+
"nonce-queuer-log-level"?: "error" | "info" | "debug" | "fatal" | "warn" | "trace" | undefined;
|
|
181
|
+
}>;
|
|
182
|
+
export declare const debugArgsSchema: z.ZodObject<{
|
|
183
|
+
"bundle-mode": z.ZodEnum<["auto", "manual"]>;
|
|
184
|
+
"enable-debug-endpoints": z.ZodBoolean;
|
|
185
|
+
"expiration-check": z.ZodBoolean;
|
|
186
|
+
"dangerous-skip-user-operation-validation": z.ZodBoolean;
|
|
187
|
+
tenderly: z.ZodBoolean;
|
|
188
|
+
}, "strip", z.ZodTypeAny, {
|
|
189
|
+
"bundle-mode": "manual" | "auto";
|
|
190
|
+
"enable-debug-endpoints": boolean;
|
|
191
|
+
"expiration-check": boolean;
|
|
192
|
+
"dangerous-skip-user-operation-validation": boolean;
|
|
193
|
+
tenderly: boolean;
|
|
194
|
+
}, {
|
|
195
|
+
"bundle-mode": "manual" | "auto";
|
|
196
|
+
"enable-debug-endpoints": boolean;
|
|
197
|
+
"expiration-check": boolean;
|
|
198
|
+
"dangerous-skip-user-operation-validation": boolean;
|
|
199
|
+
tenderly: boolean;
|
|
200
|
+
}>;
|
|
201
|
+
export type IBundlerArgs = z.infer<typeof bundlerArgsSchema>;
|
|
202
|
+
export type IBundlerArgsInput = z.input<typeof bundlerArgsSchema>;
|
|
203
|
+
export type ICompatibilityArgs = z.infer<typeof compatibilityArgsSchema>;
|
|
204
|
+
export type ICompatibilityArgsInput = z.input<typeof compatibilityArgsSchema>;
|
|
205
|
+
export type IServerArgs = z.infer<typeof serverArgsSchema>;
|
|
206
|
+
export type IServerArgsInput = z.input<typeof serverArgsSchema>;
|
|
207
|
+
export type IRpcArgs = z.infer<typeof rpcArgsSchema>;
|
|
208
|
+
export type IRpcArgsInput = z.input<typeof rpcArgsSchema>;
|
|
209
|
+
export type IBundleCompressionArgs = z.infer<typeof bundleCopmressionArgsSchema>;
|
|
210
|
+
export type IBundleCompressionArgsInput = z.input<typeof bundleCopmressionArgsSchema>;
|
|
211
|
+
export type ILogArgs = z.infer<typeof logArgsSchema>;
|
|
212
|
+
export type ILogArgsInput = z.input<typeof logArgsSchema>;
|
|
213
|
+
export type IDebugArgs = z.infer<typeof debugArgsSchema>;
|
|
214
|
+
export type IDebugArgsInput = z.input<typeof debugArgsSchema>;
|
|
215
|
+
export declare const optionArgsSchema: z.ZodObject<{
|
|
216
|
+
"bundle-mode": z.ZodEnum<["auto", "manual"]>;
|
|
217
|
+
"enable-debug-endpoints": z.ZodBoolean;
|
|
218
|
+
"expiration-check": z.ZodBoolean;
|
|
219
|
+
"dangerous-skip-user-operation-validation": z.ZodBoolean;
|
|
220
|
+
tenderly: z.ZodBoolean;
|
|
221
|
+
"bundle-bulker-address": z.ZodOptional<z.ZodEffects<z.ZodString, `0x${string}`, string>>;
|
|
222
|
+
"per-op-inflator-address": z.ZodOptional<z.ZodEffects<z.ZodString, `0x${string}`, string>>;
|
|
223
|
+
"rpc-url": z.ZodString;
|
|
224
|
+
"send-transaction-rpc-url": z.ZodOptional<z.ZodString>;
|
|
225
|
+
"polling-interval": z.ZodNumber;
|
|
226
|
+
"max-block-range": z.ZodOptional<z.ZodNumber>;
|
|
227
|
+
port: z.ZodNumber;
|
|
228
|
+
timeout: z.ZodOptional<z.ZodNumber>;
|
|
229
|
+
websocket: z.ZodDefault<z.ZodBoolean>;
|
|
230
|
+
"websocket-max-payload-size": z.ZodDefault<z.ZodNumber>;
|
|
231
|
+
json: z.ZodBoolean;
|
|
232
|
+
"network-name": z.ZodString;
|
|
233
|
+
"log-level": z.ZodEnum<["trace", "debug", "info", "warn", "error", "fatal"]>;
|
|
234
|
+
"public-client-log-level": z.ZodOptional<z.ZodEnum<["trace", "debug", "info", "warn", "error", "fatal"]>>;
|
|
235
|
+
"wallet-client-log-level": z.ZodOptional<z.ZodEnum<["trace", "debug", "info", "warn", "error", "fatal"]>>;
|
|
236
|
+
"rpc-log-level": z.ZodOptional<z.ZodEnum<["trace", "debug", "info", "warn", "error", "fatal"]>>;
|
|
237
|
+
"mempool-log-level": z.ZodOptional<z.ZodEnum<["trace", "debug", "info", "warn", "error", "fatal"]>>;
|
|
238
|
+
"executor-log-level": z.ZodOptional<z.ZodEnum<["trace", "debug", "info", "warn", "error", "fatal"]>>;
|
|
239
|
+
"reputation-manager-log-level": z.ZodOptional<z.ZodEnum<["trace", "debug", "info", "warn", "error", "fatal"]>>;
|
|
240
|
+
"nonce-queuer-log-level": z.ZodOptional<z.ZodEnum<["trace", "debug", "info", "warn", "error", "fatal"]>>;
|
|
241
|
+
"chain-type": z.ZodEnum<["default", "op-stack", "arbitrum"]>;
|
|
242
|
+
"legacy-transactions": z.ZodBoolean;
|
|
243
|
+
"api-version": z.ZodEffects<z.ZodDefault<z.ZodOptional<z.ZodString>>, ApiVersion[], string | undefined>;
|
|
244
|
+
"default-api-version": z.ZodEffects<z.ZodOptional<z.ZodEnum<["v1", "v2"]>>, "v1" | "v2", "v1" | "v2" | undefined>;
|
|
245
|
+
"balance-override": z.ZodBoolean;
|
|
246
|
+
"local-gas-limit-calculation": z.ZodBoolean;
|
|
247
|
+
"flush-stuck-transactions-during-startup": z.ZodBoolean;
|
|
248
|
+
"paymaster-gas-limit-multiplier": z.ZodEffects<z.ZodString, bigint, string>;
|
|
249
|
+
"fixed-gas-limit-for-estimation": z.ZodOptional<z.ZodEffects<z.ZodString, bigint, string>>;
|
|
250
|
+
entrypoints: z.ZodEffects<z.ZodString, `0x${string}`[], string>;
|
|
251
|
+
"entrypoint-simulation-contract": z.ZodEffects<z.ZodOptional<z.ZodEffects<z.ZodString, `0x${string}`, string>>, `0x${string}` | undefined, unknown>;
|
|
252
|
+
"safe-mode": z.ZodBoolean;
|
|
253
|
+
"utility-private-key": z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, import("viem").PrivateKeyAccount, string>>;
|
|
254
|
+
"executor-private-keys": z.ZodUnion<[z.ZodEffects<z.ZodArray<z.ZodEffects<z.ZodString, `0x${string}`, string>, "many">, import("viem").PrivateKeyAccount[], string[]>, z.ZodEffects<z.ZodString, import("viem").PrivateKeyAccount[], string>]>;
|
|
255
|
+
"max-executors": z.ZodOptional<z.ZodNumber>;
|
|
256
|
+
"min-executor-balance": z.ZodOptional<z.ZodEffects<z.ZodString, bigint, string>>;
|
|
257
|
+
"executor-refill-interval": z.ZodNumber;
|
|
258
|
+
"min-entity-stake": z.ZodNumber;
|
|
259
|
+
"min-entity-unstake-delay": z.ZodNumber;
|
|
260
|
+
"max-bundle-wait": z.ZodNumber;
|
|
261
|
+
"max-bundle-size": z.ZodNumber;
|
|
262
|
+
"gas-price-bump": z.ZodDefault<z.ZodEffects<z.ZodString, bigint, string>>;
|
|
263
|
+
"gas-price-floor-percent": z.ZodNumber;
|
|
264
|
+
"gas-price-expiry": z.ZodNumber;
|
|
265
|
+
"gas-price-multipliers": z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodString, bigint[], string>, bigint[], string>, {
|
|
266
|
+
slow: bigint;
|
|
267
|
+
standard: bigint;
|
|
268
|
+
fast: bigint;
|
|
269
|
+
}, string>;
|
|
270
|
+
"mempool-max-parallel-ops": z.ZodDefault<z.ZodNumber>;
|
|
271
|
+
"mempool-max-queued-ops": z.ZodDefault<z.ZodNumber>;
|
|
272
|
+
"enforce-unique-senders-per-bundle": z.ZodDefault<z.ZodBoolean>;
|
|
273
|
+
"max-gas-per-bundle": z.ZodDefault<z.ZodEffects<z.ZodString, bigint, string>>;
|
|
274
|
+
}, "strip", z.ZodTypeAny, {
|
|
275
|
+
entrypoints: `0x${string}`[];
|
|
276
|
+
"safe-mode": boolean;
|
|
277
|
+
"executor-private-keys": import("viem").PrivateKeyAccount[];
|
|
278
|
+
"executor-refill-interval": number;
|
|
279
|
+
"min-entity-stake": number;
|
|
280
|
+
"min-entity-unstake-delay": number;
|
|
281
|
+
"max-bundle-wait": number;
|
|
282
|
+
"max-bundle-size": number;
|
|
283
|
+
"gas-price-bump": bigint;
|
|
284
|
+
"gas-price-floor-percent": number;
|
|
285
|
+
"gas-price-expiry": number;
|
|
286
|
+
"gas-price-multipliers": {
|
|
287
|
+
slow: bigint;
|
|
288
|
+
standard: bigint;
|
|
289
|
+
fast: bigint;
|
|
290
|
+
};
|
|
291
|
+
"mempool-max-parallel-ops": number;
|
|
292
|
+
"mempool-max-queued-ops": number;
|
|
293
|
+
"enforce-unique-senders-per-bundle": boolean;
|
|
294
|
+
"max-gas-per-bundle": bigint;
|
|
295
|
+
"chain-type": "default" | "op-stack" | "arbitrum";
|
|
296
|
+
"legacy-transactions": boolean;
|
|
297
|
+
"api-version": ApiVersion[];
|
|
298
|
+
"default-api-version": "v1" | "v2";
|
|
299
|
+
"balance-override": boolean;
|
|
300
|
+
"local-gas-limit-calculation": boolean;
|
|
301
|
+
"flush-stuck-transactions-during-startup": boolean;
|
|
302
|
+
"paymaster-gas-limit-multiplier": bigint;
|
|
303
|
+
port: number;
|
|
304
|
+
websocket: boolean;
|
|
305
|
+
"websocket-max-payload-size": number;
|
|
306
|
+
"rpc-url": string;
|
|
307
|
+
"polling-interval": number;
|
|
308
|
+
json: boolean;
|
|
309
|
+
"network-name": string;
|
|
310
|
+
"log-level": "error" | "info" | "debug" | "fatal" | "warn" | "trace";
|
|
311
|
+
"bundle-mode": "manual" | "auto";
|
|
312
|
+
"enable-debug-endpoints": boolean;
|
|
313
|
+
"expiration-check": boolean;
|
|
314
|
+
"dangerous-skip-user-operation-validation": boolean;
|
|
315
|
+
tenderly: boolean;
|
|
316
|
+
"entrypoint-simulation-contract"?: `0x${string}` | undefined;
|
|
317
|
+
"utility-private-key"?: import("viem").PrivateKeyAccount | undefined;
|
|
318
|
+
"max-executors"?: number | undefined;
|
|
319
|
+
"min-executor-balance"?: bigint | undefined;
|
|
320
|
+
"fixed-gas-limit-for-estimation"?: bigint | undefined;
|
|
321
|
+
timeout?: number | undefined;
|
|
322
|
+
"send-transaction-rpc-url"?: string | undefined;
|
|
323
|
+
"max-block-range"?: number | undefined;
|
|
324
|
+
"bundle-bulker-address"?: `0x${string}` | undefined;
|
|
325
|
+
"per-op-inflator-address"?: `0x${string}` | undefined;
|
|
326
|
+
"public-client-log-level"?: "error" | "info" | "debug" | "fatal" | "warn" | "trace" | undefined;
|
|
327
|
+
"wallet-client-log-level"?: "error" | "info" | "debug" | "fatal" | "warn" | "trace" | undefined;
|
|
328
|
+
"rpc-log-level"?: "error" | "info" | "debug" | "fatal" | "warn" | "trace" | undefined;
|
|
329
|
+
"mempool-log-level"?: "error" | "info" | "debug" | "fatal" | "warn" | "trace" | undefined;
|
|
330
|
+
"executor-log-level"?: "error" | "info" | "debug" | "fatal" | "warn" | "trace" | undefined;
|
|
331
|
+
"reputation-manager-log-level"?: "error" | "info" | "debug" | "fatal" | "warn" | "trace" | undefined;
|
|
332
|
+
"nonce-queuer-log-level"?: "error" | "info" | "debug" | "fatal" | "warn" | "trace" | undefined;
|
|
333
|
+
}, {
|
|
334
|
+
entrypoints: string;
|
|
335
|
+
"safe-mode": boolean;
|
|
336
|
+
"executor-private-keys": string | string[];
|
|
337
|
+
"executor-refill-interval": number;
|
|
338
|
+
"min-entity-stake": number;
|
|
339
|
+
"min-entity-unstake-delay": number;
|
|
340
|
+
"max-bundle-wait": number;
|
|
341
|
+
"max-bundle-size": number;
|
|
342
|
+
"gas-price-floor-percent": number;
|
|
343
|
+
"gas-price-expiry": number;
|
|
344
|
+
"gas-price-multipliers": string;
|
|
345
|
+
"chain-type": "default" | "op-stack" | "arbitrum";
|
|
346
|
+
"legacy-transactions": boolean;
|
|
347
|
+
"balance-override": boolean;
|
|
348
|
+
"local-gas-limit-calculation": boolean;
|
|
349
|
+
"flush-stuck-transactions-during-startup": boolean;
|
|
350
|
+
"paymaster-gas-limit-multiplier": string;
|
|
351
|
+
port: number;
|
|
352
|
+
"rpc-url": string;
|
|
353
|
+
"polling-interval": number;
|
|
354
|
+
json: boolean;
|
|
355
|
+
"network-name": string;
|
|
356
|
+
"log-level": "error" | "info" | "debug" | "fatal" | "warn" | "trace";
|
|
357
|
+
"bundle-mode": "manual" | "auto";
|
|
358
|
+
"enable-debug-endpoints": boolean;
|
|
359
|
+
"expiration-check": boolean;
|
|
360
|
+
"dangerous-skip-user-operation-validation": boolean;
|
|
361
|
+
tenderly: boolean;
|
|
362
|
+
"entrypoint-simulation-contract"?: unknown;
|
|
363
|
+
"utility-private-key"?: string | undefined;
|
|
364
|
+
"max-executors"?: number | undefined;
|
|
365
|
+
"min-executor-balance"?: string | undefined;
|
|
366
|
+
"gas-price-bump"?: string | undefined;
|
|
367
|
+
"mempool-max-parallel-ops"?: number | undefined;
|
|
368
|
+
"mempool-max-queued-ops"?: number | undefined;
|
|
369
|
+
"enforce-unique-senders-per-bundle"?: boolean | undefined;
|
|
370
|
+
"max-gas-per-bundle"?: string | undefined;
|
|
371
|
+
"api-version"?: string | undefined;
|
|
372
|
+
"default-api-version"?: "v1" | "v2" | undefined;
|
|
373
|
+
"fixed-gas-limit-for-estimation"?: string | undefined;
|
|
374
|
+
timeout?: number | undefined;
|
|
375
|
+
websocket?: boolean | undefined;
|
|
376
|
+
"websocket-max-payload-size"?: number | undefined;
|
|
377
|
+
"send-transaction-rpc-url"?: string | undefined;
|
|
378
|
+
"max-block-range"?: number | undefined;
|
|
379
|
+
"bundle-bulker-address"?: string | undefined;
|
|
380
|
+
"per-op-inflator-address"?: string | undefined;
|
|
381
|
+
"public-client-log-level"?: "error" | "info" | "debug" | "fatal" | "warn" | "trace" | undefined;
|
|
382
|
+
"wallet-client-log-level"?: "error" | "info" | "debug" | "fatal" | "warn" | "trace" | undefined;
|
|
383
|
+
"rpc-log-level"?: "error" | "info" | "debug" | "fatal" | "warn" | "trace" | undefined;
|
|
384
|
+
"mempool-log-level"?: "error" | "info" | "debug" | "fatal" | "warn" | "trace" | undefined;
|
|
385
|
+
"executor-log-level"?: "error" | "info" | "debug" | "fatal" | "warn" | "trace" | undefined;
|
|
386
|
+
"reputation-manager-log-level"?: "error" | "info" | "debug" | "fatal" | "warn" | "trace" | undefined;
|
|
387
|
+
"nonce-queuer-log-level"?: "error" | "info" | "debug" | "fatal" | "warn" | "trace" | undefined;
|
|
388
|
+
}>;
|
|
389
|
+
export type IOptions = z.infer<typeof optionArgsSchema>;
|
|
390
|
+
export type IOptionsInput = z.input<typeof optionArgsSchema>;
|
|
391
|
+
//# sourceMappingURL=bundler.d.ts.map
|