Commit graph

763 commits

Author SHA1 Message Date
fossephate
03d69d44ce small cleanup 2023-05-24 12:12:28 -04:00
fossephate
7a95c20645 nano sending + minor sats constants refactor 2023-05-24 11:56:44 -04:00
julian
40dfced949 fix: default to 0 mint index if none saved 2023-05-23 10:43:08 -06:00
julian
a77c8c02fd ensure skipping tx if it is a jmint 2023-05-23 10:11:44 -06:00
julian
304675351a WIP: firo tx parsing clean up and fixes 2023-05-23 09:46:34 -06:00
julian
ee830a4788 Merge remote-tracking branch 'origin_SW/staging' into firo_cleanup 2023-05-23 07:32:12 -06:00
julian
b7619c3108 default to 12 word seeds for new wallets 2023-05-19 16:44:49 -06:00
detherminal
8f89f19b91 feat: add nano 2023-05-19 13:20:16 +03:00
julian
a3422696ba fix 2023-05-17 15:55:17 -06:00
julian
dfc283c757 ecashaddrs working? 2023-05-17 13:14:16 -06:00
julian
23a6236b4c update branch 2023-05-17 12:16:38 -06:00
julian
0d7a0a8fb9 Merge branch 'staging' into add-ecash
# Conflicts:
#	lib/utilities/assets.dart
#	lib/utilities/theme/color_theme.dart
2023-05-17 12:11:08 -06:00
julian
e406374796 clean up and optimizations 2023-05-17 11:34:40 -06:00
julian
d270ea38a2 clean up tx count function 2023-05-17 08:37:27 -06:00
julian
ab78e3fbca clean up _getUnspentCoins() 2023-05-16 15:59:06 -06:00
julian
9725ed32be WIP rework of anon balance calc 2023-05-16 15:15:08 -06:00
julian
02fe1103cb fix assignment issue 2023-05-16 14:43:52 -06:00
julian
01999e4f29 revert if pointless or breaks things? 2023-05-16 14:38:24 -06:00
Josh Babb
7d8f03dd20 add warning 2023-05-16 15:20:18 -05:00
julian
eac4ee54f1 logging on possible bad data 2023-05-16 14:17:12 -06:00
julian
a513e90082 make function easier to read: Part 2 2023-05-16 14:13:14 -06:00
julian
87507585b8 make function easier to read 2023-05-16 14:08:25 -06:00
julian
d0c53c2673 Strongly typed used serials list 2023-05-16 13:29:48 -06:00
julian
1b92f2b36b no more derivations stored for firo 2023-05-16 11:33:00 -06:00
julian
8351821c89 disable xpubs temporarily 2023-05-15 11:15:35 -06:00
julian
127564f2ac fix: bch remove bad address type 2023-05-15 07:48:50 -06:00
julian
539dec13f5 clean up and fixed bugs found while porting themes to duo 2023-05-13 21:25:46 -06:00
julian
fe0155edc7 Merge remote-tracking branch 'origin_SW/staging' into themes 2023-05-12 11:16:32 -06:00
julian
4213eca928 Merge remote-tracking branch 'origin_SW/staging' into themes
# Conflicts:
#	lib/db/isar/main_db.dart
2023-05-09 18:00:17 -06:00
julian
511ac393b6 untested notifications wrapper 2023-05-09 11:54:15 -06:00
likho
f57ec039b2 Stop epicbox listener when wallet is syncing 2023-05-09 11:49:20 +02:00
julian
2cf7d6de93 fix: more bch zero conf special case fixes 2023-05-08 16:15:39 -06:00
likho
affee53ca6 Add send to address for epic when sending 2023-05-05 13:58:53 +02:00
julian
e05caa589f bch block height showing as pending in ui fix 2023-05-01 13:41:53 -06:00
julian
1e9642ec94 gap check fix ported from btc to bch 2023-04-27 09:01:14 -06:00
julian
cce4336f43 ensure all addresses with history have been generated before scanning for tx history on restore 2023-04-26 17:05:45 -06:00
julian
5a50f7d256 ensure notification address is added to local db 2023-04-26 16:19:24 -06:00
julian
1dc2a3ce15 fix signing paynym received inputs 2023-04-26 15:12:36 -06:00
julian
d0bb0183f3 btc all own addresses query fix 2023-04-26 13:11:56 -06:00
julian
ce01269dbe clean up unneeded code 2023-04-26 09:28:04 -06:00
julian
2bfce21058 btc restore gap fix 2023-04-26 09:27:29 -06:00
julian
8c3fffde9d segwit paynym.is updates and fixes 2023-04-25 15:06:12 -06:00
julian
573668a333 bch testnet send fix 2023-04-24 12:10:46 -06:00
julian
f9aac8ea36 clean up remaining add derivation stuff in btc and paynyms 2023-04-20 18:47:07 -06:00
julian
0734d9ee8a move to cleaner tx signing and stop adding derivations on address generation as we now have the info we need in the Address class. Old derivations should still be checked as not all old addresses are guaranteed to had a derivation path property 2023-04-20 18:36:43 -06:00
julian
58bc67f9ea some derivations additions cleaned up in btc 2023-04-20 18:00:08 -06:00
julian
6c3cddb48a clean up bch restore process 2023-04-20 17:53:09 -06:00
julian
8e73e3ecba pass bip32 root node is available to save generation time 2023-04-20 12:35:08 -06:00
julian
703ceee86d clean up btc restore, stop storing derivations as they aren't needed anymore, and ensure all previous unused addresses are saved. 2023-04-20 12:34:31 -06:00
julian
1714e2a7d8 set wow confs to 15 2023-04-20 11:00:52 -06:00
julian
9a6dcba631 Merge branch 'ui-fixes' into add-ecash 2023-04-17 15:55:09 -06:00
julian
9974f60b4c zero conf possible null fix 2023-04-17 15:44:50 -06:00
julian
8b76ef4f30 ecash derivation path 2023-04-17 12:58:34 -06:00
julian
f87c5e8aa7 duplicate code clean up 2023-04-17 09:47:51 -06:00
julian
e01b422573 check server version 2023-04-17 09:42:55 -06:00
julian
9df5bc4f36 non batched tx history fetching if server doesn't support batching 2023-04-17 09:28:02 -06:00
julian
9c5c0cb179 non batched tx count if server doesn't support batching 2023-04-17 09:18:50 -06:00
julian
ba77b40674 non batched utxo fetch if server doesn't support batching 2023-04-17 08:27:44 -06:00
julian-CStack
93b040bc5f WIP e-cash 2023-04-17 07:53:39 -06:00
julian
788d1f5205 set min wownero confirmations to 4 2023-04-15 12:00:28 -06:00
julian
1e71e3d615 epic amount type cast error fix 2023-04-12 08:09:04 -06:00
julian
723ec64354 eth fixes 2023-04-11 14:25:13 -06:00
julian
e72f2018d0 missed firo amount 2023-04-11 11:20:57 -06:00
julian
ce67673a94 duplicated lower cased eth address fix 2023-04-11 09:53:26 -06:00
julian
b3efbda2e4 some amount sending fixes 2023-04-11 09:17:58 -06:00
sneurlax
aeff2f82ae remove typo 2023-04-10 16:58:07 -05:00
sneurlax
af1993cc01 amount-related ui fixes for firo/spend-mints 2023-04-10 16:56:17 -05:00
sneurlax
d883aaf602 Merge remote-tracking branch 'stack_wallet_origin/ui-fixes' into firo/spend-mints 2023-04-10 16:04:14 -05:00
sneurlax
80ca2f2d2c check if mint txs are confirmed 2023-04-10 15:58:56 -05:00
sneurlax
d3db4e6868 instead of assuming mint = confirmed, move logic down so isUnconfirmed has an exception 2023-04-10 15:35:25 -05:00
sneurlax
77b1e23144 assume mints listed in lelantus txs are confirmed
TODO make sure that mints/_mintTxnData only contains confirmed tx / filter unconfirmed
2023-04-10 15:21:33 -05:00
julian
5bf678d41a Balance class clean up 2023-04-10 12:00:23 -06:00
julian
72d6e636f0 Merge remote-tracking branch 'origin/staging' into ui-fixes
# Conflicts:
#	lib/services/coins/manager.dart
2023-04-07 18:56:59 -06:00
julian
839ee314a2 xpub refactor to include coin network type in generation 2023-04-07 18:44:43 -06:00
julian
94896dfd60 Amount fixes 2023-04-06 17:49:13 -06:00
julian
25ff880280 move amount.dart file 2023-04-06 15:24:56 -06:00
julian
ecc075d5fc Merge remote-tracking branch 'origin/staging' into add-ethereum
# Conflicts:
#	lib/utilities/theme/forest_colors.dart
2023-04-06 12:42:05 -06:00
julian
81c612ddd7 WIP use Amount 2023-04-05 16:06:31 -06:00
Diego Salazar
366c152521
Merge pull request #455 from cypherstack/epic/2-confs
Reduce Epic Cash minimum confirmations to 3
2023-04-03 17:19:32 -06:00
sneurlax
a6c2a30af4
bump min confs to 3 2023-04-03 14:36:06 -05:00
sneurlax
74344168f2 reduce MINIMUM_CONFIRMATIONS to 2 2023-04-03 14:30:36 -05:00
julian
e584070b96 Merge remote-tracking branch 'origin/staging' into add-ethereum 2023-03-31 17:19:31 -06:00
julian
6704d82889 eth + token send fixes 2023-03-31 17:17:15 -06:00
likho
516a916b9d Fix Epiccash sendAll not enough funds error 2023-03-31 20:27:27 +02:00
julian
c8139007e3 use new transaction nonce property 2023-03-31 10:18:51 -06:00
julian
b3c4e690c7 move confirmSend to a nicer place 2023-03-31 09:25:08 -06:00
julian
f69f9a5038 Merge remote-tracking branch 'origin/staging' into add-ethereum
# Conflicts:
#	lib/widgets/wallet_card.dart
2023-03-29 14:09:23 -06:00
julian
bfeb3e0d30 WIP eth fees 2023-03-29 12:49:12 -06:00
julian
5e5730d5a5 eth token wallet general ui and wallet selection interface 2023-03-28 16:18:11 -06:00
julian
b4a344ebad firo balance bug fix 2023-03-28 08:14:48 -06:00
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
4bd87e8dce start using Amount 2023-03-27 08:41:59 -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
3e1e68237a Merge remote-tracking branch 'origin/staging' into add-ethereum
# Conflicts:
#	lib/models/isar/models/blockchain_data/address.dart
#	lib/pages/add_wallet_views/create_or_restore_wallet_view/create_or_restore_wallet_view.dart
#	lib/pages/settings_views/global_settings_view/appearance_settings_view.dart
#	lib/pages_desktop_specific/settings/settings_menu/appearance_settings.dart
#	lib/utilities/db_version_migration.dart
#	test/pages/send_view/send_view_test.mocks.dart
#	test/screen_tests/address_book_view/subviews/add_address_book_view_screen_test.mocks.dart
#	test/screen_tests/address_book_view/subviews/address_book_entry_details_view_screen_test.mocks.dart
#	test/screen_tests/address_book_view/subviews/edit_address_book_entry_view_screen_test.mocks.dart
#	test/screen_tests/exchange/exchange_view_test.mocks.dart
#	test/screen_tests/lockscreen_view_screen_test.mocks.dart
#	test/screen_tests/main_view_tests/main_view_screen_testA_test.mocks.dart
#	test/screen_tests/main_view_tests/main_view_screen_testB_test.mocks.dart
#	test/screen_tests/main_view_tests/main_view_screen_testC_test.mocks.dart
#	test/screen_tests/onboarding/backup_key_view_screen_test.mocks.dart
#	test/screen_tests/onboarding/backup_key_warning_view_screen_test.mocks.dart
#	test/screen_tests/onboarding/create_pin_view_screen_test.mocks.dart
#	test/screen_tests/onboarding/restore_wallet_view_screen_test.mocks.dart
#	test/screen_tests/onboarding/verify_backup_key_view_screen_test.mocks.dart
#	test/screen_tests/settings_view/settings_subviews/currency_view_screen_test.mocks.dart
#	test/screen_tests/settings_view/settings_subviews/network_settings_subviews/add_custom_node_view_screen_test.mocks.dart
#	test/screen_tests/settings_view/settings_subviews/network_settings_subviews/node_details_view_screen_test.mocks.dart
#	test/screen_tests/settings_view/settings_subviews/wallet_backup_view_screen_test.mocks.dart
#	test/screen_tests/settings_view/settings_subviews/wallet_settings_subviews/rescan_warning_view_screen_test.mocks.dart
#	test/screen_tests/settings_view/settings_subviews/wallet_settings_subviews/wallet_delete_mnemonic_view_screen_test.mocks.dart
#	test/screen_tests/settings_view/settings_subviews/wallet_settings_view_screen_test.mocks.dart
#	test/screen_tests/settings_view/settings_view_screen_test.mocks.dart
#	test/screen_tests/transaction_subviews/transaction_search_results_view_screen_test.mocks.dart
#	test/screen_tests/wallet_view/confirm_send_view_screen_test.mocks.dart
#	test/screen_tests/wallet_view/receive_view_screen_test.mocks.dart
#	test/screen_tests/wallet_view/send_view_screen_test.mocks.dart
#	test/screen_tests/wallet_view/wallet_view_screen_test.mocks.dart
#	test/widget_tests/managed_favorite_test.mocks.dart
#	test/widget_tests/table_view/table_view_row_test.mocks.dart
#	test/widget_tests/transaction_card_test.mocks.dart
#	test/widget_tests/wallet_info_row/sub_widgets/wallet_info_row_balance_future_test.mocks.dart
#	test/widget_tests/wallet_info_row/wallet_info_row_test.mocks.dart
2023-03-23 18:13:24 -06:00
julian
c51ef8ee26 edit wallet token list 2023-03-23 16:28:20 -06:00
julian
be11b18eb8 handle user added wallet contracts 2023-03-23 12:16:28 -06:00
julian-CStack
e16bd90a68 BCH 0-conf 2023-03-23 09:09:30 -06:00
sneurlax
68bf6a6565 add mint/anonymization txs to balance
currently breaks when a mint/anonymization tx is correctly recognized as a send but not correctly recognized as isUsed
2023-03-22 18:05:52 -05:00
sneurlax
79706d51f5 increment mint index by 1 2023-03-22 17:29:20 -05:00
julian
d2bddcdd8d add token view button to wallet nav bar 2023-03-22 09:39:28 -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
ea933e0474 do not freeze notification tx change outputs 2023-03-20 09:23:33 -06:00
julian
d0be86f4ba WIP desktop 'more features' and coin control 2023-03-13 14:37:05 -06:00
julian
d45caa47b3 block sent notification tx change output with reason 2023-03-09 15:49:23 -06:00
julian
0cace4d7bc partial derivation not found null fix 2023-03-09 15:08:13 -06:00
julian
c04723840f fix bug that can cause transaction broadcast to fail in the case where two or more input utxos come from the same parent transaction 2023-03-09 13:49:39 -06:00
julian
645ec5c2a0 delete unused file 2023-03-09 12:29:38 -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
ec237d0001 Merge remote-tracking branch 'origin/staging' into coin_control 2023-03-08 13:42:12 -06:00
julian
2b1d438953 balance refresh and total display fixes 2023-03-08 13:03:04 -06:00
julian
ea49ed32ab update balance after viewing coin control 2023-03-08 12:22:33 -06:00
julian
ffdb74d0e8 mark utxos as used on successful tx broadcast 2023-03-08 09:56:32 -06:00
julian
4aae0fc76e update coinSelection to handle custom list of UTXOs 2023-03-08 09:47:35 -06:00
julian
6465faa4e1 btc update utxo set 2023-03-07 09:00:42 -06:00
julian
251f90834c update UTXO schema 2023-03-06 14:39:41 -06:00
Likho
a940a0e75b Fix send error 2023-03-06 19:18:46 +02:00
julian
7319f509f0 add coin control option to mobile more menu + assets fix 2023-03-06 10:34:41 -06:00
julian
b617b3e5e0 added more logging 2023-03-03 11:36:28 -06:00
Diego Salazar
aadbeff488
Merge pull request #382 from cypherstack/fix/epic-create
Fix epic wallet creation epicbox config error by adding and using an EpicBoxConfigModel and an EpicBoxServerModel
2023-03-03 08:55:06 -07:00
Diego Salazar
9a04f5db31
Merge branch 'staging' into fix/epic-delete 2023-03-03 08:54:32 -07:00
sneurlax
0089dc8333 send real config, not epicbox config, to deletewallet 2023-03-02 19:08:58 -06:00
julian
babbd75da3 use database contract data and contract management updates 2023-03-02 18:40:12 -06:00
julian
a5d8fdde79 parse eth tx json to data transfer objects 2023-03-02 15:07:25 -06:00
sneurlax
83d0157600 add and use EpicBoxConfigModel and EpicBoxServerModel 2023-03-02 14:51:19 -06:00
sneurlax
6f27184619 type handling
hack not fix (model is fix)
2023-03-01 18:09:25 -06:00
sneurlax
a8e079bd84 pass config param to wallet deletion method
had to add param because existing rust wallet deletion method can't check for existence without it but I'd like to do this differently on the rust side and revert this change

plus the type handling (`decoded is String`) is a hack vs making a model like it probably should be
2023-03-01 17:59:20 -06:00
julian
16efeea1db project structure 2023-03-01 15:52:13 -06:00
julian
11177b50c3 tx parsing fix 2023-03-01 15:19:53 -06:00
likho
ca6fa2d101 Add check for domain for epicbox address 2023-03-01 14:27:35 +02:00
julian
e3548c5ecc WIP wallet token management 2023-02-28 18:36:54 -06:00
julian
305b252573 replace 'net_*' calls with 'eth_*' alternatives 2023-02-27 16:49:20 -06:00
julian
2287cd751e Merge remote-tracking branch 'origin/paynyms' into add-ethereum 2023-02-27 08:42:35 -06:00
likho
716dbe706b Fix epicbox config issue when creating new wallet 2023-02-25 11:42:21 +02:00
julian
9c8fd22bfb WIP load and display token transactions 2023-02-24 14:07:59 -06:00
julian
5aed55235c WIP eth refactor 2023-02-23 16:59:58 -06:00
julian
1653bb2096 Merge remote-tracking branch 'origin/ui-fixes' into add-ethereum 2023-02-23 14:36:38 -06:00
julian
d657681d23 Merge remote-tracking branch 'origin/staging' into add-ethereum
# Conflicts:
#	pubspec.lock
2023-02-23 14:27:49 -06:00
julian
a57cd88696 use segwit change address for notification tx 2023-02-23 14:01:36 -06:00
julian
a63af1787a explicitly check p2pkh change address on refresh 2023-02-23 13:49:27 -06:00
sneurlax
6a6b3767aa comment update 2023-02-21 17:56:08 -06:00
sneurlax
9333a28180 reorder function and add comment for clarity 2023-02-21 15:37:54 -06:00
sneurlax
63fbd003e2 don't save failover epicbox server to hive if primary fails
just return the failover
2023-02-21 15:35:05 -06:00
sneurlax
937c1263e7 debugPrint -> Logging.instance.log 2023-02-21 15:21:12 -06:00
sneurlax
a44dfe7650 linting 2023-02-21 15:20:43 -06:00
likho
928f0e4e51 When default epic server is down default to EU, if that is down do not allow TX sending 2023-02-21 18:48:59 +02:00
Diego Salazar
2917db6bd6
Merge branch 'staging' into update-epic 2023-02-18 18:38:47 -07:00
likho
719f554995 More clean up, handle epicbox config for old wallets 2023-02-17 19:44:21 +02:00
julian
5fecce54cd Merge remote-tracking branch 'origin/staging' into paynyms 2023-02-16 14:20:30 -06:00
julian
755115b848 temporarily force refresh bip47 notification tx history on txns refresh 2023-02-16 08:05:41 -06:00
likho
6645febe36 Fix cancel error 2023-02-16 13:41:09 +02:00
julian
7e2276394c ensure utxos are fetched after refreshing transactions to ensure bip47 notification utxos are not included in balances 2023-02-15 17:26:44 -06:00
Likho
4077af77d8
Merge branch 'staging' into update-epic 2023-02-15 19:31:59 +02: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
julian
056fa1947c Merge remote-tracking branch 'origin/staging' into add-ethereum
# Conflicts:
#	lib/pages/settings_views/global_settings_view/manage_nodes_views/add_edit_node_view.dart
#	lib/pages/wallet_view/sub_widgets/wallet_navigation_bar.dart
#	lib/pages/wallet_view/wallet_view.dart
#	lib/services/price.dart
#	lib/utilities/assets.dart
#	pubspec.lock
#	pubspec.yaml
2023-02-14 08:24:04 -06:00
julian
1c812b0bf2 extra firo logging 2023-02-13 17:22:47 -06:00
sneurlax
2bee017cb8 Merge branch 'null-mnemonic-passphrase' into paynyms 2023-02-13 17:02:22 -06:00
sneurlax
efbfe4def7 apply null mnemonic passphrase error log to other relevant coins 2023-02-13 16:53:28 -06:00
sneurlax
8ecf6e988a throw error on null bch mnemonic passphrase 2023-02-13 16:52:28 -06:00
sneurlax
00c99cbcc5 Merge remote-tracking branch 'cypherstack/paynyms' into fix/firo 2023-02-13 16:39:06 -06:00
julian
903b39c454 semi graceful paynym.is call failure during btc recover 2023-02-13 15:29:12 -06:00
sneurlax
7666a9383d putAddresses->updateOrPutAddresses
should solve isar unique index violation error
2023-02-13 14:02:52 -06:00
julian
197a2a1f19 do not check addresses until refresh initiated 2023-02-13 12:13:30 -06:00
likho
a378ff751b Remove all things epicpost 2023-02-13 17:46:34 +02:00
likho
0ddc8080e1 Update listen for slates functionality 2023-02-13 16:49:25 +02:00
julian
14b2424c3f epic address fix 2023-02-09 10:26:58 -06:00
julian
83bc26921b epic address fix 2023-02-08 09:57:26 -06:00
julian
998967245e migrate wallet on open 2023-02-08 07:29:27 -06:00
julian
d4499ac3bc firo bug fix and test update 2023-02-03 19:04:43 -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
4d891e0f31 clean up 2023-02-03 16:42:27 -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
likho
e3101d98af Update Epicbox config to match latest epic version 2023-02-03 20:34:19 +02:00
julian
f0a8d65b3e show sent tx immediately in history 2023-02-02 16:19:14 -06:00
julian
97604a792f fix offline wallet creation for namecoin and particl 2023-02-02 15:48:06 -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
eaf8fe7094 possible epic cash address get fix 2023-02-02 08:48:03 -06:00
julian
ce5586d675 extra percent notifier 2023-02-01 16:46:27 -06:00
julian
9dc5f91a04 add logging to fee btc calc 2023-02-01 15:37:58 -06:00
julian
72cb62774c revert and modify tx size calc for two outputs 2023-02-01 15:20:49 -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
19bf4c0df6 scan following/followers for paynym history 2023-01-31 17:26:10 -06:00
julian
6df782647e btc send exact value of output fix 2023-01-31 13:44:56 -06:00
julian
0a264a97c5 pass p2pkh change address to paynym interface 2023-01-31 10:37:53 -06:00
julian
a41f80ac55 add height change notify 2023-01-30 11:06:28 -06:00
julian
17cbc390e4 pass in correct values 2023-01-30 08:28:54 -06:00
likho
f7e2568e6a Add validation for custom addresses and clean up 2023-01-30 15:44:30 +02:00
julian
3985674525 dirty payment code obfuscation 2023-01-27 18:18:58 -06:00
julian
3105c21c35 move paynym interface from doge to btc 2023-01-27 15:03:03 -06:00
julian
b09b3d0e1f restore all paynym history function 2023-01-27 14:43:38 -06:00
julian
451edbfc67 handle dropped mempool/blockchain transactions 2023-01-27 12:49:25 -06:00
julian
8b071e8774 ensure paynym notification address is generated and added to database on restore 2023-01-27 10:21:23 -06:00
julian
5159a61271 block paynym notification utxos 2023-01-27 10:20:26 -06:00
julian
6d7284d216 do not display incoming notification transaction in ui 2023-01-27 10:04:55 -06:00
likho
fd0b20d661 Complete adding ERC-20 functionality 2023-01-27 14:32:05 +02:00
julian
9b74f52ce9 add receiving address derivation to secure storage 2023-01-26 16:17:26 -06:00
julian
9cc0d74b16 check paynym receiving addresses based on payment code notification tx history 2023-01-26 15:25:53 -06:00
likho
dbcbfe342c WIP: Add test ETH Token functionality in stack 2023-01-26 20:08:12 +02:00
julian
fb3f430edc disable PaynymSupport extension and use PaynymWalletInterface instead 2023-01-25 15:49:57 -06:00
julian
7cb497f4f7 remove coin enum hasPaynymSupport getter in favor of type checking 2023-01-25 15:46:48 -06:00
julian
9c44dc6c6b add support to make adding segwit paynym support simple once implemented 2023-01-25 14:33:59 -06:00
julian
79db4f048c use derive path type extension method per coin 2023-01-25 13:49:14 -06:00
julian
35ba2f9d79 use derive path type in paynym extension 2023-01-25 12:13:01 -06:00
julian
6b08acf225 single DerivePathType enum declaration 2023-01-25 12:08:48 -06:00
julian
1965501bf8 added address scanning for send and receiving addresses given the context of your own payment code and another, address type choice also added for send/receive address generation 2023-01-25 11:13:21 -06:00
likho
d4653ea794 WIP: Add token functionality 2023-01-25 18:08:27 +02:00
julian
26245517ac add paynym send functionality to paynym extension 2023-01-25 09:26:50 -06:00
likho
abf9f02f8e ADdress fix 2023-01-25 14:09:07 +02:00
likho
4efd432de6 WIP: Add wallet tokens 2023-01-25 11:29:20 +02:00
julian
37fa5e9d19 remove old file and add todos 2023-01-24 16:18:17 -06:00
julian
6253652c21 detect paynym notification transactions 2023-01-23 16:11:24 -06:00
julian
69dfbb5873 paynym clean up to use isar transaction and address upgrades 2023-01-23 12:19:13 -06:00
julian
f3325807e0 null address fix 2023-01-23 10:37:29 -06:00
julian
165021ca2e Merge branch 'isar_migrate' into paynyms 2023-01-20 17:27:18 -06:00
julian
a391a76eec trusted nodes fix and possibly other node fix 2023-01-20 16:24:33 -06:00
julian
017719971b isar init fix and renaming of init functions 2023-01-20 15:57:54 -06:00
julian
830fd58754 Merge branch 'isar-transactions' into isar_migrate
# Conflicts:
#	lib/services/coins/bitcoin/bitcoin_wallet.dart
#	lib/services/coins/bitcoincash/bitcoincash_wallet.dart
#	lib/services/coins/coin_service.dart
#	lib/services/coins/dogecoin/dogecoin_wallet.dart
#	lib/services/coins/firo/firo_wallet.dart
#	lib/services/coins/litecoin/litecoin_wallet.dart
#	lib/services/coins/monero/monero_wallet.dart
#	lib/services/coins/namecoin/namecoin_wallet.dart
#	lib/services/coins/particl/particl_wallet.dart
#	lib/services/coins/wownero/wownero_wallet.dart
#	pubspec.yaml
2023-01-20 15:30:48 -06:00
julian
c1182f61bc start centralizing custom exceptions 2023-01-20 12:25:32 -06:00
julian
5c66b0380b move standard electrum x transaction parsing function into a mixin 2023-01-20 12:16:27 -06:00
julian
4c25a88c32 update to use new block data callback 2023-01-20 11:48:59 -06:00
likho
706cbbfa39 Add tokens class 2023-01-20 19:24:19 +02: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
686c897515 remove unused param from constructor 2023-01-19 11:41:59 -06:00
julian
db205b40e2 notify ui of tx changes and force refresh on rescan 2023-01-19 10:29:00 -06:00
julian
95b9e6170f firo mint tx migrate fix 2023-01-19 09:16:30 -06:00
likho
74ab70df7e Use mainnet 2023-01-19 10:45:09 +02:00
julian
7d061866bd btc tx fetch fetch fix 2023-01-18 18:13:08 -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
719f70697a epic isar fixes 2023-01-18 09:42:46 -06:00
julian
30635b05d5 wow isar tx sync fixes 2023-01-17 17:19:09 -06:00
julian
505e8adad7 xmr isar tx sync fixes 2023-01-17 16:56:21 -06:00
julian
ef9205a0a9 particl isar tx parse fixes 2023-01-17 16:11:04 -06:00
julian
9bb71b0e13 firo isar index and null address fix 2023-01-17 12:31:07 -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
203cd12678 epic bugfix 2023-01-16 16:56:24 -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
0223a75d95 putAll 2023-01-16 12:58:10 -06:00
julian
5e592f8d29 epic index fix 2023-01-16 08:53:46 -06:00
julian
09b51def04 missing value init fix 2023-01-14 08:00:43 -06:00
julian
ea212b3dd8 useless print 2023-01-13 17:00:05 -06:00
julian
8a7236b46d clear out isar blockchain data per wallet when doing full rescan 2023-01-13 15:48:42 -06:00
julian
061658f2e9 dynamic map value fix 2023-01-13 15:44:14 -06:00
julian
3414c71741 update other coin's parse transaction and db update 2023-01-13 15:36:19 -06:00
julian
e14c362574 rename var 2023-01-13 14:59:47 -06:00
julian
5e7bd0d8ae fix bitcoin transaction refresh 2023-01-13 14:50:43 -06:00
julian
5819241c15 fix tx parse address bug 2023-01-13 14:50:22 -06:00
julian
cb382e213f separate tx note from transaction object to ensure total separation of blockchain data from other user to ease rescanning the blockchain 2023-01-13 13:33:46 -06:00
julian
94e6ebf53b insert inputs/outputs after finishing tx parse 2023-01-13 13:25:09 -06:00
julian
6310f0b1c7 only update missing or unconfirmed transactions 2023-01-13 12:00:25 -06:00
julian
0543c4b044 filter by address fixes 2023-01-13 12:00:02 -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
likho
5a1569b3fa Clean up and fixes 2023-01-13 16:36:50 +02:00
likho
78a64690ed Fix sendall 2023-01-13 11:21:10 +02:00
julian
7e6daad779 some small bug fixes 2023-01-12 16:07:15 -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
5c70cf7967 add mixins to firo_wallet.dart and remove directly interacting with hive therein 2023-01-12 15:20:57 -06:00
julian
85be646049 add mixins to epiccash_wallet.dart and remove directly interacting with hive therein 2023-01-12 14:58:58 -06:00
julian
1170f742e9 use balance caching in all wallets 2023-01-12 13:21:03 -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
likho
27322061f6 Implement gas price oracle, Update all fees to use new gas estimate 2023-01-12 19:24:26 +02: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
likho
ab4392b0bd WIP: Add transaction fees 2023-01-12 16:14:49 +02:00
likho
734a51f5dd WIP: Get gas estimator 2023-01-12 10:09:11 +02:00
julian
12a5eff178 missing value init 2023-01-11 22:45:59 -06:00
julian
a73e18df75 expose wallet isar instance to Manager 2023-01-11 21:23:21 -06:00
julian
3a185ead9a WIP paynym model parsing updates 2023-01-11 21:14:04 -06:00
julian
a989a26f62 migrate wownero_wallet.dart to isar transactions, addresses, and utxos, as well as the cleaner balance model 2023-01-11 21:09:18 -06:00
julian
c83ec074de migrate monero_wallet.dart to isar transactions, addresses, and utxos, as well as the cleaner balance model 2023-01-11 21:09:08 -06:00
julian
275e3ab4cb WIP migrate particl_wallet.dart to isar transactions, addresses, and utxos, as well as the cleaner balance model 2023-01-11 20:09:08 -06:00
julian
21f3d80d3a migrate namecoin_wallet.dart to isar transactions, addresses, and utxos, as well as the cleaner balance model 2023-01-11 19:22:44 -06:00
julian
c36d73f255 migrate litecoin_wallet.dart to isar transactions, addresses, and utxos, as well as the cleaner balance model 2023-01-11 18:59:01 -06:00
julian
90bf6a2bb2 migrate firo_wallet.dart to isar transactions, addresses, and utxos, as well as the cleaner balance model 2023-01-11 18:16:17 -06:00
julian
f551927603 migrate epiccash_wallet.dart to isar transactions, addresses, and utxos, as well as the cleaner balance model 2023-01-11 14:52:06 -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
493bf09578 migrate bitcoin_wallet.dart to isar transactions, addresses, and utxos, as well as the cleaner balance model 2023-01-11 12:24:16 -06:00
julian
90964b83c6 migrate dogecoin_wallet.dart to isar transactions, addresses, and utxos, as well as the cleaner balance model 2023-01-11 12:23:49 -06:00
julian
78db152ff4 clean up coinservice and manager classes to handle new isar models and balance model 2023-01-11 12:21:11 -06:00
likho
8b87c7367a Error fixes 2023-01-11 15:35:51 +02:00