ETH Price: $2,956.22 (-1.87%)
Gas: 2 Gwei

Token

Maskies (MSK)
 

Overview

Max Total Supply

1,226 MSK

Holders

686

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Balance
1 MSK
0x8ff0b63102baad5762fe904b8c40fbef07d35874
Loading...
Loading
Loading...
Loading
Loading...
Loading

Click here to update the token information / general information
# Exchange Pair Price  24H Volume % Volume

Contract Source Code Verified (Exact Match)

Contract Name:
Maskies

Compiler Version
v0.8.13+commit.abaa5c0e

Optimization Enabled:
Yes with 999999 runs

Other Settings:
default evmVersion
File 1 of 19 : Maskies.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.13;
pragma abicoder v2;

import 'erc721psi/contracts/ERC721Psi.sol';
import '@openzeppelin/contracts/access/Ownable.sol';
import '@openzeppelin/contracts/security/ReentrancyGuard.sol';
import '@openzeppelin/contracts/security/Pausable.sol';

// Using relative paths because hardhat doesn't know about the
// libs folder defined in foundry.toml
import '../lib/Whitelisting/src/Whitelist.sol';

// Date of creation: 2022-06-03T13:02:06.207Z

contract Maskies is ERC721Psi, Pausable, Ownable, ReentrancyGuard, WhiteList {
    //--------------------------------------------------
    // Constants
    //--------------------------------------------------
    uint256 public constant MAX_TOKENS = 10000;
    uint256 public constant MAX_TOKENS_PER_WALLET = 50;
    uint256 public constant RESERVED_AMOUNT = 500;
    uint256 public constant MAX_FREE_MINTS = 5000;

    //--------------------------------------------------
    // Variables
    //--------------------------------------------------
    uint256 public maxTotalMintsThisStage = 10000;
    uint256 public maxMintBatchAmount = 50;
    uint256 public pricePerToken = 0.009 ether;
    uint256 public reservedTokensMinted = 0;
    uint256 public freeMints = 1;
    uint256 public totalFreeMintsMinted = 0;

    mapping(address => uint256) public addressMinted;

    // URI
    string public baseTokenURI = '';
    string public unrevealedURI = '';
    bool public revealed = false;

    //--------------------------------------------------
    // Events
    //--------------------------------------------------
    event Mint(address minter, uint256 amount, bytes32[] proof);
    event MintReserved(uint256 amount, address to);
    event SetMaxTotalMintsThisStage(uint256 newMax);
    event SetMaxMintBatchAmount(uint256 newLimit);
    event SetPricePerToken(uint256 newPricePerToken);
    event SetFreeMints(uint256 newFreeMints);
    event SetBaseURI();
    event SetUnrevealedURI(string newUnrevealedURI);
    event FlipReleaved(bool newState);
    event WithdrawAmount(uint256 amount);
    event WithdrawAll(uint256 amount);
    event ChangeOwner(address newOwner);

    //--------------------------------------------------
    // Constructor
    //--------------------------------------------------
    constructor() ERC721Psi('Maskies', 'MSK') {}

    //--------------------------------------------------
    // Minting
    //--------------------------------------------------
    function mint(
        address minter,
        uint256 maxMints,
        uint256 amount,
        bytes32[] memory proof
    ) external payable whenNotPaused nonReentrant {
        require(amount > 0, 'Mint amount cannot be 0');
        require(
            totalSupply() + amount <= maxTotalMintsThisStage,
            'Mint would reach max mints in this stage'
        );
        require(amount <= maxMintBatchAmount, 'Maximum batch size reached');
        require(
            totalSupply() + amount <=
                MAX_TOKENS - (RESERVED_AMOUNT - reservedTokensMinted),
            'Mint would reach maximum supply'
        );
        require(
            addressMinted[minter] + amount <= MAX_TOKENS_PER_WALLET,
            'Address would exceed balance limit'
        );

        uint256 freeMintsRemaining = 0;

        if (totalFreeMintsMinted < MAX_FREE_MINTS) {
            // Every wallet can mint {freeMints} amount of tokens
            freeMintsRemaining =
                freeMints -
                (
                    addressMinted[minter] > freeMints
                        ? freeMints
                        : addressMinted[minter]
                );

            freeMintsRemaining = amount >= freeMintsRemaining
                ? freeMintsRemaining
                : amount;

            if (totalFreeMintsMinted + freeMintsRemaining > MAX_FREE_MINTS) {
                freeMintsRemaining = MAX_FREE_MINTS - totalFreeMintsMinted;
            }

            if (freeMintsRemaining > 0) {
                totalFreeMintsMinted += amount >= freeMintsRemaining
                    ? freeMintsRemaining
                    : amount;
            }
        }

        require(
            msg.value >= pricePerToken * (amount - freeMintsRemaining),
            'Not enough ETH for transaction'
        );

        // Whitelist related
        bytes32 leaf = keccak256(abi.encode(minter, maxMints));
        require(
            !whitelistIsActive || addressMinted[minter] + amount <= maxMints,
            'Address would exceed mint limit'
        );
        require(
            !whitelistIsActive || verifyMerkleProof(proof, leaf),
            'Address not whitelisted'
        );

        // The actual mint
        addressMinted[minter] += amount;
        _safeMint(minter, amount);
        emit Mint(minter, amount, proof);
    }

    function mintReserved(uint256 amount, address to)
        external
        onlyOwner
        nonReentrant
    {
        // Amount > 0 and addres(0) checks are already done in the ERC721Psi._mint() function
        require(
            reservedTokensMinted + amount <= RESERVED_AMOUNT,
            'Would be more than reserved amount'
        );

        reservedTokensMinted += amount;
        _safeMint(to, amount);

        emit MintReserved(amount, to);
    }

    //--------------------------------------------------
    // Sale related
    //--------------------------------------------------
    function setMaxTotalMintsThisStage(uint256 newMax) external onlyOwner {
        require(newMax <= MAX_TOKENS, 'Stage max cannot exceed MAX_TOKENS');

        maxTotalMintsThisStage = newMax;
        emit SetMaxTotalMintsThisStage(maxTotalMintsThisStage);
    }

    function flipWhitelistState() external override onlyOwner {
        _flipWhitelistState();
    }

    function setMaxMintBatchAmount(uint256 newMax) external onlyOwner {
        require(newMax <= MAX_TOKENS, 'Batch max cannot exceed MAX_TOKENS');

        maxMintBatchAmount = newMax;
        emit SetMaxMintBatchAmount(maxMintBatchAmount);
    }

    function setPricePerToken(uint256 newPricePerToken) external onlyOwner {
        pricePerToken = newPricePerToken;
        emit SetPricePerToken(pricePerToken);
    }

    function setFreeMints(uint256 newFreeMints) external onlyOwner {
        freeMints = newFreeMints;
        emit SetFreeMints(newFreeMints);
    }

    //--------------------------------------------------
    // Merkle proof related
    //--------------------------------------------------
    function setMerkleRoot(bytes32 newMerkleRoot) external override onlyOwner {
        _setMerkleRoot(newMerkleRoot);
    }

    //--------------------------------------------------
    // URI related
    //--------------------------------------------------
    function _baseURI() internal view virtual override returns (string memory) {
        return baseTokenURI;
    }

    function setBaseURI(string calldata newBaseURI) external onlyOwner {
        require(bytes(newBaseURI).length > 0, 'URI cannot be empty');
        baseTokenURI = newBaseURI;
        emit SetBaseURI();
    }

    function setUnrevealedURI(string calldata newUnrevealedURI)
        external
        onlyOwner
    {
        require(bytes(newUnrevealedURI).length > 0, 'URI cannot be empty');
        unrevealedURI = newUnrevealedURI;
        emit SetUnrevealedURI(unrevealedURI);
    }

    function tokenURI(uint256 tokenId)
        public
        view
        virtual
        override
        returns (string memory)
    {
        // To avoid an overflow when adding 1
        require(tokenId < type(uint256).max);
        require(_exists(tokenId), 'URI query for nonexistent token');

        if (!revealed) {
            return unrevealedURI;
        }

        uint256 internalTokenId = tokenId + 1;

        string memory baseURI = _baseURI();
        string memory _tokenURI = bytes(baseURI).length > 0
            ? string(
                abi.encodePacked(
                    baseURI,
                    Strings.toString(internalTokenId),
                    '.json'
                )
            )
            : '';

        return _tokenURI;
    }

    function flipReleaved() external onlyOwner {
        revealed = !revealed;
        emit FlipReleaved(revealed);
    }

    //--------------------------------------------------
    // Withdrawel related
    //--------------------------------------------------
    function withdrawAmount(uint256 amount) external onlyOwner nonReentrant {
        require(amount > 0, 'Amount should be greater than 0');
        uint256 contractBalance = address(this).balance;
        require(amount <= contractBalance, 'Not enough balance in contract');

        (bool success, ) = payable(owner()).call{value: amount}('');
        require(success, 'Transfer failed');

        emit WithdrawAmount(amount);
    }

    function withdrawAll() external onlyOwner nonReentrant {
        uint256 contractBalance = address(this).balance;
        require(contractBalance > 0, 'Contract balance is 0');

        (bool success, ) = payable(owner()).call{value: contractBalance}('');
        require(success, 'Transfer failed');

        emit WithdrawAll(contractBalance);
    }

    //--------------------------------------------------
    // Owner related
    //--------------------------------------------------
    function changeOwner(address newOwner) external onlyOwner {
        require(newOwner != address(0), 'newOwner cannot be address(0)');
        require(newOwner != owner(), 'newowner cannot be current owner');
        transferOwnership(newOwner);

        emit ChangeOwner(newOwner);
    }

    //--------------------------------------------------
    // Pause related
    //--------------------------------------------------
    function pauseContract() external onlyOwner {
        _pause();
    }

    function unpauseContract() external onlyOwner {
        _unpause();
    }
}

File 2 of 19 : ERC721Psi.sol
// SPDX-License-Identifier: MIT
/**
  ______ _____   _____ ______ ___  __ _  _  _ 
 |  ____|  __ \ / ____|____  |__ \/_ | || || |
 | |__  | |__) | |        / /   ) || | \| |/ |
 |  __| |  _  /| |       / /   / / | |\_   _/ 
 | |____| | \ \| |____  / /   / /_ | |  | |   
 |______|_|  \_\\_____|/_/   |____||_|  |_|   
                                              
                                            
 */

pragma solidity ^0.8.0;

import "@openzeppelin/contracts/token/ERC721/IERC721.sol";
import "@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/IERC721Enumerable.sol";
import "@openzeppelin/contracts/utils/Context.sol";
import "@openzeppelin/contracts/utils/Strings.sol";
import "@openzeppelin/contracts/utils/introspection/ERC165.sol";
import "@openzeppelin/contracts/utils/Address.sol";
import "@openzeppelin/contracts/utils/StorageSlot.sol";
import "solidity-bits/contracts/BitMaps.sol";


contract ERC721Psi is Context, ERC165, IERC721, IERC721Metadata, IERC721Enumerable {
    using Address for address;
    using Strings for uint256;
    using BitMaps for BitMaps.BitMap;

    BitMaps.BitMap private _batchHead;

    string private _name;
    string private _symbol;

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

    mapping(uint256 => address) private _tokenApprovals;
    mapping(address => mapping(address => bool)) private _operatorApprovals;

    /**
     * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection.
     */
    constructor(string memory name_, string memory symbol_) {
        _name = name_;
        _symbol = symbol_;
    }

    /**
     * @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 ||
            interfaceId == type(IERC721Enumerable).interfaceId ||
            super.supportsInterface(interfaceId);
    }

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

        uint count;
        for( uint i; i < _minted; ++i ){
            if(_exists(i)){
                if( owner == ownerOf(i)){
                    ++count;
                }
            }
        }
        return count;
    }

    /**
     * @dev See {IERC721-ownerOf}.
     */
    function ownerOf(uint256 tokenId)
        public
        view
        virtual
        override
        returns (address)
    {
        (address owner, uint256 tokenIdBatchHead) = _ownerAndBatchHeadOf(tokenId);
        return owner;
    }

    function _ownerAndBatchHeadOf(uint256 tokenId) internal view returns (address owner, uint256 tokenIdBatchHead){
        require(_exists(tokenId), "ERC721Psi: owner query for nonexistent token");
        tokenIdBatchHead = _getBatchHead(tokenId);
        owner = _owners[tokenIdBatchHead];
    }

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

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

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

        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 virtual override {
        address owner = ownerOf(tokenId);
        require(to != owner, "ERC721Psi: approval to current owner");

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

        _approve(to, tokenId);
    }

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

        return _tokenApprovals[tokenId];
    }

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

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

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

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

        _transfer(from, to, tokenId);
    }

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

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

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

    /**
     * @dev Returns whether `tokenId` exists.
     *
     * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}.
     *
     * Tokens start existing when they are minted (`_mint`).
     */
    function _exists(uint256 tokenId) internal view virtual returns (bool) {
        return tokenId < _minted;
    }

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

    /**
     * @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) internal virtual {
        _safeMint(to, quantity, "");
    }

    
    function _safeMint(
        address to,
        uint256 quantity,
        bytes memory _data
    ) internal virtual {
        uint256 startTokenId = _minted;
        _mint(to, quantity);
        require(
            _checkOnERC721Received(address(0), to, startTokenId, quantity, _data),
            "ERC721Psi: transfer to non ERC721Receiver implementer"
        );
    }


    function _mint(
        address to,
        uint256 quantity
    ) internal virtual {
        uint256 tokenIdBatchHead = _minted;
        
        require(quantity > 0, "ERC721Psi: quantity must be greater 0");
        require(to != address(0), "ERC721Psi: mint to the zero address");
        
        _beforeTokenTransfers(address(0), to, tokenIdBatchHead, quantity);
        _minted += quantity;
        _owners[tokenIdBatchHead] = to;
        _batchHead.set(tokenIdBatchHead);
        _afterTokenTransfers(address(0), to, tokenIdBatchHead, quantity);
        
        // Emit events
        for(uint256 tokenId=tokenIdBatchHead;tokenId < tokenIdBatchHead + quantity; tokenId++){
            emit Transfer(address(0), to, tokenId);
        } 
    }


    /**
     * @dev Transfers `tokenId` from `from` to `to`.
     *  As opposed to {transferFrom}, this imposes no restrictions on msg.sender.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - `tokenId` token must be owned by `from`.
     *
     * Emits a {Transfer} event.
     */
    function _transfer(
        address from,
        address to,
        uint256 tokenId
    ) internal virtual {
        (address owner, uint256 tokenIdBatchHead) = _ownerAndBatchHeadOf(tokenId);

        require(
            owner == from,
            "ERC721Psi: transfer of token that is not own"
        );
        require(to != address(0), "ERC721Psi: transfer to the zero address");

        _beforeTokenTransfers(from, to, tokenId, 1);

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

        uint256 nextTokenId = tokenId + 1;

        if(!_batchHead.get(nextTokenId) &&  
            nextTokenId < _minted
        ) {
            _owners[nextTokenId] = from;
            _batchHead.set(nextTokenId);
        }

        _owners[tokenId] = to;
        if(tokenId != tokenIdBatchHead) {
            _batchHead.set(tokenId);
        }

        emit Transfer(from, to, tokenId);

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

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

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

    function _getBatchHead(uint256 tokenId) internal view returns (uint256 tokenIdBatchHead) {
        tokenIdBatchHead = _batchHead.scanForward(tokenId); 
    }

    /**
     * @dev See {IERC721Enumerable-totalSupply}.
     */
    function totalSupply() public view virtual override returns (uint256) {
        return _minted;
    }

    /**
     * @dev See {IERC721Enumerable-tokenByIndex}.
     */
    function tokenByIndex(uint256 index) public view virtual override returns (uint256) {
        require(index < totalSupply(), "ERC721Psi: global index out of bounds");
        
        uint count;
        for(uint i; i < _minted; i++){
            if(_exists(i)){
                if(count == index) return i;
                else count++;
            }
        }
    }

    /**
     * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}.
     */
    function tokenOfOwnerByIndex(address owner, uint256 index) public view virtual override returns (uint256 tokenId) {
        uint count;
        for(uint i; i < _minted; i++){
            if(_exists(i) && owner == ownerOf(i)){
                if(count == index) return i;
                else count++;
            }
        }

        revert("ERC721Psi: owner index out of bounds");
    }


    /**
     * @dev Hook that is called before a set of serially-ordered token ids are about to be transferred. This includes minting.
     *
     * 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`.
     */
    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.
     *
     * 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` and `to` are never both zero.
     */
    function _afterTokenTransfers(
        address from,
        address to,
        uint256 startTokenId,
        uint256 quantity
    ) internal virtual {}
}

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

pragma solidity ^0.8.0;

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

/**
 * @dev Contract module which allows children to implement an emergency stop
 * mechanism that can be triggered by an authorized account.
 *
 * This module is used through inheritance. It will make available the
 * modifiers `whenNotPaused` and `whenPaused`, which can be applied to
 * the functions of your contract. Note that they will not be pausable by
 * simply including this module, only once the modifiers are put in place.
 */
abstract contract Pausable is Context {
    /**
     * @dev Emitted when the pause is triggered by `account`.
     */
    event Paused(address account);

    /**
     * @dev Emitted when the pause is lifted by `account`.
     */
    event Unpaused(address account);

    bool private _paused;

    /**
     * @dev Initializes the contract in unpaused state.
     */
    constructor() {
        _paused = false;
    }

    /**
     * @dev Returns true if the contract is paused, and false otherwise.
     */
    function paused() public view virtual returns (bool) {
        return _paused;
    }

    /**
     * @dev Modifier to make a function callable only when the contract is not paused.
     *
     * Requirements:
     *
     * - The contract must not be paused.
     */
    modifier whenNotPaused() {
        require(!paused(), "Pausable: paused");
        _;
    }

    /**
     * @dev Modifier to make a function callable only when the contract is paused.
     *
     * Requirements:
     *
     * - The contract must be paused.
     */
    modifier whenPaused() {
        require(paused(), "Pausable: not paused");
        _;
    }

    /**
     * @dev Triggers stopped state.
     *
     * Requirements:
     *
     * - The contract must not be paused.
     */
    function _pause() internal virtual whenNotPaused {
        _paused = true;
        emit Paused(_msgSender());
    }

    /**
     * @dev Returns to normal state.
     *
     * Requirements:
     *
     * - The contract must be paused.
     */
    function _unpause() internal virtual whenPaused {
        _paused = false;
        emit Unpaused(_msgSender());
    }
}

File 6 of 19 : Whitelist.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.4;
pragma abicoder v2;

import '@openzeppelin/contracts/access/Ownable.sol';
import '@openzeppelin/contracts/utils/cryptography/MerkleProof.sol';

/**
    To use this contract all you have to do is implement the virtual funcs  
    The gist of those implementations is already done in internal funcs
    All you have to do is use these, and set the required access-control :)
 */

interface IWhiteList {
    event MerkleRootSet(bytes32 newMerkeRoot);
    event FlipWhitelistState(bool newState);

    // Virtual so you can set an onlyOwner
    function flipWhitelistState() external;

    // Be sure to lock access!
    function setMerkleRoot(bytes32 newMerkleRoot) external;

    /**
     * proof: an array of leafs (hashed with keccak256(abi.encode(<your>, <data>)))
     * leaf: the leaf to verify which is hashed using keccak256(abi.encode(<your>, <data>))
     *
     * abi.encode() is used rather than abi.encodePacked() because it allows for
     * deterministic handling when using using dynamic types in the leaf.
     */
    function verifyMerkleProof(bytes32[] memory proof, bytes32 leaf)
        external
        view
        returns (bool);
}

abstract contract WhiteList is IWhiteList {
    bytes32 public merkleRoot = keccak256(abi.encode(uint256(0)));
    bool public whitelistIsActive = true;

    // Virtual so you can set an onlyOwner
    function _flipWhitelistState() internal {
        whitelistIsActive = !whitelistIsActive;
        emit FlipWhitelistState(whitelistIsActive);
    }

    // Be sure to lock access!
    function _setMerkleRoot(bytes32 newMerkleRoot) internal {
        require(
            newMerkleRoot != keccak256(abi.encode(uint256(0))),
            'Merkle root cannot be 0'
        );
        merkleRoot = newMerkleRoot;
        emit MerkleRootSet(newMerkleRoot);
    }

    function verifyMerkleProof(bytes32[] memory proof, bytes32 leaf)
        public
        view
        override
        returns (bool)
    {
        require(
            merkleRoot != keccak256(abi.encode(uint256(0))),
            'Merkle root not set'
        );
        return MerkleProof.verify(proof, merkleRoot, leaf);
    }
}

File 7 of 19 : IERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (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`.
     *
     * 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;

    /**
     * @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 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 the account approved for `tokenId` token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function getApproved(uint256 tokenId) external view returns (address operator);

    /**
     * @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);
}

File 8 of 19 : IERC721Receiver.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (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 `IERC721Receiver.onERC721Received.selector`.
     */
    function onERC721Received(
        address operator,
        address from,
        uint256 tokenId,
        bytes calldata data
    ) external returns (bytes4);
}

File 9 of 19 : 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 19 : IERC721Enumerable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC721/extensions/IERC721Enumerable.sol)

pragma solidity ^0.8.0;

import "../IERC721.sol";

/**
 * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension
 * @dev See https://eips.ethereum.org/EIPS/eip-721
 */
interface IERC721Enumerable is IERC721 {
    /**
     * @dev Returns the total amount of tokens stored by the contract.
     */
    function totalSupply() external view returns (uint256);

    /**
     * @dev Returns a token ID owned by `owner` at a given `index` of its token list.
     * Use along with {balanceOf} to enumerate all of ``owner``'s tokens.
     */
    function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256);

    /**
     * @dev Returns a token ID at a given `index` of all the tokens stored by the contract.
     * Use along with {totalSupply} to enumerate all tokens.
     */
    function tokenByIndex(uint256 index) external view returns (uint256);
}

File 11 of 19 : 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 12 of 19 : 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 13 of 19 : 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 14 of 19 : 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 15 of 19 : StorageSlot.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/StorageSlot.sol)

pragma solidity ^0.8.0;

/**
 * @dev Library for reading and writing primitive types to specific storage slots.
 *
 * Storage slots are often used to avoid storage conflict when dealing with upgradeable contracts.
 * This library helps with reading and writing to such slots without the need for inline assembly.
 *
 * The functions in this library return Slot structs that contain a `value` member that can be used to read or write.
 *
 * Example usage to set ERC1967 implementation slot:
 * ```
 * contract ERC1967 {
 *     bytes32 internal constant _IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc;
 *
 *     function _getImplementation() internal view returns (address) {
 *         return StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value;
 *     }
 *
 *     function _setImplementation(address newImplementation) internal {
 *         require(Address.isContract(newImplementation), "ERC1967: new implementation is not a contract");
 *         StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value = newImplementation;
 *     }
 * }
 * ```
 *
 * _Available since v4.1 for `address`, `bool`, `bytes32`, and `uint256`._
 */
library StorageSlot {
    struct AddressSlot {
        address value;
    }

    struct BooleanSlot {
        bool value;
    }

    struct Bytes32Slot {
        bytes32 value;
    }

    struct Uint256Slot {
        uint256 value;
    }

    /**
     * @dev Returns an `AddressSlot` with member `value` located at `slot`.
     */
    function getAddressSlot(bytes32 slot) internal pure returns (AddressSlot storage r) {
        assembly {
            r.slot := slot
        }
    }

    /**
     * @dev Returns an `BooleanSlot` with member `value` located at `slot`.
     */
    function getBooleanSlot(bytes32 slot) internal pure returns (BooleanSlot storage r) {
        assembly {
            r.slot := slot
        }
    }

    /**
     * @dev Returns an `Bytes32Slot` with member `value` located at `slot`.
     */
    function getBytes32Slot(bytes32 slot) internal pure returns (Bytes32Slot storage r) {
        assembly {
            r.slot := slot
        }
    }

    /**
     * @dev Returns an `Uint256Slot` with member `value` located at `slot`.
     */
    function getUint256Slot(bytes32 slot) internal pure returns (Uint256Slot storage r) {
        assembly {
            r.slot := slot
        }
    }
}

File 16 of 19 : BitMaps.sol
// SPDX-License-Identifier: MIT
/**
   _____       ___     ___ __           ____  _ __      
  / ___/____  / (_)___/ (_) /___  __   / __ )(_) /______
  \__ \/ __ \/ / / __  / / __/ / / /  / __  / / __/ ___/
 ___/ / /_/ / / / /_/ / / /_/ /_/ /  / /_/ / / /_(__  ) 
/____/\____/_/_/\__,_/_/\__/\__, /  /_____/_/\__/____/  
                           /____/                        

- npm: https://www.npmjs.com/package/solidity-bits
- github: https://github.com/estarriolvetch/solidity-bits

 */
pragma solidity ^0.8.0;

import "./BitScan.sol";

/**
 * @dev This Library is a modified version of Openzeppelin's BitMaps library.
 * Functions of finding the index of the closest set bit from a given index are added.
 * The indexing of each bucket is modifed to count from the MSB to the LSB instead of from the LSB to the MSB.
 * The modification of indexing makes finding the closest previous set bit more efficient in gas usage.
*/

/**
 * @dev Library for managing uint256 to bool mapping in a compact and efficient way, providing the keys are sequential.
 * Largelly inspired by Uniswap's https://github.com/Uniswap/merkle-distributor/blob/master/contracts/MerkleDistributor.sol[merkle-distributor].
 */

library BitMaps {
    using BitScan for uint256;
    uint256 private constant MASK_INDEX_ZERO = (1 << 255);
    struct BitMap {
        mapping(uint256 => uint256) _data;
    }

    /**
     * @dev Returns whether the bit at `index` is set.
     */
    function get(BitMap storage bitmap, uint256 index) internal view returns (bool) {
        uint256 bucket = index >> 8;
        uint256 mask = MASK_INDEX_ZERO >> (index & 0xff);
        return bitmap._data[bucket] & mask != 0;
    }

    /**
     * @dev Sets the bit at `index` to the boolean `value`.
     */
    function setTo(
        BitMap storage bitmap,
        uint256 index,
        bool value
    ) internal {
        if (value) {
            set(bitmap, index);
        } else {
            unset(bitmap, index);
        }
    }

    /**
     * @dev Sets the bit at `index`.
     */
    function set(BitMap storage bitmap, uint256 index) internal {
        uint256 bucket = index >> 8;
        uint256 mask = MASK_INDEX_ZERO >> (index & 0xff);
        bitmap._data[bucket] |= mask;
    }

    /**
     * @dev Unsets the bit at `index`.
     */
    function unset(BitMap storage bitmap, uint256 index) internal {
        uint256 bucket = index >> 8;
        uint256 mask = MASK_INDEX_ZERO >> (index & 0xff);
        bitmap._data[bucket] &= ~mask;
    }

    /**
     * @dev Find the closest index of the set bit before `index`.
     */
    function scanForward(BitMap storage bitmap, uint256 index) internal view returns (uint256) {
        uint256 bucket = index >> 8;

        // index within the bucket
        uint256 bucketIndex = (index & 0xff);

        // load a bitboard from the bitmap.
        uint256 bb = bitmap._data[bucket];

        // offset the bitboard to scan from `bucketIndex`.
        bb = bb >> (0xff ^ bucketIndex); // bb >> (255 - bucketIndex)
        
        if(bb > 0) {
            unchecked {
                return (bucket << 8) | (bucketIndex -  bb.bitScanForward256());    
            }
        } else {
            while(true) {
                require(bucket > 0, "BitMaps: The set bit before the index doesn't exist.");
                unchecked {
                    bucket--;
                }
                // No offset. Always scan from the least significiant bit now.
                bb = bitmap._data[bucket];
                
                if(bb > 0) {
                    unchecked {
                        return (bucket << 8) | (255 -  bb.bitScanForward256());    
                    }
                } 
            }
        }
    }

    function getBucket(BitMap storage bitmap, uint256 bucket) internal view returns (uint256) {
        return bitmap._data[bucket];
    }
}

File 17 of 19 : 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);
}

File 18 of 19 : BitScan.sol
// SPDX-License-Identifier: MIT
/**
   _____       ___     ___ __           ____  _ __      
  / ___/____  / (_)___/ (_) /___  __   / __ )(_) /______
  \__ \/ __ \/ / / __  / / __/ / / /  / __  / / __/ ___/
 ___/ / /_/ / / / /_/ / / /_/ /_/ /  / /_/ / / /_(__  ) 
/____/\____/_/_/\__,_/_/\__/\__, /  /_____/_/\__/____/  
                           /____/                        

- npm: https://www.npmjs.com/package/solidity-bits
- github: https://github.com/estarriolvetch/solidity-bits

 */

pragma solidity ^0.8.0;


library BitScan {
    uint256 constant private DEBRUIJN_256 = 0x818283848586878898a8b8c8d8e8f929395969799a9b9d9e9faaeb6bedeeff;
    bytes constant private LOOKUP_TABLE_256 = hex"0001020903110a19042112290b311a3905412245134d2a550c5d32651b6d3a7506264262237d468514804e8d2b95569d0d495ea533a966b11c886eb93bc176c9071727374353637324837e9b47af86c7155181ad4fd18ed32c9096db57d59ee30e2e4a6a5f92a6be3498aae067ddb2eb1d5989b56fd7baf33ca0c2ee77e5caf7ff0810182028303840444c545c646c7425617c847f8c949c48a4a8b087b8c0c816365272829aaec650acd0d28fdad4e22d6991bd97dfdcea58b4d6f29fede4f6fe0f1f2f3f4b5b6b607b8b93a3a7b7bf357199c5abcfd9e168bcdee9b3f1ecf5fd1e3e5a7a8aa2b670c4ced8bbe8f0f4fc3d79a1c3cde7effb78cce6facbf9f8";

    /**
        @dev Isolate the least significant set bit.
     */ 
    function isolateLS1B256(uint256 bb) pure internal returns (uint256) {
        require(bb > 0);
        unchecked {
            return bb & (0 - bb);
        }
    } 

    /**
        @dev Isolate the most significant set bit.
     */ 
    function isolateMS1B256(uint256 bb) pure internal returns (uint256) {
        require(bb > 0);
        unchecked {
            bb |= bb >> 256;
            bb |= bb >> 128;
            bb |= bb >> 64;
            bb |= bb >> 32;
            bb |= bb >> 16;
            bb |= bb >> 8;
            bb |= bb >> 4;
            bb |= bb >> 2;
            bb |= bb >> 1;
            
            return (bb >> 1) + 1;
        }
    } 

    /**
        @dev Find the index of the lest significant set bit. (trailing zero count)
     */ 
    function bitScanForward256(uint256 bb) pure internal returns (uint8) {
        unchecked {
            return uint8(LOOKUP_TABLE_256[(isolateLS1B256(bb) * DEBRUIJN_256) >> 248]);
        }   
    }

    /**
        @dev Find the index of the most significant set bit.
     */ 
    function bitScanReverse256(uint256 bb) pure internal returns (uint8) {
        unchecked {
            return 255 - uint8(LOOKUP_TABLE_256[((isolateMS1B256(bb) * DEBRUIJN_256) >> 248)]);
        }   
    }

    function log2(uint256 bb) pure internal returns (uint8) {
        unchecked {
            return uint8(LOOKUP_TABLE_256[(isolateMS1B256(bb) * DEBRUIJN_256) >> 248]);
        } 
    }
}

File 19 of 19 : MerkleProof.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (utils/cryptography/MerkleProof.sol)

pragma solidity ^0.8.0;

/**
 * @dev These functions deal with verification of Merkle Trees proofs.
 *
 * The proofs can be generated using the JavaScript library
 * https://github.com/miguelmota/merkletreejs[merkletreejs].
 * Note: the hashing algorithm should be keccak256 and pair sorting should be enabled.
 *
 * See `test/utils/cryptography/MerkleProof.test.js` for some examples.
 *
 * WARNING: You should avoid using leaf values that are 64 bytes long prior to
 * hashing, or use a hash function other than keccak256 for hashing leaves.
 * This is because the concatenation of a sorted pair of internal nodes in
 * the merkle tree could be reinterpreted as a leaf value.
 */
library MerkleProof {
    /**
     * @dev Returns true if a `leaf` can be proved to be a part of a Merkle tree
     * defined by `root`. For this, a `proof` must be provided, containing
     * sibling hashes on the branch from the leaf to the root of the tree. Each
     * pair of leaves and each pair of pre-images are assumed to be sorted.
     */
    function verify(
        bytes32[] memory proof,
        bytes32 root,
        bytes32 leaf
    ) internal pure returns (bool) {
        return processProof(proof, leaf) == root;
    }

    /**
     * @dev Returns the rebuilt hash obtained by traversing a Merkle tree up
     * from `leaf` using `proof`. A `proof` is valid if and only if the rebuilt
     * hash matches the root of the tree. When processing the proof, the pairs
     * of leafs & pre-images are assumed to be sorted.
     *
     * _Available since v4.4._
     */
    function processProof(bytes32[] memory proof, bytes32 leaf) internal pure returns (bytes32) {
        bytes32 computedHash = leaf;
        for (uint256 i = 0; i < proof.length; i++) {
            bytes32 proofElement = proof[i];
            if (computedHash <= proofElement) {
                // Hash(current computed hash + current element of the proof)
                computedHash = _efficientHash(computedHash, proofElement);
            } else {
                // Hash(current element of the proof + current computed hash)
                computedHash = _efficientHash(proofElement, computedHash);
            }
        }
        return computedHash;
    }

    function _efficientHash(bytes32 a, bytes32 b) private pure returns (bytes32 value) {
        assembly {
            mstore(0x00, a)
            mstore(0x20, b)
            value := keccak256(0x00, 0x40)
        }
    }
}

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

Contract Security Audit

Contract ABI

[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"newOwner","type":"address"}],"name":"ChangeOwner","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bool","name":"newState","type":"bool"}],"name":"FlipReleaved","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bool","name":"newState","type":"bool"}],"name":"FlipWhitelistState","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bytes32","name":"newMerkeRoot","type":"bytes32"}],"name":"MerkleRootSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"minter","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"bytes32[]","name":"proof","type":"bytes32[]"}],"name":"Mint","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"address","name":"to","type":"address"}],"name":"MintReserved","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":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[],"name":"SetBaseURI","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"newFreeMints","type":"uint256"}],"name":"SetFreeMints","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"newLimit","type":"uint256"}],"name":"SetMaxMintBatchAmount","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"newMax","type":"uint256"}],"name":"SetMaxTotalMintsThisStage","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"newPricePerToken","type":"uint256"}],"name":"SetPricePerToken","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"newUnrevealedURI","type":"string"}],"name":"SetUnrevealedURI","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":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"WithdrawAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"WithdrawAmount","type":"event"},{"inputs":[],"name":"MAX_FREE_MINTS","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_TOKENS","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_TOKENS_PER_WALLET","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"RESERVED_AMOUNT","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"addressMinted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","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":"baseTokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"changeOwner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"flipReleaved","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"flipWhitelistState","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"freeMints","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxMintBatchAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxTotalMintsThisStage","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"merkleRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"minter","type":"address"},{"internalType":"uint256","name":"maxMints","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes32[]","name":"proof","type":"bytes32[]"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"address","name":"to","type":"address"}],"name":"mintReserved","outputs":[],"stateMutability":"nonpayable","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":"pauseContract","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pricePerToken","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"reservedTokensMinted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","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":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"newBaseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newFreeMints","type":"uint256"}],"name":"setFreeMints","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newMax","type":"uint256"}],"name":"setMaxMintBatchAmount","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newMax","type":"uint256"}],"name":"setMaxTotalMintsThisStage","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"newMerkleRoot","type":"bytes32"}],"name":"setMerkleRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newPricePerToken","type":"uint256"}],"name":"setPricePerToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"newUnrevealedURI","type":"string"}],"name":"setUnrevealedURI","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":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalFreeMintsMinted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":"unpauseContract","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unrevealedURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32[]","name":"proof","type":"bytes32[]"},{"internalType":"bytes32","name":"leaf","type":"bytes32"}],"name":"verifyMerkleProof","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"whitelistIsActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdrawAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"withdrawAmount","outputs":[],"stateMutability":"nonpayable","type":"function"}]

600060a081905260206080527f290decd9548b62a8d60345a988386fc84ba6bc95484008f6362f93160ef3e563600955600a805460ff19166001908117909155612710600b556032600c55661ff973cafa8000600d55600e829055600f55601081905560e0604081905260c08290526200007d916012919062000194565b506040805160208101918290526000908190526200009e9160139162000194565b506014805460ff19169055348015620000b657600080fd5b5060408051808201825260078152664d61736b69657360c81b6020808301918252835180850190945260038452624d534b60e81b908401528151919291620001019160019162000194565b5080516200011790600290602084019062000194565b50506007805460ff19169055506200012f336200013a565b600160085562000276565b600780546001600160a01b03838116610100818102610100600160a81b031985161790945560405193909204169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b828054620001a2906200023a565b90600052602060002090601f016020900481019282620001c6576000855562000211565b82601f10620001e157805160ff191683800117855562000211565b8280016001018555821562000211579182015b8281111562000211578251825591602001919060010190620001f4565b506200021f92915062000223565b5090565b5b808211156200021f576000815560010162000224565b600181811c908216806200024f57607f821691505b6020821081036200027057634e487b7160e01b600052602260045260246000fd5b50919050565b614f0480620002866000396000f3fe60806040526004361061034a5760003560e01c8063715018a6116101bb578063c87b56dd116100f7578063f3e3882111610095578063f85ac9251161006f578063f85ac9251461090a578063fa30297e1461091f578063fa8726ad1461094c578063fe2c7fee1461096c57600080fd5b8063f3e38821146108c9578063f47c84c5146108df578063f6fa26ab146108f557600080fd5b8063d85f2740116100d1578063d85f27401461081d578063e7db8fb014610833578063e985e9c514610853578063f2fde38b146108a957600080fd5b8063c87b56dd146107d3578063d1bdb1d1146107f3578063d547cfb71461080857600080fd5b806395d89b4111610164578063b33712c51161013e578063b33712c514610772578063b88d4fde14610787578063c559d537146107a7578063c7a6b21e146107bd57600080fd5b806395d89b411461071d578063a22cb46514610732578063a6f9dae11461075257600080fd5b806380b173351161019557806380b17335146106c2578063853828b6146106d85780638da5cb5b146106ed57600080fd5b8063715018a6146106775780637b1b1de61461068c5780637cb64759146106a257600080fd5b8063439766ce1161028a5780635f04405211610233578063638263c71161020d578063638263c7146106165780636470b9191461062c5780637035bf181461064257806370a082311461065757600080fd5b80635f044052146105b6578063631bbbba146105d65780636352211e146105f657600080fd5b806355f804b31161026457806355f804b31461056b578063597d78e11461058b5780635c975abb1461059e57600080fd5b8063439766ce1461051c5780634f6ccce714610531578063518302271461055157600080fd5b80631fe70d6f116102f75780632bf2762f116102d15780632bf2762f146104a65780632eb4a7ab146104c65780632f745c59146104dc57806342842e0e146104fc57600080fd5b80631fe70d6f1461044c57806323b872dd1461046657806326c386801461048657600080fd5b8063081812fc11610328578063081812fc146103c8578063095ea7b31461040d57806318160ddd1461042d57600080fd5b806301ffc9a71461034f5780630562b9f71461038457806306fdde03146103a6575b600080fd5b34801561035b57600080fd5b5061036f61036a36600461452d565b61098c565b60405190151581526020015b60405180910390f35b34801561039057600080fd5b506103a461039f36600461454a565b610abd565b005b3480156103b257600080fd5b506103bb610d98565b60405161037b91906145d9565b3480156103d457600080fd5b506103e86103e336600461454a565b610e2a565b60405173ffffffffffffffffffffffffffffffffffffffff909116815260200161037b565b34801561041957600080fd5b506103a4610428366004614615565b610eec565b34801561043957600080fd5b506004545b60405190815260200161037b565b34801561045857600080fd5b50600a5461036f9060ff1681565b34801561047257600080fd5b506103a461048136600461463f565b611077565b34801561049257600080fd5b506103a46104a136600461454a565b611118565b3480156104b257600080fd5b506103a46104c136600461454a565b61126d565b3480156104d257600080fd5b5061043e60095481565b3480156104e857600080fd5b5061043e6104f7366004614615565b611329565b34801561050857600080fd5b506103a461051736600461463f565b611440565b34801561052857600080fd5b506103a461145b565b34801561053d57600080fd5b5061043e61054c36600461454a565b6114ec565b34801561055d57600080fd5b5060145461036f9060ff1681565b34801561057757600080fd5b506103a461058636600461467b565b6115d8565b6103a46105993660046147eb565b611700565b3480156105aa57600080fd5b5060075460ff1661036f565b3480156105c257600080fd5b5061036f6105d136600461484c565b611e04565b3480156105e257600080fd5b506103a46105f1366004614891565b611ead565b34801561060257600080fd5b506103e861061136600461454a565b6120bf565b34801561062257600080fd5b5061043e60105481565b34801561063857600080fd5b5061043e600c5481565b34801561064e57600080fd5b506103bb6120d6565b34801561066357600080fd5b5061043e6106723660046148bd565b612164565b34801561068357600080fd5b506103a4612285565b34801561069857600080fd5b5061043e600d5481565b3480156106ae57600080fd5b506103a46106bd36600461454a565b612316565b3480156106ce57600080fd5b5061043e600f5481565b3480156106e457600080fd5b506103a46123a9565b3480156106f957600080fd5b50600754610100900473ffffffffffffffffffffffffffffffffffffffff166103e8565b34801561072957600080fd5b506103bb612608565b34801561073e57600080fd5b506103a461074d3660046148d8565b612617565b34801561075e57600080fd5b506103a461076d3660046148bd565b61272d565b34801561077e57600080fd5b506103a4612932565b34801561079357600080fd5b506103a46107a2366004614914565b6129c1565b3480156107b357600080fd5b5061043e600b5481565b3480156107c957600080fd5b5061043e61138881565b3480156107df57600080fd5b506103bb6107ee36600461454a565b612a69565b3480156107ff57600080fd5b5061043e603281565b34801561081457600080fd5b506103bb612c12565b34801561082957600080fd5b5061043e6101f481565b34801561083f57600080fd5b506103a461084e36600461454a565b612c1f565b34801561085f57600080fd5b5061036f61086e3660046149f2565b73ffffffffffffffffffffffffffffffffffffffff918216600090815260066020908152604080832093909416825291909152205460ff1690565b3480156108b557600080fd5b506103a46108c43660046148bd565b612cdb565b3480156108d557600080fd5b5061043e600e5481565b3480156108eb57600080fd5b5061043e61271081565b34801561090157600080fd5b506103a4612e0e565b34801561091657600080fd5b506103a4612e9d565b34801561092b57600080fd5b5061043e61093a3660046148bd565b60116020526000908152604090205481565b34801561095857600080fd5b506103a461096736600461454a565b612f90565b34801561097857600080fd5b506103a461098736600461467b565b6130de565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f80ac58cd000000000000000000000000000000000000000000000000000000001480610a1f57507fffffffff0000000000000000000000000000000000000000000000000000000082167f5b5e139f00000000000000000000000000000000000000000000000000000000145b80610a6b57507fffffffff0000000000000000000000000000000000000000000000000000000082167f780e9d6300000000000000000000000000000000000000000000000000000000145b80610ab757507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff000000000000000000000000000000000000000000000000000000008316145b92915050565b60075473ffffffffffffffffffffffffffffffffffffffff610100909104163314610b49576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064015b60405180910390fd5b600260085403610bb5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610b40565b600260085580610c21576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f416d6f756e742073686f756c642062652067726561746572207468616e2030006044820152606401610b40565b4780821115610c8c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601e60248201527f4e6f7420656e6f7567682062616c616e636520696e20636f6e747261637400006044820152606401610b40565b600754604051600091610100900473ffffffffffffffffffffffffffffffffffffffff169084908381818185875af1925050503d8060008114610ceb576040519150601f19603f3d011682016040523d82523d6000602084013e610cf0565b606091505b5050905080610d5b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600f60248201527f5472616e73666572206661696c656400000000000000000000000000000000006044820152606401610b40565b6040518381527fa4627c8f4d56ea22b18638a44f7dadf6b8e9dead88ca3117e1d90a5d571d5af89060200160405180910390a15050600160085550565b606060018054610da790614a1c565b80601f0160208091040260200160405190810160405280929190818152602001828054610dd390614a1c565b8015610e205780601f10610df557610100808354040283529160200191610e20565b820191906000526020600020905b815481529060010190602001808311610e0357829003601f168201915b5050505050905090565b6000610e37826004541190565b610ec3576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602f60248201527f4552433732315073693a20617070726f76656420717565727920666f72206e6f60448201527f6e6578697374656e7420746f6b656e00000000000000000000000000000000006064820152608401610b40565b5060009081526005602052604090205473ffffffffffffffffffffffffffffffffffffffff1690565b6000610ef7826120bf565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603610fb3576040517f08c379a0000000000000000000000000000000000000000000000000000000008152602060048201526024808201527f4552433732315073693a20617070726f76616c20746f2063757272656e74206f60448201527f776e6572000000000000000000000000000000000000000000000000000000006064820152608401610b40565b3373ffffffffffffffffffffffffffffffffffffffff82161480610fdc5750610fdc813361086e565b611068576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603b60248201527f4552433732315073693a20617070726f76652063616c6c6572206973206e6f7460448201527f206f776e6572206e6f7220617070726f76656420666f7220616c6c00000000006064820152608401610b40565b6110728383613215565b505050565b61108133826132b5565b61110d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603460248201527f4552433732315073693a207472616e736665722063616c6c6572206973206e6f60448201527f74206f776e6572206e6f7220617070726f7665640000000000000000000000006064820152608401610b40565b61107283838361340d565b60075473ffffffffffffffffffffffffffffffffffffffff61010090910416331461119f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610b40565b612710811115611231576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602260248201527f4261746368206d61782063616e6e6f7420657863656564204d41585f544f4b4560448201527f4e530000000000000000000000000000000000000000000000000000000000006064820152608401610b40565b600c8190556040518181527f64eb87d2d01c4aa0f7ef71e5a711e5da05dd4753ef422195781869746823c519906020015b60405180910390a150565b60075473ffffffffffffffffffffffffffffffffffffffff6101009091041633146112f4576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610b40565b600d8190556040518181527f9c76b5988eab058d83cdbd321d7a3bf06def56a3c5c58c3cb04e5a5052aee0ad90602001611262565b60008060005b6004548110156113b857611344816004541190565b80156113835750611354816120bf565b73ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff16145b156113a657838203611398579150610ab79050565b816113a281614a9e565b9250505b806113b081614a9e565b91505061132f565b506040517f08c379a0000000000000000000000000000000000000000000000000000000008152602060048201526024808201527f4552433732315073693a206f776e657220696e646578206f7574206f6620626f60448201527f756e6473000000000000000000000000000000000000000000000000000000006064820152608401610b40565b611072838383604051806020016040528060008152506129c1565b60075473ffffffffffffffffffffffffffffffffffffffff6101009091041633146114e2576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610b40565b6114ea613761565b565b60006114f760045490565b8210611585576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602560248201527f4552433732315073693a20676c6f62616c20696e646578206f7574206f66206260448201527f6f756e64730000000000000000000000000000000000000000000000000000006064820152608401610b40565b6000805b6004548110156115d15761159e816004541190565b156115bf578382036115b1579392505050565b816115bb81614a9e565b9250505b806115c981614a9e565b915050611589565b5050919050565b60075473ffffffffffffffffffffffffffffffffffffffff61010090910416331461165f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610b40565b806116c6576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601360248201527f5552492063616e6e6f7420626520656d707479000000000000000000000000006044820152606401610b40565b6116d260128383614448565b506040517fa239f4bbfd90a175f9b529d5ee0788e561e3b14a3f60866421828226b31e883c90600090a15050565b60075460ff161561176d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601060248201527f5061757361626c653a20706175736564000000000000000000000000000000006044820152606401610b40565b6002600854036117d9576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610b40565b600260085581611845576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601760248201527f4d696e7420616d6f756e742063616e6e6f7420626520300000000000000000006044820152606401610b40565b600b548261185260045490565b61185c9190614ad6565b11156118ea576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602860248201527f4d696e7420776f756c64207265616368206d6178206d696e747320696e20746860448201527f69732073746167650000000000000000000000000000000000000000000000006064820152608401610b40565b600c54821115611956576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601a60248201527f4d6178696d756d2062617463682073697a6520726561636865640000000000006044820152606401610b40565b600e54611965906101f4614aee565b61197190612710614aee565b8261197b60045490565b6119859190614ad6565b11156119ed576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f4d696e7420776f756c64207265616368206d6178696d756d20737570706c79006044820152606401610b40565b73ffffffffffffffffffffffffffffffffffffffff8416600090815260116020526040902054603290611a21908490614ad6565b1115611aaf576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602260248201527f4164647265737320776f756c64206578636565642062616c616e6365206c696d60448201527f69740000000000000000000000000000000000000000000000000000000000006064820152608401610b40565b60006113886010541015611b9157600f5473ffffffffffffffffffffffffffffffffffffffff861660009081526011602052604090205411611b165773ffffffffffffffffffffffffffffffffffffffff8516600090815260116020526040902054611b1a565b600f545b600f54611b279190614aee565b905080831015611b375782611b39565b805b905061138881601054611b4c9190614ad6565b1115611b6457601054611b6190611388614aee565b90505b8015611b915780831015611b785782611b7a565b805b60106000828254611b8b9190614ad6565b90915550505b611b9b8184614aee565b600d54611ba89190614b05565b341015611c11576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601e60248201527f4e6f7420656e6f7567682045544820666f72207472616e73616374696f6e00006044820152606401610b40565b6040805173ffffffffffffffffffffffffffffffffffffffff871660208083019190915281830187905282518083038401815260609092019092528051910120600a5460ff161580611c94575073ffffffffffffffffffffffffffffffffffffffff86166000908152601160205260409020548590611c91908690614ad6565b11155b611cfa576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f4164647265737320776f756c6420657863656564206d696e74206c696d6974006044820152606401610b40565b600a5460ff161580611d115750611d118382611e04565b611d77576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601760248201527f41646472657373206e6f742077686974656c69737465640000000000000000006044820152606401610b40565b73ffffffffffffffffffffffffffffffffffffffff861660009081526011602052604081208054869290611dac908490614ad6565b90915550611dbc90508685613846565b7f03aaed7bc78de8fea71de035850b93fb22569bf6cb80de664df76872bf9a09e1868585604051611def93929190614b42565b60405180910390a15050600160085550505050565b600080604051602001611e1991815260200190565b6040516020818303038152906040528051906020012060095403611e99576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601360248201527f4d65726b6c6520726f6f74206e6f7420736574000000000000000000000000006044820152606401610b40565b611ea68360095484613864565b9392505050565b60075473ffffffffffffffffffffffffffffffffffffffff610100909104163314611f34576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610b40565b600260085403611fa0576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610b40565b6002600855600e546101f490611fb7908490614ad6565b1115612045576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602260248201527f576f756c64206265206d6f7265207468616e20726573657276656420616d6f7560448201527f6e740000000000000000000000000000000000000000000000000000000000006064820152608401610b40565b81600e60008282546120579190614ad6565b9091555061206790508183613846565b6040805183815273ffffffffffffffffffffffffffffffffffffffff831660208201527ff9e80f118e0152fa8ad307fe21bd53f38e0bbeb076827c381358ab80bbfb6a9d91015b60405180910390a150506001600855565b60008060006120cd8461387a565b50949350505050565b601380546120e390614a1c565b80601f016020809104026020016040519081016040528092919081815260200182805461210f90614a1c565b801561215c5780601f106121315761010080835404028352916020019161215c565b820191906000526020600020905b81548152906001019060200180831161213f57829003601f168201915b505050505081565b600073ffffffffffffffffffffffffffffffffffffffff8216612209576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602d60248201527f4552433732315073693a2062616c616e636520717565727920666f722074686560448201527f207a65726f2061646472657373000000000000000000000000000000000000006064820152608401610b40565b6000805b60045481101561227e57612222816004541190565b1561226e57612230816120bf565b73ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff160361226e5761226b82614a9e565b91505b61227781614a9e565b905061220d565b5092915050565b60075473ffffffffffffffffffffffffffffffffffffffff61010090910416331461230c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610b40565b6114ea600061394b565b60075473ffffffffffffffffffffffffffffffffffffffff61010090910416331461239d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610b40565b6123a6816139c9565b50565b60075473ffffffffffffffffffffffffffffffffffffffff610100909104163314612430576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610b40565b60026008540361249c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610b40565b60026008554780612509576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601560248201527f436f6e74726163742062616c616e6365206973203000000000000000000000006044820152606401610b40565b600754604051600091610100900473ffffffffffffffffffffffffffffffffffffffff169083908381818185875af1925050503d8060008114612568576040519150601f19603f3d011682016040523d82523d6000602084013e61256d565b606091505b50509050806125d8576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600f60248201527f5472616e73666572206661696c656400000000000000000000000000000000006044820152606401610b40565b6040518281527f3d5a341dc6a12221fcf31279cef3771f8fad757b2d9261f97605ccc17c257424906020016120ae565b606060028054610da790614a1c565b3373ffffffffffffffffffffffffffffffffffffffff831603612696576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601c60248201527f4552433732315073693a20617070726f766520746f2063616c6c6572000000006044820152606401610b40565b33600081815260066020908152604080832073ffffffffffffffffffffffffffffffffffffffff87168085529083529281902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b60075473ffffffffffffffffffffffffffffffffffffffff6101009091041633146127b4576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610b40565b73ffffffffffffffffffffffffffffffffffffffff8116612831576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f6e65774f776e65722063616e6e6f7420626520616464726573732830290000006044820152606401610b40565b600754610100900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036128e3576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f6e65776f776e65722063616e6e6f742062652063757272656e74206f776e65726044820152606401610b40565b6128ec81612cdb565b60405173ffffffffffffffffffffffffffffffffffffffff821681527ff285329298fd841af46eb83bbe90d1ebe2951c975a65b19a02f965f842ee69c590602001611262565b60075473ffffffffffffffffffffffffffffffffffffffff6101009091041633146129b9576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610b40565b6114ea613a88565b6129cb33836132b5565b612a57576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603460248201527f4552433732315073693a207472616e736665722063616c6c6572206973206e6f60448201527f74206f776e6572206e6f7220617070726f7665640000000000000000000000006064820152608401610b40565b612a6384848484613b43565b50505050565b60607fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8210612a9757600080fd5b612aa2826004541190565b612b08576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f55524920717565727920666f72206e6f6e6578697374656e7420746f6b656e006044820152606401610b40565b60145460ff16612ba45760138054612b1f90614a1c565b80601f0160208091040260200160405190810160405280929190818152602001828054612b4b90614a1c565b8015612b985780601f10612b6d57610100808354040283529160200191612b98565b820191906000526020600020905b815481529060010190602001808311612b7b57829003601f168201915b50505050509050919050565b6000612bb1836001614ad6565b90506000612bbd613be8565b9050600080825111612bde5760405180602001604052806000815250612c09565b81612be884613bf7565b604051602001612bf9929190614bad565b6040516020818303038152906040525b95945050505050565b601280546120e390614a1c565b60075473ffffffffffffffffffffffffffffffffffffffff610100909104163314612ca6576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610b40565b600f8190556040518181527fbc6daac13a20ffeb681b17704fc0f3e4c0cdfb977d31427884287dacf2f5ea2890602001611262565b60075473ffffffffffffffffffffffffffffffffffffffff610100909104163314612d62576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610b40565b73ffffffffffffffffffffffffffffffffffffffff8116612e05576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610b40565b6123a68161394b565b60075473ffffffffffffffffffffffffffffffffffffffff610100909104163314612e95576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610b40565b6114ea613d2c565b60075473ffffffffffffffffffffffffffffffffffffffff610100909104163314612f24576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610b40565b6014805460ff808216157fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0090921682179092556040519116151581527fbf15e6884676f261719b7efa934bbc3cb570ebe42eee26d052ecfebad3083c59906020015b60405180910390a1565b60075473ffffffffffffffffffffffffffffffffffffffff610100909104163314613017576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610b40565b6127108111156130a9576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602260248201527f5374616765206d61782063616e6e6f7420657863656564204d41585f544f4b4560448201527f4e530000000000000000000000000000000000000000000000000000000000006064820152608401610b40565b600b8190556040518181527f25a3ca3930b5af09f2ad8a48d53433de67575c7ce3073ef5d5e8c527cb2aea0190602001611262565b60075473ffffffffffffffffffffffffffffffffffffffff610100909104163314613165576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610b40565b806131cc576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601360248201527f5552492063616e6e6f7420626520656d707479000000000000000000000000006044820152606401610b40565b6131d860138383614448565b507facdfdd5724262f924ad56bda437d11c6cfe8ca3d58440f1052b335217431ba7e60136040516132099190614c04565b60405180910390a15050565b600081815260056020526040902080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff8416908117909155819061326f826120bf565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60006132c2826004541190565b61334e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602f60248201527f4552433732315073693a206f70657261746f7220717565727920666f72206e6f60448201527f6e6578697374656e7420746f6b656e00000000000000000000000000000000006064820152608401610b40565b6000613359836120bf565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1614806133c857508373ffffffffffffffffffffffffffffffffffffffff166133b084610e2a565b73ffffffffffffffffffffffffffffffffffffffff16145b80613405575073ffffffffffffffffffffffffffffffffffffffff80821660009081526006602090815260408083209388168352929052205460ff165b949350505050565b6000806134198361387a565b915091508473ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16146134d8576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602c60248201527f4552433732315073693a207472616e73666572206f6620746f6b656e2074686160448201527f74206973206e6f74206f776e00000000000000000000000000000000000000006064820152608401610b40565b73ffffffffffffffffffffffffffffffffffffffff841661357b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602760248201527f4552433732315073693a207472616e7366657220746f20746865207a65726f2060448201527f61646472657373000000000000000000000000000000000000000000000000006064820152608401610b40565b613586600084613215565b6000613593846001614ad6565b600881901c6000908152602081905260409020549091507f800000000000000000000000000000000000000000000000000000000000000060ff83161c161580156135df575060045481105b1561366c57600081815260036020908152604080832080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff8b16179055600884901c835290829052902080547f800000000000000000000000000000000000000000000000000000000000000060ff84161c1790555b600084815260036020526040902080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff87161790558184146136fe57600884901c600090815260208190526040902080547f800000000000000000000000000000000000000000000000000000000000000060ff87161c1790555b838573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050505050565b60075460ff16156137ce576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601060248201527f5061757361626c653a20706175736564000000000000000000000000000000006044820152606401610b40565b600780547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586138213390565b60405173ffffffffffffffffffffffffffffffffffffffff9091168152602001612f86565b613860828260405180602001604052806000815250613d92565b5050565b6000826138718584613dad565b14949350505050565b600080613888836004541190565b613914576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602c60248201527f4552433732315073693a206f776e657220717565727920666f72206e6f6e657860448201527f697374656e7420746f6b656e00000000000000000000000000000000000000006064820152608401610b40565b61391d83613e21565b60008181526003602052604090205473ffffffffffffffffffffffffffffffffffffffff1694909350915050565b6007805473ffffffffffffffffffffffffffffffffffffffff8381166101008181027fffffffffffffffffffffff0000000000000000000000000000000000000000ff85161790945560405193909204169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b604080516000602082015201604051602081830303815290604052805190602001208103613a53576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601760248201527f4d65726b6c6520726f6f742063616e6e6f7420626520300000000000000000006044820152606401610b40565b60098190556040518181527f42cbc405e4dbf1b691e85b9a34b08ecfcf7a9ad9078bf4d645ccfa1fac11c10b90602001611262565b60075460ff16613af4576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601460248201527f5061757361626c653a206e6f74207061757365640000000000000000000000006044820152606401610b40565b600780547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa33613821565b613b4e84848461340d565b613b5c848484600185613e2d565b612a63576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603560248201527f4552433732315073693a207472616e7366657220746f206e6f6e20455243373260448201527f31526563656976657220696d706c656d656e74657200000000000000000000006064820152608401610b40565b606060128054610da790614a1c565b606081600003613c3a57505060408051808201909152600181527f3000000000000000000000000000000000000000000000000000000000000000602082015290565b8160005b8115613c645780613c4e81614a9e565b9150613c5d9050600a83614d11565b9150613c3e565b60008167ffffffffffffffff811115613c7f57613c7f6146ed565b6040519080825280601f01601f191660200182016040528015613ca9576020820181803683370190505b5090505b841561340557613cbe600183614aee565b9150613ccb600a86614d25565b613cd6906030614ad6565b60f81b818381518110613ceb57613ceb614d39565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350613d25600a86614d11565b9450613cad565b600a805460ff808216157fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0090921682179092556040519116151581527fb951a9125012179b2ce4985ff4307f3a601d26b46e516b996ba90215d796b9c990602001612f86565b600454613d9f8484614055565b613b5c600085838686613e2d565b600081815b8451811015613e19576000858281518110613dcf57613dcf614d39565b60200260200101519050808311613df55760008381526020829052604090209250613e06565b600081815260208490526040902092505b5080613e1181614a9e565b915050613db2565b509392505050565b6000610ab78183614290565b600073ffffffffffffffffffffffffffffffffffffffff85163b1561404957506001835b613e5b8486614ad6565b811015614043576040517f150b7a0200000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff87169063150b7a0290613eba9033908b9086908990600401614d68565b6020604051808303816000875af1925050508015613f13575060408051601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0168201909252613f1091810190614db1565b60015b613fe0573d808015613f41576040519150601f19603f3d011682016040523d82523d6000602084013e613f46565b606091505b508051600003613fd8576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603560248201527f4552433732315073693a207472616e7366657220746f206e6f6e20455243373260448201527f31526563656976657220696d706c656d656e74657200000000000000000000006064820152608401610b40565b805181602001fd5b82801561402e57507fffffffff0000000000000000000000000000000000000000000000000000000081167f150b7a0200000000000000000000000000000000000000000000000000000000145b9250508061403b81614a9e565b915050613e51565b50612c09565b50600195945050505050565b600454816140e5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602560248201527f4552433732315073693a207175616e74697479206d757374206265206772656160448201527f74657220300000000000000000000000000000000000000000000000000000006064820152608401610b40565b73ffffffffffffffffffffffffffffffffffffffff8316614188576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602360248201527f4552433732315073693a206d696e7420746f20746865207a65726f206164647260448201527f65737300000000000000000000000000000000000000000000000000000000006064820152608401610b40565b816004600082825461419a9190614ad6565b9091555050600081815260036020908152604080832080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff8816179055600884901c835290829052902080547f800000000000000000000000000000000000000000000000000000000000000060ff84161c179055805b6142328383614ad6565b811015612a6357604051819073ffffffffffffffffffffffffffffffffffffffff8616906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a48061428881614a9e565b915050614228565b600881901c60008181526020849052604081205490919060ff808516919082181c80156142d5576142c0816143c6565b60ff168203600884901b179350505050610ab7565b60008311614365576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603460248201527f4269744d6170733a205468652073657420626974206265666f7265207468652060448201527f696e64657820646f65736e27742065786973742e0000000000000000000000006064820152608401610b40565b507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff90910160008181526020869052604090205490919080156143c1576143ab816143c6565b60ff0360ff16600884901b179350505050610ab7565b6142d5565b60006040518061012001604052806101008152602001614dcf610100913960f87e818283848586878898a8b8c8d8e8f929395969799a9b9d9e9faaeb6bedeeff61440f85614430565b02901c8151811061442257614422614d39565b016020015160f81c92915050565b600080821161443e57600080fd5b5060008190031690565b82805461445490614a1c565b90600052602060002090601f01602090048101928261447657600085556144da565b82601f106144ad578280017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff008235161785556144da565b828001600101855582156144da579182015b828111156144da5782358255916020019190600101906144bf565b506144e69291506144ea565b5090565b5b808211156144e657600081556001016144eb565b7fffffffff00000000000000000000000000000000000000000000000000000000811681146123a657600080fd5b60006020828403121561453f57600080fd5b8135611ea6816144ff565b60006020828403121561455c57600080fd5b5035919050565b60005b8381101561457e578181015183820152602001614566565b83811115612a635750506000910152565b600081518084526145a7816020860160208601614563565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169290920160200192915050565b602081526000611ea6602083018461458f565b803573ffffffffffffffffffffffffffffffffffffffff8116811461461057600080fd5b919050565b6000806040838503121561462857600080fd5b614631836145ec565b946020939093013593505050565b60008060006060848603121561465457600080fd5b61465d846145ec565b925061466b602085016145ec565b9150604084013590509250925092565b6000806020838503121561468e57600080fd5b823567ffffffffffffffff808211156146a657600080fd5b818501915085601f8301126146ba57600080fd5b8135818111156146c957600080fd5b8660208285010111156146db57600080fd5b60209290920196919550909350505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b604051601f82017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016810167ffffffffffffffff81118282101715614763576147636146ed565b604052919050565b600082601f83011261477c57600080fd5b8135602067ffffffffffffffff821115614798576147986146ed565b8160051b6147a782820161471c565b92835284810182019282810190878511156147c157600080fd5b83870192505b848310156147e0578235825291830191908301906147c7565b979650505050505050565b6000806000806080858703121561480157600080fd5b61480a856145ec565b93506020850135925060408501359150606085013567ffffffffffffffff81111561483457600080fd5b6148408782880161476b565b91505092959194509250565b6000806040838503121561485f57600080fd5b823567ffffffffffffffff81111561487657600080fd5b6148828582860161476b565b95602094909401359450505050565b600080604083850312156148a457600080fd5b823591506148b4602084016145ec565b90509250929050565b6000602082840312156148cf57600080fd5b611ea6826145ec565b600080604083850312156148eb57600080fd5b6148f4836145ec565b91506020830135801515811461490957600080fd5b809150509250929050565b6000806000806080858703121561492a57600080fd5b614933856145ec565b935060206149428187016145ec565b935060408601359250606086013567ffffffffffffffff8082111561496657600080fd5b818801915088601f83011261497a57600080fd5b81358181111561498c5761498c6146ed565b6149bc847fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f8401160161471c565b915080825289848285010111156149d257600080fd5b808484018584013760008482840101525080935050505092959194509250565b60008060408385031215614a0557600080fd5b614a0e836145ec565b91506148b4602084016145ec565b600181811c90821680614a3057607f821691505b602082108103614a69577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8203614acf57614acf614a6f565b5060010190565b60008219821115614ae957614ae9614a6f565b500190565b600082821015614b0057614b00614a6f565b500390565b6000817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615614b3d57614b3d614a6f565b500290565b60006060820173ffffffffffffffffffffffffffffffffffffffff861683526020858185015260606040850152818551808452608086019150828701935060005b81811015614b9f57845183529383019391830191600101614b83565b509098975050505050505050565b60008351614bbf818460208801614563565b835190830190614bd3818360208801614563565b7f2e6a736f6e0000000000000000000000000000000000000000000000000000009101908152600501949350505050565b600060208083526000845481600182811c915080831680614c2657607f831692505b8583108103614c5c577f4e487b710000000000000000000000000000000000000000000000000000000085526022600452602485fd5b878601838152602001818015614c795760018114614ca857614cd3565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00861682528782019650614cd3565b60008b81526020902060005b86811015614ccd57815484820152908501908901614cb4565b83019750505b50949998505050505050505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b600082614d2057614d20614ce2565b500490565b600082614d3457614d34614ce2565b500690565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b600073ffffffffffffffffffffffffffffffffffffffff808716835280861660208401525083604083015260806060830152614da7608083018461458f565b9695505050505050565b600060208284031215614dc357600080fd5b8151611ea6816144ff56fe0001020903110a19042112290b311a3905412245134d2a550c5d32651b6d3a7506264262237d468514804e8d2b95569d0d495ea533a966b11c886eb93bc176c9071727374353637324837e9b47af86c7155181ad4fd18ed32c9096db57d59ee30e2e4a6a5f92a6be3498aae067ddb2eb1d5989b56fd7baf33ca0c2ee77e5caf7ff0810182028303840444c545c646c7425617c847f8c949c48a4a8b087b8c0c816365272829aaec650acd0d28fdad4e22d6991bd97dfdcea58b4d6f29fede4f6fe0f1f2f3f4b5b6b607b8b93a3a7b7bf357199c5abcfd9e168bcdee9b3f1ecf5fd1e3e5a7a8aa2b670c4ced8bbe8f0f4fc3d79a1c3cde7effb78cce6facbf9f8a2646970667358221220b4954f6fe2241c1d55057a8d79c6357054c216ceb70445eb3a57785bd9f6200464736f6c634300080d0033

Deployed Bytecode

0x60806040526004361061034a5760003560e01c8063715018a6116101bb578063c87b56dd116100f7578063f3e3882111610095578063f85ac9251161006f578063f85ac9251461090a578063fa30297e1461091f578063fa8726ad1461094c578063fe2c7fee1461096c57600080fd5b8063f3e38821146108c9578063f47c84c5146108df578063f6fa26ab146108f557600080fd5b8063d85f2740116100d1578063d85f27401461081d578063e7db8fb014610833578063e985e9c514610853578063f2fde38b146108a957600080fd5b8063c87b56dd146107d3578063d1bdb1d1146107f3578063d547cfb71461080857600080fd5b806395d89b4111610164578063b33712c51161013e578063b33712c514610772578063b88d4fde14610787578063c559d537146107a7578063c7a6b21e146107bd57600080fd5b806395d89b411461071d578063a22cb46514610732578063a6f9dae11461075257600080fd5b806380b173351161019557806380b17335146106c2578063853828b6146106d85780638da5cb5b146106ed57600080fd5b8063715018a6146106775780637b1b1de61461068c5780637cb64759146106a257600080fd5b8063439766ce1161028a5780635f04405211610233578063638263c71161020d578063638263c7146106165780636470b9191461062c5780637035bf181461064257806370a082311461065757600080fd5b80635f044052146105b6578063631bbbba146105d65780636352211e146105f657600080fd5b806355f804b31161026457806355f804b31461056b578063597d78e11461058b5780635c975abb1461059e57600080fd5b8063439766ce1461051c5780634f6ccce714610531578063518302271461055157600080fd5b80631fe70d6f116102f75780632bf2762f116102d15780632bf2762f146104a65780632eb4a7ab146104c65780632f745c59146104dc57806342842e0e146104fc57600080fd5b80631fe70d6f1461044c57806323b872dd1461046657806326c386801461048657600080fd5b8063081812fc11610328578063081812fc146103c8578063095ea7b31461040d57806318160ddd1461042d57600080fd5b806301ffc9a71461034f5780630562b9f71461038457806306fdde03146103a6575b600080fd5b34801561035b57600080fd5b5061036f61036a36600461452d565b61098c565b60405190151581526020015b60405180910390f35b34801561039057600080fd5b506103a461039f36600461454a565b610abd565b005b3480156103b257600080fd5b506103bb610d98565b60405161037b91906145d9565b3480156103d457600080fd5b506103e86103e336600461454a565b610e2a565b60405173ffffffffffffffffffffffffffffffffffffffff909116815260200161037b565b34801561041957600080fd5b506103a4610428366004614615565b610eec565b34801561043957600080fd5b506004545b60405190815260200161037b565b34801561045857600080fd5b50600a5461036f9060ff1681565b34801561047257600080fd5b506103a461048136600461463f565b611077565b34801561049257600080fd5b506103a46104a136600461454a565b611118565b3480156104b257600080fd5b506103a46104c136600461454a565b61126d565b3480156104d257600080fd5b5061043e60095481565b3480156104e857600080fd5b5061043e6104f7366004614615565b611329565b34801561050857600080fd5b506103a461051736600461463f565b611440565b34801561052857600080fd5b506103a461145b565b34801561053d57600080fd5b5061043e61054c36600461454a565b6114ec565b34801561055d57600080fd5b5060145461036f9060ff1681565b34801561057757600080fd5b506103a461058636600461467b565b6115d8565b6103a46105993660046147eb565b611700565b3480156105aa57600080fd5b5060075460ff1661036f565b3480156105c257600080fd5b5061036f6105d136600461484c565b611e04565b3480156105e257600080fd5b506103a46105f1366004614891565b611ead565b34801561060257600080fd5b506103e861061136600461454a565b6120bf565b34801561062257600080fd5b5061043e60105481565b34801561063857600080fd5b5061043e600c5481565b34801561064e57600080fd5b506103bb6120d6565b34801561066357600080fd5b5061043e6106723660046148bd565b612164565b34801561068357600080fd5b506103a4612285565b34801561069857600080fd5b5061043e600d5481565b3480156106ae57600080fd5b506103a46106bd36600461454a565b612316565b3480156106ce57600080fd5b5061043e600f5481565b3480156106e457600080fd5b506103a46123a9565b3480156106f957600080fd5b50600754610100900473ffffffffffffffffffffffffffffffffffffffff166103e8565b34801561072957600080fd5b506103bb612608565b34801561073e57600080fd5b506103a461074d3660046148d8565b612617565b34801561075e57600080fd5b506103a461076d3660046148bd565b61272d565b34801561077e57600080fd5b506103a4612932565b34801561079357600080fd5b506103a46107a2366004614914565b6129c1565b3480156107b357600080fd5b5061043e600b5481565b3480156107c957600080fd5b5061043e61138881565b3480156107df57600080fd5b506103bb6107ee36600461454a565b612a69565b3480156107ff57600080fd5b5061043e603281565b34801561081457600080fd5b506103bb612c12565b34801561082957600080fd5b5061043e6101f481565b34801561083f57600080fd5b506103a461084e36600461454a565b612c1f565b34801561085f57600080fd5b5061036f61086e3660046149f2565b73ffffffffffffffffffffffffffffffffffffffff918216600090815260066020908152604080832093909416825291909152205460ff1690565b3480156108b557600080fd5b506103a46108c43660046148bd565b612cdb565b3480156108d557600080fd5b5061043e600e5481565b3480156108eb57600080fd5b5061043e61271081565b34801561090157600080fd5b506103a4612e0e565b34801561091657600080fd5b506103a4612e9d565b34801561092b57600080fd5b5061043e61093a3660046148bd565b60116020526000908152604090205481565b34801561095857600080fd5b506103a461096736600461454a565b612f90565b34801561097857600080fd5b506103a461098736600461467b565b6130de565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f80ac58cd000000000000000000000000000000000000000000000000000000001480610a1f57507fffffffff0000000000000000000000000000000000000000000000000000000082167f5b5e139f00000000000000000000000000000000000000000000000000000000145b80610a6b57507fffffffff0000000000000000000000000000000000000000000000000000000082167f780e9d6300000000000000000000000000000000000000000000000000000000145b80610ab757507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff000000000000000000000000000000000000000000000000000000008316145b92915050565b60075473ffffffffffffffffffffffffffffffffffffffff610100909104163314610b49576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064015b60405180910390fd5b600260085403610bb5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610b40565b600260085580610c21576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f416d6f756e742073686f756c642062652067726561746572207468616e2030006044820152606401610b40565b4780821115610c8c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601e60248201527f4e6f7420656e6f7567682062616c616e636520696e20636f6e747261637400006044820152606401610b40565b600754604051600091610100900473ffffffffffffffffffffffffffffffffffffffff169084908381818185875af1925050503d8060008114610ceb576040519150601f19603f3d011682016040523d82523d6000602084013e610cf0565b606091505b5050905080610d5b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600f60248201527f5472616e73666572206661696c656400000000000000000000000000000000006044820152606401610b40565b6040518381527fa4627c8f4d56ea22b18638a44f7dadf6b8e9dead88ca3117e1d90a5d571d5af89060200160405180910390a15050600160085550565b606060018054610da790614a1c565b80601f0160208091040260200160405190810160405280929190818152602001828054610dd390614a1c565b8015610e205780601f10610df557610100808354040283529160200191610e20565b820191906000526020600020905b815481529060010190602001808311610e0357829003601f168201915b5050505050905090565b6000610e37826004541190565b610ec3576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602f60248201527f4552433732315073693a20617070726f76656420717565727920666f72206e6f60448201527f6e6578697374656e7420746f6b656e00000000000000000000000000000000006064820152608401610b40565b5060009081526005602052604090205473ffffffffffffffffffffffffffffffffffffffff1690565b6000610ef7826120bf565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603610fb3576040517f08c379a0000000000000000000000000000000000000000000000000000000008152602060048201526024808201527f4552433732315073693a20617070726f76616c20746f2063757272656e74206f60448201527f776e6572000000000000000000000000000000000000000000000000000000006064820152608401610b40565b3373ffffffffffffffffffffffffffffffffffffffff82161480610fdc5750610fdc813361086e565b611068576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603b60248201527f4552433732315073693a20617070726f76652063616c6c6572206973206e6f7460448201527f206f776e6572206e6f7220617070726f76656420666f7220616c6c00000000006064820152608401610b40565b6110728383613215565b505050565b61108133826132b5565b61110d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603460248201527f4552433732315073693a207472616e736665722063616c6c6572206973206e6f60448201527f74206f776e6572206e6f7220617070726f7665640000000000000000000000006064820152608401610b40565b61107283838361340d565b60075473ffffffffffffffffffffffffffffffffffffffff61010090910416331461119f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610b40565b612710811115611231576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602260248201527f4261746368206d61782063616e6e6f7420657863656564204d41585f544f4b4560448201527f4e530000000000000000000000000000000000000000000000000000000000006064820152608401610b40565b600c8190556040518181527f64eb87d2d01c4aa0f7ef71e5a711e5da05dd4753ef422195781869746823c519906020015b60405180910390a150565b60075473ffffffffffffffffffffffffffffffffffffffff6101009091041633146112f4576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610b40565b600d8190556040518181527f9c76b5988eab058d83cdbd321d7a3bf06def56a3c5c58c3cb04e5a5052aee0ad90602001611262565b60008060005b6004548110156113b857611344816004541190565b80156113835750611354816120bf565b73ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff16145b156113a657838203611398579150610ab79050565b816113a281614a9e565b9250505b806113b081614a9e565b91505061132f565b506040517f08c379a0000000000000000000000000000000000000000000000000000000008152602060048201526024808201527f4552433732315073693a206f776e657220696e646578206f7574206f6620626f60448201527f756e6473000000000000000000000000000000000000000000000000000000006064820152608401610b40565b611072838383604051806020016040528060008152506129c1565b60075473ffffffffffffffffffffffffffffffffffffffff6101009091041633146114e2576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610b40565b6114ea613761565b565b60006114f760045490565b8210611585576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602560248201527f4552433732315073693a20676c6f62616c20696e646578206f7574206f66206260448201527f6f756e64730000000000000000000000000000000000000000000000000000006064820152608401610b40565b6000805b6004548110156115d15761159e816004541190565b156115bf578382036115b1579392505050565b816115bb81614a9e565b9250505b806115c981614a9e565b915050611589565b5050919050565b60075473ffffffffffffffffffffffffffffffffffffffff61010090910416331461165f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610b40565b806116c6576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601360248201527f5552492063616e6e6f7420626520656d707479000000000000000000000000006044820152606401610b40565b6116d260128383614448565b506040517fa239f4bbfd90a175f9b529d5ee0788e561e3b14a3f60866421828226b31e883c90600090a15050565b60075460ff161561176d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601060248201527f5061757361626c653a20706175736564000000000000000000000000000000006044820152606401610b40565b6002600854036117d9576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610b40565b600260085581611845576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601760248201527f4d696e7420616d6f756e742063616e6e6f7420626520300000000000000000006044820152606401610b40565b600b548261185260045490565b61185c9190614ad6565b11156118ea576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602860248201527f4d696e7420776f756c64207265616368206d6178206d696e747320696e20746860448201527f69732073746167650000000000000000000000000000000000000000000000006064820152608401610b40565b600c54821115611956576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601a60248201527f4d6178696d756d2062617463682073697a6520726561636865640000000000006044820152606401610b40565b600e54611965906101f4614aee565b61197190612710614aee565b8261197b60045490565b6119859190614ad6565b11156119ed576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f4d696e7420776f756c64207265616368206d6178696d756d20737570706c79006044820152606401610b40565b73ffffffffffffffffffffffffffffffffffffffff8416600090815260116020526040902054603290611a21908490614ad6565b1115611aaf576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602260248201527f4164647265737320776f756c64206578636565642062616c616e6365206c696d60448201527f69740000000000000000000000000000000000000000000000000000000000006064820152608401610b40565b60006113886010541015611b9157600f5473ffffffffffffffffffffffffffffffffffffffff861660009081526011602052604090205411611b165773ffffffffffffffffffffffffffffffffffffffff8516600090815260116020526040902054611b1a565b600f545b600f54611b279190614aee565b905080831015611b375782611b39565b805b905061138881601054611b4c9190614ad6565b1115611b6457601054611b6190611388614aee565b90505b8015611b915780831015611b785782611b7a565b805b60106000828254611b8b9190614ad6565b90915550505b611b9b8184614aee565b600d54611ba89190614b05565b341015611c11576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601e60248201527f4e6f7420656e6f7567682045544820666f72207472616e73616374696f6e00006044820152606401610b40565b6040805173ffffffffffffffffffffffffffffffffffffffff871660208083019190915281830187905282518083038401815260609092019092528051910120600a5460ff161580611c94575073ffffffffffffffffffffffffffffffffffffffff86166000908152601160205260409020548590611c91908690614ad6565b11155b611cfa576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f4164647265737320776f756c6420657863656564206d696e74206c696d6974006044820152606401610b40565b600a5460ff161580611d115750611d118382611e04565b611d77576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601760248201527f41646472657373206e6f742077686974656c69737465640000000000000000006044820152606401610b40565b73ffffffffffffffffffffffffffffffffffffffff861660009081526011602052604081208054869290611dac908490614ad6565b90915550611dbc90508685613846565b7f03aaed7bc78de8fea71de035850b93fb22569bf6cb80de664df76872bf9a09e1868585604051611def93929190614b42565b60405180910390a15050600160085550505050565b600080604051602001611e1991815260200190565b6040516020818303038152906040528051906020012060095403611e99576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601360248201527f4d65726b6c6520726f6f74206e6f7420736574000000000000000000000000006044820152606401610b40565b611ea68360095484613864565b9392505050565b60075473ffffffffffffffffffffffffffffffffffffffff610100909104163314611f34576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610b40565b600260085403611fa0576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610b40565b6002600855600e546101f490611fb7908490614ad6565b1115612045576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602260248201527f576f756c64206265206d6f7265207468616e20726573657276656420616d6f7560448201527f6e740000000000000000000000000000000000000000000000000000000000006064820152608401610b40565b81600e60008282546120579190614ad6565b9091555061206790508183613846565b6040805183815273ffffffffffffffffffffffffffffffffffffffff831660208201527ff9e80f118e0152fa8ad307fe21bd53f38e0bbeb076827c381358ab80bbfb6a9d91015b60405180910390a150506001600855565b60008060006120cd8461387a565b50949350505050565b601380546120e390614a1c565b80601f016020809104026020016040519081016040528092919081815260200182805461210f90614a1c565b801561215c5780601f106121315761010080835404028352916020019161215c565b820191906000526020600020905b81548152906001019060200180831161213f57829003601f168201915b505050505081565b600073ffffffffffffffffffffffffffffffffffffffff8216612209576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602d60248201527f4552433732315073693a2062616c616e636520717565727920666f722074686560448201527f207a65726f2061646472657373000000000000000000000000000000000000006064820152608401610b40565b6000805b60045481101561227e57612222816004541190565b1561226e57612230816120bf565b73ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff160361226e5761226b82614a9e565b91505b61227781614a9e565b905061220d565b5092915050565b60075473ffffffffffffffffffffffffffffffffffffffff61010090910416331461230c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610b40565b6114ea600061394b565b60075473ffffffffffffffffffffffffffffffffffffffff61010090910416331461239d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610b40565b6123a6816139c9565b50565b60075473ffffffffffffffffffffffffffffffffffffffff610100909104163314612430576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610b40565b60026008540361249c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610b40565b60026008554780612509576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601560248201527f436f6e74726163742062616c616e6365206973203000000000000000000000006044820152606401610b40565b600754604051600091610100900473ffffffffffffffffffffffffffffffffffffffff169083908381818185875af1925050503d8060008114612568576040519150601f19603f3d011682016040523d82523d6000602084013e61256d565b606091505b50509050806125d8576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600f60248201527f5472616e73666572206661696c656400000000000000000000000000000000006044820152606401610b40565b6040518281527f3d5a341dc6a12221fcf31279cef3771f8fad757b2d9261f97605ccc17c257424906020016120ae565b606060028054610da790614a1c565b3373ffffffffffffffffffffffffffffffffffffffff831603612696576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601c60248201527f4552433732315073693a20617070726f766520746f2063616c6c6572000000006044820152606401610b40565b33600081815260066020908152604080832073ffffffffffffffffffffffffffffffffffffffff87168085529083529281902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b60075473ffffffffffffffffffffffffffffffffffffffff6101009091041633146127b4576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610b40565b73ffffffffffffffffffffffffffffffffffffffff8116612831576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f6e65774f776e65722063616e6e6f7420626520616464726573732830290000006044820152606401610b40565b600754610100900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036128e3576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f6e65776f776e65722063616e6e6f742062652063757272656e74206f776e65726044820152606401610b40565b6128ec81612cdb565b60405173ffffffffffffffffffffffffffffffffffffffff821681527ff285329298fd841af46eb83bbe90d1ebe2951c975a65b19a02f965f842ee69c590602001611262565b60075473ffffffffffffffffffffffffffffffffffffffff6101009091041633146129b9576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610b40565b6114ea613a88565b6129cb33836132b5565b612a57576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603460248201527f4552433732315073693a207472616e736665722063616c6c6572206973206e6f60448201527f74206f776e6572206e6f7220617070726f7665640000000000000000000000006064820152608401610b40565b612a6384848484613b43565b50505050565b60607fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8210612a9757600080fd5b612aa2826004541190565b612b08576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f55524920717565727920666f72206e6f6e6578697374656e7420746f6b656e006044820152606401610b40565b60145460ff16612ba45760138054612b1f90614a1c565b80601f0160208091040260200160405190810160405280929190818152602001828054612b4b90614a1c565b8015612b985780601f10612b6d57610100808354040283529160200191612b98565b820191906000526020600020905b815481529060010190602001808311612b7b57829003601f168201915b50505050509050919050565b6000612bb1836001614ad6565b90506000612bbd613be8565b9050600080825111612bde5760405180602001604052806000815250612c09565b81612be884613bf7565b604051602001612bf9929190614bad565b6040516020818303038152906040525b95945050505050565b601280546120e390614a1c565b60075473ffffffffffffffffffffffffffffffffffffffff610100909104163314612ca6576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610b40565b600f8190556040518181527fbc6daac13a20ffeb681b17704fc0f3e4c0cdfb977d31427884287dacf2f5ea2890602001611262565b60075473ffffffffffffffffffffffffffffffffffffffff610100909104163314612d62576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610b40565b73ffffffffffffffffffffffffffffffffffffffff8116612e05576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610b40565b6123a68161394b565b60075473ffffffffffffffffffffffffffffffffffffffff610100909104163314612e95576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610b40565b6114ea613d2c565b60075473ffffffffffffffffffffffffffffffffffffffff610100909104163314612f24576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610b40565b6014805460ff808216157fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0090921682179092556040519116151581527fbf15e6884676f261719b7efa934bbc3cb570ebe42eee26d052ecfebad3083c59906020015b60405180910390a1565b60075473ffffffffffffffffffffffffffffffffffffffff610100909104163314613017576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610b40565b6127108111156130a9576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602260248201527f5374616765206d61782063616e6e6f7420657863656564204d41585f544f4b4560448201527f4e530000000000000000000000000000000000000000000000000000000000006064820152608401610b40565b600b8190556040518181527f25a3ca3930b5af09f2ad8a48d53433de67575c7ce3073ef5d5e8c527cb2aea0190602001611262565b60075473ffffffffffffffffffffffffffffffffffffffff610100909104163314613165576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610b40565b806131cc576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601360248201527f5552492063616e6e6f7420626520656d707479000000000000000000000000006044820152606401610b40565b6131d860138383614448565b507facdfdd5724262f924ad56bda437d11c6cfe8ca3d58440f1052b335217431ba7e60136040516132099190614c04565b60405180910390a15050565b600081815260056020526040902080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff8416908117909155819061326f826120bf565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60006132c2826004541190565b61334e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602f60248201527f4552433732315073693a206f70657261746f7220717565727920666f72206e6f60448201527f6e6578697374656e7420746f6b656e00000000000000000000000000000000006064820152608401610b40565b6000613359836120bf565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1614806133c857508373ffffffffffffffffffffffffffffffffffffffff166133b084610e2a565b73ffffffffffffffffffffffffffffffffffffffff16145b80613405575073ffffffffffffffffffffffffffffffffffffffff80821660009081526006602090815260408083209388168352929052205460ff165b949350505050565b6000806134198361387a565b915091508473ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16146134d8576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602c60248201527f4552433732315073693a207472616e73666572206f6620746f6b656e2074686160448201527f74206973206e6f74206f776e00000000000000000000000000000000000000006064820152608401610b40565b73ffffffffffffffffffffffffffffffffffffffff841661357b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602760248201527f4552433732315073693a207472616e7366657220746f20746865207a65726f2060448201527f61646472657373000000000000000000000000000000000000000000000000006064820152608401610b40565b613586600084613215565b6000613593846001614ad6565b600881901c6000908152602081905260409020549091507f800000000000000000000000000000000000000000000000000000000000000060ff83161c161580156135df575060045481105b1561366c57600081815260036020908152604080832080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff8b16179055600884901c835290829052902080547f800000000000000000000000000000000000000000000000000000000000000060ff84161c1790555b600084815260036020526040902080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff87161790558184146136fe57600884901c600090815260208190526040902080547f800000000000000000000000000000000000000000000000000000000000000060ff87161c1790555b838573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050505050565b60075460ff16156137ce576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601060248201527f5061757361626c653a20706175736564000000000000000000000000000000006044820152606401610b40565b600780547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586138213390565b60405173ffffffffffffffffffffffffffffffffffffffff9091168152602001612f86565b613860828260405180602001604052806000815250613d92565b5050565b6000826138718584613dad565b14949350505050565b600080613888836004541190565b613914576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602c60248201527f4552433732315073693a206f776e657220717565727920666f72206e6f6e657860448201527f697374656e7420746f6b656e00000000000000000000000000000000000000006064820152608401610b40565b61391d83613e21565b60008181526003602052604090205473ffffffffffffffffffffffffffffffffffffffff1694909350915050565b6007805473ffffffffffffffffffffffffffffffffffffffff8381166101008181027fffffffffffffffffffffff0000000000000000000000000000000000000000ff85161790945560405193909204169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b604080516000602082015201604051602081830303815290604052805190602001208103613a53576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601760248201527f4d65726b6c6520726f6f742063616e6e6f7420626520300000000000000000006044820152606401610b40565b60098190556040518181527f42cbc405e4dbf1b691e85b9a34b08ecfcf7a9ad9078bf4d645ccfa1fac11c10b90602001611262565b60075460ff16613af4576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601460248201527f5061757361626c653a206e6f74207061757365640000000000000000000000006044820152606401610b40565b600780547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa33613821565b613b4e84848461340d565b613b5c848484600185613e2d565b612a63576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603560248201527f4552433732315073693a207472616e7366657220746f206e6f6e20455243373260448201527f31526563656976657220696d706c656d656e74657200000000000000000000006064820152608401610b40565b606060128054610da790614a1c565b606081600003613c3a57505060408051808201909152600181527f3000000000000000000000000000000000000000000000000000000000000000602082015290565b8160005b8115613c645780613c4e81614a9e565b9150613c5d9050600a83614d11565b9150613c3e565b60008167ffffffffffffffff811115613c7f57613c7f6146ed565b6040519080825280601f01601f191660200182016040528015613ca9576020820181803683370190505b5090505b841561340557613cbe600183614aee565b9150613ccb600a86614d25565b613cd6906030614ad6565b60f81b818381518110613ceb57613ceb614d39565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350613d25600a86614d11565b9450613cad565b600a805460ff808216157fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0090921682179092556040519116151581527fb951a9125012179b2ce4985ff4307f3a601d26b46e516b996ba90215d796b9c990602001612f86565b600454613d9f8484614055565b613b5c600085838686613e2d565b600081815b8451811015613e19576000858281518110613dcf57613dcf614d39565b60200260200101519050808311613df55760008381526020829052604090209250613e06565b600081815260208490526040902092505b5080613e1181614a9e565b915050613db2565b509392505050565b6000610ab78183614290565b600073ffffffffffffffffffffffffffffffffffffffff85163b1561404957506001835b613e5b8486614ad6565b811015614043576040517f150b7a0200000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff87169063150b7a0290613eba9033908b9086908990600401614d68565b6020604051808303816000875af1925050508015613f13575060408051601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0168201909252613f1091810190614db1565b60015b613fe0573d808015613f41576040519150601f19603f3d011682016040523d82523d6000602084013e613f46565b606091505b508051600003613fd8576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603560248201527f4552433732315073693a207472616e7366657220746f206e6f6e20455243373260448201527f31526563656976657220696d706c656d656e74657200000000000000000000006064820152608401610b40565b805181602001fd5b82801561402e57507fffffffff0000000000000000000000000000000000000000000000000000000081167f150b7a0200000000000000000000000000000000000000000000000000000000145b9250508061403b81614a9e565b915050613e51565b50612c09565b50600195945050505050565b600454816140e5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602560248201527f4552433732315073693a207175616e74697479206d757374206265206772656160448201527f74657220300000000000000000000000000000000000000000000000000000006064820152608401610b40565b73ffffffffffffffffffffffffffffffffffffffff8316614188576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602360248201527f4552433732315073693a206d696e7420746f20746865207a65726f206164647260448201527f65737300000000000000000000000000000000000000000000000000000000006064820152608401610b40565b816004600082825461419a9190614ad6565b9091555050600081815260036020908152604080832080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff8816179055600884901c835290829052902080547f800000000000000000000000000000000000000000000000000000000000000060ff84161c179055805b6142328383614ad6565b811015612a6357604051819073ffffffffffffffffffffffffffffffffffffffff8616906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a48061428881614a9e565b915050614228565b600881901c60008181526020849052604081205490919060ff808516919082181c80156142d5576142c0816143c6565b60ff168203600884901b179350505050610ab7565b60008311614365576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603460248201527f4269744d6170733a205468652073657420626974206265666f7265207468652060448201527f696e64657820646f65736e27742065786973742e0000000000000000000000006064820152608401610b40565b507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff90910160008181526020869052604090205490919080156143c1576143ab816143c6565b60ff0360ff16600884901b179350505050610ab7565b6142d5565b60006040518061012001604052806101008152602001614dcf610100913960f87e818283848586878898a8b8c8d8e8f929395969799a9b9d9e9faaeb6bedeeff61440f85614430565b02901c8151811061442257614422614d39565b016020015160f81c92915050565b600080821161443e57600080fd5b5060008190031690565b82805461445490614a1c565b90600052602060002090601f01602090048101928261447657600085556144da565b82601f106144ad578280017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff008235161785556144da565b828001600101855582156144da579182015b828111156144da5782358255916020019190600101906144bf565b506144e69291506144ea565b5090565b5b808211156144e657600081556001016144eb565b7fffffffff00000000000000000000000000000000000000000000000000000000811681146123a657600080fd5b60006020828403121561453f57600080fd5b8135611ea6816144ff565b60006020828403121561455c57600080fd5b5035919050565b60005b8381101561457e578181015183820152602001614566565b83811115612a635750506000910152565b600081518084526145a7816020860160208601614563565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169290920160200192915050565b602081526000611ea6602083018461458f565b803573ffffffffffffffffffffffffffffffffffffffff8116811461461057600080fd5b919050565b6000806040838503121561462857600080fd5b614631836145ec565b946020939093013593505050565b60008060006060848603121561465457600080fd5b61465d846145ec565b925061466b602085016145ec565b9150604084013590509250925092565b6000806020838503121561468e57600080fd5b823567ffffffffffffffff808211156146a657600080fd5b818501915085601f8301126146ba57600080fd5b8135818111156146c957600080fd5b8660208285010111156146db57600080fd5b60209290920196919550909350505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b604051601f82017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016810167ffffffffffffffff81118282101715614763576147636146ed565b604052919050565b600082601f83011261477c57600080fd5b8135602067ffffffffffffffff821115614798576147986146ed565b8160051b6147a782820161471c565b92835284810182019282810190878511156147c157600080fd5b83870192505b848310156147e0578235825291830191908301906147c7565b979650505050505050565b6000806000806080858703121561480157600080fd5b61480a856145ec565b93506020850135925060408501359150606085013567ffffffffffffffff81111561483457600080fd5b6148408782880161476b565b91505092959194509250565b6000806040838503121561485f57600080fd5b823567ffffffffffffffff81111561487657600080fd5b6148828582860161476b565b95602094909401359450505050565b600080604083850312156148a457600080fd5b823591506148b4602084016145ec565b90509250929050565b6000602082840312156148cf57600080fd5b611ea6826145ec565b600080604083850312156148eb57600080fd5b6148f4836145ec565b91506020830135801515811461490957600080fd5b809150509250929050565b6000806000806080858703121561492a57600080fd5b614933856145ec565b935060206149428187016145ec565b935060408601359250606086013567ffffffffffffffff8082111561496657600080fd5b818801915088601f83011261497a57600080fd5b81358181111561498c5761498c6146ed565b6149bc847fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f8401160161471c565b915080825289848285010111156149d257600080fd5b808484018584013760008482840101525080935050505092959194509250565b60008060408385031215614a0557600080fd5b614a0e836145ec565b91506148b4602084016145ec565b600181811c90821680614a3057607f821691505b602082108103614a69577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8203614acf57614acf614a6f565b5060010190565b60008219821115614ae957614ae9614a6f565b500190565b600082821015614b0057614b00614a6f565b500390565b6000817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615614b3d57614b3d614a6f565b500290565b60006060820173ffffffffffffffffffffffffffffffffffffffff861683526020858185015260606040850152818551808452608086019150828701935060005b81811015614b9f57845183529383019391830191600101614b83565b509098975050505050505050565b60008351614bbf818460208801614563565b835190830190614bd3818360208801614563565b7f2e6a736f6e0000000000000000000000000000000000000000000000000000009101908152600501949350505050565b600060208083526000845481600182811c915080831680614c2657607f831692505b8583108103614c5c577f4e487b710000000000000000000000000000000000000000000000000000000085526022600452602485fd5b878601838152602001818015614c795760018114614ca857614cd3565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00861682528782019650614cd3565b60008b81526020902060005b86811015614ccd57815484820152908501908901614cb4565b83019750505b50949998505050505050505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b600082614d2057614d20614ce2565b500490565b600082614d3457614d34614ce2565b500690565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b600073ffffffffffffffffffffffffffffffffffffffff808716835280861660208401525083604083015260806060830152614da7608083018461458f565b9695505050505050565b600060208284031215614dc357600080fd5b8151611ea6816144ff56fe0001020903110a19042112290b311a3905412245134d2a550c5d32651b6d3a7506264262237d468514804e8d2b95569d0d495ea533a966b11c886eb93bc176c9071727374353637324837e9b47af86c7155181ad4fd18ed32c9096db57d59ee30e2e4a6a5f92a6be3498aae067ddb2eb1d5989b56fd7baf33ca0c2ee77e5caf7ff0810182028303840444c545c646c7425617c847f8c949c48a4a8b087b8c0c816365272829aaec650acd0d28fdad4e22d6991bd97dfdcea58b4d6f29fede4f6fe0f1f2f3f4b5b6b607b8b93a3a7b7bf357199c5abcfd9e168bcdee9b3f1ecf5fd1e3e5a7a8aa2b670c4ced8bbe8f0f4fc3d79a1c3cde7effb78cce6facbf9f8a2646970667358221220b4954f6fe2241c1d55057a8d79c6357054c216ceb70445eb3a57785bd9f6200464736f6c634300080d0033

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.