mirror of openzeppelin-contracts
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
openzeppelin-contracts/contracts/token/ERC20
Dinslinger90 eeeb3a5be1 Typo in ERC20.sol (#1873) 6 years ago
..
ERC20.sol Typo in ERC20.sol (#1873) 6 years ago
ERC20Burnable.sol migrate content to format for new docs site 6 years ago
ERC20Capped.sol migrate content to format for new docs site 6 years ago
ERC20Detailed.sol migrate content to format for new docs site 6 years ago
ERC20Mintable.sol migrate content to format for new docs site 6 years ago
ERC20Pausable.sol migrate content to format for new docs site 6 years ago
IERC20.sol migrate content to format for new docs site 6 years ago
README.adoc Squash merge of branch docs-v2.x into master 6 years ago
SafeERC20.sol Functions in SafeMath contract overloaded to accept custom error messages (#1828) 6 years ago
TokenTimelock.sol migrate content to format for new docs site 6 years ago

README.adoc

= ERC 20

This set of interfaces, contracts, and utilities are all related to the https://eips.ethereum.org/EIPS/eip-20[ERC20 Token Standard].

TIP: For an overview of ERC20 tokens and a walkthrough on how to create a token contract read our xref:ROOT:tokens.adoc#erc20[ERC20 guide].

There a few core contracts that implement the behavior specified in the EIP:

* {IERC20}: the interface all ERC20 implementations should conform to
* {ERC20}: the base implementation of the ERC20 interface
* {ERC20Detailed}: includes the <<ERC20Detailed-name,`name`>>,
<<ERC20Detailed-symbol,`symbol`>> and <<ERC20Detailed-decimals,`decimals`>>
optional standard extension to the base interface

Additionally there are multiple custom extensions, including:

* designation of addresses that can create token supply ({ERC20Mintable}), with an optional maximum cap ({ERC20Capped})
* destruction of own tokens ({ERC20Burnable})
* designation of addresses that can pause token operations for all users ({ERC20Pausable}).

Finally, there are some utilities to interact with ERC20 contracts in various ways.

* {SafeERC20} is a wrapper around the interface that eliminates the need to handle boolean return values.
* {TokenTimelock} can hold tokens for a beneficiary until a specified time.

NOTE: This page is incomplete. We're working to improve it for the next release. Stay tuned!

== Core

{{IERC20}}

{{ERC20}}

{{ERC20Detailed}}

== Extensions

{{ERC20Mintable}}

{{ERC20Burnable}}

{{ERC20Pausable}}

{{ERC20Capped}}

== Utilities

{{SafeERC20}}

{{TokenTimelock}}