Registry
Registry of probity system contracts
The registry is used as a roles registry for Probity smart contracts. Certain roles have specific permission through out the probity systems. Only the governance address can manage the registry.
Property | Type | Description |
---|---|---|
name | bytes32 | Name of the role |
isProbitySystem | bool | Whether this role is a part of probity system contracts |
function addressToRole(address addr) returns(bytes32 name, bool isProbitySystem)
Return the role information of the provided address
function setupAddress(bytes32 name, address addr, bool isProbitySystem)
Adds an address to the registry with a role
name
and whether it's probity system contract. Only callable by the governance address.
function removeAddress(address addr)
Removes an address from the registry. Only callable by the governance address.
function checkRole(bytes32 name, address addr)
Returns a boolean value indicating whether the provided address has the certain role.
function checkIfProbitySystem(address addr)
Returns a boolean value indicating whether the provided address is registered as probity system.
function checkIfRegistered(address addr)
Returns a boolean value indicating whether the provided address is registered
Last modified 1yr ago