Add new router helper for relay hints

This commit is contained in:
Jon Staab
2024-02-02 16:46:33 -08:00
parent aa963af77e
commit a78e72310d
15 changed files with 234 additions and 220 deletions
+8
View File
@@ -0,0 +1,8 @@
export const GROUP = 35834
export const COMMUNITY = 34550
export const isGroupAddress = (a: string) => a.startsWith(`${GROUP}:`)
export const isCommunityAddress = (a: string) => a.startsWith(`${COMMUNITY}:`)
export const isCommunityOrGroupAddress = (a: string) => isCommunityAddress(a) || isGroupAddress(a)