Skip to content

Commit

Permalink
Add more context on SpS (#497)
Browse files Browse the repository at this point in the history
  • Loading branch information
enoldev authored Jun 17, 2024
1 parent 5a1890c commit eeeb215
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
7 changes: 6 additions & 1 deletion docs/new/consume/subgraph/subgraph.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@ It is possible to the send data the of a Substreams to a subgraph, thus creating
There are two ways of making Substreams interact with subgraphs:
- Create a special [graph_out module](./graph-out.md) that emits an [EntityChanges](https://github.com/streamingfast/substreams-sink-entity-changes/blob/develop/proto/sf/substreams/sink/entity/v1/entity.proto#L11) Protobuf.
The subgraph will read the `EntityChanges` object and consume the data.
- Use the [**Substreams triggers**](./triggers.md) to consume Substreams Protobuf inside your subgraph.
- Use the [**Substreams triggers**](./triggers.md) to consume Substreams Protobuf directly inside your subgraph.

## What Option To Use
Both are valid options depending on the use case:
- Use the `graph_out` module is if your logic is entirely in the Substreams Rust code. You will create the subgraph entities in the Substreams and the subgraph will only read them.
- Use the **Substreams triggers** if you want to use Substreams as an extraction layer for the data, but the logic of your application will be in the subgraph AssemblyScript code.

<figure><img src="../../../.gitbook/assets/consume/service-subgraph.png" width="100%" /></figure>
1 change: 1 addition & 0 deletions docs/new/references/chains-and-endpoints.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ Protobuf definitions and public endpoints are provided for the supported protoco
* **Arweave Mainnet**: `mainnet.arweave.streamingfast.io:443`
* **Bitcoin Mainnet**: `mainnet.btc.streamingfast.io:443`
* **Injective Mainnet**: `mainnet.injective.streamingfast.io:443`
* **Injective Testnet**: `testnet.injective.streamingfast.io:443`

## Community Endpoints

Expand Down

0 comments on commit eeeb215

Please sign in to comment.