This file contains hidden or 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: GPL-3.0 | |
| pragma solidity 0.8.15; | |
| import '@openzeppelin/contracts/utils/introspection/ERC165.sol'; | |
| import '@openzeppelin/contracts/token/ERC721/ERC721.sol'; | |
| contract Award is ERC721 { | |
| constructor() ERC721('Award', 'A') { | |
| _mint(msg.sender, 1337); | |
| } |
This file contains hidden or 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
| # @version 0.3.7 | |
| # @dev Implementation of ERC-721 non-fungible token standard. | |
| # Modified from: https://github.com/vyperlang/vyper/blob/master/examples/tokens/ERC721.vy | |
| from vyper.interfaces import ERC165 | |
| from vyper.interfaces import ERC721 | |
| implements: ERC721 | |
| implements: ERC165 |
This file contains hidden or 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.13; | |
| import {ERC721A} from "erc721a/contracts/ERC721A.sol"; | |
| import {Ownable} from "@openzeppelin/contracts/access/Ownable.sol"; | |
| error MintLimitExceeded(); | |
| contract SampleNFT is ERC721A, Ownable { | |
| uint256 public constant MINT_LIMIT = 10; |
OlderNewer