test arbitrum nitro

This commit is contained in:
Danil Kovtonyuk 2022-08-04 19:17:56 +10:00
parent 498e1908e1
commit 82c7003a50
No known key found for this signature in database
GPG Key ID: E72A919BF08C3746
7 changed files with 66 additions and 2 deletions

View File

@ -321,6 +321,10 @@
mask-image: url('../img/icons/arbitrum.svg');
}
&-arbitrum-rinkeby {
mask-image: url('../img/icons/arbitrum.svg');
}
&-binance-smart-chain {
mask-image: url('../img/icons/binance.svg');
}

View File

@ -338,6 +338,53 @@ export default {
},
'tornado-proxy-light.contract.tornadocash.eth': '0x0D5550d52428E7e3175bfc9550207e4ad3859b17'
},
netId421611: {
rpcCallRetryAttempt: 15,
gasPrices: {
instant: 4,
fast: 3,
standard: 2.52,
low: 2.29
},
nativeCurrency: 'eth',
currencyName: 'ETH',
explorerUrl: {
tx: 'https://testnet.arbiscan.io/tx/',
address: 'https://testnet.arbiscan.io/address/',
block: 'https://testnet.arbiscan.io/block/'
},
merkleTreeHeight: 20,
emptyElement: '21663839004416932945382355908790599225266501822907911457504978515578255421292',
networkName: 'Arbitrum Rinkeby',
deployedBlock: 13970750,
multicall: '0x7eCfBaa8742fDf5756DAC92fbc8b90a19b8815bF',
echoContractAccount: '0xC1B35A64b179D3EdeF31a17C715daD187C26f310',
rpcUrls: {
Arbitrum: {
name: 'Arbitrum Public RPC',
url: 'https://rinkeby.arbitrum.io/rpc'
}
},
tokens: {
eth: {
instanceAddress: {
'0.1': '0x183CA333114587070d3FAF57038DC43Ec1d81376',
'1': '',
'10': '',
'100': ''
},
symbol: 'ETH',
decimals: 18
}
},
ensSubdomainKey: 'arbitrum-rinkeby-tornado',
pollInterval: 15,
constants: {
NOTE_ACCOUNT_BLOCK: 13970750,
ENCRYPTED_NOTES_BLOCK: 13970750
},
'tornado-proxy-light.contract.tornadocash.eth': '0xFfa8E36aB90180Df7d63767066e443e1f8d1A828'
},
netId100: {
rpcCallRetryAttempt: 15,
gasPrices: {

View File

@ -39,7 +39,7 @@ class IndexedDB {
return
}
this.db = await openDB(this.dbName, 34, this.options) // version (optional): Schema version, or undefined to open the current version.
this.db = await openDB(this.dbName, 35, this.options) // version (optional): Schema version, or undefined to open the current version.
this.onEventHandler()
this.dbExists = true

View File

@ -27,6 +27,7 @@ const CHAIN_GRAPH_URLS = {
100: 'https://api.thegraph.com/subgraphs/name/tornadocash/xdai-tornado-subgraph',
137: 'https://api.thegraph.com/subgraphs/name/tornadocash/matic-tornado-subgraph',
42161: 'https://api.thegraph.com/subgraphs/name/tornadocash/arbitrum-tornado-subgraph',
421611: 'https://api.thegraph.com/subgraphs/name/dan1kov/arbitrum-r-tornado-subgraph',
43114: 'https://api.thegraph.com/subgraphs/name/tornadocash/avalanche-tornado-subgraph'
}

View File

@ -30,6 +30,7 @@ function getRelayerValidateFunction(netId) {
case 10:
case 42161:
case 421611:
return ajv.getSchema('l2Relayer')
default:

View File

@ -251,7 +251,7 @@ const getters = {
},
isArbitrumConnected: (state, getters, rootState, rootGetters) => {
const netId = rootGetters['metamask/netId']
return Number(netId) === 42161
return [42161, 421611].includes(Number(netId))
}
}

View File

@ -580,6 +580,17 @@ const actions = {
},
blockExplorerUrls: ['https://arbiscan.io']
},
421611: {
chainId: '0x66EEB',
chainName: 'Arbitrum Rinkeby',
rpcUrls: ['https://rinkeby.arbitrum.io/rpc'],
nativeCurrency: {
name: 'Arbitrum Rinkeby Ether',
symbol: 'ARETH',
decimals: 18
},
blockExplorerUrls: ['https://testnet.arbiscan.io/']
},
43114: {
chainId: '0xA86A',
chainName: 'Avalanche C-Chain',