Commit 34a01a9
authored
feat: update omni network and native token logo to nomina (#22816)
<!--
Please submit this PR as a draft initially.
Do not mark it as "Ready for review" until the template has been
completely filled out, and PR status checks have passed at least once.
-->
## **Description**
<!--
Write a short description of the changes included in this pull request,
also include relevant motivation and context. Have in mind the following
questions:
1. What is the reason for the change?
2. What is the improvement/solution?
-->
Omni Network (OMNI) has been rebranded to Nomina (NOM). This PR changes
the network name, native currency and icons for the network.
## **Changelog**
<!--
If this PR is not End-User-Facing and should not show up in the
CHANGELOG, you can choose to either:
1. Write `CHANGELOG entry: null`
2. Label with `no-changelog`
If this PR is End-User-Facing, please write a short User-Facing
description in the past tense like:
`CHANGELOG entry: Added a new tab for users to see their NFTs`
`CHANGELOG entry: Fixed a bug that was causing some NFTs to flicker`
(This helps the Release Engineer do their job more quickly and
accurately)
-->
CHANGELOG entry: change Omni Network name and logo to Nomina with native
currency NOM.
## **Related issues**
Fixes: NA
## **Manual testing steps**
Go to the MetaMask Mobile app
1/ Navigate to "chainList.org" search for "Nomina" and click add new
network.
RPC URL : https://mainnet.nomina.io
Chain Name : Nomina
Currency Symbol: NOM
Chain ID: 166 (0xa6)
2/ Check that the logo of the network is displayed correctly in the
dropdown and on bottom-right of tokens.
3/ Check that the native token is NOM with Nomina logo.
## **Screenshots/Recordings**
<!-- If applicable, add screenshots and/or recordings to visualize the
before and after of your change. -->
### **Before**
<img
src="https://github.com/user-attachments/assets/d85393f1-dcc4-4abe-b084-ab91c92ee22d"
width="200">
### **After**
<img
src="https://github.com/user-attachments/assets/197e6c4c-a116-49be-9ec7-b9fa5ac8a27a"
width="200">
<img
src="https://github.com/user-attachments/assets/8b1326b9-364a-41f1-9562-e833e014dc9c"
width="200">
## **Pre-merge author checklist**
- [ ] I’ve followed [MetaMask Contributor
Docs](https://github.com/MetaMask/contributor-docs) and [MetaMask Mobile
Coding
Standards](https://github.com/MetaMask/metamask-mobile/blob/main/.github/guidelines/CODING_GUIDELINES.md).
- [ ] I've completed the PR template to the best of my ability
- [ ] 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-mobile/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]
> Replaces Omni with Nomina across network constants, currency symbol,
and icon mappings (chain ID 166/NOM).
>
> - **Networks/Constants**
> - Add `NETWORKS_CHAIN_ID.NOMINA` (`0xa6` / `166`).
> - Map `CURRENCY_SYMBOL_BY_CHAIN_ID[NOMINA]` to `NOM` and add `NOMINA:
'NOM'` in `CHAINLIST_CURRENCY_SYMBOLS_MAP` (`app/constants/network.js`).
> - **Images/Icons**
> - Replace Omni token/icon with Nomina: import `nomina.png` and expose
`NOM: NOMINA` in `app/images/image-icons.js`.
> - **Custom Networks**
> - Rename `OMNI` to `NOMINA` in `NETWORK_CHAIN_ID` (`0xa6`).
> - Update image mapping to use `../../images/nomina.png` for
`NETWORK_CHAIN_ID.NOMINA` (`app/util/networks/customNetworks.tsx`).
>
> <sup>Written by [Cursor
Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit
f04f7dc. This will update automatically
on new commits. Configure
[here](https://cursor.com/dashboard?tab=bugbot).</sup>
<!-- /CURSOR_SUMMARY -->1 parent a679e8e commit 34a01a9
File tree
6 files changed
+8
-5
lines changed- app
- constants
- images
- util/networks
6 files changed
+8
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
63 | 63 | | |
64 | 64 | | |
65 | 65 | | |
| 66 | + | |
66 | 67 | | |
67 | 68 | | |
68 | 69 | | |
| |||
101 | 102 | | |
102 | 103 | | |
103 | 104 | | |
| 105 | + | |
104 | 106 | | |
105 | 107 | | |
106 | 108 | | |
| |||
135 | 137 | | |
136 | 138 | | |
137 | 139 | | |
| 140 | + | |
138 | 141 | | |
139 | 142 | | |
140 | 143 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
44 | | - | |
| 44 | + | |
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
| |||
107 | 107 | | |
108 | 108 | | |
109 | 109 | | |
110 | | - | |
| 110 | + | |
111 | 111 | | |
112 | 112 | | |
113 | 113 | | |
| |||
Loading
Binary file not shown.
Binary file not shown.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
354 | 354 | | |
355 | 355 | | |
356 | 356 | | |
357 | | - | |
| 357 | + | |
358 | 358 | | |
359 | 359 | | |
360 | 360 | | |
| |||
389 | 389 | | |
390 | 390 | | |
391 | 391 | | |
392 | | - | |
| 392 | + | |
393 | 393 | | |
394 | 394 | | |
395 | 395 | | |
| |||
429 | 429 | | |
430 | 430 | | |
431 | 431 | | |
432 | | - | |
| 432 | + | |
433 | 433 | | |
434 | 434 | | |
435 | 435 | | |
| |||
0 commit comments