ODCdataIndex
PortabilityManagerFacet
Facet for managing the Data Index implementation of DataObjects
As we incorporte ReentrancyGuardTransient this facet only works on networks where EIP-1153 is available.
setDataIndexImplementation
This function MUST be called by DataPoint owner
After this call current implementation will not be able to work with this DataPoint on specified DataObjects Great care should be taken to not make DataObject unusable because of this change
Parameters
Name | Type | Description |
---|---|---|
dp | DataPoint | DataPoint to work with |
newImpl | address | New Data Index Implementation |
dataObjects | contract IDataObject[] | DataObjects switched to a new implementation |
_requireDataIndexImplIsValid
New implementation address MUST have the IPortabilityManager interface