@shardus/types
Advanced tools
Comparing version 1.2.8 to 1.2.9
@@ -23,4 +23,15 @@ import { hexstring } from '..'; | ||
} | ||
export interface SyncStarted { | ||
nodeId: string; | ||
cycleNumber: number; | ||
sign?: Types.Signature; | ||
} | ||
export interface FinishedSyncingRequest { | ||
nodeId: string; | ||
cycleNumber: number; | ||
sign?: Types.Signature; | ||
} | ||
export interface Txs { | ||
join: JoinRequest[]; | ||
synced?: FinishedSyncingRequest[]; | ||
} | ||
@@ -34,2 +45,6 @@ export interface Record { | ||
standbyRemove?: hexstring[]; | ||
startedSyncing?: hexstring[]; | ||
lostAfterSelection?: hexstring[]; | ||
/** Public keys of nodes that others will add to their ready nodes lists once received. */ | ||
finishedSyncing?: hexstring[]; | ||
} |
@@ -13,3 +13,5 @@ export declare type LooseObject = Record<string, unknown>; | ||
STANDBY = "standby", | ||
SELECTED = "selected", | ||
SYNCING = "syncing", | ||
READY = "ready", | ||
ACTIVE = "active" | ||
@@ -27,2 +29,3 @@ } | ||
syncingTimestamp: number; | ||
readyTimestamp: number; | ||
} | ||
@@ -29,0 +32,0 @@ export interface Node { |
@@ -8,5 +8,7 @@ "use strict"; | ||
NodeStatus["STANDBY"] = "standby"; | ||
NodeStatus["SELECTED"] = "selected"; | ||
NodeStatus["SYNCING"] = "syncing"; | ||
NodeStatus["READY"] = "ready"; | ||
NodeStatus["ACTIVE"] = "active"; | ||
})(NodeStatus = exports.NodeStatus || (exports.NodeStatus = {})); | ||
//# sourceMappingURL=P2PTypes.js.map |
{ | ||
"name": "@shardus/types", | ||
"version": "1.2.8", | ||
"version": "1.2.9", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "build/src/index.js", |
@@ -27,4 +27,17 @@ import { hexstring } from '..' | ||
export interface SyncStarted { | ||
nodeId: string //pub key of the standby node | ||
cycleNumber: number //a recent cycle | ||
sign?: Types.Signature //sig of standby node | ||
} | ||
export interface FinishedSyncingRequest { | ||
nodeId: string //id of the synced node | ||
cycleNumber: number //a recent cycle | ||
sign?: Types.Signature //sig of synced node | ||
} | ||
export interface Txs { | ||
join: JoinRequest[] | ||
synced?: FinishedSyncingRequest[] | ||
} | ||
@@ -41,2 +54,9 @@ | ||
standbyRemove?: hexstring[] | ||
startedSyncing?: hexstring[] | ||
lostAfterSelection?: hexstring[] | ||
/** Public keys of nodes that others will add to their ready nodes lists once received. */ | ||
finishedSyncing?: hexstring[] | ||
} |
@@ -14,3 +14,5 @@ export type LooseObject = Record<string, unknown> | ||
STANDBY = 'standby', | ||
SELECTED = 'selected', | ||
SYNCING = 'syncing', | ||
READY = 'ready', | ||
ACTIVE = 'active', | ||
@@ -29,2 +31,3 @@ } | ||
syncingTimestamp: number | ||
readyTimestamp: number | ||
} | ||
@@ -31,0 +34,0 @@ |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
62605
1983