contracts/JupiterJunk.sol 808 B raw
1
// SPDX-License-Identifier: MIT
2
pragma solidity ^0.8.20;
3
4
import "@openzeppelin/contracts/token/ERC1155/ERC1155.sol";
5
import "@openzeppelin/contracts/access/Ownable.sol";
6
7
contract JupiterJunk is ERC1155, Ownable {
8
    constructor(
9
        address initialOwner
10
    )
11
        ERC1155("ipfs://QmUE1hMRA85uaaoYAotPxXzAfVUy4hsMHyyjPXvayQQWHB")
12
        Ownable(initialOwner)
13
    {}
14
15
    function setURI(string memory newuri) public onlyOwner {
16
        _setURI(newuri);
17
    }
18
19
    function mint(address account, uint256 amount) public onlyOwner {
20
        _mint(account, 0, amount, new bytes(0));
21
    }
22
23
    function mintBatch(
24
        address to,
25
        uint256[] memory ids,
26
        uint256[] memory amounts,
27
        bytes memory data
28
    ) public onlyOwner {
29
        _mintBatch(to, ids, amounts, data);
30
    }
31
}