aboutsummaryrefslogtreecommitdiffstats
path: root/ui/lib/tx-helper.js
diff options
context:
space:
mode:
authorDan Finlay <dan@danfinlay.com>2016-05-04 05:32:22 +0800
committerDan Finlay <dan@danfinlay.com>2016-05-04 05:32:22 +0800
commite6c4d63ccdaf93d8b74965d39661e80d774504d8 (patch)
tree28ba41a15fb93ac94f3ea1a8ff0dae637655119b /ui/lib/tx-helper.js
parentdcbf17af2d547ce676178bf78328d5c01135e31a (diff)
downloadtangerine-wallet-browser-e6c4d63ccdaf93d8b74965d39661e80d774504d8.tar
tangerine-wallet-browser-e6c4d63ccdaf93d8b74965d39661e80d774504d8.tar.gz
tangerine-wallet-browser-e6c4d63ccdaf93d8b74965d39661e80d774504d8.tar.bz2
tangerine-wallet-browser-e6c4d63ccdaf93d8b74965d39661e80d774504d8.tar.lz
tangerine-wallet-browser-e6c4d63ccdaf93d8b74965d39661e80d774504d8.tar.xz
tangerine-wallet-browser-e6c4d63ccdaf93d8b74965d39661e80d774504d8.tar.zst
tangerine-wallet-browser-e6c4d63ccdaf93d8b74965d39661e80d774504d8.zip
Add UI for Signing Messages
Calls to `eth.sign` are now transiently persisted in memory, and displayed in a chronological stack with pending transactions (which are still persisted to disk). This allows the user a method to sign/cancel transactions even if they miss the Chrome notification. Improved a lot of the view routing, to avoid cases where routes would show an empty account view, or transition to the accounts list when it shouldn't. Broke the transaction approval view into a couple components so messages and transactions could have their own templates.
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)
+}