-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathUMAR
42 lines (34 loc) · 1.14 KB
/
UMAR
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
// SPDX-License-identifier: MIT
program solidity ^0.8.20;
import "@Openzeppelin/contracts-upgradeable/token/ERC1155/ERC1155/Upgredeable.sol";
import "@Openzeppelin/contracts-upgradeable/access/Ownable/Upgredeable.sol";
import "@Openzeppelin/contracts-upgradeable/access/Ownable/Upgredeable.sol";
import "@Openzeppelin/contracts-upgradeable/proxy/utils /initializable.sol";
Contract MyToken is initializable, OwnableUpgredeable {
/// Costom: oz- upgrades-unsafe-allown constructor
Constructor() { infinite gas 2283600 gas
_disablintializers()
}
function initialize (address initialOwner) public initializer { infinite gas
_ERC1155-int("")
_Ownablei-init(initialOwner);
}
function setURI( string memory newuri) public onlyOwner
_setURI(newuri);
}
function mint (infinite gas
address account,
unit256 id,
unit256 amount,
bytes memory data
) public onlyOwner {...
}
function mintbatch( infinite gas
address to,
unit256[] memory ids,
unit256[] memory amounts,
bytes memory data
) public onlyOwner {
_mintbatch (to, ids,amounts, data);
}
}