From ea97a39aff1a79a5fbb497c7310ab23678d8668d Mon Sep 17 00:00:00 2001 From: gozzy Date: Sat, 3 Dec 2022 16:29:21 +0000 Subject: [PATCH] increase gas price timeout & update rpcs --- networkConfig.js | 48 ++++++++++++++++++++++++++++++++++++---------- store/gasPrices.js | 2 +- 2 files changed, 39 insertions(+), 11 deletions(-) diff --git a/networkConfig.js b/networkConfig.js index 31973d8..e540bd2 100644 --- a/networkConfig.js +++ b/networkConfig.js @@ -19,7 +19,7 @@ export default { networkName: 'Ethereum Mainnet', deployedBlock: 9116966, rpcUrls: { - SecureRPC: { + secureRPC: { name: 'SecureRPC', url: 'https://api.securerpc.com/v1' } @@ -135,6 +135,10 @@ export default { multicall: '0x41263cba59eb80dc200f3e2544eda4ed6a90e76c', echoContractAccount: '0xa75BF2815618872f155b7C4B0C81bF990f5245E4', rpcUrls: { + oneRPC: { + name: '1RPC', + url: 'https://1rpc.io/bnb' + }, bscRpc: { name: 'BSC RPC', url: 'https://bscrpc.com/' @@ -182,9 +186,13 @@ export default { multicall: '0x11ce4B23bD875D7F5C6a31084f55fDe1e9A87507', echoContractAccount: '0xa75BF2815618872f155b7C4B0C81bF990f5245E4', rpcUrls: { - polygonRPC: { + polygonRpc: { name: 'Polygon RPC', - url: `https://polygon-rpc.com` + url: 'https://polygon-rpc.com/' + }, + oneRpc: { + name: '1RPC', + url: 'https://1rpc.io/matic/' } }, tokens: { @@ -230,9 +238,13 @@ export default { echoContractAccount: '0xa75BF2815618872f155b7C4B0C81bF990f5245E4', ovmGasPriceOracleContract: '0x420000000000000000000000000000000000000F', rpcUrls: { + oneRpc: { + name: '1RPC', + url: 'https://1rpc.io/op/' + }, Optimism: { name: 'Optimism', - url: `https://mainnet.optimism.io` + url: 'https://mainnet.optimism.io/' } }, tokens: { @@ -278,8 +290,16 @@ export default { echoContractAccount: '0xa75BF2815618872f155b7C4B0C81bF990f5245E4', rpcUrls: { Arbitrum: { + name: 'Arbitrum RPC', + url: 'https://arb1.arbitrum.io/rpc/' + }, + publicRpc: { + name: 'Arbitrum Public RPC', + url: 'https://arbitrum.public-rpc.com/' + }, + oneRpc: { name: '1RPC', - url: 'https://1rpc.io/arb' + url: 'https://1rpc.io/arb/' } }, tokens: { @@ -324,9 +344,9 @@ export default { multicall: '0xb5b692a88bdfc81ca69dcb1d924f59f0413a602a', echoContractAccount: '0xa75BF2815618872f155b7C4B0C81bF990f5245E4', rpcUrls: { - publicRpc: { - name: 'Community RPC', - url: 'https://development.tornadocash.community/rpc/v1' + communityResolver: { + name: 'Community RPC Resolver', + url: 'https://development.tornadocash.community/rpc/v1/' } }, tokens: { @@ -371,9 +391,17 @@ export default { multicall: '0xe86e3989c74293Acc962156cd3F525c07b6a1B6e', echoContractAccount: '0xa75BF2815618872f155b7C4B0C81bF990f5245E4', rpcUrls: { - publicRpc: { + publicRpc1: { name: 'Avalanche RPC', - url: 'https://api.avax.network/ext/bc/C/rpc' + url: 'https://api.avax.network/ext/bc/C/rpc/' + }, + publicRpc2: { + name: 'Avalanche Public PRC', + url: 'https://avalanche-evm.publicnode.com/' + }, + oneRpc: { + name: '1RPC', + ulr: 'https://1rpc.io/avax/' } }, tokens: { diff --git a/store/gasPrices.js b/store/gasPrices.js index 8145814..763cd23 100644 --- a/store/gasPrices.js +++ b/store/gasPrices.js @@ -76,7 +76,7 @@ export const actions = { } catch (e) { console.error('fetchGasPrice', e) } finally { - setTimeout(() => dispatch('fetchGasPrice'), 1000 * pollInterval) + setTimeout(() => dispatch('fetchGasPrice'), 2000 * pollInterval) } }, setDefault({ commit, rootGetters }) {