ETH Price: $3,418.85 (+3.72%)

Token

Turf (TURF)
 

Overview

Max Total Supply

5,041 TURF

Holders

1,953

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Filtered by Token Holder
Treemeat: Deployer
Balance
7 TURF
0x9e24184f3428b6b58eb9cd3344e075ea6cde3747
Loading...
Loading
Loading...
Loading
Loading...
Loading

OVERVIEW

Turf is a casual ultraverse city with 5041 plots, each uniquely great in their own way. The release of the genesis Turf NFTs will lay the foundation for a much broader concept.

# Exchange Pair Price  24H Volume % Volume

Contract Source Code Verified (Exact Match)

Contract Name:
Turf

Compiler Version
v0.8.10+commit.fc410830

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 18 : Turf.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.10;


import "erc721a/contracts/ERC721A.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol";
import "@openzeppelin/contracts/interfaces/IERC20.sol";
import "@openzeppelin/contracts/interfaces/IERC2981.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";

/*********************************
    
       ▄▄▄▄▀ ▄   █▄▄▄▄ ▄████  
    ▀▀▀ █     █  █  ▄▀ █▀   ▀ 
        █  █   █ █▀▀▌  █▀▀    
       █   █   █ █  █  █      
      ▀    █▄ ▄█   █    █     
            ▀▀▀   ▀      ▀    
    
            Turf.NFT
              2022

*********************************/

contract Turf is ERC721A, Ownable, ReentrancyGuard {

    enum ReleaseMode{ CLOSED, FOUNDERS, PRE_SALE, OPEN, ENDED }
    ReleaseMode public currentMode;

    // How we track how many items were minted per address.
    mapping(address => uint256) private _mintedPerAddress;
    // Track if the given address has made a purchase while holding a Founders Pass.
    // That entitles them to a free mint, but can only be used once.
    mapping(address => uint256) private _founderPassRedeemed;

    mapping (uint256 => bool) public mysteryZones;

     // Used for the OpenSea free listing feature.
    address public openSeaProxyRegistryAddress;

    // All set via setWalletAddresses.
    address private _mAddress;
    address private _kAddress;
    address private _dAddress;
    address private _ogAddress;
    address private _turfAddress;

    // Our Merkle Roots: Needed for various list checking.
    // Set with corrosponding setter methods.
    bytes32 private _presaleMerkleRoot;
    bytes32 private _founderPassMerkleRoot;
    bytes32 private _staffPassMerkleRoot;

    bool private _hqMinted;
    bool private _isOpenSeaProxyActive = true;

    // Generally only allow this many NFTs per wallet address.
    uint256 private constant MAX_PER_ADDRESS = 3;

    // How many are we able to mint in total? Set in the constructor.
    uint256 public maxSupply;

    bool public mysteryZoneBaseURILocked;
    bool public baseTokenURILocked;
    uint256 public price;

    // Failsafe to make sure we don't give away to many. Set in the constructor.
    uint256 private maxFriendSupply;
    uint256 private friendMintCount; // How many have we given away so far?

    string public baseTokenURI;
    string public baseMysteryZoneTokenURI;

    // Simple Eth check, assuming no freebies.
    modifier requireCorrectEth(uint256 buildCount) {
      require(msg.value == price * buildCount, "Sent incorrect Ether");
      _;
    }

    /// @param buildCount The amount of items intended to be minted.
    /// @dev All of our validations that we check before a mint.
    modifier validateBuild(uint256 buildCount) {
      require(
          _mintedPerAddress[msg.sender] + buildCount <= MAX_PER_ADDRESS,
          "Exceeds wallet limit"
      );
      require(totalSupply() + buildCount <= maxSupply, "Would exceed max supply");
      _;
   }

    /// @dev Only allow pre-sale eligible actions to be taken at the right time (presale or general sale).
    modifier validatePreSaleAction() {
      require(currentMode == ReleaseMode.PRE_SALE || currentMode == ReleaseMode.OPEN, "Not presale time yet");
      _;
    }

    /// @dev Founders time?
    modifier validateFoundersAction() {
      require(currentMode == ReleaseMode.FOUNDERS, "Not founders time yet");
      _;
    }    

    /// @param baseTokenURI_ The starting baseTokenURI, we'll change this later to lock in the data on Arweave.
    /// @param maxSupply_ How many items are mintable?
    /// @param price_ Price per token
    /// @param maxFriendSupply_ A limit on how many we can give away
    /// @param openSeaProxyRegistryAddress_ The OpenSea proxy address, set at run time so we can easily swap between testnet and mainnet.
    /// @dev The constructor!
    constructor(
        string memory baseTokenURI_,
        uint256 maxSupply_,
        uint256 price_,
        uint256 maxFriendSupply_,
        address openSeaProxyRegistryAddress_)
        ERC721A("Turf", "TURF", 3)
    {
        maxSupply = maxSupply_;
        baseTokenURI = baseTokenURI_;
        price = price_;
        maxFriendSupply = maxFriendSupply_;
        openSeaProxyRegistryAddress = openSeaProxyRegistryAddress_;
    }

    /// @notice Returns whether or not you, the person calling this method, have minted with a Founders Pass.
    function founderPassClaimed(address a) external view returns (bool){
      return _founderPassRedeemed[a] == 1;
    }

    /**
    @param buildCount How many do you want to mint?
    @notice This is the public method people should use to mint X items, if you _do not_ care about Founders Passes.
    It doesn't check any lists, it's just a plain mint.
    */
    function generalBuild(uint buildCount) validateBuild(buildCount) requireCorrectEth(buildCount) nonReentrant external payable {
        require(currentMode == ReleaseMode.OPEN, "It's not go time yet.");
        mint(msg.sender, buildCount, true);
    }

    /// @param _merkleProof The proof generated by the front end, to see if you have a Founders Pass.
    /// @param buildCount How many are we minting?
    /// @notice The public minting method with support for checking a Merkle proof for your Founders Pass holding status, which may entitle you to a free item.
    function generalBuildWithPass(bytes32[] memory _merkleProof, uint buildCount) validateBuild(buildCount) nonReentrant external payable {
        require(currentMode == ReleaseMode.OPEN, "It's not go time yet.");

        bytes32 leaf = keccak256(abi.encodePacked(msg.sender));

        // The amount we're charging (e.g, the amount we're validating) will depend on
        // if we detected a Founder Pass match. If so we check for a lesser amount of eth.
        uint buildCountToCharge = buildCount;
        if(MerkleProof.verify(_merkleProof, _founderPassMerkleRoot, leaf)){
          if(_founderPassRedeemed[msg.sender] != 1){ // if the pass is NOT already used, mark it as used and let us use the free one.
            buildCountToCharge = buildCountToCharge - 1;
            _founderPassRedeemed[msg.sender] = 1;
          }
        }

        require(msg.value == price * buildCountToCharge, "Sent incorrect Ether");
        mint(msg.sender, buildCount, true);
    }

    /**
    @param merkleProof Your Merkle proof to check that you're on the presale list.
    @param foundersMerkleProof Proof for your presence on the Founders Pass list.
    @param buildCount Amount to mint.
    @notice This is the mint function called by folks before the general sale, assuming they're allow-listed.
    @dev We don't need to enforce any specific limits on number of presale units minted, since the allow list itself
    will limit participants, plus the limit of mints per address checked in `validateBuild`.
    */
    function preSaleBuild(bytes32[] memory merkleProof, bytes32[] memory foundersMerkleProof, uint buildCount) validateBuild(buildCount) validatePreSaleAction nonReentrant external payable {
      bytes32 leaf = keccak256(abi.encodePacked(msg.sender));
      require(MerkleProof.verify(merkleProof, _presaleMerkleRoot, leaf), "Not on allowlist");

      // You can get your Founders Pass freebie during the presale, which is in another Merkle Tree.
      // The amount we're charging (e.g, the amount we're validating) will depend on
      // if we detected a Founder Pass match. If so we check for a lesser amount of eth.
      uint buildCountToCharge = buildCount;
      if(MerkleProof.verify(foundersMerkleProof, _founderPassMerkleRoot, leaf)){
        if(_founderPassRedeemed[msg.sender] != 1){ // if the pass is NOT already used, mark it as used and let us use the free one.
          buildCountToCharge = buildCountToCharge - 1;
          _founderPassRedeemed[msg.sender] = 1;
        }
      }

      require(msg.value == price * buildCountToCharge, "Sent incorrect Ether");
      mint(msg.sender, buildCount, true);
    }

    function foundersBuild(bytes32[] memory foundersMerkleProof, uint buildCount) validateBuild(buildCount) validateFoundersAction nonReentrant external payable {
      bytes32 leaf = keccak256(abi.encodePacked(msg.sender));
      require(MerkleProof.verify(foundersMerkleProof, _founderPassMerkleRoot, leaf), "Not a Founder");

      // You can get your Founders Pass freebie during the presale, which is in another Merkle Tree.
      // The amount we're charging (e.g, the amount we're validating) will depend on
      // if we detected a Founder Pass match. If so we check for a lesser amount of eth.
      uint buildCountToCharge = buildCount;

      if(_founderPassRedeemed[msg.sender] != 1){ // if the pass is NOT already used, mark it as used and let us use the free one.
        buildCountToCharge = buildCountToCharge - 1;
        _founderPassRedeemed[msg.sender] = 1;
      }

      require(msg.value == price * buildCountToCharge, "Sent incorrect Ether");

      mint(msg.sender, buildCount, true);

    }

    /// @dev This is purely for internal testing. Let's us verify a proof for the given sender against the Founders Pass Merkle Root.
    function verifyPresale(bytes32[] memory _merkleProof, address sender) view external onlyOwner returns (bool) {
      bytes32 leaf = keccak256(abi.encodePacked(sender));
      return MerkleProof.verify(_merkleProof, _founderPassMerkleRoot, leaf);
    }

    function setMysteryZones(uint[] memory ids) external onlyOwner {
      for (uint i=0; i < ids.length; i++) {
        mysteryZones[ids[i]] = true;
      }
    }

    function hqBuild() external onlyOwner {
      require(!_hqMinted, "HQ already minted");
      mint(_mAddress, 1, true);
      _hqMinted = true;
    }

    function powerPlantBuild(address a, uint256 count) external onlyOwner {
      require(_hqMinted, "Only do this after HQ mint");
      mint(a, count, false);
    }

    /// @dev Sets the various wallets for withdrawl.
    function setWalletAddresses(address m, address k, address d, address og, address t) external onlyOwner {
      _mAddress = m;
      _kAddress = k;
      _dAddress = d;
      _ogAddress = og;
      _turfAddress = t;
    }

    function getWalletAddresses() view external onlyOwner returns(address m, address k, address d, address og, address t){
      return (_mAddress, _kAddress, _dAddress, _ogAddress, _turfAddress);
    }

    function setFounderPassMerkleRoot(bytes32 merkRoot) external onlyOwner {
      _founderPassMerkleRoot = merkRoot;
    }

    function setPresaleMerkleRoot(bytes32 merkRoot) external onlyOwner {
      _presaleMerkleRoot = merkRoot;
    }

    function setStaffPassMerkleRoot(bytes32 merkRoot) external onlyOwner {
      _staffPassMerkleRoot = merkRoot;
    }

    function setMysteryZoneUri(string memory uri) external onlyOwner {
      require(!mysteryZoneBaseURILocked, "setMysteryZoneUri is locked");
      baseMysteryZoneTokenURI = uri;
    }

    /// @dev After we cut over to the permaweb base URI, lock it up so we can't change it back. This is a one-time operation! Don't mess it up!
    function lockBaseTokenURI() external onlyOwner {
      baseTokenURILocked = true;
    }

    function lockMysteryZoneBaseTokenURI() external onlyOwner {
      mysteryZoneBaseURILocked = true;
    }

    /// @param baseTokenURI_ The new baseTokenURI
    /// @dev Need this so we can set the new base URI for the cut over to permaweb.
    function setBaseURI(string memory baseTokenURI_) external onlyOwner {
        require(!baseTokenURILocked, "setBaseURI is locked");
        baseTokenURI = baseTokenURI_;
    }

    // Copy + pasted in the ERC721A in order to override.
    function tokenURI(uint256 tokenId) public view virtual override returns (string memory) {
        require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token");
        string memory baseURI = mysteryZones[tokenId] ? baseMysteryZoneTokenURI : baseTokenURI;
        return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, Strings.toString(tokenId), '.json')) : "";
    }

    /// @param recipients A list of addresses to be sent tokens
    /// @param countPerPerson How many to send to each given address
    /// @dev Our air dropper.
    function friendBuild(address[] memory recipients, uint countPerPerson) external nonReentrant onlyOwner {
      require(totalSupply() + (recipients.length * countPerPerson) <= maxSupply, "would exceed max supply");
      require(friendMintCount + (recipients.length * countPerPerson) <= maxFriendSupply, "would exceed max friend supply");
      for (uint i = 0; i < recipients.length; i++) {
        mint(recipients[i], countPerPerson, false);
        friendMintCount = friendMintCount + countPerPerson;
      }
    }

    /// @dev Set our current mode to FOUNDERS.
    function startFoundersSale() external onlyOwner {
      setSaleStatus(ReleaseMode.FOUNDERS);
    }

    /// @dev Set our current mode to PRE_SALE.
    function startPreSale() external onlyOwner {
      setSaleStatus(ReleaseMode.PRE_SALE);
    }

    /// @dev Set our current mode to OPEN, for the general sale.
    function startGeneralSale() external onlyOwner {
      setSaleStatus(ReleaseMode.OPEN);
    }

    /// @dev End the sale (ENDED)
    function endSale() external onlyOwner {
      setSaleStatus(ReleaseMode.ENDED);
    }

    /// @dev Sets the current state to the given status.
    function setSaleStatus(ReleaseMode newStatus) private onlyOwner {
      currentMode = newStatus;
    }

    /// @dev You know.
    function withdraw() external nonReentrant onlyOwner {
      // Some percentage magic:
      uint256 balance = address(this).balance;
      uint256 fivePercent = balance / 100 * 5;
      payable(_kAddress).transfer(fivePercent);
      payable(_dAddress).transfer(fivePercent);
      payable(_mAddress).transfer(fivePercent);
      uint256 ogPercent = balance / 400 * 7; // 1.75, this is just weird contorted math
      payable(_ogAddress).transfer(ogPercent);
      uint256 remaining = address(this).balance;
      payable(_turfAddress).transfer(remaining);
    }

    /// @param to Who are we minting for?
    /// @param countTowardsWalletLimit Allows us to indicate if this should count towards the "X NFTs per Wallet" limit, or if we bypass that.
    /// @dev Our internal mint method, that handles some universal book-keeping.
    function mint(address to, uint256 count, bool countTowardsWalletLimit) private {
        if(countTowardsWalletLimit){
          _mintedPerAddress[to] += count;
        }
        _safeMint(to, count);
    }

    function isApprovedForAll(address owner, address operator)
        public
        view
        override
        returns (bool)
    {
        // Get a reference to OpenSea's proxy registry contract by instantiating
        // the contract using the already existing address.
        OpenSeaProxyRegistry proxyRegistry = OpenSeaProxyRegistry(
            openSeaProxyRegistryAddress
        );
        if (_isOpenSeaProxyActive && address(proxyRegistry.proxies(owner)) == operator) {
            return true;
        }

        return super.isApprovedForAll(owner, operator);
    }

    function setIsOpenSeaProxyActive(bool isOpenSeaProxyActive_) external onlyOwner {
      _isOpenSeaProxyActive = isOpenSeaProxyActive_;
    }

    /// @notice In case any wayward tokens make their way over.
    function withdrawTokens(IERC20 token) external onlyOwner {
        uint256 balance = token.balanceOf(address(this));
        token.transfer(msg.sender, balance);
    }

    // @dev Overriding to add support for Royalties
    function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) 
    {
        return interfaceId == 0x2a55205a || super.supportsInterface(interfaceId);
    }

    /// @notice Royalties
    function royaltyInfo(uint256 tokenId, uint256 salePrice)
        external
        view
        returns (address receiver, uint256 royaltyAmount)
    {
        require(_exists(tokenId), "Nonexistent token");
        return (_turfAddress, (salePrice * 5) / 100);
    }

    /// @dev Allow us to receive arbitrary ETH if sent directly. Mostly want this for test purposes.
    receive() external payable {}

}

contract OwnableDelegateProxy { }
contract OpenSeaProxyRegistry {
    mapping(address => OwnableDelegateProxy) public proxies;
}

File 2 of 18 : ERC721A.sol
// SPDX-License-Identifier: MIT
// Creator: Chiru Labs

pragma solidity ^0.8.0;

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

/**
 * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
 * the Metadata and Enumerable extension. Built to optimize for lower gas during batch mints.
 *
 * Assumes serials are sequentially minted starting at 0 (e.g. 0, 1, 2, 3..).
 *
 * Does not support burning tokens to address(0).
 */
contract ERC721A is Context, ERC165, IERC721, IERC721Metadata, IERC721Enumerable {
    using Address for address;
    using Strings for uint256;

    struct TokenOwnership {
        address addr;
        uint64 startTimestamp;
    }

    struct AddressData {
        uint128 balance;
        uint128 numberMinted;
    }

    uint256 private currentIndex = 0;

    uint256 internal immutable maxBatchSize;

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

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

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

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

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

    /**
     * @dev
     * `maxBatchSize` refers to how much a minter can mint at a time.
     */
    constructor(
        string memory name_,
        string memory symbol_,
        uint256 maxBatchSize_
    ) {
        require(maxBatchSize_ > 0, "ERC721A: max batch size must be nonzero");
        _name = name_;
        _symbol = symbol_;
        maxBatchSize = maxBatchSize_;
    }

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

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

    /**
     * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}.
     * This read function is O(totalSupply). If calling from a separate contract, be sure to test gas first.
     * It may also degrade with extremely large collection sizes (e.g >> 10000), test for your use case.
     */
    function tokenOfOwnerByIndex(address owner, uint256 index) public view override returns (uint256) {
        require(index < balanceOf(owner), "ERC721A: owner index out of bounds");
        uint256 numMintedSoFar = totalSupply();
        uint256 tokenIdsIdx = 0;
        address currOwnershipAddr = address(0);
        for (uint256 i = 0; i < numMintedSoFar; i++) {
            TokenOwnership memory ownership = _ownerships[i];
            if (ownership.addr != address(0)) {
                currOwnershipAddr = ownership.addr;
            }
            if (currOwnershipAddr == owner) {
                if (tokenIdsIdx == index) {
                    return i;
                }
                tokenIdsIdx++;
            }
        }
        revert("ERC721A: unable to get token of owner by index");
    }

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

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

    function _numberMinted(address owner) internal view returns (uint256) {
        require(owner != address(0), "ERC721A: number minted query for the zero address");
        return uint256(_addressData[owner].numberMinted);
    }

    function ownershipOf(uint256 tokenId) internal view returns (TokenOwnership memory) {
        require(_exists(tokenId), "ERC721A: owner query for nonexistent token");

        uint256 lowestTokenToCheck;
        if (tokenId >= maxBatchSize) {
            lowestTokenToCheck = tokenId - maxBatchSize + 1;
        }

        for (uint256 curr = tokenId; curr >= lowestTokenToCheck; curr--) {
            TokenOwnership memory ownership = _ownerships[curr];
            if (ownership.addr != address(0)) {
                return ownership;
            }
        }

        revert("ERC721A: unable to determine the owner of token");
    }

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

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

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

    /**
     * @dev See {IERC721Metadata-tokenURI}.
     */
    function tokenURI(uint256 tokenId) public view virtual override returns (string memory) {
        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 override {
        address owner = ERC721A.ownerOf(tokenId);
        require(to != owner, "ERC721A: approval to current owner");

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

        _approve(to, tokenId, owner);
    }

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

        return _tokenApprovals[tokenId];
    }

    /**
     * @dev See {IERC721-setApprovalForAll}.
     */
    function setApprovalForAll(address operator, bool approved) public override {
        require(operator != _msgSender(), "ERC721A: 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 override {
        _transfer(from, to, tokenId);
    }

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

    /**
     * @dev See {IERC721-safeTransferFrom}.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) public override {
        _transfer(from, to, tokenId);
        require(
            _checkOnERC721Received(from, to, tokenId, _data),
            "ERC721A: transfer to non ERC721Receiver implementer"
        );
    }

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

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

    /**
     * @dev Mints `quantity` tokens and transfers them to `to`.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - `quantity` cannot be larger than the max batch size.
     *
     * Emits a {Transfer} event.
     */
    function _safeMint(
        address to,
        uint256 quantity,
        bytes memory _data
    ) internal {
        uint256 startTokenId = currentIndex;
        require(to != address(0), "ERC721A: mint to the zero address");
        // We know if the first token in the batch doesn't exist, the other ones don't as well, because of serial ordering.
        require(!_exists(startTokenId), "ERC721A: token already minted");
        require(quantity <= maxBatchSize, "ERC721A: quantity to mint too high");

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

        AddressData memory addressData = _addressData[to];
        _addressData[to] = AddressData(
            addressData.balance + uint128(quantity),
            addressData.numberMinted + uint128(quantity)
        );
        _ownerships[startTokenId] = TokenOwnership(to, uint64(block.timestamp));

        uint256 updatedIndex = startTokenId;

        for (uint256 i = 0; i < quantity; i++) {
            emit Transfer(address(0), to, updatedIndex);
            require(
                _checkOnERC721Received(address(0), to, updatedIndex, _data),
                "ERC721A: transfer to non ERC721Receiver implementer"
            );
            updatedIndex++;
        }

        currentIndex = updatedIndex;
        _afterTokenTransfers(address(0), to, startTokenId, quantity);
    }

    /**
     * @dev Transfers `tokenId` from `from` to `to`.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - `tokenId` token must be owned by `from`.
     *
     * Emits a {Transfer} event.
     */
    function _transfer(
        address from,
        address to,
        uint256 tokenId
    ) private {
        TokenOwnership memory prevOwnership = ownershipOf(tokenId);

        bool isApprovedOrOwner = (_msgSender() == prevOwnership.addr ||
            getApproved(tokenId) == _msgSender() ||
            isApprovedForAll(prevOwnership.addr, _msgSender()));

        require(isApprovedOrOwner, "ERC721A: transfer caller is not owner nor approved");

        require(prevOwnership.addr == from, "ERC721A: transfer from incorrect owner");
        require(to != address(0), "ERC721A: transfer to the zero address");

        _beforeTokenTransfers(from, to, tokenId, 1);

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

        _addressData[from].balance -= 1;
        _addressData[to].balance += 1;
        _ownerships[tokenId] = TokenOwnership(to, uint64(block.timestamp));

        // If the ownership slot of tokenId+1 is not explicitly set, that means the transfer initiator owns it.
        // Set the slot of tokenId+1 explicitly in storage to maintain correctness for ownerOf(tokenId+1) calls.
        uint256 nextTokenId = tokenId + 1;
        if (_ownerships[nextTokenId].addr == address(0)) {
            if (_exists(nextTokenId)) {
                _ownerships[nextTokenId] = TokenOwnership(prevOwnership.addr, prevOwnership.startTimestamp);
            }
        }

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

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

    uint256 public nextOwnerToExplicitlySet = 0;

    /**
     * @dev Explicitly set `owners` to eliminate loops in future calls of ownerOf().
     */
    function _setOwnersExplicit(uint256 quantity) internal {
        uint256 oldNextOwnerToSet = nextOwnerToExplicitlySet;
        require(quantity > 0, "quantity must be nonzero");
        uint256 endIndex = oldNextOwnerToSet + quantity - 1;
        if (endIndex > currentIndex - 1) {
            endIndex = currentIndex - 1;
        }
        // We know if the last one in the group exists, all in the group exist, due to serial ordering.
        require(_exists(endIndex), "not enough minted yet for this cleanup");
        for (uint256 i = oldNextOwnerToSet; i <= endIndex; i++) {
            if (_ownerships[i].addr == address(0)) {
                TokenOwnership memory ownership = ownershipOf(i);
                _ownerships[i] = TokenOwnership(ownership.addr, ownership.startTimestamp);
            }
        }
        nextOwnerToExplicitlySet = endIndex + 1;
    }

    /**
     * @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(to).onERC721Received.selector;
            } catch (bytes memory reason) {
                if (reason.length == 0) {
                    revert("ERC721A: transfer to non ERC721Receiver implementer");
                } else {
                    assembly {
                        revert(add(32, reason), mload(reason))
                    }
                }
            }
        } else {
            return true;
        }
    }

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

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

File 4 of 18 : MerkleProof.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/cryptography/MerkleProof.sol)

pragma solidity ^0.8.0;

/**
 * @dev These functions deal with verification of Merkle Trees proofs.
 *
 * The proofs can be generated using the JavaScript library
 * https://github.com/miguelmota/merkletreejs[merkletreejs].
 * Note: the hashing algorithm should be keccak256 and pair sorting should be enabled.
 *
 * See `test/utils/cryptography/MerkleProof.test.js` for some examples.
 */
library MerkleProof {
    /**
     * @dev Returns true if a `leaf` can be proved to be a part of a Merkle tree
     * defined by `root`. For this, a `proof` must be provided, containing
     * sibling hashes on the branch from the leaf to the root of the tree. Each
     * pair of leaves and each pair of pre-images are assumed to be sorted.
     */
    function verify(
        bytes32[] memory proof,
        bytes32 root,
        bytes32 leaf
    ) internal pure returns (bool) {
        return processProof(proof, leaf) == root;
    }

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

File 5 of 18 : IERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (interfaces/IERC20.sol)

pragma solidity ^0.8.0;

import "../token/ERC20/IERC20.sol";

File 6 of 18 : IERC2981.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (interfaces/IERC2981.sol)

pragma solidity ^0.8.0;

import "./IERC165.sol";

/**
 * @dev Interface for the NFT Royalty Standard
 */
interface IERC2981 is IERC165 {
    /**
     * @dev Called with the sale price to determine how much royalty is owed and to whom.
     * @param tokenId - the NFT asset queried for royalty information
     * @param salePrice - the sale price of the NFT asset specified by `tokenId`
     * @return receiver - address of who should be sent the royalty payment
     * @return royaltyAmount - the royalty payment amount for `salePrice`
     */
    function royaltyInfo(uint256 tokenId, uint256 salePrice)
        external
        view
        returns (address receiver, uint256 royaltyAmount);
}

File 7 of 18 : ReentrancyGuard.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (security/ReentrancyGuard.sol)

pragma solidity ^0.8.0;

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

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

    uint256 private _status;

    constructor() {
        _status = _NOT_ENTERED;
    }

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

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

        _;

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

File 10 of 18 : IERC721Metadata.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol)

pragma solidity ^0.8.0;

import "../IERC721.sol";

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

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

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

File 11 of 18 : IERC721Enumerable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Enumerable.sol)

pragma solidity ^0.8.0;

import "../IERC721.sol";

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

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

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

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

pragma solidity ^0.8.0;

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

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

File 15 of 18 : ERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol)

pragma solidity ^0.8.0;

import "./IERC165.sol";

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

File 16 of 18 : IERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol)

pragma solidity ^0.8.0;

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

File 17 of 18 : IERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC20/IERC20.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @dev Returns the amount of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

    /**
     * @dev Returns the amount of tokens owned by `account`.
     */
    function balanceOf(address account) external view returns (uint256);

    /**
     * @dev Moves `amount` tokens from the caller's account to `recipient`.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transfer(address recipient, uint256 amount) external returns (bool);

    /**
     * @dev Returns the remaining number of tokens that `spender` will be
     * allowed to spend on behalf of `owner` through {transferFrom}. This is
     * zero by default.
     *
     * This value changes when {approve} or {transferFrom} are called.
     */
    function allowance(address owner, address spender) external view returns (uint256);

    /**
     * @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * IMPORTANT: Beware that changing an allowance with this method brings the risk
     * that someone may use both the old and the new allowance by unfortunate
     * transaction ordering. One possible solution to mitigate this race
     * condition is to first reduce the spender's allowance to 0 and set the
     * desired value afterwards:
     * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
     *
     * Emits an {Approval} event.
     */
    function approve(address spender, uint256 amount) external returns (bool);

    /**
     * @dev Moves `amount` tokens from `sender` to `recipient` using the
     * allowance mechanism. `amount` is then deducted from the caller's
     * allowance.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(
        address sender,
        address recipient,
        uint256 amount
    ) external returns (bool);

    /**
     * @dev Emitted when `value` tokens are moved from one account (`from`) to
     * another (`to`).
     *
     * Note that `value` may be zero.
     */
    event Transfer(address indexed from, address indexed to, uint256 value);

    /**
     * @dev Emitted when the allowance of a `spender` for an `owner` is set by
     * a call to {approve}. `value` is the new allowance.
     */
    event Approval(address indexed owner, address indexed spender, uint256 value);
}

File 18 of 18 : IERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (interfaces/IERC165.sol)

pragma solidity ^0.8.0;

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

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"string","name":"baseTokenURI_","type":"string"},{"internalType":"uint256","name":"maxSupply_","type":"uint256"},{"internalType":"uint256","name":"price_","type":"uint256"},{"internalType":"uint256","name":"maxFriendSupply_","type":"uint256"},{"internalType":"address","name":"openSeaProxyRegistryAddress_","type":"address"}],"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":[],"name":"baseMysteryZoneTokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseTokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseTokenURILocked","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"currentMode","outputs":[{"internalType":"enum Turf.ReleaseMode","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"endSale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"a","type":"address"}],"name":"founderPassClaimed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32[]","name":"foundersMerkleProof","type":"bytes32[]"},{"internalType":"uint256","name":"buildCount","type":"uint256"}],"name":"foundersBuild","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address[]","name":"recipients","type":"address[]"},{"internalType":"uint256","name":"countPerPerson","type":"uint256"}],"name":"friendBuild","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"buildCount","type":"uint256"}],"name":"generalBuild","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"bytes32[]","name":"_merkleProof","type":"bytes32[]"},{"internalType":"uint256","name":"buildCount","type":"uint256"}],"name":"generalBuildWithPass","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getWalletAddresses","outputs":[{"internalType":"address","name":"m","type":"address"},{"internalType":"address","name":"k","type":"address"},{"internalType":"address","name":"d","type":"address"},{"internalType":"address","name":"og","type":"address"},{"internalType":"address","name":"t","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"hqBuild","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lockBaseTokenURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"lockMysteryZoneBaseTokenURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"maxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mysteryZoneBaseURILocked","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"mysteryZones","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"nextOwnerToExplicitlySet","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"openSeaProxyRegistryAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"a","type":"address"},{"internalType":"uint256","name":"count","type":"uint256"}],"name":"powerPlantBuild","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32[]","name":"merkleProof","type":"bytes32[]"},{"internalType":"bytes32[]","name":"foundersMerkleProof","type":"bytes32[]"},{"internalType":"uint256","name":"buildCount","type":"uint256"}],"name":"preSaleBuild","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"price","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"salePrice","type":"uint256"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"receiver","type":"address"},{"internalType":"uint256","name":"royaltyAmount","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"baseTokenURI_","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"merkRoot","type":"bytes32"}],"name":"setFounderPassMerkleRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"isOpenSeaProxyActive_","type":"bool"}],"name":"setIsOpenSeaProxyActive","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"uri","type":"string"}],"name":"setMysteryZoneUri","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"ids","type":"uint256[]"}],"name":"setMysteryZones","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"merkRoot","type":"bytes32"}],"name":"setPresaleMerkleRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"merkRoot","type":"bytes32"}],"name":"setStaffPassMerkleRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"m","type":"address"},{"internalType":"address","name":"k","type":"address"},{"internalType":"address","name":"d","type":"address"},{"internalType":"address","name":"og","type":"address"},{"internalType":"address","name":"t","type":"address"}],"name":"setWalletAddresses","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"startFoundersSale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"startGeneralSale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"startPreSale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32[]","name":"_merkleProof","type":"bytes32[]"},{"internalType":"address","name":"sender","type":"address"}],"name":"verifyPresale","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"token","type":"address"}],"name":"withdrawTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]

60a060405260008080556007556017805461ff0019166101001790553480156200002857600080fd5b50604051620041bb380380620041bb8339810160408190526200004b91620002a5565b604051806040016040528060048152602001632a3ab93360e11b815250604051806040016040528060048152602001632a2aa92360e11b815250600360008111620000ec5760405162461bcd60e51b815260206004820152602760248201527f455243373231413a206d61782062617463682073697a65206d757374206265206044820152666e6f6e7a65726f60c81b606482015260840160405180910390fd5b825162000101906001906020860190620001cc565b50815162000117906002906020850190620001cc565b5060805250620001299050336200017a565b6001600955601884905584516200014890601d906020880190620001cc565b50601a92909255601b55600e80546001600160a01b0319166001600160a01b0390921691909117905550620003f19050565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b828054620001da90620003b4565b90600052602060002090601f016020900481019282620001fe576000855562000249565b82601f106200021957805160ff191683800117855562000249565b8280016001018555821562000249579182015b82811115620002495782518255916020019190600101906200022c565b50620002579291506200025b565b5090565b5b808211156200025757600081556001016200025c565b634e487b7160e01b600052604160045260246000fd5b80516001600160a01b0381168114620002a057600080fd5b919050565b600080600080600060a08688031215620002be57600080fd5b85516001600160401b0380821115620002d657600080fd5b818801915088601f830112620002eb57600080fd5b81518181111562000300576200030062000272565b604051601f8201601f19908116603f011681019083821181831017156200032b576200032b62000272565b81604052828152602093508b848487010111156200034857600080fd5b600091505b828210156200036c57848201840151818301850152908301906200034d565b828211156200037e5760008484830101525b80995050505080880151955050506040860151925060608601519150620003a86080870162000288565b90509295509295909350565b600181811c90821680620003c957607f821691505b60208210811415620003eb57634e487b7160e01b600052602260045260246000fd5b50919050565b608051613da06200041b60003960008181612b0d01528181612b37015261301a0152613da06000f3fe60806040526004361061036f5760003560e01c806370a08231116101c6578063af8b9712116100f7578063d7224ba011610095578063e985e9c51161006f578063e985e9c5146109ca578063f2fde38b146109ea578063f86e387a14610a0a578063fa9965de14610a2a57600080fd5b8063d7224ba01461097f578063dcff26e114610995578063e43082f7146109aa57600080fd5b8063c87b56dd116100d1578063c87b56dd146108fb578063cfa36f6e1461091b578063d547cfb714610954578063d5abeb011461096957600080fd5b8063af8b9712146108a6578063b7f47d32146108bb578063b88d4fde146108db57600080fd5b80638da5cb5b1161016457806395f18b461161013e57806395f18b461461084a578063a035b1fe1461085d578063a22cb46514610873578063a682ad621461089357600080fd5b80638da5cb5b1461080457806390958dd71461082257806395d89b411461083557600080fd5b80638251449d116101a05780638251449d1461076357806383b65c5814610783578063869be9ee146107a25780638ada528e146107b557600080fd5b806370a0823114610707578063715018a6146107275780638125092f1461073c57600080fd5b806331bb9716116102a05780634c000e3d1161023e57806355f804b31161021857806355f804b31461069d5780635b5a8c5a146106bd5780636352211e146106d2578063685d0fd2146106f257600080fd5b80634c000e3d146106385780634f6ccce71461066857806355dd574c1461068857600080fd5b806342842e0e1161027a57806342842e0e146105c3578063435c35b6146105e3578063473861e3146105f857806349df728c1461061857600080fd5b806331bb97161461057f578063380d831b146105995780633ccfd60b146105ae57600080fd5b80630a766a021161030d57806323b872dd116102e757806323b872dd146104e057806328d7b276146105005780632a55205a146105205780632f745c591461055f57600080fd5b80630a766a021461048c57806318160ddd146104ac5780631f3f27ba146104cb57600080fd5b806306fdde031161034957806306fdde03146103f2578063081812fc1461041457806308b4ebcf1461044c578063095ea7b31461046c57600080fd5b806301ffc9a71461037b578063034e8bd8146103b057806305f7f3ba146103d257600080fd5b3661037657005b600080fd5b34801561038757600080fd5b5061039b6103963660046132dd565b610a4a565b60405190151581526020015b60405180910390f35b3480156103bc57600080fd5b506103d06103cb3660046132fa565b610a75565b005b3480156103de57600080fd5b506103d06103ed3660046133b0565b610aad565b3480156103fe57600080fd5b50610407610b41565b6040516103a79190613450565b34801561042057600080fd5b5061043461042f3660046132fa565b610bd3565b6040516001600160a01b0390911681526020016103a7565b34801561045857600080fd5b506103d0610467366004613486565b610c5e565b34801561047857600080fd5b506103d0610487366004613530565b610cec565b34801561049857600080fd5b506103d06104a73660046132fa565b610e04565b3480156104b857600080fd5b506000545b6040519081526020016103a7565b3480156104d757600080fd5b506103d0610e33565b3480156104ec57600080fd5b506103d06104fb36600461355c565b610ecb565b34801561050c57600080fd5b506103d061051b3660046132fa565b610ed6565b34801561052c57600080fd5b5061054061053b36600461359d565b610f05565b604080516001600160a01b0390931683526020830191909152016103a7565b34801561056b57600080fd5b506104bd61057a366004613530565b610f81565b34801561058b57600080fd5b5060195461039b9060ff1681565b3480156105a557600080fd5b506103d06110ee565b3480156105ba57600080fd5b506103d0611124565b3480156105cf57600080fd5b506103d06105de36600461355c565b6112dc565b3480156105ef57600080fd5b506103d06112f7565b34801561060457600080fd5b506103d06106133660046135bf565b61132b565b34801561062457600080fd5b506103d061063336600461365e565b6114b1565b34801561064457600080fd5b5061039b6106533660046132fa565b600d6020526000908152604090205460ff1681565b34801561067457600080fd5b506104bd6106833660046132fa565b6115ba565b34801561069457600080fd5b506103d061161c565b3480156106a957600080fd5b506103d06106b83660046133b0565b611650565b3480156106c957600080fd5b506104076116dc565b3480156106de57600080fd5b506104346106ed3660046132fa565b61176a565b3480156106fe57600080fd5b506103d061177c565b34801561071357600080fd5b506104bd61072236600461365e565b6117b0565b34801561073357600080fd5b506103d0611841565b34801561074857600080fd5b50600a546107569060ff1681565b6040516103a79190613691565b34801561076f57600080fd5b506103d061077e3660046136b9565b611875565b34801561078f57600080fd5b5060195461039b90610100900460ff1681565b6103d06107b03660046132fa565b6118fe565b3480156107c157600080fd5b506107ca611a30565b604080516001600160a01b03968716815294861660208601529285169284019290925283166060830152909116608082015260a0016103a7565b34801561081057600080fd5b506008546001600160a01b0316610434565b6103d0610830366004613790565b611aaa565b34801561084157600080fd5b50610407611ccf565b6103d06108583660046137fc565b611cde565b34801561086957600080fd5b506104bd601a5481565b34801561087f57600080fd5b506103d061088e36600461384e565b611e89565b6103d06108a13660046137fc565b611f4e565b3480156108b257600080fd5b506103d06120e0565b3480156108c757600080fd5b50600e54610434906001600160a01b031681565b3480156108e757600080fd5b506103d06108f6366004613887565b612119565b34801561090757600080fd5b506104076109163660046132fa565b612152565b34801561092757600080fd5b5061039b61093636600461365e565b6001600160a01b03166000908152600c602052604090205460011490565b34801561096057600080fd5b506104076122be565b34801561097557600080fd5b506104bd60185481565b34801561098b57600080fd5b506104bd60075481565b3480156109a157600080fd5b506103d06122cb565b3480156109b657600080fd5b506103d06109c5366004613906565b612306565b3480156109d657600080fd5b5061039b6109e5366004613923565b61234a565b3480156109f657600080fd5b506103d0610a0536600461365e565b612427565b348015610a1657600080fd5b5061039b610a25366004613951565b6124c2565b348015610a3657600080fd5b506103d0610a45366004613530565b612527565b600063152a902d60e11b6001600160e01b031983161480610a6f5750610a6f826125af565b92915050565b6008546001600160a01b03163314610aa85760405162461bcd60e51b8152600401610a9f90613997565b60405180910390fd5b601655565b6008546001600160a01b03163314610ad75760405162461bcd60e51b8152600401610a9f90613997565b60195460ff1615610b2a5760405162461bcd60e51b815260206004820152601b60248201527f7365744d7973746572795a6f6e65557269206973206c6f636b656400000000006044820152606401610a9f565b8051610b3d90601e906020840190613237565b5050565b606060018054610b50906139cc565b80601f0160208091040260200160405190810160405280929190818152602001828054610b7c906139cc565b8015610bc95780601f10610b9e57610100808354040283529160200191610bc9565b820191906000526020600020905b815481529060010190602001808311610bac57829003601f168201915b5050505050905090565b6000610be0826000541190565b610c425760405162461bcd60e51b815260206004820152602d60248201527f455243373231413a20617070726f76656420717565727920666f72206e6f6e6560448201526c3c34b9ba32b73a103a37b5b2b760991b6064820152608401610a9f565b506000908152600560205260409020546001600160a01b031690565b6008546001600160a01b03163314610c885760405162461bcd60e51b8152600401610a9f90613997565b60005b8151811015610b3d576001600d6000848481518110610cac57610cac613a07565b6020026020010151815260200190815260200160002060006101000a81548160ff0219169083151502179055508080610ce490613a33565b915050610c8b565b6000610cf78261176a565b9050806001600160a01b0316836001600160a01b03161415610d665760405162461bcd60e51b815260206004820152602260248201527f455243373231413a20617070726f76616c20746f2063757272656e74206f776e60448201526132b960f11b6064820152608401610a9f565b336001600160a01b0382161480610d825750610d82813361234a565b610df45760405162461bcd60e51b815260206004820152603960248201527f455243373231413a20617070726f76652063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f76656420666f7220616c6c000000000000006064820152608401610a9f565b610dff83838361261a565b505050565b6008546001600160a01b03163314610e2e5760405162461bcd60e51b8152600401610a9f90613997565b601555565b6008546001600160a01b03163314610e5d5760405162461bcd60e51b8152600401610a9f90613997565b60175460ff1615610ea45760405162461bcd60e51b8152602060048201526011602482015270121448185b1c9958591e481b5a5b9d1959607a1b6044820152606401610a9f565b600f54610ebc906001600160a01b0316600180612676565b6017805460ff19166001179055565b610dff8383836126b4565b6008546001600160a01b03163314610f005760405162461bcd60e51b8152600401610a9f90613997565b601455565b600080610f13846000541190565b610f535760405162461bcd60e51b81526020600482015260116024820152702737b732bc34b9ba32b73a103a37b5b2b760791b6044820152606401610a9f565b6013546001600160a01b03166064610f6c856005613a4e565b610f769190613a83565b915091509250929050565b6000610f8c836117b0565b8210610fe55760405162461bcd60e51b815260206004820152602260248201527f455243373231413a206f776e657220696e646578206f7574206f6620626f756e604482015261647360f01b6064820152608401610a9f565b600080549080805b8381101561108e576000818152600360209081526040918290208251808401909352546001600160a01b038116808452600160a01b9091046001600160401b0316918301919091521561103f57805192505b876001600160a01b0316836001600160a01b0316141561107b578684141561106d57509350610a6f92505050565b8361107781613a33565b9450505b508061108681613a33565b915050610fed565b5060405162461bcd60e51b815260206004820152602e60248201527f455243373231413a20756e61626c6520746f2067657420746f6b656e206f662060448201526d0deeedccae440c4f240d2dcc8caf60931b6064820152608401610a9f565b6008546001600160a01b031633146111185760405162461bcd60e51b8152600401610a9f90613997565b6111226004612a3a565b565b600260095414156111475760405162461bcd60e51b8152600401610a9f90613a97565b60026009556008546001600160a01b031633146111765760405162461bcd60e51b8152600401610a9f90613997565b476000611184606483613a83565b61118f906005613a4e565b6010546040519192506001600160a01b03169082156108fc029083906000818181858888f193505050501580156111ca573d6000803e3d6000fd5b506011546040516001600160a01b039091169082156108fc029083906000818181858888f19350505050158015611205573d6000803e3d6000fd5b50600f546040516001600160a01b039091169082156108fc029083906000818181858888f19350505050158015611240573d6000803e3d6000fd5b50600061124f61019084613a83565b61125a906007613a4e565b6012546040519192506001600160a01b03169082156108fc029083906000818181858888f19350505050158015611295573d6000803e3d6000fd5b5060135460405147916001600160a01b03169082156108fc029083906000818181858888f193505050501580156112d0573d6000803e3d6000fd5b50506001600955505050565b610dff83838360405180602001604052806000815250612119565b6008546001600160a01b031633146113215760405162461bcd60e51b8152600401610a9f90613997565b6111226003612a3a565b6002600954141561134e5760405162461bcd60e51b8152600401610a9f90613a97565b60026009556008546001600160a01b0316331461137d5760405162461bcd60e51b8152600401610a9f90613997565b60185481835161138d9190613a4e565b60005461139a9190613ace565b11156113e85760405162461bcd60e51b815260206004820152601760248201527f776f756c6420657863656564206d617820737570706c790000000000000000006044820152606401610a9f565b601b548183516113f89190613a4e565b601c546114059190613ace565b11156114535760405162461bcd60e51b815260206004820152601e60248201527f776f756c6420657863656564206d617820667269656e6420737570706c7900006044820152606401610a9f565b60005b82518110156114a75761148483828151811061147457611474613a07565b6020026020010151836000612676565b81601c546114929190613ace565b601c558061149f81613a33565b915050611456565b5050600160095550565b6008546001600160a01b031633146114db5760405162461bcd60e51b8152600401610a9f90613997565b6040516370a0823160e01b81523060048201526000906001600160a01b038316906370a0823190602401602060405180830381865afa158015611522573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115469190613ae6565b60405163a9059cbb60e01b8152336004820152602481018290529091506001600160a01b0383169063a9059cbb906044016020604051808303816000875af1158015611596573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610dff9190613aff565b6000805482106116185760405162461bcd60e51b815260206004820152602360248201527f455243373231413a20676c6f62616c20696e646578206f7574206f6620626f756044820152626e647360e81b6064820152608401610a9f565b5090565b6008546001600160a01b031633146116465760405162461bcd60e51b8152600401610a9f90613997565b6111226002612a3a565b6008546001600160a01b0316331461167a5760405162461bcd60e51b8152600401610a9f90613997565b601954610100900460ff16156116c95760405162461bcd60e51b81526020600482015260146024820152731cd95d10985cd9555492481a5cc81b1bd8dad95960621b6044820152606401610a9f565b8051610b3d90601d906020840190613237565b601e80546116e9906139cc565b80601f0160208091040260200160405190810160405280929190818152602001828054611715906139cc565b80156117625780601f1061173757610100808354040283529160200191611762565b820191906000526020600020905b81548152906001019060200180831161174557829003601f168201915b505050505081565b600061177582612a8b565b5192915050565b6008546001600160a01b031633146117a65760405162461bcd60e51b8152600401610a9f90613997565b6111226001612a3a565b60006001600160a01b03821661181c5760405162461bcd60e51b815260206004820152602b60248201527f455243373231413a2062616c616e636520717565727920666f7220746865207a60448201526a65726f206164647265737360a81b6064820152608401610a9f565b506001600160a01b03166000908152600460205260409020546001600160801b031690565b6008546001600160a01b0316331461186b5760405162461bcd60e51b8152600401610a9f90613997565b6111226000612c34565b6008546001600160a01b0316331461189f5760405162461bcd60e51b8152600401610a9f90613997565b600f80546001600160a01b03199081166001600160a01b03978816179091556010805482169587169590951790945560118054851693861693909317909255601280548416918516919091179055601380549092169216919091179055565b336000908152600b6020526040902054819060039061191e908390613ace565b111561193c5760405162461bcd60e51b8152600401610a9f90613b1c565b6018548161194960005490565b6119539190613ace565b11156119715760405162461bcd60e51b8152600401610a9f90613b4a565b8180601a546119809190613a4e565b341461199e5760405162461bcd60e51b8152600401610a9f90613b81565b600260095414156119c15760405162461bcd60e51b8152600401610a9f90613a97565b60026009556003600a5460ff1660048111156119df576119df61367b565b14611a245760405162461bcd60e51b815260206004820152601560248201527424ba13b9903737ba1033b7903a34b6b2903cb2ba1760591b6044820152606401610a9f565b6114a733846001612676565b600080808080336001600160a01b0316611a526008546001600160a01b031690565b6001600160a01b031614611a785760405162461bcd60e51b8152600401610a9f90613997565b5050600f546010546011546012546013546001600160a01b039485169893851697509184169550831693509190911690565b336000908152600b60205260409020548190600390611aca908390613ace565b1115611ae85760405162461bcd60e51b8152600401610a9f90613b1c565b60185481611af560005490565b611aff9190613ace565b1115611b1d5760405162461bcd60e51b8152600401610a9f90613b4a565b6002600a5460ff166004811115611b3657611b3661367b565b1480611b5857506003600a5460ff166004811115611b5657611b5661367b565b145b611b9b5760405162461bcd60e51b8152602060048201526014602482015273139bdd081c1c995cd85b19481d1a5b59481e595d60621b6044820152606401610a9f565b60026009541415611bbe5760405162461bcd60e51b8152600401610a9f90613a97565b6002600955604051600090611bd7903390602001613baf565b604051602081830303815290604052805190602001209050611bfc8560145483612c86565b611c3b5760405162461bcd60e51b815260206004820152601060248201526f139bdd081bdb88185b1b1bdddb1a5cdd60821b6044820152606401610a9f565b6000839050611c4d8560155484612c86565b15611c8a57336000908152600c6020526040902054600114611c8a57611c74600182613bcc565b336000908152600c602052604090206001905590505b80601a54611c989190613a4e565b3414611cb65760405162461bcd60e51b8152600401610a9f90613b81565b611cc233856001612676565b5050600160095550505050565b606060028054610b50906139cc565b336000908152600b60205260409020548190600390611cfe908390613ace565b1115611d1c5760405162461bcd60e51b8152600401610a9f90613b1c565b60185481611d2960005490565b611d339190613ace565b1115611d515760405162461bcd60e51b8152600401610a9f90613b4a565b60026009541415611d745760405162461bcd60e51b8152600401610a9f90613a97565b60026009556003600a5460ff166004811115611d9257611d9261367b565b14611dd75760405162461bcd60e51b815260206004820152601560248201527424ba13b9903737ba1033b7903a34b6b2903cb2ba1760591b6044820152606401610a9f565b600033604051602001611dea9190613baf565b6040516020818303038152906040528051906020012090506000839050611e148560155484612c86565b15611e5157336000908152600c6020526040902054600114611e5157611e3b600182613bcc565b336000908152600c602052604090206001905590505b80601a54611e5f9190613a4e565b3414611e7d5760405162461bcd60e51b8152600401610a9f90613b81565b6112d033856001612676565b6001600160a01b038216331415611ee25760405162461bcd60e51b815260206004820152601a60248201527f455243373231413a20617070726f766520746f2063616c6c65720000000000006044820152606401610a9f565b3360008181526006602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b336000908152600b60205260409020548190600390611f6e908390613ace565b1115611f8c5760405162461bcd60e51b8152600401610a9f90613b1c565b60185481611f9960005490565b611fa39190613ace565b1115611fc15760405162461bcd60e51b8152600401610a9f90613b4a565b6001600a5460ff166004811115611fda57611fda61367b565b1461201f5760405162461bcd60e51b8152602060048201526015602482015274139bdd08199bdd5b99195c9cc81d1a5b59481e595d605a1b6044820152606401610a9f565b600260095414156120425760405162461bcd60e51b8152600401610a9f90613a97565b600260095560405160009061205b903390602001613baf565b6040516020818303038152906040528051906020012090506120808460155483612c86565b6120bc5760405162461bcd60e51b815260206004820152600d60248201526c2737ba1030902337bab73232b960991b6044820152606401610a9f565b336000908152600c60205260409020548390600114611e5157611e3b600182613bcc565b6008546001600160a01b0316331461210a5760405162461bcd60e51b8152600401610a9f90613997565b6019805460ff19166001179055565b6121248484846126b4565b61213084848484612c9c565b61214c5760405162461bcd60e51b8152600401610a9f90613be3565b50505050565b606061215f826000541190565b6121c35760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b6064820152608401610a9f565b6000828152600d602052604081205460ff166121e057601d6121e3565b601e5b80546121ee906139cc565b80601f016020809104026020016040519081016040528092919081815260200182805461221a906139cc565b80156122675780601f1061223c57610100808354040283529160200191612267565b820191906000526020600020905b81548152906001019060200180831161224a57829003601f168201915b50505050509050600081511161228c57604051806020016040528060008152506122b7565b8061229684612d9a565b6040516020016122a7929190613c36565b6040516020818303038152906040525b9392505050565b601d80546116e9906139cc565b6008546001600160a01b031633146122f55760405162461bcd60e51b8152600401610a9f90613997565b6019805461ff001916610100179055565b6008546001600160a01b031633146123305760405162461bcd60e51b8152600401610a9f90613997565b601780549115156101000261ff0019909216919091179055565b600e546017546000916001600160a01b031690610100900460ff1680156123e6575060405163c455279160e01b81526001600160a01b038581166004830152808516919083169063c455279190602401602060405180830381865afa1580156123b7573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906123db9190613c75565b6001600160a01b0316145b156123f5576001915050610a6f565b6001600160a01b0380851660009081526006602090815260408083209387168352929052205460ff165b949350505050565b6008546001600160a01b031633146124515760405162461bcd60e51b8152600401610a9f90613997565b6001600160a01b0381166124b65760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610a9f565b6124bf81612c34565b50565b6008546000906001600160a01b031633146124ef5760405162461bcd60e51b8152600401610a9f90613997565b6000826040516020016125029190613baf565b60405160208183030381529060405280519060200120905061241f8460155483612c86565b6008546001600160a01b031633146125515760405162461bcd60e51b8152600401610a9f90613997565b60175460ff166125a35760405162461bcd60e51b815260206004820152601a60248201527f4f6e6c7920646f2074686973206166746572204851206d696e740000000000006044820152606401610a9f565b610b3d82826000612676565b60006001600160e01b031982166380ac58cd60e01b14806125e057506001600160e01b03198216635b5e139f60e01b145b806125fb57506001600160e01b0319821663780e9d6360e01b145b80610a6f57506301ffc9a760e01b6001600160e01b0319831614610a6f565b60008281526005602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b80156126aa576001600160a01b0383166000908152600b6020526040812080548492906126a4908490613ace565b90915550505b610dff8383612e97565b60006126bf82612a8b565b80519091506000906001600160a01b0316336001600160a01b031614806126f65750336126eb84610bd3565b6001600160a01b0316145b8061270857508151612708903361234a565b9050806127725760405162461bcd60e51b815260206004820152603260248201527f455243373231413a207472616e736665722063616c6c6572206973206e6f74206044820152711bdddb995c881b9bdc88185c1c1c9bdd995960721b6064820152608401610a9f565b846001600160a01b031682600001516001600160a01b0316146127e65760405162461bcd60e51b815260206004820152602660248201527f455243373231413a207472616e736665722066726f6d20696e636f72726563746044820152651037bbb732b960d11b6064820152608401610a9f565b6001600160a01b03841661284a5760405162461bcd60e51b815260206004820152602560248201527f455243373231413a207472616e7366657220746f20746865207a65726f206164604482015264647265737360d81b6064820152608401610a9f565b61285a600084846000015161261a565b6001600160a01b038516600090815260046020526040812080546001929061288c9084906001600160801b0316613c92565b82546101009290920a6001600160801b038181021990931691831602179091556001600160a01b038616600090815260046020526040812080546001945090926128d891859116613cba565b82546001600160801b039182166101009390930a9283029190920219909116179055506040805180820182526001600160a01b0380871682526001600160401b03428116602080850191825260008981526003909152948520935184549151909216600160a01b026001600160e01b0319909116919092161717905561295f846001613ace565b6000818152600360205260409020549091506001600160a01b03166129f057612989816000541190565b156129f05760408051808201825284516001600160a01b0390811682526020808701516001600160401b039081168285019081526000878152600390935294909120925183549451909116600160a01b026001600160e01b03199094169116179190911790555b83856001600160a01b0316876001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45b505050505050565b6008546001600160a01b03163314612a645760405162461bcd60e51b8152600401610a9f90613997565b600a805482919060ff19166001836004811115612a8357612a8361367b565b021790555050565b6040805180820190915260008082526020820152612aaa826000541190565b612b095760405162461bcd60e51b815260206004820152602a60248201527f455243373231413a206f776e657220717565727920666f72206e6f6e657869736044820152693a32b73a103a37b5b2b760b11b6064820152608401610a9f565b60007f00000000000000000000000000000000000000000000000000000000000000008310612b6a57612b5c7f000000000000000000000000000000000000000000000000000000000000000084613bcc565b612b67906001613ace565b90505b825b818110612bd3576000818152600360209081526040918290208251808401909352546001600160a01b038116808452600160a01b9091046001600160401b03169183019190915215612bc057949350505050565b5080612bcb81613ce5565b915050612b6c565b5060405162461bcd60e51b815260206004820152602f60248201527f455243373231413a20756e61626c6520746f2064657465726d696e652074686560448201526e1037bbb732b91037b3103a37b5b2b760891b6064820152608401610a9f565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b600082612c938584612eb1565b14949350505050565b60006001600160a01b0384163b15612d8f57604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290612ce0903390899088908890600401613cfc565b6020604051808303816000875af1925050508015612d1b575060408051601f3d908101601f19168201909252612d1891810190613d39565b60015b612d75573d808015612d49576040519150601f19603f3d011682016040523d82523d6000602084013e612d4e565b606091505b508051612d6d5760405162461bcd60e51b8152600401610a9f90613be3565b805181602001fd5b6001600160e01b031916630a85bd0160e11b14905061241f565b506001949350505050565b606081612dbe5750506040805180820190915260018152600360fc1b602082015290565b8160005b8115612de85780612dd281613a33565b9150612de19050600a83613a83565b9150612dc2565b6000816001600160401b03811115612e0257612e02613313565b6040519080825280601f01601f191660200182016040528015612e2c576020820181803683370190505b5090505b841561241f57612e41600183613bcc565b9150612e4e600a86613d56565b612e59906030613ace565b60f81b818381518110612e6e57612e6e613a07565b60200101906001600160f81b031916908160001a905350612e90600a86613a83565b9450612e30565b610b3d828260405180602001604052806000815250612f5d565b600081815b8451811015612f55576000858281518110612ed357612ed3613a07565b60200260200101519050808311612f15576040805160208101859052908101829052606001604051602081830303815290604052805190602001209250612f42565b60408051602081018390529081018490526060016040516020818303038152906040528051906020012092505b5080612f4d81613a33565b915050612eb6565b509392505050565b6000546001600160a01b038416612fc05760405162461bcd60e51b815260206004820152602160248201527f455243373231413a206d696e7420746f20746865207a65726f206164647265736044820152607360f81b6064820152608401610a9f565b612fcb816000541190565b156130185760405162461bcd60e51b815260206004820152601d60248201527f455243373231413a20746f6b656e20616c7265616479206d696e7465640000006044820152606401610a9f565b7f00000000000000000000000000000000000000000000000000000000000000008311156130935760405162461bcd60e51b815260206004820152602260248201527f455243373231413a207175616e7469747920746f206d696e7420746f6f2068696044820152610ced60f31b6064820152608401610a9f565b6001600160a01b0384166000908152600460209081526040918290208251808401845290546001600160801b038082168352600160801b90910416918101919091528151808301909252805190919081906130ef908790613cba565b6001600160801b0316815260200185836020015161310d9190613cba565b6001600160801b039081169091526001600160a01b0380881660008181526004602090815260408083208751978301518716600160801b029790961696909617909455845180860186529182526001600160401b034281168386019081528883526003909552948120915182549451909516600160a01b026001600160e01b031990941694909216939093179190911790915582905b8581101561322c5760405182906001600160a01b038916906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a46131f06000888488612c9c565b61320c5760405162461bcd60e51b8152600401610a9f90613be3565b8161321681613a33565b925050808061322490613a33565b9150506131a3565b506000819055612a32565b828054613243906139cc565b90600052602060002090601f01602090048101928261326557600085556132ab565b82601f1061327e57805160ff19168380011785556132ab565b828001600101855582156132ab579182015b828111156132ab578251825591602001919060010190613290565b506116189291505b8082111561161857600081556001016132b3565b6001600160e01b0319811681146124bf57600080fd5b6000602082840312156132ef57600080fd5b81356122b7816132c7565b60006020828403121561330c57600080fd5b5035919050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f191681016001600160401b038111828210171561335157613351613313565b604052919050565b60006001600160401b0383111561337257613372613313565b613385601f8401601f1916602001613329565b905082815283838301111561339957600080fd5b828260208301376000602084830101529392505050565b6000602082840312156133c257600080fd5b81356001600160401b038111156133d857600080fd5b8201601f810184136133e957600080fd5b61241f84823560208401613359565b60005b838110156134135781810151838201526020016133fb565b8381111561214c5750506000910152565b6000815180845261343c8160208601602086016133f8565b601f01601f19169290920160200192915050565b6020815260006122b76020830184613424565b60006001600160401b0382111561347c5761347c613313565b5060051b60200190565b6000602080838503121561349957600080fd5b82356001600160401b038111156134af57600080fd5b8301601f810185136134c057600080fd5b80356134d36134ce82613463565b613329565b81815260059190911b820183019083810190878311156134f257600080fd5b928401925b82841015613510578335825292840192908401906134f7565b979650505050505050565b6001600160a01b03811681146124bf57600080fd5b6000806040838503121561354357600080fd5b823561354e8161351b565b946020939093013593505050565b60008060006060848603121561357157600080fd5b833561357c8161351b565b9250602084013561358c8161351b565b929592945050506040919091013590565b600080604083850312156135b057600080fd5b50508035926020909101359150565b600080604083850312156135d257600080fd5b82356001600160401b038111156135e857600080fd5b8301601f810185136135f957600080fd5b803560206136096134ce83613463565b82815260059290921b8301810191818101908884111561362857600080fd5b938201935b8385101561364f5784356136408161351b565b8252938201939082019061362d565b98969091013596505050505050565b60006020828403121561367057600080fd5b81356122b78161351b565b634e487b7160e01b600052602160045260246000fd5b60208101600583106136b357634e487b7160e01b600052602160045260246000fd5b91905290565b600080600080600060a086880312156136d157600080fd5b85356136dc8161351b565b945060208601356136ec8161351b565b935060408601356136fc8161351b565b9250606086013561370c8161351b565b9150608086013561371c8161351b565b809150509295509295909350565b600082601f83011261373b57600080fd5b8135602061374b6134ce83613463565b82815260059290921b8401810191818101908684111561376a57600080fd5b8286015b84811015613785578035835291830191830161376e565b509695505050505050565b6000806000606084860312156137a557600080fd5b83356001600160401b03808211156137bc57600080fd5b6137c88783880161372a565b945060208601359150808211156137de57600080fd5b506137eb8682870161372a565b925050604084013590509250925092565b6000806040838503121561380f57600080fd5b82356001600160401b0381111561382557600080fd5b6138318582860161372a565b95602094909401359450505050565b80151581146124bf57600080fd5b6000806040838503121561386157600080fd5b823561386c8161351b565b9150602083013561387c81613840565b809150509250929050565b6000806000806080858703121561389d57600080fd5b84356138a88161351b565b935060208501356138b88161351b565b92506040850135915060608501356001600160401b038111156138da57600080fd5b8501601f810187136138eb57600080fd5b6138fa87823560208401613359565b91505092959194509250565b60006020828403121561391857600080fd5b81356122b781613840565b6000806040838503121561393657600080fd5b82356139418161351b565b9150602083013561387c8161351b565b6000806040838503121561396457600080fd5b82356001600160401b0381111561397a57600080fd5b6139868582860161372a565b925050602083013561387c8161351b565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b600181811c908216806139e057607f821691505b60208210811415613a0157634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b6000600019821415613a4757613a47613a1d565b5060010190565b6000816000190483118215151615613a6857613a68613a1d565b500290565b634e487b7160e01b600052601260045260246000fd5b600082613a9257613a92613a6d565b500490565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b60008219821115613ae157613ae1613a1d565b500190565b600060208284031215613af857600080fd5b5051919050565b600060208284031215613b1157600080fd5b81516122b781613840565b602080825260149082015273115e18d959591cc81dd85b1b195d081b1a5b5a5d60621b604082015260600190565b60208082526017908201527f576f756c6420657863656564206d617820737570706c79000000000000000000604082015260600190565b60208082526014908201527329b2b73a1034b731b7b93932b1ba1022ba3432b960611b604082015260600190565b60609190911b6bffffffffffffffffffffffff1916815260140190565b600082821015613bde57613bde613a1d565b500390565b60208082526033908201527f455243373231413a207472616e7366657220746f206e6f6e204552433732315260408201527232b1b2b4bb32b91034b6b83632b6b2b73a32b960691b606082015260800190565b60008351613c488184602088016133f8565b835190830190613c5c8183602088016133f8565b64173539b7b760d91b9101908152600501949350505050565b600060208284031215613c8757600080fd5b81516122b78161351b565b60006001600160801b0383811690831681811015613cb257613cb2613a1d565b039392505050565b60006001600160801b03808316818516808303821115613cdc57613cdc613a1d565b01949350505050565b600081613cf457613cf4613a1d565b506000190190565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090613d2f90830184613424565b9695505050505050565b600060208284031215613d4b57600080fd5b81516122b7816132c7565b600082613d6557613d65613a6d565b50069056fea264697066735822122009243fc4a927fd69fa01fee22175908a9527584d363961fd4d315cbb6930c4bf64736f6c634300080a003300000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000013b100000000000000000000000000000000000000000000000000f8b0a10e4700000000000000000000000000000000000000000000000000000000000000000032000000000000000000000000a5409ec958c83c3f309868babaca7c86dcb077c1000000000000000000000000000000000000000000000000000000000000003368747470733a2f2f747572662d6173736574732e73332e75732d776573742d312e616d617a6f6e6177732e636f6d2f6170692f00000000000000000000000000

Deployed Bytecode

0x60806040526004361061036f5760003560e01c806370a08231116101c6578063af8b9712116100f7578063d7224ba011610095578063e985e9c51161006f578063e985e9c5146109ca578063f2fde38b146109ea578063f86e387a14610a0a578063fa9965de14610a2a57600080fd5b8063d7224ba01461097f578063dcff26e114610995578063e43082f7146109aa57600080fd5b8063c87b56dd116100d1578063c87b56dd146108fb578063cfa36f6e1461091b578063d547cfb714610954578063d5abeb011461096957600080fd5b8063af8b9712146108a6578063b7f47d32146108bb578063b88d4fde146108db57600080fd5b80638da5cb5b1161016457806395f18b461161013e57806395f18b461461084a578063a035b1fe1461085d578063a22cb46514610873578063a682ad621461089357600080fd5b80638da5cb5b1461080457806390958dd71461082257806395d89b411461083557600080fd5b80638251449d116101a05780638251449d1461076357806383b65c5814610783578063869be9ee146107a25780638ada528e146107b557600080fd5b806370a0823114610707578063715018a6146107275780638125092f1461073c57600080fd5b806331bb9716116102a05780634c000e3d1161023e57806355f804b31161021857806355f804b31461069d5780635b5a8c5a146106bd5780636352211e146106d2578063685d0fd2146106f257600080fd5b80634c000e3d146106385780634f6ccce71461066857806355dd574c1461068857600080fd5b806342842e0e1161027a57806342842e0e146105c3578063435c35b6146105e3578063473861e3146105f857806349df728c1461061857600080fd5b806331bb97161461057f578063380d831b146105995780633ccfd60b146105ae57600080fd5b80630a766a021161030d57806323b872dd116102e757806323b872dd146104e057806328d7b276146105005780632a55205a146105205780632f745c591461055f57600080fd5b80630a766a021461048c57806318160ddd146104ac5780631f3f27ba146104cb57600080fd5b806306fdde031161034957806306fdde03146103f2578063081812fc1461041457806308b4ebcf1461044c578063095ea7b31461046c57600080fd5b806301ffc9a71461037b578063034e8bd8146103b057806305f7f3ba146103d257600080fd5b3661037657005b600080fd5b34801561038757600080fd5b5061039b6103963660046132dd565b610a4a565b60405190151581526020015b60405180910390f35b3480156103bc57600080fd5b506103d06103cb3660046132fa565b610a75565b005b3480156103de57600080fd5b506103d06103ed3660046133b0565b610aad565b3480156103fe57600080fd5b50610407610b41565b6040516103a79190613450565b34801561042057600080fd5b5061043461042f3660046132fa565b610bd3565b6040516001600160a01b0390911681526020016103a7565b34801561045857600080fd5b506103d0610467366004613486565b610c5e565b34801561047857600080fd5b506103d0610487366004613530565b610cec565b34801561049857600080fd5b506103d06104a73660046132fa565b610e04565b3480156104b857600080fd5b506000545b6040519081526020016103a7565b3480156104d757600080fd5b506103d0610e33565b3480156104ec57600080fd5b506103d06104fb36600461355c565b610ecb565b34801561050c57600080fd5b506103d061051b3660046132fa565b610ed6565b34801561052c57600080fd5b5061054061053b36600461359d565b610f05565b604080516001600160a01b0390931683526020830191909152016103a7565b34801561056b57600080fd5b506104bd61057a366004613530565b610f81565b34801561058b57600080fd5b5060195461039b9060ff1681565b3480156105a557600080fd5b506103d06110ee565b3480156105ba57600080fd5b506103d0611124565b3480156105cf57600080fd5b506103d06105de36600461355c565b6112dc565b3480156105ef57600080fd5b506103d06112f7565b34801561060457600080fd5b506103d06106133660046135bf565b61132b565b34801561062457600080fd5b506103d061063336600461365e565b6114b1565b34801561064457600080fd5b5061039b6106533660046132fa565b600d6020526000908152604090205460ff1681565b34801561067457600080fd5b506104bd6106833660046132fa565b6115ba565b34801561069457600080fd5b506103d061161c565b3480156106a957600080fd5b506103d06106b83660046133b0565b611650565b3480156106c957600080fd5b506104076116dc565b3480156106de57600080fd5b506104346106ed3660046132fa565b61176a565b3480156106fe57600080fd5b506103d061177c565b34801561071357600080fd5b506104bd61072236600461365e565b6117b0565b34801561073357600080fd5b506103d0611841565b34801561074857600080fd5b50600a546107569060ff1681565b6040516103a79190613691565b34801561076f57600080fd5b506103d061077e3660046136b9565b611875565b34801561078f57600080fd5b5060195461039b90610100900460ff1681565b6103d06107b03660046132fa565b6118fe565b3480156107c157600080fd5b506107ca611a30565b604080516001600160a01b03968716815294861660208601529285169284019290925283166060830152909116608082015260a0016103a7565b34801561081057600080fd5b506008546001600160a01b0316610434565b6103d0610830366004613790565b611aaa565b34801561084157600080fd5b50610407611ccf565b6103d06108583660046137fc565b611cde565b34801561086957600080fd5b506104bd601a5481565b34801561087f57600080fd5b506103d061088e36600461384e565b611e89565b6103d06108a13660046137fc565b611f4e565b3480156108b257600080fd5b506103d06120e0565b3480156108c757600080fd5b50600e54610434906001600160a01b031681565b3480156108e757600080fd5b506103d06108f6366004613887565b612119565b34801561090757600080fd5b506104076109163660046132fa565b612152565b34801561092757600080fd5b5061039b61093636600461365e565b6001600160a01b03166000908152600c602052604090205460011490565b34801561096057600080fd5b506104076122be565b34801561097557600080fd5b506104bd60185481565b34801561098b57600080fd5b506104bd60075481565b3480156109a157600080fd5b506103d06122cb565b3480156109b657600080fd5b506103d06109c5366004613906565b612306565b3480156109d657600080fd5b5061039b6109e5366004613923565b61234a565b3480156109f657600080fd5b506103d0610a0536600461365e565b612427565b348015610a1657600080fd5b5061039b610a25366004613951565b6124c2565b348015610a3657600080fd5b506103d0610a45366004613530565b612527565b600063152a902d60e11b6001600160e01b031983161480610a6f5750610a6f826125af565b92915050565b6008546001600160a01b03163314610aa85760405162461bcd60e51b8152600401610a9f90613997565b60405180910390fd5b601655565b6008546001600160a01b03163314610ad75760405162461bcd60e51b8152600401610a9f90613997565b60195460ff1615610b2a5760405162461bcd60e51b815260206004820152601b60248201527f7365744d7973746572795a6f6e65557269206973206c6f636b656400000000006044820152606401610a9f565b8051610b3d90601e906020840190613237565b5050565b606060018054610b50906139cc565b80601f0160208091040260200160405190810160405280929190818152602001828054610b7c906139cc565b8015610bc95780601f10610b9e57610100808354040283529160200191610bc9565b820191906000526020600020905b815481529060010190602001808311610bac57829003601f168201915b5050505050905090565b6000610be0826000541190565b610c425760405162461bcd60e51b815260206004820152602d60248201527f455243373231413a20617070726f76656420717565727920666f72206e6f6e6560448201526c3c34b9ba32b73a103a37b5b2b760991b6064820152608401610a9f565b506000908152600560205260409020546001600160a01b031690565b6008546001600160a01b03163314610c885760405162461bcd60e51b8152600401610a9f90613997565b60005b8151811015610b3d576001600d6000848481518110610cac57610cac613a07565b6020026020010151815260200190815260200160002060006101000a81548160ff0219169083151502179055508080610ce490613a33565b915050610c8b565b6000610cf78261176a565b9050806001600160a01b0316836001600160a01b03161415610d665760405162461bcd60e51b815260206004820152602260248201527f455243373231413a20617070726f76616c20746f2063757272656e74206f776e60448201526132b960f11b6064820152608401610a9f565b336001600160a01b0382161480610d825750610d82813361234a565b610df45760405162461bcd60e51b815260206004820152603960248201527f455243373231413a20617070726f76652063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f76656420666f7220616c6c000000000000006064820152608401610a9f565b610dff83838361261a565b505050565b6008546001600160a01b03163314610e2e5760405162461bcd60e51b8152600401610a9f90613997565b601555565b6008546001600160a01b03163314610e5d5760405162461bcd60e51b8152600401610a9f90613997565b60175460ff1615610ea45760405162461bcd60e51b8152602060048201526011602482015270121448185b1c9958591e481b5a5b9d1959607a1b6044820152606401610a9f565b600f54610ebc906001600160a01b0316600180612676565b6017805460ff19166001179055565b610dff8383836126b4565b6008546001600160a01b03163314610f005760405162461bcd60e51b8152600401610a9f90613997565b601455565b600080610f13846000541190565b610f535760405162461bcd60e51b81526020600482015260116024820152702737b732bc34b9ba32b73a103a37b5b2b760791b6044820152606401610a9f565b6013546001600160a01b03166064610f6c856005613a4e565b610f769190613a83565b915091509250929050565b6000610f8c836117b0565b8210610fe55760405162461bcd60e51b815260206004820152602260248201527f455243373231413a206f776e657220696e646578206f7574206f6620626f756e604482015261647360f01b6064820152608401610a9f565b600080549080805b8381101561108e576000818152600360209081526040918290208251808401909352546001600160a01b038116808452600160a01b9091046001600160401b0316918301919091521561103f57805192505b876001600160a01b0316836001600160a01b0316141561107b578684141561106d57509350610a6f92505050565b8361107781613a33565b9450505b508061108681613a33565b915050610fed565b5060405162461bcd60e51b815260206004820152602e60248201527f455243373231413a20756e61626c6520746f2067657420746f6b656e206f662060448201526d0deeedccae440c4f240d2dcc8caf60931b6064820152608401610a9f565b6008546001600160a01b031633146111185760405162461bcd60e51b8152600401610a9f90613997565b6111226004612a3a565b565b600260095414156111475760405162461bcd60e51b8152600401610a9f90613a97565b60026009556008546001600160a01b031633146111765760405162461bcd60e51b8152600401610a9f90613997565b476000611184606483613a83565b61118f906005613a4e565b6010546040519192506001600160a01b03169082156108fc029083906000818181858888f193505050501580156111ca573d6000803e3d6000fd5b506011546040516001600160a01b039091169082156108fc029083906000818181858888f19350505050158015611205573d6000803e3d6000fd5b50600f546040516001600160a01b039091169082156108fc029083906000818181858888f19350505050158015611240573d6000803e3d6000fd5b50600061124f61019084613a83565b61125a906007613a4e565b6012546040519192506001600160a01b03169082156108fc029083906000818181858888f19350505050158015611295573d6000803e3d6000fd5b5060135460405147916001600160a01b03169082156108fc029083906000818181858888f193505050501580156112d0573d6000803e3d6000fd5b50506001600955505050565b610dff83838360405180602001604052806000815250612119565b6008546001600160a01b031633146113215760405162461bcd60e51b8152600401610a9f90613997565b6111226003612a3a565b6002600954141561134e5760405162461bcd60e51b8152600401610a9f90613a97565b60026009556008546001600160a01b0316331461137d5760405162461bcd60e51b8152600401610a9f90613997565b60185481835161138d9190613a4e565b60005461139a9190613ace565b11156113e85760405162461bcd60e51b815260206004820152601760248201527f776f756c6420657863656564206d617820737570706c790000000000000000006044820152606401610a9f565b601b548183516113f89190613a4e565b601c546114059190613ace565b11156114535760405162461bcd60e51b815260206004820152601e60248201527f776f756c6420657863656564206d617820667269656e6420737570706c7900006044820152606401610a9f565b60005b82518110156114a75761148483828151811061147457611474613a07565b6020026020010151836000612676565b81601c546114929190613ace565b601c558061149f81613a33565b915050611456565b5050600160095550565b6008546001600160a01b031633146114db5760405162461bcd60e51b8152600401610a9f90613997565b6040516370a0823160e01b81523060048201526000906001600160a01b038316906370a0823190602401602060405180830381865afa158015611522573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115469190613ae6565b60405163a9059cbb60e01b8152336004820152602481018290529091506001600160a01b0383169063a9059cbb906044016020604051808303816000875af1158015611596573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610dff9190613aff565b6000805482106116185760405162461bcd60e51b815260206004820152602360248201527f455243373231413a20676c6f62616c20696e646578206f7574206f6620626f756044820152626e647360e81b6064820152608401610a9f565b5090565b6008546001600160a01b031633146116465760405162461bcd60e51b8152600401610a9f90613997565b6111226002612a3a565b6008546001600160a01b0316331461167a5760405162461bcd60e51b8152600401610a9f90613997565b601954610100900460ff16156116c95760405162461bcd60e51b81526020600482015260146024820152731cd95d10985cd9555492481a5cc81b1bd8dad95960621b6044820152606401610a9f565b8051610b3d90601d906020840190613237565b601e80546116e9906139cc565b80601f0160208091040260200160405190810160405280929190818152602001828054611715906139cc565b80156117625780601f1061173757610100808354040283529160200191611762565b820191906000526020600020905b81548152906001019060200180831161174557829003601f168201915b505050505081565b600061177582612a8b565b5192915050565b6008546001600160a01b031633146117a65760405162461bcd60e51b8152600401610a9f90613997565b6111226001612a3a565b60006001600160a01b03821661181c5760405162461bcd60e51b815260206004820152602b60248201527f455243373231413a2062616c616e636520717565727920666f7220746865207a60448201526a65726f206164647265737360a81b6064820152608401610a9f565b506001600160a01b03166000908152600460205260409020546001600160801b031690565b6008546001600160a01b0316331461186b5760405162461bcd60e51b8152600401610a9f90613997565b6111226000612c34565b6008546001600160a01b0316331461189f5760405162461bcd60e51b8152600401610a9f90613997565b600f80546001600160a01b03199081166001600160a01b03978816179091556010805482169587169590951790945560118054851693861693909317909255601280548416918516919091179055601380549092169216919091179055565b336000908152600b6020526040902054819060039061191e908390613ace565b111561193c5760405162461bcd60e51b8152600401610a9f90613b1c565b6018548161194960005490565b6119539190613ace565b11156119715760405162461bcd60e51b8152600401610a9f90613b4a565b8180601a546119809190613a4e565b341461199e5760405162461bcd60e51b8152600401610a9f90613b81565b600260095414156119c15760405162461bcd60e51b8152600401610a9f90613a97565b60026009556003600a5460ff1660048111156119df576119df61367b565b14611a245760405162461bcd60e51b815260206004820152601560248201527424ba13b9903737ba1033b7903a34b6b2903cb2ba1760591b6044820152606401610a9f565b6114a733846001612676565b600080808080336001600160a01b0316611a526008546001600160a01b031690565b6001600160a01b031614611a785760405162461bcd60e51b8152600401610a9f90613997565b5050600f546010546011546012546013546001600160a01b039485169893851697509184169550831693509190911690565b336000908152600b60205260409020548190600390611aca908390613ace565b1115611ae85760405162461bcd60e51b8152600401610a9f90613b1c565b60185481611af560005490565b611aff9190613ace565b1115611b1d5760405162461bcd60e51b8152600401610a9f90613b4a565b6002600a5460ff166004811115611b3657611b3661367b565b1480611b5857506003600a5460ff166004811115611b5657611b5661367b565b145b611b9b5760405162461bcd60e51b8152602060048201526014602482015273139bdd081c1c995cd85b19481d1a5b59481e595d60621b6044820152606401610a9f565b60026009541415611bbe5760405162461bcd60e51b8152600401610a9f90613a97565b6002600955604051600090611bd7903390602001613baf565b604051602081830303815290604052805190602001209050611bfc8560145483612c86565b611c3b5760405162461bcd60e51b815260206004820152601060248201526f139bdd081bdb88185b1b1bdddb1a5cdd60821b6044820152606401610a9f565b6000839050611c4d8560155484612c86565b15611c8a57336000908152600c6020526040902054600114611c8a57611c74600182613bcc565b336000908152600c602052604090206001905590505b80601a54611c989190613a4e565b3414611cb65760405162461bcd60e51b8152600401610a9f90613b81565b611cc233856001612676565b5050600160095550505050565b606060028054610b50906139cc565b336000908152600b60205260409020548190600390611cfe908390613ace565b1115611d1c5760405162461bcd60e51b8152600401610a9f90613b1c565b60185481611d2960005490565b611d339190613ace565b1115611d515760405162461bcd60e51b8152600401610a9f90613b4a565b60026009541415611d745760405162461bcd60e51b8152600401610a9f90613a97565b60026009556003600a5460ff166004811115611d9257611d9261367b565b14611dd75760405162461bcd60e51b815260206004820152601560248201527424ba13b9903737ba1033b7903a34b6b2903cb2ba1760591b6044820152606401610a9f565b600033604051602001611dea9190613baf565b6040516020818303038152906040528051906020012090506000839050611e148560155484612c86565b15611e5157336000908152600c6020526040902054600114611e5157611e3b600182613bcc565b336000908152600c602052604090206001905590505b80601a54611e5f9190613a4e565b3414611e7d5760405162461bcd60e51b8152600401610a9f90613b81565b6112d033856001612676565b6001600160a01b038216331415611ee25760405162461bcd60e51b815260206004820152601a60248201527f455243373231413a20617070726f766520746f2063616c6c65720000000000006044820152606401610a9f565b3360008181526006602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b336000908152600b60205260409020548190600390611f6e908390613ace565b1115611f8c5760405162461bcd60e51b8152600401610a9f90613b1c565b60185481611f9960005490565b611fa39190613ace565b1115611fc15760405162461bcd60e51b8152600401610a9f90613b4a565b6001600a5460ff166004811115611fda57611fda61367b565b1461201f5760405162461bcd60e51b8152602060048201526015602482015274139bdd08199bdd5b99195c9cc81d1a5b59481e595d605a1b6044820152606401610a9f565b600260095414156120425760405162461bcd60e51b8152600401610a9f90613a97565b600260095560405160009061205b903390602001613baf565b6040516020818303038152906040528051906020012090506120808460155483612c86565b6120bc5760405162461bcd60e51b815260206004820152600d60248201526c2737ba1030902337bab73232b960991b6044820152606401610a9f565b336000908152600c60205260409020548390600114611e5157611e3b600182613bcc565b6008546001600160a01b0316331461210a5760405162461bcd60e51b8152600401610a9f90613997565b6019805460ff19166001179055565b6121248484846126b4565b61213084848484612c9c565b61214c5760405162461bcd60e51b8152600401610a9f90613be3565b50505050565b606061215f826000541190565b6121c35760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b6064820152608401610a9f565b6000828152600d602052604081205460ff166121e057601d6121e3565b601e5b80546121ee906139cc565b80601f016020809104026020016040519081016040528092919081815260200182805461221a906139cc565b80156122675780601f1061223c57610100808354040283529160200191612267565b820191906000526020600020905b81548152906001019060200180831161224a57829003601f168201915b50505050509050600081511161228c57604051806020016040528060008152506122b7565b8061229684612d9a565b6040516020016122a7929190613c36565b6040516020818303038152906040525b9392505050565b601d80546116e9906139cc565b6008546001600160a01b031633146122f55760405162461bcd60e51b8152600401610a9f90613997565b6019805461ff001916610100179055565b6008546001600160a01b031633146123305760405162461bcd60e51b8152600401610a9f90613997565b601780549115156101000261ff0019909216919091179055565b600e546017546000916001600160a01b031690610100900460ff1680156123e6575060405163c455279160e01b81526001600160a01b038581166004830152808516919083169063c455279190602401602060405180830381865afa1580156123b7573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906123db9190613c75565b6001600160a01b0316145b156123f5576001915050610a6f565b6001600160a01b0380851660009081526006602090815260408083209387168352929052205460ff165b949350505050565b6008546001600160a01b031633146124515760405162461bcd60e51b8152600401610a9f90613997565b6001600160a01b0381166124b65760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610a9f565b6124bf81612c34565b50565b6008546000906001600160a01b031633146124ef5760405162461bcd60e51b8152600401610a9f90613997565b6000826040516020016125029190613baf565b60405160208183030381529060405280519060200120905061241f8460155483612c86565b6008546001600160a01b031633146125515760405162461bcd60e51b8152600401610a9f90613997565b60175460ff166125a35760405162461bcd60e51b815260206004820152601a60248201527f4f6e6c7920646f2074686973206166746572204851206d696e740000000000006044820152606401610a9f565b610b3d82826000612676565b60006001600160e01b031982166380ac58cd60e01b14806125e057506001600160e01b03198216635b5e139f60e01b145b806125fb57506001600160e01b0319821663780e9d6360e01b145b80610a6f57506301ffc9a760e01b6001600160e01b0319831614610a6f565b60008281526005602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b80156126aa576001600160a01b0383166000908152600b6020526040812080548492906126a4908490613ace565b90915550505b610dff8383612e97565b60006126bf82612a8b565b80519091506000906001600160a01b0316336001600160a01b031614806126f65750336126eb84610bd3565b6001600160a01b0316145b8061270857508151612708903361234a565b9050806127725760405162461bcd60e51b815260206004820152603260248201527f455243373231413a207472616e736665722063616c6c6572206973206e6f74206044820152711bdddb995c881b9bdc88185c1c1c9bdd995960721b6064820152608401610a9f565b846001600160a01b031682600001516001600160a01b0316146127e65760405162461bcd60e51b815260206004820152602660248201527f455243373231413a207472616e736665722066726f6d20696e636f72726563746044820152651037bbb732b960d11b6064820152608401610a9f565b6001600160a01b03841661284a5760405162461bcd60e51b815260206004820152602560248201527f455243373231413a207472616e7366657220746f20746865207a65726f206164604482015264647265737360d81b6064820152608401610a9f565b61285a600084846000015161261a565b6001600160a01b038516600090815260046020526040812080546001929061288c9084906001600160801b0316613c92565b82546101009290920a6001600160801b038181021990931691831602179091556001600160a01b038616600090815260046020526040812080546001945090926128d891859116613cba565b82546001600160801b039182166101009390930a9283029190920219909116179055506040805180820182526001600160a01b0380871682526001600160401b03428116602080850191825260008981526003909152948520935184549151909216600160a01b026001600160e01b0319909116919092161717905561295f846001613ace565b6000818152600360205260409020549091506001600160a01b03166129f057612989816000541190565b156129f05760408051808201825284516001600160a01b0390811682526020808701516001600160401b039081168285019081526000878152600390935294909120925183549451909116600160a01b026001600160e01b03199094169116179190911790555b83856001600160a01b0316876001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45b505050505050565b6008546001600160a01b03163314612a645760405162461bcd60e51b8152600401610a9f90613997565b600a805482919060ff19166001836004811115612a8357612a8361367b565b021790555050565b6040805180820190915260008082526020820152612aaa826000541190565b612b095760405162461bcd60e51b815260206004820152602a60248201527f455243373231413a206f776e657220717565727920666f72206e6f6e657869736044820152693a32b73a103a37b5b2b760b11b6064820152608401610a9f565b60007f00000000000000000000000000000000000000000000000000000000000000038310612b6a57612b5c7f000000000000000000000000000000000000000000000000000000000000000384613bcc565b612b67906001613ace565b90505b825b818110612bd3576000818152600360209081526040918290208251808401909352546001600160a01b038116808452600160a01b9091046001600160401b03169183019190915215612bc057949350505050565b5080612bcb81613ce5565b915050612b6c565b5060405162461bcd60e51b815260206004820152602f60248201527f455243373231413a20756e61626c6520746f2064657465726d696e652074686560448201526e1037bbb732b91037b3103a37b5b2b760891b6064820152608401610a9f565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b600082612c938584612eb1565b14949350505050565b60006001600160a01b0384163b15612d8f57604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290612ce0903390899088908890600401613cfc565b6020604051808303816000875af1925050508015612d1b575060408051601f3d908101601f19168201909252612d1891810190613d39565b60015b612d75573d808015612d49576040519150601f19603f3d011682016040523d82523d6000602084013e612d4e565b606091505b508051612d6d5760405162461bcd60e51b8152600401610a9f90613be3565b805181602001fd5b6001600160e01b031916630a85bd0160e11b14905061241f565b506001949350505050565b606081612dbe5750506040805180820190915260018152600360fc1b602082015290565b8160005b8115612de85780612dd281613a33565b9150612de19050600a83613a83565b9150612dc2565b6000816001600160401b03811115612e0257612e02613313565b6040519080825280601f01601f191660200182016040528015612e2c576020820181803683370190505b5090505b841561241f57612e41600183613bcc565b9150612e4e600a86613d56565b612e59906030613ace565b60f81b818381518110612e6e57612e6e613a07565b60200101906001600160f81b031916908160001a905350612e90600a86613a83565b9450612e30565b610b3d828260405180602001604052806000815250612f5d565b600081815b8451811015612f55576000858281518110612ed357612ed3613a07565b60200260200101519050808311612f15576040805160208101859052908101829052606001604051602081830303815290604052805190602001209250612f42565b60408051602081018390529081018490526060016040516020818303038152906040528051906020012092505b5080612f4d81613a33565b915050612eb6565b509392505050565b6000546001600160a01b038416612fc05760405162461bcd60e51b815260206004820152602160248201527f455243373231413a206d696e7420746f20746865207a65726f206164647265736044820152607360f81b6064820152608401610a9f565b612fcb816000541190565b156130185760405162461bcd60e51b815260206004820152601d60248201527f455243373231413a20746f6b656e20616c7265616479206d696e7465640000006044820152606401610a9f565b7f00000000000000000000000000000000000000000000000000000000000000038311156130935760405162461bcd60e51b815260206004820152602260248201527f455243373231413a207175616e7469747920746f206d696e7420746f6f2068696044820152610ced60f31b6064820152608401610a9f565b6001600160a01b0384166000908152600460209081526040918290208251808401845290546001600160801b038082168352600160801b90910416918101919091528151808301909252805190919081906130ef908790613cba565b6001600160801b0316815260200185836020015161310d9190613cba565b6001600160801b039081169091526001600160a01b0380881660008181526004602090815260408083208751978301518716600160801b029790961696909617909455845180860186529182526001600160401b034281168386019081528883526003909552948120915182549451909516600160a01b026001600160e01b031990941694909216939093179190911790915582905b8581101561322c5760405182906001600160a01b038916906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a46131f06000888488612c9c565b61320c5760405162461bcd60e51b8152600401610a9f90613be3565b8161321681613a33565b925050808061322490613a33565b9150506131a3565b506000819055612a32565b828054613243906139cc565b90600052602060002090601f01602090048101928261326557600085556132ab565b82601f1061327e57805160ff19168380011785556132ab565b828001600101855582156132ab579182015b828111156132ab578251825591602001919060010190613290565b506116189291505b8082111561161857600081556001016132b3565b6001600160e01b0319811681146124bf57600080fd5b6000602082840312156132ef57600080fd5b81356122b7816132c7565b60006020828403121561330c57600080fd5b5035919050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f191681016001600160401b038111828210171561335157613351613313565b604052919050565b60006001600160401b0383111561337257613372613313565b613385601f8401601f1916602001613329565b905082815283838301111561339957600080fd5b828260208301376000602084830101529392505050565b6000602082840312156133c257600080fd5b81356001600160401b038111156133d857600080fd5b8201601f810184136133e957600080fd5b61241f84823560208401613359565b60005b838110156134135781810151838201526020016133fb565b8381111561214c5750506000910152565b6000815180845261343c8160208601602086016133f8565b601f01601f19169290920160200192915050565b6020815260006122b76020830184613424565b60006001600160401b0382111561347c5761347c613313565b5060051b60200190565b6000602080838503121561349957600080fd5b82356001600160401b038111156134af57600080fd5b8301601f810185136134c057600080fd5b80356134d36134ce82613463565b613329565b81815260059190911b820183019083810190878311156134f257600080fd5b928401925b82841015613510578335825292840192908401906134f7565b979650505050505050565b6001600160a01b03811681146124bf57600080fd5b6000806040838503121561354357600080fd5b823561354e8161351b565b946020939093013593505050565b60008060006060848603121561357157600080fd5b833561357c8161351b565b9250602084013561358c8161351b565b929592945050506040919091013590565b600080604083850312156135b057600080fd5b50508035926020909101359150565b600080604083850312156135d257600080fd5b82356001600160401b038111156135e857600080fd5b8301601f810185136135f957600080fd5b803560206136096134ce83613463565b82815260059290921b8301810191818101908884111561362857600080fd5b938201935b8385101561364f5784356136408161351b565b8252938201939082019061362d565b98969091013596505050505050565b60006020828403121561367057600080fd5b81356122b78161351b565b634e487b7160e01b600052602160045260246000fd5b60208101600583106136b357634e487b7160e01b600052602160045260246000fd5b91905290565b600080600080600060a086880312156136d157600080fd5b85356136dc8161351b565b945060208601356136ec8161351b565b935060408601356136fc8161351b565b9250606086013561370c8161351b565b9150608086013561371c8161351b565b809150509295509295909350565b600082601f83011261373b57600080fd5b8135602061374b6134ce83613463565b82815260059290921b8401810191818101908684111561376a57600080fd5b8286015b84811015613785578035835291830191830161376e565b509695505050505050565b6000806000606084860312156137a557600080fd5b83356001600160401b03808211156137bc57600080fd5b6137c88783880161372a565b945060208601359150808211156137de57600080fd5b506137eb8682870161372a565b925050604084013590509250925092565b6000806040838503121561380f57600080fd5b82356001600160401b0381111561382557600080fd5b6138318582860161372a565b95602094909401359450505050565b80151581146124bf57600080fd5b6000806040838503121561386157600080fd5b823561386c8161351b565b9150602083013561387c81613840565b809150509250929050565b6000806000806080858703121561389d57600080fd5b84356138a88161351b565b935060208501356138b88161351b565b92506040850135915060608501356001600160401b038111156138da57600080fd5b8501601f810187136138eb57600080fd5b6138fa87823560208401613359565b91505092959194509250565b60006020828403121561391857600080fd5b81356122b781613840565b6000806040838503121561393657600080fd5b82356139418161351b565b9150602083013561387c8161351b565b6000806040838503121561396457600080fd5b82356001600160401b0381111561397a57600080fd5b6139868582860161372a565b925050602083013561387c8161351b565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b600181811c908216806139e057607f821691505b60208210811415613a0157634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b6000600019821415613a4757613a47613a1d565b5060010190565b6000816000190483118215151615613a6857613a68613a1d565b500290565b634e487b7160e01b600052601260045260246000fd5b600082613a9257613a92613a6d565b500490565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b60008219821115613ae157613ae1613a1d565b500190565b600060208284031215613af857600080fd5b5051919050565b600060208284031215613b1157600080fd5b81516122b781613840565b602080825260149082015273115e18d959591cc81dd85b1b195d081b1a5b5a5d60621b604082015260600190565b60208082526017908201527f576f756c6420657863656564206d617820737570706c79000000000000000000604082015260600190565b60208082526014908201527329b2b73a1034b731b7b93932b1ba1022ba3432b960611b604082015260600190565b60609190911b6bffffffffffffffffffffffff1916815260140190565b600082821015613bde57613bde613a1d565b500390565b60208082526033908201527f455243373231413a207472616e7366657220746f206e6f6e204552433732315260408201527232b1b2b4bb32b91034b6b83632b6b2b73a32b960691b606082015260800190565b60008351613c488184602088016133f8565b835190830190613c5c8183602088016133f8565b64173539b7b760d91b9101908152600501949350505050565b600060208284031215613c8757600080fd5b81516122b78161351b565b60006001600160801b0383811690831681811015613cb257613cb2613a1d565b039392505050565b60006001600160801b03808316818516808303821115613cdc57613cdc613a1d565b01949350505050565b600081613cf457613cf4613a1d565b506000190190565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090613d2f90830184613424565b9695505050505050565b600060208284031215613d4b57600080fd5b81516122b7816132c7565b600082613d6557613d65613a6d565b50069056fea264697066735822122009243fc4a927fd69fa01fee22175908a9527584d363961fd4d315cbb6930c4bf64736f6c634300080a0033

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

00000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000013b100000000000000000000000000000000000000000000000000f8b0a10e4700000000000000000000000000000000000000000000000000000000000000000032000000000000000000000000a5409ec958c83c3f309868babaca7c86dcb077c1000000000000000000000000000000000000000000000000000000000000003368747470733a2f2f747572662d6173736574732e73332e75732d776573742d312e616d617a6f6e6177732e636f6d2f6170692f00000000000000000000000000

-----Decoded View---------------
Arg [0] : baseTokenURI_ (string): https://turf-assets.s3.us-west-1.amazonaws.com/api/
Arg [1] : maxSupply_ (uint256): 5041
Arg [2] : price_ (uint256): 70000000000000000
Arg [3] : maxFriendSupply_ (uint256): 50
Arg [4] : openSeaProxyRegistryAddress_ (address): 0xa5409ec958C83C3f309868babACA7c86DCB077c1

-----Encoded View---------------
8 Constructor Arguments found :
Arg [0] : 00000000000000000000000000000000000000000000000000000000000000a0
Arg [1] : 00000000000000000000000000000000000000000000000000000000000013b1
Arg [2] : 00000000000000000000000000000000000000000000000000f8b0a10e470000
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000032
Arg [4] : 000000000000000000000000a5409ec958c83c3f309868babaca7c86dcb077c1
Arg [5] : 0000000000000000000000000000000000000000000000000000000000000033
Arg [6] : 68747470733a2f2f747572662d6173736574732e73332e75732d776573742d31
Arg [7] : 2e616d617a6f6e6177732e636f6d2f6170692f00000000000000000000000000


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.