Commit Graph

145 Commits

Author SHA1 Message Date
Honza Rychnovský 6a96fa3d78
[#1438] Dependency update
* [#1438] Gradle 8.7

* AndroidX + Kotlin 1.9.23

* AGP 8.3.0

* Detekt 1.23.6 + Detekt Compose 0.3.15

* Dokka 1.9.20

* FooJay 0.8.0

* Ktlint 1.2.1

* Bip-39 1.0.8

* Remove coroutines-okhttp dependency

* Google Material 1.11.0

* gRPC Java 1.63.0

Removed `enableFullStreamDecompression()` as it had no effect as described in https://github.com/grpc/grpc-java/releases/tag/v1.61.0

* Gson 2.10.1

* Jacoco 0.8.12

* JUnit 5.10.2

* Kotlinx Coroutines 1.8.0

* Kotlin Immutable Collections 0.3.7

* Mockito 5.11.0

Removed unnecessary Mockito Kotlin dependency

* Protoc 4.26.1

* Changelog update

* Bump lib version

To produce a new snapshot version
2024-04-15 17:43:19 +02:00
Honza Rychnovský 4472790c8a
[#1431] Release 2.1.0
- Closes #1431
2024-04-09 14:29:05 +02: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
Honza Rychnovský 1294b1ca48
[#1423] Checkpoints update
Closes #1423
2024-03-25 18:03:30 +01:00
Jack Grigg ad75ed65e5 Correctly throw `InitializeException.SeedRequired`
Closes Electric-Coin-Company/zcash-android-wallet-sdk#782.
2024-03-19 04:35:31 +00:00
Honza Rychnovský fe6b11c4ec
[#1413] Update ZecSend with Proposal
* [#1413] Update ZecSend with Proposal

- Closes #1413
- Changelog update
2024-03-14 14:40:40 +01:00
Honza Rychnovský 078e76a941
[#776] Enable ZIP 317 fees support
* [#776] Enable ZIP 317 fees support

* Deprecate ZcashSdk.MINERS_FEE

* Replace MINERS_FEE with Proposal API in Demo app

* Changelog update

* Bump SDK to 2.0.8 to produce snapshot version
2024-03-13 10:03:53 +01:00
Jack Grigg 34bb6557bf SDK v2.0.7 2024-03-08 20:13:54 +00:00
Jack Grigg d2fa400531 Deprecate `Synchronizer.sendToAddress` and `Synchronizer.shieldFunds` 2024-03-06 16:40:21 +01:00
Jack Grigg a27fbda8c0 Expose APIs for working with transaction proposals
Closes Electric-Coin-Company/zcash-android-wallet-sdk#1359.
2024-03-06 16:40:21 +01:00
Jack Grigg 04f1f47957 Fix bug where mempool submission errors were being ignored 2024-03-06 16:40:21 +01:00
Honza Rychnovský 381bd42b89
[#1393] Support server switching
- This ensures that the SDK supports apps switching between different lightwalletd servers
- Synchronizer.validateServerEndpoint API added
- Demo app updated to leverage this new feature
- Changelog update
- Closes #1393
2024-03-02 18:55:22 +01:00
Honza Rychnovský f5ab7d9d19
[#1400] Update public Memo class API
- Closes #1400
- Adds a few more minor changes
- Changelog update
2024-02-26 15:59:05 +01:00
Honza Rychnovský 19cca515fb
[#1385] Adopt `AccountBalance` fields in Kotlin layer
* [#1385] Adopt `AccountBalance` fields in Kotlin layer

- Adds the Kotlin side changes for #1380
- Changed WalletBalance to contain these three fields: available, changePending, and valuePending, instead of total and available, and change the transparent flow to StateFlow<Zatoshi>, as we don't distinguish there.
- Related connected APIs changed
- Closes #1385

* Add WalletBalanceFixture

Placed in the public directory to be visible for clients as well

* Changelog update

* Remove `getVerifiedTransparentBalance ` API entirely

Co-authored-by: str4d <jack@electriccoin.co>
2024-02-07 17:33:47 +01: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
Honza a79e204bd9 [#1323] Release zcash-android-wallet-sdk 2.0.5 2024-01-30 19:43:42 +00:00
Jack Grigg 76b3d7bc5f Changelog updates for 2.0.5 2024-01-30 17:23:37 +00:00
Honza Rychnovský 02fdb9631e
[#1348] Regenerate fixture wallet addresses
Closes #1348
2024-01-15 17:29:54 +01:00
Honza Rychnovský dd46baa5c1
[#1322] Release zcash-android-wallet-sdk 2.0.4
Closes #1322
2024-01-08 17:51:40 +01:00
Honza Rychnovský 685ae666f4
[#1315] Provide Locale to MonetarySeparators API
Closes #1315
2024-01-08 17:22:27 +01:00
Honza Rychnovský 68cfd21fe7
[#1287] Remove LightWalletEndpointExt public API
- Closes #1287
- This refactored out all the occurrences of LightWalletEndpointExt and its functions and variables from the SDK’s public API. It preserves it in tests, demo app, and in the PersistableWallet for backward compatibility, although it’s not available from outside of the SDK.
- Changelog updated
2024-01-08 14:45:47 +01:00
Honza Rychnovský d8902d11df
[#1248] Clean up unused exceptions
* [#1248] Clean up unused exceptions

Closes #1248

* Changelog update

* Suppress detekt warning

Creating these private functions is required by the compiler
2024-01-07 10:29:33 +01:00
Honza Rychnovský 1dd369167a
[#1316] Readable TxId on TransactionOverview
Closes #1316
2024-01-05 09:56:23 +01:00
Honza Rychnovský e8add0880d
[#1318] Kotlin 1.9.21
* [#1307] Kotlin 1.9.21

* Compose 1.5.7

* Gralde versions plugin 0.50.0

* Changelog update
2024-01-04 14:10:06 +01:00
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
Honza Rychnovský 40ba042ff0
[#1295] SDK release v2.0.3 2023-11-08 15:22:45 +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
Honza Rychnovský b82278e747
[#1289] SDK Release 2.0.2
Closes #1289
2023-10-20 14:48:09 +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ý 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 69dc967ada Library version + Changelog 2023-09-25 22:11:44 +02:00
Jack Grigg ee28e4cedb SDK Release v2.0.0-rc.4 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 ea78f810dc [#1257] SDK Release v2.0.0-rc.2 2023-09-20 13:59:44 -06:00
Honza 9045acdce9 Changelog: BlockHeight 2023-09-20 08:56:29 -06:00
Honza f5c0c442c4 Changelog 2023-09-20 15:51:06 +02:00
Kris Nuttycombe 82757353f6 Update version & changelog for 2.0.0-rc.1 release.
Fixes #1237
2023-09-12 13:08:34 -06:00
Honza 916f9e957b Update PersistableWallet API
These required changes came from the latest SDK acceptance testing with Zashi wallet.
2023-09-11 13:37:12 +02:00
Honza Rychnovský 4c38354f01
Update Changelog
Co-authored-by: Daira Emma Hopwood <daira@jacaranda.org>
2023-09-10 11:50:59 +02:00
Honza Rychnovský c9d3085001
Update Changelog
Co-authored-by: Daira Emma Hopwood <daira@jacaranda.org>
2023-09-10 11:47:46 +02:00
Honza Rychnovský fe7edf3ec5
Fix Changelog typos
Co-authored-by: Daira Emma Hopwood <daira@jacaranda.org>
2023-09-10 11:45:53 +02:00
Honza 0d001495d5 Documentation update 2023-09-08 20:28:49 +02:00
Honza Rychnovský c6032b47bd [#1208][#1215] Pass proper `recoverUntil`
- Closes #1208
- CLoses #1215
2023-09-08 20:23:37 +02:00
Honza Rychnovský fc14082a1c [#1213] Remove `BlockTable` and its APIs
* [#1213] Remove `count()` from BlockTable API

* [#1213] Remove `firstScannedHeight()` from BlockTable API

* [#1213] Remove `findBlockHash()` from BlockTable

* [#1213] Remove `lastScannedHeight()` from BlockTable

* [#1213] Remove `BlockTable` entirely
2023-09-08 20:22:40 +02:00
Honza Rychnovský 33a7a2000f [#1210] Eliminate LINEAR sync support 2023-09-08 20:19:51 +02:00
Honza Rychnovský 9e334fd375 [#1109][#1206] Regular balance flows emission
* [#1206] Optimize SYNC_BATCH_SIZE

* [#1109] Regular balance flows emission
2023-09-08 20:19:51 +02:00
Honza Rychnovský 648b31a555 [#1170] Regular transaction flow emitting
* [#1170] Regular transaction flow emitting

Although zcash/librustzcash#918 will provide information on when to trigger transaction polling, this partly solves the issue as well

* Update changelog
2023-09-08 20:19:51 +02:00
Honza 700bd1fb59 Changelog update 2023-09-08 20:19:51 +02:00