ODCinterfacesdataIndex

IPortabilityManager

Interface defines functions used to change Data Index implementation used for a DataPoint to another one

IncorrectDataIndexImplementationAddress

error IncorrectDataIndexImplementationAddress(address dataIndexImpl)

Error thrown when incorrect Data Index implementation address is provided

Parameters

NameTypeDescription
dataIndexImpladdressIncorrect Data Index Implementation address

DataIndexImplementationSet

event DataIndexImplementationSet(DataPoint dp, address dataIndexImpl, contract IDataObject[] dataObjects)

Emitted when Data Index implementation is set

Parameters

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

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

On this page