Create top 100 node per channel count component

This commit is contained in:
nymkappa
2022-08-17 16:19:01 +02:00
parent 2359e44b16
commit 6421bc82f2
12 changed files with 232 additions and 67 deletions

View File

@@ -252,13 +252,18 @@ export interface RewardStats {
totalTx: number;
}
export interface TopNodesPerChannels {
public_key: string,
export interface ITopNodesPerChannels {
publicKey: string,
alias: string,
channels: number,
channels?: number,
capacity: number,
firstSeen?: number,
updatedAt?: number,
city?: any,
country?: any,
}
export interface TopNodesPerCapacity {
export interface ITopNodesPerCapacity {
publicKey: string,
alias: string,
capacity: number,
@@ -270,6 +275,6 @@ export interface TopNodesPerCapacity {
}
export interface INodesRanking {
topByCapacity: TopNodesPerCapacity[];
topByChannels: TopNodesPerChannels[];
topByCapacity: ITopNodesPerCapacity[];
topByChannels: ITopNodesPerChannels[];
}