1
0
mirror of https://github.com/oceanprotocol-archive/squid-js.git synced 2024-02-02 15:31:51 +01:00

algorithm metadata cleanup

This commit is contained in:
Matthias Kretschmann 2020-01-28 18:59:06 +01:00
parent f11eacaabd
commit 9572b4eb3b
Signed by: m
GPG Key ID: 606EEEF3C479A91F
2 changed files with 8 additions and 11 deletions

View File

@ -1,4 +1,4 @@
import { MetaData } from '../../src' // @oceanprotocol/squid
import { MetaData, MetaDataAlgorithm } from '../../src' // @oceanprotocol/squid
import { ServiceType } from '../../src/ddo/Service'
import ddoExample from '../../test/testdata/ddo.json'
@ -48,14 +48,12 @@ const metadata: Partial<MetaData> = {
}
}
const algorithmMeta = {
const algorithmMeta: MetaDataAlgorithm = {
language: 'scala',
format: 'docker-image',
version: '0.1',
entrypoint: 'ocean-entrypoint.sh',
requirements: [],
container: {
entrypoint: 'node $ALGO',
entrypoint: 'ocean-entrypoint.sh',
image: 'node',
tag: '10'
}

View File

@ -84,16 +84,15 @@ export interface File {
compression?: string
}
export interface Algorithm {
export interface MetaDataAlgorithm {
language?: string
format?: string
version?: string
container: {
entrypoint: string
image: string
tag: string
}
language?: string
format?: string
version?: string
files?: File[]
}
/**
@ -164,7 +163,7 @@ export interface MetaDataMain {
service?: Service
algorithm?: Algorithm
algorithm?: MetaDataAlgorithm
}
/**