From 387690f615f22d3e1c451a6c375fbe17a7b40045 Mon Sep 17 00:00:00 2001 From: Define101 Date: Mon, 17 Jun 2024 12:16:05 +0100 Subject: [PATCH] add missing chains + add orbiter data --- src/data/bridgeNetworkData.ts | 15 ++++++++++++--- src/utils/normalizeChain.ts | 16 ++++++++++++++++ 2 files changed, 28 insertions(+), 3 deletions(-) diff --git a/src/data/bridgeNetworkData.ts b/src/data/bridgeNetworkData.ts index 697beee5..590f30eb 100644 --- a/src/data/bridgeNetworkData.ts +++ b/src/data/bridgeNetworkData.ts @@ -1104,18 +1104,27 @@ export default [ "Blast", "Arbitrum Nova", "Scroll", - // "Manta", + "Manta", // "Mode", "zkSync Era", "Polygon zkEVM", "Merlin", - "BTR", - "ZKLink", + "Bitlayer", + "ZkLink", + "X Layer", + "Binance", + "Bouncebit", + "Mantle", + "Zkfair", + "opBNB" ], chainMapping: { "arbitrum nova": "arbitrum_nova", "zksync era": "era", "polygon zkevm": "polygon_zkevm", + "btr": "bitlayer", + "xlayer": "X Layer", + "bsc": "Binance", }, }, { diff --git a/src/utils/normalizeChain.ts b/src/utils/normalizeChain.ts index 39f4dbb1..3aa0c491 100644 --- a/src/utils/normalizeChain.ts +++ b/src/utils/normalizeChain.ts @@ -951,6 +951,18 @@ export const chainCoingeckoIds = { cmcId: "30746", categories: ["EVM"], }, + "X Layer": { + geckoId: "x-layer", + symbol: null, + cmcId: null, + categories: ["EVM"], + }, + "opBNB": { + geckoId: null, + symbol: null, + cmcId: null, + categories: ["EVM", "Rollup"], + }, } as { [chain: string]: { geckoId: string | null; @@ -1188,6 +1200,10 @@ export function getChainDisplayName(normalizedChain: string, useNewChainNames: b return "zkLink Nova" case "bouncebit": return "BounceBit" + case "xlayer": + return "X Layer" + case "opbnb": + return "opBNB" default: return normalizedChain.slice(0, 1).toUpperCase() + normalizedChain.slice(1); // Capitalize first letter }