Data Owner API

_addDORequest 92b93774

Adds new Data Owner 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

_instances

How many instances should be run

6

uint8

_maxPrice

The maximum price accepted for processing request

7

string

_metadata1

Metadata to store in request

8

string

_metadata2

Metadata to store in request

9

string

_metadata3

Metadata to store in request

10

string

_metadata4

Metadata to store in request

outputs

0

uint256

_rowNumber

Data owner request id

_cancelDORequest 9ecbec41

Cancels a data owner request

inputs

0

uint256

_requestListItem

the request id

_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

_getDORequest 4f74787b

Gets details of a specific data owner request

inputs

0

uint256

_requestListItem

the request id

outputs

0

address

downer

Data owner 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

maxPrice

The maximum price accepted for processing request

7

uint256

status

The request status [values in Available/Booked/Canceled

_getDORequestMetadata d9edc139

Gets metadata of a data owner request

inputs

0

uint256

_requestListItem

the request id

outputs

0

address

downer

1

string

metadata1

2

string

metadata2

3

string

metadata3

4

string

metadata4

_getDORequestsCount 7aed1214

Gets total count of Data Owner Requests

outputs

0

uint256

_length

The counter of do requests

_getMyDOOrders a8203abb

Gets the list of orders

outputs

0

uint256[]

req

Orders list

_getMyDORequests 93132366

Gets all data owner request id list

outputs

0

uint256[]

req

An array containing all data owner 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 DO and DP

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