status-frontend/@types/index.ts

78 lines
1.4 KiB
TypeScript
Raw Normal View History

2022-09-30 11:00:55 +02:00
import { BigNumber } from 'ethers'
export enum State {
Up = 'UP',
Down = 'DOWN',
Warning = 'WARNING'
}
export interface Status {
network: string
currentBlock: number
market: State
port: State
faucet: FaucetStatus | Record<string, never>
aquarius: AquariusStatus
provider: ProviderStatus
subgraph: SubgraphStatus
operator: OperatorStatus
dataFarming: State
daoGrants: State
lastUpdatedOn: number
}
export interface ProviderStatus {
status: State
2022-09-30 11:00:55 +02:00
response?: number
version?: string
latestRelease?: string
}
export interface AquariusStatus {
status: State
2022-09-30 11:00:55 +02:00
response?: number
2022-10-05 13:15:54 +02:00
validChainList?: boolean
2022-09-30 11:00:55 +02:00
version?: string
2022-10-05 13:15:54 +02:00
monitorVersion?: string
2022-09-30 11:00:55 +02:00
latestRelease?: string
block?: number
validQuery?: boolean
}
export interface SubgraphStatus {
status: State
2022-09-30 11:00:55 +02:00
response?: number
version?: string
latestRelease?: string
block?: number
}
export interface OperatorStatus {
status: State
2022-09-30 11:00:55 +02:00
response?: number
version?: string
latestRelease?: string
environments?: number
limitReached?: boolean
}
export interface FaucetStatus {
status: State
2022-09-30 11:00:55 +02:00
response?: number
ethBalance?: BigNumber
ethBalanceSufficient?: boolean
oceanBalance?: BigNumber
oceanBalanceSufficient?: boolean
}
export interface Network {
name: string
chainId: string
test?: boolean
faucetWallet?: string
rpcUrl?: string
oceanAddress?: string
}
export interface Data {
component: string
status: State
2022-09-30 11:00:55 +02:00
}