docs: add note explaining opinionated presets (#2313)
* docs: add notes explaining presets * fix links for mint function Co-authored-by: Francisco Giordano <frangio.1@gmail.com> Co-authored-by: Francisco Giordano <frangio.1@gmail.com>
This commit is contained in:
committed by
GitHub
parent
7c4a2a0a29
commit
0c667ca32a
@ -14,6 +14,8 @@ Additionally there are multiple custom extensions, including:
|
||||
* designation of addresses that can pause token transfers for all users ({ERC1155Pausable}).
|
||||
* destruction of own tokens ({ERC1155Burnable}).
|
||||
|
||||
NOTE: This core set of contracts is designed to be unopinionated, allowing developers to access the internal functions in ERC1155 (such as <<ERC1155-_mint-address-uint256-uint256-bytes-,`_mint`>>) and expose them as external functions in the way they prefer. On the other hand, xref:ROOT:erc1155.adoc#Presets[ERC1155 Presets] (such as {ERC1155PresetMinterPauser}) are designed using opinionated patterns to provide developers with ready to use, deployable contracts.
|
||||
|
||||
== Core
|
||||
|
||||
{{IERC1155}}
|
||||
|
||||
@ -24,6 +24,8 @@ Finally, there are some utilities to interact with ERC20 contracts in various wa
|
||||
* {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 core set of contracts is designed to be unopinionated, allowing developers to access the internal functions in ERC20 (such as <<ERC20-_mint-address-uint256-,`_mint`>>) and expose them as external functions in the way they prefer. On the other hand, xref:ROOT:erc20.adoc#Presets[ERC20 Presets] (such as {ERC20PresetMinterPauser}) are designed using opinionated patterns to provide developers with ready to use, deployable contracts.
|
||||
|
||||
== Core
|
||||
|
||||
{{IERC20}}
|
||||
|
||||
@ -16,6 +16,9 @@ Additionally there are multiple custom extensions, including:
|
||||
* designation of addresses that can pause token transfers for all users ({ERC721Pausable}).
|
||||
* destruction of own tokens ({ERC721Burnable}).
|
||||
|
||||
NOTE: This core set of contracts is designed to be unopinionated, allowing developers to access the internal functions in ERC721 (such as <<ERC721-_mint-address-uint256-,`_mint`>>) and expose them as external functions in the way they prefer. On the other hand, xref:ROOT:erc721.adoc#Presets[ERC721 Presets] (such as {ERC721PresetMinterPauserAutoId}) are designed using opinionated patterns to provide developers with ready to use, deployable contracts.
|
||||
|
||||
|
||||
== Core
|
||||
|
||||
{{IERC721}}
|
||||
|
||||
Reference in New Issue
Block a user