File tree Expand file tree Collapse file tree 3 files changed +9
-16
lines changed Expand file tree Collapse file tree 3 files changed +9
-16
lines changed Original file line number Diff line number Diff line change @@ -307,17 +307,7 @@ dictionary LocalOutput {
307
307
308
308
typedef dictionary TxOut;
309
309
310
- /// Represents the observed position of some chain data.
311
- [Enum]
312
- interface ChainPosition {
313
- /// The chain data is confirmed as it is anchored in the best chain by `A`.
314
- Confirmed(ConfirmationBlockTime confirmation_block_time, string? transitively);
315
-
316
- /// The chain data is not confirmed and last seen in the mempool at this timestamp.
317
- Unconfirmed(u64? timestamp);
318
- };
319
-
320
- typedef dictionary ConfirmationBlockTime;
310
+ typedef enum ChainPosition;
321
311
322
312
dictionary CanonicalTx {
323
313
Transaction transaction;
Original file line number Diff line number Diff line change @@ -47,7 +47,6 @@ use crate::types::AddressInfo;
47
47
use crate :: types:: CanonicalTx ;
48
48
use crate :: types:: ChainPosition ;
49
49
use crate :: types:: Condition ;
50
- use crate :: types:: ConfirmationBlockTime ;
51
50
use crate :: types:: FullScanRequest ;
52
51
use crate :: types:: FullScanRequestBuilder ;
53
52
use crate :: types:: FullScanScriptInspector ;
Original file line number Diff line number Diff line change @@ -42,15 +42,19 @@ pub enum KeychainKind {
42
42
Internal = 1 ,
43
43
}
44
44
45
- #[ derive( Debug ) ]
45
+ /// Represents the observed position of some chain data.
46
+ #[ derive( Debug , uniffi:: Enum ) ]
46
47
pub enum ChainPosition {
48
+ /// The chain data is confirmed as it is anchored in the best chain by `A`.
47
49
Confirmed {
48
50
confirmation_block_time : ConfirmationBlockTime ,
51
+ /// A child transaction that has been confirmed. Due to incomplete information,
52
+ /// it is only known that this transaction is confirmed at a chain height less than
53
+ /// or equal to this child TXID.
49
54
transitively : Option < String > ,
50
55
} ,
51
- Unconfirmed {
52
- timestamp : Option < u64 > ,
53
- } ,
56
+ /// The transaction was last seen in the mempool at this timestamp.
57
+ Unconfirmed { timestamp : Option < u64 > } ,
54
58
}
55
59
56
60
impl From < BdkChainPosition < BdkConfirmationBlockTime > > for ChainPosition {
You can’t perform that action at this time.
0 commit comments