Socket
Socket
Sign inDemoInstall

@chainsafe/lodestar-params

Package Overview
Dependencies
Maintainers
4
Versions
846
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@chainsafe/lodestar-params - npm Package Compare versions

Comparing version 0.12.0 to 0.13.0

lib/presets/mainnet.d.ts.map

1

lib/beaconParams.js

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

/* eslint-disable @typescript-eslint/naming-convention */
const Number64 = new _ssz.NumberUintType({

@@ -12,0 +13,0 @@ byteLength: 8

@@ -7,2 +7,4 @@ "use strict";

exports.mainnetYaml = void 0;
/* eslint-disable @typescript-eslint/naming-convention */
// Mainnet preset

@@ -9,0 +11,0 @@ // Note: the intention of this file (for now) is to illustrate what a mainnet configuration could look like.

@@ -7,2 +7,4 @@ "use strict";

exports.minimalYaml = void 0;
/* eslint-disable @typescript-eslint/naming-convention */
// Minimal preset

@@ -9,0 +11,0 @@ const minimalYaml = {

6

lib/utils.js

@@ -17,7 +17,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]) {
params[fieldName] = fieldType.fromJson(input[fieldName]);
}
});
}
return params;

@@ -24,0 +26,0 @@ }

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

@@ -16,6 +16,8 @@ "author": "ChainSafe Systems",

"lib/**/*.js.map",
"lib/**/*.d.ts"
"lib/**/*.d.ts",
"mainnet.*",
"minimal.*"
],
"scripts": {
"clean": "rm -rf lib && rm -f tsconfig.tsbuildinfo",
"clean": "rm -rf lib && rm -f tsconfig.build.tsbuildinfo",
"build": "concurrently \"yarn build:lib\" \"yarn build:types\"",

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

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

@@ -51,3 +53,3 @@ "prepublishOnly": "yarn build",

},
"gitHead": "5162c9136854c8c0b3816bb7622468ee0f3cc61b"
"gitHead": "739f164b086dab2584b7a55d5bdeb69071542a75"
}

@@ -17,4 +17,4 @@ # lodestar-params

// mainnet and minimal presets are available under non-default exports
import {params as mainnetParams} from "@chainsafe/lodestar-params/lib/presets/mainnet";
import {params as minimalParams} from "@chainsafe/lodestar-params/lib/presets/mainnet";
import {params as mainnetParams} from "@chainsafe/lodestar-params/mainnet";
import {params as minimalParams} from "@chainsafe/lodestar-params/mainnet";

@@ -21,0 +21,0 @@ mainnetParams.SHARD_COUNT;

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc