Skip to content

Instantly share code, notes, and snippets.

View maximedegreve's full-sized avatar
💭
🤡 clowning

Maxime De Greve maximedegreve

💭
🤡 clowning
View GitHub Profile
@maximedegreve
maximedegreve / contract_lottery.sol
Last active January 30, 2023 16:45
TinyFaces NFT Lottery 1.1 (Contract)
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.13;
import 'erc721a/contracts/ERC721A.sol';
import 'erc721a-upgradeable/contracts/ERC721AUpgradeable.sol';
import '@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol';
import "@openzeppelin/contracts-upgradeable/utils/AddressUpgradeable.sol";
import "@openzeppelin/contracts-upgradeable/utils/StringsUpgradeable.sol";
import "@openzeppelin/contracts-upgradeable/security/ReentrancyGuardUpgradeable.sol";
import "operator-filter-registry/src/upgradeable/OperatorFiltererUpgradeable.sol";
@maximedegreve
maximedegreve / contract.sol
Last active June 6, 2022 12:25
TinyFaces NFT 2.0 (Contract)
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.4;
import 'erc721a/contracts/ERC721A.sol';
import '@openzeppelin/contracts/access/Ownable.sol';
import '@openzeppelin/contracts/utils/cryptography/MerkleProof.sol';
import '@openzeppelin/contracts/security/ReentrancyGuard.sol';
error NormalSaleNotActive();
error WhitelistNotActive();