2021-10-21 20:58:55 +02:00
{
"metadata" : {
2021-10-28 11:38:40 +02:00
"title" : "Metadata" ,
2021-10-21 20:58:55 +02:00
"fields" : [
2021-11-15 16:02:13 +01:00
{
"name" : "nft" ,
"label" : "Data NFT" ,
"type" : "nft" ,
2022-02-14 13:16:29 +01:00
"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." ,
2021-11-15 16:02:13 +01:00
"required" : true
} ,
2021-11-15 13:44:27 +01:00
{
"name" : "type" ,
"label" : "Asset Type" ,
"type" : "boxSelection" ,
"options" : [ "Dataset" , "Algorithm" ] ,
"required" : true
} ,
2021-10-21 20:58:55 +02:00
{
"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" ,
2022-08-15 15:57:53 +02:00
"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)." ,
2021-10-21 20:58:55 +02:00
"required" : true
} ,
{
"name" : "tags" ,
"label" : "Tags" ,
2022-10-05 16:40:00 +02:00
"type" : "tags" ,
"placeholder" : "e.g. logistics"
2021-10-21 20:58:55 +02:00
} ,
2021-11-15 13:44:27 +01:00
{
"name" : "dockerImage" ,
"label" : "Docker Image" ,
"help" : "Please select an image to run your algorithm." ,
"type" : "boxSelection" ,
2021-11-29 14:25:30 +01:00
"options" : [
"populated from algorithmContainerPresets in Publish/_constants"
] ,
2021-11-15 13:44:27 +01:00
"required" : true
} ,
{
"name" : "dockerImageCustom" ,
2022-10-10 14:59:32 +02:00
"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" ,
2022-09-19 14:54:07 +02:00
"type" : "container" ,
2021-11-15 13:44:27 +01:00
"required" : true
} ,
{
2022-09-19 14:54:07 +02:00
"name" : "dockerImageChecksum" ,
2022-09-20 21:24:16 +02:00
"label" : "Docker Image Checksum" ,
2022-09-19 14:54:07 +02:00
"placeholder" : "e.g. sha256:xiXqb7Vet0FbN9q0GFMgUdi5C22wjJT0i2G6lYKC2jl6QxkKzVz7KaPDgqfTMjNF" ,
2022-09-20 21:24:16 +02:00
"help" : "Provide the checksum(DIGEST) of your docker image." ,
2021-11-15 13:44:27 +01:00
"required" : true
} ,
{
"name" : "dockerImageCustomEntrypoint" ,
2022-10-10 14:59:32 +02:00
"label" : "Docker Image Entrypoint" ,
2021-11-15 13:44:27 +01:00
"placeholder" : "e.g. python $ALGO" ,
"help" : "Provide the entrypoint for your algorithm." ,
"required" : true
} ,
2021-10-21 20:58:55 +02:00
{
"name" : "termsAndConditions" ,
"label" : "Terms & Conditions" ,
2021-10-28 12:33:29 +02:00
"type" : "checkbox" ,
2021-11-25 15:36:01 +01:00
"options" : [ "I agree to the Terms and Conditions" ] ,
2021-10-21 20:58:55 +02:00
"required" : true
}
]
} ,
"services" : {
2021-10-28 11:38:40 +02:00
"title" : "Access" ,
2021-10-21 20:58:55 +02:00
"fields" : [
2021-10-28 12:33:29 +02:00
{
"name" : "dataTokenOptions" ,
2021-11-15 16:42:50 +01:00
"label" : "Datatoken" ,
2021-10-28 12:33:29 +02:00
"type" : "datatoken" ,
2021-11-15 16:42:50 +01:00
"help" : "The datatoken used for accessing this asset will be created with this name & symbol." ,
2021-10-28 12:33:29 +02:00
"required" : true
} ,
2021-10-25 15:26:00 +02:00
{
2021-11-15 13:44:27 +01:00
"name" : "providerUrl" ,
2021-11-23 16:34:43 +01:00
"label" : "Provider URL" ,
2021-11-15 13:44:27 +01:00
"type" : "providerUrl" ,
2021-11-23 16:34:43 +01:00
"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
2021-10-25 15:26:00 +02:00
} ,
{
"name" : "files" ,
"label" : "File" ,
2023-01-18 11:35:14 +01:00
"prominentHelp" : false ,
2022-11-25 15:07:55 +01:00
"type" : "tabs" ,
2023-01-18 11:35:14 +01:00
"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" ,
2023-03-06 11:32:32 +01:00
"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
}
]
2023-01-18 11:35:14 +01:00
}
] ,
2022-11-25 15:07:55 +01:00
"sortOptions" : false ,
2021-10-25 15:26:00 +02:00
"required" : true
2023-01-18 11:35:14 +01:00
} ,
{
2021-10-25 15:26:00 +02:00
"name" : "links" ,
"label" : "Sample file" ,
2022-11-25 15:07:55 +01:00
"prominentHelp" : false ,
"type" : "tabs" ,
"fields" : [
{
2023-01-18 11:35:14 +01:00
"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
}
] ,
2022-11-25 15:07:55 +01:00
"required" : false
2021-10-25 15:26:00 +02:00
} ,
2021-11-15 13:44:27 +01:00
{
"name" : "algorithmPrivacy" ,
"label" : "Algorithm Privacy" ,
"type" : "checkbox" ,
2023-04-18 14:38:26 +02:00
"options" : [ "Keep my algorithm private for compute-to-data" ] ,
2022-08-15 15:57:53 +02:00
"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." ,
2021-11-15 13:44:27 +01:00
"required" : false
} ,
2021-10-21 20:58:55 +02:00
{
"name" : "access" ,
"label" : "Access Type" ,
"help" : "Choose how you want your files to be accessible for the specified price." ,
"type" : "boxSelection" ,
2021-12-21 21:26:08 +01:00
"options" : [ "Access" , "Compute" ] ,
2021-10-21 20:58:55 +02:00
"required" : true ,
"disclaimer" : "Please do not provide downloadable personal data without the consent of the data subjects." ,
"disclaimerValues" : [ "Download" ]
} ,
{
"name" : "timeout" ,
"label" : "Timeout" ,
2022-08-15 15:57:53 +02:00
"help" : "Define how long buyers should be able to download the dataset again after the initial purchase." ,
2021-10-21 20:58:55 +02:00
"type" : "select" ,
"options" : [ "Forever" , "1 day" , "1 week" , "1 month" , "1 year" ] ,
"sortOptions" : false ,
"required" : true
}
]
} ,
"pricing" : {
2021-10-28 11:38:40 +02:00
"title" : "Pricing" ,
2021-10-25 15:26:00 +02:00
"fields" : [
{
2021-10-28 12:33:29 +02:00
"name" : "dummy content, actual content is defined under 'create' key in ../price.json"
2021-10-25 15:26:00 +02:00
}
]
2021-10-28 12:33:29 +02:00
} ,
"preview" : {
"title" : "Preview"
2021-11-24 15:46:10 +01:00
} ,
"submission" : {
"title" : "Submit"
2021-10-21 20:58:55 +02:00
}
}