forked from energywebfoundation/origin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathIRoles.sol
16 lines (13 loc) · 806 Bytes
/
IRoles.sol
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
pragma solidity ^0.5.2;
/// @title this interface defines functions for defining functions of the user-logic in order to call them in different contracts
interface IRoles {
/// @notice function to retrieve the rights of an user
/// @dev if the user does not exist in the mapping it will return 0x0 thus preventing them from accidently getting any rights
/// @param _user user someone wants to know its rights
/// @return bitmask with the rights of the user
function getRolesRights(address _user) external view returns (uint);
/// @notice function that checks if there is an user for the provided ethereum-address
/// @param _user ethereum-address of that user
/// @return bool if the user exists
function doesUserExist(address _user) external view returns (bool);
}