New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@liskhq/lisk-chain

Package Overview
Dependencies
Maintainers
3
Versions
29
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@liskhq/lisk-chain - npm Package Compare versions

Comparing version 0.4.0-beta.1 to 0.4.0-beta.2

1

dist-node/event.d.ts

@@ -30,4 +30,5 @@ /// <reference types="node" />

toObject(): EventAttr;
private _getIndexBytes;
private _getAllProps;
}
export {};

13

dist-node/event.js

@@ -34,8 +34,5 @@ "use strict";

for (let i = 0; i < this._topics.length; i += 1) {
const indexBit = (this._index << constants_1.EVENT_TOPIC_INDEX_LENGTH_BITS) + i;
const indexBytes = Buffer.alloc(constants_1.EVENT_TOTAL_INDEX_LENGTH_BYTES);
indexBytes.writeUIntBE(indexBit, 0, constants_1.EVENT_TOTAL_INDEX_LENGTH_BYTES);
const key = Buffer.concat([
lisk_cryptography_1.utils.hash(this._topics[i]).slice(0, constants_1.EVENT_TOPIC_HASH_LENGTH_BYTES),
indexBytes,
lisk_cryptography_1.utils.hash(this._topics[i]).subarray(0, constants_1.EVENT_TOPIC_HASH_LENGTH_BYTES),
this._getIndexBytes(i),
]);

@@ -55,2 +52,8 @@ result.push({

}
_getIndexBytes(index) {
const indexBytes = Buffer.alloc(constants_1.EVENT_TOTAL_INDEX_LENGTH_BYTES);
const indexBit = ((this._index << constants_1.EVENT_TOPIC_INDEX_LENGTH_BITS) >>> 0) + index;
indexBytes.writeUint32BE(indexBit, 0);
return indexBytes;
}
_getAllProps() {

@@ -57,0 +60,0 @@ return {

@@ -362,2 +362,3 @@ export declare const blockSchema: {

fieldNumber: number;
maxItems: number;
items: {

@@ -374,2 +375,3 @@ dataType: string;

fieldNumber: number;
maximum: number;
};

@@ -376,0 +378,0 @@ };

@@ -189,2 +189,3 @@ "use strict";

fieldNumber: 4,
maxItems: constants_1.EVENT_MAX_TOPICS_PER_EVENT,
items: {

@@ -201,2 +202,3 @@ dataType: 'bytes',

fieldNumber: 6,
maximum: constants_1.MAX_EVENTS_PER_BLOCK - 1,
},

@@ -203,0 +205,0 @@ },

{
"name": "@liskhq/lisk-chain",
"version": "0.4.0-beta.1",
"version": "0.4.0-beta.2",
"description": "Blocks and state management implementation that are used for block processing according to the Lisk protocol",

@@ -20,3 +20,3 @@ "author": "Lisk Foundation <admin@lisk.com>, lightcurve GmbH <admin@lightcurve.io>",

"engines": {
"node": ">=16.14.1 <=16",
"node": ">=18.12.0 <=18",
"npm": ">=8.1.0"

@@ -39,12 +39,12 @@ },

"dependencies": {
"@liskhq/lisk-codec": "^0.3.0-beta.1",
"@liskhq/lisk-cryptography": "^4.0.0-beta.1",
"@liskhq/lisk-db": "0.3.5",
"@liskhq/lisk-tree": "^0.3.0-beta.1",
"@liskhq/lisk-utils": "^0.3.0-beta.1",
"@liskhq/lisk-validator": "^0.7.0-beta.1",
"@liskhq/lisk-codec": "^0.3.0-beta.2",
"@liskhq/lisk-cryptography": "^4.0.0-beta.2",
"@liskhq/lisk-db": "0.3.6",
"@liskhq/lisk-tree": "^0.3.0-beta.2",
"@liskhq/lisk-utils": "^0.3.0-beta.2",
"@liskhq/lisk-validator": "^0.7.0-beta.2",
"debug": "4.3.4"
},
"devDependencies": {
"@liskhq/lisk-passphrase": "^4.0.0-beta.1",
"@liskhq/lisk-passphrase": "^4.0.0-beta.2",
"@types/debug": "4.1.5",

@@ -54,3 +54,3 @@ "@types/faker": "4.1.10",

"@types/jest-when": "3.5.2",
"@types/node": "16.18.3",
"@types/node": "18.15.3",
"@types/randomstring": "1.1.6",

@@ -57,0 +57,0 @@ "@typescript-eslint/eslint-plugin": "5.44.0",

Sorry, the diff of this file is not supported yet

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