ETH Price: $3,895.63 (-0.64%)

Genesis (GENESIS)
 

Overview

TokenID

7197

Total Transfers

-

Market

Onchain Market Cap

$0.00

Circulating Supply Market Cap

-

Other Info

Loading...
Loading
Loading...
Loading
Loading...
Loading

OVERVIEW

We are all SENSHIs Generated to Win. Infiltrating from within the metaverse, out to the real world as a community driven decentralized IP.

# Exchange Pair Price  24H Volume % Volume

Contract Source Code Verified (Exact Match)

Contract Name:
Genesis

Compiler Version
v0.8.7+commit.e28d00a7

Optimization Enabled:
Yes with 1000 runs

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

import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "erc721a/contracts/ERC721A.sol";
import "@openzeppelin/contracts/utils/Strings.sol";
import "@openzeppelin/contracts/security/Pausable.sol";
import "@openzeppelin/contracts/token/common/ERC2981.sol";

contract Genesis is Ownable, ERC721A, ERC2981, ReentrancyGuard, Pausable {
    using Strings for uint256;

    struct SaleInfo {
        uint8 step;
        uint16 amount;
        uint256 price;
        uint256 mintStartTime;
    }

    uint8 private constant FREE_MINT_STEP = 0;
    uint8 private constant MINT_LIST_STEP = 1;
    uint8 private constant WHITE_LIST_STEP = 2;
    uint8 private constant PUBLIC_STEP = 3;
    uint8 private constant WAIT_LIST_STEP = 4;
    uint8 private constant STEP_COUNT = 5;

    string private metadataUri;
    uint256 public constant maxSupply = 10000;

    mapping(address => uint8) public freeMintAddress;
    mapping(address => uint8) public mintListAddress;
    mapping(address => uint8) public whiteListAddress;
    mapping(address => uint8) public publicAddress;
    mapping(address => uint8) public waitListAddress;

    SaleInfo[] public saleInfoList;
    uint256[] private accumulatedSaleAmount;

    bool private isRevealed = false;

    constructor(
        uint16[] memory _amounts,
        uint256[] memory _prices,
        uint256[] memory _mintStartTimes,
        string memory _metadataUri,
        address _royaltyReceiver,
        uint96 _royaltyFeeNumerator
    ) ERC721A("Genesis", "GENESIS") {
        require(
            _amounts.length + _prices.length + _mintStartTimes.length == (STEP_COUNT) * 3,
            "Invalid Argument : param length"
        );
        require(_amounts[0] + _amounts[1] + _amounts[2] + _amounts[3] <= maxSupply, "Invalid Argument : maxSupply");

        for (uint8 i = 0; i < STEP_COUNT; i++) {
            saleInfoList.push(SaleInfo(i, _amounts[i], _prices[i], _mintStartTimes[i]));

            if (i > 0) {
                accumulatedSaleAmount.push(accumulatedSaleAmount[i - 1] + _amounts[i]);
            } else {
                accumulatedSaleAmount.push(_amounts[i]);
            }
        }

        metadataUri = _metadataUri;
        _setDefaultRoyalty(_royaltyReceiver, _royaltyFeeNumerator);
    }

    function tokenURI(uint256 _tokenId) public view override returns (string memory) {
        require(_exists(_tokenId), "ERC721Metadata: URI query for nonexistent token");
        if (!isRevealed) {
            return string(abi.encodePacked(metadataUri, "prereveal"));
        }
        return string(abi.encodePacked(metadataUri, Strings.toString(_tokenId)));
    }

    function contractURI() public view returns (string memory) {
        return string(abi.encodePacked(metadataUri, "contractURI"));
    }

    function mint(uint8 amount, uint8 step) external payable nonReentrant whenNotPaused isNotContract {
        require(_checkMintStepValid(step), "Not exist mint step");

        uint8 _currStep = getCurrentStep();
        if (_currStep != step) {
            revert("Steps that have not started or are finished");
        }

        uint256 _price = saleInfoList[step].price * amount;
        require(msg.value == _price, "Invalid ETH balance");

        require(_totalMinted() + amount <= accumulatedSaleAmount[step], "Sold out in this step");
        if (step == FREE_MINT_STEP) {
            _mintForEachStep(amount, freeMintAddress);
        } else if (step == MINT_LIST_STEP) {
            _mintForEachStep(amount, mintListAddress);
        } else if (step == WHITE_LIST_STEP) {
            _mintForEachStep(amount, whiteListAddress);
        } else if (step == PUBLIC_STEP) {
            _mintForEachStep(amount, publicAddress);
        } else if (step == WAIT_LIST_STEP) {
            _mintForEachStep(amount, waitListAddress);
        }
    }

    function getCurrentStep() public view returns (uint8) {
        uint8 _step;
        for (_step = STEP_COUNT - 1; _step >= 0; _step--) {
            if (block.timestamp >= saleInfoList[_step].mintStartTime) {
                return _step;
            }
        }
        revert("Minting hasn't started yet");
    }

    function isSoldout(uint8 step) public view returns (bool) {
        require(_checkMintStepValid(step), "Not exist mint step");
        return _totalMinted() == accumulatedSaleAmount[step];
    }

    function getMintableAmount(uint8 step) public view returns (uint256) {
        require(_checkMintStepValid(step), "Not exist mint step");
        return accumulatedSaleAmount[step] - _totalMinted();
    }

    function _mintForEachStep(uint8 amount, mapping(address => uint8) storage allowList) private {
        require(allowList[msg.sender] - amount >= 0, "Don't have mint authority");
        allowList[msg.sender] -= amount;
        _safeMint(msg.sender, amount);
    }

    function _checkMintStepValid(uint8 step) internal pure returns (bool) {
        return step < STEP_COUNT;
    }

    function burn(uint256 tokenId) external onlyOwner {
        _burn(tokenId);
    }

    function withdraw() external onlyOwner {
        (bool success, ) = msg.sender.call{value: address(this).balance}("");
        if (!success) {
            revert("Ether transfer failed");
        }
    }

    function pause() external onlyOwner {
        _pause();
    }

    function unpause() external onlyOwner {
        _unpause();
    }

    function _setMintAuthority(
        address _address,
        uint8 step,
        uint8 _amount
    ) private {
        require(_address != address(0), "address can't be 0");
        require(_checkMintStepValid(step), "Not exist mint step");

        if (step == FREE_MINT_STEP) {
            freeMintAddress[_address] = _amount;
        } else if (step == MINT_LIST_STEP) {
            mintListAddress[_address] = _amount;
        } else if (step == WHITE_LIST_STEP) {
            whiteListAddress[_address] = _amount;
        } else if (step == PUBLIC_STEP) {
            publicAddress[_address] = _amount;
        } else if (step == WAIT_LIST_STEP) {
            waitListAddress[_address] = _amount;
        } else {
            revert("Not exist mint step");
        }
    }

    function setBulkMintAuthority(
        address[] calldata _addressList,
        uint8 step,
        uint8[] calldata _amountList
    ) external onlyOwner {
        require(_addressList.length == _amountList.length, "Invalid argument : different argument size");

        for (uint256 i = 0; i < _addressList.length; i++) {
            _setMintAuthority(_addressList[i], step, _amountList[i]);
        }
    }

    function setSaleAmount(uint16[] memory _amounts) external onlyOwner {
        require(_amounts.length == STEP_COUNT, "Invalid argument");
        for (uint8 i = 0; i < STEP_COUNT; i++) {
            saleInfoList[i].amount = _amounts[i];
            if (i > 0) {
                accumulatedSaleAmount[i] = accumulatedSaleAmount[i - 1] + _amounts[i];
            } else {
                accumulatedSaleAmount[i] = _amounts[i];
            }
        }

        require(maxSupply >= accumulatedSaleAmount[STEP_COUNT - 1], "Invalid argument : exceed maxSupply");
    }

    function setSalePrice(uint256[] memory _prices) external onlyOwner {
        require(_prices.length == STEP_COUNT, "Invalid argument");
        for (uint8 i = 0; i < STEP_COUNT; i++) {
            if (i > 0) {
                require(saleInfoList[i - 1].price <= _prices[i], "Invalid argument");
            }
            saleInfoList[i].price = _prices[i];
        }
    }

    function setMintStartTime(uint256[] memory _mintStartTimes) external onlyOwner {
        require(_mintStartTimes.length == STEP_COUNT, "Invalid argument");
        for (uint8 i = 0; i < STEP_COUNT; i++) {
            if (i > 0) {
                require(saleInfoList[i - 1].mintStartTime <= _mintStartTimes[i], "Invalid argument");
            }
            saleInfoList[i].mintStartTime = _mintStartTimes[i];
        }
    }

    function setMetadataUri(string calldata _metadataUri) external onlyOwner {
        metadataUri = _metadataUri;
    }

    function setIsReveal(bool _isReveal) external onlyOwner {
        isRevealed = _isReveal;
    }

    function setDefaultRoyalty(address receiver, uint96 feeNumerator) external onlyOwner {
        super._setDefaultRoyalty(receiver, feeNumerator);
    }

    function supportsInterface(bytes4 interfaceId) public view virtual override(ERC721A, ERC2981) returns (bool) {
        return super.supportsInterface(interfaceId);
    }

    modifier isNotContract() {
        require(msg.sender == tx.origin, "Sender is not EOA");
        _;
    }
}

File 2 of 16 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (access/Ownable.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

File 3 of 16 : ReentrancyGuard.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (security/ReentrancyGuard.sol)

pragma solidity ^0.8.0;

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

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

    uint256 private _status;

    constructor() {
        _status = _NOT_ENTERED;
    }

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

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

        _;

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

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

pragma solidity ^0.8.4;

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/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 MintToZeroAddress();
error MintZeroQuantity();
error OwnerQueryForNonexistentToken();
error TransferCallerNotOwnerNorApproved();
error TransferFromIncorrectOwner();
error TransferToNonERC721ReceiverImplementer();
error TransferToZeroAddress();
error URIQueryForNonexistentToken();

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

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

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

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

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

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

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

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

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

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

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

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

    /**
     * @dev Burned tokens are calculated here, use _totalMinted() if you want to count just minted tokens.
     */
    function totalSupply() public view returns (uint256) {
        // Counter underflow is impossible as _burnCounter cannot be incremented
        // more than _currentIndex - _startTokenId() times
        unchecked {
            return _currentIndex - _burnCounter - _startTokenId();
        }
    }

    /**
     * Returns the total amount of tokens minted in the contract.
     */
    function _totalMinted() internal view returns (uint256) {
        // Counter underflow is impossible as _currentIndex does not decrement,
        // and it is initialized to _startTokenId()
        unchecked {
            return _currentIndex - _startTokenId();
        }
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        _approve(to, tokenId, owner);
    }

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

        return _tokenApprovals[tokenId];
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

            uint256 updatedIndex = startTokenId;
            uint256 end = updatedIndex + quantity;

            if (safe && to.isContract()) {
                do {
                    emit Transfer(address(0), to, updatedIndex);
                    if (!_checkContractOnERC721Received(address(0), to, updatedIndex++, _data)) {
                        revert TransferToNonERC721ReceiverImplementer();
                    }
                } while (updatedIndex != end);
                // Reentrancy protection
                if (_currentIndex != startTokenId) revert();
            } else {
                do {
                    emit Transfer(address(0), to, updatedIndex++);
                } while (updatedIndex != end);
            }
            _currentIndex = updatedIndex;
        }
        _afterTokenTransfers(address(0), to, startTokenId, quantity);
    }

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

        if (prevOwnership.addr != from) revert TransferFromIncorrectOwner();

        bool isApprovedOrOwner = (_msgSender() == from ||
            isApprovedForAll(from, _msgSender()) ||
            getApproved(tokenId) == _msgSender());

        if (!isApprovedOrOwner) revert TransferCallerNotOwnerNorApproved();
        if (to == address(0)) revert TransferToZeroAddress();

        _beforeTokenTransfers(from, to, tokenId, 1);

        // Clear approvals from the previous owner
        _approve(address(0), tokenId, from);

        // Underflow of the sender's balance is impossible because we check for
        // ownership above and the recipient's balance can't realistically overflow.
        // Counter overflow is incredibly unrealistic as tokenId would have to be 2**256.
        unchecked {
            _addressData[from].balance -= 1;
            _addressData[to].balance += 1;

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

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

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

    /**
     * @dev This is equivalent to _burn(tokenId, false)
     */
    function _burn(uint256 tokenId) internal virtual {
        _burn(tokenId, false);
    }

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

        address from = prevOwnership.addr;

        if (approvalCheck) {
            bool isApprovedOrOwner = (_msgSender() == from ||
                isApprovedForAll(from, _msgSender()) ||
                getApproved(tokenId) == _msgSender());

            if (!isApprovedOrOwner) revert TransferCallerNotOwnerNorApproved();
        }

        _beforeTokenTransfers(from, address(0), tokenId, 1);

        // Clear approvals from the previous owner
        _approve(address(0), tokenId, from);

        // Underflow of the sender's balance is impossible because we check for
        // ownership above and the recipient's balance can't realistically overflow.
        // Counter overflow is incredibly unrealistic as tokenId would have to be 2**256.
        unchecked {
            AddressData storage addressData = _addressData[from];
            addressData.balance -= 1;
            addressData.numberBurned += 1;

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

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

        emit Transfer(from, address(0), tokenId);
        _afterTokenTransfers(from, address(0), tokenId, 1);

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

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

    /**
     * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target contract.
     *
     * @param from address representing the previous owner of the given token ID
     * @param to target address that will receive the tokens
     * @param tokenId uint256 ID of the token to be transferred
     * @param _data bytes optional data to send along with the call
     * @return bool whether the call correctly returned the expected magic value
     */
    function _checkContractOnERC721Received(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) private returns (bool) {
        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))
                }
            }
        }
    }

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

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

File 6 of 16 : Pausable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (security/Pausable.sol)

pragma solidity ^0.8.0;

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

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

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

    bool private _paused;

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

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

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

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

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

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

File 7 of 16 : ERC2981.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (token/common/ERC2981.sol)

pragma solidity ^0.8.0;

import "../../interfaces/IERC2981.sol";
import "../../utils/introspection/ERC165.sol";

/**
 * @dev Implementation of the NFT Royalty Standard, a standardized way to retrieve royalty payment information.
 *
 * Royalty information can be specified globally for all token ids via {_setDefaultRoyalty}, and/or individually for
 * specific token ids via {_setTokenRoyalty}. The latter takes precedence over the first.
 *
 * Royalty is specified as a fraction of sale price. {_feeDenominator} is overridable but defaults to 10000, meaning the
 * fee is specified in basis points by default.
 *
 * IMPORTANT: ERC-2981 only specifies a way to signal royalty information and does not enforce its payment. See
 * https://eips.ethereum.org/EIPS/eip-2981#optional-royalty-payments[Rationale] in the EIP. Marketplaces are expected to
 * voluntarily pay royalties together with sales, but note that this standard is not yet widely supported.
 *
 * _Available since v4.5._
 */
abstract contract ERC2981 is IERC2981, ERC165 {
    struct RoyaltyInfo {
        address receiver;
        uint96 royaltyFraction;
    }

    RoyaltyInfo private _defaultRoyaltyInfo;
    mapping(uint256 => RoyaltyInfo) private _tokenRoyaltyInfo;

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

    /**
     * @inheritdoc IERC2981
     */
    function royaltyInfo(uint256 _tokenId, uint256 _salePrice)
        external
        view
        virtual
        override
        returns (address, uint256)
    {
        RoyaltyInfo memory royalty = _tokenRoyaltyInfo[_tokenId];

        if (royalty.receiver == address(0)) {
            royalty = _defaultRoyaltyInfo;
        }

        uint256 royaltyAmount = (_salePrice * royalty.royaltyFraction) / _feeDenominator();

        return (royalty.receiver, royaltyAmount);
    }

    /**
     * @dev The denominator with which to interpret the fee set in {_setTokenRoyalty} and {_setDefaultRoyalty} as a
     * fraction of the sale price. Defaults to 10000 so fees are expressed in basis points, but may be customized by an
     * override.
     */
    function _feeDenominator() internal pure virtual returns (uint96) {
        return 10000;
    }

    /**
     * @dev Sets the royalty information that all ids in this contract will default to.
     *
     * Requirements:
     *
     * - `receiver` cannot be the zero address.
     * - `feeNumerator` cannot be greater than the fee denominator.
     */
    function _setDefaultRoyalty(address receiver, uint96 feeNumerator) internal virtual {
        require(feeNumerator <= _feeDenominator(), "ERC2981: royalty fee will exceed salePrice");
        require(receiver != address(0), "ERC2981: invalid receiver");

        _defaultRoyaltyInfo = RoyaltyInfo(receiver, feeNumerator);
    }

    /**
     * @dev Removes default royalty information.
     */
    function _deleteDefaultRoyalty() internal virtual {
        delete _defaultRoyaltyInfo;
    }

    /**
     * @dev Sets the royalty information for a specific token id, overriding the global default.
     *
     * Requirements:
     *
     * - `tokenId` must be already minted.
     * - `receiver` cannot be the zero address.
     * - `feeNumerator` cannot be greater than the fee denominator.
     */
    function _setTokenRoyalty(
        uint256 tokenId,
        address receiver,
        uint96 feeNumerator
    ) internal virtual {
        require(feeNumerator <= _feeDenominator(), "ERC2981: royalty fee will exceed salePrice");
        require(receiver != address(0), "ERC2981: Invalid parameters");

        _tokenRoyaltyInfo[tokenId] = RoyaltyInfo(receiver, feeNumerator);
    }

    /**
     * @dev Resets royalty information for the token id back to the global default.
     */
    function _resetTokenRoyalty(uint256 tokenId) internal virtual {
        delete _tokenRoyaltyInfo[tokenId];
    }
}

File 8 of 16 : Context.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)

pragma solidity ^0.8.0;

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

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

pragma solidity ^0.8.0;

import "../IERC721.sol";

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

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

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

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

pragma solidity ^0.8.0;

import "./IERC165.sol";

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

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

pragma solidity ^0.8.0;

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

File 15 of 16 : IERC2981.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (interfaces/IERC2981.sol)

pragma solidity ^0.8.0;

import "./IERC165.sol";

/**
 * @dev Interface for the NFT Royalty Standard.
 *
 * A standardized way to retrieve royalty payment information for non-fungible tokens (NFTs) to enable universal
 * support for royalty payments across all NFT marketplaces and ecosystem participants.
 *
 * _Available since v4.5._
 */
interface IERC2981 is IERC165 {
    /**
     * @dev Returns how much royalty is owed and to whom, based on a sale price that may be denominated in any unit of
     * exchange. The royalty amount is denominated and should be payed in that same unit of exchange.
     */
    function royaltyInfo(uint256 tokenId, uint256 salePrice)
        external
        view
        returns (address receiver, uint256 royaltyAmount);
}

File 16 of 16 : IERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (interfaces/IERC165.sol)

pragma solidity ^0.8.0;

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

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"uint16[]","name":"_amounts","type":"uint16[]"},{"internalType":"uint256[]","name":"_prices","type":"uint256[]"},{"internalType":"uint256[]","name":"_mintStartTimes","type":"uint256[]"},{"internalType":"string","name":"_metadataUri","type":"string"},{"internalType":"address","name":"_royaltyReceiver","type":"address"},{"internalType":"uint96","name":"_royaltyFeeNumerator","type":"uint96"}],"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"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[{"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":[],"name":"contractURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"freeMintAddress","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getCurrentStep","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint8","name":"step","type":"uint8"}],"name":"getMintableAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint8","name":"step","type":"uint8"}],"name":"isSoldout","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint8","name":"amount","type":"uint8"},{"internalType":"uint8","name":"step","type":"uint8"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"mintListAddress","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"publicAddress","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"uint256","name":"_salePrice","type":"uint256"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"","type":"address"},{"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":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"saleInfoList","outputs":[{"internalType":"uint8","name":"step","type":"uint8"},{"internalType":"uint16","name":"amount","type":"uint16"},{"internalType":"uint256","name":"price","type":"uint256"},{"internalType":"uint256","name":"mintStartTime","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"_addressList","type":"address[]"},{"internalType":"uint8","name":"step","type":"uint8"},{"internalType":"uint8[]","name":"_amountList","type":"uint8[]"}],"name":"setBulkMintAuthority","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"receiver","type":"address"},{"internalType":"uint96","name":"feeNumerator","type":"uint96"}],"name":"setDefaultRoyalty","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_isReveal","type":"bool"}],"name":"setIsReveal","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_metadataUri","type":"string"}],"name":"setMetadataUri","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"_mintStartTimes","type":"uint256[]"}],"name":"setMintStartTime","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16[]","name":"_amounts","type":"uint16[]"}],"name":"setSaleAmount","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"_prices","type":"uint256[]"}],"name":"setSalePrice","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":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"waitListAddress","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"whiteListAddress","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60806040526015805460ff191690553480156200001b57600080fd5b50604051620042ae380380620042ae8339810160408190526200003e9162000810565b6040518060400160405280600781526020016647656e6573697360c81b8152506040518060400160405280600781526020016647454e4553495360c81b81525062000098620000926200044b60201b60201c565b6200044f565b8151620000ad906003906020850190620005a0565b508051620000c3906004906020840190620005a0565b5060006001908155600b555050600c805460ff19169055620000e8600560036200098a565b60ff16845186518851620000fd91906200096f565b6200010991906200096f565b146200015c5760405162461bcd60e51b815260206004820152601f60248201527f496e76616c696420417267756d656e74203a20706172616d206c656e6774680060448201526064015b60405180910390fd5b6127108660038151811062000175576200017562000a52565b60200260200101518760028151811062000193576200019362000a52565b602002602001015188600181518110620001b157620001b162000a52565b602002602001015189600081518110620001cf57620001cf62000a52565b6020026020010151620001e3919062000946565b620001ef919062000946565b620001fb919062000946565b61ffff1611156200024f5760405162461bcd60e51b815260206004820152601c60248201527f496e76616c696420417267756d656e74203a206d6178537570706c7900000000604482015260640162000153565b60005b600560ff821610156200041c57601360405180608001604052808360ff168152602001898460ff16815181106200028d576200028d62000a52565b602002602001015161ffff168152602001888460ff1681518110620002b657620002b662000a52565b60200260200101518152602001878460ff1681518110620002db57620002db62000a52565b602090810291909101810151909152825460018181018555600094855293829020835160039092020180549284015161ffff166101000262ffffff1990931660ff92831617929092178255604083015193820193909355606090910151600290910155811615620003c6576014878260ff168151811062000360576200036062000a52565b602002602001015161ffff1660146001846200037d9190620009b6565b60ff168154811062000393576200039362000a52565b9060005260206000200154620003aa91906200096f565b8154600181018355600092835260209092209091015562000407565b6014878260ff1681518110620003e057620003e062000a52565b602090810291909101810151825460018101845560009384529190922061ffff9092169101555b80620004138162000a19565b91505062000252565b5082516200043290600d906020860190620005a0565b506200043f82826200049f565b50505050505062000a7e565b3390565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6127106001600160601b03821611156200050f5760405162461bcd60e51b815260206004820152602a60248201527f455243323938313a20726f79616c7479206665652077696c6c206578636565646044820152692073616c65507269636560b01b606482015260840162000153565b6001600160a01b038216620005675760405162461bcd60e51b815260206004820152601960248201527f455243323938313a20696e76616c696420726563656976657200000000000000604482015260640162000153565b604080518082019091526001600160a01b039092168083526001600160601b039091166020909201829052600160a01b90910217600955565b828054620005ae90620009dc565b90600052602060002090601f016020900481019282620005d257600085556200061d565b82601f10620005ed57805160ff19168380011785556200061d565b828001600101855582156200061d579182015b828111156200061d57825182559160200191906001019062000600565b506200062b9291506200062f565b5090565b5b808211156200062b576000815560010162000630565b80516001600160a01b03811681146200065e57600080fd5b919050565b600082601f8301126200067557600080fd5b815160206200068e620006888362000920565b620008ed565b80838252828201915082860187848660051b8901011115620006af57600080fd5b6000805b86811015620006e157825161ffff81168114620006ce578283fd5b85529385019391850191600101620006b3565b509198975050505050505050565b600082601f8301126200070157600080fd5b8151602062000714620006888362000920565b80838252828201915082860187848660051b89010111156200073557600080fd5b60005b85811015620007565781518452928401929084019060010162000738565b5090979650505050505050565b600082601f8301126200077557600080fd5b81516001600160401b0381111562000791576200079162000a68565b6020620007a7601f8301601f19168201620008ed565b8281528582848701011115620007bc57600080fd5b60005b83811015620007dc578581018301518282018401528201620007bf565b83811115620007ee5760008385840101525b5095945050505050565b80516001600160601b03811681146200065e57600080fd5b60008060008060008060c087890312156200082a57600080fd5b86516001600160401b03808211156200084257600080fd5b620008508a838b0162000663565b975060208901519150808211156200086757600080fd5b620008758a838b01620006ef565b965060408901519150808211156200088c57600080fd5b6200089a8a838b01620006ef565b95506060890151915080821115620008b157600080fd5b50620008c089828a0162000763565b935050620008d16080880162000646565b9150620008e160a08801620007f8565b90509295509295509295565b604051601f8201601f191681016001600160401b038111828210171562000918576200091862000a68565b604052919050565b60006001600160401b038211156200093c576200093c62000a68565b5060051b60200190565b600061ffff80831681851680830382111562000966576200096662000a3c565b01949350505050565b6000821982111562000985576200098562000a3c565b500190565b600060ff821660ff84168160ff0481118215151615620009ae57620009ae62000a3c565b029392505050565b600060ff821660ff841680821015620009d357620009d362000a3c565b90039392505050565b600181811c90821680620009f157607f821691505b6020821081141562000a1357634e487b7160e01b600052602260045260246000fd5b50919050565b600060ff821660ff81141562000a335762000a3362000a3c565b60010192915050565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6138208062000a8e6000396000f3fe6080604052600436106102d15760003560e01c80636352211e11610179578063a202110d116100d6578063cf52a7b21161008a578063e8a3d48511610064578063e8a3d4851461082f578063e985e9c514610844578063f2fde38b1461088d57600080fd5b8063cf52a7b2146107c9578063d5abeb01146107f9578063da4030741461080f57600080fd5b8063b88d4fde116100bb578063b88d4fde14610769578063bb1db4f714610789578063c87b56dd146107a957600080fd5b8063a202110d14610719578063a22cb4651461074957600080fd5b80638da5cb5b1161012d5780639809ddb3116101125780639809ddb3146106995780639ba55c20146106c95780639ee78a69146106f957600080fd5b80638da5cb5b1461066657806395d89b411461068457600080fd5b8063715018a61161015e578063715018a61461061c57806378f7c2a0146106315780638456cb591461065157600080fd5b80636352211e146105dc57806370a08231146105fc57600080fd5b806323b872dd116102325780633ccfd60b116101e657806342966c68116101c057806342966c681461058457806352349f52146105a45780635c975abb146105c457600080fd5b80633ccfd60b1461053a5780633f4ba83a1461054f57806342842e0e1461056457600080fd5b80632a55205a116102175780632a55205a146104bb5780632df9a69b146104fa57806334cf27d61461051a57600080fd5b806323b872dd1461048857806329a0eee8146104a857600080fd5b80630ce0aea01161028957806318160ddd1161026e57806318160ddd1461040e57806319075c1c146104315780631d3824ea1461047357600080fd5b80630ce0aea0146103a75780631130630c146103ee57600080fd5b806306fdde03116102ba57806306fdde031461032d578063081812fc1461034f578063095ea7b31461038757600080fd5b806301ffc9a7146102d657806304634d8d1461030b575b600080fd5b3480156102e257600080fd5b506102f66102f13660046132d7565b6108ad565b60405190151581526020015b60405180910390f35b34801561031757600080fd5b5061032b6103263660046130ab565b6108be565b005b34801561033957600080fd5b50610342610919565b604051610302919061359c565b34801561035b57600080fd5b5061036f61036a366004613383565b6109ab565b6040516001600160a01b039091168152602001610302565b34801561039357600080fd5b5061032b6103a2366004613081565b610a08565b3480156103b357600080fd5b506103c76103c2366004613383565b610ac8565b6040805160ff909516855261ffff9093166020850152918301526060820152608001610302565b3480156103fa57600080fd5b5061032b610409366004613311565b610b0a565b34801561041a57600080fd5b50600254600154035b604051908152602001610302565b34801561043d57600080fd5b5061046161044c366004612f06565b600e6020526000908152604090205460ff1681565b60405160ff9091168152602001610302565b34801561047f57600080fd5b50610461610b5e565b34801561049457600080fd5b5061032b6104a3366004612f5b565b610bb5565b61032b6104b63660046133d9565b610bc0565b3480156104c757600080fd5b506104db6104d636600461339c565b610f18565b604080516001600160a01b039093168352602083019190915201610302565b34801561050657600080fd5b506102f66105153660046133be565b610fd5565b34801561052657600080fd5b5061032b610535366004613177565b611051565b34801561054657600080fd5b5061032b6112cf565b34801561055b57600080fd5b5061032b6113af565b34801561057057600080fd5b5061032b61057f366004612f5b565b611401565b34801561059057600080fd5b5061032b61059f366004613383565b61141c565b3480156105b057600080fd5b5061032b6105bf3660046132bc565b61146d565b3480156105d057600080fd5b50600c5460ff166102f6565b3480156105e857600080fd5b5061036f6105f7366004613383565b6114c8565b34801561060857600080fd5b50610423610617366004612f06565b6114da565b34801561062857600080fd5b5061032b611542565b34801561063d57600080fd5b5061032b61064c366004613224565b611594565b34801561065d57600080fd5b5061032b611723565b34801561067257600080fd5b506000546001600160a01b031661036f565b34801561069057600080fd5b50610342611773565b3480156106a557600080fd5b506104616106b4366004612f06565b600f6020526000908152604090205460ff1681565b3480156106d557600080fd5b506104616106e4366004612f06565b60126020526000908152604090205460ff1681565b34801561070557600080fd5b5061032b6107143660046130f3565b611782565b34801561072557600080fd5b50610461610734366004612f06565b60116020526000908152604090205460ff1681565b34801561075557600080fd5b5061032b610764366004613057565b6118bb565b34801561077557600080fd5b5061032b610784366004612f97565b61196a565b34801561079557600080fd5b5061032b6107a4366004613224565b6119bb565b3480156107b557600080fd5b506103426107c4366004613383565b611b4a565b3480156107d557600080fd5b506104616107e4366004612f06565b60106020526000908152604090205460ff1681565b34801561080557600080fd5b5061042361271081565b34801561081b57600080fd5b5061042361082a3660046133be565b611c15565b34801561083b57600080fd5b50610342611c8e565b34801561085057600080fd5b506102f661085f366004612f28565b6001600160a01b03918216600090815260086020908152604080832093909416825291909152205460ff1690565b34801561089957600080fd5b5061032b6108a8366004612f06565b611cb6565b60006108b882611d83565b92915050565b6000546001600160a01b0316331461090b5760405162461bcd60e51b815260206004820181905260248201526000805160206137cb83398151915260448201526064015b60405180910390fd5b6109158282611dc1565b5050565b606060038054610928906136d2565b80601f0160208091040260200160405190810160405280929190818152602001828054610954906136d2565b80156109a15780601f10610976576101008083540402835291602001916109a1565b820191906000526020600020905b81548152906001019060200180831161098457829003601f168201915b5050505050905090565b60006109b682611edb565b6109ec576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b506000908152600760205260409020546001600160a01b031690565b6000610a13826114c8565b9050806001600160a01b0316836001600160a01b03161415610a61576040517f943f7b8c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b336001600160a01b03821614801590610a815750610a7f813361085f565b155b15610ab8576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610ac3838383611f07565b505050565b60138181548110610ad857600080fd5b600091825260209091206003909102018054600182015460029092015460ff8216935061010090910461ffff16919084565b6000546001600160a01b03163314610b525760405162461bcd60e51b815260206004820181905260248201526000805160206137cb8339815191526044820152606401610902565b610ac3600d8383612deb565b600080610b6d60016005613666565b90505b60138160ff1681548110610b8657610b86613788565b9060005260206000209060030201600201544210610ba357919050565b80610bad816136b5565b915050610b70565b610ac3838383611f70565b6002600b541415610c135760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610902565b6002600b55600c5460ff1615610c6b5760405162461bcd60e51b815260206004820152601060248201527f5061757361626c653a20706175736564000000000000000000000000000000006044820152606401610902565b333214610cba5760405162461bcd60e51b815260206004820152601160248201527f53656e646572206973206e6f7420454f410000000000000000000000000000006044820152606401610902565b600560ff821610610d035760405162461bcd60e51b815260206004820152601360248201527204e6f74206578697374206d696e74207374657606c1b6044820152606401610902565b6000610d0d610b5e565b90508160ff168160ff1614610d8a5760405162461bcd60e51b815260206004820152602b60248201527f537465707320746861742068617665206e6f742073746172746564206f72206160448201527f72652066696e69736865640000000000000000000000000000000000000000006064820152608401610902565b60008360ff1660138460ff1681548110610da657610da6613788565b906000526020600020906003020160010154610dc29190613630565b9050803414610e135760405162461bcd60e51b815260206004820152601360248201527f496e76616c6964204554482062616c616e6365000000000000000000000000006044820152606401610902565b60148360ff1681548110610e2957610e29613788565b90600052602060002001548460ff16610e4160015490565b610e4b9190613604565b1115610e995760405162461bcd60e51b815260206004820152601560248201527f536f6c64206f757420696e2074686973207374657000000000000000000000006044820152606401610902565b60ff8316610eb157610eac84600e612193565b610f0d565b60ff831660011415610ec857610eac84600f612193565b60ff831660021415610edf57610eac846010612193565b60ff831660031415610ef657610eac846011612193565b60ff831660041415610f0d57610f0d846012612193565b50506001600b555050565b6000828152600a602090815260408083208151808301909252546001600160a01b038116808352600160a01b9091046bffffffffffffffffffffffff16928201929092528291610f975750604080518082019091526009546001600160a01b0381168252600160a01b90046bffffffffffffffffffffffff1660208201525b602081015160009061271090610fbb906bffffffffffffffffffffffff1687613630565b610fc5919061361c565b91519350909150505b9250929050565b6000600560ff8316106110205760405162461bcd60e51b815260206004820152601360248201527204e6f74206578697374206d696e74207374657606c1b6044820152606401610902565b60148260ff168154811061103657611036613788565b906000526020600020015461104a60015490565b1492915050565b6000546001600160a01b031633146110995760405162461bcd60e51b815260206004820181905260248201526000805160206137cb8339815191526044820152606401610902565b80516005146110dd5760405162461bcd60e51b815260206004820152601060248201526f125b9d985b1a5908185c99dd5b595b9d60821b6044820152606401610902565b60005b600560ff8216101561122857818160ff168151811061110157611101613788565b602002602001015160138260ff168154811061111f5761111f613788565b60009182526020909120600390910201805461ffff929092166101000262ffff001990921691909117905560ff8116156111d257818160ff168151811061116857611168613788565b602002602001015161ffff1660146001836111839190613666565b60ff168154811061119657611196613788565b90600052602060002001546111ab9190613604565b60148260ff16815481106111c1576111c1613788565b600091825260209091200155611216565b818160ff16815181106111e7576111e7613788565b602002602001015161ffff1660148260ff168154811061120957611209613788565b6000918252602090912001555b8061122081613728565b9150506110e0565b50601461123760016005613666565b60ff168154811061124a5761124a613788565b906000526020600020015461271010156112cc5760405162461bcd60e51b815260206004820152602360248201527f496e76616c696420617267756d656e74203a20657863656564206d617853757060448201527f706c7900000000000000000000000000000000000000000000000000000000006064820152608401610902565b50565b6000546001600160a01b031633146113175760405162461bcd60e51b815260206004820181905260248201526000805160206137cb8339815191526044820152606401610902565b604051600090339047908381818185875af1925050503d8060008114611359576040519150601f19603f3d011682016040523d82523d6000602084013e61135e565b606091505b50509050806112cc5760405162461bcd60e51b815260206004820152601560248201527f4574686572207472616e73666572206661696c656400000000000000000000006044820152606401610902565b6000546001600160a01b031633146113f75760405162461bcd60e51b815260206004820181905260248201526000805160206137cb8339815191526044820152606401610902565b6113ff612249565b565b610ac38383836040518060200160405280600081525061196a565b6000546001600160a01b031633146114645760405162461bcd60e51b815260206004820181905260248201526000805160206137cb8339815191526044820152606401610902565b6112cc816122e5565b6000546001600160a01b031633146114b55760405162461bcd60e51b815260206004820181905260248201526000805160206137cb8339815191526044820152606401610902565b6015805460ff1916911515919091179055565b60006114d3826122f0565b5192915050565b60006001600160a01b03821661151c576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b506001600160a01b031660009081526006602052604090205467ffffffffffffffff1690565b6000546001600160a01b0316331461158a5760405162461bcd60e51b815260206004820181905260248201526000805160206137cb8339815191526044820152606401610902565b6113ff6000612425565b6000546001600160a01b031633146115dc5760405162461bcd60e51b815260206004820181905260248201526000805160206137cb8339815191526044820152606401610902565b80516005146116205760405162461bcd60e51b815260206004820152601060248201526f125b9d985b1a5908185c99dd5b595b9d60821b6044820152606401610902565b60005b600560ff821610156109155760ff8116156116ca57818160ff168151811061164d5761164d613788565b602002602001015160136001836116649190613666565b60ff168154811061167757611677613788565b90600052602060002090600302016001015411156116ca5760405162461bcd60e51b815260206004820152601060248201526f125b9d985b1a5908185c99dd5b595b9d60821b6044820152606401610902565b818160ff16815181106116df576116df613788565b602002602001015160138260ff16815481106116fd576116fd613788565b60009182526020909120600160039092020101558061171b81613728565b915050611623565b6000546001600160a01b0316331461176b5760405162461bcd60e51b815260206004820181905260248201526000805160206137cb8339815191526044820152606401610902565b6113ff612482565b606060048054610928906136d2565b6000546001600160a01b031633146117ca5760405162461bcd60e51b815260206004820181905260248201526000805160206137cb8339815191526044820152606401610902565b83811461183f5760405162461bcd60e51b815260206004820152602a60248201527f496e76616c696420617267756d656e74203a20646966666572656e742061726760448201527f756d656e742073697a65000000000000000000000000000000000000000000006064820152608401610902565b60005b848110156118b3576118a186868381811061185f5761185f613788565b90506020020160208101906118749190612f06565b8585858581811061188757611887613788565b905060200201602081019061189c91906133be565b61250a565b806118ab8161370d565b915050611842565b505050505050565b6001600160a01b0382163314156118fe576040517fb06307db00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b3360008181526008602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b611975848484611f70565b6001600160a01b0383163b151580156119975750611995848484846126fb565b155b156119b5576040516368d2bf6b60e11b815260040160405180910390fd5b50505050565b6000546001600160a01b03163314611a035760405162461bcd60e51b815260206004820181905260248201526000805160206137cb8339815191526044820152606401610902565b8051600514611a475760405162461bcd60e51b815260206004820152601060248201526f125b9d985b1a5908185c99dd5b595b9d60821b6044820152606401610902565b60005b600560ff821610156109155760ff811615611af157818160ff1681518110611a7457611a74613788565b60200260200101516013600183611a8b9190613666565b60ff1681548110611a9e57611a9e613788565b9060005260206000209060030201600201541115611af15760405162461bcd60e51b815260206004820152601060248201526f125b9d985b1a5908185c99dd5b595b9d60821b6044820152606401610902565b818160ff1681518110611b0657611b06613788565b602002602001015160138260ff1681548110611b2457611b24613788565b600091825260209091206002600390920201015580611b4281613728565b915050611a4a565b6060611b5582611edb565b611bc75760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201527f6e6578697374656e7420746f6b656e00000000000000000000000000000000006064820152608401610902565b60155460ff16611bf957600d604051602001611be39190613527565b6040516020818303038152906040529050919050565b600d611c04836127f3565b604051602001611be39291906134c9565b6000600560ff831610611c605760405162461bcd60e51b815260206004820152601360248201527204e6f74206578697374206d696e74207374657606c1b6044820152606401610902565b60015460148360ff1681548110611c7957611c79613788565b90600052602060002001546108b8919061364f565b6060600d604051602001611ca291906134ee565b604051602081830303815290604052905090565b6000546001600160a01b03163314611cfe5760405162461bcd60e51b815260206004820181905260248201526000805160206137cb8339815191526044820152606401610902565b6001600160a01b038116611d7a5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610902565b6112cc81612425565b60006001600160e01b031982167f2a55205a0000000000000000000000000000000000000000000000000000000014806108b857506108b882612925565b6127106bffffffffffffffffffffffff82161115611e475760405162461bcd60e51b815260206004820152602a60248201527f455243323938313a20726f79616c7479206665652077696c6c2065786365656460448201527f2073616c655072696365000000000000000000000000000000000000000000006064820152608401610902565b6001600160a01b038216611e9d5760405162461bcd60e51b815260206004820152601960248201527f455243323938313a20696e76616c6964207265636569766572000000000000006044820152606401610902565b604080518082019091526001600160a01b039092168083526bffffffffffffffffffffffff9091166020909201829052600160a01b90910217600955565b6000600154821080156108b8575050600090815260056020526040902054600160e01b900460ff161590565b600082815260076020526040808220805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b6000611f7b826122f0565b9050836001600160a01b031681600001516001600160a01b031614611fcc576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000336001600160a01b0386161480611fea5750611fea853361085f565b80612005575033611ffa846109ab565b6001600160a01b0316145b90508061202557604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b038416612065576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61207160008487611f07565b6001600160a01b038581166000908152600660209081526040808320805467ffffffffffffffff1980821667ffffffffffffffff92831660001901831617909255898616808652838620805493841693831660019081018416949094179055898652600590945282852080546001600160e01b031916909417600160a01b42909216919091021783558701808452922080549193909116612147576001548214612147578054602086015167ffffffffffffffff16600160a01b026001600160e01b03199091166001600160a01b038a16171781555b50505082846001600160a01b0316866001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45b5050505050565b336000908152602082905260408120546121b190849060ff16613666565b60ff1610156122025760405162461bcd60e51b815260206004820152601960248201527f446f6e27742068617665206d696e7420617574686f72697479000000000000006044820152606401610902565b336000908152602082905260408120805484929061222490849060ff16613666565b92506101000a81548160ff021916908360ff160217905550610915338360ff166129c0565b600c5460ff1661229b5760405162461bcd60e51b815260206004820152601460248201527f5061757361626c653a206e6f74207061757365640000000000000000000000006044820152606401610902565b600c805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b6112cc8160006129da565b6040805160608101825260008082526020820181905291810191909152816001548110156123f357600081815260056020908152604091829020825160608101845290546001600160a01b0381168252600160a01b810467ffffffffffffffff1692820192909252600160e01b90910460ff161515918101829052906123f15780516001600160a01b031615612387579392505050565b5060001901600081815260056020908152604091829020825160608101845290546001600160a01b038116808352600160a01b820467ffffffffffffffff1693830193909352600160e01b900460ff16151592810192909252156123ec579392505050565b612387565b505b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600080546001600160a01b0383811673ffffffffffffffffffffffffffffffffffffffff19831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b600c5460ff16156124d55760405162461bcd60e51b815260206004820152601060248201527f5061757361626c653a20706175736564000000000000000000000000000000006044820152606401610902565b600c805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586122c83390565b6001600160a01b0383166125605760405162461bcd60e51b815260206004820152601260248201527f616464726573732063616e2774206265203000000000000000000000000000006044820152606401610902565b600560ff8316106125a95760405162461bcd60e51b815260206004820152601360248201527204e6f74206578697374206d696e74207374657606c1b6044820152606401610902565b60ff82166125dd576001600160a01b0383166000908152600e60205260409020805460ff831660ff19909116179055505050565b60ff821660011415612615576001600160a01b0383166000908152600f60205260409020805460ff831660ff19909116179055505050565b60ff82166002141561264d576001600160a01b0383166000908152601060205260409020805460ff831660ff19909116179055505050565b60ff821660031415612685576001600160a01b0383166000908152601160205260409020805460ff831660ff19909116179055505050565b60ff8216600414156126bd576001600160a01b0383166000908152601260205260409020805460ff831660ff19909116179055505050565b60405162461bcd60e51b815260206004820152601360248201527204e6f74206578697374206d696e74207374657606c1b6044820152606401610902565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a0290612730903390899088908890600401613560565b602060405180830381600087803b15801561274a57600080fd5b505af192505050801561277a575060408051601f3d908101601f19168201909252612777918101906132f4565b60015b6127d5573d8080156127a8576040519150601f19603f3d011682016040523d82523d6000602084013e6127ad565b606091505b5080516127cd576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490505b949350505050565b60608161283357505060408051808201909152600181527f3000000000000000000000000000000000000000000000000000000000000000602082015290565b8160005b811561285d57806128478161370d565b91506128569050600a8361361c565b9150612837565b60008167ffffffffffffffff8111156128785761287861379e565b6040519080825280601f01601f1916602001820160405280156128a2576020820181803683370190505b5090505b84156127eb576128b760018361364f565b91506128c4600a86613748565b6128cf906030613604565b60f81b8183815181106128e4576128e4613788565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a90535061291e600a8661361c565b94506128a6565b60006001600160e01b031982167f80ac58cd00000000000000000000000000000000000000000000000000000000148061298857506001600160e01b031982167f5b5e139f00000000000000000000000000000000000000000000000000000000145b806108b857507f01ffc9a7000000000000000000000000000000000000000000000000000000006001600160e01b03198316146108b8565b610915828260405180602001604052806000815250612bd1565b60006129e5836122f0565b80519091508215612a4b576000336001600160a01b0383161480612a0e5750612a0e823361085f565b80612a29575033612a1e866109ab565b6001600160a01b0316145b905080612a4957604051632ce44b5f60e11b815260040160405180910390fd5b505b612a5760008583611f07565b6001600160a01b038082166000818152600660209081526040808320805470010000000000000000000000000000000060001967ffffffffffffffff80841691909101811667ffffffffffffffff19841681178390048216600190810183169093027fffffffffffffffff0000000000000000ffffffffffffffff0000000000000000909416179290921783558b8652600590945282852080547fffffff00ffffffffffffffffffffffffffffffffffffffffffffffffffffffff42909316600160a01b026001600160e01b03199091169097179690961716600160e01b178555918901808452922080549194909116612b86576001548214612b86578054602087015167ffffffffffffffff16600160a01b026001600160e01b03199091166001600160a01b038716171781555b5050604051869250600091506001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a450506002805460010190555050565b610ac3838383600180546001600160a01b038516612c1b576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b83612c52576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6001600160a01b038516600081815260066020908152604080832080547fffffffffffffffffffffffffffffffff00000000000000000000000000000000811667ffffffffffffffff8083168c0181169182176801000000000000000067ffffffffffffffff1990941690921783900481168c01811690920217909155858452600590925290912080546001600160e01b031916909217600160a01b429092169190910217905580808501838015612d1357506001600160a01b0387163b15155b15612d9c575b60405182906001600160a01b038916906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a4612d6460008884806001019550886126fb565b612d81576040516368d2bf6b60e11b815260040160405180910390fd5b80821415612d19578260015414612d9757600080fd5b612de2565b5b6040516001830192906001600160a01b038916906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a480821415612d9d575b5060015561218c565b828054612df7906136d2565b90600052602060002090601f016020900481019282612e195760008555612e5f565b82601f10612e325782800160ff19823516178555612e5f565b82800160010185558215612e5f579182015b82811115612e5f578235825591602001919060010190612e44565b50612e6b929150612e6f565b5090565b5b80821115612e6b5760008155600101612e70565b80356001600160a01b0381168114612e9b57600080fd5b919050565b60008083601f840112612eb257600080fd5b50813567ffffffffffffffff811115612eca57600080fd5b6020830191508360208260051b8501011115610fce57600080fd5b80358015158114612e9b57600080fd5b803560ff81168114612e9b57600080fd5b600060208284031215612f1857600080fd5b612f2182612e84565b9392505050565b60008060408385031215612f3b57600080fd5b612f4483612e84565b9150612f5260208401612e84565b90509250929050565b600080600060608486031215612f7057600080fd5b612f7984612e84565b9250612f8760208501612e84565b9150604084013590509250925092565b60008060008060808587031215612fad57600080fd5b612fb685612e84565b93506020612fc5818701612e84565b935060408601359250606086013567ffffffffffffffff80821115612fe957600080fd5b818801915088601f830112612ffd57600080fd5b81358181111561300f5761300f61379e565b613021601f8201601f191685016135af565b9150808252898482850101111561303757600080fd5b808484018584013760008482840101525080935050505092959194509250565b6000806040838503121561306a57600080fd5b61307383612e84565b9150612f5260208401612ee5565b6000806040838503121561309457600080fd5b61309d83612e84565b946020939093013593505050565b600080604083850312156130be57600080fd5b6130c783612e84565b915060208301356bffffffffffffffffffffffff811681146130e857600080fd5b809150509250929050565b60008060008060006060868803121561310b57600080fd5b853567ffffffffffffffff8082111561312357600080fd5b61312f89838a01612ea0565b909750955085915061314360208901612ef5565b9450604088013591508082111561315957600080fd5b5061316688828901612ea0565b969995985093965092949392505050565b6000602080838503121561318a57600080fd5b823567ffffffffffffffff8111156131a157600080fd5b8301601f810185136131b257600080fd5b80356131c56131c0826135e0565b6135af565b80828252848201915084840188868560051b87010111156131e557600080fd5b60009450845b8481101561321657813561ffff81168114613204578687fd5b845292860192908601906001016131eb565b509098975050505050505050565b6000602080838503121561323757600080fd5b823567ffffffffffffffff81111561324e57600080fd5b8301601f8101851361325f57600080fd5b803561326d6131c0826135e0565b80828252848201915084840188868560051b870101111561328d57600080fd5b600094505b838510156132b0578035835260019490940193918501918501613292565b50979650505050505050565b6000602082840312156132ce57600080fd5b612f2182612ee5565b6000602082840312156132e957600080fd5b8135612f21816137b4565b60006020828403121561330657600080fd5b8151612f21816137b4565b6000806020838503121561332457600080fd5b823567ffffffffffffffff8082111561333c57600080fd5b818501915085601f83011261335057600080fd5b81358181111561335f57600080fd5b86602082850101111561337157600080fd5b60209290920196919550909350505050565b60006020828403121561339557600080fd5b5035919050565b600080604083850312156133af57600080fd5b50508035926020909101359150565b6000602082840312156133d057600080fd5b612f2182612ef5565b600080604083850312156133ec57600080fd5b6133f583612ef5565b9150612f5260208401612ef5565b6000815180845261341b816020860160208601613689565b601f01601f19169290920160200192915050565b8054600090600181811c908083168061344957607f831692505b602080841082141561346b57634e487b7160e01b600052602260045260246000fd5b81801561347f5760018114613490576134bd565b60ff198616895284890196506134bd565b60008881526020902060005b868110156134b55781548b82015290850190830161349c565b505084890196505b50505050505092915050565b60006134d5828561342f565b83516134e5818360208801613689565b01949350505050565b60006134fa828461342f565b7f636f6e74726163745552490000000000000000000000000000000000000000008152600b019392505050565b6000613533828461342f565b7f70726572657665616c000000000000000000000000000000000000000000000081526009019392505050565b60006001600160a01b038087168352808616602084015250836040830152608060608301526135926080830184613403565b9695505050505050565b602081526000612f216020830184613403565b604051601f8201601f1916810167ffffffffffffffff811182821017156135d8576135d861379e565b604052919050565b600067ffffffffffffffff8211156135fa576135fa61379e565b5060051b60200190565b600082198211156136175761361761375c565b500190565b60008261362b5761362b613772565b500490565b600081600019048311821515161561364a5761364a61375c565b500290565b6000828210156136615761366161375c565b500390565b600060ff821660ff8416808210156136805761368061375c565b90039392505050565b60005b838110156136a457818101518382015260200161368c565b838111156119b55750506000910152565b600060ff8216806136c8576136c861375c565b6000190192915050565b600181811c908216806136e657607f821691505b6020821081141561370757634e487b7160e01b600052602260045260246000fd5b50919050565b60006000198214156137215761372161375c565b5060010190565b600060ff821660ff81141561373f5761373f61375c565b60010192915050565b60008261375757613757613772565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160e01b0319811681146112cc57600080fdfe4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572a26469706673582212201773ea1f8489b399c5113c5820e7fbbda0b1abc992a0a7852b2bffd927bb85a064736f6c6343000807003300000000000000000000000000000000000000000000000000000000000000c0000000000000000000000000000000000000000000000000000000000000018000000000000000000000000000000000000000000000000000000000000002400000000000000000000000000000000000000000000000000000000000000300000000000000000000000000a1c576c8c0e0dc845e54b17e28a665ae977347e700000000000000000000000000000000000000000000000000000000000002ee000000000000000000000000000000000000000000000000000000000000000500000000000000000000000000000000000000000000000000000000000000d40000000000000000000000000000000000000000000000000000000000000406000000000000000000000000000000000000000000000000000000000000111c000000000000000000000000000000000000000000000000000000000000111a000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000050000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000016345785d8a00000000000000000000000000000000000000000000000000000214e8348c4f000000000000000000000000000000000000000000000000000002c68af0bb14000000000000000000000000000000000000000000000000000002c68af0bb140000000000000000000000000000000000000000000000000000000000000000000500000000000000000000000000000000000000000000000000000000627a9a1000000000000000000000000000000000000000000000000000000000627beb9000000000000000000000000000000000000000000000000000000000627d3d1000000000000000000000000000000000000000000000000000000000627e8e9000000000000000000000000000000000000000000000000000000000627f3750000000000000000000000000000000000000000000000000000000000000004b68747470733a2f2f696e667572612d697066732e696f2f697066732f516d596278394a69574567706542714b375774343341736b697069666e766d656235797442574d627757735851672f000000000000000000000000000000000000000000

Deployed Bytecode

0x6080604052600436106102d15760003560e01c80636352211e11610179578063a202110d116100d6578063cf52a7b21161008a578063e8a3d48511610064578063e8a3d4851461082f578063e985e9c514610844578063f2fde38b1461088d57600080fd5b8063cf52a7b2146107c9578063d5abeb01146107f9578063da4030741461080f57600080fd5b8063b88d4fde116100bb578063b88d4fde14610769578063bb1db4f714610789578063c87b56dd146107a957600080fd5b8063a202110d14610719578063a22cb4651461074957600080fd5b80638da5cb5b1161012d5780639809ddb3116101125780639809ddb3146106995780639ba55c20146106c95780639ee78a69146106f957600080fd5b80638da5cb5b1461066657806395d89b411461068457600080fd5b8063715018a61161015e578063715018a61461061c57806378f7c2a0146106315780638456cb591461065157600080fd5b80636352211e146105dc57806370a08231146105fc57600080fd5b806323b872dd116102325780633ccfd60b116101e657806342966c68116101c057806342966c681461058457806352349f52146105a45780635c975abb146105c457600080fd5b80633ccfd60b1461053a5780633f4ba83a1461054f57806342842e0e1461056457600080fd5b80632a55205a116102175780632a55205a146104bb5780632df9a69b146104fa57806334cf27d61461051a57600080fd5b806323b872dd1461048857806329a0eee8146104a857600080fd5b80630ce0aea01161028957806318160ddd1161026e57806318160ddd1461040e57806319075c1c146104315780631d3824ea1461047357600080fd5b80630ce0aea0146103a75780631130630c146103ee57600080fd5b806306fdde03116102ba57806306fdde031461032d578063081812fc1461034f578063095ea7b31461038757600080fd5b806301ffc9a7146102d657806304634d8d1461030b575b600080fd5b3480156102e257600080fd5b506102f66102f13660046132d7565b6108ad565b60405190151581526020015b60405180910390f35b34801561031757600080fd5b5061032b6103263660046130ab565b6108be565b005b34801561033957600080fd5b50610342610919565b604051610302919061359c565b34801561035b57600080fd5b5061036f61036a366004613383565b6109ab565b6040516001600160a01b039091168152602001610302565b34801561039357600080fd5b5061032b6103a2366004613081565b610a08565b3480156103b357600080fd5b506103c76103c2366004613383565b610ac8565b6040805160ff909516855261ffff9093166020850152918301526060820152608001610302565b3480156103fa57600080fd5b5061032b610409366004613311565b610b0a565b34801561041a57600080fd5b50600254600154035b604051908152602001610302565b34801561043d57600080fd5b5061046161044c366004612f06565b600e6020526000908152604090205460ff1681565b60405160ff9091168152602001610302565b34801561047f57600080fd5b50610461610b5e565b34801561049457600080fd5b5061032b6104a3366004612f5b565b610bb5565b61032b6104b63660046133d9565b610bc0565b3480156104c757600080fd5b506104db6104d636600461339c565b610f18565b604080516001600160a01b039093168352602083019190915201610302565b34801561050657600080fd5b506102f66105153660046133be565b610fd5565b34801561052657600080fd5b5061032b610535366004613177565b611051565b34801561054657600080fd5b5061032b6112cf565b34801561055b57600080fd5b5061032b6113af565b34801561057057600080fd5b5061032b61057f366004612f5b565b611401565b34801561059057600080fd5b5061032b61059f366004613383565b61141c565b3480156105b057600080fd5b5061032b6105bf3660046132bc565b61146d565b3480156105d057600080fd5b50600c5460ff166102f6565b3480156105e857600080fd5b5061036f6105f7366004613383565b6114c8565b34801561060857600080fd5b50610423610617366004612f06565b6114da565b34801561062857600080fd5b5061032b611542565b34801561063d57600080fd5b5061032b61064c366004613224565b611594565b34801561065d57600080fd5b5061032b611723565b34801561067257600080fd5b506000546001600160a01b031661036f565b34801561069057600080fd5b50610342611773565b3480156106a557600080fd5b506104616106b4366004612f06565b600f6020526000908152604090205460ff1681565b3480156106d557600080fd5b506104616106e4366004612f06565b60126020526000908152604090205460ff1681565b34801561070557600080fd5b5061032b6107143660046130f3565b611782565b34801561072557600080fd5b50610461610734366004612f06565b60116020526000908152604090205460ff1681565b34801561075557600080fd5b5061032b610764366004613057565b6118bb565b34801561077557600080fd5b5061032b610784366004612f97565b61196a565b34801561079557600080fd5b5061032b6107a4366004613224565b6119bb565b3480156107b557600080fd5b506103426107c4366004613383565b611b4a565b3480156107d557600080fd5b506104616107e4366004612f06565b60106020526000908152604090205460ff1681565b34801561080557600080fd5b5061042361271081565b34801561081b57600080fd5b5061042361082a3660046133be565b611c15565b34801561083b57600080fd5b50610342611c8e565b34801561085057600080fd5b506102f661085f366004612f28565b6001600160a01b03918216600090815260086020908152604080832093909416825291909152205460ff1690565b34801561089957600080fd5b5061032b6108a8366004612f06565b611cb6565b60006108b882611d83565b92915050565b6000546001600160a01b0316331461090b5760405162461bcd60e51b815260206004820181905260248201526000805160206137cb83398151915260448201526064015b60405180910390fd5b6109158282611dc1565b5050565b606060038054610928906136d2565b80601f0160208091040260200160405190810160405280929190818152602001828054610954906136d2565b80156109a15780601f10610976576101008083540402835291602001916109a1565b820191906000526020600020905b81548152906001019060200180831161098457829003601f168201915b5050505050905090565b60006109b682611edb565b6109ec576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b506000908152600760205260409020546001600160a01b031690565b6000610a13826114c8565b9050806001600160a01b0316836001600160a01b03161415610a61576040517f943f7b8c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b336001600160a01b03821614801590610a815750610a7f813361085f565b155b15610ab8576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610ac3838383611f07565b505050565b60138181548110610ad857600080fd5b600091825260209091206003909102018054600182015460029092015460ff8216935061010090910461ffff16919084565b6000546001600160a01b03163314610b525760405162461bcd60e51b815260206004820181905260248201526000805160206137cb8339815191526044820152606401610902565b610ac3600d8383612deb565b600080610b6d60016005613666565b90505b60138160ff1681548110610b8657610b86613788565b9060005260206000209060030201600201544210610ba357919050565b80610bad816136b5565b915050610b70565b610ac3838383611f70565b6002600b541415610c135760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610902565b6002600b55600c5460ff1615610c6b5760405162461bcd60e51b815260206004820152601060248201527f5061757361626c653a20706175736564000000000000000000000000000000006044820152606401610902565b333214610cba5760405162461bcd60e51b815260206004820152601160248201527f53656e646572206973206e6f7420454f410000000000000000000000000000006044820152606401610902565b600560ff821610610d035760405162461bcd60e51b815260206004820152601360248201527204e6f74206578697374206d696e74207374657606c1b6044820152606401610902565b6000610d0d610b5e565b90508160ff168160ff1614610d8a5760405162461bcd60e51b815260206004820152602b60248201527f537465707320746861742068617665206e6f742073746172746564206f72206160448201527f72652066696e69736865640000000000000000000000000000000000000000006064820152608401610902565b60008360ff1660138460ff1681548110610da657610da6613788565b906000526020600020906003020160010154610dc29190613630565b9050803414610e135760405162461bcd60e51b815260206004820152601360248201527f496e76616c6964204554482062616c616e6365000000000000000000000000006044820152606401610902565b60148360ff1681548110610e2957610e29613788565b90600052602060002001548460ff16610e4160015490565b610e4b9190613604565b1115610e995760405162461bcd60e51b815260206004820152601560248201527f536f6c64206f757420696e2074686973207374657000000000000000000000006044820152606401610902565b60ff8316610eb157610eac84600e612193565b610f0d565b60ff831660011415610ec857610eac84600f612193565b60ff831660021415610edf57610eac846010612193565b60ff831660031415610ef657610eac846011612193565b60ff831660041415610f0d57610f0d846012612193565b50506001600b555050565b6000828152600a602090815260408083208151808301909252546001600160a01b038116808352600160a01b9091046bffffffffffffffffffffffff16928201929092528291610f975750604080518082019091526009546001600160a01b0381168252600160a01b90046bffffffffffffffffffffffff1660208201525b602081015160009061271090610fbb906bffffffffffffffffffffffff1687613630565b610fc5919061361c565b91519350909150505b9250929050565b6000600560ff8316106110205760405162461bcd60e51b815260206004820152601360248201527204e6f74206578697374206d696e74207374657606c1b6044820152606401610902565b60148260ff168154811061103657611036613788565b906000526020600020015461104a60015490565b1492915050565b6000546001600160a01b031633146110995760405162461bcd60e51b815260206004820181905260248201526000805160206137cb8339815191526044820152606401610902565b80516005146110dd5760405162461bcd60e51b815260206004820152601060248201526f125b9d985b1a5908185c99dd5b595b9d60821b6044820152606401610902565b60005b600560ff8216101561122857818160ff168151811061110157611101613788565b602002602001015160138260ff168154811061111f5761111f613788565b60009182526020909120600390910201805461ffff929092166101000262ffff001990921691909117905560ff8116156111d257818160ff168151811061116857611168613788565b602002602001015161ffff1660146001836111839190613666565b60ff168154811061119657611196613788565b90600052602060002001546111ab9190613604565b60148260ff16815481106111c1576111c1613788565b600091825260209091200155611216565b818160ff16815181106111e7576111e7613788565b602002602001015161ffff1660148260ff168154811061120957611209613788565b6000918252602090912001555b8061122081613728565b9150506110e0565b50601461123760016005613666565b60ff168154811061124a5761124a613788565b906000526020600020015461271010156112cc5760405162461bcd60e51b815260206004820152602360248201527f496e76616c696420617267756d656e74203a20657863656564206d617853757060448201527f706c7900000000000000000000000000000000000000000000000000000000006064820152608401610902565b50565b6000546001600160a01b031633146113175760405162461bcd60e51b815260206004820181905260248201526000805160206137cb8339815191526044820152606401610902565b604051600090339047908381818185875af1925050503d8060008114611359576040519150601f19603f3d011682016040523d82523d6000602084013e61135e565b606091505b50509050806112cc5760405162461bcd60e51b815260206004820152601560248201527f4574686572207472616e73666572206661696c656400000000000000000000006044820152606401610902565b6000546001600160a01b031633146113f75760405162461bcd60e51b815260206004820181905260248201526000805160206137cb8339815191526044820152606401610902565b6113ff612249565b565b610ac38383836040518060200160405280600081525061196a565b6000546001600160a01b031633146114645760405162461bcd60e51b815260206004820181905260248201526000805160206137cb8339815191526044820152606401610902565b6112cc816122e5565b6000546001600160a01b031633146114b55760405162461bcd60e51b815260206004820181905260248201526000805160206137cb8339815191526044820152606401610902565b6015805460ff1916911515919091179055565b60006114d3826122f0565b5192915050565b60006001600160a01b03821661151c576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b506001600160a01b031660009081526006602052604090205467ffffffffffffffff1690565b6000546001600160a01b0316331461158a5760405162461bcd60e51b815260206004820181905260248201526000805160206137cb8339815191526044820152606401610902565b6113ff6000612425565b6000546001600160a01b031633146115dc5760405162461bcd60e51b815260206004820181905260248201526000805160206137cb8339815191526044820152606401610902565b80516005146116205760405162461bcd60e51b815260206004820152601060248201526f125b9d985b1a5908185c99dd5b595b9d60821b6044820152606401610902565b60005b600560ff821610156109155760ff8116156116ca57818160ff168151811061164d5761164d613788565b602002602001015160136001836116649190613666565b60ff168154811061167757611677613788565b90600052602060002090600302016001015411156116ca5760405162461bcd60e51b815260206004820152601060248201526f125b9d985b1a5908185c99dd5b595b9d60821b6044820152606401610902565b818160ff16815181106116df576116df613788565b602002602001015160138260ff16815481106116fd576116fd613788565b60009182526020909120600160039092020101558061171b81613728565b915050611623565b6000546001600160a01b0316331461176b5760405162461bcd60e51b815260206004820181905260248201526000805160206137cb8339815191526044820152606401610902565b6113ff612482565b606060048054610928906136d2565b6000546001600160a01b031633146117ca5760405162461bcd60e51b815260206004820181905260248201526000805160206137cb8339815191526044820152606401610902565b83811461183f5760405162461bcd60e51b815260206004820152602a60248201527f496e76616c696420617267756d656e74203a20646966666572656e742061726760448201527f756d656e742073697a65000000000000000000000000000000000000000000006064820152608401610902565b60005b848110156118b3576118a186868381811061185f5761185f613788565b90506020020160208101906118749190612f06565b8585858581811061188757611887613788565b905060200201602081019061189c91906133be565b61250a565b806118ab8161370d565b915050611842565b505050505050565b6001600160a01b0382163314156118fe576040517fb06307db00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b3360008181526008602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b611975848484611f70565b6001600160a01b0383163b151580156119975750611995848484846126fb565b155b156119b5576040516368d2bf6b60e11b815260040160405180910390fd5b50505050565b6000546001600160a01b03163314611a035760405162461bcd60e51b815260206004820181905260248201526000805160206137cb8339815191526044820152606401610902565b8051600514611a475760405162461bcd60e51b815260206004820152601060248201526f125b9d985b1a5908185c99dd5b595b9d60821b6044820152606401610902565b60005b600560ff821610156109155760ff811615611af157818160ff1681518110611a7457611a74613788565b60200260200101516013600183611a8b9190613666565b60ff1681548110611a9e57611a9e613788565b9060005260206000209060030201600201541115611af15760405162461bcd60e51b815260206004820152601060248201526f125b9d985b1a5908185c99dd5b595b9d60821b6044820152606401610902565b818160ff1681518110611b0657611b06613788565b602002602001015160138260ff1681548110611b2457611b24613788565b600091825260209091206002600390920201015580611b4281613728565b915050611a4a565b6060611b5582611edb565b611bc75760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201527f6e6578697374656e7420746f6b656e00000000000000000000000000000000006064820152608401610902565b60155460ff16611bf957600d604051602001611be39190613527565b6040516020818303038152906040529050919050565b600d611c04836127f3565b604051602001611be39291906134c9565b6000600560ff831610611c605760405162461bcd60e51b815260206004820152601360248201527204e6f74206578697374206d696e74207374657606c1b6044820152606401610902565b60015460148360ff1681548110611c7957611c79613788565b90600052602060002001546108b8919061364f565b6060600d604051602001611ca291906134ee565b604051602081830303815290604052905090565b6000546001600160a01b03163314611cfe5760405162461bcd60e51b815260206004820181905260248201526000805160206137cb8339815191526044820152606401610902565b6001600160a01b038116611d7a5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610902565b6112cc81612425565b60006001600160e01b031982167f2a55205a0000000000000000000000000000000000000000000000000000000014806108b857506108b882612925565b6127106bffffffffffffffffffffffff82161115611e475760405162461bcd60e51b815260206004820152602a60248201527f455243323938313a20726f79616c7479206665652077696c6c2065786365656460448201527f2073616c655072696365000000000000000000000000000000000000000000006064820152608401610902565b6001600160a01b038216611e9d5760405162461bcd60e51b815260206004820152601960248201527f455243323938313a20696e76616c6964207265636569766572000000000000006044820152606401610902565b604080518082019091526001600160a01b039092168083526bffffffffffffffffffffffff9091166020909201829052600160a01b90910217600955565b6000600154821080156108b8575050600090815260056020526040902054600160e01b900460ff161590565b600082815260076020526040808220805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b6000611f7b826122f0565b9050836001600160a01b031681600001516001600160a01b031614611fcc576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000336001600160a01b0386161480611fea5750611fea853361085f565b80612005575033611ffa846109ab565b6001600160a01b0316145b90508061202557604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b038416612065576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61207160008487611f07565b6001600160a01b038581166000908152600660209081526040808320805467ffffffffffffffff1980821667ffffffffffffffff92831660001901831617909255898616808652838620805493841693831660019081018416949094179055898652600590945282852080546001600160e01b031916909417600160a01b42909216919091021783558701808452922080549193909116612147576001548214612147578054602086015167ffffffffffffffff16600160a01b026001600160e01b03199091166001600160a01b038a16171781555b50505082846001600160a01b0316866001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45b5050505050565b336000908152602082905260408120546121b190849060ff16613666565b60ff1610156122025760405162461bcd60e51b815260206004820152601960248201527f446f6e27742068617665206d696e7420617574686f72697479000000000000006044820152606401610902565b336000908152602082905260408120805484929061222490849060ff16613666565b92506101000a81548160ff021916908360ff160217905550610915338360ff166129c0565b600c5460ff1661229b5760405162461bcd60e51b815260206004820152601460248201527f5061757361626c653a206e6f74207061757365640000000000000000000000006044820152606401610902565b600c805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b6112cc8160006129da565b6040805160608101825260008082526020820181905291810191909152816001548110156123f357600081815260056020908152604091829020825160608101845290546001600160a01b0381168252600160a01b810467ffffffffffffffff1692820192909252600160e01b90910460ff161515918101829052906123f15780516001600160a01b031615612387579392505050565b5060001901600081815260056020908152604091829020825160608101845290546001600160a01b038116808352600160a01b820467ffffffffffffffff1693830193909352600160e01b900460ff16151592810192909252156123ec579392505050565b612387565b505b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600080546001600160a01b0383811673ffffffffffffffffffffffffffffffffffffffff19831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b600c5460ff16156124d55760405162461bcd60e51b815260206004820152601060248201527f5061757361626c653a20706175736564000000000000000000000000000000006044820152606401610902565b600c805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586122c83390565b6001600160a01b0383166125605760405162461bcd60e51b815260206004820152601260248201527f616464726573732063616e2774206265203000000000000000000000000000006044820152606401610902565b600560ff8316106125a95760405162461bcd60e51b815260206004820152601360248201527204e6f74206578697374206d696e74207374657606c1b6044820152606401610902565b60ff82166125dd576001600160a01b0383166000908152600e60205260409020805460ff831660ff19909116179055505050565b60ff821660011415612615576001600160a01b0383166000908152600f60205260409020805460ff831660ff19909116179055505050565b60ff82166002141561264d576001600160a01b0383166000908152601060205260409020805460ff831660ff19909116179055505050565b60ff821660031415612685576001600160a01b0383166000908152601160205260409020805460ff831660ff19909116179055505050565b60ff8216600414156126bd576001600160a01b0383166000908152601260205260409020805460ff831660ff19909116179055505050565b60405162461bcd60e51b815260206004820152601360248201527204e6f74206578697374206d696e74207374657606c1b6044820152606401610902565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a0290612730903390899088908890600401613560565b602060405180830381600087803b15801561274a57600080fd5b505af192505050801561277a575060408051601f3d908101601f19168201909252612777918101906132f4565b60015b6127d5573d8080156127a8576040519150601f19603f3d011682016040523d82523d6000602084013e6127ad565b606091505b5080516127cd576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490505b949350505050565b60608161283357505060408051808201909152600181527f3000000000000000000000000000000000000000000000000000000000000000602082015290565b8160005b811561285d57806128478161370d565b91506128569050600a8361361c565b9150612837565b60008167ffffffffffffffff8111156128785761287861379e565b6040519080825280601f01601f1916602001820160405280156128a2576020820181803683370190505b5090505b84156127eb576128b760018361364f565b91506128c4600a86613748565b6128cf906030613604565b60f81b8183815181106128e4576128e4613788565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a90535061291e600a8661361c565b94506128a6565b60006001600160e01b031982167f80ac58cd00000000000000000000000000000000000000000000000000000000148061298857506001600160e01b031982167f5b5e139f00000000000000000000000000000000000000000000000000000000145b806108b857507f01ffc9a7000000000000000000000000000000000000000000000000000000006001600160e01b03198316146108b8565b610915828260405180602001604052806000815250612bd1565b60006129e5836122f0565b80519091508215612a4b576000336001600160a01b0383161480612a0e5750612a0e823361085f565b80612a29575033612a1e866109ab565b6001600160a01b0316145b905080612a4957604051632ce44b5f60e11b815260040160405180910390fd5b505b612a5760008583611f07565b6001600160a01b038082166000818152600660209081526040808320805470010000000000000000000000000000000060001967ffffffffffffffff80841691909101811667ffffffffffffffff19841681178390048216600190810183169093027fffffffffffffffff0000000000000000ffffffffffffffff0000000000000000909416179290921783558b8652600590945282852080547fffffff00ffffffffffffffffffffffffffffffffffffffffffffffffffffffff42909316600160a01b026001600160e01b03199091169097179690961716600160e01b178555918901808452922080549194909116612b86576001548214612b86578054602087015167ffffffffffffffff16600160a01b026001600160e01b03199091166001600160a01b038716171781555b5050604051869250600091506001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a450506002805460010190555050565b610ac3838383600180546001600160a01b038516612c1b576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b83612c52576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6001600160a01b038516600081815260066020908152604080832080547fffffffffffffffffffffffffffffffff00000000000000000000000000000000811667ffffffffffffffff8083168c0181169182176801000000000000000067ffffffffffffffff1990941690921783900481168c01811690920217909155858452600590925290912080546001600160e01b031916909217600160a01b429092169190910217905580808501838015612d1357506001600160a01b0387163b15155b15612d9c575b60405182906001600160a01b038916906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a4612d6460008884806001019550886126fb565b612d81576040516368d2bf6b60e11b815260040160405180910390fd5b80821415612d19578260015414612d9757600080fd5b612de2565b5b6040516001830192906001600160a01b038916906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a480821415612d9d575b5060015561218c565b828054612df7906136d2565b90600052602060002090601f016020900481019282612e195760008555612e5f565b82601f10612e325782800160ff19823516178555612e5f565b82800160010185558215612e5f579182015b82811115612e5f578235825591602001919060010190612e44565b50612e6b929150612e6f565b5090565b5b80821115612e6b5760008155600101612e70565b80356001600160a01b0381168114612e9b57600080fd5b919050565b60008083601f840112612eb257600080fd5b50813567ffffffffffffffff811115612eca57600080fd5b6020830191508360208260051b8501011115610fce57600080fd5b80358015158114612e9b57600080fd5b803560ff81168114612e9b57600080fd5b600060208284031215612f1857600080fd5b612f2182612e84565b9392505050565b60008060408385031215612f3b57600080fd5b612f4483612e84565b9150612f5260208401612e84565b90509250929050565b600080600060608486031215612f7057600080fd5b612f7984612e84565b9250612f8760208501612e84565b9150604084013590509250925092565b60008060008060808587031215612fad57600080fd5b612fb685612e84565b93506020612fc5818701612e84565b935060408601359250606086013567ffffffffffffffff80821115612fe957600080fd5b818801915088601f830112612ffd57600080fd5b81358181111561300f5761300f61379e565b613021601f8201601f191685016135af565b9150808252898482850101111561303757600080fd5b808484018584013760008482840101525080935050505092959194509250565b6000806040838503121561306a57600080fd5b61307383612e84565b9150612f5260208401612ee5565b6000806040838503121561309457600080fd5b61309d83612e84565b946020939093013593505050565b600080604083850312156130be57600080fd5b6130c783612e84565b915060208301356bffffffffffffffffffffffff811681146130e857600080fd5b809150509250929050565b60008060008060006060868803121561310b57600080fd5b853567ffffffffffffffff8082111561312357600080fd5b61312f89838a01612ea0565b909750955085915061314360208901612ef5565b9450604088013591508082111561315957600080fd5b5061316688828901612ea0565b969995985093965092949392505050565b6000602080838503121561318a57600080fd5b823567ffffffffffffffff8111156131a157600080fd5b8301601f810185136131b257600080fd5b80356131c56131c0826135e0565b6135af565b80828252848201915084840188868560051b87010111156131e557600080fd5b60009450845b8481101561321657813561ffff81168114613204578687fd5b845292860192908601906001016131eb565b509098975050505050505050565b6000602080838503121561323757600080fd5b823567ffffffffffffffff81111561324e57600080fd5b8301601f8101851361325f57600080fd5b803561326d6131c0826135e0565b80828252848201915084840188868560051b870101111561328d57600080fd5b600094505b838510156132b0578035835260019490940193918501918501613292565b50979650505050505050565b6000602082840312156132ce57600080fd5b612f2182612ee5565b6000602082840312156132e957600080fd5b8135612f21816137b4565b60006020828403121561330657600080fd5b8151612f21816137b4565b6000806020838503121561332457600080fd5b823567ffffffffffffffff8082111561333c57600080fd5b818501915085601f83011261335057600080fd5b81358181111561335f57600080fd5b86602082850101111561337157600080fd5b60209290920196919550909350505050565b60006020828403121561339557600080fd5b5035919050565b600080604083850312156133af57600080fd5b50508035926020909101359150565b6000602082840312156133d057600080fd5b612f2182612ef5565b600080604083850312156133ec57600080fd5b6133f583612ef5565b9150612f5260208401612ef5565b6000815180845261341b816020860160208601613689565b601f01601f19169290920160200192915050565b8054600090600181811c908083168061344957607f831692505b602080841082141561346b57634e487b7160e01b600052602260045260246000fd5b81801561347f5760018114613490576134bd565b60ff198616895284890196506134bd565b60008881526020902060005b868110156134b55781548b82015290850190830161349c565b505084890196505b50505050505092915050565b60006134d5828561342f565b83516134e5818360208801613689565b01949350505050565b60006134fa828461342f565b7f636f6e74726163745552490000000000000000000000000000000000000000008152600b019392505050565b6000613533828461342f565b7f70726572657665616c000000000000000000000000000000000000000000000081526009019392505050565b60006001600160a01b038087168352808616602084015250836040830152608060608301526135926080830184613403565b9695505050505050565b602081526000612f216020830184613403565b604051601f8201601f1916810167ffffffffffffffff811182821017156135d8576135d861379e565b604052919050565b600067ffffffffffffffff8211156135fa576135fa61379e565b5060051b60200190565b600082198211156136175761361761375c565b500190565b60008261362b5761362b613772565b500490565b600081600019048311821515161561364a5761364a61375c565b500290565b6000828210156136615761366161375c565b500390565b600060ff821660ff8416808210156136805761368061375c565b90039392505050565b60005b838110156136a457818101518382015260200161368c565b838111156119b55750506000910152565b600060ff8216806136c8576136c861375c565b6000190192915050565b600181811c908216806136e657607f821691505b6020821081141561370757634e487b7160e01b600052602260045260246000fd5b50919050565b60006000198214156137215761372161375c565b5060010190565b600060ff821660ff81141561373f5761373f61375c565b60010192915050565b60008261375757613757613772565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160e01b0319811681146112cc57600080fdfe4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572a26469706673582212201773ea1f8489b399c5113c5820e7fbbda0b1abc992a0a7852b2bffd927bb85a064736f6c63430008070033

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

00000000000000000000000000000000000000000000000000000000000000c0000000000000000000000000000000000000000000000000000000000000018000000000000000000000000000000000000000000000000000000000000002400000000000000000000000000000000000000000000000000000000000000300000000000000000000000000a1c576c8c0e0dc845e54b17e28a665ae977347e700000000000000000000000000000000000000000000000000000000000002ee000000000000000000000000000000000000000000000000000000000000000500000000000000000000000000000000000000000000000000000000000000d40000000000000000000000000000000000000000000000000000000000000406000000000000000000000000000000000000000000000000000000000000111c000000000000000000000000000000000000000000000000000000000000111a000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000050000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000016345785d8a00000000000000000000000000000000000000000000000000000214e8348c4f000000000000000000000000000000000000000000000000000002c68af0bb14000000000000000000000000000000000000000000000000000002c68af0bb140000000000000000000000000000000000000000000000000000000000000000000500000000000000000000000000000000000000000000000000000000627a9a1000000000000000000000000000000000000000000000000000000000627beb9000000000000000000000000000000000000000000000000000000000627d3d1000000000000000000000000000000000000000000000000000000000627e8e9000000000000000000000000000000000000000000000000000000000627f3750000000000000000000000000000000000000000000000000000000000000004b68747470733a2f2f696e667572612d697066732e696f2f697066732f516d596278394a69574567706542714b375774343341736b697069666e766d656235797442574d627757735851672f000000000000000000000000000000000000000000

-----Decoded View---------------
Arg [0] : _amounts (uint16[]): 212,1030,4380,4378,0
Arg [1] : _prices (uint256[]): 0,100000000000000000,150000000000000000,200000000000000000,200000000000000000
Arg [2] : _mintStartTimes (uint256[]): 1652202000,1652288400,1652374800,1652461200,1652504400
Arg [3] : _metadataUri (string): https://infura-ipfs.io/ipfs/QmYbx9JiWEgpeBqK7Wt43Askipifnvmeb5ytBWMbwWsXQg/
Arg [4] : _royaltyReceiver (address): 0xA1C576C8C0e0dc845E54B17e28a665ae977347E7
Arg [5] : _royaltyFeeNumerator (uint96): 750

-----Encoded View---------------
28 Constructor Arguments found :
Arg [0] : 00000000000000000000000000000000000000000000000000000000000000c0
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000180
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000240
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000300
Arg [4] : 000000000000000000000000a1c576c8c0e0dc845e54b17e28a665ae977347e7
Arg [5] : 00000000000000000000000000000000000000000000000000000000000002ee
Arg [6] : 0000000000000000000000000000000000000000000000000000000000000005
Arg [7] : 00000000000000000000000000000000000000000000000000000000000000d4
Arg [8] : 0000000000000000000000000000000000000000000000000000000000000406
Arg [9] : 000000000000000000000000000000000000000000000000000000000000111c
Arg [10] : 000000000000000000000000000000000000000000000000000000000000111a
Arg [11] : 0000000000000000000000000000000000000000000000000000000000000000
Arg [12] : 0000000000000000000000000000000000000000000000000000000000000005
Arg [13] : 0000000000000000000000000000000000000000000000000000000000000000
Arg [14] : 000000000000000000000000000000000000000000000000016345785d8a0000
Arg [15] : 0000000000000000000000000000000000000000000000000214e8348c4f0000
Arg [16] : 00000000000000000000000000000000000000000000000002c68af0bb140000
Arg [17] : 00000000000000000000000000000000000000000000000002c68af0bb140000
Arg [18] : 0000000000000000000000000000000000000000000000000000000000000005
Arg [19] : 00000000000000000000000000000000000000000000000000000000627a9a10
Arg [20] : 00000000000000000000000000000000000000000000000000000000627beb90
Arg [21] : 00000000000000000000000000000000000000000000000000000000627d3d10
Arg [22] : 00000000000000000000000000000000000000000000000000000000627e8e90
Arg [23] : 00000000000000000000000000000000000000000000000000000000627f3750
Arg [24] : 000000000000000000000000000000000000000000000000000000000000004b
Arg [25] : 68747470733a2f2f696e667572612d697066732e696f2f697066732f516d5962
Arg [26] : 78394a69574567706542714b375774343341736b697069666e766d6562357974
Arg [27] : 42574d627757735851672f000000000000000000000000000000000000000000


Loading...
Loading
Loading...
Loading
[ 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.