Logo
Explore Help
Sign In
logos-messaging/logos-messaging-js
1
0
Fork 0
You've already forked logos-messaging-js
mirror of https://github.com/logos-messaging/logos-messaging-js.git synced 2026-01-30 05:43:10 +00:00
Code Issues Packages Projects Releases Wiki Activity
logos-messaging-js/packages/interfaces/src/metadata.ts

9 lines
257 B
TypeScript
Raw Normal View History

chore: bump all libp2p packages to latest version
2024-01-15 16:12:01 -08:00
import type { PeerId } from "@libp2p/interface";
feat: metadata protocol (#1732) * add proto * add rpc and interfaces * add protocol implementation * update faulty proto def * add rpc and interfaces * refactor implementation & write test * setup the metadata protocol as a service * fix cases where metadata service needs to be undefined * remove redundant catch block * remove addressed TODO * update import path * log errors * remove redundant code from handling incoming metadata request * update tests * add test to check for active connections * change expects * save remote peer's shard info after successful connection
2023-12-05 19:26:52 +05:30
import type { ShardInfo } from "./enr.js";
import type { IBaseProtocol } from "./protocols.js";
export interface IMetadata extends IBaseProtocol {
query(peerId: PeerId): Promise<ShardInfo | undefined>;
}
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.23.0 Page: 86ms Template: 2ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API