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
Reads stored data
Parameters
| Name | Type | Description |
|---|---|---|
| dobj | contract IDataObject | Identifier of DataObject |
| dp | DataPoint | Identifier of the DataPoint |
| operation | bytes4 | Read operation to execute on the data |
| data | bytes | Operation-specific data |
Return Values
| Name | Type | Description |
|---|---|---|
| [0] | bytes | Operation-specific data |
write
Stores data
Function SHOULD be restricted to allowed DMs only
Parameters
| Name | Type | Description |
|---|---|---|
| dobj | contract IDataObject | Identifier of DataObject |
| dp | DataPoint | Identifier of the DataPoint |
| operation | bytes4 | Write operation to execute on the data |
| data | bytes | Operation-specific data |
Return Values
| Name | Type | Description |
|---|---|---|
| [0] | bytes | Operation-specific data (can be empty) |
transferDataPoint
Transfers data from one id to another
Function SHOULD be restricted to allowed DMs only
Parameters
| Name | Type | Description |
|---|---|---|
| dp | DataPoint | Identifier of the DataPoint |
| dataobjects | address[] | List of DataObjects to work with |
| fromDiid | bytes32 | ID to transfer from |
| toDiid | bytes32 | ID to transfer to |

