refactor: extract wallet system

This commit is contained in:
2024-04-11 13:26:50 +01:00
parent d1095847d8
commit 8137317bfe
33 changed files with 5252 additions and 4916 deletions

View File

@ -1,11 +1,12 @@
import { ExternalStore, LNURL, unixNow } from "@snort/shared";
import { LNWallet, WalletInvoiceState } from "@snort/wallet";
import debug from "debug";
import { UserCache } from "@/Cache";
import { Toastore } from "@/Components/Toaster/Toaster";
import { SnortPubKey } from "@/Utils/Const";
import { bech32ToHex, getDisplayName, trackEvent } from "@/Utils/index";
import { LNWallet, WalletInvoiceState, Wallets } from "@/Wallet";
import { Wallets } from "@/Wallet";
export enum ZapPoolRecipientType {
Generic = 0,

View File

@ -1,8 +1,8 @@
import { isHex, LNURL } from "@snort/shared";
import { EventPublisher, NostrEvent, NostrLink, SystemInterface } from "@snort/system";
import { LNWallet, WalletInvoiceState } from "@snort/wallet";
import { generateRandomKey } from "@/Utils/Login";
import { LNWallet, WalletInvoiceState } from "@/Wallet";
export interface ZapTarget {
type: "lnurl" | "pubkey";