Commit 81b13469 authored by Jordan Frankfurt's avatar Jordan Frankfurt Committed by GitHub

update explorer links for arbitrum (#2279)

parent f51335df
...@@ -66,7 +66,7 @@ export const CHAIN_INFO: ChainInfo = { ...@@ -66,7 +66,7 @@ export const CHAIN_INFO: ChainInfo = {
[SupportedChainId.ARBITRUM_ONE]: { [SupportedChainId.ARBITRUM_ONE]: {
bridge: 'https://bridge.arbitrum.io/', bridge: 'https://bridge.arbitrum.io/',
docs: 'https://offchainlabs.com/', docs: 'https://offchainlabs.com/',
explorer: 'https://explorer.arbitrum.io/', explorer: 'https://arbiscan.io/',
infoLink: 'https://info.uniswap.org/#/arbitrum', infoLink: 'https://info.uniswap.org/#/arbitrum',
label: 'Arbitrum', label: 'Arbitrum',
logoUrl: arbitrumLogoUrl, logoUrl: arbitrumLogoUrl,
...@@ -74,7 +74,7 @@ export const CHAIN_INFO: ChainInfo = { ...@@ -74,7 +74,7 @@ export const CHAIN_INFO: ChainInfo = {
[SupportedChainId.ARBITRUM_RINKEBY]: { [SupportedChainId.ARBITRUM_RINKEBY]: {
bridge: 'https://bridge.arbitrum.io/', bridge: 'https://bridge.arbitrum.io/',
docs: 'https://offchainlabs.com/', docs: 'https://offchainlabs.com/',
explorer: 'https://explorer.arbitrum.io/', explorer: 'https://rinkeby-explorer.arbitrum.io/',
infoLink: 'https://info.uniswap.org/#/arbitrum/', infoLink: 'https://info.uniswap.org/#/arbitrum/',
label: 'Arbitrum Rinkeby', label: 'Arbitrum Rinkeby',
logoUrl: arbitrumLogoUrl, logoUrl: arbitrumLogoUrl,
......
...@@ -31,7 +31,7 @@ describe('#anonymizeLink', () => { ...@@ -31,7 +31,7 @@ describe('#anonymizeLink', () => {
) )
}) })
it('works for arbitrum urls', () => { it('works for arbitrum urls', () => {
expect(anonymizeLink('https://explorer.arbitrum.io/0x/0xabc')).toEqual('https://explorer.arbitrum.io/0x/***') expect(anonymizeLink('https://arbiscan.io/0x/0xabc')).toEqual('https://arbiscan.io/0x/***')
}) })
it('works for arbitrum rinkeby urls', () => { it('works for arbitrum rinkeby urls', () => {
expect(anonymizeLink('https://rinkeby-explorer.arbitrum.io/0x/0xabc')).toEqual( expect(anonymizeLink('https://rinkeby-explorer.arbitrum.io/0x/0xabc')).toEqual(
......
...@@ -7,7 +7,7 @@ const EXPLORER_HOSTNAMES: { [hostname: string]: true } = { ...@@ -7,7 +7,7 @@ const EXPLORER_HOSTNAMES: { [hostname: string]: true } = {
'optimistic.etherscan.io': true, 'optimistic.etherscan.io': true,
'kovan-optimistic.etherscan.io': true, 'kovan-optimistic.etherscan.io': true,
'rinkeby-explorer.arbitrum.io': true, 'rinkeby-explorer.arbitrum.io': true,
'explorer.arbitrum.io': true, 'arbiscan.io': true,
} }
/** /**
......
...@@ -27,14 +27,14 @@ export function getExplorerLink(chainId: number, data: string, type: ExplorerDat ...@@ -27,14 +27,14 @@ export function getExplorerLink(chainId: number, data: string, type: ExplorerDat
if (chainId === SupportedChainId.ARBITRUM_ONE) { if (chainId === SupportedChainId.ARBITRUM_ONE) {
switch (type) { switch (type) {
case ExplorerDataType.TRANSACTION: case ExplorerDataType.TRANSACTION:
return `https://explorer.arbitrum.io/tx/${data}` return `https://arbiscan.io/tx/${data}`
case ExplorerDataType.ADDRESS: case ExplorerDataType.ADDRESS:
case ExplorerDataType.TOKEN: case ExplorerDataType.TOKEN:
return `https://explorer.arbitrum.io/address/${data}` return `https://arbiscan.io/address/${data}`
case ExplorerDataType.BLOCK: case ExplorerDataType.BLOCK:
return `https://explorer.arbitrum.io/block/${data}` return `https://arbiscan.io/block/${data}`
default: default:
return `https://explorer.arbitrum.io/` return `https://arbiscan.io/`
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment