Deprecate presets in favor of Wizard (#2986)
This commit is contained in:
committed by
GitHub
parent
86bd4d7389
commit
2f2604d673
@ -22,6 +22,8 @@ import "../../../utils/Context.sol";
|
|||||||
* The account that deploys the contract will be granted the minter and pauser
|
* The account that deploys the contract will be granted the minter and pauser
|
||||||
* roles, as well as the default admin role, which will let it grant both minter
|
* roles, as well as the default admin role, which will let it grant both minter
|
||||||
* and pauser roles to other accounts.
|
* and pauser roles to other accounts.
|
||||||
|
*
|
||||||
|
* _Deprecated in favor of https://wizard.openzeppelin.com/[Contracts Wizard]._
|
||||||
*/
|
*/
|
||||||
contract ERC1155PresetMinterPauser is Context, AccessControlEnumerable, ERC1155Burnable, ERC1155Pausable {
|
contract ERC1155PresetMinterPauser is Context, AccessControlEnumerable, ERC1155Burnable, ERC1155Pausable {
|
||||||
bytes32 public constant MINTER_ROLE = keccak256("MINTER_ROLE");
|
bytes32 public constant MINTER_ROLE = keccak256("MINTER_ROLE");
|
||||||
|
|||||||
1
contracts/token/ERC1155/presets/README.md
Normal file
1
contracts/token/ERC1155/presets/README.md
Normal file
@ -0,0 +1 @@
|
|||||||
|
Contract presets are now deprecated in favor of [Contracts Wizard](https://wizard.openzeppelin.com/) as a more powerful alternative.
|
||||||
@ -15,6 +15,8 @@ import "../extensions/ERC20Burnable.sol";
|
|||||||
* its documentation for details.
|
* its documentation for details.
|
||||||
*
|
*
|
||||||
* _Available since v3.4._
|
* _Available since v3.4._
|
||||||
|
*
|
||||||
|
* _Deprecated in favor of https://wizard.openzeppelin.com/[Contracts Wizard]._
|
||||||
*/
|
*/
|
||||||
contract ERC20PresetFixedSupply is ERC20Burnable {
|
contract ERC20PresetFixedSupply is ERC20Burnable {
|
||||||
/**
|
/**
|
||||||
|
|||||||
@ -22,6 +22,8 @@ import "../../../utils/Context.sol";
|
|||||||
* The account that deploys the contract will be granted the minter and pauser
|
* The account that deploys the contract will be granted the minter and pauser
|
||||||
* roles, as well as the default admin role, which will let it grant both minter
|
* roles, as well as the default admin role, which will let it grant both minter
|
||||||
* and pauser roles to other accounts.
|
* and pauser roles to other accounts.
|
||||||
|
*
|
||||||
|
* _Deprecated in favor of https://wizard.openzeppelin.com/[Contracts Wizard]._
|
||||||
*/
|
*/
|
||||||
contract ERC20PresetMinterPauser is Context, AccessControlEnumerable, ERC20Burnable, ERC20Pausable {
|
contract ERC20PresetMinterPauser is Context, AccessControlEnumerable, ERC20Burnable, ERC20Pausable {
|
||||||
bytes32 public constant MINTER_ROLE = keccak256("MINTER_ROLE");
|
bytes32 public constant MINTER_ROLE = keccak256("MINTER_ROLE");
|
||||||
|
|||||||
1
contracts/token/ERC20/presets/README.md
Normal file
1
contracts/token/ERC20/presets/README.md
Normal file
@ -0,0 +1 @@
|
|||||||
|
Contract presets are now deprecated in favor of [Contracts Wizard](https://wizard.openzeppelin.com/) as a more powerful alternative.
|
||||||
@ -25,6 +25,8 @@ import "../../../utils/Counters.sol";
|
|||||||
* The account that deploys the contract will be granted the minter and pauser
|
* The account that deploys the contract will be granted the minter and pauser
|
||||||
* roles, as well as the default admin role, which will let it grant both minter
|
* roles, as well as the default admin role, which will let it grant both minter
|
||||||
* and pauser roles to other accounts.
|
* and pauser roles to other accounts.
|
||||||
|
*
|
||||||
|
* _Deprecated in favor of https://wizard.openzeppelin.com/[Contracts Wizard]._
|
||||||
*/
|
*/
|
||||||
contract ERC721PresetMinterPauserAutoId is
|
contract ERC721PresetMinterPauserAutoId is
|
||||||
Context,
|
Context,
|
||||||
|
|||||||
1
contracts/token/ERC721/presets/README.md
Normal file
1
contracts/token/ERC721/presets/README.md
Normal file
@ -0,0 +1 @@
|
|||||||
|
Contract presets are now deprecated in favor of [Contracts Wizard](https://wizard.openzeppelin.com/) as a more powerful alternative.
|
||||||
Reference in New Issue
Block a user