Commit Graph

702 Commits

Author SHA1 Message Date
Francisco Gindre d877a9aee2
[#436] Add checkpoint with a lower interval on mainnet (#437)
Closes #436
2022-07-26 10:49:27 -03:00
Francisco Gindre f9b42f6f99
update changelog for 0.15.1-beta hotfix 2022-07-22 09:23:26 -03:00
Francisco Gindre 5c1e283837 [#431] Release 0.16.2-beta
Closes #431

Fix Zatoshi Encoding for Cocoapods clients
Fix internal members of Zatoshi needed by secant wallet
2022-07-15 18:54:00 -03:00
Francisco Gindre 5e415ac24a
[#418] "Swift.EncodingError.InvalidValue Encoding an Int64 is not supported" (#430)
when sending.

This happens when clients using cocoapods update to 0.15.0-beta through
0.16.1-beta. SPM clients not affected since they all use SQLite Swift 0.13

the issue is with clients using SQLite swift 0.12
2022-07-15 18:50:49 -03:00
Francisco Gindre 4e260419e1
[#428] make some helpers publicly accessible (#429)
Closes #428}

Helpers that were internal to Secant now are missing when we moved them to ZcashLightClientKit. This commit fixes that
2022-07-15 16:54:25 -03:00
Francisco Gindre a6bf465a6a Fix ZcashLightClientKit.podspec by reverting gRPC-Swift to 1.8.0 2022-07-15 14:27:26 -03:00
Francisco Gindre 221f3a3b98
[#425] release 0.16.1-beta (#427)
Closes #425

Changelog and podspect changes
2022-07-14 20:30:03 -03:00
Francisco Gindre 470775dfaf
- [#419] Fix Unavailable Transport 14 when attempting to sync (#426)
Closes #419

This eliminates the keepalive settings since they seem to clash with defaults
on ligthwalletd and the client gets rejected earlier than needed.
2022-07-14 20:19:46 -03:00
Francisco Gindre f2ed1f01ae
- [#422] Make Zatoshi extensions of `NSDecimalNumber` public (#423)
Closes #422

This helps Secant iOS compile since it relies on these APIs that were
once internal to the app module
2022-07-14 17:55:16 -03:00
Francisco Gindre 333c074b2f
[#416] Update GRPC to 1.8.2 (#421)
Closes #416
2022-07-14 15:18:15 -03:00
Francisco Gindre 5bfdfdb701
[#403] Release 0.16.0-beta (#417)
Closes #403

Renames changelog.md to CHANGELOG.md
2022-07-13 15:23:04 -03:00
Francisco Gindre e131ccbd07
[#392] Synchronizer error 8. when syncing. (#413)
Closes #392

This commit localizes SynchronizerError to better support Error messages
2022-07-12 17:28:16 -03:00
Francisco Gindre 2fcfa6fdbe
[#398] Make WalletBirthday an internal type (#414)
This commit makes Renames `WalletBirthday` to `Checkpoint` and
makes Checkpoint an internal type. Public ocurrences of this
type is replaced by `BlockHeight` (Int) and then retrieval of the
Checkpoint is deferred to the appropiate place in the code

Add an extension method to `BlockHeight` to get latest checkpoint
height present in the SDK's bundle

PR Suggestions:

Add test for integer overflow on JSON
File renamed from WalletBirthday to Checkpoint
2022-07-12 16:36:12 -03:00
Francisco Gindre aff3a9563b
[#411] add Fresh checkpoints for release 0.16.0-beta (#412) 2022-07-11 15:54:09 -03:00
Francisco Gindre b6bb17ab8b
[#406] some BirthdayTests fail for MacOS target (#410)
Closes #406

This commits differences how Checkpoints are retrieved from the resource bundle
depending on the target platform.
2022-07-11 09:17:22 -03:00
Francisco Gindre 79dbe8f387
[#404] Configure GRPC KeepAlive according to docs (#409)
Closes #404

This commit updates LightWalletGRPCService conform to latest
Swift-GRPC recommendations on how to set Connections KeepAlive
parameters.

See https://github.com/grpc/grpc-swift/blob/main/docs/keepalive.md
2022-07-08 16:49:24 -03:00
Francisco Gindre acae6a0d7b
[#400] Changelog for 0.15.0-beta. Podspec version (#405)
Closes #400
2022-06-29 20:29:36 -03:00
Francisco Gindre 889458d7b6
[#363] bump iOS minimum deployment target to iOS 13.0 (#407)
Closes #363
2022-06-29 20:12:17 -03:00
Francisco Gindre 912abe0128
[#397] Checkpoint format that supports NU5 TreeStates (#399)
* [#397] Checkpoint format that supports NU5 TreeStates

Closes #397

This commit adds `orchardTree` value to WalletBirthday and renames
the value `tree` to `saplingTree`. It also modifies the checkpoint
JSON files accordingly. It adds `.testnet` and `.mainnet` checkpoints
for orchard activation height.

* rename `sapling-checkpoints` to `checkpoints`
2022-06-28 16:17:10 -03:00
Francisco Gindre c7a27c0b86
[#401] DecodingError when refreshing pending transactions (#402)
Closes #401
This commit changes the way Codable in implemented for Zatoshi and PendingTransaction.

SQLite attempts to decode Custom Types as JSONStrings inside a TEXT column whereas Zatoshi only needs to be an INTEGER that can be treated as an Int64 value

`ConfirmedTransaction` entity is not affected because it is already deserialized
in a custom fashion whereas `PendingTransaction` was relying on `Codable` and
`CodingKey`.
2022-06-27 12:51:13 -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 516d605d22
[#394] Update swift-grpc to 1.8.0 (#395)
closes #394

This commit updates the generated files with the latest plugins released
along this version of the GRPC library.

`pod lib lint --verbose --allow-warnings` passed
2022-06-16 12:37:16 -03:00
Francisco Gindre 8b3ca8dc34
[#382] ZIP-302 compliant memo type (#385)
* [#382] ZIP-302 compliant memo type

Test Implemented and Passed

Move struct to the SDK

Make even more type safe by Wrapping Strings into TextMemo

PR Suggestions

PR Suggestions

PR suggestions

* PR suggestions to make all cases explicit
2022-05-26 18:06:02 -03:00
Francisco Gindre 74f3ae20f2 [#388] Integrate libzcashlc 0.0.3 to support v5 transaction parsing (#390)
This solves a problem where an NU5 aware wallet would receive a
v5 transaction with sapling funds and wouldn’t be able to
enhance it by decrypting the full transaction.

This works in conjunction with lightwalletd version v0.4.11 and .12
see https://github.com/zcash/lightwalletd/releases/tag/v0.4.12
and https://github.com/zcash/lightwalletd/releases/tag/v0.4.11
for details on how to upgrade your light client infrastructure.
2022-05-24 21:44:10 -03:00
Francisco Gindre 5bb1750b1f
[#383] Fix Darksidewalletd tests failing to retrieve a checkpoint (#386) 2022-05-17 15:29:27 -03:00
Francisco Gindre b4fbb36cd7
Bump podspec version to 0.13.1-beta (#379) 2022-05-06 14:45:20 -03:00
dh-ecc 80e6ec200b
[#326] Load Checkpoint files from bundle.
Closes #326 

Implements loading checkpoints from the bundle the same way the android SDK does. 


* Add checkpoint files

* Add checkpoint files as resources to package

* Remove stencil files

* Update wallet birthday methods to use bundled checkpoints

* [clean up] Fix test build failure

* Add Cocoapods support

* Fix for behaviour across SPM and Cocoapods

* Add test for checkpoint retrieval

* Use latest GRPC v1.x

* update checkpoint files to match android sdk
2022-05-05 18:30:17 -03:00
dh-ecc a3a33382c1
Add caveat to SPM / Xcode integration in Readme (#356) 2022-05-05 14:27:42 -03:00
Francisco Gindre 0c6203fefb
[#367] Darksidewalletd for testing `shield_funds` (#368)
pull from branch non-consensus-changes-libzcashlc

Patch Shield funds test.

Closes #367
2022-04-29 09:19:18 -03:00
Francisco Gindre 1f8b086ea3
[#351] add "Commit Messages" link to "topics" (#376)
add a link to "Commit Messages" to the "Topics" section
2022-04-29 07:57:04 -03:00
Francisco Gindre e552b24764
[#351] Write a Commit message Section for CONTRIBUTING.md (#371)
Closes #351

In order to make the repo's history consistent going forwards,
I've added some commit message guidelines.

The core of the suggestions were taken from this article:
https://cbea.ms/git-commit/#why-not-how

The main idea is that the repo is the source of truth and helps
both readers and maintainers to understand it better.

The rationale behind the title structure is that a clean
changelog can be manufacture by running `git log --oneline`
and a little bit of editing.

Small suggested typo fixes

Small suggested content changes

Included PR suggestions to shorten commits' first line
2022-04-27 15:52:57 -03:00
Francisco Gindre 59eccab074
Merge pull request #365 from zcash/update-documentation
Issue Update documentation
2022-04-08 12:29:33 -03:00
Francisco Gindre d9ac0dec7c Issue #364 - Update documentation
Update jazzy docs

update instructions on how do build Jazzy docs
2022-04-07 20:30:39 -03:00
Francisco Gindre 27a1875ba2
Merge pull request #347 from zcash/release/0.13.0-beta.2
Expose property nullProgress for ECC Reference Wallet
2022-03-16 12:14:38 -03:00
Francisco Gindre dd4724055f
increase timeout of build step 2022-03-11 18:37:19 -03:00
Francisco Gindre 9f67464e78
Merge branch 'master' into release/0.13.0-beta.2 2022-03-11 17:11:42 -03:00
Francisco Gindre 42d1797c73 Update README.md: remove private Spec Repo installation step. 2022-03-11 16:28:16 -03:00
Francisco Gindre f3150072f5 Expose property nullProgress for ECC Reference Wallet
Update podspec

Changelog

bump swift version

use libzcashlc 0.0.2
2022-03-11 15:22:00 -03:00
Francisco Gindre e1507c1a7d
Fix CocoaPodsSpec links and version 2022-03-04 14:59:51 -03:00
Francisco Gindre 6b051c6e36
Merge pull request #345 from zcash/release/0.13.0-beta.1
0.13.0-beta.1 Update changelog.md and podspec version
2022-03-04 14:22:55 -03:00
Francisco Gindre 8e22918c48
fix syntax error 2022-03-04 13:43:55 -03:00
Francisco Gindre 385b0999a8 PR Suggestions 2022-03-04 12:38:13 -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
Francisco Gindre 397e120e9a
Merge pull request #338 from dh-ecc/remove-rust
Remove rust build phase
2022-03-02 18:37:20 -03:00
Daniel Haight 16d64ed627 Add name to libzcashlc 2022-03-02 19:54:55 +00:00
Daniel Haight 3b6490c736 Change platform target to iOS 12 2022-03-02 17:21:05 +00:00
Daniel Haight 9afb87bdff Update podspec and package.swift references 2022-03-01 21:18:37 +00:00
Daniel Haight 86d1257ab5 Remove dependecy on rust sources 2022-02-28 17:03:20 +00:00
Francisco Gindre 01bf30b081
Merge pull request #341 from zcash/checkpoints
Issue #340: Add fresh checkpoints.
2022-02-04 11:52:39 -03:00
Francisco Gindre 6f1a06391d Issue #340: Add fresh checkpoints.
0.12.0-beta6

fix indentation
2022-01-27 19:28:11 -03:00