|
| 1 | +// SPDX-License-Identifier: Apache 2.0 |
| 2 | +// Credits: OpenSea |
| 3 | +pragma solidity ^0.8.0; |
| 4 | + |
| 5 | +interface IOperatorFilterRegistry { |
| 6 | + function isOperatorAllowed(address registrant, address operator) external returns (bool); |
| 7 | + |
| 8 | + function register(address registrant) external; |
| 9 | + |
| 10 | + function registerAndSubscribe(address registrant, address subscription) external; |
| 11 | + |
| 12 | + function registerAndCopyEntries(address registrant, address registrantToCopy) external; |
| 13 | + |
| 14 | + function updateOperator( |
| 15 | + address registrant, |
| 16 | + address operator, |
| 17 | + bool filtered |
| 18 | + ) external; |
| 19 | + |
| 20 | + function updateOperators( |
| 21 | + address registrant, |
| 22 | + address[] calldata operators, |
| 23 | + bool filtered |
| 24 | + ) external; |
| 25 | + |
| 26 | + function updateCodeHash( |
| 27 | + address registrant, |
| 28 | + bytes32 codehash, |
| 29 | + bool filtered |
| 30 | + ) external; |
| 31 | + |
| 32 | + function updateCodeHashes( |
| 33 | + address registrant, |
| 34 | + bytes32[] calldata codeHashes, |
| 35 | + bool filtered |
| 36 | + ) external; |
| 37 | + |
| 38 | + function subscribe(address registrant, address registrantToSubscribe) external; |
| 39 | + |
| 40 | + function unsubscribe(address registrant, bool copyExistingEntries) external; |
| 41 | + |
| 42 | + function subscriptionOf(address addr) external returns (address registrant); |
| 43 | + |
| 44 | + function subscribers(address registrant) external returns (address[] memory); |
| 45 | + |
| 46 | + function subscriberAt(address registrant, uint256 index) external returns (address); |
| 47 | + |
| 48 | + function copyEntriesOf(address registrant, address registrantToCopy) external; |
| 49 | + |
| 50 | + function isOperatorFiltered(address registrant, address operator) external returns (bool); |
| 51 | + |
| 52 | + function isCodeHashOfFiltered(address registrant, address operatorWithCode) external returns (bool); |
| 53 | + |
| 54 | + function isCodeHashFiltered(address registrant, bytes32 codeHash) external returns (bool); |
| 55 | + |
| 56 | + function filteredOperators(address addr) external returns (address[] memory); |
| 57 | + |
| 58 | + function filteredCodeHashes(address addr) external returns (bytes32[] memory); |
| 59 | + |
| 60 | + function filteredOperatorAt(address registrant, uint256 index) external returns (address); |
| 61 | + |
| 62 | + function filteredCodeHashAt(address registrant, uint256 index) external returns (bytes32); |
| 63 | + |
| 64 | + function isRegistered(address addr) external returns (bool); |
| 65 | + |
| 66 | + function codeHashOf(address addr) external returns (bytes32); |
| 67 | +} |
0 commit comments