Socket
Socket
Sign inDemoInstall

@chainsafe/lodestar-params

Package Overview
Dependencies
4
Maintainers
4
Versions
846
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.17.0 to 0.18.0

3

lib/lightclient/interface.d.ts

@@ -9,3 +9,6 @@ /// <reference types="node" />

LIGHTCLIENT_PATCH_FORK_SLOT: number;
HF1_INACTIVITY_PENALTY_QUOTIENT: bigint;
HF1_MIN_SLASHING_PENALTY_QUOTIENT: number;
HF1_PROPORTIONAL_SLASHING_MULTIPLIER: number;
}
//# sourceMappingURL=interface.d.ts.map

@@ -14,2 +14,5 @@ "use strict";

});
const BigInt64 = new _ssz.BigIntUintType({
byteLength: 8
});
const ByteVector4 = new _ssz.ByteVectorType({

@@ -25,3 +28,6 @@ length: 4

LIGHTCLIENT_PATCH_FORK_VERSION: ByteVector4,
LIGHTCLIENT_PATCH_FORK_SLOT: Number64
LIGHTCLIENT_PATCH_FORK_SLOT: Number64,
HF1_INACTIVITY_PENALTY_QUOTIENT: BigInt64,
HF1_MIN_SLASHING_PENALTY_QUOTIENT: Number64,
HF1_PROPORTIONAL_SLASHING_MULTIPLIER: Number64
}

@@ -28,0 +34,0 @@ });

@@ -8,4 +8,7 @@ export declare const lightclientJson: {

LIGHTCLIENT_PATCH_FORK_VERSION: string;
HF1_INACTIVITY_PENALTY_QUOTIENT: number;
HF1_MIN_SLASHING_PENALTY_QUOTIENT: number;
HF1_PROPORTIONAL_SLASHING_MULTIPLIER: number;
LIGHTCLIENT_PATCH_FORK_SLOT: string;
};
//# sourceMappingURL=lightclient.d.ts.map

@@ -18,2 +18,5 @@ "use strict";

LIGHTCLIENT_PATCH_FORK_VERSION: "0x01000000",
HF1_INACTIVITY_PENALTY_QUOTIENT: 50331648,
HF1_MIN_SLASHING_PENALTY_QUOTIENT: 64,
HF1_PROPORTIONAL_SLASHING_MULTIPLIER: 2,
LIGHTCLIENT_PATCH_FORK_SLOT: "0xffffffffffffffff"

@@ -20,0 +23,0 @@ };

@@ -8,4 +8,7 @@ export declare const lightclientJson: {

LIGHTCLIENT_PATCH_FORK_VERSION: string;
HF1_INACTIVITY_PENALTY_QUOTIENT: number;
HF1_MIN_SLASHING_PENALTY_QUOTIENT: number;
HF1_PROPORTIONAL_SLASHING_MULTIPLIER: number;
LIGHTCLIENT_PATCH_FORK_SLOT: string;
};
//# sourceMappingURL=lightclient.d.ts.map

@@ -16,2 +16,5 @@ "use strict";

LIGHTCLIENT_PATCH_FORK_VERSION: "0x01000000",
HF1_INACTIVITY_PENALTY_QUOTIENT: 50331648,
HF1_MIN_SLASHING_PENALTY_QUOTIENT: 64,
HF1_PROPORTIONAL_SLASHING_MULTIPLIER: 2,
LIGHTCLIENT_PATCH_FORK_SLOT: "0xffffffffffffffff"

@@ -18,0 +21,0 @@ };

7

lib/utils.js

@@ -16,7 +16,9 @@ "use strict";

const params = {};
Object.entries(_beaconParams.BeaconParams.fields).forEach(([fieldName, fieldType]) => {
for (const [fieldName, fieldType] of Object.entries(_beaconParams.BeaconParams.fields)) {
if (input[fieldName] != null) {
params[fieldName] = fieldType.fromJson(input[fieldName]);
}
});
}
return params;

@@ -36,2 +38,3 @@ }

construct: function (data) {
// eslint-disable-next-line @typescript-eslint/no-unsafe-return
return data !== null ? data : "";

@@ -38,0 +41,0 @@ }

{
"name": "@chainsafe/lodestar-params",
"version": "0.17.0",
"version": "0.18.0",
"description": "Chain parameters required for lodestar",

@@ -21,3 +21,3 @@ "author": "ChainSafe Systems",

"scripts": {
"clean": "rm -rf lib && rm -f tsconfig.build.tsbuildinfo",
"clean": "rm -rf lib && rm -f *.tsbuildinfo",
"build": "concurrently \"yarn build:lib\" \"yarn build:types\"",

@@ -27,6 +27,6 @@ "build:release": "yarn clean && yarn build",

"build:lib:watch": "yarn run build:lib --watch",
"build:types": "tsc --incremental --declaration --outDir lib --project tsconfig.build.json --emitDeclarationOnly",
"build:types:watch": "yarn run build:types --watch --preserveWatchOutput",
"build:types": "tsc -p tsconfig.build.json",
"build:types:watch": "yarn run build:types --watch",
"build:typedocs": "typedoc --exclude src/index.ts --out typedocs src",
"check-types": "tsc --noEmit",
"check-types": "tsc",
"lint": "eslint --color --ext .ts src/ test/",

@@ -55,3 +55,3 @@ "lint:fix": "yarn run lint --fix",

},
"gitHead": "083db35cb33eb46e5e4ea6d647dccbfc0854a1b2"
"gitHead": "8fb7fc3a6f6bc0a7d02838eef5b32e2d2f5c205a"
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc