ODCdataIndex

IDManagerFacet

Facet with functions to build Data Index user identifiers and get information about them

This implementation of IDManager uses OmnichainAddresses as Data Index user identifiers Features & limitations: - no MINT operation required: any address can be used as identifier, and the identifier includes owner's address - TRANSFER of identifier to another address is not possible (we recomend to transfer DataPoint data instead)

diid

function diid(address account, DataPoint) external view returns (bytes32)

Provides Data Index id for a specific account for a specific DataPoint

Can be also understood as user Id within the DataIndex

Parameters

NameTypeDescription
accountaddressAddress of the user
DataPoint

Return Values

NameTypeDescription
[0]bytes32Data Index token id

ownerOf

function ownerOf(bytes32 diid_) external pure returns (uint32, address)

Provides information about owner of specific Data Index id

Parameters

NameTypeDescription
diid_bytes32Data Index id to get info for

Return Values

NameTypeDescription
[0]uint32chainid of owner's address
[1]addressowner's address

On this page