@chainsafe/lodestar-params
Advanced tools
Comparing version 0.12.0 to 0.13.0
@@ -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 = { |
@@ -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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
76563
37
863
0