@chainsafe/lodestar-params
Advanced tools
Comparing version 0.17.0 to 0.18.0
@@ -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 @@ }; |
@@ -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
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
123454
1407
0