Skip to content

Commit

Permalink
TW-1579: Exolix networks map (#181)
Browse files Browse the repository at this point in the history
  • Loading branch information
lendihop authored Dec 20, 2024
1 parent 22c6187 commit 999f45a
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down Expand Up @@ -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());
});
Expand Down
14 changes: 14 additions & 0 deletions src/utils/exolix-networks-map.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
export const exolixNetworksMap: Record<number, string> = {
1: 'ETH',
56: 'BSC',
10: 'OPTIMISM',
43114: 'AVAXC',
42161: 'ARBITRUM',
8453: 'BASE',
314: 'FIL',
250: 'FTM',
2222: 'KAVA',
88888: 'CHZ',
42220: 'CELO',
1666600000: 'ONE'
};

0 comments on commit 999f45a

Please sign in to comment.