Refactor top nodes widgets

This commit is contained in:
nymkappa
2022-08-17 12:53:26 +02:00
parent 7f48416dc3
commit 7520e3beba
18 changed files with 324 additions and 32 deletions

View File

@@ -251,3 +251,20 @@ export interface RewardStats {
totalFee: number;
totalTx: number;
}
export interface TopNodesPerChannels {
public_key: string,
alias: string,
channels: number,
}
export interface TopNodesPerCapacity {
public_key: string,
alias: string,
capacity: number,
}
export interface INodesRanking {
topByCapacity: TopNodesPerCapacity[];
topByChannels: TopNodesPerChannels[];
}