Skip to content

Commit 999f45a

Browse files
authored
TW-1579: Exolix networks map (#181)
1 parent 22c6187 commit 999f45a

File tree

2 files changed

+19
-0
lines changed

2 files changed

+19
-0
lines changed

src/index.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ import { getAliceBobPairInfo } from './utils/alice-bob/get-alice-bob-pair-info';
3434
import { getAliceBobPairsInfo } from './utils/alice-bob/get-alice-bob-pairs-info';
3535
import { btcExchangeRateProvider, tezExchangeRateProvider } from './utils/coingecko';
3636
import { CodedError } from './utils/errors';
37+
import { exolixNetworksMap } from './utils/exolix-networks-map';
3738
import { coinGeckoTokens } from './utils/gecko-tokens';
3839
import { getExternalApiErrorPayload, isDefined, isNonEmptyString } from './utils/helpers';
3940
import logger from './utils/logger';
@@ -107,6 +108,10 @@ app.get('/api/top-coins', (_req, res) => {
107108
res.status(200).send(coinGeckoTokens);
108109
});
109110

111+
app.get('/api/exolix-networks-map', (_req, res) => {
112+
res.status(200).send(exolixNetworksMap);
113+
});
114+
110115
app.get('/api/tkey', async (_req, res) => {
111116
res.send(await getTkeyStats());
112117
});

src/utils/exolix-networks-map.ts

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
export const exolixNetworksMap: Record<number, string> = {
2+
1: 'ETH',
3+
56: 'BSC',
4+
10: 'OPTIMISM',
5+
43114: 'AVAXC',
6+
42161: 'ARBITRUM',
7+
8453: 'BASE',
8+
314: 'FIL',
9+
250: 'FTM',
10+
2222: 'KAVA',
11+
88888: 'CHZ',
12+
42220: 'CELO',
13+
1666600000: 'ONE'
14+
};

0 commit comments

Comments
 (0)