Skip to content

Commit 34a01a9

Browse files
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

6 files changed

+8
-5
lines changed

app/constants/network.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ export const NETWORKS_CHAIN_ID = {
6363
INJECTIVE: toHex('1776'),
6464
PLASMA: toHex('9745'),
6565
CRONOS: toHex('25'),
66+
NOMINA: toHex('166'),
6667
};
6768

6869
// To add a deprecation warning to a network, add it to the array
@@ -101,6 +102,7 @@ export const CHAINLIST_CURRENCY_SYMBOLS_MAP = {
101102
PLASMA: 'XPL',
102103
CRONOS: 'CRO',
103104
HYPE: 'HYPE',
105+
NOMINA: 'NOM',
104106
};
105107

106108
export const CURRENCY_SYMBOL_BY_CHAIN_ID = {
@@ -135,6 +137,7 @@ export const CURRENCY_SYMBOL_BY_CHAIN_ID = {
135137
[NETWORKS_CHAIN_ID.PLASMA]: CHAINLIST_CURRENCY_SYMBOLS_MAP.PLASMA,
136138
[NETWORKS_CHAIN_ID.CRONOS]: CHAINLIST_CURRENCY_SYMBOLS_MAP.CRONOS,
137139
[NETWORKS_CHAIN_ID.HYPER_EVM]: CHAINLIST_CURRENCY_SYMBOLS_MAP.HYPE,
140+
[NETWORKS_CHAIN_ID.NOMINA]: CHAINLIST_CURRENCY_SYMBOLS_MAP.NOMINA,
138141
};
139142

140143
export const TEST_NETWORK_IDS = [

app/images/image-icons.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ import APECHAIN_TOKEN from './apechain-token.png';
4141
import BERACHAIN_TOKEN from './berachain-token.png';
4242
import EDU from './edu.png';
4343
import ABSTRACT from './abstract.png';
44-
import OMNI_TOKEN from './omni-token.png';
44+
import NOMINA from './nomina.png';
4545
import FRAX from './frax.png';
4646
import XDC from './xdc.png';
4747
import MEGAETH_MAINNET from './megaeth-mainnet-logo.png';
@@ -107,7 +107,7 @@ export default {
107107
BERA: BERACHAIN_TOKEN,
108108
EDU,
109109
ABSTRACT,
110-
OMNI: OMNI_TOKEN,
110+
NOM: NOMINA,
111111
HL,
112112
FRAX,
113113
XDC,

app/images/nomina.png

2.71 KB
Loading

app/images/omni-token.png

-154 KB
Binary file not shown.

app/images/omni.png

-17.5 KB
Binary file not shown.

app/util/networks/customNetworks.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -354,7 +354,7 @@ export const NETWORK_CHAIN_ID: {
354354
readonly BERACHAIN: '0x138de';
355355
readonly EDU: '0xa3c3';
356356
readonly ABSTRACT: '0xab5';
357-
readonly OMNI: '0xa6';
357+
readonly NOMINA: '0xa6';
358358
readonly XRPLEVM: '0x15f900';
359359
readonly FRAXTAL: '0xfc';
360360
readonly XDC: '0x32';
@@ -389,7 +389,7 @@ export const NETWORK_CHAIN_ID: {
389389
BERACHAIN: '0x138de',
390390
EDU: '0xa3c3',
391391
ABSTRACT: '0xab5',
392-
OMNI: '0xa6',
392+
NOMINA: '0xa6',
393393
XRPLEVM: '0x15f900',
394394
FRAXTAL: '0xfc',
395395
XDC: '0x32',
@@ -429,7 +429,7 @@ export const CustomNetworkImgMapping: Record<Hex, string> = {
429429
[NETWORK_CHAIN_ID.BERACHAIN]: require('../../images/berachain.png'),
430430
[NETWORK_CHAIN_ID.EDU]: require('../../images/edu.png'),
431431
[NETWORK_CHAIN_ID.ABSTRACT]: require('../../images/abstract.png'),
432-
[NETWORK_CHAIN_ID.OMNI]: require('../../images/omni.png'),
432+
[NETWORK_CHAIN_ID.NOMINA]: require('../../images/nomina.png'),
433433
[NETWORK_CHAIN_ID.XRPLEVM]: require('../../images/xrplevm.png'),
434434
[NETWORK_CHAIN_ID.FRAXTAL]: require('../../images/fraxtal.png'),
435435
[NETWORK_CHAIN_ID.XDC]: require('../../images/xdc.png'),

0 commit comments

Comments
 (0)