This commit is contained in:
maciejhirsz
2018-06-27 15:56:32 +02:00
parent 0580e25380
commit 4812a5ddce
53 changed files with 152 additions and 1002 deletions
+3 -3
View File
@@ -1,5 +1,5 @@
import { Data } from 'ws';
import { Maybe, Opaque } from '@dotstats/common';
import { Maybe, Types } from '@dotstats/common';
export function parseMessage(data: Data): Maybe<Message> {
try {
@@ -35,13 +35,13 @@ interface MessageBase {
export interface BestBlock {
best: string,
height: number,
height: Types.BlockNumber,
ts: Date,
}
interface SystemConnected {
msg: 'system.connected',
name: string,
name: Types.NodeName,
chain: string,
config: string,
implementation: string,