README.adoc 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. = ERC 20
  2. [.readme-notice]
  3. NOTE: This document is better viewed at https://docs.openzeppelin.com/contracts/api/token/erc20
  4. This set of interfaces, contracts, and utilities are all related to the https://eips.ethereum.org/EIPS/eip-20[ERC20 Token Standard].
  5. TIP: For an overview of ERC20 tokens and a walkthrough on how to create a token contract read our xref:ROOT:erc20.adoc[ERC20 guide].
  6. There a few core contracts that implement the behavior specified in the EIP:
  7. * {IERC20}: the interface all ERC20 implementations should conform to.
  8. * {ERC20}: the implementation of the ERC20 interface, including the <<ERC20-name,`name`>>, <<ERC20-symbol,`symbol`>> and <<ERC20-decimals,`decimals`>> optional standard extension to the base interface.
  9. Additionally there are multiple custom extensions, including:
  10. * designation of addresses that can pause token transfers for all users ({ERC20Pausable}).
  11. * efficient storage of past token balances to be later queried at any point in time ({ERC20Snapshot}).
  12. * destruction of own tokens ({ERC20Burnable}).
  13. * enforcement of a cap to the total supply when minting tokens ({ERC20Capped}).
  14. Finally, there are some utilities to interact with ERC20 contracts in various ways.
  15. * {SafeERC20} is a wrapper around the interface that eliminates the need to handle boolean return values.
  16. * {TokenTimelock} can hold tokens for a beneficiary until a specified time.
  17. == Core
  18. {{IERC20}}
  19. {{ERC20}}
  20. == Extensions
  21. {{ERC20Snapshot}}
  22. {{ERC20Pausable}}
  23. {{ERC20Burnable}}
  24. {{ERC20Capped}}
  25. == Utilities
  26. {{SafeERC20}}
  27. {{TokenTimelock}}