ETH Price: $3,917.23 (-0.42%)

Token

KoolKidz (KOOL)
 

Overview

Max Total Supply

5,000 KOOL

Holders

726

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Balance
2 KOOL
0xe072cb60847afba3647a96bd442ec40b67e9c67f
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:
NFT

Compiler Version
v0.8.11+commit.d7f03943

Optimization Enabled:
Yes with 1000 runs

Other Settings:
default evmVersion
File 1 of 16 : NFT.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.11;

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

contract NFT is ERC721Enumerable, IERC2981, Ownable {
    using Strings for uint256;

    // Royalty vars
    address public royaltyRecipient =
        0x339Ff26CF5E9332b59A6E37C2453c4B335b839d1; // koolkidz.eth
    uint256 public royaltyPercentage = 750; // starting at 7.5% royalty
    uint256 public SCALE = 10000;

    string private baseURI;
    string public baseExtension = ".json";
    uint256 public cost = 0.08 ether;
    uint256 public reservedSupply = 250;
    uint256 public reservedMinted;
    uint256 public maxSupply = 5000;
    uint256 public maxMintAmountPresale = 2;
    uint256 public maxMintAmountPublic = 10;
    bool public presaleMintingEnabled = false;
    bool public publicMintingEnabled = false;
    bool public paused = false;
    bool public revealed = false;
    string public notRevealedUri;

    bytes32 public whitelistMerkleRoot;

    // keep track of how many each address has claimed
    mapping(address => uint256) public mintedAmount;

    constructor(
        string memory _name,
        string memory _symbol,
        string memory _initBaseURI,
        string memory _initNotRevealedUri
    ) ERC721(_name, _symbol) {
        setBaseURI(_initBaseURI);
        setNotRevealedURI(_initNotRevealedUri);
    }

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

    function mintPublic(uint256 _mintAmount) public payable onlyHumans {
        uint256 supply = totalSupply();
        require(publicMintingEnabled, "Public minting is not enabled");
        require(!paused, "Minting is paused");
        require(_mintAmount > 0, "Cannot mint 0");
        require(
            supply + _mintAmount <= maxSupply,
            "Cannot mint more than max supply"
        );
        require(
            mintedAmount[msg.sender] + _mintAmount <= maxMintAmountPublic,
            "Mints exceed 10 per address"
        );

        require(msg.value >= cost * _mintAmount, "Not enough ETH");

        mintedAmount[msg.sender] += _mintAmount;

        for (uint256 i = 1; i <= _mintAmount; i++) {
            _safeMint(msg.sender, supply + i);
        }
    }

    function mintPresale(bytes32[] calldata merkleProof, uint256 _mintAmount)
        public
        payable
        onlyHumans
        isValidMerkleProof(merkleProof, whitelistMerkleRoot)
    {
        uint256 supply = totalSupply();
        require(presaleMintingEnabled, "Presale minting is not enabled");
        require(!paused, "Minting is paused");
        require(_mintAmount > 0, "Cannot mint 0");
        require(
            supply + _mintAmount <= maxSupply,
            "Cannot mint more than max supply"
        );
        require(
            mintedAmount[msg.sender] + _mintAmount <= maxMintAmountPresale,
            "Mints exceed 2 per address"
        );

        require(msg.value >= cost * _mintAmount, "Not enough ETH");

        mintedAmount[msg.sender] += _mintAmount;

        for (uint256 i = 1; i <= _mintAmount; i++) {
            _safeMint(msg.sender, supply + i);
        }
    }

    function mintReserved(uint256 _mintAmount) public {
        require(
            msg.sender == owner() || msg.sender == royaltyRecipient,
            "Only owners can mint reserved"
        );
        require(!paused, "Minting is paused");
        require(_mintAmount > 0, "Cannot mint 0");
        require(
            reservedMinted + _mintAmount <= reservedSupply,
            "Cannot mint more than reserved supply"
        );

        uint256 startingID = reservedMinted;

        for (uint256 i = 1; i <= _mintAmount; i++) {
            _mint(msg.sender, startingID + i);
            reservedMinted++;
        }
    }

    function isWhitelistedInMerkleProof(
        address _account,
        bytes32[] calldata _merkleProof
    ) public view returns (bool) {
        return
            MerkleProof.verify(
                _merkleProof,
                whitelistMerkleRoot,
                keccak256(abi.encodePacked(_account))
            );
    }

    function walletOfOwner(address _owner)
        public
        view
        returns (uint256[] memory)
    {
        uint256 ownerTokenCount = balanceOf(_owner);
        uint256[] memory tokenIds = new uint256[](ownerTokenCount);
        for (uint256 i; i < ownerTokenCount; i++) {
            tokenIds[i] = tokenOfOwnerByIndex(_owner, i);
        }
        return tokenIds;
    }

    function tokenURI(uint256 tokenId)
        public
        view
        virtual
        override
        returns (string memory)
    {
        require(
            _exists(tokenId),
            "ERC721Metadata: URI query for nonexistent token"
        );

        if (revealed == false) {
            return
                bytes(notRevealedUri).length > 0
                    ? string(
                        abi.encodePacked(
                            notRevealedUri,
                            tokenId.toString(),
                            baseExtension
                        )
                    )
                    : "";
        }

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

    // ============ OWNER-ONLY ADMIN FUNCTIONS ============

    function reveal() public onlyOwner {
        revealed = true;
    }

    // NOTE: before enabling, make sure all reserved NFTs minted
    function setPresaleMintingEnabled(bool _enabled) external onlyOwner {
        presaleMintingEnabled = _enabled;
    }

    // NOTE: before enabling, make sure all reserved NFTs minted
    function setPublicMintingEnabled(bool _enabled) external onlyOwner {
        publicMintingEnabled = _enabled;
    }

    function setWhitelistMerkleRoot(bytes32 merkleRoot) external onlyOwner {
        whitelistMerkleRoot = merkleRoot;
    }

    function setCost(uint256 _newCost) public onlyOwner {
        cost = _newCost;
    }

    function setRoyalty(uint256 _newRoyaltyPercentage) public onlyOwner {
        require(_newRoyaltyPercentage <= SCALE, "Royalty percentage too high");
        royaltyPercentage = _newRoyaltyPercentage;
    }

    function setRoyaltyRecipient(address _newRoyaltyRecipient)
        public
        onlyOwner
    {
        royaltyRecipient = _newRoyaltyRecipient;
    }

    function setMaxMintAmountPublic(uint256 _newMax) public onlyOwner {
        maxMintAmountPublic = _newMax;
    }

    function setNotRevealedURI(string memory _notRevealedURI) public onlyOwner {
        notRevealedUri = _notRevealedURI;
    }

    function setBaseURI(string memory _newBaseURI) public onlyOwner {
        baseURI = _newBaseURI;
    }

    function setBaseExtension(string memory _newBaseExtension)
        public
        onlyOwner
    {
        baseExtension = _newBaseExtension;
    }

    function pause(bool _state) public onlyOwner {
        paused = _state;
    }

    function withdraw() public payable onlyOwner {
        // This will payout the owner 100% of the contract balance.
        // Do not remove this otherwise you will not be able to withdraw the funds.
        // =============================================================================
        (bool os, ) = payable(owner()).call{value: address(this).balance}("");
        require(os);
        // =============================================================================
    }

    // ============ ROYALTIES ============

    function royaltyInfo(uint256 tokenId, uint256 salePrice)
        public
        view
        returns (address receiver, uint256 royaltyAmount)
    {
        require(
            _exists(tokenId),
            "ERC721Metadata: Royalty query for nonexistent token"
        );

        receiver = royaltyRecipient;
        royaltyAmount = (salePrice * royaltyPercentage) / SCALE;
    }

    function supportsInterface(bytes4 interfaceId)
        public
        view
        override(ERC721Enumerable, IERC165)
        returns (bool)
    {
        return
            ERC721Enumerable.supportsInterface(interfaceId) ||
            interfaceId == type(IERC2981).interfaceId;
    }

    // ============ MODIFIERS ============

    /**
     * @dev Only allows EOA accounts to call function
     */
    modifier onlyHumans() {
        require(tx.origin == msg.sender, "Only humans allowed");
        _;
    }

    /**
     * @dev validates merkleProof
     */
    modifier isValidMerkleProof(bytes32[] calldata merkleProof, bytes32 root) {
        require(
            MerkleProof.verify(
                merkleProof,
                root,
                keccak256(abi.encodePacked(msg.sender))
            ),
            "Address does not exist in list"
        );
        _;
    }
}

File 2 of 16 : MerkleProof.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0-rc.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.
 */
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 Merklee 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 3 of 16 : ERC721Enumerable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/ERC721Enumerable.sol)

pragma solidity ^0.8.0;

import "../ERC721.sol";
import "./IERC721Enumerable.sol";

/**
 * @dev This implements an optional extension of {ERC721} defined in the EIP that adds
 * enumerability of all the token ids in the contract as well as all token ids owned by each
 * account.
 */
abstract contract ERC721Enumerable is ERC721, IERC721Enumerable {
    // Mapping from owner to list of owned token IDs
    mapping(address => mapping(uint256 => uint256)) private _ownedTokens;

    // Mapping from token ID to index of the owner tokens list
    mapping(uint256 => uint256) private _ownedTokensIndex;

    // Array with all token ids, used for enumeration
    uint256[] private _allTokens;

    // Mapping from token id to position in the allTokens array
    mapping(uint256 => uint256) private _allTokensIndex;

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

    /**
     * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}.
     */
    function tokenOfOwnerByIndex(address owner, uint256 index) public view virtual override returns (uint256) {
        require(index < ERC721.balanceOf(owner), "ERC721Enumerable: owner index out of bounds");
        return _ownedTokens[owner][index];
    }

    /**
     * @dev See {IERC721Enumerable-totalSupply}.
     */
    function totalSupply() public view virtual override returns (uint256) {
        return _allTokens.length;
    }

    /**
     * @dev See {IERC721Enumerable-tokenByIndex}.
     */
    function tokenByIndex(uint256 index) public view virtual override returns (uint256) {
        require(index < ERC721Enumerable.totalSupply(), "ERC721Enumerable: global index out of bounds");
        return _allTokens[index];
    }

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

        if (from == address(0)) {
            _addTokenToAllTokensEnumeration(tokenId);
        } else if (from != to) {
            _removeTokenFromOwnerEnumeration(from, tokenId);
        }
        if (to == address(0)) {
            _removeTokenFromAllTokensEnumeration(tokenId);
        } else if (to != from) {
            _addTokenToOwnerEnumeration(to, tokenId);
        }
    }

    /**
     * @dev Private function to add a token to this extension's ownership-tracking data structures.
     * @param to address representing the new owner of the given token ID
     * @param tokenId uint256 ID of the token to be added to the tokens list of the given address
     */
    function _addTokenToOwnerEnumeration(address to, uint256 tokenId) private {
        uint256 length = ERC721.balanceOf(to);
        _ownedTokens[to][length] = tokenId;
        _ownedTokensIndex[tokenId] = length;
    }

    /**
     * @dev Private function to add a token to this extension's token tracking data structures.
     * @param tokenId uint256 ID of the token to be added to the tokens list
     */
    function _addTokenToAllTokensEnumeration(uint256 tokenId) private {
        _allTokensIndex[tokenId] = _allTokens.length;
        _allTokens.push(tokenId);
    }

    /**
     * @dev Private function to remove a token from this extension's ownership-tracking data structures. Note that
     * while the token is not assigned a new owner, the `_ownedTokensIndex` mapping is _not_ updated: this allows for
     * gas optimizations e.g. when performing a transfer operation (avoiding double writes).
     * This has O(1) time complexity, but alters the order of the _ownedTokens array.
     * @param from address representing the previous owner of the given token ID
     * @param tokenId uint256 ID of the token to be removed from the tokens list of the given address
     */
    function _removeTokenFromOwnerEnumeration(address from, uint256 tokenId) private {
        // To prevent a gap in from's tokens array, we store the last token in the index of the token to delete, and
        // then delete the last slot (swap and pop).

        uint256 lastTokenIndex = ERC721.balanceOf(from) - 1;
        uint256 tokenIndex = _ownedTokensIndex[tokenId];

        // When the token to delete is the last token, the swap operation is unnecessary
        if (tokenIndex != lastTokenIndex) {
            uint256 lastTokenId = _ownedTokens[from][lastTokenIndex];

            _ownedTokens[from][tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token
            _ownedTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index
        }

        // This also deletes the contents at the last position of the array
        delete _ownedTokensIndex[tokenId];
        delete _ownedTokens[from][lastTokenIndex];
    }

    /**
     * @dev Private function to remove a token from this extension's token tracking data structures.
     * This has O(1) time complexity, but alters the order of the _allTokens array.
     * @param tokenId uint256 ID of the token to be removed from the tokens list
     */
    function _removeTokenFromAllTokensEnumeration(uint256 tokenId) private {
        // To prevent a gap in the tokens array, we store the last token in the index of the token to delete, and
        // then delete the last slot (swap and pop).

        uint256 lastTokenIndex = _allTokens.length - 1;
        uint256 tokenIndex = _allTokensIndex[tokenId];

        // When the token to delete is the last token, the swap operation is unnecessary. However, since this occurs so
        // rarely (when the last minted token is burnt) that we still do the swap here to avoid the gas cost of adding
        // an 'if' statement (like in _removeTokenFromOwnerEnumeration)
        uint256 lastTokenId = _allTokens[lastTokenIndex];

        _allTokens[tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token
        _allTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index

        // This also deletes the contents at the last position of the array
        delete _allTokensIndex[tokenId];
        _allTokens.pop();
    }
}

File 4 of 16 : 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 5 of 16 : IERC2981.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0-rc.0) (interfaces/IERC2981.sol)

pragma solidity ^0.8.0;

import "./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 payed in that same unit of exchange.
     */
    function royaltyInfo(uint256 tokenId, uint256 salePrice)
        external
        view
        returns (address receiver, uint256 royaltyAmount);
}

File 6 of 16 : ERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0-rc.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 overriden in child contracts.
     */
    function _baseURI() internal view virtual returns (string memory) {
        return "";
    }

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

        require(
            _msgSender() == owner || 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 || getApproved(tokenId) == spender || isApprovedForAll(owner, spender));
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        _beforeTokenTransfer(from, to, tokenId);

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

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

        emit Transfer(from, to, tokenId);

        _afterTokenTransfer(from, to, tokenId);
    }

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

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

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

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

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

File 7 of 16 : IERC721Enumerable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0-rc.0) (token/ERC721/extensions/IERC721Enumerable.sol)

pragma solidity ^0.8.0;

import "../IERC721.sol";

/**
 * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension
 * @dev See https://eips.ethereum.org/EIPS/eip-721
 */
interface IERC721Enumerable is IERC721 {
    /**
     * @dev Returns the total amount of tokens stored by the contract.
     */
    function totalSupply() external view returns (uint256);

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

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

File 8 of 16 : IERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (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`, checking first that contract recipients
     * are aware of the ERC721 protocol to prevent tokens from being forever locked.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId
    ) external;

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

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

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

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

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

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

File 9 of 16 : IERC721Receiver.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (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 `IERC721.onERC721Received.selector`.
     */
    function onERC721Received(
        address operator,
        address from,
        uint256 tokenId,
        bytes calldata data
    ) external returns (bytes4);
}

File 10 of 16 : 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 11 of 16 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0-rc.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 12 of 16 : 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 13 of 16 : 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 14 of 16 : 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 15 of 16 : 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 16 of 16 : IERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (interfaces/IERC165.sol)

pragma solidity ^0.8.0;

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

Settings
{
  "optimizer": {
    "enabled": true,
    "runs": 1000
  },
  "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"},{"internalType":"string","name":"_initBaseURI","type":"string"},{"internalType":"string","name":"_initNotRevealedUri","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":"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":"SCALE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseExtension","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"cost","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_account","type":"address"},{"internalType":"bytes32[]","name":"_merkleProof","type":"bytes32[]"}],"name":"isWhitelistedInMerkleProof","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxMintAmountPresale","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxMintAmountPublic","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32[]","name":"merkleProof","type":"bytes32[]"},{"internalType":"uint256","name":"_mintAmount","type":"uint256"}],"name":"mintPresale","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_mintAmount","type":"uint256"}],"name":"mintPublic","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_mintAmount","type":"uint256"}],"name":"mintReserved","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"mintedAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"notRevealedUri","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bool","name":"_state","type":"bool"}],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"presaleMintingEnabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"publicMintingEnabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"reservedMinted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"reservedSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"reveal","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"revealed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"salePrice","type":"uint256"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"receiver","type":"address"},{"internalType":"uint256","name":"royaltyAmount","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"royaltyPercentage","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"royaltyRecipient","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_newBaseExtension","type":"string"}],"name":"setBaseExtension","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_newBaseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newCost","type":"uint256"}],"name":"setCost","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newMax","type":"uint256"}],"name":"setMaxMintAmountPublic","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_notRevealedURI","type":"string"}],"name":"setNotRevealedURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_enabled","type":"bool"}],"name":"setPresaleMintingEnabled","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_enabled","type":"bool"}],"name":"setPublicMintingEnabled","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newRoyaltyPercentage","type":"uint256"}],"name":"setRoyalty","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_newRoyaltyRecipient","type":"address"}],"name":"setRoyaltyRecipient","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"merkleRoot","type":"bytes32"}],"name":"setWhitelistMerkleRoot","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":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":"address","name":"_owner","type":"address"}],"name":"walletOfOwner","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"whitelistMerkleRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"payable","type":"function"}]

600b80546001600160a01b03191673339ff26cf5e9332b59a6e37c2453c4b335b839d11790556102ee600c55612710600d5560c06040526005608081905264173539b7b760d91b60a09081526200005a91600f91906200023e565b5067011c37937e08000060105560fa6011556113886013556002601455600a6015556016805463ffffffff191690553480156200009657600080fd5b5060405162003c2638038062003c26833981016040819052620000b991620003b1565b835184908490620000d29060009060208501906200023e565b508051620000e89060019060208401906200023e565b50505062000105620000ff6200012560201b60201c565b62000129565b62000110826200017b565b6200011b81620001e3565b50505050620004a7565b3390565b600a80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b600a546001600160a01b03163314620001ca5760405162461bcd60e51b8152602060048201819052602482015260008051602062003c0683398151915260448201526064015b60405180910390fd5b8051620001df90600e9060208401906200023e565b5050565b600a546001600160a01b031633146200022e5760405162461bcd60e51b8152602060048201819052602482015260008051602062003c068339815191526044820152606401620001c1565b8051620001df9060179060208401905b8280546200024c906200046a565b90600052602060002090601f016020900481019282620002705760008555620002bb565b82601f106200028b57805160ff1916838001178555620002bb565b82800160010185558215620002bb579182015b82811115620002bb5782518255916020019190600101906200029e565b50620002c9929150620002cd565b5090565b5b80821115620002c95760008155600101620002ce565b634e487b7160e01b600052604160045260246000fd5b600082601f8301126200030c57600080fd5b81516001600160401b0380821115620003295762000329620002e4565b604051601f8301601f19908116603f01168101908282118183101715620003545762000354620002e4565b816040528381526020925086838588010111156200037157600080fd5b600091505b8382101562000395578582018301518183018401529082019062000376565b83821115620003a75760008385830101525b9695505050505050565b60008060008060808587031215620003c857600080fd5b84516001600160401b0380821115620003e057600080fd5b620003ee88838901620002fa565b955060208701519150808211156200040557600080fd5b6200041388838901620002fa565b945060408701519150808211156200042a57600080fd5b6200043888838901620002fa565b935060608701519150808211156200044f57600080fd5b506200045e87828801620002fa565b91505092959194509250565b600181811c908216806200047f57607f821691505b60208210811415620004a157634e487b7160e01b600052602260045260246000fd5b50919050565b61374f80620004b76000396000f3fe6080604052600436106103605760003560e01c80636352211e116101c6578063ab91628c116100f7578063da3ef23f11610095578063efd0cbf91161006f578063efd0cbf914610990578063f2c4ce1e146109a3578063f2fde38b146109c3578063fbbf8cc3146109e357600080fd5b8063da3ef23f14610911578063e985e9c514610931578063eced55261461097a57600080fd5b8063bd32fb66116100d1578063bd32fb66146108a6578063c6682862146108c6578063c87b56dd146108db578063d5abeb01146108fb57600080fd5b8063ab91628c14610859578063ad7f1ea114610873578063b88d4fde1461088657600080fd5b80638dec9f7a116101645780639a5d140b1161013e5780639a5d140b146107ee578063a22cb4651461080e578063a475b5dd1461082e578063aa98e0c61461084357600080fd5b80638dec9f7a1461079a57806395d89b41146107b9578063993e419e146107ce57600080fd5b80637effc032116101a05780637effc032146107305780638a71bb2d146107465780638aefd9fb1461075c5780638da5cb5b1461077c57600080fd5b80636352211e146106db57806370a08231146106fb578063715018a61461071b57600080fd5b80632f745c59116102a057806344d19d2b1161023e5780634f6ccce7116102185780634f6ccce71461065a578063518302271461067a57806355f804b31461069b5780635c975abb146106bb57600080fd5b806344d19d2b1461060e5780634c00de82146106245780634f297ccc1461064457600080fd5b80634209a2e11161027a5780634209a2e11461058157806342842e0e146105a1578063438b6300146105c157806344a0d68a146105ee57600080fd5b80632f745c59146105395780633ccfd60b1461055957806341e42f301461056157600080fd5b8063095ea7b31161030d57806318160ddd116102e757806318160ddd146104a55780631835dbe6146104ba57806323b872dd146104da5780632a55205a146104fa57600080fd5b8063095ea7b31461044b57806313faede61461046b57806317f7bece1461048f57600080fd5b806306fdde031161033e57806306fdde03146103dc578063081812fc146103fe578063081c8c441461043657600080fd5b806301ffc9a71461036557806302329a291461039a5780630696a825146103bc575b600080fd5b34801561037157600080fd5b5061038561038036600461302a565b610a10565b60405190151581526020015b60405180910390f35b3480156103a657600080fd5b506103ba6103b536600461305c565b610a55565b005b3480156103c857600080fd5b506103856103d73660046130da565b610abe565b3480156103e857600080fd5b506103f1610b3f565b6040516103919190613185565b34801561040a57600080fd5b5061041e610419366004613198565b610bd1565b6040516001600160a01b039091168152602001610391565b34801561044257600080fd5b506103f1610c66565b34801561045757600080fd5b506103ba6104663660046131b1565b610cf4565b34801561047757600080fd5b5061048160105481565b604051908152602001610391565b34801561049b57600080fd5b5061048160155481565b3480156104b157600080fd5b50600854610481565b3480156104c657600080fd5b506103ba6104d536600461305c565b610e26565b3480156104e657600080fd5b506103ba6104f53660046131db565b610e88565b34801561050657600080fd5b5061051a610515366004613217565b610f0f565b604080516001600160a01b039093168352602083019190915201610391565b34801561054557600080fd5b506104816105543660046131b1565b610fcf565b6103ba611077565b34801561056d57600080fd5b506103ba61057c366004613239565b611133565b34801561058d57600080fd5b506103ba61059c366004613198565b61119d565b3480156105ad57600080fd5b506103ba6105bc3660046131db565b61123c565b3480156105cd57600080fd5b506105e16105dc366004613239565b611257565b6040516103919190613254565b3480156105fa57600080fd5b506103ba610609366004613198565b6112f9565b34801561061a57600080fd5b5061048160115481565b34801561063057600080fd5b50600b5461041e906001600160a01b031681565b34801561065057600080fd5b5061048160125481565b34801561066657600080fd5b50610481610675366004613198565b611346565b34801561068657600080fd5b50601654610385906301000000900460ff1681565b3480156106a757600080fd5b506103ba6106b6366004613324565b6113ea565b3480156106c757600080fd5b506016546103859062010000900460ff1681565b3480156106e757600080fd5b5061041e6106f6366004613198565b611449565b34801561070757600080fd5b50610481610716366004613239565b6114d4565b34801561072757600080fd5b506103ba61156e565b34801561073c57600080fd5b5061048160145481565b34801561075257600080fd5b50610481600c5481565b34801561076857600080fd5b506103ba61077736600461305c565b6115c2565b34801561078857600080fd5b50600a546001600160a01b031661041e565b3480156107a657600080fd5b5060165461038590610100900460ff1681565b3480156107c557600080fd5b506103f161161d565b3480156107da57600080fd5b506103ba6107e9366004613198565b61162c565b3480156107fa57600080fd5b506103ba610809366004613198565b611679565b34801561081a57600080fd5b506103ba61082936600461336d565b611842565b34801561083a57600080fd5b506103ba61184d565b34801561084f57600080fd5b5061048160185481565b34801561086557600080fd5b506016546103859060ff1681565b6103ba610881366004613397565b6118aa565b34801561089257600080fd5b506103ba6108a13660046133e3565b611c15565b3480156108b257600080fd5b506103ba6108c1366004613198565b611ca3565b3480156108d257600080fd5b506103f1611cf0565b3480156108e757600080fd5b506103f16108f6366004613198565b611cfd565b34801561090757600080fd5b5061048160135481565b34801561091d57600080fd5b506103ba61092c366004613324565b611e59565b34801561093d57600080fd5b5061038561094c36600461345f565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b34801561098657600080fd5b50610481600d5481565b6103ba61099e366004613198565b611eb4565b3480156109af57600080fd5b506103ba6109be366004613324565b612168565b3480156109cf57600080fd5b506103ba6109de366004613239565b6121c3565b3480156109ef57600080fd5b506104816109fe366004613239565b60196020526000908152604090205481565b6000610a1b82612290565b80610a4f57506001600160e01b031982167f2a55205a00000000000000000000000000000000000000000000000000000000145b92915050565b600a546001600160a01b03163314610aa25760405162461bcd60e51b815260206004820181905260248201526000805160206136fa83398151915260448201526064015b60405180910390fd5b60168054911515620100000262ff000019909216919091179055565b6000610b37838380806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250506018546040516bffffffffffffffffffffffff1960608b901b16602082015290925060340190505b604051602081830303815290604052805190602001206122ce565b949350505050565b606060008054610b4e90613489565b80601f0160208091040260200160405190810160405280929190818152602001828054610b7a90613489565b8015610bc75780601f10610b9c57610100808354040283529160200191610bc7565b820191906000526020600020905b815481529060010190602001808311610baa57829003601f168201915b5050505050905090565b6000818152600260205260408120546001600160a01b0316610c4a5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610a99565b506000908152600460205260409020546001600160a01b031690565b60178054610c7390613489565b80601f0160208091040260200160405190810160405280929190818152602001828054610c9f90613489565b8015610cec5780601f10610cc157610100808354040283529160200191610cec565b820191906000526020600020905b815481529060010190602001808311610ccf57829003601f168201915b505050505081565b6000610cff82611449565b9050806001600160a01b0316836001600160a01b03161415610d895760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560448201527f72000000000000000000000000000000000000000000000000000000000000006064820152608401610a99565b336001600160a01b0382161480610da55750610da5813361094c565b610e175760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610a99565b610e2183836122e4565b505050565b600a546001600160a01b03163314610e6e5760405162461bcd60e51b815260206004820181905260248201526000805160206136fa8339815191526044820152606401610a99565b601680549115156101000261ff0019909216919091179055565b610e923382612352565b610f045760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f7665640000000000000000000000000000006064820152608401610a99565b610e21838383612445565b60008281526002602052604081205481906001600160a01b0316610f9b5760405162461bcd60e51b815260206004820152603360248201527f4552433732314d657461646174613a20526f79616c747920717565727920666f60448201527f72206e6f6e6578697374656e7420746f6b656e000000000000000000000000006064820152608401610a99565b600b54600d54600c546001600160a01b03909216935090610fbc90856134da565b610fc6919061350f565b90509250929050565b6000610fda836114d4565b821061104e5760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201527f74206f6620626f756e64730000000000000000000000000000000000000000006064820152608401610a99565b506001600160a01b03919091166000908152600660209081526040808320938352929052205490565b600a546001600160a01b031633146110bf5760405162461bcd60e51b815260206004820181905260248201526000805160206136fa8339815191526044820152606401610a99565b60006110d3600a546001600160a01b031690565b6001600160a01b03164760405160006040518083038185875af1925050503d806000811461111d576040519150601f19603f3d011682016040523d82523d6000602084013e611122565b606091505b505090508061113057600080fd5b50565b600a546001600160a01b0316331461117b5760405162461bcd60e51b815260206004820181905260248201526000805160206136fa8339815191526044820152606401610a99565b600b80546001600160a01b0319166001600160a01b0392909216919091179055565b600a546001600160a01b031633146111e55760405162461bcd60e51b815260206004820181905260248201526000805160206136fa8339815191526044820152606401610a99565b600d548111156112375760405162461bcd60e51b815260206004820152601b60248201527f526f79616c74792070657263656e7461676520746f6f206869676800000000006044820152606401610a99565b600c55565b610e2183838360405180602001604052806000815250611c15565b60606000611264836114d4565b905060008167ffffffffffffffff81111561128157611281613298565b6040519080825280602002602001820160405280156112aa578160200160208202803683370190505b50905060005b828110156112f1576112c28582610fcf565b8282815181106112d4576112d4613523565b6020908102919091010152806112e981613539565b9150506112b0565b509392505050565b600a546001600160a01b031633146113415760405162461bcd60e51b815260206004820181905260248201526000805160206136fa8339815191526044820152606401610a99565b601055565b600061135160085490565b82106113c55760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201527f7574206f6620626f756e647300000000000000000000000000000000000000006064820152608401610a99565b600882815481106113d8576113d8613523565b90600052602060002001549050919050565b600a546001600160a01b031633146114325760405162461bcd60e51b815260206004820181905260248201526000805160206136fa8339815191526044820152606401610a99565b805161144590600e906020840190612f7b565b5050565b6000818152600260205260408120546001600160a01b031680610a4f5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201527f656e7420746f6b656e00000000000000000000000000000000000000000000006064820152608401610a99565b60006001600160a01b0382166115525760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a6560448201527f726f2061646472657373000000000000000000000000000000000000000000006064820152608401610a99565b506001600160a01b031660009081526003602052604090205490565b600a546001600160a01b031633146115b65760405162461bcd60e51b815260206004820181905260248201526000805160206136fa8339815191526044820152606401610a99565b6115c0600061261d565b565b600a546001600160a01b0316331461160a5760405162461bcd60e51b815260206004820181905260248201526000805160206136fa8339815191526044820152606401610a99565b6016805460ff1916911515919091179055565b606060018054610b4e90613489565b600a546001600160a01b031633146116745760405162461bcd60e51b815260206004820181905260248201526000805160206136fa8339815191526044820152606401610a99565b601555565b600a546001600160a01b031633148061169c5750600b546001600160a01b031633145b6116e85760405162461bcd60e51b815260206004820152601d60248201527f4f6e6c79206f776e6572732063616e206d696e742072657365727665640000006044820152606401610a99565b60165462010000900460ff16156117355760405162461bcd60e51b8152602060048201526011602482015270135a5b9d1a5b99c81a5cc81c185d5cd959607a1b6044820152606401610a99565b600081116117755760405162461bcd60e51b815260206004820152600d60248201526c043616e6e6f74206d696e74203609c1b6044820152606401610a99565b601154816012546117869190613554565b11156117fa5760405162461bcd60e51b815260206004820152602560248201527f43616e6e6f74206d696e74206d6f7265207468616e207265736572766564207360448201527f7570706c790000000000000000000000000000000000000000000000000000006064820152608401610a99565b60125460015b828111610e215761181a336118158385613554565b61266f565b6012805490600061182a83613539565b9190505550808061183a90613539565b915050611800565b6114453383836127bd565b600a546001600160a01b031633146118955760405162461bcd60e51b815260206004820181905260248201526000805160206136fa8339815191526044820152606401610a99565b6016805463ff00000019166301000000179055565b3233146118f95760405162461bcd60e51b815260206004820152601360248201527f4f6e6c792068756d616e7320616c6c6f776564000000000000000000000000006044820152606401610a99565b828260185461195a838380806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250506040516bffffffffffffffffffffffff193360601b1660208201528592506034019050610b1c565b6119a65760405162461bcd60e51b815260206004820152601e60248201527f4164647265737320646f6573206e6f7420657869737420696e206c69737400006044820152606401610a99565b60006119b160085490565b60165490915060ff16611a065760405162461bcd60e51b815260206004820152601e60248201527f50726573616c65206d696e74696e67206973206e6f7420656e61626c656400006044820152606401610a99565b60165462010000900460ff1615611a535760405162461bcd60e51b8152602060048201526011602482015270135a5b9d1a5b99c81a5cc81c185d5cd959607a1b6044820152606401610a99565b60008511611a935760405162461bcd60e51b815260206004820152600d60248201526c043616e6e6f74206d696e74203609c1b6044820152606401610a99565b601354611aa08683613554565b1115611aee5760405162461bcd60e51b815260206004820181905260248201527f43616e6e6f74206d696e74206d6f7265207468616e206d617820737570706c796044820152606401610a99565b60145433600090815260196020526040902054611b0c908790613554565b1115611b5a5760405162461bcd60e51b815260206004820152601a60248201527f4d696e74732065786365656420322070657220616464726573730000000000006044820152606401610a99565b84601054611b6891906134da565b341015611bb75760405162461bcd60e51b815260206004820152600e60248201527f4e6f7420656e6f756768204554480000000000000000000000000000000000006044820152606401610a99565b3360009081526019602052604081208054879290611bd6908490613554565b90915550600190505b858111611c0b57611bf933611bf48385613554565b61288c565b80611c0381613539565b915050611bdf565b5050505050505050565b611c1f3383612352565b611c915760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f7665640000000000000000000000000000006064820152608401610a99565b611c9d848484846128a6565b50505050565b600a546001600160a01b03163314611ceb5760405162461bcd60e51b815260206004820181905260248201526000805160206136fa8339815191526044820152606401610a99565b601855565b600f8054610c7390613489565b6000818152600260205260409020546060906001600160a01b0316611d8a5760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201527f6e6578697374656e7420746f6b656e00000000000000000000000000000000006064820152608401610a99565b6016546301000000900460ff16611dfa57600060178054611daa90613489565b905011611dc65760405180602001604052806000815250610a4f565b6017611dd183612924565b600f604051602001611de593929190613606565b60405160208183030381529060405292915050565b6000611e04612a56565b90506000815111611e245760405180602001604052806000815250611e52565b80611e2e84612924565b600f604051602001611e4293929190613639565b6040516020818303038152906040525b9392505050565b600a546001600160a01b03163314611ea15760405162461bcd60e51b815260206004820181905260248201526000805160206136fa8339815191526044820152606401610a99565b805161144590600f906020840190612f7b565b323314611f035760405162461bcd60e51b815260206004820152601360248201527f4f6e6c792068756d616e7320616c6c6f776564000000000000000000000000006044820152606401610a99565b6000611f0e60085490565b601654909150610100900460ff16611f685760405162461bcd60e51b815260206004820152601d60248201527f5075626c6963206d696e74696e67206973206e6f7420656e61626c65640000006044820152606401610a99565b60165462010000900460ff1615611fb55760405162461bcd60e51b8152602060048201526011602482015270135a5b9d1a5b99c81a5cc81c185d5cd959607a1b6044820152606401610a99565b60008211611ff55760405162461bcd60e51b815260206004820152600d60248201526c043616e6e6f74206d696e74203609c1b6044820152606401610a99565b6013546120028383613554565b11156120505760405162461bcd60e51b815260206004820181905260248201527f43616e6e6f74206d696e74206d6f7265207468616e206d617820737570706c796044820152606401610a99565b6015543360009081526019602052604090205461206e908490613554565b11156120bc5760405162461bcd60e51b815260206004820152601b60248201527f4d696e74732065786365656420313020706572206164647265737300000000006044820152606401610a99565b816010546120ca91906134da565b3410156121195760405162461bcd60e51b815260206004820152600e60248201527f4e6f7420656e6f756768204554480000000000000000000000000000000000006044820152606401610a99565b3360009081526019602052604081208054849290612138908490613554565b90915550600190505b828111610e215761215633611bf48385613554565b8061216081613539565b915050612141565b600a546001600160a01b031633146121b05760405162461bcd60e51b815260206004820181905260248201526000805160206136fa8339815191526044820152606401610a99565b8051611445906017906020840190612f7b565b600a546001600160a01b0316331461220b5760405162461bcd60e51b815260206004820181905260248201526000805160206136fa8339815191526044820152606401610a99565b6001600160a01b0381166122875760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610a99565b6111308161261d565b60006001600160e01b031982167f780e9d63000000000000000000000000000000000000000000000000000000001480610a4f5750610a4f82612a65565b6000826122db8584612b00565b14949350505050565b600081815260046020526040902080546001600160a01b0319166001600160a01b038416908117909155819061231982611449565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000818152600260205260408120546001600160a01b03166123cb5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610a99565b60006123d683611449565b9050806001600160a01b0316846001600160a01b031614806124115750836001600160a01b031661240684610bd1565b6001600160a01b0316145b80610b3757506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff16610b37565b826001600160a01b031661245882611449565b6001600160a01b0316146124d45760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201527f6f776e65720000000000000000000000000000000000000000000000000000006064820152608401610a99565b6001600160a01b03821661254f5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f2061646460448201527f72657373000000000000000000000000000000000000000000000000000000006064820152608401610a99565b61255a838383612b6c565b6125656000826122e4565b6001600160a01b038316600090815260036020526040812080546001929061258e90849061365f565b90915550506001600160a01b03821660009081526003602052604081208054600192906125bc908490613554565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b600a80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b0382166126c55760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610a99565b6000818152600260205260409020546001600160a01b03161561272a5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610a99565b61273660008383612b6c565b6001600160a01b038216600090815260036020526040812080546001929061275f908490613554565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b816001600160a01b0316836001600160a01b0316141561281f5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610a99565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b611445828260405180602001604052806000815250612c24565b6128b1848484612445565b6128bd84848484612ca2565b611c9d5760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b6064820152608401610a99565b60608161296457505060408051808201909152600181527f3000000000000000000000000000000000000000000000000000000000000000602082015290565b8160005b811561298e578061297881613539565b91506129879050600a8361350f565b9150612968565b60008167ffffffffffffffff8111156129a9576129a9613298565b6040519080825280601f01601f1916602001820160405280156129d3576020820181803683370190505b5090505b8415610b37576129e860018361365f565b91506129f5600a86613676565b612a00906030613554565b60f81b818381518110612a1557612a15613523565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350612a4f600a8661350f565b94506129d7565b6060600e8054610b4e90613489565b60006001600160e01b031982167f80ac58cd000000000000000000000000000000000000000000000000000000001480612ac857506001600160e01b031982167f5b5e139f00000000000000000000000000000000000000000000000000000000145b80610a4f57507f01ffc9a7000000000000000000000000000000000000000000000000000000006001600160e01b0319831614610a4f565b600081815b84518110156112f1576000858281518110612b2257612b22613523565b60200260200101519050808311612b485760008381526020829052604090209250612b59565b600081815260208490526040902092505b5080612b6481613539565b915050612b05565b6001600160a01b038316612bc757612bc281600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b612bea565b816001600160a01b0316836001600160a01b031614612bea57612bea8382612deb565b6001600160a01b038216612c0157610e2181612e88565b826001600160a01b0316826001600160a01b031614610e2157610e218282612f37565b612c2e838361266f565b612c3b6000848484612ca2565b610e215760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b6064820152608401610a99565b60006001600160a01b0384163b15612de057604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290612ce690339089908890889060040161368a565b6020604051808303816000875af1925050508015612d21575060408051601f3d908101601f19168201909252612d1e918101906136c6565b60015b612dc6573d808015612d4f576040519150601f19603f3d011682016040523d82523d6000602084013e612d54565b606091505b508051612dbe5760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b6064820152608401610a99565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050610b37565b506001949350505050565b60006001612df8846114d4565b612e02919061365f565b600083815260076020526040902054909150808214612e55576001600160a01b03841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b5060009182526007602090815260408084208490556001600160a01b039094168352600681528383209183525290812055565b600854600090612e9a9060019061365f565b60008381526009602052604081205460088054939450909284908110612ec257612ec2613523565b906000526020600020015490508060088381548110612ee357612ee3613523565b6000918252602080832090910192909255828152600990915260408082208490558582528120556008805480612f1b57612f1b6136e3565b6001900381819060005260206000200160009055905550505050565b6000612f42836114d4565b6001600160a01b039093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b828054612f8790613489565b90600052602060002090601f016020900481019282612fa95760008555612fef565b82601f10612fc257805160ff1916838001178555612fef565b82800160010185558215612fef579182015b82811115612fef578251825591602001919060010190612fd4565b50612ffb929150612fff565b5090565b5b80821115612ffb5760008155600101613000565b6001600160e01b03198116811461113057600080fd5b60006020828403121561303c57600080fd5b8135611e5281613014565b8035801515811461305757600080fd5b919050565b60006020828403121561306e57600080fd5b611e5282613047565b80356001600160a01b038116811461305757600080fd5b60008083601f8401126130a057600080fd5b50813567ffffffffffffffff8111156130b857600080fd5b6020830191508360208260051b85010111156130d357600080fd5b9250929050565b6000806000604084860312156130ef57600080fd5b6130f884613077565b9250602084013567ffffffffffffffff81111561311457600080fd5b6131208682870161308e565b9497909650939450505050565b60005b83811015613148578181015183820152602001613130565b83811115611c9d5750506000910152565b6000815180845261317181602086016020860161312d565b601f01601f19169290920160200192915050565b602081526000611e526020830184613159565b6000602082840312156131aa57600080fd5b5035919050565b600080604083850312156131c457600080fd5b6131cd83613077565b946020939093013593505050565b6000806000606084860312156131f057600080fd5b6131f984613077565b925061320760208501613077565b9150604084013590509250925092565b6000806040838503121561322a57600080fd5b50508035926020909101359150565b60006020828403121561324b57600080fd5b611e5282613077565b6020808252825182820181905260009190848201906040850190845b8181101561328c57835183529284019291840191600101613270565b50909695505050505050565b634e487b7160e01b600052604160045260246000fd5b600067ffffffffffffffff808411156132c9576132c9613298565b604051601f8501601f19908116603f011681019082821181831017156132f1576132f1613298565b8160405280935085815286868601111561330a57600080fd5b858560208301376000602087830101525050509392505050565b60006020828403121561333657600080fd5b813567ffffffffffffffff81111561334d57600080fd5b8201601f8101841361335e57600080fd5b610b37848235602084016132ae565b6000806040838503121561338057600080fd5b61338983613077565b9150610fc660208401613047565b6000806000604084860312156133ac57600080fd5b833567ffffffffffffffff8111156133c357600080fd5b6133cf8682870161308e565b909790965060209590950135949350505050565b600080600080608085870312156133f957600080fd5b61340285613077565b935061341060208601613077565b925060408501359150606085013567ffffffffffffffff81111561343357600080fd5b8501601f8101871361344457600080fd5b613453878235602084016132ae565b91505092959194509250565b6000806040838503121561347257600080fd5b61347b83613077565b9150610fc660208401613077565b600181811c9082168061349d57607f821691505b602082108114156134be57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b60008160001904831182151516156134f4576134f46134c4565b500290565b634e487b7160e01b600052601260045260246000fd5b60008261351e5761351e6134f9565b500490565b634e487b7160e01b600052603260045260246000fd5b600060001982141561354d5761354d6134c4565b5060010190565b60008219821115613567576135676134c4565b500190565b8054600090600181811c908083168061358657607f831692505b60208084108214156135a857634e487b7160e01b600052602260045260246000fd5b8180156135bc57600181146135cd576135fa565b60ff198616895284890196506135fa565b60008881526020902060005b868110156135f25781548b8201529085019083016135d9565b505084890196505b50505050505092915050565b6000613612828661356c565b845161362281836020890161312d565b61362e8183018661356c565b979650505050505050565b6000845161364b81846020890161312d565b84519083019061362281836020890161312d565b600082821015613671576136716134c4565b500390565b600082613685576136856134f9565b500690565b60006001600160a01b038087168352808616602084015250836040830152608060608301526136bc6080830184613159565b9695505050505050565b6000602082840312156136d857600080fd5b8151611e5281613014565b634e487b7160e01b600052603160045260246000fdfe4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572a264697066735822122088b7798324172ebb904f17410063245945f236d747a3789978db23dcc3403cd764736f6c634300080b00334f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000c00000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000014000000000000000000000000000000000000000000000000000000000000000084b6f6f6c4b69647a00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000044b4f4f4c00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000c72657665616c65642075726900000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000036697066733a2f2f516d5a7868526d6767734a6466545a3465695635585142704548437667353874524d54457a3672666172363171522f00000000000000000000

Deployed Bytecode

0x6080604052600436106103605760003560e01c80636352211e116101c6578063ab91628c116100f7578063da3ef23f11610095578063efd0cbf91161006f578063efd0cbf914610990578063f2c4ce1e146109a3578063f2fde38b146109c3578063fbbf8cc3146109e357600080fd5b8063da3ef23f14610911578063e985e9c514610931578063eced55261461097a57600080fd5b8063bd32fb66116100d1578063bd32fb66146108a6578063c6682862146108c6578063c87b56dd146108db578063d5abeb01146108fb57600080fd5b8063ab91628c14610859578063ad7f1ea114610873578063b88d4fde1461088657600080fd5b80638dec9f7a116101645780639a5d140b1161013e5780639a5d140b146107ee578063a22cb4651461080e578063a475b5dd1461082e578063aa98e0c61461084357600080fd5b80638dec9f7a1461079a57806395d89b41146107b9578063993e419e146107ce57600080fd5b80637effc032116101a05780637effc032146107305780638a71bb2d146107465780638aefd9fb1461075c5780638da5cb5b1461077c57600080fd5b80636352211e146106db57806370a08231146106fb578063715018a61461071b57600080fd5b80632f745c59116102a057806344d19d2b1161023e5780634f6ccce7116102185780634f6ccce71461065a578063518302271461067a57806355f804b31461069b5780635c975abb146106bb57600080fd5b806344d19d2b1461060e5780634c00de82146106245780634f297ccc1461064457600080fd5b80634209a2e11161027a5780634209a2e11461058157806342842e0e146105a1578063438b6300146105c157806344a0d68a146105ee57600080fd5b80632f745c59146105395780633ccfd60b1461055957806341e42f301461056157600080fd5b8063095ea7b31161030d57806318160ddd116102e757806318160ddd146104a55780631835dbe6146104ba57806323b872dd146104da5780632a55205a146104fa57600080fd5b8063095ea7b31461044b57806313faede61461046b57806317f7bece1461048f57600080fd5b806306fdde031161033e57806306fdde03146103dc578063081812fc146103fe578063081c8c441461043657600080fd5b806301ffc9a71461036557806302329a291461039a5780630696a825146103bc575b600080fd5b34801561037157600080fd5b5061038561038036600461302a565b610a10565b60405190151581526020015b60405180910390f35b3480156103a657600080fd5b506103ba6103b536600461305c565b610a55565b005b3480156103c857600080fd5b506103856103d73660046130da565b610abe565b3480156103e857600080fd5b506103f1610b3f565b6040516103919190613185565b34801561040a57600080fd5b5061041e610419366004613198565b610bd1565b6040516001600160a01b039091168152602001610391565b34801561044257600080fd5b506103f1610c66565b34801561045757600080fd5b506103ba6104663660046131b1565b610cf4565b34801561047757600080fd5b5061048160105481565b604051908152602001610391565b34801561049b57600080fd5b5061048160155481565b3480156104b157600080fd5b50600854610481565b3480156104c657600080fd5b506103ba6104d536600461305c565b610e26565b3480156104e657600080fd5b506103ba6104f53660046131db565b610e88565b34801561050657600080fd5b5061051a610515366004613217565b610f0f565b604080516001600160a01b039093168352602083019190915201610391565b34801561054557600080fd5b506104816105543660046131b1565b610fcf565b6103ba611077565b34801561056d57600080fd5b506103ba61057c366004613239565b611133565b34801561058d57600080fd5b506103ba61059c366004613198565b61119d565b3480156105ad57600080fd5b506103ba6105bc3660046131db565b61123c565b3480156105cd57600080fd5b506105e16105dc366004613239565b611257565b6040516103919190613254565b3480156105fa57600080fd5b506103ba610609366004613198565b6112f9565b34801561061a57600080fd5b5061048160115481565b34801561063057600080fd5b50600b5461041e906001600160a01b031681565b34801561065057600080fd5b5061048160125481565b34801561066657600080fd5b50610481610675366004613198565b611346565b34801561068657600080fd5b50601654610385906301000000900460ff1681565b3480156106a757600080fd5b506103ba6106b6366004613324565b6113ea565b3480156106c757600080fd5b506016546103859062010000900460ff1681565b3480156106e757600080fd5b5061041e6106f6366004613198565b611449565b34801561070757600080fd5b50610481610716366004613239565b6114d4565b34801561072757600080fd5b506103ba61156e565b34801561073c57600080fd5b5061048160145481565b34801561075257600080fd5b50610481600c5481565b34801561076857600080fd5b506103ba61077736600461305c565b6115c2565b34801561078857600080fd5b50600a546001600160a01b031661041e565b3480156107a657600080fd5b5060165461038590610100900460ff1681565b3480156107c557600080fd5b506103f161161d565b3480156107da57600080fd5b506103ba6107e9366004613198565b61162c565b3480156107fa57600080fd5b506103ba610809366004613198565b611679565b34801561081a57600080fd5b506103ba61082936600461336d565b611842565b34801561083a57600080fd5b506103ba61184d565b34801561084f57600080fd5b5061048160185481565b34801561086557600080fd5b506016546103859060ff1681565b6103ba610881366004613397565b6118aa565b34801561089257600080fd5b506103ba6108a13660046133e3565b611c15565b3480156108b257600080fd5b506103ba6108c1366004613198565b611ca3565b3480156108d257600080fd5b506103f1611cf0565b3480156108e757600080fd5b506103f16108f6366004613198565b611cfd565b34801561090757600080fd5b5061048160135481565b34801561091d57600080fd5b506103ba61092c366004613324565b611e59565b34801561093d57600080fd5b5061038561094c36600461345f565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b34801561098657600080fd5b50610481600d5481565b6103ba61099e366004613198565b611eb4565b3480156109af57600080fd5b506103ba6109be366004613324565b612168565b3480156109cf57600080fd5b506103ba6109de366004613239565b6121c3565b3480156109ef57600080fd5b506104816109fe366004613239565b60196020526000908152604090205481565b6000610a1b82612290565b80610a4f57506001600160e01b031982167f2a55205a00000000000000000000000000000000000000000000000000000000145b92915050565b600a546001600160a01b03163314610aa25760405162461bcd60e51b815260206004820181905260248201526000805160206136fa83398151915260448201526064015b60405180910390fd5b60168054911515620100000262ff000019909216919091179055565b6000610b37838380806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250506018546040516bffffffffffffffffffffffff1960608b901b16602082015290925060340190505b604051602081830303815290604052805190602001206122ce565b949350505050565b606060008054610b4e90613489565b80601f0160208091040260200160405190810160405280929190818152602001828054610b7a90613489565b8015610bc75780601f10610b9c57610100808354040283529160200191610bc7565b820191906000526020600020905b815481529060010190602001808311610baa57829003601f168201915b5050505050905090565b6000818152600260205260408120546001600160a01b0316610c4a5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610a99565b506000908152600460205260409020546001600160a01b031690565b60178054610c7390613489565b80601f0160208091040260200160405190810160405280929190818152602001828054610c9f90613489565b8015610cec5780601f10610cc157610100808354040283529160200191610cec565b820191906000526020600020905b815481529060010190602001808311610ccf57829003601f168201915b505050505081565b6000610cff82611449565b9050806001600160a01b0316836001600160a01b03161415610d895760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560448201527f72000000000000000000000000000000000000000000000000000000000000006064820152608401610a99565b336001600160a01b0382161480610da55750610da5813361094c565b610e175760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610a99565b610e2183836122e4565b505050565b600a546001600160a01b03163314610e6e5760405162461bcd60e51b815260206004820181905260248201526000805160206136fa8339815191526044820152606401610a99565b601680549115156101000261ff0019909216919091179055565b610e923382612352565b610f045760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f7665640000000000000000000000000000006064820152608401610a99565b610e21838383612445565b60008281526002602052604081205481906001600160a01b0316610f9b5760405162461bcd60e51b815260206004820152603360248201527f4552433732314d657461646174613a20526f79616c747920717565727920666f60448201527f72206e6f6e6578697374656e7420746f6b656e000000000000000000000000006064820152608401610a99565b600b54600d54600c546001600160a01b03909216935090610fbc90856134da565b610fc6919061350f565b90509250929050565b6000610fda836114d4565b821061104e5760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201527f74206f6620626f756e64730000000000000000000000000000000000000000006064820152608401610a99565b506001600160a01b03919091166000908152600660209081526040808320938352929052205490565b600a546001600160a01b031633146110bf5760405162461bcd60e51b815260206004820181905260248201526000805160206136fa8339815191526044820152606401610a99565b60006110d3600a546001600160a01b031690565b6001600160a01b03164760405160006040518083038185875af1925050503d806000811461111d576040519150601f19603f3d011682016040523d82523d6000602084013e611122565b606091505b505090508061113057600080fd5b50565b600a546001600160a01b0316331461117b5760405162461bcd60e51b815260206004820181905260248201526000805160206136fa8339815191526044820152606401610a99565b600b80546001600160a01b0319166001600160a01b0392909216919091179055565b600a546001600160a01b031633146111e55760405162461bcd60e51b815260206004820181905260248201526000805160206136fa8339815191526044820152606401610a99565b600d548111156112375760405162461bcd60e51b815260206004820152601b60248201527f526f79616c74792070657263656e7461676520746f6f206869676800000000006044820152606401610a99565b600c55565b610e2183838360405180602001604052806000815250611c15565b60606000611264836114d4565b905060008167ffffffffffffffff81111561128157611281613298565b6040519080825280602002602001820160405280156112aa578160200160208202803683370190505b50905060005b828110156112f1576112c28582610fcf565b8282815181106112d4576112d4613523565b6020908102919091010152806112e981613539565b9150506112b0565b509392505050565b600a546001600160a01b031633146113415760405162461bcd60e51b815260206004820181905260248201526000805160206136fa8339815191526044820152606401610a99565b601055565b600061135160085490565b82106113c55760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201527f7574206f6620626f756e647300000000000000000000000000000000000000006064820152608401610a99565b600882815481106113d8576113d8613523565b90600052602060002001549050919050565b600a546001600160a01b031633146114325760405162461bcd60e51b815260206004820181905260248201526000805160206136fa8339815191526044820152606401610a99565b805161144590600e906020840190612f7b565b5050565b6000818152600260205260408120546001600160a01b031680610a4f5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201527f656e7420746f6b656e00000000000000000000000000000000000000000000006064820152608401610a99565b60006001600160a01b0382166115525760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a6560448201527f726f2061646472657373000000000000000000000000000000000000000000006064820152608401610a99565b506001600160a01b031660009081526003602052604090205490565b600a546001600160a01b031633146115b65760405162461bcd60e51b815260206004820181905260248201526000805160206136fa8339815191526044820152606401610a99565b6115c0600061261d565b565b600a546001600160a01b0316331461160a5760405162461bcd60e51b815260206004820181905260248201526000805160206136fa8339815191526044820152606401610a99565b6016805460ff1916911515919091179055565b606060018054610b4e90613489565b600a546001600160a01b031633146116745760405162461bcd60e51b815260206004820181905260248201526000805160206136fa8339815191526044820152606401610a99565b601555565b600a546001600160a01b031633148061169c5750600b546001600160a01b031633145b6116e85760405162461bcd60e51b815260206004820152601d60248201527f4f6e6c79206f776e6572732063616e206d696e742072657365727665640000006044820152606401610a99565b60165462010000900460ff16156117355760405162461bcd60e51b8152602060048201526011602482015270135a5b9d1a5b99c81a5cc81c185d5cd959607a1b6044820152606401610a99565b600081116117755760405162461bcd60e51b815260206004820152600d60248201526c043616e6e6f74206d696e74203609c1b6044820152606401610a99565b601154816012546117869190613554565b11156117fa5760405162461bcd60e51b815260206004820152602560248201527f43616e6e6f74206d696e74206d6f7265207468616e207265736572766564207360448201527f7570706c790000000000000000000000000000000000000000000000000000006064820152608401610a99565b60125460015b828111610e215761181a336118158385613554565b61266f565b6012805490600061182a83613539565b9190505550808061183a90613539565b915050611800565b6114453383836127bd565b600a546001600160a01b031633146118955760405162461bcd60e51b815260206004820181905260248201526000805160206136fa8339815191526044820152606401610a99565b6016805463ff00000019166301000000179055565b3233146118f95760405162461bcd60e51b815260206004820152601360248201527f4f6e6c792068756d616e7320616c6c6f776564000000000000000000000000006044820152606401610a99565b828260185461195a838380806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250506040516bffffffffffffffffffffffff193360601b1660208201528592506034019050610b1c565b6119a65760405162461bcd60e51b815260206004820152601e60248201527f4164647265737320646f6573206e6f7420657869737420696e206c69737400006044820152606401610a99565b60006119b160085490565b60165490915060ff16611a065760405162461bcd60e51b815260206004820152601e60248201527f50726573616c65206d696e74696e67206973206e6f7420656e61626c656400006044820152606401610a99565b60165462010000900460ff1615611a535760405162461bcd60e51b8152602060048201526011602482015270135a5b9d1a5b99c81a5cc81c185d5cd959607a1b6044820152606401610a99565b60008511611a935760405162461bcd60e51b815260206004820152600d60248201526c043616e6e6f74206d696e74203609c1b6044820152606401610a99565b601354611aa08683613554565b1115611aee5760405162461bcd60e51b815260206004820181905260248201527f43616e6e6f74206d696e74206d6f7265207468616e206d617820737570706c796044820152606401610a99565b60145433600090815260196020526040902054611b0c908790613554565b1115611b5a5760405162461bcd60e51b815260206004820152601a60248201527f4d696e74732065786365656420322070657220616464726573730000000000006044820152606401610a99565b84601054611b6891906134da565b341015611bb75760405162461bcd60e51b815260206004820152600e60248201527f4e6f7420656e6f756768204554480000000000000000000000000000000000006044820152606401610a99565b3360009081526019602052604081208054879290611bd6908490613554565b90915550600190505b858111611c0b57611bf933611bf48385613554565b61288c565b80611c0381613539565b915050611bdf565b5050505050505050565b611c1f3383612352565b611c915760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f7665640000000000000000000000000000006064820152608401610a99565b611c9d848484846128a6565b50505050565b600a546001600160a01b03163314611ceb5760405162461bcd60e51b815260206004820181905260248201526000805160206136fa8339815191526044820152606401610a99565b601855565b600f8054610c7390613489565b6000818152600260205260409020546060906001600160a01b0316611d8a5760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201527f6e6578697374656e7420746f6b656e00000000000000000000000000000000006064820152608401610a99565b6016546301000000900460ff16611dfa57600060178054611daa90613489565b905011611dc65760405180602001604052806000815250610a4f565b6017611dd183612924565b600f604051602001611de593929190613606565b60405160208183030381529060405292915050565b6000611e04612a56565b90506000815111611e245760405180602001604052806000815250611e52565b80611e2e84612924565b600f604051602001611e4293929190613639565b6040516020818303038152906040525b9392505050565b600a546001600160a01b03163314611ea15760405162461bcd60e51b815260206004820181905260248201526000805160206136fa8339815191526044820152606401610a99565b805161144590600f906020840190612f7b565b323314611f035760405162461bcd60e51b815260206004820152601360248201527f4f6e6c792068756d616e7320616c6c6f776564000000000000000000000000006044820152606401610a99565b6000611f0e60085490565b601654909150610100900460ff16611f685760405162461bcd60e51b815260206004820152601d60248201527f5075626c6963206d696e74696e67206973206e6f7420656e61626c65640000006044820152606401610a99565b60165462010000900460ff1615611fb55760405162461bcd60e51b8152602060048201526011602482015270135a5b9d1a5b99c81a5cc81c185d5cd959607a1b6044820152606401610a99565b60008211611ff55760405162461bcd60e51b815260206004820152600d60248201526c043616e6e6f74206d696e74203609c1b6044820152606401610a99565b6013546120028383613554565b11156120505760405162461bcd60e51b815260206004820181905260248201527f43616e6e6f74206d696e74206d6f7265207468616e206d617820737570706c796044820152606401610a99565b6015543360009081526019602052604090205461206e908490613554565b11156120bc5760405162461bcd60e51b815260206004820152601b60248201527f4d696e74732065786365656420313020706572206164647265737300000000006044820152606401610a99565b816010546120ca91906134da565b3410156121195760405162461bcd60e51b815260206004820152600e60248201527f4e6f7420656e6f756768204554480000000000000000000000000000000000006044820152606401610a99565b3360009081526019602052604081208054849290612138908490613554565b90915550600190505b828111610e215761215633611bf48385613554565b8061216081613539565b915050612141565b600a546001600160a01b031633146121b05760405162461bcd60e51b815260206004820181905260248201526000805160206136fa8339815191526044820152606401610a99565b8051611445906017906020840190612f7b565b600a546001600160a01b0316331461220b5760405162461bcd60e51b815260206004820181905260248201526000805160206136fa8339815191526044820152606401610a99565b6001600160a01b0381166122875760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610a99565b6111308161261d565b60006001600160e01b031982167f780e9d63000000000000000000000000000000000000000000000000000000001480610a4f5750610a4f82612a65565b6000826122db8584612b00565b14949350505050565b600081815260046020526040902080546001600160a01b0319166001600160a01b038416908117909155819061231982611449565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000818152600260205260408120546001600160a01b03166123cb5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610a99565b60006123d683611449565b9050806001600160a01b0316846001600160a01b031614806124115750836001600160a01b031661240684610bd1565b6001600160a01b0316145b80610b3757506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff16610b37565b826001600160a01b031661245882611449565b6001600160a01b0316146124d45760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201527f6f776e65720000000000000000000000000000000000000000000000000000006064820152608401610a99565b6001600160a01b03821661254f5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f2061646460448201527f72657373000000000000000000000000000000000000000000000000000000006064820152608401610a99565b61255a838383612b6c565b6125656000826122e4565b6001600160a01b038316600090815260036020526040812080546001929061258e90849061365f565b90915550506001600160a01b03821660009081526003602052604081208054600192906125bc908490613554565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b600a80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b0382166126c55760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610a99565b6000818152600260205260409020546001600160a01b03161561272a5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610a99565b61273660008383612b6c565b6001600160a01b038216600090815260036020526040812080546001929061275f908490613554565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b816001600160a01b0316836001600160a01b0316141561281f5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610a99565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b611445828260405180602001604052806000815250612c24565b6128b1848484612445565b6128bd84848484612ca2565b611c9d5760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b6064820152608401610a99565b60608161296457505060408051808201909152600181527f3000000000000000000000000000000000000000000000000000000000000000602082015290565b8160005b811561298e578061297881613539565b91506129879050600a8361350f565b9150612968565b60008167ffffffffffffffff8111156129a9576129a9613298565b6040519080825280601f01601f1916602001820160405280156129d3576020820181803683370190505b5090505b8415610b37576129e860018361365f565b91506129f5600a86613676565b612a00906030613554565b60f81b818381518110612a1557612a15613523565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350612a4f600a8661350f565b94506129d7565b6060600e8054610b4e90613489565b60006001600160e01b031982167f80ac58cd000000000000000000000000000000000000000000000000000000001480612ac857506001600160e01b031982167f5b5e139f00000000000000000000000000000000000000000000000000000000145b80610a4f57507f01ffc9a7000000000000000000000000000000000000000000000000000000006001600160e01b0319831614610a4f565b600081815b84518110156112f1576000858281518110612b2257612b22613523565b60200260200101519050808311612b485760008381526020829052604090209250612b59565b600081815260208490526040902092505b5080612b6481613539565b915050612b05565b6001600160a01b038316612bc757612bc281600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b612bea565b816001600160a01b0316836001600160a01b031614612bea57612bea8382612deb565b6001600160a01b038216612c0157610e2181612e88565b826001600160a01b0316826001600160a01b031614610e2157610e218282612f37565b612c2e838361266f565b612c3b6000848484612ca2565b610e215760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b6064820152608401610a99565b60006001600160a01b0384163b15612de057604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290612ce690339089908890889060040161368a565b6020604051808303816000875af1925050508015612d21575060408051601f3d908101601f19168201909252612d1e918101906136c6565b60015b612dc6573d808015612d4f576040519150601f19603f3d011682016040523d82523d6000602084013e612d54565b606091505b508051612dbe5760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b6064820152608401610a99565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050610b37565b506001949350505050565b60006001612df8846114d4565b612e02919061365f565b600083815260076020526040902054909150808214612e55576001600160a01b03841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b5060009182526007602090815260408084208490556001600160a01b039094168352600681528383209183525290812055565b600854600090612e9a9060019061365f565b60008381526009602052604081205460088054939450909284908110612ec257612ec2613523565b906000526020600020015490508060088381548110612ee357612ee3613523565b6000918252602080832090910192909255828152600990915260408082208490558582528120556008805480612f1b57612f1b6136e3565b6001900381819060005260206000200160009055905550505050565b6000612f42836114d4565b6001600160a01b039093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b828054612f8790613489565b90600052602060002090601f016020900481019282612fa95760008555612fef565b82601f10612fc257805160ff1916838001178555612fef565b82800160010185558215612fef579182015b82811115612fef578251825591602001919060010190612fd4565b50612ffb929150612fff565b5090565b5b80821115612ffb5760008155600101613000565b6001600160e01b03198116811461113057600080fd5b60006020828403121561303c57600080fd5b8135611e5281613014565b8035801515811461305757600080fd5b919050565b60006020828403121561306e57600080fd5b611e5282613047565b80356001600160a01b038116811461305757600080fd5b60008083601f8401126130a057600080fd5b50813567ffffffffffffffff8111156130b857600080fd5b6020830191508360208260051b85010111156130d357600080fd5b9250929050565b6000806000604084860312156130ef57600080fd5b6130f884613077565b9250602084013567ffffffffffffffff81111561311457600080fd5b6131208682870161308e565b9497909650939450505050565b60005b83811015613148578181015183820152602001613130565b83811115611c9d5750506000910152565b6000815180845261317181602086016020860161312d565b601f01601f19169290920160200192915050565b602081526000611e526020830184613159565b6000602082840312156131aa57600080fd5b5035919050565b600080604083850312156131c457600080fd5b6131cd83613077565b946020939093013593505050565b6000806000606084860312156131f057600080fd5b6131f984613077565b925061320760208501613077565b9150604084013590509250925092565b6000806040838503121561322a57600080fd5b50508035926020909101359150565b60006020828403121561324b57600080fd5b611e5282613077565b6020808252825182820181905260009190848201906040850190845b8181101561328c57835183529284019291840191600101613270565b50909695505050505050565b634e487b7160e01b600052604160045260246000fd5b600067ffffffffffffffff808411156132c9576132c9613298565b604051601f8501601f19908116603f011681019082821181831017156132f1576132f1613298565b8160405280935085815286868601111561330a57600080fd5b858560208301376000602087830101525050509392505050565b60006020828403121561333657600080fd5b813567ffffffffffffffff81111561334d57600080fd5b8201601f8101841361335e57600080fd5b610b37848235602084016132ae565b6000806040838503121561338057600080fd5b61338983613077565b9150610fc660208401613047565b6000806000604084860312156133ac57600080fd5b833567ffffffffffffffff8111156133c357600080fd5b6133cf8682870161308e565b909790965060209590950135949350505050565b600080600080608085870312156133f957600080fd5b61340285613077565b935061341060208601613077565b925060408501359150606085013567ffffffffffffffff81111561343357600080fd5b8501601f8101871361344457600080fd5b613453878235602084016132ae565b91505092959194509250565b6000806040838503121561347257600080fd5b61347b83613077565b9150610fc660208401613077565b600181811c9082168061349d57607f821691505b602082108114156134be57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b60008160001904831182151516156134f4576134f46134c4565b500290565b634e487b7160e01b600052601260045260246000fd5b60008261351e5761351e6134f9565b500490565b634e487b7160e01b600052603260045260246000fd5b600060001982141561354d5761354d6134c4565b5060010190565b60008219821115613567576135676134c4565b500190565b8054600090600181811c908083168061358657607f831692505b60208084108214156135a857634e487b7160e01b600052602260045260246000fd5b8180156135bc57600181146135cd576135fa565b60ff198616895284890196506135fa565b60008881526020902060005b868110156135f25781548b8201529085019083016135d9565b505084890196505b50505050505092915050565b6000613612828661356c565b845161362281836020890161312d565b61362e8183018661356c565b979650505050505050565b6000845161364b81846020890161312d565b84519083019061362281836020890161312d565b600082821015613671576136716134c4565b500390565b600082613685576136856134f9565b500690565b60006001600160a01b038087168352808616602084015250836040830152608060608301526136bc6080830184613159565b9695505050505050565b6000602082840312156136d857600080fd5b8151611e5281613014565b634e487b7160e01b600052603160045260246000fdfe4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572a264697066735822122088b7798324172ebb904f17410063245945f236d747a3789978db23dcc3403cd764736f6c634300080b0033

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

000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000c00000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000014000000000000000000000000000000000000000000000000000000000000000084b6f6f6c4b69647a00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000044b4f4f4c00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000c72657665616c65642075726900000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000036697066733a2f2f516d5a7868526d6767734a6466545a3465695635585142704548437667353874524d54457a3672666172363171522f00000000000000000000

-----Decoded View---------------
Arg [0] : _name (string): KoolKidz
Arg [1] : _symbol (string): KOOL
Arg [2] : _initBaseURI (string): revealed uri
Arg [3] : _initNotRevealedUri (string): ipfs://QmZxhRmggsJdfTZ4eiV5XQBpEHCvg58tRMTEz6rfar61qR/

-----Encoded View---------------
13 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000080
Arg [1] : 00000000000000000000000000000000000000000000000000000000000000c0
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000100
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000140
Arg [4] : 0000000000000000000000000000000000000000000000000000000000000008
Arg [5] : 4b6f6f6c4b69647a000000000000000000000000000000000000000000000000
Arg [6] : 0000000000000000000000000000000000000000000000000000000000000004
Arg [7] : 4b4f4f4c00000000000000000000000000000000000000000000000000000000
Arg [8] : 000000000000000000000000000000000000000000000000000000000000000c
Arg [9] : 72657665616c6564207572690000000000000000000000000000000000000000
Arg [10] : 0000000000000000000000000000000000000000000000000000000000000036
Arg [11] : 697066733a2f2f516d5a7868526d6767734a6466545a34656956355851427045
Arg [12] : 48437667353874524d54457a3672666172363171522f00000000000000000000


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.