-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[#1475] Adopt transaction data requests
- RustBackend extended for the new 2 rust methods 'transactionDataRequests' and 'setTransactionStatus' - lightwalletservice extended to add a new method 'getTaddressTxids' - Enhance action has been refactored to handle transactionDataRequests [#1475] Adopt transaction data requests - fixes [#1475] Adopt transaction data requests - Error codes for specific rust and service errors defined - Fix for the txId [#1475] Adopt transaction data requests - Checkpoints added - Code cleanup [#1475] Adopt transaction data requests - bugfixes in the ffi [#1475] Adopt transaction data requests - FFI with fixes [#1475] Adopt transaction data requests - Another FFI update with fixes, this time the final [#1475] Adopt transaction data requests - Fix for the not recognized state of the transaction for FetchTransaction(txId:) [#1475] Adopt transaction data requests - Code cleaned up and polished [#1475] Adopt transaction data requests - Changelog updated [#1475] Adopt transaction data requests - DemoApp settings reverted
- Loading branch information
1 parent
a3e15f0
commit 35c31a4
Showing
35 changed files
with
449 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26 changes: 26 additions & 0 deletions
26
Sources/ZcashLightClientKit/Model/TransactionDataRequest.swift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
// | ||
// TransactionDataRequest.swift | ||
// | ||
// | ||
// Created by Lukáš Korba on 08-15-2024. | ||
// | ||
|
||
import Foundation | ||
|
||
struct SpendsFromAddress: Equatable { | ||
let address: String | ||
let blockRangeStart: UInt32 | ||
let blockRangeEnd: Int64 | ||
} | ||
|
||
enum TransactionDataRequest: Equatable { | ||
case getStatus([UInt8]) | ||
case enhancement([UInt8]) | ||
case spendsFromAddress(SpendsFromAddress) | ||
} | ||
|
||
enum TransactionStatus: Equatable { | ||
case txidNotRecognized | ||
case notInMainChain | ||
case mined(BlockHeight) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 8 additions & 0 deletions
8
Sources/ZcashLightClientKit/Resources/checkpoints/mainnet/2562500.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{ | ||
"network": "main", | ||
"height": "2562500", | ||
"hash": "0000000001c0df88bddeaf43751e3372c0ef8bc367d530686cae28997ddf7c01", | ||
"time": 1720007743, | ||
"saplingTree": "01ecd49d8483d7506316eafd26dccd90c825ccf227a3d85aa369d8503d4020b51c001f01735e5e2ceec49fefd01d6384b550612dc95de14244e6189ae38dc347bb643c620001aa7364947a2c025c3c9a7e3b8b6df69dd3abf49a7ea5fc608f5dd3ae8d13b35101136827bc5bc212f513979f0bfd8f4903a53abcb480ee8c12fba8cd6f93246c6501664e69f8c163e6b6e760f77704402dba169eae51e1cb12c19dd88693c6d48764000001c65e700bee3337938031ed5fd369f58300db4824ceb0a581db032f56d769d06f014cc5db5bb4a981cb133330b004496bc06459b07ac147fefe85647ea62048a05700011b0a8a46c6af73471be28cb8883c3e598de138726017dbac884e66badf7aff5a019e38bfb9d2e5f571397fc8a1f97ae6307e9f908740f806d05d08f8e089ec663c000001cdfe2a600d8672055d7aa8fb49484326362e8cf91225c95874110ce4852331170139f4db89ea9c70bec114669298893398d5cbb526af3e27fe826f7f5a9294674e017f744067a47ada432e380f8bd4835c1e7c461dde6d4569a4379673491e33540a01d1b36bbba8e6e1be8f09baf2b829bafc4ccd89ad25fb730d2b8a995b60fc3a6701d8ccea507421a590ed38116b834189cdc22421b4764179fa4e364803dfa66d56018cf6f5034a55fed59d1d832620916a43c756d2379e50ef9440fc4c3e7a29aa2300011619f99023a69bb647eab2d2aa1a73c3673c74bb033c3c4930eacda19e6fd93b0000000160272b134ca494b602137d89e528c751c06d3ef4a87a45f33af343c15060cc1e0000000000", | ||
"orchardTree": "011c142041aab9c2c26dae0840ef30fddf54e98bc0dbe9b6b7365e93377094230101d458c93a33379d22639c8eea7ea0559d77f19012f2b5622b72537ceea8dec2171f017e8174987aec32ff6b4d8020868384cf50258cc583a8f79c55e2368aa09bf6100001bbcfe25a7ddde2ba4aab8ea76742e627642e57f1c38fa22969d90dc28ef28622000001476fde36e8173fc6c1e060a0eadbb886b85355ed3c6cbd96bc4d2b6b36d37038000135c64a501430280fe1229092489b00fd19e3c5ca50db1d439cdf85db61cdd009018e495734e0a3c74b5d428c7e30d7f4b53ca39d9dc21f5c30159264927c27470d0001c435d392d35c9387e1c95726d8c43265d9bdbc87f28be696a7c7436b28bef40d0001c6863eedb51a0fecacb4b34876e2baa848121debfb8182e28073319eb8c8b93c014a25173fb726fea7e30f7be206b2154e91599fb43dcb2d99584cd897a7283f3f014085ca103411cf5d663ab76f084f16ff2b1080a5362c23b613e863b2c0749014012c8e24249acb30263d489e042527a751ab20eefdd6f28d6345d904d76e419e0300000160040850b766b126a2b4843fcdfdffa5d5cab3f53bc860a3bef68958b5f066170001cc2dcaa338b312112db04b435a706d63244dd435238f0aa1e9e1598d35470810012dcc4273c8a0ed2337ecf7879380a07e7d427c7f9d82e538002bd1442978402c01daf63debf5b40df902dae98dadc029f281474d190cddecef1b10653248a234150001e2bca6a8d987d668defba89dc082196a922634ed88e065c669e526bb8815ee1b000000000000" | ||
} |
Oops, something went wrong.