diff options
author | Hsuan Lee <boczeratul@gmail.com> | 2019-04-17 14:49:31 +0800 |
---|---|---|
committer | Hsuan Lee <boczeratul@gmail.com> | 2019-04-17 14:52:16 +0800 |
commit | 04882c9efc262f2efe1b454d3ddb1025cb817a8e (patch) | |
tree | d18e5fddfdec35dff6d18e8de1706d657afbf330 /ui | |
parent | 938853b5ac9bebe7bd121a119e185993dd23452d (diff) | |
download | dexon-wallet-04882c9efc262f2efe1b454d3ddb1025cb817a8e.tar.gz dexon-wallet-04882c9efc262f2efe1b454d3ddb1025cb817a8e.tar.zst dexon-wallet-04882c9efc262f2efe1b454d3ddb1025cb817a8e.zip |
Update mainnet explorer
Diffstat (limited to 'ui')
-rw-r--r-- | ui/app/components/token-cell.js | 2 | ||||
-rw-r--r-- | ui/app/components/transaction-activity-log/transaction-activity-log.component.js | 2 | ||||
-rw-r--r-- | ui/app/components/transaction-list-item-details/transaction-list-item-details.component.js | 2 | ||||
-rw-r--r-- | ui/lib/account-link.js | 4 | ||||
-rw-r--r-- | ui/lib/etherscan-prefix-for-network.js | 2 | ||||
-rw-r--r-- | ui/lib/tx-link.js | 5 |
6 files changed, 10 insertions, 7 deletions
diff --git a/ui/app/components/token-cell.js b/ui/app/components/token-cell.js index de34f994..8602c9e4 100644 --- a/ui/app/components/token-cell.js +++ b/ui/app/components/token-cell.js @@ -156,7 +156,7 @@ function navigateTo (url) { function etherscanLinkFor (tokenAddress, address, network) { const prefix = prefixForNetwork(network) - return `https://${prefix}dexscan.app/address/${tokenAddress}?a=${address}` + return `https://${prefix}dexonscan.app/address/${tokenAddress}?a=${address}` } function tokenFactoryFor (tokenAddress) { diff --git a/ui/app/components/transaction-activity-log/transaction-activity-log.component.js b/ui/app/components/transaction-activity-log/transaction-activity-log.component.js index 4cc7e905..04b8ab2f 100644 --- a/ui/app/components/transaction-activity-log/transaction-activity-log.component.js +++ b/ui/app/components/transaction-activity-log/transaction-activity-log.component.js @@ -29,7 +29,7 @@ export default class TransactionActivityLog extends PureComponent { const { metamaskNetworkId } = primaryTransaction const prefix = prefixForNetwork(metamaskNetworkId) - const etherscanUrl = `https://${prefix}dexscan.app/transaction/${hash}` + const etherscanUrl = `https://${prefix}dexonscan.app/transaction/${hash}` global.platform.openWindow({ url: etherscanUrl }) } diff --git a/ui/app/components/transaction-list-item-details/transaction-list-item-details.component.js b/ui/app/components/transaction-list-item-details/transaction-list-item-details.component.js index e4e50245..2eac7966 100644 --- a/ui/app/components/transaction-list-item-details/transaction-list-item-details.component.js +++ b/ui/app/components/transaction-list-item-details/transaction-list-item-details.component.js @@ -26,7 +26,7 @@ export default class TransactionListItemDetails extends PureComponent { const { hash, dekusanNetworkId } = primaryTransaction const prefix = prefixForNetwork(dekusanNetworkId) - const etherscanUrl = `https://${prefix}dexscan.app/transaction/${hash}` + const etherscanUrl = `https://${prefix}dexonscan.app/transaction/${hash}` global.platform.openWindow({ url: etherscanUrl }) } diff --git a/ui/lib/account-link.js b/ui/lib/account-link.js index df875abf..a87e8c56 100644 --- a/ui/lib/account-link.js +++ b/ui/lib/account-link.js @@ -4,12 +4,12 @@ module.exports = function (address, network) { switch (net) { case 1: // main net case 237: // main net - link = `https://dexscan.app/address/${address}` + link = `https://dexonscan.app/address/${address}` break case 2: // test net case 238: // test net default: - link = `https://testnet.dexscan.app/address/${address}` + link = `https://testnet.dexonscan.app/address/${address}` break } diff --git a/ui/lib/etherscan-prefix-for-network.js b/ui/lib/etherscan-prefix-for-network.js index 036166ac..eeb38c43 100644 --- a/ui/lib/etherscan-prefix-for-network.js +++ b/ui/lib/etherscan-prefix-for-network.js @@ -3,9 +3,11 @@ module.exports = function (network) { let prefix switch (net) { case 1: // main net + case 237: // main net prefix = '' break case 2: // test net + case 238: // test net prefix = 'testnet.' break case 3: // ropsten test net diff --git a/ui/lib/tx-link.js b/ui/lib/tx-link.js index 6a556a36..7d5d5432 100644 --- a/ui/lib/tx-link.js +++ b/ui/lib/tx-link.js @@ -3,12 +3,13 @@ module.exports = function (txHash, network) { let link switch (net) { case 1: // main net - link = `https://dexscan.app/transaction/${txHash}` + case 237: // main net + link = `https://dexonscan.app/transaction/${txHash}` break case 2: // test net case 238: // test net default: - link = `https://testnet.dexscan.app/transaction/${txHash}` + link = `https://testnet.dexonscan.app/transaction/${txHash}` break } |