ETH Price: $3,673.17 (-5.40%)

Token

LFG Gem (LFGGEM)
 

Overview

Max Total Supply

7,607 LFGGEM

Holders

3,417

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Balance
2 LFGGEM
0xb53d9bd2a9985d822887456a0bf7eca899768fca
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:
Gem

Compiler Version
v0.8.14+commit.80d49f37

Optimization Enabled:
Yes with 200 runs

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

import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/token/common/ERC2981.sol";
import "@openzeppelin/contracts/utils/Address.sol";
import "@openzeppelin/contracts/utils/Strings.sol";
import "@openzeppelin/contracts/utils/cryptography/ECDSA.sol";

import "./ERC721A.sol";

contract Gem is ERC2981, ERC721A, Ownable {
    using Address for address payable;
    using Strings for uint256;

    uint256 public _price;
    uint32 public _walletFreeLimit;
    uint32 public _maxSupply;

    uint32 public _teamSupply;
    uint32 public _teamMinted;

    uint32 public _boosterSupply;
    uint256 public _boosterTimeout;
    uint32 public _boosterMinted;
    bool public isTimeout = false;
    uint32 public _boosterLimit;
    
    bool public _started;
    string public _metadataURI = "https://metadata.mypinata.cloud/ipfs/QmTYyVNRYWeruHH3ifyM5NVMuGwUiWgdBw8QtipeP5pqRS/";
    string public notRevealedURI = "http://lfggemnft.wtf/";
    bool public revealed = true;

    address public signer;

    struct Status {
        uint256 price;
        uint32 walletFreeLimit;
        uint32 maxSupply;

        uint32 teamSupply;
        uint32 teamMinted;

        uint32 boosterSupply;
        uint256 boosterTimeout;
        uint32 boosterMinted;
        
        bool started;

        uint32 userMinted;
        bool soldout;
    }

    constructor(
        address _signer, 
        uint256 price,
        uint32 maxSupply,
        uint32 teamSupply,
        uint32 boosterSupply,
        uint32 walletFreeLimit
    ) ERC721A("LFG Gem", "LFGGEM", 200, maxSupply) {
        require(maxSupply > teamSupply);

        _price = price;
        _maxSupply = maxSupply;
        _teamSupply = teamSupply;
        _boosterSupply = boosterSupply;
        _boosterLimit = boosterSupply;
        _walletFreeLimit = walletFreeLimit;
        signer = _signer;

        _boosterTimeout = block.timestamp + 1800;
        setFeeNumerator(1000);
    }


    function mint(uint32 amount, bytes memory signature) external payable {
        require(_started, "Gem: Sale is not started");
        if (!isTimeout && block.timestamp >= _boosterTimeout) {
            isTimeout = true;
            _boosterLimit = _boosterMinted;
        }

        if(!isTimeout && signer == _signatureWallet(msg.sender, signature)) {
            if (_boosterMinted + amount <= _boosterLimit) {
                mint_pay(amount);
                _boosterMinted += amount;
            } else {
                uint32 publicAmount = amount - (_boosterLimit - _boosterMinted);
                require(publicAmount + _publicMinted() <= _publicSupply(), "Gem: Exceed max supply");
                mint_pay(amount);
                _boosterMinted = _boosterLimit;
            }
        } else {
            require(amount + _publicMinted() <= _publicSupply(), "Gem: Exceed max supply");
            mint_pay(amount);
        }
    }

    function mint_pay(uint32 amount) internal {
        uint32 minted = uint32(_numberMinted(msg.sender));
        uint256 requiredValue = 0;

        if (minted + amount > _walletFreeLimit) {
            uint32 payAmount = minted + amount - _walletFreeLimit;
            if (payAmount > amount)  payAmount = amount;
            requiredValue = payAmount * _price;
        }

        require(msg.value >= requiredValue, "Gem: Insufficient fund");

        _safeMint(msg.sender, amount);
        if (msg.value > requiredValue) {
            payable(msg.sender).sendValue(msg.value - requiredValue);
        }
    }
    
    function _signatureWallet (address sender, bytes memory signature) private pure returns (address){
        bytes32 hash = keccak256(
            abi.encodePacked(
            "\x19Ethereum Signed Message:\n32",
            keccak256(abi.encodePacked(sender))
            )
        );
        (address s, ) = ECDSA.tryRecover(hash, signature);
        return s;
    }

    function _publicMinted() public view returns (uint32) {
        return uint32(totalSupply()) - _teamMinted - _boosterMinted;
    }

    function _publicSupply() public view returns (uint32) {
        return _maxSupply - _teamSupply - _boosterLimit;
    }

    function _status(address minter) external view returns (Status memory) {
        return Status({
            price: _price,
            walletFreeLimit: _walletFreeLimit,
            maxSupply: _maxSupply,

            teamSupply: _teamSupply,
            teamMinted: _teamMinted,

            boosterSupply: _boosterSupply,
            boosterTimeout: _boosterTimeout,
            boosterMinted: _boosterMinted,
        
            userMinted: uint32(_numberMinted(minter)),
            soldout: totalSupply() >= _maxSupply,
            started: _started
        });
    }

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

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

        string memory baseURI = _metadataURI;
        return string(abi.encodePacked(baseURI, tokenId.toString(), ".json"));
    }

    function toggleRevealed() external onlyOwner {
        revealed = !revealed;
    }

    function setNotRevealedURI(string memory newNotRevealedURI) external onlyOwner {
        notRevealedURI = newNotRevealedURI;
    }

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

    function devMint(address to, uint32 amount) external onlyOwner {
        _teamMinted += amount;
        require(_teamMinted <= _teamSupply, "Gem: Exceed max supply");
        _safeMint(to, amount);
    }

    function setFeeNumerator(uint96 feeNumerator) public onlyOwner {
        _setDefaultRoyalty(owner(), feeNumerator);
    }

    function setStarted(bool started) external onlyOwner {
        _started = started;
    }

    function setMetadataURI(string memory uri) external onlyOwner {
        _metadataURI = uri;
    }

    function setPrice(uint256 _newValue) external onlyOwner {
        _price = _newValue;
    }

    function setMaxSupply(uint32 _newValue) external onlyOwner {
        _maxSupply = _newValue;
    }

    function setTeamSupply(uint32 _newValue) external onlyOwner {
        _teamSupply = _newValue;
    }
    
    function setBoosterSupply(uint32 _newValue) external onlyOwner {
        require(!isTimeout, "Gem:Boost mint is timeout!");
        require(_newValue > _boosterMinted, "Gem: new value must be greater minted");
        _boosterSupply = _newValue;
        _boosterLimit = _newValue;
    }

    function setBoosterTimeout(uint256 time) external onlyOwner {
        require(time > _boosterTimeout, "Gem: new timeout must be greater now");
        _boosterTimeout = time;
        isTimeout = false;
    }

    function setSigner(address _signer) external onlyOwner {
        signer = _signer;
    }

    address private wallet1 = 0x37149e5EDB00cec8B14683D4887dD26ad9E7C652;
    address private wallet2 = 0xE8A741b16cD940B06FcC9D66AB8329114C2D74a3;

    function withdraw() external onlyOwner {
        payable(wallet1).sendValue(address(this).balance/2);
        payable(wallet2).sendValue(address(this).balance/2);
    }
}

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

pragma solidity ^0.8.0;

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

/**
 * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
 * the Metadata and Enumerable extension. Built to optimize for lower gas during batch mints.
 *
 * Assumes serials are sequentially minted starting at 0 (e.g. 0, 1, 2, 3..).
 *
 * Assumes the number of issuable tokens (collection size) is capped and fits in a uint128.
 *
 * Does not support burning tokens to address(0).
 */
contract ERC721A is
  Context,
  ERC165,
  IERC721,
  IERC721Metadata,
  IERC721Enumerable
{
  using Address for address;
  using Strings for uint256;

  struct TokenOwnership {
    address addr;
    uint64 startTimestamp;
  }

  struct AddressData {
    uint128 balance;
    uint128 numberMinted;
  }

  uint256 private currentIndex = 0;

  uint256 internal immutable collectionSize;
  uint256 internal immutable maxBatchSize;

  // 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) private _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;

  /**
   * @dev
   * `maxBatchSize` refers to how much a minter can mint at a time.
   * `collectionSize_` refers to how many tokens are in the collection.
   */
  constructor(
    string memory name_,
    string memory symbol_,
    uint256 maxBatchSize_,
    uint256 collectionSize_
  ) {
    require(
      collectionSize_ > 0,
      "ERC721A: collection must have a nonzero supply"
    );
    require(maxBatchSize_ > 0, "ERC721A: max batch size must be nonzero");
    _name = name_;
    _symbol = symbol_;
    maxBatchSize = maxBatchSize_;
    collectionSize = collectionSize_;
  }

  /**
   * @dev See {IERC721Enumerable-totalSupply}.
   */
  function totalSupply() public view override returns (uint256) {
    return currentIndex;
  }

  /**
   * @dev See {IERC721Enumerable-tokenByIndex}.
   */
  function tokenByIndex(uint256 index) public view override returns (uint256) {
    require(index < totalSupply(), "ERC721A: global index out of bounds");
    return index;
  }

  /**
   * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}.
   * This read function is O(collectionSize). If calling from a separate contract, be sure to test gas first.
   * It may also degrade with extremely large collection sizes (e.g >> 10000), test for your use case.
   */
  function tokenOfOwnerByIndex(address owner, uint256 index)
    public
    view
    override
    returns (uint256)
  {
    require(index < balanceOf(owner), "ERC721A: owner index out of bounds");
    uint256 numMintedSoFar = totalSupply();
    uint256 tokenIdsIdx = 0;
    address currOwnershipAddr = address(0);
    for (uint256 i = 0; i < numMintedSoFar; i++) {
      TokenOwnership memory ownership = _ownerships[i];
      if (ownership.addr != address(0)) {
        currOwnershipAddr = ownership.addr;
      }
      if (currOwnershipAddr == owner) {
        if (tokenIdsIdx == index) {
          return i;
        }
        tokenIdsIdx++;
      }
    }
    revert("ERC721A: unable to get token of owner by index");
  }

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

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

  function _numberMinted(address owner) internal view returns (uint256) {
    require(
      owner != address(0),
      "ERC721A: number minted query for the zero address"
    );
    return uint256(_addressData[owner].numberMinted);
  }

  function ownershipOf(uint256 tokenId)
    internal
    view
    returns (TokenOwnership memory)
  {
    require(_exists(tokenId), "ERC721A: owner query for nonexistent token");

    uint256 lowestTokenToCheck;
    if (tokenId >= maxBatchSize) {
      lowestTokenToCheck = tokenId - maxBatchSize + 1;
    }

    for (uint256 curr = tokenId; curr >= lowestTokenToCheck; curr--) {
      TokenOwnership memory ownership = _ownerships[curr];
      if (ownership.addr != address(0)) {
        return ownership;
      }
    }

    revert("ERC721A: unable to determine the owner of token");
  }

  /**
   * @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)
  {
    require(
      _exists(tokenId),
      "ERC721Metadata: URI query for nonexistent token"
    );

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

  /**
   * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each
   * token will be the concatenation of the `baseURI` and the `tokenId`. Empty
   * by default, can be 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);
    require(to != owner, "ERC721A: approval to current owner");

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

    _approve(to, tokenId, owner);
  }

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

    return _tokenApprovals[tokenId];
  }

  /**
   * @dev See {IERC721-setApprovalForAll}.
   */
  function setApprovalForAll(address operator, bool approved) public override {
    require(operator != _msgSender(), "ERC721A: approve to caller");

    _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 override {
    _transfer(from, to, tokenId);
  }

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

  /**
   * @dev See {IERC721-safeTransferFrom}.
   */
  function safeTransferFrom(
    address from,
    address to,
    uint256 tokenId,
    bytes memory _data
  ) public override {
    _transfer(from, to, tokenId);
    require(
      _checkOnERC721Received(from, to, tokenId, _data),
      "ERC721A: transfer to non ERC721Receiver implementer"
    );
  }

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

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

  /**
   * @dev Mints `quantity` tokens and transfers them to `to`.
   *
   * Requirements:
   *
   * - there must be `quantity` tokens remaining unminted in the total collection.
   * - `to` cannot be the zero address.
   * - `quantity` cannot be larger than the max batch size.
   *
   * Emits a {Transfer} event.
   */
  function _safeMint(
    address to,
    uint256 quantity,
    bytes memory _data
  ) internal {
    uint256 startTokenId = currentIndex;
    require(to != address(0), "ERC721A: mint to the zero address");
    // We know if the first token in the batch doesn't exist, the other ones don't as well, because of serial ordering.
    require(!_exists(startTokenId), "ERC721A: token already minted");
    require(quantity <= maxBatchSize, "ERC721A: quantity to mint too high");

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

    AddressData memory addressData = _addressData[to];
    _addressData[to] = AddressData(
      addressData.balance + uint128(quantity),
      addressData.numberMinted + uint128(quantity)
    );
    _ownerships[startTokenId] = TokenOwnership(to, uint64(block.timestamp));

    uint256 updatedIndex = startTokenId;

    for (uint256 i = 0; i < quantity; i++) {
      emit Transfer(address(0), to, updatedIndex);
      require(
        _checkOnERC721Received(address(0), to, updatedIndex, _data),
        "ERC721A: transfer to non ERC721Receiver implementer"
      );
      updatedIndex++;
    }

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

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

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

    require(
      isApprovedOrOwner,
      "ERC721A: transfer caller is not owner nor approved"
    );

    require(
      prevOwnership.addr == from,
      "ERC721A: transfer from incorrect owner"
    );
    require(to != address(0), "ERC721A: transfer to the zero address");

    _beforeTokenTransfers(from, to, tokenId, 1);

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

    _addressData[from].balance -= 1;
    _addressData[to].balance += 1;
    _ownerships[tokenId] = TokenOwnership(to, uint64(block.timestamp));

    // If the ownership slot of tokenId+1 is not explicitly set, that means the transfer initiator owns it.
    // Set the slot of tokenId+1 explicitly in storage to maintain correctness for ownerOf(tokenId+1) calls.
    uint256 nextTokenId = tokenId + 1;
    if (_ownerships[nextTokenId].addr == address(0)) {
      if (_exists(nextTokenId)) {
        _ownerships[nextTokenId] = TokenOwnership(
          prevOwnership.addr,
          prevOwnership.startTimestamp
        );
      }
    }

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

  /**
   * @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);
  }

  uint256 public nextOwnerToExplicitlySet = 0;

  /**
   * @dev Explicitly set `owners` to eliminate loops in future calls of ownerOf().
   */
  function _setOwnersExplicit(uint256 quantity) internal {
    uint256 oldNextOwnerToSet = nextOwnerToExplicitlySet;
    require(quantity > 0, "quantity must be nonzero");
    uint256 endIndex = oldNextOwnerToSet + quantity - 1;
    if (endIndex > collectionSize - 1) {
      endIndex = collectionSize - 1;
    }
    // We know if the last one in the group exists, all in the group exist, due to serial ordering.
    require(_exists(endIndex), "not enough minted yet for this cleanup");
    for (uint256 i = oldNextOwnerToSet; i <= endIndex; i++) {
      if (_ownerships[i].addr == address(0)) {
        TokenOwnership memory ownership = ownershipOf(i);
        _ownerships[i] = TokenOwnership(
          ownership.addr,
          ownership.startTimestamp
        );
      }
    }
    nextOwnerToExplicitlySet = endIndex + 1;
  }

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

  /**
   * @dev Hook that is called before a set of serially-ordered token ids are about to be transferred. This includes minting.
   *
   * 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`.
   */
  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.
   *
   * 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` and `to` are never both zero.
   */
  function _afterTokenTransfers(
    address from,
    address to,
    uint256 startTokenId,
    uint256 quantity
  ) internal virtual {}
}

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

pragma solidity ^0.8.0;

import "../Strings.sol";

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

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

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

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

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

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

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

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

        return (signer, RecoverError.NoError);
    }

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

pragma solidity ^0.8.1;

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

        return account.code.length > 0;
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

File 6 of 15 : ERC2981.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (token/common/ERC2981.sol)

pragma solidity ^0.8.0;

import "../../interfaces/IERC2981.sol";
import "../../utils/introspection/ERC165.sol";

/**
 * @dev Implementation of the NFT Royalty Standard, a standardized way to retrieve royalty payment information.
 *
 * Royalty information can be specified globally for all token ids via {_setDefaultRoyalty}, and/or individually for
 * specific token ids via {_setTokenRoyalty}. The latter takes precedence over the first.
 *
 * Royalty is specified as a fraction of sale price. {_feeDenominator} is overridable but defaults to 10000, meaning the
 * fee is specified in basis points by default.
 *
 * IMPORTANT: ERC-2981 only specifies a way to signal royalty information and does not enforce its payment. See
 * https://eips.ethereum.org/EIPS/eip-2981#optional-royalty-payments[Rationale] in the EIP. Marketplaces are expected to
 * voluntarily pay royalties together with sales, but note that this standard is not yet widely supported.
 *
 * _Available since v4.5._
 */
abstract contract ERC2981 is IERC2981, ERC165 {
    struct RoyaltyInfo {
        address receiver;
        uint96 royaltyFraction;
    }

    RoyaltyInfo private _defaultRoyaltyInfo;
    mapping(uint256 => RoyaltyInfo) private _tokenRoyaltyInfo;

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

    /**
     * @inheritdoc IERC2981
     */
    function royaltyInfo(uint256 _tokenId, uint256 _salePrice) public view virtual override returns (address, uint256) {
        RoyaltyInfo memory royalty = _tokenRoyaltyInfo[_tokenId];

        if (royalty.receiver == address(0)) {
            royalty = _defaultRoyaltyInfo;
        }

        uint256 royaltyAmount = (_salePrice * royalty.royaltyFraction) / _feeDenominator();

        return (royalty.receiver, royaltyAmount);
    }

    /**
     * @dev The denominator with which to interpret the fee set in {_setTokenRoyalty} and {_setDefaultRoyalty} as a
     * fraction of the sale price. Defaults to 10000 so fees are expressed in basis points, but may be customized by an
     * override.
     */
    function _feeDenominator() internal pure virtual returns (uint96) {
        return 10000;
    }

    /**
     * @dev Sets the royalty information that all ids in this contract will default to.
     *
     * Requirements:
     *
     * - `receiver` cannot be the zero address.
     * - `feeNumerator` cannot be greater than the fee denominator.
     */
    function _setDefaultRoyalty(address receiver, uint96 feeNumerator) internal virtual {
        require(feeNumerator <= _feeDenominator(), "ERC2981: royalty fee will exceed salePrice");
        require(receiver != address(0), "ERC2981: invalid receiver");

        _defaultRoyaltyInfo = RoyaltyInfo(receiver, feeNumerator);
    }

    /**
     * @dev Removes default royalty information.
     */
    function _deleteDefaultRoyalty() internal virtual {
        delete _defaultRoyaltyInfo;
    }

    /**
     * @dev Sets the royalty information for a specific token id, overriding the global default.
     *
     * Requirements:
     *
     * - `tokenId` must be already minted.
     * - `receiver` cannot be the zero address.
     * - `feeNumerator` cannot be greater than the fee denominator.
     */
    function _setTokenRoyalty(
        uint256 tokenId,
        address receiver,
        uint96 feeNumerator
    ) internal virtual {
        require(feeNumerator <= _feeDenominator(), "ERC2981: royalty fee will exceed salePrice");
        require(receiver != address(0), "ERC2981: Invalid parameters");

        _tokenRoyaltyInfo[tokenId] = RoyaltyInfo(receiver, feeNumerator);
    }

    /**
     * @dev Resets royalty information for the token id back to the global default.
     */
    function _resetTokenRoyalty(uint256 tokenId) internal virtual {
        delete _tokenRoyaltyInfo[tokenId];
    }
}

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

import "./IERC165.sol";

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

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

pragma solidity ^0.8.0;

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

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

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

pragma solidity ^0.8.0;

import "../IERC721.sol";

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

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

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

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

pragma solidity ^0.8.0;

import "../IERC721.sol";

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

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

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

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

pragma solidity ^0.8.0;

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

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

pragma solidity ^0.8.0;

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

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_signer","type":"address"},{"internalType":"uint256","name":"price","type":"uint256"},{"internalType":"uint32","name":"maxSupply","type":"uint32"},{"internalType":"uint32","name":"teamSupply","type":"uint32"},{"internalType":"uint32","name":"boosterSupply","type":"uint32"},{"internalType":"uint32","name":"walletFreeLimit","type":"uint32"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"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":"_boosterLimit","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_boosterMinted","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_boosterSupply","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_boosterTimeout","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_maxSupply","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_metadataURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_price","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_publicMinted","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_publicSupply","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_started","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"minter","type":"address"}],"name":"_status","outputs":[{"components":[{"internalType":"uint256","name":"price","type":"uint256"},{"internalType":"uint32","name":"walletFreeLimit","type":"uint32"},{"internalType":"uint32","name":"maxSupply","type":"uint32"},{"internalType":"uint32","name":"teamSupply","type":"uint32"},{"internalType":"uint32","name":"teamMinted","type":"uint32"},{"internalType":"uint32","name":"boosterSupply","type":"uint32"},{"internalType":"uint256","name":"boosterTimeout","type":"uint256"},{"internalType":"uint32","name":"boosterMinted","type":"uint32"},{"internalType":"bool","name":"started","type":"bool"},{"internalType":"uint32","name":"userMinted","type":"uint32"},{"internalType":"bool","name":"soldout","type":"bool"}],"internalType":"struct Gem.Status","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_teamMinted","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_teamSupply","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_walletFreeLimit","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"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":"to","type":"address"},{"internalType":"uint32","name":"amount","type":"uint32"}],"name":"devMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isTimeout","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint32","name":"amount","type":"uint32"},{"internalType":"bytes","name":"signature","type":"bytes"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"nextOwnerToExplicitlySet","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"notRevealedURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"revealed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","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":"uint32","name":"_newValue","type":"uint32"}],"name":"setBoosterSupply","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"time","type":"uint256"}],"name":"setBoosterTimeout","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint96","name":"feeNumerator","type":"uint96"}],"name":"setFeeNumerator","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint32","name":"_newValue","type":"uint32"}],"name":"setMaxSupply","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"uri","type":"string"}],"name":"setMetadataURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"newNotRevealedURI","type":"string"}],"name":"setNotRevealedURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newValue","type":"uint256"}],"name":"setPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_signer","type":"address"}],"name":"setSigner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"started","type":"bool"}],"name":"setStarted","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint32","name":"_newValue","type":"uint32"}],"name":"setTeamSupply","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"signer","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"toggleRevealed","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60006002819055600955600e805460ff60201b19169055610140604052605460c08181529062003e2260e03980516200004191600f9160209091019062000526565b506040805180820190915260158082527f687474703a2f2f6c666767656d6e66742e7774662f00000000000000000000006020909201918252620000889160109162000526565b506011805460ff19166001179055601280546001600160a01b03199081167337149e5edb00cec8b14683d4887dd26ad9e7c652179091556013805490911673e8a741b16cd940b06fcc9d66ab8329114c2d74a3179055348015620000eb57600080fd5b5060405162003e7638038062003e768339810160408190526200010e91620005e6565b604051806040016040528060078152602001664c46472047656d60c81b815250604051806040016040528060068152602001654c464747454d60d01b81525060c88663ffffffff1660008111620001c35760405162461bcd60e51b815260206004820152602e60248201527f455243373231413a20636f6c6c656374696f6e206d757374206861766520612060448201526d6e6f6e7a65726f20737570706c7960901b60648201526084015b60405180910390fd5b60008211620002255760405162461bcd60e51b815260206004820152602760248201527f455243373231413a206d61782062617463682073697a65206d757374206265206044820152666e6f6e7a65726f60c81b6064820152608401620001ba565b83516200023a90600390602087019062000526565b5082516200025090600490602086019062000526565b5060a091909152608052506200026890503362000356565b8263ffffffff168463ffffffff16116200028157600080fd5b600b859055600c8054600e805463ffffffff60281b191663ffffffff86811665010000000000810292909217909255600160201b600160601b03199092166401000000008883160263ffffffff60401b19161768010000000000000000878316021763ffffffff63ffffffff60801b011916600160801b90920263ffffffff19169190911790831617905560118054610100600160a81b0319166101006001600160a01b038916021790556200033a426107086200066c565b600d556200034a6103e8620003a8565b505050505050620006cf565b600a80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b600a546001600160a01b03163314620004045760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401620001ba565b620004226200041b600a546001600160a01b031690565b8262000425565b50565b6127106001600160601b0382161115620004955760405162461bcd60e51b815260206004820152602a60248201527f455243323938313a20726f79616c7479206665652077696c6c206578636565646044820152692073616c65507269636560b01b6064820152608401620001ba565b6001600160a01b038216620004ed5760405162461bcd60e51b815260206004820152601960248201527f455243323938313a20696e76616c6964207265636569766572000000000000006044820152606401620001ba565b604080518082019091526001600160a01b039092168083526001600160601b039091166020909201829052600160a01b90910217600055565b828054620005349062000693565b90600052602060002090601f016020900481019282620005585760008555620005a3565b82601f106200057357805160ff1916838001178555620005a3565b82800160010185558215620005a3579182015b82811115620005a357825182559160200191906001019062000586565b50620005b1929150620005b5565b5090565b5b80821115620005b15760008155600101620005b6565b805163ffffffff81168114620005e157600080fd5b919050565b60008060008060008060c087890312156200060057600080fd5b86516001600160a01b03811681146200061857600080fd5b602088015190965094506200063060408801620005cc565b93506200064060608801620005cc565b92506200065060808801620005cc565b91506200066060a08801620005cc565b90509295509295509295565b600082198211156200068e57634e487b7160e01b600052601160045260246000fd5b500190565b600181811c90821680620006a857607f821691505b602082108103620006c957634e487b7160e01b600052602260045260246000fd5b50919050565b60805160a0516137226200070060003960008181612499015281816124c30152612b0e0152600050506137226000f3fe60806040526004361061031a5760003560e01c80636352211e116101ab578063aa073907116100f7578063dd48f07d11610095578063f2c4ce1e1161006f578063f2c4ce1e14610963578063f2fde38b14610983578063f35318ee146109a3578063f9da3224146109c357600080fd5b8063dd48f07d146108d6578063e985e9c5146108fa578063ef6b141a1461094357600080fd5b8063ccd5f6a2116100d1578063ccd5f6a214610879578063d0f10cd31461088e578063d4a67623146108ab578063d7224ba0146108c057600080fd5b8063aa07390714610824578063b88d4fde14610839578063c87b56dd1461085957600080fd5b8063750521f51161016457806395d89b411161013e57806395d89b41146107ac5780639a7cfa4f146107c1578063a22cb465146107ee578063a25e2b721461080e57600080fd5b8063750521f51461074e5780638da5cb5b1461076e57806391b7f5ed1461078c57600080fd5b80636352211e146106a4578063653a819e146106c45780636c19e783146106e457806370a0823114610704578063715018a614610724578063722503801461073957600080fd5b806323b872dd1161026a5780633efadef0116102235780634df22a54116101fd5780634df22a54146106345780634f6ccce71461065557806351830227146106755780635bc020bc1461068f57600080fd5b80633efadef0146105d357806342842e0e146105f05780634d180e141461061057600080fd5b806323b872dd146104fe5780632a55205a1461051e5780632f745c591461055d57806332c269571461057d57806332e552051461059e5780633ccfd60b146105be57600080fd5b80630c143965116102d75780631955de48116102b15780631955de481461047b57806322f4596f1461049f578063235b6ea1146104c3578063238ac933146104d957600080fd5b80630c1439651461041c57806317a5aced1461043c57806318160ddd1461045c57600080fd5b806301ffc9a71461031f578063036e73c8146103545780630517431e1461036957806306fdde03146103a2578063081812fc146103c4578063095ea7b3146103fc575b600080fd5b34801561032b57600080fd5b5061033f61033a366004612ef8565b6109e3565b60405190151581526020015b60405180910390f35b610367610362366004612fe1565b610a29565b005b34801561037557600080fd5b50600c5461038d90600160401b900463ffffffff1681565b60405163ffffffff909116815260200161034b565b3480156103ae57600080fd5b506103b7610c67565b60405161034b9190613087565b3480156103d057600080fd5b506103e46103df36600461309a565b610cf9565b6040516001600160a01b03909116815260200161034b565b34801561040857600080fd5b506103676104173660046130ca565b610d84565b34801561042857600080fd5b506103676104373660046130f4565b610e9b565b34801561044857600080fd5b5061036761045736600461310f565b610fca565b34801561046857600080fd5b506002545b60405190815260200161034b565b34801561048757600080fd5b50600c5461038d90600160801b900463ffffffff1681565b3480156104ab57600080fd5b50600c5461038d90600160201b900463ffffffff1681565b3480156104cf57600080fd5b5061046d600b5481565b3480156104e557600080fd5b506011546103e49061010090046001600160a01b031681565b34801561050a57600080fd5b50610367610519366004613142565b611078565b34801561052a57600080fd5b5061053e61053936600461317e565b611083565b604080516001600160a01b03909316835260208301919091520161034b565b34801561056957600080fd5b5061046d6105783660046130ca565b611131565b34801561058957600080fd5b50600e5461033f90600160201b900460ff1681565b3480156105aa57600080fd5b506103676105b93660046130f4565b6112a8565b3480156105ca57600080fd5b506103676112fd565b3480156105df57600080fd5b50600c5461038d9063ffffffff1681565b3480156105fc57600080fd5b5061036761060b366004613142565b611369565b34801561061c57600080fd5b50600e5461038d90600160281b900463ffffffff1681565b34801561064057600080fd5b50600e5461033f90600160481b900460ff1681565b34801561066157600080fd5b5061046d61067036600461309a565b611384565b34801561068157600080fd5b5060115461033f9060ff1681565b34801561069b57600080fd5b506103676113ed565b3480156106b057600080fd5b506103e46106bf36600461309a565b61142b565b3480156106d057600080fd5b506103676106df3660046131a0565b61143d565b3480156106f057600080fd5b506103676106ff3660046131c9565b611485565b34801561071057600080fd5b5061046d61071f3660046131c9565b6114d7565b34801561073057600080fd5b50610367611568565b34801561074557600080fd5b506103b761159c565b34801561075a57600080fd5b506103676107693660046131e4565b61162a565b34801561077a57600080fd5b50600a546001600160a01b03166103e4565b34801561079857600080fd5b506103676107a736600461309a565b611667565b3480156107b857600080fd5b506103b7611696565b3480156107cd57600080fd5b506107e16107dc3660046131c9565b6116a5565b60405161034b919061322d565b3480156107fa57600080fd5b50610367610809366004613313565b6117ba565b34801561081a57600080fd5b5061046d600d5481565b34801561083057600080fd5b5061038d61187e565b34801561084557600080fd5b5061036761085436600461333d565b6118ba565b34801561086557600080fd5b506103b761087436600461309a565b6118f3565b34801561088557600080fd5b5061038d611ac6565b34801561089a57600080fd5b50600e5461038d9063ffffffff1681565b3480156108b757600080fd5b506103b7611afa565b3480156108cc57600080fd5b5061046d60095481565b3480156108e257600080fd5b50600c5461038d90600160601b900463ffffffff1681565b34801561090657600080fd5b5061033f6109153660046133a5565b6001600160a01b03918216600090815260086020908152604080832093909416825291909152205460ff1690565b34801561094f57600080fd5b5061036761095e3660046133cf565b611b07565b34801561096f57600080fd5b5061036761097e3660046131e4565b611b55565b34801561098f57600080fd5b5061036761099e3660046131c9565b611b92565b3480156109af57600080fd5b506103676109be36600461309a565b611c2a565b3480156109cf57600080fd5b506103676109de3660046130f4565b611cc4565b60006001600160e01b0319821663152a902d60e11b1480610a1457506001600160e01b031982166380ac58cd60e01b145b80610a235750610a2382611d15565b92915050565b600e54600160481b900460ff16610a875760405162461bcd60e51b815260206004820152601860248201527f47656d3a2053616c65206973206e6f742073746172746564000000000000000060448201526064015b60405180910390fd5b600e54600160201b900460ff16158015610aa35750600d544210155b15610ad157600e8054600160281b63ffffffff82160268ffffffffff000000001990911617600160201b1790555b600e54600160201b900460ff16158015610b075750610af03382611d70565b60115461010090046001600160a01b039081169116145b15610c1657600e5463ffffffff600160281b8204811691610b2a91859116613400565b63ffffffff1611610b7b57610b3e82611e0b565b600e8054839190600090610b5990849063ffffffff16613400565b92506101000a81548163ffffffff021916908363ffffffff1602179055505050565b600e54600090610b9b9063ffffffff80821691600160281b900416613428565b610ba59084613428565b9050610baf611ac6565b63ffffffff16610bbd61187e565b610bc79083613400565b63ffffffff161115610beb5760405162461bcd60e51b8152600401610a7e9061344d565b610bf483611e0b565b50600e8054600160281b810463ffffffff1663ffffffff199091161790555050565b610c1e611ac6565b63ffffffff16610c2c61187e565b610c369084613400565b63ffffffff161115610c5a5760405162461bcd60e51b8152600401610a7e9061344d565b610c6382611e0b565b5050565b606060038054610c769061347d565b80601f0160208091040260200160405190810160405280929190818152602001828054610ca29061347d565b8015610cef5780601f10610cc457610100808354040283529160200191610cef565b820191906000526020600020905b815481529060010190602001808311610cd257829003601f168201915b5050505050905090565b6000610d06826002541190565b610d685760405162461bcd60e51b815260206004820152602d60248201527f455243373231413a20617070726f76656420717565727920666f72206e6f6e6560448201526c3c34b9ba32b73a103a37b5b2b760991b6064820152608401610a7e565b506000908152600760205260409020546001600160a01b031690565b6000610d8f8261142b565b9050806001600160a01b0316836001600160a01b031603610dfd5760405162461bcd60e51b815260206004820152602260248201527f455243373231413a20617070726f76616c20746f2063757272656e74206f776e60448201526132b960f11b6064820152608401610a7e565b336001600160a01b0382161480610e195750610e198133610915565b610e8b5760405162461bcd60e51b815260206004820152603960248201527f455243373231413a20617070726f76652063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f76656420666f7220616c6c000000000000006064820152608401610a7e565b610e96838383611f00565b505050565b600a546001600160a01b03163314610ec55760405162461bcd60e51b8152600401610a7e906134b7565b600e54600160201b900460ff1615610f1f5760405162461bcd60e51b815260206004820152601a60248201527f47656d3a426f6f7374206d696e742069732074696d656f7574210000000000006044820152606401610a7e565b600e5463ffffffff90811690821611610f885760405162461bcd60e51b815260206004820152602560248201527f47656d3a206e65772076616c7565206d7573742062652067726561746572206d6044820152641a5b9d195960da1b6064820152608401610a7e565b600c805463ffffffff60801b1916600160801b63ffffffff93909316928302179055600e805468ffffffff00000000001916600160281b909202919091179055565b600a546001600160a01b03163314610ff45760405162461bcd60e51b8152600401610a7e906134b7565b80600c808282829054906101000a900463ffffffff166110149190613400565b82546101009290920a63ffffffff818102199093169183160217909155600c54600160401b81048216600160601b909104909116111590506110685760405162461bcd60e51b8152600401610a7e9061344d565b610c63828263ffffffff16611f5c565b610e96838383611f76565b60008281526001602090815260408083208151808301909252546001600160a01b038116808352600160a01b9091046001600160601b03169282019290925282916110f85750604080518082019091526000546001600160a01b0381168252600160a01b90046001600160601b031660208201525b602081015160009061271090611117906001600160601b0316876134ec565b6111219190613521565b91519350909150505b9250929050565b600061113c836114d7565b82106111955760405162461bcd60e51b815260206004820152602260248201527f455243373231413a206f776e657220696e646578206f7574206f6620626f756e604482015261647360f01b6064820152608401610a7e565b60006111a060025490565b905060008060005b83811015611248576000818152600560209081526040918290208251808401909352546001600160a01b038116808452600160a01b90910467ffffffffffffffff1691830191909152156111fb57805192505b876001600160a01b0316836001600160a01b0316036112355786840361122757509350610a2392505050565b8361123181613535565b9450505b508061124081613535565b9150506111a8565b5060405162461bcd60e51b815260206004820152602e60248201527f455243373231413a20756e61626c6520746f2067657420746f6b656e206f662060448201526d0deeedccae440c4f240d2dcc8caf60931b6064820152608401610a7e565b600a546001600160a01b031633146112d25760405162461bcd60e51b8152600401610a7e906134b7565b600c805463ffffffff909216600160401b026bffffffff000000000000000019909216919091179055565b600a546001600160a01b031633146113275760405162461bcd60e51b8152600401610a7e906134b7565b611347611335600247613521565b6012546001600160a01b0316906122fe565b611367611355600247613521565b6013546001600160a01b0316906122fe565b565b610e96838383604051806020016040528060008152506118ba565b600061138f60025490565b82106113e95760405162461bcd60e51b815260206004820152602360248201527f455243373231413a20676c6f62616c20696e646578206f7574206f6620626f756044820152626e647360e81b6064820152608401610a7e565b5090565b600a546001600160a01b031633146114175760405162461bcd60e51b8152600401610a7e906134b7565b6011805460ff19811660ff90911615179055565b600061143682612417565b5192915050565b600a546001600160a01b031633146114675760405162461bcd60e51b8152600401610a7e906134b7565b61148261147c600a546001600160a01b031690565b826125c1565b50565b600a546001600160a01b031633146114af5760405162461bcd60e51b8152600401610a7e906134b7565b601180546001600160a01b0390921661010002610100600160a81b0319909216919091179055565b60006001600160a01b0382166115435760405162461bcd60e51b815260206004820152602b60248201527f455243373231413a2062616c616e636520717565727920666f7220746865207a60448201526a65726f206164647265737360a81b6064820152608401610a7e565b506001600160a01b03166000908152600660205260409020546001600160801b031690565b600a546001600160a01b031633146115925760405162461bcd60e51b8152600401610a7e906134b7565b61136760006126be565b601080546115a99061347d565b80601f01602080910402602001604051908101604052809291908181526020018280546115d59061347d565b80156116225780601f106115f757610100808354040283529160200191611622565b820191906000526020600020905b81548152906001019060200180831161160557829003601f168201915b505050505081565b600a546001600160a01b031633146116545760405162461bcd60e51b8152600401610a7e906134b7565b8051610c6390600f906020840190612e52565b600a546001600160a01b031633146116915760405162461bcd60e51b8152600401610a7e906134b7565b600b55565b606060048054610c769061347d565b6040805161016081018252600080825260208201819052918101829052606081018290526080810182905260a0810182905260c0810182905260e08101829052610100810182905261012081018290526101408101919091526040805161016081018252600b548152600c5463ffffffff8082166020840152600160201b8204811693830193909352600160401b810483166060830152600160601b810483166080830152600160801b9004821660a0820152600d5460c0820152600e5491821660e0820152600160481b90910460ff161515610100820152610120810161178c84612710565b63ffffffff9081168252600c54602090920191600160201b9004166117b060025490565b1015905292915050565b336001600160a01b038316036118125760405162461bcd60e51b815260206004820152601a60248201527f455243373231413a20617070726f766520746f2063616c6c65720000000000006044820152606401610a7e565b3360008181526008602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b600e54600c5460009163ffffffff90811691600160601b9004166118a160025490565b6118ab9190613428565b6118b59190613428565b905090565b6118c5848484611f76565b6118d1848484846127ae565b6118ed5760405162461bcd60e51b8152600401610a7e9061354e565b50505050565b6060611900826002541190565b6119645760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b6064820152608401610a7e565b60115460ff161515600003611a0557601080546119809061347d565b80601f01602080910402602001604051908101604052809291908181526020018280546119ac9061347d565b80156119f95780601f106119ce576101008083540402835291602001916119f9565b820191906000526020600020905b8154815290600101906020018083116119dc57829003601f168201915b50505050509050919050565b6000600f8054611a149061347d565b80601f0160208091040260200160405190810160405280929190818152602001828054611a409061347d565b8015611a8d5780601f10611a6257610100808354040283529160200191611a8d565b820191906000526020600020905b815481529060010190602001808311611a7057829003601f168201915b5050505050905080611a9e846128b0565b604051602001611aaf9291906135a1565b604051602081830303815290604052915050919050565b600e54600c5460009163ffffffff600160281b9091048116916118ab91600160401b8204811691600160201b900416613428565b600f80546115a99061347d565b600a546001600160a01b03163314611b315760405162461bcd60e51b8152600401610a7e906134b7565b600e8054911515600160481b0269ff00000000000000000019909216919091179055565b600a546001600160a01b03163314611b7f5760405162461bcd60e51b8152600401610a7e906134b7565b8051610c63906010906020840190612e52565b600a546001600160a01b03163314611bbc5760405162461bcd60e51b8152600401610a7e906134b7565b6001600160a01b038116611c215760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610a7e565b611482816126be565b600a546001600160a01b03163314611c545760405162461bcd60e51b8152600401610a7e906134b7565b600d548111611cb15760405162461bcd60e51b8152602060048201526024808201527f47656d3a206e65772074696d656f7574206d7573742062652067726561746572604482015263206e6f7760e01b6064820152608401610a7e565b600d55600e805464ff0000000019169055565b600a546001600160a01b03163314611cee5760405162461bcd60e51b8152600401610a7e906134b7565b600c805463ffffffff909216600160201b0267ffffffff0000000019909216919091179055565b60006001600160e01b031982166380ac58cd60e01b1480611d4657506001600160e01b03198216635b5e139f60e01b145b80611d6157506001600160e01b0319821663780e9d6360e01b145b80610a235750610a23826129b1565b6040516bffffffffffffffffffffffff19606084901b166020820152600090819060340160408051601f198184030181529082905280516020918201207f19457468657265756d205369676e6564204d6573736167653a0a33320000000091830191909152603c820152605c016040516020818303038152906040528051906020012090506000611e0182856129e6565b5095945050505050565b6000611e1633612710565b600c5490915060009063ffffffff16611e2f8484613400565b63ffffffff161115611e8b57600c5460009063ffffffff16611e518585613400565b611e5b9190613428565b90508363ffffffff168163ffffffff161115611e745750825b600b54611e879063ffffffff83166134ec565b9150505b80341015611ed45760405162461bcd60e51b815260206004820152601660248201527511d95b4e88125b9cdd59999a58da595b9d08199d5b9960521b6044820152606401610a7e565b611ee4338463ffffffff16611f5c565b80341115610e9657610e96611ef982346135e0565b33906122fe565b60008281526007602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b610c63828260405180602001604052806000815250612a51565b6000611f8182612417565b80519091506000906001600160a01b0316336001600160a01b03161480611fb8575033611fad84610cf9565b6001600160a01b0316145b80611fca57508151611fca9033610915565b9050806120345760405162461bcd60e51b815260206004820152603260248201527f455243373231413a207472616e736665722063616c6c6572206973206e6f74206044820152711bdddb995c881b9bdc88185c1c1c9bdd995960721b6064820152608401610a7e565b846001600160a01b031682600001516001600160a01b0316146120a85760405162461bcd60e51b815260206004820152602660248201527f455243373231413a207472616e736665722066726f6d20696e636f72726563746044820152651037bbb732b960d11b6064820152608401610a7e565b6001600160a01b03841661210c5760405162461bcd60e51b815260206004820152602560248201527f455243373231413a207472616e7366657220746f20746865207a65726f206164604482015264647265737360d81b6064820152608401610a7e565b61211c6000848460000151611f00565b6001600160a01b038516600090815260066020526040812080546001929061214e9084906001600160801b03166135f7565b82546101009290920a6001600160801b038181021990931691831602179091556001600160a01b0386166000908152600660205260408120805460019450909261219a91859116613617565b82546001600160801b039182166101009390930a9283029190920219909116179055506040805180820182526001600160a01b03808716825267ffffffffffffffff428116602080850191825260008981526005909152948520935184549151909216600160a01b026001600160e01b03199091169190921617179055612222846001613639565b6000818152600560205260409020549091506001600160a01b03166122b45761224c816002541190565b156122b45760408051808201825284516001600160a01b03908116825260208087015167ffffffffffffffff9081168285019081526000878152600590935294909120925183549451909116600160a01b026001600160e01b03199094169116179190911790555b83856001600160a01b0316876001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45b505050505050565b8047101561234e5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e63650000006044820152606401610a7e565b6000826001600160a01b03168260405160006040518083038185875af1925050503d806000811461239b576040519150601f19603f3d011682016040523d82523d6000602084013e6123a0565b606091505b5050905080610e965760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d617920686176652072657665727465640000000000006064820152608401610a7e565b6040805180820190915260008082526020820152612436826002541190565b6124955760405162461bcd60e51b815260206004820152602a60248201527f455243373231413a206f776e657220717565727920666f72206e6f6e657869736044820152693a32b73a103a37b5b2b760b11b6064820152608401610a7e565b60007f000000000000000000000000000000000000000000000000000000000000000083106124f6576124e87f0000000000000000000000000000000000000000000000000000000000000000846135e0565b6124f3906001613639565b90505b825b818110612560576000818152600560209081526040918290208251808401909352546001600160a01b038116808452600160a01b90910467ffffffffffffffff16918301919091521561254d57949350505050565b508061255881613651565b9150506124f8565b5060405162461bcd60e51b815260206004820152602f60248201527f455243373231413a20756e61626c6520746f2064657465726d696e652074686560448201526e1037bbb732b91037b3103a37b5b2b760891b6064820152608401610a7e565b6127106001600160601b038216111561262f5760405162461bcd60e51b815260206004820152602a60248201527f455243323938313a20726f79616c7479206665652077696c6c206578636565646044820152692073616c65507269636560b01b6064820152608401610a7e565b6001600160a01b0382166126855760405162461bcd60e51b815260206004820152601960248201527f455243323938313a20696e76616c6964207265636569766572000000000000006044820152606401610a7e565b604080518082019091526001600160a01b039092168083526001600160601b039091166020909201829052600160a01b90910217600055565b600a80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60006001600160a01b0382166127825760405162461bcd60e51b815260206004820152603160248201527f455243373231413a206e756d626572206d696e74656420717565727920666f7260448201527020746865207a65726f206164647265737360781b6064820152608401610a7e565b506001600160a01b0316600090815260066020526040902054600160801b90046001600160801b031690565b60006001600160a01b0384163b156128a457604051630a85bd0160e11b81526001600160a01b0385169063150b7a02906127f2903390899088908890600401613668565b6020604051808303816000875af192505050801561282d575060408051601f3d908101601f1916820190925261282a918101906136a5565b60015b61288a573d80801561285b576040519150601f19603f3d011682016040523d82523d6000602084013e612860565b606091505b5080516000036128825760405162461bcd60e51b8152600401610a7e9061354e565b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490506128a8565b5060015b949350505050565b6060816000036128d75750506040805180820190915260018152600360fc1b602082015290565b8160005b811561290157806128eb81613535565b91506128fa9050600a83613521565b91506128db565b60008167ffffffffffffffff81111561291c5761291c612f35565b6040519080825280601f01601f191660200182016040528015612946576020820181803683370190505b5090505b84156128a85761295b6001836135e0565b9150612968600a866136c2565b612973906030613639565b60f81b818381518110612988576129886136d6565b60200101906001600160f81b031916908160001a9053506129aa600a86613521565b945061294a565b60006001600160e01b0319821663152a902d60e11b1480610a2357506301ffc9a760e01b6001600160e01b0319831614610a23565b6000808251604103612a1c5760208301516040840151606085015160001a612a1087828585612d2c565b9450945050505061112a565b8251604003612a455760208301516040840151612a3a868383612e19565b93509350505061112a565b5060009050600261112a565b6002546001600160a01b038416612ab45760405162461bcd60e51b815260206004820152602160248201527f455243373231413a206d696e7420746f20746865207a65726f206164647265736044820152607360f81b6064820152608401610a7e565b612abf816002541190565b15612b0c5760405162461bcd60e51b815260206004820152601d60248201527f455243373231413a20746f6b656e20616c7265616479206d696e7465640000006044820152606401610a7e565b7f0000000000000000000000000000000000000000000000000000000000000000831115612b875760405162461bcd60e51b815260206004820152602260248201527f455243373231413a207175616e7469747920746f206d696e7420746f6f2068696044820152610ced60f31b6064820152608401610a7e565b6001600160a01b0384166000908152600660209081526040918290208251808401845290546001600160801b038082168352600160801b9091041691810191909152815180830190925280519091908190612be3908790613617565b6001600160801b03168152602001858360200151612c019190613617565b6001600160801b039081169091526001600160a01b0380881660008181526006602090815260408083208751978301518716600160801b0297909616969096179094558451808601865291825267ffffffffffffffff4281168386019081528883526005909552948120915182549451909516600160a01b026001600160e01b031990941694909216939093179190911790915582905b85811015612d215760405182906001600160a01b038916906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a4612ce560008884886127ae565b612d015760405162461bcd60e51b8152600401610a7e9061354e565b81612d0b81613535565b9250508080612d1990613535565b915050612c98565b5060028190556122f6565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0831115612d635750600090506003612e10565b8460ff16601b14158015612d7b57508460ff16601c14155b15612d8c5750600090506004612e10565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015612de0573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b038116612e0957600060019250925050612e10565b9150600090505b94509492505050565b6000806001600160ff1b03831681612e3660ff86901c601b613639565b9050612e4487828885612d2c565b935093505050935093915050565b828054612e5e9061347d565b90600052602060002090601f016020900481019282612e805760008555612ec6565b82601f10612e9957805160ff1916838001178555612ec6565b82800160010185558215612ec6579182015b82811115612ec6578251825591602001919060010190612eab565b506113e99291505b808211156113e95760008155600101612ece565b6001600160e01b03198116811461148257600080fd5b600060208284031215612f0a57600080fd5b8135612f1581612ee2565b9392505050565b803563ffffffff81168114612f3057600080fd5b919050565b634e487b7160e01b600052604160045260246000fd5b600067ffffffffffffffff80841115612f6657612f66612f35565b604051601f8501601f19908116603f01168101908282118183101715612f8e57612f8e612f35565b81604052809350858152868686011115612fa757600080fd5b858560208301376000602087830101525050509392505050565b600082601f830112612fd257600080fd5b612f1583833560208501612f4b565b60008060408385031215612ff457600080fd5b612ffd83612f1c565b9150602083013567ffffffffffffffff81111561301957600080fd5b61302585828601612fc1565b9150509250929050565b60005b8381101561304a578181015183820152602001613032565b838111156118ed5750506000910152565b6000815180845261307381602086016020860161302f565b601f01601f19169290920160200192915050565b602081526000612f15602083018461305b565b6000602082840312156130ac57600080fd5b5035919050565b80356001600160a01b0381168114612f3057600080fd5b600080604083850312156130dd57600080fd5b6130e6836130b3565b946020939093013593505050565b60006020828403121561310657600080fd5b612f1582612f1c565b6000806040838503121561312257600080fd5b61312b836130b3565b915061313960208401612f1c565b90509250929050565b60008060006060848603121561315757600080fd5b613160846130b3565b925061316e602085016130b3565b9150604084013590509250925092565b6000806040838503121561319157600080fd5b50508035926020909101359150565b6000602082840312156131b257600080fd5b81356001600160601b0381168114612f1557600080fd5b6000602082840312156131db57600080fd5b612f15826130b3565b6000602082840312156131f657600080fd5b813567ffffffffffffffff81111561320d57600080fd5b8201601f8101841361321e57600080fd5b6128a884823560208401612f4b565b8151815260208083015161016083019161324e9084018263ffffffff169052565b506040830151613266604084018263ffffffff169052565b50606083015161327e606084018263ffffffff169052565b506080830151613296608084018263ffffffff169052565b5060a08301516132ae60a084018263ffffffff169052565b5060c083015160c083015260e08301516132d060e084018263ffffffff169052565b50610100838101511515908301526101208084015163ffffffff1690830152610140928301511515929091019190915290565b80358015158114612f3057600080fd5b6000806040838503121561332657600080fd5b61332f836130b3565b915061313960208401613303565b6000806000806080858703121561335357600080fd5b61335c856130b3565b935061336a602086016130b3565b925060408501359150606085013567ffffffffffffffff81111561338d57600080fd5b61339987828801612fc1565b91505092959194509250565b600080604083850312156133b857600080fd5b6133c1836130b3565b9150613139602084016130b3565b6000602082840312156133e157600080fd5b612f1582613303565b634e487b7160e01b600052601160045260246000fd5b600063ffffffff80831681851680830382111561341f5761341f6133ea565b01949350505050565b600063ffffffff83811690831681811015613445576134456133ea565b039392505050565b60208082526016908201527547656d3a20457863656564206d617820737570706c7960501b604082015260600190565b600181811c9082168061349157607f821691505b6020821081036134b157634e487b7160e01b600052602260045260246000fd5b50919050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b6000816000190483118215151615613506576135066133ea565b500290565b634e487b7160e01b600052601260045260246000fd5b6000826135305761353061350b565b500490565b600060018201613547576135476133ea565b5060010190565b60208082526033908201527f455243373231413a207472616e7366657220746f206e6f6e204552433732315260408201527232b1b2b4bb32b91034b6b83632b6b2b73a32b960691b606082015260800190565b600083516135b381846020880161302f565b8351908301906135c781836020880161302f565b64173539b7b760d91b9101908152600501949350505050565b6000828210156135f2576135f26133ea565b500390565b60006001600160801b0383811690831681811015613445576134456133ea565b60006001600160801b0380831681851680830382111561341f5761341f6133ea565b6000821982111561364c5761364c6133ea565b500190565b600081613660576136606133ea565b506000190190565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061369b9083018461305b565b9695505050505050565b6000602082840312156136b757600080fd5b8151612f1581612ee2565b6000826136d1576136d161350b565b500690565b634e487b7160e01b600052603260045260246000fdfea2646970667358221220cd1121ed821958cf22a1e2c91461c2c5c68894ce2efa16b70da49cd0e80b806664736f6c634300080e003368747470733a2f2f6d657461646174612e6d7970696e6174612e636c6f75642f697066732f516d545979564e5259576572754848336966794d354e564d754777556957676442773851746970655035707152532f000000000000000000000000afeccaba00fafb6596047a08e7ff0d5fe40d2bf2000000000000000000000000000000000000000000000000008e1bc9bf040000000000000000000000000000000000000000000000000000000000000000271000000000000000000000000000000000000000000000000000000000000003e800000000000000000000000000000000000000000000000000000000000001900000000000000000000000000000000000000000000000000000000000000002

Deployed Bytecode

0x60806040526004361061031a5760003560e01c80636352211e116101ab578063aa073907116100f7578063dd48f07d11610095578063f2c4ce1e1161006f578063f2c4ce1e14610963578063f2fde38b14610983578063f35318ee146109a3578063f9da3224146109c357600080fd5b8063dd48f07d146108d6578063e985e9c5146108fa578063ef6b141a1461094357600080fd5b8063ccd5f6a2116100d1578063ccd5f6a214610879578063d0f10cd31461088e578063d4a67623146108ab578063d7224ba0146108c057600080fd5b8063aa07390714610824578063b88d4fde14610839578063c87b56dd1461085957600080fd5b8063750521f51161016457806395d89b411161013e57806395d89b41146107ac5780639a7cfa4f146107c1578063a22cb465146107ee578063a25e2b721461080e57600080fd5b8063750521f51461074e5780638da5cb5b1461076e57806391b7f5ed1461078c57600080fd5b80636352211e146106a4578063653a819e146106c45780636c19e783146106e457806370a0823114610704578063715018a614610724578063722503801461073957600080fd5b806323b872dd1161026a5780633efadef0116102235780634df22a54116101fd5780634df22a54146106345780634f6ccce71461065557806351830227146106755780635bc020bc1461068f57600080fd5b80633efadef0146105d357806342842e0e146105f05780634d180e141461061057600080fd5b806323b872dd146104fe5780632a55205a1461051e5780632f745c591461055d57806332c269571461057d57806332e552051461059e5780633ccfd60b146105be57600080fd5b80630c143965116102d75780631955de48116102b15780631955de481461047b57806322f4596f1461049f578063235b6ea1146104c3578063238ac933146104d957600080fd5b80630c1439651461041c57806317a5aced1461043c57806318160ddd1461045c57600080fd5b806301ffc9a71461031f578063036e73c8146103545780630517431e1461036957806306fdde03146103a2578063081812fc146103c4578063095ea7b3146103fc575b600080fd5b34801561032b57600080fd5b5061033f61033a366004612ef8565b6109e3565b60405190151581526020015b60405180910390f35b610367610362366004612fe1565b610a29565b005b34801561037557600080fd5b50600c5461038d90600160401b900463ffffffff1681565b60405163ffffffff909116815260200161034b565b3480156103ae57600080fd5b506103b7610c67565b60405161034b9190613087565b3480156103d057600080fd5b506103e46103df36600461309a565b610cf9565b6040516001600160a01b03909116815260200161034b565b34801561040857600080fd5b506103676104173660046130ca565b610d84565b34801561042857600080fd5b506103676104373660046130f4565b610e9b565b34801561044857600080fd5b5061036761045736600461310f565b610fca565b34801561046857600080fd5b506002545b60405190815260200161034b565b34801561048757600080fd5b50600c5461038d90600160801b900463ffffffff1681565b3480156104ab57600080fd5b50600c5461038d90600160201b900463ffffffff1681565b3480156104cf57600080fd5b5061046d600b5481565b3480156104e557600080fd5b506011546103e49061010090046001600160a01b031681565b34801561050a57600080fd5b50610367610519366004613142565b611078565b34801561052a57600080fd5b5061053e61053936600461317e565b611083565b604080516001600160a01b03909316835260208301919091520161034b565b34801561056957600080fd5b5061046d6105783660046130ca565b611131565b34801561058957600080fd5b50600e5461033f90600160201b900460ff1681565b3480156105aa57600080fd5b506103676105b93660046130f4565b6112a8565b3480156105ca57600080fd5b506103676112fd565b3480156105df57600080fd5b50600c5461038d9063ffffffff1681565b3480156105fc57600080fd5b5061036761060b366004613142565b611369565b34801561061c57600080fd5b50600e5461038d90600160281b900463ffffffff1681565b34801561064057600080fd5b50600e5461033f90600160481b900460ff1681565b34801561066157600080fd5b5061046d61067036600461309a565b611384565b34801561068157600080fd5b5060115461033f9060ff1681565b34801561069b57600080fd5b506103676113ed565b3480156106b057600080fd5b506103e46106bf36600461309a565b61142b565b3480156106d057600080fd5b506103676106df3660046131a0565b61143d565b3480156106f057600080fd5b506103676106ff3660046131c9565b611485565b34801561071057600080fd5b5061046d61071f3660046131c9565b6114d7565b34801561073057600080fd5b50610367611568565b34801561074557600080fd5b506103b761159c565b34801561075a57600080fd5b506103676107693660046131e4565b61162a565b34801561077a57600080fd5b50600a546001600160a01b03166103e4565b34801561079857600080fd5b506103676107a736600461309a565b611667565b3480156107b857600080fd5b506103b7611696565b3480156107cd57600080fd5b506107e16107dc3660046131c9565b6116a5565b60405161034b919061322d565b3480156107fa57600080fd5b50610367610809366004613313565b6117ba565b34801561081a57600080fd5b5061046d600d5481565b34801561083057600080fd5b5061038d61187e565b34801561084557600080fd5b5061036761085436600461333d565b6118ba565b34801561086557600080fd5b506103b761087436600461309a565b6118f3565b34801561088557600080fd5b5061038d611ac6565b34801561089a57600080fd5b50600e5461038d9063ffffffff1681565b3480156108b757600080fd5b506103b7611afa565b3480156108cc57600080fd5b5061046d60095481565b3480156108e257600080fd5b50600c5461038d90600160601b900463ffffffff1681565b34801561090657600080fd5b5061033f6109153660046133a5565b6001600160a01b03918216600090815260086020908152604080832093909416825291909152205460ff1690565b34801561094f57600080fd5b5061036761095e3660046133cf565b611b07565b34801561096f57600080fd5b5061036761097e3660046131e4565b611b55565b34801561098f57600080fd5b5061036761099e3660046131c9565b611b92565b3480156109af57600080fd5b506103676109be36600461309a565b611c2a565b3480156109cf57600080fd5b506103676109de3660046130f4565b611cc4565b60006001600160e01b0319821663152a902d60e11b1480610a1457506001600160e01b031982166380ac58cd60e01b145b80610a235750610a2382611d15565b92915050565b600e54600160481b900460ff16610a875760405162461bcd60e51b815260206004820152601860248201527f47656d3a2053616c65206973206e6f742073746172746564000000000000000060448201526064015b60405180910390fd5b600e54600160201b900460ff16158015610aa35750600d544210155b15610ad157600e8054600160281b63ffffffff82160268ffffffffff000000001990911617600160201b1790555b600e54600160201b900460ff16158015610b075750610af03382611d70565b60115461010090046001600160a01b039081169116145b15610c1657600e5463ffffffff600160281b8204811691610b2a91859116613400565b63ffffffff1611610b7b57610b3e82611e0b565b600e8054839190600090610b5990849063ffffffff16613400565b92506101000a81548163ffffffff021916908363ffffffff1602179055505050565b600e54600090610b9b9063ffffffff80821691600160281b900416613428565b610ba59084613428565b9050610baf611ac6565b63ffffffff16610bbd61187e565b610bc79083613400565b63ffffffff161115610beb5760405162461bcd60e51b8152600401610a7e9061344d565b610bf483611e0b565b50600e8054600160281b810463ffffffff1663ffffffff199091161790555050565b610c1e611ac6565b63ffffffff16610c2c61187e565b610c369084613400565b63ffffffff161115610c5a5760405162461bcd60e51b8152600401610a7e9061344d565b610c6382611e0b565b5050565b606060038054610c769061347d565b80601f0160208091040260200160405190810160405280929190818152602001828054610ca29061347d565b8015610cef5780601f10610cc457610100808354040283529160200191610cef565b820191906000526020600020905b815481529060010190602001808311610cd257829003601f168201915b5050505050905090565b6000610d06826002541190565b610d685760405162461bcd60e51b815260206004820152602d60248201527f455243373231413a20617070726f76656420717565727920666f72206e6f6e6560448201526c3c34b9ba32b73a103a37b5b2b760991b6064820152608401610a7e565b506000908152600760205260409020546001600160a01b031690565b6000610d8f8261142b565b9050806001600160a01b0316836001600160a01b031603610dfd5760405162461bcd60e51b815260206004820152602260248201527f455243373231413a20617070726f76616c20746f2063757272656e74206f776e60448201526132b960f11b6064820152608401610a7e565b336001600160a01b0382161480610e195750610e198133610915565b610e8b5760405162461bcd60e51b815260206004820152603960248201527f455243373231413a20617070726f76652063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f76656420666f7220616c6c000000000000006064820152608401610a7e565b610e96838383611f00565b505050565b600a546001600160a01b03163314610ec55760405162461bcd60e51b8152600401610a7e906134b7565b600e54600160201b900460ff1615610f1f5760405162461bcd60e51b815260206004820152601a60248201527f47656d3a426f6f7374206d696e742069732074696d656f7574210000000000006044820152606401610a7e565b600e5463ffffffff90811690821611610f885760405162461bcd60e51b815260206004820152602560248201527f47656d3a206e65772076616c7565206d7573742062652067726561746572206d6044820152641a5b9d195960da1b6064820152608401610a7e565b600c805463ffffffff60801b1916600160801b63ffffffff93909316928302179055600e805468ffffffff00000000001916600160281b909202919091179055565b600a546001600160a01b03163314610ff45760405162461bcd60e51b8152600401610a7e906134b7565b80600c808282829054906101000a900463ffffffff166110149190613400565b82546101009290920a63ffffffff818102199093169183160217909155600c54600160401b81048216600160601b909104909116111590506110685760405162461bcd60e51b8152600401610a7e9061344d565b610c63828263ffffffff16611f5c565b610e96838383611f76565b60008281526001602090815260408083208151808301909252546001600160a01b038116808352600160a01b9091046001600160601b03169282019290925282916110f85750604080518082019091526000546001600160a01b0381168252600160a01b90046001600160601b031660208201525b602081015160009061271090611117906001600160601b0316876134ec565b6111219190613521565b91519350909150505b9250929050565b600061113c836114d7565b82106111955760405162461bcd60e51b815260206004820152602260248201527f455243373231413a206f776e657220696e646578206f7574206f6620626f756e604482015261647360f01b6064820152608401610a7e565b60006111a060025490565b905060008060005b83811015611248576000818152600560209081526040918290208251808401909352546001600160a01b038116808452600160a01b90910467ffffffffffffffff1691830191909152156111fb57805192505b876001600160a01b0316836001600160a01b0316036112355786840361122757509350610a2392505050565b8361123181613535565b9450505b508061124081613535565b9150506111a8565b5060405162461bcd60e51b815260206004820152602e60248201527f455243373231413a20756e61626c6520746f2067657420746f6b656e206f662060448201526d0deeedccae440c4f240d2dcc8caf60931b6064820152608401610a7e565b600a546001600160a01b031633146112d25760405162461bcd60e51b8152600401610a7e906134b7565b600c805463ffffffff909216600160401b026bffffffff000000000000000019909216919091179055565b600a546001600160a01b031633146113275760405162461bcd60e51b8152600401610a7e906134b7565b611347611335600247613521565b6012546001600160a01b0316906122fe565b611367611355600247613521565b6013546001600160a01b0316906122fe565b565b610e96838383604051806020016040528060008152506118ba565b600061138f60025490565b82106113e95760405162461bcd60e51b815260206004820152602360248201527f455243373231413a20676c6f62616c20696e646578206f7574206f6620626f756044820152626e647360e81b6064820152608401610a7e565b5090565b600a546001600160a01b031633146114175760405162461bcd60e51b8152600401610a7e906134b7565b6011805460ff19811660ff90911615179055565b600061143682612417565b5192915050565b600a546001600160a01b031633146114675760405162461bcd60e51b8152600401610a7e906134b7565b61148261147c600a546001600160a01b031690565b826125c1565b50565b600a546001600160a01b031633146114af5760405162461bcd60e51b8152600401610a7e906134b7565b601180546001600160a01b0390921661010002610100600160a81b0319909216919091179055565b60006001600160a01b0382166115435760405162461bcd60e51b815260206004820152602b60248201527f455243373231413a2062616c616e636520717565727920666f7220746865207a60448201526a65726f206164647265737360a81b6064820152608401610a7e565b506001600160a01b03166000908152600660205260409020546001600160801b031690565b600a546001600160a01b031633146115925760405162461bcd60e51b8152600401610a7e906134b7565b61136760006126be565b601080546115a99061347d565b80601f01602080910402602001604051908101604052809291908181526020018280546115d59061347d565b80156116225780601f106115f757610100808354040283529160200191611622565b820191906000526020600020905b81548152906001019060200180831161160557829003601f168201915b505050505081565b600a546001600160a01b031633146116545760405162461bcd60e51b8152600401610a7e906134b7565b8051610c6390600f906020840190612e52565b600a546001600160a01b031633146116915760405162461bcd60e51b8152600401610a7e906134b7565b600b55565b606060048054610c769061347d565b6040805161016081018252600080825260208201819052918101829052606081018290526080810182905260a0810182905260c0810182905260e08101829052610100810182905261012081018290526101408101919091526040805161016081018252600b548152600c5463ffffffff8082166020840152600160201b8204811693830193909352600160401b810483166060830152600160601b810483166080830152600160801b9004821660a0820152600d5460c0820152600e5491821660e0820152600160481b90910460ff161515610100820152610120810161178c84612710565b63ffffffff9081168252600c54602090920191600160201b9004166117b060025490565b1015905292915050565b336001600160a01b038316036118125760405162461bcd60e51b815260206004820152601a60248201527f455243373231413a20617070726f766520746f2063616c6c65720000000000006044820152606401610a7e565b3360008181526008602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b600e54600c5460009163ffffffff90811691600160601b9004166118a160025490565b6118ab9190613428565b6118b59190613428565b905090565b6118c5848484611f76565b6118d1848484846127ae565b6118ed5760405162461bcd60e51b8152600401610a7e9061354e565b50505050565b6060611900826002541190565b6119645760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b6064820152608401610a7e565b60115460ff161515600003611a0557601080546119809061347d565b80601f01602080910402602001604051908101604052809291908181526020018280546119ac9061347d565b80156119f95780601f106119ce576101008083540402835291602001916119f9565b820191906000526020600020905b8154815290600101906020018083116119dc57829003601f168201915b50505050509050919050565b6000600f8054611a149061347d565b80601f0160208091040260200160405190810160405280929190818152602001828054611a409061347d565b8015611a8d5780601f10611a6257610100808354040283529160200191611a8d565b820191906000526020600020905b815481529060010190602001808311611a7057829003601f168201915b5050505050905080611a9e846128b0565b604051602001611aaf9291906135a1565b604051602081830303815290604052915050919050565b600e54600c5460009163ffffffff600160281b9091048116916118ab91600160401b8204811691600160201b900416613428565b600f80546115a99061347d565b600a546001600160a01b03163314611b315760405162461bcd60e51b8152600401610a7e906134b7565b600e8054911515600160481b0269ff00000000000000000019909216919091179055565b600a546001600160a01b03163314611b7f5760405162461bcd60e51b8152600401610a7e906134b7565b8051610c63906010906020840190612e52565b600a546001600160a01b03163314611bbc5760405162461bcd60e51b8152600401610a7e906134b7565b6001600160a01b038116611c215760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610a7e565b611482816126be565b600a546001600160a01b03163314611c545760405162461bcd60e51b8152600401610a7e906134b7565b600d548111611cb15760405162461bcd60e51b8152602060048201526024808201527f47656d3a206e65772074696d656f7574206d7573742062652067726561746572604482015263206e6f7760e01b6064820152608401610a7e565b600d55600e805464ff0000000019169055565b600a546001600160a01b03163314611cee5760405162461bcd60e51b8152600401610a7e906134b7565b600c805463ffffffff909216600160201b0267ffffffff0000000019909216919091179055565b60006001600160e01b031982166380ac58cd60e01b1480611d4657506001600160e01b03198216635b5e139f60e01b145b80611d6157506001600160e01b0319821663780e9d6360e01b145b80610a235750610a23826129b1565b6040516bffffffffffffffffffffffff19606084901b166020820152600090819060340160408051601f198184030181529082905280516020918201207f19457468657265756d205369676e6564204d6573736167653a0a33320000000091830191909152603c820152605c016040516020818303038152906040528051906020012090506000611e0182856129e6565b5095945050505050565b6000611e1633612710565b600c5490915060009063ffffffff16611e2f8484613400565b63ffffffff161115611e8b57600c5460009063ffffffff16611e518585613400565b611e5b9190613428565b90508363ffffffff168163ffffffff161115611e745750825b600b54611e879063ffffffff83166134ec565b9150505b80341015611ed45760405162461bcd60e51b815260206004820152601660248201527511d95b4e88125b9cdd59999a58da595b9d08199d5b9960521b6044820152606401610a7e565b611ee4338463ffffffff16611f5c565b80341115610e9657610e96611ef982346135e0565b33906122fe565b60008281526007602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b610c63828260405180602001604052806000815250612a51565b6000611f8182612417565b80519091506000906001600160a01b0316336001600160a01b03161480611fb8575033611fad84610cf9565b6001600160a01b0316145b80611fca57508151611fca9033610915565b9050806120345760405162461bcd60e51b815260206004820152603260248201527f455243373231413a207472616e736665722063616c6c6572206973206e6f74206044820152711bdddb995c881b9bdc88185c1c1c9bdd995960721b6064820152608401610a7e565b846001600160a01b031682600001516001600160a01b0316146120a85760405162461bcd60e51b815260206004820152602660248201527f455243373231413a207472616e736665722066726f6d20696e636f72726563746044820152651037bbb732b960d11b6064820152608401610a7e565b6001600160a01b03841661210c5760405162461bcd60e51b815260206004820152602560248201527f455243373231413a207472616e7366657220746f20746865207a65726f206164604482015264647265737360d81b6064820152608401610a7e565b61211c6000848460000151611f00565b6001600160a01b038516600090815260066020526040812080546001929061214e9084906001600160801b03166135f7565b82546101009290920a6001600160801b038181021990931691831602179091556001600160a01b0386166000908152600660205260408120805460019450909261219a91859116613617565b82546001600160801b039182166101009390930a9283029190920219909116179055506040805180820182526001600160a01b03808716825267ffffffffffffffff428116602080850191825260008981526005909152948520935184549151909216600160a01b026001600160e01b03199091169190921617179055612222846001613639565b6000818152600560205260409020549091506001600160a01b03166122b45761224c816002541190565b156122b45760408051808201825284516001600160a01b03908116825260208087015167ffffffffffffffff9081168285019081526000878152600590935294909120925183549451909116600160a01b026001600160e01b03199094169116179190911790555b83856001600160a01b0316876001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45b505050505050565b8047101561234e5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e63650000006044820152606401610a7e565b6000826001600160a01b03168260405160006040518083038185875af1925050503d806000811461239b576040519150601f19603f3d011682016040523d82523d6000602084013e6123a0565b606091505b5050905080610e965760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d617920686176652072657665727465640000000000006064820152608401610a7e565b6040805180820190915260008082526020820152612436826002541190565b6124955760405162461bcd60e51b815260206004820152602a60248201527f455243373231413a206f776e657220717565727920666f72206e6f6e657869736044820152693a32b73a103a37b5b2b760b11b6064820152608401610a7e565b60007f00000000000000000000000000000000000000000000000000000000000000c883106124f6576124e87f00000000000000000000000000000000000000000000000000000000000000c8846135e0565b6124f3906001613639565b90505b825b818110612560576000818152600560209081526040918290208251808401909352546001600160a01b038116808452600160a01b90910467ffffffffffffffff16918301919091521561254d57949350505050565b508061255881613651565b9150506124f8565b5060405162461bcd60e51b815260206004820152602f60248201527f455243373231413a20756e61626c6520746f2064657465726d696e652074686560448201526e1037bbb732b91037b3103a37b5b2b760891b6064820152608401610a7e565b6127106001600160601b038216111561262f5760405162461bcd60e51b815260206004820152602a60248201527f455243323938313a20726f79616c7479206665652077696c6c206578636565646044820152692073616c65507269636560b01b6064820152608401610a7e565b6001600160a01b0382166126855760405162461bcd60e51b815260206004820152601960248201527f455243323938313a20696e76616c6964207265636569766572000000000000006044820152606401610a7e565b604080518082019091526001600160a01b039092168083526001600160601b039091166020909201829052600160a01b90910217600055565b600a80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60006001600160a01b0382166127825760405162461bcd60e51b815260206004820152603160248201527f455243373231413a206e756d626572206d696e74656420717565727920666f7260448201527020746865207a65726f206164647265737360781b6064820152608401610a7e565b506001600160a01b0316600090815260066020526040902054600160801b90046001600160801b031690565b60006001600160a01b0384163b156128a457604051630a85bd0160e11b81526001600160a01b0385169063150b7a02906127f2903390899088908890600401613668565b6020604051808303816000875af192505050801561282d575060408051601f3d908101601f1916820190925261282a918101906136a5565b60015b61288a573d80801561285b576040519150601f19603f3d011682016040523d82523d6000602084013e612860565b606091505b5080516000036128825760405162461bcd60e51b8152600401610a7e9061354e565b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490506128a8565b5060015b949350505050565b6060816000036128d75750506040805180820190915260018152600360fc1b602082015290565b8160005b811561290157806128eb81613535565b91506128fa9050600a83613521565b91506128db565b60008167ffffffffffffffff81111561291c5761291c612f35565b6040519080825280601f01601f191660200182016040528015612946576020820181803683370190505b5090505b84156128a85761295b6001836135e0565b9150612968600a866136c2565b612973906030613639565b60f81b818381518110612988576129886136d6565b60200101906001600160f81b031916908160001a9053506129aa600a86613521565b945061294a565b60006001600160e01b0319821663152a902d60e11b1480610a2357506301ffc9a760e01b6001600160e01b0319831614610a23565b6000808251604103612a1c5760208301516040840151606085015160001a612a1087828585612d2c565b9450945050505061112a565b8251604003612a455760208301516040840151612a3a868383612e19565b93509350505061112a565b5060009050600261112a565b6002546001600160a01b038416612ab45760405162461bcd60e51b815260206004820152602160248201527f455243373231413a206d696e7420746f20746865207a65726f206164647265736044820152607360f81b6064820152608401610a7e565b612abf816002541190565b15612b0c5760405162461bcd60e51b815260206004820152601d60248201527f455243373231413a20746f6b656e20616c7265616479206d696e7465640000006044820152606401610a7e565b7f00000000000000000000000000000000000000000000000000000000000000c8831115612b875760405162461bcd60e51b815260206004820152602260248201527f455243373231413a207175616e7469747920746f206d696e7420746f6f2068696044820152610ced60f31b6064820152608401610a7e565b6001600160a01b0384166000908152600660209081526040918290208251808401845290546001600160801b038082168352600160801b9091041691810191909152815180830190925280519091908190612be3908790613617565b6001600160801b03168152602001858360200151612c019190613617565b6001600160801b039081169091526001600160a01b0380881660008181526006602090815260408083208751978301518716600160801b0297909616969096179094558451808601865291825267ffffffffffffffff4281168386019081528883526005909552948120915182549451909516600160a01b026001600160e01b031990941694909216939093179190911790915582905b85811015612d215760405182906001600160a01b038916906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a4612ce560008884886127ae565b612d015760405162461bcd60e51b8152600401610a7e9061354e565b81612d0b81613535565b9250508080612d1990613535565b915050612c98565b5060028190556122f6565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0831115612d635750600090506003612e10565b8460ff16601b14158015612d7b57508460ff16601c14155b15612d8c5750600090506004612e10565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015612de0573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b038116612e0957600060019250925050612e10565b9150600090505b94509492505050565b6000806001600160ff1b03831681612e3660ff86901c601b613639565b9050612e4487828885612d2c565b935093505050935093915050565b828054612e5e9061347d565b90600052602060002090601f016020900481019282612e805760008555612ec6565b82601f10612e9957805160ff1916838001178555612ec6565b82800160010185558215612ec6579182015b82811115612ec6578251825591602001919060010190612eab565b506113e99291505b808211156113e95760008155600101612ece565b6001600160e01b03198116811461148257600080fd5b600060208284031215612f0a57600080fd5b8135612f1581612ee2565b9392505050565b803563ffffffff81168114612f3057600080fd5b919050565b634e487b7160e01b600052604160045260246000fd5b600067ffffffffffffffff80841115612f6657612f66612f35565b604051601f8501601f19908116603f01168101908282118183101715612f8e57612f8e612f35565b81604052809350858152868686011115612fa757600080fd5b858560208301376000602087830101525050509392505050565b600082601f830112612fd257600080fd5b612f1583833560208501612f4b565b60008060408385031215612ff457600080fd5b612ffd83612f1c565b9150602083013567ffffffffffffffff81111561301957600080fd5b61302585828601612fc1565b9150509250929050565b60005b8381101561304a578181015183820152602001613032565b838111156118ed5750506000910152565b6000815180845261307381602086016020860161302f565b601f01601f19169290920160200192915050565b602081526000612f15602083018461305b565b6000602082840312156130ac57600080fd5b5035919050565b80356001600160a01b0381168114612f3057600080fd5b600080604083850312156130dd57600080fd5b6130e6836130b3565b946020939093013593505050565b60006020828403121561310657600080fd5b612f1582612f1c565b6000806040838503121561312257600080fd5b61312b836130b3565b915061313960208401612f1c565b90509250929050565b60008060006060848603121561315757600080fd5b613160846130b3565b925061316e602085016130b3565b9150604084013590509250925092565b6000806040838503121561319157600080fd5b50508035926020909101359150565b6000602082840312156131b257600080fd5b81356001600160601b0381168114612f1557600080fd5b6000602082840312156131db57600080fd5b612f15826130b3565b6000602082840312156131f657600080fd5b813567ffffffffffffffff81111561320d57600080fd5b8201601f8101841361321e57600080fd5b6128a884823560208401612f4b565b8151815260208083015161016083019161324e9084018263ffffffff169052565b506040830151613266604084018263ffffffff169052565b50606083015161327e606084018263ffffffff169052565b506080830151613296608084018263ffffffff169052565b5060a08301516132ae60a084018263ffffffff169052565b5060c083015160c083015260e08301516132d060e084018263ffffffff169052565b50610100838101511515908301526101208084015163ffffffff1690830152610140928301511515929091019190915290565b80358015158114612f3057600080fd5b6000806040838503121561332657600080fd5b61332f836130b3565b915061313960208401613303565b6000806000806080858703121561335357600080fd5b61335c856130b3565b935061336a602086016130b3565b925060408501359150606085013567ffffffffffffffff81111561338d57600080fd5b61339987828801612fc1565b91505092959194509250565b600080604083850312156133b857600080fd5b6133c1836130b3565b9150613139602084016130b3565b6000602082840312156133e157600080fd5b612f1582613303565b634e487b7160e01b600052601160045260246000fd5b600063ffffffff80831681851680830382111561341f5761341f6133ea565b01949350505050565b600063ffffffff83811690831681811015613445576134456133ea565b039392505050565b60208082526016908201527547656d3a20457863656564206d617820737570706c7960501b604082015260600190565b600181811c9082168061349157607f821691505b6020821081036134b157634e487b7160e01b600052602260045260246000fd5b50919050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b6000816000190483118215151615613506576135066133ea565b500290565b634e487b7160e01b600052601260045260246000fd5b6000826135305761353061350b565b500490565b600060018201613547576135476133ea565b5060010190565b60208082526033908201527f455243373231413a207472616e7366657220746f206e6f6e204552433732315260408201527232b1b2b4bb32b91034b6b83632b6b2b73a32b960691b606082015260800190565b600083516135b381846020880161302f565b8351908301906135c781836020880161302f565b64173539b7b760d91b9101908152600501949350505050565b6000828210156135f2576135f26133ea565b500390565b60006001600160801b0383811690831681811015613445576134456133ea565b60006001600160801b0380831681851680830382111561341f5761341f6133ea565b6000821982111561364c5761364c6133ea565b500190565b600081613660576136606133ea565b506000190190565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061369b9083018461305b565b9695505050505050565b6000602082840312156136b757600080fd5b8151612f1581612ee2565b6000826136d1576136d161350b565b500690565b634e487b7160e01b600052603260045260246000fdfea2646970667358221220cd1121ed821958cf22a1e2c91461c2c5c68894ce2efa16b70da49cd0e80b806664736f6c634300080e0033

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

000000000000000000000000afeccaba00fafb6596047a08e7ff0d5fe40d2bf2000000000000000000000000000000000000000000000000008e1bc9bf040000000000000000000000000000000000000000000000000000000000000000271000000000000000000000000000000000000000000000000000000000000003e800000000000000000000000000000000000000000000000000000000000001900000000000000000000000000000000000000000000000000000000000000002

-----Decoded View---------------
Arg [0] : _signer (address): 0xAfecCABA00fAfb6596047a08e7Ff0d5fe40d2bf2
Arg [1] : price (uint256): 40000000000000000
Arg [2] : maxSupply (uint32): 10000
Arg [3] : teamSupply (uint32): 1000
Arg [4] : boosterSupply (uint32): 400
Arg [5] : walletFreeLimit (uint32): 2

-----Encoded View---------------
6 Constructor Arguments found :
Arg [0] : 000000000000000000000000afeccaba00fafb6596047a08e7ff0d5fe40d2bf2
Arg [1] : 000000000000000000000000000000000000000000000000008e1bc9bf040000
Arg [2] : 0000000000000000000000000000000000000000000000000000000000002710
Arg [3] : 00000000000000000000000000000000000000000000000000000000000003e8
Arg [4] : 0000000000000000000000000000000000000000000000000000000000000190
Arg [5] : 0000000000000000000000000000000000000000000000000000000000000002


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.