ETH Price: $2,620.64 (+7.65%)
 

Overview

Max Total Supply

11,111 VDLZ

Holders

963

Market

Volume (24H)

0.012 ETH

Min Price (24H)

$31.42 @ 0.011989 ETH

Max Price (24H)

$31.42 @ 0.011989 ETH

Other Info

Balance
1 VDLZ
0x0bf8897eE519FbFC60E70300c1Eb51Dd439BA5A5
Loading...
Loading
Loading...
Loading
Loading...
Loading

OVERVIEW

Vandalz is a collection of 11,111 unique 3D animated NFTs that live in the WhIsBeVerse. The WhIsBeVerse uniquely blends both physical and digital worlds together to truly connect communities.

# Exchange Pair Price  24H Volume % Volume

Contract Source Code Verified (Exact Match)

Contract Name:
WhIsBeVandalz

Compiler Version
v0.8.7+commit.e28d00a7

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 25 : WhIsBeVandalz.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.7;

// interfaces
import "@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol";
import "@openzeppelin/contracts/token/ERC1155/IERC1155.sol";
import { IERC20 } from "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import { IERC165 } from "@openzeppelin/contracts/utils/introspection/ERC165Storage.sol";
import { IERC2981 } from "@openzeppelin/contracts/interfaces/IERC2981.sol";

// library
import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol";
import "@openzeppelin/contracts/utils/Strings.sol";
import { Errors } from "./types/Errors.sol";
import { Constants } from "./Constants.sol";
import { SafeERC20 } from "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";

// contracts
import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/token/ERC721/utils/ERC721Holder.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Burnable.sol";
import { ERC165Storage } from "@openzeppelin/contracts/utils/introspection/ERC165Storage.sol";
import "@openzeppelin/contracts/access/Ownable.sol";

import "./ERC721RandomlyAssignVandalzTier.sol";

interface IGoodKarmaToken {
    function burnTokenForVandal(address holderAddress) external;
}

// solhint-disable

// // // // // // // // // // // // // // // // // // // // // //
// ██╗   ██╗ █████╗ ███╗   ██╗██████╗  █████╗ ██╗     ███████╗ //
// ██║   ██║██╔══██╗████╗  ██║██╔══██╗██╔══██╗██║     ╚══███╔╝ //
// ██║   ██║███████║██╔██╗ ██║██║  ██║███████║██║       ███╔╝  //
// ╚██╗ ██╔╝██╔══██║██║╚██╗██║██║  ██║██╔══██║██║      ███╔╝   //
//  ╚████╔╝ ██║  ██║██║ ╚████║██████╔╝██║  ██║███████╗███████╗ //
//   ╚═══╝  ╚═╝  ╚═╝╚═╝  ╚═══╝╚═════╝ ╚═╝  ╚═╝╚══════╝╚══════╝ //
// // // // // // // // // // // // // // // // // // // // // //

// solhint-enable

/**
 * @title tirewise random assignment contract for vandalz
 * @author
 */
contract WhIsBeVandalz is
    ERC721,
    Ownable,
    ERC721RandomlyAssignVandalzTier,
    ERC721Holder,
    ERC721Burnable,
    ERC165Storage,
    IERC2981
{
    //==Type declarations==//

    using Strings for uint256;
    using SafeERC20 for IERC20;

    //==state variables==//
    /**
     * @notice
     * @dev
     */
    uint256 public publicSalePrice;

    /**
     * @notice
     * @dev
     */
    bool public publicMintPaused = true;

    /**
     * @notice
     * @dev
     */
    bool public whitelistState = true;

    /**
     * @notice
     * @dev
     */
    bool public revealed = true;

    /**
     * @notice
     * @dev
     */
    bool public redeemPaused = true;

    /**
     * @notice
     * @dev
     */
    bool public includeTier1 = false;

    /**
     * @notice list of allowlist address hashed
     * @dev the merkle root hash allowlist
     */
    bytes32 public merkleRoot;

    address public royaltyAddress;
    uint256 public royaltyPercent;

    /**
     * @notice
     * @dev
     */
    uint256[] public groupTier15678Indexes;

    /**
     * @notice
     * @dev
     */
    uint256[] public groupTier5678Indexes;

    /**
     * @notice
     * @dev
     */
    string public baseURI;

    /**
     * @notice
     * @dev
     */
    string public baseExtension = ".json";

    /**
     * @notice
     * @dev
     */
    string public notRevealedUri;

    /**
     * @notice
     * @dev
     */
    mapping(address => bool) public acceptedCollections;

    /**
     * @notice nft burn tracker
     * @dev increments the counter whenever nft is redeemed
     */
    mapping(address => uint256) public burnCounter;

    /**
     * @notice public mint tracker per wallet
     * @dev maps amount of "publicly" minted vandalz per wallet
     */
    mapping(address => uint256) public publicMintCounter;

    //==Constants==//

    // bytes4 constants for ERC165
    bytes4 private constant _INTERFACE_ID_ERC721 = 0x80ac58cd;
    bytes4 private constant _INTERFACE_ID_IERC2981 = 0x2a55205a;
    bytes4 private constant _INTERFACE_ID_IERC721Metadata = 0x5b5e139f;

    /**
     * @notice number of tiers
     * @dev the length of `_tiers` array in constructor should exactly match this number
     */
    uint256 public constant TIERS = uint256(8);

    //==events==//
    event UpdatedRoyalties(address newRoyaltyAddress, uint256 newPercentage);

    //==Modifiers==//

    /**
     * @dev Throws if timestamp already set.
     */
    modifier publicMintNotPaused() {
        require(publicMintPaused == false, "Public mint is paused");
        _;
    }

    /**
     * @dev Throws if timestamp already set.
     */
    modifier redeemNotPaused() {
        require(redeemPaused == false, "Redeem is paused");
        _;
    }

    //===Constructor===//

    /**
     * @notice
     * @dev
     * @param _name name of the collection
     * @param _symbol symbol of the collection
     * @param _totalSupply maximum pieces if the collection
     * @param _startFrom first token ID of collection
     * @param _tiers list of tier details
     * @param _initBaseURI x
     * @param _initNotRevealedUri v
     */
    constructor(
        string memory _name,
        string memory _symbol,
        uint256 _totalSupply,
        uint256 _startFrom,
        DataTypes.Tier[] memory _tiers,
        string memory _initBaseURI,
        string memory _initNotRevealedUri
    ) ERC721(_name, _symbol) ERC721RandomlyAssignVandalzTier(_totalSupply, _startFrom) {
        uint256 _tiersLen = _tiers.length;
        if (_tiersLen != TIERS) {
            revert Errors.WhisbeVandalz__EightTiersRequired(_tiersLen);
        }

        baseURI = _initBaseURI;

        // no reveal uri
        notRevealedUri = _initNotRevealedUri;

        // whitelisted collections
        acceptedCollections[address(Constants.EXTINCTION_OPEN_EDITION_BY_WHISBE)] = true;
        acceptedCollections[address(Constants.THE_HORNED_KARMA_CHAMELEON_BURN_REDEMPTION_BY_WHISBE)] = true;
        acceptedCollections[address(Constants.KARMA_KEY_BLACK_BY_WHISBE)] = true;
        acceptedCollections[address(Constants.KARMA_KEYS_BY_WHISBE)] = true;
        acceptedCollections[address(Constants.GOOD_KARMA_TOKEN)] = true;

        // tiers
        for (uint256 _i; _i < _tiersLen; _i++) {
            tiers.push(_tiers[_i]);
        }

        // custom : group tiers 1,5,6,7,& 8
        groupTier15678Indexes.push(0); // tier1 , group index -> 0
        groupTier15678Indexes.push(4); // tier5 , group index -> 1
        groupTier15678Indexes.push(5); // tier6 , group index -> 2
        groupTier15678Indexes.push(6); // tier7 , group index -> 3
        groupTier15678Indexes.push(7); // tier8 , group index -> 4

        // custom : group tiers 5,6,7,& 8
        groupTier5678Indexes.push(4); // tier5 , group index -> 0
        groupTier5678Indexes.push(5); // tier6 , group index -> 1
        groupTier5678Indexes.push(6); // tier7 , group index -> 2
        groupTier5678Indexes.push(7); // tier8 , group index -> 3

        _registerInterface(_INTERFACE_ID_ERC721);
        _registerInterface(_INTERFACE_ID_IERC2981);
        _registerInterface(_INTERFACE_ID_IERC721Metadata);
        _setRoyalties(msg.sender, 1100); // 11% royalty
    }

    //===receive function===//

    receive() external payable {
        publicMint(new bytes32[](0));
    }

    //===External functions===//

    /**
     * @notice
     * @dev
     */
    function redeem(address[] memory _collections, uint256[][] memory _tokenIds) external redeemNotPaused {
        uint256 _collectionsLen = _collections.length;
        require(_collectionsLen == _tokenIds.length, "");
        for (uint256 _j; _j < _collectionsLen; _j++) {
            if (!acceptedCollections[_collections[_j]]) {
                revert Errors.WhisbeVandalz__InvalidCollection(_collections[_j]);
            }
            uint256 _tokenIdsLen = _tokenIds[_j].length;
            burnCounter[_collections[_j]] += _tokenIdsLen;
            for (uint256 _i; _i < _tokenIdsLen; _i++) {
                // transfer ownership or burn
                if (_collections[_j] == Constants.EXTINCTION_OPEN_EDITION_BY_WHISBE) {
                    ERC721Burnable(_collections[_j]).safeTransferFrom(msg.sender, address(this), _tokenIds[_j][_i]);
                } else if (_collections[_j] == Constants.GOOD_KARMA_TOKEN) {
                    IGoodKarmaToken(_collections[_j]).burnTokenForVandal(msg.sender);
                } else {
                    ERC721Burnable(_collections[_j]).burn(_tokenIds[_j][_i]);
                }
                // mint Vandalz
                _mintRandomVandalz(msg.sender, _collections[_j]);
            }
        }
    }

    /**
     * @notice
     * @dev
     */
    function airDropToOG(address[] memory _tos) external onlyOwner {
        if (includeTier1) {
            for (uint256 _i; _i < _tos.length; _i++) {
                _handleMintRandomlyFromTierGroup15678(_tos[_i], 1);
            }
        } else {
            for (uint256 _i; _i < _tos.length; _i++) {
                _handleMintRandomlyFromTierGroup5678(_tos[_i], 1);
            }
        }
    }

    /**
     * @notice
     * @dev
     */
    function creatorMint(address _to, uint256[] memory _tokenIds) external onlyOwner {
        for (uint256 _i; _i < _tokenIds.length; _i++) {
            _internalCreatorMint(_to, _tokenIds[_i]);
        }
    }

    /**
     * @notice
     * @dev
     */
    function _internalCreatorMint(address _to, uint256 _tokenId) internal ensureAvailability {
        _updateTierTokenCount(_tokenId);
        _safeMint(_to, _tokenId);
    }

    /**
     * @notice
     * @dev
     */
    function setSupply(uint256 _supply) external onlyOwner {
        _setSupply(_supply);
    }

    /**
     * @notice
     * @dev
     */
    function setTier(
        uint256[] memory _tierIndex,
        uint256[] memory _from,
        uint256[] memory _to
    ) external onlyOwner {
        require(
            _tierIndex.length == _from.length && _from.length == _to.length,
            "WhisbeVandalz: tier details length mismatch"
        );
        for (uint256 _i; _i < _tierIndex.length; _i++) {
            require(_tierIndex[_i] < TIERS, "WhisbeVandalz: tierIndex exceeds max permitted tiers");
            _setTier(_tierIndex[_i], _from[_i], _to[_i]);
        }
    }

    /**
     * @notice
     * @dev
     */
    function reveal() external onlyOwner {
        revealed = true;
    }

    /**
     * @notice
     * @dev
     */
    function setPublicSalePrice(uint256 _publicSalePrice) external onlyOwner {
        publicSalePrice = _publicSalePrice;
    }

    /**
     * @notice
     * @dev
     */
    function setBaseExtension(string memory _newBaseExtension) external onlyOwner {
        baseExtension = _newBaseExtension;
    }

    /**
     * @notice
     * @dev
     */
    function pauseRedeem(bool _state) external onlyOwner {
        redeemPaused = _state;
    }

    /**
     * @notice
     * @dev
     */
    function pausePublicMint(bool _state) external onlyOwner {
        publicMintPaused = _state;
    }

    /**
     * @notice
     * @dev
     */
    function setWhitelistState(bool _state) external onlyOwner {
        whitelistState = _state;
    }

    /**
     * @notice
     * @dev
     */
    function setIncludeTier1(bool _includeTier1) external onlyOwner {
        includeTier1 = _includeTier1;
    }

    /**
     * @notice
     * @dev
     */
    function updateMerkleRoot(bytes32 _merkleRoot) external onlyOwner {
        merkleRoot = _merkleRoot;
    }

    /**
     * @notice
     * @dev
     */
    function setBaseURI(string memory _newBaseURI) external onlyOwner {
        baseURI = _newBaseURI;
    }

    /**
     * @notice
     * @dev
     */
    function setNotRevealedURI(string memory _notRevealedURI) external onlyOwner {
        notRevealedUri = _notRevealedURI;
    }

    /**
     * @notice
     * @dev
     */
    function withdrawETH() external onlyOwner {
        payable(msg.sender).transfer(address(this).balance);
    }

    /**
     * @notice Transfer accidentally locked ERC20 tokens
     * @dev can be called by owner only.
     * @param _token - ERC20 token address.
     * @param _amount - ERC20 token amount.
     */
    function transferAccidentallyLockedTokens(IERC20 _token, uint256 _amount) external onlyOwner {
        require(address(_token) != address(0), "Token address can not be zero");
        // Transfer the amount of the specified ERC20 tokens, to the owner of this contract
        _token.safeTransfer(msg.sender, _amount);
    }

    function setRoyaltyInfo(address $royaltyAddress, uint256 $percentage) external onlyOwner {
        _setRoyalties($royaltyAddress, $percentage);
        emit UpdatedRoyalties($royaltyAddress, $percentage);
    }

    //===Public functions===//

    /**
     * @notice
     * @dev
     * @param _proof a
     */
    function publicMint(bytes32[] memory _proof) public payable publicMintNotPaused {
        // Notes: 1592 will be comprised of Tier 3 pieces (approximately 650pieces)
        // Remaining pieces chosen from Tier 1/5/6/7/8

        // cannot mint more than two Vandalz
        if (publicMintCounter[msg.sender] >= 2) {
            revert Errors.WhisbeVandalz__PublicMintUpToTwoPerWallet();
        }

        require(msg.value == publicSalePrice, "WhisbeVandalz: eth value should be equal to publicSalePrice");
        if (whitelistState) {
            _isWhitelistedAddress(_proof);
        }
        _safeMint(msg.sender, _nextToken());
        publicMintCounter[msg.sender] += 1;
    }

    //===Public view functions===//

    function royaltyInfo(uint256, uint256 $salePrice)
        public
        view
        override(IERC2981)
        returns (address _receiver, uint256 _royaltyAmount)
    {
        _receiver = royaltyAddress;

        // This sets percentages by price * percentage / 10000
        _royaltyAmount = ($salePrice * royaltyPercent) / 10000;
    }

    function supportsInterface(bytes4 $interfaceId)
        public
        view
        override(ERC165Storage, ERC721, IERC165)
        returns (bool)
    {
        return super.supportsInterface($interfaceId);
    }

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

        if (revealed == false) {
            return notRevealedUri;
        }

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

    /**
     * @notice
     * @dev
     */
    function getBlockTimestamp() public view virtual returns (uint256) {
        return block.timestamp;
    }

    //===Internal functions===//

    function _setRoyalties(address $receiver, uint256 $percentage) internal {
        royaltyAddress = $receiver;
        royaltyPercent = $percentage;
    }

    /**
     * @notice
     * @dev
     */
    function _mintRandomVandalz(address _to, address _collection) internal {
        if (_collection == Constants.EXTINCTION_OPEN_EDITION_BY_WHISBE) {
            _handleMintForExtinctionOpenEditionByWhisbe(_to);
        } else if (_collection == Constants.THE_HORNED_KARMA_CHAMELEON_BURN_REDEMPTION_BY_WHISBE) {
            _handleMintForTheHornedKarmaChamaleonBurnRedemptionByWhisbe(_to);
        } else if (_collection == Constants.KARMA_KEY_BLACK_BY_WHISBE) {
            _handleMintForKarmaKeyBlackByWhisbe(_to);
        } else if (_collection == Constants.KARMA_KEYS_BY_WHISBE) {
            _handleMintForKarmaKeysByWhisbe(_to);
        } else if (_collection == Constants.GOOD_KARMA_TOKEN) {
            _handleMintForGoodKarmaToken(_to);
        } else {
            revert Errors.WhisbeVandalz__MintNotAvailable();
        }
    }

    //===Internal view functions===//

    /**
     * @notice function to check via merkle proof whether an address is whitelisted
     * @param _proof the nodes required for the merkle proof
     */
    function _isWhitelistedAddress(bytes32[] memory _proof) internal view {
        bytes32 addressHash = keccak256(abi.encodePacked(msg.sender));
        require(MerkleProof.verify(_proof, merkleRoot, addressHash), "Whitelist: caller is not whitelisted");
    }

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

    //===Private functions===//

    /**
     * @notice
     * @dev
     */
    function _handleMintForExtinctionOpenEditionByWhisbe(address _to) private {
        // 1 from tier 4
        _safeMint(_to, _nextTokenFromTier(3));

        // 1 from tier 1,5,6,7,8
        if (includeTier1) {
            _handleMintRandomlyFromTierGroup15678(_to, 1);
        } else {
            _handleMintRandomlyFromTierGroup5678(_to, 1);
        }
    }

    /**
     * @notice
     * @dev
     */
    function _handleMintForTheHornedKarmaChamaleonBurnRedemptionByWhisbe(address _to) private {
        // 1 from tier 2
        _safeMint(_to, _nextTokenFromTier(1));

        // 1 from tier 4
        _safeMint(_to, _nextTokenFromTier(3));

        // 8 from tier 1,5,6,7,8
        if (includeTier1) {
            _handleMintRandomlyFromTierGroup15678(_to, uint256(8));
        } else {
            _handleMintRandomlyFromTierGroup5678(_to, uint256(8));
        }
    }

    /**
     * @notice
     * @dev
     */
    function _handleMintForKarmaKeyBlackByWhisbe(address _to) private {
        // 1 from tier 4
        _safeMint(_to, _nextTokenFromTier(3));

        // 1 from tier 1,5,6,7,8
        if (includeTier1) {
            _handleMintRandomlyFromTierGroup15678(_to, uint256(1));
        } else {
            _handleMintRandomlyFromTierGroup5678(_to, uint256(1));
        }
    }

    /**
     * @notice
     * @dev
     */
    function _handleMintForKarmaKeysByWhisbe(address _to) private {
        // 1 from tier 1,5,6,7,8
        if (includeTier1) {
            _handleMintRandomlyFromTierGroup15678(_to, uint256(1));
        } else {
            _handleMintRandomlyFromTierGroup5678(_to, uint256(1));
        }
    }

    /**
     * @notice
     * @dev
     */
    function _handleMintForGoodKarmaToken(address _to) private {
        // 1 from tier 1,5,6,7,8
        if (includeTier1) {
            _handleMintRandomlyFromTierGroup15678(_to, uint256(1));
        } else {
            _handleMintRandomlyFromTierGroup5678(_to, uint256(1));
        }
    }

    /**
     * @notice
     * @dev
     */
    function _handleMintRandomlyFromTierGroup15678(address _to, uint256 _count) private {
        uint256 _groupTier15678IndexesLen = groupTier15678Indexes.length;
        if (_groupTier15678IndexesLen == 0) {
            revert Errors.WhisbeVandalz__NoGroupTier15678Group();
        }
        uint256 _randomTier15678GroupIndex;
        for (uint256 _i; _i < _count; _i++) {
            // get random tier index from tier group
            _randomTier15678GroupIndex = _getRandomNumber() % _groupTier15678IndexesLen;

            // mint
            _safeMint(_to, _nextTokenFromTier(groupTier15678Indexes[_randomTier15678GroupIndex]));

            // check and update tier group based on each tier's token availability
            _checkAndUpdateGroupTier15678TokenAvailability(_randomTier15678GroupIndex);
            if (_randomTier15678GroupIndex != 0) {
                _checkAndUpdateGroupTier5678TokenAvailability(_randomTier15678GroupIndex - 1);
            }
        }
    }

    /**
     * @notice
     * @dev
     */
    function _handleMintRandomlyFromTierGroup5678(address _to, uint256 _count) private {
        uint256 _groupTier5678IndexesLen = groupTier5678Indexes.length;
        if (_groupTier5678IndexesLen == 0) {
            revert Errors.WhisbeVandalz__NoGroupTier5678Group();
        }
        uint256 _randomTier5678GroupIndex;
        for (uint256 _i; _i < _count; _i++) {
            // get random tier index from tier group
            _randomTier5678GroupIndex = _getRandomNumber() % _groupTier5678IndexesLen;

            // mint
            _safeMint(_to, _nextTokenFromTier(groupTier5678Indexes[_randomTier5678GroupIndex]));

            // check and update tier group based on each tier's token availability
            _checkAndUpdateGroupTier5678TokenAvailability(_randomTier5678GroupIndex);
            _checkAndUpdateGroupTier15678TokenAvailability(_randomTier5678GroupIndex + 1);
        }
    }

    /**
     * @dev
     * @param _index
     */
    function _checkAndUpdateGroupTier15678TokenAvailability(uint256 _index) private {
        if (availableTierTokenCount(groupTier15678Indexes[_index]) == 0) {
            groupTier15678Indexes[_index] = groupTier15678Indexes[groupTier15678Indexes.length - 1];
            groupTier15678Indexes.pop();
        }
    }

    /**
     * @dev
     * @param _index
     */
    function _checkAndUpdateGroupTier5678TokenAvailability(uint256 _index) private {
        if (availableTierTokenCount(groupTier5678Indexes[_index]) == 0) {
            groupTier5678Indexes[_index] = groupTier5678Indexes[groupTier5678Indexes.length - 1];
            groupTier5678Indexes.pop();
        }
    }
}

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

pragma solidity ^0.8.0;

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

File 3 of 25 : IERC1155.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC1155/IERC1155.sol)

pragma solidity ^0.8.0;

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

/**
 * @dev Required interface of an ERC1155 compliant contract, as defined in the
 * https://eips.ethereum.org/EIPS/eip-1155[EIP].
 *
 * _Available since v3.1._
 */
interface IERC1155 is IERC165 {
    /**
     * @dev Emitted when `value` tokens of token type `id` are transferred from `from` to `to` by `operator`.
     */
    event TransferSingle(address indexed operator, address indexed from, address indexed to, uint256 id, uint256 value);

    /**
     * @dev Equivalent to multiple {TransferSingle} events, where `operator`, `from` and `to` are the same for all
     * transfers.
     */
    event TransferBatch(
        address indexed operator,
        address indexed from,
        address indexed to,
        uint256[] ids,
        uint256[] values
    );

    /**
     * @dev Emitted when `account` grants or revokes permission to `operator` to transfer their tokens, according to
     * `approved`.
     */
    event ApprovalForAll(address indexed account, address indexed operator, bool approved);

    /**
     * @dev Emitted when the URI for token type `id` changes to `value`, if it is a non-programmatic URI.
     *
     * If an {URI} event was emitted for `id`, the standard
     * https://eips.ethereum.org/EIPS/eip-1155#metadata-extensions[guarantees] that `value` will equal the value
     * returned by {IERC1155MetadataURI-uri}.
     */
    event URI(string value, uint256 indexed id);

    /**
     * @dev Returns the amount of tokens of token type `id` owned by `account`.
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     */
    function balanceOf(address account, uint256 id) external view returns (uint256);

    /**
     * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {balanceOf}.
     *
     * Requirements:
     *
     * - `accounts` and `ids` must have the same length.
     */
    function balanceOfBatch(address[] calldata accounts, uint256[] calldata ids)
        external
        view
        returns (uint256[] memory);

    /**
     * @dev Grants or revokes permission to `operator` to transfer the caller's tokens, according to `approved`,
     *
     * Emits an {ApprovalForAll} event.
     *
     * Requirements:
     *
     * - `operator` cannot be the caller.
     */
    function setApprovalForAll(address operator, bool approved) external;

    /**
     * @dev Returns true if `operator` is approved to transfer ``account``'s tokens.
     *
     * See {setApprovalForAll}.
     */
    function isApprovedForAll(address account, address operator) external view returns (bool);

    /**
     * @dev Transfers `amount` tokens of token type `id` from `from` to `to`.
     *
     * Emits a {TransferSingle} event.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - If the caller is not `from`, it must be have been approved to spend ``from``'s tokens via {setApprovalForAll}.
     * - `from` must have a balance of tokens of type `id` of at least `amount`.
     * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the
     * acceptance magic value.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 id,
        uint256 amount,
        bytes calldata data
    ) external;

    /**
     * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {safeTransferFrom}.
     *
     * Emits a {TransferBatch} event.
     *
     * Requirements:
     *
     * - `ids` and `amounts` must have the same length.
     * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the
     * acceptance magic value.
     */
    function safeBatchTransferFrom(
        address from,
        address to,
        uint256[] calldata ids,
        uint256[] calldata amounts,
        bytes calldata data
    ) external;
}

File 4 of 25 : IERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/IERC20.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @dev Emitted when `value` tokens are moved from one account (`from`) to
     * another (`to`).
     *
     * Note that `value` may be zero.
     */
    event Transfer(address indexed from, address indexed to, uint256 value);

    /**
     * @dev Emitted when the allowance of a `spender` for an `owner` is set by
     * a call to {approve}. `value` is the new allowance.
     */
    event Approval(address indexed owner, address indexed spender, uint256 value);

    /**
     * @dev Returns the amount of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

    /**
     * @dev Returns the amount of tokens owned by `account`.
     */
    function balanceOf(address account) external view returns (uint256);

    /**
     * @dev Moves `amount` tokens from the caller's account to `to`.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transfer(address to, uint256 amount) external returns (bool);

    /**
     * @dev Returns the remaining number of tokens that `spender` will be
     * allowed to spend on behalf of `owner` through {transferFrom}. This is
     * zero by default.
     *
     * This value changes when {approve} or {transferFrom} are called.
     */
    function allowance(address owner, address spender) external view returns (uint256);

    /**
     * @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * IMPORTANT: Beware that changing an allowance with this method brings the risk
     * that someone may use both the old and the new allowance by unfortunate
     * transaction ordering. One possible solution to mitigate this race
     * condition is to first reduce the spender's allowance to 0 and set the
     * desired value afterwards:
     * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
     *
     * Emits an {Approval} event.
     */
    function approve(address spender, uint256 amount) external returns (bool);

    /**
     * @dev Moves `amount` tokens from `from` to `to` using the
     * allowance mechanism. `amount` is then deducted from the caller's
     * allowance.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(
        address from,
        address to,
        uint256 amount
    ) external returns (bool);
}

File 5 of 25 : ERC165Storage.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165Storage.sol)

pragma solidity ^0.8.0;

import "./ERC165.sol";

/**
 * @dev Storage based implementation of the {IERC165} interface.
 *
 * Contracts may inherit from this and call {_registerInterface} to declare
 * their support of an interface.
 */
abstract contract ERC165Storage is ERC165 {
    /**
     * @dev Mapping of interface ids to whether or not it's supported.
     */
    mapping(bytes4 => bool) private _supportedInterfaces;

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

    /**
     * @dev Registers the contract as an implementer of the interface defined by
     * `interfaceId`. Support of the actual ERC165 interface is automatic and
     * registering its interface id is not required.
     *
     * See {IERC165-supportsInterface}.
     *
     * Requirements:
     *
     * - `interfaceId` cannot be the ERC165 invalid interface (`0xffffffff`).
     */
    function _registerInterface(bytes4 interfaceId) internal virtual {
        require(interfaceId != 0xffffffff, "ERC165: invalid interface id");
        _supportedInterfaces[interfaceId] = true;
    }
}

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

pragma solidity ^0.8.0;

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

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

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

pragma solidity ^0.8.0;

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

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

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

File 8 of 25 : 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 9 of 25 : Errors.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.7;

library Errors {
    error WhisbeVandalz__InvalidCollection(address);
    error WhisbeVandalz__EightTiersRequired(uint256);
    error ERC721RandomlyAssignVandalzTier__UnavailableTierTokens(uint256);
    error WhisbeVandalz__MintNotAvailable();
    error WhisbeVandalz__PublicMintUpToTwoPerWallet();
    error WhisbeVandalz__NoGroupTier15678Group();
    error WhisbeVandalz__NoGroupTier5678Group();
}

File 10 of 25 : Constants.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.7;

/**
 * @title
 * @author
 */
library Constants {
    address public constant EXTINCTION_OPEN_EDITION_BY_WHISBE = 0xcD136E30b316837C190241e838639c619516Fdf9;
    address public constant THE_HORNED_KARMA_CHAMELEON_BURN_REDEMPTION_BY_WHISBE =
        0x41C884CC6847a95CfFf4EaC251173ea72C3c5eFB;
    address public constant KARMA_KEY_BLACK_BY_WHISBE = 0xe2C2613E647Ebd03fdC71a1Cf1fD1F938321356c;
    address public constant KARMA_KEYS_BY_WHISBE = 0xA53e7Fd6abC0fe9769690Af55f19c2b4A13F2Bc3;
    address public constant GOOD_KARMA_TOKEN = 0xC5dd321472f80A3EC9779F55cc1Af854712fAE70;
}

File 11 of 25 : SafeERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC20/utils/SafeERC20.sol)

pragma solidity ^0.8.0;

import "../IERC20.sol";
import "../../../utils/Address.sol";

/**
 * @title SafeERC20
 * @dev Wrappers around ERC20 operations that throw on failure (when the token
 * contract returns false). Tokens that return no value (and instead revert or
 * throw on failure) are also supported, non-reverting calls are assumed to be
 * successful.
 * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract,
 * which allows you to call the safe operations as `token.safeTransfer(...)`, etc.
 */
library SafeERC20 {
    using Address for address;

    function safeTransfer(
        IERC20 token,
        address to,
        uint256 value
    ) internal {
        _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value));
    }

    function safeTransferFrom(
        IERC20 token,
        address from,
        address to,
        uint256 value
    ) internal {
        _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value));
    }

    /**
     * @dev Deprecated. This function has issues similar to the ones found in
     * {IERC20-approve}, and its usage is discouraged.
     *
     * Whenever possible, use {safeIncreaseAllowance} and
     * {safeDecreaseAllowance} instead.
     */
    function safeApprove(
        IERC20 token,
        address spender,
        uint256 value
    ) internal {
        // safeApprove should only be called when setting an initial allowance,
        // or when resetting it to zero. To increase and decrease it, use
        // 'safeIncreaseAllowance' and 'safeDecreaseAllowance'
        require(
            (value == 0) || (token.allowance(address(this), spender) == 0),
            "SafeERC20: approve from non-zero to non-zero allowance"
        );
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value));
    }

    function safeIncreaseAllowance(
        IERC20 token,
        address spender,
        uint256 value
    ) internal {
        uint256 newAllowance = token.allowance(address(this), spender) + value;
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
    }

    function safeDecreaseAllowance(
        IERC20 token,
        address spender,
        uint256 value
    ) internal {
        unchecked {
            uint256 oldAllowance = token.allowance(address(this), spender);
            require(oldAllowance >= value, "SafeERC20: decreased allowance below zero");
            uint256 newAllowance = oldAllowance - value;
            _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
        }
    }

    /**
     * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement
     * on the return value: the return value is optional (but if data is returned, it must not be false).
     * @param token The token targeted by the call.
     * @param data The call data (encoded using abi.encode or one of its variants).
     */
    function _callOptionalReturn(IERC20 token, bytes memory data) private {
        // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since
        // we're implementing it ourselves. We use {Address.functionCall} to perform this call, which verifies that
        // the target address contains contract code and also asserts for success in the low-level call.

        bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed");
        if (returndata.length > 0) {
            // Return data is optional
            require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed");
        }
    }
}

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

pragma solidity ^0.8.0;

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

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

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        _approve(to, tokenId);
    }

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

        return _tokenApprovals[tokenId];
    }

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

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

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

        _transfer(from, to, tokenId);
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        _beforeTokenTransfer(from, to, tokenId);

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

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

        emit Transfer(from, to, tokenId);

        _afterTokenTransfer(from, to, tokenId);
    }

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

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

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

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

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

File 13 of 25 : ERC721Holder.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/utils/ERC721Holder.sol)

pragma solidity ^0.8.0;

import "../IERC721Receiver.sol";

/**
 * @dev Implementation of the {IERC721Receiver} interface.
 *
 * Accepts all token transfers.
 * Make sure the contract is able to use its token with {IERC721-safeTransferFrom}, {IERC721-approve} or {IERC721-setApprovalForAll}.
 */
contract ERC721Holder is IERC721Receiver {
    /**
     * @dev See {IERC721Receiver-onERC721Received}.
     *
     * Always returns `IERC721Receiver.onERC721Received.selector`.
     */
    function onERC721Received(
        address,
        address,
        uint256,
        bytes memory
    ) public virtual override returns (bytes4) {
        return this.onERC721Received.selector;
    }
}

File 14 of 25 : ERC721Burnable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/ERC721Burnable.sol)

pragma solidity ^0.8.0;

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

/**
 * @title ERC721 Burnable Token
 * @dev ERC721 Token that can be irreversibly burned (destroyed).
 */
abstract contract ERC721Burnable is Context, ERC721 {
    /**
     * @dev Burns `tokenId`. See {ERC721-_burn}.
     *
     * Requirements:
     *
     * - The caller must own `tokenId` or be an approved operator.
     */
    function burn(uint256 tokenId) public virtual {
        //solhint-disable-next-line max-line-length
        require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721Burnable: caller is not owner nor approved");
        _burn(tokenId);
    }
}

File 15 of 25 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (access/Ownable.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

File 16 of 25 : ERC721RandomlyAssignVandalzTier.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

import "./ERC721Extensions/ERC721LimitedSupply.sol";
import { DataTypes } from "./types/DataTypes.sol";
import { Errors } from "./types/Errors.sol";

/**
 * @title Randomly assign tokenIDs from a given set of tokens.
 */
abstract contract ERC721RandomlyAssignVandalzTier is ERC721LimitedSupply {
    using Counters for Counters.Counter;

    /**
     * @dev token id of first token
     */
    uint256 public startFrom;

    /**
     * @dev Used for random index assignment
     */
    mapping(uint256 => uint256) private tokenMatrix;

    /**
     * @notice
     * @dev
     */
    DataTypes.Tier[] public tiers;

    /**
     * @notice Instanciate the contract
     * @param _totalSupply how many tokens this collection should hold
     */
    constructor(uint256 _totalSupply, uint256 _startFrom) ERC721LimitedSupply(_totalSupply) {
        startFrom = _startFrom;
    }

    /**
     * @notice Get the current token count of give tier
     * @param _tierIndex the tier index
     * @return the created token count of given tier
     */
    function tierWiseTokenCount(uint256 _tierIndex) public view returns (uint256) {
        return tiers[_tierIndex].tokenCount.current();
    }

    /**
     * @notice Check whether tokens are still available for a given tier
     * @param _tierIndex the tier index
     * @return the available token count for given tier
     */
    function availableTierTokenCount(uint256 _tierIndex) public view returns (uint256) {
        return tiers[_tierIndex].pieces - tiers[_tierIndex].tokenCount.current();
    }

    /**
     * @notice Get the next token ID
     * @dev Randomly gets a new token ID and keeps track of the ones that are still available.
     * @return the next token ID
     */
    function _nextToken() internal override ensureAvailability returns (uint256) {
        uint256 _nextTokenId = _internalNextToken(totalSupply() - tokenCount()) + startFrom;
        _updateTierTokenCount(_nextTokenId);
        return _nextTokenId;
    }

    function _updateTierTokenCount(uint256 _nextTokenId) internal {
        for (uint256 _i; _i < tiers.length; _i++) {
            if (_nextTokenId >= tiers[_i].from && _nextTokenId <= tiers[_i].to) {
                // Increment tier token count
                tiers[_i].tokenCount.increment();
                break;
            }
        }
    }

    /**
     * @notice Get the next token ID from given tier
     * @dev Randomly gets a new token ID from given tier and keeps track of the ones that are still available.
     * @return the next token ID from given tier
     */
    function _nextTokenFromTier(uint256 _tierIndex) internal ensureAvailability returns (uint256) {
        if (availableTierTokenCount(_tierIndex) == 0) {
            revert Errors.ERC721RandomlyAssignVandalzTier__UnavailableTierTokens(_tierIndex);
        }

        uint256 _nextTokenId =
            _internalNextToken(tiers[_tierIndex].pieces - tiers[_tierIndex].tokenCount.current()) +
                tiers[_tierIndex].from;

        // Increment tier token count
        tiers[_tierIndex].tokenCount.increment();

        return _nextTokenId;
    }

    function _internalNextToken(uint256 _maxIndex) internal returns (uint256) {
        uint256 _randomNumber = _getRandomNumber() % _maxIndex;
        uint256 value;
        if (tokenMatrix[_randomNumber] == 0) {
            // If this matrix position is empty, set the value to the generated random number.
            value = _randomNumber;
        } else {
            // Otherwise, use the previously stored number from the matrix.
            value = tokenMatrix[_randomNumber];
        }
        // If the last available tokenID is still unused...
        if (tokenMatrix[_maxIndex - 1] == 0) {
            // ...store that ID in the current matrix position.
            tokenMatrix[_randomNumber] = _maxIndex - 1;
        } else {
            // ...otherwise copy over the stored number to the current matrix position.
            tokenMatrix[_randomNumber] = tokenMatrix[_maxIndex - 1];
        }
        // Increment counts
        super._nextToken();

        return value;
    }

    function _setTier(
        uint256 _tierIndex,
        uint256 _from,
        uint256 _to
    ) internal virtual {
        require(_to - _from >= tiers[_tierIndex].pieces, "ERC721RandomlyAssignVandalzTier : misaligned pieces");
        tiers[_tierIndex].from = _from;
        tiers[_tierIndex].to = _to;
        tiers[_tierIndex].pieces = _to - _from + 1;
    }

    /**
     * @notice Get the next token ID
     * @dev Randomly gets a new token ID and keeps track of the ones that are still available.
     * @return the next token ID
     */
    function _getRandomNumber() internal view virtual returns (uint256) {
        return
            uint256(
                keccak256(
                    abi.encodePacked(
                        msg.sender,
                        block.coinbase,
                        blockhash(block.number),
                        block.gaslimit,
                        block.timestamp,
                        tokenCount(),
                        availableTokenCount(),
                        totalSupply()
                    )
                )
            );
    }
}

File 17 of 25 : 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 18 of 25 : 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 19 of 25 : 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 20 of 25 : IERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC721/IERC721.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

File 21 of 25 : 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 22 of 25 : 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 23 of 25 : ERC721LimitedSupply.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

import "@openzeppelin/contracts/utils/Counters.sol";

/**
 * @title A token tracker that limits the token supply and increments token IDs on each new mint.
 * @author
 */
abstract contract ERC721LimitedSupply {
    using Counters for Counters.Counter;

    /**
     * @dev Emitted when the supply of this collection changes
     */
    event SupplyChanged(uint256 indexed supply);

    /**
     * @dev Keeps track of how many we have minted
     */
    Counters.Counter private _tokenCount;

    /**
     * @dev The maximum count of tokens this token tracker will hold.
     */
    uint256 private _totalSupply;

    /**
     * @dev Instanciate the contract
     * @param totalSupply_ how many tokens this collection should hold
     */
    constructor(uint256 totalSupply_) {
        _totalSupply = totalSupply_;
    }

    /**
     * @notice Get the max Supply
     * @return the maximum token count
     */
    function totalSupply() public view virtual returns (uint256) {
        return _totalSupply;
    }

    /**
     * @notice Get the current token count
     * @return the created token count
     */
    function tokenCount() public view returns (uint256) {
        return _tokenCount.current();
    }

    /**
     * @notice Check whether tokens are still available
     * @return the available token count
     */
    function availableTokenCount() public view returns (uint256) {
        return totalSupply() - tokenCount();
    }

    /**
     * @dev Increment the token count and fetch the latest count
     * @return the next token id
     */
    function _nextToken() internal virtual returns (uint256) {
        uint256 token = _tokenCount.current();

        _tokenCount.increment();

        return token;
    }

    /**
     * @dev Check whether another token is still available
     */
    modifier ensureAvailability() {
        require(availableTokenCount() > 0, "No more tokens available");
        _;
    }

    /**
     * @dev Check whether tokens are still available
     * @param amount Check whether number of tokens are still available
     */
    modifier ensureAvailabilityFor(uint256 amount) {
        require(availableTokenCount() >= amount, "Requested number of tokens not available");
        _;
    }

    /**
     * @notice Update the supply for the collection
     * @dev create additional token supply for this collection.
     * @param _supply the new token supply.
     */
    function _setSupply(uint256 _supply) internal virtual {
        require(_supply > tokenCount(), "Can't set the supply to less than the current token count");
        _totalSupply = _supply;

        emit SupplyChanged(totalSupply());
    }
}

File 24 of 25 : DataTypes.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.7;

import "@openzeppelin/contracts/utils/Counters.sol";

/**
 * @title container of the data types
 * @author
 */
library DataTypes {
    /**
     * @notice
     * @dev
     * @param
     * @param
     */
    struct Tier {
        uint256 from;
        uint256 to;
        uint256 pieces;
        Counters.Counter tokenCount;
    }
}

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"string","name":"_name","type":"string"},{"internalType":"string","name":"_symbol","type":"string"},{"internalType":"uint256","name":"_totalSupply","type":"uint256"},{"internalType":"uint256","name":"_startFrom","type":"uint256"},{"components":[{"internalType":"uint256","name":"from","type":"uint256"},{"internalType":"uint256","name":"to","type":"uint256"},{"internalType":"uint256","name":"pieces","type":"uint256"},{"components":[{"internalType":"uint256","name":"_value","type":"uint256"}],"internalType":"struct Counters.Counter","name":"tokenCount","type":"tuple"}],"internalType":"struct DataTypes.Tier[]","name":"_tiers","type":"tuple[]"},{"internalType":"string","name":"_initBaseURI","type":"string"},{"internalType":"string","name":"_initNotRevealedUri","type":"string"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"ERC721RandomlyAssignVandalzTier__UnavailableTierTokens","type":"error"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"WhisbeVandalz__EightTiersRequired","type":"error"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"WhisbeVandalz__InvalidCollection","type":"error"},{"inputs":[],"name":"WhisbeVandalz__MintNotAvailable","type":"error"},{"inputs":[],"name":"WhisbeVandalz__NoGroupTier15678Group","type":"error"},{"inputs":[],"name":"WhisbeVandalz__NoGroupTier5678Group","type":"error"},{"inputs":[],"name":"WhisbeVandalz__PublicMintUpToTwoPerWallet","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"supply","type":"uint256"}],"name":"SupplyChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"newRoyaltyAddress","type":"address"},{"indexed":false,"internalType":"uint256","name":"newPercentage","type":"uint256"}],"name":"UpdatedRoyalties","type":"event"},{"inputs":[],"name":"TIERS","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"acceptedCollections","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"_tos","type":"address[]"}],"name":"airDropToOG","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":"uint256","name":"_tierIndex","type":"uint256"}],"name":"availableTierTokenCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"availableTokenCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseExtension","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"burnCounter","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256[]","name":"_tokenIds","type":"uint256[]"}],"name":"creatorMint","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":"getBlockTimestamp","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"groupTier15678Indexes","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"groupTier5678Indexes","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"includeTier1","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":"merkleRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"notRevealedUri","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"bytes","name":"","type":"bytes"}],"name":"onERC721Received","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bool","name":"_state","type":"bool"}],"name":"pausePublicMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_state","type":"bool"}],"name":"pauseRedeem","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32[]","name":"_proof","type":"bytes32[]"}],"name":"publicMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"publicMintCounter","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"publicMintPaused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"publicSalePrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"_collections","type":"address[]"},{"internalType":"uint256[][]","name":"_tokenIds","type":"uint256[][]"}],"name":"redeem","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"redeemPaused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"reveal","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"revealed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"royaltyAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"$salePrice","type":"uint256"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"_receiver","type":"address"},{"internalType":"uint256","name":"_royaltyAmount","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"royaltyPercent","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":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_newBaseExtension","type":"string"}],"name":"setBaseExtension","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_newBaseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_includeTier1","type":"bool"}],"name":"setIncludeTier1","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_notRevealedURI","type":"string"}],"name":"setNotRevealedURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_publicSalePrice","type":"uint256"}],"name":"setPublicSalePrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"$royaltyAddress","type":"address"},{"internalType":"uint256","name":"$percentage","type":"uint256"}],"name":"setRoyaltyInfo","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_supply","type":"uint256"}],"name":"setSupply","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"_tierIndex","type":"uint256[]"},{"internalType":"uint256[]","name":"_from","type":"uint256[]"},{"internalType":"uint256[]","name":"_to","type":"uint256[]"}],"name":"setTier","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_state","type":"bool"}],"name":"setWhitelistState","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"startFrom","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes4","name":"$interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tierIndex","type":"uint256"}],"name":"tierWiseTokenCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"tiers","outputs":[{"internalType":"uint256","name":"from","type":"uint256"},{"internalType":"uint256","name":"to","type":"uint256"},{"internalType":"uint256","name":"pieces","type":"uint256"},{"components":[{"internalType":"uint256","name":"_value","type":"uint256"}],"internalType":"struct Counters.Counter","name":"tokenCount","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tokenCount","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":"contract IERC20","name":"_token","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"transferAccidentallyLockedTokens","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":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_merkleRoot","type":"bytes32"}],"name":"updateMerkleRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"whitelistState","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdrawETH","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]

600e805464ffffffffff1916630101010117905560c06040526005608081905264173539b7b760d91b60a09081526200003c916015919062000492565b503480156200004a57600080fd5b5060405162004a9938038062004a998339810160408190526200006d91620006b6565b848481898981600090805190602001906200008a92919062000492565b508051620000a090600190602084019062000492565b505050620000bd620000b7620003bb60201b60201c565b620003bf565b6008908155600991909155845191508114620000f45760405163f29148c360e01b8152600481018290526024015b60405180910390fd5b82516200010990601490602086019062000492565b5081516200011f90601690602085019062000492565b5060176020527fc762fbebcd7df82cf2ab30fdd7200ab75e66180acfe5472f6842e2d3c65c7a358054600160ff1991821681179092557f42ccbd5f2b7184a34ed80f038589d1ede8017d3125e08dde4b6cdab2b0c5bbc680548216831790557f1efcdacd525c9390e17f9061f7b9113b535554d829b2af61ee270b67002ff21d80548216831790557f21eff4111e356ee6a41de045bfc8f6b7b0a92b2f8fb546790b1b3c5411d743da805482168317905573c5dd321472f80a3ec9779f55cc1af854712fae7060009081527f3f52070074b4a61efad174cf9eb55b09c43cf95d066a67ef3a738a8fd8e2e486805490921690921790555b818110156200029657600b85828151811062000236576200023662000894565b602090810291909101810151825460018181018555600094855293839020825160049092020190815591810151928201929092556040820151600282015560609091015151600390910155806200028d816200086a565b91505062000216565b50601280546001818101835560007fbb8a6a4669ba250d26cd7a459eca9d215f8307e33aebe50379bc5a3617ec34449283018190558354808301855560049084018190558454808401865560059085018190558554808501875560069086018190558654808601909755600796909501869055601380548086018255938190527f66de8ffda797e3de9c05e8fc57b3bf0ec28a930d40b0d285d93c06501cf6a09093840192909255815480850183558301558054808401825582019390935582549182019092550155620003716380ac58cd60e01b62000411565b6200038363152a902d60e11b62000411565b62000395635b5e139f60e01b62000411565b601080546001600160a01b0319163317905561044c6011555050505050505050620008c0565b3390565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160e01b031980821614156200046d5760405162461bcd60e51b815260206004820152601c60248201527f4552433136353a20696e76616c696420696e74657266616365206964000000006044820152606401620000eb565b6001600160e01b0319166000908152600c60205260409020805460ff19166001179055565b828054620004a0906200082d565b90600052602060002090601f016020900481019282620004c457600085556200050f565b82601f10620004df57805160ff19168380011785556200050f565b828001600101855582156200050f579182015b828111156200050f578251825591602001919060010190620004f2565b506200051d92915062000521565b5090565b5b808211156200051d576000815560010162000522565b600082601f8301126200054a57600080fd5b815160206001600160401b03821115620005685762000568620008aa565b62000578818360051b01620007fa565b80838252828201915082860187848660071b89010111156200059957600080fd5b60005b858110156200061457818903608080821215620005b857600080fd5b620005c2620007aa565b845181528785015188820152604080860151908201526060605f198401891315620005ec57600080fd5b620005f6620007d5565b8682015181529082015286529486019490920191506001016200059c565b5090979650505050505050565b600082601f8301126200063357600080fd5b81516001600160401b038111156200064f576200064f620008aa565b602062000665601f8301601f19168201620007fa565b82815285828487010111156200067a57600080fd5b60005b838110156200069a5785810183015182820184015282016200067d565b83811115620006ac5760008385840101525b5095945050505050565b600080600080600080600060e0888a031215620006d257600080fd5b87516001600160401b0380821115620006ea57600080fd5b620006f88b838c0162000621565b985060208a01519150808211156200070f57600080fd5b6200071d8b838c0162000621565b975060408a0151965060608a0151955060808a01519150808211156200074257600080fd5b620007508b838c0162000538565b945060a08a01519150808211156200076757600080fd5b620007758b838c0162000621565b935060c08a01519150808211156200078c57600080fd5b506200079b8a828b0162000621565b91505092959891949750929550565b604051608081016001600160401b0381118282101715620007cf57620007cf620008aa565b60405290565b604051602081016001600160401b0381118282101715620007cf57620007cf620008aa565b604051601f8201601f191681016001600160401b0381118282101715620008255762000825620008aa565b604052919050565b600181811c908216806200084257607f821691505b602082108114156200086457634e487b7160e01b600052602260045260246000fd5b50919050565b60006000198214156200088d57634e487b7160e01b600052601160045260246000fd5b5060010190565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6141c980620008d06000396000f3fe6080604052600436106103c75760003560e01c806370a08231116101f2578063b235d4681161010d578063e14ca353116100a0578063f0d4601d1161006f578063f0d4601d14610b93578063f2c4ce1e14610bb3578063f2fde38b14610bd3578063fc6abd4114610bf357600080fd5b8063e14ca35314610ae8578063e2e784d514610afd578063e817194914610b1d578063e985e9c514610b4a57600080fd5b8063c87b56dd116100dc578063c87b56dd14610a73578063da3ef23f14610a93578063e086e5ec14610ab3578063e0d95efa14610ac857600080fd5b8063b235d468146109fd578063b88d4fde14610a1e578063b9d6da9d14610a3e578063c668286214610a5e57600080fd5b80639b6860c811610185578063a3666fbc11610154578063a3666fbc14610988578063a475b5dd146109a8578063ad2f852a146109bd578063b19c92a2146109dd57600080fd5b80639b6860c8146109275780639f181b5e1461093d5780639f67756d14610952578063a22cb4651461096857600080fd5b80638405c519116101c15780638405c519146108a757806386f92ff6146108d45780638da5cb5b146108f457806395d89b411461091257600080fd5b806370a082311461083f578063715018a61461085f578063791a251914610874578063796b89b91461089457600080fd5b80633b4c4b25116102e257806351830227116102755780636c0360eb116102445780636c0360eb146107d25780636c54b4aa146107e75780636e748f97146108175780636f77197d1461082c57600080fd5b8063518302271461075257806355f804b3146107725780635eaab368146107925780636352211e146107b257600080fd5b806342966c68116102b157806342966c68146106d057806344f01112146106f057806345f61225146107125780634783f0ef1461073257600080fd5b80633b4c4b25146106515780633e9949421461067157806342842e0e146106915780634293516d146106b157600080fd5b806318160ddd1161035a578063273cf2bd11610329578063273cf2bd146105c25780632a55205a146105e25780632eb4a7ab1461062157806333d9d5fd1461063757600080fd5b806318160ddd146105575780631df0bb8a1461056c578063208904c71461058c57806323b872dd146105a257600080fd5b8063081c8c4411610396578063081c8c44146104bb578063095ea7b3146104d05780630eba699c146104f0578063150b7a021461051e57600080fd5b806301ffc9a7146103eb578063039af9eb1461042057806306fdde0314610461578063081812fc1461048357600080fd5b366103e6576040805160008152602081019091526103e490610c13565b005b600080fd5b3480156103f757600080fd5b5061040b610406366004613cb8565b610d5c565b60405190151581526020015b60405180910390f35b34801561042c57600080fd5b5061044061043b366004613c9f565b610d6d565b60408051948552602085019390935291830152516060820152608001610417565b34801561046d57600080fd5b50610476610db2565b6040516104179190613ea6565b34801561048f57600080fd5b506104a361049e366004613c9f565b610e44565b6040516001600160a01b039091168152602001610417565b3480156104c757600080fd5b50610476610ed9565b3480156104dc57600080fd5b506103e46104eb366004613a09565b610f67565b3480156104fc57600080fd5b5061051061050b366004613c9f565b61107d565b604051908152602001610417565b34801561052a57600080fd5b5061053e61053936600461390b565b6110aa565b6040516001600160e01b03199091168152602001610417565b34801561056357600080fd5b50600854610510565b34801561057857600080fd5b506103e4610587366004613c65565b6110bb565b34801561059857600080fd5b5061051060095481565b3480156105ae57600080fd5b506103e46105bd3660046138ca565b6110ff565b3480156105ce57600080fd5b506105106105dd366004613c9f565b611131565b3480156105ee57600080fd5b506106026105fd366004613d3b565b611152565b604080516001600160a01b039093168352602083019190915201610417565b34801561062d57600080fd5b50610510600f5481565b34801561064357600080fd5b50600e5461040b9060ff1681565b34801561065d57600080fd5b506103e461066c366004613c9f565b611188565b34801561067d57600080fd5b506103e461068c366004613a09565b6111be565b34801561069d57600080fd5b506103e46106ac3660046138ca565b611256565b3480156106bd57600080fd5b50600e5461040b90610100900460ff1681565b3480156106dc57600080fd5b506103e46106eb366004613c9f565b611271565b3480156106fc57600080fd5b50600e5461040b90640100000000900460ff1681565b34801561071e57600080fd5b506103e461072d366004613bdd565b6112e8565b34801561073e57600080fd5b506103e461074d366004613c9f565b611484565b34801561075e57600080fd5b50600e5461040b9062010000900460ff1681565b34801561077e57600080fd5b506103e461078d366004613cf2565b6114b3565b34801561079e57600080fd5b506103e46107ad366004613a35565b6114f0565b3480156107be57600080fd5b506104a36107cd366004613c9f565b6115b1565b3480156107de57600080fd5b50610476611628565b3480156107f357600080fd5b5061040b610802366004613874565b60176020526000908152604090205460ff1681565b34801561082357600080fd5b50610510600881565b6103e461083a366004613b45565b610c13565b34801561084b57600080fd5b5061051061085a366004613874565b611635565b34801561086b57600080fd5b506103e46116bc565b34801561088057600080fd5b506103e461088f366004613c9f565b6116f2565b3480156108a057600080fd5b5042610510565b3480156108b357600080fd5b506105106108c2366004613874565b60196020526000908152604090205481565b3480156108e057600080fd5b506103e46108ef366004613a6a565b611721565b34801561090057600080fd5b506006546001600160a01b03166104a3565b34801561091e57600080fd5b50610476611b42565b34801561093357600080fd5b50610510600d5481565b34801561094957600080fd5b50610510611b51565b34801561095e57600080fd5b5061051060115481565b34801561097457600080fd5b506103e46109833660046139db565b611b61565b34801561099457600080fd5b506105106109a3366004613c9f565b611b6c565b3480156109b457600080fd5b506103e4611b7c565b3480156109c957600080fd5b506010546104a3906001600160a01b031681565b3480156109e957600080fd5b506103e46109f8366004613c65565b611bb9565b348015610a0957600080fd5b50600e5461040b906301000000900460ff1681565b348015610a2a57600080fd5b506103e4610a3936600461390b565b611bf6565b348015610a4a57600080fd5b506103e4610a59366004613c65565b611c28565b348015610a6a57600080fd5b50610476611c72565b348015610a7f57600080fd5b50610476610a8e366004613c9f565b611c7f565b348015610a9f57600080fd5b506103e4610aae366004613cf2565b611dff565b348015610abf57600080fd5b506103e4611e3c565b348015610ad457600080fd5b50610510610ae3366004613c9f565b611e92565b348015610af457600080fd5b50610510611ed9565b348015610b0957600080fd5b506103e4610b18366004613a09565b611ef0565b348015610b2957600080fd5b50610510610b38366004613874565b60186020526000908152604090205481565b348015610b5657600080fd5b5061040b610b65366004613891565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b348015610b9f57600080fd5b506103e4610bae36600461398b565b611f80565b348015610bbf57600080fd5b506103e4610bce366004613cf2565b611feb565b348015610bdf57600080fd5b506103e4610bee366004613874565b612028565b348015610bff57600080fd5b506103e4610c0e366004613c65565b6120c0565b600e5460ff1615610c635760405162461bcd60e51b8152602060048201526015602482015274141d589b1a58c81b5a5b9d081a5cc81c185d5cd959605a1b60448201526064015b60405180910390fd5b33600090815260196020526040902054600211610c9357604051631709276d60e31b815260040160405180910390fd5b600d543414610d0a5760405162461bcd60e51b815260206004820152603b60248201527f57686973626556616e64616c7a3a206574682076616c75652073686f756c642060448201527f626520657175616c20746f207075626c696353616c65507269636500000000006064820152608401610c5a565b600e54610100900460ff1615610d2357610d2381612108565b610d3433610d2f6121a6565b612205565b336000908152601960205260408120805460019290610d5490849061401d565b909155505050565b6000610d678261221f565b92915050565b600b8181548110610d7d57600080fd5b600091825260209182902060049091020180546001820154600283015460408051958601905260039093015484529093509184565b606060008054610dc1906140ab565b80601f0160208091040260200160405190810160405280929190818152602001828054610ded906140ab565b8015610e3a5780601f10610e0f57610100808354040283529160200191610e3a565b820191906000526020600020905b815481529060010190602001808311610e1d57829003601f168201915b5050505050905090565b6000818152600260205260408120546001600160a01b0316610ebd5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610c5a565b506000908152600460205260409020546001600160a01b031690565b60168054610ee6906140ab565b80601f0160208091040260200160405190810160405280929190818152602001828054610f12906140ab565b8015610f5f5780601f10610f3457610100808354040283529160200191610f5f565b820191906000526020600020905b815481529060010190602001808311610f4257829003601f168201915b505050505081565b6000610f72826115b1565b9050806001600160a01b0316836001600160a01b03161415610fe05760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610c5a565b336001600160a01b0382161480610ffc5750610ffc8133610b65565b61106e5760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610c5a565b6110788383612250565b505050565b6000610d67600b838154811061109557611095614157565b90600052602060002090600402016003015490565b630a85bd0160e11b5b949350505050565b6006546001600160a01b031633146110e55760405162461bcd60e51b8152600401610c5a90613f42565b600e80549115156101000261ff0019909216919091179055565b61110a335b826122be565b6111265760405162461bcd60e51b8152600401610c5a90613f77565b6110788383836123b4565b6012818154811061114157600080fd5b600091825260209091200154905081565b6010546011546001600160a01b0390911690600090612710906111759085614049565b61117f9190614035565b90509250929050565b6006546001600160a01b031633146111b25760405162461bcd60e51b8152600401610c5a90613f42565b6111bb81612550565b50565b6006546001600160a01b031633146111e85760405162461bcd60e51b8152600401610c5a90613f42565b6001600160a01b03821661123e5760405162461bcd60e51b815260206004820152601d60248201527f546f6b656e20616464726573732063616e206e6f74206265207a65726f0000006044820152606401610c5a565b6112526001600160a01b03831633836125fe565b5050565b61107883838360405180602001604052806000815250611bf6565b61127a33611104565b6112df5760405162461bcd60e51b815260206004820152603060248201527f4552433732314275726e61626c653a2063616c6c6572206973206e6f74206f7760448201526f1b995c881b9bdc88185c1c1c9bdd995960821b6064820152608401610c5a565b6111bb81612650565b6006546001600160a01b031633146113125760405162461bcd60e51b8152600401610c5a90613f42565b81518351148015611324575080518251145b6113845760405162461bcd60e51b815260206004820152602b60248201527f57686973626556616e64616c7a3a20746965722064657461696c73206c656e6760448201526a0e8d040dad2e6dac2e8c6d60ab1b6064820152608401610c5a565b60005b835181101561147e5760088482815181106113a4576113a4614157565b6020026020010151106114165760405162461bcd60e51b815260206004820152603460248201527f57686973626556616e64616c7a3a2074696572496e6465782065786365656473604482015273206d6178207065726d697474656420746965727360601b6064820152608401610c5a565b61146c84828151811061142b5761142b614157565b602002602001015184838151811061144557611445614157565b602002602001015184848151811061145f5761145f614157565b60200260200101516126eb565b80611476816140e6565b915050611387565b50505050565b6006546001600160a01b031633146114ae5760405162461bcd60e51b8152600401610c5a90613f42565b600f55565b6006546001600160a01b031633146114dd5760405162461bcd60e51b8152600401610c5a90613f42565b80516112529060149060208401906136a8565b6006546001600160a01b0316331461151a5760405162461bcd60e51b8152600401610c5a90613f42565b600e54640100000000900460ff161561156f5760005b81518110156112525761155d82828151811061154e5761154e614157565b60200260200101516001612819565b80611567816140e6565b915050611530565b60005b81518110156112525761159f82828151811061159057611590614157565b602002602001015160016128c0565b806115a9816140e6565b915050611572565b6000818152600260205260408120546001600160a01b031680610d675760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401610c5a565b60148054610ee6906140ab565b60006001600160a01b0382166116a05760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401610c5a565b506001600160a01b031660009081526003602052604090205490565b6006546001600160a01b031633146116e65760405162461bcd60e51b8152600401610c5a90613f42565b6116f0600061294a565b565b6006546001600160a01b0316331461171c5760405162461bcd60e51b8152600401610c5a90613f42565b600d55565b600e546301000000900460ff161561176e5760405162461bcd60e51b815260206004820152601060248201526f14995919595b481a5cc81c185d5cd95960821b6044820152606401610c5a565b81518151811461179a5760405162461bcd60e51b81526020600482015260006024820152604401610c5a565b60005b8181101561147e57601760008583815181106117bb576117bb614157565b6020908102919091018101516001600160a01b031682528101919091526040016000205460ff16611829578381815181106117f8576117f8614157565b6020026020010151604051636d82551360e01b8152600401610c5a91906001600160a01b0391909116815260200190565b600083828151811061183d5761183d614157565b6020026020010151519050806018600087858151811061185f5761185f614157565b60200260200101516001600160a01b03166001600160a01b031681526020019081526020016000206000828254611896919061401d565b90915550600090505b81811015611b2d5773cd136e30b316837c190241e838639c619516fdf96001600160a01b03168684815181106118d7576118d7614157565b60200260200101516001600160a01b031614156119bb5785838151811061190057611900614157565b60200260200101516001600160a01b03166342842e0e333088878151811061192a5761192a614157565b6020026020010151858151811061194357611943614157565b60209081029190910101516040516001600160e01b031960e086901b1681526001600160a01b03938416600482015292909116602483015260448201526064015b600060405180830381600087803b15801561199e57600080fd5b505af11580156119b2573d6000803e3d6000fd5b50505050611af8565b73c5dd321472f80a3ec9779f55cc1af854712fae706001600160a01b03168684815181106119eb576119eb614157565b60200260200101516001600160a01b03161415611a4c57858381518110611a1457611a14614157565b602090810291909101015160405163762e61d360e01b81523360048201526001600160a01b039091169063762e61d390602401611984565b858381518110611a5e57611a5e614157565b60200260200101516001600160a01b03166342966c68868581518110611a8657611a86614157565b60200260200101518381518110611a9f57611a9f614157565b60200260200101516040518263ffffffff1660e01b8152600401611ac591815260200190565b600060405180830381600087803b158015611adf57600080fd5b505af1158015611af3573d6000803e3d6000fd5b505050505b611b1b33878581518110611b0e57611b0e614157565b602002602001015161299c565b80611b25816140e6565b91505061189f565b50508080611b3a906140e6565b91505061179d565b606060018054610dc1906140ab565b6000611b5c60075490565b905090565b611252338383612a9b565b6013818154811061114157600080fd5b6006546001600160a01b03163314611ba65760405162461bcd60e51b8152600401610c5a90613f42565b600e805462ff0000191662010000179055565b6006546001600160a01b03163314611be35760405162461bcd60e51b8152600401610c5a90613f42565b600e805460ff1916911515919091179055565b611c0033836122be565b611c1c5760405162461bcd60e51b8152600401610c5a90613f77565b61147e84848484612b6a565b6006546001600160a01b03163314611c525760405162461bcd60e51b8152600401610c5a90613f42565b600e80549115156401000000000264ff0000000019909216919091179055565b60158054610ee6906140ab565b6000818152600260205260409020546060906001600160a01b0316611cfe5760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b6064820152608401610c5a565b600e5462010000900460ff16611da05760168054611d1b906140ab565b80601f0160208091040260200160405190810160405280929190818152602001828054611d47906140ab565b8015611d945780601f10611d6957610100808354040283529160200191611d94565b820191906000526020600020905b815481529060010190602001808311611d7757829003601f168201915b50505050509050919050565b6000611daa612b9d565b90506000815111611dca5760405180602001604052806000815250611df8565b80611dd484612bac565b6015604051602001611de893929190613da5565b6040516020818303038152906040525b9392505050565b6006546001600160a01b03163314611e295760405162461bcd60e51b8152600401610c5a90613f42565b80516112529060159060208401906136a8565b6006546001600160a01b03163314611e665760405162461bcd60e51b8152600401610c5a90613f42565b60405133904780156108fc02916000818181858888f193505050501580156111bb573d6000803e3d6000fd5b6000611eaa600b838154811061109557611095614157565b600b8381548110611ebd57611ebd614157565b906000526020600020906004020160020154610d679190614068565b6000611ee3611b51565b600854611b5c9190614068565b6006546001600160a01b03163314611f1a5760405162461bcd60e51b8152600401610c5a90613f42565b601080546001600160a01b0319166001600160a01b0384161790556011819055604080516001600160a01b0384168152602081018390527f37b261884b0718cab93d62e6fe3bef710b5a1da58190a859f842d6e8b2b0b70b910160405180910390a15050565b6006546001600160a01b03163314611faa5760405162461bcd60e51b8152600401610c5a90613f42565b60005b815181101561107857611fd983838381518110611fcc57611fcc614157565b6020026020010151612caa565b80611fe3816140e6565b915050611fad565b6006546001600160a01b031633146120155760405162461bcd60e51b8152600401610c5a90613f42565b80516112529060169060208401906136a8565b6006546001600160a01b031633146120525760405162461bcd60e51b8152600401610c5a90613f42565b6001600160a01b0381166120b75760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610c5a565b6111bb8161294a565b6006546001600160a01b031633146120ea5760405162461bcd60e51b8152600401610c5a90613f42565b600e805491151563010000000263ff00000019909216919091179055565b6040516bffffffffffffffffffffffff193360601b16602082015260009060340160405160208183030381529060405280519060200120905061214e82600f5483612ce4565b6112525760405162461bcd60e51b8152602060048201526024808201527f57686974656c6973743a2063616c6c6572206973206e6f742077686974656c696044820152631cdd195960e21b6064820152608401610c5a565b6000806121b1611ed9565b116121ce5760405162461bcd60e51b8152600401610c5a90613f0b565b60006009546121f06121de611b51565b6008546121eb9190614068565b612cfa565b6121fa919061401d565b9050611b5c81612dc4565b611252828260405180602001604052806000815250612e70565b600061222a82612ea3565b80610d675750506001600160e01b0319166000908152600c602052604090205460ff1690565b600081815260046020526040902080546001600160a01b0319166001600160a01b0384169081179091558190612285826115b1565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000818152600260205260408120546001600160a01b03166123375760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610c5a565b6000612342836115b1565b9050806001600160a01b0316846001600160a01b0316148061238957506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b806110b35750836001600160a01b03166123a284610e44565b6001600160a01b031614949350505050565b826001600160a01b03166123c7826115b1565b6001600160a01b03161461242b5760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201526437bbb732b960d91b6064820152608401610c5a565b6001600160a01b03821661248d5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610c5a565b612498600082612250565b6001600160a01b03831660009081526003602052604081208054600192906124c1908490614068565b90915550506001600160a01b03821660009081526003602052604081208054600192906124ef90849061401d565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b612558611b51565b81116125cc5760405162461bcd60e51b815260206004820152603960248201527f43616e2774207365742074686520737570706c7920746f206c6573732074686160448201527f6e207468652063757272656e7420746f6b656e20636f756e74000000000000006064820152608401610c5a565b6008819055806040517ff71f9c3841c0bab7774017ffe585aeab36b5438d148506067901d47c5fa6f7e990600090a250565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b179052611078908490612ef3565b600061265b826115b1565b9050612668600083612250565b6001600160a01b0381166000908152600360205260408120805460019290612691908490614068565b909155505060008281526002602052604080822080546001600160a01b0319169055518391906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b600b83815481106126fe576126fe614157565b906000526020600020906004020160020154828261271c9190614068565b10156127865760405162461bcd60e51b815260206004820152603360248201527f45524337323152616e646f6d6c7941737369676e56616e64616c7a54696572206044820152723a206d6973616c69676e65642070696563657360681b6064820152608401610c5a565b81600b848154811061279a5761279a614157565b90600052602060002090600402016000018190555080600b84815481106127c3576127c3614157565b60009182526020909120600160049092020101556127e18282614068565b6127ec90600161401d565b600b84815481106127ff576127ff614157565b906000526020600020906004020160020181905550505050565b6012548061283a57604051630808792f60e41b815260040160405180910390fd5b6000805b838110156128b9578261284f612fc5565b6128599190614101565b915061288585610d2f6012858154811061287557612875614157565b906000526020600020015461304f565b61288e82613131565b81156128a7576128a76128a2600184614068565b6131cf565b806128b1816140e6565b91505061283e565b5050505050565b601354806128e15760405163b7ebae9160e01b815260040160405180910390fd5b6000805b838110156128b957826128f6612fc5565b6129009190614101565b915061291c85610d2f6013858154811061287557612875614157565b612925826131cf565b61293861293383600161401d565b613131565b80612942816140e6565b9150506128e5565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b03811673cd136e30b316837c190241e838639c619516fdf914156129ca5761125282613244565b6001600160a01b0381167341c884cc6847a95cfff4eac251173ea72c3c5efb14156129f8576112528261327b565b6001600160a01b03811673e2c2613e647ebd03fdc71a1cf1fd1f938321356c1415612a265761125282613244565b6001600160a01b03811673a53e7fd6abc0fe9769690af55f19c2b4a13f2bc31415612a545761125282613252565b6001600160a01b03811673c5dd321472f80a3ec9779f55cc1af854712fae701415612a825761125282613252565b60405163e2423fa760e01b815260040160405180910390fd5b816001600160a01b0316836001600160a01b03161415612afd5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610c5a565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b612b758484846123b4565b612b81848484846132c0565b61147e5760405162461bcd60e51b8152600401610c5a90613eb9565b606060148054610dc1906140ab565b606081612bd05750506040805180820190915260018152600360fc1b602082015290565b8160005b8115612bfa5780612be4816140e6565b9150612bf39050600a83614035565b9150612bd4565b60008167ffffffffffffffff811115612c1557612c1561416d565b6040519080825280601f01601f191660200182016040528015612c3f576020820181803683370190505b5090505b84156110b357612c54600183614068565b9150612c61600a86614101565b612c6c90603061401d565b60f81b818381518110612c8157612c81614157565b60200101906001600160f81b031916908160001a905350612ca3600a86614035565b9450612c43565b6000612cb4611ed9565b11612cd15760405162461bcd60e51b8152600401610c5a90613f0b565b612cda81612dc4565b6112528282612205565b600082612cf185846133ca565b14949350505050565b60008082612d06612fc5565b612d109190614101565b6000818152600a602052604081205491925090612d2e575080612d3f565b506000818152600a60205260409020545b600a6000612d4e600187614068565b81526020019081526020016000205460001415612d8457612d70600185614068565b6000838152600a6020526040902055612db4565b600a6000612d93600187614068565b81526020808201929092526040908101600090812054858252600a90935220555b612dbc613436565b509392505050565b60005b600b5481101561125257600b8181548110612de457612de4614157565b9060005260206000209060040201600001548210158015612e295750600b8181548110612e1357612e13614157565b9060005260206000209060040201600101548211155b15612e5e57611252600b8281548110612e4457612e44614157565b906000526020600020906004020160030180546001019055565b80612e68816140e6565b915050612dc7565b612e7a8383613452565b612e8760008484846132c0565b6110785760405162461bcd60e51b8152600401610c5a90613eb9565b60006001600160e01b031982166380ac58cd60e01b1480612ed457506001600160e01b03198216635b5e139f60e01b145b80610d6757506301ffc9a760e01b6001600160e01b0319831614610d67565b6000612f48826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166135949092919063ffffffff16565b8051909150156110785780806020019051810190612f669190613c82565b6110785760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401610c5a565b6000334143404542612fd5611b51565b612fdd611ed9565b6008546040516bffffffffffffffffffffffff196060998a1b811660208301529790981b909616603488015260488701949094526068860192909252608885015260a884015260c883015260e8820152610108016040516020818303038152906040528051906020012060001c905090565b60008061305a611ed9565b116130775760405162461bcd60e51b8152600401610c5a90613f0b565b61308082611e92565b6130a05760405163648d56f960e11b815260048101839052602401610c5a565b6000600b83815481106130b5576130b5614157565b90600052602060002090600402016000015461310f6130e0600b868154811061109557611095614157565b600b86815481106130f3576130f3614157565b9060005260206000209060040201600201546121eb9190614068565b613119919061401d565b9050610d67600b8481548110612e4457612e44614157565b6131576012828154811061314757613147614157565b9060005260206000200154611e92565b6111bb576012805461316b90600190614068565b8154811061317b5761317b614157565b90600052602060002001546012828154811061319957613199614157565b60009182526020909120015560128054806131b6576131b6614141565b6001900381819060005260206000200160009055905550565b6131e56013828154811061314757613147614157565b6111bb57601380546131f990600190614068565b8154811061320957613209614157565b90600052602060002001546013828154811061322757613227614157565b60009182526020909120015560138054806131b6576131b6614141565b61325281610d2f600361304f565b600e54640100000000900460ff1615613270576111bb816001612819565b6111bb8160016128c0565b61328981610d2f600161304f565b61329781610d2f600361304f565b600e54640100000000900460ff16156132b5576111bb816008612819565b6111bb8160086128c0565b60006001600160a01b0384163b156133c257604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290613304903390899088908890600401613e69565b602060405180830381600087803b15801561331e57600080fd5b505af192505050801561334e575060408051601f3d908101601f1916820190925261334b91810190613cd5565b60015b6133a8573d80801561337c576040519150601f19603f3d011682016040523d82523d6000602084013e613381565b606091505b5080516133a05760405162461bcd60e51b8152600401610c5a90613eb9565b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490506110b3565b5060016110b3565b600081815b8451811015612dbc5760008582815181106133ec576133ec614157565b602002602001015190508083116134125760008381526020829052604090209250613423565b600081815260208490526040902092505b508061342e816140e6565b9150506133cf565b60008061344260075490565b9050611b5c600780546001019055565b6001600160a01b0382166134a85760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610c5a565b6000818152600260205260409020546001600160a01b03161561350d5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610c5a565b6001600160a01b038216600090815260036020526040812080546001929061353690849061401d565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b60606110b38484600085856001600160a01b0385163b6135f65760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610c5a565b600080866001600160a01b031685876040516136129190613d89565b60006040518083038185875af1925050503d806000811461364f576040519150601f19603f3d011682016040523d82523d6000602084013e613654565b606091505b509150915061366482828661366f565b979650505050505050565b6060831561367e575081611df8565b82511561368e5782518084602001fd5b8160405162461bcd60e51b8152600401610c5a9190613ea6565b8280546136b4906140ab565b90600052602060002090601f0160209004810192826136d6576000855561371c565b82601f106136ef57805160ff191683800117855561371c565b8280016001018555821561371c579182015b8281111561371c578251825591602001919060010190613701565b5061372892915061372c565b5090565b5b80821115613728576000815560010161372d565b600067ffffffffffffffff83111561375b5761375b61416d565b61376e601f8401601f1916602001613fc8565b905082815283838301111561378257600080fd5b828260208301376000602084830101529392505050565b600082601f8301126137aa57600080fd5b813560206137bf6137ba83613ff9565b613fc8565b80838252828201915082860187848660051b89010111156137df57600080fd5b60005b858110156138075781356137f581614183565b845292840192908401906001016137e2565b5090979650505050505050565b600082601f83011261382557600080fd5b813560206138356137ba83613ff9565b80838252828201915082860187848660051b890101111561385557600080fd5b60005b8581101561380757813584529284019290840190600101613858565b60006020828403121561388657600080fd5b8135611df881614183565b600080604083850312156138a457600080fd5b82356138af81614183565b915060208301356138bf81614183565b809150509250929050565b6000806000606084860312156138df57600080fd5b83356138ea81614183565b925060208401356138fa81614183565b929592945050506040919091013590565b6000806000806080858703121561392157600080fd5b843561392c81614183565b9350602085013561393c81614183565b925060408501359150606085013567ffffffffffffffff81111561395f57600080fd5b8501601f8101871361397057600080fd5b61397f87823560208401613741565b91505092959194509250565b6000806040838503121561399e57600080fd5b82356139a981614183565b9150602083013567ffffffffffffffff8111156139c557600080fd5b6139d185828601613814565b9150509250929050565b600080604083850312156139ee57600080fd5b82356139f981614183565b915060208301356138bf81614198565b60008060408385031215613a1c57600080fd5b8235613a2781614183565b946020939093013593505050565b600060208284031215613a4757600080fd5b813567ffffffffffffffff811115613a5e57600080fd5b6110b384828501613799565b60008060408385031215613a7d57600080fd5b823567ffffffffffffffff80821115613a9557600080fd5b613aa186838701613799565b9350602091508185013581811115613ab857600080fd5b8501601f81018713613ac957600080fd5b8035613ad76137ba82613ff9565b8082825285820191508584018a878560051b8701011115613af757600080fd5b6000805b85811015613b3257823588811115613b11578283fd5b613b1f8e8b838b0101613814565b8652509388019391880191600101613afb565b5050508096505050505050509250929050565b60006020808385031215613b5857600080fd5b823567ffffffffffffffff811115613b6f57600080fd5b8301601f81018513613b8057600080fd5b8035613b8e6137ba82613ff9565b80828252848201915084840188868560051b8701011115613bae57600080fd5b600094505b83851015613bd1578035835260019490940193918501918501613bb3565b50979650505050505050565b600080600060608486031215613bf257600080fd5b833567ffffffffffffffff80821115613c0a57600080fd5b613c1687838801613814565b94506020860135915080821115613c2c57600080fd5b613c3887838801613814565b93506040860135915080821115613c4e57600080fd5b50613c5b86828701613814565b9150509250925092565b600060208284031215613c7757600080fd5b8135611df881614198565b600060208284031215613c9457600080fd5b8151611df881614198565b600060208284031215613cb157600080fd5b5035919050565b600060208284031215613cca57600080fd5b8135611df8816141a6565b600060208284031215613ce757600080fd5b8151611df8816141a6565b600060208284031215613d0457600080fd5b813567ffffffffffffffff811115613d1b57600080fd5b8201601f81018413613d2c57600080fd5b6110b384823560208401613741565b60008060408385031215613d4e57600080fd5b50508035926020909101359150565b60008151808452613d7581602086016020860161407f565b601f01601f19169290920160200192915050565b60008251613d9b81846020870161407f565b9190910192915050565b600084516020613db88285838a0161407f565b855191840191613dcb8184848a0161407f565b8554920191600090600181811c9080831680613de857607f831692505b858310811415613e0657634e487b7160e01b85526022600452602485fd5b808015613e1a5760018114613e2b57613e58565b60ff19851688528388019550613e58565b60008b81526020902060005b85811015613e505781548a820152908401908801613e37565b505083880195505b50939b9a5050505050505050505050565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090613e9c90830184613d5d565b9695505050505050565b602081526000611df86020830184613d5d565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b60208082526018908201527f4e6f206d6f726520746f6b656e7320617661696c61626c650000000000000000604082015260600190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b604051601f8201601f1916810167ffffffffffffffff81118282101715613ff157613ff161416d565b604052919050565b600067ffffffffffffffff8211156140135761401361416d565b5060051b60200190565b6000821982111561403057614030614115565b500190565b6000826140445761404461412b565b500490565b600081600019048311821515161561406357614063614115565b500290565b60008282101561407a5761407a614115565b500390565b60005b8381101561409a578181015183820152602001614082565b8381111561147e5750506000910152565b600181811c908216806140bf57607f821691505b602082108114156140e057634e487b7160e01b600052602260045260246000fd5b50919050565b60006000198214156140fa576140fa614115565b5060010190565b6000826141105761411061412b565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052603160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b03811681146111bb57600080fd5b80151581146111bb57600080fd5b6001600160e01b0319811681146111bb57600080fdfea164736f6c6343000807000a00000000000000000000000000000000000000000000000000000000000000e000000000000000000000000000000000000000000000000000000000000001200000000000000000000000000000000000000000000000000000000000002b6700000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000160000000000000000000000000000000000000000000000000000000000000058000000000000000000000000000000000000000000000000000000000000005e0000000000000000000000000000000000000000000000000000000000000000e5768497342652056616e64616c7a000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000456444c5a0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000b000000000000000000000000000000000000000000000000000000000000000b0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000c00000000000000000000000000000000000000000000000000000000000000de00000000000000000000000000000000000000000000000000000000000000d3000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000df000000000000000000000000000000000000000000000000000000000000039a00000000000000000000000000000000000000000000000000000000000002bc0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000039b00000000000000000000000000000000000000000000000000000000000006e4000000000000000000000000000000000000000000000000000000000000034a000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000006dc0000000000000000000000000000000000000000000000000000000000000acb00000000000000000000000000000000000000000000000000000000000003e700000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000acc0000000000000000000000000000000000000000000000000000000000000fa200000000000000000000000000000000000000000000000000000000000004d700000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000fa300000000000000000000000000000000000000000000000000000000000017df000000000000000000000000000000000000000000000000000000000000083d000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000017e00000000000000000000000000000000000000000000000000000000000002b67000000000000000000000000000000000000000000000000000000000000138800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000034697066732f516d5a575050524555716a5a654561744578317038733650477657583739797a38314d42454c5774434d614e4a322f0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000

Deployed Bytecode

0x6080604052600436106103c75760003560e01c806370a08231116101f2578063b235d4681161010d578063e14ca353116100a0578063f0d4601d1161006f578063f0d4601d14610b93578063f2c4ce1e14610bb3578063f2fde38b14610bd3578063fc6abd4114610bf357600080fd5b8063e14ca35314610ae8578063e2e784d514610afd578063e817194914610b1d578063e985e9c514610b4a57600080fd5b8063c87b56dd116100dc578063c87b56dd14610a73578063da3ef23f14610a93578063e086e5ec14610ab3578063e0d95efa14610ac857600080fd5b8063b235d468146109fd578063b88d4fde14610a1e578063b9d6da9d14610a3e578063c668286214610a5e57600080fd5b80639b6860c811610185578063a3666fbc11610154578063a3666fbc14610988578063a475b5dd146109a8578063ad2f852a146109bd578063b19c92a2146109dd57600080fd5b80639b6860c8146109275780639f181b5e1461093d5780639f67756d14610952578063a22cb4651461096857600080fd5b80638405c519116101c15780638405c519146108a757806386f92ff6146108d45780638da5cb5b146108f457806395d89b411461091257600080fd5b806370a082311461083f578063715018a61461085f578063791a251914610874578063796b89b91461089457600080fd5b80633b4c4b25116102e257806351830227116102755780636c0360eb116102445780636c0360eb146107d25780636c54b4aa146107e75780636e748f97146108175780636f77197d1461082c57600080fd5b8063518302271461075257806355f804b3146107725780635eaab368146107925780636352211e146107b257600080fd5b806342966c68116102b157806342966c68146106d057806344f01112146106f057806345f61225146107125780634783f0ef1461073257600080fd5b80633b4c4b25146106515780633e9949421461067157806342842e0e146106915780634293516d146106b157600080fd5b806318160ddd1161035a578063273cf2bd11610329578063273cf2bd146105c25780632a55205a146105e25780632eb4a7ab1461062157806333d9d5fd1461063757600080fd5b806318160ddd146105575780631df0bb8a1461056c578063208904c71461058c57806323b872dd146105a257600080fd5b8063081c8c4411610396578063081c8c44146104bb578063095ea7b3146104d05780630eba699c146104f0578063150b7a021461051e57600080fd5b806301ffc9a7146103eb578063039af9eb1461042057806306fdde0314610461578063081812fc1461048357600080fd5b366103e6576040805160008152602081019091526103e490610c13565b005b600080fd5b3480156103f757600080fd5b5061040b610406366004613cb8565b610d5c565b60405190151581526020015b60405180910390f35b34801561042c57600080fd5b5061044061043b366004613c9f565b610d6d565b60408051948552602085019390935291830152516060820152608001610417565b34801561046d57600080fd5b50610476610db2565b6040516104179190613ea6565b34801561048f57600080fd5b506104a361049e366004613c9f565b610e44565b6040516001600160a01b039091168152602001610417565b3480156104c757600080fd5b50610476610ed9565b3480156104dc57600080fd5b506103e46104eb366004613a09565b610f67565b3480156104fc57600080fd5b5061051061050b366004613c9f565b61107d565b604051908152602001610417565b34801561052a57600080fd5b5061053e61053936600461390b565b6110aa565b6040516001600160e01b03199091168152602001610417565b34801561056357600080fd5b50600854610510565b34801561057857600080fd5b506103e4610587366004613c65565b6110bb565b34801561059857600080fd5b5061051060095481565b3480156105ae57600080fd5b506103e46105bd3660046138ca565b6110ff565b3480156105ce57600080fd5b506105106105dd366004613c9f565b611131565b3480156105ee57600080fd5b506106026105fd366004613d3b565b611152565b604080516001600160a01b039093168352602083019190915201610417565b34801561062d57600080fd5b50610510600f5481565b34801561064357600080fd5b50600e5461040b9060ff1681565b34801561065d57600080fd5b506103e461066c366004613c9f565b611188565b34801561067d57600080fd5b506103e461068c366004613a09565b6111be565b34801561069d57600080fd5b506103e46106ac3660046138ca565b611256565b3480156106bd57600080fd5b50600e5461040b90610100900460ff1681565b3480156106dc57600080fd5b506103e46106eb366004613c9f565b611271565b3480156106fc57600080fd5b50600e5461040b90640100000000900460ff1681565b34801561071e57600080fd5b506103e461072d366004613bdd565b6112e8565b34801561073e57600080fd5b506103e461074d366004613c9f565b611484565b34801561075e57600080fd5b50600e5461040b9062010000900460ff1681565b34801561077e57600080fd5b506103e461078d366004613cf2565b6114b3565b34801561079e57600080fd5b506103e46107ad366004613a35565b6114f0565b3480156107be57600080fd5b506104a36107cd366004613c9f565b6115b1565b3480156107de57600080fd5b50610476611628565b3480156107f357600080fd5b5061040b610802366004613874565b60176020526000908152604090205460ff1681565b34801561082357600080fd5b50610510600881565b6103e461083a366004613b45565b610c13565b34801561084b57600080fd5b5061051061085a366004613874565b611635565b34801561086b57600080fd5b506103e46116bc565b34801561088057600080fd5b506103e461088f366004613c9f565b6116f2565b3480156108a057600080fd5b5042610510565b3480156108b357600080fd5b506105106108c2366004613874565b60196020526000908152604090205481565b3480156108e057600080fd5b506103e46108ef366004613a6a565b611721565b34801561090057600080fd5b506006546001600160a01b03166104a3565b34801561091e57600080fd5b50610476611b42565b34801561093357600080fd5b50610510600d5481565b34801561094957600080fd5b50610510611b51565b34801561095e57600080fd5b5061051060115481565b34801561097457600080fd5b506103e46109833660046139db565b611b61565b34801561099457600080fd5b506105106109a3366004613c9f565b611b6c565b3480156109b457600080fd5b506103e4611b7c565b3480156109c957600080fd5b506010546104a3906001600160a01b031681565b3480156109e957600080fd5b506103e46109f8366004613c65565b611bb9565b348015610a0957600080fd5b50600e5461040b906301000000900460ff1681565b348015610a2a57600080fd5b506103e4610a3936600461390b565b611bf6565b348015610a4a57600080fd5b506103e4610a59366004613c65565b611c28565b348015610a6a57600080fd5b50610476611c72565b348015610a7f57600080fd5b50610476610a8e366004613c9f565b611c7f565b348015610a9f57600080fd5b506103e4610aae366004613cf2565b611dff565b348015610abf57600080fd5b506103e4611e3c565b348015610ad457600080fd5b50610510610ae3366004613c9f565b611e92565b348015610af457600080fd5b50610510611ed9565b348015610b0957600080fd5b506103e4610b18366004613a09565b611ef0565b348015610b2957600080fd5b50610510610b38366004613874565b60186020526000908152604090205481565b348015610b5657600080fd5b5061040b610b65366004613891565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b348015610b9f57600080fd5b506103e4610bae36600461398b565b611f80565b348015610bbf57600080fd5b506103e4610bce366004613cf2565b611feb565b348015610bdf57600080fd5b506103e4610bee366004613874565b612028565b348015610bff57600080fd5b506103e4610c0e366004613c65565b6120c0565b600e5460ff1615610c635760405162461bcd60e51b8152602060048201526015602482015274141d589b1a58c81b5a5b9d081a5cc81c185d5cd959605a1b60448201526064015b60405180910390fd5b33600090815260196020526040902054600211610c9357604051631709276d60e31b815260040160405180910390fd5b600d543414610d0a5760405162461bcd60e51b815260206004820152603b60248201527f57686973626556616e64616c7a3a206574682076616c75652073686f756c642060448201527f626520657175616c20746f207075626c696353616c65507269636500000000006064820152608401610c5a565b600e54610100900460ff1615610d2357610d2381612108565b610d3433610d2f6121a6565b612205565b336000908152601960205260408120805460019290610d5490849061401d565b909155505050565b6000610d678261221f565b92915050565b600b8181548110610d7d57600080fd5b600091825260209182902060049091020180546001820154600283015460408051958601905260039093015484529093509184565b606060008054610dc1906140ab565b80601f0160208091040260200160405190810160405280929190818152602001828054610ded906140ab565b8015610e3a5780601f10610e0f57610100808354040283529160200191610e3a565b820191906000526020600020905b815481529060010190602001808311610e1d57829003601f168201915b5050505050905090565b6000818152600260205260408120546001600160a01b0316610ebd5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610c5a565b506000908152600460205260409020546001600160a01b031690565b60168054610ee6906140ab565b80601f0160208091040260200160405190810160405280929190818152602001828054610f12906140ab565b8015610f5f5780601f10610f3457610100808354040283529160200191610f5f565b820191906000526020600020905b815481529060010190602001808311610f4257829003601f168201915b505050505081565b6000610f72826115b1565b9050806001600160a01b0316836001600160a01b03161415610fe05760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610c5a565b336001600160a01b0382161480610ffc5750610ffc8133610b65565b61106e5760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610c5a565b6110788383612250565b505050565b6000610d67600b838154811061109557611095614157565b90600052602060002090600402016003015490565b630a85bd0160e11b5b949350505050565b6006546001600160a01b031633146110e55760405162461bcd60e51b8152600401610c5a90613f42565b600e80549115156101000261ff0019909216919091179055565b61110a335b826122be565b6111265760405162461bcd60e51b8152600401610c5a90613f77565b6110788383836123b4565b6012818154811061114157600080fd5b600091825260209091200154905081565b6010546011546001600160a01b0390911690600090612710906111759085614049565b61117f9190614035565b90509250929050565b6006546001600160a01b031633146111b25760405162461bcd60e51b8152600401610c5a90613f42565b6111bb81612550565b50565b6006546001600160a01b031633146111e85760405162461bcd60e51b8152600401610c5a90613f42565b6001600160a01b03821661123e5760405162461bcd60e51b815260206004820152601d60248201527f546f6b656e20616464726573732063616e206e6f74206265207a65726f0000006044820152606401610c5a565b6112526001600160a01b03831633836125fe565b5050565b61107883838360405180602001604052806000815250611bf6565b61127a33611104565b6112df5760405162461bcd60e51b815260206004820152603060248201527f4552433732314275726e61626c653a2063616c6c6572206973206e6f74206f7760448201526f1b995c881b9bdc88185c1c1c9bdd995960821b6064820152608401610c5a565b6111bb81612650565b6006546001600160a01b031633146113125760405162461bcd60e51b8152600401610c5a90613f42565b81518351148015611324575080518251145b6113845760405162461bcd60e51b815260206004820152602b60248201527f57686973626556616e64616c7a3a20746965722064657461696c73206c656e6760448201526a0e8d040dad2e6dac2e8c6d60ab1b6064820152608401610c5a565b60005b835181101561147e5760088482815181106113a4576113a4614157565b6020026020010151106114165760405162461bcd60e51b815260206004820152603460248201527f57686973626556616e64616c7a3a2074696572496e6465782065786365656473604482015273206d6178207065726d697474656420746965727360601b6064820152608401610c5a565b61146c84828151811061142b5761142b614157565b602002602001015184838151811061144557611445614157565b602002602001015184848151811061145f5761145f614157565b60200260200101516126eb565b80611476816140e6565b915050611387565b50505050565b6006546001600160a01b031633146114ae5760405162461bcd60e51b8152600401610c5a90613f42565b600f55565b6006546001600160a01b031633146114dd5760405162461bcd60e51b8152600401610c5a90613f42565b80516112529060149060208401906136a8565b6006546001600160a01b0316331461151a5760405162461bcd60e51b8152600401610c5a90613f42565b600e54640100000000900460ff161561156f5760005b81518110156112525761155d82828151811061154e5761154e614157565b60200260200101516001612819565b80611567816140e6565b915050611530565b60005b81518110156112525761159f82828151811061159057611590614157565b602002602001015160016128c0565b806115a9816140e6565b915050611572565b6000818152600260205260408120546001600160a01b031680610d675760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401610c5a565b60148054610ee6906140ab565b60006001600160a01b0382166116a05760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401610c5a565b506001600160a01b031660009081526003602052604090205490565b6006546001600160a01b031633146116e65760405162461bcd60e51b8152600401610c5a90613f42565b6116f0600061294a565b565b6006546001600160a01b0316331461171c5760405162461bcd60e51b8152600401610c5a90613f42565b600d55565b600e546301000000900460ff161561176e5760405162461bcd60e51b815260206004820152601060248201526f14995919595b481a5cc81c185d5cd95960821b6044820152606401610c5a565b81518151811461179a5760405162461bcd60e51b81526020600482015260006024820152604401610c5a565b60005b8181101561147e57601760008583815181106117bb576117bb614157565b6020908102919091018101516001600160a01b031682528101919091526040016000205460ff16611829578381815181106117f8576117f8614157565b6020026020010151604051636d82551360e01b8152600401610c5a91906001600160a01b0391909116815260200190565b600083828151811061183d5761183d614157565b6020026020010151519050806018600087858151811061185f5761185f614157565b60200260200101516001600160a01b03166001600160a01b031681526020019081526020016000206000828254611896919061401d565b90915550600090505b81811015611b2d5773cd136e30b316837c190241e838639c619516fdf96001600160a01b03168684815181106118d7576118d7614157565b60200260200101516001600160a01b031614156119bb5785838151811061190057611900614157565b60200260200101516001600160a01b03166342842e0e333088878151811061192a5761192a614157565b6020026020010151858151811061194357611943614157565b60209081029190910101516040516001600160e01b031960e086901b1681526001600160a01b03938416600482015292909116602483015260448201526064015b600060405180830381600087803b15801561199e57600080fd5b505af11580156119b2573d6000803e3d6000fd5b50505050611af8565b73c5dd321472f80a3ec9779f55cc1af854712fae706001600160a01b03168684815181106119eb576119eb614157565b60200260200101516001600160a01b03161415611a4c57858381518110611a1457611a14614157565b602090810291909101015160405163762e61d360e01b81523360048201526001600160a01b039091169063762e61d390602401611984565b858381518110611a5e57611a5e614157565b60200260200101516001600160a01b03166342966c68868581518110611a8657611a86614157565b60200260200101518381518110611a9f57611a9f614157565b60200260200101516040518263ffffffff1660e01b8152600401611ac591815260200190565b600060405180830381600087803b158015611adf57600080fd5b505af1158015611af3573d6000803e3d6000fd5b505050505b611b1b33878581518110611b0e57611b0e614157565b602002602001015161299c565b80611b25816140e6565b91505061189f565b50508080611b3a906140e6565b91505061179d565b606060018054610dc1906140ab565b6000611b5c60075490565b905090565b611252338383612a9b565b6013818154811061114157600080fd5b6006546001600160a01b03163314611ba65760405162461bcd60e51b8152600401610c5a90613f42565b600e805462ff0000191662010000179055565b6006546001600160a01b03163314611be35760405162461bcd60e51b8152600401610c5a90613f42565b600e805460ff1916911515919091179055565b611c0033836122be565b611c1c5760405162461bcd60e51b8152600401610c5a90613f77565b61147e84848484612b6a565b6006546001600160a01b03163314611c525760405162461bcd60e51b8152600401610c5a90613f42565b600e80549115156401000000000264ff0000000019909216919091179055565b60158054610ee6906140ab565b6000818152600260205260409020546060906001600160a01b0316611cfe5760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b6064820152608401610c5a565b600e5462010000900460ff16611da05760168054611d1b906140ab565b80601f0160208091040260200160405190810160405280929190818152602001828054611d47906140ab565b8015611d945780601f10611d6957610100808354040283529160200191611d94565b820191906000526020600020905b815481529060010190602001808311611d7757829003601f168201915b50505050509050919050565b6000611daa612b9d565b90506000815111611dca5760405180602001604052806000815250611df8565b80611dd484612bac565b6015604051602001611de893929190613da5565b6040516020818303038152906040525b9392505050565b6006546001600160a01b03163314611e295760405162461bcd60e51b8152600401610c5a90613f42565b80516112529060159060208401906136a8565b6006546001600160a01b03163314611e665760405162461bcd60e51b8152600401610c5a90613f42565b60405133904780156108fc02916000818181858888f193505050501580156111bb573d6000803e3d6000fd5b6000611eaa600b838154811061109557611095614157565b600b8381548110611ebd57611ebd614157565b906000526020600020906004020160020154610d679190614068565b6000611ee3611b51565b600854611b5c9190614068565b6006546001600160a01b03163314611f1a5760405162461bcd60e51b8152600401610c5a90613f42565b601080546001600160a01b0319166001600160a01b0384161790556011819055604080516001600160a01b0384168152602081018390527f37b261884b0718cab93d62e6fe3bef710b5a1da58190a859f842d6e8b2b0b70b910160405180910390a15050565b6006546001600160a01b03163314611faa5760405162461bcd60e51b8152600401610c5a90613f42565b60005b815181101561107857611fd983838381518110611fcc57611fcc614157565b6020026020010151612caa565b80611fe3816140e6565b915050611fad565b6006546001600160a01b031633146120155760405162461bcd60e51b8152600401610c5a90613f42565b80516112529060169060208401906136a8565b6006546001600160a01b031633146120525760405162461bcd60e51b8152600401610c5a90613f42565b6001600160a01b0381166120b75760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610c5a565b6111bb8161294a565b6006546001600160a01b031633146120ea5760405162461bcd60e51b8152600401610c5a90613f42565b600e805491151563010000000263ff00000019909216919091179055565b6040516bffffffffffffffffffffffff193360601b16602082015260009060340160405160208183030381529060405280519060200120905061214e82600f5483612ce4565b6112525760405162461bcd60e51b8152602060048201526024808201527f57686974656c6973743a2063616c6c6572206973206e6f742077686974656c696044820152631cdd195960e21b6064820152608401610c5a565b6000806121b1611ed9565b116121ce5760405162461bcd60e51b8152600401610c5a90613f0b565b60006009546121f06121de611b51565b6008546121eb9190614068565b612cfa565b6121fa919061401d565b9050611b5c81612dc4565b611252828260405180602001604052806000815250612e70565b600061222a82612ea3565b80610d675750506001600160e01b0319166000908152600c602052604090205460ff1690565b600081815260046020526040902080546001600160a01b0319166001600160a01b0384169081179091558190612285826115b1565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000818152600260205260408120546001600160a01b03166123375760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610c5a565b6000612342836115b1565b9050806001600160a01b0316846001600160a01b0316148061238957506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b806110b35750836001600160a01b03166123a284610e44565b6001600160a01b031614949350505050565b826001600160a01b03166123c7826115b1565b6001600160a01b03161461242b5760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201526437bbb732b960d91b6064820152608401610c5a565b6001600160a01b03821661248d5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610c5a565b612498600082612250565b6001600160a01b03831660009081526003602052604081208054600192906124c1908490614068565b90915550506001600160a01b03821660009081526003602052604081208054600192906124ef90849061401d565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b612558611b51565b81116125cc5760405162461bcd60e51b815260206004820152603960248201527f43616e2774207365742074686520737570706c7920746f206c6573732074686160448201527f6e207468652063757272656e7420746f6b656e20636f756e74000000000000006064820152608401610c5a565b6008819055806040517ff71f9c3841c0bab7774017ffe585aeab36b5438d148506067901d47c5fa6f7e990600090a250565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b179052611078908490612ef3565b600061265b826115b1565b9050612668600083612250565b6001600160a01b0381166000908152600360205260408120805460019290612691908490614068565b909155505060008281526002602052604080822080546001600160a01b0319169055518391906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b600b83815481106126fe576126fe614157565b906000526020600020906004020160020154828261271c9190614068565b10156127865760405162461bcd60e51b815260206004820152603360248201527f45524337323152616e646f6d6c7941737369676e56616e64616c7a54696572206044820152723a206d6973616c69676e65642070696563657360681b6064820152608401610c5a565b81600b848154811061279a5761279a614157565b90600052602060002090600402016000018190555080600b84815481106127c3576127c3614157565b60009182526020909120600160049092020101556127e18282614068565b6127ec90600161401d565b600b84815481106127ff576127ff614157565b906000526020600020906004020160020181905550505050565b6012548061283a57604051630808792f60e41b815260040160405180910390fd5b6000805b838110156128b9578261284f612fc5565b6128599190614101565b915061288585610d2f6012858154811061287557612875614157565b906000526020600020015461304f565b61288e82613131565b81156128a7576128a76128a2600184614068565b6131cf565b806128b1816140e6565b91505061283e565b5050505050565b601354806128e15760405163b7ebae9160e01b815260040160405180910390fd5b6000805b838110156128b957826128f6612fc5565b6129009190614101565b915061291c85610d2f6013858154811061287557612875614157565b612925826131cf565b61293861293383600161401d565b613131565b80612942816140e6565b9150506128e5565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b03811673cd136e30b316837c190241e838639c619516fdf914156129ca5761125282613244565b6001600160a01b0381167341c884cc6847a95cfff4eac251173ea72c3c5efb14156129f8576112528261327b565b6001600160a01b03811673e2c2613e647ebd03fdc71a1cf1fd1f938321356c1415612a265761125282613244565b6001600160a01b03811673a53e7fd6abc0fe9769690af55f19c2b4a13f2bc31415612a545761125282613252565b6001600160a01b03811673c5dd321472f80a3ec9779f55cc1af854712fae701415612a825761125282613252565b60405163e2423fa760e01b815260040160405180910390fd5b816001600160a01b0316836001600160a01b03161415612afd5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610c5a565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b612b758484846123b4565b612b81848484846132c0565b61147e5760405162461bcd60e51b8152600401610c5a90613eb9565b606060148054610dc1906140ab565b606081612bd05750506040805180820190915260018152600360fc1b602082015290565b8160005b8115612bfa5780612be4816140e6565b9150612bf39050600a83614035565b9150612bd4565b60008167ffffffffffffffff811115612c1557612c1561416d565b6040519080825280601f01601f191660200182016040528015612c3f576020820181803683370190505b5090505b84156110b357612c54600183614068565b9150612c61600a86614101565b612c6c90603061401d565b60f81b818381518110612c8157612c81614157565b60200101906001600160f81b031916908160001a905350612ca3600a86614035565b9450612c43565b6000612cb4611ed9565b11612cd15760405162461bcd60e51b8152600401610c5a90613f0b565b612cda81612dc4565b6112528282612205565b600082612cf185846133ca565b14949350505050565b60008082612d06612fc5565b612d109190614101565b6000818152600a602052604081205491925090612d2e575080612d3f565b506000818152600a60205260409020545b600a6000612d4e600187614068565b81526020019081526020016000205460001415612d8457612d70600185614068565b6000838152600a6020526040902055612db4565b600a6000612d93600187614068565b81526020808201929092526040908101600090812054858252600a90935220555b612dbc613436565b509392505050565b60005b600b5481101561125257600b8181548110612de457612de4614157565b9060005260206000209060040201600001548210158015612e295750600b8181548110612e1357612e13614157565b9060005260206000209060040201600101548211155b15612e5e57611252600b8281548110612e4457612e44614157565b906000526020600020906004020160030180546001019055565b80612e68816140e6565b915050612dc7565b612e7a8383613452565b612e8760008484846132c0565b6110785760405162461bcd60e51b8152600401610c5a90613eb9565b60006001600160e01b031982166380ac58cd60e01b1480612ed457506001600160e01b03198216635b5e139f60e01b145b80610d6757506301ffc9a760e01b6001600160e01b0319831614610d67565b6000612f48826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166135949092919063ffffffff16565b8051909150156110785780806020019051810190612f669190613c82565b6110785760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401610c5a565b6000334143404542612fd5611b51565b612fdd611ed9565b6008546040516bffffffffffffffffffffffff196060998a1b811660208301529790981b909616603488015260488701949094526068860192909252608885015260a884015260c883015260e8820152610108016040516020818303038152906040528051906020012060001c905090565b60008061305a611ed9565b116130775760405162461bcd60e51b8152600401610c5a90613f0b565b61308082611e92565b6130a05760405163648d56f960e11b815260048101839052602401610c5a565b6000600b83815481106130b5576130b5614157565b90600052602060002090600402016000015461310f6130e0600b868154811061109557611095614157565b600b86815481106130f3576130f3614157565b9060005260206000209060040201600201546121eb9190614068565b613119919061401d565b9050610d67600b8481548110612e4457612e44614157565b6131576012828154811061314757613147614157565b9060005260206000200154611e92565b6111bb576012805461316b90600190614068565b8154811061317b5761317b614157565b90600052602060002001546012828154811061319957613199614157565b60009182526020909120015560128054806131b6576131b6614141565b6001900381819060005260206000200160009055905550565b6131e56013828154811061314757613147614157565b6111bb57601380546131f990600190614068565b8154811061320957613209614157565b90600052602060002001546013828154811061322757613227614157565b60009182526020909120015560138054806131b6576131b6614141565b61325281610d2f600361304f565b600e54640100000000900460ff1615613270576111bb816001612819565b6111bb8160016128c0565b61328981610d2f600161304f565b61329781610d2f600361304f565b600e54640100000000900460ff16156132b5576111bb816008612819565b6111bb8160086128c0565b60006001600160a01b0384163b156133c257604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290613304903390899088908890600401613e69565b602060405180830381600087803b15801561331e57600080fd5b505af192505050801561334e575060408051601f3d908101601f1916820190925261334b91810190613cd5565b60015b6133a8573d80801561337c576040519150601f19603f3d011682016040523d82523d6000602084013e613381565b606091505b5080516133a05760405162461bcd60e51b8152600401610c5a90613eb9565b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490506110b3565b5060016110b3565b600081815b8451811015612dbc5760008582815181106133ec576133ec614157565b602002602001015190508083116134125760008381526020829052604090209250613423565b600081815260208490526040902092505b508061342e816140e6565b9150506133cf565b60008061344260075490565b9050611b5c600780546001019055565b6001600160a01b0382166134a85760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610c5a565b6000818152600260205260409020546001600160a01b03161561350d5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610c5a565b6001600160a01b038216600090815260036020526040812080546001929061353690849061401d565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b60606110b38484600085856001600160a01b0385163b6135f65760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610c5a565b600080866001600160a01b031685876040516136129190613d89565b60006040518083038185875af1925050503d806000811461364f576040519150601f19603f3d011682016040523d82523d6000602084013e613654565b606091505b509150915061366482828661366f565b979650505050505050565b6060831561367e575081611df8565b82511561368e5782518084602001fd5b8160405162461bcd60e51b8152600401610c5a9190613ea6565b8280546136b4906140ab565b90600052602060002090601f0160209004810192826136d6576000855561371c565b82601f106136ef57805160ff191683800117855561371c565b8280016001018555821561371c579182015b8281111561371c578251825591602001919060010190613701565b5061372892915061372c565b5090565b5b80821115613728576000815560010161372d565b600067ffffffffffffffff83111561375b5761375b61416d565b61376e601f8401601f1916602001613fc8565b905082815283838301111561378257600080fd5b828260208301376000602084830101529392505050565b600082601f8301126137aa57600080fd5b813560206137bf6137ba83613ff9565b613fc8565b80838252828201915082860187848660051b89010111156137df57600080fd5b60005b858110156138075781356137f581614183565b845292840192908401906001016137e2565b5090979650505050505050565b600082601f83011261382557600080fd5b813560206138356137ba83613ff9565b80838252828201915082860187848660051b890101111561385557600080fd5b60005b8581101561380757813584529284019290840190600101613858565b60006020828403121561388657600080fd5b8135611df881614183565b600080604083850312156138a457600080fd5b82356138af81614183565b915060208301356138bf81614183565b809150509250929050565b6000806000606084860312156138df57600080fd5b83356138ea81614183565b925060208401356138fa81614183565b929592945050506040919091013590565b6000806000806080858703121561392157600080fd5b843561392c81614183565b9350602085013561393c81614183565b925060408501359150606085013567ffffffffffffffff81111561395f57600080fd5b8501601f8101871361397057600080fd5b61397f87823560208401613741565b91505092959194509250565b6000806040838503121561399e57600080fd5b82356139a981614183565b9150602083013567ffffffffffffffff8111156139c557600080fd5b6139d185828601613814565b9150509250929050565b600080604083850312156139ee57600080fd5b82356139f981614183565b915060208301356138bf81614198565b60008060408385031215613a1c57600080fd5b8235613a2781614183565b946020939093013593505050565b600060208284031215613a4757600080fd5b813567ffffffffffffffff811115613a5e57600080fd5b6110b384828501613799565b60008060408385031215613a7d57600080fd5b823567ffffffffffffffff80821115613a9557600080fd5b613aa186838701613799565b9350602091508185013581811115613ab857600080fd5b8501601f81018713613ac957600080fd5b8035613ad76137ba82613ff9565b8082825285820191508584018a878560051b8701011115613af757600080fd5b6000805b85811015613b3257823588811115613b11578283fd5b613b1f8e8b838b0101613814565b8652509388019391880191600101613afb565b5050508096505050505050509250929050565b60006020808385031215613b5857600080fd5b823567ffffffffffffffff811115613b6f57600080fd5b8301601f81018513613b8057600080fd5b8035613b8e6137ba82613ff9565b80828252848201915084840188868560051b8701011115613bae57600080fd5b600094505b83851015613bd1578035835260019490940193918501918501613bb3565b50979650505050505050565b600080600060608486031215613bf257600080fd5b833567ffffffffffffffff80821115613c0a57600080fd5b613c1687838801613814565b94506020860135915080821115613c2c57600080fd5b613c3887838801613814565b93506040860135915080821115613c4e57600080fd5b50613c5b86828701613814565b9150509250925092565b600060208284031215613c7757600080fd5b8135611df881614198565b600060208284031215613c9457600080fd5b8151611df881614198565b600060208284031215613cb157600080fd5b5035919050565b600060208284031215613cca57600080fd5b8135611df8816141a6565b600060208284031215613ce757600080fd5b8151611df8816141a6565b600060208284031215613d0457600080fd5b813567ffffffffffffffff811115613d1b57600080fd5b8201601f81018413613d2c57600080fd5b6110b384823560208401613741565b60008060408385031215613d4e57600080fd5b50508035926020909101359150565b60008151808452613d7581602086016020860161407f565b601f01601f19169290920160200192915050565b60008251613d9b81846020870161407f565b9190910192915050565b600084516020613db88285838a0161407f565b855191840191613dcb8184848a0161407f565b8554920191600090600181811c9080831680613de857607f831692505b858310811415613e0657634e487b7160e01b85526022600452602485fd5b808015613e1a5760018114613e2b57613e58565b60ff19851688528388019550613e58565b60008b81526020902060005b85811015613e505781548a820152908401908801613e37565b505083880195505b50939b9a5050505050505050505050565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090613e9c90830184613d5d565b9695505050505050565b602081526000611df86020830184613d5d565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b60208082526018908201527f4e6f206d6f726520746f6b656e7320617661696c61626c650000000000000000604082015260600190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b604051601f8201601f1916810167ffffffffffffffff81118282101715613ff157613ff161416d565b604052919050565b600067ffffffffffffffff8211156140135761401361416d565b5060051b60200190565b6000821982111561403057614030614115565b500190565b6000826140445761404461412b565b500490565b600081600019048311821515161561406357614063614115565b500290565b60008282101561407a5761407a614115565b500390565b60005b8381101561409a578181015183820152602001614082565b8381111561147e5750506000910152565b600181811c908216806140bf57607f821691505b602082108114156140e057634e487b7160e01b600052602260045260246000fd5b50919050565b60006000198214156140fa576140fa614115565b5060010190565b6000826141105761411061412b565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052603160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b03811681146111bb57600080fd5b80151581146111bb57600080fd5b6001600160e01b0319811681146111bb57600080fdfea164736f6c6343000807000a

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

00000000000000000000000000000000000000000000000000000000000000e000000000000000000000000000000000000000000000000000000000000001200000000000000000000000000000000000000000000000000000000000002b6700000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000160000000000000000000000000000000000000000000000000000000000000058000000000000000000000000000000000000000000000000000000000000005e0000000000000000000000000000000000000000000000000000000000000000e5768497342652056616e64616c7a000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000456444c5a0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000b000000000000000000000000000000000000000000000000000000000000000b0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000c00000000000000000000000000000000000000000000000000000000000000de00000000000000000000000000000000000000000000000000000000000000d3000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000df000000000000000000000000000000000000000000000000000000000000039a00000000000000000000000000000000000000000000000000000000000002bc0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000039b00000000000000000000000000000000000000000000000000000000000006e4000000000000000000000000000000000000000000000000000000000000034a000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000006dc0000000000000000000000000000000000000000000000000000000000000acb00000000000000000000000000000000000000000000000000000000000003e700000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000acc0000000000000000000000000000000000000000000000000000000000000fa200000000000000000000000000000000000000000000000000000000000004d700000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000fa300000000000000000000000000000000000000000000000000000000000017df000000000000000000000000000000000000000000000000000000000000083d000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000017e00000000000000000000000000000000000000000000000000000000000002b67000000000000000000000000000000000000000000000000000000000000138800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000034697066732f516d5a575050524555716a5a654561744578317038733650477657583739797a38314d42454c5774434d614e4a322f0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000

-----Decoded View---------------
Arg [0] : _name (string): WhIsBe Vandalz
Arg [1] : _symbol (string): VDLZ
Arg [2] : _totalSupply (uint256): 11111
Arg [3] : _startFrom (uint256): 1
Arg [4] : _tiers (tuple[]): System.Collections.Generic.List`1[Nethereum.ABI.FunctionEncoding.ParameterOutput],System.Collections.Generic.List`1[Nethereum.ABI.FunctionEncoding.ParameterOutput],System.Collections.Generic.List`1[Nethereum.ABI.FunctionEncoding.ParameterOutput],System.Collections.Generic.List`1[Nethereum.ABI.FunctionEncoding.ParameterOutput],System.Collections.Generic.List`1[Nethereum.ABI.FunctionEncoding.ParameterOutput],System.Collections.Generic.List`1[Nethereum.ABI.FunctionEncoding.ParameterOutput],System.Collections.Generic.List`1[Nethereum.ABI.FunctionEncoding.ParameterOutput],System.Collections.Generic.List`1[Nethereum.ABI.FunctionEncoding.ParameterOutput]
Arg [5] : _initBaseURI (string): ipfs/QmZWPPREUqjZeEatEx1p8s6PGvWX79yz81MBELWtCMaNJ2/
Arg [6] : _initNotRevealedUri (string):

-----Encoded View---------------
48 Constructor Arguments found :
Arg [0] : 00000000000000000000000000000000000000000000000000000000000000e0
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000120
Arg [2] : 0000000000000000000000000000000000000000000000000000000000002b67
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000001
Arg [4] : 0000000000000000000000000000000000000000000000000000000000000160
Arg [5] : 0000000000000000000000000000000000000000000000000000000000000580
Arg [6] : 00000000000000000000000000000000000000000000000000000000000005e0
Arg [7] : 000000000000000000000000000000000000000000000000000000000000000e
Arg [8] : 5768497342652056616e64616c7a000000000000000000000000000000000000
Arg [9] : 0000000000000000000000000000000000000000000000000000000000000004
Arg [10] : 56444c5a00000000000000000000000000000000000000000000000000000000
Arg [11] : 0000000000000000000000000000000000000000000000000000000000000008
Arg [12] : 0000000000000000000000000000000000000000000000000000000000000001
Arg [13] : 000000000000000000000000000000000000000000000000000000000000000b
Arg [14] : 000000000000000000000000000000000000000000000000000000000000000b
Arg [15] : 0000000000000000000000000000000000000000000000000000000000000000
Arg [16] : 000000000000000000000000000000000000000000000000000000000000000c
Arg [17] : 00000000000000000000000000000000000000000000000000000000000000de
Arg [18] : 00000000000000000000000000000000000000000000000000000000000000d3
Arg [19] : 0000000000000000000000000000000000000000000000000000000000000000
Arg [20] : 00000000000000000000000000000000000000000000000000000000000000df
Arg [21] : 000000000000000000000000000000000000000000000000000000000000039a
Arg [22] : 00000000000000000000000000000000000000000000000000000000000002bc
Arg [23] : 0000000000000000000000000000000000000000000000000000000000000000
Arg [24] : 000000000000000000000000000000000000000000000000000000000000039b
Arg [25] : 00000000000000000000000000000000000000000000000000000000000006e4
Arg [26] : 000000000000000000000000000000000000000000000000000000000000034a
Arg [27] : 0000000000000000000000000000000000000000000000000000000000000000
Arg [28] : 00000000000000000000000000000000000000000000000000000000000006dc
Arg [29] : 0000000000000000000000000000000000000000000000000000000000000acb
Arg [30] : 00000000000000000000000000000000000000000000000000000000000003e7
Arg [31] : 0000000000000000000000000000000000000000000000000000000000000000
Arg [32] : 0000000000000000000000000000000000000000000000000000000000000acc
Arg [33] : 0000000000000000000000000000000000000000000000000000000000000fa2
Arg [34] : 00000000000000000000000000000000000000000000000000000000000004d7
Arg [35] : 0000000000000000000000000000000000000000000000000000000000000000
Arg [36] : 0000000000000000000000000000000000000000000000000000000000000fa3
Arg [37] : 00000000000000000000000000000000000000000000000000000000000017df
Arg [38] : 000000000000000000000000000000000000000000000000000000000000083d
Arg [39] : 0000000000000000000000000000000000000000000000000000000000000000
Arg [40] : 00000000000000000000000000000000000000000000000000000000000017e0
Arg [41] : 0000000000000000000000000000000000000000000000000000000000002b67
Arg [42] : 0000000000000000000000000000000000000000000000000000000000001388
Arg [43] : 0000000000000000000000000000000000000000000000000000000000000000
Arg [44] : 0000000000000000000000000000000000000000000000000000000000000034
Arg [45] : 697066732f516d5a575050524555716a5a654561744578317038733650477657
Arg [46] : 583739797a38314d42454c5774434d614e4a322f000000000000000000000000
Arg [47] : 0000000000000000000000000000000000000000000000000000000000000000


Loading...
Loading
Loading...
Loading
[ Download: CSV Export  ]
[ Download: CSV Export  ]

A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.