Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add peaq logo svg #30051

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions app/images/peaq.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 @@ -175,6 +175,7 @@ export const CHAIN_IDS = {
INK: '0xdef1',
MODE_SEPOLIA: '0x397',
MODE: '0x868b',
PEAQ: '0xd0a',
} as const;

export const CHAINLIST_CHAIN_IDS_MAP = {
Expand Down Expand Up @@ -243,6 +244,7 @@ export const CHAINLIST_CHAIN_IDS_MAP = {
SONEIUM_TESTNET: '0x79a',
MODE_SEPOLIA: '0x397',
MODE: '0x868b',
PEAQ: '0xd0a',
} as const;

// To add a deprecation warning to a network, add it to the array
Expand Down Expand Up @@ -299,6 +301,7 @@ export const INK_DISPLAY_NAME = 'Ink Mainnet';
export const SONEIUM_DISPLAY_NAME = 'Soneium Mainnet';
export const MODE_SEPOLIA_DISPLAY_NAME = 'Mode Sepolia';
export const MODE_DISPLAY_NAME = 'Mode Mainnet';
export const PEAQ_DISPLAY_NAME = 'peaq';

export const infuraProjectId = process.env.INFURA_PROJECT_ID;
export const getRpcUrl = ({
Expand Down Expand Up @@ -427,6 +430,7 @@ const CHAINLIST_CURRENCY_SYMBOLS_MAP = {
SONEIUM_MAINNET: 'ETH',
SONEIUM_TESTNET: 'ETH',
MODE: 'ETH',
PEAQ: 'PEAQ',
} as const;

export const CHAINLIST_CURRENCY_SYMBOLS_MAP_NETWORK_COLLISION = {
Expand Down Expand Up @@ -519,6 +523,7 @@ export const SONIC_MAINNET_IMAGE_URL = './images/sonic.svg';
export const SONEIUM_IMAGE_URL = './images/soneium.svg';
export const MODE_SEPOLIA_IMAGE_URL = './images/mode-sepolia.svg';
export const MODE_IMAGE_URL = './images/mode.svg';
export const PEAQ_IMAGE_URL = './images/peaq.svg';

export const INFURA_PROVIDER_TYPES = [
NETWORK_TYPES.MAINNET,
Expand Down Expand Up @@ -756,6 +761,8 @@ export const CHAIN_ID_TO_CURRENCY_SYMBOL_MAP = {
CHAINLIST_CURRENCY_SYMBOLS_MAP.SONEIUM_MAINNET,
[CHAINLIST_CHAIN_IDS_MAP.SONEIUM_TESTNET]:
CHAINLIST_CURRENCY_SYMBOLS_MAP.SONEIUM_TESTNET,
[CHAINLIST_CHAIN_IDS_MAP.PEAQ]:
CHAINLIST_CURRENCY_SYMBOLS_MAP.PEAQ,
} as const;

/**
Expand Down Expand Up @@ -883,6 +890,7 @@ export const CHAIN_ID_TO_NETWORK_IMAGE_URL_MAP = {
[CHAINLIST_CHAIN_IDS_MAP.SONEIUM_TESTNET]: SONEIUM_IMAGE_URL,
[CHAINLIST_CHAIN_IDS_MAP.MODE_SEPOLIA]: MODE_SEPOLIA_IMAGE_URL,
[CHAINLIST_CHAIN_IDS_MAP.MODE]: MODE_IMAGE_URL,
[CHAINLIST_CHAIN_IDS_MAP.PEAQ]: PEAQ_IMAGE_URL,
} as const;

export const CHAIN_ID_TO_ETHERS_NETWORK_NAME_MAP = {
Expand Down Expand Up @@ -928,6 +936,7 @@ export const CHAIN_ID_TOKEN_IMAGE_MAP = {
[CHAINLIST_CHAIN_IDS_MAP.SONIC_MAINNET]: SONIC_MAINNET_IMAGE_URL,
[CHAIN_IDS.MODE]: ETH_TOKEN_IMAGE_URL,
[CHAINLIST_CHAIN_IDS_MAP.FUNKICHAIN]: ETH_TOKEN_IMAGE_URL,
[CHAIN_IDS.PEAQ]: PEAQ_IMAGE_URL,
} as const;

export const INFURA_BLOCKED_KEY = 'countryBlocked';
Expand Down