diff --git a/.env.example b/.env.example index d1481767b..cb5c39b35 100644 --- a/.env.example +++ b/.env.example @@ -1,5 +1,5 @@ # Default network, possible values: -# "development", "ropsten", "rinkeby", "mainnet", "polygon" +# "development", "ropsten", "rinkeby", "mainnet", "polygon", "moonbeamalpha" GATSBY_NETWORK="rinkeby" #GATSBY_INFURA_PROJECT_ID="xxx" diff --git a/content/pages/edit.json b/content/pages/edit.json index 13d6089c5..ac8e21e0d 100644 --- a/content/pages/edit.json +++ b/content/pages/edit.json @@ -20,6 +20,15 @@ "rows": 10, "required": true }, + { + "name": "price", + "label": "New Price", + "type": "number", + "min": "1", + "placeholder": "0", + "help": "Enter a new price.", + "required": true + }, { "name": "links", "label": "Sample file", diff --git a/content/pages/editComputeDataset.json b/content/pages/editComputeDataset.json index 17c3c6d50..2a9e4df9c 100644 --- a/content/pages/editComputeDataset.json +++ b/content/pages/editComputeDataset.json @@ -6,13 +6,6 @@ "successAction": "Close", "error": "Updating DDO failed.", "data": [ - { - "name": "allowAllPublishedAlgorithms", - "label": "All Algorithms", - "help": "Allow any published algorithm to run on this data set.", - "type": "checkbox", - "options": ["Allow any published algorithm"] - }, { "name": "publisherTrustedAlgorithms", "label": "Selected Algorithms", @@ -21,6 +14,13 @@ "multiple": true, "options": [], "sortOptions": false + }, + { + "name": "allowAllPublishedAlgorithms", + "label": "All Algorithms", + "help": "Allow any published algorithm to run on this data set.", + "type": "checkbox", + "options": ["Allow any published algorithm"] } ] } diff --git a/content/pages/history.json b/content/pages/history.json index 6ec83422f..57df3eb16 100644 --- a/content/pages/history.json +++ b/content/pages/history.json @@ -1,4 +1,7 @@ { "title": "History", - "description": "Find the data sets and jobs that you previously accessed." + "description": "Find the data sets and jobs that you previously accessed.", + "compute": { + "storage": "Results are stored for 30 days." + } } diff --git a/content/pages/publish/form-algorithm.json b/content/pages/publish/form-algorithm.json index e6a62560c..0a91c3b04 100644 --- a/content/pages/publish/form-algorithm.json +++ b/content/pages/publish/form-algorithm.json @@ -19,7 +19,7 @@ "name": "files", "label": "File", "placeholder": "e.g. https://file.com/file.json", - "help": "Please enter the URL to your algorithm file and click \"ADD FILE\" to validate the data. This URL will be stored encrypted after publishing.", + "help": "Please enter the URL to your algorithm file and click \"ADD FILE\" to validate the data. This URL will be stored encrypted after publishing. Some restrictions apply:\n\n- max. running time: 1 min.\n- [Writing Algorithms for Compute to Data](https://docs.oceanprotocol.com/tutorials/compute-to-data-algorithms/)", "type": "files", "required": true }, @@ -56,6 +56,13 @@ "sortOptions": false, "required": true }, + { + "name": "dataTokenOptions", + "label": "Datatoken Name & Symbol", + "type": "datatoken", + "help": "The datatoken for this algorithm will be created with this name & symbol.", + "required": true + }, { "name": "entrypoint", "label": "Entrypoint", diff --git a/content/pages/publish/form-dataset.json b/content/pages/publish/form-dataset.json index afd687d61..3b3a67b58 100644 --- a/content/pages/publish/form-dataset.json +++ b/content/pages/publish/form-dataset.json @@ -19,7 +19,7 @@ "name": "files", "label": "File", "placeholder": "e.g. https://file.com/file.json", - "help": "Please enter the URL to your data set file and click \"ADD FILE\" to validate the data. This URL will be stored encrypted after publishing.", + "help": "Please enter the URL to your data set file and click \"ADD FILE\" to validate the data. This URL will be stored encrypted after publishing. For a compute data set, your file should match the file type required by the algorithm, and should not exceed 1 GB in file size.", "type": "files", "required": true }, diff --git a/package-lock.json b/package-lock.json index cc1026ce2..c921d19c2 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1573,16 +1573,16 @@ } }, "@ethereum-navigator/atlas": { - "version": "0.7.1", - "resolved": "https://registry.npmjs.org/@ethereum-navigator/atlas/-/atlas-0.7.1.tgz", - "integrity": "sha512-YV7tMVwpRcJbc+Kj/Rr0RzNV/2hHBEEM1/tMWDVLB15dGJfoQuRfPJpFt6uq+Ji6s3EkldIt9kZylEeG5ALKAA==" + "version": "0.7.3", + "resolved": "https://registry.npmjs.org/@ethereum-navigator/atlas/-/atlas-0.7.3.tgz", + "integrity": "sha512-kCyV/8wOqSU/gn+H7uSaR/Xc+ZogXrW2QmF5MfZL2+NUS4+y0emlfBphTGwP5bOB0Cg2goJTcI7Y6+0LNcJYzg==" }, "@ethereum-navigator/navigator": { - "version": "0.5.2", - "resolved": "https://registry.npmjs.org/@ethereum-navigator/navigator/-/navigator-0.5.2.tgz", - "integrity": "sha512-agSE2xzLxOKKid8QiS4v8jPhnFXW5uSXsICZ4JmS437aCZ8L3SUAy3cDQKikHb2PPZ3AazJO05k8m8i6u77peQ==", + "version": "0.5.3", + "resolved": "https://registry.npmjs.org/@ethereum-navigator/navigator/-/navigator-0.5.3.tgz", + "integrity": "sha512-AOhS1EXPrVeWbLvW3fVbw5AZ2mPYXDKOqMojgVz602U/tEjRXAsw/Gwa+oSOssAyU37SNKBaIorEhBiEY+RYdA==", "requires": { - "@ethereum-navigator/atlas": "^0.7.1", + "@ethereum-navigator/atlas": "^0.7.2", "web3": "^1.2.7" } }, @@ -3622,24 +3622,24 @@ "integrity": "sha512-j4PEZSVtKSqxDYMVh/hd5vk088Bg6a6QkrUMTXN9Q6OIFAMfHM235f1AxaakNrEyK0FKMD908KuJEdfFLRn9Hw==" }, "@oceanprotocol/contracts": { - "version": "0.5.15", - "resolved": "https://registry.npmjs.org/@oceanprotocol/contracts/-/contracts-0.5.15.tgz", - "integrity": "sha512-16edzNeO2v5WLW9ClsZ9VvMH1w24fZZutCmDhZWPirCAIdojGWRHraompfICjY1fovDljnZ5MpJpffuQ6kgxOA==" + "version": "0.5.16", + "resolved": "https://registry.npmjs.org/@oceanprotocol/contracts/-/contracts-0.5.16.tgz", + "integrity": "sha512-p7aFIUT8RVoMzdPP7ML8G08BnQ09syywKjOT16hqJm0GmofunEuVffUXbryG4EkQ+qRbf/zeoxSmesi79kQXlA==" }, "@oceanprotocol/lib": { - "version": "0.14.4", - "resolved": "https://registry.npmjs.org/@oceanprotocol/lib/-/lib-0.14.4.tgz", - "integrity": "sha512-f6Wj6FLpYmuFSGtnDw0lex0Vru1tGgvZqtwrdBYtMD+hW6Bn3B51+F/9ACVYAiSRDADrqPTDZiZetT2Ji3QY7Q==", + "version": "0.14.8", + "resolved": "https://registry.npmjs.org/@oceanprotocol/lib/-/lib-0.14.8.tgz", + "integrity": "sha512-eqab5iEgowyIM/LcDDs6xhZo/KToOmVw0betjXLG0+g70zS8R6XL2RHzCpFyutSdf/cH0w/ltPUfR8ZBElIyhQ==", "requires": { "@ethereum-navigator/navigator": "^0.5.2", - "@oceanprotocol/contracts": "^0.5.10", + "@oceanprotocol/contracts": "0.5.16", "@types/crypto-js": "^4.0.1", "cross-fetch": "^3.1.2", "crypto-js": "^4.0.0", "decimal.js": "^10.2.1", "fs": "0.0.1-security", "lzma": "^2.3.2", - "node-abort-controller": "^1.2.0", + "node-abort-controller": "^2.0.0", "save-file": "^2.3.1", "uuid": "^8.3.2", "web3": "^1.3.5", @@ -28882,9 +28882,9 @@ } }, "node-abort-controller": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/node-abort-controller/-/node-abort-controller-1.2.1.tgz", - "integrity": "sha512-79PYeJuj6S9+yOHirR0JBLFOgjB6sQCir10uN6xRx25iD+ZD4ULqgRn3MwWBRaQGB0vEgReJzWwJo42T1R6YbQ==" + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/node-abort-controller/-/node-abort-controller-2.0.0.tgz", + "integrity": "sha512-L8RfEgjBTHAISTuagw51PprVAqNZoG6KSB6LQ6H1bskMVkFs5E71IyjauLBv3XbuomJlguWF/VnRHdJ1gqiAqA==" }, "node-addon-api": { "version": "2.0.2", diff --git a/package.json b/package.json index 2fb742364..ac5b5e886 100644 --- a/package.json +++ b/package.json @@ -27,7 +27,7 @@ "@coingecko/cryptoformat": "^0.4.2", "@loadable/component": "^5.14.1", "@oceanprotocol/art": "^3.0.0", - "@oceanprotocol/lib": "^0.14.4", + "@oceanprotocol/lib": "^0.14.8", "@oceanprotocol/typographies": "^0.1.0", "@portis/web3": "^3.0.3", "@sindresorhus/slugify": "^1.0.0", diff --git a/src/@types/MetaData.d.ts b/src/@types/MetaData.d.ts index 9143190ad..2481338b5 100644 --- a/src/@types/MetaData.d.ts +++ b/src/@types/MetaData.d.ts @@ -49,6 +49,7 @@ export interface MetadataPublishFormAlgorithm { dockerImage: string algorithmPrivacy: boolean timeout: string + dataTokenOptions: DataTokenOptions termsAndConditions: boolean // ---- optional fields ---- image: string @@ -61,6 +62,7 @@ export interface MetadataEditForm { name: string description: string timeout: string + price?: number links?: string | EditableMetadataLinks[] } diff --git a/src/components/atoms/Input/InputElement.tsx b/src/components/atoms/Input/InputElement.tsx index 71f515bc2..89a67a658 100644 --- a/src/components/atoms/Input/InputElement.tsx +++ b/src/components/atoms/Input/InputElement.tsx @@ -91,6 +91,7 @@ export default function InputElement({ id={slugify(option)} type={type} name={name} + checked={props.defaultChecked} {...props} />