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

feat: Add Oasis Sapphire Mainnet and Testnet #28947

Open
wants to merge 1 commit 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
19 changes: 19 additions & 0 deletions app/images/oasis.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
15 changes: 15 additions & 0 deletions shared/constants/network.ts
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,8 @@ export const CHAIN_IDS = {
B3_TESTNET: '0x7c9',
GRAVITY_ALPHA_MAINNET: '0x659',
GRAVITY_ALPHA_TESTNET_SEPOLIA: '0x34c1',
OASIS_SAPPHIRE: '0x5afe',
OASIS_SAPPHIRE_TESTNET: '0x5aff',
} as const;

export const CHAINLIST_CHAIN_IDS_MAP = {
Expand Down Expand Up @@ -209,6 +211,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',
Expand Down Expand Up @@ -395,6 +399,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',
Expand Down Expand Up @@ -483,6 +489,7 @@ 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';
export const OASIS_IMAGE_URL = './images/oasis.svg';

export const INFURA_PROVIDER_TYPES = [
NETWORK_TYPES.MAINNET,
Expand Down Expand Up @@ -704,6 +711,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]:
Expand Down Expand Up @@ -801,6 +812,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,
Expand Down Expand Up @@ -867,6 +880,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';
Expand Down
Loading