ETH Price: $3,361.30 (-0.66%)
Gas: 1 Gwei

Token

Meta Wizards (MWIZ)
 

Overview

Max Total Supply

1,758 MWIZ

Holders

674

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Filtered by Token Holder
illuminaticongo.eth
Balance
1 MWIZ
0x857D5884FC42CEa646bD62Cc84F806aEB9a2AE6F
Loading...
Loading
Loading...
Loading
Loading...
Loading

OVERVIEW

Meta Wizards - a competitive play-to-earn video game based on blockchain technology. Owning a Meta Wizard provides you access to a fully functional in-game Wizard NFT.

# Exchange Pair Price  24H Volume % Volume

Contract Source Code Verified (Exact Match)

Contract Name:
MetaWizards

Compiler Version
v0.8.10+commit.fc410830

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 12 : MetaWizards.sol
/* SPDX-License-Identifier: MIT



                    [][][][][][][][]  [][][][]  [][][][][][]   [[][][][]]
                    [][][][][][][][]  [][][][]  [][][][][][]  [][][][][][]
                    [][]  [][]  [][]  [][]          [][]      [][]    [][]
                    [][]  [][]  [][]  [][][][]      [][]      [][]    [][]
                    [][]  [][]  [][]  [][][][]      [][]      [][][][][][]
                    [][]        [][]  [][]          [][]      [][][][][][]
                    [][]        [][]  [][][][]      [][]      [][]    [][]
                    [][]        [][]  [][][][]      [][]      [][]    [][]


[][]        [][]  [][][][]  [][][][][][]   [[][][][]]   [][][][][]]   [][][][]]      [][][][][][]
[][]        [][]  [][][][]  [][][][][][]  [][][][][][]  [][][][][][]  [][][][][]    [][]    [][]
[][]        [][]    [][]           [][]   [][]    [][]  [][]    [][]  [][]   [][]   [][]        
[][]  [][]  [][]    [][]         [][]     [][]    [][]  [][]   [][]   [][]    [][]  [][][][][][]
[][]  [][]  [][]    [][]       [][]       [][][][][][]  [][][][][]    [][]    [][]  [][][][][][]
[][]  [][]  [][]    [][]     [][]         [][][][][][]  [][][][][]    [][]   [][]           [][]
[][][][][][][][]  [][][][]  [][][][][][]  [][]    [][]  [][]   [][]   [][][][][]    [][]    [][]
[][][][][][][][]  [][][][]  [][][][][][]  [][]    [][]  [][]    [][]  [][][][]]    [][][][][][]



* Generated by Cyberscape Labs and Adaptia Studio
* Email [email protected] for your NFT launch needs


*/



pragma solidity ^0.8.10;

import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/Strings.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "erc721a/contracts/ERC721A.sol";


/*//////////////////////////////////////
            CUSTOM ERRORS
//////////////////////////////////////*/
/// @notice Thrown when completing transaction will exceed collection supply
error ExceededMintSupply();
/// @notice Thrown when transaction sender is not on whitelist
error NotOnMintList();
/// @notice Thrown when the attempted sale is not actve
error SaleNotActive();
/// @notice Thrown when the message value is less than the required amount
error ValueTooLow();
/// @notice Thrown when the amount minted exceeds max allowed
error MintingTooMany();
/// @notice Thrown when the input address is 0
error ZeroAddress();
/// @notice Thrown when input data does not equal what was required
error InvalidData();



/**
    @title Meta Wizards NFT
    @author @0x_digitalnomad with Cyberscape Labs
*/

contract MetaWizards is ERC721A, Ownable, ReentrancyGuard {

    using Strings for uint256;

    /*//////////////////////////////////////
                STATE VARIABLES
    //////////////////////////////////////*/
    enum MintStatus {
        CLOSED,
        PRESALE,
        PUBLIC,
        SOLDOUT
    }
    /// Active mint phase status
    MintStatus public mintStatus = MintStatus.CLOSED;

    /// Maximum number of NFTs that can exist
    uint16 public collectionSize;
    /// Maximum number that can be minted in public and presales
    uint16 public maxAvailableSupply;
    /// Amont of collection size reserved for marketing
    uint16 public reserveSupply;
    /// Amount that has been minted for marketing
    uint16 public devMintCount;
    /// Maximum that can be minted per wallet
    uint16 public maxWallet = 2;
    // Whether the individual NFTs have been revealed
    bool public revealed = false;
    uint256 public presalePrice = 0.17 ether;
    uint256 public salePrice = 0.19 ether;
    uint32 private mintData;
    string private baseURI;
    string private unrevealedURI;

    mapping(address => bool) private mintList;


    /*//////////////////////////////////////
                EVENTS
    //////////////////////////////////////*/
    event ChangeBaseURI(string _baseURI);
    event UpdateSaleState(string _sale);
    event Mint(address _minter, uint256 _amount, string _type);


    /*//////////////////////////////////////
                CONSTRUCTOR
    //////////////////////////////////////*/
    constructor(uint16 collectionSize_, uint16 reserveSupply_, uint32 mintData_) ERC721A("Meta Wizards", "MWIZ") {
        collectionSize = collectionSize_;
        reserveSupply = reserveSupply_;
        mintData = mintData_;

        maxAvailableSupply = collectionSize - reserveSupply;
    }


    /*//////////////////////////////////////
                MODIFIERS
    //////////////////////////////////////*/
    modifier callerIsUser() {
        require(tx.origin == msg.sender, "Caller is another contract");
        _;
    }


    /*//////////////////////////////////////
                MINTING FUNCTIONS
    //////////////////////////////////////*/

    /**
    Dev mint function to reserve a supply for giveaways, collaborations, and marketing
        @param _address The address to mint to
        @param _amount The amount to mint
    */
    function devMint(address _address, uint16 _amount)
        external
        onlyOwner
    {
        if (_address == address(0)) revert ZeroAddress();
        if (_amount + devMintCount > reserveSupply) revert ExceededMintSupply();

        _safeMint(_address, _amount);
        devMintCount += _amount;
        emit Mint(_address, _amount, "Dev");
    }

    /**
        Public and presale minting function
        @param _amount The amount to mint
        @param _data Private data required to mint
    */
    function mint (uint16 _amount, uint32 _data)
        external
        payable
        callerIsUser
        nonReentrant
    {
        if (mintStatus != MintStatus.PRESALE && mintStatus != MintStatus.PUBLIC) revert SaleNotActive();
        if (_data != mintData) revert InvalidData();
        if (_addressData[msg.sender].balance + _amount > maxWallet) revert MintingTooMany();
        if (_amount + totalSupply() > maxAvailableSupply) revert ExceededMintSupply();

        if (mintStatus == MintStatus.PRESALE) {
            if (!mintList[msg.sender]) revert NotOnMintList();
            if (msg.value != presalePrice * _amount) revert ValueTooLow();

            _safeMint(msg.sender, _amount);
            emit Mint(msg.sender, _amount, "Presale");
        } else if (mintStatus == MintStatus.PUBLIC) {
            if (msg.value != salePrice * _amount) revert ValueTooLow();

            _safeMint(msg.sender, _amount);
            emit Mint(msg.sender, _amount, "Public");
        }
    }

    
    /*//////////////////////////////////////
                SETTERS
    //////////////////////////////////////*/
    
    /**
        Update the pre-reveal URI for all tokens
        @param _unrevealedURI The new URI for all tokens (pre-reveal)
    */
    function setUnrevealedURI(string calldata _unrevealedURI)
        external
        onlyOwner
    {
        unrevealedURI = _unrevealedURI;
    }

    /**
        Update the revealed base URI for tokens
        @param _tokenBaseURI The new base URI for tokens (post-reveal)
    */
    function setBaseURI(string calldata _tokenBaseURI)
        external
        onlyOwner
    {
        baseURI = _tokenBaseURI;
        emit ChangeBaseURI(_tokenBaseURI);
    }

    /**
        Update the price for the public sale or presale.
        @param _saleType Either 0 for public sale or 1 for presale
        @param _price The new price in gwei
    */
    function setPrice(uint8 _saleType, uint256 _price)
        external
        onlyOwner
    {
        if (_saleType == 0) {           // 0 = Presale
            presalePrice = _price;
        } else if (_saleType == 1) {    // 1 = Public Sale
            salePrice = _price;
        } else {
            revert InvalidData();
        }
    }

    /**
        Update the private mint data
        @param _data New data for minting
    */
    function setMintData(uint32 _data)
        external
        onlyOwner
    {
        mintData = _data;
    }

    /**
        Update the maximum available per wallet
        @param _max New max amount of mints per wallet
    */
    function setMaxWallet(uint16 _max)
        external
        onlyOwner
    {
        maxWallet = _max;
    }


    /*//////////////////////////////////////
                GETTERS
    //////////////////////////////////////*/ 
    
    /**
        Returns the complete URI for a token
        @return URI The complete metadata URI
    */
    function tokenURI(uint256 tokenId)
        public
        view
        virtual
        override
        returns (string memory)
    {
        require(_exists(tokenId), "URI query for nonexistent token");
        
        if (revealed == false) {
            return unrevealedURI;
        } else {
            return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString(), '.json')) : '';
        }
    }

    /**
        Retrieve the currently active mint phase
        @return status A string indicating the active mint phase
    */
    function getMintStatus()
        external
        view
        returns(string memory)
    {
        if (mintStatus == MintStatus.CLOSED) {
            return "Closed";
        } else if (mintStatus == MintStatus.PRESALE){
            return "Presale";
        } else if (mintStatus == MintStatus.PUBLIC) {
            return "Public Sale";
        } else { //mintStatus == MintStatus.SoldOut
            return "Sold Out";
        }
    }

    /**
        Determine whether an address is on the mint list and how many mints remain. (Non-whitelisted addresses will return 0)
        @param _addr The address to check
        @return isWhitelisted The amount of NFTs the address can still mint
    */
    function getMintList(address _addr)
        external
        view
        returns(bool)
    {
        return mintList[_addr];
    }

    /*//////////////////////////////////////
                MISC
    //////////////////////////////////////*/

    /**
        Add an array of addresses to the mint list
        @param _addr An array of addresses to add
    */
    function addToMintList(address[] calldata _addr)
        external
        onlyOwner
    {
        for (uint16 i = 0; i < _addr.length; i++) {
            if (_addr[i] == address(0)) revert ZeroAddress();
            
            mintList[_addr[i]] = true;
        }
    }

    /**
        Remove an array of addresses from the mint list
        @param _addr An array of addresses to remove
    */
    function removeFromMintList(address[] calldata _addr)
        external
        onlyOwner
    {
        for (uint i = 0; i < _addr.length; i++) {
            if (_addr[i] == address(0)) revert ZeroAddress();
            
            mintList[_addr[i]] = false;
        }
    }
    
    /**
        Reveal or unreveal the images for the individual NFTs
        @param _reveal 'true' to reveal 'false' to unreveal
    */
    function reveal(bool _reveal) external onlyOwner {
        revealed = _reveal;
    }

    /**
        Close any active sale, or set mintStatus to 'sold out' if total supply == collection size
    */
    function closeSale() external onlyOwner {
        if (totalSupply() == collectionSize) {
            mintStatus = MintStatus.SOLDOUT;
            emit UpdateSaleState("Sold Out");
        } else {
            mintStatus = MintStatus.CLOSED;
            emit UpdateSaleState("Closed");
        }
    }

    /**
        Start the presale
    */
    function startPresale() external onlyOwner {
        mintStatus = MintStatus.PRESALE;
        emit UpdateSaleState("Presale");
    }

    /**
        Start the public sale
    */
    function startPublicSale() external onlyOwner {
        mintStatus = MintStatus.PUBLIC;
        emit UpdateSaleState("Public");
    }

    /**
        Withdrawal funds from the contract
    */
    function withdrawl() external onlyOwner {
        uint totalBalance = address(this).balance;
        payable(msg.sender).transfer(totalBalance);
    }
}

File 2 of 12 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (access/Ownable.sol)

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() {
        _transferOwnership(_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 {
        _transferOwnership(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");
        _transferOwnership(newOwner);
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Internal function without access restriction.
     */
    function _transferOwnership(address newOwner) internal virtual {
        address oldOwner = _owner;
        _owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }
}

File 3 of 12 : Strings.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Strings.sol)

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 4 of 12 : ReentrancyGuard.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (security/ReentrancyGuard.sol)

pragma solidity ^0.8.0;

/**
 * @dev Contract module that helps prevent reentrant calls to a function.
 *
 * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier
 * available, which can be applied to functions to make sure there are no nested
 * (reentrant) calls to them.
 *
 * Note that because there is a single `nonReentrant` guard, functions marked as
 * `nonReentrant` may not call one another. This can be worked around by making
 * those functions `private`, and then adding `external` `nonReentrant` entry
 * points to them.
 *
 * TIP: If you would like to learn more about reentrancy and alternative ways
 * to protect against it, check out our blog post
 * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul].
 */
abstract contract ReentrancyGuard {
    // Booleans are more expensive than uint256 or any type that takes up a full
    // word because each write operation emits an extra SLOAD to first read the
    // slot's contents, replace the bits taken up by the boolean, and then write
    // back. This is the compiler's defense against contract upgrades and
    // pointer aliasing, and it cannot be disabled.

    // The values being non-zero value makes deployment a bit more expensive,
    // but in exchange the refund on every call to nonReentrant will be lower in
    // amount. Since refunds are capped to a percentage of the total
    // transaction's gas, it is best to keep them low in cases like this one, to
    // increase the likelihood of the full refund coming into effect.
    uint256 private constant _NOT_ENTERED = 1;
    uint256 private constant _ENTERED = 2;

    uint256 private _status;

    constructor() {
        _status = _NOT_ENTERED;
    }

    /**
     * @dev Prevents a contract from calling itself, directly or indirectly.
     * Calling a `nonReentrant` function from another `nonReentrant`
     * function is not supported. It is possible to prevent this from happening
     * by making the `nonReentrant` function external, and making it call a
     * `private` function that does the actual work.
     */
    modifier nonReentrant() {
        // On the first call to nonReentrant, _notEntered will be true
        require(_status != _ENTERED, "ReentrancyGuard: reentrant call");

        // Any calls to nonReentrant after this point will fail
        _status = _ENTERED;

        _;

        // By storing the original value once again, a refund is triggered (see
        // https://eips.ethereum.org/EIPS/eip-2200)
        _status = _NOT_ENTERED;
    }
}

File 5 of 12 : ERC721A.sol
// SPDX-License-Identifier: MIT
// Creator: Chiru Labs

pragma solidity ^0.8.4;

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';

error ApprovalCallerNotOwnerNorApproved();
error ApprovalQueryForNonexistentToken();
error ApproveToCaller();
error ApprovalToCurrentOwner();
error BalanceQueryForZeroAddress();
error MintToZeroAddress();
error MintZeroQuantity();
error OwnerQueryForNonexistentToken();
error TransferCallerNotOwnerNorApproved();
error TransferFromIncorrectOwner();
error TransferToNonERC721ReceiverImplementer();
error TransferToZeroAddress();
error URIQueryForNonexistentToken();

/**
 * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
 * the Metadata extension. Built to optimize for lower gas during batch mints.
 *
 * Assumes serials are sequentially minted starting at _startTokenId() (defaults to 0, e.g. 0, 1, 2, 3..).
 *
 * Assumes that an owner cannot have more than 2**64 - 1 (max value of uint64) of supply.
 *
 * Assumes that the maximum token id cannot exceed 2**256 - 1 (max value of uint256).
 */
contract ERC721A is Context, ERC165, IERC721, IERC721Metadata {
    using Address for address;
    using Strings for uint256;

    // Compiler will pack this into a single 256bit word.
    struct TokenOwnership {
        // The address of the owner.
        address addr;
        // Keeps track of the start time of ownership with minimal overhead for tokenomics.
        uint64 startTimestamp;
        // Whether the token has been burned.
        bool burned;
    }

    // Compiler will pack this into a single 256bit word.
    struct AddressData {
        // Realistically, 2**64-1 is more than enough.
        uint64 balance;
        // Keeps track of mint count with minimal overhead for tokenomics.
        uint64 numberMinted;
        // Keeps track of burn count with minimal overhead for tokenomics.
        uint64 numberBurned;
        // For miscellaneous variable(s) pertaining to the address
        // (e.g. number of whitelist mint slots used).
        // If there are multiple variables, please pack them into a uint64.
        uint64 aux;
    }

    // The tokenId of the next token to be minted.
    uint256 internal _currentIndex;

    // The number of tokens burned.
    uint256 internal _burnCounter;

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

    // Mapping from token ID to ownership details
    // An empty struct value does not necessarily mean the token is unowned. See _ownershipOf implementation for details.
    mapping(uint256 => TokenOwnership) internal _ownerships;

    // Mapping owner address to address data
    mapping(address => AddressData) internal _addressData;

    // 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;

    constructor(string memory name_, string memory symbol_) {
        _name = name_;
        _symbol = symbol_;
        _currentIndex = _startTokenId();
    }

    /**
     * To change the starting tokenId, please override this function.
     */
    function _startTokenId() internal view virtual returns (uint256) {
        return 0;
    }

    /**
     * @dev Burned tokens are calculated here, use _totalMinted() if you want to count just minted tokens.
     */
    function totalSupply() public view returns (uint256) {
        // Counter underflow is impossible as _burnCounter cannot be incremented
        // more than _currentIndex - _startTokenId() times
        unchecked {
            return _currentIndex - _burnCounter - _startTokenId();
        }
    }

    /**
     * Returns the total amount of tokens minted in the contract.
     */
    function _totalMinted() internal view returns (uint256) {
        // Counter underflow is impossible as _currentIndex does not decrement,
        // and it is initialized to _startTokenId()
        unchecked {
            return _currentIndex - _startTokenId();
        }
    }

    /**
     * @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 override returns (uint256) {
        if (owner == address(0)) revert BalanceQueryForZeroAddress();
        return uint256(_addressData[owner].balance);
    }

    /**
     * Returns the number of tokens minted by `owner`.
     */
    function _numberMinted(address owner) internal view returns (uint256) {
        return uint256(_addressData[owner].numberMinted);
    }

    /**
     * Returns the number of tokens burned by or on behalf of `owner`.
     */
    function _numberBurned(address owner) internal view returns (uint256) {
        return uint256(_addressData[owner].numberBurned);
    }

    /**
     * Returns the auxillary data for `owner`. (e.g. number of whitelist mint slots used).
     */
    function _getAux(address owner) internal view returns (uint64) {
        return _addressData[owner].aux;
    }

    /**
     * Sets the auxillary data for `owner`. (e.g. number of whitelist mint slots used).
     * If there are multiple variables, please pack them into a uint64.
     */
    function _setAux(address owner, uint64 aux) internal {
        _addressData[owner].aux = aux;
    }

    /**
     * Gas spent here starts off proportional to the maximum mint batch size.
     * It gradually moves to O(1) as tokens get transferred around in the collection over time.
     */
    function _ownershipOf(uint256 tokenId) internal view returns (TokenOwnership memory) {
        uint256 curr = tokenId;

        unchecked {
            if (_startTokenId() <= curr && curr < _currentIndex) {
                TokenOwnership memory ownership = _ownerships[curr];
                if (!ownership.burned) {
                    if (ownership.addr != address(0)) {
                        return ownership;
                    }
                    // Invariant:
                    // There will always be an ownership that has an address and is not burned
                    // before an ownership that does not have an address and is not burned.
                    // Hence, curr will not underflow.
                    while (true) {
                        curr--;
                        ownership = _ownerships[curr];
                        if (ownership.addr != address(0)) {
                            return ownership;
                        }
                    }
                }
            }
        }
        revert OwnerQueryForNonexistentToken();
    }

    /**
     * @dev See {IERC721-ownerOf}.
     */
    function ownerOf(uint256 tokenId) public view override returns (address) {
        return _ownershipOf(tokenId).addr;
    }

    /**
     * @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) {
        if (!_exists(tokenId)) revert URIQueryForNonexistentToken();

        string memory baseURI = _baseURI();
        return bytes(baseURI).length != 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : '';
    }

    /**
     * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each
     * token will be the concatenation of the `baseURI` and the `tokenId`. Empty
     * by default, can be overriden in child contracts.
     */
    function _baseURI() internal view virtual returns (string memory) {
        return '';
    }

    /**
     * @dev See {IERC721-approve}.
     */
    function approve(address to, uint256 tokenId) public override {
        address owner = ERC721A.ownerOf(tokenId);
        if (to == owner) revert ApprovalToCurrentOwner();

        if (_msgSender() != owner && !isApprovedForAll(owner, _msgSender())) {
            revert ApprovalCallerNotOwnerNorApproved();
        }

        _approve(to, tokenId, owner);
    }

    /**
     * @dev See {IERC721-getApproved}.
     */
    function getApproved(uint256 tokenId) public view override returns (address) {
        if (!_exists(tokenId)) revert ApprovalQueryForNonexistentToken();

        return _tokenApprovals[tokenId];
    }

    /**
     * @dev See {IERC721-setApprovalForAll}.
     */
    function setApprovalForAll(address operator, bool approved) public virtual override {
        if (operator == _msgSender()) revert ApproveToCaller();

        _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 {
        _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 {
        _transfer(from, to, tokenId);
        if (to.isContract() && !_checkContractOnERC721Received(from, to, tokenId, _data)) {
            revert TransferToNonERC721ReceiverImplementer();
        }
    }

    /**
     * @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`),
     */
    function _exists(uint256 tokenId) internal view returns (bool) {
        return _startTokenId() <= tokenId && tokenId < _currentIndex &&
            !_ownerships[tokenId].burned;
    }

    function _safeMint(address to, uint256 quantity) internal {
        _safeMint(to, quantity, '');
    }

    /**
     * @dev Safely mints `quantity` tokens and transfers them to `to`.
     *
     * Requirements:
     *
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called for each safe transfer.
     * - `quantity` must be greater than 0.
     *
     * Emits a {Transfer} event.
     */
    function _safeMint(
        address to,
        uint256 quantity,
        bytes memory _data
    ) internal {
        _mint(to, quantity, _data, true);
    }

    /**
     * @dev Mints `quantity` tokens and transfers them to `to`.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - `quantity` must be greater than 0.
     *
     * Emits a {Transfer} event.
     */
    function _mint(
        address to,
        uint256 quantity,
        bytes memory _data,
        bool safe
    ) internal {
        uint256 startTokenId = _currentIndex;
        if (to == address(0)) revert MintToZeroAddress();
        if (quantity == 0) revert MintZeroQuantity();

        _beforeTokenTransfers(address(0), to, startTokenId, quantity);

        // Overflows are incredibly unrealistic.
        // balance or numberMinted overflow if current value of either + quantity > 1.8e19 (2**64) - 1
        // updatedIndex overflows if _currentIndex + quantity > 1.2e77 (2**256) - 1
        unchecked {
            _addressData[to].balance += uint64(quantity);
            _addressData[to].numberMinted += uint64(quantity);

            _ownerships[startTokenId].addr = to;
            _ownerships[startTokenId].startTimestamp = uint64(block.timestamp);

            uint256 updatedIndex = startTokenId;
            uint256 end = updatedIndex + quantity;

            if (safe && to.isContract()) {
                do {
                    emit Transfer(address(0), to, updatedIndex);
                    if (!_checkContractOnERC721Received(address(0), to, updatedIndex++, _data)) {
                        revert TransferToNonERC721ReceiverImplementer();
                    }
                } while (updatedIndex != end);
                // Reentrancy protection
                if (_currentIndex != startTokenId) revert();
            } else {
                do {
                    emit Transfer(address(0), to, updatedIndex++);
                } while (updatedIndex != end);
            }
            _currentIndex = updatedIndex;
        }
        _afterTokenTransfers(address(0), to, startTokenId, quantity);
    }

    /**
     * @dev Transfers `tokenId` from `from` to `to`.
     *
     * 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
    ) private {
        TokenOwnership memory prevOwnership = _ownershipOf(tokenId);

        if (prevOwnership.addr != from) revert TransferFromIncorrectOwner();

        bool isApprovedOrOwner = (_msgSender() == from ||
            isApprovedForAll(from, _msgSender()) ||
            getApproved(tokenId) == _msgSender());

        if (!isApprovedOrOwner) revert TransferCallerNotOwnerNorApproved();
        if (to == address(0)) revert TransferToZeroAddress();

        _beforeTokenTransfers(from, to, tokenId, 1);

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

        // Underflow of the sender's balance is impossible because we check for
        // ownership above and the recipient's balance can't realistically overflow.
        // Counter overflow is incredibly unrealistic as tokenId would have to be 2**256.
        unchecked {
            _addressData[from].balance -= 1;
            _addressData[to].balance += 1;

            TokenOwnership storage currSlot = _ownerships[tokenId];
            currSlot.addr = to;
            currSlot.startTimestamp = uint64(block.timestamp);

            // If the ownership slot of tokenId+1 is not explicitly set, that means the transfer initiator owns it.
            // Set the slot of tokenId+1 explicitly in storage to maintain correctness for ownerOf(tokenId+1) calls.
            uint256 nextTokenId = tokenId + 1;
            TokenOwnership storage nextSlot = _ownerships[nextTokenId];
            if (nextSlot.addr == address(0)) {
                // This will suffice for checking _exists(nextTokenId),
                // as a burned slot cannot contain the zero address.
                if (nextTokenId != _currentIndex) {
                    nextSlot.addr = from;
                    nextSlot.startTimestamp = prevOwnership.startTimestamp;
                }
            }
        }

        emit Transfer(from, to, tokenId);
        _afterTokenTransfers(from, to, tokenId, 1);
    }

    /**
     * @dev This is equivalent to _burn(tokenId, false)
     */
    function _burn(uint256 tokenId) internal virtual {
        _burn(tokenId, false);
    }

    /**
     * @dev Destroys `tokenId`.
     * The approval is cleared when the token is burned.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     *
     * Emits a {Transfer} event.
     */
    function _burn(uint256 tokenId, bool approvalCheck) internal virtual {
        TokenOwnership memory prevOwnership = _ownershipOf(tokenId);

        address from = prevOwnership.addr;

        if (approvalCheck) {
            bool isApprovedOrOwner = (_msgSender() == from ||
                isApprovedForAll(from, _msgSender()) ||
                getApproved(tokenId) == _msgSender());

            if (!isApprovedOrOwner) revert TransferCallerNotOwnerNorApproved();
        }

        _beforeTokenTransfers(from, address(0), tokenId, 1);

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

        // Underflow of the sender's balance is impossible because we check for
        // ownership above and the recipient's balance can't realistically overflow.
        // Counter overflow is incredibly unrealistic as tokenId would have to be 2**256.
        unchecked {
            AddressData storage addressData = _addressData[from];
            addressData.balance -= 1;
            addressData.numberBurned += 1;

            // Keep track of who burned the token, and the timestamp of burning.
            TokenOwnership storage currSlot = _ownerships[tokenId];
            currSlot.addr = from;
            currSlot.startTimestamp = uint64(block.timestamp);
            currSlot.burned = true;

            // If the ownership slot of tokenId+1 is not explicitly set, that means the burn initiator owns it.
            // Set the slot of tokenId+1 explicitly in storage to maintain correctness for ownerOf(tokenId+1) calls.
            uint256 nextTokenId = tokenId + 1;
            TokenOwnership storage nextSlot = _ownerships[nextTokenId];
            if (nextSlot.addr == address(0)) {
                // This will suffice for checking _exists(nextTokenId),
                // as a burned slot cannot contain the zero address.
                if (nextTokenId != _currentIndex) {
                    nextSlot.addr = from;
                    nextSlot.startTimestamp = prevOwnership.startTimestamp;
                }
            }
        }

        emit Transfer(from, address(0), tokenId);
        _afterTokenTransfers(from, address(0), tokenId, 1);

        // Overflow not possible, as _burnCounter cannot be exceed _currentIndex times.
        unchecked {
            _burnCounter++;
        }
    }

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

    /**
     * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target 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 _checkContractOnERC721Received(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) private returns (bool) {
        try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) {
            return retval == IERC721Receiver(to).onERC721Received.selector;
        } catch (bytes memory reason) {
            if (reason.length == 0) {
                revert TransferToNonERC721ReceiverImplementer();
            } else {
                assembly {
                    revert(add(32, reason), mload(reason))
                }
            }
        }
    }

    /**
     * @dev Hook that is called before a set of serially-ordered token ids are about to be transferred. This includes minting.
     * And also called before burning one token.
     *
     * startTokenId - the first token id to be transferred
     * quantity - the amount to be transferred
     *
     * 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, `tokenId` will be burned by `from`.
     * - `from` and `to` are never both zero.
     */
    function _beforeTokenTransfers(
        address from,
        address to,
        uint256 startTokenId,
        uint256 quantity
    ) internal virtual {}

    /**
     * @dev Hook that is called after a set of serially-ordered token ids have been transferred. This includes
     * minting.
     * And also called after one token has been burned.
     *
     * startTokenId - the first token id to be transferred
     * quantity - the amount to be transferred
     *
     * Calling conditions:
     *
     * - When `from` and `to` are both non-zero, `from`'s `tokenId` has been
     * transferred to `to`.
     * - When `from` is zero, `tokenId` has been minted for `to`.
     * - When `to` is zero, `tokenId` has been burned by `from`.
     * - `from` and `to` are never both zero.
     */
    function _afterTokenTransfers(
        address from,
        address to,
        uint256 startTokenId,
        uint256 quantity
    ) internal virtual {}
}

File 6 of 12 : Context.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)

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 12 : IERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721.sol)

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 8 of 12 : IERC721Receiver.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721Receiver.sol)

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 9 of 12 : IERC721Metadata.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol)

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 10 of 12 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (utils/Address.sol)

pragma solidity ^0.8.1;

/**
 * @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
     * ====
     *
     * [IMPORTANT]
     * ====
     * You shouldn't rely on `isContract` to protect against flash loan attacks!
     *
     * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets
     * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract
     * constructor.
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize/address.code.length, which returns 0
        // for contracts in construction, since the code is only stored at the end
        // of the constructor execution.

        return account.code.length > 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 11 of 12 : ERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol)

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 12 of 12 : IERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol)

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"
      ]
    }
  },
  "libraries": {}
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"uint16","name":"collectionSize_","type":"uint16"},{"internalType":"uint16","name":"reserveSupply_","type":"uint16"},{"internalType":"uint32","name":"mintData_","type":"uint32"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"ApprovalToCurrentOwner","type":"error"},{"inputs":[],"name":"ApproveToCaller","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"ExceededMintSupply","type":"error"},{"inputs":[],"name":"InvalidData","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[],"name":"MintingTooMany","type":"error"},{"inputs":[],"name":"NotOnMintList","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"SaleNotActive","type":"error"},{"inputs":[],"name":"TransferCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"TransferFromIncorrectOwner","type":"error"},{"inputs":[],"name":"TransferToNonERC721ReceiverImplementer","type":"error"},{"inputs":[],"name":"TransferToZeroAddress","type":"error"},{"inputs":[],"name":"ValueTooLow","type":"error"},{"inputs":[],"name":"ZeroAddress","type":"error"},{"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":false,"internalType":"string","name":"_baseURI","type":"string"}],"name":"ChangeBaseURI","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"_minter","type":"address"},{"indexed":false,"internalType":"uint256","name":"_amount","type":"uint256"},{"indexed":false,"internalType":"string","name":"_type","type":"string"}],"name":"Mint","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"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"_sale","type":"string"}],"name":"UpdateSaleState","type":"event"},{"inputs":[{"internalType":"address[]","name":"_addr","type":"address[]"}],"name":"addToMintList","outputs":[],"stateMutability":"nonpayable","type":"function"},{"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":"closeSale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"collectionSize","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"},{"internalType":"uint16","name":"_amount","type":"uint16"}],"name":"devMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"devMintCount","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","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":"_addr","type":"address"}],"name":"getMintList","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getMintStatus","outputs":[{"internalType":"string","name":"","type":"string"}],"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":"maxAvailableSupply","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxWallet","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint16","name":"_amount","type":"uint16"},{"internalType":"uint32","name":"_data","type":"uint32"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"mintStatus","outputs":[{"internalType":"enum MetaWizards.MintStatus","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"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":"presalePrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"_addr","type":"address[]"}],"name":"removeFromMintList","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"reserveSupply","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bool","name":"_reveal","type":"bool"}],"name":"reveal","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"revealed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","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":[],"name":"salePrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","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":"_tokenBaseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"_max","type":"uint16"}],"name":"setMaxWallet","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint32","name":"_data","type":"uint32"}],"name":"setMintData","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint8","name":"_saleType","type":"uint8"},{"internalType":"uint256","name":"_price","type":"uint256"}],"name":"setPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_unrevealedURI","type":"string"}],"name":"setUnrevealedURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"startPresale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"startPublicSale","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":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":[],"name":"withdrawl","outputs":[],"stateMutability":"nonpayable","type":"function"}]

6080604052600a805460ff62ffffff60481b011916690200000000000000000017905567025bf6196bd10000600b556702a303fe4b530000600c553480156200004757600080fd5b5060405162002cd738038062002cd78339810160408190526200006a916200027f565b604080518082018252600c81526b4d6574612057697a6172647360a01b60208083019182528351808501909452600484526326aba4ad60e11b908401528151919291620000ba91600291620001c1565b508051620000d0906003906020840190620001c1565b50506000805550620000e2336200016f565b6001600955600a805466ffff0000ffff00191661010061ffff868116820261ffff60281b1916929092176501000000000086841681029190911793849055600d805463ffffffff191663ffffffff87161790556200014a9390810483169291900416620002d5565b600a60036101000a81548161ffff021916908361ffff16021790555050505062000344565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b828054620001cf9062000307565b90600052602060002090601f016020900481019282620001f357600085556200023e565b82601f106200020e57805160ff19168380011785556200023e565b828001600101855582156200023e579182015b828111156200023e57825182559160200191906001019062000221565b506200024c92915062000250565b5090565b5b808211156200024c576000815560010162000251565b805161ffff811681146200027a57600080fd5b919050565b6000806000606084860312156200029557600080fd5b620002a08462000267565b9250620002b06020850162000267565b9150604084015163ffffffff81168114620002ca57600080fd5b809150509250925092565b600061ffff83811690831681811015620002ff57634e487b7160e01b600052601160045260246000fd5b039392505050565b600181811c908216806200031c57607f821691505b602082108114156200033e57634e487b7160e01b600052602260045260246000fd5b50919050565b61298380620003546000396000f3fe6080604052600436106102505760003560e01c80638da5cb5b11610139578063c6516cda116100b6578063ee55efee1161007a578063ee55efee14610717578063f2fde38b1461072c578063f4d4f2e81461074c578063f51f96dd1461076c578063f8b45b0514610782578063fe2c7fee146107a457600080fd5b8063c6516cda1461064e578063c87b56dd1461066e578063daf4167d1461068e578063de721f8d146106ae578063e985e9c5146106ce57600080fd5b80639a80440a116100fd5780639a80440a1461058c5780639da3f8fd146105ae578063a22cb465146105d5578063b55177dc146105f5578063b88d4fde1461062e57600080fd5b80638da5cb5b14610511578063928e3caf1461052f578063940cd05b14610542578063941ada0e1461056257806395d89b411461057757600080fd5b806323b872dd116101d25780635183022711610196578063518302271461045b57806355f804b31461047c5780636352211e1461049c5780636a00670b146104bc57806370a08231146104dc578063715018a6146104fc57600080fd5b806323b872dd146103c65780632b070324146103e65780633aedfb8b1461040657806342842e0e1461041b57806345c0f5331461043b57600080fd5b8063081812fc11610219578063081812fc1461031e578063095ea7b3146103565780630c1c972a1461037657806315f91c181461038b57806318160ddd146103ad57600080fd5b80620e7fa81461025557806301ffc9a71461027e57806303d41eb6146102ae57806304c98b2b146102e557806306fdde03146102fc575b600080fd5b34801561026157600080fd5b5061026b600b5481565b6040519081526020015b60405180910390f35b34801561028a57600080fd5b5061029e6102993660046120b6565b6107c4565b6040519015158152602001610275565b3480156102ba57600080fd5b50600a546102d29065010000000000900461ffff1681565b60405161ffff9091168152602001610275565b3480156102f157600080fd5b506102fa610816565b005b34801561030857600080fd5b5061031161087c565b6040516102759190612132565b34801561032a57600080fd5b5061033e610339366004612145565b61090e565b6040516001600160a01b039091168152602001610275565b34801561036257600080fd5b506102fa610371366004612175565b610952565b34801561038257600080fd5b506102fa6109e0565b34801561039757600080fd5b50600a546102d2906301000000900461ffff1681565b3480156103b957600080fd5b506001546000540361026b565b3480156103d257600080fd5b506102fa6103e136600461219f565b610a33565b3480156103f257600080fd5b506102fa6104013660046121db565b610a3e565b34801561041257600080fd5b506102fa610b37565b34801561042757600080fd5b506102fa61043636600461219f565b610b94565b34801561044757600080fd5b50600a546102d290610100900461ffff1681565b34801561046757600080fd5b50600a5461029e90600160581b900460ff1681565b34801561048857600080fd5b506102fa61049736600461224f565b610baf565b3480156104a857600080fd5b5061033e6104b7366004612145565b610c23565b3480156104c857600080fd5b506102fa6104d73660046122ae565b610c35565b3480156104e857600080fd5b5061026b6104f73660046122d2565b610c98565b34801561050857600080fd5b506102fa610ce6565b34801561051d57600080fd5b506008546001600160a01b031661033e565b6102fa61053d366004612313565b610d1c565b34801561054e57600080fd5b506102fa61055d366004612356565b61105e565b34801561056e57600080fd5b506103116110a6565b34801561058357600080fd5b50610311611191565b34801561059857600080fd5b50600a546102d290600160381b900461ffff1681565b3480156105ba57600080fd5b50600a546105c89060ff1681565b6040516102759190612387565b3480156105e157600080fd5b506102fa6105f03660046123af565b6111a0565b34801561060157600080fd5b5061029e6106103660046122d2565b6001600160a01b031660009081526010602052604090205460ff1690565b34801561063a57600080fd5b506102fa6106493660046123ef565b611236565b34801561065a57600080fd5b506102fa6106693660046124ca565b611287565b34801561067a57600080fd5b50610311610689366004612145565b6113cb565b34801561069a57600080fd5b506102fa6106a93660046124f4565b611526565b3480156106ba57600080fd5b506102fa6106c936600461250f565b61156c565b3480156106da57600080fd5b5061029e6106e936600461252a565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b34801561072357600080fd5b506102fa6115be565b34801561073857600080fd5b506102fa6107473660046122d2565b611690565b34801561075857600080fd5b506102fa6107673660046121db565b61172b565b34801561077857600080fd5b5061026b600c5481565b34801561078e57600080fd5b50600a546102d290600160481b900461ffff1681565b3480156107b057600080fd5b506102fa6107bf36600461224f565b611818565b60006001600160e01b031982166380ac58cd60e01b14806107f557506001600160e01b03198216635b5e139f60e01b145b8061081057506301ffc9a760e01b6001600160e01b03198316145b92915050565b6008546001600160a01b031633146108495760405162461bcd60e51b815260040161084090612554565b60405180910390fd5b600a805460ff1916600117905560405160008051602061292e8339815191529061087290612589565b60405180910390a1565b60606002805461088b906125b0565b80601f01602080910402602001604051908101604052809291908181526020018280546108b7906125b0565b80156109045780601f106108d957610100808354040283529160200191610904565b820191906000526020600020905b8154815290600101906020018083116108e757829003601f168201915b5050505050905090565b60006109198261184e565b610936576040516333d1c03960e21b815260040160405180910390fd5b506000908152600660205260409020546001600160a01b031690565b600061095d82610c23565b9050806001600160a01b0316836001600160a01b031614156109925760405163250fdee360e21b815260040160405180910390fd5b336001600160a01b038216148015906109b257506109b081336106e9565b155b156109d0576040516367d9dca160e11b815260040160405180910390fd5b6109db838383611879565b505050565b6008546001600160a01b03163314610a0a5760405162461bcd60e51b815260040161084090612554565b600a805460ff1916600217905560405160008051602061292e83398151915290610872906125eb565b6109db8383836118d5565b6008546001600160a01b03163314610a685760405162461bcd60e51b815260040161084090612554565b60005b61ffff81168211156109db576000838361ffff8416818110610a8f57610a8f612611565b9050602002016020810190610aa491906122d2565b6001600160a01b03161415610acc5760405163d92e233d60e01b815260040160405180910390fd5b60016010600085858561ffff16818110610ae857610ae8612611565b9050602002016020810190610afd91906122d2565b6001600160a01b031681526020810191909152604001600020805460ff191691151591909117905580610b2f8161263d565b915050610a6b565b6008546001600160a01b03163314610b615760405162461bcd60e51b815260040161084090612554565b6040514790339082156108fc029083906000818181858888f19350505050158015610b90573d6000803e3d6000fd5b5050565b6109db83838360405180602001604052806000815250611236565b6008546001600160a01b03163314610bd95760405162461bcd60e51b815260040161084090612554565b610be5600e8383612007565b507f8a274cdd629b9aae599b13d8bfee3ee4a15350b0386a9b64087a393db00937678282604051610c1792919061265f565b60405180910390a15050565b6000610c2e82611ac3565b5192915050565b6008546001600160a01b03163314610c5f5760405162461bcd60e51b815260040161084090612554565b60ff8216610c6d57600b5550565b8160ff1660011415610c7f57600c5550565b604051635cb045db60e01b815260040160405180910390fd5b60006001600160a01b038216610cc1576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b03166000908152600560205260409020546001600160401b031690565b6008546001600160a01b03163314610d105760405162461bcd60e51b815260040161084090612554565b610d1a6000611bdd565b565b323314610d6b5760405162461bcd60e51b815260206004820152601a60248201527f43616c6c657220697320616e6f7468657220636f6e74726163740000000000006044820152606401610840565b60026009541415610dbe5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610840565b60026009556001600a5460ff166003811115610ddc57610ddc612371565b14158015610e0157506002600a5460ff166003811115610dfe57610dfe612371565b14155b15610e1f5760405163b7b2409760e01b815260040160405180910390fd5b600d5463ffffffff828116911614610e4a57604051635cb045db60e01b815260040160405180910390fd5b600a543360009081526005602052604090205461ffff600160481b909204821691610e8191908516906001600160401b031661268e565b6001600160401b03161115610ea957604051633e29b4fb60e11b815260040160405180910390fd5b600a546301000000900461ffff16610ec46001546000540390565b610ed29061ffff85166126b9565b1115610ef15760405163192d175560e01b815260040160405180910390fd5b6001600a5460ff166003811115610f0a57610f0a612371565b1415610fbd573360009081526010602052604090205460ff16610f4057604051631aa679f960e21b815260040160405180910390fd5b8161ffff16600b54610f5291906126d1565b3414610f7157604051635321e1df60e01b815260040160405180910390fd5b610f7f338361ffff16611c2f565b7f85a66b9141978db9980f7e0ce3b468cebf4f7999f32b23091c5c03e798b1ba7a3383604051610fb09291906126f0565b60405180910390a1611055565b6002600a5460ff166003811115610fd657610fd6612371565b1415611055578161ffff16600c54610fee91906126d1565b341461100d57604051635321e1df60e01b815260040160405180910390fd5b61101b338361ffff16611c2f565b7f85a66b9141978db9980f7e0ce3b468cebf4f7999f32b23091c5c03e798b1ba7a338360405161104c929190612730565b60405180910390a15b50506001600955565b6008546001600160a01b031633146110885760405162461bcd60e51b815260040161084090612554565b600a8054911515600160581b0260ff60581b19909216919091179055565b60606000600a5460ff1660038111156110c1576110c1612371565b14156110e8575060408051808201909152600681526510db1bdcd95960d21b602082015290565b6001600a5460ff16600381111561110157611101612371565b1415611129575060408051808201909152600781526650726573616c6560c81b602082015290565b6002600a5460ff16600381111561114257611142612371565b141561116e575060408051808201909152600b81526a5075626c69632053616c6560a81b602082015290565b5060408051808201909152600881526714dbdb190813dd5d60c21b602082015290565b60606003805461088b906125b0565b6001600160a01b0382163314156111ca5760405163b06307db60e01b815260040160405180910390fd5b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6112418484846118d5565b6001600160a01b0383163b15158015611263575061126184848484611c49565b155b15611281576040516368d2bf6b60e11b815260040160405180910390fd5b50505050565b6008546001600160a01b031633146112b15760405162461bcd60e51b815260040161084090612554565b6001600160a01b0382166112d85760405163d92e233d60e01b815260040160405180910390fd5b600a5461ffff6501000000000082048116916112fd91600160381b909104168361276f565b61ffff1611156113205760405163192d175560e01b815260040160405180910390fd5b61132e828261ffff16611c2f565b80600a60078282829054906101000a900461ffff1661134d919061276f565b92506101000a81548161ffff021916908361ffff1602179055507f85a66b9141978db9980f7e0ce3b468cebf4f7999f32b23091c5c03e798b1ba7a8282604051610c179291906001600160a01b0392909216825261ffff166020820152606060408201819052600390820152622232bb60e91b608082015260a00190565b60606113d68261184e565b6114225760405162461bcd60e51b815260206004820152601f60248201527f55524920717565727920666f72206e6f6e6578697374656e7420746f6b656e006044820152606401610840565b600a54600160581b900460ff166114c557600f8054611440906125b0565b80601f016020809104026020016040519081016040528092919081815260200182805461146c906125b0565b80156114b95780601f1061148e576101008083540402835291602001916114b9565b820191906000526020600020905b81548152906001019060200180831161149c57829003601f168201915b50505050509050919050565b6000600e80546114d4906125b0565b9050116114f05760405180602001604052806000815250610810565b600e6114fb83611d32565b60405160200161150c9291906127a8565b60405160208183030381529060405292915050565b919050565b6008546001600160a01b031633146115505760405162461bcd60e51b815260040161084090612554565b600d805463ffffffff191663ffffffff92909216919091179055565b6008546001600160a01b031633146115965760405162461bcd60e51b815260040161084090612554565b600a805461ffff909216600160481b026affff00000000000000000019909216919091179055565b6008546001600160a01b031633146115e85760405162461bcd60e51b815260040161084090612554565b600a54610100900461ffff166116016001546000540390565b141561164e57600a805460ff191660031790556040805160208082526008908201526714dbdb190813dd5d60c21b9181019190915260008051602061292e83398151915290606001610872565b600a805460ff191690556040805160208082526006908201526510db1bdcd95960d21b9181019190915260008051602061292e83398151915290606001610872565b6008546001600160a01b031633146116ba5760405162461bcd60e51b815260040161084090612554565b6001600160a01b03811661171f5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610840565b61172881611bdd565b50565b6008546001600160a01b031633146117555760405162461bcd60e51b815260040161084090612554565b60005b818110156109db57600083838381811061177457611774612611565b905060200201602081019061178991906122d2565b6001600160a01b031614156117b15760405163d92e233d60e01b815260040160405180910390fd5b6000601060008585858181106117c9576117c9612611565b90506020020160208101906117de91906122d2565b6001600160a01b031681526020810191909152604001600020805460ff19169115159190911790558061181081612863565b915050611758565b6008546001600160a01b031633146118425760405162461bcd60e51b815260040161084090612554565b6109db600f8383612007565b6000805482108015610810575050600090815260046020526040902054600160e01b900460ff161590565b60008281526006602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b60006118e082611ac3565b9050836001600160a01b031681600001516001600160a01b0316146119175760405162a1148160e81b815260040160405180910390fd5b6000336001600160a01b0386161480611935575061193585336106e9565b806119505750336119458461090e565b6001600160a01b0316145b90508061197057604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b03841661199757604051633a954ecd60e21b815260040160405180910390fd5b6119a360008487611879565b6001600160a01b038581166000908152600560209081526040808320805467ffffffffffffffff198082166001600160401b0392831660001901831617909255898616808652838620805493841693831660019081018416949094179055898652600490945282852080546001600160e01b031916909417600160a01b42909216919091021783558701808452922080549193909116611a77576000548214611a7757805460208601516001600160401b0316600160a01b026001600160e01b03199091166001600160a01b038a16171781555b50505082846001600160a01b0316866001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45b5050505050565b604080516060810182526000808252602082018190529181019190915281600054811015611bc457600081815260046020908152604091829020825160608101845290546001600160a01b0381168252600160a01b81046001600160401b031692820192909252600160e01b90910460ff16151591810182905290611bc25780516001600160a01b031615611b59579392505050565b5060001901600081815260046020908152604091829020825160608101845290546001600160a01b038116808352600160a01b82046001600160401b031693830193909352600160e01b900460ff1615159281019290925215611bbd579392505050565b611b59565b505b604051636f96cda160e11b815260040160405180910390fd5b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b610b90828260405180602001604052806000815250611e2f565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a0290611c7e90339089908890889060040161287e565b6020604051808303816000875af1925050508015611cb9575060408051601f3d908101601f19168201909252611cb6918101906128bb565b60015b611d14573d808015611ce7576040519150601f19603f3d011682016040523d82523d6000602084013e611cec565b606091505b508051611d0c576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490505b949350505050565b606081611d565750506040805180820190915260018152600360fc1b602082015290565b8160005b8115611d805780611d6a81612863565b9150611d799050600a836128ee565b9150611d5a565b6000816001600160401b03811115611d9a57611d9a6123d9565b6040519080825280601f01601f191660200182016040528015611dc4576020820181803683370190505b5090505b8415611d2a57611dd9600183612902565b9150611de6600a86612919565b611df19060306126b9565b60f81b818381518110611e0657611e06612611565b60200101906001600160f81b031916908160001a905350611e28600a866128ee565b9450611dc8565b6109db83838360016000546001600160a01b038516611e6057604051622e076360e81b815260040160405180910390fd5b83611e7e5760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b038516600081815260056020908152604080832080546fffffffffffffffffffffffffffffffff1981166001600160401b038083168c0181169182176801000000000000000067ffffffffffffffff1990941690921783900481168c01811690920217909155858452600490925290912080546001600160e01b031916909217600160a01b429092169190910217905580808501838015611f2f57506001600160a01b0387163b15155b15611fb8575b60405182906001600160a01b038916906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a4611f806000888480600101955088611c49565b611f9d576040516368d2bf6b60e11b815260040160405180910390fd5b80821415611f35578260005414611fb357600080fd5b611ffe565b5b6040516001830192906001600160a01b038916906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a480821415611fb9575b50600055611abc565b828054612013906125b0565b90600052602060002090601f016020900481019282612035576000855561207b565b82601f1061204e5782800160ff1982351617855561207b565b8280016001018555821561207b579182015b8281111561207b578235825591602001919060010190612060565b5061208792915061208b565b5090565b5b80821115612087576000815560010161208c565b6001600160e01b03198116811461172857600080fd5b6000602082840312156120c857600080fd5b81356120d3816120a0565b9392505050565b60005b838110156120f55781810151838201526020016120dd565b838111156112815750506000910152565b6000815180845261211e8160208601602086016120da565b601f01601f19169290920160200192915050565b6020815260006120d36020830184612106565b60006020828403121561215757600080fd5b5035919050565b80356001600160a01b038116811461152157600080fd5b6000806040838503121561218857600080fd5b6121918361215e565b946020939093013593505050565b6000806000606084860312156121b457600080fd5b6121bd8461215e565b92506121cb6020850161215e565b9150604084013590509250925092565b600080602083850312156121ee57600080fd5b82356001600160401b038082111561220557600080fd5b818501915085601f83011261221957600080fd5b81358181111561222857600080fd5b8660208260051b850101111561223d57600080fd5b60209290920196919550909350505050565b6000806020838503121561226257600080fd5b82356001600160401b038082111561227957600080fd5b818501915085601f83011261228d57600080fd5b81358181111561229c57600080fd5b86602082850101111561223d57600080fd5b600080604083850312156122c157600080fd5b823560ff8116811461219157600080fd5b6000602082840312156122e457600080fd5b6120d38261215e565b803561ffff8116811461152157600080fd5b803563ffffffff8116811461152157600080fd5b6000806040838503121561232657600080fd5b61232f836122ed565b915061233d602084016122ff565b90509250929050565b8035801515811461152157600080fd5b60006020828403121561236857600080fd5b6120d382612346565b634e487b7160e01b600052602160045260246000fd5b60208101600483106123a957634e487b7160e01b600052602160045260246000fd5b91905290565b600080604083850312156123c257600080fd5b6123cb8361215e565b915061233d60208401612346565b634e487b7160e01b600052604160045260246000fd5b6000806000806080858703121561240557600080fd5b61240e8561215e565b935061241c6020860161215e565b92506040850135915060608501356001600160401b038082111561243f57600080fd5b818701915087601f83011261245357600080fd5b813581811115612465576124656123d9565b604051601f8201601f19908116603f0116810190838211818310171561248d5761248d6123d9565b816040528281528a60208487010111156124a657600080fd5b82602086016020830137600060208483010152809550505050505092959194509250565b600080604083850312156124dd57600080fd5b6124e68361215e565b915061233d602084016122ed565b60006020828403121561250657600080fd5b6120d3826122ff565b60006020828403121561252157600080fd5b6120d3826122ed565b6000806040838503121561253d57600080fd5b6125468361215e565b915061233d6020840161215e565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208152600061081060208301600781526650726573616c6560c81b602082015260400190565b600181811c908216806125c457607f821691505b602082108114156125e557634e487b7160e01b600052602260045260246000fd5b50919050565b6020815260006108106020830160068152655075626c696360d01b602082015260400190565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b600061ffff8083168181141561265557612655612627565b6001019392505050565b60208152816020820152818360408301376000818301604090810191909152601f909201601f19160101919050565b60006001600160401b038083168185168083038211156126b0576126b0612627565b01949350505050565b600082198211156126cc576126cc612627565b500190565b60008160001904831182151516156126eb576126eb612627565b500290565b6001600160a01b038316815261ffff821660208201526060604082018190526007908201526650726573616c6560c81b6080820152600060a08201611d2a565b6001600160a01b038316815261ffff82166020820152606060408201819052600690820152655075626c696360d01b6080820152600060a08201611d2a565b600061ffff8083168185168083038211156126b0576126b0612627565b6000815161279e8185602086016120da565b9290920192915050565b600080845481600182811c9150808316806127c457607f831692505b60208084108214156127e457634e487b7160e01b86526022600452602486fd5b8180156127f8576001811461280957612836565b60ff19861689528489019650612836565b60008b81526020902060005b8681101561282e5781548b820152908501908301612815565b505084890196505b50505050505061285a612849828661278c565b64173539b7b760d91b815260050190565b95945050505050565b600060001982141561287757612877612627565b5060010190565b6001600160a01b03858116825284166020820152604081018390526080606082018190526000906128b190830184612106565b9695505050505050565b6000602082840312156128cd57600080fd5b81516120d3816120a0565b634e487b7160e01b600052601260045260246000fd5b6000826128fd576128fd6128d8565b500490565b60008282101561291457612914612627565b500390565b600082612928576129286128d8565b50069056fe8ec7990a32a33474d410288c3000e8ea0b63c9f104ef2e5249d0c32964fc6523a264697066735822122079d8eacc681f367a892cdd99e56e72d9819370a5c72c1a338ae8005d83b8affd64736f6c634300080a0033000000000000000000000000000000000000000000000000000000000000270f00000000000000000000000000000000000000000000000000000000000000f000000000000000000000000000000000000000000000000000000000007057e7

Deployed Bytecode

0x6080604052600436106102505760003560e01c80638da5cb5b11610139578063c6516cda116100b6578063ee55efee1161007a578063ee55efee14610717578063f2fde38b1461072c578063f4d4f2e81461074c578063f51f96dd1461076c578063f8b45b0514610782578063fe2c7fee146107a457600080fd5b8063c6516cda1461064e578063c87b56dd1461066e578063daf4167d1461068e578063de721f8d146106ae578063e985e9c5146106ce57600080fd5b80639a80440a116100fd5780639a80440a1461058c5780639da3f8fd146105ae578063a22cb465146105d5578063b55177dc146105f5578063b88d4fde1461062e57600080fd5b80638da5cb5b14610511578063928e3caf1461052f578063940cd05b14610542578063941ada0e1461056257806395d89b411461057757600080fd5b806323b872dd116101d25780635183022711610196578063518302271461045b57806355f804b31461047c5780636352211e1461049c5780636a00670b146104bc57806370a08231146104dc578063715018a6146104fc57600080fd5b806323b872dd146103c65780632b070324146103e65780633aedfb8b1461040657806342842e0e1461041b57806345c0f5331461043b57600080fd5b8063081812fc11610219578063081812fc1461031e578063095ea7b3146103565780630c1c972a1461037657806315f91c181461038b57806318160ddd146103ad57600080fd5b80620e7fa81461025557806301ffc9a71461027e57806303d41eb6146102ae57806304c98b2b146102e557806306fdde03146102fc575b600080fd5b34801561026157600080fd5b5061026b600b5481565b6040519081526020015b60405180910390f35b34801561028a57600080fd5b5061029e6102993660046120b6565b6107c4565b6040519015158152602001610275565b3480156102ba57600080fd5b50600a546102d29065010000000000900461ffff1681565b60405161ffff9091168152602001610275565b3480156102f157600080fd5b506102fa610816565b005b34801561030857600080fd5b5061031161087c565b6040516102759190612132565b34801561032a57600080fd5b5061033e610339366004612145565b61090e565b6040516001600160a01b039091168152602001610275565b34801561036257600080fd5b506102fa610371366004612175565b610952565b34801561038257600080fd5b506102fa6109e0565b34801561039757600080fd5b50600a546102d2906301000000900461ffff1681565b3480156103b957600080fd5b506001546000540361026b565b3480156103d257600080fd5b506102fa6103e136600461219f565b610a33565b3480156103f257600080fd5b506102fa6104013660046121db565b610a3e565b34801561041257600080fd5b506102fa610b37565b34801561042757600080fd5b506102fa61043636600461219f565b610b94565b34801561044757600080fd5b50600a546102d290610100900461ffff1681565b34801561046757600080fd5b50600a5461029e90600160581b900460ff1681565b34801561048857600080fd5b506102fa61049736600461224f565b610baf565b3480156104a857600080fd5b5061033e6104b7366004612145565b610c23565b3480156104c857600080fd5b506102fa6104d73660046122ae565b610c35565b3480156104e857600080fd5b5061026b6104f73660046122d2565b610c98565b34801561050857600080fd5b506102fa610ce6565b34801561051d57600080fd5b506008546001600160a01b031661033e565b6102fa61053d366004612313565b610d1c565b34801561054e57600080fd5b506102fa61055d366004612356565b61105e565b34801561056e57600080fd5b506103116110a6565b34801561058357600080fd5b50610311611191565b34801561059857600080fd5b50600a546102d290600160381b900461ffff1681565b3480156105ba57600080fd5b50600a546105c89060ff1681565b6040516102759190612387565b3480156105e157600080fd5b506102fa6105f03660046123af565b6111a0565b34801561060157600080fd5b5061029e6106103660046122d2565b6001600160a01b031660009081526010602052604090205460ff1690565b34801561063a57600080fd5b506102fa6106493660046123ef565b611236565b34801561065a57600080fd5b506102fa6106693660046124ca565b611287565b34801561067a57600080fd5b50610311610689366004612145565b6113cb565b34801561069a57600080fd5b506102fa6106a93660046124f4565b611526565b3480156106ba57600080fd5b506102fa6106c936600461250f565b61156c565b3480156106da57600080fd5b5061029e6106e936600461252a565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b34801561072357600080fd5b506102fa6115be565b34801561073857600080fd5b506102fa6107473660046122d2565b611690565b34801561075857600080fd5b506102fa6107673660046121db565b61172b565b34801561077857600080fd5b5061026b600c5481565b34801561078e57600080fd5b50600a546102d290600160481b900461ffff1681565b3480156107b057600080fd5b506102fa6107bf36600461224f565b611818565b60006001600160e01b031982166380ac58cd60e01b14806107f557506001600160e01b03198216635b5e139f60e01b145b8061081057506301ffc9a760e01b6001600160e01b03198316145b92915050565b6008546001600160a01b031633146108495760405162461bcd60e51b815260040161084090612554565b60405180910390fd5b600a805460ff1916600117905560405160008051602061292e8339815191529061087290612589565b60405180910390a1565b60606002805461088b906125b0565b80601f01602080910402602001604051908101604052809291908181526020018280546108b7906125b0565b80156109045780601f106108d957610100808354040283529160200191610904565b820191906000526020600020905b8154815290600101906020018083116108e757829003601f168201915b5050505050905090565b60006109198261184e565b610936576040516333d1c03960e21b815260040160405180910390fd5b506000908152600660205260409020546001600160a01b031690565b600061095d82610c23565b9050806001600160a01b0316836001600160a01b031614156109925760405163250fdee360e21b815260040160405180910390fd5b336001600160a01b038216148015906109b257506109b081336106e9565b155b156109d0576040516367d9dca160e11b815260040160405180910390fd5b6109db838383611879565b505050565b6008546001600160a01b03163314610a0a5760405162461bcd60e51b815260040161084090612554565b600a805460ff1916600217905560405160008051602061292e83398151915290610872906125eb565b6109db8383836118d5565b6008546001600160a01b03163314610a685760405162461bcd60e51b815260040161084090612554565b60005b61ffff81168211156109db576000838361ffff8416818110610a8f57610a8f612611565b9050602002016020810190610aa491906122d2565b6001600160a01b03161415610acc5760405163d92e233d60e01b815260040160405180910390fd5b60016010600085858561ffff16818110610ae857610ae8612611565b9050602002016020810190610afd91906122d2565b6001600160a01b031681526020810191909152604001600020805460ff191691151591909117905580610b2f8161263d565b915050610a6b565b6008546001600160a01b03163314610b615760405162461bcd60e51b815260040161084090612554565b6040514790339082156108fc029083906000818181858888f19350505050158015610b90573d6000803e3d6000fd5b5050565b6109db83838360405180602001604052806000815250611236565b6008546001600160a01b03163314610bd95760405162461bcd60e51b815260040161084090612554565b610be5600e8383612007565b507f8a274cdd629b9aae599b13d8bfee3ee4a15350b0386a9b64087a393db00937678282604051610c1792919061265f565b60405180910390a15050565b6000610c2e82611ac3565b5192915050565b6008546001600160a01b03163314610c5f5760405162461bcd60e51b815260040161084090612554565b60ff8216610c6d57600b5550565b8160ff1660011415610c7f57600c5550565b604051635cb045db60e01b815260040160405180910390fd5b60006001600160a01b038216610cc1576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b03166000908152600560205260409020546001600160401b031690565b6008546001600160a01b03163314610d105760405162461bcd60e51b815260040161084090612554565b610d1a6000611bdd565b565b323314610d6b5760405162461bcd60e51b815260206004820152601a60248201527f43616c6c657220697320616e6f7468657220636f6e74726163740000000000006044820152606401610840565b60026009541415610dbe5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610840565b60026009556001600a5460ff166003811115610ddc57610ddc612371565b14158015610e0157506002600a5460ff166003811115610dfe57610dfe612371565b14155b15610e1f5760405163b7b2409760e01b815260040160405180910390fd5b600d5463ffffffff828116911614610e4a57604051635cb045db60e01b815260040160405180910390fd5b600a543360009081526005602052604090205461ffff600160481b909204821691610e8191908516906001600160401b031661268e565b6001600160401b03161115610ea957604051633e29b4fb60e11b815260040160405180910390fd5b600a546301000000900461ffff16610ec46001546000540390565b610ed29061ffff85166126b9565b1115610ef15760405163192d175560e01b815260040160405180910390fd5b6001600a5460ff166003811115610f0a57610f0a612371565b1415610fbd573360009081526010602052604090205460ff16610f4057604051631aa679f960e21b815260040160405180910390fd5b8161ffff16600b54610f5291906126d1565b3414610f7157604051635321e1df60e01b815260040160405180910390fd5b610f7f338361ffff16611c2f565b7f85a66b9141978db9980f7e0ce3b468cebf4f7999f32b23091c5c03e798b1ba7a3383604051610fb09291906126f0565b60405180910390a1611055565b6002600a5460ff166003811115610fd657610fd6612371565b1415611055578161ffff16600c54610fee91906126d1565b341461100d57604051635321e1df60e01b815260040160405180910390fd5b61101b338361ffff16611c2f565b7f85a66b9141978db9980f7e0ce3b468cebf4f7999f32b23091c5c03e798b1ba7a338360405161104c929190612730565b60405180910390a15b50506001600955565b6008546001600160a01b031633146110885760405162461bcd60e51b815260040161084090612554565b600a8054911515600160581b0260ff60581b19909216919091179055565b60606000600a5460ff1660038111156110c1576110c1612371565b14156110e8575060408051808201909152600681526510db1bdcd95960d21b602082015290565b6001600a5460ff16600381111561110157611101612371565b1415611129575060408051808201909152600781526650726573616c6560c81b602082015290565b6002600a5460ff16600381111561114257611142612371565b141561116e575060408051808201909152600b81526a5075626c69632053616c6560a81b602082015290565b5060408051808201909152600881526714dbdb190813dd5d60c21b602082015290565b60606003805461088b906125b0565b6001600160a01b0382163314156111ca5760405163b06307db60e01b815260040160405180910390fd5b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6112418484846118d5565b6001600160a01b0383163b15158015611263575061126184848484611c49565b155b15611281576040516368d2bf6b60e11b815260040160405180910390fd5b50505050565b6008546001600160a01b031633146112b15760405162461bcd60e51b815260040161084090612554565b6001600160a01b0382166112d85760405163d92e233d60e01b815260040160405180910390fd5b600a5461ffff6501000000000082048116916112fd91600160381b909104168361276f565b61ffff1611156113205760405163192d175560e01b815260040160405180910390fd5b61132e828261ffff16611c2f565b80600a60078282829054906101000a900461ffff1661134d919061276f565b92506101000a81548161ffff021916908361ffff1602179055507f85a66b9141978db9980f7e0ce3b468cebf4f7999f32b23091c5c03e798b1ba7a8282604051610c179291906001600160a01b0392909216825261ffff166020820152606060408201819052600390820152622232bb60e91b608082015260a00190565b60606113d68261184e565b6114225760405162461bcd60e51b815260206004820152601f60248201527f55524920717565727920666f72206e6f6e6578697374656e7420746f6b656e006044820152606401610840565b600a54600160581b900460ff166114c557600f8054611440906125b0565b80601f016020809104026020016040519081016040528092919081815260200182805461146c906125b0565b80156114b95780601f1061148e576101008083540402835291602001916114b9565b820191906000526020600020905b81548152906001019060200180831161149c57829003601f168201915b50505050509050919050565b6000600e80546114d4906125b0565b9050116114f05760405180602001604052806000815250610810565b600e6114fb83611d32565b60405160200161150c9291906127a8565b60405160208183030381529060405292915050565b919050565b6008546001600160a01b031633146115505760405162461bcd60e51b815260040161084090612554565b600d805463ffffffff191663ffffffff92909216919091179055565b6008546001600160a01b031633146115965760405162461bcd60e51b815260040161084090612554565b600a805461ffff909216600160481b026affff00000000000000000019909216919091179055565b6008546001600160a01b031633146115e85760405162461bcd60e51b815260040161084090612554565b600a54610100900461ffff166116016001546000540390565b141561164e57600a805460ff191660031790556040805160208082526008908201526714dbdb190813dd5d60c21b9181019190915260008051602061292e83398151915290606001610872565b600a805460ff191690556040805160208082526006908201526510db1bdcd95960d21b9181019190915260008051602061292e83398151915290606001610872565b6008546001600160a01b031633146116ba5760405162461bcd60e51b815260040161084090612554565b6001600160a01b03811661171f5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610840565b61172881611bdd565b50565b6008546001600160a01b031633146117555760405162461bcd60e51b815260040161084090612554565b60005b818110156109db57600083838381811061177457611774612611565b905060200201602081019061178991906122d2565b6001600160a01b031614156117b15760405163d92e233d60e01b815260040160405180910390fd5b6000601060008585858181106117c9576117c9612611565b90506020020160208101906117de91906122d2565b6001600160a01b031681526020810191909152604001600020805460ff19169115159190911790558061181081612863565b915050611758565b6008546001600160a01b031633146118425760405162461bcd60e51b815260040161084090612554565b6109db600f8383612007565b6000805482108015610810575050600090815260046020526040902054600160e01b900460ff161590565b60008281526006602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b60006118e082611ac3565b9050836001600160a01b031681600001516001600160a01b0316146119175760405162a1148160e81b815260040160405180910390fd5b6000336001600160a01b0386161480611935575061193585336106e9565b806119505750336119458461090e565b6001600160a01b0316145b90508061197057604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b03841661199757604051633a954ecd60e21b815260040160405180910390fd5b6119a360008487611879565b6001600160a01b038581166000908152600560209081526040808320805467ffffffffffffffff198082166001600160401b0392831660001901831617909255898616808652838620805493841693831660019081018416949094179055898652600490945282852080546001600160e01b031916909417600160a01b42909216919091021783558701808452922080549193909116611a77576000548214611a7757805460208601516001600160401b0316600160a01b026001600160e01b03199091166001600160a01b038a16171781555b50505082846001600160a01b0316866001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45b5050505050565b604080516060810182526000808252602082018190529181019190915281600054811015611bc457600081815260046020908152604091829020825160608101845290546001600160a01b0381168252600160a01b81046001600160401b031692820192909252600160e01b90910460ff16151591810182905290611bc25780516001600160a01b031615611b59579392505050565b5060001901600081815260046020908152604091829020825160608101845290546001600160a01b038116808352600160a01b82046001600160401b031693830193909352600160e01b900460ff1615159281019290925215611bbd579392505050565b611b59565b505b604051636f96cda160e11b815260040160405180910390fd5b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b610b90828260405180602001604052806000815250611e2f565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a0290611c7e90339089908890889060040161287e565b6020604051808303816000875af1925050508015611cb9575060408051601f3d908101601f19168201909252611cb6918101906128bb565b60015b611d14573d808015611ce7576040519150601f19603f3d011682016040523d82523d6000602084013e611cec565b606091505b508051611d0c576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490505b949350505050565b606081611d565750506040805180820190915260018152600360fc1b602082015290565b8160005b8115611d805780611d6a81612863565b9150611d799050600a836128ee565b9150611d5a565b6000816001600160401b03811115611d9a57611d9a6123d9565b6040519080825280601f01601f191660200182016040528015611dc4576020820181803683370190505b5090505b8415611d2a57611dd9600183612902565b9150611de6600a86612919565b611df19060306126b9565b60f81b818381518110611e0657611e06612611565b60200101906001600160f81b031916908160001a905350611e28600a866128ee565b9450611dc8565b6109db83838360016000546001600160a01b038516611e6057604051622e076360e81b815260040160405180910390fd5b83611e7e5760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b038516600081815260056020908152604080832080546fffffffffffffffffffffffffffffffff1981166001600160401b038083168c0181169182176801000000000000000067ffffffffffffffff1990941690921783900481168c01811690920217909155858452600490925290912080546001600160e01b031916909217600160a01b429092169190910217905580808501838015611f2f57506001600160a01b0387163b15155b15611fb8575b60405182906001600160a01b038916906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a4611f806000888480600101955088611c49565b611f9d576040516368d2bf6b60e11b815260040160405180910390fd5b80821415611f35578260005414611fb357600080fd5b611ffe565b5b6040516001830192906001600160a01b038916906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a480821415611fb9575b50600055611abc565b828054612013906125b0565b90600052602060002090601f016020900481019282612035576000855561207b565b82601f1061204e5782800160ff1982351617855561207b565b8280016001018555821561207b579182015b8281111561207b578235825591602001919060010190612060565b5061208792915061208b565b5090565b5b80821115612087576000815560010161208c565b6001600160e01b03198116811461172857600080fd5b6000602082840312156120c857600080fd5b81356120d3816120a0565b9392505050565b60005b838110156120f55781810151838201526020016120dd565b838111156112815750506000910152565b6000815180845261211e8160208601602086016120da565b601f01601f19169290920160200192915050565b6020815260006120d36020830184612106565b60006020828403121561215757600080fd5b5035919050565b80356001600160a01b038116811461152157600080fd5b6000806040838503121561218857600080fd5b6121918361215e565b946020939093013593505050565b6000806000606084860312156121b457600080fd5b6121bd8461215e565b92506121cb6020850161215e565b9150604084013590509250925092565b600080602083850312156121ee57600080fd5b82356001600160401b038082111561220557600080fd5b818501915085601f83011261221957600080fd5b81358181111561222857600080fd5b8660208260051b850101111561223d57600080fd5b60209290920196919550909350505050565b6000806020838503121561226257600080fd5b82356001600160401b038082111561227957600080fd5b818501915085601f83011261228d57600080fd5b81358181111561229c57600080fd5b86602082850101111561223d57600080fd5b600080604083850312156122c157600080fd5b823560ff8116811461219157600080fd5b6000602082840312156122e457600080fd5b6120d38261215e565b803561ffff8116811461152157600080fd5b803563ffffffff8116811461152157600080fd5b6000806040838503121561232657600080fd5b61232f836122ed565b915061233d602084016122ff565b90509250929050565b8035801515811461152157600080fd5b60006020828403121561236857600080fd5b6120d382612346565b634e487b7160e01b600052602160045260246000fd5b60208101600483106123a957634e487b7160e01b600052602160045260246000fd5b91905290565b600080604083850312156123c257600080fd5b6123cb8361215e565b915061233d60208401612346565b634e487b7160e01b600052604160045260246000fd5b6000806000806080858703121561240557600080fd5b61240e8561215e565b935061241c6020860161215e565b92506040850135915060608501356001600160401b038082111561243f57600080fd5b818701915087601f83011261245357600080fd5b813581811115612465576124656123d9565b604051601f8201601f19908116603f0116810190838211818310171561248d5761248d6123d9565b816040528281528a60208487010111156124a657600080fd5b82602086016020830137600060208483010152809550505050505092959194509250565b600080604083850312156124dd57600080fd5b6124e68361215e565b915061233d602084016122ed565b60006020828403121561250657600080fd5b6120d3826122ff565b60006020828403121561252157600080fd5b6120d3826122ed565b6000806040838503121561253d57600080fd5b6125468361215e565b915061233d6020840161215e565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208152600061081060208301600781526650726573616c6560c81b602082015260400190565b600181811c908216806125c457607f821691505b602082108114156125e557634e487b7160e01b600052602260045260246000fd5b50919050565b6020815260006108106020830160068152655075626c696360d01b602082015260400190565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b600061ffff8083168181141561265557612655612627565b6001019392505050565b60208152816020820152818360408301376000818301604090810191909152601f909201601f19160101919050565b60006001600160401b038083168185168083038211156126b0576126b0612627565b01949350505050565b600082198211156126cc576126cc612627565b500190565b60008160001904831182151516156126eb576126eb612627565b500290565b6001600160a01b038316815261ffff821660208201526060604082018190526007908201526650726573616c6560c81b6080820152600060a08201611d2a565b6001600160a01b038316815261ffff82166020820152606060408201819052600690820152655075626c696360d01b6080820152600060a08201611d2a565b600061ffff8083168185168083038211156126b0576126b0612627565b6000815161279e8185602086016120da565b9290920192915050565b600080845481600182811c9150808316806127c457607f831692505b60208084108214156127e457634e487b7160e01b86526022600452602486fd5b8180156127f8576001811461280957612836565b60ff19861689528489019650612836565b60008b81526020902060005b8681101561282e5781548b820152908501908301612815565b505084890196505b50505050505061285a612849828661278c565b64173539b7b760d91b815260050190565b95945050505050565b600060001982141561287757612877612627565b5060010190565b6001600160a01b03858116825284166020820152604081018390526080606082018190526000906128b190830184612106565b9695505050505050565b6000602082840312156128cd57600080fd5b81516120d3816120a0565b634e487b7160e01b600052601260045260246000fd5b6000826128fd576128fd6128d8565b500490565b60008282101561291457612914612627565b500390565b600082612928576129286128d8565b50069056fe8ec7990a32a33474d410288c3000e8ea0b63c9f104ef2e5249d0c32964fc6523a264697066735822122079d8eacc681f367a892cdd99e56e72d9819370a5c72c1a338ae8005d83b8affd64736f6c634300080a0033

Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)

000000000000000000000000000000000000000000000000000000000000270f00000000000000000000000000000000000000000000000000000000000000f000000000000000000000000000000000000000000000000000000000007057e7

-----Decoded View---------------
Arg [0] : collectionSize_ (uint16): 9999
Arg [1] : reserveSupply_ (uint16): 240
Arg [2] : mintData_ (uint32): 7362535

-----Encoded View---------------
3 Constructor Arguments found :
Arg [0] : 000000000000000000000000000000000000000000000000000000000000270f
Arg [1] : 00000000000000000000000000000000000000000000000000000000000000f0
Arg [2] : 00000000000000000000000000000000000000000000000000000000007057e7


Loading...
Loading
Loading...
Loading
[ Download: CSV Export  ]
[ Download: CSV Export  ]

A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.