diff --git a/package.json b/package.json index c4c3ca467..a17ffaf40 100644 --- a/package.json +++ b/package.json @@ -57,6 +57,7 @@ "applesauce-react": "next", "applesauce-relay": "next", "applesauce-signers": "next", + "applesauce-wallet": "next", "bech32": "^2.0.0", "blossom-client-sdk": "^3.0.1", "blurhash": "^2.0.5", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 8cd7a37db..6736fe85c 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -126,6 +126,9 @@ importers: applesauce-signers: specifier: next version: 0.0.0-next-20250309231023(typescript@5.8.2) + applesauce-wallet: + specifier: 0.0.0-next-20250309231023 + version: 0.0.0-next-20250309231023(typescript@5.8.2) bech32: specifier: ^2.0.0 version: 2.0.0 @@ -410,10 +413,10 @@ importers: specifier: ^0.6.8 version: 0.6.8 '@types/react': - specifier: ^18.3.18 + specifier: ^18.2.22 version: 18.3.18 '@types/react-dom': - specifier: ^18.3.5 + specifier: ^18.2.7 version: 18.3.5(@types/react@18.3.18) '@types/react-window': specifier: ^1.8.8 @@ -2216,6 +2219,9 @@ packages: applesauce-signers@0.0.0-next-20250309231023: resolution: {integrity: sha512-FOsD05Ymj9pNPj4LvC4xy3L3z9CKZT6LlbkEbAltw/YMubcEuqALZH9dCY69D7xiUUJvk0HqDpfDyq+iXmiiFA==} + applesauce-wallet@0.0.0-next-20250309231023: + resolution: {integrity: sha512-QxdomzWOMd/x6ip3cxrT6jXqcLUPfBb31vafTDDJM5cCNVby4IElUyZCIh0SWEdauK53xv7dkOYrsWzpKDL/4w==} + arg@4.1.3: resolution: {integrity: sha512-58S9QDqG0Xx27YwPSt9fJxivjYl432YCwfDMfZ+71RAqUrZef7LrKQZ3LHLOwCS4FLNBplP533Zx895SeOCHvA==} @@ -8531,6 +8537,15 @@ snapshots: - supports-color - typescript + applesauce-wallet@0.0.0-next-20250309231023(typescript@5.8.2): + dependencies: + applesauce-core: 0.0.0-next-20250309231023(typescript@5.8.2) + nostr-tools: 2.10.4(typescript@5.8.2) + rxjs: 7.8.2 + transitivePeerDependencies: + - supports-color + - typescript + arg@4.1.3: {} argparse@1.0.10: diff --git a/src/classes/memory-relay.ts b/src/classes/memory-relay.ts index 95d948d55..c1e54596c 100644 --- a/src/classes/memory-relay.ts +++ b/src/classes/memory-relay.ts @@ -53,6 +53,6 @@ export default class MemoryRelay implements SimpleRelay { id?: string | null; }, ) { - return this.store.database.getForFilters(filters).size; + return this.store.database.getEventsForFilters(filters).size; } } diff --git a/src/views/wallet/index.tsx b/src/views/wallet/index.tsx index c783377ed..430deaead 100644 --- a/src/views/wallet/index.tsx +++ b/src/views/wallet/index.tsx @@ -15,7 +15,7 @@ import { } from "@chakra-ui/react"; import { NostrEvent } from "nostr-tools"; import { WalletQuery } from "applesauce-wallet/queries"; -import { getWalletMints, unlockWallet, WALLET_KIND } from "applesauce-wallet/helpers"; +import { unlockWallet, WALLET_KIND } from "applesauce-wallet/helpers"; import { useActiveAccount, useStoreQuery } from "applesauce-react/hooks"; import useAsyncErrorHandler from "../../hooks/use-async-error-handler";