Display location on map node details

This commit is contained in:
maciejhirsz
2018-07-18 16:59:47 +02:00
parent 3696d7c46e
commit 5c1480f9f5
11 changed files with 30 additions and 17 deletions
+2 -1
View File
@@ -3,6 +3,7 @@ import {
FeedVersion,
Latitude,
Longitude,
City,
NodeId,
NodeCount,
NodeDetails,
@@ -60,7 +61,7 @@ export namespace Variants {
export interface LocatedNodeMessage extends MessageBase {
action: typeof Actions.LocatedNode;
payload: [NodeId, Latitude, Longitude];
payload: [NodeId, Latitude, Longitude, City];
}
export interface ImportedBlockMessage extends MessageBase {
+1 -1
View File
@@ -6,4 +6,4 @@ import * as FeedMessage from './feed';
export { Types, FeedMessage };
export const VERSION: Types.FeedVersion = 4 as Types.FeedVersion;
export const VERSION: Types.FeedVersion = 5 as Types.FeedVersion;
+2 -1
View File
@@ -18,8 +18,9 @@ export type PeerCount = Opaque<number, 'PeerCount'>;
export type TransactionCount = Opaque<number, 'TransactionCount'>;
export type Latitude = Opaque<number, 'Latitude'>;
export type Longitude = Opaque<number, 'Longitude'>;
export type City = Opaque<string, 'City'>;
export type BlockDetails = [BlockNumber, BlockHash, Milliseconds, Timestamp, Maybe<PropagationTime>];
export type NodeDetails = [NodeName, NodeImplementation, NodeVersion];
export type NodeStats = [PeerCount, TransactionCount];
export type NodeLocation = [Latitude, Longitude];
export type NodeLocation = [Latitude, Longitude, City];