README.adoc 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. = ERC 721
  2. This set of interfaces, contracts, and utilities are all related to the https://eips.ethereum.org/EIPS/eip-721[ERC721 Non-Fungible Token Standard].
  3. TIP: For a walkthrough on how to create an ERC721 token read our xref:ROOT:erc721.adoc[ERC721 guide].
  4. The EIP consists of three interfaces, found here as {IERC721}, {IERC721Metadata}, and {IERC721Enumerable}. Only the first one is required in a contract to be ERC721 compliant. However, all three are implemented in {ERC721}.
  5. Additionally, {IERC721Receiver} can be used to prevent tokens from becoming forever locked in contracts. Imagine sending an in-game item to an exchange address that can't send it back!. When using <<IERC721-safeTransferFrom,`safeTransferFrom`>>, the token contract checks to see that the receiver is an {IERC721Receiver}, which implies that it knows how to handle {ERC721} tokens. If you're writing a contract that needs to receive {ERC721} tokens, you'll want to include this interface.
  6. Finally, some custom extensions are also included:
  7. Additionally there are multiple custom extensions, including:
  8. * designation of addresses that can pause token transfers for all users ({ERC721Pausable}).
  9. * destruction of own tokens ({ERC721Burnable}).
  10. == Core
  11. {{IERC721}}
  12. {{IERC721Metadata}}
  13. {{IERC721Enumerable}}
  14. {{ERC721}}
  15. {{IERC721Receiver}}
  16. == Extensions
  17. {{ERC721Pausable}}
  18. {{ERC721Burnable}}
  19. == Convenience
  20. {{ERC721Holder}}