Danish Arora 5fb100602b
chore(lightpush)!: move protocol implementation to @waku/sdk (1/n) (#1964)
* chore: decouple `Filter` between `core` and `sdk`
moves `SubscriptionManager` to `sdk` side

* chore: update package dependencies
also update peer deps in sdk

* chore: update imports

* chore: update tests

* chore(side-change): update lightpush

* chore: update size-limit import

* chore(sdk): update dependencies
2024-04-19 17:20:34 +05:30

16 lines
348 B
TypeScript

import { IBaseProtocolSDK } from "@waku/interfaces";
interface Options {
numPeersToUse?: number;
}
const DEFAULT_NUM_PEERS_TO_USE = 3;
export class BaseProtocolSDK implements IBaseProtocolSDK {
public readonly numPeers: number;
constructor(options: Options) {
this.numPeers = options?.numPeersToUse ?? DEFAULT_NUM_PEERS_TO_USE;
}
}