Commit Graph

1100 Commits

Author SHA1 Message Date
Lukas Korba 3cf1f23e8e
Merge pull request #1237 from LukasKorba/1232-Implement-createAccount
[#1232] Implement createAccount
2023-09-08 09:54:01 +02:00
Lukas Korba b8b0f2927b [#1232] Implement createAccount
- create account draft

[#1232] Implement createAccount

- TODO for the recoverUntil parameter

[#1232] Implement createAccount

- force unwrap solved

[#1232] Implement createAccount

- ; removed
2023-09-08 08:18:17 +02:00
Lukas Korba 7631810979
Merge pull request #1231 from LukasKorba/1230-Remove-linear-sync-from-the-SDK
[#1230] Remove linear sync from the SDK
2023-09-08 07:41:17 +02:00
Lukas Korba d956e9940b [#1230] Remove linear sync from the SDK
- concept of linear syncing fully removed from the SDK, it's fully replaced with Spend-before-Sync
- BlockDAO - table blocks is no longer used, removed from the SDK and all it's associated getLastBlocks/ScannedHeights as with it
- concept of pending transactions removed from the SDK
- unit tests refactored
2023-09-08 07:40:08 +02:00
Lukas Korba 18141e6e4b
Merge pull request #1235 from nuttycom/rust_bugfix_missing_tip
Update Rust dependencies with bugfixes.
2023-09-08 07:39:37 +02:00
Kris Nuttycombe 6c3dd362b6 Update Rust dependencies with bugfixes.
The previous `zcash-light-client-ffi` revisions should be treated as
ephemeral; they will be removed upon creation of the SDK 2.0.0 release
candidate.
2023-09-07 23:16:26 -06:00
Lukas Korba 0b94809c45
Merge pull request #1234 from zcash/rust-bugfixes
Update Rust dependencies with bugfixes
2023-09-07 21:17:34 +02:00
Jack Grigg 01436c9a93 Update Rust dependencies with bugfixes
The previous FFI repo revisions no longer exist; commits between
87faf91096 and here will not build.
2023-09-07 19:54:12 +01:00
Lukas Korba 3c97e5cca9 [#1227] Check continuation of UpdateChainTip repeated call
- My assumption was right, the way State Machine is done requires .celarCache to be called with every "restart"
- I was able to reproduce errors when clearCache wasn't called so the updateChainTipAction needed to be updated to prepare clean conditions for the scan suggest ranges
- tests updated
2023-09-07 13:23:50 +02:00
Lukas Korba 7e2e787aef [#1223] Requested height [over latestheight] does not exist in the block cache
- the end of scan range is now properly filled

[#1223] Requested height [over latestheight] does not exist in the block cache

- the end of scan range is now properly filled
- unit tests for this change, checking if range.upperBound is set as expected

[#1223] Requested height [over latestheight] does not exist in the block cache

- code cleanup
2023-09-07 13:23:50 +02:00
Lukas Korba 569741e0a4 [#1179] Handle false positive getSubtreeRoots when connectivity is down
- when getSubtreeRoots call fails on timeout, the connectivity is not present and the action must be terminated (throw) an error, this way when the connectivity is back, the State Machine starts over and getSubtreeRoots get a chance to properly decide if SBS is supported

[#1179] Handle false positive getSubtreeRoots when connectivity is down

- unit test for the timeout getSubtreeRoot added

[#1179] Handle false positive getSubtreeRoots when connectivity is down (#1222)

- warning fixed
2023-09-07 13:23:50 +02:00
Lukas Korba 95536638e5 [#1176] Cover Spend before Sync with tests
- WIP

[#1176] Cover Spend before Sync with tests

- next batch of updates

[#1176] Cover Spend before Sync with tests

- last batch of fixes and new tests

[#1176] Cover Spend before Sync with tests

- package.resolved updated

[#1176] Cover Spend before Sync with tests (#1212)

- added tests for brand new actions related Spend before Sync
- RewindActionTests
- UpdateChainTipActionTests
- UpdateSubtreeRootsActionTests
- ProcessSuggestedScanRangesActionTests
2023-09-07 13:23:50 +02:00
Lukas Korba 80eb3b1c8d [#1181] Correct computation of progress for Spend before Sync
- the computation of progress changed, the total range is computed, that way it works for any kind of sync algorithm
- the progress depends on finished scan action, whenever it processes some blocks, it's counted up
- the final progress is a ratio between these new values
2023-09-07 13:23:48 +02:00
Lukas Korba cbcbf61d9a [#1165] draft
draft

[#1165] Step 1 - Download note commitment tree data from lightwalletd

- code cleanup after draft

[#1165] Step 1 - Download note commitment tree data from lightwalletd

- UpdateSubtreeRootsAction added, ensuring the roots are downloaded and stored in the DB

[#1165] Step 1 - Download note commitment tree data from lightwalletd

- added ZcashError for putSaplingSubtreeRoots failure
- cleaned up action

[#1165] Step 1 - Download note commitment tree data from lightwalletd

- demo app config temporarily updated to Nighthawk server

[#1165] Step 1 - Download note commitment tree data from lightwalletd

- file header updated

[#1165] Step 1 - Download note commitment tree data from lightwalletd (#1174)

- demo app config cleaned up

[#1165] Step 1 - Download note commitment tree data from lightwalletd (#1174)

- offline tests fixed
2023-09-07 13:23:48 +02:00
Lukas Korba b86401ad34 [#1215] Checkpoints and readme update related SBS
- checkpoints updated
- readme section for the SBS added
2023-09-07 13:23:47 +02:00
Lukas Korba cda3d6f6cc [#1206] Frequent call of update chain tip
- The State Machine has been slightly updated so it measures time when it lastly updated chain tip. If it happened more than 10mins ago, it calls the .updateChainTip action once again before the download-scan-enhance loop continues
- updated unit test

[#1206] Frequent call of update chain tip (#1207)

- whenever updateChainTip is called, it's followed by suggestScanRanges logic
2023-09-07 13:23:47 +02:00
Lukas Korba d9f92ec7a9 [#1181] Correct computation of progress for Spend before Sync
- the computation of progress changed, the total range is computed, that way it works for any kind of sync algorithm
- the progress depends on finished scan action, whenever it processes some blocks, it's counted up
- the final progress is a ratio between these new values
2023-09-07 13:23:47 +02:00
Lukas Korba 1205f402c6 [#1180] Handle production GetSubtreeRootsArg
- the value 65536 set only for testnet
2023-09-07 13:23:47 +02:00
Lukas Korba 9676c7fc67 [#1189] Implement continuity check and RewindAction
- RewindAction added
- rust's isContinuityError() emulated on iOS side
- verify scan range is now properly handled with rewind as well as check for continuity error

[#1189] Implement continuity check and RewindAction (#1195)

- TODO cleanup
2023-09-07 13:23:47 +02:00
Lukas Korba c894f46ce9 [#1188] Working prototype of SbS
- cleaned up the code
- ScanAlgorithm enum added to the SDK
- preferred sync algorithm set to .linear as default but can be changed to Spend before Sync as the Initializer.init parameter

[#1188] Working prototype of SbS

- error codes for failure states in the SbS State Machine changes added

[#1188] Working prototype of SbS (#1192)

- offline tests fixed
2023-09-07 13:23:47 +02:00
Lukas Korba 88019ebff1 [#1169] Step 5 -Get the suggested scan ranges from the wallet database
- initial action in place
- verify loop WIP

[#1169] Step 5 -Get the suggested scan ranges from the wallet database

- firstUnenhancedHeight fix

[#1169] Step 5 -Get the suggested scan ranges from the wallet database

- first working version implemented
- download, scan and enhance actions are dependent on the context values only
2023-09-07 13:23:47 +02:00
Lukas Korba 27e417a669 [#1167] Step 3 - Download chain tip metadata from lightwalletd
- update chain tip action added

[#1167] Step 3 - Download chain tip metadata from lightwalletd

- roots removed from the ActionContext

[#1167] Step 3 - Download chain tip metadata from lightwalletd

- fallback to linear sync until next step is implemented

[#1167] Step 3 - Download chain tip metadata from lightwalletd

- offline tests fixed
2023-09-07 13:23:47 +02:00
Lukas Korba c1fd1dfbc9 [#1165] draft
draft

[#1165] Step 1 - Download note commitment tree data from lightwalletd

- code cleanup after draft

[#1165] Step 1 - Download note commitment tree data from lightwalletd

- UpdateSubtreeRootsAction added, ensuring the roots are downloaded and stored in the DB

[#1165] Step 1 - Download note commitment tree data from lightwalletd

- added ZcashError for putSaplingSubtreeRoots failure
- cleaned up action

[#1165] Step 1 - Download note commitment tree data from lightwalletd

- demo app config temporarily updated to Nighthawk server

[#1165] Step 1 - Download note commitment tree data from lightwalletd

- file header updated
2023-09-07 13:23:47 +02:00
Lukas Korba 8f7294c3e1 [#1165] draft
draft

[#1165] Step 1 - Download note commitment tree data from lightwalletd

- code cleanup after draft

[#1165] Step 1 - Download note commitment tree data from lightwalletd

- UpdateSubtreeRootsAction added, ensuring the roots are downloaded and stored in the DB

[#1165] Step 1 - Download note commitment tree data from lightwalletd

- added ZcashError for putSaplingSubtreeRoots failure
- cleaned up action

[#1165] Step 1 - Download note commitment tree data from lightwalletd

- demo app config temporarily updated to Nighthawk server

[#1165] Step 1 - Download note commitment tree data from lightwalletd

- file header updated

[#1165] Step 1 - Download note commitment tree data from lightwalletd (#1174)

- demo app config cleaned up

[#1165] Step 1 - Download note commitment tree data from lightwalletd (#1174)

- offline tests fixed
2023-09-07 13:23:47 +02:00
Lukas Korba 2302dc4b6e
Merge pull request #1229 from zcash/rust-account-birthdays
Update Rust dependencies with account birthdays and scan progress
2023-09-07 09:28:02 +02:00
Jack Grigg e7621204e5 Update Rust dependencies with account birthdays and scan progress
The previous FFI repo revisions no longer exist; commits between
87faf91096 and here will not build.

Update Rust dependencies with account birthdays and scan progress

- fixes for SampleApp
2023-09-07 09:26:48 +02:00
Lukas Korba e389af4c60
Merge pull request #1210 from nuttycom/ffi-update
Update the `zcash-light-client-ffi` dependency version.
2023-08-31 07:54:06 +02:00
Kris Nuttycombe 8f2962f060 Update the `zcash-light-client-ffi` dependency version. 2023-08-28 10:08:12 -06:00
Kris Nuttycombe c2b904e89e
Merge pull request #1214 from LukasKorba/1213-Server-update
[#1213] Server update
2023-08-28 08:35:16 -06:00
Lukas Korba 6f8f7eb66b [#1213] Server update
- endpoint updated to the latest and workable server
2023-08-28 15:38:21 +02:00
str4d 42214bd962
Merge pull request #1191 from zcash/darkside-bugfix-tree-sizes
Migrate to latest `darkside.proto` to help fix Darkside tests
2023-08-28 14:05:46 +01:00
Lukas Korba 9a82acbd5e
Merge pull request #1209 from LukasKorba/1208-Bitrise-fails-to-build
[#1208] Bitrise fails to build
2023-08-23 17:31:44 +02:00
Lukas Korba 5ac2121230 [#1208] Bitrise fails to build
- hotfix for explicit use of self in a Task, CI fails to build it without it
2023-08-23 17:29:42 +02:00
Jack Grigg 4c74e4d204 Migrate to latest `darkside.proto` to fix Darkside tests 2023-08-18 09:37:41 -04:00
Lukas Korba d446c6d336
Merge pull request #1201 from zcash/rust-scan-spend-fixes
Update Rust dependencies with scanning and spending bugfixes
2023-08-18 13:06:51 +02:00
Jack Grigg bc052872fd Update Rust dependencies with scanning and spending bugfixes
The previous FFI repo revisions no longer exist; commits between
87faf91096 and here will not build.
2023-08-17 21:47:27 -07:00
Lukas Korba a9f927393f
Merge pull request #1198 from LukasKorba/1196-Check-logging-level-priorities
[#1196] Check logging level priorities
2023-08-10 12:11:26 +02:00
Lukas Korba 5fa1af38f0 [#1196] Check logging level priorities
- the priorities for log levels have been updated

[#1196] Check logging level priorities

- changelog updated
2023-08-10 08:56:00 +02:00
Lukas Korba b92177ba8f
Merge pull request #1194 from zcash/dependabot/swift/github.com/apple/swift-nio-extras-1.19.0
Bump github.com/apple/swift-nio-extras from 1.12.1 to 1.19.0
2023-08-10 08:23:10 +02:00
dependabot[bot] 8a516620dc
Bump github.com/apple/swift-nio-extras from 1.12.1 to 1.19.0
Bumps [github.com/apple/swift-nio-extras](https://github.com/apple/swift-nio-extras) from 1.12.1 to 1.19.0.
- [Release notes](https://github.com/apple/swift-nio-extras/releases)
- [Commits](https://github.com/apple/swift-nio-extras/compare/1.12.1...1.19.0)

---
updated-dependencies:
- dependency-name: github.com/apple/swift-nio-extras
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-08-09 11:19:50 +00:00
Lukas Korba 84620ed747
Merge pull request #1187 from zcash/rust-checkpoint-and-memo-bugfixes
Update Rust dependencies with checkpoint and memo bugfixes
2023-08-09 13:16:16 +02:00
Jack Grigg cddf6891fd Update Rust dependencies with checkpoint and memo bugfixes
The previous FFI repo revisions no longer exist; commits between
87faf91096 and here will not build.
2023-08-08 12:30:28 +01:00
Lukas Korba 4d95f2cb9d
Merge pull request #1185 from LukasKorba/1184-FirstUnenhancedHeight-not-called
[#1184] FirstUnenhancedHeight not called
2023-08-04 11:08:07 +02:00
Lukas Korba ad99fdeae8 [#1184] FirstUnenhancedHeight not called
- firstUnenhancedHeight is now properly used
- fixed tests
2023-08-04 09:56:57 +02:00
Lukas Korba b9524ae1ab
Merge pull request #1183 from LukasKorba/1182-Update-checkpoints
[#1182] Update checkpoints
2023-08-03 11:48:18 +02:00
Lukas Korba a6d0f97351 [#1182] Update checkpoints
- mainnet & testnet checkpoints
2023-08-03 11:43:29 +02:00
Lukas Korba e4cea0c265
Merge pull request #1173 from zcash/update-rust-deps
Update Rust dependencies with bugfixes
2023-07-31 11:56:35 +02:00
Lukas Korba d6507b7b84 epk key refactor
epk -> ephemeralKey refactor done so offline tests in the SDK pass, therefore the CI passes as well
2023-07-31 11:47:29 +02:00
Jack Grigg ea3281edde Update Rust dependencies with bugfixes
The previous FFI repo revision no longer exists; commits between
87faf91096 and here will not build.
2023-07-31 09:56:40 +02:00
str4d 27b7e78bcc
Merge pull request #1163 from LukasKorba/1162-Remove-duplicated-SubtreeRoot
[#1162] Remove duplicated SubtreeRoot
2023-07-21 23:00:15 +01:00