@chainsafe/lodestar-config
Advanced tools
Comparing version 0.17.0 to 0.18.0
@@ -11,2 +11,4 @@ "use strict"; | ||
var _lodestarParams = require("@chainsafe/lodestar-params"); | ||
var _lodestarTypes = require("@chainsafe/lodestar-types"); | ||
@@ -34,2 +36,22 @@ | ||
getForkInfoRecord() { | ||
return { | ||
phase0: { | ||
name: "phase0", | ||
slot: _lodestarParams.GENESIS_SLOT, | ||
version: params.GENESIS_FORK_VERSION | ||
}, | ||
lightclient: { | ||
name: "lightclient", | ||
slot: params.LIGHTCLIENT_PATCH_FORK_SLOT, | ||
version: params.LIGHTCLIENT_PATCH_FORK_VERSION | ||
}, | ||
phase1: { | ||
name: "phase1", | ||
slot: params.PHASE_1_FORK_SLOT, | ||
version: params.PHASE_1_FORK_VERSION | ||
} | ||
}; | ||
}, | ||
getForkName(slot) { | ||
@@ -36,0 +58,0 @@ if (slot < params.LIGHTCLIENT_PATCH_FORK_SLOT) { |
import { IBeaconParams } from "@chainsafe/lodestar-params"; | ||
import { IBeaconSSZTypes, ILightclientSSZTypes, IPhase0SSZTypes, IPhase1SSZTypes, Slot, Version } from "@chainsafe/lodestar-types"; | ||
export declare type IForkName = "phase0" | "lightclient" | "phase1"; | ||
export interface IForkInfo { | ||
name: IForkName; | ||
slot: Slot; | ||
version: Version; | ||
} | ||
export interface IBeaconConfig { | ||
params: IBeaconParams; | ||
types: IBeaconSSZTypes; | ||
getForkInfoRecord(): Record<IForkName, IForkInfo>; | ||
/** | ||
@@ -8,0 +14,0 @@ * Get the hard-fork name at a given slot |
@@ -1,3 +0,3 @@ | ||
export declare const config: import("..").IBeaconConfig; | ||
export declare const mainnetConfig: import("..").IBeaconConfig; | ||
export declare const config: import("../interface").IBeaconConfig; | ||
export declare const mainnetConfig: import("../interface").IBeaconConfig; | ||
//# sourceMappingURL=mainnet.d.ts.map |
@@ -1,3 +0,3 @@ | ||
export declare const config: import("..").IBeaconConfig; | ||
export declare const minimalConfig: import("..").IBeaconConfig; | ||
export declare const config: import("../interface").IBeaconConfig; | ||
export declare const minimalConfig: import("../interface").IBeaconConfig; | ||
//# sourceMappingURL=minimal.d.ts.map |
{ | ||
"name": "@chainsafe/lodestar-config", | ||
"version": "0.17.0", | ||
"version": "0.18.0", | ||
"description": "Chain configuration required for lodestar", | ||
@@ -21,11 +21,11 @@ "author": "ChainSafe Systems", | ||
"scripts": { | ||
"clean": "rm -rf lib && rm -f tsconfig.tsbuildinfo", | ||
"clean": "rm -rf lib && rm -f *.tsbuildinfo", | ||
"build": "concurrently \"yarn build:lib\" \"yarn build:types\"", | ||
"build:release": "yarn run clean && yarn run build && yarn run build:typedocs", | ||
"build:types": "tsc --incremental --declaration --outDir lib --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:lib": "babel src -x .ts -d lib --source-maps", | ||
"build:lib:watch": "yarn run build:lib --watch", | ||
"build:typedocs": "typedoc --exclude src/index.ts --out typedocs src", | ||
"check-types": "tsc --noEmit", | ||
"check-types": "tsc", | ||
"lint": "eslint --color --ext .ts src/", | ||
@@ -47,6 +47,6 @@ "lint:fix": "yarn run lint --fix", | ||
"dependencies": { | ||
"@chainsafe/lodestar-params": "^0.17.0", | ||
"@chainsafe/lodestar-types": "^0.17.0" | ||
"@chainsafe/lodestar-params": "^0.18.0", | ||
"@chainsafe/lodestar-types": "^0.18.0" | ||
}, | ||
"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
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
23744
131
+ Added@chainsafe/lodestar-params@0.18.0(transitive)
+ Added@chainsafe/lodestar-types@0.18.0(transitive)
- Removed@chainsafe/lodestar-params@0.17.0(transitive)
- Removed@chainsafe/lodestar-types@0.17.0(transitive)