IProjects
Inherits: IERC721
Functions
count
function count() external view returns (uint256);
uriOf
function uriOf(uint256 _projectId) external view returns (string memory);
handleOf
function handleOf(uint256 _projectId) external returns (bytes32 handle);
projectFor
function projectFor(bytes32 _handle) external returns (uint256 projectId);
transferAddressFor
function transferAddressFor(bytes32 _handle) external returns (address receiver);
challengeExpiryOf
function challengeExpiryOf(bytes32 _handle) external returns (uint256);
exists
function exists(uint256 _projectId) external view returns (bool);
create
function create(address _owner, bytes32 _handle, string calldata _uri, ITerminal _terminal)
external
returns (uint256 id);
setHandle
function setHandle(uint256 _projectId, bytes32 _handle) external;
setUri
function setUri(uint256 _projectId, string calldata _uri) external;
transferHandle
function transferHandle(uint256 _projectId, address _to, bytes32 _newHandle) external returns (bytes32 _handle);
claimHandle
function claimHandle(bytes32 _handle, address _for, uint256 _projectId) external;
Events
Create
event Create(
uint256 indexed projectId,
address indexed owner,
bytes32 indexed handle,
string uri,
ITerminal terminal,
address caller
);
SetHandle
event SetHandle(uint256 indexed projectId, bytes32 indexed handle, address caller);
SetUri
event SetUri(uint256 indexed projectId, string uri, address caller);
TransferHandle
event TransferHandle(
uint256 indexed projectId, address indexed to, bytes32 indexed handle, bytes32 newHandle, address caller
);
ClaimHandle
event ClaimHandle(address indexed account, uint256 indexed projectId, bytes32 indexed handle, address caller);
ChallengeHandle
event ChallengeHandle(bytes32 indexed handle, uint256 challengeExpiry, address caller);
RenewHandle
event RenewHandle(bytes32 indexed handle, uint256 indexed projectId, address caller);