Skip to content

Commit

Permalink
feat: Add Oasis Sapphire Mainnet and Testnet
Browse files Browse the repository at this point in the history
  • Loading branch information
aefhm committed Dec 5, 2024
1 parent 79a8f57 commit dc27a76
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 0 deletions.
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 @@ -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 = {
Expand Down Expand Up @@ -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',
Expand Down Expand Up @@ -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',
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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]:
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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';
Expand Down

0 comments on commit dc27a76

Please sign in to comment.