diff --git a/packages/cli/package.json b/packages/cli/package.json index 20cd00f4..229ea8ca 100644 --- a/packages/cli/package.json +++ b/packages/cli/package.json @@ -7,7 +7,13 @@ "license": "GPL-3.0-or-later", "main": "lib/index.js", "types": "lib/index.d.ts", - "files": ["lib/**/*.d.ts", "lib/**/*.js", "lib/**/*.js.map", "*.d.ts", "*.js"], + "files": [ + "lib/**/*.d.ts", + "lib/**/*.js", + "lib/**/*.js.map", + "*.d.ts", + "*.js" + ], "scripts": { "build": "tsc -p ./tsconfig.build.json", "test": "test -d test && mocha test/**/*.test.ts --exit || echo 'No test folder found. Skipping tests.'", @@ -23,7 +29,7 @@ "@types/node": "^18.16.3", "dotenv": "^16.0.3", "prom-client": "^14.2.0", - "viem": "^1.19.1", + "viem": "^1.10.8", "yargs": "^17.7.1", "zod-validation-error": "^1.3.0", "zod": "^3.21.4" diff --git a/packages/executor/package.json b/packages/executor/package.json index bbe6fe85..a71c4baf 100644 --- a/packages/executor/package.json +++ b/packages/executor/package.json @@ -7,7 +7,13 @@ "license": "GPL-3.0-or-later", "main": "lib/index.js", "types": "lib/index.d.ts", - "files": ["lib/**/*.d.ts", "lib/**/*.js", "lib/**/*.js.map", "*.d.ts", "*.js"], + "files": [ + "lib/**/*.d.ts", + "lib/**/*.js", + "lib/**/*.js.map", + "*.d.ts", + "*.js" + ], "scripts": { "build": "tsc -p ./tsconfig.build.json", "test": "test -d test && mocha test/**/*.test.ts --exit || echo 'No test folder found. Skipping tests.'", @@ -23,7 +29,7 @@ "@alto/mempool": "*", "@types/node": "^18.16.3", "async-mutex": "^0.4.0", - "viem": "^1.19.1", + "viem": "^1.10.8", "zod-validation-error": "^1.3.0", "prom-client": "^14.2.0" } diff --git a/packages/mempool/package.json b/packages/mempool/package.json index cc0c1353..3143a38a 100644 --- a/packages/mempool/package.json +++ b/packages/mempool/package.json @@ -7,7 +7,13 @@ "license": "GPL-3.0-or-later", "main": "lib/index.js", "types": "lib/index.d.ts", - "files": ["lib/**/*.d.ts", "lib/**/*.js", "lib/**/*.js.map", "*.d.ts", "*.js"], + "files": [ + "lib/**/*.d.ts", + "lib/**/*.js", + "lib/**/*.js.map", + "*.d.ts", + "*.js" + ], "scripts": { "build": "tsc -p ./tsconfig.build.json", "test": "test -d test && mocha test/**/*.test.ts || echo 'No test folder found. Skipping tests.'", @@ -18,7 +24,7 @@ "@alto/types": "*", "@alto/utils": "*", "async-mutex": "^0.4.0", - "viem": "^1.19.1", + "viem": "^1.10.8", "prom-client": "^14.2.0" } } diff --git a/packages/rpc/package.json b/packages/rpc/package.json index 9fff4c9e..a53026cf 100644 --- a/packages/rpc/package.json +++ b/packages/rpc/package.json @@ -7,7 +7,13 @@ "license": "GPL-3.0-or-later", "main": "lib/index.js", "types": "lib/index.d.ts", - "files": ["lib/**/*.d.ts", "lib/**/*.js", "lib/**/*.js.map", "*.d.ts", "*.js"], + "files": [ + "lib/**/*.d.ts", + "lib/**/*.js", + "lib/**/*.js.map", + "*.d.ts", + "*.js" + ], "scripts": { "build": "tsc -p ./tsconfig.build.json", "test": "test -d test && mocha test/**/*.test.ts --exit || echo 'No test folder found. Skipping tests.'", @@ -24,7 +30,7 @@ "fastify-cors": "3.0.3", "pino-http": "^8.3.3", "prom-client": "^14.2.0", - "viem": "^1.19.1", + "viem": "^1.10.8", "zod": "^3.21.4", "zod-validation-error": "^1.3.0" } diff --git a/packages/rpc/src/vatidation/validator.ts b/packages/rpc/src/vatidation/validator.ts index d248e3a7..7c134b17 100644 --- a/packages/rpc/src/vatidation/validator.ts +++ b/packages/rpc/src/vatidation/validator.ts @@ -33,12 +33,14 @@ async function simulateTenderlyCall(publicClient: PublicClient, params: any) { const parsedObject = z .object({ cause: z.object({ - data: hexDataSchema + data: z.object({ + data: hexDataSchema + }) }) }) .parse(response) - return parsedObject.cause.data + return parsedObject.cause.data.data } async function getSimulationResult( diff --git a/packages/types/package.json b/packages/types/package.json index 6415a384..5956ac03 100644 --- a/packages/types/package.json +++ b/packages/types/package.json @@ -7,7 +7,13 @@ "license": "GPL-3.0-or-later", "main": "lib/index.js", "types": "lib/index.d.ts", - "files": ["lib/**/*.d.ts", "lib/**/*.js", "lib/**/*.js.map", "*.d.ts", "*.js"], + "files": [ + "lib/**/*.d.ts", + "lib/**/*.js", + "lib/**/*.js.map", + "*.d.ts", + "*.js" + ], "scripts": { "build": "tsc -p ./tsconfig.build.json", "test": "test -d test && mocha test/**/*.test.ts --exit || echo 'No test folder found. Skipping tests.'", @@ -16,7 +22,7 @@ }, "dependencies": { "abitype": "^0.8.0", - "viem": "^1.19.1", + "viem": "^1.10.8", "zod": "^3.21.4" } } diff --git a/packages/utils/package.json b/packages/utils/package.json index b27b535c..a2446a90 100644 --- a/packages/utils/package.json +++ b/packages/utils/package.json @@ -7,7 +7,13 @@ "license": "GPL-3.0-or-later", "main": "lib/index.js", "types": "lib/index.d.ts", - "files": ["lib/**/*.d.ts", "lib/**/*.js", "lib/**/*.js.map", "*.d.ts", "*.js"], + "files": [ + "lib/**/*.d.ts", + "lib/**/*.js", + "lib/**/*.js.map", + "*.d.ts", + "*.js" + ], "scripts": { "build": "tsc -p ./tsconfig.build.json", "test": "test -d test && mocha test/**/*.test.ts --exit || echo 'No test folder found. Skipping tests.'", @@ -24,7 +30,7 @@ "pino-loki": "^2.1.3", "pino-pretty": "^10.0.0", "prom-client": "^14.2.0", - "viem": "^1.19.1", + "viem": "^1.10.8", "zod-validation-error": "^1.3.0" } -} +} \ No newline at end of file