Skip to content

Commit

Permalink
feat: move auth docs in subgraph development page
Browse files Browse the repository at this point in the history
  • Loading branch information
razgraf committed Feb 8, 2024
1 parent d64e4f8 commit a155751
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 3 deletions.
12 changes: 12 additions & 0 deletions docs/api/subgraphs/04-development.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -47,5 +47,17 @@ To deploy a new subgraph on Sepolia:

You can read more about how the The Graph works in their [official docs][the-graph-docs].

To publish on the hosted service:

1. [Authenticate](https://thegraph.com/docs/en/deploying/hosted-service/) with the hosted service credentials

```
graph auth --product hosted-service <ACCESS_TOKEN>
```

2. Generate configuration

Run `yarn deploy:<chain_name>` to generate imports, configurations and deploy in the same script.

[the-graph-auth]: https://thegraph.com/docs/en/deploying/deploying-a-subgraph-to-hosted/#store-the-access-token
[the-graph-docs]: https://thegraph.com/docs/en/
6 changes: 3 additions & 3 deletions docs/api/subgraphs/protocol/02-structure.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ sidebar_position: 2
title: "Structure"
---

We'll break down the [schema](https://github.com/sablier-labs/v2-subgraphs/blob/main/packages/core/schema.graphql) into
We'll break down the [schema](https://github.com/sablier-labs/v2-subgraphs/blob/main/apps/core/schema.graphql) into
primary and secondary entities.

| Type | Entities |
Expand Down Expand Up @@ -44,8 +44,8 @@ Based on the schema defined `ActionCategory`, the following actions will be trac
To keep all actions under the same umbrella, some details will be stored under general purpose attributes like
`amountA`, `amountB`, `addressA`, `addressB` which based on the type of action can be resolved to context-specific
values. Am example can be found
[here](https://github.com/sablier-labs/v2-subgraphs/blob/36db1f3e3c4bd2558016b948b1b284900974d8ae/packages/core/src/mappings/handle-stream.ts#L79-L82)
for the Cancel event.
[here](https://github.com/sablier-labs/v2-subgraphs/blob/main/apps/protocol/src/mappings/handle-stream.ts#L79-L82) for
the Cancel event.

---

Expand Down

0 comments on commit a155751

Please sign in to comment.