datasets = array of orders which needs to be executed by user.
if datatoken field is present, user must call startOrder and pay both 1 DT & providerFees (if providerAmount>0)
if validOrder field is present, and providerFees are present, user must call reuseOrder and pay only providerFees (if providerAmount>0)
if validOrder field is present, and no providerFees, user will use this orderId when calling provider startCompute (order is valid, providerFees are valid, so no need of any additional call)
algorithm = order which needs to be executed by user to purchase the algo (if needed). Uses same structure as above
compute = compute params used to call provider startCompute
Of course, ocean.js /py needs to be updated as well
Describe the bug Right now, ordering assets for c2d job is very cumbersome, prone to a lot of errors:
Proposal:
where:
assets = array of assets with type=asset. service type can be either "access" or "download". fileIndex is optional
algorithm = algorithm asset, if rawAlgo is true, then documentId and serviceId are no longer mandatory. For documentId, serviceId, orderTx, look above
compute = compute options. Which env to use and for how long (validUntil = timestamp)
Provider will do:
where:
datasets = array of orders which needs to be executed by user.
algorithm = order which needs to be executed by user to purchase the algo (if needed). Uses same structure as above
compute = compute params used to call provider startCompute
Of course, ocean.js /py needs to be updated as well