Skip to content

Commit 422201c

Browse files
authored
feat: add unichain logo (#30361)
<!-- 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** - Add Unichain ID: 130 - Add Network logo for Unichain and Unichain Sepolia - Use ETH Token Logo for Unichain and Unichain Sepolia <!-- 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? --> [![Open in GitHub Codespaces](https://github.com/codespaces/badge.svg)](https://codespaces.new/MetaMask/metamask-extension/pull/30234?quickstart=1) ## **Related issues** Fixes:N/A ## **Manual testing steps** 1. Go to app.uniswap.org 2. Connect w/ Metamask 3. Open In-App Wallet Settings in the right hand menu 4. Enable Unichain Beta 5. Attempt to Swap on Unichain Mainnet 6. Add Unichain to Metamask Networks ## **Screenshots/Recordings** <!-- If applicable, add screenshots and/or recordings to visualize the before and after of your change. --> ### **Before** <img width="400" alt="Screenshot 2025-02-10 at 14 00 31" src="https://github.com/user-attachments/assets/de3b61d3-96d9-4583-87c3-71c8c18fb484" /> ### **After** <!-- [screenshots/recordings] --> <img width="398" alt="Screenshot 2025-02-10 at 14 03 57" src="https://github.com/user-attachments/assets/80647d44-a495-45fe-b667-5223c323cec9" /> ## **Pre-merge author checklist** - [x] 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 - [x] 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.
1 parent 739fac8 commit 422201c

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

app/images/unichain.svg

+10
Loading

shared/constants/network.ts

+6
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,7 @@ export const CHAIN_IDS = {
138138
CELO_TESTNET: '0xaef3',
139139
ZK_SYNC_ERA_TESTNET: '0x12c',
140140
MANTA_SEPOLIA: '0x138b',
141+
UNICHAIN: '0x82',
141142
UNICHAIN_SEPOLIA: '0x515',
142143
LINEA_MAINNET: '0xe708',
143144
AURORA: '0x4e454152',
@@ -519,6 +520,7 @@ export const SONIC_MAINNET_IMAGE_URL = './images/sonic.svg';
519520
export const SONEIUM_IMAGE_URL = './images/soneium.svg';
520521
export const MODE_SEPOLIA_IMAGE_URL = './images/mode-sepolia.svg';
521522
export const MODE_IMAGE_URL = './images/mode.svg';
523+
export const UNICHAIN_IMAGE_URL = './images/unichain.svg';
522524

523525
export const INFURA_PROVIDER_TYPES = [
524526
NETWORK_TYPES.MAINNET,
@@ -883,6 +885,8 @@ export const CHAIN_ID_TO_NETWORK_IMAGE_URL_MAP = {
883885
[CHAINLIST_CHAIN_IDS_MAP.SONEIUM_TESTNET]: SONEIUM_IMAGE_URL,
884886
[CHAINLIST_CHAIN_IDS_MAP.MODE_SEPOLIA]: MODE_SEPOLIA_IMAGE_URL,
885887
[CHAINLIST_CHAIN_IDS_MAP.MODE]: MODE_IMAGE_URL,
888+
[CHAINLIST_CHAIN_IDS_MAP.UNICHAIN]: UNICHAIN_IMAGE_URL,
889+
[CHAINLIST_CHAIN_IDS_MAP.UNICHAIN_SEPOLIA]: UNICHAIN_IMAGE_URL,
886890
} as const;
887891

888892
export const CHAIN_ID_TO_ETHERS_NETWORK_NAME_MAP = {
@@ -928,6 +932,8 @@ export const CHAIN_ID_TOKEN_IMAGE_MAP = {
928932
[CHAINLIST_CHAIN_IDS_MAP.SONIC_MAINNET]: SONIC_MAINNET_IMAGE_URL,
929933
[CHAIN_IDS.MODE]: ETH_TOKEN_IMAGE_URL,
930934
[CHAINLIST_CHAIN_IDS_MAP.FUNKICHAIN]: ETH_TOKEN_IMAGE_URL,
935+
[CHAINLIST_CHAIN_IDS_MAP.UNICHAIN]: ETH_TOKEN_IMAGE_URL,
936+
[CHAINLIST_CHAIN_IDS_MAP.UNICHAIN_SEPOLIA]: ETH_TOKEN_IMAGE_URL,
931937
} as const;
932938

933939
export const INFURA_BLOCKED_KEY = 'countryBlocked';

0 commit comments

Comments
 (0)