diff --git a/app.config.js b/app.config.js index f26006eef..284628695 100644 --- a/app.config.js +++ b/app.config.js @@ -19,10 +19,10 @@ module.exports = { // List of chainIds which metadata cache queries will return by default. // This preselects the Chains user preferences. - chainIds: [3, 4, 80001, 1287], + chainIds: [1, 137, 56, 246, 1285], // List of all supported chainIds. Used to populate the Chains user preferences list. - chainIdsSupported: [3, 4, 80001, 1287], + chainIdsSupported: [1, 137, 56, 246, 1285, 3, 4, 80001, 1287], infuraProjectId: process.env.NEXT_PUBLIC_INFURA_PROJECT_ID || 'xxx', diff --git a/content/footer.json b/content/footer.json index d4a89329f..365c2b78b 100644 --- a/content/footer.json +++ b/content/footer.json @@ -12,5 +12,8 @@ "name": "Discord", "url": "https://discord.gg/TnXjkR5" } - ] + ], + "stats": { + "note": "Counted on-chain from our NFT and pool factories. Includes assets in all Ocean Market forks and [purgatory](https://github.com/oceanprotocol/list-purgatory)." + } } diff --git a/content/site.json b/content/site.json index 5e0ce2500..abcd756ea 100644 --- a/content/site.json +++ b/content/site.json @@ -1,7 +1,7 @@ { "siteTitle": "Ocean Market", "siteTagline": "A marketplace to find, publish and trade data sets in the Ocean Network.", - "siteUrl": "https://v4.market.oceanprotocol.com", + "siteUrl": "https://market.oceanprotocol.com", "siteImage": "/share.png", "copyright": "All Rights Reserved. Powered by ", "menu": [ @@ -14,12 +14,8 @@ "link": "/profile" } ], + "announcement": "Data NFTs, One-Sided Staking and more. [Explore OceanONDA V4](https://blog.oceanprotocol.com).", "warning": { - "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." - }, - "announcement": { - "main": "Ocean Market is [available on Polygon](https://blog.oceanprotocol.com/ocean-on-polygon-network-8abad19cbf47).", - "polygon": "Polygon/Matic EVM support is in early stages. [Use the Polygon Bridge](https://docs.oceanprotocol.com/tutorials/polygon-bridge/) to get mOCEAN." + "ctd": "Compute-to-Data is still in a testing phase, please use it only on test networks." } } diff --git a/package-lock.json b/package-lock.json index 906b5d821..4e4c49f00 100644 --- a/package-lock.json +++ b/package-lock.json @@ -13,7 +13,7 @@ "@coingecko/cryptoformat": "^0.4.4", "@loadable/component": "^5.15.2", "@oceanprotocol/art": "^3.2.0", - "@oceanprotocol/lib": "^1.0.0-next.44", + "@oceanprotocol/lib": "^1.0.0-next.45", "@oceanprotocol/typographies": "^0.1.0", "@portis/web3": "^4.0.7", "@tippyjs/react": "^4.2.6", @@ -4518,16 +4518,16 @@ "integrity": "sha512-aUQtg4m5hJlQ0u8C29O9TXJWcAenO3G9vP+vf6LNFkpTDOCMycN/F0SzHS89VNrvGUha8oTDEg7FAkfZBPv2WA==" }, "node_modules/@oceanprotocol/contracts": { - "version": "1.0.0-alpha.34", - "resolved": "https://registry.npmjs.org/@oceanprotocol/contracts/-/contracts-1.0.0-alpha.34.tgz", - "integrity": "sha512-ZhNCakYbUpXrffpS98Hj0r5K70IzzTXNoYKBX4Ks3Qqc2T7mhXIxtakzygkM0lEk038ImWuzS2PAZKTATz+X2w==" + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/@oceanprotocol/contracts/-/contracts-1.0.0.tgz", + "integrity": "sha512-rDCIooe1WHipLejuGhx2Wv/88SB7bWrN3+XHCWxXyPKTmmSQsgxKZPPzbIVBQ0ESChQZqGSBBJyqErqwwW4eBw==" }, "node_modules/@oceanprotocol/lib": { - "version": "1.0.0-next.44", - "resolved": "https://registry.npmjs.org/@oceanprotocol/lib/-/lib-1.0.0-next.44.tgz", - "integrity": "sha512-TXrHvY7+t7WSJXAVkSip0hp5byE8G4citJGirB5qJt34VGA+ujd+CoLU1bB/5gFSYH3eM56K4pcUPfCHZjeN3w==", + "version": "1.0.0-next.45", + "resolved": "https://registry.npmjs.org/@oceanprotocol/lib/-/lib-1.0.0-next.45.tgz", + "integrity": "sha512-WsSMZubvS5kVu4p6jQzxeENWitXok7M6yKjuHW0uhYJIYNx8JrZsCgYp9yz0p73a+bEQazSnr1nmvc1jVLU8jQ==", "dependencies": { - "@oceanprotocol/contracts": "^1.0.0-alpha.34", + "@oceanprotocol/contracts": "^1.0.0", "bignumber.js": "^9.0.2", "cross-fetch": "^3.1.5", "crypto-js": "^4.1.1", @@ -44760,16 +44760,16 @@ "integrity": "sha512-aUQtg4m5hJlQ0u8C29O9TXJWcAenO3G9vP+vf6LNFkpTDOCMycN/F0SzHS89VNrvGUha8oTDEg7FAkfZBPv2WA==" }, "@oceanprotocol/contracts": { - "version": "1.0.0-alpha.34", - "resolved": "https://registry.npmjs.org/@oceanprotocol/contracts/-/contracts-1.0.0-alpha.34.tgz", - "integrity": "sha512-ZhNCakYbUpXrffpS98Hj0r5K70IzzTXNoYKBX4Ks3Qqc2T7mhXIxtakzygkM0lEk038ImWuzS2PAZKTATz+X2w==" + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/@oceanprotocol/contracts/-/contracts-1.0.0.tgz", + "integrity": "sha512-rDCIooe1WHipLejuGhx2Wv/88SB7bWrN3+XHCWxXyPKTmmSQsgxKZPPzbIVBQ0ESChQZqGSBBJyqErqwwW4eBw==" }, "@oceanprotocol/lib": { - "version": "1.0.0-next.44", - "resolved": "https://registry.npmjs.org/@oceanprotocol/lib/-/lib-1.0.0-next.44.tgz", - "integrity": "sha512-TXrHvY7+t7WSJXAVkSip0hp5byE8G4citJGirB5qJt34VGA+ujd+CoLU1bB/5gFSYH3eM56K4pcUPfCHZjeN3w==", + "version": "1.0.0-next.45", + "resolved": "https://registry.npmjs.org/@oceanprotocol/lib/-/lib-1.0.0-next.45.tgz", + "integrity": "sha512-WsSMZubvS5kVu4p6jQzxeENWitXok7M6yKjuHW0uhYJIYNx8JrZsCgYp9yz0p73a+bEQazSnr1nmvc1jVLU8jQ==", "requires": { - "@oceanprotocol/contracts": "^1.0.0-alpha.34", + "@oceanprotocol/contracts": "^1.0.0", "bignumber.js": "^9.0.2", "cross-fetch": "^3.1.5", "crypto-js": "^4.1.1", diff --git a/package.json b/package.json index 9fced1b7d..bde266e28 100644 --- a/package.json +++ b/package.json @@ -25,7 +25,7 @@ "@coingecko/cryptoformat": "^0.4.4", "@loadable/component": "^5.15.2", "@oceanprotocol/art": "^3.2.0", - "@oceanprotocol/lib": "^1.0.0-next.44", + "@oceanprotocol/lib": "^1.0.0-next.45", "@oceanprotocol/typographies": "^0.1.0", "@portis/web3": "^4.0.7", "@tippyjs/react": "^4.2.6", diff --git a/src/@context/MarketMetadata/_types.ts b/src/@context/MarketMetadata/_types.ts index b84adadc5..c51218edc 100644 --- a/src/@context/MarketMetadata/_types.ts +++ b/src/@context/MarketMetadata/_types.ts @@ -29,6 +29,8 @@ export interface AppConfig { classNameLight: string storageKey: string } + v3MetadataCacheUri: string + v3MarketUri: string } export interface SiteContent { siteTitle: string @@ -40,13 +42,9 @@ export interface SiteContent { name: string link: string }[] + announcement: string warning: { - main: string - polygonPublish: string - } - announcement: { - main: string - polygon: string + ctd: string } } diff --git a/src/@context/UserPreferences.tsx b/src/@context/UserPreferences.tsx index 0d963aa21..84618061e 100644 --- a/src/@context/UserPreferences.tsx +++ b/src/@context/UserPreferences.tsx @@ -31,7 +31,7 @@ interface UserPreferencesValue { const UserPreferencesContext = createContext(null) -const localStorageKey = 'ocean-user-preferences' +const localStorageKey = 'ocean-user-preferences-v4' function getLocalStorage(): UserPreferencesValue { const storageParsed = diff --git a/src/components/@shared/atoms/Badge/index.tsx b/src/components/@shared/atoms/Badge/index.tsx index c5e32e4d4..8a6c01018 100644 --- a/src/components/@shared/atoms/Badge/index.tsx +++ b/src/components/@shared/atoms/Badge/index.tsx @@ -1,11 +1,11 @@ -import React, { ReactElement } from 'react' +import React, { ReactElement, ReactNode } from 'react' import styles from './index.module.css' import classNames from 'classnames/bind' const cx = classNames.bind(styles) export interface BadgeProps { - label: string + label: string | ReactNode className?: string } diff --git a/src/components/App/index.tsx b/src/components/App/index.tsx index d2ef6dbc4..e9eb4580a 100644 --- a/src/components/App/index.tsx +++ b/src/components/App/index.tsx @@ -8,8 +8,7 @@ import AnnouncementBanner from '@shared/AnnouncementBanner' import PrivacyPreferenceCenter from '../Privacy/PrivacyPreferenceCenter' import styles from './index.module.css' import { ToastContainer } from 'react-toastify' -import { useRouter } from 'next/router' -import content from '../../../content/purgatory.json' +import contentPurgatory from '../../../content/purgatory.json' import { useMarketMetadata } from '@context/MarketMetadata' export default function App({ @@ -17,24 +16,22 @@ export default function App({ }: { children: ReactElement }): ReactElement { - const router = useRouter() - const { siteContent, appConfig } = useMarketMetadata() const { accountId } = useWeb3() const { isInPurgatory, purgatoryData } = useAccountPurgatory(accountId) return (
- Counted on-chain from our NFT and pool factories. Does not filter out - assets in{' '} - - list-purgatory - -
+