Commit Graph

632 Commits

Author SHA1 Message Date
Carter Jernigan 5b294b9a36 Update Gradle
The SDK was using Gradle 6.8 and has been updated to Gradle 6.9.  Gradle 7.0 appears to be incompatible with the Rust plugin is being used.  Although the application was using Gradle 6.8 previously, the wrapper files hadn't been updated since Gradle 4.6. This commit also corrects that issue.

The sample application is upgraded to Gradle 7.2.
2021-08-25 09:36:25 -04:00
Carter Jernigan a187c6dbea Correct LICENSE file
There was an inconsisteny between the license in CONTRIBUTING and the LICENSE file.  The correct license should be MIT.
2021-08-25 06:48:13 -04:00
Kevin Gorham 296782286b
Merge pull request #236 from zcash/task/add-publishing-info
Add info about publishing.
2021-08-20 00:47:24 -04:00
Kevin Gorham d7de409726
Add info about publishing. 2021-08-20 00:44:57 -04:00
Kevin Gorham 6d5cf6eefb
Merge pull request #234 from zcash/fix/birthday-calc
Fix: Corrected logic when calculating birthdates
2021-08-10 01:40:13 -04:00
Kevin Gorham e145f4ee01
Fix: Corrected logic when calculating birthdates for wallets with zero received notes. 2021-08-10 01:36:25 -04:00
Kevin Gorham 1d12fce4cf
Updated changelog. 2021-07-29 20:50:59 -04:00
Kevin Gorham fdd07242f3
Merge pull request #233 from zcash/release/1.3.0-beta17
Release/1.3.0 beta17
2021-07-29 19:49:26 -04:00
Kevin Gorham 32f351901a
Update build number. 2021-07-29 19:48:31 -04:00
Kevin Gorham 833c11b0c1
New: Updated checkpoints. 2021-07-29 13:33:21 -04:00
Kevin Gorham 25982da91d
New: Improve comments. 2021-07-29 13:24:13 -04:00
Kevin Gorham 405a047717
New: Allow developers to enable Rust logs.
Rather than constantly uncommenting this line locally and rebuilding the SDK, allow a wallet to just turn logging on since it still takes a lot of hoops to even get a log to show up (a dev must add the log dependency to librustzcash, clone all the repos and add logs).
2021-07-29 13:23:45 -04:00
Kevin Gorham 92c951769d
New: Advertise that we will accept GZIP.
Then later work with lightwalletd to see if we can enable it.
2021-07-29 13:21:35 -04:00
Kevin Gorham 8749746b63
New: Shorten the UTXO retry time.
This is temporary PoC logic to not constantly look for UTXOs on a lightwalletd instance that does not seem to support t-addresses. There are better ways to handle this but for now we just want to see if the wallet will be a good citizen to servers without UTXO support.
2021-07-29 13:20:55 -04:00
Kevin Gorham 96da0a9bea
New: Squelch a few noisy logs. 2021-07-29 13:18:55 -04:00
Kevin Gorham ed501304a3
Fix: Autoshielding OBO error.
The ANCHOR_OFFSET is already accounted for in the underlying rust code so this simple change prevents adding additional confirmation blocks. In the next iteration we may want to adjust the logic in librustzcash to not accept a confirmation parameter for the shielding function or at least improve the way it works:
https://github.com/nuttycom/librustzcash/blob/autoshield-poc-daa/zcash_client_backend/src/data_api/wallet.rs#L353
2021-07-29 13:16:57 -04:00
Kevin Gorham 273f391c5f
Update CHANGELOG. 2021-06-30 02:39:46 -04:00
Kevin Gorham 4586e07cac
Merge pull request #232 from zcash/release/1.3.0-beta16
Release/1.3.0 beta16
2021-06-30 02:35:33 -04:00
Kevin Gorham 69ad69931a
Update the version to 1.3.0-beta16. 2021-06-30 02:33:06 -04:00
Kevin Gorham c913b4385f
New: Return an empty list when wallets try to subscribe to transactions.
This allows a wallet to subscribe to transactions right away and then eventually get notified when new transactions are found. Although that is not the preferred way to use the synchronizer, we can support it without a lot of effort or compromise.
2021-06-30 02:32:20 -04:00
Kevin Gorham d4f0b0474c
New: Expose the stateflows for balances.
This conveniently makes the 'value' property accessible without a cast.
2021-06-30 02:30:24 -04:00
Kevin Gorham e7ec713d5f
New: Improve the "unprepared" error message.
Previously, it made it seem like the developer needed to call "prepare." And that was the case but now it's more common to trigger this error by accessing transactions before the synchronizer has been started.
2021-06-30 02:29:32 -04:00
Kevin Gorham 1ac14c07c5
New: Convenience functions for WalletBalances.
Make it possible to add balances and get the pending balance, which are both common use cases.
2021-06-30 02:28:00 -04:00
Kevin Gorham ac03fd2358
Fix: Rely on List instead of PagedList for paged repository results. 2021-06-30 02:27:16 -04:00
Kevin Gorham 136b4b1bc2
Fix: Gracefully handle failures while fetching UTXOs
Also added temporary code to prevent a wallet from constantly checking for UTXOs on a server that simply does not have that feature enabled.
2021-06-30 02:25:40 -04:00
Kevin Gorham 6e3aacb08c
New: Clean up logs.
Added a priority to the twig module so that it is easy to exclude chatty logs, which is helpful for third party builds. The default logs are now a lot cleaner and more concise.
2021-06-30 02:24:24 -04:00
Kevin Gorham 3785e4dfd9
Summarize breaking changes in 1.3 2021-06-29 20:41:08 -04:00
Kevin Gorham 12ce30e305
Cleanup migration guide. 2021-06-29 01:53:37 -04:00
Kevin Gorham cbbad21f7b
Added a migration guide for troubleshooting v1.2.* issues. 2021-06-29 01:50:46 -04:00
Kevin Gorham 2c56d84efb
Updated version and changelog. 2021-06-20 20:51:49 -04:00
Kevin Gorham 2356fb0baf
New: Checkpoints for mainnet and testnet. 2021-06-20 20:49:23 -04:00
Kevin Gorham d5456f078d
Fix: Increase reconnection attempts when waking the app.
Based on recent logs, reconnecting seems to be the right thing to do so try it for longer and see if that helps.
2021-06-20 20:48:58 -04:00
Kevin Gorham 81266f01e5
Merge pull request #231 from zcash/release/1.3.0-beta14
Release/1.3.0 beta14
2021-06-19 00:30:50 -04:00
Kevin Gorham 5f3f74e5f6
Updated changelog. 2021-06-19 00:30:08 -04:00
Kevin Gorham 7faf525292
Update version and dependencies. 2021-06-19 00:27:05 -04:00
Kevin Gorham d8fec13896
Begin troubleshooting server disconnect errors. 2021-06-19 00:25:05 -04:00
Kevin Gorham 98204eda73
Fix broken tests. 2021-06-19 00:24:21 -04:00
Kevin Gorham d095e9359a
New: Add separate balances for sapling, transparent and orchard pools.
Note that the orchard one is just a placeholder for now.
2021-06-15 00:09:24 -04:00
Kevin Gorham d2e23a6612
Updated Changelog. 2021-06-07 00:58:41 -04:00
Kevin Gorham e57f555db4
Merge pull request #230 from zcash/release/1.3.0-beta12
Release/1.3.0 beta12
2021-06-07 00:27:32 -04:00
Kevin Gorham a1a28cac82
Add documentation to recent code changes. 2021-06-07 00:18:25 -04:00
Kevin Gorham c95b8307c4
Bump version. 2021-05-27 07:39:27 -04:00
Kevin Gorham 467282d385
Clean up error logging. 2021-05-25 16:02:27 -04:00
Kevin Gorham 84ca57f432
Fix: Reconnect to lightwalletd when a service exception occurs.
This is a fairly frequent crash that occurs when devices return from the background and attempt to reuse a stale channel. In that situation, shutdown the stale channel and rebuild a new one.
2021-05-25 12:43:42 -04:00
Kevin Gorham 0c73f2b585
New: Expose network height as a StateFlow.
We already had latest height but that would require polling. Having a state flow makes it easier for views to be pushed the latest height.
2021-05-25 11:15:09 -04:00
Kevin Gorham 095f118fac
Bump version to beta11. 2021-05-12 21:34:52 -04:00
Kevin Gorham a2fb6c6bdd
Merge pull request #228 from zcash/hotfix/new-accounts
Hotfix/new accounts
2021-05-12 21:29:49 -04:00
Kevin Gorham 3246a3989d
Update changelog. 2021-05-12 21:28:57 -04:00
Kevin Gorham e883a40a79
Refresh and update versions. 2021-05-12 20:57:33 -04:00
Kevin Gorham 3fb12fc652
Fix: Removed variable that is no longer used.
Relying on this flag to change was causing new wallets to appear to fail. Although they work on the next launch, it is confusing for users and requires immediate attention.
2021-05-12 20:57:09 -04:00