From dc27a76f5a72ee1af498e5cd27c265bc25ecac02 Mon Sep 17 00:00:00 2001 From: Xi Zhang Date: Tue, 19 Nov 2024 18:11:33 -0600 Subject: [PATCH] feat: Add Oasis Sapphire Mainnet and Testnet --- app/images/oasis.svg | 19 +++++++++++++++++++ shared/constants/network.ts | 15 +++++++++++++++ 2 files changed, 34 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 41f1d9fd0d95..589a6048b5b1 100644 --- a/shared/constants/network.ts +++ b/shared/constants/network.ts @@ -157,6 +157,8 @@ export const CHAIN_IDS = { NEAR_TESTNET: '0x18e', GRAVITY_ALPHA_MAINNET: '0x659', GRAVITY_ALPHA_TESTNET_SEPOLIA: '0x34c1', + OASIS_SAPPHIRE: '0x5afe', + OASIS_SAPPHIRE_TESTNET: '0x5aff', } as const; export const CHAINLIST_CHAIN_IDS_MAP = { @@ -197,6 +199,8 @@ export const CHAINLIST_CHAIN_IDS_MAP = { NEAR_AURORA_MAINNET: '0x4e454152', NEBULA_MAINNET: '0x585eb4b1', OASYS_MAINNET: '0xf8', + OASIS_SAPPHIRE: '0x5afe', + OASIS_SAPPHIRE_TESTNET: '0x5aff', OKXCHAIN_MAINNET: '0x42', PGN_PUBLIC_GOODS_NETWORK: '0x1a8', PULSECHAIN_MAINNET: '0x171', @@ -381,6 +385,8 @@ const CHAINLIST_CURRENCY_SYMBOLS_MAP = { TELOS_EVM_MAINNET: 'TLOS', TENET: 'TENET', DOGECHAIN_MAINNET: 'DOGE', + OASIS_SAPPHIRE: 'ROSE', + OASIS_SAPPHIRE_TESTNET: 'TEST', OASYS_MAINNET: 'OAS', HUOBI_ECO_CHAIN_MAINNET: 'HT', ACALA_NETWORK: 'ACA', @@ -468,6 +474,7 @@ export const NEAR_IMAGE_URL = './images/near.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'; +export const OASIS_IMAGE_URL = './images/oasis.svg'; export const INFURA_PROVIDER_TYPES = [ NETWORK_TYPES.MAINNET, @@ -689,6 +696,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]: + CHAINLIST_CURRENCY_SYMBOLS_MAP.OASIS_SAPPHIRE, + [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]: @@ -786,6 +797,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]: OASIS_IMAGE_URL, + [CHAINLIST_CHAIN_IDS_MAP.OASIS_SAPPHIRE_TESTNET]: OASIS_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, @@ -848,6 +861,8 @@ export const CHAIN_ID_TOKEN_IMAGE_MAP = { [CHAIN_IDS.GRAVITY_ALPHA_MAINNET]: GRAVITY_ALPHA_MAINNET_IMAGE_URL, [CHAIN_IDS.GRAVITY_ALPHA_TESTNET_SEPOLIA]: GRAVITY_ALPHA_TESTNET_SEPOLIA_IMAGE_URL, + [CHAIN_IDS.OASIS_SAPPHIRE]: OASIS_IMAGE_URL, + [CHAIN_IDS.OASIS_SAPPHIRE_TESTNET]: OASIS_IMAGE_URL, } as const; export const INFURA_BLOCKED_KEY = 'countryBlocked';