feat: gossip model

This commit is contained in:
2023-05-08 17:55:46 +01:00
parent 78bfa57628
commit 185e089ffd
11 changed files with 275 additions and 250 deletions

View File

@ -3,6 +3,7 @@ import { hexToBech32, unixNowMs } from "Util";
import { DmCache } from "./DMCache";
import { InteractionCache } from "./EventInteractionCache";
import { UserCache } from "./UserCache";
import { UserRelays } from "./UserRelayCache";
export interface MetadataCache extends UserMetadata {
/**
@ -55,6 +56,7 @@ export async function preload() {
await UserCache.preload();
await DmCache.preload();
await InteractionCache.preload();
await UserRelays.preload();
}
export { UserCache, DmCache };