Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@shardus/types

Package Overview
Dependencies
Maintainers
6
Versions
34
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@shardus/types - npm Package Compare versions

Comparing version 1.2.8 to 1.2.9

15

build/src/p2p/JoinTypes.d.ts

@@ -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[];
}

3

build/src/p2p/P2PTypes.d.ts

@@ -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

2

package.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc