diff options
author | Csaba Solya <csaba.solya@gmail.com> | 2018-07-20 19:20:40 +0800 |
---|---|---|
committer | Csaba Solya <csaba.solya@gmail.com> | 2018-07-20 19:20:40 +0800 |
commit | a3822b4680a295848f900616e3e154a1e1003a54 (patch) | |
tree | 56f6b102b3247534c5c67ac6f35cb3c91b02b3ca /app/scripts/controllers/transactions | |
parent | 6921f94bfe11e618dbe586e608a5b6aeaa8feadf (diff) | |
download | tangerine-wallet-browser-a3822b4680a295848f900616e3e154a1e1003a54.tar.gz tangerine-wallet-browser-a3822b4680a295848f900616e3e154a1e1003a54.tar.zst tangerine-wallet-browser-a3822b4680a295848f900616e3e154a1e1003a54.zip |
add notifications
Diffstat (limited to 'app/scripts/controllers/transactions')
-rw-r--r-- | app/scripts/controllers/transactions/lib/transaction-notification-manager.js | 27 | ||||
-rw-r--r-- | app/scripts/controllers/transactions/tx-state-manager.js | 3 |
2 files changed, 0 insertions, 30 deletions
diff --git a/app/scripts/controllers/transactions/lib/transaction-notification-manager.js b/app/scripts/controllers/transactions/lib/transaction-notification-manager.js deleted file mode 100644 index 6bdf40b62..000000000 --- a/app/scripts/controllers/transactions/lib/transaction-notification-manager.js +++ /dev/null @@ -1,27 +0,0 @@ -const extension = require('extensionizer') - -// Confirmed tx -// Transaction ${tx.nonce} confirmed! View on Etherscan - -// Failed tx -// Transaction ${tx.nonce} failed. (Maybe append tx.error.message) - -// Dropped tx -// A Transaction ${tx.nonce} was dropped, because another transaction with that number was successfully processed. - -function showConfirmedNotification (txMeta) { - extension.notifications.create({ - "type": "basic", - "title": "Confirmed transaction", - "iconUrl": extension.extension.getURL('../../../../images/icon-64.png'), - "message": JSON.stringify(txMeta) - }); -} - - -/** -@module -*/ -module.exports = { - showConfirmedNotification -}
\ No newline at end of file diff --git a/app/scripts/controllers/transactions/tx-state-manager.js b/app/scripts/controllers/transactions/tx-state-manager.js index 72da45913..28a18ca2e 100644 --- a/app/scripts/controllers/transactions/tx-state-manager.js +++ b/app/scripts/controllers/transactions/tx-state-manager.js @@ -5,7 +5,6 @@ const ethUtil = require('ethereumjs-util') const log = require('loglevel') const txStateHistoryHelper = require('./lib/tx-state-history-helper') const createId = require('../../lib/random-id') -const transactionNotificationManager = require('./lib/transaction-notification-manager') const { getFinalStates } = require('./lib/util') /** TransactionStateManager is responsible for the state of a transaction and @@ -333,8 +332,6 @@ class TransactionStateManager extends EventEmitter { */ setTxStatusConfirmed (txId) { this._setTxStatus(txId, 'confirmed') - const txMeta = this.getTx(txId) - transactionNotificationManager.showConfirmedNotification(txMeta) } /** |