diff options
author | Hsuan Lee <hsuan@cobinhood.com> | 2018-12-05 17:14:44 +0800 |
---|---|---|
committer | Hsuan Lee <hsuan@cobinhood.com> | 2018-12-10 18:53:27 +0800 |
commit | e8442db6f38afd120d299437709524d3adb5a70e (patch) | |
tree | 0904cd924588c84f8f5248491cf9197baddcf36f | |
parent | 57b8b8520e2f0dba53e1850169acb5a510ef9f67 (diff) | |
download | dexon-wallet-e8442db6f38afd120d299437709524d3adb5a70e.tar.gz dexon-wallet-e8442db6f38afd120d299437709524d3adb5a70e.tar.zst dexon-wallet-e8442db6f38afd120d299437709524d3adb5a70e.zip |
Update DEXSCAN domain
-rw-r--r-- | app/manifest.json | 3 | ||||
-rw-r--r-- | app/scripts/controllers/network/enums.js | 2 | ||||
-rw-r--r-- | app/scripts/lib/resolver.js | 2 | ||||
-rw-r--r-- | ui/app/components/token-cell.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/tx-link.js | 4 |
7 files changed, 10 insertions, 9 deletions
diff --git a/app/manifest.json b/app/manifest.json index 6ea4c3b3..51c0d505 100644 --- a/app/manifest.json +++ b/app/manifest.json @@ -76,7 +76,8 @@ ], "externally_connectable": { "matches": [ - "https://*.dexscan.org/*" + "https://*.dexscan.org/*", + "https://*.dexscan.app/*" ], "ids": [ "*" diff --git a/app/scripts/controllers/network/enums.js b/app/scripts/controllers/network/enums.js index 7ac40ca7..136eab7b 100644 --- a/app/scripts/controllers/network/enums.js +++ b/app/scripts/controllers/network/enums.js @@ -17,7 +17,7 @@ const KOVAN_DISPLAY_NAME = 'Kovan' const MAINNET_DISPLAY_NAME = 'Main DEXON Network' const TESTNET_DISPLAY_NAME = 'DEXON Test Network' -const TESTNET_RPC_URL = 'https://api-testnet.dexscan.org/v1/network/rpc' +const TESTNET_RPC_URL = 'https://api-testnet.dexscan.app/v1/network/rpc' module.exports = { ROPSTEN, diff --git a/app/scripts/lib/resolver.js b/app/scripts/lib/resolver.js index 05399e72..881006b2 100644 --- a/app/scripts/lib/resolver.js +++ b/app/scripts/lib/resolver.js @@ -41,7 +41,7 @@ function getProvider (type) { case 'mainnet': return 'https://mainnet.infura.io/' case 'testnet': - return 'https://api-testnet.dexscan.org/v1/network/rpc' + return 'https://api-testnet.dexscan.app/v1/network/rpc' default: return 'http://localhost:8545/' } diff --git a/ui/app/components/token-cell.js b/ui/app/components/token-cell.js index b044d95c..de34f994 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.org/address/${tokenAddress}?a=${address}` + return `https://${prefix}dexscan.app/address/${tokenAddress}?a=${address}` } function tokenFactoryFor (tokenAddress) { 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 69db3f9f..e4e50245 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.org/transaction/${hash}` + const etherscanUrl = `https://${prefix}dexscan.app/transaction/${hash}` global.platform.openWindow({ url: etherscanUrl }) } diff --git a/ui/lib/account-link.js b/ui/lib/account-link.js index 74a068cf..df875abf 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.org/address/${address}` + link = `https://dexscan.app/address/${address}` break case 2: // test net case 238: // test net default: - link = `https://testnet.dexscan.org/address/${address}` + link = `https://testnet.dexscan.app/address/${address}` break } diff --git a/ui/lib/tx-link.js b/ui/lib/tx-link.js index f4d2ede3..6a556a36 100644 --- a/ui/lib/tx-link.js +++ b/ui/lib/tx-link.js @@ -3,12 +3,12 @@ module.exports = function (txHash, network) { let link switch (net) { case 1: // main net - link = `https://dexscan.org/transaction/${txHash}` + link = `https://dexscan.app/transaction/${txHash}` break case 2: // test net case 238: // test net default: - link = `https://testnet.dexscan.org/transaction/${txHash}` + link = `https://testnet.dexscan.app/transaction/${txHash}` break } |