1
0
mirror of https://github.com/oceanprotocol/market.git synced 2024-12-02 05:57:29 +01:00

Default to test networks (#1224)

* limit to test networks

* hide network list group when no networks in it

* remove warning, hide announcement banner on empty warning
This commit is contained in:
Matthias Kretschmann 2022-03-21 13:06:00 +00:00 committed by GitHub
parent d1d24ef4d5
commit 7701652e89
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 8 additions and 7 deletions

View File

@ -11,10 +11,10 @@ module.exports = {
// List of chainIds which metadata cache queries will return by default. // List of chainIds which metadata cache queries will return by default.
// This preselects the Chains user preferences. // This preselects the Chains user preferences.
chainIds: [1, 137, 56, 1285, 246], chainIds: [3, 4, 80001, 1287],
// List of all supported chainIds. Used to populate the Chains user preferences list. // List of all supported chainIds. Used to populate the Chains user preferences list.
chainIdsSupported: [1, 3, 4, 137, 80001, 1287, 56, 2021000, 1285, 246], chainIdsSupported: [3, 4, 80001, 1287],
infuraProjectId: process.env.NEXT_PUBLIC_INFURA_PROJECT_ID || 'xxx', infuraProjectId: process.env.NEXT_PUBLIC_INFURA_PROJECT_ID || 'xxx',

View File

@ -16,7 +16,7 @@
} }
], ],
"warning": { "warning": {
"main": "We are in beta. Please familiarize yourself with [the market](https://oceanprotocol.com/technology/marketplaces), [the risks](https://blog.oceanprotocol.com/on-staking-on-data-in-ocean-market-3d8e09eb0a13), and the [Terms of Use](/terms).", "main": "",
"polygonPublish": "Only republish data sets with a pool from ETH Mainnet into Polygon/Matic if the liquidity is **less than or equal to 1000 OCEAN in the original pool**. Doing otherwise will lead to [purgatory](https://github.com/oceanprotocol/list-purgatory) for the data set in Polygon/Matic." "polygonPublish": "Only republish data sets with a pool from ETH Mainnet into Polygon/Matic if the liquidity is **less than or equal to 1000 OCEAN in the original pool**. Doing otherwise will lead to [purgatory](https://github.com/oceanprotocol/list-purgatory) for the data set in Polygon/Matic."
}, },
"announcement": { "announcement": {

View File

@ -10,7 +10,6 @@ import PrivacyPreferenceCenter from '../Privacy/PrivacyPreferenceCenter'
import styles from './index.module.css' import styles from './index.module.css'
import { ToastContainer } from 'react-toastify' import { ToastContainer } from 'react-toastify'
import { useRouter } from 'next/router' import { useRouter } from 'next/router'
// import waves from '@oceanprotocol/art/waves/waves.png'
import content from '../../../content/purgatory.json' import content from '../../../content/purgatory.json'
export default function App({ export default function App({
@ -26,7 +25,9 @@ export default function App({
return ( return (
<div className={styles.app}> <div className={styles.app}>
{router.pathname === '/' && <AnnouncementBanner text={warning.main} />} {router.pathname === '/' && warning.main !== '' && (
<AnnouncementBanner text={warning.main} />
)}
<Header /> <Header />
{isInPurgatory && ( {isInPurgatory && (

View File

@ -13,10 +13,10 @@ export default function NetworksList({
<NetworkItem key={chainId} chainId={chainId} /> <NetworkItem key={chainId} chainId={chainId} />
)) ))
return ( return content.length ? (
<> <>
<h4 className={styles.titleGroup}>{title}</h4> <h4 className={styles.titleGroup}>{title}</h4>
<div className={styles.networks}>{content}</div> <div className={styles.networks}>{content}</div>
</> </>
) ) : null
} }