Skip to content

Instantly share code, notes, and snippets.

View cygaar's full-sized avatar

cygaar cygaar

View GitHub Profile
@cygaar
cygaar / ERC165.sol
Created November 20, 2022 18:09
RareSkills Challenge #3
//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);
}
@cygaar
cygaar / SampleNFT.vy
Created March 5, 2023 01:12
Sample NFT contract written in Vyper
# @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
// 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;