ETH Price: $3,387.19 (-1.43%)
Gas: 3 Gwei

Token

ApesGenerationX (APE)
 

Overview

Max Total Supply

3,059 APE

Holders

331

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Balance
30 APE
0xbf11349b63c396fc77f525ebb3c06d6a01deed84
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:
ApesGenerationX

Compiler Version
v0.8.4+commit.c7e474f2

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion
File 1 of 14 : ApesGenerationX.sol
// SPDX-License-Identifier: MIT
// Creator: Chiru Labs

pragma solidity ^0.8.0;

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

error ExceedMaxMint(); /// @notice Thrown when user attempts to exceed the mint limit per wallet.
error ExceedMaxSupply(); /// @notice Thrown when mint operation exceeds ApesGenerationX max supply.
error AntiBot(); /// @notice Thrown when called by a contract.
error ValueTooLow(); /// @notice Thrown when users sends wrong ETH value.
error NotTokenOwner(); /// @notice Thrown when user operates an NFT from someone else.
error NotWhitelisted(); /// @notice Thrown when user is not whitelisted.
error SaleNotStartedOrEnded(); /// @notice Thrown if the the sale has not started or have already ended.

interface IApesGenerationXToken {
    function onTokenTransfer(address from, address to) external;
}

contract ApesGenerationX is Ownable, ERC721A, ReentrancyGuard {
    using Strings for uint256;

    bytes32 public merkelRoot;

    IApesGenerationXToken public apesGenerationXToken;

    uint256 public maxSupply = 8887; //first index is 0
    uint256 public preSalePrice = 0.0 ether;
    uint256 public mintPrice = 0.0 ether;

    bool public revealed = false;

    string public baseURI;
    string public unrevealedURI;

    uint256 public preSaleStartTime;
    uint256 public saleStartTime;
    uint256 public revealStartTime;

    constructor() ERC721A("ApesGenerationX", "APE") {
        _safeMint(msg.sender, 1);
    }

    function mintPreSale(uint256 tokenAmt, bytes32[] calldata proof)
        external
        payable
    {
        if (msg.sender != tx.origin) revert AntiBot(); // Anti-bot measure

        if (msg.value < tokenAmt * preSalePrice) revert ValueTooLow();

        uint256 currentTime = block.timestamp;
        if (currentTime < preSaleStartTime || currentTime > saleStartTime)
            revert SaleNotStartedOrEnded();

        if (!isWhitelisted(msg.sender, proof)) revert NotWhitelisted();

        if (tokenAmt > 10) revert ExceedMaxMint();

        if (totalSupply() + tokenAmt > maxSupply) revert ExceedMaxSupply();

        _safeMint(msg.sender, tokenAmt);
    }

    function mint(uint256 tokenAmt) external payable {
        if (msg.sender != tx.origin) revert AntiBot(); // Anti-bot measure

        if (msg.value < tokenAmt * mintPrice) revert ValueTooLow();

        uint256 currentTime = block.timestamp;
        if (saleStartTime == 0 || currentTime < saleStartTime)
            revert SaleNotStartedOrEnded();

        if (tokenAmt > 10) revert ExceedMaxMint();

        if (totalSupply() + tokenAmt > maxSupply) revert ExceedMaxSupply();

        _safeMint(msg.sender, tokenAmt);
    }

    function burnApesGenerationX(uint256 tokenId) public {
        if (msg.sender != ownerOf(tokenId)) revert NotTokenOwner();
        _burn(tokenId);
    }

    function withdraw() external onlyOwner nonReentrant {
        (bool success, ) = msg.sender.call{value: address(this).balance}("");
        require(success, "Transfer failed.");
    }

    function _beforeTokenTransfers(
        address from,
        address to,
        uint256 startTokenId,
        uint256 quantity
    ) internal override {
        if (address(apesGenerationXToken).code.length != 0)
            apesGenerationXToken.onTokenTransfer(from, to);
        super._beforeTokenTransfers(from, to, startTokenId, quantity);
    }

    function setTimeConfig(
        uint256 _preSaleStartTime,
        uint256 _saleStartTime,
        uint256 _revealStartTime
    ) external onlyOwner {
        preSaleStartTime = _preSaleStartTime;
        saleStartTime = _saleStartTime;
        revealStartTime = _revealStartTime;
    }

    function setPreSaleMintPrice(uint256 _price) external onlyOwner {
        preSalePrice = _price;
    }

    function setMintPrice(uint256 _price) external onlyOwner {
        mintPrice = _price;
    }

    function setMerkelRoot(bytes32 _merkelRoot) external onlyOwner {
        merkelRoot = _merkelRoot;
    }

    function setApesGenerationXToken(address _apesGenerationX)
        public
        onlyOwner
    {
        apesGenerationXToken = IApesGenerationXToken(_apesGenerationX);
    }

    function setBaseURI(string memory newBaseURI) public onlyOwner {
        baseURI = newBaseURI;
    }

    function setUnrevealedURI(string memory newUnrevealedURI) public onlyOwner {
        unrevealedURI = newUnrevealedURI;
    }

    function tokenURI(uint256 id) public view override returns (string memory) {
        uint256 currentTime = block.timestamp;
        if (
            revealStartTime == 0 ||
            currentTime < revealStartTime ||
            bytes(baseURI).length == 0
        ) return unrevealedURI;
        else return string(abi.encodePacked(baseURI, id.toString(), ".json"));
    }

    function isWhitelisted(address user, bytes32[] calldata proof)
        public
        view
        returns (bool)
    {
        bytes32 sender = keccak256(abi.encodePacked(user));
        return MerkleProof.verify(proof, merkelRoot, sender);
    }
}

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

pragma solidity ^0.8.0;

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

error ApprovalCallerNotOwnerNorApproved();
error ApprovalQueryForNonexistentToken();
error ApproveToCaller();
error ApprovalToCurrentOwner();
error BalanceQueryForZeroAddress();
error MintedQueryForZeroAddress();
error BurnedQueryForZeroAddress();
error AuxQueryForZeroAddress();
error MintToZeroAddress();
error MintZeroQuantity();
error OwnerIndexOutOfBounds();
error OwnerQueryForNonexistentToken();
error TokenIndexOutOfBounds();
error TransferCallerNotOwnerNorApproved();
error TransferFromIncorrectOwner();
error TransferToNonERC721ReceiverImplementer();
error TransferToZeroAddress();
error URIQueryForNonexistentToken();

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

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

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

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

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

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

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

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

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

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

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

    /**
     * @dev See {IERC721Enumerable-totalSupply}.
     */
    function totalSupply() public view returns (uint256) {
        // Counter underflow is impossible as _burnCounter cannot be incremented
        // more than _currentIndex times
        unchecked {
            return _currentIndex - _burnCounter;
        }
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        _approve(to, tokenId, owner);
    }

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

        return _tokenApprovals[tokenId];
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

            uint256 updatedIndex = startTokenId;

            for (uint256 i; i < quantity; i++) {
                emit Transfer(address(0), to, updatedIndex);
                if (safe && !_checkOnERC721Received(address(0), to, updatedIndex, _data)) {
                    revert TransferToNonERC721ReceiverImplementer();
                }
                updatedIndex++;
            }

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

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

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

        if (!isApprovedOrOwner) revert TransferCallerNotOwnerNorApproved();
        if (prevOwnership.addr != from) revert TransferFromIncorrectOwner();
        if (to == address(0)) revert TransferToZeroAddress();

        _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 will suffice for checking _exists(nextTokenId),
                // as a burned slot cannot contain the zero address.
                if (nextTokenId < _currentIndex) {
                    _ownerships[nextTokenId].addr = prevOwnership.addr;
                    _ownerships[nextTokenId].startTimestamp = prevOwnership.startTimestamp;
                }
            }
        }

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

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

        _beforeTokenTransfers(prevOwnership.addr, address(0), 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[prevOwnership.addr].balance -= 1;
            _addressData[prevOwnership.addr].numberBurned += 1;

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

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

        emit Transfer(prevOwnership.addr, address(0), tokenId);
        _afterTokenTransfers(prevOwnership.addr, address(0), tokenId, 1);

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

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

    /**
     * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target 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 TransferToNonERC721ReceiverImplementer();
                } 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.
     * And also called before burning one token.
     *
     * startTokenId - the first token id to be transferred
     * quantity - the amount to be transferred
     *
     * Calling conditions:
     *
     * - When `from` and `to` are both non-zero, `from`'s `tokenId` will be
     * transferred to `to`.
     * - When `from` is zero, `tokenId` will be minted for `to`.
     * - When `to` is zero, `tokenId` will be burned by `from`.
     * - `from` and `to` are never both zero.
     */
    function _beforeTokenTransfers(
        address from,
        address to,
        uint256 startTokenId,
        uint256 quantity
    ) internal virtual {}

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

File 3 of 14 : 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 14 : 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 5 of 14 : 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 6 of 14 : MerkleProof.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (utils/cryptography/MerkleProof.sol)

pragma solidity ^0.8.0;

/**
 * @dev These functions deal with verification of Merkle Trees proofs.
 *
 * The proofs can be generated using the JavaScript library
 * https://github.com/miguelmota/merkletreejs[merkletreejs].
 * Note: the hashing algorithm should be keccak256 and pair sorting should be enabled.
 *
 * See `test/utils/cryptography/MerkleProof.test.js` for some examples.
 *
 * WARNING: You should avoid using leaf values that are 64 bytes long prior to
 * hashing, or use a hash function other than keccak256 for hashing leaves.
 * This is because the concatenation of a sorted pair of internal nodes in
 * the merkle tree could be reinterpreted as a leaf value.
 */
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 Merkle tree up
     * from `leaf` using `proof`. A `proof` is valid if and only if the rebuilt
     * hash matches the root of the tree. When processing the proof, the pairs
     * of leafs & pre-images are assumed to be sorted.
     *
     * _Available since v4.4._
     */
    function processProof(bytes32[] memory proof, bytes32 leaf) internal pure returns (bytes32) {
        bytes32 computedHash = leaf;
        for (uint256 i = 0; i < proof.length; i++) {
            bytes32 proofElement = proof[i];
            if (computedHash <= proofElement) {
                // Hash(current computed hash + current element of the proof)
                computedHash = _efficientHash(computedHash, proofElement);
            } else {
                // Hash(current element of the proof + current computed hash)
                computedHash = _efficientHash(proofElement, computedHash);
            }
        }
        return computedHash;
    }

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

File 9 of 14 : 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 10 of 14 : IERC721Enumerable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC721/extensions/IERC721Enumerable.sol)

pragma solidity ^0.8.0;

import "../IERC721.sol";

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

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

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

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

pragma solidity ^0.8.1;

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

        return account.code.length > 0;
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

Contract Security Audit

Contract ABI

[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"AntiBot","type":"error"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"ApprovalToCurrentOwner","type":"error"},{"inputs":[],"name":"ApproveToCaller","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"ExceedMaxMint","type":"error"},{"inputs":[],"name":"ExceedMaxSupply","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[],"name":"NotTokenOwner","type":"error"},{"inputs":[],"name":"NotWhitelisted","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"SaleNotStartedOrEnded","type":"error"},{"inputs":[],"name":"TransferCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"TransferFromIncorrectOwner","type":"error"},{"inputs":[],"name":"TransferToNonERC721ReceiverImplementer","type":"error"},{"inputs":[],"name":"TransferToZeroAddress","type":"error"},{"inputs":[],"name":"ValueTooLow","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":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":"apesGenerationXToken","outputs":[{"internalType":"contract IApesGenerationXToken","name":"","type":"address"}],"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":"baseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"burnApesGenerationX","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"},{"internalType":"bytes32[]","name":"proof","type":"bytes32[]"}],"name":"isWhitelisted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"merkelRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenAmt","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenAmt","type":"uint256"},{"internalType":"bytes32[]","name":"proof","type":"bytes32[]"}],"name":"mintPreSale","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"mintPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"preSalePrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"preSaleStartTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"revealStartTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"revealed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"saleStartTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_apesGenerationX","type":"address"}],"name":"setApesGenerationXToken","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":"newBaseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_merkelRoot","type":"bytes32"}],"name":"setMerkelRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_price","type":"uint256"}],"name":"setMintPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_price","type":"uint256"}],"name":"setPreSaleMintPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_preSaleStartTime","type":"uint256"},{"internalType":"uint256","name":"_saleStartTime","type":"uint256"},{"internalType":"uint256","name":"_revealStartTime","type":"uint256"}],"name":"setTimeConfig","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"newUnrevealedURI","type":"string"}],"name":"setUnrevealedURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unrevealedURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60806040526122b7600c556000600d556000600e556000600f60006101000a81548160ff0219169083151502179055503480156200003c57600080fd5b506040518060400160405280600f81526020017f4170657347656e65726174696f6e5800000000000000000000000000000000008152506040518060400160405280600381526020017f4150450000000000000000000000000000000000000000000000000000000000815250620000c9620000bd6200011e60201b60201c565b6200012660201b60201c565b8160039080519060200190620000e192919062000853565b508060049080519060200190620000fa92919062000853565b505050600160098190555062000118336001620001ea60201b60201c565b62000b76565b600033905090565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b6200020c8282604051806020016040528060008152506200021060201b60201c565b5050565b6200022583838360016200022a60201b60201c565b505050565b60006001549050600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff16141562000299576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000841415620002d5576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b620002ea60008683876200058060201b60201c565b83600660008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160008282829054906101000a900467ffffffffffffffff160192506101000a81548167ffffffffffffffff021916908367ffffffffffffffff16021790555083600660008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160088282829054906101000a900467ffffffffffffffff160192506101000a81548167ffffffffffffffff021916908367ffffffffffffffff160217905550846005600083815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550426005600083815260200190815260200160002060000160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff160217905550600081905060005b858110156200055b57818773ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a48380156200050d57506200050b60008884886200067560201b60201c565b155b1562000545576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8180600101925050808060010191505062000488565b5080600181905550506200057960008683876200082460201b60201c565b5050505050565b6000600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163b146200065657600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16635f68f67785856040518363ffffffff1660e01b815260040162000621929190620009a9565b600060405180830381600087803b1580156200063c57600080fd5b505af115801562000651573d6000803e3d6000fd5b505050505b6200066f848484846200082a60201b62001e401760201c565b50505050565b6000620006a38473ffffffffffffffffffffffffffffffffffffffff166200083060201b62001e461760201c565b1562000817578373ffffffffffffffffffffffffffffffffffffffff1663150b7a02620006d56200011e60201b60201c565b8786866040518563ffffffff1660e01b8152600401620006f99493929190620009d6565b602060405180830381600087803b1580156200071457600080fd5b505af19250505080156200074857506040513d601f19601f820116820180604052508101906200074591906200091a565b60015b620007c6573d80600081146200077b576040519150601f19603f3d011682016040523d82523d6000602084013e62000780565b606091505b50600081511415620007be576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149150506200081c565b600190505b949350505050565b50505050565b50505050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b828054620008619062000ae6565b90600052602060002090601f016020900481019282620008855760008555620008d1565b82601f10620008a057805160ff1916838001178555620008d1565b82800160010185558215620008d1579182015b82811115620008d0578251825591602001919060010190620008b3565b5b509050620008e09190620008e4565b5090565b5b80821115620008ff576000816000905550600101620008e5565b5090565b600081519050620009148162000b5c565b92915050565b6000602082840312156200092d57600080fd5b60006200093d8482850162000903565b91505092915050565b620009518162000a46565b82525050565b6000620009648262000a2a565b62000970818562000a35565b93506200098281856020860162000ab0565b6200098d8162000b4b565b840191505092915050565b620009a38162000aa6565b82525050565b6000604082019050620009c0600083018562000946565b620009cf602083018462000946565b9392505050565b6000608082019050620009ed600083018762000946565b620009fc602083018662000946565b62000a0b604083018562000998565b818103606083015262000a1f818462000957565b905095945050505050565b600081519050919050565b600082825260208201905092915050565b600062000a538262000a86565b9050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b60005b8381101562000ad057808201518184015260208101905062000ab3565b8381111562000ae0576000848401525b50505050565b6000600282049050600182168062000aff57607f821691505b6020821081141562000b165762000b1562000b1c565b5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6000601f19601f8301169050919050565b62000b678162000a5a565b811462000b7357600080fd5b50565b6144ab8062000b866000396000f3fe60806040526004361061023b5760003560e01c806370a082311161012e578063b88d4fde116100ab578063e757c17d1161006f578063e757c17d14610831578063e985e9c51461085c578063f2fde38b14610899578063f4a0a528146108c2578063fe2c7fee146108eb5761023b565b8063b88d4fde1461074c578063c5df8d1914610775578063c87b56dd1461079e578063cc0bef84146107db578063d5abeb01146108065761023b565b80639e6b2c5b116100f25780639e6b2c5b14610697578063a0712d68146106b3578063a22cb465146106cf578063b2ad2c65146106f8578063b5e115f5146107235761023b565b806370a08231146105c2578063715018a6146105ff5780638da5cb5b1461061657806395d89b41146106415780639b3b762d1461066c5761023b565b806342842e0e116101bc5780635a23dd99116101805780635a23dd99146104c75780636352211e146105045780636817c76c146105415780636c0360eb1461056c5780637035bf18146105975761023b565b806342842e0e146103f8578063465c3c3114610421578063518302271461044a57806355f804b31461047557806356a45f871461049e5761023b565b806318160ddd1161020357806318160ddd146103395780631cbaee2d1461036457806323b872dd1461038f5780633b9ee7e4146103b85780633ccfd60b146103e15761023b565b806301ffc9a71461024057806306d65af31461027d57806306fdde03146102a8578063081812fc146102d3578063095ea7b314610310575b600080fd5b34801561024c57600080fd5b5061026760048036038101906102629190613898565b610914565b6040516102749190613d40565b60405180910390f35b34801561028957600080fd5b506102926109f6565b60405161029f9190613e33565b60405180910390f35b3480156102b457600080fd5b506102bd6109fc565b6040516102ca9190613d91565b60405180910390f35b3480156102df57600080fd5b506102fa60048036038101906102f5919061392b565b610a8e565b6040516103079190613cb0565b60405180910390f35b34801561031c57600080fd5b5061033760048036038101906103329190613833565b610b0a565b005b34801561034557600080fd5b5061034e610c15565b60405161035b9190613e33565b60405180910390f35b34801561037057600080fd5b50610379610c23565b6040516103869190613e33565b60405180910390f35b34801561039b57600080fd5b506103b660048036038101906103b191906136d5565b610c29565b005b3480156103c457600080fd5b506103df60048036038101906103da919061392b565b610c39565b005b3480156103ed57600080fd5b506103f6610cbf565b005b34801561040457600080fd5b5061041f600480360381019061041a91906136d5565b610e40565b005b34801561042d57600080fd5b5061044860048036038101906104439190613670565b610e60565b005b34801561045657600080fd5b5061045f610f20565b60405161046c9190613d40565b60405180910390f35b34801561048157600080fd5b5061049c600480360381019061049791906138ea565b610f33565b005b3480156104aa57600080fd5b506104c560048036038101906104c0919061392b565b610fc9565b005b3480156104d357600080fd5b506104ee60048036038101906104e9919061379f565b611042565b6040516104fb9190613d40565b60405180910390f35b34801561051057600080fd5b5061052b6004803603810190610526919061392b565b6110c6565b6040516105389190613cb0565b60405180910390f35b34801561054d57600080fd5b506105566110dc565b6040516105639190613e33565b60405180910390f35b34801561057857600080fd5b506105816110e2565b60405161058e9190613d91565b60405180910390f35b3480156105a357600080fd5b506105ac611170565b6040516105b99190613d91565b60405180910390f35b3480156105ce57600080fd5b506105e960048036038101906105e49190613670565b6111fe565b6040516105f69190613e33565b60405180910390f35b34801561060b57600080fd5b506106146112ce565b005b34801561062257600080fd5b5061062b611356565b6040516106389190613cb0565b60405180910390f35b34801561064d57600080fd5b5061065661137f565b6040516106639190613d91565b60405180910390f35b34801561067857600080fd5b50610681611411565b60405161068e9190613d5b565b60405180910390f35b6106b160048036038101906106ac9190613954565b611417565b005b6106cd60048036038101906106c8919061392b565b6115ea565b005b3480156106db57600080fd5b506106f660048036038101906106f191906137f7565b61177b565b005b34801561070457600080fd5b5061070d6118f3565b60405161071a9190613d76565b60405180910390f35b34801561072f57600080fd5b5061074a6004803603810190610745919061386f565b611919565b005b34801561075857600080fd5b50610773600480360381019061076e9190613724565b61199f565b005b34801561078157600080fd5b5061079c600480360381019061079791906139ac565b6119f2565b005b3480156107aa57600080fd5b506107c560048036038101906107c0919061392b565b611a88565b6040516107d29190613d91565b60405180910390f35b3480156107e757600080fd5b506107f0611b86565b6040516107fd9190613e33565b60405180910390f35b34801561081257600080fd5b5061081b611b8c565b6040516108289190613e33565b60405180910390f35b34801561083d57600080fd5b50610846611b92565b6040516108539190613e33565b60405180910390f35b34801561086857600080fd5b50610883600480360381019061087e9190613699565b611b98565b6040516108909190613d40565b60405180910390f35b3480156108a557600080fd5b506108c060048036038101906108bb9190613670565b611c2c565b005b3480156108ce57600080fd5b506108e960048036038101906108e4919061392b565b611d24565b005b3480156108f757600080fd5b50610912600480360381019061090d91906138ea565b611daa565b005b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806109df57507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b806109ef57506109ee82611e69565b5b9050919050565b60125481565b606060038054610a0b90614131565b80601f0160208091040260200160405190810160405280929190818152602001828054610a3790614131565b8015610a845780601f10610a5957610100808354040283529160200191610a84565b820191906000526020600020905b815481529060010190602001808311610a6757829003601f168201915b5050505050905090565b6000610a9982611ed3565b610acf576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6007600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610b15826110c6565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610b7d576040517f943f7b8c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610b9c611f0e565b73ffffffffffffffffffffffffffffffffffffffff1614158015610bce5750610bcc81610bc7611f0e565b611b98565b155b15610c05576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610c10838383611f16565b505050565b600060025460015403905090565b60135481565b610c34838383611fc8565b505050565b610c41611f0e565b73ffffffffffffffffffffffffffffffffffffffff16610c5f611356565b73ffffffffffffffffffffffffffffffffffffffff1614610cb5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610cac90613dd3565b60405180910390fd5b80600d8190555050565b610cc7611f0e565b73ffffffffffffffffffffffffffffffffffffffff16610ce5611356565b73ffffffffffffffffffffffffffffffffffffffff1614610d3b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d3290613dd3565b60405180910390fd5b60026009541415610d81576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d7890613e13565b60405180910390fd5b600260098190555060003373ffffffffffffffffffffffffffffffffffffffff1647604051610daf90613c9b565b60006040518083038185875af1925050503d8060008114610dec576040519150601f19603f3d011682016040523d82523d6000602084013e610df1565b606091505b5050905080610e35576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e2c90613df3565b60405180910390fd5b506001600981905550565b610e5b8383836040518060200160405280600081525061199f565b505050565b610e68611f0e565b73ffffffffffffffffffffffffffffffffffffffff16610e86611356565b73ffffffffffffffffffffffffffffffffffffffff1614610edc576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ed390613dd3565b60405180910390fd5b80600b60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b600f60009054906101000a900460ff1681565b610f3b611f0e565b73ffffffffffffffffffffffffffffffffffffffff16610f59611356565b73ffffffffffffffffffffffffffffffffffffffff1614610faf576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fa690613dd3565b60405180910390fd5b8060109080519060200190610fc59291906133f2565b5050565b610fd2816110c6565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614611036576040517f59dc379f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61103f816124b9565b50565b600080846040516020016110569190613c51565b6040516020818303038152906040528051906020012090506110bc848480806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f82011690508083019250505050505050600a548361285d565b9150509392505050565b60006110d182612874565b600001519050919050565b600e5481565b601080546110ef90614131565b80601f016020809104026020016040519081016040528092919081815260200182805461111b90614131565b80156111685780601f1061113d57610100808354040283529160200191611168565b820191906000526020600020905b81548152906001019060200180831161114b57829003601f168201915b505050505081565b6011805461117d90614131565b80601f01602080910402602001604051908101604052809291908181526020018280546111a990614131565b80156111f65780601f106111cb576101008083540402835291602001916111f6565b820191906000526020600020905b8154815290600101906020018083116111d957829003601f168201915b505050505081565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611266576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600660008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160009054906101000a900467ffffffffffffffff1667ffffffffffffffff169050919050565b6112d6611f0e565b73ffffffffffffffffffffffffffffffffffffffff166112f4611356565b73ffffffffffffffffffffffffffffffffffffffff161461134a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161134190613dd3565b60405180910390fd5b6113546000612af0565b565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60606004805461138e90614131565b80601f01602080910402602001604051908101604052809291908181526020018280546113ba90614131565b80156114075780601f106113dc57610100808354040283529160200191611407565b820191906000526020600020905b8154815290600101906020018083116113ea57829003601f168201915b5050505050905090565b600a5481565b3273ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161461147c576040517f629f2dce00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600d548361148a9190613fbf565b3410156114c3576040517f5321e1df00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60004290506012548110806114d9575060135481115b15611510576040517fbcd776d600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61151b338484611042565b611551576040517f584a793800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600a84111561158c576040517fa16631ad00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600c5484611598610c15565b6115a29190613f38565b11156115da576040517f1e186f7200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6115e43385612bb4565b50505050565b3273ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161461164f576040517f629f2dce00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600e548161165d9190613fbf565b341015611696576040517f5321e1df00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000429050600060135414806116ad575060135481105b156116e4576040517fbcd776d600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600a82111561171f576040517fa16631ad00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600c548261172b610c15565b6117359190613f38565b111561176d576040517f1e186f7200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6117773383612bb4565b5050565b611783611f0e565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156117e8576040517fb06307db00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80600860006117f5611f0e565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff166118a2611f0e565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516118e79190613d40565b60405180910390a35050565b600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b611921611f0e565b73ffffffffffffffffffffffffffffffffffffffff1661193f611356565b73ffffffffffffffffffffffffffffffffffffffff1614611995576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161198c90613dd3565b60405180910390fd5b80600a8190555050565b6119aa848484611fc8565b6119b684848484612bd2565b6119ec576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b50505050565b6119fa611f0e565b73ffffffffffffffffffffffffffffffffffffffff16611a18611356565b73ffffffffffffffffffffffffffffffffffffffff1614611a6e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a6590613dd3565b60405180910390fd5b826012819055508160138190555080601481905550505050565b6060600042905060006014541480611aa1575060145481105b80611aba5750600060108054611ab690614131565b9050145b15611b525760118054611acc90614131565b80601f0160208091040260200160405190810160405280929190818152602001828054611af890614131565b8015611b455780601f10611b1a57610100808354040283529160200191611b45565b820191906000526020600020905b815481529060010190602001808311611b2857829003601f168201915b5050505050915050611b81565b6010611b5d84612d60565b604051602001611b6e929190613c6c565b6040516020818303038152906040529150505b919050565b60145481565b600c5481565b600d5481565b6000600860008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b611c34611f0e565b73ffffffffffffffffffffffffffffffffffffffff16611c52611356565b73ffffffffffffffffffffffffffffffffffffffff1614611ca8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c9f90613dd3565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611d18576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d0f90613db3565b60405180910390fd5b611d2181612af0565b50565b611d2c611f0e565b73ffffffffffffffffffffffffffffffffffffffff16611d4a611356565b73ffffffffffffffffffffffffffffffffffffffff1614611da0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d9790613dd3565b60405180910390fd5b80600e8190555050565b611db2611f0e565b73ffffffffffffffffffffffffffffffffffffffff16611dd0611356565b73ffffffffffffffffffffffffffffffffffffffff1614611e26576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e1d90613dd3565b60405180910390fd5b8060119080519060200190611e3c9291906133f2565b5050565b50505050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b600060015482108015611f07575060056000838152602001908152602001600020600001601c9054906101000a900460ff16155b9050919050565b600033905090565b826007600084815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b6000611fd382612874565b90506000816000015173ffffffffffffffffffffffffffffffffffffffff16611ffa611f0e565b73ffffffffffffffffffffffffffffffffffffffff16148061202d575061202c8260000151612027611f0e565b611b98565b5b80612072575061203b611f0e565b73ffffffffffffffffffffffffffffffffffffffff1661205a84610a8e565b73ffffffffffffffffffffffffffffffffffffffff16145b9050806120ab576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8473ffffffffffffffffffffffffffffffffffffffff16826000015173ffffffffffffffffffffffffffffffffffffffff1614612114576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16141561217b576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6121888585856001612f0d565b6121986000848460000151611f16565b6001600660008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160008282829054906101000a900467ffffffffffffffff160392506101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055506001600660008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160008282829054906101000a900467ffffffffffffffff160192506101000a81548167ffffffffffffffff021916908367ffffffffffffffff160217905550836005600085815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550426005600085815260200190815260200160002060000160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055506000600184019050600073ffffffffffffffffffffffffffffffffffffffff166005600083815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161415612449576001548110156124485782600001516005600083815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555082602001516005600083815260200190815260200160002060000160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055505b5b50828473ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46124b28585856001612ff0565b5050505050565b60006124c482612874565b90506124d881600001516000846001612f0d565b6124e86000838360000151611f16565b600160066000836000015173ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160008282829054906101000a900467ffffffffffffffff160392506101000a81548167ffffffffffffffff021916908367ffffffffffffffff160217905550600160066000836000015173ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160108282829054906101000a900467ffffffffffffffff160192506101000a81548167ffffffffffffffff021916908367ffffffffffffffff16021790555080600001516005600084815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550426005600084815260200190815260200160002060000160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff160217905550600160056000848152602001908152602001600020600001601c6101000a81548160ff0219169083151502179055506000600183019050600073ffffffffffffffffffffffffffffffffffffffff166005600083815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614156127d4576001548110156127d35781600001516005600083815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555081602001516005600083815260200190815260200160002060000160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055505b5b5081600073ffffffffffffffffffffffffffffffffffffffff16826000015173ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a461284781600001516000846001612ff0565b6002600081548092919060010191905055505050565b60008261286a8584612ff6565b1490509392505050565b61287c613478565b6000829050600154811015612ab9576000600560008381526020019081526020016000206040518060600160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a900467ffffffffffffffff1667ffffffffffffffff1667ffffffffffffffff16815260200160008201601c9054906101000a900460ff16151515158152505090508060400151612ab757600073ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff161461299b578092505050612aeb565b5b600115612ab657818060019003925050600560008381526020019081526020016000206040518060600160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a900467ffffffffffffffff1667ffffffffffffffff1667ffffffffffffffff16815260200160008201601c9054906101000a900460ff1615151515815250509050600073ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff1614612ab1578092505050612aeb565b61299c565b5b505b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b919050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b612bce828260405180602001604052806000815250613091565b5050565b6000612bf38473ffffffffffffffffffffffffffffffffffffffff16611e46565b15612d53578373ffffffffffffffffffffffffffffffffffffffff1663150b7a02612c1c611f0e565b8786866040518563ffffffff1660e01b8152600401612c3e9493929190613cf4565b602060405180830381600087803b158015612c5857600080fd5b505af1925050508015612c8957506040513d601f19601f82011682018060405250810190612c8691906138c1565b60015b612d03573d8060008114612cb9576040519150601f19603f3d011682016040523d82523d6000602084013e612cbe565b606091505b50600081511415612cfb576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050612d58565b600190505b949350505050565b60606000821415612da8576040518060400160405280600181526020017f30000000000000000000000000000000000000000000000000000000000000008152509050612f08565b600082905060005b60008214612dda578080612dc390614194565b915050600a82612dd39190613f8e565b9150612db0565b60008167ffffffffffffffff811115612e1c577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015612e4e5781602001600182028036833780820191505090505b5090505b60008514612f0157600182612e679190614019565b9150600a85612e769190614201565b6030612e829190613f38565b60f81b818381518110612ebe577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a85612efa9190613f8e565b9450612e52565b8093505050505b919050565b6000600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163b14612fde57600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16635f68f67785856040518363ffffffff1660e01b8152600401612fab929190613ccb565b600060405180830381600087803b158015612fc557600080fd5b505af1158015612fd9573d6000803e3d6000fd5b505050505b612fea84848484611e40565b50505050565b50505050565b60008082905060005b8451811015613086576000858281518110613043577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b602002602001015190508083116130655761305e83826130a3565b9250613072565b61306f81846130a3565b92505b50808061307e90614194565b915050612fff565b508091505092915050565b61309e83838360016130ba565b505050565b600082600052816020526040600020905092915050565b60006001549050600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff161415613128576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000841415613163576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6131706000868387612f0d565b83600660008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160008282829054906101000a900467ffffffffffffffff160192506101000a81548167ffffffffffffffff021916908367ffffffffffffffff16021790555083600660008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160088282829054906101000a900467ffffffffffffffff160192506101000a81548167ffffffffffffffff021916908367ffffffffffffffff160217905550846005600083815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550426005600083815260200190815260200160002060000160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff160217905550600081905060005b858110156133d557818773ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a483801561338957506133876000888488612bd2565b155b156133c0576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8180600101925050808060010191505061330e565b5080600181905550506133eb6000868387612ff0565b5050505050565b8280546133fe90614131565b90600052602060002090601f0160209004810192826134205760008555613467565b82601f1061343957805160ff1916838001178555613467565b82800160010185558215613467579182015b8281111561346657825182559160200191906001019061344b565b5b50905061347491906134bb565b5090565b6040518060600160405280600073ffffffffffffffffffffffffffffffffffffffff168152602001600067ffffffffffffffff1681526020016000151581525090565b5b808211156134d45760008160009055506001016134bc565b5090565b60006134eb6134e684613e73565b613e4e565b90508281526020810184848401111561350357600080fd5b61350e8482856140ef565b509392505050565b600061352961352484613ea4565b613e4e565b90508281526020810184848401111561354157600080fd5b61354c8482856140ef565b509392505050565b60008135905061356381614402565b92915050565b60008083601f84011261357b57600080fd5b8235905067ffffffffffffffff81111561359457600080fd5b6020830191508360208202830111156135ac57600080fd5b9250929050565b6000813590506135c281614419565b92915050565b6000813590506135d781614430565b92915050565b6000813590506135ec81614447565b92915050565b60008151905061360181614447565b92915050565b600082601f83011261361857600080fd5b81356136288482602086016134d8565b91505092915050565b600082601f83011261364257600080fd5b8135613652848260208601613516565b91505092915050565b60008135905061366a8161445e565b92915050565b60006020828403121561368257600080fd5b600061369084828501613554565b91505092915050565b600080604083850312156136ac57600080fd5b60006136ba85828601613554565b92505060206136cb85828601613554565b9150509250929050565b6000806000606084860312156136ea57600080fd5b60006136f886828701613554565b935050602061370986828701613554565b925050604061371a8682870161365b565b9150509250925092565b6000806000806080858703121561373a57600080fd5b600061374887828801613554565b945050602061375987828801613554565b935050604061376a8782880161365b565b925050606085013567ffffffffffffffff81111561378757600080fd5b61379387828801613607565b91505092959194509250565b6000806000604084860312156137b457600080fd5b60006137c286828701613554565b935050602084013567ffffffffffffffff8111156137df57600080fd5b6137eb86828701613569565b92509250509250925092565b6000806040838503121561380a57600080fd5b600061381885828601613554565b9250506020613829858286016135b3565b9150509250929050565b6000806040838503121561384657600080fd5b600061385485828601613554565b92505060206138658582860161365b565b9150509250929050565b60006020828403121561388157600080fd5b600061388f848285016135c8565b91505092915050565b6000602082840312156138aa57600080fd5b60006138b8848285016135dd565b91505092915050565b6000602082840312156138d357600080fd5b60006138e1848285016135f2565b91505092915050565b6000602082840312156138fc57600080fd5b600082013567ffffffffffffffff81111561391657600080fd5b61392284828501613631565b91505092915050565b60006020828403121561393d57600080fd5b600061394b8482850161365b565b91505092915050565b60008060006040848603121561396957600080fd5b60006139778682870161365b565b935050602084013567ffffffffffffffff81111561399457600080fd5b6139a086828701613569565b92509250509250925092565b6000806000606084860312156139c157600080fd5b60006139cf8682870161365b565b93505060206139e08682870161365b565b92505060406139f18682870161365b565b9150509250925092565b613a048161404d565b82525050565b613a1b613a168261404d565b6141dd565b82525050565b613a2a8161405f565b82525050565b613a398161406b565b82525050565b6000613a4a82613eea565b613a548185613f00565b9350613a648185602086016140fe565b613a6d816142ee565b840191505092915050565b613a81816140cb565b82525050565b6000613a9282613ef5565b613a9c8185613f1c565b9350613aac8185602086016140fe565b613ab5816142ee565b840191505092915050565b6000613acb82613ef5565b613ad58185613f2d565b9350613ae58185602086016140fe565b80840191505092915050565b60008154613afe81614131565b613b088186613f2d565b94506001821660008114613b235760018114613b3457613b67565b60ff19831686528186019350613b67565b613b3d85613ed5565b60005b83811015613b5f57815481890152600182019150602081019050613b40565b838801955050505b50505092915050565b6000613b7d602683613f1c565b9150613b888261430c565b604082019050919050565b6000613ba0600583613f2d565b9150613bab8261435b565b600582019050919050565b6000613bc3602083613f1c565b9150613bce82614384565b602082019050919050565b6000613be6600083613f11565b9150613bf1826143ad565b600082019050919050565b6000613c09601083613f1c565b9150613c14826143b0565b602082019050919050565b6000613c2c601f83613f1c565b9150613c37826143d9565b602082019050919050565b613c4b816140c1565b82525050565b6000613c5d8284613a0a565b60148201915081905092915050565b6000613c788285613af1565b9150613c848284613ac0565b9150613c8f82613b93565b91508190509392505050565b6000613ca682613bd9565b9150819050919050565b6000602082019050613cc560008301846139fb565b92915050565b6000604082019050613ce060008301856139fb565b613ced60208301846139fb565b9392505050565b6000608082019050613d0960008301876139fb565b613d1660208301866139fb565b613d236040830185613c42565b8181036060830152613d358184613a3f565b905095945050505050565b6000602082019050613d556000830184613a21565b92915050565b6000602082019050613d706000830184613a30565b92915050565b6000602082019050613d8b6000830184613a78565b92915050565b60006020820190508181036000830152613dab8184613a87565b905092915050565b60006020820190508181036000830152613dcc81613b70565b9050919050565b60006020820190508181036000830152613dec81613bb6565b9050919050565b60006020820190508181036000830152613e0c81613bfc565b9050919050565b60006020820190508181036000830152613e2c81613c1f565b9050919050565b6000602082019050613e486000830184613c42565b92915050565b6000613e58613e69565b9050613e648282614163565b919050565b6000604051905090565b600067ffffffffffffffff821115613e8e57613e8d6142bf565b5b613e97826142ee565b9050602081019050919050565b600067ffffffffffffffff821115613ebf57613ebe6142bf565b5b613ec8826142ee565b9050602081019050919050565b60008190508160005260206000209050919050565b600081519050919050565b600081519050919050565b600082825260208201905092915050565b600081905092915050565b600082825260208201905092915050565b600081905092915050565b6000613f43826140c1565b9150613f4e836140c1565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115613f8357613f82614232565b5b828201905092915050565b6000613f99826140c1565b9150613fa4836140c1565b925082613fb457613fb3614261565b5b828204905092915050565b6000613fca826140c1565b9150613fd5836140c1565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff048311821515161561400e5761400d614232565b5b828202905092915050565b6000614024826140c1565b915061402f836140c1565b92508282101561404257614041614232565b5b828203905092915050565b6000614058826140a1565b9050919050565b60008115159050919050565b6000819050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b60006140d6826140dd565b9050919050565b60006140e8826140a1565b9050919050565b82818337600083830152505050565b60005b8381101561411c578082015181840152602081019050614101565b8381111561412b576000848401525b50505050565b6000600282049050600182168061414957607f821691505b6020821081141561415d5761415c614290565b5b50919050565b61416c826142ee565b810181811067ffffffffffffffff8211171561418b5761418a6142bf565b5b80604052505050565b600061419f826140c1565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8214156141d2576141d1614232565b5b600182019050919050565b60006141e8826141ef565b9050919050565b60006141fa826142ff565b9050919050565b600061420c826140c1565b9150614217836140c1565b92508261422757614226614261565b5b828206905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6000601f19601f8301169050919050565b60008160601b9050919050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f2e6a736f6e000000000000000000000000000000000000000000000000000000600082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b50565b7f5472616e73666572206661696c65642e00000000000000000000000000000000600082015250565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b61440b8161404d565b811461441657600080fd5b50565b6144228161405f565b811461442d57600080fd5b50565b6144398161406b565b811461444457600080fd5b50565b61445081614075565b811461445b57600080fd5b50565b614467816140c1565b811461447257600080fd5b5056fea2646970667358221220092d6f90f9d7799a11b7cec4845e825db2a96ce1c0896fe50572b7fa243695e664736f6c63430008040033

Deployed Bytecode

0x60806040526004361061023b5760003560e01c806370a082311161012e578063b88d4fde116100ab578063e757c17d1161006f578063e757c17d14610831578063e985e9c51461085c578063f2fde38b14610899578063f4a0a528146108c2578063fe2c7fee146108eb5761023b565b8063b88d4fde1461074c578063c5df8d1914610775578063c87b56dd1461079e578063cc0bef84146107db578063d5abeb01146108065761023b565b80639e6b2c5b116100f25780639e6b2c5b14610697578063a0712d68146106b3578063a22cb465146106cf578063b2ad2c65146106f8578063b5e115f5146107235761023b565b806370a08231146105c2578063715018a6146105ff5780638da5cb5b1461061657806395d89b41146106415780639b3b762d1461066c5761023b565b806342842e0e116101bc5780635a23dd99116101805780635a23dd99146104c75780636352211e146105045780636817c76c146105415780636c0360eb1461056c5780637035bf18146105975761023b565b806342842e0e146103f8578063465c3c3114610421578063518302271461044a57806355f804b31461047557806356a45f871461049e5761023b565b806318160ddd1161020357806318160ddd146103395780631cbaee2d1461036457806323b872dd1461038f5780633b9ee7e4146103b85780633ccfd60b146103e15761023b565b806301ffc9a71461024057806306d65af31461027d57806306fdde03146102a8578063081812fc146102d3578063095ea7b314610310575b600080fd5b34801561024c57600080fd5b5061026760048036038101906102629190613898565b610914565b6040516102749190613d40565b60405180910390f35b34801561028957600080fd5b506102926109f6565b60405161029f9190613e33565b60405180910390f35b3480156102b457600080fd5b506102bd6109fc565b6040516102ca9190613d91565b60405180910390f35b3480156102df57600080fd5b506102fa60048036038101906102f5919061392b565b610a8e565b6040516103079190613cb0565b60405180910390f35b34801561031c57600080fd5b5061033760048036038101906103329190613833565b610b0a565b005b34801561034557600080fd5b5061034e610c15565b60405161035b9190613e33565b60405180910390f35b34801561037057600080fd5b50610379610c23565b6040516103869190613e33565b60405180910390f35b34801561039b57600080fd5b506103b660048036038101906103b191906136d5565b610c29565b005b3480156103c457600080fd5b506103df60048036038101906103da919061392b565b610c39565b005b3480156103ed57600080fd5b506103f6610cbf565b005b34801561040457600080fd5b5061041f600480360381019061041a91906136d5565b610e40565b005b34801561042d57600080fd5b5061044860048036038101906104439190613670565b610e60565b005b34801561045657600080fd5b5061045f610f20565b60405161046c9190613d40565b60405180910390f35b34801561048157600080fd5b5061049c600480360381019061049791906138ea565b610f33565b005b3480156104aa57600080fd5b506104c560048036038101906104c0919061392b565b610fc9565b005b3480156104d357600080fd5b506104ee60048036038101906104e9919061379f565b611042565b6040516104fb9190613d40565b60405180910390f35b34801561051057600080fd5b5061052b6004803603810190610526919061392b565b6110c6565b6040516105389190613cb0565b60405180910390f35b34801561054d57600080fd5b506105566110dc565b6040516105639190613e33565b60405180910390f35b34801561057857600080fd5b506105816110e2565b60405161058e9190613d91565b60405180910390f35b3480156105a357600080fd5b506105ac611170565b6040516105b99190613d91565b60405180910390f35b3480156105ce57600080fd5b506105e960048036038101906105e49190613670565b6111fe565b6040516105f69190613e33565b60405180910390f35b34801561060b57600080fd5b506106146112ce565b005b34801561062257600080fd5b5061062b611356565b6040516106389190613cb0565b60405180910390f35b34801561064d57600080fd5b5061065661137f565b6040516106639190613d91565b60405180910390f35b34801561067857600080fd5b50610681611411565b60405161068e9190613d5b565b60405180910390f35b6106b160048036038101906106ac9190613954565b611417565b005b6106cd60048036038101906106c8919061392b565b6115ea565b005b3480156106db57600080fd5b506106f660048036038101906106f191906137f7565b61177b565b005b34801561070457600080fd5b5061070d6118f3565b60405161071a9190613d76565b60405180910390f35b34801561072f57600080fd5b5061074a6004803603810190610745919061386f565b611919565b005b34801561075857600080fd5b50610773600480360381019061076e9190613724565b61199f565b005b34801561078157600080fd5b5061079c600480360381019061079791906139ac565b6119f2565b005b3480156107aa57600080fd5b506107c560048036038101906107c0919061392b565b611a88565b6040516107d29190613d91565b60405180910390f35b3480156107e757600080fd5b506107f0611b86565b6040516107fd9190613e33565b60405180910390f35b34801561081257600080fd5b5061081b611b8c565b6040516108289190613e33565b60405180910390f35b34801561083d57600080fd5b50610846611b92565b6040516108539190613e33565b60405180910390f35b34801561086857600080fd5b50610883600480360381019061087e9190613699565b611b98565b6040516108909190613d40565b60405180910390f35b3480156108a557600080fd5b506108c060048036038101906108bb9190613670565b611c2c565b005b3480156108ce57600080fd5b506108e960048036038101906108e4919061392b565b611d24565b005b3480156108f757600080fd5b50610912600480360381019061090d91906138ea565b611daa565b005b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806109df57507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b806109ef57506109ee82611e69565b5b9050919050565b60125481565b606060038054610a0b90614131565b80601f0160208091040260200160405190810160405280929190818152602001828054610a3790614131565b8015610a845780601f10610a5957610100808354040283529160200191610a84565b820191906000526020600020905b815481529060010190602001808311610a6757829003601f168201915b5050505050905090565b6000610a9982611ed3565b610acf576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6007600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610b15826110c6565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610b7d576040517f943f7b8c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610b9c611f0e565b73ffffffffffffffffffffffffffffffffffffffff1614158015610bce5750610bcc81610bc7611f0e565b611b98565b155b15610c05576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610c10838383611f16565b505050565b600060025460015403905090565b60135481565b610c34838383611fc8565b505050565b610c41611f0e565b73ffffffffffffffffffffffffffffffffffffffff16610c5f611356565b73ffffffffffffffffffffffffffffffffffffffff1614610cb5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610cac90613dd3565b60405180910390fd5b80600d8190555050565b610cc7611f0e565b73ffffffffffffffffffffffffffffffffffffffff16610ce5611356565b73ffffffffffffffffffffffffffffffffffffffff1614610d3b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d3290613dd3565b60405180910390fd5b60026009541415610d81576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d7890613e13565b60405180910390fd5b600260098190555060003373ffffffffffffffffffffffffffffffffffffffff1647604051610daf90613c9b565b60006040518083038185875af1925050503d8060008114610dec576040519150601f19603f3d011682016040523d82523d6000602084013e610df1565b606091505b5050905080610e35576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e2c90613df3565b60405180910390fd5b506001600981905550565b610e5b8383836040518060200160405280600081525061199f565b505050565b610e68611f0e565b73ffffffffffffffffffffffffffffffffffffffff16610e86611356565b73ffffffffffffffffffffffffffffffffffffffff1614610edc576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ed390613dd3565b60405180910390fd5b80600b60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b600f60009054906101000a900460ff1681565b610f3b611f0e565b73ffffffffffffffffffffffffffffffffffffffff16610f59611356565b73ffffffffffffffffffffffffffffffffffffffff1614610faf576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fa690613dd3565b60405180910390fd5b8060109080519060200190610fc59291906133f2565b5050565b610fd2816110c6565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614611036576040517f59dc379f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61103f816124b9565b50565b600080846040516020016110569190613c51565b6040516020818303038152906040528051906020012090506110bc848480806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f82011690508083019250505050505050600a548361285d565b9150509392505050565b60006110d182612874565b600001519050919050565b600e5481565b601080546110ef90614131565b80601f016020809104026020016040519081016040528092919081815260200182805461111b90614131565b80156111685780601f1061113d57610100808354040283529160200191611168565b820191906000526020600020905b81548152906001019060200180831161114b57829003601f168201915b505050505081565b6011805461117d90614131565b80601f01602080910402602001604051908101604052809291908181526020018280546111a990614131565b80156111f65780601f106111cb576101008083540402835291602001916111f6565b820191906000526020600020905b8154815290600101906020018083116111d957829003601f168201915b505050505081565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611266576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600660008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160009054906101000a900467ffffffffffffffff1667ffffffffffffffff169050919050565b6112d6611f0e565b73ffffffffffffffffffffffffffffffffffffffff166112f4611356565b73ffffffffffffffffffffffffffffffffffffffff161461134a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161134190613dd3565b60405180910390fd5b6113546000612af0565b565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60606004805461138e90614131565b80601f01602080910402602001604051908101604052809291908181526020018280546113ba90614131565b80156114075780601f106113dc57610100808354040283529160200191611407565b820191906000526020600020905b8154815290600101906020018083116113ea57829003601f168201915b5050505050905090565b600a5481565b3273ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161461147c576040517f629f2dce00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600d548361148a9190613fbf565b3410156114c3576040517f5321e1df00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60004290506012548110806114d9575060135481115b15611510576040517fbcd776d600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61151b338484611042565b611551576040517f584a793800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600a84111561158c576040517fa16631ad00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600c5484611598610c15565b6115a29190613f38565b11156115da576040517f1e186f7200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6115e43385612bb4565b50505050565b3273ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161461164f576040517f629f2dce00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600e548161165d9190613fbf565b341015611696576040517f5321e1df00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000429050600060135414806116ad575060135481105b156116e4576040517fbcd776d600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600a82111561171f576040517fa16631ad00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600c548261172b610c15565b6117359190613f38565b111561176d576040517f1e186f7200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6117773383612bb4565b5050565b611783611f0e565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156117e8576040517fb06307db00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80600860006117f5611f0e565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff166118a2611f0e565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516118e79190613d40565b60405180910390a35050565b600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b611921611f0e565b73ffffffffffffffffffffffffffffffffffffffff1661193f611356565b73ffffffffffffffffffffffffffffffffffffffff1614611995576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161198c90613dd3565b60405180910390fd5b80600a8190555050565b6119aa848484611fc8565b6119b684848484612bd2565b6119ec576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b50505050565b6119fa611f0e565b73ffffffffffffffffffffffffffffffffffffffff16611a18611356565b73ffffffffffffffffffffffffffffffffffffffff1614611a6e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a6590613dd3565b60405180910390fd5b826012819055508160138190555080601481905550505050565b6060600042905060006014541480611aa1575060145481105b80611aba5750600060108054611ab690614131565b9050145b15611b525760118054611acc90614131565b80601f0160208091040260200160405190810160405280929190818152602001828054611af890614131565b8015611b455780601f10611b1a57610100808354040283529160200191611b45565b820191906000526020600020905b815481529060010190602001808311611b2857829003601f168201915b5050505050915050611b81565b6010611b5d84612d60565b604051602001611b6e929190613c6c565b6040516020818303038152906040529150505b919050565b60145481565b600c5481565b600d5481565b6000600860008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b611c34611f0e565b73ffffffffffffffffffffffffffffffffffffffff16611c52611356565b73ffffffffffffffffffffffffffffffffffffffff1614611ca8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c9f90613dd3565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611d18576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d0f90613db3565b60405180910390fd5b611d2181612af0565b50565b611d2c611f0e565b73ffffffffffffffffffffffffffffffffffffffff16611d4a611356565b73ffffffffffffffffffffffffffffffffffffffff1614611da0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d9790613dd3565b60405180910390fd5b80600e8190555050565b611db2611f0e565b73ffffffffffffffffffffffffffffffffffffffff16611dd0611356565b73ffffffffffffffffffffffffffffffffffffffff1614611e26576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e1d90613dd3565b60405180910390fd5b8060119080519060200190611e3c9291906133f2565b5050565b50505050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b600060015482108015611f07575060056000838152602001908152602001600020600001601c9054906101000a900460ff16155b9050919050565b600033905090565b826007600084815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b6000611fd382612874565b90506000816000015173ffffffffffffffffffffffffffffffffffffffff16611ffa611f0e565b73ffffffffffffffffffffffffffffffffffffffff16148061202d575061202c8260000151612027611f0e565b611b98565b5b80612072575061203b611f0e565b73ffffffffffffffffffffffffffffffffffffffff1661205a84610a8e565b73ffffffffffffffffffffffffffffffffffffffff16145b9050806120ab576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8473ffffffffffffffffffffffffffffffffffffffff16826000015173ffffffffffffffffffffffffffffffffffffffff1614612114576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16141561217b576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6121888585856001612f0d565b6121986000848460000151611f16565b6001600660008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160008282829054906101000a900467ffffffffffffffff160392506101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055506001600660008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160008282829054906101000a900467ffffffffffffffff160192506101000a81548167ffffffffffffffff021916908367ffffffffffffffff160217905550836005600085815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550426005600085815260200190815260200160002060000160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055506000600184019050600073ffffffffffffffffffffffffffffffffffffffff166005600083815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161415612449576001548110156124485782600001516005600083815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555082602001516005600083815260200190815260200160002060000160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055505b5b50828473ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46124b28585856001612ff0565b5050505050565b60006124c482612874565b90506124d881600001516000846001612f0d565b6124e86000838360000151611f16565b600160066000836000015173ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160008282829054906101000a900467ffffffffffffffff160392506101000a81548167ffffffffffffffff021916908367ffffffffffffffff160217905550600160066000836000015173ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160108282829054906101000a900467ffffffffffffffff160192506101000a81548167ffffffffffffffff021916908367ffffffffffffffff16021790555080600001516005600084815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550426005600084815260200190815260200160002060000160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff160217905550600160056000848152602001908152602001600020600001601c6101000a81548160ff0219169083151502179055506000600183019050600073ffffffffffffffffffffffffffffffffffffffff166005600083815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614156127d4576001548110156127d35781600001516005600083815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555081602001516005600083815260200190815260200160002060000160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055505b5b5081600073ffffffffffffffffffffffffffffffffffffffff16826000015173ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a461284781600001516000846001612ff0565b6002600081548092919060010191905055505050565b60008261286a8584612ff6565b1490509392505050565b61287c613478565b6000829050600154811015612ab9576000600560008381526020019081526020016000206040518060600160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a900467ffffffffffffffff1667ffffffffffffffff1667ffffffffffffffff16815260200160008201601c9054906101000a900460ff16151515158152505090508060400151612ab757600073ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff161461299b578092505050612aeb565b5b600115612ab657818060019003925050600560008381526020019081526020016000206040518060600160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a900467ffffffffffffffff1667ffffffffffffffff1667ffffffffffffffff16815260200160008201601c9054906101000a900460ff1615151515815250509050600073ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff1614612ab1578092505050612aeb565b61299c565b5b505b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b919050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b612bce828260405180602001604052806000815250613091565b5050565b6000612bf38473ffffffffffffffffffffffffffffffffffffffff16611e46565b15612d53578373ffffffffffffffffffffffffffffffffffffffff1663150b7a02612c1c611f0e565b8786866040518563ffffffff1660e01b8152600401612c3e9493929190613cf4565b602060405180830381600087803b158015612c5857600080fd5b505af1925050508015612c8957506040513d601f19601f82011682018060405250810190612c8691906138c1565b60015b612d03573d8060008114612cb9576040519150601f19603f3d011682016040523d82523d6000602084013e612cbe565b606091505b50600081511415612cfb576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050612d58565b600190505b949350505050565b60606000821415612da8576040518060400160405280600181526020017f30000000000000000000000000000000000000000000000000000000000000008152509050612f08565b600082905060005b60008214612dda578080612dc390614194565b915050600a82612dd39190613f8e565b9150612db0565b60008167ffffffffffffffff811115612e1c577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015612e4e5781602001600182028036833780820191505090505b5090505b60008514612f0157600182612e679190614019565b9150600a85612e769190614201565b6030612e829190613f38565b60f81b818381518110612ebe577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a85612efa9190613f8e565b9450612e52565b8093505050505b919050565b6000600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163b14612fde57600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16635f68f67785856040518363ffffffff1660e01b8152600401612fab929190613ccb565b600060405180830381600087803b158015612fc557600080fd5b505af1158015612fd9573d6000803e3d6000fd5b505050505b612fea84848484611e40565b50505050565b50505050565b60008082905060005b8451811015613086576000858281518110613043577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b602002602001015190508083116130655761305e83826130a3565b9250613072565b61306f81846130a3565b92505b50808061307e90614194565b915050612fff565b508091505092915050565b61309e83838360016130ba565b505050565b600082600052816020526040600020905092915050565b60006001549050600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff161415613128576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000841415613163576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6131706000868387612f0d565b83600660008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160008282829054906101000a900467ffffffffffffffff160192506101000a81548167ffffffffffffffff021916908367ffffffffffffffff16021790555083600660008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160088282829054906101000a900467ffffffffffffffff160192506101000a81548167ffffffffffffffff021916908367ffffffffffffffff160217905550846005600083815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550426005600083815260200190815260200160002060000160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff160217905550600081905060005b858110156133d557818773ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a483801561338957506133876000888488612bd2565b155b156133c0576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8180600101925050808060010191505061330e565b5080600181905550506133eb6000868387612ff0565b5050505050565b8280546133fe90614131565b90600052602060002090601f0160209004810192826134205760008555613467565b82601f1061343957805160ff1916838001178555613467565b82800160010185558215613467579182015b8281111561346657825182559160200191906001019061344b565b5b50905061347491906134bb565b5090565b6040518060600160405280600073ffffffffffffffffffffffffffffffffffffffff168152602001600067ffffffffffffffff1681526020016000151581525090565b5b808211156134d45760008160009055506001016134bc565b5090565b60006134eb6134e684613e73565b613e4e565b90508281526020810184848401111561350357600080fd5b61350e8482856140ef565b509392505050565b600061352961352484613ea4565b613e4e565b90508281526020810184848401111561354157600080fd5b61354c8482856140ef565b509392505050565b60008135905061356381614402565b92915050565b60008083601f84011261357b57600080fd5b8235905067ffffffffffffffff81111561359457600080fd5b6020830191508360208202830111156135ac57600080fd5b9250929050565b6000813590506135c281614419565b92915050565b6000813590506135d781614430565b92915050565b6000813590506135ec81614447565b92915050565b60008151905061360181614447565b92915050565b600082601f83011261361857600080fd5b81356136288482602086016134d8565b91505092915050565b600082601f83011261364257600080fd5b8135613652848260208601613516565b91505092915050565b60008135905061366a8161445e565b92915050565b60006020828403121561368257600080fd5b600061369084828501613554565b91505092915050565b600080604083850312156136ac57600080fd5b60006136ba85828601613554565b92505060206136cb85828601613554565b9150509250929050565b6000806000606084860312156136ea57600080fd5b60006136f886828701613554565b935050602061370986828701613554565b925050604061371a8682870161365b565b9150509250925092565b6000806000806080858703121561373a57600080fd5b600061374887828801613554565b945050602061375987828801613554565b935050604061376a8782880161365b565b925050606085013567ffffffffffffffff81111561378757600080fd5b61379387828801613607565b91505092959194509250565b6000806000604084860312156137b457600080fd5b60006137c286828701613554565b935050602084013567ffffffffffffffff8111156137df57600080fd5b6137eb86828701613569565b92509250509250925092565b6000806040838503121561380a57600080fd5b600061381885828601613554565b9250506020613829858286016135b3565b9150509250929050565b6000806040838503121561384657600080fd5b600061385485828601613554565b92505060206138658582860161365b565b9150509250929050565b60006020828403121561388157600080fd5b600061388f848285016135c8565b91505092915050565b6000602082840312156138aa57600080fd5b60006138b8848285016135dd565b91505092915050565b6000602082840312156138d357600080fd5b60006138e1848285016135f2565b91505092915050565b6000602082840312156138fc57600080fd5b600082013567ffffffffffffffff81111561391657600080fd5b61392284828501613631565b91505092915050565b60006020828403121561393d57600080fd5b600061394b8482850161365b565b91505092915050565b60008060006040848603121561396957600080fd5b60006139778682870161365b565b935050602084013567ffffffffffffffff81111561399457600080fd5b6139a086828701613569565b92509250509250925092565b6000806000606084860312156139c157600080fd5b60006139cf8682870161365b565b93505060206139e08682870161365b565b92505060406139f18682870161365b565b9150509250925092565b613a048161404d565b82525050565b613a1b613a168261404d565b6141dd565b82525050565b613a2a8161405f565b82525050565b613a398161406b565b82525050565b6000613a4a82613eea565b613a548185613f00565b9350613a648185602086016140fe565b613a6d816142ee565b840191505092915050565b613a81816140cb565b82525050565b6000613a9282613ef5565b613a9c8185613f1c565b9350613aac8185602086016140fe565b613ab5816142ee565b840191505092915050565b6000613acb82613ef5565b613ad58185613f2d565b9350613ae58185602086016140fe565b80840191505092915050565b60008154613afe81614131565b613b088186613f2d565b94506001821660008114613b235760018114613b3457613b67565b60ff19831686528186019350613b67565b613b3d85613ed5565b60005b83811015613b5f57815481890152600182019150602081019050613b40565b838801955050505b50505092915050565b6000613b7d602683613f1c565b9150613b888261430c565b604082019050919050565b6000613ba0600583613f2d565b9150613bab8261435b565b600582019050919050565b6000613bc3602083613f1c565b9150613bce82614384565b602082019050919050565b6000613be6600083613f11565b9150613bf1826143ad565b600082019050919050565b6000613c09601083613f1c565b9150613c14826143b0565b602082019050919050565b6000613c2c601f83613f1c565b9150613c37826143d9565b602082019050919050565b613c4b816140c1565b82525050565b6000613c5d8284613a0a565b60148201915081905092915050565b6000613c788285613af1565b9150613c848284613ac0565b9150613c8f82613b93565b91508190509392505050565b6000613ca682613bd9565b9150819050919050565b6000602082019050613cc560008301846139fb565b92915050565b6000604082019050613ce060008301856139fb565b613ced60208301846139fb565b9392505050565b6000608082019050613d0960008301876139fb565b613d1660208301866139fb565b613d236040830185613c42565b8181036060830152613d358184613a3f565b905095945050505050565b6000602082019050613d556000830184613a21565b92915050565b6000602082019050613d706000830184613a30565b92915050565b6000602082019050613d8b6000830184613a78565b92915050565b60006020820190508181036000830152613dab8184613a87565b905092915050565b60006020820190508181036000830152613dcc81613b70565b9050919050565b60006020820190508181036000830152613dec81613bb6565b9050919050565b60006020820190508181036000830152613e0c81613bfc565b9050919050565b60006020820190508181036000830152613e2c81613c1f565b9050919050565b6000602082019050613e486000830184613c42565b92915050565b6000613e58613e69565b9050613e648282614163565b919050565b6000604051905090565b600067ffffffffffffffff821115613e8e57613e8d6142bf565b5b613e97826142ee565b9050602081019050919050565b600067ffffffffffffffff821115613ebf57613ebe6142bf565b5b613ec8826142ee565b9050602081019050919050565b60008190508160005260206000209050919050565b600081519050919050565b600081519050919050565b600082825260208201905092915050565b600081905092915050565b600082825260208201905092915050565b600081905092915050565b6000613f43826140c1565b9150613f4e836140c1565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115613f8357613f82614232565b5b828201905092915050565b6000613f99826140c1565b9150613fa4836140c1565b925082613fb457613fb3614261565b5b828204905092915050565b6000613fca826140c1565b9150613fd5836140c1565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff048311821515161561400e5761400d614232565b5b828202905092915050565b6000614024826140c1565b915061402f836140c1565b92508282101561404257614041614232565b5b828203905092915050565b6000614058826140a1565b9050919050565b60008115159050919050565b6000819050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b60006140d6826140dd565b9050919050565b60006140e8826140a1565b9050919050565b82818337600083830152505050565b60005b8381101561411c578082015181840152602081019050614101565b8381111561412b576000848401525b50505050565b6000600282049050600182168061414957607f821691505b6020821081141561415d5761415c614290565b5b50919050565b61416c826142ee565b810181811067ffffffffffffffff8211171561418b5761418a6142bf565b5b80604052505050565b600061419f826140c1565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8214156141d2576141d1614232565b5b600182019050919050565b60006141e8826141ef565b9050919050565b60006141fa826142ff565b9050919050565b600061420c826140c1565b9150614217836140c1565b92508261422757614226614261565b5b828206905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6000601f19601f8301169050919050565b60008160601b9050919050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f2e6a736f6e000000000000000000000000000000000000000000000000000000600082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b50565b7f5472616e73666572206661696c65642e00000000000000000000000000000000600082015250565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b61440b8161404d565b811461441657600080fd5b50565b6144228161405f565b811461442d57600080fd5b50565b6144398161406b565b811461444457600080fd5b50565b61445081614075565b811461445b57600080fd5b50565b614467816140c1565b811461447257600080fd5b5056fea2646970667358221220092d6f90f9d7799a11b7cec4845e825db2a96ce1c0896fe50572b7fa243695e664736f6c63430008040033

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.