diff --git a/components/Navbar.vue b/components/Navbar.vue index aebba51..cde76e6 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..cf7c049 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 Polygon (Matic) network.", "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" + "polygonOnly": "Please switch your wallet to Polygon network", + "switchNetwork": "Switch to Polygon" } diff --git a/layouts/default.vue b/layouts/default.vue index fb69efe..5750df7 100644 --- a/layouts/default.vue +++ b/layouts/default.vue @@ -37,6 +37,7 @@ export default { } this.fetchDeploymentStatus() this.statusPooling() + this.fetchGasPrice() this.setAirdropAddresses() }, @@ -44,6 +45,7 @@ export default { ...mapActions('provider', ['initProvider']), ...mapActions('airdrop', ['setAirdropAddresses']), ...mapActions('steps', ['statusPooling', 'fetchDeploymentStatus']), + ...mapActions('gasPrice', ['fetchGasPrice']), }, } diff --git a/networkConfig.js b/networkConfig.js index da05bbe..bc54b33 100644 --- a/networkConfig.js +++ b/networkConfig.js @@ -1,21 +1,21 @@ const networkConfig = { - netId56: { + netId137: { rpcCallRetryAttempt: 15, - gasPrices: { instant: 21, fast: 5, standard: 5, low: 5 }, - currencyName: 'BNB', + gasPrices: { instant: 7.5, fast: 5, standard: 1, low: 1 }, + currencyName: 'MATIC', explorerUrl: { - tx: 'https://bscscan.com/tx/', - address: 'https://bscscan.com/address/', + tx: 'https://polygonscan.com/tx/', + address: 'https://polygonscan.com/address/', }, - networkName: 'bsc', + networkName: 'polygon', rpcUrls: { Infura: { name: 'Infura', url: - 'https://wandering-sparkling-shadow.bsc.quiknode.pro/00115b17f97c1f4c374ac309858015da1cab3e02/', + 'https://polygon-mainnet.infura.io/v3/da564f81919d40c9a3bcaee4ff44438d', }, }, - pollInterval: 200, + pollInterval: 60, }, } diff --git a/package.json b/package.json index fd42434..661001a 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.2", "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..0833b49 100644 --- a/pages/index.vue +++ b/pages/index.vue @@ -1,7 +1,7 @@