Compare commits

...

3 Commits

Author SHA1 Message Date
semantic-release-bot 8470d578a5 chore(release): 0.1.0-develop.51 [skip ci]
# [0.1.0-develop.51](https://git.lumeweb.com/LumeWeb/libethsync/compare/v0.1.0-develop.50...v0.1.0-develop.51) (2023-09-16)

### Bug Fixes

* IStore should extend EventEmitter ([9f00d8f](9f00d8fec8))
2023-09-16 02:11:37 +00:00
Derrick Hammer 178df36f93
Merge remote-tracking branch 'origin/develop' into develop 2023-09-15 22:10:44 -04:00
Derrick Hammer 9f00d8fec8
fix: IStore should extend EventEmitter 2023-09-15 22:10:36 -04:00
4 changed files with 12 additions and 4 deletions

View File

@ -1,3 +1,10 @@
# [0.1.0-develop.51](https://git.lumeweb.com/LumeWeb/libethsync/compare/v0.1.0-develop.50...v0.1.0-develop.51) (2023-09-16)
### Bug Fixes
* IStore should extend EventEmitter ([9f00d8f](https://git.lumeweb.com/LumeWeb/libethsync/commit/9f00d8fec80d05592974d28c557117419027d21e))
# [0.1.0-develop.50](https://git.lumeweb.com/LumeWeb/libethsync/compare/v0.1.0-develop.49...v0.1.0-develop.50) (2023-09-16)

4
npm-shrinkwrap.json generated
View File

@ -1,12 +1,12 @@
{
"name": "@lumeweb/libethsync",
"version": "0.1.0-develop.50",
"version": "0.1.0-develop.51",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "@lumeweb/libethsync",
"version": "0.1.0-develop.50",
"version": "0.1.0-develop.51",
"dependencies": {
"@chainsafe/as-sha256": "^0.3.1",
"@chainsafe/bls": "7.1.1",

View File

@ -1,6 +1,6 @@
{
"name": "@lumeweb/libethsync",
"version": "0.1.0-develop.50",
"version": "0.1.0-develop.51",
"type": "module",
"repository": {
"type": "git",

View File

@ -2,6 +2,7 @@ import { BeaconConfig } from "@lodestar/config";
import { GenesisData, LightClientUpdate } from "#types.js";
import { ProverRequestCallback } from "#client/index.js";
import BaseClient from "#baseClient.js";
import { EventEmitter } from "events";
export interface IProver {
get callback(): ProverRequestCallback;
@ -12,7 +13,7 @@ export interface IProver {
): Promise<LightClientUpdate[]>;
}
export interface IStore {
export interface IStore extends EventEmitter {
addUpdate(period: number, update: LightClientUpdate): void;
getUpdate(period: number): Uint8Array;
hasUpdate(period: number): boolean;