ETH Price: $2,295.00 (-5.15%)

Token

Buildoors Homes (HOME)
 

Overview

Max Total Supply

20 HOME

Holders

13

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Filtered by Token Holder
0xmarin.eth
Balance
1 HOME
0x1ef06af7f93fb812d6aef9fcb874884c4b02f35a
Loading...
Loading
Loading...
Loading
Loading...
Loading

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

Contract Source Code Verified (Exact Match)

Contract Name:
BuildoorsHomes

Compiler Version
v0.8.12+commit.f00d7308

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion
File 1 of 15 : BuildoorsHomes.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.12;

import '@openzeppelin/contracts/access/Ownable.sol';
import './ERC721ABurnable.sol';
import './Base64.sol';
import "./IMaterialContract.sol";

contract BuildoorsHomes is Ownable, ERC721A, ERC721ABurnable {

    using Strings for uint256;

    uint256 newestHome;
    string private imageTokenURI;
    bool private unique;
    bool public saleIsActive;
    address materialsContract;

    // Mapping for type of home
    mapping(uint256 => string) private styleByHomeId;

    constructor() ERC721A("Buildoors Homes", "HOME") {}

    //
    // FUNCTIONS FOR VALIDATING
    //

    // Dirt has token IDs 666-998
    function dirtValidated(uint256 dirtId) internal view returns (bool) {
        IMaterialContract iMaterial = IMaterialContract(materialsContract);
        return((iMaterial.ownerOf(dirtId) == _msgSender()) && (dirtId > 665) && (dirtId < 999));
    }

    // Glue has token IDs 332-664
    function glueValidated(uint256 glueId) internal view returns (bool) {
        IMaterialContract iMaterial = IMaterialContract(materialsContract);
        return((iMaterial.ownerOf(glueId) == _msgSender()) && (glueId > 331) && (glueId < 665));
    }

    // Style materials have token IDs 1-331, or 665, or 999
    function styleValidated(uint256 styleId) internal view returns (bool) {
        IMaterialContract iMaterial = IMaterialContract(materialsContract);
        return((iMaterial.ownerOf(styleId) == _msgSender()) && ((styleId < 332) || (styleId == 665) || (styleId == 999)));
    }

    //
    // FUNCTIONS FOR GETTING METADATA
    //

    function getStyleOfHomeId(uint256 homeId) public view returns (string memory) {
        return styleByHomeId[homeId];
    }

    function getImageOfHomeId(uint256 homeId) public view returns (string memory) {
        if(unique){
            return string(abi.encodePacked(imageTokenURI, Strings.toString(homeId), ".png"));
        } else {
            return string(abi.encodePacked(imageTokenURI, styleByHomeId[homeId], ".png"));
        }
    }

    function getYieldOfHomeId(uint256 homeId) public view returns (string memory) {
        if(keccak256(bytes(styleByHomeId[homeId])) == keccak256(bytes("Straw"))){
            return "Low";
        } else if(keccak256(bytes(styleByHomeId[homeId])) == keccak256(bytes("Wood"))){
            return "Medium";
        } else if(keccak256(bytes(styleByHomeId[homeId])) == keccak256(bytes("Brick"))){
            return "High";
        } else {
            return "Extreme";
        }
    }

    function getStartTimestamp(uint256 homeId) public view returns (uint64) {
        return _ownerships[homeId].startTimestamp;
    }

    //
    // FUNCTION FOR MINTING
    //

    function mint(uint256 dirtId, uint256 glueId, uint256 styleId) external {
        require(
            saleIsActive,
            "Building is not active"
        );
        require(
            tx.origin == _msgSender(),
            "Not allowing contracts"
        );
        require(
            dirtValidated(dirtId),
            "You do not have dirt"
        );
        require(
            glueValidated(glueId),
            "You do not have glue"
        );
        require(
            styleValidated(styleId),
            "You do not have gold, bricks, sticks, or straw"
        );

        IMaterialContract iMaterial = IMaterialContract(materialsContract);
        iMaterial.burn(dirtId);
        iMaterial.burn(glueId);
        iMaterial.burn(styleId);

        if(styleId > 5 && styleId < 189) {
            // Straw has token IDs 6-188
            _safeMint(_msgSender(), 1);
            newestHome++;
            styleByHomeId[newestHome] = "Straw";
        } else if(styleId > 240 && styleId < 331) {
            // Sticks has token IDs 241-330
            _safeMint(_msgSender(), 1);
            newestHome++;
            styleByHomeId[newestHome] = "Wood";
        } else if(styleId > 189 && styleId < 240) {
            // Bricks has token IDs 190-239
            _safeMint(_msgSender(), 1);
            newestHome++;
            styleByHomeId[newestHome] = "Brick";
        } else {
            // Gold has other token IDs
            _safeMint(_msgSender(), 1);
            newestHome++;
            styleByHomeId[newestHome] = "Gold";
        }
    }

    //
    // FUNCTIONS FOR OVERRIDING
    //

    function tokenURI(uint256 tokenId) override public view returns (string memory) {
        require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token");

        string memory json = Base64.encode(bytes(string(abi.encodePacked(
            '{"name": "Home #',
            Strings.toString(tokenId),
            '", "description": "A beautiful home created by a Buildoor.", "external_url": "https://www.buildoors.org", "image": "',
            getImageOfHomeId(tokenId),
            '", "attributes":[{"trait_type": "Style", "value": "',
            getStyleOfHomeId(tokenId),
            '"}, {"trait_type": "Yield", "value": "',
            getYieldOfHomeId(tokenId),
            '"}]}'
        ))));

        json = string(abi.encodePacked('data:application/json;base64,', json));
        return json;
    }

    function _startTokenId() internal pure override returns (uint256) {
        return 1;
    }

    //
    // FUNCTIONS FOR OWNER
    //

    function flipSaleState() external onlyOwner {
        saleIsActive = !saleIsActive;
    }

    function flipUniqueState() external onlyOwner {
        unique = !unique;
    }

    function setImageURI(string calldata imageURI) external onlyOwner {
        imageTokenURI = imageURI;
    }

    function setMaterialsAddress(address contractAddress) external onlyOwner {
        materialsContract = contractAddress;
    }
}

File 2 of 15 : IMaterialContract.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.12;

interface IMaterialContract {
    function ownerOf(uint256 tokenId) external view returns (address);
    function burn(uint256 tokenId) external;
}

File 3 of 15 : ERC721ABurnable.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.12;

import './ERC721A.sol';
import '@openzeppelin/contracts/utils/Context.sol';

/**
 * @title ERC721A Burnable Token
 * @dev ERC721A Token that can be irreversibly burned (destroyed).
 */
abstract contract ERC721ABurnable is Context, ERC721A {

    /**
     * @dev Burns `tokenId`. See {ERC721A-_burn}.
     *
     * Requirements:
     *
     * - The caller must own `tokenId` or be an approved operator.
     */
    function burn(uint256 tokenId) public virtual {
        TokenOwnership memory prevOwnership = ownershipOf(tokenId);

        bool isApprovedOrOwner = (_msgSender() == prevOwnership.addr ||
            isApprovedForAll(prevOwnership.addr, _msgSender()) ||
            getApproved(tokenId) == _msgSender());

        if (!isApprovedOrOwner) revert TransferCallerNotOwnerNorApproved();

        _burn(tokenId);
    }
}

File 4 of 15 : ERC721A.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.12;

import '@openzeppelin/contracts/token/ERC721/IERC721.sol';
import '@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol';
import '@openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata.sol';
import '@openzeppelin/contracts/token/ERC721/extensions/IERC721Enumerable.sol';
import '@openzeppelin/contracts/utils/Address.sol';
import '@openzeppelin/contracts/utils/Context.sol';
import '@openzeppelin/contracts/utils/Strings.sol';
import '@openzeppelin/contracts/utils/introspection/ERC165.sol';

error ApprovalCallerNotOwnerNorApproved();
error ApprovalQueryForNonexistentToken();
error ApproveToCaller();
error ApprovalToCurrentOwner();
error BalanceQueryForZeroAddress();
error MintedQueryForZeroAddress();
error BurnedQueryForZeroAddress();
error AuxQueryForZeroAddress();
error MintToZeroAddress();
error MintZeroQuantity();
error OwnerIndexOutOfBounds();
error OwnerQueryForNonexistentToken();
error TokenIndexOutOfBounds();
error TransferCallerNotOwnerNorApproved();
error TransferFromIncorrectOwner();
error TransferToNonERC721ReceiverImplementer();
error TransferToZeroAddress();
error URIQueryForNonexistentToken();

/**
 * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
 * the Metadata extension. Built to optimize for lower gas during batch mints.
 *
 * Assumes serials are sequentially minted starting at _startTokenId() (defaults to 0, e.g. 0, 1, 2, 3..).
 *
 * Assumes that an owner cannot have more than 2**64 - 1 (max value of uint64) of supply.
 *
 * Assumes that the maximum token id cannot exceed 2**256 - 1 (max value of uint256).
 */
contract ERC721A is Context, ERC165, IERC721, IERC721Metadata {
    using Address for address;
    using Strings for uint256;

    // Compiler will pack this into a single 256bit word.
    struct TokenOwnership {
        // The address of the owner.
        address addr;
        // Keeps track of the start time of ownership with minimal overhead for tokenomics.
        uint64 startTimestamp;
        // Whether the token has been burned.
        bool burned;
    }

    // Compiler will pack this into a single 256bit word.
    struct AddressData {
        // Realistically, 2**64-1 is more than enough.
        uint64 balance;
        // Keeps track of mint count with minimal overhead for tokenomics.
        uint64 numberMinted;
        // Keeps track of burn count with minimal overhead for tokenomics.
        uint64 numberBurned;
        // For miscellaneous variable(s) pertaining to the address
        // (e.g. number of whitelist mint slots used).
        // If there are multiple variables, please pack them into a uint64.
        uint64 aux;
    }

    // The tokenId of the next token to be minted.
    uint256 internal _currentIndex;

    // The number of tokens burned.
    uint256 internal _burnCounter;

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

    // Mapping from token ID to ownership details
    // An empty struct value does not necessarily mean the token is unowned. See ownershipOf implementation for details.
    mapping(uint256 => TokenOwnership) internal _ownerships;

    // Mapping owner address to address data
    mapping(address => AddressData) private _addressData;

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

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

    constructor(string memory name_, string memory symbol_) {
        _name = name_;
        _symbol = symbol_;
        _currentIndex = _startTokenId();
    }

    /**
     * To change the starting tokenId, please override this function.
     */
    function _startTokenId() internal view virtual returns (uint256) {
        return 0;
    }

    /**
     * @dev See {IERC721Enumerable-totalSupply}.
     * @dev Burned tokens are calculated here, use _totalMinted() if you want to count just minted tokens.
     */
    function totalSupply() public view returns (uint256) {
        // Counter underflow is impossible as _burnCounter cannot be incremented
        // more than _currentIndex - _startTokenId() times
        unchecked {
            return _currentIndex - _burnCounter - _startTokenId();
        }
    }

    /**
     * Returns the total amount of tokens minted in the contract.
     */
    function _totalMinted() internal view returns (uint256) {
        // Counter underflow is impossible as _currentIndex does not decrement,
        // and it is initialized to _startTokenId()
        unchecked {
            return _currentIndex - _startTokenId();
        }
    }

    /**
     * @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 override returns (uint256) {
        if (owner == address(0)) revert BalanceQueryForZeroAddress();
        return uint256(_addressData[owner].balance);
    }

    /**
     * Returns the number of tokens minted by `owner`.
     */
    function _numberMinted(address owner) internal view returns (uint256) {
        if (owner == address(0)) revert MintedQueryForZeroAddress();
        return uint256(_addressData[owner].numberMinted);
    }

    /**
     * Returns the number of tokens burned by or on behalf of `owner`.
     */
    function _numberBurned(address owner) internal view returns (uint256) {
        if (owner == address(0)) revert BurnedQueryForZeroAddress();
        return uint256(_addressData[owner].numberBurned);
    }

    /**
     * Returns the auxillary data for `owner`. (e.g. number of whitelist mint slots used).
     */
    function _getAux(address owner) internal view returns (uint64) {
        if (owner == address(0)) revert AuxQueryForZeroAddress();
        return _addressData[owner].aux;
    }

    /**
     * Sets the auxillary data for `owner`. (e.g. number of whitelist mint slots used).
     * If there are multiple variables, please pack them into a uint64.
     */
    function _setAux(address owner, uint64 aux) internal {
        if (owner == address(0)) revert AuxQueryForZeroAddress();
        _addressData[owner].aux = aux;
    }

    /**
     * Gas spent here starts off proportional to the maximum mint batch size.
     * It gradually moves to O(1) as tokens get transferred around in the collection over time.
     */
    function ownershipOf(uint256 tokenId) internal view returns (TokenOwnership memory) {
        uint256 curr = tokenId;

        unchecked {
            if (_startTokenId() <= curr && curr < _currentIndex) {
                TokenOwnership memory ownership = _ownerships[curr];
                if (!ownership.burned) {
                    if (ownership.addr != address(0)) {
                        return ownership;
                    }
                    // Invariant:
                    // There will always be an ownership that has an address and is not burned
                    // before an ownership that does not have an address and is not burned.
                    // Hence, curr will not underflow.
                    while (true) {
                        curr--;
                        ownership = _ownerships[curr];
                        if (ownership.addr != address(0)) {
                            return ownership;
                        }
                    }
                }
            }
        }
        revert OwnerQueryForNonexistentToken();
    }

    /**
     * @dev See {IERC721-ownerOf}.
     */
    function ownerOf(uint256 tokenId) public view override returns (address) {
        return ownershipOf(tokenId).addr;
    }

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

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

    /**
     * @dev See {IERC721Metadata-tokenURI}.
     */
    function tokenURI(uint256 tokenId) public view virtual override returns (string memory) {
        if (!_exists(tokenId)) revert URIQueryForNonexistentToken();

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

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

    /**
     * @dev See {IERC721-approve}.
     */
    function approve(address to, uint256 tokenId) public override {
        address owner = ERC721A.ownerOf(tokenId);
        if (to == owner) revert ApprovalToCurrentOwner();

        if (_msgSender() != owner && !isApprovedForAll(owner, _msgSender())) {
            revert ApprovalCallerNotOwnerNorApproved();
        }

        _approve(to, tokenId, owner);
    }

    /**
     * @dev See {IERC721-getApproved}.
     */
    function getApproved(uint256 tokenId) public view override returns (address) {
        if (!_exists(tokenId)) revert ApprovalQueryForNonexistentToken();

        return _tokenApprovals[tokenId];
    }

    /**
     * @dev See {IERC721-setApprovalForAll}.
     */
    function setApprovalForAll(address operator, bool approved) public override {
        if (operator == _msgSender()) revert ApproveToCaller();

        _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 {
        _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 {
        _transfer(from, to, tokenId);
        if (to.isContract() && !_checkContractOnERC721Received(from, to, tokenId, _data)) {
            revert TransferToNonERC721ReceiverImplementer();
        }
    }

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

    function _safeMint(address to, uint256 quantity) internal {
        _safeMint(to, quantity, '');
    }

    /**
     * @dev Safely mints `quantity` tokens and transfers them to `to`.
     *
     * Requirements:
     *
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called for each safe transfer.
     * - `quantity` must be greater than 0.
     *
     * Emits a {Transfer} event.
     */
    function _safeMint(
        address to,
        uint256 quantity,
        bytes memory _data
    ) internal {
        _mint(to, quantity, _data, true);
    }

    /**
     * @dev Mints `quantity` tokens and transfers them to `to`.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - `quantity` must be greater than 0.
     *
     * Emits a {Transfer} event.
     */
    function _mint(
        address to,
        uint256 quantity,
        bytes memory _data,
        bool safe
    ) internal {
        uint256 startTokenId = _currentIndex;
        if (to == address(0)) revert MintToZeroAddress();
        if (quantity == 0) revert MintZeroQuantity();

        _beforeTokenTransfers(address(0), to, startTokenId, quantity);

        // Overflows are incredibly unrealistic.
        // balance or numberMinted overflow if current value of either + quantity > 1.8e19 (2**64) - 1
        // updatedIndex overflows if _currentIndex + quantity > 1.2e77 (2**256) - 1
        unchecked {
            _addressData[to].balance += uint64(quantity);
            _addressData[to].numberMinted += uint64(quantity);

            _ownerships[startTokenId].addr = to;
            _ownerships[startTokenId].startTimestamp = uint64(block.timestamp);

            uint256 updatedIndex = startTokenId;
            uint256 end = updatedIndex + quantity;

            if (safe && to.isContract()) {
                do {
                    emit Transfer(address(0), to, updatedIndex);
                    if (!_checkContractOnERC721Received(address(0), to, updatedIndex++, _data)) {
                        revert TransferToNonERC721ReceiverImplementer();
                    }
                } while (updatedIndex != end);
                // Reentrancy protection
                if (_currentIndex != startTokenId) revert();
            } else {
                do {
                    emit Transfer(address(0), to, updatedIndex++);
                } while (updatedIndex != end);
            }
            _currentIndex = updatedIndex;
        }
        _afterTokenTransfers(address(0), to, startTokenId, quantity);
    }

    /**
     * @dev Transfers `tokenId` from `from` to `to`.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - `tokenId` token must be owned by `from`.
     *
     * Emits a {Transfer} event.
     */
    function _transfer(
        address from,
        address to,
        uint256 tokenId
    ) private {
        TokenOwnership memory prevOwnership = ownershipOf(tokenId);

        bool isApprovedOrOwner = (_msgSender() == prevOwnership.addr ||
            isApprovedForAll(prevOwnership.addr, _msgSender()) ||
            getApproved(tokenId) == _msgSender());

        if (!isApprovedOrOwner) revert TransferCallerNotOwnerNorApproved();
        if (prevOwnership.addr != from) revert TransferFromIncorrectOwner();
        if (to == address(0)) revert TransferToZeroAddress();

        _beforeTokenTransfers(from, to, tokenId, 1);

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

        // Underflow of the sender's balance is impossible because we check for
        // ownership above and the recipient's balance can't realistically overflow.
        // Counter overflow is incredibly unrealistic as tokenId would have to be 2**256.
        unchecked {
            _addressData[from].balance -= 1;
            _addressData[to].balance += 1;

            _ownerships[tokenId].addr = to;
            _ownerships[tokenId].startTimestamp = uint64(block.timestamp);

            // If the ownership slot of tokenId+1 is not explicitly set, that means the transfer initiator owns it.
            // Set the slot of tokenId+1 explicitly in storage to maintain correctness for ownerOf(tokenId+1) calls.
            uint256 nextTokenId = tokenId + 1;
            if (_ownerships[nextTokenId].addr == address(0)) {
                // This will suffice for checking _exists(nextTokenId),
                // as a burned slot cannot contain the zero address.
                if (nextTokenId < _currentIndex) {
                    _ownerships[nextTokenId].addr = prevOwnership.addr;
                    _ownerships[nextTokenId].startTimestamp = prevOwnership.startTimestamp;
                }
            }
        }

        emit Transfer(from, to, tokenId);
        _afterTokenTransfers(from, to, tokenId, 1);
    }

    /**
     * @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 {
        TokenOwnership memory prevOwnership = ownershipOf(tokenId);

        _beforeTokenTransfers(prevOwnership.addr, address(0), tokenId, 1);

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

        // Underflow of the sender's balance is impossible because we check for
        // ownership above and the recipient's balance can't realistically overflow.
        // Counter overflow is incredibly unrealistic as tokenId would have to be 2**256.
        unchecked {
            _addressData[prevOwnership.addr].balance -= 1;
            _addressData[prevOwnership.addr].numberBurned += 1;

            // Keep track of who burned the token, and the timestamp of burning.
            _ownerships[tokenId].addr = prevOwnership.addr;
            _ownerships[tokenId].startTimestamp = uint64(block.timestamp);
            _ownerships[tokenId].burned = true;

            // If the ownership slot of tokenId+1 is not explicitly set, that means the burn initiator owns it.
            // Set the slot of tokenId+1 explicitly in storage to maintain correctness for ownerOf(tokenId+1) calls.
            uint256 nextTokenId = tokenId + 1;
            if (_ownerships[nextTokenId].addr == address(0)) {
                // This will suffice for checking _exists(nextTokenId),
                // as a burned slot cannot contain the zero address.
                if (nextTokenId < _currentIndex) {
                    _ownerships[nextTokenId].addr = prevOwnership.addr;
                    _ownerships[nextTokenId].startTimestamp = prevOwnership.startTimestamp;
                }
            }
        }

        emit Transfer(prevOwnership.addr, address(0), tokenId);
        _afterTokenTransfers(prevOwnership.addr, address(0), tokenId, 1);

        // Overflow not possible, as _burnCounter cannot be exceed _currentIndex times.
        unchecked {
            _burnCounter++;
        }
    }

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

    /**
     * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target 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 _checkContractOnERC721Received(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) private returns (bool) {
        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 TransferToNonERC721ReceiverImplementer();
            } else {
                assembly {
                    revert(add(32, reason), mload(reason))
                }
            }
        }
    }

    /**
     * @dev Hook that is called before a set of serially-ordered token ids are about to be transferred. This includes minting.
     * And also called before burning one token.
     *
     * startTokenId - the first token id to be transferred
     * quantity - the amount to be transferred
     *
     * Calling conditions:
     *
     * - When `from` and `to` are both non-zero, `from`'s `tokenId` will be
     * transferred to `to`.
     * - When `from` is zero, `tokenId` will be minted for `to`.
     * - When `to` is zero, `tokenId` will be burned by `from`.
     * - `from` and `to` are never both zero.
     */
    function _beforeTokenTransfers(
        address from,
        address to,
        uint256 startTokenId,
        uint256 quantity
    ) internal virtual {}

    /**
     * @dev Hook that is called after a set of serially-ordered token ids have been transferred. This includes
     * minting.
     * And also called after one token has been burned.
     *
     * startTokenId - the first token id to be transferred
     * quantity - the amount to be transferred
     *
     * Calling conditions:
     *
     * - When `from` and `to` are both non-zero, `from`'s `tokenId` has been
     * transferred to `to`.
     * - When `from` is zero, `tokenId` has been minted for `to`.
     * - When `to` is zero, `tokenId` has been burned by `from`.
     * - `from` and `to` are never both zero.
     */
    function _afterTokenTransfers(
        address from,
        address to,
        uint256 startTokenId,
        uint256 quantity
    ) internal virtual {}
}

File 5 of 15 : Base64.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.12;

library Base64 {
    bytes internal constant TABLE = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";

    /// @notice Encodes some bytes to the base64 representation
    function encode(bytes memory data) internal pure returns (string memory) {
        uint256 len = data.length;
        if (len == 0) return "";

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

        // Add some extra buffer at the end
        bytes memory result = new bytes(encodedLen + 32);

        bytes memory table = TABLE;

        assembly {
            let tablePtr := add(table, 1)
            let resultPtr := add(result, 32)

            for {
                let i := 0
            } lt(i, len) {

            } {
                i := add(i, 3)
                let input := and(mload(add(data, i)), 0xffffff)

                let out := mload(add(tablePtr, and(shr(18, input), 0x3F)))
                out := shl(8, out)
                out := add(out, and(mload(add(tablePtr, and(shr(12, input), 0x3F))), 0xFF))
                out := shl(8, out)
                out := add(out, and(mload(add(tablePtr, and(shr(6, input), 0x3F))), 0xFF))
                out := shl(8, out)
                out := add(out, and(mload(add(tablePtr, and(input, 0x3F))), 0xFF))
                out := shl(224, out)

                mstore(resultPtr, out)

                resultPtr := add(resultPtr, 4)
            }

            switch mod(len, 3)
            case 1 {
                mstore(sub(resultPtr, 2), shl(240, 0x3d3d))
            }
            case 2 {
                mstore(sub(resultPtr, 1), shl(248, 0x3d))
            }

            mstore(result, encodedLen)
        }

        return string(result);
    }
}

File 6 of 15 : IERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol)

pragma solidity ^0.8.0;

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

File 7 of 15 : ERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol)

pragma solidity ^0.8.0;

import "./IERC165.sol";

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

File 8 of 15 : Strings.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Strings.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

File 9 of 15 : Context.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)

pragma solidity ^0.8.0;

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

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

File 10 of 15 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (utils/Address.sol)

pragma solidity ^0.8.1;

/**
 * @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
     * ====
     *
     * [IMPORTANT]
     * ====
     * You shouldn't rely on `isContract` to protect against flash loan attacks!
     *
     * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets
     * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract
     * constructor.
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize/address.code.length, which returns 0
        // for contracts in construction, since the code is only stored at the end
        // of the constructor execution.

        return account.code.length > 0;
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

import "../IERC721.sol";

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

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

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

File 12 of 15 : IERC721Enumerable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC721/extensions/IERC721Enumerable.sol)

pragma solidity ^0.8.0;

import "../IERC721.sol";

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

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

    /**
     * @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 13 of 15 : IERC721Receiver.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721Receiver.sol)

pragma solidity ^0.8.0;

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

Contract Security Audit

Contract ABI

[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"ApprovalToCurrentOwner","type":"error"},{"inputs":[],"name":"ApproveToCaller","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"TransferCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"TransferFromIncorrectOwner","type":"error"},{"inputs":[],"name":"TransferToNonERC721ReceiverImplementer","type":"error"},{"inputs":[],"name":"TransferToZeroAddress","type":"error"},{"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":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"flipSaleState","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"flipUniqueState","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"homeId","type":"uint256"}],"name":"getImageOfHomeId","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"homeId","type":"uint256"}],"name":"getStartTimestamp","outputs":[{"internalType":"uint64","name":"","type":"uint64"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"homeId","type":"uint256"}],"name":"getStyleOfHomeId","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"homeId","type":"uint256"}],"name":"getYieldOfHomeId","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"dirtId","type":"uint256"},{"internalType":"uint256","name":"glueId","type":"uint256"},{"internalType":"uint256","name":"styleId","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"saleIsActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"imageURI","type":"string"}],"name":"setImageURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"contractAddress","type":"address"}],"name":"setMaterialsAddress","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"}]

60806040523480156200001157600080fd5b506040518060400160405280600f81526020017f4275696c646f6f727320486f6d657300000000000000000000000000000000008152506040518060400160405280600481526020017f484f4d45000000000000000000000000000000000000000000000000000000008152506200009e62000092620000ee60201b60201c565b620000f660201b60201c565b8160039080519060200190620000b6929190620001c3565b508060049080519060200190620000cf929190620001c3565b50620000e0620001ba60201b60201c565b6001819055505050620002d8565b600033905090565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b60006001905090565b828054620001d190620002a2565b90600052602060002090601f016020900481019282620001f5576000855562000241565b82601f106200021057805160ff191683800117855562000241565b8280016001018555821562000241579182015b828111156200024057825182559160200191906001019062000223565b5b50905062000250919062000254565b5090565b5b808211156200026f57600081600090555060010162000255565b5090565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60006002820490506001821680620002bb57607f821691505b60208210811415620002d257620002d162000273565b5b50919050565b614a5980620002e86000396000f3fe608060405234801561001057600080fd5b50600436106101c45760003560e01c8063715018a6116100f9578063b88d4fde11610097578063e985e9c511610071578063e985e9c5146104db578063eb8d24441461050b578063f2fde38b14610529578063f8e8268414610545576101c4565b8063b88d4fde1461045f578063c87b56dd1461047b578063d6314861146104ab576101c4565b806395d89b41116100d357806395d89b41146103eb5780639e1e27ed14610409578063a22cb46514610413578063b41a638a1461042f576101c4565b8063715018a6146103a75780638c663454146103b15780638da5cb5b146103cd576101c4565b806323b872dd1161016657806342966c681161014057806342966c68146102fb5780635bc548ea146103175780636352211e1461034757806370a0823114610377576101c4565b806323b872dd146102b957806334918dfd146102d557806342842e0e146102df576101c4565b806306fdde03116101a257806306fdde0314610231578063081812fc1461024f578063095ea7b31461027f57806318160ddd1461029b576101c4565b806301ffc9a7146101c957806302acc94b146101f957806304787ca214610215575b600080fd5b6101e360048036038101906101de919061368d565b610575565b6040516101f091906136d5565b60405180910390f35b610213600480360381019061020e9190613726565b610657565b005b61022f600480360381019061022a91906137de565b610bd7565b005b610239610c69565b60405161024691906138c4565b60405180910390f35b610269600480360381019061026491906138e6565b610cfb565b6040516102769190613954565b60405180910390f35b6102996004803603810190610294919061399b565b610d77565b005b6102a3610e82565b6040516102b091906139ea565b60405180910390f35b6102d360048036038101906102ce9190613a05565b610e99565b005b6102dd610ea9565b005b6102f960048036038101906102f49190613a05565b610f51565b005b610315600480360381019061031091906138e6565b610f71565b005b610331600480360381019061032c91906138e6565b611062565b60405161033e9190613a7b565b60405180910390f35b610361600480360381019061035c91906138e6565b611096565b60405161036e9190613954565b60405180910390f35b610391600480360381019061038c9190613a96565b6110ac565b60405161039e91906139ea565b60405180910390f35b6103af61117c565b005b6103cb60048036038101906103c69190613a96565b611204565b005b6103d56112c4565b6040516103e29190613954565b60405180910390f35b6103f36112ed565b60405161040091906138c4565b60405180910390f35b61041161137f565b005b61042d60048036038101906104289190613aef565b611427565b005b610449600480360381019061044491906138e6565b61159f565b60405161045691906138c4565b60405180910390f35b61047960048036038101906104749190613c5f565b611625565b005b610495600480360381019061049091906138e6565b6116a1565b6040516104a291906138c4565b60405180910390f35b6104c560048036038101906104c091906138e6565b611768565b6040516104d291906138c4565b60405180910390f35b6104f560048036038101906104f09190613ce2565b6119a0565b60405161050291906136d5565b60405180910390f35b610513611a34565b60405161052091906136d5565b60405180910390f35b610543600480360381019061053e9190613a96565b611a47565b005b61055f600480360381019061055a91906138e6565b611b3f565b60405161056c91906138c4565b60405180910390f35b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061064057507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80610650575061064f82611be4565b5b9050919050565b600b60019054906101000a900460ff166106a6576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161069d90613d6e565b60405180910390fd5b6106ae611c4e565b73ffffffffffffffffffffffffffffffffffffffff163273ffffffffffffffffffffffffffffffffffffffff161461071b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161071290613dda565b60405180910390fd5b61072483611c56565b610763576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161075a90613e46565b60405180910390fd5b61076c82611d4f565b6107ab576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016107a290613eb2565b60405180910390fd5b6107b481611e48565b6107f3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016107ea90613f44565b60405180910390fd5b6000600b60029054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690508073ffffffffffffffffffffffffffffffffffffffff166342966c68856040518263ffffffff1660e01b815260040161085391906139ea565b600060405180830381600087803b15801561086d57600080fd5b505af1158015610881573d6000803e3d6000fd5b505050508073ffffffffffffffffffffffffffffffffffffffff166342966c68846040518263ffffffff1660e01b81526004016108be91906139ea565b600060405180830381600087803b1580156108d857600080fd5b505af11580156108ec573d6000803e3d6000fd5b505050508073ffffffffffffffffffffffffffffffffffffffff166342966c68836040518263ffffffff1660e01b815260040161092991906139ea565b600060405180830381600087803b15801561094357600080fd5b505af1158015610957573d6000803e3d6000fd5b5050505060058211801561096b575060bd82105b156109fe5761098261097b611c4e565b6001611f4c565b6009600081548092919061099590613f93565b91905055506040518060400160405280600581526020017f5374726177000000000000000000000000000000000000000000000000000000815250600c6000600954815260200190815260200160002090805190602001906109f89291906134b5565b50610bd1565b60f082118015610a0f575061014b82105b15610aa257610a26610a1f611c4e565b6001611f4c565b60096000815480929190610a3990613f93565b91905055506040518060400160405280600481526020017f576f6f6400000000000000000000000000000000000000000000000000000000815250600c600060095481526020019081526020016000209080519060200190610a9c9291906134b5565b50610bd0565b60bd82118015610ab2575060f082105b15610b4557610ac9610ac2611c4e565b6001611f4c565b60096000815480929190610adc90613f93565b91905055506040518060400160405280600581526020017f427269636b000000000000000000000000000000000000000000000000000000815250600c600060095481526020019081526020016000209080519060200190610b3f9291906134b5565b50610bcf565b610b57610b50611c4e565b6001611f4c565b60096000815480929190610b6a90613f93565b91905055506040518060400160405280600481526020017f476f6c6400000000000000000000000000000000000000000000000000000000815250600c600060095481526020019081526020016000209080519060200190610bcd9291906134b5565b505b5b5b50505050565b610bdf611c4e565b73ffffffffffffffffffffffffffffffffffffffff16610bfd6112c4565b73ffffffffffffffffffffffffffffffffffffffff1614610c53576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c4a90614028565b60405180910390fd5b8181600a9190610c6492919061353b565b505050565b606060038054610c7890614077565b80601f0160208091040260200160405190810160405280929190818152602001828054610ca490614077565b8015610cf15780601f10610cc657610100808354040283529160200191610cf1565b820191906000526020600020905b815481529060010190602001808311610cd457829003601f168201915b5050505050905090565b6000610d0682611f6a565b610d3c576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6007600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610d8282611096565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610dea576040517f943f7b8c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610e09611c4e565b73ffffffffffffffffffffffffffffffffffffffff1614158015610e3b5750610e3981610e34611c4e565b6119a0565b155b15610e72576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610e7d838383611fb8565b505050565b6000610e8c61206a565b6002546001540303905090565b610ea4838383612073565b505050565b610eb1611c4e565b73ffffffffffffffffffffffffffffffffffffffff16610ecf6112c4565b73ffffffffffffffffffffffffffffffffffffffff1614610f25576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f1c90614028565b60405180910390fd5b600b60019054906101000a900460ff1615600b60016101000a81548160ff021916908315150217905550565b610f6c83838360405180602001604052806000815250611625565b505050565b6000610f7c82612564565b90506000816000015173ffffffffffffffffffffffffffffffffffffffff16610fa3611c4e565b73ffffffffffffffffffffffffffffffffffffffff161480610fd65750610fd58260000151610fd0611c4e565b6119a0565b5b8061101b5750610fe4611c4e565b73ffffffffffffffffffffffffffffffffffffffff1661100384610cfb565b73ffffffffffffffffffffffffffffffffffffffff16145b905080611054576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61105d836127f3565b505050565b60006005600083815260200190815260200160002060000160149054906101000a900467ffffffffffffffff169050919050565b60006110a182612564565b600001519050919050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611114576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600660008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160009054906101000a900467ffffffffffffffff1667ffffffffffffffff169050919050565b611184611c4e565b73ffffffffffffffffffffffffffffffffffffffff166111a26112c4565b73ffffffffffffffffffffffffffffffffffffffff16146111f8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111ef90614028565b60405180910390fd5b6112026000612b97565b565b61120c611c4e565b73ffffffffffffffffffffffffffffffffffffffff1661122a6112c4565b73ffffffffffffffffffffffffffffffffffffffff1614611280576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161127790614028565b60405180910390fd5b80600b60026101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6060600480546112fc90614077565b80601f016020809104026020016040519081016040528092919081815260200182805461132890614077565b80156113755780601f1061134a57610100808354040283529160200191611375565b820191906000526020600020905b81548152906001019060200180831161135857829003601f168201915b5050505050905090565b611387611c4e565b73ffffffffffffffffffffffffffffffffffffffff166113a56112c4565b73ffffffffffffffffffffffffffffffffffffffff16146113fb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113f290614028565b60405180910390fd5b600b60009054906101000a900460ff1615600b60006101000a81548160ff021916908315150217905550565b61142f611c4e565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611494576040517fb06307db00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80600860006114a1611c4e565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff1661154e611c4e565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c318360405161159391906136d5565b60405180910390a35050565b6060600b60009054906101000a900460ff16156115e857600a6115c183612c5b565b6040516020016115d29291906141c5565b6040516020818303038152906040529050611620565b600a600c600084815260200190815260200160002060405160200161160e9291906141f4565b60405160208183030381529060405290505b919050565b611630848484612073565b61164f8373ffffffffffffffffffffffffffffffffffffffff16612dbc565b8015611664575061166284848484612ddf565b155b1561169b576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b50505050565b60606116ac82611f6a565b6116eb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116e290614295565b60405180910390fd5b600061173b6116f984612c5b565b6117028561159f565b61170b86611b3f565b61171487611768565b60405160200161172794939291906144ef565b604051602081830303815290604052612f30565b90508060405160200161174e91906145b0565b604051602081830303815290604052905080915050919050565b60606040518060400160405280600581526020017f537472617700000000000000000000000000000000000000000000000000000081525080519060200120600c60008481526020019081526020016000206040516117c79190614671565b60405180910390201415611812576040518060400160405280600381526020017f4c6f770000000000000000000000000000000000000000000000000000000000815250905061199b565b6040518060400160405280600481526020017f576f6f640000000000000000000000000000000000000000000000000000000081525080519060200120600c600084815260200190815260200160002060405161186f9190614671565b604051809103902014156118ba576040518060400160405280600681526020017f4d656469756d0000000000000000000000000000000000000000000000000000815250905061199b565b6040518060400160405280600581526020017f427269636b00000000000000000000000000000000000000000000000000000081525080519060200120600c60008481526020019081526020016000206040516119179190614671565b60405180910390201415611962576040518060400160405280600481526020017f4869676800000000000000000000000000000000000000000000000000000000815250905061199b565b6040518060400160405280600781526020017f45787472656d650000000000000000000000000000000000000000000000000081525090505b919050565b6000600860008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b600b60019054906101000a900460ff1681565b611a4f611c4e565b73ffffffffffffffffffffffffffffffffffffffff16611a6d6112c4565b73ffffffffffffffffffffffffffffffffffffffff1614611ac3576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611aba90614028565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611b33576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b2a906146fa565b60405180910390fd5b611b3c81612b97565b50565b6060600c60008381526020019081526020016000208054611b5f90614077565b80601f0160208091040260200160405190810160405280929190818152602001828054611b8b90614077565b8015611bd85780601f10611bad57610100808354040283529160200191611bd8565b820191906000526020600020905b815481529060010190602001808311611bbb57829003601f168201915b50505050509050919050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b600033905090565b600080600b60029054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050611c86611c4e565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16636352211e856040518263ffffffff1660e01b8152600401611cd591906139ea565b602060405180830381865afa158015611cf2573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611d16919061472f565b73ffffffffffffffffffffffffffffffffffffffff16148015611d3a575061029983115b8015611d4757506103e783105b915050919050565b600080600b60029054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050611d7f611c4e565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16636352211e856040518263ffffffff1660e01b8152600401611dce91906139ea565b602060405180830381865afa158015611deb573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611e0f919061472f565b73ffffffffffffffffffffffffffffffffffffffff16148015611e33575061014b83115b8015611e40575061029983105b915050919050565b600080600b60029054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050611e78611c4e565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16636352211e856040518263ffffffff1660e01b8152600401611ec791906139ea565b602060405180830381865afa158015611ee4573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611f08919061472f565b73ffffffffffffffffffffffffffffffffffffffff16148015611f44575061014c831080611f37575061029983145b80611f4357506103e783145b5b915050919050565b611f668282604051806020016040528060008152506130c8565b5050565b600081611f7561206a565b11158015611f84575060015482105b8015611fb1575060056000838152602001908152602001600020600001601c9054906101000a900460ff16155b9050919050565b826007600084815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b60006001905090565b600061207e82612564565b90506000816000015173ffffffffffffffffffffffffffffffffffffffff166120a5611c4e565b73ffffffffffffffffffffffffffffffffffffffff1614806120d857506120d782600001516120d2611c4e565b6119a0565b5b8061211d57506120e6611c4e565b73ffffffffffffffffffffffffffffffffffffffff1661210584610cfb565b73ffffffffffffffffffffffffffffffffffffffff16145b905080612156576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8473ffffffffffffffffffffffffffffffffffffffff16826000015173ffffffffffffffffffffffffffffffffffffffff16146121bf576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161415612226576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61223385858560016130da565b6122436000848460000151611fb8565b6001600660008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160008282829054906101000a900467ffffffffffffffff160392506101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055506001600660008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160008282829054906101000a900467ffffffffffffffff160192506101000a81548167ffffffffffffffff021916908367ffffffffffffffff160217905550836005600085815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550426005600085815260200190815260200160002060000160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055506000600184019050600073ffffffffffffffffffffffffffffffffffffffff166005600083815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614156124f4576001548110156124f35782600001516005600083815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555082602001516005600083815260200190815260200160002060000160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055505b5b50828473ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a461255d85858560016130e0565b5050505050565b61256c6135c1565b60008290508061257a61206a565b11158015612589575060015481105b156127bc576000600560008381526020019081526020016000206040518060600160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a900467ffffffffffffffff1667ffffffffffffffff1667ffffffffffffffff16815260200160008201601c9054906101000a900460ff161515151581525050905080604001516127ba57600073ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff161461269e5780925050506127ee565b5b6001156127b957818060019003925050600560008381526020019081526020016000206040518060600160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a900467ffffffffffffffff1667ffffffffffffffff1667ffffffffffffffff16815260200160008201601c9054906101000a900460ff1615151515815250509050600073ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff16146127b45780925050506127ee565b61269f565b5b505b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b919050565b60006127fe82612564565b9050612812816000015160008460016130da565b6128226000838360000151611fb8565b600160066000836000015173ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160008282829054906101000a900467ffffffffffffffff160392506101000a81548167ffffffffffffffff021916908367ffffffffffffffff160217905550600160066000836000015173ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160108282829054906101000a900467ffffffffffffffff160192506101000a81548167ffffffffffffffff021916908367ffffffffffffffff16021790555080600001516005600084815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550426005600084815260200190815260200160002060000160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff160217905550600160056000848152602001908152602001600020600001601c6101000a81548160ff0219169083151502179055506000600183019050600073ffffffffffffffffffffffffffffffffffffffff166005600083815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161415612b0e57600154811015612b0d5781600001516005600083815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555081602001516005600083815260200190815260200160002060000160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055505b5b5081600073ffffffffffffffffffffffffffffffffffffffff16826000015173ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4612b81816000015160008460016130e0565b6002600081548092919060010191905055505050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b60606000821415612ca3576040518060400160405280600181526020017f30000000000000000000000000000000000000000000000000000000000000008152509050612db7565b600082905060005b60008214612cd5578080612cbe90613f93565b915050600a82612cce919061478b565b9150612cab565b60008167ffffffffffffffff811115612cf157612cf0613b34565b5b6040519080825280601f01601f191660200182016040528015612d235781602001600182028036833780820191505090505b5090505b60008514612db057600182612d3c91906147bc565b9150600a85612d4b91906147f0565b6030612d579190614821565b60f81b818381518110612d6d57612d6c614877565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a85612da9919061478b565b9450612d27565b8093505050505b919050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b60008373ffffffffffffffffffffffffffffffffffffffff1663150b7a02612e05611c4e565b8786866040518563ffffffff1660e01b8152600401612e2794939291906148fb565b6020604051808303816000875af1925050508015612e6357506040513d601f19601f82011682018060405250810190612e60919061495c565b60015b612edd573d8060008114612e93576040519150601f19603f3d011682016040523d82523d6000602084013e612e98565b606091505b50600081511415612ed5576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050949350505050565b60606000825190506000811415612f5957604051806020016040528060008152509150506130c3565b60006003600283612f6a9190614821565b612f74919061478b565b6004612f809190614989565b90506000602082612f919190614821565b67ffffffffffffffff811115612faa57612fa9613b34565b5b6040519080825280601f01601f191660200182016040528015612fdc5781602001600182028036833780820191505090505b50905060006040518060600160405280604081526020016149e4604091399050600181016020830160005b868110156130805760038101905062ffffff818a015116603f8160121c168401518060081b905060ff603f83600c1c1686015116810190508060081b905060ff603f8360061c1686015116810190508060081b905060ff603f831686015116810190508060e01b90508084526004840193505050613007565b50600386066001811461309a57600281146130aa576130b5565b613d3d60f01b60028303526130b5565b603d60f81b60018303525b508484525050819450505050505b919050565b6130d583838360016130e6565b505050565b50505050565b50505050565b60006001549050600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff161415613154576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600084141561318f576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61319c60008683876130da565b83600660008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160008282829054906101000a900467ffffffffffffffff160192506101000a81548167ffffffffffffffff021916908367ffffffffffffffff16021790555083600660008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160088282829054906101000a900467ffffffffffffffff160192506101000a81548167ffffffffffffffff021916908367ffffffffffffffff160217905550846005600083815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550426005600083815260200190815260200160002060000160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff16021790555060008190506000858201905083801561336657506133658773ffffffffffffffffffffffffffffffffffffffff16612dbc565b5b1561342c575b818773ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46133db6000888480600101955088612ddf565b613411576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8082141561336c57826001541461342757600080fd5b613498565b5b818060010192508773ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a48082141561342d575b8160018190555050506134ae60008683876130e0565b5050505050565b8280546134c190614077565b90600052602060002090601f0160209004810192826134e3576000855561352a565b82601f106134fc57805160ff191683800117855561352a565b8280016001018555821561352a579182015b8281111561352957825182559160200191906001019061350e565b5b5090506135379190613604565b5090565b82805461354790614077565b90600052602060002090601f01602090048101928261356957600085556135b0565b82601f1061358257803560ff19168380011785556135b0565b828001600101855582156135b0579182015b828111156135af578235825591602001919060010190613594565b5b5090506135bd9190613604565b5090565b6040518060600160405280600073ffffffffffffffffffffffffffffffffffffffff168152602001600067ffffffffffffffff1681526020016000151581525090565b5b8082111561361d576000816000905550600101613605565b5090565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b61366a81613635565b811461367557600080fd5b50565b60008135905061368781613661565b92915050565b6000602082840312156136a3576136a261362b565b5b60006136b184828501613678565b91505092915050565b60008115159050919050565b6136cf816136ba565b82525050565b60006020820190506136ea60008301846136c6565b92915050565b6000819050919050565b613703816136f0565b811461370e57600080fd5b50565b600081359050613720816136fa565b92915050565b60008060006060848603121561373f5761373e61362b565b5b600061374d86828701613711565b935050602061375e86828701613711565b925050604061376f86828701613711565b9150509250925092565b600080fd5b600080fd5b600080fd5b60008083601f84011261379e5761379d613779565b5b8235905067ffffffffffffffff8111156137bb576137ba61377e565b5b6020830191508360018202830111156137d7576137d6613783565b5b9250929050565b600080602083850312156137f5576137f461362b565b5b600083013567ffffffffffffffff81111561381357613812613630565b5b61381f85828601613788565b92509250509250929050565b600081519050919050565b600082825260208201905092915050565b60005b8381101561386557808201518184015260208101905061384a565b83811115613874576000848401525b50505050565b6000601f19601f8301169050919050565b60006138968261382b565b6138a08185613836565b93506138b0818560208601613847565b6138b98161387a565b840191505092915050565b600060208201905081810360008301526138de818461388b565b905092915050565b6000602082840312156138fc576138fb61362b565b5b600061390a84828501613711565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061393e82613913565b9050919050565b61394e81613933565b82525050565b60006020820190506139696000830184613945565b92915050565b61397881613933565b811461398357600080fd5b50565b6000813590506139958161396f565b92915050565b600080604083850312156139b2576139b161362b565b5b60006139c085828601613986565b92505060206139d185828601613711565b9150509250929050565b6139e4816136f0565b82525050565b60006020820190506139ff60008301846139db565b92915050565b600080600060608486031215613a1e57613a1d61362b565b5b6000613a2c86828701613986565b9350506020613a3d86828701613986565b9250506040613a4e86828701613711565b9150509250925092565b600067ffffffffffffffff82169050919050565b613a7581613a58565b82525050565b6000602082019050613a906000830184613a6c565b92915050565b600060208284031215613aac57613aab61362b565b5b6000613aba84828501613986565b91505092915050565b613acc816136ba565b8114613ad757600080fd5b50565b600081359050613ae981613ac3565b92915050565b60008060408385031215613b0657613b0561362b565b5b6000613b1485828601613986565b9250506020613b2585828601613ada565b9150509250929050565b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b613b6c8261387a565b810181811067ffffffffffffffff82111715613b8b57613b8a613b34565b5b80604052505050565b6000613b9e613621565b9050613baa8282613b63565b919050565b600067ffffffffffffffff821115613bca57613bc9613b34565b5b613bd38261387a565b9050602081019050919050565b82818337600083830152505050565b6000613c02613bfd84613baf565b613b94565b905082815260208101848484011115613c1e57613c1d613b2f565b5b613c29848285613be0565b509392505050565b600082601f830112613c4657613c45613779565b5b8135613c56848260208601613bef565b91505092915050565b60008060008060808587031215613c7957613c7861362b565b5b6000613c8787828801613986565b9450506020613c9887828801613986565b9350506040613ca987828801613711565b925050606085013567ffffffffffffffff811115613cca57613cc9613630565b5b613cd687828801613c31565b91505092959194509250565b60008060408385031215613cf957613cf861362b565b5b6000613d0785828601613986565b9250506020613d1885828601613986565b9150509250929050565b7f4275696c64696e67206973206e6f742061637469766500000000000000000000600082015250565b6000613d58601683613836565b9150613d6382613d22565b602082019050919050565b60006020820190508181036000830152613d8781613d4b565b9050919050565b7f4e6f7420616c6c6f77696e6720636f6e74726163747300000000000000000000600082015250565b6000613dc4601683613836565b9150613dcf82613d8e565b602082019050919050565b60006020820190508181036000830152613df381613db7565b9050919050565b7f596f7520646f206e6f7420686176652064697274000000000000000000000000600082015250565b6000613e30601483613836565b9150613e3b82613dfa565b602082019050919050565b60006020820190508181036000830152613e5f81613e23565b9050919050565b7f596f7520646f206e6f74206861766520676c7565000000000000000000000000600082015250565b6000613e9c601483613836565b9150613ea782613e66565b602082019050919050565b60006020820190508181036000830152613ecb81613e8f565b9050919050565b7f596f7520646f206e6f74206861766520676f6c642c20627269636b732c20737460008201527f69636b732c206f72207374726177000000000000000000000000000000000000602082015250565b6000613f2e602e83613836565b9150613f3982613ed2565b604082019050919050565b60006020820190508181036000830152613f5d81613f21565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000613f9e826136f0565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415613fd157613fd0613f64565b5b600182019050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000614012602083613836565b915061401d82613fdc565b602082019050919050565b6000602082019050818103600083015261404181614005565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6000600282049050600182168061408f57607f821691505b602082108114156140a3576140a2614048565b5b50919050565b600081905092915050565b60008190508160005260206000209050919050565b600081546140d681614077565b6140e081866140a9565b945060018216600081146140fb576001811461410c5761413f565b60ff1983168652818601935061413f565b614115856140b4565b60005b8381101561413757815481890152600182019150602081019050614118565b838801955050505b50505092915050565b60006141538261382b565b61415d81856140a9565b935061416d818560208601613847565b80840191505092915050565b7f2e706e6700000000000000000000000000000000000000000000000000000000600082015250565b60006141af6004836140a9565b91506141ba82614179565b600482019050919050565b60006141d182856140c9565b91506141dd8284614148565b91506141e8826141a2565b91508190509392505050565b600061420082856140c9565b915061420c82846140c9565b9150614217826141a2565b91508190509392505050565b7f4552433732314d657461646174613a2055524920717565727920666f72206e6f60008201527f6e6578697374656e7420746f6b656e0000000000000000000000000000000000602082015250565b600061427f602f83613836565b915061428a82614223565b604082019050919050565b600060208201905081810360008301526142ae81614272565b9050919050565b7f7b226e616d65223a2022486f6d65202300000000000000000000000000000000600082015250565b60006142eb6010836140a9565b91506142f6826142b5565b601082019050919050565b7f222c20226465736372697074696f6e223a2022412062656175746966756c206860008201527f6f6d6520637265617465642062792061204275696c646f6f722e222c2022657860208201527f7465726e616c5f75726c223a202268747470733a2f2f7777772e6275696c646f60408201527f6f72732e6f7267222c2022696d616765223a2022000000000000000000000000606082015250565b60006143a96074836140a9565b91506143b482614301565b607482019050919050565b7f222c202261747472696275746573223a5b7b2274726169745f74797065223a2060008201527f225374796c65222c202276616c7565223a202200000000000000000000000000602082015250565b600061441b6033836140a9565b9150614426826143bf565b603382019050919050565b7f227d2c207b2274726169745f74797065223a20225969656c64222c202276616c60008201527f7565223a20220000000000000000000000000000000000000000000000000000602082015250565b600061448d6026836140a9565b915061449882614431565b602682019050919050565b7f227d5d7d00000000000000000000000000000000000000000000000000000000600082015250565b60006144d96004836140a9565b91506144e4826144a3565b600482019050919050565b60006144fa826142de565b91506145068287614148565b91506145118261439c565b915061451d8286614148565b91506145288261440e565b91506145348285614148565b915061453f82614480565b915061454b8284614148565b9150614556826144cc565b915081905095945050505050565b7f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c000000600082015250565b600061459a601d836140a9565b91506145a582614564565b601d82019050919050565b60006145bb8261458d565b91506145c78284614148565b915081905092915050565b600081905092915050565b60008190508160005260206000209050919050565b600081546145ff81614077565b61460981866145d2565b94506001821660008114614624576001811461463557614668565b60ff19831686528186019350614668565b61463e856145dd565b60005b8381101561466057815481890152600182019150602081019050614641565b838801955050505b50505092915050565b600061467d82846145f2565b915081905092915050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b60006146e4602683613836565b91506146ef82614688565b604082019050919050565b60006020820190508181036000830152614713816146d7565b9050919050565b6000815190506147298161396f565b92915050565b6000602082840312156147455761474461362b565b5b60006147538482850161471a565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b6000614796826136f0565b91506147a1836136f0565b9250826147b1576147b061475c565b5b828204905092915050565b60006147c7826136f0565b91506147d2836136f0565b9250828210156147e5576147e4613f64565b5b828203905092915050565b60006147fb826136f0565b9150614806836136f0565b9250826148165761481561475c565b5b828206905092915050565b600061482c826136f0565b9150614837836136f0565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0382111561486c5761486b613f64565b5b828201905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b600081519050919050565b600082825260208201905092915050565b60006148cd826148a6565b6148d781856148b1565b93506148e7818560208601613847565b6148f08161387a565b840191505092915050565b60006080820190506149106000830187613945565b61491d6020830186613945565b61492a60408301856139db565b818103606083015261493c81846148c2565b905095945050505050565b60008151905061495681613661565b92915050565b6000602082840312156149725761497161362b565b5b600061498084828501614947565b91505092915050565b6000614994826136f0565b915061499f836136f0565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04831182151516156149d8576149d7613f64565b5b82820290509291505056fe4142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2fa2646970667358221220344b2a1ac4a8e8fbb3204d5f8c57d7b5ea62057bd71272147d83d7a6fe6f2bc964736f6c634300080c0033

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106101c45760003560e01c8063715018a6116100f9578063b88d4fde11610097578063e985e9c511610071578063e985e9c5146104db578063eb8d24441461050b578063f2fde38b14610529578063f8e8268414610545576101c4565b8063b88d4fde1461045f578063c87b56dd1461047b578063d6314861146104ab576101c4565b806395d89b41116100d357806395d89b41146103eb5780639e1e27ed14610409578063a22cb46514610413578063b41a638a1461042f576101c4565b8063715018a6146103a75780638c663454146103b15780638da5cb5b146103cd576101c4565b806323b872dd1161016657806342966c681161014057806342966c68146102fb5780635bc548ea146103175780636352211e1461034757806370a0823114610377576101c4565b806323b872dd146102b957806334918dfd146102d557806342842e0e146102df576101c4565b806306fdde03116101a257806306fdde0314610231578063081812fc1461024f578063095ea7b31461027f57806318160ddd1461029b576101c4565b806301ffc9a7146101c957806302acc94b146101f957806304787ca214610215575b600080fd5b6101e360048036038101906101de919061368d565b610575565b6040516101f091906136d5565b60405180910390f35b610213600480360381019061020e9190613726565b610657565b005b61022f600480360381019061022a91906137de565b610bd7565b005b610239610c69565b60405161024691906138c4565b60405180910390f35b610269600480360381019061026491906138e6565b610cfb565b6040516102769190613954565b60405180910390f35b6102996004803603810190610294919061399b565b610d77565b005b6102a3610e82565b6040516102b091906139ea565b60405180910390f35b6102d360048036038101906102ce9190613a05565b610e99565b005b6102dd610ea9565b005b6102f960048036038101906102f49190613a05565b610f51565b005b610315600480360381019061031091906138e6565b610f71565b005b610331600480360381019061032c91906138e6565b611062565b60405161033e9190613a7b565b60405180910390f35b610361600480360381019061035c91906138e6565b611096565b60405161036e9190613954565b60405180910390f35b610391600480360381019061038c9190613a96565b6110ac565b60405161039e91906139ea565b60405180910390f35b6103af61117c565b005b6103cb60048036038101906103c69190613a96565b611204565b005b6103d56112c4565b6040516103e29190613954565b60405180910390f35b6103f36112ed565b60405161040091906138c4565b60405180910390f35b61041161137f565b005b61042d60048036038101906104289190613aef565b611427565b005b610449600480360381019061044491906138e6565b61159f565b60405161045691906138c4565b60405180910390f35b61047960048036038101906104749190613c5f565b611625565b005b610495600480360381019061049091906138e6565b6116a1565b6040516104a291906138c4565b60405180910390f35b6104c560048036038101906104c091906138e6565b611768565b6040516104d291906138c4565b60405180910390f35b6104f560048036038101906104f09190613ce2565b6119a0565b60405161050291906136d5565b60405180910390f35b610513611a34565b60405161052091906136d5565b60405180910390f35b610543600480360381019061053e9190613a96565b611a47565b005b61055f600480360381019061055a91906138e6565b611b3f565b60405161056c91906138c4565b60405180910390f35b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061064057507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80610650575061064f82611be4565b5b9050919050565b600b60019054906101000a900460ff166106a6576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161069d90613d6e565b60405180910390fd5b6106ae611c4e565b73ffffffffffffffffffffffffffffffffffffffff163273ffffffffffffffffffffffffffffffffffffffff161461071b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161071290613dda565b60405180910390fd5b61072483611c56565b610763576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161075a90613e46565b60405180910390fd5b61076c82611d4f565b6107ab576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016107a290613eb2565b60405180910390fd5b6107b481611e48565b6107f3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016107ea90613f44565b60405180910390fd5b6000600b60029054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690508073ffffffffffffffffffffffffffffffffffffffff166342966c68856040518263ffffffff1660e01b815260040161085391906139ea565b600060405180830381600087803b15801561086d57600080fd5b505af1158015610881573d6000803e3d6000fd5b505050508073ffffffffffffffffffffffffffffffffffffffff166342966c68846040518263ffffffff1660e01b81526004016108be91906139ea565b600060405180830381600087803b1580156108d857600080fd5b505af11580156108ec573d6000803e3d6000fd5b505050508073ffffffffffffffffffffffffffffffffffffffff166342966c68836040518263ffffffff1660e01b815260040161092991906139ea565b600060405180830381600087803b15801561094357600080fd5b505af1158015610957573d6000803e3d6000fd5b5050505060058211801561096b575060bd82105b156109fe5761098261097b611c4e565b6001611f4c565b6009600081548092919061099590613f93565b91905055506040518060400160405280600581526020017f5374726177000000000000000000000000000000000000000000000000000000815250600c6000600954815260200190815260200160002090805190602001906109f89291906134b5565b50610bd1565b60f082118015610a0f575061014b82105b15610aa257610a26610a1f611c4e565b6001611f4c565b60096000815480929190610a3990613f93565b91905055506040518060400160405280600481526020017f576f6f6400000000000000000000000000000000000000000000000000000000815250600c600060095481526020019081526020016000209080519060200190610a9c9291906134b5565b50610bd0565b60bd82118015610ab2575060f082105b15610b4557610ac9610ac2611c4e565b6001611f4c565b60096000815480929190610adc90613f93565b91905055506040518060400160405280600581526020017f427269636b000000000000000000000000000000000000000000000000000000815250600c600060095481526020019081526020016000209080519060200190610b3f9291906134b5565b50610bcf565b610b57610b50611c4e565b6001611f4c565b60096000815480929190610b6a90613f93565b91905055506040518060400160405280600481526020017f476f6c6400000000000000000000000000000000000000000000000000000000815250600c600060095481526020019081526020016000209080519060200190610bcd9291906134b5565b505b5b5b50505050565b610bdf611c4e565b73ffffffffffffffffffffffffffffffffffffffff16610bfd6112c4565b73ffffffffffffffffffffffffffffffffffffffff1614610c53576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c4a90614028565b60405180910390fd5b8181600a9190610c6492919061353b565b505050565b606060038054610c7890614077565b80601f0160208091040260200160405190810160405280929190818152602001828054610ca490614077565b8015610cf15780601f10610cc657610100808354040283529160200191610cf1565b820191906000526020600020905b815481529060010190602001808311610cd457829003601f168201915b5050505050905090565b6000610d0682611f6a565b610d3c576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6007600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610d8282611096565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610dea576040517f943f7b8c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610e09611c4e565b73ffffffffffffffffffffffffffffffffffffffff1614158015610e3b5750610e3981610e34611c4e565b6119a0565b155b15610e72576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610e7d838383611fb8565b505050565b6000610e8c61206a565b6002546001540303905090565b610ea4838383612073565b505050565b610eb1611c4e565b73ffffffffffffffffffffffffffffffffffffffff16610ecf6112c4565b73ffffffffffffffffffffffffffffffffffffffff1614610f25576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f1c90614028565b60405180910390fd5b600b60019054906101000a900460ff1615600b60016101000a81548160ff021916908315150217905550565b610f6c83838360405180602001604052806000815250611625565b505050565b6000610f7c82612564565b90506000816000015173ffffffffffffffffffffffffffffffffffffffff16610fa3611c4e565b73ffffffffffffffffffffffffffffffffffffffff161480610fd65750610fd58260000151610fd0611c4e565b6119a0565b5b8061101b5750610fe4611c4e565b73ffffffffffffffffffffffffffffffffffffffff1661100384610cfb565b73ffffffffffffffffffffffffffffffffffffffff16145b905080611054576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61105d836127f3565b505050565b60006005600083815260200190815260200160002060000160149054906101000a900467ffffffffffffffff169050919050565b60006110a182612564565b600001519050919050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611114576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600660008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160009054906101000a900467ffffffffffffffff1667ffffffffffffffff169050919050565b611184611c4e565b73ffffffffffffffffffffffffffffffffffffffff166111a26112c4565b73ffffffffffffffffffffffffffffffffffffffff16146111f8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111ef90614028565b60405180910390fd5b6112026000612b97565b565b61120c611c4e565b73ffffffffffffffffffffffffffffffffffffffff1661122a6112c4565b73ffffffffffffffffffffffffffffffffffffffff1614611280576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161127790614028565b60405180910390fd5b80600b60026101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6060600480546112fc90614077565b80601f016020809104026020016040519081016040528092919081815260200182805461132890614077565b80156113755780601f1061134a57610100808354040283529160200191611375565b820191906000526020600020905b81548152906001019060200180831161135857829003601f168201915b5050505050905090565b611387611c4e565b73ffffffffffffffffffffffffffffffffffffffff166113a56112c4565b73ffffffffffffffffffffffffffffffffffffffff16146113fb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113f290614028565b60405180910390fd5b600b60009054906101000a900460ff1615600b60006101000a81548160ff021916908315150217905550565b61142f611c4e565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611494576040517fb06307db00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80600860006114a1611c4e565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff1661154e611c4e565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c318360405161159391906136d5565b60405180910390a35050565b6060600b60009054906101000a900460ff16156115e857600a6115c183612c5b565b6040516020016115d29291906141c5565b6040516020818303038152906040529050611620565b600a600c600084815260200190815260200160002060405160200161160e9291906141f4565b60405160208183030381529060405290505b919050565b611630848484612073565b61164f8373ffffffffffffffffffffffffffffffffffffffff16612dbc565b8015611664575061166284848484612ddf565b155b1561169b576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b50505050565b60606116ac82611f6a565b6116eb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116e290614295565b60405180910390fd5b600061173b6116f984612c5b565b6117028561159f565b61170b86611b3f565b61171487611768565b60405160200161172794939291906144ef565b604051602081830303815290604052612f30565b90508060405160200161174e91906145b0565b604051602081830303815290604052905080915050919050565b60606040518060400160405280600581526020017f537472617700000000000000000000000000000000000000000000000000000081525080519060200120600c60008481526020019081526020016000206040516117c79190614671565b60405180910390201415611812576040518060400160405280600381526020017f4c6f770000000000000000000000000000000000000000000000000000000000815250905061199b565b6040518060400160405280600481526020017f576f6f640000000000000000000000000000000000000000000000000000000081525080519060200120600c600084815260200190815260200160002060405161186f9190614671565b604051809103902014156118ba576040518060400160405280600681526020017f4d656469756d0000000000000000000000000000000000000000000000000000815250905061199b565b6040518060400160405280600581526020017f427269636b00000000000000000000000000000000000000000000000000000081525080519060200120600c60008481526020019081526020016000206040516119179190614671565b60405180910390201415611962576040518060400160405280600481526020017f4869676800000000000000000000000000000000000000000000000000000000815250905061199b565b6040518060400160405280600781526020017f45787472656d650000000000000000000000000000000000000000000000000081525090505b919050565b6000600860008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b600b60019054906101000a900460ff1681565b611a4f611c4e565b73ffffffffffffffffffffffffffffffffffffffff16611a6d6112c4565b73ffffffffffffffffffffffffffffffffffffffff1614611ac3576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611aba90614028565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611b33576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b2a906146fa565b60405180910390fd5b611b3c81612b97565b50565b6060600c60008381526020019081526020016000208054611b5f90614077565b80601f0160208091040260200160405190810160405280929190818152602001828054611b8b90614077565b8015611bd85780601f10611bad57610100808354040283529160200191611bd8565b820191906000526020600020905b815481529060010190602001808311611bbb57829003601f168201915b50505050509050919050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b600033905090565b600080600b60029054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050611c86611c4e565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16636352211e856040518263ffffffff1660e01b8152600401611cd591906139ea565b602060405180830381865afa158015611cf2573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611d16919061472f565b73ffffffffffffffffffffffffffffffffffffffff16148015611d3a575061029983115b8015611d4757506103e783105b915050919050565b600080600b60029054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050611d7f611c4e565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16636352211e856040518263ffffffff1660e01b8152600401611dce91906139ea565b602060405180830381865afa158015611deb573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611e0f919061472f565b73ffffffffffffffffffffffffffffffffffffffff16148015611e33575061014b83115b8015611e40575061029983105b915050919050565b600080600b60029054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050611e78611c4e565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16636352211e856040518263ffffffff1660e01b8152600401611ec791906139ea565b602060405180830381865afa158015611ee4573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611f08919061472f565b73ffffffffffffffffffffffffffffffffffffffff16148015611f44575061014c831080611f37575061029983145b80611f4357506103e783145b5b915050919050565b611f668282604051806020016040528060008152506130c8565b5050565b600081611f7561206a565b11158015611f84575060015482105b8015611fb1575060056000838152602001908152602001600020600001601c9054906101000a900460ff16155b9050919050565b826007600084815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b60006001905090565b600061207e82612564565b90506000816000015173ffffffffffffffffffffffffffffffffffffffff166120a5611c4e565b73ffffffffffffffffffffffffffffffffffffffff1614806120d857506120d782600001516120d2611c4e565b6119a0565b5b8061211d57506120e6611c4e565b73ffffffffffffffffffffffffffffffffffffffff1661210584610cfb565b73ffffffffffffffffffffffffffffffffffffffff16145b905080612156576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8473ffffffffffffffffffffffffffffffffffffffff16826000015173ffffffffffffffffffffffffffffffffffffffff16146121bf576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161415612226576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61223385858560016130da565b6122436000848460000151611fb8565b6001600660008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160008282829054906101000a900467ffffffffffffffff160392506101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055506001600660008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160008282829054906101000a900467ffffffffffffffff160192506101000a81548167ffffffffffffffff021916908367ffffffffffffffff160217905550836005600085815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550426005600085815260200190815260200160002060000160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055506000600184019050600073ffffffffffffffffffffffffffffffffffffffff166005600083815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614156124f4576001548110156124f35782600001516005600083815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555082602001516005600083815260200190815260200160002060000160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055505b5b50828473ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a461255d85858560016130e0565b5050505050565b61256c6135c1565b60008290508061257a61206a565b11158015612589575060015481105b156127bc576000600560008381526020019081526020016000206040518060600160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a900467ffffffffffffffff1667ffffffffffffffff1667ffffffffffffffff16815260200160008201601c9054906101000a900460ff161515151581525050905080604001516127ba57600073ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff161461269e5780925050506127ee565b5b6001156127b957818060019003925050600560008381526020019081526020016000206040518060600160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a900467ffffffffffffffff1667ffffffffffffffff1667ffffffffffffffff16815260200160008201601c9054906101000a900460ff1615151515815250509050600073ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff16146127b45780925050506127ee565b61269f565b5b505b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b919050565b60006127fe82612564565b9050612812816000015160008460016130da565b6128226000838360000151611fb8565b600160066000836000015173ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160008282829054906101000a900467ffffffffffffffff160392506101000a81548167ffffffffffffffff021916908367ffffffffffffffff160217905550600160066000836000015173ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160108282829054906101000a900467ffffffffffffffff160192506101000a81548167ffffffffffffffff021916908367ffffffffffffffff16021790555080600001516005600084815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550426005600084815260200190815260200160002060000160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff160217905550600160056000848152602001908152602001600020600001601c6101000a81548160ff0219169083151502179055506000600183019050600073ffffffffffffffffffffffffffffffffffffffff166005600083815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161415612b0e57600154811015612b0d5781600001516005600083815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555081602001516005600083815260200190815260200160002060000160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055505b5b5081600073ffffffffffffffffffffffffffffffffffffffff16826000015173ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4612b81816000015160008460016130e0565b6002600081548092919060010191905055505050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b60606000821415612ca3576040518060400160405280600181526020017f30000000000000000000000000000000000000000000000000000000000000008152509050612db7565b600082905060005b60008214612cd5578080612cbe90613f93565b915050600a82612cce919061478b565b9150612cab565b60008167ffffffffffffffff811115612cf157612cf0613b34565b5b6040519080825280601f01601f191660200182016040528015612d235781602001600182028036833780820191505090505b5090505b60008514612db057600182612d3c91906147bc565b9150600a85612d4b91906147f0565b6030612d579190614821565b60f81b818381518110612d6d57612d6c614877565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a85612da9919061478b565b9450612d27565b8093505050505b919050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b60008373ffffffffffffffffffffffffffffffffffffffff1663150b7a02612e05611c4e565b8786866040518563ffffffff1660e01b8152600401612e2794939291906148fb565b6020604051808303816000875af1925050508015612e6357506040513d601f19601f82011682018060405250810190612e60919061495c565b60015b612edd573d8060008114612e93576040519150601f19603f3d011682016040523d82523d6000602084013e612e98565b606091505b50600081511415612ed5576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050949350505050565b60606000825190506000811415612f5957604051806020016040528060008152509150506130c3565b60006003600283612f6a9190614821565b612f74919061478b565b6004612f809190614989565b90506000602082612f919190614821565b67ffffffffffffffff811115612faa57612fa9613b34565b5b6040519080825280601f01601f191660200182016040528015612fdc5781602001600182028036833780820191505090505b50905060006040518060600160405280604081526020016149e4604091399050600181016020830160005b868110156130805760038101905062ffffff818a015116603f8160121c168401518060081b905060ff603f83600c1c1686015116810190508060081b905060ff603f8360061c1686015116810190508060081b905060ff603f831686015116810190508060e01b90508084526004840193505050613007565b50600386066001811461309a57600281146130aa576130b5565b613d3d60f01b60028303526130b5565b603d60f81b60018303525b508484525050819450505050505b919050565b6130d583838360016130e6565b505050565b50505050565b50505050565b60006001549050600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff161415613154576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600084141561318f576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61319c60008683876130da565b83600660008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160008282829054906101000a900467ffffffffffffffff160192506101000a81548167ffffffffffffffff021916908367ffffffffffffffff16021790555083600660008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160088282829054906101000a900467ffffffffffffffff160192506101000a81548167ffffffffffffffff021916908367ffffffffffffffff160217905550846005600083815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550426005600083815260200190815260200160002060000160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff16021790555060008190506000858201905083801561336657506133658773ffffffffffffffffffffffffffffffffffffffff16612dbc565b5b1561342c575b818773ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46133db6000888480600101955088612ddf565b613411576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8082141561336c57826001541461342757600080fd5b613498565b5b818060010192508773ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a48082141561342d575b8160018190555050506134ae60008683876130e0565b5050505050565b8280546134c190614077565b90600052602060002090601f0160209004810192826134e3576000855561352a565b82601f106134fc57805160ff191683800117855561352a565b8280016001018555821561352a579182015b8281111561352957825182559160200191906001019061350e565b5b5090506135379190613604565b5090565b82805461354790614077565b90600052602060002090601f01602090048101928261356957600085556135b0565b82601f1061358257803560ff19168380011785556135b0565b828001600101855582156135b0579182015b828111156135af578235825591602001919060010190613594565b5b5090506135bd9190613604565b5090565b6040518060600160405280600073ffffffffffffffffffffffffffffffffffffffff168152602001600067ffffffffffffffff1681526020016000151581525090565b5b8082111561361d576000816000905550600101613605565b5090565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b61366a81613635565b811461367557600080fd5b50565b60008135905061368781613661565b92915050565b6000602082840312156136a3576136a261362b565b5b60006136b184828501613678565b91505092915050565b60008115159050919050565b6136cf816136ba565b82525050565b60006020820190506136ea60008301846136c6565b92915050565b6000819050919050565b613703816136f0565b811461370e57600080fd5b50565b600081359050613720816136fa565b92915050565b60008060006060848603121561373f5761373e61362b565b5b600061374d86828701613711565b935050602061375e86828701613711565b925050604061376f86828701613711565b9150509250925092565b600080fd5b600080fd5b600080fd5b60008083601f84011261379e5761379d613779565b5b8235905067ffffffffffffffff8111156137bb576137ba61377e565b5b6020830191508360018202830111156137d7576137d6613783565b5b9250929050565b600080602083850312156137f5576137f461362b565b5b600083013567ffffffffffffffff81111561381357613812613630565b5b61381f85828601613788565b92509250509250929050565b600081519050919050565b600082825260208201905092915050565b60005b8381101561386557808201518184015260208101905061384a565b83811115613874576000848401525b50505050565b6000601f19601f8301169050919050565b60006138968261382b565b6138a08185613836565b93506138b0818560208601613847565b6138b98161387a565b840191505092915050565b600060208201905081810360008301526138de818461388b565b905092915050565b6000602082840312156138fc576138fb61362b565b5b600061390a84828501613711565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061393e82613913565b9050919050565b61394e81613933565b82525050565b60006020820190506139696000830184613945565b92915050565b61397881613933565b811461398357600080fd5b50565b6000813590506139958161396f565b92915050565b600080604083850312156139b2576139b161362b565b5b60006139c085828601613986565b92505060206139d185828601613711565b9150509250929050565b6139e4816136f0565b82525050565b60006020820190506139ff60008301846139db565b92915050565b600080600060608486031215613a1e57613a1d61362b565b5b6000613a2c86828701613986565b9350506020613a3d86828701613986565b9250506040613a4e86828701613711565b9150509250925092565b600067ffffffffffffffff82169050919050565b613a7581613a58565b82525050565b6000602082019050613a906000830184613a6c565b92915050565b600060208284031215613aac57613aab61362b565b5b6000613aba84828501613986565b91505092915050565b613acc816136ba565b8114613ad757600080fd5b50565b600081359050613ae981613ac3565b92915050565b60008060408385031215613b0657613b0561362b565b5b6000613b1485828601613986565b9250506020613b2585828601613ada565b9150509250929050565b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b613b6c8261387a565b810181811067ffffffffffffffff82111715613b8b57613b8a613b34565b5b80604052505050565b6000613b9e613621565b9050613baa8282613b63565b919050565b600067ffffffffffffffff821115613bca57613bc9613b34565b5b613bd38261387a565b9050602081019050919050565b82818337600083830152505050565b6000613c02613bfd84613baf565b613b94565b905082815260208101848484011115613c1e57613c1d613b2f565b5b613c29848285613be0565b509392505050565b600082601f830112613c4657613c45613779565b5b8135613c56848260208601613bef565b91505092915050565b60008060008060808587031215613c7957613c7861362b565b5b6000613c8787828801613986565b9450506020613c9887828801613986565b9350506040613ca987828801613711565b925050606085013567ffffffffffffffff811115613cca57613cc9613630565b5b613cd687828801613c31565b91505092959194509250565b60008060408385031215613cf957613cf861362b565b5b6000613d0785828601613986565b9250506020613d1885828601613986565b9150509250929050565b7f4275696c64696e67206973206e6f742061637469766500000000000000000000600082015250565b6000613d58601683613836565b9150613d6382613d22565b602082019050919050565b60006020820190508181036000830152613d8781613d4b565b9050919050565b7f4e6f7420616c6c6f77696e6720636f6e74726163747300000000000000000000600082015250565b6000613dc4601683613836565b9150613dcf82613d8e565b602082019050919050565b60006020820190508181036000830152613df381613db7565b9050919050565b7f596f7520646f206e6f7420686176652064697274000000000000000000000000600082015250565b6000613e30601483613836565b9150613e3b82613dfa565b602082019050919050565b60006020820190508181036000830152613e5f81613e23565b9050919050565b7f596f7520646f206e6f74206861766520676c7565000000000000000000000000600082015250565b6000613e9c601483613836565b9150613ea782613e66565b602082019050919050565b60006020820190508181036000830152613ecb81613e8f565b9050919050565b7f596f7520646f206e6f74206861766520676f6c642c20627269636b732c20737460008201527f69636b732c206f72207374726177000000000000000000000000000000000000602082015250565b6000613f2e602e83613836565b9150613f3982613ed2565b604082019050919050565b60006020820190508181036000830152613f5d81613f21565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000613f9e826136f0565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415613fd157613fd0613f64565b5b600182019050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000614012602083613836565b915061401d82613fdc565b602082019050919050565b6000602082019050818103600083015261404181614005565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6000600282049050600182168061408f57607f821691505b602082108114156140a3576140a2614048565b5b50919050565b600081905092915050565b60008190508160005260206000209050919050565b600081546140d681614077565b6140e081866140a9565b945060018216600081146140fb576001811461410c5761413f565b60ff1983168652818601935061413f565b614115856140b4565b60005b8381101561413757815481890152600182019150602081019050614118565b838801955050505b50505092915050565b60006141538261382b565b61415d81856140a9565b935061416d818560208601613847565b80840191505092915050565b7f2e706e6700000000000000000000000000000000000000000000000000000000600082015250565b60006141af6004836140a9565b91506141ba82614179565b600482019050919050565b60006141d182856140c9565b91506141dd8284614148565b91506141e8826141a2565b91508190509392505050565b600061420082856140c9565b915061420c82846140c9565b9150614217826141a2565b91508190509392505050565b7f4552433732314d657461646174613a2055524920717565727920666f72206e6f60008201527f6e6578697374656e7420746f6b656e0000000000000000000000000000000000602082015250565b600061427f602f83613836565b915061428a82614223565b604082019050919050565b600060208201905081810360008301526142ae81614272565b9050919050565b7f7b226e616d65223a2022486f6d65202300000000000000000000000000000000600082015250565b60006142eb6010836140a9565b91506142f6826142b5565b601082019050919050565b7f222c20226465736372697074696f6e223a2022412062656175746966756c206860008201527f6f6d6520637265617465642062792061204275696c646f6f722e222c2022657860208201527f7465726e616c5f75726c223a202268747470733a2f2f7777772e6275696c646f60408201527f6f72732e6f7267222c2022696d616765223a2022000000000000000000000000606082015250565b60006143a96074836140a9565b91506143b482614301565b607482019050919050565b7f222c202261747472696275746573223a5b7b2274726169745f74797065223a2060008201527f225374796c65222c202276616c7565223a202200000000000000000000000000602082015250565b600061441b6033836140a9565b9150614426826143bf565b603382019050919050565b7f227d2c207b2274726169745f74797065223a20225969656c64222c202276616c60008201527f7565223a20220000000000000000000000000000000000000000000000000000602082015250565b600061448d6026836140a9565b915061449882614431565b602682019050919050565b7f227d5d7d00000000000000000000000000000000000000000000000000000000600082015250565b60006144d96004836140a9565b91506144e4826144a3565b600482019050919050565b60006144fa826142de565b91506145068287614148565b91506145118261439c565b915061451d8286614148565b91506145288261440e565b91506145348285614148565b915061453f82614480565b915061454b8284614148565b9150614556826144cc565b915081905095945050505050565b7f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c000000600082015250565b600061459a601d836140a9565b91506145a582614564565b601d82019050919050565b60006145bb8261458d565b91506145c78284614148565b915081905092915050565b600081905092915050565b60008190508160005260206000209050919050565b600081546145ff81614077565b61460981866145d2565b94506001821660008114614624576001811461463557614668565b60ff19831686528186019350614668565b61463e856145dd565b60005b8381101561466057815481890152600182019150602081019050614641565b838801955050505b50505092915050565b600061467d82846145f2565b915081905092915050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b60006146e4602683613836565b91506146ef82614688565b604082019050919050565b60006020820190508181036000830152614713816146d7565b9050919050565b6000815190506147298161396f565b92915050565b6000602082840312156147455761474461362b565b5b60006147538482850161471a565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b6000614796826136f0565b91506147a1836136f0565b9250826147b1576147b061475c565b5b828204905092915050565b60006147c7826136f0565b91506147d2836136f0565b9250828210156147e5576147e4613f64565b5b828203905092915050565b60006147fb826136f0565b9150614806836136f0565b9250826148165761481561475c565b5b828206905092915050565b600061482c826136f0565b9150614837836136f0565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0382111561486c5761486b613f64565b5b828201905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b600081519050919050565b600082825260208201905092915050565b60006148cd826148a6565b6148d781856148b1565b93506148e7818560208601613847565b6148f08161387a565b840191505092915050565b60006080820190506149106000830187613945565b61491d6020830186613945565b61492a60408301856139db565b818103606083015261493c81846148c2565b905095945050505050565b60008151905061495681613661565b92915050565b6000602082840312156149725761497161362b565b5b600061498084828501614947565b91505092915050565b6000614994826136f0565b915061499f836136f0565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04831182151516156149d8576149d7613f64565b5b82820290509291505056fe4142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2fa2646970667358221220344b2a1ac4a8e8fbb3204d5f8c57d7b5ea62057bd71272147d83d7a6fe6f2bc964736f6c634300080c0033

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.