↗ Extends: Ownable ↘ Derived Contracts: CustomPausable.
CustomAdmin
Constants & Variables
mapping(address => bool) public admins;Events
event AdminAdded(address indexed _address);
event AdminRemoved(address indexed _address);Validates if the sender is actually an administrator.
modifier onlyAdmin() internalArguments
| Name | Type | Description |
|---|
Adds the specified address to the list of administrators.
function addAdmin(address _address) external onlyAdminArguments
| Name | Type | Description |
|---|---|---|
| _address | address | The address to add to the administrator list. |
Adds multiple addresses to the administrator list.
function addManyAdmins(address[] _accounts) external onlyAdminArguments
| Name | Type | Description |
|---|---|---|
| _accounts | address[] | The wallet addresses to add to the administrator list. |
Removes the specified address from the list of administrators.
function removeAdmin(address _address) external onlyAdminArguments
| Name | Type | Description |
|---|---|---|
| _address | address | The address to remove from the administrator list. |
Removes multiple addresses to the administrator list.
function removeManyAdmins(address[] _accounts) external onlyAdminArguments
| Name | Type | Description |
|---|---|---|
| _accounts | address[] | The wallet addresses to add to the administrator list. |