ODCdataIndex

DataManagerFacet

Facet to manage the interaction with the data stored in DataObjects by DataManagers

As we incorporte ReentrancyGuardTransient this facet only works on networks where EIP-1153 is available.

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)

transferDataPoint

function transferDataPoint(DataPoint dp, address[] dataobjects, bytes32 fromDiid, bytes32 toDiid) external

Transfers data from one id to another

Function SHOULD be restricted to allowed DMs only

Parameters

NameTypeDescription
dpDataPointIdentifier of the DataPoint
dataobjectsaddress[]List of DataObjects to work with
fromDiidbytes32ID to transfer from
toDiidbytes32ID to transfer to

On this page