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.
Name | Type | Description |
---|---|---|
tokenAddress | address | Address of ERC721 to transfer. |
owner | address | Address of current token owner. |
recipient | address | Address to transfer token to. |
tokenID | uint256 | ID of token to transfer. |
releaseERC721
function releaseERC721(address tokenAddress, address owner, address recipient, uint256 tokenID) internal
Transfers custody of token to recipient.
Name | Type | Description |
---|---|---|
tokenAddress | address | Address of ERC721 to transfer. |
owner | address | Address of current token owner. |
recipient | address | Address to transfer token to. |
tokenID | uint256 | ID of token to transfer. |
mintERC721
function mintERC721(address tokenAddress, address recipient, uint256 tokenID, bytes data) internal
Used to create new ERC721s.
Name | Type | Description |
---|---|---|
tokenAddress | address | Address of ERC721 to mint. |
recipient | address | Address to mint token to. |
tokenID | uint256 | ID of token to mint. |
data | bytes | Optional data to send along with mint call. |
burnERC721
function burnERC721(address tokenAddress, uint256 tokenID) internal
Used to burn ERC721s.
Name | Type | Description |
---|---|---|
tokenAddress | address | Address of ERC721 to burn. |
tokenID | uint256 | ID of token to burn. |