Move wallet to util
This commit is contained in:
@@ -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
|
||||
}
|
||||
@@ -14,4 +14,5 @@ export * from "./Profile.js"
|
||||
export * from "./Relay.js"
|
||||
export * from "./Room.js"
|
||||
export * from "./Tags.js"
|
||||
export * from "./Wallet.js"
|
||||
export * from "./Zaps.js"
|
||||
|
||||
Reference in New Issue
Block a user