Skip to content
Open
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
16 changes: 0 additions & 16 deletions graphql-schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -661,22 +661,6 @@
},
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "getAltairUpgradePercentage",
"description": "",
"args": [],
"type": {
"kind": "NON_NULL",
"name": null,
"ofType": {
"kind": "SCALAR",
"name": "Float",
"ofType": null
}
},
"isDeprecated": false,
"deprecationReason": null
}
],
"inputFields": null,
Expand Down
116 changes: 0 additions & 116 deletions src/Components/Modules/SoftwareStats/AltAirPercentage.tsx

This file was deleted.

2 changes: 0 additions & 2 deletions src/Components/Pages/HomePage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ import NodeStatusOverTime from "../Modules/NodeStats/NodeStatsOverTime"
import GridLayoutWrapper from "../Layouts/GridLayout/GridLayoutWrapper"
import { Typography } from "@chainsafe/common-components"
import CountryStats from "../Modules/CountryStats"
import AltAirPercentage from "../Modules/SoftwareStats/AltAirPercentage"

const useStyles = makeStyles(({ constants, breakpoints, palette }: ECTheme) => {
return createStyles({
Expand Down Expand Up @@ -154,7 +153,6 @@ function HomePage() {
<CountryStats />
<GridLayoutWrapper heading="Node Statistics">
<div className={classes.nodeStats}>
<AltAirPercentage />
<ClientTypes />
<OperatingSystems />
<NetworkTypes />
Expand Down
15 changes: 0 additions & 15 deletions src/Contexts/Eth2CrawlerContext.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ import {
LOAD_NODE_COUNT_OVER_TIME,
LOAD_REGIONAL_STATS,
LOAD_NODES_BY_COUNTRIES,
LOAD_ALTAIR_UPGRADE_PERCENTAGE,
} from "../GraphQL/Queries"
import { GetNodeStats, GetNodeStats_getNodeStats } from "../GraphQL/types/GetNodeStats"
import {
Expand All @@ -44,7 +43,6 @@ import {
GetNodesByCountries,
GetNodesByCountries_aggregateByCountry,
} from "../GraphQL/types/GetNodesByCountries"
import { GetAltAirUpgradePercentage } from "../GraphQL/types/GetAltAirUpgradePercentage"

type Eth2CrawlerContextProps = {
children: React.ReactNode | React.ReactNode[]
Expand All @@ -60,7 +58,6 @@ interface IEth2CrawlerContext {
nodeStatsOverTime: GetNodeStatsOverTime_getNodeStatsOverTime[]
nodeRegionalStats: GetRegionalStats_getRegionalStats | undefined
nodeCountByCountries: GetNodesByCountries_aggregateByCountry[]
altAirPercentage: number | undefined
isLoadingClients: boolean
isLoadingOperatingSystems: boolean
isLoadingNetworks: boolean
Expand All @@ -70,7 +67,6 @@ interface IEth2CrawlerContext {
isLoadingNodeStatsOverTime: boolean
isLoadingNodeRegionalStats: boolean
isLoadingNodeCountByCountries: boolean
isLoadingAltAirPercentage: boolean
}

const Eth2CrawlerContext = React.createContext<IEth2CrawlerContext | undefined>(undefined)
Expand Down Expand Up @@ -98,7 +94,6 @@ const Eth2CrawlerProvider = ({ children }: Eth2CrawlerContextProps) => {
const [nodeCountByCountries, setNodeCountByCountries] = useState<
GetNodesByCountries_aggregateByCountry[]
>([])
const [altAirPercentage, setAltAirPercentage] = useState<number | undefined>(undefined)

const [isLoadingClients, setIsLoadingClients] = useState(true)
const [isLoadingOperatingSystems, setIsLoadingOperatingSystems] = useState(true)
Expand All @@ -109,7 +104,6 @@ const Eth2CrawlerProvider = ({ children }: Eth2CrawlerContextProps) => {
const [isLoadingNodeStatsOverTime, setIsLoadingNodeStatsOverTime] = useState(true)
const [isLoadingNodeRegionalStats, setIsLoadingNodeRegionalStats] = useState(true)
const [isLoadingNodeCountByCountries, setIsLoadingNodeCountByCountries] = useState(true)
const [isLoadingAltAirPercentage, setIsLoadingAltAirPercentage] = useState(true)

const getInitialData = async () => {
graphClient
Expand Down Expand Up @@ -180,13 +174,6 @@ const Eth2CrawlerProvider = ({ children }: Eth2CrawlerContextProps) => {
})
.catch(console.error)
.finally(() => setIsLoadingNodeCountByCountries(false))
graphClient
.request<GetAltAirUpgradePercentage>(LOAD_ALTAIR_UPGRADE_PERCENTAGE)
.then((result) => {
setAltAirPercentage(result.getAltairUpgradePercentage)
})
.catch(console.error)
.finally(() => setIsLoadingAltAirPercentage(false))
}

useEffect(() => {
Expand All @@ -205,7 +192,6 @@ const Eth2CrawlerProvider = ({ children }: Eth2CrawlerContextProps) => {
heatmap,
nodeCountByCountries,
clientVersions,
altAirPercentage,
isLoadingNodeStats,
isLoadingClients,
isLoadingOperatingSystems,
Expand All @@ -215,7 +201,6 @@ const Eth2CrawlerProvider = ({ children }: Eth2CrawlerContextProps) => {
isLoadingNodeStatsOverTime,
isLoadingNodeRegionalStats,
isLoadingNodeCountByCountries,
isLoadingAltAirPercentage,
}}
>
{children}
Expand Down
6 changes: 0 additions & 6 deletions src/GraphQL/Queries.ts
Original file line number Diff line number Diff line change
Expand Up @@ -95,9 +95,3 @@ export const LOAD_NODES_BY_COUNTRIES = gql`
}
}
`

export const LOAD_ALTAIR_UPGRADE_PERCENTAGE = gql`
query GetAltAirUpgradePercentage {
getAltairUpgradePercentage
}
`
16 changes: 0 additions & 16 deletions src/GraphQL/types/GetAltAirUpgradePercentage.ts

This file was deleted.