Commit Graph

795 Commits

Author SHA1 Message Date
Michal Fousek da10219a84
Merge pull request #712 from Chlup/556_8_tests
[#556] Fix tests and fix few bugs
2023-01-12 19:40:20 +01:00
Michal Fousek 14f1436987 [#556] Fix tests and fix few bugs
- Fix all the tests. In few tests code had to be changes because order
  of transactions is newly defined. It wasn't before.
- Change properties of Transaction.* objects. Some had to be made
  Optional to make all tests work.
- Add new tests for TransactionDAO.
- Removed methods from TransactionDAO that weren't used.
2023-01-10 23:20:46 +01:00
Michal Fousek cb2d077200
Merge pull request #709 from Chlup/687_7_memo_api
[#683] Add Synchronizer API to fetch memos for transactions
2023-01-10 23:19:13 +01:00
Michal Fousek cb62101e2d [#683] Add Synchronizer API to fetch memos for transactions
Closes #683

Fix tests
2023-01-10 11:03:57 +01:00
Michal Fousek 169fd3da46 Merge branch 'main' into 556_using_transactions_db_views 2023-01-10 11:02:12 +01:00
Michal Fousek c6af1cace3
Merge pull request #702 from zcash/657_download_change
657 download change
2023-01-09 15:17:07 +01:00
Michal Fousek c5b6e86a91
Merge pull request #707 from Chlup/556_6_rename_TransactionNG
[#556] Rename Transaction to TransactionNG
2023-01-09 13:31:25 +01:00
Michal Fousek 382905b06a [#657] Fix typos 2023-01-09 13:29:43 +01:00
Michal Fousek 473326fc55
Merge pull request #708 from Chlup/657_scan_batch_not_global
[#657] Scan batch size is computed for each scan loop
2023-01-09 13:23:41 +01:00
Michal Fousek abe647e28d Update how progress is reported while scanning blocks 2023-01-06 16:45:49 +01:00
Francisco Gindre 851023842f
[#612] Remove Support for Cocoapods (#706)
Our main dependency, Swift-GRPC is dropping support for Cocoapods from version 1.8.2.

Even though they make a great work at maintaining backwards compatibility, we will eventually be forced to drop Cocoapods support.

We've reached out partners like NighthawkApps, Horizontal Systems (Unstoppable) and Edge, who have reported not depending on Cocoapods.

We intend to end Cocoapods support on 0.18.0.

Closes #612
2023-01-06 12:26:00 -03:00
Michal Fousek 09e9148b88 [#657] Scan batch size is computed for each scan loop 2023-01-06 13:16:12 +01:00
Michal Fousek c4df36db36 [#556] Rename Transaction to TransactionNG
This change is really only replace one string with other. No logic was
changed.
2023-01-06 10:12:00 +01:00
Michal Fousek 3d488f6e15
Merge pull request #703 from Chlup/556_5_remove_ConfirmedTransaction
[#556] Remove ConfirmedTransaction and ConfirmedTransactionEntity
2023-01-06 10:10:04 +01:00
Michal Fousek e8aa451b17 [#657] Update changelog 2023-01-05 15:13:27 +01:00
Michal Fousek becadf21c8 Merge branch 'main' into 657_download_change 2023-01-05 09:50:00 +01:00
Michal Fousek ef88023171 [#556] Remove ConfirmedTransaction and ConfirmedTransactionEntity 2023-01-05 09:42:50 +01:00
Michal Fousek de25513c9c
Merge pull request #694 from Chlup/556_4_remove_entities
[#556] Remove Transaction and TransactionEntity
2023-01-04 21:18:48 +01:00
Michal Fousek 91af862a4e
Merge pull request #701 from Chlup/556_fix_properties
[#556] Make expiryHeight and raw optional
2023-01-04 21:18:35 +01:00
Michal Fousek ed47bc2327 [#556] Make expiryHeight and raw optional
There can be stored transactions with expiryHeight and raw set to NULL
in database. So these two properties must be optional in code.
2023-01-04 16:21:47 +01:00
Francisco Gindre f6be12fd8c
Merge pull request #699 from zcash/release/0.17.5-beta
[#698] Updated Checkpoints release 0.17.5-beta
2023-01-04 10:53:21 -03:00
Francisco Gindre f13322225d
Merge branch 'main' into release/0.17.5-beta 2023-01-04 10:52:44 -03:00
Francisco Gindre 70e732e551 Fix Merge conflict on PR. 2023-01-04 10:49:46 -03:00
Michal Fousek c17706f5d0 [#556] Remove Transaction and TransactionEntity
- Removed `Transaction` struct and `TransactionEntity` protocol.
- Removed some other protocols from `TransactionEntity.swift`.

Use correct default fee and memo count
2023-01-04 10:02:27 +01:00
Francisco Gindre c0f8d46501 [#698] Updated Checkpoints release 0.17.5-beta 2023-01-03 17:55:02 -03:00
Michal Fousek d6cbab3afb
Merge pull request #693 from Chlup/556_3_replace_findAll
[#556] Replace TransactionRepository.findAll methods with new methods
2023-01-03 13:47:03 +01:00
Michal Fousek f12ace4bf3 [#556] Replace TransactionRepository.findAll methods with new methods
Fix compilation
2023-01-03 13:12:07 +01:00
Michal Fousek 09809cd26f
Merge pull request #685 from Chlup/556_2_replace_findAllSentTransactions
[#556] Replace TransactionRepository.findAllSentTransactions with new method
2023-01-02 23:11:34 +01:00
Michal Fousek e63c7d66fe
Merge pull request #691 from Chlup/678_synchronizer_start_while_processing
[#657] Fix start of SDKSynchronizer when sync is already in process
2023-01-02 23:11:17 +01:00
Michal Fousek 7b4f5f6730
Merge pull request #692 from Chlup/all_scheme
Add Xcode scheme that builds all the targets
2023-01-02 23:11:01 +01:00
Francisco Gindre 423afdf6cf
Merge pull request #690 from rex4539/typos
Fix typos
2023-01-02 12:15:41 -03:00
Michal Fousek 21b51a2011 Add Xcode scheme that builds all the targets
This is small improvement of lives for developers. Before this change if
developer wanted to test if change can be compiled then developer had to
go scheme by scheme and test compilation. This change introduces `All`
scheme which builds all the targets on one key stroke/mouse click.
2023-01-02 15:10:57 +01:00
Michal Fousek a40b311ccd [#556] Replace TransactionRepository.findAllSentTransactions with new method
Make minedHeight optional
2023-01-02 12:29:01 +01:00
Michal Fousek c3b13d8367 [#657] Fix start of SDKSynchronizer when sync is already in process
Previously `SDKSynchronizer` simply refused to start while the sync
process was in progress. That could lead to some troubles.
`CompactBlockProcessor` has already mechanism which can handle this
exact situation. So now `SDKSynchronizer` starts `CompactBlockProcessor`
even when there is sync in progress.
2023-01-02 10:24:02 +01:00
Dimitris Apostolou 6c3423181d
Fix typos 2022-12-31 12:50:16 +02:00
Francisco Gindre 90461c63f5
Merge pull request #689 from Chlup/657_merge_master
[#657] Merge branch 'master' into 657_download_change
2022-12-28 15:50:01 -03:00
Michal Fousek 6c54fa4111
Merge pull request #687 from Chlup/556_2_remove_findEncodedTransactionBy
[#556] Remove unused TransactionRepository.findEncodedTransactionBy method
2022-12-23 22:09:12 +01:00
Michal Fousek 45d6260688 [#556] Remove unused TransactionRepository.findEncodedTransactionBy method 2022-12-23 22:08:45 +01:00
Michal Fousek 526e8e87b8
Merge pull request #688 from Chlup/556_2_replace_findTransactions
[#556] Replace TransactionRepository.findTransactions methods with new methods
2022-12-23 22:06:22 +01:00
Michal Fousek 385b3ea397
Merge pull request #686 from Chlup/556_2_replace_findAllReceivedTransactions
[#556] Replace TransactionRepository.findAllReceivedTransactions with…
2022-12-23 22:05:47 +01:00
Michal Fousek 4b4416b1e1 Merge branch 'master' into 657_merge_master
- Changed how metrics are pushed when downloading and scanning blocks.
2022-12-22 15:35:11 +01:00
Michal Fousek 27188e7e80 [#556] Replace TransactionRepository.findTransactions methods with new methods 2022-12-22 10:35:11 +01:00
Michal Fousek 92256c108f [#556] Replace TransactionRepository.findAllReceivedTransactions with new method 2022-12-22 09:46:54 +01:00
Michal Fousek c7b0e0b5b6 Merge branch 'master' into 556_using_transactions_db_views 2022-12-22 09:41:21 +01:00
Michal Fousek 6b9b6d9aea
Merge pull request #684 from Chlup/556_fix_tests_change_api
[#556] Update API of TransactionRepository and make tests work
2022-12-21 13:53:22 +01:00
Lukas Korba 3c3b97ca42
[#663] Create a benchmarking section on the Demo App that can be automated (#681)
- SDKMetrics singleton for the measurement
- download, validate and scan blocks supported
- Sample app refactored to use SDKMetrics, connected to appropriate notifications and labels
- enhancement metric added
- total sync time metric added
- sample app extended to show summary time and operations summaries
- unit tests for the SDKMetrics
- doc for the SDKMetrics and our approach for the performance testing in general
- changelog update
2022-12-21 13:30:05 +01:00
Michal Fousek ef2d904260 [#556] Update API of TransactionRepository and make tests work
This change is prerequisity for future changes. API of
`TransactionRepository` is changed a bit. Now it's possible to filter
transaction by kind (all/sent/received) event when
`TransactionNG.Overview` structure is returned.

Tests are now fixed for new methods and new objects. For this mocked
database `darkside_data.db` had to be updated to the latest scheme used
by the Rust code.
2022-12-21 12:33:20 +01:00
Francisco Gindre 64c9df0fc0
Merge pull request #682 from Chlup/677_cantsync_after_wipe
[#677] Add support for wipe into SDK
2022-12-20 15:00:22 -03:00
Michal Fousek 6c5bf8de27 [#677] Add support for wipe into SDK
Closes #677

- Previously when keychain wanted to do wipe wallet had to do it on it's
  own. Which isn't good. Now wallet can simply call
  `synchronizer.wipe()` and it's done.
- This change brings support for wipe. `Synchronizer` has new method
  `wipe()` which takes care of everything. All the database connections
  are closed. Databases are removed. `InternalSyncProgress` is reset.

Change condition when wipe can run
2022-12-20 13:41:20 +01:00
Michal Fousek 8f42867eb1
Merge pull request #680 from Chlup/556_2_replace_findbyid
[#556] Replace TransactionRepository.findBy methods with new transaction methods
2022-12-19 16:04:53 +01:00