ETH Price: $2,358.03 (+0.72%)
Gas: 5.86 Gwei

Token

CryptoFamers (CF)
 

Overview

Max Total Supply

192 CF

Holders

95

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Filtered by Token Holder
ninechain.eth
Balance
1 CF
0xf6e7a49f408c1ad6e94d2251280aa13fd8ade519
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:
CryptoFamer

Compiler Version
v0.8.4+commit.c7e474f2

Optimization Enabled:
Yes with 1000 runs

Other Settings:
default evmVersion
File 1 of 16 : CryptoFamer.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.4;
import "erc721a/contracts/ERC721A.sol";
import "@openzeppelin/contracts/access/AccessControlEnumerable.sol";
import '@openzeppelin/contracts/utils/Strings.sol';

contract CryptoFamer is ERC721A, AccessControlEnumerable {
    using Strings for uint256;

    address constant private economist = 0x7632af0c66d707747c493cFC190591A12C64A812;
    address constant private dev = 0xa5C26Bc9c86Fc70D3cEd078F46B52342B8Bd8FE6;
    address constant private dev2 = 0xE69B1D13682eEc14505B0E54c8696eaFD5F964fB;

    bytes32 private constant OPERATOR = keccak256("OPERATOR");

    uint256 constant public MAX_SUPPLY = 1337;
    uint256 public tierSupply = 200;

    uint256 public mintPrice = 0.1 ether;
    uint256 public whitelistPrice = 0.08 ether;

    uint256 public maxAmountPerMint = 5;

    string internal _baseUri = '';

    bool public isPublicSaleActive = false;
    uint256 public publicSaleStartTime = 1648270800;


    bool public isWhitelistSaleActive = false;
    uint256 public whitelistSaleStartTime = 1648260000;


    mapping(address => uint256) public whitelist;


    modifier callerIsUser() {
        require(tx.origin == msg.sender, "The caller is another contract");
        _;
    }

    event WhitelistMint_Started();
    event WhitelistMint_Stopped();
    event PublicSale_Started();
    event PublicSale_Stopped();
    event TokenMinted(uint256 supply);

    constructor() ERC721A("CryptoFamers", "CF") {
        _setupRole(DEFAULT_ADMIN_ROLE, _msgSender());
        _setupRole(OPERATOR, _msgSender());
        _setupRole(OPERATOR, economist);
        _setupRole(OPERATOR, dev);
        _setupRole(OPERATOR, dev2);
    }

    /*
        Access control settings
    */

    function transferOwnership(address newOwner) external onlyRole(DEFAULT_ADMIN_ROLE) {
        require(newOwner != address(0), 'ERC721A: mint to the zero address');
        address oldOwner = _msgSender();
        grantRole(DEFAULT_ADMIN_ROLE, newOwner);
        revokeRole(DEFAULT_ADMIN_ROLE, oldOwner);
    }

    function addOperator(address newOperator) external onlyRole(DEFAULT_ADMIN_ROLE) {
        require(newOperator != address(0), 'Add zero address as admin');
        grantRole(OPERATOR, newOperator);
    }

    function revokeOperator(address toRemove) external onlyRole(DEFAULT_ADMIN_ROLE) {
        revokeRole(OPERATOR, toRemove);
    }

    function owner() external view returns(address) {
        return getRoleMember(DEFAULT_ADMIN_ROLE, 0);
    }

    function getOperators() external view returns(address[] memory) {
        uint256 length = getRoleMemberCount(OPERATOR);

        address[] memory rets = new address[](length);

        for (uint256 i; i < length ; i++) {
            rets[i] = getRoleMember(OPERATOR, i);
        }
        return rets;
    }

    /*
        Variable settings
    */
    function setTierSupply(uint256 newTierSupply) public onlyRole(OPERATOR) {
        require(newTierSupply <= MAX_SUPPLY, 'Exceed max supply');
        require(newTierSupply >= totalSupply(), 'Tier supply should be greater than total supply');
        tierSupply = newTierSupply;
    }

    function setMintPrice(uint256 newMintPrice) public onlyRole(OPERATOR) {
        mintPrice = newMintPrice;
    }

    function setWhitelistMintPrice(uint256 newWLMintPrice) public onlyRole(OPERATOR) {
        whitelistPrice = newWLMintPrice;
    }

    function setMaxAmountPerMint(uint256 newMaxAmountPerMint) public onlyRole(OPERATOR) {
        maxAmountPerMint = newMaxAmountPerMint;
    }

    function setBaseURI(string memory newBaseUri) external onlyRole(OPERATOR){ 
        _baseUri = newBaseUri;
    }


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

    /*
        white list setting
    */
    function setWhitelist(address[] memory addresses, uint256[] memory numSlots)
        external
        onlyRole(OPERATOR)
    {
        require(
        addresses.length == numSlots.length,
        "addresses does not match numSlots length"
        );
        for (uint256 i = 0; i < addresses.length; i++) {
        whitelist[addresses[i]] = numSlots[i];
        }
    }


    /*
        sale settings
    */
    function flipPublicSaleActive() public onlyRole(OPERATOR) {
        isPublicSaleActive = !isPublicSaleActive;
        if (isPublicSaleActive) {
            emit PublicSale_Started();
        } else {
            emit PublicSale_Stopped();
        }
    }

    function setPublicSaleTime(uint256 newStartTime) public onlyRole(OPERATOR) {
        publicSaleStartTime = newStartTime;
    }

    function flipWhitelistSaleActive() public onlyRole(OPERATOR) {
        isWhitelistSaleActive = !isWhitelistSaleActive;
        if (isWhitelistSaleActive) {
            emit WhitelistMint_Started();
        } else {
            emit WhitelistMint_Stopped();
        }
    }

    function setWhitelistSaleTime(uint256 newStartTime) public onlyRole(OPERATOR) {
        whitelistSaleStartTime = newStartTime;
    }


    /*
        mint
    */

    function isPublicSaleOn() public view returns (bool) {
        return
        isPublicSaleActive &&
        block.timestamp >= publicSaleStartTime;
    }

    function publicSaleMint(uint256 quantity) external payable callerIsUser {

        require(isPublicSaleOn(), 'Sale not active');
        require(totalSupply() + quantity <= tierSupply, 'Sale would exceed tier supply');
        require(quantity <= maxAmountPerMint, 'Sale would exceed max mint per mint');
        require(quantity * mintPrice <= msg.value, 'Not enough ether sent');
        _safeMint(msg.sender, quantity);
        emit TokenMinted(totalSupply());
    }

    function isWhitelistSaleOn() public view returns (bool) {
        return
        isWhitelistSaleActive &&
        block.timestamp >= whitelistSaleStartTime;
    }

    function whitelistMint() external payable callerIsUser {
        require(isWhitelistSaleOn(), "whitelist sale has not begun yet");
        require(whitelist[msg.sender] > 0, "not eligible for whitelist mint");
        require(totalSupply() + 1 <= tierSupply, "reached max supply");
        require(whitelistPrice <= msg.value, 'Not enough ether sent');
        whitelist[msg.sender]--;
        _safeMint(msg.sender, 1);
        emit TokenMinted(totalSupply());
    }

    // For marketing etc.
    function devMint(uint256 quantity) external onlyRole(DEFAULT_ADMIN_ROLE) {
        require(
        totalSupply() + quantity <= tierSupply,
        "Will exceed tier supply"
        );
        _safeMint(msg.sender, quantity);
        emit TokenMinted(totalSupply());

    }

    function tokenURI(uint256 tokenId) public view 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(), '.json')) : '';
    }

    function supportsInterface(bytes4 interfaceId)
        public
        view
        virtual
        override(AccessControlEnumerable, ERC721A)
        returns (bool)
    {
        return super.supportsInterface(interfaceId);
    }

    function withdraw() public onlyRole(OPERATOR) {
        uint256 balance = address(this).balance;
        if (totalSupply() >= 201) {
            uint256 devShare = balance * 375 / 10000;
            uint256 ownerShare = balance - 2 * devShare;
            require(payable(dev).send(devShare), "Send Failed");
            require(payable(dev2).send(devShare), "Send Failed");
            require(payable(economist).send(ownerShare), "Send Failed");
        } else {
            require(payable(economist).send(balance), "Send Failed");
        }
    }

}

File 2 of 16 : ERC721A.sol
// SPDX-License-Identifier: MIT
// Creator: Chiru Labs

pragma solidity ^0.8.4;

import '@openzeppelin/contracts/token/ERC721/IERC721.sol';
import '@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol';
import '@openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata.sol';
import '@openzeppelin/contracts/token/ERC721/extensions/IERC721Enumerable.sol';
import '@openzeppelin/contracts/utils/Address.sol';
import '@openzeppelin/contracts/utils/Context.sol';
import '@openzeppelin/contracts/utils/Strings.sol';
import '@openzeppelin/contracts/utils/introspection/ERC165.sol';

error ApprovalCallerNotOwnerNorApproved();
error ApprovalQueryForNonexistentToken();
error ApproveToCaller();
error ApprovalToCurrentOwner();
error BalanceQueryForZeroAddress();
error MintedQueryForZeroAddress();
error BurnedQueryForZeroAddress();
error MintToZeroAddress();
error MintZeroQuantity();
error OwnerIndexOutOfBounds();
error OwnerQueryForNonexistentToken();
error TokenIndexOutOfBounds();
error TransferCallerNotOwnerNorApproved();
error TransferFromIncorrectOwner();
error TransferToNonERC721ReceiverImplementer();
error TransferToZeroAddress();
error URIQueryForNonexistentToken();

/**
 * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
 * the Metadata and Enumerable extension. Built to optimize for lower gas during batch mints.
 *
 * Assumes serials are sequentially minted starting at 0 (e.g. 0, 1, 2, 3..).
 *
 * Assumes that an owner cannot have more than 2**64 - 1 (max value of uint64) of supply.
 *
 * Assumes that the maximum token id cannot exceed 2**128 - 1 (max value of uint128).
 */
contract ERC721A is Context, ERC165, IERC721, IERC721Metadata, IERC721Enumerable {
    using Address for address;
    using Strings for uint256;

    // Compiler will pack this into a single 256bit word.
    struct TokenOwnership {
        // The address of the owner.
        address addr;
        // Keeps track of the start time of ownership with minimal overhead for tokenomics.
        uint64 startTimestamp;
        // Whether the token has been burned.
        bool burned;
    }

    // Compiler will pack this into a single 256bit word.
    struct AddressData {
        // Realistically, 2**64-1 is more than enough.
        uint64 balance;
        // Keeps track of mint count with minimal overhead for tokenomics.
        uint64 numberMinted;
        // Keeps track of burn count with minimal overhead for tokenomics.
        uint64 numberBurned;
    }

    // Compiler will pack the following 
    // _currentIndex and _burnCounter into a single 256bit word.
    
    // The tokenId of the next token to be minted.
    uint128 internal _currentIndex;

    // The number of tokens burned.
    uint128 internal _burnCounter;

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

    // Mapping from token ID to ownership details
    // An empty struct value does not necessarily mean the token is unowned. See ownershipOf implementation for details.
    mapping(uint256 => TokenOwnership) internal _ownerships;

    // Mapping owner address to address data
    mapping(address => AddressData) private _addressData;

    // 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;

    constructor(string memory name_, string memory symbol_) {
        _name = name_;
        _symbol = symbol_;
    }

    /**
     * @dev See {IERC721Enumerable-totalSupply}.
     */
    function totalSupply() public view override returns (uint256) {
        // Counter underflow is impossible as _burnCounter cannot be incremented
        // more than _currentIndex times
        unchecked {
            return _currentIndex - _burnCounter;    
        }
    }

    /**
     * @dev See {IERC721Enumerable-tokenByIndex}.
     * This read function is O(totalSupply). If calling from a separate contract, be sure to test gas first.
     * It may also degrade with extremely large collection sizes (e.g >> 10000), test for your use case.
     */
    function tokenByIndex(uint256 index) public view override returns (uint256) {
        uint256 numMintedSoFar = _currentIndex;
        uint256 tokenIdsIdx;

        // Counter overflow is impossible as the loop breaks when
        // uint256 i is equal to another uint256 numMintedSoFar.
        unchecked {
            for (uint256 i; i < numMintedSoFar; i++) {
                TokenOwnership memory ownership = _ownerships[i];
                if (!ownership.burned) {
                    if (tokenIdsIdx == index) {
                        return i;
                    }
                    tokenIdsIdx++;
                }
            }
        }
        revert TokenIndexOutOfBounds();
    }

    /**
     * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}.
     * This read function is O(totalSupply). If calling from a separate contract, be sure to test gas first.
     * It may also degrade with extremely large collection sizes (e.g >> 10000), test for your use case.
     */
    function tokenOfOwnerByIndex(address owner, uint256 index) public view override returns (uint256) {
        if (index >= balanceOf(owner)) revert OwnerIndexOutOfBounds();
        uint256 numMintedSoFar = _currentIndex;
        uint256 tokenIdsIdx;
        address currOwnershipAddr;

        // Counter overflow is impossible as the loop breaks when
        // uint256 i is equal to another uint256 numMintedSoFar.
        unchecked {
            for (uint256 i; i < numMintedSoFar; i++) {
                TokenOwnership memory ownership = _ownerships[i];
                if (ownership.burned) {
                    continue;
                }
                if (ownership.addr != address(0)) {
                    currOwnershipAddr = ownership.addr;
                }
                if (currOwnershipAddr == owner) {
                    if (tokenIdsIdx == index) {
                        return i;
                    }
                    tokenIdsIdx++;
                }
            }
        }

        // Execution should never reach this point.
        revert();
    }

    /**
     * @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 ||
            interfaceId == type(IERC721Enumerable).interfaceId ||
            super.supportsInterface(interfaceId);
    }

    /**
     * @dev See {IERC721-balanceOf}.
     */
    function balanceOf(address owner) public view override returns (uint256) {
        if (owner == address(0)) revert BalanceQueryForZeroAddress();
        return uint256(_addressData[owner].balance);
    }

    function _numberMinted(address owner) internal view returns (uint256) {
        if (owner == address(0)) revert MintedQueryForZeroAddress();
        return uint256(_addressData[owner].numberMinted);
    }

    function _numberBurned(address owner) internal view returns (uint256) {
        if (owner == address(0)) revert BurnedQueryForZeroAddress();
        return uint256(_addressData[owner].numberBurned);
    }

    /**
     * Gas spent here starts off proportional to the maximum mint batch size.
     * It gradually moves to O(1) as tokens get transferred around in the collection over time.
     */
    function ownershipOf(uint256 tokenId) internal view returns (TokenOwnership memory) {
        uint256 curr = tokenId;

        unchecked {
            if (curr < _currentIndex) {
                TokenOwnership memory ownership = _ownerships[curr];
                if (!ownership.burned) {
                    if (ownership.addr != address(0)) {
                        return ownership;
                    }
                    // Invariant: 
                    // There will always be an ownership that has an address and is not burned 
                    // before an ownership that does not have an address and is not burned.
                    // Hence, curr will not underflow.
                    while (true) {
                        curr--;
                        ownership = _ownerships[curr];
                        if (ownership.addr != address(0)) {
                            return ownership;
                        }
                    }
                }
            }
        }
        revert OwnerQueryForNonexistentToken();
    }

    /**
     * @dev See {IERC721-ownerOf}.
     */
    function ownerOf(uint256 tokenId) public view override returns (address) {
        return ownershipOf(tokenId).addr;
    }

    /**
     * @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) {
        if (!_exists(tokenId)) revert URIQueryForNonexistentToken();

        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 override {
        address owner = ERC721A.ownerOf(tokenId);
        if (to == owner) revert ApprovalToCurrentOwner();

        if (_msgSender() != owner && !isApprovedForAll(owner, _msgSender())) {
            revert ApprovalCallerNotOwnerNorApproved();
        }

        _approve(to, tokenId, owner);
    }

    /**
     * @dev See {IERC721-getApproved}.
     */
    function getApproved(uint256 tokenId) public view override returns (address) {
        if (!_exists(tokenId)) revert ApprovalQueryForNonexistentToken();

        return _tokenApprovals[tokenId];
    }

    /**
     * @dev See {IERC721-setApprovalForAll}.
     */
    function setApprovalForAll(address operator, bool approved) public override {
        if (operator == _msgSender()) revert ApproveToCaller();

        _operatorApprovals[_msgSender()][operator] = approved;
        emit ApprovalForAll(_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 {
        _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 {
        _transfer(from, to, tokenId);
        if (!_checkOnERC721Received(from, to, tokenId, _data)) {
            revert TransferToNonERC721ReceiverImplementer();
        }
    }

    /**
     * @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`),
     */
    function _exists(uint256 tokenId) internal view returns (bool) {
        return tokenId < _currentIndex && !_ownerships[tokenId].burned;
    }

    function _safeMint(address to, uint256 quantity) internal {
        _safeMint(to, quantity, '');
    }

    /**
     * @dev Safely mints `quantity` tokens and transfers them to `to`.
     *
     * Requirements:
     *
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called for each safe transfer.
     * - `quantity` must be greater than 0.
     *
     * Emits a {Transfer} event.
     */
    function _safeMint(
        address to,
        uint256 quantity,
        bytes memory _data
    ) internal {
        _mint(to, quantity, _data, true);
    }

    /**
     * @dev Mints `quantity` tokens and transfers them to `to`.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - `quantity` must be greater than 0.
     *
     * Emits a {Transfer} event.
     */
    function _mint(
        address to,
        uint256 quantity,
        bytes memory _data,
        bool safe
    ) internal {
        uint256 startTokenId = _currentIndex;
        if (to == address(0)) revert MintToZeroAddress();
        if (quantity == 0) revert MintZeroQuantity();

        _beforeTokenTransfers(address(0), to, startTokenId, quantity);

        // Overflows are incredibly unrealistic.
        // balance or numberMinted overflow if current value of either + quantity > 3.4e38 (2**128) - 1
        // updatedIndex overflows if _currentIndex + quantity > 3.4e38 (2**128) - 1
        unchecked {
            _addressData[to].balance += uint64(quantity);
            _addressData[to].numberMinted += uint64(quantity);

            _ownerships[startTokenId].addr = to;
            _ownerships[startTokenId].startTimestamp = uint64(block.timestamp);

            uint256 updatedIndex = startTokenId;

            for (uint256 i; i < quantity; i++) {
                emit Transfer(address(0), to, updatedIndex);
                if (safe && !_checkOnERC721Received(address(0), to, updatedIndex, _data)) {
                    revert TransferToNonERC721ReceiverImplementer();
                }
                updatedIndex++;
            }

            _currentIndex = uint128(updatedIndex);
        }
        _afterTokenTransfers(address(0), to, startTokenId, quantity);
    }

    /**
     * @dev Transfers `tokenId` from `from` to `to`.
     *
     * 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
    ) private {
        TokenOwnership memory prevOwnership = ownershipOf(tokenId);

        bool isApprovedOrOwner = (_msgSender() == prevOwnership.addr ||
            isApprovedForAll(prevOwnership.addr, _msgSender()) ||
            getApproved(tokenId) == _msgSender());

        if (!isApprovedOrOwner) revert TransferCallerNotOwnerNorApproved();
        if (prevOwnership.addr != from) revert TransferFromIncorrectOwner();
        if (to == address(0)) revert TransferToZeroAddress();

        _beforeTokenTransfers(from, to, tokenId, 1);

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

        // Underflow of the sender's balance is impossible because we check for
        // ownership above and the recipient's balance can't realistically overflow.
        // Counter overflow is incredibly unrealistic as tokenId would have to be 2**128.
        unchecked {
            _addressData[from].balance -= 1;
            _addressData[to].balance += 1;

            _ownerships[tokenId].addr = to;
            _ownerships[tokenId].startTimestamp = uint64(block.timestamp);

            // If the ownership slot of tokenId+1 is not explicitly set, that means the transfer initiator owns it.
            // Set the slot of tokenId+1 explicitly in storage to maintain correctness for ownerOf(tokenId+1) calls.
            uint256 nextTokenId = tokenId + 1;
            if (_ownerships[nextTokenId].addr == address(0)) {
                // This will suffice for checking _exists(nextTokenId),
                // as a burned slot cannot contain the zero address.
                if (nextTokenId < _currentIndex) {
                    _ownerships[nextTokenId].addr = prevOwnership.addr;
                    _ownerships[nextTokenId].startTimestamp = prevOwnership.startTimestamp;
                }
            }
        }

        emit Transfer(from, to, tokenId);
        _afterTokenTransfers(from, to, tokenId, 1);
    }

    /**
     * @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 {
        TokenOwnership memory prevOwnership = ownershipOf(tokenId);

        _beforeTokenTransfers(prevOwnership.addr, address(0), tokenId, 1);

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

        // Underflow of the sender's balance is impossible because we check for
        // ownership above and the recipient's balance can't realistically overflow.
        // Counter overflow is incredibly unrealistic as tokenId would have to be 2**128.
        unchecked {
            _addressData[prevOwnership.addr].balance -= 1;
            _addressData[prevOwnership.addr].numberBurned += 1;

            // Keep track of who burned the token, and the timestamp of burning.
            _ownerships[tokenId].addr = prevOwnership.addr;
            _ownerships[tokenId].startTimestamp = uint64(block.timestamp);
            _ownerships[tokenId].burned = true;

            // If the ownership slot of tokenId+1 is not explicitly set, that means the burn initiator owns it.
            // Set the slot of tokenId+1 explicitly in storage to maintain correctness for ownerOf(tokenId+1) calls.
            uint256 nextTokenId = tokenId + 1;
            if (_ownerships[nextTokenId].addr == address(0)) {
                // This will suffice for checking _exists(nextTokenId),
                // as a burned slot cannot contain the zero address.
                if (nextTokenId < _currentIndex) {
                    _ownerships[nextTokenId].addr = prevOwnership.addr;
                    _ownerships[nextTokenId].startTimestamp = prevOwnership.startTimestamp;
                }
            }
        }

        emit Transfer(prevOwnership.addr, address(0), tokenId);
        _afterTokenTransfers(prevOwnership.addr, address(0), tokenId, 1);

        // Overflow not possible, as _burnCounter cannot be exceed _currentIndex times.
        unchecked { 
            _burnCounter++;
        }
    }

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

    /**
     * @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(to).onERC721Received.selector;
            } catch (bytes memory reason) {
                if (reason.length == 0) {
                    revert TransferToNonERC721ReceiverImplementer();
                } else {
                    assembly {
                        revert(add(32, reason), mload(reason))
                    }
                }
            }
        } else {
            return true;
        }
    }

    /**
     * @dev Hook that is called before a set of serially-ordered token ids are about to be transferred. This includes minting.
     * And also called before burning one token.
     *
     * startTokenId - the first token id to be transferred
     * quantity - the amount to be transferred
     *
     * 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, `tokenId` will be burned by `from`.
     * - `from` and `to` are never both zero.
     */
    function _beforeTokenTransfers(
        address from,
        address to,
        uint256 startTokenId,
        uint256 quantity
    ) internal virtual {}

    /**
     * @dev Hook that is called after a set of serially-ordered token ids have been transferred. This includes
     * minting.
     * And also called after one token has been burned.
     *
     * startTokenId - the first token id to be transferred
     * quantity - the amount to be transferred
     *
     * Calling conditions:
     *
     * - When `from` and `to` are both non-zero, `from`'s `tokenId` has been
     * transferred to `to`.
     * - When `from` is zero, `tokenId` has been minted for `to`.
     * - When `to` is zero, `tokenId` has been burned by `from`.
     * - `from` and `to` are never both zero.
     */
    function _afterTokenTransfers(
        address from,
        address to,
        uint256 startTokenId,
        uint256 quantity
    ) internal virtual {}
}

File 3 of 16 : AccessControlEnumerable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (access/AccessControlEnumerable.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

File 4 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 5 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 6 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 7 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 8 of 16 : IERC721Enumerable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.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 9 of 16 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (utils/Address.sol)

pragma solidity ^0.8.1;

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

        return account.code.length > 0;
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

import "./IAccessControl.sol";

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

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

File 14 of 16 : AccessControl.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (access/AccessControl.sol)

pragma solidity ^0.8.0;

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

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

    mapping(bytes32 => RoleData) private _roles;

    bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00;

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

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

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

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

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

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

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

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

        _revokeRole(role, account);
    }

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

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

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

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

File 15 of 16 : EnumerableSet.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/structs/EnumerableSet.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

            return true;
        } else {
            return false;
        }
    }

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

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

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

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

    // Bytes32Set

    struct Bytes32Set {
        Set _inner;
    }

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

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

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

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

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

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

    // AddressSet

    struct AddressSet {
        Set _inner;
    }

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

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

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

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

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

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

        assembly {
            result := store
        }

        return result;
    }

    // UintSet

    struct UintSet {
        Set _inner;
    }

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

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

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

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

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

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

        assembly {
            result := store
        }

        return result;
    }
}

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

Contract Security Audit

Contract ABI

[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"ApprovalToCurrentOwner","type":"error"},{"inputs":[],"name":"ApproveToCaller","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[],"name":"OwnerIndexOutOfBounds","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"TokenIndexOutOfBounds","type":"error"},{"inputs":[],"name":"TransferCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"TransferFromIncorrectOwner","type":"error"},{"inputs":[],"name":"TransferToNonERC721ReceiverImplementer","type":"error"},{"inputs":[],"name":"TransferToZeroAddress","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[],"name":"PublicSale_Started","type":"event"},{"anonymous":false,"inputs":[],"name":"PublicSale_Stopped","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"previousAdminRole","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"newAdminRole","type":"bytes32"}],"name":"RoleAdminChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleGranted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleRevoked","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"supply","type":"uint256"}],"name":"TokenMinted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[],"name":"WhitelistMint_Started","type":"event"},{"anonymous":false,"inputs":[],"name":"WhitelistMint_Stopped","type":"event"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOperator","type":"address"}],"name":"addOperator","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"devMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"flipPublicSaleActive","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"flipWhitelistSaleActive","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getOperators","outputs":[{"internalType":"address[]","name":"","type":"address[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleAdmin","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"getRoleMember","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleMemberCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"grantRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"hasRole","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isPublicSaleActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isPublicSaleOn","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isWhitelistSaleActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isWhitelistSaleOn","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxAmountPerMint","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mintPrice","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":"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":"uint256","name":"quantity","type":"uint256"}],"name":"publicSaleMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"publicSaleStartTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"renounceRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"toRemove","type":"address"}],"name":"revokeOperator","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"revokeRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"newBaseUri","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newMaxAmountPerMint","type":"uint256"}],"name":"setMaxAmountPerMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newMintPrice","type":"uint256"}],"name":"setMintPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newStartTime","type":"uint256"}],"name":"setPublicSaleTime","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newTierSupply","type":"uint256"}],"name":"setTierSupply","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"addresses","type":"address[]"},{"internalType":"uint256[]","name":"numSlots","type":"uint256[]"}],"name":"setWhitelist","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newWLMintPrice","type":"uint256"}],"name":"setWhitelistMintPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newStartTime","type":"uint256"}],"name":"setWhitelistSaleTime","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":[],"name":"tierSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":"","type":"address"}],"name":"whitelist","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"whitelistMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"whitelistPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"whitelistSaleStartTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60c860095567016345785d8a0000600a5567011c37937e080000600b556005600c5560a06040819052600060808190526200003d91600d91620002ff565b50600e805460ff1990811690915563623e9dd0600f5560108054909116905563623e73a06011553480156200007157600080fd5b50604080518082018252600c81526b43727970746f46616d65727360a01b60208083019182528351808501909452600284526121a360f11b908401528151919291620000c091600191620002ff565b508051620000d6906002906020840190620002ff565b50620000e89150600090503362000196565b6200010360008051602062003b328339815191523362000196565b6200013260008051602062003b32833981519152737632af0c66d707747c493cfc190591a12c64a81262000196565b6200016160008051602062003b3283398151915273a5c26bc9c86fc70d3ced078f46b52342b8bd8fe662000196565b6200019060008051602062003b3283398151915273e69b1d13682eec14505b0e54c8696eafd5f964fb62000196565b620003e2565b620001a28282620001a6565b5050565b620001bd8282620001e960201b62001f751760201c565b6000828152600860209081526040909120620001e4918390620020176200028d821b17901c565b505050565b60008281526007602090815260408083206001600160a01b038516845290915290205460ff16620001a25760008281526007602090815260408083206001600160a01b03851684529091529020805460ff19166001179055620002493390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b6000620002a4836001600160a01b038416620002ad565b90505b92915050565b6000818152600183016020526040812054620002f657508154600181810184556000848152602080822090930184905584548482528286019093526040902091909155620002a7565b506000620002a7565b8280546200030d90620003a5565b90600052602060002090601f0160209004810192826200033157600085556200037c565b82601f106200034c57805160ff19168380011785556200037c565b828001600101855582156200037c579182015b828111156200037c5782518255916020019190600101906200035f565b506200038a9291506200038e565b5090565b5b808211156200038a57600081556001016200038f565b600181811c90821680620003ba57607f821691505b60208210811415620003dc57634e487b7160e01b600052602260045260246000fd5b50919050565b61374080620003f26000396000f3fe6080604052600436106103605760003560e01c80636bb7b1d9116101c6578063afdea6c2116100f7578063e985e9c511610095578063f4a0a5281161006f578063f4a0a528146109c7578063f6ecf215146109e7578063fad8b32a146109fc578063fc1a1c3614610a1c57600080fd5b8063e985e9c51461093e578063f013e0e114610987578063f2fde38b146109a757600080fd5b8063b98451cf116100d1578063b98451cf146108c4578063c87b56dd146108de578063ca15c873146108fe578063d547741f1461091e57600080fd5b8063afdea6c214610871578063b3ab66b014610891578063b88d4fde146108a457600080fd5b80639870d7fe11610164578063a22cb4651161013e578063a22cb465146107fc578063a611708e1461081c578063ac5227cf1461083c578063ad8e75aa1461085157600080fd5b80639870d7fe1461079a5780639b19251a146107ba578063a217fddf146107e757600080fd5b80638da5cb5b116101a05780638da5cb5b1461070a5780639010d07c1461071f57806391d148541461073f57806395d89b411461078557600080fd5b80636bb7b1d9146106cc57806370a08231146106e2578063804f43cd1461070257600080fd5b806327acc76d116102a05780633f5e47411161023e578063549b9da511610218578063549b9da51461066057806355f804b3146106765780636352211e146106965780636817c76c146106b657600080fd5b80633f5e47411461060b57806342842e0e146106205780634f6ccce71461064057600080fd5b806332cb6b0c1161027a57806332cb6b0c146105a057806336568abe146105b6578063375a069a146105d65780633ccfd60b146105f657600080fd5b806327acc76d1461054a5780632f2ff15d146105605780632f745c591461058057600080fd5b80631b5cb7f31161030d578063230b43f4116102e7578063230b43f4146104c257806323b872dd146104d8578063248a9ca3146104f857806327a099d81461052857600080fd5b80631b5cb7f3146104735780631e84c41314610488578063209ee297146104a257600080fd5b8063095ea7b31161033e578063095ea7b3146103f457806311b7e5e71461041657806318160ddd1461043657600080fd5b806301ffc9a71461036557806306fdde031461039a578063081812fc146103bc575b600080fd5b34801561037157600080fd5b50610385610380366004613310565b610a32565b60405190151581526020015b60405180910390f35b3480156103a657600080fd5b506103af610a43565b604051610391919061351b565b3480156103c857600080fd5b506103dc6103d73660046132b5565b610ad5565b6040516001600160a01b039091168152602001610391565b34801561040057600080fd5b5061041461040f3660046131cb565b610b32565b005b34801561042257600080fd5b506104146104313660046132b5565b610bf2565b34801561044257600080fd5b506104656000546001600160801b03600160801b82048116918116919091031690565b604051908152602001610391565b34801561047f57600080fd5b50610414610c11565b34801561049457600080fd5b50600e546103859060ff1681565b3480156104ae57600080fd5b506104146104bd3660046132b5565b610c9e565b3480156104ce57600080fd5b5061046560115481565b3480156104e457600080fd5b506104146104f33660046130dd565b610dab565b34801561050457600080fd5b506104656105133660046132b5565b60009081526007602052604090206001015490565b34801561053457600080fd5b5061053d610db6565b60405161039191906134ce565b34801561055657600080fd5b50610465600c5481565b34801561056c57600080fd5b5061041461057b3660046132cd565b610e9c565b34801561058c57600080fd5b5061046561059b3660046131cb565b610ec2565b3480156105ac57600080fd5b5061046561053981565b3480156105c257600080fd5b506104146105d13660046132cd565b610fd8565b3480156105e257600080fd5b506104146105f13660046132b5565b611064565b34801561060257600080fd5b50610414611150565b34801561061757600080fd5b50610385611378565b34801561062c57600080fd5b5061041461063b3660046130dd565b611394565b34801561064c57600080fd5b5061046561065b3660046132b5565b6113af565b34801561066c57600080fd5b5061046560095481565b34801561068257600080fd5b50610414610691366004613348565b611473565b3480156106a257600080fd5b506103dc6106b13660046132b5565b61149f565b3480156106c257600080fd5b50610465600a5481565b3480156106d857600080fd5b50610465600f5481565b3480156106ee57600080fd5b506104656106fd366004613091565b6114b1565b610414611519565b34801561071657600080fd5b506103dc611769565b34801561072b57600080fd5b506103dc61073a3660046132ef565b611771565b34801561074b57600080fd5b5061038561075a3660046132cd565b60009182526007602090815260408084206001600160a01b0393909316845291905290205460ff1690565b34801561079157600080fd5b506103af611790565b3480156107a657600080fd5b506104146107b5366004613091565b61179f565b3480156107c657600080fd5b506104656107d5366004613091565b60126020526000908152604090205481565b3480156107f357600080fd5b50610465600081565b34801561080857600080fd5b50610414610817366004613191565b611819565b34801561082857600080fd5b506104146108373660046132b5565b6118c8565b34801561084857600080fd5b506103856118e7565b34801561085d57600080fd5b5061041461086c3660046132b5565b611901565b34801561087d57600080fd5b5061041461088c3660046132b5565b611920565b61041461089f3660046132b5565b61193f565b3480156108b057600080fd5b506104146108bf366004613118565b611b96565b3480156108d057600080fd5b506010546103859060ff1681565b3480156108ea57600080fd5b506103af6108f93660046132b5565b611bca565b34801561090a57600080fd5b506104656109193660046132b5565b611ca3565b34801561092a57600080fd5b506104146109393660046132cd565b611cba565b34801561094a57600080fd5b506103856109593660046130ab565b6001600160a01b03918216600090815260066020908152604080832093909416825291909152205460ff1690565b34801561099357600080fd5b506104146109a23660046131f4565b611ce0565b3480156109b357600080fd5b506104146109c2366004613091565b611e07565b3480156109d357600080fd5b506104146109e23660046132b5565b611ea6565b3480156109f357600080fd5b50610414611ec5565b348015610a0857600080fd5b50610414610a17366004613091565b611f51565b348015610a2857600080fd5b50610465600b5481565b6000610a3d8261202c565b92915050565b606060018054610a5290613628565b80601f0160208091040260200160405190810160405280929190818152602001828054610a7e90613628565b8015610acb5780601f10610aa057610100808354040283529160200191610acb565b820191906000526020600020905b815481529060010190602001808311610aae57829003601f168201915b5050505050905090565b6000610ae08261206a565b610b16576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b506000908152600560205260409020546001600160a01b031690565b6000610b3d8261149f565b9050806001600160a01b0316836001600160a01b03161415610b8b576040517f943f7b8c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b336001600160a01b03821614801590610bab5750610ba98133610959565b155b15610be2576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610bed83838361209e565b505050565b6000805160206136eb833981519152610c0b8133612112565b50600f55565b6000805160206136eb833981519152610c2a8133612112565b600e805460ff19811660ff918216159081179092551615610c71576040517f0d8772ece36bfded90152a5e9203d325f78459b9c606715010603b6ed3dfd7fc90600090a150565b6040517f940167c74be6bfc68b7f82ca73379c462a44e07f9d48a00e461a8d273055406f90600090a15b50565b6000805160206136eb833981519152610cb78133612112565b610539821115610d0e5760405162461bcd60e51b815260206004820152601160248201527f457863656564206d617820737570706c7900000000000000000000000000000060448201526064015b60405180910390fd5b610d306000546001600160801b03600160801b82048116918116919091031690565b821015610da55760405162461bcd60e51b815260206004820152602f60248201527f5469657220737570706c792073686f756c64206265206772656174657220746860448201527f616e20746f74616c20737570706c7900000000000000000000000000000000006064820152608401610d05565b50600955565b610bed838383612192565b60606000610dd16000805160206136eb833981519152611ca3565b905060008167ffffffffffffffff811115610dfc57634e487b7160e01b600052604160045260246000fd5b604051908082528060200260200182016040528015610e25578160200160208202803683370190505b50905060005b82811015610e9557610e4b6000805160206136eb83398151915282611771565b828281518110610e6b57634e487b7160e01b600052603260045260246000fd5b6001600160a01b039092166020928302919091019091015280610e8d81613663565b915050610e2b565b5092915050565b600082815260076020526040902060010154610eb88133612112565b610bed83836123fd565b6000610ecd836114b1565b8210610f05576040517f0ddac30e00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600080546001600160801b03169080805b83811015610fd257600081815260036020908152604091829020825160608101845290546001600160a01b0381168252600160a01b810467ffffffffffffffff1692820192909252600160e01b90910460ff161580159282019290925290610f7e5750610fca565b80516001600160a01b031615610f9357805192505b876001600160a01b0316836001600160a01b03161415610fc85786841415610fc157509350610a3d92505050565b6001909301925b505b600101610f16565b50600080fd5b6001600160a01b03811633146110565760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201527f20726f6c657320666f722073656c6600000000000000000000000000000000006064820152608401610d05565b611060828261241f565b5050565b60006110708133612112565b600954826110966000546001600160801b03600160801b82048116918116919091031690565b6110a09190613583565b11156110ee5760405162461bcd60e51b815260206004820152601760248201527f57696c6c20657863656564207469657220737570706c790000000000000000006044820152606401610d05565b6110f83383612441565b7ff00d28232b285f24f2e38415deb2ceb31069e70d4505838b3911b4f02058502e61113b6000546001600160801b03600160801b82048116918116919091031690565b60405190815260200160405180910390a15050565b6000805160206136eb8339815191526111698133612112565b4760c961118e6000546001600160801b03600160801b82048116918116919091031690565b1061130e5760006127106111a4836101776135af565b6111ae919061359b565b905060006111bd8260026135af565b6111c790846135ce565b60405190915073a5c26bc9c86fc70d3ced078f46b52342b8bd8fe69083156108fc029084906000818181858888f193505050506112345760405162461bcd60e51b815260206004820152600b60248201526a14d95b990811985a5b195960aa1b6044820152606401610d05565b60405173e69b1d13682eec14505b0e54c8696eafd5f964fb9083156108fc029084906000818181858888f1935050505061129e5760405162461bcd60e51b815260206004820152600b60248201526a14d95b990811985a5b195960aa1b6044820152606401610d05565b604051737632af0c66d707747c493cfc190591a12c64a8129082156108fc029083906000818181858888f193505050506113085760405162461bcd60e51b815260206004820152600b60248201526a14d95b990811985a5b195960aa1b6044820152606401610d05565b50505050565b604051737632af0c66d707747c493cfc190591a12c64a8129082156108fc029083906000818181858888f193505050506110605760405162461bcd60e51b815260206004820152600b60248201526a14d95b990811985a5b195960aa1b6044820152606401610d05565b600e5460009060ff16801561138f5750600f544210155b905090565b610bed83838360405180602001604052806000815250611b96565b600080546001600160801b031681805b8281101561144057600081815260036020908152604091829020825160608101845290546001600160a01b0381168252600160a01b810467ffffffffffffffff1692820192909252600160e01b90910460ff1615159181018290529061143757858314156114305750949350505050565b6001909201915b506001016113bf565b506040517fa723001c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000805160206136eb83398151915261148c8133612112565b8151610bed90600d906020850190612f15565b60006114aa8261245b565b5192915050565b60006001600160a01b0382166114f3576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b506001600160a01b031660009081526004602052604090205467ffffffffffffffff1690565b3233146115685760405162461bcd60e51b815260206004820152601e60248201527f5468652063616c6c657220697320616e6f7468657220636f6e747261637400006044820152606401610d05565b6115706118e7565b6115bc5760405162461bcd60e51b815260206004820181905260248201527f77686974656c6973742073616c6520686173206e6f7420626567756e207965746044820152606401610d05565b336000908152601260205260409020546116185760405162461bcd60e51b815260206004820152601f60248201527f6e6f7420656c696769626c6520666f722077686974656c697374206d696e74006044820152606401610d05565b60095461163d6000546001600160801b03600160801b82048116918116919091031690565b611648906001613583565b11156116965760405162461bcd60e51b815260206004820152601260248201527f72656163686564206d617820737570706c7900000000000000000000000000006044820152606401610d05565b34600b5411156116e85760405162461bcd60e51b815260206004820152601560248201527f4e6f7420656e6f7567682065746865722073656e7400000000000000000000006044820152606401610d05565b33600090815260126020526040812080549161170383613611565b9190505550611713336001612441565b7ff00d28232b285f24f2e38415deb2ceb31069e70d4505838b3911b4f02058502e6117566000546001600160801b03600160801b82048116918116919091031690565b60405190815260200160405180910390a1565b600061138f81805b60008281526008602052604081206117899083612598565b9392505050565b606060028054610a5290613628565b60006117ab8133612112565b6001600160a01b0382166118015760405162461bcd60e51b815260206004820152601960248201527f416464207a65726f20616464726573732061732061646d696e000000000000006044820152606401610d05565b6110606000805160206136eb83398151915283610e9c565b6001600160a01b03821633141561185c576040517fb06307db00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b3360008181526006602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6000805160206136eb8339815191526118e18133612112565b50600b55565b60105460009060ff16801561138f57505060115442101590565b6000805160206136eb83398151915261191a8133612112565b50600c55565b6000805160206136eb8339815191526119398133612112565b50601155565b32331461198e5760405162461bcd60e51b815260206004820152601e60248201527f5468652063616c6c657220697320616e6f7468657220636f6e747261637400006044820152606401610d05565b611996611378565b6119e25760405162461bcd60e51b815260206004820152600f60248201527f53616c65206e6f742061637469766500000000000000000000000000000000006044820152606401610d05565b60095481611a086000546001600160801b03600160801b82048116918116919091031690565b611a129190613583565b1115611a605760405162461bcd60e51b815260206004820152601d60248201527f53616c6520776f756c6420657863656564207469657220737570706c790000006044820152606401610d05565b600c54811115611ad85760405162461bcd60e51b815260206004820152602360248201527f53616c6520776f756c6420657863656564206d6178206d696e7420706572206d60448201527f696e7400000000000000000000000000000000000000000000000000000000006064820152608401610d05565b34600a5482611ae791906135af565b1115611b355760405162461bcd60e51b815260206004820152601560248201527f4e6f7420656e6f7567682065746865722073656e7400000000000000000000006044820152606401610d05565b611b3f3382612441565b7ff00d28232b285f24f2e38415deb2ceb31069e70d4505838b3911b4f02058502e611b826000546001600160801b03600160801b82048116918116919091031690565b60405190815260200160405180910390a150565b611ba1848484612192565b611bad848484846125a4565b611308576040516368d2bf6b60e11b815260040160405180910390fd5b6060611bd58261206a565b611c475760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201527f6e6578697374656e7420746f6b656e00000000000000000000000000000000006064820152608401610d05565b6000611c516126b3565b9050805160001415611c725760405180602001604052806000815250611789565b80611c7c846126c2565b604051602001611c8d9291906133ba565b6040516020818303038152906040529392505050565b6000818152600860205260408120610a3d906127dc565b600082815260076020526040902060010154611cd68133612112565b610bed838361241f565b6000805160206136eb833981519152611cf98133612112565b8151835114611d705760405162461bcd60e51b815260206004820152602860248201527f61646472657373657320646f6573206e6f74206d61746368206e756d536c6f7460448201527f73206c656e6774680000000000000000000000000000000000000000000000006064820152608401610d05565b60005b835181101561130857828181518110611d9c57634e487b7160e01b600052603260045260246000fd5b602002602001015160126000868481518110611dc857634e487b7160e01b600052603260045260246000fd5b60200260200101516001600160a01b03166001600160a01b03168152602001908152602001600020819055508080611dff90613663565b915050611d73565b6000611e138133612112565b6001600160a01b038216611e8f5760405162461bcd60e51b815260206004820152602160248201527f455243373231413a206d696e7420746f20746865207a65726f2061646472657360448201527f73000000000000000000000000000000000000000000000000000000000000006064820152608401610d05565b33611e9b600084610e9c565b610bed600082611cba565b6000805160206136eb833981519152611ebf8133612112565b50600a55565b6000805160206136eb833981519152611ede8133612112565b6010805460ff19811660ff918216159081179092551615611f25576040517f87d5e7f84939fe2f253d6f0531e30aa8a8b464989a7dbde04bb82453a8b2abb490600090a150565b6040517fb9e24b281dda9ebe36bd1200c02936bd96d55c9c51b33e27081ef81a0063f46990600090a150565b6000611f5d8133612112565b6110606000805160206136eb83398151915283611cba565b60008281526007602090815260408083206001600160a01b038516845290915290205460ff166110605760008281526007602090815260408083206001600160a01b03851684529091529020805460ff19166001179055611fd33390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b6000611789836001600160a01b0384166127e6565b60006001600160e01b031982167f5a05180f000000000000000000000000000000000000000000000000000000001480610a3d5750610a3d82612835565b600080546001600160801b031682108015610a3d575050600090815260036020526040902054600160e01b900460ff161590565b60008281526005602052604080822080547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b60008281526007602090815260408083206001600160a01b038516845290915290205460ff1661106057612150816001600160a01b03166014612873565b61215b836020612873565b60405160200161216c929190613411565b60408051601f198184030181529082905262461bcd60e51b8252610d059160040161351b565b600061219d8261245b565b80519091506000906001600160a01b0316336001600160a01b031614806121cb575081516121cb9033610959565b806121e65750336121db84610ad5565b6001600160a01b0316145b90508061221f576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b846001600160a01b031682600001516001600160a01b03161461226e576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6001600160a01b0384166122ae576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6122be600084846000015161209e565b6001600160a01b038581166000908152600460209081526040808320805467ffffffffffffffff1980821667ffffffffffffffff92831660001901831617909255898616808652838620805493841693831660019081018416949094179055898652600390945282852080546001600160e01b031916909417600160a01b4290921691909102179092559086018083529120549091166123b3576000546001600160801b03168110156123b3578251600082815260036020908152604090912080549186015167ffffffffffffffff16600160a01b026001600160e01b03199092166001600160a01b03909316929092171790555b5082846001600160a01b0316866001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45b5050505050565b6124078282611f75565b6000828152600860205260409020610bed9082612017565b6124298282612a7e565b6000828152600860205260409020610bed9082612b01565b611060828260405180602001604052806000815250612b16565b60408051606081018252600080825260208201819052918101829052905482906001600160801b031681101561256657600081815260036020908152604091829020825160608101845290546001600160a01b0381168252600160a01b810467ffffffffffffffff1692820192909252600160e01b90910460ff161515918101829052906125645780516001600160a01b0316156124fa579392505050565b5060001901600081815260036020908152604091829020825160608101845290546001600160a01b038116808352600160a01b820467ffffffffffffffff1693830193909352600160e01b900460ff161515928101929092521561255f579392505050565b6124fa565b505b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60006117898383612b23565b60006001600160a01b0384163b156126a757604051630a85bd0160e11b81526001600160a01b0385169063150b7a02906125e8903390899088908890600401613492565b602060405180830381600087803b15801561260257600080fd5b505af1925050508015612632575060408051601f3d908101601f1916820190925261262f9181019061332c565b60015b61268d573d808015612660576040519150601f19603f3d011682016040523d82523d6000602084013e612665565b606091505b508051612685576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490506126ab565b5060015b949350505050565b6060600d8054610a5290613628565b6060816126e65750506040805180820190915260018152600360fc1b602082015290565b8160005b811561271057806126fa81613663565b91506127099050600a8361359b565b91506126ea565b60008167ffffffffffffffff81111561273957634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015612763576020820181803683370190505b5090505b84156126ab576127786001836135ce565b9150612785600a8661367e565b612790906030613583565b60f81b8183815181106127b357634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a9053506127d5600a8661359b565b9450612767565b6000610a3d825490565b600081815260018301602052604081205461282d57508154600181810184556000848152602080822090930184905584548482528286019093526040902091909155610a3d565b506000610a3d565b60006001600160e01b031982167f7965db0b000000000000000000000000000000000000000000000000000000001480610a3d5750610a3d82612b5b565b606060006128828360026135af565b61288d906002613583565b67ffffffffffffffff8111156128b357634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f1916602001820160405280156128dd576020820181803683370190505b509050600360fc1b8160008151811061290657634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a9053507f78000000000000000000000000000000000000000000000000000000000000008160018151811061295f57634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a90535060006129838460026135af565b61298e906001613583565b90505b6001811115612a2f577f303132333435363738396162636465660000000000000000000000000000000085600f16601081106129dd57634e487b7160e01b600052603260045260246000fd5b1a60f81b828281518110612a0157634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a90535060049490941c93612a2881613611565b9050612991565b5083156117895760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152606401610d05565b60008281526007602090815260408083206001600160a01b038516845290915290205460ff16156110605760008281526007602090815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b6000611789836001600160a01b038416612c2a565b610bed8383836001612d47565b6000826000018281548110612b4857634e487b7160e01b600052603260045260246000fd5b9060005260206000200154905092915050565b60006001600160e01b031982167f80ac58cd000000000000000000000000000000000000000000000000000000001480612bbe57506001600160e01b031982167f5b5e139f00000000000000000000000000000000000000000000000000000000145b80612bf257506001600160e01b031982167f780e9d6300000000000000000000000000000000000000000000000000000000145b80610a3d57507f01ffc9a7000000000000000000000000000000000000000000000000000000006001600160e01b0319831614610a3d565b60008181526001830160205260408120548015612d3d576000612c4e6001836135ce565b8554909150600090612c62906001906135ce565b9050818114612ce3576000866000018281548110612c9057634e487b7160e01b600052603260045260246000fd5b9060005260206000200154905080876000018481548110612cc157634e487b7160e01b600052603260045260246000fd5b6000918252602080832090910192909255918252600188019052604090208390555b8554869080612d0257634e487b7160e01b600052603160045260246000fd5b600190038181906000526020600020016000905590558560010160008681526020019081526020016000206000905560019350505050610a3d565b6000915050610a3d565b6000546001600160801b03166001600160a01b038516612d93576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b83612dca576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6001600160a01b038516600081815260046020908152604080832080546fffffffffffffffffffffffffffffffff19811667ffffffffffffffff8083168c0181169182176801000000000000000067ffffffffffffffff1990941690921783900481168c018116909202179091558584526003909252822080546001600160e01b031916909317600160a01b42909216919091021790915581905b85811015612ee65760405182906001600160a01b038916906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a4838015612ebc5750612eba60008884886125a4565b155b15612eda576040516368d2bf6b60e11b815260040160405180910390fd5b60019182019101612e65565b50600080546fffffffffffffffffffffffffffffffff19166001600160801b03929092169190911790556123f6565b828054612f2190613628565b90600052602060002090601f016020900481019282612f435760008555612f89565b82601f10612f5c57805160ff1916838001178555612f89565b82800160010185558215612f89579182015b82811115612f89578251825591602001919060010190612f6e565b50612f95929150612f99565b5090565b5b80821115612f955760008155600101612f9a565b600067ffffffffffffffff831115612fc857612fc86136be565b612fdb601f8401601f191660200161352e565b9050828152838383011115612fef57600080fd5b828260208301376000602084830101529392505050565b80356001600160a01b038116811461301d57600080fd5b919050565b600082601f830112613032578081fd5b813560206130476130428361355f565b61352e565b80838252828201915082860187848660051b8901011115613066578586fd5b855b8581101561308457813584529284019290840190600101613068565b5090979650505050505050565b6000602082840312156130a2578081fd5b61178982613006565b600080604083850312156130bd578081fd5b6130c683613006565b91506130d460208401613006565b90509250929050565b6000806000606084860312156130f1578081fd5b6130fa84613006565b925061310860208501613006565b9150604084013590509250925092565b6000806000806080858703121561312d578081fd5b61313685613006565b935061314460208601613006565b925060408501359150606085013567ffffffffffffffff811115613166578182fd5b8501601f81018713613176578182fd5b61318587823560208401612fae565b91505092959194509250565b600080604083850312156131a3578182fd5b6131ac83613006565b9150602083013580151581146131c0578182fd5b809150509250929050565b600080604083850312156131dd578182fd5b6131e683613006565b946020939093013593505050565b60008060408385031215613206578182fd5b823567ffffffffffffffff8082111561321d578384fd5b818501915085601f830112613230578384fd5b813560206132406130428361355f565b8083825282820191508286018a848660051b890101111561325f578889fd5b8896505b848710156132885761327481613006565b835260019690960195918301918301613263565b509650508601359250508082111561329e578283fd5b506132ab85828601613022565b9150509250929050565b6000602082840312156132c6578081fd5b5035919050565b600080604083850312156132df578182fd5b823591506130d460208401613006565b60008060408385031215613301578182fd5b50508035926020909101359150565b600060208284031215613321578081fd5b8135611789816136d4565b60006020828403121561333d578081fd5b8151611789816136d4565b600060208284031215613359578081fd5b813567ffffffffffffffff81111561336f578182fd5b8201601f8101841361337f578182fd5b6126ab84823560208401612fae565b600081518084526133a68160208601602086016135e5565b601f01601f19169290920160200192915050565b600083516133cc8184602088016135e5565b8351908301906133e08183602088016135e5565b7f2e6a736f6e0000000000000000000000000000000000000000000000000000009101908152600501949350505050565b7f416363657373436f6e74726f6c3a206163636f756e74200000000000000000008152600083516134498160178501602088016135e5565b7f206973206d697373696e6720726f6c652000000000000000000000000000000060179184019182015283516134868160288401602088016135e5565b01602801949350505050565b60006001600160a01b038087168352808616602084015250836040830152608060608301526134c4608083018461338e565b9695505050505050565b6020808252825182820181905260009190848201906040850190845b8181101561350f5783516001600160a01b0316835292840192918401916001016134ea565b50909695505050505050565b602081526000611789602083018461338e565b604051601f8201601f1916810167ffffffffffffffff81118282101715613557576135576136be565b604052919050565b600067ffffffffffffffff821115613579576135796136be565b5060051b60200190565b6000821982111561359657613596613692565b500190565b6000826135aa576135aa6136a8565b500490565b60008160001904831182151516156135c9576135c9613692565b500290565b6000828210156135e0576135e0613692565b500390565b60005b838110156136005781810151838201526020016135e8565b838111156113085750506000910152565b60008161362057613620613692565b506000190190565b600181811c9082168061363c57607f821691505b6020821081141561365d57634e487b7160e01b600052602260045260246000fd5b50919050565b600060001982141561367757613677613692565b5060010190565b60008261368d5761368d6136a8565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160e01b031981168114610c9b57600080fdfe523a704056dcd17bcf83bed8b68c59416dac1119be77755efe3bde0a64e46e0ca264697066735822122026bc96e3384571b1a3353a5445e0ec85866533be334a4f4d2b5948722acfa56764736f6c63430008040033523a704056dcd17bcf83bed8b68c59416dac1119be77755efe3bde0a64e46e0c

Deployed Bytecode

0x6080604052600436106103605760003560e01c80636bb7b1d9116101c6578063afdea6c2116100f7578063e985e9c511610095578063f4a0a5281161006f578063f4a0a528146109c7578063f6ecf215146109e7578063fad8b32a146109fc578063fc1a1c3614610a1c57600080fd5b8063e985e9c51461093e578063f013e0e114610987578063f2fde38b146109a757600080fd5b8063b98451cf116100d1578063b98451cf146108c4578063c87b56dd146108de578063ca15c873146108fe578063d547741f1461091e57600080fd5b8063afdea6c214610871578063b3ab66b014610891578063b88d4fde146108a457600080fd5b80639870d7fe11610164578063a22cb4651161013e578063a22cb465146107fc578063a611708e1461081c578063ac5227cf1461083c578063ad8e75aa1461085157600080fd5b80639870d7fe1461079a5780639b19251a146107ba578063a217fddf146107e757600080fd5b80638da5cb5b116101a05780638da5cb5b1461070a5780639010d07c1461071f57806391d148541461073f57806395d89b411461078557600080fd5b80636bb7b1d9146106cc57806370a08231146106e2578063804f43cd1461070257600080fd5b806327acc76d116102a05780633f5e47411161023e578063549b9da511610218578063549b9da51461066057806355f804b3146106765780636352211e146106965780636817c76c146106b657600080fd5b80633f5e47411461060b57806342842e0e146106205780634f6ccce71461064057600080fd5b806332cb6b0c1161027a57806332cb6b0c146105a057806336568abe146105b6578063375a069a146105d65780633ccfd60b146105f657600080fd5b806327acc76d1461054a5780632f2ff15d146105605780632f745c591461058057600080fd5b80631b5cb7f31161030d578063230b43f4116102e7578063230b43f4146104c257806323b872dd146104d8578063248a9ca3146104f857806327a099d81461052857600080fd5b80631b5cb7f3146104735780631e84c41314610488578063209ee297146104a257600080fd5b8063095ea7b31161033e578063095ea7b3146103f457806311b7e5e71461041657806318160ddd1461043657600080fd5b806301ffc9a71461036557806306fdde031461039a578063081812fc146103bc575b600080fd5b34801561037157600080fd5b50610385610380366004613310565b610a32565b60405190151581526020015b60405180910390f35b3480156103a657600080fd5b506103af610a43565b604051610391919061351b565b3480156103c857600080fd5b506103dc6103d73660046132b5565b610ad5565b6040516001600160a01b039091168152602001610391565b34801561040057600080fd5b5061041461040f3660046131cb565b610b32565b005b34801561042257600080fd5b506104146104313660046132b5565b610bf2565b34801561044257600080fd5b506104656000546001600160801b03600160801b82048116918116919091031690565b604051908152602001610391565b34801561047f57600080fd5b50610414610c11565b34801561049457600080fd5b50600e546103859060ff1681565b3480156104ae57600080fd5b506104146104bd3660046132b5565b610c9e565b3480156104ce57600080fd5b5061046560115481565b3480156104e457600080fd5b506104146104f33660046130dd565b610dab565b34801561050457600080fd5b506104656105133660046132b5565b60009081526007602052604090206001015490565b34801561053457600080fd5b5061053d610db6565b60405161039191906134ce565b34801561055657600080fd5b50610465600c5481565b34801561056c57600080fd5b5061041461057b3660046132cd565b610e9c565b34801561058c57600080fd5b5061046561059b3660046131cb565b610ec2565b3480156105ac57600080fd5b5061046561053981565b3480156105c257600080fd5b506104146105d13660046132cd565b610fd8565b3480156105e257600080fd5b506104146105f13660046132b5565b611064565b34801561060257600080fd5b50610414611150565b34801561061757600080fd5b50610385611378565b34801561062c57600080fd5b5061041461063b3660046130dd565b611394565b34801561064c57600080fd5b5061046561065b3660046132b5565b6113af565b34801561066c57600080fd5b5061046560095481565b34801561068257600080fd5b50610414610691366004613348565b611473565b3480156106a257600080fd5b506103dc6106b13660046132b5565b61149f565b3480156106c257600080fd5b50610465600a5481565b3480156106d857600080fd5b50610465600f5481565b3480156106ee57600080fd5b506104656106fd366004613091565b6114b1565b610414611519565b34801561071657600080fd5b506103dc611769565b34801561072b57600080fd5b506103dc61073a3660046132ef565b611771565b34801561074b57600080fd5b5061038561075a3660046132cd565b60009182526007602090815260408084206001600160a01b0393909316845291905290205460ff1690565b34801561079157600080fd5b506103af611790565b3480156107a657600080fd5b506104146107b5366004613091565b61179f565b3480156107c657600080fd5b506104656107d5366004613091565b60126020526000908152604090205481565b3480156107f357600080fd5b50610465600081565b34801561080857600080fd5b50610414610817366004613191565b611819565b34801561082857600080fd5b506104146108373660046132b5565b6118c8565b34801561084857600080fd5b506103856118e7565b34801561085d57600080fd5b5061041461086c3660046132b5565b611901565b34801561087d57600080fd5b5061041461088c3660046132b5565b611920565b61041461089f3660046132b5565b61193f565b3480156108b057600080fd5b506104146108bf366004613118565b611b96565b3480156108d057600080fd5b506010546103859060ff1681565b3480156108ea57600080fd5b506103af6108f93660046132b5565b611bca565b34801561090a57600080fd5b506104656109193660046132b5565b611ca3565b34801561092a57600080fd5b506104146109393660046132cd565b611cba565b34801561094a57600080fd5b506103856109593660046130ab565b6001600160a01b03918216600090815260066020908152604080832093909416825291909152205460ff1690565b34801561099357600080fd5b506104146109a23660046131f4565b611ce0565b3480156109b357600080fd5b506104146109c2366004613091565b611e07565b3480156109d357600080fd5b506104146109e23660046132b5565b611ea6565b3480156109f357600080fd5b50610414611ec5565b348015610a0857600080fd5b50610414610a17366004613091565b611f51565b348015610a2857600080fd5b50610465600b5481565b6000610a3d8261202c565b92915050565b606060018054610a5290613628565b80601f0160208091040260200160405190810160405280929190818152602001828054610a7e90613628565b8015610acb5780601f10610aa057610100808354040283529160200191610acb565b820191906000526020600020905b815481529060010190602001808311610aae57829003601f168201915b5050505050905090565b6000610ae08261206a565b610b16576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b506000908152600560205260409020546001600160a01b031690565b6000610b3d8261149f565b9050806001600160a01b0316836001600160a01b03161415610b8b576040517f943f7b8c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b336001600160a01b03821614801590610bab5750610ba98133610959565b155b15610be2576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610bed83838361209e565b505050565b6000805160206136eb833981519152610c0b8133612112565b50600f55565b6000805160206136eb833981519152610c2a8133612112565b600e805460ff19811660ff918216159081179092551615610c71576040517f0d8772ece36bfded90152a5e9203d325f78459b9c606715010603b6ed3dfd7fc90600090a150565b6040517f940167c74be6bfc68b7f82ca73379c462a44e07f9d48a00e461a8d273055406f90600090a15b50565b6000805160206136eb833981519152610cb78133612112565b610539821115610d0e5760405162461bcd60e51b815260206004820152601160248201527f457863656564206d617820737570706c7900000000000000000000000000000060448201526064015b60405180910390fd5b610d306000546001600160801b03600160801b82048116918116919091031690565b821015610da55760405162461bcd60e51b815260206004820152602f60248201527f5469657220737570706c792073686f756c64206265206772656174657220746860448201527f616e20746f74616c20737570706c7900000000000000000000000000000000006064820152608401610d05565b50600955565b610bed838383612192565b60606000610dd16000805160206136eb833981519152611ca3565b905060008167ffffffffffffffff811115610dfc57634e487b7160e01b600052604160045260246000fd5b604051908082528060200260200182016040528015610e25578160200160208202803683370190505b50905060005b82811015610e9557610e4b6000805160206136eb83398151915282611771565b828281518110610e6b57634e487b7160e01b600052603260045260246000fd5b6001600160a01b039092166020928302919091019091015280610e8d81613663565b915050610e2b565b5092915050565b600082815260076020526040902060010154610eb88133612112565b610bed83836123fd565b6000610ecd836114b1565b8210610f05576040517f0ddac30e00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600080546001600160801b03169080805b83811015610fd257600081815260036020908152604091829020825160608101845290546001600160a01b0381168252600160a01b810467ffffffffffffffff1692820192909252600160e01b90910460ff161580159282019290925290610f7e5750610fca565b80516001600160a01b031615610f9357805192505b876001600160a01b0316836001600160a01b03161415610fc85786841415610fc157509350610a3d92505050565b6001909301925b505b600101610f16565b50600080fd5b6001600160a01b03811633146110565760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201527f20726f6c657320666f722073656c6600000000000000000000000000000000006064820152608401610d05565b611060828261241f565b5050565b60006110708133612112565b600954826110966000546001600160801b03600160801b82048116918116919091031690565b6110a09190613583565b11156110ee5760405162461bcd60e51b815260206004820152601760248201527f57696c6c20657863656564207469657220737570706c790000000000000000006044820152606401610d05565b6110f83383612441565b7ff00d28232b285f24f2e38415deb2ceb31069e70d4505838b3911b4f02058502e61113b6000546001600160801b03600160801b82048116918116919091031690565b60405190815260200160405180910390a15050565b6000805160206136eb8339815191526111698133612112565b4760c961118e6000546001600160801b03600160801b82048116918116919091031690565b1061130e5760006127106111a4836101776135af565b6111ae919061359b565b905060006111bd8260026135af565b6111c790846135ce565b60405190915073a5c26bc9c86fc70d3ced078f46b52342b8bd8fe69083156108fc029084906000818181858888f193505050506112345760405162461bcd60e51b815260206004820152600b60248201526a14d95b990811985a5b195960aa1b6044820152606401610d05565b60405173e69b1d13682eec14505b0e54c8696eafd5f964fb9083156108fc029084906000818181858888f1935050505061129e5760405162461bcd60e51b815260206004820152600b60248201526a14d95b990811985a5b195960aa1b6044820152606401610d05565b604051737632af0c66d707747c493cfc190591a12c64a8129082156108fc029083906000818181858888f193505050506113085760405162461bcd60e51b815260206004820152600b60248201526a14d95b990811985a5b195960aa1b6044820152606401610d05565b50505050565b604051737632af0c66d707747c493cfc190591a12c64a8129082156108fc029083906000818181858888f193505050506110605760405162461bcd60e51b815260206004820152600b60248201526a14d95b990811985a5b195960aa1b6044820152606401610d05565b600e5460009060ff16801561138f5750600f544210155b905090565b610bed83838360405180602001604052806000815250611b96565b600080546001600160801b031681805b8281101561144057600081815260036020908152604091829020825160608101845290546001600160a01b0381168252600160a01b810467ffffffffffffffff1692820192909252600160e01b90910460ff1615159181018290529061143757858314156114305750949350505050565b6001909201915b506001016113bf565b506040517fa723001c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000805160206136eb83398151915261148c8133612112565b8151610bed90600d906020850190612f15565b60006114aa8261245b565b5192915050565b60006001600160a01b0382166114f3576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b506001600160a01b031660009081526004602052604090205467ffffffffffffffff1690565b3233146115685760405162461bcd60e51b815260206004820152601e60248201527f5468652063616c6c657220697320616e6f7468657220636f6e747261637400006044820152606401610d05565b6115706118e7565b6115bc5760405162461bcd60e51b815260206004820181905260248201527f77686974656c6973742073616c6520686173206e6f7420626567756e207965746044820152606401610d05565b336000908152601260205260409020546116185760405162461bcd60e51b815260206004820152601f60248201527f6e6f7420656c696769626c6520666f722077686974656c697374206d696e74006044820152606401610d05565b60095461163d6000546001600160801b03600160801b82048116918116919091031690565b611648906001613583565b11156116965760405162461bcd60e51b815260206004820152601260248201527f72656163686564206d617820737570706c7900000000000000000000000000006044820152606401610d05565b34600b5411156116e85760405162461bcd60e51b815260206004820152601560248201527f4e6f7420656e6f7567682065746865722073656e7400000000000000000000006044820152606401610d05565b33600090815260126020526040812080549161170383613611565b9190505550611713336001612441565b7ff00d28232b285f24f2e38415deb2ceb31069e70d4505838b3911b4f02058502e6117566000546001600160801b03600160801b82048116918116919091031690565b60405190815260200160405180910390a1565b600061138f81805b60008281526008602052604081206117899083612598565b9392505050565b606060028054610a5290613628565b60006117ab8133612112565b6001600160a01b0382166118015760405162461bcd60e51b815260206004820152601960248201527f416464207a65726f20616464726573732061732061646d696e000000000000006044820152606401610d05565b6110606000805160206136eb83398151915283610e9c565b6001600160a01b03821633141561185c576040517fb06307db00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b3360008181526006602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6000805160206136eb8339815191526118e18133612112565b50600b55565b60105460009060ff16801561138f57505060115442101590565b6000805160206136eb83398151915261191a8133612112565b50600c55565b6000805160206136eb8339815191526119398133612112565b50601155565b32331461198e5760405162461bcd60e51b815260206004820152601e60248201527f5468652063616c6c657220697320616e6f7468657220636f6e747261637400006044820152606401610d05565b611996611378565b6119e25760405162461bcd60e51b815260206004820152600f60248201527f53616c65206e6f742061637469766500000000000000000000000000000000006044820152606401610d05565b60095481611a086000546001600160801b03600160801b82048116918116919091031690565b611a129190613583565b1115611a605760405162461bcd60e51b815260206004820152601d60248201527f53616c6520776f756c6420657863656564207469657220737570706c790000006044820152606401610d05565b600c54811115611ad85760405162461bcd60e51b815260206004820152602360248201527f53616c6520776f756c6420657863656564206d6178206d696e7420706572206d60448201527f696e7400000000000000000000000000000000000000000000000000000000006064820152608401610d05565b34600a5482611ae791906135af565b1115611b355760405162461bcd60e51b815260206004820152601560248201527f4e6f7420656e6f7567682065746865722073656e7400000000000000000000006044820152606401610d05565b611b3f3382612441565b7ff00d28232b285f24f2e38415deb2ceb31069e70d4505838b3911b4f02058502e611b826000546001600160801b03600160801b82048116918116919091031690565b60405190815260200160405180910390a150565b611ba1848484612192565b611bad848484846125a4565b611308576040516368d2bf6b60e11b815260040160405180910390fd5b6060611bd58261206a565b611c475760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201527f6e6578697374656e7420746f6b656e00000000000000000000000000000000006064820152608401610d05565b6000611c516126b3565b9050805160001415611c725760405180602001604052806000815250611789565b80611c7c846126c2565b604051602001611c8d9291906133ba565b6040516020818303038152906040529392505050565b6000818152600860205260408120610a3d906127dc565b600082815260076020526040902060010154611cd68133612112565b610bed838361241f565b6000805160206136eb833981519152611cf98133612112565b8151835114611d705760405162461bcd60e51b815260206004820152602860248201527f61646472657373657320646f6573206e6f74206d61746368206e756d536c6f7460448201527f73206c656e6774680000000000000000000000000000000000000000000000006064820152608401610d05565b60005b835181101561130857828181518110611d9c57634e487b7160e01b600052603260045260246000fd5b602002602001015160126000868481518110611dc857634e487b7160e01b600052603260045260246000fd5b60200260200101516001600160a01b03166001600160a01b03168152602001908152602001600020819055508080611dff90613663565b915050611d73565b6000611e138133612112565b6001600160a01b038216611e8f5760405162461bcd60e51b815260206004820152602160248201527f455243373231413a206d696e7420746f20746865207a65726f2061646472657360448201527f73000000000000000000000000000000000000000000000000000000000000006064820152608401610d05565b33611e9b600084610e9c565b610bed600082611cba565b6000805160206136eb833981519152611ebf8133612112565b50600a55565b6000805160206136eb833981519152611ede8133612112565b6010805460ff19811660ff918216159081179092551615611f25576040517f87d5e7f84939fe2f253d6f0531e30aa8a8b464989a7dbde04bb82453a8b2abb490600090a150565b6040517fb9e24b281dda9ebe36bd1200c02936bd96d55c9c51b33e27081ef81a0063f46990600090a150565b6000611f5d8133612112565b6110606000805160206136eb83398151915283611cba565b60008281526007602090815260408083206001600160a01b038516845290915290205460ff166110605760008281526007602090815260408083206001600160a01b03851684529091529020805460ff19166001179055611fd33390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b6000611789836001600160a01b0384166127e6565b60006001600160e01b031982167f5a05180f000000000000000000000000000000000000000000000000000000001480610a3d5750610a3d82612835565b600080546001600160801b031682108015610a3d575050600090815260036020526040902054600160e01b900460ff161590565b60008281526005602052604080822080547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b60008281526007602090815260408083206001600160a01b038516845290915290205460ff1661106057612150816001600160a01b03166014612873565b61215b836020612873565b60405160200161216c929190613411565b60408051601f198184030181529082905262461bcd60e51b8252610d059160040161351b565b600061219d8261245b565b80519091506000906001600160a01b0316336001600160a01b031614806121cb575081516121cb9033610959565b806121e65750336121db84610ad5565b6001600160a01b0316145b90508061221f576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b846001600160a01b031682600001516001600160a01b03161461226e576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6001600160a01b0384166122ae576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6122be600084846000015161209e565b6001600160a01b038581166000908152600460209081526040808320805467ffffffffffffffff1980821667ffffffffffffffff92831660001901831617909255898616808652838620805493841693831660019081018416949094179055898652600390945282852080546001600160e01b031916909417600160a01b4290921691909102179092559086018083529120549091166123b3576000546001600160801b03168110156123b3578251600082815260036020908152604090912080549186015167ffffffffffffffff16600160a01b026001600160e01b03199092166001600160a01b03909316929092171790555b5082846001600160a01b0316866001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45b5050505050565b6124078282611f75565b6000828152600860205260409020610bed9082612017565b6124298282612a7e565b6000828152600860205260409020610bed9082612b01565b611060828260405180602001604052806000815250612b16565b60408051606081018252600080825260208201819052918101829052905482906001600160801b031681101561256657600081815260036020908152604091829020825160608101845290546001600160a01b0381168252600160a01b810467ffffffffffffffff1692820192909252600160e01b90910460ff161515918101829052906125645780516001600160a01b0316156124fa579392505050565b5060001901600081815260036020908152604091829020825160608101845290546001600160a01b038116808352600160a01b820467ffffffffffffffff1693830193909352600160e01b900460ff161515928101929092521561255f579392505050565b6124fa565b505b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60006117898383612b23565b60006001600160a01b0384163b156126a757604051630a85bd0160e11b81526001600160a01b0385169063150b7a02906125e8903390899088908890600401613492565b602060405180830381600087803b15801561260257600080fd5b505af1925050508015612632575060408051601f3d908101601f1916820190925261262f9181019061332c565b60015b61268d573d808015612660576040519150601f19603f3d011682016040523d82523d6000602084013e612665565b606091505b508051612685576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490506126ab565b5060015b949350505050565b6060600d8054610a5290613628565b6060816126e65750506040805180820190915260018152600360fc1b602082015290565b8160005b811561271057806126fa81613663565b91506127099050600a8361359b565b91506126ea565b60008167ffffffffffffffff81111561273957634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015612763576020820181803683370190505b5090505b84156126ab576127786001836135ce565b9150612785600a8661367e565b612790906030613583565b60f81b8183815181106127b357634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a9053506127d5600a8661359b565b9450612767565b6000610a3d825490565b600081815260018301602052604081205461282d57508154600181810184556000848152602080822090930184905584548482528286019093526040902091909155610a3d565b506000610a3d565b60006001600160e01b031982167f7965db0b000000000000000000000000000000000000000000000000000000001480610a3d5750610a3d82612b5b565b606060006128828360026135af565b61288d906002613583565b67ffffffffffffffff8111156128b357634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f1916602001820160405280156128dd576020820181803683370190505b509050600360fc1b8160008151811061290657634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a9053507f78000000000000000000000000000000000000000000000000000000000000008160018151811061295f57634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a90535060006129838460026135af565b61298e906001613583565b90505b6001811115612a2f577f303132333435363738396162636465660000000000000000000000000000000085600f16601081106129dd57634e487b7160e01b600052603260045260246000fd5b1a60f81b828281518110612a0157634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a90535060049490941c93612a2881613611565b9050612991565b5083156117895760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152606401610d05565b60008281526007602090815260408083206001600160a01b038516845290915290205460ff16156110605760008281526007602090815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b6000611789836001600160a01b038416612c2a565b610bed8383836001612d47565b6000826000018281548110612b4857634e487b7160e01b600052603260045260246000fd5b9060005260206000200154905092915050565b60006001600160e01b031982167f80ac58cd000000000000000000000000000000000000000000000000000000001480612bbe57506001600160e01b031982167f5b5e139f00000000000000000000000000000000000000000000000000000000145b80612bf257506001600160e01b031982167f780e9d6300000000000000000000000000000000000000000000000000000000145b80610a3d57507f01ffc9a7000000000000000000000000000000000000000000000000000000006001600160e01b0319831614610a3d565b60008181526001830160205260408120548015612d3d576000612c4e6001836135ce565b8554909150600090612c62906001906135ce565b9050818114612ce3576000866000018281548110612c9057634e487b7160e01b600052603260045260246000fd5b9060005260206000200154905080876000018481548110612cc157634e487b7160e01b600052603260045260246000fd5b6000918252602080832090910192909255918252600188019052604090208390555b8554869080612d0257634e487b7160e01b600052603160045260246000fd5b600190038181906000526020600020016000905590558560010160008681526020019081526020016000206000905560019350505050610a3d565b6000915050610a3d565b6000546001600160801b03166001600160a01b038516612d93576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b83612dca576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6001600160a01b038516600081815260046020908152604080832080546fffffffffffffffffffffffffffffffff19811667ffffffffffffffff8083168c0181169182176801000000000000000067ffffffffffffffff1990941690921783900481168c018116909202179091558584526003909252822080546001600160e01b031916909317600160a01b42909216919091021790915581905b85811015612ee65760405182906001600160a01b038916906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a4838015612ebc5750612eba60008884886125a4565b155b15612eda576040516368d2bf6b60e11b815260040160405180910390fd5b60019182019101612e65565b50600080546fffffffffffffffffffffffffffffffff19166001600160801b03929092169190911790556123f6565b828054612f2190613628565b90600052602060002090601f016020900481019282612f435760008555612f89565b82601f10612f5c57805160ff1916838001178555612f89565b82800160010185558215612f89579182015b82811115612f89578251825591602001919060010190612f6e565b50612f95929150612f99565b5090565b5b80821115612f955760008155600101612f9a565b600067ffffffffffffffff831115612fc857612fc86136be565b612fdb601f8401601f191660200161352e565b9050828152838383011115612fef57600080fd5b828260208301376000602084830101529392505050565b80356001600160a01b038116811461301d57600080fd5b919050565b600082601f830112613032578081fd5b813560206130476130428361355f565b61352e565b80838252828201915082860187848660051b8901011115613066578586fd5b855b8581101561308457813584529284019290840190600101613068565b5090979650505050505050565b6000602082840312156130a2578081fd5b61178982613006565b600080604083850312156130bd578081fd5b6130c683613006565b91506130d460208401613006565b90509250929050565b6000806000606084860312156130f1578081fd5b6130fa84613006565b925061310860208501613006565b9150604084013590509250925092565b6000806000806080858703121561312d578081fd5b61313685613006565b935061314460208601613006565b925060408501359150606085013567ffffffffffffffff811115613166578182fd5b8501601f81018713613176578182fd5b61318587823560208401612fae565b91505092959194509250565b600080604083850312156131a3578182fd5b6131ac83613006565b9150602083013580151581146131c0578182fd5b809150509250929050565b600080604083850312156131dd578182fd5b6131e683613006565b946020939093013593505050565b60008060408385031215613206578182fd5b823567ffffffffffffffff8082111561321d578384fd5b818501915085601f830112613230578384fd5b813560206132406130428361355f565b8083825282820191508286018a848660051b890101111561325f578889fd5b8896505b848710156132885761327481613006565b835260019690960195918301918301613263565b509650508601359250508082111561329e578283fd5b506132ab85828601613022565b9150509250929050565b6000602082840312156132c6578081fd5b5035919050565b600080604083850312156132df578182fd5b823591506130d460208401613006565b60008060408385031215613301578182fd5b50508035926020909101359150565b600060208284031215613321578081fd5b8135611789816136d4565b60006020828403121561333d578081fd5b8151611789816136d4565b600060208284031215613359578081fd5b813567ffffffffffffffff81111561336f578182fd5b8201601f8101841361337f578182fd5b6126ab84823560208401612fae565b600081518084526133a68160208601602086016135e5565b601f01601f19169290920160200192915050565b600083516133cc8184602088016135e5565b8351908301906133e08183602088016135e5565b7f2e6a736f6e0000000000000000000000000000000000000000000000000000009101908152600501949350505050565b7f416363657373436f6e74726f6c3a206163636f756e74200000000000000000008152600083516134498160178501602088016135e5565b7f206973206d697373696e6720726f6c652000000000000000000000000000000060179184019182015283516134868160288401602088016135e5565b01602801949350505050565b60006001600160a01b038087168352808616602084015250836040830152608060608301526134c4608083018461338e565b9695505050505050565b6020808252825182820181905260009190848201906040850190845b8181101561350f5783516001600160a01b0316835292840192918401916001016134ea565b50909695505050505050565b602081526000611789602083018461338e565b604051601f8201601f1916810167ffffffffffffffff81118282101715613557576135576136be565b604052919050565b600067ffffffffffffffff821115613579576135796136be565b5060051b60200190565b6000821982111561359657613596613692565b500190565b6000826135aa576135aa6136a8565b500490565b60008160001904831182151516156135c9576135c9613692565b500290565b6000828210156135e0576135e0613692565b500390565b60005b838110156136005781810151838201526020016135e8565b838111156113085750506000910152565b60008161362057613620613692565b506000190190565b600181811c9082168061363c57607f821691505b6020821081141561365d57634e487b7160e01b600052602260045260246000fd5b50919050565b600060001982141561367757613677613692565b5060010190565b60008261368d5761368d6136a8565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160e01b031981168114610c9b57600080fdfe523a704056dcd17bcf83bed8b68c59416dac1119be77755efe3bde0a64e46e0ca264697066735822122026bc96e3384571b1a3353a5445e0ec85866533be334a4f4d2b5948722acfa56764736f6c63430008040033

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.