README.adoc 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. = ERC-721
  2. [.readme-notice]
  3. NOTE: This document is better viewed at https://docs.openzeppelin.com/contracts/api/token/erc721
  4. This set of interfaces, contracts, and utilities are all related to the https://eips.ethereum.org/EIPS/eip-721[ERC-721 Non-Fungible Token Standard].
  5. TIP: For a walk through on how to create an ERC-721 token read our xref:ROOT:erc721.adoc[ERC-721 guide].
  6. The ERC specifies four interfaces:
  7. * {IERC721}: Core functionality required in all compliant implementation.
  8. * {IERC721Metadata}: Optional extension that adds name, symbol, and token URI, almost always included.
  9. * {IERC721Enumerable}: Optional extension that allows enumerating the tokens on chain, often not included since it requires large gas overhead.
  10. * {IERC721Receiver}: An interface that must be implemented by contracts if they want to accept tokens through `safeTransferFrom`.
  11. OpenZeppelin Contracts provides implementations of all four interfaces:
  12. * {ERC721}: The core and metadata extensions, with a base URI mechanism.
  13. * {ERC721Enumerable}: The enumerable extension.
  14. * {ERC721Holder}: A bare bones implementation of the receiver interface.
  15. Additionally there are a few of other extensions:
  16. * {ERC721Consecutive}: An implementation of https://eips.ethereum.org/EIPS/eip-2309[ERC-2309] for minting batches of tokens during construction, in accordance with ERC-721.
  17. * {ERC721URIStorage}: A more flexible but more expensive way of storing metadata.
  18. * {ERC721Votes}: Support for voting and vote delegation.
  19. * {ERC721Royalty}: A way to signal royalty information following ERC-2981.
  20. * {ERC721Pausable}: A primitive to pause contract operation.
  21. * {ERC721Burnable}: A way for token holders to burn their own tokens.
  22. * {ERC721Wrapper}: Wrapper to create an ERC-721 backed by another ERC-721, with deposit and withdraw methods. Useful in conjunction with {ERC721Votes}.
  23. NOTE: This core set of contracts is designed to be unopinionated, allowing developers to access the internal functions in ERC-721 (such as <<ERC721-_mint-address-uint256-,`_mint`>>) and expose them as external functions in the way they prefer.
  24. == Core
  25. {{IERC721}}
  26. {{IERC721Metadata}}
  27. {{IERC721Enumerable}}
  28. {{ERC721}}
  29. {{ERC721Enumerable}}
  30. {{IERC721Receiver}}
  31. == Extensions
  32. {{ERC721Pausable}}
  33. {{ERC721Burnable}}
  34. {{ERC721Consecutive}}
  35. {{ERC721URIStorage}}
  36. {{ERC721Votes}}
  37. {{ERC721Royalty}}
  38. {{ERC721Wrapper}}
  39. == Utilities
  40. {{ERC721Holder}}
  41. {{ERC721Utils}}