Skip to content

test arbitrum nitro #32

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions assets/styles/components/_icon.scss
Original file line number Diff line number Diff line change
Expand Up @@ -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');
}
Expand Down
47 changes: 47 additions & 0 deletions networkConfig.js
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand Down
2 changes: 1 addition & 1 deletion plugins/idb.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions services/graph.js
Original file line number Diff line number Diff line change
Expand Up @@ -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'
}

Expand Down
1 change: 1 addition & 0 deletions services/schema/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ function getRelayerValidateFunction(netId) {

case 10:
case 42161:
case 421611:
return ajv.getSchema('l2Relayer')

default:
Expand Down
2 changes: 1 addition & 1 deletion store/application.js
Original file line number Diff line number Diff line change
Expand Up @@ -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))
}
}

Expand Down
11 changes: 11 additions & 0 deletions store/metamask.js
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down