diff options
author | Dan Finlay <dan@danfinlay.com> | 2017-10-14 23:23:44 +0800 |
---|---|---|
committer | Dan Finlay <dan@danfinlay.com> | 2017-10-14 23:23:44 +0800 |
commit | 06094c914b324e3debf33af374bbaa280d6dc6ef (patch) | |
tree | b40331c2dcd8cb3c53056f82a067dee07cbb8c48 /ui/lib | |
parent | 701887bb19171b1cef0f6d5f6359d8cf39d80a01 (diff) | |
download | tangerine-wallet-browser-06094c914b324e3debf33af374bbaa280d6dc6ef.tar tangerine-wallet-browser-06094c914b324e3debf33af374bbaa280d6dc6ef.tar.gz tangerine-wallet-browser-06094c914b324e3debf33af374bbaa280d6dc6ef.tar.bz2 tangerine-wallet-browser-06094c914b324e3debf33af374bbaa280d6dc6ef.tar.lz tangerine-wallet-browser-06094c914b324e3debf33af374bbaa280d6dc6ef.tar.xz tangerine-wallet-browser-06094c914b324e3debf33af374bbaa280d6dc6ef.tar.zst tangerine-wallet-browser-06094c914b324e3debf33af374bbaa280d6dc6ef.zip |
Move etherscan link logic into module
Diffstat (limited to 'ui/lib')
-rw-r--r-- | ui/lib/account-link.js | 26 | ||||
-rw-r--r-- | ui/lib/explorer-link.js | 6 |
2 files changed, 0 insertions, 32 deletions
diff --git a/ui/lib/account-link.js b/ui/lib/account-link.js deleted file mode 100644 index 037d990fa..000000000 --- a/ui/lib/account-link.js +++ /dev/null @@ -1,26 +0,0 @@ -module.exports = function (address, network) { - const net = parseInt(network) - let link - switch (net) { - case 1: // main net - link = `https://etherscan.io/address/${address}` - break - case 2: // morden test net - link = `https://morden.etherscan.io/address/${address}` - break - case 3: // ropsten test net - link = `https://ropsten.etherscan.io/address/${address}` - break - case 4: // rinkeby test net - link = `https://rinkeby.etherscan.io/address/${address}` - break - case 42: // kovan test net - link = `https://kovan.etherscan.io/address/${address}` - break - default: - link = '' - break - } - - return link -} diff --git a/ui/lib/explorer-link.js b/ui/lib/explorer-link.js deleted file mode 100644 index 3b82ecd5f..000000000 --- a/ui/lib/explorer-link.js +++ /dev/null @@ -1,6 +0,0 @@ -const prefixForNetwork = require('./etherscan-prefix-for-network') - -module.exports = function (hash, network) { - const prefix = prefixForNetwork(network) - return `http://${prefix}etherscan.io/tx/${hash}` -} |