IERC7540Operator
Functions
setOperator
Sets or removes an operator for the caller.
function setOperator(address operator, bool approved) external returns (bool);
Parameters
Name | Type | Description |
---|---|---|
operator | address | The address of the operator. |
approved | bool | The approval status. |
Returns
Name | Type | Description |
---|---|---|
<none> | bool | Whether the call was executed successfully or not |
isOperator
Returns true
if the operator
is approved as an operator for an controller
.
function isOperator(address controller, address operator) external view returns (bool status);
Parameters
Name | Type | Description |
---|---|---|
controller | address | The address of the controller. |
operator | address | The address of the operator. |
Returns
Name | Type | Description |
---|---|---|
status | bool | The approval status |
Events
OperatorSet
The event emitted when an operator is set.
event OperatorSet(address indexed controller, address indexed operator, bool approved);
Parameters
Name | Type | Description |
---|---|---|
controller | address | The address of the controller. |
operator | address | The address of the operator. |
approved | bool | The approval status. |