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

update oceanJS to 0.16.4 replaced ddo type from any to DDO

This commit is contained in:
Bogdan Fazakas 2021-07-08 10:57:40 +03:00
parent 339b4238e6
commit d250da3eab
4 changed files with 1746 additions and 1599 deletions

3337
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -26,7 +26,7 @@
"@coingecko/cryptoformat": "^0.4.2", "@coingecko/cryptoformat": "^0.4.2",
"@loadable/component": "^5.15.0", "@loadable/component": "^5.15.0",
"@oceanprotocol/art": "^3.0.0", "@oceanprotocol/art": "^3.0.0",
"@oceanprotocol/lib": "^0.16.2", "@oceanprotocol/lib": "^0.16.4",
"@oceanprotocol/typographies": "^0.1.0", "@oceanprotocol/typographies": "^0.1.0",
"@portis/web3": "^4.0.4", "@portis/web3": "^4.0.4",
"@sindresorhus/slugify": "^2.1.0", "@sindresorhus/slugify": "^2.1.0",

View File

@ -11,7 +11,7 @@ import { useOcean } from '../../providers/Ocean'
import styles from './AssetTeaser.module.css' import styles from './AssetTeaser.module.css'
declare type AssetTeaserProps = { declare type AssetTeaserProps = {
ddo: any ddo: DDO
price: BestPrice price: BestPrice
} }

View File

@ -20,7 +20,7 @@ import { useSiteMetadata } from '../hooks/useSiteMetadata'
interface AssetProviderValue { interface AssetProviderValue {
isInPurgatory: boolean isInPurgatory: boolean
purgatoryData: PurgatoryData purgatoryData: PurgatoryData
ddo: any ddo: DDO
did: string did: string
metadata: MetadataMarket metadata: MetadataMarket
title: string title: string
@ -121,7 +121,7 @@ function AssetProvider({
} }
}, []) }, [])
const initMetadata = useCallback(async (ddo: any): Promise<void> => { const initMetadata = useCallback(async (ddo: DDO): Promise<void> => {
if (!ddo) return if (!ddo) return
setLoading(true) setLoading(true)
const returnedPrice = await getPrice(ddo) const returnedPrice = await getPrice(ddo)