This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
contract ERC721MintBurn { | |
address public owner; | |
uint256 public default_royalty; | |
constructor(uint256 royalty) public { | |
owner = msg.sender; | |
default_royalty = royalty; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
contract ERC721MintBurn { | |
@state | |
public PubKeyHash owner; | |
@state | |
public int default_royalty; | |
@state | |
public HashedMap<int, PubKeyHash> tokenOwner; |