ETH Price: $3,176.73 (+2.34%)

Token

House of Queens (HoQ)
 

Overview

Max Total Supply

111 HoQ

Holders

56

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A

Other Info

Filtered by Token Holder
Non Fungible Labs: Deployer
Balance
2 HoQ
0x38319E74CeFe77B62FeC8E7a2aB81318727f46c7
Loading...
Loading
Loading...
Loading
Loading...
Loading

Click here to update the token information / general information
# Exchange Pair Price  24H Volume % Volume

Contract Source Code Verified (Exact Match)

Contract Name:
HoQ

Compiler Version
v0.8.4+commit.c7e474f2

Optimization Enabled:
Yes with 200 runs

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

import "./ERC721A/ERC721A_start_at_one.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "@openzeppelin/contracts/utils/math/SafeMath.sol";
import "@openzeppelin/contracts/utils/Strings.sol";

import "./common/meta-transactions/ContentMixin.sol";
import "./common/meta-transactions/NativeMetaTransaction.sol";

contract HoQ is ContextMixin, ERC721A, NativeMetaTransaction, Ownable, ReentrancyGuard {

    enum ReleaseMode { CLOSED, OG_WHITELIST_MINT, WHITELIST_MINT, PUBLIC_MINT, REVEALED }
    ReleaseMode public currentMode;

    using SafeMath for uint256;

    string public contractURI;

    uint256 public maxSupply = 10000;
    uint256 public maxPublicSupply = 9800;
    uint256 public maxWhitelistMintsPerWallet = 5;

    bool public isMetaDataFrozen = false;

    string private _tokenURI;

    bytes32 private _whitelistMerkleRoot;

    address private developer;
    uint private developerPercentage = 2;

    uint256 public mintPricePublic = 0.07 ether;
    uint256 public mintPriceWL = 0.06 ether;
    uint256 public mintPriceOGWL = 0.06 ether;

    uint256 private developerBalance = 0 ether;

    uint256 private emergencyWithdrawAvailableTime = 2147462145;

    uint256 private yearInSeconds = 31556926;

    mapping(address => uint256) public whitelistMintedPerAddress;

    string private _name = "House of Queens";
    string private _symbol = "HoQ";

    modifier notFrozenMetaData {
        require(
            !isMetaDataFrozen,
            "metadata frozen"
        );
        _;
    }

    modifier canPublicMint {
        require(
            currentMode == ReleaseMode.PUBLIC_MINT || currentMode == ReleaseMode.REVEALED,
            "It's not time yet"
        );
        _;
    }

    modifier canWhitelistMint {
        require(
            currentMode == ReleaseMode.WHITELIST_MINT,
            "It's not time yet"
        );
        _;
    }

    modifier canOGWhitelistMint {
        require(
            currentMode == ReleaseMode.OG_WHITELIST_MINT,
            "It's not time yet"
        );
        _;
    }

    modifier onlyDeveloper {
        require(
            developer == _msgSender(),
            "dev only"
        );
        _;
    }

    constructor(string memory __tokenURI, address _developer) ERC721A(_name, _symbol) {
        _tokenURI = __tokenURI;
        developer = _developer;
        emergencyWithdrawAvailableTime = block.timestamp + yearInSeconds;
        _initializeEIP712(_name);
    }

    function setReleaseStatus(ReleaseMode newStatus) external onlyOwner {
        currentMode = newStatus;
    }

    function setWhitelistMerkleRoot(bytes32 merkleRoot) external onlyOwner {
        _whitelistMerkleRoot = merkleRoot;
    }

    function publicMint(uint256 count) public payable canPublicMint {
        require(msg.value == (count * mintPricePublic), "Wrong amount");
        require(count > 0 && count <= 8, "Wrong amount");

        buyAmount(count);
        developerBalance += msg.value * developerPercentage / 100;
    }

    function whitelistMint(bytes32[] memory merkleProof, uint256 count) public payable canWhitelistMint {
        bytes32 leaf = keccak256(abi.encodePacked(msg.sender));
        require(MerkleProof.verify(merkleProof, _whitelistMerkleRoot, leaf), "Not WL");
        require(msg.value == (count * mintPriceWL), "Wrong price");
        require(whitelistMintedPerAddress[msg.sender] + count <= maxWhitelistMintsPerWallet, "WL Wallet Max");
        require(count > 0 && count <= 8, "Wrong amount");

        buyAmount(count);
        whitelistMintedPerAddress[msg.sender] += count;
        developerBalance += msg.value * developerPercentage / 100;
    }

    function ogWhitelistMint(bytes32[] memory merkleProof, uint256 count) public payable canOGWhitelistMint {
        bytes32 leaf = keccak256(abi.encodePacked(msg.sender));
        require(MerkleProof.verify(merkleProof, _whitelistMerkleRoot, leaf), "Not OG WL");
        require(msg.value == (count * mintPriceOGWL), "Wrong price");
        require(whitelistMintedPerAddress[msg.sender] + count <= maxWhitelistMintsPerWallet, "WL Wallet Max");
        require(count > 0 && count <= 8, "Wrong amount");

        buyAmount(count);
        whitelistMintedPerAddress[msg.sender] += count;
        developerBalance += msg.value * developerPercentage / 100;
    }

    function buyAmount(uint256 count) private {
        require(totalSupply() + count <= maxPublicSupply, "Max Public Supply");
        _safeMint(_msgSender(), count);
    }

    function mintMany(uint256 num, address _to) public onlyOwner {
        require(num <= 8, "Max 8 Per TX.");
        require(totalSupply() + num < maxSupply, "Max Supply");
        _safeMint(_to, num);
    }

    function mintTo(address _to) public onlyOwner {
        require(totalSupply() < maxSupply, "Max Supply");
        _safeMint(_to, 1);
    }

    // withdraw function for the contract owner
    function withdraw() external nonReentrant onlyOwner {
        payable(owner()).transfer(address(this).balance - developerBalance);
    }

    // withdraw function for the contract developer to retrieve royalties
    function withdrawDeveloper() external nonReentrant onlyDeveloper {
        payable(developer).transfer(developerBalance);
        developerBalance = 0 ether;
    }

    // if the funds are still in the contract a year after deploy they can all be taken by the owner
    function emergencyWithdraw() external nonReentrant onlyOwner {
        require(block.timestamp > emergencyWithdrawAvailableTime, "It's not time yet");
        payable(owner()).transfer(address(this).balance);
    }

    // in case the contract is not fully minted out have the ability to cut the supply
    function shrinkSupply(uint256 newMaxSupply, uint256 newMaxPublicSupply) external nonReentrant onlyOwner {
        require(newMaxSupply >= newMaxPublicSupply, "ERR: public > max!");
        require(totalSupply() <= newMaxSupply, "ERR: minted > new!");
        require(newMaxSupply <= maxSupply, "ERR: cant increase max supply");
        maxPublicSupply = newMaxPublicSupply;
        maxSupply = newMaxSupply;
    }

    function setTokenUri(string memory _uri, bool reveal) external onlyOwner notFrozenMetaData {
        _tokenURI = _uri;
        if (reveal) {
            currentMode = ReleaseMode.REVEALED;
        }
    }

    function setContractUri(string memory uri) public onlyOwner {
        contractURI = uri;
    }

    function freezeMetaData() public onlyOwner {
        require(currentMode == ReleaseMode.REVEALED, "Freeze after reveal");
        isMetaDataFrozen = true;
    }

    function tokenURI(uint256 _tokenId)
        public
        view
        override
        returns (string memory)
    {
        if (currentMode != ReleaseMode.REVEALED) {
            return string(abi.encodePacked(_tokenURI));
        }
        return
            string(
                abi.encodePacked(
                    _tokenURI,
                    Strings.toString(_tokenId),
                    ".json"
                )
            );
    }

    /**
     * This is used instead of msg.sender as transactions won't be sent by the original token owner, but by OpenSea.
     */
    function _msgSender() internal view override returns (address sender) {
        return ContextMixin.msgSender();
    }
}

File 2 of 19 : ERC721A_start_at_one.sol
// SPDX-License-Identifier: MIT
// Creator: Chiru Labs
// Implemented the changes from https://github.com/chiru-labs/ERC721A/pull/66

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, given a starting token ID, s, (e.g. s+0, s+1, s+2, s+3..).
 *
 * Does not support burning tokens to address(0).
 *
 * Assumes that an owner cannot have more than the 2**128 - 1 (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 _nextTokenId;

    // 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_;
        _nextTokenId = _startTokenId();
    }

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

    /**
     * @dev See {IERC721Enumerable-totalSupply}.
     */
    function totalSupply() public view override returns (uint256) {
        // Underflow not possible as _nextTokenId is always >= _startTokenId.
        unchecked {
            return _nextTokenId - _startTokenId();
        }
    }

    /**
     * @dev See {IERC721Enumerable-tokenByIndex}.
     */
    function tokenByIndex(uint256 index) public view override returns (uint256) {
        require(index < totalSupply(), 'ERC721A: global index out of bounds');
        // Overflow not possible if index < totalSupply().
        unchecked {
            return index + _startTokenId();
        }
    }

    /**
     * @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 end = _nextTokenId;
        uint256 tokenIdsIdx;
        address currOwnershipAddr;

        // Counter overflow is impossible as the loop breaks when uint256 i is equal to another uint256 (end).
        unchecked {
            for (uint256 i = _startTokenId(); i < end; 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);
    }

    /**
     * Gas spent here starts off proportional to the maximum mint batch size.
     * It gradually moves to O(1) as tokens get transferred around in the collection over time.
     */
    function ownershipOf(uint256 tokenId) internal view returns (TokenOwnership memory) {
        require(_exists(tokenId), 'ERC721A: owner query for nonexistent token');

        unchecked {
            uint256 startIndex = _startTokenId();
            for (uint256 curr = tokenId; curr >= startIndex; 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 < _nextTokenId && tokenId >= _startTokenId();
    }

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

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

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

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

        // Overflows are incredibly unrealistic.
        // balance or numberMinted overflow if current value of either + quantity > 3.4e38 (2**128) - 1
        // updatedIndex overflows if _nextTokenId + quantity > 1.56e77 (2**256) - 1
        unchecked {
            _addressData[to].balance += uint128(quantity);
            _addressData[to].numberMinted += uint128(quantity);

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

            uint256 updatedIndex = startTokenId;

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

                updatedIndex++;
            }

            _nextTokenId = 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.
        // Counter overflow is incredibly unrealistic as tokenId would have to be 2**256.
        unchecked {
            _addressData[from].balance -= 1;
            _addressData[to].balance += 1;

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

            // If the ownership slot of tokenId+1 is not explicitly set, that means the transfer initiator owns it.
            // Set the slot of tokenId+1 explicitly in storage to maintain correctness for ownerOf(tokenId+1) calls.
            uint256 nextTokenId = tokenId + 1;
            if (_ownerships[nextTokenId].addr == address(0)) {
                // This suffice for _exists(nextTokenId), as _startTokenId() < tokenId < tokenId + 1
                if (nextTokenId < _nextTokenId) {
                    _ownerships[nextTokenId].addr = prevOwnership.addr;
                    _ownerships[nextTokenId].startTimestamp = 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 19 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (access/Ownable.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

File 4 of 19 : 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 5 of 19 : ReentrancyGuard.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (security/ReentrancyGuard.sol)

pragma solidity ^0.8.0;

/**
 * @dev Contract module that helps prevent reentrant calls to a function.
 *
 * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier
 * available, which can be applied to functions to make sure there are no nested
 * (reentrant) calls to them.
 *
 * Note that because there is a single `nonReentrant` guard, functions marked as
 * `nonReentrant` may not call one another. This can be worked around by making
 * those functions `private`, and then adding `external` `nonReentrant` entry
 * points to them.
 *
 * TIP: If you would like to learn more about reentrancy and alternative ways
 * to protect against it, check out our blog post
 * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul].
 */
abstract contract ReentrancyGuard {
    // Booleans are more expensive than uint256 or any type that takes up a full
    // word because each write operation emits an extra SLOAD to first read the
    // slot's contents, replace the bits taken up by the boolean, and then write
    // back. This is the compiler's defense against contract upgrades and
    // pointer aliasing, and it cannot be disabled.

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

    uint256 private _status;

    constructor() {
        _status = _NOT_ENTERED;
    }

    /**
     * @dev Prevents a contract from calling itself, directly or indirectly.
     * Calling a `nonReentrant` function from another `nonReentrant`
     * function is not supported. It is possible to prevent this from happening
     * by making the `nonReentrant` function external, and making it call a
     * `private` function that does the actual work.
     */
    modifier nonReentrant() {
        // On the first call to nonReentrant, _notEntered will be true
        require(_status != _ENTERED, "ReentrancyGuard: reentrant call");

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

        _;

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

File 6 of 19 : SafeMath.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/math/SafeMath.sol)

pragma solidity ^0.8.0;

// CAUTION
// This version of SafeMath should only be used with Solidity 0.8 or later,
// because it relies on the compiler's built in overflow checks.

/**
 * @dev Wrappers over Solidity's arithmetic operations.
 *
 * NOTE: `SafeMath` is generally not needed starting with Solidity 0.8, since the compiler
 * now has built in overflow checking.
 */
library SafeMath {
    /**
     * @dev Returns the addition of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            uint256 c = a + b;
            if (c < a) return (false, 0);
            return (true, c);
        }
    }

    /**
     * @dev Returns the substraction of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b > a) return (false, 0);
            return (true, a - b);
        }
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            // Gas optimization: this is cheaper than requiring 'a' not being zero, but the
            // benefit is lost if 'b' is also tested.
            // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
            if (a == 0) return (true, 0);
            uint256 c = a * b;
            if (c / a != b) return (false, 0);
            return (true, c);
        }
    }

    /**
     * @dev Returns the division of two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b == 0) return (false, 0);
            return (true, a / b);
        }
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b == 0) return (false, 0);
            return (true, a % b);
        }
    }

    /**
     * @dev Returns the addition of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `+` operator.
     *
     * Requirements:
     *
     * - Addition cannot overflow.
     */
    function add(uint256 a, uint256 b) internal pure returns (uint256) {
        return a + b;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting on
     * overflow (when the result is negative).
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(uint256 a, uint256 b) internal pure returns (uint256) {
        return a - b;
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `*` operator.
     *
     * Requirements:
     *
     * - Multiplication cannot overflow.
     */
    function mul(uint256 a, uint256 b) internal pure returns (uint256) {
        return a * b;
    }

    /**
     * @dev Returns the integer division of two unsigned integers, reverting on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator.
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b) internal pure returns (uint256) {
        return a / b;
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting when dividing by zero.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(uint256 a, uint256 b) internal pure returns (uint256) {
        return a % b;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting with custom message on
     * overflow (when the result is negative).
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {trySub}.
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        unchecked {
            require(b <= a, errorMessage);
            return a - b;
        }
    }

    /**
     * @dev Returns the integer division of two unsigned integers, reverting with custom message on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator. Note: this function uses a
     * `revert` opcode (which leaves remaining gas untouched) while Solidity
     * uses an invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        unchecked {
            require(b > 0, errorMessage);
            return a / b;
        }
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting with custom message when dividing by zero.
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {tryMod}.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        unchecked {
            require(b > 0, errorMessage);
            return a % b;
        }
    }
}

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

pragma solidity ^0.8.0;

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

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

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

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

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

File 8 of 19 : ContentMixin.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

abstract contract ContextMixin {
    function msgSender()
        internal
        view
        returns (address payable sender)
    {
        if (msg.sender == address(this)) {
            bytes memory array = msg.data;
            uint256 index = msg.data.length;
            assembly {
                // Load the 32 bytes word from memory with the address on the lower 20 bytes, and mask those.
                sender := and(
                    mload(add(array, index)),
                    0xffffffffffffffffffffffffffffffffffffffff
                )
            }
        } else {
            sender = payable(msg.sender);
        }
        return sender;
    }
}

File 9 of 19 : NativeMetaTransaction.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import {SafeMath} from  "@openzeppelin/contracts/utils/math/SafeMath.sol";
import {EIP712Base} from "./EIP712Base.sol";

contract NativeMetaTransaction is EIP712Base {
    using SafeMath for uint256;
    bytes32 private constant META_TRANSACTION_TYPEHASH = keccak256(
        bytes(
            "MetaTransaction(uint256 nonce,address from,bytes functionSignature)"
        )
    );
    event MetaTransactionExecuted(
        address userAddress,
        address payable relayerAddress,
        bytes functionSignature
    );
    mapping(address => uint256) nonces;

    /*
     * Meta transaction structure.
     * No point of including value field here as if user is doing value transfer then he has the funds to pay for gas
     * He should call the desired function directly in that case.
     */
    struct MetaTransaction {
        uint256 nonce;
        address from;
        bytes functionSignature;
    }

    function executeMetaTransaction(
        address userAddress,
        bytes memory functionSignature,
        bytes32 sigR,
        bytes32 sigS,
        uint8 sigV
    ) public payable returns (bytes memory) {
        MetaTransaction memory metaTx = MetaTransaction({
            nonce: nonces[userAddress],
            from: userAddress,
            functionSignature: functionSignature
        });

        require(
            verify(userAddress, metaTx, sigR, sigS, sigV),
            "Signer and signature do not match"
        );

        // increase nonce for user (to avoid re-use)
        nonces[userAddress] = nonces[userAddress].add(1);

        emit MetaTransactionExecuted(
            userAddress,
            payable(msg.sender),
            functionSignature
        );

        // Append userAddress and relayer address at the end to extract it from calling context
        (bool success, bytes memory returnData) = address(this).call(
            abi.encodePacked(functionSignature, userAddress)
        );
        require(success, "Function call not successful");

        return returnData;
    }

    function hashMetaTransaction(MetaTransaction memory metaTx)
        internal
        pure
        returns (bytes32)
    {
        return
            keccak256(
                abi.encode(
                    META_TRANSACTION_TYPEHASH,
                    metaTx.nonce,
                    metaTx.from,
                    keccak256(metaTx.functionSignature)
                )
            );
    }

    function getNonce(address user) public view returns (uint256 nonce) {
        nonce = nonces[user];
    }

    function verify(
        address signer,
        MetaTransaction memory metaTx,
        bytes32 sigR,
        bytes32 sigS,
        uint8 sigV
    ) internal view returns (bool) {
        require(signer != address(0), "NativeMetaTransaction: INVALID_SIGNER");
        return
            signer ==
            ecrecover(
                toTypedMessageHash(hashMetaTransaction(metaTx)),
                sigV,
                sigR,
                sigS
            );
    }
}

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

pragma solidity ^0.8.0;

import "../IERC721.sol";

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

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

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

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

pragma solidity ^0.8.0;

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

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

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

pragma solidity ^0.8.0;

import "./IERC165.sol";

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

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

pragma solidity ^0.8.0;

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

File 18 of 19 : EIP712Base.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import {Initializable} from "./Initializable.sol";

contract EIP712Base is Initializable {
    struct EIP712Domain {
        string name;
        string version;
        address verifyingContract;
        bytes32 salt;
    }

    string constant public ERC712_VERSION = "1";

    bytes32 internal constant EIP712_DOMAIN_TYPEHASH = keccak256(
        bytes(
            "EIP712Domain(string name,string version,address verifyingContract,bytes32 salt)"
        )
    );
    bytes32 internal domainSeperator;

    // supposed to be called once while initializing.
    // one of the contracts that inherits this contract follows proxy pattern
    // so it is not possible to do this in a constructor
    function _initializeEIP712(
        string memory name
    )
        internal
        initializer
    {
        _setDomainSeperator(name);
    }

    function _setDomainSeperator(string memory name) internal {
        domainSeperator = keccak256(
            abi.encode(
                EIP712_DOMAIN_TYPEHASH,
                keccak256(bytes(name)),
                keccak256(bytes(ERC712_VERSION)),
                address(this),
                bytes32(getChainId())
            )
        );
    }

    function getDomainSeperator() public view returns (bytes32) {
        return domainSeperator;
    }

    function getChainId() public view returns (uint256) {
        uint256 id;
        assembly {
            id := chainid()
        }
        return id;
    }

    /**
     * Accept message hash and returns hash message in EIP712 compatible form
     * So that it can be used to recover signer from signature signed using EIP712 formatted data
     * https://eips.ethereum.org/EIPS/eip-712
     * "\\x19" makes the encoding deterministic
     * "\\x01" is the version byte to make it compatible to EIP-191
     */
    function toTypedMessageHash(bytes32 messageHash)
        internal
        view
        returns (bytes32)
    {
        return
            keccak256(
                abi.encodePacked("\x19\x01", getDomainSeperator(), messageHash)
            );
    }
}

File 19 of 19 : Initializable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

contract Initializable {
    bool inited = false;

    modifier initializer() {
        require(!inited, "already inited");
        _;
        inited = true;
    }
}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"string","name":"__tokenURI","type":"string"},{"internalType":"address","name":"_developer","type":"address"}],"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":false,"internalType":"address","name":"userAddress","type":"address"},{"indexed":false,"internalType":"address payable","name":"relayerAddress","type":"address"},{"indexed":false,"internalType":"bytes","name":"functionSignature","type":"bytes"}],"name":"MetaTransactionExecuted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"ERC712_VERSION","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"contractURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"currentMode","outputs":[{"internalType":"enum HoQ.ReleaseMode","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"emergencyWithdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"userAddress","type":"address"},{"internalType":"bytes","name":"functionSignature","type":"bytes"},{"internalType":"bytes32","name":"sigR","type":"bytes32"},{"internalType":"bytes32","name":"sigS","type":"bytes32"},{"internalType":"uint8","name":"sigV","type":"uint8"}],"name":"executeMetaTransaction","outputs":[{"internalType":"bytes","name":"","type":"bytes"}],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"freezeMetaData","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getChainId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getDomainSeperator","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"}],"name":"getNonce","outputs":[{"internalType":"uint256","name":"nonce","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isMetaDataFrozen","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxPublicSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxWhitelistMintsPerWallet","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"num","type":"uint256"},{"internalType":"address","name":"_to","type":"address"}],"name":"mintMany","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"mintPriceOGWL","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mintPricePublic","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mintPriceWL","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"}],"name":"mintTo","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32[]","name":"merkleProof","type":"bytes32[]"},{"internalType":"uint256","name":"count","type":"uint256"}],"name":"ogWhitelistMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"count","type":"uint256"}],"name":"publicMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"uri","type":"string"}],"name":"setContractUri","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"enum HoQ.ReleaseMode","name":"newStatus","type":"uint8"}],"name":"setReleaseStatus","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_uri","type":"string"},{"internalType":"bool","name":"reveal","type":"bool"}],"name":"setTokenUri","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"merkleRoot","type":"bytes32"}],"name":"setWhitelistMerkleRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newMaxSupply","type":"uint256"},{"internalType":"uint256","name":"newMaxPublicSupply","type":"uint256"}],"name":"shrinkSupply","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32[]","name":"merkleProof","type":"bytes32[]"},{"internalType":"uint256","name":"count","type":"uint256"}],"name":"whitelistMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"whitelistMintedPerAddress","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawDeveloper","outputs":[],"stateMutability":"nonpayable","type":"function"}]

6007805460ff19908116909155612710600e55612648600f908155600560105560118054909216909155600260155566f8b0a10e47000060165566d529ae9e86000060178190556018556000601955637fffac01601a556301e1853e601b5560c060405260808190526e486f757365206f6620517565656e7360881b60a09081526200008f91601d91906200051d565b5060408051808201909152600380825262486f5160e81b6020909201918252620000bc91601e916200051d565b50348015620000ca57600080fd5b5060405162003c3738038062003c37833981016040819052620000ed91620005e0565b601d8054620000fc90620006f0565b80601f01602080910402602001604051908101604052809291908181526020018280546200012a90620006f0565b80156200017b5780601f106200014f576101008083540402835291602001916200017b565b820191906000526020600020905b8154815290600101906020018083116200015d57829003601f168201915b5050505050601e80546200018f90620006f0565b80601f0160208091040260200160405190810160405280929190818152602001828054620001bd90620006f0565b80156200020e5780601f10620001e2576101008083540402835291602001916200020e565b820191906000526020600020905b815481529060010190602001808311620001f057829003601f168201915b50508451620002289350600192506020860191506200051d565b5080516200023e9060029060208401906200051d565b50506001600055506200025a620002546200034a565b62000366565b6001600b558151620002749060129060208501906200051d565b50601480546001600160a01b0319166001600160a01b038316179055601b546200029f9042620006cb565b601a55601d8054620003429190620002b790620006f0565b80601f0160208091040260200160405190810160405280929190818152602001828054620002e590620006f0565b8015620003365780601f106200030a5761010080835404028352916020019162000336565b820191906000526020600020905b8154815290600101906020018083116200031857829003601f168201915b5050620003b892505050565b505062000743565b6000620003616200041c60201b62001e751760201c565b905090565b600a80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60075460ff1615620004015760405162461bcd60e51b815260206004820152600e60248201526d185b1c9958591e481a5b9a5d195960921b604482015260640160405180910390fd5b6200040c816200047b565b506007805460ff19166001179055565b6000333014156200047557600080368080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152505050503601516001600160a01b03169150620004789050565b50335b90565b6040518060800160405280604f815260200162003be8604f9139805160209182012082519282019290922060408051808201825260018152603160f81b90840152805180840194909452838101919091527fc89efdaa54c0f20c7adf612882df0950f5a951637e0307cdcb4c672f298b8bc660608401523060808401524660a0808501919091528151808503909101815260c090930190528151910120600855565b8280546200052b90620006f0565b90600052602060002090601f0160209004810192826200054f57600085556200059a565b82601f106200056a57805160ff19168380011785556200059a565b828001600101855582156200059a579182015b828111156200059a5782518255916020019190600101906200057d565b50620005a8929150620005ac565b5090565b5b80821115620005a85760008155600101620005ad565b80516001600160a01b0381168114620005db57600080fd5b919050565b60008060408385031215620005f3578182fd5b82516001600160401b03808211156200060a578384fd5b818501915085601f8301126200061e578384fd5b8151818111156200063357620006336200072d565b604051601f8201601f19908116603f011681019083821181831017156200065e576200065e6200072d565b816040528281526020935088848487010111156200067a578687fd5b8691505b828210156200069d57848201840151818301850152908301906200067e565b82821115620006ae57868484830101525b9550620006c0915050858201620005c3565b925050509250929050565b60008219821115620006eb57634e487b7160e01b81526011600452602481fd5b500190565b600181811c908216806200070557607f821691505b602082108114156200072757634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052604160045260246000fd5b61349580620007536000396000f3fe6080604052600436106102935760003560e01c806370a082311161015a578063bd32fb66116100c1578063d5abeb011161007a578063d5abeb0114610791578063db2e21bc146107a7578063e84cb873146107bc578063e8a3d485146107d1578063e985e9c5146107e6578063f2fde38b1461082f57600080fd5b8063bd32fb66146106ef578063c0130f2f1461070f578063c5231e0c14610725578063c87b56dd1461073b578063ccb4807b1461075b578063d0831c631461077b57600080fd5b80638da5cb5b116101135780638da5cb5b1461064d57806395d89b411461066b578063978e03e214610680578063a22cb46514610695578063b88d4fde146106b5578063b9454a41146106d557600080fd5b806370a0823114610584578063715018a6146105a457806373408bac146105b957806374897315146105e6578063755edd17146106065780638125092f1461062657600080fd5b806328eb9ca5116101fe5780633ccfd60b116101b75780633ccfd60b146104dc57806342842e0e146104f15780634f6ccce7146105115780635b809036146105315780636352211e146105515780636c680c831461057157600080fd5b806328eb9ca51461042d5780632904e6d91461044d5780632d0335ab146104605780632db11544146104965780632f745c59146104a95780633408e470146104c957600080fd5b806318160ddd1161025057806318160ddd146103895780631c18a062146103ac5780631f3e3281146103c257806320379ee5146103e257806323b872dd146103f757806326a74d8e1461041757600080fd5b806301ffc9a71461029857806306fdde03146102cd578063081812fc146102ef578063095ea7b3146103275780630c53c51c146103495780630f7e59701461035c575b600080fd5b3480156102a457600080fd5b506102b86102b3366004612e85565b61084f565b60405190151581526020015b60405180910390f35b3480156102d957600080fd5b506102e26108bc565b6040516102c49190613158565b3480156102fb57600080fd5b5061030f61030a366004612e6d565b61094e565b6040516001600160a01b0390911681526020016102c4565b34801561033357600080fd5b50610347610342366004612d97565b6109dc565b005b6102e2610357366004612d1f565b610b06565b34801561036857600080fd5b506102e2604051806040016040528060018152602001603160f81b81525081565b34801561039557600080fd5b50600054600019015b6040519081526020016102c4565b3480156103b857600080fd5b5061039e60165481565b3480156103ce57600080fd5b506103476103dd366004612f0e565b610cf0565b3480156103ee57600080fd5b5060085461039e565b34801561040357600080fd5b50610347610412366004612c56565b610daa565b34801561042357600080fd5b5061039e600f5481565b34801561043957600080fd5b50610347610448366004612ebd565b610db5565b61034761045b366004612dc0565b610e33565b34801561046c57600080fd5b5061039e61047b366004612c0a565b6001600160a01b031660009081526009602052604090205490565b6103476104a4366004612e6d565b611021565b3480156104b557600080fd5b5061039e6104c4366004612d97565b611128565b3480156104d557600080fd5b504661039e565b3480156104e857600080fd5b50610347611285565b3480156104fd57600080fd5b5061034761050c366004612c56565b61134c565b34801561051d57600080fd5b5061039e61052c366004612e6d565b611367565b34801561053d57600080fd5b5061034761054c366004612f72565b6113d0565b34801561055d57600080fd5b5061030f61056c366004612e6d565b611536565b61034761057f366004612dc0565b611548565b34801561059057600080fd5b5061039e61059f366004612c0a565b611612565b3480156105b057600080fd5b506103476116a3565b3480156105c557600080fd5b5061039e6105d4366004612c0a565b601c6020526000908152604090205481565b3480156105f257600080fd5b50610347610601366004612f50565b6116f8565b34801561061257600080fd5b50610347610621366004612c0a565b6117e1565b34801561063257600080fd5b50600c546106409060ff1681565b6040516102c4919061316b565b34801561065957600080fd5b50600a546001600160a01b031661030f565b34801561067757600080fd5b506102e261187c565b34801561068c57600080fd5b5061034761188b565b3480156106a157600080fd5b506103476106b0366004612cf6565b61194d565b3480156106c157600080fd5b506103476106d0366004612c91565b611a4f565b3480156106e157600080fd5b506011546102b89060ff1681565b3480156106fb57600080fd5b5061034761070a366004612e6d565b611a88565b34801561071b57600080fd5b5061039e60175481565b34801561073157600080fd5b5061039e60105481565b34801561074757600080fd5b506102e2610756366004612e6d565b611ad6565b34801561076757600080fd5b50610347610776366004612edc565b611b48565b34801561078757600080fd5b5061039e60185481565b34801561079d57600080fd5b5061039e600e5481565b3480156107b357600080fd5b50610347611ba4565b3480156107c857600080fd5b50610347611c6f565b3480156107dd57600080fd5b506102e2611d30565b3480156107f257600080fd5b506102b8610801366004612c24565b6001600160a01b03918216600090815260066020908152604080832093909416825291909152205460ff1690565b34801561083b57600080fd5b5061034761084a366004612c0a565b611dbe565b60006001600160e01b031982166380ac58cd60e01b148061088057506001600160e01b03198216635b5e139f60e01b145b8061089b57506001600160e01b0319821663780e9d6360e01b145b806108b657506301ffc9a760e01b6001600160e01b03198316145b92915050565b6060600180546108cb90613361565b80601f01602080910402602001604051908101604052809291908181526020018280546108f790613361565b80156109445780601f1061091957610100808354040283529160200191610944565b820191906000526020600020905b81548152906001019060200180831161092757829003601f168201915b5050505050905090565b600061095982611ed2565b6109c05760405162461bcd60e51b815260206004820152602d60248201527f455243373231413a20617070726f76656420717565727920666f72206e6f6e6560448201526c3c34b9ba32b73a103a37b5b2b760991b60648201526084015b60405180910390fd5b506000908152600560205260409020546001600160a01b031690565b60006109e782611536565b9050806001600160a01b0316836001600160a01b03161415610a565760405162461bcd60e51b815260206004820152602260248201527f455243373231413a20617070726f76616c20746f2063757272656e74206f776e60448201526132b960f11b60648201526084016109b7565b806001600160a01b0316610a68611ee7565b6001600160a01b03161480610a845750610a8481610801611ee7565b610af65760405162461bcd60e51b815260206004820152603960248201527f455243373231413a20617070726f76652063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f76656420666f7220616c6c0000000000000060648201526084016109b7565b610b01838383611ef6565b505050565b60408051606081810183526001600160a01b03881660008181526009602090815290859020548452830152918101869052610b448782878787611f52565b610b9a5760405162461bcd60e51b815260206004820152602160248201527f5369676e657220616e64207369676e617475726520646f206e6f74206d6174636044820152600d60fb1b60648201526084016109b7565b6001600160a01b038716600090815260096020526040902054610bbe906001612042565b6001600160a01b0388166000908152600960205260409081902091909155517f5845892132946850460bff5a0083f71031bc5bf9aadcd40f1de79423eac9b10b90610c0e90899033908a906130e6565b60405180910390a1600080306001600160a01b0316888a604051602001610c36929190613073565b60408051601f1981840301815290829052610c5091613057565b6000604051808303816000865af19150503d8060008114610c8d576040519150601f19603f3d011682016040523d82523d6000602084013e610c92565b606091505b509150915081610ce45760405162461bcd60e51b815260206004820152601c60248201527f46756e6374696f6e2063616c6c206e6f74207375636365737366756c0000000060448201526064016109b7565b98975050505050505050565b610cf8611ee7565b6001600160a01b0316610d13600a546001600160a01b031690565b6001600160a01b031614610d395760405162461bcd60e51b81526004016109b790613193565b60115460ff1615610d7e5760405162461bcd60e51b815260206004820152600f60248201526e36b2ba30b230ba3090333937bd32b760891b60448201526064016109b7565b8151610d91906012906020850190612adb565b508015610da657600c805460ff191660041790555b5050565b610b01838383612055565b610dbd611ee7565b6001600160a01b0316610dd8600a546001600160a01b031690565b6001600160a01b031614610dfe5760405162461bcd60e51b81526004016109b790613193565b600c805482919060ff19166001836004811115610e2b57634e487b7160e01b600052602160045260246000fd5b021790555050565b6002600c5460ff166004811115610e5a57634e487b7160e01b600052602160045260246000fd5b14610e775760405162461bcd60e51b81526004016109b79061321b565b6040516001600160601b03193360601b166020820152600090603401604051602081830303815290604052805190602001209050610eb8836013548361234c565b610eed5760405162461bcd60e51b8152602060048201526006602482015265139bdd0815d360d21b60448201526064016109b7565b601754610efa90836132ff565b3414610f365760405162461bcd60e51b815260206004820152600b60248201526a57726f6e6720707269636560a81b60448201526064016109b7565b601054336000908152601c6020526040902054610f549084906132d3565b1115610f925760405162461bcd60e51b815260206004820152600d60248201526c0ae9840aec2d8d8cae8409ac2f609b1b60448201526064016109b7565b600082118015610fa3575060088211155b610fbf5760405162461bcd60e51b81526004016109b79061327d565b610fc882612362565b336000908152601c602052604081208054849290610fe79084906132d3565b9091555050601554606490610ffc90346132ff565b61100691906132eb565b6019600082825461101791906132d3565b9091555050505050565b6003600c5460ff16600481111561104857634e487b7160e01b600052602160045260246000fd5b148061107857506004600c5460ff16600481111561107657634e487b7160e01b600052602160045260246000fd5b145b6110945760405162461bcd60e51b81526004016109b79061321b565b6016546110a190826132ff565b34146110bf5760405162461bcd60e51b81526004016109b79061327d565b6000811180156110d0575060088111155b6110ec5760405162461bcd60e51b81526004016109b79061327d565b6110f581612362565b60646015543461110591906132ff565b61110f91906132eb565b6019600082825461112091906132d3565b909155505050565b600061113383611612565b821061118c5760405162461bcd60e51b815260206004820152602260248201527f455243373231413a206f776e657220696e646578206f7574206f6620626f756e604482015261647360f01b60648201526084016109b7565b60008054908060015b83811015611225576000818152600360209081526040918290208251808401909352546001600160a01b038116808452600160a01b9091046001600160401b031691830191909152156111e757805192505b876001600160a01b0316836001600160a01b0316141561121c5786841415611215575093506108b692505050565b6001909301925b50600101611195565b5060405162461bcd60e51b815260206004820152602e60248201527f455243373231413a20756e61626c6520746f2067657420746f6b656e206f662060448201526d0deeedccae440c4f240d2dcc8caf60931b60648201526084016109b7565b6002600b5414156112a85760405162461bcd60e51b81526004016109b790613246565b6002600b556112b5611ee7565b6001600160a01b03166112d0600a546001600160a01b031690565b6001600160a01b0316146112f65760405162461bcd60e51b81526004016109b790613193565b600a546001600160a01b03166001600160a01b03166108fc6019544761131c919061331e565b6040518115909202916000818181858888f19350505050158015611344573d6000803e3d6000fd5b506001600b55565b610b0183838360405180602001604052806000815250611a4f565b600080546000190182106113c95760405162461bcd60e51b815260206004820152602360248201527f455243373231413a20676c6f62616c20696e646578206f7574206f6620626f756044820152626e647360e81b60648201526084016109b7565b5060010190565b6002600b5414156113f35760405162461bcd60e51b81526004016109b790613246565b6002600b55611400611ee7565b6001600160a01b031661141b600a546001600160a01b031690565b6001600160a01b0316146114415760405162461bcd60e51b81526004016109b790613193565b808210156114865760405162461bcd60e51b81526020600482015260126024820152714552523a207075626c6963203e206d61782160701b60448201526064016109b7565b816114946000546000190190565b11156114d75760405162461bcd60e51b81526020600482015260126024820152714552523a206d696e746564203e206e65772160701b60448201526064016109b7565b600e548211156115295760405162461bcd60e51b815260206004820152601d60248201527f4552523a2063616e7420696e637265617365206d617820737570706c7900000060448201526064016109b7565b600f55600e556001600b55565b6000611541826123d0565b5192915050565b6001600c5460ff16600481111561156f57634e487b7160e01b600052602160045260246000fd5b1461158c5760405162461bcd60e51b81526004016109b79061321b565b6040516001600160601b03193360601b1660208201526000906034016040516020818303038152906040528051906020012090506115cd836013548361234c565b6116055760405162461bcd60e51b8152602060048201526009602482015268139bdd0813d1c815d360ba1b60448201526064016109b7565b601854610efa90836132ff565b60006001600160a01b03821661167e5760405162461bcd60e51b815260206004820152602b60248201527f455243373231413a2062616c616e636520717565727920666f7220746865207a60448201526a65726f206164647265737360a81b60648201526084016109b7565b506001600160a01b03166000908152600460205260409020546001600160801b031690565b6116ab611ee7565b6001600160a01b03166116c6600a546001600160a01b031690565b6001600160a01b0316146116ec5760405162461bcd60e51b81526004016109b790613193565b6116f66000612510565b565b611700611ee7565b6001600160a01b031661171b600a546001600160a01b031690565b6001600160a01b0316146117415760405162461bcd60e51b81526004016109b790613193565b60088211156117825760405162461bcd60e51b815260206004820152600d60248201526c26b0bc101c102832b9102a2c1760991b60448201526064016109b7565b600e54826117936000546000190190565b61179d91906132d3565b106117d75760405162461bcd60e51b815260206004820152600a6024820152694d617820537570706c7960b01b60448201526064016109b7565b610da68183612562565b6117e9611ee7565b6001600160a01b0316611804600a546001600160a01b031690565b6001600160a01b03161461182a5760405162461bcd60e51b81526004016109b790613193565b600e54600054600019011061186e5760405162461bcd60e51b815260206004820152600a6024820152694d617820537570706c7960b01b60448201526064016109b7565b611879816001612562565b50565b6060600280546108cb90613361565b611893611ee7565b6001600160a01b03166118ae600a546001600160a01b031690565b6001600160a01b0316146118d45760405162461bcd60e51b81526004016109b790613193565b6004600c5460ff1660048111156118fb57634e487b7160e01b600052602160045260246000fd5b1461193e5760405162461bcd60e51b8152602060048201526013602482015272119c99595e994818599d195c881c995d99585b606a1b60448201526064016109b7565b6011805460ff19166001179055565b611955611ee7565b6001600160a01b0316826001600160a01b031614156119b65760405162461bcd60e51b815260206004820152601a60248201527f455243373231413a20617070726f766520746f2063616c6c657200000000000060448201526064016109b7565b80600660006119c3611ee7565b6001600160a01b03908116825260208083019390935260409182016000908120918716808252919093529120805460ff191692151592909217909155611a07611ee7565b6001600160a01b03167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051611a43911515815260200190565b60405180910390a35050565b611a5a848484612055565b611a668484848461257c565b611a825760405162461bcd60e51b81526004016109b7906131c8565b50505050565b611a90611ee7565b6001600160a01b0316611aab600a546001600160a01b031690565b6001600160a01b031614611ad15760405162461bcd60e51b81526004016109b790613193565b601355565b60606004600c5460ff166004811115611aff57634e487b7160e01b600052602160045260246000fd5b14611b2c576012604051602001611b1691906130a5565b6040516020818303038152906040529050919050565b6012611b3783612691565b604051602001611b169291906130b1565b611b50611ee7565b6001600160a01b0316611b6b600a546001600160a01b031690565b6001600160a01b031614611b915760405162461bcd60e51b81526004016109b790613193565b8051610da690600d906020840190612adb565b6002600b541415611bc75760405162461bcd60e51b81526004016109b790613246565b6002600b55611bd4611ee7565b6001600160a01b0316611bef600a546001600160a01b031690565b6001600160a01b031614611c155760405162461bcd60e51b81526004016109b790613193565b601a544211611c365760405162461bcd60e51b81526004016109b79061321b565b600a546040516001600160a01b03909116904780156108fc02916000818181858888f19350505050158015611344573d6000803e3d6000fd5b6002600b541415611c925760405162461bcd60e51b81526004016109b790613246565b6002600b55611c9f611ee7565b6014546001600160a01b03908116911614611ce75760405162461bcd60e51b8152602060048201526008602482015267646576206f6e6c7960c01b60448201526064016109b7565b6014546019546040516001600160a01b039092169181156108fc0291906000818181858888f19350505050158015611d23573d6000803e3d6000fd5b5060006019556001600b55565b600d8054611d3d90613361565b80601f0160208091040260200160405190810160405280929190818152602001828054611d6990613361565b8015611db65780601f10611d8b57610100808354040283529160200191611db6565b820191906000526020600020905b815481529060010190602001808311611d9957829003601f168201915b505050505081565b611dc6611ee7565b6001600160a01b0316611de1600a546001600160a01b031690565b6001600160a01b031614611e075760405162461bcd60e51b81526004016109b790613193565b6001600160a01b038116611e6c5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016109b7565b61187981612510565b600033301415611ecc57600080368080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152505050503601516001600160a01b03169150611ecf9050565b50335b90565b60008054821080156108b65750506001111590565b6000611ef1611e75565b905090565b60008281526005602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b60006001600160a01b038616611fb85760405162461bcd60e51b815260206004820152602560248201527f4e61746976654d6574615472616e73616374696f6e3a20494e56414c49445f5360448201526424a3a722a960d91b60648201526084016109b7565b6001611fcb611fc6876127aa565b612827565b6040805160008152602081018083529290925260ff851690820152606081018690526080810185905260a0016020604051602081039080840390855afa158015612019573d6000803e3d6000fd5b505050602060405103516001600160a01b0316866001600160a01b031614905095945050505050565b600061204e82846132d3565b9392505050565b6000612060826123d0565b9050600081600001516001600160a01b031661207a611ee7565b6001600160a01b031614806120af5750612092611ee7565b6001600160a01b03166120a48461094e565b6001600160a01b0316145b806120c3575081516120c390610801611ee7565b90508061212d5760405162461bcd60e51b815260206004820152603260248201527f455243373231413a207472616e736665722063616c6c6572206973206e6f74206044820152711bdddb995c881b9bdc88185c1c1c9bdd995960721b60648201526084016109b7565b846001600160a01b031682600001516001600160a01b0316146121a15760405162461bcd60e51b815260206004820152602660248201527f455243373231413a207472616e736665722066726f6d20696e636f72726563746044820152651037bbb732b960d11b60648201526084016109b7565b6001600160a01b0384166122055760405162461bcd60e51b815260206004820152602560248201527f455243373231413a207472616e7366657220746f20746865207a65726f206164604482015264647265737360d81b60648201526084016109b7565b6122156000848460000151611ef6565b6001600160a01b03858116600090815260046020908152604080832080546001600160801b03198082166001600160801b03928316600019018316179092558986168086528386208054938416938316600190810190931693909317909255888552600390935281842080546001600160e01b031916909117600160a01b426001600160401b0316021790559086018083529120549091166123025760005481101561230257825160008281526003602090815260409091208054918601516001600160401b0316600160a01b026001600160e01b03199092166001600160a01b03909316929092171790555b5082846001600160a01b0316866001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45b5050505050565b6000826123598584612857565b14949350505050565b600f54816123736000546000190190565b61237d91906132d3565b11156123bf5760405162461bcd60e51b81526020600482015260116024820152704d6178205075626c696320537570706c7960781b60448201526064016109b7565b6118796123ca611ee7565b82612562565b60408051808201909152600080825260208201526123ed82611ed2565b61244c5760405162461bcd60e51b815260206004820152602a60248201527f455243373231413a206f776e657220717565727920666f72206e6f6e657869736044820152693a32b73a103a37b5b2b760b11b60648201526084016109b7565b6001825b8181106124ae576000818152600360209081526040918290208251808401909352546001600160a01b038116808452600160a01b9091046001600160401b031691830191909152156124a457949350505050565b5060001901612450565b505060405162461bcd60e51b815260206004820152602f60248201527f455243373231413a20756e61626c6520746f2064657465726d696e652074686560448201526e1037bbb732b91037b3103a37b5b2b760891b60648201526084016109b7565b600a80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b610da6828260405180602001604052806000815250612911565b60006001600160a01b0384163b1561268557836001600160a01b031663150b7a026125a5611ee7565b8786866040518563ffffffff1660e01b81526004016125c7949392919061311b565b602060405180830381600087803b1580156125e157600080fd5b505af1925050508015612611575060408051601f3d908101601f1916820190925261260e91810190612ea1565b60015b61266b573d80801561263f576040519150601f19603f3d011682016040523d82523d6000602084013e612644565b606091505b5080516126635760405162461bcd60e51b81526004016109b7906131c8565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050612689565b5060015b949350505050565b6060816126b55750506040805180820190915260018152600360fc1b602082015290565b8160005b81156126df57806126c98161339c565b91506126d89050600a836132eb565b91506126b9565b6000816001600160401b0381111561270757634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015612731576020820181803683370190505b5090505b84156126895761274660018361331e565b9150612753600a866133b0565b61275e9060306132d3565b60f81b81838151811061278157634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a9053506127a3600a866132eb565b9450612735565b600060405180608001604052806043815260200161341d604391398051602091820120835184830151604080870151805190860120905161280a950193845260208401929092526001600160a01b03166040830152606082015260800190565b604051602081830303815290604052805190602001209050919050565b600061283260085490565b60405161190160f01b602082015260228101919091526042810183905260620161280a565b600081815b845181101561290957600085828151811061288757634e487b7160e01b600052603260045260246000fd5b602002602001015190508083116128c95760408051602081018590529081018290526060016040516020818303038152906040528051906020012092506128f6565b60408051602081018390529081018490526060016040516020818303038152906040528051906020012092505b50806129018161339c565b91505061285c565b509392505050565b610b0183838360016000546001600160a01b03851661297c5760405162461bcd60e51b815260206004820152602160248201527f455243373231413a206d696e7420746f20746865207a65726f206164647265736044820152607360f81b60648201526084016109b7565b836129da5760405162461bcd60e51b815260206004820152602860248201527f455243373231413a207175616e74697479206d75737420626520677265617465604482015267072207468616e20360c41b60648201526084016109b7565b6001600160a01b03851660008181526004602090815260408083208054600160801b6001600160801b031982166001600160801b039283168c01831690811782900483168c01909216021790558483526003909152812080546001600160e01b031916909217600160a01b426001600160401b0316021790915581905b85811015612ad25760405182906001600160a01b038916906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a48315612ac657612aaa600088848861257c565b612ac65760405162461bcd60e51b81526004016109b7906131c8565b60019182019101612a57565b50600055612345565b828054612ae790613361565b90600052602060002090601f016020900481019282612b095760008555612b4f565b82601f10612b2257805160ff1916838001178555612b4f565b82800160010185558215612b4f579182015b82811115612b4f578251825591602001919060010190612b34565b50612b5b929150612b5f565b5090565b5b80821115612b5b5760008155600101612b60565b80356001600160a01b0381168114612b8b57600080fd5b919050565b80358015158114612b8b57600080fd5b600082601f830112612bb0578081fd5b81356001600160401b03811115612bc957612bc96133f0565b612bdc601f8201601f19166020016132a3565b818152846020838601011115612bf0578283fd5b816020850160208301379081016020019190915292915050565b600060208284031215612c1b578081fd5b61204e82612b74565b60008060408385031215612c36578081fd5b612c3f83612b74565b9150612c4d60208401612b74565b90509250929050565b600080600060608486031215612c6a578081fd5b612c7384612b74565b9250612c8160208501612b74565b9150604084013590509250925092565b60008060008060808587031215612ca6578081fd5b612caf85612b74565b9350612cbd60208601612b74565b92506040850135915060608501356001600160401b03811115612cde578182fd5b612cea87828801612ba0565b91505092959194509250565b60008060408385031215612d08578182fd5b612d1183612b74565b9150612c4d60208401612b90565b600080600080600060a08688031215612d36578081fd5b612d3f86612b74565b945060208601356001600160401b03811115612d59578182fd5b612d6588828901612ba0565b9450506040860135925060608601359150608086013560ff81168114612d89578182fd5b809150509295509295909350565b60008060408385031215612da9578182fd5b612db283612b74565b946020939093013593505050565b60008060408385031215612dd2578182fd5b82356001600160401b0380821115612de8578384fd5b818501915085601f830112612dfb578384fd5b8135602082821115612e0f57612e0f6133f0565b8160051b9250612e208184016132a3565b8281528181019085830185870184018b1015612e3a578889fd5b8896505b84871015612e5c578035835260019690960195918301918301612e3e565b509997909101359750505050505050565b600060208284031215612e7e578081fd5b5035919050565b600060208284031215612e96578081fd5b813561204e81613406565b600060208284031215612eb2578081fd5b815161204e81613406565b600060208284031215612ece578081fd5b81356005811061204e578182fd5b600060208284031215612eed578081fd5b81356001600160401b03811115612f02578182fd5b61268984828501612ba0565b60008060408385031215612f20578182fd5b82356001600160401b03811115612f35578283fd5b612f4185828601612ba0565b925050612c4d60208401612b90565b60008060408385031215612f62578182fd5b82359150612c4d60208401612b74565b60008060408385031215612f84578182fd5b50508035926020909101359150565b60008151808452612fab816020860160208601613335565b601f01601f19169290920160200192915050565b8054600090600181811c9080831680612fd957607f831692505b6020808410821415612ff957634e487b7160e01b86526022600452602486fd5b81801561300d576001811461301e5761304b565b60ff1986168952848901965061304b565b60008881526020902060005b868110156130435781548b82015290850190830161302a565b505084890196505b50505050505092915050565b60008251613069818460208701613335565b9190910192915050565b60008351613085818460208801613335565b60609390931b6001600160601b0319169190920190815260140192915050565b600061204e8284612fbf565b60006130bd8285612fbf565b83516130cd818360208801613335565b64173539b7b760d91b9101908152600501949350505050565b6001600160a01b0384811682528316602082015260606040820181905260009061311290830184612f93565b95945050505050565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061314e90830184612f93565b9695505050505050565b60208152600061204e6020830184612f93565b602081016005831061318d57634e487b7160e01b600052602160045260246000fd5b91905290565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526033908201527f455243373231413a207472616e7366657220746f206e6f6e204552433732315260408201527232b1b2b4bb32b91034b6b83632b6b2b73a32b960691b606082015260800190565b602080825260119082015270125d09dcc81b9bdd081d1a5b59481e595d607a1b604082015260600190565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b6020808252600c908201526b15dc9bdb99c8185b5bdd5b9d60a21b604082015260600190565b604051601f8201601f191681016001600160401b03811182821017156132cb576132cb6133f0565b604052919050565b600082198211156132e6576132e66133c4565b500190565b6000826132fa576132fa6133da565b500490565b6000816000190483118215151615613319576133196133c4565b500290565b600082821015613330576133306133c4565b500390565b60005b83811015613350578181015183820152602001613338565b83811115611a825750506000910152565b600181811c9082168061337557607f821691505b6020821081141561339657634e487b7160e01b600052602260045260246000fd5b50919050565b60006000198214156113c9576113c96133c4565b6000826133bf576133bf6133da565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160e01b03198116811461187957600080fdfe4d6574615472616e73616374696f6e2875696e74323536206e6f6e63652c616464726573732066726f6d2c62797465732066756e6374696f6e5369676e617475726529a26469706673582212201cec0260589c87360a717417043ee4727c231722643a1a0dee6bf004fbe362b464736f6c63430008040033454950373132446f6d61696e28737472696e67206e616d652c737472696e672076657273696f6e2c6164647265737320766572696679696e67436f6e74726163742c627974657333322073616c74290000000000000000000000000000000000000000000000000000000000000040000000000000000000000000dfdd5379d99c9fbd71206152420627c7ad6d74ee0000000000000000000000000000000000000000000000000000000000000035697066733a2f2f516d64793361394d38615261466e747263737348374a394b5977323635614131444866444541704e4a46697166520000000000000000000000

Deployed Bytecode

0x6080604052600436106102935760003560e01c806370a082311161015a578063bd32fb66116100c1578063d5abeb011161007a578063d5abeb0114610791578063db2e21bc146107a7578063e84cb873146107bc578063e8a3d485146107d1578063e985e9c5146107e6578063f2fde38b1461082f57600080fd5b8063bd32fb66146106ef578063c0130f2f1461070f578063c5231e0c14610725578063c87b56dd1461073b578063ccb4807b1461075b578063d0831c631461077b57600080fd5b80638da5cb5b116101135780638da5cb5b1461064d57806395d89b411461066b578063978e03e214610680578063a22cb46514610695578063b88d4fde146106b5578063b9454a41146106d557600080fd5b806370a0823114610584578063715018a6146105a457806373408bac146105b957806374897315146105e6578063755edd17146106065780638125092f1461062657600080fd5b806328eb9ca5116101fe5780633ccfd60b116101b75780633ccfd60b146104dc57806342842e0e146104f15780634f6ccce7146105115780635b809036146105315780636352211e146105515780636c680c831461057157600080fd5b806328eb9ca51461042d5780632904e6d91461044d5780632d0335ab146104605780632db11544146104965780632f745c59146104a95780633408e470146104c957600080fd5b806318160ddd1161025057806318160ddd146103895780631c18a062146103ac5780631f3e3281146103c257806320379ee5146103e257806323b872dd146103f757806326a74d8e1461041757600080fd5b806301ffc9a71461029857806306fdde03146102cd578063081812fc146102ef578063095ea7b3146103275780630c53c51c146103495780630f7e59701461035c575b600080fd5b3480156102a457600080fd5b506102b86102b3366004612e85565b61084f565b60405190151581526020015b60405180910390f35b3480156102d957600080fd5b506102e26108bc565b6040516102c49190613158565b3480156102fb57600080fd5b5061030f61030a366004612e6d565b61094e565b6040516001600160a01b0390911681526020016102c4565b34801561033357600080fd5b50610347610342366004612d97565b6109dc565b005b6102e2610357366004612d1f565b610b06565b34801561036857600080fd5b506102e2604051806040016040528060018152602001603160f81b81525081565b34801561039557600080fd5b50600054600019015b6040519081526020016102c4565b3480156103b857600080fd5b5061039e60165481565b3480156103ce57600080fd5b506103476103dd366004612f0e565b610cf0565b3480156103ee57600080fd5b5060085461039e565b34801561040357600080fd5b50610347610412366004612c56565b610daa565b34801561042357600080fd5b5061039e600f5481565b34801561043957600080fd5b50610347610448366004612ebd565b610db5565b61034761045b366004612dc0565b610e33565b34801561046c57600080fd5b5061039e61047b366004612c0a565b6001600160a01b031660009081526009602052604090205490565b6103476104a4366004612e6d565b611021565b3480156104b557600080fd5b5061039e6104c4366004612d97565b611128565b3480156104d557600080fd5b504661039e565b3480156104e857600080fd5b50610347611285565b3480156104fd57600080fd5b5061034761050c366004612c56565b61134c565b34801561051d57600080fd5b5061039e61052c366004612e6d565b611367565b34801561053d57600080fd5b5061034761054c366004612f72565b6113d0565b34801561055d57600080fd5b5061030f61056c366004612e6d565b611536565b61034761057f366004612dc0565b611548565b34801561059057600080fd5b5061039e61059f366004612c0a565b611612565b3480156105b057600080fd5b506103476116a3565b3480156105c557600080fd5b5061039e6105d4366004612c0a565b601c6020526000908152604090205481565b3480156105f257600080fd5b50610347610601366004612f50565b6116f8565b34801561061257600080fd5b50610347610621366004612c0a565b6117e1565b34801561063257600080fd5b50600c546106409060ff1681565b6040516102c4919061316b565b34801561065957600080fd5b50600a546001600160a01b031661030f565b34801561067757600080fd5b506102e261187c565b34801561068c57600080fd5b5061034761188b565b3480156106a157600080fd5b506103476106b0366004612cf6565b61194d565b3480156106c157600080fd5b506103476106d0366004612c91565b611a4f565b3480156106e157600080fd5b506011546102b89060ff1681565b3480156106fb57600080fd5b5061034761070a366004612e6d565b611a88565b34801561071b57600080fd5b5061039e60175481565b34801561073157600080fd5b5061039e60105481565b34801561074757600080fd5b506102e2610756366004612e6d565b611ad6565b34801561076757600080fd5b50610347610776366004612edc565b611b48565b34801561078757600080fd5b5061039e60185481565b34801561079d57600080fd5b5061039e600e5481565b3480156107b357600080fd5b50610347611ba4565b3480156107c857600080fd5b50610347611c6f565b3480156107dd57600080fd5b506102e2611d30565b3480156107f257600080fd5b506102b8610801366004612c24565b6001600160a01b03918216600090815260066020908152604080832093909416825291909152205460ff1690565b34801561083b57600080fd5b5061034761084a366004612c0a565b611dbe565b60006001600160e01b031982166380ac58cd60e01b148061088057506001600160e01b03198216635b5e139f60e01b145b8061089b57506001600160e01b0319821663780e9d6360e01b145b806108b657506301ffc9a760e01b6001600160e01b03198316145b92915050565b6060600180546108cb90613361565b80601f01602080910402602001604051908101604052809291908181526020018280546108f790613361565b80156109445780601f1061091957610100808354040283529160200191610944565b820191906000526020600020905b81548152906001019060200180831161092757829003601f168201915b5050505050905090565b600061095982611ed2565b6109c05760405162461bcd60e51b815260206004820152602d60248201527f455243373231413a20617070726f76656420717565727920666f72206e6f6e6560448201526c3c34b9ba32b73a103a37b5b2b760991b60648201526084015b60405180910390fd5b506000908152600560205260409020546001600160a01b031690565b60006109e782611536565b9050806001600160a01b0316836001600160a01b03161415610a565760405162461bcd60e51b815260206004820152602260248201527f455243373231413a20617070726f76616c20746f2063757272656e74206f776e60448201526132b960f11b60648201526084016109b7565b806001600160a01b0316610a68611ee7565b6001600160a01b03161480610a845750610a8481610801611ee7565b610af65760405162461bcd60e51b815260206004820152603960248201527f455243373231413a20617070726f76652063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f76656420666f7220616c6c0000000000000060648201526084016109b7565b610b01838383611ef6565b505050565b60408051606081810183526001600160a01b03881660008181526009602090815290859020548452830152918101869052610b448782878787611f52565b610b9a5760405162461bcd60e51b815260206004820152602160248201527f5369676e657220616e64207369676e617475726520646f206e6f74206d6174636044820152600d60fb1b60648201526084016109b7565b6001600160a01b038716600090815260096020526040902054610bbe906001612042565b6001600160a01b0388166000908152600960205260409081902091909155517f5845892132946850460bff5a0083f71031bc5bf9aadcd40f1de79423eac9b10b90610c0e90899033908a906130e6565b60405180910390a1600080306001600160a01b0316888a604051602001610c36929190613073565b60408051601f1981840301815290829052610c5091613057565b6000604051808303816000865af19150503d8060008114610c8d576040519150601f19603f3d011682016040523d82523d6000602084013e610c92565b606091505b509150915081610ce45760405162461bcd60e51b815260206004820152601c60248201527f46756e6374696f6e2063616c6c206e6f74207375636365737366756c0000000060448201526064016109b7565b98975050505050505050565b610cf8611ee7565b6001600160a01b0316610d13600a546001600160a01b031690565b6001600160a01b031614610d395760405162461bcd60e51b81526004016109b790613193565b60115460ff1615610d7e5760405162461bcd60e51b815260206004820152600f60248201526e36b2ba30b230ba3090333937bd32b760891b60448201526064016109b7565b8151610d91906012906020850190612adb565b508015610da657600c805460ff191660041790555b5050565b610b01838383612055565b610dbd611ee7565b6001600160a01b0316610dd8600a546001600160a01b031690565b6001600160a01b031614610dfe5760405162461bcd60e51b81526004016109b790613193565b600c805482919060ff19166001836004811115610e2b57634e487b7160e01b600052602160045260246000fd5b021790555050565b6002600c5460ff166004811115610e5a57634e487b7160e01b600052602160045260246000fd5b14610e775760405162461bcd60e51b81526004016109b79061321b565b6040516001600160601b03193360601b166020820152600090603401604051602081830303815290604052805190602001209050610eb8836013548361234c565b610eed5760405162461bcd60e51b8152602060048201526006602482015265139bdd0815d360d21b60448201526064016109b7565b601754610efa90836132ff565b3414610f365760405162461bcd60e51b815260206004820152600b60248201526a57726f6e6720707269636560a81b60448201526064016109b7565b601054336000908152601c6020526040902054610f549084906132d3565b1115610f925760405162461bcd60e51b815260206004820152600d60248201526c0ae9840aec2d8d8cae8409ac2f609b1b60448201526064016109b7565b600082118015610fa3575060088211155b610fbf5760405162461bcd60e51b81526004016109b79061327d565b610fc882612362565b336000908152601c602052604081208054849290610fe79084906132d3565b9091555050601554606490610ffc90346132ff565b61100691906132eb565b6019600082825461101791906132d3565b9091555050505050565b6003600c5460ff16600481111561104857634e487b7160e01b600052602160045260246000fd5b148061107857506004600c5460ff16600481111561107657634e487b7160e01b600052602160045260246000fd5b145b6110945760405162461bcd60e51b81526004016109b79061321b565b6016546110a190826132ff565b34146110bf5760405162461bcd60e51b81526004016109b79061327d565b6000811180156110d0575060088111155b6110ec5760405162461bcd60e51b81526004016109b79061327d565b6110f581612362565b60646015543461110591906132ff565b61110f91906132eb565b6019600082825461112091906132d3565b909155505050565b600061113383611612565b821061118c5760405162461bcd60e51b815260206004820152602260248201527f455243373231413a206f776e657220696e646578206f7574206f6620626f756e604482015261647360f01b60648201526084016109b7565b60008054908060015b83811015611225576000818152600360209081526040918290208251808401909352546001600160a01b038116808452600160a01b9091046001600160401b031691830191909152156111e757805192505b876001600160a01b0316836001600160a01b0316141561121c5786841415611215575093506108b692505050565b6001909301925b50600101611195565b5060405162461bcd60e51b815260206004820152602e60248201527f455243373231413a20756e61626c6520746f2067657420746f6b656e206f662060448201526d0deeedccae440c4f240d2dcc8caf60931b60648201526084016109b7565b6002600b5414156112a85760405162461bcd60e51b81526004016109b790613246565b6002600b556112b5611ee7565b6001600160a01b03166112d0600a546001600160a01b031690565b6001600160a01b0316146112f65760405162461bcd60e51b81526004016109b790613193565b600a546001600160a01b03166001600160a01b03166108fc6019544761131c919061331e565b6040518115909202916000818181858888f19350505050158015611344573d6000803e3d6000fd5b506001600b55565b610b0183838360405180602001604052806000815250611a4f565b600080546000190182106113c95760405162461bcd60e51b815260206004820152602360248201527f455243373231413a20676c6f62616c20696e646578206f7574206f6620626f756044820152626e647360e81b60648201526084016109b7565b5060010190565b6002600b5414156113f35760405162461bcd60e51b81526004016109b790613246565b6002600b55611400611ee7565b6001600160a01b031661141b600a546001600160a01b031690565b6001600160a01b0316146114415760405162461bcd60e51b81526004016109b790613193565b808210156114865760405162461bcd60e51b81526020600482015260126024820152714552523a207075626c6963203e206d61782160701b60448201526064016109b7565b816114946000546000190190565b11156114d75760405162461bcd60e51b81526020600482015260126024820152714552523a206d696e746564203e206e65772160701b60448201526064016109b7565b600e548211156115295760405162461bcd60e51b815260206004820152601d60248201527f4552523a2063616e7420696e637265617365206d617820737570706c7900000060448201526064016109b7565b600f55600e556001600b55565b6000611541826123d0565b5192915050565b6001600c5460ff16600481111561156f57634e487b7160e01b600052602160045260246000fd5b1461158c5760405162461bcd60e51b81526004016109b79061321b565b6040516001600160601b03193360601b1660208201526000906034016040516020818303038152906040528051906020012090506115cd836013548361234c565b6116055760405162461bcd60e51b8152602060048201526009602482015268139bdd0813d1c815d360ba1b60448201526064016109b7565b601854610efa90836132ff565b60006001600160a01b03821661167e5760405162461bcd60e51b815260206004820152602b60248201527f455243373231413a2062616c616e636520717565727920666f7220746865207a60448201526a65726f206164647265737360a81b60648201526084016109b7565b506001600160a01b03166000908152600460205260409020546001600160801b031690565b6116ab611ee7565b6001600160a01b03166116c6600a546001600160a01b031690565b6001600160a01b0316146116ec5760405162461bcd60e51b81526004016109b790613193565b6116f66000612510565b565b611700611ee7565b6001600160a01b031661171b600a546001600160a01b031690565b6001600160a01b0316146117415760405162461bcd60e51b81526004016109b790613193565b60088211156117825760405162461bcd60e51b815260206004820152600d60248201526c26b0bc101c102832b9102a2c1760991b60448201526064016109b7565b600e54826117936000546000190190565b61179d91906132d3565b106117d75760405162461bcd60e51b815260206004820152600a6024820152694d617820537570706c7960b01b60448201526064016109b7565b610da68183612562565b6117e9611ee7565b6001600160a01b0316611804600a546001600160a01b031690565b6001600160a01b03161461182a5760405162461bcd60e51b81526004016109b790613193565b600e54600054600019011061186e5760405162461bcd60e51b815260206004820152600a6024820152694d617820537570706c7960b01b60448201526064016109b7565b611879816001612562565b50565b6060600280546108cb90613361565b611893611ee7565b6001600160a01b03166118ae600a546001600160a01b031690565b6001600160a01b0316146118d45760405162461bcd60e51b81526004016109b790613193565b6004600c5460ff1660048111156118fb57634e487b7160e01b600052602160045260246000fd5b1461193e5760405162461bcd60e51b8152602060048201526013602482015272119c99595e994818599d195c881c995d99585b606a1b60448201526064016109b7565b6011805460ff19166001179055565b611955611ee7565b6001600160a01b0316826001600160a01b031614156119b65760405162461bcd60e51b815260206004820152601a60248201527f455243373231413a20617070726f766520746f2063616c6c657200000000000060448201526064016109b7565b80600660006119c3611ee7565b6001600160a01b03908116825260208083019390935260409182016000908120918716808252919093529120805460ff191692151592909217909155611a07611ee7565b6001600160a01b03167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051611a43911515815260200190565b60405180910390a35050565b611a5a848484612055565b611a668484848461257c565b611a825760405162461bcd60e51b81526004016109b7906131c8565b50505050565b611a90611ee7565b6001600160a01b0316611aab600a546001600160a01b031690565b6001600160a01b031614611ad15760405162461bcd60e51b81526004016109b790613193565b601355565b60606004600c5460ff166004811115611aff57634e487b7160e01b600052602160045260246000fd5b14611b2c576012604051602001611b1691906130a5565b6040516020818303038152906040529050919050565b6012611b3783612691565b604051602001611b169291906130b1565b611b50611ee7565b6001600160a01b0316611b6b600a546001600160a01b031690565b6001600160a01b031614611b915760405162461bcd60e51b81526004016109b790613193565b8051610da690600d906020840190612adb565b6002600b541415611bc75760405162461bcd60e51b81526004016109b790613246565b6002600b55611bd4611ee7565b6001600160a01b0316611bef600a546001600160a01b031690565b6001600160a01b031614611c155760405162461bcd60e51b81526004016109b790613193565b601a544211611c365760405162461bcd60e51b81526004016109b79061321b565b600a546040516001600160a01b03909116904780156108fc02916000818181858888f19350505050158015611344573d6000803e3d6000fd5b6002600b541415611c925760405162461bcd60e51b81526004016109b790613246565b6002600b55611c9f611ee7565b6014546001600160a01b03908116911614611ce75760405162461bcd60e51b8152602060048201526008602482015267646576206f6e6c7960c01b60448201526064016109b7565b6014546019546040516001600160a01b039092169181156108fc0291906000818181858888f19350505050158015611d23573d6000803e3d6000fd5b5060006019556001600b55565b600d8054611d3d90613361565b80601f0160208091040260200160405190810160405280929190818152602001828054611d6990613361565b8015611db65780601f10611d8b57610100808354040283529160200191611db6565b820191906000526020600020905b815481529060010190602001808311611d9957829003601f168201915b505050505081565b611dc6611ee7565b6001600160a01b0316611de1600a546001600160a01b031690565b6001600160a01b031614611e075760405162461bcd60e51b81526004016109b790613193565b6001600160a01b038116611e6c5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016109b7565b61187981612510565b600033301415611ecc57600080368080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152505050503601516001600160a01b03169150611ecf9050565b50335b90565b60008054821080156108b65750506001111590565b6000611ef1611e75565b905090565b60008281526005602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b60006001600160a01b038616611fb85760405162461bcd60e51b815260206004820152602560248201527f4e61746976654d6574615472616e73616374696f6e3a20494e56414c49445f5360448201526424a3a722a960d91b60648201526084016109b7565b6001611fcb611fc6876127aa565b612827565b6040805160008152602081018083529290925260ff851690820152606081018690526080810185905260a0016020604051602081039080840390855afa158015612019573d6000803e3d6000fd5b505050602060405103516001600160a01b0316866001600160a01b031614905095945050505050565b600061204e82846132d3565b9392505050565b6000612060826123d0565b9050600081600001516001600160a01b031661207a611ee7565b6001600160a01b031614806120af5750612092611ee7565b6001600160a01b03166120a48461094e565b6001600160a01b0316145b806120c3575081516120c390610801611ee7565b90508061212d5760405162461bcd60e51b815260206004820152603260248201527f455243373231413a207472616e736665722063616c6c6572206973206e6f74206044820152711bdddb995c881b9bdc88185c1c1c9bdd995960721b60648201526084016109b7565b846001600160a01b031682600001516001600160a01b0316146121a15760405162461bcd60e51b815260206004820152602660248201527f455243373231413a207472616e736665722066726f6d20696e636f72726563746044820152651037bbb732b960d11b60648201526084016109b7565b6001600160a01b0384166122055760405162461bcd60e51b815260206004820152602560248201527f455243373231413a207472616e7366657220746f20746865207a65726f206164604482015264647265737360d81b60648201526084016109b7565b6122156000848460000151611ef6565b6001600160a01b03858116600090815260046020908152604080832080546001600160801b03198082166001600160801b03928316600019018316179092558986168086528386208054938416938316600190810190931693909317909255888552600390935281842080546001600160e01b031916909117600160a01b426001600160401b0316021790559086018083529120549091166123025760005481101561230257825160008281526003602090815260409091208054918601516001600160401b0316600160a01b026001600160e01b03199092166001600160a01b03909316929092171790555b5082846001600160a01b0316866001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45b5050505050565b6000826123598584612857565b14949350505050565b600f54816123736000546000190190565b61237d91906132d3565b11156123bf5760405162461bcd60e51b81526020600482015260116024820152704d6178205075626c696320537570706c7960781b60448201526064016109b7565b6118796123ca611ee7565b82612562565b60408051808201909152600080825260208201526123ed82611ed2565b61244c5760405162461bcd60e51b815260206004820152602a60248201527f455243373231413a206f776e657220717565727920666f72206e6f6e657869736044820152693a32b73a103a37b5b2b760b11b60648201526084016109b7565b6001825b8181106124ae576000818152600360209081526040918290208251808401909352546001600160a01b038116808452600160a01b9091046001600160401b031691830191909152156124a457949350505050565b5060001901612450565b505060405162461bcd60e51b815260206004820152602f60248201527f455243373231413a20756e61626c6520746f2064657465726d696e652074686560448201526e1037bbb732b91037b3103a37b5b2b760891b60648201526084016109b7565b600a80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b610da6828260405180602001604052806000815250612911565b60006001600160a01b0384163b1561268557836001600160a01b031663150b7a026125a5611ee7565b8786866040518563ffffffff1660e01b81526004016125c7949392919061311b565b602060405180830381600087803b1580156125e157600080fd5b505af1925050508015612611575060408051601f3d908101601f1916820190925261260e91810190612ea1565b60015b61266b573d80801561263f576040519150601f19603f3d011682016040523d82523d6000602084013e612644565b606091505b5080516126635760405162461bcd60e51b81526004016109b7906131c8565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050612689565b5060015b949350505050565b6060816126b55750506040805180820190915260018152600360fc1b602082015290565b8160005b81156126df57806126c98161339c565b91506126d89050600a836132eb565b91506126b9565b6000816001600160401b0381111561270757634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015612731576020820181803683370190505b5090505b84156126895761274660018361331e565b9150612753600a866133b0565b61275e9060306132d3565b60f81b81838151811061278157634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a9053506127a3600a866132eb565b9450612735565b600060405180608001604052806043815260200161341d604391398051602091820120835184830151604080870151805190860120905161280a950193845260208401929092526001600160a01b03166040830152606082015260800190565b604051602081830303815290604052805190602001209050919050565b600061283260085490565b60405161190160f01b602082015260228101919091526042810183905260620161280a565b600081815b845181101561290957600085828151811061288757634e487b7160e01b600052603260045260246000fd5b602002602001015190508083116128c95760408051602081018590529081018290526060016040516020818303038152906040528051906020012092506128f6565b60408051602081018390529081018490526060016040516020818303038152906040528051906020012092505b50806129018161339c565b91505061285c565b509392505050565b610b0183838360016000546001600160a01b03851661297c5760405162461bcd60e51b815260206004820152602160248201527f455243373231413a206d696e7420746f20746865207a65726f206164647265736044820152607360f81b60648201526084016109b7565b836129da5760405162461bcd60e51b815260206004820152602860248201527f455243373231413a207175616e74697479206d75737420626520677265617465604482015267072207468616e20360c41b60648201526084016109b7565b6001600160a01b03851660008181526004602090815260408083208054600160801b6001600160801b031982166001600160801b039283168c01831690811782900483168c01909216021790558483526003909152812080546001600160e01b031916909217600160a01b426001600160401b0316021790915581905b85811015612ad25760405182906001600160a01b038916906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a48315612ac657612aaa600088848861257c565b612ac65760405162461bcd60e51b81526004016109b7906131c8565b60019182019101612a57565b50600055612345565b828054612ae790613361565b90600052602060002090601f016020900481019282612b095760008555612b4f565b82601f10612b2257805160ff1916838001178555612b4f565b82800160010185558215612b4f579182015b82811115612b4f578251825591602001919060010190612b34565b50612b5b929150612b5f565b5090565b5b80821115612b5b5760008155600101612b60565b80356001600160a01b0381168114612b8b57600080fd5b919050565b80358015158114612b8b57600080fd5b600082601f830112612bb0578081fd5b81356001600160401b03811115612bc957612bc96133f0565b612bdc601f8201601f19166020016132a3565b818152846020838601011115612bf0578283fd5b816020850160208301379081016020019190915292915050565b600060208284031215612c1b578081fd5b61204e82612b74565b60008060408385031215612c36578081fd5b612c3f83612b74565b9150612c4d60208401612b74565b90509250929050565b600080600060608486031215612c6a578081fd5b612c7384612b74565b9250612c8160208501612b74565b9150604084013590509250925092565b60008060008060808587031215612ca6578081fd5b612caf85612b74565b9350612cbd60208601612b74565b92506040850135915060608501356001600160401b03811115612cde578182fd5b612cea87828801612ba0565b91505092959194509250565b60008060408385031215612d08578182fd5b612d1183612b74565b9150612c4d60208401612b90565b600080600080600060a08688031215612d36578081fd5b612d3f86612b74565b945060208601356001600160401b03811115612d59578182fd5b612d6588828901612ba0565b9450506040860135925060608601359150608086013560ff81168114612d89578182fd5b809150509295509295909350565b60008060408385031215612da9578182fd5b612db283612b74565b946020939093013593505050565b60008060408385031215612dd2578182fd5b82356001600160401b0380821115612de8578384fd5b818501915085601f830112612dfb578384fd5b8135602082821115612e0f57612e0f6133f0565b8160051b9250612e208184016132a3565b8281528181019085830185870184018b1015612e3a578889fd5b8896505b84871015612e5c578035835260019690960195918301918301612e3e565b509997909101359750505050505050565b600060208284031215612e7e578081fd5b5035919050565b600060208284031215612e96578081fd5b813561204e81613406565b600060208284031215612eb2578081fd5b815161204e81613406565b600060208284031215612ece578081fd5b81356005811061204e578182fd5b600060208284031215612eed578081fd5b81356001600160401b03811115612f02578182fd5b61268984828501612ba0565b60008060408385031215612f20578182fd5b82356001600160401b03811115612f35578283fd5b612f4185828601612ba0565b925050612c4d60208401612b90565b60008060408385031215612f62578182fd5b82359150612c4d60208401612b74565b60008060408385031215612f84578182fd5b50508035926020909101359150565b60008151808452612fab816020860160208601613335565b601f01601f19169290920160200192915050565b8054600090600181811c9080831680612fd957607f831692505b6020808410821415612ff957634e487b7160e01b86526022600452602486fd5b81801561300d576001811461301e5761304b565b60ff1986168952848901965061304b565b60008881526020902060005b868110156130435781548b82015290850190830161302a565b505084890196505b50505050505092915050565b60008251613069818460208701613335565b9190910192915050565b60008351613085818460208801613335565b60609390931b6001600160601b0319169190920190815260140192915050565b600061204e8284612fbf565b60006130bd8285612fbf565b83516130cd818360208801613335565b64173539b7b760d91b9101908152600501949350505050565b6001600160a01b0384811682528316602082015260606040820181905260009061311290830184612f93565b95945050505050565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061314e90830184612f93565b9695505050505050565b60208152600061204e6020830184612f93565b602081016005831061318d57634e487b7160e01b600052602160045260246000fd5b91905290565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526033908201527f455243373231413a207472616e7366657220746f206e6f6e204552433732315260408201527232b1b2b4bb32b91034b6b83632b6b2b73a32b960691b606082015260800190565b602080825260119082015270125d09dcc81b9bdd081d1a5b59481e595d607a1b604082015260600190565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b6020808252600c908201526b15dc9bdb99c8185b5bdd5b9d60a21b604082015260600190565b604051601f8201601f191681016001600160401b03811182821017156132cb576132cb6133f0565b604052919050565b600082198211156132e6576132e66133c4565b500190565b6000826132fa576132fa6133da565b500490565b6000816000190483118215151615613319576133196133c4565b500290565b600082821015613330576133306133c4565b500390565b60005b83811015613350578181015183820152602001613338565b83811115611a825750506000910152565b600181811c9082168061337557607f821691505b6020821081141561339657634e487b7160e01b600052602260045260246000fd5b50919050565b60006000198214156113c9576113c96133c4565b6000826133bf576133bf6133da565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160e01b03198116811461187957600080fdfe4d6574615472616e73616374696f6e2875696e74323536206e6f6e63652c616464726573732066726f6d2c62797465732066756e6374696f6e5369676e617475726529a26469706673582212201cec0260589c87360a717417043ee4727c231722643a1a0dee6bf004fbe362b464736f6c63430008040033

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

0000000000000000000000000000000000000000000000000000000000000040000000000000000000000000dfdd5379d99c9fbd71206152420627c7ad6d74ee0000000000000000000000000000000000000000000000000000000000000035697066733a2f2f516d64793361394d38615261466e747263737348374a394b5977323635614131444866444541704e4a46697166520000000000000000000000

-----Decoded View---------------
Arg [0] : __tokenURI (string): ipfs://Qmdy3a9M8aRaFntrcssH7J9KYw265aA1DHfDEApNJFiqfR
Arg [1] : _developer (address): 0xDfDd5379D99C9FbD71206152420627c7aD6D74ee

-----Encoded View---------------
5 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000040
Arg [1] : 000000000000000000000000dfdd5379d99c9fbd71206152420627c7ad6d74ee
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000035
Arg [3] : 697066733a2f2f516d64793361394d38615261466e747263737348374a394b59
Arg [4] : 77323635614131444866444541704e4a46697166520000000000000000000000


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.