Move wallet to util

This commit is contained in:
Jon Staab
2025-08-06 15:04:46 -07:00
parent 3b4fe0973d
commit d0d13433c3
4 changed files with 44 additions and 1 deletions
+31
View File
@@ -0,0 +1,31 @@
export type WebLNInfo = {
methods?: string[]
supports?: string[]
version?: string
node?: {
alias: string
}
}
export type NWCInfo = {
lud16: string
secret: string
relayUrl: string
walletPubkey: string
nostrWalletConnectUrl: string
}
export enum WalletType {
WebLn = "webln",
NWC = "nwc",
}
export type Wallet =
| {
type: WalletType.WebLn
info: WebLNInfo
}
| {
type: WalletType.NWC
info: NWCInfo
}