Add pie chart and rewrite the pool ranking component
This commit is contained in:
@@ -52,15 +52,29 @@ export interface LiquidPegs {
|
||||
|
||||
export interface ITranslators { [language: string]: string; }
|
||||
|
||||
export interface SinglePoolStats {
|
||||
pooldId: number,
|
||||
name: string,
|
||||
link: string,
|
||||
blockCount: number,
|
||||
emptyBlocks: number,
|
||||
rank: number,
|
||||
share: string,
|
||||
lastEstimatedHashrate: string,
|
||||
emptyBlockRatio: string,
|
||||
}
|
||||
|
||||
export interface PoolsStats {
|
||||
poolsStats: {
|
||||
pooldId: number,
|
||||
name: string,
|
||||
link: string,
|
||||
blockCount: number,
|
||||
emptyBlocks: number,
|
||||
rank: number,
|
||||
}[],
|
||||
blockCount: number,
|
||||
lastEstimatedHashrate: number,
|
||||
pools: SinglePoolStats[],
|
||||
}
|
||||
|
||||
export interface MiningStats {
|
||||
lastEstimatedHashrate: string,
|
||||
blockCount: number,
|
||||
totalEmptyBlock: number,
|
||||
totalEmptyBlockRatio: string,
|
||||
pools: SinglePoolStats[],
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user