aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHsuan Lee <boczeratul@gmail.com>2019-04-17 14:49:31 +0800
committerHsuan Lee <boczeratul@gmail.com>2019-04-17 14:52:16 +0800
commit04882c9efc262f2efe1b454d3ddb1025cb817a8e (patch)
treed18e5fddfdec35dff6d18e8de1706d657afbf330
parent938853b5ac9bebe7bd121a119e185993dd23452d (diff)
downloaddexon-wallet-04882c9efc262f2efe1b454d3ddb1025cb817a8e.tar.gz
dexon-wallet-04882c9efc262f2efe1b454d3ddb1025cb817a8e.tar.zst
dexon-wallet-04882c9efc262f2efe1b454d3ddb1025cb817a8e.zip
Update mainnet explorer
-rw-r--r--app/manifest.json5
-rw-r--r--notices/archive/notice_0.md2
-rw-r--r--ui/app/components/token-cell.js2
-rw-r--r--ui/app/components/transaction-activity-log/transaction-activity-log.component.js2
-rw-r--r--ui/app/components/transaction-list-item-details/transaction-list-item-details.component.js2
-rw-r--r--ui/lib/account-link.js4
-rw-r--r--ui/lib/etherscan-prefix-for-network.js2
-rw-r--r--ui/lib/tx-link.js5
8 files changed, 15 insertions, 9 deletions
diff --git a/app/manifest.json b/app/manifest.json
index baecdd39..cdf88702 100644
--- a/app/manifest.json
+++ b/app/manifest.json
@@ -77,7 +77,10 @@
"externally_connectable": {
"matches": [
"https://*.dexscan.org/*",
- "https://*.dexscan.app/*"
+ "https://dexscan.app/*",
+ "https://*.dexscan.app/*",
+ "https://dexonscan.app/*",
+ "https://*.dexonscan.app/*"
],
"ids": [
"*"
diff --git a/notices/archive/notice_0.md b/notices/archive/notice_0.md
index 825b5ddc..44fb01f0 100644
--- a/notices/archive/notice_0.md
+++ b/notices/archive/notice_0.md
@@ -6,7 +6,7 @@ _Our Terms of Use have been updated as of September 5, 2016_
## 1. Acceptance of Terms ##
-DekuSan provides a platform for managing DEXON (or "DXN") accounts, and allowing ordinary websites to interact with the DEXON blockchain, while keeping the user in control over what transactions they approve, through our website located at[ ](http://testnet.dexscan.app)[https://testnet.dexscan.app/](https://testnet.dexscan.app/) and browser plugin (the "Site") — which includes text, images, audio, code and other materials (collectively, the “Content”) and all of the features, and services provided. The Site, and any other features, tools, materials, or other services offered from time to time by DekuSan are referred to here as the “Service.” Please read these Terms of Use (the “Terms” or “Terms of Use”) carefully before using the Service. By using or otherwise accessing the Services, or clicking to accept or agree to these Terms where that option is made available, you (1) accept and agree to these Terms (2) consent to the collection, use, disclosure and other handling of information as described in our Privacy Policy and (3) any additional terms, rules and conditions of participation issued by DekuSan from time to time. If you do not agree to the Terms, then you may not access or use the Content or Services.
+DekuSan provides a platform for managing DEXON (or "DXN") accounts, and allowing ordinary websites to interact with the DEXON blockchain, while keeping the user in control over what transactions they approve, through our website located at[ ](http://dexonscan.app)[https://dexonscan.app/](https://dexonscan.app/) and browser plugin (the "Site") — which includes text, images, audio, code and other materials (collectively, the “Content”) and all of the features, and services provided. The Site, and any other features, tools, materials, or other services offered from time to time by DekuSan are referred to here as the “Service.” Please read these Terms of Use (the “Terms” or “Terms of Use”) carefully before using the Service. By using or otherwise accessing the Services, or clicking to accept or agree to these Terms where that option is made available, you (1) accept and agree to these Terms (2) consent to the collection, use, disclosure and other handling of information as described in our Privacy Policy and (3) any additional terms, rules and conditions of participation issued by DekuSan from time to time. If you do not agree to the Terms, then you may not access or use the Content or Services.
## 2. Modification of Terms of Use ##
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
}