Commit Graph

687 Commits

Author SHA1 Message Date
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
Francisco Gindre 4607e2cd37
Merge pull request #332 from zcash/change-cargo-deps
Fix Issue #331 Reference librustzcash from a branch on that repo
2022-01-20 18:38:04 -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 f12775c12e
Merge pull request #327 from zcash/release/0.12.0-beta.5
Release/0.12.0 beta.5  (Beta 4 + new checkpoints)
2021-12-03 18:44:43 -03:00
Francisco Gindre f3f49fd911 Fix compile error 2021-12-03 17:28:25 -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 582030ff59 Point to same librustzcash fork as android sdk 2021-11-29 13:34:26 -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
Francisco Gindre b14eca3ede Mainnet checkpoints
spacing fix

add default case

Testnet checkpoints

fix range on Mainnet checkpoints
2021-11-19 17:06:25 -03:00
Francisco Gindre 5eac956ad7 cargo update 2021-11-19 16:45:22 -03:00
Francisco Gindre 1c5779b8e9
Merge pull request #325 from zcash/fresh-checkpoints
Fresh checkpoints
2021-11-19 15:41:48 -03:00
Francisco Gindre 3b42c0b868 Mainnet checkpoints
spacing fix

add default case

Testnet checkpoints

fix range on Mainnet checkpoints
2021-11-19 12:01:14 -03:00
Francisco Gindre 2b8a63d012
Merge pull request #316 from dh-ecc/m1-fixes
M1 fixes (#309)
2021-10-11 13:24:18 -03:00
Daniel Haight 27cca7979f Update `build_librustzcash_xcode.sh`
Reintroduce `cargo-lipo` as a dependency since bitrise is building for multiple architectures.
2021-10-06 20:10:58 +01:00
Daniel Haight 1e6f899976 Remove unused patch in Cargo.toml 2021-10-06 01:01:41 +01:00
Daniel Haight 7cec43504f Use specific rust toolchain depending on target
We now explicitely pin a nightly toolchain version for building for arm64 iOS simulator and use stable toolchain for any other architecture
2021-10-05 21:08:43 +01:00