ETH Price: $3,468.54 (+4.04%)
Gas: 6 Gwei

Contract

0xFA2EaCc56539F5ea3448B8Ae36225d8BbB8F4402
 

Overview

ETH Balance

0.06 ETH

Eth Value

$208.11 (@ $3,468.54/ETH)

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Set Approval For...182411952023-09-29 11:52:59290 days ago1695988379IN
0xFA2EaCc5...BbB8F4402
0 ETH0.000191147.84945513
Set Approval For...168209852023-03-13 18:55:35490 days ago1678733735IN
0xFA2EaCc5...BbB8F4402
0 ETH0.0007163529.51968798
Set Approval For...168194752023-03-13 13:50:35490 days ago1678715435IN
0xFA2EaCc5...BbB8F4402
0 ETH0.0011956525.89169341
Safe Transfer Fr...167232992023-02-28 1:08:35504 days ago1677546515IN
0xFA2EaCc5...BbB8F4402
0 ETH0.0012023822.50265324
Safe Transfer Fr...167073192023-02-25 19:18:23506 days ago1677352703IN
0xFA2EaCc5...BbB8F4402
0 ETH0.0017484619.4150668
Set Approval For...166564882023-02-18 15:44:23513 days ago1676735063IN
0xFA2EaCc5...BbB8F4402
0 ETH0.0007527528.754118
Set Approval For...165361202023-02-01 19:41:47530 days ago1675280507IN
0xFA2EaCc5...BbB8F4402
0 ETH0.0013102953.99493288
Set Approval For...164543192023-01-21 9:36:23541 days ago1674293783IN
0xFA2EaCc5...BbB8F4402
0 ETH0.0003759215.49118035
Set Approval For...164203622023-01-16 15:51:23546 days ago1673884283IN
0xFA2EaCc5...BbB8F4402
0 ETH0.0010163122.00824907
Approve163038642022-12-31 9:31:11562 days ago1672479071IN
0xFA2EaCc5...BbB8F4402
0 ETH0.0007975615.6078892
Approve163010672022-12-31 0:08:47563 days ago1672445327IN
0xFA2EaCc5...BbB8F4402
0 ETH0.0009735719.05233736
Set Approval For...162052362022-12-17 15:13:11576 days ago1671289991IN
0xFA2EaCc5...BbB8F4402
0 ETH0.0007357915.90883597
Set Approval For...161351922022-12-07 20:23:59586 days ago1670444639IN
0xFA2EaCc5...BbB8F4402
0 ETH0.0007850417
Set Approval For...160495302022-11-25 20:57:47598 days ago1669409867IN
0xFA2EaCc5...BbB8F4402
0 ETH0.0002504310.31994582
Set Approval For...160214712022-11-21 22:48:23602 days ago1669070903IN
0xFA2EaCc5...BbB8F4402
0 ETH0.0002676511.02978035
Mint159471202022-11-11 13:38:11612 days ago1668173891IN
0xFA2EaCc5...BbB8F4402
0.02 ETH0.0015686818.76816911
Mint158878232022-11-03 6:51:23620 days ago1667458283IN
0xFA2EaCc5...BbB8F4402
0.02 ETH0.0011794314.11108371
Mint158712222022-10-31 23:08:23623 days ago1667257703IN
0xFA2EaCc5...BbB8F4402
0.02 ETH0.0020670924.73129841
Cashout158709162022-10-31 22:07:11623 days ago1667254031IN
0xFA2EaCc5...BbB8F4402
0 ETH0.0006702620.68202919
Set Approval For...158607072022-10-30 11:54:11624 days ago1667130851IN
0xFA2EaCc5...BbB8F4402
0 ETH0.000405688.78511583
Set Approval For...158528142022-10-29 9:26:59625 days ago1667035619IN
0xFA2EaCc5...BbB8F4402
0 ETH0.000431699.34833953
Set Approval For...158520122022-10-29 6:45:23625 days ago1667025923IN
0xFA2EaCc5...BbB8F4402
0 ETH0.000437079.46476789
Set Approval For...158512952022-10-29 4:20:47625 days ago1667017247IN
0xFA2EaCc5...BbB8F4402
0 ETH0.000446949.67861696
Set Approval For...158509322022-10-29 3:08:11625 days ago1667012891IN
0xFA2EaCc5...BbB8F4402
0 ETH0.000431479.34363739
Set Approval For...158507592022-10-29 2:33:23625 days ago1667010803IN
0xFA2EaCc5...BbB8F4402
0 ETH0.000456289.88086604
View all transactions

Latest 1 internal transaction

Advanced mode:
Parent Transaction Hash Block From To
158709162022-10-31 22:07:11623 days ago1667254031
0xFA2EaCc5...BbB8F4402
6.355 ETH
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
DistortionGames

Compiler Version
v0.8.7+commit.e28d00a7

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 14 : Distortion.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.7;

import "./MerkleProof.sol";
import "./ERC721A.sol";
import "./Ownable.sol";
import "./ReentrancyGuard.sol";

contract DistortionGames is Ownable, ERC721A, ReentrancyGuard {
    
    uint256 private _publicPrice = 0.025 ether;
    uint256 private _presalePrice = 0.02 ether;
    uint256 private _maxPurchaseDuringWhitelist = 2;
    uint256 private _maxPurchaseDuringPublic = 5;
    uint256 private _maxPerTransaction = 10;
    uint256 private _maxMint = 3500;
    address private _team = 0xfA0a865E07385C55516C7a6f069Ba82AACB109fa;
    bytes32 public merkleRoot = 0xb219a2592b5ab2fa34ba206de030ead9f78457f8574694b7e7f38c862317e532;
    mapping(address => uint256) public presaleAddressMintCount;
    bool public isPaused = false;
    bool public isPublicMint = false;
    bool public isWhitelistMint = false;

    string private _tokenURI = "https://distortiongames.xyz/api/metadata/";

    constructor() ERC721A("Distortion Games", "DISTORT", _maxPerTransaction, _maxMint) {}

    function checkIsPublicMint () external view returns (bool) {
        return isPublicMint;
    }

    function setMax (uint256 wl, uint256 transac) external onlyOwner {
        _maxPurchaseDuringWhitelist = wl;
        _maxPurchaseDuringPublic = transac;
    }

    function setPaused(bool value) external onlyOwner {
        isPaused = value;
    }

    function getPublicPrice() external view returns (uint256) {
        return _publicPrice;
    }

    function setPublicMint (bool value) external onlyOwner {
        isPublicMint = value;
    }

    function setWhitelistMint (bool value) external onlyOwner {
        isWhitelistMint = value;
    }

    function setPresalePrice (uint256 price) external onlyOwner {
        _presalePrice = price;
    }

    function setPublicPrice (uint256 price) external onlyOwner {
        _publicPrice = price;
    }

    modifier mintGuard(uint256 tokenCount) {
        require(!isPaused, "Paused!");
        require(tokenCount > 0 && tokenCount <= _maxPerTransaction, "Max per transaction reached");
        require(msg.sender == tx.origin, "Sender not origin");
        // Price check
        if (isPublicMint) {
            require(_publicPrice * tokenCount <= msg.value, "Insufficient funds");
        } else {
            require(_presalePrice * tokenCount <= msg.value, "Insufficient funds");
        }
        require(totalSupply() + tokenCount <= _maxMint+1, "Sold out!");
        _;
    }

    function mint(uint256 amount) external payable mintGuard(amount) {
        require(isPublicMint, "Sale has not started!");
        _safeMint(msg.sender, amount);
    }

    function allowlistMint(bytes32[] calldata proof, uint256 amount) external payable mintGuard(amount) {
        require(isWhitelistMint, "Allowlist mint has not started!");
        require(presaleAddressMintCount[msg.sender] + amount <= _maxPurchaseDuringWhitelist, "Maximum allowlist quantity reached!");
        presaleAddressMintCount[msg.sender] += amount;
        _safeMint(msg.sender, amount);
    }

    function cashout() external onlyOwner {
        payable(_team).transfer(address(this).balance);
    }

    function setCashout(address addr) external onlyOwner returns(address) {
        _team = addr;
        return addr;
    }

    function devMint(uint32 qty) external onlyOwner {
        _safeMint(msg.sender, qty);
    }

    function setMerkleRoot(bytes32 root) external onlyOwner {
        merkleRoot = root;
    }

    function setMaxMint(uint256 maxMint) external onlyOwner {
        _maxMint = maxMint;
    }

    function setBaseURI(string calldata baseURI) external onlyOwner {
        _tokenURI = baseURI;
    }

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

File 2 of 14 : ReentrancyGuard.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;


abstract contract ReentrancyGuard {
    // Booleans are more expensive than uint256 or any type that takes up a full
    // word because each write operation emits an extra SLOAD to first read the
    // slot's contents, replace the bits taken up by the boolean, and then write
    // back. This is the compiler's defense against contract upgrades and
    // pointer aliasing, and it cannot be disabled.

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

    uint256 private _status;

    constructor() {
        _status = _NOT_ENTERED;
    }

    modifier nonReentrant() {
        // On the first call to nonReentrant, _notEntered will be true
        require(_status != _ENTERED, "ReentrancyGuard: reentrant call");

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

        _;

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

File 3 of 14 : Ownable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "./Context.sol";

abstract contract Ownable is Context {
    address private _owner;

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

    constructor() {
        _transferOwnership(_msgSender());
    }

    function owner() public view virtual returns (address) {
        return _owner;
    }

    modifier onlyOwner() {
        require(owner() == _msgSender(), "Ownable: caller is not the owner");
        _;
    }

    function renounceOwnership() public virtual onlyOwner {
        _transferOwnership(address(0));
    }

    function transferOwnership(address newOwner) public virtual onlyOwner {
        require(newOwner != address(0), "Ownable: new owner is the zero address");
        _transferOwnership(newOwner);
    }

    function _transferOwnership(address newOwner) internal virtual {
        address oldOwner = _owner;
        _owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }
}

File 4 of 14 : ERC721A.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "./IERC721.sol";
import "./IERC721Enumerable.sol";
import "./IERC721Metadata.sol";
import "./IERC721Receiver.sol";
import "./Address.sol";
import "./Context.sol";
import "./Strings.sol";
import "./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 5 of 14 : MerkleProof.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

library MerkleProof {
    /**
     * @dev Returns true if a `leaf` can be proved to be a part of a Merkle tree
     * defined by `root`. For this, a `proof` must be provided, containing
     * sibling hashes on the branch from the leaf to the root of the tree. Each
     * pair of leaves and each pair of pre-images are assumed to be sorted.
     */
    function verify(
        bytes32[] memory proof,
        bytes32 root,
        bytes32 leaf
    ) internal pure returns (bool) {
        return processProof(proof, leaf) == root;
    }

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

File 6 of 14 : Context.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

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 7 of 14 : ERC165.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

import "./IERC165.sol";

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

File 8 of 14 : Strings.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

library Strings {
    bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef";

    function toString(uint256 value) internal pure returns (string memory) {
        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);
    }

    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);
    }

    function toHexString(uint256 value, uint256 length) internal pure returns (string memory) {
        bytes memory buffer = new bytes(2 * length + 2);
        buffer[0] = "0";
        buffer[1] = "x";
        for (uint256 i = 2 * length + 1; i > 1; --i) {
            buffer[i] = _HEX_SYMBOLS[value & 0xf];
            value >>= 4;
        }
        require(value == 0, "Strings: hex length insufficient");
        return string(buffer);
    }
}

File 9 of 14 : Address.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.1;

library Address {
    function isContract(address account) internal view returns (bool) {
        return account.code.length > 0;
    }

    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");
    }

    function functionCall(address target, bytes memory data) internal returns (bytes memory) {
        return functionCall(target, data, "Address: low-level call failed");
    }

    function functionCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal returns (bytes memory) {
        return functionCallWithValue(target, data, 0, errorMessage);
    }

    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");
    }

    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);
    }

    function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {
        return functionStaticCall(target, data, "Address: low-level static call failed");
    }

    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);
    }

    function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {
        return functionDelegateCall(target, data, "Address: low-level delegate call failed");
    }

    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);
    }

    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 10 of 14 : IERC721Receiver.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

interface IERC721Receiver {
    function onERC721Received(
        address operator,
        address from,
        uint256 tokenId,
        bytes calldata data
    ) external returns (bytes4);
}

File 11 of 14 : IERC721Metadata.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "./IERC721.sol";

interface IERC721Metadata is IERC721 {
    function name() external view returns (string memory);

    function symbol() external view returns (string memory);

    function tokenURI(uint256 tokenId) external view returns (string memory);
}

File 12 of 14 : IERC721Enumerable.sol
// SPDX-License-Identifier: MIT

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 tokenId);

    /**
     * @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 13 of 14 : IERC721.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "./IERC165.sol";

interface IERC721 is IERC165 {
    event Transfer(address indexed from, address indexed to, uint256 indexed tokenId);

    event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId);

    event ApprovalForAll(address indexed owner, address indexed operator, bool approved);

    function balanceOf(address owner) external view returns (uint256 balance);

    function ownerOf(uint256 tokenId) external view returns (address owner);

    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId
    ) external;

    function transferFrom(
        address from,
        address to,
        uint256 tokenId
    ) external;

    function approve(address to, uint256 tokenId) external;

    function getApproved(uint256 tokenId) external view returns (address operator);

    function setApprovalForAll(address operator, bool _approved) external;

    function isApprovedForAll(address owner, address operator) external view returns (bool);

    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId,
        bytes calldata data
    ) external;
}

File 14 of 14 : IERC165.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

interface IERC165 {
    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":[],"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":[{"internalType":"bytes32[]","name":"proof","type":"bytes32[]"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"allowlistMint","outputs":[],"stateMutability":"payable","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":[],"name":"cashout","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"checkIsPublicMint","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint32","name":"qty","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":[],"name":"getPublicPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isPaused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isPublicMint","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isWhitelistMint","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"merkleRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"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":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"presaleAddressMintCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"baseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"addr","type":"address"}],"name":"setCashout","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"wl","type":"uint256"},{"internalType":"uint256","name":"transac","type":"uint256"}],"name":"setMax","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"maxMint","type":"uint256"}],"name":"setMaxMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"root","type":"bytes32"}],"name":"setMerkleRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"value","type":"bool"}],"name":"setPaused","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"price","type":"uint256"}],"name":"setPresalePrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"value","type":"bool"}],"name":"setPublicMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"price","type":"uint256"}],"name":"setPublicPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"value","type":"bool"}],"name":"setWhitelistMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"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"}]

600060018190556008556658d15e17628000600a90815566470de4df820000600b556002600c556005600d55600e55610dac600f55601080546001600160a01b03191673fa0a865e07385c55516c7a6f069ba82aacb109fa1790557fb219a2592b5ab2fa34ba206de030ead9f78457f8574694b7e7f38c862317e5326011556013805462ffffff19169055610120604052602960c08181529062002c7560e0398051620000b59160149160209091019062000292565b50348015620000c357600080fd5b506040518060400160405280601081526020016f446973746f7274696f6e2047616d657360801b81525060405180604001604052806007815260200166111254d513d49560ca1b815250600e54600f546200012d620001276200023e60201b60201c565b62000242565b600081116200019a5760405162461bcd60e51b815260206004820152602e60248201527f455243373231413a20636f6c6c656374696f6e206d757374206861766520612060448201526d6e6f6e7a65726f20737570706c7960901b60648201526084015b60405180910390fd5b60008211620001fc5760405162461bcd60e51b815260206004820152602760248201527f455243373231413a206d61782062617463682073697a65206d757374206265206044820152666e6f6e7a65726f60c81b606482015260840162000191565b83516200021190600290602087019062000292565b5082516200022790600390602086019062000292565b5060a0919091526080525050600160095562000375565b3390565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b828054620002a09062000338565b90600052602060002090601f016020900481019282620002c457600085556200030f565b82601f10620002df57805160ff19168380011785556200030f565b828001600101855582156200030f579182015b828111156200030f578251825591602001919060010190620002f2565b506200031d92915062000321565b5090565b5b808211156200031d576000815560010162000322565b600181811c908216806200034d57607f821691505b602082108114156200036f57634e487b7160e01b600052602260045260246000fd5b50919050565b60805160a0516128d66200039f60003960008181611b730152611b9d0152600050506128d66000f3fe6080604052600436106102465760003560e01c80636352211e11610139578063b187bd26116100b6578063c754da331161007a578063c754da331461068c578063c75a20b3146106ac578063c87b56dd146106cc578063d7224ba0146106ec578063e985e9c514610702578063f2fde38b1461074b57600080fd5b8063b187bd26146105f5578063b3c11d3a1461060f578063b88d4fde1461062f578063be0d2a681461064f578063c62752551461066c57600080fd5b806384054d3d116100fd57806384054d3d1461057a5780638da5cb5b1461058f57806395d89b41146105ad578063a0712d68146105c2578063a22cb465146105d557600080fd5b80636352211e146104d857806370a08231146104f8578063715018a6146105185780637cb647591461052d5780637db5a6361461054d57600080fd5b80632f745c59116101c757806342842e0e1161018b57806342842e0e146104385780634f6ccce714610458578063547520fe1461047857806355f804b3146104985780635d56d55e146104b857600080fd5b80632f745c59146103a45780633057931f146103c45780633549345e146103e3578063363e86fe146104035780633b91ceef1461041857600080fd5b80631338a83f1161020e5780631338a83f1461031c57806316c38b3c1461032f57806318160ddd1461034f57806323b872dd1461036e5780632eb4a7ab1461038e57600080fd5b806301ffc9a71461024b57806306fdde0314610280578063081812fc146102a2578063095ea7b3146102da5780630e2d56cf146102fc575b600080fd5b34801561025757600080fd5b5061026b610266366004612486565b61076b565b60405190151581526020015b60405180910390f35b34801561028c57600080fd5b506102956107d8565b6040516102779190612612565b3480156102ae57600080fd5b506102c26102bd36600461246d565b61086a565b6040516001600160a01b039091168152602001610277565b3480156102e657600080fd5b506102fa6102f53660046123ad565b6108fa565b005b34801561030857600080fd5b506102fa610317366004612452565b610a12565b6102fa61032a3660046123d7565b610a56565b34801561033b57600080fd5b506102fa61034a366004612452565b610d06565b34801561035b57600080fd5b506001545b604051908152602001610277565b34801561037a57600080fd5b506102fa61038936600461226b565b610d43565b34801561039a57600080fd5b5061036060115481565b3480156103b057600080fd5b506103606103bf3660046123ad565b610d4e565b3480156103d057600080fd5b5060135461026b90610100900460ff1681565b3480156103ef57600080fd5b506102fa6103fe36600461246d565b610ec7565b34801561040f57600080fd5b50600a54610360565b34801561042457600080fd5b506102fa610433366004612532565b610ef6565b34801561044457600080fd5b506102fa61045336600461226b565b610f2b565b34801561046457600080fd5b5061036061047336600461246d565b610f46565b34801561048457600080fd5b506102fa61049336600461246d565b610faf565b3480156104a457600080fd5b506102fa6104b33660046124c0565b610fde565b3480156104c457600080fd5b506102fa6104d3366004612452565b611014565b3480156104e457600080fd5b506102c26104f336600461246d565b61105a565b34801561050457600080fd5b5061036061051336600461221d565b61106c565b34801561052457600080fd5b506102fa6110fd565b34801561053957600080fd5b506102fa61054836600461246d565b611133565b34801561055957600080fd5b5061036061056836600461221d565b60126020526000908152604090205481565b34801561058657600080fd5b506102fa611162565b34801561059b57600080fd5b506000546001600160a01b03166102c2565b3480156105b957600080fd5b506102956111c8565b6102fa6105d036600461246d565b6111d7565b3480156105e157600080fd5b506102fa6105f0366004612383565b6113df565b34801561060157600080fd5b5060135461026b9060ff1681565b34801561061b57600080fd5b506102fa61062a366004612554565b6114a4565b34801561063b57600080fd5b506102fa61064a3660046122a7565b6114de565b34801561065b57600080fd5b50601354610100900460ff1661026b565b34801561067857600080fd5b506102fa61068736600461246d565b611511565b34801561069857600080fd5b5060135461026b9062010000900460ff1681565b3480156106b857600080fd5b506102c26106c736600461221d565b611540565b3480156106d857600080fd5b506102956106e736600461246d565b61158e565b3480156106f857600080fd5b5061036060085481565b34801561070e57600080fd5b5061026b61071d366004612238565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b34801561075757600080fd5b506102fa61076636600461221d565b61165b565b60006001600160e01b031982166380ac58cd60e01b148061079c57506001600160e01b03198216635b5e139f60e01b145b806107b757506001600160e01b0319821663780e9d6360e01b145b806107d257506301ffc9a760e01b6001600160e01b03198316145b92915050565b6060600280546107e7906127c8565b80601f0160208091040260200160405190810160405280929190818152602001828054610813906127c8565b80156108605780601f1061083557610100808354040283529160200191610860565b820191906000526020600020905b81548152906001019060200180831161084357829003601f168201915b5050505050905090565b6000610877826001541190565b6108de5760405162461bcd60e51b815260206004820152602d60248201527f455243373231413a20617070726f76656420717565727920666f72206e6f6e6560448201526c3c34b9ba32b73a103a37b5b2b760991b60648201526084015b60405180910390fd5b506000908152600660205260409020546001600160a01b031690565b60006109058261105a565b9050806001600160a01b0316836001600160a01b031614156109745760405162461bcd60e51b815260206004820152602260248201527f455243373231413a20617070726f76616c20746f2063757272656e74206f776e60448201526132b960f11b60648201526084016108d5565b336001600160a01b03821614806109905750610990813361071d565b610a025760405162461bcd60e51b815260206004820152603960248201527f455243373231413a20617070726f76652063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f76656420666f7220616c6c0000000000000060648201526084016108d5565b610a0d8383836116f3565b505050565b6000546001600160a01b03163314610a3c5760405162461bcd60e51b81526004016108d590612651565b601380549115156101000261ff0019909216919091179055565b601354819060ff1615610a955760405162461bcd60e51b81526020600482015260076024820152665061757365642160c81b60448201526064016108d5565b600081118015610aa75750600e548111155b610af35760405162461bcd60e51b815260206004820152601b60248201527f4d617820706572207472616e73616374696f6e2072656163686564000000000060448201526064016108d5565b333214610b365760405162461bcd60e51b815260206004820152601160248201527029b2b73232b9103737ba1037b934b3b4b760791b60448201526064016108d5565b601354610100900460ff1615610b78573481600a54610b559190612727565b1115610b735760405162461bcd60e51b81526004016108d590612625565b610ba5565b3481600b54610b879190612727565b1115610ba55760405162461bcd60e51b81526004016108d590612625565b600f54610bb39060016126fb565b81610bbd60015490565b610bc791906126fb565b1115610c015760405162461bcd60e51b8152602060048201526009602482015268536f6c64206f75742160b81b60448201526064016108d5565b60135462010000900460ff16610c595760405162461bcd60e51b815260206004820152601f60248201527f416c6c6f776c697374206d696e7420686173206e6f742073746172746564210060448201526064016108d5565b600c5433600090815260126020526040902054610c779084906126fb565b1115610cd15760405162461bcd60e51b815260206004820152602360248201527f4d6178696d756d20616c6c6f776c697374207175616e7469747920726561636860448201526265642160e81b60648201526084016108d5565b3360009081526012602052604081208054849290610cf09084906126fb565b90915550610d009050338361174f565b50505050565b6000546001600160a01b03163314610d305760405162461bcd60e51b81526004016108d590612651565b6013805460ff1916911515919091179055565b610a0d838383611769565b6000610d598361106c565b8210610db25760405162461bcd60e51b815260206004820152602260248201527f455243373231413a206f776e657220696e646578206f7574206f6620626f756e604482015261647360f01b60648201526084016108d5565b6000610dbd60015490565b905060008060005b83811015610e67576000818152600460209081526040918290208251808401909352546001600160a01b038116808452600160a01b90910467ffffffffffffffff169183019190915215610e1857805192505b876001600160a01b0316836001600160a01b03161415610e545786841415610e46575093506107d292505050565b83610e5081612803565b9450505b5080610e5f81612803565b915050610dc5565b5060405162461bcd60e51b815260206004820152602e60248201527f455243373231413a20756e61626c6520746f2067657420746f6b656e206f662060448201526d0deeedccae440c4f240d2dcc8caf60931b60648201526084016108d5565b6000546001600160a01b03163314610ef15760405162461bcd60e51b81526004016108d590612651565b600b55565b6000546001600160a01b03163314610f205760405162461bcd60e51b81526004016108d590612651565b600c91909155600d55565b610a0d838383604051806020016040528060008152506114de565b6000610f5160015490565b8210610fab5760405162461bcd60e51b815260206004820152602360248201527f455243373231413a20676c6f62616c20696e646578206f7574206f6620626f756044820152626e647360e81b60648201526084016108d5565b5090565b6000546001600160a01b03163314610fd95760405162461bcd60e51b81526004016108d590612651565b600f55565b6000546001600160a01b031633146110085760405162461bcd60e51b81526004016108d590612651565b610a0d60148383612166565b6000546001600160a01b0316331461103e5760405162461bcd60e51b81526004016108d590612651565b60138054911515620100000262ff000019909216919091179055565b600061106582611af1565b5192915050565b60006001600160a01b0382166110d85760405162461bcd60e51b815260206004820152602b60248201527f455243373231413a2062616c616e636520717565727920666f7220746865207a60448201526a65726f206164647265737360a81b60648201526084016108d5565b506001600160a01b03166000908152600560205260409020546001600160801b031690565b6000546001600160a01b031633146111275760405162461bcd60e51b81526004016108d590612651565b6111316000611c9b565b565b6000546001600160a01b0316331461115d5760405162461bcd60e51b81526004016108d590612651565b601155565b6000546001600160a01b0316331461118c5760405162461bcd60e51b81526004016108d590612651565b6010546040516001600160a01b03909116904780156108fc02916000818181858888f193505050501580156111c5573d6000803e3d6000fd5b50565b6060600380546107e7906127c8565b601354819060ff16156112165760405162461bcd60e51b81526020600482015260076024820152665061757365642160c81b60448201526064016108d5565b6000811180156112285750600e548111155b6112745760405162461bcd60e51b815260206004820152601b60248201527f4d617820706572207472616e73616374696f6e2072656163686564000000000060448201526064016108d5565b3332146112b75760405162461bcd60e51b815260206004820152601160248201527029b2b73232b9103737ba1037b934b3b4b760791b60448201526064016108d5565b601354610100900460ff16156112f9573481600a546112d69190612727565b11156112f45760405162461bcd60e51b81526004016108d590612625565b611326565b3481600b546113089190612727565b11156113265760405162461bcd60e51b81526004016108d590612625565b600f546113349060016126fb565b8161133e60015490565b61134891906126fb565b11156113825760405162461bcd60e51b8152602060048201526009602482015268536f6c64206f75742160b81b60448201526064016108d5565b601354610100900460ff166113d15760405162461bcd60e51b815260206004820152601560248201527453616c6520686173206e6f7420737461727465642160581b60448201526064016108d5565b6113db338361174f565b5050565b6001600160a01b0382163314156114385760405162461bcd60e51b815260206004820152601a60248201527f455243373231413a20617070726f766520746f2063616c6c657200000000000060448201526064016108d5565b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6000546001600160a01b031633146114ce5760405162461bcd60e51b81526004016108d590612651565b6111c5338263ffffffff1661174f565b6114e9848484611769565b6114f584848484611ceb565b610d005760405162461bcd60e51b81526004016108d590612686565b6000546001600160a01b0316331461153b5760405162461bcd60e51b81526004016108d590612651565b600a55565b600080546001600160a01b0316331461156b5760405162461bcd60e51b81526004016108d590612651565b50601080546001600160a01b0319166001600160a01b038316179055805b919050565b606061159b826001541190565b6115ff5760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b60648201526084016108d5565b6000611609611df9565b905060008151116116295760405180602001604052806000815250611654565b8061163384611e08565b6040516020016116449291906125a6565b6040516020818303038152906040525b9392505050565b6000546001600160a01b031633146116855760405162461bcd60e51b81526004016108d590612651565b6001600160a01b0381166116ea5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016108d5565b6111c581611c9b565b60008281526006602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b6113db828260405180602001604052806000815250611f06565b600061177482611af1565b80519091506000906001600160a01b0316336001600160a01b031614806117ab5750336117a08461086a565b6001600160a01b0316145b806117bd575081516117bd903361071d565b9050806118275760405162461bcd60e51b815260206004820152603260248201527f455243373231413a207472616e736665722063616c6c6572206973206e6f74206044820152711bdddb995c881b9bdc88185c1c1c9bdd995960721b60648201526084016108d5565b846001600160a01b031682600001516001600160a01b03161461189b5760405162461bcd60e51b815260206004820152602660248201527f455243373231413a207472616e736665722066726f6d20696e636f72726563746044820152651037bbb732b960d11b60648201526084016108d5565b6001600160a01b0384166118ff5760405162461bcd60e51b815260206004820152602560248201527f455243373231413a207472616e7366657220746f20746865207a65726f206164604482015264647265737360d81b60648201526084016108d5565b61190f60008484600001516116f3565b6001600160a01b03851660009081526005602052604081208054600192906119419084906001600160801b0316612746565b82546101009290920a6001600160801b038181021990931691831602179091556001600160a01b0386166000908152600560205260408120805460019450909261198d918591166126d9565b82546001600160801b039182166101009390930a9283029190920219909116179055506040805180820182526001600160a01b03808716825267ffffffffffffffff428116602080850191825260008981526004909152948520935184549151909216600160a01b026001600160e01b03199091169190921617179055611a158460016126fb565b6000818152600460205260409020549091506001600160a01b0316611aa757611a3f816001541190565b15611aa75760408051808201825284516001600160a01b03908116825260208087015167ffffffffffffffff9081168285019081526000878152600490935294909120925183549451909116600160a01b026001600160e01b03199094169116179190911790555b83856001600160a01b0316876001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45b505050505050565b6040805180820190915260008082526020820152611b10826001541190565b611b6f5760405162461bcd60e51b815260206004820152602a60248201527f455243373231413a206f776e657220717565727920666f72206e6f6e657869736044820152693a32b73a103a37b5b2b760b11b60648201526084016108d5565b60007f00000000000000000000000000000000000000000000000000000000000000008310611bd057611bc27f00000000000000000000000000000000000000000000000000000000000000008461276e565b611bcd9060016126fb565b90505b825b818110611c3a576000818152600460209081526040918290208251808401909352546001600160a01b038116808452600160a01b90910467ffffffffffffffff169183019190915215611c2757949350505050565b5080611c32816127b1565b915050611bd2565b5060405162461bcd60e51b815260206004820152602f60248201527f455243373231413a20756e61626c6520746f2064657465726d696e652074686560448201526e1037bbb732b91037b3103a37b5b2b760891b60648201526084016108d5565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b60006001600160a01b0384163b15611ded57604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290611d2f9033908990889088906004016125d5565b602060405180830381600087803b158015611d4957600080fd5b505af1925050508015611d79575060408051601f3d908101601f19168201909252611d76918101906124a3565b60015b611dd3573d808015611da7576040519150601f19603f3d011682016040523d82523d6000602084013e611dac565b606091505b508051611dcb5760405162461bcd60e51b81526004016108d590612686565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611df1565b5060015b949350505050565b6060601480546107e7906127c8565b606081611e2c5750506040805180820190915260018152600360fc1b602082015290565b8160005b8115611e565780611e4081612803565b9150611e4f9050600a83612713565b9150611e30565b60008167ffffffffffffffff811115611e7157611e71612874565b6040519080825280601f01601f191660200182016040528015611e9b576020820181803683370190505b5090505b8415611df157611eb060018361276e565b9150611ebd600a8661281e565b611ec89060306126fb565b60f81b818381518110611edd57611edd61285e565b60200101906001600160f81b031916908160001a905350611eff600a86612713565b9450611e9f565b6001546001600160a01b038416611f695760405162461bcd60e51b815260206004820152602160248201527f455243373231413a206d696e7420746f20746865207a65726f206164647265736044820152607360f81b60648201526084016108d5565b611f74816001541190565b15611fc15760405162461bcd60e51b815260206004820152601d60248201527f455243373231413a20746f6b656e20616c7265616479206d696e74656400000060448201526064016108d5565b6001600160a01b0384166000908152600560209081526040918290208251808401845290546001600160801b038082168352600160801b909104169181019190915281518083019092528051909190819061201d9087906126d9565b6001600160801b0316815260200185836020015161203b91906126d9565b6001600160801b039081169091526001600160a01b0380881660008181526005602090815260408083208751978301518716600160801b0297909616969096179094558451808601865291825267ffffffffffffffff4281168386019081528883526004909552948120915182549451909516600160a01b026001600160e01b031990941694909216939093179190911790915582905b8581101561215b5760405182906001600160a01b038916906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a461211f6000888488611ceb565b61213b5760405162461bcd60e51b81526004016108d590612686565b8161214581612803565b925050808061215390612803565b9150506120d2565b506001819055611ae9565b828054612172906127c8565b90600052602060002090601f01602090048101928261219457600085556121da565b82601f106121ad5782800160ff198235161785556121da565b828001600101855582156121da579182015b828111156121da5782358255916020019190600101906121bf565b50610fab9291505b80821115610fab57600081556001016121e2565b80356001600160a01b038116811461158957600080fd5b8035801515811461158957600080fd5b60006020828403121561222f57600080fd5b611654826121f6565b6000806040838503121561224b57600080fd5b612254836121f6565b9150612262602084016121f6565b90509250929050565b60008060006060848603121561228057600080fd5b612289846121f6565b9250612297602085016121f6565b9150604084013590509250925092565b600080600080608085870312156122bd57600080fd5b6122c6856121f6565b93506122d4602086016121f6565b925060408501359150606085013567ffffffffffffffff808211156122f857600080fd5b818701915087601f83011261230c57600080fd5b81358181111561231e5761231e612874565b604051601f8201601f19908116603f0116810190838211818310171561234657612346612874565b816040528281528a602084870101111561235f57600080fd5b82602086016020830137600060208483010152809550505050505092959194509250565b6000806040838503121561239657600080fd5b61239f836121f6565b91506122626020840161220d565b600080604083850312156123c057600080fd5b6123c9836121f6565b946020939093013593505050565b6000806000604084860312156123ec57600080fd5b833567ffffffffffffffff8082111561240457600080fd5b818601915086601f83011261241857600080fd5b81358181111561242757600080fd5b8760208260051b850101111561243c57600080fd5b6020928301989097509590910135949350505050565b60006020828403121561246457600080fd5b6116548261220d565b60006020828403121561247f57600080fd5b5035919050565b60006020828403121561249857600080fd5b81356116548161288a565b6000602082840312156124b557600080fd5b81516116548161288a565b600080602083850312156124d357600080fd5b823567ffffffffffffffff808211156124eb57600080fd5b818501915085601f8301126124ff57600080fd5b81358181111561250e57600080fd5b86602082850101111561252057600080fd5b60209290920196919550909350505050565b6000806040838503121561254557600080fd5b50508035926020909101359150565b60006020828403121561256657600080fd5b813563ffffffff8116811461165457600080fd5b60008151808452612592816020860160208601612785565b601f01601f19169290920160200192915050565b600083516125b8818460208801612785565b8351908301906125cc818360208801612785565b01949350505050565b6001600160a01b03858116825284166020820152604081018390526080606082018190526000906126089083018461257a565b9695505050505050565b602081526000611654602083018461257a565b602080825260129082015271496e73756666696369656e742066756e647360701b604082015260600190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526033908201527f455243373231413a207472616e7366657220746f206e6f6e204552433732315260408201527232b1b2b4bb32b91034b6b83632b6b2b73a32b960691b606082015260800190565b60006001600160801b038083168185168083038211156125cc576125cc612832565b6000821982111561270e5761270e612832565b500190565b60008261272257612722612848565b500490565b600081600019048311821515161561274157612741612832565b500290565b60006001600160801b038381169083168181101561276657612766612832565b039392505050565b60008282101561278057612780612832565b500390565b60005b838110156127a0578181015183820152602001612788565b83811115610d005750506000910152565b6000816127c0576127c0612832565b506000190190565b600181811c908216806127dc57607f821691505b602082108114156127fd57634e487b7160e01b600052602260045260246000fd5b50919050565b600060001982141561281757612817612832565b5060010190565b60008261282d5761282d612848565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160e01b0319811681146111c557600080fdfea26469706673582212201c6842304e90b81775046c5ae73d4b4c9384875a6466e9d566e8de96fada3f0364736f6c6343000807003368747470733a2f2f646973746f7274696f6e67616d65732e78797a2f6170692f6d657461646174612f

Deployed Bytecode

0x6080604052600436106102465760003560e01c80636352211e11610139578063b187bd26116100b6578063c754da331161007a578063c754da331461068c578063c75a20b3146106ac578063c87b56dd146106cc578063d7224ba0146106ec578063e985e9c514610702578063f2fde38b1461074b57600080fd5b8063b187bd26146105f5578063b3c11d3a1461060f578063b88d4fde1461062f578063be0d2a681461064f578063c62752551461066c57600080fd5b806384054d3d116100fd57806384054d3d1461057a5780638da5cb5b1461058f57806395d89b41146105ad578063a0712d68146105c2578063a22cb465146105d557600080fd5b80636352211e146104d857806370a08231146104f8578063715018a6146105185780637cb647591461052d5780637db5a6361461054d57600080fd5b80632f745c59116101c757806342842e0e1161018b57806342842e0e146104385780634f6ccce714610458578063547520fe1461047857806355f804b3146104985780635d56d55e146104b857600080fd5b80632f745c59146103a45780633057931f146103c45780633549345e146103e3578063363e86fe146104035780633b91ceef1461041857600080fd5b80631338a83f1161020e5780631338a83f1461031c57806316c38b3c1461032f57806318160ddd1461034f57806323b872dd1461036e5780632eb4a7ab1461038e57600080fd5b806301ffc9a71461024b57806306fdde0314610280578063081812fc146102a2578063095ea7b3146102da5780630e2d56cf146102fc575b600080fd5b34801561025757600080fd5b5061026b610266366004612486565b61076b565b60405190151581526020015b60405180910390f35b34801561028c57600080fd5b506102956107d8565b6040516102779190612612565b3480156102ae57600080fd5b506102c26102bd36600461246d565b61086a565b6040516001600160a01b039091168152602001610277565b3480156102e657600080fd5b506102fa6102f53660046123ad565b6108fa565b005b34801561030857600080fd5b506102fa610317366004612452565b610a12565b6102fa61032a3660046123d7565b610a56565b34801561033b57600080fd5b506102fa61034a366004612452565b610d06565b34801561035b57600080fd5b506001545b604051908152602001610277565b34801561037a57600080fd5b506102fa61038936600461226b565b610d43565b34801561039a57600080fd5b5061036060115481565b3480156103b057600080fd5b506103606103bf3660046123ad565b610d4e565b3480156103d057600080fd5b5060135461026b90610100900460ff1681565b3480156103ef57600080fd5b506102fa6103fe36600461246d565b610ec7565b34801561040f57600080fd5b50600a54610360565b34801561042457600080fd5b506102fa610433366004612532565b610ef6565b34801561044457600080fd5b506102fa61045336600461226b565b610f2b565b34801561046457600080fd5b5061036061047336600461246d565b610f46565b34801561048457600080fd5b506102fa61049336600461246d565b610faf565b3480156104a457600080fd5b506102fa6104b33660046124c0565b610fde565b3480156104c457600080fd5b506102fa6104d3366004612452565b611014565b3480156104e457600080fd5b506102c26104f336600461246d565b61105a565b34801561050457600080fd5b5061036061051336600461221d565b61106c565b34801561052457600080fd5b506102fa6110fd565b34801561053957600080fd5b506102fa61054836600461246d565b611133565b34801561055957600080fd5b5061036061056836600461221d565b60126020526000908152604090205481565b34801561058657600080fd5b506102fa611162565b34801561059b57600080fd5b506000546001600160a01b03166102c2565b3480156105b957600080fd5b506102956111c8565b6102fa6105d036600461246d565b6111d7565b3480156105e157600080fd5b506102fa6105f0366004612383565b6113df565b34801561060157600080fd5b5060135461026b9060ff1681565b34801561061b57600080fd5b506102fa61062a366004612554565b6114a4565b34801561063b57600080fd5b506102fa61064a3660046122a7565b6114de565b34801561065b57600080fd5b50601354610100900460ff1661026b565b34801561067857600080fd5b506102fa61068736600461246d565b611511565b34801561069857600080fd5b5060135461026b9062010000900460ff1681565b3480156106b857600080fd5b506102c26106c736600461221d565b611540565b3480156106d857600080fd5b506102956106e736600461246d565b61158e565b3480156106f857600080fd5b5061036060085481565b34801561070e57600080fd5b5061026b61071d366004612238565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b34801561075757600080fd5b506102fa61076636600461221d565b61165b565b60006001600160e01b031982166380ac58cd60e01b148061079c57506001600160e01b03198216635b5e139f60e01b145b806107b757506001600160e01b0319821663780e9d6360e01b145b806107d257506301ffc9a760e01b6001600160e01b03198316145b92915050565b6060600280546107e7906127c8565b80601f0160208091040260200160405190810160405280929190818152602001828054610813906127c8565b80156108605780601f1061083557610100808354040283529160200191610860565b820191906000526020600020905b81548152906001019060200180831161084357829003601f168201915b5050505050905090565b6000610877826001541190565b6108de5760405162461bcd60e51b815260206004820152602d60248201527f455243373231413a20617070726f76656420717565727920666f72206e6f6e6560448201526c3c34b9ba32b73a103a37b5b2b760991b60648201526084015b60405180910390fd5b506000908152600660205260409020546001600160a01b031690565b60006109058261105a565b9050806001600160a01b0316836001600160a01b031614156109745760405162461bcd60e51b815260206004820152602260248201527f455243373231413a20617070726f76616c20746f2063757272656e74206f776e60448201526132b960f11b60648201526084016108d5565b336001600160a01b03821614806109905750610990813361071d565b610a025760405162461bcd60e51b815260206004820152603960248201527f455243373231413a20617070726f76652063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f76656420666f7220616c6c0000000000000060648201526084016108d5565b610a0d8383836116f3565b505050565b6000546001600160a01b03163314610a3c5760405162461bcd60e51b81526004016108d590612651565b601380549115156101000261ff0019909216919091179055565b601354819060ff1615610a955760405162461bcd60e51b81526020600482015260076024820152665061757365642160c81b60448201526064016108d5565b600081118015610aa75750600e548111155b610af35760405162461bcd60e51b815260206004820152601b60248201527f4d617820706572207472616e73616374696f6e2072656163686564000000000060448201526064016108d5565b333214610b365760405162461bcd60e51b815260206004820152601160248201527029b2b73232b9103737ba1037b934b3b4b760791b60448201526064016108d5565b601354610100900460ff1615610b78573481600a54610b559190612727565b1115610b735760405162461bcd60e51b81526004016108d590612625565b610ba5565b3481600b54610b879190612727565b1115610ba55760405162461bcd60e51b81526004016108d590612625565b600f54610bb39060016126fb565b81610bbd60015490565b610bc791906126fb565b1115610c015760405162461bcd60e51b8152602060048201526009602482015268536f6c64206f75742160b81b60448201526064016108d5565b60135462010000900460ff16610c595760405162461bcd60e51b815260206004820152601f60248201527f416c6c6f776c697374206d696e7420686173206e6f742073746172746564210060448201526064016108d5565b600c5433600090815260126020526040902054610c779084906126fb565b1115610cd15760405162461bcd60e51b815260206004820152602360248201527f4d6178696d756d20616c6c6f776c697374207175616e7469747920726561636860448201526265642160e81b60648201526084016108d5565b3360009081526012602052604081208054849290610cf09084906126fb565b90915550610d009050338361174f565b50505050565b6000546001600160a01b03163314610d305760405162461bcd60e51b81526004016108d590612651565b6013805460ff1916911515919091179055565b610a0d838383611769565b6000610d598361106c565b8210610db25760405162461bcd60e51b815260206004820152602260248201527f455243373231413a206f776e657220696e646578206f7574206f6620626f756e604482015261647360f01b60648201526084016108d5565b6000610dbd60015490565b905060008060005b83811015610e67576000818152600460209081526040918290208251808401909352546001600160a01b038116808452600160a01b90910467ffffffffffffffff169183019190915215610e1857805192505b876001600160a01b0316836001600160a01b03161415610e545786841415610e46575093506107d292505050565b83610e5081612803565b9450505b5080610e5f81612803565b915050610dc5565b5060405162461bcd60e51b815260206004820152602e60248201527f455243373231413a20756e61626c6520746f2067657420746f6b656e206f662060448201526d0deeedccae440c4f240d2dcc8caf60931b60648201526084016108d5565b6000546001600160a01b03163314610ef15760405162461bcd60e51b81526004016108d590612651565b600b55565b6000546001600160a01b03163314610f205760405162461bcd60e51b81526004016108d590612651565b600c91909155600d55565b610a0d838383604051806020016040528060008152506114de565b6000610f5160015490565b8210610fab5760405162461bcd60e51b815260206004820152602360248201527f455243373231413a20676c6f62616c20696e646578206f7574206f6620626f756044820152626e647360e81b60648201526084016108d5565b5090565b6000546001600160a01b03163314610fd95760405162461bcd60e51b81526004016108d590612651565b600f55565b6000546001600160a01b031633146110085760405162461bcd60e51b81526004016108d590612651565b610a0d60148383612166565b6000546001600160a01b0316331461103e5760405162461bcd60e51b81526004016108d590612651565b60138054911515620100000262ff000019909216919091179055565b600061106582611af1565b5192915050565b60006001600160a01b0382166110d85760405162461bcd60e51b815260206004820152602b60248201527f455243373231413a2062616c616e636520717565727920666f7220746865207a60448201526a65726f206164647265737360a81b60648201526084016108d5565b506001600160a01b03166000908152600560205260409020546001600160801b031690565b6000546001600160a01b031633146111275760405162461bcd60e51b81526004016108d590612651565b6111316000611c9b565b565b6000546001600160a01b0316331461115d5760405162461bcd60e51b81526004016108d590612651565b601155565b6000546001600160a01b0316331461118c5760405162461bcd60e51b81526004016108d590612651565b6010546040516001600160a01b03909116904780156108fc02916000818181858888f193505050501580156111c5573d6000803e3d6000fd5b50565b6060600380546107e7906127c8565b601354819060ff16156112165760405162461bcd60e51b81526020600482015260076024820152665061757365642160c81b60448201526064016108d5565b6000811180156112285750600e548111155b6112745760405162461bcd60e51b815260206004820152601b60248201527f4d617820706572207472616e73616374696f6e2072656163686564000000000060448201526064016108d5565b3332146112b75760405162461bcd60e51b815260206004820152601160248201527029b2b73232b9103737ba1037b934b3b4b760791b60448201526064016108d5565b601354610100900460ff16156112f9573481600a546112d69190612727565b11156112f45760405162461bcd60e51b81526004016108d590612625565b611326565b3481600b546113089190612727565b11156113265760405162461bcd60e51b81526004016108d590612625565b600f546113349060016126fb565b8161133e60015490565b61134891906126fb565b11156113825760405162461bcd60e51b8152602060048201526009602482015268536f6c64206f75742160b81b60448201526064016108d5565b601354610100900460ff166113d15760405162461bcd60e51b815260206004820152601560248201527453616c6520686173206e6f7420737461727465642160581b60448201526064016108d5565b6113db338361174f565b5050565b6001600160a01b0382163314156114385760405162461bcd60e51b815260206004820152601a60248201527f455243373231413a20617070726f766520746f2063616c6c657200000000000060448201526064016108d5565b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6000546001600160a01b031633146114ce5760405162461bcd60e51b81526004016108d590612651565b6111c5338263ffffffff1661174f565b6114e9848484611769565b6114f584848484611ceb565b610d005760405162461bcd60e51b81526004016108d590612686565b6000546001600160a01b0316331461153b5760405162461bcd60e51b81526004016108d590612651565b600a55565b600080546001600160a01b0316331461156b5760405162461bcd60e51b81526004016108d590612651565b50601080546001600160a01b0319166001600160a01b038316179055805b919050565b606061159b826001541190565b6115ff5760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b60648201526084016108d5565b6000611609611df9565b905060008151116116295760405180602001604052806000815250611654565b8061163384611e08565b6040516020016116449291906125a6565b6040516020818303038152906040525b9392505050565b6000546001600160a01b031633146116855760405162461bcd60e51b81526004016108d590612651565b6001600160a01b0381166116ea5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016108d5565b6111c581611c9b565b60008281526006602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b6113db828260405180602001604052806000815250611f06565b600061177482611af1565b80519091506000906001600160a01b0316336001600160a01b031614806117ab5750336117a08461086a565b6001600160a01b0316145b806117bd575081516117bd903361071d565b9050806118275760405162461bcd60e51b815260206004820152603260248201527f455243373231413a207472616e736665722063616c6c6572206973206e6f74206044820152711bdddb995c881b9bdc88185c1c1c9bdd995960721b60648201526084016108d5565b846001600160a01b031682600001516001600160a01b03161461189b5760405162461bcd60e51b815260206004820152602660248201527f455243373231413a207472616e736665722066726f6d20696e636f72726563746044820152651037bbb732b960d11b60648201526084016108d5565b6001600160a01b0384166118ff5760405162461bcd60e51b815260206004820152602560248201527f455243373231413a207472616e7366657220746f20746865207a65726f206164604482015264647265737360d81b60648201526084016108d5565b61190f60008484600001516116f3565b6001600160a01b03851660009081526005602052604081208054600192906119419084906001600160801b0316612746565b82546101009290920a6001600160801b038181021990931691831602179091556001600160a01b0386166000908152600560205260408120805460019450909261198d918591166126d9565b82546001600160801b039182166101009390930a9283029190920219909116179055506040805180820182526001600160a01b03808716825267ffffffffffffffff428116602080850191825260008981526004909152948520935184549151909216600160a01b026001600160e01b03199091169190921617179055611a158460016126fb565b6000818152600460205260409020549091506001600160a01b0316611aa757611a3f816001541190565b15611aa75760408051808201825284516001600160a01b03908116825260208087015167ffffffffffffffff9081168285019081526000878152600490935294909120925183549451909116600160a01b026001600160e01b03199094169116179190911790555b83856001600160a01b0316876001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45b505050505050565b6040805180820190915260008082526020820152611b10826001541190565b611b6f5760405162461bcd60e51b815260206004820152602a60248201527f455243373231413a206f776e657220717565727920666f72206e6f6e657869736044820152693a32b73a103a37b5b2b760b11b60648201526084016108d5565b60007f000000000000000000000000000000000000000000000000000000000000000a8310611bd057611bc27f000000000000000000000000000000000000000000000000000000000000000a8461276e565b611bcd9060016126fb565b90505b825b818110611c3a576000818152600460209081526040918290208251808401909352546001600160a01b038116808452600160a01b90910467ffffffffffffffff169183019190915215611c2757949350505050565b5080611c32816127b1565b915050611bd2565b5060405162461bcd60e51b815260206004820152602f60248201527f455243373231413a20756e61626c6520746f2064657465726d696e652074686560448201526e1037bbb732b91037b3103a37b5b2b760891b60648201526084016108d5565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b60006001600160a01b0384163b15611ded57604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290611d2f9033908990889088906004016125d5565b602060405180830381600087803b158015611d4957600080fd5b505af1925050508015611d79575060408051601f3d908101601f19168201909252611d76918101906124a3565b60015b611dd3573d808015611da7576040519150601f19603f3d011682016040523d82523d6000602084013e611dac565b606091505b508051611dcb5760405162461bcd60e51b81526004016108d590612686565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611df1565b5060015b949350505050565b6060601480546107e7906127c8565b606081611e2c5750506040805180820190915260018152600360fc1b602082015290565b8160005b8115611e565780611e4081612803565b9150611e4f9050600a83612713565b9150611e30565b60008167ffffffffffffffff811115611e7157611e71612874565b6040519080825280601f01601f191660200182016040528015611e9b576020820181803683370190505b5090505b8415611df157611eb060018361276e565b9150611ebd600a8661281e565b611ec89060306126fb565b60f81b818381518110611edd57611edd61285e565b60200101906001600160f81b031916908160001a905350611eff600a86612713565b9450611e9f565b6001546001600160a01b038416611f695760405162461bcd60e51b815260206004820152602160248201527f455243373231413a206d696e7420746f20746865207a65726f206164647265736044820152607360f81b60648201526084016108d5565b611f74816001541190565b15611fc15760405162461bcd60e51b815260206004820152601d60248201527f455243373231413a20746f6b656e20616c7265616479206d696e74656400000060448201526064016108d5565b6001600160a01b0384166000908152600560209081526040918290208251808401845290546001600160801b038082168352600160801b909104169181019190915281518083019092528051909190819061201d9087906126d9565b6001600160801b0316815260200185836020015161203b91906126d9565b6001600160801b039081169091526001600160a01b0380881660008181526005602090815260408083208751978301518716600160801b0297909616969096179094558451808601865291825267ffffffffffffffff4281168386019081528883526004909552948120915182549451909516600160a01b026001600160e01b031990941694909216939093179190911790915582905b8581101561215b5760405182906001600160a01b038916906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a461211f6000888488611ceb565b61213b5760405162461bcd60e51b81526004016108d590612686565b8161214581612803565b925050808061215390612803565b9150506120d2565b506001819055611ae9565b828054612172906127c8565b90600052602060002090601f01602090048101928261219457600085556121da565b82601f106121ad5782800160ff198235161785556121da565b828001600101855582156121da579182015b828111156121da5782358255916020019190600101906121bf565b50610fab9291505b80821115610fab57600081556001016121e2565b80356001600160a01b038116811461158957600080fd5b8035801515811461158957600080fd5b60006020828403121561222f57600080fd5b611654826121f6565b6000806040838503121561224b57600080fd5b612254836121f6565b9150612262602084016121f6565b90509250929050565b60008060006060848603121561228057600080fd5b612289846121f6565b9250612297602085016121f6565b9150604084013590509250925092565b600080600080608085870312156122bd57600080fd5b6122c6856121f6565b93506122d4602086016121f6565b925060408501359150606085013567ffffffffffffffff808211156122f857600080fd5b818701915087601f83011261230c57600080fd5b81358181111561231e5761231e612874565b604051601f8201601f19908116603f0116810190838211818310171561234657612346612874565b816040528281528a602084870101111561235f57600080fd5b82602086016020830137600060208483010152809550505050505092959194509250565b6000806040838503121561239657600080fd5b61239f836121f6565b91506122626020840161220d565b600080604083850312156123c057600080fd5b6123c9836121f6565b946020939093013593505050565b6000806000604084860312156123ec57600080fd5b833567ffffffffffffffff8082111561240457600080fd5b818601915086601f83011261241857600080fd5b81358181111561242757600080fd5b8760208260051b850101111561243c57600080fd5b6020928301989097509590910135949350505050565b60006020828403121561246457600080fd5b6116548261220d565b60006020828403121561247f57600080fd5b5035919050565b60006020828403121561249857600080fd5b81356116548161288a565b6000602082840312156124b557600080fd5b81516116548161288a565b600080602083850312156124d357600080fd5b823567ffffffffffffffff808211156124eb57600080fd5b818501915085601f8301126124ff57600080fd5b81358181111561250e57600080fd5b86602082850101111561252057600080fd5b60209290920196919550909350505050565b6000806040838503121561254557600080fd5b50508035926020909101359150565b60006020828403121561256657600080fd5b813563ffffffff8116811461165457600080fd5b60008151808452612592816020860160208601612785565b601f01601f19169290920160200192915050565b600083516125b8818460208801612785565b8351908301906125cc818360208801612785565b01949350505050565b6001600160a01b03858116825284166020820152604081018390526080606082018190526000906126089083018461257a565b9695505050505050565b602081526000611654602083018461257a565b602080825260129082015271496e73756666696369656e742066756e647360701b604082015260600190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526033908201527f455243373231413a207472616e7366657220746f206e6f6e204552433732315260408201527232b1b2b4bb32b91034b6b83632b6b2b73a32b960691b606082015260800190565b60006001600160801b038083168185168083038211156125cc576125cc612832565b6000821982111561270e5761270e612832565b500190565b60008261272257612722612848565b500490565b600081600019048311821515161561274157612741612832565b500290565b60006001600160801b038381169083168181101561276657612766612832565b039392505050565b60008282101561278057612780612832565b500390565b60005b838110156127a0578181015183820152602001612788565b83811115610d005750506000910152565b6000816127c0576127c0612832565b506000190190565b600181811c908216806127dc57607f821691505b602082108114156127fd57634e487b7160e01b600052602260045260246000fd5b50919050565b600060001982141561281757612817612832565b5060010190565b60008261282d5761282d612848565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160e01b0319811681146111c557600080fdfea26469706673582212201c6842304e90b81775046c5ae73d4b4c9384875a6466e9d566e8de96fada3f0364736f6c63430008070033

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading
[ Download: CSV Export  ]
[ Download: CSV Export  ]

A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.