mirror of
https://github.com/pezkuwichain/pezkuwi-telemetry.git
synced 2026-06-18 16:41:03 +00:00
@@ -8,6 +8,20 @@ export namespace State {
|
||||
blockDetails: Types.BlockDetails;
|
||||
location: Maybe<Types.NodeLocation>;
|
||||
}
|
||||
|
||||
export interface Settings {
|
||||
validator: boolean;
|
||||
implementation: boolean;
|
||||
peers: boolean;
|
||||
txs: boolean;
|
||||
cpu: boolean;
|
||||
mem: boolean;
|
||||
blocknumber: boolean;
|
||||
blockhash: boolean;
|
||||
blocktime: boolean;
|
||||
blockpropagation: boolean;
|
||||
blocklasttime: boolean;
|
||||
}
|
||||
}
|
||||
|
||||
export interface State {
|
||||
@@ -19,6 +33,7 @@ export interface State {
|
||||
subscribed: Maybe<Types.ChainLabel>;
|
||||
chains: Map<Types.ChainLabel, Types.NodeCount>;
|
||||
nodes: Map<Types.NodeId, State.Node>;
|
||||
settings: State.Settings;
|
||||
}
|
||||
|
||||
export type Update = <K extends keyof State>(changes: Pick<State, K> | null) => Readonly<State>;
|
||||
|
||||
Reference in New Issue
Block a user