Commit 38f86482 by github-actions

Transpile e4e6e400

parent f72b11f3
......@@ -24,6 +24,9 @@ import "../../../utils/Initializable.sol";
* and pauser roles to other accounts.
*/
contract ERC1155PresetMinterPauserUpgradeable is Initializable, ContextUpgradeable, AccessControlEnumerableUpgradeable, ERC1155BurnableUpgradeable, ERC1155PausableUpgradeable {
function initialize(string memory uri) public virtual initializer {
__ERC1155PresetMinterPauser_init(uri);
}
bytes32 public constant MINTER_ROLE = keccak256("MINTER_ROLE");
bytes32 public constant PAUSER_ROLE = keccak256("PAUSER_ROLE");
......
......@@ -17,6 +17,14 @@ import "../../../utils/Initializable.sol";
* _Available since v3.4._
*/
contract ERC20PresetFixedSupplyUpgradeable is Initializable, ERC20BurnableUpgradeable {
function initialize(
string memory name,
string memory symbol,
uint256 initialSupply,
address owner
) public virtual initializer {
__ERC20PresetFixedSupply_init(name, symbol, initialSupply, owner);
}
/**
* @dev Mints `initialSupply` amount of token and transfers them to `owner`.
*
......
......@@ -24,6 +24,9 @@ import "../../../utils/Initializable.sol";
* and pauser roles to other accounts.
*/
contract ERC20PresetMinterPauserUpgradeable is Initializable, ContextUpgradeable, AccessControlEnumerableUpgradeable, ERC20BurnableUpgradeable, ERC20PausableUpgradeable {
function initialize(string memory name, string memory symbol) public virtual initializer {
__ERC20PresetMinterPauser_init(name, symbol);
}
bytes32 public constant MINTER_ROLE = keccak256("MINTER_ROLE");
bytes32 public constant PAUSER_ROLE = keccak256("PAUSER_ROLE");
......
......@@ -27,6 +27,9 @@ import "../../../utils/Initializable.sol";
* and pauser roles to other accounts.
*/
contract ERC721PresetMinterPauserAutoIdUpgradeable is Initializable, ContextUpgradeable, AccessControlEnumerableUpgradeable, ERC721EnumerableUpgradeable, ERC721BurnableUpgradeable, ERC721PausableUpgradeable {
function initialize(string memory name, string memory symbol, string memory baseTokenURI) public virtual initializer {
__ERC721PresetMinterPauserAutoId_init(name, symbol, baseTokenURI);
}
using CountersUpgradeable for CountersUpgradeable.Counter;
bytes32 public constant MINTER_ROLE = keccak256("MINTER_ROLE");
......
......@@ -13,6 +13,15 @@ import "../../../utils/Initializable.sol";
* _Available since v3.4._
*/
contract ERC777PresetFixedSupplyUpgradeable is Initializable, ERC777Upgradeable {
function initialize(
string memory name,
string memory symbol,
address[] memory defaultOperators,
uint256 initialSupply,
address owner
) public virtual initializer {
__ERC777PresetFixedSupply_init(name, symbol, defaultOperators, initialSupply, owner);
}
/**
* @dev Mints `initialSupply` amount of token and transfers them to `owner`.
*
......
......@@ -12,7 +12,7 @@ npx @openzeppelin/upgrade-safe-transpiler -D \
-i contracts/utils/Initializable.sol \
-x 'contracts/proxy/**/*' \
-x '!contracts/proxy/Clones.sol' \
-p 'contracts/presets/**/*'
-p 'contracts/**/presets/**/*'
for p in scripts/upgradeable/patch/*.patch; do
git apply "$p"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment