Data Processor API

_addDPRequest 3701f582

Adds new Data Processor Request

inputs

0

uint8

_cpuRequest

The number of cpu cores

1

uint8

_memRequest

The amount of ram in GB

2

uint8

_storageRequest

The amount of storage in GB

3

uint8

_bandwidthRequest

The bandwidth amount

4

uint16

_duration

The amount of time the resource can be offered

5

uint8

_minPrice

The minimum price accepted for processing request

6

string

_metadata1

Metadata to store in request

7

string

_metadata2

Metadata to store in request

8

string

_metadata3

Metadata to store in request

9

string

_metadata4

Metadata to store in request

outputs

0

uint256

_rowNumber

Data processor request id

_addProcessorToOrder 4509b7e0

Adds a processor to order

inputs

0

uint256

_orderItem

Order number

1

address

processor

Processor address

outputs

0

bool

success

Status of operation

_addResultToOrder 14e9f384

Adds result to order

inputs

0

uint256

_orderItem

Order number

1

string

_result

processor output after processing

outputs

0

bool

success

Status of operation

_approveOrder efa09d85

Approves order - orders can be processed only after being approved by other part(do/dp)

inputs

0

uint256

_orderItem

the order id

outputs

0

bool

success

Status of operation

_cancelDPRequest 676a96d8

Cancels a data processor request

inputs

0

uint256

_requestListItem

the request id

_getDPRequest 00d74970

Gets details of a specific data processor request

inputs

0

uint256

_requestListItem

the request id

outputs

0

address

dproc

Data processor address

1

uint8

cpuRequest

The number of cpu cores[maximum 255]

2

uint8

memoryRequest

The amount of ram in GB[maximum 255]

3

uint8

storageRequest

The amount of storage in GB[maximum 255]

4

uint8

bandwidthRequest

The bandwidth amount[maximum 255]

5

uint16

duration

The amount of time the resource can be offered

6

uint8

minPrice

The minimum price accepted for processing request

7

uint256

status

The request status [values in Available/Booked/Canceled

_getDPRequestMetadata 98455999

Gets metadata of a data processor request

inputs

0

uint256

_requestListItem

the request id

outputs

0

address

dproc

1

string

metadata1

2

string

metadata2

3

string

metadata3

4

string

metadata4

_getDPRequestsCount e780ada1

Gets total count of Data Processor Requests

outputs

0

uint256

_length

The counter of dp requests

_getMyDOOrders a8203abb

Gets the list of orders

outputs

0

uint256[]

req

Orders list

function, constant

_getMyDPRequests 4c1782e5

Gets all data processor request id list

outputs

0

uint256[]

req

An array containing all data processor requests

_getOrder b3bb3da3

Gets order info

inputs

0

uint256

_orderItem

the order id

outputs

0

address

downer

Data owner address

1

address

dproc

Data processor address

2

uint256

doRequest

Data owner request id

3

uint256

dpRequest

Data processor request id

4

uint256

status

Order status

_getOrdersCount 246439e6

Gets order count

outputs

0

uint256

_length

Order count

_getResultFromOrder 008a81a6

Gets result from order

inputs

0

uint256

_orderItem

Order number

outputs

0

string

_Result

Order Result

_placeOrder 9818e66c

Places new order - this can placed by dp/do

inputs

0

uint256

_doRequestItem

the data owner request id

1

uint256

_dpRequestItem

the data processor request id

outputs

0

uint256

_orderNumber

Order number

Last updated