OperatorFilterer
OperatorFilterer
Abstract contract whose constructor automatically registers and optionally subscribes to or copies another registrant's entries in the OperatorFilterRegistry.
This smart contract is meant to be inherited by token contracts so they can use the following: - onlyAllowedOperator modifier for transferFrom and safeTransferFrom methods. - onlyAllowedOperatorApproval modifier for approve and setApprovalForAll methods.
Methods
OPERATOR_FILTER_REGISTRY
function OPERATOR_FILTER_REGISTRY() external view returns (contract IOperatorFilterRegistry)
Returns
| Name | Type | Description |
|---|---|---|
| _0 | contract IOperatorFilterRegistry | undefined |
operatorRestriction
function operatorRestriction() external view returns (bool)
Returns
| Name | Type | Description |
|---|---|---|
| _0 | bool | undefined |
setOperatorRestriction
function setOperatorRestriction(bool _restriction) external nonpayable
Parameters
| Name | Type | Description |
|---|---|---|
| _restriction | bool | undefined |
Events
OperatorRestriction
event OperatorRestriction(bool restriction)
Parameters
| Name | Type | Description |
|---|---|---|
| restriction | bool | undefined |
Errors
OperatorNotAllowed
error OperatorNotAllowed(address operator)
Parameters
| Name | Type | Description |
|---|---|---|
| operator | address | undefined |