From 9eab91a5cad3332ba2cd6039bb17b95935eecf20 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Agust=C3=ADn=20Longoni?= Date: Wed, 22 Dec 2021 14:56:37 -0300 Subject: [PATCH] change network name: xDai -> Gnosis Chain (#2023) * change network label and add gnosis logo * change GC selected network * update gnosis chain logo * logo update * update constants * change gc on activity modal --- ...etwork-xdai-logo.svg => network-gnosis-chain-logo.svg} | 0 src/custom/components/Header/index.tsx | 2 +- src/custom/constants/chains/chainsMod.ts | 8 ++++---- src/custom/utils/xdai/constants.ts | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) rename src/custom/assets/cow-swap/{network-xdai-logo.svg => network-gnosis-chain-logo.svg} (100%) diff --git a/src/custom/assets/cow-swap/network-xdai-logo.svg b/src/custom/assets/cow-swap/network-gnosis-chain-logo.svg similarity index 100% rename from src/custom/assets/cow-swap/network-xdai-logo.svg rename to src/custom/assets/cow-swap/network-gnosis-chain-logo.svg diff --git a/src/custom/components/Header/index.tsx b/src/custom/components/Header/index.tsx index 0e5b56608..42b125a09 100644 --- a/src/custom/components/Header/index.tsx +++ b/src/custom/components/Header/index.tsx @@ -43,7 +43,7 @@ export const NETWORK_LABELS: { [chainId in ChainId]?: string } = { // [ChainId.ROPSTEN]: 'Ropsten', // [ChainId.GOERLI]: 'Görli', // [ChainId.KOVAN]: 'Kovan', - [ChainId.XDAI]: 'xDAI', + [ChainId.XDAI]: 'Gnosis Chain', } const CHAIN_CURRENCY_LABELS: { [chainId in ChainId]?: string } = { diff --git a/src/custom/constants/chains/chainsMod.ts b/src/custom/constants/chains/chainsMod.ts index 4be365bea..e6e99db24 100644 --- a/src/custom/constants/chains/chainsMod.ts +++ b/src/custom/constants/chains/chainsMod.ts @@ -2,7 +2,7 @@ import { L1ChainInfo } from '@src/constants/chains' // import EthereumLogo from 'assets/images/ethereum-logo.png' import EthereumLogo from 'assets/cow-swap/network-mainnet-logo.svg' // mod import RinkebyLogo from 'assets/cow-swap/network-rinkeby-logo.svg' // mod -import xDaiLogo from 'assets/cow-swap/network-xdai-logo.svg' // mod +import GnosisChainLogo from 'assets/cow-swap/network-gnosis-chain-logo.svg' // mod export * from '@src/constants/chains' export enum SupportedChainId { @@ -57,9 +57,9 @@ export const CHAIN_INFO: ChainInfo = { docs: 'https://docs.uniswap.org/', explorer: 'https://gnosis-protocol.io/xdai', infoLink: '', - label: 'xDai', + label: 'Gnosis Chain', // logoUrl: EthereumLogo, - logoUrl: xDaiLogo, // mod + logoUrl: GnosisChainLogo, // mod }, /* [SupportedChainId.ROPSTEN]: { docs: 'https://docs.uniswap.org/', @@ -105,7 +105,7 @@ export const NETWORK_LABELS: { [chainId in SupportedChainId | number]: string } // [SupportedChainId.GOERLI]: 'Görli', // [SupportedChainId.KOVAN]: 'Kovan', // [SupportedChainId.XDAI]: 'XDai', - [SupportedChainId.XDAI]: 'xDai', // mod + [SupportedChainId.XDAI]: 'Gnosis Chain', // mod // [SupportedChainId.ARBITRUM_KOVAN]: 'kArbitrum', // [SupportedChainId.ARBITRUM_ONE]: 'Arbitrum One', } diff --git a/src/custom/utils/xdai/constants.ts b/src/custom/utils/xdai/constants.ts index 0414d88ba..385bfffa6 100644 --- a/src/custom/utils/xdai/constants.ts +++ b/src/custom/utils/xdai/constants.ts @@ -17,7 +17,7 @@ export const WETH_XDAI = new Token( '0x6A023CCd1ff6F2045C3309768eAd9E68F978f6e1', 8, 'WETH', - 'Wrapped Ether on xDAI' + 'Wrapped Ether on Gnosis Chain' ) export const GNO_XDAI = new Token(ChainId.XDAI, '0x9C58BAcC331c9aa871AFD802DB6379a98e80CEdb', 18, 'GNO', 'Gnosis Token')