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:
parent
f11eacaabd
commit
9572b4eb3b
@ -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'
|
||||
}
|
||||
|
@ -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
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user