mirror of
https://github.com/oceanprotocol/status-frontend.git
synced 2024-11-25 19:47:01 +01:00
78 lines
1.4 KiB
TypeScript
78 lines
1.4 KiB
TypeScript
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
|
|
response?: number
|
|
version?: string
|
|
latestRelease?: string
|
|
}
|
|
|
|
export interface AquariusStatus {
|
|
status: State
|
|
response?: number
|
|
validChainList?: boolean
|
|
version?: string
|
|
monitorVersion?: string
|
|
latestRelease?: string
|
|
block?: number
|
|
validQuery?: boolean
|
|
}
|
|
export interface SubgraphStatus {
|
|
status: State
|
|
response?: number
|
|
version?: string
|
|
latestRelease?: string
|
|
block?: number
|
|
}
|
|
|
|
export interface OperatorStatus {
|
|
status: State
|
|
response?: number
|
|
version?: string
|
|
latestRelease?: string
|
|
environments?: number
|
|
limitReached?: boolean
|
|
}
|
|
export interface FaucetStatus {
|
|
status: State
|
|
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
|
|
}
|