ETH Price: $3,519.30 (-1.08%)

Token

.optimism (.OPTIMISM)
 

Overview

Max Total Supply

458 .OPTIMISM

Holders

246

Market

Onchain Market Cap

$0.00

Circulating Supply Market Cap

-
Balance
1 .OPTIMISM
0x8bbd6aec68aef08b2d4cdd93b2cffa48b6e10352
Loading...
Loading
Loading...
Loading
Loading...
Loading

Click here to update the token information / general information

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

Contract Name:
PunkTLD

Compiler Version
v0.8.4+commit.c7e474f2

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion

Contract Source Code (Solidity Standard Json-Input format)

File 1 of 15 : PunkTLD.sol
// SPDX-License-Identifier: GPL-3.0-or-later
pragma solidity ^0.8.4;

import "./interfaces/IPunkTLDFactory.sol";
import "./lib/strings.sol";
import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "base64-sol/base64.sol";

/// @title Punk Domains TLD contract (v2)
/// @author Tempe Techie
/// @notice Dynamically generated NFT contract which represents a top-level domain
contract PunkTLD is ERC721, Ownable, ReentrancyGuard {
  using strings for string;

  uint256 public price; // domain price
  bool public buyingEnabled; // buying domains enabled
  address public factoryAddress; // PunkTLDFactory address
  uint256 public royalty; // share of each domain purchase (in bips) that goes to Punk Domains
  uint256 public referral = 1000; // share of each domain purchase (in bips) that goes to the referrer (referral fee)
  uint256 public totalSupply;
  uint256 public nameMaxLength = 140; // max length of a domain name
  string public description = "Punk Domains digital identity. Visit https://punk.domains/";

  struct Domain {
    string name; // domain name that goes before the TLD name; example: "tempetechie" in "tempetechie.web3"
    uint256 tokenId;
    address holder;
    string data; // stringified JSON object, example: {"description": "Some text", "twitter": "@techie1239", "friends": ["0x123..."], "url": "https://punk.domains"}
  }
  
  mapping (string => Domain) public domains; // mapping (domain name => Domain struct)
  mapping (uint256 => string) public domainIdsNames; // mapping (tokenId => domain name)
  mapping (address => string) public defaultNames; // user's default domain

  event DomainCreated(address indexed user, address indexed owner, string fullDomainName);
  event DefaultDomainChanged(address indexed user, string defaultDomain);
  event DataChanged(address indexed user);
  event TldPriceChanged(address indexed user, uint256 tldPrice);
  event ReferralFeeChanged(address indexed user, uint256 referralFee);
  event TldRoyaltyChanged(address indexed user, uint256 tldRoyalty);
  event DomainBuyingToggle(address indexed user, bool domainBuyingToggle);

  constructor(
    string memory _name,
    string memory _symbol,
    address _tldOwner,
    uint256 _domainPrice,
    bool _buyingEnabled,
    uint256 _royalty,
    address _factoryAddress
  ) ERC721(_name, _symbol) {
    price = _domainPrice;
    buyingEnabled = _buyingEnabled;
    royalty = _royalty;
    factoryAddress = _factoryAddress;

    transferOwnership(_tldOwner);
  }

  // READ

  // Domain getters - you can also get all Domain data by calling the auto-generated domains(domainName) method
  function getDomainHolder(string calldata _domainName) public view returns(address) {
    return domains[strings.lower(_domainName)].holder;
  }

  function getDomainData(string calldata _domainName) public view returns(string memory) {
    return domains[strings.lower(_domainName)].data; // should be a JSON object
  }

  function getFactoryOwner() public view returns(address) {
    Ownable factory = Ownable(factoryAddress);
    return factory.owner();
  }

  function tokenURI(uint256 _tokenId) public view override returns (string memory) {
    IPunkTLDFactory factory = IPunkTLDFactory(factoryAddress);
    string memory fullDomainName = string(abi.encodePacked(domains[domainIdsNames[_tokenId]].name, name()));

    return string(
      abi.encodePacked("data:application/json;base64,",Base64.encode(bytes(abi.encodePacked(
        '{"name": "', fullDomainName, '", ',
        '"description": "', description, '", ',
        '"image": "', _getImage(fullDomainName, factory.projectName()), '"}'))))
    );
  }

  function _getImage(string memory _fullDomainName, string memory _projectName) internal pure returns (string memory) {
    string memory svgBase64Encoded = Base64.encode(bytes(string(abi.encodePacked(
      '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 500 500" width="500" height="500"><defs><linearGradient id="grad" x1="0%" y1="0%" x2="100%" y2="0%"><stop offset="0%" style="stop-color:rgb(58,17,116);stop-opacity:1" /><stop offset="100%" style="stop-color:rgb(116,25,17);stop-opacity:1" /></linearGradient></defs><rect x="0" y="0" width="500" height="500" fill="url(#grad)"/><text x="50%" y="50%" dominant-baseline="middle" fill="white" text-anchor="middle" font-size="x-large">',
        _fullDomainName,'</text><text x="50%" y="70%" dominant-baseline="middle" fill="white" text-anchor="middle">',
        _projectName,'</text>',
      '</svg>'
    ))));

    return string(abi.encodePacked("data:image/svg+xml;base64,",svgBase64Encoded));
  }

  // WRITE
  function editDefaultDomain(string calldata _domainName) external {
    require(domains[_domainName].holder == msg.sender, "You do not own the selected domain");
    defaultNames[msg.sender] = _domainName;
    emit DefaultDomainChanged(msg.sender, _domainName);
  }

  /// @notice Edit domain custom data. Make sure to not accidentally delete previous data. Fetch previous data first.
  /// @param _domainName Only domain name, no TLD/extension.
  /// @param _data Custom data needs to be in a JSON object format.
  function editData(string calldata _domainName, string calldata _data) external {
    require(domains[_domainName].holder == msg.sender, "Only domain holder can edit their data");
    domains[_domainName].data = _data;
    emit DataChanged(msg.sender);
  }

  /// @notice Mint a new domain name as NFT (no dots and spaces allowed).
  /// @param _domainName Enter domain name without TLD and make sure letters are in lowercase form.
  /// @return token ID
  function mint(
    string memory _domainName,
    address _domainHolder,
    address _referrer
  ) external payable nonReentrant returns(uint256) {
    require(buyingEnabled || msg.sender == owner(), "Buying TLDs disabled");
    require(msg.value >= price, "Value below price");

    _sendPayment(msg.value, _referrer);

    return _mintDomain(_domainName, _domainHolder, "");
  }

  function _mintDomain(
    string memory _domainNameRaw, 
    address _domainHolder,
    string memory _data
  ) internal returns(uint256) {
    // convert domain name to lowercase (only works for ascii, clients should enforce ascii domains only)
    string memory _domainName = strings.lower(_domainNameRaw);

    require(strings.len(strings.toSlice(_domainName)) > 1, "Domain must be longer than 1 char");
    require(bytes(_domainName).length < nameMaxLength, "Domain name is too long");
    require(strings.count(strings.toSlice(_domainName), strings.toSlice(".")) == 0, "There should be no dots in the name");
    require(strings.count(strings.toSlice(_domainName), strings.toSlice(" ")) == 0, "There should be no spaces in the name");
    require(domains[_domainName].holder == address(0), "Domain with this name already exists");

    _safeMint(_domainHolder, totalSupply);

    Domain memory newDomain;
    
    // store data in Domain struct
    newDomain.name = _domainName;
    newDomain.tokenId = totalSupply;
    newDomain.holder = _domainHolder;
    newDomain.data = _data;

    // add to both mappings
    domains[_domainName] = newDomain;
    domainIdsNames[totalSupply] = _domainName;

    if (bytes(defaultNames[_domainHolder]).length == 0) {
      defaultNames[_domainHolder] = _domainName; // if default domain name is not set for that holder, set it now
    }
    
    emit DomainCreated(msg.sender, _domainHolder, string(abi.encodePacked(_domainName, name())));

    ++totalSupply;

    return totalSupply-1;
  }

  function _sendPayment(uint256 _paymentAmount, address _referrer) internal {
    if (royalty > 0 && royalty < 5000) { 
      // send royalty - must be less than 50% (5000 bips)
      (bool sentRoyalty, ) = payable(getFactoryOwner()).call{value: ((_paymentAmount * royalty) / 10000)}("");
      require(sentRoyalty, "Failed to send royalty to factory owner");
    }

    if (_referrer != address(0) && referral > 0 && referral < 5000) {
      // send referral fee - must be less than 50% (5000 bips)
      (bool sentReferralFee, ) = payable(_referrer).call{value: ((_paymentAmount * referral) / 10000)}("");
      require(sentReferralFee, "Failed to send referral fee");
    }

    // send the rest to TLD owner
    (bool sent, ) = payable(owner()).call{value: address(this).balance}("");
    require(sent, "Failed to send domain payment to TLD owner");
  }

  ///@dev Hook that is called before any token transfer. This includes minting and burning.
  function _beforeTokenTransfer(address from,address to,uint256 tokenId) internal override virtual {

    if (from != address(0)) { // run on every transfer but not on mint
      domains[domainIdsNames[tokenId]].holder = to; // change holder address in Domain struct
      domains[domainIdsNames[tokenId]].data = ""; // reset custom data
      
      if (bytes(defaultNames[to]).length == 0) {
        defaultNames[to] = domains[domainIdsNames[tokenId]].name; // if default domain name is not set for that holder, set it now
      }

      if (strings.equals(strings.toSlice(domains[domainIdsNames[tokenId]].name), strings.toSlice(defaultNames[from]))) {
        defaultNames[from] = ""; // if previous owner had this domain name as default, unset it as default
      }
    }
  }

  // OWNER

  /// @notice Only TLD contract owner can call this function.
  function changeDescription(string calldata _description) external onlyOwner {
    description = _description;
  }

  /// @notice Only TLD contract owner can call this function.
  function changeNameMaxLength(uint256 _maxLength) external onlyOwner {
    nameMaxLength = _maxLength;
  }

  /// @notice Only TLD contract owner can call this function.
  function changePrice(uint256 _price) external onlyOwner {
    price = _price;
    emit TldPriceChanged(msg.sender, _price);
  }

  /// @notice Only TLD contract owner can call this function.
  function changeReferralFee(uint256 _referral) external onlyOwner {
    require(_referral < 5000, "Referral fee cannot be 50% or higher");
    referral = _referral; // referral must be in bips
    emit ReferralFeeChanged(msg.sender, _referral);
  }

  /// @notice Only TLD contract owner can call this function.
  function toggleBuyingDomains() external onlyOwner {
    buyingEnabled = !buyingEnabled;
    emit DomainBuyingToggle(msg.sender, buyingEnabled);
  }
  
  // FACTORY OWNER (current owner address of PunkTLDFactory)

  /// @notice Only Factory contract owner can call this function.
  function changeRoyalty(uint256 _royalty) external {
    require(getFactoryOwner() == msg.sender, "Sender not factory owner");
    require(_royalty < 5000, "Royalty cannot be 50% or higher");
    royalty = _royalty; // royalty is in bips
    emit TldRoyaltyChanged(msg.sender, _royalty);
  }
}

File 2 of 15 : IPunkTLDFactory.sol
// SPDX-License-Identifier: GPL-3.0-or-later
pragma solidity ^0.8.4;

interface IPunkTLDFactory {

  function projectName() external view returns (string memory);

}

File 3 of 15 : strings.sol
// SPDX-License-Identifier: Apache-2.0

/*
 * @title String & slice utility library for Solidity contracts.
 * @author Nick Johnson <[email protected]>
 */

pragma solidity ^0.8.0;

library strings {
    struct slice {
        uint _len;
        uint _ptr;
    }

    function memcpy(uint dest, uint src, uint _len) private pure {
        // Copy word-length chunks while possible
        for(; _len >= 32; _len -= 32) {
            assembly {
                mstore(dest, mload(src))
            }
            dest += 32;
            src += 32;
        }

        // Copy remaining bytes
        uint mask = type(uint).max;
        if (_len > 0) {
            mask = 256 ** (32 - _len) - 1;
        }
        assembly {
            let srcpart := and(mload(src), not(mask))
            let destpart := and(mload(dest), mask)
            mstore(dest, or(destpart, srcpart))
        }
    }

    /*
     * @dev Returns a slice containing the entire string.
     * @param self The string to make a slice from.
     * @return A newly allocated slice containing the entire string.
     */
    function toSlice(string memory self) internal pure returns (slice memory) {
        uint ptr;
        assembly {
            ptr := add(self, 0x20)
        }
        return slice(bytes(self).length, ptr);
    }

    /*
     * @dev Returns the length of a null-terminated bytes32 string.
     * @param self The value to find the length of.
     * @return The length of the string, from 0 to 32.
     */
    function len(bytes32 self) internal pure returns (uint) {
        uint ret;
        if (self == 0)
            return 0;
        if (uint(self) & type(uint128).max == 0) {
            ret += 16;
            self = bytes32(uint(self) / 0x100000000000000000000000000000000);
        }
        if (uint(self) & type(uint64).max == 0) {
            ret += 8;
            self = bytes32(uint(self) / 0x10000000000000000);
        }
        if (uint(self) & type(uint32).max == 0) {
            ret += 4;
            self = bytes32(uint(self) / 0x100000000);
        }
        if (uint(self) & type(uint16).max == 0) {
            ret += 2;
            self = bytes32(uint(self) / 0x10000);
        }
        if (uint(self) & type(uint8).max == 0) {
            ret += 1;
        }
        return 32 - ret;
    }

    /*
     * @dev Returns a slice containing the entire bytes32, interpreted as a
     *      null-terminated utf-8 string.
     * @param self The bytes32 value to convert to a slice.
     * @return A new slice containing the value of the input argument up to the
     *         first null.
     */
    function toSliceB32(bytes32 self) internal pure returns (slice memory ret) {
        // Allocate space for `self` in memory, copy it there, and point ret at it
        assembly {
            let ptr := mload(0x40)
            mstore(0x40, add(ptr, 0x20))
            mstore(ptr, self)
            mstore(add(ret, 0x20), ptr)
        }
        ret._len = len(self);
    }

    /*
     * @dev Returns a new slice containing the same data as the current slice.
     * @param self The slice to copy.
     * @return A new slice containing the same data as `self`.
     */
    function copy(slice memory self) internal pure returns (slice memory) {
        return slice(self._len, self._ptr);
    }

    /*
     * @dev Copies a slice to a new string.
     * @param self The slice to copy.
     * @return A newly allocated string containing the slice's text.
     */
    function toString(slice memory self) internal pure returns (string memory) {
        string memory ret = new string(self._len);
        uint retptr;
        assembly { retptr := add(ret, 32) }

        memcpy(retptr, self._ptr, self._len);
        return ret;
    }

    /*
     * @dev Returns the length in runes of the slice. Note that this operation
     *      takes time proportional to the length of the slice; avoid using it
     *      in loops, and call `slice.empty()` if you only need to know whether
     *      the slice is empty or not.
     * @param self The slice to operate on.
     * @return The length of the slice in runes.
     */
    function len(slice memory self) internal pure returns (uint l) {
        // Starting at ptr-31 means the LSB will be the byte we care about
        uint ptr = self._ptr - 31;
        uint end = ptr + self._len;
        for (l = 0; ptr < end; l++) {
            uint8 b;
            assembly { b := and(mload(ptr), 0xFF) }
            if (b < 0x80) {
                ptr += 1;
            } else if(b < 0xE0) {
                ptr += 2;
            } else if(b < 0xF0) {
                ptr += 3;
            } else if(b < 0xF8) {
                ptr += 4;
            } else if(b < 0xFC) {
                ptr += 5;
            } else {
                ptr += 6;
            }
        }
    }

    /*
     * @dev Returns true if the slice is empty (has a length of 0).
     * @param self The slice to operate on.
     * @return True if the slice is empty, False otherwise.
     */
    function empty(slice memory self) internal pure returns (bool) {
        return self._len == 0;
    }

    /*
     * @dev Returns a positive number if `other` comes lexicographically after
     *      `self`, a negative number if it comes before, or zero if the
     *      contents of the two slices are equal. Comparison is done per-rune,
     *      on unicode codepoints.
     * @param self The first slice to compare.
     * @param other The second slice to compare.
     * @return The result of the comparison.
     */
    function compare(slice memory self, slice memory other) internal pure returns (int) {
        uint shortest = self._len;
        if (other._len < self._len)
            shortest = other._len;

        uint selfptr = self._ptr;
        uint otherptr = other._ptr;
        for (uint idx = 0; idx < shortest; idx += 32) {
            uint a;
            uint b;
            assembly {
                a := mload(selfptr)
                b := mload(otherptr)
            }
            if (a != b) {
                // Mask out irrelevant bytes and check again
                uint mask = type(uint).max; // 0xffff...
                if(shortest < 32) {
                  mask = ~(2 ** (8 * (32 - shortest + idx)) - 1);
                }
                unchecked {
                    uint diff = (a & mask) - (b & mask);
                    if (diff != 0)
                        return int(diff);
                }
            }
            selfptr += 32;
            otherptr += 32;
        }
        return int(self._len) - int(other._len);
    }

    /*
     * @dev Returns true if the two slices contain the same text.
     * @param self The first slice to compare.
     * @param self The second slice to compare.
     * @return True if the slices are equal, false otherwise.
     */
    function equals(slice memory self, slice memory other) internal pure returns (bool) {
        return compare(self, other) == 0;
    }

    /*
     * @dev Extracts the first rune in the slice into `rune`, advancing the
     *      slice to point to the next rune and returning `self`.
     * @param self The slice to operate on.
     * @param rune The slice that will contain the first rune.
     * @return `rune`.
     */
    function nextRune(slice memory self, slice memory rune) internal pure returns (slice memory) {
        rune._ptr = self._ptr;

        if (self._len == 0) {
            rune._len = 0;
            return rune;
        }

        uint l;
        uint b;
        // Load the first byte of the rune into the LSBs of b
        assembly { b := and(mload(sub(mload(add(self, 32)), 31)), 0xFF) }
        if (b < 0x80) {
            l = 1;
        } else if(b < 0xE0) {
            l = 2;
        } else if(b < 0xF0) {
            l = 3;
        } else {
            l = 4;
        }

        // Check for truncated codepoints
        if (l > self._len) {
            rune._len = self._len;
            self._ptr += self._len;
            self._len = 0;
            return rune;
        }

        self._ptr += l;
        self._len -= l;
        rune._len = l;
        return rune;
    }

    /*
     * @dev Returns the first rune in the slice, advancing the slice to point
     *      to the next rune.
     * @param self The slice to operate on.
     * @return A slice containing only the first rune from `self`.
     */
    function nextRune(slice memory self) internal pure returns (slice memory ret) {
        nextRune(self, ret);
    }

    /*
     * @dev Returns the number of the first codepoint in the slice.
     * @param self The slice to operate on.
     * @return The number of the first codepoint in the slice.
     */
    function ord(slice memory self) internal pure returns (uint ret) {
        if (self._len == 0) {
            return 0;
        }

        uint word;
        uint length;
        uint divisor = 2 ** 248;

        // Load the rune into the MSBs of b
        assembly { word:= mload(mload(add(self, 32))) }
        uint b = word / divisor;
        if (b < 0x80) {
            ret = b;
            length = 1;
        } else if(b < 0xE0) {
            ret = b & 0x1F;
            length = 2;
        } else if(b < 0xF0) {
            ret = b & 0x0F;
            length = 3;
        } else {
            ret = b & 0x07;
            length = 4;
        }

        // Check for truncated codepoints
        if (length > self._len) {
            return 0;
        }

        for (uint i = 1; i < length; i++) {
            divisor = divisor / 256;
            b = (word / divisor) & 0xFF;
            if (b & 0xC0 != 0x80) {
                // Invalid UTF-8 sequence
                return 0;
            }
            ret = (ret * 64) | (b & 0x3F);
        }

        return ret;
    }

    /*
     * @dev Returns the keccak-256 hash of the slice.
     * @param self The slice to hash.
     * @return The hash of the slice.
     */
    function keccak(slice memory self) internal pure returns (bytes32 ret) {
        assembly {
            ret := keccak256(mload(add(self, 32)), mload(self))
        }
    }

    /*
     * @dev Returns true if `self` starts with `needle`.
     * @param self The slice to operate on.
     * @param needle The slice to search for.
     * @return True if the slice starts with the provided text, false otherwise.
     */
    function startsWith(slice memory self, slice memory needle) internal pure returns (bool) {
        if (self._len < needle._len) {
            return false;
        }

        if (self._ptr == needle._ptr) {
            return true;
        }

        bool equal;
        assembly {
            let length := mload(needle)
            let selfptr := mload(add(self, 0x20))
            let needleptr := mload(add(needle, 0x20))
            equal := eq(keccak256(selfptr, length), keccak256(needleptr, length))
        }
        return equal;
    }

    /*
     * @dev If `self` starts with `needle`, `needle` is removed from the
     *      beginning of `self`. Otherwise, `self` is unmodified.
     * @param self The slice to operate on.
     * @param needle The slice to search for.
     * @return `self`
     */
    function beyond(slice memory self, slice memory needle) internal pure returns (slice memory) {
        if (self._len < needle._len) {
            return self;
        }

        bool equal = true;
        if (self._ptr != needle._ptr) {
            assembly {
                let length := mload(needle)
                let selfptr := mload(add(self, 0x20))
                let needleptr := mload(add(needle, 0x20))
                equal := eq(keccak256(selfptr, length), keccak256(needleptr, length))
            }
        }

        if (equal) {
            self._len -= needle._len;
            self._ptr += needle._len;
        }

        return self;
    }

    /*
     * @dev Returns true if the slice ends with `needle`.
     * @param self The slice to operate on.
     * @param needle The slice to search for.
     * @return True if the slice starts with the provided text, false otherwise.
     */
    function endsWith(slice memory self, slice memory needle) internal pure returns (bool) {
        if (self._len < needle._len) {
            return false;
        }

        uint selfptr = self._ptr + self._len - needle._len;

        if (selfptr == needle._ptr) {
            return true;
        }

        bool equal;
        assembly {
            let length := mload(needle)
            let needleptr := mload(add(needle, 0x20))
            equal := eq(keccak256(selfptr, length), keccak256(needleptr, length))
        }

        return equal;
    }

    /*
     * @dev If `self` ends with `needle`, `needle` is removed from the
     *      end of `self`. Otherwise, `self` is unmodified.
     * @param self The slice to operate on.
     * @param needle The slice to search for.
     * @return `self`
     */
    function until(slice memory self, slice memory needle) internal pure returns (slice memory) {
        if (self._len < needle._len) {
            return self;
        }

        uint selfptr = self._ptr + self._len - needle._len;
        bool equal = true;
        if (selfptr != needle._ptr) {
            assembly {
                let length := mload(needle)
                let needleptr := mload(add(needle, 0x20))
                equal := eq(keccak256(selfptr, length), keccak256(needleptr, length))
            }
        }

        if (equal) {
            self._len -= needle._len;
        }

        return self;
    }

    // Returns the memory address of the first byte of the first occurrence of
    // `needle` in `self`, or the first byte after `self` if not found.
    function findPtr(uint selflen, uint selfptr, uint needlelen, uint needleptr) private pure returns (uint) {
        uint ptr = selfptr;
        uint idx;

        if (needlelen <= selflen) {
            if (needlelen <= 32) {
                bytes32 mask;
                if (needlelen > 0) {
                    mask = bytes32(~(2 ** (8 * (32 - needlelen)) - 1));
                }

                bytes32 needledata;
                assembly { needledata := and(mload(needleptr), mask) }

                uint end = selfptr + selflen - needlelen;
                bytes32 ptrdata;
                assembly { ptrdata := and(mload(ptr), mask) }

                while (ptrdata != needledata) {
                    if (ptr >= end)
                        return selfptr + selflen;
                    ptr++;
                    assembly { ptrdata := and(mload(ptr), mask) }
                }
                return ptr;
            } else {
                // For long needles, use hashing
                bytes32 hash;
                assembly { hash := keccak256(needleptr, needlelen) }

                for (idx = 0; idx <= selflen - needlelen; idx++) {
                    bytes32 testHash;
                    assembly { testHash := keccak256(ptr, needlelen) }
                    if (hash == testHash)
                        return ptr;
                    ptr += 1;
                }
            }
        }
        return selfptr + selflen;
    }

    // Returns the memory address of the first byte after the last occurrence of
    // `needle` in `self`, or the address of `self` if not found.
    function rfindPtr(uint selflen, uint selfptr, uint needlelen, uint needleptr) private pure returns (uint) {
        uint ptr;

        if (needlelen <= selflen) {
            if (needlelen <= 32) {
                bytes32 mask;
                if (needlelen > 0) {
                    mask = bytes32(~(2 ** (8 * (32 - needlelen)) - 1));
                }

                bytes32 needledata;
                assembly { needledata := and(mload(needleptr), mask) }

                ptr = selfptr + selflen - needlelen;
                bytes32 ptrdata;
                assembly { ptrdata := and(mload(ptr), mask) }

                while (ptrdata != needledata) {
                    if (ptr <= selfptr)
                        return selfptr;
                    ptr--;
                    assembly { ptrdata := and(mload(ptr), mask) }
                }
                return ptr + needlelen;
            } else {
                // For long needles, use hashing
                bytes32 hash;
                assembly { hash := keccak256(needleptr, needlelen) }
                ptr = selfptr + (selflen - needlelen);
                while (ptr >= selfptr) {
                    bytes32 testHash;
                    assembly { testHash := keccak256(ptr, needlelen) }
                    if (hash == testHash)
                        return ptr + needlelen;
                    ptr -= 1;
                }
            }
        }
        return selfptr;
    }

    /*
     * @dev Modifies `self` to contain everything from the first occurrence of
     *      `needle` to the end of the slice. `self` is set to the empty slice
     *      if `needle` is not found.
     * @param self The slice to search and modify.
     * @param needle The text to search for.
     * @return `self`.
     */
    function find(slice memory self, slice memory needle) internal pure returns (slice memory) {
        uint ptr = findPtr(self._len, self._ptr, needle._len, needle._ptr);
        self._len -= ptr - self._ptr;
        self._ptr = ptr;
        return self;
    }

    /*
     * @dev Modifies `self` to contain the part of the string from the start of
     *      `self` to the end of the first occurrence of `needle`. If `needle`
     *      is not found, `self` is set to the empty slice.
     * @param self The slice to search and modify.
     * @param needle The text to search for.
     * @return `self`.
     */
    function rfind(slice memory self, slice memory needle) internal pure returns (slice memory) {
        uint ptr = rfindPtr(self._len, self._ptr, needle._len, needle._ptr);
        self._len = ptr - self._ptr;
        return self;
    }

    /*
     * @dev Splits the slice, setting `self` to everything after the first
     *      occurrence of `needle`, and `token` to everything before it. If
     *      `needle` does not occur in `self`, `self` is set to the empty slice,
     *      and `token` is set to the entirety of `self`.
     * @param self The slice to split.
     * @param needle The text to search for in `self`.
     * @param token An output parameter to which the first token is written.
     * @return `token`.
     */
    function split(slice memory self, slice memory needle, slice memory token) internal pure returns (slice memory) {
        uint ptr = findPtr(self._len, self._ptr, needle._len, needle._ptr);
        token._ptr = self._ptr;
        token._len = ptr - self._ptr;
        if (ptr == self._ptr + self._len) {
            // Not found
            self._len = 0;
        } else {
            self._len -= token._len + needle._len;
            self._ptr = ptr + needle._len;
        }
        return token;
    }

    /*
     * @dev Splits the slice, setting `self` to everything after the first
     *      occurrence of `needle`, and returning everything before it. If
     *      `needle` does not occur in `self`, `self` is set to the empty slice,
     *      and the entirety of `self` is returned.
     * @param self The slice to split.
     * @param needle The text to search for in `self`.
     * @return The part of `self` up to the first occurrence of `delim`.
     */
    function split(slice memory self, slice memory needle) internal pure returns (slice memory token) {
        split(self, needle, token);
    }

    /*
     * @dev Splits the slice, setting `self` to everything before the last
     *      occurrence of `needle`, and `token` to everything after it. If
     *      `needle` does not occur in `self`, `self` is set to the empty slice,
     *      and `token` is set to the entirety of `self`.
     * @param self The slice to split.
     * @param needle The text to search for in `self`.
     * @param token An output parameter to which the first token is written.
     * @return `token`.
     */
    function rsplit(slice memory self, slice memory needle, slice memory token) internal pure returns (slice memory) {
        uint ptr = rfindPtr(self._len, self._ptr, needle._len, needle._ptr);
        token._ptr = ptr;
        token._len = self._len - (ptr - self._ptr);
        if (ptr == self._ptr) {
            // Not found
            self._len = 0;
        } else {
            self._len -= token._len + needle._len;
        }
        return token;
    }

    /*
     * @dev Splits the slice, setting `self` to everything before the last
     *      occurrence of `needle`, and returning everything after it. If
     *      `needle` does not occur in `self`, `self` is set to the empty slice,
     *      and the entirety of `self` is returned.
     * @param self The slice to split.
     * @param needle The text to search for in `self`.
     * @return The part of `self` after the last occurrence of `delim`.
     */
    function rsplit(slice memory self, slice memory needle) internal pure returns (slice memory token) {
        rsplit(self, needle, token);
    }

    /*
     * @dev Counts the number of nonoverlapping occurrences of `needle` in `self`.
     * @param self The slice to search.
     * @param needle The text to search for in `self`.
     * @return The number of occurrences of `needle` found in `self`.
     */
    function count(slice memory self, slice memory needle) internal pure returns (uint cnt) {
        uint ptr = findPtr(self._len, self._ptr, needle._len, needle._ptr) + needle._len;
        while (ptr <= self._ptr + self._len) {
            cnt++;
            ptr = findPtr(self._len - (ptr - self._ptr), ptr, needle._len, needle._ptr) + needle._len;
        }
    }

    /*
     * @dev Returns True if `self` contains `needle`.
     * @param self The slice to search.
     * @param needle The text to search for in `self`.
     * @return True if `needle` is found in `self`, false otherwise.
     */
    function contains(slice memory self, slice memory needle) internal pure returns (bool) {
        return rfindPtr(self._len, self._ptr, needle._len, needle._ptr) != self._ptr;
    }

    /*
     * @dev Returns a newly allocated string containing the concatenation of
     *      `self` and `other`.
     * @param self The first slice to concatenate.
     * @param other The second slice to concatenate.
     * @return The concatenation of the two strings.
     */
    function concat(slice memory self, slice memory other) internal pure returns (string memory) {
        string memory ret = new string(self._len + other._len);
        uint retptr;
        assembly { retptr := add(ret, 32) }
        memcpy(retptr, self._ptr, self._len);
        memcpy(retptr + self._len, other._ptr, other._len);
        return ret;
    }

    /*
     * @dev Joins an array of slices, using `self` as a delimiter, returning a
     *      newly allocated string.
     * @param self The delimiter to use.
     * @param parts A list of slices to join.
     * @return A newly allocated string containing all the slices in `parts`,
     *         joined with `self`.
     */
    function join(slice memory self, slice[] memory parts) internal pure returns (string memory) {
        if (parts.length == 0)
            return "";

        uint length = self._len * (parts.length - 1);
        for(uint i = 0; i < parts.length; i++)
            length += parts[i]._len;

        string memory ret = new string(length);
        uint retptr;
        assembly { retptr := add(ret, 32) }

        for(uint i = 0; i < parts.length; i++) {
            memcpy(retptr, parts[i]._ptr, parts[i]._len);
            retptr += parts[i]._len;
            if (i < parts.length - 1) {
                memcpy(retptr, self._ptr, self._len);
                retptr += self._len;
            }
        }

        return ret;
    }

    /**
     * Lower
     * 
     * Converts all the values of a string to their corresponding lower case
     * value.
     * 
     * @param _base When being used for a data type this is the extended object
     *              otherwise this is the string base to convert to lower case
     * @return string 
     */
    function lower(string memory _base)
        internal
        pure
        returns (string memory) {
        bytes memory _baseBytes = bytes(_base);
        for (uint i = 0; i < _baseBytes.length; i++) {
            _baseBytes[i] = _lower(_baseBytes[i]);
        }
        return string(_baseBytes);
    }

    /**
     * Lower
     * 
     * Convert an alphabetic character to lower case and return the original
     * value when not alphabetic
     * 
     * @param _b1 The byte to be converted to lower case
     * @return bytes1 The converted value if the passed value was alphabetic
     *                and in a upper case otherwise returns the original value
     */
    function _lower(bytes1 _b1)
        private
        pure
        returns (bytes1) {

        if (_b1 >= 0x41 && _b1 <= 0x5A) {
            return bytes1(uint8(_b1) + 32);
        }

        return _b1;
    }
}

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

pragma solidity ^0.8.0;

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

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

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        _approve(to, tokenId);
    }

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

        return _tokenApprovals[tokenId];
    }

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

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

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

        _transfer(from, to, tokenId);
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        _beforeTokenTransfer(from, to, tokenId);

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

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

        emit Transfer(from, to, tokenId);
    }

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

    uint256 private _status;

    constructor() {
        _status = _NOT_ENTERED;
    }

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

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

        _;

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

File 7 of 15 : base64.sol
// SPDX-License-Identifier: MIT

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

    function encode(bytes memory data) internal pure returns (string memory) {
        if (data.length == 0) return '';
        
        // load the table into memory
        string memory table = TABLE;

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

        // add some extra buffer at the end required for the writing
        string memory result = new string(encodedLen + 32);

        assembly {
            // set the actual output length
            mstore(result, encodedLen)
            
            // prepare the lookup table
            let tablePtr := add(table, 1)
            
            // input ptr
            let dataPtr := data
            let endPtr := add(dataPtr, mload(data))
            
            // result ptr, jump over length
            let resultPtr := add(result, 32)
            
            // run over the input, 3 bytes at a time
            for {} lt(dataPtr, endPtr) {}
            {
               dataPtr := add(dataPtr, 3)
               
               // read 3 bytes
               let input := mload(dataPtr)
               
               // write 4 characters
               mstore(resultPtr, shl(248, mload(add(tablePtr, and(shr(18, input), 0x3F)))))
               resultPtr := add(resultPtr, 1)
               mstore(resultPtr, shl(248, mload(add(tablePtr, and(shr(12, input), 0x3F)))))
               resultPtr := add(resultPtr, 1)
               mstore(resultPtr, shl(248, mload(add(tablePtr, and(shr( 6, input), 0x3F)))))
               resultPtr := add(resultPtr, 1)
               mstore(resultPtr, shl(248, mload(add(tablePtr, and(        input,  0x3F)))))
               resultPtr := add(resultPtr, 1)
            }
            
            // padding with '='
            switch mod(mload(data), 3)
            case 1 { mstore(sub(resultPtr, 2), shl(240, 0x3d3d)) }
            case 2 { mstore(sub(resultPtr, 1), shl(248, 0x3d)) }
        }
        
        return result;
    }
}

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

File 9 of 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 : 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 12 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 13 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 (string memory) {
        // Inspired by OraclizeAPI's implementation - MIT licence
        // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol

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

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

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

File 14 of 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 15 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);
}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"string","name":"_name","type":"string"},{"internalType":"string","name":"_symbol","type":"string"},{"internalType":"address","name":"_tldOwner","type":"address"},{"internalType":"uint256","name":"_domainPrice","type":"uint256"},{"internalType":"bool","name":"_buyingEnabled","type":"bool"},{"internalType":"uint256","name":"_royalty","type":"uint256"},{"internalType":"address","name":"_factoryAddress","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"}],"name":"DataChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"string","name":"defaultDomain","type":"string"}],"name":"DefaultDomainChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"bool","name":"domainBuyingToggle","type":"bool"}],"name":"DomainBuyingToggle","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":false,"internalType":"string","name":"fullDomainName","type":"string"}],"name":"DomainCreated","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":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"referralFee","type":"uint256"}],"name":"ReferralFeeChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"tldPrice","type":"uint256"}],"name":"TldPriceChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"tldRoyalty","type":"uint256"}],"name":"TldRoyaltyChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"buyingEnabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"_description","type":"string"}],"name":"changeDescription","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_maxLength","type":"uint256"}],"name":"changeNameMaxLength","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_price","type":"uint256"}],"name":"changePrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_referral","type":"uint256"}],"name":"changeReferralFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_royalty","type":"uint256"}],"name":"changeRoyalty","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"defaultNames","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"description","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"domainIdsNames","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"","type":"string"}],"name":"domains","outputs":[{"internalType":"string","name":"name","type":"string"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"address","name":"holder","type":"address"},{"internalType":"string","name":"data","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"_domainName","type":"string"},{"internalType":"string","name":"_data","type":"string"}],"name":"editData","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_domainName","type":"string"}],"name":"editDefaultDomain","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"factoryAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"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":"string","name":"_domainName","type":"string"}],"name":"getDomainData","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"_domainName","type":"string"}],"name":"getDomainHolder","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getFactoryOwner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"_domainName","type":"string"},{"internalType":"address","name":"_domainHolder","type":"address"},{"internalType":"address","name":"_referrer","type":"address"}],"name":"mint","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"nameMaxLength","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":"price","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"referral","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"royalty","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":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"toggleBuyingDomains","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"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"}]

6103e8600b55608c600d5560e0604052603a6080818152906200434660a03980516200003491600e9160209091019062000231565b503480156200004257600080fd5b5060405162004380380380620043808339810160408190526200006591620003a7565b8651879087906200007e90600090602085019062000231565b5080516200009490600190602084019062000231565b505050620000b1620000ab6200010660201b60201c565b6200010a565b6001600755600884905560098054600a8490556001600160a81b031916841515610100600160a81b031916176101006001600160a01b03841602179055620000f9856200015c565b50505050505050620004b2565b3390565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6006546001600160a01b03163314620001bc5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064015b60405180910390fd5b6001600160a01b038116620002235760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401620001b3565b6200022e816200010a565b50565b8280546200023f906200045f565b90600052602060002090601f016020900481019282620002635760008555620002ae565b82601f106200027e57805160ff1916838001178555620002ae565b82800160010185558215620002ae579182015b82811115620002ae57825182559160200191906001019062000291565b50620002bc929150620002c0565b5090565b5b80821115620002bc5760008155600101620002c1565b80516001600160a01b0381168114620002ef57600080fd5b919050565b600082601f83011262000305578081fd5b81516001600160401b03808211156200032257620003226200049c565b604051601f8301601f19908116603f011681019082821181831017156200034d576200034d6200049c565b8160405283815260209250868385880101111562000369578485fd5b8491505b838210156200038c57858201830151818301840152908201906200036d565b838211156200039d57848385830101525b9695505050505050565b600080600080600080600060e0888a031215620003c2578283fd5b87516001600160401b0380821115620003d9578485fd5b620003e78b838c01620002f4565b985060208a0151915080821115620003fd578485fd5b506200040c8a828b01620002f4565b9650506200041d60408901620002d7565b9450606088015193506080880151801515811462000439578384fd5b60a089015190935091506200045160c08901620002d7565b905092959891949750929550565b600181811c908216806200047457607f821691505b602082108114156200049657634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052604160045260246000fd5b613e8480620004c26000396000f3fe6080604052600436106102305760003560e01c80638da5cb5b1161012e578063bf70e90d116100ab578063db6bf9201161006f578063db6bf92014610656578063e09bda6b14610676578063e61204131461068b578063e985e9c5146106ab578063f2fde38b146106f457600080fd5b8063bf70e90d146105c1578063bfcdd7c3146105d6578063c1e25151146105f6578063c87b56dd14610616578063d2b525d31461063657600080fd5b8063a035b1fe116100f2578063a035b1fe1461052b578063a22cb46514610541578063a2b40d1914610561578063b88d4fde14610581578063ba833c4b146105a157600080fd5b80638da5cb5b146104a35780638ed2fe91146104c157806395d89b41146104db578063966dae0e146104f05780639f0346911461051557600080fd5b806342842e0e116101bc578063715018a611610180578063715018a6146104265780637284e4161461043b57806378a6743b146104505780637afdfb4f146104705780637e6d945e1461049057600080fd5b806342842e0e146103865780635dedf3b5146103a657806362ac7a84146103c65780636352211e146103e657806370a082311461040657600080fd5b80631441a5a9116102035780631441a5a9146102e657806318160ddd1461030a57806323b872dd14610320578063264492351461034057806329ee566c1461037057600080fd5b806301ffc9a71461023557806306fdde031461026a578063081812fc1461028c578063095ea7b3146102c4575b600080fd5b34801561024157600080fd5b506102556102503660046131fd565b610714565b60405190151581526020015b60405180910390f35b34801561027657600080fd5b5061027f610766565b60405161026191906139f9565b34801561029857600080fd5b506102ac6102a73660046133e6565b6107f8565b6040516001600160a01b039091168152602001610261565b3480156102d057600080fd5b506102e46102df3660046131d2565b610892565b005b3480156102f257600080fd5b506102fc600b5481565b604051908152602001610261565b34801561031657600080fd5b506102fc600c5481565b34801561032c57600080fd5b506102e461033b3660046130e4565b6109a8565b34801561034c57600080fd5b5061036061035b3660046132de565b6109d9565b6040516102619493929190613a0c565b34801561037c57600080fd5b506102fc600a5481565b34801561039257600080fd5b506102e46103a13660046130e4565b610b2a565b3480156103b257600080fd5b506102e46103c13660046133e6565b610b45565b3480156103d257600080fd5b5061027f6103e1366004613074565b610b74565b3480156103f257600080fd5b506102ac6104013660046133e6565b610c0e565b34801561041257600080fd5b506102fc610421366004613074565b610c85565b34801561043257600080fd5b506102e4610d0c565b34801561044757600080fd5b5061027f610d42565b34801561045c57600080fd5b506102e461046b3660046133e6565b610d4f565b34801561047c57600080fd5b5061027f61048b366004613235565b610e14565b6102fc61049e366004613384565b610f06565b3480156104af57600080fd5b506006546001600160a01b03166102ac565b3480156104cd57600080fd5b506009546102559060ff1681565b3480156104e757600080fd5b5061027f611035565b3480156104fc57600080fd5b506009546102ac9061010090046001600160a01b031681565b34801561052157600080fd5b506102fc600d5481565b34801561053757600080fd5b506102fc60085481565b34801561054d57600080fd5b506102e461055c3660046131a1565b611044565b34801561056d57600080fd5b506102e461057c3660046133e6565b611053565b34801561058d57600080fd5b506102e461059c366004613124565b6110b4565b3480156105ad57600080fd5b506102e46105bc366004613275565b6110ec565b3480156105cd57600080fd5b506102e46111e4565b3480156105e257600080fd5b506102ac6105f1366004613235565b61125d565b34801561060257600080fd5b506102e46106113660046133e6565b6112d1565b34801561062257600080fd5b5061027f6106313660046133e6565b6113b8565b34801561064257600080fd5b5061027f6106513660046133e6565b6114f7565b34801561066257600080fd5b506102e4610671366004613235565b611510565b34801561068257600080fd5b506102ac611602565b34801561069757600080fd5b506102e46106a6366004613235565b611694565b3480156106b757600080fd5b506102556106c63660046130ac565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b34801561070057600080fd5b506102e461070f366004613074565b6116ca565b60006001600160e01b031982166380ac58cd60e01b148061074557506001600160e01b03198216635b5e139f60e01b145b8061076057506301ffc9a760e01b6001600160e01b03198316145b92915050565b60606000805461077590613d61565b80601f01602080910402602001604051908101604052809291908181526020018280546107a190613d61565b80156107ee5780601f106107c3576101008083540402835291602001916107ee565b820191906000526020600020905b8154815290600101906020018083116107d157829003601f168201915b5050505050905090565b6000818152600260205260408120546001600160a01b03166108765760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b600061089d82610c0e565b9050806001600160a01b0316836001600160a01b0316141561090b5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b606482015260840161086d565b336001600160a01b0382161480610927575061092781336106c6565b6109995760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000606482015260840161086d565b6109a38383611765565b505050565b6109b233826117d3565b6109ce5760405162461bcd60e51b815260040161086d90613ace565b6109a38383836118ca565b8051602081830181018051600f825292820191909301209152805481906109ff90613d61565b80601f0160208091040260200160405190810160405280929190818152602001828054610a2b90613d61565b8015610a785780601f10610a4d57610100808354040283529160200191610a78565b820191906000526020600020905b815481529060010190602001808311610a5b57829003601f168201915b5050505060018301546002840154600385018054949592946001600160a01b03909216935090610aa790613d61565b80601f0160208091040260200160405190810160405280929190818152602001828054610ad390613d61565b8015610b205780601f10610af557610100808354040283529160200191610b20565b820191906000526020600020905b815481529060010190602001808311610b0357829003601f168201915b5050505050905084565b6109a3838383604051806020016040528060008152506110b4565b6006546001600160a01b03163314610b6f5760405162461bcd60e51b815260040161086d90613a99565b600d55565b60116020526000908152604090208054610b8d90613d61565b80601f0160208091040260200160405190810160405280929190818152602001828054610bb990613d61565b8015610c065780601f10610bdb57610100808354040283529160200191610c06565b820191906000526020600020905b815481529060010190602001808311610be957829003601f168201915b505050505081565b6000818152600260205260408120546001600160a01b0316806107605760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b606482015260840161086d565b60006001600160a01b038216610cf05760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b606482015260840161086d565b506001600160a01b031660009081526003602052604090205490565b6006546001600160a01b03163314610d365760405162461bcd60e51b815260040161086d90613a99565b610d406000611a75565b565b600e8054610b8d90613d61565b6006546001600160a01b03163314610d795760405162461bcd60e51b815260040161086d90613a99565b6113888110610dd65760405162461bcd60e51b8152602060048201526024808201527f526566657272616c206665652063616e6e6f7420626520353025206f7220686960448201526333b432b960e11b606482015260840161086d565b600b81905560405181815233907f38d0cf7a8174d3978a2d52052d658cfb52bae5c6ffdad178bf1052ba56ea122e906020015b60405180910390a250565b6060600f610e5784848080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250611ac792505050565b604051610e6491906134ee565b90815260200160405180910390206003018054610e8090613d61565b80601f0160208091040260200160405190810160405280929190818152602001828054610eac90613d61565b8015610ef95780601f10610ece57610100808354040283529160200191610ef9565b820191906000526020600020905b815481529060010190602001808311610edc57829003601f168201915b5050505050905092915050565b600060026007541415610f5b5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015260640161086d565b600260075560095460ff1680610f7b57506006546001600160a01b031633145b610fbe5760405162461bcd60e51b8152602060048201526014602482015273109d5e5a5b99c81513111cc8191a5cd8589b195960621b604482015260640161086d565b6008543410156110045760405162461bcd60e51b815260206004820152601160248201527056616c75652062656c6f7720707269636560781b604482015260640161086d565b61100e3483611b5d565b611028848460405180602001604052806000815250611df9565b6001600755949350505050565b60606001805461077590613d61565b61104f338383612263565b5050565b6006546001600160a01b0316331461107d5760405162461bcd60e51b815260040161086d90613a99565b600881905560405181815233907fee635c8a0d26ec216072a8c63e35b6ae1a6c900a63c37c014e4ebaac5186104190602001610e09565b6110be33836117d3565b6110da5760405162461bcd60e51b815260040161086d90613ace565b6110e684848484612332565b50505050565b336001600160a01b0316600f85856040516111089291906134de565b908152604051908190036020019020600201546001600160a01b0316146111805760405162461bcd60e51b815260206004820152602660248201527f4f6e6c7920646f6d61696e20686f6c6465722063616e2065646974207468656960448201526572206461746160d01b606482015260840161086d565b8181600f86866040516111949291906134de565b908152602001604051809103902060030191906111b2929190612e45565b5060405133907f5f5a32e7aa0e6d5ba247a155a472ba8f212ee1885baaf457683f3f5dae89480190600090a250505050565b6006546001600160a01b0316331461120e5760405162461bcd60e51b815260040161086d90613a99565b6009805460ff8082161560ff19909216821790925560405191161515815233907f8e6cbfe6ffa62410f48c7f382a4560f2b634197f39f7ba9b666914af6674cfdb9060200160405180910390a2565b6000600f6112a084848080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250611ac792505050565b6040516112ad91906134ee565b908152604051908190036020019020600201546001600160a01b0316905092915050565b336112da611602565b6001600160a01b0316146113305760405162461bcd60e51b815260206004820152601860248201527f53656e646572206e6f7420666163746f7279206f776e65720000000000000000604482015260640161086d565b61138881106113815760405162461bcd60e51b815260206004820152601f60248201527f526f79616c74792063616e6e6f7420626520353025206f722068696768657200604482015260640161086d565b600a81905560405181815233907ff76f683b30b41f9eb23902413792df5ff4569a8a274170d9e1b9a16e53558dec90602001610e09565b600954600082815260106020526040808220905160609361010090046001600160a01b03169291600f916113ec9190613539565b908152604051908190036020019020611403610766565b604051602001611414929190613545565b60405160208183030381529060405290506114cf81600e6114a984866001600160a01b0316639a33e3006040518163ffffffff1660e01b815260040160006040518083038186803b15801561146857600080fd5b505afa15801561147c573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526114a49190810190613311565b612365565b6040516020016114bb93929190613867565b6040516020818303038152906040526123aa565b6040516020016114df919061390d565b60405160208183030381529060405292505050919050565b60106020526000908152604090208054610b8d90613d61565b336001600160a01b0316600f838360405161152c9291906134de565b908152604051908190036020019020600201546001600160a01b0316146115a05760405162461bcd60e51b815260206004820152602260248201527f596f7520646f206e6f74206f776e207468652073656c656374656420646f6d6160448201526134b760f11b606482015260840161086d565b3360009081526011602052604090206115ba908383612e45565b50336001600160a01b03167f068caa4b2fe151c4db5ef003b9da9f85e1f84c0fa8eaf77f66a095b19998b98883836040516115f69291906139ca565b60405180910390a25050565b600080600960019054906101000a90046001600160a01b03169050806001600160a01b0316638da5cb5b6040518163ffffffff1660e01b815260040160206040518083038186803b15801561165657600080fd5b505afa15801561166a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061168e9190613090565b91505090565b6006546001600160a01b031633146116be5760405162461bcd60e51b815260040161086d90613a99565b6109a3600e8383612e45565b6006546001600160a01b031633146116f45760405162461bcd60e51b815260040161086d90613a99565b6001600160a01b0381166117595760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161086d565b61176281611a75565b50565b600081815260046020526040902080546001600160a01b0319166001600160a01b038416908117909155819061179a82610c0e565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000818152600260205260408120546001600160a01b031661184c5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b606482015260840161086d565b600061185783610c0e565b9050806001600160a01b0316846001600160a01b031614806118925750836001600160a01b0316611887846107f8565b6001600160a01b0316145b806118c257506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b03166118dd82610c0e565b6001600160a01b0316146119455760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b606482015260840161086d565b6001600160a01b0382166119a75760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b606482015260840161086d565b6119b2838383612520565b6119bd600082611765565b6001600160a01b03831660009081526003602052604081208054600192906119e6908490613d1e565b90915550506001600160a01b0382166000908152600360205260408120805460019290611a14908490613b78565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60608160005b8151811015611b5657611b0d828281518110611af957634e487b7160e01b600052603260045260246000fd5b01602001516001600160f81b03191661279e565b828281518110611b2d57634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a90535080611b4e81613d9c565b915050611acd565b5092915050565b6000600a54118015611b725750611388600a54105b15611c49576000611b81611602565b6001600160a01b0316612710600a5485611b9b9190613cc0565b611ba59190613bb5565b604051600081818185875af1925050503d8060008114611be1576040519150601f19603f3d011682016040523d82523d6000602084013e611be6565b606091505b5050905080611c475760405162461bcd60e51b815260206004820152602760248201527f4661696c656420746f2073656e6420726f79616c747920746f20666163746f726044820152663c9037bbb732b960c91b606482015260840161086d565b505b6001600160a01b03811615801590611c6357506000600b54115b8015611c725750611388600b54105b15611d32576000816001600160a01b0316612710600b5485611c949190613cc0565b611c9e9190613bb5565b604051600081818185875af1925050503d8060008114611cda576040519150601f19603f3d011682016040523d82523d6000602084013e611cdf565b606091505b5050905080611d305760405162461bcd60e51b815260206004820152601b60248201527f4661696c656420746f2073656e6420726566657272616c206665650000000000604482015260640161086d565b505b6000611d466006546001600160a01b031690565b6001600160a01b03164760405160006040518083038185875af1925050503d8060008114611d90576040519150601f19603f3d011682016040523d82523d6000602084013e611d95565b606091505b50509050806109a35760405162461bcd60e51b815260206004820152602a60248201527f4661696c656420746f2073656e6420646f6d61696e207061796d656e7420746f604482015269102a26221037bbb732b960b11b606482015260840161086d565b600080611e0585611ac7565b90506001611e1a611e15836127ed565b61281a565b11611e715760405162461bcd60e51b815260206004820152602160248201527f446f6d61696e206d757374206265206c6f6e676572207468616e2031206368616044820152603960f91b606482015260840161086d565b600d54815110611ec35760405162461bcd60e51b815260206004820152601760248201527f446f6d61696e206e616d6520697320746f6f206c6f6e67000000000000000000604482015260640161086d565b611ef6611ecf826127ed565b611ef1604051806040016040528060018152602001601760f91b8152506127ed565b6128f3565b15611f4f5760405162461bcd60e51b815260206004820152602360248201527f54686572652073686f756c64206265206e6f20646f747320696e20746865206e604482015262616d6560e81b606482015260840161086d565b611f7d611f5b826127ed565b611ef1604051806040016040528060018152602001600160fd1b8152506127ed565b15611fd85760405162461bcd60e51b815260206004820152602560248201527f54686572652073686f756c64206265206e6f2073706163657320696e20746865604482015264206e616d6560d81b606482015260840161086d565b60006001600160a01b0316600f82604051611ff391906134ee565b908152604051908190036020019020600201546001600160a01b0316146120685760405162461bcd60e51b8152602060048201526024808201527f446f6d61696e20776974682074686973206e616d6520616c72656164792065786044820152636973747360e01b606482015260840161086d565b61207484600c5461298d565b6120a86040518060800160405280606081526020016000815260200160006001600160a01b03168152602001606081525090565b818152600c5460208201526001600160a01b03851660408083019190915260608201859052518190600f906120de9085906134ee565b90815260200160405180910390206000820151816000019080519060200190612108929190612ec5565b50602082810151600183015560408301516002830180546001600160a01b0319166001600160a01b03909216919091179055606083015180516121519260038501920190612ec5565b5050600c546000908152601060209081526040909120845161217893509091850190612ec5565b506001600160a01b0385166000908152601160205260409020805461219c90613d61565b151590506121cf576001600160a01b038516600090815260116020908152604090912083516121cd92850190612ec5565b505b6001600160a01b038516337f6a48f46f419774a1b2d37bbb2e1214ca73c6d3367d4e9ae39c08a9cf99bdd19b84612204610766565b60405160200161221592919061350a565b60408051601f198184030181529082905261222f916139f9565b60405180910390a3600c6000815461224690613d9c565b90915550600c5461225990600190613d1e565b9695505050505050565b816001600160a01b0316836001600160a01b031614156122c55760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c657200000000000000604482015260640161086d565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b61233d8484846118ca565b612349848484846129a7565b6110e65760405162461bcd60e51b815260040161086d90613a47565b6060600061237f84846040516020016114bb929190613561565b9050806040516020016123929190613952565b60405160208183030381529060405291505092915050565b60608151600014156123ca57505060408051602081019091526000815290565b6000604051806060016040528060408152602001613e0f60409139905060006003845160026123f99190613b78565b6124039190613bb5565b61240e906004613cc0565b9050600061241d826020613b78565b67ffffffffffffffff81111561244357634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f19166020018201604052801561246d576020820181803683370190505b509050818152600183018586518101602084015b818310156124db5760039283018051603f601282901c811687015160f890811b8552600c83901c8216880151811b6001860152600683901c8216880151811b60028601529116860151901b93820193909352600401612481565b6003895106600181146124f5576002811461250657612512565b613d3d60f01b600119830152612512565b603d60f81b6000198301525b509398975050505050505050565b6001600160a01b038316156109a35781600f601060008481526020019081526020016000206040516125529190613539565b908152602001604051809103902060020160006101000a8154816001600160a01b0302191690836001600160a01b0316021790555060405180602001604052806000815250600f601060008481526020019081526020016000206040516125b99190613539565b908152602001604051809103902060030190805190602001906125dd929190612ec5565b506001600160a01b0382166000908152601160205260409020805461260190613d61565b1515905061267657600081815260106020526040908190209051600f9161262791613539565b908152602001604051809103902060000160116000846001600160a01b03166001600160a01b0316815260200190815260200160002090805461266990613d61565b612674929190612f39565b505b61276861273b600f6010600085815260200190815260200160002060405161269e9190613539565b90815260405190819003602001902080546126b890613d61565b80601f01602080910402602001604051908101604052809291908181526020018280546126e490613d61565b80156127315780601f1061270657610100808354040283529160200191612731565b820191906000526020600020905b81548152906001019060200180831161271457829003601f168201915b50505050506127ed565b6001600160a01b0385166000908152601160205260409020805461276391906126b890613d61565b612ab4565b156109a35760408051602080820180845260008084526001600160a01b0388168152601190925292902090516110e69290612ec5565b6000604160f81b6001600160f81b03198316108015906127cc5750602d60f91b6001600160f81b0319831611155b156127e9576127e060f883901c6020613b90565b60f81b92915050565b5090565b60408051808201825260008082526020918201528151808301909252825182529182019181019190915290565b600080601f836020015161282e9190613d1e565b83519091506000906128409083613b78565b9050600092505b808210156128ec57815160ff16608081101561286f57612868600184613b78565b92506128d9565b60e08160ff16101561288657612868600284613b78565b60f08160ff16101561289d57612868600384613b78565b60f88160ff1610156128b457612868600484613b78565b60fc8160ff1610156128cb57612868600584613b78565b6128d6600684613b78565b92505b50826128e481613d9c565b935050612847565b5050919050565b60008082600001516129178560000151866020015186600001518760200151612ac8565b6129219190613b78565b90505b835160208501516129359190613b78565b8111611b56578161294581613d9c565b925050826000015161297c8560200151836129609190613d1e565b865161296c9190613d1e565b8386600001518760200151612ac8565b6129869190613b78565b9050612924565b61104f828260405180602001604052806000815250612be9565b60006001600160a01b0384163b15612aa957604051630a85bd0160e11b81526001600160a01b0385169063150b7a02906129eb903390899088908890600401613997565b602060405180830381600087803b158015612a0557600080fd5b505af1925050508015612a35575060408051601f3d908101601f19168201909252612a3291810190613219565b60015b612a8f573d808015612a63576040519150601f19603f3d011682016040523d82523d6000602084013e612a68565b606091505b508051612a875760405162461bcd60e51b815260040161086d90613a47565b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490506118c2565b506001949350505050565b6000612ac08383612c1c565b159392505050565b60008381868511612bd45760208511612b825760008515612b14576001612af0876020613d1e565b612afb906008613cc0565b612b06906002613c18565b612b109190613d1e565b1990505b84518116600087612b258b8b613b78565b612b2f9190613d1e565b855190915083165b828114612b7457818610612b5c57612b4f8b8b613b78565b96505050505050506118c2565b85612b6681613d9c565b965050838651169050612b37565b8596505050505050506118c2565b508383206000905b612b948689613d1e565b8211612bd25785832081811415612bb157839450505050506118c2565b612bbc600185613b78565b9350508180612bca90613d9c565b925050612b8a565b505b612bde8787613b78565b979650505050505050565b612bf38383612cf7565b612c0060008484846129a7565b6109a35760405162461bcd60e51b815260040161086d90613a47565b8151815160009190811115612c2f575081515b6020808501519084015160005b83811015612ce85782518251808214612cb8576000196020871015612c9757600184612c69896020613d1e565b612c739190613b78565b612c7e906008613cc0565b612c89906002613c18565b612c939190613d1e565b1990505b8181168382168181039114612cb55797506107609650505050505050565b50505b612cc3602086613b78565b9450612cd0602085613b78565b93505050602081612ce19190613b78565b9050612c3c565b50845186516122599190613cdf565b6001600160a01b038216612d4d5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373604482015260640161086d565b6000818152600260205260409020546001600160a01b031615612db25760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000604482015260640161086d565b612dbe60008383612520565b6001600160a01b0382166000908152600360205260408120805460019290612de7908490613b78565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b828054612e5190613d61565b90600052602060002090601f016020900481019282612e735760008555612eb9565b82601f10612e8c5782800160ff19823516178555612eb9565b82800160010185558215612eb9579182015b82811115612eb9578235825591602001919060010190612e9e565b506127e9929150612fb4565b828054612ed190613d61565b90600052602060002090601f016020900481019282612ef35760008555612eb9565b82601f10612f0c57805160ff1916838001178555612eb9565b82800160010185558215612eb9579182015b82811115612eb9578251825591602001919060010190612f1e565b828054612f4590613d61565b90600052602060002090601f016020900481019282612f675760008555612eb9565b82601f10612f785780548555612eb9565b82800160010185558215612eb957600052602060002091601f016020900482015b82811115612eb9578254825591600101919060010190612f99565b5b808211156127e95760008155600101612fb5565b6000612fdc612fd784613b50565b613b1f565b9050828152838383011115612ff057600080fd5b828260208301376000602084830101529392505050565b60008083601f840112613018578182fd5b50813567ffffffffffffffff81111561302f578182fd5b60208301915083602082850101111561304757600080fd5b9250929050565b600082601f83011261305e578081fd5b61306d83833560208501612fc9565b9392505050565b600060208284031215613085578081fd5b813561306d81613de3565b6000602082840312156130a1578081fd5b815161306d81613de3565b600080604083850312156130be578081fd5b82356130c981613de3565b915060208301356130d981613de3565b809150509250929050565b6000806000606084860312156130f8578081fd5b833561310381613de3565b9250602084013561311381613de3565b929592945050506040919091013590565b60008060008060808587031215613139578081fd5b843561314481613de3565b9350602085013561315481613de3565b925060408501359150606085013567ffffffffffffffff811115613176578182fd5b8501601f81018713613186578182fd5b61319587823560208401612fc9565b91505092959194509250565b600080604083850312156131b3578182fd5b82356131be81613de3565b9150602083013580151581146130d9578182fd5b600080604083850312156131e4578182fd5b82356131ef81613de3565b946020939093013593505050565b60006020828403121561320e578081fd5b813561306d81613df8565b60006020828403121561322a578081fd5b815161306d81613df8565b60008060208385031215613247578182fd5b823567ffffffffffffffff81111561325d578283fd5b61326985828601613007565b90969095509350505050565b6000806000806040858703121561328a578384fd5b843567ffffffffffffffff808211156132a1578586fd5b6132ad88838901613007565b909650945060208701359150808211156132c5578384fd5b506132d287828801613007565b95989497509550505050565b6000602082840312156132ef578081fd5b813567ffffffffffffffff811115613305578182fd5b6118c28482850161304e565b600060208284031215613322578081fd5b815167ffffffffffffffff811115613338578182fd5b8201601f81018413613348578182fd5b8051613356612fd782613b50565b81815285602083850101111561336a578384fd5b61337b826020830160208601613d35565b95945050505050565b600080600060608486031215613398578081fd5b833567ffffffffffffffff8111156133ae578182fd5b6133ba8682870161304e565b93505060208401356133cb81613de3565b915060408401356133db81613de3565b809150509250925092565b6000602082840312156133f7578081fd5b5035919050565b60008151808452613416816020860160208601613d35565b601f01601f19169290920160200192915050565b6000815161343c818560208601613d35565b9290920192915050565b8054600090600181811c908083168061346057607f831692505b602080841082141561348057634e487b7160e01b86526022600452602486fd5b81801561349457600181146134a5576134d2565b60ff198616895284890196506134d2565b60008881526020902060005b868110156134ca5781548b8201529085019083016134b1565b505084890196505b50505050505092915050565b8183823760009101908152919050565b60008251613500818460208701613d35565b9190910192915050565b6000835161351c818460208801613d35565b835190830190613530818360208801613d35565b01949350505050565b600061306d8284613446565b60006135518285613446565b8351613530818360208801613d35565b7f3c73766720786d6c6e733d22687474703a2f2f7777772e77332e6f72672f323081527f30302f737667222076696577426f783d2230203020353030203530302220776960208201527f6474683d2235303022206865696768743d22353030223e3c646566733e3c6c6960408201527f6e6561724772616469656e742069643d2267726164222078313d22302522207960608201527f313d223025222078323d2231303025222079323d223025223e3c73746f70206f60808201527f66667365743d22302522207374796c653d2273746f702d636f6c6f723a72676260a08201527f2835382c31372c313136293b73746f702d6f7061636974793a3122202f3e3c7360c08201527f746f70206f66667365743d223130302522207374796c653d2273746f702d636f60e08201527f6c6f723a726762283131362c32352c3137293b73746f702d6f7061636974793a6101008201527f3122202f3e3c2f6c696e6561724772616469656e743e3c2f646566733e3c72656101208201527f637420783d22302220793d2230222077696474683d22353030222068656967686101408201527f743d22353030222066696c6c3d2275726c28236772616429222f3e3c746578746101608201527f20783d223530252220793d223530252220646f6d696e616e742d626173656c696101808201527f6e653d226d6964646c65222066696c6c3d2277686974652220746578742d616e6101a08201527f63686f723d226d6964646c652220666f6e742d73697a653d22782d6c617267656101c082015261111f60f11b6101e082015260006118c261385561384261383c6137c76101e287018961342a565b7f3c2f746578743e3c7465787420783d223530252220793d223730252220646f6d81527f696e616e742d626173656c696e653d226d6964646c65222066696c6c3d22776860208201527f6974652220746578742d616e63686f723d226d6964646c65223e0000000000006040820152605a0190565b8661342a565b661e17ba32bc3a1f60c91b815260070190565b651e17b9bb339f60d11b815260060190565b693d913730b6b2911d101160b11b8152835160009061388d81600a850160208901613d35565b6201116160ed1b600a9184019182018190526f113232b9b1b934b83a34b7b7111d101160811b600d8301526138c5601d830187613446565b908152691134b6b0b3b2911d101160b11b600382015284519091506138f181600d840160208801613d35565b61227d60f01b600d9290910191820152600f0195945050505050565b7f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c00000081526000825161394581601d850160208701613d35565b91909101601d0192915050565b7f646174613a696d6167652f7376672b786d6c3b6261736536342c00000000000081526000825161398a81601a850160208701613d35565b91909101601a0192915050565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090612259908301846133fe565b60208152816020820152818360408301376000818301604090810191909152601f909201601f19160101919050565b60208152600061306d60208301846133fe565b608081526000613a1f60808301876133fe565b602083018690526001600160a01b03851660408401528281036060840152612bde81856133fe565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b604051601f8201601f1916810167ffffffffffffffff81118282101715613b4857613b48613dcd565b604052919050565b600067ffffffffffffffff821115613b6a57613b6a613dcd565b50601f01601f191660200190565b60008219821115613b8b57613b8b613db7565b500190565b600060ff821660ff84168060ff03821115613bad57613bad613db7565b019392505050565b600082613bd057634e487b7160e01b81526012600452602481fd5b500490565b600181815b80851115613c10578160001904821115613bf657613bf6613db7565b80851615613c0357918102915b93841c9390800290613bda565b509250929050565b600061306d8383600082613c2e57506001610760565b81613c3b57506000610760565b8160018114613c515760028114613c5b57613c77565b6001915050610760565b60ff841115613c6c57613c6c613db7565b50506001821b610760565b5060208310610133831016604e8410600b8410161715613c9a575081810a610760565b613ca48383613bd5565b8060001904821115613cb857613cb8613db7565b029392505050565b6000816000190483118215151615613cda57613cda613db7565b500290565b60008083128015600160ff1b850184121615613cfd57613cfd613db7565b6001600160ff1b0384018313811615613d1857613d18613db7565b50500390565b600082821015613d3057613d30613db7565b500390565b60005b83811015613d50578181015183820152602001613d38565b838111156110e65750506000910152565b600181811c90821680613d7557607f821691505b60208210811415613d9657634e487b7160e01b600052602260045260246000fd5b50919050565b6000600019821415613db057613db0613db7565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b038116811461176257600080fd5b6001600160e01b03198116811461176257600080fdfe4142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2fa2646970667358221220a4017017d0868f0eae2706c4ee7219d6418c8e69732a723b13e2278ebb30b03064736f6c6343000804003350756e6b20446f6d61696e73206469676974616c206964656e746974792e2056697369742068747470733a2f2f70756e6b2e646f6d61696e732f00000000000000000000000000000000000000000000000000000000000000e00000000000000000000000000000000000000000000000000000000000000120000000000000000000000000b29050965a5ac70ab487aa47546cdcbc97dae45d000000000000000000000000000000000000000000000000016345785d8a000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000a8221890768603210c1a32d88374111084e46e6d00000000000000000000000000000000000000000000000000000000000000052e7465737400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000045445535400000000000000000000000000000000000000000000000000000000

Deployed Bytecode

0x6080604052600436106102305760003560e01c80638da5cb5b1161012e578063bf70e90d116100ab578063db6bf9201161006f578063db6bf92014610656578063e09bda6b14610676578063e61204131461068b578063e985e9c5146106ab578063f2fde38b146106f457600080fd5b8063bf70e90d146105c1578063bfcdd7c3146105d6578063c1e25151146105f6578063c87b56dd14610616578063d2b525d31461063657600080fd5b8063a035b1fe116100f2578063a035b1fe1461052b578063a22cb46514610541578063a2b40d1914610561578063b88d4fde14610581578063ba833c4b146105a157600080fd5b80638da5cb5b146104a35780638ed2fe91146104c157806395d89b41146104db578063966dae0e146104f05780639f0346911461051557600080fd5b806342842e0e116101bc578063715018a611610180578063715018a6146104265780637284e4161461043b57806378a6743b146104505780637afdfb4f146104705780637e6d945e1461049057600080fd5b806342842e0e146103865780635dedf3b5146103a657806362ac7a84146103c65780636352211e146103e657806370a082311461040657600080fd5b80631441a5a9116102035780631441a5a9146102e657806318160ddd1461030a57806323b872dd14610320578063264492351461034057806329ee566c1461037057600080fd5b806301ffc9a71461023557806306fdde031461026a578063081812fc1461028c578063095ea7b3146102c4575b600080fd5b34801561024157600080fd5b506102556102503660046131fd565b610714565b60405190151581526020015b60405180910390f35b34801561027657600080fd5b5061027f610766565b60405161026191906139f9565b34801561029857600080fd5b506102ac6102a73660046133e6565b6107f8565b6040516001600160a01b039091168152602001610261565b3480156102d057600080fd5b506102e46102df3660046131d2565b610892565b005b3480156102f257600080fd5b506102fc600b5481565b604051908152602001610261565b34801561031657600080fd5b506102fc600c5481565b34801561032c57600080fd5b506102e461033b3660046130e4565b6109a8565b34801561034c57600080fd5b5061036061035b3660046132de565b6109d9565b6040516102619493929190613a0c565b34801561037c57600080fd5b506102fc600a5481565b34801561039257600080fd5b506102e46103a13660046130e4565b610b2a565b3480156103b257600080fd5b506102e46103c13660046133e6565b610b45565b3480156103d257600080fd5b5061027f6103e1366004613074565b610b74565b3480156103f257600080fd5b506102ac6104013660046133e6565b610c0e565b34801561041257600080fd5b506102fc610421366004613074565b610c85565b34801561043257600080fd5b506102e4610d0c565b34801561044757600080fd5b5061027f610d42565b34801561045c57600080fd5b506102e461046b3660046133e6565b610d4f565b34801561047c57600080fd5b5061027f61048b366004613235565b610e14565b6102fc61049e366004613384565b610f06565b3480156104af57600080fd5b506006546001600160a01b03166102ac565b3480156104cd57600080fd5b506009546102559060ff1681565b3480156104e757600080fd5b5061027f611035565b3480156104fc57600080fd5b506009546102ac9061010090046001600160a01b031681565b34801561052157600080fd5b506102fc600d5481565b34801561053757600080fd5b506102fc60085481565b34801561054d57600080fd5b506102e461055c3660046131a1565b611044565b34801561056d57600080fd5b506102e461057c3660046133e6565b611053565b34801561058d57600080fd5b506102e461059c366004613124565b6110b4565b3480156105ad57600080fd5b506102e46105bc366004613275565b6110ec565b3480156105cd57600080fd5b506102e46111e4565b3480156105e257600080fd5b506102ac6105f1366004613235565b61125d565b34801561060257600080fd5b506102e46106113660046133e6565b6112d1565b34801561062257600080fd5b5061027f6106313660046133e6565b6113b8565b34801561064257600080fd5b5061027f6106513660046133e6565b6114f7565b34801561066257600080fd5b506102e4610671366004613235565b611510565b34801561068257600080fd5b506102ac611602565b34801561069757600080fd5b506102e46106a6366004613235565b611694565b3480156106b757600080fd5b506102556106c63660046130ac565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b34801561070057600080fd5b506102e461070f366004613074565b6116ca565b60006001600160e01b031982166380ac58cd60e01b148061074557506001600160e01b03198216635b5e139f60e01b145b8061076057506301ffc9a760e01b6001600160e01b03198316145b92915050565b60606000805461077590613d61565b80601f01602080910402602001604051908101604052809291908181526020018280546107a190613d61565b80156107ee5780601f106107c3576101008083540402835291602001916107ee565b820191906000526020600020905b8154815290600101906020018083116107d157829003601f168201915b5050505050905090565b6000818152600260205260408120546001600160a01b03166108765760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b600061089d82610c0e565b9050806001600160a01b0316836001600160a01b0316141561090b5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b606482015260840161086d565b336001600160a01b0382161480610927575061092781336106c6565b6109995760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000606482015260840161086d565b6109a38383611765565b505050565b6109b233826117d3565b6109ce5760405162461bcd60e51b815260040161086d90613ace565b6109a38383836118ca565b8051602081830181018051600f825292820191909301209152805481906109ff90613d61565b80601f0160208091040260200160405190810160405280929190818152602001828054610a2b90613d61565b8015610a785780601f10610a4d57610100808354040283529160200191610a78565b820191906000526020600020905b815481529060010190602001808311610a5b57829003601f168201915b5050505060018301546002840154600385018054949592946001600160a01b03909216935090610aa790613d61565b80601f0160208091040260200160405190810160405280929190818152602001828054610ad390613d61565b8015610b205780601f10610af557610100808354040283529160200191610b20565b820191906000526020600020905b815481529060010190602001808311610b0357829003601f168201915b5050505050905084565b6109a3838383604051806020016040528060008152506110b4565b6006546001600160a01b03163314610b6f5760405162461bcd60e51b815260040161086d90613a99565b600d55565b60116020526000908152604090208054610b8d90613d61565b80601f0160208091040260200160405190810160405280929190818152602001828054610bb990613d61565b8015610c065780601f10610bdb57610100808354040283529160200191610c06565b820191906000526020600020905b815481529060010190602001808311610be957829003601f168201915b505050505081565b6000818152600260205260408120546001600160a01b0316806107605760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b606482015260840161086d565b60006001600160a01b038216610cf05760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b606482015260840161086d565b506001600160a01b031660009081526003602052604090205490565b6006546001600160a01b03163314610d365760405162461bcd60e51b815260040161086d90613a99565b610d406000611a75565b565b600e8054610b8d90613d61565b6006546001600160a01b03163314610d795760405162461bcd60e51b815260040161086d90613a99565b6113888110610dd65760405162461bcd60e51b8152602060048201526024808201527f526566657272616c206665652063616e6e6f7420626520353025206f7220686960448201526333b432b960e11b606482015260840161086d565b600b81905560405181815233907f38d0cf7a8174d3978a2d52052d658cfb52bae5c6ffdad178bf1052ba56ea122e906020015b60405180910390a250565b6060600f610e5784848080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250611ac792505050565b604051610e6491906134ee565b90815260200160405180910390206003018054610e8090613d61565b80601f0160208091040260200160405190810160405280929190818152602001828054610eac90613d61565b8015610ef95780601f10610ece57610100808354040283529160200191610ef9565b820191906000526020600020905b815481529060010190602001808311610edc57829003601f168201915b5050505050905092915050565b600060026007541415610f5b5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015260640161086d565b600260075560095460ff1680610f7b57506006546001600160a01b031633145b610fbe5760405162461bcd60e51b8152602060048201526014602482015273109d5e5a5b99c81513111cc8191a5cd8589b195960621b604482015260640161086d565b6008543410156110045760405162461bcd60e51b815260206004820152601160248201527056616c75652062656c6f7720707269636560781b604482015260640161086d565b61100e3483611b5d565b611028848460405180602001604052806000815250611df9565b6001600755949350505050565b60606001805461077590613d61565b61104f338383612263565b5050565b6006546001600160a01b0316331461107d5760405162461bcd60e51b815260040161086d90613a99565b600881905560405181815233907fee635c8a0d26ec216072a8c63e35b6ae1a6c900a63c37c014e4ebaac5186104190602001610e09565b6110be33836117d3565b6110da5760405162461bcd60e51b815260040161086d90613ace565b6110e684848484612332565b50505050565b336001600160a01b0316600f85856040516111089291906134de565b908152604051908190036020019020600201546001600160a01b0316146111805760405162461bcd60e51b815260206004820152602660248201527f4f6e6c7920646f6d61696e20686f6c6465722063616e2065646974207468656960448201526572206461746160d01b606482015260840161086d565b8181600f86866040516111949291906134de565b908152602001604051809103902060030191906111b2929190612e45565b5060405133907f5f5a32e7aa0e6d5ba247a155a472ba8f212ee1885baaf457683f3f5dae89480190600090a250505050565b6006546001600160a01b0316331461120e5760405162461bcd60e51b815260040161086d90613a99565b6009805460ff8082161560ff19909216821790925560405191161515815233907f8e6cbfe6ffa62410f48c7f382a4560f2b634197f39f7ba9b666914af6674cfdb9060200160405180910390a2565b6000600f6112a084848080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250611ac792505050565b6040516112ad91906134ee565b908152604051908190036020019020600201546001600160a01b0316905092915050565b336112da611602565b6001600160a01b0316146113305760405162461bcd60e51b815260206004820152601860248201527f53656e646572206e6f7420666163746f7279206f776e65720000000000000000604482015260640161086d565b61138881106113815760405162461bcd60e51b815260206004820152601f60248201527f526f79616c74792063616e6e6f7420626520353025206f722068696768657200604482015260640161086d565b600a81905560405181815233907ff76f683b30b41f9eb23902413792df5ff4569a8a274170d9e1b9a16e53558dec90602001610e09565b600954600082815260106020526040808220905160609361010090046001600160a01b03169291600f916113ec9190613539565b908152604051908190036020019020611403610766565b604051602001611414929190613545565b60405160208183030381529060405290506114cf81600e6114a984866001600160a01b0316639a33e3006040518163ffffffff1660e01b815260040160006040518083038186803b15801561146857600080fd5b505afa15801561147c573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526114a49190810190613311565b612365565b6040516020016114bb93929190613867565b6040516020818303038152906040526123aa565b6040516020016114df919061390d565b60405160208183030381529060405292505050919050565b60106020526000908152604090208054610b8d90613d61565b336001600160a01b0316600f838360405161152c9291906134de565b908152604051908190036020019020600201546001600160a01b0316146115a05760405162461bcd60e51b815260206004820152602260248201527f596f7520646f206e6f74206f776e207468652073656c656374656420646f6d6160448201526134b760f11b606482015260840161086d565b3360009081526011602052604090206115ba908383612e45565b50336001600160a01b03167f068caa4b2fe151c4db5ef003b9da9f85e1f84c0fa8eaf77f66a095b19998b98883836040516115f69291906139ca565b60405180910390a25050565b600080600960019054906101000a90046001600160a01b03169050806001600160a01b0316638da5cb5b6040518163ffffffff1660e01b815260040160206040518083038186803b15801561165657600080fd5b505afa15801561166a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061168e9190613090565b91505090565b6006546001600160a01b031633146116be5760405162461bcd60e51b815260040161086d90613a99565b6109a3600e8383612e45565b6006546001600160a01b031633146116f45760405162461bcd60e51b815260040161086d90613a99565b6001600160a01b0381166117595760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161086d565b61176281611a75565b50565b600081815260046020526040902080546001600160a01b0319166001600160a01b038416908117909155819061179a82610c0e565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000818152600260205260408120546001600160a01b031661184c5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b606482015260840161086d565b600061185783610c0e565b9050806001600160a01b0316846001600160a01b031614806118925750836001600160a01b0316611887846107f8565b6001600160a01b0316145b806118c257506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b03166118dd82610c0e565b6001600160a01b0316146119455760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b606482015260840161086d565b6001600160a01b0382166119a75760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b606482015260840161086d565b6119b2838383612520565b6119bd600082611765565b6001600160a01b03831660009081526003602052604081208054600192906119e6908490613d1e565b90915550506001600160a01b0382166000908152600360205260408120805460019290611a14908490613b78565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60608160005b8151811015611b5657611b0d828281518110611af957634e487b7160e01b600052603260045260246000fd5b01602001516001600160f81b03191661279e565b828281518110611b2d57634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a90535080611b4e81613d9c565b915050611acd565b5092915050565b6000600a54118015611b725750611388600a54105b15611c49576000611b81611602565b6001600160a01b0316612710600a5485611b9b9190613cc0565b611ba59190613bb5565b604051600081818185875af1925050503d8060008114611be1576040519150601f19603f3d011682016040523d82523d6000602084013e611be6565b606091505b5050905080611c475760405162461bcd60e51b815260206004820152602760248201527f4661696c656420746f2073656e6420726f79616c747920746f20666163746f726044820152663c9037bbb732b960c91b606482015260840161086d565b505b6001600160a01b03811615801590611c6357506000600b54115b8015611c725750611388600b54105b15611d32576000816001600160a01b0316612710600b5485611c949190613cc0565b611c9e9190613bb5565b604051600081818185875af1925050503d8060008114611cda576040519150601f19603f3d011682016040523d82523d6000602084013e611cdf565b606091505b5050905080611d305760405162461bcd60e51b815260206004820152601b60248201527f4661696c656420746f2073656e6420726566657272616c206665650000000000604482015260640161086d565b505b6000611d466006546001600160a01b031690565b6001600160a01b03164760405160006040518083038185875af1925050503d8060008114611d90576040519150601f19603f3d011682016040523d82523d6000602084013e611d95565b606091505b50509050806109a35760405162461bcd60e51b815260206004820152602a60248201527f4661696c656420746f2073656e6420646f6d61696e207061796d656e7420746f604482015269102a26221037bbb732b960b11b606482015260840161086d565b600080611e0585611ac7565b90506001611e1a611e15836127ed565b61281a565b11611e715760405162461bcd60e51b815260206004820152602160248201527f446f6d61696e206d757374206265206c6f6e676572207468616e2031206368616044820152603960f91b606482015260840161086d565b600d54815110611ec35760405162461bcd60e51b815260206004820152601760248201527f446f6d61696e206e616d6520697320746f6f206c6f6e67000000000000000000604482015260640161086d565b611ef6611ecf826127ed565b611ef1604051806040016040528060018152602001601760f91b8152506127ed565b6128f3565b15611f4f5760405162461bcd60e51b815260206004820152602360248201527f54686572652073686f756c64206265206e6f20646f747320696e20746865206e604482015262616d6560e81b606482015260840161086d565b611f7d611f5b826127ed565b611ef1604051806040016040528060018152602001600160fd1b8152506127ed565b15611fd85760405162461bcd60e51b815260206004820152602560248201527f54686572652073686f756c64206265206e6f2073706163657320696e20746865604482015264206e616d6560d81b606482015260840161086d565b60006001600160a01b0316600f82604051611ff391906134ee565b908152604051908190036020019020600201546001600160a01b0316146120685760405162461bcd60e51b8152602060048201526024808201527f446f6d61696e20776974682074686973206e616d6520616c72656164792065786044820152636973747360e01b606482015260840161086d565b61207484600c5461298d565b6120a86040518060800160405280606081526020016000815260200160006001600160a01b03168152602001606081525090565b818152600c5460208201526001600160a01b03851660408083019190915260608201859052518190600f906120de9085906134ee565b90815260200160405180910390206000820151816000019080519060200190612108929190612ec5565b50602082810151600183015560408301516002830180546001600160a01b0319166001600160a01b03909216919091179055606083015180516121519260038501920190612ec5565b5050600c546000908152601060209081526040909120845161217893509091850190612ec5565b506001600160a01b0385166000908152601160205260409020805461219c90613d61565b151590506121cf576001600160a01b038516600090815260116020908152604090912083516121cd92850190612ec5565b505b6001600160a01b038516337f6a48f46f419774a1b2d37bbb2e1214ca73c6d3367d4e9ae39c08a9cf99bdd19b84612204610766565b60405160200161221592919061350a565b60408051601f198184030181529082905261222f916139f9565b60405180910390a3600c6000815461224690613d9c565b90915550600c5461225990600190613d1e565b9695505050505050565b816001600160a01b0316836001600160a01b031614156122c55760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c657200000000000000604482015260640161086d565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b61233d8484846118ca565b612349848484846129a7565b6110e65760405162461bcd60e51b815260040161086d90613a47565b6060600061237f84846040516020016114bb929190613561565b9050806040516020016123929190613952565b60405160208183030381529060405291505092915050565b60608151600014156123ca57505060408051602081019091526000815290565b6000604051806060016040528060408152602001613e0f60409139905060006003845160026123f99190613b78565b6124039190613bb5565b61240e906004613cc0565b9050600061241d826020613b78565b67ffffffffffffffff81111561244357634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f19166020018201604052801561246d576020820181803683370190505b509050818152600183018586518101602084015b818310156124db5760039283018051603f601282901c811687015160f890811b8552600c83901c8216880151811b6001860152600683901c8216880151811b60028601529116860151901b93820193909352600401612481565b6003895106600181146124f5576002811461250657612512565b613d3d60f01b600119830152612512565b603d60f81b6000198301525b509398975050505050505050565b6001600160a01b038316156109a35781600f601060008481526020019081526020016000206040516125529190613539565b908152602001604051809103902060020160006101000a8154816001600160a01b0302191690836001600160a01b0316021790555060405180602001604052806000815250600f601060008481526020019081526020016000206040516125b99190613539565b908152602001604051809103902060030190805190602001906125dd929190612ec5565b506001600160a01b0382166000908152601160205260409020805461260190613d61565b1515905061267657600081815260106020526040908190209051600f9161262791613539565b908152602001604051809103902060000160116000846001600160a01b03166001600160a01b0316815260200190815260200160002090805461266990613d61565b612674929190612f39565b505b61276861273b600f6010600085815260200190815260200160002060405161269e9190613539565b90815260405190819003602001902080546126b890613d61565b80601f01602080910402602001604051908101604052809291908181526020018280546126e490613d61565b80156127315780601f1061270657610100808354040283529160200191612731565b820191906000526020600020905b81548152906001019060200180831161271457829003601f168201915b50505050506127ed565b6001600160a01b0385166000908152601160205260409020805461276391906126b890613d61565b612ab4565b156109a35760408051602080820180845260008084526001600160a01b0388168152601190925292902090516110e69290612ec5565b6000604160f81b6001600160f81b03198316108015906127cc5750602d60f91b6001600160f81b0319831611155b156127e9576127e060f883901c6020613b90565b60f81b92915050565b5090565b60408051808201825260008082526020918201528151808301909252825182529182019181019190915290565b600080601f836020015161282e9190613d1e565b83519091506000906128409083613b78565b9050600092505b808210156128ec57815160ff16608081101561286f57612868600184613b78565b92506128d9565b60e08160ff16101561288657612868600284613b78565b60f08160ff16101561289d57612868600384613b78565b60f88160ff1610156128b457612868600484613b78565b60fc8160ff1610156128cb57612868600584613b78565b6128d6600684613b78565b92505b50826128e481613d9c565b935050612847565b5050919050565b60008082600001516129178560000151866020015186600001518760200151612ac8565b6129219190613b78565b90505b835160208501516129359190613b78565b8111611b56578161294581613d9c565b925050826000015161297c8560200151836129609190613d1e565b865161296c9190613d1e565b8386600001518760200151612ac8565b6129869190613b78565b9050612924565b61104f828260405180602001604052806000815250612be9565b60006001600160a01b0384163b15612aa957604051630a85bd0160e11b81526001600160a01b0385169063150b7a02906129eb903390899088908890600401613997565b602060405180830381600087803b158015612a0557600080fd5b505af1925050508015612a35575060408051601f3d908101601f19168201909252612a3291810190613219565b60015b612a8f573d808015612a63576040519150601f19603f3d011682016040523d82523d6000602084013e612a68565b606091505b508051612a875760405162461bcd60e51b815260040161086d90613a47565b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490506118c2565b506001949350505050565b6000612ac08383612c1c565b159392505050565b60008381868511612bd45760208511612b825760008515612b14576001612af0876020613d1e565b612afb906008613cc0565b612b06906002613c18565b612b109190613d1e565b1990505b84518116600087612b258b8b613b78565b612b2f9190613d1e565b855190915083165b828114612b7457818610612b5c57612b4f8b8b613b78565b96505050505050506118c2565b85612b6681613d9c565b965050838651169050612b37565b8596505050505050506118c2565b508383206000905b612b948689613d1e565b8211612bd25785832081811415612bb157839450505050506118c2565b612bbc600185613b78565b9350508180612bca90613d9c565b925050612b8a565b505b612bde8787613b78565b979650505050505050565b612bf38383612cf7565b612c0060008484846129a7565b6109a35760405162461bcd60e51b815260040161086d90613a47565b8151815160009190811115612c2f575081515b6020808501519084015160005b83811015612ce85782518251808214612cb8576000196020871015612c9757600184612c69896020613d1e565b612c739190613b78565b612c7e906008613cc0565b612c89906002613c18565b612c939190613d1e565b1990505b8181168382168181039114612cb55797506107609650505050505050565b50505b612cc3602086613b78565b9450612cd0602085613b78565b93505050602081612ce19190613b78565b9050612c3c565b50845186516122599190613cdf565b6001600160a01b038216612d4d5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373604482015260640161086d565b6000818152600260205260409020546001600160a01b031615612db25760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000604482015260640161086d565b612dbe60008383612520565b6001600160a01b0382166000908152600360205260408120805460019290612de7908490613b78565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b828054612e5190613d61565b90600052602060002090601f016020900481019282612e735760008555612eb9565b82601f10612e8c5782800160ff19823516178555612eb9565b82800160010185558215612eb9579182015b82811115612eb9578235825591602001919060010190612e9e565b506127e9929150612fb4565b828054612ed190613d61565b90600052602060002090601f016020900481019282612ef35760008555612eb9565b82601f10612f0c57805160ff1916838001178555612eb9565b82800160010185558215612eb9579182015b82811115612eb9578251825591602001919060010190612f1e565b828054612f4590613d61565b90600052602060002090601f016020900481019282612f675760008555612eb9565b82601f10612f785780548555612eb9565b82800160010185558215612eb957600052602060002091601f016020900482015b82811115612eb9578254825591600101919060010190612f99565b5b808211156127e95760008155600101612fb5565b6000612fdc612fd784613b50565b613b1f565b9050828152838383011115612ff057600080fd5b828260208301376000602084830101529392505050565b60008083601f840112613018578182fd5b50813567ffffffffffffffff81111561302f578182fd5b60208301915083602082850101111561304757600080fd5b9250929050565b600082601f83011261305e578081fd5b61306d83833560208501612fc9565b9392505050565b600060208284031215613085578081fd5b813561306d81613de3565b6000602082840312156130a1578081fd5b815161306d81613de3565b600080604083850312156130be578081fd5b82356130c981613de3565b915060208301356130d981613de3565b809150509250929050565b6000806000606084860312156130f8578081fd5b833561310381613de3565b9250602084013561311381613de3565b929592945050506040919091013590565b60008060008060808587031215613139578081fd5b843561314481613de3565b9350602085013561315481613de3565b925060408501359150606085013567ffffffffffffffff811115613176578182fd5b8501601f81018713613186578182fd5b61319587823560208401612fc9565b91505092959194509250565b600080604083850312156131b3578182fd5b82356131be81613de3565b9150602083013580151581146130d9578182fd5b600080604083850312156131e4578182fd5b82356131ef81613de3565b946020939093013593505050565b60006020828403121561320e578081fd5b813561306d81613df8565b60006020828403121561322a578081fd5b815161306d81613df8565b60008060208385031215613247578182fd5b823567ffffffffffffffff81111561325d578283fd5b61326985828601613007565b90969095509350505050565b6000806000806040858703121561328a578384fd5b843567ffffffffffffffff808211156132a1578586fd5b6132ad88838901613007565b909650945060208701359150808211156132c5578384fd5b506132d287828801613007565b95989497509550505050565b6000602082840312156132ef578081fd5b813567ffffffffffffffff811115613305578182fd5b6118c28482850161304e565b600060208284031215613322578081fd5b815167ffffffffffffffff811115613338578182fd5b8201601f81018413613348578182fd5b8051613356612fd782613b50565b81815285602083850101111561336a578384fd5b61337b826020830160208601613d35565b95945050505050565b600080600060608486031215613398578081fd5b833567ffffffffffffffff8111156133ae578182fd5b6133ba8682870161304e565b93505060208401356133cb81613de3565b915060408401356133db81613de3565b809150509250925092565b6000602082840312156133f7578081fd5b5035919050565b60008151808452613416816020860160208601613d35565b601f01601f19169290920160200192915050565b6000815161343c818560208601613d35565b9290920192915050565b8054600090600181811c908083168061346057607f831692505b602080841082141561348057634e487b7160e01b86526022600452602486fd5b81801561349457600181146134a5576134d2565b60ff198616895284890196506134d2565b60008881526020902060005b868110156134ca5781548b8201529085019083016134b1565b505084890196505b50505050505092915050565b8183823760009101908152919050565b60008251613500818460208701613d35565b9190910192915050565b6000835161351c818460208801613d35565b835190830190613530818360208801613d35565b01949350505050565b600061306d8284613446565b60006135518285613446565b8351613530818360208801613d35565b7f3c73766720786d6c6e733d22687474703a2f2f7777772e77332e6f72672f323081527f30302f737667222076696577426f783d2230203020353030203530302220776960208201527f6474683d2235303022206865696768743d22353030223e3c646566733e3c6c6960408201527f6e6561724772616469656e742069643d2267726164222078313d22302522207960608201527f313d223025222078323d2231303025222079323d223025223e3c73746f70206f60808201527f66667365743d22302522207374796c653d2273746f702d636f6c6f723a72676260a08201527f2835382c31372c313136293b73746f702d6f7061636974793a3122202f3e3c7360c08201527f746f70206f66667365743d223130302522207374796c653d2273746f702d636f60e08201527f6c6f723a726762283131362c32352c3137293b73746f702d6f7061636974793a6101008201527f3122202f3e3c2f6c696e6561724772616469656e743e3c2f646566733e3c72656101208201527f637420783d22302220793d2230222077696474683d22353030222068656967686101408201527f743d22353030222066696c6c3d2275726c28236772616429222f3e3c746578746101608201527f20783d223530252220793d223530252220646f6d696e616e742d626173656c696101808201527f6e653d226d6964646c65222066696c6c3d2277686974652220746578742d616e6101a08201527f63686f723d226d6964646c652220666f6e742d73697a653d22782d6c617267656101c082015261111f60f11b6101e082015260006118c261385561384261383c6137c76101e287018961342a565b7f3c2f746578743e3c7465787420783d223530252220793d223730252220646f6d81527f696e616e742d626173656c696e653d226d6964646c65222066696c6c3d22776860208201527f6974652220746578742d616e63686f723d226d6964646c65223e0000000000006040820152605a0190565b8661342a565b661e17ba32bc3a1f60c91b815260070190565b651e17b9bb339f60d11b815260060190565b693d913730b6b2911d101160b11b8152835160009061388d81600a850160208901613d35565b6201116160ed1b600a9184019182018190526f113232b9b1b934b83a34b7b7111d101160811b600d8301526138c5601d830187613446565b908152691134b6b0b3b2911d101160b11b600382015284519091506138f181600d840160208801613d35565b61227d60f01b600d9290910191820152600f0195945050505050565b7f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c00000081526000825161394581601d850160208701613d35565b91909101601d0192915050565b7f646174613a696d6167652f7376672b786d6c3b6261736536342c00000000000081526000825161398a81601a850160208701613d35565b91909101601a0192915050565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090612259908301846133fe565b60208152816020820152818360408301376000818301604090810191909152601f909201601f19160101919050565b60208152600061306d60208301846133fe565b608081526000613a1f60808301876133fe565b602083018690526001600160a01b03851660408401528281036060840152612bde81856133fe565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b604051601f8201601f1916810167ffffffffffffffff81118282101715613b4857613b48613dcd565b604052919050565b600067ffffffffffffffff821115613b6a57613b6a613dcd565b50601f01601f191660200190565b60008219821115613b8b57613b8b613db7565b500190565b600060ff821660ff84168060ff03821115613bad57613bad613db7565b019392505050565b600082613bd057634e487b7160e01b81526012600452602481fd5b500490565b600181815b80851115613c10578160001904821115613bf657613bf6613db7565b80851615613c0357918102915b93841c9390800290613bda565b509250929050565b600061306d8383600082613c2e57506001610760565b81613c3b57506000610760565b8160018114613c515760028114613c5b57613c77565b6001915050610760565b60ff841115613c6c57613c6c613db7565b50506001821b610760565b5060208310610133831016604e8410600b8410161715613c9a575081810a610760565b613ca48383613bd5565b8060001904821115613cb857613cb8613db7565b029392505050565b6000816000190483118215151615613cda57613cda613db7565b500290565b60008083128015600160ff1b850184121615613cfd57613cfd613db7565b6001600160ff1b0384018313811615613d1857613d18613db7565b50500390565b600082821015613d3057613d30613db7565b500390565b60005b83811015613d50578181015183820152602001613d38565b838111156110e65750506000910152565b600181811c90821680613d7557607f821691505b60208210811415613d9657634e487b7160e01b600052602260045260246000fd5b50919050565b6000600019821415613db057613db0613db7565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b038116811461176257600080fd5b6001600160e01b03198116811461176257600080fdfe4142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2fa2646970667358221220a4017017d0868f0eae2706c4ee7219d6418c8e69732a723b13e2278ebb30b03064736f6c63430008040033

[ 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.