Commit Graph

132 Commits

Author SHA1 Message Date
Francisco Gindre 28985a4e38
Merge pull request #536 from LukasKorba/486_sendToAddress_async_await
[#486] sendToAddress async/await
2022-09-23 12:08:31 -07:00
Lukas Korba 2c93802828 [#487] shieldFunds to async/await
- API refactored to async

[#487] shieldFunds to async/await

- unit tests refactored
2022-09-21 16:36:41 +02:00
Lukas Korba 61683a85f3 [486] sendToAddress async/await
- sendToAddress and SaplingParameterDownloader refactored to async
- unit tests WIP

[486] sendToAddress async/await

- testing code cleanup

[#486] sendToAddress async/await

- reducing number of Tasks in Sample app

[#486] sendToAddress async/await

- I finally figure out how to make the dark side tests async, using new sendToAddress APIs and pass, POC done, 18 more tests to refactor

[#486] sendToAddress async/await

- async sendToAddress unit test refactored except NetworkUpgradeTests

[#486] sendToAddress async/await

- NetworkUpgradeTests refactored to async API

[#486] sendToAddress async/await

- cleanup

[#486] sendToAddress async/await (#536)

- PR comments resolved
2022-09-21 13:47:17 +02:00
Lukas Korba 2b65bd46e4 [476] CompactBlockProcessor to async/await
- getting rid of the Operation Queue
- the cleanup is needed
- the update of tests is needed
- tested and it successfully finishes the sync process

[476] CompactBlockProcessor to async/await

- old processNewBlocks() removed

[476] CompactBlockProcessor to async/await

- unused operations removed

[476] CompactBlockProcessor to async/await

- unit tests update

[476] CompactBlockProcessor to async/await

- unit tests refactored

[476] CompactBlockProcessor to async/await

- cleanup of deprecated method

[476] CompactBlockProcessor to async/await

- fail(error) was called even for canceled tasks but that must be excluded

[476] CompactBlockProcessor to async/await

- removal of all ZcashOperations from the code (unit test will follow)

[476] CompactBlockProcessor to async/await

- network tests in building and success order again

[476] CompactBlockProcessor to async/await

- offline tests in building and success order

[476] CompactBlockProcessor to async/await (519)

- cleanup of suspending the task

[476] CompactBlockProcessor to async/await (519)

- most comments resolved

[476] CompactBlockProcessor to async/await (519)

- thread safe state for both sync and async context

[476] CompactBlockProcessor to async/await (519)

- fixed build for a sample project

[476] CompactBlockProcessor to async/await (519)

- func testStartNotifiesSuscriptors() reverted

[476] CompactBlockProcessor to async/await (519)

- TODO added to track why we used NSLock instead of an Actor
- Task priority enhanced

[476] CompactBlockProcessor to async/await (519)

- cleanup in Tasks and priorities
2022-09-15 08:10:12 +02:00
Lukas Korba f1a570bbc2
[#463] Migrate LightwalletService to Async/Await (#493)
- migration of the protocol's methods done
- split the code so there's blocking and non-blocking API separately

[463] Migrate LightwalletService to Async/Await

- draft

[463] Migrate LightwalletService to Async/Await

- failing tests under investigation

[463] Migrate LightwalletService to Async/Await

- code cleanup
- tests cleanup
- async throws unit tests added

[463] Migrate LightwalletService to Async/Await

- sample app updated to the latest API

[463] Migrate LightwalletService to Async/Await

- cleanup

[463] Migrate LightwalletService to Async/Await

- cleanup

[463] Migrate LightwalletService to Async/Await

- fixed non-building tests

[463] Migrate LightwalletService to Async/Await

- reverting back to lastHeight()

[463] Migrate LightwalletService to Async/Await

updated code to AsyncStream

[463] Migrate LightwalletService to Async/Await (493)

- tests fixed
- blockRange reimplemented to use AsyncStream
- grpc proto files regenerated to exclude Server
2022-08-25 10:39:59 -03:00
Francisco Gindre b9ae012e09
[#381] Move Zatoshi and Amount Types to the SDK (#396)
Closes #381

This commit brings a Zatoshi type developed on the Secant project,
helper classes like Clamped and tests.

Zatoshi has been incorporated as a Codable type for SQLite Swift
to allow serialization into the pending database.

FIXES on Demo App

fix comments
2022-06-22 16:45:37 -03:00
Francisco Gindre 605a3e9881 Update changelog.md and podspec version
Fix Travis CI builds

fix travis build

Fix Travis CI

fix travis

Fix Travis CI

Delete unneeded test

Change scheme

Fix Project file so that it compile and tests for Travis CI

restore Demo app scheme

fix dumb typo

Fix Tests. Add workflow

fix workflow for github action

blank line
2022-03-03 19:07:03 -03:00
Daniel Haight 86d1257ab5 Remove dependecy on rust sources 2022-02-28 17:03:20 +00:00
Francisco Gindre 6f1a06391d Issue #340: Add fresh checkpoints.
0.12.0-beta6

fix indentation
2022-01-27 19:28:11 -03:00
Francisco Gindre eba37f6c77 Fix Issues #334 and #331
Issue #334 Update to MnemonicSwift 2.1.0
Issue #331 Reference librustzcash from a branch on that repo

FIX: Don't use nightly on Intel macs. don't build ARM Simulator either

clean up podfile for sample app

pod install

Update MnemonicSwift to 2.1.0

remove "test" comment

Fix: CI builds fail because arm64 is always required regardless of current architecture

move to stable

fix travis build

add else statement for release buidls
2022-01-20 17:01:20 -03:00
Francisco Gindre d3948a60a1 Merge branch 'master' into release/0.12.0-beta.5 2021-12-02 16:41:49 -03:00
Francisco Gindre 115762bf7b Update Podspec. Bump to beta.5. Pod install on Demo App
Revert "cargo update"

This reverts commit 5eac956ad7.
2021-11-22 18:29:19 -03:00
Daniel Haight 2af7ba5c07 Update podfile.lock on example project 2021-10-01 03:14:07 +01:00
Adam Stener 054ab3936a Remove build setting warning 2021-09-27 07:15:34 -05:00
Adam Stener ae5b3cfc21 SwiftLint Fixes 2021-09-21 06:27:49 -05:00
Francisco Gindre b1a0b01673 Clear SwiftLint on ZcashLightClientKit 2021-09-15 09:21:29 -03:00
Francisco Gindre bf17bcf004 0.12.0-beta.4 2021-09-01 19:07:56 -03:00
Francisco Gindre b13136792a bump version 2021-08-02 20:57:29 -03:00
Francisco Gindre ecc278e05c 0.12.0-beta.1 2021-07-30 13:51:27 -03:00
Francisco Gindre 12eab8c6db bump version to alpha12 2021-07-29 19:00:45 -03:00
Francisco Gindre a5c67c6593 remove ZCASH_NETWORK_ENVIRONMENT 2021-07-28 17:03:09 -03:00
Francisco Gindre 6e64b32810 remove code generation for zcashsdk constants 2021-07-28 16:37:05 -03:00
Francisco Gindre 09ac2c5877 remove WalletBirthday as generated file and add it as constants in the sdk 2021-07-28 15:46:45 -03:00
Francisco Gindre dd7cd24aeb 0.12.0 alpha 10 2021-07-15 20:48:13 -03:00
Francisco Gindre 924ccb1c58 CompactBlockProcessor states don't propagate correctly
Add MnemonicSwift to test target. Bump Alpha version

solve dependency problem on podspec

Remove MnemonicSwift from test target
2021-07-15 10:07:46 -03:00
Francisco Gindre fefb9f6523 bump version 2021-07-06 15:32:08 -03:00
Francisco Gindre f733a6f117 bump to 0.12.0-alpha.6 2021-06-23 13:40:38 -03:00
Francisco Gindre 2b17bacf05 0.12.0-alpha.5 2021-06-21 09:03:37 -03:00
Francisco Gindre 0b23454271 add output files to build phase to avoid CI failures 2021-06-20 18:57:42 -03:00
Francisco Gindre f26ad811c6 fix lint warnings 2021-06-20 11:59:00 -03:00
Francisco Gindre 688dbea28b bump to 0.12.0-alpha.4 2021-06-20 11:41:59 -03:00
Francisco Gindre abf49abadd 0.12.0 alpha 3 2021-06-16 19:47:22 -03:00
Francisco Gindre e56779b9ee bump version to 0.12.0-alpha.2 2021-06-16 12:15:39 -03:00
Francisco Gindre 1f21540fd6 fix unneded dependency 2021-06-15 11:32:06 -03:00
Francisco Gindre 6e4f8e18d0 0.12.0-alpha.1 2021-06-14 20:41:49 -03:00
Francisco Gindre 392b4ee0d4 Fix Demo App 2021-06-14 19:56:32 -03:00
Francisco Gindre 3a963d79c4 CompactBlock batch download and stream download operation
tests pass.
2021-06-02 18:32:05 -03:00
Francisco Gindre b39e04eda3 [WIP] download and scanning batch operations 2021-05-28 19:45:18 -03:00
Francisco Gindre f663df1711 fix demo app not compiling 2021-05-19 18:49:08 -03:00
Francisco Gindre 497f1e94ca Pod update + changelog + new checkpoints 2021-05-19 18:48:49 -03:00
Francisco Gindre 446671dffe bump version 2021-05-17 18:16:08 -03:00
Francisco Gindre 5bdac5dec6 0.11.0-alpha.2 2021-05-12 14:35:12 -03:00
Francisco Gindre 90c7a4d755 Fix Tests. deleted two obsolete ones 2021-05-07 15:50:50 -03:00
Francisco Gindre 3ee097e220 0.11.0-alpha.1 2021-04-30 17:43:54 -03:00
Francisco Gindre 37f2232d2d Update to gRPC-Swift 1.0.0 2021-04-20 11:49:10 -03:00
Francisco Gindre 65aa7d8474 [wip] autoshield poc with uvks 2021-04-02 19:18:16 -03:00
Francisco Gindre 477f7cc69f Merge branch 'master' into shield-funds-poc 2021-03-29 14:53:01 -03:00
Francisco Gindre 30d141ab94
Fix #255 #261 outgoing no-change transactions not reported as mined (#265)
* Fix #255 #261 outgoing no-change transactions not reported as mined
* Bump rust welding version to 0.0.6

Co-authored-by: Kris Nuttycombe <kris@electriccoin.co>
2021-03-25 14:43:20 -03:00
Francisco Gindre 14a5a02966 Logger fixes 2021-03-15 10:52:53 -03:00
Francisco Gindre c69b54db9e
Data Access Api integration (#227)
* add cargo dependencies for data access api

* Imports + init_accounts_table

* ported init_accounts_table and init_accounts_table_with_keys

* ported zcashlc_derive_extended_spending_keys

* ported zcashlc_derive_extended_full_viewing_keys

* ported zcashlc_derive_shielded_address_from_seed

* ported zcashlc_derive_shielded_address_from_viewing_key

* ported zcashlc_derive_extended_full_viewing_key

* ported zcashlc_init_blocks_table

* port zcashlc_get_address

* port zcashlc_is_valid_transparent_address

* port zcashlc_get_balance

* fix u32 try_into error

* ported zcashlc_get_received_memo_as_utf8

* fixed zcashlc_init_blocks_table, ported zcashlc_get_sent_memo_as_utf8

* ported zcashlc_validate_combined_chain

* ported zcashlc_rewind_to_height

* ported zcashlc_rewind_to_height

* ported zcashlc_decrypt_and_store_transaction

* ported zcashlc_branch_id_for_height

* ported zcashlc_derive_transparent_address_from_seed

* Compiled lib.rs

* lib.rs compiles

* fix AccountId import

* Fix: send fails with missing params. cargo update

* Fix: demo app fails to initialize

* fix AdvancedReOrgTests

* deprecate default FEE

* Add fee for height helper for UI purposes

* default fee for heightwq

* update proto files and compiled files

* Update to librustzcash master.

* add latests changes from rust on master

* merge with master

* fix merge error

Co-authored-by: Kris Nuttycombe <kris@electriccoin.co>
2021-03-11 18:41:57 -03:00