ETH Price: $3,486.22 (-0.90%)
Gas: 2 Gwei

Token

Metaverse7 (META)
 

Overview

Max Total Supply

504 META

Holders

88

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Balance
80 META
0xF06509E68271A08722FBd1DB6260A37b3A743637
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:
Metaverse7

Compiler Version
v0.8.11+commit.d7f03943

Optimization Enabled:
Yes with 1000 runs

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

import "./ERC721A.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/cryptography/SignatureChecker.sol";
import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol";
import "@openzeppelin/contracts/utils/cryptography/ECDSA.sol";
import "@openzeppelin/contracts/utils/Counters.sol";
import "@openzeppelin/contracts/utils/Strings.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "./interfaces/IERC4494.sol";
import "./interfaces/IERC2981.sol";


contract Metaverse7 is ERC721A, IERC2981, IERC4494, ReentrancyGuard, Ownable {
  using Strings for uint256;
  using Counters for Counters.Counter;

  /// @dev Value is equal to keccak256("Permit(address spender,uint256 tokenId,uint256 nonce,uint256 deadline)");
  bytes32 public constant PERMIT_TYPEHASH = 0x49ecf333e5b8c95c40fdafc95c1ad136e8914a8fb55e9dc8bb01eaa83a2df9ad;
  bytes32 internal immutable nameHash;
  bytes32 internal immutable versionHash;
  uint256 internal immutable INITIAL_CHAIN_ID;
  bytes32 internal immutable INITIAL_DOMAIN_SEPARATOR;

  Counters.Counter private _tokenIds;
  mapping(uint256 => string) private _tokenURIs;
  mapping(uint256 => uint256) private _nonces;
  mapping(address => uint256) public minted;
  mapping(address => uint256) public publicMinted;
  mapping(address => bool) public founderClaimed;

  uint256 private PRICE = 0.1 ether;
  uint256 private PRESALE_PRICE = 0.07 ether;
  uint256 private MAX_PER_ADDRESS;
  uint256 private MAX_PER_ADDRESS_PUBLIC;
  uint256 private immutable MAX_SUPPLY;
  bytes32 private founderRoot;
  bytes32 private presaleRoot;
  bool public presaleFlag;
  bool public founderFlag;
  bool public publicFlag;
  string private baseURI;
  string private preRevealURI;
  string private _suffix = ".json";
  uint256 private toReveal;

  /// @notice rate and scale are the royalty rate vars
  /// @notice in the default values, there would be a 3% tax on a 18 decimal asset
  /// @dev rate: the scaled rate (divide by scale to determine traditional percentage)
  uint256 private rate = 5_000;
  /// @dev scale: how much to divide amount * rate buy
  uint256 private scale = 1e5;

  event PreRevealURIUpdated(string uri);
  event BaseURIUpdated(string uri);
  event FounderMerkleRootUpdated(bytes32 root);
  event PresaleMerkleRootUpdated(bytes32 root);
  event RevealNumberUpdated(uint256 amount);
  event RoyaltyRateUpdated(uint256 amount);
  event FlagSwitched(bool state);
  event PublicPriceUpdated(uint256 price);
  event PresalePriceUpdated(uint256 price);
  event MaxPerAddressUpdated(uint256 quantity);


  error WithdrawEthFailed();

  constructor(
    string memory name, 
    string memory symbol, 
    string memory version,
    uint256 tokenSupply,
    bytes32 _foundersRoot
  ) 
    ERC721A(name, symbol)
  {
    nameHash = keccak256(bytes(name));
    versionHash = keccak256(bytes(version));
    MAX_SUPPLY = tokenSupply;

    founderRoot = _foundersRoot;

    INITIAL_CHAIN_ID = block.chainid;
    INITIAL_DOMAIN_SEPARATOR = computeDomainSeparator();
  }

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

  function _startTokenId() internal pure override returns (uint256) {
      return 1;
  }

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

    if (bytes(baseURI).length == 0) {
      return preRevealURI;

    } else {
      if (tokenId <= toReveal){
        return string(abi.encodePacked(baseURI, tokenId.toString(), _suffix)); 
      }
      else return preRevealURI;
    }
  }

  function getCreator(uint256 tokenId) public view returns(address) {
    require(ERC721A._exists(tokenId), "getCreator: nonexistent token");
    return owner();
  }

  function switchFounderFlag(bool state) public onlyOwner {
    string memory boolString = state == true ? "true" : "false";
    require(founderFlag != state, string(abi.encodePacked("Phase Status already ", boolString)));
    founderFlag = state;
    emit FlagSwitched(state);
  }

  function switchPresaleFlag(bool state) public onlyOwner {
    string memory boolString = state == true ? "true" : "false";
    require(presaleFlag != state, string(abi.encodePacked("Phase Status already ", boolString)));
    presaleFlag = state;
    emit FlagSwitched(state);
  }

  function switchPublicFlag(bool state) public onlyOwner {
    string memory boolString = state == true ? "true" : "false";
    require(publicFlag != state, string(abi.encodePacked("Phase Status already ", boolString)));
    publicFlag = state;
    emit FlagSwitched(state);
  }

  function setRoyaltyRate(uint256 _rate) external onlyOwner {
    rate = _rate;
    emit RoyaltyRateUpdated(_rate);
  }

  function setPreRevealURI(string memory uri) external onlyOwner {
    preRevealURI = uri;
    emit PreRevealURIUpdated(uri);
  }

  function setBaseURI(string memory uri) external onlyOwner {
    baseURI = uri;
    emit BaseURIUpdated(uri);
  }

  function setFounderMerkleRoot(bytes32 _merkleRoot) public onlyOwner {
    founderRoot = _merkleRoot;
    emit FounderMerkleRootUpdated(_merkleRoot);
  }

  function setPresaleMerkleRoot(bytes32 _merkleRoot) public onlyOwner {
    presaleRoot = _merkleRoot;
    emit PresaleMerkleRootUpdated(_merkleRoot);
  }

  function setPresaleMaxPerAddress(uint256 quantity) external onlyOwner {
    MAX_PER_ADDRESS = quantity;
    emit MaxPerAddressUpdated(quantity);
  }

  function setPublicMaxPerAddress(uint256 quantity) external onlyOwner {
    MAX_PER_ADDRESS_PUBLIC = quantity;
    emit MaxPerAddressUpdated(quantity);
  }

  function setPresalePrice(uint256 price) external onlyOwner {
    require(price > 0.01 ether, "PRICE TOO LOW");
    PRESALE_PRICE = price;
    emit PresalePriceUpdated(price);
  }

  function setPublicPrice(uint256 price) external onlyOwner {
    require(price > 0.01 ether, "PRICE TOO LOW");
    PRICE = price;
    emit PublicPriceUpdated(price);
  }

  function setRevealNumber(uint256 amount) external onlyOwner {
    toReveal = amount;
    emit RevealNumberUpdated(amount);
  }

  function withdrawFunds() public onlyOwner {
    (bool os, ) = payable(owner()).call{value: address(this).balance}("");
    if (!os) revert WithdrawEthFailed();
  }


  // NOTE: in current structure, must mint entire allotted quantity in one mint
  function founderMint(address to, uint256 quantity, bytes32[] calldata proof) public payable {
    require(founderFlag, "founder mint is not Active");
    require(quantity + totalSupply() <= MAX_SUPPLY, "Insuficient Token Supply");
    require(MerkleProof.verify(proof, founderRoot, keccak256(abi.encodePacked(msg.sender, quantity))), 
      "Invalid merkle proof"
    );
    require(founderClaimed[msg.sender] == false, "Tokens have already been Minted");

    founderClaimed[msg.sender] = true;
    _safeMint(to, quantity, "");
    
  }

  function presaleMint(address to, uint256 quantity, bytes32[] calldata proof) public payable nonReentrant {
    require(presaleFlag, "presale Mint is not Active");
    require(quantity + totalSupply() <= MAX_SUPPLY, "Insuficient Token Supply");
    require(msg.value >= PRESALE_PRICE * quantity, "prslMint:insufficient ETH");
    require(MerkleProof.verify(proof, presaleRoot, keccak256(abi.encodePacked(msg.sender))), "Invalid merkle proof");
    if (MAX_PER_ADDRESS > 0){
      require(quantity + minted[msg.sender] <= MAX_PER_ADDRESS, "amount exceeds max");
    } 

    minted[msg.sender] += quantity;
    _safeMint(to, quantity, "");

    (bool success,) = owner().call{ value: msg.value }("");
    require(success, "mint:ETH transfer failed");
    }

  function mint(address to, uint256 quantity) public payable nonReentrant {
    require(publicFlag, "public sale not Active");
    require(quantity + totalSupply() <= MAX_SUPPLY, "Insuficient Token Supply");
    require(msg.value >= PRICE * quantity, "mint:insufficient ETH");
    if (MAX_PER_ADDRESS_PUBLIC > 0) {
      require(quantity + publicMinted[msg.sender] <= MAX_PER_ADDRESS_PUBLIC, "mint:exceeds max per address");
    }

    publicMinted[msg.sender] += quantity;
    _safeMint(to, quantity);

    (bool success, ) = owner().call{value: msg.value}("");
    require(success, "mint:ETH transfer failed");
  }

  function transferWithPermit(
    address from,
    address to,
    uint256 tokenId,
    uint256 deadline,
    bytes memory sig
  ) public {
    permit(to, tokenId, deadline, sig);
    safeTransferFrom(from, to, tokenId, "");
  }

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

  // permit stuff
  function nonces(uint256 tokenId) external view returns(uint256) {
    require(_exists(tokenId), 'nonces: query for nonexistent token');
    return _nonce(tokenId);
  }

  /// @notice gets the global royalty rate
  /// @dev divide rate by scale to get the percentage taken as royalties
  /// @return a tuple of (rate, scale)
  function getRoyaltyRate() external view returns (uint256, uint256) {
      return (rate, scale);
  }

  /// @notice Given an NFT and the amount of a price, returns pertinent royalty information
  /// @dev This function is specified in EIP-2981
  /// @param _salePrice the amount the NFT is being sold for
  /// @return the address to send the royalties to, and the amount to send
  function royaltyInfo(uint256 _tokenId, uint256 _salePrice)
      external
      view
      returns (address, uint256)
  {
      uint256 royaltyAmount = (_salePrice * rate) / scale;
      return (owner(), royaltyAmount);
  }

  function DOMAIN_SEPARATOR() public view returns (bytes32) {
    return block.chainid == INITIAL_CHAIN_ID ? INITIAL_DOMAIN_SEPARATOR : computeDomainSeparator();
  }

  function permit(
    address spender,
    uint256 tokenId,
    uint256 deadline,
    bytes memory sig
  ) public override {
    require(block.timestamp <= deadline, 'Permit expired');

    bytes32 digest =
      ECDSA.toTypedDataHash(
        DOMAIN_SEPARATOR(),
        keccak256(
          abi.encode(
            PERMIT_TYPEHASH,
            spender,
            tokenId,
            _nonces[tokenId],
            deadline
          )
        )
      );

    (address recoveredAddress,) = ECDSA.tryRecover(digest, sig);
    address owner = ownerOf(tokenId);

    require(recoveredAddress != address(0), 'Invalid signature');
    require(spender != owner, 'ERC721Permit: approval to current owner');
    if(owner != recoveredAddress){
      require(
        // checks for both EIP2098 sigs and EIP1271 approvals
        SignatureChecker.isValidSignatureNow(
          owner,
          digest,
          sig
        ),
        "ERC721Permit: unauthorized"
      );
    }

    approve(spender, tokenId);
  }

  function computeDomainSeparator() internal view returns(bytes32) {
    return keccak256(
      abi.encode(
        keccak256('EIP712Domain(string name,string version,uint256 chainId,address verifyingContract)'),
        nameHash,
        versionHash,
        block.chainid,
        address(this)
      )
    );
  }

  function _transfer(address from, address to, uint256 tokenId) internal override {
    ERC721A._transfer(from, to, tokenId);
    if(from != address(0)) {
      _nonces[tokenId]++;
    }
  }

  function _getChainId() internal view returns(uint256 chainId) {
    return block.chainid;
  }

  function _nonce(uint256 tokenId) internal view returns(uint256) {
    return _nonces[tokenId];
  }

}

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

pragma solidity ^0.8.4;

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

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

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

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

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

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

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

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        _approve(to, tokenId, owner);
    }

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

        return _tokenApprovals[tokenId];
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        _beforeTokenTransfers(from, to, tokenId, 1);

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

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

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

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

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

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

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

        address from = prevOwnership.addr;

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

            if (!isApprovedOrOwner) revert TransferCallerNotOwnerNorApproved();
        }

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

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

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

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

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

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

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

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

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

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

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

File 3 of 19 : 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 4 of 19 : SignatureChecker.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (utils/cryptography/SignatureChecker.sol)

pragma solidity ^0.8.0;

import "./ECDSA.sol";
import "../Address.sol";
import "../../interfaces/IERC1271.sol";

/**
 * @dev Signature verification helper that can be used instead of `ECDSA.recover` to seamlessly support both ECDSA
 * signatures from externally owned accounts (EOAs) as well as ERC1271 signatures from smart contract wallets like
 * Argent and Gnosis Safe.
 *
 * _Available since v4.1._
 */
library SignatureChecker {
    /**
     * @dev Checks if a signature is valid for a given signer and data hash. If the signer is a smart contract, the
     * signature is validated against that smart contract using ERC1271, otherwise it's validated using `ECDSA.recover`.
     *
     * NOTE: Unlike ECDSA signatures, contract signatures are revocable, and the outcome of this function can thus
     * change through time. It could return true at block N and false at block N+1 (or the opposite).
     */
    function isValidSignatureNow(
        address signer,
        bytes32 hash,
        bytes memory signature
    ) internal view returns (bool) {
        (address recovered, ECDSA.RecoverError error) = ECDSA.tryRecover(hash, signature);
        if (error == ECDSA.RecoverError.NoError && recovered == signer) {
            return true;
        }

        (bool success, bytes memory result) = signer.staticcall(
            abi.encodeWithSelector(IERC1271.isValidSignature.selector, hash, signature)
        );
        return (success && result.length == 32 && abi.decode(result, (bytes4)) == IERC1271.isValidSignature.selector);
    }
}

File 5 of 19 : MerkleProof.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (utils/cryptography/MerkleProof.sol)

pragma solidity ^0.8.0;

/**
 * @dev These functions deal with verification of Merkle Trees proofs.
 *
 * The proofs can be generated using the JavaScript library
 * https://github.com/miguelmota/merkletreejs[merkletreejs].
 * Note: the hashing algorithm should be keccak256 and pair sorting should be enabled.
 *
 * See `test/utils/cryptography/MerkleProof.test.js` for some examples.
 */
library MerkleProof {
    /**
     * @dev Returns true if a `leaf` can be proved to be a part of a Merkle tree
     * defined by `root`. For this, a `proof` must be provided, containing
     * sibling hashes on the branch from the leaf to the root of the tree. Each
     * pair of leaves and each pair of pre-images are assumed to be sorted.
     */
    function verify(
        bytes32[] memory proof,
        bytes32 root,
        bytes32 leaf
    ) internal pure returns (bool) {
        return processProof(proof, leaf) == root;
    }

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

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

File 8 of 19 : 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 19 : 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 10 of 19 : IERC4494.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.11;

import "@openzeppelin/contracts/utils/introspection/IERC165.sol";

///
/// @dev Interface for token permits for ERC721
///
interface IERC4494 is IERC165 {
  /// ERC165 bytes to add to interface array - set in parent contract
  ///
  /// _INTERFACE_ID_ERC4494 = 0x5604e225
  /// @notice Function to approve by way of owner signature
  /// @param spender the address to approve
  /// @param tokenId the index of the NFT to approve the spender on
  /// @param deadline a timestamp expiry for the permit
  /// @param sig a traditional or EIP2098 signature
  function permit(address spender, uint256 tokenId, uint256 deadline, bytes memory sig) external;
  /// @notice Returns the nonce of an NFT - useful for creating permits
  /// @param tokenId the index of the NFT to get the nonce of
  /// @return the uint256 representation of the nonce
  function nonces(uint256 tokenId) external view returns(uint256);
  /// @notice Returns the domain separator used in the encoding of the signature for permits, as defined by EIP712
  /// @return the bytes32 domain separator
  function DOMAIN_SEPARATOR() external view returns(bytes32);
}

File 11 of 19 : IERC2981.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.9;

import "@openzeppelin/contracts/utils/introspection/IERC165.sol";

// ///
// /// @dev Interface for the NFT Royalty Standard
// ///
interface IERC2981 is IERC165 {
    /// ERC165 bytes to add to interface array - set in parent contract
    /// implementing this standard
    ///
    /// bytes4(keccak256("royaltyInfo(uint256,uint256)")) == 0x2a55205a
    /// bytes4 private constant _INTERFACE_ID_ERC2981 = 0x2a55205a;
    /// _registerInterface(_INTERFACE_ID_ERC2981);

    /// @notice Called with the sale price to determine how much royalty
    //          is owed and to whom.
    /// @param _tokenId - the NFT asset queried for royalty information
    /// @param _salePrice - the sale price of the NFT asset specified by _tokenId
    /// @return receiver - address of who should be sent the royalty payment
    /// @return royaltyAmount - the royalty payment amount for _salePrice
    function royaltyInfo(uint256 _tokenId, uint256 _salePrice)
        external
        view
        returns (address receiver, uint256 royaltyAmount);
}

File 12 of 19 : IERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

File 14 of 19 : 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 15 of 19 : 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 16 of 19 : 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 17 of 19 : 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 18 of 19 : IERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol)

pragma solidity ^0.8.0;

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

File 19 of 19 : IERC1271.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (interfaces/IERC1271.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC1271 standard signature validation method for
 * contracts as defined in https://eips.ethereum.org/EIPS/eip-1271[ERC-1271].
 *
 * _Available since v4.1._
 */
interface IERC1271 {
    /**
     * @dev Should return whether the signature provided is valid for the provided data
     * @param hash      Hash of the data to be signed
     * @param signature Signature byte array associated with _data
     */
    function isValidSignature(bytes32 hash, bytes memory signature) external view returns (bytes4 magicValue);
}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"symbol","type":"string"},{"internalType":"string","name":"version","type":"string"},{"internalType":"uint256","name":"tokenSupply","type":"uint256"},{"internalType":"bytes32","name":"_foundersRoot","type":"bytes32"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"ApprovalToCurrentOwner","type":"error"},{"inputs":[],"name":"ApproveToCaller","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"TransferCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"TransferFromIncorrectOwner","type":"error"},{"inputs":[],"name":"TransferToNonERC721ReceiverImplementer","type":"error"},{"inputs":[],"name":"TransferToZeroAddress","type":"error"},{"inputs":[],"name":"WithdrawEthFailed","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":false,"internalType":"string","name":"uri","type":"string"}],"name":"BaseURIUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bool","name":"state","type":"bool"}],"name":"FlagSwitched","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bytes32","name":"root","type":"bytes32"}],"name":"FounderMerkleRootUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"MaxPerAddressUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"uri","type":"string"}],"name":"PreRevealURIUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bytes32","name":"root","type":"bytes32"}],"name":"PresaleMerkleRootUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"price","type":"uint256"}],"name":"PresalePriceUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"price","type":"uint256"}],"name":"PublicPriceUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"RevealNumberUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"RoyaltyRateUpdated","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":"DOMAIN_SEPARATOR","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PERMIT_TYPEHASH","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"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":"address","name":"","type":"address"}],"name":"founderClaimed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"founderFlag","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"quantity","type":"uint256"},{"internalType":"bytes32[]","name":"proof","type":"bytes32[]"}],"name":"founderMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getCreator","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getRoyaltyRate","outputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"minted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"nonces","outputs":[{"internalType":"uint256","name":"","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":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"deadline","type":"uint256"},{"internalType":"bytes","name":"sig","type":"bytes"}],"name":"permit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"presaleFlag","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"quantity","type":"uint256"},{"internalType":"bytes32[]","name":"proof","type":"bytes32[]"}],"name":"presaleMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"publicFlag","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"publicMinted","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":"uint256","name":"_salePrice","type":"uint256"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"uri","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_merkleRoot","type":"bytes32"}],"name":"setFounderMerkleRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"uri","type":"string"}],"name":"setPreRevealURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"setPresaleMaxPerAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_merkleRoot","type":"bytes32"}],"name":"setPresaleMerkleRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"price","type":"uint256"}],"name":"setPresalePrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"setPublicMaxPerAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"price","type":"uint256"}],"name":"setPublicPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"setRevealNumber","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_rate","type":"uint256"}],"name":"setRoyaltyRate","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":[{"internalType":"bool","name":"state","type":"bool"}],"name":"switchFounderFlag","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"state","type":"bool"}],"name":"switchPresaleFlag","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"state","type":"bool"}],"name":"switchPublicFlag","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"deadline","type":"uint256"},{"internalType":"bytes","name":"sig","type":"bytes"}],"name":"transferWithPermit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawFunds","outputs":[],"stateMutability":"nonpayable","type":"function"}]

67016345785d8a000060105566f8b0a10e470000601155610160604052600561012081905264173539b7b760d91b610140908152620000429160199190620001aa565b50611388601b55620186a0601c553480156200005d57600080fd5b506040516200418b3803806200418b83398101604081905262000080916200031d565b84518590859062000099906002906020850190620001aa565b508051620000af906003906020840190620001aa565b50600160005550506001600855620000c73362000158565b8451602080870191909120608081815285518684012060a081815261010087905260148690554660c0818152604080517f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f818a015280820197909752606087019490945293850152308482015281518085039091018152929091019052805191012060e05250620003fe9350505050565b600980546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b828054620001b890620003c1565b90600052602060002090601f016020900481019282620001dc576000855562000227565b82601f10620001f757805160ff191683800117855562000227565b8280016001018555821562000227579182015b82811115620002275782518255916020019190600101906200020a565b506200023592915062000239565b5090565b5b808211156200023557600081556001016200023a565b634e487b7160e01b600052604160045260246000fd5b600082601f8301126200027857600080fd5b81516001600160401b038082111562000295576200029562000250565b604051601f8301601f19908116603f01168101908282118183101715620002c057620002c062000250565b81604052838152602092508683858801011115620002dd57600080fd5b600091505b83821015620003015785820183015181830184015290820190620002e2565b83821115620003135760008385830101525b9695505050505050565b600080600080600060a086880312156200033657600080fd5b85516001600160401b03808211156200034e57600080fd5b6200035c89838a0162000266565b965060208801519150808211156200037357600080fd5b6200038189838a0162000266565b955060408801519150808211156200039857600080fd5b50620003a78882890162000266565b606088015160809098015196999598509695949350505050565b600181811c90821680620003d657607f821691505b60208210811415620003f857634e487b7160e01b600052602260045260246000fd5b50919050565b60805160a05160c05160e05161010051613d3a620004516000396000818161114601528181611c53015261208001526000610fef01526000610f1a01526000610f9601526000610f6e0152613d3a6000f3fe6080604052600436106103135760003560e01c806370a082311161019a57806395d89b41116100e1578063c62752551161008a578063dbc4926211610064578063dbc49262146108fd578063e985e9c51461091d578063f2fde38b1461096657600080fd5b8063c62752551461089d578063c87b56dd146108bd578063d48e638a146108dd57600080fd5b8063b08ecfb8116100bb578063b08ecfb81461083e578063b793167d1461085d578063b88d4fde1461087d57600080fd5b806395d89b41146107f6578063a22cb4651461080b578063aa1e9fc71461082b57600080fd5b80637dc23c9c116101435780638da5cb5b1161011d5780638da5cb5b146107a55780638e6b4356146107c3578063954dc3e3146107e357600080fd5b80637dc23c9c1461073d57806381981d2a1461075d57806386cca6f81461077d57600080fd5b8063745a41bc11610174578063745a41bc146106e3578063767f4267146107035780637ab3b93f1461072357600080fd5b806370a082311461067e578063715018a61461069e57806372c66dc1146106b357600080fd5b80632a85db551161025e57806342842e0e1161020757806355f804b3116101e157806355f804b31461061e5780636352211e1461063e578063703b9a601461065e57600080fd5b806342842e0e146105be578063510a8e1d146105de578063537782a2146105fe57600080fd5b80633644e515116102385780633644e515146105765780633e3483b21461058b57806340c10f19146105ab57600080fd5b80632a85db551461050257806330adf81f146105225780633549345e1461055657600080fd5b806318160ddd116102c057806324600fc31161029a57806324600fc31461048e57806328d7b276146104a35780632a55205a146104c357600080fd5b806318160ddd146104245780631e7269c51461044157806323b872dd1461046e57600080fd5b8063095ea7b3116102f1578063095ea7b3146103a75780631015805b146103c9578063141a468c1461040457600080fd5b806301ffc9a71461031857806306fdde031461034d578063081812fc1461036f575b600080fd5b34801561032457600080fd5b5061033861033336600461359b565b610986565b60405190151581526020015b60405180910390f35b34801561035957600080fd5b506103626109cb565b6040516103449190613610565b34801561037b57600080fd5b5061038f61038a366004613623565b610a5d565b6040516001600160a01b039091168152602001610344565b3480156103b357600080fd5b506103c76103c2366004613653565b610aba565b005b3480156103d557600080fd5b506103f66103e436600461367d565b600e6020526000908152604090205481565b604051908152602001610344565b34801561041057600080fd5b506103f661041f366004613623565b610b7a565b34801561043057600080fd5b5060015460005403600019016103f6565b34801561044d57600080fd5b506103f661045c36600461367d565b600d6020526000908152604090205481565b34801561047a57600080fd5b506103c7610489366004613698565b610c10565b34801561049a57600080fd5b506103c7610c1b565b3480156104af57600080fd5b506103c76104be366004613623565b610d04565b3480156104cf57600080fd5b506104e36104de3660046136d4565b610d88565b604080516001600160a01b039093168352602083019190915201610344565b34801561050e57600080fd5b506103c761051d366004613782565b610dc8565b34801561052e57600080fd5b506103f67f49ecf333e5b8c95c40fdafc95c1ad136e8914a8fb55e9dc8bb01eaa83a2df9ad81565b34801561056257600080fd5b506103c7610571366004613623565b610e53565b34801561058257600080fd5b506103f6610f16565b34801561059757600080fd5b506103c76105a6366004613623565b611011565b6103c76105b9366004613653565b61108e565b3480156105ca57600080fd5b506103c76105d9366004613698565b611381565b3480156105ea57600080fd5b506103c76105f93660046137db565b61139c565b34801561060a57600080fd5b506103c7610619366004613623565b6114ca565b34801561062a57600080fd5b506103c7610639366004613782565b611547565b34801561064a57600080fd5b5061038f610659366004613623565b6115d2565b34801561066a57600080fd5b506103c7610679366004613623565b6115e4565b34801561068a57600080fd5b506103f661069936600461367d565b611661565b3480156106aa57600080fd5b506103c76116c9565b3480156106bf57600080fd5b506103386106ce36600461367d565b600f6020526000908152604090205460ff1681565b3480156106ef57600080fd5b506103c76106fe366004613816565b61171d565b34801561070f57600080fd5b506103c761071e3660046137db565b6119bf565b34801561072f57600080fd5b506016546103389060ff1681565b34801561074957600080fd5b506016546103389062010000900460ff1681565b34801561076957600080fd5b506103c7610778366004613877565b611af6565b34801561078957600080fd5b50601b54601c5460408051928352602083019190915201610344565b3480156107b157600080fd5b506009546001600160a01b031661038f565b3480156107cf57600080fd5b506103c76107de366004613623565b611b24565b6103c76107f13660046138e9565b611ba1565b34801561080257600080fd5b50610362611f63565b34801561081757600080fd5b506103c7610826366004613973565b611f72565b6103c76108393660046138e9565b612021565b34801561084a57600080fd5b5060165461033890610100900460ff1681565b34801561086957600080fd5b506103c7610878366004613623565b61224a565b34801561088957600080fd5b506103c76108983660046139a6565b6122c7565b3480156108a957600080fd5b506103c76108b8366004613623565b612312565b3480156108c957600080fd5b506103626108d8366004613623565b6123d5565b3480156108e957600080fd5b5061038f6108f8366004613623565b612523565b34801561090957600080fd5b506103c76109183660046137db565b61258b565b34801561092957600080fd5b506103386109383660046139f6565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b34801561097257600080fd5b506103c761098136600461367d565b6126bf565b60006109918261278c565b806109c557506001600160e01b031982167f2a55205a00000000000000000000000000000000000000000000000000000000145b92915050565b6060600280546109da90613a20565b80601f0160208091040260200160405190810160405280929190818152602001828054610a0690613a20565b8015610a535780601f10610a2857610100808354040283529160200191610a53565b820191906000526020600020905b815481529060010190602001808311610a3657829003601f168201915b5050505050905090565b6000610a6882612827565b610a9e576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b506000908152600660205260409020546001600160a01b031690565b6000610ac5826115d2565b9050806001600160a01b0316836001600160a01b03161415610b13576040517f943f7b8c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b336001600160a01b03821614801590610b335750610b318133610938565b155b15610b6a576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610b75838383612860565b505050565b6000610b8582612827565b610bfc5760405162461bcd60e51b815260206004820152602360248201527f6e6f6e6365733a20717565727920666f72206e6f6e6578697374656e7420746f60448201527f6b656e000000000000000000000000000000000000000000000000000000000060648201526084015b60405180910390fd5b6000828152600c60205260409020546109c5565b610b758383836128c9565b6009546001600160a01b03163314610c635760405162461bcd60e51b81526020600482018190526024820152600080516020613ce58339815191526044820152606401610bf3565b6000610c776009546001600160a01b031690565b6001600160a01b03164760405160006040518083038185875af1925050503d8060008114610cc1576040519150601f19603f3d011682016040523d82523d6000602084013e610cc6565b606091505b5050905080610d01576040517f64114eef00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b50565b6009546001600160a01b03163314610d4c5760405162461bcd60e51b81526020600482018190526024820152600080516020613ce58339815191526044820152606401610bf3565b60158190556040518181527f192fe3cfc7bcdbf1eb13aa502d8cd03ba01c66f0bd4e121c741da206c5a39a87906020015b60405180910390a150565b6000806000601c54601b5485610d9e9190613a71565b610da89190613aa6565b9050610dbc6009546001600160a01b031690565b925090505b9250929050565b6009546001600160a01b03163314610e105760405162461bcd60e51b81526020600482018190526024820152600080516020613ce58339815191526044820152606401610bf3565b8051610e239060189060208401906134ec565b507f5f94d5d9b7297df00452e2c094a7f1e098db8499220afabec45cc68c8094305381604051610d7d9190613610565b6009546001600160a01b03163314610e9b5760405162461bcd60e51b81526020600482018190526024820152600080516020613ce58339815191526044820152606401610bf3565b662386f26fc100008111610ee15760405162461bcd60e51b815260206004820152600d60248201526c505249434520544f4f204c4f5760981b6044820152606401610bf3565b60118190556040518181527ff74dd00aeaa57bf3d02eaabc9167b36c650311388caa46c74e5279b3aef8491490602001610d7d565b60007f00000000000000000000000000000000000000000000000000000000000000004614610fec57610fe7604080517f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f60208201527f0000000000000000000000000000000000000000000000000000000000000000918101919091527f000000000000000000000000000000000000000000000000000000000000000060608201524660808201523060a082015260009060c00160405160208183030381529060405280519060200120905090565b905090565b507f000000000000000000000000000000000000000000000000000000000000000090565b6009546001600160a01b031633146110595760405162461bcd60e51b81526020600482018190526024820152600080516020613ce58339815191526044820152606401610bf3565b601a8190556040518181527f03c55b1ca6b439e7daf40fb6711304c5b128a402845bc84e3dad70bcf40480c190602001610d7d565b600260085414156110e15760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610bf3565b600260085560165462010000900460ff1661113e5760405162461bcd60e51b815260206004820152601660248201527f7075626c69632073616c65206e6f7420416374697665000000000000000000006044820152606401610bf3565b6001546000547f0000000000000000000000000000000000000000000000000000000000000000919003600019016111769083613aba565b11156111c45760405162461bcd60e51b815260206004820152601860248201527f496e737566696369656e7420546f6b656e20537570706c7900000000000000006044820152606401610bf3565b806010546111d29190613a71565b3410156112215760405162461bcd60e51b815260206004820152601560248201527f6d696e743a696e73756666696369656e742045544800000000000000000000006044820152606401610bf3565b6013541561129457601354336000908152600e60205260409020546112469083613aba565b11156112945760405162461bcd60e51b815260206004820152601c60248201527f6d696e743a65786365656473206d6178207065722061646472657373000000006044820152606401610bf3565b336000908152600e6020526040812080548392906112b3908490613aba565b909155506112c390508282612907565b60006112d76009546001600160a01b031690565b6001600160a01b03163460405160006040518083038185875af1925050503d8060008114611321576040519150601f19603f3d011682016040523d82523d6000602084013e611326565b606091505b50509050806113775760405162461bcd60e51b815260206004820152601860248201527f6d696e743a455448207472616e73666572206661696c656400000000000000006044820152606401610bf3565b5050600160085550565b610b75838383604051806020016040528060008152506122c7565b6009546001600160a01b031633146113e45760405162461bcd60e51b81526020600482018190526024820152600080516020613ce58339815191526044820152606401610bf3565b6000600182151514611413576040518060400160405280600581526020016466616c736560d81b815250611431565b604051806040016040528060048152602001637472756560e01b8152505b60165460405191925060ff161515831515141590611453908390602001613ad2565b604051602081830303815290604052906114805760405162461bcd60e51b8152600401610bf39190613610565b506016805460ff19168315159081179091556040519081527fbabcdeaa9e3ae5f301b307018e08e1832e5f585199851024755cc6bfaa1384a4906020015b60405180910390a15050565b6009546001600160a01b031633146115125760405162461bcd60e51b81526020600482018190526024820152600080516020613ce58339815191526044820152606401610bf3565b601b8190556040518181527f72a303074856b96264029b8e131beb0fee54b9b220dd5db83bb84244d31e902f90602001610d7d565b6009546001600160a01b0316331461158f5760405162461bcd60e51b81526020600482018190526024820152600080516020613ce58339815191526044820152606401610bf3565b80516115a29060179060208401906134ec565b507f6741b2fc379fad678116fe3d4d4b9a1a184ab53ba36b86ad0fa66340b1ab41ad81604051610d7d9190613610565b60006115dd82612925565b5192915050565b6009546001600160a01b0316331461162c5760405162461bcd60e51b81526020600482018190526024820152600080516020613ce58339815191526044820152606401610bf3565b60138190556040518181527f9a97a0ec90bf3ee5fffb4bc5bdebc20f4b86a3f79a33dde63f5ab9cdb91af60e90602001610d7d565b60006001600160a01b0382166116a3576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b506001600160a01b031660009081526005602052604090205467ffffffffffffffff1690565b6009546001600160a01b031633146117115760405162461bcd60e51b81526020600482018190526024820152600080516020613ce58339815191526044820152606401610bf3565b61171b6000612a67565b565b8142111561176d5760405162461bcd60e51b815260206004820152600e60248201527f5065726d697420657870697265640000000000000000000000000000000000006044820152606401610bf3565b600061184061177a610f16565b6000868152600c60209081526040918290205482517f49ecf333e5b8c95c40fdafc95c1ad136e8914a8fb55e9dc8bb01eaa83a2df9ad818401526001600160a01b038b1681850152606081018a9052608081019190915260a08082018990528351808303909101815260c0820184528051908301207f190100000000000000000000000000000000000000000000000000000000000060e083015260e2820194909452610102808201949094528251808203909401845261012201909152815191012090565b9050600061184e8284612ac6565b509050600061185c866115d2565b90506001600160a01b0382166118b45760405162461bcd60e51b815260206004820152601160248201527f496e76616c6964207369676e61747572650000000000000000000000000000006044820152606401610bf3565b806001600160a01b0316876001600160a01b0316141561193c5760405162461bcd60e51b815260206004820152602760248201527f4552433732315065726d69743a20617070726f76616c20746f2063757272656e60448201527f74206f776e6572000000000000000000000000000000000000000000000000006064820152608401610bf3565b816001600160a01b0316816001600160a01b0316146119ac57611960818486612b33565b6119ac5760405162461bcd60e51b815260206004820152601a60248201527f4552433732315065726d69743a20756e617574686f72697a65640000000000006044820152606401610bf3565b6119b68787610aba565b50505050505050565b6009546001600160a01b03163314611a075760405162461bcd60e51b81526020600482018190526024820152600080516020613ce58339815191526044820152606401610bf3565b6000600182151514611a36576040518060400160405280600581526020016466616c736560d81b815250611a54565b604051806040016040528060048152602001637472756560e01b8152505b60165460405191925060ff62010000909104161515831515141590611a7d908390602001613ad2565b60405160208183030381529060405290611aaa5760405162461bcd60e51b8152600401610bf39190613610565b5060168054831515620100000262ff0000199091161790556040517fbabcdeaa9e3ae5f301b307018e08e1832e5f585199851024755cc6bfaa1384a4906114be90841515815260200190565b611b028484848461171d565b611b1d858585604051806020016040528060008152506122c7565b5050505050565b6009546001600160a01b03163314611b6c5760405162461bcd60e51b81526020600482018190526024820152600080516020613ce58339815191526044820152606401610bf3565b60148190556040518181527fa784fe3d0e3eb99f86a11877d429b95c89e03df1778b7c65556e1bf1902abdb290602001610d7d565b60026008541415611bf45760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610bf3565b600260085560165460ff16611c4b5760405162461bcd60e51b815260206004820152601a60248201527f70726573616c65204d696e74206973206e6f74204163746976650000000000006044820152606401610bf3565b6001546000547f000000000000000000000000000000000000000000000000000000000000000091900360001901611c839085613aba565b1115611cd15760405162461bcd60e51b815260206004820152601860248201527f496e737566696369656e7420546f6b656e20537570706c7900000000000000006044820152606401610bf3565b82601154611cdf9190613a71565b341015611d2e5760405162461bcd60e51b815260206004820152601960248201527f7072736c4d696e743a696e73756666696369656e7420455448000000000000006044820152606401610bf3565b611da4828280806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250506015546040516bffffffffffffffffffffffff193360601b16602082015290925060340190505b60405160208183030381529060405280519060200120612caf565b611df05760405162461bcd60e51b815260206004820152601460248201527f496e76616c6964206d65726b6c652070726f6f660000000000000000000000006044820152606401610bf3565b60125415611e6357601254336000908152600d6020526040902054611e159085613aba565b1115611e635760405162461bcd60e51b815260206004820152601260248201527f616d6f756e742065786365656473206d617800000000000000000000000000006044820152606401610bf3565b336000908152600d602052604081208054859290611e82908490613aba565b92505081905550611ea3848460405180602001604052806000815250612cc5565b6000611eb76009546001600160a01b031690565b6001600160a01b03163460405160006040518083038185875af1925050503d8060008114611f01576040519150601f19603f3d011682016040523d82523d6000602084013e611f06565b606091505b5050905080611f575760405162461bcd60e51b815260206004820152601860248201527f6d696e743a455448207472616e73666572206661696c656400000000000000006044820152606401610bf3565b50506001600855505050565b6060600380546109da90613a20565b6001600160a01b038216331415611fb5576040517fb06307db00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b601654610100900460ff166120785760405162461bcd60e51b815260206004820152601a60248201527f666f756e646572206d696e74206973206e6f74204163746976650000000000006044820152606401610bf3565b6001546000547f0000000000000000000000000000000000000000000000000000000000000000919003600019016120b09085613aba565b11156120fe5760405162461bcd60e51b815260206004820152601860248201527f496e737566696369656e7420546f6b656e20537570706c7900000000000000006044820152606401610bf3565b612164828280806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250506014546040516bffffffffffffffffffffffff193360601b166020820152603481018990529092506054019050611d89565b6121b05760405162461bcd60e51b815260206004820152601460248201527f496e76616c6964206d65726b6c652070726f6f660000000000000000000000006044820152606401610bf3565b336000908152600f602052604090205460ff16156122105760405162461bcd60e51b815260206004820152601f60248201527f546f6b656e73206861766520616c7265616479206265656e204d696e746564006044820152606401610bf3565b336000908152600f60209081526040808320805460ff19166001179055805191820190529081526122449085908590612cc5565b50505050565b6009546001600160a01b031633146122925760405162461bcd60e51b81526020600482018190526024820152600080516020613ce58339815191526044820152606401610bf3565b60128190556040518181527f9a97a0ec90bf3ee5fffb4bc5bdebc20f4b86a3f79a33dde63f5ab9cdb91af60e90602001610d7d565b6122d28484846128c9565b6001600160a01b0383163b151580156122f457506122f284848484612cd2565b155b15612244576040516368d2bf6b60e11b815260040160405180910390fd5b6009546001600160a01b0316331461235a5760405162461bcd60e51b81526020600482018190526024820152600080516020613ce58339815191526044820152606401610bf3565b662386f26fc1000081116123a05760405162461bcd60e51b815260206004820152600d60248201526c505249434520544f4f204c4f5760981b6044820152606401610bf3565b60108190556040518181527fb6929b692b182f5174d872e8742af072aa2786771d49d1d2c4bf1f19921b9b1690602001610d7d565b60606123e082612827565b61242c5760405162461bcd60e51b815260206004820152601f60248201527f55524920717565727920666f72206e6f6e6578697374656e7420746f6b656e006044820152606401610bf3565b6017805461243990613a20565b151590506124d3576018805461244e90613a20565b80601f016020809104026020016040519081016040528092919081815260200182805461247a90613a20565b80156124c75780601f1061249c576101008083540402835291602001916124c7565b820191906000526020600020905b8154815290600101906020018083116124aa57829003601f168201915b50505050509050919050565b601a5482116125115760176124e783612dbb565b60196040516020016124fb93929190613bb1565b6040516020818303038152906040529050919050565b6018805461244e90613a20565b919050565b600061252e82612827565b61257a5760405162461bcd60e51b815260206004820152601d60248201527f67657443726561746f723a206e6f6e6578697374656e7420746f6b656e0000006044820152606401610bf3565b6009546001600160a01b03166109c5565b6009546001600160a01b031633146125d35760405162461bcd60e51b81526020600482018190526024820152600080516020613ce58339815191526044820152606401610bf3565b6000600182151514612602576040518060400160405280600581526020016466616c736560d81b815250612620565b604051806040016040528060048152602001637472756560e01b8152505b60165460405191925060ff610100909104161515831515141590612648908390602001613ad2565b604051602081830303815290604052906126755760405162461bcd60e51b8152600401610bf39190613610565b50601680548315156101000261ff00199091161790556040517fbabcdeaa9e3ae5f301b307018e08e1832e5f585199851024755cc6bfaa1384a4906114be90841515815260200190565b6009546001600160a01b031633146127075760405162461bcd60e51b81526020600482018190526024820152600080516020613ce58339815191526044820152606401610bf3565b6001600160a01b0381166127835760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610bf3565b610d0181612a67565b60006001600160e01b031982167f80ac58cd0000000000000000000000000000000000000000000000000000000014806127ef57506001600160e01b031982167f5b5e139f00000000000000000000000000000000000000000000000000000000145b806109c557507f01ffc9a7000000000000000000000000000000000000000000000000000000006001600160e01b03198316146109c5565b60008160011115801561283b575060005482105b80156109c5575050600090815260046020526040902054600160e01b900460ff161590565b600082815260066020526040808220805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b6128d4838383612eed565b6001600160a01b03831615610b75576000818152600c602052604081208054916128fd83613be4565b9190505550505050565b612921828260405180602001604052806000815250612cc5565b5050565b60408051606081018252600080825260208201819052918101919091528180600111158015612955575060005481105b15612a3557600081815260046020908152604091829020825160608101845290546001600160a01b0381168252600160a01b810467ffffffffffffffff1692820192909252600160e01b90910460ff16151591810182905290612a335780516001600160a01b0316156129c9579392505050565b5060001901600081815260046020908152604091829020825160608101845290546001600160a01b038116808352600160a01b820467ffffffffffffffff1693830193909352600160e01b900460ff1615159281019290925215612a2e579392505050565b6129c9565b505b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600980546001600160a01b0383811673ffffffffffffffffffffffffffffffffffffffff19831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b600080825160411415612afd5760208301516040840151606085015160001a612af187828585613126565b94509450505050610dc1565b825160401415612b275760208301516040840151612b1c868383613213565b935093505050610dc1565b50600090506002610dc1565b6000806000612b428585612ac6565b90925090506000816004811115612b5b57612b5b613bff565b148015612b795750856001600160a01b0316826001600160a01b0316145b15612b8957600192505050612ca8565b600080876001600160a01b0316631626ba7e60e01b8888604051602401612bb1929190613c15565b60408051601f198184030181529181526020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff166001600160e01b0319909416939093179092529051612c049190613c2e565b600060405180830381855afa9150503d8060008114612c3f576040519150601f19603f3d011682016040523d82523d6000602084013e612c44565b606091505b5091509150818015612c57575080516020145b8015612ca1575080517f1626ba7e0000000000000000000000000000000000000000000000000000000090612c959083016020908101908401613c4a565b6001600160e01b031916145b9450505050505b9392505050565b600082612cbc8584613265565b14949350505050565b610b7583838360016132d9565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a0290612d07903390899088908890600401613c67565b6020604051808303816000875af1925050508015612d42575060408051601f3d908101601f19168201909252612d3f91810190613c4a565b60015b612d9d573d808015612d70576040519150601f19603f3d011682016040523d82523d6000602084013e612d75565b606091505b508051612d95576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490505b949350505050565b606081612dfb57505060408051808201909152600181527f3000000000000000000000000000000000000000000000000000000000000000602082015290565b8160005b8115612e255780612e0f81613be4565b9150612e1e9050600a83613aa6565b9150612dff565b60008167ffffffffffffffff811115612e4057612e406136f6565b6040519080825280601f01601f191660200182016040528015612e6a576020820181803683370190505b5090505b8415612db357612e7f600183613ca3565b9150612e8c600a86613cba565b612e97906030613aba565b60f81b818381518110612eac57612eac613cce565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350612ee6600a86613aa6565b9450612e6e565b6000612ef882612925565b9050836001600160a01b031681600001516001600160a01b031614612f49576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000336001600160a01b0386161480612f675750612f678533610938565b80612f82575033612f7784610a5d565b6001600160a01b0316145b905080612fbb576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6001600160a01b038416612ffb576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61300760008487612860565b6001600160a01b038581166000908152600560209081526040808320805467ffffffffffffffff1980821667ffffffffffffffff92831660001901831617909255898616808652838620805493841693831660019081018416949094179055898652600490945282852080546001600160e01b031916909417600160a01b429092169190910217835587018084529220805491939091166130dd5760005482146130dd578054602086015167ffffffffffffffff16600160a01b026001600160e01b03199091166001600160a01b038a16171781555b50505082846001600160a01b0316866001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4611b1d565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a083111561315d575060009050600361320a565b8460ff16601b1415801561317557508460ff16601c14155b15613186575060009050600461320a565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa1580156131da573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b0381166132035760006001925092505061320a565b9150600090505b94509492505050565b6000807f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff83168161324960ff86901c601b613aba565b905061325787828885613126565b935093505050935093915050565b600081815b84518110156132d157600085828151811061328757613287613cce565b602002602001015190508083116132ad57600083815260208290526040902092506132be565b600081815260208490526040902092505b50806132c981613be4565b91505061326a565b509392505050565b6000546001600160a01b03851661331c576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b83613353576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6001600160a01b038516600081815260056020908152604080832080547fffffffffffffffffffffffffffffffff00000000000000000000000000000000811667ffffffffffffffff8083168c0181169182176801000000000000000067ffffffffffffffff1990941690921783900481168c01811690920217909155858452600490925290912080546001600160e01b031916909217600160a01b42909216919091021790558080850183801561341457506001600160a01b0387163b15155b1561349d575b60405182906001600160a01b038916906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a46134656000888480600101955088612cd2565b613482576040516368d2bf6b60e11b815260040160405180910390fd5b8082141561341a57826000541461349857600080fd5b6134e3565b5b6040516001830192906001600160a01b038916906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a48082141561349e575b50600055611b1d565b8280546134f890613a20565b90600052602060002090601f01602090048101928261351a5760008555613560565b82601f1061353357805160ff1916838001178555613560565b82800160010185558215613560579182015b82811115613560578251825591602001919060010190613545565b5061356c929150613570565b5090565b5b8082111561356c5760008155600101613571565b6001600160e01b031981168114610d0157600080fd5b6000602082840312156135ad57600080fd5b8135612ca881613585565b60005b838110156135d35781810151838201526020016135bb565b838111156122445750506000910152565b600081518084526135fc8160208601602086016135b8565b601f01601f19169290920160200192915050565b602081526000612ca860208301846135e4565b60006020828403121561363557600080fd5b5035919050565b80356001600160a01b038116811461251e57600080fd5b6000806040838503121561366657600080fd5b61366f8361363c565b946020939093013593505050565b60006020828403121561368f57600080fd5b612ca88261363c565b6000806000606084860312156136ad57600080fd5b6136b68461363c565b92506136c46020850161363c565b9150604084013590509250925092565b600080604083850312156136e757600080fd5b50508035926020909101359150565b634e487b7160e01b600052604160045260246000fd5b600067ffffffffffffffff80841115613727576137276136f6565b604051601f8501601f19908116603f0116810190828211818310171561374f5761374f6136f6565b8160405280935085815286868601111561376857600080fd5b858560208301376000602087830101525050509392505050565b60006020828403121561379457600080fd5b813567ffffffffffffffff8111156137ab57600080fd5b8201601f810184136137bc57600080fd5b612db38482356020840161370c565b8035801515811461251e57600080fd5b6000602082840312156137ed57600080fd5b612ca8826137cb565b600082601f83011261380757600080fd5b612ca88383356020850161370c565b6000806000806080858703121561382c57600080fd5b6138358561363c565b93506020850135925060408501359150606085013567ffffffffffffffff81111561385f57600080fd5b61386b878288016137f6565b91505092959194509250565b600080600080600060a0868803121561388f57600080fd5b6138988661363c565b94506138a66020870161363c565b93506040860135925060608601359150608086013567ffffffffffffffff8111156138d057600080fd5b6138dc888289016137f6565b9150509295509295909350565b600080600080606085870312156138ff57600080fd5b6139088561363c565b935060208501359250604085013567ffffffffffffffff8082111561392c57600080fd5b818701915087601f83011261394057600080fd5b81358181111561394f57600080fd5b8860208260051b850101111561396457600080fd5b95989497505060200194505050565b6000806040838503121561398657600080fd5b61398f8361363c565b915061399d602084016137cb565b90509250929050565b600080600080608085870312156139bc57600080fd5b6139c58561363c565b93506139d36020860161363c565b925060408501359150606085013567ffffffffffffffff81111561385f57600080fd5b60008060408385031215613a0957600080fd5b613a128361363c565b915061399d6020840161363c565b600181811c90821680613a3457607f821691505b60208210811415613a5557634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b6000816000190483118215151615613a8b57613a8b613a5b565b500290565b634e487b7160e01b600052601260045260246000fd5b600082613ab557613ab5613a90565b500490565b60008219821115613acd57613acd613a5b565b500190565b7f50686173652053746174757320616c7265616479200000000000000000000000815260008251613b0a8160158501602087016135b8565b9190910160150192915050565b8054600090600181811c9080831680613b3157607f831692505b6020808410821415613b5357634e487b7160e01b600052602260045260246000fd5b818015613b675760018114613b7857613ba5565b60ff19861689528489019650613ba5565b60008881526020902060005b86811015613b9d5781548b820152908501908301613b84565b505084890196505b50505050505092915050565b6000613bbd8286613b17565b8451613bcd8183602089016135b8565b613bd981830186613b17565b979650505050505050565b6000600019821415613bf857613bf8613a5b565b5060010190565b634e487b7160e01b600052602160045260246000fd5b828152604060208201526000612db360408301846135e4565b60008251613c408184602087016135b8565b9190910192915050565b600060208284031215613c5c57600080fd5b8151612ca881613585565b60006001600160a01b03808716835280861660208401525083604083015260806060830152613c9960808301846135e4565b9695505050505050565b600082821015613cb557613cb5613a5b565b500390565b600082613cc957613cc9613a90565b500690565b634e487b7160e01b600052603260045260246000fdfe4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572a2646970667358221220bce27d7ca4a1758035cfda363dd1aefb7b4f9982d90703bd3d3e25488bed3f3664736f6c634300080b003300000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000e000000000000000000000000000000000000000000000000000000000000001200000000000000000000000000000000000000000000000000000000000003a98f46711031488fbe569f363dd0f80de0704318882459fefcc505caa8c2200e374000000000000000000000000000000000000000000000000000000000000000a4d6574617665727365370000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000044d4554410000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000013100000000000000000000000000000000000000000000000000000000000000

Deployed Bytecode

0x6080604052600436106103135760003560e01c806370a082311161019a57806395d89b41116100e1578063c62752551161008a578063dbc4926211610064578063dbc49262146108fd578063e985e9c51461091d578063f2fde38b1461096657600080fd5b8063c62752551461089d578063c87b56dd146108bd578063d48e638a146108dd57600080fd5b8063b08ecfb8116100bb578063b08ecfb81461083e578063b793167d1461085d578063b88d4fde1461087d57600080fd5b806395d89b41146107f6578063a22cb4651461080b578063aa1e9fc71461082b57600080fd5b80637dc23c9c116101435780638da5cb5b1161011d5780638da5cb5b146107a55780638e6b4356146107c3578063954dc3e3146107e357600080fd5b80637dc23c9c1461073d57806381981d2a1461075d57806386cca6f81461077d57600080fd5b8063745a41bc11610174578063745a41bc146106e3578063767f4267146107035780637ab3b93f1461072357600080fd5b806370a082311461067e578063715018a61461069e57806372c66dc1146106b357600080fd5b80632a85db551161025e57806342842e0e1161020757806355f804b3116101e157806355f804b31461061e5780636352211e1461063e578063703b9a601461065e57600080fd5b806342842e0e146105be578063510a8e1d146105de578063537782a2146105fe57600080fd5b80633644e515116102385780633644e515146105765780633e3483b21461058b57806340c10f19146105ab57600080fd5b80632a85db551461050257806330adf81f146105225780633549345e1461055657600080fd5b806318160ddd116102c057806324600fc31161029a57806324600fc31461048e57806328d7b276146104a35780632a55205a146104c357600080fd5b806318160ddd146104245780631e7269c51461044157806323b872dd1461046e57600080fd5b8063095ea7b3116102f1578063095ea7b3146103a75780631015805b146103c9578063141a468c1461040457600080fd5b806301ffc9a71461031857806306fdde031461034d578063081812fc1461036f575b600080fd5b34801561032457600080fd5b5061033861033336600461359b565b610986565b60405190151581526020015b60405180910390f35b34801561035957600080fd5b506103626109cb565b6040516103449190613610565b34801561037b57600080fd5b5061038f61038a366004613623565b610a5d565b6040516001600160a01b039091168152602001610344565b3480156103b357600080fd5b506103c76103c2366004613653565b610aba565b005b3480156103d557600080fd5b506103f66103e436600461367d565b600e6020526000908152604090205481565b604051908152602001610344565b34801561041057600080fd5b506103f661041f366004613623565b610b7a565b34801561043057600080fd5b5060015460005403600019016103f6565b34801561044d57600080fd5b506103f661045c36600461367d565b600d6020526000908152604090205481565b34801561047a57600080fd5b506103c7610489366004613698565b610c10565b34801561049a57600080fd5b506103c7610c1b565b3480156104af57600080fd5b506103c76104be366004613623565b610d04565b3480156104cf57600080fd5b506104e36104de3660046136d4565b610d88565b604080516001600160a01b039093168352602083019190915201610344565b34801561050e57600080fd5b506103c761051d366004613782565b610dc8565b34801561052e57600080fd5b506103f67f49ecf333e5b8c95c40fdafc95c1ad136e8914a8fb55e9dc8bb01eaa83a2df9ad81565b34801561056257600080fd5b506103c7610571366004613623565b610e53565b34801561058257600080fd5b506103f6610f16565b34801561059757600080fd5b506103c76105a6366004613623565b611011565b6103c76105b9366004613653565b61108e565b3480156105ca57600080fd5b506103c76105d9366004613698565b611381565b3480156105ea57600080fd5b506103c76105f93660046137db565b61139c565b34801561060a57600080fd5b506103c7610619366004613623565b6114ca565b34801561062a57600080fd5b506103c7610639366004613782565b611547565b34801561064a57600080fd5b5061038f610659366004613623565b6115d2565b34801561066a57600080fd5b506103c7610679366004613623565b6115e4565b34801561068a57600080fd5b506103f661069936600461367d565b611661565b3480156106aa57600080fd5b506103c76116c9565b3480156106bf57600080fd5b506103386106ce36600461367d565b600f6020526000908152604090205460ff1681565b3480156106ef57600080fd5b506103c76106fe366004613816565b61171d565b34801561070f57600080fd5b506103c761071e3660046137db565b6119bf565b34801561072f57600080fd5b506016546103389060ff1681565b34801561074957600080fd5b506016546103389062010000900460ff1681565b34801561076957600080fd5b506103c7610778366004613877565b611af6565b34801561078957600080fd5b50601b54601c5460408051928352602083019190915201610344565b3480156107b157600080fd5b506009546001600160a01b031661038f565b3480156107cf57600080fd5b506103c76107de366004613623565b611b24565b6103c76107f13660046138e9565b611ba1565b34801561080257600080fd5b50610362611f63565b34801561081757600080fd5b506103c7610826366004613973565b611f72565b6103c76108393660046138e9565b612021565b34801561084a57600080fd5b5060165461033890610100900460ff1681565b34801561086957600080fd5b506103c7610878366004613623565b61224a565b34801561088957600080fd5b506103c76108983660046139a6565b6122c7565b3480156108a957600080fd5b506103c76108b8366004613623565b612312565b3480156108c957600080fd5b506103626108d8366004613623565b6123d5565b3480156108e957600080fd5b5061038f6108f8366004613623565b612523565b34801561090957600080fd5b506103c76109183660046137db565b61258b565b34801561092957600080fd5b506103386109383660046139f6565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b34801561097257600080fd5b506103c761098136600461367d565b6126bf565b60006109918261278c565b806109c557506001600160e01b031982167f2a55205a00000000000000000000000000000000000000000000000000000000145b92915050565b6060600280546109da90613a20565b80601f0160208091040260200160405190810160405280929190818152602001828054610a0690613a20565b8015610a535780601f10610a2857610100808354040283529160200191610a53565b820191906000526020600020905b815481529060010190602001808311610a3657829003601f168201915b5050505050905090565b6000610a6882612827565b610a9e576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b506000908152600660205260409020546001600160a01b031690565b6000610ac5826115d2565b9050806001600160a01b0316836001600160a01b03161415610b13576040517f943f7b8c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b336001600160a01b03821614801590610b335750610b318133610938565b155b15610b6a576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610b75838383612860565b505050565b6000610b8582612827565b610bfc5760405162461bcd60e51b815260206004820152602360248201527f6e6f6e6365733a20717565727920666f72206e6f6e6578697374656e7420746f60448201527f6b656e000000000000000000000000000000000000000000000000000000000060648201526084015b60405180910390fd5b6000828152600c60205260409020546109c5565b610b758383836128c9565b6009546001600160a01b03163314610c635760405162461bcd60e51b81526020600482018190526024820152600080516020613ce58339815191526044820152606401610bf3565b6000610c776009546001600160a01b031690565b6001600160a01b03164760405160006040518083038185875af1925050503d8060008114610cc1576040519150601f19603f3d011682016040523d82523d6000602084013e610cc6565b606091505b5050905080610d01576040517f64114eef00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b50565b6009546001600160a01b03163314610d4c5760405162461bcd60e51b81526020600482018190526024820152600080516020613ce58339815191526044820152606401610bf3565b60158190556040518181527f192fe3cfc7bcdbf1eb13aa502d8cd03ba01c66f0bd4e121c741da206c5a39a87906020015b60405180910390a150565b6000806000601c54601b5485610d9e9190613a71565b610da89190613aa6565b9050610dbc6009546001600160a01b031690565b925090505b9250929050565b6009546001600160a01b03163314610e105760405162461bcd60e51b81526020600482018190526024820152600080516020613ce58339815191526044820152606401610bf3565b8051610e239060189060208401906134ec565b507f5f94d5d9b7297df00452e2c094a7f1e098db8499220afabec45cc68c8094305381604051610d7d9190613610565b6009546001600160a01b03163314610e9b5760405162461bcd60e51b81526020600482018190526024820152600080516020613ce58339815191526044820152606401610bf3565b662386f26fc100008111610ee15760405162461bcd60e51b815260206004820152600d60248201526c505249434520544f4f204c4f5760981b6044820152606401610bf3565b60118190556040518181527ff74dd00aeaa57bf3d02eaabc9167b36c650311388caa46c74e5279b3aef8491490602001610d7d565b60007f00000000000000000000000000000000000000000000000000000000000000014614610fec57610fe7604080517f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f60208201527f9658c2d75b5b8f55c7cf1f02a00af6e0c2f9e0d838549949097464d78e2a221d918101919091527fc89efdaa54c0f20c7adf612882df0950f5a951637e0307cdcb4c672f298b8bc660608201524660808201523060a082015260009060c00160405160208183030381529060405280519060200120905090565b905090565b507f7795d2219ba4d58efc7f8d2bd88bef43b895b416954dd0ff374ea4c58441bcd690565b6009546001600160a01b031633146110595760405162461bcd60e51b81526020600482018190526024820152600080516020613ce58339815191526044820152606401610bf3565b601a8190556040518181527f03c55b1ca6b439e7daf40fb6711304c5b128a402845bc84e3dad70bcf40480c190602001610d7d565b600260085414156110e15760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610bf3565b600260085560165462010000900460ff1661113e5760405162461bcd60e51b815260206004820152601660248201527f7075626c69632073616c65206e6f7420416374697665000000000000000000006044820152606401610bf3565b6001546000547f0000000000000000000000000000000000000000000000000000000000003a98919003600019016111769083613aba565b11156111c45760405162461bcd60e51b815260206004820152601860248201527f496e737566696369656e7420546f6b656e20537570706c7900000000000000006044820152606401610bf3565b806010546111d29190613a71565b3410156112215760405162461bcd60e51b815260206004820152601560248201527f6d696e743a696e73756666696369656e742045544800000000000000000000006044820152606401610bf3565b6013541561129457601354336000908152600e60205260409020546112469083613aba565b11156112945760405162461bcd60e51b815260206004820152601c60248201527f6d696e743a65786365656473206d6178207065722061646472657373000000006044820152606401610bf3565b336000908152600e6020526040812080548392906112b3908490613aba565b909155506112c390508282612907565b60006112d76009546001600160a01b031690565b6001600160a01b03163460405160006040518083038185875af1925050503d8060008114611321576040519150601f19603f3d011682016040523d82523d6000602084013e611326565b606091505b50509050806113775760405162461bcd60e51b815260206004820152601860248201527f6d696e743a455448207472616e73666572206661696c656400000000000000006044820152606401610bf3565b5050600160085550565b610b75838383604051806020016040528060008152506122c7565b6009546001600160a01b031633146113e45760405162461bcd60e51b81526020600482018190526024820152600080516020613ce58339815191526044820152606401610bf3565b6000600182151514611413576040518060400160405280600581526020016466616c736560d81b815250611431565b604051806040016040528060048152602001637472756560e01b8152505b60165460405191925060ff161515831515141590611453908390602001613ad2565b604051602081830303815290604052906114805760405162461bcd60e51b8152600401610bf39190613610565b506016805460ff19168315159081179091556040519081527fbabcdeaa9e3ae5f301b307018e08e1832e5f585199851024755cc6bfaa1384a4906020015b60405180910390a15050565b6009546001600160a01b031633146115125760405162461bcd60e51b81526020600482018190526024820152600080516020613ce58339815191526044820152606401610bf3565b601b8190556040518181527f72a303074856b96264029b8e131beb0fee54b9b220dd5db83bb84244d31e902f90602001610d7d565b6009546001600160a01b0316331461158f5760405162461bcd60e51b81526020600482018190526024820152600080516020613ce58339815191526044820152606401610bf3565b80516115a29060179060208401906134ec565b507f6741b2fc379fad678116fe3d4d4b9a1a184ab53ba36b86ad0fa66340b1ab41ad81604051610d7d9190613610565b60006115dd82612925565b5192915050565b6009546001600160a01b0316331461162c5760405162461bcd60e51b81526020600482018190526024820152600080516020613ce58339815191526044820152606401610bf3565b60138190556040518181527f9a97a0ec90bf3ee5fffb4bc5bdebc20f4b86a3f79a33dde63f5ab9cdb91af60e90602001610d7d565b60006001600160a01b0382166116a3576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b506001600160a01b031660009081526005602052604090205467ffffffffffffffff1690565b6009546001600160a01b031633146117115760405162461bcd60e51b81526020600482018190526024820152600080516020613ce58339815191526044820152606401610bf3565b61171b6000612a67565b565b8142111561176d5760405162461bcd60e51b815260206004820152600e60248201527f5065726d697420657870697265640000000000000000000000000000000000006044820152606401610bf3565b600061184061177a610f16565b6000868152600c60209081526040918290205482517f49ecf333e5b8c95c40fdafc95c1ad136e8914a8fb55e9dc8bb01eaa83a2df9ad818401526001600160a01b038b1681850152606081018a9052608081019190915260a08082018990528351808303909101815260c0820184528051908301207f190100000000000000000000000000000000000000000000000000000000000060e083015260e2820194909452610102808201949094528251808203909401845261012201909152815191012090565b9050600061184e8284612ac6565b509050600061185c866115d2565b90506001600160a01b0382166118b45760405162461bcd60e51b815260206004820152601160248201527f496e76616c6964207369676e61747572650000000000000000000000000000006044820152606401610bf3565b806001600160a01b0316876001600160a01b0316141561193c5760405162461bcd60e51b815260206004820152602760248201527f4552433732315065726d69743a20617070726f76616c20746f2063757272656e60448201527f74206f776e6572000000000000000000000000000000000000000000000000006064820152608401610bf3565b816001600160a01b0316816001600160a01b0316146119ac57611960818486612b33565b6119ac5760405162461bcd60e51b815260206004820152601a60248201527f4552433732315065726d69743a20756e617574686f72697a65640000000000006044820152606401610bf3565b6119b68787610aba565b50505050505050565b6009546001600160a01b03163314611a075760405162461bcd60e51b81526020600482018190526024820152600080516020613ce58339815191526044820152606401610bf3565b6000600182151514611a36576040518060400160405280600581526020016466616c736560d81b815250611a54565b604051806040016040528060048152602001637472756560e01b8152505b60165460405191925060ff62010000909104161515831515141590611a7d908390602001613ad2565b60405160208183030381529060405290611aaa5760405162461bcd60e51b8152600401610bf39190613610565b5060168054831515620100000262ff0000199091161790556040517fbabcdeaa9e3ae5f301b307018e08e1832e5f585199851024755cc6bfaa1384a4906114be90841515815260200190565b611b028484848461171d565b611b1d858585604051806020016040528060008152506122c7565b5050505050565b6009546001600160a01b03163314611b6c5760405162461bcd60e51b81526020600482018190526024820152600080516020613ce58339815191526044820152606401610bf3565b60148190556040518181527fa784fe3d0e3eb99f86a11877d429b95c89e03df1778b7c65556e1bf1902abdb290602001610d7d565b60026008541415611bf45760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610bf3565b600260085560165460ff16611c4b5760405162461bcd60e51b815260206004820152601a60248201527f70726573616c65204d696e74206973206e6f74204163746976650000000000006044820152606401610bf3565b6001546000547f0000000000000000000000000000000000000000000000000000000000003a9891900360001901611c839085613aba565b1115611cd15760405162461bcd60e51b815260206004820152601860248201527f496e737566696369656e7420546f6b656e20537570706c7900000000000000006044820152606401610bf3565b82601154611cdf9190613a71565b341015611d2e5760405162461bcd60e51b815260206004820152601960248201527f7072736c4d696e743a696e73756666696369656e7420455448000000000000006044820152606401610bf3565b611da4828280806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250506015546040516bffffffffffffffffffffffff193360601b16602082015290925060340190505b60405160208183030381529060405280519060200120612caf565b611df05760405162461bcd60e51b815260206004820152601460248201527f496e76616c6964206d65726b6c652070726f6f660000000000000000000000006044820152606401610bf3565b60125415611e6357601254336000908152600d6020526040902054611e159085613aba565b1115611e635760405162461bcd60e51b815260206004820152601260248201527f616d6f756e742065786365656473206d617800000000000000000000000000006044820152606401610bf3565b336000908152600d602052604081208054859290611e82908490613aba565b92505081905550611ea3848460405180602001604052806000815250612cc5565b6000611eb76009546001600160a01b031690565b6001600160a01b03163460405160006040518083038185875af1925050503d8060008114611f01576040519150601f19603f3d011682016040523d82523d6000602084013e611f06565b606091505b5050905080611f575760405162461bcd60e51b815260206004820152601860248201527f6d696e743a455448207472616e73666572206661696c656400000000000000006044820152606401610bf3565b50506001600855505050565b6060600380546109da90613a20565b6001600160a01b038216331415611fb5576040517fb06307db00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b601654610100900460ff166120785760405162461bcd60e51b815260206004820152601a60248201527f666f756e646572206d696e74206973206e6f74204163746976650000000000006044820152606401610bf3565b6001546000547f0000000000000000000000000000000000000000000000000000000000003a98919003600019016120b09085613aba565b11156120fe5760405162461bcd60e51b815260206004820152601860248201527f496e737566696369656e7420546f6b656e20537570706c7900000000000000006044820152606401610bf3565b612164828280806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250506014546040516bffffffffffffffffffffffff193360601b166020820152603481018990529092506054019050611d89565b6121b05760405162461bcd60e51b815260206004820152601460248201527f496e76616c6964206d65726b6c652070726f6f660000000000000000000000006044820152606401610bf3565b336000908152600f602052604090205460ff16156122105760405162461bcd60e51b815260206004820152601f60248201527f546f6b656e73206861766520616c7265616479206265656e204d696e746564006044820152606401610bf3565b336000908152600f60209081526040808320805460ff19166001179055805191820190529081526122449085908590612cc5565b50505050565b6009546001600160a01b031633146122925760405162461bcd60e51b81526020600482018190526024820152600080516020613ce58339815191526044820152606401610bf3565b60128190556040518181527f9a97a0ec90bf3ee5fffb4bc5bdebc20f4b86a3f79a33dde63f5ab9cdb91af60e90602001610d7d565b6122d28484846128c9565b6001600160a01b0383163b151580156122f457506122f284848484612cd2565b155b15612244576040516368d2bf6b60e11b815260040160405180910390fd5b6009546001600160a01b0316331461235a5760405162461bcd60e51b81526020600482018190526024820152600080516020613ce58339815191526044820152606401610bf3565b662386f26fc1000081116123a05760405162461bcd60e51b815260206004820152600d60248201526c505249434520544f4f204c4f5760981b6044820152606401610bf3565b60108190556040518181527fb6929b692b182f5174d872e8742af072aa2786771d49d1d2c4bf1f19921b9b1690602001610d7d565b60606123e082612827565b61242c5760405162461bcd60e51b815260206004820152601f60248201527f55524920717565727920666f72206e6f6e6578697374656e7420746f6b656e006044820152606401610bf3565b6017805461243990613a20565b151590506124d3576018805461244e90613a20565b80601f016020809104026020016040519081016040528092919081815260200182805461247a90613a20565b80156124c75780601f1061249c576101008083540402835291602001916124c7565b820191906000526020600020905b8154815290600101906020018083116124aa57829003601f168201915b50505050509050919050565b601a5482116125115760176124e783612dbb565b60196040516020016124fb93929190613bb1565b6040516020818303038152906040529050919050565b6018805461244e90613a20565b919050565b600061252e82612827565b61257a5760405162461bcd60e51b815260206004820152601d60248201527f67657443726561746f723a206e6f6e6578697374656e7420746f6b656e0000006044820152606401610bf3565b6009546001600160a01b03166109c5565b6009546001600160a01b031633146125d35760405162461bcd60e51b81526020600482018190526024820152600080516020613ce58339815191526044820152606401610bf3565b6000600182151514612602576040518060400160405280600581526020016466616c736560d81b815250612620565b604051806040016040528060048152602001637472756560e01b8152505b60165460405191925060ff610100909104161515831515141590612648908390602001613ad2565b604051602081830303815290604052906126755760405162461bcd60e51b8152600401610bf39190613610565b50601680548315156101000261ff00199091161790556040517fbabcdeaa9e3ae5f301b307018e08e1832e5f585199851024755cc6bfaa1384a4906114be90841515815260200190565b6009546001600160a01b031633146127075760405162461bcd60e51b81526020600482018190526024820152600080516020613ce58339815191526044820152606401610bf3565b6001600160a01b0381166127835760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610bf3565b610d0181612a67565b60006001600160e01b031982167f80ac58cd0000000000000000000000000000000000000000000000000000000014806127ef57506001600160e01b031982167f5b5e139f00000000000000000000000000000000000000000000000000000000145b806109c557507f01ffc9a7000000000000000000000000000000000000000000000000000000006001600160e01b03198316146109c5565b60008160011115801561283b575060005482105b80156109c5575050600090815260046020526040902054600160e01b900460ff161590565b600082815260066020526040808220805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b6128d4838383612eed565b6001600160a01b03831615610b75576000818152600c602052604081208054916128fd83613be4565b9190505550505050565b612921828260405180602001604052806000815250612cc5565b5050565b60408051606081018252600080825260208201819052918101919091528180600111158015612955575060005481105b15612a3557600081815260046020908152604091829020825160608101845290546001600160a01b0381168252600160a01b810467ffffffffffffffff1692820192909252600160e01b90910460ff16151591810182905290612a335780516001600160a01b0316156129c9579392505050565b5060001901600081815260046020908152604091829020825160608101845290546001600160a01b038116808352600160a01b820467ffffffffffffffff1693830193909352600160e01b900460ff1615159281019290925215612a2e579392505050565b6129c9565b505b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600980546001600160a01b0383811673ffffffffffffffffffffffffffffffffffffffff19831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b600080825160411415612afd5760208301516040840151606085015160001a612af187828585613126565b94509450505050610dc1565b825160401415612b275760208301516040840151612b1c868383613213565b935093505050610dc1565b50600090506002610dc1565b6000806000612b428585612ac6565b90925090506000816004811115612b5b57612b5b613bff565b148015612b795750856001600160a01b0316826001600160a01b0316145b15612b8957600192505050612ca8565b600080876001600160a01b0316631626ba7e60e01b8888604051602401612bb1929190613c15565b60408051601f198184030181529181526020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff166001600160e01b0319909416939093179092529051612c049190613c2e565b600060405180830381855afa9150503d8060008114612c3f576040519150601f19603f3d011682016040523d82523d6000602084013e612c44565b606091505b5091509150818015612c57575080516020145b8015612ca1575080517f1626ba7e0000000000000000000000000000000000000000000000000000000090612c959083016020908101908401613c4a565b6001600160e01b031916145b9450505050505b9392505050565b600082612cbc8584613265565b14949350505050565b610b7583838360016132d9565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a0290612d07903390899088908890600401613c67565b6020604051808303816000875af1925050508015612d42575060408051601f3d908101601f19168201909252612d3f91810190613c4a565b60015b612d9d573d808015612d70576040519150601f19603f3d011682016040523d82523d6000602084013e612d75565b606091505b508051612d95576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490505b949350505050565b606081612dfb57505060408051808201909152600181527f3000000000000000000000000000000000000000000000000000000000000000602082015290565b8160005b8115612e255780612e0f81613be4565b9150612e1e9050600a83613aa6565b9150612dff565b60008167ffffffffffffffff811115612e4057612e406136f6565b6040519080825280601f01601f191660200182016040528015612e6a576020820181803683370190505b5090505b8415612db357612e7f600183613ca3565b9150612e8c600a86613cba565b612e97906030613aba565b60f81b818381518110612eac57612eac613cce565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350612ee6600a86613aa6565b9450612e6e565b6000612ef882612925565b9050836001600160a01b031681600001516001600160a01b031614612f49576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000336001600160a01b0386161480612f675750612f678533610938565b80612f82575033612f7784610a5d565b6001600160a01b0316145b905080612fbb576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6001600160a01b038416612ffb576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61300760008487612860565b6001600160a01b038581166000908152600560209081526040808320805467ffffffffffffffff1980821667ffffffffffffffff92831660001901831617909255898616808652838620805493841693831660019081018416949094179055898652600490945282852080546001600160e01b031916909417600160a01b429092169190910217835587018084529220805491939091166130dd5760005482146130dd578054602086015167ffffffffffffffff16600160a01b026001600160e01b03199091166001600160a01b038a16171781555b50505082846001600160a01b0316866001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4611b1d565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a083111561315d575060009050600361320a565b8460ff16601b1415801561317557508460ff16601c14155b15613186575060009050600461320a565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa1580156131da573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b0381166132035760006001925092505061320a565b9150600090505b94509492505050565b6000807f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff83168161324960ff86901c601b613aba565b905061325787828885613126565b935093505050935093915050565b600081815b84518110156132d157600085828151811061328757613287613cce565b602002602001015190508083116132ad57600083815260208290526040902092506132be565b600081815260208490526040902092505b50806132c981613be4565b91505061326a565b509392505050565b6000546001600160a01b03851661331c576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b83613353576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6001600160a01b038516600081815260056020908152604080832080547fffffffffffffffffffffffffffffffff00000000000000000000000000000000811667ffffffffffffffff8083168c0181169182176801000000000000000067ffffffffffffffff1990941690921783900481168c01811690920217909155858452600490925290912080546001600160e01b031916909217600160a01b42909216919091021790558080850183801561341457506001600160a01b0387163b15155b1561349d575b60405182906001600160a01b038916906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a46134656000888480600101955088612cd2565b613482576040516368d2bf6b60e11b815260040160405180910390fd5b8082141561341a57826000541461349857600080fd5b6134e3565b5b6040516001830192906001600160a01b038916906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a48082141561349e575b50600055611b1d565b8280546134f890613a20565b90600052602060002090601f01602090048101928261351a5760008555613560565b82601f1061353357805160ff1916838001178555613560565b82800160010185558215613560579182015b82811115613560578251825591602001919060010190613545565b5061356c929150613570565b5090565b5b8082111561356c5760008155600101613571565b6001600160e01b031981168114610d0157600080fd5b6000602082840312156135ad57600080fd5b8135612ca881613585565b60005b838110156135d35781810151838201526020016135bb565b838111156122445750506000910152565b600081518084526135fc8160208601602086016135b8565b601f01601f19169290920160200192915050565b602081526000612ca860208301846135e4565b60006020828403121561363557600080fd5b5035919050565b80356001600160a01b038116811461251e57600080fd5b6000806040838503121561366657600080fd5b61366f8361363c565b946020939093013593505050565b60006020828403121561368f57600080fd5b612ca88261363c565b6000806000606084860312156136ad57600080fd5b6136b68461363c565b92506136c46020850161363c565b9150604084013590509250925092565b600080604083850312156136e757600080fd5b50508035926020909101359150565b634e487b7160e01b600052604160045260246000fd5b600067ffffffffffffffff80841115613727576137276136f6565b604051601f8501601f19908116603f0116810190828211818310171561374f5761374f6136f6565b8160405280935085815286868601111561376857600080fd5b858560208301376000602087830101525050509392505050565b60006020828403121561379457600080fd5b813567ffffffffffffffff8111156137ab57600080fd5b8201601f810184136137bc57600080fd5b612db38482356020840161370c565b8035801515811461251e57600080fd5b6000602082840312156137ed57600080fd5b612ca8826137cb565b600082601f83011261380757600080fd5b612ca88383356020850161370c565b6000806000806080858703121561382c57600080fd5b6138358561363c565b93506020850135925060408501359150606085013567ffffffffffffffff81111561385f57600080fd5b61386b878288016137f6565b91505092959194509250565b600080600080600060a0868803121561388f57600080fd5b6138988661363c565b94506138a66020870161363c565b93506040860135925060608601359150608086013567ffffffffffffffff8111156138d057600080fd5b6138dc888289016137f6565b9150509295509295909350565b600080600080606085870312156138ff57600080fd5b6139088561363c565b935060208501359250604085013567ffffffffffffffff8082111561392c57600080fd5b818701915087601f83011261394057600080fd5b81358181111561394f57600080fd5b8860208260051b850101111561396457600080fd5b95989497505060200194505050565b6000806040838503121561398657600080fd5b61398f8361363c565b915061399d602084016137cb565b90509250929050565b600080600080608085870312156139bc57600080fd5b6139c58561363c565b93506139d36020860161363c565b925060408501359150606085013567ffffffffffffffff81111561385f57600080fd5b60008060408385031215613a0957600080fd5b613a128361363c565b915061399d6020840161363c565b600181811c90821680613a3457607f821691505b60208210811415613a5557634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b6000816000190483118215151615613a8b57613a8b613a5b565b500290565b634e487b7160e01b600052601260045260246000fd5b600082613ab557613ab5613a90565b500490565b60008219821115613acd57613acd613a5b565b500190565b7f50686173652053746174757320616c7265616479200000000000000000000000815260008251613b0a8160158501602087016135b8565b9190910160150192915050565b8054600090600181811c9080831680613b3157607f831692505b6020808410821415613b5357634e487b7160e01b600052602260045260246000fd5b818015613b675760018114613b7857613ba5565b60ff19861689528489019650613ba5565b60008881526020902060005b86811015613b9d5781548b820152908501908301613b84565b505084890196505b50505050505092915050565b6000613bbd8286613b17565b8451613bcd8183602089016135b8565b613bd981830186613b17565b979650505050505050565b6000600019821415613bf857613bf8613a5b565b5060010190565b634e487b7160e01b600052602160045260246000fd5b828152604060208201526000612db360408301846135e4565b60008251613c408184602087016135b8565b9190910192915050565b600060208284031215613c5c57600080fd5b8151612ca881613585565b60006001600160a01b03808716835280861660208401525083604083015260806060830152613c9960808301846135e4565b9695505050505050565b600082821015613cb557613cb5613a5b565b500390565b600082613cc957613cc9613a90565b500690565b634e487b7160e01b600052603260045260246000fdfe4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572a2646970667358221220bce27d7ca4a1758035cfda363dd1aefb7b4f9982d90703bd3d3e25488bed3f3664736f6c634300080b0033

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

00000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000e000000000000000000000000000000000000000000000000000000000000001200000000000000000000000000000000000000000000000000000000000003a98f46711031488fbe569f363dd0f80de0704318882459fefcc505caa8c2200e374000000000000000000000000000000000000000000000000000000000000000a4d6574617665727365370000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000044d4554410000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000013100000000000000000000000000000000000000000000000000000000000000

-----Decoded View---------------
Arg [0] : name (string): Metaverse7
Arg [1] : symbol (string): META
Arg [2] : version (string): 1
Arg [3] : tokenSupply (uint256): 15000
Arg [4] : _foundersRoot (bytes32): 0xf46711031488fbe569f363dd0f80de0704318882459fefcc505caa8c2200e374

-----Encoded View---------------
11 Constructor Arguments found :
Arg [0] : 00000000000000000000000000000000000000000000000000000000000000a0
Arg [1] : 00000000000000000000000000000000000000000000000000000000000000e0
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000120
Arg [3] : 0000000000000000000000000000000000000000000000000000000000003a98
Arg [4] : f46711031488fbe569f363dd0f80de0704318882459fefcc505caa8c2200e374
Arg [5] : 000000000000000000000000000000000000000000000000000000000000000a
Arg [6] : 4d65746176657273653700000000000000000000000000000000000000000000
Arg [7] : 0000000000000000000000000000000000000000000000000000000000000004
Arg [8] : 4d45544100000000000000000000000000000000000000000000000000000000
Arg [9] : 0000000000000000000000000000000000000000000000000000000000000001
Arg [10] : 3100000000000000000000000000000000000000000000000000000000000000


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.