From 6a70f48cfcaa0588f38382b3ae44e9a7203edf19 Mon Sep 17 00:00:00 2001 From: mihaisc Date: Thu, 17 Feb 2022 11:17:02 +0200 Subject: [PATCH] Update contracts (#1297) * add categories to metadata * update contracts * fix --- package-lock.json | 14 +++++++------- package.json | 2 +- src/@types/DDO/Metadata.ts | 9 +++++++-- 3 files changed, 15 insertions(+), 10 deletions(-) diff --git a/package-lock.json b/package-lock.json index 81dd3445..797799f5 100644 --- a/package-lock.json +++ b/package-lock.json @@ -9,7 +9,7 @@ "version": "1.0.0-next.20", "license": "Apache-2.0", "dependencies": { - "@oceanprotocol/contracts": "1.0.0-alpha.20", + "@oceanprotocol/contracts": "^1.0.0-alpha.21", "bignumber.js": "^9.0.2", "cross-fetch": "^3.1.5", "crypto-js": "^4.1.1", @@ -3033,9 +3033,9 @@ } }, "node_modules/@oceanprotocol/contracts": { - "version": "1.0.0-alpha.20", - "resolved": "https://registry.npmjs.org/@oceanprotocol/contracts/-/contracts-1.0.0-alpha.20.tgz", - "integrity": "sha512-Z+zP7XzYjZfd0+URupld2LLZ91E07EWM4wlxpRGOhXEZ7oL3iQAlRJGq6SZN7C65LSUaMQuhj+n5C8aYOXUdwQ==", + "version": "1.0.0-alpha.21", + "resolved": "https://registry.npmjs.org/@oceanprotocol/contracts/-/contracts-1.0.0-alpha.21.tgz", + "integrity": "sha512-aYMEwkclqBtHEgjeDAmEuGnWQ3yZLIeHWr3XtiuscDxF48eCG0wUYtdtuqzbLNEUqgdpNVxVNTLW2x0w2PAQDA==", "dependencies": { "@openzeppelin/contracts": "^4.3.3", "@openzeppelin/test-helpers": "^0.5.15", @@ -27682,9 +27682,9 @@ } }, "@oceanprotocol/contracts": { - "version": "1.0.0-alpha.20", - "resolved": "https://registry.npmjs.org/@oceanprotocol/contracts/-/contracts-1.0.0-alpha.20.tgz", - "integrity": "sha512-Z+zP7XzYjZfd0+URupld2LLZ91E07EWM4wlxpRGOhXEZ7oL3iQAlRJGq6SZN7C65LSUaMQuhj+n5C8aYOXUdwQ==", + "version": "1.0.0-alpha.21", + "resolved": "https://registry.npmjs.org/@oceanprotocol/contracts/-/contracts-1.0.0-alpha.21.tgz", + "integrity": "sha512-aYMEwkclqBtHEgjeDAmEuGnWQ3yZLIeHWr3XtiuscDxF48eCG0wUYtdtuqzbLNEUqgdpNVxVNTLW2x0w2PAQDA==", "requires": { "@openzeppelin/contracts": "^4.3.3", "@openzeppelin/test-helpers": "^0.5.15", diff --git a/package.json b/package.json index 3a47fad9..c93158aa 100644 --- a/package.json +++ b/package.json @@ -57,7 +57,7 @@ "web3": "^1.7.0" }, "dependencies": { - "@oceanprotocol/contracts": "1.0.0-alpha.20", + "@oceanprotocol/contracts": "1.0.0-alpha.21", "bignumber.js": "^9.0.2", "cross-fetch": "^3.1.5", "crypto-js": "^4.1.1", diff --git a/src/@types/DDO/Metadata.ts b/src/@types/DDO/Metadata.ts index 4533a771..d9da6618 100644 --- a/src/@types/DDO/Metadata.ts +++ b/src/@types/DDO/Metadata.ts @@ -101,12 +101,17 @@ export interface Metadata { links?: string[] /** - * Mapping of URL strings for data samples, or links to find out more information. - * Links may be to either a URL or another asset. + * Array of keywords or tags used to describe this content. Empty by default. * @type {string[]} */ tags?: string[] + /** + * Array of categories associated to the asset. Note: recommended to use tags instead of this. + * @type {string[]} + */ + categories?: string[] + /** * The party holding the legal copyright. Empty by default. * @type {string}