// SPDX-License-Identifier: MIT pragma solidity ^0.8.23; import "@openzeppelin/contracts/token/ERC1155/ERC1155.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; /** * @title MFTNFT * @dev ERC1155 NFT companion contract for MFT (Meme-Fungible Token). * * Deployed alongside the MFT ERC20 contract. Mints the initial NFT supply * to the MFT contract so users can transform/respawn between tokens and NFTs. * * Constructor: (name_, symbol_, uri_, mftContract_, supply_) */ contract MFTNFT is ERC1155, Ownable { uint256 public constant TOKEN_ID = 0; string public name; string public symbol; constructor( string memory name_, string memory symbol_, string memory uri_, address mftContract_, uint256 supply_ ) ERC1155(uri_) Ownable(msg.sender) { name = name_; symbol = symbol_; _mint(mftContract_, TOKEN_ID, supply_, ""); } function setURI(string memory newURI) external onlyOwner { _setURI(newURI); } }