Refactor top nodes widgets

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

No files matched your search

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