ETH Price: $3,950.04 (+1.49%)

Token

Doodle Rooms 3D (DR3D)
 

Overview

Max Total Supply

5,912 DR3D

Holders

847

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Balance
1 DR3D
0x8f46a3d7eca5454519e7472245ed84d0ddc7407c
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:
DoodleRooms3DModels

Compiler Version
v0.8.9+commit.e5eed63a

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion
File 1 of 16 : DoodleRooms3DModels.sol
//SPDX-License-Identifier: MIT
pragma solidity ^0.8.9;

import "@openzeppelin/contracts/interfaces/IERC2981.sol";
import "@openzeppelin/contracts/interfaces/IERC20.sol";

import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";

import "@openzeppelin/contracts/utils/Strings.sol";

import "erc721a/contracts/ERC721A.sol";

import {DoodleRooms} from "./IDoodleRooms.sol";

contract DoodleRooms3DModels is ERC721A, IERC2981, Ownable, ReentrancyGuard {
    using Strings for uint256;
    DoodleRooms public doodleRooms;

    string private baseURI;
    address private openSeaProxyRegistryAddress;
    bool private isOpenSeaProxyActive = true;
    bool public isClaimActive;

    mapping(uint256 => bool) public claimedTokenIds;

    modifier claimActive() {
        require(isClaimActive, "Claim is not active");
        _;
    }

    modifier canClaim3DModels(address addr, uint256 [] calldata tokenIds) {
        require(tokenIds.length > 0, "No token ids to claim");

        for (uint i = 0; i < tokenIds.length; i++) {
            require(doodleRooms.ownerOf(tokenIds[i]) == addr, "Can only claim owned doodle rooms");
        }
        _;
    }

    event Claim3DModels(
        uint256 indexed from,
        uint256 indexed to,
        uint256 [] tokenIds
    );

    constructor(
        address _openSeaProxyRegistryAddress
    ) ERC721A("Doodle Rooms 3D", "DR3D") {
        openSeaProxyRegistryAddress = _openSeaProxyRegistryAddress;

        doodleRooms = DoodleRooms(0x5426C860C9e660145Ad09d3FB26427e5Fd4569E9);

        baseURI = "ipfs://QmY21ADFwGyftNkxuE21VayMPrArU8ArwJuK7jH3jPae2t";
    }

    function claim3DModels(uint256 [] calldata tokenIds)
    external
    nonReentrant
    claimActive
    canClaim3DModels(msg.sender, tokenIds)
    {
        for (uint i = 0; i < tokenIds.length; i++) {
            require(!claimedTokenIds[tokenIds[i]], "Token id has already been claimed");

            claimedTokenIds[tokenIds[i]] = true;
        }

        uint256 ts = totalSupply();
        _safeMint(msg.sender, tokenIds.length);

        emit Claim3DModels(ts, ts + tokenIds.length, tokenIds);
    }

    function airdrop(
        address [] calldata addresses,
        uint256 [][] calldata tokenIds
    ) external onlyOwner {
        require(addresses.length == tokenIds.length);
        for (uint i = 0; i < addresses.length; i++) {
            for(uint z = 0 ; z < tokenIds[i].length; z++){
                claimedTokenIds[tokenIds[i][z]] = true;
            }
            _safeMint(addresses[i], tokenIds[i].length);
        }
    }

    function getBaseURI() external view returns (string memory) {
        return baseURI;
    }

    function setBaseURI(string memory _baseURI) external onlyOwner {
        baseURI = _baseURI;
    }

    // function to disable gasless listings for security in case
    // opensea ever shuts down or is compromised
    function setIsOpenSeaProxyActive(bool _isOpenSeaProxyActive)
    external
    onlyOwner
    {
        isOpenSeaProxyActive = _isOpenSeaProxyActive;
    }

    function setIsClaimActive(bool _isClaimActive)
    external
    onlyOwner
    {
        isClaimActive = _isClaimActive;
    }

    function setDoodleRoomsContract(address _addr) external onlyOwner {
        require(_addr != address(0));

        doodleRooms = DoodleRooms(_addr);
    }

    function withdrawTokens(IERC20 token) external onlyOwner {
        uint256 balance = token.balanceOf(address(this));
        token.transfer(msg.sender, balance);
    }

    function supportsInterface(bytes4 interfaceId)
    public
    view
    virtual
    override(ERC721A, IERC165)
    returns (bool)
    {
        return
        interfaceId == type(IERC2981).interfaceId ||
        super.supportsInterface(interfaceId);
    }

    /**
     * @dev Override isApprovedForAll to allowlist user's OpenSea proxy accounts to enable gas-less listings.
     */
    function isApprovedForAll(address owner, address operator)
    public
    view
    override
    returns (bool)
    {
        // Get a reference to OpenSea's proxy registry contract by instantiating
        // the contract using the already existing address.
        ProxyRegistry proxyRegistry = ProxyRegistry(
            openSeaProxyRegistryAddress
        );
        if (
            isOpenSeaProxyActive &&
            address(proxyRegistry.proxies(owner)) == operator
        ) {
            return true;
        }

        return super.isApprovedForAll(owner, operator);
    }

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

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

    /**
     * @dev See {IERC165-royaltyInfo}.
     */
    function royaltyInfo(uint256 tokenId, uint256 salePrice)
    external
    view
    override
    returns (address receiver, uint256 royaltyAmount)
    {
        require(_exists(tokenId), "Nonexistent token");

        return (address(this), (salePrice * 7) / 100);
    }
}

// These contract definitions are used to create a reference to the OpenSea
// ProxyRegistry contract by using the registry's address (see isApprovedForAll).
contract OwnableDelegateProxy {

}

contract ProxyRegistry {
    mapping(address => OwnableDelegateProxy) public proxies;
}

File 2 of 16 : IERC2981.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (interfaces/IERC2981.sol)

pragma solidity ^0.8.0;

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

/**
 * @dev Interface for the NFT Royalty Standard.
 *
 * A standardized way to retrieve royalty payment information for non-fungible tokens (NFTs) to enable universal
 * support for royalty payments across all NFT marketplaces and ecosystem participants.
 *
 * _Available since v4.5._
 */
interface IERC2981 is IERC165 {
    /**
     * @dev Returns how much royalty is owed and to whom, based on a sale price that may be denominated in any unit of
     * exchange. The royalty amount is denominated and should be paid in that same unit of exchange.
     */
    function royaltyInfo(uint256 tokenId, uint256 salePrice)
        external
        view
        returns (address receiver, uint256 royaltyAmount);
}

File 3 of 16 : IERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (interfaces/IERC20.sol)

pragma solidity ^0.8.0;

import "../token/ERC20/IERC20.sol";

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

    uint256 private _status;

    constructor() {
        _status = _NOT_ENTERED;
    }

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

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

        _;

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

File 6 of 16 : 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 7 of 16 : ERC721A.sol
// SPDX-License-Identifier: MIT
// Creator: Chiru Labs

pragma solidity ^0.8.4;

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/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 MintToZeroAddress();
error MintZeroQuantity();
error OwnerQueryForNonexistentToken();
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 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) {
        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) {
        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) {
        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 {
        _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 virtual 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);

        if (prevOwnership.addr != from) revert TransferFromIncorrectOwner();

        bool isApprovedOrOwner = (_msgSender() == from ||
            isApprovedForAll(from, _msgSender()) ||
            getApproved(tokenId) == _msgSender());

        if (!isApprovedOrOwner) revert TransferCallerNotOwnerNorApproved();
        if (to == address(0)) revert TransferToZeroAddress();

        _beforeTokenTransfers(from, to, tokenId, 1);

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

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

            TokenOwnership storage currSlot = _ownerships[tokenId];
            currSlot.addr = to;
            currSlot.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;
            TokenOwnership storage nextSlot = _ownerships[nextTokenId];
            if (nextSlot.addr == address(0)) {
                // This will suffice for checking _exists(nextTokenId),
                // as a burned slot cannot contain the zero address.
                if (nextTokenId != _currentIndex) {
                    nextSlot.addr = from;
                    nextSlot.startTimestamp = prevOwnership.startTimestamp;
                }
            }
        }

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

    /**
     * @dev This is equivalent to _burn(tokenId, false)
     */
    function _burn(uint256 tokenId) internal virtual {
        _burn(tokenId, false);
    }

    /**
     * @dev Destroys `tokenId`.
     * The approval is cleared when the token is burned.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     *
     * Emits a {Transfer} event.
     */
    function _burn(uint256 tokenId, bool approvalCheck) internal virtual {
        TokenOwnership memory prevOwnership = _ownershipOf(tokenId);

        address from = prevOwnership.addr;

        if (approvalCheck) {
            bool isApprovedOrOwner = (_msgSender() == from ||
                isApprovedForAll(from, _msgSender()) ||
                getApproved(tokenId) == _msgSender());

            if (!isApprovedOrOwner) revert TransferCallerNotOwnerNorApproved();
        }

        _beforeTokenTransfers(from, address(0), tokenId, 1);

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

        // 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 storage addressData = _addressData[from];
            addressData.balance -= 1;
            addressData.numberBurned += 1;

            // Keep track of who burned the token, and the timestamp of burning.
            TokenOwnership storage currSlot = _ownerships[tokenId];
            currSlot.addr = from;
            currSlot.startTimestamp = uint64(block.timestamp);
            currSlot.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;
            TokenOwnership storage nextSlot = _ownerships[nextTokenId];
            if (nextSlot.addr == address(0)) {
                // This will suffice for checking _exists(nextTokenId),
                // as a burned slot cannot contain the zero address.
                if (nextTokenId != _currentIndex) {
                    nextSlot.addr = from;
                    nextSlot.startTimestamp = prevOwnership.startTimestamp;
                }
            }
        }

        emit Transfer(from, address(0), tokenId);
        _afterTokenTransfers(from, 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 8 of 16 : IDoodleRooms.sol
interface DoodleRooms {
    function ownerOf(uint256) external view returns (address);

    function balanceOf(address) external view returns (uint256);

    function totalSupply() external view returns (uint256);

    function tokenOfOwnerByIndex(address, uint256) external view returns (uint256);
}

File 9 of 16 : 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 10 of 16 : IERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/IERC20.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @dev Emitted when `value` tokens are moved from one account (`from`) to
     * another (`to`).
     *
     * Note that `value` may be zero.
     */
    event Transfer(address indexed from, address indexed to, uint256 value);

    /**
     * @dev Emitted when the allowance of a `spender` for an `owner` is set by
     * a call to {approve}. `value` is the new allowance.
     */
    event Approval(address indexed owner, address indexed spender, uint256 value);

    /**
     * @dev Returns the amount of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

    /**
     * @dev Returns the amount of tokens owned by `account`.
     */
    function balanceOf(address account) external view returns (uint256);

    /**
     * @dev Moves `amount` tokens from the caller's account to `to`.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transfer(address to, uint256 amount) external returns (bool);

    /**
     * @dev Returns the remaining number of tokens that `spender` will be
     * allowed to spend on behalf of `owner` through {transferFrom}. This is
     * zero by default.
     *
     * This value changes when {approve} or {transferFrom} are called.
     */
    function allowance(address owner, address spender) external view returns (uint256);

    /**
     * @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * IMPORTANT: Beware that changing an allowance with this method brings the risk
     * that someone may use both the old and the new allowance by unfortunate
     * transaction ordering. One possible solution to mitigate this race
     * condition is to first reduce the spender's allowance to 0 and set the
     * desired value afterwards:
     * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
     *
     * Emits an {Approval} event.
     */
    function approve(address spender, uint256 amount) external returns (bool);

    /**
     * @dev Moves `amount` tokens from `from` to `to` using the
     * allowance mechanism. `amount` is then deducted from the caller's
     * allowance.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(
        address from,
        address to,
        uint256 amount
    ) external returns (bool);
}

File 11 of 16 : 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 12 of 16 : IERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (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`.
     *
     * 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;

    /**
     * @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 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 the account approved for `tokenId` token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function getApproved(uint256 tokenId) external view returns (address operator);

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

File 13 of 16 : IERC721Receiver.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (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 `IERC721Receiver.onERC721Received.selector`.
     */
    function onERC721Received(
        address operator,
        address from,
        uint256 tokenId,
        bytes calldata data
    ) external returns (bytes4);
}

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

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_openSeaProxyRegistryAddress","type":"address"}],"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":"uint256","name":"from","type":"uint256"},{"indexed":true,"internalType":"uint256","name":"to","type":"uint256"},{"indexed":false,"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"Claim3DModels","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":"addresses","type":"address[]"},{"internalType":"uint256[][]","name":"tokenIds","type":"uint256[][]"}],"name":"airdrop","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"claim3DModels","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"claimedTokenIds","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"doodleRooms","outputs":[{"internalType":"contract DoodleRooms","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getBaseURI","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":[],"name":"isClaimActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"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":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"salePrice","type":"uint256"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"receiver","type":"address"},{"internalType":"uint256","name":"royaltyAmount","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_baseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_addr","type":"address"}],"name":"setDoodleRoomsContract","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_isClaimActive","type":"bool"}],"name":"setIsClaimActive","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_isOpenSeaProxyActive","type":"bool"}],"name":"setIsOpenSeaProxyActive","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"token","type":"address"}],"name":"withdrawTokens","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60806040526001600c60146101000a81548160ff0219169083151502179055503480156200002c57600080fd5b50604051620046cf380380620046cf8339818101604052810190620000529190620003ec565b6040518060400160405280600f81526020017f446f6f646c6520526f6f6d7320334400000000000000000000000000000000008152506040518060400160405280600481526020017f44523344000000000000000000000000000000000000000000000000000000008152508160029080519060200190620000d6929190620002d2565b508060039080519060200190620000ef929190620002d2565b5062000100620001ff60201b60201c565b6000819055505050620001286200011c6200020460201b60201c565b6200020c60201b60201c565b600160098190555080600c60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550735426c860c9e660145ad09d3fb26427e5fd4569e9600a60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506040518060600160405280603581526020016200469a60359139600b9080519060200190620001f7929190620002d2565b505062000483565b600090565b600033905090565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b828054620002e0906200044d565b90600052602060002090601f01602090048101928262000304576000855562000350565b82601f106200031f57805160ff191683800117855562000350565b8280016001018555821562000350579182015b828111156200034f57825182559160200191906001019062000332565b5b5090506200035f919062000363565b5090565b5b808211156200037e57600081600090555060010162000364565b5090565b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000620003b48262000387565b9050919050565b620003c681620003a7565b8114620003d257600080fd5b50565b600081519050620003e681620003bb565b92915050565b60006020828403121562000405576200040462000382565b5b60006200041584828501620003d5565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060028204905060018216806200046657607f821691505b602082108114156200047d576200047c6200041e565b5b50919050565b61420780620004936000396000f3fe608060405234801561001057600080fd5b50600436106101cf5760003560e01c8063688713331161010457806395d89b41116100a2578063defe114111610071578063defe114114610519578063e43082f714610535578063e985e9c514610551578063f2fde38b14610581576101cf565b806395d89b4114610493578063a22cb465146104b1578063b88d4fde146104cd578063c87b56dd146104e9576101cf565b8063715018a6116100de578063715018a61461042f5780637fc2780314610439578063879e930d146104575780638da5cb5b14610475576101cf565b806368871333146103c557806370a08231146103e1578063714c539814610411576101cf565b806323b872dd1161017157806342842e0e1161014b57806342842e0e1461034157806349df728c1461035d57806355f804b3146103795780636352211e14610395576101cf565b806323b872dd146102c45780632713727a146102e05780632a55205a14610310576101cf565b8063095ea7b3116101ad578063095ea7b31461025257806318160ddd1461026e5780631a5bd1171461028c5780631bf09e7e146102a8576101cf565b806301ffc9a7146101d457806306fdde0314610204578063081812fc14610222575b600080fd5b6101ee60048036038101906101e99190612d85565b61059d565b6040516101fb9190612dcd565b60405180910390f35b61020c610617565b6040516102199190612e81565b60405180910390f35b61023c60048036038101906102379190612ed9565b6106a9565b6040516102499190612f47565b60405180910390f35b61026c60048036038101906102679190612f8e565b610725565b005b610276610830565b6040516102839190612fdd565b60405180910390f35b6102a660048036038101906102a1919061305d565b610847565b005b6102c260048036038101906102bd9190613156565b610bd3565b005b6102de60048036038101906102d991906131d7565b610d8d565b005b6102fa60048036038101906102f59190612ed9565b610d9d565b6040516103079190612dcd565b60405180910390f35b61032a6004803603810190610325919061322a565b610dbd565b60405161033892919061326a565b60405180910390f35b61035b600480360381019061035691906131d7565b610e2d565b005b610377600480360381019061037291906132d1565b610e4d565b005b610393600480360381019061038e919061342e565b610fe8565b005b6103af60048036038101906103aa9190612ed9565b61107e565b6040516103bc9190612f47565b60405180910390f35b6103df60048036038101906103da9190613477565b611094565b005b6103fb60048036038101906103f69190613477565b61118e565b6040516104089190612fdd565b60405180910390f35b61041961125e565b6040516104269190612e81565b60405180910390f35b6104376112f0565b005b610441611378565b60405161044e9190612dcd565b60405180910390f35b61045f61138b565b60405161046c9190613503565b60405180910390f35b61047d6113b1565b60405161048a9190612f47565b60405180910390f35b61049b6113db565b6040516104a89190612e81565b60405180910390f35b6104cb60048036038101906104c6919061354a565b61146d565b005b6104e760048036038101906104e2919061362b565b6115e5565b005b61050360048036038101906104fe9190612ed9565b611661565b6040516105109190612e81565b60405180910390f35b610533600480360381019061052e91906136ae565b611709565b005b61054f600480360381019061054a91906136ae565b6117a2565b005b61056b600480360381019061056691906136db565b61183b565b6040516105789190612dcd565b60405180910390f35b61059b60048036038101906105969190613477565b611955565b005b60007f2a55205a000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480610610575061060f82611a4d565b5b9050919050565b6060600280546106269061374a565b80601f01602080910402602001604051908101604052809291908181526020018280546106529061374a565b801561069f5780601f106106745761010080835404028352916020019161069f565b820191906000526020600020905b81548152906001019060200180831161068257829003601f168201915b5050505050905090565b60006106b482611b2f565b6106ea576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6006600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b60006107308261107e565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610798576040517f943f7b8c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff166107b7611b7d565b73ffffffffffffffffffffffffffffffffffffffff16141580156107e957506107e7816107e2611b7d565b61183b565b155b15610820576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61082b838383611b85565b505050565b600061083a611c37565b6001546000540303905090565b6002600954141561088d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610884906137c8565b60405180910390fd5b6002600981905550600c60159054906101000a900460ff166108e4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108db90613834565b60405180910390fd5b3382826000828290501161092d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610924906138a0565b60405180910390fd5b60005b82829050811015610a7f578373ffffffffffffffffffffffffffffffffffffffff16600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16636352211e8585858181106109a3576109a26138c0565b5b905060200201356040518263ffffffff1660e01b81526004016109c69190612fdd565b60206040518083038186803b1580156109de57600080fd5b505afa1580156109f2573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a169190613904565b73ffffffffffffffffffffffffffffffffffffffff1614610a6c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a63906139a3565b60405180910390fd5b8080610a77906139f2565b915050610930565b5060005b85859050811015610b6057600d6000878784818110610aa557610aa46138c0565b5b90506020020135815260200190815260200160002060009054906101000a900460ff1615610b08576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610aff90613aad565b60405180910390fd5b6001600d6000888885818110610b2157610b206138c0565b5b90506020020135815260200190815260200160002060006101000a81548160ff0219169083151502179055508080610b58906139f2565b915050610a83565b506000610b6b610830565b9050610b7a3387879050611c3c565b8585905081610b899190613acd565b817f2117550f374fc095f54b60da9b74efb9cb5b2d56db151d9b502e707d493b4a1f8888604051610bbb929190613b95565b60405180910390a35050505060016009819055505050565b610bdb611b7d565b73ffffffffffffffffffffffffffffffffffffffff16610bf96113b1565b73ffffffffffffffffffffffffffffffffffffffff1614610c4f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c4690613c05565b60405180910390fd5b818190508484905014610c6157600080fd5b60005b84849050811015610d865760005b838383818110610c8557610c846138c0565b5b9050602002810190610c979190613c34565b9050811015610d1b576001600d6000868686818110610cb957610cb86138c0565b5b9050602002810190610ccb9190613c34565b85818110610cdc57610cdb6138c0565b5b90506020020135815260200190815260200160002060006101000a81548160ff0219169083151502179055508080610d13906139f2565b915050610c72565b50610d73858583818110610d3257610d316138c0565b5b9050602002016020810190610d479190613477565b848484818110610d5a57610d596138c0565b5b9050602002810190610d6c9190613c34565b9050611c3c565b8080610d7e906139f2565b915050610c64565b5050505050565b610d98838383611c5a565b505050565b600d6020528060005260406000206000915054906101000a900460ff1681565b600080610dc984611b2f565b610e08576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610dff90613ce3565b60405180910390fd5b306064600785610e189190613d03565b610e229190613d8c565b915091509250929050565b610e48838383604051806020016040528060008152506115e5565b505050565b610e55611b7d565b73ffffffffffffffffffffffffffffffffffffffff16610e736113b1565b73ffffffffffffffffffffffffffffffffffffffff1614610ec9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ec090613c05565b60405180910390fd5b60008173ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401610f049190612f47565b60206040518083038186803b158015610f1c57600080fd5b505afa158015610f30573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f549190613dd2565b90508173ffffffffffffffffffffffffffffffffffffffff1663a9059cbb33836040518363ffffffff1660e01b8152600401610f9192919061326a565b602060405180830381600087803b158015610fab57600080fd5b505af1158015610fbf573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610fe39190613e14565b505050565b610ff0611b7d565b73ffffffffffffffffffffffffffffffffffffffff1661100e6113b1565b73ffffffffffffffffffffffffffffffffffffffff1614611064576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161105b90613c05565b60405180910390fd5b80600b908051906020019061107a929190612c33565b5050565b600061108982612110565b600001519050919050565b61109c611b7d565b73ffffffffffffffffffffffffffffffffffffffff166110ba6113b1565b73ffffffffffffffffffffffffffffffffffffffff1614611110576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161110790613c05565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16141561114a57600080fd5b80600a60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156111f6576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600560008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160009054906101000a900467ffffffffffffffff1667ffffffffffffffff169050919050565b6060600b805461126d9061374a565b80601f01602080910402602001604051908101604052809291908181526020018280546112999061374a565b80156112e65780601f106112bb576101008083540402835291602001916112e6565b820191906000526020600020905b8154815290600101906020018083116112c957829003601f168201915b5050505050905090565b6112f8611b7d565b73ffffffffffffffffffffffffffffffffffffffff166113166113b1565b73ffffffffffffffffffffffffffffffffffffffff161461136c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161136390613c05565b60405180910390fd5b611376600061239f565b565b600c60159054906101000a900460ff1681565b600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6060600380546113ea9061374a565b80601f01602080910402602001604051908101604052809291908181526020018280546114169061374a565b80156114635780601f1061143857610100808354040283529160200191611463565b820191906000526020600020905b81548152906001019060200180831161144657829003601f168201915b5050505050905090565b611475611b7d565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156114da576040517fb06307db00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80600760006114e7611b7d565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff16611594611b7d565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516115d99190612dcd565b60405180910390a35050565b6115f0848484611c5a565b61160f8373ffffffffffffffffffffffffffffffffffffffff16612465565b8015611624575061162284848484612488565b155b1561165b576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b50505050565b606061166c82611b2f565b6116ab576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116a290613ce3565b60405180910390fd5b6000600b80546116ba9061374a565b9050116116d65760405180602001604052806000815250611702565b600b6116e1836125e8565b6040516020016116f2929190613f5d565b6040516020818303038152906040525b9050919050565b611711611b7d565b73ffffffffffffffffffffffffffffffffffffffff1661172f6113b1565b73ffffffffffffffffffffffffffffffffffffffff1614611785576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161177c90613c05565b60405180910390fd5b80600c60156101000a81548160ff02191690831515021790555050565b6117aa611b7d565b73ffffffffffffffffffffffffffffffffffffffff166117c86113b1565b73ffffffffffffffffffffffffffffffffffffffff161461181e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161181590613c05565b60405180910390fd5b80600c60146101000a81548160ff02191690831515021790555050565b600080600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600c60149054906101000a900460ff16801561193257508273ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1663c4552791866040518263ffffffff1660e01b81526004016118ca9190612f47565b60206040518083038186803b1580156118e257600080fd5b505afa1580156118f6573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061191a9190613fca565b73ffffffffffffffffffffffffffffffffffffffff16145b1561194157600191505061194f565b61194b8484612749565b9150505b92915050565b61195d611b7d565b73ffffffffffffffffffffffffffffffffffffffff1661197b6113b1565b73ffffffffffffffffffffffffffffffffffffffff16146119d1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119c890613c05565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611a41576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a3890614069565b60405180910390fd5b611a4a8161239f565b50565b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480611b1857507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80611b285750611b27826127dd565b5b9050919050565b600081611b3a611c37565b11158015611b49575060005482105b8015611b76575060046000838152602001908152602001600020600001601c9054906101000a900460ff16155b9050919050565b600033905090565b826006600084815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b600090565b611c56828260405180602001604052806000815250612847565b5050565b6000611c6582612110565b90508373ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff1614611cd0576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008473ffffffffffffffffffffffffffffffffffffffff16611cf1611b7d565b73ffffffffffffffffffffffffffffffffffffffff161480611d205750611d1f85611d1a611b7d565b61183b565b5b80611d655750611d2e611b7d565b73ffffffffffffffffffffffffffffffffffffffff16611d4d846106a9565b73ffffffffffffffffffffffffffffffffffffffff16145b905080611d9e576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161415611e05576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b611e128585856001612859565b611e1e60008487611b85565b6001600560008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160008282829054906101000a900467ffffffffffffffff160392506101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055506001600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160008282829054906101000a900467ffffffffffffffff160192506101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055506000600460008581526020019081526020016000209050848160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550428160000160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff16021790555060006001850190506000600460008381526020019081526020016000209050600073ffffffffffffffffffffffffffffffffffffffff168160000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16141561209e57600054821461209d57878160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555084602001518160000160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055505b5b505050828473ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4612109858585600161285f565b5050505050565b612118612cb9565b600082905080612126611c37565b11158015612135575060005481105b15612368576000600460008381526020019081526020016000206040518060600160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a900467ffffffffffffffff1667ffffffffffffffff1667ffffffffffffffff16815260200160008201601c9054906101000a900460ff1615151515815250509050806040015161236657600073ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff161461224a57809250505061239a565b5b60011561236557818060019003925050600460008381526020019081526020016000206040518060600160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a900467ffffffffffffffff1667ffffffffffffffff1667ffffffffffffffff16815260200160008201601c9054906101000a900460ff1615151515815250509050600073ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff161461236057809250505061239a565b61224b565b5b505b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b919050565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b60008373ffffffffffffffffffffffffffffffffffffffff1663150b7a026124ae611b7d565b8786866040518563ffffffff1660e01b81526004016124d094939291906140de565b602060405180830381600087803b1580156124ea57600080fd5b505af192505050801561251b57506040513d601f19601f82011682018060405250810190612518919061413f565b60015b612595573d806000811461254b576040519150601f19603f3d011682016040523d82523d6000602084013e612550565b606091505b5060008151141561258d576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050949350505050565b60606000821415612630576040518060400160405280600181526020017f30000000000000000000000000000000000000000000000000000000000000008152509050612744565b600082905060005b6000821461266257808061264b906139f2565b915050600a8261265b9190613d8c565b9150612638565b60008167ffffffffffffffff81111561267e5761267d613303565b5b6040519080825280601f01601f1916602001820160405280156126b05781602001600182028036833780820191505090505b5090505b6000851461273d576001826126c9919061416c565b9150600a856126d891906141a0565b60306126e49190613acd565b60f81b8183815181106126fa576126f96138c0565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a856127369190613d8c565b94506126b4565b8093505050505b919050565b6000600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b6128548383836001612865565b505050565b50505050565b50505050565b600080549050600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1614156128d2576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600084141561290d576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61291a6000868387612859565b83600560008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160008282829054906101000a900467ffffffffffffffff160192506101000a81548167ffffffffffffffff021916908367ffffffffffffffff16021790555083600560008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160088282829054906101000a900467ffffffffffffffff160192506101000a81548167ffffffffffffffff021916908367ffffffffffffffff160217905550846004600083815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550426004600083815260200190815260200160002060000160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff160217905550600081905060008582019050838015612ae45750612ae38773ffffffffffffffffffffffffffffffffffffffff16612465565b5b15612baa575b818773ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4612b596000888480600101955088612488565b612b8f576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80821415612aea578260005414612ba557600080fd5b612c16565b5b818060010192508773ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a480821415612bab575b816000819055505050612c2c600086838761285f565b5050505050565b828054612c3f9061374a565b90600052602060002090601f016020900481019282612c615760008555612ca8565b82601f10612c7a57805160ff1916838001178555612ca8565b82800160010185558215612ca8579182015b82811115612ca7578251825591602001919060010190612c8c565b5b509050612cb59190612cfc565b5090565b6040518060600160405280600073ffffffffffffffffffffffffffffffffffffffff168152602001600067ffffffffffffffff1681526020016000151581525090565b5b80821115612d15576000816000905550600101612cfd565b5090565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b612d6281612d2d565b8114612d6d57600080fd5b50565b600081359050612d7f81612d59565b92915050565b600060208284031215612d9b57612d9a612d23565b5b6000612da984828501612d70565b91505092915050565b60008115159050919050565b612dc781612db2565b82525050565b6000602082019050612de26000830184612dbe565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b83811015612e22578082015181840152602081019050612e07565b83811115612e31576000848401525b50505050565b6000601f19601f8301169050919050565b6000612e5382612de8565b612e5d8185612df3565b9350612e6d818560208601612e04565b612e7681612e37565b840191505092915050565b60006020820190508181036000830152612e9b8184612e48565b905092915050565b6000819050919050565b612eb681612ea3565b8114612ec157600080fd5b50565b600081359050612ed381612ead565b92915050565b600060208284031215612eef57612eee612d23565b5b6000612efd84828501612ec4565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000612f3182612f06565b9050919050565b612f4181612f26565b82525050565b6000602082019050612f5c6000830184612f38565b92915050565b612f6b81612f26565b8114612f7657600080fd5b50565b600081359050612f8881612f62565b92915050565b60008060408385031215612fa557612fa4612d23565b5b6000612fb385828601612f79565b9250506020612fc485828601612ec4565b9150509250929050565b612fd781612ea3565b82525050565b6000602082019050612ff26000830184612fce565b92915050565b600080fd5b600080fd5b600080fd5b60008083601f84011261301d5761301c612ff8565b5b8235905067ffffffffffffffff81111561303a57613039612ffd565b5b60208301915083602082028301111561305657613055613002565b5b9250929050565b6000806020838503121561307457613073612d23565b5b600083013567ffffffffffffffff81111561309257613091612d28565b5b61309e85828601613007565b92509250509250929050565b60008083601f8401126130c0576130bf612ff8565b5b8235905067ffffffffffffffff8111156130dd576130dc612ffd565b5b6020830191508360208202830111156130f9576130f8613002565b5b9250929050565b60008083601f84011261311657613115612ff8565b5b8235905067ffffffffffffffff81111561313357613132612ffd565b5b60208301915083602082028301111561314f5761314e613002565b5b9250929050565b600080600080604085870312156131705761316f612d23565b5b600085013567ffffffffffffffff81111561318e5761318d612d28565b5b61319a878288016130aa565b9450945050602085013567ffffffffffffffff8111156131bd576131bc612d28565b5b6131c987828801613100565b925092505092959194509250565b6000806000606084860312156131f0576131ef612d23565b5b60006131fe86828701612f79565b935050602061320f86828701612f79565b925050604061322086828701612ec4565b9150509250925092565b6000806040838503121561324157613240612d23565b5b600061324f85828601612ec4565b925050602061326085828601612ec4565b9150509250929050565b600060408201905061327f6000830185612f38565b61328c6020830184612fce565b9392505050565b600061329e82612f26565b9050919050565b6132ae81613293565b81146132b957600080fd5b50565b6000813590506132cb816132a5565b92915050565b6000602082840312156132e7576132e6612d23565b5b60006132f5848285016132bc565b91505092915050565b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b61333b82612e37565b810181811067ffffffffffffffff8211171561335a57613359613303565b5b80604052505050565b600061336d612d19565b90506133798282613332565b919050565b600067ffffffffffffffff82111561339957613398613303565b5b6133a282612e37565b9050602081019050919050565b82818337600083830152505050565b60006133d16133cc8461337e565b613363565b9050828152602081018484840111156133ed576133ec6132fe565b5b6133f88482856133af565b509392505050565b600082601f83011261341557613414612ff8565b5b81356134258482602086016133be565b91505092915050565b60006020828403121561344457613443612d23565b5b600082013567ffffffffffffffff81111561346257613461612d28565b5b61346e84828501613400565b91505092915050565b60006020828403121561348d5761348c612d23565b5b600061349b84828501612f79565b91505092915050565b6000819050919050565b60006134c96134c46134bf84612f06565b6134a4565b612f06565b9050919050565b60006134db826134ae565b9050919050565b60006134ed826134d0565b9050919050565b6134fd816134e2565b82525050565b600060208201905061351860008301846134f4565b92915050565b61352781612db2565b811461353257600080fd5b50565b6000813590506135448161351e565b92915050565b6000806040838503121561356157613560612d23565b5b600061356f85828601612f79565b925050602061358085828601613535565b9150509250929050565b600067ffffffffffffffff8211156135a5576135a4613303565b5b6135ae82612e37565b9050602081019050919050565b60006135ce6135c98461358a565b613363565b9050828152602081018484840111156135ea576135e96132fe565b5b6135f58482856133af565b509392505050565b600082601f83011261361257613611612ff8565b5b81356136228482602086016135bb565b91505092915050565b6000806000806080858703121561364557613644612d23565b5b600061365387828801612f79565b945050602061366487828801612f79565b935050604061367587828801612ec4565b925050606085013567ffffffffffffffff81111561369657613695612d28565b5b6136a2878288016135fd565b91505092959194509250565b6000602082840312156136c4576136c3612d23565b5b60006136d284828501613535565b91505092915050565b600080604083850312156136f2576136f1612d23565b5b600061370085828601612f79565b925050602061371185828601612f79565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6000600282049050600182168061376257607f821691505b602082108114156137765761377561371b565b5b50919050565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b60006137b2601f83612df3565b91506137bd8261377c565b602082019050919050565b600060208201905081810360008301526137e1816137a5565b9050919050565b7f436c61696d206973206e6f742061637469766500000000000000000000000000600082015250565b600061381e601383612df3565b9150613829826137e8565b602082019050919050565b6000602082019050818103600083015261384d81613811565b9050919050565b7f4e6f20746f6b656e2069647320746f20636c61696d0000000000000000000000600082015250565b600061388a601583612df3565b915061389582613854565b602082019050919050565b600060208201905081810360008301526138b98161387d565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6000815190506138fe81612f62565b92915050565b60006020828403121561391a57613919612d23565b5b6000613928848285016138ef565b91505092915050565b7f43616e206f6e6c7920636c61696d206f776e656420646f6f646c6520726f6f6d60008201527f7300000000000000000000000000000000000000000000000000000000000000602082015250565b600061398d602183612df3565b915061399882613931565b604082019050919050565b600060208201905081810360008301526139bc81613980565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60006139fd82612ea3565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415613a3057613a2f6139c3565b5b600182019050919050565b7f546f6b656e2069642068617320616c7265616479206265656e20636c61696d6560008201527f6400000000000000000000000000000000000000000000000000000000000000602082015250565b6000613a97602183612df3565b9150613aa282613a3b565b604082019050919050565b60006020820190508181036000830152613ac681613a8a565b9050919050565b6000613ad882612ea3565b9150613ae383612ea3565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115613b1857613b176139c3565b5b828201905092915050565b600082825260208201905092915050565b600080fd5b6000613b458385613b23565b93507f07ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff831115613b7857613b77613b34565b5b602083029250613b898385846133af565b82840190509392505050565b60006020820190508181036000830152613bb0818486613b39565b90509392505050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000613bef602083612df3565b9150613bfa82613bb9565b602082019050919050565b60006020820190508181036000830152613c1e81613be2565b9050919050565b600080fd5b600080fd5b600080fd5b60008083356001602003843603038112613c5157613c50613c25565b5b80840192508235915067ffffffffffffffff821115613c7357613c72613c2a565b5b602083019250602082023603831315613c8f57613c8e613c2f565b5b509250929050565b7f4e6f6e6578697374656e7420746f6b656e000000000000000000000000000000600082015250565b6000613ccd601183612df3565b9150613cd882613c97565b602082019050919050565b60006020820190508181036000830152613cfc81613cc0565b9050919050565b6000613d0e82612ea3565b9150613d1983612ea3565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615613d5257613d516139c3565b5b828202905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b6000613d9782612ea3565b9150613da283612ea3565b925082613db257613db1613d5d565b5b828204905092915050565b600081519050613dcc81612ead565b92915050565b600060208284031215613de857613de7612d23565b5b6000613df684828501613dbd565b91505092915050565b600081519050613e0e8161351e565b92915050565b600060208284031215613e2a57613e29612d23565b5b6000613e3884828501613dff565b91505092915050565b600081905092915050565b60008190508160005260206000209050919050565b60008154613e6e8161374a565b613e788186613e41565b94506001821660008114613e935760018114613ea457613ed7565b60ff19831686528186019350613ed7565b613ead85613e4c565b60005b83811015613ecf57815481890152600182019150602081019050613eb0565b838801955050505b50505092915050565b7f2f00000000000000000000000000000000000000000000000000000000000000600082015250565b6000613f16600183613e41565b9150613f2182613ee0565b600182019050919050565b6000613f3782612de8565b613f418185613e41565b9350613f51818560208601612e04565b80840191505092915050565b6000613f698285613e61565b9150613f7482613f09565b9150613f808284613f2c565b91508190509392505050565b6000613f9782612f26565b9050919050565b613fa781613f8c565b8114613fb257600080fd5b50565b600081519050613fc481613f9e565b92915050565b600060208284031215613fe057613fdf612d23565b5b6000613fee84828501613fb5565b91505092915050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b6000614053602683612df3565b915061405e82613ff7565b604082019050919050565b6000602082019050818103600083015261408281614046565b9050919050565b600081519050919050565b600082825260208201905092915050565b60006140b082614089565b6140ba8185614094565b93506140ca818560208601612e04565b6140d381612e37565b840191505092915050565b60006080820190506140f36000830187612f38565b6141006020830186612f38565b61410d6040830185612fce565b818103606083015261411f81846140a5565b905095945050505050565b60008151905061413981612d59565b92915050565b60006020828403121561415557614154612d23565b5b60006141638482850161412a565b91505092915050565b600061417782612ea3565b915061418283612ea3565b925082821015614195576141946139c3565b5b828203905092915050565b60006141ab82612ea3565b91506141b683612ea3565b9250826141c6576141c5613d5d565b5b82820690509291505056fea2646970667358221220036f9ab809a928ce567038145393ef28e3a84d57c6c0b9198e6a254c1d5ef39e64736f6c63430008090033697066733a2f2f516d59323141444677477966744e6b78754532315661794d5072417255384172774a754b376a48336a5061653274000000000000000000000000a5409ec958c83c3f309868babaca7c86dcb077c1

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106101cf5760003560e01c8063688713331161010457806395d89b41116100a2578063defe114111610071578063defe114114610519578063e43082f714610535578063e985e9c514610551578063f2fde38b14610581576101cf565b806395d89b4114610493578063a22cb465146104b1578063b88d4fde146104cd578063c87b56dd146104e9576101cf565b8063715018a6116100de578063715018a61461042f5780637fc2780314610439578063879e930d146104575780638da5cb5b14610475576101cf565b806368871333146103c557806370a08231146103e1578063714c539814610411576101cf565b806323b872dd1161017157806342842e0e1161014b57806342842e0e1461034157806349df728c1461035d57806355f804b3146103795780636352211e14610395576101cf565b806323b872dd146102c45780632713727a146102e05780632a55205a14610310576101cf565b8063095ea7b3116101ad578063095ea7b31461025257806318160ddd1461026e5780631a5bd1171461028c5780631bf09e7e146102a8576101cf565b806301ffc9a7146101d457806306fdde0314610204578063081812fc14610222575b600080fd5b6101ee60048036038101906101e99190612d85565b61059d565b6040516101fb9190612dcd565b60405180910390f35b61020c610617565b6040516102199190612e81565b60405180910390f35b61023c60048036038101906102379190612ed9565b6106a9565b6040516102499190612f47565b60405180910390f35b61026c60048036038101906102679190612f8e565b610725565b005b610276610830565b6040516102839190612fdd565b60405180910390f35b6102a660048036038101906102a1919061305d565b610847565b005b6102c260048036038101906102bd9190613156565b610bd3565b005b6102de60048036038101906102d991906131d7565b610d8d565b005b6102fa60048036038101906102f59190612ed9565b610d9d565b6040516103079190612dcd565b60405180910390f35b61032a6004803603810190610325919061322a565b610dbd565b60405161033892919061326a565b60405180910390f35b61035b600480360381019061035691906131d7565b610e2d565b005b610377600480360381019061037291906132d1565b610e4d565b005b610393600480360381019061038e919061342e565b610fe8565b005b6103af60048036038101906103aa9190612ed9565b61107e565b6040516103bc9190612f47565b60405180910390f35b6103df60048036038101906103da9190613477565b611094565b005b6103fb60048036038101906103f69190613477565b61118e565b6040516104089190612fdd565b60405180910390f35b61041961125e565b6040516104269190612e81565b60405180910390f35b6104376112f0565b005b610441611378565b60405161044e9190612dcd565b60405180910390f35b61045f61138b565b60405161046c9190613503565b60405180910390f35b61047d6113b1565b60405161048a9190612f47565b60405180910390f35b61049b6113db565b6040516104a89190612e81565b60405180910390f35b6104cb60048036038101906104c6919061354a565b61146d565b005b6104e760048036038101906104e2919061362b565b6115e5565b005b61050360048036038101906104fe9190612ed9565b611661565b6040516105109190612e81565b60405180910390f35b610533600480360381019061052e91906136ae565b611709565b005b61054f600480360381019061054a91906136ae565b6117a2565b005b61056b600480360381019061056691906136db565b61183b565b6040516105789190612dcd565b60405180910390f35b61059b60048036038101906105969190613477565b611955565b005b60007f2a55205a000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480610610575061060f82611a4d565b5b9050919050565b6060600280546106269061374a565b80601f01602080910402602001604051908101604052809291908181526020018280546106529061374a565b801561069f5780601f106106745761010080835404028352916020019161069f565b820191906000526020600020905b81548152906001019060200180831161068257829003601f168201915b5050505050905090565b60006106b482611b2f565b6106ea576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6006600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b60006107308261107e565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610798576040517f943f7b8c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff166107b7611b7d565b73ffffffffffffffffffffffffffffffffffffffff16141580156107e957506107e7816107e2611b7d565b61183b565b155b15610820576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61082b838383611b85565b505050565b600061083a611c37565b6001546000540303905090565b6002600954141561088d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610884906137c8565b60405180910390fd5b6002600981905550600c60159054906101000a900460ff166108e4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108db90613834565b60405180910390fd5b3382826000828290501161092d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610924906138a0565b60405180910390fd5b60005b82829050811015610a7f578373ffffffffffffffffffffffffffffffffffffffff16600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16636352211e8585858181106109a3576109a26138c0565b5b905060200201356040518263ffffffff1660e01b81526004016109c69190612fdd565b60206040518083038186803b1580156109de57600080fd5b505afa1580156109f2573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a169190613904565b73ffffffffffffffffffffffffffffffffffffffff1614610a6c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a63906139a3565b60405180910390fd5b8080610a77906139f2565b915050610930565b5060005b85859050811015610b6057600d6000878784818110610aa557610aa46138c0565b5b90506020020135815260200190815260200160002060009054906101000a900460ff1615610b08576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610aff90613aad565b60405180910390fd5b6001600d6000888885818110610b2157610b206138c0565b5b90506020020135815260200190815260200160002060006101000a81548160ff0219169083151502179055508080610b58906139f2565b915050610a83565b506000610b6b610830565b9050610b7a3387879050611c3c565b8585905081610b899190613acd565b817f2117550f374fc095f54b60da9b74efb9cb5b2d56db151d9b502e707d493b4a1f8888604051610bbb929190613b95565b60405180910390a35050505060016009819055505050565b610bdb611b7d565b73ffffffffffffffffffffffffffffffffffffffff16610bf96113b1565b73ffffffffffffffffffffffffffffffffffffffff1614610c4f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c4690613c05565b60405180910390fd5b818190508484905014610c6157600080fd5b60005b84849050811015610d865760005b838383818110610c8557610c846138c0565b5b9050602002810190610c979190613c34565b9050811015610d1b576001600d6000868686818110610cb957610cb86138c0565b5b9050602002810190610ccb9190613c34565b85818110610cdc57610cdb6138c0565b5b90506020020135815260200190815260200160002060006101000a81548160ff0219169083151502179055508080610d13906139f2565b915050610c72565b50610d73858583818110610d3257610d316138c0565b5b9050602002016020810190610d479190613477565b848484818110610d5a57610d596138c0565b5b9050602002810190610d6c9190613c34565b9050611c3c565b8080610d7e906139f2565b915050610c64565b5050505050565b610d98838383611c5a565b505050565b600d6020528060005260406000206000915054906101000a900460ff1681565b600080610dc984611b2f565b610e08576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610dff90613ce3565b60405180910390fd5b306064600785610e189190613d03565b610e229190613d8c565b915091509250929050565b610e48838383604051806020016040528060008152506115e5565b505050565b610e55611b7d565b73ffffffffffffffffffffffffffffffffffffffff16610e736113b1565b73ffffffffffffffffffffffffffffffffffffffff1614610ec9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ec090613c05565b60405180910390fd5b60008173ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401610f049190612f47565b60206040518083038186803b158015610f1c57600080fd5b505afa158015610f30573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f549190613dd2565b90508173ffffffffffffffffffffffffffffffffffffffff1663a9059cbb33836040518363ffffffff1660e01b8152600401610f9192919061326a565b602060405180830381600087803b158015610fab57600080fd5b505af1158015610fbf573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610fe39190613e14565b505050565b610ff0611b7d565b73ffffffffffffffffffffffffffffffffffffffff1661100e6113b1565b73ffffffffffffffffffffffffffffffffffffffff1614611064576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161105b90613c05565b60405180910390fd5b80600b908051906020019061107a929190612c33565b5050565b600061108982612110565b600001519050919050565b61109c611b7d565b73ffffffffffffffffffffffffffffffffffffffff166110ba6113b1565b73ffffffffffffffffffffffffffffffffffffffff1614611110576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161110790613c05565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16141561114a57600080fd5b80600a60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156111f6576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600560008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160009054906101000a900467ffffffffffffffff1667ffffffffffffffff169050919050565b6060600b805461126d9061374a565b80601f01602080910402602001604051908101604052809291908181526020018280546112999061374a565b80156112e65780601f106112bb576101008083540402835291602001916112e6565b820191906000526020600020905b8154815290600101906020018083116112c957829003601f168201915b5050505050905090565b6112f8611b7d565b73ffffffffffffffffffffffffffffffffffffffff166113166113b1565b73ffffffffffffffffffffffffffffffffffffffff161461136c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161136390613c05565b60405180910390fd5b611376600061239f565b565b600c60159054906101000a900460ff1681565b600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6060600380546113ea9061374a565b80601f01602080910402602001604051908101604052809291908181526020018280546114169061374a565b80156114635780601f1061143857610100808354040283529160200191611463565b820191906000526020600020905b81548152906001019060200180831161144657829003601f168201915b5050505050905090565b611475611b7d565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156114da576040517fb06307db00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80600760006114e7611b7d565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff16611594611b7d565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516115d99190612dcd565b60405180910390a35050565b6115f0848484611c5a565b61160f8373ffffffffffffffffffffffffffffffffffffffff16612465565b8015611624575061162284848484612488565b155b1561165b576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b50505050565b606061166c82611b2f565b6116ab576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116a290613ce3565b60405180910390fd5b6000600b80546116ba9061374a565b9050116116d65760405180602001604052806000815250611702565b600b6116e1836125e8565b6040516020016116f2929190613f5d565b6040516020818303038152906040525b9050919050565b611711611b7d565b73ffffffffffffffffffffffffffffffffffffffff1661172f6113b1565b73ffffffffffffffffffffffffffffffffffffffff1614611785576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161177c90613c05565b60405180910390fd5b80600c60156101000a81548160ff02191690831515021790555050565b6117aa611b7d565b73ffffffffffffffffffffffffffffffffffffffff166117c86113b1565b73ffffffffffffffffffffffffffffffffffffffff161461181e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161181590613c05565b60405180910390fd5b80600c60146101000a81548160ff02191690831515021790555050565b600080600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600c60149054906101000a900460ff16801561193257508273ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1663c4552791866040518263ffffffff1660e01b81526004016118ca9190612f47565b60206040518083038186803b1580156118e257600080fd5b505afa1580156118f6573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061191a9190613fca565b73ffffffffffffffffffffffffffffffffffffffff16145b1561194157600191505061194f565b61194b8484612749565b9150505b92915050565b61195d611b7d565b73ffffffffffffffffffffffffffffffffffffffff1661197b6113b1565b73ffffffffffffffffffffffffffffffffffffffff16146119d1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119c890613c05565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611a41576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a3890614069565b60405180910390fd5b611a4a8161239f565b50565b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480611b1857507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80611b285750611b27826127dd565b5b9050919050565b600081611b3a611c37565b11158015611b49575060005482105b8015611b76575060046000838152602001908152602001600020600001601c9054906101000a900460ff16155b9050919050565b600033905090565b826006600084815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b600090565b611c56828260405180602001604052806000815250612847565b5050565b6000611c6582612110565b90508373ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff1614611cd0576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008473ffffffffffffffffffffffffffffffffffffffff16611cf1611b7d565b73ffffffffffffffffffffffffffffffffffffffff161480611d205750611d1f85611d1a611b7d565b61183b565b5b80611d655750611d2e611b7d565b73ffffffffffffffffffffffffffffffffffffffff16611d4d846106a9565b73ffffffffffffffffffffffffffffffffffffffff16145b905080611d9e576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161415611e05576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b611e128585856001612859565b611e1e60008487611b85565b6001600560008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160008282829054906101000a900467ffffffffffffffff160392506101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055506001600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160008282829054906101000a900467ffffffffffffffff160192506101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055506000600460008581526020019081526020016000209050848160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550428160000160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff16021790555060006001850190506000600460008381526020019081526020016000209050600073ffffffffffffffffffffffffffffffffffffffff168160000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16141561209e57600054821461209d57878160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555084602001518160000160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055505b5b505050828473ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4612109858585600161285f565b5050505050565b612118612cb9565b600082905080612126611c37565b11158015612135575060005481105b15612368576000600460008381526020019081526020016000206040518060600160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a900467ffffffffffffffff1667ffffffffffffffff1667ffffffffffffffff16815260200160008201601c9054906101000a900460ff1615151515815250509050806040015161236657600073ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff161461224a57809250505061239a565b5b60011561236557818060019003925050600460008381526020019081526020016000206040518060600160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a900467ffffffffffffffff1667ffffffffffffffff1667ffffffffffffffff16815260200160008201601c9054906101000a900460ff1615151515815250509050600073ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff161461236057809250505061239a565b61224b565b5b505b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b919050565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b60008373ffffffffffffffffffffffffffffffffffffffff1663150b7a026124ae611b7d565b8786866040518563ffffffff1660e01b81526004016124d094939291906140de565b602060405180830381600087803b1580156124ea57600080fd5b505af192505050801561251b57506040513d601f19601f82011682018060405250810190612518919061413f565b60015b612595573d806000811461254b576040519150601f19603f3d011682016040523d82523d6000602084013e612550565b606091505b5060008151141561258d576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050949350505050565b60606000821415612630576040518060400160405280600181526020017f30000000000000000000000000000000000000000000000000000000000000008152509050612744565b600082905060005b6000821461266257808061264b906139f2565b915050600a8261265b9190613d8c565b9150612638565b60008167ffffffffffffffff81111561267e5761267d613303565b5b6040519080825280601f01601f1916602001820160405280156126b05781602001600182028036833780820191505090505b5090505b6000851461273d576001826126c9919061416c565b9150600a856126d891906141a0565b60306126e49190613acd565b60f81b8183815181106126fa576126f96138c0565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a856127369190613d8c565b94506126b4565b8093505050505b919050565b6000600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b6128548383836001612865565b505050565b50505050565b50505050565b600080549050600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1614156128d2576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600084141561290d576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61291a6000868387612859565b83600560008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160008282829054906101000a900467ffffffffffffffff160192506101000a81548167ffffffffffffffff021916908367ffffffffffffffff16021790555083600560008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160088282829054906101000a900467ffffffffffffffff160192506101000a81548167ffffffffffffffff021916908367ffffffffffffffff160217905550846004600083815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550426004600083815260200190815260200160002060000160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff160217905550600081905060008582019050838015612ae45750612ae38773ffffffffffffffffffffffffffffffffffffffff16612465565b5b15612baa575b818773ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4612b596000888480600101955088612488565b612b8f576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80821415612aea578260005414612ba557600080fd5b612c16565b5b818060010192508773ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a480821415612bab575b816000819055505050612c2c600086838761285f565b5050505050565b828054612c3f9061374a565b90600052602060002090601f016020900481019282612c615760008555612ca8565b82601f10612c7a57805160ff1916838001178555612ca8565b82800160010185558215612ca8579182015b82811115612ca7578251825591602001919060010190612c8c565b5b509050612cb59190612cfc565b5090565b6040518060600160405280600073ffffffffffffffffffffffffffffffffffffffff168152602001600067ffffffffffffffff1681526020016000151581525090565b5b80821115612d15576000816000905550600101612cfd565b5090565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b612d6281612d2d565b8114612d6d57600080fd5b50565b600081359050612d7f81612d59565b92915050565b600060208284031215612d9b57612d9a612d23565b5b6000612da984828501612d70565b91505092915050565b60008115159050919050565b612dc781612db2565b82525050565b6000602082019050612de26000830184612dbe565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b83811015612e22578082015181840152602081019050612e07565b83811115612e31576000848401525b50505050565b6000601f19601f8301169050919050565b6000612e5382612de8565b612e5d8185612df3565b9350612e6d818560208601612e04565b612e7681612e37565b840191505092915050565b60006020820190508181036000830152612e9b8184612e48565b905092915050565b6000819050919050565b612eb681612ea3565b8114612ec157600080fd5b50565b600081359050612ed381612ead565b92915050565b600060208284031215612eef57612eee612d23565b5b6000612efd84828501612ec4565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000612f3182612f06565b9050919050565b612f4181612f26565b82525050565b6000602082019050612f5c6000830184612f38565b92915050565b612f6b81612f26565b8114612f7657600080fd5b50565b600081359050612f8881612f62565b92915050565b60008060408385031215612fa557612fa4612d23565b5b6000612fb385828601612f79565b9250506020612fc485828601612ec4565b9150509250929050565b612fd781612ea3565b82525050565b6000602082019050612ff26000830184612fce565b92915050565b600080fd5b600080fd5b600080fd5b60008083601f84011261301d5761301c612ff8565b5b8235905067ffffffffffffffff81111561303a57613039612ffd565b5b60208301915083602082028301111561305657613055613002565b5b9250929050565b6000806020838503121561307457613073612d23565b5b600083013567ffffffffffffffff81111561309257613091612d28565b5b61309e85828601613007565b92509250509250929050565b60008083601f8401126130c0576130bf612ff8565b5b8235905067ffffffffffffffff8111156130dd576130dc612ffd565b5b6020830191508360208202830111156130f9576130f8613002565b5b9250929050565b60008083601f84011261311657613115612ff8565b5b8235905067ffffffffffffffff81111561313357613132612ffd565b5b60208301915083602082028301111561314f5761314e613002565b5b9250929050565b600080600080604085870312156131705761316f612d23565b5b600085013567ffffffffffffffff81111561318e5761318d612d28565b5b61319a878288016130aa565b9450945050602085013567ffffffffffffffff8111156131bd576131bc612d28565b5b6131c987828801613100565b925092505092959194509250565b6000806000606084860312156131f0576131ef612d23565b5b60006131fe86828701612f79565b935050602061320f86828701612f79565b925050604061322086828701612ec4565b9150509250925092565b6000806040838503121561324157613240612d23565b5b600061324f85828601612ec4565b925050602061326085828601612ec4565b9150509250929050565b600060408201905061327f6000830185612f38565b61328c6020830184612fce565b9392505050565b600061329e82612f26565b9050919050565b6132ae81613293565b81146132b957600080fd5b50565b6000813590506132cb816132a5565b92915050565b6000602082840312156132e7576132e6612d23565b5b60006132f5848285016132bc565b91505092915050565b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b61333b82612e37565b810181811067ffffffffffffffff8211171561335a57613359613303565b5b80604052505050565b600061336d612d19565b90506133798282613332565b919050565b600067ffffffffffffffff82111561339957613398613303565b5b6133a282612e37565b9050602081019050919050565b82818337600083830152505050565b60006133d16133cc8461337e565b613363565b9050828152602081018484840111156133ed576133ec6132fe565b5b6133f88482856133af565b509392505050565b600082601f83011261341557613414612ff8565b5b81356134258482602086016133be565b91505092915050565b60006020828403121561344457613443612d23565b5b600082013567ffffffffffffffff81111561346257613461612d28565b5b61346e84828501613400565b91505092915050565b60006020828403121561348d5761348c612d23565b5b600061349b84828501612f79565b91505092915050565b6000819050919050565b60006134c96134c46134bf84612f06565b6134a4565b612f06565b9050919050565b60006134db826134ae565b9050919050565b60006134ed826134d0565b9050919050565b6134fd816134e2565b82525050565b600060208201905061351860008301846134f4565b92915050565b61352781612db2565b811461353257600080fd5b50565b6000813590506135448161351e565b92915050565b6000806040838503121561356157613560612d23565b5b600061356f85828601612f79565b925050602061358085828601613535565b9150509250929050565b600067ffffffffffffffff8211156135a5576135a4613303565b5b6135ae82612e37565b9050602081019050919050565b60006135ce6135c98461358a565b613363565b9050828152602081018484840111156135ea576135e96132fe565b5b6135f58482856133af565b509392505050565b600082601f83011261361257613611612ff8565b5b81356136228482602086016135bb565b91505092915050565b6000806000806080858703121561364557613644612d23565b5b600061365387828801612f79565b945050602061366487828801612f79565b935050604061367587828801612ec4565b925050606085013567ffffffffffffffff81111561369657613695612d28565b5b6136a2878288016135fd565b91505092959194509250565b6000602082840312156136c4576136c3612d23565b5b60006136d284828501613535565b91505092915050565b600080604083850312156136f2576136f1612d23565b5b600061370085828601612f79565b925050602061371185828601612f79565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6000600282049050600182168061376257607f821691505b602082108114156137765761377561371b565b5b50919050565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b60006137b2601f83612df3565b91506137bd8261377c565b602082019050919050565b600060208201905081810360008301526137e1816137a5565b9050919050565b7f436c61696d206973206e6f742061637469766500000000000000000000000000600082015250565b600061381e601383612df3565b9150613829826137e8565b602082019050919050565b6000602082019050818103600083015261384d81613811565b9050919050565b7f4e6f20746f6b656e2069647320746f20636c61696d0000000000000000000000600082015250565b600061388a601583612df3565b915061389582613854565b602082019050919050565b600060208201905081810360008301526138b98161387d565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6000815190506138fe81612f62565b92915050565b60006020828403121561391a57613919612d23565b5b6000613928848285016138ef565b91505092915050565b7f43616e206f6e6c7920636c61696d206f776e656420646f6f646c6520726f6f6d60008201527f7300000000000000000000000000000000000000000000000000000000000000602082015250565b600061398d602183612df3565b915061399882613931565b604082019050919050565b600060208201905081810360008301526139bc81613980565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60006139fd82612ea3565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415613a3057613a2f6139c3565b5b600182019050919050565b7f546f6b656e2069642068617320616c7265616479206265656e20636c61696d6560008201527f6400000000000000000000000000000000000000000000000000000000000000602082015250565b6000613a97602183612df3565b9150613aa282613a3b565b604082019050919050565b60006020820190508181036000830152613ac681613a8a565b9050919050565b6000613ad882612ea3565b9150613ae383612ea3565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115613b1857613b176139c3565b5b828201905092915050565b600082825260208201905092915050565b600080fd5b6000613b458385613b23565b93507f07ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff831115613b7857613b77613b34565b5b602083029250613b898385846133af565b82840190509392505050565b60006020820190508181036000830152613bb0818486613b39565b90509392505050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000613bef602083612df3565b9150613bfa82613bb9565b602082019050919050565b60006020820190508181036000830152613c1e81613be2565b9050919050565b600080fd5b600080fd5b600080fd5b60008083356001602003843603038112613c5157613c50613c25565b5b80840192508235915067ffffffffffffffff821115613c7357613c72613c2a565b5b602083019250602082023603831315613c8f57613c8e613c2f565b5b509250929050565b7f4e6f6e6578697374656e7420746f6b656e000000000000000000000000000000600082015250565b6000613ccd601183612df3565b9150613cd882613c97565b602082019050919050565b60006020820190508181036000830152613cfc81613cc0565b9050919050565b6000613d0e82612ea3565b9150613d1983612ea3565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615613d5257613d516139c3565b5b828202905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b6000613d9782612ea3565b9150613da283612ea3565b925082613db257613db1613d5d565b5b828204905092915050565b600081519050613dcc81612ead565b92915050565b600060208284031215613de857613de7612d23565b5b6000613df684828501613dbd565b91505092915050565b600081519050613e0e8161351e565b92915050565b600060208284031215613e2a57613e29612d23565b5b6000613e3884828501613dff565b91505092915050565b600081905092915050565b60008190508160005260206000209050919050565b60008154613e6e8161374a565b613e788186613e41565b94506001821660008114613e935760018114613ea457613ed7565b60ff19831686528186019350613ed7565b613ead85613e4c565b60005b83811015613ecf57815481890152600182019150602081019050613eb0565b838801955050505b50505092915050565b7f2f00000000000000000000000000000000000000000000000000000000000000600082015250565b6000613f16600183613e41565b9150613f2182613ee0565b600182019050919050565b6000613f3782612de8565b613f418185613e41565b9350613f51818560208601612e04565b80840191505092915050565b6000613f698285613e61565b9150613f7482613f09565b9150613f808284613f2c565b91508190509392505050565b6000613f9782612f26565b9050919050565b613fa781613f8c565b8114613fb257600080fd5b50565b600081519050613fc481613f9e565b92915050565b600060208284031215613fe057613fdf612d23565b5b6000613fee84828501613fb5565b91505092915050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b6000614053602683612df3565b915061405e82613ff7565b604082019050919050565b6000602082019050818103600083015261408281614046565b9050919050565b600081519050919050565b600082825260208201905092915050565b60006140b082614089565b6140ba8185614094565b93506140ca818560208601612e04565b6140d381612e37565b840191505092915050565b60006080820190506140f36000830187612f38565b6141006020830186612f38565b61410d6040830185612fce565b818103606083015261411f81846140a5565b905095945050505050565b60008151905061413981612d59565b92915050565b60006020828403121561415557614154612d23565b5b60006141638482850161412a565b91505092915050565b600061417782612ea3565b915061418283612ea3565b925082821015614195576141946139c3565b5b828203905092915050565b60006141ab82612ea3565b91506141b683612ea3565b9250826141c6576141c5613d5d565b5b82820690509291505056fea2646970667358221220036f9ab809a928ce567038145393ef28e3a84d57c6c0b9198e6a254c1d5ef39e64736f6c63430008090033

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

000000000000000000000000a5409ec958c83c3f309868babaca7c86dcb077c1

-----Decoded View---------------
Arg [0] : _openSeaProxyRegistryAddress (address): 0xa5409ec958C83C3f309868babACA7c86DCB077c1

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


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.