From 760b99c4512c7e689a4756998fc17d6013383474 Mon Sep 17 00:00:00 2001 From: Xi Zhang Date: Tue, 29 Oct 2024 18:52:13 -0500 Subject: [PATCH] feat: Add Oasis Sapphire Mainnet and Testnet --- app/images/oasis.svg | 19 +++++++++++++++++++ shared/constants/network.ts | 11 +++++++++++ 2 files changed, 30 insertions(+) create mode 100644 app/images/oasis.svg diff --git a/app/images/oasis.svg b/app/images/oasis.svg new file mode 100644 index 000000000000..4cccc9ff11ba --- /dev/null +++ b/app/images/oasis.svg @@ -0,0 +1,19 @@ + + + + + + + + + \ No newline at end of file diff --git a/shared/constants/network.ts b/shared/constants/network.ts index 64d330b73b2c..c422bff01b8a 100644 --- a/shared/constants/network.ts +++ b/shared/constants/network.ts @@ -193,6 +193,8 @@ export const CHAINLIST_CHAIN_IDS_MAP = { NEAR_AURORA_MAINNET: '0x4e454152', NEBULA_MAINNET: '0x585eb4b1', OASYS_MAINNET: '0xf8', + OASIS_SAPPHIRE_MAINNET: '0x23294', + OASIS_SAPPHIRE_TESTNET: '0x23295', OKXCHAIN_MAINNET: '0x42', PGN_PUBLIC_GOODS_NETWORK: '0x1a8', PULSECHAIN_MAINNET: '0x171', @@ -369,6 +371,8 @@ const CHAINLIST_CURRENCY_SYMBOLS_MAP = { TELOS_EVM_MAINNET: 'TLOS', TENET: 'TENET', DOGECHAIN_MAINNET: 'DOGE', + OASIS_SAPPHIRE_MAINNET: 'ROSE', + OASIS_SAPPHIRE_TESTNET: 'ROSE', OASYS_MAINNET: 'OAS', HUOBI_ECO_CHAIN_MAINNET: 'HT', ACALA_NETWORK: 'ACA', @@ -433,6 +437,7 @@ export const MOONRIVER_TOKEN_IMAGE_URL = './images/moonriver-token.svg'; export const NEAR_AURORA_MAINNET_IMAGE_URL = './images/near-aurora.svg'; export const NEBULA_MAINNET_IMAGE_URL = './images/nebula.svg'; export const OASYS_MAINNET_IMAGE_URL = './images/oasys.svg'; +export const OASIS_SAPPHIRE_MAINNET_IMAGE_URL = './images/oasis.svg'; export const OKXCHAIN_MAINNET_IMAGE_URL = './images/okx.svg'; export const PGN_MAINNET_IMAGE_URL = './images/pgn.svg'; export const ZKEVM_MAINNET_IMAGE_URL = './images/polygon-zkevm.svg'; @@ -675,6 +680,10 @@ export const CHAIN_ID_TO_CURRENCY_SYMBOL_MAP = { CHAINLIST_CURRENCY_SYMBOLS_MAP.DOGECHAIN_MAINNET, [CHAINLIST_CHAIN_IDS_MAP.OASYS_MAINNET]: CHAINLIST_CURRENCY_SYMBOLS_MAP.OASYS_MAINNET, + [CHAINLIST_CHAIN_IDS_MAP.OASIS_SAPPHIRE_MAINNET]: + CHAINLIST_CURRENCY_SYMBOLS_MAP.OASIS_SAPPHIRE_MAINNET, + [CHAINLIST_CHAIN_IDS_MAP.OASIS_SAPPHIRE_TESTNET]: + CHAINLIST_CURRENCY_SYMBOLS_MAP.OASIS_SAPPHIRE_TESTNET, [CHAINLIST_CHAIN_IDS_MAP.HUOBI_ECO_CHAIN_MAINNET]: CHAINLIST_CURRENCY_SYMBOLS_MAP.HUOBI_ECO_CHAIN_MAINNET, [CHAINLIST_CHAIN_IDS_MAP.ACALA_NETWORK]: @@ -772,6 +781,8 @@ export const CHAIN_ID_TO_NETWORK_IMAGE_URL_MAP = { [CHAINLIST_CHAIN_IDS_MAP.NEAR_AURORA_MAINNET]: NEAR_AURORA_MAINNET_IMAGE_URL, [CHAINLIST_CHAIN_IDS_MAP.NEBULA_MAINNET]: NEBULA_MAINNET_IMAGE_URL, [CHAINLIST_CHAIN_IDS_MAP.OASYS_MAINNET]: OASYS_MAINNET_IMAGE_URL, + [CHAINLIST_CHAIN_IDS_MAP.OASIS_SAPPHIRE_MAINNET]: OASIS_SAPPHIRE_MAINNET_IMAGE_URL, + [CHAINLIST_CHAIN_IDS_MAP.OASIS_SAPPHIRE_TESTNET]: OASIS_SAPPHIRE_MAINNET_IMAGE_URL, [CHAINLIST_CHAIN_IDS_MAP.OKXCHAIN_MAINNET]: OKXCHAIN_MAINNET_IMAGE_URL, [CHAINLIST_CHAIN_IDS_MAP.PGN_PUBLIC_GOODS_NETWORK]: PGN_MAINNET_IMAGE_URL, [CHAINLIST_CHAIN_IDS_MAP.POLYGON_ZKEVM]: ZKEVM_MAINNET_IMAGE_URL,