mirror of
https://github.com/oceanprotocol-archive/squid-js.git
synced 2024-02-02 15:31:51 +01:00
remove unused code
This commit is contained in:
parent
3130d6b9fd
commit
14a0c5dcc3
@ -10,7 +10,7 @@ import {
|
|||||||
Config,
|
Config,
|
||||||
MetaDataAlgorithm
|
MetaDataAlgorithm
|
||||||
} from '../../../src'
|
} from '../../../src'
|
||||||
import { getMetadata, createComputeService } from '../utils'
|
import { getMetadata } from '../utils'
|
||||||
import { ServiceCompute } from '../../../src/ddo/Service'
|
import { ServiceCompute } from '../../../src/ddo/Service'
|
||||||
|
|
||||||
const metadataAsset = getMetadata()
|
const metadataAsset = getMetadata()
|
||||||
|
@ -78,30 +78,3 @@ export const generateMetadata = (
|
|||||||
export const getMetadata = (price?: number, type?: 'dataset' | 'algorithm') =>
|
export const getMetadata = (price?: number, type?: 'dataset' | 'algorithm') =>
|
||||||
generateMetadata('TestAsset', type, price)
|
generateMetadata('TestAsset', type, price)
|
||||||
|
|
||||||
export const createComputeService = async (
|
|
||||||
ocean: Ocean,
|
|
||||||
publisher: Account,
|
|
||||||
price: string,
|
|
||||||
datePublished: string
|
|
||||||
): Promise<ServiceCompute> => {
|
|
||||||
const { templates } = ocean.keeper
|
|
||||||
const serviceAgreementTemplate = await templates.escrowComputeExecutionTemplate.getServiceAgreementTemplate()
|
|
||||||
|
|
||||||
const name = 'dataAssetComputingServiceAgreement'
|
|
||||||
return {
|
|
||||||
type: 'compute',
|
|
||||||
index: 3,
|
|
||||||
serviceEndpoint: ocean.brizo.getComputeEndpoint(),
|
|
||||||
templateId: templates.escrowComputeExecutionTemplate.getId(),
|
|
||||||
attributes: {
|
|
||||||
main: {
|
|
||||||
creator: publisher.getId(),
|
|
||||||
datePublished,
|
|
||||||
price,
|
|
||||||
timeout: 3600,
|
|
||||||
name
|
|
||||||
},
|
|
||||||
serviceAgreementTemplate
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
Loading…
Reference in New Issue
Block a user