@lodestar/params 1.28.0-dev.b785bbdedf → 1.28.0-dev.ca29dbb8ed
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/forkName.d.ts +13 -11
- package/lib/forkName.js +2 -0
- package/lib/forkName.js.map +1 -1
- package/lib/index.d.ts +14 -15
- package/package.json +5 -8
package/lib/forkName.d.ts
CHANGED
|
@@ -7,7 +7,8 @@ export declare enum ForkName {
|
|
|
7
7
|
bellatrix = "bellatrix",
|
|
8
8
|
capella = "capella",
|
|
9
9
|
deneb = "deneb",
|
|
10
|
-
electra = "electra"
|
|
10
|
+
electra = "electra",
|
|
11
|
+
fulu = "fulu"
|
|
11
12
|
}
|
|
12
13
|
/**
|
|
13
14
|
* Fork sequence number in order of occurrence
|
|
@@ -18,7 +19,8 @@ export declare enum ForkSeq {
|
|
|
18
19
|
bellatrix = 2,
|
|
19
20
|
capella = 3,
|
|
20
21
|
deneb = 4,
|
|
21
|
-
electra = 5
|
|
22
|
+
electra = 5,
|
|
23
|
+
fulu = 6
|
|
22
24
|
}
|
|
23
25
|
export declare function highestFork<F extends ForkName>(forkNames: F[]): F;
|
|
24
26
|
export declare function lowestFork<F extends ForkName>(forkNames: F[]): F;
|
|
@@ -26,23 +28,23 @@ export type ForkAll = ForkName;
|
|
|
26
28
|
export declare const forkAll: ForkName[];
|
|
27
29
|
export type ForkPreAltair = ForkName.phase0;
|
|
28
30
|
export type ForkPostAltair = Exclude<ForkName, ForkPreAltair>;
|
|
29
|
-
export declare const forkPostAltair: (ForkName.altair | ForkName.bellatrix | ForkName.capella | ForkName.deneb | ForkName.electra)[];
|
|
31
|
+
export declare const forkPostAltair: (ForkName.altair | ForkName.bellatrix | ForkName.capella | ForkName.deneb | ForkName.electra | ForkName.fulu)[];
|
|
30
32
|
export declare function isForkPostAltair(fork: ForkName): fork is ForkPostAltair;
|
|
31
33
|
export type ForkPreBellatrix = ForkPreAltair | ForkName.altair;
|
|
32
34
|
export type ForkPostBellatrix = Exclude<ForkName, ForkPreBellatrix>;
|
|
33
|
-
export declare const forkPostBellatrix: (ForkName.bellatrix | ForkName.capella | ForkName.deneb | ForkName.electra)[];
|
|
35
|
+
export declare const forkPostBellatrix: (ForkName.bellatrix | ForkName.capella | ForkName.deneb | ForkName.electra | ForkName.fulu)[];
|
|
34
36
|
export declare function isForkPostBellatrix(fork: ForkName): fork is ForkPostBellatrix;
|
|
35
37
|
export type ForkPreCapella = ForkPreBellatrix | ForkName.bellatrix;
|
|
36
38
|
export type ForkPostCapella = Exclude<ForkName, ForkPreCapella>;
|
|
37
|
-
export declare const forkPostCapella: (ForkName.capella | ForkName.deneb | ForkName.electra)[];
|
|
39
|
+
export declare const forkPostCapella: (ForkName.capella | ForkName.deneb | ForkName.electra | ForkName.fulu)[];
|
|
38
40
|
export declare function isForkPostCapella(fork: ForkName): fork is ForkPostCapella;
|
|
39
41
|
export type ForkPreDeneb = ForkPreCapella | ForkName.capella;
|
|
40
42
|
export type ForkPostDeneb = Exclude<ForkName, ForkPreDeneb>;
|
|
41
|
-
export declare const forkPostDeneb: (ForkName.deneb | ForkName.electra)[];
|
|
43
|
+
export declare const forkPostDeneb: (ForkName.deneb | ForkName.electra | ForkName.fulu)[];
|
|
42
44
|
export declare function isForkPostDeneb(fork: ForkName): fork is ForkPostDeneb;
|
|
43
45
|
export type ForkPreElectra = ForkPreDeneb | ForkName.deneb;
|
|
44
46
|
export type ForkPostElectra = Exclude<ForkName, ForkPreElectra>;
|
|
45
|
-
export declare const forkPostElectra: ForkName.electra[];
|
|
47
|
+
export declare const forkPostElectra: (ForkName.electra | ForkName.fulu)[];
|
|
46
48
|
export declare function isForkPostElectra(fork: ForkName): fork is ForkPostElectra;
|
|
47
49
|
/**
|
|
48
50
|
* @deprecated Use `ForkPostAltair` instead.
|
|
@@ -75,7 +77,7 @@ export type ForkBlobs = ForkPostDeneb;
|
|
|
75
77
|
/**
|
|
76
78
|
* @deprecated Use `forkPostAltair` instead.
|
|
77
79
|
*/
|
|
78
|
-
export declare const forkLightClient: (ForkName.altair | ForkName.bellatrix | ForkName.capella | ForkName.deneb | ForkName.electra)[];
|
|
80
|
+
export declare const forkLightClient: (ForkName.altair | ForkName.bellatrix | ForkName.capella | ForkName.deneb | ForkName.electra | ForkName.fulu)[];
|
|
79
81
|
/**
|
|
80
82
|
* @deprecated Use `isForkPostAltair` instead.
|
|
81
83
|
*/
|
|
@@ -83,7 +85,7 @@ export declare const isForkLightClient: typeof isForkPostAltair;
|
|
|
83
85
|
/**
|
|
84
86
|
* @deprecated Use `forkPostBellatrix` instead.
|
|
85
87
|
*/
|
|
86
|
-
export declare const forkExecution: (ForkName.bellatrix | ForkName.capella | ForkName.deneb | ForkName.electra)[];
|
|
88
|
+
export declare const forkExecution: (ForkName.bellatrix | ForkName.capella | ForkName.deneb | ForkName.electra | ForkName.fulu)[];
|
|
87
89
|
/**
|
|
88
90
|
* @deprecated Use `isForkPostBellatrix` instead.
|
|
89
91
|
*/
|
|
@@ -91,7 +93,7 @@ export declare const isForkExecution: typeof isForkPostBellatrix;
|
|
|
91
93
|
/**
|
|
92
94
|
* @deprecated Use `forkPostCapella` instead.
|
|
93
95
|
*/
|
|
94
|
-
export declare const forkWithdrawals: (ForkName.capella | ForkName.deneb | ForkName.electra)[];
|
|
96
|
+
export declare const forkWithdrawals: (ForkName.capella | ForkName.deneb | ForkName.electra | ForkName.fulu)[];
|
|
95
97
|
/**
|
|
96
98
|
* @deprecated Use `isForkPostCapella` instead.
|
|
97
99
|
*/
|
|
@@ -99,7 +101,7 @@ export declare const isForkWithdrawals: typeof isForkPostCapella;
|
|
|
99
101
|
/**
|
|
100
102
|
* @deprecated Use `forkPostDeneb` instead.
|
|
101
103
|
*/
|
|
102
|
-
export declare const forkBlobs: (ForkName.deneb | ForkName.electra)[];
|
|
104
|
+
export declare const forkBlobs: (ForkName.deneb | ForkName.electra | ForkName.fulu)[];
|
|
103
105
|
/**
|
|
104
106
|
* @deprecated Use `isForkPostDeneb` instead.
|
|
105
107
|
*/
|
package/lib/forkName.js
CHANGED
|
@@ -9,6 +9,7 @@ export var ForkName;
|
|
|
9
9
|
ForkName["capella"] = "capella";
|
|
10
10
|
ForkName["deneb"] = "deneb";
|
|
11
11
|
ForkName["electra"] = "electra";
|
|
12
|
+
ForkName["fulu"] = "fulu";
|
|
12
13
|
})(ForkName || (ForkName = {}));
|
|
13
14
|
/**
|
|
14
15
|
* Fork sequence number in order of occurrence
|
|
@@ -21,6 +22,7 @@ export var ForkSeq;
|
|
|
21
22
|
ForkSeq[ForkSeq["capella"] = 3] = "capella";
|
|
22
23
|
ForkSeq[ForkSeq["deneb"] = 4] = "deneb";
|
|
23
24
|
ForkSeq[ForkSeq["electra"] = 5] = "electra";
|
|
25
|
+
ForkSeq[ForkSeq["fulu"] = 6] = "fulu";
|
|
24
26
|
})(ForkSeq || (ForkSeq = {}));
|
|
25
27
|
function exclude(coll, val) {
|
|
26
28
|
return coll.filter((f) => !val.includes(f));
|
package/lib/forkName.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"forkName.js","sourceRoot":"","sources":["../src/forkName.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,CAAN,IAAY,
|
|
1
|
+
{"version":3,"file":"forkName.js","sourceRoot":"","sources":["../src/forkName.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,CAAN,IAAY,QAQX;AARD,WAAY,QAAQ;IAClB,6BAAiB,CAAA;IACjB,6BAAiB,CAAA;IACjB,mCAAuB,CAAA;IACvB,+BAAmB,CAAA;IACnB,2BAAe,CAAA;IACf,+BAAmB,CAAA;IACnB,yBAAa,CAAA;AACf,CAAC,EARW,QAAQ,KAAR,QAAQ,QAQnB;AAED;;GAEG;AACH,MAAM,CAAN,IAAY,OAQX;AARD,WAAY,OAAO;IACjB,yCAAU,CAAA;IACV,yCAAU,CAAA;IACV,+CAAa,CAAA;IACb,2CAAW,CAAA;IACX,u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,iBAAiB,GAAG,gBAAgB,CAAC;AAClD;;GAEG;AACH,MAAM,CAAC,MAAM,aAAa,GAAG,iBAAiB,CAAC;AAC/C;;GAEG;AACH,MAAM,CAAC,MAAM,eAAe,GAAG,mBAAmB,CAAC;AACnD;;GAEG;AACH,MAAM,CAAC,MAAM,eAAe,GAAG,eAAe,CAAC;AAC/C;;GAEG;AACH,MAAM,CAAC,MAAM,iBAAiB,GAAG,iBAAiB,CAAC;AACnD;;GAEG;AACH,MAAM,CAAC,MAAM,SAAS,GAAG,aAAa,CAAC;AACvC;;GAEG;AACH,MAAM,CAAC,MAAM,WAAW,GAAG,eAAe,CAAC"}
|
package/lib/index.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="node" />
|
|
2
1
|
import { PresetName } from "./presetName.js";
|
|
3
2
|
export type { BeaconPreset } from "./types.js";
|
|
4
3
|
export * from "./forkName.js";
|
|
@@ -88,30 +87,30 @@ export declare const FAR_FUTURE_EPOCH: number;
|
|
|
88
87
|
export declare const BASE_REWARDS_PER_EPOCH = 4;
|
|
89
88
|
export declare const DEPOSIT_CONTRACT_TREE_DEPTH: number;
|
|
90
89
|
export declare const JUSTIFICATION_BITS_LENGTH = 4;
|
|
91
|
-
export declare const ZERO_HASH: Buffer
|
|
90
|
+
export declare const ZERO_HASH: Buffer<ArrayBuffer>;
|
|
92
91
|
export declare const ZERO_HASH_HEX: string;
|
|
93
92
|
export declare const BLS_WITHDRAWAL_PREFIX = 0;
|
|
94
93
|
export declare const ETH1_ADDRESS_WITHDRAWAL_PREFIX = 1;
|
|
95
94
|
export declare const COMPOUNDING_WITHDRAWAL_PREFIX = 2;
|
|
96
|
-
export declare const DOMAIN_BEACON_PROPOSER: Uint8Array
|
|
97
|
-
export declare const DOMAIN_BEACON_ATTESTER: Uint8Array
|
|
98
|
-
export declare const DOMAIN_RANDAO: Uint8Array
|
|
99
|
-
export declare const DOMAIN_DEPOSIT: Uint8Array
|
|
100
|
-
export declare const DOMAIN_VOLUNTARY_EXIT: Uint8Array
|
|
101
|
-
export declare const DOMAIN_SELECTION_PROOF: Uint8Array
|
|
102
|
-
export declare const DOMAIN_AGGREGATE_AND_PROOF: Uint8Array
|
|
103
|
-
export declare const DOMAIN_SYNC_COMMITTEE: Uint8Array
|
|
104
|
-
export declare const DOMAIN_SYNC_COMMITTEE_SELECTION_PROOF: Uint8Array
|
|
105
|
-
export declare const DOMAIN_CONTRIBUTION_AND_PROOF: Uint8Array
|
|
106
|
-
export declare const DOMAIN_BLS_TO_EXECUTION_CHANGE: Uint8Array
|
|
95
|
+
export declare const DOMAIN_BEACON_PROPOSER: Uint8Array<ArrayBuffer>;
|
|
96
|
+
export declare const DOMAIN_BEACON_ATTESTER: Uint8Array<ArrayBuffer>;
|
|
97
|
+
export declare const DOMAIN_RANDAO: Uint8Array<ArrayBuffer>;
|
|
98
|
+
export declare const DOMAIN_DEPOSIT: Uint8Array<ArrayBuffer>;
|
|
99
|
+
export declare const DOMAIN_VOLUNTARY_EXIT: Uint8Array<ArrayBuffer>;
|
|
100
|
+
export declare const DOMAIN_SELECTION_PROOF: Uint8Array<ArrayBuffer>;
|
|
101
|
+
export declare const DOMAIN_AGGREGATE_AND_PROOF: Uint8Array<ArrayBuffer>;
|
|
102
|
+
export declare const DOMAIN_SYNC_COMMITTEE: Uint8Array<ArrayBuffer>;
|
|
103
|
+
export declare const DOMAIN_SYNC_COMMITTEE_SELECTION_PROOF: Uint8Array<ArrayBuffer>;
|
|
104
|
+
export declare const DOMAIN_CONTRIBUTION_AND_PROOF: Uint8Array<ArrayBuffer>;
|
|
105
|
+
export declare const DOMAIN_BLS_TO_EXECUTION_CHANGE: Uint8Array<ArrayBuffer>;
|
|
107
106
|
/**
|
|
108
107
|
* `DOMAIN_APPLICATION_MASK` reserves the rest of the bitspace in `DomainType` for application
|
|
109
108
|
* usage. This means for some `DomainType` `DOMAIN_SOME_APPLICATION`, `DOMAIN_SOME_APPLICATION
|
|
110
109
|
* & DOMAIN_APPLICATION_MASK` **MUST** be non-zero. This expression for any other `DomainType`
|
|
111
110
|
* in the consensus specs **MUST** be zero.
|
|
112
111
|
*/
|
|
113
|
-
export declare const DOMAIN_APPLICATION_MASK: Uint8Array
|
|
114
|
-
export declare const DOMAIN_APPLICATION_BUILDER: Uint8Array
|
|
112
|
+
export declare const DOMAIN_APPLICATION_MASK: Uint8Array<ArrayBuffer>;
|
|
113
|
+
export declare const DOMAIN_APPLICATION_BUILDER: Uint8Array<ArrayBuffer>;
|
|
115
114
|
export declare const TIMELY_SOURCE_FLAG_INDEX = 0;
|
|
116
115
|
export declare const TIMELY_TARGET_FLAG_INDEX = 1;
|
|
117
116
|
export declare const TIMELY_HEAD_FLAG_INDEX = 2;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lodestar/params",
|
|
3
|
-
"version": "1.28.0-dev.
|
|
3
|
+
"version": "1.28.0-dev.ca29dbb8ed",
|
|
4
4
|
"description": "Chain parameters required for lodestar",
|
|
5
5
|
"author": "ChainSafe Systems",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -53,12 +53,9 @@
|
|
|
53
53
|
"lint": "biome check src/ test/",
|
|
54
54
|
"lint:fix": "yarn run lint --write",
|
|
55
55
|
"test": "yarn test:unit",
|
|
56
|
-
"test:unit": "vitest
|
|
57
|
-
"test:browsers": "
|
|
58
|
-
"test:
|
|
59
|
-
"test:browsers:firefox": "vitest --run --browser firefox --config ./vitest.browser.config.ts --dir test/unit",
|
|
60
|
-
"test:browsers:electron": "echo 'Electron tests will be introduced back in the future as soon vitest supports electron.'",
|
|
61
|
-
"test:e2e": "vitest --run --config vitest.e2e.config.ts --dir test/e2e/",
|
|
56
|
+
"test:unit": "vitest run --dir test/unit/",
|
|
57
|
+
"test:browsers": "vitest run --config ./vitest.browser.config.ts --dir test/unit",
|
|
58
|
+
"test:e2e": "vitest run --config vitest.e2e.config.ts --dir test/e2e/",
|
|
62
59
|
"check-readme": "typescript-docs-verifier"
|
|
63
60
|
},
|
|
64
61
|
"repository": {
|
|
@@ -76,5 +73,5 @@
|
|
|
76
73
|
"axios": "^1.3.4",
|
|
77
74
|
"js-yaml": "^4.1.0"
|
|
78
75
|
},
|
|
79
|
-
"gitHead": "
|
|
76
|
+
"gitHead": "ea1c1ca99220db9d708bc12ccb958cfacd0bd201"
|
|
80
77
|
}
|