File tree Expand file tree Collapse file tree 1 file changed +4
-7
lines changed
website/src/supportedNetworks Expand file tree Collapse file tree 1 file changed +4
-7
lines changed Original file line number Diff line number Diff line change @@ -41,23 +41,20 @@ export const getIconVariant = (networkId: string): 'mono' | 'branded' => {
41
41
return MONO_ICON_NETWORKS . includes ( networkId ) ? 'mono' : 'branded'
42
42
}
43
43
44
- // Suport level for services
45
- export const getSubgraphsSupportLevel = ( network : Network ) : 'none' | 'basic' | 'full' => {
44
+ // Support level for services
45
+ export const getSubgraphsSupportLevel = ( network : Network ) => {
46
46
const hasSubgraphs = Boolean ( network . services . subgraphs ?. length || network . services . sps ?. length )
47
-
48
47
if ( ! hasSubgraphs ) return 'none'
49
48
if ( network . issuanceRewards ) return 'full'
50
49
return 'basic'
51
50
}
52
-
53
- export const getSubstreamsSupportLevel = ( network : Network ) : 'none' | 'basic' | 'full' => {
51
+ export const getSubstreamsSupportLevel = ( network : Network ) => {
54
52
const substreamCount = network . services . substreams ?. length || 0
55
53
if ( substreamCount === 0 ) return 'none'
56
54
if ( substreamCount >= 2 ) return 'full'
57
55
return 'basic'
58
56
}
59
-
60
- export const getFirehoseSupportLevel = ( network : Network ) : 'none' | 'basic' | 'full' => {
57
+ export const getFirehoseSupportLevel = ( network : Network ) => {
61
58
const firehoseCount = network . services . firehose ?. length || 0
62
59
if ( firehoseCount === 0 ) return 'none'
63
60
if ( firehoseCount >= 2 ) return 'full'
You can’t perform that action at this time.
0 commit comments