Skip to content

fix(chains): map legacy testnet spec ids onto their chain's icon - #66

Merged
nimrod-teich merged 1 commit into
mainfrom
fix/mag-4940-testnet-chain-icons
Nov 5, 2026
Merged

nimrod-teich merged 1 commit into
mainfrom
fix/mag-4940-testnet-chain-icons

Conversation

@nimrod-teich

@nimrod-teich nimrod-teich commented Nov 5, 2026 •

Copy link
Copy Markdown
Contributor

#Closes MAG-4940

Jira ticket: MAG-4940

Summary

  • The testnet explorer lists 20 specs whose ids have no entry in ALIASES (packages/shared/src/utils/chain-icons.ts). They fall back to a lowercased file name that doesn't exist, such as cos5.svg or polygon1.svg, so they show a letter placeholder.
  • 18 of them are old or variant ids of chains that already have an icon, and now map to it:
    • ARB1, ARBS → arbitrum-one; ARBN → arbitrum-nova
    • BASET → base
    • COS3, COS4, OSMO, OSMOT → osmosis
    • COS5, COS5T, COSHUB, COSHUBT → cosmos-hub
    • GTH1 → ethereum
    • HEDERATest → hedera
    • OPTMT → optimism
    • POLYGON1, POLYGON1T → polygon
    • STRKT → starknet
  • COSMOSSDK45DEP and COSMOSSDKFULL are base specs with no chain icon, so they keep the placeholder.
  • No new image files: every target is already in apps/web/public/chains/, and those files match the docs repo's chain icons. Mainnet has no gaps.

Screenshots

/chains on the testnet explorer, filtered to the 20 affected rows. Both builds use the live testnet API.

Before (main): every one shows a letter placeholder.

Before

After (this branch): 18 show their chain's icon. The two Cosmos SDK base specs keep the placeholder.

After

Test plan

  • pnpm test: shared 44, web 19, api 134, all pass. This includes a new case in chain-icons.test.ts.
  • pnpm typecheck: passes.
  • Built against the testnet API (NEXT_PUBLIC_API_URL=https://api-testnet-info.lavanet.xyz, NEXT_PUBLIC_NETWORK=testnet), from main and from this branch. Opened /chains in both. The screenshots show the same 20 rows from each.

The testnet explorer lists 20 specs whose ids have no alias, so they
fall back to a lowercased file name that doesn't exist (cos5.svg,
polygon1.svg, ...) and show a letter placeholder. 18 of them are old
ids of chains we already have icons for, and now map to those icons.
The two Cosmos SDK base specs have no chain icon and keep the
placeholder.
@nimrod-teich nimrod-teich self-assigned this Nov 5, 2026
@nimrod-teich
nimrod-teich merged commit c94d821 into main Nov 5, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant