Commit graph

285 commits

Author SHA1 Message Date
julian
31cc4beb43 test fixes 2023-03-30 11:05:43 -06:00
julian
8452758d17 added extra Amount functionality + tests 2023-03-30 10:49:07 -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
7c3b50552a tests fix 2023-03-24 16:43:47 -06:00
julian
7e6642cd84 update tests 2023-03-24 15:55:17 -06:00
julian
f44774745e WIP amount class 2023-03-24 11:08:02 -06:00
julian
44a87df41c merge clean up 2023-03-23 18:21:09 -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-CStack
9b91948b11 BCH 0-conf test update 2023-03-23 17:53:56 -06:00
julian
bb75a8c57c generated mocks update 2023-03-23 09:37:49 -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
172429f94a add address tags property and update generated 2023-03-21 10:37:01 -06:00
julian
d97c208135 update mocks 2023-03-09 13:54:44 -06:00
julian
855767ba54 update mocks and a couple tests 2023-03-08 16:17:32 -06:00
julian
9716bed96f update mocks 2023-03-08 14:28:47 -06:00
julian
be7fcbe5a0 update mocks 2023-03-08 08:57:33 -06:00
julian
3cad15652e update mocks 2023-03-06 14:40:18 -06:00
julian
16efeea1db project structure 2023-03-01 15:52:13 -06:00
julian
6b7eb8f463 fix price tests to include ethereum 2023-02-28 14:42:43 -06:00
julian
0c11e859aa changenow v2 currencies call to access tokenContract param 2023-02-28 14:27:42 -06:00
julian
fd0400e7f7 update mock calls 2023-02-23 14:08:07 -06:00
julian
706b886fd3 test fix 2023-02-21 16:40:32 -06:00
julian
76794f14b8 update bip47 lib 2023-02-15 16:16:34 -06:00
julian
a42e5278a9 update mocks 2023-02-13 13:01:06 -06:00
julian
2eb0b2e123 clean up exchange rate type enum, build runner mocks 2023-02-08 16:46:30 -06:00
julian
5bac2a79ea build runner mocks fix 2023-02-07 11:24:04 -06:00
julian
d4db845494 Merge branch 'exchange_refactor' into paynyms
# Conflicts:
#	test/pages/send_view/send_view_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/wallet_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-02-07 11:17:16 -06:00
julian
1455808d7a WIP refactor exchange to use isar as cache instead of in memory using riverpod 2023-02-05 14:32:39 -06:00
julian
d4499ac3bc firo bug fix and test update 2023-02-03 19:04:43 -06:00
julian
9b4dee76a5 add derivationPath to Address constructor as required 2023-02-03 17:30:32 -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
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
1f7bd41d8e update tests mock calls 2023-01-30 14:15:44 -06:00
julian
5de22ca858 Merge branch 'simplex' into paynyms 2023-01-26 10:16:01 -06:00
julian
8cd34fc228 build runner update mocks 2023-01-25 16:16:20 -06:00
julian
700084f708 remove wallet specific derivePathType tests as it was removed from the wallet files 2023-01-25 16:11:06 -06:00
julian
6314570f8f disable hashcode tests that appear to give different results in different environments 2023-01-24 16:30:39 -06:00
julian
83c0beb2ee disable libmonero tests in sw 2023-01-24 16:06:18 -06:00
julian
f386a8803c disable libmonero tests in sw 2023-01-24 15:29:45 -06:00
julian
017719971b isar init fix and renaming of init functions 2023-01-20 15:57:54 -06:00
julian
0c1db6f249 clean up tests for now 2023-01-20 10:22:18 -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
daa2648763 builder runner update mocks 2023-01-19 13:54:31 -06:00
julian
ea68e811ec remove unneeded PriceAPI mock generation for coin tests 2023-01-19 13:52:50 -06:00
julian
722a884553 coin tests code error cleanup 2023-01-19 13:47:51 -06:00
julian
35f6ffd4fc coin tests linter warnings and clean up 2023-01-19 13:24:16 -06:00
julian
aafca9289d WIP test fixing 2023-01-19 13:07:20 -06:00
julian
e2b7c07b78 update transaction card test 2023-01-19 12:20:27 -06:00
julian
e248a6fd77 fix manager tests and update fakecoinservice 2023-01-19 11:55:40 -06:00
julian
42e53c31a6 build runner 2023-01-18 17:48:44 -06:00
julian
6ac6dc2724 build runner mocks 2023-01-16 16:37:12 -06:00
julian
5562c14527 WIP refactor to single main isar db 2023-01-16 15:04:03 -06:00
julian
40af5e5206 build runner 2023-01-13 15:58:05 -06:00
julian
d119296492 build runner 2023-01-13 11:13:52 -06:00
julian
6adf1d3148 generated test mocks updates 2023-01-11 21:17:12 -06:00
julian
15258314cd update test mocks 2023-01-10 17:48:55 -06:00
julian
86956b3fad update dogecoin test 2023-01-10 10:05:22 -06:00
julian
a0df73551e update generated files 2023-01-10 10:02:54 -06:00
julian
682c55e493 mobile xmr/wow loading test fix 2023-01-02 12:43:26 -06:00
Diego Salazar
2a38d5691e
Merge pull request #260 from cypherstack/add-particl
Add Particl
2022-12-12 16:13:43 -07:00
julian
ea1c7fd204 fix price test 2022-12-12 15:00:39 -06:00
sneurlax
e1fc746c5d Merge remote-tracking branch 'cypherstack/try-removing-bip84-default' into add-particl 2022-12-12 09:59:34 -06:00
sneurlax
86704b37de Merge remote-tracking branch 'cypherstack/add-particl' into add-particl 2022-12-12 09:58:31 -06:00
likho
a0e38aab31 Fix and test the rest of the tests 2022-12-12 10:19:36 +02:00
likho
be64df3315 WIP: Update tests for Particl 2022-12-11 13:48:24 +02:00
julian
22c1687fe6 fix price test 2022-12-10 10:51:16 -06:00
sneurlax
419e5a3372 expect different output in getPricesAnd24hChange 2022-12-09 17:07:44 -06:00
sneurlax
df9e020235 fix values getPricesAnd24hChange fetch 2022-12-09 15:22:22 -06:00
sneurlax
92602276db fix more price tests
fix more price tests


fix price tests
2022-12-09 14:24:01 -06:00
sneurlax
be5cfdc099 fix "no internet available" price test 2022-12-09 13:10:11 -06:00
sneurlax
8a5dd7ccc2 refresh wallet normally 2022-12-09 10:58:25 -06:00
sneurlax
363e0da8ff refresh wallet mutex locked 2022-12-09 10:56:18 -06:00
sneurlax
8640353be8 fullRescan fails 2022-12-09 10:53:35 -06:00
sneurlax
74a25d5001 recoverFromMnemonic using non empty seed on mainnet succeeds 2022-12-09 10:41:54 -06:00
sneurlax
e3111cf9d2 fullRescan succeeds
by removing P2SH and P2WKPH derivation paths which we could re-enable when we need completeness
2022-12-09 10:22:13 -06:00
sneurlax
ac28432009 disable recoverFromMnemonic test 2022-12-09 09:44:11 -06:00
sneurlax
b2b4fb970f recoverFromMnemonic using non empty seed on mainnet succeeds 2022-12-09 09:36:32 -06:00
sneurlax
81935aa00c comment cleaning 2022-12-09 09:30:41 -06:00
sneurlax
a15c975553 fix bip49 derivation path test 2022-12-09 09:24:39 -06:00
julian
fee175531d fixed tablerow test and commented out pointless tests 2022-12-05 17:21:20 -06:00
julian
3ff0e9dd81 desktop code file structure refactor 2022-12-01 08:48:23 -06:00
likho
4dec3fbf48 Update tests that use batchHistory 2022-11-30 16:05:56 +02:00
likho
f984a6a208 Add test history data and WIP change tests to particl 2022-11-30 15:06:31 +02:00
sneurlax
861d362966 linting and TODO
AS linted and removed unused imports
2022-11-29 15:27:32 -06:00
sneurlax
2df3b0f3ed update particl tests to the point of testing address validity 2022-11-29 14:27:15 -06:00
sneurlax
6c9690dcf5 Namecoin->Particl 2022-11-29 13:41:11 -06:00
sneurlax
fa03c5de74 disable all but 2-3 particl tests
TODO re-enable as we implement up to these
2022-11-29 13:15:25 -06:00
sneurlax
e82a4d95fa update bip32 root test
TODO update ROOT_WIF ... is that in the .gitignored wallet test parameters?
2022-11-29 13:15:05 -06:00
sneurlax
7a0cb3669a update genesis hash test vector 2022-11-29 13:14:56 -06:00
sneurlax
6776477897 WIP particl tests
see out of band particl_wallet_test_parameters.dart
2022-11-29 13:14:33 -06:00
julian
56f54ac487 clean up and test fixes 2022-11-25 17:49:47 -06:00
julian
ffe9a83abf Format tests updated 2022-11-23 12:42:23 -06:00
julian
157829a933 fixed failing test 2022-11-22 15:53:16 -06:00
julian
b64246228c update addressbookcard test 2022-11-15 19:58:32 -06:00
julian
5d8a1b0304 trim unused import 2022-11-12 09:17:16 -06:00
julian
f08a52cd07 remove direct dependency of unused SharedPreferences 2022-11-12 09:16:07 -06:00