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.7 to 1.2.8

34

build/src/state-manager/shardFunctionTypes.d.ts

@@ -253,2 +253,34 @@ import { Node } from "../p2p/NodeListTypes";

}
export { ShardGlobals, ShardInfo, WrappableParitionRange as WrappableParitionRange, NodeShardData, AddressRange, HomeNodeSummary, ParititionShardDataMap, NodeShardDataMap, MergeResults, BasicAddressRange };
declare type CycleShardData = {
shardGlobals: ShardGlobals;
cycleNumber: number;
ourNode: Node;
/**
* our node's node shard data
*/
nodeShardData: NodeShardData;
nodeShardDataMap: Map<string, NodeShardData>;
parititionShardDataMap: Map<number, ShardInfo>;
nodes: Node[];
syncingNeighbors: Node[];
syncingNeighborsTxGroup: Node[];
hasSyncingNeighbors: boolean;
partitionsToSkip: Map<number, boolean>;
timestamp: number;
timestampEndCycle: number;
hasCompleteData: boolean;
/**
* hashlist index of the voters for this vote
*/
voters: number[];
/**
* list of partitions that we do consensus on
*/
ourConsensusPartitions?: number[];
/**
* list of stored parititions
*/
ourStoredPartitions?: number[];
calculationTime: number;
};
export { ShardGlobals, ShardInfo, WrappableParitionRange as WrappableParitionRange, NodeShardData, AddressRange, HomeNodeSummary, ParititionShardDataMap, NodeShardDataMap, MergeResults, BasicAddressRange, CycleShardData };

2

package.json
{
"name": "@shardus/types",
"version": "1.2.7",
"version": "1.2.8",
"description": "",

@@ -5,0 +5,0 @@ "main": "build/src/index.js",

@@ -274,2 +274,40 @@ import { Node } from "../p2p/NodeListTypes"

export { ShardGlobals, ShardInfo, WrappableParitionRange as WrappableParitionRange, NodeShardData, AddressRange, HomeNodeSummary, ParititionShardDataMap, NodeShardDataMap, MergeResults, BasicAddressRange }
type CycleShardData = {
shardGlobals: ShardGlobals
cycleNumber: number
ourNode: Node
/**
* our node's node shard data
*/
nodeShardData: NodeShardData
nodeShardDataMap: Map<string, NodeShardData>
parititionShardDataMap: Map<number, ShardInfo>
nodes: Node[]
syncingNeighbors: Node[]
syncingNeighborsTxGroup: Node[]
hasSyncingNeighbors: boolean
partitionsToSkip: Map<number, boolean>
timestamp: number // timestamp for cleanup purposes, may not match exactly the rules of which transactions will live in a partition for this cycle.
timestampEndCycle: number
hasCompleteData: boolean
/**
* hashlist index of the voters for this vote
*/
voters: number[]
/**
* list of partitions that we do consensus on
*/
ourConsensusPartitions?: number[]
/**
* list of stored parititions
*/
ourStoredPartitions?: number[]
calculationTime: number
}
export { ShardGlobals, ShardInfo, WrappableParitionRange as WrappableParitionRange, NodeShardData, AddressRange, HomeNodeSummary, ParititionShardDataMap, NodeShardDataMap, MergeResults, BasicAddressRange, CycleShardData }
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