Organise files more consistently

Signed-off-by: Rūdolfs Ošiņš <rudolfs@osins.org>
This commit is contained in:
Rūdolfs Ošiņš
2022-12-22 16:46:08 +01:00
parent e86accafae
commit caa83db480
130 changed files with 720 additions and 707 deletions
+31
View File
@@ -0,0 +1,31 @@
import type { PeerId } from "@app/lib/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);
}