applesauce-wallet-connect
Version:
NIP-47 Nostr Wallet Connect implementation for both clients and services.
13 lines (12 loc) • 746 B
TypeScript
import { EventFactory } from "applesauce-core/factories";
import { KnownEventTemplate } from "applesauce-core/helpers";
import { WALLET_INFO_KIND, WalletSupport } from "../helpers/support.js";
import { TWalletMethod } from "../helpers/methods.js";
export type WalletInfoTemplate = KnownEventTemplate<typeof WALLET_INFO_KIND>;
export declare class WalletInfoFactory extends EventFactory<typeof WALLET_INFO_KIND, WalletInfoTemplate> {
static create<Methods extends TWalletMethod>(info: WalletSupport<Methods>, client?: string, overrideRelay?: string): WalletInfoFactory;
methods(methods: string[]): this;
encryption(methods: string[]): this;
notifications(types: string[]): this;
client(pubkey: string, relay?: string): this;
}