Repository navigation
Commit 85502be
feat(networks): add Kinetiq Elysium network logo (#47715)
## **Description**
Adds a logo for Kinetiq Elysium (chain 99901, `0x1863d`) to
`CHAIN_ID_TO_NETWORK_IMAGE_URL_MAP`.
**What is the reason for the change?**
Kinetiq Elysium is in chainlist.org's data but is not yet in
`chainid.network/chains.json`, which MM reads for the Chainlist list.
Without a logo, the chain falls back to a letter avatar and sorts below
logo chains in the Chainlist dropdown. Launch is 9 Nov.
**What is the improvement/solution?**
- Adds `app/images/elysium-network.png` (364×364 PNG supplied by the
Kinetiq team).
- Adds `ELYSIUM_NETWORK_IMAGE_URL` and maps `0x1863d` to it.
- The key is a literal hex ID, not a `CHAIN_IDS` entry, because
`CHAIN_IDS` is used to validate chain IDs in `ui/selectors/selectors.js`
and `ui/pages/swaps/swaps.util.ts`. Adding it there would change
behavior.
- Adds a unit test for the mapping. The existing test already checks
that every mapped image file exists.
Note: the supplied asset is PNG, not SVG.
## **Changelog**
CHANGELOG entry: null
## **Related issues**
Fixes:
## **Manual testing steps**
1. Run the extension and unlock it.
2. Go to Settings > Networks > Add network > Add a network manually.
3. Enter network name `Elysium`, RPC URL
`https://rpc.elysium.kinetiq.xyz`, chain ID `99901`, currency symbol
`HYPE`, and save.
4. Verify the Elysium network row shows the Kinetiq Elysium logo.
5. Switch to Elysium and open the network selector.
6. Verify the logo appears there too.
## **Screenshots/Recordings**
### **Before**
Letter avatar "E" for chain 99901.
### **After**
Kinetiq Elysium logo.
## **Pre-merge author checklist**
- [ ] I've followed [MetaMask Contributor
Docs](https://github.com/MetaMask/contributor-docs) and [MetaMask
Extension Coding
Standards](https://github.com/MetaMask/metamask-extension/blob/main/.github/guidelines/CODING_GUIDELINES.md).
- [x] I've completed the PR template to the best of my ability
- [x] I've included tests if applicable
- [ ] I've documented my code using [JSDoc](https://jsdoc.app/) format
if applicable
- [ ] I've applied the right labels on the PR (see [labeling
guidelines](https://github.com/MetaMask/metamask-extension/blob/main/.github/guidelines/LABELING_GUIDELINES.md)).
Not required for external contributors.
## **Pre-merge reviewer checklist**
- [ ] I've manually tested the PR (e.g. pull and build branch, run the
app, test code being changed).
- [ ] I confirm that this PR addresses all acceptance criteria described
in the ticket it closes and includes the necessary testing evidence such
as recordings and or screenshots.
<!-- CURSOR_SUMMARY -->
---
> [!NOTE]
> **Low Risk**
> Constants and asset mapping only; no auth, RPC, or chain-validation
behavior changes.
>
> **Overview**
> Adds a branded network icon for **Kinetiq Elysium** (chain `99901` /
`0x1863d`) so it no longer falls back to a letter avatar in network and
Chainlist UI.
>
> Introduces `ELYSIUM_NETWORK_IMAGE_URL` and wires `0x1863d` into
`CHAIN_ID_TO_NETWORK_IMAGE_URL_MAP` using a literal hex key rather than
`CHAIN_IDS`, avoiding validation side effects elsewhere. A focused unit
test asserts the mapping path.
>
> <sup>Reviewed by [Cursor Bugbot](https://cursor.com/bugbot) for commit
91cce76. Bugbot is set up for automated
code reviews on this repo. Configure
[here](https://www.cursor.com/dashboard/bugbot).</sup>
<!-- /CURSOR_SUMMARY -->
---------
Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Arafet (CN - Hong Kong) <52028926+arafetbenmakhlouf@users.noreply.github.com>1 parent 854e9e7 commit 85502be
3 files changed
Lines changed: 9 additions & 0 deletions
Loading
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
17 | 23 | | |
18 | 24 | | |
19 | 25 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
646 | 646 | | |
647 | 647 | | |
648 | 648 | | |
| 649 | + | |
649 | 650 | | |
650 | 651 | | |
651 | 652 | | |
| |||
1223 | 1224 | | |
1224 | 1225 | | |
1225 | 1226 | | |
| 1227 | + | |
| 1228 | + | |
1226 | 1229 | | |
1227 | 1230 | | |
1228 | 1231 | | |
| |||
0 commit comments