Skip to content

Instantly share code, notes, and snippets.

// SPDX-License-Identifier: MIT
pragma solidity ^0.8.9;
import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
contract ASTNFT is ERC721 {
// Define the different categories of NFTs
enum Category { Gold, Silver, Bronze }
//Define token id counter
contract ERC721MintBurn {
address public owner;
uint256 public default_royalty;
constructor(uint256 royalty) public {
owner = msg.sender;
default_royalty = royalty;
}
contract ERC721MintBurn {
@state
public PubKeyHash owner;
@state
public int default_royalty;
@state
public HashedMap<int, PubKeyHash> tokenOwner;