README.adoc 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. = ERC 20
  2. This set of interfaces, contracts, and utilities are all related to the https://eips.ethereum.org/EIPS/eip-20[ERC20 Token Standard].
  3. 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].
  4. There a few core contracts that implement the behavior specified in the EIP:
  5. * {IERC20}: the interface all ERC20 implementations should conform to.
  6. * {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.
  7. Additionally there are multiple custom extensions, including:
  8. * designation of addresses that can pause token transfers for all users ({ERC20Pausable}).
  9. * efficient storage of past token balances to be later queried at any point in time ({ERC20Snapshot}).
  10. * destruction of own tokens ({ERC20Burnable}).
  11. * enforcement of a cap to the total supply when minting tokens ({ERC20Capped}).
  12. Finally, there are some utilities to interact with ERC20 contracts in various ways.
  13. * {SafeERC20} is a wrapper around the interface that eliminates the need to handle boolean return values.
  14. * {TokenTimelock} can hold tokens for a beneficiary until a specified time.
  15. == Core
  16. {{IERC20}}
  17. {{ERC20}}
  18. == Extensions
  19. {{ERC20Snapshot}}
  20. {{ERC20Pausable}}
  21. {{ERC20Burnable}}
  22. {{ERC20Capped}}
  23. == Utilities
  24. {{SafeERC20}}
  25. {{TokenTimelock}}