aboutsummaryrefslogtreecommitdiffstats
path: root/ui/lib/tx-helper.js
diff options
context:
space:
mode:
Diffstat (limited to 'ui/lib/tx-helper.js')
-rw-r--r--ui/lib/tx-helper.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/ui/lib/tx-helper.js b/ui/lib/tx-helper.js
new file mode 100644
index 000000000..49845b01a
--- /dev/null
+++ b/ui/lib/tx-helper.js
@@ -0,0 +1,8 @@
+const valuesFor = require('../app/util').valuesFor
+
+module.exports = function(unconfTxs, unconfMsgs) {
+ var txValues = valuesFor(unconfTxs)
+ var msgValues = valuesFor(unconfMsgs)
+ var allValues = txValues.concat(msgValues)
+ return allValues.sort(tx => tx.time)
+}