Contract Address Details

0xD10bC793F44ea91C0ae22e657406eef395937c83

Contract Name
DeadHeadzNFTPool
Creator
0xacd320–1fac21 at 0x98b214–0eb04c
Balance
0.99999999999999993 Doge
Tokens
Fetching tokens...
Transactions
16 Transactions
Transfers
7 Transfers
Gas Used
967,869
Last Balance Update
26705158
Contract name:
DeadHeadzNFTPool




Optimization enabled
false
Compiler version
v0.8.17+commit.8df45f5f




EVM Version
default




Verified at
2022-10-12T20:14:43.923622Z

Constructor Arguments

0000000000000000000000000398c92971e98f49b84fa5ede6bb102ec113f7e50000000000000000000000000000000000000000000000008ac7230489e800000000000000000000000000000000000000000000000000004563918244f40000

Arg [0] (address) : 0x0398c92971e98f49b84fa5ede6bb102ec113f7e5
Arg [1] (uint256) : 10000000000000000000
Arg [2] (uint256) : 5000000000000000000

              

Contract source code

// File: @openzeppelin/contracts/utils/Strings.sol


// OpenZeppelin Contracts (last updated v4.7.0) (utils/Strings.sol)

pragma solidity ^0.8.0;

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

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

    /**
     * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation.
     */
    function toHexString(address addr) internal pure returns (string memory) {
        return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH);
    }
}

// File: @openzeppelin/contracts/utils/Context.sol


// 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: @openzeppelin/contracts/access/Ownable.sol


// OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol)

pragma solidity ^0.8.0;


/**
 * @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 Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        _checkOwner();
        _;
    }

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

    /**
     * @dev Throws if the sender is not the owner.
     */
    function _checkOwner() internal view virtual {
        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: @openzeppelin/contracts/utils/Address.sol


// OpenZeppelin Contracts (last updated v4.7.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
                /// @solidity memory-safe-assembly
                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
}

// File: @openzeppelin/contracts/token/ERC721/IERC721Receiver.sol


// 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: @openzeppelin/contracts/token/ERC721/utils/ERC721Holder.sol


// OpenZeppelin Contracts v4.4.1 (token/ERC721/utils/ERC721Holder.sol)

pragma solidity ^0.8.0;


/**
 * @dev Implementation of the {IERC721Receiver} interface.
 *
 * Accepts all token transfers.
 * Make sure the contract is able to use its token with {IERC721-safeTransferFrom}, {IERC721-approve} or {IERC721-setApprovalForAll}.
 */
contract ERC721Holder is IERC721Receiver {
    /**
     * @dev See {IERC721Receiver-onERC721Received}.
     *
     * Always returns `IERC721Receiver.onERC721Received.selector`.
     */
    function onERC721Received(
        address,
        address,
        uint256,
        bytes memory
    ) public virtual override returns (bytes4) {
        return this.onERC721Received.selector;
    }
}

// File: @openzeppelin/contracts/utils/introspection/IERC165.sol


// 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: @openzeppelin/contracts/utils/introspection/ERC165.sol


// OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol)

pragma solidity ^0.8.0;


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

// File: @openzeppelin/contracts/token/ERC721/IERC721.sol


// OpenZeppelin Contracts (last updated v4.7.0) (token/ERC721/IERC721.sol)

pragma solidity ^0.8.0;


/**
 * @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 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: @openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata.sol


// OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol)

pragma solidity ^0.8.0;


/**
 * @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: @openzeppelin/contracts/token/ERC721/ERC721.sol


// OpenZeppelin Contracts (last updated v4.7.0) (token/ERC721/ERC721.sol)

pragma solidity ^0.8.0;








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

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

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

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

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

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

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

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

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

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

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

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

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

        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 overridden in child contracts.
     */
    function _baseURI() internal view virtual returns (string memory) {
        return "";
    }

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

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

        _approve(to, tokenId);
    }

    /**
     * @dev See {IERC721-getApproved}.
     */
    function getApproved(uint256 tokenId) public view virtual override returns (address) {
        _requireMinted(tokenId);

        return _tokenApprovals[tokenId];
    }

    /**
     * @dev See {IERC721-setApprovalForAll}.
     */
    function setApprovalForAll(address operator, bool approved) public virtual override {
        _setApprovalForAll(_msgSender(), operator, approved);
    }

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

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

        _transfer(from, to, tokenId);
    }

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

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

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

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

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

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

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

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

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

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

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

        _afterTokenTransfer(address(0), to, tokenId);
    }

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

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

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

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

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

        _afterTokenTransfer(owner, address(0), tokenId);
    }

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

        _beforeTokenTransfer(from, to, tokenId);

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

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

        emit Transfer(from, to, tokenId);

        _afterTokenTransfer(from, to, tokenId);
    }

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

    /**
     * @dev Approve `operator` to operate on all of `owner` tokens
     *
     * Emits an {ApprovalForAll} event.
     */
    function _setApprovalForAll(
        address owner,
        address operator,
        bool approved
    ) internal virtual {
        require(owner != operator, "ERC721: approve to caller");
        _operatorApprovals[owner][operator] = approved;
        emit ApprovalForAll(owner, operator, approved);
    }

    /**
     * @dev Reverts if the `tokenId` has not been minted yet.
     */
    function _requireMinted(uint256 tokenId) internal view virtual {
        require(_exists(tokenId), "ERC721: invalid token ID");
    }

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

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

    /**
     * @dev Hook that is called after any transfer of tokens. This includes
     * minting and burning.
     *
     * Calling conditions:
     *
     * - when `from` and `to` are both non-zero.
     * - `from` and `to` are never both zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _afterTokenTransfer(
        address from,
        address to,
        uint256 tokenId
    ) internal virtual {}
}

// File: DeadHeadzNFTPool.sol


pragma solidity ^0.8.17;






contract DeadHeadzNFTPool is IERC721Receiver, ERC721Holder, Ownable {
    address public nft;
    uint256 public price;
    uint256 public pricepool;

    constructor(address _nft, uint256 _price, uint256 _pricepool) {
        nft = _nft;
        price = _price;
        pricepool = _pricepool;
    }

    function newNft(address _nft) external onlyOwner() {
        nft = _nft;
    }

    function newPrice(uint256 _price) external onlyOwner() {
        price = _price;
    }

    function newPricePool(uint256 _pricepool) external onlyOwner() {
        pricepool = _pricepool;
    }

    function buyNft(address recipient, uint256 tokenId) external payable {
        require(msg.value >= price, "Not enough WDOGE sent, check price");
        require(IERC721(nft).balanceOf(address(this)) >= 1, "Not enough NFTs in the market");
        IERC721(nft).safeTransferFrom(address(this), recipient, tokenId);     
    }

    receive() external payable {}

    function sellNft(address payable _seller, uint256 _amount, uint256 tokenId) external {
        require(IERC721(nft).balanceOf(msg.sender) >= 1, "Not enough NFTs");
        require(IERC721(nft).ownerOf(tokenId) == msg.sender, "Not your NFT");
        IERC721(nft).safeTransferFrom(msg.sender, address(this), tokenId);
        require(address(this).balance >= pricepool, "Not enough WDOGE");
        (bool success, ) = _seller.call{value: _amount}("");
        require(success, "Failed to send WDOGE");
    }

    function withdrawNft(uint256 tokenId) external onlyOwner {
        IERC721(nft).safeTransferFrom(address(this), msg.sender, tokenId);
    }

    function transferValue(address payable _to, uint256 _amount) external onlyOwner {
        (bool success, ) = _to.call{value: _amount}("");
        require(success, "Failed to send WDOGE");
    }
}
        

Contract ABI

[{"type":"constructor","stateMutability":"nonpayable","inputs":[{"type":"address","name":"_nft","internalType":"address"},{"type":"uint256","name":"_price","internalType":"uint256"},{"type":"uint256","name":"_pricepool","internalType":"uint256"}]},{"type":"event","name":"OwnershipTransferred","inputs":[{"type":"address","name":"previousOwner","internalType":"address","indexed":true},{"type":"address","name":"newOwner","internalType":"address","indexed":true}],"anonymous":false},{"type":"function","stateMutability":"payable","outputs":[],"name":"buyNft","inputs":[{"type":"address","name":"recipient","internalType":"address"},{"type":"uint256","name":"tokenId","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"newNft","inputs":[{"type":"address","name":"_nft","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"newPrice","inputs":[{"type":"uint256","name":"_price","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"newPricePool","inputs":[{"type":"uint256","name":"_pricepool","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"nft","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[{"type":"bytes4","name":"","internalType":"bytes4"}],"name":"onERC721Received","inputs":[{"type":"address","name":"","internalType":"address"},{"type":"address","name":"","internalType":"address"},{"type":"uint256","name":"","internalType":"uint256"},{"type":"bytes","name":"","internalType":"bytes"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"owner","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"price","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"pricepool","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"renounceOwnership","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"sellNft","inputs":[{"type":"address","name":"_seller","internalType":"address payable"},{"type":"uint256","name":"_amount","internalType":"uint256"},{"type":"uint256","name":"tokenId","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"transferOwnership","inputs":[{"type":"address","name":"newOwner","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"transferValue","inputs":[{"type":"address","name":"_to","internalType":"address payable"},{"type":"uint256","name":"_amount","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"withdrawNft","inputs":[{"type":"uint256","name":"tokenId","internalType":"uint256"}]},{"type":"receive","stateMutability":"payable"}]
            

Contract Creation Code

0x60806040523480156200001157600080fd5b506040516200186a3803806200186a833981810160405281019062000037919062000220565b620000576200004b620000af60201b60201c565b620000b760201b60201c565b82600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555081600281905550806003819055505050506200027c565b600033905090565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000620001ad8262000180565b9050919050565b620001bf81620001a0565b8114620001cb57600080fd5b50565b600081519050620001df81620001b4565b92915050565b6000819050919050565b620001fa81620001e5565b81146200020657600080fd5b50565b6000815190506200021a81620001ef565b92915050565b6000806000606084860312156200023c576200023b6200017b565b5b60006200024c86828701620001ce565b93505060206200025f8682870162000209565b9250506040620002728682870162000209565b9150509250925092565b6115de806200028c6000396000f3fe6080604052600436106100e15760003560e01c8063910efae81161007f578063ca8fb0d111610059578063ca8fb0d114610284578063f14a424f146102ad578063f2fde38b146102d6578063fe72ac7f146102ff576100e8565b8063910efae814610207578063a035b1fe14610230578063c1c09e151461025b576100e8565b80634ddf4f8f116100bb5780634ddf4f8f146101805780635a4161ff1461019c578063715018a6146101c55780638da5cb5b146101dc576100e8565b8063150b7a02146100ed5780632db431891461012a57806347ccca0214610155576100e8565b366100e857005b600080fd5b3480156100f957600080fd5b50610114600480360381019061010f9190610e52565b610328565b6040516101219190610f10565b60405180910390f35b34801561013657600080fd5b5061013f61033c565b60405161014c9190610f3a565b60405180910390f35b34801561016157600080fd5b5061016a610342565b6040516101779190610f64565b60405180910390f35b61019a60048036038101906101959190610f7f565b610368565b005b3480156101a857600080fd5b506101c360048036038101906101be9190610ffd565b610520565b005b3480156101d157600080fd5b506101da6105d9565b005b3480156101e857600080fd5b506101f16105ed565b6040516101fe9190610f64565b60405180910390f35b34801561021357600080fd5b5061022e6004803603810190610229919061103d565b610616565b005b34801561023c57600080fd5b506102456106b2565b6040516102529190610f3a565b60405180910390f35b34801561026757600080fd5b50610282600480360381019061027d919061106a565b6106b8565b005b34801561029057600080fd5b506102ab60048036038101906102a6919061103d565b610a27565b005b3480156102b957600080fd5b506102d460048036038101906102cf91906110bd565b610a39565b005b3480156102e257600080fd5b506102fd60048036038101906102f891906110bd565b610a85565b005b34801561030b57600080fd5b506103266004803603810190610321919061103d565b610b08565b005b600063150b7a0260e01b9050949350505050565b60035481565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6002543410156103ad576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016103a49061116d565b60405180910390fd5b60018060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b81526004016104099190610f64565b602060405180830381865afa158015610426573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061044a91906111a2565b101561048b576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016104829061121b565b60405180910390fd5b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166342842e0e3084846040518463ffffffff1660e01b81526004016104ea9392919061123b565b600060405180830381600087803b15801561050457600080fd5b505af1158015610518573d6000803e3d6000fd5b505050505050565b610528610b1a565b60008273ffffffffffffffffffffffffffffffffffffffff168260405161054e906112a3565b60006040518083038185875af1925050503d806000811461058b576040519150601f19603f3d011682016040523d82523d6000602084013e610590565b606091505b50509050806105d4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016105cb90611304565b60405180910390fd5b505050565b6105e1610b1a565b6105eb6000610b98565b565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b61061e610b1a565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166342842e0e3033846040518463ffffffff1660e01b815260040161067d9392919061123b565b600060405180830381600087803b15801561069757600080fd5b505af11580156106ab573d6000803e3d6000fd5b5050505050565b60025481565b60018060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231336040518263ffffffff1660e01b81526004016107149190610f64565b602060405180830381865afa158015610731573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061075591906111a2565b1015610796576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161078d90611370565b60405180910390fd5b3373ffffffffffffffffffffffffffffffffffffffff16600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16636352211e836040518263ffffffff1660e01b81526004016108089190610f3a565b602060405180830381865afa158015610825573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061084991906113a5565b73ffffffffffffffffffffffffffffffffffffffff161461089f576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108969061141e565b60405180910390fd5b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166342842e0e3330846040518463ffffffff1660e01b81526004016108fe9392919061123b565b600060405180830381600087803b15801561091857600080fd5b505af115801561092c573d6000803e3d6000fd5b50505050600354471015610975576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161096c9061148a565b60405180910390fd5b60008373ffffffffffffffffffffffffffffffffffffffff168360405161099b906112a3565b60006040518083038185875af1925050503d80600081146109d8576040519150601f19603f3d011682016040523d82523d6000602084013e6109dd565b606091505b5050905080610a21576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a1890611304565b60405180910390fd5b50505050565b610a2f610b1a565b8060038190555050565b610a41610b1a565b80600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b610a8d610b1a565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603610afc576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610af39061151c565b60405180910390fd5b610b0581610b98565b50565b610b10610b1a565b8060028190555050565b610b22610c5c565b73ffffffffffffffffffffffffffffffffffffffff16610b406105ed565b73ffffffffffffffffffffffffffffffffffffffff1614610b96576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b8d90611588565b60405180910390fd5b565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600033905090565b6000604051905090565b600080fd5b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000610ca382610c78565b9050919050565b610cb381610c98565b8114610cbe57600080fd5b50565b600081359050610cd081610caa565b92915050565b6000819050919050565b610ce981610cd6565b8114610cf457600080fd5b50565b600081359050610d0681610ce0565b92915050565b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b610d5f82610d16565b810181811067ffffffffffffffff82111715610d7e57610d7d610d27565b5b80604052505050565b6000610d91610c64565b9050610d9d8282610d56565b919050565b600067ffffffffffffffff821115610dbd57610dbc610d27565b5b610dc682610d16565b9050602081019050919050565b82818337600083830152505050565b6000610df5610df084610da2565b610d87565b905082815260208101848484011115610e1157610e10610d11565b5b610e1c848285610dd3565b509392505050565b600082601f830112610e3957610e38610d0c565b5b8135610e49848260208601610de2565b91505092915050565b60008060008060808587031215610e6c57610e6b610c6e565b5b6000610e7a87828801610cc1565b9450506020610e8b87828801610cc1565b9350506040610e9c87828801610cf7565b925050606085013567ffffffffffffffff811115610ebd57610ebc610c73565b5b610ec987828801610e24565b91505092959194509250565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b610f0a81610ed5565b82525050565b6000602082019050610f256000830184610f01565b92915050565b610f3481610cd6565b82525050565b6000602082019050610f4f6000830184610f2b565b92915050565b610f5e81610c98565b82525050565b6000602082019050610f796000830184610f55565b92915050565b60008060408385031215610f9657610f95610c6e565b5b6000610fa485828601610cc1565b9250506020610fb585828601610cf7565b9150509250929050565b6000610fca82610c78565b9050919050565b610fda81610fbf565b8114610fe557600080fd5b50565b600081359050610ff781610fd1565b92915050565b6000806040838503121561101457611013610c6e565b5b600061102285828601610fe8565b925050602061103385828601610cf7565b9150509250929050565b60006020828403121561105357611052610c6e565b5b600061106184828501610cf7565b91505092915050565b60008060006060848603121561108357611082610c6e565b5b600061109186828701610fe8565b93505060206110a286828701610cf7565b92505060406110b386828701610cf7565b9150509250925092565b6000602082840312156110d3576110d2610c6e565b5b60006110e184828501610cc1565b91505092915050565b600082825260208201905092915050565b7f4e6f7420656e6f7567682057444f47452073656e742c20636865636b2070726960008201527f6365000000000000000000000000000000000000000000000000000000000000602082015250565b60006111576022836110ea565b9150611162826110fb565b604082019050919050565b600060208201905081810360008301526111868161114a565b9050919050565b60008151905061119c81610ce0565b92915050565b6000602082840312156111b8576111b7610c6e565b5b60006111c68482850161118d565b91505092915050565b7f4e6f7420656e6f756768204e46547320696e20746865206d61726b6574000000600082015250565b6000611205601d836110ea565b9150611210826111cf565b602082019050919050565b60006020820190508181036000830152611234816111f8565b9050919050565b60006060820190506112506000830186610f55565b61125d6020830185610f55565b61126a6040830184610f2b565b949350505050565b600081905092915050565b50565b600061128d600083611272565b91506112988261127d565b600082019050919050565b60006112ae82611280565b9150819050919050565b7f4661696c656420746f2073656e642057444f4745000000000000000000000000600082015250565b60006112ee6014836110ea565b91506112f9826112b8565b602082019050919050565b6000602082019050818103600083015261131d816112e1565b9050919050565b7f4e6f7420656e6f756768204e4654730000000000000000000000000000000000600082015250565b600061135a600f836110ea565b915061136582611324565b602082019050919050565b600060208201905081810360008301526113898161134d565b9050919050565b60008151905061139f81610caa565b92915050565b6000602082840312156113bb576113ba610c6e565b5b60006113c984828501611390565b91505092915050565b7f4e6f7420796f7572204e46540000000000000000000000000000000000000000600082015250565b6000611408600c836110ea565b9150611413826113d2565b602082019050919050565b60006020820190508181036000830152611437816113fb565b9050919050565b7f4e6f7420656e6f7567682057444f474500000000000000000000000000000000600082015250565b60006114746010836110ea565b915061147f8261143e565b602082019050919050565b600060208201905081810360008301526114a381611467565b9050919050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b60006115066026836110ea565b9150611511826114aa565b604082019050919050565b60006020820190508181036000830152611535816114f9565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b60006115726020836110ea565b915061157d8261153c565b602082019050919050565b600060208201905081810360008301526115a181611565565b905091905056fea26469706673582212206b6831ea96e302e8e79541a670968a2f2bc61a2eb403b0b76ce290117ae6710f64736f6c634300081100330000000000000000000000000398c92971e98f49b84fa5ede6bb102ec113f7e50000000000000000000000000000000000000000000000008ac7230489e800000000000000000000000000000000000000000000000000004563918244f40000

Deployed ByteCode

0x6080604052600436106100e15760003560e01c8063910efae81161007f578063ca8fb0d111610059578063ca8fb0d114610284578063f14a424f146102ad578063f2fde38b146102d6578063fe72ac7f146102ff576100e8565b8063910efae814610207578063a035b1fe14610230578063c1c09e151461025b576100e8565b80634ddf4f8f116100bb5780634ddf4f8f146101805780635a4161ff1461019c578063715018a6146101c55780638da5cb5b146101dc576100e8565b8063150b7a02146100ed5780632db431891461012a57806347ccca0214610155576100e8565b366100e857005b600080fd5b3480156100f957600080fd5b50610114600480360381019061010f9190610e52565b610328565b6040516101219190610f10565b60405180910390f35b34801561013657600080fd5b5061013f61033c565b60405161014c9190610f3a565b60405180910390f35b34801561016157600080fd5b5061016a610342565b6040516101779190610f64565b60405180910390f35b61019a60048036038101906101959190610f7f565b610368565b005b3480156101a857600080fd5b506101c360048036038101906101be9190610ffd565b610520565b005b3480156101d157600080fd5b506101da6105d9565b005b3480156101e857600080fd5b506101f16105ed565b6040516101fe9190610f64565b60405180910390f35b34801561021357600080fd5b5061022e6004803603810190610229919061103d565b610616565b005b34801561023c57600080fd5b506102456106b2565b6040516102529190610f3a565b60405180910390f35b34801561026757600080fd5b50610282600480360381019061027d919061106a565b6106b8565b005b34801561029057600080fd5b506102ab60048036038101906102a6919061103d565b610a27565b005b3480156102b957600080fd5b506102d460048036038101906102cf91906110bd565b610a39565b005b3480156102e257600080fd5b506102fd60048036038101906102f891906110bd565b610a85565b005b34801561030b57600080fd5b506103266004803603810190610321919061103d565b610b08565b005b600063150b7a0260e01b9050949350505050565b60035481565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6002543410156103ad576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016103a49061116d565b60405180910390fd5b60018060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b81526004016104099190610f64565b602060405180830381865afa158015610426573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061044a91906111a2565b101561048b576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016104829061121b565b60405180910390fd5b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166342842e0e3084846040518463ffffffff1660e01b81526004016104ea9392919061123b565b600060405180830381600087803b15801561050457600080fd5b505af1158015610518573d6000803e3d6000fd5b505050505050565b610528610b1a565b60008273ffffffffffffffffffffffffffffffffffffffff168260405161054e906112a3565b60006040518083038185875af1925050503d806000811461058b576040519150601f19603f3d011682016040523d82523d6000602084013e610590565b606091505b50509050806105d4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016105cb90611304565b60405180910390fd5b505050565b6105e1610b1a565b6105eb6000610b98565b565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b61061e610b1a565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166342842e0e3033846040518463ffffffff1660e01b815260040161067d9392919061123b565b600060405180830381600087803b15801561069757600080fd5b505af11580156106ab573d6000803e3d6000fd5b5050505050565b60025481565b60018060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231336040518263ffffffff1660e01b81526004016107149190610f64565b602060405180830381865afa158015610731573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061075591906111a2565b1015610796576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161078d90611370565b60405180910390fd5b3373ffffffffffffffffffffffffffffffffffffffff16600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16636352211e836040518263ffffffff1660e01b81526004016108089190610f3a565b602060405180830381865afa158015610825573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061084991906113a5565b73ffffffffffffffffffffffffffffffffffffffff161461089f576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108969061141e565b60405180910390fd5b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166342842e0e3330846040518463ffffffff1660e01b81526004016108fe9392919061123b565b600060405180830381600087803b15801561091857600080fd5b505af115801561092c573d6000803e3d6000fd5b50505050600354471015610975576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161096c9061148a565b60405180910390fd5b60008373ffffffffffffffffffffffffffffffffffffffff168360405161099b906112a3565b60006040518083038185875af1925050503d80600081146109d8576040519150601f19603f3d011682016040523d82523d6000602084013e6109dd565b606091505b5050905080610a21576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a1890611304565b60405180910390fd5b50505050565b610a2f610b1a565b8060038190555050565b610a41610b1a565b80600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b610a8d610b1a565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603610afc576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610af39061151c565b60405180910390fd5b610b0581610b98565b50565b610b10610b1a565b8060028190555050565b610b22610c5c565b73ffffffffffffffffffffffffffffffffffffffff16610b406105ed565b73ffffffffffffffffffffffffffffffffffffffff1614610b96576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b8d90611588565b60405180910390fd5b565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600033905090565b6000604051905090565b600080fd5b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000610ca382610c78565b9050919050565b610cb381610c98565b8114610cbe57600080fd5b50565b600081359050610cd081610caa565b92915050565b6000819050919050565b610ce981610cd6565b8114610cf457600080fd5b50565b600081359050610d0681610ce0565b92915050565b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b610d5f82610d16565b810181811067ffffffffffffffff82111715610d7e57610d7d610d27565b5b80604052505050565b6000610d91610c64565b9050610d9d8282610d56565b919050565b600067ffffffffffffffff821115610dbd57610dbc610d27565b5b610dc682610d16565b9050602081019050919050565b82818337600083830152505050565b6000610df5610df084610da2565b610d87565b905082815260208101848484011115610e1157610e10610d11565b5b610e1c848285610dd3565b509392505050565b600082601f830112610e3957610e38610d0c565b5b8135610e49848260208601610de2565b91505092915050565b60008060008060808587031215610e6c57610e6b610c6e565b5b6000610e7a87828801610cc1565b9450506020610e8b87828801610cc1565b9350506040610e9c87828801610cf7565b925050606085013567ffffffffffffffff811115610ebd57610ebc610c73565b5b610ec987828801610e24565b91505092959194509250565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b610f0a81610ed5565b82525050565b6000602082019050610f256000830184610f01565b92915050565b610f3481610cd6565b82525050565b6000602082019050610f4f6000830184610f2b565b92915050565b610f5e81610c98565b82525050565b6000602082019050610f796000830184610f55565b92915050565b60008060408385031215610f9657610f95610c6e565b5b6000610fa485828601610cc1565b9250506020610fb585828601610cf7565b9150509250929050565b6000610fca82610c78565b9050919050565b610fda81610fbf565b8114610fe557600080fd5b50565b600081359050610ff781610fd1565b92915050565b6000806040838503121561101457611013610c6e565b5b600061102285828601610fe8565b925050602061103385828601610cf7565b9150509250929050565b60006020828403121561105357611052610c6e565b5b600061106184828501610cf7565b91505092915050565b60008060006060848603121561108357611082610c6e565b5b600061109186828701610fe8565b93505060206110a286828701610cf7565b92505060406110b386828701610cf7565b9150509250925092565b6000602082840312156110d3576110d2610c6e565b5b60006110e184828501610cc1565b91505092915050565b600082825260208201905092915050565b7f4e6f7420656e6f7567682057444f47452073656e742c20636865636b2070726960008201527f6365000000000000000000000000000000000000000000000000000000000000602082015250565b60006111576022836110ea565b9150611162826110fb565b604082019050919050565b600060208201905081810360008301526111868161114a565b9050919050565b60008151905061119c81610ce0565b92915050565b6000602082840312156111b8576111b7610c6e565b5b60006111c68482850161118d565b91505092915050565b7f4e6f7420656e6f756768204e46547320696e20746865206d61726b6574000000600082015250565b6000611205601d836110ea565b9150611210826111cf565b602082019050919050565b60006020820190508181036000830152611234816111f8565b9050919050565b60006060820190506112506000830186610f55565b61125d6020830185610f55565b61126a6040830184610f2b565b949350505050565b600081905092915050565b50565b600061128d600083611272565b91506112988261127d565b600082019050919050565b60006112ae82611280565b9150819050919050565b7f4661696c656420746f2073656e642057444f4745000000000000000000000000600082015250565b60006112ee6014836110ea565b91506112f9826112b8565b602082019050919050565b6000602082019050818103600083015261131d816112e1565b9050919050565b7f4e6f7420656e6f756768204e4654730000000000000000000000000000000000600082015250565b600061135a600f836110ea565b915061136582611324565b602082019050919050565b600060208201905081810360008301526113898161134d565b9050919050565b60008151905061139f81610caa565b92915050565b6000602082840312156113bb576113ba610c6e565b5b60006113c984828501611390565b91505092915050565b7f4e6f7420796f7572204e46540000000000000000000000000000000000000000600082015250565b6000611408600c836110ea565b9150611413826113d2565b602082019050919050565b60006020820190508181036000830152611437816113fb565b9050919050565b7f4e6f7420656e6f7567682057444f474500000000000000000000000000000000600082015250565b60006114746010836110ea565b915061147f8261143e565b602082019050919050565b600060208201905081810360008301526114a381611467565b9050919050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b60006115066026836110ea565b9150611511826114aa565b604082019050919050565b60006020820190508181036000830152611535816114f9565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b60006115726020836110ea565b915061157d8261153c565b602082019050919050565b600060208201905081810360008301526115a181611565565b905091905056fea26469706673582212206b6831ea96e302e8e79541a670968a2f2bc61a2eb403b0b76ce290117ae6710f64736f6c63430008110033