ODCinterfacesdataIndex

IDOData

Interface defines functions to interact with data stored in DataObjects and associated with DataPoints

read

function read(DataPoint dp, bytes4 operation, bytes data) external view returns (bytes)

Reads stored data

Parameters

NameTypeDescription
dpDataPointIdentifier of the DataPoint
operationbytes4Read operation to execute on the data
databytesOperation-specific data

Return Values

NameTypeDescription
[0]bytesOperation-specific data

write

function write(DataPoint dp, bytes4 operation, bytes data) external payable returns (bytes)

Stores data

Access to this function MUST be protected and allowed only for Data Index Implementation registered for this DataPoint

Parameters

NameTypeDescription
dpDataPointIdentifier of the DataPoint
operationbytes4Write operation to execute on the data
databytesOperation-specific data

Return Values

NameTypeDescription
[0]bytesOperation-specific data (can be empty)

On this page