Skip to content

Commit 4a9db80

Browse files
AmxxfrangioJulissaDantes
authored
Remove presets (#3637)
Co-authored-by: Francisco Giordano <frangio.1@gmail.com> Co-authored-by: JulissaDantes <julissadcj@gmail.com>
1 parent 8879854 commit 4a9db80

26 files changed

+7
-1025
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
## Unreleased (Breaking)
44

55
* `TimelockController`: Changed the role architecture to use `DEFAULT_ADMIN_ROLE` as the admin for all roles, instead of the bespoke `TIMELOCK_ADMIN_ROLE` that was used previously. This aligns with the general recommendation for `AccessControl` and makes the addition of new roles easier. Accordingly, the `admin` parameter and timelock will now be granted `DEFAULT_ADMIN_ROLE` instead of `TIMELOCK_ADMIN_ROLE`. ([#3799](https://github.com/OpenZeppelin/openzeppelin-contracts/pull/3799))
6+
* Removed presets in favor of [OpenZeppelin Contracts Wizard](https://wizard.openzeppelin.com/).
67

78
## Unreleased
89

contracts/token/ERC1155/README.adoc

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Additionally there are multiple custom extensions, including:
1414
* designation of addresses that can pause token transfers for all users ({ERC1155Pausable}).
1515
* destruction of own tokens ({ERC1155Burnable}).
1616
17-
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.
17+
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.
1818

1919
== Core
2020

@@ -38,12 +38,6 @@ NOTE: This core set of contracts is designed to be unopinionated, allowing devel
3838

3939
{{ERC1155URIStorage}}
4040

41-
== Presets
42-
43-
These contracts are preconfigured combinations of the above features. They can be used through inheritance or as models to copy and paste their source code.
44-
45-
{{ERC1155PresetMinterPauser}}
46-
4741
== Utilities
4842

4943
{{ERC1155Holder}}

contracts/token/ERC1155/presets/ERC1155PresetMinterPauser.sol

Lines changed: 0 additions & 128 deletions
This file was deleted.

contracts/token/ERC1155/presets/README.md

Lines changed: 0 additions & 1 deletion
This file was deleted.

contracts/token/ERC20/ERC20.sol

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ import "../../utils/Context.sol";
1212
*
1313
* This implementation is agnostic to the way tokens are created. This means
1414
* that a supply mechanism has to be added in a derived contract using {_mint}.
15-
* For a generic mechanism see {ERC20PresetMinterPauser}.
1615
*
1716
* TIP: For a detailed writeup see our guide
1817
* https://forum.openzeppelin.com/t/how-to-implement-erc20-supply-mechanisms/226[How

contracts/token/ERC20/README.adoc

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ Finally, there are some utilities to interact with ERC20 contracts in various wa
3131
* {SafeERC20}: a wrapper around the interface that eliminates the need to handle boolean return values.
3232
* {TokenTimelock}: hold tokens for a beneficiary until a specified time.
3333
34-
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.
34+
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.
3535

3636
== Core
3737

@@ -63,14 +63,6 @@ NOTE: This core set of contracts is designed to be unopinionated, allowing devel
6363

6464
{{ERC4626}}
6565

66-
== Presets
67-
68-
These contracts are preconfigured combinations of the above features. They can be used through inheritance or as models to copy and paste their source code.
69-
70-
{{ERC20PresetMinterPauser}}
71-
72-
{{ERC20PresetFixedSupply}}
73-
7466
== Utilities
7567

7668
{{SafeERC20}}

contracts/token/ERC20/presets/ERC20PresetFixedSupply.sol

Lines changed: 0 additions & 35 deletions
This file was deleted.

contracts/token/ERC20/presets/ERC20PresetMinterPauser.sol

Lines changed: 0 additions & 94 deletions
This file was deleted.

contracts/token/ERC20/presets/README.md

Lines changed: 0 additions & 1 deletion
This file was deleted.

contracts/token/ERC721/README.adoc

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ Additionally there are a few of other extensions:
2929
* {ERC721Pausable}: A primitive to pause contract operation.
3030
* {ERC721Burnable}: A way for token holders to burn their own tokens.
3131
32-
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.
32+
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.
3333

3434
== Core
3535

@@ -59,12 +59,6 @@ NOTE: This core set of contracts is designed to be unopinionated, allowing devel
5959

6060
{{ERC721Royalty}}
6161

62-
== Presets
63-
64-
These contracts are preconfigured combinations of the above features. They can be used through inheritance or as models to copy and paste their source code.
65-
66-
{{ERC721PresetMinterPauserAutoId}}
67-
6862
== Utilities
6963

7064
{{ERC721Holder}}

0 commit comments

Comments
 (0)