ETH Price: $3,925.80 (-0.45%)

Token

MatrixDAO (MATRIX)
 

Overview

Max Total Supply

224 MATRIX

Holders

173

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A

Other Info

Filtered by Token Holder
0xdrnerd.eth
Balance
1 MATRIX
0x3be6e1d171e36c0fa42b4954dfa86248555e7d3e
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:
MatrixDao

Compiler Version
v0.8.7+commit.e28d00a7

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion
File 1 of 15 : MatrixDao.sol
// SPDX-License-Identifier: BUSL-1.1
pragma solidity ^0.8.0;

import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "@openzeppelin/contracts/utils/cryptography/ECDSA.sol";

import "./ERC721A.sol";
import { IPFSConvert } from "./IPFSConvert.sol";

error NonTransferable();
error ReachedMaxSupply();
error TransactionExpired();
error ExceedMaxAllowedMintAmount();
error IncorrectSignature();
error InsufficientPayments();
error RevealNotAllowed();
error RevealNotOwner();
error RevealNotAuthorized();
error TokenAlreadyRevealed();
error IncorrectRevealManyLength();
error TokenRevealQueryForNonexistentToken();
error NotRevealer();

/// @title MatrixDAO NFT
/// @author Teahouse Finance
contract MatrixDao is ERC721A, Ownable, ReentrancyGuard {
    using ECDSA for bytes32;

    address private signer;
    // Test price = 0.01, Production = 2.5
    uint256 public price = 2.5 ether;
    uint256 public maxCollection;

    string public unrevealURI;
    bool public allowReveal = false;

    mapping(uint256 => bytes32) private tokenBaseURIHash;
    
    event Revealed(uint256 indexed tokenId);

    /// @param _name Name of the NFT
    /// @param _symbol Symbol of the NFT
    /// @param _initSigner Signer address of whitelist minting
    /// @param _maxCollection Maximum allowed number of tokens
    constructor(
        string memory _name,
        string memory _symbol,
        address _initSigner,            // whitelist signer address
        uint256 _maxCollection          // total supply
    ) ERC721A(_name, _symbol) {
        signer = _initSigner;
        maxCollection = _maxCollection;
    }

    /// @notice Set token minting price
    /// @param _newPrice New price in wei
    /// @dev Only owner can do this
    function setPrice(uint256 _newPrice) external onlyOwner {
        price = _newPrice;
    }

    /// @notice Set whitelist minting signer address
    /// @param _newSigner New signer address
    /// @dev Only owner can do this
    function setSigner(address _newSigner) external onlyOwner {
        signer = _newSigner;
    }

    /// @notice Set token URI for unrevealed tokens
    /// @param _newURI New token URI
    /// @dev Only owner can do this
    function setUnrevealURI(string calldata _newURI) external onlyOwner {
        unrevealURI = _newURI;
    }

    /// @notice Set whether to allow reveal requests
    /// @param _allowReveal true to allow reveal requests, false to disallow
    /// @dev Only owner can do this
    function setAllowReveal(bool _allowReveal) external onlyOwner {
        allowReveal = _allowReveal;
    }

    function isAuthorized(address _sender, uint32 _allowAmount, uint64 _expireTime, bytes memory _signature) private view returns (bool) {
        bytes32 hashMsg = keccak256(abi.encodePacked(_sender, _allowAmount, _expireTime));
        bytes32 ethHashMessage = hashMsg.toEthSignedMessageHash();

        return ethHashMessage.recover(_signature) == signer;
    }

    function revealAuthorized(uint256 _tokenId, bytes32 _hash, bytes memory _signature) private view returns (bool) {
        bytes32 hashMsg = keccak256(abi.encodePacked(_tokenId, _hash));
        bytes32 ethHashMessage = hashMsg.toEthSignedMessageHash();

        return ethHashMessage.recover(_signature) == signer;
    }
    /// @notice Whitelist minting
    /// @param _amount Number of tokens to mint
    /// @param _allowAmount Allowed amount of tokens
    /// @param _expireTime Expiry time
    /// @param _signature The signature signed by the signer address
    /// @dev The caller must obtain a valid signature signed by the signer address from the server
    /// @dev and pays for the correct price to mint
    /// @dev The resulting token is sent to the caller's address
    function mint(uint32 _amount, uint32 _allowAmount, uint64 _expireTime, bytes calldata _signature) external payable {
        if (totalSupply() + _amount > maxCollection) revert ReachedMaxSupply();
        if (block.timestamp > _expireTime) revert TransactionExpired();
        if (_numberMinted(msg.sender) + _amount > _allowAmount) revert ExceedMaxAllowedMintAmount();
        if (!isAuthorized(msg.sender, _allowAmount, _expireTime, _signature)) revert IncorrectSignature();

        uint256 finalPrice = price * _amount;
        if (msg.value != finalPrice) revert InsufficientPayments();
        
        _safeMint(msg.sender, _amount);
    }

    /// @notice Developer minting
    /// @param _amount Number of tokens to mint
    /// @param _to Address to send the tokens to
    /// @dev Only owner can do this
    function devMint(uint256 _amount, address _to) external onlyOwner {
        if (totalSupply() + _amount > maxCollection) revert ReachedMaxSupply();

        _safeMint(_to, _amount);
    }


    function devMintMultiple(address[] calldata _to) external onlyOwner {
        if (totalSupply() + _to.length > maxCollection) revert ReachedMaxSupply();
        
        for(uint256 i=0; i < _to.length; i++){
            _safeMint(_to[i], 1);
        }
    }

    /// @notice Request to reveal token
    /// @param _tokenId TokenId to reveal
    /// @param _hash hash of metadata from IPFS.
    /// @param _signature The signature signed by the signer address
    /// @dev Only token owner can do this.
    /// @dev The backend server will send hash of metadata and signature to set user's tokenBaseURIHash, and upload metada to IPFS.
    function reveal(uint256 _tokenId, bytes32 _hash, bytes calldata _signature) external nonReentrant {
        
        if (!allowReveal) revert RevealNotAllowed();
        if (ownerOf(_tokenId) != msg.sender) revert RevealNotOwner();
        if (!revealAuthorized(_tokenId, _hash, _signature)) revert RevealNotAuthorized();
        if (tokenBaseURIHash[_tokenId] != 0) revert TokenAlreadyRevealed();

        tokenBaseURIHash[_tokenId] = _hash;

        emit Revealed(_tokenId);
    }

    /// @notice Returns token URI of a token
    /// @param _tokenId Token Id
    /// @return uri Token URI
    function tokenURI(uint256 _tokenId) public view virtual override returns (string memory uri) {
	    if (!_exists(_tokenId)) revert URIQueryForNonexistentToken();
        
        if (tokenBaseURIHash[_tokenId] == 0) {
            return unrevealURI;
        }
        else {
            bytes32 hash = tokenBaseURIHash[_tokenId];
            return string(abi.encodePacked("ipfs://", IPFSConvert.cidv0FromBytes32(hash)));
        }
	}

    /// @notice Returns the number of all minted tokens
    /// @return minted Number of all minted tokens
    function totalMinted() external view returns (uint256 minted) {
        return _totalMinted();
    }

    /// @notice Returns the number of all minted tokens from an address
    /// @param _minter Minter address
    /// @return minted Number of all minted tokens from the minter
    function numberMinted(address _minter) external view returns (uint256 minted) {
        return _numberMinted(_minter);
    }

    /// @notice Returns the reveal status of a token
    /// @param _tokenId Token Id
    /// @return isRevealed true if already revealed
   
    function tokenReveal(uint256 _tokenId) external view returns (bool isRevealed) {
        if (!_exists(_tokenId)) revert TokenRevealQueryForNonexistentToken();

        isRevealed = tokenBaseURIHash[_tokenId] != 0;
    }

    /// @notice Returns all tokenIds owned by an address
    /// @param _addr The address
    /// @param _startId starting tokenId
    /// @param _endId ending tokenId (inclusive)
    /// @return tokenIds Array of all tokenIds owned by the address
    /// @return endTokenId ending tokenId
    function ownedTokens(address _addr, uint256 _startId, uint256 _endId) external view returns (uint256[] memory tokenIds, uint256 endTokenId) {
        if (_endId == 0) {
            _endId = _currentIndex - 1;
        }

        if (_startId < _startTokenId() || _endId >= _currentIndex) revert TokenIndexOutOfBounds();

        uint256 i;
        uint256 balance = balanceOf(_addr);
        if (balance == 0) {
            return (new uint256[](0), _endId + 1);
        }

        if (balance > 256) {
            balance = 256;
        }

        uint256[] memory results = new uint256[](balance);
        uint256 idx = 0;
        
        address owner = ownerOf(_startId);
        for (i = _startId; i <= _endId; i++) {
            if (_ownerships[i].addr != address(0)) {
                owner = _ownerships[i].addr;
            }

            if (!_ownerships[i].burned && owner == _addr) {
                results[idx] = i;
                idx++;

                if (idx == balance) {
                    if (balance == balanceOf(_addr)) {
                        return (results, _endId + 1);
                    }
                    else {
                        return (results, i + 1);
                    }
                }
            }
        }

        uint256[] memory partialResults = new uint256[](idx);
        for (i = 0; i < idx; i++) {
            partialResults[i] = results[i];
        }        

        return (partialResults, _endId + 1);
    }

    /// @notice Withdraw funds in the NFT
    /// @param _to The address to send the funds to
    /// @dev Only owner can do this
    function withdraw(address payable _to) external payable onlyOwner {
        (bool success, ) = _to.call{value: address(this).balance}("");
        require(success);
	}

    function _startTokenId() override internal view virtual returns (uint256) {
        // the starting token Id
        return 1;
    }

}

File 2 of 15 : IPFSConvert.sol
// contracts/IPFSConvert.sol
// SPDX-License-Identifier: BUSL-1.1

pragma solidity ^0.8.0;


library IPFSConvert {

    bytes constant private CODE_STRING = "123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz";
    bytes constant private CIDV0HEAD = "\x00\x04\x28\x0b\x12\x17\x09\x28\x31\x00\x12\x04\x28\x20\x25\x25\x22\x31\x1b\x1d\x39\x29\x09\x26\x1b\x29\x0b\x02\x0a\x18\x25\x22\x24\x1b\x39\x2c\x1d\x39\x07\x06\x29\x25\x13\x15\x2c\x17";

    /**
     * @dev This function converts an 256 bits hash value into IPFS CIDv0 hash string.
     * @param _cidv0 256 bits hash value (not including the 0x12 0x20 signature)
     * @return IPFS CIDv0 hash string (Qm...)
     */
    function cidv0FromBytes32(bytes32 _cidv0) internal pure returns (string memory) {
        unchecked {
            // convert to base58
            bytes memory result = new bytes(46);        // 46 is the longest possible base58 result from CIDv0
            uint256 resultLen = 45;
            uint256 number = uint256(_cidv0);
            while(number > 0) {
                uint256 rem = number % 58;
                result[resultLen] = bytes1(uint8(rem));
                resultLen--;
                number = number / 58;
            }

            // add 0x1220 in front of _cidv0
            uint256 i;
            for (i = 0; i < 46; i++) {
                uint8 r = uint8(result[45 - i]) + uint8(CIDV0HEAD[i]);
                if (r >= 58) {
                    result[45 - i] = bytes1(r - 58);
                    result[45 - i - 1] = bytes1(uint8(result[45 - i - 1]) + 1);
                }
                else {
                    result[45 - i] = bytes1(r);
                }
            }

            // convert to characters
            for (i = 0; i < 46; i++) {
                result[i] = CODE_STRING[uint8(result[i])];
            }

            return string(result);
        }
    }
}

File 3 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/token/ERC721/extensions/IERC721Enumerable.sol';
import '@openzeppelin/contracts/utils/Address.sol';
import '@openzeppelin/contracts/utils/Context.sol';
import '@openzeppelin/contracts/utils/Strings.sol';
import '@openzeppelin/contracts/utils/introspection/ERC165.sol';

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

/**
 * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
 * the Metadata 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 See {IERC721Enumerable-totalSupply}.
     * @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) {
        if (owner == address(0)) revert MintedQueryForZeroAddress();
        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) {
        if (owner == address(0)) revert BurnedQueryForZeroAddress();
        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) {
        if (owner == address(0)) revert AuxQueryForZeroAddress();
        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 {
        if (owner == address(0)) revert AuxQueryForZeroAddress();
        _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 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);

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

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

        _beforeTokenTransfers(from, to, tokenId, 1);

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    /**
     * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target 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 4 of 15 : ECDSA.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (utils/cryptography/ECDSA.sol)

pragma solidity ^0.8.0;

import "../Strings.sol";

/**
 * @dev Elliptic Curve Digital Signature Algorithm (ECDSA) operations.
 *
 * These functions can be used to verify that a message was signed by the holder
 * of the private keys of a given address.
 */
library ECDSA {
    enum RecoverError {
        NoError,
        InvalidSignature,
        InvalidSignatureLength,
        InvalidSignatureS,
        InvalidSignatureV
    }

    function _throwError(RecoverError error) private pure {
        if (error == RecoverError.NoError) {
            return; // no error: do nothing
        } else if (error == RecoverError.InvalidSignature) {
            revert("ECDSA: invalid signature");
        } else if (error == RecoverError.InvalidSignatureLength) {
            revert("ECDSA: invalid signature length");
        } else if (error == RecoverError.InvalidSignatureS) {
            revert("ECDSA: invalid signature 's' value");
        } else if (error == RecoverError.InvalidSignatureV) {
            revert("ECDSA: invalid signature 'v' value");
        }
    }

    /**
     * @dev Returns the address that signed a hashed message (`hash`) with
     * `signature` or error string. This address can then be used for verification purposes.
     *
     * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures:
     * this function rejects them by requiring the `s` value to be in the lower
     * half order, and the `v` value to be either 27 or 28.
     *
     * IMPORTANT: `hash` _must_ be the result of a hash operation for the
     * verification to be secure: it is possible to craft signatures that
     * recover to arbitrary addresses for non-hashed data. A safe way to ensure
     * this is by receiving a hash of the original message (which may otherwise
     * be too long), and then calling {toEthSignedMessageHash} on it.
     *
     * Documentation for signature generation:
     * - with https://web3js.readthedocs.io/en/v1.3.4/web3-eth-accounts.html#sign[Web3.js]
     * - with https://docs.ethers.io/v5/api/signer/#Signer-signMessage[ethers]
     *
     * _Available since v4.3._
     */
    function tryRecover(bytes32 hash, bytes memory signature) internal pure returns (address, RecoverError) {
        // Check the signature length
        // - case 65: r,s,v signature (standard)
        // - case 64: r,vs signature (cf https://eips.ethereum.org/EIPS/eip-2098) _Available since v4.1._
        if (signature.length == 65) {
            bytes32 r;
            bytes32 s;
            uint8 v;
            // ecrecover takes the signature parameters, and the only way to get them
            // currently is to use assembly.
            assembly {
                r := mload(add(signature, 0x20))
                s := mload(add(signature, 0x40))
                v := byte(0, mload(add(signature, 0x60)))
            }
            return tryRecover(hash, v, r, s);
        } else if (signature.length == 64) {
            bytes32 r;
            bytes32 vs;
            // ecrecover takes the signature parameters, and the only way to get them
            // currently is to use assembly.
            assembly {
                r := mload(add(signature, 0x20))
                vs := mload(add(signature, 0x40))
            }
            return tryRecover(hash, r, vs);
        } else {
            return (address(0), RecoverError.InvalidSignatureLength);
        }
    }

    /**
     * @dev Returns the address that signed a hashed message (`hash`) with
     * `signature`. This address can then be used for verification purposes.
     *
     * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures:
     * this function rejects them by requiring the `s` value to be in the lower
     * half order, and the `v` value to be either 27 or 28.
     *
     * IMPORTANT: `hash` _must_ be the result of a hash operation for the
     * verification to be secure: it is possible to craft signatures that
     * recover to arbitrary addresses for non-hashed data. A safe way to ensure
     * this is by receiving a hash of the original message (which may otherwise
     * be too long), and then calling {toEthSignedMessageHash} on it.
     */
    function recover(bytes32 hash, bytes memory signature) internal pure returns (address) {
        (address recovered, RecoverError error) = tryRecover(hash, signature);
        _throwError(error);
        return recovered;
    }

    /**
     * @dev Overload of {ECDSA-tryRecover} that receives the `r` and `vs` short-signature fields separately.
     *
     * See https://eips.ethereum.org/EIPS/eip-2098[EIP-2098 short signatures]
     *
     * _Available since v4.3._
     */
    function tryRecover(
        bytes32 hash,
        bytes32 r,
        bytes32 vs
    ) internal pure returns (address, RecoverError) {
        bytes32 s = vs & bytes32(0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff);
        uint8 v = uint8((uint256(vs) >> 255) + 27);
        return tryRecover(hash, v, r, s);
    }

    /**
     * @dev Overload of {ECDSA-recover} that receives the `r and `vs` short-signature fields separately.
     *
     * _Available since v4.2._
     */
    function recover(
        bytes32 hash,
        bytes32 r,
        bytes32 vs
    ) internal pure returns (address) {
        (address recovered, RecoverError error) = tryRecover(hash, r, vs);
        _throwError(error);
        return recovered;
    }

    /**
     * @dev Overload of {ECDSA-tryRecover} that receives the `v`,
     * `r` and `s` signature fields separately.
     *
     * _Available since v4.3._
     */
    function tryRecover(
        bytes32 hash,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) internal pure returns (address, RecoverError) {
        // EIP-2 still allows signature malleability for ecrecover(). Remove this possibility and make the signature
        // unique. Appendix F in the Ethereum Yellow paper (https://ethereum.github.io/yellowpaper/paper.pdf), defines
        // the valid range for s in (301): 0 < s < secp256k1n ÷ 2 + 1, and for v in (302): v ∈ {27, 28}. Most
        // signatures from current libraries generate a unique signature with an s-value in the lower half order.
        //
        // If your library generates malleable signatures, such as s-values in the upper range, calculate a new s-value
        // with 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141 - s1 and flip v from 27 to 28 or
        // vice versa. If your library also generates signatures with 0/1 for v instead 27/28, add 27 to v to accept
        // these malleable signatures as well.
        if (uint256(s) > 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0) {
            return (address(0), RecoverError.InvalidSignatureS);
        }
        if (v != 27 && v != 28) {
            return (address(0), RecoverError.InvalidSignatureV);
        }

        // If the signature is valid (and not malleable), return the signer address
        address signer = ecrecover(hash, v, r, s);
        if (signer == address(0)) {
            return (address(0), RecoverError.InvalidSignature);
        }

        return (signer, RecoverError.NoError);
    }

    /**
     * @dev Overload of {ECDSA-recover} that receives the `v`,
     * `r` and `s` signature fields separately.
     */
    function recover(
        bytes32 hash,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) internal pure returns (address) {
        (address recovered, RecoverError error) = tryRecover(hash, v, r, s);
        _throwError(error);
        return recovered;
    }

    /**
     * @dev Returns an Ethereum Signed Message, created from a `hash`. This
     * produces hash corresponding to the one signed with the
     * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`]
     * JSON-RPC method as part of EIP-191.
     *
     * See {recover}.
     */
    function toEthSignedMessageHash(bytes32 hash) internal pure returns (bytes32) {
        // 32 is the length in bytes of hash,
        // enforced by the type signature above
        return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n32", hash));
    }

    /**
     * @dev Returns an Ethereum Signed Message, created from `s`. This
     * produces hash corresponding to the one signed with the
     * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`]
     * JSON-RPC method as part of EIP-191.
     *
     * See {recover}.
     */
    function toEthSignedMessageHash(bytes memory s) internal pure returns (bytes32) {
        return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n", Strings.toString(s.length), s));
    }

    /**
     * @dev Returns an Ethereum Signed Typed Data, created from a
     * `domainSeparator` and a `structHash`. This produces hash corresponding
     * to the one signed with the
     * https://eips.ethereum.org/EIPS/eip-712[`eth_signTypedData`]
     * JSON-RPC method as part of EIP-712.
     *
     * See {recover}.
     */
    function toTypedDataHash(bytes32 domainSeparator, bytes32 structHash) internal pure returns (bytes32) {
        return keccak256(abi.encodePacked("\x19\x01", domainSeparator, structHash));
    }
}

File 5 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 6 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 7 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 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 : 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 10 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 11 of 15 : IERC721Enumerable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC721/extensions/IERC721Enumerable.sol)

pragma solidity ^0.8.0;

import "../IERC721.sol";

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

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

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

File 12 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 13 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 14 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 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": false,
    "runs": 200
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  }
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"string","name":"_name","type":"string"},{"internalType":"string","name":"_symbol","type":"string"},{"internalType":"address","name":"_initSigner","type":"address"},{"internalType":"uint256","name":"_maxCollection","type":"uint256"}],"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":"ExceedMaxAllowedMintAmount","type":"error"},{"inputs":[],"name":"IncorrectSignature","type":"error"},{"inputs":[],"name":"InsufficientPayments","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[],"name":"MintedQueryForZeroAddress","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"ReachedMaxSupply","type":"error"},{"inputs":[],"name":"RevealNotAllowed","type":"error"},{"inputs":[],"name":"RevealNotAuthorized","type":"error"},{"inputs":[],"name":"RevealNotOwner","type":"error"},{"inputs":[],"name":"TokenAlreadyRevealed","type":"error"},{"inputs":[],"name":"TokenIndexOutOfBounds","type":"error"},{"inputs":[],"name":"TokenRevealQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"TransactionExpired","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":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Revealed","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"allowReveal","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"address","name":"_to","type":"address"}],"name":"devMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"_to","type":"address[]"}],"name":"devMintMultiple","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":[],"name":"maxCollection","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint32","name":"_amount","type":"uint32"},{"internalType":"uint32","name":"_allowAmount","type":"uint32"},{"internalType":"uint64","name":"_expireTime","type":"uint64"},{"internalType":"bytes","name":"_signature","type":"bytes"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_minter","type":"address"}],"name":"numberMinted","outputs":[{"internalType":"uint256","name":"minted","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_addr","type":"address"},{"internalType":"uint256","name":"_startId","type":"uint256"},{"internalType":"uint256","name":"_endId","type":"uint256"}],"name":"ownedTokens","outputs":[{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"},{"internalType":"uint256","name":"endTokenId","type":"uint256"}],"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":"price","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"bytes32","name":"_hash","type":"bytes32"},{"internalType":"bytes","name":"_signature","type":"bytes"}],"name":"reveal","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":"bool","name":"_allowReveal","type":"bool"}],"name":"setAllowReveal","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":"uint256","name":"_newPrice","type":"uint256"}],"name":"setPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_newSigner","type":"address"}],"name":"setSigner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_newURI","type":"string"}],"name":"setUnrevealURI","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":"tokenReveal","outputs":[{"internalType":"bool","name":"isRevealed","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"uri","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalMinted","outputs":[{"internalType":"uint256","name":"minted","type":"uint256"}],"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":"unrevealURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address payable","name":"_to","type":"address"}],"name":"withdraw","outputs":[],"stateMutability":"payable","type":"function"}]

60806040526722b1c8c1227a0000600b556000600e60006101000a81548160ff0219169083151502179055503480156200003857600080fd5b50604051620055f1380380620055f183398181016040528101906200005e919062000357565b8383816002908051906020019062000078929190620001fb565b50806003908051906020019062000091929190620001fb565b50620000a26200012460201b60201c565b6000819055505050620000ca620000be6200012d60201b60201c565b6200013560201b60201c565b600160098190555081600a60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555080600c8190555050505050620005fd565b60006001905090565b600033905090565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b8280546200020990620004da565b90600052602060002090601f0160209004810192826200022d576000855562000279565b82601f106200024857805160ff191683800117855562000279565b8280016001018555821562000279579182015b82811115620002785782518255916020019190600101906200025b565b5b5090506200028891906200028c565b5090565b5b80821115620002a75760008160009055506001016200028d565b5090565b6000620002c2620002bc8462000430565b62000407565b905082815260208101848484011115620002e157620002e0620005a9565b5b620002ee848285620004a4565b509392505050565b6000815190506200030781620005c9565b92915050565b600082601f830112620003255762000324620005a4565b5b815162000337848260208601620002ab565b91505092915050565b6000815190506200035181620005e3565b92915050565b60008060008060808587031215620003745762000373620005b3565b5b600085015167ffffffffffffffff811115620003955762000394620005ae565b5b620003a3878288016200030d565b945050602085015167ffffffffffffffff811115620003c757620003c6620005ae565b5b620003d5878288016200030d565b9350506040620003e887828801620002f6565b9250506060620003fb8782880162000340565b91505092959194509250565b60006200041362000426565b905062000421828262000510565b919050565b6000604051905090565b600067ffffffffffffffff8211156200044e576200044d62000575565b5b6200045982620005b8565b9050602081019050919050565b600062000473826200047a565b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b60005b83811015620004c4578082015181840152602081019050620004a7565b83811115620004d4576000848401525b50505050565b60006002820490506001821680620004f357607f821691505b602082108114156200050a576200050962000546565b5b50919050565b6200051b82620005b8565b810181811067ffffffffffffffff821117156200053d576200053c62000575565b5b80604052505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b620005d48162000466565b8114620005e057600080fd5b50565b620005ee816200049a565b8114620005fa57600080fd5b50565b614fe4806200060d6000396000f3fe6080604052600436106101f95760003560e01c806370a082311161010d578063a22cb465116100a0578063c87b56dd1161006f578063c87b56dd146106ee578063dc33e6811461072b578063e985e9c514610768578063f0ec1065146107a5578063f2fde38b146107e2576101f9565b8063a22cb46514610648578063a2309ff814610671578063b17c1d9d1461069c578063b88d4fde146106c5576101f9565b806395d89b41116100dc57806395d89b41146105ad57806396cf73cf146105d857806397bc411c146105f4578063a035b1fe1461061d576101f9565b806370a0823114610505578063715018a6146105425780638da5cb5b1461055957806391b7f5ed14610584576101f9565b8063390a5b9a116101905780634ad505161161015f5780634ad505161461042f57806351cff8d91461045857806352cf02f0146104745780636352211e1461049f5780636c19e783146104dc576101f9565b8063390a5b9a1461037457806342842e0e1461039f57806342d0abd7146103c857806349a0a50e146103f1576101f9565b806318160ddd116101cc57806318160ddd146102cc5780632126ea81146102f757806323b872dd146103225780632d1a12f61461034b576101f9565b806301ffc9a7146101fe57806306fdde031461023b578063081812fc14610266578063095ea7b3146102a3575b600080fd5b34801561020a57600080fd5b5061022560048036038101906102209190613f3e565b61080b565b60405161023291906145ef565b60405180910390f35b34801561024757600080fd5b506102506108ed565b60405161025d919061464f565b60405180910390f35b34801561027257600080fd5b5061028d60048036038101906102889190613fe5565b61097f565b60405161029a9190614558565b60405180910390f35b3480156102af57600080fd5b506102ca60048036038101906102c59190613e31565b6109fb565b005b3480156102d857600080fd5b506102e1610b06565b6040516102ee9190614751565b60405180910390f35b34801561030357600080fd5b5061030c610b1d565b604051610319919061464f565b60405180910390f35b34801561032e57600080fd5b5061034960048036038101906103449190613d1b565b610bab565b005b34801561035757600080fd5b50610372600480360381019061036d9190614012565b610bbb565b005b34801561038057600080fd5b50610389610c93565b6040516103969190614751565b60405180910390f35b3480156103ab57600080fd5b506103c660048036038101906103c19190613d1b565b610c99565b005b3480156103d457600080fd5b506103ef60048036038101906103ea9190614052565b610cb9565b005b3480156103fd57600080fd5b5061041860048036038101906104139190613e71565b610ee1565b6040516104269291906145bf565b60405180910390f35b34801561043b57600080fd5b5061045660048036038101906104519190613f11565b61129b565b005b610472600480360381019061046d9190613cae565b611334565b005b34801561048057600080fd5b5061048961142a565b60405161049691906145ef565b60405180910390f35b3480156104ab57600080fd5b506104c660048036038101906104c19190613fe5565b61143d565b6040516104d39190614558565b60405180910390f35b3480156104e857600080fd5b5061050360048036038101906104fe9190613c81565b611453565b005b34801561051157600080fd5b5061052c60048036038101906105279190613c81565b611513565b6040516105399190614751565b60405180910390f35b34801561054e57600080fd5b506105576115e3565b005b34801561056557600080fd5b5061056e61166b565b60405161057b9190614558565b60405180910390f35b34801561059057600080fd5b506105ab60048036038101906105a69190613fe5565b611695565b005b3480156105b957600080fd5b506105c261171b565b6040516105cf919061464f565b60405180910390f35b6105f260048036038101906105ed91906140c6565b6117ad565b005b34801561060057600080fd5b5061061b60048036038101906106169190613f98565b61198d565b005b34801561062957600080fd5b50610632611a1f565b60405161063f9190614751565b60405180910390f35b34801561065457600080fd5b5061066f600480360381019061066a9190613df1565b611a25565b005b34801561067d57600080fd5b50610686611b9d565b6040516106939190614751565b60405180910390f35b3480156106a857600080fd5b506106c360048036038101906106be9190613ec4565b611bac565b005b3480156106d157600080fd5b506106ec60048036038101906106e79190613d6e565b611cd1565b005b3480156106fa57600080fd5b5061071560048036038101906107109190613fe5565b611d4d565b604051610722919061464f565b60405180910390f35b34801561073757600080fd5b50610752600480360381019061074d9190613c81565b611e87565b60405161075f9190614751565b60405180910390f35b34801561077457600080fd5b5061078f600480360381019061078a9190613cdb565b611e99565b60405161079c91906145ef565b60405180910390f35b3480156107b157600080fd5b506107cc60048036038101906107c79190613fe5565b611f2d565b6040516107d991906145ef565b60405180910390f35b3480156107ee57600080fd5b5061080960048036038101906108049190613c81565b611f8f565b005b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806108d657507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b806108e657506108e582612087565b5b9050919050565b6060600280546108fc90614a30565b80601f016020809104026020016040519081016040528092919081815260200182805461092890614a30565b80156109755780601f1061094a57610100808354040283529160200191610975565b820191906000526020600020905b81548152906001019060200180831161095857829003601f168201915b5050505050905090565b600061098a826120f1565b6109c0576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6006600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610a068261143d565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610a6e576040517f943f7b8c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610a8d61213f565b73ffffffffffffffffffffffffffffffffffffffff1614158015610abf5750610abd81610ab861213f565b611e99565b155b15610af6576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610b01838383612147565b505050565b6000610b106121f9565b6001546000540303905090565b600d8054610b2a90614a30565b80601f0160208091040260200160405190810160405280929190818152602001828054610b5690614a30565b8015610ba35780601f10610b7857610100808354040283529160200191610ba3565b820191906000526020600020905b815481529060010190602001808311610b8657829003601f168201915b505050505081565b610bb6838383612202565b505050565b610bc361213f565b73ffffffffffffffffffffffffffffffffffffffff16610be161166b565b73ffffffffffffffffffffffffffffffffffffffff1614610c37576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c2e90614711565b60405180910390fd5b600c5482610c43610b06565b610c4d9190614849565b1115610c85576040517f794bb39b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610c8f81836126f3565b5050565b600c5481565b610cb483838360405180602001604052806000815250611cd1565b505050565b60026009541415610cff576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610cf690614731565b60405180910390fd5b6002600981905550600e60009054906101000a900460ff16610d4d576040517f44300a9900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b3373ffffffffffffffffffffffffffffffffffffffff16610d6d8561143d565b73ffffffffffffffffffffffffffffffffffffffff1614610dba576040517f5e1cb9bf00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610e09848484848080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f82011690508083019250505050505050612711565b610e3f576040517fe9aee7d800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000801b600f60008681526020019081526020016000205414610e8e576040517f5a049a9000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b82600f600086815260200190815260200160002081905550837f15120e52505e619cbf6c2af910d5cf7f9ee1befa55801b078c33e93880b2d60960405160405180910390a2600160098190555050505050565b6060600080831415610eff576001600054610efc91906148f9565b92505b610f076121f9565b841080610f1657506000548310155b15610f4d576040517fa723001c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600080610f5987611513565b90506000811415610fc657600067ffffffffffffffff811115610f7f57610f7e614c23565b5b604051908082528060200260200182016040528015610fad5781602001602082028036833780820191505090505b50600186610fbb9190614849565b935093505050611293565b610100811115610fd65761010090505b60008167ffffffffffffffff811115610ff257610ff1614c23565b5b6040519080825280602002602001820160405280156110205781602001602082028036833780820191505090505b50905060008061102f8961143d565b90508894505b8785116111d357600073ffffffffffffffffffffffffffffffffffffffff166004600087815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16146110e0576004600086815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690505b60046000868152602001908152602001600020600001601c9054906101000a900460ff1615801561113c57508973ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16145b156111c0578483838151811061115557611154614bf4565b5b602002602001018181525050818061116c90614a93565b925050838214156111bf576111808a611513565b8414156111a357826001896111959190614849565b965096505050505050611293565b826001866111b19190614849565b965096505050505050611293565b5b84806111cb90614a93565b955050611035565b60008267ffffffffffffffff8111156111ef576111ee614c23565b5b60405190808252806020026020018201604052801561121d5781602001602082028036833780820191505090505b509050600095505b8286101561127a578386815181106112405761123f614bf4565b5b602002602001015181878151811061125b5761125a614bf4565b5b602002602001018181525050858061127290614a93565b965050611225565b8060018a6112889190614849565b975097505050505050505b935093915050565b6112a361213f565b73ffffffffffffffffffffffffffffffffffffffff166112c161166b565b73ffffffffffffffffffffffffffffffffffffffff1614611317576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161130e90614711565b60405180910390fd5b80600e60006101000a81548160ff02191690831515021790555050565b61133c61213f565b73ffffffffffffffffffffffffffffffffffffffff1661135a61166b565b73ffffffffffffffffffffffffffffffffffffffff16146113b0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113a790614711565b60405180910390fd5b60008173ffffffffffffffffffffffffffffffffffffffff16476040516113d690614517565b60006040518083038185875af1925050503d8060008114611413576040519150601f19603f3d011682016040523d82523d6000602084013e611418565b606091505b505090508061142657600080fd5b5050565b600e60009054906101000a900460ff1681565b6000611448826127ba565b600001519050919050565b61145b61213f565b73ffffffffffffffffffffffffffffffffffffffff1661147961166b565b73ffffffffffffffffffffffffffffffffffffffff16146114cf576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114c690614711565b60405180910390fd5b80600a60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141561157b576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600560008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160009054906101000a900467ffffffffffffffff1667ffffffffffffffff169050919050565b6115eb61213f565b73ffffffffffffffffffffffffffffffffffffffff1661160961166b565b73ffffffffffffffffffffffffffffffffffffffff161461165f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161165690614711565b60405180910390fd5b6116696000612a49565b565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b61169d61213f565b73ffffffffffffffffffffffffffffffffffffffff166116bb61166b565b73ffffffffffffffffffffffffffffffffffffffff1614611711576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161170890614711565b60405180910390fd5b80600b8190555050565b60606003805461172a90614a30565b80601f016020809104026020016040519081016040528092919081815260200182805461175690614a30565b80156117a35780601f10611778576101008083540402835291602001916117a3565b820191906000526020600020905b81548152906001019060200180831161178657829003601f168201915b5050505050905090565b600c548563ffffffff166117bf610b06565b6117c99190614849565b1115611801576040517f794bb39b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8267ffffffffffffffff16421115611845576040517fe397952c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8363ffffffff168563ffffffff1661185c33612b0f565b6118669190614849565b111561189e576040517fb903011a00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6118ee33858585858080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f82011690508083019250505050505050612bdf565b611924576040517fc1606c2f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008563ffffffff16600b5461193a919061489f565b9050803414611975576040517ffa47be2b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b611985338763ffffffff166126f3565b505050505050565b61199561213f565b73ffffffffffffffffffffffffffffffffffffffff166119b361166b565b73ffffffffffffffffffffffffffffffffffffffff1614611a09576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a0090614711565b60405180910390fd5b8181600d9190611a1a92919061396c565b505050565b600b5481565b611a2d61213f565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611a92576040517fb06307db00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8060076000611a9f61213f565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff16611b4c61213f565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051611b9191906145ef565b60405180910390a35050565b6000611ba7612c8b565b905090565b611bb461213f565b73ffffffffffffffffffffffffffffffffffffffff16611bd261166b565b73ffffffffffffffffffffffffffffffffffffffff1614611c28576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c1f90614711565b60405180910390fd5b600c5482829050611c37610b06565b611c419190614849565b1115611c79576040517f794bb39b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60005b82829050811015611ccc57611cb9838383818110611c9d57611c9c614bf4565b5b9050602002016020810190611cb29190613c81565b60016126f3565b8080611cc490614a93565b915050611c7c565b505050565b611cdc848484612202565b611cfb8373ffffffffffffffffffffffffffffffffffffffff16612c9e565b8015611d105750611d0e84848484612cc1565b155b15611d47576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b50505050565b6060611d58826120f1565b611d8e576040517fa14c4b5000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000801b600f6000848152602001908152602001600020541415611e3e57600d8054611db990614a30565b80601f0160208091040260200160405190810160405280929190818152602001828054611de590614a30565b8015611e325780601f10611e0757610100808354040283529160200191611e32565b820191906000526020600020905b815481529060010190602001808311611e1557829003601f168201915b50505050509050611e82565b6000600f6000848152602001908152602001600020549050611e5f81612e21565b604051602001611e6f91906144f5565b6040516020818303038152906040529150505b919050565b6000611e9282612b0f565b9050919050565b6000600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b6000611f38826120f1565b611f6e576040517f509fe01c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000801b600f60008481526020019081526020016000205414159050919050565b611f9761213f565b73ffffffffffffffffffffffffffffffffffffffff16611fb561166b565b73ffffffffffffffffffffffffffffffffffffffff161461200b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161200290614711565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16141561207b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612072906146b1565b60405180910390fd5b61208481612a49565b50565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b6000816120fc6121f9565b1115801561210b575060005482105b8015612138575060046000838152602001908152602001600020600001601c9054906101000a900460ff16155b9050919050565b600033905090565b826006600084815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b60006001905090565b600061220d826127ba565b90506000816000015173ffffffffffffffffffffffffffffffffffffffff1661223461213f565b73ffffffffffffffffffffffffffffffffffffffff1614806122675750612266826000015161226161213f565b611e99565b5b806122ac575061227561213f565b73ffffffffffffffffffffffffffffffffffffffff166122948461097f565b73ffffffffffffffffffffffffffffffffffffffff16145b9050806122e5576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8473ffffffffffffffffffffffffffffffffffffffff16826000015173ffffffffffffffffffffffffffffffffffffffff161461234e576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1614156123b5576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6123c28585856001613165565b6123d26000848460000151612147565b6001600560008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160008282829054906101000a900467ffffffffffffffff160392506101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055506001600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160008282829054906101000a900467ffffffffffffffff160192506101000a81548167ffffffffffffffff021916908367ffffffffffffffff160217905550836004600085815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550426004600085815260200190815260200160002060000160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055506000600184019050600073ffffffffffffffffffffffffffffffffffffffff166004600083815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161415612683576000548110156126825782600001516004600083815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555082602001516004600083815260200190815260200160002060000160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055505b5b50828473ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46126ec858585600161316b565b5050505050565b61270d828260405180602001604052806000815250613171565b5050565b600080848460405160200161272792919061452c565b604051602081830303815290604052805190602001209050600061274a82613183565b9050600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1661279885836131b390919063ffffffff16565b73ffffffffffffffffffffffffffffffffffffffff1614925050509392505050565b6127c26139f2565b6000829050806127d06121f9565b111580156127df575060005481105b15612a12576000600460008381526020019081526020016000206040518060600160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a900467ffffffffffffffff1667ffffffffffffffff1667ffffffffffffffff16815260200160008201601c9054906101000a900460ff16151515158152505090508060400151612a1057600073ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff16146128f4578092505050612a44565b5b600115612a0f57818060019003925050600460008381526020019081526020016000206040518060600160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a900467ffffffffffffffff1667ffffffffffffffff1667ffffffffffffffff16815260200160008201601c9054906101000a900460ff1615151515815250509050600073ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff1614612a0a578092505050612a44565b6128f5565b5b505b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b919050565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415612b77576040517f35ebb31900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600560008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160089054906101000a900467ffffffffffffffff1667ffffffffffffffff169050919050565b600080858585604051602001612bf793929190614492565b6040516020818303038152906040528051906020012090506000612c1a82613183565b9050600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16612c6885836131b390919063ffffffff16565b73ffffffffffffffffffffffffffffffffffffffff161492505050949350505050565b6000612c956121f9565b60005403905090565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b60008373ffffffffffffffffffffffffffffffffffffffff1663150b7a02612ce761213f565b8786866040518563ffffffff1660e01b8152600401612d099493929190614573565b602060405180830381600087803b158015612d2357600080fd5b505af1925050508015612d5457506040513d601f19601f82011682018060405250810190612d519190613f6b565b60015b612dce573d8060008114612d84576040519150601f19603f3d011682016040523d82523d6000602084013e612d89565b606091505b50600081511415612dc6576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050949350505050565b60606000602e67ffffffffffffffff811115612e4057612e3f614c23565b5b6040519080825280601f01601f191660200182016040528015612e725781602001600182028036833780820191505090505b5090506000602d905060008460001c90505b6000811115612f0c576000603a8281612ea057612e9f614b67565b5b0690508060f81b848481518110612eba57612eb9614bf4565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350828060019003935050603a8281612f0357612f02614b67565b5b04915050612e84565b60005b602e8110156130a35760006040518060600160405280602e8152602001614f47602e91398281518110612f4557612f44614bf4565b5b602001015160f81c60f81b60f81c8583602d0381518110612f6957612f68614bf4565b5b602001015160f81c60f81b60f81c019050603a8160ff161061304b57603a810360f81b8583602d0381518110612fa257612fa1614bf4565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600185600184602d030381518110612fec57612feb614bf4565b5b602001015160f81c60f81b60f81c0160f81b85600184602d03038151811061301757613016614bf4565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350613095565b8060f81b8583602d038151811061306557613064614bf4565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053505b508080600101915050612f0f565b600090505b602e811015613159576040518060600160405280603a8152602001614f75603a91398482815181106130dd576130dc614bf4565b5b602001015160f81c60f81b60f81c60ff16815181106130ff576130fe614bf4565b5b602001015160f81c60f81b84828151811061311d5761311c614bf4565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a90535080806001019150506130a8565b83945050505050919050565b50505050565b50505050565b61317e83838360016131da565b505050565b60008160405160200161319691906144cf565b604051602081830303815290604052805190602001209050919050565b60008060006131c285856135a8565b915091506131cf8161362b565b819250505092915050565b600080549050600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff161415613247576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000841415613282576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61328f6000868387613165565b83600560008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160008282829054906101000a900467ffffffffffffffff160192506101000a81548167ffffffffffffffff021916908367ffffffffffffffff16021790555083600560008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160088282829054906101000a900467ffffffffffffffff160192506101000a81548167ffffffffffffffff021916908367ffffffffffffffff160217905550846004600083815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550426004600083815260200190815260200160002060000160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff16021790555060008190506000858201905083801561345957506134588773ffffffffffffffffffffffffffffffffffffffff16612c9e565b5b1561351f575b818773ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46134ce6000888480600101955088612cc1565b613504576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8082141561345f57826000541461351a57600080fd5b61358b565b5b818060010192508773ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a480821415613520575b8160008190555050506135a1600086838761316b565b5050505050565b6000806041835114156135ea5760008060006020860151925060408601519150606086015160001a90506135de87828585613800565b94509450505050613624565b60408351141561361b57600080602085015191506040850151905061361086838361390d565b935093505050613624565b60006002915091505b9250929050565b6000600481111561363f5761363e614b96565b5b81600481111561365257613651614b96565b5b141561365d576137fd565b6001600481111561367157613670614b96565b5b81600481111561368457613683614b96565b5b14156136c5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016136bc90614671565b60405180910390fd5b600260048111156136d9576136d8614b96565b5b8160048111156136ec576136eb614b96565b5b141561372d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161372490614691565b60405180910390fd5b6003600481111561374157613740614b96565b5b81600481111561375457613753614b96565b5b1415613795576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161378c906146d1565b60405180910390fd5b6004808111156137a8576137a7614b96565b5b8160048111156137bb576137ba614b96565b5b14156137fc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016137f3906146f1565b60405180910390fd5b5b50565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08360001c111561383b576000600391509150613904565b601b8560ff16141580156138535750601c8560ff1614155b15613865576000600491509150613904565b60006001878787876040516000815260200160405260405161388a949392919061460a565b6020604051602081039080840390855afa1580156138ac573d6000803e3d6000fd5b505050602060405103519050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156138fb57600060019250925050613904565b80600092509250505b94509492505050565b60008060007f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff60001b841690506000601b60ff8660001c901c6139509190614849565b905061395e87828885613800565b935093505050935093915050565b82805461397890614a30565b90600052602060002090601f01602090048101928261399a57600085556139e1565b82601f106139b357803560ff19168380011785556139e1565b828001600101855582156139e1579182015b828111156139e05782358255916020019190600101906139c5565b5b5090506139ee9190613a35565b5090565b6040518060600160405280600073ffffffffffffffffffffffffffffffffffffffff168152602001600067ffffffffffffffff1681526020016000151581525090565b5b80821115613a4e576000816000905550600101613a36565b5090565b6000613a65613a6084614791565b61476c565b905082815260208101848484011115613a8157613a80614c61565b5b613a8c8482856149ee565b509392505050565b600081359050613aa381614e8e565b92915050565b600081359050613ab881614ea5565b92915050565b60008083601f840112613ad457613ad3614c57565b5b8235905067ffffffffffffffff811115613af157613af0614c52565b5b602083019150836020820283011115613b0d57613b0c614c5c565b5b9250929050565b600081359050613b2381614ebc565b92915050565b600081359050613b3881614ed3565b92915050565b600081359050613b4d81614eea565b92915050565b600081519050613b6281614eea565b92915050565b60008083601f840112613b7e57613b7d614c57565b5b8235905067ffffffffffffffff811115613b9b57613b9a614c52565b5b602083019150836001820283011115613bb757613bb6614c5c565b5b9250929050565b600082601f830112613bd357613bd2614c57565b5b8135613be3848260208601613a52565b91505092915050565b60008083601f840112613c0257613c01614c57565b5b8235905067ffffffffffffffff811115613c1f57613c1e614c52565b5b602083019150836001820283011115613c3b57613c3a614c5c565b5b9250929050565b600081359050613c5181614f01565b92915050565b600081359050613c6681614f18565b92915050565b600081359050613c7b81614f2f565b92915050565b600060208284031215613c9757613c96614c6b565b5b6000613ca584828501613a94565b91505092915050565b600060208284031215613cc457613cc3614c6b565b5b6000613cd284828501613aa9565b91505092915050565b60008060408385031215613cf257613cf1614c6b565b5b6000613d0085828601613a94565b9250506020613d1185828601613a94565b9150509250929050565b600080600060608486031215613d3457613d33614c6b565b5b6000613d4286828701613a94565b9350506020613d5386828701613a94565b9250506040613d6486828701613c42565b9150509250925092565b60008060008060808587031215613d8857613d87614c6b565b5b6000613d9687828801613a94565b9450506020613da787828801613a94565b9350506040613db887828801613c42565b925050606085013567ffffffffffffffff811115613dd957613dd8614c66565b5b613de587828801613bbe565b91505092959194509250565b60008060408385031215613e0857613e07614c6b565b5b6000613e1685828601613a94565b9250506020613e2785828601613b14565b9150509250929050565b60008060408385031215613e4857613e47614c6b565b5b6000613e5685828601613a94565b9250506020613e6785828601613c42565b9150509250929050565b600080600060608486031215613e8a57613e89614c6b565b5b6000613e9886828701613a94565b9350506020613ea986828701613c42565b9250506040613eba86828701613c42565b9150509250925092565b60008060208385031215613edb57613eda614c6b565b5b600083013567ffffffffffffffff811115613ef957613ef8614c66565b5b613f0585828601613abe565b92509250509250929050565b600060208284031215613f2757613f26614c6b565b5b6000613f3584828501613b14565b91505092915050565b600060208284031215613f5457613f53614c6b565b5b6000613f6284828501613b3e565b91505092915050565b600060208284031215613f8157613f80614c6b565b5b6000613f8f84828501613b53565b91505092915050565b60008060208385031215613faf57613fae614c6b565b5b600083013567ffffffffffffffff811115613fcd57613fcc614c66565b5b613fd985828601613bec565b92509250509250929050565b600060208284031215613ffb57613ffa614c6b565b5b600061400984828501613c42565b91505092915050565b6000806040838503121561402957614028614c6b565b5b600061403785828601613c42565b925050602061404885828601613a94565b9150509250929050565b6000806000806060858703121561406c5761406b614c6b565b5b600061407a87828801613c42565b945050602061408b87828801613b29565b935050604085013567ffffffffffffffff8111156140ac576140ab614c66565b5b6140b887828801613b68565b925092505092959194509250565b6000806000806000608086880312156140e2576140e1614c6b565b5b60006140f088828901613c57565b955050602061410188828901613c57565b945050604061411288828901613c6c565b935050606086013567ffffffffffffffff81111561413357614132614c66565b5b61413f88828901613b68565b92509250509295509295909350565b600061415a8383614420565b60208301905092915050565b61416f8161492d565b82525050565b6141866141818261492d565b614adc565b82525050565b6000614197826147d2565b6141a18185614800565b93506141ac836147c2565b8060005b838110156141dd5781516141c4888261414e565b97506141cf836147f3565b9250506001810190506141b0565b5085935050505092915050565b6141f381614951565b82525050565b6142028161495d565b82525050565b6142196142148261495d565b614aee565b82525050565b600061422a826147dd565b6142348185614811565b93506142448185602086016149fd565b61424d81614c70565b840191505092915050565b6000614263826147e8565b61426d818561482d565b935061427d8185602086016149fd565b61428681614c70565b840191505092915050565b600061429c826147e8565b6142a6818561483e565b93506142b68185602086016149fd565b80840191505092915050565b60006142cf60188361482d565b91506142da82614ca8565b602082019050919050565b60006142f2601f8361482d565b91506142fd82614cd1565b602082019050919050565b6000614315601c8361483e565b915061432082614cfa565b601c82019050919050565b600061433860268361482d565b915061434382614d23565b604082019050919050565b600061435b60228361482d565b915061436682614d72565b604082019050919050565b600061437e60078361483e565b915061438982614dc1565b600782019050919050565b60006143a160228361482d565b91506143ac82614dea565b604082019050919050565b60006143c460208361482d565b91506143cf82614e39565b602082019050919050565b60006143e7600083614822565b91506143f282614e62565b600082019050919050565b600061440a601f8361482d565b915061441582614e65565b602082019050919050565b614429816149b3565b82525050565b614438816149b3565b82525050565b61444f61444a826149b3565b614b0a565b82525050565b614466614461826149bd565b614b14565b82525050565b61447d614478826149cd565b614b26565b82525050565b61448c816149e1565b82525050565b600061449e8286614175565b6014820191506144ae8285614455565b6004820191506144be828461446c565b600882019150819050949350505050565b60006144da82614308565b91506144e68284614208565b60208201915081905092915050565b600061450082614371565b915061450c8284614291565b915081905092915050565b6000614522826143da565b9150819050919050565b6000614538828561443e565b6020820191506145488284614208565b6020820191508190509392505050565b600060208201905061456d6000830184614166565b92915050565b60006080820190506145886000830187614166565b6145956020830186614166565b6145a2604083018561442f565b81810360608301526145b4818461421f565b905095945050505050565b600060408201905081810360008301526145d9818561418c565b90506145e8602083018461442f565b9392505050565b600060208201905061460460008301846141ea565b92915050565b600060808201905061461f60008301876141f9565b61462c6020830186614483565b61463960408301856141f9565b61464660608301846141f9565b95945050505050565b600060208201905081810360008301526146698184614258565b905092915050565b6000602082019050818103600083015261468a816142c2565b9050919050565b600060208201905081810360008301526146aa816142e5565b9050919050565b600060208201905081810360008301526146ca8161432b565b9050919050565b600060208201905081810360008301526146ea8161434e565b9050919050565b6000602082019050818103600083015261470a81614394565b9050919050565b6000602082019050818103600083015261472a816143b7565b9050919050565b6000602082019050818103600083015261474a816143fd565b9050919050565b6000602082019050614766600083018461442f565b92915050565b6000614776614787565b90506147828282614a62565b919050565b6000604051905090565b600067ffffffffffffffff8211156147ac576147ab614c23565b5b6147b582614c70565b9050602081019050919050565b6000819050602082019050919050565b600081519050919050565b600081519050919050565b600081519050919050565b6000602082019050919050565b600082825260208201905092915050565b600082825260208201905092915050565b600081905092915050565b600082825260208201905092915050565b600081905092915050565b6000614854826149b3565b915061485f836149b3565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0382111561489457614893614b38565b5b828201905092915050565b60006148aa826149b3565b91506148b5836149b3565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04831182151516156148ee576148ed614b38565b5b828202905092915050565b6000614904826149b3565b915061490f836149b3565b92508282101561492257614921614b38565b5b828203905092915050565b600061493882614993565b9050919050565b600061494a82614993565b9050919050565b60008115159050919050565b6000819050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b600063ffffffff82169050919050565b600067ffffffffffffffff82169050919050565b600060ff82169050919050565b82818337600083830152505050565b60005b83811015614a1b578082015181840152602081019050614a00565b83811115614a2a576000848401525b50505050565b60006002820490506001821680614a4857607f821691505b60208210811415614a5c57614a5b614bc5565b5b50919050565b614a6b82614c70565b810181811067ffffffffffffffff82111715614a8a57614a89614c23565b5b80604052505050565b6000614a9e826149b3565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415614ad157614ad0614b38565b5b600182019050919050565b6000614ae782614af8565b9050919050565b6000819050919050565b6000614b0382614c9b565b9050919050565b6000819050919050565b6000614b1f82614c8e565b9050919050565b6000614b3182614c81565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b60008160c01b9050919050565b60008160e01b9050919050565b60008160601b9050919050565b7f45434453413a20696e76616c6964207369676e61747572650000000000000000600082015250565b7f45434453413a20696e76616c6964207369676e6174757265206c656e67746800600082015250565b7f19457468657265756d205369676e6564204d6573736167653a0a333200000000600082015250565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f45434453413a20696e76616c6964207369676e6174757265202773272076616c60008201527f7565000000000000000000000000000000000000000000000000000000000000602082015250565b7f697066733a2f2f00000000000000000000000000000000000000000000000000600082015250565b7f45434453413a20696e76616c6964207369676e6174757265202776272076616c60008201527f7565000000000000000000000000000000000000000000000000000000000000602082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b50565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b614e978161492d565b8114614ea257600080fd5b50565b614eae8161493f565b8114614eb957600080fd5b50565b614ec581614951565b8114614ed057600080fd5b50565b614edc8161495d565b8114614ee757600080fd5b50565b614ef381614967565b8114614efe57600080fd5b50565b614f0a816149b3565b8114614f1557600080fd5b50565b614f21816149bd565b8114614f2c57600080fd5b50565b614f38816149cd565b8114614f4357600080fd5b5056fe0004280b12170928310012042820252522311b1d392909261b290b020a182522241b392c1d390706292513152c1731323334353637383941424344454647484a4b4c4d4e505152535455565758595a6162636465666768696a6b6d6e6f707172737475767778797aa26469706673582212201b4d79ee1dd11edeeaf5d7127672b364b4cddb62ec2145586f97719f19e9a31464736f6c63430008070033000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000c0000000000000000000000000d2962d91b614933871b0b36c4d2d662a47530c3000000000000000000000000000000000000000000000000000000000000003f200000000000000000000000000000000000000000000000000000000000000094d617472697844414f000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000064d41545249580000000000000000000000000000000000000000000000000000

Deployed Bytecode

0x6080604052600436106101f95760003560e01c806370a082311161010d578063a22cb465116100a0578063c87b56dd1161006f578063c87b56dd146106ee578063dc33e6811461072b578063e985e9c514610768578063f0ec1065146107a5578063f2fde38b146107e2576101f9565b8063a22cb46514610648578063a2309ff814610671578063b17c1d9d1461069c578063b88d4fde146106c5576101f9565b806395d89b41116100dc57806395d89b41146105ad57806396cf73cf146105d857806397bc411c146105f4578063a035b1fe1461061d576101f9565b806370a0823114610505578063715018a6146105425780638da5cb5b1461055957806391b7f5ed14610584576101f9565b8063390a5b9a116101905780634ad505161161015f5780634ad505161461042f57806351cff8d91461045857806352cf02f0146104745780636352211e1461049f5780636c19e783146104dc576101f9565b8063390a5b9a1461037457806342842e0e1461039f57806342d0abd7146103c857806349a0a50e146103f1576101f9565b806318160ddd116101cc57806318160ddd146102cc5780632126ea81146102f757806323b872dd146103225780632d1a12f61461034b576101f9565b806301ffc9a7146101fe57806306fdde031461023b578063081812fc14610266578063095ea7b3146102a3575b600080fd5b34801561020a57600080fd5b5061022560048036038101906102209190613f3e565b61080b565b60405161023291906145ef565b60405180910390f35b34801561024757600080fd5b506102506108ed565b60405161025d919061464f565b60405180910390f35b34801561027257600080fd5b5061028d60048036038101906102889190613fe5565b61097f565b60405161029a9190614558565b60405180910390f35b3480156102af57600080fd5b506102ca60048036038101906102c59190613e31565b6109fb565b005b3480156102d857600080fd5b506102e1610b06565b6040516102ee9190614751565b60405180910390f35b34801561030357600080fd5b5061030c610b1d565b604051610319919061464f565b60405180910390f35b34801561032e57600080fd5b5061034960048036038101906103449190613d1b565b610bab565b005b34801561035757600080fd5b50610372600480360381019061036d9190614012565b610bbb565b005b34801561038057600080fd5b50610389610c93565b6040516103969190614751565b60405180910390f35b3480156103ab57600080fd5b506103c660048036038101906103c19190613d1b565b610c99565b005b3480156103d457600080fd5b506103ef60048036038101906103ea9190614052565b610cb9565b005b3480156103fd57600080fd5b5061041860048036038101906104139190613e71565b610ee1565b6040516104269291906145bf565b60405180910390f35b34801561043b57600080fd5b5061045660048036038101906104519190613f11565b61129b565b005b610472600480360381019061046d9190613cae565b611334565b005b34801561048057600080fd5b5061048961142a565b60405161049691906145ef565b60405180910390f35b3480156104ab57600080fd5b506104c660048036038101906104c19190613fe5565b61143d565b6040516104d39190614558565b60405180910390f35b3480156104e857600080fd5b5061050360048036038101906104fe9190613c81565b611453565b005b34801561051157600080fd5b5061052c60048036038101906105279190613c81565b611513565b6040516105399190614751565b60405180910390f35b34801561054e57600080fd5b506105576115e3565b005b34801561056557600080fd5b5061056e61166b565b60405161057b9190614558565b60405180910390f35b34801561059057600080fd5b506105ab60048036038101906105a69190613fe5565b611695565b005b3480156105b957600080fd5b506105c261171b565b6040516105cf919061464f565b60405180910390f35b6105f260048036038101906105ed91906140c6565b6117ad565b005b34801561060057600080fd5b5061061b60048036038101906106169190613f98565b61198d565b005b34801561062957600080fd5b50610632611a1f565b60405161063f9190614751565b60405180910390f35b34801561065457600080fd5b5061066f600480360381019061066a9190613df1565b611a25565b005b34801561067d57600080fd5b50610686611b9d565b6040516106939190614751565b60405180910390f35b3480156106a857600080fd5b506106c360048036038101906106be9190613ec4565b611bac565b005b3480156106d157600080fd5b506106ec60048036038101906106e79190613d6e565b611cd1565b005b3480156106fa57600080fd5b5061071560048036038101906107109190613fe5565b611d4d565b604051610722919061464f565b60405180910390f35b34801561073757600080fd5b50610752600480360381019061074d9190613c81565b611e87565b60405161075f9190614751565b60405180910390f35b34801561077457600080fd5b5061078f600480360381019061078a9190613cdb565b611e99565b60405161079c91906145ef565b60405180910390f35b3480156107b157600080fd5b506107cc60048036038101906107c79190613fe5565b611f2d565b6040516107d991906145ef565b60405180910390f35b3480156107ee57600080fd5b5061080960048036038101906108049190613c81565b611f8f565b005b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806108d657507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b806108e657506108e582612087565b5b9050919050565b6060600280546108fc90614a30565b80601f016020809104026020016040519081016040528092919081815260200182805461092890614a30565b80156109755780601f1061094a57610100808354040283529160200191610975565b820191906000526020600020905b81548152906001019060200180831161095857829003601f168201915b5050505050905090565b600061098a826120f1565b6109c0576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6006600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610a068261143d565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610a6e576040517f943f7b8c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610a8d61213f565b73ffffffffffffffffffffffffffffffffffffffff1614158015610abf5750610abd81610ab861213f565b611e99565b155b15610af6576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610b01838383612147565b505050565b6000610b106121f9565b6001546000540303905090565b600d8054610b2a90614a30565b80601f0160208091040260200160405190810160405280929190818152602001828054610b5690614a30565b8015610ba35780601f10610b7857610100808354040283529160200191610ba3565b820191906000526020600020905b815481529060010190602001808311610b8657829003601f168201915b505050505081565b610bb6838383612202565b505050565b610bc361213f565b73ffffffffffffffffffffffffffffffffffffffff16610be161166b565b73ffffffffffffffffffffffffffffffffffffffff1614610c37576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c2e90614711565b60405180910390fd5b600c5482610c43610b06565b610c4d9190614849565b1115610c85576040517f794bb39b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610c8f81836126f3565b5050565b600c5481565b610cb483838360405180602001604052806000815250611cd1565b505050565b60026009541415610cff576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610cf690614731565b60405180910390fd5b6002600981905550600e60009054906101000a900460ff16610d4d576040517f44300a9900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b3373ffffffffffffffffffffffffffffffffffffffff16610d6d8561143d565b73ffffffffffffffffffffffffffffffffffffffff1614610dba576040517f5e1cb9bf00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610e09848484848080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f82011690508083019250505050505050612711565b610e3f576040517fe9aee7d800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000801b600f60008681526020019081526020016000205414610e8e576040517f5a049a9000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b82600f600086815260200190815260200160002081905550837f15120e52505e619cbf6c2af910d5cf7f9ee1befa55801b078c33e93880b2d60960405160405180910390a2600160098190555050505050565b6060600080831415610eff576001600054610efc91906148f9565b92505b610f076121f9565b841080610f1657506000548310155b15610f4d576040517fa723001c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600080610f5987611513565b90506000811415610fc657600067ffffffffffffffff811115610f7f57610f7e614c23565b5b604051908082528060200260200182016040528015610fad5781602001602082028036833780820191505090505b50600186610fbb9190614849565b935093505050611293565b610100811115610fd65761010090505b60008167ffffffffffffffff811115610ff257610ff1614c23565b5b6040519080825280602002602001820160405280156110205781602001602082028036833780820191505090505b50905060008061102f8961143d565b90508894505b8785116111d357600073ffffffffffffffffffffffffffffffffffffffff166004600087815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16146110e0576004600086815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690505b60046000868152602001908152602001600020600001601c9054906101000a900460ff1615801561113c57508973ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16145b156111c0578483838151811061115557611154614bf4565b5b602002602001018181525050818061116c90614a93565b925050838214156111bf576111808a611513565b8414156111a357826001896111959190614849565b965096505050505050611293565b826001866111b19190614849565b965096505050505050611293565b5b84806111cb90614a93565b955050611035565b60008267ffffffffffffffff8111156111ef576111ee614c23565b5b60405190808252806020026020018201604052801561121d5781602001602082028036833780820191505090505b509050600095505b8286101561127a578386815181106112405761123f614bf4565b5b602002602001015181878151811061125b5761125a614bf4565b5b602002602001018181525050858061127290614a93565b965050611225565b8060018a6112889190614849565b975097505050505050505b935093915050565b6112a361213f565b73ffffffffffffffffffffffffffffffffffffffff166112c161166b565b73ffffffffffffffffffffffffffffffffffffffff1614611317576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161130e90614711565b60405180910390fd5b80600e60006101000a81548160ff02191690831515021790555050565b61133c61213f565b73ffffffffffffffffffffffffffffffffffffffff1661135a61166b565b73ffffffffffffffffffffffffffffffffffffffff16146113b0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113a790614711565b60405180910390fd5b60008173ffffffffffffffffffffffffffffffffffffffff16476040516113d690614517565b60006040518083038185875af1925050503d8060008114611413576040519150601f19603f3d011682016040523d82523d6000602084013e611418565b606091505b505090508061142657600080fd5b5050565b600e60009054906101000a900460ff1681565b6000611448826127ba565b600001519050919050565b61145b61213f565b73ffffffffffffffffffffffffffffffffffffffff1661147961166b565b73ffffffffffffffffffffffffffffffffffffffff16146114cf576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114c690614711565b60405180910390fd5b80600a60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141561157b576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600560008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160009054906101000a900467ffffffffffffffff1667ffffffffffffffff169050919050565b6115eb61213f565b73ffffffffffffffffffffffffffffffffffffffff1661160961166b565b73ffffffffffffffffffffffffffffffffffffffff161461165f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161165690614711565b60405180910390fd5b6116696000612a49565b565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b61169d61213f565b73ffffffffffffffffffffffffffffffffffffffff166116bb61166b565b73ffffffffffffffffffffffffffffffffffffffff1614611711576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161170890614711565b60405180910390fd5b80600b8190555050565b60606003805461172a90614a30565b80601f016020809104026020016040519081016040528092919081815260200182805461175690614a30565b80156117a35780601f10611778576101008083540402835291602001916117a3565b820191906000526020600020905b81548152906001019060200180831161178657829003601f168201915b5050505050905090565b600c548563ffffffff166117bf610b06565b6117c99190614849565b1115611801576040517f794bb39b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8267ffffffffffffffff16421115611845576040517fe397952c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8363ffffffff168563ffffffff1661185c33612b0f565b6118669190614849565b111561189e576040517fb903011a00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6118ee33858585858080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f82011690508083019250505050505050612bdf565b611924576040517fc1606c2f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008563ffffffff16600b5461193a919061489f565b9050803414611975576040517ffa47be2b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b611985338763ffffffff166126f3565b505050505050565b61199561213f565b73ffffffffffffffffffffffffffffffffffffffff166119b361166b565b73ffffffffffffffffffffffffffffffffffffffff1614611a09576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a0090614711565b60405180910390fd5b8181600d9190611a1a92919061396c565b505050565b600b5481565b611a2d61213f565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611a92576040517fb06307db00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8060076000611a9f61213f565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff16611b4c61213f565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051611b9191906145ef565b60405180910390a35050565b6000611ba7612c8b565b905090565b611bb461213f565b73ffffffffffffffffffffffffffffffffffffffff16611bd261166b565b73ffffffffffffffffffffffffffffffffffffffff1614611c28576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c1f90614711565b60405180910390fd5b600c5482829050611c37610b06565b611c419190614849565b1115611c79576040517f794bb39b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60005b82829050811015611ccc57611cb9838383818110611c9d57611c9c614bf4565b5b9050602002016020810190611cb29190613c81565b60016126f3565b8080611cc490614a93565b915050611c7c565b505050565b611cdc848484612202565b611cfb8373ffffffffffffffffffffffffffffffffffffffff16612c9e565b8015611d105750611d0e84848484612cc1565b155b15611d47576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b50505050565b6060611d58826120f1565b611d8e576040517fa14c4b5000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000801b600f6000848152602001908152602001600020541415611e3e57600d8054611db990614a30565b80601f0160208091040260200160405190810160405280929190818152602001828054611de590614a30565b8015611e325780601f10611e0757610100808354040283529160200191611e32565b820191906000526020600020905b815481529060010190602001808311611e1557829003601f168201915b50505050509050611e82565b6000600f6000848152602001908152602001600020549050611e5f81612e21565b604051602001611e6f91906144f5565b6040516020818303038152906040529150505b919050565b6000611e9282612b0f565b9050919050565b6000600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b6000611f38826120f1565b611f6e576040517f509fe01c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000801b600f60008481526020019081526020016000205414159050919050565b611f9761213f565b73ffffffffffffffffffffffffffffffffffffffff16611fb561166b565b73ffffffffffffffffffffffffffffffffffffffff161461200b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161200290614711565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16141561207b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612072906146b1565b60405180910390fd5b61208481612a49565b50565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b6000816120fc6121f9565b1115801561210b575060005482105b8015612138575060046000838152602001908152602001600020600001601c9054906101000a900460ff16155b9050919050565b600033905090565b826006600084815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b60006001905090565b600061220d826127ba565b90506000816000015173ffffffffffffffffffffffffffffffffffffffff1661223461213f565b73ffffffffffffffffffffffffffffffffffffffff1614806122675750612266826000015161226161213f565b611e99565b5b806122ac575061227561213f565b73ffffffffffffffffffffffffffffffffffffffff166122948461097f565b73ffffffffffffffffffffffffffffffffffffffff16145b9050806122e5576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8473ffffffffffffffffffffffffffffffffffffffff16826000015173ffffffffffffffffffffffffffffffffffffffff161461234e576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1614156123b5576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6123c28585856001613165565b6123d26000848460000151612147565b6001600560008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160008282829054906101000a900467ffffffffffffffff160392506101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055506001600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160008282829054906101000a900467ffffffffffffffff160192506101000a81548167ffffffffffffffff021916908367ffffffffffffffff160217905550836004600085815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550426004600085815260200190815260200160002060000160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055506000600184019050600073ffffffffffffffffffffffffffffffffffffffff166004600083815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161415612683576000548110156126825782600001516004600083815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555082602001516004600083815260200190815260200160002060000160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055505b5b50828473ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46126ec858585600161316b565b5050505050565b61270d828260405180602001604052806000815250613171565b5050565b600080848460405160200161272792919061452c565b604051602081830303815290604052805190602001209050600061274a82613183565b9050600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1661279885836131b390919063ffffffff16565b73ffffffffffffffffffffffffffffffffffffffff1614925050509392505050565b6127c26139f2565b6000829050806127d06121f9565b111580156127df575060005481105b15612a12576000600460008381526020019081526020016000206040518060600160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a900467ffffffffffffffff1667ffffffffffffffff1667ffffffffffffffff16815260200160008201601c9054906101000a900460ff16151515158152505090508060400151612a1057600073ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff16146128f4578092505050612a44565b5b600115612a0f57818060019003925050600460008381526020019081526020016000206040518060600160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a900467ffffffffffffffff1667ffffffffffffffff1667ffffffffffffffff16815260200160008201601c9054906101000a900460ff1615151515815250509050600073ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff1614612a0a578092505050612a44565b6128f5565b5b505b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b919050565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415612b77576040517f35ebb31900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600560008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160089054906101000a900467ffffffffffffffff1667ffffffffffffffff169050919050565b600080858585604051602001612bf793929190614492565b6040516020818303038152906040528051906020012090506000612c1a82613183565b9050600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16612c6885836131b390919063ffffffff16565b73ffffffffffffffffffffffffffffffffffffffff161492505050949350505050565b6000612c956121f9565b60005403905090565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b60008373ffffffffffffffffffffffffffffffffffffffff1663150b7a02612ce761213f565b8786866040518563ffffffff1660e01b8152600401612d099493929190614573565b602060405180830381600087803b158015612d2357600080fd5b505af1925050508015612d5457506040513d601f19601f82011682018060405250810190612d519190613f6b565b60015b612dce573d8060008114612d84576040519150601f19603f3d011682016040523d82523d6000602084013e612d89565b606091505b50600081511415612dc6576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050949350505050565b60606000602e67ffffffffffffffff811115612e4057612e3f614c23565b5b6040519080825280601f01601f191660200182016040528015612e725781602001600182028036833780820191505090505b5090506000602d905060008460001c90505b6000811115612f0c576000603a8281612ea057612e9f614b67565b5b0690508060f81b848481518110612eba57612eb9614bf4565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350828060019003935050603a8281612f0357612f02614b67565b5b04915050612e84565b60005b602e8110156130a35760006040518060600160405280602e8152602001614f47602e91398281518110612f4557612f44614bf4565b5b602001015160f81c60f81b60f81c8583602d0381518110612f6957612f68614bf4565b5b602001015160f81c60f81b60f81c019050603a8160ff161061304b57603a810360f81b8583602d0381518110612fa257612fa1614bf4565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600185600184602d030381518110612fec57612feb614bf4565b5b602001015160f81c60f81b60f81c0160f81b85600184602d03038151811061301757613016614bf4565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350613095565b8060f81b8583602d038151811061306557613064614bf4565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053505b508080600101915050612f0f565b600090505b602e811015613159576040518060600160405280603a8152602001614f75603a91398482815181106130dd576130dc614bf4565b5b602001015160f81c60f81b60f81c60ff16815181106130ff576130fe614bf4565b5b602001015160f81c60f81b84828151811061311d5761311c614bf4565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a90535080806001019150506130a8565b83945050505050919050565b50505050565b50505050565b61317e83838360016131da565b505050565b60008160405160200161319691906144cf565b604051602081830303815290604052805190602001209050919050565b60008060006131c285856135a8565b915091506131cf8161362b565b819250505092915050565b600080549050600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff161415613247576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000841415613282576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61328f6000868387613165565b83600560008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160008282829054906101000a900467ffffffffffffffff160192506101000a81548167ffffffffffffffff021916908367ffffffffffffffff16021790555083600560008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160088282829054906101000a900467ffffffffffffffff160192506101000a81548167ffffffffffffffff021916908367ffffffffffffffff160217905550846004600083815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550426004600083815260200190815260200160002060000160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff16021790555060008190506000858201905083801561345957506134588773ffffffffffffffffffffffffffffffffffffffff16612c9e565b5b1561351f575b818773ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46134ce6000888480600101955088612cc1565b613504576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8082141561345f57826000541461351a57600080fd5b61358b565b5b818060010192508773ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a480821415613520575b8160008190555050506135a1600086838761316b565b5050505050565b6000806041835114156135ea5760008060006020860151925060408601519150606086015160001a90506135de87828585613800565b94509450505050613624565b60408351141561361b57600080602085015191506040850151905061361086838361390d565b935093505050613624565b60006002915091505b9250929050565b6000600481111561363f5761363e614b96565b5b81600481111561365257613651614b96565b5b141561365d576137fd565b6001600481111561367157613670614b96565b5b81600481111561368457613683614b96565b5b14156136c5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016136bc90614671565b60405180910390fd5b600260048111156136d9576136d8614b96565b5b8160048111156136ec576136eb614b96565b5b141561372d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161372490614691565b60405180910390fd5b6003600481111561374157613740614b96565b5b81600481111561375457613753614b96565b5b1415613795576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161378c906146d1565b60405180910390fd5b6004808111156137a8576137a7614b96565b5b8160048111156137bb576137ba614b96565b5b14156137fc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016137f3906146f1565b60405180910390fd5b5b50565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08360001c111561383b576000600391509150613904565b601b8560ff16141580156138535750601c8560ff1614155b15613865576000600491509150613904565b60006001878787876040516000815260200160405260405161388a949392919061460a565b6020604051602081039080840390855afa1580156138ac573d6000803e3d6000fd5b505050602060405103519050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156138fb57600060019250925050613904565b80600092509250505b94509492505050565b60008060007f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff60001b841690506000601b60ff8660001c901c6139509190614849565b905061395e87828885613800565b935093505050935093915050565b82805461397890614a30565b90600052602060002090601f01602090048101928261399a57600085556139e1565b82601f106139b357803560ff19168380011785556139e1565b828001600101855582156139e1579182015b828111156139e05782358255916020019190600101906139c5565b5b5090506139ee9190613a35565b5090565b6040518060600160405280600073ffffffffffffffffffffffffffffffffffffffff168152602001600067ffffffffffffffff1681526020016000151581525090565b5b80821115613a4e576000816000905550600101613a36565b5090565b6000613a65613a6084614791565b61476c565b905082815260208101848484011115613a8157613a80614c61565b5b613a8c8482856149ee565b509392505050565b600081359050613aa381614e8e565b92915050565b600081359050613ab881614ea5565b92915050565b60008083601f840112613ad457613ad3614c57565b5b8235905067ffffffffffffffff811115613af157613af0614c52565b5b602083019150836020820283011115613b0d57613b0c614c5c565b5b9250929050565b600081359050613b2381614ebc565b92915050565b600081359050613b3881614ed3565b92915050565b600081359050613b4d81614eea565b92915050565b600081519050613b6281614eea565b92915050565b60008083601f840112613b7e57613b7d614c57565b5b8235905067ffffffffffffffff811115613b9b57613b9a614c52565b5b602083019150836001820283011115613bb757613bb6614c5c565b5b9250929050565b600082601f830112613bd357613bd2614c57565b5b8135613be3848260208601613a52565b91505092915050565b60008083601f840112613c0257613c01614c57565b5b8235905067ffffffffffffffff811115613c1f57613c1e614c52565b5b602083019150836001820283011115613c3b57613c3a614c5c565b5b9250929050565b600081359050613c5181614f01565b92915050565b600081359050613c6681614f18565b92915050565b600081359050613c7b81614f2f565b92915050565b600060208284031215613c9757613c96614c6b565b5b6000613ca584828501613a94565b91505092915050565b600060208284031215613cc457613cc3614c6b565b5b6000613cd284828501613aa9565b91505092915050565b60008060408385031215613cf257613cf1614c6b565b5b6000613d0085828601613a94565b9250506020613d1185828601613a94565b9150509250929050565b600080600060608486031215613d3457613d33614c6b565b5b6000613d4286828701613a94565b9350506020613d5386828701613a94565b9250506040613d6486828701613c42565b9150509250925092565b60008060008060808587031215613d8857613d87614c6b565b5b6000613d9687828801613a94565b9450506020613da787828801613a94565b9350506040613db887828801613c42565b925050606085013567ffffffffffffffff811115613dd957613dd8614c66565b5b613de587828801613bbe565b91505092959194509250565b60008060408385031215613e0857613e07614c6b565b5b6000613e1685828601613a94565b9250506020613e2785828601613b14565b9150509250929050565b60008060408385031215613e4857613e47614c6b565b5b6000613e5685828601613a94565b9250506020613e6785828601613c42565b9150509250929050565b600080600060608486031215613e8a57613e89614c6b565b5b6000613e9886828701613a94565b9350506020613ea986828701613c42565b9250506040613eba86828701613c42565b9150509250925092565b60008060208385031215613edb57613eda614c6b565b5b600083013567ffffffffffffffff811115613ef957613ef8614c66565b5b613f0585828601613abe565b92509250509250929050565b600060208284031215613f2757613f26614c6b565b5b6000613f3584828501613b14565b91505092915050565b600060208284031215613f5457613f53614c6b565b5b6000613f6284828501613b3e565b91505092915050565b600060208284031215613f8157613f80614c6b565b5b6000613f8f84828501613b53565b91505092915050565b60008060208385031215613faf57613fae614c6b565b5b600083013567ffffffffffffffff811115613fcd57613fcc614c66565b5b613fd985828601613bec565b92509250509250929050565b600060208284031215613ffb57613ffa614c6b565b5b600061400984828501613c42565b91505092915050565b6000806040838503121561402957614028614c6b565b5b600061403785828601613c42565b925050602061404885828601613a94565b9150509250929050565b6000806000806060858703121561406c5761406b614c6b565b5b600061407a87828801613c42565b945050602061408b87828801613b29565b935050604085013567ffffffffffffffff8111156140ac576140ab614c66565b5b6140b887828801613b68565b925092505092959194509250565b6000806000806000608086880312156140e2576140e1614c6b565b5b60006140f088828901613c57565b955050602061410188828901613c57565b945050604061411288828901613c6c565b935050606086013567ffffffffffffffff81111561413357614132614c66565b5b61413f88828901613b68565b92509250509295509295909350565b600061415a8383614420565b60208301905092915050565b61416f8161492d565b82525050565b6141866141818261492d565b614adc565b82525050565b6000614197826147d2565b6141a18185614800565b93506141ac836147c2565b8060005b838110156141dd5781516141c4888261414e565b97506141cf836147f3565b9250506001810190506141b0565b5085935050505092915050565b6141f381614951565b82525050565b6142028161495d565b82525050565b6142196142148261495d565b614aee565b82525050565b600061422a826147dd565b6142348185614811565b93506142448185602086016149fd565b61424d81614c70565b840191505092915050565b6000614263826147e8565b61426d818561482d565b935061427d8185602086016149fd565b61428681614c70565b840191505092915050565b600061429c826147e8565b6142a6818561483e565b93506142b68185602086016149fd565b80840191505092915050565b60006142cf60188361482d565b91506142da82614ca8565b602082019050919050565b60006142f2601f8361482d565b91506142fd82614cd1565b602082019050919050565b6000614315601c8361483e565b915061432082614cfa565b601c82019050919050565b600061433860268361482d565b915061434382614d23565b604082019050919050565b600061435b60228361482d565b915061436682614d72565b604082019050919050565b600061437e60078361483e565b915061438982614dc1565b600782019050919050565b60006143a160228361482d565b91506143ac82614dea565b604082019050919050565b60006143c460208361482d565b91506143cf82614e39565b602082019050919050565b60006143e7600083614822565b91506143f282614e62565b600082019050919050565b600061440a601f8361482d565b915061441582614e65565b602082019050919050565b614429816149b3565b82525050565b614438816149b3565b82525050565b61444f61444a826149b3565b614b0a565b82525050565b614466614461826149bd565b614b14565b82525050565b61447d614478826149cd565b614b26565b82525050565b61448c816149e1565b82525050565b600061449e8286614175565b6014820191506144ae8285614455565b6004820191506144be828461446c565b600882019150819050949350505050565b60006144da82614308565b91506144e68284614208565b60208201915081905092915050565b600061450082614371565b915061450c8284614291565b915081905092915050565b6000614522826143da565b9150819050919050565b6000614538828561443e565b6020820191506145488284614208565b6020820191508190509392505050565b600060208201905061456d6000830184614166565b92915050565b60006080820190506145886000830187614166565b6145956020830186614166565b6145a2604083018561442f565b81810360608301526145b4818461421f565b905095945050505050565b600060408201905081810360008301526145d9818561418c565b90506145e8602083018461442f565b9392505050565b600060208201905061460460008301846141ea565b92915050565b600060808201905061461f60008301876141f9565b61462c6020830186614483565b61463960408301856141f9565b61464660608301846141f9565b95945050505050565b600060208201905081810360008301526146698184614258565b905092915050565b6000602082019050818103600083015261468a816142c2565b9050919050565b600060208201905081810360008301526146aa816142e5565b9050919050565b600060208201905081810360008301526146ca8161432b565b9050919050565b600060208201905081810360008301526146ea8161434e565b9050919050565b6000602082019050818103600083015261470a81614394565b9050919050565b6000602082019050818103600083015261472a816143b7565b9050919050565b6000602082019050818103600083015261474a816143fd565b9050919050565b6000602082019050614766600083018461442f565b92915050565b6000614776614787565b90506147828282614a62565b919050565b6000604051905090565b600067ffffffffffffffff8211156147ac576147ab614c23565b5b6147b582614c70565b9050602081019050919050565b6000819050602082019050919050565b600081519050919050565b600081519050919050565b600081519050919050565b6000602082019050919050565b600082825260208201905092915050565b600082825260208201905092915050565b600081905092915050565b600082825260208201905092915050565b600081905092915050565b6000614854826149b3565b915061485f836149b3565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0382111561489457614893614b38565b5b828201905092915050565b60006148aa826149b3565b91506148b5836149b3565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04831182151516156148ee576148ed614b38565b5b828202905092915050565b6000614904826149b3565b915061490f836149b3565b92508282101561492257614921614b38565b5b828203905092915050565b600061493882614993565b9050919050565b600061494a82614993565b9050919050565b60008115159050919050565b6000819050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b600063ffffffff82169050919050565b600067ffffffffffffffff82169050919050565b600060ff82169050919050565b82818337600083830152505050565b60005b83811015614a1b578082015181840152602081019050614a00565b83811115614a2a576000848401525b50505050565b60006002820490506001821680614a4857607f821691505b60208210811415614a5c57614a5b614bc5565b5b50919050565b614a6b82614c70565b810181811067ffffffffffffffff82111715614a8a57614a89614c23565b5b80604052505050565b6000614a9e826149b3565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415614ad157614ad0614b38565b5b600182019050919050565b6000614ae782614af8565b9050919050565b6000819050919050565b6000614b0382614c9b565b9050919050565b6000819050919050565b6000614b1f82614c8e565b9050919050565b6000614b3182614c81565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b60008160c01b9050919050565b60008160e01b9050919050565b60008160601b9050919050565b7f45434453413a20696e76616c6964207369676e61747572650000000000000000600082015250565b7f45434453413a20696e76616c6964207369676e6174757265206c656e67746800600082015250565b7f19457468657265756d205369676e6564204d6573736167653a0a333200000000600082015250565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f45434453413a20696e76616c6964207369676e6174757265202773272076616c60008201527f7565000000000000000000000000000000000000000000000000000000000000602082015250565b7f697066733a2f2f00000000000000000000000000000000000000000000000000600082015250565b7f45434453413a20696e76616c6964207369676e6174757265202776272076616c60008201527f7565000000000000000000000000000000000000000000000000000000000000602082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b50565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b614e978161492d565b8114614ea257600080fd5b50565b614eae8161493f565b8114614eb957600080fd5b50565b614ec581614951565b8114614ed057600080fd5b50565b614edc8161495d565b8114614ee757600080fd5b50565b614ef381614967565b8114614efe57600080fd5b50565b614f0a816149b3565b8114614f1557600080fd5b50565b614f21816149bd565b8114614f2c57600080fd5b50565b614f38816149cd565b8114614f4357600080fd5b5056fe0004280b12170928310012042820252522311b1d392909261b290b020a182522241b392c1d390706292513152c1731323334353637383941424344454647484a4b4c4d4e505152535455565758595a6162636465666768696a6b6d6e6f707172737475767778797aa26469706673582212201b4d79ee1dd11edeeaf5d7127672b364b4cddb62ec2145586f97719f19e9a31464736f6c63430008070033

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

000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000c0000000000000000000000000d2962d91b614933871b0b36c4d2d662a47530c3000000000000000000000000000000000000000000000000000000000000003f200000000000000000000000000000000000000000000000000000000000000094d617472697844414f000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000064d41545249580000000000000000000000000000000000000000000000000000

-----Decoded View---------------
Arg [0] : _name (string): MatrixDAO
Arg [1] : _symbol (string): MATRIX
Arg [2] : _initSigner (address): 0xD2962d91b614933871b0B36c4d2d662A47530c30
Arg [3] : _maxCollection (uint256): 1010

-----Encoded View---------------
8 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000080
Arg [1] : 00000000000000000000000000000000000000000000000000000000000000c0
Arg [2] : 000000000000000000000000d2962d91b614933871b0b36c4d2d662a47530c30
Arg [3] : 00000000000000000000000000000000000000000000000000000000000003f2
Arg [4] : 0000000000000000000000000000000000000000000000000000000000000009
Arg [5] : 4d617472697844414f0000000000000000000000000000000000000000000000
Arg [6] : 0000000000000000000000000000000000000000000000000000000000000006
Arg [7] : 4d41545249580000000000000000000000000000000000000000000000000000


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.