applesauce-wallet-connect
Version:
NIP-47 Nostr Wallet Connect implementation for both clients and services.
16 lines (15 loc) • 1.14 kB
TypeScript
import { EventFactory } from "applesauce-core/factories";
import { KnownEventTemplate } from "applesauce-core/helpers";
import { WALLET_NOTIFICATION_KIND, WALLET_LEGACY_NOTIFICATION_KIND, WalletNotification } from "../helpers/notification.js";
export type WalletNotificationTemplate = KnownEventTemplate<typeof WALLET_NOTIFICATION_KIND>;
export type WalletLegacyNotificationTemplate = KnownEventTemplate<typeof WALLET_LEGACY_NOTIFICATION_KIND>;
export declare class WalletNotificationFactory extends EventFactory<typeof WALLET_NOTIFICATION_KIND, WalletNotificationTemplate> {
static create(client: string, notification: WalletNotification): WalletNotificationFactory;
client(pubkey: string): this;
notification(notification: WalletNotification, client: string): this;
}
export declare class WalletLegacyNotificationFactory extends EventFactory<typeof WALLET_LEGACY_NOTIFICATION_KIND, WalletLegacyNotificationTemplate> {
static create(client: string, notification: WalletNotification): WalletLegacyNotificationFactory;
client(pubkey: string): this;
notification(notification: WalletNotification, client: string): this;
}