ETH Price: $3,175.88 (+2.31%)

Token

Floor App Pass (APASS)
 

Overview

Max Total Supply

12,798 APASS

Holders

9,786

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Balance
1 APASS
0xec7fd42908a91c1810958dd6d3e85254a521dfed
Loading...
Loading
Loading...
Loading
Loading...
Loading

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

Similar Match Source Code
This contract matches the deployed Bytecode of the Source Code for Contract 0x02f5B3C4...b6070376B
The constructor portion of the code might be different and could alter the actual behaviour of the contract

Contract Name:
FloorAppPass

Compiler Version
v0.8.15+commit.e14f2714

Optimization Enabled:
Yes with 10000 runs

Other Settings:
default evmVersion
File 1 of 25 : floor_app_pass.sol
// SPDX-License-Identifier: UNLICENSED

// ███╗   ███╗ █████╗ ██████╗ ███████╗   ██╗    ██╗██╗████████╗██╗  ██╗   ███╗   ███╗ █████╗ ███████╗ ██████╗ ███╗   ██╗
// ████╗ ████║██╔══██╗██╔══██╗██╔════╝   ██║    ██║██║╚══██╔══╝██║  ██║   ████╗ ████║██╔══██╗██╔════╝██╔═══██╗████╗  ██║
// ██╔████╔██║███████║██║  ██║█████╗     ██║ █╗ ██║██║   ██║   ███████║   ██╔████╔██║███████║███████╗██║   ██║██╔██╗ ██║
// ██║╚██╔╝██║██╔══██║██║  ██║██╔══╝     ██║███╗██║██║   ██║   ██╔══██║   ██║╚██╔╝██║██╔══██║╚════██║██║   ██║██║╚██╗██║
// ██║ ╚═╝ ██║██║  ██║██████╔╝███████╗   ╚███╔███╔╝██║   ██║   ██║  ██║   ██║ ╚═╝ ██║██║  ██║███████║╚██████╔╝██║ ╚████║
// ╚═╝     ╚═╝╚═╝  ╚═╝╚═════╝ ╚══════╝    ╚══╝╚══╝ ╚═╝   ╚═╝   ╚═╝  ╚═╝   ╚═╝     ╚═╝╚═╝  ╚═╝╚══════╝ ╚═════╝ ╚═╝  ╚═══╝

pragma solidity ^0.8.15;

import "./mason/utils/Administrable.sol";
import "./mason/utils/Lockable.sol";
import "./mason/utils/Toggleable.sol";
import "./mason/utils/EIP712Common.sol";
import "@openzeppelin/contracts/utils/Address.sol";
import "@openzeppelin/contracts/utils/structs/EnumerableSet.sol";
import "erc721a/contracts/ERC721A.sol";
import "erc721a/contracts/extensions/ERC721ABurnable.sol";
import "erc721a/contracts/extensions/ERC721AQueryable.sol";
import { Base64 } from "./Base64.sol";
import { Utils } from "./Utils.sol";

error ExceedsMaxPerWallet();
error AlreadyOnTheList();
error InvalidTokenId();
error InsufficientPayment();

contract FloorAppPass is ERC721A, ERC721ABurnable, Lockable, Toggleable, Administrable, EIP712Common{
  using EnumerableSet for EnumerableSet.UintSet;

  uint256 public maxPerWallet = 3;
  uint256 public tokenPrice = 200000000;

  // The maximum TokenID that is currently active
  uint256 public currentMaximum;

  // This is the list of tokens which we have moved to the front of the line.
  // It is intended for one-off usage vs en-mass line skipping.
  EnumerableSet.UintSet private _skipList;

  address private royaltyAddress;
  address private treasuryAddress;

  uint256 private royaltyPercent;

  constructor (
    string memory _tokenName,
    string memory _tokenSymbol,
    string memory _baseImageURI,
    address _treasuryAddress,
    uint256 _royaltyPercent
  ) ERC721A(_tokenName, _tokenSymbol) {
    baseImageURI = _baseImageURI;

    royaltyAddress = _treasuryAddress;
    royaltyPercent = _royaltyPercent;

    treasuryAddress = _treasuryAddress;

    _setRoyalties(_treasuryAddress, _royaltyPercent);
  }

  // ------ MINTING -----------------------------------------------------------

  function mint(uint256 _count) external payable noContracts requireActiveSale requireActiveContract {
    if(_numberMinted(msg.sender) + _count > maxPerWallet) revert ExceedsMaxPerWallet();
    if(msg.value < tokenPrice * _count) revert InsufficientPayment();

    _mint(msg.sender, _count);
  }

  function whitelistMint(uint256 _count, bytes calldata _signature) external payable requiresWhitelist(_signature) noContracts requireActiveWhitelist  requireActiveContract {
    if(_numberMinted(msg.sender) + _count > maxPerWallet) revert ExceedsMaxPerWallet();
    if(msg.value < tokenPrice * _count) revert InsufficientPayment();

    _mint(msg.sender, _count);
  }

  // ------ AIRDROPS ----------------------------------------------------------

  function airdrop(uint256 _count, address _recipient) external requireActiveContract onlyOperatorsAndOwner {
    _mint(_recipient, _count);
  }

  function airdropBatch(uint256[] calldata _counts, address[] calldata _recipients) external requireActiveContract onlyOperatorsAndOwner {
    for (uint256 i; i < _recipients.length;) {
      _mint(_recipients[i], _counts[i]);
      unchecked { ++i; }
    }
  }

  // ------ LINE MANAGEMENT ---------------------------------------------------

  function letPeopleIn(uint256 _count) external onlyOperatorsAndOwner {
    uint256 skippedTokens;
    uint256 newMaximum = currentMaximum + _count;

    for(uint256 i = 0; i < _skipList.length();) {
      if(_skipList.at(i) <= newMaximum) {
        unchecked { ++skippedTokens; }
      }
      unchecked { ++i; }
    }

    currentMaximum = newMaximum + skippedTokens;
  }

  function skipTheLine(uint256 _tokenId) external onlyOperatorsAndOwner {
    if(!_exists(_tokenId)) revert InvalidTokenId();
    if(_tokenId <= currentMaximum) revert AlreadyOnTheList();

    if(_tokenId == currentMaximum + 1) {
      unchecked { ++currentMaximum; }
    }

    _skipList.add(_tokenId);
  }

  function currentStartOfLine() public view returns (uint256) {
    return currentMaximum + 1;
  }

  function _isLive(uint256 tokenId) internal view returns (bool) {
    return tokenId < currentMaximum + 1 || _skipList.contains(tokenId);
  }

  function _placeInLine(uint256 tokenId) internal view returns (uint256) {
    if(_isLive(tokenId)) return 0;

    uint256 underMaximum;
    for(uint256 i = 1; i < tokenId;) {
      if(_skipList.contains(i) && i > currentMaximum) {
        unchecked { ++underMaximum; }
      }
      unchecked { ++i; }
    }

    return tokenId - currentMaximum - underMaximum;
  }

  // ------ ADMINISTRATION ----------------------------------------------------

  function setMaxPerWallet(uint256 _maxPerWallet) external onlyOwner {
    maxPerWallet = _maxPerWallet;
  }

  function setTokenPrice(uint256 _tokenPrice) external onlyOwner {
    tokenPrice = _tokenPrice;
  }

  function setTreasuryAddress(address _treasuryAddress) external onlyOwner {
    treasuryAddress = _treasuryAddress;
  }

  function getTreasuryAddress() public view returns (address) {
    return treasuryAddress;
  }

  // ------ TOKEN METADATA ----------------------------------------------------

  string private baseImageURI;
  string private imageExtension = ".jpg";
  string private externalUrl = "https://www.floornfts.io";
  string private tokenDescription = "The Floor App Pass unlocks the Floor app for iOS & Android (in beta) and grants access to Floor App Pass channels in the Floor Discord.\\n\\nLearn more, and get started at https://floor.link/app-pass-nft";
  string private tokenName = "Floor App Pass";

  function getBaseImageURI() public view returns (string memory) {
    return baseImageURI;
  }

  function getExternalUrl() public view returns (string memory) {
    return externalUrl;
  }

  function getImageExtension() public view returns (string memory) {
    return imageExtension;
  }

  function getTokenDescription() public view returns (string memory) {
    return tokenDescription;
  }

  function getTokenName() public view returns (string memory) {
    return tokenName;
  }

  function setBaseImageURI(string memory _baseImageURI) external onlyOwner {
    baseImageURI = _baseImageURI;
  }

  function setExternalUri(string memory _externalUrl) external onlyOwner {
    externalUrl = _externalUrl;
  }

  function setImageExtension(string memory _imageExtension) external onlyOwner {
    imageExtension = _imageExtension;
  }

  function setTokenDescription(string memory _tokenDescription) external onlyOwner {
    tokenDescription = _tokenDescription;
  }

  function setTokenName(string memory _tokenName) external onlyOwner {
    tokenName = _tokenName;
  }

  function _startTokenId() internal view virtual override returns (uint256) {
    return 1;
  }

  function tokenURI(uint256 tokenId) public view virtual override(ERC721A, IERC721A) returns (string memory) {
    bool isLive = _isLive(tokenId);

    string memory attributes;
    if(isLive) {
      attributes = string(abi.encodePacked(
        '[ { "trait_type": "Active", "value": "',
        isLive ? 'True' : 'False',
        '"}]'));
    } else {
      attributes = string(abi.encodePacked(
        '[ { "trait_type": "Place Number", "value": "',
        Utils.uintToString(_placeInLine(tokenId)),
        '"}, { "trait_type": "Active", "value": "',
        isLive ? 'True' : 'False',
        '"}]'));
    }

    return
      string(
        abi.encodePacked(
          "data:application/json;base64,",
          Base64.encode(
            bytes(
              abi.encodePacked(
                '{"name": "',
                tokenName,
                '", "description": "',
                tokenDescription,
                '", "external_url": "',
                externalUrl,
                '", "image":"',
                _imageURI(tokenId),
                '", "attributes":',
                attributes,
                '}'
              )
            )
          )
        )
      );
  }

  function _imageURI(uint256 tokenId) internal view returns(string memory) {
    string memory uri;
    if(tokenId <= currentMaximum) {
      uri = string.concat(baseImageURI, "0", imageExtension);
    } else {
      uri = string.concat(baseImageURI,  Utils.uintToString(_placeInLine(tokenId)), imageExtension);
    }

    return uri;
  }

  // ------ ROYALTIES  & PAYMENT-----------------------------------------------

  function _setRoyalties(address _receiver, uint256 _percentage) internal {
    royaltyAddress = _receiver;
    royaltyPercent = _percentage;
  }

  function royaltyInfo(uint256 _tokenId, uint256 _salePrice) external view returns (address receiver, uint256 royaltyAmount) {
    receiver = royaltyAddress;

    // This sets percentages by price * percentage / 100
    royaltyAmount = _salePrice * royaltyPercent / 100;
  }

  function release() external onlyOwner {
    uint256 balance = address(this).balance;

    Address.sendValue(payable(treasuryAddress), balance);
  }

  function supportsInterface(bytes4 interfaceId) public view override(ERC721A, IERC721A, AccessControlEnumerable) returns (bool) {
    return ERC721A.supportsInterface(interfaceId);
  }
}

File 2 of 25 : Utils.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.13;

library Utils {
  function uintToString(uint v) internal pure returns (string memory) {
      uint maxlength = 100;
      bytes memory reversed = new bytes(maxlength);
      uint i = 0;
      while (v != 0) {
          uint remainder = v % 10;
          v = v / 10;
          reversed[i++] = bytes1(uint8(48 + remainder));
      }
      bytes memory s = new bytes(i); // i + 1 is inefficient
      for (uint j = 0; j < i; j++) {
          s[j] = reversed[i - j - 1]; // to avoid the off-by-one error
      }
      string memory str = string(s);  // memory isn't implicitly convertible to storage
      return str;
  }
}

File 3 of 25 : Base64.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.13;

/// [MIT License]
/// @title Base64
/// @notice Provides a function for encoding some bytes in base64
/// @author Brecht Devos <[email protected]>
library Base64 {
    bytes internal constant TABLE =
        "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";

    /// @notice Encodes some bytes to the base64 representation
    function encode(bytes memory data) internal pure returns (string memory) {
        uint256 len = data.length;
        if (len == 0) return "";

        // multiply by 4/3 rounded up
        uint256 encodedLen = 4 * ((len + 2) / 3);

        // Add some extra buffer at the end
        bytes memory result = new bytes(encodedLen + 32);

        bytes memory table = TABLE;

        assembly {
            let tablePtr := add(table, 1)
            let resultPtr := add(result, 32)

            for {
                let i := 0
            } lt(i, len) {

            } {
                i := add(i, 3)
                let input := and(mload(add(data, i)), 0xffffff)

                let out := mload(add(tablePtr, and(shr(18, input), 0x3F)))
                out := shl(8, out)
                out := add(
                    out,
                    and(mload(add(tablePtr, and(shr(12, input), 0x3F))), 0xFF)
                )
                out := shl(8, out)
                out := add(
                    out,
                    and(mload(add(tablePtr, and(shr(6, input), 0x3F))), 0xFF)
                )
                out := shl(8, out)
                out := add(
                    out,
                    and(mload(add(tablePtr, and(input, 0x3F))), 0xFF)
                )
                out := shl(224, out)

                mstore(resultPtr, out)

                resultPtr := add(resultPtr, 4)
            }

            switch mod(len, 3)
            case 1 {
                mstore(sub(resultPtr, 2), shl(240, 0x3d3d))
            }
            case 2 {
                mstore(sub(resultPtr, 1), shl(248, 0x3d))
            }

            mstore(result, encodedLen)
        }

        return string(result);
    }
}

File 4 of 25 : ERC721AQueryable.sol
// SPDX-License-Identifier: MIT
// ERC721A Contracts v4.1.0
// Creator: Chiru Labs

pragma solidity ^0.8.4;

import './IERC721AQueryable.sol';
import '../ERC721A.sol';

/**
 * @title ERC721A Queryable
 * @dev ERC721A subclass with convenience query functions.
 */
abstract contract ERC721AQueryable is ERC721A, IERC721AQueryable {
    /**
     * @dev Returns the `TokenOwnership` struct at `tokenId` without reverting.
     *
     * If the `tokenId` is out of bounds:
     *   - `addr` = `address(0)`
     *   - `startTimestamp` = `0`
     *   - `burned` = `false`
     *   - `extraData` = `0`
     *
     * If the `tokenId` is burned:
     *   - `addr` = `<Address of owner before token was burned>`
     *   - `startTimestamp` = `<Timestamp when token was burned>`
     *   - `burned = `true`
     *   - `extraData` = `<Extra data when token was burned>`
     *
     * Otherwise:
     *   - `addr` = `<Address of owner>`
     *   - `startTimestamp` = `<Timestamp of start of ownership>`
     *   - `burned = `false`
     *   - `extraData` = `<Extra data at start of ownership>`
     */
    function explicitOwnershipOf(uint256 tokenId) public view override returns (TokenOwnership memory) {
        TokenOwnership memory ownership;
        if (tokenId < _startTokenId() || tokenId >= _nextTokenId()) {
            return ownership;
        }
        ownership = _ownershipAt(tokenId);
        if (ownership.burned) {
            return ownership;
        }
        return _ownershipOf(tokenId);
    }

    /**
     * @dev Returns an array of `TokenOwnership` structs at `tokenIds` in order.
     * See {ERC721AQueryable-explicitOwnershipOf}
     */
    function explicitOwnershipsOf(uint256[] memory tokenIds) external view override returns (TokenOwnership[] memory) {
        unchecked {
            uint256 tokenIdsLength = tokenIds.length;
            TokenOwnership[] memory ownerships = new TokenOwnership[](tokenIdsLength);
            for (uint256 i; i != tokenIdsLength; ++i) {
                ownerships[i] = explicitOwnershipOf(tokenIds[i]);
            }
            return ownerships;
        }
    }

    /**
     * @dev Returns an array of token IDs owned by `owner`,
     * in the range [`start`, `stop`)
     * (i.e. `start <= tokenId < stop`).
     *
     * This function allows for tokens to be queried if the collection
     * grows too big for a single call of {ERC721AQueryable-tokensOfOwner}.
     *
     * Requirements:
     *
     * - `start` < `stop`
     */
    function tokensOfOwnerIn(
        address owner,
        uint256 start,
        uint256 stop
    ) external view override returns (uint256[] memory) {
        unchecked {
            if (start >= stop) revert InvalidQueryRange();
            uint256 tokenIdsIdx;
            uint256 stopLimit = _nextTokenId();
            // Set `start = max(start, _startTokenId())`.
            if (start < _startTokenId()) {
                start = _startTokenId();
            }
            // Set `stop = min(stop, stopLimit)`.
            if (stop > stopLimit) {
                stop = stopLimit;
            }
            uint256 tokenIdsMaxLength = balanceOf(owner);
            // Set `tokenIdsMaxLength = min(balanceOf(owner), stop - start)`,
            // to cater for cases where `balanceOf(owner)` is too big.
            if (start < stop) {
                uint256 rangeLength = stop - start;
                if (rangeLength < tokenIdsMaxLength) {
                    tokenIdsMaxLength = rangeLength;
                }
            } else {
                tokenIdsMaxLength = 0;
            }
            uint256[] memory tokenIds = new uint256[](tokenIdsMaxLength);
            if (tokenIdsMaxLength == 0) {
                return tokenIds;
            }
            // We need to call `explicitOwnershipOf(start)`,
            // because the slot at `start` may not be initialized.
            TokenOwnership memory ownership = explicitOwnershipOf(start);
            address currOwnershipAddr;
            // If the starting slot exists (i.e. not burned), initialize `currOwnershipAddr`.
            // `ownership.address` will not be zero, as `start` is clamped to the valid token ID range.
            if (!ownership.burned) {
                currOwnershipAddr = ownership.addr;
            }
            for (uint256 i = start; i != stop && tokenIdsIdx != tokenIdsMaxLength; ++i) {
                ownership = _ownershipAt(i);
                if (ownership.burned) {
                    continue;
                }
                if (ownership.addr != address(0)) {
                    currOwnershipAddr = ownership.addr;
                }
                if (currOwnershipAddr == owner) {
                    tokenIds[tokenIdsIdx++] = i;
                }
            }
            // Downsize the array to fit.
            assembly {
                mstore(tokenIds, tokenIdsIdx)
            }
            return tokenIds;
        }
    }

    /**
     * @dev Returns an array of token IDs owned by `owner`.
     *
     * This function scans the ownership mapping and is O(totalSupply) in complexity.
     * It is meant to be called off-chain.
     *
     * See {ERC721AQueryable-tokensOfOwnerIn} for splitting the scan into
     * multiple smaller scans if the collection is large enough to cause
     * an out-of-gas error (10K pfp collections should be fine).
     */
    function tokensOfOwner(address owner) external view override returns (uint256[] memory) {
        unchecked {
            uint256 tokenIdsIdx;
            address currOwnershipAddr;
            uint256 tokenIdsLength = balanceOf(owner);
            uint256[] memory tokenIds = new uint256[](tokenIdsLength);
            TokenOwnership memory ownership;
            for (uint256 i = _startTokenId(); tokenIdsIdx != tokenIdsLength; ++i) {
                ownership = _ownershipAt(i);
                if (ownership.burned) {
                    continue;
                }
                if (ownership.addr != address(0)) {
                    currOwnershipAddr = ownership.addr;
                }
                if (currOwnershipAddr == owner) {
                    tokenIds[tokenIdsIdx++] = i;
                }
            }
            return tokenIds;
        }
    }
}

File 5 of 25 : ERC721ABurnable.sol
// SPDX-License-Identifier: MIT
// ERC721A Contracts v4.1.0
// Creator: Chiru Labs

pragma solidity ^0.8.4;

import './IERC721ABurnable.sol';
import '../ERC721A.sol';

/**
 * @title ERC721A Burnable Token
 * @dev ERC721A Token that can be irreversibly burned (destroyed).
 */
abstract contract ERC721ABurnable is ERC721A, IERC721ABurnable {
    /**
     * @dev Burns `tokenId`. See {ERC721A-_burn}.
     *
     * Requirements:
     *
     * - The caller must own `tokenId` or be an approved operator.
     */
    function burn(uint256 tokenId) public virtual override {
        _burn(tokenId, true);
    }
}

File 6 of 25 : ERC721A.sol
// SPDX-License-Identifier: MIT
// ERC721A Contracts v4.1.0
// Creator: Chiru Labs

pragma solidity ^0.8.4;

import './IERC721A.sol';

/**
 * @dev ERC721 token receiver interface.
 */
interface ERC721A__IERC721Receiver {
    function onERC721Received(
        address operator,
        address from,
        uint256 tokenId,
        bytes calldata data
    ) external returns (bytes4);
}

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

    // The bit position of `numberMinted` in packed address data.
    uint256 private constant BITPOS_NUMBER_MINTED = 64;

    // The bit position of `numberBurned` in packed address data.
    uint256 private constant BITPOS_NUMBER_BURNED = 128;

    // The bit position of `aux` in packed address data.
    uint256 private constant BITPOS_AUX = 192;

    // Mask of all 256 bits in packed address data except the 64 bits for `aux`.
    uint256 private constant BITMASK_AUX_COMPLEMENT = (1 << 192) - 1;

    // The bit position of `startTimestamp` in packed ownership.
    uint256 private constant BITPOS_START_TIMESTAMP = 160;

    // The bit mask of the `burned` bit in packed ownership.
    uint256 private constant BITMASK_BURNED = 1 << 224;

    // The bit position of the `nextInitialized` bit in packed ownership.
    uint256 private constant BITPOS_NEXT_INITIALIZED = 225;

    // The bit mask of the `nextInitialized` bit in packed ownership.
    uint256 private constant BITMASK_NEXT_INITIALIZED = 1 << 225;

    // The bit position of `extraData` in packed ownership.
    uint256 private constant BITPOS_EXTRA_DATA = 232;

    // Mask of all 256 bits in a packed ownership except the 24 bits for `extraData`.
    uint256 private constant BITMASK_EXTRA_DATA_COMPLEMENT = (1 << 232) - 1;

    // The mask of the lower 160 bits for addresses.
    uint256 private constant BITMASK_ADDRESS = (1 << 160) - 1;

    // The maximum `quantity` that can be minted with `_mintERC2309`.
    // This limit is to prevent overflows on the address data entries.
    // For a limit of 5000, a total of 3.689e15 calls to `_mintERC2309`
    // is required to cause an overflow, which is unrealistic.
    uint256 private constant MAX_MINT_ERC2309_QUANTITY_LIMIT = 5000;

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

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

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

    // Mapping from token ID to ownership details
    // An empty struct value does not necessarily mean the token is unowned.
    // See `_packedOwnershipOf` implementation for details.
    //
    // Bits Layout:
    // - [0..159]   `addr`
    // - [160..223] `startTimestamp`
    // - [224]      `burned`
    // - [225]      `nextInitialized`
    // - [232..255] `extraData`
    mapping(uint256 => uint256) private _packedOwnerships;

    // Mapping owner address to address data.
    //
    // Bits Layout:
    // - [0..63]    `balance`
    // - [64..127]  `numberMinted`
    // - [128..191] `numberBurned`
    // - [192..255] `aux`
    mapping(address => uint256) private _packedAddressData;

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

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

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

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

    /**
     * @dev Returns the next token ID to be minted.
     */
    function _nextTokenId() internal view returns (uint256) {
        return _currentIndex;
    }

    /**
     * @dev Returns the total number of tokens in existence.
     * Burned tokens will reduce the count.
     * To get the total number of tokens minted, please see `_totalMinted`.
     */
    function totalSupply() public view override returns (uint256) {
        // Counter underflow is impossible as _burnCounter cannot be incremented
        // more than `_currentIndex - _startTokenId()` times.
        unchecked {
            return _currentIndex - _burnCounter - _startTokenId();
        }
    }

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

    /**
     * @dev Returns the total number of tokens burned.
     */
    function _totalBurned() internal view returns (uint256) {
        return _burnCounter;
    }

    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
        // The interface IDs are constants representing the first 4 bytes of the XOR of
        // all function selectors in the interface. See: https://eips.ethereum.org/EIPS/eip-165
        // e.g. `bytes4(i.functionA.selector ^ i.functionB.selector ^ ...)`
        return
            interfaceId == 0x01ffc9a7 || // ERC165 interface ID for ERC165.
            interfaceId == 0x80ac58cd || // ERC165 interface ID for ERC721.
            interfaceId == 0x5b5e139f; // ERC165 interface ID for ERC721Metadata.
    }

    /**
     * @dev See {IERC721-balanceOf}.
     */
    function balanceOf(address owner) public view override returns (uint256) {
        if (owner == address(0)) revert BalanceQueryForZeroAddress();
        return _packedAddressData[owner] & BITMASK_ADDRESS_DATA_ENTRY;
    }

    /**
     * Returns the number of tokens minted by `owner`.
     */
    function _numberMinted(address owner) internal view returns (uint256) {
        return (_packedAddressData[owner] >> BITPOS_NUMBER_MINTED) & BITMASK_ADDRESS_DATA_ENTRY;
    }

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

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

    /**
     * Sets the auxiliary data for `owner`. (e.g. number of whitelist mint slots used).
     * If there are multiple variables, please pack them into a uint64.
     */
    function _setAux(address owner, uint64 aux) internal {
        uint256 packed = _packedAddressData[owner];
        uint256 auxCasted;
        // Cast `aux` with assembly to avoid redundant masking.
        assembly {
            auxCasted := aux
        }
        packed = (packed & BITMASK_AUX_COMPLEMENT) | (auxCasted << BITPOS_AUX);
        _packedAddressData[owner] = packed;
    }

    /**
     * Returns the packed ownership data of `tokenId`.
     */
    function _packedOwnershipOf(uint256 tokenId) private view returns (uint256) {
        uint256 curr = tokenId;

        unchecked {
            if (_startTokenId() <= curr)
                if (curr < _currentIndex) {
                    uint256 packed = _packedOwnerships[curr];
                    // If not burned.
                    if (packed & BITMASK_BURNED == 0) {
                        // Invariant:
                        // There will always be an ownership that has an address and is not burned
                        // before an ownership that does not have an address and is not burned.
                        // Hence, curr will not underflow.
                        //
                        // We can directly compare the packed value.
                        // If the address is zero, packed is zero.
                        while (packed == 0) {
                            packed = _packedOwnerships[--curr];
                        }
                        return packed;
                    }
                }
        }
        revert OwnerQueryForNonexistentToken();
    }

    /**
     * Returns the unpacked `TokenOwnership` struct from `packed`.
     */
    function _unpackedOwnership(uint256 packed) private pure returns (TokenOwnership memory ownership) {
        ownership.addr = address(uint160(packed));
        ownership.startTimestamp = uint64(packed >> BITPOS_START_TIMESTAMP);
        ownership.burned = packed & BITMASK_BURNED != 0;
        ownership.extraData = uint24(packed >> BITPOS_EXTRA_DATA);
    }

    /**
     * Returns the unpacked `TokenOwnership` struct at `index`.
     */
    function _ownershipAt(uint256 index) internal view returns (TokenOwnership memory) {
        return _unpackedOwnership(_packedOwnerships[index]);
    }

    /**
     * @dev Initializes the ownership slot minted at `index` for efficiency purposes.
     */
    function _initializeOwnershipAt(uint256 index) internal {
        if (_packedOwnerships[index] == 0) {
            _packedOwnerships[index] = _packedOwnershipOf(index);
        }
    }

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

    /**
     * @dev Packs ownership data into a single uint256.
     */
    function _packOwnershipData(address owner, uint256 flags) private view returns (uint256 result) {
        assembly {
            // Mask `owner` to the lower 160 bits, in case the upper bits somehow aren't clean.
            owner := and(owner, BITMASK_ADDRESS)
            // `owner | (block.timestamp << BITPOS_START_TIMESTAMP) | flags`.
            result := or(owner, or(shl(BITPOS_START_TIMESTAMP, timestamp()), flags))
        }
    }

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

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

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

    /**
     * @dev See {IERC721Metadata-tokenURI}.
     */
    function tokenURI(uint256 tokenId) public view virtual override returns (string memory) {
        if (!_exists(tokenId)) revert URIQueryForNonexistentToken();

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

    /**
     * @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, it can be overridden in child contracts.
     */
    function _baseURI() internal view virtual returns (string memory) {
        return '';
    }

    /**
     * @dev Returns the `nextInitialized` flag set if `quantity` equals 1.
     */
    function _nextInitializedFlag(uint256 quantity) private pure returns (uint256 result) {
        // For branchless setting of the `nextInitialized` flag.
        assembly {
            // `(quantity == 1) << BITPOS_NEXT_INITIALIZED`.
            result := shl(BITPOS_NEXT_INITIALIZED, eq(quantity, 1))
        }
    }

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

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

        _tokenApprovals[tokenId] = to;
        emit Approval(owner, to, tokenId);
    }

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

        return _tokenApprovals[tokenId];
    }

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

        _operatorApprovals[_msgSenderERC721A()][operator] = approved;
        emit ApprovalForAll(_msgSenderERC721A(), 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-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 {
        transferFrom(from, to, tokenId);
        if (to.code.length != 0)
            if (!_checkContractOnERC721Received(from, to, tokenId, _data)) {
                revert TransferToNonERC721ReceiverImplementer();
            }
    }

    /**
     * @dev Returns whether `tokenId` exists.
     *
     * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}.
     *
     * Tokens start existing when they are minted (`_mint`),
     */
    function _exists(uint256 tokenId) internal view returns (bool) {
        return
            _startTokenId() <= tokenId &&
            tokenId < _currentIndex && // If within bounds,
            _packedOwnerships[tokenId] & BITMASK_BURNED == 0; // and not burned.
    }

    /**
     * @dev Equivalent to `_safeMint(to, quantity, '')`.
     */
    function _safeMint(address to, uint256 quantity) internal {
        _safeMint(to, quantity, '');
    }

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

        unchecked {
            if (to.code.length != 0) {
                uint256 end = _currentIndex;
                uint256 index = end - quantity;
                do {
                    if (!_checkContractOnERC721Received(address(0), to, index++, _data)) {
                        revert TransferToNonERC721ReceiverImplementer();
                    }
                } while (index < end);
                // Reentrancy protection.
                if (_currentIndex != end) revert();
            }
        }
    }

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

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

        // Overflows are incredibly unrealistic.
        // `balance` and `numberMinted` have a maximum limit of 2**64.
        // `tokenId` has a maximum limit of 2**256.
        unchecked {
            // Updates:
            // - `balance += quantity`.
            // - `numberMinted += quantity`.
            //
            // We can directly add to the `balance` and `numberMinted`.
            _packedAddressData[to] += quantity * ((1 << BITPOS_NUMBER_MINTED) | 1);

            // Updates:
            // - `address` to the owner.
            // - `startTimestamp` to the timestamp of minting.
            // - `burned` to `false`.
            // - `nextInitialized` to `quantity == 1`.
            _packedOwnerships[startTokenId] = _packOwnershipData(
                to,
                _nextInitializedFlag(quantity) | _nextExtraData(address(0), to, 0)
            );

            uint256 tokenId = startTokenId;
            uint256 end = startTokenId + quantity;
            do {
                emit Transfer(address(0), to, tokenId++);
            } while (tokenId < end);

            _currentIndex = end;
        }
        _afterTokenTransfers(address(0), to, startTokenId, quantity);
    }

    /**
     * @dev Mints `quantity` tokens and transfers them to `to`.
     *
     * This function is intended for efficient minting only during contract creation.
     *
     * It emits only one {ConsecutiveTransfer} as defined in
     * [ERC2309](https://eips.ethereum.org/EIPS/eip-2309),
     * instead of a sequence of {Transfer} event(s).
     *
     * Calling this function outside of contract creation WILL make your contract
     * non-compliant with the ERC721 standard.
     * For full ERC721 compliance, substituting ERC721 {Transfer} event(s) with the ERC2309
     * {ConsecutiveTransfer} event is only permissible during contract creation.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - `quantity` must be greater than 0.
     *
     * Emits a {ConsecutiveTransfer} event.
     */
    function _mintERC2309(address to, uint256 quantity) internal {
        uint256 startTokenId = _currentIndex;
        if (to == address(0)) revert MintToZeroAddress();
        if (quantity == 0) revert MintZeroQuantity();
        if (quantity > MAX_MINT_ERC2309_QUANTITY_LIMIT) revert MintERC2309QuantityExceedsLimit();

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

        // Overflows are unrealistic due to the above check for `quantity` to be below the limit.
        unchecked {
            // Updates:
            // - `balance += quantity`.
            // - `numberMinted += quantity`.
            //
            // We can directly add to the `balance` and `numberMinted`.
            _packedAddressData[to] += quantity * ((1 << BITPOS_NUMBER_MINTED) | 1);

            // Updates:
            // - `address` to the owner.
            // - `startTimestamp` to the timestamp of minting.
            // - `burned` to `false`.
            // - `nextInitialized` to `quantity == 1`.
            _packedOwnerships[startTokenId] = _packOwnershipData(
                to,
                _nextInitializedFlag(quantity) | _nextExtraData(address(0), to, 0)
            );

            emit ConsecutiveTransfer(startTokenId, startTokenId + quantity - 1, address(0), to);

            _currentIndex = startTokenId + quantity;
        }
        _afterTokenTransfers(address(0), to, startTokenId, quantity);
    }

    /**
     * @dev Returns the storage slot and value for the approved address of `tokenId`.
     */
    function _getApprovedAddress(uint256 tokenId)
        private
        view
        returns (uint256 approvedAddressSlot, address approvedAddress)
    {
        mapping(uint256 => address) storage tokenApprovalsPtr = _tokenApprovals;
        // The following is equivalent to `approvedAddress = _tokenApprovals[tokenId]`.
        assembly {
            // Compute the slot.
            mstore(0x00, tokenId)
            mstore(0x20, tokenApprovalsPtr.slot)
            approvedAddressSlot := keccak256(0x00, 0x40)
            // Load the slot's value from storage.
            approvedAddress := sload(approvedAddressSlot)
        }
    }

    /**
     * @dev Returns whether the `approvedAddress` is equals to `from` or `msgSender`.
     */
    function _isOwnerOrApproved(
        address approvedAddress,
        address from,
        address msgSender
    ) private pure returns (bool result) {
        assembly {
            // Mask `from` to the lower 160 bits, in case the upper bits somehow aren't clean.
            from := and(from, BITMASK_ADDRESS)
            // Mask `msgSender` to the lower 160 bits, in case the upper bits somehow aren't clean.
            msgSender := and(msgSender, BITMASK_ADDRESS)
            // `msgSender == from || msgSender == approvedAddress`.
            result := or(eq(msgSender, from), eq(msgSender, approvedAddress))
        }
    }

    /**
     * @dev Transfers `tokenId` from `from` to `to`.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - `tokenId` token must be owned by `from`.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(
        address from,
        address to,
        uint256 tokenId
    ) public virtual override {
        uint256 prevOwnershipPacked = _packedOwnershipOf(tokenId);

        if (address(uint160(prevOwnershipPacked)) != from) revert TransferFromIncorrectOwner();

        (uint256 approvedAddressSlot, address approvedAddress) = _getApprovedAddress(tokenId);

        // The nested ifs save around 20+ gas over a compound boolean condition.
        if (!_isOwnerOrApproved(approvedAddress, from, _msgSenderERC721A()))
            if (!isApprovedForAll(from, _msgSenderERC721A())) revert TransferCallerNotOwnerNorApproved();

        if (to == address(0)) revert TransferToZeroAddress();

        _beforeTokenTransfers(from, to, tokenId, 1);

        // Clear approvals from the previous owner.
        assembly {
            if approvedAddress {
                // This is equivalent to `delete _tokenApprovals[tokenId]`.
                sstore(approvedAddressSlot, 0)
            }
        }

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

            // Updates:
            // - `address` to the next owner.
            // - `startTimestamp` to the timestamp of transfering.
            // - `burned` to `false`.
            // - `nextInitialized` to `true`.
            _packedOwnerships[tokenId] = _packOwnershipData(
                to,
                BITMASK_NEXT_INITIALIZED | _nextExtraData(from, to, prevOwnershipPacked)
            );

            // If the next slot may not have been initialized (i.e. `nextInitialized == false`) .
            if (prevOwnershipPacked & BITMASK_NEXT_INITIALIZED == 0) {
                uint256 nextTokenId = tokenId + 1;
                // If the next slot's address is zero and not burned (i.e. packed value is zero).
                if (_packedOwnerships[nextTokenId] == 0) {
                    // If the next slot is within bounds.
                    if (nextTokenId != _currentIndex) {
                        // Initialize the next slot to maintain correctness for `ownerOf(tokenId + 1)`.
                        _packedOwnerships[nextTokenId] = prevOwnershipPacked;
                    }
                }
            }
        }

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

    /**
     * @dev Equivalent to `_burn(tokenId, false)`.
     */
    function _burn(uint256 tokenId) internal virtual {
        _burn(tokenId, false);
    }

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

        address from = address(uint160(prevOwnershipPacked));

        (uint256 approvedAddressSlot, address approvedAddress) = _getApprovedAddress(tokenId);

        if (approvalCheck) {
            // The nested ifs save around 20+ gas over a compound boolean condition.
            if (!_isOwnerOrApproved(approvedAddress, from, _msgSenderERC721A()))
                if (!isApprovedForAll(from, _msgSenderERC721A())) revert TransferCallerNotOwnerNorApproved();
        }

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

        // Clear approvals from the previous owner.
        assembly {
            if approvedAddress {
                // This is equivalent to `delete _tokenApprovals[tokenId]`.
                sstore(approvedAddressSlot, 0)
            }
        }

        // Underflow of the sender's balance is impossible because we check for
        // ownership above and the recipient's balance can't realistically overflow.
        // Counter overflow is incredibly unrealistic as `tokenId` would have to be 2**256.
        unchecked {
            // Updates:
            // - `balance -= 1`.
            // - `numberBurned += 1`.
            //
            // We can directly decrement the balance, and increment the number burned.
            // This is equivalent to `packed -= 1; packed += 1 << BITPOS_NUMBER_BURNED;`.
            _packedAddressData[from] += (1 << BITPOS_NUMBER_BURNED) - 1;

            // Updates:
            // - `address` to the last owner.
            // - `startTimestamp` to the timestamp of burning.
            // - `burned` to `true`.
            // - `nextInitialized` to `true`.
            _packedOwnerships[tokenId] = _packOwnershipData(
                from,
                (BITMASK_BURNED | BITMASK_NEXT_INITIALIZED) | _nextExtraData(from, address(0), prevOwnershipPacked)
            );

            // If the next slot may not have been initialized (i.e. `nextInitialized == false`) .
            if (prevOwnershipPacked & BITMASK_NEXT_INITIALIZED == 0) {
                uint256 nextTokenId = tokenId + 1;
                // If the next slot's address is zero and not burned (i.e. packed value is zero).
                if (_packedOwnerships[nextTokenId] == 0) {
                    // If the next slot is within bounds.
                    if (nextTokenId != _currentIndex) {
                        // Initialize the next slot to maintain correctness for `ownerOf(tokenId + 1)`.
                        _packedOwnerships[nextTokenId] = prevOwnershipPacked;
                    }
                }
            }
        }

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

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

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

    /**
     * @dev Directly sets the extra data for the ownership data `index`.
     */
    function _setExtraDataAt(uint256 index, uint24 extraData) internal {
        uint256 packed = _packedOwnerships[index];
        if (packed == 0) revert OwnershipNotInitializedForExtraData();
        uint256 extraDataCasted;
        // Cast `extraData` with assembly to avoid redundant masking.
        assembly {
            extraDataCasted := extraData
        }
        packed = (packed & BITMASK_EXTRA_DATA_COMPLEMENT) | (extraDataCasted << BITPOS_EXTRA_DATA);
        _packedOwnerships[index] = packed;
    }

    /**
     * @dev Returns the next extra data for the packed ownership data.
     * The returned result is shifted into position.
     */
    function _nextExtraData(
        address from,
        address to,
        uint256 prevOwnershipPacked
    ) private view returns (uint256) {
        uint24 extraData = uint24(prevOwnershipPacked >> BITPOS_EXTRA_DATA);
        return uint256(_extraData(from, to, extraData)) << BITPOS_EXTRA_DATA;
    }

    /**
     * @dev Called during each token transfer to set the 24bit `extraData` field.
     * Intended to be overridden by the cosumer contract.
     *
     * `previousExtraData` - the value of `extraData` before transfer.
     *
     * Calling conditions:
     *
     * - When `from` and `to` are both non-zero, `from`'s `tokenId` will be
     * transferred to `to`.
     * - When `from` is zero, `tokenId` will be minted for `to`.
     * - When `to` is zero, `tokenId` will be burned by `from`.
     * - `from` and `to` are never both zero.
     */
    function _extraData(
        address from,
        address to,
        uint24 previousExtraData
    ) internal view virtual returns (uint24) {}

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

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

    /**
     * @dev Returns the message sender (defaults to `msg.sender`).
     *
     * If you are writing GSN compatible contracts, you need to override this function.
     */
    function _msgSenderERC721A() internal view virtual returns (address) {
        return msg.sender;
    }

    /**
     * @dev Converts a `uint256` to its ASCII `string` decimal representation.
     */
    function _toString(uint256 value) internal pure returns (string memory ptr) {
        assembly {
            // The maximum value of a uint256 contains 78 digits (1 byte per digit),
            // but we allocate 128 bytes to keep the free memory pointer 32-byte word aliged.
            // We will need 1 32-byte word to store the length,
            // and 3 32-byte words to store a maximum of 78 digits. Total: 32 + 3 * 32 = 128.
            ptr := add(mload(0x40), 128)
            // Update the free memory pointer to allocate.
            mstore(0x40, ptr)

            // Cache the end of the memory to calculate the length later.
            let end := ptr

            // We write the string from the rightmost digit to the leftmost digit.
            // The following is essentially a do-while loop that also handles the zero case.
            // Costs a bit more than early returning for the zero case,
            // but cheaper in terms of deployment and overall runtime costs.
            for {
                // Initialize and perform the first pass without check.
                let temp := value
                // Move the pointer 1 byte leftwards to point to an empty character slot.
                ptr := sub(ptr, 1)
                // Write the character to the pointer. 48 is the ASCII index of '0'.
                mstore8(ptr, add(48, mod(temp, 10)))
                temp := div(temp, 10)
            } temp {
                // Keep dividing `temp` until zero.
                temp := div(temp, 10)
            } {
                // Body of the for loop.
                ptr := sub(ptr, 1)
                mstore8(ptr, add(48, mod(temp, 10)))
            }

            let length := sub(end, ptr)
            // Move the pointer 32 bytes leftwards to make room for the length.
            ptr := sub(ptr, 32)
            // Store the length.
            mstore(ptr, length)
        }
    }
}

File 7 of 25 : EnumerableSet.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (utils/structs/EnumerableSet.sol)

pragma solidity ^0.8.0;

/**
 * @dev Library for managing
 * https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive
 * types.
 *
 * Sets have the following properties:
 *
 * - Elements are added, removed, and checked for existence in constant time
 * (O(1)).
 * - Elements are enumerated in O(n). No guarantees are made on the ordering.
 *
 * ```
 * contract Example {
 *     // Add the library methods
 *     using EnumerableSet for EnumerableSet.AddressSet;
 *
 *     // Declare a set state variable
 *     EnumerableSet.AddressSet private mySet;
 * }
 * ```
 *
 * As of v3.3.0, sets of type `bytes32` (`Bytes32Set`), `address` (`AddressSet`)
 * and `uint256` (`UintSet`) are supported.
 *
 * [WARNING]
 * ====
 *  Trying to delete such a structure from storage will likely result in data corruption, rendering the structure unusable.
 *  See https://github.com/ethereum/solidity/pull/11843[ethereum/solidity#11843] for more info.
 *
 *  In order to clean an EnumerableSet, you can either remove all elements one by one or create a fresh instance using an array of EnumerableSet.
 * ====
 */
library EnumerableSet {
    // To implement this library for multiple types with as little code
    // repetition as possible, we write it in terms of a generic Set type with
    // bytes32 values.
    // The Set implementation uses private functions, and user-facing
    // implementations (such as AddressSet) are just wrappers around the
    // underlying Set.
    // This means that we can only create new EnumerableSets for types that fit
    // in bytes32.

    struct Set {
        // Storage of set values
        bytes32[] _values;
        // Position of the value in the `values` array, plus 1 because index 0
        // means a value is not in the set.
        mapping(bytes32 => uint256) _indexes;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function _add(Set storage set, bytes32 value) private returns (bool) {
        if (!_contains(set, value)) {
            set._values.push(value);
            // The value is stored at length-1, but we add 1 to all indexes
            // and use 0 as a sentinel value
            set._indexes[value] = set._values.length;
            return true;
        } else {
            return false;
        }
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function _remove(Set storage set, bytes32 value) private returns (bool) {
        // We read and store the value's index to prevent multiple reads from the same storage slot
        uint256 valueIndex = set._indexes[value];

        if (valueIndex != 0) {
            // Equivalent to contains(set, value)
            // To delete an element from the _values array in O(1), we swap the element to delete with the last one in
            // the array, and then remove the last element (sometimes called as 'swap and pop').
            // This modifies the order of the array, as noted in {at}.

            uint256 toDeleteIndex = valueIndex - 1;
            uint256 lastIndex = set._values.length - 1;

            if (lastIndex != toDeleteIndex) {
                bytes32 lastValue = set._values[lastIndex];

                // Move the last value to the index where the value to delete is
                set._values[toDeleteIndex] = lastValue;
                // Update the index for the moved value
                set._indexes[lastValue] = valueIndex; // Replace lastValue's index to valueIndex
            }

            // Delete the slot where the moved value was stored
            set._values.pop();

            // Delete the index for the deleted slot
            delete set._indexes[value];

            return true;
        } else {
            return false;
        }
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function _contains(Set storage set, bytes32 value) private view returns (bool) {
        return set._indexes[value] != 0;
    }

    /**
     * @dev Returns the number of values on the set. O(1).
     */
    function _length(Set storage set) private view returns (uint256) {
        return set._values.length;
    }

    /**
     * @dev Returns the value stored at position `index` in the set. O(1).
     *
     * Note that there are no guarantees on the ordering of values inside the
     * array, and it may change when more values are added or removed.
     *
     * Requirements:
     *
     * - `index` must be strictly less than {length}.
     */
    function _at(Set storage set, uint256 index) private view returns (bytes32) {
        return set._values[index];
    }

    /**
     * @dev Return the entire set in an array
     *
     * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
     * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
     * this function has an unbounded cost, and using it as part of a state-changing function may render the function
     * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
     */
    function _values(Set storage set) private view returns (bytes32[] memory) {
        return set._values;
    }

    // Bytes32Set

    struct Bytes32Set {
        Set _inner;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function add(Bytes32Set storage set, bytes32 value) internal returns (bool) {
        return _add(set._inner, value);
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function remove(Bytes32Set storage set, bytes32 value) internal returns (bool) {
        return _remove(set._inner, value);
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function contains(Bytes32Set storage set, bytes32 value) internal view returns (bool) {
        return _contains(set._inner, value);
    }

    /**
     * @dev Returns the number of values in the set. O(1).
     */
    function length(Bytes32Set storage set) internal view returns (uint256) {
        return _length(set._inner);
    }

    /**
     * @dev Returns the value stored at position `index` in the set. O(1).
     *
     * Note that there are no guarantees on the ordering of values inside the
     * array, and it may change when more values are added or removed.
     *
     * Requirements:
     *
     * - `index` must be strictly less than {length}.
     */
    function at(Bytes32Set storage set, uint256 index) internal view returns (bytes32) {
        return _at(set._inner, index);
    }

    /**
     * @dev Return the entire set in an array
     *
     * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
     * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
     * this function has an unbounded cost, and using it as part of a state-changing function may render the function
     * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
     */
    function values(Bytes32Set storage set) internal view returns (bytes32[] memory) {
        return _values(set._inner);
    }

    // AddressSet

    struct AddressSet {
        Set _inner;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function add(AddressSet storage set, address value) internal returns (bool) {
        return _add(set._inner, bytes32(uint256(uint160(value))));
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function remove(AddressSet storage set, address value) internal returns (bool) {
        return _remove(set._inner, bytes32(uint256(uint160(value))));
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function contains(AddressSet storage set, address value) internal view returns (bool) {
        return _contains(set._inner, bytes32(uint256(uint160(value))));
    }

    /**
     * @dev Returns the number of values in the set. O(1).
     */
    function length(AddressSet storage set) internal view returns (uint256) {
        return _length(set._inner);
    }

    /**
     * @dev Returns the value stored at position `index` in the set. O(1).
     *
     * Note that there are no guarantees on the ordering of values inside the
     * array, and it may change when more values are added or removed.
     *
     * Requirements:
     *
     * - `index` must be strictly less than {length}.
     */
    function at(AddressSet storage set, uint256 index) internal view returns (address) {
        return address(uint160(uint256(_at(set._inner, index))));
    }

    /**
     * @dev Return the entire set in an array
     *
     * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
     * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
     * this function has an unbounded cost, and using it as part of a state-changing function may render the function
     * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
     */
    function values(AddressSet storage set) internal view returns (address[] memory) {
        bytes32[] memory store = _values(set._inner);
        address[] memory result;

        /// @solidity memory-safe-assembly
        assembly {
            result := store
        }

        return result;
    }

    // UintSet

    struct UintSet {
        Set _inner;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function add(UintSet storage set, uint256 value) internal returns (bool) {
        return _add(set._inner, bytes32(value));
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function remove(UintSet storage set, uint256 value) internal returns (bool) {
        return _remove(set._inner, bytes32(value));
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function contains(UintSet storage set, uint256 value) internal view returns (bool) {
        return _contains(set._inner, bytes32(value));
    }

    /**
     * @dev Returns the number of values on the set. O(1).
     */
    function length(UintSet storage set) internal view returns (uint256) {
        return _length(set._inner);
    }

    /**
     * @dev Returns the value stored at position `index` in the set. O(1).
     *
     * Note that there are no guarantees on the ordering of values inside the
     * array, and it may change when more values are added or removed.
     *
     * Requirements:
     *
     * - `index` must be strictly less than {length}.
     */
    function at(UintSet storage set, uint256 index) internal view returns (uint256) {
        return uint256(_at(set._inner, index));
    }

    /**
     * @dev Return the entire set in an array
     *
     * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
     * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
     * this function has an unbounded cost, and using it as part of a state-changing function may render the function
     * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
     */
    function values(UintSet storage set) internal view returns (uint256[] memory) {
        bytes32[] memory store = _values(set._inner);
        uint256[] memory result;

        /// @solidity memory-safe-assembly
        assembly {
            result := store
        }

        return result;
    }
}

File 8 of 25 : 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 9 of 25 : EIP712Common.sol
//SPDX-License-Identifier: Unlicense
pragma solidity ^0.8.0;

import "@openzeppelin/contracts/utils/cryptography/ECDSA.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/Strings.sol";

error InvalidSignature();
error NoSigningKey();

contract EIP712Common is Ownable {
  using ECDSA for bytes32;

  // The key used to sign whitelist signatures.
  address signingKey = address(0);

  // Domain Separator is the EIP-712 defined structure that defines what contract
  // and chain these signatures can be used for.  This ensures people can't take
  // a signature used to mint on one contract and use it for another, or a signature
  // from testnet to replay on mainnet.
  // It has to be created in the constructor so we can dynamically grab the chainId.
  // https://github.com/ethereum/EIPs/blob/master/EIPS/eip-712.md#definition-of-domainseparator
  bytes32 public CLAIM_DOMAIN_SEPARATOR;
  bytes32 public WHITELIST_DOMAIN_SEPARATOR;
  bytes32 public DISCOUNT_DOMAIN_SEPARATOR;

  // The typehash for the data type specified in the structured data
  // https://github.com/ethereum/EIPs/blob/master/EIPS/eip-712.md#rationale-for-typehash
  // This should match whats in the client side whitelist signing code
  // https://github.com/msfeldstein/EIP712-whitelisting/blob/main/test/signWhitelist.ts#L22
  bytes32 public constant CLAIM_TYPEHASH =
    keccak256("Minter(address wallet,uint256 count)");

  bytes32 public constant WHITELIST_TYPEHASH =
    keccak256("Minter(address wallet)");

  bytes32 public constant DISCOUNT_TYPEHASH =
    keccak256("Minter(address wallet, uint256 count)");

  constructor() {
    CLAIM_DOMAIN_SEPARATOR = keccak256(
      abi.encode(
        keccak256(
          "EIP712Domain(string name,string version,uint256 chainId,address verifyingContract)"
        ),
        keccak256(bytes("ClaimToken")),
        keccak256(bytes("1")),
        block.chainid,
        address(this)
      )
    );

    WHITELIST_DOMAIN_SEPARATOR = keccak256(
      abi.encode(
        keccak256(
          "EIP712Domain(string name,string version,uint256 chainId,address verifyingContract)"
        ),
        keccak256(bytes("WhitelistToken")),
        keccak256(bytes("1")),
        block.chainid,
        address(this)
      )
    );

    DISCOUNT_DOMAIN_SEPARATOR = keccak256(
      abi.encode(
        keccak256(
          "EIP712Domain(string name,string version,uint256 chainId,address verifyingContract)"
        ),
        keccak256(bytes("DiscountToken")),
        keccak256(bytes("1")),
        block.chainid,
        address(this)
      )
    );
  }

  function setSigningAddress(address newSigningKey) public onlyOwner {
      signingKey = newSigningKey;
  }

  modifier requiresClaim(bytes calldata signature, uint256 count) {
      if(signingKey == address(0)) revert NoSigningKey();

      bytes32 digest = keccak256(
          abi.encodePacked(
              "\x19\x01",
              CLAIM_DOMAIN_SEPARATOR,
              keccak256(abi.encode(
                  CLAIM_TYPEHASH,
                  msg.sender,
                  count))
          )
      );

      address recoveredAddress = digest.recover(signature);
      if(recoveredAddress != signingKey) revert InvalidSignature();
      _;
  }

  modifier requiresDiscount(bytes calldata signature, uint256 value) {
      if(signingKey == address(0)) revert NoSigningKey();

      bytes32 digest = keccak256(
          abi.encodePacked(
              "\x19\x01",
              DISCOUNT_DOMAIN_SEPARATOR,
              keccak256(abi.encode(
                  CLAIM_TYPEHASH,
                  msg.sender,
                  value))
          )
      );

      address recoveredAddress = digest.recover(signature);
      if(recoveredAddress != signingKey) revert InvalidSignature();
      _;
  }

  modifier requiresWhitelist(bytes calldata signature) {
    if(signingKey == address(0)) revert NoSigningKey();

    bytes32 digest = keccak256(
      abi.encodePacked(
        "\x19\x01",
        WHITELIST_DOMAIN_SEPARATOR,
        keccak256(abi.encode(WHITELIST_TYPEHASH, msg.sender))
      )
    );

    address recoveredAddress = digest.recover(signature);
    if(recoveredAddress != signingKey) revert InvalidSignature();
    _;
  }
}

File 10 of 25 : Toggleable.sol
// SPDX-License-Identifier: Unlicense

pragma solidity ^0.8.13;

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

error SaleNotActive();
error WhitelistNotActive();

abstract contract Toggleable is Ownable {

  bool public saleIsActive = false;
  bool public whitelistIsActive = false;

    function flipWhitelistState() external onlyOwner {
    whitelistIsActive = !whitelistIsActive;
  }

  function flipSaleState() external onlyOwner {
    saleIsActive = !saleIsActive;
  }

  modifier requireActiveSale {
    if(!saleIsActive) revert SaleNotActive();
    _;
  }

  modifier requireActiveWhitelist {
    if(!whitelistIsActive) revert WhitelistNotActive();
    _;
  }
}

File 11 of 25 : Lockable.sol
// SPDX-License-Identifier: Unlicense

pragma solidity ^0.8.13;

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

error ContractLocked();
error InvalidDestructCode();

abstract contract Lockable is Ownable {

  bool public contractIsLocked = false;

  // Recognize voice pattern Jean-Luc Picard, authorization Alpha-Alpha 3-0-5
  string private DESTRUCT_CODE = "aa305";

  function lockContract(string memory _destructCode) external onlyOwner {
    if(!_isEqual(_destructCode, DESTRUCT_CODE)) revert InvalidDestructCode();

    contractIsLocked = true;
  }

  function _isEqual(string memory s1, string memory s2) private pure returns (bool) {
    bytes memory b1 = bytes(s1);
    bytes memory b2 = bytes(s2);
    uint256 l1 = b1.length;

    if (l1 != b2.length) return false;

    for (uint256 i=0; i<l1; i++) {
      if (b1[i] != b2[i]) return false;
    }
    return true;
  }

  modifier requireActiveContract {
    if(contractIsLocked) revert ContractLocked();
    _;
  }
}

File 12 of 25 : Administrable.sol
// SPDX-License-Identifier: Unlicense

pragma solidity ^0.8.13;

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

error ContractsCannotMint();
error NotAuthorized();

abstract contract Administrable is AccessControlEnumerable, Ownable{

  bytes32 public constant OPERATOR_ROLE = keccak256("OPERATOR_ROLE");

  constructor(){
    _setupRole(DEFAULT_ADMIN_ROLE, msg.sender);
  }

  modifier onlyOperator {
    if(!hasRole(OPERATOR_ROLE, msg.sender)) revert NotAuthorized();
    _;
  }

  modifier onlyOperatorsAndOwner {
    if(owner() != msg.sender  && !hasRole(OPERATOR_ROLE, msg.sender)) revert NotAuthorized();
    _;
  }

  modifier noContracts {
    if(msg.sender != tx.origin) revert ContractsCannotMint();
    _;
  }
}

File 13 of 25 : IERC721AQueryable.sol
// SPDX-License-Identifier: MIT
// ERC721A Contracts v4.1.0
// Creator: Chiru Labs

pragma solidity ^0.8.4;

import '../IERC721A.sol';

/**
 * @dev Interface of an ERC721AQueryable compliant contract.
 */
interface IERC721AQueryable is IERC721A {
    /**
     * Invalid query range (`start` >= `stop`).
     */
    error InvalidQueryRange();

    /**
     * @dev Returns the `TokenOwnership` struct at `tokenId` without reverting.
     *
     * If the `tokenId` is out of bounds:
     *   - `addr` = `address(0)`
     *   - `startTimestamp` = `0`
     *   - `burned` = `false`
     *
     * If the `tokenId` is burned:
     *   - `addr` = `<Address of owner before token was burned>`
     *   - `startTimestamp` = `<Timestamp when token was burned>`
     *   - `burned = `true`
     *
     * Otherwise:
     *   - `addr` = `<Address of owner>`
     *   - `startTimestamp` = `<Timestamp of start of ownership>`
     *   - `burned = `false`
     */
    function explicitOwnershipOf(uint256 tokenId) external view returns (TokenOwnership memory);

    /**
     * @dev Returns an array of `TokenOwnership` structs at `tokenIds` in order.
     * See {ERC721AQueryable-explicitOwnershipOf}
     */
    function explicitOwnershipsOf(uint256[] memory tokenIds) external view returns (TokenOwnership[] memory);

    /**
     * @dev Returns an array of token IDs owned by `owner`,
     * in the range [`start`, `stop`)
     * (i.e. `start <= tokenId < stop`).
     *
     * This function allows for tokens to be queried if the collection
     * grows too big for a single call of {ERC721AQueryable-tokensOfOwner}.
     *
     * Requirements:
     *
     * - `start` < `stop`
     */
    function tokensOfOwnerIn(
        address owner,
        uint256 start,
        uint256 stop
    ) external view returns (uint256[] memory);

    /**
     * @dev Returns an array of token IDs owned by `owner`.
     *
     * This function scans the ownership mapping and is O(totalSupply) in complexity.
     * It is meant to be called off-chain.
     *
     * See {ERC721AQueryable-tokensOfOwnerIn} for splitting the scan into
     * multiple smaller scans if the collection is large enough to cause
     * an out-of-gas error (10K pfp collections should be fine).
     */
    function tokensOfOwner(address owner) external view returns (uint256[] memory);
}

File 14 of 25 : IERC721ABurnable.sol
// SPDX-License-Identifier: MIT
// ERC721A Contracts v4.1.0
// Creator: Chiru Labs

pragma solidity ^0.8.4;

import '../IERC721A.sol';

/**
 * @dev Interface of an ERC721ABurnable compliant contract.
 */
interface IERC721ABurnable is IERC721A {
    /**
     * @dev Burns `tokenId`. See {ERC721A-_burn}.
     *
     * Requirements:
     *
     * - The caller must own `tokenId` or be an approved operator.
     */
    function burn(uint256 tokenId) external;
}

File 15 of 25 : IERC721A.sol
// SPDX-License-Identifier: MIT
// ERC721A Contracts v4.1.0
// Creator: Chiru Labs

pragma solidity ^0.8.4;

/**
 * @dev Interface of an ERC721A compliant contract.
 */
interface IERC721A {
    /**
     * The caller must own the token or be an approved operator.
     */
    error ApprovalCallerNotOwnerNorApproved();

    /**
     * The token does not exist.
     */
    error ApprovalQueryForNonexistentToken();

    /**
     * The caller cannot approve to their own address.
     */
    error ApproveToCaller();

    /**
     * Cannot query the balance for the zero address.
     */
    error BalanceQueryForZeroAddress();

    /**
     * Cannot mint to the zero address.
     */
    error MintToZeroAddress();

    /**
     * The quantity of tokens minted must be more than zero.
     */
    error MintZeroQuantity();

    /**
     * The token does not exist.
     */
    error OwnerQueryForNonexistentToken();

    /**
     * The caller must own the token or be an approved operator.
     */
    error TransferCallerNotOwnerNorApproved();

    /**
     * The token must be owned by `from`.
     */
    error TransferFromIncorrectOwner();

    /**
     * Cannot safely transfer to a contract that does not implement the ERC721Receiver interface.
     */
    error TransferToNonERC721ReceiverImplementer();

    /**
     * Cannot transfer to the zero address.
     */
    error TransferToZeroAddress();

    /**
     * The token does not exist.
     */
    error URIQueryForNonexistentToken();

    /**
     * The `quantity` minted with ERC2309 exceeds the safety limit.
     */
    error MintERC2309QuantityExceedsLimit();

    /**
     * The `extraData` cannot be set on an unintialized ownership slot.
     */
    error OwnershipNotInitializedForExtraData();

    struct TokenOwnership {
        // The address of the owner.
        address addr;
        // Keeps track of the start time of ownership with minimal overhead for tokenomics.
        uint64 startTimestamp;
        // Whether the token has been burned.
        bool burned;
        // Arbitrary data similar to `startTimestamp` that can be set through `_extraData`.
        uint24 extraData;
    }

    /**
     * @dev Returns the total amount of tokens stored by the contract.
     *
     * Burned tokens are calculated here, use `_totalMinted()` if you want to count just minted tokens.
     */
    function totalSupply() external view returns (uint256);

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

    // ==============================
    //            IERC721
    // ==============================

    /**
     * @dev Emitted when `tokenId` token is transferred from `from` to `to`.
     */
    event Transfer(address indexed from, address indexed to, uint256 indexed tokenId);

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

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

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

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

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

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

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

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

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

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

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

    // ==============================
    //        IERC721Metadata
    // ==============================

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

    // ==============================
    //            IERC2309
    // ==============================

    /**
     * @dev Emitted when tokens in `fromTokenId` to `toTokenId` (inclusive) is transferred from `from` to `to`,
     * as defined in the ERC2309 standard. See `_mintERC2309` for more details.
     */
    event ConsecutiveTransfer(uint256 indexed fromTokenId, uint256 toTokenId, address indexed from, address indexed to);
}

File 16 of 25 : 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 17 of 25 : 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 18 of 25 : ECDSA.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (utils/cryptography/ECDSA.sol)

pragma solidity ^0.8.0;

import "../Strings.sol";

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

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

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

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

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

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

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

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

        return (signer, RecoverError.NoError);
    }

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

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

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

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

File 19 of 25 : AccessControlEnumerable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (access/AccessControlEnumerable.sol)

pragma solidity ^0.8.0;

import "./IAccessControlEnumerable.sol";
import "./AccessControl.sol";
import "../utils/structs/EnumerableSet.sol";

/**
 * @dev Extension of {AccessControl} that allows enumerating the members of each role.
 */
abstract contract AccessControlEnumerable is IAccessControlEnumerable, AccessControl {
    using EnumerableSet for EnumerableSet.AddressSet;

    mapping(bytes32 => EnumerableSet.AddressSet) private _roleMembers;

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

    /**
     * @dev Returns one of the accounts that have `role`. `index` must be a
     * value between 0 and {getRoleMemberCount}, non-inclusive.
     *
     * Role bearers are not sorted in any particular way, and their ordering may
     * change at any point.
     *
     * WARNING: When using {getRoleMember} and {getRoleMemberCount}, make sure
     * you perform all queries on the same block. See the following
     * https://forum.openzeppelin.com/t/iterating-over-elements-on-enumerableset-in-openzeppelin-contracts/2296[forum post]
     * for more information.
     */
    function getRoleMember(bytes32 role, uint256 index) public view virtual override returns (address) {
        return _roleMembers[role].at(index);
    }

    /**
     * @dev Returns the number of accounts that have `role`. Can be used
     * together with {getRoleMember} to enumerate all bearers of a role.
     */
    function getRoleMemberCount(bytes32 role) public view virtual override returns (uint256) {
        return _roleMembers[role].length();
    }

    /**
     * @dev Overload {_grantRole} to track enumerable memberships
     */
    function _grantRole(bytes32 role, address account) internal virtual override {
        super._grantRole(role, account);
        _roleMembers[role].add(account);
    }

    /**
     * @dev Overload {_revokeRole} to track enumerable memberships
     */
    function _revokeRole(bytes32 role, address account) internal virtual override {
        super._revokeRole(role, account);
        _roleMembers[role].remove(account);
    }
}

File 20 of 25 : 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 21 of 25 : AccessControl.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (access/AccessControl.sol)

pragma solidity ^0.8.0;

import "./IAccessControl.sol";
import "../utils/Context.sol";
import "../utils/Strings.sol";
import "../utils/introspection/ERC165.sol";

/**
 * @dev Contract module that allows children to implement role-based access
 * control mechanisms. This is a lightweight version that doesn't allow enumerating role
 * members except through off-chain means by accessing the contract event logs. Some
 * applications may benefit from on-chain enumerability, for those cases see
 * {AccessControlEnumerable}.
 *
 * Roles are referred to by their `bytes32` identifier. These should be exposed
 * in the external API and be unique. The best way to achieve this is by
 * using `public constant` hash digests:
 *
 * ```
 * bytes32 public constant MY_ROLE = keccak256("MY_ROLE");
 * ```
 *
 * Roles can be used to represent a set of permissions. To restrict access to a
 * function call, use {hasRole}:
 *
 * ```
 * function foo() public {
 *     require(hasRole(MY_ROLE, msg.sender));
 *     ...
 * }
 * ```
 *
 * Roles can be granted and revoked dynamically via the {grantRole} and
 * {revokeRole} functions. Each role has an associated admin role, and only
 * accounts that have a role's admin role can call {grantRole} and {revokeRole}.
 *
 * By default, the admin role for all roles is `DEFAULT_ADMIN_ROLE`, which means
 * that only accounts with this role will be able to grant or revoke other
 * roles. More complex role relationships can be created by using
 * {_setRoleAdmin}.
 *
 * WARNING: The `DEFAULT_ADMIN_ROLE` is also its own admin: it has permission to
 * grant and revoke this role. Extra precautions should be taken to secure
 * accounts that have been granted it.
 */
abstract contract AccessControl is Context, IAccessControl, ERC165 {
    struct RoleData {
        mapping(address => bool) members;
        bytes32 adminRole;
    }

    mapping(bytes32 => RoleData) private _roles;

    bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00;

    /**
     * @dev Modifier that checks that an account has a specific role. Reverts
     * with a standardized message including the required role.
     *
     * The format of the revert reason is given by the following regular expression:
     *
     *  /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/
     *
     * _Available since v4.1._
     */
    modifier onlyRole(bytes32 role) {
        _checkRole(role);
        _;
    }

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

    /**
     * @dev Returns `true` if `account` has been granted `role`.
     */
    function hasRole(bytes32 role, address account) public view virtual override returns (bool) {
        return _roles[role].members[account];
    }

    /**
     * @dev Revert with a standard message if `_msgSender()` is missing `role`.
     * Overriding this function changes the behavior of the {onlyRole} modifier.
     *
     * Format of the revert message is described in {_checkRole}.
     *
     * _Available since v4.6._
     */
    function _checkRole(bytes32 role) internal view virtual {
        _checkRole(role, _msgSender());
    }

    /**
     * @dev Revert with a standard message if `account` is missing `role`.
     *
     * The format of the revert reason is given by the following regular expression:
     *
     *  /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/
     */
    function _checkRole(bytes32 role, address account) internal view virtual {
        if (!hasRole(role, account)) {
            revert(
                string(
                    abi.encodePacked(
                        "AccessControl: account ",
                        Strings.toHexString(uint160(account), 20),
                        " is missing role ",
                        Strings.toHexString(uint256(role), 32)
                    )
                )
            );
        }
    }

    /**
     * @dev Returns the admin role that controls `role`. See {grantRole} and
     * {revokeRole}.
     *
     * To change a role's admin, use {_setRoleAdmin}.
     */
    function getRoleAdmin(bytes32 role) public view virtual override returns (bytes32) {
        return _roles[role].adminRole;
    }

    /**
     * @dev Grants `role` to `account`.
     *
     * If `account` had not been already granted `role`, emits a {RoleGranted}
     * event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     *
     * May emit a {RoleGranted} event.
     */
    function grantRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) {
        _grantRole(role, account);
    }

    /**
     * @dev Revokes `role` from `account`.
     *
     * If `account` had been granted `role`, emits a {RoleRevoked} event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     *
     * May emit a {RoleRevoked} event.
     */
    function revokeRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) {
        _revokeRole(role, account);
    }

    /**
     * @dev Revokes `role` from the calling account.
     *
     * Roles are often managed via {grantRole} and {revokeRole}: this function's
     * purpose is to provide a mechanism for accounts to lose their privileges
     * if they are compromised (such as when a trusted device is misplaced).
     *
     * If the calling account had been revoked `role`, emits a {RoleRevoked}
     * event.
     *
     * Requirements:
     *
     * - the caller must be `account`.
     *
     * May emit a {RoleRevoked} event.
     */
    function renounceRole(bytes32 role, address account) public virtual override {
        require(account == _msgSender(), "AccessControl: can only renounce roles for self");

        _revokeRole(role, account);
    }

    /**
     * @dev Grants `role` to `account`.
     *
     * If `account` had not been already granted `role`, emits a {RoleGranted}
     * event. Note that unlike {grantRole}, this function doesn't perform any
     * checks on the calling account.
     *
     * May emit a {RoleGranted} event.
     *
     * [WARNING]
     * ====
     * This function should only be called from the constructor when setting
     * up the initial roles for the system.
     *
     * Using this function in any other way is effectively circumventing the admin
     * system imposed by {AccessControl}.
     * ====
     *
     * NOTE: This function is deprecated in favor of {_grantRole}.
     */
    function _setupRole(bytes32 role, address account) internal virtual {
        _grantRole(role, account);
    }

    /**
     * @dev Sets `adminRole` as ``role``'s admin role.
     *
     * Emits a {RoleAdminChanged} event.
     */
    function _setRoleAdmin(bytes32 role, bytes32 adminRole) internal virtual {
        bytes32 previousAdminRole = getRoleAdmin(role);
        _roles[role].adminRole = adminRole;
        emit RoleAdminChanged(role, previousAdminRole, adminRole);
    }

    /**
     * @dev Grants `role` to `account`.
     *
     * Internal function without access restriction.
     *
     * May emit a {RoleGranted} event.
     */
    function _grantRole(bytes32 role, address account) internal virtual {
        if (!hasRole(role, account)) {
            _roles[role].members[account] = true;
            emit RoleGranted(role, account, _msgSender());
        }
    }

    /**
     * @dev Revokes `role` from `account`.
     *
     * Internal function without access restriction.
     *
     * May emit a {RoleRevoked} event.
     */
    function _revokeRole(bytes32 role, address account) internal virtual {
        if (hasRole(role, account)) {
            _roles[role].members[account] = false;
            emit RoleRevoked(role, account, _msgSender());
        }
    }
}

File 22 of 25 : IAccessControlEnumerable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (access/IAccessControlEnumerable.sol)

pragma solidity ^0.8.0;

import "./IAccessControl.sol";

/**
 * @dev External interface of AccessControlEnumerable declared to support ERC165 detection.
 */
interface IAccessControlEnumerable is IAccessControl {
    /**
     * @dev Returns one of the accounts that have `role`. `index` must be a
     * value between 0 and {getRoleMemberCount}, non-inclusive.
     *
     * Role bearers are not sorted in any particular way, and their ordering may
     * change at any point.
     *
     * WARNING: When using {getRoleMember} and {getRoleMemberCount}, make sure
     * you perform all queries on the same block. See the following
     * https://forum.openzeppelin.com/t/iterating-over-elements-on-enumerableset-in-openzeppelin-contracts/2296[forum post]
     * for more information.
     */
    function getRoleMember(bytes32 role, uint256 index) external view returns (address);

    /**
     * @dev Returns the number of accounts that have `role`. Can be used
     * together with {getRoleMember} to enumerate all bearers of a role.
     */
    function getRoleMemberCount(bytes32 role) external view returns (uint256);
}

File 23 of 25 : IAccessControl.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (access/IAccessControl.sol)

pragma solidity ^0.8.0;

/**
 * @dev External interface of AccessControl declared to support ERC165 detection.
 */
interface IAccessControl {
    /**
     * @dev Emitted when `newAdminRole` is set as ``role``'s admin role, replacing `previousAdminRole`
     *
     * `DEFAULT_ADMIN_ROLE` is the starting admin for all roles, despite
     * {RoleAdminChanged} not being emitted signaling this.
     *
     * _Available since v3.1._
     */
    event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole);

    /**
     * @dev Emitted when `account` is granted `role`.
     *
     * `sender` is the account that originated the contract call, an admin role
     * bearer except when using {AccessControl-_setupRole}.
     */
    event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender);

    /**
     * @dev Emitted when `account` is revoked `role`.
     *
     * `sender` is the account that originated the contract call:
     *   - if using `revokeRole`, it is the admin role bearer
     *   - if using `renounceRole`, it is the role bearer (i.e. `account`)
     */
    event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender);

    /**
     * @dev Returns `true` if `account` has been granted `role`.
     */
    function hasRole(bytes32 role, address account) external view returns (bool);

    /**
     * @dev Returns the admin role that controls `role`. See {grantRole} and
     * {revokeRole}.
     *
     * To change a role's admin, use {AccessControl-_setRoleAdmin}.
     */
    function getRoleAdmin(bytes32 role) external view returns (bytes32);

    /**
     * @dev Grants `role` to `account`.
     *
     * If `account` had not been already granted `role`, emits a {RoleGranted}
     * event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     */
    function grantRole(bytes32 role, address account) external;

    /**
     * @dev Revokes `role` from `account`.
     *
     * If `account` had been granted `role`, emits a {RoleRevoked} event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     */
    function revokeRole(bytes32 role, address account) external;

    /**
     * @dev Revokes `role` from the calling account.
     *
     * Roles are often managed via {grantRole} and {revokeRole}: this function's
     * purpose is to provide a mechanism for accounts to lose their privileges
     * if they are compromised (such as when a trusted device is misplaced).
     *
     * If the calling account had been granted `role`, emits a {RoleRevoked}
     * event.
     *
     * Requirements:
     *
     * - the caller must be `account`.
     */
    function renounceRole(bytes32 role, address account) external;
}

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

pragma solidity ^0.8.0;

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

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"string","name":"_tokenName","type":"string"},{"internalType":"string","name":"_tokenSymbol","type":"string"},{"internalType":"string","name":"_baseImageURI","type":"string"},{"internalType":"address","name":"_treasuryAddress","type":"address"},{"internalType":"uint256","name":"_royaltyPercent","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"AlreadyOnTheList","type":"error"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"ApproveToCaller","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"ContractLocked","type":"error"},{"inputs":[],"name":"ContractsCannotMint","type":"error"},{"inputs":[],"name":"ExceedsMaxPerWallet","type":"error"},{"inputs":[],"name":"InsufficientPayment","type":"error"},{"inputs":[],"name":"InvalidDestructCode","type":"error"},{"inputs":[],"name":"InvalidSignature","type":"error"},{"inputs":[],"name":"InvalidTokenId","type":"error"},{"inputs":[],"name":"MintERC2309QuantityExceedsLimit","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[],"name":"NoSigningKey","type":"error"},{"inputs":[],"name":"NotAuthorized","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"OwnershipNotInitializedForExtraData","type":"error"},{"inputs":[],"name":"SaleNotActive","type":"error"},{"inputs":[],"name":"TransferCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"TransferFromIncorrectOwner","type":"error"},{"inputs":[],"name":"TransferToNonERC721ReceiverImplementer","type":"error"},{"inputs":[],"name":"TransferToZeroAddress","type":"error"},{"inputs":[],"name":"URIQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"WhitelistNotActive","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"fromTokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"toTokenId","type":"uint256"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"}],"name":"ConsecutiveTransfer","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":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"previousAdminRole","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"newAdminRole","type":"bytes32"}],"name":"RoleAdminChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleGranted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleRevoked","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"CLAIM_DOMAIN_SEPARATOR","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"CLAIM_TYPEHASH","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DISCOUNT_DOMAIN_SEPARATOR","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DISCOUNT_TYPEHASH","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"OPERATOR_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"WHITELIST_DOMAIN_SEPARATOR","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"WHITELIST_TYPEHASH","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_count","type":"uint256"},{"internalType":"address","name":"_recipient","type":"address"}],"name":"airdrop","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"_counts","type":"uint256[]"},{"internalType":"address[]","name":"_recipients","type":"address[]"}],"name":"airdropBatch","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"contractIsLocked","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"currentMaximum","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"currentStartOfLine","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"flipSaleState","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"flipWhitelistState","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":[],"name":"getBaseImageURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getExternalUrl","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getImageExtension","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleAdmin","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"getRoleMember","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleMemberCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getTokenDescription","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getTokenName","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getTreasuryAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"grantRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"hasRole","outputs":[{"internalType":"bool","name":"","type":"bool"}],"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":"uint256","name":"_count","type":"uint256"}],"name":"letPeopleIn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_destructCode","type":"string"}],"name":"lockContract","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"maxPerWallet","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_count","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"release","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"renounceRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"revokeRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"uint256","name":"_salePrice","type":"uint256"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"receiver","type":"address"},{"internalType":"uint256","name":"royaltyAmount","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"saleIsActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_baseImageURI","type":"string"}],"name":"setBaseImageURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_externalUrl","type":"string"}],"name":"setExternalUri","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_imageExtension","type":"string"}],"name":"setImageExtension","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_maxPerWallet","type":"uint256"}],"name":"setMaxPerWallet","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newSigningKey","type":"address"}],"name":"setSigningAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_tokenDescription","type":"string"}],"name":"setTokenDescription","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_tokenName","type":"string"}],"name":"setTokenName","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenPrice","type":"uint256"}],"name":"setTokenPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_treasuryAddress","type":"address"}],"name":"setTreasuryAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"skipTheLine","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tokenPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"whitelistIsActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_count","type":"uint256"},{"internalType":"bytes","name":"_signature","type":"bytes"}],"name":"whitelistMint","outputs":[],"stateMutability":"payable","type":"function"}]

600a805460ff60a01b1916905560c06040526005608090815264616133303560d81b60a052600b9062000033908262000652565b50600c80546001600160b01b03191690556003601055630bebc2006011556040805180820190915260048152632e6a706760e01b60208201526019906200007b908262000652565b5060408051808201909152601881527f68747470733a2f2f7777772e666c6f6f726e6674732e696f00000000000000006020820152601a90620000bf908262000652565b5060405180610100016040528060c98152602001620052da60c99139601b90620000ea908262000652565b5060408051808201909152600e81526d466c6f6f7220417070205061737360901b6020820152601c906200011f908262000652565b503480156200012d57600080fd5b50604051620053c3380380620053c38339810160408190526200015091620007d5565b8484600262000160838262000652565b5060036200016f828262000652565b50506001600055506200018233620003f3565b6200018f60003362000445565b604080518082018252600a81526921b630b4b6aa37b5b2b760b11b6020918201528151808301835260018152603160f81b908201528151600080516020620053a3833981519152918101919091527f1a5ffc51a62587b65b913137cec30fb0c9d9d6a475b2e58ca97b8b470cb9417291810191909152600080516020620052ba83398151915260608201524660808201523060a082015260c00160408051808303601f190181528282528051602091820120600d558282018252600e83526d2bb434ba32b634b9ba2a37b5b2b760911b928101929092528051808201825260018152603160f81b908301528051600080516020620053a3833981519152928101929092527fb31abde365a4931cba9a0ea66b4737a15e8eb9a0649f549f4857db08880a904990820152600080516020620052ba83398151915260608201524660808201523060a082015260c00160408051808303601f190181528282528051602091820120600e558282018252600d83526c2234b9b1b7bab73a2a37b5b2b760991b928101929092528051808201825260018152603160f81b908301528051600080516020620053a3833981519152928101929092527f61fc6457b41a933c12cc7fbb026b428372d84fecb547defb6b1cf69e53e6c85d90820152600080516020620052ba83398151915260608201524660808201523060a082015260c00160408051601f198184030181529190528051602090910120600f556018620003b7848262000652565b50601580546001600160a01b0384166001600160a01b031991821681179092556017839055601680549091169091179055505050505062000894565b600a80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b62000451828262000455565b5050565b6200046c82826200049860201b620026bc1760201c565b6000828152600960209081526040909120620004939183906200277c6200053c821b17901c565b505050565b60008281526008602090815260408083206001600160a01b038516845290915290205460ff16620004515760008281526008602090815260408083206001600160a01b03851684529091529020805460ff19166001179055620004f83390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b600062000553836001600160a01b0384166200055c565b90505b92915050565b6000818152600183016020526040812054620005a55750815460018181018455600084815260208082209093018490558454848252828601909352604090209190915562000556565b50600062000556565b634e487b7160e01b600052604160045260246000fd5b600181811c90821680620005d957607f821691505b602082108103620005fa57634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156200049357600081815260208120601f850160051c81016020861015620006295750805b601f850160051c820191505b818110156200064a5782815560010162000635565b505050505050565b81516001600160401b038111156200066e576200066e620005ae565b62000686816200067f8454620005c4565b8462000600565b602080601f831160018114620006be5760008415620006a55750858301515b600019600386901b1c1916600185901b1785556200064a565b600085815260208120601f198616915b82811015620006ef57888601518255948401946001909101908401620006ce565b50858210156200070e5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b600082601f8301126200073057600080fd5b81516001600160401b03808211156200074d576200074d620005ae565b604051601f8301601f19908116603f01168101908282118183101715620007785762000778620005ae565b816040528381526020925086838588010111156200079557600080fd5b600091505b83821015620007b957858201830151818301840152908201906200079a565b83821115620007cb5760008385830101525b9695505050505050565b600080600080600060a08688031215620007ee57600080fd5b85516001600160401b03808211156200080657600080fd5b6200081489838a016200071e565b965060208801519150808211156200082b57600080fd5b6200083989838a016200071e565b955060408801519150808211156200085057600080fd5b506200085f888289016200071e565b606088015190945090506001600160a01b03811681146200087f57600080fd5b80925050608086015190509295509295909350565b614a1680620008a46000396000f3fe6080604052600436106103f85760003560e01c8063715018a61161020d578063ae3534a711610128578063dfc3d9fd116100bb578063eb8d24441161008a578063f5b541a61161006f578063f5b541a614610c07578063f6fa26ab14610c3b578063f732f5d914610c5057600080fd5b8063eb8d244414610bcd578063f2fde38b14610be757600080fd5b8063dfc3d9fd14610b26578063e002460414610b46578063e268e4d314610b64578063e985e9c514610b8457600080fd5b8063ca15c873116100f7578063ca15c87314610ab0578063d0e182eb14610ad0578063d547741f14610af0578063db1354d214610b1057600080fd5b8063ae3534a714610a3b578063b88d4fde14610a50578063bc63f02e14610a70578063c87b56dd14610a9057600080fd5b806395d89b41116101a0578063a217fddf1161016f578063a217fddf146109b4578063a22cb465146109c9578063a4f29aad146109e9578063ad7fa75114610a0957600080fd5b806395d89b41146109635780639c79e527146109785780639e852f751461098e578063a0712d68146109a157600080fd5b806386d1a69f116101dc57806386d1a69f146108ca5780638da5cb5b146108df5780639010d07c146108fd57806391d148541461091d57600080fd5b8063715018a61461086a5780637ff9b5961461087f578063862b092b146108955780638647ca76146108aa57600080fd5b806336568abe116103185780636301dccf116102ab5780636a61e5fc1161027a5780636d4a450a1161025f5780636d4a450a1461081e57806370a0823114610834578063711f684a1461085457600080fd5b80636a61e5fc146107ca5780636b0509b1146107ea57600080fd5b80636301dccf146107415780636352211e146107755780636605bfda1461079557806367568916146107b557600080fd5b806342966c68116102e757806342966c68146106d6578063453c2310146106f6578063599e74af1461070c578063613f5a8d1461072c57600080fd5b806336568abe1461066157806338abc4bc1461068157806339e3aa7e1461069657806342842e0e146106b657600080fd5b80631fe70d6f116103905780632a55205a1161035f5780632a55205a146105cd5780632f2ff15d1461060c57806331beb6051461062c57806334918dfd1461064c57600080fd5b80631fe70d6f1461052a578063212e9a0f1461054957806323b872dd1461057d578063248a9ca31461059d57600080fd5b8063095ea7b3116103cc578063095ea7b3146104ae57806318160ddd146104ce5780631bf671c2146104f55780631f8cbe5c1461051557600080fd5b8062d5da02146103fd57806301ffc9a71461041f57806306fdde0314610454578063081812fc14610476575b600080fd5b34801561040957600080fd5b5061041d610418366004613db8565b610c70565b005b34801561042b57600080fd5b5061043f61043a366004613e2f565b610cdf565b60405190151581526020015b60405180910390f35b34801561046057600080fd5b50610469610cf0565b60405161044b9190613ea4565b34801561048257600080fd5b50610496610491366004613eb7565b610d82565b6040516001600160a01b03909116815260200161044b565b3480156104ba57600080fd5b5061041d6104c9366004613eec565b610ddf565b3480156104da57600080fd5b5060015460005403600019015b60405190815260200161044b565b34801561050157600080fd5b5061041d610510366004613db8565b610eb0565b34801561052157600080fd5b50610469610f16565b34801561053657600080fd5b50600c5461043f90610100900460ff1681565b34801561055557600080fd5b506104e77f2744a6917094ca2ea2ac15d34cf9febe9c2a504b2370fa0f60e99090ad07d83e81565b34801561058957600080fd5b5061041d610598366004613f16565b610f25565b3480156105a957600080fd5b506104e76105b8366004613eb7565b60009081526008602052604090206001015490565b3480156105d957600080fd5b506105ed6105e8366004613f52565b611146565b604080516001600160a01b03909316835260208301919091520161044b565b34801561061857600080fd5b5061041d610627366004613f74565b61117b565b34801561063857600080fd5b5061041d610647366004613f97565b6111a5565b34801561065857600080fd5b5061041d61123f565b34801561066d57600080fd5b5061041d61067c366004613f74565b6112cb565b34801561068d57600080fd5b50610469611353565b3480156106a257600080fd5b5061041d6106b1366004613db8565b611362565b3480156106c257600080fd5b5061041d6106d1366004613f16565b6113c8565b3480156106e257600080fd5b5061041d6106f1366004613eb7565b6113e3565b34801561070257600080fd5b506104e760105481565b34801561071857600080fd5b5061041d610727366004613db8565b6113f1565b34801561073857600080fd5b50610469611557565b34801561074d57600080fd5b506104e77f68e83002b91b0fd96d4df3566b5122221117e3ec6c2468fda594f6491f89b1c981565b34801561078157600080fd5b50610496610790366004613eb7565b611566565b3480156107a157600080fd5b5061041d6107b0366004613f97565b611571565b3480156107c157600080fd5b50610469611605565b3480156107d657600080fd5b5061041d6107e5366004613eb7565b611614565b3480156107f657600080fd5b506104e77f77eb6d3bbe7602208cc36937114029465cec3988228851754080f2c59c06cdca81565b34801561082a57600080fd5b506104e7600d5481565b34801561084057600080fd5b506104e761084f366004613f97565b611673565b34801561086057600080fd5b506104e760125481565b34801561087657600080fd5b5061041d6116db565b34801561088b57600080fd5b506104e760115481565b3480156108a157600080fd5b50610469611741565b3480156108b657600080fd5b5061041d6108c5366004613db8565b611750565b3480156108d657600080fd5b5061041d6117b6565b3480156108eb57600080fd5b50600a546001600160a01b0316610496565b34801561090957600080fd5b50610496610918366004613f52565b611828565b34801561092957600080fd5b5061043f610938366004613f74565b60009182526008602090815260408084206001600160a01b0393909316845291905290205460ff1690565b34801561096f57600080fd5b50610469611847565b34801561098457600080fd5b506104e7600f5481565b61041d61099c366004613fb2565b611856565b61041d6109af366004613eb7565b611b6f565b3480156109c057600080fd5b506104e7600081565b3480156109d557600080fd5b5061041d6109e436600461402e565b611cee565b3480156109f557600080fd5b5061041d610a04366004613db8565b611dba565b348015610a1557600080fd5b50600a5461043f9074010000000000000000000000000000000000000000900460ff1681565b348015610a4757600080fd5b506104e7611e20565b348015610a5c57600080fd5b5061041d610a6b36600461406a565b611e36565b348015610a7c57600080fd5b5061041d610a8b366004613f74565b611e99565b348015610a9c57600080fd5b50610469610aab366004613eb7565b611f88565b348015610abc57600080fd5b506104e7610acb366004613eb7565b61214a565b348015610adc57600080fd5b5061041d610aeb366004613eb7565b612161565b348015610afc57600080fd5b5061041d610b0b366004613f74565b612294565b348015610b1c57600080fd5b506104e7600e5481565b348015610b3257600080fd5b5061041d610b41366004613eb7565b6122b9565b348015610b5257600080fd5b506016546001600160a01b0316610496565b348015610b7057600080fd5b5061041d610b7f366004613eb7565b6123a3565b348015610b9057600080fd5b5061043f610b9f3660046140e6565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b348015610bd957600080fd5b50600c5461043f9060ff1681565b348015610bf357600080fd5b5061041d610c02366004613f97565b612402565b348015610c1357600080fd5b506104e77f97667070c54ef182b0f5858b034beac1b6f3089aa2d3188bb1e8929f4fa9b92981565b348015610c4757600080fd5b5061041d6124e1565b348015610c5c57600080fd5b5061041d610c6b366004614155565b612575565b600a546001600160a01b03163314610ccf5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064015b60405180910390fd5b601b610cdb828261425a565b5050565b6000610cea82612791565b92915050565b606060028054610cff906141c1565b80601f0160208091040260200160405190810160405280929190818152602001828054610d2b906141c1565b8015610d785780601f10610d4d57610100808354040283529160200191610d78565b820191906000526020600020905b815481529060010190602001808311610d5b57829003601f168201915b5050505050905090565b6000610d8d82612872565b610dc3576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b506000908152600660205260409020546001600160a01b031690565b6000610dea82611566565b9050336001600160a01b03821614610e3c57610e068133610b9f565b610e3c576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008281526006602052604080822080547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b600a546001600160a01b03163314610f0a5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610cc6565b601a610cdb828261425a565b606060188054610cff906141c1565b6000610f30826128c0565b9050836001600160a01b0316816001600160a01b031614610f7d576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008281526006602052604090208054610fa98187335b6001600160a01b039081169116811491141790565b610fed57610fb78633610b9f565b610fed576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6001600160a01b03851661102d576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b801561103857600082555b6001600160a01b038681166000908152600560205260408082208054600019019055918716808252919020805460010190554260a01b177c0200000000000000000000000000000000000000000000000000000000176000858152600460205260408120919091557c0200000000000000000000000000000000000000000000000000000000841690036110fc576001840160008181526004602052604081205490036110fa5760005481146110fa5760008181526004602052604090208490555b505b83856001600160a01b0316876001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45b505050505050565b6015546017546001600160a01b03909116906000906064906111689085614349565b6111729190614397565b90509250929050565b60008281526008602052604090206001015461119681612961565b6111a0838361296b565b505050565b600a546001600160a01b031633146111ff5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610cc6565b600c80546001600160a01b0390921662010000027fffffffffffffffffffff0000000000000000000000000000000000000000ffff909216919091179055565b600a546001600160a01b031633146112995760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610cc6565b600c80547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00811660ff90911615179055565b6001600160a01b03811633146113495760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201527f20726f6c657320666f722073656c6600000000000000000000000000000000006064820152608401610cc6565b610cdb828261298d565b6060601b8054610cff906141c1565b600a546001600160a01b031633146113bc5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610cc6565b6019610cdb828261425a565b6111a083838360405180602001604052806000815250611e36565b6113ee8160016129af565b50565b600a546001600160a01b0316331461144b5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610cc6565b6114df81600b805461145c906141c1565b80601f0160208091040260200160405190810160405280929190818152602001828054611488906141c1565b80156114d55780601f106114aa576101008083540402835291602001916114d5565b820191906000526020600020905b8154815290600101906020018083116114b857829003601f168201915b5050505050612b44565b611515576040517fa10f96b000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b50600a80547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff1674010000000000000000000000000000000000000000179055565b606060198054610cff906141c1565b6000610cea826128c0565b600a546001600160a01b031633146115cb5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610cc6565b601680547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0392909216919091179055565b6060601a8054610cff906141c1565b600a546001600160a01b0316331461166e5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610cc6565b601155565b60006001600160a01b0382166116b5576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b506001600160a01b031660009081526005602052604090205467ffffffffffffffff1690565b600a546001600160a01b031633146117355760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610cc6565b61173f6000612c16565b565b6060601c8054610cff906141c1565b600a546001600160a01b031633146117aa5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610cc6565b6018610cdb828261425a565b600a546001600160a01b031633146118105760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610cc6565b60165447906113ee906001600160a01b031682612c80565b60008281526009602052604081206118409083612d99565b9392505050565b606060038054610cff906141c1565b600c54829082906201000090046001600160a01b03166118a2576040517feac1e66200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600e54604080517f68e83002b91b0fd96d4df3566b5122221117e3ec6c2468fda594f6491f89b1c96020820152339181019190915260009190606001604051602081830303815290604052805190602001206040516020016119369291907f190100000000000000000000000000000000000000000000000000000000000081526002810192909252602282015260420190565b604051602081830303815290604052805190602001209050600061199284848080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152508693925050612da59050565b600c549091506001600160a01b038083166201000090920416146119e2576040517f8baa579f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b333214611a1b576040517fd9d552c900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600c54610100900460ff16611a5c576040517f04cc9ce200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600a5474010000000000000000000000000000000000000000900460ff1615611ab1576040517f6f5ffb7e00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60105433600090815260056020526040908190205489911c67ffffffffffffffff16611add91906143ab565b1115611b15576040517fc0e54d7300000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b86601154611b239190614349565b341015611b5c576040517fcd1c886700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b611b663388612dc9565b50505050505050565b333214611ba8576040517fd9d552c900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600c5460ff16611be4576040517fb7b2409700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600a5474010000000000000000000000000000000000000000900460ff1615611c39576040517f6f5ffb7e00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60105433600090815260056020526040908190205483911c67ffffffffffffffff16611c6591906143ab565b1115611c9d576040517fc0e54d7300000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80601154611cab9190614349565b341015611ce4576040517fcd1c886700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6113ee3382612dc9565b336001600160a01b03831603611d30576040517fb06307db00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b3360008181526007602090815260408083206001600160a01b0387168085529083529281902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b600a546001600160a01b03163314611e145760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610cc6565b601c610cdb828261425a565b60006012546001611e3191906143ab565b905090565b611e41848484610f25565b6001600160a01b0383163b15611e9357611e5d84848484612edc565b611e93576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b50505050565b600a5474010000000000000000000000000000000000000000900460ff1615611eee576040517f6f5ffb7e00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b33611f01600a546001600160a01b031690565b6001600160a01b031614158015611f4757503360009081527f6a3d30e0c3cc0c73e38f13b1a1daf3d4bd64c566f95758674a646e998024b3da602052604090205460ff16155b15611f7e576040517fea8e4eb500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610cdb8183612dc9565b60606000611f958361302b565b90506060811561203c5781611fdf576040518060400160405280600581526020017f46616c7365000000000000000000000000000000000000000000000000000000815250612016565b6040518060400160405280600481526020017f54727565000000000000000000000000000000000000000000000000000000008152505b60405160200161202691906143c3565b60405160208183030381529060405290506120e7565b61204d61204885613062565b6130e0565b8261208d576040518060400160405280600581526020017f46616c73650000000000000000000000000000000000000000000000000000008152506120c4565b6040518060400160405280600481526020017f54727565000000000000000000000000000000000000000000000000000000008152505b6040516020016120d5929190614455565b60405160208183030381529060405290505b612122601c601b601a6120f98861326e565b8560405160200161210e9594939291906145dd565b6040516020818303038152906040526132de565b6040516020016121329190614720565b60405160208183030381529060405292505050919050565b6000818152600960205260408120610cea9061349d565b33612174600a546001600160a01b031690565b6001600160a01b0316141580156121ba57503360009081527f6a3d30e0c3cc0c73e38f13b1a1daf3d4bd64c566f95758674a646e998024b3da602052604090205460ff16155b156121f1576040517fea8e4eb500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6121fa81612872565b612230576040517f3f6cc76800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b601254811161226b576040517f2119addd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6012546122799060016143ab565b8103612289576012805460010190555b610cdb6013826134a7565b6000828152600860205260409020600101546122af81612961565b6111a0838361298d565b336122cc600a546001600160a01b031690565b6001600160a01b03161415801561231257503360009081527f6a3d30e0c3cc0c73e38f13b1a1daf3d4bd64c566f95758674a646e998024b3da602052604090205460ff16155b15612349576040517fea8e4eb500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000808260125461235a91906143ab565b905060005b612369601361349d565b811015612390578161237c601383612d99565b11612388578260010192505b60010161235f565b5061239b82826143ab565b601255505050565b600a546001600160a01b031633146123fd5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610cc6565b601055565b600a546001600160a01b0316331461245c5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610cc6565b6001600160a01b0381166124d85760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610cc6565b6113ee81612c16565b600a546001600160a01b0316331461253b5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610cc6565b600c80547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ff81166101009182900460ff1615909102179055565b600a5474010000000000000000000000000000000000000000900460ff16156125ca576040517f6f5ffb7e00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b336125dd600a546001600160a01b031690565b6001600160a01b03161415801561262357503360009081527f6a3d30e0c3cc0c73e38f13b1a1daf3d4bd64c566f95758674a646e998024b3da602052604090205460ff16155b1561265a576040517fea8e4eb500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60005b818110156126b5576126ad83838381811061267a5761267a614765565b905060200201602081019061268f9190613f97565b8686848181106126a1576126a1614765565b90506020020135612dc9565b60010161265d565b5050505050565b60008281526008602090815260408083206001600160a01b038516845290915290205460ff16610cdb5760008281526008602090815260408083206001600160a01b0385168452909152902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001660011790556127383390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b6000611840836001600160a01b0384166134af565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff000000000000000000000000000000000000000000000000000000008316148061282457507f80ac58cd000000000000000000000000000000000000000000000000000000007fffffffff000000000000000000000000000000000000000000000000000000008316145b80610cea5750507fffffffff00000000000000000000000000000000000000000000000000000000167f5b5e139f000000000000000000000000000000000000000000000000000000001490565b600081600111158015612886575060005482105b8015610cea5750506000908152600460205260409020547c0100000000000000000000000000000000000000000000000000000000161590565b6000818060011161292f5760005481101561292f57600081815260046020526040812054907c01000000000000000000000000000000000000000000000000000000008216900361292d575b8060000361184057506000190160008181526004602052604090205461290c565b505b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6113ee81336134fe565b61297582826126bc565b60008281526009602052604090206111a0908261277c565b612997828261357e565b60008281526009602052604090206111a0908261361f565b60006129ba836128c0565b9050806000806129d886600090815260066020526040902080549091565b915091508415612a31576129ed818433610f94565b612a31576129fb8333610b9f565b612a31576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8015612a3c57600082555b6001600160a01b038316600081815260056020526040902080546fffffffffffffffffffffffffffffffff0190554260a01b177c0300000000000000000000000000000000000000000000000000000000176000878152600460205260408120919091557c020000000000000000000000000000000000000000000000000000000085169003612afc57600186016000818152600460205260408120549003612afa576000548114612afa5760008181526004602052604090208590555b505b60405186906000906001600160a01b038616907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050600180548101905550505050565b8151815160009184918491908114612b625760009350505050610cea565b60005b81811015612c0957828181518110612b7f57612b7f614765565b602001015160f81c60f81b7effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916848281518110612bbe57612bbe614765565b01602001517fff000000000000000000000000000000000000000000000000000000000000001614612bf7576000945050505050610cea565b80612c0181614794565b915050612b65565b5060019695505050505050565b600a80546001600160a01b038381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b80471015612cd05760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e63650000006044820152606401610cc6565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114612d1d576040519150601f19603f3d011682016040523d82523d6000602084013e612d22565b606091505b50509050806111a05760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d617920686176652072657665727465640000000000006064820152608401610cc6565b60006118408383613634565b6000806000612db4858561365e565b91509150612dc1816136cc565b509392505050565b6000546001600160a01b038316612e0c576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b81600003612e46576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6001600160a01b038316600081815260056020526040902080546801000000000000000185020190554260a01b6001841460e11b1717600082815260046020526040902055808281015b6040516001830192906001600160a01b038716906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a4808210612e905760005550505050565b6040517f150b7a020000000000000000000000000000000000000000000000000000000081526000906001600160a01b0385169063150b7a0290612f2a9033908990889088906004016147ae565b6020604051808303816000875af1925050508015612f65575060408051601f3d908101601f19168201909252612f62918101906147ea565b60015b612fdc573d808015612f93576040519150601f19603f3d011682016040523d82523d6000602084013e612f98565b606091505b508051600003612fd4576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b7fffffffff00000000000000000000000000000000000000000000000000000000167f150b7a02000000000000000000000000000000000000000000000000000000001490505b949350505050565b6000601254600161303c91906143ab565b821080610cea5750610cea60138360008181526001830160205260408120541515611840565b600061306d8261302b565b1561307a57506000919050565b600060015b838110156130c6576130a560138260008181526001830160205260408120541515611840565b80156130b2575060125481115b156130be578160010191505b60010161307f565b5080601254846130d69190614807565b6118409190614807565b60408051606480825260a08201909252606091906000908260208201818036833701905050905060005b841561318c57600061311d600a8761481e565b905061312a600a87614397565b95506131378160306143ab565b60f81b838361314581614794565b94508151811061315757613157614765565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053505061310a565b60008167ffffffffffffffff8111156131a7576131a7613d13565b6040519080825280601f01601f1916602001820160405280156131d1576020820181803683370190505b50905060005b82811015613264578360016131ec8386614807565b6131f69190614807565b8151811061320657613206614765565b602001015160f81c60f81b82828151811061322357613223614765565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053508061325c81614794565b9150506131d7565b5095945050505050565b60608060125483116132a5576018601960405160200161328f929190614832565b6040516020818303038152906040529050610cea565b60186132b361204885613062565b60196040516020016132c793929190614877565b604051602081830303815290604052905092915050565b80516060906000819003613302575050604080516020810190915260008152919050565b600060036133118360026143ab565b61331b9190614397565b613326906004614349565b905060006133358260206143ab565b67ffffffffffffffff81111561334d5761334d613d13565b6040519080825280601f01601f191660200182016040528015613377576020820181803683370190505b50905060006040518060600160405280604081526020016149a1604091399050600181016020830160005b86811015613403576003818a01810151603f601282901c8116860151600c83901c8216870151600684901c831688015192909316870151600891821b60ff94851601821b92841692909201901b91160160e01b8352600490920191016133a2565b50600386066001811461341d57600281146134675761348f565b7f3d3d0000000000000000000000000000000000000000000000000000000000007ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe83015261348f565b7f3d000000000000000000000000000000000000000000000000000000000000006000198301525b505050918152949350505050565b6000610cea825490565b600061184083835b60008181526001830160205260408120546134f657508154600181810184556000848152602080822090930184905584548482528286019093526040902091909155610cea565b506000610cea565b60008281526008602090815260408083206001600160a01b038516845290915290205460ff16610cdb5761353c816001600160a01b031660146138b8565b6135478360206138b8565b6040516020016135589291906148aa565b60408051601f198184030181529082905262461bcd60e51b8252610cc691600401613ea4565b60008281526008602090815260408083206001600160a01b038516845290915290205460ff1615610cdb5760008281526008602090815260408083206001600160a01b038516808552925280832080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b6000611840836001600160a01b038416613ae1565b600082600001828154811061364b5761364b614765565b9060005260206000200154905092915050565b60008082516041036136945760208301516040840151606085015160001a61368887828585613bd4565b945094505050506136c5565b82516040036136bd57602083015160408401516136b2868383613cc1565b9350935050506136c5565b506000905060025b9250929050565b60008160048111156136e0576136e061492b565b036136e85750565b60018160048111156136fc576136fc61492b565b036137495760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152606401610cc6565b600281600481111561375d5761375d61492b565b036137aa5760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152606401610cc6565b60038160048111156137be576137be61492b565b036138315760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c60448201527f75650000000000000000000000000000000000000000000000000000000000006064820152608401610cc6565b60048160048111156138455761384561492b565b036113ee5760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c60448201527f75650000000000000000000000000000000000000000000000000000000000006064820152608401610cc6565b606060006138c7836002614349565b6138d29060026143ab565b67ffffffffffffffff8111156138ea576138ea613d13565b6040519080825280601f01601f191660200182016040528015613914576020820181803683370190505b5090507f30000000000000000000000000000000000000000000000000000000000000008160008151811061394b5761394b614765565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053507f7800000000000000000000000000000000000000000000000000000000000000816001815181106139ae576139ae614765565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a90535060006139ea846002614349565b6139f59060016143ab565b90505b6001811115613a92577f303132333435363738396162636465660000000000000000000000000000000085600f1660108110613a3657613a36614765565b1a60f81b828281518110613a4c57613a4c614765565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a90535060049490941c93613a8b8161495a565b90506139f8565b5083156118405760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152606401610cc6565b60008181526001830160205260408120548015613bca576000613b05600183614807565b8554909150600090613b1990600190614807565b9050818114613b7e576000866000018281548110613b3957613b39614765565b9060005260206000200154905080876000018481548110613b5c57613b5c614765565b6000918252602080832090910192909255918252600188019052604090208390555b8554869080613b8f57613b8f614971565b600190038181906000526020600020016000905590558560010160008681526020019081526020016000206000905560019350505050610cea565b6000915050610cea565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0831115613c0b5750600090506003613cb8565b8460ff16601b14158015613c2357508460ff16601c14155b15613c345750600090506004613cb8565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015613c88573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b038116613cb157600060019250925050613cb8565b9150600090505b94509492505050565b6000807f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff831681613cf760ff86901c601b6143ab565b9050613d0587828885613bd4565b935093505050935093915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600067ffffffffffffffff80841115613d5d57613d5d613d13565b604051601f8501601f19908116603f01168101908282118183101715613d8557613d85613d13565b81604052809350858152868686011115613d9e57600080fd5b858560208301376000602087830101525050509392505050565b600060208284031215613dca57600080fd5b813567ffffffffffffffff811115613de157600080fd5b8201601f81018413613df257600080fd5b61302384823560208401613d42565b7fffffffff00000000000000000000000000000000000000000000000000000000811681146113ee57600080fd5b600060208284031215613e4157600080fd5b813561184081613e01565b60005b83811015613e67578181015183820152602001613e4f565b83811115611e935750506000910152565b60008151808452613e90816020860160208601613e4c565b601f01601f19169290920160200192915050565b6020815260006118406020830184613e78565b600060208284031215613ec957600080fd5b5035919050565b80356001600160a01b0381168114613ee757600080fd5b919050565b60008060408385031215613eff57600080fd5b613f0883613ed0565b946020939093013593505050565b600080600060608486031215613f2b57600080fd5b613f3484613ed0565b9250613f4260208501613ed0565b9150604084013590509250925092565b60008060408385031215613f6557600080fd5b50508035926020909101359150565b60008060408385031215613f8757600080fd5b8235915061117260208401613ed0565b600060208284031215613fa957600080fd5b61184082613ed0565b600080600060408486031215613fc757600080fd5b83359250602084013567ffffffffffffffff80821115613fe657600080fd5b818601915086601f830112613ffa57600080fd5b81358181111561400957600080fd5b87602082850101111561401b57600080fd5b6020830194508093505050509250925092565b6000806040838503121561404157600080fd5b61404a83613ed0565b91506020830135801515811461405f57600080fd5b809150509250929050565b6000806000806080858703121561408057600080fd5b61408985613ed0565b935061409760208601613ed0565b925060408501359150606085013567ffffffffffffffff8111156140ba57600080fd5b8501601f810187136140cb57600080fd5b6140da87823560208401613d42565b91505092959194509250565b600080604083850312156140f957600080fd5b61410283613ed0565b915061117260208401613ed0565b60008083601f84011261412257600080fd5b50813567ffffffffffffffff81111561413a57600080fd5b6020830191508360208260051b85010111156136c557600080fd5b6000806000806040858703121561416b57600080fd5b843567ffffffffffffffff8082111561418357600080fd5b61418f88838901614110565b909650945060208701359150808211156141a857600080fd5b506141b587828801614110565b95989497509550505050565b600181811c908216806141d557607f821691505b60208210810361420e577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b50919050565b601f8211156111a057600081815260208120601f850160051c8101602086101561423b5750805b601f850160051c820191505b8181101561113e57828155600101614247565b815167ffffffffffffffff81111561427457614274613d13565b6142888161428284546141c1565b84614214565b602080601f8311600181146142bd57600084156142a55750858301515b600019600386901b1c1916600185901b17855561113e565b600085815260208120601f198616915b828110156142ec578886015182559484019460019091019084016142cd565b508582101561430a5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60008160001904831182151516156143635761436361431a565b500290565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b6000826143a6576143a6614368565b500490565b600082198211156143be576143be61431a565b500190565b7f5b207b202274726169745f74797065223a2022416374697665222c202276616c81527f7565223a20220000000000000000000000000000000000000000000000000000602082015260008251614421816026850160208701613e4c565b7f227d5d00000000000000000000000000000000000000000000000000000000006026939091019283015250602901919050565b7f5b207b202274726169745f74797065223a2022506c616365204e756d6265722281527f2c202276616c7565223a202200000000000000000000000000000000000000006020820152600083516144b381602c850160208801613e4c565b7f227d2c207b202274726169745f74797065223a2022416374697665222c202276602c918401918201527f616c7565223a2022000000000000000000000000000000000000000000000000604c8201528351614516816054840160208801613e4c565b7f227d5d000000000000000000000000000000000000000000000000000000000060549290910191820152605701949350505050565b60008154614559816141c1565b6001828116801561457157600181146145a4576145d3565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00841687528215158302870194506145d3565b8560005260208060002060005b858110156145ca5781548a8201529084019082016145b1565b50505082870194505b5050505092915050565b7f7b226e616d65223a2022000000000000000000000000000000000000000000008152600061460f600a83018861454c565b7f222c20226465736372697074696f6e223a202200000000000000000000000000815261463f601382018861454c565b90507f222c202265787465726e616c5f75726c223a20220000000000000000000000008152614671601482018761454c565b90507f222c2022696d616765223a220000000000000000000000000000000000000000815284516146a981600c840160208901613e4c565b7f222c202261747472696275746573223a00000000000000000000000000000000600c929091019182015283516146e781601c840160208801613e4c565b7f7d00000000000000000000000000000000000000000000000000000000000000601c9290910191820152601d01979650505050505050565b7f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c00000081526000825161475881601d850160208701613e4c565b91909101601d0192915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b600060001982036147a7576147a761431a565b5060010190565b60006001600160a01b038087168352808616602084015250836040830152608060608301526147e06080830184613e78565b9695505050505050565b6000602082840312156147fc57600080fd5b815161184081613e01565b6000828210156148195761481961431a565b500390565b60008261482d5761482d614368565b500690565b600061483e828561454c565b7f3000000000000000000000000000000000000000000000000000000000000000815261486e600182018561454c565b95945050505050565b6000614883828661454c565b8451614893818360208901613e4c565b61489f8183018661454c565b979650505050505050565b7f416363657373436f6e74726f6c3a206163636f756e74200000000000000000008152600083516148e2816017850160208801613e4c565b7f206973206d697373696e6720726f6c6520000000000000000000000000000000601791840191820152835161491f816028840160208801613e4c565b01602801949350505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b6000816149695761496961431a565b506000190190565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fdfe4142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2fa26469706673582212206583637eecce758069b7662a8ba7b5f0da3dc69ea92898182f82f6a013098dbd64736f6c634300080f0033c89efdaa54c0f20c7adf612882df0950f5a951637e0307cdcb4c672f298b8bc654686520466c6f6f7220417070205061737320756e6c6f636b732074686520466c6f6f722061707020666f7220694f53202620416e64726f69642028696e20626574612920616e64206772616e74732061636365737320746f20466c6f6f72204170702050617373206368616e6e656c7320696e2074686520466c6f6f7220446973636f72642e5c6e5c6e4c6561726e206d6f72652c20616e642067657420737461727465642061742068747470733a2f2f666c6f6f722e6c696e6b2f6170702d706173732d6e66748b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f00000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000e0000000000000000000000000000000000000000000000000000000000000012000000000000000000000000098db1d0a32d0783a1e689f226bdebb81e57f26d9000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000f4d61736f6e20546573742050617373000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000054d50415353000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004068747470733a2f2f617277656176652e6e65742f636b5371366e656f53494143644645674c4c4c5036447668506a3063537a5051545a4b2d5a4a49695637512f

Deployed Bytecode

0x6080604052600436106103f85760003560e01c8063715018a61161020d578063ae3534a711610128578063dfc3d9fd116100bb578063eb8d24441161008a578063f5b541a61161006f578063f5b541a614610c07578063f6fa26ab14610c3b578063f732f5d914610c5057600080fd5b8063eb8d244414610bcd578063f2fde38b14610be757600080fd5b8063dfc3d9fd14610b26578063e002460414610b46578063e268e4d314610b64578063e985e9c514610b8457600080fd5b8063ca15c873116100f7578063ca15c87314610ab0578063d0e182eb14610ad0578063d547741f14610af0578063db1354d214610b1057600080fd5b8063ae3534a714610a3b578063b88d4fde14610a50578063bc63f02e14610a70578063c87b56dd14610a9057600080fd5b806395d89b41116101a0578063a217fddf1161016f578063a217fddf146109b4578063a22cb465146109c9578063a4f29aad146109e9578063ad7fa75114610a0957600080fd5b806395d89b41146109635780639c79e527146109785780639e852f751461098e578063a0712d68146109a157600080fd5b806386d1a69f116101dc57806386d1a69f146108ca5780638da5cb5b146108df5780639010d07c146108fd57806391d148541461091d57600080fd5b8063715018a61461086a5780637ff9b5961461087f578063862b092b146108955780638647ca76146108aa57600080fd5b806336568abe116103185780636301dccf116102ab5780636a61e5fc1161027a5780636d4a450a1161025f5780636d4a450a1461081e57806370a0823114610834578063711f684a1461085457600080fd5b80636a61e5fc146107ca5780636b0509b1146107ea57600080fd5b80636301dccf146107415780636352211e146107755780636605bfda1461079557806367568916146107b557600080fd5b806342966c68116102e757806342966c68146106d6578063453c2310146106f6578063599e74af1461070c578063613f5a8d1461072c57600080fd5b806336568abe1461066157806338abc4bc1461068157806339e3aa7e1461069657806342842e0e146106b657600080fd5b80631fe70d6f116103905780632a55205a1161035f5780632a55205a146105cd5780632f2ff15d1461060c57806331beb6051461062c57806334918dfd1461064c57600080fd5b80631fe70d6f1461052a578063212e9a0f1461054957806323b872dd1461057d578063248a9ca31461059d57600080fd5b8063095ea7b3116103cc578063095ea7b3146104ae57806318160ddd146104ce5780631bf671c2146104f55780631f8cbe5c1461051557600080fd5b8062d5da02146103fd57806301ffc9a71461041f57806306fdde0314610454578063081812fc14610476575b600080fd5b34801561040957600080fd5b5061041d610418366004613db8565b610c70565b005b34801561042b57600080fd5b5061043f61043a366004613e2f565b610cdf565b60405190151581526020015b60405180910390f35b34801561046057600080fd5b50610469610cf0565b60405161044b9190613ea4565b34801561048257600080fd5b50610496610491366004613eb7565b610d82565b6040516001600160a01b03909116815260200161044b565b3480156104ba57600080fd5b5061041d6104c9366004613eec565b610ddf565b3480156104da57600080fd5b5060015460005403600019015b60405190815260200161044b565b34801561050157600080fd5b5061041d610510366004613db8565b610eb0565b34801561052157600080fd5b50610469610f16565b34801561053657600080fd5b50600c5461043f90610100900460ff1681565b34801561055557600080fd5b506104e77f2744a6917094ca2ea2ac15d34cf9febe9c2a504b2370fa0f60e99090ad07d83e81565b34801561058957600080fd5b5061041d610598366004613f16565b610f25565b3480156105a957600080fd5b506104e76105b8366004613eb7565b60009081526008602052604090206001015490565b3480156105d957600080fd5b506105ed6105e8366004613f52565b611146565b604080516001600160a01b03909316835260208301919091520161044b565b34801561061857600080fd5b5061041d610627366004613f74565b61117b565b34801561063857600080fd5b5061041d610647366004613f97565b6111a5565b34801561065857600080fd5b5061041d61123f565b34801561066d57600080fd5b5061041d61067c366004613f74565b6112cb565b34801561068d57600080fd5b50610469611353565b3480156106a257600080fd5b5061041d6106b1366004613db8565b611362565b3480156106c257600080fd5b5061041d6106d1366004613f16565b6113c8565b3480156106e257600080fd5b5061041d6106f1366004613eb7565b6113e3565b34801561070257600080fd5b506104e760105481565b34801561071857600080fd5b5061041d610727366004613db8565b6113f1565b34801561073857600080fd5b50610469611557565b34801561074d57600080fd5b506104e77f68e83002b91b0fd96d4df3566b5122221117e3ec6c2468fda594f6491f89b1c981565b34801561078157600080fd5b50610496610790366004613eb7565b611566565b3480156107a157600080fd5b5061041d6107b0366004613f97565b611571565b3480156107c157600080fd5b50610469611605565b3480156107d657600080fd5b5061041d6107e5366004613eb7565b611614565b3480156107f657600080fd5b506104e77f77eb6d3bbe7602208cc36937114029465cec3988228851754080f2c59c06cdca81565b34801561082a57600080fd5b506104e7600d5481565b34801561084057600080fd5b506104e761084f366004613f97565b611673565b34801561086057600080fd5b506104e760125481565b34801561087657600080fd5b5061041d6116db565b34801561088b57600080fd5b506104e760115481565b3480156108a157600080fd5b50610469611741565b3480156108b657600080fd5b5061041d6108c5366004613db8565b611750565b3480156108d657600080fd5b5061041d6117b6565b3480156108eb57600080fd5b50600a546001600160a01b0316610496565b34801561090957600080fd5b50610496610918366004613f52565b611828565b34801561092957600080fd5b5061043f610938366004613f74565b60009182526008602090815260408084206001600160a01b0393909316845291905290205460ff1690565b34801561096f57600080fd5b50610469611847565b34801561098457600080fd5b506104e7600f5481565b61041d61099c366004613fb2565b611856565b61041d6109af366004613eb7565b611b6f565b3480156109c057600080fd5b506104e7600081565b3480156109d557600080fd5b5061041d6109e436600461402e565b611cee565b3480156109f557600080fd5b5061041d610a04366004613db8565b611dba565b348015610a1557600080fd5b50600a5461043f9074010000000000000000000000000000000000000000900460ff1681565b348015610a4757600080fd5b506104e7611e20565b348015610a5c57600080fd5b5061041d610a6b36600461406a565b611e36565b348015610a7c57600080fd5b5061041d610a8b366004613f74565b611e99565b348015610a9c57600080fd5b50610469610aab366004613eb7565b611f88565b348015610abc57600080fd5b506104e7610acb366004613eb7565b61214a565b348015610adc57600080fd5b5061041d610aeb366004613eb7565b612161565b348015610afc57600080fd5b5061041d610b0b366004613f74565b612294565b348015610b1c57600080fd5b506104e7600e5481565b348015610b3257600080fd5b5061041d610b41366004613eb7565b6122b9565b348015610b5257600080fd5b506016546001600160a01b0316610496565b348015610b7057600080fd5b5061041d610b7f366004613eb7565b6123a3565b348015610b9057600080fd5b5061043f610b9f3660046140e6565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b348015610bd957600080fd5b50600c5461043f9060ff1681565b348015610bf357600080fd5b5061041d610c02366004613f97565b612402565b348015610c1357600080fd5b506104e77f97667070c54ef182b0f5858b034beac1b6f3089aa2d3188bb1e8929f4fa9b92981565b348015610c4757600080fd5b5061041d6124e1565b348015610c5c57600080fd5b5061041d610c6b366004614155565b612575565b600a546001600160a01b03163314610ccf5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064015b60405180910390fd5b601b610cdb828261425a565b5050565b6000610cea82612791565b92915050565b606060028054610cff906141c1565b80601f0160208091040260200160405190810160405280929190818152602001828054610d2b906141c1565b8015610d785780601f10610d4d57610100808354040283529160200191610d78565b820191906000526020600020905b815481529060010190602001808311610d5b57829003601f168201915b5050505050905090565b6000610d8d82612872565b610dc3576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b506000908152600660205260409020546001600160a01b031690565b6000610dea82611566565b9050336001600160a01b03821614610e3c57610e068133610b9f565b610e3c576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008281526006602052604080822080547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b600a546001600160a01b03163314610f0a5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610cc6565b601a610cdb828261425a565b606060188054610cff906141c1565b6000610f30826128c0565b9050836001600160a01b0316816001600160a01b031614610f7d576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008281526006602052604090208054610fa98187335b6001600160a01b039081169116811491141790565b610fed57610fb78633610b9f565b610fed576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6001600160a01b03851661102d576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b801561103857600082555b6001600160a01b038681166000908152600560205260408082208054600019019055918716808252919020805460010190554260a01b177c0200000000000000000000000000000000000000000000000000000000176000858152600460205260408120919091557c0200000000000000000000000000000000000000000000000000000000841690036110fc576001840160008181526004602052604081205490036110fa5760005481146110fa5760008181526004602052604090208490555b505b83856001600160a01b0316876001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45b505050505050565b6015546017546001600160a01b03909116906000906064906111689085614349565b6111729190614397565b90509250929050565b60008281526008602052604090206001015461119681612961565b6111a0838361296b565b505050565b600a546001600160a01b031633146111ff5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610cc6565b600c80546001600160a01b0390921662010000027fffffffffffffffffffff0000000000000000000000000000000000000000ffff909216919091179055565b600a546001600160a01b031633146112995760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610cc6565b600c80547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00811660ff90911615179055565b6001600160a01b03811633146113495760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201527f20726f6c657320666f722073656c6600000000000000000000000000000000006064820152608401610cc6565b610cdb828261298d565b6060601b8054610cff906141c1565b600a546001600160a01b031633146113bc5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610cc6565b6019610cdb828261425a565b6111a083838360405180602001604052806000815250611e36565b6113ee8160016129af565b50565b600a546001600160a01b0316331461144b5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610cc6565b6114df81600b805461145c906141c1565b80601f0160208091040260200160405190810160405280929190818152602001828054611488906141c1565b80156114d55780601f106114aa576101008083540402835291602001916114d5565b820191906000526020600020905b8154815290600101906020018083116114b857829003601f168201915b5050505050612b44565b611515576040517fa10f96b000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b50600a80547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff1674010000000000000000000000000000000000000000179055565b606060198054610cff906141c1565b6000610cea826128c0565b600a546001600160a01b031633146115cb5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610cc6565b601680547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0392909216919091179055565b6060601a8054610cff906141c1565b600a546001600160a01b0316331461166e5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610cc6565b601155565b60006001600160a01b0382166116b5576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b506001600160a01b031660009081526005602052604090205467ffffffffffffffff1690565b600a546001600160a01b031633146117355760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610cc6565b61173f6000612c16565b565b6060601c8054610cff906141c1565b600a546001600160a01b031633146117aa5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610cc6565b6018610cdb828261425a565b600a546001600160a01b031633146118105760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610cc6565b60165447906113ee906001600160a01b031682612c80565b60008281526009602052604081206118409083612d99565b9392505050565b606060038054610cff906141c1565b600c54829082906201000090046001600160a01b03166118a2576040517feac1e66200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600e54604080517f68e83002b91b0fd96d4df3566b5122221117e3ec6c2468fda594f6491f89b1c96020820152339181019190915260009190606001604051602081830303815290604052805190602001206040516020016119369291907f190100000000000000000000000000000000000000000000000000000000000081526002810192909252602282015260420190565b604051602081830303815290604052805190602001209050600061199284848080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152508693925050612da59050565b600c549091506001600160a01b038083166201000090920416146119e2576040517f8baa579f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b333214611a1b576040517fd9d552c900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600c54610100900460ff16611a5c576040517f04cc9ce200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600a5474010000000000000000000000000000000000000000900460ff1615611ab1576040517f6f5ffb7e00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60105433600090815260056020526040908190205489911c67ffffffffffffffff16611add91906143ab565b1115611b15576040517fc0e54d7300000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b86601154611b239190614349565b341015611b5c576040517fcd1c886700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b611b663388612dc9565b50505050505050565b333214611ba8576040517fd9d552c900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600c5460ff16611be4576040517fb7b2409700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600a5474010000000000000000000000000000000000000000900460ff1615611c39576040517f6f5ffb7e00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60105433600090815260056020526040908190205483911c67ffffffffffffffff16611c6591906143ab565b1115611c9d576040517fc0e54d7300000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80601154611cab9190614349565b341015611ce4576040517fcd1c886700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6113ee3382612dc9565b336001600160a01b03831603611d30576040517fb06307db00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b3360008181526007602090815260408083206001600160a01b0387168085529083529281902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b600a546001600160a01b03163314611e145760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610cc6565b601c610cdb828261425a565b60006012546001611e3191906143ab565b905090565b611e41848484610f25565b6001600160a01b0383163b15611e9357611e5d84848484612edc565b611e93576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b50505050565b600a5474010000000000000000000000000000000000000000900460ff1615611eee576040517f6f5ffb7e00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b33611f01600a546001600160a01b031690565b6001600160a01b031614158015611f4757503360009081527f6a3d30e0c3cc0c73e38f13b1a1daf3d4bd64c566f95758674a646e998024b3da602052604090205460ff16155b15611f7e576040517fea8e4eb500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610cdb8183612dc9565b60606000611f958361302b565b90506060811561203c5781611fdf576040518060400160405280600581526020017f46616c7365000000000000000000000000000000000000000000000000000000815250612016565b6040518060400160405280600481526020017f54727565000000000000000000000000000000000000000000000000000000008152505b60405160200161202691906143c3565b60405160208183030381529060405290506120e7565b61204d61204885613062565b6130e0565b8261208d576040518060400160405280600581526020017f46616c73650000000000000000000000000000000000000000000000000000008152506120c4565b6040518060400160405280600481526020017f54727565000000000000000000000000000000000000000000000000000000008152505b6040516020016120d5929190614455565b60405160208183030381529060405290505b612122601c601b601a6120f98861326e565b8560405160200161210e9594939291906145dd565b6040516020818303038152906040526132de565b6040516020016121329190614720565b60405160208183030381529060405292505050919050565b6000818152600960205260408120610cea9061349d565b33612174600a546001600160a01b031690565b6001600160a01b0316141580156121ba57503360009081527f6a3d30e0c3cc0c73e38f13b1a1daf3d4bd64c566f95758674a646e998024b3da602052604090205460ff16155b156121f1576040517fea8e4eb500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6121fa81612872565b612230576040517f3f6cc76800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b601254811161226b576040517f2119addd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6012546122799060016143ab565b8103612289576012805460010190555b610cdb6013826134a7565b6000828152600860205260409020600101546122af81612961565b6111a0838361298d565b336122cc600a546001600160a01b031690565b6001600160a01b03161415801561231257503360009081527f6a3d30e0c3cc0c73e38f13b1a1daf3d4bd64c566f95758674a646e998024b3da602052604090205460ff16155b15612349576040517fea8e4eb500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000808260125461235a91906143ab565b905060005b612369601361349d565b811015612390578161237c601383612d99565b11612388578260010192505b60010161235f565b5061239b82826143ab565b601255505050565b600a546001600160a01b031633146123fd5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610cc6565b601055565b600a546001600160a01b0316331461245c5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610cc6565b6001600160a01b0381166124d85760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610cc6565b6113ee81612c16565b600a546001600160a01b0316331461253b5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610cc6565b600c80547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ff81166101009182900460ff1615909102179055565b600a5474010000000000000000000000000000000000000000900460ff16156125ca576040517f6f5ffb7e00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b336125dd600a546001600160a01b031690565b6001600160a01b03161415801561262357503360009081527f6a3d30e0c3cc0c73e38f13b1a1daf3d4bd64c566f95758674a646e998024b3da602052604090205460ff16155b1561265a576040517fea8e4eb500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60005b818110156126b5576126ad83838381811061267a5761267a614765565b905060200201602081019061268f9190613f97565b8686848181106126a1576126a1614765565b90506020020135612dc9565b60010161265d565b5050505050565b60008281526008602090815260408083206001600160a01b038516845290915290205460ff16610cdb5760008281526008602090815260408083206001600160a01b0385168452909152902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001660011790556127383390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b6000611840836001600160a01b0384166134af565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff000000000000000000000000000000000000000000000000000000008316148061282457507f80ac58cd000000000000000000000000000000000000000000000000000000007fffffffff000000000000000000000000000000000000000000000000000000008316145b80610cea5750507fffffffff00000000000000000000000000000000000000000000000000000000167f5b5e139f000000000000000000000000000000000000000000000000000000001490565b600081600111158015612886575060005482105b8015610cea5750506000908152600460205260409020547c0100000000000000000000000000000000000000000000000000000000161590565b6000818060011161292f5760005481101561292f57600081815260046020526040812054907c01000000000000000000000000000000000000000000000000000000008216900361292d575b8060000361184057506000190160008181526004602052604090205461290c565b505b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6113ee81336134fe565b61297582826126bc565b60008281526009602052604090206111a0908261277c565b612997828261357e565b60008281526009602052604090206111a0908261361f565b60006129ba836128c0565b9050806000806129d886600090815260066020526040902080549091565b915091508415612a31576129ed818433610f94565b612a31576129fb8333610b9f565b612a31576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8015612a3c57600082555b6001600160a01b038316600081815260056020526040902080546fffffffffffffffffffffffffffffffff0190554260a01b177c0300000000000000000000000000000000000000000000000000000000176000878152600460205260408120919091557c020000000000000000000000000000000000000000000000000000000085169003612afc57600186016000818152600460205260408120549003612afa576000548114612afa5760008181526004602052604090208590555b505b60405186906000906001600160a01b038616907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050600180548101905550505050565b8151815160009184918491908114612b625760009350505050610cea565b60005b81811015612c0957828181518110612b7f57612b7f614765565b602001015160f81c60f81b7effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916848281518110612bbe57612bbe614765565b01602001517fff000000000000000000000000000000000000000000000000000000000000001614612bf7576000945050505050610cea565b80612c0181614794565b915050612b65565b5060019695505050505050565b600a80546001600160a01b038381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b80471015612cd05760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e63650000006044820152606401610cc6565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114612d1d576040519150601f19603f3d011682016040523d82523d6000602084013e612d22565b606091505b50509050806111a05760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d617920686176652072657665727465640000000000006064820152608401610cc6565b60006118408383613634565b6000806000612db4858561365e565b91509150612dc1816136cc565b509392505050565b6000546001600160a01b038316612e0c576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b81600003612e46576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6001600160a01b038316600081815260056020526040902080546801000000000000000185020190554260a01b6001841460e11b1717600082815260046020526040902055808281015b6040516001830192906001600160a01b038716906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a4808210612e905760005550505050565b6040517f150b7a020000000000000000000000000000000000000000000000000000000081526000906001600160a01b0385169063150b7a0290612f2a9033908990889088906004016147ae565b6020604051808303816000875af1925050508015612f65575060408051601f3d908101601f19168201909252612f62918101906147ea565b60015b612fdc573d808015612f93576040519150601f19603f3d011682016040523d82523d6000602084013e612f98565b606091505b508051600003612fd4576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b7fffffffff00000000000000000000000000000000000000000000000000000000167f150b7a02000000000000000000000000000000000000000000000000000000001490505b949350505050565b6000601254600161303c91906143ab565b821080610cea5750610cea60138360008181526001830160205260408120541515611840565b600061306d8261302b565b1561307a57506000919050565b600060015b838110156130c6576130a560138260008181526001830160205260408120541515611840565b80156130b2575060125481115b156130be578160010191505b60010161307f565b5080601254846130d69190614807565b6118409190614807565b60408051606480825260a08201909252606091906000908260208201818036833701905050905060005b841561318c57600061311d600a8761481e565b905061312a600a87614397565b95506131378160306143ab565b60f81b838361314581614794565b94508151811061315757613157614765565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053505061310a565b60008167ffffffffffffffff8111156131a7576131a7613d13565b6040519080825280601f01601f1916602001820160405280156131d1576020820181803683370190505b50905060005b82811015613264578360016131ec8386614807565b6131f69190614807565b8151811061320657613206614765565b602001015160f81c60f81b82828151811061322357613223614765565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053508061325c81614794565b9150506131d7565b5095945050505050565b60608060125483116132a5576018601960405160200161328f929190614832565b6040516020818303038152906040529050610cea565b60186132b361204885613062565b60196040516020016132c793929190614877565b604051602081830303815290604052905092915050565b80516060906000819003613302575050604080516020810190915260008152919050565b600060036133118360026143ab565b61331b9190614397565b613326906004614349565b905060006133358260206143ab565b67ffffffffffffffff81111561334d5761334d613d13565b6040519080825280601f01601f191660200182016040528015613377576020820181803683370190505b50905060006040518060600160405280604081526020016149a1604091399050600181016020830160005b86811015613403576003818a01810151603f601282901c8116860151600c83901c8216870151600684901c831688015192909316870151600891821b60ff94851601821b92841692909201901b91160160e01b8352600490920191016133a2565b50600386066001811461341d57600281146134675761348f565b7f3d3d0000000000000000000000000000000000000000000000000000000000007ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe83015261348f565b7f3d000000000000000000000000000000000000000000000000000000000000006000198301525b505050918152949350505050565b6000610cea825490565b600061184083835b60008181526001830160205260408120546134f657508154600181810184556000848152602080822090930184905584548482528286019093526040902091909155610cea565b506000610cea565b60008281526008602090815260408083206001600160a01b038516845290915290205460ff16610cdb5761353c816001600160a01b031660146138b8565b6135478360206138b8565b6040516020016135589291906148aa565b60408051601f198184030181529082905262461bcd60e51b8252610cc691600401613ea4565b60008281526008602090815260408083206001600160a01b038516845290915290205460ff1615610cdb5760008281526008602090815260408083206001600160a01b038516808552925280832080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b6000611840836001600160a01b038416613ae1565b600082600001828154811061364b5761364b614765565b9060005260206000200154905092915050565b60008082516041036136945760208301516040840151606085015160001a61368887828585613bd4565b945094505050506136c5565b82516040036136bd57602083015160408401516136b2868383613cc1565b9350935050506136c5565b506000905060025b9250929050565b60008160048111156136e0576136e061492b565b036136e85750565b60018160048111156136fc576136fc61492b565b036137495760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152606401610cc6565b600281600481111561375d5761375d61492b565b036137aa5760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152606401610cc6565b60038160048111156137be576137be61492b565b036138315760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c60448201527f75650000000000000000000000000000000000000000000000000000000000006064820152608401610cc6565b60048160048111156138455761384561492b565b036113ee5760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c60448201527f75650000000000000000000000000000000000000000000000000000000000006064820152608401610cc6565b606060006138c7836002614349565b6138d29060026143ab565b67ffffffffffffffff8111156138ea576138ea613d13565b6040519080825280601f01601f191660200182016040528015613914576020820181803683370190505b5090507f30000000000000000000000000000000000000000000000000000000000000008160008151811061394b5761394b614765565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053507f7800000000000000000000000000000000000000000000000000000000000000816001815181106139ae576139ae614765565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a90535060006139ea846002614349565b6139f59060016143ab565b90505b6001811115613a92577f303132333435363738396162636465660000000000000000000000000000000085600f1660108110613a3657613a36614765565b1a60f81b828281518110613a4c57613a4c614765565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a90535060049490941c93613a8b8161495a565b90506139f8565b5083156118405760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152606401610cc6565b60008181526001830160205260408120548015613bca576000613b05600183614807565b8554909150600090613b1990600190614807565b9050818114613b7e576000866000018281548110613b3957613b39614765565b9060005260206000200154905080876000018481548110613b5c57613b5c614765565b6000918252602080832090910192909255918252600188019052604090208390555b8554869080613b8f57613b8f614971565b600190038181906000526020600020016000905590558560010160008681526020019081526020016000206000905560019350505050610cea565b6000915050610cea565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0831115613c0b5750600090506003613cb8565b8460ff16601b14158015613c2357508460ff16601c14155b15613c345750600090506004613cb8565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015613c88573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b038116613cb157600060019250925050613cb8565b9150600090505b94509492505050565b6000807f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff831681613cf760ff86901c601b6143ab565b9050613d0587828885613bd4565b935093505050935093915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600067ffffffffffffffff80841115613d5d57613d5d613d13565b604051601f8501601f19908116603f01168101908282118183101715613d8557613d85613d13565b81604052809350858152868686011115613d9e57600080fd5b858560208301376000602087830101525050509392505050565b600060208284031215613dca57600080fd5b813567ffffffffffffffff811115613de157600080fd5b8201601f81018413613df257600080fd5b61302384823560208401613d42565b7fffffffff00000000000000000000000000000000000000000000000000000000811681146113ee57600080fd5b600060208284031215613e4157600080fd5b813561184081613e01565b60005b83811015613e67578181015183820152602001613e4f565b83811115611e935750506000910152565b60008151808452613e90816020860160208601613e4c565b601f01601f19169290920160200192915050565b6020815260006118406020830184613e78565b600060208284031215613ec957600080fd5b5035919050565b80356001600160a01b0381168114613ee757600080fd5b919050565b60008060408385031215613eff57600080fd5b613f0883613ed0565b946020939093013593505050565b600080600060608486031215613f2b57600080fd5b613f3484613ed0565b9250613f4260208501613ed0565b9150604084013590509250925092565b60008060408385031215613f6557600080fd5b50508035926020909101359150565b60008060408385031215613f8757600080fd5b8235915061117260208401613ed0565b600060208284031215613fa957600080fd5b61184082613ed0565b600080600060408486031215613fc757600080fd5b83359250602084013567ffffffffffffffff80821115613fe657600080fd5b818601915086601f830112613ffa57600080fd5b81358181111561400957600080fd5b87602082850101111561401b57600080fd5b6020830194508093505050509250925092565b6000806040838503121561404157600080fd5b61404a83613ed0565b91506020830135801515811461405f57600080fd5b809150509250929050565b6000806000806080858703121561408057600080fd5b61408985613ed0565b935061409760208601613ed0565b925060408501359150606085013567ffffffffffffffff8111156140ba57600080fd5b8501601f810187136140cb57600080fd5b6140da87823560208401613d42565b91505092959194509250565b600080604083850312156140f957600080fd5b61410283613ed0565b915061117260208401613ed0565b60008083601f84011261412257600080fd5b50813567ffffffffffffffff81111561413a57600080fd5b6020830191508360208260051b85010111156136c557600080fd5b6000806000806040858703121561416b57600080fd5b843567ffffffffffffffff8082111561418357600080fd5b61418f88838901614110565b909650945060208701359150808211156141a857600080fd5b506141b587828801614110565b95989497509550505050565b600181811c908216806141d557607f821691505b60208210810361420e577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b50919050565b601f8211156111a057600081815260208120601f850160051c8101602086101561423b5750805b601f850160051c820191505b8181101561113e57828155600101614247565b815167ffffffffffffffff81111561427457614274613d13565b6142888161428284546141c1565b84614214565b602080601f8311600181146142bd57600084156142a55750858301515b600019600386901b1c1916600185901b17855561113e565b600085815260208120601f198616915b828110156142ec578886015182559484019460019091019084016142cd565b508582101561430a5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60008160001904831182151516156143635761436361431a565b500290565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b6000826143a6576143a6614368565b500490565b600082198211156143be576143be61431a565b500190565b7f5b207b202274726169745f74797065223a2022416374697665222c202276616c81527f7565223a20220000000000000000000000000000000000000000000000000000602082015260008251614421816026850160208701613e4c565b7f227d5d00000000000000000000000000000000000000000000000000000000006026939091019283015250602901919050565b7f5b207b202274726169745f74797065223a2022506c616365204e756d6265722281527f2c202276616c7565223a202200000000000000000000000000000000000000006020820152600083516144b381602c850160208801613e4c565b7f227d2c207b202274726169745f74797065223a2022416374697665222c202276602c918401918201527f616c7565223a2022000000000000000000000000000000000000000000000000604c8201528351614516816054840160208801613e4c565b7f227d5d000000000000000000000000000000000000000000000000000000000060549290910191820152605701949350505050565b60008154614559816141c1565b6001828116801561457157600181146145a4576145d3565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00841687528215158302870194506145d3565b8560005260208060002060005b858110156145ca5781548a8201529084019082016145b1565b50505082870194505b5050505092915050565b7f7b226e616d65223a2022000000000000000000000000000000000000000000008152600061460f600a83018861454c565b7f222c20226465736372697074696f6e223a202200000000000000000000000000815261463f601382018861454c565b90507f222c202265787465726e616c5f75726c223a20220000000000000000000000008152614671601482018761454c565b90507f222c2022696d616765223a220000000000000000000000000000000000000000815284516146a981600c840160208901613e4c565b7f222c202261747472696275746573223a00000000000000000000000000000000600c929091019182015283516146e781601c840160208801613e4c565b7f7d00000000000000000000000000000000000000000000000000000000000000601c9290910191820152601d01979650505050505050565b7f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c00000081526000825161475881601d850160208701613e4c565b91909101601d0192915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b600060001982036147a7576147a761431a565b5060010190565b60006001600160a01b038087168352808616602084015250836040830152608060608301526147e06080830184613e78565b9695505050505050565b6000602082840312156147fc57600080fd5b815161184081613e01565b6000828210156148195761481961431a565b500390565b60008261482d5761482d614368565b500690565b600061483e828561454c565b7f3000000000000000000000000000000000000000000000000000000000000000815261486e600182018561454c565b95945050505050565b6000614883828661454c565b8451614893818360208901613e4c565b61489f8183018661454c565b979650505050505050565b7f416363657373436f6e74726f6c3a206163636f756e74200000000000000000008152600083516148e2816017850160208801613e4c565b7f206973206d697373696e6720726f6c6520000000000000000000000000000000601791840191820152835161491f816028840160208801613e4c565b01602801949350505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b6000816149695761496961431a565b506000190190565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fdfe4142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2fa26469706673582212206583637eecce758069b7662a8ba7b5f0da3dc69ea92898182f82f6a013098dbd64736f6c634300080f0033

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.