Add relay package

This commit is contained in:
Jon Staab
2025-03-31 10:16:28 -07:00
parent 5245993d4e
commit cfd2e3aac7
21 changed files with 234 additions and 106 deletions
+3 -6
View File
@@ -1,6 +1,6 @@
import {writable, derived} from "svelte/store"
import {type Zapper} from "@welshman/util"
import {type SubscribeRequestWithHandlers} from "@welshman/net"
import {Zapper} from "@welshman/util"
import {MultiRequestOptions} from "@welshman/net"
import {
ctx,
identity,
@@ -80,10 +80,7 @@ export const {
}),
})
export const deriveZapperForPubkey = (
pubkey: string,
request: Partial<SubscribeRequestWithHandlers> = {},
) =>
export const deriveZapperForPubkey = (pubkey: string, request: Partial<MultiRequestOptions> = {}) =>
derived([zappersByLnurl, deriveProfile(pubkey, request)], ([$zappersByLnurl, $profile]) => {
if (!$profile?.lnurl) {
return undefined