Add pie chart and rewrite the pool ranking component

This commit is contained in:
nymkappa
2022-01-14 18:09:40 +09:00
parent cd61bcf85a
commit 8d406a40e5
7 changed files with 231 additions and 102 deletions

View File

@@ -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[],
}