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 10361036 repositoryURL = "https://github.com/bitcoindevkit/bdk-swift";
10371037 requirement = {
10381038 kind = exactVersion;
1039- version = 1.1 .0;
1039+ version = 1.2 .0;
10401040 };
10411041 };
10421042 AEAF83B42B7BD4D10019B23B /* XCRemoteSwiftPackageReference "CodeScanner" */ = {
Original file line number Diff line number Diff line change @@ -19,12 +19,12 @@ extension Balance: Equatable {
1919#if DEBUG
2020 extension Balance {
2121 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 ) )
2828 )
2929 }
3030#endif
Original file line number Diff line number Diff line change @@ -11,8 +11,8 @@ import Foundation
1111#if DEBUG
1212 extension SentAndReceivedValues {
1313 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 ) )
1616 )
1717 }
1818#endif
Original file line number Diff line number Diff line change @@ -333,9 +333,9 @@ private class BDKService {
333333 let txBuilder = try TxBuilder ( )
334334 . addRecipient (
335335 script: script,
336- amount: Amount . fromSat ( fromSat : amount)
336+ amount: Amount . fromSat ( satoshi : amount)
337337 )
338- . feeRate ( feeRate: FeeRate . fromSatPerVb ( satPerVb : feeRate) )
338+ . feeRate ( feeRate: FeeRate . fromSatPerVb ( satVb : feeRate) )
339339 . finish ( wallet: wallet)
340340 return txBuilder
341341 }
@@ -527,12 +527,12 @@ extension BDKClient {
527527 fullScanWithInspector: { _ in } ,
528528 getAddress: { " tb1pd8jmenqpe7rz2mavfdx7uc8pj7vskxv4rl6avxlqsw2u8u7d4gfs97durt " } ,
529529 send: { _, _, _ in } ,
530- calculateFee: { _ in Amount . fromSat ( fromSat : UInt64 ( 615 ) ) } ,
530+ calculateFee: { _ in Amount . fromSat ( satoshi : UInt64 ( 615 ) ) } ,
531531 calculateFeeRate: { _ in return UInt64 ( 6.15 ) } ,
532532 sentAndReceived: { _ in
533533 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 ) )
536536 )
537537 } ,
538538 buildTransaction: { _, _, _ in
Original file line number Diff line number Diff line change @@ -22,8 +22,8 @@ struct TransactionListView: View {
2222 canonicalTx: . mock,
2323 isRedacted: true ,
2424 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 ) )
2727 )
2828 )
2929 . listRowInsets ( EdgeInsets ( ) )
You can’t perform that action at this time.
0 commit comments