Skip to content

Commit 8fe979d

Browse files
authored
Update for substreams networks with no studio support (#710)
* Update for substreams networks with no studio support * lint
1 parent c99f2df commit 8fe979d

File tree

3 files changed

+48
-11
lines changed

3 files changed

+48
-11
lines changed

pnpm-lock.yaml

+39-6
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

website/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"typecheck": "tsc --noEmit"
1414
},
1515
"dependencies": {
16-
"@edgeandnode/common": "^6.10.0",
16+
"@edgeandnode/common": "^6.11.1-remove-injective-studio-support-1718401771108-74c8ecedae5c754047b4248b0a6bce262b8e7a74",
1717
"@edgeandnode/gds": "5.15.0-sunrise-countdown-banner-1718175684308-cb24bd26f94e08877a72d73cbdc7dcb9449a7c9e",
1818
"@edgeandnode/go": "6.23.0-sunrise-countdown-banner-1718175684308-cb24bd26f94e08877a72d73cbdc7dcb9449a7c9e",
1919
"@emotion/react": "^11.11.4",

website/src/supportedNetworks.tsx

+8-4
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,14 @@ export async function getSupportedNetworks() {
3030
.map((chain) => {
3131
const supportedOnHostedService = chain.productDeployStatus.hostedService === ChainProductStatus.ALLOWED
3232
const supportedOnStudio = chain.productDeployStatus.studio === ChainProductStatus.ALLOWED
33+
const integrationType = ['evm', 'near', 'cosmos', 'osmosis', 'ar'].includes(chain.network)
34+
? chain.network
35+
: 'substreams'
3336

34-
if (!chain.graphCliName || (!supportedOnStudio && !supportedOnHostedService)) {
37+
if (
38+
!chain.graphCliName ||
39+
(!supportedOnStudio && !supportedOnHostedService && integrationType !== 'substreams')
40+
) {
3541
return null as never // `as never` to work around the `.filter(Boolean)` below not narrowing the type
3642
}
3743

@@ -48,9 +54,7 @@ export async function getSupportedNetworks() {
4854
supportedOnStudio,
4955
fullySupportedOnNetwork,
5056
substreams: chain.substreams ?? [],
51-
integrationType: ['evm', 'near', 'cosmos', 'osmosis', 'ar'].includes(chain.network)
52-
? chain.network
53-
: 'substreams',
57+
integrationType,
5458
}
5559
})
5660
.filter(Boolean),

0 commit comments

Comments
 (0)