diff --git a/lerna.json b/lerna.json index ddc64551..f9dee9e7 100644 --- a/lerna.json +++ b/lerna.json @@ -4,7 +4,7 @@ ], "npmClient": "yarn", "useWorkspaces": true, - "version": "0.0.22", + "version": "0.0.23", "stream": "true", "command": { "version": { diff --git a/package.json b/package.json index 4756ba0e..f6877166 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "root", "private": true, - "version": "0.0.22", + "version": "0.0.23", "engines": { "node": ">=18.0.0" }, diff --git a/packages/api/package.json b/packages/api/package.json index 80317ed9..b3a0d552 100644 --- a/packages/api/package.json +++ b/packages/api/package.json @@ -1,6 +1,6 @@ { "name": "api", - "version": "0.0.22", + "version": "0.0.23", "description": "The API module of Etherspot bundler client", "author": "Etherspot", "homepage": "https://https://github.com/etherspot/skandha#readme", @@ -35,12 +35,12 @@ "class-transformer": "0.5.1", "class-validator": "0.14.0", "ethers": "5.7.2", - "executor": "^0.0.22", + "executor": "^0.0.23", "fastify": "4.14.1", "pino": "8.11.0", "pino-pretty": "10.0.0", "reflect-metadata": "0.1.13", - "types": "^0.0.22" + "types": "^0.0.23" }, "devDependencies": { "@types/connect": "3.4.35" diff --git a/packages/cli/package.json b/packages/cli/package.json index c39f713d..64f5dd1d 100644 --- a/packages/cli/package.json +++ b/packages/cli/package.json @@ -1,6 +1,6 @@ { "name": "cli", - "version": "0.0.22", + "version": "0.0.23", "description": "> TODO: description", "author": "zincoshine ", "homepage": "https://https://github.com/etherspot/skandha#readme", @@ -31,13 +31,13 @@ "url": "https://https://github.com/etherspot/skandha/issues" }, "dependencies": { - "api": "^0.0.22", - "db": "^0.0.22", - "executor": "^0.0.22", + "api": "^0.0.23", + "db": "^0.0.23", + "executor": "^0.0.23", "find-up": "5.0.0", "got": "12.5.3", "js-yaml": "4.1.0", - "types": "^0.0.22", + "types": "^0.0.23", "yargs": "17.6.2" }, "devDependencies": { diff --git a/packages/cli/src/cmds/start/handler.ts b/packages/cli/src/cmds/start/handler.ts index b09fd032..37b79619 100644 --- a/packages/cli/src/cmds/start/handler.ts +++ b/packages/cli/src/cmds/start/handler.ts @@ -55,11 +55,11 @@ export async function bundlerHandler( if (testingMode) { db = new LocalDbController(getNamespaceByValue(Namespace.userOps)); } else { - const dbPath = resolve(dataDir, "db"); + const dbPath = resolve(dataDir); mkdir(dbPath); db = new RocksDbController( - resolve(dataDir, "db"), + resolve(dataDir), getNamespaceByValue(Namespace.userOps) ); await db.start(); diff --git a/packages/cli/src/options/globalOptions.ts b/packages/cli/src/options/globalOptions.ts index 59b7e049..045b8c18 100644 --- a/packages/cli/src/options/globalOptions.ts +++ b/packages/cli/src/options/globalOptions.ts @@ -1,3 +1,4 @@ +import { resolve } from "node:path"; import { ICliCommandOptions } from "../util"; import { IApiArgs, options as apiOptions } from "./bundlerOptions/api"; @@ -13,7 +14,7 @@ const globalSingleOptions: ICliCommandOptions = { dataDir: { description: "Bundler root data directory", type: "string", - default: process.cwd(), + default: resolve(process.cwd(), "db"), demandOption: false, }, diff --git a/packages/db/package.json b/packages/db/package.json index 87e5c91e..1bbd0db7 100644 --- a/packages/db/package.json +++ b/packages/db/package.json @@ -1,6 +1,6 @@ { "name": "db", - "version": "0.0.22", + "version": "0.0.23", "description": "The DB module of Etherspot bundler client", "author": "Etherspot", "homepage": "https://github.com/etherspot/etherspot-bundler#readme", @@ -37,6 +37,6 @@ "devDependencies": { "@types/rocksdb": "3.0.1", "prettier": "^2.8.4", - "types": "^0.0.22" + "types": "^0.0.23" } } diff --git a/packages/executor/package.json b/packages/executor/package.json index 8965892e..fcdae65a 100644 --- a/packages/executor/package.json +++ b/packages/executor/package.json @@ -1,6 +1,6 @@ { "name": "executor", - "version": "0.0.22", + "version": "0.0.23", "description": "The Relayer module of Etherspot bundler client", "author": "Etherspot", "homepage": "https://https://github.com/etherspot/skandha#readme", @@ -33,7 +33,7 @@ "dependencies": { "async-mutex": "0.4.0", "ethers": "5.7.2", - "params": "^0.0.22", - "types": "^0.0.22" + "params": "^0.0.23", + "types": "^0.0.23" } } diff --git a/packages/executor/src/config.ts b/packages/executor/src/config.ts index 1f1274ea..656ce446 100644 --- a/packages/executor/src/config.ts +++ b/packages/executor/src/config.ts @@ -128,7 +128,7 @@ const bundlerDefaultConfigs: BundlerConfig = { const NETWORKS_ENV = (): string[] | undefined => { const networks = process.env["SKANDHA_NETWORKS"]; if (networks) { - return networks.toLowerCase().replace(/ /g, "").split(","); + return networks.replace(/ /g, "").split(","); } return undefined; }; diff --git a/packages/params/package.json b/packages/params/package.json index ad5b8530..5e03a9d6 100644 --- a/packages/params/package.json +++ b/packages/params/package.json @@ -1,6 +1,6 @@ { "name": "params", - "version": "0.0.22", + "version": "0.0.23", "description": "Various bundler parameters", "author": "Etherspot", "homepage": "https://github.com/etherspot/skandha#readme", @@ -24,7 +24,7 @@ "@arbitrum/sdk": "3.1.4", "@eth-optimism/sdk": "3.0.0", "ethers": "5.7.2", - "types": "^0.0.22" + "types": "^0.0.23" }, "scripts": { "clean": "rm -rf lib && rm -f *.tsbuildinfo", diff --git a/packages/types/package.json b/packages/types/package.json index f81f8a30..0044a265 100644 --- a/packages/types/package.json +++ b/packages/types/package.json @@ -1,6 +1,6 @@ { "name": "types", - "version": "0.0.22", + "version": "0.0.23", "description": "The types of Etherspot bundler client", "author": "Etherspot", "homepage": "https://https://github.com/etherspot/skandha#readme",