Skip to content

Commit

Permalink
feat: update nostr.watch monitor pubkey
Browse files Browse the repository at this point in the history
  • Loading branch information
verbiricha committed Mar 5, 2024
1 parent ee21638 commit a3cb15d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions apps/relays/app/components/relays.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,13 @@ import { useQuery } from "@tanstack/react-query";
import RelayLink from "./relay-link";
import RelayIcon from "./relay-icon";
import { encodeRelayURL } from "../utils";
import { NOSTR_WATCH, RELAY_MONITOR } from "@ui/const";
import { NOSTR_WATCH_MONITOR, RELAY_METADATA } from "@ui/const";

async function fetchRelays(ndk: NDK) {
const events = await ndk.fetchEvents(
{
authors: [NOSTR_WATCH],
kinds: [RELAY_MONITOR],
authors: [NOSTR_WATCH_MONITOR],
kinds: [RELAY_METADATA],
since: Math.round(Date.now() / 1000) - 60 * 60 * 24 * 1000,
},
{
Expand Down
6 changes: 3 additions & 3 deletions apps/relays/ui/const.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ import { NDKKind } from "@nostr-dev-kit/ndk";

export const maxWidth = "48em";

export const NOSTR_WATCH =
"cd18a5109bd5a3110e173331d873725dbf0c5bedc9357a3cc80ed7029b24e974";
export const RELAY_MONITOR = 30_166 as NDKKind;
export const NOSTR_WATCH_MONITOR =
"abcde937081142db0d50d29bf92792d4ee9b3d79a83c483453171a6004711832";
export const RELAY_METADATA = 30_166 as NDKKind;

0 comments on commit a3cb15d

Please sign in to comment.