Cw 1551 quick bitcoin wallet sync (#3446)

* add Wallet Accounts page and integrate UI

* account model refactor

* add walletInfoAccount table and API

* add WalletAccountList API

* add multi-account support for Electrum wallets

* add Bitcoin lightning card and card style handling

* refine account filtering and card selection

* update current account balance on wallet changes

* update configure.dar

* Use named parameters for card design

* Add Bitcoin account handling and refactor lookup

* refactor dashboard

* refactor cards UI and account balance handling

* Improve Bitcoin account selection and balances

* restrict unspent coin usage to current account

* filter transactions by current Bitcoin account

* refactor electrum wallet

* refactor address generation

* add accountIndex to address fetch logic

* Update configure.dart

* reload transactions on Bitcoin account change

* restore multiple BTC accounts and improve fetch

* show account balance with in btc

* track account index in Bitcoin transactions

* discover btc BIP39 accounts during restore

* fix account switching and card ordering bugs

* fix card customizer

* limit account name length in modal

* update BTC account list balance display

* auto-reformat

* formating fix

* skip HD map validation

* fix 0 balance issue

* minor fix

* quick bitcoin wallet sync

* restore shuffle change output

* restore address lookup fix

* Update electrum.dart

* remove account customizer

* Merge branch 'CW-1142-Add-accounts-feature-to-BTC' into CW-1551-Quick-Bitcoin-Wallet-Sync

* probe only segwit in account discovery

* add account discovery limit and tracking

* Improve Electrum sync account handling [skip ci]

* remove legacy monero account and address list UI

* rework BTC account balance refres

* avoid unnecessary BTC account reloads

* refactor account header in addresses page

* fix blank popup when editing an account

* fix: dedupe UTXO balance

* minor fix

* add Bitcoin current account API

* Apply batched suggestions from code review [skip ci]

Co-authored-by: Omar Hatem <omarh.ismail1@gmail.com>

* address PR review comments [skip ci]

* remove account customizer and fix accounts init

* restrict extra BTC accounts to SegWit

* add BTC multi-account toggle

* Fix BTC sync gating and account balance update

* minor fix

* Update electrum_wallet.dart

* store selected account on WalletInfo

* Refine wallet account reset visibility

* refactor BTC address prep and move accounts page

* refactor account stack and customizer routing

* migrate legacy Lightning card styles

* unify dashboard account change state

* fix account routing and Electrum balances

* fix account setup and wallet cards UI

* disable Bitcoin Accounts for all hardware

* merge conflicts fix

* minor fixes

* update cards_view [skip ci]

* reverted cards view update [skip ci]

* fix asset name

* moved the transaction filtering into the electrum wallet

* localization

* disable accounts for watch-only wallets

* fix: stop card render from switching the wallet account

* fix: restore Lightning transactions in tx history

* minor fix

* fix: skip duplicate legacy address generation [skip ci]

* fix: correct account balance/design mismatch bugs

* addressing review comments

---------

Co-authored-by: Robert Malikowski <malikowskirobert@gmail.com>
Co-authored-by: Omar Hatem <omarh.ismail1@gmail.com>
This commit is contained in:
Serhii
2026-10-03 00:44:57 +02:00
committed by GitHub
co-authored by Omar Hatem Robert Malikowski
parent 0503d54290
commit d7ebf42814
84 changed files with 3991 additions and 2186 deletions
+2 -9
View File
@@ -238,8 +238,6 @@
"color_theme": "Téma sa'y",
"coming_soon_tag": "Og̃uahẽ pototáma",
"commit_transaction_amount_fee": "Emoneĩ ñembohasa\nMboheta: ${amount}\nHepyme’ẽ: ${fee}",
"compatible_services": "Servicio-kuéra Ojokupytýva",
"compatible_services_desc": "Eipuru pe Scan tembiporu emoñe'ẽ hag̃ua ko'ã QR código Cake Wallet oipytyvõva:",
"compatible_networks": "Redes Ojogueraháva",
"compatible_services": "Servicio-kuéra Ojokupytýva",
"compatible_services_desc": "Eipuru pe Scan tembiporu emoñe'ẽ hag̃ua ko'ã QR código Cake Wallet oipytyvõva:",
@@ -282,7 +280,6 @@
"contact_support": "Eñe’ẽ Support ndive",
"contacts": "Contactos",
"continue_text": "Eku'e",
"contract_address": "Contrato Kundaharape",
"continue_to_swap": "Esegíkena eintercambia",
"contract_address": "Contrato Kundaharape",
"contract_warning": "Ko contrato dirección ojehechakuaa hag̃ua ikatuha haʼe peteĩ ñembotavy térã mba’e vai. Eñangareko porãke.",
@@ -478,7 +475,6 @@
"etherscan_history": "Etherscan rembiasakue",
"event": "Tembiaporã",
"events": "Tembiaporã",
"evm_ecosystem_description": "Tekotevẽramo, emoambue pe red ha token reipuruséva ko jehepyme'ẽme g̃uarã.",
"evm_address_detected": "EVM Dirección Ojejuhúva",
"evm_ecosystem_description": "Tekotevẽramo, emoambue pe red ha token reipuruséva ko jehepyme'ẽme g̃uarã.",
"exchange": "Mbojopyru",
@@ -703,6 +699,7 @@
"moralis_nft_error": "Oiko peteĩ jejavy oñembyaty aja umi NFT. Ehecha porãke ne ñanduti joaju ha eha'ã jey.",
"more_details": "Detallesve",
"more_options": "Hetave jeporavorã",
"multiple_accounts": "Heta Cuenta rehegua",
"multiple_addresses_detected": "Heta kundaharape ojejuhu",
"mweb_ad": "Emboguata MWEB, pe capa ñemigua Litecoin-pe g̃uarã omoĩva anonimato extra nde viru'ikuérape",
"mweb_confirmed": "MWEB Oñemoañetéva",
@@ -717,7 +714,6 @@
"nanogpt_subtitle": "Opaite umi modelo ipyahuvéva (GPT-5.3, Claude 4.6).\nNdaipóri suscripción, ehepyme’ẽ cripto rupive.",
"narrow": "Poʼi",
"network": "Red",
"networks": "Red-kuéra",
"network_address_detected": "${network} Dirección Ojejuhúva",
"network_prefix_on": "pe",
"network_switch_failed": "Ndojehechái oñembohasa hag̃ua red ojejerurévape. Pe pago ndojejapóikuri, eñeha’ã jey.",
@@ -1241,8 +1237,6 @@
"support_title_other_links": "Ambue juaju pytyvõ rehegua",
"supported": "Ojepytyvõva",
"swap": "Swap",
"supported": "Ojepytyvõva",
"swap": "Swap",
"swap_from_network": "Embohasa ${network} guive.",
"swap_from_network_description": "Emondo hag̃ua viru ${targetNetwork} red-pe, tekotevẽta rembohasa ne ${currentNetwork} viru. ¿Reprocedese piko?",
"swap_id": "ID ñemoambue rehegua",
@@ -1257,7 +1251,6 @@
"swipe_to_send": "Emoinge hag̃ua emondo hag̃ua.",
"switch_camera": "Ombohasa cámara",
"switch_input_currency": "Oñemoambue cripto ha fiat jeike apytépe",
"switch_wallet": "Emoambue Billetera",
"switch_to_x_wallet": "Embohasa ${network} Wallet-pe",
"switch_wallet": "Emoambue Billetera",
"switchToETHWallet": "Ikatúpa emoambue peteĩ billetera Ethereum-pe ha eha’ãjey.",
@@ -1594,4 +1587,4 @@
"zcash_network_upgrade_desc_1": "Zcash ohasa peteî actualización red hérava Ironwood oikotevêva migración de fondos ikatu mboyve ojegasta. Ko migración ha’e automática, oñongatúva privacidad ha oñepyrũ eipe’a riremínte nde billetera Zcash.",
"zcash_network_upgrade_desc_2": "Opa vove pe migración, nde Saldo Disponible ohojeýta normal-pe, ha ikatu esegi emondo ha eguerahauka Zcash jepiveguáicha.",
"zcash_network_upgrade_desc_3": "Eheja ne billetera Zcash omohu’ã sincronización, ha upéi eheja pe app ojepe’a opa peve migración ikatúva ogueraha mbovymi minuto odependéva saldo rehe."
}
}