1
0
mirror of https://github.com/oceanprotocol/market.git synced 2024-12-02 05:57:29 +01:00

Merge pull request #44 from oceanprotocol/feature/price-type

save priceType to DDO
This commit is contained in:
Matthias Kretschmann 2020-08-05 15:15:21 +02:00 committed by GitHub
commit 2a1ebb0a7e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 9 additions and 12 deletions

View File

@ -8,6 +8,7 @@ import {
export interface AdditionalInformationMarket extends AdditionalInformation {
links?: File[]
termsAndConditions: boolean
priceType: string
}
export interface MetadataMarket extends Metadata {

View File

@ -29,7 +29,7 @@ export default function PublishPage({
`)
const metadata = transformPublishFormToMetadata(values)
const { tokensToMint, type } = values.price
const { tokensToMint } = values.price
const serviceType = values.access === 'Download' ? 'access' : 'compute'
console.log(`

View File

@ -16,7 +16,8 @@ export function transformPublishFormToMetadata(
tags,
links,
termsAndConditions,
files
files,
price
} = data
const metadata: MetadataMarket = {
@ -37,9 +38,9 @@ export function transformPublishFormToMetadata(
// links: {
// url: links
// },
termsAndConditions
},
curation: AssetModel.curation
termsAndConditions,
priceType: price.type
}
}
return metadata

View File

@ -18,13 +18,8 @@ const AssetModel: MetadataMarket = {
links: undefined,
// custom items
termsAndConditions: false
},
curation: {
rating: 0,
numVotes: 0,
schema: '5-star voting',
isListed: true
termsAndConditions: false,
priceType: undefined
}
}