Contract 0xb345233fA189C643772a35586b915E222C278d85 1

 
 
Txn Hash
Method
Block
From
To
Value
0x47f50495c2676c1ddad75500a21501b0ab9d9fe5bc66f945bd9746541fa2f94fSafe Transfer Fr...160690582022-11-28 14:23:233 hrs 17 mins ago0x6bfc8649e787f4b240d2a81f7906b94d094c40c1 IN  0xb345233fa189c643772a35586b915e222c278d850 Ether0.00124122 25.72707363
0x7dd71691da656ba1f5870d1c72f61bce210c485c46c0bfa3e5feff9402245ad7Safe Transfer Fr...160640592022-11-27 21:39:2320 hrs 1 min ago0xbec080c99448db9f4fbd044be5eacf89b4d40f7b IN  0xb345233fa189c643772a35586b915e222c278d850 Ether0.0005142710.5
0x78818b5c3054be0c8663322b80f94ca58aa9852d4768bd2dc68f267789c51affSet Approval For...160632692022-11-27 18:59:4722 hrs 41 mins ago0x4f07bb5b0c204da3d1c7a35dab23114ac2145980 IN  0xb345233fa189c643772a35586b915e222c278d850 Ether0.00048162 10.44619799
0x7c92438ad1cc9f5496d4b604587e1ea83ad5fa0f8775c621d65d02e9ab2b2509Set Approval For...160622772022-11-27 15:39:591 day 2 hrs ago0xf4ccf1727f9035a57cf5f02528bad401341b7f60 IN  0xb345233fa189c643772a35586b915e222c278d850 Ether0.0005398 11.70826772
0xf7b25f90a94f50379cec4973aea10af2861894f562f004cf68a50eeaee15fb66Safe Transfer Fr...160599912022-11-27 8:00:351 day 9 hrs agoENS Name bryanrhodes.eth IN  0xb345233fa189c643772a35586b915e222c278d850 Ether0.00043562 10.02680865
0x5c84f18dc3df009663495ff51310c23c51f3b5061666e6f58e0ef693510d53f6Safe Transfer Fr...160599852022-11-27 7:59:231 day 9 hrs agoENS Name bryanrhodes.eth IN  0xb345233fa189c643772a35586b915e222c278d850 Ether0.00067966 10.4010917
0xd1dd7bff1cccd20d12851f87224bfb2e6807ce0594e362ac873d5c8dc44be96cTransfer From160485172022-11-25 17:34:353 days 6 mins ago0x4226f7cb5f820961046c116de29459359ff1c44d IN  0xb345233fa189c643772a35586b915e222c278d850 Ether0.00051655 11.38096502
0xd79826ab776d8c3850470cf6af7daba20417090b6a9559bb9b828e893c63942fTransfer From160484852022-11-25 17:27:593 days 12 mins ago0x51f7345f3be0dc35fc6177cf82634d4d6f70ee5e IN  0xb345233fa189c643772a35586b915e222c278d850 Ether0.00052172 11.49484093
0x52796095540c3e780fe75eb8d8820176118fa2d29a5ba80935a127b7633a926dSet Approval For...160480992022-11-25 16:09:593 days 1 hr ago0xb5691bb907f6dedfaea9676e1e4e8cada720a8e2 IN  0xb345233fa189c643772a35586b915e222c278d850 Ether0.00056287 12.2085359
0x54c266a2e096a535121fc221d7285802486b52ad22bf5f2327d0f1554250accfSet Approval For...160421132022-11-24 20:05:113 days 21 hrs agoENS Name thewisewizard.eth IN  0xb345233fa189c643772a35586b915e222c278d850 Ether0.00026946 11.09965313
0xdc0395bc4260e4ad7e3a4b4fff31ee8e9aa4edf48d0cfcb69df3b0a843f916f0Set Approval For...160393042022-11-24 10:40:474 days 7 hrs ago0x0b4d2902a932e43d2796669d86ab337bb0f77a47 IN  0xb345233fa189c643772a35586b915e222c278d850 Ether0.0006258 13.57354674
0x602a869bc456cd09e1c42c0b961d1b9b7cc2ed8c89daa4b76f7d6ed6fb26c809Set Approval For...160338142022-11-23 16:12:595 days 1 hr ago0x248a2b24330af06fc2785f084fc2157aca382fb7 IN  0xb345233fa189c643772a35586b915e222c278d850 Ether0.0007453 16.16539309
0x1cca6a777d45052a6feee97e9324ee2a7744af993cef68fcf597f22a32f18307Set Approval For...160334032022-11-23 14:50:475 days 2 hrs ago0xa12241c3cb1d12444ff2b0a5ee0fbc90bcf9f907 IN  0xb345233fa189c643772a35586b915e222c278d850 Ether0.00060451 13.11164564
0xae4564a6e8ff7e3e120a66652d468e1aa9be0fad2387b8d3e95e9693475bfdb5Set Approval For...160249462022-11-22 10:26:476 days 7 hrs ago0x3bc079dc5a8860f030b55f93ab0cad859a529798 IN  0xb345233fa189c643772a35586b915e222c278d850 Ether0.00059913 12.99504836
0xdd90f033d5e15aea4604dcb2fd4b51d905850a4d2e1a167d211b31b490c42ce0Safe Transfer Fr...160239772022-11-22 7:11:476 days 10 hrs ago0x4bccc930ce07d1d6fdd55f19caef13477b23ada0 IN  0xb345233fa189c643772a35586b915e222c278d850 Ether0.0006848 11.31048233
0xae306d52a68aad34a232f1f9afa06c9f20e83e394163536b872ef0c9f449a87dSet Approval For...160190412022-11-21 14:39:357 days 3 hrs ago0x7aabcd3eca3ddff84a89cee52a7364e889e1d418 IN  0xb345233fa189c643772a35586b915e222c278d850 Ether0.00074397 16.13660959
0x483e310b3a77b5e1996b42aeb640f43fc64931567393b1cec4bc444fdfac94ecSet Approval For...160142312022-11-20 22:32:357 days 19 hrs ago0x04bef24aa69e6a47f6ba9a587a80ce7d9fa02b96 IN  0xb345233fa189c643772a35586b915e222c278d850 Ether0.00054493 11.81944359
0xb66802b1e2058cd7c05df97d83c076ef4bde6af7fce0aba1ada1d4e083cdfeb8Safe Transfer Fr...160131662022-11-20 18:58:237 days 22 hrs ago0x971220cfcda84c04d55aef6f87cf1d0a840a4d82 IN  0xb345233fa189c643772a35586b915e222c278d850 Ether0.00066284 13.73893505
0xd5ee48974cadf5b3d8816ab13b7530fc4c424ec79cdebae4c84f0d4f72de173fSet Approval For...160120222022-11-20 15:08:478 days 2 hrs ago0x40df5c0e9bf6c2ac0ba2fbeed6035dfe92d7bfe3 IN  0xb345233fa189c643772a35586b915e222c278d850 Ether0.00060954 13.22069267
0x2a268a86839cb17286c6383860768b0fe9b9f292e99599e52f897adf23bbb419Transfer From160115482022-11-20 13:33:358 days 4 hrs ago0x0ad2fcc9a406aa2d5c1538442409dc3a50eac23a IN  0xb345233fa189c643772a35586b915e222c278d850 Ether0.00077408 12.38779436
0x998ae35d7bdee4ca96b461d066dac02a1e19640eec06ab3d8a3ab6edee62a66cSafe Transfer Fr...160077052022-11-20 0:40:358 days 17 hrs ago0x8d05911a4aa9f1ff1f312a14092b0a5e60bb0f38 IN  0xb345233fa189c643772a35586b915e222c278d850 Ether0.00053431 11.07470289
0xe4842a080b1b8c9c530d749c6ed23822cc3dab4ec7724cfd2461e548d2dd0ae1Safe Transfer Fr...160061072022-11-19 19:19:478 days 22 hrs ago0x20e11249c2008bcc6ddc59c28362a90c6435db6c IN  0xb345233fa189c643772a35586b915e222c278d850 Ether0.0006767213.82
0xc3eb768618ed36db2791316a9e0a3b26f99bf5f37c66d81a29fc8c3333ecc2c8Set Approval For...160043502022-11-19 13:26:239 days 4 hrs agoENS Name infinitytimesme.eth IN  0xb345233fa189c643772a35586b915e222c278d850 Ether0.00050222 10.89297581
0xa025698f0892db3a6cbbab0b75de31c0086b93149113c7d73640964eac702210Safe Transfer Fr...160038642022-11-19 11:48:359 days 5 hrs ago0xe1ffbabe59b1f68a0c07c22201eeac3a6e08ea9b IN  0xb345233fa189c643772a35586b915e222c278d850 Ether0.0005647913
0x89654afce3353f774c3fd929960990bc4cfc3cb76306782f7313b9fa9c3ac158Safe Transfer Fr...160038612022-11-19 11:47:599 days 5 hrs ago0xe1ffbabe59b1f68a0c07c22201eeac3a6e08ea9b IN  0xb345233fa189c643772a35586b915e222c278d850 Ether0.0006270413
[ Download CSV Export 
Latest 2 internal transactions
Parent Txn Hash Block From To Value
0x15a8494ce78b75d4d5328894385251673d8a26584855ea5ee84ee18f09cd2827145035552022-04-02 0:19:27240 days 17 hrs ago 0xb345233fa189c643772a35586b915e222c278d850xc533a982284a3150ba185ac98967696b9e7bf11c101.02 Ether
0xbe44985ad2b7065a184ad24d29dfa77d62685f53e6092bcabe90db6cf4327d2e144954762022-03-31 18:05:27241 days 23 hrs ago 0xb345233fa189c643772a35586b915e222c278d850xc533a982284a3150ba185ac98967696b9e7bf11c159.66 Ether
[ Download CSV Export 
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
ERC721_QUOKKA

Compiler Version
v0.8.6+commit.11564f7e

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 11 : ERC721_QUOKKA.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "@openzeppelin/contracts/token/ERC721/IERC721.sol";
import "@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata.sol";
import "@openzeppelin/contracts/utils/Address.sol";
import "@openzeppelin/contracts/utils/Context.sol";
import "@openzeppelin/contracts/utils/Strings.sol";
import "@openzeppelin/contracts/utils/introspection/ERC165.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/cryptography/ECDSA.sol";

/**
 * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
 * the Metadata extension, but not including the Enumerable extension, which is available separately as
 * {ERC721Enumerable}.
 */
contract ERC721_QUOKKA is Context, ERC165, IERC721, IERC721Metadata, Ownable {
    using Address for address;
    using Strings for uint256;

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

    // Mapping from token ID to owner address
    mapping(uint256 => address) private _owners;

    // Mapping owner address to token count
    mapping(address => uint256) private _balances;

    // Mapping from token ID to approved address
    mapping(uint256 => address) private _tokenApprovals;

    // Mapping from owner to operator approvals
    mapping(address => mapping(address => bool)) private _operatorApprovals;

    //total supply
    uint256 public totalSupply;

    //Sale start times
    uint public preSaleStart = 1648677600;    
    uint public publicSaleStart = 1648850400;

    uint public publicPrice = 60000000000000000;
    
    uint public oqPrice = 30000000000000000;

    //table to watch whitelist claims
    //table to watch purchase limit of 2 for open sale
    mapping(address => uint256) public claimed;
    
    //token matrix for randomization
    mapping(uint16 => uint16) public tokenMatrix;
    
    //total tokens
    uint16 public totalTokens = 8000;

    //baseuri
    string public baseURI;
    
    //freezer
    bool public isFrozen = false;

    address public whitelistSigner = 0xCcCCccccCCCCcCCCCCCcCcCccCcCCCcCcccccccC;

    address payable public payout = payable(0xc533a982284A3150Ba185aC98967696b9E7BF11C);
    
    //Constants for signing whitelist
    bytes32 constant DOMAIN_SEPERATOR = keccak256(abi.encode(
        keccak256("EIP712Domain(string name,string version,uint256 chainId,address verifyingContract)"),
        keccak256("Signer NFT Distributor"),
        keccak256("1"),
        uint256(1),
        address(0xCcCCccccCCCCcCCCCCCcCcCccCcCCCcCcccccccC)
    ));

    bytes32 constant ENTRY_TYPEHASH = keccak256("Entry(uint256 index,uint256 memberType,uint256 claimAmmt,address wallet)");

    constructor() {
        _name = "Tribe Quokka";
        _symbol = "TQ";
    }

    modifier freezable() {
        require(isFrozen == false, "This function can not be called anymore");
        _;
    }

    /**
     * @dev Sets the isFrozen variable to true
     */
    function freezeSmartContract() public onlyOwner {
        isFrozen = true;
    }

    function release() public {
        payout.send(address(this).balance);
    }

    function tokensMinted() public view returns (uint256[] memory) {
        uint256[] memory tokens = new uint256[](totalTokens);

        for (uint256 idx = 0; idx < totalTokens; idx++) {
            if (_owners[idx] != address(0)) {
                tokens[idx] = 1;
            }
        }
        return tokens;
    }

    //Setters
    function setPrice(uint publicPrice_, uint oqPrice_) public onlyOwner {
        publicPrice = publicPrice_;
        oqPrice = oqPrice_;
    }

    function setSaleStart(uint preSaleStartTime, uint publicSaleStartTime) public onlyOwner {
        preSaleStart = preSaleStartTime;
        publicSaleStart = publicSaleStartTime;
    }

    function setSignerAddress(address signer) public onlyOwner {
        whitelistSigner = signer;
    }

    function setBaseURI(string memory baseURI_) public onlyOwner {
        baseURI = baseURI_;
    }

    //Sale openings
    function publicSale(uint purchaseAmmt) payable public freezable {
        require(block.timestamp >= publicSaleStart, "Sale has not begun");
        require( msg.value >= purchaseAmmt * publicPrice, "Not enough ETH sent");
        require(purchaseAmmt + claimed[msg.sender] <= 2, "Cannot purchase more than 2 per address");
        claimed[msg.sender] += purchaseAmmt;
        _multiMint(msg.sender, uint16(purchaseAmmt));
    }

    function whitelistMint(uint index, uint memberType, uint claimAmmt, uint claimTotal, bytes memory signature) payable public freezable {
        require(memberType <= 2, "Invalid Member Type.");
        if(memberType == 1) {
            require(block.timestamp >= preSaleStart, "Friends and Family PreSale has not begun!");
            require(msg.value >= claimAmmt * oqPrice, "Not enough ETH sent");
        } else if (memberType == 2) {
            require(block.timestamp >= preSaleStart, "Community PreSale has not begun!");
            require(msg.value >= claimAmmt * publicPrice, "Not enough ETH sent");
        }
        require(claimed[msg.sender] + claimAmmt <= 10, "Too many claims.");
        require(claimed[msg.sender] + claimAmmt <= claimTotal, "Already claimed.");
        claimed[msg.sender] += claimAmmt;
        bytes32 digest = keccak256(abi.encodePacked(
            "\x19\x01",
            DOMAIN_SEPERATOR,
            keccak256(abi.encode(
                ENTRY_TYPEHASH,
                index, 
                memberType,
                claimTotal, 
                msg.sender
            ))
        ));     
        address claimSigner = ECDSA.recover(digest, signature);
        require(claimSigner == whitelistSigner, "Invalid Message Signer.");
        _multiMint(msg.sender, uint16(claimAmmt));
    }

    function _multiMint(address _to, uint16 _mintAmt) private {
        require(_to != address(0), "ERC721: mint to the zero address");
        require(_mintAmt + totalSupply <= totalTokens, "Not enough tokens left");

        uint16 tmpTotalMinted = uint16(totalSupply);

        uint256[] memory tokenIds = new uint256[](_mintAmt);

        for(uint256 idx = 0; idx < _mintAmt; idx++) {
            tokenIds[idx] = _getTokenToBeMinted(tmpTotalMinted);
            tmpTotalMinted++;
        }

        for(uint256 idx = 0; idx < _mintAmt; idx++){
            require(!_exists(tokenIds[idx]), "ERC721: token already minted");
            _owners[tokenIds[idx]] = _to;
            emit Transfer(address(0), _to, tokenIds[idx]);
        }

        _balances[_to] += _mintAmt;
        totalSupply += _mintAmt;

        require(
            _checkOnERC721Received(address(0), _to, tokenIds[0], ""),
            "ERC721: transfer to non ERC721Receiver implementer"
        );
    }
    
    function tokenOfOwnerByIndex(address owner, uint256 index) public view returns(uint256) {
        require(owner != address(0));
        require(index < balanceOf(owner), "ERC721: out of bounds");
        uint count = 0;
        for(uint i = 1; i <= totalTokens; i++) {
            if(_owners[i] == owner){
                count += 1;
            }
            if(count > index) {
                return i;
            }
        }
        revert("unable to get token of owner by index");
    }

/**
     * @dev Returns a random available token to be minted
     *
     * Code used as reference:
     * https://github.com/1001-digital/erc721-extensions/blob/main/contracts/RandomlyAssigned.sol
     */
    function _getTokenToBeMinted(uint16 _totalMintedTokens)
        private
        returns (uint16)
    {
        uint16 maxIndex = totalTokens - _totalMintedTokens;
        uint16 random = _getRandomNumber(maxIndex, _totalMintedTokens);

        uint16 tokenId = tokenMatrix[random];
        if (tokenMatrix[random] == 0) {
            tokenId = random;
        }

        tokenMatrix[maxIndex - 1] == 0
            ? tokenMatrix[random] = maxIndex - 1
            : tokenMatrix[random] = tokenMatrix[maxIndex - 1];

        return tokenId;
    }

    /**
     * @dev Generates a pseudo-random number.
     */
    function _getRandomNumber(uint16 _upper, uint16 _totalMintedTokens)
        private
        view
        returns (uint16)
    {
        uint16 random = uint16(
            uint256(
                keccak256(
                    abi.encodePacked(
                        _totalMintedTokens,
                        blockhash(block.number - 1),
                        block.coinbase,
                        block.difficulty,
                        msg.sender
                    )
                )
            )
        );

        return random % _upper;
    }

    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) {
        return
            interfaceId == type(IERC721).interfaceId ||
            interfaceId == type(IERC721Metadata).interfaceId ||
            super.supportsInterface(interfaceId);
    }

    /**
     * @dev See {IERC721-balanceOf}.
     */
    function balanceOf(address owner) public view virtual override returns (uint256) {
        require(owner != address(0), "ERC721: balance query for the zero address");
        return _balances[owner];
    }

    /**
     * @dev See {IERC721-ownerOf}.
     */
    function ownerOf(uint256 tokenId) public view virtual override returns (address) {
        address owner = _owners[tokenId];
        require(owner != address(0), "ERC721: owner query for nonexistent token");
        return owner;
    }

    /**
     * @dev See {IERC721Metadata-name}.
     */
    function name() public view virtual override returns (string memory) {
        return _name;
    }

    /**
     * @dev See {IERC721Metadata-symbol}.
     */
    function symbol() public view virtual override returns (string memory) {
        return _symbol;
    }

    /**
     * @dev See {IERC721Metadata-tokenURI}.
     */
    function tokenURI(uint256 tokenId) public view virtual override returns (string memory) {
        require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token");

        return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : "";
    }

    /**
     * @dev See {IERC721-approve}.
     */
    function approve(address to, uint256 tokenId) public virtual override {
        address owner = ERC721_QUOKKA.ownerOf(tokenId);
        require(to != owner, "ERC721: approval to current owner");

        require(
            _msgSender() == owner || isApprovedForAll(owner, _msgSender()),
            "ERC721: approve caller is not owner nor approved for all"
        );

        _approve(to, tokenId);
    }

    /**
     * @dev See {IERC721-getApproved}.
     */
    function getApproved(uint256 tokenId) public view virtual override returns (address) {
        require(_exists(tokenId), "ERC721: approved query for nonexistent token");

        return _tokenApprovals[tokenId];
    }

    /**
     * @dev See {IERC721-setApprovalForAll}.
     */
    function setApprovalForAll(address operator, bool approved) public virtual override {
        require(operator != _msgSender(), "ERC721: approve to caller");

        _operatorApprovals[_msgSender()][operator] = approved;
        emit ApprovalForAll(_msgSender(), operator, approved);
    }

    /**
     * @dev See {IERC721-isApprovedForAll}.
     */
    function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) {
        return _operatorApprovals[owner][operator];
    }

    /**
     * @dev See {IERC721-transferFrom}.
     */
    function transferFrom(
        address from,
        address to,
        uint256 tokenId
    ) public virtual override {
        //solhint-disable-next-line max-line-length
        require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved");

        _transfer(from, to, tokenId);
    }

    /**
     * @dev See {IERC721-safeTransferFrom}.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId
    ) public virtual override {
        safeTransferFrom(from, to, tokenId, "");
    }

    /**
     * @dev See {IERC721-safeTransferFrom}.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) public virtual override {
        require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved");
        _safeTransfer(from, to, tokenId, _data);
    }

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients
     * are aware of the ERC721 protocol to prevent tokens from being forever locked.
     *
     * `_data` is additional data, it has no specified format and it is sent in call to `to`.
     *
     * This internal function is equivalent to {safeTransferFrom}, and can be used to e.g.
     * implement alternative mechanisms to perform token transfer, such as signature-based.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function _safeTransfer(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) internal virtual {
        _transfer(from, to, tokenId);
        require(_checkOnERC721Received(from, to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer");
    }

    /**
     * @dev Returns whether `tokenId` exists.
     *
     * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}.
     *
     * Tokens start existing when they are minted (`_mint`),
     * and stop existing when they are burned (`_burn`).
     */
    function _exists(uint256 tokenId) internal view virtual returns (bool) {
        return _owners[tokenId] != address(0);
    }

    /**
     * @dev Returns whether `spender` is allowed to manage `tokenId`.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) {
        require(_exists(tokenId), "ERC721: operator query for nonexistent token");
        address owner = ERC721_QUOKKA.ownerOf(tokenId);
        return (spender == owner || getApproved(tokenId) == spender || isApprovedForAll(owner, spender));
    }

    /**
     * @dev Safely mints `tokenId` and transfers it to `to`.
     *
     * Requirements:
     *
     * - `tokenId` must not exist.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function _safeMint(address to, uint256 tokenId) internal virtual {
        _safeMint(to, tokenId, "");
    }

    /**
     * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is
     * forwarded in {IERC721Receiver-onERC721Received} to contract recipients.
     */
    function _safeMint(
        address to,
        uint256 tokenId,
        bytes memory _data
    ) internal virtual {
        _mint(to, tokenId);
        require(
            _checkOnERC721Received(address(0), to, tokenId, _data),
            "ERC721: transfer to non ERC721Receiver implementer"
        );
    }

    /**
     * @dev Mints `tokenId` and transfers it to `to`.
     *
     * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible
     *
     * Requirements:
     *
     * - `tokenId` must not exist.
     * - `to` cannot be the zero address.
     *
     * Emits a {Transfer} event.
     */
    function _mint(address to, uint256 tokenId) internal virtual {
        require(to != address(0), "ERC721: mint to the zero address");
        require(!_exists(tokenId), "ERC721: token already minted");

        _beforeTokenTransfer(address(0), to, tokenId);

        _balances[to] += 1;
        _owners[tokenId] = to;

        emit Transfer(address(0), to, tokenId);
    }
    
    /**
     * @dev Destroys `tokenId`.
     * The approval is cleared when the token is burned.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     *
     * Emits a {Transfer} event.
     */
    function _burn(uint256 tokenId) internal virtual {
        address owner = ERC721_QUOKKA.ownerOf(tokenId);

        _beforeTokenTransfer(owner, address(0), tokenId);

        // Clear approvals
        _approve(address(0), tokenId);

        _balances[owner] -= 1;
        delete _owners[tokenId];

        emit Transfer(owner, address(0), tokenId);
    }

    /**
     * @dev Transfers `tokenId` from `from` to `to`.
     *  As opposed to {transferFrom}, this imposes no restrictions on msg.sender.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - `tokenId` token must be owned by `from`.
     *
     * Emits a {Transfer} event.
     */
    function _transfer(
        address from,
        address to,
        uint256 tokenId
    ) internal virtual {
        require(ERC721_QUOKKA.ownerOf(tokenId) == from, "ERC721: transfer of token that is not own");
        require(to != address(0), "ERC721: transfer to the zero address");

        _beforeTokenTransfer(from, to, tokenId);

        // Clear approvals from the previous owner
        _approve(address(0), tokenId);

        _balances[from] -= 1;
        _balances[to] += 1;
        _owners[tokenId] = to;

        emit Transfer(from, to, tokenId);
    }

    /**
     * @dev Approve `to` to operate on `tokenId`
     *
     * Emits a {Approval} event.
     */
    function _approve(address to, uint256 tokenId) internal virtual {
        _tokenApprovals[tokenId] = to;
        emit Approval(ERC721_QUOKKA.ownerOf(tokenId), to, tokenId);
    }

    /**
     * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address.
     * The call is not executed if the target address is not a contract.
     *
     * @param from address representing the previous owner of the given token ID
     * @param to target address that will receive the tokens
     * @param tokenId uint256 ID of the token to be transferred
     * @param _data bytes optional data to send along with the call
     * @return bool whether the call correctly returned the expected magic value
     */
    function _checkOnERC721Received(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) private returns (bool) {
        if (to.isContract()) {
            try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) {
                return retval == IERC721Receiver.onERC721Received.selector;
            } catch (bytes memory reason) {
                if (reason.length == 0) {
                    revert("ERC721: transfer to non ERC721Receiver implementer");
                } else {
                    assembly {
                        revert(add(32, reason), mload(reason))
                    }
                }
            }
        } else {
            return true;
        }
    }

    /**
     * @dev Hook that is called before any token transfer. This includes minting
     * and burning.
     *
     * Calling conditions:
     *
     * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be
     * transferred to `to`.
     * - When `from` is zero, `tokenId` will be minted for `to`.
     * - When `to` is zero, ``from``'s `tokenId` will be burned.
     * - `from` and `to` are never both zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _beforeTokenTransfer(
        address from,
        address to,
        uint256 tokenId
    ) internal virtual {}
}

File 2 of 11 : IERC721.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../../utils/introspection/IERC165.sol";

/**
 * @dev Required interface of an ERC721 compliant contract.
 */
interface IERC721 is IERC165 {
    /**
     * @dev Emitted when `tokenId` token is transferred from `from` to `to`.
     */
    event Transfer(address indexed from, address indexed to, uint256 indexed tokenId);

    /**
     * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token.
     */
    event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId);

    /**
     * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets.
     */
    event ApprovalForAll(address indexed owner, address indexed operator, bool approved);

    /**
     * @dev Returns the number of tokens in ``owner``'s account.
     */
    function balanceOf(address owner) external view returns (uint256 balance);

    /**
     * @dev Returns the owner of the `tokenId` token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function ownerOf(uint256 tokenId) external view returns (address owner);

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients
     * are aware of the ERC721 protocol to prevent tokens from being forever locked.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId
    ) external;

    /**
     * @dev Transfers `tokenId` token from `from` to `to`.
     *
     * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must be owned by `from`.
     * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(
        address from,
        address to,
        uint256 tokenId
    ) external;

    /**
     * @dev Gives permission to `to` to transfer `tokenId` token to another account.
     * The approval is cleared when the token is transferred.
     *
     * Only a single account can be approved at a time, so approving the zero address clears previous approvals.
     *
     * Requirements:
     *
     * - The caller must own the token or be an approved operator.
     * - `tokenId` must exist.
     *
     * Emits an {Approval} event.
     */
    function approve(address to, uint256 tokenId) external;

    /**
     * @dev Returns the account approved for `tokenId` token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function getApproved(uint256 tokenId) external view returns (address operator);

    /**
     * @dev Approve or remove `operator` as an operator for the caller.
     * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller.
     *
     * Requirements:
     *
     * - The `operator` cannot be the caller.
     *
     * Emits an {ApprovalForAll} event.
     */
    function setApprovalForAll(address operator, bool _approved) external;

    /**
     * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`.
     *
     * See {setApprovalForAll}
     */
    function isApprovedForAll(address owner, address operator) external view returns (bool);

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId,
        bytes calldata data
    ) external;
}

File 3 of 11 : IERC721Receiver.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/**
 * @title ERC721 token receiver interface
 * @dev Interface for any contract that wants to support safeTransfers
 * from ERC721 asset contracts.
 */
interface IERC721Receiver {
    /**
     * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom}
     * by `operator` from `from`, this function is called.
     *
     * It must return its Solidity selector to confirm the token transfer.
     * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted.
     *
     * The selector can be obtained in Solidity with `IERC721.onERC721Received.selector`.
     */
    function onERC721Received(
        address operator,
        address from,
        uint256 tokenId,
        bytes calldata data
    ) external returns (bytes4);
}

File 4 of 11 : IERC721Metadata.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../IERC721.sol";

/**
 * @title ERC-721 Non-Fungible Token Standard, optional metadata extension
 * @dev See https://eips.ethereum.org/EIPS/eip-721
 */
interface IERC721Metadata is IERC721 {
    /**
     * @dev Returns the token collection name.
     */
    function name() external view returns (string memory);

    /**
     * @dev Returns the token collection symbol.
     */
    function symbol() external view returns (string memory);

    /**
     * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token.
     */
    function tokenURI(uint256 tokenId) external view returns (string memory);
}

File 5 of 11 : Address.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * [IMPORTANT]
     * ====
     * It is unsafe to assume that an address for which this function returns
     * false is an externally-owned account (EOA) and not a contract.
     *
     * Among others, `isContract` will return false for the following
     * types of addresses:
     *
     *  - an externally-owned account
     *  - a contract in construction
     *  - an address where a contract will be created
     *  - an address where a contract lived, but was destroyed
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize, which returns 0 for contracts in
        // construction, since the code is only stored at the end of the
        // constructor execution.

        uint256 size;
        assembly {
            size := extcodesize(account)
        }
        return size > 0;
    }

    /**
     * @dev Replacement for Solidity's `transfer`: sends `amount` wei to
     * `recipient`, forwarding all available gas and reverting on errors.
     *
     * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost
     * of certain opcodes, possibly making contracts go over the 2300 gas limit
     * imposed by `transfer`, making them unable to receive funds via
     * `transfer`. {sendValue} removes this limitation.
     *
     * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more].
     *
     * IMPORTANT: because control is transferred to `recipient`, care must be
     * taken to not create reentrancy vulnerabilities. Consider using
     * {ReentrancyGuard} or the
     * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
     */
    function sendValue(address payable recipient, uint256 amount) internal {
        require(address(this).balance >= amount, "Address: insufficient balance");

        (bool success, ) = recipient.call{value: amount}("");
        require(success, "Address: unable to send value, recipient may have reverted");
    }

    /**
     * @dev Performs a Solidity function call using a low level `call`. A
     * plain `call` is an unsafe replacement for a function call: use this
     * function instead.
     *
     * If `target` reverts with a revert reason, it is bubbled up by this
     * function (like regular Solidity function calls).
     *
     * Returns the raw returned data. To convert to the expected return value,
     * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].
     *
     * Requirements:
     *
     * - `target` must be a contract.
     * - calling `target` with `data` must not revert.
     *
     * _Available since v3.1._
     */
    function functionCall(address target, bytes memory data) internal returns (bytes memory) {
        return functionCall(target, data, "Address: low-level call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with
     * `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal returns (bytes memory) {
        return functionCallWithValue(target, data, 0, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but also transferring `value` wei to `target`.
     *
     * Requirements:
     *
     * - the calling contract must have an ETH balance of at least `value`.
     * - the called Solidity function must be `payable`.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(
        address target,
        bytes memory data,
        uint256 value
    ) internal returns (bytes memory) {
        return functionCallWithValue(target, data, value, "Address: low-level call with value failed");
    }

    /**
     * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but
     * with `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(
        address target,
        bytes memory data,
        uint256 value,
        string memory errorMessage
    ) internal returns (bytes memory) {
        require(address(this).balance >= value, "Address: insufficient balance for call");
        require(isContract(target), "Address: call to non-contract");

        (bool success, bytes memory returndata) = target.call{value: value}(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {
        return functionStaticCall(target, data, "Address: low-level static call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal view returns (bytes memory) {
        require(isContract(target), "Address: static call to non-contract");

        (bool success, bytes memory returndata) = target.staticcall(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {
        return functionDelegateCall(target, data, "Address: low-level delegate call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal returns (bytes memory) {
        require(isContract(target), "Address: delegate call to non-contract");

        (bool success, bytes memory returndata) = target.delegatecall(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the
     * revert reason using the provided one.
     *
     * _Available since v4.3._
     */
    function verifyCallResult(
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal pure returns (bytes memory) {
        if (success) {
            return returndata;
        } else {
            // Look for revert reason and bubble it up if present
            if (returndata.length > 0) {
                // The easiest way to bubble the revert reason is using memory via assembly

                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
}

File 6 of 11 : Context.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/**
 * @dev Provides information about the current execution context, including the
 * sender of the transaction and its data. While these are generally available
 * via msg.sender and msg.data, they should not be accessed in such a direct
 * manner, since when dealing with meta-transactions the account sending and
 * paying for execution may not be the actual sender (as far as an application
 * is concerned).
 *
 * This contract is only required for intermediate, library-like contracts.
 */
abstract contract Context {
    function _msgSender() internal view virtual returns (address) {
        return msg.sender;
    }

    function _msgData() internal view virtual returns (bytes calldata) {
        return msg.data;
    }
}

File 7 of 11 : Strings.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/**
 * @dev String operations.
 */
library Strings {
    bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef";

    /**
     * @dev Converts a `uint256` to its ASCII `string` decimal representation.
     */
    function toString(uint256 value) internal pure returns (string memory) {
        // Inspired by OraclizeAPI's implementation - MIT licence
        // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol

        if (value == 0) {
            return "0";
        }
        uint256 temp = value;
        uint256 digits;
        while (temp != 0) {
            digits++;
            temp /= 10;
        }
        bytes memory buffer = new bytes(digits);
        while (value != 0) {
            digits -= 1;
            buffer[digits] = bytes1(uint8(48 + uint256(value % 10)));
            value /= 10;
        }
        return string(buffer);
    }

    /**
     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.
     */
    function toHexString(uint256 value) internal pure returns (string memory) {
        if (value == 0) {
            return "0x00";
        }
        uint256 temp = value;
        uint256 length = 0;
        while (temp != 0) {
            length++;
            temp >>= 8;
        }
        return toHexString(value, length);
    }

    /**
     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length.
     */
    function toHexString(uint256 value, uint256 length) internal pure returns (string memory) {
        bytes memory buffer = new bytes(2 * length + 2);
        buffer[0] = "0";
        buffer[1] = "x";
        for (uint256 i = 2 * length + 1; i > 1; --i) {
            buffer[i] = _HEX_SYMBOLS[value & 0xf];
            value >>= 4;
        }
        require(value == 0, "Strings: hex length insufficient");
        return string(buffer);
    }
}

File 8 of 11 : ERC165.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "./IERC165.sol";

/**
 * @dev Implementation of the {IERC165} interface.
 *
 * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check
 * for the additional interface id that will be supported. For example:
 *
 * ```solidity
 * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
 *     return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId);
 * }
 * ```
 *
 * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation.
 */
abstract contract ERC165 is IERC165 {
    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
        return interfaceId == type(IERC165).interfaceId;
    }
}

File 9 of 11 : Ownable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../utils/Context.sol";

/**
 * @dev Contract module which provides a basic access control mechanism, where
 * there is an account (an owner) that can be granted exclusive access to
 * specific functions.
 *
 * By default, the owner account will be the one that deploys the contract. This
 * can later be changed with {transferOwnership}.
 *
 * This module is used through inheritance. It will make available the modifier
 * `onlyOwner`, which can be applied to your functions to restrict their use to
 * the owner.
 */
abstract contract Ownable is Context {
    address private _owner;

    event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);

    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    constructor() {
        _setOwner(_msgSender());
    }

    /**
     * @dev Returns the address of the current owner.
     */
    function owner() public view virtual returns (address) {
        return _owner;
    }

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        require(owner() == _msgSender(), "Ownable: caller is not the owner");
        _;
    }

    /**
     * @dev Leaves the contract without owner. It will not be possible to call
     * `onlyOwner` functions anymore. Can only be called by the current owner.
     *
     * NOTE: Renouncing ownership will leave the contract without an owner,
     * thereby removing any functionality that is only available to the owner.
     */
    function renounceOwnership() public virtual onlyOwner {
        _setOwner(address(0));
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Can only be called by the current owner.
     */
    function transferOwnership(address newOwner) public virtual onlyOwner {
        require(newOwner != address(0), "Ownable: new owner is the zero address");
        _setOwner(newOwner);
    }

    function _setOwner(address newOwner) private {
        address oldOwner = _owner;
        _owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }
}

File 10 of 11 : ECDSA.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/**
 * @dev Elliptic Curve Digital Signature Algorithm (ECDSA) operations.
 *
 * These functions can be used to verify that a message was signed by the holder
 * of the private keys of a given address.
 */
library ECDSA {
    enum RecoverError {
        NoError,
        InvalidSignature,
        InvalidSignatureLength,
        InvalidSignatureS,
        InvalidSignatureV
    }

    function _throwError(RecoverError error) private pure {
        if (error == RecoverError.NoError) {
            return; // no error: do nothing
        } else if (error == RecoverError.InvalidSignature) {
            revert("ECDSA: invalid signature");
        } else if (error == RecoverError.InvalidSignatureLength) {
            revert("ECDSA: invalid signature length");
        } else if (error == RecoverError.InvalidSignatureS) {
            revert("ECDSA: invalid signature 's' value");
        } else if (error == RecoverError.InvalidSignatureV) {
            revert("ECDSA: invalid signature 'v' value");
        }
    }

    /**
     * @dev Returns the address that signed a hashed message (`hash`) with
     * `signature` or error string. This address can then be used for verification purposes.
     *
     * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures:
     * this function rejects them by requiring the `s` value to be in the lower
     * half order, and the `v` value to be either 27 or 28.
     *
     * IMPORTANT: `hash` _must_ be the result of a hash operation for the
     * verification to be secure: it is possible to craft signatures that
     * recover to arbitrary addresses for non-hashed data. A safe way to ensure
     * this is by receiving a hash of the original message (which may otherwise
     * be too long), and then calling {toEthSignedMessageHash} on it.
     *
     * Documentation for signature generation:
     * - with https://web3js.readthedocs.io/en/v1.3.4/web3-eth-accounts.html#sign[Web3.js]
     * - with https://docs.ethers.io/v5/api/signer/#Signer-signMessage[ethers]
     *
     * _Available since v4.3._
     */
    function tryRecover(bytes32 hash, bytes memory signature) internal pure returns (address, RecoverError) {
        // Check the signature length
        // - case 65: r,s,v signature (standard)
        // - case 64: r,vs signature (cf https://eips.ethereum.org/EIPS/eip-2098) _Available since v4.1._
        if (signature.length == 65) {
            bytes32 r;
            bytes32 s;
            uint8 v;
            // ecrecover takes the signature parameters, and the only way to get them
            // currently is to use assembly.
            assembly {
                r := mload(add(signature, 0x20))
                s := mload(add(signature, 0x40))
                v := byte(0, mload(add(signature, 0x60)))
            }
            return tryRecover(hash, v, r, s);
        } else if (signature.length == 64) {
            bytes32 r;
            bytes32 vs;
            // ecrecover takes the signature parameters, and the only way to get them
            // currently is to use assembly.
            assembly {
                r := mload(add(signature, 0x20))
                vs := mload(add(signature, 0x40))
            }
            return tryRecover(hash, r, vs);
        } else {
            return (address(0), RecoverError.InvalidSignatureLength);
        }
    }

    /**
     * @dev Returns the address that signed a hashed message (`hash`) with
     * `signature`. This address can then be used for verification purposes.
     *
     * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures:
     * this function rejects them by requiring the `s` value to be in the lower
     * half order, and the `v` value to be either 27 or 28.
     *
     * IMPORTANT: `hash` _must_ be the result of a hash operation for the
     * verification to be secure: it is possible to craft signatures that
     * recover to arbitrary addresses for non-hashed data. A safe way to ensure
     * this is by receiving a hash of the original message (which may otherwise
     * be too long), and then calling {toEthSignedMessageHash} on it.
     */
    function recover(bytes32 hash, bytes memory signature) internal pure returns (address) {
        (address recovered, RecoverError error) = tryRecover(hash, signature);
        _throwError(error);
        return recovered;
    }

    /**
     * @dev Overload of {ECDSA-tryRecover} that receives the `r` and `vs` short-signature fields separately.
     *
     * See https://eips.ethereum.org/EIPS/eip-2098[EIP-2098 short signatures]
     *
     * _Available since v4.3._
     */
    function tryRecover(
        bytes32 hash,
        bytes32 r,
        bytes32 vs
    ) internal pure returns (address, RecoverError) {
        bytes32 s;
        uint8 v;
        assembly {
            s := and(vs, 0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff)
            v := add(shr(255, vs), 27)
        }
        return tryRecover(hash, v, r, s);
    }

    /**
     * @dev Overload of {ECDSA-recover} that receives the `r and `vs` short-signature fields separately.
     *
     * _Available since v4.2._
     */
    function recover(
        bytes32 hash,
        bytes32 r,
        bytes32 vs
    ) internal pure returns (address) {
        (address recovered, RecoverError error) = tryRecover(hash, r, vs);
        _throwError(error);
        return recovered;
    }

    /**
     * @dev Overload of {ECDSA-tryRecover} that receives the `v`,
     * `r` and `s` signature fields separately.
     *
     * _Available since v4.3._
     */
    function tryRecover(
        bytes32 hash,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) internal pure returns (address, RecoverError) {
        // EIP-2 still allows signature malleability for ecrecover(). Remove this possibility and make the signature
        // unique. Appendix F in the Ethereum Yellow paper (https://ethereum.github.io/yellowpaper/paper.pdf), defines
        // the valid range for s in (301): 0 < s < secp256k1n ÷ 2 + 1, and for v in (302): v ∈ {27, 28}. Most
        // signatures from current libraries generate a unique signature with an s-value in the lower half order.
        //
        // If your library generates malleable signatures, such as s-values in the upper range, calculate a new s-value
        // with 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141 - s1 and flip v from 27 to 28 or
        // vice versa. If your library also generates signatures with 0/1 for v instead 27/28, add 27 to v to accept
        // these malleable signatures as well.
        if (uint256(s) > 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0) {
            return (address(0), RecoverError.InvalidSignatureS);
        }
        if (v != 27 && v != 28) {
            return (address(0), RecoverError.InvalidSignatureV);
        }

        // If the signature is valid (and not malleable), return the signer address
        address signer = ecrecover(hash, v, r, s);
        if (signer == address(0)) {
            return (address(0), RecoverError.InvalidSignature);
        }

        return (signer, RecoverError.NoError);
    }

    /**
     * @dev Overload of {ECDSA-recover} that receives the `v`,
     * `r` and `s` signature fields separately.
     */
    function recover(
        bytes32 hash,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) internal pure returns (address) {
        (address recovered, RecoverError error) = tryRecover(hash, v, r, s);
        _throwError(error);
        return recovered;
    }

    /**
     * @dev Returns an Ethereum Signed Message, created from a `hash`. This
     * produces hash corresponding to the one signed with the
     * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`]
     * JSON-RPC method as part of EIP-191.
     *
     * See {recover}.
     */
    function toEthSignedMessageHash(bytes32 hash) internal pure returns (bytes32) {
        // 32 is the length in bytes of hash,
        // enforced by the type signature above
        return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n32", hash));
    }

    /**
     * @dev Returns an Ethereum Signed Typed Data, created from a
     * `domainSeparator` and a `structHash`. This produces hash corresponding
     * to the one signed with the
     * https://eips.ethereum.org/EIPS/eip-712[`eth_signTypedData`]
     * JSON-RPC method as part of EIP-712.
     *
     * See {recover}.
     */
    function toTypedDataHash(bytes32 domainSeparator, bytes32 structHash) internal pure returns (bytes32) {
        return keccak256(abi.encodePacked("\x19\x01", domainSeparator, structHash));
    }
}

File 11 of 11 : IERC165.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC165 standard, as defined in the
 * https://eips.ethereum.org/EIPS/eip-165[EIP].
 *
 * Implementers can declare support of contract interfaces, which can then be
 * queried by others ({ERC165Checker}).
 *
 * For an implementation, see {ERC165}.
 */
interface IERC165 {
    /**
     * @dev Returns true if this contract implements the interface defined by
     * `interfaceId`. See the corresponding
     * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section]
     * to learn more about how these ids are created.
     *
     * This function call must use less than 30 000 gas.
     */
    function supportsInterface(bytes4 interfaceId) external view returns (bool);
}

Settings
{
  "optimizer": {
    "enabled": true,
    "runs": 200
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  },
  "metadata": {
    "useLiteralContent": true
  },
  "libraries": {}
}

Contract Security Audit

Contract ABI

[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"claimed","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"freezeSmartContract","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isFrozen","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"oqPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"payout","outputs":[{"internalType":"address payable","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"preSaleStart","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"publicPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"purchaseAmmt","type":"uint256"}],"name":"publicSale","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"publicSaleStart","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"release","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"baseURI_","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"publicPrice_","type":"uint256"},{"internalType":"uint256","name":"oqPrice_","type":"uint256"}],"name":"setPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"preSaleStartTime","type":"uint256"},{"internalType":"uint256","name":"publicSaleStartTime","type":"uint256"}],"name":"setSaleStart","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"signer","type":"address"}],"name":"setSignerAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint16","name":"","type":"uint16"}],"name":"tokenMatrix","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tokensMinted","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalTokens","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"},{"internalType":"uint256","name":"memberType","type":"uint256"},{"internalType":"uint256","name":"claimAmmt","type":"uint256"},{"internalType":"uint256","name":"claimTotal","type":"uint256"},{"internalType":"bytes","name":"signature","type":"bytes"}],"name":"whitelistMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"whitelistSigner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"}]

6080604052636244d2e060085563624775e060095566d529ae9e860000600a55666a94d74f430000600b55600e805461ffff1916611f401790556010805474cccccccccccccccccccccccccccccccccccccccc006001600160a81b0319909116179055601180546001600160a01b03191673c533a982284a3150ba185ac98967696b9e7bf11c1790553480156200009557600080fd5b50620000a13362000107565b60408051808201909152600c8082526b54726962652051756f6b6b6160a01b6020909201918252620000d69160019162000157565b5060408051808201909152600280825261545160f01b602090920191825262000100918162000157565b506200023a565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b8280546200016590620001fd565b90600052602060002090601f016020900481019282620001895760008555620001d4565b82601f10620001a457805160ff1916838001178555620001d4565b82800160010185558215620001d4579182015b82811115620001d4578251825591602001919060010190620001b7565b50620001e2929150620001e6565b5090565b5b80821115620001e25760008155600101620001e7565b600181811c908216806200021257607f821691505b602082108114156200023457634e487b7160e01b600052602260045260246000fd5b50919050565b612d62806200024a6000396000f3fe6080604052600436106102255760003560e01c806370a0823111610123578063b4b2b18b116100ab578063e985e9c51161006f578063e985e9c514610639578063ef81b4d414610682578063f029da5c146106a7578063f2fde38b146106ba578063f7d97577146106da57600080fd5b8063b4b2b18b14610597578063b88d4fde146105ac578063c87b56dd146105cc578063c884ef83146105ec578063c8a0dde61461061957600080fd5b80638da5cb5b116100f25780638da5cb5b1461051b57806395d89b4114610539578063a22cb4651461054e578063a945bf801461056e578063b287c8ed1461058457600080fd5b806370a08231146104b6578063715018a6146104d65780637e1c0c09146104eb57806386d1a69f1461050657600080fd5b80633360caa0116101b157806355f804b31161017557806355f804b31461041f5780636352211e1461043f57806363bd1d4a1461045f5780636c0360eb1461047f5780636de9f32b1461049457600080fd5b80633360caa01461037557806333eeb1471461038b5780633ad60304146103a55780634098cdcd146103bb57806342842e0e146103ff57600080fd5b8063095ea7b3116101f8578063095ea7b3146102db5780630d5624b3146102fb57806318160ddd1461031f57806323b872dd146103355780632f745c591461035557600080fd5b806301ffc9a71461022a578063046dc1661461025f57806306fdde0314610281578063081812fc146102a3575b600080fd5b34801561023657600080fd5b5061024a61024536600461273b565b6106fa565b60405190151581526020015b60405180910390f35b34801561026b57600080fd5b5061027f61027a3660046125e3565b61074c565b005b34801561028d57600080fd5b506102966107a7565b60405161025691906129f1565b3480156102af57600080fd5b506102c36102be3660046127e2565b610839565b6040516001600160a01b039091168152602001610256565b3480156102e757600080fd5b5061027f6102f6366004612711565b6108ce565b34801561030757600080fd5b5061031160085481565b604051908152602001610256565b34801561032b57600080fd5b5061031160075481565b34801561034157600080fd5b5061027f610350366004612631565b6109e4565b34801561036157600080fd5b50610311610370366004612711565b610a15565b34801561038157600080fd5b5061031160095481565b34801561039757600080fd5b5060105461024a9060ff1681565b3480156103b157600080fd5b50610311600b5481565b3480156103c757600080fd5b506103ec6103d63660046127be565b600d6020526000908152604090205461ffff1681565b60405161ffff9091168152602001610256565b34801561040b57600080fd5b5061027f61041a366004612631565b610b35565b34801561042b57600080fd5b5061027f61043a366004612775565b610b50565b34801561044b57600080fd5b506102c361045a3660046127e2565b610b91565b34801561046b57600080fd5b506011546102c3906001600160a01b031681565b34801561048b57600080fd5b50610296610c08565b3480156104a057600080fd5b506104a9610c96565b60405161025691906129ad565b3480156104c257600080fd5b506103116104d13660046125e3565b610d4e565b3480156104e257600080fd5b5061027f610dd5565b3480156104f757600080fd5b50600e546103ec9061ffff1681565b34801561051257600080fd5b5061027f610e0b565b34801561052757600080fd5b506000546001600160a01b03166102c3565b34801561054557600080fd5b50610296610e35565b34801561055a57600080fd5b5061027f6105693660046126d5565b610e44565b34801561057a57600080fd5b50610311600a5481565b61027f6105923660046127e2565b610f09565b3480156105a357600080fd5b5061027f61104c565b3480156105b857600080fd5b5061027f6105c736600461266d565b611085565b3480156105d857600080fd5b506102966105e73660046127e2565b6110bd565b3480156105f857600080fd5b506103116106073660046125e3565b600c6020526000908152604090205481565b34801561062557600080fd5b5061027f6106343660046127fb565b611198565b34801561064557600080fd5b5061024a6106543660046125fe565b6001600160a01b03918216600090815260066020908152604080832093909416825291909152205460ff1690565b34801561068e57600080fd5b506010546102c39061010090046001600160a01b031681565b61027f6106b536600461281d565b6111cd565b3480156106c657600080fd5b5061027f6106d53660046125e3565b611614565b3480156106e657600080fd5b5061027f6106f53660046127fb565b6116ac565b60006001600160e01b031982166380ac58cd60e01b148061072b57506001600160e01b03198216635b5e139f60e01b145b8061074657506301ffc9a760e01b6001600160e01b03198316145b92915050565b6000546001600160a01b0316331461077f5760405162461bcd60e51b815260040161077690612a9d565b60405180910390fd5b601080546001600160a01b0390921661010002610100600160a81b0319909216919091179055565b6060600180546107b690612c01565b80601f01602080910402602001604051908101604052809291908181526020018280546107e290612c01565b801561082f5780601f106108045761010080835404028352916020019161082f565b820191906000526020600020905b81548152906001019060200180831161081257829003601f168201915b5050505050905090565b6000818152600360205260408120546001600160a01b03166108b25760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610776565b506000908152600560205260409020546001600160a01b031690565b60006108d982610b91565b9050806001600160a01b0316836001600160a01b031614156109475760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610776565b336001600160a01b038216148061096357506109638133610654565b6109d55760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610776565b6109df83836116e1565b505050565b6109ee338261174f565b610a0a5760405162461bcd60e51b815260040161077690612aff565b6109df838383611846565b60006001600160a01b038316610a2a57600080fd5b610a3383610d4e565b8210610a795760405162461bcd60e51b81526020600482015260156024820152744552433732313a206f7574206f6620626f756e647360581b6044820152606401610776565b600060015b600e5461ffff168111610ade576000818152600360205260409020546001600160a01b0386811691161415610abb57610ab8600183612b50565b91505b83821115610acc5791506107469050565b80610ad681612c58565b915050610a7e565b5060405162461bcd60e51b815260206004820152602560248201527f756e61626c6520746f2067657420746f6b656e206f66206f776e6572206279206044820152640d2dcc8caf60db1b6064820152608401610776565b6109df83838360405180602001604052806000815250611085565b6000546001600160a01b03163314610b7a5760405162461bcd60e51b815260040161077690612a9d565b8051610b8d90600f906020840190612491565b5050565b6000818152600360205260408120546001600160a01b0316806107465760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401610776565b600f8054610c1590612c01565b80601f0160208091040260200160405190810160405280929190818152602001828054610c4190612c01565b8015610c8e5780601f10610c6357610100808354040283529160200191610c8e565b820191906000526020600020905b815481529060010190602001808311610c7157829003601f168201915b505050505081565b600e5460609060009061ffff1667ffffffffffffffff811115610cbb57610cbb612d00565b604051908082528060200260200182016040528015610ce4578160200160208202803683370190505b50905060005b600e5461ffff16811015610d48576000818152600360205260409020546001600160a01b031615610d36576001828281518110610d2957610d29612cea565b6020026020010181815250505b80610d4081612c58565b915050610cea565b50919050565b60006001600160a01b038216610db95760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401610776565b506001600160a01b031660009081526004602052604090205490565b6000546001600160a01b03163314610dff5760405162461bcd60e51b815260040161077690612a9d565b610e0960006119e6565b565b6011546040516001600160a01b03909116904780156108fc02916000818181858888f15050505050565b6060600280546107b690612c01565b6001600160a01b038216331415610e9d5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610776565b3360008181526006602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b60105460ff1615610f2c5760405162461bcd60e51b815260040161077690612a56565b600954421015610f735760405162461bcd60e51b815260206004820152601260248201527129b0b632903430b9903737ba103132b3bab760711b6044820152606401610776565b600a54610f809082612b7c565b341015610f9f5760405162461bcd60e51b815260040161077690612ad2565b336000908152600c6020526040902054600290610fbc9083612b50565b111561101a5760405162461bcd60e51b815260206004820152602760248201527f43616e6e6f74207075726368617365206d6f7265207468616e203220706572206044820152666164647265737360c81b6064820152608401610776565b336000908152600c602052604081208054839290611039908490612b50565b9091555061104990503382611a36565b50565b6000546001600160a01b031633146110765760405162461bcd60e51b815260040161077690612a9d565b6010805460ff19166001179055565b61108f338361174f565b6110ab5760405162461bcd60e51b815260040161077690612aff565b6110b784848484611d8b565b50505050565b6000818152600360205260409020546060906001600160a01b031661113c5760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b6064820152608401610776565b6000600f805461114b90612c01565b9050116111675760405180602001604052806000815250610746565b600f61117283611da2565b6040516020016111839291906128c9565b60405160208183030381529060405292915050565b6000546001600160a01b031633146111c25760405162461bcd60e51b815260040161077690612a9d565b600891909155600955565b60105460ff16156111f05760405162461bcd60e51b815260040161077690612a56565b60028411156112385760405162461bcd60e51b815260206004820152601460248201527324b73b30b634b21026b2b6b132b9102a3cb8329760611b6044820152606401610776565b83600114156112d6576008544210156112a55760405162461bcd60e51b815260206004820152602960248201527f467269656e647320616e642046616d696c792050726553616c6520686173206e6044820152686f7420626567756e2160b81b6064820152608401610776565b600b546112b29084612b7c565b3410156112d15760405162461bcd60e51b815260040161077690612ad2565b61135d565b836002141561135d576008544210156113315760405162461bcd60e51b815260206004820181905260248201527f436f6d6d756e6974792050726553616c6520686173206e6f7420626567756e216044820152606401610776565b600a5461133e9084612b7c565b34101561135d5760405162461bcd60e51b815260040161077690612ad2565b336000908152600c6020526040902054600a9061137b908590612b50565b11156113bc5760405162461bcd60e51b815260206004820152601060248201526f2a37b79036b0b73c9031b630b4b6b99760811b6044820152606401610776565b336000908152600c602052604090205482906113d9908590612b50565b111561141a5760405162461bcd60e51b815260206004820152601060248201526f20b63932b0b23c9031b630b4b6b2b21760811b6044820152606401610776565b336000908152600c602052604081208054859290611439908490612b50565b9091555050604080517f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f60208201527fd646861a7e04e27f79036a091ca29d2f6bc905fd491ac4498325ef902ab434b9918101919091527fc89efdaa54c0f20c7adf612882df0950f5a951637e0307cdcb4c672f298b8bc660608201526001608082015273cccccccccccccccccccccccccccccccccccccccc60a082015260009060c00160408051601f1981840301815282825280516020918201207f0929d89f648f0dce44e505f9ddcb69fd13ade490d7c7db40009b921375f434679184019190915290820188905260608201879052608082018590523360a08301529060c0016040516020818303038152906040528051906020012060405160200161157892919061190160f01b81526002810192909252602282015260420190565b604051602081830303815290604052805190602001209050600061159c8284611ea0565b6010549091506001600160a01b0380831661010090920416146116015760405162461bcd60e51b815260206004820152601760248201527f496e76616c6964204d657373616765205369676e65722e0000000000000000006044820152606401610776565b61160b3386611a36565b50505050505050565b6000546001600160a01b0316331461163e5760405162461bcd60e51b815260040161077690612a9d565b6001600160a01b0381166116a35760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610776565b611049816119e6565b6000546001600160a01b031633146116d65760405162461bcd60e51b815260040161077690612a9d565b600a91909155600b55565b600081815260056020526040902080546001600160a01b0319166001600160a01b038416908117909155819061171682610b91565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000818152600360205260408120546001600160a01b03166117c85760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610776565b60006117d383610b91565b9050806001600160a01b0316846001600160a01b0316148061180e5750836001600160a01b031661180384610839565b6001600160a01b0316145b8061183e57506001600160a01b0380821660009081526006602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b031661185982610b91565b6001600160a01b0316146118c15760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b6064820152608401610776565b6001600160a01b0382166119235760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610776565b61192e6000826116e1565b6001600160a01b0383166000908152600460205260408120805460019290611957908490612bbe565b90915550506001600160a01b0382166000908152600460205260408120805460019290611985908490612b50565b909155505060008181526003602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6001600160a01b038216611a8c5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610776565b600e5460075461ffff91821691611aa591908416612b50565b1115611aec5760405162461bcd60e51b8152602060048201526016602482015275139bdd08195b9bdd59da081d1bdad95b9cc81b19599d60521b6044820152606401610776565b600754600061ffff831667ffffffffffffffff811115611b0e57611b0e612d00565b604051908082528060200260200182016040528015611b37578160200160208202803683370190505b50905060005b8361ffff16811015611b9357611b5283611ec4565b61ffff16828281518110611b6857611b68612cea565b602090810291909101015282611b7d81612c36565b9350508080611b8b90612c58565b915050611b3d565b5060005b8361ffff16811015611ce857611bdd828281518110611bb857611bb8612cea565b60200260200101516000908152600360205260409020546001600160a01b0316151590565b15611c2a5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610776565b8460036000848481518110611c4157611c41612cea565b6020026020010151815260200190815260200160002060006101000a8154816001600160a01b0302191690836001600160a01b03160217905550818181518110611c8d57611c8d612cea565b6020026020010151856001600160a01b031660006001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a480611ce081612c58565b915050611b97565b506001600160a01b0384166000908152600460205260408120805461ffff86169290611d15908490612b50565b925050819055508261ffff1660076000828254611d329190612b50565b92505081905550611d6f60008583600081518110611d5257611d52612cea565b602002602001015160405180602001604052806000815250611fbd565b6110b75760405162461bcd60e51b815260040161077690612a04565b611d96848484611846565b611d6f84848484611fbd565b606081611dc65750506040805180820190915260018152600360fc1b602082015290565b8160005b8115611df05780611dda81612c58565b9150611de99050600a83612b68565b9150611dca565b60008167ffffffffffffffff811115611e0b57611e0b612d00565b6040519080825280601f01601f191660200182016040528015611e35576020820181803683370190505b5090505b841561183e57611e4a600183612bbe565b9150611e57600a86612c94565b611e62906030612b50565b60f81b818381518110611e7757611e77612cea565b60200101906001600160f81b031916908160001a905350611e99600a86612b68565b9450611e39565b6000806000611eaf85856120ca565b91509150611ebc8161213a565b509392505050565b600e546000908190611edb90849061ffff16612b9b565b90506000611ee982856122f5565b61ffff8082166000908152600d60205260409020549192501680611f0a5750805b600d6000611f19600186612b9b565b61ffff90811682526020820192909252604001600020541615611f8457600d6000611f45600186612b9b565b61ffff908116825260208083019390935260409182016000908120548683168252600d90945291909120805461ffff1916929091169182179055611fb4565b611f8f600184612b9b565b61ffff8381166000908152600d60205260409020805461ffff19169183169190911790555b50949350505050565b60006001600160a01b0384163b156120bf57604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290612001903390899088908890600401612970565b602060405180830381600087803b15801561201b57600080fd5b505af192505050801561204b575060408051601f3d908101601f1916820190925261204891810190612758565b60015b6120a5573d808015612079576040519150601f19603f3d011682016040523d82523d6000602084013e61207e565b606091505b50805161209d5760405162461bcd60e51b815260040161077690612a04565b805181602001fd5b6001600160e01b031916630a85bd0160e11b14905061183e565b506001949350505050565b6000808251604114156121015760208301516040840151606085015160001a6120f587828585612375565b94509450505050612133565b82516040141561212b5760208301516040840151612120868383612462565b935093505050612133565b506000905060025b9250929050565b600081600481111561214e5761214e612cd4565b14156121575750565b600181600481111561216b5761216b612cd4565b14156121b95760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152606401610776565b60028160048111156121cd576121cd612cd4565b141561221b5760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152606401610776565b600381600481111561222f5761222f612cd4565b14156122885760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b6064820152608401610776565b600481600481111561229c5761229c612cd4565b14156110495760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b6064820152608401610776565b60008082612304600143612bbe565b60405160f09290921b6001600160f01b031916602083015240602282015241606090811b6bffffffffffffffffffffffff1990811660428401524460568401523390911b166076820152608a0160408051601f198184030181529190528051602090910120905061183e8482612c73565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08311156123ac5750600090506003612459565b8460ff16601b141580156123c457508460ff16601c14155b156123d55750600090506004612459565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015612429573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b03811661245257600060019250925050612459565b9150600090505b94509492505050565b6000806001600160ff1b03831660ff84901c601b0161248387828885612375565b935093505050935093915050565b82805461249d90612c01565b90600052602060002090601f0160209004810192826124bf5760008555612505565b82601f106124d857805160ff1916838001178555612505565b82800160010185558215612505579182015b828111156125055782518255916020019190600101906124ea565b50612511929150612515565b5090565b5b808211156125115760008155600101612516565b600067ffffffffffffffff8084111561254557612545612d00565b604051601f8501601f19908116603f0116810190828211818310171561256d5761256d612d00565b8160405280935085815286868601111561258657600080fd5b858560208301376000602087830101525050509392505050565b80356001600160a01b03811681146125b757600080fd5b919050565b600082601f8301126125cd57600080fd5b6125dc8383356020850161252a565b9392505050565b6000602082840312156125f557600080fd5b6125dc826125a0565b6000806040838503121561261157600080fd5b61261a836125a0565b9150612628602084016125a0565b90509250929050565b60008060006060848603121561264657600080fd5b61264f846125a0565b925061265d602085016125a0565b9150604084013590509250925092565b6000806000806080858703121561268357600080fd5b61268c856125a0565b935061269a602086016125a0565b925060408501359150606085013567ffffffffffffffff8111156126bd57600080fd5b6126c9878288016125bc565b91505092959194509250565b600080604083850312156126e857600080fd5b6126f1836125a0565b91506020830135801515811461270657600080fd5b809150509250929050565b6000806040838503121561272457600080fd5b61272d836125a0565b946020939093013593505050565b60006020828403121561274d57600080fd5b81356125dc81612d16565b60006020828403121561276a57600080fd5b81516125dc81612d16565b60006020828403121561278757600080fd5b813567ffffffffffffffff81111561279e57600080fd5b8201601f810184136127af57600080fd5b61183e8482356020840161252a565b6000602082840312156127d057600080fd5b813561ffff811681146125dc57600080fd5b6000602082840312156127f457600080fd5b5035919050565b6000806040838503121561280e57600080fd5b50508035926020909101359150565b600080600080600060a0868803121561283557600080fd5b85359450602086013593506040860135925060608601359150608086013567ffffffffffffffff81111561286857600080fd5b612874888289016125bc565b9150509295509295909350565b60008151808452612899816020860160208601612bd5565b601f01601f19169290920160200192915050565b600081516128bf818560208601612bd5565b9290920192915050565b600080845481600182811c9150808316806128e557607f831692505b602080841082141561290557634e487b7160e01b86526022600452602486fd5b818015612919576001811461292a57612957565b60ff19861689528489019650612957565b60008b81526020902060005b8681101561294f5781548b820152908501908301612936565b505084890196505b50505050505061296781856128ad565b95945050505050565b6001600160a01b03858116825284166020820152604081018390526080606082018190526000906129a390830184612881565b9695505050505050565b6020808252825182820181905260009190848201906040850190845b818110156129e5578351835292840192918401916001016129c9565b50909695505050505050565b6020815260006125dc6020830184612881565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b60208082526027908201527f546869732066756e6374696f6e2063616e206e6f742062652063616c6c656420604082015266616e796d6f726560c81b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b602080825260139082015272139bdd08195b9bdd59da08115512081cd95b9d606a1b604082015260600190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b60008219821115612b6357612b63612ca8565b500190565b600082612b7757612b77612cbe565b500490565b6000816000190483118215151615612b9657612b96612ca8565b500290565b600061ffff83811690831681811015612bb657612bb6612ca8565b039392505050565b600082821015612bd057612bd0612ca8565b500390565b60005b83811015612bf0578181015183820152602001612bd8565b838111156110b75750506000910152565b600181811c90821680612c1557607f821691505b60208210811415610d4857634e487b7160e01b600052602260045260246000fd5b600061ffff80831681811415612c4e57612c4e612ca8565b6001019392505050565b6000600019821415612c6c57612c6c612ca8565b5060010190565b600061ffff80841680612c8857612c88612cbe565b92169190910692915050565b600082612ca357612ca3612cbe565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052602160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160e01b03198116811461104957600080fdfea26469706673582212203d22687ca3887c33a345c66f1cc1de3a5f1ba80c22e7ab1afe6766da2411c67c64736f6c63430008060033

Block Transaction Difficulty Gas Used Reward
Block Uncle Number Difficulty Gas Used Reward
Loading
Loading
Make sure to use the "Vote Down" button for any spammy posts, and the "Vote Up" for interesting conversations.

A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.