mirror of
https://github.com/oceanprotocol/market.git
synced 2024-12-02 05:57:29 +01:00
removed schacl schema in marketprovider
This commit is contained in:
parent
52a606d0e2
commit
d4d6f53256
@ -1,5 +1,3 @@
|
||||
import { ShaclSchema } from './_shaclType'
|
||||
|
||||
export interface OpcFee {
|
||||
chainId: number
|
||||
swapNotApprovedFee: string
|
||||
@ -52,5 +50,4 @@ export interface MarketMetadataProviderValue {
|
||||
siteContent: SiteContent
|
||||
appConfig: AppConfig
|
||||
getOpcFeeForToken: (tokenAddress: string, chainId: number) => string
|
||||
shaclSchema: ShaclSchema
|
||||
}
|
||||
|
@ -16,8 +16,6 @@ import appConfig from '../../../app.config'
|
||||
import { fetchData, getQueryContext } from '@utils/subgraph'
|
||||
import { LoggerInstance } from '@oceanprotocol/lib'
|
||||
import { retrieveShaclSchema } from '@utils/aquarius'
|
||||
import { CancelToken } from 'axios'
|
||||
import { ShaclSchema } from './_shaclType'
|
||||
|
||||
const MarketMetadataContext = createContext({} as MarketMetadataProviderValue)
|
||||
|
||||
@ -27,7 +25,6 @@ function MarketMetadataProvider({
|
||||
children: ReactNode
|
||||
}): ReactElement {
|
||||
const [opcFees, setOpcFees] = useState<OpcFee[]>()
|
||||
const [shaclSchema, setShaclSchema] = useState<ShaclSchema>()
|
||||
|
||||
useEffect(() => {
|
||||
async function getOpcData() {
|
||||
@ -56,12 +53,6 @@ function MarketMetadataProvider({
|
||||
setOpcFees(opcData)
|
||||
}
|
||||
getOpcData()
|
||||
|
||||
async function getShaclSchema() {
|
||||
const schema = await retrieveShaclSchema()
|
||||
setShaclSchema(schema)
|
||||
}
|
||||
getShaclSchema()
|
||||
}, [])
|
||||
|
||||
const getOpcFeeForToken = useCallback(
|
||||
@ -82,8 +73,7 @@ function MarketMetadataProvider({
|
||||
opcFees,
|
||||
siteContent,
|
||||
appConfig,
|
||||
getOpcFeeForToken,
|
||||
shaclSchema
|
||||
getOpcFeeForToken
|
||||
} as MarketMetadataProviderValue
|
||||
}
|
||||
>
|
||||
|
Loading…
x
Reference in New Issue
Block a user