Refactor top nodes widgets

This commit is contained in:
nymkappa
2022-08-17 12:53:26 +02:00
parent ee566543ca
commit 49652d7f39
18 changed files with 324 additions and 32 deletions

View File

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