ETH Price: $3,033.26 (+4.00%)
 

Overview

Max Total Supply

273 TSRC

Holders

131

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Balance
1 TSRC
0xdb1001c08a1ead1ee6a5e116e5e1616dd86e6c6c
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:
RocketComponent

Compiler Version
v0.8.6+commit.11564f7e

Optimization Enabled:
Yes with 2000 runs

Other Settings:
default evmVersion
File 1 of 13 : 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 2 of 13 : 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 3 of 13 : 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 4 of 13 : 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 5 of 13 : 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 6 of 13 : 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 7 of 13 : 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 8 of 13 : 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 9 of 13 : 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 10 of 13 : 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 11 of 13 : 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 12 of 13 : 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 13 of 13 : 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":"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":"uint16[]","name":"_availableComponents","type":"uint16[]"}],"name":"addAvailableComponents","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"components":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"stickerId","type":"uint256"}],"internalType":"struct RocketComponent.ComponentSticker[]","name":"_componentStickers","type":"tuple[]"}],"name":"addComponentStickers","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"components":[{"internalType":"string","name":"brand","type":"string"},{"internalType":"uint256","name":"from","type":"uint256"},{"internalType":"uint256","name":"to","type":"uint256"}],"internalType":"struct RocketComponent.ComponentModel[]","name":"_components","type":"tuple[]"}],"name":"addComponents","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string[]","name":"_stickers","type":"string[]"}],"name":"addStickers","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":"address","name":"_owner","type":"address"},{"internalType":"uint256","name":"_noseId","type":"uint256"},{"internalType":"uint256","name":"_bodyId","type":"uint256"},{"internalType":"uint256","name":"_tailId","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"amount","type":"uint16"}],"name":"claim","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getAvailableComponents","outputs":[{"internalType":"uint16[]","name":"","type":"uint16[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getAvailableComponentsCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getClaimPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"getClaimedComponentsPerAddress","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getIpfsBaseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getRocketFactoryContract","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"stickerId","type":"uint256"}],"name":"getSticker","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getStickers","outputs":[{"internalType":"string[]","name":"","type":"string[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getTestFlightCrewContract","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"isInAvailableComponents","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"},{"internalType":"address","name":"to","type":"address"}],"name":"ownerClaim","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint16","name":"tokenId","type":"uint16"}],"name":"removeFromAvailableComponents","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"resetAvailableComponents","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":"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":"","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":"string","name":"_uri","type":"string"}],"name":"setBaseTokenURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_claimPrice","type":"uint256"}],"name":"setClaimPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_claimStartDate","type":"uint256"}],"name":"setClaimStartDate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_earlyAccessStartDate","type":"uint256"}],"name":"setEarlyAccessStartDate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_ipfsBaseURI","type":"string"}],"name":"setIpfsBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"_maxClaimsPerAddress","type":"uint16"}],"name":"setMaxClaimsPerAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"setRocketFactoryContract","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"setTestFlightCrewContract","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"}]

60806040523480156200001157600080fd5b50604080518082018252601b81527f546f6d20536163687320526f636b657420436f6d706f6e656e747300000000006020808301918252835180850190945260048452635453524360e01b908401528151919291620000739160009162000155565b5080516200008990600190602084019062000155565b50505060006200009e6200015160201b60201c565b600680546001600160a01b0319166001600160a01b038316908117909155604051919250906000907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a35060128054600181018255600091909152604080518082019091526004808252636e6f6e6560e01b60209092019182526200014a927fbb8a6a4669ba250d26cd7a459eca9d215f8307e33aebe50379bc5a3617ec344401919062000155565b5062000238565b3390565b8280546200016390620001fb565b90600052602060002090601f016020900481019282620001875760008555620001d2565b82601f10620001a257805160ff1916838001178555620001d2565b82800160010185558215620001d2579182015b82811115620001d2578251825591602001919060010190620001b5565b50620001e0929150620001e4565b5090565b5b80821115620001e05760008155600101620001e5565b600181811c908216806200021057607f821691505b602082108114156200023257634e487b7160e01b600052602260045260246000fd5b50919050565b614f1c80620002486000396000f3fe6080604052600436106103125760003560e01c80637219debc1161019a578063c609b03e116100e1578063e985e9c51161008a578063f29a871e11610064578063f29a871e146108d1578063f2fde38b146108f1578063feb6ce691461091157600080fd5b8063e985e9c514610855578063edac5f3e1461089e578063ef9e975f146108b157600080fd5b8063d547cfb7116100bb578063d547cfb71461080b578063de7bf0a214610820578063e4e817ff1461084057600080fd5b8063c609b03e146107b6578063c87b56dd146107d6578063d208810f146107f657600080fd5b806393b13c1511610143578063a22cb4651161011d578063a22cb46514610756578063a88210f914610776578063b88d4fde1461079657600080fd5b806393b13c15146106df57806395d89b41146106f4578063a0928b0d1461070957600080fd5b80637f23fb0c116101745780637f23fb0c1461067f5780638da5cb5b146106945780638f88708b146106b257600080fd5b80637219debc1461061f57806378a63c4c1461063f5780637b2d3e691461065f57600080fd5b806330176e131161025e5780635561358e116102075780636cf6bb9d116101e15780636cf6bb9d146105ca57806370a08231146105ea578063715018a61461060a57600080fd5b80635561358e146105735780636352211e146105955780636bac0969146105b557600080fd5b806342842e0e1161023857806342842e0e14610513578063462c86cb1461053357806351f468c01461055357600080fd5b806330176e13146104be5780633267ae68146104de5780633ccfd60b146104fe57600080fd5b806318ac1950116102c057806324ac8a951161029a57806324ac8a951461045e5780632c1e816d1461047e5780632ddb26ce1461049e57600080fd5b806318ac19501461040757806321f6d5871461042957806323b872dd1461043e57600080fd5b8063081812fc116102f1578063081812fc14610390578063095ea7b3146103c857806318160ddd146103e857600080fd5b8062c918a71461031757806301ffc9a71461033957806306fdde031461036e575b600080fd5b34801561032357600080fd5b50610337610332366004614164565b610931565b005b34801561034557600080fd5b506103596103543660046146c6565b6109d9565b60405190151581526020015b60405180910390f35b34801561037a57600080fd5b50610383610abe565b6040516103659190614b68565b34801561039c57600080fd5b506103b06103ab366004614750565b610b50565b6040516001600160a01b039091168152602001610365565b3480156103d457600080fd5b506103376103e33660046142a6565b610bf6565b3480156103f457600080fd5b506007545b604051908152602001610365565b34801561041357600080fd5b5061041c610d28565b6040516103659190614aa0565b34801561043557600080fd5b506008546103f9565b34801561044a57600080fd5b506103376104593660046141b2565b610e01565b34801561046a57600080fd5b506103376104793660046144c2565b610e88565b34801561048a57600080fd5b50610337610499366004614164565b610f71565b3480156104aa57600080fd5b506103376104b9366004614700565b611014565b3480156104ca57600080fd5b506103376104d9366004614700565b61109b565b3480156104ea57600080fd5b506103376104f9366004614735565b611122565b34801561050a57600080fd5b506103376112c0565b34801561051f57600080fd5b5061033761052e3660046141b2565b611363565b34801561053f57600080fd5b5061033761054e36600461457d565b61137e565b34801561055f57600080fd5b5061033761056e366004614750565b611469565b34801561057f57600080fd5b506105886114e2565b6040516103659190614b20565b3480156105a157600080fd5b506103b06105b0366004614750565b6115d6565b3480156105c157600080fd5b50610337611661565b3480156105d657600080fd5b506103376105e53660046143c6565b6116e3565b3480156105f657600080fd5b506103f9610605366004614164565b6117d9565b34801561061657600080fd5b50610337611873565b34801561062b57600080fd5b5061033761063a366004614750565b611912565b34801561064b57600080fd5b5061033761065a366004614164565b61198b565b34801561066b57600080fd5b5061033761067a366004614750565b611a2e565b34801561068b57600080fd5b506103b0611aa7565b3480156106a057600080fd5b506006546001600160a01b03166103b0565b3480156106be57600080fd5b506106d26106cd366004614750565b611b2e565b6040516103659190614b7b565b3480156106eb57600080fd5b506011546103f9565b34801561070057600080fd5b5061038361200c565b34801561071557600080fd5b50610743610724366004614164565b6001600160a01b031660009081526016602052604090205461ffff1690565b60405161ffff9091168152602001610365565b34801561076257600080fd5b5061033761077136600461426a565b61201b565b34801561078257600080fd5b5061033761079136600461461c565b6120e0565b3480156107a257600080fd5b506103376107b13660046141ee565b612195565b3480156107c257600080fd5b506103376107d1366004614309565b612223565b3480156107e257600080fd5b506103836107f1366004614750565b6122fc565b34801561080257600080fd5b506103b06123e5565b34801561081757600080fd5b5061038361246c565b34801561082c57600080fd5b5061033761083b3660046142d0565b61247b565b34801561084c57600080fd5b506103836126cb565b34801561086157600080fd5b5061035961087036600461417f565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b6103376108ac366004614735565b6126da565b3480156108bd57600080fd5b506103376108cc366004614735565b612c07565b3480156108dd57600080fd5b506103596108ec366004614750565b612cb0565b3480156108fd57600080fd5b5061033761090c366004614164565b612d96565b34801561091d57600080fd5b5061038361092c366004614750565b612ec3565b6006546001600160a01b031633148061095457506010546001600160a01b031633145b6109aa5760405162461bcd60e51b815260206004820152602e6024820152600080516020614ec783398151915260448201526d103737b9103a34329030b236b4b760911b60648201526084015b60405180910390fd5b600e805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0392909216919091179055565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f80ac58cd000000000000000000000000000000000000000000000000000000001480610a6c57507fffffffff0000000000000000000000000000000000000000000000000000000082167f5b5e139f00000000000000000000000000000000000000000000000000000000145b80610ab857507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff000000000000000000000000000000000000000000000000000000008316145b92915050565b606060008054610acd90614dc0565b80601f0160208091040260200160405190810160405280929190818152602001828054610af990614dc0565b8015610b465780601f10610b1b57610100808354040283529160200191610b46565b820191906000526020600020905b815481529060010190602001808311610b2957829003601f168201915b5050505050905090565b6000818152600260205260408120546001600160a01b0316610bda5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201527f697374656e7420746f6b656e000000000000000000000000000000000000000060648201526084016109a1565b506000908152600460205260409020546001600160a01b031690565b6000610c01826115d6565b9050806001600160a01b0316836001600160a01b03161415610c8b5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560448201527f720000000000000000000000000000000000000000000000000000000000000060648201526084016109a1565b336001600160a01b0382161480610ca75750610ca78133610870565b610d195760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c000000000000000060648201526084016109a1565b610d238383612f72565b505050565b60606012805480602002602001604051908101604052809291908181526020016000905b82821015610df8578382906000526020600020018054610d6b90614dc0565b80601f0160208091040260200160405190810160405280929190818152602001828054610d9790614dc0565b8015610de45780601f10610db957610100808354040283529160200191610de4565b820191906000526020600020905b815481529060010190602001808311610dc757829003601f168201915b505050505081526020019060010190610d4c565b50505050905090565b610e0b3382612fed565b610e7d5760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f76656400000000000000000000000000000060648201526084016109a1565b610d238383836130f5565b6006546001600160a01b0316331480610eab57506010546001600160a01b031633145b610efc5760405162461bcd60e51b815260206004820152602e6024820152600080516020614ec783398151915260448201526d103737b9103a34329030b236b4b760911b60648201526084016109a1565b60005b8151811015610f6d57818181518110610f1a57610f1a614e6c565b60200260200101516020015160156000848481518110610f3c57610f3c614e6c565b6020026020010151600001518152602001908152602001600020819055508080610f6590614dfb565b915050610eff565b5050565b6006546001600160a01b0316331480610f9457506010546001600160a01b031633145b610fe55760405162461bcd60e51b815260206004820152602e6024820152600080516020614ec783398151915260448201526d103737b9103a34329030b236b4b760911b60648201526084016109a1565b6010805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0392909216919091179055565b6006546001600160a01b031633148061103757506010546001600160a01b031633145b6110885760405162461bcd60e51b815260206004820152602e6024820152600080516020614ec783398151915260448201526d103737b9103a34329030b236b4b760911b60648201526084016109a1565b8051610f6d90600d90602084019061400d565b6006546001600160a01b03163314806110be57506010546001600160a01b031633145b61110f5760405162461bcd60e51b815260206004820152602e6024820152600080516020614ec783398151915260448201526d103737b9103a34329030b236b4b760911b60648201526084016109a1565b8051610f6d90600c90602084019061400d565b6006546001600160a01b031633148061114557506010546001600160a01b031633145b6111965760405162461bcd60e51b815260206004820152602e6024820152600080516020614ec783398151915260448201526d103737b9103a34329030b236b4b760911b60648201526084016109a1565b60005b601154811015610f6d578161ffff16601182815481106111bb576111bb614e6c565b60009182526020909120601082040154600f9091166002026101000a900461ffff16146111e7576112ae565b601180546111f790600190614d7d565b8154811061120757611207614e6c565b90600052602060002090601091828204019190066002029054906101000a900461ffff166011828154811061123e5761123e614e6c565b90600052602060002090601091828204019190066002026101000a81548161ffff021916908361ffff160217905550601180548061127e5761127e614e56565b600082815260209020601060001990920191820401805461ffff6002600f8516026101000a021916905590555050565b806112b881614dfb565b915050611199565b6006546001600160a01b03163314806112e357506010546001600160a01b031633145b6113345760405162461bcd60e51b815260206004820152602e6024820152600080516020614ec783398151915260448201526d103737b9103a34329030b236b4b760911b60648201526084016109a1565b60405133904780156108fc02916000818181858888f19350505050158015611360573d6000803e3d6000fd5b50565b610d2383838360405180602001604052806000815250612195565b6006546001600160a01b03163314806113a157506010546001600160a01b031633145b6113f25760405162461bcd60e51b815260206004820152602e6024820152600080516020614ec783398151915260448201526d103737b9103a34329030b236b4b760911b60648201526084016109a1565b60005b8151811015610f6d57601182828151811061141257611412614e6c565b602090810291909101810151825460018101845560009384529190922060108204018054600f9092166002026101000a61ffff8181021990931692909316929092021790558061146181614dfb565b9150506113f5565b6006546001600160a01b031633148061148c57506010546001600160a01b031633145b6114dd5760405162461bcd60e51b815260206004820152602e6024820152600080516020614ec783398151915260448201526d103737b9103a34329030b236b4b760911b60648201526084016109a1565b600855565b6006546060906001600160a01b031633148061150857506010546001600160a01b031633145b6115595760405162461bcd60e51b815260206004820152602e6024820152600080516020614ec783398151915260448201526d103737b9103a34329030b236b4b760911b60648201526084016109a1565b6011805480602002602001604051908101604052809291908181526020018280548015610b4657602002820191906000526020600020906000905b82829054906101000a900461ffff1661ffff16815260200190600201906020826001010492830192600103820291508084116115945790505050505050905090565b6000818152600260205260408120546001600160a01b031680610ab85760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201527f656e7420746f6b656e000000000000000000000000000000000000000000000060648201526084016109a1565b6006546001600160a01b031633148061168457506010546001600160a01b031633145b6116d55760405162461bcd60e51b815260206004820152602e6024820152600080516020614ec783398151915260448201526d103737b9103a34329030b236b4b760911b60648201526084016109a1565b6116e16011600061408d565b565b6006546001600160a01b031633148061170657506010546001600160a01b031633145b6117575760405162461bcd60e51b815260206004820152602e6024820152600080516020614ec783398151915260448201526d103737b9103a34329030b236b4b760911b60648201526084016109a1565b60005b8151811015610f6d57601382828151811061177757611777614e6c565b6020908102919091018101518254600181018455600093845292829020815180519294600302909101926117b09284929091019061400d565b5060208201516001820155604090910151600290910155806117d181614dfb565b91505061175a565b60006001600160a01b0382166118575760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a6560448201527f726f20616464726573730000000000000000000000000000000000000000000060648201526084016109a1565b506001600160a01b031660009081526003602052604090205490565b6006546001600160a01b031633146118bb5760405162461bcd60e51b81526020600482018190526024820152600080516020614ec783398151915260448201526064016109a1565b6006546040516000916001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a36006805473ffffffffffffffffffffffffffffffffffffffff19169055565b6006546001600160a01b031633148061193557506010546001600160a01b031633145b6119865760405162461bcd60e51b815260206004820152602e6024820152600080516020614ec783398151915260448201526d103737b9103a34329030b236b4b760911b60648201526084016109a1565b600955565b6006546001600160a01b03163314806119ae57506010546001600160a01b031633145b6119ff5760405162461bcd60e51b815260206004820152602e6024820152600080516020614ec783398151915260448201526d103737b9103a34329030b236b4b760911b60648201526084016109a1565b600f805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0392909216919091179055565b6006546001600160a01b0316331480611a5157506010546001600160a01b031633145b611aa25760405162461bcd60e51b815260206004820152602e6024820152600080516020614ec783398151915260448201526d103737b9103a34329030b236b4b760911b60648201526084016109a1565b600a55565b6006546000906001600160a01b0316331480611acd57506010546001600160a01b031633145b611b1e5760405162461bcd60e51b815260206004820152602e6024820152600080516020614ec783398151915260448201526d103737b9103a34329030b236b4b760911b60648201526084016109a1565b50600e546001600160a01b031690565b611b7f60405180610120016040528060008152602001606081526020016060815260200160608152602001600015158152602001606081526020016060815260200160008152602001600081525090565b60005b601354811015611fc35760138181548110611b9f57611b9f614e6c565b906000526020600020906003020160010154831080611be1575060138181548110611bcc57611bcc614e6c565b90600052602060002090600302016002015483115b15611beb57611fb1565b6000611bf6846132cf565b9050600080611c05868561339f565b60008881526015602052604081205492945090925090606090819015611d055760008981526015602052604090205460128054600195509091908110611c4d57611c4d614e6c565b906000526020600020018054611c6290614dc0565b80601f0160208091040260200160405190810160405280929190818152602001828054611c8e90614dc0565b8015611cdb5780601f10611cb057610100808354040283529160200191611cdb565b820191906000526020600020905b815481529060010190602001808311611cbe57829003601f168201915b5050505050915081604051602001611cf391906149f8565b60405160208183030381529060405290505b60408051808201909152600981527f323032312e3139312e000000000000000000000000000000000000000000000060208201526000611d448b61344d565b90506103e88b10611d78578181604051602001611d629291906147ca565b6040516020818303038152906040529150611dd3565b60648b10611d93578181604051602001611d629291906147f9565b600a8b10611dae578181604051602001611d6292919061488d565b8181604051602001611dc1929190614835565b60405160208183030381529060405291505b6040518061012001604052808c815260200189815260200160138b81548110611dfe57611dfe614e6c565b90600052602060002090600302016000018054611e1a90614dc0565b80601f0160208091040260200160405190810160405280929190818152602001828054611e4690614dc0565b8015611e935780601f10611e6857610100808354040283529160200191611e93565b820191906000526020600020905b815481529060010190602001808311611e7657829003601f168201915b50505050508152602001600d611f5460138d81548110611eb557611eb5614e6c565b90600052602060002090600302016000018054611ed190614dc0565b80601f0160208091040260200160405190810160405280929190818152602001828054611efd90614dc0565b8015611f4a5780601f10611f1f57610100808354040283529160200191611f4a565b820191906000526020600020905b815481529060010190602001808311611f2d57829003601f168201915b5050505050613576565b8b611f5e88613576565b604051602001611f7194939291906148e5565b60408051601f1981840301815291815290825296151560208201529586019490945250606084015250608082019290925260a00191909152949350505050565b80611fbb81614dfb565b915050611b82565b5060405162461bcd60e51b815260206004820152601860248201527f436f6d706f6e656e7420646f6573206e6f74206578697374000000000000000060448201526064016109a1565b606060018054610acd90614dc0565b6001600160a01b0382163314156120745760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c65720000000000000060448201526064016109a1565b3360008181526005602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6006546001600160a01b031633148061210357506010546001600160a01b031633145b6121545760405162461bcd60e51b815260206004820152602e6024820152600080516020614ec783398151915260448201526d103737b9103a34329030b236b4b760911b60648201526084016109a1565b60005b8251811015610d23576121838284838151811061217657612176614e6c565b60200260200101516138d4565b8061218d81614dfb565b915050612157565b61219f3383612fed565b6122115760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f76656400000000000000000000000000000060648201526084016109a1565b61221d848484846139d3565b50505050565b6006546001600160a01b031633148061224657506010546001600160a01b031633145b6122975760405162461bcd60e51b815260206004820152602e6024820152600080516020614ec783398151915260448201526d103737b9103a34329030b236b4b760911b60648201526084016109a1565b60005b8151811015610f6d5760128282815181106122b7576122b7614e6c565b602090810291909101810151825460018101845560009384529282902081516122e9949190910192919091019061400d565b50806122f481614dfb565b91505061229a565b6000818152600260205260409020546060906001600160a01b03166123895760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201527f6e6578697374656e7420746f6b656e000000000000000000000000000000000060648201526084016109a1565b600061239361246c565b905060008151116123b357604051806020016040528060008152506123de565b806123bd84613a5c565b6040516020016123ce9291906147ca565b6040516020818303038152906040525b9392505050565b6006546000906001600160a01b031633148061240b57506010546001600160a01b031633145b61245c5760405162461bcd60e51b815260206004820152602e6024820152600080516020614ec783398151915260448201526d103737b9103a34329030b236b4b760911b60648201526084016109a1565b50600f546001600160a01b031690565b6060600c8054610acd90614dc0565b600e546001600160a01b031633146124fb5760405162461bcd60e51b815260206004820152603260248201527f4f776e61626c653a2063616c6c6572206973206e6f742074686520726f636b6560448201527f7420666163746f727920636f6e7472616374000000000000000000000000000060648201526084016109a1565b836001600160a01b031661250e846115d6565b6001600160a01b031614801561253d5750836001600160a01b0316612532836115d6565b6001600160a01b0316145b80156125625750836001600160a01b0316612557826115d6565b6001600160a01b0316145b6125d45760405162461bcd60e51b815260206004820152602260248201527f496e76616c6964206f776e657220666f7220676976656e20636f6d706f6e656e60448201527f747300000000000000000000000000000000000000000000000000000000000060648201526084016109a1565b6125df600384614e16565b1580156125f657506125f2600383614e16565b6001145b801561260c5750612608600382614e16565b6002145b6126585760405162461bcd60e51b815260206004820152601860248201527f496e76616c696420636f6d706f6e656e747320676976656e000000000000000060448201526064016109a1565b61266183613b5a565b61266a82613b5a565b61267381613b5a565b6000838152601460205260408082208054600160ff1991821681179092558584528284208054821683179055848452918320805490921617905560078054600392906126c0908490614d7d565b909155505050505050565b6060600d8054610acd90614dc0565b60008161ffff16116127545760405162461bcd60e51b815260206004820152602860248201527f4174206c65617374206f6e6520636f6d706f6e656e742073686f756c6420626560448201527f20636c61696d656400000000000000000000000000000000000000000000000060648201526084016109a1565b6011546127a35760405162461bcd60e51b815260206004820181905260248201527f4e6f20636f6d706f6e656e7473206c65667420746f20626520636c61696d656460448201526064016109a1565b600f54600a546001600160a01b0390911690158015906127c5575042600a5411155b8061286d5750426009541115801561286d57506040517f70a082310000000000000000000000000000000000000000000000000000000081523360048201526000906001600160a01b038316906370a082319060240160206040518083038186803b15801561283357600080fd5b505afa158015612847573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061286b9190614769565b115b6128de5760405162461bcd60e51b8152602060048201526024808201527f4974206973206e6f742074696d652079657420746f20737461727420636c616960448201527f6d696e670000000000000000000000000000000000000000000000000000000060648201526084016109a1565b600b543360009081526016602052604090205461ffff9182169161290491859116614cf0565b61ffff1611156129565760405162461bcd60e51b815260206004820181905260248201527f596f752063616e6e6f7420636c61696d206d6f726520636f6d706f6e656e747360448201526064016109a1565b3332146129cb5760405162461bcd60e51b815260206004820152602660248201527f436c61696d2063616e206f6e6c792062652063616c6c65642066726f6d20612060448201527f77616c6c6574000000000000000000000000000000000000000000000000000060648201526084016109a1565b60115461ffff831611156129df5760115491505b60008261ffff166008546129f39190614d5e565b905080341015612a455760405162461bcd60e51b815260206004820152601b60248201527f496e73756666696369656e7420457468657220746f20636c61696d000000000060448201526064016109a1565b80341115612a8557336108fc612a5b8334614d7d565b6040518115909202916000818181858888f19350505050158015612a83573d6000803e3d6000fd5b505b3360009081526016602052604081208054859290612aa890849061ffff16614cf0565b92506101000a81548161ffff021916908361ffff16021790555060005b8361ffff1681101561221d57601154600090612ae090613c02565b9050600060118281548110612af757612af7614e6c565b90600052602060002090601091828204019190066002029054906101000a900461ffff1661ffff16905060116001601180549050612b359190614d7d565b81548110612b4557612b45614e6c565b90600052602060002090601091828204019190066002029054906101000a900461ffff1660118381548110612b7c57612b7c614e6c565b90600052602060002090601091828204019190066002026101000a81548161ffff021916908361ffff1602179055506011805480612bbc57612bbc614e56565b600082815260209020601060001990920191820401805461ffff6002600f8516026101000a02191690559055612bf233826138d4565b50508080612bff90614dfb565b915050612ac5565b6006546001600160a01b0316331480612c2a57506010546001600160a01b031633145b612c7b5760405162461bcd60e51b815260206004820152602e6024820152600080516020614ec783398151915260448201526d103737b9103a34329030b236b4b760911b60648201526084016109a1565b600b80547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00001661ffff92909216919091179055565b6006546000906001600160a01b0316331480612cd657506010546001600160a01b031633145b612d275760405162461bcd60e51b815260206004820152602e6024820152600080516020614ec783398151915260448201526d103737b9103a34329030b236b4b760911b60648201526084016109a1565b60005b601154811015612d8b578260118281548110612d4857612d48614e6c565b60009182526020909120601082040154600f9091166002026101000a900461ffff161415612d795750600192915050565b80612d8381614dfb565b915050612d2a565b50600090505b919050565b6006546001600160a01b03163314612dde5760405162461bcd60e51b81526020600482018190526024820152600080516020614ec783398151915260448201526064016109a1565b6001600160a01b038116612e5a5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f646472657373000000000000000000000000000000000000000000000000000060648201526084016109a1565b6006546040516001600160a01b038084169216907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a36006805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0392909216919091179055565b606060128281548110612ed857612ed8614e6c565b906000526020600020018054612eed90614dc0565b80601f0160208091040260200160405190810160405280929190818152602001828054612f1990614dc0565b8015612f665780601f10612f3b57610100808354040283529160200191612f66565b820191906000526020600020905b815481529060010190602001808311612f4957829003601f168201915b50505050509050919050565b6000818152600460205260409020805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0384169081179091558190612fb4826115d6565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000818152600260205260408120546001600160a01b03166130775760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201527f697374656e7420746f6b656e000000000000000000000000000000000000000060648201526084016109a1565b6000613082836115d6565b9050806001600160a01b0316846001600160a01b031614806130bd5750836001600160a01b03166130b284610b50565b6001600160a01b0316145b806130ed57506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b0316613108826115d6565b6001600160a01b0316146131845760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201527f73206e6f74206f776e000000000000000000000000000000000000000000000060648201526084016109a1565b6001600160a01b0382166131ff5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f2061646460448201527f726573730000000000000000000000000000000000000000000000000000000060648201526084016109a1565b61320a600082612f72565b6001600160a01b0383166000908152600360205260408120805460019290613233908490614d7d565b90915550506001600160a01b0382166000908152600360205260408120805460019290613261908490614d0d565b9091555050600081815260026020526040808220805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b606060006132de600384614e16565b90508061332057505060408051808201909152600481527f6e6f7365000000000000000000000000000000000000000000000000000000006020820152919050565b806001141561336457505060408051808201909152600481527f626f6479000000000000000000000000000000000000000000000000000000006020820152919050565b505060408051808201909152600481527f7461696c000000000000000000000000000000000000000000000000000000006020820152919050565b6000806000806000601386815481106133ba576133ba614e6c565b90600052602060002090600302016001015490505b601386815481106133e2576133e2614e6c565b906000526020600020906003020160020154811161344257613405600388614e16565b613410600383614e16565b1415613424578161342081614dfb565b9250505b80871415613430578192505b8061343a81614dfb565b9150506133cf565b509590945092505050565b6060816134715750506040805180820190915260018152600360fc1b602082015290565b8160005b811561349b578061348581614dfb565b91506134949050600a83614d4a565b9150613475565b60008167ffffffffffffffff8111156134b6576134b6614e82565b6040519080825280601f01601f1916602001820160405280156134e0576020820181803683370190505b509050815b851561356d576134f6600182614d7d565b90506000613505600a88614d4a565b61351090600a614d5e565b61351a9088614d7d565b613525906030614d25565b905060008160f81b90508084848151811061354257613542614e6c565b60200101906001600160f81b031916908160001a905350613564600a89614d4a565b975050506134e5565b50949350505050565b6060816000805b82518110156137cb576135af83828151811061359b5761359b614e6c565b01602001516001600160f81b031916613c8a565b8382815181106135c1576135c1614e6c565b60200101906001600160f81b031916908160001a9053508281815181106135ea576135ea614e6c565b6020910101516001600160f81b0319167f20000000000000000000000000000000000000000000000000000000000000001480613667575082818151811061363457613634614e6c565b6020910101516001600160f81b0319167f2700000000000000000000000000000000000000000000000000000000000000145b1561369f57602d60f81b83828151811061368357613683614e6c565b60200101906001600160f81b031916908160001a9053506137b9565b8281815181106136b1576136b1614e6c565b6020910101516001600160f81b0319167fc30000000000000000000000000000000000000000000000000000000000000014156137255760008382815181106136fc576136fc614e6c565b60200101906001600160f81b031916908160001a9053508161371d81614dfb565b9250506137b9565b82818151811061373757613737614e6c565b6020910101516001600160f81b0319167fa80000000000000000000000000000000000000000000000000000000000000014156137b9577f65000000000000000000000000000000000000000000000000000000000000008382815181106137a1576137a1614e6c565b60200101906001600160f81b031916908160001a9053505b806137c381614dfb565b91505061357d565b50806137d8575092915050565b60008183516137e79190614d7d565b67ffffffffffffffff8111156137ff576137ff614e82565b6040519080825280601f01601f191660200182016040528015613829576020820181803683370190505b5090506000805b84518110156138c95784818151811061384b5761384b614e6c565b01602001516001600160f81b031916613863576138b7565b84818151811061387557613875614e6c565b602001015160f81c60f81b83838151811061389257613892614e6c565b60200101906001600160f81b031916908160001a905350816138b381614dfb565b9250505b806138c181614dfb565b915050613830565b509095945050505050565b60008181526014602052604090205460ff16156139335760405162461bcd60e51b815260206004820152601860248201527f546f6b656e2077617320616c7265616479206275726e6564000000000000000060448201526064016109a1565b6013805461394390600190614d7d565b8154811061395357613953614e6c565b9060005260206000209060030201600201548111156139b45760405162461bcd60e51b815260206004820152601860248201527f546f6b656e4964206973206f7574206f6620626f756e6473000000000000000060448201526064016109a1565b600780549060006139c483614dfb565b9190505550610f6d8282613d11565b6139de8484846130f5565b6139ea84848484613e60565b61221d5760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e746572000000000000000000000000000060648201526084016109a1565b606081613a805750506040805180820190915260018152600360fc1b602082015290565b8160005b8115613aaa5780613a9481614dfb565b9150613aa39050600a83614d4a565b9150613a84565b60008167ffffffffffffffff811115613ac557613ac5614e82565b6040519080825280601f01601f191660200182016040528015613aef576020820181803683370190505b5090505b84156130ed57613b04600183614d7d565b9150613b11600a86614e16565b613b1c906030614d0d565b60f81b818381518110613b3157613b31614e6c565b60200101906001600160f81b031916908160001a905350613b53600a86614d4a565b9450613af3565b6000613b65826115d6565b9050613b72600083612f72565b6001600160a01b0381166000908152600360205260408120805460019290613b9b908490614d7d565b9091555050600082815260026020526040808220805473ffffffffffffffffffffffffffffffffffffffff19169055518391906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b6011546000908190613c15600143614d7d565b6040805160208101939093529040908201527fffffffffffffffffffffffffffffffffffffffff00000000000000000000000041606090811b82168184015244607484015233901b16609482015260a80160408051601f19818403018152919052805160209091012090506123de8382614e16565b60007f41000000000000000000000000000000000000000000000000000000000000006001600160f81b0319831610801590613cf057507f5a000000000000000000000000000000000000000000000000000000000000006001600160f81b0319831611155b15613d0d57613d0460f883901c6020614d25565b60f81b92915050565b5090565b6001600160a01b038216613d675760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f206164647265737360448201526064016109a1565b6000818152600260205260409020546001600160a01b031615613dcc5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e7465640000000060448201526064016109a1565b6001600160a01b0382166000908152600360205260408120805460019290613df5908490614d0d565b9091555050600081815260026020526040808220805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b60006001600160a01b0384163b15614002576040517f150b7a020000000000000000000000000000000000000000000000000000000081526001600160a01b0385169063150b7a0290613ebd903390899088908890600401614a64565b602060405180830381600087803b158015613ed757600080fd5b505af1925050508015613f07575060408051601f3d908101601f19168201909252613f04918101906146e3565b60015b613fb7573d808015613f35576040519150601f19603f3d011682016040523d82523d6000602084013e613f3a565b606091505b508051613faf5760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e746572000000000000000000000000000060648201526084016109a1565b805181602001fd5b7fffffffff00000000000000000000000000000000000000000000000000000000167f150b7a02000000000000000000000000000000000000000000000000000000001490506130ed565b506001949350505050565b82805461401990614dc0565b90600052602060002090601f01602090048101928261403b5760008555614081565b82601f1061405457805160ff1916838001178555614081565b82800160010185558215614081579182015b82811115614081578251825591602001919060010190614066565b50613d0d9291506140ae565b50805460008255600f01601090049060005260206000209081019061136091905b5b80821115613d0d57600081556001016140af565b600067ffffffffffffffff8311156140dd576140dd614e82565b6140f06020601f19601f86011601614c9b565b905082815283838301111561410457600080fd5b828260208301376000602084830101529392505050565b80356001600160a01b0381168114612d9157600080fd5b600082601f83011261414357600080fd5b6123de838335602085016140c3565b803561ffff81168114612d9157600080fd5b60006020828403121561417657600080fd5b6123de8261411b565b6000806040838503121561419257600080fd5b61419b8361411b565b91506141a96020840161411b565b90509250929050565b6000806000606084860312156141c757600080fd5b6141d08461411b565b92506141de6020850161411b565b9150604084013590509250925092565b6000806000806080858703121561420457600080fd5b61420d8561411b565b935061421b6020860161411b565b925060408501359150606085013567ffffffffffffffff81111561423e57600080fd5b8501601f8101871361424f57600080fd5b61425e878235602084016140c3565b91505092959194509250565b6000806040838503121561427d57600080fd5b6142868361411b565b91506020830135801515811461429b57600080fd5b809150509250929050565b600080604083850312156142b957600080fd5b6142c28361411b565b946020939093013593505050565b600080600080608085870312156142e657600080fd5b6142ef8561411b565b966020860135965060408601359560600135945092505050565b6000602080838503121561431c57600080fd5b823567ffffffffffffffff8082111561433457600080fd5b818501915085601f83011261434857600080fd5b813561435b61435682614ccc565b614c9b565b80828252858201915085850189878560051b880101111561437b57600080fd5b6000805b858110156143b657823587811115614395578283fd5b6143a38d8b838c0101614132565b865250938801939188019160010161437f565b50919a9950505050505050505050565b600060208083850312156143d957600080fd5b823567ffffffffffffffff808211156143f157600080fd5b818501915085601f83011261440557600080fd5b813561441361435682614ccc565b80828252858201915085850189878560051b880101111561443357600080fd5b60005b848110156144b35781358681111561444d57600080fd5b87016060818d03601f190181131561446457600080fd5b61446c614c4f565b8a8301358981111561447d57600080fd5b61448b8f8d83870101614132565b8252506040838101358c83015291909201359082015284529287019290870190600101614436565b50909998505050505050505050565b600060208083850312156144d557600080fd5b823567ffffffffffffffff8111156144ec57600080fd5b8301601f810185136144fd57600080fd5b803561450b61435682614ccc565b80828252848201915084840188868560061b870101111561452b57600080fd5b60009450845b8481101561456f57604080838c031215614549578687fd5b614551614c78565b83358152888401358982015285529387019390910190600101614531565b509098975050505050505050565b6000602080838503121561459057600080fd5b823567ffffffffffffffff8111156145a757600080fd5b8301601f810185136145b857600080fd5b80356145c661435682614ccc565b80828252848201915084840188868560051b87010111156145e657600080fd5b600094505b83851015614610576145fc81614152565b8352600194909401939185019185016145eb565b50979650505050505050565b6000806040838503121561462f57600080fd5b823567ffffffffffffffff81111561464657600080fd5b8301601f8101851361465757600080fd5b8035602061466761435683614ccc565b80838252828201915082850189848660051b880101111561468757600080fd5b600095505b848610156146aa57803583526001959095019491830191830161468c565b5095506146ba905086820161411b565b93505050509250929050565b6000602082840312156146d857600080fd5b81356123de81614e98565b6000602082840312156146f557600080fd5b81516123de81614e98565b60006020828403121561471257600080fd5b813567ffffffffffffffff81111561472957600080fd5b6130ed84828501614132565b60006020828403121561474757600080fd5b6123de82614152565b60006020828403121561476257600080fd5b5035919050565b60006020828403121561477b57600080fd5b5051919050565b6000815180845261479a816020860160208601614d94565b601f01601f19169290920160200192915050565b600081516147c0818560208601614d94565b9290920192915050565b600083516147dc818460208801614d94565b8351908301906147f0818360208801614d94565b01949350505050565b6000835161480b818460208801614d94565b600360fc1b9083019081528351614829816001840160208801614d94565b01600101949350505050565b60008351614847818460208801614d94565b7f30303000000000000000000000000000000000000000000000000000000000009083019081528351614881816003840160208801614d94565b01600301949350505050565b6000835161489f818460208801614d94565b7f303000000000000000000000000000000000000000000000000000000000000090830190815283516148d9816002840160208801614d94565b01600201949350505050565b600080865481600182811c91508083168061490157607f831692505b602080841082141561492157634e487b7160e01b86526022600452602486fd5b818015614935576001811461494657614973565b60ff19861689528489019650614973565b60008d81526020902060005b8681101561496b5781548b820152908501908301614952565b505084890196505b5050505050506149ed6149c46149be6149b861498f858b6147ae565b7f2d00000000000000000000000000000000000000000000000000000000000000815260010190565b886147ae565b866147ae565b7f2e706e6700000000000000000000000000000000000000000000000000000000815260040190565b979650505050505050565b7f2d00000000000000000000000000000000000000000000000000000000000000815260008251614a30816001850160208701614d94565b7f2d737469636b65720000000000000000000000000000000000000000000000006001939091019283015250600901919050565b60006001600160a01b03808716835280861660208401525083604083015260806060830152614a966080830184614782565b9695505050505050565b6000602080830181845280855180835260408601915060408160051b870101925083870160005b82811015614b13577fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc0888603018452614b01858351614782565b94509285019290850190600101614ac7565b5092979650505050505050565b6020808252825182820181905260009190848201906040850190845b81811015614b5c57835161ffff1683529284019291840191600101614b3c565b50909695505050505050565b6020815260006123de6020830184614782565b602081528151602082015260006020830151610120806040850152614ba4610140850183614782565b91506040850151601f1980868503016060870152614bc28483614782565b93506060870151915080868503016080870152614bdf8483614782565b935060808701519150614bf660a087018315159052565b60a08701519150808685030160c0870152614c118483614782565b935060c08701519150808685030160e087015250614c2f8382614782565b60e087015161010087810191909152909601519190940152509192915050565b6040516060810167ffffffffffffffff81118282101715614c7257614c72614e82565b60405290565b6040805190810167ffffffffffffffff81118282101715614c7257614c72614e82565b604051601f8201601f1916810167ffffffffffffffff81118282101715614cc457614cc4614e82565b604052919050565b600067ffffffffffffffff821115614ce657614ce6614e82565b5060051b60200190565b600061ffff8083168185168083038211156147f0576147f0614e2a565b60008219821115614d2057614d20614e2a565b500190565b600060ff821660ff84168060ff03821115614d4257614d42614e2a565b019392505050565b600082614d5957614d59614e40565b500490565b6000816000190483118215151615614d7857614d78614e2a565b500290565b600082821015614d8f57614d8f614e2a565b500390565b60005b83811015614daf578181015183820152602001614d97565b8381111561221d5750506000910152565b600181811c90821680614dd457607f821691505b60208210811415614df557634e487b7160e01b600052602260045260246000fd5b50919050565b6000600019821415614e0f57614e0f614e2a565b5060010190565b600082614e2557614e25614e40565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052603160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b7fffffffff000000000000000000000000000000000000000000000000000000008116811461136057600080fdfe4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572a2646970667358221220cada9f196b5dcda428e3cf7d71ad437d04983b2835f9ae1eac04f74eee724d3e64736f6c63430008060033

Deployed Bytecode

0x6080604052600436106103125760003560e01c80637219debc1161019a578063c609b03e116100e1578063e985e9c51161008a578063f29a871e11610064578063f29a871e146108d1578063f2fde38b146108f1578063feb6ce691461091157600080fd5b8063e985e9c514610855578063edac5f3e1461089e578063ef9e975f146108b157600080fd5b8063d547cfb7116100bb578063d547cfb71461080b578063de7bf0a214610820578063e4e817ff1461084057600080fd5b8063c609b03e146107b6578063c87b56dd146107d6578063d208810f146107f657600080fd5b806393b13c1511610143578063a22cb4651161011d578063a22cb46514610756578063a88210f914610776578063b88d4fde1461079657600080fd5b806393b13c15146106df57806395d89b41146106f4578063a0928b0d1461070957600080fd5b80637f23fb0c116101745780637f23fb0c1461067f5780638da5cb5b146106945780638f88708b146106b257600080fd5b80637219debc1461061f57806378a63c4c1461063f5780637b2d3e691461065f57600080fd5b806330176e131161025e5780635561358e116102075780636cf6bb9d116101e15780636cf6bb9d146105ca57806370a08231146105ea578063715018a61461060a57600080fd5b80635561358e146105735780636352211e146105955780636bac0969146105b557600080fd5b806342842e0e1161023857806342842e0e14610513578063462c86cb1461053357806351f468c01461055357600080fd5b806330176e13146104be5780633267ae68146104de5780633ccfd60b146104fe57600080fd5b806318ac1950116102c057806324ac8a951161029a57806324ac8a951461045e5780632c1e816d1461047e5780632ddb26ce1461049e57600080fd5b806318ac19501461040757806321f6d5871461042957806323b872dd1461043e57600080fd5b8063081812fc116102f1578063081812fc14610390578063095ea7b3146103c857806318160ddd146103e857600080fd5b8062c918a71461031757806301ffc9a71461033957806306fdde031461036e575b600080fd5b34801561032357600080fd5b50610337610332366004614164565b610931565b005b34801561034557600080fd5b506103596103543660046146c6565b6109d9565b60405190151581526020015b60405180910390f35b34801561037a57600080fd5b50610383610abe565b6040516103659190614b68565b34801561039c57600080fd5b506103b06103ab366004614750565b610b50565b6040516001600160a01b039091168152602001610365565b3480156103d457600080fd5b506103376103e33660046142a6565b610bf6565b3480156103f457600080fd5b506007545b604051908152602001610365565b34801561041357600080fd5b5061041c610d28565b6040516103659190614aa0565b34801561043557600080fd5b506008546103f9565b34801561044a57600080fd5b506103376104593660046141b2565b610e01565b34801561046a57600080fd5b506103376104793660046144c2565b610e88565b34801561048a57600080fd5b50610337610499366004614164565b610f71565b3480156104aa57600080fd5b506103376104b9366004614700565b611014565b3480156104ca57600080fd5b506103376104d9366004614700565b61109b565b3480156104ea57600080fd5b506103376104f9366004614735565b611122565b34801561050a57600080fd5b506103376112c0565b34801561051f57600080fd5b5061033761052e3660046141b2565b611363565b34801561053f57600080fd5b5061033761054e36600461457d565b61137e565b34801561055f57600080fd5b5061033761056e366004614750565b611469565b34801561057f57600080fd5b506105886114e2565b6040516103659190614b20565b3480156105a157600080fd5b506103b06105b0366004614750565b6115d6565b3480156105c157600080fd5b50610337611661565b3480156105d657600080fd5b506103376105e53660046143c6565b6116e3565b3480156105f657600080fd5b506103f9610605366004614164565b6117d9565b34801561061657600080fd5b50610337611873565b34801561062b57600080fd5b5061033761063a366004614750565b611912565b34801561064b57600080fd5b5061033761065a366004614164565b61198b565b34801561066b57600080fd5b5061033761067a366004614750565b611a2e565b34801561068b57600080fd5b506103b0611aa7565b3480156106a057600080fd5b506006546001600160a01b03166103b0565b3480156106be57600080fd5b506106d26106cd366004614750565b611b2e565b6040516103659190614b7b565b3480156106eb57600080fd5b506011546103f9565b34801561070057600080fd5b5061038361200c565b34801561071557600080fd5b50610743610724366004614164565b6001600160a01b031660009081526016602052604090205461ffff1690565b60405161ffff9091168152602001610365565b34801561076257600080fd5b5061033761077136600461426a565b61201b565b34801561078257600080fd5b5061033761079136600461461c565b6120e0565b3480156107a257600080fd5b506103376107b13660046141ee565b612195565b3480156107c257600080fd5b506103376107d1366004614309565b612223565b3480156107e257600080fd5b506103836107f1366004614750565b6122fc565b34801561080257600080fd5b506103b06123e5565b34801561081757600080fd5b5061038361246c565b34801561082c57600080fd5b5061033761083b3660046142d0565b61247b565b34801561084c57600080fd5b506103836126cb565b34801561086157600080fd5b5061035961087036600461417f565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b6103376108ac366004614735565b6126da565b3480156108bd57600080fd5b506103376108cc366004614735565b612c07565b3480156108dd57600080fd5b506103596108ec366004614750565b612cb0565b3480156108fd57600080fd5b5061033761090c366004614164565b612d96565b34801561091d57600080fd5b5061038361092c366004614750565b612ec3565b6006546001600160a01b031633148061095457506010546001600160a01b031633145b6109aa5760405162461bcd60e51b815260206004820152602e6024820152600080516020614ec783398151915260448201526d103737b9103a34329030b236b4b760911b60648201526084015b60405180910390fd5b600e805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0392909216919091179055565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f80ac58cd000000000000000000000000000000000000000000000000000000001480610a6c57507fffffffff0000000000000000000000000000000000000000000000000000000082167f5b5e139f00000000000000000000000000000000000000000000000000000000145b80610ab857507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff000000000000000000000000000000000000000000000000000000008316145b92915050565b606060008054610acd90614dc0565b80601f0160208091040260200160405190810160405280929190818152602001828054610af990614dc0565b8015610b465780601f10610b1b57610100808354040283529160200191610b46565b820191906000526020600020905b815481529060010190602001808311610b2957829003601f168201915b5050505050905090565b6000818152600260205260408120546001600160a01b0316610bda5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201527f697374656e7420746f6b656e000000000000000000000000000000000000000060648201526084016109a1565b506000908152600460205260409020546001600160a01b031690565b6000610c01826115d6565b9050806001600160a01b0316836001600160a01b03161415610c8b5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560448201527f720000000000000000000000000000000000000000000000000000000000000060648201526084016109a1565b336001600160a01b0382161480610ca75750610ca78133610870565b610d195760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c000000000000000060648201526084016109a1565b610d238383612f72565b505050565b60606012805480602002602001604051908101604052809291908181526020016000905b82821015610df8578382906000526020600020018054610d6b90614dc0565b80601f0160208091040260200160405190810160405280929190818152602001828054610d9790614dc0565b8015610de45780601f10610db957610100808354040283529160200191610de4565b820191906000526020600020905b815481529060010190602001808311610dc757829003601f168201915b505050505081526020019060010190610d4c565b50505050905090565b610e0b3382612fed565b610e7d5760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f76656400000000000000000000000000000060648201526084016109a1565b610d238383836130f5565b6006546001600160a01b0316331480610eab57506010546001600160a01b031633145b610efc5760405162461bcd60e51b815260206004820152602e6024820152600080516020614ec783398151915260448201526d103737b9103a34329030b236b4b760911b60648201526084016109a1565b60005b8151811015610f6d57818181518110610f1a57610f1a614e6c565b60200260200101516020015160156000848481518110610f3c57610f3c614e6c565b6020026020010151600001518152602001908152602001600020819055508080610f6590614dfb565b915050610eff565b5050565b6006546001600160a01b0316331480610f9457506010546001600160a01b031633145b610fe55760405162461bcd60e51b815260206004820152602e6024820152600080516020614ec783398151915260448201526d103737b9103a34329030b236b4b760911b60648201526084016109a1565b6010805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0392909216919091179055565b6006546001600160a01b031633148061103757506010546001600160a01b031633145b6110885760405162461bcd60e51b815260206004820152602e6024820152600080516020614ec783398151915260448201526d103737b9103a34329030b236b4b760911b60648201526084016109a1565b8051610f6d90600d90602084019061400d565b6006546001600160a01b03163314806110be57506010546001600160a01b031633145b61110f5760405162461bcd60e51b815260206004820152602e6024820152600080516020614ec783398151915260448201526d103737b9103a34329030b236b4b760911b60648201526084016109a1565b8051610f6d90600c90602084019061400d565b6006546001600160a01b031633148061114557506010546001600160a01b031633145b6111965760405162461bcd60e51b815260206004820152602e6024820152600080516020614ec783398151915260448201526d103737b9103a34329030b236b4b760911b60648201526084016109a1565b60005b601154811015610f6d578161ffff16601182815481106111bb576111bb614e6c565b60009182526020909120601082040154600f9091166002026101000a900461ffff16146111e7576112ae565b601180546111f790600190614d7d565b8154811061120757611207614e6c565b90600052602060002090601091828204019190066002029054906101000a900461ffff166011828154811061123e5761123e614e6c565b90600052602060002090601091828204019190066002026101000a81548161ffff021916908361ffff160217905550601180548061127e5761127e614e56565b600082815260209020601060001990920191820401805461ffff6002600f8516026101000a021916905590555050565b806112b881614dfb565b915050611199565b6006546001600160a01b03163314806112e357506010546001600160a01b031633145b6113345760405162461bcd60e51b815260206004820152602e6024820152600080516020614ec783398151915260448201526d103737b9103a34329030b236b4b760911b60648201526084016109a1565b60405133904780156108fc02916000818181858888f19350505050158015611360573d6000803e3d6000fd5b50565b610d2383838360405180602001604052806000815250612195565b6006546001600160a01b03163314806113a157506010546001600160a01b031633145b6113f25760405162461bcd60e51b815260206004820152602e6024820152600080516020614ec783398151915260448201526d103737b9103a34329030b236b4b760911b60648201526084016109a1565b60005b8151811015610f6d57601182828151811061141257611412614e6c565b602090810291909101810151825460018101845560009384529190922060108204018054600f9092166002026101000a61ffff8181021990931692909316929092021790558061146181614dfb565b9150506113f5565b6006546001600160a01b031633148061148c57506010546001600160a01b031633145b6114dd5760405162461bcd60e51b815260206004820152602e6024820152600080516020614ec783398151915260448201526d103737b9103a34329030b236b4b760911b60648201526084016109a1565b600855565b6006546060906001600160a01b031633148061150857506010546001600160a01b031633145b6115595760405162461bcd60e51b815260206004820152602e6024820152600080516020614ec783398151915260448201526d103737b9103a34329030b236b4b760911b60648201526084016109a1565b6011805480602002602001604051908101604052809291908181526020018280548015610b4657602002820191906000526020600020906000905b82829054906101000a900461ffff1661ffff16815260200190600201906020826001010492830192600103820291508084116115945790505050505050905090565b6000818152600260205260408120546001600160a01b031680610ab85760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201527f656e7420746f6b656e000000000000000000000000000000000000000000000060648201526084016109a1565b6006546001600160a01b031633148061168457506010546001600160a01b031633145b6116d55760405162461bcd60e51b815260206004820152602e6024820152600080516020614ec783398151915260448201526d103737b9103a34329030b236b4b760911b60648201526084016109a1565b6116e16011600061408d565b565b6006546001600160a01b031633148061170657506010546001600160a01b031633145b6117575760405162461bcd60e51b815260206004820152602e6024820152600080516020614ec783398151915260448201526d103737b9103a34329030b236b4b760911b60648201526084016109a1565b60005b8151811015610f6d57601382828151811061177757611777614e6c565b6020908102919091018101518254600181018455600093845292829020815180519294600302909101926117b09284929091019061400d565b5060208201516001820155604090910151600290910155806117d181614dfb565b91505061175a565b60006001600160a01b0382166118575760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a6560448201527f726f20616464726573730000000000000000000000000000000000000000000060648201526084016109a1565b506001600160a01b031660009081526003602052604090205490565b6006546001600160a01b031633146118bb5760405162461bcd60e51b81526020600482018190526024820152600080516020614ec783398151915260448201526064016109a1565b6006546040516000916001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a36006805473ffffffffffffffffffffffffffffffffffffffff19169055565b6006546001600160a01b031633148061193557506010546001600160a01b031633145b6119865760405162461bcd60e51b815260206004820152602e6024820152600080516020614ec783398151915260448201526d103737b9103a34329030b236b4b760911b60648201526084016109a1565b600955565b6006546001600160a01b03163314806119ae57506010546001600160a01b031633145b6119ff5760405162461bcd60e51b815260206004820152602e6024820152600080516020614ec783398151915260448201526d103737b9103a34329030b236b4b760911b60648201526084016109a1565b600f805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0392909216919091179055565b6006546001600160a01b0316331480611a5157506010546001600160a01b031633145b611aa25760405162461bcd60e51b815260206004820152602e6024820152600080516020614ec783398151915260448201526d103737b9103a34329030b236b4b760911b60648201526084016109a1565b600a55565b6006546000906001600160a01b0316331480611acd57506010546001600160a01b031633145b611b1e5760405162461bcd60e51b815260206004820152602e6024820152600080516020614ec783398151915260448201526d103737b9103a34329030b236b4b760911b60648201526084016109a1565b50600e546001600160a01b031690565b611b7f60405180610120016040528060008152602001606081526020016060815260200160608152602001600015158152602001606081526020016060815260200160008152602001600081525090565b60005b601354811015611fc35760138181548110611b9f57611b9f614e6c565b906000526020600020906003020160010154831080611be1575060138181548110611bcc57611bcc614e6c565b90600052602060002090600302016002015483115b15611beb57611fb1565b6000611bf6846132cf565b9050600080611c05868561339f565b60008881526015602052604081205492945090925090606090819015611d055760008981526015602052604090205460128054600195509091908110611c4d57611c4d614e6c565b906000526020600020018054611c6290614dc0565b80601f0160208091040260200160405190810160405280929190818152602001828054611c8e90614dc0565b8015611cdb5780601f10611cb057610100808354040283529160200191611cdb565b820191906000526020600020905b815481529060010190602001808311611cbe57829003601f168201915b5050505050915081604051602001611cf391906149f8565b60405160208183030381529060405290505b60408051808201909152600981527f323032312e3139312e000000000000000000000000000000000000000000000060208201526000611d448b61344d565b90506103e88b10611d78578181604051602001611d629291906147ca565b6040516020818303038152906040529150611dd3565b60648b10611d93578181604051602001611d629291906147f9565b600a8b10611dae578181604051602001611d6292919061488d565b8181604051602001611dc1929190614835565b60405160208183030381529060405291505b6040518061012001604052808c815260200189815260200160138b81548110611dfe57611dfe614e6c565b90600052602060002090600302016000018054611e1a90614dc0565b80601f0160208091040260200160405190810160405280929190818152602001828054611e4690614dc0565b8015611e935780601f10611e6857610100808354040283529160200191611e93565b820191906000526020600020905b815481529060010190602001808311611e7657829003601f168201915b50505050508152602001600d611f5460138d81548110611eb557611eb5614e6c565b90600052602060002090600302016000018054611ed190614dc0565b80601f0160208091040260200160405190810160405280929190818152602001828054611efd90614dc0565b8015611f4a5780601f10611f1f57610100808354040283529160200191611f4a565b820191906000526020600020905b815481529060010190602001808311611f2d57829003601f168201915b5050505050613576565b8b611f5e88613576565b604051602001611f7194939291906148e5565b60408051601f1981840301815291815290825296151560208201529586019490945250606084015250608082019290925260a00191909152949350505050565b80611fbb81614dfb565b915050611b82565b5060405162461bcd60e51b815260206004820152601860248201527f436f6d706f6e656e7420646f6573206e6f74206578697374000000000000000060448201526064016109a1565b606060018054610acd90614dc0565b6001600160a01b0382163314156120745760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c65720000000000000060448201526064016109a1565b3360008181526005602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6006546001600160a01b031633148061210357506010546001600160a01b031633145b6121545760405162461bcd60e51b815260206004820152602e6024820152600080516020614ec783398151915260448201526d103737b9103a34329030b236b4b760911b60648201526084016109a1565b60005b8251811015610d23576121838284838151811061217657612176614e6c565b60200260200101516138d4565b8061218d81614dfb565b915050612157565b61219f3383612fed565b6122115760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f76656400000000000000000000000000000060648201526084016109a1565b61221d848484846139d3565b50505050565b6006546001600160a01b031633148061224657506010546001600160a01b031633145b6122975760405162461bcd60e51b815260206004820152602e6024820152600080516020614ec783398151915260448201526d103737b9103a34329030b236b4b760911b60648201526084016109a1565b60005b8151811015610f6d5760128282815181106122b7576122b7614e6c565b602090810291909101810151825460018101845560009384529282902081516122e9949190910192919091019061400d565b50806122f481614dfb565b91505061229a565b6000818152600260205260409020546060906001600160a01b03166123895760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201527f6e6578697374656e7420746f6b656e000000000000000000000000000000000060648201526084016109a1565b600061239361246c565b905060008151116123b357604051806020016040528060008152506123de565b806123bd84613a5c565b6040516020016123ce9291906147ca565b6040516020818303038152906040525b9392505050565b6006546000906001600160a01b031633148061240b57506010546001600160a01b031633145b61245c5760405162461bcd60e51b815260206004820152602e6024820152600080516020614ec783398151915260448201526d103737b9103a34329030b236b4b760911b60648201526084016109a1565b50600f546001600160a01b031690565b6060600c8054610acd90614dc0565b600e546001600160a01b031633146124fb5760405162461bcd60e51b815260206004820152603260248201527f4f776e61626c653a2063616c6c6572206973206e6f742074686520726f636b6560448201527f7420666163746f727920636f6e7472616374000000000000000000000000000060648201526084016109a1565b836001600160a01b031661250e846115d6565b6001600160a01b031614801561253d5750836001600160a01b0316612532836115d6565b6001600160a01b0316145b80156125625750836001600160a01b0316612557826115d6565b6001600160a01b0316145b6125d45760405162461bcd60e51b815260206004820152602260248201527f496e76616c6964206f776e657220666f7220676976656e20636f6d706f6e656e60448201527f747300000000000000000000000000000000000000000000000000000000000060648201526084016109a1565b6125df600384614e16565b1580156125f657506125f2600383614e16565b6001145b801561260c5750612608600382614e16565b6002145b6126585760405162461bcd60e51b815260206004820152601860248201527f496e76616c696420636f6d706f6e656e747320676976656e000000000000000060448201526064016109a1565b61266183613b5a565b61266a82613b5a565b61267381613b5a565b6000838152601460205260408082208054600160ff1991821681179092558584528284208054821683179055848452918320805490921617905560078054600392906126c0908490614d7d565b909155505050505050565b6060600d8054610acd90614dc0565b60008161ffff16116127545760405162461bcd60e51b815260206004820152602860248201527f4174206c65617374206f6e6520636f6d706f6e656e742073686f756c6420626560448201527f20636c61696d656400000000000000000000000000000000000000000000000060648201526084016109a1565b6011546127a35760405162461bcd60e51b815260206004820181905260248201527f4e6f20636f6d706f6e656e7473206c65667420746f20626520636c61696d656460448201526064016109a1565b600f54600a546001600160a01b0390911690158015906127c5575042600a5411155b8061286d5750426009541115801561286d57506040517f70a082310000000000000000000000000000000000000000000000000000000081523360048201526000906001600160a01b038316906370a082319060240160206040518083038186803b15801561283357600080fd5b505afa158015612847573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061286b9190614769565b115b6128de5760405162461bcd60e51b8152602060048201526024808201527f4974206973206e6f742074696d652079657420746f20737461727420636c616960448201527f6d696e670000000000000000000000000000000000000000000000000000000060648201526084016109a1565b600b543360009081526016602052604090205461ffff9182169161290491859116614cf0565b61ffff1611156129565760405162461bcd60e51b815260206004820181905260248201527f596f752063616e6e6f7420636c61696d206d6f726520636f6d706f6e656e747360448201526064016109a1565b3332146129cb5760405162461bcd60e51b815260206004820152602660248201527f436c61696d2063616e206f6e6c792062652063616c6c65642066726f6d20612060448201527f77616c6c6574000000000000000000000000000000000000000000000000000060648201526084016109a1565b60115461ffff831611156129df5760115491505b60008261ffff166008546129f39190614d5e565b905080341015612a455760405162461bcd60e51b815260206004820152601b60248201527f496e73756666696369656e7420457468657220746f20636c61696d000000000060448201526064016109a1565b80341115612a8557336108fc612a5b8334614d7d565b6040518115909202916000818181858888f19350505050158015612a83573d6000803e3d6000fd5b505b3360009081526016602052604081208054859290612aa890849061ffff16614cf0565b92506101000a81548161ffff021916908361ffff16021790555060005b8361ffff1681101561221d57601154600090612ae090613c02565b9050600060118281548110612af757612af7614e6c565b90600052602060002090601091828204019190066002029054906101000a900461ffff1661ffff16905060116001601180549050612b359190614d7d565b81548110612b4557612b45614e6c565b90600052602060002090601091828204019190066002029054906101000a900461ffff1660118381548110612b7c57612b7c614e6c565b90600052602060002090601091828204019190066002026101000a81548161ffff021916908361ffff1602179055506011805480612bbc57612bbc614e56565b600082815260209020601060001990920191820401805461ffff6002600f8516026101000a02191690559055612bf233826138d4565b50508080612bff90614dfb565b915050612ac5565b6006546001600160a01b0316331480612c2a57506010546001600160a01b031633145b612c7b5760405162461bcd60e51b815260206004820152602e6024820152600080516020614ec783398151915260448201526d103737b9103a34329030b236b4b760911b60648201526084016109a1565b600b80547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00001661ffff92909216919091179055565b6006546000906001600160a01b0316331480612cd657506010546001600160a01b031633145b612d275760405162461bcd60e51b815260206004820152602e6024820152600080516020614ec783398151915260448201526d103737b9103a34329030b236b4b760911b60648201526084016109a1565b60005b601154811015612d8b578260118281548110612d4857612d48614e6c565b60009182526020909120601082040154600f9091166002026101000a900461ffff161415612d795750600192915050565b80612d8381614dfb565b915050612d2a565b50600090505b919050565b6006546001600160a01b03163314612dde5760405162461bcd60e51b81526020600482018190526024820152600080516020614ec783398151915260448201526064016109a1565b6001600160a01b038116612e5a5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f646472657373000000000000000000000000000000000000000000000000000060648201526084016109a1565b6006546040516001600160a01b038084169216907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a36006805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0392909216919091179055565b606060128281548110612ed857612ed8614e6c565b906000526020600020018054612eed90614dc0565b80601f0160208091040260200160405190810160405280929190818152602001828054612f1990614dc0565b8015612f665780601f10612f3b57610100808354040283529160200191612f66565b820191906000526020600020905b815481529060010190602001808311612f4957829003601f168201915b50505050509050919050565b6000818152600460205260409020805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0384169081179091558190612fb4826115d6565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000818152600260205260408120546001600160a01b03166130775760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201527f697374656e7420746f6b656e000000000000000000000000000000000000000060648201526084016109a1565b6000613082836115d6565b9050806001600160a01b0316846001600160a01b031614806130bd5750836001600160a01b03166130b284610b50565b6001600160a01b0316145b806130ed57506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b0316613108826115d6565b6001600160a01b0316146131845760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201527f73206e6f74206f776e000000000000000000000000000000000000000000000060648201526084016109a1565b6001600160a01b0382166131ff5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f2061646460448201527f726573730000000000000000000000000000000000000000000000000000000060648201526084016109a1565b61320a600082612f72565b6001600160a01b0383166000908152600360205260408120805460019290613233908490614d7d565b90915550506001600160a01b0382166000908152600360205260408120805460019290613261908490614d0d565b9091555050600081815260026020526040808220805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b606060006132de600384614e16565b90508061332057505060408051808201909152600481527f6e6f7365000000000000000000000000000000000000000000000000000000006020820152919050565b806001141561336457505060408051808201909152600481527f626f6479000000000000000000000000000000000000000000000000000000006020820152919050565b505060408051808201909152600481527f7461696c000000000000000000000000000000000000000000000000000000006020820152919050565b6000806000806000601386815481106133ba576133ba614e6c565b90600052602060002090600302016001015490505b601386815481106133e2576133e2614e6c565b906000526020600020906003020160020154811161344257613405600388614e16565b613410600383614e16565b1415613424578161342081614dfb565b9250505b80871415613430578192505b8061343a81614dfb565b9150506133cf565b509590945092505050565b6060816134715750506040805180820190915260018152600360fc1b602082015290565b8160005b811561349b578061348581614dfb565b91506134949050600a83614d4a565b9150613475565b60008167ffffffffffffffff8111156134b6576134b6614e82565b6040519080825280601f01601f1916602001820160405280156134e0576020820181803683370190505b509050815b851561356d576134f6600182614d7d565b90506000613505600a88614d4a565b61351090600a614d5e565b61351a9088614d7d565b613525906030614d25565b905060008160f81b90508084848151811061354257613542614e6c565b60200101906001600160f81b031916908160001a905350613564600a89614d4a565b975050506134e5565b50949350505050565b6060816000805b82518110156137cb576135af83828151811061359b5761359b614e6c565b01602001516001600160f81b031916613c8a565b8382815181106135c1576135c1614e6c565b60200101906001600160f81b031916908160001a9053508281815181106135ea576135ea614e6c565b6020910101516001600160f81b0319167f20000000000000000000000000000000000000000000000000000000000000001480613667575082818151811061363457613634614e6c565b6020910101516001600160f81b0319167f2700000000000000000000000000000000000000000000000000000000000000145b1561369f57602d60f81b83828151811061368357613683614e6c565b60200101906001600160f81b031916908160001a9053506137b9565b8281815181106136b1576136b1614e6c565b6020910101516001600160f81b0319167fc30000000000000000000000000000000000000000000000000000000000000014156137255760008382815181106136fc576136fc614e6c565b60200101906001600160f81b031916908160001a9053508161371d81614dfb565b9250506137b9565b82818151811061373757613737614e6c565b6020910101516001600160f81b0319167fa80000000000000000000000000000000000000000000000000000000000000014156137b9577f65000000000000000000000000000000000000000000000000000000000000008382815181106137a1576137a1614e6c565b60200101906001600160f81b031916908160001a9053505b806137c381614dfb565b91505061357d565b50806137d8575092915050565b60008183516137e79190614d7d565b67ffffffffffffffff8111156137ff576137ff614e82565b6040519080825280601f01601f191660200182016040528015613829576020820181803683370190505b5090506000805b84518110156138c95784818151811061384b5761384b614e6c565b01602001516001600160f81b031916613863576138b7565b84818151811061387557613875614e6c565b602001015160f81c60f81b83838151811061389257613892614e6c565b60200101906001600160f81b031916908160001a905350816138b381614dfb565b9250505b806138c181614dfb565b915050613830565b509095945050505050565b60008181526014602052604090205460ff16156139335760405162461bcd60e51b815260206004820152601860248201527f546f6b656e2077617320616c7265616479206275726e6564000000000000000060448201526064016109a1565b6013805461394390600190614d7d565b8154811061395357613953614e6c565b9060005260206000209060030201600201548111156139b45760405162461bcd60e51b815260206004820152601860248201527f546f6b656e4964206973206f7574206f6620626f756e6473000000000000000060448201526064016109a1565b600780549060006139c483614dfb565b9190505550610f6d8282613d11565b6139de8484846130f5565b6139ea84848484613e60565b61221d5760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e746572000000000000000000000000000060648201526084016109a1565b606081613a805750506040805180820190915260018152600360fc1b602082015290565b8160005b8115613aaa5780613a9481614dfb565b9150613aa39050600a83614d4a565b9150613a84565b60008167ffffffffffffffff811115613ac557613ac5614e82565b6040519080825280601f01601f191660200182016040528015613aef576020820181803683370190505b5090505b84156130ed57613b04600183614d7d565b9150613b11600a86614e16565b613b1c906030614d0d565b60f81b818381518110613b3157613b31614e6c565b60200101906001600160f81b031916908160001a905350613b53600a86614d4a565b9450613af3565b6000613b65826115d6565b9050613b72600083612f72565b6001600160a01b0381166000908152600360205260408120805460019290613b9b908490614d7d565b9091555050600082815260026020526040808220805473ffffffffffffffffffffffffffffffffffffffff19169055518391906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b6011546000908190613c15600143614d7d565b6040805160208101939093529040908201527fffffffffffffffffffffffffffffffffffffffff00000000000000000000000041606090811b82168184015244607484015233901b16609482015260a80160408051601f19818403018152919052805160209091012090506123de8382614e16565b60007f41000000000000000000000000000000000000000000000000000000000000006001600160f81b0319831610801590613cf057507f5a000000000000000000000000000000000000000000000000000000000000006001600160f81b0319831611155b15613d0d57613d0460f883901c6020614d25565b60f81b92915050565b5090565b6001600160a01b038216613d675760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f206164647265737360448201526064016109a1565b6000818152600260205260409020546001600160a01b031615613dcc5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e7465640000000060448201526064016109a1565b6001600160a01b0382166000908152600360205260408120805460019290613df5908490614d0d565b9091555050600081815260026020526040808220805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b60006001600160a01b0384163b15614002576040517f150b7a020000000000000000000000000000000000000000000000000000000081526001600160a01b0385169063150b7a0290613ebd903390899088908890600401614a64565b602060405180830381600087803b158015613ed757600080fd5b505af1925050508015613f07575060408051601f3d908101601f19168201909252613f04918101906146e3565b60015b613fb7573d808015613f35576040519150601f19603f3d011682016040523d82523d6000602084013e613f3a565b606091505b508051613faf5760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e746572000000000000000000000000000060648201526084016109a1565b805181602001fd5b7fffffffff00000000000000000000000000000000000000000000000000000000167f150b7a02000000000000000000000000000000000000000000000000000000001490506130ed565b506001949350505050565b82805461401990614dc0565b90600052602060002090601f01602090048101928261403b5760008555614081565b82601f1061405457805160ff1916838001178555614081565b82800160010185558215614081579182015b82811115614081578251825591602001919060010190614066565b50613d0d9291506140ae565b50805460008255600f01601090049060005260206000209081019061136091905b5b80821115613d0d57600081556001016140af565b600067ffffffffffffffff8311156140dd576140dd614e82565b6140f06020601f19601f86011601614c9b565b905082815283838301111561410457600080fd5b828260208301376000602084830101529392505050565b80356001600160a01b0381168114612d9157600080fd5b600082601f83011261414357600080fd5b6123de838335602085016140c3565b803561ffff81168114612d9157600080fd5b60006020828403121561417657600080fd5b6123de8261411b565b6000806040838503121561419257600080fd5b61419b8361411b565b91506141a96020840161411b565b90509250929050565b6000806000606084860312156141c757600080fd5b6141d08461411b565b92506141de6020850161411b565b9150604084013590509250925092565b6000806000806080858703121561420457600080fd5b61420d8561411b565b935061421b6020860161411b565b925060408501359150606085013567ffffffffffffffff81111561423e57600080fd5b8501601f8101871361424f57600080fd5b61425e878235602084016140c3565b91505092959194509250565b6000806040838503121561427d57600080fd5b6142868361411b565b91506020830135801515811461429b57600080fd5b809150509250929050565b600080604083850312156142b957600080fd5b6142c28361411b565b946020939093013593505050565b600080600080608085870312156142e657600080fd5b6142ef8561411b565b966020860135965060408601359560600135945092505050565b6000602080838503121561431c57600080fd5b823567ffffffffffffffff8082111561433457600080fd5b818501915085601f83011261434857600080fd5b813561435b61435682614ccc565b614c9b565b80828252858201915085850189878560051b880101111561437b57600080fd5b6000805b858110156143b657823587811115614395578283fd5b6143a38d8b838c0101614132565b865250938801939188019160010161437f565b50919a9950505050505050505050565b600060208083850312156143d957600080fd5b823567ffffffffffffffff808211156143f157600080fd5b818501915085601f83011261440557600080fd5b813561441361435682614ccc565b80828252858201915085850189878560051b880101111561443357600080fd5b60005b848110156144b35781358681111561444d57600080fd5b87016060818d03601f190181131561446457600080fd5b61446c614c4f565b8a8301358981111561447d57600080fd5b61448b8f8d83870101614132565b8252506040838101358c83015291909201359082015284529287019290870190600101614436565b50909998505050505050505050565b600060208083850312156144d557600080fd5b823567ffffffffffffffff8111156144ec57600080fd5b8301601f810185136144fd57600080fd5b803561450b61435682614ccc565b80828252848201915084840188868560061b870101111561452b57600080fd5b60009450845b8481101561456f57604080838c031215614549578687fd5b614551614c78565b83358152888401358982015285529387019390910190600101614531565b509098975050505050505050565b6000602080838503121561459057600080fd5b823567ffffffffffffffff8111156145a757600080fd5b8301601f810185136145b857600080fd5b80356145c661435682614ccc565b80828252848201915084840188868560051b87010111156145e657600080fd5b600094505b83851015614610576145fc81614152565b8352600194909401939185019185016145eb565b50979650505050505050565b6000806040838503121561462f57600080fd5b823567ffffffffffffffff81111561464657600080fd5b8301601f8101851361465757600080fd5b8035602061466761435683614ccc565b80838252828201915082850189848660051b880101111561468757600080fd5b600095505b848610156146aa57803583526001959095019491830191830161468c565b5095506146ba905086820161411b565b93505050509250929050565b6000602082840312156146d857600080fd5b81356123de81614e98565b6000602082840312156146f557600080fd5b81516123de81614e98565b60006020828403121561471257600080fd5b813567ffffffffffffffff81111561472957600080fd5b6130ed84828501614132565b60006020828403121561474757600080fd5b6123de82614152565b60006020828403121561476257600080fd5b5035919050565b60006020828403121561477b57600080fd5b5051919050565b6000815180845261479a816020860160208601614d94565b601f01601f19169290920160200192915050565b600081516147c0818560208601614d94565b9290920192915050565b600083516147dc818460208801614d94565b8351908301906147f0818360208801614d94565b01949350505050565b6000835161480b818460208801614d94565b600360fc1b9083019081528351614829816001840160208801614d94565b01600101949350505050565b60008351614847818460208801614d94565b7f30303000000000000000000000000000000000000000000000000000000000009083019081528351614881816003840160208801614d94565b01600301949350505050565b6000835161489f818460208801614d94565b7f303000000000000000000000000000000000000000000000000000000000000090830190815283516148d9816002840160208801614d94565b01600201949350505050565b600080865481600182811c91508083168061490157607f831692505b602080841082141561492157634e487b7160e01b86526022600452602486fd5b818015614935576001811461494657614973565b60ff19861689528489019650614973565b60008d81526020902060005b8681101561496b5781548b820152908501908301614952565b505084890196505b5050505050506149ed6149c46149be6149b861498f858b6147ae565b7f2d00000000000000000000000000000000000000000000000000000000000000815260010190565b886147ae565b866147ae565b7f2e706e6700000000000000000000000000000000000000000000000000000000815260040190565b979650505050505050565b7f2d00000000000000000000000000000000000000000000000000000000000000815260008251614a30816001850160208701614d94565b7f2d737469636b65720000000000000000000000000000000000000000000000006001939091019283015250600901919050565b60006001600160a01b03808716835280861660208401525083604083015260806060830152614a966080830184614782565b9695505050505050565b6000602080830181845280855180835260408601915060408160051b870101925083870160005b82811015614b13577fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc0888603018452614b01858351614782565b94509285019290850190600101614ac7565b5092979650505050505050565b6020808252825182820181905260009190848201906040850190845b81811015614b5c57835161ffff1683529284019291840191600101614b3c565b50909695505050505050565b6020815260006123de6020830184614782565b602081528151602082015260006020830151610120806040850152614ba4610140850183614782565b91506040850151601f1980868503016060870152614bc28483614782565b93506060870151915080868503016080870152614bdf8483614782565b935060808701519150614bf660a087018315159052565b60a08701519150808685030160c0870152614c118483614782565b935060c08701519150808685030160e087015250614c2f8382614782565b60e087015161010087810191909152909601519190940152509192915050565b6040516060810167ffffffffffffffff81118282101715614c7257614c72614e82565b60405290565b6040805190810167ffffffffffffffff81118282101715614c7257614c72614e82565b604051601f8201601f1916810167ffffffffffffffff81118282101715614cc457614cc4614e82565b604052919050565b600067ffffffffffffffff821115614ce657614ce6614e82565b5060051b60200190565b600061ffff8083168185168083038211156147f0576147f0614e2a565b60008219821115614d2057614d20614e2a565b500190565b600060ff821660ff84168060ff03821115614d4257614d42614e2a565b019392505050565b600082614d5957614d59614e40565b500490565b6000816000190483118215151615614d7857614d78614e2a565b500290565b600082821015614d8f57614d8f614e2a565b500390565b60005b83811015614daf578181015183820152602001614d97565b8381111561221d5750506000910152565b600181811c90821680614dd457607f821691505b60208210811415614df557634e487b7160e01b600052602260045260246000fd5b50919050565b6000600019821415614e0f57614e0f614e2a565b5060010190565b600082614e2557614e25614e40565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052603160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b7fffffffff000000000000000000000000000000000000000000000000000000008116811461136057600080fdfe4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572a2646970667358221220cada9f196b5dcda428e3cf7d71ad437d04983b2835f9ae1eac04f74eee724d3e64736f6c63430008060033

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.