1
0
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:
alexcos20 2020-03-17 13:41:49 +02:00
parent 3130d6b9fd
commit 14a0c5dcc3
2 changed files with 1 additions and 28 deletions

View File

@ -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()

View File

@ -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
}
}
}