mirror of
https://gitlab.com/soapbox-pub/mkstack.git
synced 2026-12-06 00:37:23 +00:00
cashu wallet restore and addressed some test errors
This commit is contained in:
1 parent
cfd1e7269f
commit
aff1b0add5
6 files changed
+240
-48
No files matched your search
@@ -10,9 +10,8 @@ import { useCopyToClipboard } from '@/hooks/useCopyToClipboard';
|
||||
import { useMintManager } from '@/hooks/cashu/useMintManager';
|
||||
import { useWalletTransactions } from '@/hooks/cashu/useWalletTransactions';
|
||||
import { useHistoryManager } from '@/hooks/cashu/useHistoryManager';
|
||||
import { useNsecAccess } from '@/hooks/useNsecAccess';
|
||||
import { useBitcoinBalance, useBitcoinTransactionHistory, useBitcoinOperations } from '@/hooks/useBitcoinBalance';
|
||||
import { nostrPubkeyToBitcoinAddress, UTXO } from '@/lib/bitcoin';
|
||||
import { nostrPubkeyToBitcoinAddress } from '@/lib/bitcoin';
|
||||
import { QRModal } from '@/components/ui/qr-modal';
|
||||
import { WalletHeader } from './WalletHeader';
|
||||
import { TransactionCard } from './PaymentCard';
|
||||
@@ -54,8 +53,6 @@ export function CashuWallet() {
|
||||
// Bitcoin operations hook
|
||||
const {
|
||||
utxos,
|
||||
isLoadingUtxos,
|
||||
feeRate,
|
||||
isConsolidating,
|
||||
bitcoinMaxAmount,
|
||||
fetchBitcoinUtxos,
|
||||
@@ -141,6 +138,8 @@ export function CashuWallet() {
|
||||
handleReceive,
|
||||
handleSend,
|
||||
handleConfirmInvoicePayment,
|
||||
handleRestoreFromSeedPhrase,
|
||||
isRestoring,
|
||||
mintQuoteUnsubscribeRef,
|
||||
} = useWalletTransactions({
|
||||
coco,
|
||||
@@ -461,6 +460,10 @@ export function CashuWallet() {
|
||||
sentTokenQRCode={sentTokenQRCode}
|
||||
showSeedPhraseInfo={showSeedPhraseInfo}
|
||||
setShowSeedPhraseInfo={setShowSeedPhraseInfo}
|
||||
onRestoreFromSeedPhrase={handleRestoreFromSeedPhrase}
|
||||
isRestoring={isRestoring}
|
||||
mints={mints}
|
||||
activeMintUrl={activeMintUrl}
|
||||
/>
|
||||
|
||||
{/* Bottom Drawer Modals */}
|
||||
|
||||
Reference in new issue
Block a user