mirror of
https://github.com/logos-messaging/js-waku.git
synced 2026-03-30 16:23:42 +00:00
* remove IBaseProtocol * fix references, interfaces and integration * fix ci * up mock * up lock * add mock for local storage * add missing prop, fix tests * up lock
14 lines
455 B
TypeScript
14 lines
455 B
TypeScript
import type { PeerId } from "@libp2p/interface";
|
|
|
|
import { PubsubTopic, ThisOrThat } from "./misc.js";
|
|
import type { ShardInfo } from "./sharding.js";
|
|
|
|
export type MetadataQueryResult = ThisOrThat<"shardInfo", ShardInfo>;
|
|
|
|
export interface IMetadata {
|
|
readonly multicodec: string;
|
|
readonly pubsubTopics: PubsubTopic[];
|
|
confirmOrAttemptHandshake(peerId: PeerId): Promise<MetadataQueryResult>;
|
|
query(peerId: PeerId): Promise<MetadataQueryResult>;
|
|
}
|