An interface for 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.
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
Proposed 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. |