ETH Price: $3,417.86 (+4.10%)

Token

Tom Sachs Rockets (TSR)
 

Overview

Max Total Supply

909 TSR

Holders

513

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Balance
1 TSR
0xc982301321b1e958f2b1783d46fb919956507b64
Loading...
Loading
Loading...
Loading
Loading...
Loading

OVERVIEW

Tom Sachs: Rocket Factory is a trans-dimensional manufacturing plant. Its Rocket Factory uses NFTs to build new NFTs.

# Exchange Pair Price  24H Volume % Volume

Contract Source Code Verified (Exact Match)

Contract Name:
RocketFactory

Compiler Version
v0.8.6+commit.11564f7e

Optimization Enabled:
Yes with 2000 runs

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

import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "./RocketComponent.sol";
import {Bytes32Utils, UintUtils} from "./Utils.sol";

contract RocketFactory is ERC721, Ownable {
    using UintUtils for uint256;
    using Bytes32Utils for bytes32;
    using StringUtils for string;

    event LaunchPaid(address indexed from, uint256 indexed tokenId);

    modifier onlyOwnerOrAdmin() {
        require(
            owner() == _msgSender() || adminAddress == _msgSender(),
            "Ownable: caller is not the owner nor the admin"
        );

        _;
    }

    struct Rocket {
        string gpsCoordinates;
        string recoveryStatus;
        string physicalImage;
        string launchVideo;
        uint256 nose;
        uint256 body;
        uint256 tail;
        uint256 assemblyDate;
        uint256 launchDate;
    }

    struct RocketView {
        uint256 tokenId;
        string name;
        string serialNumber;
        string gpsCoordinates;
        string recoveryStatus;
        string physicalImage;
        string launchVideo;
        string rocketType;
        string imageLink;
        uint256 assemblyDate;
        uint256 launchDate;
        uint256 stickers;
        bool payloadEligible;
        RocketComponent.ComponentView nose;
        RocketComponent.ComponentView body;
        RocketComponent.ComponentView tail;
    }

    uint256 private launchPrice;

    uint256 private assemblyStartDate;

    string private baseURI;

    string private ipfsBaseURI;

    string private ipfsRocketFolder;

    address private rocketComponentContract;

    address private adminAddress;

    bytes32[] private rocketNames;

    Rocket[] private rockets;

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier tokenExists(uint256 _tokenId) {
        require(
            _exists(_tokenId),
            "ERC721: operator query for nonexistent token"
        );
        _;
    }

    constructor() ERC721("Tom Sachs Rockets", "TSR") {}

    /**
     * @dev Sets the rocket component contract address
     */
    function setRocketComponentContract(address _address)
        external
        onlyOwnerOrAdmin
    {
        rocketComponentContract = _address;
    }

    /**
     * @dev Sets the base URI for IPFS.
     */
    function setIpfsBaseURI(string memory _ipfsBaseURI)
        external
        onlyOwnerOrAdmin
    {
        ipfsBaseURI = _ipfsBaseURI;
    }

    /**
     * @dev Sets the folder containing the rocket images in IPFS
     */
    function setIpfsRocketFolder(string memory _ipfsRocketFolder)
        external
        onlyOwnerOrAdmin
    {
        ipfsRocketFolder = _ipfsRocketFolder;
    }

    /**
     * @dev Sets the base URI for the API that provides the NFT data.
     */
    function setBaseTokenURI(string memory _uri) external onlyOwnerOrAdmin {
        baseURI = _uri;
    }

    /**
     * @dev Sets the metadata for a rocket
     */
    function setRocketMetadata(
        uint256 tokenId,
        string memory gpsCoordinates,
        string memory recoveryStatus,
        string memory physicalImage,
        string memory launchVideo,
        uint256 launchDate
    ) external onlyOwnerOrAdmin tokenExists(tokenId) {
        Rocket storage rocket = rockets[tokenId];

        rocket.gpsCoordinates = gpsCoordinates;
        rocket.recoveryStatus = recoveryStatus;
        rocket.physicalImage = physicalImage;
        rocket.launchVideo = launchVideo;
        rocket.launchDate = launchDate;
    }

    /**
     * @dev sets the GPS Coordinates
     */
    function setRocketGPSCoordinates(
        uint256 tokenId,
        string memory gpsCoordinates
    ) external onlyOwnerOrAdmin tokenExists(tokenId) {
        rockets[tokenId].gpsCoordinates = gpsCoordinates;
    }

    /**
     * @dev sets the recovery status
     */
    function setRecoveryStatus(uint256 tokenId, string memory recoveryStatus)
        external
        onlyOwnerOrAdmin
        tokenExists(tokenId)
    {
        rockets[tokenId].recoveryStatus = recoveryStatus;
    }

    /**
     * @dev sets the physical image
     */
    function setPhysicalImage(uint256 tokenId, string memory physicalImage)
        external
        onlyOwnerOrAdmin
        tokenExists(tokenId)
    {
        rockets[tokenId].physicalImage = physicalImage;
    }

    /**
     * @dev sets the launch video
     */
    function setLaunchVideo(uint256 tokenId, string memory launchVideo)
        external
        onlyOwnerOrAdmin
        tokenExists(tokenId)
    {
        rockets[tokenId].launchVideo = launchVideo;
    }

    /**
     * @dev sets the launch date
     */
    function setLaunchDate(uint256 tokenId, uint256 launchDate)
        external
        onlyOwnerOrAdmin
        tokenExists(tokenId)
    {
        rockets[tokenId].launchDate = launchDate;
    }

    /**
     * @dev Sets the price that needs to be payed to launch a rocket
     */
    function setLaunchPrice(uint256 _launchPrice) external onlyOwnerOrAdmin {
        launchPrice = _launchPrice;
    }

    /**
     * @dev Allows to withdraw the Ether in the contract
     */
    function withdraw() external onlyOwnerOrAdmin {
        payable(msg.sender).transfer(address(this).balance);
    }

    /**
     * @dev Sets the admin address for the contract
     */
    function setAdminAddress(address _adminAddress) external onlyOwnerOrAdmin {
        adminAddress = _adminAddress;
    }

    /**
     * @dev Adds names for rockets
     */
    function addNames(bytes32[] memory _rocketNames) external onlyOwnerOrAdmin {
        for (uint256 i; i < _rocketNames.length; i++) {
            rocketNames.push(_rocketNames[i]);
        }
    }

    /**
     * @dev Sets the date when users can start to assembly rockets
     */
    function setAssemblyStartDate(uint256 _assemblyStartDate)
        external
        onlyOwnerOrAdmin
    {
        assemblyStartDate = _assemblyStartDate;
    }

    /**
     * @dev allows admin and owner to mint rockets even before public assembly date starts
     */
    function devMint(
        uint256 noseId,
        uint256 bodyId,
        uint256 tailId
    ) external onlyOwnerOrAdmin {
        assemble(noseId, bodyId, tailId);
    }

    /**
     * @dev mints a new Rocket using the given parts
     */
    function mint(
        uint256 noseId,
        uint256 bodyId,
        uint256 tailId
    ) external payable {
        require(
            assemblyStartDate != 0 && block.timestamp > assemblyStartDate,
            "You are too early"
        );

        assemble(noseId, bodyId, tailId);
    }

    function payForLaunch(uint256 _tokenId) external payable {
        require(
            _exists(_tokenId),
            "ERC721: operator query for nonexistent token"
        );

        require(
            msg.value >= launchPrice,
            "Not enough Ether to pay for the launch"
        );

        emit LaunchPaid(msg.sender, _tokenId);
    }

    /**
     * @dev Returns all the metadata of a given Rocket.
     */
    function retrieve(uint256 _tokenId)
        external
        view
        returns (RocketView memory)
    {
        require(
            _exists(_tokenId),
            "ERC721: operator query for nonexistent token"
        );

        RocketComponent rocketComponent = RocketComponent(
            rocketComponentContract
        );

        Rocket memory rocket = rockets[_tokenId];

        RocketComponent.ComponentView memory nose = rocketComponent.retrieve(
            rockets[_tokenId].nose
        );
        RocketComponent.ComponentView memory body = rocketComponent.retrieve(
            rockets[_tokenId].body
        );
        RocketComponent.ComponentView memory tail = rocketComponent.retrieve(
            rockets[_tokenId].tail
        );

        bool perfectRocket = nose.brand.compareStrings(body.brand) &&
            body.brand.compareStrings(tail.brand);

        uint256 stickers;

        string memory nosePath = nose.brand;
        if (nose.hasSticker) {
            nosePath = string(
                abi.encodePacked(nosePath, "-", nose.sticker, "-sticker")
            );
            stickers++;
        }

        string memory bodyPath = body.brand;
        if (body.hasSticker) {
            bodyPath = string(
                abi.encodePacked(bodyPath, "-", body.sticker, "-sticker")
            );
            stickers++;
        }

        string memory tailPath = tail.brand;
        if (tail.hasSticker) {
            tailPath = string(
                abi.encodePacked(tailPath, "-", tail.sticker, "-sticker")
            );
            stickers++;
        }

        return
            RocketView(
                _tokenId,
                getRocketName(_tokenId),
                buildSerialNumber(_tokenId),
                rocket.gpsCoordinates,
                rocket.recoveryStatus,
                rocket.physicalImage,
                rocket.launchVideo,
                perfectRocket ? "perfect" : "franken",
                string(
                    abi.encodePacked(
                        ipfsBaseURI,
                        ipfsRocketFolder,
                        string(
                            abi.encodePacked(
                                nosePath,
                                "-",
                                bodyPath,
                                "-",
                                tailPath
                            )
                        ).toSlug(),
                        ".png"
                    )
                ),
                rocket.assemblyDate,
                rocket.launchDate,
                stickers,
                _tokenId % 5 == 0, // Every fifth rocket is payload eligible
                nose,
                body,
                tail
            );
    }

    /**
     * @dev Returns the base URI for the tokens API.
     */
    function baseTokenURI() external view returns (string memory) {
        return baseURI;
    }

    /**
     * @dev Returns the base URI for IPFS.
     */
    function getIpfsBaseURI() external view returns (string memory) {
        return ipfsBaseURI;
    }

    /**
     * @dev Returns folder name for the rocket images in IPFS.
     */
    function getIpfsRocketFolder() external view returns (string memory) {
        return ipfsRocketFolder;
    }

    /**
     * @dev Returns the total rocket supply
     */
    function totalSupply() external view virtual returns (uint256) {
        return rockets.length;
    }

    /**
     * @dev Returns the launch price
     */
    function getLaunchPrice() external view returns (uint256) {
        return launchPrice;
    }

    // Private and Internal functions

    /**
     * @dev See {ERC721}.
     */
    function _baseURI() internal view virtual override returns (string memory) {
        return baseURI;
    }

    function buildSerialNumber(uint256 _tokenId)
        internal
        view
        returns (string memory)
    {
        string memory serialNumber = "2021.192.";
        string memory tokenIdStr = _tokenId.uint2str();

        if (_tokenId >= 100) {
            serialNumber = string(abi.encodePacked(serialNumber, tokenIdStr));
        } else if (_tokenId >= 10) {
            serialNumber = string(
                abi.encodePacked(serialNumber, "0", tokenIdStr)
            );
        } else {
            serialNumber = string(
                abi.encodePacked(serialNumber, "00", tokenIdStr)
            );
        }

        return serialNumber;
    }

    /**
     * @dev returns the name of a rocket for its tokenId
     */
    function getRocketName(uint256 tokenId)
        private
        view
        returns (string memory)
    {
        return rocketNames[tokenId].bytes32ToString();
    }

    function assemble(
        uint256 noseId,
        uint256 bodyId,
        uint256 tailId
    ) private {
        RocketComponent rocketComponent = RocketComponent(
            rocketComponentContract
        );
        rocketComponent.burn(msg.sender, noseId, bodyId, tailId);

        rockets.push(
            Rocket("", "", "", "", noseId, bodyId, tailId, block.timestamp, 0)
        );

        _mint(msg.sender, rockets.length - 1);
    }
}

File 2 of 14 : RocketComponent.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/token/ERC721/IERC721.sol";

import {StringUtils, UintUtils} from "./Utils.sol";

contract RocketComponent is ERC721, Ownable {
    using UintUtils for uint256;
    using StringUtils for string;

    modifier onlyOwnerOrAdmin() {
        require(
            owner() == _msgSender() || adminAddress == _msgSender(),
            "Ownable: caller is not the owner nor the admin"
        );

        _;
    }

    struct ComponentModel {
        string brand;
        uint256 from;
        uint256 to;
    }

    struct ComponentView {
        uint256 tokenId;
        string componentType;
        string brand;
        string imageLink;
        bool hasSticker;
        string sticker;
        string serialNumber;
        uint256 edition;
        uint256 total;
    }

    struct ComponentSticker {
        uint256 tokenId;
        uint256 stickerId;
    }

    uint256 private supply;

    uint256 private claimPrice;

    uint256 private earlyAccessStartDate;

    uint256 private claimStartDate;

    uint16 private maxClaimsPerAddress;

    string private baseURI;

    string private ipfsBaseURI;

    address private rocketFactoryContract;

    address private testFlightCrewContract;

    address private adminAddress;

    uint16[] private availableComponents;

    string[] private stickers;

    ComponentModel[] private componentModels;

    mapping(uint256 => bool) private burnedTokens;

    // tokenId -> stickerId
    mapping(uint256 => uint256) private componentStickers;

    mapping(address => uint16) private claimedComponentsPerAddress;

    /**
     * @dev Throws if called by any account other than the Rocket Contract.
     */
    modifier onlyRocketFactory() {
        require(
            msg.sender == rocketFactoryContract,
            "Ownable: caller is not the rocket factory contract"
        );
        _;
    }

    constructor() ERC721("Tom Sachs Rocket Components", "TSRC") {
        // since 0 is the default value for unset in Solidity, create the first sticker as "none"
        // to allow to use the componentStickers map
        stickers.push("none");
    }

    // ONLY OWNER functions

    /**
     * @dev Sets the claim price.
     */
    function setClaimPrice(uint256 _claimPrice) external onlyOwnerOrAdmin {
        claimPrice = _claimPrice;
    }

    /**
     * @dev Allows to withdraw the Ether in the contract.
     */
    function withdraw() external onlyOwnerOrAdmin {
        payable(msg.sender).transfer(address(this).balance);
    }

    /**
     * @dev Sets the data for the components
     */
    function addComponents(ComponentModel[] memory _components)
        external
        onlyOwnerOrAdmin
    {
        for (uint256 i; i < _components.length; i++) {
            componentModels.push(_components[i]);
        }
    }

    /**
     * @dev Adds tokenIds to the list of tokens that can be claimed by
     * users using the claim function.
     */
    function addAvailableComponents(uint16[] memory _availableComponents)
        external
        onlyOwnerOrAdmin
    {
        for (uint256 i; i < _availableComponents.length; i++) {
            availableComponents.push(_availableComponents[i]);
        }
    }

    /**
     * @dev Removes a tokenId from the list of tokens that can be claimed by
     * users using the claim function.
     */
    function removeFromAvailableComponents(uint16 tokenId)
        external
        onlyOwnerOrAdmin
    {
        for (uint256 i; i < availableComponents.length; i++) {
            if (availableComponents[i] != tokenId) {
                continue;
            }

            availableComponents[i] = availableComponents[
                availableComponents.length - 1
            ];
            availableComponents.pop();

            break;
        }
    }

    /**
     * @dev Removes all tokenIds from the list of tokens that can be claimed by
     * users using the claim function.
     */
    function resetAvailableComponents() external onlyOwnerOrAdmin {
        delete availableComponents;
    }

    /**
     * @dev Returns a list with all the available components that can be claimed by
     * users using the claim function.
     */
    function getAvailableComponents()
        external
        view
        onlyOwnerOrAdmin
        returns (uint16[] memory)
    {
        return availableComponents;
    }

    /**
     * @dev Returns whether or not a tokenId is in the available compoenents list.
     */
    function isInAvailableComponents(uint256 tokenId)
        external
        view
        onlyOwnerOrAdmin
        returns (bool)
    {
        for (uint256 i; i < availableComponents.length; i++) {
            if (availableComponents[i] == tokenId) {
                return true;
            }
        }

        return false;
    }

    /**
     * @dev Sets the base URI for IPFS.
     */
    function setIpfsBaseURI(string memory _ipfsBaseURI)
        external
        onlyOwnerOrAdmin
    {
        ipfsBaseURI = _ipfsBaseURI;
    }

    /**
     * @dev Sets the base URI for the API that provides the NFT data.
     */
    function setBaseTokenURI(string memory _uri) external onlyOwnerOrAdmin {
        baseURI = _uri;
    }

    /**
     * @dev Sets the address of the Rocket Factory contract.
     */
    function setRocketFactoryContract(address _address)
        external
        onlyOwnerOrAdmin
    {
        rocketFactoryContract = _address;
    }

    /**
     * @dev Sets the address of the Test Flight Crew Contract.
     */
    function setTestFlightCrewContract(address _address)
        external
        onlyOwnerOrAdmin
    {
        testFlightCrewContract = _address;
    }

    /**
     * @dev Returns the address of the Rocket Factory contract.
     */
    function getRocketFactoryContract()
        external
        view
        onlyOwnerOrAdmin
        returns (address)
    {
        return rocketFactoryContract;
    }

    /**
     * @dev Returns the address of the Test Flight Crew Contract.
     */
    function getTestFlightCrewContract()
        external
        view
        onlyOwnerOrAdmin
        returns (address)
    {
        return testFlightCrewContract;
    }

    /**
     * @dev Onwer only claim function that allows to mint tokens and send them to a given address.
     */
    function ownerClaim(uint256[] memory tokenIds, address to)
        external
        onlyOwnerOrAdmin
    {
        for (uint256 i; i < tokenIds.length; i++) {
            mint(to, tokenIds[i]);
        }
    }

    /**
     * @dev Adds new stickers into the contract.
     */
    function addStickers(string[] memory _stickers) external onlyOwnerOrAdmin {
        for (uint256 i; i < _stickers.length; i++) {
            stickers.push(_stickers[i]);
        }
    }

    /**
     * @dev Adds an sticker to a compoenent.
     */
    function addComponentStickers(ComponentSticker[] memory _componentStickers)
        external
        onlyOwnerOrAdmin
    {
        for (uint256 i; i < _componentStickers.length; i++) {
            componentStickers[
                _componentStickers[i].tokenId
            ] = _componentStickers[i].stickerId;
        }
    }

    /**
     * @dev Sets the start datetime to allow claims.
     */
    function setClaimStartDate(uint256 _claimStartDate)
        external
        onlyOwnerOrAdmin
    {
        claimStartDate = _claimStartDate;
    }

    /**
     * @dev Sets the start datetime to allow early access claims.
     */
    function setEarlyAccessStartDate(uint256 _earlyAccessStartDate)
        external
        onlyOwnerOrAdmin
    {
        earlyAccessStartDate = _earlyAccessStartDate;
    }

    /**
     * @dev Sets the maximum amount of components that an address can claim
     */
    function setMaxClaimsPerAddress(uint16 _maxClaimsPerAddress)
        external
        onlyOwnerOrAdmin
    {
        maxClaimsPerAddress = _maxClaimsPerAddress;
    }

    /**
     * @dev Sets the admin address for the contract
     */
    function setAdminAddress(address _adminAddress) external onlyOwnerOrAdmin {
        adminAddress = _adminAddress;
    }

    // END ONLY OWNER functions

    // ONLY Rocket Factory functions

    /**
     * @dev Burns rocket components when a rocket is minted. Only can be called by the Rocket Factory contract.
     */
    function burn(
        address _owner,
        uint256 _noseId,
        uint256 _bodyId,
        uint256 _tailId
    ) external onlyRocketFactory {
        require(
            ownerOf(_noseId) == _owner &&
                ownerOf(_bodyId) == _owner &&
                ownerOf(_tailId) == _owner,
            "Invalid owner for given components"
        );

        require(
            _noseId % 3 == 0 && _bodyId % 3 == 1 && _tailId % 3 == 2,
            "Invalid components given"
        );

        _burn(_noseId);
        _burn(_bodyId);
        _burn(_tailId);

        burnedTokens[_noseId] = true;
        burnedTokens[_bodyId] = true;
        burnedTokens[_tailId] = true;

        supply -= 3;
    }

    // END ONLY Rocket Factory functions

    /**
     * @dev Allows to randomly claim an available Component.
     */
    function claim(uint16 amount) external payable {
        require(amount > 0, "At least one component should be claimed");

        require(
            availableComponents.length > 0,
            "No components left to be claimed"
        );

        IERC721 token = IERC721(testFlightCrewContract);
        require(
            (claimStartDate != 0 && claimStartDate <= block.timestamp) ||
                (earlyAccessStartDate <= block.timestamp &&
                    token.balanceOf(msg.sender) > 0),
            "It is not time yet to start claiming"
        );

        require(
            claimedComponentsPerAddress[msg.sender] + amount <=
                maxClaimsPerAddress,
            "You cannot claim more components"
        );

        require(
            msg.sender == tx.origin,
            "Claim can only be called from a wallet"
        );

        if (amount > availableComponents.length) {
            amount = uint16(availableComponents.length);
        }

        uint256 totalClaimPrice = claimPrice * amount;

        require(msg.value >= totalClaimPrice, "Insufficient Ether to claim");

        if (msg.value > totalClaimPrice) {
            payable(msg.sender).transfer(msg.value - totalClaimPrice);
        }

        claimedComponentsPerAddress[msg.sender] += amount;

        for (uint256 i; i < amount; i++) {
            uint256 random = _getRandomNumber(availableComponents.length);
            uint256 tokenId = uint256(availableComponents[random]);

            availableComponents[random] = availableComponents[
                availableComponents.length - 1
            ];
            availableComponents.pop();

            mint(msg.sender, tokenId);
        }
    }

    /**
     * @dev Returns all the metadata of a given Component.
     */
    function retrieve(uint256 _tokenId)
        external
        view
        returns (ComponentView memory)
    {
        for (uint256 i; i < componentModels.length; i++) {
            if (
                _tokenId < componentModels[i].from ||
                _tokenId > componentModels[i].to
            ) {
                continue;
            }

            string memory componentType = _getComponentType(_tokenId);

            (uint256 total, uint256 edition) = _totalComponentEditions(
                _tokenId,
                i
            );

            bool hasSticker;
            string memory stickerName;
            string memory stickerComponentPath;

            if (componentStickers[_tokenId] != 0) {
                hasSticker = true;
                stickerName = stickers[componentStickers[_tokenId]];
                stickerComponentPath = string(
                    abi.encodePacked("-", stickerName, "-sticker")
                );
            }

            string memory serialNumber = "2021.191.";
            string memory tokenIdStr = _tokenId.uint2str();
            if (_tokenId >= 1000) {
                serialNumber = string(
                    abi.encodePacked(serialNumber, tokenIdStr)
                );
            } else if (_tokenId >= 100) {
                serialNumber = string(
                    abi.encodePacked(serialNumber, "0", tokenIdStr)
                );
            } else if (_tokenId >= 10) {
                serialNumber = string(
                    abi.encodePacked(serialNumber, "00", tokenIdStr)
                );
            } else {
                serialNumber = string(
                    abi.encodePacked(serialNumber, "000", tokenIdStr)
                );
            }

            return
                ComponentView(
                    _tokenId,
                    componentType,
                    componentModels[i].brand,
                    string(
                        abi.encodePacked(
                            ipfsBaseURI,
                            componentModels[i].brand.toSlug(),
                            "-",
                            componentType,
                            stickerComponentPath.toSlug(),
                            ".png"
                        )
                    ),
                    hasSticker,
                    stickerName,
                    serialNumber,
                    edition,
                    total
                );
        }

        revert("Component does not exist");
    }

    /**
     * @dev Returns the claim price.
     */
    function getClaimPrice() external view returns (uint256) {
        return claimPrice;
    }

    /**
     * @dev Returns how many components are available to be claimed.
     */
    function getAvailableComponentsCount() external view returns (uint256) {
        return availableComponents.length;
    }

    /**
     * @dev Returns the base URI for the tokens API.
     */
    function baseTokenURI() external view returns (string memory) {
        return baseURI;
    }

    /**
     * @dev Returns the base URI for IPFS.
     */
    function getIpfsBaseURI() external view returns (string memory) {
        return ipfsBaseURI;
    }

    /**
     * @dev Returns a list of all the existing stickers.
     */
    function getStickers() external view returns (string[] memory) {
        return stickers;
    }

    /**
     * @dev Returns an sticker by its id.
     */
    function getSticker(uint256 stickerId)
        external
        view
        returns (string memory)
    {
        return stickers[stickerId];
    }

    /**
     * @dev Returns the total rocket supply
     */
    function totalSupply() external view virtual returns (uint256) {
        return supply;
    }

    /**
     * @dev Returns the total amount of claimed components for the given address
     */
    function getClaimedComponentsPerAddress(address _address)
        external
        view
        returns (uint16)
    {
        return claimedComponentsPerAddress[_address];
    }

    // Private and Internal functions

    /**
     * @dev See {ERC721}.
     */
    function _baseURI() internal view virtual override returns (string memory) {
        return baseURI;
    }

    /**
     * @dev Returns if the given Component is a nose, body or tail.
     */
    function _getComponentType(uint256 _tokenId)
        private
        pure
        returns (string memory)
    {
        uint256 modulo = _tokenId % 3;
        if (modulo == 0) {
            return "nose";
        }

        if (modulo == 1) {
            return "body";
        }

        return "tail";
    }

    /**
     * @dev Checks that the token hasn't been burned and that the token exists before minting it.
     * See {ERC721}.
     */
    function mint(address to, uint256 tokenId) private {
        require(burnedTokens[tokenId] == false, "Token was already burned");

        require(
            tokenId <= componentModels[componentModels.length - 1].to,
            "TokenId is out of bounds"
        );

        supply++;

        _mint(to, tokenId);
    }

    /**
     * @dev Returns the edition number and total of editions for a given tokenId.
     */
    function _totalComponentEditions(uint256 tokenId, uint256 modelId)
        private
        view
        returns (uint256, uint256)
    {
        uint256 edition;
        uint256 total;

        for (
            uint256 i = componentModels[modelId].from;
            i <= componentModels[modelId].to;
            i++
        ) {
            if (i % 3 == tokenId % 3) {
                total++;
            }

            if (tokenId == i) {
                edition = total;
            }
        }

        return (total, edition);
    }

    /**
     * @dev Generates a pseudo-random number.
     */
    function _getRandomNumber(uint256 _upper) private view returns (uint256) {
        uint256 random = uint256(
            keccak256(
                abi.encodePacked(
                    availableComponents.length,
                    blockhash(block.number - 1),
                    block.coinbase,
                    block.difficulty,
                    msg.sender
                )
            )
        );

        return random % _upper;
    }
}

File 3 of 14 : Utils.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

library StringUtils {
    /**
     * @dev Checks if the given strings are equal.
     */
    function compareStrings(string memory a, string memory b)
        internal
        pure
        returns (bool)
    {
        return (keccak256(abi.encodePacked((a))) ==
            keccak256(abi.encodePacked((b))));
    }

    /**
     * @dev Converts a given string to its slug representation. replacing spaces with hyphens and lowercasing the given string.
     */
    function toSlug(string memory _base) internal pure returns (string memory) {
        bytes memory _baseBytes = bytes(_base);
        uint256 removedChars;

        for (uint256 i = 0; i < _baseBytes.length; i++) {
            _baseBytes[i] = _lower(_baseBytes[i]);

            // replace spaces with hyphens
            if (_baseBytes[i] == 0x20 || _baseBytes[i] == "'") {
                _baseBytes[i] = 0x2D;
            } else if (_baseBytes[i] == 0xC3) {
                // Special Character
                _baseBytes[i] = "";
                removedChars++;
            } else if (_baseBytes[i] == 0xA8) {
                // è to e
                _baseBytes[i] = "e";
            }
        }

        if (removedChars == 0) {
            return string(_baseBytes);
        }

        bytes memory _modifiedBytes = new bytes(
            _baseBytes.length - removedChars
        );
        uint256 index;
        for (uint256 i; i < _baseBytes.length; i++) {
            if (_baseBytes[i] == "") {
                continue;
            }

            _modifiedBytes[index] = _baseBytes[i];
            index++;
        }

        return string(_modifiedBytes);
    }

    /**
     * @dev Converts a given character to lowercase, if it's between the A-Z range.
     */
    function _lower(bytes1 _b1) private pure returns (bytes1) {
        if (_b1 >= 0x41 && _b1 <= 0x5A) {
            return bytes1(uint8(_b1) + 32);
        }

        return _b1;
    }
}

library UintUtils {
    /**
     * @dev converts and uint256 to string
     */
    function uint2str(uint256 _i)
        internal
        pure
        returns (string memory _uintAsString)
    {
        if (_i == 0) {
            return "0";
        }

        uint256 j = _i;
        uint256 len;

        while (j != 0) {
            len++;
            j /= 10;
        }

        bytes memory bstr = new bytes(len);
        uint256 k = len;

        while (_i != 0) {
            k = k - 1;
            uint8 temp = (48 + uint8(_i - (_i / 10) * 10));
            bytes1 b1 = bytes1(temp);
            bstr[k] = b1;
            _i /= 10;
        }

        return string(bstr);
    }
}

library Bytes32Utils {
    function bytes32ToString(bytes32 _bytes32)
        internal
        pure
        returns (string memory)
    {
        uint8 i = 0;
        while (i < 32 && _bytes32[i] != 0) {
            i++;
        }
        bytes memory bytesArray = new bytes(i);
        for (i = 0; i < 32 && _bytes32[i] != 0; i++) {
            bytesArray[i] = _bytes32[i];
        }
        return string(bytesArray);
    }
}

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 () {
        address msgSender = _msgSender();
        _owner = msgSender;
        emit OwnershipTransferred(address(0), 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 {
        emit OwnershipTransferred(_owner, address(0));
        _owner = 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");
        emit OwnershipTransferred(_owner, newOwner);
        _owner = 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 "./extensions/IERC721Enumerable.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}. 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 || ERC721.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 || ERC721.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(to).onERC721Received.selector;
            } catch (bytes memory reason) {
                if (reason.length == 0) {
                    revert("ERC721: transfer to non ERC721Receiver implementer");
                } else {
                    // solhint-disable-next-line no-inline-assembly
                    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` 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 { }
}

File 6 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 7 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 8 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 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;
        // solhint-disable-next-line no-inline-assembly
        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");

        // solhint-disable-next-line avoid-low-level-calls, avoid-call-value
        (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");

        // solhint-disable-next-line avoid-low-level-calls
        (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");

        // solhint-disable-next-line avoid-low-level-calls
        (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");

        // solhint-disable-next-line avoid-low-level-calls
        (bool success, bytes memory returndata) = target.delegatecall(data);
        return _verifyCallResult(success, returndata, errorMessage);
    }

    function _verifyCallResult(bool success, bytes memory returndata, string memory errorMessage) private 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

                // solhint-disable-next-line no-inline-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) {
        this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691
        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 alphabet = "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] = alphabet[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
{
  "remappings": [],
  "optimizer": {
    "enabled": true,
    "runs": 2000
  },
  "evmVersion": "berlin",
  "libraries": {},
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "abi"
      ]
    }
  }
}

Contract Security Audit

Contract ABI

[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"LaunchPaid","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"bytes32[]","name":"_rocketNames","type":"bytes32[]"}],"name":"addNames","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseTokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"noseId","type":"uint256"},{"internalType":"uint256","name":"bodyId","type":"uint256"},{"internalType":"uint256","name":"tailId","type":"uint256"}],"name":"devMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getIpfsBaseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getIpfsRocketFolder","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getLaunchPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":"uint256","name":"noseId","type":"uint256"},{"internalType":"uint256","name":"bodyId","type":"uint256"},{"internalType":"uint256","name":"tailId","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","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":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"payForLaunch","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"retrieve","outputs":[{"components":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"serialNumber","type":"string"},{"internalType":"string","name":"gpsCoordinates","type":"string"},{"internalType":"string","name":"recoveryStatus","type":"string"},{"internalType":"string","name":"physicalImage","type":"string"},{"internalType":"string","name":"launchVideo","type":"string"},{"internalType":"string","name":"rocketType","type":"string"},{"internalType":"string","name":"imageLink","type":"string"},{"internalType":"uint256","name":"assemblyDate","type":"uint256"},{"internalType":"uint256","name":"launchDate","type":"uint256"},{"internalType":"uint256","name":"stickers","type":"uint256"},{"internalType":"bool","name":"payloadEligible","type":"bool"},{"components":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"string","name":"componentType","type":"string"},{"internalType":"string","name":"brand","type":"string"},{"internalType":"string","name":"imageLink","type":"string"},{"internalType":"bool","name":"hasSticker","type":"bool"},{"internalType":"string","name":"sticker","type":"string"},{"internalType":"string","name":"serialNumber","type":"string"},{"internalType":"uint256","name":"edition","type":"uint256"},{"internalType":"uint256","name":"total","type":"uint256"}],"internalType":"struct RocketComponent.ComponentView","name":"nose","type":"tuple"},{"components":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"string","name":"componentType","type":"string"},{"internalType":"string","name":"brand","type":"string"},{"internalType":"string","name":"imageLink","type":"string"},{"internalType":"bool","name":"hasSticker","type":"bool"},{"internalType":"string","name":"sticker","type":"string"},{"internalType":"string","name":"serialNumber","type":"string"},{"internalType":"uint256","name":"edition","type":"uint256"},{"internalType":"uint256","name":"total","type":"uint256"}],"internalType":"struct RocketComponent.ComponentView","name":"body","type":"tuple"},{"components":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"string","name":"componentType","type":"string"},{"internalType":"string","name":"brand","type":"string"},{"internalType":"string","name":"imageLink","type":"string"},{"internalType":"bool","name":"hasSticker","type":"bool"},{"internalType":"string","name":"sticker","type":"string"},{"internalType":"string","name":"serialNumber","type":"string"},{"internalType":"uint256","name":"edition","type":"uint256"},{"internalType":"uint256","name":"total","type":"uint256"}],"internalType":"struct RocketComponent.ComponentView","name":"tail","type":"tuple"}],"internalType":"struct RocketFactory.RocketView","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_adminAddress","type":"address"}],"name":"setAdminAddress","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":"uint256","name":"_assemblyStartDate","type":"uint256"}],"name":"setAssemblyStartDate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_uri","type":"string"}],"name":"setBaseTokenURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_ipfsBaseURI","type":"string"}],"name":"setIpfsBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_ipfsRocketFolder","type":"string"}],"name":"setIpfsRocketFolder","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"launchDate","type":"uint256"}],"name":"setLaunchDate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_launchPrice","type":"uint256"}],"name":"setLaunchPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"string","name":"launchVideo","type":"string"}],"name":"setLaunchVideo","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"string","name":"physicalImage","type":"string"}],"name":"setPhysicalImage","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"string","name":"recoveryStatus","type":"string"}],"name":"setRecoveryStatus","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"setRocketComponentContract","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"string","name":"gpsCoordinates","type":"string"}],"name":"setRocketGPSCoordinates","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"string","name":"gpsCoordinates","type":"string"},{"internalType":"string","name":"recoveryStatus","type":"string"},{"internalType":"string","name":"physicalImage","type":"string"},{"internalType":"string","name":"launchVideo","type":"string"},{"internalType":"uint256","name":"launchDate","type":"uint256"}],"name":"setRocketMetadata","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":"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"}]

60806040523480156200001157600080fd5b506040805180820182526011815270546f6d20536163687320526f636b65747360781b6020808301918252835180850190945260038452622a29a960e91b9084015281519192916200006691600091620000e9565b5080516200007c906001906020840190620000e9565b505050600062000091620000e560201b60201c565b600680546001600160a01b0319166001600160a01b038316908117909155604051919250906000907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a350620001cc565b3390565b828054620000f7906200018f565b90600052602060002090601f0160209004810192826200011b576000855562000166565b82601f106200013657805160ff191683800117855562000166565b8280016001018555821562000166579182015b828111156200016657825182559160200191906001019062000149565b506200017492915062000178565b5090565b5b8082111562000174576000815560010162000179565b600181811c90821680620001a457607f821691505b60208210811415620001c657634e487b7160e01b600052602260045260246000fd5b50919050565b6149aa80620001dc6000396000f3fe6080604052600436106102bb5760003560e01c806370a082311161016e578063a4cf5d92116100cb578063d547cfb71161007f578063e985e9c511610064578063e985e9c514610734578063f2fde38b1461077d578063fcb2e86e1461079d57600080fd5b8063d547cfb71461070a578063e4e817ff1461071f57600080fd5b8063b88d4fde116100b0578063b88d4fde146106aa578063c87b56dd146106ca578063cf607eaa146106ea57600080fd5b8063a4cf5d921461066a578063b5bbe9081461068a57600080fd5b80638f88708b1161012257806395d89b411161010757806395d89b41146106155780639c6470ec1461062a578063a22cb4651461064a57600080fd5b80638f88708b146105d55780638fd03db81461060257600080fd5b80637c31527a116101535780637c31527a1461057757806381079f56146105975780638da5cb5b146105b757600080fd5b806370a0823114610542578063715018a61461056257600080fd5b80632ddb26ce1161021c57806342842e0e116101d05780635c119ade116101b55780635c119ade146104ed57806360a7a5cc1461050d5780636352211e1461052257600080fd5b806342842e0e146104ad57806345643719146104cd57600080fd5b80633834bfee116102015780633834bfee146104635780633ccfd60b146104785780633e9e3df31461048d57600080fd5b80632ddb26ce1461042357806330176e131461044357600080fd5b80631337dcf81161027357806323b872dd1161025857806323b872dd146103c3578063298b6fc9146103e35780632c1e816d1461040357600080fd5b80631337dcf81461038457806318160ddd146103a457600080fd5b806306fdde03116102a457806306fdde031461030a578063081812fc1461032c578063095ea7b31461036457600080fd5b806301ffc9a7146102c057806302acc94b146102f5575b600080fd5b3480156102cc57600080fd5b506102e06102db366004613e83565b6107bd565b60405190151581526020015b60405180910390f35b610308610303366004614163565b6108a2565b005b34801561031657600080fd5b5061031f610915565b6040516102ec919061457c565b34801561033857600080fd5b5061034c610347366004614022565b6109a7565b6040516001600160a01b0390911681526020016102ec565b34801561037057600080fd5b5061030861037f366004613dac565b610a3c565b34801561039057600080fd5b5061030861039f366004613ebd565b610b69565b3480156103b057600080fd5b50600f545b6040519081526020016102ec565b3480156103cf57600080fd5b506103086103de366004613cbd565b610c06565b3480156103ef57600080fd5b506103086103fe36600461403b565b610c8d565b34801561040f57600080fd5b5061030861041e366004613c6f565b610dcc565b34801561042f57600080fd5b5061030861043e366004613ebd565b610e81565b34801561044f57600080fd5b5061030861045e366004613ebd565b610f1a565b34801561046f57600080fd5b5061031f610fb3565b34801561048457600080fd5b50610308610fc2565b34801561049957600080fd5b506103086104a836600461403b565b611077565b3480156104b957600080fd5b506103086104c8366004613cbd565b6111b0565b3480156104d957600080fd5b506103086104e8366004614163565b6111cb565b3480156104f957600080fd5b50610308610508366004614022565b611251565b34801561051957600080fd5b506007546103b5565b34801561052e57600080fd5b5061034c61053d366004614022565b6112dc565b34801561054e57600080fd5b506103b561055d366004613c6f565b611367565b34801561056e57600080fd5b50610308611401565b34801561058357600080fd5b50610308610592366004613c6f565b6114b2565b3480156105a357600080fd5b506103086105b2366004613dd6565b611567565b3480156105c357600080fd5b506006546001600160a01b031661034c565b3480156105e157600080fd5b506105f56105f0366004614022565b61163e565b6040516102ec919061458f565b610308610610366004614022565b611dfc565b34801561062157600080fd5b5061031f611f1d565b34801561063657600080fd5b5061030861064536600461403b565b611f2c565b34801561065657600080fd5b50610308610665366004613d75565b612065565b34801561067657600080fd5b50610308610685366004614082565b61212a565b34801561069657600080fd5b506103086106a536600461403b565b6122b6565b3480156106b657600080fd5b506103086106c5366004613cf9565b6123ef565b3480156106d657600080fd5b5061031f6106e5366004614022565b612477565b3480156106f657600080fd5b50610308610705366004614022565b612560565b34801561071657600080fd5b5061031f6125eb565b34801561072b57600080fd5b5061031f6125fa565b34801561074057600080fd5b506102e061074f366004613c8a565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b34801561078957600080fd5b50610308610798366004613c6f565b612609565b3480156107a957600080fd5b506103086107b8366004614141565b612748565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f80ac58cd00000000000000000000000000000000000000000000000000000000148061085057507fffffffff0000000000000000000000000000000000000000000000000000000082167f5b5e139f00000000000000000000000000000000000000000000000000000000145b8061089c57507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff000000000000000000000000000000000000000000000000000000008316145b92915050565b600854158015906108b4575060085442115b6109055760405162461bcd60e51b815260206004820152601160248201527f596f752061726520746f6f206561726c7900000000000000000000000000000060448201526064015b60405180910390fd5b610910838383612877565b505050565b60606000805461092490614856565b80601f016020809104026020016040519081016040528092919081815260200182805461095090614856565b801561099d5780601f106109725761010080835404028352916020019161099d565b820191906000526020600020905b81548152906001019060200180831161098057829003601f168201915b5050505050905090565b6000818152600260205260408120546001600160a01b0316610a205760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084016108fc565b506000908152600460205260409020546001600160a01b031690565b6000610a47826112dc565b9050806001600160a01b0316836001600160a01b03161415610ad15760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560448201527f720000000000000000000000000000000000000000000000000000000000000060648201526084016108fc565b336001600160a01b0382161480610aed5750610aed813361074f565b610b5f5760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c000000000000000060648201526084016108fc565b6109108383612a5b565b6006546001600160a01b0316331480610b8c5750600d546001600160a01b031633145b610bef5760405162461bcd60e51b815260206004820152602e60248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526d103737b9103a34329030b236b4b760911b60648201526084016108fc565b8051610c0290600b9060208401906139a5565b5050565b610c103382612ad6565b610c825760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f76656400000000000000000000000000000060648201526084016108fc565b610910838383612bcd565b6006546001600160a01b0316331480610cb05750600d546001600160a01b031633145b610d135760405162461bcd60e51b815260206004820152602e60248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526d103737b9103a34329030b236b4b760911b60648201526084016108fc565b60008281526002602052604090205482906001600160a01b0316610d8e5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084016108fc565b81600f8481548110610da257610da261490c565b90600052602060002090600902016002019080519060200190610dc69291906139a5565b50505050565b6006546001600160a01b0316331480610def5750600d546001600160a01b031633145b610e525760405162461bcd60e51b815260206004820152602e60248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526d103737b9103a34329030b236b4b760911b60648201526084016108fc565b600d805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0392909216919091179055565b6006546001600160a01b0316331480610ea45750600d546001600160a01b031633145b610f075760405162461bcd60e51b815260206004820152602e60248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526d103737b9103a34329030b236b4b760911b60648201526084016108fc565b8051610c0290600a9060208401906139a5565b6006546001600160a01b0316331480610f3d5750600d546001600160a01b031633145b610fa05760405162461bcd60e51b815260206004820152602e60248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526d103737b9103a34329030b236b4b760911b60648201526084016108fc565b8051610c029060099060208401906139a5565b6060600b805461092490614856565b6006546001600160a01b0316331480610fe55750600d546001600160a01b031633145b6110485760405162461bcd60e51b815260206004820152602e60248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526d103737b9103a34329030b236b4b760911b60648201526084016108fc565b60405133904780156108fc02916000818181858888f19350505050158015611074573d6000803e3d6000fd5b50565b6006546001600160a01b031633148061109a5750600d546001600160a01b031633145b6110fd5760405162461bcd60e51b815260206004820152602e60248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526d103737b9103a34329030b236b4b760911b60648201526084016108fc565b60008281526002602052604090205482906001600160a01b03166111785760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084016108fc565b81600f848154811061118c5761118c61490c565b90600052602060002090600902016001019080519060200190610dc69291906139a5565b610910838383604051806020016040528060008152506123ef565b6006546001600160a01b03163314806111ee5750600d546001600160a01b031633145b6109055760405162461bcd60e51b815260206004820152602e60248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526d103737b9103a34329030b236b4b760911b60648201526084016108fc565b6006546001600160a01b03163314806112745750600d546001600160a01b031633145b6112d75760405162461bcd60e51b815260206004820152602e60248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526d103737b9103a34329030b236b4b760911b60648201526084016108fc565b600855565b6000818152600260205260408120546001600160a01b03168061089c5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201527f656e7420746f6b656e000000000000000000000000000000000000000000000060648201526084016108fc565b60006001600160a01b0382166113e55760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a6560448201527f726f20616464726573730000000000000000000000000000000000000000000060648201526084016108fc565b506001600160a01b031660009081526003602052604090205490565b6006546001600160a01b0316331461145b5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016108fc565b6006546040516000916001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a36006805473ffffffffffffffffffffffffffffffffffffffff19169055565b6006546001600160a01b03163314806114d55750600d546001600160a01b031633145b6115385760405162461bcd60e51b815260206004820152602e60248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526d103737b9103a34329030b236b4b760911b60648201526084016108fc565b600c805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0392909216919091179055565b6006546001600160a01b031633148061158a5750600d546001600160a01b031633145b6115ed5760405162461bcd60e51b815260206004820152602e60248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526d103737b9103a34329030b236b4b760911b60648201526084016108fc565b60005b8151811015610c0257600e82828151811061160d5761160d61490c565b602090810291909101810151825460018101845560009384529190922001558061163681614891565b9150506115f0565b611646613a25565b6000828152600260205260409020546001600160a01b03166116bf5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084016108fc565b600c54600f80546001600160a01b039092169160009190859081106116e6576116e661490c565b90600052602060002090600902016040518061012001604052908160008201805461171090614856565b80601f016020809104026020016040519081016040528092919081815260200182805461173c90614856565b80156117895780601f1061175e57610100808354040283529160200191611789565b820191906000526020600020905b81548152906001019060200180831161176c57829003601f168201915b505050505081526020016001820180546117a290614856565b80601f01602080910402602001604051908101604052809291908181526020018280546117ce90614856565b801561181b5780601f106117f05761010080835404028352916020019161181b565b820191906000526020600020905b8154815290600101906020018083116117fe57829003601f168201915b5050505050815260200160028201805461183490614856565b80601f016020809104026020016040519081016040528092919081815260200182805461186090614856565b80156118ad5780601f10611882576101008083540402835291602001916118ad565b820191906000526020600020905b81548152906001019060200180831161189057829003601f168201915b505050505081526020016003820180546118c690614856565b80601f01602080910402602001604051908101604052809291908181526020018280546118f290614856565b801561193f5780601f106119145761010080835404028352916020019161193f565b820191906000526020600020905b81548152906001019060200180831161192257829003601f168201915b505050505081526020016004820154815260200160058201548152602001600682015481526020016007820154815260200160088201548152505090506000826001600160a01b0316638f88708b600f87815481106119a0576119a061490c565b9060005260206000209060090201600401546040518263ffffffff1660e01b81526004016119d091815260200190565b60006040518083038186803b1580156119e857600080fd5b505afa1580156119fc573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052611a249190810190613ef2565b90506000836001600160a01b0316638f88708b600f8881548110611a4a57611a4a61490c565b9060005260206000209060090201600501546040518263ffffffff1660e01b8152600401611a7a91815260200190565b60006040518083038186803b158015611a9257600080fd5b505afa158015611aa6573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052611ace9190810190613ef2565b90506000846001600160a01b0316638f88708b600f8981548110611af457611af461490c565b9060005260206000209060090201600601546040518263ffffffff1660e01b8152600401611b2491815260200190565b60006040518083038186803b158015611b3c57600080fd5b505afa158015611b50573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052611b789190810190613ef2565b90506000611b9783604001518560400151612da790919063ffffffff16565b8015611bb1575060408083015190840151611bb191612da7565b6040850151608086015191925060009115611bfc5760a0860151604051611bdc918391602001614399565b60405160208183030381529060405290508180611bf890614891565b9250505b6040850151608086015115611c415760a0860151604051611c21918391602001614399565b60405160208183030381529060405290508280611c3d90614891565b9350505b6040850151608086015115611c865760a0860151604051611c66918391602001614399565b60405160208183030381529060405290508380611c8290614891565b9450505b6040518061020001604052808d8152602001611ca18e612e00565b8152602001611caf8e612e28565b81526020018a6000015181526020018a6020015181526020018a6040015181526020018a60600151815260200186611d1c576040518060400160405280600781526020017f6672616e6b656e00000000000000000000000000000000000000000000000000815250611d53565b6040518060400160405280600781526020017f70657266656374000000000000000000000000000000000000000000000000008152505b8152602001600a600b611d88878787604051602001611d749392919061441b565b604051602081830303815290604052612ee4565b604051602001611d9a939291906144e9565b60405160208183030381529060405281526020018a60e0015181526020018a6101000151815260200185815260200160058e611dd691906148cc565b158152602081019990995260408901979097525050505060609093015295945050505050565b6000818152600260205260409020546001600160a01b0316611e755760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084016108fc565b600754341015611eed5760405162461bcd60e51b815260206004820152602660248201527f4e6f7420656e6f75676820457468657220746f2070617920666f72207468652060448201527f6c61756e6368000000000000000000000000000000000000000000000000000060648201526084016108fc565b604051819033907fe6ec44745d354bae68c3bea098996f4e8f2c042fc3dcc9d3a1ae2fadcc117ad090600090a350565b60606001805461092490614856565b6006546001600160a01b0316331480611f4f5750600d546001600160a01b031633145b611fb25760405162461bcd60e51b815260206004820152602e60248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526d103737b9103a34329030b236b4b760911b60648201526084016108fc565b60008281526002602052604090205482906001600160a01b031661202d5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084016108fc565b81600f84815481106120415761204161490c565b90600052602060002090600902016003019080519060200190610dc69291906139a5565b6001600160a01b0382163314156120be5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c65720000000000000060448201526064016108fc565b3360008181526005602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6006546001600160a01b031633148061214d5750600d546001600160a01b031633145b6121b05760405162461bcd60e51b815260206004820152602e60248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526d103737b9103a34329030b236b4b760911b60648201526084016108fc565b60008681526002602052604090205486906001600160a01b031661222b5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084016108fc565b6000600f88815481106122405761224061490c565b600091825260209182902089516009909202019250612264918391908a01906139a5565b50855161227a90600183019060208901906139a5565b50845161229090600283019060208801906139a5565b5083516122a690600383019060208701906139a5565b5060080191909155505050505050565b6006546001600160a01b03163314806122d95750600d546001600160a01b031633145b61233c5760405162461bcd60e51b815260206004820152602e60248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526d103737b9103a34329030b236b4b760911b60648201526084016108fc565b60008281526002602052604090205482906001600160a01b03166123b75760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084016108fc565b81600f84815481106123cb576123cb61490c565b90600052602060002090600902016000019080519060200190610dc69291906139a5565b6123f93383612ad6565b61246b5760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f76656400000000000000000000000000000060648201526084016108fc565b610dc684848484613242565b6000818152600260205260409020546060906001600160a01b03166125045760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201527f6e6578697374656e7420746f6b656e000000000000000000000000000000000060648201526084016108fc565b600061250e6125eb565b9050600081511161252e5760405180602001604052806000815250612559565b80612538846132cb565b60405160200161254992919061432e565b6040516020818303038152906040525b9392505050565b6006546001600160a01b03163314806125835750600d546001600160a01b031633145b6125e65760405162461bcd60e51b815260206004820152602e60248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526d103737b9103a34329030b236b4b760911b60648201526084016108fc565b600755565b60606009805461092490614856565b6060600a805461092490614856565b6006546001600160a01b031633146126635760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016108fc565b6001600160a01b0381166126df5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f646472657373000000000000000000000000000000000000000000000000000060648201526084016108fc565b6006546040516001600160a01b038084169216907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a36006805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0392909216919091179055565b6006546001600160a01b031633148061276b5750600d546001600160a01b031633145b6127ce5760405162461bcd60e51b815260206004820152602e60248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526d103737b9103a34329030b236b4b760911b60648201526084016108fc565b60008281526002602052604090205482906001600160a01b03166128495760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084016108fc565b81600f848154811061285d5761285d61490c565b906000526020600020906009020160080181905550505050565b600c546040517fde7bf0a20000000000000000000000000000000000000000000000000000000081523360048201526024810185905260448101849052606481018390526001600160a01b0390911690819063de7bf0a290608401600060405180830381600087803b1580156128ec57600080fd5b505af1158015612900573d6000803e3d6000fd5b50506040805161014081018252600061012082018181528252825160208181018552828252808401919091528351808201855282815283850152835180820190945281845260608301939093526080820189905260a0820188905260c082018790524260e08301526101008201819052600f805460018101825591528151805192955060099091027f8d1108e10bcb7c27dddfc02ed9d693a074039d026cf4ea4240b40f7d581ac8020193506129ba9284929101906139a5565b5060208281015180516129d392600185019201906139a5565b50604082015180516129ef9160028401916020909101906139a5565b5060608201518051612a0b9160038401916020909101906139a5565b506080820151600482015560a0820151600582015560c0820151600682015560e0820151600782015561010090910151600890910155600f54610dc6903390612a5690600190614813565b6133c9565b6000818152600460205260409020805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0384169081179091558190612a9d826112dc565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000818152600260205260408120546001600160a01b0316612b4f5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084016108fc565b6000612b5a836112dc565b9050806001600160a01b0316846001600160a01b03161480612b955750836001600160a01b0316612b8a846109a7565b6001600160a01b0316145b80612bc557506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b0316612be0826112dc565b6001600160a01b031614612c5c5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201527f73206e6f74206f776e000000000000000000000000000000000000000000000060648201526084016108fc565b6001600160a01b038216612cd75760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f2061646460448201527f726573730000000000000000000000000000000000000000000000000000000060648201526084016108fc565b612ce2600082612a5b565b6001600160a01b0383166000908152600360205260408120805460019290612d0b908490614813565b90915550506001600160a01b0382166000908152600360205260408120805460019290612d399084906147a3565b9091555050600081815260026020526040808220805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b600081604051602001612dba9190614312565b6040516020818303038152906040528051906020012083604051602001612de19190614312565b6040516020818303038152906040528051906020012014905092915050565b606061089c600e8381548110612e1857612e1861490c565b9060005260206000200154613518565b60408051808201909152600981527f323032312e3139322e000000000000000000000000000000000000000000000060208201526060906000612e6a84613648565b905060648410612e9d578181604051602001612e8792919061432e565b6040516020818303038152906040529150612edd565b600a8410612eb8578181604051602001612e8792919061435d565b8181604051602001612ecb929190614491565b60405160208183030381529060405291505b5092915050565b6060816000805b825181101561313957612f1d838281518110612f0957612f0961490c565b01602001516001600160f81b031916613771565b838281518110612f2f57612f2f61490c565b60200101906001600160f81b031916908160001a905350828181518110612f5857612f5861490c565b6020910101516001600160f81b0319167f20000000000000000000000000000000000000000000000000000000000000001480612fd55750828181518110612fa257612fa261490c565b6020910101516001600160f81b0319167f2700000000000000000000000000000000000000000000000000000000000000145b1561300d57602d60f81b838281518110612ff157612ff161490c565b60200101906001600160f81b031916908160001a905350613127565b82818151811061301f5761301f61490c565b6020910101516001600160f81b0319167fc300000000000000000000000000000000000000000000000000000000000000141561309357600083828151811061306a5761306a61490c565b60200101906001600160f81b031916908160001a9053508161308b81614891565b925050613127565b8281815181106130a5576130a561490c565b6020910101516001600160f81b0319167fa8000000000000000000000000000000000000000000000000000000000000001415613127577f650000000000000000000000000000000000000000000000000000000000000083828151811061310f5761310f61490c565b60200101906001600160f81b031916908160001a9053505b8061313181614891565b915050612eeb565b5080613146575092915050565b60008183516131559190614813565b67ffffffffffffffff81111561316d5761316d614922565b6040519080825280601f01601f191660200182016040528015613197576020820181803683370190505b5090506000805b8451811015613237578481815181106131b9576131b961490c565b01602001516001600160f81b0319166131d157613225565b8481815181106131e3576131e361490c565b602001015160f81c60f81b8383815181106132005761320061490c565b60200101906001600160f81b031916908160001a9053508161322181614891565b9250505b8061322f81614891565b91505061319e565b509095945050505050565b61324d848484612bcd565b613259848484846137f8565b610dc65760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e746572000000000000000000000000000060648201526084016108fc565b6060816132ef5750506040805180820190915260018152600360fc1b602082015290565b8160005b8115613319578061330381614891565b91506133129050600a836147e0565b91506132f3565b60008167ffffffffffffffff81111561333457613334614922565b6040519080825280601f01601f19166020018201604052801561335e576020820181803683370190505b5090505b8415612bc557613373600183614813565b9150613380600a866148cc565b61338b9060306147a3565b60f81b8183815181106133a0576133a061490c565b60200101906001600160f81b031916908160001a9053506133c2600a866147e0565b9450613362565b6001600160a01b03821661341f5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f206164647265737360448201526064016108fc565b6000818152600260205260409020546001600160a01b0316156134845760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e7465640000000060448201526064016108fc565b6001600160a01b03821660009081526003602052604081208054600192906134ad9084906147a3565b9091555050600081815260026020526040808220805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b606060005b60208160ff161080156135515750828160ff16602081106135405761354061490c565b1a60f81b6001600160f81b03191615155b156135685780613560816148ac565b91505061351d565b60008160ff1667ffffffffffffffff81111561358657613586614922565b6040519080825280601f01601f1916602001820160405280156135b0576020820181803683370190505b509050600091505b60208260ff161080156135ec5750838260ff16602081106135db576135db61490c565b1a60f81b6001600160f81b03191615155b1561255957838260ff16602081106136065761360661490c565b1a60f81b818360ff168151811061361f5761361f61490c565b60200101906001600160f81b031916908160001a90535081613640816148ac565b9250506135b8565b60608161366c5750506040805180820190915260018152600360fc1b602082015290565b8160005b8115613696578061368081614891565b915061368f9050600a836147e0565b9150613670565b60008167ffffffffffffffff8111156136b1576136b1614922565b6040519080825280601f01601f1916602001820160405280156136db576020820181803683370190505b509050815b8515613768576136f1600182614813565b90506000613700600a886147e0565b61370b90600a6147f4565b6137159088614813565b6137209060306147bb565b905060008160f81b90508084848151811061373d5761373d61490c565b60200101906001600160f81b031916908160001a90535061375f600a896147e0565b975050506136e0565b50949350505050565b60007f41000000000000000000000000000000000000000000000000000000000000006001600160f81b03198316108015906137d757507f5a000000000000000000000000000000000000000000000000000000000000006001600160f81b0319831611155b156137f4576137eb60f883901c60206147bb565b60f81b92915050565b5090565b60006001600160a01b0384163b1561399a576040517f150b7a020000000000000000000000000000000000000000000000000000000081526001600160a01b0385169063150b7a0290613855903390899088908890600401614540565b602060405180830381600087803b15801561386f57600080fd5b505af192505050801561389f575060408051601f3d908101601f1916820190925261389c91810190613ea0565b60015b61394f573d8080156138cd576040519150601f19603f3d011682016040523d82523d6000602084013e6138d2565b606091505b5080516139475760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e746572000000000000000000000000000060648201526084016108fc565b805181602001fd5b7fffffffff00000000000000000000000000000000000000000000000000000000167f150b7a0200000000000000000000000000000000000000000000000000000000149050612bc5565b506001949350505050565b8280546139b190614856565b90600052602060002090601f0160209004810192826139d35760008555613a19565b82601f106139ec57805160ff1916838001178555613a19565b82800160010185558215613a19579182015b82811115613a195782518255916020019190600101906139fe565b506137f4929150613b90565b604051806102000160405280600081526020016060815260200160608152602001606081526020016060815260200160608152602001606081526020016060815260200160608152602001600081526020016000815260200160008152602001600015158152602001613adf60405180610120016040528060008152602001606081526020016060815260200160608152602001600015158152602001606081526020016060815260200160008152602001600081525090565b8152602001613b3560405180610120016040528060008152602001606081526020016060815260200160608152602001600015158152602001606081526020016060815260200160008152602001600081525090565b8152602001613b8b60405180610120016040528060008152602001606081526020016060815260200160608152602001600015158152602001606081526020016060815260200160008152602001600081525090565b905290565b5b808211156137f45760008155600101613b91565b6000613bb8613bb38461477b565b61474a565b9050828152838383011115613bcc57600080fd5b828260208301376000602084830101529392505050565b80356001600160a01b0381168114613bfa57600080fd5b919050565b8051613bfa81614938565b600082601f830112613c1b57600080fd5b61255983833560208501613ba5565b600082601f830112613c3b57600080fd5b8151613c49613bb38261477b565b818152846020838601011115613c5e57600080fd5b612bc582602083016020870161482a565b600060208284031215613c8157600080fd5b61255982613be3565b60008060408385031215613c9d57600080fd5b613ca683613be3565b9150613cb460208401613be3565b90509250929050565b600080600060608486031215613cd257600080fd5b613cdb84613be3565b9250613ce960208501613be3565b9150604084013590509250925092565b60008060008060808587031215613d0f57600080fd5b613d1885613be3565b9350613d2660208601613be3565b925060408501359150606085013567ffffffffffffffff811115613d4957600080fd5b8501601f81018713613d5a57600080fd5b613d6987823560208401613ba5565b91505092959194509250565b60008060408385031215613d8857600080fd5b613d9183613be3565b91506020830135613da181614938565b809150509250929050565b60008060408385031215613dbf57600080fd5b613dc883613be3565b946020939093013593505050565b60006020808385031215613de957600080fd5b823567ffffffffffffffff80821115613e0157600080fd5b818501915085601f830112613e1557600080fd5b813581811115613e2757613e27614922565b8060051b9150613e3884830161474a565b8181528481019084860184860187018a1015613e5357600080fd5b600095505b83861015613e76578035835260019590950194918601918601613e58565b5098975050505050505050565b600060208284031215613e9557600080fd5b813561255981614946565b600060208284031215613eb257600080fd5b815161255981614946565b600060208284031215613ecf57600080fd5b813567ffffffffffffffff811115613ee657600080fd5b612bc584828501613c0a565b600060208284031215613f0457600080fd5b815167ffffffffffffffff80821115613f1c57600080fd5b908301906101208286031215613f3157600080fd5b613f39614720565b82518152602083015182811115613f4f57600080fd5b613f5b87828601613c2a565b602083015250604083015182811115613f7357600080fd5b613f7f87828601613c2a565b604083015250606083015182811115613f9757600080fd5b613fa387828601613c2a565b606083015250613fb560808401613bff565b608082015260a083015182811115613fcc57600080fd5b613fd887828601613c2a565b60a08301525060c083015182811115613ff057600080fd5b613ffc87828601613c2a565b60c08301525060e083810151908201526101009283015192810192909252509392505050565b60006020828403121561403457600080fd5b5035919050565b6000806040838503121561404e57600080fd5b82359150602083013567ffffffffffffffff81111561406c57600080fd5b61407885828601613c0a565b9150509250929050565b60008060008060008060c0878903121561409b57600080fd5b86359550602087013567ffffffffffffffff808211156140ba57600080fd5b6140c68a838b01613c0a565b965060408901359150808211156140dc57600080fd5b6140e88a838b01613c0a565b955060608901359150808211156140fe57600080fd5b61410a8a838b01613c0a565b9450608089013591508082111561412057600080fd5b5061412d89828a01613c0a565b92505060a087013590509295509295509295565b6000806040838503121561415457600080fd5b50508035926020909101359150565b60008060006060848603121561417857600080fd5b505081359360208301359350604090920135919050565b600081518084526141a781602086016020860161482a565b601f01601f19169290920160200192915050565b8054600090600181811c90808316806141d557607f831692505b60208084108214156141f757634e487b7160e01b600052602260045260246000fd5b81801561420b576001811461421c57614249565b60ff19861689528489019650614249565b60008881526020902060005b868110156142415781548b820152908501908301614228565b505084890196505b50505050505092915050565b60006101208251845260208301518160208601526142758286018261418f565b9150506040830151848203604086015261428f828261418f565b915050606083015184820360608601526142a9828261418f565b91505060808301516142bf608086018215159052565b5060a083015184820360a08601526142d7828261418f565b91505060c083015184820360c08601526142f1828261418f565b60e08581015190870152610100948501519490950193909352509192915050565b6000825161432481846020870161482a565b9190910192915050565b6000835161434081846020880161482a565b83519083019061435481836020880161482a565b01949350505050565b6000835161436f81846020880161482a565b600360fc1b908301908152835161438d81600184016020880161482a565b01600101949350505050565b600083516143ab81846020880161482a565b7f2d0000000000000000000000000000000000000000000000000000000000000090830190815283516143e581600184016020880161482a565b7f2d737469636b657200000000000000000000000000000000000000000000000060019290910191820152600901949350505050565b6000845161442d81846020890161482a565b80830190507f2d000000000000000000000000000000000000000000000000000000000000008082528551614469816001850160208a0161482a565b6001920191820152835161448481600284016020880161482a565b0160020195945050505050565b600083516144a381846020880161482a565b7f303000000000000000000000000000000000000000000000000000000000000090830190815283516144dd81600284016020880161482a565b01600201949350505050565b60006144fe6144f883876141bb565b856141bb565b835161450e81836020880161482a565b7f2e706e6700000000000000000000000000000000000000000000000000000000910190815260040195945050505050565b60006001600160a01b03808716835280861660208401525083604083015260806060830152614572608083018461418f565b9695505050505050565b602081526000612559602083018461418f565b6020815281516020820152600060208301516102008060408501526145b861022085018361418f565b91506040850151601f19808685030160608701526145d6848361418f565b935060608701519150808685030160808701526145f3848361418f565b935060808701519150808685030160a0870152614610848361418f565b935060a08701519150808685030160c087015261462d848361418f565b935060c08701519150808685030160e087015261464a848361418f565b935060e08701519150610100818786030181880152614669858461418f565b945080880151925050610120818786030181880152614688858461418f565b9088015161014088810191909152880151610160808901919091528801516101808089019190915288015190945091506101a06146c88188018415159052565b808801519250506101c08187860301818801526146e58584614255565b9450808801519250506101e08187860301818801526147048584614255565b9088015187820390920184880152935090506145728382614255565b604051610120810167ffffffffffffffff8111828210171561474457614744614922565b60405290565b604051601f8201601f1916810167ffffffffffffffff8111828210171561477357614773614922565b604052919050565b600067ffffffffffffffff82111561479557614795614922565b50601f01601f191660200190565b600082198211156147b6576147b66148e0565b500190565b600060ff821660ff84168060ff038211156147d8576147d86148e0565b019392505050565b6000826147ef576147ef6148f6565b500490565b600081600019048311821515161561480e5761480e6148e0565b500290565b600082821015614825576148256148e0565b500390565b60005b8381101561484557818101518382015260200161482d565b83811115610dc65750506000910152565b600181811c9082168061486a57607f821691505b6020821081141561488b57634e487b7160e01b600052602260045260246000fd5b50919050565b60006000198214156148a5576148a56148e0565b5060010190565b600060ff821660ff8114156148c3576148c36148e0565b60010192915050565b6000826148db576148db6148f6565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b801515811461107457600080fd5b7fffffffff000000000000000000000000000000000000000000000000000000008116811461107457600080fdfea2646970667358221220a3cfc8012dc43bb86d35b85be77d870014aeb7c47506022d482a112f985134c364736f6c63430008060033

Deployed Bytecode

0x6080604052600436106102bb5760003560e01c806370a082311161016e578063a4cf5d92116100cb578063d547cfb71161007f578063e985e9c511610064578063e985e9c514610734578063f2fde38b1461077d578063fcb2e86e1461079d57600080fd5b8063d547cfb71461070a578063e4e817ff1461071f57600080fd5b8063b88d4fde116100b0578063b88d4fde146106aa578063c87b56dd146106ca578063cf607eaa146106ea57600080fd5b8063a4cf5d921461066a578063b5bbe9081461068a57600080fd5b80638f88708b1161012257806395d89b411161010757806395d89b41146106155780639c6470ec1461062a578063a22cb4651461064a57600080fd5b80638f88708b146105d55780638fd03db81461060257600080fd5b80637c31527a116101535780637c31527a1461057757806381079f56146105975780638da5cb5b146105b757600080fd5b806370a0823114610542578063715018a61461056257600080fd5b80632ddb26ce1161021c57806342842e0e116101d05780635c119ade116101b55780635c119ade146104ed57806360a7a5cc1461050d5780636352211e1461052257600080fd5b806342842e0e146104ad57806345643719146104cd57600080fd5b80633834bfee116102015780633834bfee146104635780633ccfd60b146104785780633e9e3df31461048d57600080fd5b80632ddb26ce1461042357806330176e131461044357600080fd5b80631337dcf81161027357806323b872dd1161025857806323b872dd146103c3578063298b6fc9146103e35780632c1e816d1461040357600080fd5b80631337dcf81461038457806318160ddd146103a457600080fd5b806306fdde03116102a457806306fdde031461030a578063081812fc1461032c578063095ea7b31461036457600080fd5b806301ffc9a7146102c057806302acc94b146102f5575b600080fd5b3480156102cc57600080fd5b506102e06102db366004613e83565b6107bd565b60405190151581526020015b60405180910390f35b610308610303366004614163565b6108a2565b005b34801561031657600080fd5b5061031f610915565b6040516102ec919061457c565b34801561033857600080fd5b5061034c610347366004614022565b6109a7565b6040516001600160a01b0390911681526020016102ec565b34801561037057600080fd5b5061030861037f366004613dac565b610a3c565b34801561039057600080fd5b5061030861039f366004613ebd565b610b69565b3480156103b057600080fd5b50600f545b6040519081526020016102ec565b3480156103cf57600080fd5b506103086103de366004613cbd565b610c06565b3480156103ef57600080fd5b506103086103fe36600461403b565b610c8d565b34801561040f57600080fd5b5061030861041e366004613c6f565b610dcc565b34801561042f57600080fd5b5061030861043e366004613ebd565b610e81565b34801561044f57600080fd5b5061030861045e366004613ebd565b610f1a565b34801561046f57600080fd5b5061031f610fb3565b34801561048457600080fd5b50610308610fc2565b34801561049957600080fd5b506103086104a836600461403b565b611077565b3480156104b957600080fd5b506103086104c8366004613cbd565b6111b0565b3480156104d957600080fd5b506103086104e8366004614163565b6111cb565b3480156104f957600080fd5b50610308610508366004614022565b611251565b34801561051957600080fd5b506007546103b5565b34801561052e57600080fd5b5061034c61053d366004614022565b6112dc565b34801561054e57600080fd5b506103b561055d366004613c6f565b611367565b34801561056e57600080fd5b50610308611401565b34801561058357600080fd5b50610308610592366004613c6f565b6114b2565b3480156105a357600080fd5b506103086105b2366004613dd6565b611567565b3480156105c357600080fd5b506006546001600160a01b031661034c565b3480156105e157600080fd5b506105f56105f0366004614022565b61163e565b6040516102ec919061458f565b610308610610366004614022565b611dfc565b34801561062157600080fd5b5061031f611f1d565b34801561063657600080fd5b5061030861064536600461403b565b611f2c565b34801561065657600080fd5b50610308610665366004613d75565b612065565b34801561067657600080fd5b50610308610685366004614082565b61212a565b34801561069657600080fd5b506103086106a536600461403b565b6122b6565b3480156106b657600080fd5b506103086106c5366004613cf9565b6123ef565b3480156106d657600080fd5b5061031f6106e5366004614022565b612477565b3480156106f657600080fd5b50610308610705366004614022565b612560565b34801561071657600080fd5b5061031f6125eb565b34801561072b57600080fd5b5061031f6125fa565b34801561074057600080fd5b506102e061074f366004613c8a565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b34801561078957600080fd5b50610308610798366004613c6f565b612609565b3480156107a957600080fd5b506103086107b8366004614141565b612748565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f80ac58cd00000000000000000000000000000000000000000000000000000000148061085057507fffffffff0000000000000000000000000000000000000000000000000000000082167f5b5e139f00000000000000000000000000000000000000000000000000000000145b8061089c57507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff000000000000000000000000000000000000000000000000000000008316145b92915050565b600854158015906108b4575060085442115b6109055760405162461bcd60e51b815260206004820152601160248201527f596f752061726520746f6f206561726c7900000000000000000000000000000060448201526064015b60405180910390fd5b610910838383612877565b505050565b60606000805461092490614856565b80601f016020809104026020016040519081016040528092919081815260200182805461095090614856565b801561099d5780601f106109725761010080835404028352916020019161099d565b820191906000526020600020905b81548152906001019060200180831161098057829003601f168201915b5050505050905090565b6000818152600260205260408120546001600160a01b0316610a205760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084016108fc565b506000908152600460205260409020546001600160a01b031690565b6000610a47826112dc565b9050806001600160a01b0316836001600160a01b03161415610ad15760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560448201527f720000000000000000000000000000000000000000000000000000000000000060648201526084016108fc565b336001600160a01b0382161480610aed5750610aed813361074f565b610b5f5760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c000000000000000060648201526084016108fc565b6109108383612a5b565b6006546001600160a01b0316331480610b8c5750600d546001600160a01b031633145b610bef5760405162461bcd60e51b815260206004820152602e60248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526d103737b9103a34329030b236b4b760911b60648201526084016108fc565b8051610c0290600b9060208401906139a5565b5050565b610c103382612ad6565b610c825760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f76656400000000000000000000000000000060648201526084016108fc565b610910838383612bcd565b6006546001600160a01b0316331480610cb05750600d546001600160a01b031633145b610d135760405162461bcd60e51b815260206004820152602e60248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526d103737b9103a34329030b236b4b760911b60648201526084016108fc565b60008281526002602052604090205482906001600160a01b0316610d8e5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084016108fc565b81600f8481548110610da257610da261490c565b90600052602060002090600902016002019080519060200190610dc69291906139a5565b50505050565b6006546001600160a01b0316331480610def5750600d546001600160a01b031633145b610e525760405162461bcd60e51b815260206004820152602e60248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526d103737b9103a34329030b236b4b760911b60648201526084016108fc565b600d805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0392909216919091179055565b6006546001600160a01b0316331480610ea45750600d546001600160a01b031633145b610f075760405162461bcd60e51b815260206004820152602e60248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526d103737b9103a34329030b236b4b760911b60648201526084016108fc565b8051610c0290600a9060208401906139a5565b6006546001600160a01b0316331480610f3d5750600d546001600160a01b031633145b610fa05760405162461bcd60e51b815260206004820152602e60248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526d103737b9103a34329030b236b4b760911b60648201526084016108fc565b8051610c029060099060208401906139a5565b6060600b805461092490614856565b6006546001600160a01b0316331480610fe55750600d546001600160a01b031633145b6110485760405162461bcd60e51b815260206004820152602e60248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526d103737b9103a34329030b236b4b760911b60648201526084016108fc565b60405133904780156108fc02916000818181858888f19350505050158015611074573d6000803e3d6000fd5b50565b6006546001600160a01b031633148061109a5750600d546001600160a01b031633145b6110fd5760405162461bcd60e51b815260206004820152602e60248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526d103737b9103a34329030b236b4b760911b60648201526084016108fc565b60008281526002602052604090205482906001600160a01b03166111785760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084016108fc565b81600f848154811061118c5761118c61490c565b90600052602060002090600902016001019080519060200190610dc69291906139a5565b610910838383604051806020016040528060008152506123ef565b6006546001600160a01b03163314806111ee5750600d546001600160a01b031633145b6109055760405162461bcd60e51b815260206004820152602e60248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526d103737b9103a34329030b236b4b760911b60648201526084016108fc565b6006546001600160a01b03163314806112745750600d546001600160a01b031633145b6112d75760405162461bcd60e51b815260206004820152602e60248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526d103737b9103a34329030b236b4b760911b60648201526084016108fc565b600855565b6000818152600260205260408120546001600160a01b03168061089c5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201527f656e7420746f6b656e000000000000000000000000000000000000000000000060648201526084016108fc565b60006001600160a01b0382166113e55760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a6560448201527f726f20616464726573730000000000000000000000000000000000000000000060648201526084016108fc565b506001600160a01b031660009081526003602052604090205490565b6006546001600160a01b0316331461145b5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016108fc565b6006546040516000916001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a36006805473ffffffffffffffffffffffffffffffffffffffff19169055565b6006546001600160a01b03163314806114d55750600d546001600160a01b031633145b6115385760405162461bcd60e51b815260206004820152602e60248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526d103737b9103a34329030b236b4b760911b60648201526084016108fc565b600c805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0392909216919091179055565b6006546001600160a01b031633148061158a5750600d546001600160a01b031633145b6115ed5760405162461bcd60e51b815260206004820152602e60248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526d103737b9103a34329030b236b4b760911b60648201526084016108fc565b60005b8151811015610c0257600e82828151811061160d5761160d61490c565b602090810291909101810151825460018101845560009384529190922001558061163681614891565b9150506115f0565b611646613a25565b6000828152600260205260409020546001600160a01b03166116bf5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084016108fc565b600c54600f80546001600160a01b039092169160009190859081106116e6576116e661490c565b90600052602060002090600902016040518061012001604052908160008201805461171090614856565b80601f016020809104026020016040519081016040528092919081815260200182805461173c90614856565b80156117895780601f1061175e57610100808354040283529160200191611789565b820191906000526020600020905b81548152906001019060200180831161176c57829003601f168201915b505050505081526020016001820180546117a290614856565b80601f01602080910402602001604051908101604052809291908181526020018280546117ce90614856565b801561181b5780601f106117f05761010080835404028352916020019161181b565b820191906000526020600020905b8154815290600101906020018083116117fe57829003601f168201915b5050505050815260200160028201805461183490614856565b80601f016020809104026020016040519081016040528092919081815260200182805461186090614856565b80156118ad5780601f10611882576101008083540402835291602001916118ad565b820191906000526020600020905b81548152906001019060200180831161189057829003601f168201915b505050505081526020016003820180546118c690614856565b80601f01602080910402602001604051908101604052809291908181526020018280546118f290614856565b801561193f5780601f106119145761010080835404028352916020019161193f565b820191906000526020600020905b81548152906001019060200180831161192257829003601f168201915b505050505081526020016004820154815260200160058201548152602001600682015481526020016007820154815260200160088201548152505090506000826001600160a01b0316638f88708b600f87815481106119a0576119a061490c565b9060005260206000209060090201600401546040518263ffffffff1660e01b81526004016119d091815260200190565b60006040518083038186803b1580156119e857600080fd5b505afa1580156119fc573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052611a249190810190613ef2565b90506000836001600160a01b0316638f88708b600f8881548110611a4a57611a4a61490c565b9060005260206000209060090201600501546040518263ffffffff1660e01b8152600401611a7a91815260200190565b60006040518083038186803b158015611a9257600080fd5b505afa158015611aa6573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052611ace9190810190613ef2565b90506000846001600160a01b0316638f88708b600f8981548110611af457611af461490c565b9060005260206000209060090201600601546040518263ffffffff1660e01b8152600401611b2491815260200190565b60006040518083038186803b158015611b3c57600080fd5b505afa158015611b50573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052611b789190810190613ef2565b90506000611b9783604001518560400151612da790919063ffffffff16565b8015611bb1575060408083015190840151611bb191612da7565b6040850151608086015191925060009115611bfc5760a0860151604051611bdc918391602001614399565b60405160208183030381529060405290508180611bf890614891565b9250505b6040850151608086015115611c415760a0860151604051611c21918391602001614399565b60405160208183030381529060405290508280611c3d90614891565b9350505b6040850151608086015115611c865760a0860151604051611c66918391602001614399565b60405160208183030381529060405290508380611c8290614891565b9450505b6040518061020001604052808d8152602001611ca18e612e00565b8152602001611caf8e612e28565b81526020018a6000015181526020018a6020015181526020018a6040015181526020018a60600151815260200186611d1c576040518060400160405280600781526020017f6672616e6b656e00000000000000000000000000000000000000000000000000815250611d53565b6040518060400160405280600781526020017f70657266656374000000000000000000000000000000000000000000000000008152505b8152602001600a600b611d88878787604051602001611d749392919061441b565b604051602081830303815290604052612ee4565b604051602001611d9a939291906144e9565b60405160208183030381529060405281526020018a60e0015181526020018a6101000151815260200185815260200160058e611dd691906148cc565b158152602081019990995260408901979097525050505060609093015295945050505050565b6000818152600260205260409020546001600160a01b0316611e755760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084016108fc565b600754341015611eed5760405162461bcd60e51b815260206004820152602660248201527f4e6f7420656e6f75676820457468657220746f2070617920666f72207468652060448201527f6c61756e6368000000000000000000000000000000000000000000000000000060648201526084016108fc565b604051819033907fe6ec44745d354bae68c3bea098996f4e8f2c042fc3dcc9d3a1ae2fadcc117ad090600090a350565b60606001805461092490614856565b6006546001600160a01b0316331480611f4f5750600d546001600160a01b031633145b611fb25760405162461bcd60e51b815260206004820152602e60248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526d103737b9103a34329030b236b4b760911b60648201526084016108fc565b60008281526002602052604090205482906001600160a01b031661202d5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084016108fc565b81600f84815481106120415761204161490c565b90600052602060002090600902016003019080519060200190610dc69291906139a5565b6001600160a01b0382163314156120be5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c65720000000000000060448201526064016108fc565b3360008181526005602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6006546001600160a01b031633148061214d5750600d546001600160a01b031633145b6121b05760405162461bcd60e51b815260206004820152602e60248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526d103737b9103a34329030b236b4b760911b60648201526084016108fc565b60008681526002602052604090205486906001600160a01b031661222b5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084016108fc565b6000600f88815481106122405761224061490c565b600091825260209182902089516009909202019250612264918391908a01906139a5565b50855161227a90600183019060208901906139a5565b50845161229090600283019060208801906139a5565b5083516122a690600383019060208701906139a5565b5060080191909155505050505050565b6006546001600160a01b03163314806122d95750600d546001600160a01b031633145b61233c5760405162461bcd60e51b815260206004820152602e60248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526d103737b9103a34329030b236b4b760911b60648201526084016108fc565b60008281526002602052604090205482906001600160a01b03166123b75760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084016108fc565b81600f84815481106123cb576123cb61490c565b90600052602060002090600902016000019080519060200190610dc69291906139a5565b6123f93383612ad6565b61246b5760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f76656400000000000000000000000000000060648201526084016108fc565b610dc684848484613242565b6000818152600260205260409020546060906001600160a01b03166125045760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201527f6e6578697374656e7420746f6b656e000000000000000000000000000000000060648201526084016108fc565b600061250e6125eb565b9050600081511161252e5760405180602001604052806000815250612559565b80612538846132cb565b60405160200161254992919061432e565b6040516020818303038152906040525b9392505050565b6006546001600160a01b03163314806125835750600d546001600160a01b031633145b6125e65760405162461bcd60e51b815260206004820152602e60248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526d103737b9103a34329030b236b4b760911b60648201526084016108fc565b600755565b60606009805461092490614856565b6060600a805461092490614856565b6006546001600160a01b031633146126635760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016108fc565b6001600160a01b0381166126df5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f646472657373000000000000000000000000000000000000000000000000000060648201526084016108fc565b6006546040516001600160a01b038084169216907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a36006805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0392909216919091179055565b6006546001600160a01b031633148061276b5750600d546001600160a01b031633145b6127ce5760405162461bcd60e51b815260206004820152602e60248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526d103737b9103a34329030b236b4b760911b60648201526084016108fc565b60008281526002602052604090205482906001600160a01b03166128495760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084016108fc565b81600f848154811061285d5761285d61490c565b906000526020600020906009020160080181905550505050565b600c546040517fde7bf0a20000000000000000000000000000000000000000000000000000000081523360048201526024810185905260448101849052606481018390526001600160a01b0390911690819063de7bf0a290608401600060405180830381600087803b1580156128ec57600080fd5b505af1158015612900573d6000803e3d6000fd5b50506040805161014081018252600061012082018181528252825160208181018552828252808401919091528351808201855282815283850152835180820190945281845260608301939093526080820189905260a0820188905260c082018790524260e08301526101008201819052600f805460018101825591528151805192955060099091027f8d1108e10bcb7c27dddfc02ed9d693a074039d026cf4ea4240b40f7d581ac8020193506129ba9284929101906139a5565b5060208281015180516129d392600185019201906139a5565b50604082015180516129ef9160028401916020909101906139a5565b5060608201518051612a0b9160038401916020909101906139a5565b506080820151600482015560a0820151600582015560c0820151600682015560e0820151600782015561010090910151600890910155600f54610dc6903390612a5690600190614813565b6133c9565b6000818152600460205260409020805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0384169081179091558190612a9d826112dc565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000818152600260205260408120546001600160a01b0316612b4f5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084016108fc565b6000612b5a836112dc565b9050806001600160a01b0316846001600160a01b03161480612b955750836001600160a01b0316612b8a846109a7565b6001600160a01b0316145b80612bc557506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b0316612be0826112dc565b6001600160a01b031614612c5c5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201527f73206e6f74206f776e000000000000000000000000000000000000000000000060648201526084016108fc565b6001600160a01b038216612cd75760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f2061646460448201527f726573730000000000000000000000000000000000000000000000000000000060648201526084016108fc565b612ce2600082612a5b565b6001600160a01b0383166000908152600360205260408120805460019290612d0b908490614813565b90915550506001600160a01b0382166000908152600360205260408120805460019290612d399084906147a3565b9091555050600081815260026020526040808220805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b600081604051602001612dba9190614312565b6040516020818303038152906040528051906020012083604051602001612de19190614312565b6040516020818303038152906040528051906020012014905092915050565b606061089c600e8381548110612e1857612e1861490c565b9060005260206000200154613518565b60408051808201909152600981527f323032312e3139322e000000000000000000000000000000000000000000000060208201526060906000612e6a84613648565b905060648410612e9d578181604051602001612e8792919061432e565b6040516020818303038152906040529150612edd565b600a8410612eb8578181604051602001612e8792919061435d565b8181604051602001612ecb929190614491565b60405160208183030381529060405291505b5092915050565b6060816000805b825181101561313957612f1d838281518110612f0957612f0961490c565b01602001516001600160f81b031916613771565b838281518110612f2f57612f2f61490c565b60200101906001600160f81b031916908160001a905350828181518110612f5857612f5861490c565b6020910101516001600160f81b0319167f20000000000000000000000000000000000000000000000000000000000000001480612fd55750828181518110612fa257612fa261490c565b6020910101516001600160f81b0319167f2700000000000000000000000000000000000000000000000000000000000000145b1561300d57602d60f81b838281518110612ff157612ff161490c565b60200101906001600160f81b031916908160001a905350613127565b82818151811061301f5761301f61490c565b6020910101516001600160f81b0319167fc300000000000000000000000000000000000000000000000000000000000000141561309357600083828151811061306a5761306a61490c565b60200101906001600160f81b031916908160001a9053508161308b81614891565b925050613127565b8281815181106130a5576130a561490c565b6020910101516001600160f81b0319167fa8000000000000000000000000000000000000000000000000000000000000001415613127577f650000000000000000000000000000000000000000000000000000000000000083828151811061310f5761310f61490c565b60200101906001600160f81b031916908160001a9053505b8061313181614891565b915050612eeb565b5080613146575092915050565b60008183516131559190614813565b67ffffffffffffffff81111561316d5761316d614922565b6040519080825280601f01601f191660200182016040528015613197576020820181803683370190505b5090506000805b8451811015613237578481815181106131b9576131b961490c565b01602001516001600160f81b0319166131d157613225565b8481815181106131e3576131e361490c565b602001015160f81c60f81b8383815181106132005761320061490c565b60200101906001600160f81b031916908160001a9053508161322181614891565b9250505b8061322f81614891565b91505061319e565b509095945050505050565b61324d848484612bcd565b613259848484846137f8565b610dc65760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e746572000000000000000000000000000060648201526084016108fc565b6060816132ef5750506040805180820190915260018152600360fc1b602082015290565b8160005b8115613319578061330381614891565b91506133129050600a836147e0565b91506132f3565b60008167ffffffffffffffff81111561333457613334614922565b6040519080825280601f01601f19166020018201604052801561335e576020820181803683370190505b5090505b8415612bc557613373600183614813565b9150613380600a866148cc565b61338b9060306147a3565b60f81b8183815181106133a0576133a061490c565b60200101906001600160f81b031916908160001a9053506133c2600a866147e0565b9450613362565b6001600160a01b03821661341f5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f206164647265737360448201526064016108fc565b6000818152600260205260409020546001600160a01b0316156134845760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e7465640000000060448201526064016108fc565b6001600160a01b03821660009081526003602052604081208054600192906134ad9084906147a3565b9091555050600081815260026020526040808220805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b606060005b60208160ff161080156135515750828160ff16602081106135405761354061490c565b1a60f81b6001600160f81b03191615155b156135685780613560816148ac565b91505061351d565b60008160ff1667ffffffffffffffff81111561358657613586614922565b6040519080825280601f01601f1916602001820160405280156135b0576020820181803683370190505b509050600091505b60208260ff161080156135ec5750838260ff16602081106135db576135db61490c565b1a60f81b6001600160f81b03191615155b1561255957838260ff16602081106136065761360661490c565b1a60f81b818360ff168151811061361f5761361f61490c565b60200101906001600160f81b031916908160001a90535081613640816148ac565b9250506135b8565b60608161366c5750506040805180820190915260018152600360fc1b602082015290565b8160005b8115613696578061368081614891565b915061368f9050600a836147e0565b9150613670565b60008167ffffffffffffffff8111156136b1576136b1614922565b6040519080825280601f01601f1916602001820160405280156136db576020820181803683370190505b509050815b8515613768576136f1600182614813565b90506000613700600a886147e0565b61370b90600a6147f4565b6137159088614813565b6137209060306147bb565b905060008160f81b90508084848151811061373d5761373d61490c565b60200101906001600160f81b031916908160001a90535061375f600a896147e0565b975050506136e0565b50949350505050565b60007f41000000000000000000000000000000000000000000000000000000000000006001600160f81b03198316108015906137d757507f5a000000000000000000000000000000000000000000000000000000000000006001600160f81b0319831611155b156137f4576137eb60f883901c60206147bb565b60f81b92915050565b5090565b60006001600160a01b0384163b1561399a576040517f150b7a020000000000000000000000000000000000000000000000000000000081526001600160a01b0385169063150b7a0290613855903390899088908890600401614540565b602060405180830381600087803b15801561386f57600080fd5b505af192505050801561389f575060408051601f3d908101601f1916820190925261389c91810190613ea0565b60015b61394f573d8080156138cd576040519150601f19603f3d011682016040523d82523d6000602084013e6138d2565b606091505b5080516139475760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e746572000000000000000000000000000060648201526084016108fc565b805181602001fd5b7fffffffff00000000000000000000000000000000000000000000000000000000167f150b7a0200000000000000000000000000000000000000000000000000000000149050612bc5565b506001949350505050565b8280546139b190614856565b90600052602060002090601f0160209004810192826139d35760008555613a19565b82601f106139ec57805160ff1916838001178555613a19565b82800160010185558215613a19579182015b82811115613a195782518255916020019190600101906139fe565b506137f4929150613b90565b604051806102000160405280600081526020016060815260200160608152602001606081526020016060815260200160608152602001606081526020016060815260200160608152602001600081526020016000815260200160008152602001600015158152602001613adf60405180610120016040528060008152602001606081526020016060815260200160608152602001600015158152602001606081526020016060815260200160008152602001600081525090565b8152602001613b3560405180610120016040528060008152602001606081526020016060815260200160608152602001600015158152602001606081526020016060815260200160008152602001600081525090565b8152602001613b8b60405180610120016040528060008152602001606081526020016060815260200160608152602001600015158152602001606081526020016060815260200160008152602001600081525090565b905290565b5b808211156137f45760008155600101613b91565b6000613bb8613bb38461477b565b61474a565b9050828152838383011115613bcc57600080fd5b828260208301376000602084830101529392505050565b80356001600160a01b0381168114613bfa57600080fd5b919050565b8051613bfa81614938565b600082601f830112613c1b57600080fd5b61255983833560208501613ba5565b600082601f830112613c3b57600080fd5b8151613c49613bb38261477b565b818152846020838601011115613c5e57600080fd5b612bc582602083016020870161482a565b600060208284031215613c8157600080fd5b61255982613be3565b60008060408385031215613c9d57600080fd5b613ca683613be3565b9150613cb460208401613be3565b90509250929050565b600080600060608486031215613cd257600080fd5b613cdb84613be3565b9250613ce960208501613be3565b9150604084013590509250925092565b60008060008060808587031215613d0f57600080fd5b613d1885613be3565b9350613d2660208601613be3565b925060408501359150606085013567ffffffffffffffff811115613d4957600080fd5b8501601f81018713613d5a57600080fd5b613d6987823560208401613ba5565b91505092959194509250565b60008060408385031215613d8857600080fd5b613d9183613be3565b91506020830135613da181614938565b809150509250929050565b60008060408385031215613dbf57600080fd5b613dc883613be3565b946020939093013593505050565b60006020808385031215613de957600080fd5b823567ffffffffffffffff80821115613e0157600080fd5b818501915085601f830112613e1557600080fd5b813581811115613e2757613e27614922565b8060051b9150613e3884830161474a565b8181528481019084860184860187018a1015613e5357600080fd5b600095505b83861015613e76578035835260019590950194918601918601613e58565b5098975050505050505050565b600060208284031215613e9557600080fd5b813561255981614946565b600060208284031215613eb257600080fd5b815161255981614946565b600060208284031215613ecf57600080fd5b813567ffffffffffffffff811115613ee657600080fd5b612bc584828501613c0a565b600060208284031215613f0457600080fd5b815167ffffffffffffffff80821115613f1c57600080fd5b908301906101208286031215613f3157600080fd5b613f39614720565b82518152602083015182811115613f4f57600080fd5b613f5b87828601613c2a565b602083015250604083015182811115613f7357600080fd5b613f7f87828601613c2a565b604083015250606083015182811115613f9757600080fd5b613fa387828601613c2a565b606083015250613fb560808401613bff565b608082015260a083015182811115613fcc57600080fd5b613fd887828601613c2a565b60a08301525060c083015182811115613ff057600080fd5b613ffc87828601613c2a565b60c08301525060e083810151908201526101009283015192810192909252509392505050565b60006020828403121561403457600080fd5b5035919050565b6000806040838503121561404e57600080fd5b82359150602083013567ffffffffffffffff81111561406c57600080fd5b61407885828601613c0a565b9150509250929050565b60008060008060008060c0878903121561409b57600080fd5b86359550602087013567ffffffffffffffff808211156140ba57600080fd5b6140c68a838b01613c0a565b965060408901359150808211156140dc57600080fd5b6140e88a838b01613c0a565b955060608901359150808211156140fe57600080fd5b61410a8a838b01613c0a565b9450608089013591508082111561412057600080fd5b5061412d89828a01613c0a565b92505060a087013590509295509295509295565b6000806040838503121561415457600080fd5b50508035926020909101359150565b60008060006060848603121561417857600080fd5b505081359360208301359350604090920135919050565b600081518084526141a781602086016020860161482a565b601f01601f19169290920160200192915050565b8054600090600181811c90808316806141d557607f831692505b60208084108214156141f757634e487b7160e01b600052602260045260246000fd5b81801561420b576001811461421c57614249565b60ff19861689528489019650614249565b60008881526020902060005b868110156142415781548b820152908501908301614228565b505084890196505b50505050505092915050565b60006101208251845260208301518160208601526142758286018261418f565b9150506040830151848203604086015261428f828261418f565b915050606083015184820360608601526142a9828261418f565b91505060808301516142bf608086018215159052565b5060a083015184820360a08601526142d7828261418f565b91505060c083015184820360c08601526142f1828261418f565b60e08581015190870152610100948501519490950193909352509192915050565b6000825161432481846020870161482a565b9190910192915050565b6000835161434081846020880161482a565b83519083019061435481836020880161482a565b01949350505050565b6000835161436f81846020880161482a565b600360fc1b908301908152835161438d81600184016020880161482a565b01600101949350505050565b600083516143ab81846020880161482a565b7f2d0000000000000000000000000000000000000000000000000000000000000090830190815283516143e581600184016020880161482a565b7f2d737469636b657200000000000000000000000000000000000000000000000060019290910191820152600901949350505050565b6000845161442d81846020890161482a565b80830190507f2d000000000000000000000000000000000000000000000000000000000000008082528551614469816001850160208a0161482a565b6001920191820152835161448481600284016020880161482a565b0160020195945050505050565b600083516144a381846020880161482a565b7f303000000000000000000000000000000000000000000000000000000000000090830190815283516144dd81600284016020880161482a565b01600201949350505050565b60006144fe6144f883876141bb565b856141bb565b835161450e81836020880161482a565b7f2e706e6700000000000000000000000000000000000000000000000000000000910190815260040195945050505050565b60006001600160a01b03808716835280861660208401525083604083015260806060830152614572608083018461418f565b9695505050505050565b602081526000612559602083018461418f565b6020815281516020820152600060208301516102008060408501526145b861022085018361418f565b91506040850151601f19808685030160608701526145d6848361418f565b935060608701519150808685030160808701526145f3848361418f565b935060808701519150808685030160a0870152614610848361418f565b935060a08701519150808685030160c087015261462d848361418f565b935060c08701519150808685030160e087015261464a848361418f565b935060e08701519150610100818786030181880152614669858461418f565b945080880151925050610120818786030181880152614688858461418f565b9088015161014088810191909152880151610160808901919091528801516101808089019190915288015190945091506101a06146c88188018415159052565b808801519250506101c08187860301818801526146e58584614255565b9450808801519250506101e08187860301818801526147048584614255565b9088015187820390920184880152935090506145728382614255565b604051610120810167ffffffffffffffff8111828210171561474457614744614922565b60405290565b604051601f8201601f1916810167ffffffffffffffff8111828210171561477357614773614922565b604052919050565b600067ffffffffffffffff82111561479557614795614922565b50601f01601f191660200190565b600082198211156147b6576147b66148e0565b500190565b600060ff821660ff84168060ff038211156147d8576147d86148e0565b019392505050565b6000826147ef576147ef6148f6565b500490565b600081600019048311821515161561480e5761480e6148e0565b500290565b600082821015614825576148256148e0565b500390565b60005b8381101561484557818101518382015260200161482d565b83811115610dc65750506000910152565b600181811c9082168061486a57607f821691505b6020821081141561488b57634e487b7160e01b600052602260045260246000fd5b50919050565b60006000198214156148a5576148a56148e0565b5060010190565b600060ff821660ff8114156148c3576148c36148e0565b60010192915050565b6000826148db576148db6148f6565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b801515811461107457600080fd5b7fffffffff000000000000000000000000000000000000000000000000000000008116811461107457600080fdfea2646970667358221220a3cfc8012dc43bb86d35b85be77d870014aeb7c47506022d482a112f985134c364736f6c63430008060033

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.