Grants permission to a given operator for a character.
function grantOperatorPermissions(uint256 characterId, address operator, uint256 permissionBitMap) external;
|The ID of the character to set operator for.|
|The operator address to set.|
|The permission bitmap for the operator.|
Sets blocklist and allowlist for a specific note. Blocklist and allowlist are overwritten every time.
function grantOperators4Note( uint256 characterId, uint256 noteId, address calldata blocklist, address calldata allowlist ) external;
|The character ID of the note owner.|
|The note ID to grant.|
|The addresses list of blocked operators.|
|The addresses list of allowed operators.|
function clearOperators(uint256 characterId) external;
function _clearOperators4Note(DataTypes.Operators4Note storage operators4Note) internal;
function _updateOperators4Note( DataTypes.Operators4Note storage operators4Note, address calldata blocklist, address calldata allowlist ) internal;
_bitmapFilter unsets bits of non-existent permission IDs to zero.
These unset permission IDs are meaningless now, but they are reserved for future use, so it's best to leave them blank and avoid messing up with future methods.
function _bitmapFilter(uint256 bitmap) internal pure returns (uint256);