From 953bced312deabbfa28047f7b095e7fd82f130ae Mon Sep 17 00:00:00 2001 From: Danil Kovtonyuk Date: Sat, 21 Aug 2021 12:42:17 +1000 Subject: [PATCH] xDai --- components/Navbar.vue | 6 +-- components/Step.vue | 9 ++-- langs/en.json | 6 +-- networkConfig.js | 24 ++++++---- package.json | 2 +- pages/index.vue | 2 +- static/deploymentActions.json | 90 +++++++++++++++++------------------ store/gasPrice.js | 13 +++-- store/provider/actions.js | 38 ++++++++++----- store/provider/state.js | 4 +- store/steps.js | 48 ++++++------------- store/txStorage.js | 4 ++ yarn.lock | 8 ++-- 13 files changed, 128 insertions(+), 126 deletions(-) diff --git a/components/Navbar.vue b/components/Navbar.vue index aebba51..88b1822 100644 --- a/components/Navbar.vue +++ b/components/Navbar.vue @@ -6,11 +6,7 @@ diff --git a/components/Step.vue b/components/Step.vue index d57a6ba..ce2ea66 100644 --- a/components/Step.vue +++ b/components/Step.vue @@ -9,7 +9,7 @@

{{ data.title }}

ENS: - {{ + {{ data.domain }}
@@ -80,7 +80,7 @@ :row-class="(row) => row.address === getAccount && 'is-selected'" > - {{ + {{ props.row.address }} @@ -117,7 +117,7 @@ export default { computed: { ...mapGetters('provider', ['getProviderName', 'getAccount']), ...mapGetters('steps', ['canDeploy']), - ...mapGetters('txStorage', ['txExplorerUrl']), + ...mapGetters('txStorage', ['txExplorerUrl', 'addressExplorerUrl']), isNotLoggedIn() { return !this.getProviderName }, @@ -127,9 +127,6 @@ export default { onDeploy() { this.deployContract({ action: this.data, index: this.$vnode.key }) }, - domainUrl(address) { - return `https://bscscan.com/address/${address}` - }, }, } diff --git a/langs/en.json b/langs/en.json index 761efbe..42fc49a 100644 --- a/langs/en.json +++ b/langs/en.json @@ -17,7 +17,7 @@ "deployedBy": "Deployed by: {link}", "startNow": "Start now", "completedTasks": "Completed Tasks: {progress}", - "pageSubtitle": "Follow these simple steps to become part of deployment of Tornado.Cash protocol on BSC chain.", + "pageSubtitle": "Follow these simple steps to become part of deployment of Tornado.Cash protocol on xDAI Chain.", "alreadyDeployed": "Already deployed", "contractDeployed": "Contract successfully deployed", "transactionFailed": "Transaction was failed", @@ -26,6 +26,6 @@ "viewOnEtherscan": "View on Etherscan", "pleaseConnectWallet": "Please connect your wallet first", "dependsOnEns": "This action depends on {ens}", - "bscOnly": "Please switch your wallet to BSC network", - "switchNetwork": "Switch to BSC" + "xDaiOnly": "Please switch your wallet to xDAI Chain", + "switchNetwork": "Switch to xDAI" } diff --git a/networkConfig.js b/networkConfig.js index da05bbe..e691163 100644 --- a/networkConfig.js +++ b/networkConfig.js @@ -1,18 +1,22 @@ const networkConfig = { - netId56: { + netId100: { rpcCallRetryAttempt: 15, - gasPrices: { instant: 21, fast: 5, standard: 5, low: 5 }, - currencyName: 'BNB', - explorerUrl: { - tx: 'https://bscscan.com/tx/', - address: 'https://bscscan.com/address/', + gasPrices: { + instant: 5, + fast: 4, + standard: 3, + low: 1, }, - networkName: 'bsc', + currencyName: 'xDAI', + explorerUrl: { + tx: 'https://blockscout.com/xdai/mainnet/tx/', + address: 'https://blockscout.com/xdai/mainnet/address/', + }, + networkName: 'xdai', rpcUrls: { Infura: { - name: 'Infura', - url: - 'https://wandering-sparkling-shadow.bsc.quiknode.pro/00115b17f97c1f4c374ac309858015da1cab3e02/', + name: 'xDAI Chain RPC', + url: 'https://rpc.xdaichain.com/tornado', }, }, pollInterval: 200, diff --git a/package.json b/package.json index fd42434..8752585 100644 --- a/package.json +++ b/package.json @@ -14,7 +14,7 @@ "dependencies": { "nuxt-web3-provider": "^0.1.1", "core-js": "^3.6.5", - "gas-price-oracle": "^0.2.2", + "gas-price-oracle": "^0.3.4", "node-sass": "^4.14.1", "nuxt": "^2.14.6", "nuxt-buefy": "^0.4.4", diff --git a/pages/index.vue b/pages/index.vue index 3abda84..3999281 100644 --- a/pages/index.vue +++ b/pages/index.vue @@ -1,7 +1,7 @@