mirror of
https://github.com/logos-messaging/js-waku.git
synced 2026-01-14 11:43:10 +00:00
14 lines
446 B
TypeScript
14 lines
446 B
TypeScript
import type { PeerId } from "@libp2p/interface";
|
|
|
|
import { ThisOrThat } from "./misc.js";
|
|
import type { ClusterId, ShardInfo } from "./sharding.js";
|
|
|
|
export type MetadataQueryResult = ThisOrThat<"shardInfo", ShardInfo>;
|
|
|
|
export interface IMetadata {
|
|
readonly multicodec: string;
|
|
readonly clusterId: ClusterId;
|
|
confirmOrAttemptHandshake(peerId: PeerId): Promise<MetadataQueryResult>;
|
|
query(peerId: PeerId): Promise<MetadataQueryResult>;
|
|
}
|