A contract module which provides a basic access control mechanism, where there is an account (a operator) that can be granted exclusive access to specific functions.
This module is used through inheritance.
function _addOperator(address operator) internal
Internal function that stores the new operator address in the correct storage slot
| Name | Type | Description | 
|---|---|---|
| operator | address | The address of the new operator | 
function transferOperatorship(address operator) external
Change the operator of the contract.
Can only be called by the current operator.
| Name | Type | Description | 
|---|---|---|
| operator | address | The address of the new operator. | 
function proposeOperatorship(address operator) external
Propose a change of the operator of the contract.
Can only be called by the current operator.
| Name | Type | Description | 
|---|---|---|
| operator | address | The address of the new operator. | 
function acceptOperatorship(address fromOperator) external
Accept a proposed change of operatorship.
Can only be called by the proposed operator.
| Name | Type | Description | 
|---|---|---|
| fromOperator | address | The previous operator of the contract. | 
function isOperator(address addr) external view returns (bool)
Query if an address is a operator.
| Name | Type | Description | 
|---|---|---|
| addr | address | The address to query for. | 
| Name | Type | Description | 
|---|---|---|
| [0] | bool | bool Boolean value representing whether or not the address is an operator. |