Skip to content

Commit ea80dbc

Browse files
ran prettier
1 parent f9c6e3b commit ea80dbc

3 files changed

Lines changed: 31 additions & 31 deletions

File tree

website/src/pages/en/subgraphs/existing-subgraphs/standard-subgraphs.mdx

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ title: Standardized Subgraphs
44

55
## Overview
66

7-
**Standardized Subgraphs** are a family of open, reusable GraphQL schemas that normalize on-chain data across every protocol of the same type. Rather than each protocol exposing its own bespoke schema with its own terminology, every Subgraph built to a standard exposes the *same* entities, fields, and metrics, so a single set of queries works across all of them.
7+
**Standardized Subgraphs** are a family of open, reusable GraphQL schemas that normalize on-chain data across every protocol of the same type. Rather than each protocol exposing its own bespoke schema with its own terminology, every Subgraph built to a standard exposes the _same_ entities, fields, and metrics, so a single set of queries works across all of them.
88

99
The most widely adopted set of these schemas was created by [Messari](https://messari.io/), the core subgraph dev that builds and maintains standardized schemas for the major DeFi and web3 protocol categories on top of The Graph. Each schema extracts raw blockchain data and transforms it into meaningful, comparable metrics for products and analytics.
1010

@@ -20,35 +20,35 @@ The most widely adopted set of these schemas was created by [Messari](https://me
2020

2121
**Predictable versioning.** Schemas follow [semantic versioning](https://semver.org/) strictly, and each Subgraph embeds three separate version fields on its `Protocol` entity so different stakeholders can track what they care about:
2222

23-
| Field | Who it's for | What it tracks |
24-
| -------------------- | ------------------- | ------------------------------------------------------------------------------ |
25-
| `schemaVersion` | Data consumers | Which version of the shared schema the Subgraph implements; signals breaking changes. |
26-
| `subgraphVersion` | subgraph developers | The implementation version; refactors bump this with no impact on consumers. |
27-
| `methodologyVersion` | Data consumers | How metrics are calculated, so consumers can diff against methodology changes. |
23+
| Field | Who it's for | What it tracks |
24+
| --- | --- | --- |
25+
| `schemaVersion` | Data consumers | Which version of the shared schema the Subgraph implements; signals breaking changes. |
26+
| `subgraphVersion` | subgraph developers | The implementation version; refactors bump this with no impact on consumers. |
27+
| `methodologyVersion` | Data consumers | How metrics are calculated, so consumers can diff against methodology changes. |
2828

2929
## The Schemas
3030

3131
The standardized schemas each cover one protocol category. Every schema shares a common backbone (`Token`, `Protocol`, pools or markets, daily and hourly snapshots for time-series data, and standardized revenue and usage metrics) while adding the entities specific to its domain.
3232

33-
| Schema | Version | What it covers |
34-
| ------------------------- | ------- | ------------------------------------------------------------------------------------------------------------------------- |
35-
| **Generic** | 3.0.0 | The base template that all schemas build on. Defines `Token`, `Protocol`, `Pool`, `Account`, and the standard usage and financial snapshots. A good fit for protocols that don't map cleanly onto a more specific category. |
36-
| **DEX AMM** | 1.3.2 | Automated market maker exchanges. Models `LiquidityPool`, `Swap`, `Deposit`, and `Withdraw` events, pool fees, and reward tokens. |
37-
| **DEX AMM (Extended)** | 4.0.1 | AMMs with concentrated liquidity (e.g. Uniswap v3). Adds `Tick`, `Position`, and `PositionSnapshot` entities on top of the DEX AMM model. |
38-
| **DEX Aggregator** | 1.0.2 | Trade aggregators that route across venues. Models `VirtualPool`, per-token daily snapshots, and `Swap` activity. |
39-
| **Lending / CDP** | 3.1.0 | Lending, borrowing, and collateralized debt position protocols. Models `Market`, `Position`, `InterestRate`, and the full set of lending events: `Deposit`, `Withdraw`, `Borrow`, `Repay`, `Liquidate`, `Transfer`, and `Flashloan`. |
40-
| **Yield Aggregator** | 1.3.1 | Vaults and yield optimizers. Models `Vault`, `VaultFee`, `Deposit`, and `Withdraw`, with reward-token accounting. |
41-
| **NFT Marketplace** | 2.1.0 | NFT trading venues. Models `Marketplace`, `Collection`, and `Trade`, with support for multiple NFT standards and sale strategies. |
42-
| **Network** | 1.2.0 | Layer-1 and layer-2 chain-level metrics. Models `Block`, `Author`, and `Chunk` with network-wide daily and hourly stats. |
43-
| **Bridge** | 1.2.0 | Cross-chain bridges. Models `Pool`, `PoolRoute`, `CrosschainToken`, `BridgeTransfer`, and `BridgeMessage` to track liquidity and value moving across chains. |
33+
| Schema | Version | What it covers |
34+
| --- | --- | --- |
35+
| **Generic** | 3.0.0 | The base template that all schemas build on. Defines `Token`, `Protocol`, `Pool`, `Account`, and the standard usage and financial snapshots. A good fit for protocols that don't map cleanly onto a more specific category. |
36+
| **DEX AMM** | 1.3.2 | Automated market maker exchanges. Models `LiquidityPool`, `Swap`, `Deposit`, and `Withdraw` events, pool fees, and reward tokens. |
37+
| **DEX AMM (Extended)** | 4.0.1 | AMMs with concentrated liquidity (e.g. Uniswap v3). Adds `Tick`, `Position`, and `PositionSnapshot` entities on top of the DEX AMM model. |
38+
| **DEX Aggregator** | 1.0.2 | Trade aggregators that route across venues. Models `VirtualPool`, per-token daily snapshots, and `Swap` activity. |
39+
| **Lending / CDP** | 3.1.0 | Lending, borrowing, and collateralized debt position protocols. Models `Market`, `Position`, `InterestRate`, and the full set of lending events: `Deposit`, `Withdraw`, `Borrow`, `Repay`, `Liquidate`, `Transfer`, and `Flashloan`. |
40+
| **Yield Aggregator** | 1.3.1 | Vaults and yield optimizers. Models `Vault`, `VaultFee`, `Deposit`, and `Withdraw`, with reward-token accounting. |
41+
| **NFT Marketplace** | 2.1.0 | NFT trading venues. Models `Marketplace`, `Collection`, and `Trade`, with support for multiple NFT standards and sale strategies. |
42+
| **Network** | 1.2.0 | Layer-1 and layer-2 chain-level metrics. Models `Block`, `Author`, and `Chunk` with network-wide daily and hourly stats. |
43+
| **Bridge** | 1.2.0 | Cross-chain bridges. Models `Pool`, `PoolRoute`, `CrosschainToken`, `BridgeTransfer`, and `BridgeMessage` to track liquidity and value moving across chains. |
4444
| **Derivatives (Perpetual Futures)** | 1.3.4 | Perpetual futures venues. Models `LiquidityPool`, `Position`, `CollateralIn` and `CollateralOut`, `Borrow`, `Swap`, and `Liquidate`. |
45-
| **Derivatives (Options)** | 1.3.2 | On-chain options protocols. Models `LiquidityPool`, `Position`, and `Option`, with call and put option typing. |
45+
| **Derivatives (Options)** | 1.3.2 | On-chain options protocols. Models `LiquidityPool`, `Position`, and `Option`, with call and put option typing. |
4646

4747
## Shared Design Principles
4848

4949
Because the schemas are meant to be consumed the same way regardless of protocol, they follow a consistent set of conventions.
5050

51-
**Three ways to read quantitative data.** You can query an entity directly for *real-time* values (e.g. `totalValueLockedUSD` on a `Pool`), use [time-travel queries](https://thegraph.com/docs/en/subgraphs/querying/graphql-api/#time-travel-queries) for *point-in-time* historical values, or query the snapshot entities for *time-series* data (e.g. `PoolDailySnapshot`).
51+
**Three ways to read quantitative data.** You can query an entity directly for _real-time_ values (e.g. `totalValueLockedUSD` on a `Pool`), use [time-travel queries](https://thegraph.com/docs/en/subgraphs/querying/graphql-api/#time-travel-queries) for _point-in-time_ historical values, or query the snapshot entities for _time-series_ data (e.g. `PoolDailySnapshot`).
5252

5353
**Standardized financial metrics.** Revenue is split consistently across every schema:
5454

website/src/pages/en/substreams/providers/the-graph-market.mdx

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -49,13 +49,13 @@ Replace `<YOUR-JWT-TOKEN>` with the API token you copied from The Graph Market.
4949

5050
Substreams runs against a provider endpoint for your target network, passed to the CLI with the `-e` flag. Endpoints follow the pattern `{network}.{provider}.io:443`. A few examples:
5151

52-
| Network | Endpoint |
53-
| --- | --- |
54-
| Ethereum Mainnet | `mainnet.eth.streamingfast.io:443` |
55-
| Solana Mainnet | `mainnet.sol.streamingfast.io:443` |
56-
| Base Mainnet | `base-mainnet.streamingfast.io:443` |
57-
| Arbitrum One | `arb-one.streamingfast.io:443` |
58-
| Polygon Mainnet | `polygon.streamingfast.io:443` |
52+
| Network | Endpoint |
53+
| ---------------- | ----------------------------------- |
54+
| Ethereum Mainnet | `mainnet.eth.streamingfast.io:443` |
55+
| Solana Mainnet | `mainnet.sol.streamingfast.io:443` |
56+
| Base Mainnet | `base-mainnet.streamingfast.io:443` |
57+
| Arbitrum One | `arb-one.streamingfast.io:443` |
58+
| Polygon Mainnet | `polygon.streamingfast.io:443` |
5959

6060
> Note: Select your network on The Graph Market to see the providers and endpoints available for it. For the full, up-to-date list, see [Chains & Endpoints](https://docs.substreams.dev/reference-material/chain-support/chains-and-endpoints) on the Substreams docs.
6161

website/src/pages/en/substreams/public-substreams/substreams-dev.mdx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,12 @@ The goal of this page is to help **data consumers** answer a single question: _"
2424

2525
Substreams.dev is organized into four primary areas, each answering a different discovery question. The sections below walk through each one in the order you'd typically use them.
2626

27-
| Area | Discovery question it answers |
28-
| --- | --- |
29-
| **Datasets** | "What kind of data am I looking for?" (browse by use case) |
27+
| Area | Discovery question it answers |
28+
| ------------ | -------------------------------------------------------------- |
29+
| **Datasets** | "What kind of data am I looking for?" (browse by use case) |
3030
| **Packages** | "Which specific package produces it, and what does it output?" |
31-
| **Chains** | "What's available on the network I care about?" |
32-
| **Projects** | "How have others put this data to use?" |
31+
| **Chains** | "What's available on the network I care about?" |
32+
| **Projects** | "How have others put this data to use?" |
3333

3434
### Datasets
3535

0 commit comments

Comments
 (0)