status-frontend/src/@types/index.ts

37 lines
745 B
TypeScript
Raw Normal View History

2022-09-30 11:00:55 +02:00
import { BigNumber } from 'ethers'
/* eslint-disable no-unused-vars */
2022-09-30 11:00:55 +02:00
export enum State {
2022-10-20 10:32:03 +02:00
Normal = 'Normal',
Degraded = 'Degraded',
Outage = 'Outage'
2022-09-30 11:00:55 +02:00
}
/* eslint-enable no-unused-vars */
2022-09-30 11:00:55 +02:00
export interface Status {
network: string
lastUpdatedOn: number
2022-10-19 17:40:44 +02:00
currentBlock?: number
components: Component[]
2022-09-30 11:00:55 +02:00
}
2022-10-18 19:17:32 +02:00
2022-10-19 17:40:44 +02:00
export interface Component {
name: string
status: State
statusMessages: string[]
2022-10-18 19:58:05 +02:00
response: number
version: string
2022-10-19 17:40:44 +02:00
latestRelease?: string
2022-10-20 10:00:12 +02:00
url?: string
2022-10-19 17:40:44 +02:00
validChainList?: boolean
monitorVersion?: string
block?: number
validQuery?: boolean
environments?: number
limitReached?: boolean
2022-09-30 11:00:55 +02:00
ethBalance?: BigNumber
ethBalanceSufficient?: boolean
oceanBalance?: BigNumber
oceanBalanceSufficient?: boolean
}