This commit is contained in:
2024-10-21 15:17:14 +02:00
parent 87792c5089
commit fa98e90210
20 changed files with 462 additions and 91 deletions

View File

@@ -1,6 +1,17 @@
import { NRelay1 } from "@nostrify/nostrify";
import config from "./config.ts";
export const relay = new NRelay1("wss://nostr.kosmos.org");
export interface NEvent {
content: string;
created_at: number;
id: string;
kind: number;
pubkey: string;
sig: string;
tags: Array<[string, string, string?]>;
}
export const relay = new NRelay1(config.home_relay_url);
export async function fetchReplaceableEvent(
pubkey: string,