ODCinterfacesdataIndex

IData

Interface defines functions to interact with stored data in DataObjects for DataPoints

read

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

Reads stored data

Parameters

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

Return Values

NameTypeDescription
[0]bytesOperation-specific data

write

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

Stores data

Function SHOULD be restricted to allowed DMs only

Parameters

NameTypeDescription
dobjcontract IDataObjectIdentifier of DataObject
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