Files
radicle-explorer/src/cobs.ts
T
Sebastian Martinez c5d5053f0c Add patches
Signed-off-by: Sebastian Martinez <me@sebastinez.dev>
2022-08-01 13:06:30 +02:00

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);
}