Skip to content

Commit

Permalink
Tweaks to supported networks (#699)
Browse files Browse the repository at this point in the history
* tweaks to supported networks

* lint

* switch to "Integration type"

* ar not arweave

* lint

* lint again

* capital T

* ** outside the translated slug

* remove partiallySupportedOnNetwork

* update common

* lockfile

* latest common

* add note on CLI publishing

Co-authored-by: Idalith  <126833353+idalithb@users.noreply.github.com>

* lint

* Update dependencies

* `pnpm check:fix`

---------

Co-authored-by: Idalith <126833353+idalithb@users.noreply.github.com>
Co-authored-by: benface <benoit.rouleau@icloud.com>
  • Loading branch information
3 people committed Jun 7, 2024
1 parent 9fd9dcc commit 4884dc8
Show file tree
Hide file tree
Showing 12 changed files with 1,205 additions and 1,112 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,14 @@
"@edgeandnode/eslint-config": "^2.0.3",
"eslint": "^8.57.0",
"eslint-plugin-mdx": "^2.3.4",
"prettier": "^3.2.5",
"prettier": "^3.3.1",
"prettier-plugin-tailwindcss": "^0.6.1",
"remark-frontmatter": "^5.0.0",
"remark-lint-first-heading-level": "^3.1.2",
"remark-lint-heading-increment": "^3.1.2",
"remark-lint-no-heading-punctuation": "^3.1.2",
"remark-lint-restrict-elements": "workspace:*",
"turbo": "^1.13.3",
"turbo": "^1.13.4",
"typescript": "^5.4.5"
}
}
8 changes: 4 additions & 4 deletions packages/nextra-theme/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,12 @@
"@radix-ui/react-collapsible": "^1.0.3",
"@radix-ui/react-visually-hidden": "^1.0.3",
"lodash": "^4.17.21",
"react-intersection-observer": "^9.10.2",
"react-intersection-observer": "^9.10.3",
"react-use": "^17.5.0"
},
"devDependencies": {
"@edgeandnode/gds": "^5.15.0-sunrise-countdown-banner-1717224377798-b1bbf1b3777fe1360638f823941a169764039b97",
"@edgeandnode/go": "^6.21.0-sunrise-countdown-banner-1717224377798-b1bbf1b3777fe1360638f823941a169764039b97",
"@edgeandnode/gds": "5.15.0-sunrise-countdown-banner-1717224377798-b1bbf1b3777fe1360638f823941a169764039b97",
"@edgeandnode/go": "6.21.0-sunrise-countdown-banner-1717224377798-b1bbf1b3777fe1360638f823941a169764039b97",
"@emotion/react": "^11.11.4",
"@types/lodash": "^4.17.4",
"@types/react": "^18.3.3",
Expand All @@ -55,7 +55,7 @@
"react": "^18.3.1",
"react-dom": "^18.3.1",
"theme-ui": "^0.16.2",
"tsup": "^8.0.2"
"tsup": "^8.1.0"
},
"sideEffects": false
}
6 changes: 3 additions & 3 deletions packages/og-image/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,12 @@
"yoga-wasm-web": "0.3.3"
},
"devDependencies": {
"@cloudflare/workers-types": "^4.20240529.0",
"@cloudflare/workers-types": "^4.20240605.0",
"@types/react": "^18.3.3",
"jest-image-snapshot": "^6.4.0",
"tsx": "^4.11.0",
"tsx": "^4.13.2",
"typescript": "^5.4.5",
"vitest": "^1.6.0",
"wrangler": "^3.58.0"
"wrangler": "^3.60.0"
}
}
2,236 changes: 1,163 additions & 1,073 deletions pnpm-lock.yaml

Large diffs are not rendered by default.

10 changes: 5 additions & 5 deletions website/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@
"typecheck": "tsc --noEmit"
},
"dependencies": {
"@edgeandnode/common": "^6.8.1",
"@edgeandnode/gds": "^5.15.0-sunrise-countdown-banner-1717224377798-b1bbf1b3777fe1360638f823941a169764039b97",
"@edgeandnode/go": "^6.21.0-sunrise-countdown-banner-1717224377798-b1bbf1b3777fe1360638f823941a169764039b97",
"@edgeandnode/common": "^6.9.2",
"@edgeandnode/gds": "5.15.0-sunrise-countdown-banner-1717224377798-b1bbf1b3777fe1360638f823941a169764039b97",
"@edgeandnode/go": "6.21.0-sunrise-countdown-banner-1717224377798-b1bbf1b3777fe1360638f823941a169764039b97",
"@emotion/react": "^11.11.4",
"@graphprotocol/contracts": "6.2.1",
"@graphprotocol/nextra-theme": "workspace:*",
Expand All @@ -41,8 +41,8 @@
"fast-xml-parser": "^4.4.0",
"graphql": "^16.8.1",
"postcss": "^8.4.38",
"tailwindcss": "^3.4.3",
"tsx": "^4.11.0",
"tailwindcss": "^3.4.4",
"tsx": "^4.13.2",
"unified": "^11.0.4"
},
"nextBundleAnalysis": {
Expand Down
3 changes: 2 additions & 1 deletion website/pages/en/developing/supported-networks.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,6 @@
"chainId": "Chain ID",
"hostedService": "Hosted Service",
"subgraphStudio": "Subgraph Studio",
"decentralizedNetwork": "Decentralized Network"
"decentralizedNetwork": "Decentralized Network",
"integrationType": "Integration Type"
}
19 changes: 8 additions & 11 deletions website/pages/en/developing/supported-networks.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -9,19 +9,16 @@ export const getStaticProps = getStaticPropsForSupportedNetworks(__filename)

<SupportedNetworksTable networks={props.networks} />

\* Preliminary network support via the [upgrade Indexer](https://thegraph.com/blog/upgrade-indexer/)
&#8288;<sup>†</sup> Supports Substreams
\* Baseline network support provided by the [upgrade Indexer](https://thegraph.com/blog/upgrade-indexer/).
\*\* Integration with Graph Node: `evm`, `near`, `cosmos`, `osmosis` and `ar` have native handler and type support in Graph Node. Chains which are Firehose- and Substreams-compatible can leverage the generalised [Substreams-powered subgraph](/cookbook/substreams-powered-subgraphs) integration (this includes `evm` and `near` networks). &#8288;<sup>†</sup> Supports deployment of [Substreams-powered subgraphs](/cookbook/substreams-powered-subgraphs).

The hosted service relies on the stability and reliability of the underlying technologies, namely the provided JSON RPC endpoints.
- The hosted service and Subgraph Studio rely on the stability and reliability of the underlying technologies, for example JSON-RPC, Firehose and Substreams endpoints.
- Subgraphs indexing Gnosis Chain can now be deployed with the `gnosis` network identifier. `xdai` is still supported for existing hosted service subgraphs.
- If a subgraph was published via the CLI and picked up by an Indexer, it could technically be queried even without support, and efforts are underway to further streamline integration of new networks.
- For a full list of which features are supported on the decentralized network, see [this page](https://github.com/graphprotocol/indexer/blob/main/docs/feature-support-matrix.md).

Subgraphs indexing Gnosis Chain can now be deployed with the `gnosis` network identifier. `xdai` is still supported for existing hosted service subgraphs.

For a full list of which features are supported on the decentralized network, see [this page](https://github.com/graphprotocol/indexer/blob/main/docs/feature-support-matrix.md).

Substreams-powered subgraphs indexing `mainnet` Ethereum are supported in Subgraph Studio and on the decentralized network.

## Graph Node
## Running Graph Node locally

If your preferred network isn't supported on The Graph's decentralized network, you can run your own [Graph Node](https://github.com/graphprotocol/graph-node) to index any EVM-compatible network. Make sure that the [version](https://github.com/graphprotocol/graph-node/releases) you are using supports the network and you have the needed configuration.

Graph Node can also index other protocols, via a Firehose integration. Firehose integrations have been created for NEAR, Arweave and Cosmos-based networks.
Graph Node can also index other protocols, via a Firehose integration. Firehose integrations have been created for NEAR, Arweave and Cosmos-based networks. Additionally, Graph Node can support Substreams-powered subgraphs for any network with Substreams support.
4 changes: 2 additions & 2 deletions website/pages/fr/network/benefits.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,8 @@ Les coûts des requêtes peuvent varier ; le coût indiqué est la moyenne au m

<sup>†</sup>Temps d'ingénierie basé sur une hypothèse de 200 $ de l'heure

<sup>‡</sup> en utilisant la fonction "max query budget" dans l'onglet "budget billing", tout en maintenant une qualité de
service élevée
<sup>‡</sup> en utilisant la fonction "max query budget" dans l'onglet "budget billing", tout en maintenant une qualité
de service élevée

Les coûts estimés ne concernent que les subgraphs du Mainnet Ethereum - les coûts sont encore plus élevés en cas d'auto-hébergement d'un `graph-node` sur d'autres réseaux.

Expand Down
4 changes: 2 additions & 2 deletions website/pages/it/network/benefits.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,8 @@ I costi di query possono variare; il costo indicato è quello medio al momento d

<sup>†</sup> Tempo di progettazione basato su un'ipotesi di $200 all'ora

<sup>‡</sup> utilizzando la funzione di budget massimo della query nella scheda di fatturazione del budget, mantenendo un'alta
qualità del servizio
<sup>‡</sup> utilizzando la funzione di budget massimo della query nella scheda di fatturazione del budget, mantenendo
un'alta qualità del servizio

I costi previsti sono solo per i subgraph di Ethereum Mainnet - i costi sono ancora più alti quando si ospita un `graph-node` su altre reti.

Expand Down
4 changes: 2 additions & 2 deletions website/pages/zh/cookbook/upgrading-a-subgraph.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,6 @@ If you're making a lot of changes to your subgraph, it is not a good idea to con
<VideoEmbed youtube="CzdQ3dFFrjo" />

- [The Graph Network Contracts](https://github.com/graphprotocol/contracts)
- <a href="https://github.com/graphprotocol/contracts/blob/dev/contracts/curation/Curation.sol">策展合约</a> - GNS 包裹的底层合约
- 地址 - 0x8fe00a685bcb3b2cc296ff6ffeab10aca4ce1538\`
- <a href="https://github.com/graphprotocol/contracts/blob/dev/contracts/curation/Curation.sol">策展合约</a> - GNS
包裹的底层合约 - 地址 - 0x8fe00a685bcb3b2cc296ff6ffeab10aca4ce1538\`
- [Subgraph Studio documentation](/deploying/subgraph-studio)
4 changes: 4 additions & 0 deletions website/route-lockfile.txt
Original file line number Diff line number Diff line change
Expand Up @@ -184,11 +184,15 @@
/en/billing/
/en/chain-integration-overview/
/en/cookbook/arweave/
/en/cookbook/avoid-eth-calls/
/en/cookbook/base-testnet/
/en/cookbook/cosmos/
/en/cookbook/derivedfrom/
/en/cookbook/grafting/
/en/cookbook/how-to-secure-api-keys-using-nextjs-server-components/
/en/cookbook/immutable-entities-bytes-as-ids/
/en/cookbook/near/
/en/cookbook/pruning/
/en/cookbook/subgraph-debug-forking/
/en/cookbook/subgraph-uncrashable/
/en/cookbook/substreams-powered-subgraphs/
Expand Down
15 changes: 8 additions & 7 deletions website/src/supportedNetworks.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export async function getSupportedNetworks() {
const supportedNetworksQueryResult: ExecutionResult<SupportedNetworksQuery> = await execute(SupportedNetworksDocument)
const fullySupportedNetworkIds = (supportedNetworksQueryResult.data?.networks ?? []).map((network) => network.id)

// Fallback in case the GraphQL query fails (last updated 2023-12-14)
// Fallback in case the GraphQL query fails (last updated 2024-06-04)
if (fullySupportedNetworkIds.length === 0) {
fullySupportedNetworkIds.push(
'eip155:1',
Expand All @@ -21,6 +21,7 @@ export async function getSupportedNetworks() {
'eip155:42161',
'eip155:42220',
'eip155:43114',
'eip155:10',
)
}

Expand All @@ -36,7 +37,6 @@ export async function getSupportedNetworks() {

const fullySupportedOnNetwork =
network.id === 'evm' && fullySupportedNetworkIds.includes(`eip155:${chain.chainId}`)
const partiallySupportedOnNetwork = ['evm', 'near'].includes(network.id) && !fullySupportedOnNetwork

return {
uid: chain.uid,
Expand All @@ -47,8 +47,10 @@ export async function getSupportedNetworks() {
supportedOnHostedService,
supportedOnStudio,
fullySupportedOnNetwork,
partiallySupportedOnNetwork,
substreams: chain.substreams ?? [],
integrationType: ['evm', 'near', 'cosmos', 'osmosis', 'ar'].includes(chain.network)
? chain.network
: 'substreams',
}
})
.filter(Boolean),
Expand All @@ -64,7 +66,7 @@ export function SupportedNetworksTable({ networks }: { networks: Awaited<ReturnT
<tr>
<th>{t('supportedNetworks.network')}</th>
<th>{t('supportedNetworks.cliName')}</th>
<th align="center">{t('supportedNetworks.chainId')}</th>
<th align="center">{t('supportedNetworks.integrationType')}**</th>
<th align="center">{t('supportedNetworks.hostedService')}</th>
<th align="center">{t('supportedNetworks.subgraphStudio')}</th>
<th align="center">{t('supportedNetworks.decentralizedNetwork')}</th>
Expand All @@ -75,16 +77,15 @@ export function SupportedNetworksTable({ networks }: { networks: Awaited<ReturnT
<td>
<CodeInline>{network.cliName}</CodeInline>
</td>
<td align="center">{network.chainId}</td>
<td align="center">{network.integrationType}</td>
<td align="center">{network.supportedOnHostedService ? '✓' : null}</td>
<td align="center">
{network.supportedOnStudio ? '✓' : null}
{network.substreams.includes('studio') ? <sup></sup> : null}
</td>
<td align="center">
{network.fullySupportedOnNetwork ? '✓' : null}
{network.partiallySupportedOnNetwork ? '*' : null}
{network.substreams.includes('network') ? <sup></sup> : null}
{!network.fullySupportedOnNetwork && network.supportedOnStudio ? '*' : null}
</td>
</tr>
))}
Expand Down

0 comments on commit 4884dc8

Please sign in to comment.