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
Provides Data Index id for a specific account for a specific DataPoint
Can be also understood as user Id within the DataIndex
Parameters
Name | Type | Description |
---|---|---|
account | address | Address of the user |
DataPoint |
Return Values
Name | Type | Description |
---|---|---|
[0] | bytes32 | Data Index token id |
ownerOf
Provides information about owner of specific Data Index id
Parameters
Name | Type | Description |
---|---|---|
diid_ | bytes32 | Data Index id to get info for |
Return Values
Name | Type | Description |
---|---|---|
[0] | uint32 | chainid of owner's address |
[1] | address | owner's address |