ETH Price: $3,629.91 (-1.68%)

Kiwami (KIWAMI)
 

Overview

TokenID

2524

Total Transfers

-

Market

Onchain Market Cap

$0.00

Circulating Supply Market Cap

-
Loading...
Loading
Loading...
Loading
Loading...
Loading

OVERVIEW

Kiwami is a collection of 10,000 avatars for a next-generation collective of artists, builders, and rule-breakers. Carefully designed in the metaverse & born in Japan, holders have access to exclusive Kiwami offerings and the opportunity to shape our collective future.

# Exchange Pair Price  24H Volume % Volume

Contract Source Code Verified (Exact Match)

Contract Name:
Kiwami

Compiler Version
v0.8.4+commit.c7e474f2

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 14 : Kiwami.sol
//SPDX-License-Identifier: MIT
pragma solidity ^0.8.4;

import "@openzeppelin/contracts/access/Ownable.sol";
import "erc721a/contracts/ERC721A.sol";
import "./MerkleWhitelist.sol";
import "@openzeppelin/contracts/utils/Strings.sol";

/*
Kiwami.sol

Written by: mousedev.eth
Dutch Auction style inspired by: 0xinuarashi

*/

contract Kiwami is Ownable, ERC721A, MerkleWhitelist {
    //Starting at 0.5 ether
    uint256 public DA_STARTING_PRICE = 0.5 ether;

    //Ending at 0.1 ether
    uint256 public DA_ENDING_PRICE = 0.1 ether;

    //Decrease by 0.05 every frequency.
    uint256 public DA_DECREMENT = 0.05 ether;

    //decrement price every 180 seconds (3 minutes).
    uint256 public DA_DECREMENT_FREQUENCY = 180;

    //Starting DA time (seconds).
    uint256 public DA_STARTING_TIMESTAMP = 1648080000;

    //The final auction price.
    uint256 public DA_FINAL_PRICE;

    //The quantity for DA.
    uint256 public DA_QUANTITY = 7000;

    //How many publicWL have been minted
    uint16 public PUBLIC_WL_MINTED;

    bool public INITIAL_FUNDS_WITHDRAWN;
    bool public REMAINING_FUNDS_WITHDRAWN;

    address public TEAM_USA_ADDRESS =
        0x0E861ddDA17f7C20996dC0868cAcc200bc1985c0;
    address public TEAM_JAPAN_ADDRESS =
        0xBC77EDd603bEf4004c47A831fDDa437cD906442E;
    address public MULTISIG_ADDRESS =
        0xBcAf5e757Ca1ef5F35fC2daBaDcb71dC7418A40D;

    //Contract URI
    string public CONTRACT_URI =
        "ipfs://QmNx5M7Dvgvg6ZNmUX6pdfD4NWZ7oh6RiP2F5b33TrPxCJ";

    //Struct for storing batch price data.
    struct TokenBatchPriceData {
        uint128 pricePaid;
        uint8 quantityMinted;
    }

    //Token to token price data
    mapping(address => TokenBatchPriceData[]) public userToTokenBatchPriceData;

    mapping(address => bool) public userToHasMintedPublicWL;
    mapping(address => bool) public userToHasMintedMiceWL;

    bool public REVEALED;
    string public UNREVEALED_URI =
        "ipfs://QmWQMuChCoTc2jKoDqCVHBxYe6pp1E2KMyW4HG8U7AA6wF";
    string public BASE_URI;

    uint256 public publicWLStartTime = 1648166400;
    uint256 public miceWLStartTime = 1648598400;

    constructor() ERC721A("Kiwami", "KIWAMI") {}

    function currentPrice() public view returns (uint256) {
        require(
            block.timestamp >= DA_STARTING_TIMESTAMP,
            "DA has not started!"
        );

        if (DA_FINAL_PRICE > 0) return DA_FINAL_PRICE;

        //Seconds since we started
        uint256 timeSinceStart = block.timestamp - DA_STARTING_TIMESTAMP;

        //How many decrements should've happened since that time
        uint256 decrementsSinceStart = timeSinceStart / DA_DECREMENT_FREQUENCY;

        //How much eth to remove
        uint256 totalDecrement = decrementsSinceStart * DA_DECREMENT;

        //If how much we want to reduce is greater or equal to the range, return the lowest value
        if (totalDecrement >= DA_STARTING_PRICE - DA_ENDING_PRICE) {
            return DA_ENDING_PRICE;
        }

        //If not, return the starting price minus the decrement.
        return DA_STARTING_PRICE - totalDecrement;
    }

    function mintDutchAuction(uint8 quantity) public payable {
        //Require DA started
        require(
            block.timestamp >= DA_STARTING_TIMESTAMP,
            "DA has not started!"
        );

        //Require max 5
        require(quantity > 0 && quantity < 6, "Can only mint max 5 NFTs!");

        uint256 _currentPrice = currentPrice();

        //Require enough ETH
        require(
            msg.value >= quantity * _currentPrice,
            "Did not send enough eth."
        );

        //Max supply
        require(
            totalSupply() + quantity <= DA_QUANTITY,
            "Max supply for DA reached!"
        );

        //This is the final price
        if (totalSupply() + quantity == DA_QUANTITY)
            DA_FINAL_PRICE = _currentPrice;

        userToTokenBatchPriceData[msg.sender].push(
            TokenBatchPriceData(uint128(msg.value), quantity)
        );

        //Mint the quantity
        _safeMint(msg.sender, quantity);
    }

    function mintPublicWL(bytes32[] memory proof)
        public
        payable
        onlyPublicWhitelist(proof)
    {
        require(DA_FINAL_PRICE > 0, "Dutch action must be over!");

        require(
            !userToHasMintedPublicWL[msg.sender],
            "Can only mint once during public WL!"
        );
        require(
            block.timestamp >= publicWLStartTime,
            "Public WL has not started yet!"
        );

        require(
            msg.value >= ((DA_FINAL_PRICE / 100) * 80),
            "Must send enough eth for WL Mint"
        );

        //Require max supply just in case.
        require(totalSupply() + 1 <= 8500, "Max supply of 8,500!");

        userToHasMintedPublicWL[msg.sender] = true;
        PUBLIC_WL_MINTED++;

        //Mint them
        _safeMint(msg.sender, 1);
    }

    function mintMouseWL(bytes32[] memory proof)
        public
        onlyMouseWhitelist(proof)
    {
        require(DA_FINAL_PRICE > 0, "Dutch action must be over!");
        require(
            !userToHasMintedMiceWL[msg.sender],
            "Can only mint once during mouse WL!"
        );
        require(
            block.timestamp >= miceWLStartTime,
            "Mice WL has not started yet!"
        );

        //Require max supply just in case.
        require(totalSupply() + 1 <= 10000, "Max supply of 10,000!");

        userToHasMintedMiceWL[msg.sender] = true;

        //Mint them
        _safeMint(msg.sender, 1);
    }

    function teamMint(uint256 quantity, address receiver) public onlyOwner {
        //Max supply
        require(
            totalSupply() + quantity <= 10000,
            "Max supply of 10,000 total!"
        );

        require(DA_FINAL_PRICE > 0, "Dutch action must be over!");

        //Mint the quantity
        _safeMint(receiver, quantity);
    }

    function userToTokenBatchLength(address user)
        public
        view
        returns (uint256)
    {
        return userToTokenBatchPriceData[user].length;
    }

    function refundExtraETH() public {
        require(DA_FINAL_PRICE > 0, "Dutch action must be over!");

        uint256 totalRefund;

        for (
            uint256 i = userToTokenBatchPriceData[msg.sender].length;
            i > 0;
            i--
        ) {
            //This is what they should have paid if they bought at lowest price tier.
            uint256 expectedPrice = userToTokenBatchPriceData[msg.sender][i - 1]
                .quantityMinted * DA_FINAL_PRICE;

            //What they paid - what they should have paid = refund.
            uint256 refund = userToTokenBatchPriceData[msg.sender][i - 1]
                .pricePaid - expectedPrice;

            //Remove this tokenBatch
            userToTokenBatchPriceData[msg.sender].pop();

            //Send them their extra monies.
            totalRefund += refund;
        }
        payable(msg.sender).transfer(totalRefund);
    }

    function withdrawInitialFunds() public onlyOwner {
        require(
            !INITIAL_FUNDS_WITHDRAWN,
            "Initial funds have already been withdrawn."
        );
        require(DA_FINAL_PRICE > 0, "DA has not finished!");

        uint256 DAFunds = DA_QUANTITY * DA_FINAL_PRICE;
        uint256 publicWLFunds = PUBLIC_WL_MINTED *
            ((DA_FINAL_PRICE / 100) * 80);

        uint256 initialFunds = DAFunds + publicWLFunds;

        INITIAL_FUNDS_WITHDRAWN = true;

        (bool succ, ) = payable(TEAM_USA_ADDRESS).call{
            value: (initialFunds * 15) / 100
        }("");
        require(succ, "transfer failed");

        (succ, ) = payable(TEAM_JAPAN_ADDRESS).call{
            value: (initialFunds * 35) / 100
        }("");
        require(succ, "transfer failed");

        (succ, ) = payable(MULTISIG_ADDRESS).call{
            value: (initialFunds * 50) / 100
        }("");
        
        require(succ, "transfer failed");
    }

    function withdrawFinalFunds() public onlyOwner {
        //Require this is 1 weeks after DA Start.
        require(block.timestamp >= DA_STARTING_TIMESTAMP + 604800);

        uint256 finalFunds = address(this).balance;

        (bool succ, ) = payable(TEAM_USA_ADDRESS).call{
            value: (finalFunds * 15) / 100
        }("");
        require(succ, "transfer failed");

        (succ, ) = payable(TEAM_JAPAN_ADDRESS).call{
            value: (finalFunds * 35) / 100
        }("");
        require(succ, "transfer failed");

        (succ, ) = payable(MULTISIG_ADDRESS).call{
            value: (finalFunds * 50) / 100
        }("");
        require(succ, "transfer failed");
    }

    function setRevealData(bool _revealed, string memory _unrevealedURI)
        public
        onlyOwner
    {
        REVEALED = _revealed;
        UNREVEALED_URI = _unrevealedURI;
    }

    function setBaseURI(string memory _baseURI) public onlyOwner {
        BASE_URI = _baseURI;
    }

    function contractURI() public view returns (string memory) {
        return CONTRACT_URI;
    }

    function setContractURI(string memory _contractURI) public onlyOwner {
        CONTRACT_URI = _contractURI;
    }

    function tokenURI(uint256 _tokenId)
        public
        view
        override
        returns (string memory)
    {
        if (REVEALED) {
            return
                string(abi.encodePacked(BASE_URI, Strings.toString(_tokenId)));
        } else {
            return UNREVEALED_URI;
        }
    }
}

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

File 3 of 14 : 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/token/ERC721/extensions/IERC721Enumerable.sol';
import '@openzeppelin/contracts/utils/Address.sol';
import '@openzeppelin/contracts/utils/Context.sol';
import '@openzeppelin/contracts/utils/Strings.sol';
import '@openzeppelin/contracts/utils/introspection/ERC165.sol';

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

/**
 * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
 * the Metadata and Enumerable extension. Built to optimize for lower gas during batch mints.
 *
 * Assumes serials are sequentially minted starting at 0 (e.g. 0, 1, 2, 3..).
 *
 * 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**128 - 1 (max value of uint128).
 */
contract ERC721A is Context, ERC165, IERC721, IERC721Metadata, IERC721Enumerable {
    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;
    }

    // Compiler will pack the following 
    // _currentIndex and _burnCounter into a single 256bit word.
    
    // The tokenId of the next token to be minted.
    uint128 internal _currentIndex;

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

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

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

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

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

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

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

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

    /**
     * @dev See {IERC721Enumerable-tokenByIndex}.
     * This read function is O(totalSupply). If calling from a separate contract, be sure to test gas first.
     * It may also degrade with extremely large collection sizes (e.g >> 10000), test for your use case.
     */
    function tokenByIndex(uint256 index) public view override returns (uint256) {
        uint256 numMintedSoFar = _currentIndex;
        uint256 tokenIdsIdx;

        // Counter overflow is impossible as the loop breaks when
        // uint256 i is equal to another uint256 numMintedSoFar.
        unchecked {
            for (uint256 i; i < numMintedSoFar; i++) {
                TokenOwnership memory ownership = _ownerships[i];
                if (!ownership.burned) {
                    if (tokenIdsIdx == index) {
                        return i;
                    }
                    tokenIdsIdx++;
                }
            }
        }
        revert TokenIndexOutOfBounds();
    }

    /**
     * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}.
     * This read function is O(totalSupply). If calling from a separate contract, be sure to test gas first.
     * It may also degrade with extremely large collection sizes (e.g >> 10000), test for your use case.
     */
    function tokenOfOwnerByIndex(address owner, uint256 index) public view override returns (uint256) {
        if (index >= balanceOf(owner)) revert OwnerIndexOutOfBounds();
        uint256 numMintedSoFar = _currentIndex;
        uint256 tokenIdsIdx;
        address currOwnershipAddr;

        // Counter overflow is impossible as the loop breaks when
        // uint256 i is equal to another uint256 numMintedSoFar.
        unchecked {
            for (uint256 i; i < numMintedSoFar; i++) {
                TokenOwnership memory ownership = _ownerships[i];
                if (ownership.burned) {
                    continue;
                }
                if (ownership.addr != address(0)) {
                    currOwnershipAddr = ownership.addr;
                }
                if (currOwnershipAddr == owner) {
                    if (tokenIdsIdx == index) {
                        return i;
                    }
                    tokenIdsIdx++;
                }
            }
        }

        // Execution should never reach this point.
        revert();
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        _approve(to, tokenId, owner);
    }

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

        return _tokenApprovals[tokenId];
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

            uint256 updatedIndex = startTokenId;

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

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

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

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

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

        _beforeTokenTransfers(from, to, tokenId, 1);

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    /**
     * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address.
     * The call is not executed if the target address is not a contract.
     *
     * @param from address representing the previous owner of the given token ID
     * @param to target address that will receive the tokens
     * @param tokenId uint256 ID of the token to be transferred
     * @param _data bytes optional data to send along with the call
     * @return bool whether the call correctly returned the expected magic value
     */
    function _checkOnERC721Received(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) private returns (bool) {
        if (to.isContract()) {
            try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) {
                return retval == IERC721Receiver(to).onERC721Received.selector;
            } catch (bytes memory reason) {
                if (reason.length == 0) {
                    revert TransferToNonERC721ReceiverImplementer();
                } else {
                    assembly {
                        revert(add(32, reason), mload(reason))
                    }
                }
            }
        } else {
            return true;
        }
    }

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

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

File 4 of 14 : MerkleWhitelist.sol
//SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

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

contract MerkleWhitelist is Ownable {
  bytes32 public publicWhitelistMerkleRoot;
  bytes32 public mouseWhitelistMerkleRoot;

  string public whitelistURI;

  /*
  READ FUNCTIONS
  */

  //Frontend verify functions
  function verifyPublicSender(address userAddress, bytes32[] memory proof) public view returns (bool) {
    return _verify(proof, _hash(userAddress), publicWhitelistMerkleRoot);
  }

  function verifyMouseSender(address userAddress, bytes32[] memory proof) public view returns (bool) {
    return _verify(proof, _hash(userAddress), mouseWhitelistMerkleRoot);
  }

  //Internal verify functions
  function _verifyPublicSender(bytes32[] memory proof) internal view returns (bool) {
    return _verify(proof, _hash(msg.sender), publicWhitelistMerkleRoot);
  }

  function _verifyMouseSender(bytes32[] memory proof) internal view returns (bool) {
    return _verify(proof, _hash(msg.sender), mouseWhitelistMerkleRoot);
  }

  function _verify(bytes32[] memory proof, bytes32 addressHash, bytes32 whitelistMerkleRoot)
    internal
    pure
    returns (bool)
  {
    return MerkleProof.verify(proof, whitelistMerkleRoot, addressHash);
  }

  function _hash(address _address) internal pure returns (bytes32) {
    return keccak256(abi.encodePacked(_address));
  }

  /*
  OWNER FUNCTIONS
  */

  function setPublicWhitelistMerkleRoot(bytes32 merkleRoot) external onlyOwner {
    publicWhitelistMerkleRoot = merkleRoot;
  }

  function setMouseWhitelistMerkleRoot(bytes32 merkleRoot) external onlyOwner {
    mouseWhitelistMerkleRoot = merkleRoot;
  }

  /*
  MODIFIER
  */
  modifier onlyMouseWhitelist(bytes32[] memory proof) {
    require(_verifyMouseSender(proof), "MerkleWhitelist: Caller is not whitelisted");
    _;
  }
  
  modifier onlyPublicWhitelist(bytes32[] memory proof) {
    require(_verifyPublicSender(proof), "MerkleWhitelist: Caller is not whitelisted");
    _;
  }
}

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

File 8 of 14 : 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 9 of 14 : IERC721Metadata.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol)

pragma solidity ^0.8.0;

import "../IERC721.sol";

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

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

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

File 10 of 14 : IERC721Enumerable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC721/extensions/IERC721Enumerable.sol)

pragma solidity ^0.8.0;

import "../IERC721.sol";

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

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

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

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

pragma solidity ^0.8.1;

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

        return account.code.length > 0;
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

pragma solidity ^0.8.0;

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

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

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

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

Contract Security Audit

Contract ABI

[{"inputs":[],"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":"OwnerIndexOutOfBounds","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"TokenIndexOutOfBounds","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":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"BASE_URI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"CONTRACT_URI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DA_DECREMENT","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DA_DECREMENT_FREQUENCY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DA_ENDING_PRICE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DA_FINAL_PRICE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DA_QUANTITY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DA_STARTING_PRICE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DA_STARTING_TIMESTAMP","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"INITIAL_FUNDS_WITHDRAWN","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MULTISIG_ADDRESS","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PUBLIC_WL_MINTED","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"REMAINING_FUNDS_WITHDRAWN","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"REVEALED","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"TEAM_JAPAN_ADDRESS","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"TEAM_USA_ADDRESS","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"UNREVEALED_URI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"contractURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"currentPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"miceWLStartTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint8","name":"quantity","type":"uint8"}],"name":"mintDutchAuction","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"bytes32[]","name":"proof","type":"bytes32[]"}],"name":"mintMouseWL","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32[]","name":"proof","type":"bytes32[]"}],"name":"mintPublicWL","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"mouseWhitelistMerkleRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"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":"publicWLStartTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"publicWhitelistMerkleRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"refundExtraETH","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_baseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_contractURI","type":"string"}],"name":"setContractURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"merkleRoot","type":"bytes32"}],"name":"setMouseWhitelistMerkleRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"merkleRoot","type":"bytes32"}],"name":"setPublicWhitelistMerkleRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_revealed","type":"bool"},{"internalType":"string","name":"_unrevealedURI","type":"string"}],"name":"setRevealData","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":"quantity","type":"uint256"},{"internalType":"address","name":"receiver","type":"address"}],"name":"teamMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"userToHasMintedMiceWL","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"userToHasMintedPublicWL","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"}],"name":"userToTokenBatchLength","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"userToTokenBatchPriceData","outputs":[{"internalType":"uint128","name":"pricePaid","type":"uint128"},{"internalType":"uint8","name":"quantityMinted","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"userAddress","type":"address"},{"internalType":"bytes32[]","name":"proof","type":"bytes32[]"}],"name":"verifyMouseSender","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"userAddress","type":"address"},{"internalType":"bytes32[]","name":"proof","type":"bytes32[]"}],"name":"verifyPublicSender","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"whitelistURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdrawFinalFunds","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawInitialFunds","outputs":[],"stateMutability":"nonpayable","type":"function"}]

6706f05b59d3b20000600b5567016345785d8a0000600c5566b1a2bc2ec50000600d5560b4600e5563623bb480600f55611b5860115560128054770e861ddda17f7c20996dc0868cacc200bc1985c000000000600160201b600160c01b0319909116179055601380546001600160a01b031990811673bc77edd603bef4004c47a831fdda437cd906442e179091556014805490911673bcaf5e757ca1ef5f35fc2dabadcb71dc7418a40d17905560e060405260356080818152906200367760a0398051620000d69160159160209091019062000206565b50604051806060016040528060358152602001620036426035913980516200010791601a9160209091019062000206565b5063623d0600601c556362439d80601d553480156200012557600080fd5b50604051806040016040528060068152602001654b6977616d6960d01b815250604051806040016040528060068152602001654b4957414d4960d01b8152506200017e62000178620001b260201b60201c565b620001b6565b81516200019390600290602085019062000206565b508051620001a990600390602084019062000206565b505050620002e9565b3390565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b8280546200021490620002ac565b90600052602060002090601f01602090048101928262000238576000855562000283565b82601f106200025357805160ff191683800117855562000283565b8280016001018555821562000283579182015b828111156200028357825182559160200191906001019062000266565b506200029192915062000295565b5090565b5b8082111562000291576000815560010162000296565b600181811c90821680620002c157607f821691505b60208210811415620002e357634e487b7160e01b600052602260045260246000fd5b50919050565b61334980620002f96000396000f3fe6080604052600436106103a25760003560e01c80639d1b464a116101e7578063ced0680b1161010d578063ea18dc5c116100a0578063f4f510251161006f578063f4f5102514610ab1578063f5998ed814610ac7578063f89d2e4d14610add578063fa27901f14610af357600080fd5b8063ea18dc5c14610a51578063efb4031d14610a67578063f2fde38b14610a7c578063f33b7e9214610a9c57600080fd5b8063da0f271e116100dc578063da0f271e146109be578063dbddb26a146109de578063e8a3d485146109f3578063e985e9c514610a0857600080fd5b8063ced0680b14610949578063cf4090dc14610969578063d627349f14610989578063d7b232681461099e57600080fd5b8063bfa457bc11610185578063c4267c8d11610154578063c4267c8d146108b0578063c87b56dd146108d1578063ca15d565146108f1578063cb4446d91461092157600080fd5b8063bfa457bc14610827578063c0666e8d14610847578063c086d8271461087d578063c3d223ca1461089d57600080fd5b8063b5e8b290116101c1578063b5e8b290146107c6578063b8129371146107dc578063b88d4fde146107f2578063b9765a1f1461081257600080fd5b80639d1b464a14610777578063a22cb4651461078c578063a76a9587146107ac57600080fd5b8063507862d1116102cc57806383e6848d1161026a578063938e3d7b11610239578063938e3d7b1461071657806395d89b411461073657806397f65c081461074b578063996e52b51461076157600080fd5b806383e6848d14610695578063865bb409146106a85780638c1212b7146106d85780638da5cb5b146106f857600080fd5b80636352211e116102a65780636352211e1461062a57806370a082311461064a578063715018a61461066a57806378615c321461067f57600080fd5b8063507862d1146105e057806355f804b3146105f557806356b4f6731461061557600080fd5b8063204e656b116103445780632f745c59116103135780632f745c591461056057806342842e0e146105805780634c0cf172146105a05780634f6ccce7146105c057600080fd5b8063204e656b146104b1578063239b9640146104d157806323b872dd146104ff5780632b4519fb1461051f57600080fd5b8063081812fc11610380578063081812fc1461041e578063095ea7b31461045657806318160ddd146104785780631f8929b61461049b57600080fd5b806301ffc9a7146103a757806306fdde03146103dc57806307b7324c146103fe575b600080fd5b3480156103b357600080fd5b506103c76103c2366004612e90565b610b09565b60405190151581526020015b60405180910390f35b3480156103e857600080fd5b506103f1610b76565b6040516103d39190613068565b34801561040a57600080fd5b506103c7610419366004612d68565b610c08565b34801561042a57600080fd5b5061043e610439366004612e78565b610c26565b6040516001600160a01b0390911681526020016103d3565b34801561046257600080fd5b50610476610471366004612ddc565b610c6a565b005b34801561048457600080fd5b5061048d610cf8565b6040519081526020016103d3565b3480156104a757600080fd5b5061048d60085481565b3480156104bd57600080fd5b506012546103c79062010000900460ff1681565b3480156104dd57600080fd5b506012546104ec9061ffff1681565b60405161ffff90911681526020016103d3565b34801561050b57600080fd5b5061047661051a366004612cb5565b610d17565b34801561052b57600080fd5b5061053f61053a366004612ddc565b610d22565b604080516001600160801b03909316835260ff9091166020830152016103d3565b34801561056c57600080fd5b5061048d61057b366004612ddc565b610d65565b34801561058c57600080fd5b5061047661059b366004612cb5565b610e61565b3480156105ac57600080fd5b506104766105bb366004612e05565b610e7c565b3480156105cc57600080fd5b5061048d6105db366004612e78565b611012565b3480156105ec57600080fd5b506103f16110be565b34801561060157600080fd5b50610476610610366004612ec8565b61114c565b34801561062157600080fd5b506103f1611189565b34801561063657600080fd5b5061043e610645366004612e78565b611196565b34801561065657600080fd5b5061048d610665366004612c69565b6111a8565b34801561067657600080fd5b506104766111f6565b34801561068b57600080fd5b5061048d600f5481565b6104766106a3366004612f1c565b61122c565b3480156106b457600080fd5b506103c76106c3366004612c69565b60176020526000908152604090205460ff1681565b3480156106e457600080fd5b5060135461043e906001600160a01b031681565b34801561070457600080fd5b506000546001600160a01b031661043e565b34801561072257600080fd5b50610476610731366004612ec8565b611440565b34801561074257600080fd5b506103f161147d565b34801561075757600080fd5b5061048d600c5481565b34801561076d57600080fd5b5061048d600e5481565b34801561078357600080fd5b5061048d61148c565b34801561079857600080fd5b506104766107a7366004612db3565b611552565b3480156107b857600080fd5b506019546103c79060ff1681565b3480156107d257600080fd5b5061048d60095481565b3480156107e857600080fd5b5061048d600d5481565b3480156107fe57600080fd5b5061047661080d366004612cf0565b6115e8565b34801561081e57600080fd5b50610476611622565b34801561083357600080fd5b50610476610842366004612efa565b6117b7565b34801561085357600080fd5b5061048d610862366004612c69565b6001600160a01b031660009081526016602052604090205490565b34801561088957600080fd5b5060145461043e906001600160a01b031681565b6104766108ab366004612e05565b611871565b3480156108bc57600080fd5b506012546103c7906301000000900460ff1681565b3480156108dd57600080fd5b506103f16108ec366004612e78565b611a8d565b3480156108fd57600080fd5b506103c761090c366004612c69565b60186020526000908152604090205460ff1681565b34801561092d57600080fd5b5060125461043e9064010000000090046001600160a01b031681565b34801561095557600080fd5b50610476610964366004612e78565b611b64565b34801561097557600080fd5b506103c7610984366004612d68565b611b93565b34801561099557600080fd5b50610476611baa565b3480156109aa57600080fd5b506104766109b9366004612e37565b611e8a565b3480156109ca57600080fd5b506104766109d9366004612e78565b611ed5565b3480156109ea57600080fd5b506103f1611f04565b3480156109ff57600080fd5b506103f1611f11565b348015610a1457600080fd5b506103c7610a23366004612c83565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b348015610a5d57600080fd5b5061048d60115481565b348015610a7357600080fd5b50610476611f20565b348015610a8857600080fd5b50610476610a97366004612c69565b612106565b348015610aa857600080fd5b506103f16121a1565b348015610abd57600080fd5b5061048d601d5481565b348015610ad357600080fd5b5061048d60105481565b348015610ae957600080fd5b5061048d600b5481565b348015610aff57600080fd5b5061048d601c5481565b60006001600160e01b031982166380ac58cd60e01b1480610b3a57506001600160e01b03198216635b5e139f60e01b145b80610b5557506001600160e01b0319821663780e9d6360e01b145b80610b7057506301ffc9a760e01b6001600160e01b03198316145b92915050565b606060028054610b859061322f565b80601f0160208091040260200160405190810160405280929190818152602001828054610bb19061322f565b8015610bfe5780601f10610bd357610100808354040283529160200191610bfe565b820191906000526020600020905b815481529060010190602001808311610be157829003601f168201915b5050505050905090565b6000610c1f82610c17856121ae565b6009546121ed565b9392505050565b6000610c3182612202565b610c4e576040516333d1c03960e21b815260040160405180910390fd5b506000908152600660205260409020546001600160a01b031690565b6000610c7582611196565b9050806001600160a01b0316836001600160a01b03161415610caa5760405163250fdee360e21b815260040160405180910390fd5b336001600160a01b03821614801590610cca5750610cc88133610a23565b155b15610ce8576040516367d9dca160e11b815260040160405180910390fd5b610cf3838383612238565b505050565b6001546001600160801b03600160801b82048116918116919091031690565b610cf3838383612294565b60166020528160005260406000208181548110610d3e57600080fd5b6000918252602090912001546001600160801b0381169250600160801b900460ff16905082565b6000610d70836111a8565b8210610d8f576040516306ed618760e11b815260040160405180910390fd5b6001546001600160801b0316600080805b83811015610e5b57600081815260046020908152604091829020825160608101845290546001600160a01b0381168252600160a01b81046001600160401b031692820192909252600160e01b90910460ff161580159282019290925290610e075750610e53565b80516001600160a01b031615610e1c57805192505b876001600160a01b0316836001600160a01b03161415610e515786841415610e4a57509350610b7092505050565b6001909301925b505b600101610da0565b50600080fd5b610cf3838383604051806020016040528060008152506115e8565b80610e86816124b1565b610eab5760405162461bcd60e51b8152600401610ea2906130b0565b60405180910390fd5b600060105411610ecd5760405162461bcd60e51b8152600401610ea290613123565b3360009081526018602052604090205460ff1615610f395760405162461bcd60e51b815260206004820152602360248201527f43616e206f6e6c79206d696e74206f6e636520647572696e67206d6f75736520604482015262574c2160e81b6064820152608401610ea2565b601d54421015610f8b5760405162461bcd60e51b815260206004820152601c60248201527f4d69636520574c20686173206e6f7420737461727465642079657421000000006044820152606401610ea2565b612710610f96610cf8565b610fa190600161318a565b1115610fe75760405162461bcd60e51b81526020600482015260156024820152744d617820737570706c79206f662031302c3030302160581b6044820152606401610ea2565b336000818152601860205260409020805460ff1916600190811790915561100e91906124c0565b5050565b6001546000906001600160801b031681805b828110156110a457600081815260046020908152604091829020825160608101845290546001600160a01b0381168252600160a01b81046001600160401b031692820192909252600160e01b90910460ff1615159181018290529061109b57858314156110945750949350505050565b6001909201915b50600101611024565b506040516329c8c00760e21b815260040160405180910390fd5b601a80546110cb9061322f565b80601f01602080910402602001604051908101604052809291908181526020018280546110f79061322f565b80156111445780601f1061111957610100808354040283529160200191611144565b820191906000526020600020905b81548152906001019060200180831161112757829003601f168201915b505050505081565b6000546001600160a01b031633146111765760405162461bcd60e51b8152600401610ea29061307b565b805161100e90601b906020840190612ab1565b601580546110cb9061322f565b60006111a1826124da565b5192915050565b60006001600160a01b0382166111d1576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b03166000908152600560205260409020546001600160401b031690565b6000546001600160a01b031633146112205760405162461bcd60e51b8152600401610ea29061307b565b61122a60006125fe565b565b600f544210156112745760405162461bcd60e51b8152602060048201526013602482015272444120686173206e6f7420737461727465642160681b6044820152606401610ea2565b60008160ff1611801561128a575060068160ff16105b6112d65760405162461bcd60e51b815260206004820152601960248201527f43616e206f6e6c79206d696e74206d61782035204e46547321000000000000006044820152606401610ea2565b60006112e061148c565b90506112ef8160ff84166131b6565b34101561133e5760405162461bcd60e51b815260206004820152601860248201527f446964206e6f742073656e6420656e6f756768206574682e00000000000000006044820152606401610ea2565b6011548260ff1661134d610cf8565b611357919061318a565b11156113a55760405162461bcd60e51b815260206004820152601a60248201527f4d617820737570706c7920666f722044412072656163686564210000000000006044820152606401610ea2565b6011548260ff166113b4610cf8565b6113be919061318a565b14156113ca5760108190555b33600081815260166020908152604080832081518083019092526001600160801b03348116835260ff80891684860181815284546001810186559488529590962093519390920180549451909216600160801b026001600160881b031990941692169190911791909117905561100e91906124c0565b6000546001600160a01b0316331461146a5760405162461bcd60e51b8152600401610ea29061307b565b805161100e906015906020840190612ab1565b606060038054610b859061322f565b6000600f544210156114d65760405162461bcd60e51b8152602060048201526013602482015272444120686173206e6f7420737461727465642160681b6044820152606401610ea2565b601054156114e5575060105490565b6000600f54426114f591906131d5565b90506000600e548261150791906131a2565b90506000600d548261151991906131b6565b9050600c54600b5461152b91906131d5565b811061153c57600c54935050505090565b80600b5461154a91906131d5565b935050505090565b6001600160a01b03821633141561157c5760405163b06307db60e01b815260040160405180910390fd5b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6115f3848484612294565b6115ff8484848461264e565b61161c576040516368d2bf6b60e11b815260040160405180910390fd5b50505050565b6000601054116116445760405162461bcd60e51b8152600401610ea290613123565b336000908152601660205260408120545b80156117895760105433600090815260166020526040812090919061167b6001856131d5565b8154811061169957634e487b7160e01b600052603260045260246000fd5b6000918252602090912001546116b99190600160801b900460ff166131b6565b3360009081526016602052604081209192509082906116d96001866131d5565b815481106116f757634e487b7160e01b600052603260045260246000fd5b60009182526020909120015461171691906001600160801b03166131d5565b3360009081526016602052604090208054919250908061174657634e487b7160e01b600052603160045260246000fd5b600082815260209020810160001990810180546001600160881b0319169055019055611772818561318a565b93505050808061178190613218565b915050611655565b50604051339082156108fc029083906000818181858888f1935050505015801561100e573d6000803e3d6000fd5b6000546001600160a01b031633146117e15760405162461bcd60e51b8152600401610ea29061307b565b612710826117ed610cf8565b6117f7919061318a565b11156118455760405162461bcd60e51b815260206004820152601b60248201527f4d617820737570706c79206f662031302c30303020746f74616c2100000000006044820152606401610ea2565b6000601054116118675760405162461bcd60e51b8152600401610ea290613123565b61100e81836124c0565b8061187b8161275c565b6118975760405162461bcd60e51b8152600401610ea2906130b0565b6000601054116118b95760405162461bcd60e51b8152600401610ea290613123565b3360009081526017602052604090205460ff16156119255760405162461bcd60e51b8152602060048201526024808201527f43616e206f6e6c79206d696e74206f6e636520647572696e67207075626c696360448201526320574c2160e01b6064820152608401610ea2565b601c544210156119775760405162461bcd60e51b815260206004820152601e60248201527f5075626c696320574c20686173206e6f742073746172746564207965742100006044820152606401610ea2565b606460105461198691906131a2565b6119919060506131b6565b3410156119e05760405162461bcd60e51b815260206004820181905260248201527f4d7573742073656e6420656e6f7567682065746820666f7220574c204d696e746044820152606401610ea2565b6121346119eb610cf8565b6119f690600161318a565b1115611a3b5760405162461bcd60e51b81526020600482015260146024820152734d617820737570706c79206f6620382c3530302160601b6044820152606401610ea2565b336000908152601760205260408120805460ff191660011790556012805461ffff1691611a678361326a565b91906101000a81548161ffff021916908361ffff1602179055505061100e3360016124c0565b60195460609060ff1615611acd57601b611aa68361276b565b604051602001611ab7929190612f85565b6040516020818303038152906040529050919050565b601a8054611ada9061322f565b80601f0160208091040260200160405190810160405280929190818152602001828054611b069061322f565b8015611b535780601f10611b2857610100808354040283529160200191611b53565b820191906000526020600020905b815481529060010190602001808311611b3657829003601f168201915b50505050509050919050565b919050565b6000546001600160a01b03163314611b8e5760405162461bcd60e51b8152600401610ea29061307b565b600955565b6000610c1f82611ba2856121ae565b6008546121ed565b6000546001600160a01b03163314611bd45760405162461bcd60e51b8152600401610ea29061307b565b60125462010000900460ff1615611c405760405162461bcd60e51b815260206004820152602a60248201527f496e697469616c2066756e6473206861766520616c7265616479206265656e206044820152693bb4ba34323930bbb71760b11b6064820152608401610ea2565b600060105411611c895760405162461bcd60e51b8152602060048201526014602482015273444120686173206e6f742066696e69736865642160601b6044820152606401610ea2565b6000601054601154611c9b91906131b6565b905060006064601054611cae91906131a2565b611cb99060506131b6565b601254611cca919061ffff166131b6565b90506000611cd8828461318a565b6012805462ff000019166201000017908190559091506000906001600160a01b03640100000000909104166064611d1084600f6131b6565b611d1a91906131a2565b604051600081818185875af1925050503d8060008114611d56576040519150601f19603f3d011682016040523d82523d6000602084013e611d5b565b606091505b5050905080611d7c5760405162461bcd60e51b8152600401610ea2906130fa565b6013546001600160a01b03166064611d958460236131b6565b611d9f91906131a2565b604051600081818185875af1925050503d8060008114611ddb576040519150601f19603f3d011682016040523d82523d6000602084013e611de0565b606091505b50508091505080611e035760405162461bcd60e51b8152600401610ea2906130fa565b6014546001600160a01b03166064611e1c8460326131b6565b611e2691906131a2565b604051600081818185875af1925050503d8060008114611e62576040519150601f19603f3d011682016040523d82523d6000602084013e611e67565b606091505b5050809150508061161c5760405162461bcd60e51b8152600401610ea2906130fa565b6000546001600160a01b03163314611eb45760405162461bcd60e51b8152600401610ea29061307b565b6019805460ff19168315151790558051610cf390601a906020840190612ab1565b6000546001600160a01b03163314611eff5760405162461bcd60e51b8152600401610ea29061307b565b600855565b601b80546110cb9061322f565b606060158054610b859061322f565b6000546001600160a01b03163314611f4a5760405162461bcd60e51b8152600401610ea29061307b565b600f54611f5a9062093a8061318a565b421015611f6657600080fd5b601254479060009064010000000090046001600160a01b03166064611f8c84600f6131b6565b611f9691906131a2565b604051600081818185875af1925050503d8060008114611fd2576040519150601f19603f3d011682016040523d82523d6000602084013e611fd7565b606091505b5050905080611ff85760405162461bcd60e51b8152600401610ea2906130fa565b6013546001600160a01b031660646120118460236131b6565b61201b91906131a2565b604051600081818185875af1925050503d8060008114612057576040519150601f19603f3d011682016040523d82523d6000602084013e61205c565b606091505b5050809150508061207f5760405162461bcd60e51b8152600401610ea2906130fa565b6014546001600160a01b031660646120988460326131b6565b6120a291906131a2565b604051600081818185875af1925050503d80600081146120de576040519150601f19603f3d011682016040523d82523d6000602084013e6120e3565b606091505b5050809150508061100e5760405162461bcd60e51b8152600401610ea2906130fa565b6000546001600160a01b031633146121305760405162461bcd60e51b8152600401610ea29061307b565b6001600160a01b0381166121955760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610ea2565b61219e816125fe565b50565b600a80546110cb9061322f565b6040516bffffffffffffffffffffffff19606083901b166020820152600090603401604051602081830303815290604052805190602001209050919050565b60006121fa848385612884565b949350505050565b6001546000906001600160801b031682108015610b70575050600090815260046020526040902054600160e01b900460ff161590565b60008281526006602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b600061229f826124da565b80519091506000906001600160a01b0316336001600160a01b031614806122cd575081516122cd9033610a23565b806122e85750336122dd84610c26565b6001600160a01b0316145b90508061230857604051632ce44b5f60e11b815260040160405180910390fd5b846001600160a01b031682600001516001600160a01b03161461233d5760405162a1148160e81b815260040160405180910390fd5b6001600160a01b03841661236457604051633a954ecd60e21b815260040160405180910390fd5b6123746000848460000151612238565b6001600160a01b038581166000908152600560209081526040808320805467ffffffffffffffff198082166001600160401b0392831660001901831617909255898616808652838620805493841693831660019081018416949094179055898652600490945282852080546001600160e01b031916909417600160a01b429092169190910217909255908601808352912054909116612467576001546001600160801b031681101561246757825160008281526004602090815260409091208054918601516001600160401b0316600160a01b026001600160e01b03199092166001600160a01b03909316929092171790555b5082846001600160a01b0316866001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45b5050505050565b6000610b7082610c17336121ae565b61100e82826040518060200160405280600081525061289a565b604080516060810182526000808252602082018190529181019190915260015482906001600160801b03168110156125e557600081815260046020908152604091829020825160608101845290546001600160a01b0381168252600160a01b81046001600160401b031692820192909252600160e01b90910460ff161515918101829052906125e35780516001600160a01b03161561257a579392505050565b5060001901600081815260046020908152604091829020825160608101845290546001600160a01b038116808352600160a01b82046001600160401b031693830193909352600160e01b900460ff16151592810192909252156125de579392505050565b61257a565b505b604051636f96cda160e11b815260040160405180910390fd5b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b60006001600160a01b0384163b1561275157604051630a85bd0160e11b81526001600160a01b0385169063150b7a029061269290339089908890889060040161302b565b602060405180830381600087803b1580156126ac57600080fd5b505af19250505080156126dc575060408051601f3d908101601f191682019092526126d991810190612eac565b60015b612737573d80801561270a576040519150601f19603f3d011682016040523d82523d6000602084013e61270f565b606091505b50805161272f576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490506121fa565b506001949350505050565b6000610b7082611ba2336121ae565b60608161278f5750506040805180820190915260018152600360fc1b602082015290565b8160005b81156127b957806127a38161328c565b91506127b29050600a836131a2565b9150612793565b6000816001600160401b038111156127e157634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f19166020018201604052801561280b576020820181803683370190505b5090505b84156121fa576128206001836131d5565b915061282d600a866132a7565b61283890603061318a565b60f81b81838151811061285b57634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a90535061287d600a866131a2565b945061280f565b60008261289185846128a7565b14949350505050565b610cf38383836001612929565b600081815b84518110156129215760008582815181106128d757634e487b7160e01b600052603260045260246000fd5b602002602001015190508083116128fd576000838152602082905260409020925061290e565b600081815260208490526040902092505b50806129198161328c565b9150506128ac565b509392505050565b6001546001600160801b03166001600160a01b03851661295b57604051622e076360e81b815260040160405180910390fd5b836129795760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b038516600081815260056020908152604080832080546001600160801b031981166001600160401b038083168c0181169182176801000000000000000067ffffffffffffffff1990941690921783900481168c018116909202179091558584526004909252822080546001600160e01b031916909317600160a01b42909216919091021790915581905b85811015612a8b5760405182906001600160a01b038916906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a4838015612a615750612a5f600088848861264e565b155b15612a7f576040516368d2bf6b60e11b815260040160405180910390fd5b60019182019101612a0a565b50600180546001600160801b0319166001600160801b03929092169190911790556124aa565b828054612abd9061322f565b90600052602060002090601f016020900481019282612adf5760008555612b25565b82601f10612af857805160ff1916838001178555612b25565b82800160010185558215612b25579182015b82811115612b25578251825591602001919060010190612b0a565b50612b31929150612b35565b5090565b5b80821115612b315760008155600101612b36565b60006001600160401b03831115612b6357612b636132e7565b612b76601f8401601f191660200161315a565b9050828152838383011115612b8a57600080fd5b828260208301376000602084830101529392505050565b80356001600160a01b0381168114611b5f57600080fd5b600082601f830112612bc8578081fd5b813560206001600160401b03821115612be357612be36132e7565b8160051b612bf282820161315a565b838152828101908684018388018501891015612c0c578687fd5b8693505b85841015612c2e578035835260019390930192918401918401612c10565b50979650505050505050565b80358015158114611b5f57600080fd5b600082601f830112612c5a578081fd5b610c1f83833560208501612b4a565b600060208284031215612c7a578081fd5b610c1f82612ba1565b60008060408385031215612c95578081fd5b612c9e83612ba1565b9150612cac60208401612ba1565b90509250929050565b600080600060608486031215612cc9578081fd5b612cd284612ba1565b9250612ce060208501612ba1565b9150604084013590509250925092565b60008060008060808587031215612d05578081fd5b612d0e85612ba1565b9350612d1c60208601612ba1565b92506040850135915060608501356001600160401b03811115612d3d578182fd5b8501601f81018713612d4d578182fd5b612d5c87823560208401612b4a565b91505092959194509250565b60008060408385031215612d7a578182fd5b612d8383612ba1565b915060208301356001600160401b03811115612d9d578182fd5b612da985828601612bb8565b9150509250929050565b60008060408385031215612dc5578182fd5b612dce83612ba1565b9150612cac60208401612c3a565b60008060408385031215612dee578182fd5b612df783612ba1565b946020939093013593505050565b600060208284031215612e16578081fd5b81356001600160401b03811115612e2b578182fd5b6121fa84828501612bb8565b60008060408385031215612e49578182fd5b612e5283612c3a565b915060208301356001600160401b03811115612e6c578182fd5b612da985828601612c4a565b600060208284031215612e89578081fd5b5035919050565b600060208284031215612ea1578081fd5b8135610c1f816132fd565b600060208284031215612ebd578081fd5b8151610c1f816132fd565b600060208284031215612ed9578081fd5b81356001600160401b03811115612eee578182fd5b6121fa84828501612c4a565b60008060408385031215612f0c578182fd5b82359150612cac60208401612ba1565b600060208284031215612f2d578081fd5b813560ff81168114610c1f578182fd5b60008151808452612f558160208601602086016131ec565b601f01601f19169290920160200192915050565b60008151612f7b8185602086016131ec565b9290920192915050565b600080845482600182811c915080831680612fa157607f831692505b6020808410821415612fc157634e487b7160e01b87526022600452602487fd5b818015612fd55760018114612fe657613012565b60ff19861689528489019650613012565b60008b815260209020885b8681101561300a5781548b820152908501908301612ff1565b505084890196505b5050505050506130228185612f69565b95945050505050565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061305e90830184612f3d565b9695505050505050565b602081526000610c1f6020830184612f3d565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b6020808252602a908201527f4d65726b6c6557686974656c6973743a2043616c6c6572206973206e6f7420776040820152691a1a5d195b1a5cdd195960b21b606082015260800190565b6020808252600f908201526e1d1c985b9cd9995c8819985a5b1959608a1b604082015260600190565b6020808252601a908201527f447574636820616374696f6e206d757374206265206f76657221000000000000604082015260600190565b604051601f8201601f191681016001600160401b0381118282101715613182576131826132e7565b604052919050565b6000821982111561319d5761319d6132bb565b500190565b6000826131b1576131b16132d1565b500490565b60008160001904831182151516156131d0576131d06132bb565b500290565b6000828210156131e7576131e76132bb565b500390565b60005b838110156132075781810151838201526020016131ef565b8381111561161c5750506000910152565b600081613227576132276132bb565b506000190190565b600181811c9082168061324357607f821691505b6020821081141561326457634e487b7160e01b600052602260045260246000fd5b50919050565b600061ffff80831681811415613282576132826132bb565b6001019392505050565b60006000198214156132a0576132a06132bb565b5060010190565b6000826132b6576132b66132d1565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160e01b03198116811461219e57600080fdfea2646970667358221220ec42168ba2959e653f1c56eea16d5ac0608b66d080ddd2c315fd07199202c3fa64736f6c63430008040033697066733a2f2f516d57514d754368436f5463326a4b6f4471435648427859653670703145324b4d79573448473855374141367746697066733a2f2f516d4e78354d374476677667365a4e6d55583670646644344e575a376f683652695032463562333354725078434a

Deployed Bytecode

0x6080604052600436106103a25760003560e01c80639d1b464a116101e7578063ced0680b1161010d578063ea18dc5c116100a0578063f4f510251161006f578063f4f5102514610ab1578063f5998ed814610ac7578063f89d2e4d14610add578063fa27901f14610af357600080fd5b8063ea18dc5c14610a51578063efb4031d14610a67578063f2fde38b14610a7c578063f33b7e9214610a9c57600080fd5b8063da0f271e116100dc578063da0f271e146109be578063dbddb26a146109de578063e8a3d485146109f3578063e985e9c514610a0857600080fd5b8063ced0680b14610949578063cf4090dc14610969578063d627349f14610989578063d7b232681461099e57600080fd5b8063bfa457bc11610185578063c4267c8d11610154578063c4267c8d146108b0578063c87b56dd146108d1578063ca15d565146108f1578063cb4446d91461092157600080fd5b8063bfa457bc14610827578063c0666e8d14610847578063c086d8271461087d578063c3d223ca1461089d57600080fd5b8063b5e8b290116101c1578063b5e8b290146107c6578063b8129371146107dc578063b88d4fde146107f2578063b9765a1f1461081257600080fd5b80639d1b464a14610777578063a22cb4651461078c578063a76a9587146107ac57600080fd5b8063507862d1116102cc57806383e6848d1161026a578063938e3d7b11610239578063938e3d7b1461071657806395d89b411461073657806397f65c081461074b578063996e52b51461076157600080fd5b806383e6848d14610695578063865bb409146106a85780638c1212b7146106d85780638da5cb5b146106f857600080fd5b80636352211e116102a65780636352211e1461062a57806370a082311461064a578063715018a61461066a57806378615c321461067f57600080fd5b8063507862d1146105e057806355f804b3146105f557806356b4f6731461061557600080fd5b8063204e656b116103445780632f745c59116103135780632f745c591461056057806342842e0e146105805780634c0cf172146105a05780634f6ccce7146105c057600080fd5b8063204e656b146104b1578063239b9640146104d157806323b872dd146104ff5780632b4519fb1461051f57600080fd5b8063081812fc11610380578063081812fc1461041e578063095ea7b31461045657806318160ddd146104785780631f8929b61461049b57600080fd5b806301ffc9a7146103a757806306fdde03146103dc57806307b7324c146103fe575b600080fd5b3480156103b357600080fd5b506103c76103c2366004612e90565b610b09565b60405190151581526020015b60405180910390f35b3480156103e857600080fd5b506103f1610b76565b6040516103d39190613068565b34801561040a57600080fd5b506103c7610419366004612d68565b610c08565b34801561042a57600080fd5b5061043e610439366004612e78565b610c26565b6040516001600160a01b0390911681526020016103d3565b34801561046257600080fd5b50610476610471366004612ddc565b610c6a565b005b34801561048457600080fd5b5061048d610cf8565b6040519081526020016103d3565b3480156104a757600080fd5b5061048d60085481565b3480156104bd57600080fd5b506012546103c79062010000900460ff1681565b3480156104dd57600080fd5b506012546104ec9061ffff1681565b60405161ffff90911681526020016103d3565b34801561050b57600080fd5b5061047661051a366004612cb5565b610d17565b34801561052b57600080fd5b5061053f61053a366004612ddc565b610d22565b604080516001600160801b03909316835260ff9091166020830152016103d3565b34801561056c57600080fd5b5061048d61057b366004612ddc565b610d65565b34801561058c57600080fd5b5061047661059b366004612cb5565b610e61565b3480156105ac57600080fd5b506104766105bb366004612e05565b610e7c565b3480156105cc57600080fd5b5061048d6105db366004612e78565b611012565b3480156105ec57600080fd5b506103f16110be565b34801561060157600080fd5b50610476610610366004612ec8565b61114c565b34801561062157600080fd5b506103f1611189565b34801561063657600080fd5b5061043e610645366004612e78565b611196565b34801561065657600080fd5b5061048d610665366004612c69565b6111a8565b34801561067657600080fd5b506104766111f6565b34801561068b57600080fd5b5061048d600f5481565b6104766106a3366004612f1c565b61122c565b3480156106b457600080fd5b506103c76106c3366004612c69565b60176020526000908152604090205460ff1681565b3480156106e457600080fd5b5060135461043e906001600160a01b031681565b34801561070457600080fd5b506000546001600160a01b031661043e565b34801561072257600080fd5b50610476610731366004612ec8565b611440565b34801561074257600080fd5b506103f161147d565b34801561075757600080fd5b5061048d600c5481565b34801561076d57600080fd5b5061048d600e5481565b34801561078357600080fd5b5061048d61148c565b34801561079857600080fd5b506104766107a7366004612db3565b611552565b3480156107b857600080fd5b506019546103c79060ff1681565b3480156107d257600080fd5b5061048d60095481565b3480156107e857600080fd5b5061048d600d5481565b3480156107fe57600080fd5b5061047661080d366004612cf0565b6115e8565b34801561081e57600080fd5b50610476611622565b34801561083357600080fd5b50610476610842366004612efa565b6117b7565b34801561085357600080fd5b5061048d610862366004612c69565b6001600160a01b031660009081526016602052604090205490565b34801561088957600080fd5b5060145461043e906001600160a01b031681565b6104766108ab366004612e05565b611871565b3480156108bc57600080fd5b506012546103c7906301000000900460ff1681565b3480156108dd57600080fd5b506103f16108ec366004612e78565b611a8d565b3480156108fd57600080fd5b506103c761090c366004612c69565b60186020526000908152604090205460ff1681565b34801561092d57600080fd5b5060125461043e9064010000000090046001600160a01b031681565b34801561095557600080fd5b50610476610964366004612e78565b611b64565b34801561097557600080fd5b506103c7610984366004612d68565b611b93565b34801561099557600080fd5b50610476611baa565b3480156109aa57600080fd5b506104766109b9366004612e37565b611e8a565b3480156109ca57600080fd5b506104766109d9366004612e78565b611ed5565b3480156109ea57600080fd5b506103f1611f04565b3480156109ff57600080fd5b506103f1611f11565b348015610a1457600080fd5b506103c7610a23366004612c83565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b348015610a5d57600080fd5b5061048d60115481565b348015610a7357600080fd5b50610476611f20565b348015610a8857600080fd5b50610476610a97366004612c69565b612106565b348015610aa857600080fd5b506103f16121a1565b348015610abd57600080fd5b5061048d601d5481565b348015610ad357600080fd5b5061048d60105481565b348015610ae957600080fd5b5061048d600b5481565b348015610aff57600080fd5b5061048d601c5481565b60006001600160e01b031982166380ac58cd60e01b1480610b3a57506001600160e01b03198216635b5e139f60e01b145b80610b5557506001600160e01b0319821663780e9d6360e01b145b80610b7057506301ffc9a760e01b6001600160e01b03198316145b92915050565b606060028054610b859061322f565b80601f0160208091040260200160405190810160405280929190818152602001828054610bb19061322f565b8015610bfe5780601f10610bd357610100808354040283529160200191610bfe565b820191906000526020600020905b815481529060010190602001808311610be157829003601f168201915b5050505050905090565b6000610c1f82610c17856121ae565b6009546121ed565b9392505050565b6000610c3182612202565b610c4e576040516333d1c03960e21b815260040160405180910390fd5b506000908152600660205260409020546001600160a01b031690565b6000610c7582611196565b9050806001600160a01b0316836001600160a01b03161415610caa5760405163250fdee360e21b815260040160405180910390fd5b336001600160a01b03821614801590610cca5750610cc88133610a23565b155b15610ce8576040516367d9dca160e11b815260040160405180910390fd5b610cf3838383612238565b505050565b6001546001600160801b03600160801b82048116918116919091031690565b610cf3838383612294565b60166020528160005260406000208181548110610d3e57600080fd5b6000918252602090912001546001600160801b0381169250600160801b900460ff16905082565b6000610d70836111a8565b8210610d8f576040516306ed618760e11b815260040160405180910390fd5b6001546001600160801b0316600080805b83811015610e5b57600081815260046020908152604091829020825160608101845290546001600160a01b0381168252600160a01b81046001600160401b031692820192909252600160e01b90910460ff161580159282019290925290610e075750610e53565b80516001600160a01b031615610e1c57805192505b876001600160a01b0316836001600160a01b03161415610e515786841415610e4a57509350610b7092505050565b6001909301925b505b600101610da0565b50600080fd5b610cf3838383604051806020016040528060008152506115e8565b80610e86816124b1565b610eab5760405162461bcd60e51b8152600401610ea2906130b0565b60405180910390fd5b600060105411610ecd5760405162461bcd60e51b8152600401610ea290613123565b3360009081526018602052604090205460ff1615610f395760405162461bcd60e51b815260206004820152602360248201527f43616e206f6e6c79206d696e74206f6e636520647572696e67206d6f75736520604482015262574c2160e81b6064820152608401610ea2565b601d54421015610f8b5760405162461bcd60e51b815260206004820152601c60248201527f4d69636520574c20686173206e6f7420737461727465642079657421000000006044820152606401610ea2565b612710610f96610cf8565b610fa190600161318a565b1115610fe75760405162461bcd60e51b81526020600482015260156024820152744d617820737570706c79206f662031302c3030302160581b6044820152606401610ea2565b336000818152601860205260409020805460ff1916600190811790915561100e91906124c0565b5050565b6001546000906001600160801b031681805b828110156110a457600081815260046020908152604091829020825160608101845290546001600160a01b0381168252600160a01b81046001600160401b031692820192909252600160e01b90910460ff1615159181018290529061109b57858314156110945750949350505050565b6001909201915b50600101611024565b506040516329c8c00760e21b815260040160405180910390fd5b601a80546110cb9061322f565b80601f01602080910402602001604051908101604052809291908181526020018280546110f79061322f565b80156111445780601f1061111957610100808354040283529160200191611144565b820191906000526020600020905b81548152906001019060200180831161112757829003601f168201915b505050505081565b6000546001600160a01b031633146111765760405162461bcd60e51b8152600401610ea29061307b565b805161100e90601b906020840190612ab1565b601580546110cb9061322f565b60006111a1826124da565b5192915050565b60006001600160a01b0382166111d1576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b03166000908152600560205260409020546001600160401b031690565b6000546001600160a01b031633146112205760405162461bcd60e51b8152600401610ea29061307b565b61122a60006125fe565b565b600f544210156112745760405162461bcd60e51b8152602060048201526013602482015272444120686173206e6f7420737461727465642160681b6044820152606401610ea2565b60008160ff1611801561128a575060068160ff16105b6112d65760405162461bcd60e51b815260206004820152601960248201527f43616e206f6e6c79206d696e74206d61782035204e46547321000000000000006044820152606401610ea2565b60006112e061148c565b90506112ef8160ff84166131b6565b34101561133e5760405162461bcd60e51b815260206004820152601860248201527f446964206e6f742073656e6420656e6f756768206574682e00000000000000006044820152606401610ea2565b6011548260ff1661134d610cf8565b611357919061318a565b11156113a55760405162461bcd60e51b815260206004820152601a60248201527f4d617820737570706c7920666f722044412072656163686564210000000000006044820152606401610ea2565b6011548260ff166113b4610cf8565b6113be919061318a565b14156113ca5760108190555b33600081815260166020908152604080832081518083019092526001600160801b03348116835260ff80891684860181815284546001810186559488529590962093519390920180549451909216600160801b026001600160881b031990941692169190911791909117905561100e91906124c0565b6000546001600160a01b0316331461146a5760405162461bcd60e51b8152600401610ea29061307b565b805161100e906015906020840190612ab1565b606060038054610b859061322f565b6000600f544210156114d65760405162461bcd60e51b8152602060048201526013602482015272444120686173206e6f7420737461727465642160681b6044820152606401610ea2565b601054156114e5575060105490565b6000600f54426114f591906131d5565b90506000600e548261150791906131a2565b90506000600d548261151991906131b6565b9050600c54600b5461152b91906131d5565b811061153c57600c54935050505090565b80600b5461154a91906131d5565b935050505090565b6001600160a01b03821633141561157c5760405163b06307db60e01b815260040160405180910390fd5b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6115f3848484612294565b6115ff8484848461264e565b61161c576040516368d2bf6b60e11b815260040160405180910390fd5b50505050565b6000601054116116445760405162461bcd60e51b8152600401610ea290613123565b336000908152601660205260408120545b80156117895760105433600090815260166020526040812090919061167b6001856131d5565b8154811061169957634e487b7160e01b600052603260045260246000fd5b6000918252602090912001546116b99190600160801b900460ff166131b6565b3360009081526016602052604081209192509082906116d96001866131d5565b815481106116f757634e487b7160e01b600052603260045260246000fd5b60009182526020909120015461171691906001600160801b03166131d5565b3360009081526016602052604090208054919250908061174657634e487b7160e01b600052603160045260246000fd5b600082815260209020810160001990810180546001600160881b0319169055019055611772818561318a565b93505050808061178190613218565b915050611655565b50604051339082156108fc029083906000818181858888f1935050505015801561100e573d6000803e3d6000fd5b6000546001600160a01b031633146117e15760405162461bcd60e51b8152600401610ea29061307b565b612710826117ed610cf8565b6117f7919061318a565b11156118455760405162461bcd60e51b815260206004820152601b60248201527f4d617820737570706c79206f662031302c30303020746f74616c2100000000006044820152606401610ea2565b6000601054116118675760405162461bcd60e51b8152600401610ea290613123565b61100e81836124c0565b8061187b8161275c565b6118975760405162461bcd60e51b8152600401610ea2906130b0565b6000601054116118b95760405162461bcd60e51b8152600401610ea290613123565b3360009081526017602052604090205460ff16156119255760405162461bcd60e51b8152602060048201526024808201527f43616e206f6e6c79206d696e74206f6e636520647572696e67207075626c696360448201526320574c2160e01b6064820152608401610ea2565b601c544210156119775760405162461bcd60e51b815260206004820152601e60248201527f5075626c696320574c20686173206e6f742073746172746564207965742100006044820152606401610ea2565b606460105461198691906131a2565b6119919060506131b6565b3410156119e05760405162461bcd60e51b815260206004820181905260248201527f4d7573742073656e6420656e6f7567682065746820666f7220574c204d696e746044820152606401610ea2565b6121346119eb610cf8565b6119f690600161318a565b1115611a3b5760405162461bcd60e51b81526020600482015260146024820152734d617820737570706c79206f6620382c3530302160601b6044820152606401610ea2565b336000908152601760205260408120805460ff191660011790556012805461ffff1691611a678361326a565b91906101000a81548161ffff021916908361ffff1602179055505061100e3360016124c0565b60195460609060ff1615611acd57601b611aa68361276b565b604051602001611ab7929190612f85565b6040516020818303038152906040529050919050565b601a8054611ada9061322f565b80601f0160208091040260200160405190810160405280929190818152602001828054611b069061322f565b8015611b535780601f10611b2857610100808354040283529160200191611b53565b820191906000526020600020905b815481529060010190602001808311611b3657829003601f168201915b50505050509050919050565b919050565b6000546001600160a01b03163314611b8e5760405162461bcd60e51b8152600401610ea29061307b565b600955565b6000610c1f82611ba2856121ae565b6008546121ed565b6000546001600160a01b03163314611bd45760405162461bcd60e51b8152600401610ea29061307b565b60125462010000900460ff1615611c405760405162461bcd60e51b815260206004820152602a60248201527f496e697469616c2066756e6473206861766520616c7265616479206265656e206044820152693bb4ba34323930bbb71760b11b6064820152608401610ea2565b600060105411611c895760405162461bcd60e51b8152602060048201526014602482015273444120686173206e6f742066696e69736865642160601b6044820152606401610ea2565b6000601054601154611c9b91906131b6565b905060006064601054611cae91906131a2565b611cb99060506131b6565b601254611cca919061ffff166131b6565b90506000611cd8828461318a565b6012805462ff000019166201000017908190559091506000906001600160a01b03640100000000909104166064611d1084600f6131b6565b611d1a91906131a2565b604051600081818185875af1925050503d8060008114611d56576040519150601f19603f3d011682016040523d82523d6000602084013e611d5b565b606091505b5050905080611d7c5760405162461bcd60e51b8152600401610ea2906130fa565b6013546001600160a01b03166064611d958460236131b6565b611d9f91906131a2565b604051600081818185875af1925050503d8060008114611ddb576040519150601f19603f3d011682016040523d82523d6000602084013e611de0565b606091505b50508091505080611e035760405162461bcd60e51b8152600401610ea2906130fa565b6014546001600160a01b03166064611e1c8460326131b6565b611e2691906131a2565b604051600081818185875af1925050503d8060008114611e62576040519150601f19603f3d011682016040523d82523d6000602084013e611e67565b606091505b5050809150508061161c5760405162461bcd60e51b8152600401610ea2906130fa565b6000546001600160a01b03163314611eb45760405162461bcd60e51b8152600401610ea29061307b565b6019805460ff19168315151790558051610cf390601a906020840190612ab1565b6000546001600160a01b03163314611eff5760405162461bcd60e51b8152600401610ea29061307b565b600855565b601b80546110cb9061322f565b606060158054610b859061322f565b6000546001600160a01b03163314611f4a5760405162461bcd60e51b8152600401610ea29061307b565b600f54611f5a9062093a8061318a565b421015611f6657600080fd5b601254479060009064010000000090046001600160a01b03166064611f8c84600f6131b6565b611f9691906131a2565b604051600081818185875af1925050503d8060008114611fd2576040519150601f19603f3d011682016040523d82523d6000602084013e611fd7565b606091505b5050905080611ff85760405162461bcd60e51b8152600401610ea2906130fa565b6013546001600160a01b031660646120118460236131b6565b61201b91906131a2565b604051600081818185875af1925050503d8060008114612057576040519150601f19603f3d011682016040523d82523d6000602084013e61205c565b606091505b5050809150508061207f5760405162461bcd60e51b8152600401610ea2906130fa565b6014546001600160a01b031660646120988460326131b6565b6120a291906131a2565b604051600081818185875af1925050503d80600081146120de576040519150601f19603f3d011682016040523d82523d6000602084013e6120e3565b606091505b5050809150508061100e5760405162461bcd60e51b8152600401610ea2906130fa565b6000546001600160a01b031633146121305760405162461bcd60e51b8152600401610ea29061307b565b6001600160a01b0381166121955760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610ea2565b61219e816125fe565b50565b600a80546110cb9061322f565b6040516bffffffffffffffffffffffff19606083901b166020820152600090603401604051602081830303815290604052805190602001209050919050565b60006121fa848385612884565b949350505050565b6001546000906001600160801b031682108015610b70575050600090815260046020526040902054600160e01b900460ff161590565b60008281526006602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b600061229f826124da565b80519091506000906001600160a01b0316336001600160a01b031614806122cd575081516122cd9033610a23565b806122e85750336122dd84610c26565b6001600160a01b0316145b90508061230857604051632ce44b5f60e11b815260040160405180910390fd5b846001600160a01b031682600001516001600160a01b03161461233d5760405162a1148160e81b815260040160405180910390fd5b6001600160a01b03841661236457604051633a954ecd60e21b815260040160405180910390fd5b6123746000848460000151612238565b6001600160a01b038581166000908152600560209081526040808320805467ffffffffffffffff198082166001600160401b0392831660001901831617909255898616808652838620805493841693831660019081018416949094179055898652600490945282852080546001600160e01b031916909417600160a01b429092169190910217909255908601808352912054909116612467576001546001600160801b031681101561246757825160008281526004602090815260409091208054918601516001600160401b0316600160a01b026001600160e01b03199092166001600160a01b03909316929092171790555b5082846001600160a01b0316866001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45b5050505050565b6000610b7082610c17336121ae565b61100e82826040518060200160405280600081525061289a565b604080516060810182526000808252602082018190529181019190915260015482906001600160801b03168110156125e557600081815260046020908152604091829020825160608101845290546001600160a01b0381168252600160a01b81046001600160401b031692820192909252600160e01b90910460ff161515918101829052906125e35780516001600160a01b03161561257a579392505050565b5060001901600081815260046020908152604091829020825160608101845290546001600160a01b038116808352600160a01b82046001600160401b031693830193909352600160e01b900460ff16151592810192909252156125de579392505050565b61257a565b505b604051636f96cda160e11b815260040160405180910390fd5b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b60006001600160a01b0384163b1561275157604051630a85bd0160e11b81526001600160a01b0385169063150b7a029061269290339089908890889060040161302b565b602060405180830381600087803b1580156126ac57600080fd5b505af19250505080156126dc575060408051601f3d908101601f191682019092526126d991810190612eac565b60015b612737573d80801561270a576040519150601f19603f3d011682016040523d82523d6000602084013e61270f565b606091505b50805161272f576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490506121fa565b506001949350505050565b6000610b7082611ba2336121ae565b60608161278f5750506040805180820190915260018152600360fc1b602082015290565b8160005b81156127b957806127a38161328c565b91506127b29050600a836131a2565b9150612793565b6000816001600160401b038111156127e157634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f19166020018201604052801561280b576020820181803683370190505b5090505b84156121fa576128206001836131d5565b915061282d600a866132a7565b61283890603061318a565b60f81b81838151811061285b57634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a90535061287d600a866131a2565b945061280f565b60008261289185846128a7565b14949350505050565b610cf38383836001612929565b600081815b84518110156129215760008582815181106128d757634e487b7160e01b600052603260045260246000fd5b602002602001015190508083116128fd576000838152602082905260409020925061290e565b600081815260208490526040902092505b50806129198161328c565b9150506128ac565b509392505050565b6001546001600160801b03166001600160a01b03851661295b57604051622e076360e81b815260040160405180910390fd5b836129795760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b038516600081815260056020908152604080832080546001600160801b031981166001600160401b038083168c0181169182176801000000000000000067ffffffffffffffff1990941690921783900481168c018116909202179091558584526004909252822080546001600160e01b031916909317600160a01b42909216919091021790915581905b85811015612a8b5760405182906001600160a01b038916906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a4838015612a615750612a5f600088848861264e565b155b15612a7f576040516368d2bf6b60e11b815260040160405180910390fd5b60019182019101612a0a565b50600180546001600160801b0319166001600160801b03929092169190911790556124aa565b828054612abd9061322f565b90600052602060002090601f016020900481019282612adf5760008555612b25565b82601f10612af857805160ff1916838001178555612b25565b82800160010185558215612b25579182015b82811115612b25578251825591602001919060010190612b0a565b50612b31929150612b35565b5090565b5b80821115612b315760008155600101612b36565b60006001600160401b03831115612b6357612b636132e7565b612b76601f8401601f191660200161315a565b9050828152838383011115612b8a57600080fd5b828260208301376000602084830101529392505050565b80356001600160a01b0381168114611b5f57600080fd5b600082601f830112612bc8578081fd5b813560206001600160401b03821115612be357612be36132e7565b8160051b612bf282820161315a565b838152828101908684018388018501891015612c0c578687fd5b8693505b85841015612c2e578035835260019390930192918401918401612c10565b50979650505050505050565b80358015158114611b5f57600080fd5b600082601f830112612c5a578081fd5b610c1f83833560208501612b4a565b600060208284031215612c7a578081fd5b610c1f82612ba1565b60008060408385031215612c95578081fd5b612c9e83612ba1565b9150612cac60208401612ba1565b90509250929050565b600080600060608486031215612cc9578081fd5b612cd284612ba1565b9250612ce060208501612ba1565b9150604084013590509250925092565b60008060008060808587031215612d05578081fd5b612d0e85612ba1565b9350612d1c60208601612ba1565b92506040850135915060608501356001600160401b03811115612d3d578182fd5b8501601f81018713612d4d578182fd5b612d5c87823560208401612b4a565b91505092959194509250565b60008060408385031215612d7a578182fd5b612d8383612ba1565b915060208301356001600160401b03811115612d9d578182fd5b612da985828601612bb8565b9150509250929050565b60008060408385031215612dc5578182fd5b612dce83612ba1565b9150612cac60208401612c3a565b60008060408385031215612dee578182fd5b612df783612ba1565b946020939093013593505050565b600060208284031215612e16578081fd5b81356001600160401b03811115612e2b578182fd5b6121fa84828501612bb8565b60008060408385031215612e49578182fd5b612e5283612c3a565b915060208301356001600160401b03811115612e6c578182fd5b612da985828601612c4a565b600060208284031215612e89578081fd5b5035919050565b600060208284031215612ea1578081fd5b8135610c1f816132fd565b600060208284031215612ebd578081fd5b8151610c1f816132fd565b600060208284031215612ed9578081fd5b81356001600160401b03811115612eee578182fd5b6121fa84828501612c4a565b60008060408385031215612f0c578182fd5b82359150612cac60208401612ba1565b600060208284031215612f2d578081fd5b813560ff81168114610c1f578182fd5b60008151808452612f558160208601602086016131ec565b601f01601f19169290920160200192915050565b60008151612f7b8185602086016131ec565b9290920192915050565b600080845482600182811c915080831680612fa157607f831692505b6020808410821415612fc157634e487b7160e01b87526022600452602487fd5b818015612fd55760018114612fe657613012565b60ff19861689528489019650613012565b60008b815260209020885b8681101561300a5781548b820152908501908301612ff1565b505084890196505b5050505050506130228185612f69565b95945050505050565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061305e90830184612f3d565b9695505050505050565b602081526000610c1f6020830184612f3d565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b6020808252602a908201527f4d65726b6c6557686974656c6973743a2043616c6c6572206973206e6f7420776040820152691a1a5d195b1a5cdd195960b21b606082015260800190565b6020808252600f908201526e1d1c985b9cd9995c8819985a5b1959608a1b604082015260600190565b6020808252601a908201527f447574636820616374696f6e206d757374206265206f76657221000000000000604082015260600190565b604051601f8201601f191681016001600160401b0381118282101715613182576131826132e7565b604052919050565b6000821982111561319d5761319d6132bb565b500190565b6000826131b1576131b16132d1565b500490565b60008160001904831182151516156131d0576131d06132bb565b500290565b6000828210156131e7576131e76132bb565b500390565b60005b838110156132075781810151838201526020016131ef565b8381111561161c5750506000910152565b600081613227576132276132bb565b506000190190565b600181811c9082168061324357607f821691505b6020821081141561326457634e487b7160e01b600052602260045260246000fd5b50919050565b600061ffff80831681811415613282576132826132bb565b6001019392505050565b60006000198214156132a0576132a06132bb565b5060010190565b6000826132b6576132b66132d1565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160e01b03198116811461219e57600080fdfea2646970667358221220ec42168ba2959e653f1c56eea16d5ac0608b66d080ddd2c315fd07199202c3fa64736f6c63430008040033

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.