mirror of
https://github.com/oceanprotocol/market.git
synced 2024-12-02 05:57:29 +01:00
b6f3bcbe68
* support storage type publish * adding storageType to edit form * add IPFS type * fix testst and rollback ipfs typing * update oceanjs lib * fix Ipfs type * Update package-lock.json * added graphql and smartcontract options UI (WIP) * update package.json * removed graphql and smartcontracts * make various fixes for edit and publish with IPFS (missing Arweave) * removed no-case-declarations lines * moved ipfs utils * renamed getFileUrlInfo to getFileInfo * added is-ipfs to jest mock * Update package-lock.json * fix things * npm is fun * rename url to file in getFileInfo * refactor publish form (storage type field) * fix tab value when changing tabs * refactoring edit form * more refactor edit form * fix edit validation * fix validation when input is empty on edit form * fix validation when loading asset in edit form * change URL to file confirmed * change messages based on service type * Update form.json * fix FileInput tests and added ipfs / arweave tests * removed unnecessary comment * Update index.tsx * adding graphql / onchain to fieldInput * merged main and fix storages (WIP) * restore graphql / smart contract * added headers to graphql and connect fields * fix tests temp * fix publish preview file object * added codemirror component and change layout * added codemirror to edit and normalizing ddo debug preview * added codemirror to edit form * fix typing issues * style and logic changes to codemirror component * fix test (temp fix) * Avoiding getInitialPaymentCollector failure (#1816) * early return is no web3 or ddo * Creating test for MetaFull * adding test: src/components/Asset/AssetContent/MetaSecondary.test.tsx * Adding test for bookmarks * Adding test for displaying payment collector * Removing comments * Renaming assetAquarius * Renaming assetWithAccessDetails * Ensuring that the payment collector is shown even without a wallet connected * Removing broken test * Using getDummyWeb3 for fetching the payment collector address * WIP * update ocean lib * parse abi obj on publish * fix previewDebugPatch function * Update package-lock.json * remove logs * fix build error * fix stupid typo * upgrade codemirror * simplify checkJson function * fix preview json display * validate json on sm storage * cleanup * fix edit validation * fix initial state tabs storage type * remove logs * fix text headers * google validation (#1835) * Updating validation to exclude any google link * Updating Yup validation * Checking if domain includes google.com * Updating isGoogleUrl function * Moving isGoogleUrl into @utils/url/index file * isGoogleUrl function * Updating tests * Adding additional tests for other google domains * Updating tests * Updating isGoogleUrl file path * upgrade ocean lib * cleanup * edit mode fixes * added tests for graphql and sm * Updating pricing message (#1842) * Bump @storybook/addon-essentials from 6.5.13 to 6.5.15 (#1841) Bumps [@storybook/addon-essentials](https://github.com/storybookjs/storybook/tree/HEAD/addons/essentials) from 6.5.13 to 6.5.15. - [Release notes](https://github.com/storybookjs/storybook/releases) - [Changelog](https://github.com/storybookjs/storybook/blob/v6.5.15/CHANGELOG.md) - [Commits](https://github.com/storybookjs/storybook/commits/v6.5.15/addons/essentials) --- updated-dependencies: - dependency-name: "@storybook/addon-essentials" dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Bump @types/jest from 29.2.3 to 29.2.5 (#1840) Bumps [@types/jest](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/jest) from 29.2.3 to 29.2.5. - [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases) - [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/jest) --- updated-dependencies: - dependency-name: "@types/jest" dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Bump prettier from 2.8.0 to 2.8.1 (#1837) Bumps [prettier](https://github.com/prettier/prettier) from 2.8.0 to 2.8.1. - [Release notes](https://github.com/prettier/prettier/releases) - [Changelog](https://github.com/prettier/prettier/blob/main/CHANGELOG.md) - [Commits](https://github.com/prettier/prettier/compare/2.8.0...2.8.1) --- updated-dependencies: - dependency-name: prettier dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Bump react-select from 5.6.1 to 5.7.0 (#1839) Bumps [react-select](https://github.com/JedWatson/react-select) from 5.6.1 to 5.7.0. - [Release notes](https://github.com/JedWatson/react-select/releases) - [Changelog](https://github.com/JedWatson/react-select/blob/master/docs/CHANGELOG.md) - [Commits](https://github.com/JedWatson/react-select/compare/react-select@5.6.1...react-select@5.7.0) --- updated-dependencies: - dependency-name: react-select dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Bump react-tabs from 5.1.0 to 6.0.0 (#1838) Bumps [react-tabs](https://github.com/reactjs/react-tabs) from 5.1.0 to 6.0.0. - [Release notes](https://github.com/reactjs/react-tabs/releases) - [Commits](https://github.com/reactjs/react-tabs/compare/v5.1.0...v6.0.0) --- updated-dependencies: - dependency-name: react-tabs dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * fix asset route (#1836) * updating the buy button message for free assets * Updating pricing text for compute and algorithms * Updating tests * Adding a seperate sentence about paying gas fees for network charges with free assets * Fixing tests Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: mihaisc <mihai.scarlat@smartcontrol.ro> * Showing hosting type in File Info (#1846) * Bump @storybook/addon-essentials from 6.5.13 to 6.5.15 (#1841) Bumps [@storybook/addon-essentials](https://github.com/storybookjs/storybook/tree/HEAD/addons/essentials) from 6.5.13 to 6.5.15. - [Release notes](https://github.com/storybookjs/storybook/releases) - [Changelog](https://github.com/storybookjs/storybook/blob/v6.5.15/CHANGELOG.md) - [Commits](https://github.com/storybookjs/storybook/commits/v6.5.15/addons/essentials) --- updated-dependencies: - dependency-name: "@storybook/addon-essentials" dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Bump @types/jest from 29.2.3 to 29.2.5 (#1840) Bumps [@types/jest](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/jest) from 29.2.3 to 29.2.5. - [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases) - [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/jest) --- updated-dependencies: - dependency-name: "@types/jest" dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Bump prettier from 2.8.0 to 2.8.1 (#1837) Bumps [prettier](https://github.com/prettier/prettier) from 2.8.0 to 2.8.1. - [Release notes](https://github.com/prettier/prettier/releases) - [Changelog](https://github.com/prettier/prettier/blob/main/CHANGELOG.md) - [Commits](https://github.com/prettier/prettier/compare/2.8.0...2.8.1) --- updated-dependencies: - dependency-name: prettier dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Bump react-select from 5.6.1 to 5.7.0 (#1839) Bumps [react-select](https://github.com/JedWatson/react-select) from 5.6.1 to 5.7.0. - [Release notes](https://github.com/JedWatson/react-select/releases) - [Changelog](https://github.com/JedWatson/react-select/blob/master/docs/CHANGELOG.md) - [Commits](https://github.com/JedWatson/react-select/compare/react-select@5.6.1...react-select@5.7.0) --- updated-dependencies: - dependency-name: react-select dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Bump react-tabs from 5.1.0 to 6.0.0 (#1838) Bumps [react-tabs](https://github.com/reactjs/react-tabs) from 5.1.0 to 6.0.0. - [Release notes](https://github.com/reactjs/react-tabs/releases) - [Commits](https://github.com/reactjs/react-tabs/compare/v5.1.0...v6.0.0) --- updated-dependencies: - dependency-name: react-tabs dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * fix asset route (#1836) * Adding hosting type to the file info component * Writting smart contract hosting type across two lines Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: mihaisc <mihai.scarlat@smartcontrol.ro> * add initial price value for not supported price assets (#1851) * Fix compute basetoken issue (#1829) * fix lint * add dynamic provider fees * fixes * cleanup and more fixes * bump oceanlib to 2.6.0 * fix 404 styling (#1850) * cleanup and remove logs * fix smart contract check * restore headers * removed unnecessary message * fix error SM with headers * added headers as object to normalize file * fix input error in url file * adding methods to url storage type * test pipeline (now it's stuck) * cleanup * fix MethodInput test * fix arweave fileObj * Update index.tsx * fix provider url in form test * fixing test errors * fix test * fix help labels * cleanup leftovers * cleanup dependencies codemirror * remove any from normalizeFile * edit comment * remove any from oceanTheme --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: Matthias Kretschmann <m@kretschmann.io> Co-authored-by: Jamie Hewitt <jamie@oceanprotocol.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: mihaisc <mihai.scarlat@smartcontrol.ro> Co-authored-by: Jamie Hewitt <jamie.hewitt15@gmail.com> Co-authored-by: Bogdan Fazakas <bogdan.fazakas@gmail.com>
276 lines
11 KiB
JSON
276 lines
11 KiB
JSON
{
|
|
"metadata": {
|
|
"title": "Metadata",
|
|
"fields": [
|
|
{
|
|
"name": "nft",
|
|
"label": "Data NFT",
|
|
"type": "nft",
|
|
"help": "All metadata is stored on-chain in a newly deployed ERC-721 contract representing this asset, created with this name, symbol, description and image.",
|
|
"required": true
|
|
},
|
|
{
|
|
"name": "type",
|
|
"label": "Asset Type",
|
|
"type": "boxSelection",
|
|
"options": ["Dataset", "Algorithm"],
|
|
"required": true
|
|
},
|
|
{
|
|
"name": "name",
|
|
"label": "Title",
|
|
"placeholder": "e.g. Shapes of Desert Plants",
|
|
"required": true
|
|
},
|
|
{
|
|
"name": "description",
|
|
"label": "Description",
|
|
"help": "Add a thorough description with as much detail as possible. You can use [Markdown](https://daringfireball.net/projects/markdown/basics). You can change the description at any time. If you provide personal data, please note that it will remain in the transaction history. For more information on how personal data is handled within the metadata, please refer to our [privacy policy](/privacy/en).",
|
|
"type": "textarea",
|
|
"required": true
|
|
},
|
|
{
|
|
"name": "author",
|
|
"label": "Author",
|
|
"placeholder": "e.g. Jelly McJellyfish",
|
|
"help": "Give proper attribution for your dataset. You are welcome to use a pseudonym, and you can change your author name at any time. Please note that it will remain in the transaction history. For more information on how personal data is handled within the metadata, please refer to our [privacy policy](/privacy/en).",
|
|
"required": true
|
|
},
|
|
{
|
|
"name": "tags",
|
|
"label": "Tags",
|
|
"type": "tags",
|
|
"placeholder": "e.g. logistics"
|
|
},
|
|
{
|
|
"name": "dockerImage",
|
|
"label": "Docker Image",
|
|
"help": "Please select an image to run your algorithm.",
|
|
"type": "boxSelection",
|
|
"options": [
|
|
"populated from algorithmContainerPresets in Publish/_constants"
|
|
],
|
|
"required": true
|
|
},
|
|
{
|
|
"name": "dockerImageCustom",
|
|
"label": "Custom Docker Image",
|
|
"placeholder": "e.g. oceanprotocol/algo_dockers:node-vibrant or quay.io/startx/mariadb",
|
|
"help": "Provide the name and the tag of a public Docker hub image or the custom image if you have it hosted in a 3rd party repository",
|
|
"type": "container",
|
|
"required": true
|
|
},
|
|
{
|
|
"name": "dockerImageChecksum",
|
|
"label": "Docker Image Checksum",
|
|
"placeholder": "e.g. sha256:xiXqb7Vet0FbN9q0GFMgUdi5C22wjJT0i2G6lYKC2jl6QxkKzVz7KaPDgqfTMjNF",
|
|
"help": "Provide the checksum(DIGEST) of your docker image.",
|
|
"required": true
|
|
},
|
|
{
|
|
"name": "dockerImageCustomEntrypoint",
|
|
"label": "Docker Image Entrypoint",
|
|
"placeholder": "e.g. python $ALGO",
|
|
"help": "Provide the entrypoint for your algorithm.",
|
|
"required": true
|
|
},
|
|
{
|
|
"name": "termsAndConditions",
|
|
"label": "Terms & Conditions",
|
|
"type": "checkbox",
|
|
"options": ["I agree to the Terms and Conditions"],
|
|
"required": true
|
|
}
|
|
]
|
|
},
|
|
"services": {
|
|
"title": "Access",
|
|
"fields": [
|
|
{
|
|
"name": "dataTokenOptions",
|
|
"label": "Datatoken",
|
|
"type": "datatoken",
|
|
"help": "The datatoken used for accessing this asset will be created with this name & symbol.",
|
|
"required": true
|
|
},
|
|
{
|
|
"name": "providerUrl",
|
|
"label": "Provider URL",
|
|
"type": "providerUrl",
|
|
"help": "Enter the URL for your custom [provider](https://github.com/oceanprotocol/provider/) or leave as is to use the default one. If you change your provider URL after adding your file, please add & validate your file again.",
|
|
"placeholder": "e.g. https://provider.oceanprotocol.com/",
|
|
"required": true
|
|
},
|
|
{
|
|
"name": "files",
|
|
"label": "File",
|
|
"prominentHelp": false,
|
|
"type": "tabs",
|
|
"fields": [
|
|
{
|
|
"value": "ipfs",
|
|
"title": "IPFS",
|
|
"label": "CID",
|
|
"placeholder": "e.g. bafkreidgvpkjawlxz6sffxzwgooowe5yt7i6wsyg236mfoks77nywkptdq",
|
|
"help": "This CID will be stored encrypted after publishing.",
|
|
"computeHelp": "For a compute dataset, your file should match the file type required by the algorithm, and should not exceed 1 GB in file size. ",
|
|
"prominentHelp": true,
|
|
"type": "files",
|
|
"required": true
|
|
},
|
|
{
|
|
"value": "arweave",
|
|
"title": "Arweave",
|
|
"label": "Transaction ID",
|
|
"placeholder": "e.g. DBRCL94j3QqdPaUtt4VWRen8rZfJZBb7Ey40iMpXfhtd",
|
|
"help": "This Transaction ID will be stored encrypted after publishing.",
|
|
"computeHelp": "For a compute dataset, your file should match the file type required by the algorithm, and should not exceed 1 GB in file size. ",
|
|
"prominentHelp": true,
|
|
"type": "files",
|
|
"required": true
|
|
},
|
|
{
|
|
"value": "url",
|
|
"title": "URL",
|
|
"label": "File",
|
|
"placeholder": "e.g. https://file.com/file.json",
|
|
"help": "This URL will be stored encrypted after publishing. **Please make sure that the endpoint is accessible over the internet and is not protected by a firewall or by credentials.**",
|
|
"computeHelp": "For a compute dataset, your file should match the file type required by the algorithm, and should not exceed 1 GB in file size. ",
|
|
"prominentHelp": true,
|
|
"type": "files",
|
|
"required": true,
|
|
"methods": true,
|
|
"innerFields": [
|
|
{
|
|
"value": "headers",
|
|
"title": "Headers",
|
|
"label": "Headers",
|
|
"placeholder_value": "Authorization",
|
|
"help": "This HEADERS will be stored encrypted after publishing.",
|
|
"type": "headers",
|
|
"required": false
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"value": "graphql",
|
|
"title": "Graphql",
|
|
"label": "URL",
|
|
"placeholder": "e.g. http://172.15.0.15:8000/subgraphs/name/oceanprotocol/ocean-subgraph",
|
|
"help": "This URL will be stored encrypted after publishing.",
|
|
"computeHelp": "For a compute dataset, your file should match the file type required by the algorithm, and should not exceed 1 GB in file size. ",
|
|
"prominentHelp": true,
|
|
"type": "files",
|
|
"required": true,
|
|
"innerFields": [
|
|
{
|
|
"value": "headers",
|
|
"title": "Headers",
|
|
"label": "Headers",
|
|
"placeholder_value": "Authorization",
|
|
"help": "This HEADERS will be stored encrypted after publishing.",
|
|
"type": "headers",
|
|
"required": false
|
|
},
|
|
{
|
|
"value": "query",
|
|
"title": "Query",
|
|
"label": "Query",
|
|
"placeholder": "query{\n nfts(\n orderBy: createdTimestamp,\n orderDirection:desc\n ){\n id\n symbol\n createdTimestamp\n }\n}",
|
|
"help": "This QUERY will be stored encrypted after publishing.",
|
|
"type": "codeeditor",
|
|
"required": true
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"value": "smartcontract",
|
|
"title": "Smartcontract",
|
|
"label": "Address",
|
|
"placeholder": "e.g. 0x8149276f275EEFAc110D74AFE8AFECEaeC7d1593",
|
|
"help": "This ADDRESS will be stored encrypted after publishing.",
|
|
"computeHelp": "For a compute dataset, your file should match the file type required by the algorithm, and should not exceed 1 GB in file size. ",
|
|
"prominentHelp": true,
|
|
"type": "files",
|
|
"required": true,
|
|
"innerFields": [
|
|
{
|
|
"value": "abi",
|
|
"title": "ABI",
|
|
"label": "ABI",
|
|
"placeholder": "{\n 'inputs': [],\n 'name': 'swapOceanFee',\n 'outputs': [{'internalType': 'uint256', 'name': '', 'type': 'uint256'}],\n 'stateMutability': 'view',\n 'type': 'function'\n}",
|
|
"help": "This ABI will be stored encrypted after publishing.",
|
|
"type": "codeeditor",
|
|
"required": true
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"sortOptions": false,
|
|
"required": true
|
|
},
|
|
{
|
|
"name": "links",
|
|
"label": "Sample file",
|
|
"prominentHelp": false,
|
|
"type": "tabs",
|
|
"fields": [
|
|
{
|
|
"value": "url",
|
|
"title": "URL",
|
|
"label": "File",
|
|
"placeholder": "e.g. https://file.com/file.json",
|
|
"help": "This URL will be stored encrypted after publishing. **Please make sure that the endpoint is accessible over the internet and is not protected by a firewall or by credentials.**",
|
|
"computeHelp": "For a compute dataset, your file should match the file type required by the algorithm, and should not exceed 1 GB in file size. ",
|
|
"prominentHelp": true,
|
|
"type": "files",
|
|
"required": false
|
|
}
|
|
],
|
|
"required": false
|
|
},
|
|
{
|
|
"name": "algorithmPrivacy",
|
|
"label": "Algorithm Privacy",
|
|
"type": "checkbox",
|
|
"options": ["Keep my algorithm private"],
|
|
"help": "By default, your algorithm can be downloaded for free or a fixed price, in addition to running in compute jobs. Enabling this option will prevent downloading, so your algorithm can only be run as part of a compute job on a dataset.",
|
|
"required": false
|
|
},
|
|
{
|
|
"name": "access",
|
|
"label": "Access Type",
|
|
"help": "Choose how you want your files to be accessible for the specified price.",
|
|
"type": "boxSelection",
|
|
"options": ["Access", "Compute"],
|
|
"required": true,
|
|
"disclaimer": "Please do not provide downloadable personal data without the consent of the data subjects.",
|
|
"disclaimerValues": ["Download"]
|
|
},
|
|
{
|
|
"name": "timeout",
|
|
"label": "Timeout",
|
|
"help": "Define how long buyers should be able to download the dataset again after the initial purchase.",
|
|
"type": "select",
|
|
"options": ["Forever", "1 day", "1 week", "1 month", "1 year"],
|
|
"sortOptions": false,
|
|
"required": true
|
|
}
|
|
]
|
|
},
|
|
"pricing": {
|
|
"title": "Pricing",
|
|
"fields": [
|
|
{
|
|
"name": "dummy content, actual content is defined under 'create' key in ../price.json"
|
|
}
|
|
]
|
|
},
|
|
"preview": {
|
|
"title": "Preview"
|
|
},
|
|
"submission": {
|
|
"title": "Submit"
|
|
}
|
|
}
|