cake_wallet/lib/view_model
cyan f8b0c0ad2a
CW-611-Refactor-Address-Handling (#1630)
* subaddress fix

* fix subaddress generation

* rewrite usedAddresses for xmr and wow

* [skip ci] remove print statements

* refactor address handling

* do not remove manual addresses, just mark them

* monero display latest address on receive page when autogenerate is enabled [skip ci]

* WIP subaddresses, hidden addresses, and UI improvements for monero

* update configure script

* fix subaddress generation, display latest address

* Update lib/core/wallet_loading_service.dart

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

* Exclude manually created addresses

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

* don't call .save function multiple times

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

* - revert usedAddress functinality
- add mutex to prevent crashes
- fix UI flashing in tx screen
- fixes from comments

* account index fixes
added code to wownero
code comment

* - added subaddress index
- fixed received count also accounting for change (we don't want that)
- fix bad state: no element
- fix search
- fix automatic generation

* prevent crashes by acquiring mutex before setting the pointer

* - fix ttDetails generation in larger/restored wallets
- show manual add icon in monero/wownero even when autogeneration is enabled
- disable colors on non-debug builds
- cache getAddress call in xmr/wow
[skip ci]

* fix: silent payment error in address setter
enable fancy new features only for xmr / wow

* refresh subaddress list, when we add new address
fix manual addresses marking

* add toggle to hide and show address

* update transaction details after restore

* show only one address in address book for xmr, wow and haven

* fix address book
reset address only when autogenerate is on

* enable isEnabledAutoGenerateSubaddress on new wallets

* hide addresses after exchange only for XMR and WOW

* fix: bad-state no element

* Update cw_monero/lib/monero_wallet_addresses.dart

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

* Update cw_monero/lib/monero_wallet_addresses.dart

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

* improvements to performance

* 0, 0 -> accountIndex, addressIndex

* make constant variables final

* Update cw_wownero/lib/wownero_wallet_addresses.dart [skip ci]

* Update cw_wownero/lib/wownero_wallet_addresses.dart [skip ci]

* Update cw_monero/lib/monero_wallet.dart [skip ci]

* fix potential exception

* fix after removing late

* remove orElse, replaced it with a try catch block.
fix strings

* fix valid seed function

* fix null check error [skip ci]

* fix updateSubaddressList for wow and haven

---------

Co-authored-by: Omar Hatem <omarh.ismail1@gmail.com>
2024-09-28 05:38:23 +03:00
..
buy Cw 521 moonpay buy (#1335) 2024-03-28 15:30:41 +02:00
cake_pay Cw 591 in app cake pay integration (#1376) 2024-06-06 06:51:22 +02:00
contact_list CW-611-Refactor-Address-Handling (#1630) 2024-09-28 05:38:23 +03:00
dashboard litecoin mweb support (#1455) 2024-09-28 05:22:25 +03:00
exchange CW-611-Refactor-Address-Handling (#1630) 2024-09-28 05:38:23 +03:00
hardware_wallet Generic enhancements (#1447) 2024-05-13 23:59:11 +03:00
monero_account_list CW-681 Add address and account list to Wownero (#1538) 2024-07-21 03:58:17 +03:00
nano_account_list CW-438 add nano (#1015) 2023-10-05 04:09:07 +03:00
node_list Fix testnet (#1632) 2024-08-22 01:31:20 +03:00
restore Qr code passphrase restoration flow fix (#1694) 2024-09-24 06:40:33 +03:00
send litecoin mweb support (#1455) 2024-09-28 05:22:25 +03:00
settings litecoin mweb support (#1455) 2024-09-28 05:22:25 +03:00
unspent_coins litecoin mweb support (#1455) 2024-09-28 05:22:25 +03:00
wallet_address_list CW-611-Refactor-Address-Handling (#1630) 2024-09-28 05:38:23 +03:00
wallet_list feat: Add UI signifying the currently selected wallet indicator (#1704) 2024-09-28 01:36:56 +03:00
advanced_privacy_settings_view_model.dart CW-580: BIP39 Wallets Shared Seed Implementation: "One Seed - Multiple Wallets" (#1307) 2024-09-20 21:25:08 +03:00
anon_invoice_page_view_model.dart fix donation link saved regardless of the current wallet (#1491) 2024-06-21 02:17:19 +03:00
anonpay_details_view_model.dart Cw 537 integrate thor chain swaps (#1280) 2024-03-28 14:41:11 +02:00
auth_state.dart Flutter upgrade 2022-10-12 13:09:57 -04:00
auth_view_model.dart bio auth on mac + package updates for 3.19.3/5 (#1398) 2024-05-06 22:55:05 +03:00
backup_view_model.dart Wownero (#1485) 2024-07-04 22:43:17 +03:00
edit_backup_password_view_model.dart CW-599-Extract-Secure-Storage (#1353) 2024-05-08 23:23:27 +03:00
link_view_model.dart Generic enhancements (#1435) 2024-05-08 17:26:57 +03:00
new_wallet_type_view_model.dart CW-580: BIP39 Wallets Shared Seed Implementation: "One Seed - Multiple Wallets" (#1307) 2024-09-20 21:25:08 +03:00
order_details_view_model.dart set launchUrl mode to LaunchMode.externalApplication 2024-05-23 14:00:52 +03:00
rescan_view_model.dart litecoin mweb support (#1455) 2024-09-28 05:22:25 +03:00
restore_from_backup_view_model.dart CW-695: Fix Zone Mismatch Error Triggered By Restoring Backup (#1651) 2024-09-05 05:59:20 +03:00
seed_settings_view_model.dart CW-580: BIP39 Wallets Shared Seed Implementation: "One Seed - Multiple Wallets" (#1307) 2024-09-20 21:25:08 +03:00
set_up_2fa_viewmodel.dart CW-566-Cake2FA-Bypass-Bug (#1275) 2024-01-27 05:08:53 +02:00
setup_pin_code_view_model.dart Part 1 2020-09-21 14:50:26 +03:00
support_view_model.dart Generic enhancements (#1668) 2024-09-23 17:10:40 +03:00
trade_details_view_model.dart Integrate LetsExchange exchange provider (#1562) 2024-09-11 05:14:17 +03:00
transaction_details_view_model.dart Update transaction_details_view_model.dart (#1690) 2024-09-26 05:16:31 +03:00
wallet_creation_vm.dart fix derivation Info (#1689) 2024-09-26 05:10:46 +03:00
wallet_groups_display_view_model.dart CW-580: BIP39 Wallets Shared Seed Implementation: "One Seed - Multiple Wallets" (#1307) 2024-09-20 21:25:08 +03:00
wallet_hardware_restore_view_model.dart Cw 488 seed offset (#1631) 2024-08-26 20:06:54 +03:00
wallet_keys_view_model.dart Cw 488 seed offset (#1631) 2024-08-26 20:06:54 +03:00
wallet_new_vm.dart CW-580: BIP39 Wallets Shared Seed Implementation: "One Seed - Multiple Wallets" (#1307) 2024-09-20 21:25:08 +03:00
wallet_restore_choose_derivation_view_model.dart CW-438 add nano (#1015) 2023-10-05 04:09:07 +03:00
wallet_restore_view_model.dart Nano rep page + derivation fixes (#1655) 2024-09-05 05:41:52 +03:00
wallet_seed_view_model.dart Add restore from private key to Ethereum (#1055) 2023-08-23 15:33:20 +03:00
wallet_unlock_loadable_view_model.dart CW-676 Add Linux scripts to build monero_c for linux platform (#1527) 2024-08-13 01:18:14 +03:00
wallet_unlock_verifiable_view_model.dart CW-676 Add Linux scripts to build monero_c for linux platform (#1527) 2024-08-13 01:18:14 +03:00
wallet_unlock_view_model.dart CW-676 Add Linux scripts to build monero_c for linux platform (#1527) 2024-08-13 01:18:14 +03:00