ETH Price: $3,104.07 (+0.67%)
Gas: 6 Gwei

Token

Probably Nothing Genesis NFT (OGPN)
 

Overview

Max Total Supply

680 OGPN

Holders

575

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Balance
1 OGPN
0x9a08564458c614281de24d9724f00438901703b4
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:
PRBLYGenesisNFT

Compiler Version
v0.8.9+commit.e5eed63a

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 20 : genesisNFT.sol
// SPDX-License-Identifier: MIT
//                                                      *****+=:.  .=*****+-.      -#@@#-.   .+*****=:.     .****+:   :*****+=:.   -***:  -+**=   =***.
//                ...:=*#%%#*=:..       .+%@*.          @@@@%@@@@* .#@@@%%@@@*.  +@@@@%@@@-  :%@@@%%@@@-    +@@@@@#   -@@@@%@@@@+  +@@@-   #@@@:  %@@%
//             .:=%@@@@@@@@@@@@@@#-.  .#@@@@%:          @@@% .#@@%=.#@@*  +@@@= -%@@#: #@@@: :%@@- .@@@@   .@@@#@@#   -@@@* :%@@*: +@@@-   =@@@+ =@@@.
//           .-%@@@@@@%%%%%%%%@@@@@@+=%@@@%*.           @@@%  :@@@*.#@@*  =@@@= +@@@-  *@@@- :%@@=..%@@@   .@@%.@@%:  -@@@* .+@@#: +@@@-    *@@@:%@@+
//          -%@@@@%##=.      :*##@@@@@@@%#.             @@@@:-*@@%=.#@@#::*@@%- +@@@-  +@@@= :%@@*+#@@@=   +@@%.@@@#  -@@@#+#@@@=  +@@@-    .#@@=@@%
//        .=@@@@#*:              *@@@@@#-               @@@@@@@@#+ .#@@@@@@@@=  +@@@-  +@@@+.:%@@%##@@#:   @@@#.%@@#  -@@@%#%@@#-. +@@@-     +@@@@@:
//       :*@@@@+.              .=%@@@#*.                @@@@***+.  .#@@%+*%@@#: +@@@-  *@@@+ :%@@-  %@@@. .@@@#=*@@%- -@@@* :*@@@= +@@@-      #@@@#
//      .#@@@%=              .-#@@@%#:    :             @@@%       .#@@*  =@@@= +@@@=  *@@@- :%@@-  +@@@= +@@@@@@@@@* -@@@*  =@@@= +@@@-      *@@@:
//      =@@@@=              :*@@@@#-.   .-%:            @@@%       .#@@*  =@@@= -%@@*=-%@@#. :%@@*=-%@@@: @@@@++*@@@# -@@@#--*@@%- +@@@*----. *@@@:
//     .@@@@+             :=#@@@#+:    -+@@*.           @@@%       .#@@*  =@@@=  -#@@@@@@#:  :%@@@@@@@*+ .@@@#  .*@@%--@@@@@@@@#-  +@@@@@@@@: *@@@:
//     -@@@%            .-#@@@%*:      *@@@@.           +++=       .=++-  :+++:   :++++++.   .++++++++.  :+++:   :+++-.+++++++=:   -++++++++. -+++.
//     #@@@%           :*@@@@#-.       -%@@@.
//     %@@@%         :+#@@@#=:         :%@@@.                             .                                                        .
//     +@@@%       .=#@@@@*:           =@@@@.           ++++=  :++=   :++***++: .=+++++++++. =++=  .+++-  +++=  .+++=. :+++-   :++***++:
//     :@@@%-     :*@@@@#-.            *@@@%.           @@@@%  =@@#  :#@@@#%@@#:-%@@@@@@@@@: %@@%. :@@@*  @@@%  :@@@@+ -@@@+  :#@@%#@@@#:
//      @@@@#   .*#@@@#=:             =%@@@=            @@@@@= =@@# .+@@@+:=%@@*:---#@@@+--. %@@%. :@@@*  @@@%  :@@@@#:-@@@+ :%@@*::*@@@-
//      -@@@@+ =#@@@@*:              -%@@@#.            @@@#@% =@@# :%@@*. .+@@%-   *@@@-    %@@%. :@@@*  @@@%  :@@@@@+-@@@+ =@@@=  :---.
//       =@@@@#%@@@#-.              =%@@@@-             @@@=@@*=@@# -@@@*   =@@@=   *@@@-    %@@@#*#@@@*  @@@%  :@@%+@%*@@@+ =@@@= -****:
//        =@@@@@@%=.              :*@@@@%-              @@@-%@%-@@# -@@@*   =@@@=   *@@@-    %@@@@@@@@@*  @@@%  :@@#-@@%@@@+ =@@@= +@@@@-
//        =@@@@@*.              -#%@@@@+:               @@@=:@@%@@# -@@@*   =@@@=   *@@@-    %@@%-:=@@@*  @@@%  :@@#.+@@@@@+ =@@@= .*@@@-
//      .%@@@@%:.    :*+-:-=*#%%@@@@@%-                 @@@=.#@@@@# .*@@%- :#@@#:   *@@@-    %@@%. :@@@*  @@@%  :@@# -@@@@@+ =@@@=  +@@@-
//     *%@@@@=.    :#%@@@%@@@@@@@@@*:.                  @@@= :@@@@#  -@@@%+#@@@+    *@@@-    %@@%. :@@@*  @@@%  :@@#  +@@@@+ .*@@@*+%@@@- -#%%:
//   :%@@@@#.     .#@@@@@@@@@@@@*:.                     @@@= .#@@@#   =@@@@@@@+     *@@@-    %@@%. :@@@*  @@@%  :@@#  -@@@@+  -%@@@@@@@@- :%@@:
//    .:-:.         ....:::.....                        ..     ...     ..:::..       ...      ..    ...   ...    ..    ....     .::.....    ..
//
/// @title Probably Nothing Genesis NFT
/// @author audie.eth and 0xEwok
/// @notice An NFT for those who came to Probably Nothing early.

pragma solidity ^0.8.9;

import "@openzeppelin/contracts/token/common/ERC2981.sol";
import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/access/AccessControlEnumerable.sol";
import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol";
import "@openzeppelin/contracts/utils/Counters.sol";
import "@openzeppelin/contracts/utils/Strings.sol";
import "@openzeppelin/contracts/access/Ownable.sol";

contract PRBLYGenesisNFT is ERC2981, ERC721, AccessControlEnumerable, Ownable {
    // the maximum number that can be minted
    uint256 public constant MAX_SUPPLY = 777;
    //roles
    bytes32 public constant OWNER_ROLE = keccak256("OWNER_ROLE");
    // mutable properties
    bytes32 private _merkleRoot;
    string private _baseTokenURI = "https://probably0.mypinata.cloud/ipfs/QmZ5iiSJ2LGMNWHj4LtWNArSEt1Z41XUUBn3QyJKyuh8r2/";
    string private _contractUri = "https://probably0.mypinata.cloud/ipfs/QmZJxsJ9xk9Dh5JFf6zLc7ZDCoyJ7Mz5DjKNG26TgechFm";
    // the total number that have been minted
    uint256 private _mintedSupply;

    // dates below are in the future - must be set post deploy
    uint256 private _genesisHolderMintStartTime;
    uint256 private _genesisHolderMintEndTime;
    // we won't use the zero index
    // indexes are the token ids, cheap initialized array where we set bool to true when minted
    bool[MAX_SUPPLY + 1] private _tokenIds;
    bool[MAX_SUPPLY + 1] private _staked; // all start out unstaked.

    // EIP2981 properties
    address royaltyAddr = 0x11d18ea67e081aa239430093808b2721b87ca733;
    uint96 royaltyPercent = 1000; // denominator is 10000, so this is 10%

    /**
     *  @notice Contructor for the NFT
     *  @param name The long name of the NFT collection
     *  @param symbol The short, all caps symbol for the collection
     */
    constructor(
        string memory name,
        string memory symbol
    ) ERC2981() ERC721(name, symbol) Ownable() {
        _setDefaultRoyalty(royaltyAddr, royaltyPercent);
        _setupRole(DEFAULT_ADMIN_ROLE, _msgSender());
        _setupRole(OWNER_ROLE, _msgSender());
    }

    /**
     *  @notice Sets the ERC2981 default royalty info
     *  @param receiver The address to receive default royalty payouts
     *  @param feeNumerator The royalty fee in basis points, set over a denominator of 10000
     */
    function setDefaultRoyalty(address receiver, uint96 feeNumerator)
        external
        onlyOwner
    {
        super._setDefaultRoyalty(receiver, feeNumerator);
    }

    /**
     *  @notice Given a caller with a matching proof mints the next NFT specified by the ID
     *  @param proof A merkle proof that confirms the sender's address and token ID is in the list
     *  @param id The NFT number
     */
    function mint(bytes32[] calldata proof, uint256 id) external {
        // only the address on the merkle tree can mint, no others - means tree can be public
        address account = _msgSender();
        require(_verify(_leaf(account, id), proof), "Invalid merkle proof");
        _mintOne(account, id);
    }

    /**
     *  @notice Mint the NFT to the given account
     *  @param account The address to receive the minted NFT
     *  @param id The NFT number
     */
    function airdropMint(address account, uint256 id) external onlyOwner {
        _mintOne(account, id);
    }

    /**
     *  @notice Mint the NFTs to the given accounts
     *  @param accounts The addresses to receive the minted NFTs
     *  @param ids The NFT numbers
     */
    function airdropMintBatch(address[] calldata accounts, uint[] calldata ids) external onlyOwner {
        uint256 length = accounts.length;
        for (uint256 i = 0; i < length; ) {
            _mintOne(accounts[i], ids[i]);

            // can the (solc compiler) devs do something please
            unchecked {
                i++;
            }
        }
    }

    /**
     *  @notice Check if the given NFT has been minted
     *  @param id The NFT number to check
     */
    function isMinted(uint256 id) public view returns(bool) {
        return _tokenIds[id];
    }

    /**
     *  @notice Owner only mint function to mint reserves or giveaways - call only after mint period is over
     *  @param account The address to receive all the minted NFTs
     *  @param firstId The first NFT number to check
     *  @param lastId The last NFT number to check
     *  @dev This function will mint the collection out, skipping over any already minted tokens.
     */
    function ownerMintBlock(address account, uint256 firstId, uint256 lastId) external onlyOwner {
        require(totalSupply() < MAX_SUPPLY, "Mint complete already");
        uint256 length = _tokenIds.length;
        for (uint256 i = firstId; i < length && i <= lastId; ) {
            if (!_tokenIds[i]) {
                _mintOne(account, i);
            }

            // can the (solc compiler) devs do something please
            unchecked {
                i++;
            }
        }
    }

    /**
     *   @notice Overrides EIP721 and EIP2981 supportsInterface function
     *   @param interfaceId Supplied by caller this function, as defined in ERC 165
     *   @return supports A boolean saying whether this contract supports the interface or not
     */
    function supportsInterface(bytes4 interfaceId)
        public
        view
        virtual
        override(ERC721, ERC2981, AccessControlEnumerable)
        returns (bool)
    {
        return super.supportsInterface(interfaceId);
    }

    /**
     *   @notice Shows maximum supply
     *   @return uint256 Returns the maximum number of mintable NFTs
     *   @dev The length of the controlling array is one larger than
     */
    function maxSupply() public view returns (uint256) {
        // do not include the zero index - won't mint that
        return _tokenIds.length - 1;
    }

    /**
     *   @notice Shows total supply
     *   @return uint256 Returns total existing supply
     */
    function totalSupply() public view returns (uint256) {
        // total supply is the total minted
        return _mintedSupply;
    }

    /**
     *  @notice Provides the merkle root being used to control the mint
     */
    function merkleRoot() public view returns (bytes32) {
        return _merkleRoot;
    }

    /**
     *  @notice Allows the owner to set a new merkle root
     *  @param newMerkleRoot A merkle root created from a list of approved minters and ids for them
     */
    function setMerkleRoot(bytes32 newMerkleRoot) public onlyOwner {
        _merkleRoot = newMerkleRoot;
    }

    /**
     *  @notice Retrieves the mint start time
     *  @return date The unix time stamp for when the mint starts
     */
    function getGenesisHolderMintStartTime() public view returns (uint256) {
        return _genesisHolderMintStartTime;
    }

    /**
     *  @notice Set the timestamp after which mint opens
     *  @param newMintStart The unix time stamp mint will begin
     */
    function setGenesisHolderMintStartTime(uint256 newMintStart)
        public
        onlyOwner
    {
        _genesisHolderMintStartTime = newMintStart;
    }

    /**
     *  @notice Retrieves the mint end time
     *  @return date The unix time stamp for when the mint ends
     */
    function getGenesisHolderMintEndTime() public view returns (uint256) {
        return _genesisHolderMintEndTime;
    }

    /**
     *  @notice Set the timestamp after which mint stops
     *  @param newMintEnd The unix time stamp mint will ends
     */
    function setGenesisHolderMintEndTime(uint256 newMintEnd) public onlyOwner {
        _genesisHolderMintEndTime = newMintEnd;
    }

    /**
     *   @notice Provides collection metadata URI
     *   @return string The contract metadata URI
     */
    function contractURI() public view returns (string memory) {
        return _contractUri;
    }

    /**
     *   @notice Sets the collection metadata URI
     *   @param newContractUri The URI set for the collection metadata
     */
    function setContractURI(string memory newContractUri) public onlyOwner {
        _contractUri = newContractUri;
    }

    /**
     *   @notice Sets the token metadata base URI
     *   @param uri The baseURI for the token metadata
     *   @dev Make sure to include the trailing slash, as tokenURI adds only tokenID and ".json" to the end
     */
    function setBaseURI(string memory uri) public onlyOwner {
        _baseTokenURI = uri;
    }

    /**
     *   @notice Sets a token as staked
     *   @param tokenId The Token ID to set as staked
     */
    function stake(uint256 tokenId) public onlyRole(OWNER_ROLE) {
        require (_exists(tokenId), "Token ID doesn't exist");
        _staked[tokenId] = true;
    }

    /**
     *   @notice Sets a token as unstaked
     *   @param tokenId The Token ID to set as unstaked
     */
    function unstake(uint256 tokenId) public onlyRole(OWNER_ROLE) {
        require (_exists(tokenId), "Token ID doesn't exist");
        _staked[tokenId] = false;
    }

    /**
     *   @notice gets whether a token is staked
     *   @param tokenId The Token ID to check if staked
     *   @return staked boolean indicating whether token is staked
     */
    function getTokenStaked(uint256 tokenId) public view returns(bool) {
        require (_exists(tokenId), "Token ID doesn't exist");
        return _staked[tokenId];
    }

    /**
     *  @notice Provides the URI for the specific token's metadata
     *  @param tokenId The token ID for which you want the metadata URL
     *  @dev This will only return for existing token IDs, and expects the file to end in .json
     */
    function tokenURI(uint256 tokenId)
        public
        view
        virtual
        override
        returns (string memory)
    {
        require(
            _exists(tokenId),
            "ERC721Metadata: URI query for nonexistent token"
        );

        string memory status = _staked[tokenId] ? "staked" : "standard";
        return
            bytes(_baseTokenURI).length > 0
                ? string(
                    abi.encodePacked(
                        _baseTokenURI,
                        status,
                        "/",
                        Strings.toString(tokenId),
                        ".json"
                    )
                )
                : "";
    }

    /**
     *  @notice Confirms an address, id, and proof will allow minting
     *  @param account The address to use as the first part of a merkle leaf
     *  @param id The address to use as the second part of a merkle leaf
     *  @param proof The merkle proof you want to check is valid
     *  @dev This needs the address, id, proof, and time to be correct. Time check is in internal _verify function
     */
    function canMint(
        address account,
        uint256 id,
        bytes32[] calldata proof
    ) public view returns (bool) {
        return _verify(_leaf(account, id), proof);
    }

    function _transfer(
        address from,
        address to,
        uint256 tokenId
    ) internal override{
        require(_exists(tokenId), "Token Does Not Exist");
        require(_staked[tokenId] != true, "Token is staked, cannot transfer");
        super._transfer(from, to, tokenId);
    }

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

    function _mintOne(address account, uint256 id) internal {
        require(id > 0, "id #0 is invalid");
        require(id < _tokenIds.length, "TokenID too large");
        require(!_tokenIds[id], "Token already minted");
        _safeMint(account, id);
        unchecked {
            _mintedSupply += 1;
        }
        _tokenIds[id] = true;
    }

    function _leaf(address account, uint256 id)
        internal
        pure
        returns (bytes32)
    {
        return keccak256(abi.encodePacked(account, id));
    }

    function _verify(bytes32 leaf, bytes32[] memory proof)
        internal
        view
        returns (bool)
    {
        bool genesisMint = false;
        uint256 currentBlockTime = block.timestamp;

        // check mint has started
        if (currentBlockTime > _genesisHolderMintStartTime) {
            // check mint hasn't ended
            if (currentBlockTime < _genesisHolderMintEndTime) {
                // verify merkle root - only way result can be true
                genesisMint = MerkleProof.verify(proof, _merkleRoot, leaf);
            }
        }

        return (genesisMint);
    }
}

File 2 of 20 : 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 3 of 20 : 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 4 of 20 : AccessControlEnumerable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (access/AccessControlEnumerable.sol)

pragma solidity ^0.8.0;

import "./IAccessControlEnumerable.sol";
import "./AccessControl.sol";
import "../utils/structs/EnumerableSet.sol";

/**
 * @dev Extension of {AccessControl} that allows enumerating the members of each role.
 */
abstract contract AccessControlEnumerable is IAccessControlEnumerable, AccessControl {
    using EnumerableSet for EnumerableSet.AddressSet;

    mapping(bytes32 => EnumerableSet.AddressSet) private _roleMembers;

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

    /**
     * @dev Returns one of the accounts that have `role`. `index` must be a
     * value between 0 and {getRoleMemberCount}, non-inclusive.
     *
     * Role bearers are not sorted in any particular way, and their ordering may
     * change at any point.
     *
     * WARNING: When using {getRoleMember} and {getRoleMemberCount}, make sure
     * you perform all queries on the same block. See the following
     * https://forum.openzeppelin.com/t/iterating-over-elements-on-enumerableset-in-openzeppelin-contracts/2296[forum post]
     * for more information.
     */
    function getRoleMember(bytes32 role, uint256 index) public view virtual override returns (address) {
        return _roleMembers[role].at(index);
    }

    /**
     * @dev Returns the number of accounts that have `role`. Can be used
     * together with {getRoleMember} to enumerate all bearers of a role.
     */
    function getRoleMemberCount(bytes32 role) public view virtual override returns (uint256) {
        return _roleMembers[role].length();
    }

    /**
     * @dev Overload {_grantRole} to track enumerable memberships
     */
    function _grantRole(bytes32 role, address account) internal virtual override {
        super._grantRole(role, account);
        _roleMembers[role].add(account);
    }

    /**
     * @dev Overload {_revokeRole} to track enumerable memberships
     */
    function _revokeRole(bytes32 role, address account) internal virtual override {
        super._revokeRole(role, account);
        _roleMembers[role].remove(account);
    }
}

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

pragma solidity ^0.8.0;

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

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

    function _efficientHash(bytes32 a, bytes32 b) private pure returns (bytes32 value) {
        assembly {
            mstore(0x00, a)
            mstore(0x20, b)
            value := keccak256(0x00, 0x40)
        }
    }
}

File 6 of 20 : Counters.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Counters.sol)

pragma solidity ^0.8.0;

/**
 * @title Counters
 * @author Matt Condon (@shrugs)
 * @dev Provides counters that can only be incremented, decremented or reset. This can be used e.g. to track the number
 * of elements in a mapping, issuing ERC721 ids, or counting request ids.
 *
 * Include with `using Counters for Counters.Counter;`
 */
library Counters {
    struct Counter {
        // This variable should never be directly accessed by users of the library: interactions must be restricted to
        // the library's function. As of Solidity v0.5.2, this cannot be enforced, though there is a proposal to add
        // this feature: see https://github.com/ethereum/solidity/issues/4637
        uint256 _value; // default: 0
    }

    function current(Counter storage counter) internal view returns (uint256) {
        return counter._value;
    }

    function increment(Counter storage counter) internal {
        unchecked {
            counter._value += 1;
        }
    }

    function decrement(Counter storage counter) internal {
        uint256 value = counter._value;
        require(value > 0, "Counter: decrement overflow");
        unchecked {
            counter._value = value - 1;
        }
    }

    function reset(Counter storage counter) internal {
        counter._value = 0;
    }
}

File 7 of 20 : 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 8 of 20 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (access/Ownable.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

File 10 of 20 : 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 11 of 20 : 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 12 of 20 : 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 13 of 20 : 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 14 of 20 : 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 15 of 20 : 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 16 of 20 : 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 17 of 20 : IAccessControlEnumerable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (access/IAccessControlEnumerable.sol)

pragma solidity ^0.8.0;

import "./IAccessControl.sol";

/**
 * @dev External interface of AccessControlEnumerable declared to support ERC165 detection.
 */
interface IAccessControlEnumerable is IAccessControl {
    /**
     * @dev Returns one of the accounts that have `role`. `index` must be a
     * value between 0 and {getRoleMemberCount}, non-inclusive.
     *
     * Role bearers are not sorted in any particular way, and their ordering may
     * change at any point.
     *
     * WARNING: When using {getRoleMember} and {getRoleMemberCount}, make sure
     * you perform all queries on the same block. See the following
     * https://forum.openzeppelin.com/t/iterating-over-elements-on-enumerableset-in-openzeppelin-contracts/2296[forum post]
     * for more information.
     */
    function getRoleMember(bytes32 role, uint256 index) external view returns (address);

    /**
     * @dev Returns the number of accounts that have `role`. Can be used
     * together with {getRoleMember} to enumerate all bearers of a role.
     */
    function getRoleMemberCount(bytes32 role) external view returns (uint256);
}

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

pragma solidity ^0.8.0;

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

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

    mapping(bytes32 => RoleData) private _roles;

    bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00;

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

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

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

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

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

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

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

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

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

        _revokeRole(role, account);
    }

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

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

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

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

File 19 of 20 : EnumerableSet.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (utils/structs/EnumerableSet.sol)

pragma solidity ^0.8.0;

/**
 * @dev Library for managing
 * https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive
 * types.
 *
 * Sets have the following properties:
 *
 * - Elements are added, removed, and checked for existence in constant time
 * (O(1)).
 * - Elements are enumerated in O(n). No guarantees are made on the ordering.
 *
 * ```
 * contract Example {
 *     // Add the library methods
 *     using EnumerableSet for EnumerableSet.AddressSet;
 *
 *     // Declare a set state variable
 *     EnumerableSet.AddressSet private mySet;
 * }
 * ```
 *
 * As of v3.3.0, sets of type `bytes32` (`Bytes32Set`), `address` (`AddressSet`)
 * and `uint256` (`UintSet`) are supported.
 */
library EnumerableSet {
    // To implement this library for multiple types with as little code
    // repetition as possible, we write it in terms of a generic Set type with
    // bytes32 values.
    // The Set implementation uses private functions, and user-facing
    // implementations (such as AddressSet) are just wrappers around the
    // underlying Set.
    // This means that we can only create new EnumerableSets for types that fit
    // in bytes32.

    struct Set {
        // Storage of set values
        bytes32[] _values;
        // Position of the value in the `values` array, plus 1 because index 0
        // means a value is not in the set.
        mapping(bytes32 => uint256) _indexes;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function _add(Set storage set, bytes32 value) private returns (bool) {
        if (!_contains(set, value)) {
            set._values.push(value);
            // The value is stored at length-1, but we add 1 to all indexes
            // and use 0 as a sentinel value
            set._indexes[value] = set._values.length;
            return true;
        } else {
            return false;
        }
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function _remove(Set storage set, bytes32 value) private returns (bool) {
        // We read and store the value's index to prevent multiple reads from the same storage slot
        uint256 valueIndex = set._indexes[value];

        if (valueIndex != 0) {
            // Equivalent to contains(set, value)
            // To delete an element from the _values array in O(1), we swap the element to delete with the last one in
            // the array, and then remove the last element (sometimes called as 'swap and pop').
            // This modifies the order of the array, as noted in {at}.

            uint256 toDeleteIndex = valueIndex - 1;
            uint256 lastIndex = set._values.length - 1;

            if (lastIndex != toDeleteIndex) {
                bytes32 lastValue = set._values[lastIndex];

                // Move the last value to the index where the value to delete is
                set._values[toDeleteIndex] = lastValue;
                // Update the index for the moved value
                set._indexes[lastValue] = valueIndex; // Replace lastValue's index to valueIndex
            }

            // Delete the slot where the moved value was stored
            set._values.pop();

            // Delete the index for the deleted slot
            delete set._indexes[value];

            return true;
        } else {
            return false;
        }
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function _contains(Set storage set, bytes32 value) private view returns (bool) {
        return set._indexes[value] != 0;
    }

    /**
     * @dev Returns the number of values on the set. O(1).
     */
    function _length(Set storage set) private view returns (uint256) {
        return set._values.length;
    }

    /**
     * @dev Returns the value stored at position `index` in the set. O(1).
     *
     * Note that there are no guarantees on the ordering of values inside the
     * array, and it may change when more values are added or removed.
     *
     * Requirements:
     *
     * - `index` must be strictly less than {length}.
     */
    function _at(Set storage set, uint256 index) private view returns (bytes32) {
        return set._values[index];
    }

    /**
     * @dev Return the entire set in an array
     *
     * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
     * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
     * this function has an unbounded cost, and using it as part of a state-changing function may render the function
     * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
     */
    function _values(Set storage set) private view returns (bytes32[] memory) {
        return set._values;
    }

    // Bytes32Set

    struct Bytes32Set {
        Set _inner;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function add(Bytes32Set storage set, bytes32 value) internal returns (bool) {
        return _add(set._inner, value);
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function remove(Bytes32Set storage set, bytes32 value) internal returns (bool) {
        return _remove(set._inner, value);
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function contains(Bytes32Set storage set, bytes32 value) internal view returns (bool) {
        return _contains(set._inner, value);
    }

    /**
     * @dev Returns the number of values in the set. O(1).
     */
    function length(Bytes32Set storage set) internal view returns (uint256) {
        return _length(set._inner);
    }

    /**
     * @dev Returns the value stored at position `index` in the set. O(1).
     *
     * Note that there are no guarantees on the ordering of values inside the
     * array, and it may change when more values are added or removed.
     *
     * Requirements:
     *
     * - `index` must be strictly less than {length}.
     */
    function at(Bytes32Set storage set, uint256 index) internal view returns (bytes32) {
        return _at(set._inner, index);
    }

    /**
     * @dev Return the entire set in an array
     *
     * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
     * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
     * this function has an unbounded cost, and using it as part of a state-changing function may render the function
     * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
     */
    function values(Bytes32Set storage set) internal view returns (bytes32[] memory) {
        return _values(set._inner);
    }

    // AddressSet

    struct AddressSet {
        Set _inner;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function add(AddressSet storage set, address value) internal returns (bool) {
        return _add(set._inner, bytes32(uint256(uint160(value))));
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function remove(AddressSet storage set, address value) internal returns (bool) {
        return _remove(set._inner, bytes32(uint256(uint160(value))));
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function contains(AddressSet storage set, address value) internal view returns (bool) {
        return _contains(set._inner, bytes32(uint256(uint160(value))));
    }

    /**
     * @dev Returns the number of values in the set. O(1).
     */
    function length(AddressSet storage set) internal view returns (uint256) {
        return _length(set._inner);
    }

    /**
     * @dev Returns the value stored at position `index` in the set. O(1).
     *
     * Note that there are no guarantees on the ordering of values inside the
     * array, and it may change when more values are added or removed.
     *
     * Requirements:
     *
     * - `index` must be strictly less than {length}.
     */
    function at(AddressSet storage set, uint256 index) internal view returns (address) {
        return address(uint160(uint256(_at(set._inner, index))));
    }

    /**
     * @dev Return the entire set in an array
     *
     * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
     * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
     * this function has an unbounded cost, and using it as part of a state-changing function may render the function
     * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
     */
    function values(AddressSet storage set) internal view returns (address[] memory) {
        bytes32[] memory store = _values(set._inner);
        address[] memory result;

        assembly {
            result := store
        }

        return result;
    }

    // UintSet

    struct UintSet {
        Set _inner;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function add(UintSet storage set, uint256 value) internal returns (bool) {
        return _add(set._inner, bytes32(value));
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function remove(UintSet storage set, uint256 value) internal returns (bool) {
        return _remove(set._inner, bytes32(value));
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function contains(UintSet storage set, uint256 value) internal view returns (bool) {
        return _contains(set._inner, bytes32(value));
    }

    /**
     * @dev Returns the number of values on the set. O(1).
     */
    function length(UintSet storage set) internal view returns (uint256) {
        return _length(set._inner);
    }

    /**
     * @dev Returns the value stored at position `index` in the set. O(1).
     *
     * Note that there are no guarantees on the ordering of values inside the
     * array, and it may change when more values are added or removed.
     *
     * Requirements:
     *
     * - `index` must be strictly less than {length}.
     */
    function at(UintSet storage set, uint256 index) internal view returns (uint256) {
        return uint256(_at(set._inner, index));
    }

    /**
     * @dev Return the entire set in an array
     *
     * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
     * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
     * this function has an unbounded cost, and using it as part of a state-changing function may render the function
     * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
     */
    function values(UintSet storage set) internal view returns (uint256[] memory) {
        bytes32[] memory store = _values(set._inner);
        uint256[] memory result;

        assembly {
            result := store
        }

        return result;
    }
}

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"symbol","type":"string"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"previousAdminRole","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"newAdminRole","type":"bytes32"}],"name":"RoleAdminChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleGranted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleRevoked","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"OWNER_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"}],"name":"airdropMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"accounts","type":"address[]"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"}],"name":"airdropMintBatch","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"bytes32[]","name":"proof","type":"bytes32[]"}],"name":"canMint","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"contractURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getGenesisHolderMintEndTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getGenesisHolderMintStartTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleAdmin","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"getRoleMember","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleMemberCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getTokenStaked","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"grantRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"hasRole","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"isMinted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"merkleRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32[]","name":"proof","type":"bytes32[]"},{"internalType":"uint256","name":"id","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"firstId","type":"uint256"},{"internalType":"uint256","name":"lastId","type":"uint256"}],"name":"ownerMintBlock","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"renounceRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"revokeRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"uint256","name":"_salePrice","type":"uint256"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"","type":"address"},{"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":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"uri","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"newContractUri","type":"string"}],"name":"setContractURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"receiver","type":"address"},{"internalType":"uint96","name":"feeNumerator","type":"uint96"}],"name":"setDefaultRoyalty","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newMintEnd","type":"uint256"}],"name":"setGenesisHolderMintEndTime","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newMintStart","type":"uint256"}],"name":"setGenesisHolderMintStartTime","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"newMerkleRoot","type":"bytes32"}],"name":"setMerkleRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"stake","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"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"unstake","outputs":[],"stateMutability":"nonpayable","type":"function"}]

61010060405260556080818152906200351e60a03980516200002a91600c9160209091019062000420565b50604051806080016040528060548152602001620035736054913980516200005b91600d9160209091019062000420565b507503e811d18ea67e081aa239430093808b2721b87ca7336043553480156200008357600080fd5b50604051620035c7380380620035c7833981016040819052620000a69162000593565b815182908290620000bf90600290602085019062000420565b508051620000d590600390602084019062000420565b505050620000f2620000ec6200015c60201b60201c565b62000160565b6043546200011b906001600160a01b03811690600160a01b90046001600160601b0316620001b2565b62000128600033620002b7565b620001547fb19546dff01e856fb3f010c267a7b1c60363cf8a4664e21cc89c26224620214e33620002b7565b50506200063a565b3390565b600a80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6127106001600160601b0382161115620002265760405162461bcd60e51b815260206004820152602a60248201527f455243323938313a20726f79616c7479206665652077696c6c206578636565646044820152692073616c65507269636560b01b60648201526084015b60405180910390fd5b6001600160a01b0382166200027e5760405162461bcd60e51b815260206004820152601960248201527f455243323938313a20696e76616c69642072656365697665720000000000000060448201526064016200021d565b604080518082019091526001600160a01b039092168083526001600160601b039091166020909201829052600160a01b90910217600055565b620002c38282620002c7565b5050565b620002de82826200030a60201b6200137d1760201c565b60008281526009602090815260409091206200030591839062001403620003ae821b17901c565b505050565b60008281526008602090815260408083206001600160a01b038516845290915290205460ff16620002c35760008281526008602090815260408083206001600160a01b03851684529091529020805460ff191660011790556200036a3390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b6000620003c5836001600160a01b038416620003ce565b90505b92915050565b60008181526001830160205260408120546200041757508154600181810184556000848152602080822090930184905584548482528286019093526040902091909155620003c8565b506000620003c8565b8280546200042e90620005fd565b90600052602060002090601f0160209004810192826200045257600085556200049d565b82601f106200046d57805160ff19168380011785556200049d565b828001600101855582156200049d579182015b828111156200049d57825182559160200191906001019062000480565b50620004ab929150620004af565b5090565b5b80821115620004ab5760008155600101620004b0565b634e487b7160e01b600052604160045260246000fd5b600082601f830112620004ee57600080fd5b81516001600160401b03808211156200050b576200050b620004c6565b604051601f8301601f19908116603f01168101908282118183101715620005365762000536620004c6565b816040528381526020925086838588010111156200055357600080fd5b600091505b8382101562000577578582018301518183018401529082019062000558565b83821115620005895760008385830101525b9695505050505050565b60008060408385031215620005a757600080fd5b82516001600160401b0380821115620005bf57600080fd5b620005cd86838701620004dc565b93506020850151915080821115620005e457600080fd5b50620005f385828601620004dc565b9150509250929050565b600181811c908216806200061257607f821691505b602082108114156200063457634e487b7160e01b600052602260045260246000fd5b50919050565b612ed4806200064a6000396000f3fe608060405234801561001057600080fd5b50600436106102a05760003560e01c806373096cfa11610167578063b88d4fde116100ce578063d5abeb0111610087578063d5abeb01146105df578063dbd6cb0d146105e7578063e58378bb146105ef578063e8a3d48514610616578063e985e9c51461061e578063f2fde38b1461065a57600080fd5b8063b88d4fde1461056d578063c68861c114610580578063c87b56dd14610593578063ca15c873146105a6578063cda65092146105b9578063d547741f146105cc57600080fd5b8063921211ea11610120578063921211ea14610511578063938e3d7b1461052457806395d89b4114610537578063a217fddf1461053f578063a22cb46514610547578063a694fc3a1461055a57600080fd5b806373096cfa146104a15780637cb64759146104b45780637eaa89e4146104c75780638da5cb5b146104da5780639010d07c146104eb57806391d14854146104fe57600080fd5b80632f2ff15d1161020b57806345de0d9b116101c457806345de0d9b14610445578063549b025b1461045857806355f804b3146104605780636352211e1461047357806370a0823114610486578063715018a61461049957600080fd5b80632f2ff15d146103dd57806332cb6b0c146103f057806333c41a90146103f957806336568abe1461040c57806341d527c21461041f57806342842e0e1461043257600080fd5b806322ad06701161025d57806322ad06701461034757806323b872dd1461035a578063248a9ca31461036d5780632a55205a146103905780632e17de78146103c25780632eb4a7ab146103d557600080fd5b806301ffc9a7146102a557806304634d8d146102cd57806306fdde03146102e2578063081812fc146102f7578063095ea7b31461032257806318160ddd14610335575b600080fd5b6102b86102b33660046125ac565b61066d565b60405190151581526020015b60405180910390f35b6102e06102db3660046125e5565b61067e565b005b6102ea6106bf565b6040516102c49190612680565b61030a610305366004612693565b610751565b6040516001600160a01b0390911681526020016102c4565b6102e06103303660046126ac565b6107d9565b600e545b6040519081526020016102c4565b6102e06103553660046126ac565b6108ef565b6102e06103683660046126d6565b610923565b61033961037b366004612693565b60009081526008602052604090206001015490565b6103a361039e366004612712565b610954565b604080516001600160a01b0390931683526020830191909152016102c4565b6102e06103d0366004612693565b610a02565b600b54610339565b6102e06103eb366004612734565b610a8a565b61033961030981565b6102b8610407366004612693565b610aaf565b6102e061041a366004612734565b610ae1565b6102e061042d366004612693565b610b5b565b6102e06104403660046126d6565b610b8a565b6102e06104533660046127a5565b610ba5565b601054610339565b6102e061046e36600461287d565b610c3f565b61030a610481366004612693565b610c7c565b6103396104943660046128c6565b610cf3565b6102e0610d7a565b6102e06104af366004612693565b610db0565b6102e06104c2366004612693565b610ddf565b6102b86104d5366004612693565b610e0e565b600a546001600160a01b031661030a565b61030a6104f9366004612712565b610e49565b6102b861050c366004612734565b610e68565b6102b861051f3660046128e1565b610e93565b6102e061053236600461287d565b610ee6565b6102ea610f23565b610339600081565b6102e061055536600461293b565b610f32565b6102e0610568366004612693565b610f3d565b6102e061057b36600461296c565b610fa2565b6102e061058e3660046129e8565b610fd4565b6102ea6105a1366004612693565b611062565b6103396105b4366004612693565b6111a8565b6102e06105c7366004612a48565b6111bf565b6102e06105da366004612734565b61129a565b6103396112bf565b600f54610339565b6103397fb19546dff01e856fb3f010c267a7b1c60363cf8a4664e21cc89c26224620214e81565b6102ea6112d3565b6102b861062c366004612a7b565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b6102e06106683660046128c6565b6112e2565b600061067882611418565b92915050565b600a546001600160a01b031633146106b15760405162461bcd60e51b81526004016106a890612aa5565b60405180910390fd5b6106bb828261143d565b5050565b6060600280546106ce90612ada565b80601f01602080910402602001604051908101604052809291908181526020018280546106fa90612ada565b80156107475780601f1061071c57610100808354040283529160200191610747565b820191906000526020600020905b81548152906001019060200180831161072a57829003601f168201915b5050505050905090565b600061075c8261153a565b6107bd5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084016106a8565b506000908152600660205260409020546001600160a01b031690565b60006107e482610c7c565b9050806001600160a01b0316836001600160a01b031614156108525760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b60648201526084016106a8565b336001600160a01b038216148061086e575061086e813361062c565b6108e05760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c000000000000000060648201526084016106a8565b6108ea8383611557565b505050565b600a546001600160a01b031633146109195760405162461bcd60e51b81526004016106a890612aa5565b6106bb82826115c5565b61092d33826116e5565b6109495760405162461bcd60e51b81526004016106a890612b15565b6108ea8383836117ce565b60008281526001602090815260408083208151808301909252546001600160a01b038116808352600160a01b9091046001600160601b03169282019290925282916109c95750604080518082019091526000546001600160a01b0381168252600160a01b90046001600160601b031660208201525b6020810151600090612710906109e8906001600160601b031687612b7c565b6109f29190612bb1565b91519350909150505b9250929050565b7fb19546dff01e856fb3f010c267a7b1c60363cf8a4664e21cc89c26224620214e610a2c816118a3565b610a358261153a565b610a515760405162461bcd60e51b81526004016106a890612bc5565b6000602a8361030a8110610a6757610a67612bf5565b602091828204019190066101000a81548160ff0219169083151502179055505050565b600082815260086020526040902060010154610aa5816118a3565b6108ea83836118ad565b600060118261030a8110610ac557610ac5612bf5565b602081049091015460ff601f9092166101000a90041692915050565b6001600160a01b0381163314610b515760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b60648201526084016106a8565b6106bb82826118cf565b600a546001600160a01b03163314610b855760405162461bcd60e51b81526004016106a890612aa5565b601055565b6108ea83838360405180602001604052806000815250610fa2565b33610bec610bb382846118f1565b85858080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525061193892505050565b610c2f5760405162461bcd60e51b815260206004820152601460248201527324b73b30b634b21036b2b935b63290383937b7b360611b60448201526064016106a8565b610c3981836115c5565b50505050565b600a546001600160a01b03163314610c695760405162461bcd60e51b81526004016106a890612aa5565b80516106bb90600c9060208401906124fd565b6000818152600460205260408120546001600160a01b0316806106785760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b60648201526084016106a8565b60006001600160a01b038216610d5e5760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b60648201526084016106a8565b506001600160a01b031660009081526005602052604090205490565b600a546001600160a01b03163314610da45760405162461bcd60e51b81526004016106a890612aa5565b610dae600061196b565b565b600a546001600160a01b03163314610dda5760405162461bcd60e51b81526004016106a890612aa5565b600f55565b600a546001600160a01b03163314610e095760405162461bcd60e51b81526004016106a890612aa5565b600b55565b6000610e198261153a565b610e355760405162461bcd60e51b81526004016106a890612bc5565b602a8261030a8110610ac557610ac5612bf5565b6000828152600960205260408120610e6190836119bd565b9392505050565b60009182526008602090815260408084206001600160a01b0393909316845291905290205460ff1690565b6000610edb610ea286866118f1565b84848080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525061193892505050565b90505b949350505050565b600a546001600160a01b03163314610f105760405162461bcd60e51b81526004016106a890612aa5565b80516106bb90600d9060208401906124fd565b6060600380546106ce90612ada565b6106bb3383836119c9565b7fb19546dff01e856fb3f010c267a7b1c60363cf8a4664e21cc89c26224620214e610f67816118a3565b610f708261153a565b610f8c5760405162461bcd60e51b81526004016106a890612bc5565b6001602a8361030a8110610a6757610a67612bf5565b610fac33836116e5565b610fc85760405162461bcd60e51b81526004016106a890612b15565b610c3984848484611a98565b600a546001600160a01b03163314610ffe5760405162461bcd60e51b81526004016106a890612aa5565b8260005b8181101561105a5761105286868381811061101f5761101f612bf5565b905060200201602081019061103491906128c6565b85858481811061104657611046612bf5565b905060200201356115c5565b600101611002565b505050505050565b606061106d8261153a565b6110d15760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b60648201526084016106a8565b6000602a8361030a81106110e7576110e7612bf5565b602081049091015460ff601f9092166101000a90041661112757604051806040016040528060088152602001671cdd185b99185c9960c21b815250611147565b604051806040016040528060068152602001651cdd185ad95960d21b8152505b90506000600c805461115890612ada565b9050116111745760405180602001604052806000815250610e61565b600c8161118085611acb565b60405160200161119293929190612c27565b6040516020818303038152906040529392505050565b600081815260096020526040812061067890611bc9565b600a546001600160a01b031633146111e95760405162461bcd60e51b81526004016106a890612aa5565b6103096111f5600e5490565b1061123a5760405162461bcd60e51b81526020600482015260156024820152744d696e7420636f6d706c65746520616c726561647960581b60448201526064016106a8565b61030a825b818110801561124e5750828111155b156112935760118161030a811061126757611267612bf5565b602081049091015460ff601f9092166101000a90041661128b5761128b85826115c5565b60010161123f565b5050505050565b6000828152600860205260409020600101546112b5816118a3565b6108ea83836118cf565b60006112ce600161030a612cfc565b905090565b6060600d80546106ce90612ada565b600a546001600160a01b0316331461130c5760405162461bcd60e51b81526004016106a890612aa5565b6001600160a01b0381166113715760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016106a8565b61137a8161196b565b50565b6113878282610e68565b6106bb5760008281526008602090815260408083206001600160a01b03851684529091529020805460ff191660011790556113bf3390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b6000610e61836001600160a01b038416611bd3565b60006001600160e01b03198216635a05180f60e01b1480610678575061067882611c22565b6127106001600160601b03821611156114ab5760405162461bcd60e51b815260206004820152602a60248201527f455243323938313a20726f79616c7479206665652077696c6c206578636565646044820152692073616c65507269636560b01b60648201526084016106a8565b6001600160a01b0382166115015760405162461bcd60e51b815260206004820152601960248201527f455243323938313a20696e76616c69642072656365697665720000000000000060448201526064016106a8565b604080518082019091526001600160a01b039092168083526001600160601b039091166020909201829052600160a01b90910217600055565b6000908152600460205260409020546001600160a01b0316151590565b600081815260066020526040902080546001600160a01b0319166001600160a01b038416908117909155819061158c82610c7c565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b600081116116085760405162461bcd60e51b815260206004820152601060248201526f1a590808cc081a5cc81a5b9d985b1a5960821b60448201526064016106a8565b61030a811061164d5760405162461bcd60e51b8152602060048201526011602482015270546f6b656e494420746f6f206c6172676560781b60448201526064016106a8565b60118161030a811061166157611661612bf5565b602081049091015460ff601f9092166101000a900416156116bb5760405162461bcd60e51b8152602060048201526014602482015273151bdad95b88185b1c9958591e481b5a5b9d195960621b60448201526064016106a8565b6116c58282611c47565b600e8054600190810190915560118261030a8110610a6757610a67612bf5565b60006116f08261153a565b6117515760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084016106a8565b600061175c83610c7c565b9050806001600160a01b0316846001600160a01b031614806117a357506001600160a01b0380821660009081526007602090815260408083209388168352929052205460ff165b80610ede5750836001600160a01b03166117bc84610751565b6001600160a01b031614949350505050565b6117d78161153a565b61181a5760405162461bcd60e51b8152602060048201526014602482015273151bdad95b88111bd95cc8139bdd08115e1a5cdd60621b60448201526064016106a8565b602a8161030a811061182e5761182e612bf5565b602091828204019190069054906101000a900460ff1615156001151514156118985760405162461bcd60e51b815260206004820181905260248201527f546f6b656e206973207374616b65642c2063616e6e6f74207472616e7366657260448201526064016106a8565b6108ea838383611c61565b61137a8133611dfd565b6118b7828261137d565b60008281526009602052604090206108ea9082611403565b6118d98282611e61565b60008281526009602052604090206108ea9082611ec8565b6040516bffffffffffffffffffffffff19606084901b1660208201526034810182905260009060540160405160208183030381529060405280519060200120905092915050565b600f5460009081904290811115611963576010548110156119635761196084600b5487611edd565b91505b509392505050565b600a80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6000610e618383611ef3565b816001600160a01b0316836001600160a01b03161415611a2b5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c65720000000000000060448201526064016106a8565b6001600160a01b03838116600081815260076020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b611aa38484846117ce565b611aaf84848484611f1d565b610c395760405162461bcd60e51b81526004016106a890612d13565b606081611aef5750506040805180820190915260018152600360fc1b602082015290565b8160005b8115611b195780611b0381612d65565b9150611b129050600a83612bb1565b9150611af3565b60008167ffffffffffffffff811115611b3457611b346127f1565b6040519080825280601f01601f191660200182016040528015611b5e576020820181803683370190505b5090505b8415610ede57611b73600183612cfc565b9150611b80600a86612d80565b611b8b906030612d94565b60f81b818381518110611ba057611ba0612bf5565b60200101906001600160f81b031916908160001a905350611bc2600a86612bb1565b9450611b62565b6000610678825490565b6000818152600183016020526040812054611c1a57508154600181810184556000848152602080822090930184905584548482528286019093526040902091909155610678565b506000610678565b60006001600160e01b03198216637965db0b60e01b1480610678575061067882612027565b6106bb828260405180602001604052806000815250612067565b826001600160a01b0316611c7482610c7c565b6001600160a01b031614611cd85760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201526437bbb732b960d91b60648201526084016106a8565b6001600160a01b038216611d3a5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b60648201526084016106a8565b611d45600082611557565b6001600160a01b0383166000908152600560205260408120805460019290611d6e908490612cfc565b90915550506001600160a01b0382166000908152600560205260408120805460019290611d9c908490612d94565b909155505060008181526004602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b611e078282610e68565b6106bb57611e1f816001600160a01b0316601461209a565b611e2a83602061209a565b604051602001611e3b929190612dac565b60408051601f198184030181529082905262461bcd60e51b82526106a891600401612680565b611e6b8282610e68565b156106bb5760008281526008602090815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b6000610e61836001600160a01b038416612236565b600082611eea8584612329565b14949350505050565b6000826000018281548110611f0a57611f0a612bf5565b9060005260206000200154905092915050565b60006001600160a01b0384163b1561201f57604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290611f61903390899088908890600401612e21565b602060405180830381600087803b158015611f7b57600080fd5b505af1925050508015611fab575060408051601f3d908101601f19168201909252611fa891810190612e54565b60015b612005573d808015611fd9576040519150601f19603f3d011682016040523d82523d6000602084013e611fde565b606091505b508051611ffd5760405162461bcd60e51b81526004016106a890612d13565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050610ede565b506001610ede565b60006001600160e01b031982166380ac58cd60e01b148061205857506001600160e01b03198216635b5e139f60e01b145b80610678575061067882612395565b61207183836123ca565b61207e6000848484611f1d565b6108ea5760405162461bcd60e51b81526004016106a890612d13565b606060006120a9836002612b7c565b6120b4906002612d94565b67ffffffffffffffff8111156120cc576120cc6127f1565b6040519080825280601f01601f1916602001820160405280156120f6576020820181803683370190505b509050600360fc1b8160008151811061211157612111612bf5565b60200101906001600160f81b031916908160001a905350600f60fb1b8160018151811061214057612140612bf5565b60200101906001600160f81b031916908160001a9053506000612164846002612b7c565b61216f906001612d94565b90505b60018111156121e7576f181899199a1a9b1b9c1cb0b131b232b360811b85600f16601081106121a3576121a3612bf5565b1a60f81b8282815181106121b9576121b9612bf5565b60200101906001600160f81b031916908160001a90535060049490941c936121e081612e71565b9050612172565b508315610e615760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e7460448201526064016106a8565b6000818152600183016020526040812054801561231f57600061225a600183612cfc565b855490915060009061226e90600190612cfc565b90508181146122d357600086600001828154811061228e5761228e612bf5565b90600052602060002001549050808760000184815481106122b1576122b1612bf5565b6000918252602080832090910192909255918252600188019052604090208390555b85548690806122e4576122e4612e88565b600190038181906000526020600020016000905590558560010160008681526020019081526020016000206000905560019350505050610678565b6000915050610678565b600081815b845181101561196357600085828151811061234b5761234b612bf5565b602002602001015190508083116123715760008381526020829052604090209250612382565b600081815260208490526040902092505b508061238d81612d65565b91505061232e565b60006001600160e01b0319821663152a902d60e11b148061067857506301ffc9a760e01b6001600160e01b0319831614610678565b6001600160a01b0382166124205760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f206164647265737360448201526064016106a8565b6124298161153a565b156124765760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e7465640000000060448201526064016106a8565b6001600160a01b038216600090815260056020526040812080546001929061249f908490612d94565b909155505060008181526004602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b82805461250990612ada565b90600052602060002090601f01602090048101928261252b5760008555612571565b82601f1061254457805160ff1916838001178555612571565b82800160010185558215612571579182015b82811115612571578251825591602001919060010190612556565b5061257d929150612581565b5090565b5b8082111561257d5760008155600101612582565b6001600160e01b03198116811461137a57600080fd5b6000602082840312156125be57600080fd5b8135610e6181612596565b80356001600160a01b03811681146125e057600080fd5b919050565b600080604083850312156125f857600080fd5b612601836125c9565b915060208301356001600160601b038116811461261d57600080fd5b809150509250929050565b60005b8381101561264357818101518382015260200161262b565b83811115610c395750506000910152565b6000815180845261266c816020860160208601612628565b601f01601f19169290920160200192915050565b602081526000610e616020830184612654565b6000602082840312156126a557600080fd5b5035919050565b600080604083850312156126bf57600080fd5b6126c8836125c9565b946020939093013593505050565b6000806000606084860312156126eb57600080fd5b6126f4846125c9565b9250612702602085016125c9565b9150604084013590509250925092565b6000806040838503121561272557600080fd5b50508035926020909101359150565b6000806040838503121561274757600080fd5b82359150612757602084016125c9565b90509250929050565b60008083601f84011261277257600080fd5b50813567ffffffffffffffff81111561278a57600080fd5b6020830191508360208260051b85010111156109fb57600080fd5b6000806000604084860312156127ba57600080fd5b833567ffffffffffffffff8111156127d157600080fd5b6127dd86828701612760565b909790965060209590950135949350505050565b634e487b7160e01b600052604160045260246000fd5b600067ffffffffffffffff80841115612822576128226127f1565b604051601f8501601f19908116603f0116810190828211818310171561284a5761284a6127f1565b8160405280935085815286868601111561286357600080fd5b858560208301376000602087830101525050509392505050565b60006020828403121561288f57600080fd5b813567ffffffffffffffff8111156128a657600080fd5b8201601f810184136128b757600080fd5b610ede84823560208401612807565b6000602082840312156128d857600080fd5b610e61826125c9565b600080600080606085870312156128f757600080fd5b612900856125c9565b935060208501359250604085013567ffffffffffffffff81111561292357600080fd5b61292f87828801612760565b95989497509550505050565b6000806040838503121561294e57600080fd5b612957836125c9565b91506020830135801515811461261d57600080fd5b6000806000806080858703121561298257600080fd5b61298b856125c9565b9350612999602086016125c9565b925060408501359150606085013567ffffffffffffffff8111156129bc57600080fd5b8501601f810187136129cd57600080fd5b6129dc87823560208401612807565b91505092959194509250565b600080600080604085870312156129fe57600080fd5b843567ffffffffffffffff80821115612a1657600080fd5b612a2288838901612760565b90965094506020870135915080821115612a3b57600080fd5b5061292f87828801612760565b600080600060608486031215612a5d57600080fd5b612a66846125c9565b95602085013595506040909401359392505050565b60008060408385031215612a8e57600080fd5b612a97836125c9565b9150612757602084016125c9565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b600181811c90821680612aee57607f821691505b60208210811415612b0f57634e487b7160e01b600052602260045260246000fd5b50919050565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b634e487b7160e01b600052601160045260246000fd5b6000816000190483118215151615612b9657612b96612b66565b500290565b634e487b7160e01b600052601260045260246000fd5b600082612bc057612bc0612b9b565b500490565b602080825260169082015275151bdad95b88125108191bd95cdb89dd08195e1a5cdd60521b604082015260600190565b634e487b7160e01b600052603260045260246000fd5b60008151612c1d818560208601612628565b9290920192915050565b600080855481600182811c915080831680612c4357607f831692505b6020808410821415612c6357634e487b7160e01b86526022600452602486fd5b818015612c775760018114612c8857612cb5565b60ff19861689528489019650612cb5565b60008c81526020902060005b86811015612cad5781548b820152908501908301612c94565b505084890196505b505050505050612cf2612ce1612cdb612cce8489612c0b565b602f60f81b815260010190565b86612c0b565b64173539b7b760d91b815260050190565b9695505050505050565b600082821015612d0e57612d0e612b66565b500390565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6000600019821415612d7957612d79612b66565b5060010190565b600082612d8f57612d8f612b9b565b500690565b60008219821115612da757612da7612b66565b500190565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000815260008351612de4816017850160208801612628565b7001034b99036b4b9b9b4b733903937b6329607d1b6017918401918201528351612e15816028840160208801612628565b01602801949350505050565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090612cf290830184612654565b600060208284031215612e6657600080fd5b8151610e6181612596565b600081612e8057612e80612b66565b506000190190565b634e487b7160e01b600052603160045260246000fdfea26469706673582212205526ecf67d35b3f9a30d4eb4ac27b574eb0546d0ac913d0e8093d791c261800864736f6c6343000809003368747470733a2f2f70726f6261626c79302e6d7970696e6174612e636c6f75642f697066732f516d5a356969534a324c474d4e57486a344c74574e4172534574315a3431585555426e3351794a4b7975683872322f68747470733a2f2f70726f6261626c79302e6d7970696e6174612e636c6f75642f697066732f516d5a4a78734a39786b394468354a4666367a4c63375a44436f794a374d7a35446a4b4e4732365467656368466d00000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000001c50726f6261626c79204e6f7468696e672047656e65736973204e46540000000000000000000000000000000000000000000000000000000000000000000000044f47504e00000000000000000000000000000000000000000000000000000000

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106102a05760003560e01c806373096cfa11610167578063b88d4fde116100ce578063d5abeb0111610087578063d5abeb01146105df578063dbd6cb0d146105e7578063e58378bb146105ef578063e8a3d48514610616578063e985e9c51461061e578063f2fde38b1461065a57600080fd5b8063b88d4fde1461056d578063c68861c114610580578063c87b56dd14610593578063ca15c873146105a6578063cda65092146105b9578063d547741f146105cc57600080fd5b8063921211ea11610120578063921211ea14610511578063938e3d7b1461052457806395d89b4114610537578063a217fddf1461053f578063a22cb46514610547578063a694fc3a1461055a57600080fd5b806373096cfa146104a15780637cb64759146104b45780637eaa89e4146104c75780638da5cb5b146104da5780639010d07c146104eb57806391d14854146104fe57600080fd5b80632f2ff15d1161020b57806345de0d9b116101c457806345de0d9b14610445578063549b025b1461045857806355f804b3146104605780636352211e1461047357806370a0823114610486578063715018a61461049957600080fd5b80632f2ff15d146103dd57806332cb6b0c146103f057806333c41a90146103f957806336568abe1461040c57806341d527c21461041f57806342842e0e1461043257600080fd5b806322ad06701161025d57806322ad06701461034757806323b872dd1461035a578063248a9ca31461036d5780632a55205a146103905780632e17de78146103c25780632eb4a7ab146103d557600080fd5b806301ffc9a7146102a557806304634d8d146102cd57806306fdde03146102e2578063081812fc146102f7578063095ea7b31461032257806318160ddd14610335575b600080fd5b6102b86102b33660046125ac565b61066d565b60405190151581526020015b60405180910390f35b6102e06102db3660046125e5565b61067e565b005b6102ea6106bf565b6040516102c49190612680565b61030a610305366004612693565b610751565b6040516001600160a01b0390911681526020016102c4565b6102e06103303660046126ac565b6107d9565b600e545b6040519081526020016102c4565b6102e06103553660046126ac565b6108ef565b6102e06103683660046126d6565b610923565b61033961037b366004612693565b60009081526008602052604090206001015490565b6103a361039e366004612712565b610954565b604080516001600160a01b0390931683526020830191909152016102c4565b6102e06103d0366004612693565b610a02565b600b54610339565b6102e06103eb366004612734565b610a8a565b61033961030981565b6102b8610407366004612693565b610aaf565b6102e061041a366004612734565b610ae1565b6102e061042d366004612693565b610b5b565b6102e06104403660046126d6565b610b8a565b6102e06104533660046127a5565b610ba5565b601054610339565b6102e061046e36600461287d565b610c3f565b61030a610481366004612693565b610c7c565b6103396104943660046128c6565b610cf3565b6102e0610d7a565b6102e06104af366004612693565b610db0565b6102e06104c2366004612693565b610ddf565b6102b86104d5366004612693565b610e0e565b600a546001600160a01b031661030a565b61030a6104f9366004612712565b610e49565b6102b861050c366004612734565b610e68565b6102b861051f3660046128e1565b610e93565b6102e061053236600461287d565b610ee6565b6102ea610f23565b610339600081565b6102e061055536600461293b565b610f32565b6102e0610568366004612693565b610f3d565b6102e061057b36600461296c565b610fa2565b6102e061058e3660046129e8565b610fd4565b6102ea6105a1366004612693565b611062565b6103396105b4366004612693565b6111a8565b6102e06105c7366004612a48565b6111bf565b6102e06105da366004612734565b61129a565b6103396112bf565b600f54610339565b6103397fb19546dff01e856fb3f010c267a7b1c60363cf8a4664e21cc89c26224620214e81565b6102ea6112d3565b6102b861062c366004612a7b565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b6102e06106683660046128c6565b6112e2565b600061067882611418565b92915050565b600a546001600160a01b031633146106b15760405162461bcd60e51b81526004016106a890612aa5565b60405180910390fd5b6106bb828261143d565b5050565b6060600280546106ce90612ada565b80601f01602080910402602001604051908101604052809291908181526020018280546106fa90612ada565b80156107475780601f1061071c57610100808354040283529160200191610747565b820191906000526020600020905b81548152906001019060200180831161072a57829003601f168201915b5050505050905090565b600061075c8261153a565b6107bd5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084016106a8565b506000908152600660205260409020546001600160a01b031690565b60006107e482610c7c565b9050806001600160a01b0316836001600160a01b031614156108525760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b60648201526084016106a8565b336001600160a01b038216148061086e575061086e813361062c565b6108e05760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c000000000000000060648201526084016106a8565b6108ea8383611557565b505050565b600a546001600160a01b031633146109195760405162461bcd60e51b81526004016106a890612aa5565b6106bb82826115c5565b61092d33826116e5565b6109495760405162461bcd60e51b81526004016106a890612b15565b6108ea8383836117ce565b60008281526001602090815260408083208151808301909252546001600160a01b038116808352600160a01b9091046001600160601b03169282019290925282916109c95750604080518082019091526000546001600160a01b0381168252600160a01b90046001600160601b031660208201525b6020810151600090612710906109e8906001600160601b031687612b7c565b6109f29190612bb1565b91519350909150505b9250929050565b7fb19546dff01e856fb3f010c267a7b1c60363cf8a4664e21cc89c26224620214e610a2c816118a3565b610a358261153a565b610a515760405162461bcd60e51b81526004016106a890612bc5565b6000602a8361030a8110610a6757610a67612bf5565b602091828204019190066101000a81548160ff0219169083151502179055505050565b600082815260086020526040902060010154610aa5816118a3565b6108ea83836118ad565b600060118261030a8110610ac557610ac5612bf5565b602081049091015460ff601f9092166101000a90041692915050565b6001600160a01b0381163314610b515760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b60648201526084016106a8565b6106bb82826118cf565b600a546001600160a01b03163314610b855760405162461bcd60e51b81526004016106a890612aa5565b601055565b6108ea83838360405180602001604052806000815250610fa2565b33610bec610bb382846118f1565b85858080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525061193892505050565b610c2f5760405162461bcd60e51b815260206004820152601460248201527324b73b30b634b21036b2b935b63290383937b7b360611b60448201526064016106a8565b610c3981836115c5565b50505050565b600a546001600160a01b03163314610c695760405162461bcd60e51b81526004016106a890612aa5565b80516106bb90600c9060208401906124fd565b6000818152600460205260408120546001600160a01b0316806106785760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b60648201526084016106a8565b60006001600160a01b038216610d5e5760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b60648201526084016106a8565b506001600160a01b031660009081526005602052604090205490565b600a546001600160a01b03163314610da45760405162461bcd60e51b81526004016106a890612aa5565b610dae600061196b565b565b600a546001600160a01b03163314610dda5760405162461bcd60e51b81526004016106a890612aa5565b600f55565b600a546001600160a01b03163314610e095760405162461bcd60e51b81526004016106a890612aa5565b600b55565b6000610e198261153a565b610e355760405162461bcd60e51b81526004016106a890612bc5565b602a8261030a8110610ac557610ac5612bf5565b6000828152600960205260408120610e6190836119bd565b9392505050565b60009182526008602090815260408084206001600160a01b0393909316845291905290205460ff1690565b6000610edb610ea286866118f1565b84848080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525061193892505050565b90505b949350505050565b600a546001600160a01b03163314610f105760405162461bcd60e51b81526004016106a890612aa5565b80516106bb90600d9060208401906124fd565b6060600380546106ce90612ada565b6106bb3383836119c9565b7fb19546dff01e856fb3f010c267a7b1c60363cf8a4664e21cc89c26224620214e610f67816118a3565b610f708261153a565b610f8c5760405162461bcd60e51b81526004016106a890612bc5565b6001602a8361030a8110610a6757610a67612bf5565b610fac33836116e5565b610fc85760405162461bcd60e51b81526004016106a890612b15565b610c3984848484611a98565b600a546001600160a01b03163314610ffe5760405162461bcd60e51b81526004016106a890612aa5565b8260005b8181101561105a5761105286868381811061101f5761101f612bf5565b905060200201602081019061103491906128c6565b85858481811061104657611046612bf5565b905060200201356115c5565b600101611002565b505050505050565b606061106d8261153a565b6110d15760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b60648201526084016106a8565b6000602a8361030a81106110e7576110e7612bf5565b602081049091015460ff601f9092166101000a90041661112757604051806040016040528060088152602001671cdd185b99185c9960c21b815250611147565b604051806040016040528060068152602001651cdd185ad95960d21b8152505b90506000600c805461115890612ada565b9050116111745760405180602001604052806000815250610e61565b600c8161118085611acb565b60405160200161119293929190612c27565b6040516020818303038152906040529392505050565b600081815260096020526040812061067890611bc9565b600a546001600160a01b031633146111e95760405162461bcd60e51b81526004016106a890612aa5565b6103096111f5600e5490565b1061123a5760405162461bcd60e51b81526020600482015260156024820152744d696e7420636f6d706c65746520616c726561647960581b60448201526064016106a8565b61030a825b818110801561124e5750828111155b156112935760118161030a811061126757611267612bf5565b602081049091015460ff601f9092166101000a90041661128b5761128b85826115c5565b60010161123f565b5050505050565b6000828152600860205260409020600101546112b5816118a3565b6108ea83836118cf565b60006112ce600161030a612cfc565b905090565b6060600d80546106ce90612ada565b600a546001600160a01b0316331461130c5760405162461bcd60e51b81526004016106a890612aa5565b6001600160a01b0381166113715760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016106a8565b61137a8161196b565b50565b6113878282610e68565b6106bb5760008281526008602090815260408083206001600160a01b03851684529091529020805460ff191660011790556113bf3390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b6000610e61836001600160a01b038416611bd3565b60006001600160e01b03198216635a05180f60e01b1480610678575061067882611c22565b6127106001600160601b03821611156114ab5760405162461bcd60e51b815260206004820152602a60248201527f455243323938313a20726f79616c7479206665652077696c6c206578636565646044820152692073616c65507269636560b01b60648201526084016106a8565b6001600160a01b0382166115015760405162461bcd60e51b815260206004820152601960248201527f455243323938313a20696e76616c69642072656365697665720000000000000060448201526064016106a8565b604080518082019091526001600160a01b039092168083526001600160601b039091166020909201829052600160a01b90910217600055565b6000908152600460205260409020546001600160a01b0316151590565b600081815260066020526040902080546001600160a01b0319166001600160a01b038416908117909155819061158c82610c7c565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b600081116116085760405162461bcd60e51b815260206004820152601060248201526f1a590808cc081a5cc81a5b9d985b1a5960821b60448201526064016106a8565b61030a811061164d5760405162461bcd60e51b8152602060048201526011602482015270546f6b656e494420746f6f206c6172676560781b60448201526064016106a8565b60118161030a811061166157611661612bf5565b602081049091015460ff601f9092166101000a900416156116bb5760405162461bcd60e51b8152602060048201526014602482015273151bdad95b88185b1c9958591e481b5a5b9d195960621b60448201526064016106a8565b6116c58282611c47565b600e8054600190810190915560118261030a8110610a6757610a67612bf5565b60006116f08261153a565b6117515760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084016106a8565b600061175c83610c7c565b9050806001600160a01b0316846001600160a01b031614806117a357506001600160a01b0380821660009081526007602090815260408083209388168352929052205460ff165b80610ede5750836001600160a01b03166117bc84610751565b6001600160a01b031614949350505050565b6117d78161153a565b61181a5760405162461bcd60e51b8152602060048201526014602482015273151bdad95b88111bd95cc8139bdd08115e1a5cdd60621b60448201526064016106a8565b602a8161030a811061182e5761182e612bf5565b602091828204019190069054906101000a900460ff1615156001151514156118985760405162461bcd60e51b815260206004820181905260248201527f546f6b656e206973207374616b65642c2063616e6e6f74207472616e7366657260448201526064016106a8565b6108ea838383611c61565b61137a8133611dfd565b6118b7828261137d565b60008281526009602052604090206108ea9082611403565b6118d98282611e61565b60008281526009602052604090206108ea9082611ec8565b6040516bffffffffffffffffffffffff19606084901b1660208201526034810182905260009060540160405160208183030381529060405280519060200120905092915050565b600f5460009081904290811115611963576010548110156119635761196084600b5487611edd565b91505b509392505050565b600a80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6000610e618383611ef3565b816001600160a01b0316836001600160a01b03161415611a2b5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c65720000000000000060448201526064016106a8565b6001600160a01b03838116600081815260076020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b611aa38484846117ce565b611aaf84848484611f1d565b610c395760405162461bcd60e51b81526004016106a890612d13565b606081611aef5750506040805180820190915260018152600360fc1b602082015290565b8160005b8115611b195780611b0381612d65565b9150611b129050600a83612bb1565b9150611af3565b60008167ffffffffffffffff811115611b3457611b346127f1565b6040519080825280601f01601f191660200182016040528015611b5e576020820181803683370190505b5090505b8415610ede57611b73600183612cfc565b9150611b80600a86612d80565b611b8b906030612d94565b60f81b818381518110611ba057611ba0612bf5565b60200101906001600160f81b031916908160001a905350611bc2600a86612bb1565b9450611b62565b6000610678825490565b6000818152600183016020526040812054611c1a57508154600181810184556000848152602080822090930184905584548482528286019093526040902091909155610678565b506000610678565b60006001600160e01b03198216637965db0b60e01b1480610678575061067882612027565b6106bb828260405180602001604052806000815250612067565b826001600160a01b0316611c7482610c7c565b6001600160a01b031614611cd85760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201526437bbb732b960d91b60648201526084016106a8565b6001600160a01b038216611d3a5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b60648201526084016106a8565b611d45600082611557565b6001600160a01b0383166000908152600560205260408120805460019290611d6e908490612cfc565b90915550506001600160a01b0382166000908152600560205260408120805460019290611d9c908490612d94565b909155505060008181526004602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b611e078282610e68565b6106bb57611e1f816001600160a01b0316601461209a565b611e2a83602061209a565b604051602001611e3b929190612dac565b60408051601f198184030181529082905262461bcd60e51b82526106a891600401612680565b611e6b8282610e68565b156106bb5760008281526008602090815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b6000610e61836001600160a01b038416612236565b600082611eea8584612329565b14949350505050565b6000826000018281548110611f0a57611f0a612bf5565b9060005260206000200154905092915050565b60006001600160a01b0384163b1561201f57604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290611f61903390899088908890600401612e21565b602060405180830381600087803b158015611f7b57600080fd5b505af1925050508015611fab575060408051601f3d908101601f19168201909252611fa891810190612e54565b60015b612005573d808015611fd9576040519150601f19603f3d011682016040523d82523d6000602084013e611fde565b606091505b508051611ffd5760405162461bcd60e51b81526004016106a890612d13565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050610ede565b506001610ede565b60006001600160e01b031982166380ac58cd60e01b148061205857506001600160e01b03198216635b5e139f60e01b145b80610678575061067882612395565b61207183836123ca565b61207e6000848484611f1d565b6108ea5760405162461bcd60e51b81526004016106a890612d13565b606060006120a9836002612b7c565b6120b4906002612d94565b67ffffffffffffffff8111156120cc576120cc6127f1565b6040519080825280601f01601f1916602001820160405280156120f6576020820181803683370190505b509050600360fc1b8160008151811061211157612111612bf5565b60200101906001600160f81b031916908160001a905350600f60fb1b8160018151811061214057612140612bf5565b60200101906001600160f81b031916908160001a9053506000612164846002612b7c565b61216f906001612d94565b90505b60018111156121e7576f181899199a1a9b1b9c1cb0b131b232b360811b85600f16601081106121a3576121a3612bf5565b1a60f81b8282815181106121b9576121b9612bf5565b60200101906001600160f81b031916908160001a90535060049490941c936121e081612e71565b9050612172565b508315610e615760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e7460448201526064016106a8565b6000818152600183016020526040812054801561231f57600061225a600183612cfc565b855490915060009061226e90600190612cfc565b90508181146122d357600086600001828154811061228e5761228e612bf5565b90600052602060002001549050808760000184815481106122b1576122b1612bf5565b6000918252602080832090910192909255918252600188019052604090208390555b85548690806122e4576122e4612e88565b600190038181906000526020600020016000905590558560010160008681526020019081526020016000206000905560019350505050610678565b6000915050610678565b600081815b845181101561196357600085828151811061234b5761234b612bf5565b602002602001015190508083116123715760008381526020829052604090209250612382565b600081815260208490526040902092505b508061238d81612d65565b91505061232e565b60006001600160e01b0319821663152a902d60e11b148061067857506301ffc9a760e01b6001600160e01b0319831614610678565b6001600160a01b0382166124205760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f206164647265737360448201526064016106a8565b6124298161153a565b156124765760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e7465640000000060448201526064016106a8565b6001600160a01b038216600090815260056020526040812080546001929061249f908490612d94565b909155505060008181526004602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b82805461250990612ada565b90600052602060002090601f01602090048101928261252b5760008555612571565b82601f1061254457805160ff1916838001178555612571565b82800160010185558215612571579182015b82811115612571578251825591602001919060010190612556565b5061257d929150612581565b5090565b5b8082111561257d5760008155600101612582565b6001600160e01b03198116811461137a57600080fd5b6000602082840312156125be57600080fd5b8135610e6181612596565b80356001600160a01b03811681146125e057600080fd5b919050565b600080604083850312156125f857600080fd5b612601836125c9565b915060208301356001600160601b038116811461261d57600080fd5b809150509250929050565b60005b8381101561264357818101518382015260200161262b565b83811115610c395750506000910152565b6000815180845261266c816020860160208601612628565b601f01601f19169290920160200192915050565b602081526000610e616020830184612654565b6000602082840312156126a557600080fd5b5035919050565b600080604083850312156126bf57600080fd5b6126c8836125c9565b946020939093013593505050565b6000806000606084860312156126eb57600080fd5b6126f4846125c9565b9250612702602085016125c9565b9150604084013590509250925092565b6000806040838503121561272557600080fd5b50508035926020909101359150565b6000806040838503121561274757600080fd5b82359150612757602084016125c9565b90509250929050565b60008083601f84011261277257600080fd5b50813567ffffffffffffffff81111561278a57600080fd5b6020830191508360208260051b85010111156109fb57600080fd5b6000806000604084860312156127ba57600080fd5b833567ffffffffffffffff8111156127d157600080fd5b6127dd86828701612760565b909790965060209590950135949350505050565b634e487b7160e01b600052604160045260246000fd5b600067ffffffffffffffff80841115612822576128226127f1565b604051601f8501601f19908116603f0116810190828211818310171561284a5761284a6127f1565b8160405280935085815286868601111561286357600080fd5b858560208301376000602087830101525050509392505050565b60006020828403121561288f57600080fd5b813567ffffffffffffffff8111156128a657600080fd5b8201601f810184136128b757600080fd5b610ede84823560208401612807565b6000602082840312156128d857600080fd5b610e61826125c9565b600080600080606085870312156128f757600080fd5b612900856125c9565b935060208501359250604085013567ffffffffffffffff81111561292357600080fd5b61292f87828801612760565b95989497509550505050565b6000806040838503121561294e57600080fd5b612957836125c9565b91506020830135801515811461261d57600080fd5b6000806000806080858703121561298257600080fd5b61298b856125c9565b9350612999602086016125c9565b925060408501359150606085013567ffffffffffffffff8111156129bc57600080fd5b8501601f810187136129cd57600080fd5b6129dc87823560208401612807565b91505092959194509250565b600080600080604085870312156129fe57600080fd5b843567ffffffffffffffff80821115612a1657600080fd5b612a2288838901612760565b90965094506020870135915080821115612a3b57600080fd5b5061292f87828801612760565b600080600060608486031215612a5d57600080fd5b612a66846125c9565b95602085013595506040909401359392505050565b60008060408385031215612a8e57600080fd5b612a97836125c9565b9150612757602084016125c9565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b600181811c90821680612aee57607f821691505b60208210811415612b0f57634e487b7160e01b600052602260045260246000fd5b50919050565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b634e487b7160e01b600052601160045260246000fd5b6000816000190483118215151615612b9657612b96612b66565b500290565b634e487b7160e01b600052601260045260246000fd5b600082612bc057612bc0612b9b565b500490565b602080825260169082015275151bdad95b88125108191bd95cdb89dd08195e1a5cdd60521b604082015260600190565b634e487b7160e01b600052603260045260246000fd5b60008151612c1d818560208601612628565b9290920192915050565b600080855481600182811c915080831680612c4357607f831692505b6020808410821415612c6357634e487b7160e01b86526022600452602486fd5b818015612c775760018114612c8857612cb5565b60ff19861689528489019650612cb5565b60008c81526020902060005b86811015612cad5781548b820152908501908301612c94565b505084890196505b505050505050612cf2612ce1612cdb612cce8489612c0b565b602f60f81b815260010190565b86612c0b565b64173539b7b760d91b815260050190565b9695505050505050565b600082821015612d0e57612d0e612b66565b500390565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6000600019821415612d7957612d79612b66565b5060010190565b600082612d8f57612d8f612b9b565b500690565b60008219821115612da757612da7612b66565b500190565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000815260008351612de4816017850160208801612628565b7001034b99036b4b9b9b4b733903937b6329607d1b6017918401918201528351612e15816028840160208801612628565b01602801949350505050565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090612cf290830184612654565b600060208284031215612e6657600080fd5b8151610e6181612596565b600081612e8057612e80612b66565b506000190190565b634e487b7160e01b600052603160045260246000fdfea26469706673582212205526ecf67d35b3f9a30d4eb4ac27b574eb0546d0ac913d0e8093d791c261800864736f6c63430008090033

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

00000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000001c50726f6261626c79204e6f7468696e672047656e65736973204e46540000000000000000000000000000000000000000000000000000000000000000000000044f47504e00000000000000000000000000000000000000000000000000000000

-----Decoded View---------------
Arg [0] : name (string): Probably Nothing Genesis NFT
Arg [1] : symbol (string): OGPN

-----Encoded View---------------
6 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000040
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000080
Arg [2] : 000000000000000000000000000000000000000000000000000000000000001c
Arg [3] : 50726f6261626c79204e6f7468696e672047656e65736973204e465400000000
Arg [4] : 0000000000000000000000000000000000000000000000000000000000000004
Arg [5] : 4f47504e00000000000000000000000000000000000000000000000000000000


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.