Skip to main content

Solidity API

ERC721Safe

This contract is intended to be used with ERC721Handler contract.

lockERC721

function lockERC721(address tokenAddress, address owner, address recipient, uint256 tokenID) internal

Used to gain custoday of deposited token.

NameTypeDescription
tokenAddressaddressAddress of ERC721 to transfer.
owneraddressAddress of current token owner.
recipientaddressAddress to transfer token to.
tokenIDuint256ID of token to transfer.

releaseERC721

function releaseERC721(address tokenAddress, address owner, address recipient, uint256 tokenID) internal

Transfers custody of token to recipient.

NameTypeDescription
tokenAddressaddressAddress of ERC721 to transfer.
owneraddressAddress of current token owner.
recipientaddressAddress to transfer token to.
tokenIDuint256ID of token to transfer.

mintERC721

function mintERC721(address tokenAddress, address recipient, uint256 tokenID, bytes data) internal

Used to create new ERC721s.

NameTypeDescription
tokenAddressaddressAddress of ERC721 to mint.
recipientaddressAddress to mint token to.
tokenIDuint256ID of token to mint.
databytesOptional data to send along with mint call.

burnERC721

function burnERC721(address tokenAddress, uint256 tokenID) internal

Used to burn ERC721s.

NameTypeDescription
tokenAddressaddressAddress of ERC721 to burn.
tokenIDuint256ID of token to burn.