diff --git a/src/index.ts b/src/index.ts index fa0c07e..3aff9f2 100644 --- a/src/index.ts +++ b/src/index.ts @@ -34,6 +34,7 @@ import { getAliceBobPairInfo } from './utils/alice-bob/get-alice-bob-pair-info'; import { getAliceBobPairsInfo } from './utils/alice-bob/get-alice-bob-pairs-info'; import { btcExchangeRateProvider, tezExchangeRateProvider } from './utils/coingecko'; import { CodedError } from './utils/errors'; +import { exolixNetworksMap } from './utils/exolix-networks-map'; import { coinGeckoTokens } from './utils/gecko-tokens'; import { getExternalApiErrorPayload, isDefined, isNonEmptyString } from './utils/helpers'; import logger from './utils/logger'; @@ -107,6 +108,10 @@ app.get('/api/top-coins', (_req, res) => { res.status(200).send(coinGeckoTokens); }); +app.get('/api/exolix-networks-map', (_req, res) => { + res.status(200).send(exolixNetworksMap); +}); + app.get('/api/tkey', async (_req, res) => { res.send(await getTkeyStats()); }); diff --git a/src/utils/exolix-networks-map.ts b/src/utils/exolix-networks-map.ts new file mode 100644 index 0000000..2b6159d --- /dev/null +++ b/src/utils/exolix-networks-map.ts @@ -0,0 +1,14 @@ +export const exolixNetworksMap: Record = { + 1: 'ETH', + 56: 'BSC', + 10: 'OPTIMISM', + 43114: 'AVAXC', + 42161: 'ARBITRUM', + 8453: 'BASE', + 314: 'FIL', + 250: 'FTM', + 2222: 'KAVA', + 88888: 'CHZ', + 42220: 'CELO', + 1666600000: 'ONE' +};