ETH Price: $2,857.86 (-9.72%)
Gas: 9 Gwei

Token

SneakerHeads (SNKH)
 

Overview

Max Total Supply

5,000 SNKH

Holders

2,275

Market

Volume (24H)

0.1769 ETH

Min Price (24H)

$56.58 @ 0.019799 ETH

Max Price (24H)

$85.74 @ 0.030000 ETH
Filtered by Token Holder
soundman.eth
Balance
4 SNKH
0xdfa4a8f81f274eb5347365fa2e55a6584a8c861a
Loading...
Loading
Loading...
Loading
Loading...
Loading

OVERVIEW

Sneakerheads is a collection of 5000 unique NFTs designed by legendary artist and founder Ali Dawood. Over 40 meticulously designed 3D, hand-drawn base models with unrivaled levels of detail - capturing the look, feel, and style of a sneaker like never before.

# Exchange Pair Price  24H Volume % Volume

Contract Source Code Verified (Exact Match)

Contract Name:
SneakerHeads

Compiler Version
v0.8.9+commit.e5eed63a

Optimization Enabled:
Yes with 2000 runs

Other Settings:
default evmVersion
File 1 of 21 : SneakerHeads.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
//                                                                                                                                            //
//                                                                                                                                            //
//                                                                                                                                            //
//                 -+**+-   +++: :+++.+++++++  ++++++  =+++ .+++==++++++-+++++-       :+++: +++=:++++++= .+++++=  +++++-     -+**+-           //
//               -@@@@@@@# +@@@: @@@**@@@@@@= *@@@@@+ -@@@+:%@@%=@@@@@@%#@@@@@@@:    .@@@# =@@@-@@@@@@@. %@@@@@: +@@@@@@%. -%@@@@@@#          //
//              -@@@# =@@@-@@@@ *@@%=@@@*... +@@@@@@ .@@@#-@@@*.%@@%:..+@@@+.@@@#    #@@@.:@@@+#@@@-... %@@@@@# -@@@+.%@@=:@@@# =@@@          //
//              %@@@=.@@@*@@@@*-@@@-@@@%    +@@%%@@= %@@@*@@@= #@@@:  .@@@# -@@@=   =@@@- @@@#+@@@+    #@@#@@@..@@@# :@@@-*@@@=.@@@=          //
//              #@@@#    %@@@@-@@@+#@@@-:. -@@%=@@@ +@@@@@@@: =@@@*:: #@@@..@@@#   .@@@#:#@@@-@@@@::  *@@*#@@* #@@@  @@@% *@@@#               //
//              -@@@@:  +@@@@@#@@#+@@@@@@::@@@.%@@=:@@@@@@%. :@@@@@@++@@@*=%@@*    %@@@@@@@@=%@@@@@% *@@#:@@@.+@@@: #@@@- :@@@@:              //
//               %@@@# -@@@+@@@@@-@@@#++-.@@@=+@@@.@@@@@@@.  %@@@+++-@@@@@@@*:    *@@@+#@@@#*@@@+++.+@@@-#@@+:@@@+ +@@@*   #@@@*              //
//           ===.-@@@@.@@@=*@@@@-@@@%   .@@@@@@@@=*@@@%@@@  *@@@-  .@@@#%@@#     -@@@= %@@@=@@@+   =@@@@@@@@.@@@% :@@@%+==::@@@%              //
//          *@@% :@@@%*@@# @@@@+#@@@:  .%@@#+@@@%-@@@=%@@% =@@@*   #@@@:@@@+    .@@@# *@@@-@@@%   -@@@+*@@@=#@@@:.%@@#+@@@ .@@@#              //
//          %@@#=%@@@+@@@.:@@@#+@@@@##=%@@# =@@@+@@@# @@@*:@@@@##*+@@@==@@@-    %@@@.-@@@+#@@@%##=@@@- #@@%+@@@%#@@@+ *@@%=%@@@.              //
//          .#@@@@%=:@@@= +@@@-@@@@@@%%@@%  @@@%#@@@ .@@@+%@@@@@@+@@@# #@@@    *@@@- @@@#+@@@@@@%@@@= -@@@*@@@@@%*-   .*@@@@%+                //
//                                                                                                                                            //
//                                                                                                                                            //
//                                                                                                                                            //
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

import "../libs/Withdraw.sol";
import "../libs/MerkleProof.sol";
import "../libs/SingleMint.sol";
import "./Stocking.sol";
import "../libs/ERC721Mint.sol";

contract SneakerHeads is ERC721Mint, Stocking, SingleMint, MerkleProofVerify, Withdraw {

    /**
    @notice Mint struct for manage the waiting list, only the sales dates are used.
    */
    Mint public waiting;

    /**
    @notice Set default value au the collection.
    */
    constructor(
        string memory baseURI
    )
        ERC721("SneakerHeads", "SNKH")
        Withdraw()
    {
        setMaxSupply(5_000);
        setReserve(50);
        setBaseUri(baseURI);
        setStartAt(1);

        setMint(Mint(1655575200, 2097439200, 2, 2, 0.25 ether, false));
        waiting = Mint(1655582400, 2097439200, 1, 1, 0.25 ether, false);

        withdrawAdd(Part(0xb224811F71c803af1762CC6AEfd995edbfAFBD42, 10));
        withdrawAdd(Part(0x025B188919DC10b42aE5bC85134300628F834E96, 90));
    }

    /**
    @notice Mint for all non-holder with MerkleTree validation
    @dev _type: 1 OG, 2 WL, 3 RAFFLE, 4 WAITING
         _type need to be same like in the MerkleTree.
         _count is used only for OG whitelisted, for all others it is 1
    */
    function mint(
        uint256 _type,
        bytes32[] memory _proof,
        uint16 _count
    ) public payable
        notSoldOut(_count)
        canMint(_count)
        merkleVerify(_proof, keccak256(abi.encodePacked(_msgSender(), _type)))
        nonReentrant
    {
        require(_type > 0 && _type <= 4, "Bad _type value");

        uint256 max = _type == 1 ? 2 : 1;

        if(_type == 4){
            require(waitingIsOpen(), "Waiting list not opened");
        }

        require(balance[_msgSender()] <= max, "Max per wallet limit");

        _mintTokens(_msgSender(), _count);
    }

    /**
    @dev Required override to select the correct baseTokenURI.
     */
    function _baseURI() internal view virtual override returns (string memory) {
        return getBaseTokenURI();
    }

    /**
    @notice Change the values of the global Mint struct waiting
    @dev Only sales dates are used.
     */
    function waitingIsOpen() public view returns(bool) {
        return waiting.start > 0 && uint64(block.timestamp) >= waiting.start && uint64(block.timestamp) <= waiting.end  && !waiting.paused;
    }

    /**
    @notice Change the values of the global Mint struct waiting
    @dev Only sales dates are used.
     */
    function setWaitingMint(Mint memory _waiting) public onlyOwnerOrAdmins {
        waiting = _waiting;
    }

    /**
    @notice Block transfers while stocking.
    @dev from and to are not used
     */
    function _beforeTokenTransfer(address, address, uint256 tokenId) internal view override {
        require(stocking[tokenId].started == 0 || stockingTransfer == true,"Token Stocking");
    }

}

File 2 of 21 : Withdraw.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

import "@openzeppelin/contracts/utils/math/SafeMath.sol";
import "./Admins.sol";

contract Withdraw is Admins {
    using SafeMath for uint256;

    /**
    @notice Struct containing the association between the wallet and its share
    @dev The share can be /100 or /1000 or something else like /50
    */
    struct Part {
        address wallet;
        uint256 salePart;
    }

    /**
    @notice Stock the parts of each wallets
    */
    Part[] public parts;

    /**
    @dev Calculation of the divider for the calculation of each part
    */
    uint256 public saleDivider;

    /**
    @notice Add a new wallet in the withdraw process
    @dev this method is only internal, it's not possible to add someone after the contract minting
    */
    function withdrawAdd(Part memory _part) internal {
        parts.push(_part);
        saleDivider += _part.salePart;
    }

    /**
    @notice Run the transfer of all ETH to the wallets with each % part
    */
    function withdrawSales() public onlyOwnerOrAdmins {

        uint256 balance = address(this).balance;
        require(balance > 0, "Sales Balance = 0");

        for (uint8 i = 0; i < parts.length; i++) {
            if (parts[i].salePart > 0) {
                _withdraw(parts[i].wallet, balance.mul(parts[i].salePart).div(saleDivider));
            }
        }

        _withdraw(owner(), address(this).balance);
    }

    /**
    @notice Do a transfer ETH to _address
    */
    function _withdraw(address _address, uint256 _amount) private {
        (bool success, ) = _address.call{value: _amount}("");
        require(success, "Transfer failed.");
    }
}

File 3 of 21 : MerkleProof.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol";
import "./Admins.sol";

abstract contract MerkleProofVerify is Admins {
    using MerkleProof for bytes32[];

    /**
    @dev hash of the root of the merkle
    */
    bytes32 public merkleRoot;

    /**
    @dev Used for verify the _proof and the _leaf
        The _leaf need to be calculated by the contract itself
        The _proof is calculated by the server, not by the contract
     */
    modifier merkleVerify(bytes32[] memory _proof, bytes32 _leaf){
        merkleCheck(_proof, _leaf);
        _;
    }

    /**
    @notice Verify the proof of the leaf.
    @dev (see @dev merkleVerify)
    */
    function merkleCheck(bytes32[] memory _proof, bytes32 _leaf) public view {
        require(_proof.verify(merkleRoot, _leaf), "Proof not valid");
    }

    /**
    @dev onlyOwner can change the root of the merkle.this
        Change root need to be done only if there is no pending tx during the mint.
    */
    function setMerkleRoot(bytes32 _merkleRoot) public onlyOwnerOrAdmins {
        merkleRoot = _merkleRoot;
    }
}

File 4 of 21 : SingleMint.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "./interface/ISingleMint.sol";
import "./Admins.sol";

abstract contract SingleMint is ISingleMint, Admins {

    /**
    @notice Stock all data about the minting process: sales date, price, max per tx, max per wallet, pause.
    */
    Mint public mints;

    /**
    @notice Stock the count of token minted by a wallet.
    @dev Only used if the max par wallet is > 0.
    */
    mapping(address => uint16) balance;

    /**
    @notice Verify if the minting process is available for a wallet and a token count
    @dev Does not check if it's soldout, only if the wallet can mint (good time, good price, no max per tx/wallet)
    @dev add ~13.000 gas if max per wallet === 0
         add ~32.000 gas if max per wallet > 0 first time
         add ~20.000 gas if max per wallet > 0 next time
    */
    modifier canMint(uint16 _count) virtual {

        require(mintIsOpen(), "Mint not open");
        require(_count <= mints.maxPerTx, "Max per tx limit");
        require(msg.value >= mintPrice(_count), "Value limit");

        if(mints.maxPerWallet > 0){
            require(balance[_msgSender()] + _count <= mints.maxPerWallet, "Max per wallet limit");
            balance[_msgSender()] += _count;
        }
        _;
    }

    /**
    @dev Only owner can update the Mint data: sales date, price, max per tx, max per wallet, pause.
    */
    function setMint(Mint memory _mint) public override onlyOwnerOrAdmins {
        mints = _mint;
        emit EventSaleChange(_mint);
    }

    /**
    @notice Shortcut for change only the pause variable of the Mint struct
    @dev Only owner can pause the mint
    */
    function pauseMint(bool _pause) public override onlyOwnerOrAdmins {
        mints.paused = _pause;
    }

    /**
    @notice Check if the mint process is open, by checking the block.timestamp
    @return True if sales date are between Mint.start and Mint.end
    */
    function mintIsOpen() public view override returns(bool){
        return mints.start > 0 && uint64(block.timestamp) >= mints.start && uint64(block.timestamp) <= mints.end  && !mints.paused;
    }

    /**
    @notice Calculation of the current token price
    */
    function mintPrice(uint256 _count) public view virtual override returns (uint256){
        return mints.price * _count;
    }

    /**
    @return The amount of token minted by the _wallet
    */
    function mintBalance(address _wallet) public view override returns(uint16){
        return balance[_wallet];
    }
}

File 5 of 21 : Stocking.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../libs/Admins.sol";
import "../libs/ERC721.sol";

/**
    @dev based on Moonbirds ERC721A Nested Contract
*/
abstract contract Stocking is ERC721, Admins {

    /**
    @dev Emitted when a Sneaker Heads begins stocking.
     */
    event Stocked(uint256 indexed tokenId);

    /**
    @dev Emitted when a Sneaker Heads stops stocking; either through standard means or
    by expulsion.
     */
    event UnStocked(uint256 indexed tokenId);

    /**
    @dev Emitted when a Sneaker Heads is expelled from the stock.
     */
    event Expelled(uint256 indexed tokenId);

    /**
    @notice Whether stocking is currently allowed.
    @dev If false then stocking is blocked, but unstocking is always allowed.
     */
    bool public stockingOpen = false;

    /**
    @dev MUST only be modified by safeTransferWhileStocking(); if set to 2 then
    the _beforeTokenTransfer() block while stocking is disabled.
     */
    bool internal stockingTransfer;

    uint64 internal stockingStepFirst = 30 days;
    uint64 internal stockingStepNext = 60 days;
    /**
    @dev data for each token stoked
     */
    struct StockingToken {
        uint64 started;
        uint64 total;
        uint64 level;
    }

    /**
    @dev tokenId to stocking data.
     */
    mapping(uint256 => StockingToken) internal stocking;

    /**
    @notice Toggles the `stockingOpen` flag.
     */
    function setStockingOpen(bool open) external onlyOwnerOrAdmins {
        stockingOpen = open;
    }

    /**
    @notice Returns the length of time, in seconds, that the Sneaker has
    stocking.
    @dev stocking is tied to a specific Sneaker Heads, not to the owner, so it doesn't
    reset upon sale.
    @return stocked Whether the Sneaker Heads is currently stocking. MAY be true with
    zero current stocking if in the same block as stocking began.
    @return current Zero if not currently stocking, otherwise the length of time
    since the most recent stocking began.
    @return total Total period of time for which the Sneaker Heads has stocking across
    its life, including the current period.
    @return level the current level of the token
     */
    function stockingPeriod(uint256 tokenId) public view returns (bool stocked, uint64 current, uint64 total, uint64 level)
    {
        stocked = stocking[tokenId].started != 0;
        current = stockingCurrent(tokenId);
        level = stockingLevel(tokenId);
        total = current + stocking[tokenId].total;
    }

    function stockingCurrent(uint256 tokenId) public view returns(uint64){
        return stocking[tokenId].started != 0 ? uint64(block.timestamp) - stocking[tokenId].started : 0;
    }

    function stockingLevel(uint256 tokenId) public view returns(uint64){

        uint64 level = stocking[tokenId].level;

        if(level == 0 ){
            return
                stockingCurrent(tokenId) / stockingStepFirst >= 1 ?
                ((stockingCurrent(tokenId) - stockingStepFirst) / stockingStepNext) + 1 :
                0;
        }

        return level + (stockingCurrent(tokenId) / stockingStepNext);
    }

    function setStockingStep(uint64 _durationFirst, uint64 _durationNext) public onlyOwnerOrAdmins {
        stockingStepFirst = _durationFirst;
        stockingStepNext = _durationNext;
    }

    /**
    @notice Changes the Sneaker Heads lock status for a token
    @dev If the stocking is disable, the unlock is available
    */
    function toggleStocking(uint256 tokenId) internal {

        require(
            ownerOf(tokenId) == _msgSender() ||
            getApproved(tokenId) == _msgSender() ||
            isApprovedForAll(ownerOf(tokenId), _msgSender()
            ), "Not approved or owner");

        if (stocking[tokenId].started == 0) {
            storeToken(tokenId);
        } else {
            destockToken(tokenId);
        }
    }

    /**
    @notice Lock the token
    */
    function storeToken(uint256 tokenId) internal {
        require(stockingOpen, "Stocking closed");
        stocking[tokenId].started = uint64(block.timestamp);
        emit Stocked(tokenId);
    }

    /**
    @notice Unlock the token
    */
    function destockToken(uint256 tokenId) internal {
        stocking[tokenId].level = stockingLevel(tokenId);
        stocking[tokenId].total += stockingCurrent(tokenId);
        stocking[tokenId].started = 0;
        emit UnStocked(tokenId);
    }

    /**
    @notice Changes the Sneaker Heads stocking status for many tokenIds
     */
    function toggleStocking(uint256[] calldata tokenIds) external {
        for (uint256 i = 0; i < tokenIds.length; ++i) {
            toggleStocking(tokenIds[i]);
        }
    }
    /**
    @notice Transfer a token between addresses while the Sneaker Heads is minting, thus not resetting the stocking period.
     */
    function safeTransferWhileStocking(
        address from,
        address to,
        uint256 tokenId
    ) external {
        require(ownerOf(tokenId) == _msgSender(), "Only owner");
        stockingTransfer = true;
        safeTransferFrom(from, to, tokenId);
        stockingTransfer = false;
    }


    /**
    @notice Only owner ability to expel a Sneaker Heads from the stock.
    @dev As most sales listings use off-chain signatures it's impossible to
    detect someone who has stocked and then deliberately undercuts the floor
    price in the knowledge that the sale can't proceed. This function allows for
    monitoring of such practices and expulsion if abuse is detected, allowing
    the undercutting sneaker to be sold on the open market. Since OpenSea uses
    isApprovedForAll() in its pre-listing checks, we can't block by that means
    because stocking would then be all-or-nothing for all of a particular owner's
    Sneaker Heads.
     */
    function expelFromStock(uint256 tokenId) external onlyOwnerOrAdmins {
        require(stocking[tokenId].started != 0, "Not stocked");
        destockToken(tokenId);
        emit Expelled(tokenId);
    }
}

File 6 of 21 : ERC721Mint.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "./ERC721.sol";
import "./Admins.sol";

abstract contract ERC721Mint is ERC721, Admins, ReentrancyGuard {

    /**
    @notice Max supply available for this contract
    */
    uint32 public MAX_SUPPLY;

    /**
    @notice Amount of token reserved for team project/giveaway/other
    */
    uint32 public RESERVE;

    /**
    @notice Tracker for the total minted
    */
    uint32 public mintTracked;

    /**
    @notice Tracker for the total burned
    */
    uint32 public burnedTracker;

    /**
    @notice The number of the First token Id
    */
    uint8 public START_AT = 1;

    /**
    @notice The base URI for metadata for all tokens
    */
    string public baseTokenURI;


    /**
    @dev Verify if the contract is soldout
    */
    modifier notSoldOut(uint256 _count) {
        require(mintTracked + uint32(_count) <= MAX_SUPPLY, "Sold out!");
        _;
    }


    /**
    @notice Set the max supply of the contract
    @dev only internal, can't be change after contract deployment
    */
    function setMaxSupply(uint32 _maxSupply) internal {
        MAX_SUPPLY = _maxSupply;
    }

    /**
    @notice Set the amount of reserve tokens
    @dev only internal, can't be change after contract deployment
    */
    function setReserve(uint32 _reserve) internal {
        RESERVE = _reserve;
    }

    /**
    @notice Set the number of the first token
    @dev only internal, can't be change after contract deployment
    */
    function setStartAt(uint8 _start) internal {
        START_AT = _start;
    }

    /**
    @notice Set the base URI for metadata of all tokens
    */
    function setBaseUri(string memory baseURI) public onlyOwnerOrAdmins {
        baseTokenURI = baseURI;
    }

    /**
    @notice Get all tokenIds for a wallet
    @dev This method can revert if the mintedTracked is > 30000.
        it is not recommended to call this method from another contract.
    */
    function walletOfOwner(address _owner) public view virtual returns (uint32[] memory) {
        uint256 count = balanceOf(_owner);
        uint256 key = 0;
        uint32[] memory tokensIds = new uint32[](count);

        for (uint32 tokenId = START_AT; tokenId < mintTracked + START_AT; tokenId++) {
            if (_owners[tokenId] != _owner) continue;
            if (key == count) break;

            tokensIds[key] = tokenId;
            key++;
        }
        return tokensIds;
    }

    /**
    @notice Get the base URI for metadata of all tokens
    */
    function getBaseTokenURI() internal view returns(string memory){
        return baseTokenURI;
    }

    /**
    @notice Replace ERC721Enumerable.totalSupply()
    @return The total token available.
    */
    function totalSupply() public view returns (uint32) {
        return mintTracked - burnedTracker;
    }

    /**
    @notice Mint the next token
    @return the tokenId minted
    */
    function _mintToken(address wallet) internal returns(uint256){
        uint256 tokenId = uint256(mintTracked + START_AT);
        mintTracked += 1;
        _safeMint(wallet, tokenId);
        return tokenId;
    }

    /**
    @notice Mint the next tokens
    */
    function _mintTokens(address wallet, uint32 _count) internal{
        for (uint32 i = 0; i < _count; i++) {
            _mintToken(wallet);
        }
    }

    /**
    @notice Mint the tokens reserved for the team project
    @dev the tokens are minted to the owner of the contract
    */
    function reserve(uint32 _count) public virtual onlyOwnerOrAdmins {
        require(mintTracked + _count <= RESERVE, "Exceeded RESERVE_NFT");
        require(mintTracked + _count <= MAX_SUPPLY, "Sold out!");
        _mintTokens(_msgSender(), _count);
    }

    /**
    @notice Burn the token if is approve or owner
    */
    function burn(uint256 _tokenId) public virtual {
        require(_isApprovedOrOwner(_msgSender(), _tokenId), "Not owner nor approved");
        burnedTracker += 1;
        _burn(_tokenId);
    }
}

File 7 of 21 : SafeMath.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/math/SafeMath.sol)

pragma solidity ^0.8.0;

// CAUTION
// This version of SafeMath should only be used with Solidity 0.8 or later,
// because it relies on the compiler's built in overflow checks.

/**
 * @dev Wrappers over Solidity's arithmetic operations.
 *
 * NOTE: `SafeMath` is generally not needed starting with Solidity 0.8, since the compiler
 * now has built in overflow checking.
 */
library SafeMath {
    /**
     * @dev Returns the addition of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            uint256 c = a + b;
            if (c < a) return (false, 0);
            return (true, c);
        }
    }

    /**
     * @dev Returns the substraction of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b > a) return (false, 0);
            return (true, a - b);
        }
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            // Gas optimization: this is cheaper than requiring 'a' not being zero, but the
            // benefit is lost if 'b' is also tested.
            // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
            if (a == 0) return (true, 0);
            uint256 c = a * b;
            if (c / a != b) return (false, 0);
            return (true, c);
        }
    }

    /**
     * @dev Returns the division of two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b == 0) return (false, 0);
            return (true, a / b);
        }
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b == 0) return (false, 0);
            return (true, a % b);
        }
    }

    /**
     * @dev Returns the addition of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `+` operator.
     *
     * Requirements:
     *
     * - Addition cannot overflow.
     */
    function add(uint256 a, uint256 b) internal pure returns (uint256) {
        return a + b;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting on
     * overflow (when the result is negative).
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(uint256 a, uint256 b) internal pure returns (uint256) {
        return a - b;
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `*` operator.
     *
     * Requirements:
     *
     * - Multiplication cannot overflow.
     */
    function mul(uint256 a, uint256 b) internal pure returns (uint256) {
        return a * b;
    }

    /**
     * @dev Returns the integer division of two unsigned integers, reverting on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator.
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b) internal pure returns (uint256) {
        return a / b;
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting when dividing by zero.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(uint256 a, uint256 b) internal pure returns (uint256) {
        return a % b;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting with custom message on
     * overflow (when the result is negative).
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {trySub}.
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        unchecked {
            require(b <= a, errorMessage);
            return a - b;
        }
    }

    /**
     * @dev Returns the integer division of two unsigned integers, reverting with custom message on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator. Note: this function uses a
     * `revert` opcode (which leaves remaining gas untouched) while Solidity
     * uses an invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        unchecked {
            require(b > 0, errorMessage);
            return a / b;
        }
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting with custom message when dividing by zero.
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {tryMod}.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        unchecked {
            require(b > 0, errorMessage);
            return a % b;
        }
    }
}

File 8 of 21 : Admins.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "@openzeppelin/contracts/access/Ownable.sol";

abstract contract Admins is Ownable{

    mapping(address => bool) private admins;

    /**
    @dev Set the wallet address who can pass the onlyAdmin modifier
    **/
    function setAdminAddress(address _admin, bool _active) public onlyOwner {
        admins[_admin] = _active;
    }

    /**
    @notice Check if the sender is owner() or admin
    **/
    modifier onlyOwnerOrAdmins() {
        require(admins[_msgSender()] == true || owner() == _msgSender(), "Ownable: caller is not the owner");
        _;
    }

}

File 9 of 21 : 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 10 of 21 : 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 11 of 21 : MerkleProof.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.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.
 */
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 Merklee 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)
        }
    }
}

File 12 of 21 : ISingleMint.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

/**
 * @title ERC-721 Non-Fungible Token Standard, optional lock extension
 * @dev See https://eips.ethereum.org/EIPS/eip-721
 */
interface ISingleMint {

    /**
    @notice Stock all data about the minting process: sales date, price, max per tx, max per wallet, pause.
    */
    struct Mint {
        uint64 start;
        uint64 end;
        uint16 maxPerWallet;
        uint16 maxPerTx;
        uint256 price;
        bool paused;
    }

    /**
    @dev Emitted when the Mint data are changed
    */
    event EventSaleChange(Mint sale);

    /**
    @notice Set new values for Mint struct
    */
    function setMint(Mint memory _sale) external;

    /**
    @notice Shortcut for change only the pause variable of the Mint struct
    */
    function pauseMint(bool _pause) external;

    /**
    @notice Check if the mint process is open, by checking the block.timestamp
    */
    function mintIsOpen() external returns(bool);

    /**
    @notice Calculation of the current token price
    */
    function mintPrice(uint256 _count) external returns(uint256);

    /**
    @return The amount of token minted by the _wallet
    */
    function mintBalance(address _wallet) external view returns(uint16);
}

File 13 of 21 : ERC721.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

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

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

    // Mapping from token ID to approved address
    mapping(uint32 => address) internal _tokenApprovals;

    // Mapping from owner to operator approvals
    mapping(address => mapping(address => bool)) internal _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 ||
            super.supportsInterface(interfaceId);
    }

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

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

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

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

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

        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 = ERC721.ownerOf(tokenId);
        require(to != owner, "ERC721: approval to current owner");

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

        _approve(to, tokenId);
    }

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

        return _tokenApprovals[uint32(tokenId)];
    }

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

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

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

        _transfer(from, to, tokenId);
    }

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

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

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

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

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

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

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

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

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

        _balances[to] += 1;
        _owners[uint32(tokenId)] = to;

        emit Transfer(address(0), to, tokenId);

        _afterTokenTransfer(address(0), to, tokenId);
    }

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

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

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

        _balances[owner] -= 1;
        delete _owners[uint32(tokenId)];

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

        _afterTokenTransfer(owner, address(0), tokenId);
    }

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

        _beforeTokenTransfer(from, to, tokenId);

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

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

        emit Transfer(from, to, tokenId);

        _afterTokenTransfer(from, to, tokenId);
    }

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

    /**
     * @dev Approve `operator` to operate on all of `owner` tokens
     *
     * Emits a {ApprovalForAll} event.
     */
    function _setApprovalForAll(
        address owner,
        address operator,
        bool approved
    ) internal virtual {
        require(owner != operator, "ERC721: approve to caller");
        _operatorApprovals[owner][operator] = approved;
        emit ApprovalForAll(owner, operator, approved);
    }

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

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

    /**
     * @dev Hook that is called after any transfer of tokens. This includes
     * minting and burning.
     *
     * Calling conditions:
     *
     * - when `from` and `to` are both non-zero.
     * - `from` and `to` are never both zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _afterTokenTransfer(
        address from,
        address to,
        uint256 tokenId
    ) internal virtual {}
}

File 14 of 21 : IERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

File 15 of 21 : IERC721Receiver.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721Receiver.sol)

pragma solidity ^0.8.0;

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

File 16 of 21 : 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 17 of 21 : 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 18 of 21 : 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 19 of 21 : 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 20 of 21 : 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 21 of 21 : 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;
    }
}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"string","name":"baseURI","type":"string"}],"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":[{"components":[{"internalType":"uint64","name":"start","type":"uint64"},{"internalType":"uint64","name":"end","type":"uint64"},{"internalType":"uint16","name":"maxPerWallet","type":"uint16"},{"internalType":"uint16","name":"maxPerTx","type":"uint16"},{"internalType":"uint256","name":"price","type":"uint256"},{"internalType":"bool","name":"paused","type":"bool"}],"indexed":false,"internalType":"struct ISingleMint.Mint","name":"sale","type":"tuple"}],"name":"EventSaleChange","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Expelled","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Stocked","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":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"UnStocked","type":"event"},{"inputs":[],"name":"MAX_SUPPLY","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"RESERVE","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"START_AT","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"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":"uint256","name":"_tokenId","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"burnedTracker","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"expelFromStock","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32[]","name":"_proof","type":"bytes32[]"},{"internalType":"bytes32","name":"_leaf","type":"bytes32"}],"name":"merkleCheck","outputs":[],"stateMutability":"view","type":"function"},{"inputs":[],"name":"merkleRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_type","type":"uint256"},{"internalType":"bytes32[]","name":"_proof","type":"bytes32[]"},{"internalType":"uint16","name":"_count","type":"uint16"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"_wallet","type":"address"}],"name":"mintBalance","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mintIsOpen","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_count","type":"uint256"}],"name":"mintPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mintTracked","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mints","outputs":[{"internalType":"uint64","name":"start","type":"uint64"},{"internalType":"uint64","name":"end","type":"uint64"},{"internalType":"uint16","name":"maxPerWallet","type":"uint16"},{"internalType":"uint16","name":"maxPerTx","type":"uint16"},{"internalType":"uint256","name":"price","type":"uint256"},{"internalType":"bool","name":"paused","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"parts","outputs":[{"internalType":"address","name":"wallet","type":"address"},{"internalType":"uint256","name":"salePart","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bool","name":"_pause","type":"bool"}],"name":"pauseMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint32","name":"_count","type":"uint32"}],"name":"reserve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferWhileStocking","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"saleDivider","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_admin","type":"address"},{"internalType":"bool","name":"_active","type":"bool"}],"name":"setAdminAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"baseURI","type":"string"}],"name":"setBaseUri","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_merkleRoot","type":"bytes32"}],"name":"setMerkleRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"components":[{"internalType":"uint64","name":"start","type":"uint64"},{"internalType":"uint64","name":"end","type":"uint64"},{"internalType":"uint16","name":"maxPerWallet","type":"uint16"},{"internalType":"uint16","name":"maxPerTx","type":"uint16"},{"internalType":"uint256","name":"price","type":"uint256"},{"internalType":"bool","name":"paused","type":"bool"}],"internalType":"struct ISingleMint.Mint","name":"_mint","type":"tuple"}],"name":"setMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"open","type":"bool"}],"name":"setStockingOpen","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint64","name":"_durationFirst","type":"uint64"},{"internalType":"uint64","name":"_durationNext","type":"uint64"}],"name":"setStockingStep","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"components":[{"internalType":"uint64","name":"start","type":"uint64"},{"internalType":"uint64","name":"end","type":"uint64"},{"internalType":"uint16","name":"maxPerWallet","type":"uint16"},{"internalType":"uint16","name":"maxPerTx","type":"uint16"},{"internalType":"uint256","name":"price","type":"uint256"},{"internalType":"bool","name":"paused","type":"bool"}],"internalType":"struct ISingleMint.Mint","name":"_waiting","type":"tuple"}],"name":"setWaitingMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"stockingCurrent","outputs":[{"internalType":"uint64","name":"","type":"uint64"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"stockingLevel","outputs":[{"internalType":"uint64","name":"","type":"uint64"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"stockingOpen","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"stockingPeriod","outputs":[{"internalType":"bool","name":"stocked","type":"bool"},{"internalType":"uint64","name":"current","type":"uint64"},{"internalType":"uint64","name":"total","type":"uint64"},{"internalType":"uint64","name":"level","type":"uint64"}],"stateMutability":"view","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":"tokenIds","type":"uint256[]"}],"name":"toggleStocking","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"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":"waiting","outputs":[{"internalType":"uint64","name":"start","type":"uint64"},{"internalType":"uint64","name":"end","type":"uint64"},{"internalType":"uint16","name":"maxPerWallet","type":"uint16"},{"internalType":"uint16","name":"maxPerTx","type":"uint16"},{"internalType":"uint256","name":"price","type":"uint256"},{"internalType":"bool","name":"paused","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"waitingIsOpen","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_owner","type":"address"}],"name":"walletOfOwner","outputs":[{"internalType":"uint32[]","name":"","type":"uint32[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdrawSales","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60806040526009805460ff60801b1916600160801b179055600b80546c4f1a000000000000278d00000061ff01600160901b03199091161790553480156200004657600080fd5b5060405162004a8338038062004a83833981016040819052620000699162000603565b604080518082018252600c81526b536e65616b6572486561647360a01b6020808301918252835180850190945260048452630a69c96960e31b908401528151919291620000b99160009162000547565b508051620000cf90600190602084019062000547565b505050620000ec620000e66200025760201b60201c565b6200025b565b6001600855600980546001600160401b0319166432000013881790556200011381620002ad565b6009805460ff60801b1916600160801b1790556040805160c0810182526362ae12a08152637d0461e06020820152600291810182905260608101919091526703782dace9d900006080820152600060a0820152620001719062000335565b6040805160c0810182526362ae2ec08152637d0461e0602080830191909152600182840181905260608301526703782dace9d9000060808301819052600060a090930192909252601480546001600160a01b03191672010001000000007d0461e00000000062ae2ec01790556015919091556016805460ff19169055815180830190925273b224811f71c803af1762cc6aefd995edbfafbd428252600a908201526200021d90620004a7565b6040805180820190915273025b188919dc10b42ae5bc85134300628f834e968152605a60208201526200025090620004a7565b5062000743565b3390565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b3360009081526007602052604090205460ff16151560011480620002db57506006546001600160a01b031633145b6200031c5760405162461bcd60e51b8152602060048201819052602482015260008051602062004a6383398151915260448201526064015b60405180910390fd5b80516200033190600a90602084019062000547565b5050565b3360009081526007602052604090205460ff161515600114806200036357506006546001600160a01b031633145b620003a05760405162461bcd60e51b8152602060048201819052602482015260008051602062004a63833981519152604482015260640162000313565b8051600d805460208085018051604080880180516060808b0180516001600160401b039b8c166001600160801b0319909a168a1768010000000000000000978d16979097029690961763ffffffff60801b1916600160801b61ffff9485160261ffff60901b191617600160901b96841696909602959095179098556080808b018051600e5560a0808d018051600f805460ff191691151591909117905586519a8b529751909b169789019790975291518116928701929092529151169484019490945290519282019290925290511515918101919091527f90f1d68c8d2a969b075d5a61a7af205332fb34b610c46d9194024bd707193c9a9060c00160405180910390a150565b60128054600181018255600091825282517fbb8a6a4669ba250d26cd7a459eca9d215f8307e33aebe50379bc5a3617ec3444600290920291820180546001600160a01b0319166001600160a01b0390921691909117905560208301517fbb8a6a4669ba250d26cd7a459eca9d215f8307e33aebe50379bc5a3617ec344590910181905560138054919290916200053f908490620006df565b909155505050565b828054620005559062000706565b90600052602060002090601f016020900481019282620005795760008555620005c4565b82601f106200059457805160ff1916838001178555620005c4565b82800160010185558215620005c4579182015b82811115620005c4578251825591602001919060010190620005a7565b50620005d2929150620005d6565b5090565b5b80821115620005d25760008155600101620005d7565b634e487b7160e01b600052604160045260246000fd5b600060208083850312156200061757600080fd5b82516001600160401b03808211156200062f57600080fd5b818501915085601f8301126200064457600080fd5b815181811115620006595762000659620005ed565b604051601f8201601f19908116603f01168101908382118183101715620006845762000684620005ed565b8160405282815288868487010111156200069d57600080fd5b600093505b82841015620006c15784840186015181850187015292850192620006a2565b82841115620006d35760008684830101525b98975050505050505050565b600082198211156200070157634e487b7160e01b600052601160045260246000fd5b500190565b600181811c908216806200071b57607f821691505b602082108114156200073d57634e487b7160e01b600052602260045260246000fd5b50919050565b61431080620007536000396000f3fe60806040526004361061034a5760003560e01c8063715018a6116101bb578063b88d4fde116100f7578063d88cc3ff11610095578063e985e9c51161006f578063e985e9c514610abe578063f2fde38b14610b07578063f30e6e7714610b27578063fc08d6ba14610b4757600080fd5b8063d88cc3ff14610a02578063dfc7379d14610a4f578063e6a72acf14610a9e57600080fd5b8063c9eb4662116100d1578063c9eb46621461096e578063cef2284c146109ad578063d305122f146109cd578063d547cfb7146109ed57600080fd5b8063b88d4fde146108fb578063bf7b766d1461091b578063c87b56dd1461094e57600080fd5b806395d89b4111610164578063a22cb4651161013e578063a22cb46514610814578063aa1152ab14610834578063b0adae2014610849578063b405c5491461086957600080fd5b806395d89b41146107ba5780639d2cc436146107cf578063a0bcfc7f146107f457600080fd5b80637cb64759116101955780637cb64759146107695780638023b297146107895780638da5cb5b1461079c57600080fd5b8063715018a61461071f57806372b324ad1461073457806376bccedb1461074957600080fd5b806337369b221161028a5780635bc63820116102335780636352211e1161020d5780636352211e146106a55780636667df6c146106c557806368fb5c11146106db57806370a08231146106ff57600080fd5b80635bc63820146106455780635d85f1bb146106655780635fb725d11461068557600080fd5b806342842e0e1161026457806342842e0e146105d857806342966c68146105f8578063438b63001461061857600080fd5b806337369b221461057657806340d2123c1461058b578063427b34b3146105ab57600080fd5b80631aa8219c116102f7578063269d9a5a116102d1578063269d9a5a146104c357806328e98381146104e35780632eb4a7ab1461053557806332cb6b0c1461055957600080fd5b80631aa8219c14610463578063213c0be81461048357806323b872dd146104a357600080fd5b8063081812fc11610328578063081812fc146103df578063095ea7b31461041757806318160ddd1461043957600080fd5b806301ffc9a71461034f5780630628e3411461038457806306fdde03146103bd575b600080fd5b34801561035b57600080fd5b5061036f61036a366004613a1d565b610b61565b60405190151581526020015b60405180910390f35b34801561039057600080fd5b506103a461039f366004613a3a565b610c46565b60405167ffffffffffffffff909116815260200161037b565b3480156103c957600080fd5b506103d2610d36565b60405161037b9190613aab565b3480156103eb57600080fd5b506103ff6103fa366004613a3a565b610dc8565b6040516001600160a01b03909116815260200161037b565b34801561042357600080fd5b50610437610432366004613ada565b610e80565b005b34801561044557600080fd5b5061044e610fb2565b60405163ffffffff909116815260200161037b565b34801561046f57600080fd5b506103a461047e366004613a3a565b610fe6565b34801561048f57600080fd5b5061043761049e366004613b04565b61102d565b3480156104af57600080fd5b506104376104be366004613b04565b6110b7565b3480156104cf57600080fd5b506104376104de366004613bc1565b61113f565b3480156104ef57600080fd5b506105036104fe366004613a3a565b611305565b60408051941515855267ffffffffffffffff93841660208601529183169184019190915216606082015260800161037b565b34801561054157600080fd5b5061054b60115481565b60405190815260200161037b565b34801561056557600080fd5b5060095461044e9063ffffffff1681565b34801561058257600080fd5b5061043761136d565b34801561059757600080fd5b506104376105a6366004613cd9565b61152e565b3480156105b757600080fd5b5060095461044e906c01000000000000000000000000900463ffffffff1681565b3480156105e457600080fd5b506104376105f3366004613b04565b61158d565b34801561060457600080fd5b50610437610613366004613a3a565b6115a8565b34801561062457600080fd5b50610638610633366004613d1e565b611646565b60405161037b9190613d39565b34801561065157600080fd5b50610437610660366004613d83565b61176e565b34801561067157600080fd5b50610437610680366004613db6565b6117f3565b34801561069157600080fd5b506104376106a0366004613e2b565b61182f565b3480156106b157600080fd5b506103ff6106c0366004613a3a565b61191e565b3480156106d157600080fd5b5061054b60135481565b3480156106e757600080fd5b5060095461044e90600160401b900463ffffffff1681565b34801561070b57600080fd5b5061054b61071a366004613d1e565b6119b0565b34801561072b57600080fd5b50610437611a50565b34801561074057600080fd5b5061036f611ab6565b34801561075557600080fd5b50610437610764366004613e55565b611b1b565b34801561077557600080fd5b50610437610784366004613a3a565b611c8b565b610437610797366004613e7b565b611d09565b3480156107a857600080fd5b506006546001600160a01b03166103ff565b3480156107c657600080fd5b506103d2612168565b3480156107db57600080fd5b5060095461044e90640100000000900463ffffffff1681565b34801561080057600080fd5b5061043761080f366004613f2a565b612177565b34801561082057600080fd5b5061043761082f366004613d83565b612203565b34801561084057600080fd5b5061036f61220e565b34801561085557600080fd5b50610437610864366004613bc1565b612273565b34801561087557600080fd5b506014546015546016546108b89267ffffffffffffffff80821693600160401b83049091169261ffff600160801b8404811693600160901b900416919060ff1686565b6040805167ffffffffffffffff978816815296909516602087015261ffff93841694860194909452911660608401526080830152151560a082015260c00161037b565b34801561090757600080fd5b50610437610916366004613f73565b6123c6565b34801561092757600080fd5b5060095461093c90600160801b900460ff1681565b60405160ff909116815260200161037b565b34801561095a57600080fd5b506103d2610969366004613a3a565b612454565b34801561097a57600080fd5b5061098e610989366004613a3a565b61254a565b604080516001600160a01b03909316835260208301919091520161037b565b3480156109b957600080fd5b506104376109c8366004613a3a565b612582565b3480156109d957600080fd5b506104376109e8366004613fef565b612697565b3480156109f957600080fd5b506103d2612723565b348015610a0e57600080fd5b50610a3c610a1d366004613d1e565b6001600160a01b031660009081526010602052604090205461ffff1690565b60405161ffff909116815260200161037b565b348015610a5b57600080fd5b50600d54600e54600f546108b89267ffffffffffffffff80821693600160401b83049091169261ffff600160801b8404811693600160901b900416919060ff1686565b348015610aaa57600080fd5b5061054b610ab9366004613a3a565b6127b1565b348015610aca57600080fd5b5061036f610ad936600461400a565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b348015610b1357600080fd5b50610437610b22366004613d1e565b6127c2565b348015610b3357600080fd5b50610437610b42366004613fef565b6128a1565b348015610b5357600080fd5b50600b5461036f9060ff1681565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f80ac58cd000000000000000000000000000000000000000000000000000000001480610bf457507fffffffff0000000000000000000000000000000000000000000000000000000082167f5b5e139f00000000000000000000000000000000000000000000000000000000145b80610c4057507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff000000000000000000000000000000000000000000000000000000008316145b92915050565b6000818152600c6020526040812054600160801b900467ffffffffffffffff1680610cfe57600b5460019062010000900467ffffffffffffffff16610c8a85610fe6565b610c949190614060565b67ffffffffffffffff161015610cab576000610cf7565b600b5467ffffffffffffffff6a0100000000000000000000820481169162010000900416610cd885610fe6565b610ce29190614087565b610cec9190614060565b610cf79060016140b0565b9392505050565b600b546a0100000000000000000000900467ffffffffffffffff16610d2284610fe6565b610d2c9190614060565b610cf790826140b0565b606060008054610d45906140dc565b80601f0160208091040260200160405190810160405280929190818152602001828054610d71906140dc565b8015610dbe5780601f10610d9357610100808354040283529160200191610dbe565b820191906000526020600020905b815481529060010190602001808311610da157829003601f168201915b5050505050905090565b63ffffffff81166000908152600260205260408120546001600160a01b0316610e5e5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201527f697374656e7420746f6b656e000000000000000000000000000000000000000060648201526084015b60405180910390fd5b5063ffffffff166000908152600460205260409020546001600160a01b031690565b6000610e8b8261191e565b9050806001600160a01b0316836001600160a01b03161415610f155760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560448201527f72000000000000000000000000000000000000000000000000000000000000006064820152608401610e55565b336001600160a01b0382161480610f315750610f318133610ad9565b610fa35760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610e55565b610fad838361292d565b505050565b600954600090610fe19063ffffffff6c010000000000000000000000008204811691600160401b900416614117565b905090565b6000818152600c602052604081205467ffffffffffffffff1661100a576000610c40565b6000828152600c6020526040902054610c409067ffffffffffffffff1642614087565b336110378261191e565b6001600160a01b03161461108d5760405162461bcd60e51b815260206004820152600a60248201527f4f6e6c79206f776e6572000000000000000000000000000000000000000000006044820152606401610e55565b600b805461ff0019166101001790556110a783838361158d565b5050600b805461ff001916905550565b6110c2335b826129af565b6111345760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f7665640000000000000000000000000000006064820152608401610e55565b610fad838383612abe565b3360009081526007602052604090205460ff1615156001148061116c57506006546001600160a01b031633145b6111b85760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610e55565b8051600d805460208085018051604080880180516060808b01805167ffffffffffffffff9b8c167fffffffffffffffffffffffffffffffff00000000000000000000000000000000909a168a17600160401b978d1697909702969096177fffffffffffffffffffffffff00000000ffffffffffffffffffffffffffffffff16600160801b61ffff948516027fffffffffffffffffffffffff0000ffffffffffffffffffffffffffffffffffff1617600160901b96841696909602959095179098556080808b018051600e5560a0808d018051600f805460ff191691151591909117905586519a8b529751909b169789019790975291518116928701929092529151169484019490945290519282019290925290511515918101919091527f90f1d68c8d2a969b075d5a61a7af205332fb34b610c46d9194024bd707193c9a9060c00160405180910390a150565b6000818152600c602052604081205467ffffffffffffffff16151590808061132c85610fe6565b925061133785610c46565b6000868152600c602052604090205490915061136490600160401b900467ffffffffffffffff16846140b0565b91509193509193565b3360009081526007602052604090205460ff1615156001148061139a57506006546001600160a01b031633145b6113e65760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610e55565b47806114345760405162461bcd60e51b815260206004820152601160248201527f53616c65732042616c616e6365203d20300000000000000000000000000000006044820152606401610e55565b60005b60125460ff8216101561150f57600060128260ff168154811061145c5761145c614134565b90600052602060002090600202016001015411156114fd576114fd60128260ff168154811061148d5761148d614134565b906000526020600020906002020160000160009054906101000a90046001600160a01b03166114f86013546114f260128660ff16815481106114d1576114d1614134565b90600052602060002090600202016001015487612ce290919063ffffffff16565b90612cee565b612cfa565b806115078161414a565b915050611437565b5061152b6115256006546001600160a01b031690565b47612cfa565b50565b60115461153d90839083612d9d565b6115895760405162461bcd60e51b815260206004820152600f60248201527f50726f6f66206e6f742076616c696400000000000000000000000000000000006044820152606401610e55565b5050565b610fad838383604051806020016040528060008152506123c6565b6115b1336110bc565b6115fd5760405162461bcd60e51b815260206004820152601660248201527f4e6f74206f776e6572206e6f7220617070726f766564000000000000000000006044820152606401610e55565b60016009600c8282829054906101000a900463ffffffff1661161f919061416a565b92506101000a81548163ffffffff021916908363ffffffff16021790555061152b81612db3565b60606000611653836119b0565b90506000808267ffffffffffffffff81111561167157611671613b40565b60405190808252806020026020018201604052801561169a578160200160208202803683370190505b50600954909150600160801b900460ff165b6009546116d090600160801b810460ff1690600160401b900463ffffffff1661416a565b63ffffffff168163ffffffff1610156117655763ffffffff81166000908152600260205260409020546001600160a01b0387811691161461171057611753565b8383141561171d57611765565b8082848151811061173057611730614134565b63ffffffff909216602092830291909101909101528261174f81614189565b9350505b8061175d816141a4565b9150506116ac565b50949350505050565b6006546001600160a01b031633146117c85760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610e55565b6001600160a01b03919091166000908152600760205260409020805460ff1916911515919091179055565b60005b81811015610fad5761181f83838381811061181357611813614134565b90506020020135612e87565b61182881614189565b90506117f6565b3360009081526007602052604090205460ff1615156001148061185c57506006546001600160a01b031633145b6118a85760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610e55565b600b80547fffffffffffffffffffffffffffff00000000000000000000000000000000ffff166201000067ffffffffffffffff948516027fffffffffffffffffffffffffffff0000000000000000ffffffffffffffffffff16176a01000000000000000000009290931691909102919091179055565b63ffffffff81166000908152600260205260408120546001600160a01b031680610c405760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201527f656e7420746f6b656e00000000000000000000000000000000000000000000006064820152608401610e55565b60006001600160a01b038216611a2e5760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a6560448201527f726f2061646472657373000000000000000000000000000000000000000000006064820152608401610e55565b506001600160a01b031660009081526003602052604090205463ffffffff1690565b6006546001600160a01b03163314611aaa5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610e55565b611ab46000612f49565b565b60145460009067ffffffffffffffff1615801590611ae5575060145467ffffffffffffffff9081164290911610155b8015611b09575060145467ffffffffffffffff600160401b90910481164290911611155b8015610fe157505060165460ff161590565b3360009081526007602052604090205460ff16151560011480611b4857506006546001600160a01b031633145b611b945760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610e55565b60095463ffffffff6401000000008204811691611bba918491600160401b90041661416a565b63ffffffff161115611c0e5760405162461bcd60e51b815260206004820152601460248201527f457863656564656420524553455256455f4e46540000000000000000000000006044820152606401610e55565b60095463ffffffff80821691611c2d918491600160401b90041661416a565b63ffffffff161115611c815760405162461bcd60e51b815260206004820152600960248201527f536f6c64206f75742100000000000000000000000000000000000000000000006044820152606401610e55565b61152b3382612fa8565b3360009081526007602052604090205460ff16151560011480611cb857506006546001600160a01b031633145b611d045760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610e55565b601155565b60095461ffff82169063ffffffff80821691611d2e918491600160401b90041661416a565b63ffffffff161115611d825760405162461bcd60e51b815260206004820152600960248201527f536f6c64206f75742100000000000000000000000000000000000000000000006044820152606401610e55565b81611d8b61220e565b611dd75760405162461bcd60e51b815260206004820152600d60248201527f4d696e74206e6f74206f70656e000000000000000000000000000000000000006044820152606401610e55565b600d5461ffff600160901b90910481169082161115611e385760405162461bcd60e51b815260206004820152601060248201527f4d617820706572207478206c696d6974000000000000000000000000000000006044820152606401610e55565b611e458161ffff166127b1565b341015611e945760405162461bcd60e51b815260206004820152600b60248201527f56616c7565206c696d69740000000000000000000000000000000000000000006044820152606401610e55565b600d54600160801b900461ffff1615611f6457600d543360009081526010602052604090205461ffff600160801b909204821691611ed4918491166141c8565b61ffff161115611f265760405162461bcd60e51b815260206004820152601460248201527f4d6178207065722077616c6c6574206c696d69740000000000000000000000006044820152606401610e55565b3360009081526010602052604081208054839290611f4990849061ffff166141c8565b92506101000a81548161ffff021916908361ffff1602179055505b6040517fffffffffffffffffffffffffffffffffffffffff0000000000000000000000003360601b16602082015260348101869052849060540160405160208183030381529060405280519060200120611fbe828261152e565b600260085414156120115760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610e55565b60026008558615801590612026575060048711155b6120725760405162461bcd60e51b815260206004820152600f60248201527f426164205f747970652076616c756500000000000000000000000000000000006044820152606401610e55565b600087600114612083576001612086565b60025b60ff16905087600414156120e85761209c611ab6565b6120e85760405162461bcd60e51b815260206004820152601760248201527f57616974696e67206c697374206e6f74206f70656e65640000000000000000006044820152606401610e55565b3360009081526010602052604090205461ffff1681101561214b5760405162461bcd60e51b815260206004820152601460248201527f4d6178207065722077616c6c6574206c696d69740000000000000000000000006044820152606401610e55565b612159338761ffff16612fa8565b50506001600855505050505050565b606060018054610d45906140dc565b3360009081526007602052604090205460ff161515600114806121a457506006546001600160a01b031633145b6121f05760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610e55565b805161158990600a906020840190613956565b611589338383612fdb565b600d5460009067ffffffffffffffff161580159061223d5750600d5467ffffffffffffffff9081164290911610155b80156122615750600d5467ffffffffffffffff600160401b90910481164290911611155b8015610fe1575050600f5460ff161590565b3360009081526007602052604090205460ff161515600114806122a057506006546001600160a01b031633145b6122ec5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610e55565b80516014805460208401516040850151606086015167ffffffffffffffff9586167fffffffffffffffffffffffffffffffff0000000000000000000000000000000090941693909317600160401b9590921694909402177fffffffffffffffffffffffff00000000ffffffffffffffffffffffffffffffff16600160801b61ffff948516027fffffffffffffffffffffffff0000ffffffffffffffffffffffffffffffffffff1617600160901b9390911692909202919091179055608081015160155560a001516016805460ff1916911515919091179055565b6123d033836129af565b6124425760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f7665640000000000000000000000000000006064820152608401610e55565b61244e848484846130aa565b50505050565b606061247d8263ffffffff166000908152600260205260409020546001600160a01b0316151590565b6124ef5760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201527f6e6578697374656e7420746f6b656e00000000000000000000000000000000006064820152608401610e55565b60006124f9613133565b905060008151116125195760405180602001604052806000815250610cf7565b806125238461313d565b6040516020016125349291906141e5565b6040516020818303038152906040529392505050565b6012818154811061255a57600080fd5b6000918252602090912060029091020180546001909101546001600160a01b03909116915082565b3360009081526007602052604090205460ff161515600114806125af57506006546001600160a01b031633145b6125fb5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610e55565b6000818152600c602052604090205467ffffffffffffffff166126605760405162461bcd60e51b815260206004820152600b60248201527f4e6f742073746f636b65640000000000000000000000000000000000000000006044820152606401610e55565b6126698161326f565b60405181907f3ebee94e74ea24f711b5876dca724062e18b7b37b6883e686a92f093248a4fcf90600090a250565b3360009081526007602052604090205460ff161515600114806126c457506006546001600160a01b031633145b6127105760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610e55565b600b805460ff1916911515919091179055565b600a8054612730906140dc565b80601f016020809104026020016040519081016040528092919081815260200182805461275c906140dc565b80156127a95780601f1061277e576101008083540402835291602001916127a9565b820191906000526020600020905b81548152906001019060200180831161278c57829003601f168201915b505050505081565b600e54600090610c4090839061420b565b6006546001600160a01b0316331461281c5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610e55565b6001600160a01b0381166128985760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610e55565b61152b81612f49565b3360009081526007602052604090205460ff161515600114806128ce57506006546001600160a01b031633145b61291a5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610e55565b600f805460ff1916911515919091179055565b63ffffffff81166000908152600460205260409020805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b03841690811790915581906129768261191e565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b63ffffffff81166000908152600260205260408120546001600160a01b0316612a405760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201527f697374656e7420746f6b656e00000000000000000000000000000000000000006064820152608401610e55565b6000612a4b8361191e565b9050806001600160a01b0316846001600160a01b03161480612a865750836001600160a01b0316612a7b84610dc8565b6001600160a01b0316145b80612ab657506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b0316612ad18261191e565b6001600160a01b031614612b4d5760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201527f6f776e65720000000000000000000000000000000000000000000000000000006064820152608401610e55565b6001600160a01b038216612bc85760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f2061646460448201527f72657373000000000000000000000000000000000000000000000000000000006064820152608401610e55565b612bd3838383613368565b612bde60008261292d565b6001600160a01b0383166000908152600360205260408120805460019290612c0d90849063ffffffff16614117565b82546101009290920a63ffffffff8181021990931691831602179091556001600160a01b03841660009081526003602052604081208054600194509092612c569185911661416a565b82546101009290920a63ffffffff8181021990931691831602179091558216600090815260026020526040808220805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0387811691821790925591518594509192908716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9190a4505050565b6000610cf7828461420b565b6000610cf7828461422a565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114612d47576040519150601f19603f3d011682016040523d82523d6000602084013e612d4c565b606091505b5050905080610fad5760405162461bcd60e51b815260206004820152601060248201527f5472616e73666572206661696c65642e000000000000000000000000000000006044820152606401610e55565b600082612daa85846133e6565b14949350505050565b6000612dbe8261191e565b9050612dcc81600084613368565b612dd760008361292d565b6001600160a01b0381166000908152600360205260408120805460019290612e0690849063ffffffff16614117565b82546101009290920a63ffffffff8181021990931691831602179091558316600090815260026020526040808220805473ffffffffffffffffffffffffffffffffffffffff19169055518492506001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b33612e918261191e565b6001600160a01b03161480612eb6575033612eab82610dc8565b6001600160a01b0316145b80612ece5750612ece612ec88261191e565b33610ad9565b612f1a5760405162461bcd60e51b815260206004820152601560248201527f4e6f7420617070726f766564206f72206f776e657200000000000000000000006044820152606401610e55565b6000818152600c602052604090205467ffffffffffffffff16612f405761152b8161345a565b61152b8161326f565b600680546001600160a01b0383811673ffffffffffffffffffffffffffffffffffffffff19831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60005b8163ffffffff168163ffffffff161015610fad57612fc8836134ff565b5080612fd3816141a4565b915050612fab565b816001600160a01b0316836001600160a01b0316141561303d5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610e55565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b6130b5848484612abe565b6130c184848484613577565b61244e5760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e74657200000000000000000000000000006064820152608401610e55565b6060610fe1613724565b60608161317d57505060408051808201909152600181527f3000000000000000000000000000000000000000000000000000000000000000602082015290565b8160005b81156131a7578061319181614189565b91506131a09050600a8361422a565b9150613181565b60008167ffffffffffffffff8111156131c2576131c2613b40565b6040519080825280601f01601f1916602001820160405280156131ec576020820181803683370190505b5090505b8415612ab65761320160018361423e565b915061320e600a86614255565b613219906030614269565b60f81b81838151811061322e5761322e614134565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350613268600a8661422a565b94506131f0565b61327881610c46565b6000828152600c60205260409020805467ffffffffffffffff92909216600160801b027fffffffffffffffff0000000000000000ffffffffffffffffffffffffffffffff9092169190911790556132ce81610fe6565b6000828152600c6020526040902080546008906132fd908490600160401b900467ffffffffffffffff166140b0565b825467ffffffffffffffff9182166101009390930a9283029190920219909116179055506000818152600c6020526040808220805467ffffffffffffffff191690555182917f230965d91886dc6b23157baf264f4ef35933be7f84ae6e6c580b34ba916f40ab91a250565b6000818152600c602052604090205467ffffffffffffffff16158061339a5750600b5460ff6101009091041615156001145b610fad5760405162461bcd60e51b815260206004820152600e60248201527f546f6b656e2053746f636b696e670000000000000000000000000000000000006044820152606401610e55565b600081815b845181101561345257600085828151811061340857613408614134565b6020026020010151905080831161342e576000838152602082905260409020925061343f565b600081815260208490526040902092505b508061344a81614189565b9150506133eb565b509392505050565b600b5460ff166134ac5760405162461bcd60e51b815260206004820152600f60248201527f53746f636b696e6720636c6f73656400000000000000000000000000000000006044820152606401610e55565b6000818152600c6020526040808220805467ffffffffffffffff19164267ffffffffffffffff161790555182917f5f1c8439d0d667d2c223ac6cdc938385543585868dcb9181f912487552ae921c91a250565b600954600090819061352890600160801b810460ff1690600160401b900463ffffffff1661416a565b6009805463ffffffff928316935060019260089161354f918591600160401b90041661416a565b92506101000a81548163ffffffff021916908363ffffffff160217905550610c408382613733565b60006001600160a01b0384163b15613719576040517f150b7a020000000000000000000000000000000000000000000000000000000081526001600160a01b0385169063150b7a02906135d4903390899088908890600401614281565b602060405180830381600087803b1580156135ee57600080fd5b505af192505050801561361e575060408051601f3d908101601f1916820190925261361b918101906142bd565b60015b6136ce573d80801561364c576040519150601f19603f3d011682016040523d82523d6000602084013e613651565b606091505b5080516136c65760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e74657200000000000000000000000000006064820152608401610e55565b805181602001fd5b7fffffffff00000000000000000000000000000000000000000000000000000000167f150b7a0200000000000000000000000000000000000000000000000000000000149050612ab6565b506001949350505050565b6060600a8054610d45906140dc565b61158982826040518060200160405280600081525061375283836137d1565b61375f6000848484613577565b610fad5760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e74657200000000000000000000000000006064820152608401610e55565b6001600160a01b0382166138275760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610e55565b63ffffffff81166000908152600260205260409020546001600160a01b0316156138935760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610e55565b61389f60008383613368565b6001600160a01b03821660009081526003602052604081208054600192906138ce90849063ffffffff1661416a565b82546101009290920a63ffffffff8181021990931691831602179091558216600090815260026020526040808220805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b03871690811790915590518493509091907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b828054613962906140dc565b90600052602060002090601f01602090048101928261398457600085556139ca565b82601f1061399d57805160ff19168380011785556139ca565b828001600101855582156139ca579182015b828111156139ca5782518255916020019190600101906139af565b506139d69291506139da565b5090565b5b808211156139d657600081556001016139db565b7fffffffff000000000000000000000000000000000000000000000000000000008116811461152b57600080fd5b600060208284031215613a2f57600080fd5b8135610cf7816139ef565b600060208284031215613a4c57600080fd5b5035919050565b60005b83811015613a6e578181015183820152602001613a56565b8381111561244e5750506000910152565b60008151808452613a97816020860160208601613a53565b601f01601f19169290920160200192915050565b602081526000610cf76020830184613a7f565b80356001600160a01b0381168114613ad557600080fd5b919050565b60008060408385031215613aed57600080fd5b613af683613abe565b946020939093013593505050565b600080600060608486031215613b1957600080fd5b613b2284613abe565b9250613b3060208501613abe565b9150604084013590509250925092565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff81118282101715613b7f57613b7f613b40565b604052919050565b803567ffffffffffffffff81168114613ad557600080fd5b803561ffff81168114613ad557600080fd5b80358015158114613ad557600080fd5b600060c08284031215613bd357600080fd5b60405160c0810181811067ffffffffffffffff82111715613bf657613bf6613b40565b604052613c0283613b87565b8152613c1060208401613b87565b6020820152613c2160408401613b9f565b6040820152613c3260608401613b9f565b606082015260808301356080820152613c4d60a08401613bb1565b60a08201529392505050565b600082601f830112613c6a57600080fd5b8135602067ffffffffffffffff821115613c8657613c86613b40565b8160051b613c95828201613b56565b9283528481018201928281019087851115613caf57600080fd5b83870192505b84831015613cce57823582529183019190830190613cb5565b979650505050505050565b60008060408385031215613cec57600080fd5b823567ffffffffffffffff811115613d0357600080fd5b613d0f85828601613c59565b95602094909401359450505050565b600060208284031215613d3057600080fd5b610cf782613abe565b6020808252825182820181905260009190848201906040850190845b81811015613d7757835163ffffffff1683529284019291840191600101613d55565b50909695505050505050565b60008060408385031215613d9657600080fd5b613d9f83613abe565b9150613dad60208401613bb1565b90509250929050565b60008060208385031215613dc957600080fd5b823567ffffffffffffffff80821115613de157600080fd5b818501915085601f830112613df557600080fd5b813581811115613e0457600080fd5b8660208260051b8501011115613e1957600080fd5b60209290920196919550909350505050565b60008060408385031215613e3e57600080fd5b613e4783613b87565b9150613dad60208401613b87565b600060208284031215613e6757600080fd5b813563ffffffff81168114610cf757600080fd5b600080600060608486031215613e9057600080fd5b83359250602084013567ffffffffffffffff811115613eae57600080fd5b613eba86828701613c59565b925050613ec960408501613b9f565b90509250925092565b600067ffffffffffffffff831115613eec57613eec613b40565b613eff6020601f19601f86011601613b56565b9050828152838383011115613f1357600080fd5b828260208301376000602084830101529392505050565b600060208284031215613f3c57600080fd5b813567ffffffffffffffff811115613f5357600080fd5b8201601f81018413613f6457600080fd5b612ab684823560208401613ed2565b60008060008060808587031215613f8957600080fd5b613f9285613abe565b9350613fa060208601613abe565b925060408501359150606085013567ffffffffffffffff811115613fc357600080fd5b8501601f81018713613fd457600080fd5b613fe387823560208401613ed2565b91505092959194509250565b60006020828403121561400157600080fd5b610cf782613bb1565b6000806040838503121561401d57600080fd5b61402683613abe565b9150613dad60208401613abe565b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b600067ffffffffffffffff8084168061407b5761407b614034565b92169190910492915050565b600067ffffffffffffffff838116908316818110156140a8576140a861404a565b039392505050565b600067ffffffffffffffff8083168185168083038211156140d3576140d361404a565b01949350505050565b600181811c908216806140f057607f821691505b6020821081141561411157634e487b7160e01b600052602260045260246000fd5b50919050565b600063ffffffff838116908316818110156140a8576140a861404a565b634e487b7160e01b600052603260045260246000fd5b600060ff821660ff8114156141615761416161404a565b60010192915050565b600063ffffffff8083168185168083038211156140d3576140d361404a565b600060001982141561419d5761419d61404a565b5060010190565b600063ffffffff808316818114156141be576141be61404a565b6001019392505050565b600061ffff8083168185168083038211156140d3576140d361404a565b600083516141f7818460208801613a53565b8351908301906140d3818360208801613a53565b60008160001904831182151516156142255761422561404a565b500290565b60008261423957614239614034565b500490565b6000828210156142505761425061404a565b500390565b60008261426457614264614034565b500690565b6000821982111561427c5761427c61404a565b500190565b60006001600160a01b038087168352808616602084015250836040830152608060608301526142b36080830184613a7f565b9695505050505050565b6000602082840312156142cf57600080fd5b8151610cf7816139ef56fea2646970667358221220ba7bcc5ead76dbc5571086d7cc0ad35274873413a2746c7f5cf766cc4dcea5b764736f6c634300080900334f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65720000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000002568747470733a2f2f6170692e736e65616b657268656164732e78797a2f736e65616b65722f000000000000000000000000000000000000000000000000000000

Deployed Bytecode

0x60806040526004361061034a5760003560e01c8063715018a6116101bb578063b88d4fde116100f7578063d88cc3ff11610095578063e985e9c51161006f578063e985e9c514610abe578063f2fde38b14610b07578063f30e6e7714610b27578063fc08d6ba14610b4757600080fd5b8063d88cc3ff14610a02578063dfc7379d14610a4f578063e6a72acf14610a9e57600080fd5b8063c9eb4662116100d1578063c9eb46621461096e578063cef2284c146109ad578063d305122f146109cd578063d547cfb7146109ed57600080fd5b8063b88d4fde146108fb578063bf7b766d1461091b578063c87b56dd1461094e57600080fd5b806395d89b4111610164578063a22cb4651161013e578063a22cb46514610814578063aa1152ab14610834578063b0adae2014610849578063b405c5491461086957600080fd5b806395d89b41146107ba5780639d2cc436146107cf578063a0bcfc7f146107f457600080fd5b80637cb64759116101955780637cb64759146107695780638023b297146107895780638da5cb5b1461079c57600080fd5b8063715018a61461071f57806372b324ad1461073457806376bccedb1461074957600080fd5b806337369b221161028a5780635bc63820116102335780636352211e1161020d5780636352211e146106a55780636667df6c146106c557806368fb5c11146106db57806370a08231146106ff57600080fd5b80635bc63820146106455780635d85f1bb146106655780635fb725d11461068557600080fd5b806342842e0e1161026457806342842e0e146105d857806342966c68146105f8578063438b63001461061857600080fd5b806337369b221461057657806340d2123c1461058b578063427b34b3146105ab57600080fd5b80631aa8219c116102f7578063269d9a5a116102d1578063269d9a5a146104c357806328e98381146104e35780632eb4a7ab1461053557806332cb6b0c1461055957600080fd5b80631aa8219c14610463578063213c0be81461048357806323b872dd146104a357600080fd5b8063081812fc11610328578063081812fc146103df578063095ea7b31461041757806318160ddd1461043957600080fd5b806301ffc9a71461034f5780630628e3411461038457806306fdde03146103bd575b600080fd5b34801561035b57600080fd5b5061036f61036a366004613a1d565b610b61565b60405190151581526020015b60405180910390f35b34801561039057600080fd5b506103a461039f366004613a3a565b610c46565b60405167ffffffffffffffff909116815260200161037b565b3480156103c957600080fd5b506103d2610d36565b60405161037b9190613aab565b3480156103eb57600080fd5b506103ff6103fa366004613a3a565b610dc8565b6040516001600160a01b03909116815260200161037b565b34801561042357600080fd5b50610437610432366004613ada565b610e80565b005b34801561044557600080fd5b5061044e610fb2565b60405163ffffffff909116815260200161037b565b34801561046f57600080fd5b506103a461047e366004613a3a565b610fe6565b34801561048f57600080fd5b5061043761049e366004613b04565b61102d565b3480156104af57600080fd5b506104376104be366004613b04565b6110b7565b3480156104cf57600080fd5b506104376104de366004613bc1565b61113f565b3480156104ef57600080fd5b506105036104fe366004613a3a565b611305565b60408051941515855267ffffffffffffffff93841660208601529183169184019190915216606082015260800161037b565b34801561054157600080fd5b5061054b60115481565b60405190815260200161037b565b34801561056557600080fd5b5060095461044e9063ffffffff1681565b34801561058257600080fd5b5061043761136d565b34801561059757600080fd5b506104376105a6366004613cd9565b61152e565b3480156105b757600080fd5b5060095461044e906c01000000000000000000000000900463ffffffff1681565b3480156105e457600080fd5b506104376105f3366004613b04565b61158d565b34801561060457600080fd5b50610437610613366004613a3a565b6115a8565b34801561062457600080fd5b50610638610633366004613d1e565b611646565b60405161037b9190613d39565b34801561065157600080fd5b50610437610660366004613d83565b61176e565b34801561067157600080fd5b50610437610680366004613db6565b6117f3565b34801561069157600080fd5b506104376106a0366004613e2b565b61182f565b3480156106b157600080fd5b506103ff6106c0366004613a3a565b61191e565b3480156106d157600080fd5b5061054b60135481565b3480156106e757600080fd5b5060095461044e90600160401b900463ffffffff1681565b34801561070b57600080fd5b5061054b61071a366004613d1e565b6119b0565b34801561072b57600080fd5b50610437611a50565b34801561074057600080fd5b5061036f611ab6565b34801561075557600080fd5b50610437610764366004613e55565b611b1b565b34801561077557600080fd5b50610437610784366004613a3a565b611c8b565b610437610797366004613e7b565b611d09565b3480156107a857600080fd5b506006546001600160a01b03166103ff565b3480156107c657600080fd5b506103d2612168565b3480156107db57600080fd5b5060095461044e90640100000000900463ffffffff1681565b34801561080057600080fd5b5061043761080f366004613f2a565b612177565b34801561082057600080fd5b5061043761082f366004613d83565b612203565b34801561084057600080fd5b5061036f61220e565b34801561085557600080fd5b50610437610864366004613bc1565b612273565b34801561087557600080fd5b506014546015546016546108b89267ffffffffffffffff80821693600160401b83049091169261ffff600160801b8404811693600160901b900416919060ff1686565b6040805167ffffffffffffffff978816815296909516602087015261ffff93841694860194909452911660608401526080830152151560a082015260c00161037b565b34801561090757600080fd5b50610437610916366004613f73565b6123c6565b34801561092757600080fd5b5060095461093c90600160801b900460ff1681565b60405160ff909116815260200161037b565b34801561095a57600080fd5b506103d2610969366004613a3a565b612454565b34801561097a57600080fd5b5061098e610989366004613a3a565b61254a565b604080516001600160a01b03909316835260208301919091520161037b565b3480156109b957600080fd5b506104376109c8366004613a3a565b612582565b3480156109d957600080fd5b506104376109e8366004613fef565b612697565b3480156109f957600080fd5b506103d2612723565b348015610a0e57600080fd5b50610a3c610a1d366004613d1e565b6001600160a01b031660009081526010602052604090205461ffff1690565b60405161ffff909116815260200161037b565b348015610a5b57600080fd5b50600d54600e54600f546108b89267ffffffffffffffff80821693600160401b83049091169261ffff600160801b8404811693600160901b900416919060ff1686565b348015610aaa57600080fd5b5061054b610ab9366004613a3a565b6127b1565b348015610aca57600080fd5b5061036f610ad936600461400a565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b348015610b1357600080fd5b50610437610b22366004613d1e565b6127c2565b348015610b3357600080fd5b50610437610b42366004613fef565b6128a1565b348015610b5357600080fd5b50600b5461036f9060ff1681565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f80ac58cd000000000000000000000000000000000000000000000000000000001480610bf457507fffffffff0000000000000000000000000000000000000000000000000000000082167f5b5e139f00000000000000000000000000000000000000000000000000000000145b80610c4057507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff000000000000000000000000000000000000000000000000000000008316145b92915050565b6000818152600c6020526040812054600160801b900467ffffffffffffffff1680610cfe57600b5460019062010000900467ffffffffffffffff16610c8a85610fe6565b610c949190614060565b67ffffffffffffffff161015610cab576000610cf7565b600b5467ffffffffffffffff6a0100000000000000000000820481169162010000900416610cd885610fe6565b610ce29190614087565b610cec9190614060565b610cf79060016140b0565b9392505050565b600b546a0100000000000000000000900467ffffffffffffffff16610d2284610fe6565b610d2c9190614060565b610cf790826140b0565b606060008054610d45906140dc565b80601f0160208091040260200160405190810160405280929190818152602001828054610d71906140dc565b8015610dbe5780601f10610d9357610100808354040283529160200191610dbe565b820191906000526020600020905b815481529060010190602001808311610da157829003601f168201915b5050505050905090565b63ffffffff81166000908152600260205260408120546001600160a01b0316610e5e5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201527f697374656e7420746f6b656e000000000000000000000000000000000000000060648201526084015b60405180910390fd5b5063ffffffff166000908152600460205260409020546001600160a01b031690565b6000610e8b8261191e565b9050806001600160a01b0316836001600160a01b03161415610f155760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560448201527f72000000000000000000000000000000000000000000000000000000000000006064820152608401610e55565b336001600160a01b0382161480610f315750610f318133610ad9565b610fa35760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610e55565b610fad838361292d565b505050565b600954600090610fe19063ffffffff6c010000000000000000000000008204811691600160401b900416614117565b905090565b6000818152600c602052604081205467ffffffffffffffff1661100a576000610c40565b6000828152600c6020526040902054610c409067ffffffffffffffff1642614087565b336110378261191e565b6001600160a01b03161461108d5760405162461bcd60e51b815260206004820152600a60248201527f4f6e6c79206f776e6572000000000000000000000000000000000000000000006044820152606401610e55565b600b805461ff0019166101001790556110a783838361158d565b5050600b805461ff001916905550565b6110c2335b826129af565b6111345760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f7665640000000000000000000000000000006064820152608401610e55565b610fad838383612abe565b3360009081526007602052604090205460ff1615156001148061116c57506006546001600160a01b031633145b6111b85760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610e55565b8051600d805460208085018051604080880180516060808b01805167ffffffffffffffff9b8c167fffffffffffffffffffffffffffffffff00000000000000000000000000000000909a168a17600160401b978d1697909702969096177fffffffffffffffffffffffff00000000ffffffffffffffffffffffffffffffff16600160801b61ffff948516027fffffffffffffffffffffffff0000ffffffffffffffffffffffffffffffffffff1617600160901b96841696909602959095179098556080808b018051600e5560a0808d018051600f805460ff191691151591909117905586519a8b529751909b169789019790975291518116928701929092529151169484019490945290519282019290925290511515918101919091527f90f1d68c8d2a969b075d5a61a7af205332fb34b610c46d9194024bd707193c9a9060c00160405180910390a150565b6000818152600c602052604081205467ffffffffffffffff16151590808061132c85610fe6565b925061133785610c46565b6000868152600c602052604090205490915061136490600160401b900467ffffffffffffffff16846140b0565b91509193509193565b3360009081526007602052604090205460ff1615156001148061139a57506006546001600160a01b031633145b6113e65760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610e55565b47806114345760405162461bcd60e51b815260206004820152601160248201527f53616c65732042616c616e6365203d20300000000000000000000000000000006044820152606401610e55565b60005b60125460ff8216101561150f57600060128260ff168154811061145c5761145c614134565b90600052602060002090600202016001015411156114fd576114fd60128260ff168154811061148d5761148d614134565b906000526020600020906002020160000160009054906101000a90046001600160a01b03166114f86013546114f260128660ff16815481106114d1576114d1614134565b90600052602060002090600202016001015487612ce290919063ffffffff16565b90612cee565b612cfa565b806115078161414a565b915050611437565b5061152b6115256006546001600160a01b031690565b47612cfa565b50565b60115461153d90839083612d9d565b6115895760405162461bcd60e51b815260206004820152600f60248201527f50726f6f66206e6f742076616c696400000000000000000000000000000000006044820152606401610e55565b5050565b610fad838383604051806020016040528060008152506123c6565b6115b1336110bc565b6115fd5760405162461bcd60e51b815260206004820152601660248201527f4e6f74206f776e6572206e6f7220617070726f766564000000000000000000006044820152606401610e55565b60016009600c8282829054906101000a900463ffffffff1661161f919061416a565b92506101000a81548163ffffffff021916908363ffffffff16021790555061152b81612db3565b60606000611653836119b0565b90506000808267ffffffffffffffff81111561167157611671613b40565b60405190808252806020026020018201604052801561169a578160200160208202803683370190505b50600954909150600160801b900460ff165b6009546116d090600160801b810460ff1690600160401b900463ffffffff1661416a565b63ffffffff168163ffffffff1610156117655763ffffffff81166000908152600260205260409020546001600160a01b0387811691161461171057611753565b8383141561171d57611765565b8082848151811061173057611730614134565b63ffffffff909216602092830291909101909101528261174f81614189565b9350505b8061175d816141a4565b9150506116ac565b50949350505050565b6006546001600160a01b031633146117c85760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610e55565b6001600160a01b03919091166000908152600760205260409020805460ff1916911515919091179055565b60005b81811015610fad5761181f83838381811061181357611813614134565b90506020020135612e87565b61182881614189565b90506117f6565b3360009081526007602052604090205460ff1615156001148061185c57506006546001600160a01b031633145b6118a85760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610e55565b600b80547fffffffffffffffffffffffffffff00000000000000000000000000000000ffff166201000067ffffffffffffffff948516027fffffffffffffffffffffffffffff0000000000000000ffffffffffffffffffff16176a01000000000000000000009290931691909102919091179055565b63ffffffff81166000908152600260205260408120546001600160a01b031680610c405760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201527f656e7420746f6b656e00000000000000000000000000000000000000000000006064820152608401610e55565b60006001600160a01b038216611a2e5760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a6560448201527f726f2061646472657373000000000000000000000000000000000000000000006064820152608401610e55565b506001600160a01b031660009081526003602052604090205463ffffffff1690565b6006546001600160a01b03163314611aaa5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610e55565b611ab46000612f49565b565b60145460009067ffffffffffffffff1615801590611ae5575060145467ffffffffffffffff9081164290911610155b8015611b09575060145467ffffffffffffffff600160401b90910481164290911611155b8015610fe157505060165460ff161590565b3360009081526007602052604090205460ff16151560011480611b4857506006546001600160a01b031633145b611b945760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610e55565b60095463ffffffff6401000000008204811691611bba918491600160401b90041661416a565b63ffffffff161115611c0e5760405162461bcd60e51b815260206004820152601460248201527f457863656564656420524553455256455f4e46540000000000000000000000006044820152606401610e55565b60095463ffffffff80821691611c2d918491600160401b90041661416a565b63ffffffff161115611c815760405162461bcd60e51b815260206004820152600960248201527f536f6c64206f75742100000000000000000000000000000000000000000000006044820152606401610e55565b61152b3382612fa8565b3360009081526007602052604090205460ff16151560011480611cb857506006546001600160a01b031633145b611d045760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610e55565b601155565b60095461ffff82169063ffffffff80821691611d2e918491600160401b90041661416a565b63ffffffff161115611d825760405162461bcd60e51b815260206004820152600960248201527f536f6c64206f75742100000000000000000000000000000000000000000000006044820152606401610e55565b81611d8b61220e565b611dd75760405162461bcd60e51b815260206004820152600d60248201527f4d696e74206e6f74206f70656e000000000000000000000000000000000000006044820152606401610e55565b600d5461ffff600160901b90910481169082161115611e385760405162461bcd60e51b815260206004820152601060248201527f4d617820706572207478206c696d6974000000000000000000000000000000006044820152606401610e55565b611e458161ffff166127b1565b341015611e945760405162461bcd60e51b815260206004820152600b60248201527f56616c7565206c696d69740000000000000000000000000000000000000000006044820152606401610e55565b600d54600160801b900461ffff1615611f6457600d543360009081526010602052604090205461ffff600160801b909204821691611ed4918491166141c8565b61ffff161115611f265760405162461bcd60e51b815260206004820152601460248201527f4d6178207065722077616c6c6574206c696d69740000000000000000000000006044820152606401610e55565b3360009081526010602052604081208054839290611f4990849061ffff166141c8565b92506101000a81548161ffff021916908361ffff1602179055505b6040517fffffffffffffffffffffffffffffffffffffffff0000000000000000000000003360601b16602082015260348101869052849060540160405160208183030381529060405280519060200120611fbe828261152e565b600260085414156120115760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610e55565b60026008558615801590612026575060048711155b6120725760405162461bcd60e51b815260206004820152600f60248201527f426164205f747970652076616c756500000000000000000000000000000000006044820152606401610e55565b600087600114612083576001612086565b60025b60ff16905087600414156120e85761209c611ab6565b6120e85760405162461bcd60e51b815260206004820152601760248201527f57616974696e67206c697374206e6f74206f70656e65640000000000000000006044820152606401610e55565b3360009081526010602052604090205461ffff1681101561214b5760405162461bcd60e51b815260206004820152601460248201527f4d6178207065722077616c6c6574206c696d69740000000000000000000000006044820152606401610e55565b612159338761ffff16612fa8565b50506001600855505050505050565b606060018054610d45906140dc565b3360009081526007602052604090205460ff161515600114806121a457506006546001600160a01b031633145b6121f05760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610e55565b805161158990600a906020840190613956565b611589338383612fdb565b600d5460009067ffffffffffffffff161580159061223d5750600d5467ffffffffffffffff9081164290911610155b80156122615750600d5467ffffffffffffffff600160401b90910481164290911611155b8015610fe1575050600f5460ff161590565b3360009081526007602052604090205460ff161515600114806122a057506006546001600160a01b031633145b6122ec5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610e55565b80516014805460208401516040850151606086015167ffffffffffffffff9586167fffffffffffffffffffffffffffffffff0000000000000000000000000000000090941693909317600160401b9590921694909402177fffffffffffffffffffffffff00000000ffffffffffffffffffffffffffffffff16600160801b61ffff948516027fffffffffffffffffffffffff0000ffffffffffffffffffffffffffffffffffff1617600160901b9390911692909202919091179055608081015160155560a001516016805460ff1916911515919091179055565b6123d033836129af565b6124425760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f7665640000000000000000000000000000006064820152608401610e55565b61244e848484846130aa565b50505050565b606061247d8263ffffffff166000908152600260205260409020546001600160a01b0316151590565b6124ef5760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201527f6e6578697374656e7420746f6b656e00000000000000000000000000000000006064820152608401610e55565b60006124f9613133565b905060008151116125195760405180602001604052806000815250610cf7565b806125238461313d565b6040516020016125349291906141e5565b6040516020818303038152906040529392505050565b6012818154811061255a57600080fd5b6000918252602090912060029091020180546001909101546001600160a01b03909116915082565b3360009081526007602052604090205460ff161515600114806125af57506006546001600160a01b031633145b6125fb5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610e55565b6000818152600c602052604090205467ffffffffffffffff166126605760405162461bcd60e51b815260206004820152600b60248201527f4e6f742073746f636b65640000000000000000000000000000000000000000006044820152606401610e55565b6126698161326f565b60405181907f3ebee94e74ea24f711b5876dca724062e18b7b37b6883e686a92f093248a4fcf90600090a250565b3360009081526007602052604090205460ff161515600114806126c457506006546001600160a01b031633145b6127105760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610e55565b600b805460ff1916911515919091179055565b600a8054612730906140dc565b80601f016020809104026020016040519081016040528092919081815260200182805461275c906140dc565b80156127a95780601f1061277e576101008083540402835291602001916127a9565b820191906000526020600020905b81548152906001019060200180831161278c57829003601f168201915b505050505081565b600e54600090610c4090839061420b565b6006546001600160a01b0316331461281c5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610e55565b6001600160a01b0381166128985760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610e55565b61152b81612f49565b3360009081526007602052604090205460ff161515600114806128ce57506006546001600160a01b031633145b61291a5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610e55565b600f805460ff1916911515919091179055565b63ffffffff81166000908152600460205260409020805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b03841690811790915581906129768261191e565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b63ffffffff81166000908152600260205260408120546001600160a01b0316612a405760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201527f697374656e7420746f6b656e00000000000000000000000000000000000000006064820152608401610e55565b6000612a4b8361191e565b9050806001600160a01b0316846001600160a01b03161480612a865750836001600160a01b0316612a7b84610dc8565b6001600160a01b0316145b80612ab657506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b0316612ad18261191e565b6001600160a01b031614612b4d5760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201527f6f776e65720000000000000000000000000000000000000000000000000000006064820152608401610e55565b6001600160a01b038216612bc85760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f2061646460448201527f72657373000000000000000000000000000000000000000000000000000000006064820152608401610e55565b612bd3838383613368565b612bde60008261292d565b6001600160a01b0383166000908152600360205260408120805460019290612c0d90849063ffffffff16614117565b82546101009290920a63ffffffff8181021990931691831602179091556001600160a01b03841660009081526003602052604081208054600194509092612c569185911661416a565b82546101009290920a63ffffffff8181021990931691831602179091558216600090815260026020526040808220805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0387811691821790925591518594509192908716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9190a4505050565b6000610cf7828461420b565b6000610cf7828461422a565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114612d47576040519150601f19603f3d011682016040523d82523d6000602084013e612d4c565b606091505b5050905080610fad5760405162461bcd60e51b815260206004820152601060248201527f5472616e73666572206661696c65642e000000000000000000000000000000006044820152606401610e55565b600082612daa85846133e6565b14949350505050565b6000612dbe8261191e565b9050612dcc81600084613368565b612dd760008361292d565b6001600160a01b0381166000908152600360205260408120805460019290612e0690849063ffffffff16614117565b82546101009290920a63ffffffff8181021990931691831602179091558316600090815260026020526040808220805473ffffffffffffffffffffffffffffffffffffffff19169055518492506001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b33612e918261191e565b6001600160a01b03161480612eb6575033612eab82610dc8565b6001600160a01b0316145b80612ece5750612ece612ec88261191e565b33610ad9565b612f1a5760405162461bcd60e51b815260206004820152601560248201527f4e6f7420617070726f766564206f72206f776e657200000000000000000000006044820152606401610e55565b6000818152600c602052604090205467ffffffffffffffff16612f405761152b8161345a565b61152b8161326f565b600680546001600160a01b0383811673ffffffffffffffffffffffffffffffffffffffff19831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60005b8163ffffffff168163ffffffff161015610fad57612fc8836134ff565b5080612fd3816141a4565b915050612fab565b816001600160a01b0316836001600160a01b0316141561303d5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610e55565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b6130b5848484612abe565b6130c184848484613577565b61244e5760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e74657200000000000000000000000000006064820152608401610e55565b6060610fe1613724565b60608161317d57505060408051808201909152600181527f3000000000000000000000000000000000000000000000000000000000000000602082015290565b8160005b81156131a7578061319181614189565b91506131a09050600a8361422a565b9150613181565b60008167ffffffffffffffff8111156131c2576131c2613b40565b6040519080825280601f01601f1916602001820160405280156131ec576020820181803683370190505b5090505b8415612ab65761320160018361423e565b915061320e600a86614255565b613219906030614269565b60f81b81838151811061322e5761322e614134565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350613268600a8661422a565b94506131f0565b61327881610c46565b6000828152600c60205260409020805467ffffffffffffffff92909216600160801b027fffffffffffffffff0000000000000000ffffffffffffffffffffffffffffffff9092169190911790556132ce81610fe6565b6000828152600c6020526040902080546008906132fd908490600160401b900467ffffffffffffffff166140b0565b825467ffffffffffffffff9182166101009390930a9283029190920219909116179055506000818152600c6020526040808220805467ffffffffffffffff191690555182917f230965d91886dc6b23157baf264f4ef35933be7f84ae6e6c580b34ba916f40ab91a250565b6000818152600c602052604090205467ffffffffffffffff16158061339a5750600b5460ff6101009091041615156001145b610fad5760405162461bcd60e51b815260206004820152600e60248201527f546f6b656e2053746f636b696e670000000000000000000000000000000000006044820152606401610e55565b600081815b845181101561345257600085828151811061340857613408614134565b6020026020010151905080831161342e576000838152602082905260409020925061343f565b600081815260208490526040902092505b508061344a81614189565b9150506133eb565b509392505050565b600b5460ff166134ac5760405162461bcd60e51b815260206004820152600f60248201527f53746f636b696e6720636c6f73656400000000000000000000000000000000006044820152606401610e55565b6000818152600c6020526040808220805467ffffffffffffffff19164267ffffffffffffffff161790555182917f5f1c8439d0d667d2c223ac6cdc938385543585868dcb9181f912487552ae921c91a250565b600954600090819061352890600160801b810460ff1690600160401b900463ffffffff1661416a565b6009805463ffffffff928316935060019260089161354f918591600160401b90041661416a565b92506101000a81548163ffffffff021916908363ffffffff160217905550610c408382613733565b60006001600160a01b0384163b15613719576040517f150b7a020000000000000000000000000000000000000000000000000000000081526001600160a01b0385169063150b7a02906135d4903390899088908890600401614281565b602060405180830381600087803b1580156135ee57600080fd5b505af192505050801561361e575060408051601f3d908101601f1916820190925261361b918101906142bd565b60015b6136ce573d80801561364c576040519150601f19603f3d011682016040523d82523d6000602084013e613651565b606091505b5080516136c65760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e74657200000000000000000000000000006064820152608401610e55565b805181602001fd5b7fffffffff00000000000000000000000000000000000000000000000000000000167f150b7a0200000000000000000000000000000000000000000000000000000000149050612ab6565b506001949350505050565b6060600a8054610d45906140dc565b61158982826040518060200160405280600081525061375283836137d1565b61375f6000848484613577565b610fad5760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e74657200000000000000000000000000006064820152608401610e55565b6001600160a01b0382166138275760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610e55565b63ffffffff81166000908152600260205260409020546001600160a01b0316156138935760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610e55565b61389f60008383613368565b6001600160a01b03821660009081526003602052604081208054600192906138ce90849063ffffffff1661416a565b82546101009290920a63ffffffff8181021990931691831602179091558216600090815260026020526040808220805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b03871690811790915590518493509091907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b828054613962906140dc565b90600052602060002090601f01602090048101928261398457600085556139ca565b82601f1061399d57805160ff19168380011785556139ca565b828001600101855582156139ca579182015b828111156139ca5782518255916020019190600101906139af565b506139d69291506139da565b5090565b5b808211156139d657600081556001016139db565b7fffffffff000000000000000000000000000000000000000000000000000000008116811461152b57600080fd5b600060208284031215613a2f57600080fd5b8135610cf7816139ef565b600060208284031215613a4c57600080fd5b5035919050565b60005b83811015613a6e578181015183820152602001613a56565b8381111561244e5750506000910152565b60008151808452613a97816020860160208601613a53565b601f01601f19169290920160200192915050565b602081526000610cf76020830184613a7f565b80356001600160a01b0381168114613ad557600080fd5b919050565b60008060408385031215613aed57600080fd5b613af683613abe565b946020939093013593505050565b600080600060608486031215613b1957600080fd5b613b2284613abe565b9250613b3060208501613abe565b9150604084013590509250925092565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff81118282101715613b7f57613b7f613b40565b604052919050565b803567ffffffffffffffff81168114613ad557600080fd5b803561ffff81168114613ad557600080fd5b80358015158114613ad557600080fd5b600060c08284031215613bd357600080fd5b60405160c0810181811067ffffffffffffffff82111715613bf657613bf6613b40565b604052613c0283613b87565b8152613c1060208401613b87565b6020820152613c2160408401613b9f565b6040820152613c3260608401613b9f565b606082015260808301356080820152613c4d60a08401613bb1565b60a08201529392505050565b600082601f830112613c6a57600080fd5b8135602067ffffffffffffffff821115613c8657613c86613b40565b8160051b613c95828201613b56565b9283528481018201928281019087851115613caf57600080fd5b83870192505b84831015613cce57823582529183019190830190613cb5565b979650505050505050565b60008060408385031215613cec57600080fd5b823567ffffffffffffffff811115613d0357600080fd5b613d0f85828601613c59565b95602094909401359450505050565b600060208284031215613d3057600080fd5b610cf782613abe565b6020808252825182820181905260009190848201906040850190845b81811015613d7757835163ffffffff1683529284019291840191600101613d55565b50909695505050505050565b60008060408385031215613d9657600080fd5b613d9f83613abe565b9150613dad60208401613bb1565b90509250929050565b60008060208385031215613dc957600080fd5b823567ffffffffffffffff80821115613de157600080fd5b818501915085601f830112613df557600080fd5b813581811115613e0457600080fd5b8660208260051b8501011115613e1957600080fd5b60209290920196919550909350505050565b60008060408385031215613e3e57600080fd5b613e4783613b87565b9150613dad60208401613b87565b600060208284031215613e6757600080fd5b813563ffffffff81168114610cf757600080fd5b600080600060608486031215613e9057600080fd5b83359250602084013567ffffffffffffffff811115613eae57600080fd5b613eba86828701613c59565b925050613ec960408501613b9f565b90509250925092565b600067ffffffffffffffff831115613eec57613eec613b40565b613eff6020601f19601f86011601613b56565b9050828152838383011115613f1357600080fd5b828260208301376000602084830101529392505050565b600060208284031215613f3c57600080fd5b813567ffffffffffffffff811115613f5357600080fd5b8201601f81018413613f6457600080fd5b612ab684823560208401613ed2565b60008060008060808587031215613f8957600080fd5b613f9285613abe565b9350613fa060208601613abe565b925060408501359150606085013567ffffffffffffffff811115613fc357600080fd5b8501601f81018713613fd457600080fd5b613fe387823560208401613ed2565b91505092959194509250565b60006020828403121561400157600080fd5b610cf782613bb1565b6000806040838503121561401d57600080fd5b61402683613abe565b9150613dad60208401613abe565b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b600067ffffffffffffffff8084168061407b5761407b614034565b92169190910492915050565b600067ffffffffffffffff838116908316818110156140a8576140a861404a565b039392505050565b600067ffffffffffffffff8083168185168083038211156140d3576140d361404a565b01949350505050565b600181811c908216806140f057607f821691505b6020821081141561411157634e487b7160e01b600052602260045260246000fd5b50919050565b600063ffffffff838116908316818110156140a8576140a861404a565b634e487b7160e01b600052603260045260246000fd5b600060ff821660ff8114156141615761416161404a565b60010192915050565b600063ffffffff8083168185168083038211156140d3576140d361404a565b600060001982141561419d5761419d61404a565b5060010190565b600063ffffffff808316818114156141be576141be61404a565b6001019392505050565b600061ffff8083168185168083038211156140d3576140d361404a565b600083516141f7818460208801613a53565b8351908301906140d3818360208801613a53565b60008160001904831182151516156142255761422561404a565b500290565b60008261423957614239614034565b500490565b6000828210156142505761425061404a565b500390565b60008261426457614264614034565b500690565b6000821982111561427c5761427c61404a565b500190565b60006001600160a01b038087168352808616602084015250836040830152608060608301526142b36080830184613a7f565b9695505050505050565b6000602082840312156142cf57600080fd5b8151610cf7816139ef56fea2646970667358221220ba7bcc5ead76dbc5571086d7cc0ad35274873413a2746c7f5cf766cc4dcea5b764736f6c63430008090033

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

0000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000002568747470733a2f2f6170692e736e65616b657268656164732e78797a2f736e65616b65722f000000000000000000000000000000000000000000000000000000

-----Decoded View---------------
Arg [0] : baseURI (string): https://api.sneakerheads.xyz/sneaker/

-----Encoded View---------------
4 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000020
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000025
Arg [2] : 68747470733a2f2f6170692e736e65616b657268656164732e78797a2f736e65
Arg [3] : 616b65722f000000000000000000000000000000000000000000000000000000


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.