diff --git a/apollo.config.js b/apollo.config.js
index 8c4500450..3ca33ccad 100644
--- a/apollo.config.js
+++ b/apollo.config.js
@@ -2,8 +2,7 @@ module.exports = {
client: {
service: {
name: 'ocean',
- url:
- 'https://subgraph.rinkeby.oceanprotocol.com/subgraphs/name/oceanprotocol/ocean-subgraph',
+ url: 'https://subgraph.rinkeby.oceanprotocol.com/subgraphs/name/oceanprotocol/ocean-subgraph',
// optional disable SSL validation check
skipSSLValidation: true
}
diff --git a/src/components/atoms/Input/InputElement.tsx b/src/components/atoms/Input/InputElement.tsx
index 8e0e83c8a..39637a8ff 100644
--- a/src/components/atoms/Input/InputElement.tsx
+++ b/src/components/atoms/Input/InputElement.tsx
@@ -107,7 +107,7 @@ export default function InputElement({
case 'assetSelection':
return (
@@ -115,7 +115,7 @@ export default function InputElement({
case 'assetSelectionMultiple':
return (
diff --git a/src/components/molecules/Wallet/Details.tsx b/src/components/molecules/Wallet/Details.tsx
index 58477b1d0..38fec69e4 100644
--- a/src/components/molecules/Wallet/Details.tsx
+++ b/src/components/molecules/Wallet/Details.tsx
@@ -11,13 +11,8 @@ import Web3Feedback from './Feedback'
import styles from './Details.module.css'
export default function Details(): ReactElement {
- const {
- web3Provider,
- web3ProviderInfo,
- connect,
- logout,
- networkData
- } = useWeb3()
+ const { web3Provider, web3ProviderInfo, connect, logout, networkData } =
+ useWeb3()
const { balance, config } = useOcean()
const { locale } = useUserPreferences()
diff --git a/src/components/organisms/AssetActions/Compute/FormComputeDataset.tsx b/src/components/organisms/AssetActions/Compute/FormComputeDataset.tsx
index e56f0e7ea..8bae8b2eb 100644
--- a/src/components/organisms/AssetActions/Compute/FormComputeDataset.tsx
+++ b/src/components/organisms/AssetActions/Compute/FormComputeDataset.tsx
@@ -82,10 +82,8 @@ export default function FormStartCompute({
const data = useStaticQuery(contentQuery)
const content = data.content.edges[0].node.childPagesJson
- const {
- isValid,
- values
- }: FormikContextType<{ algorithm: string }> = useFormikContext()
+ const { isValid, values }: FormikContextType<{ algorithm: string }> =
+ useFormikContext()
const { price, ddo } = useAsset()
const [totalPrice, setTotalPrice] = useState(price?.value)
diff --git a/src/components/organisms/AssetActions/Compute/index.tsx b/src/components/organisms/AssetActions/Compute/index.tsx
index 80c392e85..15a745266 100644
--- a/src/components/organisms/AssetActions/Compute/index.tsx
+++ b/src/components/organisms/AssetActions/Compute/index.tsx
@@ -69,15 +69,12 @@ export default function Compute({
const [isPublished, setIsPublished] = useState(false)
const [hasPreviousDatasetOrder, setHasPreviousDatasetOrder] = useState(false)
const [previousDatasetOrderId, setPreviousDatasetOrderId] = useState()
- const [hasPreviousAlgorithmOrder, setHasPreviousAlgorithmOrder] = useState(
- false
- )
+ const [hasPreviousAlgorithmOrder, setHasPreviousAlgorithmOrder] =
+ useState(false)
const [algorithmDTBalance, setalgorithmDTBalance] = useState()
const [algorithmPrice, setAlgorithmPrice] = useState()
- const [
- previousAlgorithmOrderId,
- setPreviousAlgorithmOrderId
- ] = useState()
+ const [previousAlgorithmOrderId, setPreviousAlgorithmOrderId] =
+ useState()
const [datasetTimeout, setDatasetTimeout] = useState()
const [algorithmTimeout, setAlgorithmTimeout] = useState()
diff --git a/src/components/organisms/AssetActions/Consume.tsx b/src/components/organisms/AssetActions/Consume.tsx
index 034a89899..fd5d3e78a 100644
--- a/src/components/organisms/AssetActions/Consume.tsx
+++ b/src/components/organisms/AssetActions/Consume.tsx
@@ -48,12 +48,8 @@ export default function Consume({
const [hasPreviousOrder, setHasPreviousOrder] = useState(false)
const [previousOrderId, setPreviousOrderId] = useState()
const { isInPurgatory, price, type } = useAsset()
- const {
- buyDT,
- pricingStepText,
- pricingError,
- pricingIsLoading
- } = usePricing()
+ const { buyDT, pricingStepText, pricingError, pricingIsLoading } =
+ usePricing()
const { consumeStepText, consume, consumeError } = useConsume()
const [isDisabled, setIsDisabled] = useState(true)
const [hasDatatoken, setHasDatatoken] = useState(false)
diff --git a/src/components/organisms/AssetActions/Edit/DebugEditCompute.tsx b/src/components/organisms/AssetActions/Edit/DebugEditCompute.tsx
index 7f5698776..83aaa02ba 100644
--- a/src/components/organisms/AssetActions/Edit/DebugEditCompute.tsx
+++ b/src/components/organisms/AssetActions/Edit/DebugEditCompute.tsx
@@ -13,10 +13,8 @@ export default function DebugEditCompute({
ddo: DDO
}): ReactElement {
const { ocean } = useOcean()
- const [
- formTransformed,
- setFormTransformed
- ] = useState()
+ const [formTransformed, setFormTransformed] =
+ useState()
useEffect(() => {
if (!ocean) return
diff --git a/src/components/organisms/AssetActions/Edit/FormEditComputeDataset.tsx b/src/components/organisms/AssetActions/Edit/FormEditComputeDataset.tsx
index 7aa9e5c42..b8a395ced 100644
--- a/src/components/organisms/AssetActions/Edit/FormEditComputeDataset.tsx
+++ b/src/components/organisms/AssetActions/Edit/FormEditComputeDataset.tsx
@@ -29,15 +29,12 @@ export default function FormEditComputeDataset({
const { accountId } = useWeb3()
const { ocean, config } = useOcean()
const { ddo } = useAsset()
- const {
- isValid,
- values
- }: FormikContextType = useFormikContext()
+ const { isValid, values }: FormikContextType =
+ useFormikContext()
const [allAlgorithms, setAllAlgorithms] = useState()
- const { publisherTrustedAlgorithms } = ddo?.findServiceByType(
- 'compute'
- ).attributes.main.privacy
+ const { publisherTrustedAlgorithms } =
+ ddo?.findServiceByType('compute').attributes.main.privacy
async function getAlgorithmList(
publisherTrustedAlgorithms: PublisherTrustedAlgorithm[]
diff --git a/src/components/organisms/AssetActions/Pool/Add/Output.tsx b/src/components/organisms/AssetActions/Pool/Add/Output.tsx
index f84601bd6..4c141e8b8 100644
--- a/src/components/organisms/AssetActions/Pool/Add/Output.tsx
+++ b/src/components/organisms/AssetActions/Pool/Add/Output.tsx
@@ -48,11 +48,8 @@ export default function Output({
coin: string
}): ReactElement {
const data = useStaticQuery(contentQuery)
- const {
- help,
- titleIn,
- titleOut
- } = data.content.edges[0].node.childContentJson.pool.add.output
+ const { help, titleIn, titleOut } =
+ data.content.edges[0].node.childContentJson.pool.add.output
// Connect with form
const { values }: FormikContextType = useFormikContext()
diff --git a/src/components/organisms/AssetActions/Pool/index.tsx b/src/components/organisms/AssetActions/Pool/index.tsx
index e23dddc26..ea13e9d87 100644
--- a/src/components/organisms/AssetActions/Pool/index.tsx
+++ b/src/components/organisms/AssetActions/Pool/index.tsx
@@ -83,10 +83,8 @@ export default function Pool(): ReactElement {
const [totalUserLiquidityInOcean, setTotalUserLiquidityInOcean] = useState(0)
const [totalLiquidityInOcean, setTotalLiquidityInOcean] = useState(0)
- const [
- creatorTotalLiquidityInOcean,
- setCreatorTotalLiquidityInOcean
- ] = useState(0)
+ const [creatorTotalLiquidityInOcean, setCreatorTotalLiquidityInOcean] =
+ useState(0)
const [creatorLiquidity, setCreatorLiquidity] = useState()
const [creatorPoolTokens, setCreatorPoolTokens] = useState()
const [creatorPoolShare, setCreatorPoolShare] = useState()
diff --git a/src/components/organisms/AssetActions/Pool/utils.ts b/src/components/organisms/AssetActions/Pool/utils.ts
index ee937a6c9..140b480b7 100644
--- a/src/components/organisms/AssetActions/Pool/utils.ts
+++ b/src/components/organisms/AssetActions/Pool/utils.ts
@@ -9,10 +9,11 @@ export async function getMaxPercentRemove(
poolAddress
)
- const amountMaxPoolShares = await ocean.pool.getPoolSharesRequiredToRemoveOcean(
- poolAddress,
- amountMaxOcean
- )
+ const amountMaxPoolShares =
+ await ocean.pool.getPoolSharesRequiredToRemoveOcean(
+ poolAddress,
+ amountMaxOcean
+ )
let amountMaxPercent = `${Math.floor(
(Number(amountMaxPoolShares) / Number(poolTokens)) * 100
diff --git a/src/components/organisms/AssetActions/Trade/Slippage.tsx b/src/components/organisms/AssetActions/Trade/Slippage.tsx
index 7adc7bca8..fcf0571f6 100644
--- a/src/components/organisms/AssetActions/Trade/Slippage.tsx
+++ b/src/components/organisms/AssetActions/Trade/Slippage.tsx
@@ -6,10 +6,8 @@ import styles from './Slippage.module.css'
export default function Slippage(): ReactElement {
// Connect with form
- const {
- setFieldValue,
- values
- }: FormikContextType = useFormikContext()
+ const { setFieldValue, values }: FormikContextType =
+ useFormikContext()
function handleChange(e: ChangeEvent) {
setFieldValue('slippage', e.target.value)
diff --git a/src/components/organisms/AssetContent/MetaFull.tsx b/src/components/organisms/AssetContent/MetaFull.tsx
index ea7d35911..93f6d2bf5 100644
--- a/src/components/organisms/AssetContent/MetaFull.tsx
+++ b/src/components/organisms/AssetContent/MetaFull.tsx
@@ -8,8 +8,8 @@ export default function MetaFull(): ReactElement {
const { ddo, metadata, isInPurgatory, type } = useAsset()
function DockerImage() {
- const algorithmContainer = ddo.findServiceByType('metadata').attributes.main
- .algorithm.container
+ const algorithmContainer =
+ ddo.findServiceByType('metadata').attributes.main.algorithm.container
const { image } = algorithmContainer
const { tag } = algorithmContainer
return {`${image}:${tag}`}
diff --git a/src/components/organisms/AssetContent/Pricing/FormPricing/index.tsx b/src/components/organisms/AssetContent/Pricing/FormPricing/index.tsx
index 97ff35336..64cb0755b 100644
--- a/src/components/organisms/AssetContent/Pricing/FormPricing/index.tsx
+++ b/src/components/organisms/AssetContent/Pricing/FormPricing/index.tsx
@@ -25,13 +25,8 @@ export default function FormPricing({
// Connect with form
const { values, setFieldValue, submitForm } = useFormikContext()
- const {
- price,
- oceanAmount,
- weightOnOcean,
- weightOnDataToken,
- type
- } = values as PriceOptionsMarket
+ const { price, oceanAmount, weightOnOcean, weightOnDataToken, type } =
+ values as PriceOptionsMarket
// Switch type value upon tab change
function handleTabChange(tabName: string) {
diff --git a/src/components/organisms/AssetContent/Pricing/index.tsx b/src/components/organisms/AssetContent/Pricing/index.tsx
index 1d733c2f5..c69552db3 100644
--- a/src/components/organisms/AssetContent/Pricing/index.tsx
+++ b/src/components/organisms/AssetContent/Pricing/index.tsx
@@ -57,12 +57,8 @@ export default function Pricing({ ddo }: { ddo: DDO }): ReactElement {
const [showPricing, setShowPricing] = useState(false)
const [success, setSuccess] = useState()
- const {
- createPricing,
- pricingIsLoading,
- pricingError,
- pricingStepText
- } = usePricing()
+ const { createPricing, pricingIsLoading, pricingError, pricingStepText } =
+ usePricing()
const hasFeedback = pricingIsLoading || typeof success !== 'undefined'
diff --git a/src/components/organisms/Permission.tsx b/src/components/organisms/Permission.tsx
index 5b63d8ce7..022e1cd51 100644
--- a/src/components/organisms/Permission.tsx
+++ b/src/components/organisms/Permission.tsx
@@ -15,9 +15,8 @@ export default function Permission({
const url = appConfig.rbacUrl
const [data, updateData] = useState()
const [errorMessage, updateError] = useState()
- const [messageState, updateMessageState] = useState<
- 'error' | 'warning' | 'info' | 'success'
- >()
+ const [messageState, updateMessageState] =
+ useState<'error' | 'warning' | 'info' | 'success'>()
const { accountId } = useWeb3()
useEffect(() => {
if (url === undefined) return
diff --git a/src/components/pages/Publish/index.tsx b/src/components/pages/Publish/index.tsx
index 62a0721b9..aaaaca3f4 100644
--- a/src/components/pages/Publish/index.tsx
+++ b/src/components/pages/Publish/index.tsx
@@ -93,9 +93,8 @@ export default function PublishPage({
.initialValues as MetadataPublishFormDataset)) ||
initialValues
)
- const [publishType, setPublishType] = useState(
- 'dataset'
- )
+ const [publishType, setPublishType] =
+ useState('dataset')
const hasFeedback = isLoading || error || success
const emptyAlgoDT = Object.values(algoInitialValues.dataTokenOptions).every(
@@ -138,7 +137,7 @@ export default function PublishPage({
)
const ddo = await publish(
- (metadata as unknown) as Metadata,
+ metadata as unknown as Metadata,
serviceType,
values.dataTokenOptions,
timeout
@@ -187,7 +186,7 @@ export default function PublishPage({
Logger.log('Publish algorithm with ', metadata, values.dataTokenOptions)
const ddo = await publish(
- (metadata as unknown) as Metadata,
+ metadata as unknown as Metadata,
values.algorithmPrivacy === true ? 'compute' : 'access',
values.dataTokenOptions,
timeout
diff --git a/src/components/templates/Search/filterService.tsx b/src/components/templates/Search/filterService.tsx
index 78586ad97..64f59b1c4 100644
--- a/src/components/templates/Search/filterService.tsx
+++ b/src/components/templates/Search/filterService.tsx
@@ -36,8 +36,9 @@ export default function FilterPrice({
async function handleSelectedFilter(isSelected: boolean, value: string) {
if (isSelected) {
if (serviceSelections.length > 1) {
- const otherValue = serviceFilterItems.find((p) => p.value !== value)
- .value
+ const otherValue = serviceFilterItems.find(
+ (p) => p.value !== value
+ ).value
await applyServiceFilter(otherValue)
setServiceSelections([otherValue])
} else {
diff --git a/src/components/templates/Search/utils.ts b/src/components/templates/Search/utils.ts
index 4fe666a97..424c8bbe8 100644
--- a/src/components/templates/Search/utils.ts
+++ b/src/components/templates/Search/utils.ts
@@ -27,7 +27,8 @@ export const FilterByTypeOptions = {
Data: 'dataset',
Algorithm: 'algorithm'
} as const
-type FilterByTypeOptions = typeof FilterByTypeOptions[keyof typeof FilterByTypeOptions]
+type FilterByTypeOptions =
+ typeof FilterByTypeOptions[keyof typeof FilterByTypeOptions]
function addTypeFilterToQuery(sortTerm: string, typeFilter: string): string {
sortTerm = typeFilter
diff --git a/src/hooks/usePricing.ts b/src/hooks/usePricing.ts
index a67ee20a7..c01d1104b 100644
--- a/src/hooks/usePricing.ts
+++ b/src/hooks/usePricing.ts
@@ -202,13 +202,8 @@ function usePricing(): UsePricing {
if (!ocean || !accountId || !dtSymbol) return
- const {
- type,
- oceanAmount,
- price,
- weightOnDataToken,
- swapFee
- } = priceOptions
+ const { type, oceanAmount, price, weightOnDataToken, swapFee } =
+ priceOptions
let { dtAmount } = priceOptions
const isPool = type === 'dynamic'
diff --git a/src/hooks/usePublish.ts b/src/hooks/usePublish.ts
index b19052d61..fec472be2 100644
--- a/src/hooks/usePublish.ts
+++ b/src/hooks/usePublish.ts
@@ -69,13 +69,14 @@ function usePublish(): UsePublish {
switch (serviceType) {
case 'access': {
if (!timeout) timeout = 0
- const accessService = await ocean.assets.createAccessServiceAttributes(
- account,
- price,
- publishedDate,
- timeout,
- providerUri
- )
+ const accessService =
+ await ocean.assets.createAccessServiceAttributes(
+ account,
+ price,
+ publishedDate,
+ timeout,
+ providerUri
+ )
Logger.log('access service created', accessService)
services.push(accessService)
break
diff --git a/src/models/FormAlgoPublish.ts b/src/models/FormAlgoPublish.ts
index d6dd93907..111951c19 100644
--- a/src/models/FormAlgoPublish.ts
+++ b/src/models/FormAlgoPublish.ts
@@ -2,37 +2,38 @@ import { MetadataPublishFormAlgorithm } from '../@types/MetaData'
import { File as FileMetadata } from '@oceanprotocol/lib'
import * as Yup from 'yup'
-export const validationSchema: Yup.SchemaOf = Yup.object()
- .shape({
- // ---- required fields ----
- name: Yup.string()
- .min(4, (param) => `Title must be at least ${param.min} characters`)
- .required('Required'),
- description: Yup.string().min(10).required('Required'),
- files: Yup.array().required('Required').nullable(),
- timeout: Yup.string().required('Required'),
- dataTokenOptions: Yup.object()
- .shape({
- name: Yup.string(),
- symbol: Yup.string()
- })
- .required('Required'),
- dockerImage: Yup.string()
- .matches(/node:latest|python:latest|custom image/g, {
- excludeEmptyString: true
- })
- .required('Required'),
- image: Yup.string().required('Required'),
- containerTag: Yup.string().required('Required'),
- entrypoint: Yup.string().required('Required'),
- author: Yup.string().required('Required'),
- termsAndConditions: Yup.boolean().required('Required'),
- // ---- optional fields ----
- algorithmPrivacy: Yup.boolean().nullable(),
- tags: Yup.string().nullable(),
- links: Yup.array().nullable()
- })
- .defined()
+export const validationSchema: Yup.SchemaOf =
+ Yup.object()
+ .shape({
+ // ---- required fields ----
+ name: Yup.string()
+ .min(4, (param) => `Title must be at least ${param.min} characters`)
+ .required('Required'),
+ description: Yup.string().min(10).required('Required'),
+ files: Yup.array().required('Required').nullable(),
+ timeout: Yup.string().required('Required'),
+ dataTokenOptions: Yup.object()
+ .shape({
+ name: Yup.string(),
+ symbol: Yup.string()
+ })
+ .required('Required'),
+ dockerImage: Yup.string()
+ .matches(/node:latest|python:latest|custom image/g, {
+ excludeEmptyString: true
+ })
+ .required('Required'),
+ image: Yup.string().required('Required'),
+ containerTag: Yup.string().required('Required'),
+ entrypoint: Yup.string().required('Required'),
+ author: Yup.string().required('Required'),
+ termsAndConditions: Yup.boolean().required('Required'),
+ // ---- optional fields ----
+ algorithmPrivacy: Yup.boolean().nullable(),
+ tags: Yup.string().nullable(),
+ links: Yup.array().nullable()
+ })
+ .defined()
export const initialValues: Partial = {
name: '',
diff --git a/src/models/FormEditComputeDataset.ts b/src/models/FormEditComputeDataset.ts
index 6d517def8..96d5df52a 100644
--- a/src/models/FormEditComputeDataset.ts
+++ b/src/models/FormEditComputeDataset.ts
@@ -6,12 +6,11 @@ export interface ComputePrivacyForm {
publisherTrustedAlgorithms: string[]
}
-export const validationSchema: Yup.SchemaOf = Yup.object().shape(
- {
+export const validationSchema: Yup.SchemaOf =
+ Yup.object().shape({
allowAllPublishedAlgorithms: Yup.boolean().nullable(),
publisherTrustedAlgorithms: Yup.array().nullable()
- }
-)
+ })
export function getInitialValues(
compute: ServiceComputePrivacy
diff --git a/src/models/FormPricing.ts b/src/models/FormPricing.ts
index bff5034b2..8ad89189d 100644
--- a/src/models/FormPricing.ts
+++ b/src/models/FormPricing.ts
@@ -1,8 +1,8 @@
import { PriceOptionsMarket } from '../@types/MetaData'
import * as Yup from 'yup'
-export const validationSchema: Yup.SchemaOf = Yup.object().shape(
- {
+export const validationSchema: Yup.SchemaOf =
+ Yup.object().shape({
price: Yup.number()
.min(1, (param) => `Must be more or equal to ${param.min}`)
.required('Required'),
@@ -22,8 +22,7 @@ export const validationSchema: Yup.SchemaOf = Yup.object().s
.max(10, 'Maximum is 10%')
.required('Required')
.nullable()
- }
-)
+ })
export const initialValues: PriceOptionsMarket = {
price: 1,
diff --git a/src/models/FormPublish.ts b/src/models/FormPublish.ts
index b363749b5..8f6550459 100644
--- a/src/models/FormPublish.ts
+++ b/src/models/FormPublish.ts
@@ -2,34 +2,35 @@ import { MetadataPublishFormDataset } from '../@types/MetaData'
import { File as FileMetadata } from '@oceanprotocol/lib'
import * as Yup from 'yup'
-export const validationSchema: Yup.SchemaOf = Yup.object()
- .shape({
- // ---- required fields ----
- name: Yup.string()
- .min(4, (param) => `Title must be at least ${param.min} characters`)
- .required('Required'),
- author: Yup.string().required('Required'),
- dataTokenOptions: Yup.object()
- .shape({
- name: Yup.string(),
- symbol: Yup.string()
- })
- .required('Required'),
- files: Yup.array()
- .required('Enter a valid URL and click "ADD FILE"')
- .nullable(),
- description: Yup.string().min(10).required('Required'),
- timeout: Yup.string().required('Required'),
- access: Yup.string()
- .matches(/Compute|Download/g, { excludeEmptyString: true })
- .required('Required'),
- termsAndConditions: Yup.boolean().required('Required'),
+export const validationSchema: Yup.SchemaOf =
+ Yup.object()
+ .shape({
+ // ---- required fields ----
+ name: Yup.string()
+ .min(4, (param) => `Title must be at least ${param.min} characters`)
+ .required('Required'),
+ author: Yup.string().required('Required'),
+ dataTokenOptions: Yup.object()
+ .shape({
+ name: Yup.string(),
+ symbol: Yup.string()
+ })
+ .required('Required'),
+ files: Yup.array()
+ .required('Enter a valid URL and click "ADD FILE"')
+ .nullable(),
+ description: Yup.string().min(10).required('Required'),
+ timeout: Yup.string().required('Required'),
+ access: Yup.string()
+ .matches(/Compute|Download/g, { excludeEmptyString: true })
+ .required('Required'),
+ termsAndConditions: Yup.boolean().required('Required'),
- // ---- optional fields ----
- tags: Yup.string().nullable(),
- links: Yup.array().nullable()
- })
- .defined()
+ // ---- optional fields ----
+ tags: Yup.string().nullable(),
+ links: Yup.array().nullable()
+ })
+ .defined()
export const initialValues: Partial = {
name: '',
diff --git a/src/pages/404.tsx b/src/pages/404.tsx
index e9853a40c..df667bc5f 100644
--- a/src/pages/404.tsx
+++ b/src/pages/404.tsx
@@ -6,11 +6,8 @@ import { Helmet } from 'react-helmet'
import Button from '../components/atoms/Button'
export default function PageGatsby404(props: PageProps): ReactElement {
- const {
- title,
- description,
- actions
- } = (props.data as any).content.edges[0].node.childPagesJson
+ const { title, description, actions } = (props.data as any).content.edges[0]
+ .node.childPagesJson
return (
<>
diff --git a/src/providers/Asset.tsx b/src/providers/Asset.tsx
index 548128f38..f49bf6ef2 100644
--- a/src/providers/Asset.tsx
+++ b/src/providers/Asset.tsx
@@ -122,7 +122,7 @@ function AssetProvider({
// Get metadata from DDO
const { attributes } = ddo.findServiceByType('metadata')
- setMetadata((attributes as unknown) as MetadataMarket)
+ setMetadata(attributes as unknown as MetadataMarket)
setTitle(attributes?.main.name)
setType(attributes.main.type)
setOwner(ddo.publicKey[0].owner)
diff --git a/src/providers/Ocean.tsx b/src/providers/Ocean.tsx
index bfff10c10..820b950db 100644
--- a/src/providers/Ocean.tsx
+++ b/src/providers/Ocean.tsx
@@ -51,9 +51,8 @@ function OceanProvider({
eth: undefined,
ocean: undefined
})
- const [config, setConfig] = useState(
- initialConfig
- )
+ const [config, setConfig] =
+ useState(initialConfig)
const [loading, setLoading] = useState()
// -----------------------------------
diff --git a/src/utils/compute.ts b/src/utils/compute.ts
index c3483d916..fe37f0b7e 100644
--- a/src/utils/compute.ts
+++ b/src/utils/compute.ts
@@ -13,9 +13,10 @@ export async function createTrustedAlgorithmList(
const trustedAlgorithms = []
for (const selectedAlgorithm of selectedAlgorithms) {
- const trustedAlgorithm = await ocean.compute.createPublisherTrustedAlgorithmfromDID(
- selectedAlgorithm
- )
+ const trustedAlgorithm =
+ await ocean.compute.createPublisherTrustedAlgorithmfromDID(
+ selectedAlgorithm
+ )
trustedAlgorithms.push(trustedAlgorithm)
}
return trustedAlgorithms
diff --git a/src/utils/feedback.ts b/src/utils/feedback.ts
index 7dbfda074..511f4c7b2 100644
--- a/src/utils/feedback.ts
+++ b/src/utils/feedback.ts
@@ -28,9 +28,9 @@ export const computeFeedback: { [key in number]: string } = {
2: '3/3 Access granted. Starting job...'
}
-export function getCreatePricingPoolFeedback(
- dtSymbol: string
-): { [key: number]: string } {
+export function getCreatePricingPoolFeedback(dtSymbol: string): {
+ [key: number]: string
+} {
return {
99: `Minting ${dtSymbol} ...`,
0: 'Creating pool ...',
@@ -41,9 +41,9 @@ export function getCreatePricingPoolFeedback(
}
}
-export function getCreatePricingExchangeFeedback(
- dtSymbol: string
-): { [key: number]: string } {
+export function getCreatePricingExchangeFeedback(dtSymbol: string): {
+ [key: number]: string
+} {
return {
99: `Minting ${dtSymbol} ...`,
0: 'Creating exchange ...',
diff --git a/src/utils/subgraph.ts b/src/utils/subgraph.ts
index d48f3336e..fa2ca8864 100644
--- a/src/utils/subgraph.ts
+++ b/src/utils/subgraph.ts
@@ -127,10 +127,8 @@ export async function getPreviousOrders(
id: id,
account: account
}
- const fetchedPreviousOrders: ApolloQueryResult = await fetchData(
- PreviousOrderQuery,
- variables
- )
+ const fetchedPreviousOrders: ApolloQueryResult =
+ await fetchData(PreviousOrderQuery, variables)
if (fetchedPreviousOrders.data?.tokenOrders?.length === 0) return null
if (assetTimeout === '0') {
return fetchedPreviousOrders?.data?.tokenOrders[0]?.tx
diff --git a/tests/unit/__fixtures__/ddo.ts b/tests/unit/__fixtures__/ddo.ts
index afc76cd72..5df3ce543 100644
--- a/tests/unit/__fixtures__/ddo.ts
+++ b/tests/unit/__fixtures__/ddo.ts
@@ -5,8 +5,7 @@ const ddo: Partial = {
id: 'did:op:7b4e90b05ec243dbaaca2a503fdde119706577f9645b45b9ab65cf2c3970f757',
publicKey: [
{
- id:
- 'did:op:7b4e90b05ec243dbaaca2a503fdde119706577f9645b45b9ab65cf2c3970f757',
+ id: 'did:op:7b4e90b05ec243dbaaca2a503fdde119706577f9645b45b9ab65cf2c3970f757',
type: 'EthereumECDSAKey',
owner: '0x4D156A2ef69ffdDC55838176C6712C90f60a2285'
}