@lodestar/light-client 1.23.0-dev.fd6e23edab → 1.23.0-rc.0
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/README.md +3 -3
- package/dist/lightclient.min.mjs +48 -0
- package/dist/lightclient.min.mjs.map +1 -0
- package/dist/manifest.json +8 -0
- package/lib/index.js +0 -1
- package/lib/index.js.map +1 -1
- package/lib/spec/index.js +3 -3
- package/lib/spec/index.js.map +1 -1
- package/lib/spec/utils.d.ts +1 -1
- package/lib/spec/utils.js +15 -19
- package/lib/spec/utils.js.map +1 -1
- package/lib/spec/validateLightClientBootstrap.js +5 -1
- package/lib/spec/validateLightClientBootstrap.js.map +1 -1
- package/lib/spec/validateLightClientUpdate.js +4 -4
- package/lib/spec/validateLightClientUpdate.js.map +1 -1
- package/lib/utils/api.d.ts +2 -2
- package/lib/utils/api.js +2 -2
- package/lib/utils/api.js.map +1 -1
- package/lib/utils/normalizeMerkleBranch.d.ts +9 -0
- package/lib/utils/normalizeMerkleBranch.js +13 -0
- package/lib/utils/normalizeMerkleBranch.js.map +1 -0
- package/lib/validation.js +4 -4
- package/lib/validation.js.map +1 -1
- package/package.json +10 -10
package/README.md
CHANGED
|
@@ -62,7 +62,7 @@ import {
|
|
|
62
62
|
|
|
63
63
|
const config = getChainForkConfigFromNetwork("sepolia");
|
|
64
64
|
const logger = getConsoleLogger({logDebug: Boolean(process.env.DEBUG)});
|
|
65
|
-
const api = getApiFromUrl(
|
|
65
|
+
const api = getApiFromUrl("https://lodestar-sepolia.chainsafe.io", "sepolia");
|
|
66
66
|
|
|
67
67
|
const lightclient = await Lightclient.initializeFromCheckpointRoot({
|
|
68
68
|
config,
|
|
@@ -82,11 +82,11 @@ await lightclient.start();
|
|
|
82
82
|
logger.info("Lightclient synced");
|
|
83
83
|
|
|
84
84
|
lightclient.emitter.on(LightclientEvent.lightClientFinalityHeader, async (finalityUpdate) => {
|
|
85
|
-
logger.info(finalityUpdate);
|
|
85
|
+
logger.info("Received finality update", {slot: finalityUpdate.beacon.slot});
|
|
86
86
|
});
|
|
87
87
|
|
|
88
88
|
lightclient.emitter.on(LightclientEvent.lightClientOptimisticHeader, async (optimisticUpdate) => {
|
|
89
|
-
logger.info(optimisticUpdate);
|
|
89
|
+
logger.info("Received optimistic update", {slot: optimisticUpdate.beacon.slot});
|
|
90
90
|
});
|
|
91
91
|
```
|
|
92
92
|
|