ETH Price: $3,530.65 (+4.24%)

Token

Omega (1ED)
 

Overview

Max Total Supply

0 1ED

Holders

353

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A

Other Info

Balance
1 1ED
0x502723d710170d60C9A8408DF8F863e714af2e99
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:
OmegaComic

Compiler Version
v0.8.9+commit.e5eed63a

Optimization Enabled:
Yes with 10000 runs

Other Settings:
default evmVersion
File 1 of 13 : OmegaComic.sol
// SPDX-License-Identifier: Unlicensed

pragma solidity 0.8.9;

import '@openzeppelin/contracts/token/ERC721/ERC721.sol';
import '@openzeppelin/contracts/access/Ownable.sol';
import '@openzeppelin/contracts/interfaces/IERC2981.sol';
import '@openzeppelin/contracts/utils/cryptography/MerkleProof.sol';

/*
    ██▜█▟███████████████▜▛▙▛▛▛▟▜▟▞▛▛▛▛█▞▙▙█▜▜▜▙███████
    ████████▜█▛█▙██▟█▟█▟▜▝▖▞▖▌▞▄▗▐▗▚▐▗▖▞▖▖▖▘▚▜▛██▜█▛██
    █▛████▜▟████████▛█▟▜▗▚▛▙▛▛▙▜▜▚▛▙▛▙▜▜▟▜▚▚▜▜████████
    ████▙████████▛▙██▜▞▚▐▚▛▟▝▀▞▀▞▀▞▚▀▞▜▚▙▀▖▟▜█▙███████
    ███████████▜▟███▟▜▝▞▟▜▞▖▌▙▐▐▗▚▞▄▝▗▛▙▀▞▟▜█▙██▙█▙███
    ██▟█▜█████▜████▟▜▘▚▛▙▛▖▄▝▖▞▖▚▖▄▗▚▛▟▚▚▟▟▛▙█████████
    ██████▛██▟███▙█▞▚▐▜▟▙▜▜▟▛█▟▜▙▜▟▚▛▟▚▘▟▟▙████▛███▜▙█
    █▙██████████▙█▟▝▄▜▙▙▜▜▛▙█▙▛▙▜▙▜▜▜▚▚▟▙█▟███████▟███
    ████▜███▜█▜▟▙▙▘▞▟▙▚▌▚▘▜▜▟▙█▜▚▝▝▝▝▖▟▟▟▛███▜▟███████
    ██▜███▟█████▟▝▐▟▚▙▀▖▙▜▗▜▟▟▙▛▙▝▜▜▛▛▙█▜███▟████▟████
    ████████▛▙█▟▝▐▚▛▙▌▚▟▟▜▖▚▙▙▙█▟▐▐▜▟█████████████████
    █▛██▛█▛▙██▙▘▞▙▜▞▌▞▟▟▟▜▟▗▚▙▚▙▚▙▗▜▙█▙██▛▙█████▜█▛▙██
    █████████▙▚▘▞▗▘▚▘▟▟▟▙█▙▌▖▞▝▖▚▗▘▟▟▙██▙█████▜███████
    ███▛█████▟█▜▟▛█▙█▛█▙█▙▛█▜▟▛█▜▙█▙██████████████████

*/
contract OmegaComic is Ownable, ERC721, IERC2981 {
    /* -------------------------------------------------------------------------- */
    /*                                   Config                                   */
    /* -------------------------------------------------------------------------- */

    /**
     * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each
     * token will be the concatenation of the `baseURI` and the `tokenId`.
     */
    string public baseTokenURI;

    /**
     * @notice Max supply of tokens
     */
    uint256 public immutable maxSupply;

    /**
     * @notice NFT royalties (ERC2981)
     * 10% = 1000 bps
     * (royaltyBps * _salePrice) / 10000
     */
    uint256 public royaltyBps;

    /**
     * @notice Royalty fee receiver address
     * this address will received royalty fee from second market sales
     */
    address public royaltyReceiver;

    /**
     * @notice Merkle root hash used for whitelist mint
     */
    bytes32 public merkleRoot;

    /**
     * @notice mapping between owner address -> flag if token is already claimed
     */
    mapping(address => uint256) public tokensClaimedPerUser;

    /**
     * @notice current token id - this ID will be used for next minted token
     */
    uint256 public currentTokenId = 1;

    /**
     * @notice Max tokens per user
     */
    uint256 public constant MAX_TOKENS_PER_USER = 4;

    /**
     * @notice Max royalty(bps) allowed = 10%
     */
    uint16 public constant MAX_ROYALTY_BPS_ALLOWED = 1000;

    /**
     * @notice Address that can execute claims up to the limit of the total supply
     */
    address public whitelistedClaimer;

    /* -------------------------------------------------------------------------- */
    /*                                   EVENTS                                   */
    /* -------------------------------------------------------------------------- */

    /**
     * @notice Emitted when royalty BPS is updated
     */
    event RoyaltyBpsUpdated(uint256 royaltyBps);

    /**
     * @notice Emitted when new merkle root is set
     */
    event MerkleRootUpdated(bytes32 newMerkleRoot);

    /**
     * @notice Emitted when new base url is set
     */
    event BaseURIUpdated(string newBaseURI);

    /**
     * @notice Emitted royalty receiver is updated
     */
    event RoyaltyReceiverUpdated(address newRoyaltyReceiver);

    /**
     * @notice Emitted when whitelisted claimer is updated
     */
    event WhitelistedClaimerUpdated(address newWhitelistedClaimer);

    /* ---------------------------------------------------------------------------- */
    /*                                   ERRORS                                     */
    /* ---------------------------------------------------------------------------- */

    /**
     * @notice thrown if tokens claimed + tokens to claim exceeds quantity user is allowed to claim
     */
    error AlreadyClaimed();

    /**
     * @notice thrown if combination of user address / number of tokens is not in merkle tree root
     */
    error NotInWhitelist();

    /**
     * @notice caller of contract is another contract
     */
    error CallerIsContract();

    /**
     * @notice thrown if address is 0x
     */
    error AddressCannotBe0();

    /**
     * @notice Max supply of tokens reached
     */
    error MaxSupplyReached();

    /**
     * @notice Invalid number of tokens to claim
     */
    error InvalidNumberOfTokensToClaim();

    /**
     * @notice Invalid number of claimed tokens
     */
    error InvalidNumberOfClaimedTokens();

    /**
     * @notice Royalty exceeds limit allowed
     */
    error RoyaltyExceedsLimitAllowed();

    /**
     * @notice User is not a whitelisted account
     */
    error UserIsNotAWhitelistedAccount();

    /* -------------------------------------------------------------------------- */
    /*                                   CONSTRUCTOR                              */
    /* -------------------------------------------------------------------------- */

    /**
     * @dev Initializes the Omega contract by
     * @param setMaxSupply - Max supply of tokens
     * @param initialName - Initial name of the token
     * @param initialSymbol - Initial symbol of the token
     * @param initialBaseTokenURI - Initial base URI of the token
     * @param initialRoyaltyBps - Initial royalty BPS of the token
     * @param initialRoyaltyReceiverAddress - Initial royalty receiver address of the token
     * @param initialMerkleRoot - Initial merkle root of the token
     * @param initialWhitelistedClaimer - Initial whitelisted claimer address
     */
    constructor(
        uint256 setMaxSupply,
        string memory initialName,
        string memory initialSymbol,
        string memory initialBaseTokenURI,
        uint256 initialRoyaltyBps,
        address initialRoyaltyReceiverAddress,
        bytes32 initialMerkleRoot,
        address initialWhitelistedClaimer
    ) ERC721(initialName, initialSymbol) {
        if (
            initialRoyaltyReceiverAddress == address(0) ||
            initialWhitelistedClaimer == address(0)
        )
            revert AddressCannotBe0();
        if (initialRoyaltyBps > MAX_ROYALTY_BPS_ALLOWED)
            revert RoyaltyExceedsLimitAllowed();
        maxSupply = setMaxSupply;
        baseTokenURI = initialBaseTokenURI;
        royaltyBps = initialRoyaltyBps;
        royaltyReceiver = initialRoyaltyReceiverAddress;
        merkleRoot = initialMerkleRoot;
        whitelistedClaimer = initialWhitelistedClaimer;
    }

    /* -------------------------------------------------------------------------- */
    /*                                   External functions                       */
    /* -------------------------------------------------------------------------- */

    /**
     * @notice Interface for the NFT Royalty Standard.
     *
     * A standardized way to retrieve royalty payment information for non-fungible tokens (NFTs) to enable universal
     * support for royalty payments across all NFT marketplaces and ecosystem participants.
     * @dev Returns how much royalty is owed and to whom, based on a sale price that may be denominated in any unit of
     * exchange. The royalty amount is denominated and should be payed in that same unit of exchange.
     *
     * @param salePrice Sale price of the token
     * @return receiver receiver address for royalty fee
     * @return royaltyAmount Royalty amount
     */
    function royaltyInfo(uint256, uint256 salePrice)
        external
        view
        override
        returns (address receiver, uint256 royaltyAmount)
    {
        receiver = royaltyReceiver;
        royaltyAmount = (salePrice * royaltyBps) / 10_000;
    }

    /**
     * @notice Set new royalty bps settings
     * @param newRoyaltyBps New BPS settings (10% = 1000 bps)
     */
    function setRoyaltyBps(uint256 newRoyaltyBps) external onlyOwner {
        if (newRoyaltyBps > MAX_ROYALTY_BPS_ALLOWED)
            revert RoyaltyExceedsLimitAllowed();
        royaltyBps = newRoyaltyBps;
        emit RoyaltyBpsUpdated(newRoyaltyBps);
    }

    /**
     * @notice Set new merkle tree root for whitelist mint
     * @param newMerkleRoot new merkle root tree
     */
    function setMerkleRoot(bytes32 newMerkleRoot) external onlyOwner {
        merkleRoot = newMerkleRoot;
        emit MerkleRootUpdated(newMerkleRoot);
    }

    /**
     * @notice helper function for exposing _baseURI()
     * @return base URI
     */
    function baseURI() external view returns (string memory) {
        return _baseURI();
    }

    /**
     * @notice Set new bse URI
     * @param newBaseURI New base URI
     */
    function setBaseURI(string calldata newBaseURI) external onlyOwner {
        baseTokenURI = newBaseURI;
        emit BaseURIUpdated(newBaseURI);
    }

    /**
     * @notice Set new royalty receiver address
     * @param newRoyaltyReceiver New royalty receiver address
     */
    function setRoyaltyReceiver(address newRoyaltyReceiver) external onlyOwner {
        if (newRoyaltyReceiver == address(0)) revert AddressCannotBe0();

        royaltyReceiver = newRoyaltyReceiver;

        emit RoyaltyReceiverUpdated(newRoyaltyReceiver);
    }

    /**
     * @notice Set new whitelisted claimer address
     * @param newWhitelistedClaimer New whitelisted claimer address
     */
    function setWhitelistedClaimer(address newWhitelistedClaimer) external onlyOwner {
        if (newWhitelistedClaimer == address(0)) revert AddressCannotBe0();

        whitelistedClaimer = newWhitelistedClaimer;

        emit WhitelistedClaimerUpdated(newWhitelistedClaimer);
    }

    /**
     * @notice Claim function
     * @param merkleProof - merkle proof
     * @param numberOfTokensAllowedToClaim - the total number of tokens a user is allowed to claim
     * @param numberOfTokensToClaim - number of tokens to be redeemed
     */
    function claim(
        bytes32[] calldata merkleProof,
        uint256 numberOfTokensAllowedToClaim,
        uint256 numberOfTokensToClaim
    ) external {
        if (
            numberOfTokensAllowedToClaim < 1 ||
            numberOfTokensAllowedToClaim > MAX_TOKENS_PER_USER
        ) revert InvalidNumberOfTokensToClaim();
        if (
            numberOfTokensToClaim < 1 ||
            numberOfTokensToClaim > MAX_TOKENS_PER_USER
        ) revert InvalidNumberOfClaimedTokens();
        if (currentTokenId + (numberOfTokensToClaim - 1) > maxSupply)
            revert MaxSupplyReached();

        _checkWhitelistRequirements(
            merkleProof,
            numberOfTokensAllowedToClaim,
            numberOfTokensToClaim
        );

        uint256 tokenId = currentTokenId;
        for (uint256 i = 0; i < numberOfTokensToClaim; i++) {
            _safeMint(msg.sender, tokenId);
            unchecked {
                tokenId += 1;
            }
        }

        currentTokenId = tokenId;
        tokensClaimedPerUser[msg.sender] += numberOfTokensToClaim;
    }

    /**
     * @notice Whitelisted claim function
     * @param quantity - number of tokens to be redeemed
     */
    function claimWithWhitelistedAddress(
        uint256 quantity
    ) external {
        if (msg.sender != whitelistedClaimer)
            revert UserIsNotAWhitelistedAccount();

        if (quantity < 1) revert InvalidNumberOfTokensToClaim();

        uint256 tokenId = currentTokenId;

        if (tokenId + (quantity - 1) > maxSupply) revert MaxSupplyReached();

        for (uint256 i = 0; i < quantity; i++) {
            _safeMint(msg.sender, tokenId);
            unchecked {
                tokenId += 1;
            }
        }

        currentTokenId = tokenId;
        tokensClaimedPerUser[msg.sender] += quantity;
    }

    /**
     * @notice Returns the Uniform Resource Identifier (URI) for `tokenId` token.
     * @param tokenId ID of token
     * @return uri for token
     */
    function tokenURI(uint256 tokenId)
        public
        view
        override
        returns (string memory)
    {
        return super.tokenURI(tokenId);
    }

    /* -------------------------------------------------------------------------- */
    /*                                   Public functions                         */
    /* -------------------------------------------------------------------------- */

    /**
     * @notice Returns if contract supports interface
     */
    function supportsInterface(bytes4 interfaceId)
        public
        view
        override(ERC721, IERC165)
        returns (bool)
    {
        return
            super.supportsInterface(interfaceId) ||
            interfaceId == type(IERC721).interfaceId ||
            interfaceId == type(IERC2981).interfaceId;
    }

    /* -------------------------------------------------------------------------- */
    /*                                   Internal functions                       */
    /* -------------------------------------------------------------------------- */

    /**
     * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each
     * token will be the concatenation of the `baseURI` and the `tokenId`. Empty
     * by default, can be overridden in child contracts.
     */
    function _baseURI() internal view override returns (string memory) {
        return baseTokenURI;
    }

    /* -------------------------------------------------------------------------- */
    /*                                   Private functions                        */
    /* -------------------------------------------------------------------------- */

    /**
     * @notice Check whitelist requirements
     * @param merkleProof - merkle proof
     * @param numberOfTokensAllowedToClaim - number of tokens a user is allowed to claim
     * @param numberOfTokensToClaim - number of tokens to redeem
     */
    function _checkWhitelistRequirements(
        bytes32[] calldata merkleProof,
        uint256 numberOfTokensAllowedToClaim,
        uint256 numberOfTokensToClaim
    ) private view {
        bytes32 leaf = keccak256(
            abi.encodePacked(msg.sender, numberOfTokensAllowedToClaim)
        );

        bool isValidLeaf = MerkleProof.verify(merkleProof, merkleRoot, leaf);

        if (!isValidLeaf) revert NotInWhitelist();

        if (
            tokensClaimedPerUser[msg.sender] + numberOfTokensToClaim >
            numberOfTokensAllowedToClaim
        ) revert AlreadyClaimed();
    }
}

File 2 of 13 : ERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (token/ERC721/ERC721.sol)

pragma solidity ^0.8.0;

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

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

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

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

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

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

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

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

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

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

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

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

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

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

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

    /**
     * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each
     * token will be the concatenation of the `baseURI` and the `tokenId`. Empty
     * by default, can be overridden in child contracts.
     */
    function _baseURI() internal view virtual returns (string memory) {
        return "";
    }

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

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

        _approve(to, tokenId);
    }

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

        return _tokenApprovals[tokenId];
    }

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

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

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

        _transfer(from, to, tokenId);
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        _beforeTokenTransfer(from, to, tokenId);

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

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

        emit Transfer(from, to, tokenId);

        _afterTokenTransfer(from, to, tokenId);
    }

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

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

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

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

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

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

File 3 of 13 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol)

pragma solidity ^0.8.0;

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

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

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

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

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        _checkOwner();
        _;
    }

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

    /**
     * @dev Throws if the sender is not the owner.
     */
    function _checkOwner() internal view virtual {
        require(owner() == _msgSender(), "Ownable: caller is not the owner");
    }

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

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

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

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

pragma solidity ^0.8.0;

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

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

File 5 of 13 : MerkleProof.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (utils/cryptography/MerkleProof.sol)

pragma solidity ^0.8.0;

/**
 * @dev These functions deal with verification of Merkle Tree proofs.
 *
 * The proofs can be generated using the JavaScript library
 * https://github.com/miguelmota/merkletreejs[merkletreejs].
 * Note: the hashing algorithm should be keccak256 and pair sorting should be enabled.
 *
 * See `test/utils/cryptography/MerkleProof.test.js` for some examples.
 *
 * WARNING: You should avoid using leaf values that are 64 bytes long prior to
 * hashing, or use a hash function other than keccak256 for hashing leaves.
 * This is because the concatenation of a sorted pair of internal nodes in
 * the merkle tree could be reinterpreted as a leaf value.
 */
library MerkleProof {
    /**
     * @dev Returns true if a `leaf` can be proved to be a part of a Merkle tree
     * defined by `root`. For this, a `proof` must be provided, containing
     * sibling hashes on the branch from the leaf to the root of the tree. Each
     * pair of leaves and each pair of pre-images are assumed to be sorted.
     */
    function verify(
        bytes32[] memory proof,
        bytes32 root,
        bytes32 leaf
    ) internal pure returns (bool) {
        return processProof(proof, leaf) == root;
    }

    /**
     * @dev Calldata version of {verify}
     *
     * _Available since v4.7._
     */
    function verifyCalldata(
        bytes32[] calldata proof,
        bytes32 root,
        bytes32 leaf
    ) internal pure returns (bool) {
        return processProofCalldata(proof, leaf) == root;
    }

    /**
     * @dev Returns the rebuilt hash obtained by traversing a Merkle tree up
     * from `leaf` using `proof`. A `proof` is valid if and only if the rebuilt
     * hash matches the root of the tree. When processing the proof, the pairs
     * of leafs & pre-images are assumed to be sorted.
     *
     * _Available since v4.4._
     */
    function processProof(bytes32[] memory proof, bytes32 leaf) internal pure returns (bytes32) {
        bytes32 computedHash = leaf;
        for (uint256 i = 0; i < proof.length; i++) {
            computedHash = _hashPair(computedHash, proof[i]);
        }
        return computedHash;
    }

    /**
     * @dev Calldata version of {processProof}
     *
     * _Available since v4.7._
     */
    function processProofCalldata(bytes32[] calldata proof, bytes32 leaf) internal pure returns (bytes32) {
        bytes32 computedHash = leaf;
        for (uint256 i = 0; i < proof.length; i++) {
            computedHash = _hashPair(computedHash, proof[i]);
        }
        return computedHash;
    }

    /**
     * @dev Returns true if the `leaves` can be proved to be a part of a Merkle tree defined by
     * `root`, according to `proof` and `proofFlags` as described in {processMultiProof}.
     *
     * _Available since v4.7._
     */
    function multiProofVerify(
        bytes32[] memory proof,
        bool[] memory proofFlags,
        bytes32 root,
        bytes32[] memory leaves
    ) internal pure returns (bool) {
        return processMultiProof(proof, proofFlags, leaves) == root;
    }

    /**
     * @dev Calldata version of {multiProofVerify}
     *
     * _Available since v4.7._
     */
    function multiProofVerifyCalldata(
        bytes32[] calldata proof,
        bool[] calldata proofFlags,
        bytes32 root,
        bytes32[] memory leaves
    ) internal pure returns (bool) {
        return processMultiProofCalldata(proof, proofFlags, leaves) == root;
    }

    /**
     * @dev Returns the root of a tree reconstructed from `leaves` and the sibling nodes in `proof`,
     * consuming from one or the other at each step according to the instructions given by
     * `proofFlags`.
     *
     * _Available since v4.7._
     */
    function processMultiProof(
        bytes32[] memory proof,
        bool[] memory proofFlags,
        bytes32[] memory leaves
    ) internal pure returns (bytes32 merkleRoot) {
        // This function rebuild the root hash by traversing the tree up from the leaves. The root is rebuilt by
        // consuming and producing values on a queue. The queue starts with the `leaves` array, then goes onto the
        // `hashes` array. At the end of the process, the last hash in the `hashes` array should contain the root of
        // the merkle tree.
        uint256 leavesLen = leaves.length;
        uint256 totalHashes = proofFlags.length;

        // Check proof validity.
        require(leavesLen + proof.length - 1 == totalHashes, "MerkleProof: invalid multiproof");

        // The xxxPos values are "pointers" to the next value to consume in each array. All accesses are done using
        // `xxx[xxxPos++]`, which return the current value and increment the pointer, thus mimicking a queue's "pop".
        bytes32[] memory hashes = new bytes32[](totalHashes);
        uint256 leafPos = 0;
        uint256 hashPos = 0;
        uint256 proofPos = 0;
        // At each step, we compute the next hash using two values:
        // - a value from the "main queue". If not all leaves have been consumed, we get the next leaf, otherwise we
        //   get the next hash.
        // - depending on the flag, either another value for the "main queue" (merging branches) or an element from the
        //   `proof` array.
        for (uint256 i = 0; i < totalHashes; i++) {
            bytes32 a = leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++];
            bytes32 b = proofFlags[i] ? leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++] : proof[proofPos++];
            hashes[i] = _hashPair(a, b);
        }

        if (totalHashes > 0) {
            return hashes[totalHashes - 1];
        } else if (leavesLen > 0) {
            return leaves[0];
        } else {
            return proof[0];
        }
    }

    /**
     * @dev Calldata version of {processMultiProof}
     *
     * _Available since v4.7._
     */
    function processMultiProofCalldata(
        bytes32[] calldata proof,
        bool[] calldata proofFlags,
        bytes32[] memory leaves
    ) internal pure returns (bytes32 merkleRoot) {
        // This function rebuild the root hash by traversing the tree up from the leaves. The root is rebuilt by
        // consuming and producing values on a queue. The queue starts with the `leaves` array, then goes onto the
        // `hashes` array. At the end of the process, the last hash in the `hashes` array should contain the root of
        // the merkle tree.
        uint256 leavesLen = leaves.length;
        uint256 totalHashes = proofFlags.length;

        // Check proof validity.
        require(leavesLen + proof.length - 1 == totalHashes, "MerkleProof: invalid multiproof");

        // The xxxPos values are "pointers" to the next value to consume in each array. All accesses are done using
        // `xxx[xxxPos++]`, which return the current value and increment the pointer, thus mimicking a queue's "pop".
        bytes32[] memory hashes = new bytes32[](totalHashes);
        uint256 leafPos = 0;
        uint256 hashPos = 0;
        uint256 proofPos = 0;
        // At each step, we compute the next hash using two values:
        // - a value from the "main queue". If not all leaves have been consumed, we get the next leaf, otherwise we
        //   get the next hash.
        // - depending on the flag, either another value for the "main queue" (merging branches) or an element from the
        //   `proof` array.
        for (uint256 i = 0; i < totalHashes; i++) {
            bytes32 a = leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++];
            bytes32 b = proofFlags[i] ? leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++] : proof[proofPos++];
            hashes[i] = _hashPair(a, b);
        }

        if (totalHashes > 0) {
            return hashes[totalHashes - 1];
        } else if (leavesLen > 0) {
            return leaves[0];
        } else {
            return proof[0];
        }
    }

    function _hashPair(bytes32 a, bytes32 b) private pure returns (bytes32) {
        return a < b ? _efficientHash(a, b) : _efficientHash(b, a);
    }

    function _efficientHash(bytes32 a, bytes32 b) private pure returns (bytes32 value) {
        /// @solidity memory-safe-assembly
        assembly {
            mstore(0x00, a)
            mstore(0x20, b)
            value := keccak256(0x00, 0x40)
        }
    }
}

File 6 of 13 : IERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (token/ERC721/IERC721.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

File 7 of 13 : IERC721Receiver.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC721/IERC721Receiver.sol)

pragma solidity ^0.8.0;

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

File 8 of 13 : IERC721Metadata.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol)

pragma solidity ^0.8.0;

import "../IERC721.sol";

/**
 * @title ERC-721 Non-Fungible Token Standard, optional metadata extension
 * @dev See https://eips.ethereum.org/EIPS/eip-721
 */
interface IERC721Metadata is IERC721 {
    /**
     * @dev Returns the token collection name.
     */
    function name() external view returns (string memory);

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

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

File 9 of 13 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (utils/Address.sol)

pragma solidity ^0.8.1;

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * [IMPORTANT]
     * ====
     * It is unsafe to assume that an address for which this function returns
     * false is an externally-owned account (EOA) and not a contract.
     *
     * Among others, `isContract` will return false for the following
     * types of addresses:
     *
     *  - an externally-owned account
     *  - a contract in construction
     *  - an address where a contract will be created
     *  - an address where a contract lived, but was destroyed
     * ====
     *
     * [IMPORTANT]
     * ====
     * You shouldn't rely on `isContract` to protect against flash loan attacks!
     *
     * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets
     * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract
     * constructor.
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize/address.code.length, which returns 0
        // for contracts in construction, since the code is only stored at the end
        // of the constructor execution.

        return account.code.length > 0;
    }

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

        (bool success, ) = recipient.call{value: amount}("");
        require(success, "Address: unable to send value, recipient may have reverted");
    }

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

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

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

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

        (bool success, bytes memory returndata) = target.call{value: value}(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

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

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

        (bool success, bytes memory returndata) = target.staticcall(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

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

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

        (bool success, bytes memory returndata) = target.delegatecall(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the
     * revert reason using the provided one.
     *
     * _Available since v4.3._
     */
    function verifyCallResult(
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal pure returns (bytes memory) {
        if (success) {
            return returndata;
        } else {
            // Look for revert reason and bubble it up if present
            if (returndata.length > 0) {
                // The easiest way to bubble the revert reason is using memory via assembly
                /// @solidity memory-safe-assembly
                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
}

File 10 of 13 : 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 11 of 13 : Strings.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (utils/Strings.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

File 12 of 13 : 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 13 of 13 : 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
{
  "optimizer": {
    "enabled": true,
    "runs": 10000,
    "details": {
      "yul": false
    }
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  },
  "metadata": {
    "useLiteralContent": true
  },
  "libraries": {}
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"uint256","name":"setMaxSupply","type":"uint256"},{"internalType":"string","name":"initialName","type":"string"},{"internalType":"string","name":"initialSymbol","type":"string"},{"internalType":"string","name":"initialBaseTokenURI","type":"string"},{"internalType":"uint256","name":"initialRoyaltyBps","type":"uint256"},{"internalType":"address","name":"initialRoyaltyReceiverAddress","type":"address"},{"internalType":"bytes32","name":"initialMerkleRoot","type":"bytes32"},{"internalType":"address","name":"initialWhitelistedClaimer","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"AddressCannotBe0","type":"error"},{"inputs":[],"name":"AlreadyClaimed","type":"error"},{"inputs":[],"name":"CallerIsContract","type":"error"},{"inputs":[],"name":"InvalidNumberOfClaimedTokens","type":"error"},{"inputs":[],"name":"InvalidNumberOfTokensToClaim","type":"error"},{"inputs":[],"name":"MaxSupplyReached","type":"error"},{"inputs":[],"name":"NotInWhitelist","type":"error"},{"inputs":[],"name":"RoyaltyExceedsLimitAllowed","type":"error"},{"inputs":[],"name":"UserIsNotAWhitelistedAccount","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"newBaseURI","type":"string"}],"name":"BaseURIUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bytes32","name":"newMerkleRoot","type":"bytes32"}],"name":"MerkleRootUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"royaltyBps","type":"uint256"}],"name":"RoyaltyBpsUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"newRoyaltyReceiver","type":"address"}],"name":"RoyaltyReceiverUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"newWhitelistedClaimer","type":"address"}],"name":"WhitelistedClaimerUpdated","type":"event"},{"inputs":[],"name":"MAX_ROYALTY_BPS_ALLOWED","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_TOKENS_PER_USER","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseTokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32[]","name":"merkleProof","type":"bytes32[]"},{"internalType":"uint256","name":"numberOfTokensAllowedToClaim","type":"uint256"},{"internalType":"uint256","name":"numberOfTokensToClaim","type":"uint256"}],"name":"claim","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"claimWithWhitelistedAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"currentTokenId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"merkleRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"royaltyBps","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"salePrice","type":"uint256"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"receiver","type":"address"},{"internalType":"uint256","name":"royaltyAmount","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"royaltyReceiver","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"newBaseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"newMerkleRoot","type":"bytes32"}],"name":"setMerkleRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newRoyaltyBps","type":"uint256"}],"name":"setRoyaltyBps","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newRoyaltyReceiver","type":"address"}],"name":"setRoyaltyReceiver","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newWhitelistedClaimer","type":"address"}],"name":"setWhitelistedClaimer","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"tokensClaimedPerUser","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"whitelistedClaimer","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"}]

60a06040526001600c553480156200001657600080fd5b5060405162002f9138038062002f918339810160408190526200003991620003b4565b8686620000463362000133565b81516200005b90600190602085019062000183565b5080516200007190600290602084019062000183565b5050506001600160a01b03831615806200009257506001600160a01b038116155b15620000b157604051631731d6f360e11b815260040160405180910390fd5b6103e8841115620000d55760405163365ca2c960e01b815260040160405180910390fd5b60808890528451620000ef90600790602088019062000183565b50600893909355600980546001600160a01b039384166001600160a01b031991821617909155600a91909155600d8054929093169116179055506200051492505050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b8280546200019190620004e3565b90600052602060002090601f016020900481019282620001b5576000855562000200565b82601f10620001d057805160ff191683800117855562000200565b8280016001018555821562000200579182015b8281111562000200578251825591602001919060010190620001e3565b506200020e92915062000212565b5090565b5b808211156200020e576000815560010162000213565b805b81146200023757600080fd5b50565b8051620002478162000229565b92915050565b634e487b7160e01b600052604160045260246000fd5b601f19601f83011681018181106001600160401b03821117156200028b576200028b6200024d565b6040525050565b60006200029e60405190565b9050620002ac828262000263565b919050565b60006001600160401b03821115620002cd57620002cd6200024d565b601f19601f83011660200192915050565b60005b83811015620002fb578181015183820152602001620002e1565b838111156200030b576000848401525b50505050565b6000620003286200032284620002b1565b62000292565b905082815260208101848484011115620003455762000345600080fd5b62000352848285620002de565b509392505050565b600082601f830112620003705762000370600080fd5b81516200038284826020860162000311565b949350505050565b60006001600160a01b03821662000247565b6200022b816200038a565b805162000247816200039c565b600080600080600080600080610100898b031215620003d657620003d6600080fd5b6000620003e48b8b6200023a565b98505060208901516001600160401b03811115620004055762000405600080fd5b620004138b828c016200035a565b97505060408901516001600160401b03811115620004345762000434600080fd5b620004428b828c016200035a565b96505060608901516001600160401b03811115620004635762000463600080fd5b620004718b828c016200035a565b9550506080620004848b828c016200023a565b94505060a0620004978b828c01620003a7565b93505060c0620004aa8b828c016200023a565b92505060e0620004bd8b828c01620003a7565b9150509295985092959890939650565b634e487b7160e01b600052602260045260246000fd5b600281046001821680620004f857607f821691505b602082108114156200050e576200050e620004cd565b50919050565b608051612a536200053e600039600081816104ac015281816109e80152610dd10152612a536000f3fe608060405234801561001057600080fd5b50600436106102405760003560e01c80636c0360eb11610145578063b88d4fde116100bd578063d547cfb71161008c578063e985e9c511610071578063e985e9c5146104ce578063f2fde38b14610517578063f36c17c61461052a57600080fd5b8063d547cfb71461049f578063d5abeb01146104a757600080fd5b8063b88d4fde1461045d578063c63adb2b14610470578063c87b56dd14610479578063d4a6da091461048c57600080fd5b80638da5cb5b1161011457806395d89b41116100f957806395d89b41146104225780639fbc87131461042a578063a22cb4651461044a57600080fd5b80638da5cb5b146103f15780638dc251e31461040f57600080fd5b80636c0360eb146103bb57806370a08231146103c3578063715018a6146103d65780637cb64759146103de57600080fd5b80631f72d831116101d85780632ff9b90e116101a757806355f804b31161018c57806355f804b31461038d5780636352211e146103a057806369c5dfd8146103b357600080fd5b80632ff9b90e1461036757806342842e0e1461037a57600080fd5b80631f72d8311461031757806323b872dd1461032a5780632a55205a1461033d5780632eb4a7ab1461035e57600080fd5b806306fdde031161021457806306fdde03146102c7578063081812fc146102dc578063095ea7b3146102ef5780631b0f8ec21461030457600080fd5b80629a9b7b1461024557806301ffc9a71461026457806302fe2d021461028457806304274f661461029a575b600080fd5b61024e600c5481565b60405161025b9190611c5c565b60405180910390f35b610277610272366004611ca4565b61054a565b60405161025b9190611ccd565b61028d6103e881565b60405161025b9190611ce5565b600d546102ba9073ffffffffffffffffffffffffffffffffffffffff1681565b60405161025b9190611d1a565b6102cf6105f3565b60405161025b9190611da6565b6102ba6102ea366004611dc8565b610685565b6103026102fd366004611dfd565b6106b9565b005b610302610312366004611e3a565b61079a565b610302610325366004611dc8565b61086a565b610302610338366004611e5b565b6108e3565b61035061034b366004611eab565b610914565b60405161025b929190611ecd565b61024e600a5481565b610302610375366004611dc8565b610957565b610302610388366004611e5b565b610ab0565b61030261039b366004611f3a565b610acb565b6102ba6103ae366004611dc8565b610b1d565b61024e600481565b6102cf610b5f565b61024e6103d1366004611e3a565b610b6e565b610302610bcc565b6103026103ec366004611dc8565b610be0565b60005473ffffffffffffffffffffffffffffffffffffffff166102ba565b61030261041d366004611e3a565b610c1d565b6102cf610ce2565b6009546102ba9073ffffffffffffffffffffffffffffffffffffffff1681565b610302610458366004611f95565b610cf1565b61030261046b366004612110565b610d00565b61024e60085481565b6102cf610487366004611dc8565b610d38565b61030261049a3660046121da565b610d43565b6102cf610eae565b61024e7f000000000000000000000000000000000000000000000000000000000000000081565b6102776104dc36600461223d565b73ffffffffffffffffffffffffffffffffffffffff918216600090815260066020908152604080832093909416825291909152205460ff1690565b610302610525366004611e3a565b610f3c565b61024e610538366004611e3a565b600b6020526000908152604090205481565b600061055582610f83565b806105a157507fffffffff0000000000000000000000000000000000000000000000000000000082167f80ac58cd00000000000000000000000000000000000000000000000000000000145b806105ed57507fffffffff0000000000000000000000000000000000000000000000000000000082167f2a55205a00000000000000000000000000000000000000000000000000000000145b92915050565b6060600180546106029061229f565b80601f016020809104026020016040519081016040528092919081815260200182805461062e9061229f565b801561067b5780601f106106505761010080835404028352916020019161067b565b820191906000526020600020905b81548152906001019060200180831161065e57829003601f168201915b5050505050905090565b600061069082611066565b5060009081526005602052604090205473ffffffffffffffffffffffffffffffffffffffff1690565b60006106c482610b1d565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16141561071b5760405162461bcd60e51b815260040161071290612329565b60405180910390fd5b3373ffffffffffffffffffffffffffffffffffffffff8216148061076f575073ffffffffffffffffffffffffffffffffffffffff8116600090815260066020908152604080832033845290915290205460ff165b61078b5760405162461bcd60e51b815260040161071290612393565b61079583836110a7565b505050565b6107a2611147565b73ffffffffffffffffffffffffffffffffffffffff81166107ef576040517f2e63ade600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600d80547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff83161790556040517fc0ebbe297b28d334c50af82f154c062e01f0c2659b3449fef0ce2e2c771abdb59061085f908390611d1a565b60405180910390a150565b610872611147565b6103e88111156108ae576040517f365ca2c900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60088190556040517f5601402930a1d1b5a0dff22c7cde3e019cee47a388253d2fb0361d8975f052f89061085f908390611c5c565b6108ed338261117e565b6109095760405162461bcd60e51b8152600401610712906123fd565b61079583838361123e565b60095460085473ffffffffffffffffffffffffffffffffffffffff9091169060009061271090610944908561243c565b61094e91906124a8565b90509250929050565b600d5473ffffffffffffffffffffffffffffffffffffffff1633146109a8576040517f3d2434b500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60018110156109e3576040517fba4c98a700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600c547f0000000000000000000000000000000000000000000000000000000000000000610a126001846124bc565b610a1c90836124d3565b1115610a54576040517fd05cb60900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60005b82811015610a8257610a6933836113c6565b6001820191508080610a7a906124eb565b915050610a57565b50600c819055336000908152600b602052604081208054849290610aa79084906124d3565b90915550505050565b61079583838360405180602001604052806000815250610d00565b610ad3611147565b610adf60078383611b9d565b507f6741b2fc379fad678116fe3d4d4b9a1a184ab53ba36b86ad0fa66340b1ab41ad8282604051610b11929190612565565b60405180910390a15050565b60008181526003602052604081205473ffffffffffffffffffffffffffffffffffffffff16806105ed5760405162461bcd60e51b8152600401610712906125ae565b6060610b696113e0565b905090565b600073ffffffffffffffffffffffffffffffffffffffff8216610ba35760405162461bcd60e51b815260040161071290612618565b5073ffffffffffffffffffffffffffffffffffffffff1660009081526004602052604090205490565b610bd4611147565b610bde60006113ef565b565b610be8611147565b600a8190556040517f90004c04698bc3322499a575ed3752dd4abf33e0a7294c06a787a0fe01bea9419061085f908390611c5c565b610c25611147565b73ffffffffffffffffffffffffffffffffffffffff8116610c72576040517f2e63ade600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600980547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff83161790556040517fc3696c23bd17454d95c44cb489c7a0db717d6d809e238813932720cc785ad5359061085f908390611d1a565b6060600280546106029061229f565b610cfc338383611464565b5050565b610d0a338361117e565b610d265760405162461bcd60e51b8152600401610712906123fd565b610d328484848461154c565b50505050565b60606105ed8261157f565b6001821080610d525750600482115b15610d89576040517fba4c98a700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6001811080610d985750600481115b15610dcf576040517f6e5e07e500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b7f0000000000000000000000000000000000000000000000000000000000000000610dfb6001836124bc565b600c54610e0891906124d3565b1115610e40576040517fd05cb60900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610e4c848484846115e6565b600c5460005b82811015610e7d57610e6433836113c6565b6001820191508080610e75906124eb565b915050610e52565b50600c819055336000908152600b602052604081208054849290610ea29084906124d3565b90915550505050505050565b60078054610ebb9061229f565b80601f0160208091040260200160405190810160405280929190818152602001828054610ee79061229f565b8015610f345780601f10610f0957610100808354040283529160200191610f34565b820191906000526020600020905b815481529060010190602001808311610f1757829003601f168201915b505050505081565b610f44611147565b73ffffffffffffffffffffffffffffffffffffffff8116610f775760405162461bcd60e51b815260040161071290612682565b610f80816113ef565b50565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f80ac58cd00000000000000000000000000000000000000000000000000000000148061101657507fffffffff0000000000000000000000000000000000000000000000000000000082167f5b5e139f00000000000000000000000000000000000000000000000000000000145b806105ed57507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff000000000000000000000000000000000000000000000000000000008316146105ed565b60008181526003602052604090205473ffffffffffffffffffffffffffffffffffffffff16610f805760405162461bcd60e51b8152600401610712906125ae565b600081815260056020526040902080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff8416908117909155819061110182610b1d565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60005473ffffffffffffffffffffffffffffffffffffffff163314610bde5760405162461bcd60e51b8152600401610712906126c4565b60008061118a83610b1d565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1614806111f8575073ffffffffffffffffffffffffffffffffffffffff80821660009081526006602090815260408083209388168352929052205460ff165b8061123657508373ffffffffffffffffffffffffffffffffffffffff1661121e84610685565b73ffffffffffffffffffffffffffffffffffffffff16145b949350505050565b8273ffffffffffffffffffffffffffffffffffffffff1661125e82610b1d565b73ffffffffffffffffffffffffffffffffffffffff16146112915760405162461bcd60e51b81526004016107129061272e565b73ffffffffffffffffffffffffffffffffffffffff82166112c45760405162461bcd60e51b815260040161071290612798565b6112cf6000826110a7565b73ffffffffffffffffffffffffffffffffffffffff831660009081526004602052604081208054600192906113059084906124bc565b909155505073ffffffffffffffffffffffffffffffffffffffff821660009081526004602052604081208054600192906113409084906124d3565b909155505060008181526003602052604080822080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff86811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b610cfc8282604051806020016040528060008152506116ec565b6060600780546106029061229f565b6000805473ffffffffffffffffffffffffffffffffffffffff8381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614156114b05760405162461bcd60e51b8152600401610712906127dc565b73ffffffffffffffffffffffffffffffffffffffff8381166000818152600660209081526040808320948716808452949091529081902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016851515179055517f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c319061153f908590611ccd565b60405180910390a3505050565b61155784848461123e565b6115638484848461171f565b610d325760405162461bcd60e51b815260040161071290612846565b606061158a82611066565b60006115946113e0565b905060008151116115b457604051806020016040528060008152506115df565b806115be846118ae565b6040516020016115cf929190612878565b6040516020818303038152906040525b9392505050565b600033836040516020016115fb9291906128be565b604051602081830303815290604052805190602001209050600061165686868080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525050600a5491508590506119e0565b90508061168f576040517f5b0aa2ba00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b336000908152600b602052604090205484906116ac9085906124d3565b11156116e4576040517f646cf55800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b505050505050565b6116f683836119f6565b611703600084848461171f565b6107955760405162461bcd60e51b815260040161071290612846565b600073ffffffffffffffffffffffffffffffffffffffff84163b156118a3576040517f150b7a0200000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff85169063150b7a02906117969033908990889088906004016128e4565b602060405180830381600087803b1580156117b057600080fd5b505af19250505080156117fe575060408051601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe01682019092526117fb91810190612933565b60015b611858573d80801561182c576040519150601f19603f3d011682016040523d82523d6000602084013e611831565b606091505b5080516118505760405162461bcd60e51b815260040161071290612846565b805181602001fd5b7fffffffff00000000000000000000000000000000000000000000000000000000167f150b7a0200000000000000000000000000000000000000000000000000000000149050611236565b506001949350505050565b6060816118ee57505060408051808201909152600181527f3000000000000000000000000000000000000000000000000000000000000000602082015290565b8160005b81156119185780611902816124eb565b91506119119050600a836124a8565b91506118f2565b60008167ffffffffffffffff81111561193357611933611fc8565b6040519080825280601f01601f19166020018201604052801561195d576020820181803683370190505b5090505b8415611236576119726001836124bc565b915061197f600a86612954565b61198a9060306124d3565b60f81b81838151811061199f5761199f612968565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053506119d9600a866124a8565b9450611961565b6000826119ed8584611b24565b14949350505050565b73ffffffffffffffffffffffffffffffffffffffff8216611a295760405162461bcd60e51b8152600401610712906129c9565b60008181526003602052604090205473ffffffffffffffffffffffffffffffffffffffff1615611a6b5760405162461bcd60e51b815260040161071290612a0d565b73ffffffffffffffffffffffffffffffffffffffff82166000908152600460205260408120805460019290611aa19084906124d3565b909155505060008181526003602052604080822080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b600081815b8451811015611b6957611b5582868381518110611b4857611b48612968565b6020026020010151611b71565b915080611b61816124eb565b915050611b29565b509392505050565b6000818310611b8d5760008281526020849052604090206115df565b5060009182526020526040902090565b828054611ba99061229f565b90600052602060002090601f016020900481019282611bcb5760008555611c2f565b82601f10611c02578280017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00823516178555611c2f565b82800160010185558215611c2f579182015b82811115611c2f578235825591602001919060010190611c14565b50611c3b929150611c3f565b5090565b5b80821115611c3b5760008155600101611c40565b805b82525050565b602081016105ed8284611c54565b7fffffffff0000000000000000000000000000000000000000000000000000000081165b8114610f8057600080fd5b80356105ed81611c6a565b600060208284031215611cb957611cb9600080fd5b60006112368484611c99565b801515611c56565b602081016105ed8284611cc5565b61ffff8116611c56565b602081016105ed8284611cdb565b600073ffffffffffffffffffffffffffffffffffffffff82166105ed565b611c5681611cf3565b602081016105ed8284611d11565b60005b83811015611d43578181015183820152602001611d2b565b83811115610d325750506000910152565b6000611d5e825190565b808452602084019350611d75818560208601611d28565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f8201165b9093019392505050565b602080825281016115df8184611d54565b80611c8e565b80356105ed81611db7565b600060208284031215611ddd57611ddd600080fd5b60006112368484611dbd565b611c8e81611cf3565b80356105ed81611de9565b60008060408385031215611e1357611e13600080fd5b6000611e1f8585611df2565b9250506020611e3085828601611dbd565b9150509250929050565b600060208284031215611e4f57611e4f600080fd5b60006112368484611df2565b600080600060608486031215611e7357611e73600080fd5b6000611e7f8686611df2565b9350506020611e9086828701611df2565b9250506040611ea186828701611dbd565b9150509250925092565b60008060408385031215611ec157611ec1600080fd5b6000611e1f8585611dbd565b60408101611edb8285611d11565b6115df6020830184611c54565b60008083601f840112611efd57611efd600080fd5b50813567ffffffffffffffff811115611f1857611f18600080fd5b602083019150836001820283011115611f3357611f33600080fd5b9250929050565b60008060208385031215611f5057611f50600080fd5b823567ffffffffffffffff811115611f6a57611f6a600080fd5b611f7685828601611ee8565b92509250509250929050565b801515611c8e565b80356105ed81611f82565b60008060408385031215611fab57611fab600080fd5b6000611fb78585611df2565b9250506020611e3085828601611f8a565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f830116810181811067ffffffffffffffff8211171561203b5761203b611fc8565b6040525050565b600061204d60405190565b90506120598282611ff7565b919050565b600067ffffffffffffffff82111561207857612078611fc8565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f83011660200192915050565b82818337506000910152565b60006120c66120c18461205e565b612042565b9050828152602081018484840111156120e1576120e1600080fd5b611b698482856120a7565b600082601f83011261210057612100600080fd5b81356112368482602086016120b3565b6000806000806080858703121561212957612129600080fd5b60006121358787611df2565b945050602061214687828801611df2565b935050604061215787828801611dbd565b925050606085013567ffffffffffffffff81111561217757612177600080fd5b612183878288016120ec565b91505092959194509250565b60008083601f8401126121a4576121a4600080fd5b50813567ffffffffffffffff8111156121bf576121bf600080fd5b602083019150836020820283011115611f3357611f33600080fd5b600080600080606085870312156121f3576121f3600080fd5b843567ffffffffffffffff81111561220d5761220d600080fd5b6122198782880161218f565b9450945050602061222c87828801611dbd565b925050604061218387828801611dbd565b6000806040838503121561225357612253600080fd5b600061225f8585611df2565b9250506020611e3085828601611df2565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6002810460018216806122b357607f821691505b602082108114156122c6576122c6612270565b50919050565b602181526000602082017f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6581527f7200000000000000000000000000000000000000000000000000000000000000602082015291505b5060400190565b602080825281016105ed816122cc565b603e81526000602082017f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f81527f6b656e206f776e6572206e6f7220617070726f76656420666f7220616c6c000060208201529150612322565b602080825281016105ed81612339565b602e81526000602082017f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6581527f72206e6f7220617070726f76656400000000000000000000000000000000000060208201529150612322565b602080825281016105ed816123a3565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04831182151516156124745761247461240d565b500290565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b6000826124b7576124b7612479565b500490565b6000828210156124ce576124ce61240d565b500390565b600082198211156124e6576124e661240d565b500190565b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82141561251d5761251d61240d565b5060010190565b818352600060208401935061253a8385846120a7565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f840116611d9c565b60208082528101611236818486612524565b601881526000602082017f4552433732313a20696e76616c696420746f6b656e2049440000000000000000815291505b5060200190565b602080825281016105ed81612577565b602981526000602082017f4552433732313a2061646472657373207a65726f206973206e6f74206120766181527f6c6964206f776e6572000000000000000000000000000000000000000000000060208201529150612322565b602080825281016105ed816125be565b602681526000602082017f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206181527f646472657373000000000000000000000000000000000000000000000000000060208201529150612322565b602080825281016105ed81612628565b60208082527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572910190815260006125a7565b602080825281016105ed81612692565b602581526000602082017f4552433732313a207472616e736665722066726f6d20696e636f72726563742081527f6f776e657200000000000000000000000000000000000000000000000000000060208201529150612322565b602080825281016105ed816126d4565b602481526000602082017f4552433732313a207472616e7366657220746f20746865207a65726f2061646481527f726573730000000000000000000000000000000000000000000000000000000060208201529150612322565b602080825281016105ed8161273e565b601981526000602082017f4552433732313a20617070726f766520746f2063616c6c657200000000000000815291506125a7565b602080825281016105ed816127a8565b603281526000602082017f4552433732313a207472616e7366657220746f206e6f6e20455243373231526581527f63656976657220696d706c656d656e746572000000000000000000000000000060208201529150612322565b602080825281016105ed816127ec565b6000612860825190565b61286e818560208601611d28565b9290920192915050565b60006128848285612856565b91506112368284612856565b60006105ed8260601b90565b60006105ed82612890565b611c566128b382611cf3565b61289c565b80611c56565b60006128ca82856128a7565b6014820191506128da82846128b8565b5060200192915050565b608081016128f28287611d11565b6128ff6020830186611d11565b61290c6040830185611c54565b818103606083015261291e8184611d54565b9695505050505050565b80516105ed81611c6a565b60006020828403121561294857612948600080fd5b60006112368484612928565b60008261296357612963612479565b500690565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60208082527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373910190815260006125a7565b602080825281016105ed81612997565b601c81526000602082017f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000815291506125a7565b602080825281016105ed816129d956fea26469706673582212209c5e5e11b9db59d49b97a402321145da77b6fbe00e2839d711dd836c03a0e69864736f6c6343000809003300000000000000000000000000000000000000000000000000000000000003e800000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000140000000000000000000000000000000000000000000000000000000000000018000000000000000000000000000000000000000000000000000000000000002ee0000000000000000000000003eb207f36edf94f7f68e0c515a829fa6276fc383f075f51ae780a43bf405d140ad5d83632a4bd1b163c8c0d4532ca6fa4d67556400000000000000000000000016ec4d8d8a503f427a40fe5f527df024e06d18e700000000000000000000000000000000000000000000000000000000000000054f6d65676100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000033145440000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000007568747470733a2f2f776861763735617a377762746f72347a6e6f6334766e696c336536757368377132626a78627932346a626436646278746c3536712e617277656176652e6e65742f7363466639426e39677a64486d5775467972554c3254314a485f44515533446a584568483459627a5833302f0000000000000000000000

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106102405760003560e01c80636c0360eb11610145578063b88d4fde116100bd578063d547cfb71161008c578063e985e9c511610071578063e985e9c5146104ce578063f2fde38b14610517578063f36c17c61461052a57600080fd5b8063d547cfb71461049f578063d5abeb01146104a757600080fd5b8063b88d4fde1461045d578063c63adb2b14610470578063c87b56dd14610479578063d4a6da091461048c57600080fd5b80638da5cb5b1161011457806395d89b41116100f957806395d89b41146104225780639fbc87131461042a578063a22cb4651461044a57600080fd5b80638da5cb5b146103f15780638dc251e31461040f57600080fd5b80636c0360eb146103bb57806370a08231146103c3578063715018a6146103d65780637cb64759146103de57600080fd5b80631f72d831116101d85780632ff9b90e116101a757806355f804b31161018c57806355f804b31461038d5780636352211e146103a057806369c5dfd8146103b357600080fd5b80632ff9b90e1461036757806342842e0e1461037a57600080fd5b80631f72d8311461031757806323b872dd1461032a5780632a55205a1461033d5780632eb4a7ab1461035e57600080fd5b806306fdde031161021457806306fdde03146102c7578063081812fc146102dc578063095ea7b3146102ef5780631b0f8ec21461030457600080fd5b80629a9b7b1461024557806301ffc9a71461026457806302fe2d021461028457806304274f661461029a575b600080fd5b61024e600c5481565b60405161025b9190611c5c565b60405180910390f35b610277610272366004611ca4565b61054a565b60405161025b9190611ccd565b61028d6103e881565b60405161025b9190611ce5565b600d546102ba9073ffffffffffffffffffffffffffffffffffffffff1681565b60405161025b9190611d1a565b6102cf6105f3565b60405161025b9190611da6565b6102ba6102ea366004611dc8565b610685565b6103026102fd366004611dfd565b6106b9565b005b610302610312366004611e3a565b61079a565b610302610325366004611dc8565b61086a565b610302610338366004611e5b565b6108e3565b61035061034b366004611eab565b610914565b60405161025b929190611ecd565b61024e600a5481565b610302610375366004611dc8565b610957565b610302610388366004611e5b565b610ab0565b61030261039b366004611f3a565b610acb565b6102ba6103ae366004611dc8565b610b1d565b61024e600481565b6102cf610b5f565b61024e6103d1366004611e3a565b610b6e565b610302610bcc565b6103026103ec366004611dc8565b610be0565b60005473ffffffffffffffffffffffffffffffffffffffff166102ba565b61030261041d366004611e3a565b610c1d565b6102cf610ce2565b6009546102ba9073ffffffffffffffffffffffffffffffffffffffff1681565b610302610458366004611f95565b610cf1565b61030261046b366004612110565b610d00565b61024e60085481565b6102cf610487366004611dc8565b610d38565b61030261049a3660046121da565b610d43565b6102cf610eae565b61024e7f00000000000000000000000000000000000000000000000000000000000003e881565b6102776104dc36600461223d565b73ffffffffffffffffffffffffffffffffffffffff918216600090815260066020908152604080832093909416825291909152205460ff1690565b610302610525366004611e3a565b610f3c565b61024e610538366004611e3a565b600b6020526000908152604090205481565b600061055582610f83565b806105a157507fffffffff0000000000000000000000000000000000000000000000000000000082167f80ac58cd00000000000000000000000000000000000000000000000000000000145b806105ed57507fffffffff0000000000000000000000000000000000000000000000000000000082167f2a55205a00000000000000000000000000000000000000000000000000000000145b92915050565b6060600180546106029061229f565b80601f016020809104026020016040519081016040528092919081815260200182805461062e9061229f565b801561067b5780601f106106505761010080835404028352916020019161067b565b820191906000526020600020905b81548152906001019060200180831161065e57829003601f168201915b5050505050905090565b600061069082611066565b5060009081526005602052604090205473ffffffffffffffffffffffffffffffffffffffff1690565b60006106c482610b1d565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16141561071b5760405162461bcd60e51b815260040161071290612329565b60405180910390fd5b3373ffffffffffffffffffffffffffffffffffffffff8216148061076f575073ffffffffffffffffffffffffffffffffffffffff8116600090815260066020908152604080832033845290915290205460ff165b61078b5760405162461bcd60e51b815260040161071290612393565b61079583836110a7565b505050565b6107a2611147565b73ffffffffffffffffffffffffffffffffffffffff81166107ef576040517f2e63ade600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600d80547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff83161790556040517fc0ebbe297b28d334c50af82f154c062e01f0c2659b3449fef0ce2e2c771abdb59061085f908390611d1a565b60405180910390a150565b610872611147565b6103e88111156108ae576040517f365ca2c900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60088190556040517f5601402930a1d1b5a0dff22c7cde3e019cee47a388253d2fb0361d8975f052f89061085f908390611c5c565b6108ed338261117e565b6109095760405162461bcd60e51b8152600401610712906123fd565b61079583838361123e565b60095460085473ffffffffffffffffffffffffffffffffffffffff9091169060009061271090610944908561243c565b61094e91906124a8565b90509250929050565b600d5473ffffffffffffffffffffffffffffffffffffffff1633146109a8576040517f3d2434b500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60018110156109e3576040517fba4c98a700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600c547f00000000000000000000000000000000000000000000000000000000000003e8610a126001846124bc565b610a1c90836124d3565b1115610a54576040517fd05cb60900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60005b82811015610a8257610a6933836113c6565b6001820191508080610a7a906124eb565b915050610a57565b50600c819055336000908152600b602052604081208054849290610aa79084906124d3565b90915550505050565b61079583838360405180602001604052806000815250610d00565b610ad3611147565b610adf60078383611b9d565b507f6741b2fc379fad678116fe3d4d4b9a1a184ab53ba36b86ad0fa66340b1ab41ad8282604051610b11929190612565565b60405180910390a15050565b60008181526003602052604081205473ffffffffffffffffffffffffffffffffffffffff16806105ed5760405162461bcd60e51b8152600401610712906125ae565b6060610b696113e0565b905090565b600073ffffffffffffffffffffffffffffffffffffffff8216610ba35760405162461bcd60e51b815260040161071290612618565b5073ffffffffffffffffffffffffffffffffffffffff1660009081526004602052604090205490565b610bd4611147565b610bde60006113ef565b565b610be8611147565b600a8190556040517f90004c04698bc3322499a575ed3752dd4abf33e0a7294c06a787a0fe01bea9419061085f908390611c5c565b610c25611147565b73ffffffffffffffffffffffffffffffffffffffff8116610c72576040517f2e63ade600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600980547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff83161790556040517fc3696c23bd17454d95c44cb489c7a0db717d6d809e238813932720cc785ad5359061085f908390611d1a565b6060600280546106029061229f565b610cfc338383611464565b5050565b610d0a338361117e565b610d265760405162461bcd60e51b8152600401610712906123fd565b610d328484848461154c565b50505050565b60606105ed8261157f565b6001821080610d525750600482115b15610d89576040517fba4c98a700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6001811080610d985750600481115b15610dcf576040517f6e5e07e500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b7f00000000000000000000000000000000000000000000000000000000000003e8610dfb6001836124bc565b600c54610e0891906124d3565b1115610e40576040517fd05cb60900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610e4c848484846115e6565b600c5460005b82811015610e7d57610e6433836113c6565b6001820191508080610e75906124eb565b915050610e52565b50600c819055336000908152600b602052604081208054849290610ea29084906124d3565b90915550505050505050565b60078054610ebb9061229f565b80601f0160208091040260200160405190810160405280929190818152602001828054610ee79061229f565b8015610f345780601f10610f0957610100808354040283529160200191610f34565b820191906000526020600020905b815481529060010190602001808311610f1757829003601f168201915b505050505081565b610f44611147565b73ffffffffffffffffffffffffffffffffffffffff8116610f775760405162461bcd60e51b815260040161071290612682565b610f80816113ef565b50565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f80ac58cd00000000000000000000000000000000000000000000000000000000148061101657507fffffffff0000000000000000000000000000000000000000000000000000000082167f5b5e139f00000000000000000000000000000000000000000000000000000000145b806105ed57507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff000000000000000000000000000000000000000000000000000000008316146105ed565b60008181526003602052604090205473ffffffffffffffffffffffffffffffffffffffff16610f805760405162461bcd60e51b8152600401610712906125ae565b600081815260056020526040902080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff8416908117909155819061110182610b1d565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60005473ffffffffffffffffffffffffffffffffffffffff163314610bde5760405162461bcd60e51b8152600401610712906126c4565b60008061118a83610b1d565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1614806111f8575073ffffffffffffffffffffffffffffffffffffffff80821660009081526006602090815260408083209388168352929052205460ff165b8061123657508373ffffffffffffffffffffffffffffffffffffffff1661121e84610685565b73ffffffffffffffffffffffffffffffffffffffff16145b949350505050565b8273ffffffffffffffffffffffffffffffffffffffff1661125e82610b1d565b73ffffffffffffffffffffffffffffffffffffffff16146112915760405162461bcd60e51b81526004016107129061272e565b73ffffffffffffffffffffffffffffffffffffffff82166112c45760405162461bcd60e51b815260040161071290612798565b6112cf6000826110a7565b73ffffffffffffffffffffffffffffffffffffffff831660009081526004602052604081208054600192906113059084906124bc565b909155505073ffffffffffffffffffffffffffffffffffffffff821660009081526004602052604081208054600192906113409084906124d3565b909155505060008181526003602052604080822080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff86811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b610cfc8282604051806020016040528060008152506116ec565b6060600780546106029061229f565b6000805473ffffffffffffffffffffffffffffffffffffffff8381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614156114b05760405162461bcd60e51b8152600401610712906127dc565b73ffffffffffffffffffffffffffffffffffffffff8381166000818152600660209081526040808320948716808452949091529081902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016851515179055517f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c319061153f908590611ccd565b60405180910390a3505050565b61155784848461123e565b6115638484848461171f565b610d325760405162461bcd60e51b815260040161071290612846565b606061158a82611066565b60006115946113e0565b905060008151116115b457604051806020016040528060008152506115df565b806115be846118ae565b6040516020016115cf929190612878565b6040516020818303038152906040525b9392505050565b600033836040516020016115fb9291906128be565b604051602081830303815290604052805190602001209050600061165686868080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525050600a5491508590506119e0565b90508061168f576040517f5b0aa2ba00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b336000908152600b602052604090205484906116ac9085906124d3565b11156116e4576040517f646cf55800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b505050505050565b6116f683836119f6565b611703600084848461171f565b6107955760405162461bcd60e51b815260040161071290612846565b600073ffffffffffffffffffffffffffffffffffffffff84163b156118a3576040517f150b7a0200000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff85169063150b7a02906117969033908990889088906004016128e4565b602060405180830381600087803b1580156117b057600080fd5b505af19250505080156117fe575060408051601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe01682019092526117fb91810190612933565b60015b611858573d80801561182c576040519150601f19603f3d011682016040523d82523d6000602084013e611831565b606091505b5080516118505760405162461bcd60e51b815260040161071290612846565b805181602001fd5b7fffffffff00000000000000000000000000000000000000000000000000000000167f150b7a0200000000000000000000000000000000000000000000000000000000149050611236565b506001949350505050565b6060816118ee57505060408051808201909152600181527f3000000000000000000000000000000000000000000000000000000000000000602082015290565b8160005b81156119185780611902816124eb565b91506119119050600a836124a8565b91506118f2565b60008167ffffffffffffffff81111561193357611933611fc8565b6040519080825280601f01601f19166020018201604052801561195d576020820181803683370190505b5090505b8415611236576119726001836124bc565b915061197f600a86612954565b61198a9060306124d3565b60f81b81838151811061199f5761199f612968565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053506119d9600a866124a8565b9450611961565b6000826119ed8584611b24565b14949350505050565b73ffffffffffffffffffffffffffffffffffffffff8216611a295760405162461bcd60e51b8152600401610712906129c9565b60008181526003602052604090205473ffffffffffffffffffffffffffffffffffffffff1615611a6b5760405162461bcd60e51b815260040161071290612a0d565b73ffffffffffffffffffffffffffffffffffffffff82166000908152600460205260408120805460019290611aa19084906124d3565b909155505060008181526003602052604080822080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b600081815b8451811015611b6957611b5582868381518110611b4857611b48612968565b6020026020010151611b71565b915080611b61816124eb565b915050611b29565b509392505050565b6000818310611b8d5760008281526020849052604090206115df565b5060009182526020526040902090565b828054611ba99061229f565b90600052602060002090601f016020900481019282611bcb5760008555611c2f565b82601f10611c02578280017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00823516178555611c2f565b82800160010185558215611c2f579182015b82811115611c2f578235825591602001919060010190611c14565b50611c3b929150611c3f565b5090565b5b80821115611c3b5760008155600101611c40565b805b82525050565b602081016105ed8284611c54565b7fffffffff0000000000000000000000000000000000000000000000000000000081165b8114610f8057600080fd5b80356105ed81611c6a565b600060208284031215611cb957611cb9600080fd5b60006112368484611c99565b801515611c56565b602081016105ed8284611cc5565b61ffff8116611c56565b602081016105ed8284611cdb565b600073ffffffffffffffffffffffffffffffffffffffff82166105ed565b611c5681611cf3565b602081016105ed8284611d11565b60005b83811015611d43578181015183820152602001611d2b565b83811115610d325750506000910152565b6000611d5e825190565b808452602084019350611d75818560208601611d28565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f8201165b9093019392505050565b602080825281016115df8184611d54565b80611c8e565b80356105ed81611db7565b600060208284031215611ddd57611ddd600080fd5b60006112368484611dbd565b611c8e81611cf3565b80356105ed81611de9565b60008060408385031215611e1357611e13600080fd5b6000611e1f8585611df2565b9250506020611e3085828601611dbd565b9150509250929050565b600060208284031215611e4f57611e4f600080fd5b60006112368484611df2565b600080600060608486031215611e7357611e73600080fd5b6000611e7f8686611df2565b9350506020611e9086828701611df2565b9250506040611ea186828701611dbd565b9150509250925092565b60008060408385031215611ec157611ec1600080fd5b6000611e1f8585611dbd565b60408101611edb8285611d11565b6115df6020830184611c54565b60008083601f840112611efd57611efd600080fd5b50813567ffffffffffffffff811115611f1857611f18600080fd5b602083019150836001820283011115611f3357611f33600080fd5b9250929050565b60008060208385031215611f5057611f50600080fd5b823567ffffffffffffffff811115611f6a57611f6a600080fd5b611f7685828601611ee8565b92509250509250929050565b801515611c8e565b80356105ed81611f82565b60008060408385031215611fab57611fab600080fd5b6000611fb78585611df2565b9250506020611e3085828601611f8a565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f830116810181811067ffffffffffffffff8211171561203b5761203b611fc8565b6040525050565b600061204d60405190565b90506120598282611ff7565b919050565b600067ffffffffffffffff82111561207857612078611fc8565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f83011660200192915050565b82818337506000910152565b60006120c66120c18461205e565b612042565b9050828152602081018484840111156120e1576120e1600080fd5b611b698482856120a7565b600082601f83011261210057612100600080fd5b81356112368482602086016120b3565b6000806000806080858703121561212957612129600080fd5b60006121358787611df2565b945050602061214687828801611df2565b935050604061215787828801611dbd565b925050606085013567ffffffffffffffff81111561217757612177600080fd5b612183878288016120ec565b91505092959194509250565b60008083601f8401126121a4576121a4600080fd5b50813567ffffffffffffffff8111156121bf576121bf600080fd5b602083019150836020820283011115611f3357611f33600080fd5b600080600080606085870312156121f3576121f3600080fd5b843567ffffffffffffffff81111561220d5761220d600080fd5b6122198782880161218f565b9450945050602061222c87828801611dbd565b925050604061218387828801611dbd565b6000806040838503121561225357612253600080fd5b600061225f8585611df2565b9250506020611e3085828601611df2565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6002810460018216806122b357607f821691505b602082108114156122c6576122c6612270565b50919050565b602181526000602082017f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6581527f7200000000000000000000000000000000000000000000000000000000000000602082015291505b5060400190565b602080825281016105ed816122cc565b603e81526000602082017f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f81527f6b656e206f776e6572206e6f7220617070726f76656420666f7220616c6c000060208201529150612322565b602080825281016105ed81612339565b602e81526000602082017f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6581527f72206e6f7220617070726f76656400000000000000000000000000000000000060208201529150612322565b602080825281016105ed816123a3565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04831182151516156124745761247461240d565b500290565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b6000826124b7576124b7612479565b500490565b6000828210156124ce576124ce61240d565b500390565b600082198211156124e6576124e661240d565b500190565b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82141561251d5761251d61240d565b5060010190565b818352600060208401935061253a8385846120a7565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f840116611d9c565b60208082528101611236818486612524565b601881526000602082017f4552433732313a20696e76616c696420746f6b656e2049440000000000000000815291505b5060200190565b602080825281016105ed81612577565b602981526000602082017f4552433732313a2061646472657373207a65726f206973206e6f74206120766181527f6c6964206f776e6572000000000000000000000000000000000000000000000060208201529150612322565b602080825281016105ed816125be565b602681526000602082017f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206181527f646472657373000000000000000000000000000000000000000000000000000060208201529150612322565b602080825281016105ed81612628565b60208082527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572910190815260006125a7565b602080825281016105ed81612692565b602581526000602082017f4552433732313a207472616e736665722066726f6d20696e636f72726563742081527f6f776e657200000000000000000000000000000000000000000000000000000060208201529150612322565b602080825281016105ed816126d4565b602481526000602082017f4552433732313a207472616e7366657220746f20746865207a65726f2061646481527f726573730000000000000000000000000000000000000000000000000000000060208201529150612322565b602080825281016105ed8161273e565b601981526000602082017f4552433732313a20617070726f766520746f2063616c6c657200000000000000815291506125a7565b602080825281016105ed816127a8565b603281526000602082017f4552433732313a207472616e7366657220746f206e6f6e20455243373231526581527f63656976657220696d706c656d656e746572000000000000000000000000000060208201529150612322565b602080825281016105ed816127ec565b6000612860825190565b61286e818560208601611d28565b9290920192915050565b60006128848285612856565b91506112368284612856565b60006105ed8260601b90565b60006105ed82612890565b611c566128b382611cf3565b61289c565b80611c56565b60006128ca82856128a7565b6014820191506128da82846128b8565b5060200192915050565b608081016128f28287611d11565b6128ff6020830186611d11565b61290c6040830185611c54565b818103606083015261291e8184611d54565b9695505050505050565b80516105ed81611c6a565b60006020828403121561294857612948600080fd5b60006112368484612928565b60008261296357612963612479565b500690565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60208082527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373910190815260006125a7565b602080825281016105ed81612997565b601c81526000602082017f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000815291506125a7565b602080825281016105ed816129d956fea26469706673582212209c5e5e11b9db59d49b97a402321145da77b6fbe00e2839d711dd836c03a0e69864736f6c63430008090033

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

00000000000000000000000000000000000000000000000000000000000003e800000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000140000000000000000000000000000000000000000000000000000000000000018000000000000000000000000000000000000000000000000000000000000002ee0000000000000000000000003eb207f36edf94f7f68e0c515a829fa6276fc383f075f51ae780a43bf405d140ad5d83632a4bd1b163c8c0d4532ca6fa4d67556400000000000000000000000016ec4d8d8a503f427a40fe5f527df024e06d18e700000000000000000000000000000000000000000000000000000000000000054f6d65676100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000033145440000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000007568747470733a2f2f776861763735617a377762746f72347a6e6f6334766e696c336536757368377132626a78627932346a626436646278746c3536712e617277656176652e6e65742f7363466639426e39677a64486d5775467972554c3254314a485f44515533446a584568483459627a5833302f0000000000000000000000

-----Decoded View---------------
Arg [0] : setMaxSupply (uint256): 1000
Arg [1] : initialName (string): Omega
Arg [2] : initialSymbol (string): 1ED
Arg [3] : initialBaseTokenURI (string): https://whav75az7wbtor4znoc4vnil3e6ush7q2bjxby24jbd6dbxtl56q.arweave.net/scFf9Bn9gzdHmWuFyrUL2T1JH_DQU3DjXEhH4YbzX30/
Arg [4] : initialRoyaltyBps (uint256): 750
Arg [5] : initialRoyaltyReceiverAddress (address): 0x3eB207f36EDF94f7F68e0C515a829FA6276Fc383
Arg [6] : initialMerkleRoot (bytes32): 0xf075f51ae780a43bf405d140ad5d83632a4bd1b163c8c0d4532ca6fa4d675564
Arg [7] : initialWhitelistedClaimer (address): 0x16EC4d8D8a503f427a40fE5F527df024E06D18e7

-----Encoded View---------------
17 Constructor Arguments found :
Arg [0] : 00000000000000000000000000000000000000000000000000000000000003e8
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000100
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000140
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000180
Arg [4] : 00000000000000000000000000000000000000000000000000000000000002ee
Arg [5] : 0000000000000000000000003eb207f36edf94f7f68e0c515a829fa6276fc383
Arg [6] : f075f51ae780a43bf405d140ad5d83632a4bd1b163c8c0d4532ca6fa4d675564
Arg [7] : 00000000000000000000000016ec4d8d8a503f427a40fe5f527df024e06d18e7
Arg [8] : 0000000000000000000000000000000000000000000000000000000000000005
Arg [9] : 4f6d656761000000000000000000000000000000000000000000000000000000
Arg [10] : 0000000000000000000000000000000000000000000000000000000000000003
Arg [11] : 3145440000000000000000000000000000000000000000000000000000000000
Arg [12] : 0000000000000000000000000000000000000000000000000000000000000075
Arg [13] : 68747470733a2f2f776861763735617a377762746f72347a6e6f6334766e696c
Arg [14] : 336536757368377132626a78627932346a626436646278746c3536712e617277
Arg [15] : 656176652e6e65742f7363466639426e39677a64486d5775467972554c325431
Arg [16] : 4a485f44515533446a584568483459627a5833302f0000000000000000000000


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.