Skip to content

Commit

Permalink
use the other networks file
Browse files Browse the repository at this point in the history
  • Loading branch information
fionnachan committed Sep 23, 2024
1 parent 62fa2ea commit 1bc5634
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 14 deletions.
3 changes: 2 additions & 1 deletion packages/arb-token-bridge-ui/src/hooks/useNetworks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ import {
localL1Network as local,
localL2Network as arbitrumLocal,
localL3Network as l3Local
} from '../util/wagmi/wagmiAdditionalNetworks'
// } from '../util/wagmi/wagmiAdditionalNetworks'
} from '../util/wagmiNetworks'

import { getDestinationChainIds } from '../util/networks'
import { getWagmiChain } from '../util/wagmi/getWagmiChain'
Expand Down
6 changes: 3 additions & 3 deletions packages/arb-token-bridge-ui/src/pages/_app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,6 @@ import { ChainKeyQueryParam } from '../types/ChainQueryParam'
import { isUserRejectedError } from '../util/isUserRejectedError'
import { getChainForChainKeyQueryParam } from '../util/chainQueryParamUtils'

const siteTitle = 'Bridge to Arbitrum'

if (
process.env.NODE_ENV !== 'production' ||
process.env.NEXT_PUBLIC_IS_E2E_TEST
Expand Down Expand Up @@ -91,6 +89,8 @@ type ChainBlob = {
slug: string
}

const siteTitle = 'Bridge to Arbitrum'

function DynamicMetaData({
sourceChain,
destinationChain
Expand All @@ -103,7 +103,6 @@ function DynamicMetaData({

return (
<>
<title>{siteTitle}</title>
<meta name="description" content={siteDescription} />

{/* <!-- Facebook Meta Tags --> */}
Expand Down Expand Up @@ -158,6 +157,7 @@ export default function App({ Component, pageProps, router }: AppProps) {
return (
<>
<Head>
<title>{siteTitle}</title>
<DynamicMetaData
sourceChain={{
name: sourceChainName,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { Chain, mainnet } from 'wagmi'
import { arbitrum } from '@wagmi/chains'

import {
arbitrumNova,
Expand All @@ -9,10 +10,7 @@ import {
sepolia
} from './wagmiNetworks'
import { ChainKeyQueryParam } from '../types/ChainQueryParam'
import { ChainId, rpcURLs } from './networks'
import { ether } from '../constants'
import { getOrbitChains } from './orbitChainsList'
import { arbitrum } from '@wagmi/chains'
import { chainToWagmiChain } from './wagmi/chainToWagmiChain'

export function getChainForChainKeyQueryParam(
Expand Down
3 changes: 2 additions & 1 deletion packages/arb-token-bridge-ui/src/util/wagmi/getWagmiChain.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ import {
localL1Network,
localL2Network,
localL3Network
} from './wagmiAdditionalNetworks'
// } from './wagmiAdditionalNetworks'
} from '../wagmiNetworks'
import { ChainId, getCustomChainFromLocalStorageById } from '../networks'
import { orbitChains } from '../orbitChainsList'
import { chainToWagmiChain } from './chainToWagmiChain'
Expand Down
13 changes: 7 additions & 6 deletions packages/arb-token-bridge-ui/src/util/wagmi/setup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,12 @@ import {
sepolia,
arbitrumNova,
arbitrumSepolia,
localL1Network as local,
localL2Network as arbitrumLocal,
localL3Network as l3Local,
localL1Network,
localL2Network,
localL3Network,
holesky
} from './wagmiAdditionalNetworks'
// } from '../wagmiNetworks'
import { isTestingEnvironment } from '../CommonUtils'
import { getCustomChainsFromLocalStorage, ChainId } from '../networks'
import { getOrbitChains } from '../orbitChainsList'
Expand All @@ -39,9 +40,9 @@ const chainList = isTestingEnvironment
// Orbit chains
...wagmiOrbitChains,
// add local environments during testing
local,
arbitrumLocal,
l3Local,
localL1Network,
localL2Network,
localL3Network,
// user-added custom chains
...customChains
]
Expand Down

0 comments on commit 1bc5634

Please sign in to comment.