ETH Price: $2,239.13 (-6.40%)

Token

APEDAONFT (APDNFT)
 

Overview

Max Total Supply

0 APDNFT

Holders

20

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Filtered by Token Holder
cauchy48.eth
Balance
1 APDNFT
0xc92a8Ae80B9676eCB816e2864f33b6e0639B2060
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:
ApeDAOToken

Compiler Version
v0.8.0+commit.c7dfd78e

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 14 : ApeDAOToken.sol
pragma solidity ^0.8.0;
// SPDX-License-Identifier: UNLICENSED

import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Pausable.sol";
import "@openzeppelin/contracts/token/ERC721/ERC721.sol";

contract ApeDAOToken is ERC721, ERC721Pausable, Ownable {
    event TokenCreated(string uuid, address to);
    event BaseURISet(string uri);

    address public proxyMinter; // only account that can call mintFor()
    string private _baseTokenURI;
    mapping (uint256 => bytes32) private tokenIdToUuid;  // Maps token id to UUID
    mapping (bytes32 => uint256) private uuidToTokenId;  // Maps UUID to token id
    mapping (uint256 => string) private tokenURIMap;

    constructor(string memory baseTokenURI) ERC721("APEDAONFT", "APDNFT") {
        _baseTokenURI = baseTokenURI;
        proxyMinter = _msgSender();
    }

    function createToken(uint256 tokenId, string memory uuid, address to) public onlyOwner {
        bytes32 uuidBytes32 = UUIDStringToBytes32(uuid);
        createTokenWithId(tokenId, uuidBytes32, to);
    }

    function mintFor(address to, uint256 amount, bytes memory mintingBlob) public {
        require(proxyMinter == _msgSender(), "Caller is not the proxy minter.");
        (uint256[] memory tokenIds, bytes32[] memory uuids) = parseMintingBlob(mintingBlob, amount);
        for (uint i; i < tokenIds.length; i++) {
            createTokenWithId(tokenIds[i], uuids[i], to);
        }
    }

    function getTokenIdOfUUID(string memory uuid) public view returns (uint256) {
        bytes32 uuid32 = UUIDStringToBytes32(uuid);
        require(uuidExists(uuid32), "UUID does not exist.");
        return uuidToTokenId[uuid32];
    }

    function getUUIDOfTokenId(uint256 tokenId) public view returns (string memory) {
        require(_exists(tokenId), "Token does not exist.");
        return bytes32ToUUIDString(tokenIdToUuid[tokenId]);
    }

    function tokenURI(uint256 tokenId) public view virtual override returns (string memory) {
        require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token");
        if (bytes(tokenURIMap[tokenId]).length > 0) {
            return tokenURIMap[tokenId];
        }
        string memory uuid = bytes32ToUUIDString(tokenIdToUuid[tokenId]);
        string memory baseURI = _baseURI();
        return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, uuid)) : '';
    }

    function setBaseTokenURI(string memory uri) public onlyOwner {
        _baseTokenURI = uri;
        emit BaseURISet(uri);
    }

    function setTokenURI(uint256 tokenId, string memory uri) public onlyOwner {
        tokenURIMap[tokenId] = uri;
    }

    function clearTokenURI(uint256 tokenId) public onlyOwner {
        delete tokenURIMap[tokenId];
    }

    function pause() public virtual onlyOwner {
        _pause();
    }

    function unpause() public virtual onlyOwner {
        _unpause();
    }

    function setProxyMinter(address proxy) public onlyOwner {
        proxyMinter = proxy;
    }

    // ------- Internal functions below here:
    function createTokenWithId(uint256 tokenId, bytes32 uuid, address to) internal {
        require(!_exists(tokenId), "Token already exists.");
        _safeMint(to, tokenId);

        uuidToTokenId[uuid] = tokenId;
        tokenIdToUuid[tokenId] = uuid;
        emit TokenCreated(bytes32ToUUIDString(uuid), to);
    }

    // Parses a mintingBlob with {tokenId1}:{uuid1}{tokenId2}:{uuid2} and then returns them
    // Example: {1}:{e9071858-e63b-4f27-92d7-0603235c0b8c}{2}:{f23a1b52-e63b-3f77-42d7-3603235c1b42}
    function parseMintingBlob(bytes memory mintingBlob, uint256 amount) internal pure returns (uint256[] memory, bytes32[] memory) {
        uint256 offset = 0;
        uint256[] memory tokenIds = new uint256[](amount);
        bytes32[] memory uuids = new bytes32[](amount);
        bool isTokenId = true;
        for (uint i; i < mintingBlob.length; i++) {
            if (mintingBlob[i] == "{") {
                if (isTokenId) {
                    (uint256 tokenId, uint256 nextItem) = parseMintingBlobTokenId(mintingBlob, i + 1);
                    tokenIds[offset] = tokenId;
                    isTokenId = false;
                    i = nextItem;
                } else {
                    (bytes32 uuid, uint256 nextItem) = parseMintingBlobUUID(mintingBlob, i + 1);
                    uuids[offset] = uuid;
                    isTokenId = true;
                    offset++;
                    i = nextItem;
                }
            }
        }
        return (tokenIds, uuids);
    }

    function parseMintingBlobTokenId(bytes memory mintingBlob, uint start) internal pure returns (uint256, uint256) {
        uint256 result = 0;
        for (uint256 i = start; i < mintingBlob.length; i++) {
            if (mintingBlob[i] == "}") {
                return (result, i);
            }
            result = (result * 10) + (uint8(mintingBlob[i]) - 48);
        }
        return (result, mintingBlob.length);
    }

    function parseMintingBlobUUID(bytes memory mintingBlob, uint start) internal pure returns (bytes32, uint256) {
        bytes memory temp = new bytes(32);
        bytes32 result;
        uint32 index;
        for (uint i = start; i < mintingBlob.length; i++) {
            if (mintingBlob[i] == "}") {
                assembly {
                    result := mload(add(temp, 32))
                }
                return (result, i);
            }
            if (mintingBlob[i] == "-") {
                continue;
            }
            temp[index] = mintingBlob[i];
            index++;
        }
        assembly {
            result := mload(add(temp, 32))
        }
        return (result, mintingBlob.length);
    }

    function uuidExists(bytes32 uuid) internal view returns (bool) {
        return uuidToTokenId[uuid] != 0;
    }

    function _baseURI() internal view virtual override returns (string memory) {
        return _baseTokenURI;
    }

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

    // Converts a bytes32 UUID to a UUID string with dashes
    // e9071858e63b4f2792d70603235c0b8c => e9071858-e63b-4f27-92d7-0603235c0b8c
    function bytes32ToUUIDString(bytes32 b) internal pure returns (string memory) {
        bytes memory bytesArray = new bytes(36);
        uint j;
        for (uint256 i; i < 32; i++) {
            bytesArray[j] = b[i];
            // Add back in dashes at correct positions
            if (i == 7 || i == 11 || i == 15 || i == 19) {
                j++;
                bytesArray[j] = "-";
            }
            j++;
        }
        return string(bytesArray);
    }

    // Converts a UUID string with dashes into a bytes32 UUID without dashes
    // e9071858-e63b-4f27-92d7-0603235c0b8c => e9071858e63b4f2792d70603235c0b8c
    function UUIDStringToBytes32(string memory s) internal pure returns (bytes32) {
        bytes memory bytesArray = bytes(s);
        bytes memory noDashes = new bytes(32);
        uint index;
        for (uint256 i; i < bytesArray.length; i++) {
            if (bytesArray[i] == "-") {
                continue;
            }
            noDashes[index] = bytesArray[i];
            index++;
        }
        bytes32 result;
        assembly {
            result := mload(add(noDashes, 32))
        }
        return result;
    }
}

File 2 of 14 : IERC165.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

File 3 of 14 : ERC165.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "./IERC165.sol";

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

File 4 of 14 : Strings.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

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

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

}

File 5 of 14 : Context.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

    function _msgData() internal view virtual returns (bytes calldata) {
        this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691
        return msg.data;
    }
}

File 6 of 14 : Address.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

        uint256 size;
        // solhint-disable-next-line no-inline-assembly
        assembly { size := extcodesize(account) }
        return size > 0;
    }

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

        // solhint-disable-next-line avoid-low-level-calls, avoid-call-value
        (bool success, ) = recipient.call{ value: amount }("");
        require(success, "Address: unable to send value, recipient may have reverted");
    }

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

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

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

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

        // solhint-disable-next-line avoid-low-level-calls
        (bool success, bytes memory returndata) = target.call{ value: value }(data);
        return _verifyCallResult(success, returndata, errorMessage);
    }

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

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

        // solhint-disable-next-line avoid-low-level-calls
        (bool success, bytes memory returndata) = target.staticcall(data);
        return _verifyCallResult(success, returndata, errorMessage);
    }

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

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

        // solhint-disable-next-line avoid-low-level-calls
        (bool success, bytes memory returndata) = target.delegatecall(data);
        return _verifyCallResult(success, returndata, errorMessage);
    }

    function _verifyCallResult(bool success, bytes memory returndata, string memory errorMessage) private pure returns(bytes memory) {
        if (success) {
            return returndata;
        } else {
            // Look for revert reason and bubble it up if present
            if (returndata.length > 0) {
                // The easiest way to bubble the revert reason is using memory via assembly

                // solhint-disable-next-line no-inline-assembly
                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
}

File 7 of 14 : IERC721Metadata.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../IERC721.sol";

/**
 * @title ERC-721 Non-Fungible Token Standard, optional metadata extension
 * @dev See https://eips.ethereum.org/EIPS/eip-721
 */
interface IERC721Metadata is IERC721 {

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

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

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

File 8 of 14 : IERC721Enumerable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../IERC721.sol";

/**
 * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension
 * @dev See https://eips.ethereum.org/EIPS/eip-721
 */
interface IERC721Enumerable is IERC721 {

    /**
     * @dev Returns the total amount of tokens stored by the contract.
     */
    function totalSupply() external view returns (uint256);

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

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

File 9 of 14 : ERC721Pausable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../ERC721.sol";
import "../../../security/Pausable.sol";

/**
 * @dev ERC721 token with pausable token transfers, minting and burning.
 *
 * Useful for scenarios such as preventing trades until the end of an evaluation
 * period, or having an emergency switch for freezing all token transfers in the
 * event of a large bug.
 */
abstract contract ERC721Pausable is ERC721, Pausable {
    /**
     * @dev See {ERC721-_beforeTokenTransfer}.
     *
     * Requirements:
     *
     * - the contract must not be paused.
     */
    function _beforeTokenTransfer(address from, address to, uint256 tokenId) internal virtual override {
        super._beforeTokenTransfer(from, to, tokenId);

        require(!paused(), "ERC721Pausable: token transfer while paused");
    }
}

File 10 of 14 : IERC721Receiver.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

File 11 of 14 : IERC721.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

File 12 of 14 : ERC721.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "./IERC721.sol";
import "./IERC721Receiver.sol";
import "./extensions/IERC721Metadata.sol";
import "./extensions/IERC721Enumerable.sol";
import "../../utils/Address.sol";
import "../../utils/Context.sol";
import "../../utils/Strings.sol";
import "../../utils/introspection/ERC165.sol";

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

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        _approve(to, tokenId);
    }

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

        return _tokenApprovals[tokenId];
    }

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

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

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

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

        _transfer(from, to, tokenId);
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        _beforeTokenTransfer(from, to, tokenId);

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

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

        emit Transfer(from, to, tokenId);
    }

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

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

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

File 13 of 14 : Pausable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

/**
 * @dev Contract module which allows children to implement an emergency stop
 * mechanism that can be triggered by an authorized account.
 *
 * This module is used through inheritance. It will make available the
 * modifiers `whenNotPaused` and `whenPaused`, which can be applied to
 * the functions of your contract. Note that they will not be pausable by
 * simply including this module, only once the modifiers are put in place.
 */
abstract contract Pausable is Context {
    /**
     * @dev Emitted when the pause is triggered by `account`.
     */
    event Paused(address account);

    /**
     * @dev Emitted when the pause is lifted by `account`.
     */
    event Unpaused(address account);

    bool private _paused;

    /**
     * @dev Initializes the contract in unpaused state.
     */
    constructor () {
        _paused = false;
    }

    /**
     * @dev Returns true if the contract is paused, and false otherwise.
     */
    function paused() public view virtual returns (bool) {
        return _paused;
    }

    /**
     * @dev Modifier to make a function callable only when the contract is not paused.
     *
     * Requirements:
     *
     * - The contract must not be paused.
     */
    modifier whenNotPaused() {
        require(!paused(), "Pausable: paused");
        _;
    }

    /**
     * @dev Modifier to make a function callable only when the contract is paused.
     *
     * Requirements:
     *
     * - The contract must be paused.
     */
    modifier whenPaused() {
        require(paused(), "Pausable: not paused");
        _;
    }

    /**
     * @dev Triggers stopped state.
     *
     * Requirements:
     *
     * - The contract must not be paused.
     */
    function _pause() internal virtual whenNotPaused {
        _paused = true;
        emit Paused(_msgSender());
    }

    /**
     * @dev Returns to normal state.
     *
     * Requirements:
     *
     * - The contract must be paused.
     */
    function _unpause() internal virtual whenPaused {
        _paused = false;
        emit Unpaused(_msgSender());
    }
}

File 14 of 14 : Ownable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    constructor () {
        address msgSender = _msgSender();
        _owner = msgSender;
        emit OwnershipTransferred(address(0), msgSender);
    }

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

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

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

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

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"string","name":"baseTokenURI","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":false,"internalType":"string","name":"uri","type":"string"}],"name":"BaseURISet","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":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"uuid","type":"string"},{"indexed":false,"internalType":"address","name":"to","type":"address"}],"name":"TokenCreated","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"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"clearTokenURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"string","name":"uuid","type":"string"},{"internalType":"address","name":"to","type":"address"}],"name":"createToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"uuid","type":"string"}],"name":"getTokenIdOfUUID","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getUUIDOfTokenId","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes","name":"mintingBlob","type":"bytes"}],"name":"mintFor","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"proxyMinter","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"uri","type":"string"}],"name":"setBaseTokenURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"proxy","type":"address"}],"name":"setProxyMinter","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"string","name":"uri","type":"string"}],"name":"setTokenURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60806040523480156200001157600080fd5b5060405162002aad38038062002aad8339810160408190526200003491620001f9565b6040805180820182526009815268105411511053d3919560ba1b60208083019182528351808501909452600684526510541113919560d21b908401528151919291620000839160009162000153565b5080516200009990600190602084019062000153565b50506006805460ff19169055506000620000b26200014f565b60068054610100600160a81b0319166101006001600160a01b03841690810291909117909155604051919250906000907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a35080516200011d90600890602084019062000153565b50620001286200014f565b600780546001600160a01b0319166001600160a01b0392909216919091179055506200031b565b3390565b8280546200016190620002c8565b90600052602060002090601f016020900481019282620001855760008555620001d0565b82601f10620001a057805160ff1916838001178555620001d0565b82800160010185558215620001d0579182015b82811115620001d0578251825591602001919060010190620001b3565b50620001de929150620001e2565b5090565b5b80821115620001de5760008155600101620001e3565b600060208083850312156200020c578182fd5b82516001600160401b038082111562000223578384fd5b818501915085601f83011262000237578384fd5b8151818111156200024c576200024c62000305565b604051601f8201601f191681018501838111828210171562000272576200027262000305565b604052818152838201850188101562000289578586fd5b8592505b81831015620002ac57838301850151818401860152918401916200028d565b81831115620002bd57858583830101525b979650505050505050565b600281046001821680620002dd57607f821691505b60208210811415620002ff57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052604160045260246000fd5b612782806200032b6000396000f3fe608060405234801561001057600080fd5b50600436106101c45760003560e01c80636352211e116100f9578063a22cb46511610097578063c87b56dd11610071578063c87b56dd14610383578063c91b1c0114610396578063e985e9c51461039e578063f2fde38b146103b1576101c4565b8063a22cb4651461034a578063a6e23daf1461035d578063b88d4fde14610370576101c4565b806380eae808116100d357806380eae8081461031f5780638456cb59146103325780638da5cb5b1461033a57806395d89b4114610342576101c4565b80636352211e146102e457806370a08231146102f7578063715018a614610317576101c4565b806319ee6e3f1161016657806330176e131161014057806330176e13146102ae5780633f4ba83a146102c157806342842e0e146102c95780635c975abb146102dc576101c4565b806319ee6e3f1461027557806323b872dd14610288578063299b1a861461029b576101c4565b8063081812fc116101a2578063081812fc1461021c578063095ea7b31461023c57806314c00ed31461024f578063162094c414610262576101c4565b806301390f5c146101c957806301ffc9a7146101de57806306fdde0314610207575b600080fd5b6101dc6101d7366004611e78565b6103c4565b005b6101f16101ec366004611e0d565b610426565b6040516101fe9190611fd6565b60405180910390f35b61020f61046e565b6040516101fe9190611fe1565b61022f61022a366004611e78565b610500565b6040516101fe9190611f85565b6101dc61024a366004611d8f565b610543565b61020f61025d366004611e78565b6105db565b6101dc610270366004611e90565b61061a565b6101dc610283366004611db8565b610678565b6101dc610296366004611cb4565b61073d565b6101dc6102a9366004611ed5565b610775565b6101dc6102bc366004611e45565b6107d2565b6101dc61085f565b6101dc6102d7366004611cb4565b6108a8565b6101f16108c3565b61022f6102f2366004611e78565b6108cc565b61030a610305366004611c61565b610901565b6040516101fe91906125ea565b6101dc610945565b6101dc61032d366004611c61565b6109d4565b6101dc610a35565b61022f610a7c565b61020f610a90565b6101dc610358366004611d55565b610a9f565b61030a61036b366004611e45565b610b6d565b6101dc61037e366004611cef565b610bb5565b61020f610391366004611e78565b610bee565b61022f610d43565b6101f16103ac366004611c82565b610d52565b6101dc6103bf366004611c61565b610d80565b6103cc610e4c565b6001600160a01b03166103dd610a7c565b6001600160a01b03161461040c5760405162461bcd60e51b81526004016104039061245d565b60405180910390fd5b6000818152600b6020526040812061042391611af4565b50565b60006001600160e01b031982166380ac58cd60e01b148061045757506001600160e01b03198216635b5e139f60e01b145b80610466575061046682610e50565b90505b919050565b60606000805461047d90612690565b80601f01602080910402602001604051908101604052809291908181526020018280546104a990612690565b80156104f65780601f106104cb576101008083540402835291602001916104f6565b820191906000526020600020905b8154815290600101906020018083116104d957829003601f168201915b5050505050905090565b600061050b82610e69565b6105275760405162461bcd60e51b815260040161040390612411565b506000908152600460205260409020546001600160a01b031690565b600061054e826108cc565b9050806001600160a01b0316836001600160a01b031614156105825760405162461bcd60e51b81526004016104039061252a565b806001600160a01b0316610594610e4c565b6001600160a01b031614806105b057506105b0816103ac610e4c565b6105cc5760405162461bcd60e51b815260040161040390612257565b6105d68383610e86565b505050565b60606105e682610e69565b6106025760405162461bcd60e51b8152600401610403906123e2565b60008281526009602052604090205461046690610ef4565b610622610e4c565b6001600160a01b0316610633610a7c565b6001600160a01b0316146106595760405162461bcd60e51b81526004016104039061245d565b6000828152600b6020908152604090912082516105d692840190611b30565b610680610e4c565b6007546001600160a01b039081169116146106ad5760405162461bcd60e51b8152600401610403906122b4565b6000806106ba838561101d565b9150915060005b8251811015610735576107238382815181106106ed57634e487b7160e01b600052603260045260246000fd5b602002602001015183838151811061071557634e487b7160e01b600052603260045260246000fd5b6020026020010151886111ed565b8061072d816126cb565b9150506106c1565b505050505050565b61074e610748610e4c565b82611284565b61076a5760405162461bcd60e51b81526004016104039061256b565b6105d6838383611301565b61077d610e4c565b6001600160a01b031661078e610a7c565b6001600160a01b0316146107b45760405162461bcd60e51b81526004016104039061245d565b60006107bf8361142e565b90506107cc8482846111ed565b50505050565b6107da610e4c565b6001600160a01b03166107eb610a7c565b6001600160a01b0316146108115760405162461bcd60e51b81526004016104039061245d565b8051610824906008906020840190611b30565b507ff9c7803e94e0d3c02900d8a90893a6d5e90dd04d32a4cfe825520f82bf9f32f6816040516108549190611fe1565b60405180910390a150565b610867610e4c565b6001600160a01b0316610878610a7c565b6001600160a01b03161461089e5760405162461bcd60e51b81526004016104039061245d565b6108a661152f565b565b6105d683838360405180602001604052806000815250610bb5565b60065460ff1690565b6000818152600260205260408120546001600160a01b0316806104665760405162461bcd60e51b815260040161040390612335565b60006001600160a01b0382166109295760405162461bcd60e51b8152600401610403906122eb565b506001600160a01b031660009081526003602052604090205490565b61094d610e4c565b6001600160a01b031661095e610a7c565b6001600160a01b0316146109845760405162461bcd60e51b81526004016104039061245d565b60065460405160009161010090046001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a360068054610100600160a81b0319169055565b6109dc610e4c565b6001600160a01b03166109ed610a7c565b6001600160a01b031614610a135760405162461bcd60e51b81526004016104039061245d565b600780546001600160a01b0319166001600160a01b0392909216919091179055565b610a3d610e4c565b6001600160a01b0316610a4e610a7c565b6001600160a01b031614610a745760405162461bcd60e51b81526004016104039061245d565b6108a661159d565b60065461010090046001600160a01b031690565b60606001805461047d90612690565b610aa7610e4c565b6001600160a01b0316826001600160a01b03161415610ad85760405162461bcd60e51b8152600401610403906121aa565b8060056000610ae5610e4c565b6001600160a01b03908116825260208083019390935260409182016000908120918716808252919093529120805460ff191692151592909217909155610b29610e4c565b6001600160a01b03167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051610b619190611fd6565b60405180910390a35050565b600080610b798361142e565b9050610b84816115f8565b610ba05760405162461bcd60e51b8152600401610403906125bc565b6000908152600a602052604090205492915050565b610bc6610bc0610e4c565b83611284565b610be25760405162461bcd60e51b81526004016104039061256b565b6107cc8484848461160c565b6060610bf982610e69565b610c155760405162461bcd60e51b8152600401610403906124db565b6000828152600b602052604081208054610c2e90612690565b90501115610cd4576000828152600b602052604090208054610c4f90612690565b80601f0160208091040260200160405190810160405280929190818152602001828054610c7b90612690565b8015610cc85780601f10610c9d57610100808354040283529160200191610cc8565b820191906000526020600020905b815481529060010190602001808311610cab57829003601f168201915b50505050509050610469565b600082815260096020526040812054610cec90610ef4565b90506000610cf861163f565b90506000815111610d185760405180602001604052806000815250610d3b565b8082604051602001610d2b929190611f56565b6040516020818303038152906040525b949350505050565b6007546001600160a01b031681565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b610d88610e4c565b6001600160a01b0316610d99610a7c565b6001600160a01b031614610dbf5760405162461bcd60e51b81526004016104039061245d565b6001600160a01b038116610de55760405162461bcd60e51b8152600401610403906120e9565b6006546040516001600160a01b0380841692610100900416907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3600680546001600160a01b0390921661010002610100600160a81b0319909216919091179055565b3390565b6001600160e01b031981166301ffc9a760e01b14919050565b6000908152600260205260409020546001600160a01b0316151590565b600081815260046020526040902080546001600160a01b0319166001600160a01b0384169081179091558190610ebb826108cc565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6040805160248082526060828101909352600091906020820181803683370190505090506000805b602081101561101457848160208110610f4557634e487b7160e01b600052603260045260246000fd5b1a60f81b838381518110610f6957634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a9053508060071480610f8f575080600b145b80610f9a575080600f145b80610fa55750806013145b15610ff45781610fb4816126cb565b925050602d60f81b838381518110610fdc57634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a9053505b81610ffe816126cb565b925050808061100c906126cb565b915050610f1c565b50909392505050565b6060806000808467ffffffffffffffff81111561104a57634e487b7160e01b600052604160045260246000fd5b604051908082528060200260200182016040528015611073578160200160208202803683370190505b50905060008567ffffffffffffffff81111561109f57634e487b7160e01b600052604160045260246000fd5b6040519080825280602002602001820160405280156110c8578160200160208202803683370190505b509050600160005b88518110156111dd578881815181106110f957634e487b7160e01b600052603260045260246000fd5b6020910101516001600160f81b031916607b60f81b14156111cb57811561116e576000806111318b61112c8560016125f3565b61164e565b915091508186888151811061115657634e487b7160e01b600052603260045260246000fd5b60209081029190910101526000935091506111cb9050565b6000806111858b6111808560016125f3565b61170d565b91509150818588815181106111aa57634e487b7160e01b600052603260045260246000fd5b602090810291909101015260019350866111c3816126cb565b975090925050505b806111d5816126cb565b9150506110d0565b50919450925050505b9250929050565b6111f683610e69565b156112135760405162461bcd60e51b81526004016104039061237e565b61121d8184611868565b6000828152600a60209081526040808320869055858352600990915290208290557ffdc90d498a1602314464a0907c52c51090745809fb1655b49df42e9333129f7061126883610ef4565b82604051611277929190611ff4565b60405180910390a1505050565b600061128f82610e69565b6112ab5760405162461bcd60e51b8152600401610403906121e1565b60006112b6836108cc565b9050806001600160a01b0316846001600160a01b031614806112f15750836001600160a01b03166112e684610500565b6001600160a01b0316145b80610d3b5750610d3b8185610d52565b826001600160a01b0316611314826108cc565b6001600160a01b03161461133a5760405162461bcd60e51b815260040161040390612492565b6001600160a01b0382166113605760405162461bcd60e51b815260040161040390612166565b61136b838383611886565b611376600082610e86565b6001600160a01b038316600090815260036020526040812080546001929061139f90849061262a565b90915550506001600160a01b03821660009081526003602052604081208054600192906113cd9084906125f3565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b604080516020808252818301909252600091839183916020820181803683370190505090506000805b83518110156115225783818151811061148057634e487b7160e01b600052603260045260246000fd5b6020910101516001600160f81b031916602d60f81b14156114a057611510565b8381815181106114c057634e487b7160e01b600052603260045260246000fd5b602001015160f81c60f81b8383815181106114eb57634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a9053508161150c816126cb565b9250505b8061151a816126cb565b915050611457565b5050602001519392505050565b6115376108c3565b6115535760405162461bcd60e51b815260040161040390612069565b6006805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa611586610e4c565b6040516115939190611f85565b60405180910390a1565b6115a56108c3565b156115c25760405162461bcd60e51b81526004016104039061222d565b6006805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258611586610e4c565b6000908152600a6020526040902054151590565b611617848484611301565b61162384848484611891565b6107cc5760405162461bcd60e51b815260040161040390612097565b60606008805461047d90612690565b60008080835b85518110156117025785818151811061167d57634e487b7160e01b600052603260045260246000fd5b6020910101516001600160f81b031916607d60f81b14156116a25790925090506111e6565b60308682815181106116c457634e487b7160e01b600052603260045260246000fd5b01602001516116d6919060f81c612641565b60ff166116e483600a61260b565b6116ee91906125f3565b9150806116fa816126cb565b915050611654565b509351939492505050565b60408051602080825281830190925260009182918291602082018180368337019050509050600080855b87518110156118575787818151811061176057634e487b7160e01b600052603260045260246000fd5b6020910101516001600160f81b031916607d60f81b141561178f576020939093015194509192506111e6915050565b8781815181106117af57634e487b7160e01b600052603260045260246000fd5b6020910101516001600160f81b031916602d60f81b14156117cf57611845565b8781815181106117ef57634e487b7160e01b600052603260045260246000fd5b602001015160f81c60f81b848363ffffffff168151811061182057634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a90535081611841816126e6565b9250505b8061184f816126cb565b915050611737565b505050602001519351939492505050565b6118828282604051806020016040528060008152506119ac565b5050565b6105d68383836119df565b60006118a5846001600160a01b0316611a0f565b156119a157836001600160a01b031663150b7a026118c1610e4c565b8786866040518563ffffffff1660e01b81526004016118e39493929190611f99565b602060405180830381600087803b1580156118fd57600080fd5b505af192505050801561192d575060408051601f3d908101601f1916820190925261192a91810190611e29565b60015b611987573d80801561195b576040519150601f19603f3d011682016040523d82523d6000602084013e611960565b606091505b50805161197f5760405162461bcd60e51b815260040161040390612097565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050610d3b565b506001949350505050565b6119b68383611a15565b6119c36000848484611891565b6105d65760405162461bcd60e51b815260040161040390612097565b6119ea8383836105d6565b6119f26108c3565b156105d65760405162461bcd60e51b81526004016104039061201e565b3b151590565b6001600160a01b038216611a3b5760405162461bcd60e51b8152600401610403906123ad565b611a4481610e69565b15611a615760405162461bcd60e51b81526004016104039061212f565b611a6d60008383611886565b6001600160a01b0382166000908152600360205260408120805460019290611a969084906125f3565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b508054611b0090612690565b6000825580601f10611b125750610423565b601f0160209004906000526020600020908101906104239190611bb4565b828054611b3c90612690565b90600052602060002090601f016020900481019282611b5e5760008555611ba4565b82601f10611b7757805160ff1916838001178555611ba4565b82800160010185558215611ba4579182015b82811115611ba4578251825591602001919060010190611b89565b50611bb0929150611bb4565b5090565b5b80821115611bb05760008155600101611bb5565b80356001600160a01b038116811461046957600080fd5b600082601f830112611bf0578081fd5b813567ffffffffffffffff80821115611c0b57611c0b612720565b604051601f8301601f191681016020018281118282101715611c2f57611c2f612720565b604052828152848301602001861015611c46578384fd5b82602086016020830137918201602001929092529392505050565b600060208284031215611c72578081fd5b611c7b82611bc9565b9392505050565b60008060408385031215611c94578081fd5b611c9d83611bc9565b9150611cab60208401611bc9565b90509250929050565b600080600060608486031215611cc8578081fd5b611cd184611bc9565b9250611cdf60208501611bc9565b9150604084013590509250925092565b60008060008060808587031215611d04578081fd5b611d0d85611bc9565b9350611d1b60208601611bc9565b925060408501359150606085013567ffffffffffffffff811115611d3d578182fd5b611d4987828801611be0565b91505092959194509250565b60008060408385031215611d67578182fd5b611d7083611bc9565b915060208301358015158114611d84578182fd5b809150509250929050565b60008060408385031215611da1578182fd5b611daa83611bc9565b946020939093013593505050565b600080600060608486031215611dcc578283fd5b611dd584611bc9565b925060208401359150604084013567ffffffffffffffff811115611df7578182fd5b611e0386828701611be0565b9150509250925092565b600060208284031215611e1e578081fd5b8135611c7b81612736565b600060208284031215611e3a578081fd5b8151611c7b81612736565b600060208284031215611e56578081fd5b813567ffffffffffffffff811115611e6c578182fd5b610d3b84828501611be0565b600060208284031215611e89578081fd5b5035919050565b60008060408385031215611ea2578182fd5b82359150602083013567ffffffffffffffff811115611ebf578182fd5b611ecb85828601611be0565b9150509250929050565b600080600060608486031215611ee9578283fd5b83359250602084013567ffffffffffffffff811115611f06578283fd5b611f1286828701611be0565b925050611f2160408501611bc9565b90509250925092565b60008151808452611f42816020860160208601612664565b601f01601f19169290920160200192915050565b60008351611f68818460208801612664565b835190830190611f7c818360208801612664565b01949350505050565b6001600160a01b0391909116815260200190565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090611fcc90830184611f2a565b9695505050505050565b901515815260200190565b600060208252611c7b6020830184611f2a565b6000604082526120076040830185611f2a565b905060018060a01b03831660208301529392505050565b6020808252602b908201527f4552433732315061757361626c653a20746f6b656e207472616e73666572207760408201526a1a1a5b19481c185d5cd95960aa1b606082015260800190565b60208082526014908201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b604082015260600190565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b60208082526026908201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160408201526564647265737360d01b606082015260800190565b6020808252601c908201527f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000604082015260600190565b60208082526024908201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646040820152637265737360e01b606082015260800190565b60208082526019908201527f4552433732313a20617070726f766520746f2063616c6c657200000000000000604082015260600190565b6020808252602c908201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860408201526b34b9ba32b73a103a37b5b2b760a11b606082015260800190565b60208082526010908201526f14185d5cd8589b194e881c185d5cd95960821b604082015260600190565b60208082526038908201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760408201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000606082015260800190565b6020808252601f908201527f43616c6c6572206973206e6f74207468652070726f7879206d696e7465722e00604082015260600190565b6020808252602a908201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604082015269726f206164647265737360b01b606082015260800190565b60208082526029908201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460408201526832b73a103a37b5b2b760b91b606082015260800190565b6020808252601590820152742a37b5b2b71030b63932b0b23c9032bc34b9ba399760591b604082015260600190565b6020808252818101527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373604082015260600190565b6020808252601590820152742a37b5b2b7103237b2b9903737ba1032bc34b9ba1760591b604082015260600190565b6020808252602c908201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860408201526b34b9ba32b73a103a37b5b2b760a11b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526029908201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960408201526839903737ba1037bbb760b91b606082015260800190565b6020808252602f908201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60408201526e3732bc34b9ba32b73a103a37b5b2b760891b606082015260800190565b60208082526021908201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656040820152603960f91b606082015260800190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b6020808252601490820152732aaaa4a2103237b2b9903737ba1032bc34b9ba1760611b604082015260600190565b90815260200190565b600082198211156126065761260661270a565b500190565b60008160001904831182151516156126255761262561270a565b500290565b60008282101561263c5761263c61270a565b500390565b600060ff821660ff84168082101561265b5761265b61270a565b90039392505050565b60005b8381101561267f578181015183820152602001612667565b838111156107cc5750506000910152565b6002810460018216806126a457607f821691505b602082108114156126c557634e487b7160e01b600052602260045260246000fd5b50919050565b60006000198214156126df576126df61270a565b5060010190565b600063ffffffff808316818114156127005761270061270a565b6001019392505050565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160e01b03198116811461042357600080fdfea2646970667358221220c2202fbd2e5d6421fd39d840cf811fa288f62555e0dc3748c213a2fef0dfe26c64736f6c634300080000330000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000002f68747470733a2f2f6170692e617065736f6e6c322e636f6d2f6170692f76312f657468657265756d2f746f6b656e2f0000000000000000000000000000000000

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106101c45760003560e01c80636352211e116100f9578063a22cb46511610097578063c87b56dd11610071578063c87b56dd14610383578063c91b1c0114610396578063e985e9c51461039e578063f2fde38b146103b1576101c4565b8063a22cb4651461034a578063a6e23daf1461035d578063b88d4fde14610370576101c4565b806380eae808116100d357806380eae8081461031f5780638456cb59146103325780638da5cb5b1461033a57806395d89b4114610342576101c4565b80636352211e146102e457806370a08231146102f7578063715018a614610317576101c4565b806319ee6e3f1161016657806330176e131161014057806330176e13146102ae5780633f4ba83a146102c157806342842e0e146102c95780635c975abb146102dc576101c4565b806319ee6e3f1461027557806323b872dd14610288578063299b1a861461029b576101c4565b8063081812fc116101a2578063081812fc1461021c578063095ea7b31461023c57806314c00ed31461024f578063162094c414610262576101c4565b806301390f5c146101c957806301ffc9a7146101de57806306fdde0314610207575b600080fd5b6101dc6101d7366004611e78565b6103c4565b005b6101f16101ec366004611e0d565b610426565b6040516101fe9190611fd6565b60405180910390f35b61020f61046e565b6040516101fe9190611fe1565b61022f61022a366004611e78565b610500565b6040516101fe9190611f85565b6101dc61024a366004611d8f565b610543565b61020f61025d366004611e78565b6105db565b6101dc610270366004611e90565b61061a565b6101dc610283366004611db8565b610678565b6101dc610296366004611cb4565b61073d565b6101dc6102a9366004611ed5565b610775565b6101dc6102bc366004611e45565b6107d2565b6101dc61085f565b6101dc6102d7366004611cb4565b6108a8565b6101f16108c3565b61022f6102f2366004611e78565b6108cc565b61030a610305366004611c61565b610901565b6040516101fe91906125ea565b6101dc610945565b6101dc61032d366004611c61565b6109d4565b6101dc610a35565b61022f610a7c565b61020f610a90565b6101dc610358366004611d55565b610a9f565b61030a61036b366004611e45565b610b6d565b6101dc61037e366004611cef565b610bb5565b61020f610391366004611e78565b610bee565b61022f610d43565b6101f16103ac366004611c82565b610d52565b6101dc6103bf366004611c61565b610d80565b6103cc610e4c565b6001600160a01b03166103dd610a7c565b6001600160a01b03161461040c5760405162461bcd60e51b81526004016104039061245d565b60405180910390fd5b6000818152600b6020526040812061042391611af4565b50565b60006001600160e01b031982166380ac58cd60e01b148061045757506001600160e01b03198216635b5e139f60e01b145b80610466575061046682610e50565b90505b919050565b60606000805461047d90612690565b80601f01602080910402602001604051908101604052809291908181526020018280546104a990612690565b80156104f65780601f106104cb576101008083540402835291602001916104f6565b820191906000526020600020905b8154815290600101906020018083116104d957829003601f168201915b5050505050905090565b600061050b82610e69565b6105275760405162461bcd60e51b815260040161040390612411565b506000908152600460205260409020546001600160a01b031690565b600061054e826108cc565b9050806001600160a01b0316836001600160a01b031614156105825760405162461bcd60e51b81526004016104039061252a565b806001600160a01b0316610594610e4c565b6001600160a01b031614806105b057506105b0816103ac610e4c565b6105cc5760405162461bcd60e51b815260040161040390612257565b6105d68383610e86565b505050565b60606105e682610e69565b6106025760405162461bcd60e51b8152600401610403906123e2565b60008281526009602052604090205461046690610ef4565b610622610e4c565b6001600160a01b0316610633610a7c565b6001600160a01b0316146106595760405162461bcd60e51b81526004016104039061245d565b6000828152600b6020908152604090912082516105d692840190611b30565b610680610e4c565b6007546001600160a01b039081169116146106ad5760405162461bcd60e51b8152600401610403906122b4565b6000806106ba838561101d565b9150915060005b8251811015610735576107238382815181106106ed57634e487b7160e01b600052603260045260246000fd5b602002602001015183838151811061071557634e487b7160e01b600052603260045260246000fd5b6020026020010151886111ed565b8061072d816126cb565b9150506106c1565b505050505050565b61074e610748610e4c565b82611284565b61076a5760405162461bcd60e51b81526004016104039061256b565b6105d6838383611301565b61077d610e4c565b6001600160a01b031661078e610a7c565b6001600160a01b0316146107b45760405162461bcd60e51b81526004016104039061245d565b60006107bf8361142e565b90506107cc8482846111ed565b50505050565b6107da610e4c565b6001600160a01b03166107eb610a7c565b6001600160a01b0316146108115760405162461bcd60e51b81526004016104039061245d565b8051610824906008906020840190611b30565b507ff9c7803e94e0d3c02900d8a90893a6d5e90dd04d32a4cfe825520f82bf9f32f6816040516108549190611fe1565b60405180910390a150565b610867610e4c565b6001600160a01b0316610878610a7c565b6001600160a01b03161461089e5760405162461bcd60e51b81526004016104039061245d565b6108a661152f565b565b6105d683838360405180602001604052806000815250610bb5565b60065460ff1690565b6000818152600260205260408120546001600160a01b0316806104665760405162461bcd60e51b815260040161040390612335565b60006001600160a01b0382166109295760405162461bcd60e51b8152600401610403906122eb565b506001600160a01b031660009081526003602052604090205490565b61094d610e4c565b6001600160a01b031661095e610a7c565b6001600160a01b0316146109845760405162461bcd60e51b81526004016104039061245d565b60065460405160009161010090046001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a360068054610100600160a81b0319169055565b6109dc610e4c565b6001600160a01b03166109ed610a7c565b6001600160a01b031614610a135760405162461bcd60e51b81526004016104039061245d565b600780546001600160a01b0319166001600160a01b0392909216919091179055565b610a3d610e4c565b6001600160a01b0316610a4e610a7c565b6001600160a01b031614610a745760405162461bcd60e51b81526004016104039061245d565b6108a661159d565b60065461010090046001600160a01b031690565b60606001805461047d90612690565b610aa7610e4c565b6001600160a01b0316826001600160a01b03161415610ad85760405162461bcd60e51b8152600401610403906121aa565b8060056000610ae5610e4c565b6001600160a01b03908116825260208083019390935260409182016000908120918716808252919093529120805460ff191692151592909217909155610b29610e4c565b6001600160a01b03167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051610b619190611fd6565b60405180910390a35050565b600080610b798361142e565b9050610b84816115f8565b610ba05760405162461bcd60e51b8152600401610403906125bc565b6000908152600a602052604090205492915050565b610bc6610bc0610e4c565b83611284565b610be25760405162461bcd60e51b81526004016104039061256b565b6107cc8484848461160c565b6060610bf982610e69565b610c155760405162461bcd60e51b8152600401610403906124db565b6000828152600b602052604081208054610c2e90612690565b90501115610cd4576000828152600b602052604090208054610c4f90612690565b80601f0160208091040260200160405190810160405280929190818152602001828054610c7b90612690565b8015610cc85780601f10610c9d57610100808354040283529160200191610cc8565b820191906000526020600020905b815481529060010190602001808311610cab57829003601f168201915b50505050509050610469565b600082815260096020526040812054610cec90610ef4565b90506000610cf861163f565b90506000815111610d185760405180602001604052806000815250610d3b565b8082604051602001610d2b929190611f56565b6040516020818303038152906040525b949350505050565b6007546001600160a01b031681565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b610d88610e4c565b6001600160a01b0316610d99610a7c565b6001600160a01b031614610dbf5760405162461bcd60e51b81526004016104039061245d565b6001600160a01b038116610de55760405162461bcd60e51b8152600401610403906120e9565b6006546040516001600160a01b0380841692610100900416907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3600680546001600160a01b0390921661010002610100600160a81b0319909216919091179055565b3390565b6001600160e01b031981166301ffc9a760e01b14919050565b6000908152600260205260409020546001600160a01b0316151590565b600081815260046020526040902080546001600160a01b0319166001600160a01b0384169081179091558190610ebb826108cc565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6040805160248082526060828101909352600091906020820181803683370190505090506000805b602081101561101457848160208110610f4557634e487b7160e01b600052603260045260246000fd5b1a60f81b838381518110610f6957634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a9053508060071480610f8f575080600b145b80610f9a575080600f145b80610fa55750806013145b15610ff45781610fb4816126cb565b925050602d60f81b838381518110610fdc57634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a9053505b81610ffe816126cb565b925050808061100c906126cb565b915050610f1c565b50909392505050565b6060806000808467ffffffffffffffff81111561104a57634e487b7160e01b600052604160045260246000fd5b604051908082528060200260200182016040528015611073578160200160208202803683370190505b50905060008567ffffffffffffffff81111561109f57634e487b7160e01b600052604160045260246000fd5b6040519080825280602002602001820160405280156110c8578160200160208202803683370190505b509050600160005b88518110156111dd578881815181106110f957634e487b7160e01b600052603260045260246000fd5b6020910101516001600160f81b031916607b60f81b14156111cb57811561116e576000806111318b61112c8560016125f3565b61164e565b915091508186888151811061115657634e487b7160e01b600052603260045260246000fd5b60209081029190910101526000935091506111cb9050565b6000806111858b6111808560016125f3565b61170d565b91509150818588815181106111aa57634e487b7160e01b600052603260045260246000fd5b602090810291909101015260019350866111c3816126cb565b975090925050505b806111d5816126cb565b9150506110d0565b50919450925050505b9250929050565b6111f683610e69565b156112135760405162461bcd60e51b81526004016104039061237e565b61121d8184611868565b6000828152600a60209081526040808320869055858352600990915290208290557ffdc90d498a1602314464a0907c52c51090745809fb1655b49df42e9333129f7061126883610ef4565b82604051611277929190611ff4565b60405180910390a1505050565b600061128f82610e69565b6112ab5760405162461bcd60e51b8152600401610403906121e1565b60006112b6836108cc565b9050806001600160a01b0316846001600160a01b031614806112f15750836001600160a01b03166112e684610500565b6001600160a01b0316145b80610d3b5750610d3b8185610d52565b826001600160a01b0316611314826108cc565b6001600160a01b03161461133a5760405162461bcd60e51b815260040161040390612492565b6001600160a01b0382166113605760405162461bcd60e51b815260040161040390612166565b61136b838383611886565b611376600082610e86565b6001600160a01b038316600090815260036020526040812080546001929061139f90849061262a565b90915550506001600160a01b03821660009081526003602052604081208054600192906113cd9084906125f3565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b604080516020808252818301909252600091839183916020820181803683370190505090506000805b83518110156115225783818151811061148057634e487b7160e01b600052603260045260246000fd5b6020910101516001600160f81b031916602d60f81b14156114a057611510565b8381815181106114c057634e487b7160e01b600052603260045260246000fd5b602001015160f81c60f81b8383815181106114eb57634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a9053508161150c816126cb565b9250505b8061151a816126cb565b915050611457565b5050602001519392505050565b6115376108c3565b6115535760405162461bcd60e51b815260040161040390612069565b6006805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa611586610e4c565b6040516115939190611f85565b60405180910390a1565b6115a56108c3565b156115c25760405162461bcd60e51b81526004016104039061222d565b6006805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258611586610e4c565b6000908152600a6020526040902054151590565b611617848484611301565b61162384848484611891565b6107cc5760405162461bcd60e51b815260040161040390612097565b60606008805461047d90612690565b60008080835b85518110156117025785818151811061167d57634e487b7160e01b600052603260045260246000fd5b6020910101516001600160f81b031916607d60f81b14156116a25790925090506111e6565b60308682815181106116c457634e487b7160e01b600052603260045260246000fd5b01602001516116d6919060f81c612641565b60ff166116e483600a61260b565b6116ee91906125f3565b9150806116fa816126cb565b915050611654565b509351939492505050565b60408051602080825281830190925260009182918291602082018180368337019050509050600080855b87518110156118575787818151811061176057634e487b7160e01b600052603260045260246000fd5b6020910101516001600160f81b031916607d60f81b141561178f576020939093015194509192506111e6915050565b8781815181106117af57634e487b7160e01b600052603260045260246000fd5b6020910101516001600160f81b031916602d60f81b14156117cf57611845565b8781815181106117ef57634e487b7160e01b600052603260045260246000fd5b602001015160f81c60f81b848363ffffffff168151811061182057634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a90535081611841816126e6565b9250505b8061184f816126cb565b915050611737565b505050602001519351939492505050565b6118828282604051806020016040528060008152506119ac565b5050565b6105d68383836119df565b60006118a5846001600160a01b0316611a0f565b156119a157836001600160a01b031663150b7a026118c1610e4c565b8786866040518563ffffffff1660e01b81526004016118e39493929190611f99565b602060405180830381600087803b1580156118fd57600080fd5b505af192505050801561192d575060408051601f3d908101601f1916820190925261192a91810190611e29565b60015b611987573d80801561195b576040519150601f19603f3d011682016040523d82523d6000602084013e611960565b606091505b50805161197f5760405162461bcd60e51b815260040161040390612097565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050610d3b565b506001949350505050565b6119b68383611a15565b6119c36000848484611891565b6105d65760405162461bcd60e51b815260040161040390612097565b6119ea8383836105d6565b6119f26108c3565b156105d65760405162461bcd60e51b81526004016104039061201e565b3b151590565b6001600160a01b038216611a3b5760405162461bcd60e51b8152600401610403906123ad565b611a4481610e69565b15611a615760405162461bcd60e51b81526004016104039061212f565b611a6d60008383611886565b6001600160a01b0382166000908152600360205260408120805460019290611a969084906125f3565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b508054611b0090612690565b6000825580601f10611b125750610423565b601f0160209004906000526020600020908101906104239190611bb4565b828054611b3c90612690565b90600052602060002090601f016020900481019282611b5e5760008555611ba4565b82601f10611b7757805160ff1916838001178555611ba4565b82800160010185558215611ba4579182015b82811115611ba4578251825591602001919060010190611b89565b50611bb0929150611bb4565b5090565b5b80821115611bb05760008155600101611bb5565b80356001600160a01b038116811461046957600080fd5b600082601f830112611bf0578081fd5b813567ffffffffffffffff80821115611c0b57611c0b612720565b604051601f8301601f191681016020018281118282101715611c2f57611c2f612720565b604052828152848301602001861015611c46578384fd5b82602086016020830137918201602001929092529392505050565b600060208284031215611c72578081fd5b611c7b82611bc9565b9392505050565b60008060408385031215611c94578081fd5b611c9d83611bc9565b9150611cab60208401611bc9565b90509250929050565b600080600060608486031215611cc8578081fd5b611cd184611bc9565b9250611cdf60208501611bc9565b9150604084013590509250925092565b60008060008060808587031215611d04578081fd5b611d0d85611bc9565b9350611d1b60208601611bc9565b925060408501359150606085013567ffffffffffffffff811115611d3d578182fd5b611d4987828801611be0565b91505092959194509250565b60008060408385031215611d67578182fd5b611d7083611bc9565b915060208301358015158114611d84578182fd5b809150509250929050565b60008060408385031215611da1578182fd5b611daa83611bc9565b946020939093013593505050565b600080600060608486031215611dcc578283fd5b611dd584611bc9565b925060208401359150604084013567ffffffffffffffff811115611df7578182fd5b611e0386828701611be0565b9150509250925092565b600060208284031215611e1e578081fd5b8135611c7b81612736565b600060208284031215611e3a578081fd5b8151611c7b81612736565b600060208284031215611e56578081fd5b813567ffffffffffffffff811115611e6c578182fd5b610d3b84828501611be0565b600060208284031215611e89578081fd5b5035919050565b60008060408385031215611ea2578182fd5b82359150602083013567ffffffffffffffff811115611ebf578182fd5b611ecb85828601611be0565b9150509250929050565b600080600060608486031215611ee9578283fd5b83359250602084013567ffffffffffffffff811115611f06578283fd5b611f1286828701611be0565b925050611f2160408501611bc9565b90509250925092565b60008151808452611f42816020860160208601612664565b601f01601f19169290920160200192915050565b60008351611f68818460208801612664565b835190830190611f7c818360208801612664565b01949350505050565b6001600160a01b0391909116815260200190565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090611fcc90830184611f2a565b9695505050505050565b901515815260200190565b600060208252611c7b6020830184611f2a565b6000604082526120076040830185611f2a565b905060018060a01b03831660208301529392505050565b6020808252602b908201527f4552433732315061757361626c653a20746f6b656e207472616e73666572207760408201526a1a1a5b19481c185d5cd95960aa1b606082015260800190565b60208082526014908201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b604082015260600190565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b60208082526026908201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160408201526564647265737360d01b606082015260800190565b6020808252601c908201527f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000604082015260600190565b60208082526024908201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646040820152637265737360e01b606082015260800190565b60208082526019908201527f4552433732313a20617070726f766520746f2063616c6c657200000000000000604082015260600190565b6020808252602c908201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860408201526b34b9ba32b73a103a37b5b2b760a11b606082015260800190565b60208082526010908201526f14185d5cd8589b194e881c185d5cd95960821b604082015260600190565b60208082526038908201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760408201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000606082015260800190565b6020808252601f908201527f43616c6c6572206973206e6f74207468652070726f7879206d696e7465722e00604082015260600190565b6020808252602a908201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604082015269726f206164647265737360b01b606082015260800190565b60208082526029908201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460408201526832b73a103a37b5b2b760b91b606082015260800190565b6020808252601590820152742a37b5b2b71030b63932b0b23c9032bc34b9ba399760591b604082015260600190565b6020808252818101527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373604082015260600190565b6020808252601590820152742a37b5b2b7103237b2b9903737ba1032bc34b9ba1760591b604082015260600190565b6020808252602c908201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860408201526b34b9ba32b73a103a37b5b2b760a11b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526029908201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960408201526839903737ba1037bbb760b91b606082015260800190565b6020808252602f908201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60408201526e3732bc34b9ba32b73a103a37b5b2b760891b606082015260800190565b60208082526021908201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656040820152603960f91b606082015260800190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b6020808252601490820152732aaaa4a2103237b2b9903737ba1032bc34b9ba1760611b604082015260600190565b90815260200190565b600082198211156126065761260661270a565b500190565b60008160001904831182151516156126255761262561270a565b500290565b60008282101561263c5761263c61270a565b500390565b600060ff821660ff84168082101561265b5761265b61270a565b90039392505050565b60005b8381101561267f578181015183820152602001612667565b838111156107cc5750506000910152565b6002810460018216806126a457607f821691505b602082108114156126c557634e487b7160e01b600052602260045260246000fd5b50919050565b60006000198214156126df576126df61270a565b5060010190565b600063ffffffff808316818114156127005761270061270a565b6001019392505050565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160e01b03198116811461042357600080fdfea2646970667358221220c2202fbd2e5d6421fd39d840cf811fa288f62555e0dc3748c213a2fef0dfe26c64736f6c63430008000033

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

0000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000002f68747470733a2f2f6170692e617065736f6e6c322e636f6d2f6170692f76312f657468657265756d2f746f6b656e2f0000000000000000000000000000000000

-----Decoded View---------------
Arg [0] : baseTokenURI (string): https://api.apesonl2.com/api/v1/ethereum/token/

-----Encoded View---------------
4 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000020
Arg [1] : 000000000000000000000000000000000000000000000000000000000000002f
Arg [2] : 68747470733a2f2f6170692e617065736f6e6c322e636f6d2f6170692f76312f
Arg [3] : 657468657265756d2f746f6b656e2f0000000000000000000000000000000000


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.