mirror of
https://seed.radicle.dev/rad:z4V1sjrXqjvFdnCUbxPFqd5p4DtH5.git
synced 2026-11-02 02:00:31 +08:00
32 lines
501 B
TypeScript
32 lines
501 B
TypeScript
import type { PeerId } from "@app/project";
|
|
|
|
export interface Author {
|
|
peer: PeerId;
|
|
urn: string;
|
|
profile: {
|
|
name: string;
|
|
ens: {
|
|
name: string;
|
|
} | null;
|
|
} | null;
|
|
}
|
|
|
|
export interface PeerIdentity {
|
|
urn: string;
|
|
name: string;
|
|
ens: {
|
|
name: string;
|
|
} | null;
|
|
}
|
|
|
|
export interface PeerInfo {
|
|
id: PeerId;
|
|
person?: PeerIdentity;
|
|
delegate: boolean;
|
|
}
|
|
|
|
// Formats COBs Object Ids
|
|
export function formatObjectId(id: string): string {
|
|
return id.substring(0, 11);
|
|
}
|