From 4652c798af4ce89079df17af6c5a56f6ffb4882f Mon Sep 17 00:00:00 2001 From: Walodja1987 Date: Sun, 18 Aug 2024 21:33:54 +0200 Subject: [PATCH] Update README.md --- packages/diva-subgraph/README.md | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/packages/diva-subgraph/README.md b/packages/diva-subgraph/README.md index 96c0cca5..f40c84d3 100644 --- a/packages/diva-subgraph/README.md +++ b/packages/diva-subgraph/README.md @@ -82,6 +82,8 @@ Note that the `build` command defined in the `package.json` file is based on the ### Deploying to Hosted service +>⚠️**Note:** The Hosted service has been discontinued. Deploy on the Subgraph Studio instead. + If you want to deploy the subgraph to the Hosted Service, you first need to authenticate your access to the Hosted Service by running the following command: ``` yarn graph:auth:hosted @@ -96,9 +98,13 @@ Note that unlike [deploying to the Subgraph Studio](#deploying-a-subgraph-on-the ### Deploying to Subgraph Studio -If you want to deploy the subgraph to the Subgraph Studio, you'll need to replace the `$DIVA_SUBGRAPH_STUDIO_ACCESS_TOKEN` placeholder in the `package.json` file with your Access Token. Once you've done that, run the following command to authenticate your access: +In order to deploy your subgraph, you first have to create the subgraph entity through The Graph website. + +For this, go to [Subgraph Studio](https://thegraph.com/studio/) and click "Create a Subgraph" button. Enter a name and click the "Create Subgraph" button. + +On the page you are redirected to, copy paste the Deploy key. Then replace the `$DIVA_SUBGRAPH_STUDIO_ACCESS_TOKEN` placeholder in the `package.json` file with your Deploy key. Once you've done that, run the following command to authenticate your access: ``` -graph:auth:goerli:studio +yarn graph:auth:goerli:studio ``` Then, deploy your subgraph by running: