// SPDX-License-Identifier: MIT pragma solidity 0.8.6; import "@openzeppelin/contracts/token/ERC721/IERC721.sol"; import "./ITerminal.sol"; import "./IOperatorStore.sol"; interface IProjects is IERC721 { event Create( uint256 indexed projectId, address indexed owner, bytes32 indexed handle, string uri, ITerminal terminal, address caller ); event SetHandle( uint256 indexed projectId, bytes32 indexed handle, address caller ); event SetUri(uint256 indexed projectId, string uri, address caller); event TransferHandle( uint256 indexed projectId, address indexed to, bytes32 indexed handle, bytes32 newHandle, address caller ); event ClaimHandle( address indexed account, uint256 indexed projectId, bytes32 indexed handle, address caller ); event ChallengeHandle( bytes32 indexed handle, uint256 challengeExpiry, address caller ); event RenewHandle( bytes32 indexed handle, uint256 indexed projectId, address caller ); function count() external view returns (uint256); function uriOf(uint256 _projectId) external view returns (string memory); function handleOf(uint256 _projectId) external returns (bytes32 handle); function projectFor(bytes32 _handle) external returns (uint256 projectId); function transferAddressFor(bytes32 _handle) external returns (address receiver); function challengeExpiryOf(bytes32 _handle) external returns (uint256); function exists(uint256 _projectId) external view returns (bool); function create( address _owner, bytes32 _handle, string calldata _uri, ITerminal _terminal ) external returns (uint256 id); function setHandle(uint256 _projectId, bytes32 _handle) external; function setUri(uint256 _projectId, string calldata _uri) external; function transferHandle( uint256 _projectId, address _to, bytes32 _newHandle ) external returns (bytes32 _handle); function claimHandle( bytes32 _handle, address _for, uint256 _projectId ) external; }