Skip to content

Commit

Permalink
fix: add kaia network logo (#29494)
Browse files Browse the repository at this point in the history
<!--
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**
This PR is to update the Klaytn details to Kaia because of rebranding
changes of the network.
Please find more details here.

https://www.binance.com/en/support/announcement/binance-will-support-the-kaia-klay-rebranding-to-kaia-kaia-f75f933759ee49d0af1dfbce7e32144c?hl=en
https://medium.com/klaytn/say-hello-to-kaia-4182ccafe456
https://kaia.io


[![Open in GitHub
Codespaces](https://github.com/codespaces/badge.svg)](https://codespaces.new/MetaMask/metamask-extension/pull/27383?quickstart=1)

## **Related issues**
#27382

Fixes:

## **Manual testing steps**

1. Go to this networks section.
2. Add kaia network from 
3. https://chainlist.org/?search=kaia
4. Currently it shows the Klaytn logo and also shows for KAIA ticker.

## **Screenshots/Recordings**


### **Before**
<img width="322" alt="Screenshot 2024-09-25 at 2 59 30 PM"
src="https://github.com/user-attachments/assets/8dc6e383-a032-4176-92d8-113cac5755bc">


### **After**

Once updated it should show with new Kaia logo.

## **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/develop/.github/guidelines/CODING_GUIDELINES.md).
- [X] 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-extension/blob/develop/.github/guidelines/LABELING_GUIDELINES.md)).
Not required for external contributors.

## **Pre-merge reviewer checklist**

- [X] I've manually tested the PR (e.g. pull and build branch, run the
app, test code being changed).
- [X] 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.
  • Loading branch information
salimtb authored Jan 8, 2025
1 parent 386c2bd commit d8c2c7f
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 51 deletions.
9 changes: 9 additions & 0 deletions app/images/kaia.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
45 changes: 0 additions & 45 deletions app/images/klaytn.svg

This file was deleted.

12 changes: 6 additions & 6 deletions shared/constants/network.ts
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ export const CHAINLIST_CHAIN_IDS_MAP = {
HAQQ_NETWORK: '0x2be3',
IOTEX_MAINNET: '0x1251',
KCC_MAINNET: '0x141',
KLAYTN_MAINNET_CYPRESS: '0x2019',
KAIA_MAINNET: '0x2019',
KROMA_MAINNET: '0xff',
LIGHTLINK_PHOENIX_MAINNET: '0x762',
MANTA_PACIFIC_MAINNET: '0xa9',
Expand Down Expand Up @@ -375,7 +375,7 @@ const CHAINLIST_CURRENCY_SYMBOLS_MAP = {
NEAR_AURORA_MAINNET: 'ETH',
KROMA_MAINNET: 'ETH',
NEBULA_MAINNET: 'sFUEL',
KLAYTN_MAINNET_CYPRESS: 'KLAY',
KAIA_MAINNET: 'KAIA',
ENDURANCE_SMART_CHAIN_MAINNET: 'ACE',
CRONOS_MAINNET_BETA: 'CRO',
FLARE_MAINNET: 'FLR',
Expand Down Expand Up @@ -453,7 +453,7 @@ export const IOTEX_MAINNET_IMAGE_URL = './images/iotex.svg';
export const IOTEX_TOKEN_IMAGE_URL = './images/iotex-token.svg';
export const APE_TOKEN_IMAGE_URL = './images/ape-token.svg';
export const KCC_MAINNET_IMAGE_URL = './images/kcc-mainnet.svg';
export const KLAYTN_MAINNET_IMAGE_URL = './images/klaytn.svg';
export const KAIA_MAINNET_IMAGE_URL = './images/kaia.svg';
export const KROMA_MAINNET_IMAGE_URL = './images/kroma.svg';
export const LIGHT_LINK_IMAGE_URL = './images/lightlink.svg';
export const MANTA_PACIFIC_MAINNET_IMAGE_URL = './images/manta.svg';
Expand Down Expand Up @@ -663,8 +663,8 @@ export const CHAIN_ID_TO_CURRENCY_SYMBOL_MAP = {
CHAINLIST_CURRENCY_SYMBOLS_MAP.KROMA_MAINNET,
[CHAINLIST_CHAIN_IDS_MAP.NEBULA_MAINNET]:
CHAINLIST_CURRENCY_SYMBOLS_MAP.NEBULA_MAINNET,
[CHAINLIST_CHAIN_IDS_MAP.KLAYTN_MAINNET_CYPRESS]:
CHAINLIST_CURRENCY_SYMBOLS_MAP.KLAYTN_MAINNET_CYPRESS,
[CHAINLIST_CHAIN_IDS_MAP.KAIA_MAINNET]:
CHAINLIST_CURRENCY_SYMBOLS_MAP.KAIA_MAINNET,
[CHAINLIST_CHAIN_IDS_MAP.MOONRIVER]: CHAINLIST_CURRENCY_SYMBOLS_MAP.MOONRIVER,
[CHAINLIST_CHAIN_IDS_MAP.ENDURANCE_SMART_CHAIN_MAINNET]:
CHAINLIST_CURRENCY_SYMBOLS_MAP.ENDURANCE_SMART_CHAIN_MAINNET,
Expand Down Expand Up @@ -798,7 +798,7 @@ export const CHAIN_ID_TO_NETWORK_IMAGE_URL_MAP = {
[CHAINLIST_CHAIN_IDS_MAP.IOTEX_MAINNET]: IOTEX_MAINNET_IMAGE_URL,
[CHAINLIST_CHAIN_IDS_MAP.HAQQ_NETWORK]: HAQQ_NETWORK_IMAGE_URL,
[CHAINLIST_CHAIN_IDS_MAP.KCC_MAINNET]: KCC_MAINNET_IMAGE_URL,
[CHAINLIST_CHAIN_IDS_MAP.KLAYTN_MAINNET_CYPRESS]: KLAYTN_MAINNET_IMAGE_URL,
[CHAINLIST_CHAIN_IDS_MAP.KAIA_MAINNET]: KAIA_MAINNET_IMAGE_URL,
[CHAINLIST_CHAIN_IDS_MAP.KROMA_MAINNET]: KROMA_MAINNET_IMAGE_URL,
[CHAINLIST_CHAIN_IDS_MAP.LIGHTLINK_PHOENIX_MAINNET]: LIGHT_LINK_IMAGE_URL,
[CHAINLIST_CHAIN_IDS_MAP.MANTA_PACIFIC_MAINNET]:
Expand Down

0 comments on commit d8c2c7f

Please sign in to comment.