-
Notifications
You must be signed in to change notification settings - Fork 35
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
- Loading branch information
1 parent
a3e15f0
commit 4dc0b2e
Showing
36 changed files
with
451 additions
and
41 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
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
Oops, something went wrong.