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

function setDataIndexImplementation(DataPoint dp, address newImpl, contract IDataObject[] dataObjects) external

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

NameTypeDescription
dpDataPointDataPoint to work with
newImpladdressNew Data Index Implementation
dataObjectscontract IDataObject[]DataObjects switched to a new implementation

_requireDataIndexImplIsValid

function _requireDataIndexImplIsValid(address dataIndexImpl) internal view

New implementation address MUST have the IPortabilityManager interface

On this page