@pimlico/alto 0.0.0-main.20240607T034324 → 0.0.0-staging.20240606T093925
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/index.d.ts +0 -1
- package/lib/cli/index.js +0 -1
- package/lib/cli/index.js.map +1 -1
- package/lib/executor/executor.js +0 -6
- package/lib/executor/executor.js.map +1 -1
- package/lib/executor/executorManager.js +0 -1
- package/lib/executor/executorManager.js.map +1 -1
- package/lib/executor/utils.js +1 -3
- package/lib/executor/utils.js.map +1 -1
- package/lib/index.d.ts +5 -1
- package/lib/index.js +120 -1
- package/lib/index.js.map +1 -1
- package/lib/rpc/server.js +1 -2
- package/lib/rpc/server.js.map +1 -1
- package/lib/types/mempool.d.ts +1 -2
- package/package.json +67 -70
- package/esm/cli/alto.d.ts +0 -6
- package/esm/cli/alto.js +0 -92
- package/esm/cli/alto.js.map +0 -1
- package/esm/cli/config/bundler.d.ts +0 -391
- package/esm/cli/config/bundler.js +0 -132
- package/esm/cli/config/bundler.js.map +0 -1
- package/esm/cli/config/index.d.ts +0 -3
- package/esm/cli/config/index.js +0 -3
- package/esm/cli/config/index.js.map +0 -1
- package/esm/cli/config/options.d.ts +0 -11
- package/esm/cli/config/options.js +0 -336
- package/esm/cli/config/options.js.map +0 -1
- package/esm/cli/customTransport.d.ts +0 -14
- package/esm/cli/customTransport.js +0 -53
- package/esm/cli/customTransport.js.map +0 -1
- package/esm/cli/handler.d.ts +0 -3
- package/esm/cli/handler.js +0 -116
- package/esm/cli/handler.js.map +0 -1
- package/esm/cli/index.d.ts +0 -4
- package/esm/cli/index.js +0 -4
- package/esm/cli/index.js.map +0 -1
- package/esm/cli/instrumentation.d.ts +0 -2
- package/esm/cli/instrumentation.js +0 -39
- package/esm/cli/instrumentation.js.map +0 -1
- package/esm/cli/setupServer.d.ts +0 -17
- package/esm/cli/setupServer.js +0 -155
- package/esm/cli/setupServer.js.map +0 -1
- package/esm/cli/util.d.ts +0 -22
- package/esm/cli/util.js +0 -30
- package/esm/cli/util.js.map +0 -1
- package/esm/executor/executor.d.ts +0 -54
- package/esm/executor/executor.js +0 -643
- package/esm/executor/executor.js.map +0 -1
- package/esm/executor/executorManager.d.ts +0 -34
- package/esm/executor/executorManager.js +0 -402
- package/esm/executor/executorManager.js.map +0 -1
- package/esm/executor/index.d.ts +0 -5
- package/esm/executor/index.js +0 -5
- package/esm/executor/index.js.map +0 -1
- package/esm/executor/senderManager.d.ts +0 -17
- package/esm/executor/senderManager.js +0 -160
- package/esm/executor/senderManager.js.map +0 -1
- package/esm/executor/test/utils.d.ts +0 -13
- package/esm/executor/test/utils.js +0 -75
- package/esm/executor/test/utils.js.map +0 -1
- package/esm/executor/utils.d.ts +0 -32
- package/esm/executor/utils.js +0 -241
- package/esm/executor/utils.js.map +0 -1
- package/esm/index.d.ts +0 -2
- package/esm/index.js +0 -2
- package/esm/index.js.map +0 -1
- package/esm/mempool/index.d.ts +0 -5
- package/esm/mempool/index.js +0 -5
- package/esm/mempool/index.js.map +0 -1
- package/esm/mempool/mempool.d.ts +0 -64
- package/esm/mempool/mempool.js +0 -489
- package/esm/mempool/mempool.js.map +0 -1
- package/esm/mempool/monitoring.d.ts +0 -10
- package/esm/mempool/monitoring.js +0 -34
- package/esm/mempool/monitoring.js.map +0 -1
- package/esm/mempool/nullMempool.d.ts +0 -15
- package/esm/mempool/nullMempool.js +0 -36
- package/esm/mempool/nullMempool.js.map +0 -1
- package/esm/mempool/reputationManager.d.ts +0 -115
- package/esm/mempool/reputationManager.js +0 -397
- package/esm/mempool/reputationManager.js.map +0 -1
- package/esm/mempool/store.d.ts +0 -22
- package/esm/mempool/store.js +0 -123
- package/esm/mempool/store.js.map +0 -1
- package/esm/rpc/EntryPointSimulationsV07.d.ts +0 -58
- package/esm/rpc/EntryPointSimulationsV07.js +0 -407
- 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 -410
- package/esm/rpc/gasEstimation.js.map +0 -1
- package/esm/rpc/index.d.ts +0 -5
- package/esm/rpc/index.js +0 -5
- package/esm/rpc/index.js.map +0 -1
- package/esm/rpc/nonceQueuer.d.ts +0 -25
- package/esm/rpc/nonceQueuer.js +0 -135
- package/esm/rpc/nonceQueuer.js.map +0 -1
- package/esm/rpc/rpcHandler.d.ts +0 -64
- package/esm/rpc/rpcHandler.js +0 -727
- package/esm/rpc/rpcHandler.js.map +0 -1
- package/esm/rpc/server.d.ts +0 -31
- package/esm/rpc/server.js +0 -239
- package/esm/rpc/server.js.map +0 -1
- package/esm/rpc/validation/BundlerCollectorTracerV06.d.ts +0 -102
- package/esm/rpc/validation/BundlerCollectorTracerV06.js +0 -255
- package/esm/rpc/validation/BundlerCollectorTracerV06.js.map +0 -1
- package/esm/rpc/validation/BundlerCollectorTracerV07.d.ts +0 -102
- package/esm/rpc/validation/BundlerCollectorTracerV07.js +0 -254
- package/esm/rpc/validation/BundlerCollectorTracerV07.js.map +0 -1
- package/esm/rpc/validation/SafeValidator.d.ts +0 -35
- package/esm/rpc/validation/SafeValidator.js +0 -487
- package/esm/rpc/validation/SafeValidator.js.map +0 -1
- package/esm/rpc/validation/TracerResultParserV06.d.ts +0 -13
- package/esm/rpc/validation/TracerResultParserV06.js +0 -578
- package/esm/rpc/validation/TracerResultParserV06.js.map +0 -1
- package/esm/rpc/validation/TracerResultParserV07.d.ts +0 -33
- package/esm/rpc/validation/TracerResultParserV07.js +0 -557
- package/esm/rpc/validation/TracerResultParserV07.js.map +0 -1
- package/esm/rpc/validation/UnsafeValidator.d.ts +0 -63
- package/esm/rpc/validation/UnsafeValidator.js +0 -257
- package/esm/rpc/validation/UnsafeValidator.js.map +0 -1
- package/esm/rpc/validation/index.d.ts +0 -3
- package/esm/rpc/validation/index.js +0 -3
- package/esm/rpc/validation/index.js.map +0 -1
- package/esm/rpc/validation/tracer.d.ts +0 -122
- package/esm/rpc/validation/tracer.js +0 -82
- package/esm/rpc/validation/tracer.js.map +0 -1
- package/esm/types/contracts/BundleBulker.d.ts +0 -120
- package/esm/types/contracts/BundleBulker.js +0 -157
- package/esm/types/contracts/BundleBulker.js.map +0 -1
- package/esm/types/contracts/CallEngine.d.ts +0 -28
- package/esm/types/contracts/CallEngine.js +0 -37
- package/esm/types/contracts/CallEngine.js.map +0 -1
- package/esm/types/contracts/CodeHashGetter.d.ts +0 -37
- package/esm/types/contracts/CodeHashGetter.js +0 -45
- package/esm/types/contracts/CodeHashGetter.js.map +0 -1
- package/esm/types/contracts/EntryPoint.d.ts +0 -1789
- package/esm/types/contracts/EntryPoint.js +0 -2304
- package/esm/types/contracts/EntryPoint.js.map +0 -1
- package/esm/types/contracts/EntryPointSimulations.d.ts +0 -153
- package/esm/types/contracts/EntryPointSimulations.js +0 -15
- package/esm/types/contracts/EntryPointSimulations.js.map +0 -1
- package/esm/types/contracts/IOpInflator.d.ts +0 -61
- package/esm/types/contracts/IOpInflator.js +0 -80
- package/esm/types/contracts/IOpInflator.js.map +0 -1
- package/esm/types/contracts/IPaymaster.d.ts +0 -3
- package/esm/types/contracts/IPaymaster.js +0 -117
- package/esm/types/contracts/IPaymaster.js.map +0 -1
- package/esm/types/contracts/Inflator.d.ts +0 -65
- package/esm/types/contracts/Inflator.js +0 -84
- package/esm/types/contracts/Inflator.js.map +0 -1
- package/esm/types/contracts/PerOpInflator.d.ts +0 -176
- package/esm/types/contracts/PerOpInflator.js +0 -229
- package/esm/types/contracts/PerOpInflator.js.map +0 -1
- package/esm/types/contracts/PimlicoEntryPointSimulations.d.ts +0 -23
- package/esm/types/contracts/PimlicoEntryPointSimulations.js +0 -33
- package/esm/types/contracts/PimlicoEntryPointSimulations.js.map +0 -1
- package/esm/types/contracts/SenderCreator.d.ts +0 -4
- package/esm/types/contracts/SenderCreator.js +0 -23
- package/esm/types/contracts/SenderCreator.js.map +0 -1
- package/esm/types/contracts/SimpleAccountFactory.d.ts +0 -57
- package/esm/types/contracts/SimpleAccountFactory.js +0 -76
- package/esm/types/contracts/SimpleAccountFactory.js.map +0 -1
- package/esm/types/contracts/TestOpcodesAccount.d.ts +0 -4
- package/esm/types/contracts/TestOpcodesAccount.js +0 -281
- package/esm/types/contracts/TestOpcodesAccount.js.map +0 -1
- package/esm/types/contracts/TestOpcodesAccountFactory.d.ts +0 -4
- package/esm/types/contracts/TestOpcodesAccountFactory.js +0 -23
- package/esm/types/contracts/TestOpcodesAccountFactory.js.map +0 -1
- package/esm/types/contracts/TestStorageAccount.d.ts +0 -4
- package/esm/types/contracts/TestStorageAccount.js +0 -313
- package/esm/types/contracts/TestStorageAccount.js.map +0 -1
- package/esm/types/contracts/index.d.ts +0 -17
- package/esm/types/contracts/index.js +0 -17
- package/esm/types/contracts/index.js.map +0 -1
- package/esm/types/gasPrice.d.ts +0 -110
- package/esm/types/gasPrice.js +0 -52
- package/esm/types/gasPrice.js.map +0 -1
- package/esm/types/index.d.ts +0 -11
- package/esm/types/index.js +0 -11
- package/esm/types/index.js.map +0 -1
- package/esm/types/interfaces.d.ts +0 -26
- package/esm/types/interfaces.js +0 -2
- package/esm/types/interfaces.js.map +0 -1
- package/esm/types/mempool.d.ts +0 -79
- package/esm/types/mempool.js +0 -16
- package/esm/types/mempool.js.map +0 -1
- package/esm/types/schemas.d.ts +0 -4791
- package/esm/types/schemas.js +0 -497
- package/esm/types/schemas.js.map +0 -1
- package/esm/types/test/validationTestErrors.d.ts +0 -3
- package/esm/types/test/validationTestErrors.js +0 -229
- package/esm/types/test/validationTestErrors.js.map +0 -1
- package/esm/types/utils.d.ts +0 -24
- package/esm/types/utils.js +0 -30
- package/esm/types/utils.js.map +0 -1
- package/esm/types/validation.d.ts +0 -14327
- package/esm/types/validation.js +0 -304
- package/esm/types/validation.js.map +0 -1
- package/esm/utils/bigInt.d.ts +0 -3
- package/esm/utils/bigInt.js +0 -9
- package/esm/utils/bigInt.js.map +0 -1
- package/esm/utils/compressionHandler.d.ts +0 -11
- package/esm/utils/compressionHandler.js +0 -39
- package/esm/utils/compressionHandler.js.map +0 -1
- package/esm/utils/gasPriceManager.d.ts +0 -34
- package/esm/utils/gasPriceManager.js +0 -338
- package/esm/utils/gasPriceManager.js.map +0 -1
- package/esm/utils/helpers.d.ts +0 -4
- package/esm/utils/helpers.js +0 -13
- package/esm/utils/helpers.js.map +0 -1
- package/esm/utils/index.d.ts +0 -11
- package/esm/utils/index.js +0 -10
- package/esm/utils/index.js.map +0 -1
- package/esm/utils/logger.d.ts +0 -6
- package/esm/utils/logger.js +0 -76
- package/esm/utils/logger.js.map +0 -1
- package/esm/utils/metrics.d.ts +0 -22
- package/esm/utils/metrics.js +0 -150
- package/esm/utils/metrics.js.map +0 -1
- package/esm/utils/rpc-reply.d.ts +0 -17
- package/esm/utils/rpc-reply.js +0 -41
- package/esm/utils/rpc-reply.js.map +0 -1
- package/esm/utils/test.d.ts +0 -17
- package/esm/utils/test.js +0 -130
- package/esm/utils/test.js.map +0 -1
- package/esm/utils/userop.d.ts +0 -49
- package/esm/utils/userop.js +0 -408
- package/esm/utils/userop.js.map +0 -1
- package/esm/utils/validation.d.ts +0 -65
- package/esm/utils/validation.js +0 -461
- package/esm/utils/validation.js.map +0 -1
- package/lib/cli/alto.d.ts +0 -6
- package/lib/cli/alto.js +0 -123
- package/lib/cli/alto.js.map +0 -1
package/package.json
CHANGED
|
@@ -1,73 +1,70 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
"
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
2
|
+
"name": "@pimlico/alto",
|
|
3
|
+
"version": "0.0.0-staging.20240606T093925",
|
|
4
|
+
"description": "A performant and modular ERC-4337 Bundler written in Typescript",
|
|
5
|
+
"repository": "https://github.com/pimlicolabs/alto.git",
|
|
6
|
+
"author": "Pimlico",
|
|
7
|
+
"license": "GPL-3.0-or-later",
|
|
8
|
+
"main": "lib/index.js",
|
|
9
|
+
"types": "lib/index.d.ts",
|
|
10
|
+
"files": [
|
|
11
|
+
"lib/**/*.d.ts",
|
|
12
|
+
"lib/**/*.js",
|
|
13
|
+
"lib/**/*.js.map",
|
|
14
|
+
"*.d.ts",
|
|
15
|
+
"*.js"
|
|
16
|
+
],
|
|
17
|
+
"exports": {
|
|
18
|
+
".": {
|
|
19
|
+
"import": "./lib/index.js",
|
|
20
|
+
"require": "./lib/index.js"
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
"scripts": {
|
|
24
|
+
"build": "tsc -p ./tsconfig.json && tsc-alias -p tsconfig.json",
|
|
25
|
+
"dev": "nodemon --exec DOTENV_CONFIG_PATH=$(pwd)/../.env ts-node -r tsconfig-paths/register index.ts run",
|
|
26
|
+
"test": "test -d test && mocha test/**/*.test.ts --exit || echo 'No test folder found. Skipping tests.'",
|
|
27
|
+
"lint": "eslint src/**/*.ts",
|
|
28
|
+
"lint:fix": "eslint src/**/*.ts --fix"
|
|
29
|
+
},
|
|
30
|
+
"dependencies": {
|
|
31
|
+
"@fastify/websocket": "^10.0.1",
|
|
32
|
+
"@opentelemetry/api": "^1.7.0",
|
|
33
|
+
"@opentelemetry/core": "^1.19.0",
|
|
34
|
+
"@opentelemetry/exporter-trace-otlp-proto": "^0.46.0",
|
|
35
|
+
"@opentelemetry/instrumentation-fastify": "^0.32.5",
|
|
36
|
+
"@opentelemetry/instrumentation-http": "^0.46.0",
|
|
37
|
+
"@opentelemetry/instrumentation-ioredis": "^0.36.0",
|
|
38
|
+
"@opentelemetry/instrumentation-pino": "^0.34.4",
|
|
39
|
+
"@opentelemetry/sdk-node": "^0.46.0",
|
|
40
|
+
"@opentelemetry/sdk-trace-base": "^1.19.0",
|
|
41
|
+
"@opentelemetry/semantic-conventions": "^1.19.0",
|
|
42
|
+
"@sentry/node": "^7.83.0",
|
|
43
|
+
"@types/node": "^18.16.3",
|
|
44
|
+
"@types/ws": "^8.5.10",
|
|
45
|
+
"abitype": "^0.8.0",
|
|
46
|
+
"async-mutex": "^0.4.0",
|
|
47
|
+
"dotenv": "^16.0.3",
|
|
48
|
+
"execa": "^9.1.0",
|
|
49
|
+
"fastify": "^4.25.2",
|
|
50
|
+
"fastify-cors": "3.0.3",
|
|
51
|
+
"opentelemetry-instrumentation-fetch-node": "^1.1.2",
|
|
52
|
+
"pino": "^8.15.0",
|
|
53
|
+
"pino-http": "^8.4.0",
|
|
54
|
+
"pino-pretty": "^10.0.0",
|
|
55
|
+
"prom-client": "^14.2.0",
|
|
56
|
+
"prool": "^0.0.11",
|
|
57
|
+
"viem": "^2.9.5",
|
|
58
|
+
"yargs": "^17.7.1",
|
|
59
|
+
"zod": "^3.21.4",
|
|
60
|
+
"zod-validation-error": "^1.3.0"
|
|
61
|
+
},
|
|
62
|
+
"devDependencies": {
|
|
63
|
+
"@types/yargs": "^17.0.24",
|
|
64
|
+
"nodemon": "^3.0.3",
|
|
65
|
+
"ts-node": "^10.9.2",
|
|
66
|
+
"tsc-alias": "^1.8.8",
|
|
67
|
+
"tsconfig-paths": "^4.2.0",
|
|
68
|
+
"typescript": "^5.3.3"
|
|
24
69
|
}
|
|
25
|
-
},
|
|
26
|
-
"scripts": {
|
|
27
|
-
"build": "tsc -p ./tsconfig.json && tsc-alias -p tsconfig.json",
|
|
28
|
-
"build:esm": "tsc -p ./tsconfig.esm.json && tsc-alias -p tsconfig.esm.json",
|
|
29
|
-
"dev": "nodemon --exec DOTENV_CONFIG_PATH=$(pwd)/../.env ts-node -r tsconfig-paths/register cli/alto.ts run",
|
|
30
|
-
"test": "test -d test && mocha test/**/*.test.ts --exit || echo 'No test folder found. Skipping tests.'",
|
|
31
|
-
"lint": "eslint src/**/*.ts",
|
|
32
|
-
"lint:fix": "eslint src/**/*.ts --fix"
|
|
33
|
-
},
|
|
34
|
-
"dependencies": {
|
|
35
|
-
"@fastify/cors": "^9.0.1",
|
|
36
|
-
"@fastify/websocket": "^10.0.1",
|
|
37
|
-
"@opentelemetry/api": "^1.7.0",
|
|
38
|
-
"@opentelemetry/core": "^1.19.0",
|
|
39
|
-
"@opentelemetry/exporter-trace-otlp-proto": "^0.46.0",
|
|
40
|
-
"@opentelemetry/instrumentation-fastify": "^0.32.5",
|
|
41
|
-
"@opentelemetry/instrumentation-http": "^0.46.0",
|
|
42
|
-
"@opentelemetry/instrumentation-ioredis": "^0.36.0",
|
|
43
|
-
"@opentelemetry/instrumentation-pino": "^0.34.4",
|
|
44
|
-
"@opentelemetry/sdk-node": "^0.46.0",
|
|
45
|
-
"@opentelemetry/sdk-trace-base": "^1.19.0",
|
|
46
|
-
"@opentelemetry/semantic-conventions": "^1.19.0",
|
|
47
|
-
"@sentry/node": "^7.83.0",
|
|
48
|
-
"@types/node": "^18.16.3",
|
|
49
|
-
"@types/ws": "^8.5.10",
|
|
50
|
-
"abitype": "^0.8.0",
|
|
51
|
-
"async-mutex": "^0.4.0",
|
|
52
|
-
"dotenv": "^16.0.3",
|
|
53
|
-
"fastify": "^4.25.2",
|
|
54
|
-
"opentelemetry-instrumentation-fetch-node": "^1.1.2",
|
|
55
|
-
"pino": "^8.15.0",
|
|
56
|
-
"pino-http": "^8.4.0",
|
|
57
|
-
"pino-pretty": "^10.0.0",
|
|
58
|
-
"prom-client": "^14.2.0",
|
|
59
|
-
"viem": "^2.9.5",
|
|
60
|
-
"yargs": "^17.7.1",
|
|
61
|
-
"zod": "^3.21.4",
|
|
62
|
-
"zod-validation-error": "^1.3.0"
|
|
63
|
-
},
|
|
64
|
-
"devDependencies": {
|
|
65
|
-
"@types/yargs": "^17.0.24",
|
|
66
|
-
"nodemon": "^3.0.3",
|
|
67
|
-
"ts-node": "^10.9.2",
|
|
68
|
-
"tsc-alias": "^1.8.8",
|
|
69
|
-
"tsconfig-paths": "^4.2.0",
|
|
70
|
-
"typescript": "^5.3.3"
|
|
71
|
-
},
|
|
72
|
-
"type": "module"
|
|
73
70
|
}
|
package/esm/cli/alto.d.ts
DELETED
package/esm/cli/alto.js
DELETED
|
@@ -1,92 +0,0 @@
|
|
|
1
|
-
import * as sentry from "@sentry/node";
|
|
2
|
-
import dotenv from "dotenv";
|
|
3
|
-
import yargs from "yargs";
|
|
4
|
-
import { hideBin } from "yargs/helpers";
|
|
5
|
-
import { bundleCompressionOptions, bundlerCommand, bundlerOptions, compatibilityOptions, debugOptions, logOptions, rpcOptions, serverOptions } from "./config/index.js";
|
|
6
|
-
import { registerCommandToYargs } from "./util.js";
|
|
7
|
-
// Load environment variables from .env file
|
|
8
|
-
if (process.env.DOTENV_CONFIG_PATH) {
|
|
9
|
-
dotenv.config({ path: process.env.DOTENV_CONFIG_PATH });
|
|
10
|
-
}
|
|
11
|
-
else {
|
|
12
|
-
dotenv.config();
|
|
13
|
-
}
|
|
14
|
-
if (process.env.SENTRY_DSN) {
|
|
15
|
-
sentry.init({
|
|
16
|
-
dsn: process.env.SENTRY_DSN,
|
|
17
|
-
// Performance Monitoring
|
|
18
|
-
tracesSampleRate: 1.0,
|
|
19
|
-
// Set sampling rate for profiling - this is relative to tracesSampleRate
|
|
20
|
-
profilesSampleRate: 1.0,
|
|
21
|
-
environment: process.env.ENVIRONMENT
|
|
22
|
-
});
|
|
23
|
-
}
|
|
24
|
-
export const yarg = yargs(hideBin(process.argv));
|
|
25
|
-
const topBanner = `🏔 Alto: TypeScript ERC-4337 Bundler.
|
|
26
|
-
* by Pimlico, 2024`;
|
|
27
|
-
const bottomBanner = `📖 For more information, check the our docs:
|
|
28
|
-
* https://docs.pimlico.io/
|
|
29
|
-
`;
|
|
30
|
-
export function getAltoCli() {
|
|
31
|
-
const alto = yarg
|
|
32
|
-
.wrap(null)
|
|
33
|
-
.env("ALTO")
|
|
34
|
-
.parserConfiguration({
|
|
35
|
-
// As of yargs v16.1.0 dot-notation breaks strictOptions()
|
|
36
|
-
// Manually processing options is typesafe tho more verbose
|
|
37
|
-
"dot-notation": true
|
|
38
|
-
})
|
|
39
|
-
.options(bundlerOptions)
|
|
40
|
-
.group(Object.keys(bundlerOptions), "Options:")
|
|
41
|
-
.options(compatibilityOptions)
|
|
42
|
-
.group(Object.keys(compatibilityOptions), "Compatibility Options:")
|
|
43
|
-
.options(serverOptions)
|
|
44
|
-
.group(Object.keys(serverOptions), "Server Options:")
|
|
45
|
-
.options(rpcOptions)
|
|
46
|
-
.group(Object.keys(rpcOptions), "RPC Options:")
|
|
47
|
-
.options(bundleCompressionOptions)
|
|
48
|
-
.group(Object.keys(bundleCompressionOptions), "Bundle Compression Options:")
|
|
49
|
-
.options(logOptions)
|
|
50
|
-
.group(Object.keys(logOptions), "Logging Options:")
|
|
51
|
-
.options(debugOptions)
|
|
52
|
-
.group(Object.keys(debugOptions), "Debug Options:")
|
|
53
|
-
// blank scriptName so that help text doesn't display the cli name before each command
|
|
54
|
-
.scriptName("")
|
|
55
|
-
.demandCommand(1)
|
|
56
|
-
.usage(topBanner)
|
|
57
|
-
.epilogue(bottomBanner)
|
|
58
|
-
// Control show help behaviour below on .fail()
|
|
59
|
-
.showHelpOnFail(false)
|
|
60
|
-
.alias("h", "help")
|
|
61
|
-
.alias("v", "version")
|
|
62
|
-
.recommendCommands();
|
|
63
|
-
// throw an error if we see an unrecognized cmd
|
|
64
|
-
alto.recommendCommands(); //.strict()
|
|
65
|
-
alto.config();
|
|
66
|
-
// yargs.command and all ./cmds
|
|
67
|
-
registerCommandToYargs(alto, bundlerCommand);
|
|
68
|
-
return alto;
|
|
69
|
-
}
|
|
70
|
-
export class YargsError extends Error {
|
|
71
|
-
}
|
|
72
|
-
const alto = getAltoCli();
|
|
73
|
-
// eslint-disable-next-line @typescript-eslint/no-floating-promises
|
|
74
|
-
alto.fail((msg, err) => {
|
|
75
|
-
if (msg) {
|
|
76
|
-
// Show command help message when no command is provided
|
|
77
|
-
if (msg.includes("Not enough non-option arguments")) {
|
|
78
|
-
yarg.showHelp();
|
|
79
|
-
// eslint-disable-next-line no-console
|
|
80
|
-
console.log("\n");
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
const errorMessage = err !== undefined
|
|
84
|
-
? err instanceof YargsError
|
|
85
|
-
? err.message
|
|
86
|
-
: err.stack
|
|
87
|
-
: msg || "Unknown error";
|
|
88
|
-
// eslint-disable-next-line no-console
|
|
89
|
-
console.error(` × ${errorMessage}\n`);
|
|
90
|
-
process.exit(1);
|
|
91
|
-
}).parse();
|
|
92
|
-
//# sourceMappingURL=alto.js.map
|
package/esm/cli/alto.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"alto.js","sourceRoot":"","sources":["../../cli/alto.ts"],"names":[],"mappings":"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"}
|
|
@@ -1,391 +0,0 @@
|
|
|
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[]) & (string | string[] | undefined);
|
|
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
|
-
"bundle-bulker-address"?: `0x${string}` | undefined;
|
|
317
|
-
"per-op-inflator-address"?: `0x${string}` | undefined;
|
|
318
|
-
"send-transaction-rpc-url"?: string | undefined;
|
|
319
|
-
"max-block-range"?: number | undefined;
|
|
320
|
-
timeout?: number | undefined;
|
|
321
|
-
"public-client-log-level"?: "error" | "info" | "debug" | "fatal" | "warn" | "trace" | undefined;
|
|
322
|
-
"wallet-client-log-level"?: "error" | "info" | "debug" | "fatal" | "warn" | "trace" | undefined;
|
|
323
|
-
"rpc-log-level"?: "error" | "info" | "debug" | "fatal" | "warn" | "trace" | undefined;
|
|
324
|
-
"mempool-log-level"?: "error" | "info" | "debug" | "fatal" | "warn" | "trace" | undefined;
|
|
325
|
-
"executor-log-level"?: "error" | "info" | "debug" | "fatal" | "warn" | "trace" | undefined;
|
|
326
|
-
"reputation-manager-log-level"?: "error" | "info" | "debug" | "fatal" | "warn" | "trace" | undefined;
|
|
327
|
-
"nonce-queuer-log-level"?: "error" | "info" | "debug" | "fatal" | "warn" | "trace" | undefined;
|
|
328
|
-
"fixed-gas-limit-for-estimation"?: bigint | undefined;
|
|
329
|
-
"entrypoint-simulation-contract"?: `0x${string}` | undefined;
|
|
330
|
-
"utility-private-key"?: import("viem").PrivateKeyAccount | undefined;
|
|
331
|
-
"max-executors"?: number | undefined;
|
|
332
|
-
"min-executor-balance"?: bigint | undefined;
|
|
333
|
-
}, {
|
|
334
|
-
entrypoints: string;
|
|
335
|
-
"safe-mode": boolean;
|
|
336
|
-
"executor-private-keys": (string | string[]) & (string | string[] | undefined);
|
|
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
|
-
"bundle-bulker-address"?: string | undefined;
|
|
363
|
-
"per-op-inflator-address"?: string | undefined;
|
|
364
|
-
"send-transaction-rpc-url"?: string | undefined;
|
|
365
|
-
"max-block-range"?: number | undefined;
|
|
366
|
-
timeout?: number | undefined;
|
|
367
|
-
websocket?: boolean | undefined;
|
|
368
|
-
"websocket-max-payload-size"?: number | undefined;
|
|
369
|
-
"public-client-log-level"?: "error" | "info" | "debug" | "fatal" | "warn" | "trace" | undefined;
|
|
370
|
-
"wallet-client-log-level"?: "error" | "info" | "debug" | "fatal" | "warn" | "trace" | undefined;
|
|
371
|
-
"rpc-log-level"?: "error" | "info" | "debug" | "fatal" | "warn" | "trace" | undefined;
|
|
372
|
-
"mempool-log-level"?: "error" | "info" | "debug" | "fatal" | "warn" | "trace" | undefined;
|
|
373
|
-
"executor-log-level"?: "error" | "info" | "debug" | "fatal" | "warn" | "trace" | undefined;
|
|
374
|
-
"reputation-manager-log-level"?: "error" | "info" | "debug" | "fatal" | "warn" | "trace" | undefined;
|
|
375
|
-
"nonce-queuer-log-level"?: "error" | "info" | "debug" | "fatal" | "warn" | "trace" | undefined;
|
|
376
|
-
"api-version"?: string | undefined;
|
|
377
|
-
"default-api-version"?: "v1" | "v2" | undefined;
|
|
378
|
-
"fixed-gas-limit-for-estimation"?: string | undefined;
|
|
379
|
-
"entrypoint-simulation-contract"?: unknown;
|
|
380
|
-
"utility-private-key"?: string | undefined;
|
|
381
|
-
"max-executors"?: number | undefined;
|
|
382
|
-
"min-executor-balance"?: string | undefined;
|
|
383
|
-
"gas-price-bump"?: string | undefined;
|
|
384
|
-
"mempool-max-parallel-ops"?: number | undefined;
|
|
385
|
-
"mempool-max-queued-ops"?: number | undefined;
|
|
386
|
-
"enforce-unique-senders-per-bundle"?: boolean | undefined;
|
|
387
|
-
"max-gas-per-bundle"?: string | undefined;
|
|
388
|
-
}>;
|
|
389
|
-
export type IOptions = z.infer<typeof optionArgsSchema>;
|
|
390
|
-
export type IOptionsInput = z.input<typeof optionArgsSchema>;
|
|
391
|
-
//# sourceMappingURL=bundler.d.ts.map
|