ETH Price: $3,001.45 (+1.42%)
Gas: 3 Gwei

Token

hyaliko space factory (HYSF)
 

Overview

Max Total Supply

345 HYSF

Holders

248

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Filtered by Token Holder
ASTROCRYPTIDS: Deployer
Balance
2 HYSF
0xf75341b90b8beb9f93c50facb92bc552f20797bb
Loading...
Loading
Loading...
Loading
Loading...
Loading

OVERVIEW

the variant hyaliko space collection mint your hyaliko space factory variant now at [hyaliko.com/mint](https://www.hyaliko.com/mint) anyone can use hyaliko by visiting [hyaliko.com](https://www.hyaliko.com) but owning a hyaliko space gives your gallery a one-of-a-kind...

# Exchange Pair Price  24H Volume % Volume

Contract Source Code Verified (Exact Match)

Contract Name:
HyalikoSpaceFactory

Compiler Version
v0.8.4+commit.c7e474f2

Optimization Enabled:
Yes with 1000 runs

Other Settings:
default evmVersion
File 1 of 14 : HyalikoSpaceFactory.sol
// SPDX-License-Identifier: MIT AND Apache License 2.0

/*
the hyaliko space factory
by collin mckinney
heavily inspired by the blitmap contract
*/

pragma solidity ^0.8.0;

import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "@openzeppelin/contracts/access/Ownable.sol";

/*
 * @title String & slice utility library for Solidity contracts.
 * @author Nick Johnson <[email protected]>
 *
 * @dev Functionality in this library is largely implemented using an
 *      abstraction called a 'slice'. A slice represents a part of a string -
 *      anything from the entire string to a single character, or even no
 *      characters at all (a 0-length slice). Since a slice only has to specify
 *      an offset and a length, copying and manipulating slices is a lot less
 *      expensive than copying and manipulating the strings they reference.
 *
 *      To further reduce gas costs, most functions on slice that need to return
 *      a slice modify the original one instead of allocating a new one; for
 *      instance, `s.split(".")` will return the text up to the first '.',
 *      modifying s to only contain the remainder of the string after the '.'.
 *      In situations where you do not want to modify the original slice, you
 *      can make a copy first with `.copy()`, for example:
 *      `s.copy().split(".")`. Try and avoid using this idiom in loops; since
 *      Solidity has no memory management, it will result in allocating many
 *      short-lived slices that are later discarded.
 *
 *      Functions that return two slices come in two versions: a non-allocating
 *      version that takes the second slice as an argument, modifying it in
 *      place, and an allocating version that allocates and returns the second
 *      slice; see `nextRune` for example.
 *
 *      Functions that have to copy string data will return strings rather than
 *      slices; these can be cast back to slices for further processing if
 *      required.
 *
 *      For convenience, some functions are provided with non-modifying
 *      variants that create a new slice and return both; for instance,
 *      `s.splitNew('.')` leaves s unmodified, and returns two values
 *      corresponding to the left and right parts of the string.
 */

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 = 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 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;
    }

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

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

contract HyalikoSpaceFactory is ERC721Enumerable, ReentrancyGuard, Ownable {
    using strings for string;
    using strings for strings.slice;

    ERC721 private hyaliko;

    string private constant terrainColors = "#CCCCCC,#7C7C7C,#000000,#00D081,#AC8CFF,#961FFF,#F29800,#FE0302,#980100,#0BCDFE,#4900FF";
    string private constant backgroundColors = "#FFFFFF,#7F7F7F,#000000,#86FFD1,#87E8FF,#E155FF,#FFEA9B,#FF5161,#6577FF";
    string private constant particleColors = "#FFFFFF,#7C7C7C,#000000,#00D081,#961FFF,#0BCDFE,#F29800,#FE0302,#4900FF";

    string private constant terrainNames = "diamond,steel,obsidian,emerald,lavender quartz,amethyst,amber,ruby,garnet,topaz,sapphire";
    string private constant backgroundNames = "void,forged,stranded,aboreal,stratospheric,galactic,enlightened,blistering,submerged";
    string private constant particleShapeNames = "ethereal,fragmented,glitched";
    string private constant particleColorNames = "white,gray,black,green,purple,sky,orange,red,blue";

    struct Variant {
        uint32 hyalikoSpaceNumber;
        uint8 terrainColor;
        uint8 backgroundColor;
        uint8 particleShape;
        uint8 particleColor;
    }

    // There are 60 of these
    uint8[60] _remainingVariants = [50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50];

    event Published();
    event PublishedForSpaceOwners();
    // Used to track ID offset
    uint256 private _numberSpaceOwnerTokens;
    
    mapping(uint256 => Variant) private _tokenVariantIndex;
    mapping(bytes32 => bool) private _variantMinted;
    
    string private _uriPrefix;

    uint32 private constant _totalNumberOfOriginalHyalikoTokens = 565;
    uint8 private constant _totalNumberOfHyalikoSpaces = 60;
    uint8 private constant _maxNumVariants = 50;

    uint16 private numTerrainColors = 11;
    uint16 private numBackgroundColors = 9;
    uint16 private numParticleColors = 9;
    uint16 private numParticleShapes = 3;

    
    bool public published;
    bool public publishedForSpaceOwners;

    constructor(address hyalikoContractAddress) ERC721("hyaliko space factory", "HYSF") Ownable() {
        hyaliko = ERC721(hyalikoContractAddress);

        published = false;
        publishedForSpaceOwners = false;

        setBaseURI("https://api.hyaliko.com/space-factory/tokens/");
    }
    
    function _baseURI() override internal view virtual returns (string memory) {
        return _uriPrefix;
    }

    function setBaseURI(string memory prefix) public onlyOwner {
        _uriPrefix = prefix;
    }
    
    function publish() public onlyOwner {
        published = true;
        emit Published();
    }

    function publishForSpaceOwners() public onlyOwner {
        publishedForSpaceOwners = true;
        emit PublishedForSpaceOwners();
    }
    
    function allowedNumVariants() public pure returns (uint8) {
        return _maxNumVariants;
    }
    
    function withdraw() public onlyOwner {
        uint balance = address(this).balance;
        payable(msg.sender).transfer(balance);
    }

    function _mintVariant(uint256 tokenId, uint32 spaceIndex, uint8 terrainColor, uint8 backgroundColor, uint8 particleShape, uint8 particleColor) internal {
        require(spaceIndex < _totalNumberOfHyalikoSpaces, "b:02");
        require(terrainColor < numTerrainColors && backgroundColor < numBackgroundColors && particleShape < numParticleShapes && particleColor < numParticleColors, "b:04");
        // Will fail and revert if original hyaliko space doesn't exist
        uint256 hyalikoSpaceTokenId;
        if (spaceIndex <= 4) {
            hyalikoSpaceTokenId = spaceIndex;
        } else {
            hyalikoSpaceTokenId = 15 + ((spaceIndex - 5) * 10);
        }
        try hyaliko.ownerOf(hyalikoSpaceTokenId) {     
        } catch {
            revert("b:07");
        }
        
        require(_remainingVariants[spaceIndex] > 0, "b:05");
        
        // a given variant can only be minted once
        bytes32 parameterHash = keccak256(abi.encodePacked(spaceIndex, terrainColor, backgroundColor, particleShape, particleColor));
        require(_variantMinted[parameterHash] == false, "b:06");
        
        Variant memory variant;
        variant.hyalikoSpaceNumber = spaceIndex;
        variant.terrainColor = terrainColor;
        variant.backgroundColor = backgroundColor;
        variant.particleShape = particleShape;
        variant.particleColor = particleColor;
        
        _remainingVariants[spaceIndex]--;
        
        _tokenVariantIndex[tokenId] = variant;
        _variantMinted[parameterHash] = true;

        _safeMint(msg.sender, tokenId);
    }

    function mintVariantWithHyalikoSpace(uint256 tokenId, uint32 spaceIndex, uint8 terrainColor, uint8 backgroundColor, uint8 particleShape, uint8 particleColor) public nonReentrant {
        require(publishedForSpaceOwners == true, "b:01");
        require(hyaliko.ownerOf(tokenId) == msg.sender, "b:03");
        _mintVariant(tokenId, spaceIndex, terrainColor, backgroundColor, particleShape, particleColor);
        _numberSpaceOwnerTokens++;
    }
    
    function mintVariant(uint32 spaceIndex, uint8 terrainColor, uint8 backgroundColor, uint8 particleShape, uint8 particleColor) public nonReentrant payable {
        require(published == true, "b:01");
        require(msg.value == 0.1 ether, "b:08");

        uint256 tokenId = (_totalNumberOfOriginalHyalikoTokens) + (totalSupply() - _numberSpaceOwnerTokens);
        _mintVariant(tokenId, spaceIndex, terrainColor, backgroundColor, particleShape, particleColor);
    }
    
    function getHyalikoSpaceOf(uint256 tokenId) public view returns (uint32) {
        return _tokenVariantIndex[tokenId].hyalikoSpaceNumber;
    }

    function getTerrainColorOf(uint256 tokenId) public view returns (string memory) {
        Variant memory variant = _tokenVariantIndex[tokenId];
        string memory color = getItemFromCSV(terrainColors, variant.terrainColor);
        return color;
    }

    function getBackgroundColorOf(uint256 tokenId) public view returns (string memory) {
        Variant memory variant = _tokenVariantIndex[tokenId];
        string memory color = getItemFromCSV(backgroundColors, variant.backgroundColor);
        return color;
    }

    function getParticleSvgOf(uint256 tokenId) public view returns (string memory) {
        Variant memory variant = _tokenVariantIndex[tokenId];
        string memory svg;
        if (variant.particleShape == 0) {
            svg = string(abi.encodePacked('<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64"><defs><radialGradient id="gradient"><stop stop-opacity="1" stop-color="', getItemFromCSV(particleColors, variant.particleColor), '" offset="0" /><stop stop-opacity="0" stop-color="', getItemFromCSV(particleColors, variant.particleColor), '" offset="0.9" /></radialGradient></defs><circle cx="32" cy="32" r="32" fill="url(#gradient)"></circle></svg>'));
        } else if (variant.particleShape == 1) {
            svg = string(abi.encodePacked('<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64"><polygon points="16,48 32,16 48,48" fill="', getItemFromCSV(particleColors, variant.particleColor), '"></polygon></svg>'));
        } else {
            svg = string(abi.encodePacked('<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64"><rect width="32" height="32" x="16" y="16" fill="', getItemFromCSV(particleColors, variant.particleColor), '"></rect></svg>'));
        }
        
        return svg;
    }

    function getNameOf(uint256 tokenId) public view returns (string memory) {
        Variant memory variant = _tokenVariantIndex[tokenId];
        return string(abi.encodePacked(getItemFromCSV(terrainNames, variant.terrainColor), " ", getItemFromCSV(backgroundNames, variant.backgroundColor), " (", getItemFromCSV(particleColorNames, variant.particleColor), " ", getItemFromCSV(particleShapeNames, variant.particleShape), ")"));
    }

    function getParametersOf(uint256 tokenId) public view returns (uint32, uint8, uint8, uint8, uint8) {
        Variant memory variant = _tokenVariantIndex[tokenId];
        return (variant.hyalikoSpaceNumber, variant.terrainColor, variant.backgroundColor, variant.particleShape, variant.particleColor);
    }


    function getItemFromCSV(string memory str, uint256 index) internal pure returns (string memory) {
        strings.slice memory strSlice = str.toSlice();
        string memory separatorStr = ",";
        strings.slice memory separator = separatorStr.toSlice();
        strings.slice memory item;
        for (uint256 i = 0; i <= index; i++) {
            item = strSlice.split(separator);
        }
        return item.toString();
    }
}

/*               
errors:         
01: This can only be done after the project has been published.
02: Variants can only be created with valid hyaliko spaces. Range is 0 - 59.
03: You must own the hyaliko space that corresponds to the token ID that you are redeeming if you are minting with a hyaliko space.
04: Variant parameters are limited to a specified preset range (0 - 10 for terrain, 0 - 8 for background, 0 - 2 for particle shape, 0 - 8 for particle color).
05: All 50 variants of this hyaliko space have been minted.
06: A variant with this set of parameters already exists.
07: This hyaliko space is invalid or does not exist yet.
08: Variants cost 0.1 ETH.
*/

File 2 of 14 : ERC721Enumerable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

File 3 of 14 : ReentrancyGuard.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

    uint256 private _status;

    constructor() {
        _status = _NOT_ENTERED;
    }

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

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

        _;

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

File 5 of 14 : ERC721.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        _approve(to, tokenId);
    }

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

        return _tokenApprovals[tokenId];
    }

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

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

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

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

        _transfer(from, to, tokenId);
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        _beforeTokenTransfer(from, to, tokenId);

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

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

        emit Transfer(from, to, tokenId);
    }

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

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

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

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

pragma solidity ^0.8.0;

import "../IERC721.sol";

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

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

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

File 7 of 14 : IERC721.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

File 8 of 14 : IERC721Receiver.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

File 9 of 14 : IERC721Metadata.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../IERC721.sol";

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

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

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

File 10 of 14 : Address.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

File 11 of 14 : Context.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

File 12 of 14 : Strings.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

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

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

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

pragma solidity ^0.8.0;

import "./IERC165.sol";

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

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

pragma solidity ^0.8.0;

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

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"hyalikoContractAddress","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[],"name":"Published","type":"event"},{"anonymous":false,"inputs":[],"name":"PublishedForSpaceOwners","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"allowedNumVariants","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getBackgroundColorOf","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getHyalikoSpaceOf","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getNameOf","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getParametersOf","outputs":[{"internalType":"uint32","name":"","type":"uint32"},{"internalType":"uint8","name":"","type":"uint8"},{"internalType":"uint8","name":"","type":"uint8"},{"internalType":"uint8","name":"","type":"uint8"},{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getParticleSvgOf","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getTerrainColorOf","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint32","name":"spaceIndex","type":"uint32"},{"internalType":"uint8","name":"terrainColor","type":"uint8"},{"internalType":"uint8","name":"backgroundColor","type":"uint8"},{"internalType":"uint8","name":"particleShape","type":"uint8"},{"internalType":"uint8","name":"particleColor","type":"uint8"}],"name":"mintVariant","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint32","name":"spaceIndex","type":"uint32"},{"internalType":"uint8","name":"terrainColor","type":"uint8"},{"internalType":"uint8","name":"backgroundColor","type":"uint8"},{"internalType":"uint8","name":"particleShape","type":"uint8"},{"internalType":"uint8","name":"particleColor","type":"uint8"}],"name":"mintVariantWithHyalikoSpace","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"publish","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"publishForSpaceOwners","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"published","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"publishedForSpaceOwners","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"prefix","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]

6108006040526032608081815260a082905260c082905260e08290526101008290526101208290526101408290526101608290526101808290526101a08290526101c08290526101e08290526102008290526102208290526102408290526102608290526102808290526102a08290526102c08290526102e08290526103008290526103208290526103408290526103608290526103808290526103a08290526103c08290526103e08290526104008290526104208290526104408290526104608290526104808290526104a08290526104c08290526104e08290526105008290526105208290526105408290526105608290526105808290526105a08290526105c08290526105e08290526106008290526106208290526106408290526106608290526106808290526106a08290526106c08290526106e08290526107008290526107208290526107408290526107608290526107808290526107a08290526107c08290526107e0919091526200017c90600d90603c6200036f565b50601380546001600160401b031916660300090009000b179055348015620001a357600080fd5b50604051620041b1380380620041b1833981016040819052620001c6916200049d565b604080518082018252601581527f6879616c696b6f20737061636520666163746f72790000000000000000000000602080830191825283518085019094526004845263242ca9a360e11b908401528151919291620002279160009162000409565b5080516200023d90600190602084019062000409565b50506001600a55506200025033620002a5565b600c80546001600160a01b0319166001600160a01b0383161790556013805461ffff60401b191690556040805160608101909152602d8082526200029e9190620041846020830139620002f7565b506200050a565b600b80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b600b546001600160a01b03163314620003565760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640160405180910390fd5b80516200036b90601290602084019062000409565b5050565b600283019183908215620003f75791602002820160005b83821115620003c657835183826101000a81548160ff021916908360ff160217905550926020019260010160208160000104928301926001030262000386565b8015620003f55782816101000a81549060ff0219169055600101602081600001049283019260010302620003c6565b505b506200040592915062000486565b5090565b8280546200041790620004cd565b90600052602060002090601f0160209004810192826200043b5760008555620003f7565b82601f106200045657805160ff1916838001178555620003f7565b82800160010185558215620003f7579182015b82811115620003f757825182559160200191906001019062000469565b5b8082111562000405576000815560010162000487565b600060208284031215620004af578081fd5b81516001600160a01b0381168114620004c6578182fd5b9392505050565b600181811c90821680620004e257607f821691505b602082108114156200050457634e487b7160e01b600052602260045260246000fd5b50919050565b613c6a806200051a6000396000f3fe6080604052600436106102195760003560e01c80636352211e1161011d57806395d89b41116100b0578063d1438ad91161007f578063e985e9c511610064578063e985e9c5146106c3578063f03637ca1461070c578063f2fde38b1461072c57600080fd5b8063d1438ad9146105e4578063e78a4628146106ae57600080fd5b806395d89b411461056f578063a22cb46514610584578063b88d4fde146105a4578063c87b56dd146105c457600080fd5b806373f626eb116100ec57806373f626eb146104c357806388207805146104e35780638d4d2b0c1461052b5780638da5cb5b1461055157600080fd5b80636352211e1461044e57806370a082311461046e578063715018a61461048e57806371c835cf146104a357600080fd5b80632f745c59116101b057806342842e0e1161017f5780634f6ccce7116101645780634f6ccce7146103ee57806355f804b31461040e5780635a8881471461042e57600080fd5b806342842e0e146103a757806349fbaad4146103c757600080fd5b80632f745c591461034357806333b61727146103635780633c0f9904146103765780633ccfd60b1461039257600080fd5b8063095ea7b3116101ec578063095ea7b3146102c457806315cb889d146102e457806318160ddd1461030457806323b872dd1461032357600080fd5b806301ffc9a71461021e57806306fdde0314610253578063075d478214610275578063081812fc1461028c575b600080fd5b34801561022a57600080fd5b5061023e61023936600461310d565b61074c565b60405190151581526020015b60405180910390f35b34801561025f57600080fd5b50610268610790565b60405161024a9190613782565b34801561028157600080fd5b5061028a610822565b005b34801561029857600080fd5b506102ac6102a736600461318b565b6108c9565b6040516001600160a01b03909116815260200161024a565b3480156102d057600080fd5b5061028a6102df3660046130e2565b61095e565b3480156102f057600080fd5b506102686102ff36600461318b565b610a90565b34801561031057600080fd5b506008545b60405190815260200161024a565b34801561032f57600080fd5b5061028a61033e366004612ff4565b610c1d565b34801561034f57600080fd5b5061031561035e3660046130e2565b610ca4565b61028a61037136600461320f565b610d4c565b34801561038257600080fd5b506040516032815260200161024a565b34801561039e57600080fd5b5061028a610e8a565b3480156103b357600080fd5b5061028a6103c2366004612ff4565b610f17565b3480156103d357600080fd5b5060135461023e906901000000000000000000900460ff1681565b3480156103fa57600080fd5b5061031561040936600461318b565b610f32565b34801561041a57600080fd5b5061028a610429366004613145565b610fe4565b34801561043a57600080fd5b5061026861044936600461318b565b611051565b34801561045a57600080fd5b506102ac61046936600461318b565b6110f5565b34801561047a57600080fd5b50610315610489366004612f84565b611180565b34801561049a57600080fd5b5061028a61121a565b3480156104af57600080fd5b5061028a6104be3660046131a3565b611280565b3480156104cf57600080fd5b506102686104de36600461318b565b611429565b3480156104ef57600080fd5b506105166104fe36600461318b565b60009081526010602052604090205463ffffffff1690565b60405163ffffffff909116815260200161024a565b34801561053757600080fd5b5060135461023e9068010000000000000000900460ff1681565b34801561055d57600080fd5b50600b546001600160a01b03166102ac565b34801561057b57600080fd5b506102686114c5565b34801561059057600080fd5b5061028a61059f3660046130b1565b6114d4565b3480156105b057600080fd5b5061028a6105bf366004613034565b611599565b3480156105d057600080fd5b506102686105df36600461318b565b611627565b3480156105f057600080fd5b506106776105ff36600461318b565b600081815260106020908152604091829020825160a081018452905463ffffffff811680835260ff640100000000830481169484018590526501000000000083048116958401869052660100000000000083048116606085018190526701000000000000009093041660809093018390529590929450565b6040805163ffffffff909616865260ff9485166020870152928416928501929092528216606084015216608082015260a00161024a565b3480156106ba57600080fd5b5061028a61170f565b3480156106cf57600080fd5b5061023e6106de366004612fbc565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b34801561071857600080fd5b5061026861072736600461318b565b6117b3565b34801561073857600080fd5b5061028a610747366004612f84565b6118f8565b60006001600160e01b031982167f780e9d6300000000000000000000000000000000000000000000000000000000148061078a575061078a826119da565b92915050565b60606000805461079f9061399b565b80601f01602080910402602001604051908101604052809291908181526020018280546107cb9061399b565b80156108185780601f106107ed57610100808354040283529160200191610818565b820191906000526020600020905b8154815290600101906020018083116107fb57829003601f168201915b5050505050905090565b600b546001600160a01b031633146108815760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064015b60405180910390fd5b6013805468ff00000000000000001916680100000000000000001790556040517fa5c49e57d43a67a13cd3aba09ccf12eaa3019b35cea872059e78db9c4a70f86c90600090a1565b6000818152600260205260408120546001600160a01b03166109425760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610878565b506000908152600460205260409020546001600160a01b031690565b6000610969826110f5565b9050806001600160a01b0316836001600160a01b031614156109f35760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560448201527f72000000000000000000000000000000000000000000000000000000000000006064820152608401610878565b336001600160a01b0382161480610a0f5750610a0f81336106de565b610a815760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610878565b610a8b8383611a75565b505050565b600081815260106020908152604091829020825160a081018452905463ffffffff8116825260ff640100000000820481169383019390935265010000000000810483169382019390935266010000000000008304821660608281018290526701000000000000009094049092166080820152908290610b8257610b32604051806080016040528060478152602001613ac760479139836080015160ff16611af0565b610b5b604051806080016040528060478152602001613ac760479139846080015160ff16611af0565b604051602001610b6c92919061348b565b6040516020818303038152906040529050610c16565b816060015160ff1660011415610bcb57610bbb604051806080016040528060478152602001613ac760479139836080015160ff16611af0565b604051602001610b6c9190613668565b610bf4604051806080016040528060478152602001613ac760479139836080015160ff16611af0565b604051602001610c0491906133ad565b60405160208183030381529060405290505b9392505050565b610c273382611bd0565b610c995760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f7665640000000000000000000000000000006064820152608401610878565b610a8b838383611cc3565b6000610caf83611180565b8210610d235760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201527f74206f6620626f756e64730000000000000000000000000000000000000000006064820152608401610878565b506001600160a01b03919091166000908152600660209081526040808320938352929052205490565b6002600a541415610d9f5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610878565b6002600a5560135468010000000000000000900460ff161515600114610df05760405162461bcd60e51b815260040161087890602080825260049082015263623a303160e01b604082015260600190565b3467016345785d8a000014610e495760405162461bcd60e51b81526004016108789060208082526004908201527f623a303800000000000000000000000000000000000000000000000000000000604082015260600190565b6000600f54610e5760085490565b610e619190613916565b610e6d90610235613795565b9050610e7d818787878787611ea8565b50506001600a5550505050565b600b546001600160a01b03163314610ee45760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610878565b6040514790339082156108fc029083906000818181858888f19350505050158015610f13573d6000803e3d6000fd5b5050565b610a8b83838360405180602001604052806000815250611599565b6000610f3d60085490565b8210610fb15760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201527f7574206f6620626f756e647300000000000000000000000000000000000000006064820152608401610878565b60088281548110610fd257634e487b7160e01b600052603260045260246000fd5b90600052602060002001549050919050565b600b546001600160a01b0316331461103e5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610878565b8051610f13906012906020840190612e4b565b6000818152601060209081526040808320815160a081018352905463ffffffff8116825260ff640100000000820481168386015265010000000000820481168385015266010000000000008204811660608481019190915267010000000000000090920416608080840191909152835190810190935260478084529094919391926110ed92909190613bbd90830139836040015160ff16611af0565b949350505050565b6000818152600260205260408120546001600160a01b03168061078a5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201527f656e7420746f6b656e00000000000000000000000000000000000000000000006064820152608401610878565b60006001600160a01b0382166111fe5760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a6560448201527f726f2061646472657373000000000000000000000000000000000000000000006064820152608401610878565b506001600160a01b031660009081526003602052604090205490565b600b546001600160a01b031633146112745760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610878565b61127e600061238a565b565b6002600a5414156112d35760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610878565b6002600a556013546901000000000000000000900460ff1615156001146113255760405162461bcd60e51b815260040161087890602080825260049082015263623a303160e01b604082015260600190565b600c546040516331a9108f60e11b81526004810188905233916001600160a01b031690636352211e9060240160206040518083038186803b15801561136957600080fd5b505afa15801561137d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113a19190612fa0565b6001600160a01b0316146113f95760405162461bcd60e51b81526004016108789060208082526004908201527f623a303300000000000000000000000000000000000000000000000000000000604082015260600190565b611407868686868686611ea8565b600f8054906000611417836139d6565b90915550506001600a55505050505050565b6000818152601060209081526040808320815160a081018352905463ffffffff8116825260ff640100000000820481168386015265010000000000820481168385015266010000000000008204811660608481019190915267010000000000000090920416608080840191909152835190810190935260578084529094919391926110ed92909190613b0e90830139836020015160ff16611af0565b60606001805461079f9061399b565b6001600160a01b03821633141561152d5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610878565b3360008181526005602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6115a33383611bd0565b6116155760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f7665640000000000000000000000000000006064820152608401610878565b611621848484846123e9565b50505050565b6000818152600260205260409020546060906001600160a01b03166116b45760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201527f6e6578697374656e7420746f6b656e00000000000000000000000000000000006064820152608401610878565b60006116be612467565b905060008151116116de5760405180602001604052806000815250610c16565b806116e884612476565b6040516020016116f992919061329f565b6040516020818303038152906040529392505050565b600b546001600160a01b031633146117695760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610878565b6013805469ff000000000000000000191669010000000000000000001790556040517f15be83deb0042228d2a968d5f573053404dd67493a4f6e1e158b994c0d2c381490600090a1565b600081815260106020908152604091829020825160a081018452905463ffffffff8116825260ff640100000000820481168385015265010000000000820481168386015266010000000000008204811660608481019190915267010000000000000090920416608080840191909152845190810190945260588085529093919261184d929190613b6590830139826020015160ff16611af0565b611876604051806080016040528060548152602001613a7360549139836040015160ff16611af0565b61189f604051806060016040528060318152602001613c0460319139846080015160ff16611af0565b6118e56040518060400160405280601c81526020017f657468657265616c2c667261676d656e7465642c676c69746368656400000000815250856060015160ff16611af0565b6040516020016116f994939291906132ce565b600b546001600160a01b031633146119525760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610878565b6001600160a01b0381166119ce5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610878565b6119d78161238a565b50565b60006001600160e01b031982167f80ac58cd000000000000000000000000000000000000000000000000000000001480611a3d57506001600160e01b031982167f5b5e139f00000000000000000000000000000000000000000000000000000000145b8061078a57507f01ffc9a7000000000000000000000000000000000000000000000000000000006001600160e01b031983161461078a565b6000818152600460205260409020805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0384169081179091558190611ab7826110f5565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60606000611b258460408051808201825260008082526020918201528151808301909252825182529182019181019190915290565b604080518082018252600181527f2c000000000000000000000000000000000000000000000000000000000000006020808301918252835180850185526000808252908201819052845180860186528451815280830193909352845180860190955280855290840152929350919060005b868111611bbb57611ba785846125c4565b915080611bb3816139d6565b915050611b96565b50611bc5816125ea565b979650505050505050565b6000818152600260205260408120546001600160a01b0316611c495760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610878565b6000611c54836110f5565b9050806001600160a01b0316846001600160a01b03161480611c8f5750836001600160a01b0316611c84846108c9565b6001600160a01b0316145b806110ed57506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff166110ed565b826001600160a01b0316611cd6826110f5565b6001600160a01b031614611d525760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201527f73206e6f74206f776e00000000000000000000000000000000000000000000006064820152608401610878565b6001600160a01b038216611dcd5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f2061646460448201527f72657373000000000000000000000000000000000000000000000000000000006064820152608401610878565b611dd8838383612661565b611de3600082611a75565b6001600160a01b0383166000908152600360205260408120805460019290611e0c908490613916565b90915550506001600160a01b0382166000908152600360205260408120805460019290611e3a908490613795565b9091555050600081815260026020526040808220805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b603c63ffffffff861610611f005760405162461bcd60e51b81526004016108789060208082526004908201527f623a303200000000000000000000000000000000000000000000000000000000604082015260600190565b60135461ffff1660ff8516108015611f26575060135462010000900461ffff1660ff8416105b8015611f4457506013546601000000000000900461ffff1660ff8316105b8015611f605750601354640100000000900461ffff1660ff8216105b611fae5760405162461bcd60e51b81526004016108789060208082526004908201527f623a303400000000000000000000000000000000000000000000000000000000604082015260600190565b600060048663ffffffff1611611fcb575063ffffffff8516611ff5565b611fd660058761392d565b611fe190600a6138ea565b611fec90600f6137ad565b63ffffffff1690505b600c546040516331a9108f60e11b8152600481018390526001600160a01b0390911690636352211e9060240160206040518083038186803b15801561203957600080fd5b505afa925050508015612069575060408051601f3d908101601f1916820190925261206691810190612fa0565b60015b6120b75760405162461bcd60e51b81526004016108789060208082526004908201527f623a303700000000000000000000000000000000000000000000000000000000604082015260600190565b506000600d8763ffffffff16603c81106120e157634e487b7160e01b600052603260045260246000fd5b602081049091015460ff601f9092166101000a900416116121465760405162461bcd60e51b81526004016108789060208082526004908201527f623a303500000000000000000000000000000000000000000000000000000000604082015260600190565b6040516001600160e01b031960e088901b1660208201527fff0000000000000000000000000000000000000000000000000000000000000060f887811b8216602484015286811b8216602584015285811b8216602684015284901b16602782015260009060280160408051601f1981840301815291815281516020928301206000818152601190935291205490915060ff16156122275760405162461bcd60e51b81526004016108789060208082526004908201527f623a303600000000000000000000000000000000000000000000000000000000604082015260600190565b6040805160a08101825263ffffffff891680825260ff8981166020840152888116938301939093528683166060830152918516608082015290600d90603c811061228157634e487b7160e01b600052603260045260246000fd5b6020918282040191900681819054906101000a900460ff16809291906122a69061397e565b82546101009290920a60ff81810219909316918316021790915560008b815260106020908152604080832086518154888501518985015160608b015160808c015163ffffffff90951664ffffffffff1990941693909317640100000000928a16929092029190911766ffff00000000001916650100000000009189169190910266ff0000000000001916176601000000000000918816919091021767ff0000000000000019166701000000000000009190961602949094179093558582526011905220805460ff191660011790555061237f338a612719565b505050505050505050565b600b80546001600160a01b0383811673ffffffffffffffffffffffffffffffffffffffff19831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6123f4848484611cc3565b61240084848484612733565b6116215760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b6064820152608401610878565b60606012805461079f9061399b565b6060816124b657505060408051808201909152600181527f3000000000000000000000000000000000000000000000000000000000000000602082015290565b8160005b81156124e057806124ca816139d6565b91506124d99050600a836137cc565b91506124ba565b60008167ffffffffffffffff81111561250957634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015612533576020820181803683370190505b5090505b84156110ed57612548600183613916565b9150612555600a866139f1565b612560906030613795565b60f81b81838151811061258357634e487b7160e01b600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053506125bd600a866137cc565b9450612537565b60408051808201909152600080825260208201526125e383838361288b565b5092915050565b60606000826000015167ffffffffffffffff81111561261957634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015612643576020820181803683370190505b50905060006020820190506125e38185602001518660000151612937565b6001600160a01b0383166126bc576126b781600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b6126df565b816001600160a01b0316836001600160a01b0316146126df576126df83826129a8565b6001600160a01b0382166126f657610a8b81612a45565b826001600160a01b0316826001600160a01b031614610a8b57610a8b8282612b1e565b610f13828260405180602001604052806000815250612b62565b60006001600160a01b0384163b1561288057604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290612777903390899088908890600401613746565b602060405180830381600087803b15801561279157600080fd5b505af19250505080156127c1575060408051601f3d908101601f191682019092526127be91810190613129565b60015b612866573d8080156127ef576040519150601f19603f3d011682016040523d82523d6000602084013e6127f4565b606091505b50805161285e5760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b6064820152608401610878565b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490506110ed565b506001949350505050565b604080518082019091526000808252602082015260006128bd8560000151866020015186600001518760200151612be0565b6020808701805191860191909152519091506128d99082613916565b8352845160208601516128ec9190613795565b8114156128fc576000855261292e565b8351835161290a9190613795565b85518690612919908390613916565b90525083516129289082613795565b60208601525b50909392505050565b6020811061296f578151835261294e602084613795565b925061295b602083613795565b9150612968602082613916565b9050612937565b6000600161297e836020613916565b61298a90610100613823565b6129949190613916565b925184518416931916929092179092525050565b600060016129b584611180565b6129bf9190613916565b600083815260076020526040902054909150808214612a12576001600160a01b03841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b5060009182526007602090815260408084208490556001600160a01b039094168352600681528383209183525290812055565b600854600090612a5790600190613916565b60008381526009602052604081205460088054939450909284908110612a8d57634e487b7160e01b600052603260045260246000fd5b906000526020600020015490508060088381548110612abc57634e487b7160e01b600052603260045260246000fd5b6000918252602080832090910192909255828152600990915260408082208490558582528120556008805480612b0257634e487b7160e01b600052603160045260246000fd5b6001900381819060005260206000200160009055905550505050565b6000612b2983611180565b6001600160a01b039093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b612b6c8383612cf0565b612b796000848484612733565b610a8b5760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b6064820152608401610878565b60008381868511612ce65760208511612c945760006001612c02876020613916565b612c0d9060086138cb565b612c18906002613823565b612c229190613916565b8551901991508116600087612c378b8b613795565b612c419190613916565b855190915083165b828114612c8657818610612c6e57612c618b8b613795565b96505050505050506110ed565b85612c78816139d6565b965050838651169050612c49565b8596505050505050506110ed565b508383206000905b612ca68689613916565b8211612ce45785832081811415612cc357839450505050506110ed565b612cce600185613795565b9350508180612cdc906139d6565b925050612c9c565b505b611bc58787613795565b6001600160a01b038216612d465760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610878565b6000818152600260205260409020546001600160a01b031615612dab5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610878565b612db760008383612661565b6001600160a01b0382166000908152600360205260408120805460019290612de0908490613795565b9091555050600081815260026020526040808220805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b828054612e579061399b565b90600052602060002090601f016020900481019282612e795760008555612ebf565b82601f10612e9257805160ff1916838001178555612ebf565b82800160010185558215612ebf579182015b82811115612ebf578251825591602001919060010190612ea4565b50612ecb929150612ecf565b5090565b5b80821115612ecb5760008155600101612ed0565b600067ffffffffffffffff80841115612eff57612eff613a31565b604051601f8501601f19908116603f01168101908282118183101715612f2757612f27613a31565b81604052809350858152868686011115612f4057600080fd5b858560208301376000602087830101525050509392505050565b803563ffffffff81168114612f6e57600080fd5b919050565b803560ff81168114612f6e57600080fd5b600060208284031215612f95578081fd5b8135610c1681613a47565b600060208284031215612fb1578081fd5b8151610c1681613a47565b60008060408385031215612fce578081fd5b8235612fd981613a47565b91506020830135612fe981613a47565b809150509250929050565b600080600060608486031215613008578081fd5b833561301381613a47565b9250602084013561302381613a47565b929592945050506040919091013590565b60008060008060808587031215613049578081fd5b843561305481613a47565b9350602085013561306481613a47565b925060408501359150606085013567ffffffffffffffff811115613086578182fd5b8501601f81018713613096578182fd5b6130a587823560208401612ee4565b91505092959194509250565b600080604083850312156130c3578182fd5b82356130ce81613a47565b915060208301358015158114612fe9578182fd5b600080604083850312156130f4578182fd5b82356130ff81613a47565b946020939093013593505050565b60006020828403121561311e578081fd5b8135610c1681613a5c565b60006020828403121561313a578081fd5b8151610c1681613a5c565b600060208284031215613156578081fd5b813567ffffffffffffffff81111561316c578182fd5b8201601f8101841361317c578182fd5b6110ed84823560208401612ee4565b60006020828403121561319c578081fd5b5035919050565b60008060008060008060c087890312156131bb578182fd5b863595506131cb60208801612f5a565b94506131d960408801612f73565b93506131e760608801612f73565b92506131f560808801612f73565b915061320360a08801612f73565b90509295509295509295565b600080600080600060a08688031215613226578283fd5b61322f86612f5a565b945061323d60208701612f73565b935061324b60408701612f73565b925061325960608701612f73565b915061326760808701612f73565b90509295509295909350565b6000815180845261328b816020860160208601613952565b601f01601f19169290920160200192915050565b600083516132b1818460208801613952565b8351908301906132c5818360208801613952565b01949350505050565b600085516132e0818460208a01613952565b80830190507f2000000000000000000000000000000000000000000000000000000000000000808252865161331c816001850160208b01613952565b7f202800000000000000000000000000000000000000000000000000000000000060019390910192830152855161335a816003850160208a01613952565b60039201918201528351613375816004840160208801613952565b7f2900000000000000000000000000000000000000000000000000000000000000600492909101918201526005019695505050505050565b7f3c73766720786d6c6e733d22687474703a2f2f7777772e77332e6f72672f323081527f30302f737667222076696577426f783d22302030203634203634223e3c72656360208201527f742077696474683d22333222206865696768743d2233322220783d223136222060408201527f793d223136222066696c6c3d220000000000000000000000000000000000000060608201526000825161345781606d850160208701613952565b7f223e3c2f726563743e3c2f7376673e0000000000000000000000000000000000606d939091019283015250607c01919050565b7f3c73766720786d6c6e733d22687474703a2f2f7777772e77332e6f72672f323081527f30302f737667222076696577426f783d22302030203634203634223e3c64656660208201527f733e3c72616469616c4772616469656e742069643d226772616469656e74223e60408201527f3c73746f702073746f702d6f7061636974793d2231222073746f702d636f6c6f60608201527f723d22000000000000000000000000000000000000000000000000000000000060808201526000835161355b816083850160208801613952565b7f22206f66667365743d223022202f3e3c73746f702073746f702d6f70616369746083918401918201527f793d2230222073746f702d636f6c6f723d22000000000000000000000000000060a382015283516135be8160b5840160208801613952565b7f22206f66667365743d22302e3922202f3e3c2f72616469616c4772616469656e60b592909101918201527f743e3c2f646566733e3c636972636c652063783d223332222063793d2233322260d58201527f20723d223332222066696c6c3d2275726c28236772616469656e7429223e3c2f60f58201527f636972636c653e3c2f7376673e0000000000000000000000000000000000000061011582015261012201949350505050565b7f3c73766720786d6c6e733d22687474703a2f2f7777772e77332e6f72672f323081527f30302f737667222076696577426f783d22302030203634203634223e3c706f6c60208201527f79676f6e20706f696e74733d2231362c34382033322c31362034382c3438222060408201527f66696c6c3d220000000000000000000000000000000000000000000000000000606082015260008251613712816066850160208701613952565b7f223e3c2f706f6c79676f6e3e3c2f7376673e00000000000000000000000000006066939091019283015250607801919050565b60006001600160a01b038087168352808616602084015250836040830152608060608301526137786080830184613273565b9695505050505050565b602081526000610c166020830184613273565b600082198211156137a8576137a8613a05565b500190565b600063ffffffff8083168185168083038211156132c5576132c5613a05565b6000826137db576137db613a1b565b500490565b600181815b8085111561381b57816000190482111561380157613801613a05565b8085161561380e57918102915b93841c93908002906137e5565b509250929050565b6000610c1683836000826138395750600161078a565b816138465750600061078a565b816001811461385c576002811461386657613882565b600191505061078a565b60ff84111561387757613877613a05565b50506001821b61078a565b5060208310610133831016604e8410600b84101617156138a5575081810a61078a565b6138af83836137e0565b80600019048211156138c3576138c3613a05565b029392505050565b60008160001904831182151516156138e5576138e5613a05565b500290565b600063ffffffff8083168185168183048111821515161561390d5761390d613a05565b02949350505050565b60008282101561392857613928613a05565b500390565b600063ffffffff8381169083168181101561394a5761394a613a05565b039392505050565b60005b8381101561396d578181015183820152602001613955565b838111156116215750506000910152565b600060ff82168061399157613991613a05565b6000190192915050565b600181811c908216806139af57607f821691505b602082108114156139d057634e487b7160e01b600052602260045260246000fd5b50919050565b60006000198214156139ea576139ea613a05565b5060010190565b600082613a0057613a00613a1b565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b03811681146119d757600080fd5b6001600160e01b0319811681146119d757600080fdfe766f69642c666f726765642c737472616e6465642c61626f7265616c2c73747261746f737068657269632c67616c61637469632c656e6c69676874656e65642c626c6973746572696e672c7375626d6572676564234646464646462c233743374337432c233030303030302c233030443038312c233936314646462c233042434446452c234632393830302c234645303330322c23343930304646234343434343432c233743374337432c233030303030302c233030443038312c234143384346462c233936314646462c234632393830302c234645303330322c233938303130302c233042434446452c233439303046466469616d6f6e642c737465656c2c6f6273696469616e2c656d6572616c642c6c6176656e6465722071756172747a2c616d6574687973742c616d6265722c727562792c6761726e65742c746f70617a2c7361707068697265234646464646462c233746374637462c233030303030302c233836464644312c233837453846462c234531353546462c234646454139422c234646353136312c2336353737464677686974652c677261792c626c61636b2c677265656e2c707572706c652c736b792c6f72616e67652c7265642c626c7565a2646970667358221220274d7cac80543f4d9271b02f4b62f19360d1e67c1fa13e6216402302f705fafa64736f6c6343000804003368747470733a2f2f6170692e6879616c696b6f2e636f6d2f73706163652d666163746f72792f746f6b656e732f000000000000000000000000d6c1693653b1145f01b4052c8a3fb5b1a13718dd

Deployed Bytecode

0x6080604052600436106102195760003560e01c80636352211e1161011d57806395d89b41116100b0578063d1438ad91161007f578063e985e9c511610064578063e985e9c5146106c3578063f03637ca1461070c578063f2fde38b1461072c57600080fd5b8063d1438ad9146105e4578063e78a4628146106ae57600080fd5b806395d89b411461056f578063a22cb46514610584578063b88d4fde146105a4578063c87b56dd146105c457600080fd5b806373f626eb116100ec57806373f626eb146104c357806388207805146104e35780638d4d2b0c1461052b5780638da5cb5b1461055157600080fd5b80636352211e1461044e57806370a082311461046e578063715018a61461048e57806371c835cf146104a357600080fd5b80632f745c59116101b057806342842e0e1161017f5780634f6ccce7116101645780634f6ccce7146103ee57806355f804b31461040e5780635a8881471461042e57600080fd5b806342842e0e146103a757806349fbaad4146103c757600080fd5b80632f745c591461034357806333b61727146103635780633c0f9904146103765780633ccfd60b1461039257600080fd5b8063095ea7b3116101ec578063095ea7b3146102c457806315cb889d146102e457806318160ddd1461030457806323b872dd1461032357600080fd5b806301ffc9a71461021e57806306fdde0314610253578063075d478214610275578063081812fc1461028c575b600080fd5b34801561022a57600080fd5b5061023e61023936600461310d565b61074c565b60405190151581526020015b60405180910390f35b34801561025f57600080fd5b50610268610790565b60405161024a9190613782565b34801561028157600080fd5b5061028a610822565b005b34801561029857600080fd5b506102ac6102a736600461318b565b6108c9565b6040516001600160a01b03909116815260200161024a565b3480156102d057600080fd5b5061028a6102df3660046130e2565b61095e565b3480156102f057600080fd5b506102686102ff36600461318b565b610a90565b34801561031057600080fd5b506008545b60405190815260200161024a565b34801561032f57600080fd5b5061028a61033e366004612ff4565b610c1d565b34801561034f57600080fd5b5061031561035e3660046130e2565b610ca4565b61028a61037136600461320f565b610d4c565b34801561038257600080fd5b506040516032815260200161024a565b34801561039e57600080fd5b5061028a610e8a565b3480156103b357600080fd5b5061028a6103c2366004612ff4565b610f17565b3480156103d357600080fd5b5060135461023e906901000000000000000000900460ff1681565b3480156103fa57600080fd5b5061031561040936600461318b565b610f32565b34801561041a57600080fd5b5061028a610429366004613145565b610fe4565b34801561043a57600080fd5b5061026861044936600461318b565b611051565b34801561045a57600080fd5b506102ac61046936600461318b565b6110f5565b34801561047a57600080fd5b50610315610489366004612f84565b611180565b34801561049a57600080fd5b5061028a61121a565b3480156104af57600080fd5b5061028a6104be3660046131a3565b611280565b3480156104cf57600080fd5b506102686104de36600461318b565b611429565b3480156104ef57600080fd5b506105166104fe36600461318b565b60009081526010602052604090205463ffffffff1690565b60405163ffffffff909116815260200161024a565b34801561053757600080fd5b5060135461023e9068010000000000000000900460ff1681565b34801561055d57600080fd5b50600b546001600160a01b03166102ac565b34801561057b57600080fd5b506102686114c5565b34801561059057600080fd5b5061028a61059f3660046130b1565b6114d4565b3480156105b057600080fd5b5061028a6105bf366004613034565b611599565b3480156105d057600080fd5b506102686105df36600461318b565b611627565b3480156105f057600080fd5b506106776105ff36600461318b565b600081815260106020908152604091829020825160a081018452905463ffffffff811680835260ff640100000000830481169484018590526501000000000083048116958401869052660100000000000083048116606085018190526701000000000000009093041660809093018390529590929450565b6040805163ffffffff909616865260ff9485166020870152928416928501929092528216606084015216608082015260a00161024a565b3480156106ba57600080fd5b5061028a61170f565b3480156106cf57600080fd5b5061023e6106de366004612fbc565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b34801561071857600080fd5b5061026861072736600461318b565b6117b3565b34801561073857600080fd5b5061028a610747366004612f84565b6118f8565b60006001600160e01b031982167f780e9d6300000000000000000000000000000000000000000000000000000000148061078a575061078a826119da565b92915050565b60606000805461079f9061399b565b80601f01602080910402602001604051908101604052809291908181526020018280546107cb9061399b565b80156108185780601f106107ed57610100808354040283529160200191610818565b820191906000526020600020905b8154815290600101906020018083116107fb57829003601f168201915b5050505050905090565b600b546001600160a01b031633146108815760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064015b60405180910390fd5b6013805468ff00000000000000001916680100000000000000001790556040517fa5c49e57d43a67a13cd3aba09ccf12eaa3019b35cea872059e78db9c4a70f86c90600090a1565b6000818152600260205260408120546001600160a01b03166109425760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610878565b506000908152600460205260409020546001600160a01b031690565b6000610969826110f5565b9050806001600160a01b0316836001600160a01b031614156109f35760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560448201527f72000000000000000000000000000000000000000000000000000000000000006064820152608401610878565b336001600160a01b0382161480610a0f5750610a0f81336106de565b610a815760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610878565b610a8b8383611a75565b505050565b600081815260106020908152604091829020825160a081018452905463ffffffff8116825260ff640100000000820481169383019390935265010000000000810483169382019390935266010000000000008304821660608281018290526701000000000000009094049092166080820152908290610b8257610b32604051806080016040528060478152602001613ac760479139836080015160ff16611af0565b610b5b604051806080016040528060478152602001613ac760479139846080015160ff16611af0565b604051602001610b6c92919061348b565b6040516020818303038152906040529050610c16565b816060015160ff1660011415610bcb57610bbb604051806080016040528060478152602001613ac760479139836080015160ff16611af0565b604051602001610b6c9190613668565b610bf4604051806080016040528060478152602001613ac760479139836080015160ff16611af0565b604051602001610c0491906133ad565b60405160208183030381529060405290505b9392505050565b610c273382611bd0565b610c995760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f7665640000000000000000000000000000006064820152608401610878565b610a8b838383611cc3565b6000610caf83611180565b8210610d235760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201527f74206f6620626f756e64730000000000000000000000000000000000000000006064820152608401610878565b506001600160a01b03919091166000908152600660209081526040808320938352929052205490565b6002600a541415610d9f5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610878565b6002600a5560135468010000000000000000900460ff161515600114610df05760405162461bcd60e51b815260040161087890602080825260049082015263623a303160e01b604082015260600190565b3467016345785d8a000014610e495760405162461bcd60e51b81526004016108789060208082526004908201527f623a303800000000000000000000000000000000000000000000000000000000604082015260600190565b6000600f54610e5760085490565b610e619190613916565b610e6d90610235613795565b9050610e7d818787878787611ea8565b50506001600a5550505050565b600b546001600160a01b03163314610ee45760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610878565b6040514790339082156108fc029083906000818181858888f19350505050158015610f13573d6000803e3d6000fd5b5050565b610a8b83838360405180602001604052806000815250611599565b6000610f3d60085490565b8210610fb15760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201527f7574206f6620626f756e647300000000000000000000000000000000000000006064820152608401610878565b60088281548110610fd257634e487b7160e01b600052603260045260246000fd5b90600052602060002001549050919050565b600b546001600160a01b0316331461103e5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610878565b8051610f13906012906020840190612e4b565b6000818152601060209081526040808320815160a081018352905463ffffffff8116825260ff640100000000820481168386015265010000000000820481168385015266010000000000008204811660608481019190915267010000000000000090920416608080840191909152835190810190935260478084529094919391926110ed92909190613bbd90830139836040015160ff16611af0565b949350505050565b6000818152600260205260408120546001600160a01b03168061078a5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201527f656e7420746f6b656e00000000000000000000000000000000000000000000006064820152608401610878565b60006001600160a01b0382166111fe5760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a6560448201527f726f2061646472657373000000000000000000000000000000000000000000006064820152608401610878565b506001600160a01b031660009081526003602052604090205490565b600b546001600160a01b031633146112745760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610878565b61127e600061238a565b565b6002600a5414156112d35760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610878565b6002600a556013546901000000000000000000900460ff1615156001146113255760405162461bcd60e51b815260040161087890602080825260049082015263623a303160e01b604082015260600190565b600c546040516331a9108f60e11b81526004810188905233916001600160a01b031690636352211e9060240160206040518083038186803b15801561136957600080fd5b505afa15801561137d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113a19190612fa0565b6001600160a01b0316146113f95760405162461bcd60e51b81526004016108789060208082526004908201527f623a303300000000000000000000000000000000000000000000000000000000604082015260600190565b611407868686868686611ea8565b600f8054906000611417836139d6565b90915550506001600a55505050505050565b6000818152601060209081526040808320815160a081018352905463ffffffff8116825260ff640100000000820481168386015265010000000000820481168385015266010000000000008204811660608481019190915267010000000000000090920416608080840191909152835190810190935260578084529094919391926110ed92909190613b0e90830139836020015160ff16611af0565b60606001805461079f9061399b565b6001600160a01b03821633141561152d5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610878565b3360008181526005602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6115a33383611bd0565b6116155760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f7665640000000000000000000000000000006064820152608401610878565b611621848484846123e9565b50505050565b6000818152600260205260409020546060906001600160a01b03166116b45760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201527f6e6578697374656e7420746f6b656e00000000000000000000000000000000006064820152608401610878565b60006116be612467565b905060008151116116de5760405180602001604052806000815250610c16565b806116e884612476565b6040516020016116f992919061329f565b6040516020818303038152906040529392505050565b600b546001600160a01b031633146117695760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610878565b6013805469ff000000000000000000191669010000000000000000001790556040517f15be83deb0042228d2a968d5f573053404dd67493a4f6e1e158b994c0d2c381490600090a1565b600081815260106020908152604091829020825160a081018452905463ffffffff8116825260ff640100000000820481168385015265010000000000820481168386015266010000000000008204811660608481019190915267010000000000000090920416608080840191909152845190810190945260588085529093919261184d929190613b6590830139826020015160ff16611af0565b611876604051806080016040528060548152602001613a7360549139836040015160ff16611af0565b61189f604051806060016040528060318152602001613c0460319139846080015160ff16611af0565b6118e56040518060400160405280601c81526020017f657468657265616c2c667261676d656e7465642c676c69746368656400000000815250856060015160ff16611af0565b6040516020016116f994939291906132ce565b600b546001600160a01b031633146119525760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610878565b6001600160a01b0381166119ce5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610878565b6119d78161238a565b50565b60006001600160e01b031982167f80ac58cd000000000000000000000000000000000000000000000000000000001480611a3d57506001600160e01b031982167f5b5e139f00000000000000000000000000000000000000000000000000000000145b8061078a57507f01ffc9a7000000000000000000000000000000000000000000000000000000006001600160e01b031983161461078a565b6000818152600460205260409020805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0384169081179091558190611ab7826110f5565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60606000611b258460408051808201825260008082526020918201528151808301909252825182529182019181019190915290565b604080518082018252600181527f2c000000000000000000000000000000000000000000000000000000000000006020808301918252835180850185526000808252908201819052845180860186528451815280830193909352845180860190955280855290840152929350919060005b868111611bbb57611ba785846125c4565b915080611bb3816139d6565b915050611b96565b50611bc5816125ea565b979650505050505050565b6000818152600260205260408120546001600160a01b0316611c495760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610878565b6000611c54836110f5565b9050806001600160a01b0316846001600160a01b03161480611c8f5750836001600160a01b0316611c84846108c9565b6001600160a01b0316145b806110ed57506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff166110ed565b826001600160a01b0316611cd6826110f5565b6001600160a01b031614611d525760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201527f73206e6f74206f776e00000000000000000000000000000000000000000000006064820152608401610878565b6001600160a01b038216611dcd5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f2061646460448201527f72657373000000000000000000000000000000000000000000000000000000006064820152608401610878565b611dd8838383612661565b611de3600082611a75565b6001600160a01b0383166000908152600360205260408120805460019290611e0c908490613916565b90915550506001600160a01b0382166000908152600360205260408120805460019290611e3a908490613795565b9091555050600081815260026020526040808220805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b603c63ffffffff861610611f005760405162461bcd60e51b81526004016108789060208082526004908201527f623a303200000000000000000000000000000000000000000000000000000000604082015260600190565b60135461ffff1660ff8516108015611f26575060135462010000900461ffff1660ff8416105b8015611f4457506013546601000000000000900461ffff1660ff8316105b8015611f605750601354640100000000900461ffff1660ff8216105b611fae5760405162461bcd60e51b81526004016108789060208082526004908201527f623a303400000000000000000000000000000000000000000000000000000000604082015260600190565b600060048663ffffffff1611611fcb575063ffffffff8516611ff5565b611fd660058761392d565b611fe190600a6138ea565b611fec90600f6137ad565b63ffffffff1690505b600c546040516331a9108f60e11b8152600481018390526001600160a01b0390911690636352211e9060240160206040518083038186803b15801561203957600080fd5b505afa925050508015612069575060408051601f3d908101601f1916820190925261206691810190612fa0565b60015b6120b75760405162461bcd60e51b81526004016108789060208082526004908201527f623a303700000000000000000000000000000000000000000000000000000000604082015260600190565b506000600d8763ffffffff16603c81106120e157634e487b7160e01b600052603260045260246000fd5b602081049091015460ff601f9092166101000a900416116121465760405162461bcd60e51b81526004016108789060208082526004908201527f623a303500000000000000000000000000000000000000000000000000000000604082015260600190565b6040516001600160e01b031960e088901b1660208201527fff0000000000000000000000000000000000000000000000000000000000000060f887811b8216602484015286811b8216602584015285811b8216602684015284901b16602782015260009060280160408051601f1981840301815291815281516020928301206000818152601190935291205490915060ff16156122275760405162461bcd60e51b81526004016108789060208082526004908201527f623a303600000000000000000000000000000000000000000000000000000000604082015260600190565b6040805160a08101825263ffffffff891680825260ff8981166020840152888116938301939093528683166060830152918516608082015290600d90603c811061228157634e487b7160e01b600052603260045260246000fd5b6020918282040191900681819054906101000a900460ff16809291906122a69061397e565b82546101009290920a60ff81810219909316918316021790915560008b815260106020908152604080832086518154888501518985015160608b015160808c015163ffffffff90951664ffffffffff1990941693909317640100000000928a16929092029190911766ffff00000000001916650100000000009189169190910266ff0000000000001916176601000000000000918816919091021767ff0000000000000019166701000000000000009190961602949094179093558582526011905220805460ff191660011790555061237f338a612719565b505050505050505050565b600b80546001600160a01b0383811673ffffffffffffffffffffffffffffffffffffffff19831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6123f4848484611cc3565b61240084848484612733565b6116215760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b6064820152608401610878565b60606012805461079f9061399b565b6060816124b657505060408051808201909152600181527f3000000000000000000000000000000000000000000000000000000000000000602082015290565b8160005b81156124e057806124ca816139d6565b91506124d99050600a836137cc565b91506124ba565b60008167ffffffffffffffff81111561250957634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015612533576020820181803683370190505b5090505b84156110ed57612548600183613916565b9150612555600a866139f1565b612560906030613795565b60f81b81838151811061258357634e487b7160e01b600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053506125bd600a866137cc565b9450612537565b60408051808201909152600080825260208201526125e383838361288b565b5092915050565b60606000826000015167ffffffffffffffff81111561261957634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015612643576020820181803683370190505b50905060006020820190506125e38185602001518660000151612937565b6001600160a01b0383166126bc576126b781600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b6126df565b816001600160a01b0316836001600160a01b0316146126df576126df83826129a8565b6001600160a01b0382166126f657610a8b81612a45565b826001600160a01b0316826001600160a01b031614610a8b57610a8b8282612b1e565b610f13828260405180602001604052806000815250612b62565b60006001600160a01b0384163b1561288057604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290612777903390899088908890600401613746565b602060405180830381600087803b15801561279157600080fd5b505af19250505080156127c1575060408051601f3d908101601f191682019092526127be91810190613129565b60015b612866573d8080156127ef576040519150601f19603f3d011682016040523d82523d6000602084013e6127f4565b606091505b50805161285e5760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b6064820152608401610878565b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490506110ed565b506001949350505050565b604080518082019091526000808252602082015260006128bd8560000151866020015186600001518760200151612be0565b6020808701805191860191909152519091506128d99082613916565b8352845160208601516128ec9190613795565b8114156128fc576000855261292e565b8351835161290a9190613795565b85518690612919908390613916565b90525083516129289082613795565b60208601525b50909392505050565b6020811061296f578151835261294e602084613795565b925061295b602083613795565b9150612968602082613916565b9050612937565b6000600161297e836020613916565b61298a90610100613823565b6129949190613916565b925184518416931916929092179092525050565b600060016129b584611180565b6129bf9190613916565b600083815260076020526040902054909150808214612a12576001600160a01b03841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b5060009182526007602090815260408084208490556001600160a01b039094168352600681528383209183525290812055565b600854600090612a5790600190613916565b60008381526009602052604081205460088054939450909284908110612a8d57634e487b7160e01b600052603260045260246000fd5b906000526020600020015490508060088381548110612abc57634e487b7160e01b600052603260045260246000fd5b6000918252602080832090910192909255828152600990915260408082208490558582528120556008805480612b0257634e487b7160e01b600052603160045260246000fd5b6001900381819060005260206000200160009055905550505050565b6000612b2983611180565b6001600160a01b039093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b612b6c8383612cf0565b612b796000848484612733565b610a8b5760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b6064820152608401610878565b60008381868511612ce65760208511612c945760006001612c02876020613916565b612c0d9060086138cb565b612c18906002613823565b612c229190613916565b8551901991508116600087612c378b8b613795565b612c419190613916565b855190915083165b828114612c8657818610612c6e57612c618b8b613795565b96505050505050506110ed565b85612c78816139d6565b965050838651169050612c49565b8596505050505050506110ed565b508383206000905b612ca68689613916565b8211612ce45785832081811415612cc357839450505050506110ed565b612cce600185613795565b9350508180612cdc906139d6565b925050612c9c565b505b611bc58787613795565b6001600160a01b038216612d465760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610878565b6000818152600260205260409020546001600160a01b031615612dab5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610878565b612db760008383612661565b6001600160a01b0382166000908152600360205260408120805460019290612de0908490613795565b9091555050600081815260026020526040808220805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b828054612e579061399b565b90600052602060002090601f016020900481019282612e795760008555612ebf565b82601f10612e9257805160ff1916838001178555612ebf565b82800160010185558215612ebf579182015b82811115612ebf578251825591602001919060010190612ea4565b50612ecb929150612ecf565b5090565b5b80821115612ecb5760008155600101612ed0565b600067ffffffffffffffff80841115612eff57612eff613a31565b604051601f8501601f19908116603f01168101908282118183101715612f2757612f27613a31565b81604052809350858152868686011115612f4057600080fd5b858560208301376000602087830101525050509392505050565b803563ffffffff81168114612f6e57600080fd5b919050565b803560ff81168114612f6e57600080fd5b600060208284031215612f95578081fd5b8135610c1681613a47565b600060208284031215612fb1578081fd5b8151610c1681613a47565b60008060408385031215612fce578081fd5b8235612fd981613a47565b91506020830135612fe981613a47565b809150509250929050565b600080600060608486031215613008578081fd5b833561301381613a47565b9250602084013561302381613a47565b929592945050506040919091013590565b60008060008060808587031215613049578081fd5b843561305481613a47565b9350602085013561306481613a47565b925060408501359150606085013567ffffffffffffffff811115613086578182fd5b8501601f81018713613096578182fd5b6130a587823560208401612ee4565b91505092959194509250565b600080604083850312156130c3578182fd5b82356130ce81613a47565b915060208301358015158114612fe9578182fd5b600080604083850312156130f4578182fd5b82356130ff81613a47565b946020939093013593505050565b60006020828403121561311e578081fd5b8135610c1681613a5c565b60006020828403121561313a578081fd5b8151610c1681613a5c565b600060208284031215613156578081fd5b813567ffffffffffffffff81111561316c578182fd5b8201601f8101841361317c578182fd5b6110ed84823560208401612ee4565b60006020828403121561319c578081fd5b5035919050565b60008060008060008060c087890312156131bb578182fd5b863595506131cb60208801612f5a565b94506131d960408801612f73565b93506131e760608801612f73565b92506131f560808801612f73565b915061320360a08801612f73565b90509295509295509295565b600080600080600060a08688031215613226578283fd5b61322f86612f5a565b945061323d60208701612f73565b935061324b60408701612f73565b925061325960608701612f73565b915061326760808701612f73565b90509295509295909350565b6000815180845261328b816020860160208601613952565b601f01601f19169290920160200192915050565b600083516132b1818460208801613952565b8351908301906132c5818360208801613952565b01949350505050565b600085516132e0818460208a01613952565b80830190507f2000000000000000000000000000000000000000000000000000000000000000808252865161331c816001850160208b01613952565b7f202800000000000000000000000000000000000000000000000000000000000060019390910192830152855161335a816003850160208a01613952565b60039201918201528351613375816004840160208801613952565b7f2900000000000000000000000000000000000000000000000000000000000000600492909101918201526005019695505050505050565b7f3c73766720786d6c6e733d22687474703a2f2f7777772e77332e6f72672f323081527f30302f737667222076696577426f783d22302030203634203634223e3c72656360208201527f742077696474683d22333222206865696768743d2233322220783d223136222060408201527f793d223136222066696c6c3d220000000000000000000000000000000000000060608201526000825161345781606d850160208701613952565b7f223e3c2f726563743e3c2f7376673e0000000000000000000000000000000000606d939091019283015250607c01919050565b7f3c73766720786d6c6e733d22687474703a2f2f7777772e77332e6f72672f323081527f30302f737667222076696577426f783d22302030203634203634223e3c64656660208201527f733e3c72616469616c4772616469656e742069643d226772616469656e74223e60408201527f3c73746f702073746f702d6f7061636974793d2231222073746f702d636f6c6f60608201527f723d22000000000000000000000000000000000000000000000000000000000060808201526000835161355b816083850160208801613952565b7f22206f66667365743d223022202f3e3c73746f702073746f702d6f70616369746083918401918201527f793d2230222073746f702d636f6c6f723d22000000000000000000000000000060a382015283516135be8160b5840160208801613952565b7f22206f66667365743d22302e3922202f3e3c2f72616469616c4772616469656e60b592909101918201527f743e3c2f646566733e3c636972636c652063783d223332222063793d2233322260d58201527f20723d223332222066696c6c3d2275726c28236772616469656e7429223e3c2f60f58201527f636972636c653e3c2f7376673e0000000000000000000000000000000000000061011582015261012201949350505050565b7f3c73766720786d6c6e733d22687474703a2f2f7777772e77332e6f72672f323081527f30302f737667222076696577426f783d22302030203634203634223e3c706f6c60208201527f79676f6e20706f696e74733d2231362c34382033322c31362034382c3438222060408201527f66696c6c3d220000000000000000000000000000000000000000000000000000606082015260008251613712816066850160208701613952565b7f223e3c2f706f6c79676f6e3e3c2f7376673e00000000000000000000000000006066939091019283015250607801919050565b60006001600160a01b038087168352808616602084015250836040830152608060608301526137786080830184613273565b9695505050505050565b602081526000610c166020830184613273565b600082198211156137a8576137a8613a05565b500190565b600063ffffffff8083168185168083038211156132c5576132c5613a05565b6000826137db576137db613a1b565b500490565b600181815b8085111561381b57816000190482111561380157613801613a05565b8085161561380e57918102915b93841c93908002906137e5565b509250929050565b6000610c1683836000826138395750600161078a565b816138465750600061078a565b816001811461385c576002811461386657613882565b600191505061078a565b60ff84111561387757613877613a05565b50506001821b61078a565b5060208310610133831016604e8410600b84101617156138a5575081810a61078a565b6138af83836137e0565b80600019048211156138c3576138c3613a05565b029392505050565b60008160001904831182151516156138e5576138e5613a05565b500290565b600063ffffffff8083168185168183048111821515161561390d5761390d613a05565b02949350505050565b60008282101561392857613928613a05565b500390565b600063ffffffff8381169083168181101561394a5761394a613a05565b039392505050565b60005b8381101561396d578181015183820152602001613955565b838111156116215750506000910152565b600060ff82168061399157613991613a05565b6000190192915050565b600181811c908216806139af57607f821691505b602082108114156139d057634e487b7160e01b600052602260045260246000fd5b50919050565b60006000198214156139ea576139ea613a05565b5060010190565b600082613a0057613a00613a1b565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b03811681146119d757600080fd5b6001600160e01b0319811681146119d757600080fdfe766f69642c666f726765642c737472616e6465642c61626f7265616c2c73747261746f737068657269632c67616c61637469632c656e6c69676874656e65642c626c6973746572696e672c7375626d6572676564234646464646462c233743374337432c233030303030302c233030443038312c233936314646462c233042434446452c234632393830302c234645303330322c23343930304646234343434343432c233743374337432c233030303030302c233030443038312c234143384346462c233936314646462c234632393830302c234645303330322c233938303130302c233042434446452c233439303046466469616d6f6e642c737465656c2c6f6273696469616e2c656d6572616c642c6c6176656e6465722071756172747a2c616d6574687973742c616d6265722c727562792c6761726e65742c746f70617a2c7361707068697265234646464646462c233746374637462c233030303030302c233836464644312c233837453846462c234531353546462c234646454139422c234646353136312c2336353737464677686974652c677261792c626c61636b2c677265656e2c707572706c652c736b792c6f72616e67652c7265642c626c7565a2646970667358221220274d7cac80543f4d9271b02f4b62f19360d1e67c1fa13e6216402302f705fafa64736f6c63430008040033

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

000000000000000000000000d6c1693653b1145f01b4052c8a3fb5b1a13718dd

-----Decoded View---------------
Arg [0] : hyalikoContractAddress (address): 0xd6c1693653B1145F01B4052C8a3FB5B1A13718DD

-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 000000000000000000000000d6c1693653b1145f01b4052c8a3fb5b1a13718dd


Loading...
Loading
Loading...
Loading
[ Download: CSV Export  ]
[ Download: CSV Export  ]

A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.