ETH Price: $1,906.34 (-0.21%)

Token

RarePorn (NFP)
 

Overview

Max Total Supply

484 NFP

Holders

74

Total Transfers

-

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
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:
NFTToken

Compiler Version
v0.8.7+commit.e28d00a7

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, MIT license

Contract Source Code (Solidity)

/**
 *Submitted for verification at Etherscan.io on 2021-09-20
*/

// SPDX-License-Identifier: MIT
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);
    }
}

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * [IMPORTANT]
     * ====
     * It is unsafe to assume that an address for which this function returns
     * false is an externally-owned account (EOA) and not a contract.
     *
     * Among others, `isContract` will return false for the following
     * types of addresses:
     *
     *  - an externally-owned account
     *  - a contract in construction
     *  - an address where a contract will be created
     *  - an address where a contract lived, but was destroyed
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize, which returns 0 for contracts in
        // construction, since the code is only stored at the end of the
        // constructor execution.

        uint256 size;
        assembly {
            size := extcodesize(account)
        }
        return size > 0;
    }

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

        (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);
            }
        }
    }
}

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

/**
 * @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() {
        _setOwner(_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 {
        _setOwner(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");
        _setOwner(newOwner);
    }

    function _setOwner(address newOwner) private {
        address oldOwner = _owner;
        _owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    /**
     * @dev Returns a token ID at a given `index` of all the tokens stored by the contract.
     * Use along with {totalSupply} to enumerate all tokens.
     */
    function tokenByIndex(uint256 index) external view returns (uint256);
}

interface IERC2981Royalties {
    /// @notice Called with the sale price to determine how much royalty
    //          is owed and to whom.
    /// @param _tokenId - the NFT asset queried for royalty information
    /// @param _value - the sale price of the NFT asset specified by _tokenId
    /// @return _receiver - address of who should be sent the royalty payment
    /// @return _royaltyAmount - the royalty payment amount for value sale price
    function royaltyInfo(uint256 _tokenId, uint256 _value)
        external
        view
        returns (address _receiver, uint256 _royaltyAmount);
}

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

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

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

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

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

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

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

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

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

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

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

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

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

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

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

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

    /**
     * @dev Base URI for computing {tokenURI}. 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 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 owner nor approved for all"
        );

        _approve(to, tokenId);
    }

    /**
     * @dev See {IERC721-getApproved}.
     */
    function getApproved(uint256 tokenId) public view virtual override returns (address) {
        require(_exists(tokenId), "ERC721: approved query for nonexistent token");

        return _tokenApprovals[tokenId];
    }

    /**
     * @dev See {IERC721-setApprovalForAll}.
     */
    function setApprovalForAll(address operator, bool approved) public virtual override {
        require(operator != _msgSender(), "ERC721: approve to caller");

        _operatorApprovals[_msgSender()][operator] = approved;
        emit ApprovalForAll(_msgSender(), operator, approved);
    }

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

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

        _transfer(from, to, tokenId);
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        _beforeTokenTransfer(from, to, tokenId);

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

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

        emit Transfer(from, to, tokenId);
    }

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

    /**
     * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address.
     * The call is not executed if the target address is not a contract.
     *
     * @param from address representing the previous owner of the given token ID
     * @param to target address that will receive the tokens
     * @param tokenId uint256 ID of the token to be transferred
     * @param _data bytes optional data to send along with the call
     * @return bool whether the call correctly returned the expected magic value
     */
    function _checkOnERC721Received(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) private returns (bool) {
        if (to.isContract()) {
            try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) {
                return retval == IERC721Receiver.onERC721Received.selector;
            } catch (bytes memory reason) {
                if (reason.length == 0) {
                    revert("ERC721: transfer to non ERC721Receiver implementer");
                } else {
                    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 ERC721 token with storage based token URI management.
 */
abstract contract ERC721URIStorage is ERC721 {
    using Strings for uint256;

    // Optional mapping for token URIs
    mapping(uint256 => string) private _tokenURIs;

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

        string memory _tokenURI = _tokenURIs[tokenId];
        string memory base = _baseURI();

        // If there is no base URI, return the token URI.
        if (bytes(base).length == 0) {
            return _tokenURI;
        }
        // If both are set, concatenate the baseURI and tokenURI (via abi.encodePacked).
        if (bytes(_tokenURI).length > 0) {
            return string(abi.encodePacked(base, _tokenURI));
        }

        return super.tokenURI(tokenId);
    }

    /**
     * @dev Sets `_tokenURI` as the tokenURI of `tokenId`.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function _setTokenURI(uint256 tokenId, string memory _tokenURI) internal virtual {
        require(_exists(tokenId), "ERC721URIStorage: URI set of nonexistent token");
        _tokenURIs[tokenId] = _tokenURI;
    }

    /**
     * @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 override {
        super._burn(tokenId);

        if (bytes(_tokenURIs[tokenId]).length != 0) {
            delete _tokenURIs[tokenId];
        }
    }
}

/**
 * @dev This implements an optional extension of {ERC721} defined in the EIP that adds
 * enumerability of all the token ids in the contract as well as all token ids owned by each
 * account.
 */
abstract contract ERC721Enumerable is ERC721, IERC721Enumerable {
    // Mapping from owner to list of owned token IDs
    mapping(address => mapping(uint256 => uint256)) private _ownedTokens;

    // Mapping from token ID to index of the owner tokens list
    mapping(uint256 => uint256) private _ownedTokensIndex;

    // Array with all token ids, used for enumeration
    uint256[] private _allTokens;

    // Mapping from token id to position in the allTokens array
    mapping(uint256 => uint256) private _allTokensIndex;

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

    /**
     * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}.
     */
    function tokenOfOwnerByIndex(address owner, uint256 index) public view virtual override returns (uint256) {
        require(index < ERC721.balanceOf(owner), "ERC721Enumerable: owner index out of bounds");
        return _ownedTokens[owner][index];
    }

    /**
     * @dev See {IERC721Enumerable-totalSupply}.
     */
    function totalSupply() public view virtual override returns (uint256) {
        return _allTokens.length;
    }

    /**
     * @dev See {IERC721Enumerable-tokenByIndex}.
     */
    function tokenByIndex(uint256 index) public view virtual override returns (uint256) {
        require(index < ERC721Enumerable.totalSupply(), "ERC721Enumerable: global index out of bounds");
        return _allTokens[index];
    }

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

        if (from == address(0)) {
            _addTokenToAllTokensEnumeration(tokenId);
        } else if (from != to) {
            _removeTokenFromOwnerEnumeration(from, tokenId);
        }
        if (to == address(0)) {
            _removeTokenFromAllTokensEnumeration(tokenId);
        } else if (to != from) {
            _addTokenToOwnerEnumeration(to, tokenId);
        }
    }

    /**
     * @dev Private function to add a token to this extension's ownership-tracking data structures.
     * @param to address representing the new owner of the given token ID
     * @param tokenId uint256 ID of the token to be added to the tokens list of the given address
     */
    function _addTokenToOwnerEnumeration(address to, uint256 tokenId) private {
        uint256 length = ERC721.balanceOf(to);
        _ownedTokens[to][length] = tokenId;
        _ownedTokensIndex[tokenId] = length;
    }

    /**
     * @dev Private function to add a token to this extension's token tracking data structures.
     * @param tokenId uint256 ID of the token to be added to the tokens list
     */
    function _addTokenToAllTokensEnumeration(uint256 tokenId) private {
        _allTokensIndex[tokenId] = _allTokens.length;
        _allTokens.push(tokenId);
    }

    /**
     * @dev Private function to remove a token from this extension's ownership-tracking data structures. Note that
     * while the token is not assigned a new owner, the `_ownedTokensIndex` mapping is _not_ updated: this allows for
     * gas optimizations e.g. when performing a transfer operation (avoiding double writes).
     * This has O(1) time complexity, but alters the order of the _ownedTokens array.
     * @param from address representing the previous owner of the given token ID
     * @param tokenId uint256 ID of the token to be removed from the tokens list of the given address
     */
    function _removeTokenFromOwnerEnumeration(address from, uint256 tokenId) private {
        // To prevent a gap in from's tokens array, we store the last token in the index of the token to delete, and
        // then delete the last slot (swap and pop).

        uint256 lastTokenIndex = ERC721.balanceOf(from) - 1;
        uint256 tokenIndex = _ownedTokensIndex[tokenId];

        // When the token to delete is the last token, the swap operation is unnecessary
        if (tokenIndex != lastTokenIndex) {
            uint256 lastTokenId = _ownedTokens[from][lastTokenIndex];

            _ownedTokens[from][tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token
            _ownedTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index
        }

        // This also deletes the contents at the last position of the array
        delete _ownedTokensIndex[tokenId];
        delete _ownedTokens[from][lastTokenIndex];
    }

    /**
     * @dev Private function to remove a token from this extension's token tracking data structures.
     * This has O(1) time complexity, but alters the order of the _allTokens array.
     * @param tokenId uint256 ID of the token to be removed from the tokens list
     */
    function _removeTokenFromAllTokensEnumeration(uint256 tokenId) private {
        // To prevent a gap in the tokens array, we store the last token in the index of the token to delete, and
        // then delete the last slot (swap and pop).

        uint256 lastTokenIndex = _allTokens.length - 1;
        uint256 tokenIndex = _allTokensIndex[tokenId];

        // When the token to delete is the last token, the swap operation is unnecessary. However, since this occurs so
        // rarely (when the last minted token is burnt) that we still do the swap here to avoid the gas cost of adding
        // an 'if' statement (like in _removeTokenFromOwnerEnumeration)
        uint256 lastTokenId = _allTokens[lastTokenIndex];

        _allTokens[tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token
        _allTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index

        // This also deletes the contents at the last position of the array
        delete _allTokensIndex[tokenId];
        _allTokens.pop();
    }
}

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @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 `recipient`.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transfer(address recipient, 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 `sender` to `recipient` 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 sender,
        address recipient,
        uint256 amount
    ) external returns (bool);

    /**
     * @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 Interface for the optional metadata functions from the ERC20 standard.
 *
 * _Available since v4.1._
 */
interface IERC20Metadata is IERC20 {
    /**
     * @dev Returns the name of the token.
     */
    function name() external view returns (string memory);

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

    /**
     * @dev Returns the decimals places of the token.
     */
    function decimals() external view returns (uint8);
}

/**
 * @dev Implementation of the {IERC20} interface.
 *
 * This implementation is agnostic to the way tokens are created. This means
 * that a supply mechanism has to be added in a derived contract using {_mint}.
 * For a generic mechanism see {ERC20PresetMinterPauser}.
 *
 * TIP: For a detailed writeup see our guide
 * https://forum.zeppelin.solutions/t/how-to-implement-erc20-supply-mechanisms/226[How
 * to implement supply mechanisms].
 *
 * We have followed general OpenZeppelin Contracts guidelines: functions revert
 * instead returning `false` on failure. This behavior is nonetheless
 * conventional and does not conflict with the expectations of ERC20
 * applications.
 *
 * Additionally, an {Approval} event is emitted on calls to {transferFrom}.
 * This allows applications to reconstruct the allowance for all accounts just
 * by listening to said events. Other implementations of the EIP may not emit
 * these events, as it isn't required by the specification.
 *
 * Finally, the non-standard {decreaseAllowance} and {increaseAllowance}
 * functions have been added to mitigate the well-known issues around setting
 * allowances. See {IERC20-approve}.
 */
contract ERC20 is Context, IERC20, IERC20Metadata {
    mapping(address => uint256) private _balances;

    mapping(address => mapping(address => uint256)) private _allowances;

    uint256 private _totalSupply;

    string private _name;
    string private _symbol;

    /**
     * @dev Sets the values for {name} and {symbol}.
     *
     * The default value of {decimals} is 18. To select a different value for
     * {decimals} you should overload it.
     *
     * All two of these values are immutable: they can only be set once during
     * construction.
     */
    constructor(string memory name_, string memory symbol_) {
        _name = name_;
        _symbol = symbol_;
    }

    /**
     * @dev Returns the name of the token.
     */
    function name() public view virtual override returns (string memory) {
        return _name;
    }

    /**
     * @dev Returns the symbol of the token, usually a shorter version of the
     * name.
     */
    function symbol() public view virtual override returns (string memory) {
        return _symbol;
    }

    /**
     * @dev Returns the number of decimals used to get its user representation.
     * For example, if `decimals` equals `2`, a balance of `505` tokens should
     * be displayed to a user as `5.05` (`505 / 10 ** 2`).
     *
     * Tokens usually opt for a value of 18, imitating the relationship between
     * Ether and Wei. This is the value {ERC20} uses, unless this function is
     * overridden;
     *
     * NOTE: This information is only used for _display_ purposes: it in
     * no way affects any of the arithmetic of the contract, including
     * {IERC20-balanceOf} and {IERC20-transfer}.
     */
    function decimals() public view virtual override returns (uint8) {
        return 18;
    }

    /**
     * @dev See {IERC20-totalSupply}.
     */
    function totalSupply() public view virtual override returns (uint256) {
        return _totalSupply;
    }

    /**
     * @dev See {IERC20-balanceOf}.
     */
    function balanceOf(address account) public view virtual override returns (uint256) {
        return _balances[account];
    }

    /**
     * @dev See {IERC20-transfer}.
     *
     * Requirements:
     *
     * - `recipient` cannot be the zero address.
     * - the caller must have a balance of at least `amount`.
     */
    function transfer(address recipient, uint256 amount) public virtual override returns (bool) {
        _transfer(_msgSender(), recipient, amount);
        return true;
    }

    /**
     * @dev See {IERC20-allowance}.
     */
    function allowance(address owner, address spender) public view virtual override returns (uint256) {
        return _allowances[owner][spender];
    }

    /**
     * @dev See {IERC20-approve}.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     */
    function approve(address spender, uint256 amount) public virtual override returns (bool) {
        _approve(_msgSender(), spender, amount);
        return true;
    }

    /**
     * @dev See {IERC20-transferFrom}.
     *
     * Emits an {Approval} event indicating the updated allowance. This is not
     * required by the EIP. See the note at the beginning of {ERC20}.
     *
     * Requirements:
     *
     * - `sender` and `recipient` cannot be the zero address.
     * - `sender` must have a balance of at least `amount`.
     * - the caller must have allowance for ``sender``'s tokens of at least
     * `amount`.
     */
    function transferFrom(
        address sender,
        address recipient,
        uint256 amount
    ) public virtual override returns (bool) {
        _transfer(sender, recipient, amount);

        uint256 currentAllowance = _allowances[sender][_msgSender()];
        require(currentAllowance >= amount, "ERC20: transfer amount exceeds allowance");
        unchecked {
            _approve(sender, _msgSender(), currentAllowance - amount);
        }

        return true;
    }

    /**
     * @dev Atomically increases the allowance granted to `spender` by the caller.
     *
     * This is an alternative to {approve} that can be used as a mitigation for
     * problems described in {IERC20-approve}.
     *
     * Emits an {Approval} event indicating the updated allowance.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     */
    function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) {
        _approve(_msgSender(), spender, _allowances[_msgSender()][spender] + addedValue);
        return true;
    }

    /**
     * @dev Atomically decreases the allowance granted to `spender` by the caller.
     *
     * This is an alternative to {approve} that can be used as a mitigation for
     * problems described in {IERC20-approve}.
     *
     * Emits an {Approval} event indicating the updated allowance.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     * - `spender` must have allowance for the caller of at least
     * `subtractedValue`.
     */
    function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) {
        uint256 currentAllowance = _allowances[_msgSender()][spender];
        require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero");
        unchecked {
            _approve(_msgSender(), spender, currentAllowance - subtractedValue);
        }

        return true;
    }

    /**
     * @dev Moves `amount` of tokens from `sender` to `recipient`.
     *
     * This internal function is equivalent to {transfer}, and can be used to
     * e.g. implement automatic token fees, slashing mechanisms, etc.
     *
     * Emits a {Transfer} event.
     *
     * Requirements:
     *
     * - `sender` cannot be the zero address.
     * - `recipient` cannot be the zero address.
     * - `sender` must have a balance of at least `amount`.
     */
    function _transfer(
        address sender,
        address recipient,
        uint256 amount
    ) internal virtual {
        require(sender != address(0), "ERC20: transfer from the zero address");
        require(recipient != address(0), "ERC20: transfer to the zero address");

        _beforeTokenTransfer(sender, recipient, amount);

        uint256 senderBalance = _balances[sender];
        require(senderBalance >= amount, "ERC20: transfer amount exceeds balance");
        unchecked {
            _balances[sender] = senderBalance - amount;
        }
        _balances[recipient] += amount;

        emit Transfer(sender, recipient, amount);

        _afterTokenTransfer(sender, recipient, amount);
    }

    /** @dev Creates `amount` tokens and assigns them to `account`, increasing
     * the total supply.
     *
     * Emits a {Transfer} event with `from` set to the zero address.
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     */
    function _mint(address account, uint256 amount) internal virtual {
        require(account != address(0), "ERC20: mint to the zero address");

        _beforeTokenTransfer(address(0), account, amount);

        _totalSupply += amount;
        _balances[account] += amount;
        emit Transfer(address(0), account, amount);

        _afterTokenTransfer(address(0), account, amount);
    }

    /**
     * @dev Destroys `amount` tokens from `account`, reducing the
     * total supply.
     *
     * Emits a {Transfer} event with `to` set to the zero address.
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     * - `account` must have at least `amount` tokens.
     */
    function _burn(address account, uint256 amount) internal virtual {
        require(account != address(0), "ERC20: burn from the zero address");

        _beforeTokenTransfer(account, address(0), amount);

        uint256 accountBalance = _balances[account];
        require(accountBalance >= amount, "ERC20: burn amount exceeds balance");
        unchecked {
            _balances[account] = accountBalance - amount;
        }
        _totalSupply -= amount;

        emit Transfer(account, address(0), amount);

        _afterTokenTransfer(account, address(0), amount);
    }

    /**
     * @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens.
     *
     * This internal function is equivalent to `approve`, and can be used to
     * e.g. set automatic allowances for certain subsystems, etc.
     *
     * Emits an {Approval} event.
     *
     * Requirements:
     *
     * - `owner` cannot be the zero address.
     * - `spender` cannot be the zero address.
     */
    function _approve(
        address owner,
        address spender,
        uint256 amount
    ) internal virtual {
        require(owner != address(0), "ERC20: approve from the zero address");
        require(spender != address(0), "ERC20: approve to the zero address");

        _allowances[owner][spender] = amount;
        emit Approval(owner, spender, amount);
    }

    /**
     * @dev Hook that is called before any transfer of tokens. This includes
     * minting and burning.
     *
     * Calling conditions:
     *
     * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens
     * will be transferred to `to`.
     * - when `from` is zero, `amount` tokens will be minted for `to`.
     * - when `to` is zero, `amount` of ``from``'s tokens 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 amount
    ) 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, `amount` of ``from``'s tokens
     * has been transferred to `to`.
     * - when `from` is zero, `amount` tokens have been minted for `to`.
     * - when `to` is zero, `amount` of ``from``'s tokens have been 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 _afterTokenTransfer(
        address from,
        address to,
        uint256 amount
    ) internal virtual {}
}

contract NFTToken is ERC721, ERC721Enumerable, ERC721URIStorage, Ownable, IERC2981Royalties {
    struct Royalty {
        address recipient;
        uint256 value;
    }
    string internal baseUri;
    address[] private _apps;
    mapping(uint256 => Royalty) internal _royalties;
    mapping(address => bool) internal _isApp;

    constructor(string memory _baseURI_) ERC721("RarePorn", "NFP") {
        setBaseURI(_baseURI_);
    }

    modifier onlyApp() {
        require(_isApp[_msgSender()], "Caller is not the app");
        _;
    }

    function supportsInterface(bytes4 interfaceId)
        public
        view
        override(ERC721, ERC721Enumerable)
        returns (bool)
    {
        return interfaceId == type(IERC2981Royalties).interfaceId
            || super.supportsInterface(interfaceId);
    }

    function getAllApps() public view returns(address[] memory) {
        return _apps;
    }

    function isApp(address _app) public view returns(bool) {
        return _isApp[_app];
    }

    /// @dev Sets token royalties
    /// @param id the token id fir which we register the royalties
    /// @param recipient recipient of the royalties
    /// @param value percentage (using 2 decimals - 10000 = 100, 0 = 0)
    function _setTokenRoyalty(
        uint id,
        address recipient,
        uint256 value
    ) internal {
        require(value <= 10000, 'ERC2981Royalties: Too high');

        _royalties[id] = Royalty(recipient, value);
    }

    /// @notice Called with the sale price to determine how much royalty is owed and to whom.
    /// @param _tokenId - the NFT asset queried for royalty information
    /// @param _value - the sale price of the NFT asset specified by _tokenId
    /// @return _receiver - address of who should be sent the royalty payment
    /// @return _royaltyAmount - the royalty payment amount for value sale price
    function royaltyInfo(uint256 _tokenId, uint256 _value)
        external
        override
        view
        returns (address _receiver, uint256 _royaltyAmount)
    {
        Royalty memory royalty = _royalties[_tokenId];
        return (royalty.recipient, (_value * royalty.value) / 10000);
    }

    function mint(uint tokenId, address royaltyRecipient, uint royaltyPercentage, string memory _uri) public {
        _safeMint(msg.sender, tokenId);
        _setTokenURI(tokenId, _uri);
        _setTokenRoyalty(tokenId, royaltyRecipient, royaltyPercentage);
    }

    function mintForSomeoneAndBuy(uint tokenId, address royaltyRecipient, uint royaltyPercentage, string memory _uri, address buyer) public onlyApp {
        _safeMint(royaltyRecipient, tokenId);
        _setTokenURI(tokenId, _uri);
        _setTokenRoyalty(tokenId, royaltyRecipient, royaltyPercentage);
        _safeTransfer(royaltyRecipient, buyer, tokenId, "");
    }

    /**
     * @dev Base URI for computing {tokenURI}. Empty by default, can be overriden
     * in child contracts.
     */
    function _baseURI() internal view virtual override returns (string memory) {
        return baseUri;
    }

    function setBaseURI(string memory _baseUri) public onlyOwner {
        require(bytes(_baseUri).length > 0);
        baseUri = _baseUri;
    }

    function addApp(address _app) public onlyOwner {
        require(!_isApp[_app], "Address already added as app");
        _apps.push(_app);
        _isApp[_app] = true;
    }

    function removeApp(address _app) public onlyOwner {
        require(_isApp[_app], "Address is not added as app");
        _isApp[_app] = false;
        for (uint256 i = 0; i < _apps.length; i++) {
            if (_apps[i] == _app) {
                _apps[i] = _apps[_apps.length - 1];
                _apps.pop();
                break;
            }
        }
    }

    function _beforeTokenTransfer(address from, address to, uint256 tokenId) internal override(ERC721, ERC721Enumerable)
    {
        super._beforeTokenTransfer(from, to, tokenId);
    }

    function _burn(uint256 tokenId) internal override(ERC721, ERC721URIStorage) {
        super._burn(tokenId);
    }

    function tokenURI(uint256 tokenId) public view override(ERC721, ERC721URIStorage) returns (string memory)
    {
        return super.tokenURI(tokenId);
    }
}

Contract Security Audit

Contract ABI

API
[{"inputs":[{"internalType":"string","name":"_baseURI_","type":"string"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"address","name":"_app","type":"address"}],"name":"addApp","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getAllApps","outputs":[{"internalType":"address[]","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":[{"internalType":"address","name":"_app","type":"address"}],"name":"isApp","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"address","name":"royaltyRecipient","type":"address"},{"internalType":"uint256","name":"royaltyPercentage","type":"uint256"},{"internalType":"string","name":"_uri","type":"string"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"address","name":"royaltyRecipient","type":"address"},{"internalType":"uint256","name":"royaltyPercentage","type":"uint256"},{"internalType":"string","name":"_uri","type":"string"},{"internalType":"address","name":"buyer","type":"address"}],"name":"mintForSomeoneAndBuy","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_app","type":"address"}],"name":"removeApp","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"uint256","name":"_value","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":"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":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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"}]

60806040523480156200001157600080fd5b50604051620027ec380380620027ec833981016040819052620000349162000247565b60408051808201825260088152672930b932a837b93760c11b60208083019182528351808501909452600384526204e46560ec1b9084015281519192916200007f91600091620001a1565b50805162000095906001906020840190620001a1565b505050620000b2620000ac620000c460201b60201c565b620000c8565b620000bd816200011a565b5062000376565b3390565b600b80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b600b546001600160a01b03163314620001795760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640160405180910390fd5b60008151116200018857600080fd5b80516200019d90600c906020840190620001a1565b5050565b828054620001af9062000323565b90600052602060002090601f016020900481019282620001d357600085556200021e565b82601f10620001ee57805160ff19168380011785556200021e565b828001600101855582156200021e579182015b828111156200021e57825182559160200191906001019062000201565b506200022c92915062000230565b5090565b5b808211156200022c576000815560010162000231565b600060208083850312156200025b57600080fd5b82516001600160401b03808211156200027357600080fd5b818501915085601f8301126200028857600080fd5b8151818111156200029d576200029d62000360565b604051601f8201601f19908116603f01168101908382118183101715620002c857620002c862000360565b816040528281528886848701011115620002e157600080fd5b600093505b82841015620003055784840186015181850187015292850192620002e6565b82841115620003175760008684830101525b98975050505050505050565b600181811c908216806200033857607f821691505b602082108114156200035a57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052604160045260246000fd5b61246680620003866000396000f3fe608060405234801561001057600080fd5b50600436106101a95760003560e01c806370a08231116100f9578063b4394aa611610097578063d0c6fdb711610071578063d0c6fdb7146103b5578063e985e9c5146103c8578063f2fde38b14610404578063f98c6bef1461041757600080fd5b8063b4394aa61461037a578063b88d4fde1461038f578063c87b56dd146103a257600080fd5b806393ac9b16116100d357806393ac9b161461033957806395d89b411461034c578063a22cb46514610354578063af131f501461036757600080fd5b806370a082311461030d578063715018a6146103205780638da5cb5b1461032857600080fd5b80632a55205a1161016657806342842e0e1161014057806342842e0e146102c15780634f6ccce7146102d457806355f804b3146102e75780636352211e146102fa57600080fd5b80632a55205a146102505780632f745c59146102825780633ca3ad4e1461029557600080fd5b806301ffc9a7146101ae57806306fdde03146101d6578063081812fc146101eb578063095ea7b31461021657806318160ddd1461022b57806323b872dd1461023d575b600080fd5b6101c16101bc366004611f73565b61042a565b60405190151581526020015b60405180910390f35b6101de610455565b6040516101cd91906121c9565b6101fe6101f9366004611fe2565b6104e7565b6040516001600160a01b0390911681526020016101cd565b610229610224366004611f49565b610574565b005b6008545b6040519081526020016101cd565b61022961024b366004611e55565b61068a565b61026361025e3660046120c2565b6106bb565b604080516001600160a01b0390931683526020830191909152016101cd565b61022f610290366004611f49565b610714565b6101c16102a3366004611e07565b6001600160a01b03166000908152600f602052604090205460ff1690565b6102296102cf366004611e55565b6107aa565b61022f6102e2366004611fe2565b6107c5565b6102296102f5366004611fad565b610858565b6101fe610308366004611fe2565b6108a7565b61022f61031b366004611e07565b61091e565b6102296109a5565b600b546001600160a01b03166101fe565b610229610347366004611e07565b6109db565b6101de610ad5565b610229610362366004611f0d565b610ae4565b610229610375366004611ffb565b610ba9565b610382610bce565b6040516101cd919061217c565b61022961039d366004611e91565b610c2f565b6101de6103b0366004611fe2565b610c61565b6102296103c3366004611e07565b610c6c565b6101c16103d6366004611e22565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b610229610412366004611e07565b610e24565b610229610425366004612050565b610ebf565b60006001600160e01b0319821663152a902d60e11b148061044f575061044f82610f57565b92915050565b60606000805461046490612342565b80601f016020809104026020016040519081016040528092919081815260200182805461049090612342565b80156104dd5780601f106104b2576101008083540402835291602001916104dd565b820191906000526020600020905b8154815290600101906020018083116104c057829003601f168201915b5050505050905090565b60006104f282610f7c565b6105585760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b600061057f826108a7565b9050806001600160a01b0316836001600160a01b031614156105ed5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b606482015260840161054f565b336001600160a01b0382161480610609575061060981336103d6565b61067b5760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000606482015260840161054f565b6106858383610f99565b505050565b6106943382611007565b6106b05760405162461bcd60e51b815260040161054f90612263565b6106858383836110f1565b6000828152600e60209081526040808320815180830190925280546001600160a01b03168083526001909101549282018390528392612710906106fe90876122e0565b61070891906122cc565b92509250509250929050565b600061071f8361091e565b82106107815760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b606482015260840161054f565b506001600160a01b03919091166000908152600660209081526040808320938352929052205490565b61068583838360405180602001604052806000815250610c2f565b60006107d060085490565b82106108335760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b606482015260840161054f565b60088281548110610846576108466123ee565b90600052602060002001549050919050565b600b546001600160a01b031633146108825760405162461bcd60e51b815260040161054f9061222e565b600081511161089057600080fd5b80516108a390600c906020840190611cbc565b5050565b6000818152600260205260408120546001600160a01b03168061044f5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b606482015260840161054f565b60006001600160a01b0382166109895760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b606482015260840161054f565b506001600160a01b031660009081526003602052604090205490565b600b546001600160a01b031633146109cf5760405162461bcd60e51b815260040161054f9061222e565b6109d9600061129c565b565b600b546001600160a01b03163314610a055760405162461bcd60e51b815260040161054f9061222e565b6001600160a01b0381166000908152600f602052604090205460ff1615610a6e5760405162461bcd60e51b815260206004820152601c60248201527f4164647265737320616c72656164792061646465642061732061707000000000604482015260640161054f565b600d805460018181019092557fd7b6990105719101dabeb77144f2a3385c8033acd3af97e9423a695e81ad1eb50180546001600160a01b039093166001600160a01b0319909316831790556000918252600f6020526040909120805460ff19169091179055565b60606001805461046490612342565b6001600160a01b038216331415610b3d5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c657200000000000000604482015260640161054f565b3360008181526005602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b610bb333856112ee565b610bbd8482611308565b610bc8848484611393565b50505050565b6060600d8054806020026020016040519081016040528092919081815260200182805480156104dd57602002820191906000526020600020905b81546001600160a01b03168152600190910190602001808311610c08575050505050905090565b610c393383611007565b610c555760405162461bcd60e51b815260040161054f90612263565b610bc88484848461142d565b606061044f82611460565b600b546001600160a01b03163314610c965760405162461bcd60e51b815260040161054f9061222e565b6001600160a01b0381166000908152600f602052604090205460ff16610cfe5760405162461bcd60e51b815260206004820152601b60248201527f41646472657373206973206e6f74206164646564206173206170700000000000604482015260640161054f565b6001600160a01b0381166000908152600f60205260408120805460ff191690555b600d548110156108a357816001600160a01b0316600d8281548110610d4657610d466123ee565b6000918252602090912001546001600160a01b03161415610e1257600d8054610d71906001906122ff565b81548110610d8157610d816123ee565b600091825260209091200154600d80546001600160a01b039092169183908110610dad57610dad6123ee565b9060005260206000200160006101000a8154816001600160a01b0302191690836001600160a01b03160217905550600d805480610dec57610dec6123d8565b600082815260209020810160001990810180546001600160a01b03191690550190555050565b80610e1c8161237d565b915050610d1f565b600b546001600160a01b03163314610e4e5760405162461bcd60e51b815260040161054f9061222e565b6001600160a01b038116610eb35760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161054f565b610ebc8161129c565b50565b336000908152600f602052604090205460ff16610f165760405162461bcd60e51b8152602060048201526015602482015274043616c6c6572206973206e6f74207468652061707605c1b604482015260640161054f565b610f2084866112ee565b610f2a8583611308565b610f35858585611393565b610f508482876040518060200160405280600081525061142d565b5050505050565b60006001600160e01b0319821663780e9d6360e01b148061044f575061044f826115c2565b6000908152600260205260409020546001600160a01b0316151590565b600081815260046020526040902080546001600160a01b0319166001600160a01b0384169081179091558190610fce826108a7565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b600061101282610f7c565b6110735760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b606482015260840161054f565b600061107e836108a7565b9050806001600160a01b0316846001600160a01b031614806110b95750836001600160a01b03166110ae846104e7565b6001600160a01b0316145b806110e957506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b0316611104826108a7565b6001600160a01b03161461116c5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b606482015260840161054f565b6001600160a01b0382166111ce5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b606482015260840161054f565b6111d9838383611612565b6111e4600082610f99565b6001600160a01b038316600090815260036020526040812080546001929061120d9084906122ff565b90915550506001600160a01b038216600090815260036020526040812080546001929061123b9084906122b4565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b600b80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6108a382826040518060200160405280600081525061161d565b61131182610f7c565b6113745760405162461bcd60e51b815260206004820152602e60248201527f45524337323155524953746f726167653a2055524920736574206f66206e6f6e60448201526d32bc34b9ba32b73a103a37b5b2b760911b606482015260840161054f565b6000828152600a60209081526040909120825161068592840190611cbc565b6127108111156113e55760405162461bcd60e51b815260206004820152601a60248201527f45524332393831526f79616c746965733a20546f6f2068696768000000000000604482015260640161054f565b6040805180820182526001600160a01b03938416815260208082019384526000958652600e90529320925183546001600160a01b031916921691909117825551600190910155565b6114388484846110f1565b61144484848484611650565b610bc85760405162461bcd60e51b815260040161054f906121dc565b606061146b82610f7c565b6114d15760405162461bcd60e51b815260206004820152603160248201527f45524337323155524953746f726167653a2055524920717565727920666f72206044820152703737b732bc34b9ba32b73a103a37b5b2b760791b606482015260840161054f565b6000828152600a6020526040812080546114ea90612342565b80601f016020809104026020016040519081016040528092919081815260200182805461151690612342565b80156115635780601f1061153857610100808354040283529160200191611563565b820191906000526020600020905b81548152906001019060200180831161154657829003601f168201915b50505050509050600061157461175d565b9050805160001415611587575092915050565b8151156115b95780826040516020016115a1929190612110565b60405160208183030381529060405292505050919050565b6110e98461176c565b60006001600160e01b031982166380ac58cd60e01b14806115f357506001600160e01b03198216635b5e139f60e01b145b8061044f57506301ffc9a760e01b6001600160e01b031983161461044f565b610685838383611837565b61162783836118ef565b6116346000848484611650565b6106855760405162461bcd60e51b815260040161054f906121dc565b60006001600160a01b0384163b1561175257604051630a85bd0160e11b81526001600160a01b0385169063150b7a029061169490339089908890889060040161213f565b602060405180830381600087803b1580156116ae57600080fd5b505af19250505080156116de575060408051601f3d908101601f191682019092526116db91810190611f90565b60015b611738573d80801561170c576040519150601f19603f3d011682016040523d82523d6000602084013e611711565b606091505b5080516117305760405162461bcd60e51b815260040161054f906121dc565b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490506110e9565b506001949350505050565b6060600c805461046490612342565b606061177782610f7c565b6117db5760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b606482015260840161054f565b60006117e561175d565b905060008151116118055760405180602001604052806000815250611830565b8061180f84611a2e565b604051602001611820929190612110565b6040516020818303038152906040525b9392505050565b6001600160a01b0383166118925761188d81600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b6118b5565b816001600160a01b0316836001600160a01b0316146118b5576118b58382611b2c565b6001600160a01b0382166118cc5761068581611bc9565b826001600160a01b0316826001600160a01b031614610685576106858282611c78565b6001600160a01b0382166119455760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373604482015260640161054f565b61194e81610f7c565b1561199b5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000604482015260640161054f565b6119a760008383611612565b6001600160a01b03821660009081526003602052604081208054600192906119d09084906122b4565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b606081611a525750506040805180820190915260018152600360fc1b602082015290565b8160005b8115611a7c5780611a668161237d565b9150611a759050600a836122cc565b9150611a56565b60008167ffffffffffffffff811115611a9757611a97612404565b6040519080825280601f01601f191660200182016040528015611ac1576020820181803683370190505b5090505b84156110e957611ad66001836122ff565b9150611ae3600a86612398565b611aee9060306122b4565b60f81b818381518110611b0357611b036123ee565b60200101906001600160f81b031916908160001a905350611b25600a866122cc565b9450611ac5565b60006001611b398461091e565b611b4391906122ff565b600083815260076020526040902054909150808214611b96576001600160a01b03841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b5060009182526007602090815260408084208490556001600160a01b039094168352600681528383209183525290812055565b600854600090611bdb906001906122ff565b60008381526009602052604081205460088054939450909284908110611c0357611c036123ee565b906000526020600020015490508060088381548110611c2457611c246123ee565b6000918252602080832090910192909255828152600990915260408082208490558582528120556008805480611c5c57611c5c6123d8565b6001900381819060005260206000200160009055905550505050565b6000611c838361091e565b6001600160a01b039093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b828054611cc890612342565b90600052602060002090601f016020900481019282611cea5760008555611d30565b82601f10611d0357805160ff1916838001178555611d30565b82800160010185558215611d30579182015b82811115611d30578251825591602001919060010190611d15565b50611d3c929150611d40565b5090565b5b80821115611d3c5760008155600101611d41565b600067ffffffffffffffff80841115611d7057611d70612404565b604051601f8501601f19908116603f01168101908282118183101715611d9857611d98612404565b81604052809350858152868686011115611db157600080fd5b858560208301376000602087830101525050509392505050565b80356001600160a01b0381168114611de257600080fd5b919050565b600082601f830112611df857600080fd5b61183083833560208501611d55565b600060208284031215611e1957600080fd5b61183082611dcb565b60008060408385031215611e3557600080fd5b611e3e83611dcb565b9150611e4c60208401611dcb565b90509250929050565b600080600060608486031215611e6a57600080fd5b611e7384611dcb565b9250611e8160208501611dcb565b9150604084013590509250925092565b60008060008060808587031215611ea757600080fd5b611eb085611dcb565b9350611ebe60208601611dcb565b925060408501359150606085013567ffffffffffffffff811115611ee157600080fd5b8501601f81018713611ef257600080fd5b611f0187823560208401611d55565b91505092959194509250565b60008060408385031215611f2057600080fd5b611f2983611dcb565b915060208301358015158114611f3e57600080fd5b809150509250929050565b60008060408385031215611f5c57600080fd5b611f6583611dcb565b946020939093013593505050565b600060208284031215611f8557600080fd5b81356118308161241a565b600060208284031215611fa257600080fd5b81516118308161241a565b600060208284031215611fbf57600080fd5b813567ffffffffffffffff811115611fd657600080fd5b6110e984828501611de7565b600060208284031215611ff457600080fd5b5035919050565b6000806000806080858703121561201157600080fd5b8435935061202160208601611dcb565b925060408501359150606085013567ffffffffffffffff81111561204457600080fd5b611f0187828801611de7565b600080600080600060a0868803121561206857600080fd5b8535945061207860208701611dcb565b935060408601359250606086013567ffffffffffffffff81111561209b57600080fd5b6120a788828901611de7565b9250506120b660808701611dcb565b90509295509295909350565b600080604083850312156120d557600080fd5b50508035926020909101359150565b600081518084526120fc816020860160208601612316565b601f01601f19169290920160200192915050565b60008351612122818460208801612316565b835190830190612136818360208801612316565b01949350505050565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090612172908301846120e4565b9695505050505050565b6020808252825182820181905260009190848201906040850190845b818110156121bd5783516001600160a01b031683529284019291840191600101612198565b50909695505050505050565b60208152600061183060208301846120e4565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b600082198211156122c7576122c76123ac565b500190565b6000826122db576122db6123c2565b500490565b60008160001904831182151516156122fa576122fa6123ac565b500290565b600082821015612311576123116123ac565b500390565b60005b83811015612331578181015183820152602001612319565b83811115610bc85750506000910152565b600181811c9082168061235657607f821691505b6020821081141561237757634e487b7160e01b600052602260045260246000fd5b50919050565b6000600019821415612391576123916123ac565b5060010190565b6000826123a7576123a76123c2565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052603160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160e01b031981168114610ebc57600080fdfea26469706673582212202009a3dd7e955da5692ae4fb5485e26fdbcfded41e18e62d5d4682924093a5ab64736f6c6343000807003300000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000005706f6b6d69000000000000000000000000000000000000000000000000000000

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106101a95760003560e01c806370a08231116100f9578063b4394aa611610097578063d0c6fdb711610071578063d0c6fdb7146103b5578063e985e9c5146103c8578063f2fde38b14610404578063f98c6bef1461041757600080fd5b8063b4394aa61461037a578063b88d4fde1461038f578063c87b56dd146103a257600080fd5b806393ac9b16116100d357806393ac9b161461033957806395d89b411461034c578063a22cb46514610354578063af131f501461036757600080fd5b806370a082311461030d578063715018a6146103205780638da5cb5b1461032857600080fd5b80632a55205a1161016657806342842e0e1161014057806342842e0e146102c15780634f6ccce7146102d457806355f804b3146102e75780636352211e146102fa57600080fd5b80632a55205a146102505780632f745c59146102825780633ca3ad4e1461029557600080fd5b806301ffc9a7146101ae57806306fdde03146101d6578063081812fc146101eb578063095ea7b31461021657806318160ddd1461022b57806323b872dd1461023d575b600080fd5b6101c16101bc366004611f73565b61042a565b60405190151581526020015b60405180910390f35b6101de610455565b6040516101cd91906121c9565b6101fe6101f9366004611fe2565b6104e7565b6040516001600160a01b0390911681526020016101cd565b610229610224366004611f49565b610574565b005b6008545b6040519081526020016101cd565b61022961024b366004611e55565b61068a565b61026361025e3660046120c2565b6106bb565b604080516001600160a01b0390931683526020830191909152016101cd565b61022f610290366004611f49565b610714565b6101c16102a3366004611e07565b6001600160a01b03166000908152600f602052604090205460ff1690565b6102296102cf366004611e55565b6107aa565b61022f6102e2366004611fe2565b6107c5565b6102296102f5366004611fad565b610858565b6101fe610308366004611fe2565b6108a7565b61022f61031b366004611e07565b61091e565b6102296109a5565b600b546001600160a01b03166101fe565b610229610347366004611e07565b6109db565b6101de610ad5565b610229610362366004611f0d565b610ae4565b610229610375366004611ffb565b610ba9565b610382610bce565b6040516101cd919061217c565b61022961039d366004611e91565b610c2f565b6101de6103b0366004611fe2565b610c61565b6102296103c3366004611e07565b610c6c565b6101c16103d6366004611e22565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b610229610412366004611e07565b610e24565b610229610425366004612050565b610ebf565b60006001600160e01b0319821663152a902d60e11b148061044f575061044f82610f57565b92915050565b60606000805461046490612342565b80601f016020809104026020016040519081016040528092919081815260200182805461049090612342565b80156104dd5780601f106104b2576101008083540402835291602001916104dd565b820191906000526020600020905b8154815290600101906020018083116104c057829003601f168201915b5050505050905090565b60006104f282610f7c565b6105585760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b600061057f826108a7565b9050806001600160a01b0316836001600160a01b031614156105ed5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b606482015260840161054f565b336001600160a01b0382161480610609575061060981336103d6565b61067b5760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000606482015260840161054f565b6106858383610f99565b505050565b6106943382611007565b6106b05760405162461bcd60e51b815260040161054f90612263565b6106858383836110f1565b6000828152600e60209081526040808320815180830190925280546001600160a01b03168083526001909101549282018390528392612710906106fe90876122e0565b61070891906122cc565b92509250509250929050565b600061071f8361091e565b82106107815760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b606482015260840161054f565b506001600160a01b03919091166000908152600660209081526040808320938352929052205490565b61068583838360405180602001604052806000815250610c2f565b60006107d060085490565b82106108335760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b606482015260840161054f565b60088281548110610846576108466123ee565b90600052602060002001549050919050565b600b546001600160a01b031633146108825760405162461bcd60e51b815260040161054f9061222e565b600081511161089057600080fd5b80516108a390600c906020840190611cbc565b5050565b6000818152600260205260408120546001600160a01b03168061044f5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b606482015260840161054f565b60006001600160a01b0382166109895760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b606482015260840161054f565b506001600160a01b031660009081526003602052604090205490565b600b546001600160a01b031633146109cf5760405162461bcd60e51b815260040161054f9061222e565b6109d9600061129c565b565b600b546001600160a01b03163314610a055760405162461bcd60e51b815260040161054f9061222e565b6001600160a01b0381166000908152600f602052604090205460ff1615610a6e5760405162461bcd60e51b815260206004820152601c60248201527f4164647265737320616c72656164792061646465642061732061707000000000604482015260640161054f565b600d805460018181019092557fd7b6990105719101dabeb77144f2a3385c8033acd3af97e9423a695e81ad1eb50180546001600160a01b039093166001600160a01b0319909316831790556000918252600f6020526040909120805460ff19169091179055565b60606001805461046490612342565b6001600160a01b038216331415610b3d5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c657200000000000000604482015260640161054f565b3360008181526005602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b610bb333856112ee565b610bbd8482611308565b610bc8848484611393565b50505050565b6060600d8054806020026020016040519081016040528092919081815260200182805480156104dd57602002820191906000526020600020905b81546001600160a01b03168152600190910190602001808311610c08575050505050905090565b610c393383611007565b610c555760405162461bcd60e51b815260040161054f90612263565b610bc88484848461142d565b606061044f82611460565b600b546001600160a01b03163314610c965760405162461bcd60e51b815260040161054f9061222e565b6001600160a01b0381166000908152600f602052604090205460ff16610cfe5760405162461bcd60e51b815260206004820152601b60248201527f41646472657373206973206e6f74206164646564206173206170700000000000604482015260640161054f565b6001600160a01b0381166000908152600f60205260408120805460ff191690555b600d548110156108a357816001600160a01b0316600d8281548110610d4657610d466123ee565b6000918252602090912001546001600160a01b03161415610e1257600d8054610d71906001906122ff565b81548110610d8157610d816123ee565b600091825260209091200154600d80546001600160a01b039092169183908110610dad57610dad6123ee565b9060005260206000200160006101000a8154816001600160a01b0302191690836001600160a01b03160217905550600d805480610dec57610dec6123d8565b600082815260209020810160001990810180546001600160a01b03191690550190555050565b80610e1c8161237d565b915050610d1f565b600b546001600160a01b03163314610e4e5760405162461bcd60e51b815260040161054f9061222e565b6001600160a01b038116610eb35760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161054f565b610ebc8161129c565b50565b336000908152600f602052604090205460ff16610f165760405162461bcd60e51b8152602060048201526015602482015274043616c6c6572206973206e6f74207468652061707605c1b604482015260640161054f565b610f2084866112ee565b610f2a8583611308565b610f35858585611393565b610f508482876040518060200160405280600081525061142d565b5050505050565b60006001600160e01b0319821663780e9d6360e01b148061044f575061044f826115c2565b6000908152600260205260409020546001600160a01b0316151590565b600081815260046020526040902080546001600160a01b0319166001600160a01b0384169081179091558190610fce826108a7565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b600061101282610f7c565b6110735760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b606482015260840161054f565b600061107e836108a7565b9050806001600160a01b0316846001600160a01b031614806110b95750836001600160a01b03166110ae846104e7565b6001600160a01b0316145b806110e957506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b0316611104826108a7565b6001600160a01b03161461116c5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b606482015260840161054f565b6001600160a01b0382166111ce5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b606482015260840161054f565b6111d9838383611612565b6111e4600082610f99565b6001600160a01b038316600090815260036020526040812080546001929061120d9084906122ff565b90915550506001600160a01b038216600090815260036020526040812080546001929061123b9084906122b4565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b600b80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6108a382826040518060200160405280600081525061161d565b61131182610f7c565b6113745760405162461bcd60e51b815260206004820152602e60248201527f45524337323155524953746f726167653a2055524920736574206f66206e6f6e60448201526d32bc34b9ba32b73a103a37b5b2b760911b606482015260840161054f565b6000828152600a60209081526040909120825161068592840190611cbc565b6127108111156113e55760405162461bcd60e51b815260206004820152601a60248201527f45524332393831526f79616c746965733a20546f6f2068696768000000000000604482015260640161054f565b6040805180820182526001600160a01b03938416815260208082019384526000958652600e90529320925183546001600160a01b031916921691909117825551600190910155565b6114388484846110f1565b61144484848484611650565b610bc85760405162461bcd60e51b815260040161054f906121dc565b606061146b82610f7c565b6114d15760405162461bcd60e51b815260206004820152603160248201527f45524337323155524953746f726167653a2055524920717565727920666f72206044820152703737b732bc34b9ba32b73a103a37b5b2b760791b606482015260840161054f565b6000828152600a6020526040812080546114ea90612342565b80601f016020809104026020016040519081016040528092919081815260200182805461151690612342565b80156115635780601f1061153857610100808354040283529160200191611563565b820191906000526020600020905b81548152906001019060200180831161154657829003601f168201915b50505050509050600061157461175d565b9050805160001415611587575092915050565b8151156115b95780826040516020016115a1929190612110565b60405160208183030381529060405292505050919050565b6110e98461176c565b60006001600160e01b031982166380ac58cd60e01b14806115f357506001600160e01b03198216635b5e139f60e01b145b8061044f57506301ffc9a760e01b6001600160e01b031983161461044f565b610685838383611837565b61162783836118ef565b6116346000848484611650565b6106855760405162461bcd60e51b815260040161054f906121dc565b60006001600160a01b0384163b1561175257604051630a85bd0160e11b81526001600160a01b0385169063150b7a029061169490339089908890889060040161213f565b602060405180830381600087803b1580156116ae57600080fd5b505af19250505080156116de575060408051601f3d908101601f191682019092526116db91810190611f90565b60015b611738573d80801561170c576040519150601f19603f3d011682016040523d82523d6000602084013e611711565b606091505b5080516117305760405162461bcd60e51b815260040161054f906121dc565b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490506110e9565b506001949350505050565b6060600c805461046490612342565b606061177782610f7c565b6117db5760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b606482015260840161054f565b60006117e561175d565b905060008151116118055760405180602001604052806000815250611830565b8061180f84611a2e565b604051602001611820929190612110565b6040516020818303038152906040525b9392505050565b6001600160a01b0383166118925761188d81600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b6118b5565b816001600160a01b0316836001600160a01b0316146118b5576118b58382611b2c565b6001600160a01b0382166118cc5761068581611bc9565b826001600160a01b0316826001600160a01b031614610685576106858282611c78565b6001600160a01b0382166119455760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373604482015260640161054f565b61194e81610f7c565b1561199b5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000604482015260640161054f565b6119a760008383611612565b6001600160a01b03821660009081526003602052604081208054600192906119d09084906122b4565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b606081611a525750506040805180820190915260018152600360fc1b602082015290565b8160005b8115611a7c5780611a668161237d565b9150611a759050600a836122cc565b9150611a56565b60008167ffffffffffffffff811115611a9757611a97612404565b6040519080825280601f01601f191660200182016040528015611ac1576020820181803683370190505b5090505b84156110e957611ad66001836122ff565b9150611ae3600a86612398565b611aee9060306122b4565b60f81b818381518110611b0357611b036123ee565b60200101906001600160f81b031916908160001a905350611b25600a866122cc565b9450611ac5565b60006001611b398461091e565b611b4391906122ff565b600083815260076020526040902054909150808214611b96576001600160a01b03841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b5060009182526007602090815260408084208490556001600160a01b039094168352600681528383209183525290812055565b600854600090611bdb906001906122ff565b60008381526009602052604081205460088054939450909284908110611c0357611c036123ee565b906000526020600020015490508060088381548110611c2457611c246123ee565b6000918252602080832090910192909255828152600990915260408082208490558582528120556008805480611c5c57611c5c6123d8565b6001900381819060005260206000200160009055905550505050565b6000611c838361091e565b6001600160a01b039093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b828054611cc890612342565b90600052602060002090601f016020900481019282611cea5760008555611d30565b82601f10611d0357805160ff1916838001178555611d30565b82800160010185558215611d30579182015b82811115611d30578251825591602001919060010190611d15565b50611d3c929150611d40565b5090565b5b80821115611d3c5760008155600101611d41565b600067ffffffffffffffff80841115611d7057611d70612404565b604051601f8501601f19908116603f01168101908282118183101715611d9857611d98612404565b81604052809350858152868686011115611db157600080fd5b858560208301376000602087830101525050509392505050565b80356001600160a01b0381168114611de257600080fd5b919050565b600082601f830112611df857600080fd5b61183083833560208501611d55565b600060208284031215611e1957600080fd5b61183082611dcb565b60008060408385031215611e3557600080fd5b611e3e83611dcb565b9150611e4c60208401611dcb565b90509250929050565b600080600060608486031215611e6a57600080fd5b611e7384611dcb565b9250611e8160208501611dcb565b9150604084013590509250925092565b60008060008060808587031215611ea757600080fd5b611eb085611dcb565b9350611ebe60208601611dcb565b925060408501359150606085013567ffffffffffffffff811115611ee157600080fd5b8501601f81018713611ef257600080fd5b611f0187823560208401611d55565b91505092959194509250565b60008060408385031215611f2057600080fd5b611f2983611dcb565b915060208301358015158114611f3e57600080fd5b809150509250929050565b60008060408385031215611f5c57600080fd5b611f6583611dcb565b946020939093013593505050565b600060208284031215611f8557600080fd5b81356118308161241a565b600060208284031215611fa257600080fd5b81516118308161241a565b600060208284031215611fbf57600080fd5b813567ffffffffffffffff811115611fd657600080fd5b6110e984828501611de7565b600060208284031215611ff457600080fd5b5035919050565b6000806000806080858703121561201157600080fd5b8435935061202160208601611dcb565b925060408501359150606085013567ffffffffffffffff81111561204457600080fd5b611f0187828801611de7565b600080600080600060a0868803121561206857600080fd5b8535945061207860208701611dcb565b935060408601359250606086013567ffffffffffffffff81111561209b57600080fd5b6120a788828901611de7565b9250506120b660808701611dcb565b90509295509295909350565b600080604083850312156120d557600080fd5b50508035926020909101359150565b600081518084526120fc816020860160208601612316565b601f01601f19169290920160200192915050565b60008351612122818460208801612316565b835190830190612136818360208801612316565b01949350505050565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090612172908301846120e4565b9695505050505050565b6020808252825182820181905260009190848201906040850190845b818110156121bd5783516001600160a01b031683529284019291840191600101612198565b50909695505050505050565b60208152600061183060208301846120e4565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b600082198211156122c7576122c76123ac565b500190565b6000826122db576122db6123c2565b500490565b60008160001904831182151516156122fa576122fa6123ac565b500290565b600082821015612311576123116123ac565b500390565b60005b83811015612331578181015183820152602001612319565b83811115610bc85750506000910152565b600181811c9082168061235657607f821691505b6020821081141561237757634e487b7160e01b600052602260045260246000fd5b50919050565b6000600019821415612391576123916123ac565b5060010190565b6000826123a7576123a76123c2565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052603160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160e01b031981168114610ebc57600080fdfea26469706673582212202009a3dd7e955da5692ae4fb5485e26fdbcfded41e18e62d5d4682924093a5ab64736f6c63430008070033

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

00000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000005706f6b6d69000000000000000000000000000000000000000000000000000000

-----Decoded View---------------
Arg [0] : _baseURI_ (string): pokmi

-----Encoded View---------------
3 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000020
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000005
Arg [2] : 706f6b6d69000000000000000000000000000000000000000000000000000000


Deployed Bytecode Sourcemap

59647:4350:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;60213:279;;;;;;:::i;:::-;;:::i;:::-;;;8090:14:1;;8083:22;8065:41;;8053:2;8038:18;60213:279:0;;;;;;;;24465:100;;;:::i;:::-;;;;;;;:::i;26024:221::-;;;;;;:::i;:::-;;:::i;:::-;;;-1:-1:-1;;;;;6446:32:1;;;6428:51;;6416:2;6401:18;26024:221:0;6282:203:1;25547:411:0;;;;;;:::i;:::-;;:::i;:::-;;38907:113;38995:10;:17;38907:113;;;17945:25:1;;;17933:2;17918:18;38907:113:0;17799:177:1;26914:339:0;;;;;;:::i;:::-;;:::i;61584:306::-;;;;;;:::i;:::-;;:::i;:::-;;;;-1:-1:-1;;;;;7175:32:1;;;7157:51;;7239:2;7224:18;;7217:34;;;;7130:18;61584:306:0;6983:274:1;38575:256:0;;;;;;:::i;:::-;;:::i;60599:93::-;;;;;;:::i;:::-;-1:-1:-1;;;;;60672:12:0;60648:4;60672:12;;;:6;:12;;;;;;;;;60599:93;27324:185;;;;;;:::i;:::-;;:::i;39097:233::-;;;;;;:::i;:::-;;:::i;62796:144::-;;;;;;:::i;:::-;;:::i;24159:239::-;;;;;;:::i;:::-;;:::i;23889:208::-;;;;;;:::i;:::-;;:::i;12372:94::-;;;:::i;11721:87::-;11794:6;;-1:-1:-1;;;;;11794:6:0;11721:87;;62948:177;;;;;;:::i;:::-;;:::i;24634:104::-;;;:::i;26317:295::-;;;;;;:::i;:::-;;:::i;61898:265::-;;;;;;:::i;:::-;;:::i;60500:91::-;;;:::i;:::-;;;;;;;:::i;27580:328::-;;;;;;:::i;:::-;;:::i;63834:160::-;;;;;;:::i;:::-;;:::i;63133:376::-;;;;;;:::i;:::-;;:::i;26683:164::-;;;;;;:::i;:::-;-1:-1:-1;;;;;26804:25:0;;;26780:4;26804:25;;;:18;:25;;;;;;;;:35;;;;;;;;;;;;;;;26683:164;12621:192;;;;;;:::i;:::-;;:::i;62171:372::-;;;;;;:::i;:::-;;:::i;60213:279::-;60352:4;-1:-1:-1;;;;;;60381:50:0;;-1:-1:-1;;;60381:50:0;;:103;;;60448:36;60472:11;60448:23;:36::i;:::-;60374:110;60213:279;-1:-1:-1;;60213:279:0:o;24465:100::-;24519:13;24552:5;24545:12;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;24465:100;:::o;26024:221::-;26100:7;26128:16;26136:7;26128;:16::i;:::-;26120:73;;;;-1:-1:-1;;;26120:73:0;;14462:2:1;26120:73:0;;;14444:21:1;14501:2;14481:18;;;14474:30;14540:34;14520:18;;;14513:62;-1:-1:-1;;;14591:18:1;;;14584:42;14643:19;;26120:73:0;;;;;;;;;-1:-1:-1;26213:24:0;;;;:15;:24;;;;;;-1:-1:-1;;;;;26213:24:0;;26024:221::o;25547:411::-;25628:13;25644:23;25659:7;25644:14;:23::i;:::-;25628:39;;25692:5;-1:-1:-1;;;;;25686:11:0;:2;-1:-1:-1;;;;;25686:11:0;;;25678:57;;;;-1:-1:-1;;;25678:57:0;;16418:2:1;25678:57:0;;;16400:21:1;16457:2;16437:18;;;16430:30;16496:34;16476:18;;;16469:62;-1:-1:-1;;;16547:18:1;;;16540:31;16588:19;;25678:57:0;16216:397:1;25678:57:0;10677:10;-1:-1:-1;;;;;25770:21:0;;;;:62;;-1:-1:-1;25795:37:0;25812:5;10677:10;26683:164;:::i;25795:37::-;25748:168;;;;-1:-1:-1;;;25748:168:0;;12022:2:1;25748:168:0;;;12004:21:1;12061:2;12041:18;;;12034:30;12100:34;12080:18;;;12073:62;12171:26;12151:18;;;12144:54;12215:19;;25748:168:0;11820:420:1;25748:168:0;25929:21;25938:2;25942:7;25929:8;:21::i;:::-;25617:341;25547:411;;:::o;26914:339::-;27109:41;10677:10;27142:7;27109:18;:41::i;:::-;27101:103;;;;-1:-1:-1;;;27101:103:0;;;;;;;:::i;:::-;27217:28;27227:4;27233:2;27237:7;27217:9;:28::i;61584:306::-;61707:17;61791:20;;;:10;:20;;;;;;;;61766:45;;;;;;;;;;-1:-1:-1;;;;;61766:45:0;;;;;;;;;;;;;;;61707:17;;61876:5;;61850:22;;:6;:22;:::i;:::-;61849:32;;;;:::i;:::-;61822:60;;;;;61584:306;;;;;:::o;38575:256::-;38672:7;38708:23;38725:5;38708:16;:23::i;:::-;38700:5;:31;38692:87;;;;-1:-1:-1;;;38692:87:0;;9255:2:1;38692:87:0;;;9237:21:1;9294:2;9274:18;;;9267:30;9333:34;9313:18;;;9306:62;-1:-1:-1;;;9384:18:1;;;9377:41;9435:19;;38692:87:0;9053:407:1;38692:87:0;-1:-1:-1;;;;;;38797:19:0;;;;;;;;:12;:19;;;;;;;;:26;;;;;;;;;38575:256::o;27324:185::-;27462:39;27479:4;27485:2;27489:7;27462:39;;;;;;;;;;;;:16;:39::i;39097:233::-;39172:7;39208:30;38995:10;:17;;38907:113;39208:30;39200:5;:38;39192:95;;;;-1:-1:-1;;;39192:95:0;;17238:2:1;39192:95:0;;;17220:21:1;17277:2;17257:18;;;17250:30;17316:34;17296:18;;;17289:62;-1:-1:-1;;;17367:18:1;;;17360:42;17419:19;;39192:95:0;17036:408:1;39192:95:0;39305:10;39316:5;39305:17;;;;;;;;:::i;:::-;;;;;;;;;39298:24;;39097:233;;;:::o;62796:144::-;11794:6;;-1:-1:-1;;;;;11794:6:0;10677:10;11941:23;11933:68;;;;-1:-1:-1;;;11933:68:0;;;;;;;:::i;:::-;62901:1:::1;62882:8;62876:22;:26;62868:35;;;::::0;::::1;;62914:18:::0;;::::1;::::0;:7:::1;::::0;:18:::1;::::0;::::1;::::0;::::1;:::i;:::-;;62796:144:::0;:::o;24159:239::-;24231:7;24267:16;;;:7;:16;;;;;;-1:-1:-1;;;;;24267:16:0;24302:19;24294:73;;;;-1:-1:-1;;;24294:73:0;;12858:2:1;24294:73:0;;;12840:21:1;12897:2;12877:18;;;12870:30;12936:34;12916:18;;;12909:62;-1:-1:-1;;;12987:18:1;;;12980:39;13036:19;;24294:73:0;12656:405:1;23889:208:0;23961:7;-1:-1:-1;;;;;23989:19:0;;23981:74;;;;-1:-1:-1;;;23981:74:0;;12447:2:1;23981:74:0;;;12429:21:1;12486:2;12466:18;;;12459:30;12525:34;12505:18;;;12498:62;-1:-1:-1;;;12576:18:1;;;12569:40;12626:19;;23981:74:0;12245:406:1;23981:74:0;-1:-1:-1;;;;;;24073:16:0;;;;;:9;:16;;;;;;;23889:208::o;12372:94::-;11794:6;;-1:-1:-1;;;;;11794:6:0;10677:10;11941:23;11933:68;;;;-1:-1:-1;;;11933:68:0;;;;;;;:::i;:::-;12437:21:::1;12455:1;12437:9;:21::i;:::-;12372:94::o:0;62948:177::-;11794:6;;-1:-1:-1;;;;;11794:6:0;10677:10;11941:23;11933:68;;;;-1:-1:-1;;;11933:68:0;;;;;;;:::i;:::-;-1:-1:-1;;;;;63015:12:0;::::1;;::::0;;;:6:::1;:12;::::0;;;;;::::1;;63014:13;63006:54;;;::::0;-1:-1:-1;;;63006:54:0;;8543:2:1;63006:54:0::1;::::0;::::1;8525:21:1::0;8582:2;8562:18;;;8555:30;8621;8601:18;;;8594:58;8669:18;;63006:54:0::1;8341:352:1::0;63006:54:0::1;63071:5;:16:::0;;::::1;::::0;;::::1;::::0;;;;::::1;::::0;;-1:-1:-1;;;;;63071:16:0;;::::1;-1:-1:-1::0;;;;;;63071:16:0;;::::1;::::0;::::1;::::0;;-1:-1:-1;63098:12:0;;;:6:::1;63071:16;63098:12:::0;;;;;:19;;-1:-1:-1;;63098:19:0::1;::::0;;::::1;::::0;;62948:177::o;24634:104::-;24690:13;24723:7;24716:14;;;;;:::i;26317:295::-;-1:-1:-1;;;;;26420:24:0;;10677:10;26420:24;;26412:62;;;;-1:-1:-1;;;26412:62:0;;11255:2:1;26412:62:0;;;11237:21:1;11294:2;11274:18;;;11267:30;11333:27;11313:18;;;11306:55;11378:18;;26412:62:0;11053:349:1;26412:62:0;10677:10;26487:32;;;;:18;:32;;;;;;;;-1:-1:-1;;;;;26487:42:0;;;;;;;;;;;;:53;;-1:-1:-1;;26487:53:0;;;;;;;;;;26556:48;;8065:41:1;;;26487:42:0;;10677:10;26556:48;;8038:18:1;26556:48:0;;;;;;;26317:295;;:::o;61898:265::-;62014:30;62024:10;62036:7;62014:9;:30::i;:::-;62055:27;62068:7;62077:4;62055:12;:27::i;:::-;62093:62;62110:7;62119:16;62137:17;62093:16;:62::i;:::-;61898:265;;;;:::o;60500:91::-;60542:16;60578:5;60571:12;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;60571:12:0;;;;;;;;;;;;;;;;;;;;;;60500:91;:::o;27580:328::-;27755:41;10677:10;27788:7;27755:18;:41::i;:::-;27747:103;;;;-1:-1:-1;;;27747:103:0;;;;;;;:::i;:::-;27861:39;27875:4;27881:2;27885:7;27894:5;27861:13;:39::i;63834:160::-;63925:13;63963:23;63978:7;63963:14;:23::i;63133:376::-;11794:6;;-1:-1:-1;;;;;11794:6:0;10677:10;11941:23;11933:68;;;;-1:-1:-1;;;11933:68:0;;;;;;;:::i;:::-;-1:-1:-1;;;;;63202:12:0;::::1;;::::0;;;:6:::1;:12;::::0;;;;;::::1;;63194:52;;;::::0;-1:-1:-1;;;63194:52:0;;14875:2:1;63194:52:0::1;::::0;::::1;14857:21:1::0;14914:2;14894:18;;;14887:30;14953:29;14933:18;;;14926:57;15000:18;;63194:52:0::1;14673:351:1::0;63194:52:0::1;-1:-1:-1::0;;;;;63257:12:0;::::1;63272:5;63257:12:::0;;;:6:::1;:12;::::0;;;;:20;;-1:-1:-1;;63257:20:0::1;::::0;;63288:214:::1;63312:5;:12:::0;63308:16;::::1;63288:214;;;63362:4;-1:-1:-1::0;;;;;63350:16:0::1;:5;63356:1;63350:8;;;;;;;;:::i;:::-;;::::0;;;::::1;::::0;;;::::1;::::0;-1:-1:-1;;;;;63350:8:0::1;:16;63346:145;;;63398:5;63404:12:::0;;:16:::1;::::0;63419:1:::1;::::0;63404:16:::1;:::i;:::-;63398:23;;;;;;;;:::i;:::-;;::::0;;;::::1;::::0;;;::::1;::::0;63387:5:::1;:8:::0;;-1:-1:-1;;;;;63398:23:0;;::::1;::::0;63393:1;;63387:8;::::1;;;;;:::i;:::-;;;;;;;;;:34;;;;;-1:-1:-1::0;;;;;63387:34:0::1;;;;;-1:-1:-1::0;;;;;63387:34:0::1;;;;;;63440:5;:11;;;;;;;:::i;:::-;;::::0;;;::::1;::::0;;;;-1:-1:-1;;63440:11:0;;;;;-1:-1:-1;;;;;;63440:11:0::1;::::0;;;;;62914:18:::1;62796:144:::0;:::o;63346:145::-:1;63326:3:::0;::::1;::::0;::::1;:::i;:::-;;;;63288:214;;12621:192:::0;11794:6;;-1:-1:-1;;;;;11794:6:0;10677:10;11941:23;11933:68;;;;-1:-1:-1;;;11933:68:0;;;;;;;:::i;:::-;-1:-1:-1;;;;;12710:22:0;::::1;12702:73;;;::::0;-1:-1:-1;;;12702:73:0;;10086:2:1;12702:73:0::1;::::0;::::1;10068:21:1::0;10125:2;10105:18;;;10098:30;10164:34;10144:18;;;10137:62;-1:-1:-1;;;10215:18:1;;;10208:36;10261:19;;12702:73:0::1;9884:402:1::0;12702:73:0::1;12786:19;12796:8;12786:9;:19::i;:::-;12621:192:::0;:::o;62171:372::-;10677:10;60139:20;;;;:6;:20;;;;;;;;60131:54;;;;-1:-1:-1;;;60131:54:0;;17651:2:1;60131:54:0;;;17633:21:1;17690:2;17670:18;;;17663:30;-1:-1:-1;;;17709:18:1;;;17702:51;17770:18;;60131:54:0;17449:345:1;60131:54:0;62326:36:::1;62336:16;62354:7;62326:9;:36::i;:::-;62373:27;62386:7;62395:4;62373:12;:27::i;:::-;62411:62;62428:7;62437:16;62455:17;62411:16;:62::i;:::-;62484:51;62498:16;62516:5;62523:7;62484:51;;;;;;;;;;;::::0;:13:::1;:51::i;:::-;62171:372:::0;;;;;:::o;38267:224::-;38369:4;-1:-1:-1;;;;;;38393:50:0;;-1:-1:-1;;;38393:50:0;;:90;;;38447:36;38471:11;38447:23;:36::i;29418:127::-;29483:4;29507:16;;;:7;:16;;;;;;-1:-1:-1;;;;;29507:16:0;:30;;;29418:127::o;33400:174::-;33475:24;;;;:15;:24;;;;;:29;;-1:-1:-1;;;;;;33475:29:0;-1:-1:-1;;;;;33475:29:0;;;;;;;;:24;;33529:23;33475:24;33529:14;:23::i;:::-;-1:-1:-1;;;;;33520:46:0;;;;;;;;;;;33400:174;;:::o;29712:348::-;29805:4;29830:16;29838:7;29830;:16::i;:::-;29822:73;;;;-1:-1:-1;;;29822:73:0;;11609:2:1;29822:73:0;;;11591:21:1;11648:2;11628:18;;;11621:30;11687:34;11667:18;;;11660:62;-1:-1:-1;;;11738:18:1;;;11731:42;11790:19;;29822:73:0;11407:408:1;29822:73:0;29906:13;29922:23;29937:7;29922:14;:23::i;:::-;29906:39;;29975:5;-1:-1:-1;;;;;29964:16:0;:7;-1:-1:-1;;;;;29964:16:0;;:51;;;;30008:7;-1:-1:-1;;;;;29984:31:0;:20;29996:7;29984:11;:20::i;:::-;-1:-1:-1;;;;;29984:31:0;;29964:51;:87;;;-1:-1:-1;;;;;;26804:25:0;;;26780:4;26804:25;;;:18;:25;;;;;;;;:35;;;;;;;;;;;;30019:32;29956:96;29712:348;-1:-1:-1;;;;29712:348:0:o;32704:578::-;32863:4;-1:-1:-1;;;;;32836:31:0;:23;32851:7;32836:14;:23::i;:::-;-1:-1:-1;;;;;32836:31:0;;32828:85;;;;-1:-1:-1;;;32828:85:0;;15592:2:1;32828:85:0;;;15574:21:1;15631:2;15611:18;;;15604:30;15670:34;15650:18;;;15643:62;-1:-1:-1;;;15721:18:1;;;15714:39;15770:19;;32828:85:0;15390:405:1;32828:85:0;-1:-1:-1;;;;;32932:16:0;;32924:65;;;;-1:-1:-1;;;32924:65:0;;10850:2:1;32924:65:0;;;10832:21:1;10889:2;10869:18;;;10862:30;10928:34;10908:18;;;10901:62;-1:-1:-1;;;10979:18:1;;;10972:34;11023:19;;32924:65:0;10648:400:1;32924:65:0;33002:39;33023:4;33029:2;33033:7;33002:20;:39::i;:::-;33106:29;33123:1;33127:7;33106:8;:29::i;:::-;-1:-1:-1;;;;;33148:15:0;;;;;;:9;:15;;;;;:20;;33167:1;;33148:15;:20;;33167:1;;33148:20;:::i;:::-;;;;-1:-1:-1;;;;;;;33179:13:0;;;;;;:9;:13;;;;;:18;;33196:1;;33179:13;:18;;33196:1;;33179:18;:::i;:::-;;;;-1:-1:-1;;33208:16:0;;;;:7;:16;;;;;;:21;;-1:-1:-1;;;;;;33208:21:0;-1:-1:-1;;;;;33208:21:0;;;;;;;;;33247:27;;33208:16;;33247:27;;;;;;;32704:578;;;:::o;12821:173::-;12896:6;;;-1:-1:-1;;;;;12913:17:0;;;-1:-1:-1;;;;;;12913:17:0;;;;;;;12946:40;;12896:6;;;12913:17;12896:6;;12946:40;;12877:16;;12946:40;12866:128;12821:173;:::o;30402:110::-;30478:26;30488:2;30492:7;30478:26;;;;;;;;;;;;:9;:26::i;36794:217::-;36894:16;36902:7;36894;:16::i;:::-;36886:75;;;;-1:-1:-1;;;36886:75:0;;13268:2:1;36886:75:0;;;13250:21:1;13307:2;13287:18;;;13280:30;13346:34;13326:18;;;13319:62;-1:-1:-1;;;13397:18:1;;;13390:44;13451:19;;36886:75:0;13066:410:1;36886:75:0;36972:19;;;;:10;:19;;;;;;;;:31;;;;;;;;:::i;60929:239::-;61069:5;61060;:14;;61052:53;;;;-1:-1:-1;;;61052:53:0;;8900:2:1;61052:53:0;;;8882:21:1;8939:2;8919:18;;;8912:30;8978:28;8958:18;;;8951:56;9024:18;;61052:53:0;8698:350:1;61052:53:0;61135:25;;;;;;;;-1:-1:-1;;;;;61135:25:0;;;;;;;;;;;;-1:-1:-1;61118:14:0;;;:10;:14;;;;:42;;;;-1:-1:-1;;;;;;61118:42:0;;;;;;;;;;-1:-1:-1;61118:42:0;;;;60929:239::o;28790:315::-;28947:28;28957:4;28963:2;28967:7;28947:9;:28::i;:::-;28994:48;29017:4;29023:2;29027:7;29036:5;28994:22;:48::i;:::-;28986:111;;;;-1:-1:-1;;;28986:111:0;;;;;;;:::i;35959:679::-;36032:13;36066:16;36074:7;36066;:16::i;:::-;36058:78;;;;-1:-1:-1;;;36058:78:0;;14044:2:1;36058:78:0;;;14026:21:1;14083:2;14063:18;;;14056:30;14122:34;14102:18;;;14095:62;-1:-1:-1;;;14173:18:1;;;14166:47;14230:19;;36058:78:0;13842:413:1;36058:78:0;36149:23;36175:19;;;:10;:19;;;;;36149:45;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;36205:18;36226:10;:8;:10::i;:::-;36205:31;;36318:4;36312:18;36334:1;36312:23;36308:72;;;-1:-1:-1;36359:9:0;35959:679;-1:-1:-1;;35959:679:0:o;36308:72::-;36484:23;;:27;36480:108;;36559:4;36565:9;36542:33;;;;;;;;;:::i;:::-;;;;;;;;;;;;;36528:48;;;;35959:679;;;:::o;36480:108::-;36607:23;36622:7;36607:14;:23::i;23520:305::-;23622:4;-1:-1:-1;;;;;;23659:40:0;;-1:-1:-1;;;23659:40:0;;:105;;-1:-1:-1;;;;;;;23716:48:0;;-1:-1:-1;;;23716:48:0;23659:105;:158;;;-1:-1:-1;;;;;;;;;;14558:40:0;;;23781:36;14449:157;63517:186;63650:45;63677:4;63683:2;63687:7;63650:26;:45::i;30739:321::-;30869:18;30875:2;30879:7;30869:5;:18::i;:::-;30920:54;30951:1;30955:2;30959:7;30968:5;30920:22;:54::i;:::-;30898:154;;;;-1:-1:-1;;;30898:154:0;;;;;;;:::i;34139:799::-;34294:4;-1:-1:-1;;;;;34315:13:0;;3049:20;3097:8;34311:620;;34351:72;;-1:-1:-1;;;34351:72:0;;-1:-1:-1;;;;;34351:36:0;;;;;:72;;10677:10;;34402:4;;34408:7;;34417:5;;34351:72;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;34351:72:0;;;;;;;;-1:-1:-1;;34351:72:0;;;;;;;;;;;;:::i;:::-;;;34347:529;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;34593:13:0;;34589:272;;34636:60;;-1:-1:-1;;;34636:60:0;;;;;;;:::i;34589:272::-;34811:6;34805:13;34796:6;34792:2;34788:15;34781:38;34347:529;-1:-1:-1;;;;;;34474:51:0;-1:-1:-1;;;34474:51:0;;-1:-1:-1;34467:58:0;;34311:620;-1:-1:-1;34915:4:0;34139:799;;;;;;:::o;62680:108::-;62740:13;62773:7;62766:14;;;;;:::i;24809:334::-;24882:13;24916:16;24924:7;24916;:16::i;:::-;24908:76;;;;-1:-1:-1;;;24908:76:0;;16002:2:1;24908:76:0;;;15984:21:1;16041:2;16021:18;;;16014:30;16080:34;16060:18;;;16053:62;-1:-1:-1;;;16131:18:1;;;16124:45;16186:19;;24908:76:0;15800:411:1;24908:76:0;24997:21;25021:10;:8;:10::i;:::-;24997:34;;25073:1;25055:7;25049:21;:25;:86;;;;;;;;;;;;;;;;;25101:7;25110:18;:7;:16;:18::i;:::-;25084:45;;;;;;;;;:::i;:::-;;;;;;;;;;;;;25049:86;25042:93;24809:334;-1:-1:-1;;;24809:334:0:o;39943:589::-;-1:-1:-1;;;;;40149:18:0;;40145:187;;40184:40;40216:7;41359:10;:17;;41332:24;;;;:15;:24;;;;;:44;;;41387:24;;;;;;;;;;;;41255:164;40184:40;40145:187;;;40254:2;-1:-1:-1;;;;;40246:10:0;:4;-1:-1:-1;;;;;40246:10:0;;40242:90;;40273:47;40306:4;40312:7;40273:32;:47::i;:::-;-1:-1:-1;;;;;40346:16:0;;40342:183;;40379:45;40416:7;40379:36;:45::i;40342:183::-;40452:4;-1:-1:-1;;;;;40446:10:0;:2;-1:-1:-1;;;;;40446:10:0;;40442:83;;40473:40;40501:2;40505:7;40473:27;:40::i;31396:382::-;-1:-1:-1;;;;;31476:16:0;;31468:61;;;;-1:-1:-1;;;31468:61:0;;13683:2:1;31468:61:0;;;13665:21:1;;;13702:18;;;13695:30;13761:34;13741:18;;;13734:62;13813:18;;31468:61:0;13481:356:1;31468:61:0;31549:16;31557:7;31549;:16::i;:::-;31548:17;31540:58;;;;-1:-1:-1;;;31540:58:0;;10493:2:1;31540:58:0;;;10475:21:1;10532:2;10512:18;;;10505:30;10571;10551:18;;;10544:58;10619:18;;31540:58:0;10291:352:1;31540:58:0;31611:45;31640:1;31644:2;31648:7;31611:20;:45::i;:::-;-1:-1:-1;;;;;31669:13:0;;;;;;:9;:13;;;;;:18;;31686:1;;31669:13;:18;;31686:1;;31669:18;:::i;:::-;;;;-1:-1:-1;;31698:16:0;;;;:7;:16;;;;;;:21;;-1:-1:-1;;;;;;31698:21:0;-1:-1:-1;;;;;31698:21:0;;;;;;;;31737:33;;31698:16;;;31737:33;;31698:16;;31737:33;31396:382;;:::o;286:723::-;342:13;563:10;559:53;;-1:-1:-1;;590:10:0;;;;;;;;;;;;-1:-1:-1;;;590:10:0;;;;;286:723::o;559:53::-;637:5;622:12;678:78;685:9;;678:78;;711:8;;;;:::i;:::-;;-1:-1:-1;734:10:0;;-1:-1:-1;742:2:0;734:10;;:::i;:::-;;;678:78;;;766:19;798:6;788:17;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;788:17:0;;766:39;;816:154;823:10;;816:154;;850:11;860:1;850:11;;:::i;:::-;;-1:-1:-1;919:10:0;927:2;919:5;:10;:::i;:::-;906:24;;:2;:24;:::i;:::-;893:39;;876:6;883;876:14;;;;;;;;:::i;:::-;;;;:56;-1:-1:-1;;;;;876:56:0;;;;;;;;-1:-1:-1;947:11:0;956:2;947:11;;:::i;:::-;;;816:154;;42046:988;42312:22;42362:1;42337:22;42354:4;42337:16;:22::i;:::-;:26;;;;:::i;:::-;42374:18;42395:26;;;:17;:26;;;;;;42312:51;;-1:-1:-1;42528:28:0;;;42524:328;;-1:-1:-1;;;;;42595:18:0;;42573:19;42595:18;;;:12;:18;;;;;;;;:34;;;;;;;;;42646:30;;;;;;:44;;;42763:30;;:17;:30;;;;;:43;;;42524:328;-1:-1:-1;42948:26:0;;;;:17;:26;;;;;;;;42941:33;;;-1:-1:-1;;;;;42992:18:0;;;;;:12;:18;;;;;:34;;;;;;;42985:41;42046:988::o;43329:1079::-;43607:10;:17;43582:22;;43607:21;;43627:1;;43607:21;:::i;:::-;43639:18;43660:24;;;:15;:24;;;;;;44033:10;:26;;43582:46;;-1:-1:-1;43660:24:0;;43582:46;;44033:26;;;;;;:::i;:::-;;;;;;;;;44011:48;;44097:11;44072:10;44083;44072:22;;;;;;;;:::i;:::-;;;;;;;;;;;;:36;;;;44177:28;;;:15;:28;;;;;;;:41;;;44349:24;;;;;44342:31;44384:10;:16;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;43400:1008;;;43329:1079;:::o;40833:221::-;40918:14;40935:20;40952:2;40935:16;:20::i;:::-;-1:-1:-1;;;;;40966:16:0;;;;;;;:12;:16;;;;;;;;:24;;;;;;;;:34;;;41011:26;;;:17;:26;;;;;;:35;;;;-1:-1:-1;40833:221:0:o;-1:-1:-1:-;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;:::o;:::-;;;;;;;;;;;;;;;14:631:1;78:5;108:18;149:2;141:6;138:14;135:40;;;155:18;;:::i;:::-;230:2;224:9;198:2;284:15;;-1:-1:-1;;280:24:1;;;306:2;276:33;272:42;260:55;;;330:18;;;350:22;;;327:46;324:72;;;376:18;;:::i;:::-;416:10;412:2;405:22;445:6;436:15;;475:6;467;460:22;515:3;506:6;501:3;497:16;494:25;491:45;;;532:1;529;522:12;491:45;582:6;577:3;570:4;562:6;558:17;545:44;637:1;630:4;621:6;613;609:19;605:30;598:41;;;;14:631;;;;;:::o;650:173::-;718:20;;-1:-1:-1;;;;;767:31:1;;757:42;;747:70;;813:1;810;803:12;747:70;650:173;;;:::o;828:221::-;871:5;924:3;917:4;909:6;905:17;901:27;891:55;;942:1;939;932:12;891:55;964:79;1039:3;1030:6;1017:20;1010:4;1002:6;998:17;964:79;:::i;1054:186::-;1113:6;1166:2;1154:9;1145:7;1141:23;1137:32;1134:52;;;1182:1;1179;1172:12;1134:52;1205:29;1224:9;1205:29;:::i;1245:260::-;1313:6;1321;1374:2;1362:9;1353:7;1349:23;1345:32;1342:52;;;1390:1;1387;1380:12;1342:52;1413:29;1432:9;1413:29;:::i;:::-;1403:39;;1461:38;1495:2;1484:9;1480:18;1461:38;:::i;:::-;1451:48;;1245:260;;;;;:::o;1510:328::-;1587:6;1595;1603;1656:2;1644:9;1635:7;1631:23;1627:32;1624:52;;;1672:1;1669;1662:12;1624:52;1695:29;1714:9;1695:29;:::i;:::-;1685:39;;1743:38;1777:2;1766:9;1762:18;1743:38;:::i;:::-;1733:48;;1828:2;1817:9;1813:18;1800:32;1790:42;;1510:328;;;;;:::o;1843:666::-;1938:6;1946;1954;1962;2015:3;2003:9;1994:7;1990:23;1986:33;1983:53;;;2032:1;2029;2022:12;1983:53;2055:29;2074:9;2055:29;:::i;:::-;2045:39;;2103:38;2137:2;2126:9;2122:18;2103:38;:::i;:::-;2093:48;;2188:2;2177:9;2173:18;2160:32;2150:42;;2243:2;2232:9;2228:18;2215:32;2270:18;2262:6;2259:30;2256:50;;;2302:1;2299;2292:12;2256:50;2325:22;;2378:4;2370:13;;2366:27;-1:-1:-1;2356:55:1;;2407:1;2404;2397:12;2356:55;2430:73;2495:7;2490:2;2477:16;2472:2;2468;2464:11;2430:73;:::i;:::-;2420:83;;;1843:666;;;;;;;:::o;2514:347::-;2579:6;2587;2640:2;2628:9;2619:7;2615:23;2611:32;2608:52;;;2656:1;2653;2646:12;2608:52;2679:29;2698:9;2679:29;:::i;:::-;2669:39;;2758:2;2747:9;2743:18;2730:32;2805:5;2798:13;2791:21;2784:5;2781:32;2771:60;;2827:1;2824;2817:12;2771:60;2850:5;2840:15;;;2514:347;;;;;:::o;2866:254::-;2934:6;2942;2995:2;2983:9;2974:7;2970:23;2966:32;2963:52;;;3011:1;3008;3001:12;2963:52;3034:29;3053:9;3034:29;:::i;:::-;3024:39;3110:2;3095:18;;;;3082:32;;-1:-1:-1;;;2866:254:1:o;3125:245::-;3183:6;3236:2;3224:9;3215:7;3211:23;3207:32;3204:52;;;3252:1;3249;3242:12;3204:52;3291:9;3278:23;3310:30;3334:5;3310:30;:::i;3375:249::-;3444:6;3497:2;3485:9;3476:7;3472:23;3468:32;3465:52;;;3513:1;3510;3503:12;3465:52;3545:9;3539:16;3564:30;3588:5;3564:30;:::i;3629:322::-;3698:6;3751:2;3739:9;3730:7;3726:23;3722:32;3719:52;;;3767:1;3764;3757:12;3719:52;3807:9;3794:23;3840:18;3832:6;3829:30;3826:50;;;3872:1;3869;3862:12;3826:50;3895;3937:7;3928:6;3917:9;3913:22;3895:50;:::i;3956:180::-;4015:6;4068:2;4056:9;4047:7;4043:23;4039:32;4036:52;;;4084:1;4081;4074:12;4036:52;-1:-1:-1;4107:23:1;;3956:180;-1:-1:-1;3956:180:1:o;4141:533::-;4237:6;4245;4253;4261;4314:3;4302:9;4293:7;4289:23;4285:33;4282:53;;;4331:1;4328;4321:12;4282:53;4367:9;4354:23;4344:33;;4396:38;4430:2;4419:9;4415:18;4396:38;:::i;:::-;4386:48;;4481:2;4470:9;4466:18;4453:32;4443:42;;4536:2;4525:9;4521:18;4508:32;4563:18;4555:6;4552:30;4549:50;;;4595:1;4592;4585:12;4549:50;4618;4660:7;4651:6;4640:9;4636:22;4618:50;:::i;4679:608::-;4784:6;4792;4800;4808;4816;4869:3;4857:9;4848:7;4844:23;4840:33;4837:53;;;4886:1;4883;4876:12;4837:53;4922:9;4909:23;4899:33;;4951:38;4985:2;4974:9;4970:18;4951:38;:::i;:::-;4941:48;;5036:2;5025:9;5021:18;5008:32;4998:42;;5091:2;5080:9;5076:18;5063:32;5118:18;5110:6;5107:30;5104:50;;;5150:1;5147;5140:12;5104:50;5173;5215:7;5206:6;5195:9;5191:22;5173:50;:::i;:::-;5163:60;;;5242:39;5276:3;5265:9;5261:19;5242:39;:::i;:::-;5232:49;;4679:608;;;;;;;;:::o;5292:248::-;5360:6;5368;5421:2;5409:9;5400:7;5396:23;5392:32;5389:52;;;5437:1;5434;5427:12;5389:52;-1:-1:-1;;5460:23:1;;;5530:2;5515:18;;;5502:32;;-1:-1:-1;5292:248:1:o;5545:257::-;5586:3;5624:5;5618:12;5651:6;5646:3;5639:19;5667:63;5723:6;5716:4;5711:3;5707:14;5700:4;5693:5;5689:16;5667:63;:::i;:::-;5784:2;5763:15;-1:-1:-1;;5759:29:1;5750:39;;;;5791:4;5746:50;;5545:257;-1:-1:-1;;5545:257:1:o;5807:470::-;5986:3;6024:6;6018:13;6040:53;6086:6;6081:3;6074:4;6066:6;6062:17;6040:53;:::i;:::-;6156:13;;6115:16;;;;6178:57;6156:13;6115:16;6212:4;6200:17;;6178:57;:::i;:::-;6251:20;;5807:470;-1:-1:-1;;;;5807:470:1:o;6490:488::-;-1:-1:-1;;;;;6759:15:1;;;6741:34;;6811:15;;6806:2;6791:18;;6784:43;6858:2;6843:18;;6836:34;;;6906:3;6901:2;6886:18;;6879:31;;;6684:4;;6927:45;;6952:19;;6944:6;6927:45;:::i;:::-;6919:53;6490:488;-1:-1:-1;;;;;;6490:488:1:o;7262:658::-;7433:2;7485:21;;;7555:13;;7458:18;;;7577:22;;;7404:4;;7433:2;7656:15;;;;7630:2;7615:18;;;7404:4;7699:195;7713:6;7710:1;7707:13;7699:195;;;7778:13;;-1:-1:-1;;;;;7774:39:1;7762:52;;7869:15;;;;7834:12;;;;7810:1;7728:9;7699:195;;;-1:-1:-1;7911:3:1;;7262:658;-1:-1:-1;;;;;;7262:658:1:o;8117:219::-;8266:2;8255:9;8248:21;8229:4;8286:44;8326:2;8315:9;8311:18;8303:6;8286:44;:::i;9465:414::-;9667:2;9649:21;;;9706:2;9686:18;;;9679:30;9745:34;9740:2;9725:18;;9718:62;-1:-1:-1;;;9811:2:1;9796:18;;9789:48;9869:3;9854:19;;9465:414::o;15029:356::-;15231:2;15213:21;;;15250:18;;;15243:30;15309:34;15304:2;15289:18;;15282:62;15376:2;15361:18;;15029:356::o;16618:413::-;16820:2;16802:21;;;16859:2;16839:18;;;16832:30;16898:34;16893:2;16878:18;;16871:62;-1:-1:-1;;;16964:2:1;16949:18;;16942:47;17021:3;17006:19;;16618:413::o;17981:128::-;18021:3;18052:1;18048:6;18045:1;18042:13;18039:39;;;18058:18;;:::i;:::-;-1:-1:-1;18094:9:1;;17981:128::o;18114:120::-;18154:1;18180;18170:35;;18185:18;;:::i;:::-;-1:-1:-1;18219:9:1;;18114:120::o;18239:168::-;18279:7;18345:1;18341;18337:6;18333:14;18330:1;18327:21;18322:1;18315:9;18308:17;18304:45;18301:71;;;18352:18;;:::i;:::-;-1:-1:-1;18392:9:1;;18239:168::o;18412:125::-;18452:4;18480:1;18477;18474:8;18471:34;;;18485:18;;:::i;:::-;-1:-1:-1;18522:9:1;;18412:125::o;18542:258::-;18614:1;18624:113;18638:6;18635:1;18632:13;18624:113;;;18714:11;;;18708:18;18695:11;;;18688:39;18660:2;18653:10;18624:113;;;18755:6;18752:1;18749:13;18746:48;;;-1:-1:-1;;18790:1:1;18772:16;;18765:27;18542:258::o;18805:380::-;18884:1;18880:12;;;;18927;;;18948:61;;19002:4;18994:6;18990:17;18980:27;;18948:61;19055:2;19047:6;19044:14;19024:18;19021:38;19018:161;;;19101:10;19096:3;19092:20;19089:1;19082:31;19136:4;19133:1;19126:15;19164:4;19161:1;19154:15;19018:161;;18805:380;;;:::o;19190:135::-;19229:3;-1:-1:-1;;19250:17:1;;19247:43;;;19270:18;;:::i;:::-;-1:-1:-1;19317:1:1;19306:13;;19190:135::o;19330:112::-;19362:1;19388;19378:35;;19393:18;;:::i;:::-;-1:-1:-1;19427:9:1;;19330:112::o;19447:127::-;19508:10;19503:3;19499:20;19496:1;19489:31;19539:4;19536:1;19529:15;19563:4;19560:1;19553:15;19579:127;19640:10;19635:3;19631:20;19628:1;19621:31;19671:4;19668:1;19661:15;19695:4;19692:1;19685:15;19711:127;19772:10;19767:3;19763:20;19760:1;19753:31;19803:4;19800:1;19793:15;19827:4;19824:1;19817:15;19843:127;19904:10;19899:3;19895:20;19892:1;19885:31;19935:4;19932:1;19925:15;19959:4;19956:1;19949:15;19975:127;20036:10;20031:3;20027:20;20024:1;20017:31;20067:4;20064:1;20057:15;20091:4;20088:1;20081:15;20107:131;-1:-1:-1;;;;;;20181:32:1;;20171:43;;20161:71;;20228:1;20225;20218:12

Swarm Source

ipfs://2009a3dd7e955da5692ae4fb5485e26fdbcfded41e18e62d5d4682924093a5ab
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.