ETH Price: $2,290.69 (-2.85%)

Token

Nouns x Vector (NOUNV)
 

Overview

Max Total Supply

380 NOUNV

Holders

174

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A

Other Info

Balance
1 NOUNV
0x0ff119d1912844b905450e8c0553a100342eacba
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:
NounsVector

Compiler Version
v0.8.13+commit.abaa5c0e

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 10 : NounsVector.sol
// SPDX-License-Identifier: AGPL-3.0-or-later
pragma solidity ^0.8.10;

import "@openzeppelin/contracts/utils/Strings.sol";
import "@openzeppelin/contracts/access/AccessControl.sol";
import "solmate/auth/Owned.sol";
import {ERC721} from "solmate/tokens/ERC721.sol";

import "./lib/Base64.sol";

contract NounsVector is ERC721, Owned, AccessControl {
    // Artwork and edition # that a token corresponds to.
    struct TokenInfo {
        uint8 artwork;
        uint8 edition;
    }

    // Role that can change the image base URI.
    bytes32 public constant ADMIN_ROLE = keccak256("ADMIN_ROLE");

    // Role that can mint tokens.
    bytes32 public constant MINTER_ROLE = keccak256("MINTER_ROLE");

    // Image base URI.
    string public imageBaseURI;

    // Total supply.
    uint256 public totalSupply;

    // Supply per artwork.
    mapping(uint256 => uint256) private artworkSupplies;

    // Artwork and edition info for a token.
    mapping(uint256 => TokenInfo) private tokenInfos;

    constructor(string memory _imageBaseURI) ERC721("Nouns x Vector", "NOUNV") Owned(msg.sender) {
        _setupRole(DEFAULT_ADMIN_ROLE, msg.sender);
        _setupRole(ADMIN_ROLE, msg.sender);

        imageBaseURI = _imageBaseURI;
    }

    // ADMIN //

    /**
     * @notice Change the base URI for the image.
     */
    function setImageBaseURI(string calldata _imageBaseURI) public onlyRole(ADMIN_ROLE) {
        imageBaseURI = _imageBaseURI;
    }

    // PUBLIC //

    /**
     * @notice Require that the sender is the minter.
     * @param _id The token ID.
     * @return string The token metadata encoded in base64.
     */
    function tokenURI(uint256 _id) public view override returns (string memory) {
        require(_exists(_id), "ERC721Metadata: URI query for nonexistent token");

        TokenInfo memory tokenInfo = tokenInfos[_id];

        string memory base64JSON = Base64.encode(
            bytes(
                string.concat(
                    '{',
                        '"name": "', _getTokenName(tokenInfo.artwork, tokenInfo.edition), '", ',
                        '"description": "', _getArtworkDescription(tokenInfo.artwork), '", ',
                        '"image": "', imageBaseURI, Strings.toString(tokenInfo.artwork), '", ',
                        '"attributes": ', _getArtworkAttributes(tokenInfo.artwork, tokenInfo.edition),
                    '}'
                )
            )
        );

        return string.concat('data:application/json;base64,', base64JSON);
    }

    // EXTERNAL //

    /**
     * @notice Mints a token of an artwork to an account. Only the privileged
     *         minter role may mint tokens.
     * @param _to The recipient of the minting.
     * @param _artwork The artwork to mint.
     */
    function mint(
        address _to,
        uint256 _artwork
    ) external onlyRole(MINTER_ROLE) {
        _safeMint(_to, totalSupply);

        unchecked {
            ++artworkSupplies[_artwork]; // 1-indexed
        }

        tokenInfos[totalSupply] = TokenInfo(uint8(_artwork), uint8(artworkSupplies[_artwork]));

        unchecked {
            ++totalSupply;
        }
    }

    /**
     * @notice Returns the number of tokens minted of an artwork.
     * @param _artwork The artwork in question.
     * @return Number of editions.
     */
    function artworkSupply(uint256 _artwork) external view returns (uint256) {
        return artworkSupplies[_artwork];
    }

    // INTERNAL //

    /**
     * @notice Returns the artist of the artwork.
     * @param _artwork The artwork in question.
     * @return Name of the artist.
     */
    function _getArtworkArtist(uint256 _artwork) internal pure returns (string memory) {
        if (_artwork == 0) {
            return "Adam Ho";
        } else if (_artwork == 1) {
            return "Elijah Anderson";
        } else if (_artwork == 2) {
            return "Eric Hu";
        } else if (_artwork == 3) {
            return "Haruko Hayakawa";
        } else if (_artwork == 4) {
            return "Lulu Lin";
        } else if (_artwork == 5) {
            return "Moon Collective";
        } else if (_artwork == 6) {
            return "Shawna X";
        } else {
            return "Yasly";
        }
    }

    /**
     * @notice Returns the name of the token for metadata.
     * @param _artwork The artwork in question.
     * @param _edition The edition number.
     * @return Name of the token.
     */
    function _getTokenName(uint256 _artwork, uint256 _edition) internal pure returns (string memory) {
        return string.concat(_getArtworkArtist(_artwork), " #", Strings.toString(_edition), " ", unicode"—", " Nouns x Vector");
    }

    /**
     * @notice Returns the description of the artwork.
     * @param _artwork The artwork in question.
     * @return Description of the artwork.
     */
    function _getArtworkDescription(uint256 _artwork) internal pure returns (string memory) {
        if (_artwork == 0) {
            return "Adam Ho is a designer and artist with a strong focus on branding, interaction design, and art direction. He is based in Queens, New York. He has worked with clients such as Medium, Airbnb, Square, Dropbox, Postmates, and Nike.";
        } else if (_artwork == 1) {
            return "Elijah Anderson is a multidisciplinary artist who has collaborated and worked with a range of brands and publications including New York Mag, Popeye mag, Adidas, Sneakers n Stuff, and Bookworks. He currently lives in Brooklyn, New York.";
        } else if (_artwork == 2) {
            return "Eric Hu is an independent creative director and typographer. Through the visual identity work of his eponymous design studio, his art direction for Mold Magazine, previous tenures leading design at Nike and SSENSE, Hu has been influential in shaping the visual language of some of the most lasting cultural, commercial, and institutional voices of the past decade.";
        } else if (_artwork == 3) {
            return "Haruko Hayakawa is a CG Artist and Creative Director based in Brooklyn, New York. Her work focuses on her Japanese-American culture, materiality and form. She has worked with The New York Times, Bon Appetit, Fly by Jing, Panera Bread and SKYY Vodka.";
        } else if (_artwork == 4) {
            return "Lulu Lin is an interdisciplinary designer, she has garnered the most public interest for her illustrations. Her drawings has been described as subverting human forms in surprising and engrossing ways, often lumpy and fleshy, strike the viewer as playful, surreal, and sometimes unsettling.";
        } else if (_artwork == 5) {
            return "Moon Collective is an Asian American clothing and design studio based in the Bay Area and Honolulu. We draw inspiration from minimalism, a peaceful journey, funny memories and psychedelic folklore. We produce designs we love throughout the four seasons and dedicate our time developing our in-house brand, Moon strives to build community through our work and our friendship.";
        } else if (_artwork == 6) {
            return "Shawna X an artist based in New York City, known for her vibrant and surreal image-making on projects about identity, motherhood, and community. Her recent collaborations include public art takeovers with large-scale murals in Brazil, and NYC LIRR station debuting in fall of 2022.";
        } else {
            return string.concat(
                "YASLY is Danny Jones, a 3D Designer living in San Francisco, California exploring the space between what is real and what is not",
                unicode"—",
                "3D helps him understand and see in a new way. Danny's constantly taking notice of the imperfections in the world and how those translate into the work he creates."
            );
        }
    }

    /**
     * @notice Returns the attributes of the artwork.
     * @param _artwork The artwork in question.
     * @param _edition The edition of the artwork.
     * @return Attributes describing the token.
     */
    function _getArtworkAttributes(uint256 _artwork, uint256 _edition) internal pure returns (string memory) {
        return string.concat(
            '[',
                '{"trait_type": "artist", "value": "', _getArtworkArtist(_artwork), '"},',
                '{"trait_type": "edition", "value": "', Strings.toString(_edition), '"},',
                '{"trait_type": "license", "value": "CC BY-NC-SA 4.0"}',
            ']'
        );
    }

    /**
     * @notice Returns whether a token has been minted or not.
     * @param _id The token ID.
     * @return Whether it exists or not.
     */
    function _exists(uint256 _id) internal view returns (bool) {
        return _ownerOf[_id] != address(0);
    }

    function supportsInterface(bytes4 interfaceId) public pure override(ERC721, AccessControl) returns (bool) {
        return
            interfaceId == 0x01ffc9a7 || // ERC165 Interface ID for ERC165
            interfaceId == 0x80ac58cd || // ERC165 Interface ID for ERC721
            interfaceId == 0x5b5e139f || // ERC165 Interface ID for ERC721Metadata
            interfaceId == type(IAccessControl).interfaceId;
    }
}

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

File 3 of 10 : AccessControl.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (access/AccessControl.sol)

pragma solidity ^0.8.0;

import "./IAccessControl.sol";
import "../utils/Context.sol";
import "../utils/Strings.sol";
import "../utils/introspection/ERC165.sol";

/**
 * @dev Contract module that allows children to implement role-based access
 * control mechanisms. This is a lightweight version that doesn't allow enumerating role
 * members except through off-chain means by accessing the contract event logs. Some
 * applications may benefit from on-chain enumerability, for those cases see
 * {AccessControlEnumerable}.
 *
 * Roles are referred to by their `bytes32` identifier. These should be exposed
 * in the external API and be unique. The best way to achieve this is by
 * using `public constant` hash digests:
 *
 * ```
 * bytes32 public constant MY_ROLE = keccak256("MY_ROLE");
 * ```
 *
 * Roles can be used to represent a set of permissions. To restrict access to a
 * function call, use {hasRole}:
 *
 * ```
 * function foo() public {
 *     require(hasRole(MY_ROLE, msg.sender));
 *     ...
 * }
 * ```
 *
 * Roles can be granted and revoked dynamically via the {grantRole} and
 * {revokeRole} functions. Each role has an associated admin role, and only
 * accounts that have a role's admin role can call {grantRole} and {revokeRole}.
 *
 * By default, the admin role for all roles is `DEFAULT_ADMIN_ROLE`, which means
 * that only accounts with this role will be able to grant or revoke other
 * roles. More complex role relationships can be created by using
 * {_setRoleAdmin}.
 *
 * WARNING: The `DEFAULT_ADMIN_ROLE` is also its own admin: it has permission to
 * grant and revoke this role. Extra precautions should be taken to secure
 * accounts that have been granted it.
 */
abstract contract AccessControl is Context, IAccessControl, ERC165 {
    struct RoleData {
        mapping(address => bool) members;
        bytes32 adminRole;
    }

    mapping(bytes32 => RoleData) private _roles;

    bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00;

    /**
     * @dev Modifier that checks that an account has a specific role. Reverts
     * with a standardized message including the required role.
     *
     * The format of the revert reason is given by the following regular expression:
     *
     *  /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/
     *
     * _Available since v4.1._
     */
    modifier onlyRole(bytes32 role) {
        _checkRole(role);
        _;
    }

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

    /**
     * @dev Returns `true` if `account` has been granted `role`.
     */
    function hasRole(bytes32 role, address account) public view virtual override returns (bool) {
        return _roles[role].members[account];
    }

    /**
     * @dev Revert with a standard message if `_msgSender()` is missing `role`.
     * Overriding this function changes the behavior of the {onlyRole} modifier.
     *
     * Format of the revert message is described in {_checkRole}.
     *
     * _Available since v4.6._
     */
    function _checkRole(bytes32 role) internal view virtual {
        _checkRole(role, _msgSender());
    }

    /**
     * @dev Revert with a standard message if `account` is missing `role`.
     *
     * The format of the revert reason is given by the following regular expression:
     *
     *  /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/
     */
    function _checkRole(bytes32 role, address account) internal view virtual {
        if (!hasRole(role, account)) {
            revert(
                string(
                    abi.encodePacked(
                        "AccessControl: account ",
                        Strings.toHexString(uint160(account), 20),
                        " is missing role ",
                        Strings.toHexString(uint256(role), 32)
                    )
                )
            );
        }
    }

    /**
     * @dev Returns the admin role that controls `role`. See {grantRole} and
     * {revokeRole}.
     *
     * To change a role's admin, use {_setRoleAdmin}.
     */
    function getRoleAdmin(bytes32 role) public view virtual override returns (bytes32) {
        return _roles[role].adminRole;
    }

    /**
     * @dev Grants `role` to `account`.
     *
     * If `account` had not been already granted `role`, emits a {RoleGranted}
     * event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     *
     * May emit a {RoleGranted} event.
     */
    function grantRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) {
        _grantRole(role, account);
    }

    /**
     * @dev Revokes `role` from `account`.
     *
     * If `account` had been granted `role`, emits a {RoleRevoked} event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     *
     * May emit a {RoleRevoked} event.
     */
    function revokeRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) {
        _revokeRole(role, account);
    }

    /**
     * @dev Revokes `role` from the calling account.
     *
     * Roles are often managed via {grantRole} and {revokeRole}: this function's
     * purpose is to provide a mechanism for accounts to lose their privileges
     * if they are compromised (such as when a trusted device is misplaced).
     *
     * If the calling account had been revoked `role`, emits a {RoleRevoked}
     * event.
     *
     * Requirements:
     *
     * - the caller must be `account`.
     *
     * May emit a {RoleRevoked} event.
     */
    function renounceRole(bytes32 role, address account) public virtual override {
        require(account == _msgSender(), "AccessControl: can only renounce roles for self");

        _revokeRole(role, account);
    }

    /**
     * @dev Grants `role` to `account`.
     *
     * If `account` had not been already granted `role`, emits a {RoleGranted}
     * event. Note that unlike {grantRole}, this function doesn't perform any
     * checks on the calling account.
     *
     * May emit a {RoleGranted} event.
     *
     * [WARNING]
     * ====
     * This function should only be called from the constructor when setting
     * up the initial roles for the system.
     *
     * Using this function in any other way is effectively circumventing the admin
     * system imposed by {AccessControl}.
     * ====
     *
     * NOTE: This function is deprecated in favor of {_grantRole}.
     */
    function _setupRole(bytes32 role, address account) internal virtual {
        _grantRole(role, account);
    }

    /**
     * @dev Sets `adminRole` as ``role``'s admin role.
     *
     * Emits a {RoleAdminChanged} event.
     */
    function _setRoleAdmin(bytes32 role, bytes32 adminRole) internal virtual {
        bytes32 previousAdminRole = getRoleAdmin(role);
        _roles[role].adminRole = adminRole;
        emit RoleAdminChanged(role, previousAdminRole, adminRole);
    }

    /**
     * @dev Grants `role` to `account`.
     *
     * Internal function without access restriction.
     *
     * May emit a {RoleGranted} event.
     */
    function _grantRole(bytes32 role, address account) internal virtual {
        if (!hasRole(role, account)) {
            _roles[role].members[account] = true;
            emit RoleGranted(role, account, _msgSender());
        }
    }

    /**
     * @dev Revokes `role` from `account`.
     *
     * Internal function without access restriction.
     *
     * May emit a {RoleRevoked} event.
     */
    function _revokeRole(bytes32 role, address account) internal virtual {
        if (hasRole(role, account)) {
            _roles[role].members[account] = false;
            emit RoleRevoked(role, account, _msgSender());
        }
    }
}

File 4 of 10 : Owned.sol
// SPDX-License-Identifier: AGPL-3.0-only
pragma solidity >=0.8.0;

/// @notice Simple single owner authorization mixin.
/// @author Solmate (https://github.com/Rari-Capital/solmate/blob/main/src/auth/Owned.sol)
abstract contract Owned {
    /*//////////////////////////////////////////////////////////////
                                 EVENTS
    //////////////////////////////////////////////////////////////*/

    event OwnerUpdated(address indexed user, address indexed newOwner);

    /*//////////////////////////////////////////////////////////////
                            OWNERSHIP STORAGE
    //////////////////////////////////////////////////////////////*/

    address public owner;

    modifier onlyOwner() virtual {
        require(msg.sender == owner, "UNAUTHORIZED");

        _;
    }

    /*//////////////////////////////////////////////////////////////
                               CONSTRUCTOR
    //////////////////////////////////////////////////////////////*/

    constructor(address _owner) {
        owner = _owner;

        emit OwnerUpdated(address(0), _owner);
    }

    /*//////////////////////////////////////////////////////////////
                             OWNERSHIP LOGIC
    //////////////////////////////////////////////////////////////*/

    function setOwner(address newOwner) public virtual onlyOwner {
        owner = newOwner;

        emit OwnerUpdated(msg.sender, newOwner);
    }
}

File 5 of 10 : ERC721.sol
// SPDX-License-Identifier: AGPL-3.0-only
pragma solidity >=0.8.0;

/// @notice Modern, minimalist, and gas efficient ERC-721 implementation.
/// @author Solmate (https://github.com/Rari-Capital/solmate/blob/main/src/tokens/ERC721.sol)
abstract contract ERC721 {
    /*//////////////////////////////////////////////////////////////
                                 EVENTS
    //////////////////////////////////////////////////////////////*/

    event Transfer(address indexed from, address indexed to, uint256 indexed id);

    event Approval(address indexed owner, address indexed spender, uint256 indexed id);

    event ApprovalForAll(address indexed owner, address indexed operator, bool approved);

    /*//////////////////////////////////////////////////////////////
                         METADATA STORAGE/LOGIC
    //////////////////////////////////////////////////////////////*/

    string public name;

    string public symbol;

    function tokenURI(uint256 id) public view virtual returns (string memory);

    /*//////////////////////////////////////////////////////////////
                      ERC721 BALANCE/OWNER STORAGE
    //////////////////////////////////////////////////////////////*/

    mapping(uint256 => address) internal _ownerOf;

    mapping(address => uint256) internal _balanceOf;

    function ownerOf(uint256 id) public view virtual returns (address owner) {
        require((owner = _ownerOf[id]) != address(0), "NOT_MINTED");
    }

    function balanceOf(address owner) public view virtual returns (uint256) {
        require(owner != address(0), "ZERO_ADDRESS");

        return _balanceOf[owner];
    }

    /*//////////////////////////////////////////////////////////////
                         ERC721 APPROVAL STORAGE
    //////////////////////////////////////////////////////////////*/

    mapping(uint256 => address) public getApproved;

    mapping(address => mapping(address => bool)) public isApprovedForAll;

    /*//////////////////////////////////////////////////////////////
                               CONSTRUCTOR
    //////////////////////////////////////////////////////////////*/

    constructor(string memory _name, string memory _symbol) {
        name = _name;
        symbol = _symbol;
    }

    /*//////////////////////////////////////////////////////////////
                              ERC721 LOGIC
    //////////////////////////////////////////////////////////////*/

    function approve(address spender, uint256 id) public virtual {
        address owner = _ownerOf[id];

        require(msg.sender == owner || isApprovedForAll[owner][msg.sender], "NOT_AUTHORIZED");

        getApproved[id] = spender;

        emit Approval(owner, spender, id);
    }

    function setApprovalForAll(address operator, bool approved) public virtual {
        isApprovedForAll[msg.sender][operator] = approved;

        emit ApprovalForAll(msg.sender, operator, approved);
    }

    function transferFrom(
        address from,
        address to,
        uint256 id
    ) public virtual {
        require(from == _ownerOf[id], "WRONG_FROM");

        require(to != address(0), "INVALID_RECIPIENT");

        require(
            msg.sender == from || isApprovedForAll[from][msg.sender] || msg.sender == getApproved[id],
            "NOT_AUTHORIZED"
        );

        // Underflow of the sender's balance is impossible because we check for
        // ownership above and the recipient's balance can't realistically overflow.
        unchecked {
            _balanceOf[from]--;

            _balanceOf[to]++;
        }

        _ownerOf[id] = to;

        delete getApproved[id];

        emit Transfer(from, to, id);
    }

    function safeTransferFrom(
        address from,
        address to,
        uint256 id
    ) public virtual {
        transferFrom(from, to, id);

        require(
            to.code.length == 0 ||
                ERC721TokenReceiver(to).onERC721Received(msg.sender, from, id, "") ==
                ERC721TokenReceiver.onERC721Received.selector,
            "UNSAFE_RECIPIENT"
        );
    }

    function safeTransferFrom(
        address from,
        address to,
        uint256 id,
        bytes calldata data
    ) public virtual {
        transferFrom(from, to, id);

        require(
            to.code.length == 0 ||
                ERC721TokenReceiver(to).onERC721Received(msg.sender, from, id, data) ==
                ERC721TokenReceiver.onERC721Received.selector,
            "UNSAFE_RECIPIENT"
        );
    }

    /*//////////////////////////////////////////////////////////////
                              ERC165 LOGIC
    //////////////////////////////////////////////////////////////*/

    function supportsInterface(bytes4 interfaceId) public view virtual returns (bool) {
        return
            interfaceId == 0x01ffc9a7 || // ERC165 Interface ID for ERC165
            interfaceId == 0x80ac58cd || // ERC165 Interface ID for ERC721
            interfaceId == 0x5b5e139f; // ERC165 Interface ID for ERC721Metadata
    }

    /*//////////////////////////////////////////////////////////////
                        INTERNAL MINT/BURN LOGIC
    //////////////////////////////////////////////////////////////*/

    function _mint(address to, uint256 id) internal virtual {
        require(to != address(0), "INVALID_RECIPIENT");

        require(_ownerOf[id] == address(0), "ALREADY_MINTED");

        // Counter overflow is incredibly unrealistic.
        unchecked {
            _balanceOf[to]++;
        }

        _ownerOf[id] = to;

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

    function _burn(uint256 id) internal virtual {
        address owner = _ownerOf[id];

        require(owner != address(0), "NOT_MINTED");

        // Ownership check above ensures no underflow.
        unchecked {
            _balanceOf[owner]--;
        }

        delete _ownerOf[id];

        delete getApproved[id];

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

    /*//////////////////////////////////////////////////////////////
                        INTERNAL SAFE MINT LOGIC
    //////////////////////////////////////////////////////////////*/

    function _safeMint(address to, uint256 id) internal virtual {
        _mint(to, id);

        require(
            to.code.length == 0 ||
                ERC721TokenReceiver(to).onERC721Received(msg.sender, address(0), id, "") ==
                ERC721TokenReceiver.onERC721Received.selector,
            "UNSAFE_RECIPIENT"
        );
    }

    function _safeMint(
        address to,
        uint256 id,
        bytes memory data
    ) internal virtual {
        _mint(to, id);

        require(
            to.code.length == 0 ||
                ERC721TokenReceiver(to).onERC721Received(msg.sender, address(0), id, data) ==
                ERC721TokenReceiver.onERC721Received.selector,
            "UNSAFE_RECIPIENT"
        );
    }
}

/// @notice A generic interface for a contract which properly accepts ERC721 tokens.
/// @author Solmate (https://github.com/Rari-Capital/solmate/blob/main/src/tokens/ERC721.sol)
abstract contract ERC721TokenReceiver {
    function onERC721Received(
        address,
        address,
        uint256,
        bytes calldata
    ) external virtual returns (bytes4) {
        return ERC721TokenReceiver.onERC721Received.selector;
    }
}

File 6 of 10 : Base64.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

/// @title Base64
/// @notice Provides a function for encoding some bytes in base64
/// @author Brecht Devos <[email protected]>
library Base64 {
    bytes internal constant TABLE = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";

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

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

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

        bytes memory table = TABLE;

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

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

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

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

                mstore(resultPtr, out)

                resultPtr := add(resultPtr, 4)
            }

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

            mstore(result, encodedLen)
        }

        return string(result);
    }
}

File 7 of 10 : IAccessControl.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (access/IAccessControl.sol)

pragma solidity ^0.8.0;

/**
 * @dev External interface of AccessControl declared to support ERC165 detection.
 */
interface IAccessControl {
    /**
     * @dev Emitted when `newAdminRole` is set as ``role``'s admin role, replacing `previousAdminRole`
     *
     * `DEFAULT_ADMIN_ROLE` is the starting admin for all roles, despite
     * {RoleAdminChanged} not being emitted signaling this.
     *
     * _Available since v3.1._
     */
    event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole);

    /**
     * @dev Emitted when `account` is granted `role`.
     *
     * `sender` is the account that originated the contract call, an admin role
     * bearer except when using {AccessControl-_setupRole}.
     */
    event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender);

    /**
     * @dev Emitted when `account` is revoked `role`.
     *
     * `sender` is the account that originated the contract call:
     *   - if using `revokeRole`, it is the admin role bearer
     *   - if using `renounceRole`, it is the role bearer (i.e. `account`)
     */
    event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender);

    /**
     * @dev Returns `true` if `account` has been granted `role`.
     */
    function hasRole(bytes32 role, address account) external view returns (bool);

    /**
     * @dev Returns the admin role that controls `role`. See {grantRole} and
     * {revokeRole}.
     *
     * To change a role's admin, use {AccessControl-_setRoleAdmin}.
     */
    function getRoleAdmin(bytes32 role) external view returns (bytes32);

    /**
     * @dev Grants `role` to `account`.
     *
     * If `account` had not been already granted `role`, emits a {RoleGranted}
     * event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     */
    function grantRole(bytes32 role, address account) external;

    /**
     * @dev Revokes `role` from `account`.
     *
     * If `account` had been granted `role`, emits a {RoleRevoked} event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     */
    function revokeRole(bytes32 role, address account) external;

    /**
     * @dev Revokes `role` from the calling account.
     *
     * Roles are often managed via {grantRole} and {revokeRole}: this function's
     * purpose is to provide a mechanism for accounts to lose their privileges
     * if they are compromised (such as when a trusted device is misplaced).
     *
     * If the calling account had been granted `role`, emits a {RoleRevoked}
     * event.
     *
     * Requirements:
     *
     * - the caller must be `account`.
     */
    function renounceRole(bytes32 role, address account) external;
}

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

pragma solidity ^0.8.0;

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

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

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

pragma solidity ^0.8.0;

import "./IERC165.sol";

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

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

pragma solidity ^0.8.0;

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

Settings
{
  "remappings": [
    "@openzeppelin/contracts/=lib/openzeppelin-contracts/contracts/",
    "ds-test/=lib/ds-test/src/",
    "forge-std/=lib/forge-std/src/",
    "openzeppelin-contracts/=lib/openzeppelin-contracts/",
    "solmate/=lib/solmate/src/",
    "src/=src/"
  ],
  "optimizer": {
    "enabled": true,
    "runs": 200
  },
  "metadata": {
    "bytecodeHash": "ipfs"
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  },
  "evmVersion": "london",
  "libraries": {}
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"string","name":"_imageBaseURI","type":"string"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":true,"internalType":"uint256","name":"id","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnerUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"previousAdminRole","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"newAdminRole","type":"bytes32"}],"name":"RoleAdminChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleGranted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleRevoked","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":"id","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MINTER_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_artwork","type":"uint256"}],"name":"artworkSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","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":"","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleAdmin","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"grantRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"hasRole","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"imageBaseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_artwork","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"owner","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"renounceRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"revokeRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"id","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":"id","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":"_imageBaseURI","type":"string"}],"name":"setImageBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"setOwner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60806040523480156200001157600080fd5b5060405162002f9538038062002f958339810160408190526200003491620002b3565b604080518082018252600e81526d2737bab739903c102b32b1ba37b960911b6020808301918252835180850190945260058452642727aaa72b60d91b908401528151339391620000889160009190620001f7565b5080516200009e906001906020840190620001f7565b5050600680546001600160a01b0319166001600160a01b0384169081179091556040519091506000907f8292fce18fa69edf4db7b94ea2e58241df0ae57f97e0a6c9b29067028bf92d76908290a350620000fa60003362000143565b620001267fa49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c217753362000143565b80516200013b906008906020840190620001f7565b5050620003cb565b6200014f828262000153565b5050565b60008281526007602090815260408083206001600160a01b038516845290915290205460ff166200014f5760008281526007602090815260408083206001600160a01b03851684529091529020805460ff19166001179055620001b33390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b82805462000205906200038f565b90600052602060002090601f01602090048101928262000229576000855562000274565b82601f106200024457805160ff191683800117855562000274565b8280016001018555821562000274579182015b828111156200027457825182559160200191906001019062000257565b506200028292915062000286565b5090565b5b8082111562000282576000815560010162000287565b634e487b7160e01b600052604160045260246000fd5b60006020808385031215620002c757600080fd5b82516001600160401b0380821115620002df57600080fd5b818501915085601f830112620002f457600080fd5b8151818111156200030957620003096200029d565b604051601f8201601f19908116603f011681019083821181831017156200033457620003346200029d565b8160405282815288868487010111156200034d57600080fd5b600093505b8284101562000371578484018601518185018701529285019262000352565b82841115620003835760008684830101525b98975050505050505050565b600181811c90821680620003a457607f821691505b602082108103620003c557634e487b7160e01b600052602260045260246000fd5b50919050565b612bba80620003db6000396000f3fe608060405234801561001057600080fd5b50600436106101c45760003560e01c806370a08231116100f9578063a22cb46511610097578063d539139311610071578063d5391393146103df578063d547741f14610406578063e985e9c514610419578063ed957ba81461044757600080fd5b8063a22cb465146103a6578063b88d4fde146103b9578063c87b56dd146103cc57600080fd5b80638da5cb5b116100d35780638da5cb5b1461037057806391d148541461038357806395d89b4114610396578063a217fddf1461039e57600080fd5b806370a082311461032e57806375b238fc14610341578063776458391461036857600080fd5b8063248a9ca31161016657806340c10f191161014057806340c10f19146102e257806342842e0e146102f55780636352211e146103085780636cfa24cc1461031b57600080fd5b8063248a9ca3146102995780632f2ff15d146102bc57806336568abe146102cf57600080fd5b8063095ea7b3116101a2578063095ea7b31461024757806313af40351461025c57806318160ddd1461026f57806323b872dd1461028657600080fd5b806301ffc9a7146101c957806306fdde03146101f1578063081812fc14610206575b600080fd5b6101dc6101d7366004611b0f565b610467565b60405190151581526020015b60405180910390f35b6101f96104d4565b6040516101e89190611b58565b61022f610214366004611b8b565b6004602052600090815260409020546001600160a01b031681565b6040516001600160a01b0390911681526020016101e8565b61025a610255366004611bbb565b610562565b005b61025a61026a366004611be5565b610649565b61027860095481565b6040519081526020016101e8565b61025a610294366004611c00565b6106de565b6102786102a7366004611b8b565b60009081526007602052604090206001015490565b61025a6102ca366004611c3c565b6108a5565b61025a6102dd366004611c3c565b6108cf565b61025a6102f0366004611bbb565b61094d565b61025a610303366004611c00565b6109eb565b61022f610316366004611b8b565b610abb565b61025a610329366004611cb1565b610b12565b61027861033c366004611be5565b610b4e565b6102787fa49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c2177581565b6101f9610bb1565b60065461022f906001600160a01b031681565b6101dc610391366004611c3c565b610bbe565b6101f9610be9565b610278600081565b61025a6103b4366004611cf3565b610bf6565b61025a6103c7366004611d2f565b610c62565b6101f96103da366004611b8b565b610d27565b6102787f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a681565b61025a610414366004611c3c565b610e70565b6101dc610427366004611d9e565b600560209081526000928352604080842090915290825290205460ff1681565b610278610455366004611b8b565b6000908152600a602052604090205490565b60006301ffc9a760e01b6001600160e01b03198316148061049857506380ac58cd60e01b6001600160e01b03198316145b806104b35750635b5e139f60e01b6001600160e01b03198316145b806104ce57506001600160e01b03198216637965db0b60e01b145b92915050565b600080546104e190611dc8565b80601f016020809104026020016040519081016040528092919081815260200182805461050d90611dc8565b801561055a5780601f1061052f5761010080835404028352916020019161055a565b820191906000526020600020905b81548152906001019060200180831161053d57829003601f168201915b505050505081565b6000818152600260205260409020546001600160a01b0316338114806105ab57506001600160a01b038116600090815260056020908152604080832033845290915290205460ff165b6105ed5760405162461bcd60e51b815260206004820152600e60248201526d1393d517d055551213d49256915160921b60448201526064015b60405180910390fd5b60008281526004602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b6006546001600160a01b031633146106925760405162461bcd60e51b815260206004820152600c60248201526b15539055551213d49256915160a21b60448201526064016105e4565b600680546001600160a01b0319166001600160a01b03831690811790915560405133907f8292fce18fa69edf4db7b94ea2e58241df0ae57f97e0a6c9b29067028bf92d7690600090a350565b6000818152600260205260409020546001600160a01b038481169116146107345760405162461bcd60e51b815260206004820152600a60248201526957524f4e475f46524f4d60b01b60448201526064016105e4565b6001600160a01b03821661077e5760405162461bcd60e51b81526020600482015260116024820152701253959053125117d49150d25412515395607a1b60448201526064016105e4565b336001600160a01b03841614806107b857506001600160a01b038316600090815260056020908152604080832033845290915290205460ff165b806107d957506000818152600460205260409020546001600160a01b031633145b6108165760405162461bcd60e51b815260206004820152600e60248201526d1393d517d055551213d49256915160921b60448201526064016105e4565b6001600160a01b0380841660008181526003602090815260408083208054600019019055938616808352848320805460010190558583526002825284832080546001600160a01b03199081168317909155600490925284832080549092169091559251849392917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6000828152600760205260409020600101546108c081610e95565b6108ca8383610ea2565b505050565b6001600160a01b038116331461093f5760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b60648201526084016105e4565b6109498282610f28565b5050565b7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a661097781610e95565b61098383600954610f8f565b506000818152600a6020908152604080832080546001908101918290558251808401845260ff9687168152918616828501908152600980548752600b9095529290942090518154925186166101000261ffff1990931695169490941717909255815401905550565b6109f68383836106de565b6001600160a01b0382163b1580610a9f5750604051630a85bd0160e11b8082523360048301526001600160a01b03858116602484015260448301849052608060648401526000608484015290919084169063150b7a029060a4016020604051808303816000875af1158015610a6f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a939190611e02565b6001600160e01b031916145b6108ca5760405162461bcd60e51b81526004016105e490611e1f565b6000818152600260205260409020546001600160a01b031680610b0d5760405162461bcd60e51b815260206004820152600a6024820152691393d517d3525395115160b21b60448201526064016105e4565b919050565b7fa49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c21775610b3c81610e95565b610b4860088484611a60565b50505050565b60006001600160a01b038216610b955760405162461bcd60e51b815260206004820152600c60248201526b5a45524f5f4144445245535360a01b60448201526064016105e4565b506001600160a01b031660009081526003602052604090205490565b600880546104e190611dc8565b60009182526007602090815260408084206001600160a01b0393909316845291905290205460ff1690565b600180546104e190611dc8565b3360008181526005602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b610c6d8585856106de565b6001600160a01b0384163b1580610d045750604051630a85bd0160e11b808252906001600160a01b0386169063150b7a0290610cb59033908a90899089908990600401611e49565b6020604051808303816000875af1158015610cd4573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610cf89190611e02565b6001600160e01b031916145b610d205760405162461bcd60e51b81526004016105e490611e1f565b5050505050565b6000818152600260205260409020546060906001600160a01b0316610da65760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b60648201526084016105e4565b6000828152600b6020908152604080832081518083019092525460ff80821680845261010090920416928201839052909291610e4591610de59161105b565b8351610df39060ff16611097565b6008610e05866000015160ff1661134c565b610e1d876000015160ff16886020015160ff16611455565b604051602001610e31959493929190611eb9565b60405160208183030381529060405261147a565b905080604051602001610e58919061202c565b60405160208183030381529060405292505050919050565b600082815260076020526040902060010154610e8b81610e95565b6108ca8383610f28565b610e9f81336115e4565b50565b610eac8282610bbe565b6109495760008281526007602090815260408083206001600160a01b03851684529091529020805460ff19166001179055610ee43390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b610f328282610bbe565b156109495760008281526007602090815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b610f998282611648565b6001600160a01b0382163b158061103f5750604051630a85bd0160e11b80825233600483015260006024830181905260448301849052608060648401526084830152906001600160a01b0384169063150b7a029060a4016020604051808303816000875af115801561100f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110339190611e02565b6001600160e01b031916145b6109495760405162461bcd60e51b81526004016105e490611e1f565b606061106683611753565b61106f8361134c565b604051602001611080929190612071565b604051602081830303815290604052905092915050565b6060816000036110c15760405180610120016040528060e2815260200161247b60e2913992915050565b816001036110e95760405180610120016040528060ec81526020016126be60ec913992915050565b8160020361111357604051806101a0016040528061016c81526020016128a361016c913992915050565b8160030361113b5760405180610120016040528060f981526020016127aa60f9913992915050565b8160040361116557604051806101600160405280610121815260200161255d610121913992915050565b8160050361118f57604051806101a001604052806101768152602001612a0f610176913992915050565b816006036111b9576040518061014001604052806101198152602001612362610119913992915050565b604051602001611336907f5941534c592069732044616e6e79204a6f6e65732c206120334420446573696781527f6e6572206c6976696e6720696e2053616e204672616e636973636f2c2043616c60208201527f69666f726e6961206578706c6f72696e6720746865207370616365206265747760408201527f65656e2077686174206973207265616c20616e642077686174206973206e6f7460608201526238a02560ea1b60808201527f33442068656c70732068696d20756e6465727374616e6420616e64207365652060838201527f696e2061206e6577207761792e2044616e6e79277320636f6e7374616e746c7960a38201527f2074616b696e67206e6f74696365206f662074686520696d706572666563746960c38201527f6f6e7320696e2074686520776f726c6420616e6420686f772074686f7365207460e38201527f72616e736c61746520696e746f2074686520776f726b2068652063726561746561010382015261399760f11b6101238201526101250190565b6040516020818303038152906040529050919050565b6060816000036113735750506040805180820190915260018152600360fc1b602082015290565b8160005b811561139d5780611387816120f6565b91506113969050600a83612125565b9150611377565b60008167ffffffffffffffff8111156113b8576113b8612139565b6040519080825280601f01601f1916602001820160405280156113e2576020820181803683370190505b5090505b841561144d576113f760018361214f565b9150611404600a86612166565b61140f90603061217a565b60f81b81838151811061142457611424612192565b60200101906001600160f81b031916908160001a905350611446600a86612125565b94506113e6565b949350505050565b606061146083611753565b6114698361134c565b6040516020016110809291906121a8565b8051606090600081900361149e575050604080516020810190915260008152919050565b600060036114ad83600261217a565b6114b79190612125565b6114c29060046122b6565b905060006114d182602061217a565b67ffffffffffffffff8111156114e9576114e9612139565b6040519080825280601f01601f191660200182016040528015611513576020820181803683370190505b509050600060405180606001604052806040815260200161267e604091399050600181016020830160005b8681101561159f576003818a01810151603f601282901c8116860151600c83901c8216870151600684901c831688015192909316870151600891821b60ff94851601821b92841692909201901b91160160e01b83526004909201910161153e565b5060038606600181146115b957600281146115ca576115d6565b613d3d60f01b6001198301526115d6565b603d60f81b6000198301525b505050918152949350505050565b6115ee8282610bbe565b61094957611606816001600160a01b031660146118bd565b6116118360206118bd565b6040516020016116229291906122d5565b60408051601f198184030181529082905262461bcd60e51b82526105e491600401611b58565b6001600160a01b0382166116925760405162461bcd60e51b81526020600482015260116024820152701253959053125117d49150d25412515395607a1b60448201526064016105e4565b6000818152600260205260409020546001600160a01b0316156116e85760405162461bcd60e51b815260206004820152600e60248201526d1053149150511657d3525395115160921b60448201526064016105e4565b6001600160a01b038216600081815260036020908152604080832080546001019055848352600290915280822080546001600160a01b0319168417905551839291907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6060816000036117805750506040805180820190915260078152664164616d20486f60c81b602082015290565b816001036117b357505060408051808201909152600f81526e22b634b530b41020b73232b939b7b760891b602082015290565b816002036117de5750506040805180820190915260078152664572696320487560c81b602082015290565b8160030361181157505060408051808201909152600f81526e486172756b6f20486179616b61776160881b602082015290565b8160040361183d575050604080518082019091526008815267263ab63a902634b760c11b602082015290565b8160050361187057505060408051808201909152600f81526e4d6f6f6e20436f6c6c65637469766560881b602082015290565b8160060361189c5750506040805180820190915260088152670a6d0c2eedcc240b60c31b602082015290565b50506040805180820190915260058152645961736c7960d81b602082015290565b606060006118cc8360026122b6565b6118d790600261217a565b67ffffffffffffffff8111156118ef576118ef612139565b6040519080825280601f01601f191660200182016040528015611919576020820181803683370190505b509050600360fc1b8160008151811061193457611934612192565b60200101906001600160f81b031916908160001a905350600f60fb1b8160018151811061196357611963612192565b60200101906001600160f81b031916908160001a90535060006119878460026122b6565b61199290600161217a565b90505b6001811115611a0a576f181899199a1a9b1b9c1cb0b131b232b360811b85600f16601081106119c6576119c6612192565b1a60f81b8282815181106119dc576119dc612192565b60200101906001600160f81b031916908160001a90535060049490941c93611a038161234a565b9050611995565b508315611a595760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e7460448201526064016105e4565b9392505050565b828054611a6c90611dc8565b90600052602060002090601f016020900481019282611a8e5760008555611ad4565b82601f10611aa75782800160ff19823516178555611ad4565b82800160010185558215611ad4579182015b82811115611ad4578235825591602001919060010190611ab9565b50611ae0929150611ae4565b5090565b5b80821115611ae05760008155600101611ae5565b6001600160e01b031981168114610e9f57600080fd5b600060208284031215611b2157600080fd5b8135611a5981611af9565b60005b83811015611b47578181015183820152602001611b2f565b83811115610b485750506000910152565b6020815260008251806020840152611b77816040850160208701611b2c565b601f01601f19169190910160400192915050565b600060208284031215611b9d57600080fd5b5035919050565b80356001600160a01b0381168114610b0d57600080fd5b60008060408385031215611bce57600080fd5b611bd783611ba4565b946020939093013593505050565b600060208284031215611bf757600080fd5b611a5982611ba4565b600080600060608486031215611c1557600080fd5b611c1e84611ba4565b9250611c2c60208501611ba4565b9150604084013590509250925092565b60008060408385031215611c4f57600080fd5b82359150611c5f60208401611ba4565b90509250929050565b60008083601f840112611c7a57600080fd5b50813567ffffffffffffffff811115611c9257600080fd5b602083019150836020828501011115611caa57600080fd5b9250929050565b60008060208385031215611cc457600080fd5b823567ffffffffffffffff811115611cdb57600080fd5b611ce785828601611c68565b90969095509350505050565b60008060408385031215611d0657600080fd5b611d0f83611ba4565b915060208301358015158114611d2457600080fd5b809150509250929050565b600080600080600060808688031215611d4757600080fd5b611d5086611ba4565b9450611d5e60208701611ba4565b935060408601359250606086013567ffffffffffffffff811115611d8157600080fd5b611d8d88828901611c68565b969995985093965092949392505050565b60008060408385031215611db157600080fd5b611dba83611ba4565b9150611c5f60208401611ba4565b600181811c90821680611ddc57607f821691505b602082108103611dfc57634e487b7160e01b600052602260045260246000fd5b50919050565b600060208284031215611e1457600080fd5b8151611a5981611af9565b60208082526010908201526f155394d0519157d49150d2541251539560821b604082015260600190565b6001600160a01b038681168252851660208201526040810184905260806060820181905281018290526000828460a0840137600060a0848401015260a0601f19601f85011683010190509695505050505050565b60008151611eaf818560208601611b2c565b9290920192915050565b607b60f81b81526000600168113730b6b2911d101160b91b8184015287516020611ee982600a8701838d01611b2c565b6201116160ed1b600a9286019283018190526f113232b9b1b934b83a34b7b7111d101160811b600d8401528951611f2681601d8601858e01611b2c565b601d930192830152691134b6b0b3b2911d101160b11b818301528754602a9060009080861c86821680611f5a57607f821691505b8582108103611f7757634e487b7160e01b84526022600452602484fd5b808015611f8b5760018114611fa057611fd1565b60ff1984168887015282880186019450611fd1565b60008e81526020902060005b84811015611fc75781548a8201890152908a01908801611fac565b5050858389010194505b50505050611fdf818a611e9d565b9350505050611ff3816201116160ed1b9052565b6d01130ba3a3934b13aba32b9911d160951b60038201526120176011820186611e9d565b607d60f81b8152905001979650505050505050565b7f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c00000081526000825161206481601d850160208701611b2c565b91909101601d0192915050565b60008351612083818460208801611b2c565b61202360f01b90830190815283516120a2816002840160208801611b2c565b600160fd1b600292909101918201526238a02560ea1b60038201526e102737bab739903c102b32b1ba37b960891b6006820152601501949350505050565b634e487b7160e01b600052601160045260246000fd5b600060018201612108576121086120e0565b5060010190565b634e487b7160e01b600052601260045260246000fd5b6000826121345761213461210f565b500490565b634e487b7160e01b600052604160045260246000fd5b600082821015612161576121616120e0565b500390565b6000826121755761217561210f565b500690565b6000821982111561218d5761218d6120e0565b500190565b634e487b7160e01b600052603260045260246000fd5b605b60f81b81527f7b2274726169745f74797065223a2022617274697374222c202276616c7565226001820152621d101160e91b602182015282516000906121f7816024850160208801611b2c565b62089f4b60ea1b60249184019182018190527f7b2274726169745f74797065223a202265646974696f6e222c202276616c7565602783015263111d101160e11b6047830152845161224f81604b850160208901611b2c565b604b9201918201527f7b2274726169745f74797065223a20226c6963656e7365222c202276616c7565604e82015274223a202243432042592d4e432d534120342e30227d60581b606e8201526122ab60838201605d60f81b9052565b608401949350505050565b60008160001904831182151516156122d0576122d06120e0565b500290565b7f416363657373436f6e74726f6c3a206163636f756e742000000000000000000081526000835161230d816017850160208801611b2c565b7001034b99036b4b9b9b4b733903937b6329607d1b601791840191820152835161233e816028840160208801611b2c565b01602801949350505050565b600081612359576123596120e0565b50600019019056fe536861776e61205820616e2061727469737420626173656420696e204e657720596f726b20436974792c206b6e6f776e20666f72206865722076696272616e7420616e64207375727265616c20696d6167652d6d616b696e67206f6e2070726f6a656374732061626f7574206964656e746974792c206d6f74686572686f6f642c20616e6420636f6d6d756e6974792e2048657220726563656e7420636f6c6c61626f726174696f6e7320696e636c756465207075626c6963206172742074616b656f766572732077697468206c617267652d7363616c65206d7572616c7320696e204272617a696c2c20616e64204e5943204c4952522073746174696f6e206465627574696e6720696e2066616c6c206f6620323032322e4164616d20486f20697320612064657369676e657220616e642061727469737420776974682061207374726f6e6720666f637573206f6e206272616e64696e672c20696e746572616374696f6e2064657369676e2c20616e642061727420646972656374696f6e2e20486520697320626173656420696e20517565656e732c204e657720596f726b2e2048652068617320776f726b6564207769746820636c69656e74732073756368206173204d656469756d2c20416972626e622c205371756172652c2044726f70626f782c20506f73746d617465732c20616e64204e696b652e4c756c75204c696e20697320616e20696e7465726469736369706c696e6172792064657369676e65722c2073686520686173206761726e6572656420746865206d6f7374207075626c696320696e74657265737420666f722068657220696c6c757374726174696f6e732e204865722064726177696e677320686173206265656e206465736372696265642061732073756276657274696e672068756d616e20666f726d7320696e2073757270726973696e6720616e6420656e67726f7373696e6720776179732c206f6674656e206c756d707920616e6420666c657368792c20737472696b65207468652076696577657220617320706c617966756c2c207375727265616c2c20616e6420736f6d6574696d657320756e736574746c696e672e4142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2f456c696a616820416e646572736f6e2069732061206d756c74696469736369706c696e617279206172746973742077686f2068617320636f6c6c61626f726174656420616e6420776f726b6564207769746820612072616e6765206f66206272616e647320616e64207075626c69636174696f6e7320696e636c7564696e67204e657720596f726b204d61672c20506f70657965206d61672c204164696461732c20536e65616b657273206e2053747566662c20616e6420426f6f6b776f726b732e2048652063757272656e746c79206c6976657320696e2042726f6f6b6c796e2c204e657720596f726b2e486172756b6f20486179616b61776120697320612043472041727469737420616e64204372656174697665204469726563746f7220626173656420696e2042726f6f6b6c796e2c204e657720596f726b2e2048657220776f726b20666f6375736573206f6e20686572204a6170616e6573652d416d65726963616e2063756c747572652c206d6174657269616c69747920616e6420666f726d2e205368652068617320776f726b6564207769746820546865204e657720596f726b2054696d65732c20426f6e20417070657469742c20466c79206279204a696e672c2050616e65726120427265616420616e6420534b595920566f646b612e4572696320487520697320616e20696e646570656e64656e74206372656174697665206469726563746f7220616e64207479706f677261706865722e205468726f756768207468652076697375616c206964656e7469747920776f726b206f66206869732065706f6e796d6f75732064657369676e2073747564696f2c206869732061727420646972656374696f6e20666f72204d6f6c64204d6167617a696e652c2070726576696f75732074656e75726573206c656164696e672064657369676e206174204e696b6520616e64205353454e53452c20487520686173206265656e20696e666c75656e7469616c20696e2073686170696e67207468652076697375616c206c616e6775616765206f6620736f6d65206f6620746865206d6f7374206c617374696e672063756c747572616c2c20636f6d6d65726369616c2c20616e6420696e737469747574696f6e616c20766f69636573206f66207468652070617374206465636164652e4d6f6f6e20436f6c6c65637469766520697320616e20417369616e20416d65726963616e20636c6f7468696e6720616e642064657369676e2073747564696f20626173656420696e2074686520426179204172656120616e6420486f6e6f6c756c752e205765206472617720696e737069726174696f6e2066726f6d206d696e696d616c69736d2c206120706561636566756c206a6f75726e65792c2066756e6e79206d656d6f7269657320616e642070737963686564656c696320666f6c6b6c6f72652e2057652070726f647563652064657369676e73207765206c6f7665207468726f7567686f75742074686520666f757220736561736f6e7320616e64206465646963617465206f75722074696d6520646576656c6f70696e67206f757220696e2d686f757365206272616e642c204d6f6f6e207374726976657320746f206275696c6420636f6d6d756e697479207468726f756768206f757220776f726b20616e64206f757220667269656e64736869702ea26469706673582212200f6c546faad8ab36c12f6dbb330d6025d7e97fa71b9e47e24ff84fe0956ec66964736f6c634300080d00330000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000003161723a2f2f7444496f6138743563426e4a4972357673494d42695833496c777669796a6a684c78717548676b376456592f000000000000000000000000000000

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106101c45760003560e01c806370a08231116100f9578063a22cb46511610097578063d539139311610071578063d5391393146103df578063d547741f14610406578063e985e9c514610419578063ed957ba81461044757600080fd5b8063a22cb465146103a6578063b88d4fde146103b9578063c87b56dd146103cc57600080fd5b80638da5cb5b116100d35780638da5cb5b1461037057806391d148541461038357806395d89b4114610396578063a217fddf1461039e57600080fd5b806370a082311461032e57806375b238fc14610341578063776458391461036857600080fd5b8063248a9ca31161016657806340c10f191161014057806340c10f19146102e257806342842e0e146102f55780636352211e146103085780636cfa24cc1461031b57600080fd5b8063248a9ca3146102995780632f2ff15d146102bc57806336568abe146102cf57600080fd5b8063095ea7b3116101a2578063095ea7b31461024757806313af40351461025c57806318160ddd1461026f57806323b872dd1461028657600080fd5b806301ffc9a7146101c957806306fdde03146101f1578063081812fc14610206575b600080fd5b6101dc6101d7366004611b0f565b610467565b60405190151581526020015b60405180910390f35b6101f96104d4565b6040516101e89190611b58565b61022f610214366004611b8b565b6004602052600090815260409020546001600160a01b031681565b6040516001600160a01b0390911681526020016101e8565b61025a610255366004611bbb565b610562565b005b61025a61026a366004611be5565b610649565b61027860095481565b6040519081526020016101e8565b61025a610294366004611c00565b6106de565b6102786102a7366004611b8b565b60009081526007602052604090206001015490565b61025a6102ca366004611c3c565b6108a5565b61025a6102dd366004611c3c565b6108cf565b61025a6102f0366004611bbb565b61094d565b61025a610303366004611c00565b6109eb565b61022f610316366004611b8b565b610abb565b61025a610329366004611cb1565b610b12565b61027861033c366004611be5565b610b4e565b6102787fa49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c2177581565b6101f9610bb1565b60065461022f906001600160a01b031681565b6101dc610391366004611c3c565b610bbe565b6101f9610be9565b610278600081565b61025a6103b4366004611cf3565b610bf6565b61025a6103c7366004611d2f565b610c62565b6101f96103da366004611b8b565b610d27565b6102787f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a681565b61025a610414366004611c3c565b610e70565b6101dc610427366004611d9e565b600560209081526000928352604080842090915290825290205460ff1681565b610278610455366004611b8b565b6000908152600a602052604090205490565b60006301ffc9a760e01b6001600160e01b03198316148061049857506380ac58cd60e01b6001600160e01b03198316145b806104b35750635b5e139f60e01b6001600160e01b03198316145b806104ce57506001600160e01b03198216637965db0b60e01b145b92915050565b600080546104e190611dc8565b80601f016020809104026020016040519081016040528092919081815260200182805461050d90611dc8565b801561055a5780601f1061052f5761010080835404028352916020019161055a565b820191906000526020600020905b81548152906001019060200180831161053d57829003601f168201915b505050505081565b6000818152600260205260409020546001600160a01b0316338114806105ab57506001600160a01b038116600090815260056020908152604080832033845290915290205460ff165b6105ed5760405162461bcd60e51b815260206004820152600e60248201526d1393d517d055551213d49256915160921b60448201526064015b60405180910390fd5b60008281526004602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b6006546001600160a01b031633146106925760405162461bcd60e51b815260206004820152600c60248201526b15539055551213d49256915160a21b60448201526064016105e4565b600680546001600160a01b0319166001600160a01b03831690811790915560405133907f8292fce18fa69edf4db7b94ea2e58241df0ae57f97e0a6c9b29067028bf92d7690600090a350565b6000818152600260205260409020546001600160a01b038481169116146107345760405162461bcd60e51b815260206004820152600a60248201526957524f4e475f46524f4d60b01b60448201526064016105e4565b6001600160a01b03821661077e5760405162461bcd60e51b81526020600482015260116024820152701253959053125117d49150d25412515395607a1b60448201526064016105e4565b336001600160a01b03841614806107b857506001600160a01b038316600090815260056020908152604080832033845290915290205460ff165b806107d957506000818152600460205260409020546001600160a01b031633145b6108165760405162461bcd60e51b815260206004820152600e60248201526d1393d517d055551213d49256915160921b60448201526064016105e4565b6001600160a01b0380841660008181526003602090815260408083208054600019019055938616808352848320805460010190558583526002825284832080546001600160a01b03199081168317909155600490925284832080549092169091559251849392917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6000828152600760205260409020600101546108c081610e95565b6108ca8383610ea2565b505050565b6001600160a01b038116331461093f5760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b60648201526084016105e4565b6109498282610f28565b5050565b7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a661097781610e95565b61098383600954610f8f565b506000818152600a6020908152604080832080546001908101918290558251808401845260ff9687168152918616828501908152600980548752600b9095529290942090518154925186166101000261ffff1990931695169490941717909255815401905550565b6109f68383836106de565b6001600160a01b0382163b1580610a9f5750604051630a85bd0160e11b8082523360048301526001600160a01b03858116602484015260448301849052608060648401526000608484015290919084169063150b7a029060a4016020604051808303816000875af1158015610a6f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a939190611e02565b6001600160e01b031916145b6108ca5760405162461bcd60e51b81526004016105e490611e1f565b6000818152600260205260409020546001600160a01b031680610b0d5760405162461bcd60e51b815260206004820152600a6024820152691393d517d3525395115160b21b60448201526064016105e4565b919050565b7fa49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c21775610b3c81610e95565b610b4860088484611a60565b50505050565b60006001600160a01b038216610b955760405162461bcd60e51b815260206004820152600c60248201526b5a45524f5f4144445245535360a01b60448201526064016105e4565b506001600160a01b031660009081526003602052604090205490565b600880546104e190611dc8565b60009182526007602090815260408084206001600160a01b0393909316845291905290205460ff1690565b600180546104e190611dc8565b3360008181526005602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b610c6d8585856106de565b6001600160a01b0384163b1580610d045750604051630a85bd0160e11b808252906001600160a01b0386169063150b7a0290610cb59033908a90899089908990600401611e49565b6020604051808303816000875af1158015610cd4573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610cf89190611e02565b6001600160e01b031916145b610d205760405162461bcd60e51b81526004016105e490611e1f565b5050505050565b6000818152600260205260409020546060906001600160a01b0316610da65760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b60648201526084016105e4565b6000828152600b6020908152604080832081518083019092525460ff80821680845261010090920416928201839052909291610e4591610de59161105b565b8351610df39060ff16611097565b6008610e05866000015160ff1661134c565b610e1d876000015160ff16886020015160ff16611455565b604051602001610e31959493929190611eb9565b60405160208183030381529060405261147a565b905080604051602001610e58919061202c565b60405160208183030381529060405292505050919050565b600082815260076020526040902060010154610e8b81610e95565b6108ca8383610f28565b610e9f81336115e4565b50565b610eac8282610bbe565b6109495760008281526007602090815260408083206001600160a01b03851684529091529020805460ff19166001179055610ee43390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b610f328282610bbe565b156109495760008281526007602090815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b610f998282611648565b6001600160a01b0382163b158061103f5750604051630a85bd0160e11b80825233600483015260006024830181905260448301849052608060648401526084830152906001600160a01b0384169063150b7a029060a4016020604051808303816000875af115801561100f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110339190611e02565b6001600160e01b031916145b6109495760405162461bcd60e51b81526004016105e490611e1f565b606061106683611753565b61106f8361134c565b604051602001611080929190612071565b604051602081830303815290604052905092915050565b6060816000036110c15760405180610120016040528060e2815260200161247b60e2913992915050565b816001036110e95760405180610120016040528060ec81526020016126be60ec913992915050565b8160020361111357604051806101a0016040528061016c81526020016128a361016c913992915050565b8160030361113b5760405180610120016040528060f981526020016127aa60f9913992915050565b8160040361116557604051806101600160405280610121815260200161255d610121913992915050565b8160050361118f57604051806101a001604052806101768152602001612a0f610176913992915050565b816006036111b9576040518061014001604052806101198152602001612362610119913992915050565b604051602001611336907f5941534c592069732044616e6e79204a6f6e65732c206120334420446573696781527f6e6572206c6976696e6720696e2053616e204672616e636973636f2c2043616c60208201527f69666f726e6961206578706c6f72696e6720746865207370616365206265747760408201527f65656e2077686174206973207265616c20616e642077686174206973206e6f7460608201526238a02560ea1b60808201527f33442068656c70732068696d20756e6465727374616e6420616e64207365652060838201527f696e2061206e6577207761792e2044616e6e79277320636f6e7374616e746c7960a38201527f2074616b696e67206e6f74696365206f662074686520696d706572666563746960c38201527f6f6e7320696e2074686520776f726c6420616e6420686f772074686f7365207460e38201527f72616e736c61746520696e746f2074686520776f726b2068652063726561746561010382015261399760f11b6101238201526101250190565b6040516020818303038152906040529050919050565b6060816000036113735750506040805180820190915260018152600360fc1b602082015290565b8160005b811561139d5780611387816120f6565b91506113969050600a83612125565b9150611377565b60008167ffffffffffffffff8111156113b8576113b8612139565b6040519080825280601f01601f1916602001820160405280156113e2576020820181803683370190505b5090505b841561144d576113f760018361214f565b9150611404600a86612166565b61140f90603061217a565b60f81b81838151811061142457611424612192565b60200101906001600160f81b031916908160001a905350611446600a86612125565b94506113e6565b949350505050565b606061146083611753565b6114698361134c565b6040516020016110809291906121a8565b8051606090600081900361149e575050604080516020810190915260008152919050565b600060036114ad83600261217a565b6114b79190612125565b6114c29060046122b6565b905060006114d182602061217a565b67ffffffffffffffff8111156114e9576114e9612139565b6040519080825280601f01601f191660200182016040528015611513576020820181803683370190505b509050600060405180606001604052806040815260200161267e604091399050600181016020830160005b8681101561159f576003818a01810151603f601282901c8116860151600c83901c8216870151600684901c831688015192909316870151600891821b60ff94851601821b92841692909201901b91160160e01b83526004909201910161153e565b5060038606600181146115b957600281146115ca576115d6565b613d3d60f01b6001198301526115d6565b603d60f81b6000198301525b505050918152949350505050565b6115ee8282610bbe565b61094957611606816001600160a01b031660146118bd565b6116118360206118bd565b6040516020016116229291906122d5565b60408051601f198184030181529082905262461bcd60e51b82526105e491600401611b58565b6001600160a01b0382166116925760405162461bcd60e51b81526020600482015260116024820152701253959053125117d49150d25412515395607a1b60448201526064016105e4565b6000818152600260205260409020546001600160a01b0316156116e85760405162461bcd60e51b815260206004820152600e60248201526d1053149150511657d3525395115160921b60448201526064016105e4565b6001600160a01b038216600081815260036020908152604080832080546001019055848352600290915280822080546001600160a01b0319168417905551839291907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6060816000036117805750506040805180820190915260078152664164616d20486f60c81b602082015290565b816001036117b357505060408051808201909152600f81526e22b634b530b41020b73232b939b7b760891b602082015290565b816002036117de5750506040805180820190915260078152664572696320487560c81b602082015290565b8160030361181157505060408051808201909152600f81526e486172756b6f20486179616b61776160881b602082015290565b8160040361183d575050604080518082019091526008815267263ab63a902634b760c11b602082015290565b8160050361187057505060408051808201909152600f81526e4d6f6f6e20436f6c6c65637469766560881b602082015290565b8160060361189c5750506040805180820190915260088152670a6d0c2eedcc240b60c31b602082015290565b50506040805180820190915260058152645961736c7960d81b602082015290565b606060006118cc8360026122b6565b6118d790600261217a565b67ffffffffffffffff8111156118ef576118ef612139565b6040519080825280601f01601f191660200182016040528015611919576020820181803683370190505b509050600360fc1b8160008151811061193457611934612192565b60200101906001600160f81b031916908160001a905350600f60fb1b8160018151811061196357611963612192565b60200101906001600160f81b031916908160001a90535060006119878460026122b6565b61199290600161217a565b90505b6001811115611a0a576f181899199a1a9b1b9c1cb0b131b232b360811b85600f16601081106119c6576119c6612192565b1a60f81b8282815181106119dc576119dc612192565b60200101906001600160f81b031916908160001a90535060049490941c93611a038161234a565b9050611995565b508315611a595760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e7460448201526064016105e4565b9392505050565b828054611a6c90611dc8565b90600052602060002090601f016020900481019282611a8e5760008555611ad4565b82601f10611aa75782800160ff19823516178555611ad4565b82800160010185558215611ad4579182015b82811115611ad4578235825591602001919060010190611ab9565b50611ae0929150611ae4565b5090565b5b80821115611ae05760008155600101611ae5565b6001600160e01b031981168114610e9f57600080fd5b600060208284031215611b2157600080fd5b8135611a5981611af9565b60005b83811015611b47578181015183820152602001611b2f565b83811115610b485750506000910152565b6020815260008251806020840152611b77816040850160208701611b2c565b601f01601f19169190910160400192915050565b600060208284031215611b9d57600080fd5b5035919050565b80356001600160a01b0381168114610b0d57600080fd5b60008060408385031215611bce57600080fd5b611bd783611ba4565b946020939093013593505050565b600060208284031215611bf757600080fd5b611a5982611ba4565b600080600060608486031215611c1557600080fd5b611c1e84611ba4565b9250611c2c60208501611ba4565b9150604084013590509250925092565b60008060408385031215611c4f57600080fd5b82359150611c5f60208401611ba4565b90509250929050565b60008083601f840112611c7a57600080fd5b50813567ffffffffffffffff811115611c9257600080fd5b602083019150836020828501011115611caa57600080fd5b9250929050565b60008060208385031215611cc457600080fd5b823567ffffffffffffffff811115611cdb57600080fd5b611ce785828601611c68565b90969095509350505050565b60008060408385031215611d0657600080fd5b611d0f83611ba4565b915060208301358015158114611d2457600080fd5b809150509250929050565b600080600080600060808688031215611d4757600080fd5b611d5086611ba4565b9450611d5e60208701611ba4565b935060408601359250606086013567ffffffffffffffff811115611d8157600080fd5b611d8d88828901611c68565b969995985093965092949392505050565b60008060408385031215611db157600080fd5b611dba83611ba4565b9150611c5f60208401611ba4565b600181811c90821680611ddc57607f821691505b602082108103611dfc57634e487b7160e01b600052602260045260246000fd5b50919050565b600060208284031215611e1457600080fd5b8151611a5981611af9565b60208082526010908201526f155394d0519157d49150d2541251539560821b604082015260600190565b6001600160a01b038681168252851660208201526040810184905260806060820181905281018290526000828460a0840137600060a0848401015260a0601f19601f85011683010190509695505050505050565b60008151611eaf818560208601611b2c565b9290920192915050565b607b60f81b81526000600168113730b6b2911d101160b91b8184015287516020611ee982600a8701838d01611b2c565b6201116160ed1b600a9286019283018190526f113232b9b1b934b83a34b7b7111d101160811b600d8401528951611f2681601d8601858e01611b2c565b601d930192830152691134b6b0b3b2911d101160b11b818301528754602a9060009080861c86821680611f5a57607f821691505b8582108103611f7757634e487b7160e01b84526022600452602484fd5b808015611f8b5760018114611fa057611fd1565b60ff1984168887015282880186019450611fd1565b60008e81526020902060005b84811015611fc75781548a8201890152908a01908801611fac565b5050858389010194505b50505050611fdf818a611e9d565b9350505050611ff3816201116160ed1b9052565b6d01130ba3a3934b13aba32b9911d160951b60038201526120176011820186611e9d565b607d60f81b8152905001979650505050505050565b7f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c00000081526000825161206481601d850160208701611b2c565b91909101601d0192915050565b60008351612083818460208801611b2c565b61202360f01b90830190815283516120a2816002840160208801611b2c565b600160fd1b600292909101918201526238a02560ea1b60038201526e102737bab739903c102b32b1ba37b960891b6006820152601501949350505050565b634e487b7160e01b600052601160045260246000fd5b600060018201612108576121086120e0565b5060010190565b634e487b7160e01b600052601260045260246000fd5b6000826121345761213461210f565b500490565b634e487b7160e01b600052604160045260246000fd5b600082821015612161576121616120e0565b500390565b6000826121755761217561210f565b500690565b6000821982111561218d5761218d6120e0565b500190565b634e487b7160e01b600052603260045260246000fd5b605b60f81b81527f7b2274726169745f74797065223a2022617274697374222c202276616c7565226001820152621d101160e91b602182015282516000906121f7816024850160208801611b2c565b62089f4b60ea1b60249184019182018190527f7b2274726169745f74797065223a202265646974696f6e222c202276616c7565602783015263111d101160e11b6047830152845161224f81604b850160208901611b2c565b604b9201918201527f7b2274726169745f74797065223a20226c6963656e7365222c202276616c7565604e82015274223a202243432042592d4e432d534120342e30227d60581b606e8201526122ab60838201605d60f81b9052565b608401949350505050565b60008160001904831182151516156122d0576122d06120e0565b500290565b7f416363657373436f6e74726f6c3a206163636f756e742000000000000000000081526000835161230d816017850160208801611b2c565b7001034b99036b4b9b9b4b733903937b6329607d1b601791840191820152835161233e816028840160208801611b2c565b01602801949350505050565b600081612359576123596120e0565b50600019019056fe536861776e61205820616e2061727469737420626173656420696e204e657720596f726b20436974792c206b6e6f776e20666f72206865722076696272616e7420616e64207375727265616c20696d6167652d6d616b696e67206f6e2070726f6a656374732061626f7574206964656e746974792c206d6f74686572686f6f642c20616e6420636f6d6d756e6974792e2048657220726563656e7420636f6c6c61626f726174696f6e7320696e636c756465207075626c6963206172742074616b656f766572732077697468206c617267652d7363616c65206d7572616c7320696e204272617a696c2c20616e64204e5943204c4952522073746174696f6e206465627574696e6720696e2066616c6c206f6620323032322e4164616d20486f20697320612064657369676e657220616e642061727469737420776974682061207374726f6e6720666f637573206f6e206272616e64696e672c20696e746572616374696f6e2064657369676e2c20616e642061727420646972656374696f6e2e20486520697320626173656420696e20517565656e732c204e657720596f726b2e2048652068617320776f726b6564207769746820636c69656e74732073756368206173204d656469756d2c20416972626e622c205371756172652c2044726f70626f782c20506f73746d617465732c20616e64204e696b652e4c756c75204c696e20697320616e20696e7465726469736369706c696e6172792064657369676e65722c2073686520686173206761726e6572656420746865206d6f7374207075626c696320696e74657265737420666f722068657220696c6c757374726174696f6e732e204865722064726177696e677320686173206265656e206465736372696265642061732073756276657274696e672068756d616e20666f726d7320696e2073757270726973696e6720616e6420656e67726f7373696e6720776179732c206f6674656e206c756d707920616e6420666c657368792c20737472696b65207468652076696577657220617320706c617966756c2c207375727265616c2c20616e6420736f6d6574696d657320756e736574746c696e672e4142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2f456c696a616820416e646572736f6e2069732061206d756c74696469736369706c696e617279206172746973742077686f2068617320636f6c6c61626f726174656420616e6420776f726b6564207769746820612072616e6765206f66206272616e647320616e64207075626c69636174696f6e7320696e636c7564696e67204e657720596f726b204d61672c20506f70657965206d61672c204164696461732c20536e65616b657273206e2053747566662c20616e6420426f6f6b776f726b732e2048652063757272656e746c79206c6976657320696e2042726f6f6b6c796e2c204e657720596f726b2e486172756b6f20486179616b61776120697320612043472041727469737420616e64204372656174697665204469726563746f7220626173656420696e2042726f6f6b6c796e2c204e657720596f726b2e2048657220776f726b20666f6375736573206f6e20686572204a6170616e6573652d416d65726963616e2063756c747572652c206d6174657269616c69747920616e6420666f726d2e205368652068617320776f726b6564207769746820546865204e657720596f726b2054696d65732c20426f6e20417070657469742c20466c79206279204a696e672c2050616e65726120427265616420616e6420534b595920566f646b612e4572696320487520697320616e20696e646570656e64656e74206372656174697665206469726563746f7220616e64207479706f677261706865722e205468726f756768207468652076697375616c206964656e7469747920776f726b206f66206869732065706f6e796d6f75732064657369676e2073747564696f2c206869732061727420646972656374696f6e20666f72204d6f6c64204d6167617a696e652c2070726576696f75732074656e75726573206c656164696e672064657369676e206174204e696b6520616e64205353454e53452c20487520686173206265656e20696e666c75656e7469616c20696e2073686170696e67207468652076697375616c206c616e6775616765206f6620736f6d65206f6620746865206d6f7374206c617374696e672063756c747572616c2c20636f6d6d65726369616c2c20616e6420696e737469747574696f6e616c20766f69636573206f66207468652070617374206465636164652e4d6f6f6e20436f6c6c65637469766520697320616e20417369616e20416d65726963616e20636c6f7468696e6720616e642064657369676e2073747564696f20626173656420696e2074686520426179204172656120616e6420486f6e6f6c756c752e205765206472617720696e737069726174696f6e2066726f6d206d696e696d616c69736d2c206120706561636566756c206a6f75726e65792c2066756e6e79206d656d6f7269657320616e642070737963686564656c696320666f6c6b6c6f72652e2057652070726f647563652064657369676e73207765206c6f7665207468726f7567686f75742074686520666f757220736561736f6e7320616e64206465646963617465206f75722074696d6520646576656c6f70696e67206f757220696e2d686f757365206272616e642c204d6f6f6e207374726976657320746f206275696c6420636f6d6d756e697479207468726f756768206f757220776f726b20616e64206f757220667269656e64736869702ea26469706673582212200f6c546faad8ab36c12f6dbb330d6025d7e97fa71b9e47e24ff84fe0956ec66964736f6c634300080d0033

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

0000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000003161723a2f2f7444496f6138743563426e4a4972357673494d42695833496c777669796a6a684c78717548676b376456592f000000000000000000000000000000

-----Decoded View---------------
Arg [0] : _imageBaseURI (string): ar://tDIoa8t5cBnJIr5vsIMBiX3IlwviyjjhLxquHgk7dVY/

-----Encoded View---------------
4 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000020
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000031
Arg [2] : 61723a2f2f7444496f6138743563426e4a4972357673494d42695833496c7776
Arg [3] : 69796a6a684c78717548676b376456592f000000000000000000000000000000


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.