Show validator address for nodes (#37)

Show validator address for nodes
This commit is contained in:
Maciej Hirsz
2018-09-12 13:55:37 +02:00
committed by GitHub
parent cc6a6cfef6
commit 762db7ebdc
13 changed files with 198 additions and 57 deletions
+1
View File
@@ -1,6 +1,7 @@
import { Opaque, Maybe } from './helpers';
import {
FeedVersion,
Address,
Latitude,
Longitude,
City,
+1 -1
View File
@@ -8,4 +8,4 @@ import * as FeedMessage from './feed';
export { Types, FeedMessage };
// Increment this if breaking changes were made to types in `feed.ts`
export const VERSION: Types.FeedVersion = 9 as Types.FeedVersion;
export const VERSION: Types.FeedVersion = 10 as Types.FeedVersion;
+2 -2
View File
@@ -8,9 +8,9 @@ export type NodeId = Id<'Node'>;
export type NodeName = Opaque<string, 'NodeName'>;
export type NodeImplementation = Opaque<string, 'NodeImplementation'>;
export type NodeVersion = Opaque<string, 'NodeVersion'>;
export type NodePubKey = Opaque<string, 'NodePubKey'>;
export type BlockNumber = Opaque<number, 'BlockNumber'>;
export type BlockHash = Opaque<string, 'BlockHash'>;
export type Address = Opaque<string, 'Address'>;
export type Milliseconds = Opaque<number, 'Milliseconds'>;
export type Timestamp = Opaque<Milliseconds, 'Timestamp'>;
export type PropagationTime = Opaque<Milliseconds, 'PropagationTime'>;
@@ -22,6 +22,6 @@ 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 NodeDetails = [NodeName, NodeImplementation, NodeVersion, Maybe<Address>];
export type NodeStats = [PeerCount, TransactionCount];
export type NodeLocation = [Latitude, Longitude, City];