From 48863e4814e899aed349879e0e0bd95575fd070f Mon Sep 17 00:00:00 2001 From: Danil Kovtonyuk Date: Mon, 22 Nov 2021 17:29:48 +1000 Subject: [PATCH] arbitrum --- components/Navbar.vue | 7 +- langs/en.json | 6 +- layouts/default.vue | 2 + networkConfig.js | 26 +- package.json | 6 +- pages/index.vue | 2 +- static/deploymentActions.json | 62 +- store/deploy.js | 13 +- store/gasPrice.js | 4 +- store/provider/actions.js | 25 +- store/provider/state.js | 4 +- yarn.lock | 1493 ++++++++++++++------------------- 12 files changed, 731 insertions(+), 919 deletions(-) diff --git a/components/Navbar.vue b/components/Navbar.vue index 08a4271..88b1822 100644 --- a/components/Navbar.vue +++ b/components/Navbar.vue @@ -6,12 +6,7 @@ diff --git a/langs/en.json b/langs/en.json index 57f96f5..eae8ade 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 Avalanche Mainnet.", + "pageSubtitle": "Follow these simple steps to become part of deployment of Tornado.Cash protocol on Aribtrum One.", "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}", - "avalancheOnly": "Please switch your wallet to Avalanche Mainnet", - "switchNetwork": "Switch to Avalanche" + "arbitrumOnly": "Please switch your wallet to Arbitrum One", + "switchNetwork": "Switch to Arbitrum" } 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 220fdaa..c5d086e 100644 --- a/networkConfig.js +++ b/networkConfig.js @@ -1,20 +1,26 @@ const networkConfig = { - netId43114: { + netId42161: { rpcCallRetryAttempt: 15, - gasPrices: { fast: 225, low: 225, custom: 225, standard: 225 }, - currencyName: 'AVAX', - explorerUrl: { - tx: 'https://cchain.explorer.avax.network/tx/', - address: 'https://cchain.explorer.avax.network/address/', + gasPrices: { + instant: 4, + fast: 3, + standard: 2.52, + low: 2.29, }, - networkName: 'avalanche', + currencyName: 'ETH', + explorerUrl: { + tx: 'https://arbiscan.io/tx/', + address: 'https://arbiscan.io/address/', + }, + networkName: 'arbitrum', rpcUrls: { Infura: { - name: 'Avalanche RPC', - url: 'https://api.avax.network/ext/bc/C/rpc', + name: 'Arbitrum Public RPC', + url: + 'https://arb-mainnet.g.alchemy.com/v2/_82R9fXSpgWH9iv_oKdwKww7qMyJ6OpR', }, }, - pollInterval: 200, + pollInterval: 15, }, } diff --git a/package.json b/package.json index 8752585..43f8350 100644 --- a/package.json +++ b/package.json @@ -12,16 +12,16 @@ "deploy-prod": "npm run generate && push-dir --allow-unclean --dir=dist --branch=gh-pages --cleanup --remote=temp" }, "dependencies": { - "nuxt-web3-provider": "^0.1.1", + "nuxt-web3-provider": "^0.1.4", "core-js": "^3.6.5", - "gas-price-oracle": "^0.3.4", + "gas-price-oracle": "^0.4.4", "node-sass": "^4.14.1", "nuxt": "^2.14.6", "nuxt-buefy": "^0.4.4", "push-dir": "^0.4.1", "sass-loader": "^10.0.3", "vue-i18n": "^8.22.1", - "web3": "1.2.6" + "web3": "1.5.2" }, "devDependencies": { "@nuxtjs/eslint-config": "^3.1.0", diff --git a/pages/index.vue b/pages/index.vue index b5c915e..ef847b7 100644 --- a/pages/index.vue +++ b/pages/index.vue @@ -1,7 +1,7 @@