ETH Price: $3,913.48 (+0.13%)

Token

HypnoWorld (IRL)
 

Overview

Max Total Supply

55 IRL

Holders

54

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Filtered by Token Holder
j4ck.eth
Balance
1 IRL
0xDFe8beeE223412F316baf2968B17527D6EbA29F1
Loading...
Loading
Loading...
Loading
Loading...
Loading

Click here to update the token information / general information
# Exchange Pair Price  24H Volume % Volume

Contract Source Code Verified (Exact Match)

Contract Name:
HypnoWorld

Compiler Version
v0.8.7+commit.e28d00a7

Optimization Enabled:
Yes with 2000 runs

Other Settings:
default evmVersion
File 1 of 15 : HypnoWorld.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.4;

import "erc721a/contracts/ERC721A.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "@openzeppelin/contracts/security/Pausable.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol";
import "@openzeppelin/contracts/utils/Strings.sol";

/**
 * @title HypnoWorld smart contract
 * @author Asimov Collective
 * @custom:security-contact [email protected]
 */
contract HypnoWorld is ERC721A, Pausable, Ownable, ReentrancyGuard {

    /**
     * @dev Minting has 3 Stages:
     *  UNSTARTED: Contract has been deployed, but minting has not begun
     *  LIVE: Minting of assets is live (both whitelist and public paid minting)
     *  FINISHED: Minting is over, forever
     *
     * These stages will advance in the listed order, no stage will be skipped,
     * i.e. the stage will advance exactly one step in a single transaction
     * and once FINISHED is reached, the stage will never change again. See
     * advanceStage()
     *
     */
    enum MintStage { UNSTARTED, LIVE, FINISHED }

    error MaxMintPerBatchExceeded();  // when the quantity of mint is > MAX_MINTS_PER_BATCH
    error InvalidQuantityMint();  // when the quantity of mint is otherwise invalid i.e. 0
    error InvalidFee();  // when the value sent to mint is < MINT_FEE during public mint
    error InvalidMintingStage(MintStage currentContractStage, MintStage requiredStage);  // when the function requires the contract to be in a different stage of minting
    error NoMoreMintStages();  // when the final stage is reached and a request to advance the stage is made
    error InvalidUpdateToFinalizedCollection();  // when collection update is attempted on finalized collection
    error CollectionNotRevealed();  // when collection is not revealed but function requires it
    error IdenticalURI();  // when the new base uri doesnt differ from the existing
    error InvalidProof();  // when an invalid merkle proof is given
    error InvalidWhitelistClaimQuantity();  // when an invalid quantity of tokens are claimed for whitelisted minting
    error MaxWhitelistClaims(address claimer);  // when a whitelist claim is attempted more than once

    /**
     * @dev mapping from address to whether or not whitelist claim has been made
     * from the given address. An address can only ever claim one token through
     * no fee whitelist minting
     */
    mapping(address => bool) public whitelistClaimed;

    /// @dev whether baseURI has been updated, revealing the collection metadata
    bool public collectionRevealed;

    uint8 constant MAX_MINTS_PER_BATCH = 5;
    uint64 constant MINT_FEE = .05 ether;

    address private immutable treasury;

    string private _baseURIData = "ipfs://QmX8YGs6VFPUidmS3s8GT9FT9F9Aq7TNX4MpMGP8hzEPcE";
    MintStage private _mintStage;

    bytes32 private _whitelistRootHash;

    bool private _collectionFinalized;

    /**
     * @dev Emitted when the collection base URI is updated. Collection will be
     * updated after the IRL event takes place and media is recorded on IPFS
     */
    event CollectionRevealed(string _baseTokenURI);

    /**
     * @dev Emitted when the collection is finalized, meaning the base URI can
     * can no longer be updated
     */
    event CollectionFinalized();

    /**
     * @dev Emitted when the whitelist is updated
     */
    event WhitelistUpdated(bytes32 newWhitelistRootHash);

    /**
     * @dev Emitted when the contract minting stage advances
     */
    event MintStageAdvanced(MintStage newStage);

    /**
     * @dev Modifier that checks that contract is live for minting
     */
    modifier whenMintStage(MintStage stage) {
        _checkStage(stage);
        _;
    }

    constructor(
        address _treasury
    )
        ERC721A("HypnoWorld", "IRL")
    {
        treasury = _treasury;
        _mintStage = MintStage.UNSTARTED;
        _collectionFinalized = false;
        collectionRevealed = false;
    }

    /**
     * Mint a single token, one time, if sender is on the whitelist and minting
     * is LIVE
     * @dev Please generate proof in real time as needed using the publically
     * available whitelist hosted at https://world.hypno.com
     * @param _merkleProof A valid hex encoded proof validating caller is on the whitelist
     *
     * Requirements:
     *
     * - The caller must on the whitelist
     * - Minting must be live i.e. mintStage == MintStage.LIVE
     */
    function whitelistMint(bytes32[] calldata _merkleProof) external nonReentrant whenNotPaused whenMintStage(MintStage.LIVE) {
        // Whitelist can only mint once
        if (whitelistClaimed[_msgSender()]) revert MaxWhitelistClaims(_msgSender());
        // Check sender is on whitelist via provided proof
        if (!checkWhitelistValidity(_merkleProof, _msgSender())) revert InvalidProof();
        // If private whitelist mint, update claim data
        whitelistClaimed[_msgSender()] = true;
        // Mint one token for whitelist claim
        _safeMint(_msgSender(), 1);
    }

    /**
     * Mint `quantity` tokens when minting is LIVE with `MINT_FEE * quantity`
     * ETH required as payment
     * @param quantity Number of tokens to mint - must be <= 5
     *
     * Requirements:
     *
     * - The caller must include `MINT_FEE * quantity` ETH in value
     * - Minting must be live i.e. mintStage == MintStage.LIVE
     */
    function mint(uint256 quantity) external payable nonReentrant whenNotPaused whenMintStage(MintStage.LIVE) {
        uint256 feeAmount = quantity * MINT_FEE;
        if(quantity > MAX_MINTS_PER_BATCH) revert MaxMintPerBatchExceeded();
        if(quantity == 0) revert InvalidQuantityMint();
        if(msg.value != feeAmount) revert InvalidFee();

        _safeTransferETH(treasury, feeAmount);
        _safeMint(_msgSender(), quantity);
    }

    function tokenURI(uint256 tokenId) public view virtual override returns (string memory) {
        if (!_exists(tokenId)) revert URIQueryForNonexistentToken();

        string memory baseURI_ = _baseURI();

        if (!collectionRevealed) return baseURI_;
        return string(abi.encodePacked(baseURI_, Strings.toString(tokenId)));
    }

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

    /**
     * Internal function used to transfer ETH
     */
    function _safeTransferETH(address to, uint256 value) internal returns (bool) {
        (bool success, ) = to.call{ value: value }(new bytes(0));
        require(success, "Unable to Transfer ETH, Recipient May Have Reverted");
        return success;
    }

    /**
     * Pause all operations on contract that could change state
     *
     * Requirements:
     *
     * - The caller must the contract owner
     */
    function pause() public onlyOwner {
        _pause();
    }

    /**
     * Unpause all operations on contract that could change state
     *
     * Requirements:
     *
     * - The caller must the contract owner
     */
    function unpause() public onlyOwner {
        _unpause();
    }

    function _beforeTokenTransfers(
        address from,
        address to,
        uint256 startTokenId,
        uint256 quantity
    ) internal whenNotPaused override {
        super._beforeTokenTransfers(from, to, startTokenId, quantity);
    }

    /// @dev Custom mint stage & baseURI update logic below

    /**
     * Check that contract mint stage is at the specified target stage
     * @param targetStage MintStage that contract should be in
     */
    function _checkStage(MintStage targetStage) internal view {
        if (mintStage() != targetStage) {
            revert InvalidMintingStage(mintStage(), targetStage);
        }
    }

    /**
     * Getter function for contract MintStage
     * @return MintStage value contract is currently set to
     */
    function mintStage() public view returns (MintStage) {
        return _mintStage;
    }

    /**
     * Advances the stage of the contract to the next. Always advances only
     * one stage, from UNSTARTED to LIVE, and from LIVE to FINISHED. Reverts
     * if stage is already at FINISHED
     *
     * Requirements:
     *
     * - The caller must the contract owner
     * - Minting cannot be finished i.e. mintStage != MintStage.FINISHED
     */
    function advanceStage(MintStage intendedNewStage) external onlyOwner whenNotPaused {
        if (mintStage() == MintStage.FINISHED) {
            revert NoMoreMintStages();
        }
        else if (mintStage() == MintStage.UNSTARTED) {
            require(intendedNewStage == MintStage.LIVE, "Incorrect New Stage. Function May Have Been Called More Than Once");
            _mintStage = MintStage.LIVE;
            emit MintStageAdvanced(_mintStage);
        } else if (mintStage() == MintStage.LIVE) {
            require(intendedNewStage == MintStage.FINISHED, "Incorrect New Stage. Function May Have Been Called More Than Once");
            _mintStage = MintStage.FINISHED;
            emit MintStageAdvanced(_mintStage);
        } else {
            revert('Invalid MintState');
        }
    }

    /**
     * Checks that account is on the whitelist by using the given Merkle Tree
     * Proof encapsulating all hashes between the account address and the tree
     * root node.
     * @dev See @openzeppelin/contract/utils/cryptography/MerkleTree for
     * more information, and see merkletreejs for tooling and information on
     * generating Merkle Trees and proofs
     * @param _merkleProof Proving address is a part of the whitelist consisting
     * of all hashes between the given account address leaf node and the root
     * packed as a bytes32 array
     * @param account Address to check for membership on whitelist
     * @return bool true iff proof is valid and account is on the whitelist
     */
    function checkWhitelistValidity(bytes32[] memory _merkleProof, address account) public view returns (bool) {
        bytes32 leaf = keccak256(abi.encodePacked(account));
        return MerkleProof.verify(_merkleProof, _whitelistRootHash, leaf);
    }

    /**
     * Update whitelist rootHash
     * @param _newWhitelistRootHash the new root hash of the Merkle tree generated
     * from the whitelist
     *
     * Requirements:
     *
     * - The caller must the contract owner
     */
    function updateWhitelistRoot(bytes32 _newWhitelistRootHash) external onlyOwner whenNotPaused {
        if (_newWhitelistRootHash != _whitelistRootHash) {
            _whitelistRootHash = _newWhitelistRootHash;
            emit WhitelistUpdated(_newWhitelistRootHash);
        }
    }

    /**
     * Getter for the finalization status of the collection. Once finalized
     * the baseURI for the token metadata cannot be updated ever again
     * @return bool True iff collection is finalized permanently
     */
    function collectionFinalized() public view returns (bool) {
        return _collectionFinalized;
    }

    /**
     * Finalize the collection locking the baseURI for all token metadata
     * permanently
     * @dev can only be called when minting is permanently over ensuring that
     * metadata will not be locked in if new tokens can still be created
     *
     * Requirements:
     *
     * - The caller must the contract owner
     * - Minting must be finished i.e. mintStage == MintStage.FINISHED
     */
    function finalizeCollection() public onlyOwner whenMintStage(MintStage.FINISHED) whenNotPaused {
        if (!collectionRevealed) {
            revert CollectionNotRevealed();
        }
        _collectionFinalized = true;
        emit CollectionFinalized();
    }

    /**
     * Update the baseURI of the contract to the given value
     * @dev the baseURI is the common root to tall token URIs
     * @param newBaseURI the new value for the root or base URI of all token IDs
     *
     * Requirements:
     *
     * - The caller must the contract owner
     * - Minting must be finished i.e. mintStage == MintStage.FINISHED
     */
    function updateBaseURI(string memory newBaseURI) public onlyOwner whenMintStage(MintStage.FINISHED) whenNotPaused {
        if (collectionFinalized()) {
            revert InvalidUpdateToFinalizedCollection();
        } else if (keccak256(abi.encodePacked(_baseURI())) == keccak256(abi.encodePacked(newBaseURI))) {
            revert IdenticalURI();
        }
        if (!collectionRevealed) collectionRevealed = true;
        _baseURIData = newBaseURI;
        emit CollectionRevealed(newBaseURI);
    }

    /// @dev custom ERC721 extensions because base is 721A

    // ERC721 Burnable

    /**
     * @dev Burns `tokenId`. See {ERC721A-_burn}.
     *
     * Requirements:
     *
     * - The caller must own `tokenId` or be an approved operator.
     */
    function burn(uint256 tokenId) public virtual {
        _burn(tokenId, true);  // 721A takes approval check parameter which should be true for publically accessible burn fn
    }


    /**
     * @dev Withdraws ETH from Contract to `recipient` with an amount
     * `amount` is denoted in WEI
     *
     * Requirements
     *
     * - The caller must be contract owner
     */
    function withdrawAmountToAddress(address payable recipient, uint amount) external onlyOwner {
        require(amount > 0 && amount <= address(this).balance, "Invalid Amount");
        (bool success, ) = recipient.call{value: amount}("");
        require(success, "unable to withdraw, recipient may have reverted");
    }

    /**
     * @dev Withdraws ERC20 from contract to address
     *
     */
    function withdrawERC20ToAddress(address recipient, address contractAddress) external onlyOwner {
        IERC20 ERC20 = IERC20(contractAddress);
        ERC20.transferFrom(address(this), recipient, ERC20.balanceOf(address(this)));
    }

}

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

pragma solidity ^0.8.4;

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

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

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

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

    // Compiler will pack this into a single 256bit word.
    struct AddressData {
        // Realistically, 2**64-1 is more than enough.
        uint64 balance;
        // Keeps track of mint count with minimal overhead for tokenomics.
        uint64 numberMinted;
        // Keeps track of burn count with minimal overhead for tokenomics.
        uint64 numberBurned;
        // For miscellaneous variable(s) pertaining to the address
        // (e.g. number of whitelist mint slots used).
        // If there are multiple variables, please pack them into a uint64.
        uint64 aux;
    }

    // The tokenId of the next token to be minted.
    uint256 internal _currentIndex;

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

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

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

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

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

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

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

    /**
     * To change the starting tokenId, please override this function.
     */
    function _startTokenId() internal view virtual returns (uint256) {
        return 0;
    }

    /**
     * @dev Burned tokens are calculated here, use _totalMinted() if you want to count just minted tokens.
     */
    function totalSupply() public view returns (uint256) {
        // Counter underflow is impossible as _burnCounter cannot be incremented
        // more than _currentIndex - _startTokenId() times
        unchecked {
            return _currentIndex - _burnCounter - _startTokenId();
        }
    }

    /**
     * Returns the total amount of tokens minted in the contract.
     */
    function _totalMinted() internal view returns (uint256) {
        // Counter underflow is impossible as _currentIndex does not decrement,
        // and it is initialized to _startTokenId()
        unchecked {
            return _currentIndex - _startTokenId();
        }
    }

    /**
     * @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 override returns (uint256) {
        if (owner == address(0)) revert BalanceQueryForZeroAddress();
        return uint256(_addressData[owner].balance);
    }

    /**
     * Returns the number of tokens minted by `owner`.
     */
    function _numberMinted(address owner) internal view returns (uint256) {
        return uint256(_addressData[owner].numberMinted);
    }

    /**
     * Returns the number of tokens burned by or on behalf of `owner`.
     */
    function _numberBurned(address owner) internal view returns (uint256) {
        return uint256(_addressData[owner].numberBurned);
    }

    /**
     * Returns the auxillary data for `owner`. (e.g. number of whitelist mint slots used).
     */
    function _getAux(address owner) internal view returns (uint64) {
        return _addressData[owner].aux;
    }

    /**
     * Sets the auxillary data for `owner`. (e.g. number of whitelist mint slots used).
     * If there are multiple variables, please pack them into a uint64.
     */
    function _setAux(address owner, uint64 aux) internal {
        _addressData[owner].aux = aux;
    }

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

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

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

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

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

    /**
     * @dev See {IERC721Metadata-tokenURI}.
     */
    function tokenURI(uint256 tokenId) public view virtual override returns (string memory) {
        if (!_exists(tokenId)) revert URIQueryForNonexistentToken();

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

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

    /**
     * @dev See {IERC721-approve}.
     */
    function approve(address to, uint256 tokenId) public override {
        address owner = ERC721A.ownerOf(tokenId);
        if (to == owner) revert ApprovalToCurrentOwner();

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

        _approve(to, tokenId, owner);
    }

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

        return _tokenApprovals[tokenId];
    }

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

        _operatorApprovals[_msgSender()][operator] = approved;
        emit ApprovalForAll(_msgSender(), operator, approved);
    }

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

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

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

    /**
     * @dev See {IERC721-safeTransferFrom}.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) public virtual override {
        _transfer(from, to, tokenId);
        if (to.isContract() && !_checkContractOnERC721Received(from, to, tokenId, _data)) {
            revert TransferToNonERC721ReceiverImplementer();
        }
    }

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

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

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

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

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

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

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

            uint256 updatedIndex = startTokenId;
            uint256 end = updatedIndex + quantity;

            if (safe && to.isContract()) {
                do {
                    emit Transfer(address(0), to, updatedIndex);
                    if (!_checkContractOnERC721Received(address(0), to, updatedIndex++, _data)) {
                        revert TransferToNonERC721ReceiverImplementer();
                    }
                } while (updatedIndex != end);
                // Reentrancy protection
                if (_currentIndex != startTokenId) revert();
            } else {
                do {
                    emit Transfer(address(0), to, updatedIndex++);
                } while (updatedIndex != end);
            }
            _currentIndex = updatedIndex;
        }
        _afterTokenTransfers(address(0), to, startTokenId, quantity);
    }

    /**
     * @dev Transfers `tokenId` from `from` to `to`.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - `tokenId` token must be owned by `from`.
     *
     * Emits a {Transfer} event.
     */
    function _transfer(
        address from,
        address to,
        uint256 tokenId
    ) private {
        TokenOwnership memory prevOwnership = _ownershipOf(tokenId);

        if (prevOwnership.addr != from) revert TransferFromIncorrectOwner();

        bool isApprovedOrOwner = (_msgSender() == from ||
            isApprovedForAll(from, _msgSender()) ||
            getApproved(tokenId) == _msgSender());

        if (!isApprovedOrOwner) revert TransferCallerNotOwnerNorApproved();
        if (to == address(0)) revert TransferToZeroAddress();

        _beforeTokenTransfers(from, to, tokenId, 1);

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

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

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

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

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

    /**
     * @dev This is equivalent to _burn(tokenId, false)
     */
    function _burn(uint256 tokenId) internal virtual {
        _burn(tokenId, false);
    }

    /**
     * @dev Destroys `tokenId`.
     * The approval is cleared when the token is burned.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     *
     * Emits a {Transfer} event.
     */
    function _burn(uint256 tokenId, bool approvalCheck) internal virtual {
        TokenOwnership memory prevOwnership = _ownershipOf(tokenId);

        address from = prevOwnership.addr;

        if (approvalCheck) {
            bool isApprovedOrOwner = (_msgSender() == from ||
                isApprovedForAll(from, _msgSender()) ||
                getApproved(tokenId) == _msgSender());

            if (!isApprovedOrOwner) revert TransferCallerNotOwnerNorApproved();
        }

        _beforeTokenTransfers(from, address(0), tokenId, 1);

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

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

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

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

        emit Transfer(from, address(0), tokenId);
        _afterTokenTransfers(from, address(0), tokenId, 1);

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

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

    /**
     * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target 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 _checkContractOnERC721Received(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) private returns (bool) {
        try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) {
            return retval == IERC721Receiver(to).onERC721Received.selector;
        } catch (bytes memory reason) {
            if (reason.length == 0) {
                revert TransferToNonERC721ReceiverImplementer();
            } else {
                assembly {
                    revert(add(32, reason), mload(reason))
                }
            }
        }
    }

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

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

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

pragma solidity ^0.8.0;

/**
 * @dev Contract module that helps prevent reentrant calls to a function.
 *
 * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier
 * available, which can be applied to functions to make sure there are no nested
 * (reentrant) calls to them.
 *
 * Note that because there is a single `nonReentrant` guard, functions marked as
 * `nonReentrant` may not call one another. This can be worked around by making
 * those functions `private`, and then adding `external` `nonReentrant` entry
 * points to them.
 *
 * TIP: If you would like to learn more about reentrancy and alternative ways
 * to protect against it, check out our blog post
 * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul].
 */
abstract contract ReentrancyGuard {
    // Booleans are more expensive than uint256 or any type that takes up a full
    // word because each write operation emits an extra SLOAD to first read the
    // slot's contents, replace the bits taken up by the boolean, and then write
    // back. This is the compiler's defense against contract upgrades and
    // pointer aliasing, and it cannot be disabled.

    // The values being non-zero value makes deployment a bit more expensive,
    // but in exchange the refund on every call to nonReentrant will be lower in
    // amount. Since refunds are capped to a percentage of the total
    // transaction's gas, it is best to keep them low in cases like this one, to
    // increase the likelihood of the full refund coming into effect.
    uint256 private constant _NOT_ENTERED = 1;
    uint256 private constant _ENTERED = 2;

    uint256 private _status;

    constructor() {
        _status = _NOT_ENTERED;
    }

    /**
     * @dev Prevents a contract from calling itself, directly or indirectly.
     * Calling a `nonReentrant` function from another `nonReentrant`
     * function is not supported. It is possible to prevent this from happening
     * by making the `nonReentrant` function external, and making it call a
     * `private` function that does the actual work.
     */
    modifier nonReentrant() {
        // On the first call to nonReentrant, _notEntered will be true
        require(_status != _ENTERED, "ReentrancyGuard: reentrant call");

        // Any calls to nonReentrant after this point will fail
        _status = _ENTERED;

        _;

        // By storing the original value once again, a refund is triggered (see
        // https://eips.ethereum.org/EIPS/eip-2200)
        _status = _NOT_ENTERED;
    }
}

File 4 of 15 : Pausable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (security/Pausable.sol)

pragma solidity ^0.8.0;

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

/**
 * @dev Contract module which allows children to implement an emergency stop
 * mechanism that can be triggered by an authorized account.
 *
 * This module is used through inheritance. It will make available the
 * modifiers `whenNotPaused` and `whenPaused`, which can be applied to
 * the functions of your contract. Note that they will not be pausable by
 * simply including this module, only once the modifiers are put in place.
 */
abstract contract Pausable is Context {
    /**
     * @dev Emitted when the pause is triggered by `account`.
     */
    event Paused(address account);

    /**
     * @dev Emitted when the pause is lifted by `account`.
     */
    event Unpaused(address account);

    bool private _paused;

    /**
     * @dev Initializes the contract in unpaused state.
     */
    constructor() {
        _paused = false;
    }

    /**
     * @dev Returns true if the contract is paused, and false otherwise.
     */
    function paused() public view virtual returns (bool) {
        return _paused;
    }

    /**
     * @dev Modifier to make a function callable only when the contract is not paused.
     *
     * Requirements:
     *
     * - The contract must not be paused.
     */
    modifier whenNotPaused() {
        require(!paused(), "Pausable: paused");
        _;
    }

    /**
     * @dev Modifier to make a function callable only when the contract is paused.
     *
     * Requirements:
     *
     * - The contract must be paused.
     */
    modifier whenPaused() {
        require(paused(), "Pausable: not paused");
        _;
    }

    /**
     * @dev Triggers stopped state.
     *
     * Requirements:
     *
     * - The contract must not be paused.
     */
    function _pause() internal virtual whenNotPaused {
        _paused = true;
        emit Paused(_msgSender());
    }

    /**
     * @dev Returns to normal state.
     *
     * Requirements:
     *
     * - The contract must be paused.
     */
    function _unpause() internal virtual whenPaused {
        _paused = false;
        emit Unpaused(_msgSender());
    }
}

File 5 of 15 : 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 6 of 15 : 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 7 of 15 : 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 15 : Strings.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Strings.sol)

pragma solidity ^0.8.0;

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

    /**
     * @dev Converts a `uint256` to its ASCII `string` decimal representation.
     */
    function toString(uint256 value) internal pure returns (string memory) {
        // Inspired by OraclizeAPI's implementation - MIT licence
        // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol

        if (value == 0) {
            return "0";
        }
        uint256 temp = value;
        uint256 digits;
        while (temp != 0) {
            digits++;
            temp /= 10;
        }
        bytes memory buffer = new bytes(digits);
        while (value != 0) {
            digits -= 1;
            buffer[digits] = bytes1(uint8(48 + uint256(value % 10)));
            value /= 10;
        }
        return string(buffer);
    }

    /**
     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.
     */
    function toHexString(uint256 value) internal pure returns (string memory) {
        if (value == 0) {
            return "0x00";
        }
        uint256 temp = value;
        uint256 length = 0;
        while (temp != 0) {
            length++;
            temp >>= 8;
        }
        return toHexString(value, length);
    }

    /**
     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length.
     */
    function toHexString(uint256 value, uint256 length) internal pure returns (string memory) {
        bytes memory buffer = new bytes(2 * length + 2);
        buffer[0] = "0";
        buffer[1] = "x";
        for (uint256 i = 2 * length + 1; i > 1; --i) {
            buffer[i] = _HEX_SYMBOLS[value & 0xf];
            value >>= 4;
        }
        require(value == 0, "Strings: hex length insufficient");
        return string(buffer);
    }
}

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

File 11 of 15 : IERC721Metadata.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol)

pragma solidity ^0.8.0;

import "../IERC721.sol";

/**
 * @title ERC-721 Non-Fungible Token Standard, optional metadata extension
 * @dev See https://eips.ethereum.org/EIPS/eip-721
 */
interface IERC721Metadata is IERC721 {
    /**
     * @dev Returns the token collection name.
     */
    function name() external view returns (string memory);

    /**
     * @dev Returns the token collection symbol.
     */
    function symbol() external view returns (string memory);

    /**
     * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token.
     */
    function tokenURI(uint256 tokenId) external view returns (string memory);
}

File 12 of 15 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (utils/Address.sol)

pragma solidity ^0.8.1;

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

        return account.code.length > 0;
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

/**
 * @dev Provides information about the current execution context, including the
 * sender of the transaction and its data. While these are generally available
 * via msg.sender and msg.data, they should not be accessed in such a direct
 * manner, since when dealing with meta-transactions the account sending and
 * paying for execution may not be the actual sender (as far as an application
 * is concerned).
 *
 * This contract is only required for intermediate, library-like contracts.
 */
abstract contract Context {
    function _msgSender() internal view virtual returns (address) {
        return msg.sender;
    }

    function _msgData() internal view virtual returns (bytes calldata) {
        return msg.data;
    }
}

File 14 of 15 : ERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol)

pragma solidity ^0.8.0;

import "./IERC165.sol";

/**
 * @dev Implementation of the {IERC165} interface.
 *
 * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check
 * for the additional interface id that will be supported. For example:
 *
 * ```solidity
 * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
 *     return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId);
 * }
 * ```
 *
 * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation.
 */
abstract contract ERC165 is IERC165 {
    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
        return interfaceId == type(IERC165).interfaceId;
    }
}

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

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC165 standard, as defined in the
 * https://eips.ethereum.org/EIPS/eip-165[EIP].
 *
 * Implementers can declare support of contract interfaces, which can then be
 * queried by others ({ERC165Checker}).
 *
 * For an implementation, see {ERC165}.
 */
interface IERC165 {
    /**
     * @dev Returns true if this contract implements the interface defined by
     * `interfaceId`. See the corresponding
     * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section]
     * to learn more about how these ids are created.
     *
     * This function call must use less than 30 000 gas.
     */
    function supportsInterface(bytes4 interfaceId) external view returns (bool);
}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_treasury","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"ApprovalToCurrentOwner","type":"error"},{"inputs":[],"name":"ApproveToCaller","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"CollectionNotRevealed","type":"error"},{"inputs":[],"name":"IdenticalURI","type":"error"},{"inputs":[],"name":"InvalidFee","type":"error"},{"inputs":[{"internalType":"enum HypnoWorld.MintStage","name":"currentContractStage","type":"uint8"},{"internalType":"enum HypnoWorld.MintStage","name":"requiredStage","type":"uint8"}],"name":"InvalidMintingStage","type":"error"},{"inputs":[],"name":"InvalidProof","type":"error"},{"inputs":[],"name":"InvalidQuantityMint","type":"error"},{"inputs":[],"name":"InvalidUpdateToFinalizedCollection","type":"error"},{"inputs":[],"name":"InvalidWhitelistClaimQuantity","type":"error"},{"inputs":[],"name":"MaxMintPerBatchExceeded","type":"error"},{"inputs":[{"internalType":"address","name":"claimer","type":"address"}],"name":"MaxWhitelistClaims","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[],"name":"NoMoreMintStages","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"TransferCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"TransferFromIncorrectOwner","type":"error"},{"inputs":[],"name":"TransferToNonERC721ReceiverImplementer","type":"error"},{"inputs":[],"name":"TransferToZeroAddress","type":"error"},{"inputs":[],"name":"URIQueryForNonexistentToken","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[],"name":"CollectionFinalized","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"_baseTokenURI","type":"string"}],"name":"CollectionRevealed","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"enum HypnoWorld.MintStage","name":"newStage","type":"uint8"}],"name":"MintStageAdvanced","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":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","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":"account","type":"address"}],"name":"Unpaused","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bytes32","name":"newWhitelistRootHash","type":"bytes32"}],"name":"WhitelistUpdated","type":"event"},{"inputs":[{"internalType":"enum HypnoWorld.MintStage","name":"intendedNewStage","type":"uint8"}],"name":"advanceStage","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32[]","name":"_merkleProof","type":"bytes32[]"},{"internalType":"address","name":"account","type":"address"}],"name":"checkWhitelistValidity","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"collectionFinalized","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"collectionRevealed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"finalizeCollection","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"mintStage","outputs":[{"internalType":"enum HypnoWorld.MintStage","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"newBaseURI","type":"string"}],"name":"updateBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_newWhitelistRootHash","type":"bytes32"}],"name":"updateWhitelistRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"whitelistClaimed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32[]","name":"_merkleProof","type":"bytes32[]"}],"name":"whitelistMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address payable","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"withdrawAmountToAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"address","name":"contractAddress","type":"address"}],"name":"withdrawERC20ToAddress","outputs":[],"stateMutability":"nonpayable","type":"function"}]

610100604052603560a081815290620033fc60c03980516200002a91600c916020909101906200016d565b503480156200003857600080fd5b5060405162003431380380620034318339810160408190526200005b9162000213565b604080518082018252600a815269121e5c1b9bd5dbdc9b1960b21b60208083019182528351808501909452600384526212549360ea1b908401528151919291620000a8916002916200016d565b508051620000be9060039060208401906200016d565b506000805550506008805460ff19169055620000da3362000113565b600160095560601b6001600160601b031916608052600d805460ff19908116909155600f805482169055600b8054909116905562000282565b600880546001600160a01b03838116610100818102610100600160a81b031985161790945560405193909204169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b8280546200017b9062000245565b90600052602060002090601f0160209004810192826200019f5760008555620001ea565b82601f10620001ba57805160ff1916838001178555620001ea565b82800160010185558215620001ea579182015b82811115620001ea578251825591602001919060010190620001cd565b50620001f8929150620001fc565b5090565b5b80821115620001f85760008155600101620001fd565b6000602082840312156200022657600080fd5b81516001600160a01b03811681146200023e57600080fd5b9392505050565b600181811c908216806200025a57607f821691505b602082108114156200027c57634e487b7160e01b600052602260045260246000fd5b50919050565b60805160601c61315b620002a1600039600061159c015261315b6000f3fe6080604052600436106102195760003560e01c80637c234fb51161011d578063b502fbb4116100b0578063e336f4971161007f578063f150a04911610064578063f150a04914610614578063f2fde38b14610634578063f73d308a1461065457600080fd5b8063e336f497146105ab578063e985e9c5146105cb57600080fd5b8063b502fbb41461051b578063b88d4fde1461053b578063c87b56dd1461055b578063db4bec441461057b57600080fd5b8063931688cb116100ec578063931688cb146104b357806395d89b41146104d3578063a0712d68146104e8578063a22cb465146104fb57600080fd5b80637c234fb51461044c5780638456cb59146104665780638ab586761461047b5780638da5cb5b1461049057600080fd5b80634036edc2116101b057806351ed43161161017f5780636352211e116101645780636352211e146103f757806370a0823114610417578063715018a61461043757600080fd5b806351ed4316146103c75780635c975abb146103df57600080fd5b80634036edc21461034757806342842e0e1461036757806342966c68146103875780634ddab568146103a757600080fd5b806318160ddd116101ec57806318160ddd146102cf57806323b872dd146102f2578063372f657c146103125780633f4ba83a1461033257600080fd5b806301ffc9a71461021e57806306fdde0314610253578063081812fc14610275578063095ea7b3146102ad575b600080fd5b34801561022a57600080fd5b5061023e610239366004612d87565b610674565b60405190151581526020015b60405180910390f35b34801561025f57600080fd5b50610268610711565b60405161024a9190612f42565b34801561028157600080fd5b50610295610290366004612d6e565b6107a3565b6040516001600160a01b03909116815260200161024a565b3480156102b957600080fd5b506102cd6102c8366004612ac9565b610800565b005b3480156102db57600080fd5b50600154600054035b60405190815260200161024a565b3480156102fe57600080fd5b506102cd61030d366004612b2e565b6108c0565b34801561031e57600080fd5b506102cd61032d366004612c1d565b6108cb565b34801561033e57600080fd5b506102cd610a6c565b34801561035357600080fd5b506102cd610362366004612af5565b610ad6565b34801561037357600080fd5b506102cd610382366004612b2e565b610c61565b34801561039357600080fd5b506102cd6103a2366004612d6e565b610c7c565b3480156103b357600080fd5b506102cd6103c2366004612dc1565b610c8a565b3480156103d357600080fd5b50600f5460ff1661023e565b3480156103eb57600080fd5b5060085460ff1661023e565b34801561040357600080fd5b50610295610412366004612d6e565b610fcb565b34801561042357600080fd5b506102e4610432366004612aac565b610fdd565b34801561044357600080fd5b506102cd611045565b34801561045857600080fd5b50600b5461023e9060ff1681565b34801561047257600080fd5b506102cd6110af565b34801561048757600080fd5b506102cd611117565b34801561049c57600080fd5b5060085461010090046001600160a01b0316610295565b3480156104bf57600080fd5b506102cd6104ce366004612de2565b61123d565b3480156104df57600080fd5b5061026861141f565b6102cd6104f6366004612d6e565b61142e565b34801561050757600080fd5b506102cd610516366004612bef565b6115cc565b34801561052757600080fd5b5061023e610536366004612c92565b61167b565b34801561054757600080fd5b506102cd610556366004612b6f565b6116df565b34801561056757600080fd5b50610268610576366004612d6e565b61172a565b34801561058757600080fd5b5061023e610596366004612aac565b600a6020526000908152604090205460ff1681565b3480156105b757600080fd5b506102cd6105c6366004612ac9565b6117ba565b3480156105d757600080fd5b5061023e6105e6366004612af5565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b34801561062057600080fd5b50600d5460ff1660405161024a9190612f19565b34801561064057600080fd5b506102cd61064f366004612aac565b61193f565b34801561066057600080fd5b506102cd61066f366004612d6e565b611a24565b60006001600160e01b031982167f80ac58cd0000000000000000000000000000000000000000000000000000000014806106d757506001600160e01b031982167f5b5e139f00000000000000000000000000000000000000000000000000000000145b8061070b57507f01ffc9a7000000000000000000000000000000000000000000000000000000006001600160e01b03198316145b92915050565b60606002805461072090613014565b80601f016020809104026020016040519081016040528092919081815260200182805461074c90613014565b80156107995780601f1061076e57610100808354040283529160200191610799565b820191906000526020600020905b81548152906001019060200180831161077c57829003601f168201915b5050505050905090565b60006107ae82611b08565b6107e4576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b506000908152600660205260409020546001600160a01b031690565b600061080b82610fcb565b9050806001600160a01b0316836001600160a01b03161415610859576040517f943f7b8c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b336001600160a01b03821614801590610879575061087781336105e6565b155b156108b0576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6108bb838383611b37565b505050565b6108bb838383611bab565b600260095414156109235760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064015b60405180910390fd5b600260095560085460ff161561096e5760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b604482015260640161091a565b600161097981611df4565b336000908152600a602052604090205460ff16156109c5576040517f85ea1e4f00000000000000000000000000000000000000000000000000000000815233600482015260240161091a565b610a058383808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152506105369250611b33915050565b610a3b576040517f09bde33900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b336000818152600a60205260409020805460ff19166001908117909155610a629190611e5d565b5050600160095550565b6008546001600160a01b03610100909104163314610acc5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161091a565b610ad4611e7b565b565b6008546001600160a01b03610100909104163314610b365760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161091a565b6040517f70a08231000000000000000000000000000000000000000000000000000000008152306004820181905282916001600160a01b038316916323b872dd91869084906370a082319060240160206040518083038186803b158015610b9c57600080fd5b505afa158015610bb0573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610bd49190612e2b565b6040516001600160e01b031960e086901b1681526001600160a01b0393841660048201529290911660248301526044820152606401602060405180830381600087803b158015610c2357600080fd5b505af1158015610c37573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c5b9190612d51565b50505050565b6108bb838383604051806020016040528060008152506116df565b610c87816001611f17565b50565b6008546001600160a01b03610100909104163314610cea5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161091a565b60085460ff1615610d305760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b604482015260640161091a565b6002600d5460ff166002811115610d4957610d496130aa565b1415610d81576040517f22e88da000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000600d5460ff166002811115610d9a57610d9a6130aa565b1415610ea3576001816002811115610db457610db46130aa565b14610e4d5760405162461bcd60e51b815260206004820152604160248201527f496e636f7272656374204e65772053746167652e2046756e6374696f6e204d6160448201527f792048617665204265656e2043616c6c6564204d6f7265205468616e204f6e6360648201527f6500000000000000000000000000000000000000000000000000000000000000608482015260a40161091a565b600d80546001919060ff191682805b0217905550600d546040517f1db9270f0d62eeca3aa5f60a899eadd3ad9ad74378ae8c8820d3a9677dc55d7391610e989160ff90911690612f19565b60405180910390a150565b6001600d5460ff166002811115610ebc57610ebc6130aa565b1415610f83576002816002811115610ed657610ed66130aa565b14610f6f5760405162461bcd60e51b815260206004820152604160248201527f496e636f7272656374204e65772053746167652e2046756e6374696f6e204d6160448201527f792048617665204265656e2043616c6c6564204d6f7265205468616e204f6e6360648201527f6500000000000000000000000000000000000000000000000000000000000000608482015260a40161091a565b600d80546002919060ff1916600183610e5c565b60405162461bcd60e51b815260206004820152601160248201527f496e76616c6964204d696e745374617465000000000000000000000000000000604482015260640161091a565b6000610fd682612134565b5192915050565b60006001600160a01b03821661101f576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b506001600160a01b031660009081526005602052604090205467ffffffffffffffff1690565b6008546001600160a01b036101009091041633146110a55760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161091a565b610ad46000612269565b6008546001600160a01b0361010090910416331461110f5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161091a565b610ad46122da565b6008546001600160a01b036101009091041633146111775760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161091a565b600261118281611df4565b60085460ff16156111c85760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b604482015260640161091a565b600b5460ff16611204576040517f847b198f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600f805460ff191660011790556040517f4cddd14eeae29a1a022a30835f425ca4d15a366166c760c1fad9ada2f4cf3ab690600090a150565b6008546001600160a01b0361010090910416331461129d5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161091a565b60026112a881611df4565b60085460ff16156112ee5760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b604482015260640161091a565b600f5460ff161561132b576040517ff4c6977300000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8160405160200161133c9190612e92565b6040516020818303038152906040528051906020012061135a612355565b60405160200161136a9190612e92565b6040516020818303038152906040528051906020012014156113b8576040517f93d4d44600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600b5460ff166113d057600b805460ff191660011790555b81516113e390600c9060208501906129ab565b507f09aeffebf08fc44a38a139bbfafcc95e27b04cc8690c84246a34c2bd67f3d9b9826040516114139190612f42565b60405180910390a15050565b60606003805461072090613014565b600260095414156114815760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015260640161091a565b600260095560085460ff16156114cc5760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b604482015260640161091a565b60016114d781611df4565b60006114ea66b1a2bc2ec5000084612fb2565b90506005831115611527576040517fe20d23ea00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8261155e576040517f958dea4100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b803414611597576040517f58d620b300000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6115c17f000000000000000000000000000000000000000000000000000000000000000082612364565b50610a623384611e5d565b6001600160a01b03821633141561160f576040517fb06307db00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6040517fffffffffffffffffffffffffffffffffffffffff000000000000000000000000606083901b16602082015260009081906034016040516020818303038152906040528051906020012090506116d784600e548361244e565b949350505050565b6116ea848484611bab565b6001600160a01b0383163b1515801561170c575061170a84848484612464565b155b15610c5b576040516368d2bf6b60e11b815260040160405180910390fd5b606061173582611b08565b61176b576040517fa14c4b5000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000611775612355565b600b5490915060ff166117885792915050565b806117928461258d565b6040516020016117a3929190612eae565b604051602081830303815290604052915050919050565b6008546001600160a01b0361010090910416331461181a5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161091a565b60008111801561182a5750478111155b6118765760405162461bcd60e51b815260206004820152600e60248201527f496e76616c696420416d6f756e74000000000000000000000000000000000000604482015260640161091a565b6000826001600160a01b03168260405160006040518083038185875af1925050503d80600081146118c3576040519150601f19603f3d011682016040523d82523d6000602084013e6118c8565b606091505b50509050806108bb5760405162461bcd60e51b815260206004820152602f60248201527f756e61626c6520746f2077697468647261772c20726563697069656e74206d6160448201527f7920686176652072657665727465640000000000000000000000000000000000606482015260840161091a565b6008546001600160a01b0361010090910416331461199f5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161091a565b6001600160a01b038116611a1b5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f6464726573730000000000000000000000000000000000000000000000000000606482015260840161091a565b610c8781612269565b6008546001600160a01b03610100909104163314611a845760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161091a565b60085460ff1615611aca5760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b604482015260640161091a565b600e548114610c8757600e8190556040518181527f136c0469109f45a2bf2f764309926b484a507d7645843502b6a6a68b2e5dc0eb90602001610e98565b600080548210801561070b575050600090815260046020526040902054600160e01b900460ff161590565b3390565b60008281526006602052604080822080547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b6000611bb682612134565b9050836001600160a01b031681600001516001600160a01b031614611c07576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000336001600160a01b0386161480611c255750611c2585336105e6565b80611c40575033611c35846107a3565b6001600160a01b0316145b905080611c79576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6001600160a01b038416611cb9576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b611cc685858560016126bf565b611cd260008487611b37565b6001600160a01b038581166000908152600560209081526040808320805467ffffffffffffffff1980821667ffffffffffffffff92831660001901831617909255898616808652838620805493841693831660019081018416949094179055898652600490945282852080546001600160e01b031916909417600160a01b42909216919091021783558701808452922080549193909116611da8576000548214611da8578054602086015167ffffffffffffffff16600160a01b026001600160e01b03199091166001600160a01b038a16171781555b50505082846001600160a01b0316866001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45b5050505050565b806002811115611e0657611e066130aa565b600d5460ff166002811115611e1d57611e1d6130aa565b14610c8757600d5460ff16816040517f3f1cc45f00000000000000000000000000000000000000000000000000000000815260040161091a929190612f27565b611e7782826040518060200160405280600081525061270a565b5050565b60085460ff16611ecd5760405162461bcd60e51b815260206004820152601460248201527f5061757361626c653a206e6f7420706175736564000000000000000000000000604482015260640161091a565b6008805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b6000611f2283612134565b80519091508215611fa1576000336001600160a01b0383161480611f4b5750611f4b82336105e6565b80611f66575033611f5b866107a3565b6001600160a01b0316145b905080611f9f576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b505b611faf8160008660016126bf565b611fbb60008583611b37565b6001600160a01b038082166000818152600560209081526040808320805470010000000000000000000000000000000060001967ffffffffffffffff80841691909101811667ffffffffffffffff19841681178390048216600190810183169093027fffffffffffffffff0000000000000000ffffffffffffffff0000000000000000909416179290921783558b8652600490945282852080547fffffff00ffffffffffffffffffffffffffffffffffffffffffffffffffffffff42909316600160a01b026001600160e01b03199091169097179690961716600160e01b1785559189018084529220805491949091166120ea5760005482146120ea578054602087015167ffffffffffffffff16600160a01b026001600160e01b03199091166001600160a01b038716171781555b5050604051869250600091506001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a4505060018054810190555050565b60408051606081018252600080825260208201819052918101919091528160005481101561223757600081815260046020908152604091829020825160608101845290546001600160a01b0381168252600160a01b810467ffffffffffffffff1692820192909252600160e01b90910460ff161515918101829052906122355780516001600160a01b0316156121cb579392505050565b5060001901600081815260046020908152604091829020825160608101845290546001600160a01b038116808352600160a01b820467ffffffffffffffff1693830193909352600160e01b900460ff1615159281019290925215612230579392505050565b6121cb565b505b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600880546001600160a01b038381166101008181027fffffffffffffffffffffff0000000000000000000000000000000000000000ff85161790945560405193909204169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60085460ff16156123205760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b604482015260640161091a565b6008805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258611efa3390565b6060600c805461072090613014565b60408051600080825260208201928390529182916001600160a01b03861691859161238e91612e92565b60006040518083038185875af1925050503d80600081146123cb576040519150601f19603f3d011682016040523d82523d6000602084013e6123d0565b606091505b50509050806124475760405162461bcd60e51b815260206004820152603360248201527f556e61626c6520746f205472616e73666572204554482c20526563697069656e60448201527f74204d6179204861766520526576657274656400000000000000000000000000606482015260840161091a565b9392505050565b60008261245b8584612717565b14949350505050565b6040517f150b7a020000000000000000000000000000000000000000000000000000000081526000906001600160a01b0385169063150b7a02906124b2903390899088908890600401612edd565b602060405180830381600087803b1580156124cc57600080fd5b505af19250505080156124fc575060408051601f3d908101601f191682019092526124f991810190612da4565b60015b612557573d80801561252a576040519150601f19603f3d011682016040523d82523d6000602084013e61252f565b606091505b50805161254f576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b0319167f150b7a0200000000000000000000000000000000000000000000000000000000149050949350505050565b6060816125cd57505060408051808201909152600181527f3000000000000000000000000000000000000000000000000000000000000000602082015290565b8160005b81156125f757806125e18161304f565b91506125f09050600a83612f9e565b91506125d1565b60008167ffffffffffffffff811115612612576126126130d6565b6040519080825280601f01601f19166020018201604052801561263c576020820181803683370190505b5090505b84156116d757612651600183612fd1565b915061265e600a8661306a565b612669906030612f86565b60f81b81838151811061267e5761267e6130c0565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053506126b8600a86612f9e565b9450612640565b60085460ff16156127055760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b604482015260640161091a565b610c5b565b6108bb838383600161278b565b600081815b8451811015612783576000858281518110612739576127396130c0565b6020026020010151905080831161275f5760008381526020829052604090209250612770565b600081815260208490526040902092505b508061277b8161304f565b91505061271c565b509392505050565b6000546001600160a01b0385166127ce576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b83612805576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61281260008683876126bf565b6001600160a01b038516600081815260056020908152604080832080547fffffffffffffffffffffffffffffffff00000000000000000000000000000000811667ffffffffffffffff8083168c0181169182176801000000000000000067ffffffffffffffff1990941690921783900481168c01811690920217909155858452600490925290912080546001600160e01b031916909217600160a01b4290921691909102179055808085018380156128d357506001600160a01b0387163b15155b1561295c575b60405182906001600160a01b038916906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a46129246000888480600101955088612464565b612941576040516368d2bf6b60e11b815260040160405180910390fd5b808214156128d957826000541461295757600080fd5b6129a2565b5b6040516001830192906001600160a01b038916906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a48082141561295d575b50600055611ded565b8280546129b790613014565b90600052602060002090601f0160209004810192826129d95760008555612a1f565b82601f106129f257805160ff1916838001178555612a1f565b82800160010185558215612a1f579182015b82811115612a1f578251825591602001919060010190612a04565b50612a2b929150612a2f565b5090565b5b80821115612a2b5760008155600101612a30565b600067ffffffffffffffff831115612a5e57612a5e6130d6565b612a716020601f19601f86011601612f55565b9050828152838383011115612a8557600080fd5b828260208301376000602084830101529392505050565b8035612aa7816130ec565b919050565b600060208284031215612abe57600080fd5b8135612447816130ec565b60008060408385031215612adc57600080fd5b8235612ae7816130ec565b946020939093013593505050565b60008060408385031215612b0857600080fd5b8235612b13816130ec565b91506020830135612b23816130ec565b809150509250929050565b600080600060608486031215612b4357600080fd5b8335612b4e816130ec565b92506020840135612b5e816130ec565b929592945050506040919091013590565b60008060008060808587031215612b8557600080fd5b8435612b90816130ec565b93506020850135612ba0816130ec565b925060408501359150606085013567ffffffffffffffff811115612bc357600080fd5b8501601f81018713612bd457600080fd5b612be387823560208401612a44565b91505092959194509250565b60008060408385031215612c0257600080fd5b8235612c0d816130ec565b91506020830135612b2381613101565b60008060208385031215612c3057600080fd5b823567ffffffffffffffff80821115612c4857600080fd5b818501915085601f830112612c5c57600080fd5b813581811115612c6b57600080fd5b8660208260051b8501011115612c8057600080fd5b60209290920196919550909350505050565b60008060408385031215612ca557600080fd5b823567ffffffffffffffff80821115612cbd57600080fd5b818501915085601f830112612cd157600080fd5b8135602082821115612ce557612ce56130d6565b8160051b9250612cf6818401612f55565b8281528181019085830185870184018b1015612d1157600080fd5b600096505b84871015612d34578035835260019690960195918301918301612d16565b509650612d449050878201612a9c565b9450505050509250929050565b600060208284031215612d6357600080fd5b815161244781613101565b600060208284031215612d8057600080fd5b5035919050565b600060208284031215612d9957600080fd5b81356124478161310f565b600060208284031215612db657600080fd5b81516124478161310f565b600060208284031215612dd357600080fd5b81356003811061244757600080fd5b600060208284031215612df457600080fd5b813567ffffffffffffffff811115612e0b57600080fd5b8201601f81018413612e1c57600080fd5b6116d784823560208401612a44565b600060208284031215612e3d57600080fd5b5051919050565b60008151808452612e5c816020860160208601612fe8565b601f01601f19169290920160200192915050565b60038110612e8e57634e487b7160e01b600052602160045260246000fd5b9052565b60008251612ea4818460208701612fe8565b9190910192915050565b60008351612ec0818460208801612fe8565b835190830190612ed4818360208801612fe8565b01949350505050565b60006001600160a01b03808716835280861660208401525083604083015260806060830152612f0f6080830184612e44565b9695505050505050565b6020810161070b8284612e70565b60408101612f358285612e70565b6124476020830184612e70565b6020815260006124476020830184612e44565b604051601f8201601f1916810167ffffffffffffffff81118282101715612f7e57612f7e6130d6565b604052919050565b60008219821115612f9957612f9961307e565b500190565b600082612fad57612fad613094565b500490565b6000816000190483118215151615612fcc57612fcc61307e565b500290565b600082821015612fe357612fe361307e565b500390565b60005b83811015613003578181015183820152602001612feb565b83811115610c5b5750506000910152565b600181811c9082168061302857607f821691505b6020821081141561304957634e487b7160e01b600052602260045260246000fd5b50919050565b60006000198214156130635761306361307e565b5060010190565b60008261307957613079613094565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052602160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b0381168114610c8757600080fd5b8015158114610c8757600080fd5b6001600160e01b031981168114610c8757600080fdfea2646970667358221220df0eb915ebe1f596596567335a6ade86326d468e549118686851ba0c01a194ea64736f6c63430008070033697066733a2f2f516d5838594773365646505569646d533373384754394654394639417137544e58344d704d475038687a4550634500000000000000000000000021b966c1d9430a968b82660a0a5b11d032c5c3db

Deployed Bytecode

0x6080604052600436106102195760003560e01c80637c234fb51161011d578063b502fbb4116100b0578063e336f4971161007f578063f150a04911610064578063f150a04914610614578063f2fde38b14610634578063f73d308a1461065457600080fd5b8063e336f497146105ab578063e985e9c5146105cb57600080fd5b8063b502fbb41461051b578063b88d4fde1461053b578063c87b56dd1461055b578063db4bec441461057b57600080fd5b8063931688cb116100ec578063931688cb146104b357806395d89b41146104d3578063a0712d68146104e8578063a22cb465146104fb57600080fd5b80637c234fb51461044c5780638456cb59146104665780638ab586761461047b5780638da5cb5b1461049057600080fd5b80634036edc2116101b057806351ed43161161017f5780636352211e116101645780636352211e146103f757806370a0823114610417578063715018a61461043757600080fd5b806351ed4316146103c75780635c975abb146103df57600080fd5b80634036edc21461034757806342842e0e1461036757806342966c68146103875780634ddab568146103a757600080fd5b806318160ddd116101ec57806318160ddd146102cf57806323b872dd146102f2578063372f657c146103125780633f4ba83a1461033257600080fd5b806301ffc9a71461021e57806306fdde0314610253578063081812fc14610275578063095ea7b3146102ad575b600080fd5b34801561022a57600080fd5b5061023e610239366004612d87565b610674565b60405190151581526020015b60405180910390f35b34801561025f57600080fd5b50610268610711565b60405161024a9190612f42565b34801561028157600080fd5b50610295610290366004612d6e565b6107a3565b6040516001600160a01b03909116815260200161024a565b3480156102b957600080fd5b506102cd6102c8366004612ac9565b610800565b005b3480156102db57600080fd5b50600154600054035b60405190815260200161024a565b3480156102fe57600080fd5b506102cd61030d366004612b2e565b6108c0565b34801561031e57600080fd5b506102cd61032d366004612c1d565b6108cb565b34801561033e57600080fd5b506102cd610a6c565b34801561035357600080fd5b506102cd610362366004612af5565b610ad6565b34801561037357600080fd5b506102cd610382366004612b2e565b610c61565b34801561039357600080fd5b506102cd6103a2366004612d6e565b610c7c565b3480156103b357600080fd5b506102cd6103c2366004612dc1565b610c8a565b3480156103d357600080fd5b50600f5460ff1661023e565b3480156103eb57600080fd5b5060085460ff1661023e565b34801561040357600080fd5b50610295610412366004612d6e565b610fcb565b34801561042357600080fd5b506102e4610432366004612aac565b610fdd565b34801561044357600080fd5b506102cd611045565b34801561045857600080fd5b50600b5461023e9060ff1681565b34801561047257600080fd5b506102cd6110af565b34801561048757600080fd5b506102cd611117565b34801561049c57600080fd5b5060085461010090046001600160a01b0316610295565b3480156104bf57600080fd5b506102cd6104ce366004612de2565b61123d565b3480156104df57600080fd5b5061026861141f565b6102cd6104f6366004612d6e565b61142e565b34801561050757600080fd5b506102cd610516366004612bef565b6115cc565b34801561052757600080fd5b5061023e610536366004612c92565b61167b565b34801561054757600080fd5b506102cd610556366004612b6f565b6116df565b34801561056757600080fd5b50610268610576366004612d6e565b61172a565b34801561058757600080fd5b5061023e610596366004612aac565b600a6020526000908152604090205460ff1681565b3480156105b757600080fd5b506102cd6105c6366004612ac9565b6117ba565b3480156105d757600080fd5b5061023e6105e6366004612af5565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b34801561062057600080fd5b50600d5460ff1660405161024a9190612f19565b34801561064057600080fd5b506102cd61064f366004612aac565b61193f565b34801561066057600080fd5b506102cd61066f366004612d6e565b611a24565b60006001600160e01b031982167f80ac58cd0000000000000000000000000000000000000000000000000000000014806106d757506001600160e01b031982167f5b5e139f00000000000000000000000000000000000000000000000000000000145b8061070b57507f01ffc9a7000000000000000000000000000000000000000000000000000000006001600160e01b03198316145b92915050565b60606002805461072090613014565b80601f016020809104026020016040519081016040528092919081815260200182805461074c90613014565b80156107995780601f1061076e57610100808354040283529160200191610799565b820191906000526020600020905b81548152906001019060200180831161077c57829003601f168201915b5050505050905090565b60006107ae82611b08565b6107e4576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b506000908152600660205260409020546001600160a01b031690565b600061080b82610fcb565b9050806001600160a01b0316836001600160a01b03161415610859576040517f943f7b8c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b336001600160a01b03821614801590610879575061087781336105e6565b155b156108b0576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6108bb838383611b37565b505050565b6108bb838383611bab565b600260095414156109235760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064015b60405180910390fd5b600260095560085460ff161561096e5760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b604482015260640161091a565b600161097981611df4565b336000908152600a602052604090205460ff16156109c5576040517f85ea1e4f00000000000000000000000000000000000000000000000000000000815233600482015260240161091a565b610a058383808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152506105369250611b33915050565b610a3b576040517f09bde33900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b336000818152600a60205260409020805460ff19166001908117909155610a629190611e5d565b5050600160095550565b6008546001600160a01b03610100909104163314610acc5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161091a565b610ad4611e7b565b565b6008546001600160a01b03610100909104163314610b365760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161091a565b6040517f70a08231000000000000000000000000000000000000000000000000000000008152306004820181905282916001600160a01b038316916323b872dd91869084906370a082319060240160206040518083038186803b158015610b9c57600080fd5b505afa158015610bb0573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610bd49190612e2b565b6040516001600160e01b031960e086901b1681526001600160a01b0393841660048201529290911660248301526044820152606401602060405180830381600087803b158015610c2357600080fd5b505af1158015610c37573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c5b9190612d51565b50505050565b6108bb838383604051806020016040528060008152506116df565b610c87816001611f17565b50565b6008546001600160a01b03610100909104163314610cea5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161091a565b60085460ff1615610d305760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b604482015260640161091a565b6002600d5460ff166002811115610d4957610d496130aa565b1415610d81576040517f22e88da000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000600d5460ff166002811115610d9a57610d9a6130aa565b1415610ea3576001816002811115610db457610db46130aa565b14610e4d5760405162461bcd60e51b815260206004820152604160248201527f496e636f7272656374204e65772053746167652e2046756e6374696f6e204d6160448201527f792048617665204265656e2043616c6c6564204d6f7265205468616e204f6e6360648201527f6500000000000000000000000000000000000000000000000000000000000000608482015260a40161091a565b600d80546001919060ff191682805b0217905550600d546040517f1db9270f0d62eeca3aa5f60a899eadd3ad9ad74378ae8c8820d3a9677dc55d7391610e989160ff90911690612f19565b60405180910390a150565b6001600d5460ff166002811115610ebc57610ebc6130aa565b1415610f83576002816002811115610ed657610ed66130aa565b14610f6f5760405162461bcd60e51b815260206004820152604160248201527f496e636f7272656374204e65772053746167652e2046756e6374696f6e204d6160448201527f792048617665204265656e2043616c6c6564204d6f7265205468616e204f6e6360648201527f6500000000000000000000000000000000000000000000000000000000000000608482015260a40161091a565b600d80546002919060ff1916600183610e5c565b60405162461bcd60e51b815260206004820152601160248201527f496e76616c6964204d696e745374617465000000000000000000000000000000604482015260640161091a565b6000610fd682612134565b5192915050565b60006001600160a01b03821661101f576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b506001600160a01b031660009081526005602052604090205467ffffffffffffffff1690565b6008546001600160a01b036101009091041633146110a55760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161091a565b610ad46000612269565b6008546001600160a01b0361010090910416331461110f5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161091a565b610ad46122da565b6008546001600160a01b036101009091041633146111775760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161091a565b600261118281611df4565b60085460ff16156111c85760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b604482015260640161091a565b600b5460ff16611204576040517f847b198f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600f805460ff191660011790556040517f4cddd14eeae29a1a022a30835f425ca4d15a366166c760c1fad9ada2f4cf3ab690600090a150565b6008546001600160a01b0361010090910416331461129d5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161091a565b60026112a881611df4565b60085460ff16156112ee5760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b604482015260640161091a565b600f5460ff161561132b576040517ff4c6977300000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8160405160200161133c9190612e92565b6040516020818303038152906040528051906020012061135a612355565b60405160200161136a9190612e92565b6040516020818303038152906040528051906020012014156113b8576040517f93d4d44600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600b5460ff166113d057600b805460ff191660011790555b81516113e390600c9060208501906129ab565b507f09aeffebf08fc44a38a139bbfafcc95e27b04cc8690c84246a34c2bd67f3d9b9826040516114139190612f42565b60405180910390a15050565b60606003805461072090613014565b600260095414156114815760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015260640161091a565b600260095560085460ff16156114cc5760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b604482015260640161091a565b60016114d781611df4565b60006114ea66b1a2bc2ec5000084612fb2565b90506005831115611527576040517fe20d23ea00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8261155e576040517f958dea4100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b803414611597576040517f58d620b300000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6115c17f00000000000000000000000021b966c1d9430a968b82660a0a5b11d032c5c3db82612364565b50610a623384611e5d565b6001600160a01b03821633141561160f576040517fb06307db00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6040517fffffffffffffffffffffffffffffffffffffffff000000000000000000000000606083901b16602082015260009081906034016040516020818303038152906040528051906020012090506116d784600e548361244e565b949350505050565b6116ea848484611bab565b6001600160a01b0383163b1515801561170c575061170a84848484612464565b155b15610c5b576040516368d2bf6b60e11b815260040160405180910390fd5b606061173582611b08565b61176b576040517fa14c4b5000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000611775612355565b600b5490915060ff166117885792915050565b806117928461258d565b6040516020016117a3929190612eae565b604051602081830303815290604052915050919050565b6008546001600160a01b0361010090910416331461181a5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161091a565b60008111801561182a5750478111155b6118765760405162461bcd60e51b815260206004820152600e60248201527f496e76616c696420416d6f756e74000000000000000000000000000000000000604482015260640161091a565b6000826001600160a01b03168260405160006040518083038185875af1925050503d80600081146118c3576040519150601f19603f3d011682016040523d82523d6000602084013e6118c8565b606091505b50509050806108bb5760405162461bcd60e51b815260206004820152602f60248201527f756e61626c6520746f2077697468647261772c20726563697069656e74206d6160448201527f7920686176652072657665727465640000000000000000000000000000000000606482015260840161091a565b6008546001600160a01b0361010090910416331461199f5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161091a565b6001600160a01b038116611a1b5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f6464726573730000000000000000000000000000000000000000000000000000606482015260840161091a565b610c8781612269565b6008546001600160a01b03610100909104163314611a845760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161091a565b60085460ff1615611aca5760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b604482015260640161091a565b600e548114610c8757600e8190556040518181527f136c0469109f45a2bf2f764309926b484a507d7645843502b6a6a68b2e5dc0eb90602001610e98565b600080548210801561070b575050600090815260046020526040902054600160e01b900460ff161590565b3390565b60008281526006602052604080822080547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b6000611bb682612134565b9050836001600160a01b031681600001516001600160a01b031614611c07576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000336001600160a01b0386161480611c255750611c2585336105e6565b80611c40575033611c35846107a3565b6001600160a01b0316145b905080611c79576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6001600160a01b038416611cb9576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b611cc685858560016126bf565b611cd260008487611b37565b6001600160a01b038581166000908152600560209081526040808320805467ffffffffffffffff1980821667ffffffffffffffff92831660001901831617909255898616808652838620805493841693831660019081018416949094179055898652600490945282852080546001600160e01b031916909417600160a01b42909216919091021783558701808452922080549193909116611da8576000548214611da8578054602086015167ffffffffffffffff16600160a01b026001600160e01b03199091166001600160a01b038a16171781555b50505082846001600160a01b0316866001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45b5050505050565b806002811115611e0657611e066130aa565b600d5460ff166002811115611e1d57611e1d6130aa565b14610c8757600d5460ff16816040517f3f1cc45f00000000000000000000000000000000000000000000000000000000815260040161091a929190612f27565b611e7782826040518060200160405280600081525061270a565b5050565b60085460ff16611ecd5760405162461bcd60e51b815260206004820152601460248201527f5061757361626c653a206e6f7420706175736564000000000000000000000000604482015260640161091a565b6008805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b6000611f2283612134565b80519091508215611fa1576000336001600160a01b0383161480611f4b5750611f4b82336105e6565b80611f66575033611f5b866107a3565b6001600160a01b0316145b905080611f9f576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b505b611faf8160008660016126bf565b611fbb60008583611b37565b6001600160a01b038082166000818152600560209081526040808320805470010000000000000000000000000000000060001967ffffffffffffffff80841691909101811667ffffffffffffffff19841681178390048216600190810183169093027fffffffffffffffff0000000000000000ffffffffffffffff0000000000000000909416179290921783558b8652600490945282852080547fffffff00ffffffffffffffffffffffffffffffffffffffffffffffffffffffff42909316600160a01b026001600160e01b03199091169097179690961716600160e01b1785559189018084529220805491949091166120ea5760005482146120ea578054602087015167ffffffffffffffff16600160a01b026001600160e01b03199091166001600160a01b038716171781555b5050604051869250600091506001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a4505060018054810190555050565b60408051606081018252600080825260208201819052918101919091528160005481101561223757600081815260046020908152604091829020825160608101845290546001600160a01b0381168252600160a01b810467ffffffffffffffff1692820192909252600160e01b90910460ff161515918101829052906122355780516001600160a01b0316156121cb579392505050565b5060001901600081815260046020908152604091829020825160608101845290546001600160a01b038116808352600160a01b820467ffffffffffffffff1693830193909352600160e01b900460ff1615159281019290925215612230579392505050565b6121cb565b505b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600880546001600160a01b038381166101008181027fffffffffffffffffffffff0000000000000000000000000000000000000000ff85161790945560405193909204169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60085460ff16156123205760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b604482015260640161091a565b6008805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258611efa3390565b6060600c805461072090613014565b60408051600080825260208201928390529182916001600160a01b03861691859161238e91612e92565b60006040518083038185875af1925050503d80600081146123cb576040519150601f19603f3d011682016040523d82523d6000602084013e6123d0565b606091505b50509050806124475760405162461bcd60e51b815260206004820152603360248201527f556e61626c6520746f205472616e73666572204554482c20526563697069656e60448201527f74204d6179204861766520526576657274656400000000000000000000000000606482015260840161091a565b9392505050565b60008261245b8584612717565b14949350505050565b6040517f150b7a020000000000000000000000000000000000000000000000000000000081526000906001600160a01b0385169063150b7a02906124b2903390899088908890600401612edd565b602060405180830381600087803b1580156124cc57600080fd5b505af19250505080156124fc575060408051601f3d908101601f191682019092526124f991810190612da4565b60015b612557573d80801561252a576040519150601f19603f3d011682016040523d82523d6000602084013e61252f565b606091505b50805161254f576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b0319167f150b7a0200000000000000000000000000000000000000000000000000000000149050949350505050565b6060816125cd57505060408051808201909152600181527f3000000000000000000000000000000000000000000000000000000000000000602082015290565b8160005b81156125f757806125e18161304f565b91506125f09050600a83612f9e565b91506125d1565b60008167ffffffffffffffff811115612612576126126130d6565b6040519080825280601f01601f19166020018201604052801561263c576020820181803683370190505b5090505b84156116d757612651600183612fd1565b915061265e600a8661306a565b612669906030612f86565b60f81b81838151811061267e5761267e6130c0565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053506126b8600a86612f9e565b9450612640565b60085460ff16156127055760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b604482015260640161091a565b610c5b565b6108bb838383600161278b565b600081815b8451811015612783576000858281518110612739576127396130c0565b6020026020010151905080831161275f5760008381526020829052604090209250612770565b600081815260208490526040902092505b508061277b8161304f565b91505061271c565b509392505050565b6000546001600160a01b0385166127ce576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b83612805576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61281260008683876126bf565b6001600160a01b038516600081815260056020908152604080832080547fffffffffffffffffffffffffffffffff00000000000000000000000000000000811667ffffffffffffffff8083168c0181169182176801000000000000000067ffffffffffffffff1990941690921783900481168c01811690920217909155858452600490925290912080546001600160e01b031916909217600160a01b4290921691909102179055808085018380156128d357506001600160a01b0387163b15155b1561295c575b60405182906001600160a01b038916906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a46129246000888480600101955088612464565b612941576040516368d2bf6b60e11b815260040160405180910390fd5b808214156128d957826000541461295757600080fd5b6129a2565b5b6040516001830192906001600160a01b038916906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a48082141561295d575b50600055611ded565b8280546129b790613014565b90600052602060002090601f0160209004810192826129d95760008555612a1f565b82601f106129f257805160ff1916838001178555612a1f565b82800160010185558215612a1f579182015b82811115612a1f578251825591602001919060010190612a04565b50612a2b929150612a2f565b5090565b5b80821115612a2b5760008155600101612a30565b600067ffffffffffffffff831115612a5e57612a5e6130d6565b612a716020601f19601f86011601612f55565b9050828152838383011115612a8557600080fd5b828260208301376000602084830101529392505050565b8035612aa7816130ec565b919050565b600060208284031215612abe57600080fd5b8135612447816130ec565b60008060408385031215612adc57600080fd5b8235612ae7816130ec565b946020939093013593505050565b60008060408385031215612b0857600080fd5b8235612b13816130ec565b91506020830135612b23816130ec565b809150509250929050565b600080600060608486031215612b4357600080fd5b8335612b4e816130ec565b92506020840135612b5e816130ec565b929592945050506040919091013590565b60008060008060808587031215612b8557600080fd5b8435612b90816130ec565b93506020850135612ba0816130ec565b925060408501359150606085013567ffffffffffffffff811115612bc357600080fd5b8501601f81018713612bd457600080fd5b612be387823560208401612a44565b91505092959194509250565b60008060408385031215612c0257600080fd5b8235612c0d816130ec565b91506020830135612b2381613101565b60008060208385031215612c3057600080fd5b823567ffffffffffffffff80821115612c4857600080fd5b818501915085601f830112612c5c57600080fd5b813581811115612c6b57600080fd5b8660208260051b8501011115612c8057600080fd5b60209290920196919550909350505050565b60008060408385031215612ca557600080fd5b823567ffffffffffffffff80821115612cbd57600080fd5b818501915085601f830112612cd157600080fd5b8135602082821115612ce557612ce56130d6565b8160051b9250612cf6818401612f55565b8281528181019085830185870184018b1015612d1157600080fd5b600096505b84871015612d34578035835260019690960195918301918301612d16565b509650612d449050878201612a9c565b9450505050509250929050565b600060208284031215612d6357600080fd5b815161244781613101565b600060208284031215612d8057600080fd5b5035919050565b600060208284031215612d9957600080fd5b81356124478161310f565b600060208284031215612db657600080fd5b81516124478161310f565b600060208284031215612dd357600080fd5b81356003811061244757600080fd5b600060208284031215612df457600080fd5b813567ffffffffffffffff811115612e0b57600080fd5b8201601f81018413612e1c57600080fd5b6116d784823560208401612a44565b600060208284031215612e3d57600080fd5b5051919050565b60008151808452612e5c816020860160208601612fe8565b601f01601f19169290920160200192915050565b60038110612e8e57634e487b7160e01b600052602160045260246000fd5b9052565b60008251612ea4818460208701612fe8565b9190910192915050565b60008351612ec0818460208801612fe8565b835190830190612ed4818360208801612fe8565b01949350505050565b60006001600160a01b03808716835280861660208401525083604083015260806060830152612f0f6080830184612e44565b9695505050505050565b6020810161070b8284612e70565b60408101612f358285612e70565b6124476020830184612e70565b6020815260006124476020830184612e44565b604051601f8201601f1916810167ffffffffffffffff81118282101715612f7e57612f7e6130d6565b604052919050565b60008219821115612f9957612f9961307e565b500190565b600082612fad57612fad613094565b500490565b6000816000190483118215151615612fcc57612fcc61307e565b500290565b600082821015612fe357612fe361307e565b500390565b60005b83811015613003578181015183820152602001612feb565b83811115610c5b5750506000910152565b600181811c9082168061302857607f821691505b6020821081141561304957634e487b7160e01b600052602260045260246000fd5b50919050565b60006000198214156130635761306361307e565b5060010190565b60008261307957613079613094565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052602160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b0381168114610c8757600080fd5b8015158114610c8757600080fd5b6001600160e01b031981168114610c8757600080fdfea2646970667358221220df0eb915ebe1f596596567335a6ade86326d468e549118686851ba0c01a194ea64736f6c63430008070033

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

00000000000000000000000021b966c1d9430a968b82660a0a5b11d032c5c3db

-----Decoded View---------------
Arg [0] : _treasury (address): 0x21B966C1d9430a968b82660a0a5b11D032C5C3db

-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 00000000000000000000000021b966c1d9430a968b82660a0a5b11d032c5c3db


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.