mirror of
https://github.com/logos-messaging/js-waku.git
synced 2026-01-10 17:53:09 +00:00
* merge: master * fix: tests * update: interfafces * rm: comments * metadata: store peerIdStr instead of peerId * chore(utils): move fast-utils to dev deps * fix: allow autosharding nodes to get peers (#1785) * fix: merge * fix: build * fix: failing tests from master merge --------- Co-authored-by: Arseniy Klempner <arseniyk@status.im>
12 lines
473 B
TypeScript
12 lines
473 B
TypeScript
import type { PeerId } from "@libp2p/interface";
|
|
|
|
import type { ShardInfo } from "./enr.js";
|
|
import type { IBaseProtocol, ShardingParams } from "./protocols.js";
|
|
|
|
// IMetadata always has shardInfo defined while it is optionally undefined in IBaseProtocol
|
|
export interface IMetadata extends Omit<IBaseProtocol, "shardInfo"> {
|
|
shardInfo: ShardingParams;
|
|
confirmOrAttemptHandshake(peerId: PeerId): Promise<void>;
|
|
query(peerId: PeerId): Promise<ShardInfo | undefined>;
|
|
}
|