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 {
|
2022-10-05 15:21:07 +02:00
|
|
|
status: State
|
2022-09-30 11:00:55 +02:00
|
|
|
response?: number
|
|
|
|
version?: string
|
|
|
|
latestRelease?: string
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface AquariusStatus {
|
2022-10-05 15:21:07 +02:00
|
|
|
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 {
|
2022-10-05 15:21:07 +02:00
|
|
|
status: State
|
2022-09-30 11:00:55 +02:00
|
|
|
response?: number
|
|
|
|
version?: string
|
|
|
|
latestRelease?: string
|
|
|
|
block?: number
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface OperatorStatus {
|
2022-10-05 15:21:07 +02:00
|
|
|
status: State
|
2022-09-30 11:00:55 +02:00
|
|
|
response?: number
|
|
|
|
version?: string
|
|
|
|
latestRelease?: string
|
|
|
|
environments?: number
|
|
|
|
limitReached?: boolean
|
|
|
|
}
|
|
|
|
export interface FaucetStatus {
|
2022-10-05 15:21:07 +02:00
|
|
|
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
|
|
|
|
}
|
|
|
|
|
2022-10-05 15:21:07 +02:00
|
|
|
export interface Data {
|
|
|
|
component: string
|
|
|
|
status: State
|
2022-09-30 11:00:55 +02:00
|
|
|
}
|