AdminControlled
Inherits: BoardControlled, IAdminControlled
Author: Daniel Yamagata
A base contract that is inherited by contracts meant to be controlled by a company's board of directors and a set of admins
State Variables
AdminControlledStorageLocation
Functions
_getAdminControlledStorage
onlyAdmin
Reverts if the caller is not the board or an admin
addAdmin
Adds 'adminToAdd' to the list of admins
removeAdmin
Removes 'adminToRemove' from the list of admins
isAdmin
Returns true if the 'adminToCheck' is part of the admins set
getAdmins
Returns the list of admins
_validateCallerIsBoardOrAdmin
Reverts if the caller is not the board or an admin
_isCallerBoardOrAdmin
Returns true if the caller is the board or an admin
Structs
AdminControlledStorage
Last updated