Skip to content

Commit 9e72529

Browse files
authored
feat: sort output by txid
1 parent a67a0e9 commit 9e72529

File tree

2 files changed

+22
-13
lines changed

2 files changed

+22
-13
lines changed

BDKSwiftExampleWallet/Resources/Localizable.xcstrings

Lines changed: 18 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
{
22
"sourceLanguage" : "en",
33
"strings" : {
4-
" High • %lld" : {
5-
6-
},
74
" High Priority - %lld" : {
85
"extractionState" : "stale",
96
"localizations" : {
@@ -20,9 +17,6 @@
2017
}
2118
}
2219
}
23-
},
24-
" Low • %lld" : {
25-
2620
},
2721
" Low Priority - %lld" : {
2822
"extractionState" : "stale",
@@ -57,9 +51,6 @@
5751
}
5852
}
5953
}
60-
},
61-
" Medium • %lld" : {
62-
6354
},
6455
" No Priority - %lld" : {
6556
"extractionState" : "stale",
@@ -77,9 +68,6 @@
7768
}
7869
}
7970
}
80-
},
81-
" None • %lld" : {
82-
8371
},
8472
"- %llu sats" : {
8573
"extractionState" : "stale",
@@ -176,6 +164,18 @@
176164
}
177165
}
178166
},
167+
"%@ • %lld" : {
168+
"comment" : "A label that describes the transaction fee and its corresponding value. The first argument is the fee title, which is a string describing the fee type (e.g., \"Low\", \"Medium\", \"High\"). The second argument is the fee value, which is a string representing the fee amount in satoshis.",
169+
"isCommentAutoGenerated" : true,
170+
"localizations" : {
171+
"en" : {
172+
"stringUnit" : {
173+
"state" : "new",
174+
"value" : "%1$@ • %2$lld"
175+
}
176+
}
177+
}
178+
},
179179
"%@ sats" : {
180180
"localizations" : {
181181
"fr" : {
@@ -1018,6 +1018,7 @@
10181018
}
10191019
},
10201020
"sat/vb" : {
1021+
"extractionState" : "stale",
10211022
"localizations" : {
10221023
"fr" : {
10231024
"stringUnit" : {
@@ -1077,6 +1078,7 @@
10771078

10781079
},
10791080
"Select Fee" : {
1081+
"extractionState" : "stale",
10801082
"localizations" : {
10811083
"fr" : {
10821084
"stringUnit" : {
@@ -1102,6 +1104,10 @@
11021104
}
11031105
}
11041106
},
1107+
"Selected: %lld sat/vb fee" : {
1108+
"comment" : "A footer label showing the currently selected transaction fee.",
1109+
"isCommentAutoGenerated" : true
1110+
},
11051111
"Send" : {
11061112
"localizations" : {
11071113
"fr" : {

BDKSwiftExampleWallet/View/Activity/LocalOutputListView.swift

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,10 @@ struct LocalOutputListView: View {
2929
.listRowInsets(EdgeInsets())
3030
.listRowSeparator(.hidden)
3131
} else {
32-
ForEach(localOutputs, id: \.outpoint) { output in
32+
let sortedOutputs = localOutputs.sorted { lhs, rhs in
33+
lhs.outpoint.txid.description < rhs.outpoint.txid.description
34+
}
35+
ForEach(sortedOutputs, id: \.outpoint) { output in
3336
LocalOutputItemView(
3437
isRedacted: false,
3538
output: output,

0 commit comments

Comments
 (0)