Skip to content

Commit 0c09c2f

Browse files
authored
readme: update implemented section
1 parent 890a042 commit 0c09c2f

File tree

5 files changed

+32
-42
lines changed

5 files changed

+32
-42
lines changed

BDKSwiftExampleWallet/Extensions/BDK+Extensions/CanonicalTx+Extensions.swift

+8-8
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@
88
import BitcoinDevKit
99
import Foundation
1010

11-
#if DEBUG
12-
extension CanonicalTx {
13-
static var mock = Self(
14-
transaction: .mock!,
15-
chainPosition: .confirmed(height: UInt32(1_127_972), timestamp: UInt64(1_716_927_886))
16-
)
17-
}
18-
#endif
11+
//#if DEBUG
12+
extension CanonicalTx {
13+
static var mock = Self(
14+
transaction: .mock!,
15+
chainPosition: .confirmed(height: UInt32(1_127_972), timestamp: UInt64(1_716_927_886))
16+
)
17+
}
18+
//#endif

BDKSwiftExampleWallet/Extensions/BDK+Extensions/Transaction+Extensions.swift

+7-7
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@ extension Transaction {
1313
}
1414
}
1515

16-
#if DEBUG
17-
extension Transaction {
18-
static var mock = try? Transaction(
19-
transactionBytes: String.mockTransactionHex.hexStringToByteArray()
20-
)
21-
}
22-
#endif
16+
//#if DEBUG
17+
extension Transaction {
18+
static var mock = try? Transaction(
19+
transactionBytes: String.mockTransactionHex.hexStringToByteArray()
20+
)
21+
}
22+
//#endif

BDKSwiftExampleWallet/Extensions/String+Extensions.swift

+6-6
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,9 @@ extension String {
3737
}
3838
}
3939

40-
#if DEBUG
41-
extension String {
42-
static var mockTransactionHex =
43-
"01000000000101604350f234b3b4b5fde5513ff89d222e91cabf452182ba0b8d076cf08a3813a30100000000ffffffff0240420f0000000000225120c8b7757fff5ceb41908a43bfadf749afbb97b50ece0896e88f2cd14f90844d7b8df6731d00000000225120ff38f143374565d74648006f8aabef9dad548344549d8516177ff613e26f7d360140298823f597d3cb7f4934a5ef0b1814e2ca8caa9f9da0a0b59a73922d98f83ec62587add48e3fa0d0b7cf704b2fce0277e2a70f9aed8a41f2823b810b92e0421d00000000"
44-
}
45-
#endif
40+
//#if DEBUG
41+
extension String {
42+
static var mockTransactionHex =
43+
"01000000000101604350f234b3b4b5fde5513ff89d222e91cabf452182ba0b8d076cf08a3813a30100000000ffffffff0240420f0000000000225120c8b7757fff5ceb41908a43bfadf749afbb97b50ece0896e88f2cd14f90844d7b8df6731d00000000225120ff38f143374565d74648006f8aabef9dad548344549d8516177ff613e26f7d360140298823f597d3cb7f4934a5ef0b1814e2ca8caa9f9da0a0b59a73922d98f83ec62587add48e3fa0d0b7cf704b2fce0277e2a70f9aed8a41f2823b810b92e0421d00000000"
44+
}
45+
//#endif

BDKSwiftExampleWallet/Model/BackupInfo.swift

+10-10
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,13 @@ struct BackupInfo: Codable, Equatable {
2424
}
2525
}
2626

27-
#if DEBUG
28-
extension BackupInfo {
29-
static var mock = Self(
30-
mnemonic:
31-
"space echo position wrist orient erupt relief museum myself grain wisdom tumble",
32-
descriptor: "",
33-
changeDescriptor: ""
34-
)
35-
}
36-
#endif
27+
//#if DEBUG
28+
extension BackupInfo {
29+
static var mock = Self(
30+
mnemonic:
31+
"space echo position wrist orient erupt relief museum myself grain wisdom tumble",
32+
descriptor: "",
33+
changeDescriptor: ""
34+
)
35+
}
36+
//#endif

README.md

+1-11
Original file line numberDiff line numberDiff line change
@@ -16,17 +16,7 @@ Supports single key HD wallets with BIP86 derivation paths.
1616

1717
### Implemented
1818

19-
- [x] Create Wallet `Wallet(descriptor: changeDescriptor: network: databaseConfig:)`
20-
21-
- [x] Get Address `getAddress`
22-
23-
- [x] Get Balance `getBalance`
24-
25-
- [x] List Transactions `listTransactions`
26-
27-
- [x] Send `send`
28-
29-
- [x] Sync `sync`
19+
Create a wallet, send and receive.
3020

3121
## Swift Packages
3222

0 commit comments

Comments
 (0)