Commit graph

343 commits

Author SHA1 Message Date
Matthew Fosse
4f046fe585 Merge branch 'main' of https://github.com/cake-tech/cake_wallet into mweb 2024-09-20 19:19:53 -07:00
Serhii
32e119e24f
rbf-fixes-recomended-fee-rate (#1684)
* rbf fixes

* Revert "rbf fixes"

* fix replaced transactions

* re-format electrum_wallet.dart [skip ci]

* minor fixes [skip ci]

---------

Co-authored-by: OmarHatem <omarh.ismail1@gmail.com>
2024-09-20 23:57:43 +03:00
Matthew Fosse
f2ddbcf740 merge fixes pt.1 [skip ci] 2024-09-20 11:56:04 -07:00
David Adegoke
4e2e5e708c
CW-580: BIP39 Wallets Shared Seed Implementation: "One Seed - Multiple Wallets" (#1307)
* feat: Implement creating new BIP39 wallet with same seed used for other owned BIP39 wallets

* feat: Use same seed for BIP39 Wallets

* Update pre_existing_seeds_page.dart

* Feat: BIP39 Same seed wallet creation using the Common Parent Wallet Strategy

* feat: Finalize implementing preexisting seeds

* feat: Implement shared bip39 wallet seed for Bitcoin wallet type

* feat: Implement shared bip39 wallet seed for Litecoin wallet type

* feat: Implement shared bip39 wallet seed for BitcoinCash wallet type

* feat: Implement shared bip39 wallet seed for Nano wallet type, although disabled entry for now

* fix: Remove non bip39 seed wallet type from listing

* feat: Implement grouped and single wallets lists in wallets listing page and implement editing and saving group names

* fix: Issue where the ontap always references the leadwallet, also make shared seed wallets section header only display when the multi wallet groups list is not empty

* fix: Add translation and adjust the way the groups display

* feat: Activate bip39 as an option for creating Nano wallet types

* fix: Handle edgecase with creating new wallet with group address, handle case where only bip39 derivation type is allowed with child wallets, activate nano wallet type for shared seed

* chore: Modify the UI to fit adjustment made on figma

* fix: Disposed box triggering error in hive and causing wallet list view to display error

* fix: Switch wallet groups title in wallets list page and also fix issue with renaming groups

* Update lib/reactions/bip39_wallet_utils.dart [skip ci]

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

* Update lib/router.dart [skip ci]

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

* fix: Review fixes: Combine New Wallet Page Type arguments into a single model

* fix: Review fixes: Add failure guard when fetching mnemonic for selected wallet in pre-existing wallets page

* fix: Review fixes - Add loading indicator when mnemonic is being selected for wallet

* fix: Review fixes - Modify variable name to avoid clashes

* fix: Review fixes - Access WalletManager through dependency injection instead of service location

* fix: Review fixes - Add testnet to convertWalletInfoToWalletlistItem function, and adjust according where used

* fix: Review fixes - Add walletPassword to nano, tron and wownero wallets and confirm it is properly handled as it should be

* fix: Remove leadWallet, modify filtering flow to reflect this and not depend on leadWallet, and adjust privacy settings

* fix: Review Fixes - Modify restore flow to reflect current nature of bip39 as default for majority of wallet types

* fix: QA Fixes - Modify preexisting page to display wallet group names if set, and display them in incremental order if not set

* fix: Add wallet group description page and rename pre-existingseeds page to wallet group display page

* fix: Product Fix - Rename pre-existing seeds file name to wallet group display filename

* fix: Product fix - Separate multiwallets groups from single wallets and display separately

* fix - Product Fix - Add empty state for wallet group listing when creating a new wallet, adjust CTAs across buttons relating to the flow also

---------

Co-authored-by: Omar Hatem <omarh.ismail1@gmail.com>
2024-09-20 21:25:08 +03:00
Matthew Fosse
fc51847915 Merge branch 'main' of https://github.com/cake-tech/cake_wallet into mweb [skip ci] untested 2024-09-20 09:29:53 -07:00
Rafael
3a391f10a3
Sp enhancements (#1672)
* fix: enhance regex, fix multiline

* feat: improve scan msg, fix missing txs, use date api

* feat: node fixes, enhance send modal, TX list tag & filter, refactors

* fix: continuous scanning

* fix: missing close

* fix: resubscribe tweaks

* feat: use mempool api setting toggle

* handle any failure of height API and fallback to the old method [skip ci]

---------

Co-authored-by: OmarHatem <omarh.ismail1@gmail.com>
2024-09-20 17:24:25 +03:00
Matthew Fosse
03a3fb8d74 fix 2024-09-19 17:16:17 -07:00
Matthew Fosse
7ee8949a71 prevent transactions with < 6 confirmations from being used + hide mweb balances if mweb is off 2024-09-19 17:15:37 -07:00
Matthew Fosse
618a2c2296 Merge branch 'mweb' of https://github.com/cake-tech/cake_wallet into mweb-bg-sync-2 2024-09-19 15:40:39 -07:00
Matthew Fosse
8d4443e504 capture all grpc errors and much better error handling overall 2024-09-19 15:35:47 -07:00
Matthew Fosse
c42928e932 round robin 2.0 2024-09-18 11:32:01 -07:00
Matthew Fosse
82757b31cb Merge branch 'mweb' of https://github.com/cake-tech/cake_wallet into mweb-bg-sync-2 2024-09-18 10:28:03 -07:00
Matthew Fosse
34d5d96cc7 [skip ci] Merge branch 'main' of https://github.com/cake-tech/cake_wallet into mweb 2024-09-18 10:27:43 -07:00
Matthew Fosse
4411f7bea6 updates - slow when syncing multiple wallets 2024-09-17 15:56:46 -07:00
Serhii
c6a4c69084
CW-719 Transaction dates shows incorrectly (#1685)
Some checks are pending
Cache Dependencies / test (push) Waiting to run
* ignore 0 height

* fix date format
2024-09-18 01:50:31 +03:00
Matthew Fosse
4f9d602ee4 working! 2024-09-17 12:35:25 -07:00
Matthew Fosse
35c4f3e2f1 save 2024-09-16 13:46:48 -07:00
Matthew Fosse
e51d6ea8c0 Merge branch 'mweb' of https://github.com/cake-tech/cake_wallet into mweb-bg-sync-2 2024-09-16 08:32:59 -07:00
Matthew Fosse
17695d1878 found an edge case 2024-09-13 13:59:10 -07:00
Matthew Fosse
4503ad5401 works for simple mweb-mweb case, further testing needed 2024-09-13 13:03:02 -07:00
Matthew Fosse
3a969acc6d fix sending with mweb amounts 2024-09-13 11:49:03 -07:00
Matthew Fosse
5c9a902b1f [skip ci] save 2024-09-12 22:53:04 -07:00
Matthew Fosse
6a4327a53b separate mweb balances, pt.2 2024-09-12 13:15:20 -07:00
Matthew Fosse
9dd696a474 this should maybe be refactored, pt.1 2024-09-12 11:36:29 -07:00
Matthew Fosse
756fb3d0e2 ui improvements, still figuring out silent payments issues 2024-09-12 10:44:44 -07:00
Matthew Fosse
cb8929173e Merge branch 'mweb' of https://github.com/cake-tech/cake_wallet into mweb-bg-sync-2 2024-09-11 20:44:58 -07:00
Matthew Fosse
ec25c2bad5 [skip ci] 2024-09-11 20:44:32 -07:00
Matthew Fosse
ce7de06c94 Merge branch 'mweb' of https://github.com/cake-tech/cake_wallet into mweb-bg-sync-2 2024-09-11 18:45:04 -07:00
Matthew Fosse
e55bd85649 Merge branch 'main' of https://github.com/cake-tech/cake_wallet into mweb 2024-09-11 18:44:52 -07:00
Matthew Fosse
8aa95a2eb7 more performance fixes 2024-09-11 18:44:25 -07:00
Matthew Fosse
f8d76fb2e1 address generation issues mostly resolved 2024-09-11 18:17:45 -07:00
Matthew Fosse
554df09c99 save mweb addresses, auto-restart sync process if it gets stuck [skip ci] 2024-09-11 16:14:04 -07:00
Matthew Fosse
cd307bf6e8 [skip ci] save 2024-09-11 14:28:58 -07:00
Matthew Fosse
c94c10cc05 [skip ci] wip address changes 2024-09-11 14:17:06 -07:00
Matthew Fosse
f53f96c667 Merge branch 'mweb' of https://github.com/cake-tech/cake_wallet into mweb-bg-sync-2 2024-09-11 13:01:27 -07:00
Matthew Fosse
a673d3977f hopefully prevents send issue 2024-09-11 13:00:10 -07:00
Matthew Fosse
180b967c18 updates 2024-09-11 12:33:11 -07:00
Rafael
0e106834bc
bump dep (#1679)
Some checks failed
Cache Dependencies / test (push) Has been cancelled
2024-09-11 18:54:13 +03:00
Matthew Fosse
c35908cdfb Merge branch 'mweb' of https://github.com/cake-tech/cake_wallet into mweb-bg-sync-2 2024-09-11 08:51:29 -07:00
Matthew Fosse
1e73a517fd minor code cleanup 2024-09-11 08:50:50 -07:00
Matthew Fosse
2573ca6b68 [skip ci] minor 2024-09-10 15:18:20 -07:00
Matthew Fosse
2c38641d5c more address generation reliability fixes 2024-09-10 14:58:03 -07:00
Matthew Fosse
5bda80fd7d Merge branch 'mweb' of https://github.com/cake-tech/cake_wallet into mweb-bg-sync-2 2024-09-10 14:01:14 -07:00
Matthew Fosse
d8d26a00a4 Merge branch 'main' of https://github.com/cake-tech/cake_wallet into mweb 2024-09-10 14:00:56 -07:00
Matthew Fosse
5be1284d58 Merge branch 'mweb' of https://github.com/cake-tech/cake_wallet into mweb-bg-sync-2 2024-09-10 11:42:18 -07:00
Matthew Fosse
150d065dbb [skip ci] testing 2024-09-10 11:41:47 -07:00
Serhii
215e785198
Update electrum_wallet.dart (#1664)
Some checks are pending
Cache Dependencies / test (push) Waiting to run
2024-09-10 21:39:07 +03:00
Matthew Fosse
1061b7de01 [skip ci] wip 2024-09-09 20:59:52 -07:00
Matthew Fosse
910825dc82 Merge branch 'mweb' of https://github.com/cake-tech/cake_wallet into mweb-bg-sync-2 2024-09-09 15:40:46 -07:00
Matthew Fosse
3963233c0e topup fix 2024-09-09 15:39:19 -07:00
OmarHatem
18a9bdea87 remove duplicate [skip ci] 2024-09-09 23:55:16 +03:00
fossephate
3a70d72241 Merge branch 'main' of https://github.com/cake-tech/cake_wallet into mweb 2024-09-09 13:26:50 -07:00
fossephate
728a0bf4b2 more minor fixes 2024-09-09 13:24:50 -07:00
Matthew Fosse
0f5ee476f1
Update cw_bitcoin/lib/litecoin_wallet.dart
Co-authored-by: Omar Hatem <omarh.ismail1@gmail.com>
2024-09-09 12:49:22 -07:00
fossephate
56c505da59 review updates pt.1 2024-09-09 12:46:53 -07:00
Serhii
125fdf8b62
quick fix for the reconnection issue (#1671)
* Update electrum.dart

* Update electrum.dart

* Duration seconds: 5 [skip ci]
2024-09-09 21:08:21 +03:00
Matthew Fosse
a87a02891f Merge branch 'mweb' of https://github.com/cake-tech/cake_wallet into mweb-bg-sync-2 2024-09-05 14:49:56 -07:00
Matthew Fosse
c8aa159f69 [skip ci] wip 2024-09-05 11:02:16 -07:00
Matthew Fosse
aa6cac897e wip 2024-09-04 17:48:56 -07:00
Matthew Fosse
7b5c36e5a7 wip 2024-09-04 15:50:56 -07:00
Matthew Fosse
5ec0e264ce [skip ci] wip adress generation 2024-09-04 11:06:52 -07:00
Matthew Fosse
197d658d0d Merge branch 'mweb' of https://github.com/cake-tech/cake_wallet into mweb-bg-sync-2 2024-09-03 11:06:13 -07:00
Matthew Fosse
d1c85651f2 improve mweb reliability 2024-09-03 11:05:55 -07:00
Matthew Fosse
9b96bde7f2 works but is still buggy 2024-08-29 17:53:10 -04:00
Matthew Fosse
879c29fe7c bg sync PoC working! (but crashes lol) 2024-08-29 14:29:37 -04:00
Matthew Fosse
008963eede Merge branch 'main' of https://github.com/cake-tech/cake_wallet into mweb 2024-08-28 14:55:17 -04:00
Omar Hatem
f072e79bb6
V4.19.5 v1.16.5 (#1654)
Some checks are pending
Cache Dependencies / test (push) Waiting to run
* some not enough enhancements for sync status

* update app versions

* minor fix
2024-08-27 20:49:12 +03:00
Matthew Fosse
a735b0bd6a remove unecessary changes and merge weirdness 2024-08-27 13:13:23 -04:00
Matthew Fosse
dfea890c9e Merge branch 'mweb' of https://github.com/cake-tech/cake_wallet into mweb-bg-sync 2024-08-27 13:09:32 -04:00
Matthew Fosse
e8eedf7967 Merge branch 'main' of https://github.com/cake-tech/cake_wallet into mweb 2024-08-27 12:10:25 -04:00
Matthew Fosse
dadae35c95 fix regression 2024-08-27 11:44:18 -04:00
Omar Hatem
518bfbe40d
fetch accurate fee rates from Cake's mempool api (#1649)
* fetch accurate fee rates from mempool api

* remove duplicate exception handler onError call [skip ci]

* add the domain name
2024-08-26 20:07:25 +03:00
Konstantin Ullrich
ce21098e98
Cw 488 seed offset (#1631)
* CW-488 minor code cleanup

* Add Derivation Path selector for BTC and LTC

* CW-488 Initial Passphrase Impl

* CW-488 Final Passphrase Impl

* Quick Fix of language Service

* CW-488 Implement PR Suggestions

* CW-488 Implement PR Suggestions

* CW-488 Implement Passphrase for Bitcoin Cash

* CW-488 Implement Passphrase for Bitcoin Cash

* CW-488 Implement Passphrase for Bitcoin Cash

* remove monero and wownero support for passphrase until merged [skip ci]

* CW-488 Apply requested change

* CW-488 Add Passphrase to QR

* CW-488 Fix Seed generation

* CW-488 Implement Electrum Passphrases

* CW-488 Add Seed Length Selector to BIP39 Seeds

* CW-488 Minor fix [skip ci]

---------

Co-authored-by: Omar Hatem <omarh.ismail1@gmail.com>
2024-08-26 20:06:54 +03:00
Matthew Fosse
81b81f0c24 Merge branch 'main' of https://github.com/cake-tech/cake_wallet into mweb 2024-08-26 11:09:50 -04:00
Serhii
40f85d215b
Rbf fixes issues op return data plus ThorChain (#1648)
* total out amount issue

* fix empty inputs and outputs addresses for new tx

* fix sum value of utxo not spending

* Update configure.dart

* Update electrum_wallet.dart

* receiving address

* review fixes

* add op_return data

* fix rbf transaction with a memo

* add memo check for ThorChain trade

* code enhancement [skip ci]

* code enhancement [skip ci]

* directly use fromElectrumBundle function to update transaction info

---------

Co-authored-by: Omar Hatem <omarh.ismail1@gmail.com>
2024-08-24 16:30:01 +03:00
Matthew Fosse
2552fb9552 ensure we don't initialize mweb until we really have to 2024-08-23 18:04:26 -04:00
Matthew Fosse
a0c315c4cf more fixes 2024-08-23 17:52:40 -04:00
Matthew Fosse
10c2353288 more fixes 2024-08-23 17:25:33 -04:00
Matthew Fosse
e7f7d20b19 Merge branch 'main' of https://github.com/cake-tech/cake_wallet into mweb 2024-08-23 15:17:40 -04:00
Matthew Fosse
527983af4f updates 2024-08-23 15:17:28 -04:00
Serhii
4c2d061363
rbf fixes issues sum utxo and fee calculation (#1625)
Some checks are pending
Cache Dependencies / test (push) Waiting to run
* total out amount issue

* fix empty inputs and outputs addresses for new tx

* fix sum value of utxo not spending

* Update configure.dart

* Update electrum_wallet.dart

* receiving address

* review fixes
2024-08-23 16:19:42 +03:00
Matthew Fosse
dc699af49c [skip ci] Merge branch 'main' of https://github.com/cake-tech/cake_wallet into mweb 2024-08-22 11:49:13 -04:00
Rafael
c0e0cf02aa
Fix testnet (#1632)
* fix: failed connection and misc changes

* default isTestnet to false

---------

Co-authored-by: OmarHatem <omarh.ismail1@gmail.com>
2024-08-22 01:31:20 +03:00
Matthew Fosse
49d2560eb9
fix (#1633)
Some checks are pending
Cache Dependencies / test (push) Waiting to run
2024-08-21 22:49:47 +03:00
Matthew Fosse
e0a0b7ab5d update bitcoin_base to fix mweb address program checking 2024-08-19 16:20:54 -04:00
Matthew Fosse
ef077c8647 change address fixes 2024-08-19 15:11:08 -04:00
Matthew Fosse
c620d6d5a8 dart:convert != package:convert 2024-08-19 14:33:05 -04:00
Matthew Fosse
501e4998c7 fix 2024-08-19 13:14:00 -04:00
Matthew Fosse
d315617efa small fix 2024-08-19 12:31:50 -04:00
Matthew Fosse
7d36da91fa small fix 2024-08-19 12:30:25 -04:00
Matthew Fosse
dac4a121d8 Merge branch 'main' of https://github.com/cake-tech/cake_wallet into mweb 2024-08-19 12:02:15 -04:00
OmarHatem
fe4b3e4eb0 push haven fix
Some checks are pending
Cache Dependencies / test (push) Waiting to run
2024-08-18 03:48:25 +03:00
Omar Hatem
c59d39d42d
Generic fixes (#1619)
* update fee rates

* periodically update fees

* minor enhancements

* minor enhancements

* some improvements
add solana node

* handle empty hex as null

* minor improvement

* fix imports

* fix app hanging on splash screen

* update app versions
temporarily disable sign/verify for hardware wallets
2024-08-18 03:37:15 +03:00
Matthew Fosse
7c9b72483a
Socket null handling (#1610)
* return null if in connection failure state

* reconnect on connection failure

* better connection handling

* probably not necessary but just incase

* connection handling updates

* add cancelOnError: true
2024-08-18 02:28:45 +03:00
Matthew Fosse
83ef61e928
Cw 565 sign messages (#1378)
* version bump to 3.13.9, auth working on mac

* bump flutter version in workflow file

* workflow fix

* test fix

* downgrade flutter version

* test fix

* test fix

* update gradle version

* start working on ui for message signing

* updates

* sign working for a few wallet types

* updates & verification for electrum currencies

* nano support

* sign/verify working on eth, bitcoin broken

* update translations

* Implement Verify Message for Monero

* save [skip ci]

* pub key extraction working

* fixes for electrum signing

* verify working for solana!

* electrum still not working :( [skip ci]

* electrum messages working!

* fixes for updated dart version, localization file updates

* remove accidental inclusion

* missed some unimplemented throws

* Update res/values/strings_de.arb

Co-authored-by: Konstantin Ullrich <konstantinullrich12@gmail.com>

* Apply suggestions from code review

Co-authored-by: Konstantin Ullrich <konstantinullrich12@gmail.com>

* review suggestions and updates [skip ci]

* [skip ci] add polygon

* [skip ci] merge mac-auth/update version

* fix litecoin

* bio auth mac fix

* remove comment and change duration from 2 to 0

* cherry pick previous changes

* litecoin fixes, sign form fixes, use new walletAddressPicker

* support accounts

* verify messages working for monero

* working sign and verify messages for nano

* electrum signing working [skip ci]

* additional nano fixes

* update translations

* attempt to decode signatures with base64

* workaround for secure storage bug on mac

* bump version to 3.19.5 (because breez will need this version anyways)

* some code cleanup

* some changess didn't get saved

* just documenting the issue [skip ci]

* undo accidental removal + minor code cleanup

* merge conflicts

* merge fixes [skip ci]

* add tron support

* [wip] fixing

* remove duplicate references to electrum path for maintainability

* fixes

* minor fix

* fixes

* undo debug comment

* update migration for all electrum based wallets

* hotfixes

* copy over the rest of the fixes

* minor code cleanup [skip ci]

* updates

* electrum signing workinggit statusgit statusgit statusgit status!

* copy same fixes for litecoin

* litecoin fixes

* add v to litecoin signatures

* fix dependencies

* fix bitcoin_base version

* merge fix

* dep override

* fix conflicts with main

* trial fix for android build

* fixes

* fix

* dep fix, should build

* fix signing for bitcoin cash

* [skip ci] minor code cleanup

* [skip ci] minor code cleanup 2

* forgot wonero, various other fixes

* more fixes

* fix solana (untested)

---------

Co-authored-by: Konstantin Ullrich <konstantinullrich12@gmail.com>
Co-authored-by: Omar Hatem <omarh.ismail1@gmail.com>
2024-08-18 02:10:27 +03:00
Omar Hatem
51ce70e100
Merge branch 'main' into mweb 2024-08-16 18:50:26 +03:00
Rafael
102139b061
feat: more info on privkey error (#1612)
Some checks are pending
Cache Dependencies / test (push) Waiting to run
2024-08-16 04:34:41 +03:00
Rafael
d96bab43c9
fix: p2sh addr (#1607) 2024-08-15 02:40:40 +03:00
Matthew Fosse
192045310c fixes 2024-08-14 13:16:52 -07:00
Matthew Fosse
c4499869e5 updates 2024-08-14 12:31:27 -07:00