Socket
Socket
Sign inDemoInstall

@chainsafe/lodestar-params

Package Overview
Dependencies
Maintainers
3
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.22.0 to 0.23.0

2

lib/altair/interface.d.ts
/// <reference types="node" />
export interface IAltairParams {
SYNC_COMMITTEE_SIZE: number;
SYNC_PUBKEYS_PER_AGGREGATE: number;
INACTIVITY_SCORE_BIAS: bigint;
INACTIVITY_SCORE_RECOVERY_RATE: bigint;
EPOCHS_PER_SYNC_COMMITTEE_PERIOD: number;

@@ -7,0 +7,0 @@ DOMAIN_SYNC_COMMITTEE: Buffer;

@@ -23,4 +23,4 @@ "use strict";

SYNC_COMMITTEE_SIZE: Number64,
SYNC_PUBKEYS_PER_AGGREGATE: Number64,
INACTIVITY_SCORE_BIAS: BigInt64,
INACTIVITY_SCORE_RECOVERY_RATE: BigInt64,
EPOCHS_PER_SYNC_COMMITTEE_PERIOD: Number64,

@@ -27,0 +27,0 @@ DOMAIN_SYNC_COMMITTEE: ByteVector4,

@@ -10,14 +10,6 @@ export declare const GENESIS_SLOT = 0;

export declare const ATTESTATION_SUBNET_COUNT = 64;
export declare const SYNC_COMMITTEE_SUBNET_COUNT = 8;
export declare const SYNC_COMMITTEE_SUBNET_COUNT = 4;
export declare const MIN_SYNC_COMMITTEE_PARTICIPANTS = 1;
export declare const LIGHT_CLIENT_UPDATE_TIMEOUT: number;
/**
* ```ts
* BigInt(2 ** 64) - BigInt(1);
* ```
* But approximated to `Number.MAX_SAFE_INTEGER`
*/
export declare const MAX_VALID_LIGHT_CLIENT_UPDATES: number;
/**
* ```ts
* config.types.altair.BeaconState.getPathGindex(["finalizedCheckpoint", "root"])

@@ -24,0 +16,0 @@ * ```

@@ -6,3 +6,3 @@ "use strict";

});
exports.NEXT_SYNC_COMMITTEE_INDEX_FLOORLOG2 = exports.NEXT_SYNC_COMMITTEE_INDEX = exports.FINALIZED_ROOT_INDEX_FLOORLOG2 = exports.FINALIZED_ROOT_INDEX = exports.MAX_VALID_LIGHT_CLIENT_UPDATES = exports.LIGHT_CLIENT_UPDATE_TIMEOUT = exports.MIN_SYNC_COMMITTEE_PARTICIPANTS = exports.SYNC_COMMITTEE_SUBNET_COUNT = exports.ATTESTATION_SUBNET_COUNT = exports.MAX_REQUEST_BLOCKS = exports.JUSTIFICATION_BITS_LENGTH = exports.DEPOSIT_CONTRACT_TREE_DEPTH = exports.BASE_REWARDS_PER_EPOCH = exports.FAR_FUTURE_EPOCH = exports.GENESIS_EPOCH = exports.GENESIS_SLOT = void 0;
exports.NEXT_SYNC_COMMITTEE_INDEX_FLOORLOG2 = exports.NEXT_SYNC_COMMITTEE_INDEX = exports.FINALIZED_ROOT_INDEX_FLOORLOG2 = exports.FINALIZED_ROOT_INDEX = exports.MIN_SYNC_COMMITTEE_PARTICIPANTS = exports.SYNC_COMMITTEE_SUBNET_COUNT = exports.ATTESTATION_SUBNET_COUNT = exports.MAX_REQUEST_BLOCKS = exports.JUSTIFICATION_BITS_LENGTH = exports.DEPOSIT_CONTRACT_TREE_DEPTH = exports.BASE_REWARDS_PER_EPOCH = exports.FAR_FUTURE_EPOCH = exports.GENESIS_EPOCH = exports.GENESIS_SLOT = void 0;
const GENESIS_SLOT = 0;

@@ -26,23 +26,11 @@ exports.GENESIS_SLOT = GENESIS_SLOT;

exports.MAX_REQUEST_BLOCKS = MAX_REQUEST_BLOCKS;
const ATTESTATION_SUBNET_COUNT = 64; // Altair - TODO: Make sure it's not included in the spec
const ATTESTATION_SUBNET_COUNT = 64; // https://github.com/ethereum/eth2.0-specs/blob/v1.1.0-alpha.5/specs/altair/validator.md
exports.ATTESTATION_SUBNET_COUNT = ATTESTATION_SUBNET_COUNT;
const SYNC_COMMITTEE_SUBNET_COUNT = 8;
const SYNC_COMMITTEE_SUBNET_COUNT = 4;
exports.SYNC_COMMITTEE_SUBNET_COUNT = SYNC_COMMITTEE_SUBNET_COUNT;
const MIN_SYNC_COMMITTEE_PARTICIPANTS = 1; //~27 hours
const MIN_SYNC_COMMITTEE_PARTICIPANTS = 1; // Lightclient pre-computed
exports.MIN_SYNC_COMMITTEE_PARTICIPANTS = MIN_SYNC_COMMITTEE_PARTICIPANTS;
const LIGHT_CLIENT_UPDATE_TIMEOUT = 2 ** 13; // Lightclient pre-computed
/**
* ```ts
* BigInt(2 ** 64) - BigInt(1);
* ```
* But approximated to `Number.MAX_SAFE_INTEGER`
*/
exports.LIGHT_CLIENT_UPDATE_TIMEOUT = LIGHT_CLIENT_UPDATE_TIMEOUT;
const MAX_VALID_LIGHT_CLIENT_UPDATES = Number.MAX_SAFE_INTEGER;
/**
* ```ts
* config.types.altair.BeaconState.getPathGindex(["finalizedCheckpoint", "root"])

@@ -52,3 +40,3 @@ * ```

exports.MAX_VALID_LIGHT_CLIENT_UPDATES = MAX_VALID_LIGHT_CLIENT_UPDATES;
exports.MIN_SYNC_COMMITTEE_PARTICIPANTS = MIN_SYNC_COMMITTEE_PARTICIPANTS;
const FINALIZED_ROOT_INDEX = 105;

@@ -55,0 +43,0 @@ /**

export declare const altairJson: {
CONFIG_NAME: string;
SYNC_COMMITTEE_SIZE: number;
SYNC_PUBKEYS_PER_AGGREGATE: number;
INACTIVITY_SCORE_BIAS: number;
INACTIVITY_SCORE_RECOVERY_RATE: number;
EPOCHS_PER_SYNC_COMMITTEE_PERIOD: number;

@@ -7,0 +7,0 @@ DOMAIN_SYNC_COMMITTEE: string;

@@ -11,8 +11,8 @@ "use strict";

CONFIG_NAME: "mainnet",
// 2**10 (=1,024)
SYNC_COMMITTEE_SIZE: 1024,
// 2**6 (=64)
SYNC_PUBKEYS_PER_AGGREGATE: 64,
// 2**9 (=512)
SYNC_COMMITTEE_SIZE: 512,
INACTIVITY_SCORE_BIAS: 4,
EPOCHS_PER_SYNC_COMMITTEE_PERIOD: 256,
// 2**4 (= 16)
INACTIVITY_SCORE_RECOVERY_RATE: 16,
EPOCHS_PER_SYNC_COMMITTEE_PERIOD: 512,
DOMAIN_SYNC_COMMITTEE: "0x07000000",

@@ -19,0 +19,0 @@ DOMAIN_SYNC_COMMITTEE_SELECTION_PROOF: "0x08000000",

import { IBeaconParams } from "../../interface";
export declare const commit = "66e1a2858f9fbebf5e00539d1a34b78025673d37";
export declare const commit = "v1.1.0-alpha.5";
export declare const params: IBeaconParams;
//# sourceMappingURL=index.d.ts.map

@@ -20,4 +20,3 @@ "use strict";

// Apr 21 commit, waiting for "v1.1.0-alpha.4"
const commit = "66e1a2858f9fbebf5e00539d1a34b78025673d37";
const commit = "v1.1.0-alpha.5";
exports.commit = commit;

@@ -24,0 +23,0 @@ const params = (0, _utils.createIBeaconParams)(_objectSpread(_objectSpread({}, _phase.phase0Json), _altair.altairJson));

export declare const altairJson: {
CONFIG_NAME: string;
SYNC_COMMITTEE_SIZE: number;
SYNC_PUBKEYS_PER_AGGREGATE: number;
INACTIVITY_SCORE_BIAS: number;
INACTIVITY_SCORE_RECOVERY_RATE: number;
EPOCHS_PER_SYNC_COMMITTEE_PERIOD: number;

@@ -7,0 +7,0 @@ DOMAIN_SYNC_COMMITTEE: string;

@@ -12,4 +12,4 @@ "use strict";

SYNC_COMMITTEE_SIZE: 32,
SYNC_PUBKEYS_PER_AGGREGATE: 16,
INACTIVITY_SCORE_BIAS: 4,
INACTIVITY_SCORE_RECOVERY_RATE: 16,
EPOCHS_PER_SYNC_COMMITTEE_PERIOD: 8,

@@ -16,0 +16,0 @@ DOMAIN_SYNC_COMMITTEE: "0x07000000",

import { IBeaconParams } from "../../interface";
export declare const commit = "66e1a2858f9fbebf5e00539d1a34b78025673d37";
export declare const commit = "v1.1.0-alpha.5";
export declare const params: IBeaconParams;
//# sourceMappingURL=index.d.ts.map

@@ -20,4 +20,3 @@ "use strict";

// Apr 21 commit, waiting for "v1.1.0-alpha.4"
const commit = "66e1a2858f9fbebf5e00539d1a34b78025673d37";
const commit = "v1.1.0-alpha.5";
exports.commit = commit;

@@ -24,0 +23,0 @@ const params = (0, _utils.createIBeaconParams)(_objectSpread(_objectSpread({}, _phase.phase0Json), _altair.altairJson));

@@ -19,3 +19,8 @@ "use strict";

if (input[fieldName] != null) {
params[fieldName] = fieldType.fromJson(input[fieldName]);
try {
params[fieldName] = fieldType.fromJson(input[fieldName]);
} catch (e) {
e.message = `Error parsing '${fieldName}': ${e.message}`;
throw e;
}
}

@@ -22,0 +27,0 @@ }

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

@@ -48,8 +48,10 @@ "author": "ChainSafe Systems",

"dependencies": {
"@chainsafe/ssz": "^0.8.5",
"@types/js-yaml": "^3.12.2",
"axios": "^0.21.0",
"@chainsafe/ssz": "^0.8.7",
"js-yaml": "^3.13.1"
},
"gitHead": "c37afddf34e0459c9c2991c8902ea14c9a947fc0"
"devDependencies": {
"@types/js-yaml": "^3.12.2",
"axios": "^0.21.0"
},
"gitHead": "8f4e720c0ed5b701149e2b432c22f0c2b536555a"
}

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

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