Skip to content

Commit

Permalink
feat: add B3 logo svg (#27778)
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**

Adding logo for the B3 network

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

## **Related issues**

Fixes:

## **Manual testing steps**

Go to add network
1. Add B3 network (https://docs.b3.fun)
2. B3 network should have a logo
3. B3 token should have a logo

## **Screenshots/Recordings**

<!-- If applicable, add screenshots and/or recordings to visualize the
before and after of your change. -->

### **Before**

<!-- [screenshots/recordings] -->

### **After**

<!-- [screenshots/recordings] -->

## **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/develop/.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-extension/blob/develop/.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.
  • Loading branch information
seangeng authored Dec 6, 2024
1 parent aa2823f commit 4112ff3
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions app/images/b3.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 9 additions & 0 deletions shared/constants/network.ts
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,8 @@ export const CHAIN_IDS = {
ARBITRUM_SEPOLIA: '0x66eee',
NEAR: '0x18d',
NEAR_TESTNET: '0x18e',
B3: '0x208d',
B3_TESTNET: '0x7c9',
GRAVITY_ALPHA_MAINNET: '0x659',
GRAVITY_ALPHA_TESTNET_SEPOLIA: '0x34c1',
} as const;
Expand Down Expand Up @@ -222,6 +224,8 @@ export const CHAINLIST_CHAIN_IDS_MAP = {
ZORA_MAINNET: '0x76adf1',
FILECOIN: '0x13a',
NUMBERS: '0x290b',
B3: '0x208d',
B3_TESTNET: '0x7c9',
APE: '0x8173',
GRAVITY_ALPHA_MAINNET: '0x659',
GRAVITY_ALPHA_TESTNET_SEPOLIA: '0x34c1',
Expand Down Expand Up @@ -475,6 +479,7 @@ export const NUMBERS_MAINNET_IMAGE_URL = './images/numbers-mainnet.svg';
export const NUMBERS_TOKEN_IMAGE_URL = './images/numbers-token.png';
export const SEI_IMAGE_URL = './images/sei.svg';
export const NEAR_IMAGE_URL = './images/near.svg';
export const B3_IMAGE_URL = './images/b3.svg';
export const APE_IMAGE_URL = './images/ape.svg';
export const GRAVITY_ALPHA_MAINNET_IMAGE_URL = './images/gravity.svg';
export const GRAVITY_ALPHA_TESTNET_SEPOLIA_IMAGE_URL = './images/gravity.svg';
Expand Down Expand Up @@ -816,6 +821,8 @@ export const CHAIN_ID_TO_NETWORK_IMAGE_URL_MAP = {
[CHAINLIST_CHAIN_IDS_MAP.BASE]: BASE_TOKEN_IMAGE_URL,
[CHAINLIST_CHAIN_IDS_MAP.NUMBERS]: NUMBERS_MAINNET_IMAGE_URL,
[CHAINLIST_CHAIN_IDS_MAP.SEI]: SEI_IMAGE_URL,
[CHAINLIST_CHAIN_IDS_MAP.B3]: B3_IMAGE_URL,
[CHAINLIST_CHAIN_IDS_MAP.B3_TESTNET]: B3_IMAGE_URL,
[CHAINLIST_CHAIN_IDS_MAP.GRAVITY_ALPHA_MAINNET]:
GRAVITY_ALPHA_MAINNET_IMAGE_URL,
[CHAINLIST_CHAIN_IDS_MAP.GRAVITY_ALPHA_TESTNET_SEPOLIA]:
Expand Down Expand Up @@ -854,6 +861,8 @@ export const CHAIN_ID_TOKEN_IMAGE_MAP = {
[CHAIN_IDS.MOONRIVER]: MOONRIVER_TOKEN_IMAGE_URL,
[CHAIN_IDS.MOONBEAM]: MOONBEAM_TOKEN_IMAGE_URL,
[CHAINLIST_CHAIN_IDS_MAP.IOTEX_MAINNET]: IOTEX_TOKEN_IMAGE_URL,
[CHAIN_IDS.B3]: B3_IMAGE_URL,
[CHAIN_IDS.B3_TESTNET]: B3_IMAGE_URL,
[CHAINLIST_CHAIN_IDS_MAP.APE_MAINNET]: APE_TOKEN_IMAGE_URL,
[CHAIN_IDS.GRAVITY_ALPHA_MAINNET]: GRAVITY_ALPHA_MAINNET_IMAGE_URL,
[CHAIN_IDS.GRAVITY_ALPHA_TESTNET_SEPOLIA]:
Expand Down

0 comments on commit 4112ff3

Please sign in to comment.