From 52fbb88e77c9876ee332d2823e95b0e600b4b7fd Mon Sep 17 00:00:00 2001 From: Nicholas Gambino Date: Tue, 5 Nov 2024 12:45:15 -0800 Subject: [PATCH] chore: Add gravity logo and image mappings --- app/images/gravity.svg | 10 ++++++++++ shared/constants/network.ts | 13 +++++++++++++ 2 files changed, 23 insertions(+) create mode 100644 app/images/gravity.svg diff --git a/app/images/gravity.svg b/app/images/gravity.svg new file mode 100644 index 000000000000..a94d44f8d285 --- /dev/null +++ b/app/images/gravity.svg @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/shared/constants/network.ts b/shared/constants/network.ts index 64d330b73b2c..4844e7c2e981 100644 --- a/shared/constants/network.ts +++ b/shared/constants/network.ts @@ -153,6 +153,8 @@ export const CHAIN_IDS = { ARBITRUM_SEPOLIA: '0x66eee', NEAR: '0x18d', NEAR_TESTNET: '0x18e', + GRAVITY_ALPHA_MAINNET: '0x659', + GRAVITY_ALPHA_TESTNET_SEPOLIA: '0x34c1', } as const; export const CHAINLIST_CHAIN_IDS_MAP = { @@ -209,6 +211,8 @@ export const CHAINLIST_CHAIN_IDS_MAP = { FILECOIN: '0x13a', NUMBERS: '0x290b', APE: '0x8173', + GRAVITY_ALPHA_MAINNET: '0x659', + GRAVITY_ALPHA_TESTNET_SEPOLIA: '0x34c1', } as const; // To add a deprecation warning to a network, add it to the array @@ -454,6 +458,8 @@ export const NUMBERS_TOKEN_IMAGE_URL = './images/numbers-token.png'; export const SEI_IMAGE_URL = './images/sei.svg'; 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 INFURA_PROVIDER_TYPES = [ NETWORK_TYPES.MAINNET, @@ -792,6 +798,10 @@ export const CHAIN_ID_TO_NETWORK_IMAGE_URL_MAP = { [CHAINLIST_CHAIN_IDS_MAP.BASE]: BASE_TOKEN_IMAGE_URL, [CHAINLIST_CHAIN_IDS_MAP.NUMBERS]: NUMBERS_MAINNET_IMAGE_URL, [CHAINLIST_CHAIN_IDS_MAP.SEI]: SEI_IMAGE_URL, + [CHAINLIST_CHAIN_IDS_MAP.GRAVITY_ALPHA_MAINNET]: + GRAVITY_ALPHA_MAINNET_IMAGE_URL, + [CHAINLIST_CHAIN_IDS_MAP.GRAVITY_ALPHA_TESTNET_SEPOLIA]: + GRAVITY_ALPHA_TESTNET_SEPOLIA_IMAGE_URL, } as const; export const CHAIN_ID_TO_ETHERS_NETWORK_NAME_MAP = { @@ -824,6 +834,9 @@ export const CHAIN_ID_TOKEN_IMAGE_MAP = { [CHAIN_IDS.MOONBEAM]: MOONBEAM_TOKEN_IMAGE_URL, [CHAINLIST_CHAIN_IDS_MAP.IOTEX_MAINNET]: IOTEX_TOKEN_IMAGE_URL, [CHAINLIST_CHAIN_IDS_MAP.APE_MAINNET]: APE_TOKEN_IMAGE_URL, + [CHAIN_IDS.GRAVITY_ALPHA_MAINNET]: GRAVITY_ALPHA_MAINNET_IMAGE_URL, + [CHAIN_IDS.GRAVITY_ALPHA_TESTNET_SEPOLIA]: + GRAVITY_ALPHA_TESTNET_SEPOLIA_IMAGE_URL, } as const; export const INFURA_BLOCKED_KEY = 'countryBlocked';