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

Improve C2d flows by separating initialize and initializeCompute #146

Closed alexcos20 closed 2 years ago

alexcos20 commented 2 years ago

Describe the bug Right now, ordering assets for c2d job is very cumbersome, prone to a lot of errors:

Proposal:

where:

Provider will do:

{
 "datasets": [
           {  "datatoken": "0x123", "providerFees": {..} }, 
           {  "validOrder": "0x234454645634", "providerFees": {..} }
           {  "validOrder": "0x4567"}
 ],
 "algorithm": { "datatoken": "0x123", "providerFees": {..} },
   "compute":{
        "env":"xxx",
       "validUntil":343343
    },
}

where:

Of course, ocean.js /py needs to be updated as well