Commit Graph

39 Commits

Author SHA1 Message Date
Jack Grigg 2ffd7a2ea1 `dlopen2 0.7` 2024-04-18 13:49:38 +00:00
Jack Grigg e67ff35f5e Migrate from `failure` to `anyhow` for error handling 2024-04-18 13:46:34 +00:00
Jack Grigg 7a81604493 cargo update 2024-04-18 13:40:59 +00:00
str4d 52ee2bc5bc
Feature branch for SDK 2.1.0 (#1411)
* CompactBlockProcessor: Remove `withDownload` parameter

* backend-lib: Migrate to latest in-progress revision of Rust crates

Includes changes to how accounts are stored and referenced. We now
need to remember and provide the seed fingerprint; for now, given
that we know we only create derived accounts from a single seed, we
search for an account with a matching ZIP 32 account index.

* backend-lib: Add `Backend.isSeedRelevantToWallet`

* Remove nullability of DownloadSuccess param

* Comment update

* Fix Detekt warnings

* backend-lib: Migrate to latest in-progress revision of Rust crates

Includes some renames, and a built-in seed relevancy API that we now
use.

* Separate tree state fetching

- Added continuable retry logic

* Integrate Orchard support

Closes Electric-Coin-Company/zcash-android-wallet-sdk#528.
Closes Electric-Coin-Company/zcash-android-wallet-sdk#761.

* Detekt warnings fix

* Fix unit tests

* Update `TxOutputsView` to use correct column names. (#1425)

* Return an error instead of a panic in the case of data corruption. (#1426)

This removes an `expect` call that risked crashing the app in the case of
database corruption, potentially hiding other bugs.

* Include `orchardSubtreeRootList` in final check

* Revert `orchardSubtreeRootList` check

Explanation comment added

* Changelog update

* Update to zcash_client_sqlite version 0.10.3 (#1428)

---------

Co-authored-by: Honza <rychnovsky.honza@gmail.com>
Co-authored-by: Kris Nuttycombe <kris@electriccoin.co>
2024-04-09 13:49:52 +02:00
Jack Grigg f69c415e92 cargo update 2024-03-07 20:41:58 +00:00
Jack Grigg 99e91fa8b7 Migrate to `zcash_client_sqlite 0.9.0`
The backend now supports proposals that create multiple transactions.
It still does not generate such proposals itself, and we assert this
inside the now-deprecated APIs.
2024-03-06 20:17:58 +00:00
str4d 394ddefb16
Fix Rust crash when shielding (#1379)
* Migrate to `librustzcash` tag `ecc_sdk-20240130a`

This includes the fix to the empty transaction request serialization
bug, which was preventing shielding from working.

* Release zcash-android-wallet-sdk 2.0.6

* Fix ktlint warnings

* Other CBP minor/formatting changes

---------

Co-authored-by: Honza <rychnovsky.honza@gmail.com>
2024-01-31 03:43:16 +01:00
Jack Grigg ddc4cf6f7b cargo update 2024-01-30 17:23:37 +00:00
Jack Grigg 1cdaaa974c Migrate to `ecc_sdk-20240129` tag of Zcash Rust crates 2024-01-30 17:23:37 +00:00
Jack Grigg 9eeb5ba04c backend-lib: Migrate to latest in-progress revision of Rust crates
Includes performance improvements to block scanning.
2024-01-30 17:23:37 +00:00
Jack Grigg 251392d9cf Migrate to `jni 0.21`
In addition to the necessary breaking changes, we also clean up the
style to match what is used in the `jni` crate examples.
2024-01-30 17:23:37 +00:00
Jack Grigg 85af183cee backend-lib: Migrate to latest in-progress revision of Rust crates 2024-01-30 17:23:37 +00:00
Sean Bowe f3dfed42fa cargo update 2023-10-19 16:10:30 -06:00
Sean Bowe d134a2d929 Bump zcash_client_sqlite to 0.8.1 2023-10-19 16:10:30 -06:00
Jack Grigg 20d3459e75 cargo update 2023-09-25 20:02:17 +00:00
Jack Grigg 350e9e192e Migrate to final versions of Zcash Rust crates 2023-09-25 20:01:49 +00:00
str4d 1330e9a74f
[#1268] Migrate to Rust crate revision with spent UTXOs balance fix 2023-09-25 16:54:45 +02:00
Jack Grigg cd6a8777e0 Migrate to latest RC of Rust crates 2023-09-22 18:05:52 -06:00
Kris Nuttycombe bcba2a9d51 Update to librustzcash patch with SQLite 3.19 support for Android API 27 2023-09-20 10:44:33 -06:00
Jack Grigg 233acebc2f Migrate to Rust revision with fixes to table views
With the fixes to `v_transactions` and `v_tx_outputs`, there are
several more data fields that may have no data (for rows corresponding
to purely-transparent transactions); their fields are made nullable.
2023-09-19 22:59:31 +01:00
Kris Nuttycombe 5037102faf Update to zcash_client_sqlite-0.8.0-rc.3 2023-09-12 12:38:39 -06:00
Jack Grigg d775421f5a rust: Migrate to `zcash_client_backend 0.10.0-rc.2` etc 2023-09-12 15:24:45 +00:00
Jack Grigg d162cdf35f rust: Migrate to `hdwallet 0.4` to de-duplicate dependencies 2023-09-12 15:15:58 +00:00
Jack Grigg 9284e60e2a rust: dlopen2 0.6 2023-09-08 21:49:01 +01:00
Jack Grigg ab6a831f50 Migrate to release candidates of Rust crates 2023-09-08 21:49:01 +01:00
Jack Grigg 1ef0304f92 rust: cargo update 2023-09-08 21:49:01 +01:00
Jack Grigg 9207dd0b58 Migrate to Rust version with bugfixes
This also reverts the prior change to `getBalance` / `getVerifiedBalance`
now that the fix for zcash/librustzcash#948 is present.
2023-09-08 20:22:40 +02:00
Jack Grigg 42cf9d6466 Migrate to Rust revision that exposes scanned heights 2023-09-08 20:19:51 +02:00
Jack Grigg 11d9529f2b Migrate to latest Rust revision
- Account birthdays
- Scan progress
- Bugfixes
2023-09-08 20:19:51 +02:00
Jack Grigg 32069bea0a Migrate to Rust revision with scan queue initialization 2023-09-08 20:19:51 +02:00
Jack Grigg abb98bd192 Migrate to Rust revision with scanning and spending fixes 2023-09-08 20:19:51 +02:00
Jack Grigg 54d016e401 Migrate to Rust revision with checkpoint and memo bugfixes 2023-09-08 20:18:10 +02:00
Jack Grigg 0b7c61927c Migrate to Rust revision with additional performance improvements 2023-09-08 20:18:10 +02:00
Jack Grigg 811081b289 Migrate to Rust revision with spend detection and migration perf fixes 2023-09-08 20:18:10 +02:00
Jack Grigg e43e86889c Migrate to Rust crate versions with fast spendability bugfixes 2023-09-08 20:18:10 +02:00
Jack Grigg 12c3441778 Migrate to Rust crate versions with fast spendability support 2023-09-08 20:18:10 +02:00
Carter Jernigan ac63df2759 zcash_client_sqlite 0.7.1 2023-05-22 08:00:47 -04:00
Jack Grigg dd7370cfcb rust: Name the Rayon threads 2023-05-18 10:15:34 -04:00
Carter Jernigan bc19797125
[#971] Refactor Rust FFI to separate module
---------

Co-authored-by: Honza <rychnovsky.honza@gmail.com>
2023-05-18 07:36:15 -04:00