ETH Price: $3,173.98 (+4.52%)

Token

Mutant Kong Club (MKC)
 

Overview

Max Total Supply

3,572 MKC

Holders

556

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Filtered by Token Holder
lowskii.eth
Balance
6 MKC
0xaa5d1125dcd349455dc5f04911bcb315af10c847
Loading...
Loading
Loading...
Loading
Loading...
Loading

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

Contract Source Code Verified (Exact Match)

Contract Name:
MutantKongClub

Compiler Version
v0.8.10+commit.fc410830

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, MIT license
File 1 of 15 : MutantKongClub.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "Ownable.sol";
import "Strings.sol";
import "SafeMath.sol";

import "ERC721A.sol";
import "ERC721ANamable.sol";
import "IVamirToken.sol";


contract MutantKongClub is ERC721ANamable, Ownable {  
    using Address for address;
    using SafeMath for uint256;
    using Strings for uint128;

    // Sale Controls
    bool public presaleActive = false;
    bool public saleActive = false;
    bool public freeActive = false;

    // Mint Price
    uint256 public public_price = 0.03 ether;
    uint256 public pre_price = 0.02 ether;

    uint public MAX_SUPPLY = 10000;
    uint public FREE_SUPPLY = 215;

    address private signer_wl;
    address private signer_free;

    mapping(address => bool) public FreeCap;
    mapping(address => uint256) public PreCap;
    mapping(address => uint256) public PublicCap;

    IVamirToken public vamirtoken;

    // Create New TokenURI
    function _baseURI() internal view virtual override returns (string memory) {
        return baseTokenURI;
    }


    // Base Link That Leads To Metadata
    string public baseTokenURI;

    // Contract Construction
    constructor ( ) 
    ERC721ANamable ("Mutant Kong Club", "MKC", 10, 10015) {}

    // ================ Mint Functions ================ //

    // Minting Function
    function MintPublic(uint256 _amount) external payable {
        uint256 supply = totalSupply();
        require(saleActive, "PublicSale Not Activated");
        require(supply+_amount<=MAX_SUPPLY-FREE_SUPPLY, "Exceed Max Supply");
        require(PublicCap[msg.sender]+_amount<=10, "Exceed Max 10 mints");
        if(public_price > 0) require(msg.value >= _amount*public_price, "Not Enough ETH");
        PublicCap[msg.sender] += _amount;
        _safeMint( msg.sender, _amount);
    }

    // Presale Minting
    function MintPresale(uint256 _amount, bytes memory _signature) public payable {
        uint256 supply = totalSupply();
        address rarity = rarityCheck(msg.sender, _signature);
        require(rarity == signer_free || rarity == signer_wl,"Not Whitelisted");
        if(rarity == signer_wl){
            require(presaleActive, "Presale Not Activated");
            require(PreCap[msg.sender]+_amount<=5, "Exceed Max 5 mints");
            require(msg.value >= _amount*pre_price, "Not Enough ETH");
            require(supply+_amount<=MAX_SUPPLY-FREE_SUPPLY, "Exceed Max Supply");
            PreCap[msg.sender] += _amount;
            _safeMint( msg.sender, _amount);
        }else if(rarity == signer_free){
            require(freeActive, "Free Not Activated");
            require(FREE_SUPPLY>0, "Free Supply Exhausted");
            require(!FreeCap[msg.sender], "Already Free Minted");
            require(_amount==1,"Only 1 Free Mint Possible");
            require(supply+_amount<=MAX_SUPPLY, "Exceed Max Supply");
            FreeCap[msg.sender] = true;
            FREE_SUPPLY -= 1;
            _safeMint( msg.sender, _amount);
        }
        
    }



    // ================ Only Owner Functions ================ //

    // Gift Function - Collabs & Giveaways
    function gift(address _to, uint256 _amount) external onlyOwner() {
        uint256 supply = totalSupply();
        require( supply + _amount <= MAX_SUPPLY+15, "Not Enough Supply" );
        _safeMint( _to, _amount );
    }

     // Incase ETH Price Rises Rapidly
    function setPrice(uint256 newPrice) public onlyOwner() {
        public_price = newPrice;
    }

    // Set New baseURI
    function setBaseURI(string memory baseURI) public onlyOwner {
        baseTokenURI = baseURI;
    }

    // ================ Sale Controls ================ //


    // Pre Sale On/Off
    function setPresaleActive(bool val) public onlyOwner {
        presaleActive = val;
    }


    // Public Sale On/Off
    function setSaleActive(bool val) public onlyOwner {
        saleActive = val;
    }

    // Free Sale On/Off
    function setFreeActive(bool val) public onlyOwner {
        freeActive = val;
    }

    // Vamir Token

    function setVamirToken(address _vamir) external onlyOwner {
		vamirtoken = IVamirToken(_vamir);
	}


    // Change Name

    function changeName(uint256 tokenId, string memory newName) public override {
        require(nameChangePrice<= vamirtoken.balanceOf(msg.sender), "low balance");
        require(nameChangePrice <= vamirtoken.allowance(msg.sender, address(this)), "low allowance");
		vamirtoken.burn(msg.sender, nameChangePrice);
		super.changeName(tokenId, newName);
	}

    function changeBio(uint256 tokenId, string memory _bio) public override {
        require(BIO_CHANGE_PRICE<= vamirtoken.balanceOf(msg.sender), "low balance");
        require(BIO_CHANGE_PRICE <= vamirtoken.allowance(msg.sender, address(this)), "low allowance");
		vamirtoken.burn(msg.sender, BIO_CHANGE_PRICE);
		super.changeBio(tokenId, _bio);
	}

    function changeNamePrice(uint256 _price) external onlyOwner {
		nameChangePrice = _price;
	}

    // ================ Signer ================ //

    function setSigners(address _free, address _wl) public onlyOwner{
        signer_free = _free;
        signer_wl = _wl;
    }

    function getEthSignedMessageHash(bytes32 _messageHash) public pure returns (bytes32) {
        /*
        Signature is produced by signing a keccak256 hash with the following format:
        "\x19Ethereum Signed Message\n" + len(msg) + msg
        */
        return
        keccak256(
            abi.encodePacked("\x19Ethereum Signed Message:\n32", _messageHash)
        );
    }

    function rarityCheck(address user, bytes memory signature) public view returns (address) {
      bytes32 messageHash = keccak256(abi.encode(user));
      bytes32 ethSignedMessageHash = getEthSignedMessageHash(messageHash);

      return recoverSigner(ethSignedMessageHash, signature);
    }

    function recoverSigner(bytes32 _ethSignedMessageHash, bytes memory _signature) private pure returns (address) {
        (bytes32 r, bytes32 s, uint8 v) = splitSignature(_signature);
        return ecrecover(_ethSignedMessageHash, v, r, s);
    }

    function splitSignature(bytes memory sig) private pure returns (bytes32 r, bytes32 s, uint8 v) {
        require(sig.length == 65, "sig invalid");

        assembly {
        /*
        First 32 bytes stores the length of the signature

        add(sig, 32) = pointer of sig + 32
        effectively, skips first 32 bytes of signature

        mload(p) loads next 32 bytes starting at the memory address p into memory
        */

        // first 32 bytes, after the length prefix
            r := mload(add(sig, 32))
        // second 32 bytes
            s := mload(add(sig, 64))
        // final byte (first byte of the next 32 bytes)
            v := byte(0, mload(add(sig, 96)))
        }

        // implicitly return (r, s, v)
    }

    // ================ Withdraw Functions ================ //

    function withdraw() public onlyOwner{
        payable(owner()).transfer(address(this).balance);
    }


}

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

pragma solidity ^0.8.0;

import "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 3 of 15 : 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 4 of 15 : 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 (bytes 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 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 5 of 15 : SafeMath.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/math/SafeMath.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

File 6 of 15 : ERC721A.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "IERC721.sol";
import "IERC721Receiver.sol";
import "IERC721Metadata.sol";
import "IERC721Enumerable.sol";
import "Address.sol";
import "Context.sol";
import "Strings.sol";
import "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..).
 *
 * Assumes the number of issuable tokens (collection size) is capped and fits in a uint128.
 *
 * 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 collectionSize;
  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.
   * `collectionSize_` refers to how many tokens are in the collection.
   */
  constructor(
    string memory name_,
    string memory symbol_,
    uint256 maxBatchSize_,
    uint256 collectionSize_
  ) {
    require(
      collectionSize_ > 0,
      "ERC721A: collection must have a nonzero supply"
    );
    require(maxBatchSize_ > 0, "ERC721A: max batch size must be nonzero");
    _name = name_;
    _symbol = symbol_;
    maxBatchSize = maxBatchSize_;
    collectionSize = collectionSize_;
  }

  /**
   * @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(collectionSize). 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:
   *
   * - there must be `quantity` tokens remaining unminted in the total collection.
   * - `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 > collectionSize - 1) {
      endIndex = collectionSize - 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 7 of 15 : IERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721.sol)

pragma solidity ^0.8.0;

import "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 8 of 15 : 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 9 of 15 : 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 15 : 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 15 : 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 15 : 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 15 : ERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol)

pragma solidity ^0.8.0;

import "IERC165.sol";

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

File 14 of 15 : ERC721ANamable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "IERC721.sol";
import "IERC721Receiver.sol";
import "IERC721Metadata.sol";
import "IERC721Enumerable.sol";
import "Address.sol";
import "Context.sol";
import "Strings.sol";
import "ERC165.sol";
import "ERC721A.sol";

contract ERC721ANamable is ERC721A {

	uint256 public nameChangePrice = 300 ether;
	uint256 constant public BIO_CHANGE_PRICE = 100 ether;

	mapping(uint256 => string) public bio;

	// Mapping from token ID to name
	mapping (uint256 => string) private _tokenName;

	// Mapping if certain name string has already been reserved
	mapping (string => bool) private _nameReserved;

	event NameChange (uint256 indexed tokenId, string newName);
	event BioChange (uint256 indexed tokenId, string bio);

	constructor(string memory _name, string memory _symbol, uint256 maxBatchSize_, uint256 collectionSize_) ERC721A(_name, _symbol, maxBatchSize_, collectionSize_) {
		
	}

	function changeBio(uint256 _tokenId, string memory _bio) public virtual {
		address owner = ownerOf(_tokenId);
		require(_msgSender() == owner, "ERC721: caller is not the owner");

		bio[_tokenId] = _bio;
		emit BioChange(_tokenId, _bio); 
	}

	function changeName(uint256 tokenId, string memory newName) public virtual {
		address owner = ownerOf(tokenId);

		require(_msgSender() == owner, "ERC721: caller is not the owner");
		require(validateName(newName) == true, "Not a valid new name");
		require(sha256(bytes(newName)) != sha256(bytes(_tokenName[tokenId])), "New name is same as the current one");
		require(isNameReserved(newName) == false, "Name already reserved");

		// If already named, dereserve old name
		if (bytes(_tokenName[tokenId]).length > 0) {
			toggleReserveName(_tokenName[tokenId], false);
		}
		toggleReserveName(newName, true);
		_tokenName[tokenId] = newName;
		emit NameChange(tokenId, newName);
	}

	/**
	 * @dev Reserves the name if isReserve is set to true, de-reserves if set to false
	 */
	function toggleReserveName(string memory str, bool isReserve) internal {
		_nameReserved[toLower(str)] = isReserve;
	}

	/**
	 * @dev Returns name of the NFT at index.
	 */
	function tokenNameByIndex(uint256 index) public view returns (string memory) {
		return _tokenName[index];
	}

	/**
	 * @dev Returns if the name has been reserved.
	 */
	function isNameReserved(string memory nameString) public view returns (bool) {
		return _nameReserved[toLower(nameString)];
	}

	function validateName(string memory str) public pure returns (bool){
		bytes memory b = bytes(str);
		if(b.length < 1) return false;
		if(b.length > 25) return false; // Cannot be longer than 25 characters
		if(b[0] == 0x20) return false; // Leading space
		if (b[b.length - 1] == 0x20) return false; // Trailing space

		bytes1 lastChar = b[0];

		for(uint i; i<b.length; i++){
			bytes1 char = b[i];

			if (char == 0x20 && lastChar == 0x20) return false; // Cannot contain continous spaces

			if(
				!(char >= 0x30 && char <= 0x39) && //9-0
				!(char >= 0x41 && char <= 0x5A) && //A-Z
				!(char >= 0x61 && char <= 0x7A) && //a-z
				!(char == 0x20) //space
			)
				return false;

			lastChar = char;
		}

		return true;
	}

	 /**
	 * @dev Converts the string to lowercase
	 */
	function toLower(string memory str) public pure returns (string memory){
		bytes memory bStr = bytes(str);
		bytes memory bLower = new bytes(bStr.length);
		for (uint i = 0; i < bStr.length; i++) {
			// Uppercase character
			if ((uint8(bStr[i]) >= 65) && (uint8(bStr[i]) <= 90)) {
				bLower[i] = bytes1(uint8(bStr[i]) + 32);
			} else {
				bLower[i] = bStr[i];
			}
		}
		return string(bLower);
	}
}

File 15 of 15 : IVamirToken.sol
pragma solidity ^0.8.10;


interface IVamirToken {
  function burn(address from, uint256 amount) external;
  function balanceOf(address owner) external view returns(uint256);
  function allowance(address owner, address spender) external view returns(uint256);
}

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

Contract Security Audit

Contract ABI

[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":false,"internalType":"string","name":"bio","type":"string"}],"name":"BioChange","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":false,"internalType":"string","name":"newName","type":"string"}],"name":"NameChange","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":[],"name":"BIO_CHANGE_PRICE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"FREE_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"FreeCap","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"bytes","name":"_signature","type":"bytes"}],"name":"MintPresale","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"MintPublic","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"PreCap","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"PublicCap","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseTokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"bio","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"string","name":"_bio","type":"string"}],"name":"changeBio","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"string","name":"newName","type":"string"}],"name":"changeName","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_price","type":"uint256"}],"name":"changeNamePrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"freeActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_messageHash","type":"bytes32"}],"name":"getEthSignedMessageHash","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"gift","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":[{"internalType":"string","name":"nameString","type":"string"}],"name":"isNameReserved","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":"nameChangePrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"nextOwnerToExplicitlySet","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pre_price","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"presaleActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"public_price","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"},{"internalType":"bytes","name":"signature","type":"bytes"}],"name":"rarityCheck","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"saleActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"baseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"val","type":"bool"}],"name":"setFreeActive","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"val","type":"bool"}],"name":"setPresaleActive","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newPrice","type":"uint256"}],"name":"setPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"val","type":"bool"}],"name":"setSaleActive","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_free","type":"address"},{"internalType":"address","name":"_wl","type":"address"}],"name":"setSigners","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_vamir","type":"address"}],"name":"setVamirToken","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":"string","name":"str","type":"string"}],"name":"toLower","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenNameByIndex","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"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":"string","name":"str","type":"string"}],"name":"validateName","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"vamirtoken","outputs":[{"internalType":"contract IVamirToken","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60c06040526000808055600755681043561a8829300000600855600c805462ffffff60a01b19169055666a94d74f430000600d5566470de4df820000600e55612710600f5560d76010553480156200005657600080fd5b506040518060400160405280601081526020016f26baba30b73a1025b7b7339021b63ab160811b815250604051806040016040528060038152602001624d4b4360e81b815250600a61271f8383838360008111620001125760405162461bcd60e51b815260206004820152602e60248201527f455243373231413a20636f6c6c656374696f6e206d757374206861766520612060448201526d6e6f6e7a65726f20737570706c7960901b60648201526084015b60405180910390fd5b60008211620001745760405162461bcd60e51b815260206004820152602760248201527f455243373231413a206d61782062617463682073697a65206d757374206265206044820152666e6f6e7a65726f60c81b606482015260840162000109565b83516200018990600190602087019062000222565b5082516200019f90600290602086019062000222565b5060a09190915260805250620001c69450620001c0935050620001cc915050565b620001d0565b62000305565b3390565b600c80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b8280546200023090620002c8565b90600052602060002090601f0160209004810192826200025457600085556200029f565b82601f106200026f57805160ff19168380011785556200029f565b828001600101855582156200029f579182015b828111156200029f57825182559160200191906001019062000282565b50620002ad929150620002b1565b5090565b5b80821115620002ad5760008155600101620002b2565b600181811c90821680620002dd57607f821691505b60208210811415620002ff57634e487b7160e01b600052602260045260246000fd5b50919050565b60805160a051613b8a62000336600039600081816128cc015281816128f601526130cb015260005050613b8a6000f3fe6080604052600436106103505760003560e01c806374151be0116101c6578063b88d4fde116100f7578063d547cfb711610095578063f030843c1161006f578063f030843c146109a7578063f2fde38b146109d4578063fa540801146109f4578063ff35fb2514610a1457600080fd5b8063d547cfb714610933578063d7224ba014610948578063e985e9c51461095e57600080fd5b8063c87b56dd116100d1578063c87b56dd146108bd578063cbce4c97146108dd578063cc371bf3146108fd578063d48ebbdd1461091d57600080fd5b8063b88d4fde1461086a578063bd3984331461088a578063c39cbef11461089d57600080fd5b806395d89b4111610164578063a22cb4651161013e578063a22cb465146107e4578063a69f675014610804578063a7aa466c1461081a578063b770bef61461083a57600080fd5b806395d89b41146107995780639858cf19146107ae5780639ffdb65a146107c457600080fd5b80638da5cb5b116101a05780638da5cb5b1461071b57806391130aea1461073957806391b7f5ed146107595780639416b4231461077957600080fd5b806374151be0146106be578063841718a6146106db5780638aa9090a146106fb57600080fd5b80633f8121a2116102a057806355f804b31161023e57806368428a1b1161021857806368428a1b146106485780636d5224181461066957806370a0823114610689578063715018a6146106a957600080fd5b806355f804b3146105f55780636352211e14610615578063643439df1461063557600080fd5b806345e199e61161027a57806345e199e6146105675780634d426528146105945780634f6ccce7146105b457806353135ca0146105d457600080fd5b80633f8121a21461051157806342842e0e1461053157806345ca77381461055157600080fd5b806318160ddd1161030d5780632f745c59116102e75780632f745c59146104a657806332cb6b0c146104c657806336033deb146104dc5780633ccfd60b146104fc57600080fd5b806318160ddd1461044757806323b872dd146104665780632d8efed91461048657600080fd5b806301ffc9a71461035557806306fdde031461038a578063081812fc146103ac578063082878f7146103e4578063095ea7b31461040557806315b56d1014610427575b600080fd5b34801561036157600080fd5b5061037561037036600461342e565b610a34565b60405190151581526020015b60405180910390f35b34801561039657600080fd5b5061039f610aa1565b60405161038191906134a3565b3480156103b857600080fd5b506103cc6103c73660046134b6565b610b33565b6040516001600160a01b039091168152602001610381565b3480156103f057600080fd5b50600c5461037590600160b01b900460ff1681565b34801561041157600080fd5b506104256104203660046134eb565b610bc3565b005b34801561043357600080fd5b506103756104423660046135b8565b610cdb565b34801561045357600080fd5b506000545b604051908152602001610381565b34801561047257600080fd5b506104256104813660046135ed565b610d0e565b34801561049257600080fd5b506104256104a1366004613629565b610d19565b3480156104b257600080fd5b506104586104c13660046134eb565b610d65565b3480156104d257600080fd5b50610458600f5481565b3480156104e857600080fd5b5061039f6104f73660046134b6565b610ed3565b34801561050857600080fd5b50610425610f6d565b34801561051d57600080fd5b5061042561052c366004613654565b610fd3565b34801561053d57600080fd5b5061042561054c3660046135ed565b61101b565b34801561055d57600080fd5b5061045860085481565b34801561057357600080fd5b50610458610582366004613629565b60156020526000908152604090205481565b3480156105a057600080fd5b506104256105af36600461366f565b611036565b3480156105c057600080fd5b506104586105cf3660046134b6565b61121c565b3480156105e057600080fd5b50600c5461037590600160a01b900460ff1681565b34801561060157600080fd5b506104256106103660046135b8565b61127e565b34801561062157600080fd5b506103cc6106303660046134b6565b6112bb565b6104256106433660046134b6565b6112cd565b34801561065457600080fd5b50600c5461037590600160a81b900460ff1681565b34801561067557600080fd5b5061039f6106843660046134b6565b611447565b34801561069557600080fd5b506104586106a4366004613629565b6114e9565b3480156106b557600080fd5b5061042561157a565b3480156106ca57600080fd5b5061045868056bc75e2d6310000081565b3480156106e757600080fd5b506104256106f6366004613654565b6115b0565b34801561070757600080fd5b50610425610716366004613654565b6115f8565b34801561072757600080fd5b50600c546001600160a01b03166103cc565b34801561074557600080fd5b506104256107543660046136b6565b611640565b34801561076557600080fd5b506104256107743660046134b6565b611698565b34801561078557600080fd5b5061039f6107943660046135b8565b6116c7565b3480156107a557600080fd5b5061039f61182a565b3480156107ba57600080fd5b5061045860105481565b3480156107d057600080fd5b506103756107df3660046135b8565b611839565b3480156107f057600080fd5b506104256107ff3660046136e9565b611a48565b34801561081057600080fd5b50610458600d5481565b34801561082657600080fd5b506016546103cc906001600160a01b031681565b34801561084657600080fd5b50610375610855366004613629565b60136020526000908152604090205460ff1681565b34801561087657600080fd5b50610425610885366004613713565b611b0d565b61042561089836600461366f565b611b46565b3480156108a957600080fd5b506104256108b836600461366f565b611eff565b3480156108c957600080fd5b5061039f6108d83660046134b6565b6120cf565b3480156108e957600080fd5b506104256108f83660046134eb565b61219c565b34801561090957600080fd5b506104256109183660046134b6565b61222c565b34801561092957600080fd5b50610458600e5481565b34801561093f57600080fd5b5061039f61225b565b34801561095457600080fd5b5061045860075481565b34801561096a57600080fd5b506103756109793660046136b6565b6001600160a01b03918216600090815260066020908152604080832093909416825291909152205460ff1690565b3480156109b357600080fd5b506104586109c2366004613629565b60146020526000908152604090205481565b3480156109e057600080fd5b506104256109ef366004613629565b612268565b348015610a0057600080fd5b50610458610a0f3660046134b6565b612300565b348015610a2057600080fd5b506103cc610a2f36600461377b565b612353565b60006001600160e01b031982166380ac58cd60e01b1480610a6557506001600160e01b03198216635b5e139f60e01b145b80610a8057506001600160e01b0319821663780e9d6360e01b145b80610a9b57506301ffc9a760e01b6001600160e01b03198316145b92915050565b606060018054610ab0906137b3565b80601f0160208091040260200160405190810160405280929190818152602001828054610adc906137b3565b8015610b295780601f10610afe57610100808354040283529160200191610b29565b820191906000526020600020905b815481529060010190602001808311610b0c57829003601f168201915b5050505050905090565b6000610b40826000541190565b610ba75760405162461bcd60e51b815260206004820152602d60248201527f455243373231413a20617070726f76656420717565727920666f72206e6f6e6560448201526c3c34b9ba32b73a103a37b5b2b760991b60648201526084015b60405180910390fd5b506000908152600560205260409020546001600160a01b031690565b6000610bce826112bb565b9050806001600160a01b0316836001600160a01b03161415610c3d5760405162461bcd60e51b815260206004820152602260248201527f455243373231413a20617070726f76616c20746f2063757272656e74206f776e60448201526132b960f11b6064820152608401610b9e565b336001600160a01b0382161480610c595750610c598133610979565b610ccb5760405162461bcd60e51b815260206004820152603960248201527f455243373231413a20617070726f76652063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f76656420666f7220616c6c000000000000006064820152608401610b9e565b610cd68383836123a4565b505050565b6000600b610ce8836116c7565b604051610cf591906137ee565b9081526040519081900360200190205460ff1692915050565b610cd6838383612400565b600c546001600160a01b03163314610d435760405162461bcd60e51b8152600401610b9e9061380a565b601680546001600160a01b0319166001600160a01b0392909216919091179055565b6000610d70836114e9565b8210610dc95760405162461bcd60e51b815260206004820152602260248201527f455243373231413a206f776e657220696e646578206f7574206f6620626f756e604482015261647360f01b6064820152608401610b9e565b600080549080805b83811015610e73576000818152600360209081526040918290208251808401909352546001600160a01b038116808452600160a01b90910467ffffffffffffffff169183019190915215610e2457805192505b876001600160a01b0316836001600160a01b03161415610e605786841415610e5257509350610a9b92505050565b83610e5c81613855565b9450505b5080610e6b81613855565b915050610dd1565b5060405162461bcd60e51b815260206004820152602e60248201527f455243373231413a20756e61626c6520746f2067657420746f6b656e206f662060448201526d0deeedccae440c4f240d2dcc8caf60931b6064820152608401610b9e565b60096020526000908152604090208054610eec906137b3565b80601f0160208091040260200160405190810160405280929190818152602001828054610f18906137b3565b8015610f655780601f10610f3a57610100808354040283529160200191610f65565b820191906000526020600020905b815481529060010190602001808311610f4857829003601f168201915b505050505081565b600c546001600160a01b03163314610f975760405162461bcd60e51b8152600401610b9e9061380a565b600c546040516001600160a01b03909116904780156108fc02916000818181858888f19350505050158015610fd0573d6000803e3d6000fd5b50565b600c546001600160a01b03163314610ffd5760405162461bcd60e51b8152600401610b9e9061380a565b600c8054911515600160a01b0260ff60a01b19909216919091179055565b610cd683838360405180602001604052806000815250611b0d565b6016546040516370a0823160e01b81523360048201526001600160a01b03909116906370a0823190602401602060405180830381865afa15801561107e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110a29190613870565b68056bc75e2d6310000011156110e85760405162461bcd60e51b815260206004820152600b60248201526a6c6f772062616c616e636560a81b6044820152606401610b9e565b601654604051636eb1769f60e11b81523360048201523060248201526001600160a01b039091169063dd62ed3e90604401602060405180830381865afa158015611136573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061115a9190613870565b68056bc75e2d6310000011156111a25760405162461bcd60e51b815260206004820152600d60248201526c6c6f7720616c6c6f77616e636560981b6044820152606401610b9e565b601654604051632770a7eb60e21b815233600482015268056bc75e2d6310000060248201526001600160a01b0390911690639dc29fac90604401600060405180830381600087803b1580156111f657600080fd5b505af115801561120a573d6000803e3d6000fd5b505050506112188282612788565b5050565b60008054821061127a5760405162461bcd60e51b815260206004820152602360248201527f455243373231413a20676c6f62616c20696e646578206f7574206f6620626f756044820152626e647360e81b6064820152608401610b9e565b5090565b600c546001600160a01b031633146112a85760405162461bcd60e51b8152600401610b9e9061380a565b8051611218906017906020840190613388565b60006112c68261284a565b5192915050565b600054600c54600160a81b900460ff166113295760405162461bcd60e51b815260206004820152601860248201527f5075626c696353616c65204e6f742041637469766174656400000000000000006044820152606401610b9e565b601054600f546113399190613889565b61134383836138a0565b11156113615760405162461bcd60e51b8152600401610b9e906138b8565b33600090815260156020526040902054600a9061137f9084906138a0565b11156113c35760405162461bcd60e51b8152602060048201526013602482015272457863656564204d6178203130206d696e747360681b6044820152606401610b9e565b600d541561141857600d546113d890836138e3565b3410156114185760405162461bcd60e51b815260206004820152600e60248201526d09cdee8408adcdeeaced0408aa8960931b6044820152606401610b9e565b33600090815260156020526040812080548492906114379084906138a0565b90915550611218905033836129f4565b6000818152600a60205260409020805460609190611464906137b3565b80601f0160208091040260200160405190810160405280929190818152602001828054611490906137b3565b80156114dd5780601f106114b2576101008083540402835291602001916114dd565b820191906000526020600020905b8154815290600101906020018083116114c057829003601f168201915b50505050509050919050565b60006001600160a01b0382166115555760405162461bcd60e51b815260206004820152602b60248201527f455243373231413a2062616c616e636520717565727920666f7220746865207a60448201526a65726f206164647265737360a81b6064820152608401610b9e565b506001600160a01b03166000908152600460205260409020546001600160801b031690565b600c546001600160a01b031633146115a45760405162461bcd60e51b8152600401610b9e9061380a565b6115ae6000612a0e565b565b600c546001600160a01b031633146115da5760405162461bcd60e51b8152600401610b9e9061380a565b600c8054911515600160a81b0260ff60a81b19909216919091179055565b600c546001600160a01b031633146116225760405162461bcd60e51b8152600401610b9e9061380a565b600c8054911515600160b01b0260ff60b01b19909216919091179055565b600c546001600160a01b0316331461166a5760405162461bcd60e51b8152600401610b9e9061380a565b601280546001600160a01b039384166001600160a01b03199182161790915560118054929093169116179055565b600c546001600160a01b031633146116c25760405162461bcd60e51b8152600401610b9e9061380a565b600d55565b606060008290506000815167ffffffffffffffff8111156116ea576116ea613515565b6040519080825280601f01601f191660200182016040528015611714576020820181803683370190505b50905060005b825181101561182257604183828151811061173757611737613902565b016020015160f81c108015906117675750605a83828151811061175c5761175c613902565b016020015160f81c11155b156117c95782818151811061177e5761177e613902565b602001015160f81c60f81b60f81c60206117989190613918565b60f81b8282815181106117ad576117ad613902565b60200101906001600160f81b031916908160001a905350611810565b8281815181106117db576117db613902565b602001015160f81c60f81b8282815181106117f8576117f8613902565b60200101906001600160f81b031916908160001a9053505b8061181a81613855565b91505061171a565b509392505050565b606060028054610ab0906137b3565b6000808290506001815110156118525750600092915050565b6019815111156118655750600092915050565b8060008151811061187857611878613902565b6020910101516001600160f81b031916600160fd1b141561189c5750600092915050565b80600182516118ab9190613889565b815181106118bb576118bb613902565b6020910101516001600160f81b031916600160fd1b14156118df5750600092915050565b6000816000815181106118f4576118f4613902565b01602001516001600160f81b031916905060005b8251811015611a3d57600083828151811061192557611925613902565b01602001516001600160f81b0319169050600160fd1b811480156119565750600160fd1b6001600160f81b03198416145b156119675750600095945050505050565b600360fc1b6001600160f81b03198216108015906119935750603960f81b6001600160f81b0319821611155b1580156119c95750604160f81b6001600160f81b03198216108015906119c75750602d60f91b6001600160f81b0319821611155b155b80156119fe5750606160f81b6001600160f81b03198216108015906119fc5750603d60f91b6001600160f81b0319821611155b155b8015611a185750600160fd1b6001600160f81b0319821614155b15611a295750600095945050505050565b915080611a3581613855565b915050611908565b506001949350505050565b6001600160a01b038216331415611aa15760405162461bcd60e51b815260206004820152601a60248201527f455243373231413a20617070726f766520746f2063616c6c65720000000000006044820152606401610b9e565b3360008181526006602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b611b18848484612400565b611b2484848484612a60565b611b405760405162461bcd60e51b8152600401610b9e9061393d565b50505050565b6000805490611b553384612353565b6012549091506001600160a01b0380831691161480611b8157506011546001600160a01b038281169116145b611bbf5760405162461bcd60e51b815260206004820152600f60248201526e139bdd0815da1a5d195b1a5cdd1959608a1b6044820152606401610b9e565b6011546001600160a01b0382811691161415611d4057600c54600160a01b900460ff16611c265760405162461bcd60e51b8152602060048201526015602482015274141c995cd85b1948139bdd081058dd1a5d985d1959605a1b6044820152606401610b9e565b33600090815260146020526040902054600590611c449086906138a0565b1115611c875760405162461bcd60e51b8152602060048201526012602482015271457863656564204d61782035206d696e747360701b6044820152606401610b9e565b600e54611c9490856138e3565b341015611cd45760405162461bcd60e51b815260206004820152600e60248201526d09cdee8408adcdeeaced0408aa8960931b6044820152606401610b9e565b601054600f54611ce49190613889565b611cee85846138a0565b1115611d0c5760405162461bcd60e51b8152600401610b9e906138b8565b3360009081526014602052604081208054869290611d2b9084906138a0565b90915550611d3b905033856129f4565b611b40565b6012546001600160a01b0382811691161415611b4057600c54600160b01b900460ff16611da45760405162461bcd60e51b8152602060048201526012602482015271119c995948139bdd081058dd1a5d985d195960721b6044820152606401610b9e565b600060105411611dee5760405162461bcd60e51b8152602060048201526015602482015274119c99594814dd5c1c1b1e48115e1a185d5cdd1959605a1b6044820152606401610b9e565b3360009081526013602052604090205460ff1615611e445760405162461bcd60e51b8152602060048201526013602482015272105b1c9958591e48119c995948135a5b9d1959606a1b6044820152606401610b9e565b83600114611e945760405162461bcd60e51b815260206004820152601960248201527f4f6e6c7920312046726565204d696e7420506f737369626c65000000000000006044820152606401610b9e565b600f54611ea185846138a0565b1115611ebf5760405162461bcd60e51b8152600401610b9e906138b8565b336000908152601360205260408120805460ff191660019081179091556010805491929091611eef908490613889565b90915550611b40905033856129f4565b6016546040516370a0823160e01b81523360048201526001600160a01b03909116906370a0823190602401602060405180830381865afa158015611f47573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611f6b9190613870565b6008541115611faa5760405162461bcd60e51b815260206004820152600b60248201526a6c6f772062616c616e636560a81b6044820152606401610b9e565b601654604051636eb1769f60e11b81523360048201523060248201526001600160a01b039091169063dd62ed3e90604401602060405180830381865afa158015611ff8573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061201c9190613870565b600854111561205d5760405162461bcd60e51b815260206004820152600d60248201526c6c6f7720616c6c6f77616e636560981b6044820152606401610b9e565b601654600854604051632770a7eb60e21b815233600482015260248101919091526001600160a01b0390911690639dc29fac90604401600060405180830381600087803b1580156120ad57600080fd5b505af11580156120c1573d6000803e3d6000fd5b505050506112188282612b57565b60606120dc826000541190565b6121405760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b6064820152608401610b9e565b600061214a612e82565b9050600081511161216a5760405180602001604052806000815250612195565b8061217484612e91565b604051602001612185929190613990565b6040516020818303038152906040525b9392505050565b600c546001600160a01b031633146121c65760405162461bcd60e51b8152600401610b9e9061380a565b600054600f80546121d6916138a0565b6121e083836138a0565b11156122225760405162461bcd60e51b81526020600482015260116024820152704e6f7420456e6f75676820537570706c7960781b6044820152606401610b9e565b610cd683836129f4565b600c546001600160a01b031633146122565760405162461bcd60e51b8152600401610b9e9061380a565b600855565b60178054610eec906137b3565b600c546001600160a01b031633146122925760405162461bcd60e51b8152600401610b9e9061380a565b6001600160a01b0381166122f75760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610b9e565b610fd081612a0e565b6040517f19457468657265756d205369676e6564204d6573736167653a0a3332000000006020820152603c8101829052600090605c01604051602081830303815290604052805190602001209050919050565b604080516001600160a01b0384166020820152600091829101604051602081830303815290604052805190602001209050600061238f82612300565b905061239b8185612f8f565b95945050505050565b60008281526005602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b600061240b8261284a565b80519091506000906001600160a01b0316336001600160a01b0316148061244257503361243784610b33565b6001600160a01b0316145b80612454575081516124549033610979565b9050806124be5760405162461bcd60e51b815260206004820152603260248201527f455243373231413a207472616e736665722063616c6c6572206973206e6f74206044820152711bdddb995c881b9bdc88185c1c1c9bdd995960721b6064820152608401610b9e565b846001600160a01b031682600001516001600160a01b0316146125325760405162461bcd60e51b815260206004820152602660248201527f455243373231413a207472616e736665722066726f6d20696e636f72726563746044820152651037bbb732b960d11b6064820152608401610b9e565b6001600160a01b0384166125965760405162461bcd60e51b815260206004820152602560248201527f455243373231413a207472616e7366657220746f20746865207a65726f206164604482015264647265737360d81b6064820152608401610b9e565b6125a660008484600001516123a4565b6001600160a01b03851660009081526004602052604081208054600192906125d89084906001600160801b03166139bf565b82546101009290920a6001600160801b038181021990931691831602179091556001600160a01b03861660009081526004602052604081208054600194509092612624918591166139e7565b82546001600160801b039182166101009390930a9283029190920219909116179055506040805180820182526001600160a01b03808716825267ffffffffffffffff428116602080850191825260008981526003909152948520935184549151909216600160a01b026001600160e01b031990911691909216171790556126ac8460016138a0565b6000818152600360205260409020549091506001600160a01b031661273e576126d6816000541190565b1561273e5760408051808201825284516001600160a01b03908116825260208087015167ffffffffffffffff9081168285019081526000878152600390935294909120925183549451909116600160a01b026001600160e01b03199094169116179190911790555b83856001600160a01b0316876001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45b505050505050565b6000612793836112bb565b9050336001600160a01b038216146127ed5760405162461bcd60e51b815260206004820152601f60248201527f4552433732313a2063616c6c6572206973206e6f7420746865206f776e6572006044820152606401610b9e565b6000838152600960209081526040909120835161280c92850190613388565b50827fbe3e2fc72ea4bd0d860e908b1ee27aa9856809e62a75bfc0cb7f04b5d791873d8360405161283d91906134a3565b60405180910390a2505050565b6040805180820190915260008082526020820152612869826000541190565b6128c85760405162461bcd60e51b815260206004820152602a60248201527f455243373231413a206f776e657220717565727920666f72206e6f6e657869736044820152693a32b73a103a37b5b2b760b11b6064820152608401610b9e565b60007f000000000000000000000000000000000000000000000000000000000000000083106129295761291b7f000000000000000000000000000000000000000000000000000000000000000084613889565b6129269060016138a0565b90505b825b818110612993576000818152600360209081526040918290208251808401909352546001600160a01b038116808452600160a01b90910467ffffffffffffffff16918301919091521561298057949350505050565b508061298b81613a09565b91505061292b565b5060405162461bcd60e51b815260206004820152602f60248201527f455243373231413a20756e61626c6520746f2064657465726d696e652074686560448201526e1037bbb732b91037b3103a37b5b2b760891b6064820152608401610b9e565b61121882826040518060200160405280600081525061300e565b600c80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60006001600160a01b0384163b15611a3d57604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290612aa4903390899088908890600401613a20565b6020604051808303816000875af1925050508015612adf575060408051601f3d908101601f19168201909252612adc91810190613a5d565b60015b612b39573d808015612b0d576040519150601f19603f3d011682016040523d82523d6000602084013e612b12565b606091505b508051612b315760405162461bcd60e51b8152600401610b9e9061393d565b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490505b949350505050565b6000612b62836112bb565b9050336001600160a01b03821614612bbc5760405162461bcd60e51b815260206004820152601f60248201527f4552433732313a2063616c6c6572206973206e6f7420746865206f776e6572006044820152606401610b9e565b612bc582611839565b1515600114612c0d5760405162461bcd60e51b81526020600482015260146024820152734e6f7420612076616c6964206e6577206e616d6560601b6044820152606401610b9e565b6000838152600a6020526040908190209051600291612c2b91613a7a565b602060405180830381855afa158015612c48573d6000803e3d6000fd5b5050506040513d601f19601f82011682018060405250810190612c6b9190613870565b600283604051612c7b91906137ee565b602060405180830381855afa158015612c98573d6000803e3d6000fd5b5050506040513d601f19601f82011682018060405250810190612cbb9190613870565b1415612d155760405162461bcd60e51b815260206004820152602360248201527f4e6577206e616d652069732073616d65206173207468652063757272656e74206044820152626f6e6560e81b6064820152608401610b9e565b612d1e82610cdb565b15612d635760405162461bcd60e51b815260206004820152601560248201527413985b5948185b1c9958591e481c995cd95c9d9959605a1b6044820152606401610b9e565b6000838152600a602052604081208054612d7c906137b3565b90501115612e27576000838152600a602052604090208054612e279190612da2906137b3565b80601f0160208091040260200160405190810160405280929190818152602001828054612dce906137b3565b8015612e1b5780601f10612df057610100808354040283529160200191612e1b565b820191906000526020600020905b815481529060010190602001808311612dfe57829003601f168201915b505050505060006132e9565b612e328260016132e9565b6000838152600a602090815260409091208351612e5192850190613388565b50827f7e632a301794d8d4a81ea7e20f37d1947158d36e66403af04ba85dd194b66f1b8360405161283d91906134a3565b606060178054610ab0906137b3565b606081612eb55750506040805180820190915260018152600360fc1b602082015290565b8160005b8115612edf5780612ec981613855565b9150612ed89050600a83613b2c565b9150612eb9565b60008167ffffffffffffffff811115612efa57612efa613515565b6040519080825280601f01601f191660200182016040528015612f24576020820181803683370190505b5090505b8415612b4f57612f39600183613889565b9150612f46600a86613b40565b612f519060306138a0565b60f81b818381518110612f6657612f66613902565b60200101906001600160f81b031916908160001a905350612f88600a86613b2c565b9450612f28565b600080600080612f9e85613326565b6040805160008152602081018083528b905260ff8316918101919091526060810184905260808101839052929550909350915060019060a0016020604051602081039080840390855afa158015612ff9573d6000803e3d6000fd5b5050604051601f190151979650505050505050565b6000546001600160a01b0384166130715760405162461bcd60e51b815260206004820152602160248201527f455243373231413a206d696e7420746f20746865207a65726f206164647265736044820152607360f81b6064820152608401610b9e565b61307c816000541190565b156130c95760405162461bcd60e51b815260206004820152601d60248201527f455243373231413a20746f6b656e20616c7265616479206d696e7465640000006044820152606401610b9e565b7f00000000000000000000000000000000000000000000000000000000000000008311156131445760405162461bcd60e51b815260206004820152602260248201527f455243373231413a207175616e7469747920746f206d696e7420746f6f2068696044820152610ced60f31b6064820152608401610b9e565b6001600160a01b0384166000908152600460209081526040918290208251808401845290546001600160801b038082168352600160801b90910416918101919091528151808301909252805190919081906131a09087906139e7565b6001600160801b031681526020018583602001516131be91906139e7565b6001600160801b039081169091526001600160a01b0380881660008181526004602090815260408083208751978301518716600160801b0297909616969096179094558451808601865291825267ffffffffffffffff4281168386019081528883526003909552948120915182549451909516600160a01b026001600160e01b031990941694909216939093179190911790915582905b858110156132de5760405182906001600160a01b038916906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a46132a26000888488612a60565b6132be5760405162461bcd60e51b8152600401610b9e9061393d565b816132c881613855565b92505080806132d690613855565b915050613255565b506000819055612780565b80600b6132f5846116c7565b60405161330291906137ee565b908152604051908190036020019020805491151560ff199092169190911790555050565b6000806000835160411461336a5760405162461bcd60e51b815260206004820152600b60248201526a1cda59c81a5b9d985b1a5960aa1b6044820152606401610b9e565b50505060208101516040820151606090920151909260009190911a90565b828054613394906137b3565b90600052602060002090601f0160209004810192826133b657600085556133fc565b82601f106133cf57805160ff19168380011785556133fc565b828001600101855582156133fc579182015b828111156133fc5782518255916020019190600101906133e1565b5061127a9291505b8082111561127a5760008155600101613404565b6001600160e01b031981168114610fd057600080fd5b60006020828403121561344057600080fd5b813561219581613418565b60005b8381101561346657818101518382015260200161344e565b83811115611b405750506000910152565b6000815180845261348f81602086016020860161344b565b601f01601f19169290920160200192915050565b6020815260006121956020830184613477565b6000602082840312156134c857600080fd5b5035919050565b80356001600160a01b03811681146134e657600080fd5b919050565b600080604083850312156134fe57600080fd5b613507836134cf565b946020939093013593505050565b634e487b7160e01b600052604160045260246000fd5b600082601f83011261353c57600080fd5b813567ffffffffffffffff8082111561355757613557613515565b604051601f8301601f19908116603f0116810190828211818310171561357f5761357f613515565b8160405283815286602085880101111561359857600080fd5b836020870160208301376000602085830101528094505050505092915050565b6000602082840312156135ca57600080fd5b813567ffffffffffffffff8111156135e157600080fd5b612b4f8482850161352b565b60008060006060848603121561360257600080fd5b61360b846134cf565b9250613619602085016134cf565b9150604084013590509250925092565b60006020828403121561363b57600080fd5b612195826134cf565b803580151581146134e657600080fd5b60006020828403121561366657600080fd5b61219582613644565b6000806040838503121561368257600080fd5b82359150602083013567ffffffffffffffff8111156136a057600080fd5b6136ac8582860161352b565b9150509250929050565b600080604083850312156136c957600080fd5b6136d2836134cf565b91506136e0602084016134cf565b90509250929050565b600080604083850312156136fc57600080fd5b613705836134cf565b91506136e060208401613644565b6000806000806080858703121561372957600080fd5b613732856134cf565b9350613740602086016134cf565b925060408501359150606085013567ffffffffffffffff81111561376357600080fd5b61376f8782880161352b565b91505092959194509250565b6000806040838503121561378e57600080fd5b613797836134cf565b9150602083013567ffffffffffffffff8111156136a057600080fd5b600181811c908216806137c757607f821691505b602082108114156137e857634e487b7160e01b600052602260045260246000fd5b50919050565b6000825161380081846020870161344b565b9190910192915050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b634e487b7160e01b600052601160045260246000fd5b60006000198214156138695761386961383f565b5060010190565b60006020828403121561388257600080fd5b5051919050565b60008282101561389b5761389b61383f565b500390565b600082198211156138b3576138b361383f565b500190565b602080825260119082015270457863656564204d617820537570706c7960781b604082015260600190565b60008160001904831182151516156138fd576138fd61383f565b500290565b634e487b7160e01b600052603260045260246000fd5b600060ff821660ff84168060ff038211156139355761393561383f565b019392505050565b60208082526033908201527f455243373231413a207472616e7366657220746f206e6f6e204552433732315260408201527232b1b2b4bb32b91034b6b83632b6b2b73a32b960691b606082015260800190565b600083516139a281846020880161344b565b8351908301906139b681836020880161344b565b01949350505050565b60006001600160801b03838116908316818110156139df576139df61383f565b039392505050565b60006001600160801b038083168185168083038211156139b6576139b661383f565b600081613a1857613a1861383f565b506000190190565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090613a5390830184613477565b9695505050505050565b600060208284031215613a6f57600080fd5b815161219581613418565b600080835481600182811c915080831680613a9657607f831692505b6020808410821415613ab657634e487b7160e01b86526022600452602486fd5b818015613aca5760018114613adb57613b08565b60ff19861689528489019650613b08565b60008a81526020902060005b86811015613b005781548b820152908501908301613ae7565b505084890196505b509498975050505050505050565b634e487b7160e01b600052601260045260246000fd5b600082613b3b57613b3b613b16565b500490565b600082613b4f57613b4f613b16565b50069056fea2646970667358221220a94c41c166c39be8e4d9e78a68df7cdb43f42635287cfb08e1e8760fa576bba764736f6c634300080a0033

Deployed Bytecode

0x6080604052600436106103505760003560e01c806374151be0116101c6578063b88d4fde116100f7578063d547cfb711610095578063f030843c1161006f578063f030843c146109a7578063f2fde38b146109d4578063fa540801146109f4578063ff35fb2514610a1457600080fd5b8063d547cfb714610933578063d7224ba014610948578063e985e9c51461095e57600080fd5b8063c87b56dd116100d1578063c87b56dd146108bd578063cbce4c97146108dd578063cc371bf3146108fd578063d48ebbdd1461091d57600080fd5b8063b88d4fde1461086a578063bd3984331461088a578063c39cbef11461089d57600080fd5b806395d89b4111610164578063a22cb4651161013e578063a22cb465146107e4578063a69f675014610804578063a7aa466c1461081a578063b770bef61461083a57600080fd5b806395d89b41146107995780639858cf19146107ae5780639ffdb65a146107c457600080fd5b80638da5cb5b116101a05780638da5cb5b1461071b57806391130aea1461073957806391b7f5ed146107595780639416b4231461077957600080fd5b806374151be0146106be578063841718a6146106db5780638aa9090a146106fb57600080fd5b80633f8121a2116102a057806355f804b31161023e57806368428a1b1161021857806368428a1b146106485780636d5224181461066957806370a0823114610689578063715018a6146106a957600080fd5b806355f804b3146105f55780636352211e14610615578063643439df1461063557600080fd5b806345e199e61161027a57806345e199e6146105675780634d426528146105945780634f6ccce7146105b457806353135ca0146105d457600080fd5b80633f8121a21461051157806342842e0e1461053157806345ca77381461055157600080fd5b806318160ddd1161030d5780632f745c59116102e75780632f745c59146104a657806332cb6b0c146104c657806336033deb146104dc5780633ccfd60b146104fc57600080fd5b806318160ddd1461044757806323b872dd146104665780632d8efed91461048657600080fd5b806301ffc9a71461035557806306fdde031461038a578063081812fc146103ac578063082878f7146103e4578063095ea7b31461040557806315b56d1014610427575b600080fd5b34801561036157600080fd5b5061037561037036600461342e565b610a34565b60405190151581526020015b60405180910390f35b34801561039657600080fd5b5061039f610aa1565b60405161038191906134a3565b3480156103b857600080fd5b506103cc6103c73660046134b6565b610b33565b6040516001600160a01b039091168152602001610381565b3480156103f057600080fd5b50600c5461037590600160b01b900460ff1681565b34801561041157600080fd5b506104256104203660046134eb565b610bc3565b005b34801561043357600080fd5b506103756104423660046135b8565b610cdb565b34801561045357600080fd5b506000545b604051908152602001610381565b34801561047257600080fd5b506104256104813660046135ed565b610d0e565b34801561049257600080fd5b506104256104a1366004613629565b610d19565b3480156104b257600080fd5b506104586104c13660046134eb565b610d65565b3480156104d257600080fd5b50610458600f5481565b3480156104e857600080fd5b5061039f6104f73660046134b6565b610ed3565b34801561050857600080fd5b50610425610f6d565b34801561051d57600080fd5b5061042561052c366004613654565b610fd3565b34801561053d57600080fd5b5061042561054c3660046135ed565b61101b565b34801561055d57600080fd5b5061045860085481565b34801561057357600080fd5b50610458610582366004613629565b60156020526000908152604090205481565b3480156105a057600080fd5b506104256105af36600461366f565b611036565b3480156105c057600080fd5b506104586105cf3660046134b6565b61121c565b3480156105e057600080fd5b50600c5461037590600160a01b900460ff1681565b34801561060157600080fd5b506104256106103660046135b8565b61127e565b34801561062157600080fd5b506103cc6106303660046134b6565b6112bb565b6104256106433660046134b6565b6112cd565b34801561065457600080fd5b50600c5461037590600160a81b900460ff1681565b34801561067557600080fd5b5061039f6106843660046134b6565b611447565b34801561069557600080fd5b506104586106a4366004613629565b6114e9565b3480156106b557600080fd5b5061042561157a565b3480156106ca57600080fd5b5061045868056bc75e2d6310000081565b3480156106e757600080fd5b506104256106f6366004613654565b6115b0565b34801561070757600080fd5b50610425610716366004613654565b6115f8565b34801561072757600080fd5b50600c546001600160a01b03166103cc565b34801561074557600080fd5b506104256107543660046136b6565b611640565b34801561076557600080fd5b506104256107743660046134b6565b611698565b34801561078557600080fd5b5061039f6107943660046135b8565b6116c7565b3480156107a557600080fd5b5061039f61182a565b3480156107ba57600080fd5b5061045860105481565b3480156107d057600080fd5b506103756107df3660046135b8565b611839565b3480156107f057600080fd5b506104256107ff3660046136e9565b611a48565b34801561081057600080fd5b50610458600d5481565b34801561082657600080fd5b506016546103cc906001600160a01b031681565b34801561084657600080fd5b50610375610855366004613629565b60136020526000908152604090205460ff1681565b34801561087657600080fd5b50610425610885366004613713565b611b0d565b61042561089836600461366f565b611b46565b3480156108a957600080fd5b506104256108b836600461366f565b611eff565b3480156108c957600080fd5b5061039f6108d83660046134b6565b6120cf565b3480156108e957600080fd5b506104256108f83660046134eb565b61219c565b34801561090957600080fd5b506104256109183660046134b6565b61222c565b34801561092957600080fd5b50610458600e5481565b34801561093f57600080fd5b5061039f61225b565b34801561095457600080fd5b5061045860075481565b34801561096a57600080fd5b506103756109793660046136b6565b6001600160a01b03918216600090815260066020908152604080832093909416825291909152205460ff1690565b3480156109b357600080fd5b506104586109c2366004613629565b60146020526000908152604090205481565b3480156109e057600080fd5b506104256109ef366004613629565b612268565b348015610a0057600080fd5b50610458610a0f3660046134b6565b612300565b348015610a2057600080fd5b506103cc610a2f36600461377b565b612353565b60006001600160e01b031982166380ac58cd60e01b1480610a6557506001600160e01b03198216635b5e139f60e01b145b80610a8057506001600160e01b0319821663780e9d6360e01b145b80610a9b57506301ffc9a760e01b6001600160e01b03198316145b92915050565b606060018054610ab0906137b3565b80601f0160208091040260200160405190810160405280929190818152602001828054610adc906137b3565b8015610b295780601f10610afe57610100808354040283529160200191610b29565b820191906000526020600020905b815481529060010190602001808311610b0c57829003601f168201915b5050505050905090565b6000610b40826000541190565b610ba75760405162461bcd60e51b815260206004820152602d60248201527f455243373231413a20617070726f76656420717565727920666f72206e6f6e6560448201526c3c34b9ba32b73a103a37b5b2b760991b60648201526084015b60405180910390fd5b506000908152600560205260409020546001600160a01b031690565b6000610bce826112bb565b9050806001600160a01b0316836001600160a01b03161415610c3d5760405162461bcd60e51b815260206004820152602260248201527f455243373231413a20617070726f76616c20746f2063757272656e74206f776e60448201526132b960f11b6064820152608401610b9e565b336001600160a01b0382161480610c595750610c598133610979565b610ccb5760405162461bcd60e51b815260206004820152603960248201527f455243373231413a20617070726f76652063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f76656420666f7220616c6c000000000000006064820152608401610b9e565b610cd68383836123a4565b505050565b6000600b610ce8836116c7565b604051610cf591906137ee565b9081526040519081900360200190205460ff1692915050565b610cd6838383612400565b600c546001600160a01b03163314610d435760405162461bcd60e51b8152600401610b9e9061380a565b601680546001600160a01b0319166001600160a01b0392909216919091179055565b6000610d70836114e9565b8210610dc95760405162461bcd60e51b815260206004820152602260248201527f455243373231413a206f776e657220696e646578206f7574206f6620626f756e604482015261647360f01b6064820152608401610b9e565b600080549080805b83811015610e73576000818152600360209081526040918290208251808401909352546001600160a01b038116808452600160a01b90910467ffffffffffffffff169183019190915215610e2457805192505b876001600160a01b0316836001600160a01b03161415610e605786841415610e5257509350610a9b92505050565b83610e5c81613855565b9450505b5080610e6b81613855565b915050610dd1565b5060405162461bcd60e51b815260206004820152602e60248201527f455243373231413a20756e61626c6520746f2067657420746f6b656e206f662060448201526d0deeedccae440c4f240d2dcc8caf60931b6064820152608401610b9e565b60096020526000908152604090208054610eec906137b3565b80601f0160208091040260200160405190810160405280929190818152602001828054610f18906137b3565b8015610f655780601f10610f3a57610100808354040283529160200191610f65565b820191906000526020600020905b815481529060010190602001808311610f4857829003601f168201915b505050505081565b600c546001600160a01b03163314610f975760405162461bcd60e51b8152600401610b9e9061380a565b600c546040516001600160a01b03909116904780156108fc02916000818181858888f19350505050158015610fd0573d6000803e3d6000fd5b50565b600c546001600160a01b03163314610ffd5760405162461bcd60e51b8152600401610b9e9061380a565b600c8054911515600160a01b0260ff60a01b19909216919091179055565b610cd683838360405180602001604052806000815250611b0d565b6016546040516370a0823160e01b81523360048201526001600160a01b03909116906370a0823190602401602060405180830381865afa15801561107e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110a29190613870565b68056bc75e2d6310000011156110e85760405162461bcd60e51b815260206004820152600b60248201526a6c6f772062616c616e636560a81b6044820152606401610b9e565b601654604051636eb1769f60e11b81523360048201523060248201526001600160a01b039091169063dd62ed3e90604401602060405180830381865afa158015611136573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061115a9190613870565b68056bc75e2d6310000011156111a25760405162461bcd60e51b815260206004820152600d60248201526c6c6f7720616c6c6f77616e636560981b6044820152606401610b9e565b601654604051632770a7eb60e21b815233600482015268056bc75e2d6310000060248201526001600160a01b0390911690639dc29fac90604401600060405180830381600087803b1580156111f657600080fd5b505af115801561120a573d6000803e3d6000fd5b505050506112188282612788565b5050565b60008054821061127a5760405162461bcd60e51b815260206004820152602360248201527f455243373231413a20676c6f62616c20696e646578206f7574206f6620626f756044820152626e647360e81b6064820152608401610b9e565b5090565b600c546001600160a01b031633146112a85760405162461bcd60e51b8152600401610b9e9061380a565b8051611218906017906020840190613388565b60006112c68261284a565b5192915050565b600054600c54600160a81b900460ff166113295760405162461bcd60e51b815260206004820152601860248201527f5075626c696353616c65204e6f742041637469766174656400000000000000006044820152606401610b9e565b601054600f546113399190613889565b61134383836138a0565b11156113615760405162461bcd60e51b8152600401610b9e906138b8565b33600090815260156020526040902054600a9061137f9084906138a0565b11156113c35760405162461bcd60e51b8152602060048201526013602482015272457863656564204d6178203130206d696e747360681b6044820152606401610b9e565b600d541561141857600d546113d890836138e3565b3410156114185760405162461bcd60e51b815260206004820152600e60248201526d09cdee8408adcdeeaced0408aa8960931b6044820152606401610b9e565b33600090815260156020526040812080548492906114379084906138a0565b90915550611218905033836129f4565b6000818152600a60205260409020805460609190611464906137b3565b80601f0160208091040260200160405190810160405280929190818152602001828054611490906137b3565b80156114dd5780601f106114b2576101008083540402835291602001916114dd565b820191906000526020600020905b8154815290600101906020018083116114c057829003601f168201915b50505050509050919050565b60006001600160a01b0382166115555760405162461bcd60e51b815260206004820152602b60248201527f455243373231413a2062616c616e636520717565727920666f7220746865207a60448201526a65726f206164647265737360a81b6064820152608401610b9e565b506001600160a01b03166000908152600460205260409020546001600160801b031690565b600c546001600160a01b031633146115a45760405162461bcd60e51b8152600401610b9e9061380a565b6115ae6000612a0e565b565b600c546001600160a01b031633146115da5760405162461bcd60e51b8152600401610b9e9061380a565b600c8054911515600160a81b0260ff60a81b19909216919091179055565b600c546001600160a01b031633146116225760405162461bcd60e51b8152600401610b9e9061380a565b600c8054911515600160b01b0260ff60b01b19909216919091179055565b600c546001600160a01b0316331461166a5760405162461bcd60e51b8152600401610b9e9061380a565b601280546001600160a01b039384166001600160a01b03199182161790915560118054929093169116179055565b600c546001600160a01b031633146116c25760405162461bcd60e51b8152600401610b9e9061380a565b600d55565b606060008290506000815167ffffffffffffffff8111156116ea576116ea613515565b6040519080825280601f01601f191660200182016040528015611714576020820181803683370190505b50905060005b825181101561182257604183828151811061173757611737613902565b016020015160f81c108015906117675750605a83828151811061175c5761175c613902565b016020015160f81c11155b156117c95782818151811061177e5761177e613902565b602001015160f81c60f81b60f81c60206117989190613918565b60f81b8282815181106117ad576117ad613902565b60200101906001600160f81b031916908160001a905350611810565b8281815181106117db576117db613902565b602001015160f81c60f81b8282815181106117f8576117f8613902565b60200101906001600160f81b031916908160001a9053505b8061181a81613855565b91505061171a565b509392505050565b606060028054610ab0906137b3565b6000808290506001815110156118525750600092915050565b6019815111156118655750600092915050565b8060008151811061187857611878613902565b6020910101516001600160f81b031916600160fd1b141561189c5750600092915050565b80600182516118ab9190613889565b815181106118bb576118bb613902565b6020910101516001600160f81b031916600160fd1b14156118df5750600092915050565b6000816000815181106118f4576118f4613902565b01602001516001600160f81b031916905060005b8251811015611a3d57600083828151811061192557611925613902565b01602001516001600160f81b0319169050600160fd1b811480156119565750600160fd1b6001600160f81b03198416145b156119675750600095945050505050565b600360fc1b6001600160f81b03198216108015906119935750603960f81b6001600160f81b0319821611155b1580156119c95750604160f81b6001600160f81b03198216108015906119c75750602d60f91b6001600160f81b0319821611155b155b80156119fe5750606160f81b6001600160f81b03198216108015906119fc5750603d60f91b6001600160f81b0319821611155b155b8015611a185750600160fd1b6001600160f81b0319821614155b15611a295750600095945050505050565b915080611a3581613855565b915050611908565b506001949350505050565b6001600160a01b038216331415611aa15760405162461bcd60e51b815260206004820152601a60248201527f455243373231413a20617070726f766520746f2063616c6c65720000000000006044820152606401610b9e565b3360008181526006602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b611b18848484612400565b611b2484848484612a60565b611b405760405162461bcd60e51b8152600401610b9e9061393d565b50505050565b6000805490611b553384612353565b6012549091506001600160a01b0380831691161480611b8157506011546001600160a01b038281169116145b611bbf5760405162461bcd60e51b815260206004820152600f60248201526e139bdd0815da1a5d195b1a5cdd1959608a1b6044820152606401610b9e565b6011546001600160a01b0382811691161415611d4057600c54600160a01b900460ff16611c265760405162461bcd60e51b8152602060048201526015602482015274141c995cd85b1948139bdd081058dd1a5d985d1959605a1b6044820152606401610b9e565b33600090815260146020526040902054600590611c449086906138a0565b1115611c875760405162461bcd60e51b8152602060048201526012602482015271457863656564204d61782035206d696e747360701b6044820152606401610b9e565b600e54611c9490856138e3565b341015611cd45760405162461bcd60e51b815260206004820152600e60248201526d09cdee8408adcdeeaced0408aa8960931b6044820152606401610b9e565b601054600f54611ce49190613889565b611cee85846138a0565b1115611d0c5760405162461bcd60e51b8152600401610b9e906138b8565b3360009081526014602052604081208054869290611d2b9084906138a0565b90915550611d3b905033856129f4565b611b40565b6012546001600160a01b0382811691161415611b4057600c54600160b01b900460ff16611da45760405162461bcd60e51b8152602060048201526012602482015271119c995948139bdd081058dd1a5d985d195960721b6044820152606401610b9e565b600060105411611dee5760405162461bcd60e51b8152602060048201526015602482015274119c99594814dd5c1c1b1e48115e1a185d5cdd1959605a1b6044820152606401610b9e565b3360009081526013602052604090205460ff1615611e445760405162461bcd60e51b8152602060048201526013602482015272105b1c9958591e48119c995948135a5b9d1959606a1b6044820152606401610b9e565b83600114611e945760405162461bcd60e51b815260206004820152601960248201527f4f6e6c7920312046726565204d696e7420506f737369626c65000000000000006044820152606401610b9e565b600f54611ea185846138a0565b1115611ebf5760405162461bcd60e51b8152600401610b9e906138b8565b336000908152601360205260408120805460ff191660019081179091556010805491929091611eef908490613889565b90915550611b40905033856129f4565b6016546040516370a0823160e01b81523360048201526001600160a01b03909116906370a0823190602401602060405180830381865afa158015611f47573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611f6b9190613870565b6008541115611faa5760405162461bcd60e51b815260206004820152600b60248201526a6c6f772062616c616e636560a81b6044820152606401610b9e565b601654604051636eb1769f60e11b81523360048201523060248201526001600160a01b039091169063dd62ed3e90604401602060405180830381865afa158015611ff8573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061201c9190613870565b600854111561205d5760405162461bcd60e51b815260206004820152600d60248201526c6c6f7720616c6c6f77616e636560981b6044820152606401610b9e565b601654600854604051632770a7eb60e21b815233600482015260248101919091526001600160a01b0390911690639dc29fac90604401600060405180830381600087803b1580156120ad57600080fd5b505af11580156120c1573d6000803e3d6000fd5b505050506112188282612b57565b60606120dc826000541190565b6121405760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b6064820152608401610b9e565b600061214a612e82565b9050600081511161216a5760405180602001604052806000815250612195565b8061217484612e91565b604051602001612185929190613990565b6040516020818303038152906040525b9392505050565b600c546001600160a01b031633146121c65760405162461bcd60e51b8152600401610b9e9061380a565b600054600f80546121d6916138a0565b6121e083836138a0565b11156122225760405162461bcd60e51b81526020600482015260116024820152704e6f7420456e6f75676820537570706c7960781b6044820152606401610b9e565b610cd683836129f4565b600c546001600160a01b031633146122565760405162461bcd60e51b8152600401610b9e9061380a565b600855565b60178054610eec906137b3565b600c546001600160a01b031633146122925760405162461bcd60e51b8152600401610b9e9061380a565b6001600160a01b0381166122f75760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610b9e565b610fd081612a0e565b6040517f19457468657265756d205369676e6564204d6573736167653a0a3332000000006020820152603c8101829052600090605c01604051602081830303815290604052805190602001209050919050565b604080516001600160a01b0384166020820152600091829101604051602081830303815290604052805190602001209050600061238f82612300565b905061239b8185612f8f565b95945050505050565b60008281526005602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b600061240b8261284a565b80519091506000906001600160a01b0316336001600160a01b0316148061244257503361243784610b33565b6001600160a01b0316145b80612454575081516124549033610979565b9050806124be5760405162461bcd60e51b815260206004820152603260248201527f455243373231413a207472616e736665722063616c6c6572206973206e6f74206044820152711bdddb995c881b9bdc88185c1c1c9bdd995960721b6064820152608401610b9e565b846001600160a01b031682600001516001600160a01b0316146125325760405162461bcd60e51b815260206004820152602660248201527f455243373231413a207472616e736665722066726f6d20696e636f72726563746044820152651037bbb732b960d11b6064820152608401610b9e565b6001600160a01b0384166125965760405162461bcd60e51b815260206004820152602560248201527f455243373231413a207472616e7366657220746f20746865207a65726f206164604482015264647265737360d81b6064820152608401610b9e565b6125a660008484600001516123a4565b6001600160a01b03851660009081526004602052604081208054600192906125d89084906001600160801b03166139bf565b82546101009290920a6001600160801b038181021990931691831602179091556001600160a01b03861660009081526004602052604081208054600194509092612624918591166139e7565b82546001600160801b039182166101009390930a9283029190920219909116179055506040805180820182526001600160a01b03808716825267ffffffffffffffff428116602080850191825260008981526003909152948520935184549151909216600160a01b026001600160e01b031990911691909216171790556126ac8460016138a0565b6000818152600360205260409020549091506001600160a01b031661273e576126d6816000541190565b1561273e5760408051808201825284516001600160a01b03908116825260208087015167ffffffffffffffff9081168285019081526000878152600390935294909120925183549451909116600160a01b026001600160e01b03199094169116179190911790555b83856001600160a01b0316876001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45b505050505050565b6000612793836112bb565b9050336001600160a01b038216146127ed5760405162461bcd60e51b815260206004820152601f60248201527f4552433732313a2063616c6c6572206973206e6f7420746865206f776e6572006044820152606401610b9e565b6000838152600960209081526040909120835161280c92850190613388565b50827fbe3e2fc72ea4bd0d860e908b1ee27aa9856809e62a75bfc0cb7f04b5d791873d8360405161283d91906134a3565b60405180910390a2505050565b6040805180820190915260008082526020820152612869826000541190565b6128c85760405162461bcd60e51b815260206004820152602a60248201527f455243373231413a206f776e657220717565727920666f72206e6f6e657869736044820152693a32b73a103a37b5b2b760b11b6064820152608401610b9e565b60007f000000000000000000000000000000000000000000000000000000000000000a83106129295761291b7f000000000000000000000000000000000000000000000000000000000000000a84613889565b6129269060016138a0565b90505b825b818110612993576000818152600360209081526040918290208251808401909352546001600160a01b038116808452600160a01b90910467ffffffffffffffff16918301919091521561298057949350505050565b508061298b81613a09565b91505061292b565b5060405162461bcd60e51b815260206004820152602f60248201527f455243373231413a20756e61626c6520746f2064657465726d696e652074686560448201526e1037bbb732b91037b3103a37b5b2b760891b6064820152608401610b9e565b61121882826040518060200160405280600081525061300e565b600c80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60006001600160a01b0384163b15611a3d57604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290612aa4903390899088908890600401613a20565b6020604051808303816000875af1925050508015612adf575060408051601f3d908101601f19168201909252612adc91810190613a5d565b60015b612b39573d808015612b0d576040519150601f19603f3d011682016040523d82523d6000602084013e612b12565b606091505b508051612b315760405162461bcd60e51b8152600401610b9e9061393d565b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490505b949350505050565b6000612b62836112bb565b9050336001600160a01b03821614612bbc5760405162461bcd60e51b815260206004820152601f60248201527f4552433732313a2063616c6c6572206973206e6f7420746865206f776e6572006044820152606401610b9e565b612bc582611839565b1515600114612c0d5760405162461bcd60e51b81526020600482015260146024820152734e6f7420612076616c6964206e6577206e616d6560601b6044820152606401610b9e565b6000838152600a6020526040908190209051600291612c2b91613a7a565b602060405180830381855afa158015612c48573d6000803e3d6000fd5b5050506040513d601f19601f82011682018060405250810190612c6b9190613870565b600283604051612c7b91906137ee565b602060405180830381855afa158015612c98573d6000803e3d6000fd5b5050506040513d601f19601f82011682018060405250810190612cbb9190613870565b1415612d155760405162461bcd60e51b815260206004820152602360248201527f4e6577206e616d652069732073616d65206173207468652063757272656e74206044820152626f6e6560e81b6064820152608401610b9e565b612d1e82610cdb565b15612d635760405162461bcd60e51b815260206004820152601560248201527413985b5948185b1c9958591e481c995cd95c9d9959605a1b6044820152606401610b9e565b6000838152600a602052604081208054612d7c906137b3565b90501115612e27576000838152600a602052604090208054612e279190612da2906137b3565b80601f0160208091040260200160405190810160405280929190818152602001828054612dce906137b3565b8015612e1b5780601f10612df057610100808354040283529160200191612e1b565b820191906000526020600020905b815481529060010190602001808311612dfe57829003601f168201915b505050505060006132e9565b612e328260016132e9565b6000838152600a602090815260409091208351612e5192850190613388565b50827f7e632a301794d8d4a81ea7e20f37d1947158d36e66403af04ba85dd194b66f1b8360405161283d91906134a3565b606060178054610ab0906137b3565b606081612eb55750506040805180820190915260018152600360fc1b602082015290565b8160005b8115612edf5780612ec981613855565b9150612ed89050600a83613b2c565b9150612eb9565b60008167ffffffffffffffff811115612efa57612efa613515565b6040519080825280601f01601f191660200182016040528015612f24576020820181803683370190505b5090505b8415612b4f57612f39600183613889565b9150612f46600a86613b40565b612f519060306138a0565b60f81b818381518110612f6657612f66613902565b60200101906001600160f81b031916908160001a905350612f88600a86613b2c565b9450612f28565b600080600080612f9e85613326565b6040805160008152602081018083528b905260ff8316918101919091526060810184905260808101839052929550909350915060019060a0016020604051602081039080840390855afa158015612ff9573d6000803e3d6000fd5b5050604051601f190151979650505050505050565b6000546001600160a01b0384166130715760405162461bcd60e51b815260206004820152602160248201527f455243373231413a206d696e7420746f20746865207a65726f206164647265736044820152607360f81b6064820152608401610b9e565b61307c816000541190565b156130c95760405162461bcd60e51b815260206004820152601d60248201527f455243373231413a20746f6b656e20616c7265616479206d696e7465640000006044820152606401610b9e565b7f000000000000000000000000000000000000000000000000000000000000000a8311156131445760405162461bcd60e51b815260206004820152602260248201527f455243373231413a207175616e7469747920746f206d696e7420746f6f2068696044820152610ced60f31b6064820152608401610b9e565b6001600160a01b0384166000908152600460209081526040918290208251808401845290546001600160801b038082168352600160801b90910416918101919091528151808301909252805190919081906131a09087906139e7565b6001600160801b031681526020018583602001516131be91906139e7565b6001600160801b039081169091526001600160a01b0380881660008181526004602090815260408083208751978301518716600160801b0297909616969096179094558451808601865291825267ffffffffffffffff4281168386019081528883526003909552948120915182549451909516600160a01b026001600160e01b031990941694909216939093179190911790915582905b858110156132de5760405182906001600160a01b038916906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a46132a26000888488612a60565b6132be5760405162461bcd60e51b8152600401610b9e9061393d565b816132c881613855565b92505080806132d690613855565b915050613255565b506000819055612780565b80600b6132f5846116c7565b60405161330291906137ee565b908152604051908190036020019020805491151560ff199092169190911790555050565b6000806000835160411461336a5760405162461bcd60e51b815260206004820152600b60248201526a1cda59c81a5b9d985b1a5960aa1b6044820152606401610b9e565b50505060208101516040820151606090920151909260009190911a90565b828054613394906137b3565b90600052602060002090601f0160209004810192826133b657600085556133fc565b82601f106133cf57805160ff19168380011785556133fc565b828001600101855582156133fc579182015b828111156133fc5782518255916020019190600101906133e1565b5061127a9291505b8082111561127a5760008155600101613404565b6001600160e01b031981168114610fd057600080fd5b60006020828403121561344057600080fd5b813561219581613418565b60005b8381101561346657818101518382015260200161344e565b83811115611b405750506000910152565b6000815180845261348f81602086016020860161344b565b601f01601f19169290920160200192915050565b6020815260006121956020830184613477565b6000602082840312156134c857600080fd5b5035919050565b80356001600160a01b03811681146134e657600080fd5b919050565b600080604083850312156134fe57600080fd5b613507836134cf565b946020939093013593505050565b634e487b7160e01b600052604160045260246000fd5b600082601f83011261353c57600080fd5b813567ffffffffffffffff8082111561355757613557613515565b604051601f8301601f19908116603f0116810190828211818310171561357f5761357f613515565b8160405283815286602085880101111561359857600080fd5b836020870160208301376000602085830101528094505050505092915050565b6000602082840312156135ca57600080fd5b813567ffffffffffffffff8111156135e157600080fd5b612b4f8482850161352b565b60008060006060848603121561360257600080fd5b61360b846134cf565b9250613619602085016134cf565b9150604084013590509250925092565b60006020828403121561363b57600080fd5b612195826134cf565b803580151581146134e657600080fd5b60006020828403121561366657600080fd5b61219582613644565b6000806040838503121561368257600080fd5b82359150602083013567ffffffffffffffff8111156136a057600080fd5b6136ac8582860161352b565b9150509250929050565b600080604083850312156136c957600080fd5b6136d2836134cf565b91506136e0602084016134cf565b90509250929050565b600080604083850312156136fc57600080fd5b613705836134cf565b91506136e060208401613644565b6000806000806080858703121561372957600080fd5b613732856134cf565b9350613740602086016134cf565b925060408501359150606085013567ffffffffffffffff81111561376357600080fd5b61376f8782880161352b565b91505092959194509250565b6000806040838503121561378e57600080fd5b613797836134cf565b9150602083013567ffffffffffffffff8111156136a057600080fd5b600181811c908216806137c757607f821691505b602082108114156137e857634e487b7160e01b600052602260045260246000fd5b50919050565b6000825161380081846020870161344b565b9190910192915050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b634e487b7160e01b600052601160045260246000fd5b60006000198214156138695761386961383f565b5060010190565b60006020828403121561388257600080fd5b5051919050565b60008282101561389b5761389b61383f565b500390565b600082198211156138b3576138b361383f565b500190565b602080825260119082015270457863656564204d617820537570706c7960781b604082015260600190565b60008160001904831182151516156138fd576138fd61383f565b500290565b634e487b7160e01b600052603260045260246000fd5b600060ff821660ff84168060ff038211156139355761393561383f565b019392505050565b60208082526033908201527f455243373231413a207472616e7366657220746f206e6f6e204552433732315260408201527232b1b2b4bb32b91034b6b83632b6b2b73a32b960691b606082015260800190565b600083516139a281846020880161344b565b8351908301906139b681836020880161344b565b01949350505050565b60006001600160801b03838116908316818110156139df576139df61383f565b039392505050565b60006001600160801b038083168185168083038211156139b6576139b661383f565b600081613a1857613a1861383f565b506000190190565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090613a5390830184613477565b9695505050505050565b600060208284031215613a6f57600080fd5b815161219581613418565b600080835481600182811c915080831680613a9657607f831692505b6020808410821415613ab657634e487b7160e01b86526022600452602486fd5b818015613aca5760018114613adb57613b08565b60ff19861689528489019650613b08565b60008a81526020902060005b86811015613b005781548b820152908501908301613ae7565b505084890196505b509498975050505050505050565b634e487b7160e01b600052601260045260246000fd5b600082613b3b57613b3b613b16565b500490565b600082613b4f57613b4f613b16565b50069056fea2646970667358221220a94c41c166c39be8e4d9e78a68df7cdb43f42635287cfb08e1e8760fa576bba764736f6c634300080a0033

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.