ETH Price: $3,443.63 (+4.65%)

Token

NFT Worlds (NFT Worlds)
 

Overview

Max Total Supply

10,000 NFT Worlds

Holders

871

Total Transfers

-

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Loading...
Loading
Loading...
Loading
Loading...
Loading

OVERVIEW

10,000 uniquely generated, buildable & playable NFT virtual worlds.

# Exchange Pair Price  24H Volume % Volume

Contract Source Code Verified (Exact Match)

Contract Name:
NFTWorlds

Compiler Version
v0.8.0+commit.c7dfd78e

Optimization Enabled:
Yes with 1000 runs

Other Settings:
default evmVersion
File 1 of 16 : NFTWorlds.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

// Compile with optimizer on, otherwise exceeds size limit.

import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/math/SafeMath.sol";
import "@openzeppelin/contracts/utils/cryptography/ECDSA.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";

contract NFTWorlds is ERC721Enumerable, Ownable, ReentrancyGuard {
  using SafeMath for uint256;
  using ECDSA for bytes32;

  /**
   * @dev Mint Related
   * */

  string public ipfsGateway = "https://ipfs.nftworlds.com/ipfs/";
  bool public mintEnabled = false;
  uint public totalMinted = 0;
  uint public mintSupplyCount;
  uint private ownerMintReserveCount;
  uint private ownerMintCount;
  uint private maxMintPerAddress;
  uint private whitelistExpirationTimestamp;
  mapping(address => uint16) private addressMintCount;

  uint public whitelistAddressCount = 0;
  uint public whitelistMintCount = 0;
  uint private maxWhitelistCount = 0;
  mapping(address => bool) private whitelist;

  /**
   * @dev World Data
   */

  string[] densityStrings = ["Very High", "High", "Medium", "Low", "Very Low"];

  string[] biomeStrings = ["Forest","River","Swamp","Birch Forest","Savanna Plateau","Savanna","Beach","Desert","Plains","Desert Hills","Sunflower Glade","Gravel Strewn Mountains","Mountains","Wooded Mountains","Ocean","Deep Ocean","Swampy Hills","Evergreen Forest","Cursed Forest","Cold Ocean","Warm Ocean","Frozen Ocean","Stone Shore","Desert Lakes","Forest Of Flowers","Jungle","Badlands","Wooded Badlands Plateau","Evergreen Forest Mountains","Giant Evergreen Forest","Badlands Plateau","Dark Forest Hills","Snowy Tundra","Snowy Evergreen Forest","Frozen River","Snowy Beach","Snowy Mountains","Mushroom Shoreside Glades","Mushroom Glades","Frozen Fields","Bamboo Jungle","Destroyed Savanna","Eroded Badlands"];

  string[] featureStrings = ["Ore Mine","Dark Trench","Ore Rich","Ancient Forest","Drought","Scarce Freshwater","Ironheart","Multi-Climate","Wild Cows","Snow","Mountains","Monsoons","Abundant Freshwater","Woodlands","Owls","Wild Horses","Monolith","Heavy Rains","Haunted","Salmon","Sunken City","Oil Fields","Dolphins","Sunken Ship","Town","Reefs","Deforestation","Deep Caverns","Aquatic Life Haven","Ancient Ocean","Sea Monsters","Buried Jems","Giant Squid","Cold Snaps","Icebergs","Witch's Hut","Heat Waves","Avalanches","Poisonous Bogs","Deep Water","Oasis","Jungle Ruins","Rains","Overgrowth","Wildflower Fields","Fishing Grounds","Fungus Patch","Vultures","Giant Spider Nests","Underground City","Calm Waters","Tropical Fish","Mushrooms","Large Lake","Pyramid","Rich Oil Veins","Cave Of Ancients","Island Volcano","Paydirt","Whales","Undersea Temple","City Beneath The Waves","Pirate's Grave","Wildlife Haven","Wild Bears","Rotting Earth","Blizzards","Cursed Wildlife","Lightning Strikes","Abundant Jewels","Dark Summoners","Never-Ending Winter","Bandit Camp","Vast Ocean","Shroom People","Holy River","Bird's Haven","Shapeshifters","Spawning Grounds","Fairies","Distorted Reality","Penguin Colonies","Heavenly Lights","Igloos","Arctic Pirates","Sunken Treasure","Witch Tales","Giant Ice Squid","Gold Veins","Polar Bears","Quicksand","Cats","Deadlands","Albino Llamas","Buried Treasure","Mermaids","Long Nights","Exile Camp","Octopus Colony","Chilled Caves","Dense Jungle","Spore Clouds","Will-O-Wisp's","Unending Clouds","Pandas","Hidden City Of Gold","Buried Idols","Thunder Storms","Abominable Snowmen","Floods","Centaurs","Walking Mushrooms","Scorched","Thunderstorms","Peaceful","Ancient Tunnel Network","Friendly Spirits","Giant Eagles","Catacombs","Temple Of Origin","World's Peak","Uninhabitable","Ancient Whales","Enchanted Earth","Kelp Overgrowth","Message In A Bottle","Ice Giants","Crypt Of Wisps","Underworld Passage","Eskimo Settlers","Dragons","Gold Rush","Fountain Of Aging","Haunted Manor","Holy","Kraken"];

  struct WorldData {
    uint24[5] geographyData; // landAreaKm2, waterAreaKm2, highestPointFromSeaLevelM, lowestPointFromSeaLevelM, annualRainfallMM,
    uint16[9] resourceData; // lumberPercent, coalPercent, oilPercent, dirtSoilPercent, commonMetalsPercent, rareMetalsPercent, gemstonesPercent, freshWaterPercent, saltWaterPercent,
    uint8[3] densities; // wildlifeDensity, aquaticLifeDensity, foliageDensity
    uint8[] biomes;
    uint8[] features;
  }

  mapping(uint => int32) private tokenSeeds;
  mapping(uint => string) public tokenMetadataIPFSHashes;
  mapping(string => uint) private ipfsHashTokenIds;
  mapping(uint => WorldData) private tokenWorldData;

  /**
   * @dev Contract Methods
   */

  constructor(
    uint _mintSupplyCount,
    uint _ownerMintReserveCount,
    uint _whitelistExpirationTimestamp,
    uint _maxWhitelistCount,
    uint _maxMintPerAddress
  ) ERC721("NFT Worlds", "NFT Worlds") {
    mintSupplyCount = _mintSupplyCount;
    ownerMintReserveCount = _ownerMintReserveCount;
    whitelistExpirationTimestamp = _whitelistExpirationTimestamp;
    maxWhitelistCount = _maxWhitelistCount;
    maxMintPerAddress = _maxMintPerAddress;
  }

  /************
   * Metadata *
   ************/

  function tokenURI(uint _tokenId) override public view returns (string memory) {
    require(_exists(_tokenId), "ERC721Metadata: URI query for nonexistent token");

    return string(abi.encodePacked(ipfsGateway, tokenMetadataIPFSHashes[_tokenId]));
  }

  function emergencySetIPFSGateway(string memory _ipfsGateway) external onlyOwner {
     ipfsGateway = _ipfsGateway;
  }

  function updateMetadataIPFSHash(uint _tokenId, string calldata _tokenMetadataIPFSHash) tokenExists(_tokenId) external {
    require(_msgSender() == ownerOf(_tokenId), "You are not the owner of this token.");
    require(ipfsHashTokenIds[_tokenMetadataIPFSHash] == 0, "This IPFS hash has already been assigned.");

    tokenMetadataIPFSHashes[_tokenId] = _tokenMetadataIPFSHash;
    ipfsHashTokenIds[_tokenMetadataIPFSHash] = _tokenId;
  }

  function getSeed(uint _tokenId) tokenExists(_tokenId) external view returns (int32) {
    require(_msgSender() == ownerOf(_tokenId), "You are not the owner of this token.");

    return tokenSeeds[_tokenId];
  }

  function getGeography(uint _tokenId) tokenExists(_tokenId) external view returns (uint24[5] memory) {
    return tokenWorldData[_tokenId].geographyData;
  }

  function getResources(uint _tokenId) tokenExists(_tokenId) external view returns (uint16[9] memory) {
    return tokenWorldData[_tokenId].resourceData;
  }

  function getDensities(uint _tokenId) tokenExists(_tokenId) external view returns (string[3] memory) {
    uint totalDensities = 3;
    string[3] memory _densitiesStrings = ["", "", ""];

    for (uint i = 0; i < totalDensities; i++) {
        string memory _densityString = densityStrings[tokenWorldData[_tokenId].densities[i]];
        _densitiesStrings[i] = _densityString;
    }

    return _densitiesStrings;
  }

  function getBiomes(uint _tokenId) tokenExists(_tokenId) external view returns (string[] memory) {
    uint totalBiomes = tokenWorldData[_tokenId].biomes.length;
    string[] memory _biomes = new string[](totalBiomes);

    for (uint i = 0; i < totalBiomes; i++) {
        string memory _biomeString = biomeStrings[tokenWorldData[_tokenId].biomes[i]];
        _biomes[i] = _biomeString;
    }

    return _biomes;
  }

  function getFeatures(uint _tokenId) tokenExists(_tokenId) external view returns (string[] memory) {
    uint totalFeatures = tokenWorldData[_tokenId].features.length;
    string[] memory _features = new string[](totalFeatures);

    for (uint i = 0; i < totalFeatures; i++) {
        string memory _featureString = featureStrings[tokenWorldData[_tokenId].features[i]];
        _features[i] = _featureString;
    }

    return _features;
  }

  modifier tokenExists(uint _tokenId) {
    require(_exists(_tokenId), "This token does not exist.");
    _;
  }

  /********
   * Mint *
   ********/

  struct MintData {
    uint _tokenId;
    int32 _seed;
    WorldData _worldData;
    string _tokenMetadataIPFSHash;
  }

  function mintWorld(
    MintData calldata _mintData,
    bytes calldata _signature // prevent alteration of intended mint data
  ) external nonReentrant {
    require(verifyOwnerSignature(keccak256(abi.encode(_mintData)), _signature), "Invalid Signature");

    require(_mintData._tokenId > 0 && _mintData._tokenId <= mintSupplyCount, "Invalid token id.");
    require(mintEnabled, "Minting unavailable");
    require(totalMinted < mintSupplyCount, "All tokens minted");

    require(_mintData._worldData.biomes.length > 0, "No biomes");
    require(_mintData._worldData.features.length > 0, "No features");
    require(bytes(_mintData._tokenMetadataIPFSHash).length > 0, "No ipfs");

    if (_msgSender() != owner()) {
        require(
          addressMintCount[_msgSender()] < maxMintPerAddress,
          "You cannot mint more."
        );

        require(
          totalMinted + (ownerMintReserveCount - ownerMintCount) < mintSupplyCount,
          "Available tokens minted"
        );

        // make sure remaining mints are enough to cover remaining whitelist.
        require(
          (
            block.timestamp > whitelistExpirationTimestamp ||
            whitelist[_msgSender()] ||
            (
              totalMinted +
              (ownerMintReserveCount - ownerMintCount) +
              ((whitelistAddressCount - whitelistMintCount) * 2)
              < mintSupplyCount
            )
          ),
          "Only whitelist tokens available"
        );
    } else {
        require(ownerMintCount < ownerMintReserveCount, "Owner mint limit");
    }

    tokenWorldData[_mintData._tokenId] = _mintData._worldData;

    tokenMetadataIPFSHashes[_mintData._tokenId] = _mintData._tokenMetadataIPFSHash;
    ipfsHashTokenIds[_mintData._tokenMetadataIPFSHash] = _mintData._tokenId;
    tokenSeeds[_mintData._tokenId] = _mintData._seed;

    addressMintCount[_msgSender()]++;
    totalMinted++;

    if (whitelist[_msgSender()]) {
      whitelistMintCount++;
    }

    if (_msgSender() == owner()) {
        ownerMintCount++;
    }

    _safeMint(_msgSender(), _mintData._tokenId);
  }

  function setMintEnabled(bool _enabled) external onlyOwner {
    mintEnabled = _enabled;
  }

  /*************
   * Whitelist *
   *************/

  function joinWhitelist(bytes calldata _signature) public {
    require(verifyOwnerSignature(keccak256(abi.encode(_msgSender())), _signature), "Invalid Signature");
    require(!mintEnabled, "Whitelist is not available");
    require(whitelistAddressCount < maxWhitelistCount, "Whitelist is full");
    require(!whitelist[_msgSender()], "Your address is already whitelisted");

    whitelistAddressCount++;

    whitelist[_msgSender()] = true;
  }

  /************
   * Security *
   ************/

  function verifyOwnerSignature(bytes32 hash, bytes memory signature) private view returns(bool) {
    return hash.toEthSignedMessageHash().recover(signature) == owner();
  }
}

File 2 of 16 : ERC721.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "./IERC721.sol";
import "./IERC721Receiver.sol";
import "./extensions/IERC721Metadata.sol";
import "../../utils/Address.sol";
import "../../utils/Context.sol";
import "../../utils/Strings.sol";
import "../../utils/introspection/ERC165.sol";

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

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        _approve(to, tokenId);
    }

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

        return _tokenApprovals[tokenId];
    }

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

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

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

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

        _transfer(from, to, tokenId);
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        _beforeTokenTransfer(from, to, tokenId);

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

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

        emit Transfer(from, to, tokenId);
    }

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

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

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

File 3 of 16 : ERC721Enumerable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../ERC721.sol";
import "./IERC721Enumerable.sol";

/**
 * @dev This implements an optional extension of {ERC721} defined in the EIP that adds
 * enumerability of all the token ids in the contract as well as all token ids owned by each
 * account.
 */
abstract contract ERC721Enumerable is ERC721, IERC721Enumerable {
    // Mapping from owner to list of owned token IDs
    mapping(address => mapping(uint256 => uint256)) private _ownedTokens;

    // Mapping from token ID to index of the owner tokens list
    mapping(uint256 => uint256) private _ownedTokensIndex;

    // Array with all token ids, used for enumeration
    uint256[] private _allTokens;

    // Mapping from token id to position in the allTokens array
    mapping(uint256 => uint256) private _allTokensIndex;

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

    /**
     * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}.
     */
    function tokenOfOwnerByIndex(address owner, uint256 index) public view virtual override returns (uint256) {
        require(index < ERC721.balanceOf(owner), "ERC721Enumerable: owner index out of bounds");
        return _ownedTokens[owner][index];
    }

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

    /**
     * @dev See {IERC721Enumerable-tokenByIndex}.
     */
    function tokenByIndex(uint256 index) public view virtual override returns (uint256) {
        require(index < ERC721Enumerable.totalSupply(), "ERC721Enumerable: global index out of bounds");
        return _allTokens[index];
    }

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

        if (from == address(0)) {
            _addTokenToAllTokensEnumeration(tokenId);
        } else if (from != to) {
            _removeTokenFromOwnerEnumeration(from, tokenId);
        }
        if (to == address(0)) {
            _removeTokenFromAllTokensEnumeration(tokenId);
        } else if (to != from) {
            _addTokenToOwnerEnumeration(to, tokenId);
        }
    }

    /**
     * @dev Private function to add a token to this extension's ownership-tracking data structures.
     * @param to address representing the new owner of the given token ID
     * @param tokenId uint256 ID of the token to be added to the tokens list of the given address
     */
    function _addTokenToOwnerEnumeration(address to, uint256 tokenId) private {
        uint256 length = ERC721.balanceOf(to);
        _ownedTokens[to][length] = tokenId;
        _ownedTokensIndex[tokenId] = length;
    }

    /**
     * @dev Private function to add a token to this extension's token tracking data structures.
     * @param tokenId uint256 ID of the token to be added to the tokens list
     */
    function _addTokenToAllTokensEnumeration(uint256 tokenId) private {
        _allTokensIndex[tokenId] = _allTokens.length;
        _allTokens.push(tokenId);
    }

    /**
     * @dev Private function to remove a token from this extension's ownership-tracking data structures. Note that
     * while the token is not assigned a new owner, the `_ownedTokensIndex` mapping is _not_ updated: this allows for
     * gas optimizations e.g. when performing a transfer operation (avoiding double writes).
     * This has O(1) time complexity, but alters the order of the _ownedTokens array.
     * @param from address representing the previous owner of the given token ID
     * @param tokenId uint256 ID of the token to be removed from the tokens list of the given address
     */
    function _removeTokenFromOwnerEnumeration(address from, uint256 tokenId) private {
        // To prevent a gap in from's tokens array, we store the last token in the index of the token to delete, and
        // then delete the last slot (swap and pop).

        uint256 lastTokenIndex = ERC721.balanceOf(from) - 1;
        uint256 tokenIndex = _ownedTokensIndex[tokenId];

        // When the token to delete is the last token, the swap operation is unnecessary
        if (tokenIndex != lastTokenIndex) {
            uint256 lastTokenId = _ownedTokens[from][lastTokenIndex];

            _ownedTokens[from][tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token
            _ownedTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index
        }

        // This also deletes the contents at the last position of the array
        delete _ownedTokensIndex[tokenId];
        delete _ownedTokens[from][lastTokenIndex];
    }

    /**
     * @dev Private function to remove a token from this extension's token tracking data structures.
     * This has O(1) time complexity, but alters the order of the _allTokens array.
     * @param tokenId uint256 ID of the token to be removed from the tokens list
     */
    function _removeTokenFromAllTokensEnumeration(uint256 tokenId) private {
        // To prevent a gap in the tokens array, we store the last token in the index of the token to delete, and
        // then delete the last slot (swap and pop).

        uint256 lastTokenIndex = _allTokens.length - 1;
        uint256 tokenIndex = _allTokensIndex[tokenId];

        // When the token to delete is the last token, the swap operation is unnecessary. However, since this occurs so
        // rarely (when the last minted token is burnt) that we still do the swap here to avoid the gas cost of adding
        // an 'if' statement (like in _removeTokenFromOwnerEnumeration)
        uint256 lastTokenId = _allTokens[lastTokenIndex];

        _allTokens[tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token
        _allTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index

        // This also deletes the contents at the last position of the array
        delete _allTokensIndex[tokenId];
        _allTokens.pop();
    }
}

File 4 of 16 : Ownable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

File 5 of 16 : SafeMath.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

File 6 of 16 : ECDSA.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

        return (signer, RecoverError.NoError);
    }

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

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

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

File 7 of 16 : ReentrancyGuard.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

    uint256 private _status;

    constructor() {
        _status = _NOT_ENTERED;
    }

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

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

        _;

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

File 8 of 16 : IERC721.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

File 9 of 16 : IERC721Receiver.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

File 10 of 16 : IERC721Metadata.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../IERC721.sol";

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

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

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

File 12 of 16 : Context.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

File 13 of 16 : Strings.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

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

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

File 14 of 16 : ERC165.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "./IERC165.sol";

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

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

pragma solidity ^0.8.0;

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

File 16 of 16 : IERC721Enumerable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../IERC721.sol";

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

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

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

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"uint256","name":"_mintSupplyCount","type":"uint256"},{"internalType":"uint256","name":"_ownerMintReserveCount","type":"uint256"},{"internalType":"uint256","name":"_whitelistExpirationTimestamp","type":"uint256"},{"internalType":"uint256","name":"_maxWhitelistCount","type":"uint256"},{"internalType":"uint256","name":"_maxMintPerAddress","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"_ipfsGateway","type":"string"}],"name":"emergencySetIPFSGateway","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"getBiomes","outputs":[{"internalType":"string[]","name":"","type":"string[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"getDensities","outputs":[{"internalType":"string[3]","name":"","type":"string[3]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"getFeatures","outputs":[{"internalType":"string[]","name":"","type":"string[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"getGeography","outputs":[{"internalType":"uint24[5]","name":"","type":"uint24[5]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"getResources","outputs":[{"internalType":"uint16[9]","name":"","type":"uint16[9]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"getSeed","outputs":[{"internalType":"int32","name":"","type":"int32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ipfsGateway","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes","name":"_signature","type":"bytes"}],"name":"joinWhitelist","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"mintEnabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mintSupplyCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"components":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"int32","name":"_seed","type":"int32"},{"components":[{"internalType":"uint24[5]","name":"geographyData","type":"uint24[5]"},{"internalType":"uint16[9]","name":"resourceData","type":"uint16[9]"},{"internalType":"uint8[3]","name":"densities","type":"uint8[3]"},{"internalType":"uint8[]","name":"biomes","type":"uint8[]"},{"internalType":"uint8[]","name":"features","type":"uint8[]"}],"internalType":"struct NFTWorlds.WorldData","name":"_worldData","type":"tuple"},{"internalType":"string","name":"_tokenMetadataIPFSHash","type":"string"}],"internalType":"struct NFTWorlds.MintData","name":"_mintData","type":"tuple"},{"internalType":"bytes","name":"_signature","type":"bytes"}],"name":"mintWorld","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_enabled","type":"bool"}],"name":"setMintEnabled","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"tokenMetadataIPFSHashes","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalMinted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"string","name":"_tokenMetadataIPFSHash","type":"string"}],"name":"updateMetadataIPFSHash","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"whitelistAddressCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"whitelistMintCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"}]

60c0604052602060808190527f68747470733a2f2f697066732e6e6674776f726c64732e636f6d2f697066732f60a09081526200004091600c919062001f73565b50600d805460ff191690556000600e819055601581905560168190556017556040805160e081018252600960a08201908152680accae4f24090d2ced60bb1b60c08301528152815180830183526004815263090d2ced60e31b602082810191909152808301919091528251808401845260068152654d656469756d60d01b81830152828401528251808401845260038152624c6f7760e81b8183015260608301528251808401909352600883526756657279204c6f7760c01b9083015260808101919091526200011590601990600562002002565b50604080516105a0810182526006610560820181815265119bdc995cdd60d21b6105808401528252825180840184526005808252642934bb32b960d91b60208381019190915280850192909252845180860186528181526405377616d760dc1b818401528486015284518086018652600c8082526b109a5c98da08119bdc995cdd60a21b82850152606086019190915285518087018752600f8082526e536176616e6e6120506c617465617560881b828601526080870191909152865180880188526007815266536176616e6e6160c81b8186015260a08701528651808801885283815264084cac2c6d60db1b8186015260c0870152865180880188528581526511195cd95c9d60d21b8186015260e08701528651808801885285815265506c61696e7360d01b81860152610100870152865180880188528281526b4465736572742048696c6c7360a01b81860152610120870152865180880188528181526e53756e666c6f77657220476c61646560881b818601526101408701528651808801885260178082527f47726176656c2053747265776e204d6f756e7461696e73000000000000000000828701526101608801919091528751808901895260098152684d6f756e7461696e7360b81b818701526101808801528751808901895260108082526f576f6f646564204d6f756e7461696e7360801b828801526101a08901919091528851808a018a529485526427b1b2b0b760d91b858701526101c088019490945287518089018952600a808252692232b2b81027b1b2b0b760b11b828801526101e08901919091528851808a018a528481526b5377616d70792048696c6c7360a01b818801526102008901528851808a018a528581526f115d995c99dc99595b88119bdc995cdd60821b818801526102208901528851808a018a52600d8082526c10dd5c9cd95908119bdc995cdd609a1b828901526102408a01919091528951808b018b528281526921b7b6321027b1b2b0b760b11b818901526102608a01528951808b018b52918252692bb0b9369027b1b2b0b760b11b828801526102808901919091528851808a018a528481526b233937bd32b71027b1b2b0b760a11b818801526102a08901528851808a018a52600b8082526a53746f6e652053686f726560a81b828901526102c08a01919091528951808b018b528581526b446573657274204c616b657360a01b818901526102e08a01528951808b018b52601180825270466f72657374204f6620466c6f7765727360781b828a01526103008b01919091528a51808c018c52988952654a756e676c6560d01b898901526103208a01989098528951808b018b5260088152674261646c616e647360c01b818901526103408a01528951808b018b529283527f576f6f646564204261646c616e647320506c6174656175000000000000000000838801526103608901929092528851808a018a52601a8082527f45766572677265656e20466f72657374204d6f756e7461696e73000000000000828901526103808a01919091528951808b018b5260168082527f4769616e742045766572677265656e20466f7265737400000000000000000000828a01526103a08b01919091528a51808c018c529687526f4261646c616e647320506c617465617560801b878901526103c08a01969096528951808b018b52888152704461726b20466f726573742048696c6c7360781b818901526103e08a01528951808b018b528581526b536e6f77792054756e64726160a01b818901526104008a01528951808b018b529586527f536e6f77792045766572677265656e20466f7265737400000000000000000000868801526104208901959095528851808a018a529384526b233937bd32b7102934bb32b960a11b84870152610440880193909352875180890189529081526a0a6dcdeeef24084cac2c6d60ab1b81860152610460870152865180880188528181526e536e6f7779204d6f756e7461696e7360881b8186015261048087015286518088018852601981527f4d757368726f6f6d2053686f72657369646520476c6164657300000000000000818601526104a0870152865180880188528181526e4d757368726f6f6d20476c6164657360881b818601526104c0870152865180880188528281526c46726f7a656e204669656c647360981b818601526104e0870152865180880188529182526c42616d626f6f204a756e676c6560981b82850152610500860191909152855180870187529384527044657374726f79656420536176616e6e6160781b8484015261052085019390935284518086019095529184526e45726f646564204261646c616e647360881b90840152610540820192909252620007da9190602b62002062565b50604051806111000160405280604051806040016040528060088152602001674f7265204d696e6560c01b81525081526020016040518060400160405280600b81526020016a088c2e4d640a8e4cadcc6d60ab1b81525081526020016040518060400160405280600881526020016709ee4ca40a4d2c6d60c31b81525081526020016040518060400160405280600e81526020016d105b98da595b9d08119bdc995cdd60921b815250815260200160405180604001604052806007815260200166111c9bdd59da1d60ca1b81525081526020016040518060400160405280601181526020017029b1b0b931b290233932b9b43bb0ba32b960791b815250815260200160405180604001604052806009815260200168125c9bdb9a19585c9d60ba1b81525081526020016040518060400160405280600d81526020016c4d756c74692d436c696d61746560981b81525081526020016040518060400160405280600981526020016857696c6420436f777360b81b815250815260200160405180604001604052806004815260200163536e6f7760e01b8152508152602001604051806040016040528060098152602001684d6f756e7461696e7360b81b8152508152602001604051806040016040528060088152602001674d6f6e736f6f6e7360c01b81525081526020016040518060400160405280601381526020017f4162756e64616e74204672657368776174657200000000000000000000000000815250815260200160405180604001604052806009815260200168576f6f646c616e647360b81b8152508152602001604051806040016040528060048152602001634f776c7360e01b81525081526020016040518060400160405280600b81526020016a57696c6420486f7273657360a81b81525081526020016040518060400160405280600881526020016709adedcded8d2e8d60c31b81525081526020016040518060400160405280600b81526020016a4865617679205261696e7360a81b81525081526020016040518060400160405280600781526020016612185d5b9d195960ca1b81525081526020016040518060400160405280600681526020016529b0b636b7b760d11b81525081526020016040518060400160405280600b81526020016a53756e6b656e204369747960a81b81525081526020016040518060400160405280600a8152602001694f696c204669656c647360b01b815250815260200160405180604001604052806008815260200167446f6c7068696e7360c01b81525081526020016040518060400160405280600b81526020016a053756e6b656e20536869760ac1b8152508152602001604051806040016040528060048152602001632a37bbb760e11b815250815260200160405180604001604052806005815260200164526565667360d81b81525081526020016040518060400160405280600d81526020016c2232b337b932b9ba30ba34b7b760991b81525081526020016040518060400160405280600c81526020016b446565702043617665726e7360a01b81525081526020016040518060400160405280601281526020017120b8bab0ba34b1902634b332902430bb32b760711b81525081526020016040518060400160405280600d81526020016c20b731b4b2b73a1027b1b2b0b760991b81525081526020016040518060400160405280600c81526020016b536561204d6f6e737465727360a01b81525081526020016040518060400160405280600b81526020016a427572696564204a656d7360a81b81525081526020016040518060400160405280600b81526020016a11da585b9d0814dc5d5a5960aa1b81525081526020016040518060400160405280600a815260200169436f6c6420536e61707360b01b815250815260200160405180604001604052806008815260200167496365626572677360c01b81525081526020016040518060400160405280600b81526020016a15da5d18da09dcc8121d5d60aa1b81525081526020016040518060400160405280600a8152602001694865617420576176657360b01b81525081526020016040518060400160405280600a8152602001694176616c616e6368657360b01b81525081526020016040518060400160405280600e81526020016d506f69736f6e6f757320426f677360901b81525081526020016040518060400160405280600a8152602001692232b2b8102bb0ba32b960b11b8152508152602001604051806040016040528060058152602001644f6173697360d81b81525081526020016040518060400160405280600c81526020016b4a756e676c65205275696e7360a01b8152508152602001604051806040016040528060058152602001645261696e7360d81b81525081526020016040518060400160405280600a81526020016909eeccae4cee4deeee8d60b31b81525081526020016040518060400160405280601181526020017057696c64666c6f776572204669656c647360781b81525081526020016040518060400160405280600f81526020016e46697368696e672047726f756e647360881b81525081526020016040518060400160405280600c81526020016b08ceadcceeae640a0c2e8c6d60a31b81525081526020016040518060400160405280600881526020016756756c747572657360c01b8152508152602001604051806040016040528060128152602001714769616e7420537069646572204e6573747360701b81525081526020016040518060400160405280601081526020016f556e64657267726f756e64204369747960801b81525081526020016040518060400160405280600b81526020016a43616c6d2057617465727360a81b81525081526020016040518060400160405280600d81526020016c0a8e4dee0d2c6c2d8408cd2e6d609b1b8152508152602001604051806040016040528060098152602001684d757368726f6f6d7360b81b81525081526020016040518060400160405280600a8152602001694c61726765204c616b6560b01b815250815260200160405180604001604052806007815260200166141e5c985b5a5960ca1b81525081526020016040518060400160405280600e81526020016d52696368204f696c205665696e7360901b81525081526020016040518060400160405280601081526020016f43617665204f6620416e6369656e747360801b81525081526020016040518060400160405280600e81526020016d49736c616e6420566f6c63616e6f60901b81525081526020016040518060400160405280600781526020016614185e591a5c9d60ca1b8152508152602001604051806040016040528060068152602001655768616c657360d01b81525081526020016040518060400160405280600f81526020016e556e6465727365612054656d706c6560881b81525081526020016040518060400160405280601681526020017f436974792042656e65617468205468652057617665730000000000000000000081525081526020016040518060400160405280600e81526020016d506972617465277320477261766560901b81525081526020016040518060400160405280600e81526020016d2bb4b6323634b332902430bb32b760911b81525081526020016040518060400160405280600a81526020016957696c6420426561727360b01b81525081526020016040518060400160405280600d81526020016c0a4dee8e8d2dcce408ac2e4e8d609b1b815250815260200160405180604001604052806009815260200168426c697a7a6172647360b81b81525081526020016040518060400160405280600f81526020016e4375727365642057696c646c69666560881b8152508152602001604051806040016040528060118152602001704c696768746e696e6720537472696b657360781b81525081526020016040518060400160405280600f81526020016e4162756e64616e74204a6577656c7360881b81525081526020016040518060400160405280600e81526020016d4461726b2053756d6d6f6e65727360901b81525081526020016040518060400160405280601381526020017f4e657665722d456e64696e672057696e7465720000000000000000000000000081525081526020016040518060400160405280600b81526020016a042616e6469742043616d760ac1b81525081526020016040518060400160405280600a8152602001692b30b9ba1027b1b2b0b760b11b81525081526020016040518060400160405280600d81526020016c5368726f6f6d2050656f706c6560981b81525081526020016040518060400160405280600a8152602001692437b63c902934bb32b960b11b81525081526020016040518060400160405280600c81526020016b2134b93213b9902430bb32b760a11b81525081526020016040518060400160405280600d81526020016c5368617065736869667465727360981b81525081526020016040518060400160405280601081526020016f537061776e696e672047726f756e647360801b8152508152602001604051806040016040528060078152602001664661697269657360c81b815250815260200160405180604001604052806011815260200170446973746f72746564205265616c69747960781b81525081526020016040518060400160405280601081526020016f50656e6775696e20436f6c6f6e69657360801b81525081526020016040518060400160405280600f81526020016e48656176656e6c79204c696768747360881b81525081526020016040518060400160405280600681526020016549676c6f6f7360d01b81525081526020016040518060400160405280600e81526020016d417263746963205069726174657360901b81525081526020016040518060400160405280600f81526020016e53756e6b656e20547265617375726560881b81525081526020016040518060400160405280600b81526020016a57697463682054616c657360a81b81525081526020016040518060400160405280600f81526020016e11da585b9d081258d94814dc5d5a59608a1b81525081526020016040518060400160405280600a815260200169476f6c64205665696e7360b01b81525081526020016040518060400160405280600b81526020016a506f6c617220426561727360a81b815250815260200160405180604001604052806009815260200168145d5a58dadcd85b9960ba1b8152508152602001604051806040016040528060048152602001634361747360e01b815250815260200160405180604001604052806009815260200168446561646c616e647360b81b81525081526020016040518060400160405280600d81526020016c416c62696e6f204c6c616d617360981b81525081526020016040518060400160405280600f81526020016e42757269656420547265617375726560881b8152508152602001604051806040016040528060088152602001674d65726d6169647360c01b81525081526020016040518060400160405280600b81526020016a4c6f6e67204e696768747360a81b81525081526020016040518060400160405280600a81526020016904578696c652043616d760b41b81525081526020016040518060400160405280600e81526020016d4f63746f70757320436f6c6f6e7960901b81525081526020016040518060400160405280600d81526020016c4368696c6c656420436176657360981b81525081526020016040518060400160405280600c81526020016b44656e7365204a756e676c6560a01b81525081526020016040518060400160405280600c81526020016b53706f726520436c6f75647360a01b81525081526020016040518060400160405280600d81526020016c57696c6c2d4f2d57697370277360981b81525081526020016040518060400160405280600f81526020016e556e656e64696e6720436c6f75647360881b81525081526020016040518060400160405280600681526020016550616e64617360d01b81525081526020016040518060400160405280601381526020017f48696464656e2043697479204f6620476f6c640000000000000000000000000081525081526020016040518060400160405280600c81526020016b4275726965642049646f6c7360a01b81525081526020016040518060400160405280600e81526020016d5468756e6465722053746f726d7360901b81525081526020016040518060400160405280601281526020017120b137b6b4b730b136329029b737bbb6b2b760711b815250815260200160405180604001604052806006815260200165466c6f6f647360d01b81525081526020016040518060400160405280600881526020016743656e746175727360c01b81525081526020016040518060400160405280601181526020017057616c6b696e67204d757368726f6f6d7360781b81525081526020016040518060400160405280600881526020016714d8dbdc98da195960c21b81525081526020016040518060400160405280600d81526020016c5468756e64657273746f726d7360981b81525081526020016040518060400160405280600881526020016714195858d9599d5b60c21b81525081526020016040518060400160405280601681526020017f416e6369656e742054756e6e656c204e6574776f726b0000000000000000000081525081526020016040518060400160405280601081526020016f467269656e646c79205370697269747360801b81525081526020016040518060400160405280600c81526020016b4769616e74204561676c657360a01b81525081526020016040518060400160405280600981526020016843617461636f6d627360b81b81525081526020016040518060400160405280601081526020016f2a32b6b836329027b31027b934b3b4b760811b81525081526020016040518060400160405280600c81526020016b576f726c642773205065616b60a01b81525081526020016040518060400160405280600d81526020016c556e696e686162697461626c6560981b81525081526020016040518060400160405280600e81526020016d416e6369656e74205768616c657360901b81525081526020016040518060400160405280600f81526020016e08adcc6d0c2dce8cac8408ac2e4e8d608b1b81525081526020016040518060400160405280600f81526020016e096cad8e0409eeccae4cee4deeee8d608b1b81525081526020016040518060400160405280601381526020017f4d65737361676520496e204120426f74746c650000000000000000000000000081525081526020016040518060400160405280600a815260200169496365204769616e747360b01b81525081526020016040518060400160405280600e81526020016d4372797074204f6620576973707360901b815250815260200160405180604001604052806012815260200171556e646572776f726c64205061737361676560701b81525081526020016040518060400160405280600f81526020016e45736b696d6f20536574746c65727360881b815250815260200160405180604001604052806007815260200166447261676f6e7360c81b81525081526020016040518060400160405280600981526020016808eded8c840a4eae6d60bb1b815250815260200160405180604001604052806011815260200170466f756e7461696e204f66204167696e6760781b81525081526020016040518060400160405280600d81526020016c2430bab73a32b21026b0b737b960991b815250815260200160405180604001604052806004815260200163486f6c7960e01b81525081526020016040518060400160405280600681526020016525b930b5b2b760d11b815250815250601b90608862001e54929190620020b4565b5034801562001e6257600080fd5b506040516200632c3803806200632c83398101604081905262001e859162002183565b604080518082018252600a808252694e465420576f726c647360b01b60208084018281528551808701909652928552840152815191929162001eca9160009162001f73565b50805162001ee090600190602084019062001f73565b50505062001efd62001ef762001f1d60201b60201c565b62001f21565b6001600b55600f9490945560109290925560135560175560125562002200565b3390565b600a80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b82805462001f8190620021c3565b90600052602060002090601f01602090048101928262001fa5576000855562001ff0565b82601f1062001fc057805160ff191683800117855562001ff0565b8280016001018555821562001ff0579182015b8281111562001ff057825182559160200191906001019062001fd3565b5062001ffe92915062002106565b5090565b82805482825590600052602060002090810192821562002054579160200282015b828111156200205457825180516200204391849160209091019062001f73565b509160200191906001019062002023565b5062001ffe9291506200211d565b82805482825590600052602060002090810192821562002054579160200282015b82811115620020545782518051620020a391849160209091019062001f73565b509160200191906001019062002083565b82805482825590600052602060002090810192821562002054579160200282015b82811115620020545782518051620020f591849160209091019062001f73565b5091602001919060010190620020d5565b5b8082111562001ffe576000815560010162002107565b8082111562001ffe5760006200213482826200213e565b506001016200211d565b5080546200214c90620021c3565b6000825580601f1062002160575062002180565b601f01602090049060005260206000209081019062002180919062002106565b50565b600080600080600060a086880312156200219b578081fd5b5050835160208501516040860151606087015160809097015192989197509594509092509050565b600281046001821680620021d857607f821691505b60208210811415620021fa57634e487b7160e01b600052602260045260246000fd5b50919050565b61411c80620022106000396000f3fe608060405234801561001057600080fd5b50600436106102775760003560e01c80638088fefc11610160578063c87b56dd116100d8578063ea9772361161008c578063f46a04eb11610071578063f46a04eb146104ef578063f8fe1cb914610502578063fc8db5361461052257610277565b8063ea977236146104c9578063f2fde38b146104dc57610277565b8063d1239730116100bd578063d12397301461048e578063e0d4ea3714610496578063e985e9c5146104b657610277565b8063c87b56dd14610468578063ceac65061461047b57610277565b8063a22cb4651161012f578063af57103711610114578063af5710371461043a578063b88d4fde14610442578063c398c2ad1461045557610277565b8063a22cb4651461041f578063a2309ff81461043257610277565b80638088fefc146103f45780638da5cb5b146103fc57806390454a041461040457806395d89b411461041757610277565b806342842e0e116101f357806370a08231116101c2578063740735c0116101a7578063740735c0146103c657806374542f6f146103ce578063748f1357146103e157610277565b806370a08231146103ab578063715018a6146103be57610277565b806342842e0e1461036a5780634f6ccce71461037d5780635e6ffac7146103905780636352211e1461039857610277565b80630db52e401161024a57806318160ddd1161022f57806318160ddd1461032f57806323b872dd146103445780632f745c591461035757610277565b80630db52e40146102ef57806317ca1b961461030f57610277565b806301ffc9a71461027c57806306fdde03146102a5578063081812fc146102ba578063095ea7b3146102da575b600080fd5b61028f61028a366004612a51565b610542565b60405161029c9190612f51565b60405180910390f35b6102ad610588565b60405161029c9190612f88565b6102cd6102c8366004612b96565b61061a565b60405161029c9190612df1565b6102ed6102e8366004612a0e565b610666565b005b6103026102fd366004612b96565b6106fe565b60405161029c9190612e8e565b61032261031d366004612b96565b6108f7565b60405161029c9190612f24565b61033761098e565b60405161029c9190613bc0565b6102ed610352366004612931565b610994565b610337610365366004612a0e565b6109cc565b6102ed610378366004612931565b610a1e565b61033761038b366004612b96565b610a39565b6102ad610a94565b6102cd6103a6366004612b96565b610b22565b6103376103b93660046128de565b610b57565b6102ed610b9b565b610337610be6565b6103026103dc366004612b96565b610bec565b6102ed6103ef366004612a89565b610dda565b610337610f3e565b6102cd610f44565b6102ed610412366004612ae3565b610f53565b6102ad610fa9565b6102ed61042d3660046129e5565b610fb8565b610337611086565b61033761108c565b6102ed61045036600461296c565b611092565b6102ad610463366004612b96565b6110d1565b6102ad610476366004612b96565b6110ea565b6102ed610489366004612bae565b61114d565b61028f611236565b6104a96104a4366004612b96565b61123f565b60405161029c9190612f7a565b61028f6104c43660046128ff565b6112be565b6102ed6104d7366004612b29565b6112ec565b6102ed6104ea3660046128de565b6117a1565b6102ed6104fd366004612a37565b611812565b610515610510366004612b96565b611864565b60405161029c9190612eee565b610535610530366004612b96565b6118fe565b60405161029c9190612e41565b60006001600160e01b031982167f780e9d63000000000000000000000000000000000000000000000000000000001480610580575061058082611aa9565b90505b919050565b60606000805461059790613ee6565b80601f01602080910402602001604051908101604052809291908181526020018280546105c390613ee6565b80156106105780601f106105e557610100808354040283529160200191610610565b820191906000526020600020905b8154815290600101906020018083116105f357829003601f168201915b5050505050905090565b600061062582611b1b565b61064a5760405162461bcd60e51b81526004016106419061360b565b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b600061067182610b22565b9050806001600160a01b0316836001600160a01b031614156106a55760405162461bcd60e51b81526004016106419061377d565b806001600160a01b03166106b7611b38565b6001600160a01b031614806106d357506106d3816104c4611b38565b6106ef5760405162461bcd60e51b81526004016106419061347d565b6106f98383611b3c565b505050565b60608161070a81611b1b565b6107265760405162461bcd60e51b8152600401610641906130d4565b6000838152601f6020526040812060030154908167ffffffffffffffff81111561076057634e487b7160e01b600052604160045260246000fd5b60405190808252806020026020018201604052801561079357816020015b606081526020019060019003908161077e5790505b50905060005b828110156108ec576000868152601f602052604081206003018054601a9190849081106107d657634e487b7160e01b600052603260045260246000fd5b90600052602060002090602091828204019190069054906101000a900460ff1660ff168154811061081757634e487b7160e01b600052603260045260246000fd5b90600052602060002001805461082c90613ee6565b80601f016020809104026020016040519081016040528092919081815260200182805461085890613ee6565b80156108a55780601f1061087a576101008083540402835291602001916108a5565b820191906000526020600020905b81548152906001019060200180831161088857829003601f168201915b50505050509050808383815181106108cd57634e487b7160e01b600052603260045260246000fd5b60200260200101819052505080806108e490613f3d565b915050610799565b509250505b50919050565b6108ff612684565b8161090981611b1b565b6109255760405162461bcd60e51b8152600401610641906130d4565b6000838152601f6020526040808220815160a08101928390529290916005918390855b82829054906101000a900462ffffff1662ffffff168152602001906003019060208260020104928301926001038202915080841161094857509498975050505050505050565b60085490565b6109a561099f611b38565b82611bb7565b6109c15760405162461bcd60e51b815260040161064190613848565b6106f9838383611c3c565b60006109d783610b57565b82106109f55760405162461bcd60e51b815260040161064190613077565b506001600160a01b03919091166000908152600660209081526040808320938352929052205490565b6106f983838360405180602001604052806000815250611092565b6000610a4361098e565b8210610a615760405162461bcd60e51b8152600401610641906138dc565b60088281548110610a8257634e487b7160e01b600052603260045260246000fd5b90600052602060002001549050919050565b600c8054610aa190613ee6565b80601f0160208091040260200160405190810160405280929190818152602001828054610acd90613ee6565b8015610b1a5780601f10610aef57610100808354040283529160200191610b1a565b820191906000526020600020905b815481529060010190602001808311610afd57829003601f168201915b505050505081565b6000818152600260205260408120546001600160a01b0316806105805760405162461bcd60e51b815260040161064190613537565b60006001600160a01b038216610b7f5760405162461bcd60e51b8152600401610641906134da565b506001600160a01b031660009081526003602052604090205490565b610ba3611b38565b6001600160a01b0316610bb4610f44565b6001600160a01b031614610bda5760405162461bcd60e51b81526004016106419061368e565b610be46000611d76565b565b60155481565b606081610bf881611b1b565b610c145760405162461bcd60e51b8152600401610641906130d4565b6000838152601f6020526040812060040154908167ffffffffffffffff811115610c4e57634e487b7160e01b600052604160045260246000fd5b604051908082528060200260200182016040528015610c8157816020015b6060815260200190600190039081610c6c5790505b50905060005b828110156108ec576000868152601f602052604081206004018054601b919084908110610cc457634e487b7160e01b600052603260045260246000fd5b90600052602060002090602091828204019190069054906101000a900460ff1660ff1681548110610d0557634e487b7160e01b600052603260045260246000fd5b906000526020600020018054610d1a90613ee6565b80601f0160208091040260200160405190810160405280929190818152602001828054610d4690613ee6565b8015610d935780601f10610d6857610100808354040283529160200191610d93565b820191906000526020600020905b815481529060010190602001808311610d7657829003601f168201915b5050505050905080838381518110610dbb57634e487b7160e01b600052603260045260246000fd5b6020026020010181905250508080610dd290613f3d565b915050610c87565b610e47610de5611b38565b604051602001610df59190612df1565b6040516020818303038152906040528051906020012083838080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250611dd592505050565b610e635760405162461bcd60e51b815260040161064190613657565b600d5460ff1615610e865760405162461bcd60e51b815260040161064190612fd2565b60175460155410610ea95760405162461bcd60e51b815260040161064190613324565b60186000610eb5611b38565b6001600160a01b0316815260208101919091526040016000205460ff1615610eef5760405162461bcd60e51b815260040161064190613a4c565b60158054906000610eff83613f3d565b9190505550600160186000610f12611b38565b6001600160a01b031681526020810191909152604001600020805460ff19169115159190911790555050565b60165481565b600a546001600160a01b031690565b610f5b611b38565b6001600160a01b0316610f6c610f44565b6001600160a01b031614610f925760405162461bcd60e51b81526004016106419061368e565b8051610fa590600c9060208401906126a2565b5050565b60606001805461059790613ee6565b610fc0611b38565b6001600160a01b0316826001600160a01b03161415610ff15760405162461bcd60e51b8152600401610641906133b8565b8060056000610ffe611b38565b6001600160a01b03908116825260208083019390935260409182016000908120918716808252919093529120805460ff191692151592909217909155611042611b38565b6001600160a01b03167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c318360405161107a9190612f51565b60405180910390a35050565b600e5481565b600f5481565b6110a361109d611b38565b83611bb7565b6110bf5760405162461bcd60e51b815260040161064190613848565b6110cb84848484611e0c565b50505050565b601d6020526000908152604090208054610aa190613ee6565b60606110f582611b1b565b6111115760405162461bcd60e51b815260040161064190613720565b600c601d6000848152602001908152602001600020604051602001611137929190612dab565b6040516020818303038152906040529050919050565b8261115781611b1b565b6111735760405162461bcd60e51b8152600401610641906130d4565b61117c84610b22565b6001600160a01b031661118d611b38565b6001600160a01b0316146111b35760405162461bcd60e51b8152600401610641906131fc565b601e83836040516111c5929190612d9b565b9081526020016040518091039020546000146111f35760405162461bcd60e51b8152600401610641906132c7565b6000848152601d6020526040902061120c908484612726565b5083601e8484604051611220929190612d9b565b9081526040519081900360200190205550505050565b600d5460ff1681565b60008161124b81611b1b565b6112675760405162461bcd60e51b8152600401610641906130d4565b61127083610b22565b6001600160a01b0316611281611b38565b6001600160a01b0316146112a75760405162461bcd60e51b8152600401610641906131fc565b50506000908152601c602052604090205460030b90565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b6002600b54141561130f5760405162461bcd60e51b815260040161064190613a15565b6002600b5560405161132990610df5908590602001613aa9565b6113455760405162461bcd60e51b815260040161064190613657565b8235158015906113585750600f54833511155b6113745760405162461bcd60e51b8152600401610641906139a7565b600d5460ff166113965760405162461bcd60e51b815260040161064190613009565b600f54600e54106113b95760405162461bcd60e51b815260040161064190613259565b60006113c86040850185613c55565b6113d790610220810190613bc9565b9050116113f65760405162461bcd60e51b8152600401610641906139de565b60006114056040850185613c55565b61141490610240810190613bc9565b9050116114335760405162461bcd60e51b815260040161064190613970565b60006114426060850185613c10565b9050116114615760405162461bcd60e51b8152600401610641906131c5565b611469610f44565b6001600160a01b031661147a611b38565b6001600160a01b0316146115b25760125460146000611497611b38565b6001600160a01b0316815260208101919091526040016000205461ffff16106114d25760405162461bcd60e51b815260040161064190613939565b600f546011546010546114e59190613d45565b600e546114f29190613d0e565b1061150f5760405162461bcd60e51b8152600401610641906137da565b601354421180611544575060186000611526611b38565b6001600160a01b0316815260208101919091526040016000205460ff165b806115915750600f5460165460155461155d9190613d45565b611568906002613d26565b6011546010546115789190613d45565b600e546115859190613d0e565b61158f9190613d0e565b105b6115ad5760405162461bcd60e51b8152600401610641906138a5565b6115d5565b601054601154106115d55760405162461bcd60e51b815260040161064190613811565b6115e26040840184613c55565b83356000908152601f602052604090206115fc8282613fb2565b5061160c90506060840184613c10565b84356000908152601d60205260409020611627929091612726565b508235601e6116396060860186613c10565b604051611647929190612d9b565b90815260200160405180910390208190555082602001602081019061166c9190612ac9565b83356000908152601c60205260408120805460039390930b63ffffffff1663ffffffff19909316929092179091556014906116a5611b38565b6001600160a01b0316815260208101919091526040016000908120805461ffff16916116d083613f1b565b91906101000a81548161ffff021916908361ffff16021790555050600e60008154809291906116fe90613f3d565b91905055506018600061170f611b38565b6001600160a01b0316815260208101919091526040016000205460ff1615611747576016805490600061174183613f3d565b91905055505b61174f610f44565b6001600160a01b0316611760611b38565b6001600160a01b03161415611785576011805490600061177f83613f3d565b91905055505b611797611790611b38565b8435611e3f565b50506001600b5550565b6117a9611b38565b6001600160a01b03166117ba610f44565b6001600160a01b0316146117e05760405162461bcd60e51b81526004016106419061368e565b6001600160a01b0381166118065760405162461bcd60e51b815260040161064190613168565b61180f81611d76565b50565b61181a611b38565b6001600160a01b031661182b610f44565b6001600160a01b0316146118515760405162461bcd60e51b81526004016106419061368e565b600d805460ff1916911515919091179055565b61186c61279a565b8161187681611b1b565b6118925760405162461bcd60e51b8152600401610641906130d4565b6000838152601f60205260408082208151610120810192839052926001909101916009918390855b82829054906101000a900461ffff1661ffff16815260200190600201906020826001010492830192600103820291508084116118ba57509498975050505050505050565b6119066127b9565b8161191081611b1b565b61192c5760405162461bcd60e51b8152600401610641906130d4565b6040805160808101825260006060820181815282528251602081810185528282528084019190915283519081018452818152928201929092526003915b828110156108ec576000868152601f6020526040812060199060020183600381106119a457634e487b7160e01b600052603260045260246000fd5b602091828204019190069054906101000a900460ff1660ff16815481106119db57634e487b7160e01b600052603260045260246000fd5b9060005260206000200180546119f090613ee6565b80601f0160208091040260200160405190810160405280929190818152602001828054611a1c90613ee6565b8015611a695780601f10611a3e57610100808354040283529160200191611a69565b820191906000526020600020905b815481529060010190602001808311611a4c57829003601f168201915b5050505050905080838360038110611a9157634e487b7160e01b600052603260045260246000fd5b60200201525080611aa181613f3d565b915050611969565b60006001600160e01b031982167f80ac58cd000000000000000000000000000000000000000000000000000000001480611b0c57506001600160e01b031982167f5b5e139f00000000000000000000000000000000000000000000000000000000145b80610580575061058082611e59565b6000908152600260205260409020546001600160a01b0316151590565b3390565b6000818152600460205260409020805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0384169081179091558190611b7e82610b22565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000611bc282611b1b565b611bde5760405162461bcd60e51b815260040161064190613431565b6000611be983610b22565b9050806001600160a01b0316846001600160a01b03161480611c245750836001600160a01b0316611c198461061a565b6001600160a01b0316145b80611c345750611c3481856112be565b949350505050565b826001600160a01b0316611c4f82610b22565b6001600160a01b031614611c755760405162461bcd60e51b8152600401610641906136c3565b6001600160a01b038216611c9b5760405162461bcd60e51b81526004016106419061335b565b611ca6838383611e8b565b611cb1600082611b3c565b6001600160a01b0383166000908152600360205260408120805460019290611cda908490613d45565b90915550506001600160a01b0382166000908152600360205260408120805460019290611d08908490613d0e565b9091555050600081815260026020526040808220805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b600a80546001600160a01b0383811673ffffffffffffffffffffffffffffffffffffffff19831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6000611ddf610f44565b6001600160a01b0316611dfb83611df586611f14565b90611f44565b6001600160a01b0316149392505050565b611e17848484611c3c565b611e2384848484611f68565b6110cb5760405162461bcd60e51b81526004016106419061310b565b610fa582826040518060200160405280600081525061209c565b6001600160e01b031981167f01ffc9a70000000000000000000000000000000000000000000000000000000014919050565b611e968383836106f9565b6001600160a01b038316611eb257611ead816120cf565b611ed5565b816001600160a01b0316836001600160a01b031614611ed557611ed58382612113565b6001600160a01b038216611ef157611eec816121b0565b6106f9565b826001600160a01b0316826001600160a01b0316146106f9576106f98282612289565b600081604051602001611f279190612dc0565b604051602081830303815290604052805190602001209050919050565b6000806000611f5385856122cd565b91509150611f608161233d565b509392505050565b6000611f7c846001600160a01b031661246a565b1561209157836001600160a01b031663150b7a02611f98611b38565b8786866040518563ffffffff1660e01b8152600401611fba9493929190612e05565b602060405180830381600087803b158015611fd457600080fd5b505af1925050508015612004575060408051601f3d908101601f1916820190925261200191810190612a6d565b60015b61205e573d808015612032576040519150601f19603f3d011682016040523d82523d6000602084013e612037565b606091505b5080516120565760405162461bcd60e51b81526004016106419061310b565b805181602001fd5b6001600160e01b0319167f150b7a0200000000000000000000000000000000000000000000000000000000149050611c34565b506001949350505050565b6120a68383612470565b6120b36000848484611f68565b6106f95760405162461bcd60e51b81526004016106419061310b565b600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b6000600161212084610b57565b61212a9190613d45565b60008381526007602052604090205490915080821461217d576001600160a01b03841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b5060009182526007602090815260408084208490556001600160a01b039094168352600681528383209183525290812055565b6008546000906121c290600190613d45565b600083815260096020526040812054600880549394509092849081106121f857634e487b7160e01b600052603260045260246000fd5b90600052602060002001549050806008838154811061222757634e487b7160e01b600052603260045260246000fd5b600091825260208083209091019290925582815260099091526040808220849055858252812055600880548061226d57634e487b7160e01b600052603160045260246000fd5b6001900381819060005260206000200160009055905550505050565b600061229483610b57565b6001600160a01b039093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b6000808251604114156123045760208301516040840151606085015160001a6122f88782858561255c565b94509450505050612336565b82516040141561232e576020830151604084015161232386838361263c565b935093505050612336565b506000905060025b9250929050565b600081600481111561235f57634e487b7160e01b600052602160045260246000fd5b141561236a5761180f565b600181600481111561238c57634e487b7160e01b600052602160045260246000fd5b14156123aa5760405162461bcd60e51b815260040161064190612f9b565b60028160048111156123cc57634e487b7160e01b600052602160045260246000fd5b14156123ea5760405162461bcd60e51b815260040161064190613040565b600381600481111561240c57634e487b7160e01b600052602160045260246000fd5b141561242a5760405162461bcd60e51b8152600401610641906133ef565b600481600481111561244c57634e487b7160e01b600052602160045260246000fd5b141561180f5760405162461bcd60e51b815260040161064190613594565b3b151590565b6001600160a01b0382166124965760405162461bcd60e51b8152600401610641906135d6565b61249f81611b1b565b156124bc5760405162461bcd60e51b815260040161064190613290565b6124c860008383611e8b565b6001600160a01b03821660009081526003602052604081208054600192906124f1908490613d0e565b9091555050600081815260026020526040808220805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08311156125935750600090506003612633565b8460ff16601b141580156125ab57508460ff16601c14155b156125bc5750600090506004612633565b6000600187878787604051600081526020016040526040516125e19493929190612f5c565b6020604051602081039080840390855afa158015612603573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b03811661262c57600060019250925050612633565b9150600090505b94509492505050565b6000807f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff831660ff84901c601b016126768782888561255c565b935093505050935093915050565b6040518060a001604052806005906020820280368337509192915050565b8280546126ae90613ee6565b90600052602060002090601f0160209004810192826126d05760008555612716565b82601f106126e957805160ff1916838001178555612716565b82800160010185558215612716579182015b828111156127165782518255916020019190600101906126fb565b506127229291506127e0565b5090565b82805461273290613ee6565b90600052602060002090601f0160209004810192826127545760008555612716565b82601f1061276d5782800160ff19823516178555612716565b82800160010185558215612716579182015b8281111561271657823582559160200191906001019061277f565b6040518061012001604052806009906020820280368337509192915050565b60405180606001604052806003905b60608152602001906001900390816127c85790505090565b5b8082111561272257600081556001016127e1565b600067ffffffffffffffff8084111561281057612810613f6e565b604051601f8501601f19168101602001828111828210171561283457612834613f6e565b60405284815291508183850186101561284c57600080fd5b8484602083013760006020868301015250509392505050565b80356001600160a01b038116811461058357600080fd5b8035801515811461058357600080fd5b60008083601f84011261289d578182fd5b50813567ffffffffffffffff8111156128b4578182fd5b60208301915083602082850101111561233657600080fd5b8035600381900b811461058357600080fd5b6000602082840312156128ef578081fd5b6128f882612865565b9392505050565b60008060408385031215612911578081fd5b61291a83612865565b915061292860208401612865565b90509250929050565b600080600060608486031215612945578081fd5b61294e84612865565b925061295c60208501612865565b9150604084013590509250925092565b60008060008060808587031215612981578081fd5b61298a85612865565b935061299860208601612865565b925060408501359150606085013567ffffffffffffffff8111156129ba578182fd5b8501601f810187136129ca578182fd5b6129d9878235602084016127f5565b91505092959194509250565b600080604083850312156129f7578182fd5b612a0083612865565b91506129286020840161287c565b60008060408385031215612a20578182fd5b612a2983612865565b946020939093013593505050565b600060208284031215612a48578081fd5b6128f88261287c565b600060208284031215612a62578081fd5b81356128f8816140a0565b600060208284031215612a7e578081fd5b81516128f8816140a0565b60008060208385031215612a9b578182fd5b823567ffffffffffffffff811115612ab1578283fd5b612abd8582860161288c565b90969095509350505050565b600060208284031215612ada578081fd5b6128f8826128cc565b600060208284031215612af4578081fd5b813567ffffffffffffffff811115612b0a578182fd5b8201601f81018413612b1a578182fd5b611c34848235602084016127f5565b600080600060408486031215612b3d578081fd5b833567ffffffffffffffff80821115612b54578283fd5b9085019060808288031215612b67578283fd5b90935060208501359080821115612b7c578283fd5b50612b898682870161288c565b9497909650939450505050565b600060208284031215612ba7578081fd5b5035919050565b600080600060408486031215612bc2578081fd5b83359250602084013567ffffffffffffffff811115612bdf578182fd5b612b898682870161288c565b8060005b60098110156110cb578135612c03816140b6565b61ffff1684526020938401939190910190600101612bef565b8060005b60038110156110cb578135612c34816140d7565b60ff1684526020938401939190910190600101612c20565b60008284526020808501945082825b85811015612c83578135612c6e816140d7565b60ff1687529582019590820190600101612c5b565b509495945050505050565b60008151808452815b81811015612cb357602081850181015186830182015201612c97565b81811115612cc45782602083870101525b50601f01601f19169290920160200192915050565b60008284528282602086013780602084860101526020601f19601f85011685010190509392505050565b805460009060028104600180831680612d1d57607f831692505b6020808410821415612d3d57634e487b7160e01b86526022600452602486fd5b818015612d515760018114612d6257612d8f565b60ff19861689528489019650612d8f565b612d6b88613c75565b60005b86811015612d875781548b820152908501908301612d6e565b505084890196505b50505050505092915050565b6000828483379101908152919050565b6000611c34612dba8386612d03565b84612d03565b7f19457468657265756d205369676e6564204d6573736167653a0a3332000000008152601c810191909152603c0190565b6001600160a01b0391909116815260200190565b60006001600160a01b03808716835280861660208401525083604083015260806060830152612e376080830184612c8e565b9695505050505050565b60208082526000906080830183820185845b6003811015612e8257601f19878503018352612e70848351612c8e565b93509184019190840190600101612e53565b50919695505050505050565b6000602080830181845280855180835260408601915060408482028701019250838701855b82811015612ee157603f19888603018452612ecf858351612c8e565b94509285019290850190600101612eb3565b5092979650505050505050565b6101208101818360005b6009811015612f1b57815161ffff16835260209283019290910190600101612ef8565b50505092915050565b60a08101818360005b6005811015612f1b57815162ffffff16835260209283019290910190600101612f2d565b901515815260200190565b93845260ff9290921660208401526040830152606082015260800190565b60039190910b815260200190565b6000602082526128f86020830184612c8e565b60208082526018908201527f45434453413a20696e76616c6964207369676e61747572650000000000000000604082015260600190565b6020808252601a908201527f57686974656c697374206973206e6f7420617661696c61626c65000000000000604082015260600190565b60208082526013908201527f4d696e74696e6720756e617661696c61626c6500000000000000000000000000604082015260600190565b6020808252601f908201527f45434453413a20696e76616c6964207369676e6174757265206c656e67746800604082015260600190565b6020808252602b908201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560408201527f74206f6620626f756e6473000000000000000000000000000000000000000000606082015260800190565b6020808252601a908201527f5468697320746f6b656e20646f6573206e6f742065786973742e000000000000604082015260600190565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527f63656976657220696d706c656d656e7465720000000000000000000000000000606082015260800190565b60208082526026908201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160408201527f6464726573730000000000000000000000000000000000000000000000000000606082015260800190565b60208082526007908201527f4e6f206970667300000000000000000000000000000000000000000000000000604082015260600190565b60208082526024908201527f596f7520617265206e6f7420746865206f776e6572206f66207468697320746f60408201527f6b656e2e00000000000000000000000000000000000000000000000000000000606082015260800190565b60208082526011908201527f416c6c20746f6b656e73206d696e746564000000000000000000000000000000604082015260600190565b6020808252601c908201527f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000604082015260600190565b60208082526029908201527f54686973204950465320686173682068617320616c7265616479206265656e2060408201527f61737369676e65642e0000000000000000000000000000000000000000000000606082015260800190565b60208082526011908201527f57686974656c6973742069732066756c6c000000000000000000000000000000604082015260600190565b60208082526024908201527f4552433732313a207472616e7366657220746f20746865207a65726f2061646460408201527f7265737300000000000000000000000000000000000000000000000000000000606082015260800190565b60208082526019908201527f4552433732313a20617070726f766520746f2063616c6c657200000000000000604082015260600190565b60208082526022908201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604082015261756560f01b606082015260800190565b6020808252602c908201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860408201526b34b9ba32b73a103a37b5b2b760a11b606082015260800190565b60208082526038908201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760408201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000606082015260800190565b6020808252602a908201527f4552433732313a2062616c616e636520717565727920666f7220746865207a6560408201527f726f206164647265737300000000000000000000000000000000000000000000606082015260800190565b60208082526029908201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460408201527f656e7420746f6b656e0000000000000000000000000000000000000000000000606082015260800190565b60208082526022908201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604082015261756560f01b606082015260800190565b6020808252818101527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373604082015260600190565b6020808252602c908201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860408201526b34b9ba32b73a103a37b5b2b760a11b606082015260800190565b60208082526011908201527f496e76616c6964205369676e6174757265000000000000000000000000000000604082015260600190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526029908201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960408201527f73206e6f74206f776e0000000000000000000000000000000000000000000000606082015260800190565b6020808252602f908201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60408201527f6e6578697374656e7420746f6b656e0000000000000000000000000000000000606082015260800190565b60208082526021908201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560408201527f7200000000000000000000000000000000000000000000000000000000000000606082015260800190565b60208082526017908201527f417661696c61626c6520746f6b656e73206d696e746564000000000000000000604082015260600190565b60208082526010908201527f4f776e6572206d696e74206c696d697400000000000000000000000000000000604082015260600190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60408201527f776e6572206e6f7220617070726f766564000000000000000000000000000000606082015260800190565b6020808252601f908201527f4f6e6c792077686974656c69737420746f6b656e7320617661696c61626c6500604082015260600190565b6020808252602c908201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60408201527f7574206f6620626f756e64730000000000000000000000000000000000000000606082015260800190565b60208082526015908201527f596f752063616e6e6f74206d696e74206d6f72652e0000000000000000000000604082015260600190565b6020808252600b908201527f4e6f206665617475726573000000000000000000000000000000000000000000604082015260600190565b60208082526011908201527f496e76616c696420746f6b656e2069642e000000000000000000000000000000604082015260600190565b60208082526009908201527f4e6f2062696f6d65730000000000000000000000000000000000000000000000604082015260600190565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b60208082526023908201527f596f7572206164647265737320697320616c72656164792077686974656c697360408201527f7465640000000000000000000000000000000000000000000000000000000000606082015260800190565b6000602080835260a08301843582850152613ac58286016128cc565b60030b6040850152604085013561025e19863603018112613ae4578384fd5b608060608601528501908190845b6005811015613b1d578335613b06816140c6565b62ffffff1682529284019290840190600101613af2565b5050613b30610140860160a08301612beb565b6102609250613b458386016101c08301612c1c565b613b53610220820182613c81565b9250836102c0870152613b6b61030087018483612c4c565b935050613b7c610240820182613c81565b868503609f19016102e088015292509050613b98838383612c4c565b92505050613ba96060850185613cc9565b848303601f19016080860152612e37838284612cd9565b90815260200190565b6000808335601e19843603018112613bdf578283fd5b83018035915067ffffffffffffffff821115613bf9578283fd5b602090810192508102360382131561233657600080fd5b6000808335601e19843603018112613c26578283fd5b83018035915067ffffffffffffffff821115613c40578283fd5b60200191503681900382131561233657600080fd5b6000823561025e19833603018112613c6b578182fd5b9190910192915050565b60009081526020902090565b6000808335601e19843603018112613c97578283fd5b830160208101925035905067ffffffffffffffff811115613cb757600080fd5b60208102360383131561233657600080fd5b6000808335601e19843603018112613cdf578283fd5b830160208101925035905067ffffffffffffffff811115613cff57600080fd5b80360383131561233657600080fd5b60008219821115613d2157613d21613f58565b500190565b6000816000190483118215151615613d4057613d40613f58565b500290565b600082821015613d5757613d57613f58565b500390565b5b81811015610fa55760008155600101613d5d565b81816000805b6009811015613dcf578335613d8b816140b6565b835461ffff6008850281811b801990931693909116901b1617835560209390930192600290910190601e821115613dc757600091506001830192505b600101613d77565b505050505050565b81816000805b6003811015613dcf578335613df1816140d7565b613dfc81848661407f565b5060208401935060018083019250601f831115613e1c5792830192600092505b50600101613ddd565b68010000000000000000831115613e3e57613e3e613f6e565b805483825580841015613e8b578160005260206000206020601f8601048101601f86168015613e7557613e75816000198401613f84565b50613e886020601f850104830182613d5c565b50505b5081613e9682613c75565b6000805b86811015613edd57613eb5613eae85613fa5565b838561407f565b60208401935060018083019250601f831115613ed45792830192600092505b50600101613e9a565b50505050505050565b600281046001821680613efa57607f821691505b602082108114156108f157634e487b7160e01b600052602260045260246000fd5b600061ffff80831681811415613f3357613f33613f58565b6001019392505050565b6000600019821415613f5157613f51613f58565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052604160045260246000fd5b8054600019836020036008021c1681555050565b60008135610580816140c6565b60008135610580816140d7565b81816000805b6005811015613ffc57613fd4613fcd85613f98565b838561405b565b602084019350600382019150601d821115613ff457600091506001830192505b600101613fb8565b5050505061401060a0830160018301613d71565b6140216101c0830160028301613dd7565b61402f610220830183613bc9565b61403d818360038601613e25565b505061404d610240830183613bc9565b6110cb818360048601613e25565b62ffffff81546008840282811b80848816831b168119841617855550505050505050565b80546008830260ff811b8060ff8716831b1681198416178455505050505050565b6001600160e01b03198116811461180f57600080fd5b61ffff8116811461180f57600080fd5b62ffffff8116811461180f57600080fd5b60ff8116811461180f57600080fdfea26469706673582212204a21114de7bbec8853dd148a28c8bb780ddcc90f89f817e76a93d3a2dac26d6964736f6c634300080000330000000000000000000000000000000000000000000000000000000000002710000000000000000000000000000000000000000000000000000000000000006400000000000000000000000000000000000000000000000000000000615fec340000000000000000000000000000000000000000000000000000000000000fa00000000000000000000000000000000000000000000000000000000000000002

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106102775760003560e01c80638088fefc11610160578063c87b56dd116100d8578063ea9772361161008c578063f46a04eb11610071578063f46a04eb146104ef578063f8fe1cb914610502578063fc8db5361461052257610277565b8063ea977236146104c9578063f2fde38b146104dc57610277565b8063d1239730116100bd578063d12397301461048e578063e0d4ea3714610496578063e985e9c5146104b657610277565b8063c87b56dd14610468578063ceac65061461047b57610277565b8063a22cb4651161012f578063af57103711610114578063af5710371461043a578063b88d4fde14610442578063c398c2ad1461045557610277565b8063a22cb4651461041f578063a2309ff81461043257610277565b80638088fefc146103f45780638da5cb5b146103fc57806390454a041461040457806395d89b411461041757610277565b806342842e0e116101f357806370a08231116101c2578063740735c0116101a7578063740735c0146103c657806374542f6f146103ce578063748f1357146103e157610277565b806370a08231146103ab578063715018a6146103be57610277565b806342842e0e1461036a5780634f6ccce71461037d5780635e6ffac7146103905780636352211e1461039857610277565b80630db52e401161024a57806318160ddd1161022f57806318160ddd1461032f57806323b872dd146103445780632f745c591461035757610277565b80630db52e40146102ef57806317ca1b961461030f57610277565b806301ffc9a71461027c57806306fdde03146102a5578063081812fc146102ba578063095ea7b3146102da575b600080fd5b61028f61028a366004612a51565b610542565b60405161029c9190612f51565b60405180910390f35b6102ad610588565b60405161029c9190612f88565b6102cd6102c8366004612b96565b61061a565b60405161029c9190612df1565b6102ed6102e8366004612a0e565b610666565b005b6103026102fd366004612b96565b6106fe565b60405161029c9190612e8e565b61032261031d366004612b96565b6108f7565b60405161029c9190612f24565b61033761098e565b60405161029c9190613bc0565b6102ed610352366004612931565b610994565b610337610365366004612a0e565b6109cc565b6102ed610378366004612931565b610a1e565b61033761038b366004612b96565b610a39565b6102ad610a94565b6102cd6103a6366004612b96565b610b22565b6103376103b93660046128de565b610b57565b6102ed610b9b565b610337610be6565b6103026103dc366004612b96565b610bec565b6102ed6103ef366004612a89565b610dda565b610337610f3e565b6102cd610f44565b6102ed610412366004612ae3565b610f53565b6102ad610fa9565b6102ed61042d3660046129e5565b610fb8565b610337611086565b61033761108c565b6102ed61045036600461296c565b611092565b6102ad610463366004612b96565b6110d1565b6102ad610476366004612b96565b6110ea565b6102ed610489366004612bae565b61114d565b61028f611236565b6104a96104a4366004612b96565b61123f565b60405161029c9190612f7a565b61028f6104c43660046128ff565b6112be565b6102ed6104d7366004612b29565b6112ec565b6102ed6104ea3660046128de565b6117a1565b6102ed6104fd366004612a37565b611812565b610515610510366004612b96565b611864565b60405161029c9190612eee565b610535610530366004612b96565b6118fe565b60405161029c9190612e41565b60006001600160e01b031982167f780e9d63000000000000000000000000000000000000000000000000000000001480610580575061058082611aa9565b90505b919050565b60606000805461059790613ee6565b80601f01602080910402602001604051908101604052809291908181526020018280546105c390613ee6565b80156106105780601f106105e557610100808354040283529160200191610610565b820191906000526020600020905b8154815290600101906020018083116105f357829003601f168201915b5050505050905090565b600061062582611b1b565b61064a5760405162461bcd60e51b81526004016106419061360b565b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b600061067182610b22565b9050806001600160a01b0316836001600160a01b031614156106a55760405162461bcd60e51b81526004016106419061377d565b806001600160a01b03166106b7611b38565b6001600160a01b031614806106d357506106d3816104c4611b38565b6106ef5760405162461bcd60e51b81526004016106419061347d565b6106f98383611b3c565b505050565b60608161070a81611b1b565b6107265760405162461bcd60e51b8152600401610641906130d4565b6000838152601f6020526040812060030154908167ffffffffffffffff81111561076057634e487b7160e01b600052604160045260246000fd5b60405190808252806020026020018201604052801561079357816020015b606081526020019060019003908161077e5790505b50905060005b828110156108ec576000868152601f602052604081206003018054601a9190849081106107d657634e487b7160e01b600052603260045260246000fd5b90600052602060002090602091828204019190069054906101000a900460ff1660ff168154811061081757634e487b7160e01b600052603260045260246000fd5b90600052602060002001805461082c90613ee6565b80601f016020809104026020016040519081016040528092919081815260200182805461085890613ee6565b80156108a55780601f1061087a576101008083540402835291602001916108a5565b820191906000526020600020905b81548152906001019060200180831161088857829003601f168201915b50505050509050808383815181106108cd57634e487b7160e01b600052603260045260246000fd5b60200260200101819052505080806108e490613f3d565b915050610799565b509250505b50919050565b6108ff612684565b8161090981611b1b565b6109255760405162461bcd60e51b8152600401610641906130d4565b6000838152601f6020526040808220815160a08101928390529290916005918390855b82829054906101000a900462ffffff1662ffffff168152602001906003019060208260020104928301926001038202915080841161094857509498975050505050505050565b60085490565b6109a561099f611b38565b82611bb7565b6109c15760405162461bcd60e51b815260040161064190613848565b6106f9838383611c3c565b60006109d783610b57565b82106109f55760405162461bcd60e51b815260040161064190613077565b506001600160a01b03919091166000908152600660209081526040808320938352929052205490565b6106f983838360405180602001604052806000815250611092565b6000610a4361098e565b8210610a615760405162461bcd60e51b8152600401610641906138dc565b60088281548110610a8257634e487b7160e01b600052603260045260246000fd5b90600052602060002001549050919050565b600c8054610aa190613ee6565b80601f0160208091040260200160405190810160405280929190818152602001828054610acd90613ee6565b8015610b1a5780601f10610aef57610100808354040283529160200191610b1a565b820191906000526020600020905b815481529060010190602001808311610afd57829003601f168201915b505050505081565b6000818152600260205260408120546001600160a01b0316806105805760405162461bcd60e51b815260040161064190613537565b60006001600160a01b038216610b7f5760405162461bcd60e51b8152600401610641906134da565b506001600160a01b031660009081526003602052604090205490565b610ba3611b38565b6001600160a01b0316610bb4610f44565b6001600160a01b031614610bda5760405162461bcd60e51b81526004016106419061368e565b610be46000611d76565b565b60155481565b606081610bf881611b1b565b610c145760405162461bcd60e51b8152600401610641906130d4565b6000838152601f6020526040812060040154908167ffffffffffffffff811115610c4e57634e487b7160e01b600052604160045260246000fd5b604051908082528060200260200182016040528015610c8157816020015b6060815260200190600190039081610c6c5790505b50905060005b828110156108ec576000868152601f602052604081206004018054601b919084908110610cc457634e487b7160e01b600052603260045260246000fd5b90600052602060002090602091828204019190069054906101000a900460ff1660ff1681548110610d0557634e487b7160e01b600052603260045260246000fd5b906000526020600020018054610d1a90613ee6565b80601f0160208091040260200160405190810160405280929190818152602001828054610d4690613ee6565b8015610d935780601f10610d6857610100808354040283529160200191610d93565b820191906000526020600020905b815481529060010190602001808311610d7657829003601f168201915b5050505050905080838381518110610dbb57634e487b7160e01b600052603260045260246000fd5b6020026020010181905250508080610dd290613f3d565b915050610c87565b610e47610de5611b38565b604051602001610df59190612df1565b6040516020818303038152906040528051906020012083838080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250611dd592505050565b610e635760405162461bcd60e51b815260040161064190613657565b600d5460ff1615610e865760405162461bcd60e51b815260040161064190612fd2565b60175460155410610ea95760405162461bcd60e51b815260040161064190613324565b60186000610eb5611b38565b6001600160a01b0316815260208101919091526040016000205460ff1615610eef5760405162461bcd60e51b815260040161064190613a4c565b60158054906000610eff83613f3d565b9190505550600160186000610f12611b38565b6001600160a01b031681526020810191909152604001600020805460ff19169115159190911790555050565b60165481565b600a546001600160a01b031690565b610f5b611b38565b6001600160a01b0316610f6c610f44565b6001600160a01b031614610f925760405162461bcd60e51b81526004016106419061368e565b8051610fa590600c9060208401906126a2565b5050565b60606001805461059790613ee6565b610fc0611b38565b6001600160a01b0316826001600160a01b03161415610ff15760405162461bcd60e51b8152600401610641906133b8565b8060056000610ffe611b38565b6001600160a01b03908116825260208083019390935260409182016000908120918716808252919093529120805460ff191692151592909217909155611042611b38565b6001600160a01b03167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c318360405161107a9190612f51565b60405180910390a35050565b600e5481565b600f5481565b6110a361109d611b38565b83611bb7565b6110bf5760405162461bcd60e51b815260040161064190613848565b6110cb84848484611e0c565b50505050565b601d6020526000908152604090208054610aa190613ee6565b60606110f582611b1b565b6111115760405162461bcd60e51b815260040161064190613720565b600c601d6000848152602001908152602001600020604051602001611137929190612dab565b6040516020818303038152906040529050919050565b8261115781611b1b565b6111735760405162461bcd60e51b8152600401610641906130d4565b61117c84610b22565b6001600160a01b031661118d611b38565b6001600160a01b0316146111b35760405162461bcd60e51b8152600401610641906131fc565b601e83836040516111c5929190612d9b565b9081526020016040518091039020546000146111f35760405162461bcd60e51b8152600401610641906132c7565b6000848152601d6020526040902061120c908484612726565b5083601e8484604051611220929190612d9b565b9081526040519081900360200190205550505050565b600d5460ff1681565b60008161124b81611b1b565b6112675760405162461bcd60e51b8152600401610641906130d4565b61127083610b22565b6001600160a01b0316611281611b38565b6001600160a01b0316146112a75760405162461bcd60e51b8152600401610641906131fc565b50506000908152601c602052604090205460030b90565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b6002600b54141561130f5760405162461bcd60e51b815260040161064190613a15565b6002600b5560405161132990610df5908590602001613aa9565b6113455760405162461bcd60e51b815260040161064190613657565b8235158015906113585750600f54833511155b6113745760405162461bcd60e51b8152600401610641906139a7565b600d5460ff166113965760405162461bcd60e51b815260040161064190613009565b600f54600e54106113b95760405162461bcd60e51b815260040161064190613259565b60006113c86040850185613c55565b6113d790610220810190613bc9565b9050116113f65760405162461bcd60e51b8152600401610641906139de565b60006114056040850185613c55565b61141490610240810190613bc9565b9050116114335760405162461bcd60e51b815260040161064190613970565b60006114426060850185613c10565b9050116114615760405162461bcd60e51b8152600401610641906131c5565b611469610f44565b6001600160a01b031661147a611b38565b6001600160a01b0316146115b25760125460146000611497611b38565b6001600160a01b0316815260208101919091526040016000205461ffff16106114d25760405162461bcd60e51b815260040161064190613939565b600f546011546010546114e59190613d45565b600e546114f29190613d0e565b1061150f5760405162461bcd60e51b8152600401610641906137da565b601354421180611544575060186000611526611b38565b6001600160a01b0316815260208101919091526040016000205460ff165b806115915750600f5460165460155461155d9190613d45565b611568906002613d26565b6011546010546115789190613d45565b600e546115859190613d0e565b61158f9190613d0e565b105b6115ad5760405162461bcd60e51b8152600401610641906138a5565b6115d5565b601054601154106115d55760405162461bcd60e51b815260040161064190613811565b6115e26040840184613c55565b83356000908152601f602052604090206115fc8282613fb2565b5061160c90506060840184613c10565b84356000908152601d60205260409020611627929091612726565b508235601e6116396060860186613c10565b604051611647929190612d9b565b90815260200160405180910390208190555082602001602081019061166c9190612ac9565b83356000908152601c60205260408120805460039390930b63ffffffff1663ffffffff19909316929092179091556014906116a5611b38565b6001600160a01b0316815260208101919091526040016000908120805461ffff16916116d083613f1b565b91906101000a81548161ffff021916908361ffff16021790555050600e60008154809291906116fe90613f3d565b91905055506018600061170f611b38565b6001600160a01b0316815260208101919091526040016000205460ff1615611747576016805490600061174183613f3d565b91905055505b61174f610f44565b6001600160a01b0316611760611b38565b6001600160a01b03161415611785576011805490600061177f83613f3d565b91905055505b611797611790611b38565b8435611e3f565b50506001600b5550565b6117a9611b38565b6001600160a01b03166117ba610f44565b6001600160a01b0316146117e05760405162461bcd60e51b81526004016106419061368e565b6001600160a01b0381166118065760405162461bcd60e51b815260040161064190613168565b61180f81611d76565b50565b61181a611b38565b6001600160a01b031661182b610f44565b6001600160a01b0316146118515760405162461bcd60e51b81526004016106419061368e565b600d805460ff1916911515919091179055565b61186c61279a565b8161187681611b1b565b6118925760405162461bcd60e51b8152600401610641906130d4565b6000838152601f60205260408082208151610120810192839052926001909101916009918390855b82829054906101000a900461ffff1661ffff16815260200190600201906020826001010492830192600103820291508084116118ba57509498975050505050505050565b6119066127b9565b8161191081611b1b565b61192c5760405162461bcd60e51b8152600401610641906130d4565b6040805160808101825260006060820181815282528251602081810185528282528084019190915283519081018452818152928201929092526003915b828110156108ec576000868152601f6020526040812060199060020183600381106119a457634e487b7160e01b600052603260045260246000fd5b602091828204019190069054906101000a900460ff1660ff16815481106119db57634e487b7160e01b600052603260045260246000fd5b9060005260206000200180546119f090613ee6565b80601f0160208091040260200160405190810160405280929190818152602001828054611a1c90613ee6565b8015611a695780601f10611a3e57610100808354040283529160200191611a69565b820191906000526020600020905b815481529060010190602001808311611a4c57829003601f168201915b5050505050905080838360038110611a9157634e487b7160e01b600052603260045260246000fd5b60200201525080611aa181613f3d565b915050611969565b60006001600160e01b031982167f80ac58cd000000000000000000000000000000000000000000000000000000001480611b0c57506001600160e01b031982167f5b5e139f00000000000000000000000000000000000000000000000000000000145b80610580575061058082611e59565b6000908152600260205260409020546001600160a01b0316151590565b3390565b6000818152600460205260409020805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0384169081179091558190611b7e82610b22565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000611bc282611b1b565b611bde5760405162461bcd60e51b815260040161064190613431565b6000611be983610b22565b9050806001600160a01b0316846001600160a01b03161480611c245750836001600160a01b0316611c198461061a565b6001600160a01b0316145b80611c345750611c3481856112be565b949350505050565b826001600160a01b0316611c4f82610b22565b6001600160a01b031614611c755760405162461bcd60e51b8152600401610641906136c3565b6001600160a01b038216611c9b5760405162461bcd60e51b81526004016106419061335b565b611ca6838383611e8b565b611cb1600082611b3c565b6001600160a01b0383166000908152600360205260408120805460019290611cda908490613d45565b90915550506001600160a01b0382166000908152600360205260408120805460019290611d08908490613d0e565b9091555050600081815260026020526040808220805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b600a80546001600160a01b0383811673ffffffffffffffffffffffffffffffffffffffff19831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6000611ddf610f44565b6001600160a01b0316611dfb83611df586611f14565b90611f44565b6001600160a01b0316149392505050565b611e17848484611c3c565b611e2384848484611f68565b6110cb5760405162461bcd60e51b81526004016106419061310b565b610fa582826040518060200160405280600081525061209c565b6001600160e01b031981167f01ffc9a70000000000000000000000000000000000000000000000000000000014919050565b611e968383836106f9565b6001600160a01b038316611eb257611ead816120cf565b611ed5565b816001600160a01b0316836001600160a01b031614611ed557611ed58382612113565b6001600160a01b038216611ef157611eec816121b0565b6106f9565b826001600160a01b0316826001600160a01b0316146106f9576106f98282612289565b600081604051602001611f279190612dc0565b604051602081830303815290604052805190602001209050919050565b6000806000611f5385856122cd565b91509150611f608161233d565b509392505050565b6000611f7c846001600160a01b031661246a565b1561209157836001600160a01b031663150b7a02611f98611b38565b8786866040518563ffffffff1660e01b8152600401611fba9493929190612e05565b602060405180830381600087803b158015611fd457600080fd5b505af1925050508015612004575060408051601f3d908101601f1916820190925261200191810190612a6d565b60015b61205e573d808015612032576040519150601f19603f3d011682016040523d82523d6000602084013e612037565b606091505b5080516120565760405162461bcd60e51b81526004016106419061310b565b805181602001fd5b6001600160e01b0319167f150b7a0200000000000000000000000000000000000000000000000000000000149050611c34565b506001949350505050565b6120a68383612470565b6120b36000848484611f68565b6106f95760405162461bcd60e51b81526004016106419061310b565b600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b6000600161212084610b57565b61212a9190613d45565b60008381526007602052604090205490915080821461217d576001600160a01b03841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b5060009182526007602090815260408084208490556001600160a01b039094168352600681528383209183525290812055565b6008546000906121c290600190613d45565b600083815260096020526040812054600880549394509092849081106121f857634e487b7160e01b600052603260045260246000fd5b90600052602060002001549050806008838154811061222757634e487b7160e01b600052603260045260246000fd5b600091825260208083209091019290925582815260099091526040808220849055858252812055600880548061226d57634e487b7160e01b600052603160045260246000fd5b6001900381819060005260206000200160009055905550505050565b600061229483610b57565b6001600160a01b039093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b6000808251604114156123045760208301516040840151606085015160001a6122f88782858561255c565b94509450505050612336565b82516040141561232e576020830151604084015161232386838361263c565b935093505050612336565b506000905060025b9250929050565b600081600481111561235f57634e487b7160e01b600052602160045260246000fd5b141561236a5761180f565b600181600481111561238c57634e487b7160e01b600052602160045260246000fd5b14156123aa5760405162461bcd60e51b815260040161064190612f9b565b60028160048111156123cc57634e487b7160e01b600052602160045260246000fd5b14156123ea5760405162461bcd60e51b815260040161064190613040565b600381600481111561240c57634e487b7160e01b600052602160045260246000fd5b141561242a5760405162461bcd60e51b8152600401610641906133ef565b600481600481111561244c57634e487b7160e01b600052602160045260246000fd5b141561180f5760405162461bcd60e51b815260040161064190613594565b3b151590565b6001600160a01b0382166124965760405162461bcd60e51b8152600401610641906135d6565b61249f81611b1b565b156124bc5760405162461bcd60e51b815260040161064190613290565b6124c860008383611e8b565b6001600160a01b03821660009081526003602052604081208054600192906124f1908490613d0e565b9091555050600081815260026020526040808220805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08311156125935750600090506003612633565b8460ff16601b141580156125ab57508460ff16601c14155b156125bc5750600090506004612633565b6000600187878787604051600081526020016040526040516125e19493929190612f5c565b6020604051602081039080840390855afa158015612603573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b03811661262c57600060019250925050612633565b9150600090505b94509492505050565b6000807f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff831660ff84901c601b016126768782888561255c565b935093505050935093915050565b6040518060a001604052806005906020820280368337509192915050565b8280546126ae90613ee6565b90600052602060002090601f0160209004810192826126d05760008555612716565b82601f106126e957805160ff1916838001178555612716565b82800160010185558215612716579182015b828111156127165782518255916020019190600101906126fb565b506127229291506127e0565b5090565b82805461273290613ee6565b90600052602060002090601f0160209004810192826127545760008555612716565b82601f1061276d5782800160ff19823516178555612716565b82800160010185558215612716579182015b8281111561271657823582559160200191906001019061277f565b6040518061012001604052806009906020820280368337509192915050565b60405180606001604052806003905b60608152602001906001900390816127c85790505090565b5b8082111561272257600081556001016127e1565b600067ffffffffffffffff8084111561281057612810613f6e565b604051601f8501601f19168101602001828111828210171561283457612834613f6e565b60405284815291508183850186101561284c57600080fd5b8484602083013760006020868301015250509392505050565b80356001600160a01b038116811461058357600080fd5b8035801515811461058357600080fd5b60008083601f84011261289d578182fd5b50813567ffffffffffffffff8111156128b4578182fd5b60208301915083602082850101111561233657600080fd5b8035600381900b811461058357600080fd5b6000602082840312156128ef578081fd5b6128f882612865565b9392505050565b60008060408385031215612911578081fd5b61291a83612865565b915061292860208401612865565b90509250929050565b600080600060608486031215612945578081fd5b61294e84612865565b925061295c60208501612865565b9150604084013590509250925092565b60008060008060808587031215612981578081fd5b61298a85612865565b935061299860208601612865565b925060408501359150606085013567ffffffffffffffff8111156129ba578182fd5b8501601f810187136129ca578182fd5b6129d9878235602084016127f5565b91505092959194509250565b600080604083850312156129f7578182fd5b612a0083612865565b91506129286020840161287c565b60008060408385031215612a20578182fd5b612a2983612865565b946020939093013593505050565b600060208284031215612a48578081fd5b6128f88261287c565b600060208284031215612a62578081fd5b81356128f8816140a0565b600060208284031215612a7e578081fd5b81516128f8816140a0565b60008060208385031215612a9b578182fd5b823567ffffffffffffffff811115612ab1578283fd5b612abd8582860161288c565b90969095509350505050565b600060208284031215612ada578081fd5b6128f8826128cc565b600060208284031215612af4578081fd5b813567ffffffffffffffff811115612b0a578182fd5b8201601f81018413612b1a578182fd5b611c34848235602084016127f5565b600080600060408486031215612b3d578081fd5b833567ffffffffffffffff80821115612b54578283fd5b9085019060808288031215612b67578283fd5b90935060208501359080821115612b7c578283fd5b50612b898682870161288c565b9497909650939450505050565b600060208284031215612ba7578081fd5b5035919050565b600080600060408486031215612bc2578081fd5b83359250602084013567ffffffffffffffff811115612bdf578182fd5b612b898682870161288c565b8060005b60098110156110cb578135612c03816140b6565b61ffff1684526020938401939190910190600101612bef565b8060005b60038110156110cb578135612c34816140d7565b60ff1684526020938401939190910190600101612c20565b60008284526020808501945082825b85811015612c83578135612c6e816140d7565b60ff1687529582019590820190600101612c5b565b509495945050505050565b60008151808452815b81811015612cb357602081850181015186830182015201612c97565b81811115612cc45782602083870101525b50601f01601f19169290920160200192915050565b60008284528282602086013780602084860101526020601f19601f85011685010190509392505050565b805460009060028104600180831680612d1d57607f831692505b6020808410821415612d3d57634e487b7160e01b86526022600452602486fd5b818015612d515760018114612d6257612d8f565b60ff19861689528489019650612d8f565b612d6b88613c75565b60005b86811015612d875781548b820152908501908301612d6e565b505084890196505b50505050505092915050565b6000828483379101908152919050565b6000611c34612dba8386612d03565b84612d03565b7f19457468657265756d205369676e6564204d6573736167653a0a3332000000008152601c810191909152603c0190565b6001600160a01b0391909116815260200190565b60006001600160a01b03808716835280861660208401525083604083015260806060830152612e376080830184612c8e565b9695505050505050565b60208082526000906080830183820185845b6003811015612e8257601f19878503018352612e70848351612c8e565b93509184019190840190600101612e53565b50919695505050505050565b6000602080830181845280855180835260408601915060408482028701019250838701855b82811015612ee157603f19888603018452612ecf858351612c8e565b94509285019290850190600101612eb3565b5092979650505050505050565b6101208101818360005b6009811015612f1b57815161ffff16835260209283019290910190600101612ef8565b50505092915050565b60a08101818360005b6005811015612f1b57815162ffffff16835260209283019290910190600101612f2d565b901515815260200190565b93845260ff9290921660208401526040830152606082015260800190565b60039190910b815260200190565b6000602082526128f86020830184612c8e565b60208082526018908201527f45434453413a20696e76616c6964207369676e61747572650000000000000000604082015260600190565b6020808252601a908201527f57686974656c697374206973206e6f7420617661696c61626c65000000000000604082015260600190565b60208082526013908201527f4d696e74696e6720756e617661696c61626c6500000000000000000000000000604082015260600190565b6020808252601f908201527f45434453413a20696e76616c6964207369676e6174757265206c656e67746800604082015260600190565b6020808252602b908201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560408201527f74206f6620626f756e6473000000000000000000000000000000000000000000606082015260800190565b6020808252601a908201527f5468697320746f6b656e20646f6573206e6f742065786973742e000000000000604082015260600190565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527f63656976657220696d706c656d656e7465720000000000000000000000000000606082015260800190565b60208082526026908201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160408201527f6464726573730000000000000000000000000000000000000000000000000000606082015260800190565b60208082526007908201527f4e6f206970667300000000000000000000000000000000000000000000000000604082015260600190565b60208082526024908201527f596f7520617265206e6f7420746865206f776e6572206f66207468697320746f60408201527f6b656e2e00000000000000000000000000000000000000000000000000000000606082015260800190565b60208082526011908201527f416c6c20746f6b656e73206d696e746564000000000000000000000000000000604082015260600190565b6020808252601c908201527f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000604082015260600190565b60208082526029908201527f54686973204950465320686173682068617320616c7265616479206265656e2060408201527f61737369676e65642e0000000000000000000000000000000000000000000000606082015260800190565b60208082526011908201527f57686974656c6973742069732066756c6c000000000000000000000000000000604082015260600190565b60208082526024908201527f4552433732313a207472616e7366657220746f20746865207a65726f2061646460408201527f7265737300000000000000000000000000000000000000000000000000000000606082015260800190565b60208082526019908201527f4552433732313a20617070726f766520746f2063616c6c657200000000000000604082015260600190565b60208082526022908201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604082015261756560f01b606082015260800190565b6020808252602c908201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860408201526b34b9ba32b73a103a37b5b2b760a11b606082015260800190565b60208082526038908201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760408201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000606082015260800190565b6020808252602a908201527f4552433732313a2062616c616e636520717565727920666f7220746865207a6560408201527f726f206164647265737300000000000000000000000000000000000000000000606082015260800190565b60208082526029908201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460408201527f656e7420746f6b656e0000000000000000000000000000000000000000000000606082015260800190565b60208082526022908201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604082015261756560f01b606082015260800190565b6020808252818101527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373604082015260600190565b6020808252602c908201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860408201526b34b9ba32b73a103a37b5b2b760a11b606082015260800190565b60208082526011908201527f496e76616c6964205369676e6174757265000000000000000000000000000000604082015260600190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526029908201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960408201527f73206e6f74206f776e0000000000000000000000000000000000000000000000606082015260800190565b6020808252602f908201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60408201527f6e6578697374656e7420746f6b656e0000000000000000000000000000000000606082015260800190565b60208082526021908201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560408201527f7200000000000000000000000000000000000000000000000000000000000000606082015260800190565b60208082526017908201527f417661696c61626c6520746f6b656e73206d696e746564000000000000000000604082015260600190565b60208082526010908201527f4f776e6572206d696e74206c696d697400000000000000000000000000000000604082015260600190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60408201527f776e6572206e6f7220617070726f766564000000000000000000000000000000606082015260800190565b6020808252601f908201527f4f6e6c792077686974656c69737420746f6b656e7320617661696c61626c6500604082015260600190565b6020808252602c908201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60408201527f7574206f6620626f756e64730000000000000000000000000000000000000000606082015260800190565b60208082526015908201527f596f752063616e6e6f74206d696e74206d6f72652e0000000000000000000000604082015260600190565b6020808252600b908201527f4e6f206665617475726573000000000000000000000000000000000000000000604082015260600190565b60208082526011908201527f496e76616c696420746f6b656e2069642e000000000000000000000000000000604082015260600190565b60208082526009908201527f4e6f2062696f6d65730000000000000000000000000000000000000000000000604082015260600190565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b60208082526023908201527f596f7572206164647265737320697320616c72656164792077686974656c697360408201527f7465640000000000000000000000000000000000000000000000000000000000606082015260800190565b6000602080835260a08301843582850152613ac58286016128cc565b60030b6040850152604085013561025e19863603018112613ae4578384fd5b608060608601528501908190845b6005811015613b1d578335613b06816140c6565b62ffffff1682529284019290840190600101613af2565b5050613b30610140860160a08301612beb565b6102609250613b458386016101c08301612c1c565b613b53610220820182613c81565b9250836102c0870152613b6b61030087018483612c4c565b935050613b7c610240820182613c81565b868503609f19016102e088015292509050613b98838383612c4c565b92505050613ba96060850185613cc9565b848303601f19016080860152612e37838284612cd9565b90815260200190565b6000808335601e19843603018112613bdf578283fd5b83018035915067ffffffffffffffff821115613bf9578283fd5b602090810192508102360382131561233657600080fd5b6000808335601e19843603018112613c26578283fd5b83018035915067ffffffffffffffff821115613c40578283fd5b60200191503681900382131561233657600080fd5b6000823561025e19833603018112613c6b578182fd5b9190910192915050565b60009081526020902090565b6000808335601e19843603018112613c97578283fd5b830160208101925035905067ffffffffffffffff811115613cb757600080fd5b60208102360383131561233657600080fd5b6000808335601e19843603018112613cdf578283fd5b830160208101925035905067ffffffffffffffff811115613cff57600080fd5b80360383131561233657600080fd5b60008219821115613d2157613d21613f58565b500190565b6000816000190483118215151615613d4057613d40613f58565b500290565b600082821015613d5757613d57613f58565b500390565b5b81811015610fa55760008155600101613d5d565b81816000805b6009811015613dcf578335613d8b816140b6565b835461ffff6008850281811b801990931693909116901b1617835560209390930192600290910190601e821115613dc757600091506001830192505b600101613d77565b505050505050565b81816000805b6003811015613dcf578335613df1816140d7565b613dfc81848661407f565b5060208401935060018083019250601f831115613e1c5792830192600092505b50600101613ddd565b68010000000000000000831115613e3e57613e3e613f6e565b805483825580841015613e8b578160005260206000206020601f8601048101601f86168015613e7557613e75816000198401613f84565b50613e886020601f850104830182613d5c565b50505b5081613e9682613c75565b6000805b86811015613edd57613eb5613eae85613fa5565b838561407f565b60208401935060018083019250601f831115613ed45792830192600092505b50600101613e9a565b50505050505050565b600281046001821680613efa57607f821691505b602082108114156108f157634e487b7160e01b600052602260045260246000fd5b600061ffff80831681811415613f3357613f33613f58565b6001019392505050565b6000600019821415613f5157613f51613f58565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052604160045260246000fd5b8054600019836020036008021c1681555050565b60008135610580816140c6565b60008135610580816140d7565b81816000805b6005811015613ffc57613fd4613fcd85613f98565b838561405b565b602084019350600382019150601d821115613ff457600091506001830192505b600101613fb8565b5050505061401060a0830160018301613d71565b6140216101c0830160028301613dd7565b61402f610220830183613bc9565b61403d818360038601613e25565b505061404d610240830183613bc9565b6110cb818360048601613e25565b62ffffff81546008840282811b80848816831b168119841617855550505050505050565b80546008830260ff811b8060ff8716831b1681198416178455505050505050565b6001600160e01b03198116811461180f57600080fd5b61ffff8116811461180f57600080fd5b62ffffff8116811461180f57600080fd5b60ff8116811461180f57600080fdfea26469706673582212204a21114de7bbec8853dd148a28c8bb780ddcc90f89f817e76a93d3a2dac26d6964736f6c63430008000033

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

0000000000000000000000000000000000000000000000000000000000002710000000000000000000000000000000000000000000000000000000000000006400000000000000000000000000000000000000000000000000000000615fec340000000000000000000000000000000000000000000000000000000000000fa00000000000000000000000000000000000000000000000000000000000000002

-----Decoded View---------------
Arg [0] : _mintSupplyCount (uint256): 10000
Arg [1] : _ownerMintReserveCount (uint256): 100
Arg [2] : _whitelistExpirationTimestamp (uint256): 1633676340
Arg [3] : _maxWhitelistCount (uint256): 4000
Arg [4] : _maxMintPerAddress (uint256): 2

-----Encoded View---------------
5 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000002710
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000064
Arg [2] : 00000000000000000000000000000000000000000000000000000000615fec34
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000fa0
Arg [4] : 0000000000000000000000000000000000000000000000000000000000000002


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.