From 94ef8f009d9d647d51b2fd25ae58c2010ead146e Mon Sep 17 00:00:00 2001 From: Vadim Date: Tue, 14 Apr 2020 11:37:42 +0300 Subject: [PATCH] Remove xDai from the list of supported chains --- src/components/Loading/index.js | 4 ++-- src/components/Logo/index.js | 6 +++--- src/contracts/helpers.js | 6 ------ src/utils/constants.js | 8 -------- 4 files changed, 5 insertions(+), 19 deletions(-) diff --git a/src/components/Loading/index.js b/src/components/Loading/index.js index 3a000a1..aae931c 100644 --- a/src/components/Loading/index.js +++ b/src/components/Loading/index.js @@ -1,5 +1,5 @@ import React from 'react' -import xDaiLogo from './xdai.svg' +//import xDaiLogo from './xdai.svg' import poaLogo from './core.svg' import sokolLogo from './sokol.svg' import kovanLogo from './kovan.svg' @@ -9,7 +9,7 @@ const getLogoSrc = networkBranch => { { core: poaLogo, sokol: sokolLogo, - dai: xDaiLogo, + //dai: xDaiLogo, kovan: kovanLogo }[networkBranch] || poaLogo ) diff --git a/src/components/Logo/index.js b/src/components/Logo/index.js index a13605a..fcc2b27 100644 --- a/src/components/Logo/index.js +++ b/src/components/Logo/index.js @@ -2,7 +2,7 @@ import React from 'react' import { LogoPOA } from '../LogoPOA' import { LogoSokol } from '../LogoSokol' import { LogoKovan } from '../LogoKovan' -import { LogoDai } from '../LogoDai' +//import { LogoDai } from '../LogoDai' import { constants } from '../../utils/constants' export const Logo = ({ href = null, extraClass = '', networkBranch = '' }) => { @@ -11,8 +11,8 @@ export const Logo = ({ href = null, extraClass = '', networkBranch = '' }) => { return case constants.KOVAN: return - case constants.DAI: - return + //case constants.DAI: + // return default: return } diff --git a/src/contracts/helpers.js b/src/contracts/helpers.js index 610786f..4815e69 100644 --- a/src/contracts/helpers.js +++ b/src/contracts/helpers.js @@ -3,9 +3,6 @@ import messages from '../utils/messages' import swal from 'sweetalert2' function addressesURL(branch) { - if (branch === constants.DAI) { - branch = 'ce2c77256f0d37fc48baa9b6cab806261d034785' - } const URL = `https://raw.githubusercontent.com/${constants.organization}/${constants.repoName}/${branch}/${ constants.addressesSourceFile }` @@ -13,9 +10,6 @@ function addressesURL(branch) { } function ABIURL(branch, contract) { - if (branch === constants.DAI) { - branch = 'ce2c77256f0d37fc48baa9b6cab806261d034785' - } const URL = `https://raw.githubusercontent.com/${constants.organization}/${constants.repoName}/${branch}/abis/${ constants.ABIsSources[contract] }` diff --git a/src/utils/constants.js b/src/utils/constants.js index 29f9742..3083fda 100644 --- a/src/utils/constants.js +++ b/src/utils/constants.js @@ -53,7 +53,6 @@ constants.navigationData = [ constants.SOKOL = 'sokol' constants.CORE = 'core' -constants.DAI = 'dai' constants.KOVAN = 'kovan' constants.NETWORKS = { @@ -77,13 +76,6 @@ constants.NETWORKS = { RPC: 'https://core.poa.network', BRANCH: constants.CORE, SORTORDER: 1 - }, - '100': { - NAME: 'xDai', - FULLNAME: 'xDai Stable Chain', - RPC: 'https://dai.poa.network', - BRANCH: constants.DAI, - SORTORDER: 2 } }