Skip to content

Commit

Permalink
add degen chain to network selector (#5766)
Browse files Browse the repository at this point in the history
  • Loading branch information
walmat authored May 24, 2024
1 parent cf2b961 commit 1817a43
Showing 1 changed file with 15 additions and 13 deletions.
28 changes: 15 additions & 13 deletions src/references/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ import {
zoraSepolia,
sepolia,
blast,
degen,
} from 'viem/chains';

export { default as balanceCheckerContractAbi } from './balances-checker-abi.json';
Expand Down Expand Up @@ -226,26 +227,27 @@ export const SUPPORTED_MAINNET_CHAINS: Chain[] = [mainnet, polygon, optimism, ar

export const SUPPORTED_CHAINS = ({ testnetMode = false }: { testnetMode?: boolean }): Chain[] =>
[
mainnet,
polygon,
optimism,
arbitrum,
holesky,
arbitrumGoerli,
arbitrumSepolia,
avalanche,
avalancheFuji,
base,
zora,
baseSepolia,
blast,
bsc,
bscTestnet,
degen,
goerli,
sepolia,
holesky,
mainnet,
optimism,
optimismSepolia,
bscTestnet,
polygon,
polygonMumbai,
arbitrumGoerli,
arbitrumSepolia,
baseSepolia,
sepolia,
zora,
zoraSepolia,
avalanche,
avalancheFuji,
blast,
]
.filter(chain => (testnetMode ? !!chain.testnet : !chain.testnet))
.map(chain => ({ ...chain, name: ChainNameDisplay[chain.id] }));
Expand Down

0 comments on commit 1817a43

Please sign in to comment.