Commit Graph

523 Commits

Author SHA1 Message Date
Kevin Gorham 8fb56ff80c
Improvement: Simplify Initializer to get rid of unnecessary inheritance. 2021-05-07 03:54:18 -04:00
Kevin Gorham 670ec68cd5
New: Improve behavior and messaging when an account is missing.
Scanning without an account setup is a programming error and prior to this change it wasted a lot of resources and would always crash eventually. Now, this error is caught sooner and surfaced with a clear message.
2021-05-05 14:26:13 -04:00
Kevin Gorham b82a296278
Remove Bintray badge from README, add Maven Central. 2021-05-04 17:03:53 -04:00
Kevin Gorham 0cae3fea2b
Update changelog and bump version. 2021-05-03 22:55:17 -04:00
Kevin Gorham 0acb439793
New: Add quickRewind feature to make it easy to rescan 2wks of blocks.
This helps address https://github.com/nighthawk-apps/nighthawk-wallet-android/issues/38
2021-05-03 22:53:23 -04:00
Kevin Gorham ddf785e7d8
Fix: Disable logs by default. Also update verion and changelog. 2021-05-01 23:05:14 -04:00
Kevin Gorham b1bb4173e6
Update changelog. 2021-05-01 00:05:37 -04:00
Kevin Gorham c8180028af
Fix: Allow for key migration by resetting the accounts table.
Closes https://github.com/zcash/zcash-android-wallet/issues/258
2021-05-01 00:02:32 -04:00
Kevin Gorham fb2e9cff51
Merge pull request #225 from zcash/hotfix/1.3.0-beta06
Hotfix/1.3.0 beta06
2021-04-29 15:59:26 -04:00
Kevin Gorham d5420f0bdb
Updated changelog. 2021-04-29 15:57:33 -04:00
Kevin Gorham 91a64561b7
New: Added test suite support
This required an update in mockito which was indirectly impacted by not having mavenCentral() as a repository as mentioned here https://github.com/mockito/mockito/issues/2007#issuecomment-829388655
2021-04-29 15:57:13 -04:00
Kevin Gorham 009d69f8f5
New: Update checkpoints. 2021-04-29 03:36:41 -04:00
Kevin Gorham 749a6ab937
Explain publishing fix. 2021-04-29 03:35:55 -04:00
Kevin Gorham ad0d017db0
Drop the jetifier since it's probably not needed any longer. 2021-04-29 03:35:03 -04:00
Kevin Gorham 418106538e
Fix: Full rescan should not go beyond the checkpoint.
Otherwise, it gets interpreted as a reorg and can throw the wallet into an infinite rewind loop.
2021-04-29 03:34:35 -04:00
Kevin Gorham 303e1da180
Minor improvement on error messaging.
When the branches don't match, it's nice to know what network is being used.
2021-04-29 03:33:33 -04:00
Kevin Gorham 028bb95d5d
Fix: Return proper numeric type for consensus branch Id.
Closes https://github.com/zcash/zcash-android-wallet-sdk/issues/224
Related to https://github.com/nighthawk-apps/nighthawk-wallet-android/pull/35
2021-04-28 10:12:41 -04:00
Kevin Gorham c6d69b8266
New: Unit test to verify the logic for getting the client's consensus branch id. 2021-04-28 09:45:42 -04:00
Kevin Gorham 7c3b9db7a3
Update version. 2021-04-26 17:38:23 -04:00
Kevin Gorham 87afd7e55b
Fix: Better error message when address is not found. 2021-04-26 17:37:58 -04:00
Kevin Gorham fe0b249bcb
Minor test cleanup. 2021-04-26 17:37:30 -04:00
Kevin Gorham 26a84efdd6
Fix: explicitly set kotlin module name.
Closes https://github.com/zcash/zcash-android-wallet-sdk/issues/222
2021-04-26 17:36:15 -04:00
Kevin Gorham 49acf6476a
Update checkpoints. 2021-04-23 18:50:54 -04:00
Kevin Gorham 697721023c
Fix: Versioning error around annotations.
The project was including a bad version of NotNull and this resulted in errors that were very hard to troubleshoot because the failure happened during annotation processing so Dagger could not even generate the code that the rest of the app relied upon. It was a mess. Fixed by removing the useless NotNulls and being a little more conservative on dependencies.
2021-04-23 16:17:32 -04:00
Kevin Gorham fb1b618c5f
Update version and changelog. 2021-04-23 15:01:02 -04:00
Kevin Gorham bfde1b3c4c
Fix: Make versioning consistent, particularly for the Kotlin compiler. 2021-04-23 15:00:45 -04:00
Kevin Gorham 5c57b0808f
Merge pull request #218 from zcash/feature/autoshielding-poc
Feature/autoshielding poc
2021-04-22 19:06:02 -04:00
Kevin Gorham 8885a3e306
Update Cargo and SDK version 2021-04-22 18:56:52 -04:00
Kevin Gorham 30f7bf0b82
New: Begin working on test harness.
For now, just pushing all uncommitted changes to tests. Next sprint we will begin focusing on generating a useful test harness.
2021-04-22 18:54:19 -04:00
Kevin Gorham 05b8d0ddc4
New: migrate to 'refreshVersions' for dependency management.
Squash
2021-04-22 18:54:19 -04:00
Kevin Gorham c60119cd5a
Fix: Off-by-one error during rewind. 2021-04-22 18:47:58 -04:00
Kevin Gorham 5dd0df7619
Fix: change rewind behavior to correct for witnesses
Addresses SDK side of https://github.com/zcash/librustzcash/issues/373
2021-04-14 18:44:17 -04:00
Kevin Gorham e07317c7d5
Latest lib.rs 2021-04-14 15:00:45 -04:00
Kevin Gorham 22425d756e
Update project dependencies. 2021-04-09 22:30:24 -04:00
Kevin Gorham 160a95738f
New: Enable publishing single artifact to Maven Central. 2021-04-09 22:30:24 -04:00
Kevin Gorham 5133306c08
New: Add support for rewinding and wiping data.
A simple rewind feature in a wallet can recover from a wide variety of issues.
2021-04-09 22:30:24 -04:00
Kevin Gorham 1eb1a6aa8e
Fix: Improve error handling and surface critical Initialization errors. 2021-04-09 22:30:24 -04:00
Kevin Gorham dffb6f257f
Add new tests and cleanup old ones.
squash test cleanup


squash tests
2021-04-09 22:30:24 -04:00
Kevin Gorham 4a90e6bf24
New: Derive sapling activation height from network.
This type of change will allow dynamically switching networks within the app or unit tests, later.

fixup network change
2021-04-09 21:46:20 -04:00
Kevin Gorham af190e786b
New: Explicitly declare network when needed.
It is important to be very explicit about the network and not make any assumptions for ease of use because that resulted in numerous bugs while transitioning away from the old two library setup.

squash explicit network
2021-04-09 21:46:20 -04:00
Kevin Gorham 9dd9eef9ee
New: Consolidate product flavors.
Begin preparing for one build of the SDK, now that it is possible in librustzcash thanks to the data access api changes.
2021-04-09 19:58:29 -04:00
Kevin Gorham 6124407295
Update dependencies. 2021-04-09 19:50:59 -04:00
Kevin Gorham 278adfe0b9
New: Add getAccount. 2021-04-05 18:39:26 -04:00
Kevin Gorham 39972d8e43
New: Functionality to refresh UTXOs and updated taddr support. 2021-04-05 18:37:13 -04:00
Kevin Gorham 591df083b5
Update to the latest Rust code. 2021-04-01 17:51:47 -04:00
Kevin Gorham 553d28da7e
New: Add database migration to support autoshielding. 2021-04-01 02:26:38 -04:00
Kevin Gorham 04293f4f75
New: Add UnifiedViewingKey concept.
A unified viewing keys serves as a grouping of keys that are all related to the same account but do not have spend authority. This is most important when initializing the database for scanning.
2021-04-01 02:23:41 -04:00
Kevin Gorham ac9f803d5b
Refactor: Added type package.
In anticipation of UnifiedViewingKeys and, later, URI support as well as NU5 support for Unified Addresses.
2021-04-01 02:14:57 -04:00
Kevin Gorham 77b2ac5bae
New: Add logic for deleting UTXOs above a given height. 2021-03-31 09:36:46 -04:00
Kevin Gorham cde327a0f8
New: Expose transaction count. 2021-03-31 09:27:57 -04:00