oceanprotocol / pm

Zenhub needs each issue associated with one repo. This repo is a workaround, to mark issues that span >1 repos.
4 stars 0 forks source link

User input data required for assets & algorithms #106

Closed alexcos20 closed 2 years ago

alexcos20 commented 3 years ago

We need to be able to support:

Proposal:

The fields are going to be stored in the ddo, under services.attributes.userdata using the following structure:

[
   {
       "name":"surname",
        "type": "text",
        "label": "Name",
        "required": true,
       "description":"Please fill your name"
    },
   {
       "name":"age",
        "type": "number",
        "label": "Age",
        "required": false,
        "description":"Please fill your age"
    },
   {
       "name":"developer",
        "type": "boolean",
        "label": "Developer",
        "required": false,
        "description":"Are you a developer?"
    },
    {
       "name":"interval",
        "type": "select",
        "label": "Date",
        "required": false,
        "options": [
             {
                    "option1" : "Option number 1"
             }, 
             {
                  "option2" : "Option number 2"
             }
        ],
        "description": "Are you a developer?"
    },
]

For algorithm fields, we use the same concept, but they are stored in services.attributes.algodata using the following structure:

alexcos20 commented 2 years ago

looks like mPowered will apply for a grant to push this into market

trentmc commented 2 years ago

Update: mPowered applied for and got the grant. Here's the forum post. They are proceeding.

calina-c commented 2 years ago

@AnaLoznianu propose to close.

LoznianuAnamaria commented 2 years ago

@trentmc mPowered got the grant in round 14. So far, there are no PRs on our components for this. I did notice they provided a link: https://github.com/mPowered-io/market/tree/v4-parameters, but it's not accessible. We should sync with them, now that V4 is so close to the release. They can proceed and start PRs against Ocean components

LoznianuAnamaria commented 2 years ago

I took this up. Synced with @idiom-bytes and started the discussions with the mPowered team to see how we can proceed after the V4 release