Commit Graph

1265 Commits

Author SHA1 Message Date
Honza Rychnovský 2ee4140080
[#1307] Gradle 8.5
* [#1307] Gradle 8.5

Closes #1307

* Changelog update

* Flank 23.10.1
2024-01-04 10:47:46 +01:00
dependabot[bot] 3f85f854c6
Bump actions/download-artifact from 4.0.0 to 4.1.0 (#1314)
Bumps [actions/download-artifact](https://github.com/actions/download-artifact) from 4.0.0 to 4.1.0.
- [Release notes](https://github.com/actions/download-artifact/releases)
- [Commits](7a1cd3216c...f44cd7b40b)

---
updated-dependencies:
- dependency-name: actions/download-artifact
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-01-02 15:08:31 +01:00
dependabot[bot] 7d264e74ec
Bump actions/upload-artifact from 3.1.3 to 4.0.0 (#1311)
Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact) from 3.1.3 to 4.0.0.
- [Release notes](https://github.com/actions/upload-artifact/releases)
- [Commits](a8a3f3ad30...c7d193f32e)

---
updated-dependencies:
- dependency-name: actions/upload-artifact
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-12-16 16:09:58 +01:00
dependabot[bot] 2cc26a19f7
Bump actions/download-artifact from 3.0.2 to 4.0.0 (#1312)
Bumps [actions/download-artifact](https://github.com/actions/download-artifact) from 3.0.2 to 4.0.0.
- [Release notes](https://github.com/actions/download-artifact/releases)
- [Commits](9bc31d5ccc...7a1cd3216c)

---
updated-dependencies:
- dependency-name: actions/download-artifact
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-12-16 16:09:23 +01:00
dependabot[bot] 592a444e79
Bump actions/setup-java from 3.13.0 to 4.0.0 in /.github/actions/setup (#1299)
Bumps [actions/setup-java](https://github.com/actions/setup-java) from 3.13.0 to 4.0.0.
- [Release notes](https://github.com/actions/setup-java/releases)
- [Commits](0ab4596768...387ac29b30)

---
updated-dependencies:
- dependency-name: actions/setup-java
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-11-30 09:08:23 +01:00
dependabot[bot] dd2fbc281b
Bump google-github-actions/auth from 1.2.0 to 2.0.0 (#1300)
Bumps [google-github-actions/auth](https://github.com/google-github-actions/auth) from 1.2.0 to 2.0.0.
- [Release notes](https://github.com/google-github-actions/auth/releases)
- [Changelog](https://github.com/google-github-actions/auth/blob/main/CHANGELOG.md)
- [Commits](f105ef0cdb...67e9c72af6)

---
updated-dependencies:
- dependency-name: google-github-actions/auth
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-11-30 09:07:43 +01:00
dependabot[bot] bc333714de
Bump google-github-actions/auth from 1.1.1 to 1.2.0 (#1298)
Bumps [google-github-actions/auth](https://github.com/google-github-actions/auth) from 1.1.1 to 1.2.0.
- [Release notes](https://github.com/google-github-actions/auth/releases)
- [Changelog](https://github.com/google-github-actions/auth/blob/main/CHANGELOG.md)
- [Commits](35b0e87d16...f105ef0cdb)

---
updated-dependencies:
- dependency-name: google-github-actions/auth
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-11-21 09:17:51 +01:00
Honza Rychnovský 40ba042ff0
[#1295] SDK release v2.0.3 2023-11-08 15:22:45 +01:00
Honza Rychnovský 0cdba6a69c
[#1294] Checkpoints update
Closes #1294
2023-11-08 15:22:07 +01:00
Honza Rychnovský 7d7cf4f84f
[#1292] Expose Data database file path
- Implemented as part of synchronizer API
- Closes #1292
- Documentation updated
2023-11-08 12:27:14 +01:00
str4d ae2d7152aa
Replace Sapling balance and scan progress FFIs with wallet summary FFI
* Replace Sapling balance and scan progress FFIs with wallet summary FFI

Closes zcash/zcash-android-wallet-sdk#1282.

* Using test fixture for JniAccountBalance

* Minor documentation changes

* Fix typo

---------

Co-authored-by: Honza <rychnovsky.honza@gmail.com>
2023-11-08 10:57:23 +01:00
Honza Rychnovský b82278e747
[#1289] SDK Release 2.0.2
Closes #1289
2023-10-20 14:48:09 +02:00
Honza Rychnovský 6ae8259466
[#1288] Checkpoints update 2023-10-20 14:46:47 +02: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
dependabot[bot] 1b0f6db8d4
Bump actions/checkout from 4.1.0 to 4.1.1 (#1285)
Bumps [actions/checkout](https://github.com/actions/checkout) from 4.1.0 to 4.1.1.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](8ade135a41...b4ffde65f4)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-10-19 11:04:07 +02:00
Honza Rychnovský 3d6e3161d5
[#1274] SDK release v2.0.1 2023-10-02 21:35:04 +02:00
Honza Rychnovský 5db44555ec
[#1278] Adopt BIP-39 library v1.0.6
* [#1278] Adopt BIP-39 library v1.0.6

- SNAPSHOT version adopted until the production one is available
- Added maven snapshot libraries version support. The same as in the Zashi repository
- Changelog updated
- Will close #1278

* Switch to non-snapshot version

- Tested with demo-app
2023-10-02 19:41:54 +02:00
Honza Rychnovský ddffd170d1
[#1273] 10_000-ZAT Miners fee
- Removed all uses of the incorrect 1000-ZAT fee as defined with  deprecated zip-313
- Default is now 10k zatoshi, the minimum defined by zip-317
- Changelog updated
- Closes  #1273
2023-10-02 12:49:36 +02:00
Honza Rychnovský ebde156c6c
[#1276] Checkpoints update
- Closes #1276
2023-10-02 12:48:59 +02:00
Honza Rychnovský 6bf7b12982
[#1095] PersistableWallet endpoint API
* [#1095] PersistableWallet endpoint API

* Fix Ktlint warnings

* Add PersistableWallet 1_2 migration test

* Changelog update
2023-09-28 09:54:27 +02:00
Honza Rychnovský 1032f88035
[#1271] Remove double build (test) (#1272)
* [#1271] Remove double build (test)

* Increase build action timeout

As still after the dual build is removed, the first build can take a longer time to finish.
2023-09-27 08:55:18 +02:00
Honza 69dc967ada Library version + Changelog 2023-09-25 22:11:44 +02: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
dependabot[bot] fcf9baf990
Bump actions/checkout from 4.0.0 to 4.1.0 (#1266)
Bumps [actions/checkout](https://github.com/actions/checkout) from 4.0.0 to 4.1.0.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](3df4ab11eb...8ade135a41)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-09-25 13:13:01 +02:00
Jack Grigg ee28e4cedb SDK Release v2.0.0-rc.4 2023-09-22 18:05:52 -06:00
Jack Grigg 6082838921 Add a `rust-toolchain.toml` file
This ensures that the repository is built with a compatible Rust
toolchain.
2023-09-22 18:05:52 -06:00
Jack Grigg cd6a8777e0 Migrate to latest RC of Rust crates 2023-09-22 18:05:52 -06:00
Honza bac5900f9e [#1261] SDK Release v2.0.0-rc.3
Closes #1261.
2023-09-21 08:20:56 -06:00
Honza Rychnovský c8e5a7e125
[#1249] Continuity error rewind
* [#1249] Continuity error rewind

- Fixed the Rust FFI bug that caused us to be unable to catch the Continuity error
- Improved logging
- Moved handling the Continuity error to the outer synchronization loop, which works better with synchronization mutex
- Closes #1249

* Resolve minor comments from older PR #1247
2023-09-21 16:11:02 +02:00
dependabot[bot] 48cace8f78
Bump actions/setup-java from 3.12.0 to 3.13.0 in /.github/actions/setup (#1259)
Bumps [actions/setup-java](https://github.com/actions/setup-java) from 3.12.0 to 3.13.0.
- [Release notes](https://github.com/actions/setup-java/releases)
- [Commits](cd89f46ac9...0ab4596768)

---
updated-dependencies:
- dependency-name: actions/setup-java
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-09-21 14:14:51 +02:00
Honza ea78f810dc [#1257] SDK Release v2.0.0-rc.2 2023-09-20 13:59:44 -06:00
Honza f56146fa05 [#1255] Checkpoints update 2023-09-20 12:59:42 -06:00
Kris Nuttycombe 30c84a71ea Merge branch 'rust-fix-table-views' 2023-09-20 12:05:41 -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
Honza 9045acdce9 Changelog: BlockHeight 2023-09-20 08:56:29 -06:00
Honza 38ee6a80e9 Link fetchTransaction pass txId twice TODO 2023-09-20 08:56:29 -06:00
Honza 83c69fdd9f FirstClassByteArray toString formatting 2023-09-20 15:51:37 +02:00
Honza f5c0c442c4 Changelog 2023-09-20 15:51:06 +02:00
Honza 6a7175cafb Link transaction state TODO 2023-09-20 15:17:48 +02:00
Honza 55222aad50 Poll UTXOs regularly 2023-09-20 14:10:11 +02:00
Jack Grigg 5e40ff6920 Fix bugs in `TransactionOverview.transactionState` initialization
- Off-by-one in determining whether a transaction is confirmed.
- Expiry logic was inverted for non-zero expiry heights.
  - Transactions with zero (disabled) expiry heights happened to work
    because this case is currently detected in the database logic and
    mapped to `null`, which the old code mapped to `Long.MAX_VALUE`
    which gave the correct result for the old conditional expression.
2023-09-19 23:22:47 +01:00
Jack Grigg 89eb42e473 Fix `BlockHeight` difference type
Block heights are absolute, not relative. Adding heights does not make
sense, and the difference between two heights is an integer.
2023-09-19 23:22:47 +01:00
Jack Grigg 905fb1e1a8 Improve debug printing of `FirstClassByteArray` 2023-09-19 22:59:31 +01: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
Honza Rychnovský c0c4506664
[#1241][#1243][#1222] Rewinding when ContinuityError
* [#1241] Remove rewind for every verify scan range

- The original solution comes from the pseudocode requirement: Download the blocks in `scan_range` into the block source, overwriting any existing blocks in this range.
- Removed

* [#1243] Rewind only after continuity-error

- Rewind is done only when Continuity-error appears now. In case of other sync failures, the sync loop sleeps for a short time and then retries. Internal actions like fetching subtree roots, fetching chain tip, downloading, scanning, etc., still have their internal retry mechanisms.
- For the calculation of the rewind height, we use the existing checkContinuityErrorResult method, originally used only for validation use cases but later incorrectly used for other failures too.
- Closes #1243
- Closes #1222 as it was created to determine which failure type comes and don’t rewind for all of them
- Tested manually in several scenarios, e.g. lost internet connection or app going to background

* Handle Continuity and other sync errors

- Call handleContinutyError and its rewind logic directly without checking failed attempts. This ensures that we keep trying to reorg.
- And return the correct type of error in that case.
- Add fail logic to the handling of the other types of errors.
2023-09-19 15:47:56 +02:00
Honza Rychnovský 9869fd4300
[#1239] Post-v2.0.0-rc1 cleanup
* Add JniScanProgressTest

* Remove unnecessary testnet workaround

As this was fixed with the last rust changes.

* Simplify batchCount calculating

* Fix ratio typo

* Docummentation comments changes
2023-09-18 16:51:26 +02:00
Honza Rychnovský 62fc5d7cfa
[#1242] ScanRange fails when no matching priority (#1246)
Tests added
2023-09-18 08:15:18 -06:00