Commit graph

143 commits

Author SHA1 Message Date
julian
e29d8dc047 Merge remote-tracking branch 'origin/staging' into add-ethereum
# Conflicts:
#	lib/pages/add_wallet_views/add_wallet_view/add_wallet_view.dart
2023-03-27 08:50:10 -06:00
julian
951c9638f3 bch zero conf fixes 2023-03-24 16:44:25 -06:00
julian
678a926ff3 bch zero conf fixes 2023-03-24 16:43:34 -06:00
julian
b2b9accee1 add serialized amount string to transaction 2023-03-24 15:31:05 -06:00
julian-CStack
e16bd90a68 BCH 0-conf 2023-03-23 09:09:30 -06:00
julian
702054ac61 Merge remote-tracking branch 'origin/staging' into add-ethereum
# Conflicts:
#	assets/svg/themed/forest/ethereum.png
#	assets/svg/themed/forest/ethereum.svg
#	lib/pages/add_wallet_views/create_or_restore_wallet_view/create_or_restore_wallet_view.dart
#	lib/pages/receive_view/addresses/edit_address_label_view.dart
#	lib/pages/receive_view/addresses/receiving_addresses_view.dart
#	lib/pages/wallet_view/sub_widgets/wallet_navigation_bar.dart
#	lib/pages/wallet_view/wallet_view.dart
#	lib/route_generator.dart
#	lib/utilities/assets.dart
#	lib/utilities/constants.dart
#	lib/widgets/animated_widgets/rotate_icon.dart
#	pubspec.lock
#	pubspec.yaml
2023-03-22 08:54:25 -06:00
julian
e6b5e847c3 coin control utxos fix 2023-03-09 10:30:10 -06:00
julian
b30f1db45b enable coin control for selected other coins 2023-03-08 16:11:46 -06:00
julian
16efeea1db project structure 2023-03-01 15:52:13 -06:00
julian
15b37b6f5c merge clean up and update eth to use isar for tx history and addresses 2023-02-14 11:43:48 -06:00
sneurlax
2bee017cb8 Merge branch 'null-mnemonic-passphrase' into paynyms 2023-02-13 17:02:22 -06:00
sneurlax
8ecf6e988a throw error on null bch mnemonic passphrase 2023-02-13 16:52:28 -06:00
julian
197a2a1f19 do not check addresses until refresh initiated 2023-02-13 12:13:30 -06:00
julian
5145d4fc01 query/filter bch addresses using derivation path components 2023-02-03 18:51:30 -06:00
julian
eb42493e4d bch derivePath bug fix 2023-02-03 18:05:19 -06:00
julian
9b4dee76a5 add derivationPath to Address constructor as required 2023-02-03 17:30:32 -06:00
julian
0c8e561995 bch constructDerivePath bug fix 2023-02-03 17:22:34 -06:00
julian
ad0059508c move wallet constructors below class declaration 2023-02-03 16:48:16 -06:00
julian
5b5ee30e41 centralized and cleaned up bip32 utils, and added mnemonic password functionality 2023-02-03 16:34:06 -06:00
julian
b0c00d8ec7 db refactor and added address labels 2023-02-03 13:22:21 -06:00
julian
f0a8d65b3e show sent tx immediately in history 2023-02-02 16:19:14 -06:00
sneurlax
80611d1a31 use bch44 derivation if bip44 is null 2023-02-02 11:40:42 -06:00
julian
b2d7414cb6 merge clean up 2023-02-02 09:41:33 -06:00
julian
dc581cd4fc Merge remote-tracking branch 'origin/staging' into paynyms
# Conflicts:
#	lib/services/coins/bitcoincash/bitcoincash_wallet.dart
2023-02-02 09:29:30 -06:00
sneurlax
4aec78f0ed
Add BIP44 derivation paths to Bitcoin Cash wallet restoration process (#330)
* add new derive path for bch

and make it the new default.  we currently use slip44 (coinType 145) as the default

* add default cases to DerivePathType switches now failing

* normalize DerivePathType errors

log failing derivePathType or type, as appropriate

* add default derive path case to paynym interface

* use slip44 in bch wallet

* linting

* WIP look up both bip44 and slip44 addresses

slip44 is used by default

* typo fix

* typo fix

thanks Julian

* remove print

* use slip44 addresses by default

* use AddressType unknown for bip44 derive path type

* use address type unknown in _getCurrentAddressForChain, too

* generate different keys for SLIP44 and BIP44 paths

* couple more slips

* return slip44 from addressType

* slip before bip

* revert slip44-bip44, bch's bip44->bch44

* set bch44 derive path to type unknown

do not comingle paths in later output selection by index

* handle bip44 and bch44 path addresses when handling outputs

* use bip44 by default

* typofix

* typo fix in the typo fix

yo dawg

* separate new derivation path functions into their own non-testnet block

* cleanup

* disable test

should re-enable if it can be fixed with the test mnemonic in hand

---------

Co-authored-by: julian <julian@cypherstack.com>
2023-02-02 09:24:26 -06:00
julian
16d4384525 possible putAddresses index violation error during full rescan fix 2023-02-02 09:03:57 -06:00
julian
68be62e3ef bch fetch derivation by address fix 2023-02-01 10:38:49 -06:00
julian
588d715a61 only clear out wallet utxos on refresh 2023-01-31 19:26:23 -06:00
julian
a41f80ac55 add height change notify 2023-01-30 11:06:28 -06:00
julian
79db4f048c use derive path type extension method per coin 2023-01-25 13:49:14 -06:00
julian
6b08acf225 single DerivePathType enum declaration 2023-01-25 12:08:48 -06:00
julian
f3325807e0 null address fix 2023-01-23 10:37:29 -06:00
julian
017719971b isar init fix and renaming of init functions 2023-01-20 15:57:54 -06:00
julian
fd5a237170 move db modifying func to MainDB out of WalletDb, add MainDB mocks to coin tests, build runner generate mocks 2023-01-19 15:13:03 -06:00
julian
60e850f442 add mockable override option for testing purposes 2023-01-19 14:33:23 -06:00
julian
8921302ee0 remove useless walletId param from db init 2023-01-19 14:07:08 -06:00
julian
db205b40e2 notify ui of tx changes and force refresh on rescan 2023-01-19 10:29:00 -06:00
julian
0a3c001845 fix all own addresses query 2023-01-18 17:20:23 -06:00
julian
575cce1a7d update address in case of bad index from migrate or any other reason 2023-01-18 16:55:59 -06:00
julian
38453ceafb delete old derivations when doing full rescan 2023-01-17 08:19:30 -06:00
julian
b348761bbe bch cashaddr fix 2023-01-17 08:04:30 -06:00
julian
d1f237ae51 explicit isar model constructors 2023-01-16 16:37:00 -06:00
julian
5562c14527 WIP refactor to single main isar db 2023-01-16 15:04:03 -06:00
julian
8a7236b46d clear out isar blockchain data per wallet when doing full rescan 2023-01-13 15:48:42 -06:00
julian
3414c71741 update other coin's parse transaction and db update 2023-01-13 15:36:19 -06:00
julian
52d5ab0d33 WIP tx parse + link address to transaction 2023-01-13 11:11:41 -06:00
julian
13e6fc6b47 restoring type fix 2023-01-13 09:26:37 -06:00
julian
8c67901c28 apply wallet cache mixin to rest of coin wallets and clean up hive code 2023-01-12 15:32:25 -06:00
julian
61a1ad551f clean up print 2023-01-12 12:55:57 -06:00
julian
4ab090cb92 remove unused hive inits 2023-01-12 12:54:22 -06:00
julian
3f830218a4 extract wallet isar db to mixin 2023-01-12 12:46:01 -06:00
julian
ccb9f254bd small bug fixes and added WalletCache mixin to handle balance cache etc 2023-01-12 12:15:28 -06:00
julian
e115ff1b41 only use the PaymentData 'data' once and do not generate p2sh data using p2wpkh unless required 2023-01-12 09:52:41 -06:00
julian
a73e18df75 expose wallet isar instance to Manager 2023-01-11 21:23:21 -06:00
julian
30d8f8b810 update isCancelled flag name to be consistent with other isar model bool values 2023-01-11 14:48:55 -06:00
julian
25a60920dd migrate bitcoincash_wallet.dart to isar transactions, addresses, and utxos, as well as the cleaner balance model 2023-01-11 13:30:03 -06:00
julian
8ee9428758 add currentHeight getter 2023-01-10 17:50:22 -06:00
shillo
5accda7355 disable unsupported device locale on windows 2022-12-29 10:48:12 -06:00
ryleedavis
28f9fcaa0a added another todo: check print 2022-12-19 09:29:47 -07:00
ryleedavis
390623560e debugPrints that aren't needed ? 2022-12-12 17:17:02 -07:00
julian
d86f0de130 timeout check server features on wallet creation (allow offline new wallet creation on timeout) 2022-11-30 09:54:46 -06:00
julian
5c9664c667 Revert "do not check server features on wallet creation (allow offline new wallet creation)"
This reverts commit 745abe0f10.
2022-11-30 09:46:28 -06:00
julian
745abe0f10 do not check server features on wallet creation (allow offline new wallet creation) 2022-11-30 09:22:58 -06:00
julian
adee71224b Format coin amounts improvements, fixed fee rates display issue, use hard coded xmr estimates for now 2022-11-23 12:42:23 -06:00
julian
3ee0e97628 DesktopSecureStore implementation using Isar as backend, renamed FlutterSecureStorageInterface 2022-11-09 17:55:34 -06:00
julian
2bdf5f152c dynamic secure storage provider 2022-11-09 17:55:34 -06:00
julian
c962f597fd added extra checks to BCH as well as test cases 2022-11-07 15:48:27 -06:00
julian
bb260e3a23 hacky fix (due to current persistence design) to get sent transactions showing up right away for electrumx coins 2022-11-07 10:24:37 -06:00
julian
e87aa64e1b isFavorite bandaid fix for https://github.com/cypherstack/stack_wallet/issues/203 2022-11-05 09:40:28 -06:00
julian
7dbc9d270b temp bch send fix testnet and fix tests 2022-11-04 18:18:39 -06:00
julian
74b075328f temp bch send fix 2022-11-04 17:42:45 -06:00
julian
ccd94fcf86 bch compare address type to constant names instead of int literals 2022-11-04 17:42:45 -06:00
julian
039a9a68f6 bch clean up linter warnings and unused variables 2022-11-04 17:42:45 -06:00
Marco
27c2e38311 fix bitcoin cash tests 2022-10-19 16:16:00 -06:00
Marco
2a3997e837 refresh bitcoin cash cache if it has old data 2022-10-19 16:05:36 -06:00
Marco
46d5f26054 fix bitcoin cash null errors 2022-10-19 14:21:48 -06:00
julian
57f0ea5ead Merge branch 'desktop' into testing
# Conflicts:
#	lib/pages/add_wallet_views/restore_wallet_view/restore_options_view/restore_options_view.dart
#	lib/pages/wallet_view/transaction_views/transaction_search_filter_view.dart
#	lib/utilities/text_styles.dart
#	test/services/coins/bitcoincash/bitcoincash_wallet_test.dart
2022-09-26 14:35:58 -06:00
julian
84db4ac17f enable bch 2022-09-26 14:32:53 -06:00
Likho
04f80c61a5 WIP: Fix bch tests 2022-09-26 10:12:54 +02:00
Likho
d4cfea4bb7 WIP: Fix failing tests 2022-09-23 17:14:22 +02:00
Likho
909436afdc WIP: Add p2sh address for bch 2022-09-23 14:31:14 +02:00
julian
43b673ec0d dark mode testing without partial nmc+bch 2022-09-22 18:06:19 -06:00
Likho
8bb6ba6ab7 WIP: Update dust limit for nmc and bch, update nmc history data 2022-09-19 19:38:32 +02:00
Likho
f9c5859756 WIP: TEsting bch 2022-09-16 15:44:27 +02:00
Likho
aba579f64e WIP: Fix bch failing tests, add testnet 2022-09-16 13:13:30 +02:00
Likho
2f5650ce30 WIP: BCH and NMC tests 2022-09-15 21:41:12 +02:00
Likho
567d549747 WIP: Update namecoin network 2022-09-13 12:58:04 +02:00
Likho
84694fa1dd WIP: Add namecoin 2022-09-12 14:01:42 +02:00
Likho
6fab5c9976 Add images for bch 2022-09-09 12:59:40 +02:00
Likho
e365bb0c16 Update blockexplorer for bch and fix USD amount not showing in send view 2022-09-07 17:43:39 +02:00
Marco
cbb3c3f241 bitcoin cash sending works for legacy and new addresses bip44 2022-09-07 20:54:18 +08:00
Likho
5cbaa597d3 Update bch network 2022-09-07 13:11:50 +02:00
Likho
d5b82f26f7 WIP: Add bitcoincash 2022-09-06 16:17:45 +02:00