Skip to content

Commit 95972f7

Browse files
chore(bridge): silence lint for temporary diagnostics
1 parent c2eae76 commit 95972f7

5 files changed

Lines changed: 7 additions & 0 deletions

File tree

packages/app/src/app/api/crosschain-transfers/lifi/tokens/route.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@ export async function GET(request: NextRequest): Promise<NextResponse<TokenList>
8888
const startedAt = Date.now();
8989
try {
9090
const { tokensByChain, tokensByChainAndCoinKey } = await getLifiTokenRegistry();
91+
// eslint-disable-next-line no-console
9192
console.log(
9293
`[lifi-tokens-diag] registry ready in ${Date.now() - startedAt}ms parent=${parentChainId} child=${childChainId}`,
9394
);
@@ -137,6 +138,7 @@ export async function GET(request: NextRequest): Promise<NextResponse<TokenList>
137138
},
138139
);
139140
} catch (error: unknown) {
141+
// eslint-disable-next-line no-console
140142
console.log(`[lifi-tokens-diag] registry FAILED in ${Date.now() - startedAt}ms`, error);
141143
return NextResponse.json(
142144
{

packages/arb-token-bridge-ui/src/components/TransferPanel/TokenSearch.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -438,6 +438,7 @@ function TokensPanel({
438438

439439
// TODO: remove diagnostics
440440
useEffect(() => {
441+
// eslint-disable-next-line no-console
441442
console.error(
442443
`[token-search-diag] parent=${parentChain.id} child=${childChain.id} fromLists=${
443444
Object.keys(tokensFromLists).length

packages/arb-token-bridge-ui/src/components/TransferPanel/TokenSearchUtils.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ export function useTokensFromLists() {
3030
String(childChain.id),
3131
);
3232
// TODO: remove diagnostics
33+
// eslint-disable-next-line no-console
3334
console.error(
3435
`[token-search-diag] storage computed lists=${tokenLists.length} entries=${
3536
Object.keys(storage).length

packages/arb-token-bridge-ui/src/hooks/useTokenLists.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ function fetchTokenLists(forL2ChainId: number, parentChainId: number): Promise<T
5656
);
5757

5858
// TODO: remove diagnostics
59+
// eslint-disable-next-line no-console
5960
console.error(
6061
`[token-list-diag] settled child=${forL2ChainId} parent=${parentChainId} lists=${tokenListsWithBridgeTokenListId.length} ids=${tokenListsWithBridgeTokenListId.map((l) => l.bridgeTokenListId).join(',')}`,
6162
);

packages/arb-token-bridge-ui/src/util/TokenListUtils.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -262,11 +262,13 @@ export async function fetchTokenListFromURL(tokenListURL: string): Promise<{
262262
},
263263
});
264264

265+
// eslint-disable-next-line no-console
265266
console.error(
266267
`[token-list-diag] ok ${tokenListURL} ${Date.now() - startedAt}ms tokens=${data?.tokens?.length}`,
267268
);
268269
return { data };
269270
} catch (error) {
271+
// eslint-disable-next-line no-console
270272
console.error(`[token-list-diag] fail ${tokenListURL} ${Date.now() - startedAt}ms`, error);
271273
logger.warn('Token List URL Invalid', tokenListURL);
272274
return { data: undefined };

0 commit comments

Comments
 (0)