Skip to content

Commit

Permalink
remove not used networks (#1933)
Browse files Browse the repository at this point in the history
  • Loading branch information
bogdanfazakas authored Jun 16, 2023
1 parent 31c8b17 commit 9db01b6
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 100 deletions.
4 changes: 2 additions & 2 deletions app.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ module.exports = {

// List of chainIds which metadata cache queries will return by default.
// This preselects the Chains user preferences.
chainIds: [1, 137, 56, 246, 1285],
chainIds: [1, 137],

// List of all supported chainIds. Used to populate the Chains user preferences list.
chainIdsSupported: [1, 137, 56, 246, 1285, 5, 80001],
chainIdsSupported: [1, 137, 5, 80001],

defaultDatatokenTemplateIndex: 2,
// The ETH address the marketplace fee will be sent to.
Expand Down
84 changes: 0 additions & 84 deletions src/@utils/wallet/chains.ts

This file was deleted.

3 changes: 1 addition & 2 deletions src/@utils/wallet/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import { mainnet, polygon, bsc, goerli, polygonMumbai } from 'wagmi/chains'
import { ethers, Contract, Signer, providers } from 'ethers'
import { formatEther } from 'ethers/lib/utils'
import { getDefaultClient } from 'connectkit'
import { energyWeb, moonriver } from './chains'
import { getNetworkDisplayName } from '@hooks/useNetworkMetadata'
import { getOceanConfig } from '../ocean'

Expand All @@ -31,7 +30,7 @@ export const wagmiClient = createClient(
appName: 'Ocean Market',
infuraId: process.env.NEXT_PUBLIC_INFURA_PROJECT_ID,
// TODO: mapping between appConfig.chainIdsSupported and wagmi chainId
chains: [mainnet, polygon, bsc, energyWeb, moonriver, goerli, polygonMumbai]
chains: [mainnet, polygon, goerli, polygonMumbai]
})
)

Expand Down
12 changes: 0 additions & 12 deletions src/components/@shared/NetworkName/index.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,18 +15,6 @@ describe('@shared/NetworkName', () => {
render(<NetworkName networkId={137} />)
})

it('renders BSC', () => {
render(<NetworkName networkId={56} />)
})

it('renders Energy Web', () => {
render(<NetworkName networkId={246} />)
})

it('renders Moonriver', () => {
render(<NetworkName networkId={1285} />)
})

it('renders icon fallback', () => {
render(<NetworkName networkId={99999} />)
})
Expand Down

2 comments on commit 9db01b6

@vercel
Copy link

@vercel vercel bot commented on 9db01b6 Jun 16, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vercel
Copy link

@vercel vercel bot commented on 9db01b6 Jun 19, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.