ODC
DataPointRegistry
Contract for managing the creation, transfer and access control of DataPoints
DPAccessData
DataPoint access data
Parameters
Name | Type | Description |
---|
isAdmin
Verifies if an address has an Admin role for a DataPoint
Parameters
Name | Type | Description |
---|---|---|
dp | DataPoint | DataPoint |
account | address | Account to verify |
allocate
Allocates a DataPoint to an owner
Owner SHOULD be granted Admin role during allocation
Parameters
Name | Type | Description |
---|---|---|
owner | address | Owner of the new DataPoint |
transferOwnership
Transfers ownership of a DataPoint to a new owner
Parameters
Name | Type | Description |
---|---|---|
dp | DataPoint | DataPoint identifier |
newOwner | address | New owner |
grantAdminRole
Grant permission to grant/revoke other roles on the DataPoint inside an Data Index Implementation This is useful if DataManagers are deployed during lifecycle of the application
Parameters
Name | Type | Description |
---|---|---|
dp | DataPoint | DataPoint identifier |
account | address | New admin |
Return Values
Name | Type | Description |
---|---|---|
[0] | bool | If the role was granted (otherwise account already had the role) |
revokeAdminRole
Revoke permission to grant/revoke other roles on the DataPoint inside an Data Index Implementation
If an owner revokes Admin role from himself, he can add it again
Parameters
Name | Type | Description |
---|---|---|
dp | DataPoint | DataPoint identifier |
account | address | Old admin |
Return Values
Name | Type | Description |
---|---|---|
[0] | bool | If the role was revoked (otherwise account didn't had the role) |