About
Stats
Public Functions
38
Event Types
7
Code Size
42,261 bytes
Events (7) keyboard_arrow_up
Functions
balanceOf keyboard_arrow_up
Source Code
function balanceOf(address owner) public view returns (uint256) {
require(owner != address(0), "ERC721: balance query for the zero address");
return _ownedTokensCount[owner].current();
}
ownerOf keyboard_arrow_up
Source Code
function ownerOf(uint256 tokenId) public view returns (address) {
address owner = _tokenOwner[tokenId];
require(owner != address(0), "ERC721: owner query for nonexistent token");
return owner;
}
safeTransferFrom keyboard_arrow_up
Requirements help
Source Code
function safeTransferFrom(address from, address to, uint256 tokenId) public {
safeTransferFrom(from, to, tokenId, "");
}
transferFrom keyboard_arrow_up
Requirements help
Source Code
function transferFrom(address from, address to, uint256 tokenId) public {
//solhint-disable-next-line max-line-length
require(_isApprovedOrOwner(msg.sender, tokenId), "ERC721: transfer caller is not owner nor approved");
_transferFrom(from, to, tokenId);
}
approve keyboard_arrow_up
Requirements help
Source Code
function approve(address to, uint256 tokenId) public {
address owner = ownerOf(tokenId);
require(to != owner, "ERC721: approval to current owner");
require(msg.sender == owner || isApprovedForAll(owner, msg.sender),
"ERC721: approve caller is not owner nor approved for all"
);
_tokenApprovals[tokenId] = to;
emit Approval(owner, to, tokenId);
}
getApproved keyboard_arrow_up
Requirements help
null
Source Code
function getApproved(uint256 tokenId) public view returns (address) {
require(_exists(tokenId), "ERC721: approved query for nonexistent token");
return _tokenApprovals[tokenId];
}
setApprovalForAll keyboard_arrow_up
Requirements help
Source Code
function setApprovalForAll(address to, bool approved) public {
require(to != msg.sender, "ERC721: approve to caller");
_operatorApprovals[msg.sender][to] = approved;
emit ApprovalForAll(msg.sender, to, approved);
}
isApprovedForAll keyboard_arrow_up
safeTransferFrom keyboard_arrow_up
Requirements help
Source Code
function safeTransferFrom(address from, address to, uint256 tokenId, bytes memory _data) public {
transferFrom(from, to, tokenId);
require(_checkOnERC721Received(from, to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer");
}
supportsInterface keyboard_arrow_up
burn keyboard_arrow_up
Requirements help
Source Code
function burn(uint256 tokenId) public {
//solhint-disable-next-line max-line-length
require(_isApprovedOrOwner(msg.sender, tokenId), "ERC721Burnable: caller is not owner nor approved");
_burn(tokenId);
}
isController keyboard_arrow_up
addController keyboard_arrow_up
renounceController keyboard_arrow_up
name keyboard_arrow_up
symbol keyboard_arrow_up
tokenURI keyboard_arrow_up
Requirements help
null
Source Code
function tokenURI(uint256 tokenId) external view returns (string memory) {
require(_exists(tokenId));
return string(abi.encodePacked(_prefix, _tokenURIs[tokenId]));
}
controlledSetTokenURIPrefix keyboard_arrow_up
Modifiers help
onlyController checks for the following:
null
Source Code
function controlledSetTokenURIPrefix(string calldata prefix) external onlyController {
_prefix = prefix;
emit NewURIPrefix(prefix);
}
isApprovedOrOwner keyboard_arrow_up
mintChild keyboard_arrow_up
controlledMintChild keyboard_arrow_up
transferFromChild keyboard_arrow_up
controlledTransferFrom keyboard_arrow_up
safeTransferFromChild keyboard_arrow_up
Parameters help
Modifiers help
onlyApprovedOrOwner checks for the following:
null
Requirements help
Source Code
function safeTransferFromChild(
address from,
address to,
uint256 tokenId,
string memory label,
bytes memory _data
) public onlyApprovedOrOwner(tokenId) {
uint256 childId = _childId(tokenId, label);
_transferFrom(from, to, childId);
require(_checkOnERC721Received(from, to, childId, _data));
}
safeTransferFromChild keyboard_arrow_up
Requirements help
Source Code
function safeTransferFromChild(address from, address to, uint256 tokenId, string calldata label) external {
safeTransferFromChild(from, to, tokenId, label, "");
}
controlledSafeTransferFrom keyboard_arrow_up
Modifiers help
onlyController checks for the following:
null
Requirements help
Source Code
function controlledSafeTransferFrom(address from, address to, uint256 tokenId, bytes calldata _data)
external
onlyController
{
_transferFrom(from, to, tokenId);
require(_checkOnERC721Received(from, to, tokenId, _data));
}
burnChild keyboard_arrow_up
controlledBurn keyboard_arrow_up
resolveTo keyboard_arrow_up
resolverOf keyboard_arrow_up
Source Code
function resolverOf(uint256 tokenId) external view returns (address) {
address resolver = _tokenResolvers[tokenId];
require(resolver != address(0));
return resolver;
}
controlledResolveTo keyboard_arrow_up
root keyboard_arrow_up
childIdOf keyboard_arrow_up
Requirements help
Source Code
function childIdOf(uint256 tokenId, string calldata label) external pure returns (uint256) {
return _childId(tokenId, label);
}
safeMintChild keyboard_arrow_up
safeMintChild keyboard_arrow_up
controlledSafeMintChild keyboard_arrow_up
setOwner keyboard_arrow_up
sync keyboard_arrow_up
Requirements help
Source Code
function sync(uint256 tokenId, uint256 updateId) external {
require(_tokenResolvers[tokenId] == msg.sender);
emit Sync(msg.sender, updateId, tokenId);
}