Skip to content

Commit

Permalink
Merge pull request #222 from Define101/master
Browse files Browse the repository at this point in the history
add missing chains + add orbiter data
  • Loading branch information
Define101 authored Jun 17, 2024
2 parents 3790865 + 387690f commit b3368d5
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 3 deletions.
15 changes: 12 additions & 3 deletions src/data/bridgeNetworkData.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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",
},
},
{
Expand Down
16 changes: 16 additions & 0 deletions src/utils/normalizeChain.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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
}
Expand Down

0 comments on commit b3368d5

Please sign in to comment.