File tree Expand file tree Collapse file tree 5 files changed +16
-16
lines changed
BDKSwiftExampleWallet.xcodeproj
Extensions/BDK+Extensions Expand file tree Collapse file tree 5 files changed +16
-16
lines changed Original file line number Diff line number Diff line change 1036
1036
repositoryURL = "https://github.com/bitcoindevkit/bdk-swift";
1037
1037
requirement = {
1038
1038
kind = exactVersion;
1039
- version = 1.1 .0;
1039
+ version = 1.2 .0;
1040
1040
};
1041
1041
};
1042
1042
AEAF83B42B7BD4D10019B23B /* XCRemoteSwiftPackageReference "CodeScanner" */ = {
Original file line number Diff line number Diff line change @@ -19,12 +19,12 @@ extension Balance: Equatable {
19
19
#if DEBUG
20
20
extension Balance {
21
21
static var mock = Self (
22
- immature: Amount . fromSat ( fromSat : UInt64 ( 100 ) ) ,
23
- trustedPending: Amount . fromSat ( fromSat : UInt64 ( 200 ) ) ,
24
- untrustedPending: Amount . fromSat ( fromSat : UInt64 ( 300 ) ) ,
25
- confirmed: Amount . fromSat ( fromSat : UInt64 ( 21000 ) ) ,
26
- trustedSpendable: Amount . fromSat ( fromSat : UInt64 ( 1_000_000 ) ) ,
27
- total: Amount . fromSat ( fromSat : UInt64 ( 615_000_000 ) )
22
+ immature: Amount . fromSat ( satoshi : UInt64 ( 100 ) ) ,
23
+ trustedPending: Amount . fromSat ( satoshi : UInt64 ( 200 ) ) ,
24
+ untrustedPending: Amount . fromSat ( satoshi : UInt64 ( 300 ) ) ,
25
+ confirmed: Amount . fromSat ( satoshi : UInt64 ( 21000 ) ) ,
26
+ trustedSpendable: Amount . fromSat ( satoshi : UInt64 ( 1_000_000 ) ) ,
27
+ total: Amount . fromSat ( satoshi : UInt64 ( 615_000_000 ) )
28
28
)
29
29
}
30
30
#endif
Original file line number Diff line number Diff line change @@ -11,8 +11,8 @@ import Foundation
11
11
#if DEBUG
12
12
extension SentAndReceivedValues {
13
13
static var mock = Self (
14
- sent: Amount . fromSat ( fromSat : UInt64 ( 0 ) ) ,
15
- received: Amount . fromSat ( fromSat : UInt64 ( 1_000_000 ) )
14
+ sent: Amount . fromSat ( satoshi : UInt64 ( 0 ) ) ,
15
+ received: Amount . fromSat ( satoshi : UInt64 ( 1_000_000 ) )
16
16
)
17
17
}
18
18
#endif
Original file line number Diff line number Diff line change @@ -333,9 +333,9 @@ private class BDKService {
333
333
let txBuilder = try TxBuilder ( )
334
334
. addRecipient (
335
335
script: script,
336
- amount: Amount . fromSat ( fromSat : amount)
336
+ amount: Amount . fromSat ( satoshi : amount)
337
337
)
338
- . feeRate ( feeRate: FeeRate . fromSatPerVb ( satPerVb : feeRate) )
338
+ . feeRate ( feeRate: FeeRate . fromSatPerVb ( satVb : feeRate) )
339
339
. finish ( wallet: wallet)
340
340
return txBuilder
341
341
}
@@ -527,12 +527,12 @@ extension BDKClient {
527
527
fullScanWithInspector: { _ in } ,
528
528
getAddress: { " tb1pd8jmenqpe7rz2mavfdx7uc8pj7vskxv4rl6avxlqsw2u8u7d4gfs97durt " } ,
529
529
send: { _, _, _ in } ,
530
- calculateFee: { _ in Amount . fromSat ( fromSat : UInt64 ( 615 ) ) } ,
530
+ calculateFee: { _ in Amount . fromSat ( satoshi : UInt64 ( 615 ) ) } ,
531
531
calculateFeeRate: { _ in return UInt64 ( 6.15 ) } ,
532
532
sentAndReceived: { _ in
533
533
return SentAndReceivedValues (
534
- sent: Amount . fromSat ( fromSat : UInt64 ( 20000 ) ) ,
535
- received: Amount . fromSat ( fromSat : UInt64 ( 210 ) )
534
+ sent: Amount . fromSat ( satoshi : UInt64 ( 20000 ) ) ,
535
+ received: Amount . fromSat ( satoshi : UInt64 ( 210 ) )
536
536
)
537
537
} ,
538
538
buildTransaction: { _, _, _ in
Original file line number Diff line number Diff line change @@ -22,8 +22,8 @@ struct TransactionListView: View {
22
22
canonicalTx: . mock,
23
23
isRedacted: true ,
24
24
sentAndReceivedValues: . init(
25
- sent: Amount . fromSat ( fromSat : UInt64 ( 0 ) ) ,
26
- received: Amount . fromSat ( fromSat : UInt64 ( 0 ) )
25
+ sent: Amount . fromSat ( satoshi : UInt64 ( 0 ) ) ,
26
+ received: Amount . fromSat ( satoshi : UInt64 ( 0 ) )
27
27
)
28
28
)
29
29
. listRowInsets ( EdgeInsets ( ) )
You can’t perform that action at this time.
0 commit comments