Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update DIVA Subgraph README.md #825

Merged
merged 1 commit into from
Aug 18, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions packages/diva-subgraph/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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:
Expand Down
Loading