From a767b75aebcdfc5a976b9ab081cc91fb370754bd Mon Sep 17 00:00:00 2001 From: prathamesh0 Date: Wed, 30 Aug 2023 14:40:02 +0530 Subject: [PATCH] Fix fixturenet subgraph deployment commands and instructions --- ...mpose-fixturenet-sushiswap-subgraph-v3.yml | 2 +- .../fixturenet-sushiswap-subgraph/README.md | 22 ++++++++++--------- 2 files changed, 13 insertions(+), 11 deletions(-) diff --git a/app/data/compose/docker-compose-fixturenet-sushiswap-subgraph-v3.yml b/app/data/compose/docker-compose-fixturenet-sushiswap-subgraph-v3.yml index 439190c3..acdf47ed 100644 --- a/app/data/compose/docker-compose-fixturenet-sushiswap-subgraph-v3.yml +++ b/app/data/compose/docker-compose-fixturenet-sushiswap-subgraph-v3.yml @@ -11,7 +11,7 @@ services: environment: - APP=v3 - NETWORK=lotus-fixturenet - command: ["bash", "-c", "./blocks/run-blocks.sh && ./v3/run-v3.sh"] + command: ["bash", "-c", "./v3/run-v3.sh && ./blocks/run-blocks.sh"] working_dir: /app/subgraphs volumes: - ../config/fixturenet-sushiswap-subgraph-v3/lotus-fixturenet.js.template:/app/config/lotus-fixturenet.js.template diff --git a/app/data/stacks/fixturenet-sushiswap-subgraph/README.md b/app/data/stacks/fixturenet-sushiswap-subgraph/README.md index 29ed6269..17b07635 100644 --- a/app/data/stacks/fixturenet-sushiswap-subgraph/README.md +++ b/app/data/stacks/fixturenet-sushiswap-subgraph/README.md @@ -41,6 +41,8 @@ NETWORK=lotus-fixturenet ETH_RPC_ENDPOINT=http://lotus-node-1:1234/rpc/v1 ``` +Uncomment the dependency on `lotus-node-1` in the [graph-node compose file](../../compose/docker-compose-graph-node.yml) + Deploy the stack: ```bash @@ -66,19 +68,19 @@ After all services have started: # . # . # sushigraph-sushiswap-subgraph-v3-1 | - Deploying to Graph node http://graph-node:8020/ + # sushigraph-sushiswap-subgraph-v3-1 | Deployed to http://graph-node:8000/subgraphs/name/sushiswap/v3-lotus/graphql + # sushigraph-sushiswap-subgraph-v3-1 | + # sushigraph-sushiswap-subgraph-v3-1 | + # sushigraph-sushiswap-subgraph-v3-1 | Subgraph endpoints: + # sushigraph-sushiswap-subgraph-v3-1 | Queries (HTTP): http://graph-node:8000/subgraphs/name/sushiswap/v3-lotus + # . + # . + # sushigraph-sushiswap-subgraph-v3-1 | - Deploying to Graph node http://graph-node:8020/ # sushigraph-sushiswap-subgraph-v3-1 | Deployed to http://graph-node:8000/subgraphs/name/sushiswap/blocks/graphql # sushigraph-sushiswap-subgraph-v3-1 | # sushigraph-sushiswap-subgraph-v3-1 | # sushigraph-sushiswap-subgraph-v3-1 | Subgraph endpoints: # sushigraph-sushiswap-subgraph-v3-1 | Queries (HTTP): http://graph-node:8000/subgraphs/name/sushiswap/blocks - # . - # . - # sushigraph-sushiswap-subgraph-v3-1 | - Deploying to Graph node http://graph-node:8020/ - # sushigraph-sushiswap-subgraph-v3-1 | Deployed to http://graph-node:8000/subgraphs/name/sushiswap/v3-filecoin/graphql - # sushigraph-sushiswap-subgraph-v3-1 | - # sushigraph-sushiswap-subgraph-v3-1 | - # sushigraph-sushiswap-subgraph-v3-1 | Subgraph endpoints: - # sushigraph-sushiswap-subgraph-v3-1 | Queries (HTTP): http://graph-node:8000/subgraphs/name/sushiswap/v3-filecoin # sushigraph-sushiswap-subgraph-v3-1 | # sushigraph-sushiswap-subgraph-v3-1 | # sushigraph-sushiswap-subgraph-v3-1 | Done @@ -95,7 +97,7 @@ laconic-so --stack fixturenet-sushiswap-subgraph deploy --cluster sushigraph por http://127.0.0.1:/subgraphs/name/sushiswap/blocks/graphql # v3 subgraph endpoint: -http://127.0.0.1:/subgraphs/name/sushiswap/v3-filecoin/graphql +http://127.0.0.1:/subgraphs/name/sushiswap/v3-lotus/graphql ``` ## Run @@ -128,7 +130,7 @@ http://127.0.0.1:/subgraphs/name/sushiswap/v3-filecoin/graphql export POOL_ADDRESS= ``` -* Initialize pool: +* Initialize the pool: ```bash docker exec -it sushigraph-sushiswap-v3-core-1 pnpm run pool:initialize:docker --sqrt-price 4295128939 --pool $POOL_ADDRESS