ETH Price: $3,223.59 (-3.93%)

Token

Club Pooly (CLUBPOOLY)
 

Overview

Max Total Supply

6,189 CLUBPOOLY

Holders

6,152

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Balance
1 CLUBPOOLY
0xb6BE3E29330d67DC8a76A81c32192Da38eE133D5
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:
PoolyClub

Compiler Version
v0.8.13+commit.abaa5c0e

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 15 : PoolyClub.sol
// SPDX-License-Identifier: GPL-3.0
pragma solidity 0.8.13;

import { Base64 } from "base64-sol/base64.sol";
import { Strings } from "@openzeppelin/contracts/utils/Strings.sol";
import { ERC721 } from "@openzeppelin/contracts/token/ERC721/extensions/ERC721Royalty.sol";
import { Ownable } from "@pooltogether/owner-manager-contracts/contracts/Ownable.sol";

/**
 * @title PoolTogether Inc. Pooly Pooly NFT
 * @notice A airdropped NFT to Pooly holders; a thank you for supporting.
 */
contract PoolyClub is ERC721, Ownable {
  using Strings for uint256;
  /// @notice Total supply of NFTs
  uint256 public totalSupply;

  /// @notice Track tokenId tiers
  mapping(uint256 => uint8) private tiers;

  string[3] private tierImageIpfsUris;
  string[3] private tierAnimationIpfsUris;

  /**
   * @notice Initializes the NFT contract
   * @param _name NFT collection name
   * @param _symbol NFT collection symbol
   * @param _owner Owner of this contract
   * @param _revealImageIpfsUri Owner of this contract
   */
  constructor(
    string memory _name,
    string memory _symbol,
    address _owner,
    string memory _revealImageIpfsUri,
    string memory _revealAnimationIpfsUri
  ) ERC721(_name, _symbol) Ownable(_owner) {
    require(_owner != address(0), "PoolyPool/owner-not-zero-address");
    tierImageIpfsUris[0] = _revealImageIpfsUri;
    tierImageIpfsUris[1] = _revealImageIpfsUri;
    tierImageIpfsUris[2] = _revealImageIpfsUri;
    tierAnimationIpfsUris[0] = _revealAnimationIpfsUri;
    tierAnimationIpfsUris[1] = _revealAnimationIpfsUri;
    tierAnimationIpfsUris[2] = _revealAnimationIpfsUri;
  }

  /* ================================================================================ */
  /* External Functions                                                               */
  /* ================================================================================ */

  function getTokenIdTier(uint256 tokenId) public view returns (uint8) {
    return tiers[tokenId];
  }

  function mint(address user) external payable onlyOwner {
    _mint(user);
  }

  function batchMint(address[] calldata users) external onlyOwner {
    for (uint32 i; i < users.length; i++) {
      _mint(users[i]);
    }
  }

  function setTokenIdTier(uint256 tokenId, uint8 tier) external onlyOwner {
    _setTokenIdTier(tokenId, tier);
  }

  function batchSetTokenIdsTier(uint256[] calldata tokenIds, uint8 tier) external onlyOwner {
    for (uint256 index = 0; index < tokenIds.length; index++) {
      _setTokenIdTier(tokenIds[index], tier);
    }
  }

  function setTierImageIpfsUri(uint8 _tier, string calldata _ipfsUri) external onlyOwner {
    _setTierImageIpfsUri(_tier, _ipfsUri);
  }

  function setTierAnimationIpfsUri(uint8 _tier, string calldata _ipfsUri) external onlyOwner {
    _setTierAnimationIpfsUri(_tier, _ipfsUri);
  }

  function tokenURI(uint256 tokenId) public view override returns (string memory) {
    return _constructTokenURI(tokenId);
  }

  /* ================================================================================ */
  /* Internal Functions                                                               */
  /* ================================================================================ */

  function _getTokenIdTier(uint256 _tokenId) internal view returns (uint8) {
    return tiers[_tokenId];
  }

  function _getTierRarityValue(uint8 _tier) internal view returns (string memory) {
    if (_tier == 2) return "Ultra Rare";
    if (_tier == 1) return "Rare";
    return "Common";
  }

  function _getTierUpdateStatus(uint8 _tier) internal view returns (string memory) {
    if (_tier == 1 || _tier == 2) return "Yes";
    return "No";
  }

  function _getTierDescription(uint8 _tier) internal view returns (string memory) {
    return
      "Pooly's is a special hangout for the OG Pooly supporters. Animation by @chuckbergeron. 3d Pooly by @d_v_dsm. Original Pooly concept by @irrelephantoops.";
  }

  function _getTierVariantTitles(uint8 _tier) internal view returns (string memory) {
    if (_tier == 2) return "Keep Pooly Flying";
    if (_tier == 1) return "Swimsuits Not Lawsuits";
    return "No Loss";
  }

  function _getTierNames(uint8 _tier) internal view returns (string memory) {
    if (_tier == 2) return "Stars";
    if (_tier == 1) return "Nighttime";
    return "Daytime";
  }

  function _getTierImageVariantURI(uint8 _tier) internal view returns (string memory) {
    if (_tier == 2) return tierImageIpfsUris[2];
    if (_tier == 1) return tierImageIpfsUris[1];
    return tierImageIpfsUris[0];
  }

  function _getTierAnimationVariantURI(uint8 _tier) internal view returns (string memory) {
    if (_tier == 2) return tierAnimationIpfsUris[2];
    if (_tier == 1) return tierAnimationIpfsUris[1];
    return tierAnimationIpfsUris[0];
  }

  function _setTokenIdTier(uint256 _tokenId, uint8 _tier) internal {
    require(_tier == 1 || _tier == 2, "PoolyAppreciationNFT:invalid-tier");
    tiers[_tokenId] = _tier;
  }

  function _setTierImageIpfsUri(uint8 _tier, string calldata _ipfsUri) internal {
    require(_tier == 0 || _tier == 1 || _tier == 2, "PoolyAppreciationNFT:invalid-tier");
    tierImageIpfsUris[_tier] = _ipfsUri;
  }

  function _setTierAnimationIpfsUri(uint8 _tier, string calldata _ipfsUri) internal {
    require(_tier == 0 || _tier == 1 || _tier == 2, "PoolyAppreciationNFT:invalid-tier");
    tierAnimationIpfsUris[_tier] = _ipfsUri;
  }

  function _mint(address _user) internal {
    require(balanceOf(_user) == 0, "PoolyClub:existing-owner");
    // tokenId starts at 1
    _safeMint(_user, ++totalSupply);
  }

  function _constructTokenURI(uint256 _tokenId) internal view returns (string memory) {
    uint8 tier_ = _getTokenIdTier(_tokenId);
    string memory title = _getTierVariantTitles(tier_);
    string memory tierName = _getTierNames(tier_);
    string memory description = _getTierDescription(tier_);
    string memory rarity = _getTierRarityValue(tier_);
    string memory upgraded = _getTierUpdateStatus(tier_);
    string memory image = _getTierImageVariantURI(tier_);
    string memory animation = _getTierAnimationVariantURI(tier_);

    string memory name = string.concat("Club Pooly's (", tierName,") #", _tokenId.toString());

    return
      string(
        abi.encodePacked(
          "data:application/json;base64,",
          Base64.encode(
            bytes(
              string.concat(
                '{"name":', '"',  name, '",',
                '"description":', '"', description, '",',
                '"attributes": [',
                '{"trait_type": "Rarity",',
                '"value": "',
                rarity,
                '"},',
                '{"trait_type": "Title",',
                '"value": "',
                title,
                '"}',
                "],",
                '"image": "',
                image,
                '",',
                '"animation_url": "',
                animation,
                '"}'
              )
            )
          )
        )
      );
  }
}

File 2 of 15 : base64.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0;

/// @title Base64
/// @author Brecht Devos - <[email protected]>
/// @notice Provides functions for encoding/decoding base64
library Base64 {
    string internal constant TABLE_ENCODE = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/';
    bytes  internal constant TABLE_DECODE = hex"0000000000000000000000000000000000000000000000000000000000000000"
                                            hex"00000000000000000000003e0000003f3435363738393a3b3c3d000000000000"
                                            hex"00000102030405060708090a0b0c0d0e0f101112131415161718190000000000"
                                            hex"001a1b1c1d1e1f202122232425262728292a2b2c2d2e2f303132330000000000";

    function encode(bytes memory data) internal pure returns (string memory) {
        if (data.length == 0) return '';

        // load the table into memory
        string memory table = TABLE_ENCODE;

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

        // add some extra buffer at the end required for the writing
        string memory result = new string(encodedLen + 32);

        assembly {
            // set the actual output length
            mstore(result, encodedLen)

            // prepare the lookup table
            let tablePtr := add(table, 1)

            // input ptr
            let dataPtr := data
            let endPtr := add(dataPtr, mload(data))

            // result ptr, jump over length
            let resultPtr := add(result, 32)

            // run over the input, 3 bytes at a time
            for {} lt(dataPtr, endPtr) {}
            {
                // read 3 bytes
                dataPtr := add(dataPtr, 3)
                let input := mload(dataPtr)

                // write 4 characters
                mstore8(resultPtr, mload(add(tablePtr, and(shr(18, input), 0x3F))))
                resultPtr := add(resultPtr, 1)
                mstore8(resultPtr, mload(add(tablePtr, and(shr(12, input), 0x3F))))
                resultPtr := add(resultPtr, 1)
                mstore8(resultPtr, mload(add(tablePtr, and(shr( 6, input), 0x3F))))
                resultPtr := add(resultPtr, 1)
                mstore8(resultPtr, mload(add(tablePtr, and(        input,  0x3F))))
                resultPtr := add(resultPtr, 1)
            }

            // padding with '='
            switch mod(mload(data), 3)
            case 1 { mstore(sub(resultPtr, 2), shl(240, 0x3d3d)) }
            case 2 { mstore(sub(resultPtr, 1), shl(248, 0x3d)) }
        }

        return result;
    }

    function decode(string memory _data) internal pure returns (bytes memory) {
        bytes memory data = bytes(_data);

        if (data.length == 0) return new bytes(0);
        require(data.length % 4 == 0, "invalid base64 decoder input");

        // load the table into memory
        bytes memory table = TABLE_DECODE;

        // every 4 characters represent 3 bytes
        uint256 decodedLen = (data.length / 4) * 3;

        // add some extra buffer at the end required for the writing
        bytes memory result = new bytes(decodedLen + 32);

        assembly {
            // padding with '='
            let lastBytes := mload(add(data, mload(data)))
            if eq(and(lastBytes, 0xFF), 0x3d) {
                decodedLen := sub(decodedLen, 1)
                if eq(and(lastBytes, 0xFFFF), 0x3d3d) {
                    decodedLen := sub(decodedLen, 1)
                }
            }

            // set the actual output length
            mstore(result, decodedLen)

            // prepare the lookup table
            let tablePtr := add(table, 1)

            // input ptr
            let dataPtr := data
            let endPtr := add(dataPtr, mload(data))

            // result ptr, jump over length
            let resultPtr := add(result, 32)

            // run over the input, 4 characters at a time
            for {} lt(dataPtr, endPtr) {}
            {
               // read 4 characters
               dataPtr := add(dataPtr, 4)
               let input := mload(dataPtr)

               // write 3 bytes
               let output := add(
                   add(
                       shl(18, and(mload(add(tablePtr, and(shr(24, input), 0xFF))), 0xFF)),
                       shl(12, and(mload(add(tablePtr, and(shr(16, input), 0xFF))), 0xFF))),
                   add(
                       shl( 6, and(mload(add(tablePtr, and(shr( 8, input), 0xFF))), 0xFF)),
                               and(mload(add(tablePtr, and(        input , 0xFF))), 0xFF)
                    )
                )
                mstore(resultPtr, shl(232, output))
                resultPtr := add(resultPtr, 3)
            }
        }

        return result;
    }
}

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

pragma solidity ^0.8.0;

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

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

File 4 of 15 : ERC721Royalty.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC721/extensions/ERC721Royalty.sol)

pragma solidity ^0.8.0;

import "../ERC721.sol";
import "../../common/ERC2981.sol";
import "../../../utils/introspection/ERC165.sol";

/**
 * @dev Extension of ERC721 with the ERC2981 NFT Royalty Standard, a standardized way to retrieve royalty payment
 * information.
 *
 * Royalty information can be specified globally for all token ids via {_setDefaultRoyalty}, and/or individually for
 * specific token ids via {_setTokenRoyalty}. The latter takes precedence over the first.
 *
 * IMPORTANT: ERC-2981 only specifies a way to signal royalty information and does not enforce its payment. See
 * https://eips.ethereum.org/EIPS/eip-2981#optional-royalty-payments[Rationale] in the EIP. Marketplaces are expected to
 * voluntarily pay royalties together with sales, but note that this standard is not yet widely supported.
 *
 * _Available since v4.5._
 */
abstract contract ERC721Royalty is ERC2981, ERC721 {
    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override(ERC721, ERC2981) returns (bool) {
        return super.supportsInterface(interfaceId);
    }

    /**
     * @dev See {ERC721-_burn}. This override additionally clears the royalty information for the token.
     */
    function _burn(uint256 tokenId) internal virtual override {
        super._burn(tokenId);
        _resetTokenRoyalty(tokenId);
    }
}

File 5 of 15 : Ownable.sol
// SPDX-License-Identifier: GPL-3.0

pragma solidity ^0.8.0;

/**
 * @title Abstract ownable contract that can be inherited by other contracts
 * @notice 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 is the deployer of the contract.
 *
 * The owner account is set through a two steps process.
 *      1. The current `owner` calls {transferOwnership} to set a `pendingOwner`
 *      2. The `pendingOwner` calls {acceptOwnership} to accept the ownership transfer
 *
 * The manager account needs to be set using {setManager}.
 *
 * 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 {
    address private _owner;
    address private _pendingOwner;

    /**
     * @dev Emitted when `_pendingOwner` has been changed.
     * @param pendingOwner new `_pendingOwner` address.
     */
    event OwnershipOffered(address indexed pendingOwner);

    /**
     * @dev Emitted when `_owner` has been changed.
     * @param previousOwner previous `_owner` address.
     * @param newOwner new `_owner` address.
     */
    event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);

    /* ============ Deploy ============ */

    /**
     * @notice Initializes the contract setting `_initialOwner` as the initial owner.
     * @param _initialOwner Initial owner of the contract.
     */
    constructor(address _initialOwner) {
        _setOwner(_initialOwner);
    }

    /* ============ External Functions ============ */

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

    /**
     * @notice Gets current `_pendingOwner`.
     * @return Current `_pendingOwner` address.
     */
    function pendingOwner() external view virtual returns (address) {
        return _pendingOwner;
    }

    /**
     * @notice Renounce ownership of the contract.
     * @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() external virtual onlyOwner {
        _setOwner(address(0));
    }

    /**
    * @notice Allows current owner to set the `_pendingOwner` address.
    * @param _newOwner Address to transfer ownership to.
    */
    function transferOwnership(address _newOwner) external onlyOwner {
        require(_newOwner != address(0), "Ownable/pendingOwner-not-zero-address");

        _pendingOwner = _newOwner;

        emit OwnershipOffered(_newOwner);
    }

    /**
    * @notice Allows the `_pendingOwner` address to finalize the transfer.
    * @dev This function is only callable by the `_pendingOwner`.
    */
    function claimOwnership() external onlyPendingOwner {
        _setOwner(_pendingOwner);
        _pendingOwner = address(0);
    }

    /* ============ Internal Functions ============ */

    /**
     * @notice Internal function to set the `_owner` of the contract.
     * @param _newOwner New `_owner` address.
     */
    function _setOwner(address _newOwner) private {
        address _oldOwner = _owner;
        _owner = _newOwner;
        emit OwnershipTransferred(_oldOwner, _newOwner);
    }

    /* ============ Modifier Functions ============ */

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

    /**
    * @dev Throws if called by any account other than the `pendingOwner`.
    */
    modifier onlyPendingOwner() {
        require(msg.sender == _pendingOwner, "Ownable/caller-not-pendingOwner");
        _;
    }
}

File 6 of 15 : ERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.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: balance query for the zero address");
        return _balances[owner];
    }

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

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

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

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

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

    /**
     * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each
     * token will be the concatenation of the `baseURI` and the `tokenId`. Empty
     * by default, can be 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 owner nor approved for all"
        );

        _approve(to, tokenId);
    }

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

        return _tokenApprovals[tokenId];
    }

    /**
     * @dev See {IERC721-setApprovalForAll}.
     */
    function setApprovalForAll(address operator, bool approved) public virtual override {
        _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: transfer caller is not owner nor approved");

        _transfer(from, to, tokenId);
    }

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

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

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

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

    /**
     * @dev Returns whether `spender` is allowed to manage `tokenId`.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) {
        require(_exists(tokenId), "ERC721: operator query for nonexistent token");
        address owner = ERC721.ownerOf(tokenId);
        return (spender == owner || 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 a {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 a {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 Internal function to invoke {IERC721Receiver-onERC721Received} on a target address.
     * The call is not executed if the target address is not a contract.
     *
     * @param from address representing the previous owner of the given token ID
     * @param to target address that will receive the tokens
     * @param tokenId uint256 ID of the token to be transferred
     * @param _data bytes optional data to send along with the call
     * @return bool whether the call correctly returned the expected magic value
     */
    function _checkOnERC721Received(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) private returns (bool) {
        if (to.isContract()) {
            try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) {
                return retval == IERC721Receiver.onERC721Received.selector;
            } catch (bytes memory reason) {
                if (reason.length == 0) {
                    revert("ERC721: transfer to non ERC721Receiver implementer");
                } else {
                    assembly {
                        revert(add(32, reason), mload(reason))
                    }
                }
            }
        } else {
            return true;
        }
    }

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

    /**
     * @dev 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 7 of 15 : ERC2981.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (token/common/ERC2981.sol)

pragma solidity ^0.8.0;

import "../../interfaces/IERC2981.sol";
import "../../utils/introspection/ERC165.sol";

/**
 * @dev Implementation of the NFT Royalty Standard, a standardized way to retrieve royalty payment information.
 *
 * Royalty information can be specified globally for all token ids via {_setDefaultRoyalty}, and/or individually for
 * specific token ids via {_setTokenRoyalty}. The latter takes precedence over the first.
 *
 * Royalty is specified as a fraction of sale price. {_feeDenominator} is overridable but defaults to 10000, meaning the
 * fee is specified in basis points by default.
 *
 * IMPORTANT: ERC-2981 only specifies a way to signal royalty information and does not enforce its payment. See
 * https://eips.ethereum.org/EIPS/eip-2981#optional-royalty-payments[Rationale] in the EIP. Marketplaces are expected to
 * voluntarily pay royalties together with sales, but note that this standard is not yet widely supported.
 *
 * _Available since v4.5._
 */
abstract contract ERC2981 is IERC2981, ERC165 {
    struct RoyaltyInfo {
        address receiver;
        uint96 royaltyFraction;
    }

    RoyaltyInfo private _defaultRoyaltyInfo;
    mapping(uint256 => RoyaltyInfo) private _tokenRoyaltyInfo;

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

    /**
     * @inheritdoc IERC2981
     */
    function royaltyInfo(uint256 _tokenId, uint256 _salePrice) public view virtual override returns (address, uint256) {
        RoyaltyInfo memory royalty = _tokenRoyaltyInfo[_tokenId];

        if (royalty.receiver == address(0)) {
            royalty = _defaultRoyaltyInfo;
        }

        uint256 royaltyAmount = (_salePrice * royalty.royaltyFraction) / _feeDenominator();

        return (royalty.receiver, royaltyAmount);
    }

    /**
     * @dev The denominator with which to interpret the fee set in {_setTokenRoyalty} and {_setDefaultRoyalty} as a
     * fraction of the sale price. Defaults to 10000 so fees are expressed in basis points, but may be customized by an
     * override.
     */
    function _feeDenominator() internal pure virtual returns (uint96) {
        return 10000;
    }

    /**
     * @dev Sets the royalty information that all ids in this contract will default to.
     *
     * Requirements:
     *
     * - `receiver` cannot be the zero address.
     * - `feeNumerator` cannot be greater than the fee denominator.
     */
    function _setDefaultRoyalty(address receiver, uint96 feeNumerator) internal virtual {
        require(feeNumerator <= _feeDenominator(), "ERC2981: royalty fee will exceed salePrice");
        require(receiver != address(0), "ERC2981: invalid receiver");

        _defaultRoyaltyInfo = RoyaltyInfo(receiver, feeNumerator);
    }

    /**
     * @dev Removes default royalty information.
     */
    function _deleteDefaultRoyalty() internal virtual {
        delete _defaultRoyaltyInfo;
    }

    /**
     * @dev Sets the royalty information for a specific token id, overriding the global default.
     *
     * Requirements:
     *
     * - `tokenId` must be already minted.
     * - `receiver` cannot be the zero address.
     * - `feeNumerator` cannot be greater than the fee denominator.
     */
    function _setTokenRoyalty(
        uint256 tokenId,
        address receiver,
        uint96 feeNumerator
    ) internal virtual {
        require(feeNumerator <= _feeDenominator(), "ERC2981: royalty fee will exceed salePrice");
        require(receiver != address(0), "ERC2981: Invalid parameters");

        _tokenRoyaltyInfo[tokenId] = RoyaltyInfo(receiver, feeNumerator);
    }

    /**
     * @dev Resets royalty information for the token id back to the global default.
     */
    function _resetTokenRoyalty(uint256 tokenId) internal virtual {
        delete _tokenRoyaltyInfo[tokenId];
    }
}

File 8 of 15 : 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 9 of 15 : IERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.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 be have been allowed to move this token by either {approve} or {setApprovalForAll}.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId
    ) external;

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

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

    /**
     * @dev 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 10 of 15 : 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 11 of 15 : 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 12 of 15 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.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

                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
}

File 13 of 15 : 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 14 of 15 : 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);
}

File 15 of 15 : 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);
}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"string","name":"_name","type":"string"},{"internalType":"string","name":"_symbol","type":"string"},{"internalType":"address","name":"_owner","type":"address"},{"internalType":"string","name":"_revealImageIpfsUri","type":"string"},{"internalType":"string","name":"_revealAnimationIpfsUri","type":"string"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"pendingOwner","type":"address"}],"name":"OwnershipOffered","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"users","type":"address[]"}],"name":"batchMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"},{"internalType":"uint8","name":"tier","type":"uint8"}],"name":"batchSetTokenIdsTier","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"claimOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getTokenIdTier","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"}],"name":"mint","outputs":[],"stateMutability":"payable","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":"pendingOwner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint8","name":"_tier","type":"uint8"},{"internalType":"string","name":"_ipfsUri","type":"string"}],"name":"setTierAnimationIpfsUri","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint8","name":"_tier","type":"uint8"},{"internalType":"string","name":"_ipfsUri","type":"string"}],"name":"setTierImageIpfsUri","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint8","name":"tier","type":"uint8"}],"name":"setTokenIdTier","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":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60806040523480156200001157600080fd5b5060405162002b2338038062002b23833981016040819052620000349162000329565b82858581600090805190602001906200004f929190620001b6565b50805162000065906001906020840190620001b6565b50505062000079816200016460201b60201c565b506001600160a01b038316620000d55760405162461bcd60e51b815260206004820181905260248201527f506f6f6c79506f6f6c2f6f776e65722d6e6f742d7a65726f2d61646472657373604482015260640160405180910390fd5b8151620000ea90600a906020850190620001b6565b5081516200010090600b906020850190620001b6565b5081516200011690600c906020850190620001b6565b5080516200012c90600d906020840190620001b6565b5080516200014290600e906020840190620001b6565b5080516200015890600f906020840190620001b6565b50505050505062000440565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b828054620001c49062000404565b90600052602060002090601f016020900481019282620001e8576000855562000233565b82601f106200020357805160ff191683800117855562000233565b8280016001018555821562000233579182015b828111156200023357825182559160200191906001019062000216565b506200024192915062000245565b5090565b5b8082111562000241576000815560010162000246565b634e487b7160e01b600052604160045260246000fd5b600082601f8301126200028457600080fd5b81516001600160401b0380821115620002a157620002a16200025c565b604051601f8301601f19908116603f01168101908282118183101715620002cc57620002cc6200025c565b81604052838152602092508683858801011115620002e957600080fd5b600091505b838210156200030d5785820183015181830184015290820190620002ee565b838211156200031f5760008385830101525b9695505050505050565b600080600080600060a086880312156200034257600080fd5b85516001600160401b03808211156200035a57600080fd5b6200036889838a0162000272565b965060208801519150808211156200037f57600080fd5b6200038d89838a0162000272565b604089015190965091506001600160a01b0382168214620003ad57600080fd5b606088015191945080821115620003c357600080fd5b620003d189838a0162000272565b93506080880151915080821115620003e857600080fd5b50620003f78882890162000272565b9150509295509295909350565b600181811c908216806200041957607f821691505b6020821081036200043a57634e487b7160e01b600052602260045260246000fd5b50919050565b6126d380620004506000396000f3fe6080604052600436106101815760003560e01c8063715018a6116100d1578063c87b56dd1161008a578063e30c397811610064578063e30c39781461046d578063e985e9c51461048b578063f2fde38b146104d4578063fd1180fc146104f457600080fd5b8063c87b56dd146103eb578063d67b06c11461040b578063d7170e2e1461042b57600080fd5b8063715018a6146103435780638da5cb5b1461035857806395d89b41146103765780639ccd2da01461038b578063a22cb465146103ab578063b88d4fde146103cb57600080fd5b806323b872dd1161013e5780635e3afeb8116101185780635e3afeb8146102d05780636352211e146102f05780636a6278421461031057806370a082311461032357600080fd5b806323b872dd1461027b57806342842e0e1461029b5780634e71e0c8146102bb57600080fd5b806301ffc9a71461018657806306fdde03146101bb578063081812fc146101dd578063095ea7b314610215578063160f616e1461023757806318160ddd14610257575b600080fd5b34801561019257600080fd5b506101a66101a1366004611c95565b610514565b60405190151581526020015b60405180910390f35b3480156101c757600080fd5b506101d0610566565b6040516101b29190611d11565b3480156101e957600080fd5b506101fd6101f8366004611d24565b6105f8565b6040516001600160a01b0390911681526020016101b2565b34801561022157600080fd5b50610235610230366004611d59565b610692565b005b34801561024357600080fd5b50610235610252366004611de0565b6107a7565b34801561026357600080fd5b5061026d60085481565b6040519081526020016101b2565b34801561028757600080fd5b50610235610296366004611e34565b610825565b3480156102a757600080fd5b506102356102b6366004611e34565b610856565b3480156102c757600080fd5b50610235610871565b3480156102dc57600080fd5b506102356102eb366004611e70565b6108f2565b3480156102fc57600080fd5b506101fd61030b366004611d24565b610936565b61023561031e366004611ef3565b6109ad565b34801561032f57600080fd5b5061026d61033e366004611ef3565b6109f2565b34801561034f57600080fd5b50610235610a79565b34801561036457600080fd5b506006546001600160a01b03166101fd565b34801561038257600080fd5b506101d0610abe565b34801561039757600080fd5b506102356103a6366004611f0e565b610acd565b3480156103b757600080fd5b506102356103c6366004611f3a565b610b14565b3480156103d757600080fd5b506102356103e6366004611f8c565b610b1f565b3480156103f757600080fd5b506101d0610406366004611d24565b610b51565b34801561041757600080fd5b50610235610426366004612068565b610b5c565b34801561043757600080fd5b5061045b610446366004611d24565b60009081526009602052604090205460ff1690565b60405160ff90911681526020016101b2565b34801561047957600080fd5b506007546001600160a01b03166101fd565b34801561049757600080fd5b506101a66104a63660046120aa565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b3480156104e057600080fd5b506102356104ef366004611ef3565b610bed565b34801561050057600080fd5b5061023561050f366004611e70565b610cd4565b60006001600160e01b031982166380ac58cd60e01b148061054557506001600160e01b03198216635b5e139f60e01b145b8061056057506301ffc9a760e01b6001600160e01b03198316145b92915050565b606060008054610575906120d4565b80601f01602080910402602001604051908101604052809291908181526020018280546105a1906120d4565b80156105ee5780601f106105c3576101008083540402835291602001916105ee565b820191906000526020600020905b8154815290600101906020018083116105d157829003601f168201915b5050505050905090565b6000818152600260205260408120546001600160a01b03166106765760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b600061069d82610936565b9050806001600160a01b0316836001600160a01b03160361070a5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b606482015260840161066d565b336001600160a01b0382161480610726575061072681336104a6565b6107985760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000606482015260840161066d565b6107a28383610d18565b505050565b336107ba6006546001600160a01b031690565b6001600160a01b0316146107e05760405162461bcd60e51b815260040161066d9061210e565b60005b8281101561081f5761080d84848381811061080057610800612145565b9050602002013583610d86565b8061081781612171565b9150506107e3565b50505050565b61082f3382610dd9565b61084b5760405162461bcd60e51b815260040161066d9061218a565b6107a2838383610ed0565b6107a283838360405180602001604052806000815250610b1f565b6007546001600160a01b031633146108cb5760405162461bcd60e51b815260206004820152601f60248201527f4f776e61626c652f63616c6c65722d6e6f742d70656e64696e674f776e657200604482015260640161066d565b6007546108e0906001600160a01b031661106c565b600780546001600160a01b0319169055565b336109056006546001600160a01b031690565b6001600160a01b03161461092b5760405162461bcd60e51b815260040161066d9061210e565b6107a28383836110be565b6000818152600260205260408120546001600160a01b0316806105605760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b606482015260840161066d565b336109c06006546001600160a01b031690565b6001600160a01b0316146109e65760405162461bcd60e51b815260040161066d9061210e565b6109ef8161111f565b50565b60006001600160a01b038216610a5d5760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b606482015260840161066d565b506001600160a01b031660009081526003602052604090205490565b33610a8c6006546001600160a01b031690565b6001600160a01b031614610ab25760405162461bcd60e51b815260040161066d9061210e565b610abc600061106c565b565b606060018054610575906120d4565b33610ae06006546001600160a01b031690565b6001600160a01b031614610b065760405162461bcd60e51b815260040161066d9061210e565b610b108282610d86565b5050565b610b10338383611192565b610b293383610dd9565b610b455760405162461bcd60e51b815260040161066d9061218a565b61081f84848484611260565b606061056082611293565b33610b6f6006546001600160a01b031690565b6001600160a01b031614610b955760405162461bcd60e51b815260040161066d9061210e565b60005b63ffffffff81168211156107a257610bdb83838363ffffffff16818110610bc157610bc1612145565b9050602002016020810190610bd69190611ef3565b61111f565b80610be5816121db565b915050610b98565b33610c006006546001600160a01b031690565b6001600160a01b031614610c265760405162461bcd60e51b815260040161066d9061210e565b6001600160a01b038116610c8a5760405162461bcd60e51b815260206004820152602560248201527f4f776e61626c652f70656e64696e674f776e65722d6e6f742d7a65726f2d6164604482015264647265737360d81b606482015260840161066d565b600780546001600160a01b0319166001600160a01b0383169081179091556040517f239a2ddded15777fa246aed5f7e1a9bc69a39d4eb4a397034d1d85766cca7d4c90600090a250565b33610ce76006546001600160a01b031690565b6001600160a01b031614610d0d5760405162461bcd60e51b815260040161066d9061210e565b6107a2838383611393565b600081815260046020526040902080546001600160a01b0319166001600160a01b0384169081179091558190610d4d82610936565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b8060ff1660011480610d9b57508060ff166002145b610db75760405162461bcd60e51b815260040161066d906121fe565b600091825260096020526040909120805460ff191660ff909216919091179055565b6000818152600260205260408120546001600160a01b0316610e525760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b606482015260840161066d565b6000610e5d83610936565b9050806001600160a01b0316846001600160a01b03161480610ea457506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b80610ec85750836001600160a01b0316610ebd846105f8565b6001600160a01b0316145b949350505050565b826001600160a01b0316610ee382610936565b6001600160a01b031614610f475760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201526437bbb732b960d91b606482015260840161066d565b6001600160a01b038216610fa95760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b606482015260840161066d565b610fb4600082610d18565b6001600160a01b0383166000908152600360205260408120805460019290610fdd90849061223f565b90915550506001600160a01b038216600090815260036020526040812080546001929061100b908490612256565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60ff831615806110d157508260ff166001145b806110df57508260ff166002145b6110fb5760405162461bcd60e51b815260040161066d906121fe565b8181600a8560ff166003811061111357611113612145565b61081f93910191611be6565b611128816109f2565b156111755760405162461bcd60e51b815260206004820152601860248201527f506f6f6c79436c75623a6578697374696e672d6f776e65720000000000000000604482015260640161066d565b6109ef8160086000815461118890612171565b91829055506113e8565b816001600160a01b0316836001600160a01b0316036111f35760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c657200000000000000604482015260640161066d565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b61126b848484610ed0565b61127784848484611402565b61081f5760405162461bcd60e51b815260040161066d9061226e565b60008181526009602052604081205460609160ff909116906112b482611503565b905060006112c18361159d565b905060006112ce8461161e565b905060006112db8561163f565b905060006112e8866116bf565b905060006112f587611718565b90506000611302886117d8565b90506000866113108c61180b565b6040516020016113219291906122dc565b60405160208183030381529060405290506113648187878b878760405160200161135096959493929190612334565b60405160208183030381529060405261190c565b60405160200161137491906124c9565b6040516020818303038152906040529950505050505050505050919050565b60ff831615806113a657508260ff166001145b806113b457508260ff166002145b6113d05760405162461bcd60e51b815260040161066d906121fe565b8181600d8560ff166003811061111357611113612145565b610b10828260405180602001604052806000815250611a71565b60006001600160a01b0384163b156114f857604051630a85bd0160e11b81526001600160a01b0385169063150b7a029061144690339089908890889060040161250e565b6020604051808303816000875af1925050508015611481575060408051601f3d908101601f1916820190925261147e9181019061254b565b60015b6114de573d8080156114af576040519150601f19603f3d011682016040523d82523d6000602084013e6114b4565b606091505b5080516000036114d65760405162461bcd60e51b815260040161066d9061226e565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050610ec8565b506001949350505050565b60608160ff1660020361153d5750506040805180820190915260118152704b65657020506f6f6c7920466c79696e6760781b602082015290565b8160ff1660010361157a5750506040805180820190915260168152755377696d7375697473204e6f74204c6177737569747360501b602082015290565b50506040805180820190915260078152664e6f204c6f737360c81b602082015290565b60608160ff166002036115cb575050604080518082019091526005815264537461727360d81b602082015290565b8160ff166001036115fb5750506040805180820190915260098152684e6967687474696d6560b81b602082015290565b505060408051808201909152600781526644617974696d6560c81b602082015290565b60606040518060c00160405280609881526020016125c66098913992915050565b60608160ff1660020361167257505060408051808201909152600a815269556c747261205261726560b01b602082015290565b8160ff1660010361169d5750506040805180820190915260048152635261726560e01b602082015290565b505060408051808201909152600681526521b7b6b6b7b760d11b602082015290565b60608160ff16600114806116d657508160ff166002145b156116fa57505060408051808201909152600381526259657360e81b602082015290565b50506040805180820190915260028152614e6f60f01b602082015290565b60608160ff166002036117bb57600a60025b018054611736906120d4565b80601f0160208091040260200160405190810160405280929190818152602001828054611762906120d4565b80156117af5780601f10611784576101008083540402835291602001916117af565b820191906000526020600020905b81548152906001019060200180831161179257829003601f168201915b50505050509050919050565b8160ff166001036117cf57600a600161172a565b600a600061172a565b60608160ff166002036117ee57600d600261172a565b8160ff1660010361180257600d600161172a565b600d600061172a565b6060816000036118325750506040805180820190915260018152600360fc1b602082015290565b8160005b811561185c578061184681612171565b91506118559050600a8361257e565b9150611836565b60008167ffffffffffffffff81111561187757611877611f76565b6040519080825280601f01601f1916602001820160405280156118a1576020820181803683370190505b5090505b8415610ec8576118b660018361223f565b91506118c3600a86612592565b6118ce906030612256565b60f81b8183815181106118e3576118e3612145565b60200101906001600160f81b031916908160001a905350611905600a8661257e565b94506118a5565b6060815160000361192b57505060408051602081019091526000815290565b600060405180606001604052806040815260200161265e604091399050600060038451600261195a9190612256565b611964919061257e565b61196f9060046125a6565b9050600061197e826020612256565b67ffffffffffffffff81111561199657611996611f76565b6040519080825280601f01601f1916602001820160405280156119c0576020820181803683370190505b509050818152600183018586518101602084015b81831015611a2c576003830192508251603f8160121c168501518253600182019150603f81600c1c168501518253600182019150603f8160061c168501518253600182019150603f81168501518253506001016119d4565b600389510660018114611a465760028114611a5757611a63565b613d3d60f01b600119830152611a63565b603d60f81b6000198301525b509398975050505050505050565b611a7b8383611aa4565b611a886000848484611402565b6107a25760405162461bcd60e51b815260040161066d9061226e565b6001600160a01b038216611afa5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373604482015260640161066d565b6000818152600260205260409020546001600160a01b031615611b5f5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000604482015260640161066d565b6001600160a01b0382166000908152600360205260408120805460019290611b88908490612256565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b828054611bf2906120d4565b90600052602060002090601f016020900481019282611c145760008555611c5a565b82601f10611c2d5782800160ff19823516178555611c5a565b82800160010185558215611c5a579182015b82811115611c5a578235825591602001919060010190611c3f565b50611c66929150611c6a565b5090565b5b80821115611c665760008155600101611c6b565b6001600160e01b0319811681146109ef57600080fd5b600060208284031215611ca757600080fd5b8135611cb281611c7f565b9392505050565b60005b83811015611cd4578181015183820152602001611cbc565b8381111561081f5750506000910152565b60008151808452611cfd816020860160208601611cb9565b601f01601f19169290920160200192915050565b602081526000611cb26020830184611ce5565b600060208284031215611d3657600080fd5b5035919050565b80356001600160a01b0381168114611d5457600080fd5b919050565b60008060408385031215611d6c57600080fd5b611d7583611d3d565b946020939093013593505050565b60008083601f840112611d9557600080fd5b50813567ffffffffffffffff811115611dad57600080fd5b6020830191508360208260051b8501011115611dc857600080fd5b9250929050565b803560ff81168114611d5457600080fd5b600080600060408486031215611df557600080fd5b833567ffffffffffffffff811115611e0c57600080fd5b611e1886828701611d83565b9094509250611e2b905060208501611dcf565b90509250925092565b600080600060608486031215611e4957600080fd5b611e5284611d3d565b9250611e6060208501611d3d565b9150604084013590509250925092565b600080600060408486031215611e8557600080fd5b611e8e84611dcf565b9250602084013567ffffffffffffffff80821115611eab57600080fd5b818601915086601f830112611ebf57600080fd5b813581811115611ece57600080fd5b876020828501011115611ee057600080fd5b6020830194508093505050509250925092565b600060208284031215611f0557600080fd5b611cb282611d3d565b60008060408385031215611f2157600080fd5b82359150611f3160208401611dcf565b90509250929050565b60008060408385031215611f4d57600080fd5b611f5683611d3d565b915060208301358015158114611f6b57600080fd5b809150509250929050565b634e487b7160e01b600052604160045260246000fd5b60008060008060808587031215611fa257600080fd5b611fab85611d3d565b9350611fb960208601611d3d565b925060408501359150606085013567ffffffffffffffff80821115611fdd57600080fd5b818701915087601f830112611ff157600080fd5b81358181111561200357612003611f76565b604051601f8201601f19908116603f0116810190838211818310171561202b5761202b611f76565b816040528281528a602084870101111561204457600080fd5b82602086016020830137600060208483010152809550505050505092959194509250565b6000806020838503121561207b57600080fd5b823567ffffffffffffffff81111561209257600080fd5b61209e85828601611d83565b90969095509350505050565b600080604083850312156120bd57600080fd5b6120c683611d3d565b9150611f3160208401611d3d565b600181811c908216806120e857607f821691505b60208210810361210857634e487b7160e01b600052602260045260246000fd5b50919050565b60208082526018908201527f4f776e61626c652f63616c6c65722d6e6f742d6f776e65720000000000000000604082015260600190565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b6000600182016121835761218361215b565b5060010190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b600063ffffffff8083168181036121f4576121f461215b565b6001019392505050565b60208082526021908201527f506f6f6c79417070726563696174696f6e4e46543a696e76616c69642d7469656040820152603960f91b606082015260800190565b6000828210156122515761225161215b565b500390565b600082198211156122695761226961215b565b500190565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b600081516122d2818560208601611cb9565b9290920192915050565b6d086d8eac440a0deded8f24ee640560931b81526000835161230581600e850160208801611cb9565b6229202360e81b600e918401918201528351612328816011840160208801611cb9565b01601101949350505050565b673d913730b6b2911d60c11b8152601160f91b6008820152600061235b60098301896122c0565b61088b60f21b81526d113232b9b1b934b83a34b7b7111d60911b6002820152601160f91b601082015261239160118201896122c0565b61088b60f21b815290506e2261747472696275746573223a205b60881b60028201527f7b2274726169745f74797065223a2022526172697479222c0000000000000000601182015269113b30b63ab2911d101160b11b60298201526123f960338201886122c0565b62089f4b60ea1b815290507f7b2274726169745f74797065223a20225469746c65222c000000000000000000600382015269113b30b63ab2911d101160b11b601a82015261244a60248201876122c0565b61227d60f01b8152905061174b60f21b6002820152691134b6b0b3b2911d101160b11b600482015261247f600e8201866122c0565b61088b60f21b81529050711130b734b6b0ba34b7b72fbab936111d101160711b60028201526124b160148201856122c0565b61227d60f01b81526002019998505050505050505050565b7f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c00000081526000825161250181601d850160208701611cb9565b91909101601d0192915050565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061254190830184611ce5565b9695505050505050565b60006020828403121561255d57600080fd5b8151611cb281611c7f565b634e487b7160e01b600052601260045260246000fd5b60008261258d5761258d612568565b500490565b6000826125a1576125a1612568565b500690565b60008160001904831182151516156125c0576125c061215b565b50029056fe506f6f6c7927732069732061207370656369616c2068616e676f757420666f7220746865204f4720506f6f6c7920737570706f72746572732e20416e696d6174696f6e2062792040636875636b6265726765726f6e2e20336420506f6f6c792062792040645f765f64736d2e204f726967696e616c20506f6f6c7920636f6e636570742062792040697272656c657068616e746f6f70732e4142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2fa26469706673582212207ddd8ac9a2aa16298be37cc7233be8e1439fc9a5a7b3069bb64a0288cadfee6564736f6c634300080d003300000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000e00000000000000000000000005e6cc2397ecb33e6041c15360e17c777555a5e63000000000000000000000000000000000000000000000000000000000000012000000000000000000000000000000000000000000000000000000000000001a0000000000000000000000000000000000000000000000000000000000000000a436c756220506f6f6c79000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000009434c5542504f4f4c5900000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000042697066733a2f2f6261667962656965656f697a6637346132736b36696e627776797563676e6a37686c736463676932336333776c656b626c6d6662347472657162790000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000

Deployed Bytecode

0x6080604052600436106101815760003560e01c8063715018a6116100d1578063c87b56dd1161008a578063e30c397811610064578063e30c39781461046d578063e985e9c51461048b578063f2fde38b146104d4578063fd1180fc146104f457600080fd5b8063c87b56dd146103eb578063d67b06c11461040b578063d7170e2e1461042b57600080fd5b8063715018a6146103435780638da5cb5b1461035857806395d89b41146103765780639ccd2da01461038b578063a22cb465146103ab578063b88d4fde146103cb57600080fd5b806323b872dd1161013e5780635e3afeb8116101185780635e3afeb8146102d05780636352211e146102f05780636a6278421461031057806370a082311461032357600080fd5b806323b872dd1461027b57806342842e0e1461029b5780634e71e0c8146102bb57600080fd5b806301ffc9a71461018657806306fdde03146101bb578063081812fc146101dd578063095ea7b314610215578063160f616e1461023757806318160ddd14610257575b600080fd5b34801561019257600080fd5b506101a66101a1366004611c95565b610514565b60405190151581526020015b60405180910390f35b3480156101c757600080fd5b506101d0610566565b6040516101b29190611d11565b3480156101e957600080fd5b506101fd6101f8366004611d24565b6105f8565b6040516001600160a01b0390911681526020016101b2565b34801561022157600080fd5b50610235610230366004611d59565b610692565b005b34801561024357600080fd5b50610235610252366004611de0565b6107a7565b34801561026357600080fd5b5061026d60085481565b6040519081526020016101b2565b34801561028757600080fd5b50610235610296366004611e34565b610825565b3480156102a757600080fd5b506102356102b6366004611e34565b610856565b3480156102c757600080fd5b50610235610871565b3480156102dc57600080fd5b506102356102eb366004611e70565b6108f2565b3480156102fc57600080fd5b506101fd61030b366004611d24565b610936565b61023561031e366004611ef3565b6109ad565b34801561032f57600080fd5b5061026d61033e366004611ef3565b6109f2565b34801561034f57600080fd5b50610235610a79565b34801561036457600080fd5b506006546001600160a01b03166101fd565b34801561038257600080fd5b506101d0610abe565b34801561039757600080fd5b506102356103a6366004611f0e565b610acd565b3480156103b757600080fd5b506102356103c6366004611f3a565b610b14565b3480156103d757600080fd5b506102356103e6366004611f8c565b610b1f565b3480156103f757600080fd5b506101d0610406366004611d24565b610b51565b34801561041757600080fd5b50610235610426366004612068565b610b5c565b34801561043757600080fd5b5061045b610446366004611d24565b60009081526009602052604090205460ff1690565b60405160ff90911681526020016101b2565b34801561047957600080fd5b506007546001600160a01b03166101fd565b34801561049757600080fd5b506101a66104a63660046120aa565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b3480156104e057600080fd5b506102356104ef366004611ef3565b610bed565b34801561050057600080fd5b5061023561050f366004611e70565b610cd4565b60006001600160e01b031982166380ac58cd60e01b148061054557506001600160e01b03198216635b5e139f60e01b145b8061056057506301ffc9a760e01b6001600160e01b03198316145b92915050565b606060008054610575906120d4565b80601f01602080910402602001604051908101604052809291908181526020018280546105a1906120d4565b80156105ee5780601f106105c3576101008083540402835291602001916105ee565b820191906000526020600020905b8154815290600101906020018083116105d157829003601f168201915b5050505050905090565b6000818152600260205260408120546001600160a01b03166106765760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b600061069d82610936565b9050806001600160a01b0316836001600160a01b03160361070a5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b606482015260840161066d565b336001600160a01b0382161480610726575061072681336104a6565b6107985760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000606482015260840161066d565b6107a28383610d18565b505050565b336107ba6006546001600160a01b031690565b6001600160a01b0316146107e05760405162461bcd60e51b815260040161066d9061210e565b60005b8281101561081f5761080d84848381811061080057610800612145565b9050602002013583610d86565b8061081781612171565b9150506107e3565b50505050565b61082f3382610dd9565b61084b5760405162461bcd60e51b815260040161066d9061218a565b6107a2838383610ed0565b6107a283838360405180602001604052806000815250610b1f565b6007546001600160a01b031633146108cb5760405162461bcd60e51b815260206004820152601f60248201527f4f776e61626c652f63616c6c65722d6e6f742d70656e64696e674f776e657200604482015260640161066d565b6007546108e0906001600160a01b031661106c565b600780546001600160a01b0319169055565b336109056006546001600160a01b031690565b6001600160a01b03161461092b5760405162461bcd60e51b815260040161066d9061210e565b6107a28383836110be565b6000818152600260205260408120546001600160a01b0316806105605760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b606482015260840161066d565b336109c06006546001600160a01b031690565b6001600160a01b0316146109e65760405162461bcd60e51b815260040161066d9061210e565b6109ef8161111f565b50565b60006001600160a01b038216610a5d5760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b606482015260840161066d565b506001600160a01b031660009081526003602052604090205490565b33610a8c6006546001600160a01b031690565b6001600160a01b031614610ab25760405162461bcd60e51b815260040161066d9061210e565b610abc600061106c565b565b606060018054610575906120d4565b33610ae06006546001600160a01b031690565b6001600160a01b031614610b065760405162461bcd60e51b815260040161066d9061210e565b610b108282610d86565b5050565b610b10338383611192565b610b293383610dd9565b610b455760405162461bcd60e51b815260040161066d9061218a565b61081f84848484611260565b606061056082611293565b33610b6f6006546001600160a01b031690565b6001600160a01b031614610b955760405162461bcd60e51b815260040161066d9061210e565b60005b63ffffffff81168211156107a257610bdb83838363ffffffff16818110610bc157610bc1612145565b9050602002016020810190610bd69190611ef3565b61111f565b80610be5816121db565b915050610b98565b33610c006006546001600160a01b031690565b6001600160a01b031614610c265760405162461bcd60e51b815260040161066d9061210e565b6001600160a01b038116610c8a5760405162461bcd60e51b815260206004820152602560248201527f4f776e61626c652f70656e64696e674f776e65722d6e6f742d7a65726f2d6164604482015264647265737360d81b606482015260840161066d565b600780546001600160a01b0319166001600160a01b0383169081179091556040517f239a2ddded15777fa246aed5f7e1a9bc69a39d4eb4a397034d1d85766cca7d4c90600090a250565b33610ce76006546001600160a01b031690565b6001600160a01b031614610d0d5760405162461bcd60e51b815260040161066d9061210e565b6107a2838383611393565b600081815260046020526040902080546001600160a01b0319166001600160a01b0384169081179091558190610d4d82610936565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b8060ff1660011480610d9b57508060ff166002145b610db75760405162461bcd60e51b815260040161066d906121fe565b600091825260096020526040909120805460ff191660ff909216919091179055565b6000818152600260205260408120546001600160a01b0316610e525760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b606482015260840161066d565b6000610e5d83610936565b9050806001600160a01b0316846001600160a01b03161480610ea457506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b80610ec85750836001600160a01b0316610ebd846105f8565b6001600160a01b0316145b949350505050565b826001600160a01b0316610ee382610936565b6001600160a01b031614610f475760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201526437bbb732b960d91b606482015260840161066d565b6001600160a01b038216610fa95760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b606482015260840161066d565b610fb4600082610d18565b6001600160a01b0383166000908152600360205260408120805460019290610fdd90849061223f565b90915550506001600160a01b038216600090815260036020526040812080546001929061100b908490612256565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60ff831615806110d157508260ff166001145b806110df57508260ff166002145b6110fb5760405162461bcd60e51b815260040161066d906121fe565b8181600a8560ff166003811061111357611113612145565b61081f93910191611be6565b611128816109f2565b156111755760405162461bcd60e51b815260206004820152601860248201527f506f6f6c79436c75623a6578697374696e672d6f776e65720000000000000000604482015260640161066d565b6109ef8160086000815461118890612171565b91829055506113e8565b816001600160a01b0316836001600160a01b0316036111f35760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c657200000000000000604482015260640161066d565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b61126b848484610ed0565b61127784848484611402565b61081f5760405162461bcd60e51b815260040161066d9061226e565b60008181526009602052604081205460609160ff909116906112b482611503565b905060006112c18361159d565b905060006112ce8461161e565b905060006112db8561163f565b905060006112e8866116bf565b905060006112f587611718565b90506000611302886117d8565b90506000866113108c61180b565b6040516020016113219291906122dc565b60405160208183030381529060405290506113648187878b878760405160200161135096959493929190612334565b60405160208183030381529060405261190c565b60405160200161137491906124c9565b6040516020818303038152906040529950505050505050505050919050565b60ff831615806113a657508260ff166001145b806113b457508260ff166002145b6113d05760405162461bcd60e51b815260040161066d906121fe565b8181600d8560ff166003811061111357611113612145565b610b10828260405180602001604052806000815250611a71565b60006001600160a01b0384163b156114f857604051630a85bd0160e11b81526001600160a01b0385169063150b7a029061144690339089908890889060040161250e565b6020604051808303816000875af1925050508015611481575060408051601f3d908101601f1916820190925261147e9181019061254b565b60015b6114de573d8080156114af576040519150601f19603f3d011682016040523d82523d6000602084013e6114b4565b606091505b5080516000036114d65760405162461bcd60e51b815260040161066d9061226e565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050610ec8565b506001949350505050565b60608160ff1660020361153d5750506040805180820190915260118152704b65657020506f6f6c7920466c79696e6760781b602082015290565b8160ff1660010361157a5750506040805180820190915260168152755377696d7375697473204e6f74204c6177737569747360501b602082015290565b50506040805180820190915260078152664e6f204c6f737360c81b602082015290565b60608160ff166002036115cb575050604080518082019091526005815264537461727360d81b602082015290565b8160ff166001036115fb5750506040805180820190915260098152684e6967687474696d6560b81b602082015290565b505060408051808201909152600781526644617974696d6560c81b602082015290565b60606040518060c00160405280609881526020016125c66098913992915050565b60608160ff1660020361167257505060408051808201909152600a815269556c747261205261726560b01b602082015290565b8160ff1660010361169d5750506040805180820190915260048152635261726560e01b602082015290565b505060408051808201909152600681526521b7b6b6b7b760d11b602082015290565b60608160ff16600114806116d657508160ff166002145b156116fa57505060408051808201909152600381526259657360e81b602082015290565b50506040805180820190915260028152614e6f60f01b602082015290565b60608160ff166002036117bb57600a60025b018054611736906120d4565b80601f0160208091040260200160405190810160405280929190818152602001828054611762906120d4565b80156117af5780601f10611784576101008083540402835291602001916117af565b820191906000526020600020905b81548152906001019060200180831161179257829003601f168201915b50505050509050919050565b8160ff166001036117cf57600a600161172a565b600a600061172a565b60608160ff166002036117ee57600d600261172a565b8160ff1660010361180257600d600161172a565b600d600061172a565b6060816000036118325750506040805180820190915260018152600360fc1b602082015290565b8160005b811561185c578061184681612171565b91506118559050600a8361257e565b9150611836565b60008167ffffffffffffffff81111561187757611877611f76565b6040519080825280601f01601f1916602001820160405280156118a1576020820181803683370190505b5090505b8415610ec8576118b660018361223f565b91506118c3600a86612592565b6118ce906030612256565b60f81b8183815181106118e3576118e3612145565b60200101906001600160f81b031916908160001a905350611905600a8661257e565b94506118a5565b6060815160000361192b57505060408051602081019091526000815290565b600060405180606001604052806040815260200161265e604091399050600060038451600261195a9190612256565b611964919061257e565b61196f9060046125a6565b9050600061197e826020612256565b67ffffffffffffffff81111561199657611996611f76565b6040519080825280601f01601f1916602001820160405280156119c0576020820181803683370190505b509050818152600183018586518101602084015b81831015611a2c576003830192508251603f8160121c168501518253600182019150603f81600c1c168501518253600182019150603f8160061c168501518253600182019150603f81168501518253506001016119d4565b600389510660018114611a465760028114611a5757611a63565b613d3d60f01b600119830152611a63565b603d60f81b6000198301525b509398975050505050505050565b611a7b8383611aa4565b611a886000848484611402565b6107a25760405162461bcd60e51b815260040161066d9061226e565b6001600160a01b038216611afa5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373604482015260640161066d565b6000818152600260205260409020546001600160a01b031615611b5f5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000604482015260640161066d565b6001600160a01b0382166000908152600360205260408120805460019290611b88908490612256565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b828054611bf2906120d4565b90600052602060002090601f016020900481019282611c145760008555611c5a565b82601f10611c2d5782800160ff19823516178555611c5a565b82800160010185558215611c5a579182015b82811115611c5a578235825591602001919060010190611c3f565b50611c66929150611c6a565b5090565b5b80821115611c665760008155600101611c6b565b6001600160e01b0319811681146109ef57600080fd5b600060208284031215611ca757600080fd5b8135611cb281611c7f565b9392505050565b60005b83811015611cd4578181015183820152602001611cbc565b8381111561081f5750506000910152565b60008151808452611cfd816020860160208601611cb9565b601f01601f19169290920160200192915050565b602081526000611cb26020830184611ce5565b600060208284031215611d3657600080fd5b5035919050565b80356001600160a01b0381168114611d5457600080fd5b919050565b60008060408385031215611d6c57600080fd5b611d7583611d3d565b946020939093013593505050565b60008083601f840112611d9557600080fd5b50813567ffffffffffffffff811115611dad57600080fd5b6020830191508360208260051b8501011115611dc857600080fd5b9250929050565b803560ff81168114611d5457600080fd5b600080600060408486031215611df557600080fd5b833567ffffffffffffffff811115611e0c57600080fd5b611e1886828701611d83565b9094509250611e2b905060208501611dcf565b90509250925092565b600080600060608486031215611e4957600080fd5b611e5284611d3d565b9250611e6060208501611d3d565b9150604084013590509250925092565b600080600060408486031215611e8557600080fd5b611e8e84611dcf565b9250602084013567ffffffffffffffff80821115611eab57600080fd5b818601915086601f830112611ebf57600080fd5b813581811115611ece57600080fd5b876020828501011115611ee057600080fd5b6020830194508093505050509250925092565b600060208284031215611f0557600080fd5b611cb282611d3d565b60008060408385031215611f2157600080fd5b82359150611f3160208401611dcf565b90509250929050565b60008060408385031215611f4d57600080fd5b611f5683611d3d565b915060208301358015158114611f6b57600080fd5b809150509250929050565b634e487b7160e01b600052604160045260246000fd5b60008060008060808587031215611fa257600080fd5b611fab85611d3d565b9350611fb960208601611d3d565b925060408501359150606085013567ffffffffffffffff80821115611fdd57600080fd5b818701915087601f830112611ff157600080fd5b81358181111561200357612003611f76565b604051601f8201601f19908116603f0116810190838211818310171561202b5761202b611f76565b816040528281528a602084870101111561204457600080fd5b82602086016020830137600060208483010152809550505050505092959194509250565b6000806020838503121561207b57600080fd5b823567ffffffffffffffff81111561209257600080fd5b61209e85828601611d83565b90969095509350505050565b600080604083850312156120bd57600080fd5b6120c683611d3d565b9150611f3160208401611d3d565b600181811c908216806120e857607f821691505b60208210810361210857634e487b7160e01b600052602260045260246000fd5b50919050565b60208082526018908201527f4f776e61626c652f63616c6c65722d6e6f742d6f776e65720000000000000000604082015260600190565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b6000600182016121835761218361215b565b5060010190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b600063ffffffff8083168181036121f4576121f461215b565b6001019392505050565b60208082526021908201527f506f6f6c79417070726563696174696f6e4e46543a696e76616c69642d7469656040820152603960f91b606082015260800190565b6000828210156122515761225161215b565b500390565b600082198211156122695761226961215b565b500190565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b600081516122d2818560208601611cb9565b9290920192915050565b6d086d8eac440a0deded8f24ee640560931b81526000835161230581600e850160208801611cb9565b6229202360e81b600e918401918201528351612328816011840160208801611cb9565b01601101949350505050565b673d913730b6b2911d60c11b8152601160f91b6008820152600061235b60098301896122c0565b61088b60f21b81526d113232b9b1b934b83a34b7b7111d60911b6002820152601160f91b601082015261239160118201896122c0565b61088b60f21b815290506e2261747472696275746573223a205b60881b60028201527f7b2274726169745f74797065223a2022526172697479222c0000000000000000601182015269113b30b63ab2911d101160b11b60298201526123f960338201886122c0565b62089f4b60ea1b815290507f7b2274726169745f74797065223a20225469746c65222c000000000000000000600382015269113b30b63ab2911d101160b11b601a82015261244a60248201876122c0565b61227d60f01b8152905061174b60f21b6002820152691134b6b0b3b2911d101160b11b600482015261247f600e8201866122c0565b61088b60f21b81529050711130b734b6b0ba34b7b72fbab936111d101160711b60028201526124b160148201856122c0565b61227d60f01b81526002019998505050505050505050565b7f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c00000081526000825161250181601d850160208701611cb9565b91909101601d0192915050565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061254190830184611ce5565b9695505050505050565b60006020828403121561255d57600080fd5b8151611cb281611c7f565b634e487b7160e01b600052601260045260246000fd5b60008261258d5761258d612568565b500490565b6000826125a1576125a1612568565b500690565b60008160001904831182151516156125c0576125c061215b565b50029056fe506f6f6c7927732069732061207370656369616c2068616e676f757420666f7220746865204f4720506f6f6c7920737570706f72746572732e20416e696d6174696f6e2062792040636875636b6265726765726f6e2e20336420506f6f6c792062792040645f765f64736d2e204f726967696e616c20506f6f6c7920636f6e636570742062792040697272656c657068616e746f6f70732e4142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2fa26469706673582212207ddd8ac9a2aa16298be37cc7233be8e1439fc9a5a7b3069bb64a0288cadfee6564736f6c634300080d0033

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

00000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000e00000000000000000000000005e6cc2397ecb33e6041c15360e17c777555a5e63000000000000000000000000000000000000000000000000000000000000012000000000000000000000000000000000000000000000000000000000000001a0000000000000000000000000000000000000000000000000000000000000000a436c756220506f6f6c79000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000009434c5542504f4f4c5900000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000042697066733a2f2f6261667962656965656f697a6637346132736b36696e627776797563676e6a37686c736463676932336333776c656b626c6d6662347472657162790000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000

-----Decoded View---------------
Arg [0] : _name (string): Club Pooly
Arg [1] : _symbol (string): CLUBPOOLY
Arg [2] : _owner (address): 0x5E6CC2397EcB33e6041C15360E17c777555A5E63
Arg [3] : _revealImageIpfsUri (string): ipfs://bafybeieeoizf74a2sk6inbwvyucgnj7hlsdcgi23c3wlekblmfb4treqby
Arg [4] : _revealAnimationIpfsUri (string):

-----Encoded View---------------
14 Constructor Arguments found :
Arg [0] : 00000000000000000000000000000000000000000000000000000000000000a0
Arg [1] : 00000000000000000000000000000000000000000000000000000000000000e0
Arg [2] : 0000000000000000000000005e6cc2397ecb33e6041c15360e17c777555a5e63
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000120
Arg [4] : 00000000000000000000000000000000000000000000000000000000000001a0
Arg [5] : 000000000000000000000000000000000000000000000000000000000000000a
Arg [6] : 436c756220506f6f6c7900000000000000000000000000000000000000000000
Arg [7] : 0000000000000000000000000000000000000000000000000000000000000009
Arg [8] : 434c5542504f4f4c590000000000000000000000000000000000000000000000
Arg [9] : 0000000000000000000000000000000000000000000000000000000000000042
Arg [10] : 697066733a2f2f6261667962656965656f697a6637346132736b36696e627776
Arg [11] : 797563676e6a37686c736463676932336333776c656b626c6d66623474726571
Arg [12] : 6279000000000000000000000000000000000000000000000000000000000000
Arg [13] : 0000000000000000000000000000000000000000000000000000000000000000


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.