@lodestar/era 1.41.0-dev.bb33751bfd → 1.41.0-dev.be5acbb8f7
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/era/reader.d.ts +1 -1
- package/lib/era/util.d.ts +1 -1
- package/package.json +7 -7
- package/src/e2s.ts +1 -1
- package/src/era/reader.ts +3 -3
- package/src/era/util.ts +2 -2
- package/src/era/writer.ts +3 -3
package/lib/era/reader.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { type FileHandle } from "node:fs/promises";
|
|
2
2
|
import { ChainForkConfig } from "@lodestar/config";
|
|
3
3
|
import { BeaconState, SignedBeaconBlock, Slot } from "@lodestar/types";
|
|
4
|
-
import { EraIndices } from "./util.
|
|
4
|
+
import { EraIndices } from "./util.js";
|
|
5
5
|
/**
|
|
6
6
|
* EraReader is responsible for reading and validating ERA files.
|
|
7
7
|
*
|
package/lib/era/util.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { FileHandle } from "node:fs/promises";
|
|
2
2
|
import { ChainForkConfig } from "@lodestar/config";
|
|
3
3
|
import { BeaconState, Slot } from "@lodestar/types";
|
|
4
|
-
import { SlotIndex } from "../e2s.
|
|
4
|
+
import { SlotIndex } from "../e2s.js";
|
|
5
5
|
/**
|
|
6
6
|
* Parsed components of an .era file name.
|
|
7
7
|
* Format: <config-name>-<era-number>-<short-historical-root>.era
|
package/package.json
CHANGED
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"bugs": {
|
|
12
12
|
"url": "https://github.com/ChainSafe/lodestar/issues"
|
|
13
13
|
},
|
|
14
|
-
"version": "1.41.0-dev.
|
|
14
|
+
"version": "1.41.0-dev.be5acbb8f7",
|
|
15
15
|
"type": "module",
|
|
16
16
|
"exports": {
|
|
17
17
|
".": {
|
|
@@ -40,12 +40,12 @@
|
|
|
40
40
|
},
|
|
41
41
|
"dependencies": {
|
|
42
42
|
"@chainsafe/blst": "^2.2.0",
|
|
43
|
-
"@lodestar/config": "^1.41.0-dev.
|
|
44
|
-
"@lodestar/params": "^1.41.0-dev.
|
|
45
|
-
"@lodestar/reqresp": "^1.41.0-dev.
|
|
46
|
-
"@lodestar/types": "^1.41.0-dev.
|
|
47
|
-
"@lodestar/utils": "^1.41.0-dev.
|
|
43
|
+
"@lodestar/config": "^1.41.0-dev.be5acbb8f7",
|
|
44
|
+
"@lodestar/params": "^1.41.0-dev.be5acbb8f7",
|
|
45
|
+
"@lodestar/reqresp": "^1.41.0-dev.be5acbb8f7",
|
|
46
|
+
"@lodestar/types": "^1.41.0-dev.be5acbb8f7",
|
|
47
|
+
"@lodestar/utils": "^1.41.0-dev.be5acbb8f7",
|
|
48
48
|
"uint8arraylist": "^2.4.7"
|
|
49
49
|
},
|
|
50
|
-
"gitHead": "
|
|
50
|
+
"gitHead": "daf32e31b38dd272b28016e37de0d0419ce72864"
|
|
51
51
|
}
|
package/src/e2s.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type {FileHandle} from "node:fs/promises";
|
|
2
2
|
import {Slot} from "@lodestar/types";
|
|
3
3
|
import {byteArrayEquals} from "@lodestar/utils";
|
|
4
|
-
import {readInt48, readUint16, readUint32, writeInt48, writeUint16, writeUint32} from "./util.
|
|
4
|
+
import {readInt48, readUint16, readUint32, writeInt48, writeUint16, writeUint32} from "./util.js";
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
7
|
* Known entry types in an E2Store (.e2s) file along with their exact 2-byte codes.
|
package/src/era/reader.ts
CHANGED
|
@@ -5,15 +5,15 @@ import {ChainForkConfig, createCachedGenesis} from "@lodestar/config";
|
|
|
5
5
|
import {DOMAIN_BEACON_PROPOSER, GENESIS_SLOT, SLOTS_PER_HISTORICAL_ROOT} from "@lodestar/params";
|
|
6
6
|
import {BeaconState, SignedBeaconBlock, Slot, ssz} from "@lodestar/types";
|
|
7
7
|
import {byteArrayEquals} from "@lodestar/utils";
|
|
8
|
-
import {E2STORE_HEADER_SIZE, EntryType, readEntry, readVersion} from "../e2s.
|
|
9
|
-
import {snappyUncompress} from "../util.
|
|
8
|
+
import {E2STORE_HEADER_SIZE, EntryType, readEntry, readVersion} from "../e2s.js";
|
|
9
|
+
import {snappyUncompress} from "../util.js";
|
|
10
10
|
import {
|
|
11
11
|
EraIndices,
|
|
12
12
|
computeEraNumberFromBlockSlot,
|
|
13
13
|
parseEraName,
|
|
14
14
|
readAllEraIndices,
|
|
15
15
|
readSlotFromBeaconStateBytes,
|
|
16
|
-
} from "./util.
|
|
16
|
+
} from "./util.js";
|
|
17
17
|
|
|
18
18
|
/**
|
|
19
19
|
* EraReader is responsible for reading and validating ERA files.
|
package/src/era/util.ts
CHANGED
|
@@ -2,8 +2,8 @@ import type {FileHandle} from "node:fs/promises";
|
|
|
2
2
|
import {ChainForkConfig} from "@lodestar/config";
|
|
3
3
|
import {SLOTS_PER_HISTORICAL_ROOT, isForkPostCapella} from "@lodestar/params";
|
|
4
4
|
import {BeaconState, Slot, capella, ssz} from "@lodestar/types";
|
|
5
|
-
import {E2STORE_HEADER_SIZE, SlotIndex, readSlotIndex} from "../e2s.
|
|
6
|
-
import {readUint48} from "../util.
|
|
5
|
+
import {E2STORE_HEADER_SIZE, SlotIndex, readSlotIndex} from "../e2s.js";
|
|
6
|
+
import {readUint48} from "../util.js";
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
9
|
* Parsed components of an .era file name.
|
package/src/era/writer.ts
CHANGED
|
@@ -3,14 +3,14 @@ import {format, parse} from "node:path";
|
|
|
3
3
|
import {ChainForkConfig} from "@lodestar/config";
|
|
4
4
|
import {SLOTS_PER_HISTORICAL_ROOT} from "@lodestar/params";
|
|
5
5
|
import {BeaconState, SignedBeaconBlock, Slot} from "@lodestar/types";
|
|
6
|
-
import {E2STORE_HEADER_SIZE, EntryType, SlotIndex, serializeSlotIndex, writeEntry} from "../e2s.
|
|
7
|
-
import {snappyCompress} from "../util.
|
|
6
|
+
import {E2STORE_HEADER_SIZE, EntryType, SlotIndex, serializeSlotIndex, writeEntry} from "../e2s.js";
|
|
7
|
+
import {snappyCompress} from "../util.js";
|
|
8
8
|
import {
|
|
9
9
|
computeStartBlockSlotFromEraNumber,
|
|
10
10
|
getShortHistoricalRoot,
|
|
11
11
|
isSlotInRange,
|
|
12
12
|
isValidEraStateSlot,
|
|
13
|
-
} from "./util.
|
|
13
|
+
} from "./util.js";
|
|
14
14
|
|
|
15
15
|
enum WriterStateType {
|
|
16
16
|
InitGroup,
|