Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion website/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"@edgeandnode/go": "^10.2.3",
"@emotion/react": "^11.14.0",
"@graphprotocol/contracts": "^7.3.0",
"@pinax/graph-networks-registry": "^0.6.7",
"@pinax/graph-networks-registry": "^0.7.1",
"@react-hookz/web": "^25.1.1",
"@readme/httpsnippet": "^11.0.0",
"@readme/openapi-parser": "^4.1.0",
Expand Down
14 changes: 1 addition & 13 deletions website/src/supportedNetworks/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,18 +25,6 @@ export const MONO_ICON_NETWORKS = [
'zksync-era-sepolia',
]

// Networks with Token API support (TODO: remove once the registry has this information)
export const TOKEN_API_NETWORKS = [
'mainnet',
'base',
'bsc',
'arbitrum-one',
'matic',
'optimism',
'unichain',
'avalanche',
]

export const getIconVariant = (networkId: string): 'mono' | 'branded' => {
return MONO_ICON_NETWORKS.includes(networkId) ? 'mono' : 'branded'
}
Expand Down Expand Up @@ -69,7 +57,7 @@ export async function getSupportedNetworks() {
const subgraphs = Boolean(network.services.subgraphs?.length)
const substreams = Boolean(network.services.substreams?.length)
const firehose = Boolean(network.services.firehose?.length)
const tokenApi = TOKEN_API_NETWORKS.includes(network.id)
const tokenApi = Boolean(network.services.tokenApi?.length)
if (!subgraphs && !substreams && !firehose && !tokenApi) {
return []
}
Expand Down