ETH Price: $3,492.69 (+3.61%)
Gas: 4 Gwei

Token

Celestials (CELESTIAL)
 

Overview

Max Total Supply

5,555 CELESTIAL

Holders

1,130

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Filtered by Token Holder
poena.eth
Balance
5 CELESTIAL
0x30aFA1c14Df4069A60d89f0CF79a320021767016
Loading...
Loading
Loading...
Loading
Loading...
Loading

OVERVIEW

Celestials are beings who emerged from a pocket dimension near Jupiter in the year 2077. Forced from their homeworld by a scourge of intergalactic planet harvesters, the Celestials sacrificed their own sun to power an interdimensional gateway. Only 5,555 survived the journey.

# Exchange Pair Price  24H Volume % Volume

Contract Source Code Verified (Exact Match)

Contract Name:
Celestials

Compiler Version
v0.8.9+commit.e5eed63a

Optimization Enabled:
No with 200 runs

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

import "./celestials/ERC721Collection.sol";
import "./celestials/extensions/ERC721Presale.sol";
import "./celestials/extensions/ERC721Sale.sol";

contract Celestials is ERC721Collection, ERC721Presale, ERC721Sale {
    constructor(string memory name, string memory symbol) 
        ERC721Collection(name, symbol) {}

    function withdraw() public onlyOwner {
        uint balance = address(this).balance;
        payable(_msgSender()).transfer(balance);
    }   
}

File 2 of 22 : ERC721Collection.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.9;

import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/math/SafeMath.sol";

import "../token/ERC721/ERC721A.sol";
import "../token/ERC721/extensions/ERC721ABurnable.sol";
import "../token/ERC721/extensions/ERC721AOwnersExplicit.sol";


contract ERC721Collection is Ownable, ERC721A, ERC721ABurnable, ERC721AOwnersExplicit {
    using SafeMath for uint256;

    uint256 public maxSupply = 5555;
    string private _URI;

    constructor(string memory name, string memory symbol) 
        ERC721A(name, symbol) {}

    function setMaxSupply(uint256 supply) public onlyOwner {
        require(supply > 0, "NotPositive");
        maxSupply = supply;
    }

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

    function setBaseURI(string memory URI) public onlyOwner {
        _URI = URI;
    }

    function mintOwner(address to, uint256 quantity) public onlyOwner {
        require(totalSupply().add(quantity) <= maxSupply, "PurchaseExeedsMaxSupply");
        _safeMint(to, quantity);
    }

    function mint(address to, uint256 quantity) internal {
        require(totalSupply().add(quantity) <= maxSupply, "PurchaseExeedsMaxSupply");
        _safeMint(to, quantity);
    }

    
}

File 3 of 22 : ERC721Presale.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.9;

import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/math/SafeMath.sol";

import "../../access/Whitelistable.sol";
import "../../access/TXLimiter.sol";
import "../../access/PurchaseLimiter.sol";
import "../ERC721Collection.sol";

abstract contract ERC721Presale is Ownable, ERC721Collection, PurchaseLimiter, Whitelistable {
    using SafeMath for uint256;

    bool public presaleIsActive = false;
    uint256 public presaleSupply = 4000;
    uint256 public presalePrice = 55 * 1e15; // 0.055 ETH


    function setPresaleState(bool state) public onlyOwner {
        presaleIsActive = state;
    }

    function setPresaleSupply(uint256 supply) public onlyOwner {
        require(supply > 0 && supply <= maxSupply, "InvaliPresaleSupply");
        presaleSupply = supply;
    }

    function setPresalePrice(uint256 price) public onlyOwner {
        require(price > 0, "InvaliPresalePrice");
        presalePrice = price;
    }

    function mintPresale(bytes32 leaf, bytes32[] memory proof, uint256 quantity) public payable {
        address to = _msgSender();

        require(presaleIsActive, "PresaleNotActive");
        require(totalSupply().add(quantity) <= presaleSupply, "PurchaseExeedsPresaleSupply");
        require(presalePrice.mul(quantity) <= msg.value, "IncorrectPresaleValue");

        addPresalePurchaseFor(to, quantity);
        checkWhitelisted(to, leaf, proof);

        mint(to, quantity);
    }
}

File 4 of 22 : ERC721Sale.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.9;

import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/math/SafeMath.sol";

import "../../access/TXLimiter.sol";
import "../../access/PurchaseLimiter.sol";
import "../ERC721Collection.sol";

abstract contract ERC721Sale is Ownable, ERC721Collection, PurchaseLimiter {
    using SafeMath for uint256;

    bool public saleIsActive = false;
    uint256 public salePrice = 77 * 1e15; // 0.077 ETH


    function setSaleState(bool state) public onlyOwner {
        saleIsActive = state;
    }

    function setSalePrice(uint256 price) public onlyOwner {
        require(price > 0, "InvaliSalePrice");
        salePrice = price;
    }

    function mintSale(uint256 quantity) public payable {
        address to = _msgSender();

        require(saleIsActive, "SaleNotActive");
        require(salePrice.mul(quantity) <= msg.value, "IncorrectSaleValue");

        addSalePurchaseFor(to, quantity);

        mint(to, quantity);
    }
}

File 5 of 22 : 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 6 of 22 : SafeMath.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/math/SafeMath.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

File 7 of 22 : ERC721A.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.9;

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

contract ERC721A is Context, ERC165, IERC721, IERC721Metadata {
    using Address for address;
    using Strings for uint256;

    struct TokenOwnership {
        address addr;
        uint64 startTimestamp;
        bool burned;
    }

    struct AddressData {
        uint64 balance;
        uint64 numberMinted;
        uint64 numberBurned;
        uint64 aux;
    }

    uint256 internal _currentIndex;
    uint256 internal _burnCounter;

    string private _name;
    string private _symbol;

    mapping(uint256 => TokenOwnership) internal _ownerships;
    mapping(address => AddressData) private _addressData;
    mapping(uint256 => address) private _tokenApprovals;
    mapping(address => mapping(address => bool)) private _operatorApprovals;

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

    function totalSupply() public view returns (uint256) {
        unchecked {
            return _currentIndex - _burnCounter;    
        }
    }

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

    function balanceOf(address owner) public view override returns (uint256) {
        if (owner == address(0)) revert BalanceQueryForZeroAddress();
        return uint256(_addressData[owner].balance);
    }

    function _numberMinted(address owner) internal view returns (uint256) {
        if (owner == address(0)) revert MintedQueryForZeroAddress();
        return uint256(_addressData[owner].numberMinted);
    }

    function _numberBurned(address owner) internal view returns (uint256) {
        if (owner == address(0)) revert BurnedQueryForZeroAddress();
        return uint256(_addressData[owner].numberBurned);
    }

    function _getAux(address owner) internal view returns (uint64) {
        if (owner == address(0)) revert AuxQueryForZeroAddress();
        return _addressData[owner].aux;
    }

    function _setAux(address owner, uint64 aux) internal {
        if (owner == address(0)) revert AuxQueryForZeroAddress();
        _addressData[owner].aux = aux;
    }

    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;
                    }
                    while (true) {
                        curr--;
                        ownership = _ownerships[curr];
                        if (ownership.addr != address(0)) {
                            return ownership;
                        }
                    }
                }
            }
        }
        revert OwnerQueryForNonexistentToken();
    }

    function ownerOf(uint256 tokenId) public view override returns (address) {
        return ownershipOf(tokenId).addr;
    }

    function name() public view virtual override returns (string memory) {
        return _name;
    }

    function symbol() public view virtual override returns (string memory) {
        return _symbol;
    }


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

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

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

    function getApproved(uint256 tokenId) public view override returns (address) {
        if (!_exists(tokenId)) revert ApprovalQueryForNonexistentToken();

        return _tokenApprovals[tokenId];
    }

    function setApprovalForAll(address operator, bool approved) public override {
        if (operator == _msgSender()) revert ApproveToCaller();

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

    function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) {
        return _operatorApprovals[owner][operator];
    }

    function transferFrom(
        address from,
        address to,
        uint256 tokenId
    ) public virtual override {
        _transfer(from, to, tokenId);
    }

    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId
    ) public virtual override {
        safeTransferFrom(from, to, tokenId, "");
    }

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

    function _exists(uint256 tokenId) internal view returns (bool) {
        return tokenId < _currentIndex && !_ownerships[tokenId].burned;
    }

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

    function _safeMint(
        address to,
        uint256 quantity,
        bytes memory _data
    ) internal {
        _mint(to, quantity, _data, true);
    }

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

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

    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);
        _approve(address(0), tokenId, prevOwnership.addr);

        unchecked {
            _addressData[from].balance -= 1;
            _addressData[to].balance += 1;

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

            uint256 nextTokenId = tokenId + 1;
            if (_ownerships[nextTokenId].addr == address(0)) {
                if (nextTokenId < _currentIndex) {
                    _ownerships[nextTokenId].addr = prevOwnership.addr;
                    _ownerships[nextTokenId].startTimestamp = prevOwnership.startTimestamp;
                }
            }
        }

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


    function _burn(uint256 tokenId) internal virtual {
        TokenOwnership memory prevOwnership = ownershipOf(tokenId);

        _beforeTokenTransfers(prevOwnership.addr, address(0), tokenId, 1);
        _approve(address(0), tokenId, prevOwnership.addr);

        unchecked {
            _addressData[prevOwnership.addr].balance -= 1;
            _addressData[prevOwnership.addr].numberBurned += 1;

            _ownerships[tokenId].addr = prevOwnership.addr;
            _ownerships[tokenId].startTimestamp = uint64(block.timestamp);
            _ownerships[tokenId].burned = true;

            uint256 nextTokenId = tokenId + 1;
            if (_ownerships[nextTokenId].addr == address(0)) {
                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);

        unchecked { 
            _burnCounter++;
        }
    }


    function _approve(
        address to,
        uint256 tokenId,
        address owner
    ) private {
        _tokenApprovals[tokenId] = to;
        emit Approval(owner, to, tokenId);
    }

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

    function _beforeTokenTransfers(
        address from,
        address to,
        uint256 startTokenId,
        uint256 quantity
    ) internal virtual {}

    function _afterTokenTransfers(
        address from,
        address to,
        uint256 startTokenId,
        uint256 quantity
    ) internal virtual {}
}

File 8 of 22 : ERC721ABurnable.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.9;

import "../ERC721A.sol";
import "@openzeppelin/contracts/utils/Context.sol";

abstract contract ERC721ABurnable is Context, ERC721A {
    function burn(uint256 tokenId) public virtual {
        TokenOwnership memory prevOwnership = ownershipOf(tokenId);

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

        if (!isApprovedOrOwner) revert TransferCallerNotOwnerNorApproved();

        _burn(tokenId);
    }
}

File 9 of 22 : ERC721AOwnersExplicit.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.9;

import "../ERC721A.sol";

error AllOwnershipsHaveBeenSet();
error QuantityMustBeNonZero();
error NoTokensMintedYet();

abstract contract ERC721AOwnersExplicit is ERC721A {
    uint256 public nextOwnerToExplicitlySet;

    function _setOwnersExplicit(uint256 quantity) internal {
        if (quantity == 0) revert QuantityMustBeNonZero();
        if (_currentIndex == 0) revert NoTokensMintedYet();
        uint256 _nextOwnerToExplicitlySet = nextOwnerToExplicitlySet;
        if (_nextOwnerToExplicitlySet >= _currentIndex) revert AllOwnershipsHaveBeenSet();

        unchecked {
            uint256 endIndex = _nextOwnerToExplicitlySet + quantity - 1;

            if (endIndex + 1 > _currentIndex) {
                endIndex = _currentIndex - 1;
            }

            for (uint256 i = _nextOwnerToExplicitlySet; i <= endIndex; i++) {
                if (_ownerships[i].addr == address(0) && !_ownerships[i].burned) {
                    TokenOwnership memory ownership = ownershipOf(i);
                    _ownerships[i].addr = ownership.addr;
                    _ownerships[i].startTimestamp = ownership.startTimestamp;
                }
            }

            nextOwnerToExplicitlySet = endIndex + 1;
        }
    }
}

File 10 of 22 : 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 11 of 22 : IERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

pragma solidity ^0.8.0;

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

File 19 of 22 : Whitelistable.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.9;

import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol";

abstract contract Whitelistable is Ownable {
    bytes32 public merkleRoot = "";

    function setMerkleRoot(bytes32 _merkleRoot) public onlyOwner {
        merkleRoot = _merkleRoot;
    }

    function checkWhitelisted(address to, bytes32 leaf, bytes32[] memory proof) internal view {
        require(keccak256(abi.encodePacked(to)) == leaf, "InvalidMerkleData");
        require(MerkleProof.verify(proof, merkleRoot, leaf), "NotWhitelisted");
    }
}

File 20 of 22 : TXLimiter.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.9;

import "@openzeppelin/contracts/access/Ownable.sol";

abstract contract TXLimiter is Ownable {
    uint256 public maxTXLimit = 5;

    function setMaxTXLimit(uint256 txLimit) public onlyOwner {
        require(txLimit > 0, "InvalidTXLimit");
        maxTXLimit = txLimit;
    }

    function checkTXLimit(uint256 quantity) internal view {
        require(quantity <= maxTXLimit, "ExeededTXLimit");
    }
}

File 21 of 22 : PurchaseLimiter.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.9;

import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/math/SafeMath.sol";

abstract contract PurchaseLimiter is Ownable {
    using SafeMath for uint256;

    struct Purchase {
        uint256 presale;
        uint256 sale;
    }
    
    mapping(address => Purchase) private purchases;
    uint256 public maxPresalePurchase = 5;
    uint256 public maxSalePurchase = 10;

    function setMaxPurchase(uint256 presaleMax, uint256 saleMax) public onlyOwner {
        maxPresalePurchase = presaleMax;
        maxSalePurchase = saleMax;
    }

    function addPresalePurchaseFor(address to, uint256 quantity) internal {
        require(purchases[to].presale.add(quantity) <= maxPresalePurchase, "MaxPurchaseExeeded");
        purchases[to].presale += quantity;
    }

    function addSalePurchaseFor(address to, uint256 quantity) internal {
        require(purchases[to].sale.add(quantity) <= maxSalePurchase, "MaxPurchaseExeeded");
        purchases[to].sale += quantity;
    }
}

File 22 of 22 : MerkleProof.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.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.
 */
library MerkleProof {
    /**
     * @dev Returns true if a `leaf` can be proved to be a part of a Merkle tree
     * defined by `root`. For this, a `proof` must be provided, containing
     * sibling hashes on the branch from the leaf to the root of the tree. Each
     * pair of leaves and each pair of pre-images are assumed to be sorted.
     */
    function verify(
        bytes32[] memory proof,
        bytes32 root,
        bytes32 leaf
    ) internal pure returns (bool) {
        return processProof(proof, leaf) == root;
    }

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

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"symbol","type":"string"}],"stateMutability":"nonpayable","type":"constructor"},{"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":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"TransferCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"TransferFromIncorrectOwner","type":"error"},{"inputs":[],"name":"TransferToNonERC721ReceiverImplementer","type":"error"},{"inputs":[],"name":"TransferToZeroAddress","type":"error"},{"inputs":[],"name":"URIQueryForNonexistentToken","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":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxPresalePurchase","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxSalePurchase","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"merkleRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"mintOwner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"leaf","type":"bytes32"},{"internalType":"bytes32[]","name":"proof","type":"bytes32[]"},{"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"mintPresale","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"mintSale","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"nextOwnerToExplicitlySet","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"presaleIsActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"presalePrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"presaleSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"saleIsActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"salePrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"URI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"presaleMax","type":"uint256"},{"internalType":"uint256","name":"saleMax","type":"uint256"}],"name":"setMaxPurchase","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"supply","type":"uint256"}],"name":"setMaxSupply","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_merkleRoot","type":"bytes32"}],"name":"setMerkleRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"price","type":"uint256"}],"name":"setPresalePrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"state","type":"bool"}],"name":"setPresaleState","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"supply","type":"uint256"}],"name":"setPresaleSupply","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"price","type":"uint256"}],"name":"setSalePrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"state","type":"bool"}],"name":"setSaleState","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":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60806040526115b3600a556005600d55600a600e556000600f556000601060006101000a81548160ff021916908315150217905550610fa060115566c3663566a580006012556000601360006101000a81548160ff0219169083151502179055506701118f178fb480006014553480156200007957600080fd5b5060405162004f6e38038062004f6e83398181016040528101906200009f91906200041a565b81818181620000c3620000b76200010160201b60201c565b6200010960201b60201c565b8160039080519060200190620000db929190620001cd565b508060049080519060200190620000f4929190620001cd565b5050505050505062000504565b600033905090565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b828054620001db90620004ce565b90600052602060002090601f016020900481019282620001ff57600085556200024b565b82601f106200021a57805160ff19168380011785556200024b565b828001600101855582156200024b579182015b828111156200024a5782518255916020019190600101906200022d565b5b5090506200025a91906200025e565b5090565b5b80821115620002795760008160009055506001016200025f565b5090565b6000604051905090565b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b620002e6826200029b565b810181811067ffffffffffffffff82111715620003085762000307620002ac565b5b80604052505050565b60006200031d6200027d565b90506200032b8282620002db565b919050565b600067ffffffffffffffff8211156200034e576200034d620002ac565b5b62000359826200029b565b9050602081019050919050565b60005b838110156200038657808201518184015260208101905062000369565b8381111562000396576000848401525b50505050565b6000620003b3620003ad8462000330565b62000311565b905082815260208101848484011115620003d257620003d162000296565b5b620003df84828562000366565b509392505050565b600082601f830112620003ff57620003fe62000291565b5b8151620004118482602086016200039c565b91505092915050565b6000806040838503121562000434576200043362000287565b5b600083015167ffffffffffffffff8111156200045557620004546200028c565b5b6200046385828601620003e7565b925050602083015167ffffffffffffffff8111156200048757620004866200028c565b5b6200049585828601620003e7565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60006002820490506001821680620004e757607f821691505b60208210811415620004fe57620004fd6200049f565b5b50919050565b614a5a80620005146000396000f3fe6080604052600436106102455760003560e01c806370a0823111610139578063bce4d6ae116100b6578063d7224ba01161007a578063d7224ba01461081f578063e985e9c51461084a578063eb8d244414610887578063efa5860a146108b2578063f2fde38b146108dd578063f51f96dd1461090657610245565b8063bce4d6ae14610749578063bdce8ab714610772578063c4e370951461078e578063c87b56dd146107b7578063d5abeb01146107f457610245565b806395d89b41116100fd57806395d89b4114610678578063a22cb465146106a3578063b3a196e9146106cc578063b88d4fde146106f7578063b96502cb1461072057610245565b806370a08231146105a5578063715018a6146105e25780637cb64759146105f95780638a9b3f5c146106225780638da5cb5b1461064d57610245565b80633549345e116101c75780634875bccb1161018b5780634875bccb146104d157806355f804b3146104ed5780636352211e14610516578063648f3b01146105535780636f8b44b01461057c57610245565b80633549345e146104165780633ccfd60b1461043f578063408cbf941461045657806342842e0e1461047f57806342966c68146104a857610245565b806318160ddd1161020e57806318160ddd146103435780631919fed71461036e57806323b872dd146103975780632eb4a7ab146103c057806330f72cd4146103eb57610245565b80620e7fa81461024a57806301ffc9a71461027557806306fdde03146102b2578063081812fc146102dd578063095ea7b31461031a575b600080fd5b34801561025657600080fd5b5061025f610931565b60405161026c91906136c2565b60405180910390f35b34801561028157600080fd5b5061029c60048036038101906102979190613749565b610937565b6040516102a99190613791565b60405180910390f35b3480156102be57600080fd5b506102c7610a19565b6040516102d49190613845565b60405180910390f35b3480156102e957600080fd5b5061030460048036038101906102ff9190613893565b610aab565b6040516103119190613901565b60405180910390f35b34801561032657600080fd5b50610341600480360381019061033c9190613948565b610b27565b005b34801561034f57600080fd5b50610358610c32565b60405161036591906136c2565b60405180910390f35b34801561037a57600080fd5b5061039560048036038101906103909190613893565b610c40565b005b3480156103a357600080fd5b506103be60048036038101906103b99190613988565b610d09565b005b3480156103cc57600080fd5b506103d5610d19565b6040516103e291906139f4565b60405180910390f35b3480156103f757600080fd5b50610400610d1f565b60405161040d9190613791565b60405180910390f35b34801561042257600080fd5b5061043d60048036038101906104389190613893565b610d32565b005b34801561044b57600080fd5b50610454610dfb565b005b34801561046257600080fd5b5061047d60048036038101906104789190613948565b610ecd565b005b34801561048b57600080fd5b506104a660048036038101906104a19190613988565b610fb5565b005b3480156104b457600080fd5b506104cf60048036038101906104ca9190613893565b610fd5565b005b6104eb60048036038101906104e69190613893565b6110c6565b005b3480156104f957600080fd5b50610514600480360381019061050f9190613b44565b611190565b005b34801561052257600080fd5b5061053d60048036038101906105389190613893565b611226565b60405161054a9190613901565b60405180910390f35b34801561055f57600080fd5b5061057a60048036038101906105759190613b8d565b61123c565b005b34801561058857600080fd5b506105a3600480360381019061059e9190613893565b6112ca565b005b3480156105b157600080fd5b506105cc60048036038101906105c79190613bcd565b611393565b6040516105d991906136c2565b60405180910390f35b3480156105ee57600080fd5b506105f7611463565b005b34801561060557600080fd5b50610620600480360381019061061b9190613c26565b6114eb565b005b34801561062e57600080fd5b50610637611571565b60405161064491906136c2565b60405180910390f35b34801561065957600080fd5b50610662611577565b60405161066f9190613901565b60405180910390f35b34801561068457600080fd5b5061068d6115a0565b60405161069a9190613845565b60405180910390f35b3480156106af57600080fd5b506106ca60048036038101906106c59190613c7f565b611632565b005b3480156106d857600080fd5b506106e16117aa565b6040516106ee91906136c2565b60405180910390f35b34801561070357600080fd5b5061071e60048036038101906107199190613d60565b6117b0565b005b34801561072c57600080fd5b5061074760048036038101906107429190613893565b611803565b005b34801561075557600080fd5b50610770600480360381019061076b9190613de3565b6118da565b005b61078c60048036038101906107879190613ed8565b611973565b005b34801561079a57600080fd5b506107b560048036038101906107b09190613de3565b611aa8565b005b3480156107c357600080fd5b506107de60048036038101906107d99190613893565b611b41565b6040516107eb9190613845565b60405180910390f35b34801561080057600080fd5b50610809611be0565b60405161081691906136c2565b60405180910390f35b34801561082b57600080fd5b50610834611be6565b60405161084191906136c2565b60405180910390f35b34801561085657600080fd5b50610871600480360381019061086c9190613f47565b611bec565b60405161087e9190613791565b60405180910390f35b34801561089357600080fd5b5061089c611c80565b6040516108a99190613791565b60405180910390f35b3480156108be57600080fd5b506108c7611c93565b6040516108d491906136c2565b60405180910390f35b3480156108e957600080fd5b5061090460048036038101906108ff9190613bcd565b611c99565b005b34801561091257600080fd5b5061091b611d91565b60405161092891906136c2565b60405180910390f35b60125481565b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480610a0257507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80610a125750610a1182611d97565b5b9050919050565b606060038054610a2890613fb6565b80601f0160208091040260200160405190810160405280929190818152602001828054610a5490613fb6565b8015610aa15780601f10610a7657610100808354040283529160200191610aa1565b820191906000526020600020905b815481529060010190602001808311610a8457829003601f168201915b5050505050905090565b6000610ab682611e01565b610aec576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6007600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610b3282611226565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610b9a576040517f943f7b8c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610bb9611e3c565b73ffffffffffffffffffffffffffffffffffffffff1614158015610beb5750610be981610be4611e3c565b611bec565b155b15610c22576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610c2d838383611e44565b505050565b600060025460015403905090565b610c48611e3c565b73ffffffffffffffffffffffffffffffffffffffff16610c66611577565b73ffffffffffffffffffffffffffffffffffffffff1614610cbc576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610cb390614034565b60405180910390fd5b60008111610cff576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610cf6906140a0565b60405180910390fd5b8060148190555050565b610d14838383611ef6565b505050565b600f5481565b601060009054906101000a900460ff1681565b610d3a611e3c565b73ffffffffffffffffffffffffffffffffffffffff16610d58611577565b73ffffffffffffffffffffffffffffffffffffffff1614610dae576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610da590614034565b60405180910390fd5b60008111610df1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610de89061410c565b60405180910390fd5b8060128190555050565b610e03611e3c565b73ffffffffffffffffffffffffffffffffffffffff16610e21611577565b73ffffffffffffffffffffffffffffffffffffffff1614610e77576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e6e90614034565b60405180910390fd5b6000479050610e84611e3c565b73ffffffffffffffffffffffffffffffffffffffff166108fc829081150290604051600060405180830381858888f19350505050158015610ec9573d6000803e3d6000fd5b5050565b610ed5611e3c565b73ffffffffffffffffffffffffffffffffffffffff16610ef3611577565b73ffffffffffffffffffffffffffffffffffffffff1614610f49576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f4090614034565b60405180910390fd5b600a54610f6682610f58610c32565b6123e790919063ffffffff16565b1115610fa7576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f9e90614178565b60405180910390fd5b610fb182826123fd565b5050565b610fd0838383604051806020016040528060008152506117b0565b505050565b6000610fe08261241b565b90506000816000015173ffffffffffffffffffffffffffffffffffffffff16611007611e3c565b73ffffffffffffffffffffffffffffffffffffffff16148061103a57506110398260000151611034611e3c565b611bec565b5b8061107f5750611048611e3c565b73ffffffffffffffffffffffffffffffffffffffff1661106784610aab565b73ffffffffffffffffffffffffffffffffffffffff16145b9050806110b8576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6110c183612697565b505050565b60006110d0611e3c565b9050601360009054906101000a900460ff16611121576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611118906141e4565b60405180910390fd5b3461113783601454612a3b90919063ffffffff16565b1115611178576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161116f90614250565b60405180910390fd5b6111828183612a51565b61118c8183612b47565b5050565b611198611e3c565b73ffffffffffffffffffffffffffffffffffffffff166111b6611577565b73ffffffffffffffffffffffffffffffffffffffff161461120c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161120390614034565b60405180910390fd5b80600b90805190602001906112229291906135c3565b5050565b60006112318261241b565b600001519050919050565b611244611e3c565b73ffffffffffffffffffffffffffffffffffffffff16611262611577565b73ffffffffffffffffffffffffffffffffffffffff16146112b8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112af90614034565b60405180910390fd5b81600d8190555080600e819055505050565b6112d2611e3c565b73ffffffffffffffffffffffffffffffffffffffff166112f0611577565b73ffffffffffffffffffffffffffffffffffffffff1614611346576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161133d90614034565b60405180910390fd5b60008111611389576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611380906142bc565b60405180910390fd5b80600a8190555050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156113fb576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600660008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160009054906101000a900467ffffffffffffffff1667ffffffffffffffff169050919050565b61146b611e3c565b73ffffffffffffffffffffffffffffffffffffffff16611489611577565b73ffffffffffffffffffffffffffffffffffffffff16146114df576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114d690614034565b60405180910390fd5b6114e96000612bb3565b565b6114f3611e3c565b73ffffffffffffffffffffffffffffffffffffffff16611511611577565b73ffffffffffffffffffffffffffffffffffffffff1614611567576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161155e90614034565b60405180910390fd5b80600f8190555050565b600e5481565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6060600480546115af90613fb6565b80601f01602080910402602001604051908101604052809291908181526020018280546115db90613fb6565b80156116285780601f106115fd57610100808354040283529160200191611628565b820191906000526020600020905b81548152906001019060200180831161160b57829003601f168201915b5050505050905090565b61163a611e3c565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141561169f576040517fb06307db00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80600860006116ac611e3c565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff16611759611e3c565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c318360405161179e9190613791565b60405180910390a35050565b60115481565b6117bb848484611ef6565b6117c784848484612c77565b6117fd576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b50505050565b61180b611e3c565b73ffffffffffffffffffffffffffffffffffffffff16611829611577565b73ffffffffffffffffffffffffffffffffffffffff161461187f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161187690614034565b60405180910390fd5b6000811180156118915750600a548111155b6118d0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118c790614328565b60405180910390fd5b8060118190555050565b6118e2611e3c565b73ffffffffffffffffffffffffffffffffffffffff16611900611577565b73ffffffffffffffffffffffffffffffffffffffff1614611956576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161194d90614034565b60405180910390fd5b80601060006101000a81548160ff02191690831515021790555050565b600061197d611e3c565b9050601060009054906101000a900460ff166119ce576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119c590614394565b60405180910390fd5b6011546119eb836119dd610c32565b6123e790919063ffffffff16565b1115611a2c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a2390614400565b60405180910390fd5b34611a4283601254612a3b90919063ffffffff16565b1115611a83576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a7a9061446c565b60405180910390fd5b611a8d8183612e05565b611a98818585612efb565b611aa28183612b47565b50505050565b611ab0611e3c565b73ffffffffffffffffffffffffffffffffffffffff16611ace611577565b73ffffffffffffffffffffffffffffffffffffffff1614611b24576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b1b90614034565b60405180910390fd5b80601360006101000a81548160ff02191690831515021790555050565b6060611b4c82611e01565b611b82576040517fa14c4b5000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000611b8c612fb4565b9050600081511415611bad5760405180602001604052806000815250611bd8565b80611bb784613046565b604051602001611bc89291906144c8565b6040516020818303038152906040525b915050919050565b600a5481565b60095481565b6000600860008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b601360009054906101000a900460ff1681565b600d5481565b611ca1611e3c565b73ffffffffffffffffffffffffffffffffffffffff16611cbf611577565b73ffffffffffffffffffffffffffffffffffffffff1614611d15576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d0c90614034565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611d85576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d7c9061455e565b60405180910390fd5b611d8e81612bb3565b50565b60145481565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b600060015482108015611e35575060056000838152602001908152602001600020600001601c9054906101000a900460ff16155b9050919050565b600033905090565b826007600084815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b6000611f018261241b565b90506000816000015173ffffffffffffffffffffffffffffffffffffffff16611f28611e3c565b73ffffffffffffffffffffffffffffffffffffffff161480611f5b5750611f5a8260000151611f55611e3c565b611bec565b5b80611fa05750611f69611e3c565b73ffffffffffffffffffffffffffffffffffffffff16611f8884610aab565b73ffffffffffffffffffffffffffffffffffffffff16145b905080611fd9576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8473ffffffffffffffffffffffffffffffffffffffff16826000015173ffffffffffffffffffffffffffffffffffffffff1614612042576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1614156120a9576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6120b685858560016131a7565b6120c66000848460000151611e44565b6001600660008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160008282829054906101000a900467ffffffffffffffff160392506101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055506001600660008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160008282829054906101000a900467ffffffffffffffff160192506101000a81548167ffffffffffffffff021916908367ffffffffffffffff160217905550836005600085815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550426005600085815260200190815260200160002060000160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055506000600184019050600073ffffffffffffffffffffffffffffffffffffffff166005600083815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161415612377576001548110156123765782600001516005600083815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555082602001516005600083815260200190815260200160002060000160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055505b5b50828473ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46123e085858560016131ad565b5050505050565b600081836123f591906145ad565b905092915050565b6124178282604051806020016040528060008152506131b3565b5050565b612423613649565b6000829050600154811015612660576000600560008381526020019081526020016000206040518060600160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a900467ffffffffffffffff1667ffffffffffffffff1667ffffffffffffffff16815260200160008201601c9054906101000a900460ff1615151515815250509050806040015161265e57600073ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff1614612542578092505050612692565b5b60011561265d57818060019003925050600560008381526020019081526020016000206040518060600160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a900467ffffffffffffffff1667ffffffffffffffff1667ffffffffffffffff16815260200160008201601c9054906101000a900460ff1615151515815250509050600073ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff1614612658578092505050612692565b612543565b5b505b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b919050565b60006126a28261241b565b90506126b6816000015160008460016131a7565b6126c66000838360000151611e44565b600160066000836000015173ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160008282829054906101000a900467ffffffffffffffff160392506101000a81548167ffffffffffffffff021916908367ffffffffffffffff160217905550600160066000836000015173ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160108282829054906101000a900467ffffffffffffffff160192506101000a81548167ffffffffffffffff021916908367ffffffffffffffff16021790555080600001516005600084815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550426005600084815260200190815260200160002060000160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff160217905550600160056000848152602001908152602001600020600001601c6101000a81548160ff0219169083151502179055506000600183019050600073ffffffffffffffffffffffffffffffffffffffff166005600083815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614156129b2576001548110156129b15781600001516005600083815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555081602001516005600083815260200190815260200160002060000160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055505b5b5081600073ffffffffffffffffffffffffffffffffffffffff16826000015173ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4612a25816000015160008460016131ad565b6002600081548092919060010191905055505050565b60008183612a499190614603565b905092915050565b600e54612aa982600c60008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600101546123e790919063ffffffff16565b1115612aea576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612ae1906146a9565b60405180910390fd5b80600c60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206001016000828254612b3c91906145ad565b925050819055505050565b600a54612b6482612b56610c32565b6123e790919063ffffffff16565b1115612ba5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612b9c90614178565b60405180910390fd5b612baf82826123fd565b5050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b6000612c988473ffffffffffffffffffffffffffffffffffffffff166131c5565b15612df8578373ffffffffffffffffffffffffffffffffffffffff1663150b7a02612cc1611e3c565b8786866040518563ffffffff1660e01b8152600401612ce3949392919061471e565b602060405180830381600087803b158015612cfd57600080fd5b505af1925050508015612d2e57506040513d601f19601f82011682018060405250810190612d2b919061477f565b60015b612da8573d8060008114612d5e576040519150601f19603f3d011682016040523d82523d6000602084013e612d63565b606091505b50600081511415612da0576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050612dfd565b600190505b949350505050565b600d54612e5d82600c60008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600001546123e790919063ffffffff16565b1115612e9e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612e95906146a9565b60405180910390fd5b80600c60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000016000828254612ef091906145ad565b925050819055505050565b8183604051602001612f0d91906147f4565b6040516020818303038152906040528051906020012014612f63576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612f5a9061485b565b60405180910390fd5b612f7081600f54846131e8565b612faf576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612fa6906148c7565b60405180910390fd5b505050565b6060600b8054612fc390613fb6565b80601f0160208091040260200160405190810160405280929190818152602001828054612fef90613fb6565b801561303c5780601f106130115761010080835404028352916020019161303c565b820191906000526020600020905b81548152906001019060200180831161301f57829003601f168201915b5050505050905090565b6060600082141561308e576040518060400160405280600181526020017f300000000000000000000000000000000000000000000000000000000000000081525090506131a2565b600082905060005b600082146130c05780806130a9906148e7565b915050600a826130b9919061495f565b9150613096565b60008167ffffffffffffffff8111156130dc576130db613a19565b5b6040519080825280601f01601f19166020018201604052801561310e5781602001600182028036833780820191505090505b5090505b6000851461319b576001826131279190614990565b9150600a8561313691906149c4565b603061314291906145ad565b60f81b818381518110613158576131576149f5565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a85613194919061495f565b9450613112565b8093505050505b919050565b50505050565b50505050565b6131c083838360016131ff565b505050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b6000826131f58584613537565b1490509392505050565b60006001549050600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff16141561326d576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008414156132a8576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6132b560008683876131a7565b83600660008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160008282829054906101000a900467ffffffffffffffff160192506101000a81548167ffffffffffffffff021916908367ffffffffffffffff16021790555083600660008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160088282829054906101000a900467ffffffffffffffff160192506101000a81548167ffffffffffffffff021916908367ffffffffffffffff160217905550846005600083815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550426005600083815260200190815260200160002060000160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff160217905550600081905060005b8581101561351a57818773ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a48380156134ce57506134cc6000888488612c77565b155b15613505576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b81806001019250508080600101915050613453565b50806001819055505061353060008683876131ad565b5050505050565b60008082905060005b84518110156135a157600085828151811061355e5761355d6149f5565b5b602002602001015190508083116135805761357983826135ac565b925061358d565b61358a81846135ac565b92505b508080613599906148e7565b915050613540565b508091505092915050565b600082600052816020526040600020905092915050565b8280546135cf90613fb6565b90600052602060002090601f0160209004810192826135f15760008555613638565b82601f1061360a57805160ff1916838001178555613638565b82800160010185558215613638579182015b8281111561363757825182559160200191906001019061361c565b5b509050613645919061368c565b5090565b6040518060600160405280600073ffffffffffffffffffffffffffffffffffffffff168152602001600067ffffffffffffffff1681526020016000151581525090565b5b808211156136a557600081600090555060010161368d565b5090565b6000819050919050565b6136bc816136a9565b82525050565b60006020820190506136d760008301846136b3565b92915050565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b613726816136f1565b811461373157600080fd5b50565b6000813590506137438161371d565b92915050565b60006020828403121561375f5761375e6136e7565b5b600061376d84828501613734565b91505092915050565b60008115159050919050565b61378b81613776565b82525050565b60006020820190506137a66000830184613782565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b838110156137e65780820151818401526020810190506137cb565b838111156137f5576000848401525b50505050565b6000601f19601f8301169050919050565b6000613817826137ac565b61382181856137b7565b93506138318185602086016137c8565b61383a816137fb565b840191505092915050565b6000602082019050818103600083015261385f818461380c565b905092915050565b613870816136a9565b811461387b57600080fd5b50565b60008135905061388d81613867565b92915050565b6000602082840312156138a9576138a86136e7565b5b60006138b78482850161387e565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006138eb826138c0565b9050919050565b6138fb816138e0565b82525050565b600060208201905061391660008301846138f2565b92915050565b613925816138e0565b811461393057600080fd5b50565b6000813590506139428161391c565b92915050565b6000806040838503121561395f5761395e6136e7565b5b600061396d85828601613933565b925050602061397e8582860161387e565b9150509250929050565b6000806000606084860312156139a1576139a06136e7565b5b60006139af86828701613933565b93505060206139c086828701613933565b92505060406139d18682870161387e565b9150509250925092565b6000819050919050565b6139ee816139db565b82525050565b6000602082019050613a0960008301846139e5565b92915050565b600080fd5b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b613a51826137fb565b810181811067ffffffffffffffff82111715613a7057613a6f613a19565b5b80604052505050565b6000613a836136dd565b9050613a8f8282613a48565b919050565b600067ffffffffffffffff821115613aaf57613aae613a19565b5b613ab8826137fb565b9050602081019050919050565b82818337600083830152505050565b6000613ae7613ae284613a94565b613a79565b905082815260208101848484011115613b0357613b02613a14565b5b613b0e848285613ac5565b509392505050565b600082601f830112613b2b57613b2a613a0f565b5b8135613b3b848260208601613ad4565b91505092915050565b600060208284031215613b5a57613b596136e7565b5b600082013567ffffffffffffffff811115613b7857613b776136ec565b5b613b8484828501613b16565b91505092915050565b60008060408385031215613ba457613ba36136e7565b5b6000613bb28582860161387e565b9250506020613bc38582860161387e565b9150509250929050565b600060208284031215613be357613be26136e7565b5b6000613bf184828501613933565b91505092915050565b613c03816139db565b8114613c0e57600080fd5b50565b600081359050613c2081613bfa565b92915050565b600060208284031215613c3c57613c3b6136e7565b5b6000613c4a84828501613c11565b91505092915050565b613c5c81613776565b8114613c6757600080fd5b50565b600081359050613c7981613c53565b92915050565b60008060408385031215613c9657613c956136e7565b5b6000613ca485828601613933565b9250506020613cb585828601613c6a565b9150509250929050565b600067ffffffffffffffff821115613cda57613cd9613a19565b5b613ce3826137fb565b9050602081019050919050565b6000613d03613cfe84613cbf565b613a79565b905082815260208101848484011115613d1f57613d1e613a14565b5b613d2a848285613ac5565b509392505050565b600082601f830112613d4757613d46613a0f565b5b8135613d57848260208601613cf0565b91505092915050565b60008060008060808587031215613d7a57613d796136e7565b5b6000613d8887828801613933565b9450506020613d9987828801613933565b9350506040613daa8782880161387e565b925050606085013567ffffffffffffffff811115613dcb57613dca6136ec565b5b613dd787828801613d32565b91505092959194509250565b600060208284031215613df957613df86136e7565b5b6000613e0784828501613c6a565b91505092915050565b600067ffffffffffffffff821115613e2b57613e2a613a19565b5b602082029050602081019050919050565b600080fd5b6000613e54613e4f84613e10565b613a79565b90508083825260208201905060208402830185811115613e7757613e76613e3c565b5b835b81811015613ea05780613e8c8882613c11565b845260208401935050602081019050613e79565b5050509392505050565b600082601f830112613ebf57613ebe613a0f565b5b8135613ecf848260208601613e41565b91505092915050565b600080600060608486031215613ef157613ef06136e7565b5b6000613eff86828701613c11565b935050602084013567ffffffffffffffff811115613f2057613f1f6136ec565b5b613f2c86828701613eaa565b9250506040613f3d8682870161387e565b9150509250925092565b60008060408385031215613f5e57613f5d6136e7565b5b6000613f6c85828601613933565b9250506020613f7d85828601613933565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60006002820490506001821680613fce57607f821691505b60208210811415613fe257613fe1613f87565b5b50919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b600061401e6020836137b7565b915061402982613fe8565b602082019050919050565b6000602082019050818103600083015261404d81614011565b9050919050565b7f496e76616c6953616c6550726963650000000000000000000000000000000000600082015250565b600061408a600f836137b7565b915061409582614054565b602082019050919050565b600060208201905081810360008301526140b98161407d565b9050919050565b7f496e76616c6950726573616c6550726963650000000000000000000000000000600082015250565b60006140f66012836137b7565b9150614101826140c0565b602082019050919050565b60006020820190508181036000830152614125816140e9565b9050919050565b7f50757263686173654578656564734d6178537570706c79000000000000000000600082015250565b60006141626017836137b7565b915061416d8261412c565b602082019050919050565b6000602082019050818103600083015261419181614155565b9050919050565b7f53616c654e6f7441637469766500000000000000000000000000000000000000600082015250565b60006141ce600d836137b7565b91506141d982614198565b602082019050919050565b600060208201905081810360008301526141fd816141c1565b9050919050565b7f496e636f727265637453616c6556616c75650000000000000000000000000000600082015250565b600061423a6012836137b7565b915061424582614204565b602082019050919050565b600060208201905081810360008301526142698161422d565b9050919050565b7f4e6f74506f736974697665000000000000000000000000000000000000000000600082015250565b60006142a6600b836137b7565b91506142b182614270565b602082019050919050565b600060208201905081810360008301526142d581614299565b9050919050565b7f496e76616c6950726573616c65537570706c7900000000000000000000000000600082015250565b60006143126013836137b7565b915061431d826142dc565b602082019050919050565b6000602082019050818103600083015261434181614305565b9050919050565b7f50726573616c654e6f7441637469766500000000000000000000000000000000600082015250565b600061437e6010836137b7565b915061438982614348565b602082019050919050565b600060208201905081810360008301526143ad81614371565b9050919050565b7f507572636861736545786565647350726573616c65537570706c790000000000600082015250565b60006143ea601b836137b7565b91506143f5826143b4565b602082019050919050565b60006020820190508181036000830152614419816143dd565b9050919050565b7f496e636f727265637450726573616c6556616c75650000000000000000000000600082015250565b60006144566015836137b7565b915061446182614420565b602082019050919050565b6000602082019050818103600083015261448581614449565b9050919050565b600081905092915050565b60006144a2826137ac565b6144ac818561448c565b93506144bc8185602086016137c8565b80840191505092915050565b60006144d48285614497565b91506144e08284614497565b91508190509392505050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b60006145486026836137b7565b9150614553826144ec565b604082019050919050565b600060208201905081810360008301526145778161453b565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60006145b8826136a9565b91506145c3836136a9565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff038211156145f8576145f761457e565b5b828201905092915050565b600061460e826136a9565b9150614619836136a9565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04831182151516156146525761465161457e565b5b828202905092915050565b7f4d61785075726368617365457865656465640000000000000000000000000000600082015250565b60006146936012836137b7565b915061469e8261465d565b602082019050919050565b600060208201905081810360008301526146c281614686565b9050919050565b600081519050919050565b600082825260208201905092915050565b60006146f0826146c9565b6146fa81856146d4565b935061470a8185602086016137c8565b614713816137fb565b840191505092915050565b600060808201905061473360008301876138f2565b61474060208301866138f2565b61474d60408301856136b3565b818103606083015261475f81846146e5565b905095945050505050565b6000815190506147798161371d565b92915050565b600060208284031215614795576147946136e7565b5b60006147a38482850161476a565b91505092915050565b60008160601b9050919050565b60006147c4826147ac565b9050919050565b60006147d6826147b9565b9050919050565b6147ee6147e9826138e0565b6147cb565b82525050565b600061480082846147dd565b60148201915081905092915050565b7f496e76616c69644d65726b6c6544617461000000000000000000000000000000600082015250565b60006148456011836137b7565b91506148508261480f565b602082019050919050565b6000602082019050818103600083015261487481614838565b9050919050565b7f4e6f7457686974656c6973746564000000000000000000000000000000000000600082015250565b60006148b1600e836137b7565b91506148bc8261487b565b602082019050919050565b600060208201905081810360008301526148e0816148a4565b9050919050565b60006148f2826136a9565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8214156149255761492461457e565b5b600182019050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b600061496a826136a9565b9150614975836136a9565b92508261498557614984614930565b5b828204905092915050565b600061499b826136a9565b91506149a6836136a9565b9250828210156149b9576149b861457e565b5b828203905092915050565b60006149cf826136a9565b91506149da836136a9565b9250826149ea576149e9614930565b5b828206905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fdfea264697066735822122089b4db41fcf4e9f63b94dafb888968584919d26b31470b0059d119cd08d7698564736f6c6343000809003300000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000000a43656c65737469616c7300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000943454c45535449414c0000000000000000000000000000000000000000000000

Deployed Bytecode

0x6080604052600436106102455760003560e01c806370a0823111610139578063bce4d6ae116100b6578063d7224ba01161007a578063d7224ba01461081f578063e985e9c51461084a578063eb8d244414610887578063efa5860a146108b2578063f2fde38b146108dd578063f51f96dd1461090657610245565b8063bce4d6ae14610749578063bdce8ab714610772578063c4e370951461078e578063c87b56dd146107b7578063d5abeb01146107f457610245565b806395d89b41116100fd57806395d89b4114610678578063a22cb465146106a3578063b3a196e9146106cc578063b88d4fde146106f7578063b96502cb1461072057610245565b806370a08231146105a5578063715018a6146105e25780637cb64759146105f95780638a9b3f5c146106225780638da5cb5b1461064d57610245565b80633549345e116101c75780634875bccb1161018b5780634875bccb146104d157806355f804b3146104ed5780636352211e14610516578063648f3b01146105535780636f8b44b01461057c57610245565b80633549345e146104165780633ccfd60b1461043f578063408cbf941461045657806342842e0e1461047f57806342966c68146104a857610245565b806318160ddd1161020e57806318160ddd146103435780631919fed71461036e57806323b872dd146103975780632eb4a7ab146103c057806330f72cd4146103eb57610245565b80620e7fa81461024a57806301ffc9a71461027557806306fdde03146102b2578063081812fc146102dd578063095ea7b31461031a575b600080fd5b34801561025657600080fd5b5061025f610931565b60405161026c91906136c2565b60405180910390f35b34801561028157600080fd5b5061029c60048036038101906102979190613749565b610937565b6040516102a99190613791565b60405180910390f35b3480156102be57600080fd5b506102c7610a19565b6040516102d49190613845565b60405180910390f35b3480156102e957600080fd5b5061030460048036038101906102ff9190613893565b610aab565b6040516103119190613901565b60405180910390f35b34801561032657600080fd5b50610341600480360381019061033c9190613948565b610b27565b005b34801561034f57600080fd5b50610358610c32565b60405161036591906136c2565b60405180910390f35b34801561037a57600080fd5b5061039560048036038101906103909190613893565b610c40565b005b3480156103a357600080fd5b506103be60048036038101906103b99190613988565b610d09565b005b3480156103cc57600080fd5b506103d5610d19565b6040516103e291906139f4565b60405180910390f35b3480156103f757600080fd5b50610400610d1f565b60405161040d9190613791565b60405180910390f35b34801561042257600080fd5b5061043d60048036038101906104389190613893565b610d32565b005b34801561044b57600080fd5b50610454610dfb565b005b34801561046257600080fd5b5061047d60048036038101906104789190613948565b610ecd565b005b34801561048b57600080fd5b506104a660048036038101906104a19190613988565b610fb5565b005b3480156104b457600080fd5b506104cf60048036038101906104ca9190613893565b610fd5565b005b6104eb60048036038101906104e69190613893565b6110c6565b005b3480156104f957600080fd5b50610514600480360381019061050f9190613b44565b611190565b005b34801561052257600080fd5b5061053d60048036038101906105389190613893565b611226565b60405161054a9190613901565b60405180910390f35b34801561055f57600080fd5b5061057a60048036038101906105759190613b8d565b61123c565b005b34801561058857600080fd5b506105a3600480360381019061059e9190613893565b6112ca565b005b3480156105b157600080fd5b506105cc60048036038101906105c79190613bcd565b611393565b6040516105d991906136c2565b60405180910390f35b3480156105ee57600080fd5b506105f7611463565b005b34801561060557600080fd5b50610620600480360381019061061b9190613c26565b6114eb565b005b34801561062e57600080fd5b50610637611571565b60405161064491906136c2565b60405180910390f35b34801561065957600080fd5b50610662611577565b60405161066f9190613901565b60405180910390f35b34801561068457600080fd5b5061068d6115a0565b60405161069a9190613845565b60405180910390f35b3480156106af57600080fd5b506106ca60048036038101906106c59190613c7f565b611632565b005b3480156106d857600080fd5b506106e16117aa565b6040516106ee91906136c2565b60405180910390f35b34801561070357600080fd5b5061071e60048036038101906107199190613d60565b6117b0565b005b34801561072c57600080fd5b5061074760048036038101906107429190613893565b611803565b005b34801561075557600080fd5b50610770600480360381019061076b9190613de3565b6118da565b005b61078c60048036038101906107879190613ed8565b611973565b005b34801561079a57600080fd5b506107b560048036038101906107b09190613de3565b611aa8565b005b3480156107c357600080fd5b506107de60048036038101906107d99190613893565b611b41565b6040516107eb9190613845565b60405180910390f35b34801561080057600080fd5b50610809611be0565b60405161081691906136c2565b60405180910390f35b34801561082b57600080fd5b50610834611be6565b60405161084191906136c2565b60405180910390f35b34801561085657600080fd5b50610871600480360381019061086c9190613f47565b611bec565b60405161087e9190613791565b60405180910390f35b34801561089357600080fd5b5061089c611c80565b6040516108a99190613791565b60405180910390f35b3480156108be57600080fd5b506108c7611c93565b6040516108d491906136c2565b60405180910390f35b3480156108e957600080fd5b5061090460048036038101906108ff9190613bcd565b611c99565b005b34801561091257600080fd5b5061091b611d91565b60405161092891906136c2565b60405180910390f35b60125481565b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480610a0257507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80610a125750610a1182611d97565b5b9050919050565b606060038054610a2890613fb6565b80601f0160208091040260200160405190810160405280929190818152602001828054610a5490613fb6565b8015610aa15780601f10610a7657610100808354040283529160200191610aa1565b820191906000526020600020905b815481529060010190602001808311610a8457829003601f168201915b5050505050905090565b6000610ab682611e01565b610aec576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6007600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610b3282611226565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610b9a576040517f943f7b8c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610bb9611e3c565b73ffffffffffffffffffffffffffffffffffffffff1614158015610beb5750610be981610be4611e3c565b611bec565b155b15610c22576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610c2d838383611e44565b505050565b600060025460015403905090565b610c48611e3c565b73ffffffffffffffffffffffffffffffffffffffff16610c66611577565b73ffffffffffffffffffffffffffffffffffffffff1614610cbc576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610cb390614034565b60405180910390fd5b60008111610cff576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610cf6906140a0565b60405180910390fd5b8060148190555050565b610d14838383611ef6565b505050565b600f5481565b601060009054906101000a900460ff1681565b610d3a611e3c565b73ffffffffffffffffffffffffffffffffffffffff16610d58611577565b73ffffffffffffffffffffffffffffffffffffffff1614610dae576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610da590614034565b60405180910390fd5b60008111610df1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610de89061410c565b60405180910390fd5b8060128190555050565b610e03611e3c565b73ffffffffffffffffffffffffffffffffffffffff16610e21611577565b73ffffffffffffffffffffffffffffffffffffffff1614610e77576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e6e90614034565b60405180910390fd5b6000479050610e84611e3c565b73ffffffffffffffffffffffffffffffffffffffff166108fc829081150290604051600060405180830381858888f19350505050158015610ec9573d6000803e3d6000fd5b5050565b610ed5611e3c565b73ffffffffffffffffffffffffffffffffffffffff16610ef3611577565b73ffffffffffffffffffffffffffffffffffffffff1614610f49576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f4090614034565b60405180910390fd5b600a54610f6682610f58610c32565b6123e790919063ffffffff16565b1115610fa7576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f9e90614178565b60405180910390fd5b610fb182826123fd565b5050565b610fd0838383604051806020016040528060008152506117b0565b505050565b6000610fe08261241b565b90506000816000015173ffffffffffffffffffffffffffffffffffffffff16611007611e3c565b73ffffffffffffffffffffffffffffffffffffffff16148061103a57506110398260000151611034611e3c565b611bec565b5b8061107f5750611048611e3c565b73ffffffffffffffffffffffffffffffffffffffff1661106784610aab565b73ffffffffffffffffffffffffffffffffffffffff16145b9050806110b8576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6110c183612697565b505050565b60006110d0611e3c565b9050601360009054906101000a900460ff16611121576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611118906141e4565b60405180910390fd5b3461113783601454612a3b90919063ffffffff16565b1115611178576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161116f90614250565b60405180910390fd5b6111828183612a51565b61118c8183612b47565b5050565b611198611e3c565b73ffffffffffffffffffffffffffffffffffffffff166111b6611577565b73ffffffffffffffffffffffffffffffffffffffff161461120c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161120390614034565b60405180910390fd5b80600b90805190602001906112229291906135c3565b5050565b60006112318261241b565b600001519050919050565b611244611e3c565b73ffffffffffffffffffffffffffffffffffffffff16611262611577565b73ffffffffffffffffffffffffffffffffffffffff16146112b8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112af90614034565b60405180910390fd5b81600d8190555080600e819055505050565b6112d2611e3c565b73ffffffffffffffffffffffffffffffffffffffff166112f0611577565b73ffffffffffffffffffffffffffffffffffffffff1614611346576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161133d90614034565b60405180910390fd5b60008111611389576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611380906142bc565b60405180910390fd5b80600a8190555050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156113fb576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600660008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160009054906101000a900467ffffffffffffffff1667ffffffffffffffff169050919050565b61146b611e3c565b73ffffffffffffffffffffffffffffffffffffffff16611489611577565b73ffffffffffffffffffffffffffffffffffffffff16146114df576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114d690614034565b60405180910390fd5b6114e96000612bb3565b565b6114f3611e3c565b73ffffffffffffffffffffffffffffffffffffffff16611511611577565b73ffffffffffffffffffffffffffffffffffffffff1614611567576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161155e90614034565b60405180910390fd5b80600f8190555050565b600e5481565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6060600480546115af90613fb6565b80601f01602080910402602001604051908101604052809291908181526020018280546115db90613fb6565b80156116285780601f106115fd57610100808354040283529160200191611628565b820191906000526020600020905b81548152906001019060200180831161160b57829003601f168201915b5050505050905090565b61163a611e3c565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141561169f576040517fb06307db00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80600860006116ac611e3c565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff16611759611e3c565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c318360405161179e9190613791565b60405180910390a35050565b60115481565b6117bb848484611ef6565b6117c784848484612c77565b6117fd576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b50505050565b61180b611e3c565b73ffffffffffffffffffffffffffffffffffffffff16611829611577565b73ffffffffffffffffffffffffffffffffffffffff161461187f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161187690614034565b60405180910390fd5b6000811180156118915750600a548111155b6118d0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118c790614328565b60405180910390fd5b8060118190555050565b6118e2611e3c565b73ffffffffffffffffffffffffffffffffffffffff16611900611577565b73ffffffffffffffffffffffffffffffffffffffff1614611956576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161194d90614034565b60405180910390fd5b80601060006101000a81548160ff02191690831515021790555050565b600061197d611e3c565b9050601060009054906101000a900460ff166119ce576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119c590614394565b60405180910390fd5b6011546119eb836119dd610c32565b6123e790919063ffffffff16565b1115611a2c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a2390614400565b60405180910390fd5b34611a4283601254612a3b90919063ffffffff16565b1115611a83576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a7a9061446c565b60405180910390fd5b611a8d8183612e05565b611a98818585612efb565b611aa28183612b47565b50505050565b611ab0611e3c565b73ffffffffffffffffffffffffffffffffffffffff16611ace611577565b73ffffffffffffffffffffffffffffffffffffffff1614611b24576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b1b90614034565b60405180910390fd5b80601360006101000a81548160ff02191690831515021790555050565b6060611b4c82611e01565b611b82576040517fa14c4b5000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000611b8c612fb4565b9050600081511415611bad5760405180602001604052806000815250611bd8565b80611bb784613046565b604051602001611bc89291906144c8565b6040516020818303038152906040525b915050919050565b600a5481565b60095481565b6000600860008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b601360009054906101000a900460ff1681565b600d5481565b611ca1611e3c565b73ffffffffffffffffffffffffffffffffffffffff16611cbf611577565b73ffffffffffffffffffffffffffffffffffffffff1614611d15576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d0c90614034565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611d85576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d7c9061455e565b60405180910390fd5b611d8e81612bb3565b50565b60145481565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b600060015482108015611e35575060056000838152602001908152602001600020600001601c9054906101000a900460ff16155b9050919050565b600033905090565b826007600084815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b6000611f018261241b565b90506000816000015173ffffffffffffffffffffffffffffffffffffffff16611f28611e3c565b73ffffffffffffffffffffffffffffffffffffffff161480611f5b5750611f5a8260000151611f55611e3c565b611bec565b5b80611fa05750611f69611e3c565b73ffffffffffffffffffffffffffffffffffffffff16611f8884610aab565b73ffffffffffffffffffffffffffffffffffffffff16145b905080611fd9576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8473ffffffffffffffffffffffffffffffffffffffff16826000015173ffffffffffffffffffffffffffffffffffffffff1614612042576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1614156120a9576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6120b685858560016131a7565b6120c66000848460000151611e44565b6001600660008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160008282829054906101000a900467ffffffffffffffff160392506101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055506001600660008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160008282829054906101000a900467ffffffffffffffff160192506101000a81548167ffffffffffffffff021916908367ffffffffffffffff160217905550836005600085815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550426005600085815260200190815260200160002060000160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055506000600184019050600073ffffffffffffffffffffffffffffffffffffffff166005600083815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161415612377576001548110156123765782600001516005600083815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555082602001516005600083815260200190815260200160002060000160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055505b5b50828473ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46123e085858560016131ad565b5050505050565b600081836123f591906145ad565b905092915050565b6124178282604051806020016040528060008152506131b3565b5050565b612423613649565b6000829050600154811015612660576000600560008381526020019081526020016000206040518060600160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a900467ffffffffffffffff1667ffffffffffffffff1667ffffffffffffffff16815260200160008201601c9054906101000a900460ff1615151515815250509050806040015161265e57600073ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff1614612542578092505050612692565b5b60011561265d57818060019003925050600560008381526020019081526020016000206040518060600160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a900467ffffffffffffffff1667ffffffffffffffff1667ffffffffffffffff16815260200160008201601c9054906101000a900460ff1615151515815250509050600073ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff1614612658578092505050612692565b612543565b5b505b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b919050565b60006126a28261241b565b90506126b6816000015160008460016131a7565b6126c66000838360000151611e44565b600160066000836000015173ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160008282829054906101000a900467ffffffffffffffff160392506101000a81548167ffffffffffffffff021916908367ffffffffffffffff160217905550600160066000836000015173ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160108282829054906101000a900467ffffffffffffffff160192506101000a81548167ffffffffffffffff021916908367ffffffffffffffff16021790555080600001516005600084815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550426005600084815260200190815260200160002060000160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff160217905550600160056000848152602001908152602001600020600001601c6101000a81548160ff0219169083151502179055506000600183019050600073ffffffffffffffffffffffffffffffffffffffff166005600083815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614156129b2576001548110156129b15781600001516005600083815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555081602001516005600083815260200190815260200160002060000160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055505b5b5081600073ffffffffffffffffffffffffffffffffffffffff16826000015173ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4612a25816000015160008460016131ad565b6002600081548092919060010191905055505050565b60008183612a499190614603565b905092915050565b600e54612aa982600c60008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600101546123e790919063ffffffff16565b1115612aea576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612ae1906146a9565b60405180910390fd5b80600c60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206001016000828254612b3c91906145ad565b925050819055505050565b600a54612b6482612b56610c32565b6123e790919063ffffffff16565b1115612ba5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612b9c90614178565b60405180910390fd5b612baf82826123fd565b5050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b6000612c988473ffffffffffffffffffffffffffffffffffffffff166131c5565b15612df8578373ffffffffffffffffffffffffffffffffffffffff1663150b7a02612cc1611e3c565b8786866040518563ffffffff1660e01b8152600401612ce3949392919061471e565b602060405180830381600087803b158015612cfd57600080fd5b505af1925050508015612d2e57506040513d601f19601f82011682018060405250810190612d2b919061477f565b60015b612da8573d8060008114612d5e576040519150601f19603f3d011682016040523d82523d6000602084013e612d63565b606091505b50600081511415612da0576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050612dfd565b600190505b949350505050565b600d54612e5d82600c60008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600001546123e790919063ffffffff16565b1115612e9e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612e95906146a9565b60405180910390fd5b80600c60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000016000828254612ef091906145ad565b925050819055505050565b8183604051602001612f0d91906147f4565b6040516020818303038152906040528051906020012014612f63576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612f5a9061485b565b60405180910390fd5b612f7081600f54846131e8565b612faf576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612fa6906148c7565b60405180910390fd5b505050565b6060600b8054612fc390613fb6565b80601f0160208091040260200160405190810160405280929190818152602001828054612fef90613fb6565b801561303c5780601f106130115761010080835404028352916020019161303c565b820191906000526020600020905b81548152906001019060200180831161301f57829003601f168201915b5050505050905090565b6060600082141561308e576040518060400160405280600181526020017f300000000000000000000000000000000000000000000000000000000000000081525090506131a2565b600082905060005b600082146130c05780806130a9906148e7565b915050600a826130b9919061495f565b9150613096565b60008167ffffffffffffffff8111156130dc576130db613a19565b5b6040519080825280601f01601f19166020018201604052801561310e5781602001600182028036833780820191505090505b5090505b6000851461319b576001826131279190614990565b9150600a8561313691906149c4565b603061314291906145ad565b60f81b818381518110613158576131576149f5565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a85613194919061495f565b9450613112565b8093505050505b919050565b50505050565b50505050565b6131c083838360016131ff565b505050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b6000826131f58584613537565b1490509392505050565b60006001549050600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff16141561326d576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008414156132a8576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6132b560008683876131a7565b83600660008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160008282829054906101000a900467ffffffffffffffff160192506101000a81548167ffffffffffffffff021916908367ffffffffffffffff16021790555083600660008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160088282829054906101000a900467ffffffffffffffff160192506101000a81548167ffffffffffffffff021916908367ffffffffffffffff160217905550846005600083815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550426005600083815260200190815260200160002060000160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff160217905550600081905060005b8581101561351a57818773ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a48380156134ce57506134cc6000888488612c77565b155b15613505576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b81806001019250508080600101915050613453565b50806001819055505061353060008683876131ad565b5050505050565b60008082905060005b84518110156135a157600085828151811061355e5761355d6149f5565b5b602002602001015190508083116135805761357983826135ac565b925061358d565b61358a81846135ac565b92505b508080613599906148e7565b915050613540565b508091505092915050565b600082600052816020526040600020905092915050565b8280546135cf90613fb6565b90600052602060002090601f0160209004810192826135f15760008555613638565b82601f1061360a57805160ff1916838001178555613638565b82800160010185558215613638579182015b8281111561363757825182559160200191906001019061361c565b5b509050613645919061368c565b5090565b6040518060600160405280600073ffffffffffffffffffffffffffffffffffffffff168152602001600067ffffffffffffffff1681526020016000151581525090565b5b808211156136a557600081600090555060010161368d565b5090565b6000819050919050565b6136bc816136a9565b82525050565b60006020820190506136d760008301846136b3565b92915050565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b613726816136f1565b811461373157600080fd5b50565b6000813590506137438161371d565b92915050565b60006020828403121561375f5761375e6136e7565b5b600061376d84828501613734565b91505092915050565b60008115159050919050565b61378b81613776565b82525050565b60006020820190506137a66000830184613782565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b838110156137e65780820151818401526020810190506137cb565b838111156137f5576000848401525b50505050565b6000601f19601f8301169050919050565b6000613817826137ac565b61382181856137b7565b93506138318185602086016137c8565b61383a816137fb565b840191505092915050565b6000602082019050818103600083015261385f818461380c565b905092915050565b613870816136a9565b811461387b57600080fd5b50565b60008135905061388d81613867565b92915050565b6000602082840312156138a9576138a86136e7565b5b60006138b78482850161387e565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006138eb826138c0565b9050919050565b6138fb816138e0565b82525050565b600060208201905061391660008301846138f2565b92915050565b613925816138e0565b811461393057600080fd5b50565b6000813590506139428161391c565b92915050565b6000806040838503121561395f5761395e6136e7565b5b600061396d85828601613933565b925050602061397e8582860161387e565b9150509250929050565b6000806000606084860312156139a1576139a06136e7565b5b60006139af86828701613933565b93505060206139c086828701613933565b92505060406139d18682870161387e565b9150509250925092565b6000819050919050565b6139ee816139db565b82525050565b6000602082019050613a0960008301846139e5565b92915050565b600080fd5b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b613a51826137fb565b810181811067ffffffffffffffff82111715613a7057613a6f613a19565b5b80604052505050565b6000613a836136dd565b9050613a8f8282613a48565b919050565b600067ffffffffffffffff821115613aaf57613aae613a19565b5b613ab8826137fb565b9050602081019050919050565b82818337600083830152505050565b6000613ae7613ae284613a94565b613a79565b905082815260208101848484011115613b0357613b02613a14565b5b613b0e848285613ac5565b509392505050565b600082601f830112613b2b57613b2a613a0f565b5b8135613b3b848260208601613ad4565b91505092915050565b600060208284031215613b5a57613b596136e7565b5b600082013567ffffffffffffffff811115613b7857613b776136ec565b5b613b8484828501613b16565b91505092915050565b60008060408385031215613ba457613ba36136e7565b5b6000613bb28582860161387e565b9250506020613bc38582860161387e565b9150509250929050565b600060208284031215613be357613be26136e7565b5b6000613bf184828501613933565b91505092915050565b613c03816139db565b8114613c0e57600080fd5b50565b600081359050613c2081613bfa565b92915050565b600060208284031215613c3c57613c3b6136e7565b5b6000613c4a84828501613c11565b91505092915050565b613c5c81613776565b8114613c6757600080fd5b50565b600081359050613c7981613c53565b92915050565b60008060408385031215613c9657613c956136e7565b5b6000613ca485828601613933565b9250506020613cb585828601613c6a565b9150509250929050565b600067ffffffffffffffff821115613cda57613cd9613a19565b5b613ce3826137fb565b9050602081019050919050565b6000613d03613cfe84613cbf565b613a79565b905082815260208101848484011115613d1f57613d1e613a14565b5b613d2a848285613ac5565b509392505050565b600082601f830112613d4757613d46613a0f565b5b8135613d57848260208601613cf0565b91505092915050565b60008060008060808587031215613d7a57613d796136e7565b5b6000613d8887828801613933565b9450506020613d9987828801613933565b9350506040613daa8782880161387e565b925050606085013567ffffffffffffffff811115613dcb57613dca6136ec565b5b613dd787828801613d32565b91505092959194509250565b600060208284031215613df957613df86136e7565b5b6000613e0784828501613c6a565b91505092915050565b600067ffffffffffffffff821115613e2b57613e2a613a19565b5b602082029050602081019050919050565b600080fd5b6000613e54613e4f84613e10565b613a79565b90508083825260208201905060208402830185811115613e7757613e76613e3c565b5b835b81811015613ea05780613e8c8882613c11565b845260208401935050602081019050613e79565b5050509392505050565b600082601f830112613ebf57613ebe613a0f565b5b8135613ecf848260208601613e41565b91505092915050565b600080600060608486031215613ef157613ef06136e7565b5b6000613eff86828701613c11565b935050602084013567ffffffffffffffff811115613f2057613f1f6136ec565b5b613f2c86828701613eaa565b9250506040613f3d8682870161387e565b9150509250925092565b60008060408385031215613f5e57613f5d6136e7565b5b6000613f6c85828601613933565b9250506020613f7d85828601613933565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60006002820490506001821680613fce57607f821691505b60208210811415613fe257613fe1613f87565b5b50919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b600061401e6020836137b7565b915061402982613fe8565b602082019050919050565b6000602082019050818103600083015261404d81614011565b9050919050565b7f496e76616c6953616c6550726963650000000000000000000000000000000000600082015250565b600061408a600f836137b7565b915061409582614054565b602082019050919050565b600060208201905081810360008301526140b98161407d565b9050919050565b7f496e76616c6950726573616c6550726963650000000000000000000000000000600082015250565b60006140f66012836137b7565b9150614101826140c0565b602082019050919050565b60006020820190508181036000830152614125816140e9565b9050919050565b7f50757263686173654578656564734d6178537570706c79000000000000000000600082015250565b60006141626017836137b7565b915061416d8261412c565b602082019050919050565b6000602082019050818103600083015261419181614155565b9050919050565b7f53616c654e6f7441637469766500000000000000000000000000000000000000600082015250565b60006141ce600d836137b7565b91506141d982614198565b602082019050919050565b600060208201905081810360008301526141fd816141c1565b9050919050565b7f496e636f727265637453616c6556616c75650000000000000000000000000000600082015250565b600061423a6012836137b7565b915061424582614204565b602082019050919050565b600060208201905081810360008301526142698161422d565b9050919050565b7f4e6f74506f736974697665000000000000000000000000000000000000000000600082015250565b60006142a6600b836137b7565b91506142b182614270565b602082019050919050565b600060208201905081810360008301526142d581614299565b9050919050565b7f496e76616c6950726573616c65537570706c7900000000000000000000000000600082015250565b60006143126013836137b7565b915061431d826142dc565b602082019050919050565b6000602082019050818103600083015261434181614305565b9050919050565b7f50726573616c654e6f7441637469766500000000000000000000000000000000600082015250565b600061437e6010836137b7565b915061438982614348565b602082019050919050565b600060208201905081810360008301526143ad81614371565b9050919050565b7f507572636861736545786565647350726573616c65537570706c790000000000600082015250565b60006143ea601b836137b7565b91506143f5826143b4565b602082019050919050565b60006020820190508181036000830152614419816143dd565b9050919050565b7f496e636f727265637450726573616c6556616c75650000000000000000000000600082015250565b60006144566015836137b7565b915061446182614420565b602082019050919050565b6000602082019050818103600083015261448581614449565b9050919050565b600081905092915050565b60006144a2826137ac565b6144ac818561448c565b93506144bc8185602086016137c8565b80840191505092915050565b60006144d48285614497565b91506144e08284614497565b91508190509392505050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b60006145486026836137b7565b9150614553826144ec565b604082019050919050565b600060208201905081810360008301526145778161453b565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60006145b8826136a9565b91506145c3836136a9565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff038211156145f8576145f761457e565b5b828201905092915050565b600061460e826136a9565b9150614619836136a9565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04831182151516156146525761465161457e565b5b828202905092915050565b7f4d61785075726368617365457865656465640000000000000000000000000000600082015250565b60006146936012836137b7565b915061469e8261465d565b602082019050919050565b600060208201905081810360008301526146c281614686565b9050919050565b600081519050919050565b600082825260208201905092915050565b60006146f0826146c9565b6146fa81856146d4565b935061470a8185602086016137c8565b614713816137fb565b840191505092915050565b600060808201905061473360008301876138f2565b61474060208301866138f2565b61474d60408301856136b3565b818103606083015261475f81846146e5565b905095945050505050565b6000815190506147798161371d565b92915050565b600060208284031215614795576147946136e7565b5b60006147a38482850161476a565b91505092915050565b60008160601b9050919050565b60006147c4826147ac565b9050919050565b60006147d6826147b9565b9050919050565b6147ee6147e9826138e0565b6147cb565b82525050565b600061480082846147dd565b60148201915081905092915050565b7f496e76616c69644d65726b6c6544617461000000000000000000000000000000600082015250565b60006148456011836137b7565b91506148508261480f565b602082019050919050565b6000602082019050818103600083015261487481614838565b9050919050565b7f4e6f7457686974656c6973746564000000000000000000000000000000000000600082015250565b60006148b1600e836137b7565b91506148bc8261487b565b602082019050919050565b600060208201905081810360008301526148e0816148a4565b9050919050565b60006148f2826136a9565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8214156149255761492461457e565b5b600182019050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b600061496a826136a9565b9150614975836136a9565b92508261498557614984614930565b5b828204905092915050565b600061499b826136a9565b91506149a6836136a9565b9250828210156149b9576149b861457e565b5b828203905092915050565b60006149cf826136a9565b91506149da836136a9565b9250826149ea576149e9614930565b5b828206905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fdfea264697066735822122089b4db41fcf4e9f63b94dafb888968584919d26b31470b0059d119cd08d7698564736f6c63430008090033

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

00000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000000a43656c65737469616c7300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000943454c45535449414c0000000000000000000000000000000000000000000000

-----Decoded View---------------
Arg [0] : name (string): Celestials
Arg [1] : symbol (string): CELESTIAL

-----Encoded View---------------
6 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000040
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000080
Arg [2] : 000000000000000000000000000000000000000000000000000000000000000a
Arg [3] : 43656c65737469616c7300000000000000000000000000000000000000000000
Arg [4] : 0000000000000000000000000000000000000000000000000000000000000009
Arg [5] : 43454c45535449414c0000000000000000000000000000000000000000000000


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.