From 6a35549af0602e7e741c27549bae53cfe265b92c Mon Sep 17 00:00:00 2001 From: Juanma Hidalgo Date: Mon, 22 Jul 2024 15:37:51 +0200 Subject: [PATCH] feat: bump graphql-server and add thegraph dialect --- commands.json | 13 ++++++++++--- package-lock.json | 48 ++++++++++++++++++++++++++++++++++++++++++----- package.json | 2 +- 3 files changed, 54 insertions(+), 9 deletions(-) diff --git a/commands.json b/commands.json index d60d950..321f9c0 100644 --- a/commands.json +++ b/commands.json @@ -72,7 +72,7 @@ }, "serve": { "description": "Start the GraphQL API server", - "cmd": ["squid-graphql-server"] + "cmd": ["squid-graphql-server", "--dialect", "thegraph"] }, "serve:prod": { "description": "Start the GraphQL API server with caching and limits", @@ -85,7 +85,9 @@ "--dumb-cache-size", "100", "--dumb-cache-max-age", - "1000" + "1000", + "--dialect", + "thegraph" ] }, "check-updates": { @@ -109,7 +111,12 @@ }, "retrieve": { "description": "Retrieve factories collections in Polygon", - "cmd": ["npx", "--yes", "ts-node", "./src/polygon/tools/collectionsRetriever"] + "cmd": [ + "npx", + "--yes", + "ts-node", + "./src/polygon/tools/collectionsRetriever" + ] } } } diff --git a/package-lock.json b/package-lock.json index 07fd988..38f6dbd 100644 --- a/package-lock.json +++ b/package-lock.json @@ -12,7 +12,7 @@ "@subsquid/evm-codec": "^0.2.1", "@subsquid/evm-processor": "^1.19.1", "@subsquid/file-store": "^2.0.0", - "@subsquid/graphql-server": "^4.6.0", + "@subsquid/graphql-server": "^4.7.0-beta.62d187", "@subsquid/typeorm-migration": "^1.3.0", "@subsquid/typeorm-store": "^1.5.1", "dotenv": "^16.4.5", @@ -585,9 +585,9 @@ "integrity": "sha512-C89mus6IXnNi0xMQrZqUFBZwLj8tbuq9lye8Gq/lHmmERAUpi6UsWEyLdJLx2mneZzF3JtY8eNiiZ16jmjtvfw==" }, "node_modules/@subsquid/graphql-server": { - "version": "4.6.0", - "resolved": "https://registry.npmjs.org/@subsquid/graphql-server/-/graphql-server-4.6.0.tgz", - "integrity": "sha512-urQr5yLgYaPKSkCDQQ7ZwmpnYDOFfUSIKGxA7qk5LFoJlIJ+ycO4rkzb3ln29LrhSw25D3E/ZfrDlS+PFnV4ZA==", + "version": "4.7.0-beta.62d187", + "resolved": "https://registry.npmjs.org/@subsquid/graphql-server/-/graphql-server-4.7.0-beta.62d187.tgz", + "integrity": "sha512-xb5vGOJWBrchrI21jQPxBtCW7AptNP05A3IO5uv3GCBKnPHB5LPF3we3sfePVmiwS3qAGX2YOfXYGBQTS26pyg==", "dependencies": { "@apollo/utils.keyvadapter": "~1.1.2", "@apollo/utils.keyvaluecache": "~1.0.2", @@ -596,7 +596,7 @@ "@graphql-tools/utils": "^10.0.11", "@keyv/redis": "~2.5.8", "@subsquid/logger": "^1.3.3", - "@subsquid/openreader": "^4.6.0", + "@subsquid/openreader": "5.0.0-beta.62d187", "@subsquid/typeorm-config": "^4.1.1", "@subsquid/util-internal": "^3.2.0", "@subsquid/util-internal-commander": "^1.4.0", @@ -638,6 +638,43 @@ } } }, + "node_modules/@subsquid/graphql-server/node_modules/@subsquid/openreader": { + "version": "5.0.0-beta.62d187", + "resolved": "https://registry.npmjs.org/@subsquid/openreader/-/openreader-5.0.0-beta.62d187.tgz", + "integrity": "sha512-j8xWoYmWGgc0XyZLW4MM5r5hfPheZ6UnktubK8Di160nwSUmgOcXffEOsBlU5eU3TVpQ6OQ0wuj1oY+ab6XHBw==", + "dependencies": { + "@graphql-tools/merge": "^9.0.1", + "@subsquid/graphiql-console": "^0.3.0", + "@subsquid/logger": "^1.3.3", + "@subsquid/util-internal": "^3.2.0", + "@subsquid/util-internal-commander": "^1.4.0", + "@subsquid/util-internal-hex": "^1.2.2", + "@subsquid/util-internal-http-server": "^2.0.0", + "@subsquid/util-naming": "^1.3.0", + "apollo-server-core": "^3.13.0", + "apollo-server-express": "^3.13.0", + "commander": "^11.1.0", + "deep-equal": "^2.2.3", + "express": "^4.18.2", + "graphql": "^15.8.0", + "graphql-parse-resolve-info": "^4.14.0", + "graphql-ws": "^5.14.2", + "inflected": "^2.1.0", + "pg": "^8.11.3", + "ws": "^8.14.2" + }, + "bin": { + "openreader": "bin/main.js" + }, + "peerDependencies": { + "@subsquid/big-decimal": "^1.0.0" + }, + "peerDependenciesMeta": { + "@subsquid/big-decimal": { + "optional": true + } + } + }, "node_modules/@subsquid/http-client": { "version": "1.4.0", "resolved": "https://registry.npmjs.org/@subsquid/http-client/-/http-client-1.4.0.tgz", @@ -662,6 +699,7 @@ "version": "4.6.0", "resolved": "https://registry.npmjs.org/@subsquid/openreader/-/openreader-4.6.0.tgz", "integrity": "sha512-/05vSoKP3UHxU6GJYfKcfSIi4bWfzbr9x/H2wW5XxE4uc8gFeaVZHCmQMTaO9941oK//9rk9BQTH5Slhwuj7gw==", + "dev": true, "dependencies": { "@graphql-tools/merge": "^9.0.1", "@subsquid/graphiql-console": "^0.3.0", diff --git a/package.json b/package.json index c7236de..c5a09b8 100644 --- a/package.json +++ b/package.json @@ -11,7 +11,7 @@ "@subsquid/evm-codec": "^0.2.1", "@subsquid/evm-processor": "^1.19.1", "@subsquid/file-store": "^2.0.0", - "@subsquid/graphql-server": "^4.6.0", + "@subsquid/graphql-server": "^4.7.0-beta.62d187", "@subsquid/typeorm-migration": "^1.3.0", "@subsquid/typeorm-store": "^1.5.1", "dotenv": "^16.4.5",