Commit Graph

38 Commits

Author SHA1 Message Date
Francisco Gindre 65aa7d8474 [wip] autoshield poc with uvks 2021-04-02 19:18:16 -03:00
Francisco Gindre 8046bed300 FIX: wrong wallet birthday on new wallets 2021-04-01 18:08:00 -03:00
Francisco Gindre 593f04b448 Migrate to new database model 2021-04-01 11:27:26 -03:00
Francisco Gindre 477f7cc69f Merge branch 'master' into shield-funds-poc 2021-03-29 14:53:01 -03:00
Francisco Gindre 782529a3e8
Fix - rewind does not work if the sdk hadn't been started before (#268) 2021-03-27 16:09:22 -03:00
Francisco Gindre 53bc114948
Allow Wallet developers to rewind synchronizer and (eventually) rescan (#267)
* [WIP] tests

* Use Rust creates instead of pinned revision

* expose rewind API to public interface

* fix ci error

* Documentation
2021-03-26 19:56:51 -03:00
Francisco Gindre 246d10edaa [WIP] catch up to latest librustzcash changes 2021-03-08 15:47:36 -03:00
Francisco Gindre 1affc50726 [WIP] data access api compliance 2021-03-03 18:19:10 -03:00
Francisco Gindre 2d76c96b42 Fix compile errors 2021-03-03 18:19:10 -03:00
Francisco Gindre 81f4edfd55 Issue #244 Add Synchronizer support for shielding funds 2021-03-03 18:19:10 -03:00
Francisco Gindre 45fa30838f WIP - shield funds 2021-03-03 18:19:10 -03:00
Francisco Gindre 4abf914f9f Issue #166 Download UTXO set 2021-03-03 18:09:13 -03:00
Francisco Gindre 9a8d4c23b5 Code Cleanup, test enhancements, linting changes 2021-02-15 21:56:23 -03:00
Francisco Gindre 68027af3f0 closes Issue #237 Untie SDKSynchronizer from UIApplication Events 2020-12-05 18:28:10 -03:00
Francisco Gindre 645ffa6734 FIX: download operation gets cancelled when apps are backgrounded 2020-12-04 11:28:14 -03:00
Francisco Gindre 697724cb49 remove isFirstAppLaunch flag 2020-12-04 11:28:14 -03:00
Francisco Gindre 840c76142a WIP - Expose foundTransactions notification to SDKSynchronizer# 2020-10-20 11:06:31 -03:00
Francisco Gindre 972fb08926 Issue 208 - Improve API method to request transaction history 2020-10-19 21:01:46 -03:00
Francisco Gindre 37a15bb93f add DownloadIFNeeded 2020-10-08 17:29:38 -03:00
Francisco Gindre a2dcee2340 expose latest height on synchronizer 2020-10-08 17:29:38 -03:00
Francisco Gindre 49e3300692 Removed some warnings, added xconfig to fix pod lint issues, updated protobufs 2020-09-23 15:39:00 -03:00
Francisco Gindre 251b4c7aa3
Error handling refactor (#170)
* Improve error handling on processor and service

* Error Refactoring

* fix XCode12 issue

* Fix Compilation errors and test

* bump MIDDLE version
2020-08-10 19:19:59 -03:00
Francisco Gindre 647072ce26
Pending tx wont clear (#168)
* Created test to reproduce issue

* fix test

* Add Fixme message

* Fix reorg Tests
2020-07-22 16:32:07 -03:00
Francisco Gindre f8f8be30a4
Advanced Re Org tests + Balance tests (#137)
* Stub methods and internal initializers

* [WIP] Balance tests

* testVerifyBalanceAfterExpiredTransaction and testVerifyChangeTransaction

* adopt new version of darkside lightwalletd

* Balance tests with new darkside wallet proto files

* podspec and podfile

* Advanced reorg testsw

* Issue 117 - Reorg Test Case: Index of incoming tx changes

* Hooking to Darksidewalletd

* update proto files to latest

* sanity tests

* FakeChainBuilder + advanced tests

* Use new datasets

* test: outbound tx index change on reorg

* testReOrgChangesInboundTxMinedHeight test + other improvements

* testReOrgChangesInboundMinedHeight

* testReOrgRemovesIncomingTxForever

* testReOrgRemovesOutboundTxAndIsNeverMined

* testReOrgRemovesOutboundTxAndIsNeverMined

* Fixes to balance tests
2020-06-03 20:18:57 -03:00
Francisco Gindre 174ceb1d8e
Swift grpc to NIO (#109)
* update protofiles

* update protobuf

* swift lint

* update GRPC service to NIO

* initial update [wip]

* Upgrade to SwiftGRPC NIO and Tests
2020-04-09 19:25:43 -03:00
Francisco Gindre 312a169911
Feature/reorg testing (#104)
* Add DarksideWalletD class

* darkside walletd reorg tests

* Removed hardcoded stuff from tests

* add parameters to support other kinds of reorgs

* Basic reorg test in place

* Integration to DarksideWalletD and tests

* tests improvements

* Implement reorg testing. fix error throwing
2020-04-06 12:54:31 -03:00
Dimitris Apostolou 51419010ea
Fix typos and cleanup (#103) 2020-03-26 11:27:55 -03:00
Francisco Gindre 60510edd63 ENHANCEMENT: Retry support + error management 2020-03-13 21:00:01 -03:00
Francisco Gindre 2d34615c6d Better error handing when scanning fails 2020-03-11 23:17:32 -03:00
Francisco Gindre 72c3cb59ef
Integrate logging capabilities (#93)
* Integrate logging capabilities

* Relocate file
2020-03-09 17:25:27 -03:00
Francisco Gindre b867649443
Support Note Spending v7
* upgraded to note-spending-v7

* use "zip32 compliant" seed on demo app

* Fixes to initializer, added v7 methods, documented API. Fixed compact block processor not initializing correctly upon new wallets.

* documentation

* Change u8 return value to bool + tests

* add address validation functionality to Initializer

* renamed functions to a C style. Exposed deriving functions in rust backend. Added more tests

* fixed bug where compact block processor wouldn't reschedule

* Fixed capture blocks retaining references

* fixed memory cycles and leaks

* fixed memory leak and blockrange error

* fixed error on confirmed transactions and added blockheight to progress notifications
2020-02-26 13:54:48 -03:00
Francisco Gindre 549aa25001 add functions that express the underlying errors and make variables a convenience extension 2020-01-30 02:34:03 -03:00
Francisco Gindre 750108252f
Feature/single pod mainnet (#60)
* Mainnet changes [WIP]

* Separate pods approach [WIP]

* Create a single podfile and scripts to build mainnet or testnet [WIP]

* Added test spec to pod with TESTNET Script [WIP]

* pod install + sample app testnet build worked

* add prefix to database names

* Fix constants in tests

* fix plist

* fix stencils

* Force environment variable

* Get config from environment variable

* Save project settings and create new DemoAppConfig settings

* Fix Template. change demoApp config port

* Add extra warning when building to see environment in logs

* New Readme! + enhanced messaging on build_librustzcash_xcode.sh

* Fix Stencil if statement

* add our domain names to the demo app endpoints

* clean up Podfile

* fix: mainnet not building properly

* improve cleanup

* fixed weird seed change

* remove duplicated file reference

* Improve error handling on LightWalletService

* Improve error handling on Latest block height. fix get address pasteboard gesture

* fix mainnet walletbirthday stencil

* fix: demo app not syncing on mainnet

* Verified Balances and Send Max Funds fixed

* Add paths to preserve when installing pod

* add Stencil to preserved paths

* Fix $ZCASH_SDK_GENERATED_SOURCES_FOLDER not writable error

* Fixes from PR Comments

* Fixed TransactionId string generation

* Fixed Test build scripts + PR comments

* fix indentation

* Changes to script_commons

* fixes per PR

* remove else from mismatch function

* Add comment to poorly named function
2020-01-14 19:25:14 -03:00
Francisco Gindre 85ec6b1f95
propagate error (#55) 2019-12-19 10:04:50 -03:00
Francisco Gindre 5ad77abf46
Removed confirmed pending transactions (#52) 2019-12-17 18:16:26 -03:00
Francisco Gindre 97ab864cbe
Feature/notify mined tx (#51)
* add notification for mined transactions

* display a notification bubble when transaction is mined
2019-12-17 17:11:21 -03:00
Francisco Gindre 5930fbed6f
Outbound transaction reorg handling proposal (#48)
* Outbound transaction reorg handling proposal

* Add rewind distance

* include rewind on reorg notification, use it to refresh pending transactions
2019-12-17 14:12:07 -03:00
Francisco Gindre a139ffbdfe
Transaction Listing + send funds + synchronizer implementation (#47)
* Create UIKit subfolder

* add offset to transaction repository

* mock repository and tests [WIP]

* Paged transaction DAO

* Paged transaction repository by kind

* update protobuf files

* move SDKSynchronizer to UIKit folder

* created some health check test on transactions

* Build release version of librustzcash

* Add Send on main thread button for troubleshooting purposes

* fix submit method by using RawTransaction factory method

* fix transactions table mapping

* fix transactions table mapping

* fix get balance sample

* FIX: cosensus branch ID for Blossom

* SDKSynchronizer integration for Send Funds

* fix rawTransactionId mistaken by raw field

* fix testEncodeSpend

* Transaction submission failed tests

* unpaged transaction listings

* renamed method, fixed typo

* stupid xcode misplaced folders again

* add PaginatedTableView Dependency to Example and hook it up [WIP]

* fix  unit test target not being shared

* removed performance test

* fix get address, paged transactions nulled, added type of transaction

* added kind of transaction to transaction repo builder, fixed transaction builder

* Transaction Detail screen

* add transaction details to paginated transaction
2019-12-16 19:25:45 -03:00