From 67cbd3f6bfb21ba19b1a51073325c82134599637 Mon Sep 17 00:00:00 2001 From: Daniel Sinclair Date: Wed, 18 Dec 2024 03:44:54 -0500 Subject: [PATCH] fix: networks list labels for local chains --- src/core/references/chains.ts | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/src/core/references/chains.ts b/src/core/references/chains.ts index c97aea12b0..1d8245f13d 100644 --- a/src/core/references/chains.ts +++ b/src/core/references/chains.ts @@ -1,5 +1,5 @@ import { Address } from 'viem'; -import { type Chain, curtis, inkSepolia } from 'viem/chains'; +import { type Chain, avalancheFuji, curtis, inkSepolia } from 'viem/chains'; import backendNetworks from 'static/data/networks.json'; @@ -19,7 +19,7 @@ const BACKEND_CHAINS = transformBackendNetworksToChains( backendNetworks.networks, ); -const LOCAL_CHAINS: Chain[] = [curtis, inkSepolia]; +const LOCAL_CHAINS: Chain[] = [avalancheFuji, curtis, inkSepolia]; const DEFAULT_PRIVATE_MEMPOOL_TIMEOUT = 2 * 60 * 1_000; // 2 minutes @@ -53,7 +53,11 @@ export const chainsLabel: Record = acc[parseInt(backendNetwork.id, 10)] = backendNetwork.label; return acc; }, - {} as Record, + { + [ChainId.avalancheFuji]: 'Avalanche Fuji', + [ChainId.apechainCurtis]: 'Apechain Curtis', + [ChainId.inkSepolia]: 'Ink Sepolia', + } as Record, ); export const chainsPrivateMempoolTimeout: Record = @@ -72,7 +76,11 @@ export const chainsName: Record = acc[parseInt(backendNetwork.id, 10)] = backendNetwork.name; return acc; }, - {} as Record, + { + [ChainId.avalancheFuji]: 'avalanche-fuji', + [ChainId.apechainCurtis]: 'apechain-curtis', + [ChainId.inkSepolia]: 'ink-sepolia', + } as Record, ); const filterChainIdsByService = (