diff --git a/subgraphs/starter-example/README.md b/subgraphs/starter-example/README.md index 8488ec5..dc66f11 100644 --- a/subgraphs/starter-example/README.md +++ b/subgraphs/starter-example/README.md @@ -97,24 +97,23 @@ You can check the indexing status of the subgraph using the provided GraphQL end curl -X POST -H "Content-Type: application/json" --data '{ "query": "{ indexingStatusForCurrentVersion(subgraphName: \"your-subgraph-name\") { synced } }" }' https://testnet-thegraph.swirldslabs.com/graphql ``` -### 6. Real world examples. -We have already used this template to deploy Saucer Token subgraph on both testnet and mainnet. You can check the subgraph here: +### 6. Already deployed world example +We have already used this template to deploy `Sauce` Token subgraph on both `testnet` and `mainnet`. You can check the subgraph here: -**Subgraph name:** `saucerswap/token-transfers` +**Subgraph name:** `saucerswap/token-sauce-transfers` **Queries:** -- Testnet: https://testnet-thegraph.swirldslabs.com/subgraphs/name/hashgraph/saucerswap/token-transfers -- Mainnet: https://mainnet-thegraph.swirldslabs.com/subgraphs/name/hashgraph/saucerswap/token-transfers +- Testnet: https://testnet-thegraph.swirldslabs.com/subgraphs/name/saucerswap/token-sauce-transfers/graphql +- Mainnet: https://mainnet-thegraph.swirldslabs.com/subgraphs/name/hashgraph/saucerswap/token-sauce-transfers **Indexing Status:** - Testnet: ```bash - # Check the indexing status for saucerswap/token-transfers on testnet - curl -X POST -H "Content-Type: application/json" --data '{ "query": "{ indexingStatusForCurrentVersion(subgraphName: \"saucerswap/token-transfers\") { synced } }" }' https://testnet-thegraph.swirldslabs.com/graphql + # Check the indexing status for saucerswap/token-sauce-transfers on testnet + curl -X POST -H "Content-Type: application/json" --data '{ "query": "{ indexingStatusForCurrentVersion(subgraphName: \"saucerswap/token-sauce-transfers\") { health synced chains { chainHeadBlock { number } latestBlock { number } } } }" }' https://testnet-thegraph.swirldslabs.com/graphql | jq ``` - Mainnet: ```bash - # Check the indexing status for saucerswap/token-transfers on mainnet - curl -X POST -H "Content-Type: application/json" --data '{ "query": "{ indexingStatusForCurrentVersion(subgraphName: \"saucerswap/token-transfers\") { synced } }" }' https://mainnet-thegraph.swirldslabs.com/graphql + curl -X POST -H "Content-Type: application/json" --data '{ "query": "{ indexingStatusForCurrentVersion(subgraphName: \"saucerswap/token-sauce-transfers\") { health synced chains { chainHeadBlock { number } latestBlock { number } } } }" }' https://mainnet-thegraph.swirldslabs.com/graphql | jq ``` \ No newline at end of file diff --git a/subgraphs/starter-example/package.json b/subgraphs/starter-example/package.json index 02e7190..533c4f8 100644 --- a/subgraphs/starter-example/package.json +++ b/subgraphs/starter-example/package.json @@ -8,8 +8,8 @@ "generate": "envsub --env-file .env subgraph.template.yaml subgraph.yaml", "codegen": "graph codegen", "build": "graph build", - "create": "source .env && graph create --node ${ARKHIA_SUBGRAPH_URL}/${ARKHIA_API_KEY} ${SUBGRAPH_NAME}", - "deploy": "source .env && graph deploy --node ${ARKHIA_SUBGRAPH_URL}/${ARKHIA_API_KEY} --ipfs ${ARKHIA_IPFS_URL}/${ARKHIA_API_KEY} ${SUBGRAPH_NAME}", + "create": "source .env && graph create --node ${HEDERA_THE_GRAPH_NODE} ${SUBGRAPH_NAME} --access-token ${ACCESS_TOKEN}", + "deploy": "source .env && graph deploy --node ${HEDERA_THE_GRAPH_NODE} --ipfs ${IPFS_URL} ${SUBGRAPH_NAME} --access-token ${ACCESS_TOKEN}", "test": "graph test" }, "author": "",