ETH Price: $3,593.41 (+0.41%)

Token

Celestial Key (CKEY)
 

Overview

Max Total Supply

4,444 CKEY

Holders

480

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Filtered by Token Holder
justaburner.eth
Balance
1 CKEY
0x0cbde593acf52efbb9b1993fa9b188691a852863
Loading...
Loading
Loading...
Loading
Loading...
Loading

OVERVIEW

Freaks N' Guilds Celestial Keys are the beginning of journey into the the Freaks N' Guilds Universe. 4,444 Celestial Keys are generated randomly from over 200+ traits, ensuring that no two Celestial Keys are alike.

# Exchange Pair Price  24H Volume % Volume

Contract Source Code Verified (Exact Match)

Contract Name:
CelestialKey

Compiler Version
v0.8.11+commit.d7f03943

Optimization Enabled:
Yes with 512 runs

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

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

/// @title Celestial Key
contract CelestialKey is Ownable, Pausable, ERC721A("Celestial Key", "CKEY") {
  using Strings for uint256;
  using MerkleProof for bytes32[];

  /// @notice Max total supply.
  uint256 public constant CKEY_MAX = 4444;
  /// @notice Max transaction amount.
  uint256 public constant CKEY_PER_TX = 5;
  /// @notice Max transaction amount in early access.
  uint256 public constant CKEY_PER_TX_EARLY = 2;
  /// @notice Early claim price.
  uint256 public constant CKEY_EARLY_PRICE = 0.044 ether;
  /// @notice Public claim price.
  uint256 public constant CKEY_PRICE = 0.088 ether;

  /// @notice 0 = FREE, 1 = EARLY, 2 = PUBLIC
  uint256 public saleState;

  /// @notice Metadata baseURI.
  string public baseURI;
  /// @notice Metadata unrevealed uri.
  string public unrevealedURI;
  /// @notice Metadata baseURI extension.
  string public baseExtension;

  /// @notice OpenSea proxy registry.
  address public opensea = 0xa5409ec958C83C3f309868babACA7c86DCB077c1;
  /// @notice LooksRare marketplace transfer manager.
  address public looksrare = 0x3f65A762F15D01809cDC6B43d8849fF24949c86a;
  /// @notice Check if marketplaces pre-approve is enabled.
  bool public marketplacesApproved = true;

  /// @notice Free claim merkle root.
  bytes32 public freeClaimRoot;
  /// @notice Early access merkle root.
  bytes32 public earlyAccessRoot;
  /// @notice Amount minted by address on free mint.
  mapping(address => uint256) public freeClaimed;
  /// @notice Amount minted by address on early access.
  mapping(address => uint256) public earlyClaimed;
  ///@notice Amount mintes by address on public mint.
  mapping(address => uint256) public publicClaimed;
  /// @notice Authorized callers mapping.
  mapping(address => bool) public auth;

  /// @notice Require the sender to be the owner() or authorized.
  modifier onlyAuth() {
    require(auth[msg.sender], "Sender is not authorized");
    _;
  }

  constructor(
    string memory newUnrevealedURI,
    bytes32 freeClaimRoot_,
    bytes32 earlyAccessRoot_
  ) {
    unrevealedURI = newUnrevealedURI;
    freeClaimRoot = freeClaimRoot_;
    earlyAccessRoot = earlyAccessRoot_;
    _pause();
  }

  /// @notice Claim one free token.
  function claimFree(bytes32[] memory proof) external {
    if (msg.sender != owner()) {
      require(saleState == 0, "Invalid sale state");
      require(freeClaimed[msg.sender] == 0, "User already minted a free token");
      bytes32 leaf = keccak256(abi.encodePacked(msg.sender));
      require(proof.verify(freeClaimRoot, leaf), "Invalid proof");
    }

    freeClaimed[msg.sender]++;
    _safeMint(msg.sender, 1);
  }

  /// @notice Claim one or more tokens for whitelisted user.
  function claimEarly(uint256 amount, bytes32[] memory proof) external payable {
    if (msg.sender != owner()) {
      require(saleState == 1, "Invalid sale state");
      require(amount > 0 && amount + earlyClaimed[msg.sender] <= CKEY_PER_TX_EARLY, "Invalid claim amount");
      require(msg.value == CKEY_EARLY_PRICE * amount, "Invalid ether amount");
      bytes32 leaf = keccak256(abi.encodePacked(msg.sender));
      require(proof.verify(earlyAccessRoot, leaf), "Invalid proof");
    }

    earlyClaimed[msg.sender] += amount;
    _safeMint(msg.sender, amount);
  }

  /// @notice Claim one or more tokens.
  function claim(uint256 amount) external payable {
    require(totalSupply() + amount <= CKEY_MAX, "Max supply exceeded");
    if (msg.sender != owner()) {
      require(saleState == 2, "Invalid sale state");
      require(amount > 0 && amount + publicClaimed[msg.sender] <= CKEY_PER_TX, "Invalid claim amount");
      require(msg.value == CKEY_PRICE * amount, "Invalid ether amount");
    }

    publicClaimed[msg.sender] += amount;
    _safeMint(msg.sender, amount);
  }

  /// @notice See {IERC721-tokenURI}.
  function tokenURI(uint256 tokenId) public view override returns (string memory) {
    require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token");

    if (bytes(unrevealedURI).length > 0) return unrevealedURI;
    return string(abi.encodePacked(baseURI, tokenId.toString(), baseExtension));
  }

  /// @notice Set baseURI to `newBaseURI`, baseExtension to `newBaseExtension` and deletes unrevealedURI, triggering a reveal.
  function setBaseURI(string memory newBaseURI, string memory newBaseExtension) external onlyOwner {
    baseURI = newBaseURI;
    baseExtension = newBaseExtension;
    delete unrevealedURI;
  }

  /// @notice Set unrevealedURI to `newUnrevealedURI`.
  function setUnrevealedURI(string memory newUnrevealedURI) external onlyOwner {
    unrevealedURI = newUnrevealedURI;
  }

  /// @notice Set unrevealedURI to `newUnrevealedURI`.
  function setSaleState(uint256 newSaleState) external onlyOwner {
    saleState = newSaleState;
  }

  /// @notice Set freeClaimRoot to `newMerkleRoot`.
  function setFreeClaimRoot(bytes32 newMerkleRoot) external onlyOwner {
    freeClaimRoot = newMerkleRoot;
  }

  /// @notice Set earlyAccessRoot to `newMerkleRoot`.
  function setEarlyAccessRoot(bytes32 newMerkleRoot) external onlyOwner {
    earlyAccessRoot = newMerkleRoot;
  }

  /// @notice Set opensea to `newOpensea`.
  function setOpensea(address newOpensea) external onlyOwner {
    opensea = newOpensea;
  }

  /// @notice Set looksrare to `newLooksrare`.
  function setLooksrare(address newLooksrare) external onlyOwner {
    looksrare = newLooksrare;
  }

  /// @notice Set `addresses` authorization to `authorized`.
  function setAuth(address[] calldata addresses, bool authorized) external onlyOwner {
    for (uint256 i = 0; i < addresses.length; i++) auth[addresses[i]] = authorized;
  }

  /// @notice Toggle marketplaces pre-approve feature.
  function toggleMarketplacesApproved() external onlyOwner {
    marketplacesApproved = !marketplacesApproved;
  }

  /// @notice Toggle paused state.
  function togglePaused() external onlyOwner {
    if (paused()) _unpause();
    else _pause();
  }

  /// @notice Withdraw `amount` of ether to msg.sender.
  function withdraw(uint256 amount) external onlyOwner {
    payable(msg.sender).transfer(amount);
  }

  /// @notice Withdraw `amount` of `token` to the sender.
  function withdrawERC20(IERC20 token, uint256 amount) external onlyOwner {
    token.transfer(msg.sender, amount);
  }

  /// @notice Withdraw `tokenId` of `token` to the sender.
  function withdrawERC721(IERC721 token, uint256 tokenId) external onlyOwner {
    token.safeTransferFrom(address(this), msg.sender, tokenId);
  }

  /// @notice Withdraw `tokenId` with amount of `value` from `token` to the sender.
  function withdrawERC1155(
    IERC1155 token,
    uint256 tokenId,
    uint256 value
  ) external onlyOwner {
    token.safeTransferFrom(address(this), msg.sender, tokenId, value, "");
  }

  /// @notice See {ERC721-isApprovedForAll}.
  function isApprovedForAll(address owner, address operator) public view override returns (bool) {
    if (!marketplacesApproved) return auth[operator] || super.isApprovedForAll(owner, operator);
    return
      auth[operator] ||
      operator == address(ProxyRegistry(opensea).proxies(owner)) ||
      operator == looksrare ||
      super.isApprovedForAll(owner, operator);
  }

  /// @notice See {ERC721A-_beforeTokenTransfers}
  function _beforeTokenTransfers(
    address from,
    address to,
    uint256 startTokenId,
    uint256 quantity
  ) internal override {
    require(!paused(), "Pausable: paused");
    super._beforeTokenTransfers(from, to, startTokenId, quantity);
  }
}

contract OwnableDelegateProxy {}

contract ProxyRegistry {
  mapping(address => OwnableDelegateProxy) public proxies;
}

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

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..).
 *
 * Does not support burning tokens to address(0).
 *
 * Assumes that an owner cannot have more than the 2**128 (max value of uint128) of supply
 */
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 internal currentIndex = 0;

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

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

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

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

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

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

    /**
     * @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(totalSupply). 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');

        for (uint256 curr = tokenId; ; 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:
     *
     * - `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 > 0, 'ERC721A: quantity must be greater 0');

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

        // Underflow of the sender's balance is impossible because we check for
        // ownership above and the recipient's balance can't realistically overflow.
        unchecked {
            _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);
    }

    /**
     * @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 16 : 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 4 of 16 : 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 5 of 16 : Pausable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (security/Pausable.sol)

pragma solidity ^0.8.0;

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

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

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

    bool private _paused;

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

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

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

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

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

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

File 6 of 16 : IERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC20/IERC20.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @dev Returns the amount of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

    /**
     * @dev Returns the amount of tokens owned by `account`.
     */
    function balanceOf(address account) external view returns (uint256);

    /**
     * @dev Moves `amount` tokens from the caller's account to `recipient`.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transfer(address recipient, uint256 amount) external returns (bool);

    /**
     * @dev Returns the remaining number of tokens that `spender` will be
     * allowed to spend on behalf of `owner` through {transferFrom}. This is
     * zero by default.
     *
     * This value changes when {approve} or {transferFrom} are called.
     */
    function allowance(address owner, address spender) external view returns (uint256);

    /**
     * @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * IMPORTANT: Beware that changing an allowance with this method brings the risk
     * that someone may use both the old and the new allowance by unfortunate
     * transaction ordering. One possible solution to mitigate this race
     * condition is to first reduce the spender's allowance to 0 and set the
     * desired value afterwards:
     * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
     *
     * Emits an {Approval} event.
     */
    function approve(address spender, uint256 amount) external returns (bool);

    /**
     * @dev Moves `amount` tokens from `sender` to `recipient` using the
     * allowance mechanism. `amount` is then deducted from the caller's
     * allowance.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(
        address sender,
        address recipient,
        uint256 amount
    ) external returns (bool);

    /**
     * @dev Emitted when `value` tokens are moved from one account (`from`) to
     * another (`to`).
     *
     * Note that `value` may be zero.
     */
    event Transfer(address indexed from, address indexed to, uint256 value);

    /**
     * @dev Emitted when the allowance of a `spender` for an `owner` is set by
     * a call to {approve}. `value` is the new allowance.
     */
    event Approval(address indexed owner, address indexed spender, uint256 value);
}

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

File 8 of 16 : IERC1155.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC1155/IERC1155.sol)

pragma solidity ^0.8.0;

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

/**
 * @dev Required interface of an ERC1155 compliant contract, as defined in the
 * https://eips.ethereum.org/EIPS/eip-1155[EIP].
 *
 * _Available since v3.1._
 */
interface IERC1155 is IERC165 {
    /**
     * @dev Emitted when `value` tokens of token type `id` are transferred from `from` to `to` by `operator`.
     */
    event TransferSingle(address indexed operator, address indexed from, address indexed to, uint256 id, uint256 value);

    /**
     * @dev Equivalent to multiple {TransferSingle} events, where `operator`, `from` and `to` are the same for all
     * transfers.
     */
    event TransferBatch(
        address indexed operator,
        address indexed from,
        address indexed to,
        uint256[] ids,
        uint256[] values
    );

    /**
     * @dev Emitted when `account` grants or revokes permission to `operator` to transfer their tokens, according to
     * `approved`.
     */
    event ApprovalForAll(address indexed account, address indexed operator, bool approved);

    /**
     * @dev Emitted when the URI for token type `id` changes to `value`, if it is a non-programmatic URI.
     *
     * If an {URI} event was emitted for `id`, the standard
     * https://eips.ethereum.org/EIPS/eip-1155#metadata-extensions[guarantees] that `value` will equal the value
     * returned by {IERC1155MetadataURI-uri}.
     */
    event URI(string value, uint256 indexed id);

    /**
     * @dev Returns the amount of tokens of token type `id` owned by `account`.
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     */
    function balanceOf(address account, uint256 id) external view returns (uint256);

    /**
     * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {balanceOf}.
     *
     * Requirements:
     *
     * - `accounts` and `ids` must have the same length.
     */
    function balanceOfBatch(address[] calldata accounts, uint256[] calldata ids)
        external
        view
        returns (uint256[] memory);

    /**
     * @dev Grants or revokes permission to `operator` to transfer the caller's tokens, according to `approved`,
     *
     * Emits an {ApprovalForAll} event.
     *
     * Requirements:
     *
     * - `operator` cannot be the caller.
     */
    function setApprovalForAll(address operator, bool approved) external;

    /**
     * @dev Returns true if `operator` is approved to transfer ``account``'s tokens.
     *
     * See {setApprovalForAll}.
     */
    function isApprovedForAll(address account, address operator) external view returns (bool);

    /**
     * @dev Transfers `amount` tokens of token type `id` from `from` to `to`.
     *
     * Emits a {TransferSingle} event.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - If the caller is not `from`, it must be have been approved to spend ``from``'s tokens via {setApprovalForAll}.
     * - `from` must have a balance of tokens of type `id` of at least `amount`.
     * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the
     * acceptance magic value.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 id,
        uint256 amount,
        bytes calldata data
    ) external;

    /**
     * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {safeTransferFrom}.
     *
     * Emits a {TransferBatch} event.
     *
     * Requirements:
     *
     * - `ids` and `amounts` must have the same length.
     * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the
     * acceptance magic value.
     */
    function safeBatchTransferFrom(
        address from,
        address to,
        uint256[] calldata ids,
        uint256[] calldata amounts,
        bytes calldata data
    ) external;
}

File 9 of 16 : MerkleProof.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/cryptography/MerkleProof.sol)

pragma solidity ^0.8.0;

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

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

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

pragma solidity ^0.8.0;

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

File 11 of 16 : 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 16 : IERC721Enumerable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (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 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 16 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Address.sol)

pragma solidity ^0.8.0;

/**
 * @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
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize, which returns 0 for contracts in
        // construction, since the code is only stored at the end of the
        // constructor execution.

        uint256 size;
        assembly {
            size := extcodesize(account)
        }
        return size > 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 14 of 16 : 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 15 of 16 : 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 16 of 16 : 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": 512
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  },
  "libraries": {}
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"string","name":"newUnrevealedURI","type":"string"},{"internalType":"bytes32","name":"freeClaimRoot_","type":"bytes32"},{"internalType":"bytes32","name":"earlyAccessRoot_","type":"bytes32"}],"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":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[],"name":"CKEY_EARLY_PRICE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"CKEY_MAX","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"CKEY_PER_TX","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"CKEY_PER_TX_EARLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"CKEY_PRICE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":"","type":"address"}],"name":"auth","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseExtension","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"claim","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes32[]","name":"proof","type":"bytes32[]"}],"name":"claimEarly","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"bytes32[]","name":"proof","type":"bytes32[]"}],"name":"claimFree","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"earlyAccessRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"earlyClaimed","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"freeClaimRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"freeClaimed","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","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":"looksrare","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"marketplacesApproved","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"opensea","outputs":[{"internalType":"address","name":"","type":"address"}],"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":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"publicClaimed","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":[],"name":"saleState","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"addresses","type":"address[]"},{"internalType":"bool","name":"authorized","type":"bool"}],"name":"setAuth","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"newBaseURI","type":"string"},{"internalType":"string","name":"newBaseExtension","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"newMerkleRoot","type":"bytes32"}],"name":"setEarlyAccessRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"newMerkleRoot","type":"bytes32"}],"name":"setFreeClaimRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newLooksrare","type":"address"}],"name":"setLooksrare","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOpensea","type":"address"}],"name":"setOpensea","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newSaleState","type":"uint256"}],"name":"setSaleState","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"newUnrevealedURI","type":"string"}],"name":"setUnrevealedURI","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":[],"name":"toggleMarketplacesApproved","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"togglePaused","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":"unrevealedURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IERC1155","name":"token","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"withdrawERC1155","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"token","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"withdrawERC20","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IERC721","name":"token","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"withdrawERC721","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60806040526000600155600c80546001600160a01b03191673a5409ec958c83c3f309868babaca7c86dcb077c1179055600d805474013f65a762f15d01809cdc6b43d8849ff24949c86a6001600160a81b03199091161790553480156200006557600080fd5b5060405162003b0738038062003b07833981016040819052620000889162000315565b6040518060400160405280600d81526020016c43656c65737469616c204b657960981b81525060405180604001604052806004815260200163434b455960e01b815250620000e5620000df6200015360201b60201c565b62000157565b6000805460ff60a01b1916905581516200010790600290602085019062000259565b5080516200011d90600390602084019062000259565b50508351620001359150600a90602086019062000259565b50600e829055600f8190556200014a620001a7565b50505062000442565b3390565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b620001bb600054600160a01b900460ff1690565b15620002005760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b604482015260640160405180910390fd5b6000805460ff60a01b1916600160a01b1790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586200023c3390565b6040516001600160a01b03909116815260200160405180910390a1565b828054620002679062000405565b90600052602060002090601f0160209004810192826200028b5760008555620002d6565b82601f10620002a657805160ff1916838001178555620002d6565b82800160010185558215620002d6579182015b82811115620002d6578251825591602001919060010190620002b9565b50620002e4929150620002e8565b5090565b5b80821115620002e45760008155600101620002e9565b634e487b7160e01b600052604160045260246000fd5b6000806000606084860312156200032b57600080fd5b83516001600160401b03808211156200034357600080fd5b818601915086601f8301126200035857600080fd5b8151818111156200036d576200036d620002ff565b604051601f8201601f19908116603f01168101908382118183101715620003985762000398620002ff565b81604052828152602093508984848701011115620003b557600080fd5b600091505b82821015620003d95784820184015181830185015290830190620003ba565b82821115620003eb5760008484830101525b928801516040909801519299979850919695505050505050565b600181811c908216806200041a57607f821691505b602082108114156200043c57634e487b7160e01b600052602260045260246000fd5b50919050565b6136b580620004526000396000f3fe6080604052600436106103605760003560e01c80636790a9de116101c6578063b5b1cd7c116100f7578063cd5d211811610095578063f03ade131161006f578063f03ade1314610981578063f2fde38b1461099c578063f3e414f8146109bc578063fe2c7fee146109dc57600080fd5b8063cd5d21181461091b578063cfe6c8841461094b578063e985e9c51461096157600080fd5b8063c294d4f2116100d1578063c294d4f2146108b0578063c6682862146108c6578063c87b56dd146108db578063c8904767146108fb57600080fd5b8063b5b1cd7c14610843578063b776c8a614610870578063b88d4fde1461089057600080fd5b806395d89b4111610164578063a22cb4651161013e578063a22cb465146107b6578063a3857c9d146107d6578063a8e90b5714610803578063ae2697431461082357600080fd5b806395d89b41146107615780639c5d46ae14610776578063a1db97821461079657600080fd5b806370a08231116101a057806370a08231146106f2578063715018a6146107125780638da5cb5b146107275780638e26085b1461074557600080fd5b80636790a9de146106a85780636c0360eb146106c85780637035bf18146106dd57600080fd5b80632f745c59116102a05780634a1b64b51161023e5780635c975abb116102185780635c975abb14610626578063603f4d521461064557806361c0b6a01461065b5780636352211e1461068857600080fd5b80634a1b64b5146105d15780634f6ccce7146105e6578063511ed3821461060657600080fd5b8063379607f51161027a578063379607f51461055e57806339ead7201461057157806342842e0e146105915780634576da47146105b157600080fd5b80632f745c591461051457806333c12e171461053457806336566f061461054957600080fd5b806318160ddd1161030d57806321252a06116102e757806321252a06146104ac57806323b872dd146104bf578063242c2580146104df5780632e1a7d4d146104f457600080fd5b806318160ddd146104575780631e8858fb146104765780631f00b58a1461049657600080fd5b8063081812fc1161033e578063081812fc146103dd578063084c408814610415578063095ea7b31461043757600080fd5b806301ffc9a714610365578063026ae1021461039a57806306fdde03146103bb575b600080fd5b34801561037157600080fd5b50610385610380366004612e80565b6109fc565b60405190151581526020015b60405180910390f35b3480156103a657600080fd5b50600d5461038590600160a01b900460ff1681565b3480156103c757600080fd5b506103d0610a69565b6040516103919190612ef5565b3480156103e957600080fd5b506103fd6103f8366004612f08565b610afb565b6040516001600160a01b039091168152602001610391565b34801561042157600080fd5b50610435610430366004612f08565b610b8b565b005b34801561044357600080fd5b50610435610452366004612f36565b610bd8565b34801561046357600080fd5b506001545b604051908152602001610391565b34801561048257600080fd5b50610435610491366004612f62565b610cf0565b3480156104a257600080fd5b50610468600f5481565b6104356104ba366004613046565b610d5a565b3480156104cb57600080fd5b506104356104da36600461308d565b610f38565b3480156104eb57600080fd5b50610468600581565b34801561050057600080fd5b5061043561050f366004612f08565b610f43565b34801561052057600080fd5b5061046861052f366004612f36565b610fb8565b34801561054057600080fd5b50610435611140565b34801561055557600080fd5b506104356111a9565b61043561056c366004612f08565b611215565b34801561057d57600080fd5b5061043561058c3660046130ce565b6113ca565b34801561059d57600080fd5b506104356105ac36600461308d565b611492565b3480156105bd57600080fd5b506104356105cc366004613111565b6114ad565b3480156105dd57600080fd5b50610468600281565b3480156105f257600080fd5b50610468610601366004612f08565b61156c565b34801561061257600080fd5b50600c546103fd906001600160a01b031681565b34801561063257600080fd5b50600054600160a01b900460ff16610385565b34801561065157600080fd5b5061046860085481565b34801561066757600080fd5b50610468610676366004612f62565b60106020526000908152604090205481565b34801561069457600080fd5b506103fd6106a3366004612f08565b6115d5565b3480156106b457600080fd5b506104356106c336600461320f565b6115e7565b3480156106d457600080fd5b506103d0611663565b3480156106e957600080fd5b506103d06116f1565b3480156106fe57600080fd5b5061046861070d366004612f62565b6116fe565b34801561071e57600080fd5b5061043561178f565b34801561073357600080fd5b506000546001600160a01b03166103fd565b34801561075157600080fd5b50610468670138a388a43c000081565b34801561076d57600080fd5b506103d06117e1565b34801561078257600080fd5b50610435610791366004612f08565b6117f0565b3480156107a257600080fd5b506104356107b1366004612f36565b61183d565b3480156107c257600080fd5b506104356107d1366004613269565b6118f6565b3480156107e257600080fd5b506104686107f1366004612f62565b60116020526000908152604090205481565b34801561080f57600080fd5b50600d546103fd906001600160a01b031681565b34801561082f57600080fd5b5061043561083e366004612f08565b6119bb565b34801561084f57600080fd5b5061046861085e366004612f62565b60126020526000908152604090205481565b34801561087c57600080fd5b5061043561088b366004612f62565b611a08565b34801561089c57600080fd5b506104356108ab3660046132a2565b611a72565b3480156108bc57600080fd5b5061046861115c81565b3480156108d257600080fd5b506103d0611af1565b3480156108e757600080fd5b506103d06108f6366004612f08565b611afe565b34801561090757600080fd5b50610435610916366004613322565b611c5b565b34801561092757600080fd5b50610385610936366004612f62565b60136020526000908152604090205460ff1681565b34801561095757600080fd5b50610468600e5481565b34801561096d57600080fd5b5061038561097c366004613357565b611dc8565b34801561098d57600080fd5b50610468669c51c4521e000081565b3480156109a857600080fd5b506104356109b7366004612f62565b611f23565b3480156109c857600080fd5b506104356109d7366004612f36565b611fd9565b3480156109e857600080fd5b506104356109f7366004613385565b61208b565b60006001600160e01b031982166380ac58cd60e01b1480610a2d57506001600160e01b03198216635b5e139f60e01b145b80610a4857506001600160e01b0319821663780e9d6360e01b145b80610a6357506301ffc9a760e01b6001600160e01b03198316145b92915050565b606060028054610a78906133ba565b80601f0160208091040260200160405190810160405280929190818152602001828054610aa4906133ba565b8015610af15780601f10610ac657610100808354040283529160200191610af1565b820191906000526020600020905b815481529060010190602001808311610ad457829003601f168201915b5050505050905090565b6000610b08826001541190565b610b6f5760405162461bcd60e51b815260206004820152602d60248201527f455243373231413a20617070726f76656420717565727920666f72206e6f6e6560448201526c3c34b9ba32b73a103a37b5b2b760991b60648201526084015b60405180910390fd5b506000908152600660205260409020546001600160a01b031690565b6000546001600160a01b03163314610bd35760405162461bcd60e51b815260206004820181905260248201526000805160206136608339815191526044820152606401610b66565b600855565b6000610be3826115d5565b9050806001600160a01b0316836001600160a01b03161415610c525760405162461bcd60e51b815260206004820152602260248201527f455243373231413a20617070726f76616c20746f2063757272656e74206f776e60448201526132b960f11b6064820152608401610b66565b336001600160a01b0382161480610c6e5750610c6e8133611dc8565b610ce05760405162461bcd60e51b815260206004820152603960248201527f455243373231413a20617070726f76652063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f76656420666f7220616c6c000000000000006064820152608401610b66565b610ceb8383836120e6565b505050565b6000546001600160a01b03163314610d385760405162461bcd60e51b815260206004820181905260248201526000805160206136608339815191526044820152606401610b66565b600d80546001600160a01b0319166001600160a01b0392909216919091179055565b6000546001600160a01b03163314610f0557600854600114610db35760405162461bcd60e51b8152602060048201526012602482015271496e76616c69642073616c6520737461746560701b6044820152606401610b66565b600082118015610dde575033600090815260116020526040902054600290610ddb908461340b565b11155b610e215760405162461bcd60e51b8152602060048201526014602482015273125b9d985b1a590818db185a5b48185b5bdd5b9d60621b6044820152606401610b66565b610e3282669c51c4521e0000613423565b3414610e775760405162461bcd60e51b8152602060048201526014602482015273125b9d985b1a5908195d1a195c88185b5bdd5b9d60621b6044820152606401610b66565b6040516bffffffffffffffffffffffff193360601b166020820152600090603401604051602081830303815290604052805190602001209050610ec7600f5482846121429092919063ffffffff16565b610f035760405162461bcd60e51b815260206004820152600d60248201526c24b73b30b634b210383937b7b360991b6044820152606401610b66565b505b3360009081526011602052604081208054849290610f2490849061340b565b90915550610f3490503383612158565b5050565b610ceb838383612172565b6000546001600160a01b03163314610f8b5760405162461bcd60e51b815260206004820181905260248201526000805160206136608339815191526044820152606401610b66565b604051339082156108fc029083906000818181858888f19350505050158015610f34573d6000803e3d6000fd5b6000610fc3836116fe565b821061101c5760405162461bcd60e51b815260206004820152602260248201527f455243373231413a206f776e657220696e646578206f7574206f6620626f756e604482015261647360f01b6064820152608401610b66565b600061102760015490565b905060008060005b838110156110d1576000818152600460209081526040918290208251808401909352546001600160a01b038116808452600160a01b90910467ffffffffffffffff16918301919091521561108257805192505b876001600160a01b0316836001600160a01b031614156110be57868414156110b057509350610a6392505050565b836110ba81613442565b9450505b50806110c981613442565b91505061102f565b5060405162461bcd60e51b815260206004820152602e60248201527f455243373231413a20756e61626c6520746f2067657420746f6b656e206f662060448201527f6f776e657220627920696e6465780000000000000000000000000000000000006064820152608401610b66565b6000546001600160a01b031633146111885760405162461bcd60e51b815260206004820181905260248201526000805160206136608339815191526044820152606401610b66565b600d805460ff60a01b198116600160a01b9182900460ff1615909102179055565b6000546001600160a01b031633146111f15760405162461bcd60e51b815260206004820181905260248201526000805160206136608339815191526044820152606401610b66565b600054600160a01b900460ff161561120d5761120b6124cd565b565b61120b612573565b61115c8161122260015490565b61122c919061340b565b111561127a5760405162461bcd60e51b815260206004820152601360248201527f4d617820737570706c79206578636565646564000000000000000000000000006044820152606401610b66565b6000546001600160a01b03163314611398576008546002146112d35760405162461bcd60e51b8152602060048201526012602482015271496e76616c69642073616c6520737461746560701b6044820152606401610b66565b6000811180156112fe5750336000908152601260205260409020546005906112fb908361340b565b11155b6113415760405162461bcd60e51b8152602060048201526014602482015273125b9d985b1a590818db185a5b48185b5bdd5b9d60621b6044820152606401610b66565b61135381670138a388a43c0000613423565b34146113985760405162461bcd60e51b8152602060048201526014602482015273125b9d985b1a5908195d1a195c88185b5bdd5b9d60621b6044820152606401610b66565b33600090815260126020526040812080548392906113b790849061340b565b909155506113c790503382612158565b50565b6000546001600160a01b031633146114125760405162461bcd60e51b815260206004820181905260248201526000805160206136608339815191526044820152606401610b66565b604051637921219560e11b8152306004820152336024820152604481018390526064810182905260a06084820152600060a48201526001600160a01b0384169063f242432a9060c401600060405180830381600087803b15801561147557600080fd5b505af1158015611489573d6000803e3d6000fd5b50505050505050565b610ceb83838360405180602001604052806000815250611a72565b6000546001600160a01b031633146114f55760405162461bcd60e51b815260206004820181905260248201526000805160206136608339815191526044820152606401610b66565b60005b828110156115665781601360008686858181106115175761151761345d565b905060200201602081019061152c9190612f62565b6001600160a01b031681526020810191909152604001600020805460ff19169115159190911790558061155e81613442565b9150506114f8565b50505050565b600061157760015490565b82106115d15760405162461bcd60e51b815260206004820152602360248201527f455243373231413a20676c6f62616c20696e646578206f7574206f6620626f756044820152626e647360e81b6064820152608401610b66565b5090565b60006115e0826125fb565b5192915050565b6000546001600160a01b0316331461162f5760405162461bcd60e51b815260206004820181905260248201526000805160206136608339815191526044820152606401610b66565b8151611642906009906020850190612d9f565b50805161165690600b906020840190612d9f565b50610f34600a6000612e1f565b60098054611670906133ba565b80601f016020809104026020016040519081016040528092919081815260200182805461169c906133ba565b80156116e95780601f106116be576101008083540402835291602001916116e9565b820191906000526020600020905b8154815290600101906020018083116116cc57829003601f168201915b505050505081565b600a8054611670906133ba565b60006001600160a01b03821661176a5760405162461bcd60e51b815260206004820152602b60248201527f455243373231413a2062616c616e636520717565727920666f7220746865207a60448201526a65726f206164647265737360a81b6064820152608401610b66565b506001600160a01b03166000908152600560205260409020546001600160801b031690565b6000546001600160a01b031633146117d75760405162461bcd60e51b815260206004820181905260248201526000805160206136608339815191526044820152606401610b66565b61120b60006126db565b606060038054610a78906133ba565b6000546001600160a01b031633146118385760405162461bcd60e51b815260206004820181905260248201526000805160206136608339815191526044820152606401610b66565b600f55565b6000546001600160a01b031633146118855760405162461bcd60e51b815260206004820181905260248201526000805160206136608339815191526044820152606401610b66565b60405163a9059cbb60e01b8152336004820152602481018290526001600160a01b0383169063a9059cbb906044016020604051808303816000875af11580156118d2573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ceb9190613473565b6001600160a01b03821633141561194f5760405162461bcd60e51b815260206004820152601a60248201527f455243373231413a20617070726f766520746f2063616c6c65720000000000006044820152606401610b66565b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6000546001600160a01b03163314611a035760405162461bcd60e51b815260206004820181905260248201526000805160206136608339815191526044820152606401610b66565b600e55565b6000546001600160a01b03163314611a505760405162461bcd60e51b815260206004820181905260248201526000805160206136608339815191526044820152606401610b66565b600c80546001600160a01b0319166001600160a01b0392909216919091179055565b611a7d848484612172565b611a898484848461272b565b6115665760405162461bcd60e51b815260206004820152603360248201527f455243373231413a207472616e7366657220746f206e6f6e204552433732315260448201527232b1b2b4bb32b91034b6b83632b6b2b73a32b960691b6064820152608401610b66565b600b8054611670906133ba565b6060611b0b826001541190565b611b7d5760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201527f6e6578697374656e7420746f6b656e00000000000000000000000000000000006064820152608401610b66565b6000600a8054611b8c906133ba565b90501115611c2657600a8054611ba1906133ba565b80601f0160208091040260200160405190810160405280929190818152602001828054611bcd906133ba565b8015611c1a5780601f10611bef57610100808354040283529160200191611c1a565b820191906000526020600020905b815481529060010190602001808311611bfd57829003601f168201915b50505050509050919050565b6009611c3183612876565b600b604051602001611c459392919061352a565b6040516020818303038152906040529050919050565b6000546001600160a01b03163314611d9d5760085415611cb25760405162461bcd60e51b8152602060048201526012602482015271496e76616c69642073616c6520737461746560701b6044820152606401610b66565b3360009081526010602052604090205415611d0f5760405162461bcd60e51b815260206004820181905260248201527f5573657220616c7265616479206d696e7465642061206672656520746f6b656e6044820152606401610b66565b6040516bffffffffffffffffffffffff193360601b166020820152600090603401604051602081830303815290604052805190602001209050611d5f600e5482846121429092919063ffffffff16565b611d9b5760405162461bcd60e51b815260206004820152600d60248201526c24b73b30b634b210383937b7b360991b6044820152606401610b66565b505b336000908152601060205260408120805491611db883613442565b91905055506113c7336001612158565b600d54600090600160a01b900460ff16611e2f576001600160a01b03821660009081526013602052604090205460ff1680611e2857506001600160a01b0380841660009081526007602090815260408083209386168352929052205460ff165b9050610a63565b6001600160a01b03821660009081526013602052604090205460ff1680611ed45750600c5460405163c455279160e01b81526001600160a01b0385811660048301529091169063c455279190602401602060405180830381865afa158015611e9b573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611ebf9190613552565b6001600160a01b0316826001600160a01b0316145b80611eec5750600d546001600160a01b038381169116145b80611f1c57506001600160a01b0380841660009081526007602090815260408083209386168352929052205460ff165b9392505050565b6000546001600160a01b03163314611f6b5760405162461bcd60e51b815260206004820181905260248201526000805160206136608339815191526044820152606401610b66565b6001600160a01b038116611fd05760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610b66565b6113c7816126db565b6000546001600160a01b031633146120215760405162461bcd60e51b815260206004820181905260248201526000805160206136608339815191526044820152606401610b66565b604051632142170760e11b8152306004820152336024820152604481018290526001600160a01b038316906342842e0e90606401600060405180830381600087803b15801561206f57600080fd5b505af1158015612083573d6000803e3d6000fd5b505050505050565b6000546001600160a01b031633146120d35760405162461bcd60e51b815260206004820181905260248201526000805160206136608339815191526044820152606401610b66565b8051610f3490600a906020840190612d9f565b60008281526006602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b60008261214f858461298c565b14949350505050565b610f34828260405180602001604052806000815250612a38565b600061217d826125fb565b80519091506000906001600160a01b0316336001600160a01b031614806121b45750336121a984610afb565b6001600160a01b0316145b806121c6575081516121c69033611dc8565b90508061223b5760405162461bcd60e51b815260206004820152603260248201527f455243373231413a207472616e736665722063616c6c6572206973206e6f742060448201527f6f776e6572206e6f7220617070726f76656400000000000000000000000000006064820152608401610b66565b846001600160a01b031682600001516001600160a01b0316146122af5760405162461bcd60e51b815260206004820152602660248201527f455243373231413a207472616e736665722066726f6d20696e636f72726563746044820152651037bbb732b960d11b6064820152608401610b66565b6001600160a01b0384166123135760405162461bcd60e51b815260206004820152602560248201527f455243373231413a207472616e7366657220746f20746865207a65726f206164604482015264647265737360d81b6064820152608401610b66565b6123208585856001612d4d565b61233060008484600001516120e6565b6001600160a01b03858116600090815260056020908152604080832080546fffffffffffffffffffffffffffffffff198082166001600160801b03928316600019018316179092558986168086528386208054938416938316600190810190931693909317909255825180840184529182524267ffffffffffffffff9081168386019081528a8752600490955292852091518254945196166001600160e01b031990941693909317600160a01b959092169490940217909255906123f590859061340b565b6000818152600460205260409020549091506001600160a01b03166124875761241f816001541190565b156124875760408051808201825284516001600160a01b03908116825260208087015167ffffffffffffffff9081168285019081526000878152600490935294909120925183549451909116600160a01b026001600160e01b03199094169116179190911790555b83856001600160a01b0316876001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4612083565b600054600160a01b900460ff166125265760405162461bcd60e51b815260206004820152601460248201527f5061757361626c653a206e6f74207061757365640000000000000000000000006044820152606401610b66565b6000805460ff60a01b191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b600054600160a01b900460ff16156125c05760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b6044820152606401610b66565b6000805460ff60a01b1916600160a01b1790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586125563390565b604080518082019091526000808252602082015261261a826001541190565b6126795760405162461bcd60e51b815260206004820152602a60248201527f455243373231413a206f776e657220717565727920666f72206e6f6e657869736044820152693a32b73a103a37b5b2b760b11b6064820152608401610b66565b815b6000818152600460209081526040918290208251808401909352546001600160a01b038116808452600160a01b90910467ffffffffffffffff1691830191909152156126c8579392505050565b50806126d38161356f565b91505061267b565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b60006001600160a01b0384163b1561286a57604051630a85bd0160e11b81526001600160a01b0385169063150b7a029061276f903390899088908890600401613586565b6020604051808303816000875af19250505080156127aa575060408051601f3d908101601f191682019092526127a7918101906135c2565b60015b612850573d8080156127d8576040519150601f19603f3d011682016040523d82523d6000602084013e6127dd565b606091505b5080516128485760405162461bcd60e51b815260206004820152603360248201527f455243373231413a207472616e7366657220746f206e6f6e204552433732315260448201527232b1b2b4bb32b91034b6b83632b6b2b73a32b960691b6064820152608401610b66565b805181602001fd5b6001600160e01b031916630a85bd0160e11b14905061286e565b5060015b949350505050565b60608161289a5750506040805180820190915260018152600360fc1b602082015290565b8160005b81156128c457806128ae81613442565b91506128bd9050600a836135f5565b915061289e565b60008167ffffffffffffffff8111156128df576128df612f7f565b6040519080825280601f01601f191660200182016040528015612909576020820181803683370190505b5090505b841561286e5761291e600183613609565b915061292b600a86613620565b61293690603061340b565b60f81b81838151811061294b5761294b61345d565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350612985600a866135f5565b945061290d565b600081815b8451811015612a305760008582815181106129ae576129ae61345d565b602002602001015190508083116129f0576040805160208101859052908101829052606001604051602081830303815290604052805190602001209250612a1d565b60408051602081018390529081018490526060016040516020818303038152906040528051906020012092505b5080612a2881613442565b915050612991565b509392505050565b6001546001600160a01b038416612a9b5760405162461bcd60e51b815260206004820152602160248201527f455243373231413a206d696e7420746f20746865207a65726f206164647265736044820152607360f81b6064820152608401610b66565b612aa6816001541190565b15612af35760405162461bcd60e51b815260206004820152601d60248201527f455243373231413a20746f6b656e20616c7265616479206d696e7465640000006044820152606401610b66565b60008311612b4f5760405162461bcd60e51b815260206004820152602360248201527f455243373231413a207175616e74697479206d7573742062652067726561746560448201526207220360ec1b6064820152608401610b66565b612b5c6000858386612d4d565b6001600160a01b0384166000908152600560209081526040918290208251808401845290546001600160801b038082168352600160801b9091041691810191909152815180830190925280519091908190612bb8908790613634565b6001600160801b03168152602001858360200151612bd69190613634565b6001600160801b039081169091526001600160a01b0380881660008181526005602090815260408083208751978301518716600160801b0297909616969096179094558451808601865291825267ffffffffffffffff4281168386019081528883526004909552948120915182549451909516600160a01b026001600160e01b031990941694909216939093179190911790915582905b85811015612d425760405182906001600160a01b038916906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a4612cba600088848861272b565b612d225760405162461bcd60e51b815260206004820152603360248201527f455243373231413a207472616e7366657220746f206e6f6e204552433732315260448201527232b1b2b4bb32b91034b6b83632b6b2b73a32b960691b6064820152608401610b66565b81612d2c81613442565b9250508080612d3a90613442565b915050612c6d565b506001819055612083565b600054600160a01b900460ff1615612d9a5760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b6044820152606401610b66565b611566565b828054612dab906133ba565b90600052602060002090601f016020900481019282612dcd5760008555612e13565b82601f10612de657805160ff1916838001178555612e13565b82800160010185558215612e13579182015b82811115612e13578251825591602001919060010190612df8565b506115d1929150612e55565b508054612e2b906133ba565b6000825580601f10612e3b575050565b601f0160209004906000526020600020908101906113c791905b5b808211156115d15760008155600101612e56565b6001600160e01b0319811681146113c757600080fd5b600060208284031215612e9257600080fd5b8135611f1c81612e6a565b60005b83811015612eb8578181015183820152602001612ea0565b838111156115665750506000910152565b60008151808452612ee1816020860160208601612e9d565b601f01601f19169290920160200192915050565b602081526000611f1c6020830184612ec9565b600060208284031215612f1a57600080fd5b5035919050565b6001600160a01b03811681146113c757600080fd5b60008060408385031215612f4957600080fd5b8235612f5481612f21565b946020939093013593505050565b600060208284031215612f7457600080fd5b8135611f1c81612f21565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff81118282101715612fbe57612fbe612f7f565b604052919050565b600082601f830112612fd757600080fd5b8135602067ffffffffffffffff821115612ff357612ff3612f7f565b8160051b613002828201612f95565b928352848101820192828101908785111561301c57600080fd5b83870192505b8483101561303b57823582529183019190830190613022565b979650505050505050565b6000806040838503121561305957600080fd5b82359150602083013567ffffffffffffffff81111561307757600080fd5b61308385828601612fc6565b9150509250929050565b6000806000606084860312156130a257600080fd5b83356130ad81612f21565b925060208401356130bd81612f21565b929592945050506040919091013590565b6000806000606084860312156130e357600080fd5b83356130ee81612f21565b95602085013595506040909401359392505050565b80151581146113c757600080fd5b60008060006040848603121561312657600080fd5b833567ffffffffffffffff8082111561313e57600080fd5b818601915086601f83011261315257600080fd5b81358181111561316157600080fd5b8760208260051b850101111561317657600080fd5b6020928301955093505084013561318c81613103565b809150509250925092565b600067ffffffffffffffff8311156131b1576131b1612f7f565b6131c4601f8401601f1916602001612f95565b90508281528383830111156131d857600080fd5b828260208301376000602084830101529392505050565b600082601f83011261320057600080fd5b611f1c83833560208501613197565b6000806040838503121561322257600080fd5b823567ffffffffffffffff8082111561323a57600080fd5b613246868387016131ef565b9350602085013591508082111561325c57600080fd5b50613083858286016131ef565b6000806040838503121561327c57600080fd5b823561328781612f21565b9150602083013561329781613103565b809150509250929050565b600080600080608085870312156132b857600080fd5b84356132c381612f21565b935060208501356132d381612f21565b925060408501359150606085013567ffffffffffffffff8111156132f657600080fd5b8501601f8101871361330757600080fd5b61331687823560208401613197565b91505092959194509250565b60006020828403121561333457600080fd5b813567ffffffffffffffff81111561334b57600080fd5b61286e84828501612fc6565b6000806040838503121561336a57600080fd5b823561337581612f21565b9150602083013561329781612f21565b60006020828403121561339757600080fd5b813567ffffffffffffffff8111156133ae57600080fd5b61286e848285016131ef565b600181811c908216806133ce57607f821691505b602082108114156133ef57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b6000821982111561341e5761341e6133f5565b500190565b600081600019048311821515161561343d5761343d6133f5565b500290565b6000600019821415613456576134566133f5565b5060010190565b634e487b7160e01b600052603260045260246000fd5b60006020828403121561348557600080fd5b8151611f1c81613103565b8054600090600181811c90808316806134aa57607f831692505b60208084108214156134cc57634e487b7160e01b600052602260045260246000fd5b8180156134e057600181146134f15761351e565b60ff1986168952848901965061351e565b60008881526020902060005b868110156135165781548b8201529085019083016134fd565b505084890196505b50505050505092915050565b60006135368286613490565b8451613546818360208901612e9d565b61303b81830186613490565b60006020828403121561356457600080fd5b8151611f1c81612f21565b60008161357e5761357e6133f5565b506000190190565b60006001600160a01b038087168352808616602084015250836040830152608060608301526135b86080830184612ec9565b9695505050505050565b6000602082840312156135d457600080fd5b8151611f1c81612e6a565b634e487b7160e01b600052601260045260246000fd5b600082613604576136046135df565b500490565b60008282101561361b5761361b6133f5565b500390565b60008261362f5761362f6135df565b500690565b60006001600160801b03808316818516808303821115613656576136566133f5565b0194935050505056fe4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572a2646970667358221220f76db3ef49b2a6d9a6a6760b81da64d095e992c36a2c620babeaf21c944d547664736f6c634300080b003300000000000000000000000000000000000000000000000000000000000000603dd71ed9c785a990dac6f9513876d6710146eed230e132122f30e53fb5b9e27390eb1f23b9bd0c3ebab5334b7da08c733e51c1ae2fd400131f6d5ccc23cdb2bb000000000000000000000000000000000000000000000000000000000000004368747470733a2f2f697066732e696f2f697066732f516d626177384d7147716f784859325934517a57546f39444b73387753414b74597279587942646d3350656175500000000000000000000000000000000000000000000000000000000000

Deployed Bytecode

0x6080604052600436106103605760003560e01c80636790a9de116101c6578063b5b1cd7c116100f7578063cd5d211811610095578063f03ade131161006f578063f03ade1314610981578063f2fde38b1461099c578063f3e414f8146109bc578063fe2c7fee146109dc57600080fd5b8063cd5d21181461091b578063cfe6c8841461094b578063e985e9c51461096157600080fd5b8063c294d4f2116100d1578063c294d4f2146108b0578063c6682862146108c6578063c87b56dd146108db578063c8904767146108fb57600080fd5b8063b5b1cd7c14610843578063b776c8a614610870578063b88d4fde1461089057600080fd5b806395d89b4111610164578063a22cb4651161013e578063a22cb465146107b6578063a3857c9d146107d6578063a8e90b5714610803578063ae2697431461082357600080fd5b806395d89b41146107615780639c5d46ae14610776578063a1db97821461079657600080fd5b806370a08231116101a057806370a08231146106f2578063715018a6146107125780638da5cb5b146107275780638e26085b1461074557600080fd5b80636790a9de146106a85780636c0360eb146106c85780637035bf18146106dd57600080fd5b80632f745c59116102a05780634a1b64b51161023e5780635c975abb116102185780635c975abb14610626578063603f4d521461064557806361c0b6a01461065b5780636352211e1461068857600080fd5b80634a1b64b5146105d15780634f6ccce7146105e6578063511ed3821461060657600080fd5b8063379607f51161027a578063379607f51461055e57806339ead7201461057157806342842e0e146105915780634576da47146105b157600080fd5b80632f745c591461051457806333c12e171461053457806336566f061461054957600080fd5b806318160ddd1161030d57806321252a06116102e757806321252a06146104ac57806323b872dd146104bf578063242c2580146104df5780632e1a7d4d146104f457600080fd5b806318160ddd146104575780631e8858fb146104765780631f00b58a1461049657600080fd5b8063081812fc1161033e578063081812fc146103dd578063084c408814610415578063095ea7b31461043757600080fd5b806301ffc9a714610365578063026ae1021461039a57806306fdde03146103bb575b600080fd5b34801561037157600080fd5b50610385610380366004612e80565b6109fc565b60405190151581526020015b60405180910390f35b3480156103a657600080fd5b50600d5461038590600160a01b900460ff1681565b3480156103c757600080fd5b506103d0610a69565b6040516103919190612ef5565b3480156103e957600080fd5b506103fd6103f8366004612f08565b610afb565b6040516001600160a01b039091168152602001610391565b34801561042157600080fd5b50610435610430366004612f08565b610b8b565b005b34801561044357600080fd5b50610435610452366004612f36565b610bd8565b34801561046357600080fd5b506001545b604051908152602001610391565b34801561048257600080fd5b50610435610491366004612f62565b610cf0565b3480156104a257600080fd5b50610468600f5481565b6104356104ba366004613046565b610d5a565b3480156104cb57600080fd5b506104356104da36600461308d565b610f38565b3480156104eb57600080fd5b50610468600581565b34801561050057600080fd5b5061043561050f366004612f08565b610f43565b34801561052057600080fd5b5061046861052f366004612f36565b610fb8565b34801561054057600080fd5b50610435611140565b34801561055557600080fd5b506104356111a9565b61043561056c366004612f08565b611215565b34801561057d57600080fd5b5061043561058c3660046130ce565b6113ca565b34801561059d57600080fd5b506104356105ac36600461308d565b611492565b3480156105bd57600080fd5b506104356105cc366004613111565b6114ad565b3480156105dd57600080fd5b50610468600281565b3480156105f257600080fd5b50610468610601366004612f08565b61156c565b34801561061257600080fd5b50600c546103fd906001600160a01b031681565b34801561063257600080fd5b50600054600160a01b900460ff16610385565b34801561065157600080fd5b5061046860085481565b34801561066757600080fd5b50610468610676366004612f62565b60106020526000908152604090205481565b34801561069457600080fd5b506103fd6106a3366004612f08565b6115d5565b3480156106b457600080fd5b506104356106c336600461320f565b6115e7565b3480156106d457600080fd5b506103d0611663565b3480156106e957600080fd5b506103d06116f1565b3480156106fe57600080fd5b5061046861070d366004612f62565b6116fe565b34801561071e57600080fd5b5061043561178f565b34801561073357600080fd5b506000546001600160a01b03166103fd565b34801561075157600080fd5b50610468670138a388a43c000081565b34801561076d57600080fd5b506103d06117e1565b34801561078257600080fd5b50610435610791366004612f08565b6117f0565b3480156107a257600080fd5b506104356107b1366004612f36565b61183d565b3480156107c257600080fd5b506104356107d1366004613269565b6118f6565b3480156107e257600080fd5b506104686107f1366004612f62565b60116020526000908152604090205481565b34801561080f57600080fd5b50600d546103fd906001600160a01b031681565b34801561082f57600080fd5b5061043561083e366004612f08565b6119bb565b34801561084f57600080fd5b5061046861085e366004612f62565b60126020526000908152604090205481565b34801561087c57600080fd5b5061043561088b366004612f62565b611a08565b34801561089c57600080fd5b506104356108ab3660046132a2565b611a72565b3480156108bc57600080fd5b5061046861115c81565b3480156108d257600080fd5b506103d0611af1565b3480156108e757600080fd5b506103d06108f6366004612f08565b611afe565b34801561090757600080fd5b50610435610916366004613322565b611c5b565b34801561092757600080fd5b50610385610936366004612f62565b60136020526000908152604090205460ff1681565b34801561095757600080fd5b50610468600e5481565b34801561096d57600080fd5b5061038561097c366004613357565b611dc8565b34801561098d57600080fd5b50610468669c51c4521e000081565b3480156109a857600080fd5b506104356109b7366004612f62565b611f23565b3480156109c857600080fd5b506104356109d7366004612f36565b611fd9565b3480156109e857600080fd5b506104356109f7366004613385565b61208b565b60006001600160e01b031982166380ac58cd60e01b1480610a2d57506001600160e01b03198216635b5e139f60e01b145b80610a4857506001600160e01b0319821663780e9d6360e01b145b80610a6357506301ffc9a760e01b6001600160e01b03198316145b92915050565b606060028054610a78906133ba565b80601f0160208091040260200160405190810160405280929190818152602001828054610aa4906133ba565b8015610af15780601f10610ac657610100808354040283529160200191610af1565b820191906000526020600020905b815481529060010190602001808311610ad457829003601f168201915b5050505050905090565b6000610b08826001541190565b610b6f5760405162461bcd60e51b815260206004820152602d60248201527f455243373231413a20617070726f76656420717565727920666f72206e6f6e6560448201526c3c34b9ba32b73a103a37b5b2b760991b60648201526084015b60405180910390fd5b506000908152600660205260409020546001600160a01b031690565b6000546001600160a01b03163314610bd35760405162461bcd60e51b815260206004820181905260248201526000805160206136608339815191526044820152606401610b66565b600855565b6000610be3826115d5565b9050806001600160a01b0316836001600160a01b03161415610c525760405162461bcd60e51b815260206004820152602260248201527f455243373231413a20617070726f76616c20746f2063757272656e74206f776e60448201526132b960f11b6064820152608401610b66565b336001600160a01b0382161480610c6e5750610c6e8133611dc8565b610ce05760405162461bcd60e51b815260206004820152603960248201527f455243373231413a20617070726f76652063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f76656420666f7220616c6c000000000000006064820152608401610b66565b610ceb8383836120e6565b505050565b6000546001600160a01b03163314610d385760405162461bcd60e51b815260206004820181905260248201526000805160206136608339815191526044820152606401610b66565b600d80546001600160a01b0319166001600160a01b0392909216919091179055565b6000546001600160a01b03163314610f0557600854600114610db35760405162461bcd60e51b8152602060048201526012602482015271496e76616c69642073616c6520737461746560701b6044820152606401610b66565b600082118015610dde575033600090815260116020526040902054600290610ddb908461340b565b11155b610e215760405162461bcd60e51b8152602060048201526014602482015273125b9d985b1a590818db185a5b48185b5bdd5b9d60621b6044820152606401610b66565b610e3282669c51c4521e0000613423565b3414610e775760405162461bcd60e51b8152602060048201526014602482015273125b9d985b1a5908195d1a195c88185b5bdd5b9d60621b6044820152606401610b66565b6040516bffffffffffffffffffffffff193360601b166020820152600090603401604051602081830303815290604052805190602001209050610ec7600f5482846121429092919063ffffffff16565b610f035760405162461bcd60e51b815260206004820152600d60248201526c24b73b30b634b210383937b7b360991b6044820152606401610b66565b505b3360009081526011602052604081208054849290610f2490849061340b565b90915550610f3490503383612158565b5050565b610ceb838383612172565b6000546001600160a01b03163314610f8b5760405162461bcd60e51b815260206004820181905260248201526000805160206136608339815191526044820152606401610b66565b604051339082156108fc029083906000818181858888f19350505050158015610f34573d6000803e3d6000fd5b6000610fc3836116fe565b821061101c5760405162461bcd60e51b815260206004820152602260248201527f455243373231413a206f776e657220696e646578206f7574206f6620626f756e604482015261647360f01b6064820152608401610b66565b600061102760015490565b905060008060005b838110156110d1576000818152600460209081526040918290208251808401909352546001600160a01b038116808452600160a01b90910467ffffffffffffffff16918301919091521561108257805192505b876001600160a01b0316836001600160a01b031614156110be57868414156110b057509350610a6392505050565b836110ba81613442565b9450505b50806110c981613442565b91505061102f565b5060405162461bcd60e51b815260206004820152602e60248201527f455243373231413a20756e61626c6520746f2067657420746f6b656e206f662060448201527f6f776e657220627920696e6465780000000000000000000000000000000000006064820152608401610b66565b6000546001600160a01b031633146111885760405162461bcd60e51b815260206004820181905260248201526000805160206136608339815191526044820152606401610b66565b600d805460ff60a01b198116600160a01b9182900460ff1615909102179055565b6000546001600160a01b031633146111f15760405162461bcd60e51b815260206004820181905260248201526000805160206136608339815191526044820152606401610b66565b600054600160a01b900460ff161561120d5761120b6124cd565b565b61120b612573565b61115c8161122260015490565b61122c919061340b565b111561127a5760405162461bcd60e51b815260206004820152601360248201527f4d617820737570706c79206578636565646564000000000000000000000000006044820152606401610b66565b6000546001600160a01b03163314611398576008546002146112d35760405162461bcd60e51b8152602060048201526012602482015271496e76616c69642073616c6520737461746560701b6044820152606401610b66565b6000811180156112fe5750336000908152601260205260409020546005906112fb908361340b565b11155b6113415760405162461bcd60e51b8152602060048201526014602482015273125b9d985b1a590818db185a5b48185b5bdd5b9d60621b6044820152606401610b66565b61135381670138a388a43c0000613423565b34146113985760405162461bcd60e51b8152602060048201526014602482015273125b9d985b1a5908195d1a195c88185b5bdd5b9d60621b6044820152606401610b66565b33600090815260126020526040812080548392906113b790849061340b565b909155506113c790503382612158565b50565b6000546001600160a01b031633146114125760405162461bcd60e51b815260206004820181905260248201526000805160206136608339815191526044820152606401610b66565b604051637921219560e11b8152306004820152336024820152604481018390526064810182905260a06084820152600060a48201526001600160a01b0384169063f242432a9060c401600060405180830381600087803b15801561147557600080fd5b505af1158015611489573d6000803e3d6000fd5b50505050505050565b610ceb83838360405180602001604052806000815250611a72565b6000546001600160a01b031633146114f55760405162461bcd60e51b815260206004820181905260248201526000805160206136608339815191526044820152606401610b66565b60005b828110156115665781601360008686858181106115175761151761345d565b905060200201602081019061152c9190612f62565b6001600160a01b031681526020810191909152604001600020805460ff19169115159190911790558061155e81613442565b9150506114f8565b50505050565b600061157760015490565b82106115d15760405162461bcd60e51b815260206004820152602360248201527f455243373231413a20676c6f62616c20696e646578206f7574206f6620626f756044820152626e647360e81b6064820152608401610b66565b5090565b60006115e0826125fb565b5192915050565b6000546001600160a01b0316331461162f5760405162461bcd60e51b815260206004820181905260248201526000805160206136608339815191526044820152606401610b66565b8151611642906009906020850190612d9f565b50805161165690600b906020840190612d9f565b50610f34600a6000612e1f565b60098054611670906133ba565b80601f016020809104026020016040519081016040528092919081815260200182805461169c906133ba565b80156116e95780601f106116be576101008083540402835291602001916116e9565b820191906000526020600020905b8154815290600101906020018083116116cc57829003601f168201915b505050505081565b600a8054611670906133ba565b60006001600160a01b03821661176a5760405162461bcd60e51b815260206004820152602b60248201527f455243373231413a2062616c616e636520717565727920666f7220746865207a60448201526a65726f206164647265737360a81b6064820152608401610b66565b506001600160a01b03166000908152600560205260409020546001600160801b031690565b6000546001600160a01b031633146117d75760405162461bcd60e51b815260206004820181905260248201526000805160206136608339815191526044820152606401610b66565b61120b60006126db565b606060038054610a78906133ba565b6000546001600160a01b031633146118385760405162461bcd60e51b815260206004820181905260248201526000805160206136608339815191526044820152606401610b66565b600f55565b6000546001600160a01b031633146118855760405162461bcd60e51b815260206004820181905260248201526000805160206136608339815191526044820152606401610b66565b60405163a9059cbb60e01b8152336004820152602481018290526001600160a01b0383169063a9059cbb906044016020604051808303816000875af11580156118d2573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ceb9190613473565b6001600160a01b03821633141561194f5760405162461bcd60e51b815260206004820152601a60248201527f455243373231413a20617070726f766520746f2063616c6c65720000000000006044820152606401610b66565b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6000546001600160a01b03163314611a035760405162461bcd60e51b815260206004820181905260248201526000805160206136608339815191526044820152606401610b66565b600e55565b6000546001600160a01b03163314611a505760405162461bcd60e51b815260206004820181905260248201526000805160206136608339815191526044820152606401610b66565b600c80546001600160a01b0319166001600160a01b0392909216919091179055565b611a7d848484612172565b611a898484848461272b565b6115665760405162461bcd60e51b815260206004820152603360248201527f455243373231413a207472616e7366657220746f206e6f6e204552433732315260448201527232b1b2b4bb32b91034b6b83632b6b2b73a32b960691b6064820152608401610b66565b600b8054611670906133ba565b6060611b0b826001541190565b611b7d5760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201527f6e6578697374656e7420746f6b656e00000000000000000000000000000000006064820152608401610b66565b6000600a8054611b8c906133ba565b90501115611c2657600a8054611ba1906133ba565b80601f0160208091040260200160405190810160405280929190818152602001828054611bcd906133ba565b8015611c1a5780601f10611bef57610100808354040283529160200191611c1a565b820191906000526020600020905b815481529060010190602001808311611bfd57829003601f168201915b50505050509050919050565b6009611c3183612876565b600b604051602001611c459392919061352a565b6040516020818303038152906040529050919050565b6000546001600160a01b03163314611d9d5760085415611cb25760405162461bcd60e51b8152602060048201526012602482015271496e76616c69642073616c6520737461746560701b6044820152606401610b66565b3360009081526010602052604090205415611d0f5760405162461bcd60e51b815260206004820181905260248201527f5573657220616c7265616479206d696e7465642061206672656520746f6b656e6044820152606401610b66565b6040516bffffffffffffffffffffffff193360601b166020820152600090603401604051602081830303815290604052805190602001209050611d5f600e5482846121429092919063ffffffff16565b611d9b5760405162461bcd60e51b815260206004820152600d60248201526c24b73b30b634b210383937b7b360991b6044820152606401610b66565b505b336000908152601060205260408120805491611db883613442565b91905055506113c7336001612158565b600d54600090600160a01b900460ff16611e2f576001600160a01b03821660009081526013602052604090205460ff1680611e2857506001600160a01b0380841660009081526007602090815260408083209386168352929052205460ff165b9050610a63565b6001600160a01b03821660009081526013602052604090205460ff1680611ed45750600c5460405163c455279160e01b81526001600160a01b0385811660048301529091169063c455279190602401602060405180830381865afa158015611e9b573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611ebf9190613552565b6001600160a01b0316826001600160a01b0316145b80611eec5750600d546001600160a01b038381169116145b80611f1c57506001600160a01b0380841660009081526007602090815260408083209386168352929052205460ff165b9392505050565b6000546001600160a01b03163314611f6b5760405162461bcd60e51b815260206004820181905260248201526000805160206136608339815191526044820152606401610b66565b6001600160a01b038116611fd05760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610b66565b6113c7816126db565b6000546001600160a01b031633146120215760405162461bcd60e51b815260206004820181905260248201526000805160206136608339815191526044820152606401610b66565b604051632142170760e11b8152306004820152336024820152604481018290526001600160a01b038316906342842e0e90606401600060405180830381600087803b15801561206f57600080fd5b505af1158015612083573d6000803e3d6000fd5b505050505050565b6000546001600160a01b031633146120d35760405162461bcd60e51b815260206004820181905260248201526000805160206136608339815191526044820152606401610b66565b8051610f3490600a906020840190612d9f565b60008281526006602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b60008261214f858461298c565b14949350505050565b610f34828260405180602001604052806000815250612a38565b600061217d826125fb565b80519091506000906001600160a01b0316336001600160a01b031614806121b45750336121a984610afb565b6001600160a01b0316145b806121c6575081516121c69033611dc8565b90508061223b5760405162461bcd60e51b815260206004820152603260248201527f455243373231413a207472616e736665722063616c6c6572206973206e6f742060448201527f6f776e6572206e6f7220617070726f76656400000000000000000000000000006064820152608401610b66565b846001600160a01b031682600001516001600160a01b0316146122af5760405162461bcd60e51b815260206004820152602660248201527f455243373231413a207472616e736665722066726f6d20696e636f72726563746044820152651037bbb732b960d11b6064820152608401610b66565b6001600160a01b0384166123135760405162461bcd60e51b815260206004820152602560248201527f455243373231413a207472616e7366657220746f20746865207a65726f206164604482015264647265737360d81b6064820152608401610b66565b6123208585856001612d4d565b61233060008484600001516120e6565b6001600160a01b03858116600090815260056020908152604080832080546fffffffffffffffffffffffffffffffff198082166001600160801b03928316600019018316179092558986168086528386208054938416938316600190810190931693909317909255825180840184529182524267ffffffffffffffff9081168386019081528a8752600490955292852091518254945196166001600160e01b031990941693909317600160a01b959092169490940217909255906123f590859061340b565b6000818152600460205260409020549091506001600160a01b03166124875761241f816001541190565b156124875760408051808201825284516001600160a01b03908116825260208087015167ffffffffffffffff9081168285019081526000878152600490935294909120925183549451909116600160a01b026001600160e01b03199094169116179190911790555b83856001600160a01b0316876001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4612083565b600054600160a01b900460ff166125265760405162461bcd60e51b815260206004820152601460248201527f5061757361626c653a206e6f74207061757365640000000000000000000000006044820152606401610b66565b6000805460ff60a01b191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b600054600160a01b900460ff16156125c05760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b6044820152606401610b66565b6000805460ff60a01b1916600160a01b1790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586125563390565b604080518082019091526000808252602082015261261a826001541190565b6126795760405162461bcd60e51b815260206004820152602a60248201527f455243373231413a206f776e657220717565727920666f72206e6f6e657869736044820152693a32b73a103a37b5b2b760b11b6064820152608401610b66565b815b6000818152600460209081526040918290208251808401909352546001600160a01b038116808452600160a01b90910467ffffffffffffffff1691830191909152156126c8579392505050565b50806126d38161356f565b91505061267b565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b60006001600160a01b0384163b1561286a57604051630a85bd0160e11b81526001600160a01b0385169063150b7a029061276f903390899088908890600401613586565b6020604051808303816000875af19250505080156127aa575060408051601f3d908101601f191682019092526127a7918101906135c2565b60015b612850573d8080156127d8576040519150601f19603f3d011682016040523d82523d6000602084013e6127dd565b606091505b5080516128485760405162461bcd60e51b815260206004820152603360248201527f455243373231413a207472616e7366657220746f206e6f6e204552433732315260448201527232b1b2b4bb32b91034b6b83632b6b2b73a32b960691b6064820152608401610b66565b805181602001fd5b6001600160e01b031916630a85bd0160e11b14905061286e565b5060015b949350505050565b60608161289a5750506040805180820190915260018152600360fc1b602082015290565b8160005b81156128c457806128ae81613442565b91506128bd9050600a836135f5565b915061289e565b60008167ffffffffffffffff8111156128df576128df612f7f565b6040519080825280601f01601f191660200182016040528015612909576020820181803683370190505b5090505b841561286e5761291e600183613609565b915061292b600a86613620565b61293690603061340b565b60f81b81838151811061294b5761294b61345d565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350612985600a866135f5565b945061290d565b600081815b8451811015612a305760008582815181106129ae576129ae61345d565b602002602001015190508083116129f0576040805160208101859052908101829052606001604051602081830303815290604052805190602001209250612a1d565b60408051602081018390529081018490526060016040516020818303038152906040528051906020012092505b5080612a2881613442565b915050612991565b509392505050565b6001546001600160a01b038416612a9b5760405162461bcd60e51b815260206004820152602160248201527f455243373231413a206d696e7420746f20746865207a65726f206164647265736044820152607360f81b6064820152608401610b66565b612aa6816001541190565b15612af35760405162461bcd60e51b815260206004820152601d60248201527f455243373231413a20746f6b656e20616c7265616479206d696e7465640000006044820152606401610b66565b60008311612b4f5760405162461bcd60e51b815260206004820152602360248201527f455243373231413a207175616e74697479206d7573742062652067726561746560448201526207220360ec1b6064820152608401610b66565b612b5c6000858386612d4d565b6001600160a01b0384166000908152600560209081526040918290208251808401845290546001600160801b038082168352600160801b9091041691810191909152815180830190925280519091908190612bb8908790613634565b6001600160801b03168152602001858360200151612bd69190613634565b6001600160801b039081169091526001600160a01b0380881660008181526005602090815260408083208751978301518716600160801b0297909616969096179094558451808601865291825267ffffffffffffffff4281168386019081528883526004909552948120915182549451909516600160a01b026001600160e01b031990941694909216939093179190911790915582905b85811015612d425760405182906001600160a01b038916906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a4612cba600088848861272b565b612d225760405162461bcd60e51b815260206004820152603360248201527f455243373231413a207472616e7366657220746f206e6f6e204552433732315260448201527232b1b2b4bb32b91034b6b83632b6b2b73a32b960691b6064820152608401610b66565b81612d2c81613442565b9250508080612d3a90613442565b915050612c6d565b506001819055612083565b600054600160a01b900460ff1615612d9a5760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b6044820152606401610b66565b611566565b828054612dab906133ba565b90600052602060002090601f016020900481019282612dcd5760008555612e13565b82601f10612de657805160ff1916838001178555612e13565b82800160010185558215612e13579182015b82811115612e13578251825591602001919060010190612df8565b506115d1929150612e55565b508054612e2b906133ba565b6000825580601f10612e3b575050565b601f0160209004906000526020600020908101906113c791905b5b808211156115d15760008155600101612e56565b6001600160e01b0319811681146113c757600080fd5b600060208284031215612e9257600080fd5b8135611f1c81612e6a565b60005b83811015612eb8578181015183820152602001612ea0565b838111156115665750506000910152565b60008151808452612ee1816020860160208601612e9d565b601f01601f19169290920160200192915050565b602081526000611f1c6020830184612ec9565b600060208284031215612f1a57600080fd5b5035919050565b6001600160a01b03811681146113c757600080fd5b60008060408385031215612f4957600080fd5b8235612f5481612f21565b946020939093013593505050565b600060208284031215612f7457600080fd5b8135611f1c81612f21565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff81118282101715612fbe57612fbe612f7f565b604052919050565b600082601f830112612fd757600080fd5b8135602067ffffffffffffffff821115612ff357612ff3612f7f565b8160051b613002828201612f95565b928352848101820192828101908785111561301c57600080fd5b83870192505b8483101561303b57823582529183019190830190613022565b979650505050505050565b6000806040838503121561305957600080fd5b82359150602083013567ffffffffffffffff81111561307757600080fd5b61308385828601612fc6565b9150509250929050565b6000806000606084860312156130a257600080fd5b83356130ad81612f21565b925060208401356130bd81612f21565b929592945050506040919091013590565b6000806000606084860312156130e357600080fd5b83356130ee81612f21565b95602085013595506040909401359392505050565b80151581146113c757600080fd5b60008060006040848603121561312657600080fd5b833567ffffffffffffffff8082111561313e57600080fd5b818601915086601f83011261315257600080fd5b81358181111561316157600080fd5b8760208260051b850101111561317657600080fd5b6020928301955093505084013561318c81613103565b809150509250925092565b600067ffffffffffffffff8311156131b1576131b1612f7f565b6131c4601f8401601f1916602001612f95565b90508281528383830111156131d857600080fd5b828260208301376000602084830101529392505050565b600082601f83011261320057600080fd5b611f1c83833560208501613197565b6000806040838503121561322257600080fd5b823567ffffffffffffffff8082111561323a57600080fd5b613246868387016131ef565b9350602085013591508082111561325c57600080fd5b50613083858286016131ef565b6000806040838503121561327c57600080fd5b823561328781612f21565b9150602083013561329781613103565b809150509250929050565b600080600080608085870312156132b857600080fd5b84356132c381612f21565b935060208501356132d381612f21565b925060408501359150606085013567ffffffffffffffff8111156132f657600080fd5b8501601f8101871361330757600080fd5b61331687823560208401613197565b91505092959194509250565b60006020828403121561333457600080fd5b813567ffffffffffffffff81111561334b57600080fd5b61286e84828501612fc6565b6000806040838503121561336a57600080fd5b823561337581612f21565b9150602083013561329781612f21565b60006020828403121561339757600080fd5b813567ffffffffffffffff8111156133ae57600080fd5b61286e848285016131ef565b600181811c908216806133ce57607f821691505b602082108114156133ef57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b6000821982111561341e5761341e6133f5565b500190565b600081600019048311821515161561343d5761343d6133f5565b500290565b6000600019821415613456576134566133f5565b5060010190565b634e487b7160e01b600052603260045260246000fd5b60006020828403121561348557600080fd5b8151611f1c81613103565b8054600090600181811c90808316806134aa57607f831692505b60208084108214156134cc57634e487b7160e01b600052602260045260246000fd5b8180156134e057600181146134f15761351e565b60ff1986168952848901965061351e565b60008881526020902060005b868110156135165781548b8201529085019083016134fd565b505084890196505b50505050505092915050565b60006135368286613490565b8451613546818360208901612e9d565b61303b81830186613490565b60006020828403121561356457600080fd5b8151611f1c81612f21565b60008161357e5761357e6133f5565b506000190190565b60006001600160a01b038087168352808616602084015250836040830152608060608301526135b86080830184612ec9565b9695505050505050565b6000602082840312156135d457600080fd5b8151611f1c81612e6a565b634e487b7160e01b600052601260045260246000fd5b600082613604576136046135df565b500490565b60008282101561361b5761361b6133f5565b500390565b60008261362f5761362f6135df565b500690565b60006001600160801b03808316818516808303821115613656576136566133f5565b0194935050505056fe4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572a2646970667358221220f76db3ef49b2a6d9a6a6760b81da64d095e992c36a2c620babeaf21c944d547664736f6c634300080b0033

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

00000000000000000000000000000000000000000000000000000000000000603dd71ed9c785a990dac6f9513876d6710146eed230e132122f30e53fb5b9e27390eb1f23b9bd0c3ebab5334b7da08c733e51c1ae2fd400131f6d5ccc23cdb2bb000000000000000000000000000000000000000000000000000000000000004368747470733a2f2f697066732e696f2f697066732f516d626177384d7147716f784859325934517a57546f39444b73387753414b74597279587942646d3350656175500000000000000000000000000000000000000000000000000000000000

-----Decoded View---------------
Arg [0] : newUnrevealedURI (string): https://ipfs.io/ipfs/Qmbaw8MqGqoxHY2Y4QzWTo9DKs8wSAKtYryXyBdm3PeauP
Arg [1] : freeClaimRoot_ (bytes32): 0x3dd71ed9c785a990dac6f9513876d6710146eed230e132122f30e53fb5b9e273
Arg [2] : earlyAccessRoot_ (bytes32): 0x90eb1f23b9bd0c3ebab5334b7da08c733e51c1ae2fd400131f6d5ccc23cdb2bb

-----Encoded View---------------
7 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000060
Arg [1] : 3dd71ed9c785a990dac6f9513876d6710146eed230e132122f30e53fb5b9e273
Arg [2] : 90eb1f23b9bd0c3ebab5334b7da08c733e51c1ae2fd400131f6d5ccc23cdb2bb
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000043
Arg [4] : 68747470733a2f2f697066732e696f2f697066732f516d626177384d7147716f
Arg [5] : 784859325934517a57546f39444b73387753414b74597279587942646d335065
Arg [6] : 6175500000000000000000000000000000000000000000000000000000000000


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.