From 79bc3b21fa1a491abea598016d2d1a2e1038b256 Mon Sep 17 00:00:00 2001 From: Le-Caignec Date: Tue, 1 Jul 2025 12:07:38 +0200 Subject: [PATCH 1/2] fix: standardize naming for dataProtector-v2 in test-utils and package.json --- packages/sdk/tests/test-utils.ts | 4 ++-- packages/subgraph/package.json | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/packages/sdk/tests/test-utils.ts b/packages/sdk/tests/test-utils.ts index 94aee1693..e3b57dfad 100644 --- a/packages/sdk/tests/test-utils.ts +++ b/packages/sdk/tests/test-utils.ts @@ -51,8 +51,8 @@ export const getTestConfig = ( : 'http://127.0.0.1:8080', ipfsNode: process.env.DRONE ? 'http://ipfs:5001' : 'http://127.0.0.1:5001', subgraphUrl: process.env.DRONE - ? 'http://graphnode:8000/subgraphs/name/bellecour/DataProtector-v2' - : 'http://127.0.0.1:8000/subgraphs/name/bellecour/DataProtector-v2', + ? 'http://graphnode:8000/subgraphs/name/bellecour/dataProtector-v2' + : 'http://127.0.0.1:8000/subgraphs/name/bellecour/dataProtector-v2', }; return [ethProvider, options]; }; diff --git a/packages/subgraph/package.json b/packages/subgraph/package.json index a3802ea2a..02e4c6d2b 100644 --- a/packages/subgraph/package.json +++ b/packages/subgraph/package.json @@ -1,13 +1,13 @@ { - "name": "DataProtector-v2", + "name": "dataProtector-v2", "version": "3.0.0", "license": "UNLICENSED", "scripts": { "codegen": "graph codegen subgraph.template.yaml", "build": "dotenv -e .env -- sh -c 'graph codegen subgraph.template.yaml && graph build subgraph.template.yaml --network ${NETWORK_NAME:-bellecour}'", "deploy-theGraph": "graph deploy --node https://api.thegraph.com/deploy/ DataProtector", - "create": "dotenv -e .env -- sh -c 'graph create --node ${GRAPHNODE_URL:-http://localhost:8020} ${NETWORK_NAME:-bellecour}${DEPLOY_ENV:-/}DataProtector-v2'", - "deploy": "dotenv -e .env -- sh -c 'graph deploy ${NETWORK_NAME:-bellecour}${DEPLOY_ENV:-/}DataProtector-v2 subgraph.template.yaml --node ${GRAPHNODE_URL:-http://localhost:8020} --ipfs ${IPFS_URL:-http://localhost:5001} --network ${NETWORK_NAME:-bellecour} --version-label ${VERSION_LABEL:-dev}'", + "create": "dotenv -e .env -- sh -c 'graph create --node ${GRAPHNODE_URL:-http://localhost:8020} ${NETWORK_NAME:-bellecour}${DEPLOY_ENV:-/}dataProtector-v2'", + "deploy": "dotenv -e .env -- sh -c 'graph deploy ${NETWORK_NAME:-bellecour}${DEPLOY_ENV:-/}dataProtector-v2 subgraph.template.yaml --node ${GRAPHNODE_URL:-http://localhost:8020} --ipfs ${IPFS_URL:-http://localhost:5001} --network ${NETWORK_NAME:-bellecour} --version-label ${VERSION_LABEL:-dev}'", "clean": "rm -rf generated && rm -rf build", "test": "npm run codegen && graph test", "all": " dotenv -e .env -- sh -c 'tsx ./test-stack/prepare-test-env.ts && npm run clean && npm run codegen && npm run build && npm run create && npm run deploy'", From acd50d06e8b3ae390a8e9e3aecab297254ddd9cf Mon Sep 17 00:00:00 2001 From: Le-Caignec Date: Tue, 1 Jul 2025 12:25:46 +0200 Subject: [PATCH 2/2] fix: standardize naming for dataProtector-v2 in getTestConfig function --- packages/sdk/tests/test-utils.ts | 4 ++-- packages/subgraph/package.json | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/packages/sdk/tests/test-utils.ts b/packages/sdk/tests/test-utils.ts index e3b57dfad..2fd9e4b3f 100644 --- a/packages/sdk/tests/test-utils.ts +++ b/packages/sdk/tests/test-utils.ts @@ -51,8 +51,8 @@ export const getTestConfig = ( : 'http://127.0.0.1:8080', ipfsNode: process.env.DRONE ? 'http://ipfs:5001' : 'http://127.0.0.1:5001', subgraphUrl: process.env.DRONE - ? 'http://graphnode:8000/subgraphs/name/bellecour/dataProtector-v2' - : 'http://127.0.0.1:8000/subgraphs/name/bellecour/dataProtector-v2', + ? 'http://graphnode:8000/subgraphs/name/bellecour/dataprotector-v2' + : 'http://127.0.0.1:8000/subgraphs/name/bellecour/dataprotector-v2', }; return [ethProvider, options]; }; diff --git a/packages/subgraph/package.json b/packages/subgraph/package.json index 02e4c6d2b..f30f84399 100644 --- a/packages/subgraph/package.json +++ b/packages/subgraph/package.json @@ -1,13 +1,13 @@ { - "name": "dataProtector-v2", + "name": "dataprotector-v2", "version": "3.0.0", "license": "UNLICENSED", "scripts": { "codegen": "graph codegen subgraph.template.yaml", "build": "dotenv -e .env -- sh -c 'graph codegen subgraph.template.yaml && graph build subgraph.template.yaml --network ${NETWORK_NAME:-bellecour}'", "deploy-theGraph": "graph deploy --node https://api.thegraph.com/deploy/ DataProtector", - "create": "dotenv -e .env -- sh -c 'graph create --node ${GRAPHNODE_URL:-http://localhost:8020} ${NETWORK_NAME:-bellecour}${DEPLOY_ENV:-/}dataProtector-v2'", - "deploy": "dotenv -e .env -- sh -c 'graph deploy ${NETWORK_NAME:-bellecour}${DEPLOY_ENV:-/}dataProtector-v2 subgraph.template.yaml --node ${GRAPHNODE_URL:-http://localhost:8020} --ipfs ${IPFS_URL:-http://localhost:5001} --network ${NETWORK_NAME:-bellecour} --version-label ${VERSION_LABEL:-dev}'", + "create": "dotenv -e .env -- sh -c 'graph create --node ${GRAPHNODE_URL:-http://localhost:8020} ${NETWORK_NAME:-bellecour}${DEPLOY_ENV:-/}dataprotector-v2'", + "deploy": "dotenv -e .env -- sh -c 'graph deploy ${NETWORK_NAME:-bellecour}${DEPLOY_ENV:-/}dataprotector-v2 subgraph.template.yaml --node ${GRAPHNODE_URL:-http://localhost:8020} --ipfs ${IPFS_URL:-http://localhost:5001} --network ${NETWORK_NAME:-bellecour} --version-label ${VERSION_LABEL:-dev}'", "clean": "rm -rf generated && rm -rf build", "test": "npm run codegen && graph test", "all": " dotenv -e .env -- sh -c 'tsx ./test-stack/prepare-test-env.ts && npm run clean && npm run codegen && npm run build && npm run create && npm run deploy'",