ETH Price: $3,372.89 (+0.17%)

Token

Mugs (MUGS)
 

Overview

Max Total Supply

1,804 MUGS

Holders

676

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Filtered by Token Holder
itsmoma.eth
Balance
1 MUGS
0xa86B1ab5bc759FB0B7fc8611e1705688b747f487
Loading...
Loading
Loading...
Loading
Loading...
Loading

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

Contract Source Code Verified (Exact Match)

Contract Name:
Mugs

Compiler Version
v0.8.14+commit.80d49f37

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 17 : Mugs.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.13;
import {Token} from "./Token.sol";

contract Mugs is Token {
    constructor()
        Token("Mugs", "MUGS", 2, 5000, 309, 500, 0.05309 ether, 0 ether, 1734, "", keccak256(""))
    {}
}

File 2 of 17 : Token.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.13;

import {ERC721A} from "ERC721A/ERC721A.sol";
import {IERC2981} from "openzeppelin-contracts/interfaces/IERC2981.sol";
import {IERC165} from "openzeppelin-contracts/interfaces/IERC165.sol";
import {AllowList} from "./lib/AllowList.sol";
import {BatchReveal} from "./lib/BatchReveal.sol";
import {MaxMintable} from "./lib/MaxMintable.sol";
import {Withdrawable} from "./lib/Withdrawable.sol";
import {TwoStepOwnable} from "./lib/TwoStepOwnable.sol";
import {Ownable} from "openzeppelin-contracts/access/Ownable.sol";

contract Token is MaxMintable, IERC2981, AllowList, BatchReveal, TwoStepOwnable, Withdrawable {
    uint256 immutable MAX_PUBLIC_MINTABLE;
    uint256 immutable MAX_DEV_MINTABLE;

    address royaltyRecipient;
    uint96 public mintPrice;
    uint96 public allowListMintPrice;
    uint16 numDevMinted;
    uint16 public royaltyBps;
    SaleState public saleState;

    enum SaleState {
        PAUSED,
        ALLOW_LIST,
        PUBLIC
    }

    error SalePaused();
    error PublicSaleInactive();
    error MaxSupply();
    error IncorrectPayment();
    error MaxDevMinted();
    error InvalidRoyaltyBps();

    ///@notice modifier to restrict function only when SaleState is PUBLIC
    modifier onlyPublic() {
        if (saleState != SaleState.PUBLIC) {
            revert PublicSaleInactive();
        }
        _;
    }

    ///@notice modifier to restrict function only when SaleState is not PAUSED
    modifier whenNotPaused() {
        if (saleState == SaleState.PAUSED) {
            revert SalePaused();
        }
        _;
    }

    ///@notice modifier to restrict function when quantity + number minted is <= MAX_PUBLIC_MINTABLE
    modifier canMint(uint256 quantity) {
        if (quantity + _nextTokenId() > MAX_PUBLIC_MINTABLE) {
            revert MaxSupply();
        }
        _;
    }

    ///@notice modifier to restrict function to only accept msg.value of _mintPrice * quantity
    modifier includesCorrectPayment(uint96 _mintPrice, uint256 quantity) {
        if (quantity * _mintPrice != msg.value) {
            revert IncorrectPayment();
        }
        _;
    }

    constructor(
        string memory name,
        string memory symbol,
        uint256 _maxMintsPerWallet,
        uint256 numPublicMintable,
        uint256 numDevMintable,
        uint16 _royaltyBps,
        uint96 _mintPrice,
        uint96 _allowListMintPrice,
        uint128 _maxTotalAllowListMints,
        string memory _defaultURI,
        bytes32 provenanceHash
    )
        MaxMintable(name, symbol, _maxMintsPerWallet)
        BatchReveal(_defaultURI, provenanceHash)
        AllowList(_maxTotalAllowListMints)
    {
        royaltyRecipient = msg.sender;
        MAX_DEV_MINTABLE = numDevMintable;
        MAX_PUBLIC_MINTABLE = numPublicMintable;
        royaltyBps = _royaltyBps;
        mintPrice = _mintPrice;
        allowListMintPrice = _allowListMintPrice;
    }

    /// @notice mint a token when public sale is active, up to max supply, up to max quantity per wallet,
    /// given correct public mint payment
    function mint(uint256 quantity)
        public
        payable
        onlyPublic
        canMint(quantity)
        checkMaxMintedForWallet(quantity)
        includesCorrectPayment(mintPrice, quantity)
    {
        _mint(msg.sender, quantity);
    }

    /// @notice mint a token when not paused, up to max supply, up to max quantity per wallet,
    /// given correct allowlist mint payment and proof of inclusion on allowlist
    function allowListMint(uint128 quantity, bytes32[] calldata proof)
        public
        payable
        virtual
        whenNotPaused
        canMint(quantity)
        onlyAllowListed(proof)
        checkMaxMintedForWallet(quantity)
        includesCorrectPayment(allowListMintPrice, quantity)
        upToMaxTotalAllowListMinted(quantity)
    {
        _mint(msg.sender, quantity);
    }

    ///@notice contract owner can mint up to MAX_DEV_MINTABLE tokens
    function devMint(uint16 amount, address to) public onlyOwner {
        if (uint256(numDevMinted) + amount > MAX_DEV_MINTABLE) {
            revert MaxDevMinted();
        }
        numDevMinted += amount;
        _safeMint(to, amount);
    }

    /// @notice set public mint price. onlyOwner
    function setMintPrice(uint96 newPrice) public onlyOwner {
        mintPrice = newPrice;
    }

    /// @notice set allowlist mint price. onlyOwner
    function setAllowListMintPrice(uint96 newPrice) public onlyOwner {
        allowListMintPrice = newPrice;
    }

    /// @notice set SaleState. onlyOwner
    function setSaleState(SaleState _saleState) public onlyOwner {
        saleState = _saleState;
    }

    /// @notice set royalty recipient. onlyOwner
    function setRoyaltyInfo(address recipient, uint16 bps) public onlyOwner {
        if (bps > 10000) {
            revert InvalidRoyaltyBps();
        }
        royaltyBps = bps;
        royaltyRecipient = recipient;
    }

    function supportsInterface(bytes4 interfaceId)
        public
        view
        virtual
        override(ERC721A, IERC165)
        returns (bool)
    {
        return ERC721A.supportsInterface(interfaceId) || type(IERC2981).interfaceId == interfaceId;
    }

    /// @dev Returns the royalty recipient and amount, given a tokenId and sale price.
    function royaltyInfo(uint256, uint256 salePrice)
        external
        view
        virtual
        override
        returns (address receiver, uint256 royaltyAmount)
    {
        return (royaltyRecipient, (royaltyBps * salePrice) / 10_000);
    }

    function _baseURI()
        internal
        view
        virtual
        override(ERC721A, BatchReveal)
        returns (string memory)
    {
        return BatchReveal._baseURI();
    }

    function tokenURI(uint256 tokenId)
        public
        view
        override(ERC721A, BatchReveal)
        returns (string memory)
    {
        return BatchReveal.tokenURI(tokenId);
    }

    function transferOwnership(address newOwner)
        public
        virtual
        override(Ownable, TwoStepOwnable)
        onlyOwner
    {
        TwoStepOwnable.transferOwnership(newOwner);
    }
}

File 3 of 17 : ERC721A.sol
// SPDX-License-Identifier: MIT
// ERC721A Contracts v4.0.0
// Creator: Chiru Labs

pragma solidity ^0.8.4;

import './IERC721A.sol';

/**
 * @dev ERC721 token receiver interface.
 */
interface ERC721A__IERC721Receiver {
    function onERC721Received(
        address operator,
        address from,
        uint256 tokenId,
        bytes calldata data
    ) external returns (bytes4);
}

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

    // The bit position of `numberMinted` in packed address data.
    uint256 private constant BITPOS_NUMBER_MINTED = 64;

    // The bit position of `numberBurned` in packed address data.
    uint256 private constant BITPOS_NUMBER_BURNED = 128;

    // The bit position of `aux` in packed address data.
    uint256 private constant BITPOS_AUX = 192;

    // Mask of all 256 bits in packed address data except the 64 bits for `aux`.
    uint256 private constant BITMASK_AUX_COMPLEMENT = (1 << 192) - 1;

    // The bit position of `startTimestamp` in packed ownership.
    uint256 private constant BITPOS_START_TIMESTAMP = 160;

    // The bit mask of the `burned` bit in packed ownership.
    uint256 private constant BITMASK_BURNED = 1 << 224;

    // The bit position of the `nextInitialized` bit in packed ownership.
    uint256 private constant BITPOS_NEXT_INITIALIZED = 225;

    // The bit mask of the `nextInitialized` bit in packed ownership.
    uint256 private constant BITMASK_NEXT_INITIALIZED = 1 << 225;

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

    // The number of tokens burned.
    uint256 private _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 `_packedOwnershipOf` implementation for details.
    //
    // Bits Layout:
    // - [0..159]   `addr`
    // - [160..223] `startTimestamp`
    // - [224]      `burned`
    // - [225]      `nextInitialized`
    mapping(uint256 => uint256) private _packedOwnerships;

    // Mapping owner address to address data.
    //
    // Bits Layout:
    // - [0..63]    `balance`
    // - [64..127]  `numberMinted`
    // - [128..191] `numberBurned`
    // - [192..255] `aux`
    mapping(address => uint256) private _packedAddressData;

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

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

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

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

    /**
     * @dev Returns the next token ID to be minted.
     */
    function _nextTokenId() internal view returns (uint256) {
        return _currentIndex;
    }

    /**
     * @dev Returns the total number of tokens in existence.
     * Burned tokens will reduce the count.
     * To get the total number of tokens minted, please see `_totalMinted`.
     */
    function totalSupply() public view override returns (uint256) {
        // Counter underflow is impossible as _burnCounter cannot be incremented
        // more than `_currentIndex - _startTokenId()` times.
        unchecked {
            return _currentIndex - _burnCounter - _startTokenId();
        }
    }

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

    /**
     * @dev Returns the total number of tokens burned.
     */
    function _totalBurned() internal view returns (uint256) {
        return _burnCounter;
    }

    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
        // The interface IDs are constants representing the first 4 bytes of the XOR of
        // all function selectors in the interface. See: https://eips.ethereum.org/EIPS/eip-165
        // e.g. `bytes4(i.functionA.selector ^ i.functionB.selector ^ ...)`
        return
            interfaceId == 0x01ffc9a7 || // ERC165 interface ID for ERC165.
            interfaceId == 0x80ac58cd || // ERC165 interface ID for ERC721.
            interfaceId == 0x5b5e139f; // ERC165 interface ID for ERC721Metadata.
    }

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

    /**
     * Returns the number of tokens minted by `owner`.
     */
    function _numberMinted(address owner) internal view returns (uint256) {
        return (_packedAddressData[owner] >> BITPOS_NUMBER_MINTED) & BITMASK_ADDRESS_DATA_ENTRY;
    }

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

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

    /**
     * Sets the auxiliary data for `owner`. (e.g. number of whitelist mint slots used).
     * If there are multiple variables, please pack them into a uint64.
     */
    function _setAux(address owner, uint64 aux) internal {
        uint256 packed = _packedAddressData[owner];
        uint256 auxCasted;
        assembly {
            // Cast aux without masking.
            auxCasted := aux
        }
        packed = (packed & BITMASK_AUX_COMPLEMENT) | (auxCasted << BITPOS_AUX);
        _packedAddressData[owner] = packed;
    }

    /**
     * Returns the packed ownership data of `tokenId`.
     */
    function _packedOwnershipOf(uint256 tokenId) private view returns (uint256) {
        uint256 curr = tokenId;

        unchecked {
            if (_startTokenId() <= curr)
                if (curr < _currentIndex) {
                    uint256 packed = _packedOwnerships[curr];
                    // If not burned.
                    if (packed & BITMASK_BURNED == 0) {
                        // 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.
                        //
                        // We can directly compare the packed value.
                        // If the address is zero, packed is zero.
                        while (packed == 0) {
                            packed = _packedOwnerships[--curr];
                        }
                        return packed;
                    }
                }
        }
        revert OwnerQueryForNonexistentToken();
    }

    /**
     * Returns the unpacked `TokenOwnership` struct from `packed`.
     */
    function _unpackedOwnership(uint256 packed) private pure returns (TokenOwnership memory ownership) {
        ownership.addr = address(uint160(packed));
        ownership.startTimestamp = uint64(packed >> BITPOS_START_TIMESTAMP);
        ownership.burned = packed & BITMASK_BURNED != 0;
    }

    /**
     * Returns the unpacked `TokenOwnership` struct at `index`.
     */
    function _ownershipAt(uint256 index) internal view returns (TokenOwnership memory) {
        return _unpackedOwnership(_packedOwnerships[index]);
    }

    /**
     * @dev Initializes the ownership slot minted at `index` for efficiency purposes.
     */
    function _initializeOwnershipAt(uint256 index) internal {
        if (_packedOwnerships[index] == 0) {
            _packedOwnerships[index] = _packedOwnershipOf(index);
        }
    }

    /**
     * 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) {
        return _unpackedOwnership(_packedOwnershipOf(tokenId));
    }

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

    /**
     * @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, _toString(tokenId))) : '';
    }

    /**
     * @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, it can be overridden in child contracts.
     */
    function _baseURI() internal view virtual returns (string memory) {
        return '';
    }

    /**
     * @dev Casts the address to uint256 without masking.
     */
    function _addressToUint256(address value) private pure returns (uint256 result) {
        assembly {
            result := value
        }
    }

    /**
     * @dev Casts the boolean to uint256 without branching.
     */
    function _boolToUint256(bool value) private pure returns (uint256 result) {
        assembly {
            result := value
        }
    }

    /**
     * @dev See {IERC721-approve}.
     */
    function approve(address to, uint256 tokenId) public override {
        address owner = address(uint160(_packedOwnershipOf(tokenId)));

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

        _tokenApprovals[tokenId] = to;
        emit Approval(owner, to, tokenId);
    }

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

        return _tokenApprovals[tokenId];
    }

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

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

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

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

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

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

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

    /**
     * @dev Equivalent to `_safeMint(to, quantity, '')`.
     */
    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 for each mint.
     */
    function _safeMint(
        address to,
        uint256 quantity,
        bytes memory _data
    ) internal {
        _mint(to, quantity);

        unchecked {
            if (to.code.length != 0) {
                uint256 end = _currentIndex;
                uint256 index = end - quantity;
                do {
                    if (!_checkContractOnERC721Received(address(0), to, index++, _data)) {
                        revert TransferToNonERC721ReceiverImplementer();
                    }
                } while (index < end);
                // Reentrancy protection.
                if (_currentIndex != end) revert();
            }
        }
    }

    /**
     * @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 for each mint.
     */
    function _mint(address to, uint256 quantity) internal {
        uint256 startTokenId = _currentIndex;
        if (_addressToUint256(to) == 0) revert MintToZeroAddress();
        if (quantity == 0) revert MintZeroQuantity();

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

        // Overflows are incredibly unrealistic.
        // balance or numberMinted overflow if current value of either + quantity > 1.8e19 (2**64) - 1
        // updatedIndex overflows if _currentIndex + quantity > 1.2e77 (2**256) - 1
        unchecked {
            // Updates:
            // - `balance += quantity`.
            // - `numberMinted += quantity`.
            //
            // We can directly add to the balance and number minted.
            _packedAddressData[to] += quantity * ((1 << BITPOS_NUMBER_MINTED) | 1);

            // Updates:
            // - `address` to the owner.
            // - `startTimestamp` to the timestamp of minting.
            // - `burned` to `false`.
            // - `nextInitialized` to `quantity == 1`.
            _packedOwnerships[startTokenId] =
                _addressToUint256(to) |
                (block.timestamp << BITPOS_START_TIMESTAMP) |
                (_boolToUint256(quantity == 1) << BITPOS_NEXT_INITIALIZED);

            uint256 offset;
            do {
                emit Transfer(address(0), to, startTokenId + offset++);
            } while (offset < quantity);

            _currentIndex = startTokenId + quantity;
        }
        _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 {
        uint256 prevOwnershipPacked = _packedOwnershipOf(tokenId);

        if (address(uint160(prevOwnershipPacked)) != from) revert TransferFromIncorrectOwner();

        address approvedAddress = _tokenApprovals[tokenId];

        bool isApprovedOrOwner = (_msgSenderERC721A() == from ||
            isApprovedForAll(from, _msgSenderERC721A()) ||
            approvedAddress == _msgSenderERC721A());

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

        _beforeTokenTransfers(from, to, tokenId, 1);

        // Clear approvals from the previous owner.
        if (_addressToUint256(approvedAddress) != 0) {
            delete _tokenApprovals[tokenId];
        }

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

            // Updates:
            // - `address` to the next owner.
            // - `startTimestamp` to the timestamp of transfering.
            // - `burned` to `false`.
            // - `nextInitialized` to `true`.
            _packedOwnerships[tokenId] =
                _addressToUint256(to) |
                (block.timestamp << BITPOS_START_TIMESTAMP) |
                BITMASK_NEXT_INITIALIZED;

            // If the next slot may not have been initialized (i.e. `nextInitialized == false`) .
            if (prevOwnershipPacked & BITMASK_NEXT_INITIALIZED == 0) {
                uint256 nextTokenId = tokenId + 1;
                // If the next slot's address is zero and not burned (i.e. packed value is zero).
                if (_packedOwnerships[nextTokenId] == 0) {
                    // If the next slot is within bounds.
                    if (nextTokenId != _currentIndex) {
                        // Initialize the next slot to maintain correctness for `ownerOf(tokenId + 1)`.
                        _packedOwnerships[nextTokenId] = prevOwnershipPacked;
                    }
                }
            }
        }

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

    /**
     * @dev Equivalent to `_burn(tokenId, false)`.
     */
    function _burn(uint256 tokenId) internal virtual {
        _burn(tokenId, false);
    }

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

        address from = address(uint160(prevOwnershipPacked));
        address approvedAddress = _tokenApprovals[tokenId];

        if (approvalCheck) {
            bool isApprovedOrOwner = (_msgSenderERC721A() == from ||
                isApprovedForAll(from, _msgSenderERC721A()) ||
                approvedAddress == _msgSenderERC721A());

            if (!isApprovedOrOwner) revert TransferCallerNotOwnerNorApproved();
        }

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

        // Clear approvals from the previous owner.
        if (_addressToUint256(approvedAddress) != 0) {
            delete _tokenApprovals[tokenId];
        }

        // Underflow of the sender's balance is impossible because we check for
        // ownership above and the recipient's balance can't realistically overflow.
        // Counter overflow is incredibly unrealistic as tokenId would have to be 2**256.
        unchecked {
            // Updates:
            // - `balance -= 1`.
            // - `numberBurned += 1`.
            //
            // We can directly decrement the balance, and increment the number burned.
            // This is equivalent to `packed -= 1; packed += 1 << BITPOS_NUMBER_BURNED;`.
            _packedAddressData[from] += (1 << BITPOS_NUMBER_BURNED) - 1;

            // Updates:
            // - `address` to the last owner.
            // - `startTimestamp` to the timestamp of burning.
            // - `burned` to `true`.
            // - `nextInitialized` to `true`.
            _packedOwnerships[tokenId] =
                _addressToUint256(from) |
                (block.timestamp << BITPOS_START_TIMESTAMP) |
                BITMASK_BURNED |
                BITMASK_NEXT_INITIALIZED;

            // If the next slot may not have been initialized (i.e. `nextInitialized == false`) .
            if (prevOwnershipPacked & BITMASK_NEXT_INITIALIZED == 0) {
                uint256 nextTokenId = tokenId + 1;
                // If the next slot's address is zero and not burned (i.e. packed value is zero).
                if (_packedOwnerships[nextTokenId] == 0) {
                    // If the next slot is within bounds.
                    if (nextTokenId != _currentIndex) {
                        // Initialize the next slot to maintain correctness for `ownerOf(tokenId + 1)`.
                        _packedOwnerships[nextTokenId] = prevOwnershipPacked;
                    }
                }
            }
        }

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

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

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

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

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

    /**
     * @dev Returns the message sender (defaults to `msg.sender`).
     *
     * If you are writing GSN compatible contracts, you need to override this function.
     */
    function _msgSenderERC721A() internal view virtual returns (address) {
        return msg.sender;
    }

    /**
     * @dev Converts a `uint256` to its ASCII `string` decimal representation.
     */
    function _toString(uint256 value) internal pure returns (string memory ptr) {
        assembly {
            // The maximum value of a uint256 contains 78 digits (1 byte per digit),
            // but we allocate 128 bytes to keep the free memory pointer 32-byte word aliged.
            // We will need 1 32-byte word to store the length,
            // and 3 32-byte words to store a maximum of 78 digits. Total: 32 + 3 * 32 = 128.
            ptr := add(mload(0x40), 128)
            // Update the free memory pointer to allocate.
            mstore(0x40, ptr)

            // Cache the end of the memory to calculate the length later.
            let end := ptr

            // We write the string from the rightmost digit to the leftmost digit.
            // The following is essentially a do-while loop that also handles the zero case.
            // Costs a bit more than early returning for the zero case,
            // but cheaper in terms of deployment and overall runtime costs.
            for {
                // Initialize and perform the first pass without check.
                let temp := value
                // Move the pointer 1 byte leftwards to point to an empty character slot.
                ptr := sub(ptr, 1)
                // Write the character to the pointer. 48 is the ASCII index of '0'.
                mstore8(ptr, add(48, mod(temp, 10)))
                temp := div(temp, 10)
            } temp {
                // Keep dividing `temp` until zero.
                temp := div(temp, 10)
            } {
                // Body of the for loop.
                ptr := sub(ptr, 1)
                mstore8(ptr, add(48, mod(temp, 10)))
            }

            let length := sub(end, ptr)
            // Move the pointer 32 bytes leftwards to make room for the length.
            ptr := sub(ptr, 32)
            // Store the length.
            mstore(ptr, length)
        }
    }
}

File 4 of 17 : IERC2981.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (interfaces/IERC2981.sol)

pragma solidity ^0.8.0;

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

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

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

pragma solidity ^0.8.0;

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

File 6 of 17 : AllowList.sol
// SPDX-License-Identifier: MIT
pragma solidity >=0.8.4;
import {Ownable} from "openzeppelin-contracts/access/Ownable.sol";

/**
 * @notice Smart contract that verifies and tracks allow list redemptions against a configurable Merkle root, up to a
 * max number configured at deploy
 */
contract AllowList is Ownable {
    bytes32 public merkleRoot;
    uint128 public maxTotalAllowListMints;
    uint128 public numAllowListMinted;

    error NotAllowListed();
    error MaxTotalAllowListMinted();

    ///@notice Checks if msg.sender is included in AllowList, revert otherwise
    ///@param _proof Merkle proof
    modifier onlyAllowListed(bytes32[] calldata _proof) {
        if (!isAllowListed(_proof, msg.sender)) {
            revert NotAllowListed();
        }
        _;
    }

    ///@notice check and then increment numAllowListMinted
    ///@param quantity Quantity of tokens to mint
    modifier upToMaxTotalAllowListMinted(uint128 quantity) {
        (uint128 _numAllowListMinted, uint128 _maxTotalAllowListMints) = (
            numAllowListMinted,
            maxTotalAllowListMints
        );
        if (_numAllowListMinted + quantity > _maxTotalAllowListMints) {
            revert MaxTotalAllowListMinted();
        }
        _;
        numAllowListMinted = _numAllowListMinted + quantity;
    }

    constructor(uint128 _maxTotalAllowListMints) {
        maxTotalAllowListMints = _maxTotalAllowListMints;
    }

    ///@notice set the Merkle root in the contract. OnlyOwner.
    ///@param _merkleRoot the new Merkle root
    function setMerkleRoot(bytes32 _merkleRoot) public onlyOwner {
        merkleRoot = _merkleRoot;
    }

    ///@notice Set the maximum number of mints allowed from the allowlist
    ///@param _maxTotalAllowListMints the new maximum number of mints allowed from the allowlist
    function setMaxTotalAllowListMints(uint128 _maxTotalAllowListMints) public onlyOwner {
        maxTotalAllowListMints = _maxTotalAllowListMints;
    }

    ///@notice Given a Merkle proof, check if an address is AllowListed against the root
    ///@param _proof Merkle proof
    ///@param _address address to check against allow list
    ///@return boolean isAllowListed
    function isAllowListed(bytes32[] calldata _proof, address _address) public view returns (bool) {
        return verifyCalldata(_proof, merkleRoot, keccak256(abi.encodePacked(_address)));
    }

    /**
     * @dev Calldata version of {verify}
     * Copied from OpenZeppelin's MerkleProof.sol
     */
    function verifyCalldata(
        bytes32[] calldata proof,
        bytes32 root,
        bytes32 leaf
    ) internal pure returns (bool) {
        return processProofCalldata(proof, leaf) == root;
    }

    /**
     * @dev Calldata version of {processProof}
     * Copied from OpenZeppelin's MerkleProof.sol
     */
    function processProofCalldata(bytes32[] calldata proof, bytes32 leaf)
        internal
        pure
        returns (bytes32)
    {
        bytes32 computedHash = leaf;
        for (uint256 i = 0; i < proof.length; ) {
            computedHash = _hashPair(computedHash, proof[i]);
            unchecked {
                ++i;
            }
        }
        return computedHash;
    }

    /// @dev Copied from OpenZeppelin's MerkleProof.sol
    function _hashPair(bytes32 a, bytes32 b) private pure returns (bytes32) {
        return a < b ? _efficientHash(a, b) : _efficientHash(b, a);
    }

    /// @dev Copied from OpenZeppelin's MerkleProof.sol
    function _efficientHash(bytes32 a, bytes32 b) private pure returns (bytes32 value) {
        /// @solidity memory-safe-assembly
        assembly {
            mstore(0x00, a)
            mstore(0x20, b)
            value := keccak256(0x00, 0x40)
        }
    }
}

File 7 of 17 : BatchReveal.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.13;

// import {IOwnable} from "./thirdweb/IOwnable.sol";
import {Ownable} from "openzeppelin-contracts/access/Ownable.sol";
import {ERC721A} from "ERC721A/ERC721A.sol";

abstract contract BatchReveal is ERC721A, Ownable {
    bytes32 public provenanceHash;
    /// @dev URI used for pre-reveals and fully-revealed mints
    string public defaultURI;
    Reveal[] public reveals;
    bool fullyRevealed;

    struct Reveal {
        uint256 maxId;
        string uri;
    }

    event ProvenanceHashUpdated(
        bytes32 indexed oldProvenanceHash,
        bytes32 indexed newProvenanceHash
    );

    constructor(string memory _defaultURI, bytes32 _provenanceHash) {
        defaultURI = _defaultURI;
        _setProvenanceHash(_provenanceHash);
    }

    /**
     * @dev reveal a batch of tokens by including a maxId (exclusive) and a
     * URI all tokens starting at previous Reveal's maxId
     */
    function addReveal(uint256 maxId, string memory uri) public onlyOwner {
        Reveal memory reveal = Reveal(maxId, uri);
        reveals.push(reveal);
    }

    ///@dev if necessary, update Reveal struct stored at index
    function updateReveal(
        uint256 index,
        uint256 maxId,
        string memory uri
    ) public onlyOwner {
        Reveal memory newReveal = Reveal(maxId, uri);
        reveals[index] = newReveal;
    }

    ///@dev update defaultURI
    function setDefaultURI(string memory finalURI) public onlyOwner {
        _setDefaultURI(finalURI);
    }

    function _setDefaultURI(string memory finalURI) internal {
        defaultURI = finalURI;
    }

    ///@dev permanently use the defaultURI, which should be updated to final URI
    function setFullyRevealed(string memory finalURI) public onlyOwner {
        fullyRevealed = true;
        delete reveals;
        _setDefaultURI(finalURI);
    }

    /// @dev set provenance hash for this contract, emitting an event containing the old
    /// and new hashes. Allows provenance hash to be updated before mint-out while still
    /// allowing for a trail of hashes to prove fairness.
    function setProvenanceHash(bytes32 _newProvenanceHash) public onlyOwner {
        _setProvenanceHash(_newProvenanceHash);
    }

    function _setProvenanceHash(bytes32 _newProvenanceHash) internal {
        bytes32 oldProvenanceHash = provenanceHash;
        provenanceHash = _newProvenanceHash;
        emit ProvenanceHashUpdated(oldProvenanceHash, _newProvenanceHash);
    }

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

    function tokenURI(uint256 _tokenId) public view virtual override returns (string memory) {
        // if not fully revealed, grab URI of first Reveal that covers token ID
        if (!fullyRevealed) {
            uint256 length = reveals.length;
            for (uint256 i = 0; i < length; i++) {
                Reveal memory reveal = reveals[i];
                // reveal.maxId is exclusive of tokenId
                if (_tokenId < reveal.maxId) {
                    return string.concat(reveal.uri, _toString(_tokenId));
                }
            }
        }
        // if fully revealed, concat tokenId to defaultURI; otherwise, return defaultURI as-is
        return fullyRevealed ? super.tokenURI(_tokenId) : defaultURI;
    }
}

File 8 of 17 : MaxMintable.sol
// SPDX-License-Identifier: MIT
pragma solidity >=0.8.4;
import {Ownable} from "openzeppelin-contracts/access/Ownable.sol";
import {ERC721A} from "ERC721A/ERC721A.sol";

///@notice Ownable ERC721A contract with restrictions on how many times an address can mint
contract MaxMintable is ERC721A, Ownable {
    uint256 public maxMintsPerWallet;

    constructor(
        string memory name,
        string memory symbol,
        uint256 _maxMintsPerWallet
    ) ERC721A(name, symbol) {
        maxMintsPerWallet = _maxMintsPerWallet;
    }

    error MaxMintedForWallet();

    modifier checkMaxMintedForWallet(uint256 quantity) {
        // get num minted from ERC721A
        uint256 numMinted = _numberMinted(msg.sender);
        if ((numMinted + quantity) > maxMintsPerWallet) {
            revert MaxMintedForWallet();
        }
        _;
    }

    ///@notice set maxMintsPerWallet. OnlyOwner
    function setMaxMintsPerWallet(uint256 _maxMints) public onlyOwner {
        maxMintsPerWallet = _maxMints;
    }
}

File 9 of 17 : Withdrawable.sol
// SPDX-License-Identifier: MIT
pragma solidity >=0.8.4;
import {Ownable} from "openzeppelin-contracts/access/Ownable.sol";
import {SafeTransferLib} from "@solmate/utils/SafeTransferLib.sol";
import {ERC20} from "@solmate/tokens/ERC20.sol";
import {ERC721} from "@solmate/tokens/ERC721.sol";

///@notice Ownable helper contract to withdraw ether or tokens from the contract address balance
contract Withdrawable is Ownable {
    ///@notice Withdraw Ether from contract address. OnlyOwner.
    function withdraw() external onlyOwner {
        uint256 balance = address(this).balance;
        SafeTransferLib.safeTransferETH(msg.sender, balance);
    }

    ///@notice Withdraw tokens from contract address. OnlyOwner.
    ///@param _token ERC20 smart contract address
    function withdrawERC20(address _token) external onlyOwner {
        ERC20 token = ERC20(_token);
        uint256 balance = ERC20(_token).balanceOf(address(this));
        SafeTransferLib.safeTransfer(token, msg.sender, balance);
    }

    ///@notice Withdraw tokens from contract address. OnlyOwner.
    ///@param _token ERC721 smart contract address
    function withdrawERC721(address _token, uint256 tokenId) external onlyOwner {
        ERC721 token = ERC721(_token);
        token.transferFrom(address(this), msg.sender, tokenId);
    }
}

File 10 of 17 : TwoStepOwnable.sol
// SPDX-License-Identifier: MIT
pragma solidity >=0.8.4;

import {Ownable} from "openzeppelin-contracts/access/Ownable.sol";

/**
@notice A two-step extension of Ownable, where the new owner must claim ownership of the contract after owner initiates transfer
Owner can cancel the transfer at any point before the new owner claims ownership.
Helpful in guarding against transferring ownership to an address that is unable to act as the Owner.
*/
abstract contract TwoStepOwnable is Ownable {
    address internal _potentialOwner;

    error NewOwnerIsZeroAddress();
    error NotNextOwner();

    ///@notice Initiate ownership transfer to _newOwner. Note: new owner will have to manually claimOwnership
    ///@param _newOwner address of potential new owner
    function transferOwnership(address _newOwner) public virtual override onlyOwner {
        if (_newOwner == address(0)) {
            revert NewOwnerIsZeroAddress();
        }
        _potentialOwner = _newOwner;
    }

    ///@notice Claim ownership of smart contract, after the current owner has initiated the process with transferOwnership
    function claimOwnership() public virtual {
        address potentialOwner = _potentialOwner;
        if (msg.sender != potentialOwner) {
            revert NotNextOwner();
        }
        _transferOwnership(potentialOwner);
        delete _potentialOwner;
    }

    ///@notice cancel ownership transfer
    function cancelOwnershipTransfer() public virtual onlyOwner {
        delete _potentialOwner;
    }
}

File 11 of 17 : 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 Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        _checkOwner();
        _;
    }

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

    /**
     * @dev Throws if the sender is not the owner.
     */
    function _checkOwner() internal view virtual {
        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 12 of 17 : IERC721A.sol
// SPDX-License-Identifier: MIT
// ERC721A Contracts v4.0.0
// Creator: Chiru Labs

pragma solidity ^0.8.4;

/**
 * @dev Interface of an ERC721A compliant contract.
 */
interface IERC721A {
    /**
     * The caller must own the token or be an approved operator.
     */
    error ApprovalCallerNotOwnerNorApproved();

    /**
     * The token does not exist.
     */
    error ApprovalQueryForNonexistentToken();

    /**
     * The caller cannot approve to their own address.
     */
    error ApproveToCaller();

    /**
     * Cannot query the balance for the zero address.
     */
    error BalanceQueryForZeroAddress();

    /**
     * Cannot mint to the zero address.
     */
    error MintToZeroAddress();

    /**
     * The quantity of tokens minted must be more than zero.
     */
    error MintZeroQuantity();

    /**
     * The token does not exist.
     */
    error OwnerQueryForNonexistentToken();

    /**
     * The caller must own the token or be an approved operator.
     */
    error TransferCallerNotOwnerNorApproved();

    /**
     * The token must be owned by `from`.
     */
    error TransferFromIncorrectOwner();

    /**
     * Cannot safely transfer to a contract that does not implement the ERC721Receiver interface.
     */
    error TransferToNonERC721ReceiverImplementer();

    /**
     * Cannot transfer to the zero address.
     */
    error TransferToZeroAddress();

    /**
     * The token does not exist.
     */
    error URIQueryForNonexistentToken();

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

    /**
     * @dev Returns the total amount of tokens stored by the contract.
     *
     * Burned tokens are calculated here, use `_totalMinted()` if you want to count just minted tokens.
     */
    function totalSupply() external view returns (uint256);

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

    // ==============================
    //            IERC721
    // ==============================

    /**
     * @dev Emitted when `tokenId` token is transferred from `from` to `to`.
     */
    event Transfer(address indexed from, address indexed to, uint256 indexed tokenId);

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

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

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

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

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

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

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

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

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

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

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

    // ==============================
    //        IERC721Metadata
    // ==============================

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

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

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

File 13 of 17 : 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 17 : SafeTransferLib.sol
// SPDX-License-Identifier: AGPL-3.0-only
pragma solidity >=0.8.0;

import {ERC20} from "../tokens/ERC20.sol";

/// @notice Safe ETH and ERC20 transfer library that gracefully handles missing return values.
/// @author Solmate (https://github.com/Rari-Capital/solmate/blob/main/src/utils/SafeTransferLib.sol)
/// @dev Use with caution! Some functions in this library knowingly create dirty bits at the destination of the free memory pointer.
/// @dev Note that none of the functions in this library check that a token has code at all! That responsibility is delegated to the caller.
library SafeTransferLib {
    /*//////////////////////////////////////////////////////////////
                             ETH OPERATIONS
    //////////////////////////////////////////////////////////////*/

    function safeTransferETH(address to, uint256 amount) internal {
        bool success;

        assembly {
            // Transfer the ETH and store if it succeeded or not.
            success := call(gas(), to, amount, 0, 0, 0, 0)
        }

        require(success, "ETH_TRANSFER_FAILED");
    }

    /*//////////////////////////////////////////////////////////////
                            ERC20 OPERATIONS
    //////////////////////////////////////////////////////////////*/

    function safeTransferFrom(
        ERC20 token,
        address from,
        address to,
        uint256 amount
    ) internal {
        bool success;

        assembly {
            // Get a pointer to some free memory.
            let freeMemoryPointer := mload(0x40)

            // Write the abi-encoded calldata into memory, beginning with the function selector.
            mstore(freeMemoryPointer, 0x23b872dd00000000000000000000000000000000000000000000000000000000)
            mstore(add(freeMemoryPointer, 4), from) // Append the "from" argument.
            mstore(add(freeMemoryPointer, 36), to) // Append the "to" argument.
            mstore(add(freeMemoryPointer, 68), amount) // Append the "amount" argument.

            success := and(
                // Set success to whether the call reverted, if not we check it either
                // returned exactly 1 (can't just be non-zero data), or had no return data.
                or(and(eq(mload(0), 1), gt(returndatasize(), 31)), iszero(returndatasize())),
                // We use 100 because the length of our calldata totals up like so: 4 + 32 * 3.
                // We use 0 and 32 to copy up to 32 bytes of return data into the scratch space.
                // Counterintuitively, this call must be positioned second to the or() call in the
                // surrounding and() call or else returndatasize() will be zero during the computation.
                call(gas(), token, 0, freeMemoryPointer, 100, 0, 32)
            )
        }

        require(success, "TRANSFER_FROM_FAILED");
    }

    function safeTransfer(
        ERC20 token,
        address to,
        uint256 amount
    ) internal {
        bool success;

        assembly {
            // Get a pointer to some free memory.
            let freeMemoryPointer := mload(0x40)

            // Write the abi-encoded calldata into memory, beginning with the function selector.
            mstore(freeMemoryPointer, 0xa9059cbb00000000000000000000000000000000000000000000000000000000)
            mstore(add(freeMemoryPointer, 4), to) // Append the "to" argument.
            mstore(add(freeMemoryPointer, 36), amount) // Append the "amount" argument.

            success := and(
                // Set success to whether the call reverted, if not we check it either
                // returned exactly 1 (can't just be non-zero data), or had no return data.
                or(and(eq(mload(0), 1), gt(returndatasize(), 31)), iszero(returndatasize())),
                // We use 68 because the length of our calldata totals up like so: 4 + 32 * 2.
                // We use 0 and 32 to copy up to 32 bytes of return data into the scratch space.
                // Counterintuitively, this call must be positioned second to the or() call in the
                // surrounding and() call or else returndatasize() will be zero during the computation.
                call(gas(), token, 0, freeMemoryPointer, 68, 0, 32)
            )
        }

        require(success, "TRANSFER_FAILED");
    }

    function safeApprove(
        ERC20 token,
        address to,
        uint256 amount
    ) internal {
        bool success;

        assembly {
            // Get a pointer to some free memory.
            let freeMemoryPointer := mload(0x40)

            // Write the abi-encoded calldata into memory, beginning with the function selector.
            mstore(freeMemoryPointer, 0x095ea7b300000000000000000000000000000000000000000000000000000000)
            mstore(add(freeMemoryPointer, 4), to) // Append the "to" argument.
            mstore(add(freeMemoryPointer, 36), amount) // Append the "amount" argument.

            success := and(
                // Set success to whether the call reverted, if not we check it either
                // returned exactly 1 (can't just be non-zero data), or had no return data.
                or(and(eq(mload(0), 1), gt(returndatasize(), 31)), iszero(returndatasize())),
                // We use 68 because the length of our calldata totals up like so: 4 + 32 * 2.
                // We use 0 and 32 to copy up to 32 bytes of return data into the scratch space.
                // Counterintuitively, this call must be positioned second to the or() call in the
                // surrounding and() call or else returndatasize() will be zero during the computation.
                call(gas(), token, 0, freeMemoryPointer, 68, 0, 32)
            )
        }

        require(success, "APPROVE_FAILED");
    }
}

File 15 of 17 : ERC20.sol
// SPDX-License-Identifier: AGPL-3.0-only
pragma solidity >=0.8.0;

/// @notice Modern and gas efficient ERC20 + EIP-2612 implementation.
/// @author Solmate (https://github.com/Rari-Capital/solmate/blob/main/src/tokens/ERC20.sol)
/// @author Modified from Uniswap (https://github.com/Uniswap/uniswap-v2-core/blob/master/contracts/UniswapV2ERC20.sol)
/// @dev Do not manually set balances without updating totalSupply, as the sum of all user balances must not exceed it.
abstract contract ERC20 {
    /*//////////////////////////////////////////////////////////////
                                 EVENTS
    //////////////////////////////////////////////////////////////*/

    event Transfer(address indexed from, address indexed to, uint256 amount);

    event Approval(address indexed owner, address indexed spender, uint256 amount);

    /*//////////////////////////////////////////////////////////////
                            METADATA STORAGE
    //////////////////////////////////////////////////////////////*/

    string public name;

    string public symbol;

    uint8 public immutable decimals;

    /*//////////////////////////////////////////////////////////////
                              ERC20 STORAGE
    //////////////////////////////////////////////////////////////*/

    uint256 public totalSupply;

    mapping(address => uint256) public balanceOf;

    mapping(address => mapping(address => uint256)) public allowance;

    /*//////////////////////////////////////////////////////////////
                            EIP-2612 STORAGE
    //////////////////////////////////////////////////////////////*/

    uint256 internal immutable INITIAL_CHAIN_ID;

    bytes32 internal immutable INITIAL_DOMAIN_SEPARATOR;

    mapping(address => uint256) public nonces;

    /*//////////////////////////////////////////////////////////////
                               CONSTRUCTOR
    //////////////////////////////////////////////////////////////*/

    constructor(
        string memory _name,
        string memory _symbol,
        uint8 _decimals
    ) {
        name = _name;
        symbol = _symbol;
        decimals = _decimals;

        INITIAL_CHAIN_ID = block.chainid;
        INITIAL_DOMAIN_SEPARATOR = computeDomainSeparator();
    }

    /*//////////////////////////////////////////////////////////////
                               ERC20 LOGIC
    //////////////////////////////////////////////////////////////*/

    function approve(address spender, uint256 amount) public virtual returns (bool) {
        allowance[msg.sender][spender] = amount;

        emit Approval(msg.sender, spender, amount);

        return true;
    }

    function transfer(address to, uint256 amount) public virtual returns (bool) {
        balanceOf[msg.sender] -= amount;

        // Cannot overflow because the sum of all user
        // balances can't exceed the max uint256 value.
        unchecked {
            balanceOf[to] += amount;
        }

        emit Transfer(msg.sender, to, amount);

        return true;
    }

    function transferFrom(
        address from,
        address to,
        uint256 amount
    ) public virtual returns (bool) {
        uint256 allowed = allowance[from][msg.sender]; // Saves gas for limited approvals.

        if (allowed != type(uint256).max) allowance[from][msg.sender] = allowed - amount;

        balanceOf[from] -= amount;

        // Cannot overflow because the sum of all user
        // balances can't exceed the max uint256 value.
        unchecked {
            balanceOf[to] += amount;
        }

        emit Transfer(from, to, amount);

        return true;
    }

    /*//////////////////////////////////////////////////////////////
                             EIP-2612 LOGIC
    //////////////////////////////////////////////////////////////*/

    function permit(
        address owner,
        address spender,
        uint256 value,
        uint256 deadline,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) public virtual {
        require(deadline >= block.timestamp, "PERMIT_DEADLINE_EXPIRED");

        // Unchecked because the only math done is incrementing
        // the owner's nonce which cannot realistically overflow.
        unchecked {
            address recoveredAddress = ecrecover(
                keccak256(
                    abi.encodePacked(
                        "\x19\x01",
                        DOMAIN_SEPARATOR(),
                        keccak256(
                            abi.encode(
                                keccak256(
                                    "Permit(address owner,address spender,uint256 value,uint256 nonce,uint256 deadline)"
                                ),
                                owner,
                                spender,
                                value,
                                nonces[owner]++,
                                deadline
                            )
                        )
                    )
                ),
                v,
                r,
                s
            );

            require(recoveredAddress != address(0) && recoveredAddress == owner, "INVALID_SIGNER");

            allowance[recoveredAddress][spender] = value;
        }

        emit Approval(owner, spender, value);
    }

    function DOMAIN_SEPARATOR() public view virtual returns (bytes32) {
        return block.chainid == INITIAL_CHAIN_ID ? INITIAL_DOMAIN_SEPARATOR : computeDomainSeparator();
    }

    function computeDomainSeparator() internal view virtual returns (bytes32) {
        return
            keccak256(
                abi.encode(
                    keccak256("EIP712Domain(string name,string version,uint256 chainId,address verifyingContract)"),
                    keccak256(bytes(name)),
                    keccak256("1"),
                    block.chainid,
                    address(this)
                )
            );
    }

    /*//////////////////////////////////////////////////////////////
                        INTERNAL MINT/BURN LOGIC
    //////////////////////////////////////////////////////////////*/

    function _mint(address to, uint256 amount) internal virtual {
        totalSupply += amount;

        // Cannot overflow because the sum of all user
        // balances can't exceed the max uint256 value.
        unchecked {
            balanceOf[to] += amount;
        }

        emit Transfer(address(0), to, amount);
    }

    function _burn(address from, uint256 amount) internal virtual {
        balanceOf[from] -= amount;

        // Cannot underflow because a user's balance
        // will never be larger than the total supply.
        unchecked {
            totalSupply -= amount;
        }

        emit Transfer(from, address(0), amount);
    }
}

File 16 of 17 : ERC721.sol
// SPDX-License-Identifier: AGPL-3.0-only
pragma solidity >=0.8.0;

/// @notice Modern, minimalist, and gas efficient ERC-721 implementation.
/// @author Solmate (https://github.com/Rari-Capital/solmate/blob/main/src/tokens/ERC721.sol)
abstract contract ERC721 {
    /*//////////////////////////////////////////////////////////////
                                 EVENTS
    //////////////////////////////////////////////////////////////*/

    event Transfer(address indexed from, address indexed to, uint256 indexed id);

    event Approval(address indexed owner, address indexed spender, uint256 indexed id);

    event ApprovalForAll(address indexed owner, address indexed operator, bool approved);

    /*//////////////////////////////////////////////////////////////
                         METADATA STORAGE/LOGIC
    //////////////////////////////////////////////////////////////*/

    string public name;

    string public symbol;

    function tokenURI(uint256 id) public view virtual returns (string memory);

    /*//////////////////////////////////////////////////////////////
                      ERC721 BALANCE/OWNER STORAGE
    //////////////////////////////////////////////////////////////*/

    mapping(uint256 => address) internal _ownerOf;

    mapping(address => uint256) internal _balanceOf;

    function ownerOf(uint256 id) public view virtual returns (address owner) {
        require((owner = _ownerOf[id]) != address(0), "NOT_MINTED");
    }

    function balanceOf(address owner) public view virtual returns (uint256) {
        require(owner != address(0), "ZERO_ADDRESS");

        return _balanceOf[owner];
    }

    /*//////////////////////////////////////////////////////////////
                         ERC721 APPROVAL STORAGE
    //////////////////////////////////////////////////////////////*/

    mapping(uint256 => address) public getApproved;

    mapping(address => mapping(address => bool)) public isApprovedForAll;

    /*//////////////////////////////////////////////////////////////
                               CONSTRUCTOR
    //////////////////////////////////////////////////////////////*/

    constructor(string memory _name, string memory _symbol) {
        name = _name;
        symbol = _symbol;
    }

    /*//////////////////////////////////////////////////////////////
                              ERC721 LOGIC
    //////////////////////////////////////////////////////////////*/

    function approve(address spender, uint256 id) public virtual {
        address owner = _ownerOf[id];

        require(msg.sender == owner || isApprovedForAll[owner][msg.sender], "NOT_AUTHORIZED");

        getApproved[id] = spender;

        emit Approval(owner, spender, id);
    }

    function setApprovalForAll(address operator, bool approved) public virtual {
        isApprovedForAll[msg.sender][operator] = approved;

        emit ApprovalForAll(msg.sender, operator, approved);
    }

    function transferFrom(
        address from,
        address to,
        uint256 id
    ) public virtual {
        require(from == _ownerOf[id], "WRONG_FROM");

        require(to != address(0), "INVALID_RECIPIENT");

        require(
            msg.sender == from || isApprovedForAll[from][msg.sender] || msg.sender == getApproved[id],
            "NOT_AUTHORIZED"
        );

        // Underflow of the sender's balance is impossible because we check for
        // ownership above and the recipient's balance can't realistically overflow.
        unchecked {
            _balanceOf[from]--;

            _balanceOf[to]++;
        }

        _ownerOf[id] = to;

        delete getApproved[id];

        emit Transfer(from, to, id);
    }

    function safeTransferFrom(
        address from,
        address to,
        uint256 id
    ) public virtual {
        transferFrom(from, to, id);

        require(
            to.code.length == 0 ||
                ERC721TokenReceiver(to).onERC721Received(msg.sender, from, id, "") ==
                ERC721TokenReceiver.onERC721Received.selector,
            "UNSAFE_RECIPIENT"
        );
    }

    function safeTransferFrom(
        address from,
        address to,
        uint256 id,
        bytes calldata data
    ) public virtual {
        transferFrom(from, to, id);

        require(
            to.code.length == 0 ||
                ERC721TokenReceiver(to).onERC721Received(msg.sender, from, id, data) ==
                ERC721TokenReceiver.onERC721Received.selector,
            "UNSAFE_RECIPIENT"
        );
    }

    /*//////////////////////////////////////////////////////////////
                              ERC165 LOGIC
    //////////////////////////////////////////////////////////////*/

    function supportsInterface(bytes4 interfaceId) public view virtual returns (bool) {
        return
            interfaceId == 0x01ffc9a7 || // ERC165 Interface ID for ERC165
            interfaceId == 0x80ac58cd || // ERC165 Interface ID for ERC721
            interfaceId == 0x5b5e139f; // ERC165 Interface ID for ERC721Metadata
    }

    /*//////////////////////////////////////////////////////////////
                        INTERNAL MINT/BURN LOGIC
    //////////////////////////////////////////////////////////////*/

    function _mint(address to, uint256 id) internal virtual {
        require(to != address(0), "INVALID_RECIPIENT");

        require(_ownerOf[id] == address(0), "ALREADY_MINTED");

        // Counter overflow is incredibly unrealistic.
        unchecked {
            _balanceOf[to]++;
        }

        _ownerOf[id] = to;

        emit Transfer(address(0), to, id);
    }

    function _burn(uint256 id) internal virtual {
        address owner = _ownerOf[id];

        require(owner != address(0), "NOT_MINTED");

        // Ownership check above ensures no underflow.
        unchecked {
            _balanceOf[owner]--;
        }

        delete _ownerOf[id];

        delete getApproved[id];

        emit Transfer(owner, address(0), id);
    }

    /*//////////////////////////////////////////////////////////////
                        INTERNAL SAFE MINT LOGIC
    //////////////////////////////////////////////////////////////*/

    function _safeMint(address to, uint256 id) internal virtual {
        _mint(to, id);

        require(
            to.code.length == 0 ||
                ERC721TokenReceiver(to).onERC721Received(msg.sender, address(0), id, "") ==
                ERC721TokenReceiver.onERC721Received.selector,
            "UNSAFE_RECIPIENT"
        );
    }

    function _safeMint(
        address to,
        uint256 id,
        bytes memory data
    ) internal virtual {
        _mint(to, id);

        require(
            to.code.length == 0 ||
                ERC721TokenReceiver(to).onERC721Received(msg.sender, address(0), id, data) ==
                ERC721TokenReceiver.onERC721Received.selector,
            "UNSAFE_RECIPIENT"
        );
    }
}

/// @notice A generic interface for a contract which properly accepts ERC721 tokens.
/// @author Solmate (https://github.com/Rari-Capital/solmate/blob/main/src/tokens/ERC721.sol)
abstract contract ERC721TokenReceiver {
    function onERC721Received(
        address,
        address,
        uint256,
        bytes calldata
    ) external virtual returns (bytes4) {
        return ERC721TokenReceiver.onERC721Received.selector;
    }
}

File 17 of 17 : 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;
    }
}

Settings
{
  "remappings": [
    "@solmate/=lib/solmate/src/",
    "@thirdweb-dev/=node_modules/@thirdweb-dev/",
    "ERC721A/=lib/ERC721A/contracts/",
    "batch-reveal-token/=lib/batch-reveal-token/src/",
    "ds-test/=lib/ds-test/src/",
    "forge-std/=lib/forge-std/src/",
    "openzeppelin-contracts/=lib/openzeppelin-contracts/contracts/",
    "script/=script/",
    "solmate/=lib/solmate/src/",
    "src/=src/",
    "test/=test/",
    "src/=src/",
    "test/=test/",
    "script/=script/"
  ],
  "optimizer": {
    "enabled": true,
    "runs": 200
  },
  "metadata": {
    "bytecodeHash": "ipfs"
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  },
  "evmVersion": "london",
  "libraries": {}
}

Contract Security Audit

Contract ABI

[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"ApproveToCaller","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"IncorrectPayment","type":"error"},{"inputs":[],"name":"InvalidRoyaltyBps","type":"error"},{"inputs":[],"name":"MaxDevMinted","type":"error"},{"inputs":[],"name":"MaxMintedForWallet","type":"error"},{"inputs":[],"name":"MaxSupply","type":"error"},{"inputs":[],"name":"MaxTotalAllowListMinted","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[],"name":"NewOwnerIsZeroAddress","type":"error"},{"inputs":[],"name":"NotAllowListed","type":"error"},{"inputs":[],"name":"NotNextOwner","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"PublicSaleInactive","type":"error"},{"inputs":[],"name":"SalePaused","type":"error"},{"inputs":[],"name":"TransferCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"TransferFromIncorrectOwner","type":"error"},{"inputs":[],"name":"TransferToNonERC721ReceiverImplementer","type":"error"},{"inputs":[],"name":"TransferToZeroAddress","type":"error"},{"inputs":[],"name":"URIQueryForNonexistentToken","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"oldProvenanceHash","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"newProvenanceHash","type":"bytes32"}],"name":"ProvenanceHashUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"uint256","name":"maxId","type":"uint256"},{"internalType":"string","name":"uri","type":"string"}],"name":"addReveal","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint128","name":"quantity","type":"uint128"},{"internalType":"bytes32[]","name":"proof","type":"bytes32[]"}],"name":"allowListMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"allowListMintPrice","outputs":[{"internalType":"uint96","name":"","type":"uint96"}],"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":"cancelOwnershipTransfer","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"claimOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"defaultURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint16","name":"amount","type":"uint16"},{"internalType":"address","name":"to","type":"address"}],"name":"devMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32[]","name":"_proof","type":"bytes32[]"},{"internalType":"address","name":"_address","type":"address"}],"name":"isAllowListed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"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":"maxMintsPerWallet","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxTotalAllowListMints","outputs":[{"internalType":"uint128","name":"","type":"uint128"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"merkleRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"mintPrice","outputs":[{"internalType":"uint96","name":"","type":"uint96"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"numAllowListMinted","outputs":[{"internalType":"uint128","name":"","type":"uint128"}],"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":"provenanceHash","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"reveals","outputs":[{"internalType":"uint256","name":"maxId","type":"uint256"},{"internalType":"string","name":"uri","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"royaltyBps","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"salePrice","type":"uint256"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"receiver","type":"address"},{"internalType":"uint256","name":"royaltyAmount","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"saleState","outputs":[{"internalType":"enum Token.SaleState","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint96","name":"newPrice","type":"uint96"}],"name":"setAllowListMintPrice","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":"finalURI","type":"string"}],"name":"setDefaultURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"finalURI","type":"string"}],"name":"setFullyRevealed","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_maxMints","type":"uint256"}],"name":"setMaxMintsPerWallet","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint128","name":"_maxTotalAllowListMints","type":"uint128"}],"name":"setMaxTotalAllowListMints","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_merkleRoot","type":"bytes32"}],"name":"setMerkleRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint96","name":"newPrice","type":"uint96"}],"name":"setMintPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_newProvenanceHash","type":"bytes32"}],"name":"setProvenanceHash","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint16","name":"bps","type":"uint16"}],"name":"setRoyaltyInfo","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"enum Token.SaleState","name":"_saleState","type":"uint8"}],"name":"setSaleState","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"},{"internalType":"uint256","name":"maxId","type":"uint256"},{"internalType":"string","name":"uri","type":"string"}],"name":"updateReveal","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"}],"name":"withdrawERC20","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"withdrawERC721","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60c06040523480156200001157600080fd5b50604051806040016040528060048152602001634d75677360e01b815250604051806040016040528060048152602001634d55475360e01b81525060026113886101356101f466bc9d12df20200060006106c6604051806020016040528060008152507fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a4708181848d8d8d82828160029080519060200190620000b592919062000217565b508051620000cb90600390602084019062000217565b50506000805550620000dd336200018c565b6009555050600b80546001600160801b0319166001600160801b039290921691909117905581516200011790600d90602085019062000217565b506200012381620001de565b50505060a09590955250608094909452601180546001600160601b03928316600160a01b023317601055949091166001600160601b031961ffff909316600160701b0292909216600163ffff000160601b0319909416939093171790915550620002f992505050565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b600c805490829055604051829082907f7c22004198bf87da0f0dab623c72e66ca1200f4454aa3b9ca30f436275428b7c90600090a35050565b8280546200022590620002bd565b90600052602060002090601f01602090048101928262000249576000855562000294565b82601f106200026457805160ff191683800117855562000294565b8280016001018555821562000294579182015b828111156200029457825182559160200191906001019062000277565b50620002a2929150620002a6565b5090565b5b80821115620002a25760008155600101620002a7565b600181811c90821680620002d257607f821691505b602082108103620002f357634e487b7160e01b600052602260045260246000fd5b50919050565b60805160a0516129b9620003266000396000610ece015260008181610fd501526111bb01526129b96000f3fe6080604052600436106102c95760003560e01c80637cb6475911610175578063be15907a116100dc578063da1b9e0811610095578063f3b674a41161006f578063f3b674a414610907578063f3e414f814610927578063f4f3b20014610947578063f516a2e61461096757600080fd5b8063da1b9e081461087e578063e985e9c51461089e578063f2fde38b146108e757600080fd5b8063be15907a146107b3578063c63adb2b146107d3578063c6ab67a314610808578063c87b56dd1461081e578063d45b2c4b1461083e578063d6ce2de71461085e57600080fd5b8063974960ff1161012e578063974960ff146106ff578063a0712d6814610712578063a22cb46514610725578063b07d95e814610745578063b211960414610773578063b88d4fde1461079357600080fd5b80637cb647591461062d5780638377d3771461064d57806386b27b511461066d5780638da5cb5b146106ac57806395d89b41146106ca578063963c3546146106df57600080fd5b80633ccfd60b116102345780636352211e116101ed57806370a08231116101c757806370a08231146105b8578063715018a6146105d857806372504a24146105ed57806372ae4c9a1461060d57600080fd5b80636352211e146105395780636817c76c1461055957806368855b641461059857600080fd5b80633ccfd60b1461048157806342842e0e146104965780634cdb76bf146104b65780634e71e0c8146104d65780635a67de07146104eb578063603f4d521461050b57600080fd5b806318160ddd1161028657806318160ddd146103bf57806323452b9c146103e257806323b872dd146103f75780632a55205a146104175780632eb4a7ab146104565780633a367a671461046c57600080fd5b806301ffc9a7146102ce57806306fdde0314610303578063081812fc14610325578063095ea7b31461035d578063099b6bfa1461037f57806312b25e0d1461039f575b600080fd5b3480156102da57600080fd5b506102ee6102e93660046121f0565b61097d565b60405190151581526020015b60405180910390f35b34801561030f57600080fd5b506103186109a9565b6040516102fa9190612265565b34801561033157600080fd5b50610345610340366004612278565b610a3b565b6040516001600160a01b0390911681526020016102fa565b34801561036957600080fd5b5061037d6103783660046122ad565b610a7f565b005b34801561038b57600080fd5b5061037d61039a366004612278565b610b1f565b3480156103ab57600080fd5b5061037d6103ba3660046122d7565b610b33565b3480156103cb57600080fd5b50600154600054035b6040519081526020016102fa565b3480156103ee57600080fd5b5061037d610b62565b34801561040357600080fd5b5061037d610412366004612300565b610b7d565b34801561042357600080fd5b5061043761043236600461233c565b610b8d565b604080516001600160a01b0390931683526020830191909152016102fa565b34801561046257600080fd5b506103d4600a5481565b34801561047857600080fd5b50610318610bd4565b34801561048d57600080fd5b5061037d610c62565b3480156104a257600080fd5b5061037d6104b1366004612300565b610c75565b3480156104c257600080fd5b5061037d6104d13660046122d7565b610c90565b3480156104e257600080fd5b5061037d610cc0565b3480156104f757600080fd5b5061037d61050636600461235e565b610d0e565b34801561051757600080fd5b5060115461052c90600160801b900460ff1681565b6040516102fa9190612395565b34801561054557600080fd5b50610345610554366004612278565b610d43565b34801561056557600080fd5b5060105461058090600160a01b90046001600160601b031681565b6040516001600160601b0390911681526020016102fa565b3480156105a457600080fd5b50601154610580906001600160601b031681565b3480156105c457600080fd5b506103d46105d33660046123bd565b610d4e565b3480156105e457600080fd5b5061037d610d97565b3480156105f957600080fd5b5061037d6106083660046123ea565b610dab565b34801561061957600080fd5b5061037d6106283660046124c9565b610e1d565b34801561063957600080fd5b5061037d610648366004612278565b610eb4565b34801561065957600080fd5b5061037d610668366004612510565b610ec1565b34801561067957600080fd5b50600b5461069490600160801b90046001600160801b031681565b6040516001600160801b0390911681526020016102fa565b3480156106b857600080fd5b506008546001600160a01b0316610345565b3480156106d657600080fd5b50610318610f6f565b3480156106eb57600080fd5b5061037d6106fa366004612278565b610f7e565b61037d61070d366004612596565b610f8b565b61037d610720366004612278565b61117a565b34801561073157600080fd5b5061037d6107403660046125e9565b6112a1565b34801561075157600080fd5b50610765610760366004612278565b611336565b6040516102fa929190612625565b34801561077f57600080fd5b5061037d61078e36600461263e565b6113ee565b34801561079f57600080fd5b5061037d6107ae366004612673565b611418565b3480156107bf57600080fd5b5061037d6107ce3660046126ef565b611462565b3480156107df57600080fd5b506011546107f590600160701b900461ffff1681565b60405161ffff90911681526020016102fa565b34801561081457600080fd5b506103d4600c5481565b34801561082a57600080fd5b50610318610839366004612278565b611495565b34801561084a57600080fd5b50600b54610694906001600160801b031681565b34801561086a57600080fd5b5061037d61087936600461270a565b6114a0565b34801561088a57600080fd5b5061037d61089936600461263e565b611512565b3480156108aa57600080fd5b506102ee6108b936600461275a565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b3480156108f357600080fd5b5061037d6109023660046123bd565b61151a565b34801561091357600080fd5b506102ee610922366004612776565b61152b565b34801561093357600080fd5b5061037d6109423660046122ad565b61157b565b34801561095357600080fd5b5061037d6109623660046123bd565b6115e7565b34801561097357600080fd5b506103d460095481565b600061098882611669565b806109a3575063152a902d60e11b6001600160e01b03198316145b92915050565b6060600280546109b8906127ca565b80601f01602080910402602001604051908101604052809291908181526020018280546109e4906127ca565b8015610a315780601f10610a0657610100808354040283529160200191610a31565b820191906000526020600020905b815481529060010190602001808311610a1457829003601f168201915b5050505050905090565b6000610a46826116b7565b610a63576040516333d1c03960e21b815260040160405180910390fd5b506000908152600660205260409020546001600160a01b031690565b6000610a8a826116de565b9050336001600160a01b03821614610ac357610aa681336108b9565b610ac3576040516367d9dca160e11b815260040160405180910390fd5b60008281526006602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b610b2761174c565b610b30816117ab565b50565b610b3b61174c565b601180546bffffffffffffffffffffffff19166001600160601b0392909216919091179055565b610b6a61174c565b600f8054610100600160a81b0319169055565b610b888383836117e4565b505050565b60105460115460009182916001600160a01b039091169061271090610bbe908690600160701b900461ffff1661281a565b610bc89190612839565b915091505b9250929050565b600d8054610be1906127ca565b80601f0160208091040260200160405190810160405280929190818152602001828054610c0d906127ca565b8015610c5a5780601f10610c2f57610100808354040283529160200191610c5a565b820191906000526020600020905b815481529060010190602001808311610c3d57829003601f168201915b505050505081565b610c6a61174c565b47610b30338261199a565b610b8883838360405180602001604052806000815250611418565b610c9861174c565b601080546001600160601b03909216600160a01b026001600160a01b03909216919091179055565b600f5461010090046001600160a01b0316338114610cf157604051636b7584e760e11b815260040160405180910390fd5b610cfa816119eb565b50600f8054610100600160a81b0319169055565b610d1661174c565b6011805482919060ff60801b1916600160801b836002811115610d3b57610d3b61237f565b021790555050565b60006109a3826116de565b600081600003610d71576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b031660009081526005602052604090205467ffffffffffffffff1690565b610d9f61174c565b610da960006119eb565b565b610db361174c565b6127108161ffff161115610dda5760405163012b44a960e51b815260040160405180910390fd5b6011805461ffff909216600160701b0261ffff60701b19909216919091179055601080546001600160a01b039092166001600160a01b0319909216919091179055565b610e2561174c565b604080518082019091528281526020808201838152600e805460018101825560009190915283517fbb7b4a454dc3493923482f07822329ed19e8244eff582cc204f8554c3620c3fd6002909202918201908155915180518594610eac937fbb7b4a454dc3493923482f07822329ed19e8244eff582cc204f8554c3620c3fe019201906120c3565b505050505050565b610ebc61174c565b600a55565b610ec961174c565b6011547f000000000000000000000000000000000000000000000000000000000000000090610f069061ffff80861691600160601b90041661285b565b1115610f24576040516237bbb760e61b815260040160405180910390fd5b816011600c8282829054906101000a900461ffff16610f439190612873565b92506101000a81548161ffff021916908361ffff160217905550610f6b818361ffff16611a3d565b5050565b6060600380546109b8906127ca565b610f8661174c565b600955565b6000601154600160801b900460ff166002811115610fab57610fab61237f565b03610fc9576040516308a98cbd60e41b815260040160405180910390fd5b826001600160801b03167f0000000000000000000000000000000000000000000000000000000000000000610ffd60005490565b611007908361285b565b111561102657604051632cdb04a160e21b815260040160405180910390fd5b828261103382823361152b565b61105057604051630e5060e160e21b815260040160405180910390fd5b33600090815260056020526040808220546001600160801b03891692911c67ffffffffffffffff16600954909150611088838361285b565b11156110a757604051635596adf960e11b815260040160405180910390fd5b6011546001600160601b03166001600160801b038916346110c8838361281a565b146110e65760405163569e8c1160e01b815260040160405180910390fd5b600b548a906001600160801b03600160801b820481169116806111098484612899565b6001600160801b031611156111315760405163eb156e7360e01b815260040160405180910390fd5b611144338e6001600160801b0316611a57565b61114e8383612899565b600b80546001600160801b03928316600160801b02921691909117905550505050505050505050505050565b6002601154600160801b900460ff16600281111561119a5761119a61237f565b146111b857604051633167946760e21b815260040160405180910390fd5b807f00000000000000000000000000000000000000000000000000000000000000006111e360005490565b6111ed908361285b565b111561120c57604051632cdb04a160e21b815260040160405180910390fd5b33600090815260056020526040808220548492911c67ffffffffffffffff1660095490915061123b838361285b565b111561125a57604051635596adf960e11b815260040160405180910390fd5b601054600160a01b90046001600160601b03168434611279838361281a565b146112975760405163569e8c1160e01b815260040160405180910390fd5b610eac3387611a57565b336001600160a01b038316036112ca5760405163b06307db60e01b815260040160405180910390fd5b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b600e818154811061134657600080fd5b6000918252602090912060029091020180546001820180549193509061136b906127ca565b80601f0160208091040260200160405190810160405280929190818152602001828054611397906127ca565b80156113e45780601f106113b9576101008083540402835291602001916113e4565b820191906000526020600020905b8154815290600101906020018083116113c757829003601f168201915b5050505050905082565b6113f661174c565b600f805460ff1916600117905561140f600e6000612147565b610b3081611b2f565b6114238484846117e4565b6001600160a01b0383163b1561145c5761143f84848484611b42565b61145c576040516368d2bf6b60e11b815260040160405180910390fd5b50505050565b61146a61174c565b600b80546fffffffffffffffffffffffffffffffff19166001600160801b0392909216919091179055565b60606109a382611c2d565b6114a861174c565b6000604051806040016040528084815260200183815250905080600e85815481106114d5576114d56128bb565b90600052602060002090600202016000820151816000015560208201518160010190805190602001906115099291906120c3565b50505050505050565b61140f61174c565b61152261174c565b610b3081611e11565b600a546040516bffffffffffffffffffffffff19606084901b166020820152600091611573918691869160340160405160208183030381529060405280519060200120611e68565b949350505050565b61158361174c565b6040516323b872dd60e01b81523060048201523360248201526044810182905282906001600160a01b038216906323b872dd90606401600060405180830381600087803b1580156115d357600080fd5b505af1158015611509573d6000803e3d6000fd5b6115ef61174c565b6040516370a0823160e01b815230600482015281906000906001600160a01b038316906370a0823190602401602060405180830381865afa158015611638573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061165c91906128d1565b9050610b88823383611e80565b60006301ffc9a760e01b6001600160e01b03198316148061169a57506380ac58cd60e01b6001600160e01b03198316145b806109a35750506001600160e01b031916635b5e139f60e01b1490565b60008054821080156109a3575050600090815260046020526040902054600160e01b161590565b6000816000548110156117335760008181526004602052604081205490600160e01b82169003611731575b8060000361172a575060001901600081815260046020526040902054611709565b9392505050565b505b604051636f96cda160e11b815260040160405180910390fd5b6008546001600160a01b03163314610da95760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064015b60405180910390fd5b600c805490829055604051829082907f7c22004198bf87da0f0dab623c72e66ca1200f4454aa3b9ca30f436275428b7c90600090a35050565b60006117ef826116de565b9050836001600160a01b0316816001600160a01b0316146118225760405162a1148160e81b815260040160405180910390fd5b6000828152600660205260408120546001600160a01b0390811691908616331480611852575061185286336108b9565b8061186557506001600160a01b03821633145b90508061188557604051632ce44b5f60e11b815260040160405180910390fd5b846000036118a657604051633a954ecd60e21b815260040160405180910390fd5b81156118c957600084815260066020526040902080546001600160a01b03191690555b6001600160a01b038681166000908152600560209081526040808320805460001901905592881682528282208054600101905586825260049052908120600160e11b4260a01b8817811790915584169003611954576001840160008181526004602052604081205490036119525760005481146119525760008181526004602052604090208490555b505b83856001600160a01b0316876001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4610eac565b600080600080600085875af1905080610b885760405162461bcd60e51b815260206004820152601360248201527211551217d514905394d1915497d19052531151606a1b60448201526064016117a2565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b610f6b828260405180602001604052806000815250611ef8565b60005482600003611a7a57604051622e076360e81b815260040160405180910390fd5b81600003611a9b5760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b03831660009081526005602090815260408083208054680100000000000000018702019055838352600490915281204260a01b85176001851460e11b1790555b60405160018201918301906001600160a01b038616906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a4828110611ae257500160005550565b8051610f6b90600d9060208401906120c3565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a0290611b779033908990889088906004016128ea565b6020604051808303816000875af1925050508015611bb2575060408051601f3d908101601f19168201909252611baf91810190612927565b60015b611c10573d808015611be0576040519150601f19603f3d011682016040523d82523d6000602084013e611be5565b606091505b508051600003611c08576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050949350505050565b600f5460609060ff16611d6e57600e5460005b81811015611d6b576000600e8281548110611c5d57611c5d6128bb565b906000526020600020906002020160405180604001604052908160008201548152602001600182018054611c90906127ca565b80601f0160208091040260200160405190810160405280929190818152602001828054611cbc906127ca565b8015611d095780601f10611cde57610100808354040283529160200191611d09565b820191906000526020600020905b815481529060010190602001808311611cec57829003601f168201915b50505050508152505090508060000151851015611d58578060200151611d2e86611f65565b604051602001611d3f929190612944565b6040516020818303038152906040529350505050919050565b5080611d638161296a565b915050611c40565b50505b600f5460ff16611e0857600d8054611d85906127ca565b80601f0160208091040260200160405190810160405280929190818152602001828054611db1906127ca565b8015611dfe5780601f10611dd357610100808354040283529160200191611dfe565b820191906000526020600020905b815481529060010190602001808311611de157829003601f168201915b50505050506109a3565b6109a382611fb4565b611e1961174c565b6001600160a01b038116611e4057604051633a247dd760e11b815260040160405180910390fd5b600f80546001600160a01b0390921661010002610100600160a81b0319909216919091179055565b600082611e76868685612037565b1495945050505050565b600060405163a9059cbb60e01b8152836004820152826024820152602060006044836000895af13d15601f3d116001600051141617169150508061145c5760405162461bcd60e51b815260206004820152600f60248201526e1514905394d1915497d19052531151608a1b60448201526064016117a2565b611f028383611a57565b6001600160a01b0383163b15610b88576000548281035b611f2c6000868380600101945086611b42565b611f49576040516368d2bf6b60e11b815260040160405180910390fd5b818110611f19578160005414611f5e57600080fd5b5050505050565b604080516080810191829052607f0190826030600a8206018353600a90045b8015611fa257600183039250600a81066030018353600a9004611f84565b50819003601f19909101908152919050565b6060611fbf826116b7565b611fdc57604051630a14c4b560e41b815260040160405180910390fd5b6000611fe6612079565b90508051600003612006576040518060200160405280600081525061172a565b8061201084611f65565b604051602001612021929190612944565b6040516020818303038152906040529392505050565b600081815b84811015612070576120668287878481811061205a5761205a6128bb565b90506020020135612088565b915060010161203c565b50949350505050565b60606120836120b4565b905090565b60008183106120a457600082815260208490526040902061172a565b5060009182526020526040902090565b6060600d80546109b8906127ca565b8280546120cf906127ca565b90600052602060002090601f0160209004810192826120f15760008555612137565b82601f1061210a57805160ff1916838001178555612137565b82800160010185558215612137579182015b8281111561213757825182559160200191906001019061211c565b50612143929150612168565b5090565b5080546000825560020290600052602060002090810190610b30919061217d565b5b808211156121435760008155600101612169565b8082111561214357600080825561219760018301826121a0565b5060020161217d565b5080546121ac906127ca565b6000825580601f106121bc575050565b601f016020900490600052602060002090810190610b309190612168565b6001600160e01b031981168114610b3057600080fd5b60006020828403121561220257600080fd5b813561172a816121da565b60005b83811015612228578181015183820152602001612210565b8381111561145c5750506000910152565b6000815180845261225181602086016020860161220d565b601f01601f19169290920160200192915050565b60208152600061172a6020830184612239565b60006020828403121561228a57600080fd5b5035919050565b80356001600160a01b03811681146122a857600080fd5b919050565b600080604083850312156122c057600080fd5b6122c983612291565b946020939093013593505050565b6000602082840312156122e957600080fd5b81356001600160601b038116811461172a57600080fd5b60008060006060848603121561231557600080fd5b61231e84612291565b925061232c60208501612291565b9150604084013590509250925092565b6000806040838503121561234f57600080fd5b50508035926020909101359150565b60006020828403121561237057600080fd5b81356003811061172a57600080fd5b634e487b7160e01b600052602160045260246000fd5b60208101600383106123b757634e487b7160e01b600052602160045260246000fd5b91905290565b6000602082840312156123cf57600080fd5b61172a82612291565b803561ffff811681146122a857600080fd5b600080604083850312156123fd57600080fd5b61240683612291565b9150612414602084016123d8565b90509250929050565b634e487b7160e01b600052604160045260246000fd5b600067ffffffffffffffff8084111561244e5761244e61241d565b604051601f8501601f19908116603f011681019082821181831017156124765761247661241d565b8160405280935085815286868601111561248f57600080fd5b858560208301376000602087830101525050509392505050565b600082601f8301126124ba57600080fd5b61172a83833560208501612433565b600080604083850312156124dc57600080fd5b82359150602083013567ffffffffffffffff8111156124fa57600080fd5b612506858286016124a9565b9150509250929050565b6000806040838503121561252357600080fd5b61252c836123d8565b915061241460208401612291565b80356001600160801b03811681146122a857600080fd5b60008083601f84011261256357600080fd5b50813567ffffffffffffffff81111561257b57600080fd5b6020830191508360208260051b8501011115610bcd57600080fd5b6000806000604084860312156125ab57600080fd5b6125b48461253a565b9250602084013567ffffffffffffffff8111156125d057600080fd5b6125dc86828701612551565b9497909650939450505050565b600080604083850312156125fc57600080fd5b61260583612291565b91506020830135801515811461261a57600080fd5b809150509250929050565b8281526040602082015260006115736040830184612239565b60006020828403121561265057600080fd5b813567ffffffffffffffff81111561266757600080fd5b611573848285016124a9565b6000806000806080858703121561268957600080fd5b61269285612291565b93506126a060208601612291565b925060408501359150606085013567ffffffffffffffff8111156126c357600080fd5b8501601f810187136126d457600080fd5b6126e387823560208401612433565b91505092959194509250565b60006020828403121561270157600080fd5b61172a8261253a565b60008060006060848603121561271f57600080fd5b8335925060208401359150604084013567ffffffffffffffff81111561274457600080fd5b612750868287016124a9565b9150509250925092565b6000806040838503121561276d57600080fd5b61252c83612291565b60008060006040848603121561278b57600080fd5b833567ffffffffffffffff8111156127a257600080fd5b6127ae86828701612551565b90945092506127c1905060208501612291565b90509250925092565b600181811c908216806127de57607f821691505b6020821081036127fe57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b600081600019048311821515161561283457612834612804565b500290565b60008261285657634e487b7160e01b600052601260045260246000fd5b500490565b6000821982111561286e5761286e612804565b500190565b600061ffff80831681851680830382111561289057612890612804565b01949350505050565b60006001600160801b0380831681851680830382111561289057612890612804565b634e487b7160e01b600052603260045260246000fd5b6000602082840312156128e357600080fd5b5051919050565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061291d90830184612239565b9695505050505050565b60006020828403121561293957600080fd5b815161172a816121da565b6000835161295681846020880161220d565b83519083019061289081836020880161220d565b60006001820161297c5761297c612804565b506001019056fea2646970667358221220699d6367f778d47dda09e19eaaeb195037a126986bd6c2bda0132790b0b74ed764736f6c634300080e0033

Deployed Bytecode

0x6080604052600436106102c95760003560e01c80637cb6475911610175578063be15907a116100dc578063da1b9e0811610095578063f3b674a41161006f578063f3b674a414610907578063f3e414f814610927578063f4f3b20014610947578063f516a2e61461096757600080fd5b8063da1b9e081461087e578063e985e9c51461089e578063f2fde38b146108e757600080fd5b8063be15907a146107b3578063c63adb2b146107d3578063c6ab67a314610808578063c87b56dd1461081e578063d45b2c4b1461083e578063d6ce2de71461085e57600080fd5b8063974960ff1161012e578063974960ff146106ff578063a0712d6814610712578063a22cb46514610725578063b07d95e814610745578063b211960414610773578063b88d4fde1461079357600080fd5b80637cb647591461062d5780638377d3771461064d57806386b27b511461066d5780638da5cb5b146106ac57806395d89b41146106ca578063963c3546146106df57600080fd5b80633ccfd60b116102345780636352211e116101ed57806370a08231116101c757806370a08231146105b8578063715018a6146105d857806372504a24146105ed57806372ae4c9a1461060d57600080fd5b80636352211e146105395780636817c76c1461055957806368855b641461059857600080fd5b80633ccfd60b1461048157806342842e0e146104965780634cdb76bf146104b65780634e71e0c8146104d65780635a67de07146104eb578063603f4d521461050b57600080fd5b806318160ddd1161028657806318160ddd146103bf57806323452b9c146103e257806323b872dd146103f75780632a55205a146104175780632eb4a7ab146104565780633a367a671461046c57600080fd5b806301ffc9a7146102ce57806306fdde0314610303578063081812fc14610325578063095ea7b31461035d578063099b6bfa1461037f57806312b25e0d1461039f575b600080fd5b3480156102da57600080fd5b506102ee6102e93660046121f0565b61097d565b60405190151581526020015b60405180910390f35b34801561030f57600080fd5b506103186109a9565b6040516102fa9190612265565b34801561033157600080fd5b50610345610340366004612278565b610a3b565b6040516001600160a01b0390911681526020016102fa565b34801561036957600080fd5b5061037d6103783660046122ad565b610a7f565b005b34801561038b57600080fd5b5061037d61039a366004612278565b610b1f565b3480156103ab57600080fd5b5061037d6103ba3660046122d7565b610b33565b3480156103cb57600080fd5b50600154600054035b6040519081526020016102fa565b3480156103ee57600080fd5b5061037d610b62565b34801561040357600080fd5b5061037d610412366004612300565b610b7d565b34801561042357600080fd5b5061043761043236600461233c565b610b8d565b604080516001600160a01b0390931683526020830191909152016102fa565b34801561046257600080fd5b506103d4600a5481565b34801561047857600080fd5b50610318610bd4565b34801561048d57600080fd5b5061037d610c62565b3480156104a257600080fd5b5061037d6104b1366004612300565b610c75565b3480156104c257600080fd5b5061037d6104d13660046122d7565b610c90565b3480156104e257600080fd5b5061037d610cc0565b3480156104f757600080fd5b5061037d61050636600461235e565b610d0e565b34801561051757600080fd5b5060115461052c90600160801b900460ff1681565b6040516102fa9190612395565b34801561054557600080fd5b50610345610554366004612278565b610d43565b34801561056557600080fd5b5060105461058090600160a01b90046001600160601b031681565b6040516001600160601b0390911681526020016102fa565b3480156105a457600080fd5b50601154610580906001600160601b031681565b3480156105c457600080fd5b506103d46105d33660046123bd565b610d4e565b3480156105e457600080fd5b5061037d610d97565b3480156105f957600080fd5b5061037d6106083660046123ea565b610dab565b34801561061957600080fd5b5061037d6106283660046124c9565b610e1d565b34801561063957600080fd5b5061037d610648366004612278565b610eb4565b34801561065957600080fd5b5061037d610668366004612510565b610ec1565b34801561067957600080fd5b50600b5461069490600160801b90046001600160801b031681565b6040516001600160801b0390911681526020016102fa565b3480156106b857600080fd5b506008546001600160a01b0316610345565b3480156106d657600080fd5b50610318610f6f565b3480156106eb57600080fd5b5061037d6106fa366004612278565b610f7e565b61037d61070d366004612596565b610f8b565b61037d610720366004612278565b61117a565b34801561073157600080fd5b5061037d6107403660046125e9565b6112a1565b34801561075157600080fd5b50610765610760366004612278565b611336565b6040516102fa929190612625565b34801561077f57600080fd5b5061037d61078e36600461263e565b6113ee565b34801561079f57600080fd5b5061037d6107ae366004612673565b611418565b3480156107bf57600080fd5b5061037d6107ce3660046126ef565b611462565b3480156107df57600080fd5b506011546107f590600160701b900461ffff1681565b60405161ffff90911681526020016102fa565b34801561081457600080fd5b506103d4600c5481565b34801561082a57600080fd5b50610318610839366004612278565b611495565b34801561084a57600080fd5b50600b54610694906001600160801b031681565b34801561086a57600080fd5b5061037d61087936600461270a565b6114a0565b34801561088a57600080fd5b5061037d61089936600461263e565b611512565b3480156108aa57600080fd5b506102ee6108b936600461275a565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b3480156108f357600080fd5b5061037d6109023660046123bd565b61151a565b34801561091357600080fd5b506102ee610922366004612776565b61152b565b34801561093357600080fd5b5061037d6109423660046122ad565b61157b565b34801561095357600080fd5b5061037d6109623660046123bd565b6115e7565b34801561097357600080fd5b506103d460095481565b600061098882611669565b806109a3575063152a902d60e11b6001600160e01b03198316145b92915050565b6060600280546109b8906127ca565b80601f01602080910402602001604051908101604052809291908181526020018280546109e4906127ca565b8015610a315780601f10610a0657610100808354040283529160200191610a31565b820191906000526020600020905b815481529060010190602001808311610a1457829003601f168201915b5050505050905090565b6000610a46826116b7565b610a63576040516333d1c03960e21b815260040160405180910390fd5b506000908152600660205260409020546001600160a01b031690565b6000610a8a826116de565b9050336001600160a01b03821614610ac357610aa681336108b9565b610ac3576040516367d9dca160e11b815260040160405180910390fd5b60008281526006602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b610b2761174c565b610b30816117ab565b50565b610b3b61174c565b601180546bffffffffffffffffffffffff19166001600160601b0392909216919091179055565b610b6a61174c565b600f8054610100600160a81b0319169055565b610b888383836117e4565b505050565b60105460115460009182916001600160a01b039091169061271090610bbe908690600160701b900461ffff1661281a565b610bc89190612839565b915091505b9250929050565b600d8054610be1906127ca565b80601f0160208091040260200160405190810160405280929190818152602001828054610c0d906127ca565b8015610c5a5780601f10610c2f57610100808354040283529160200191610c5a565b820191906000526020600020905b815481529060010190602001808311610c3d57829003601f168201915b505050505081565b610c6a61174c565b47610b30338261199a565b610b8883838360405180602001604052806000815250611418565b610c9861174c565b601080546001600160601b03909216600160a01b026001600160a01b03909216919091179055565b600f5461010090046001600160a01b0316338114610cf157604051636b7584e760e11b815260040160405180910390fd5b610cfa816119eb565b50600f8054610100600160a81b0319169055565b610d1661174c565b6011805482919060ff60801b1916600160801b836002811115610d3b57610d3b61237f565b021790555050565b60006109a3826116de565b600081600003610d71576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b031660009081526005602052604090205467ffffffffffffffff1690565b610d9f61174c565b610da960006119eb565b565b610db361174c565b6127108161ffff161115610dda5760405163012b44a960e51b815260040160405180910390fd5b6011805461ffff909216600160701b0261ffff60701b19909216919091179055601080546001600160a01b039092166001600160a01b0319909216919091179055565b610e2561174c565b604080518082019091528281526020808201838152600e805460018101825560009190915283517fbb7b4a454dc3493923482f07822329ed19e8244eff582cc204f8554c3620c3fd6002909202918201908155915180518594610eac937fbb7b4a454dc3493923482f07822329ed19e8244eff582cc204f8554c3620c3fe019201906120c3565b505050505050565b610ebc61174c565b600a55565b610ec961174c565b6011547f000000000000000000000000000000000000000000000000000000000000013590610f069061ffff80861691600160601b90041661285b565b1115610f24576040516237bbb760e61b815260040160405180910390fd5b816011600c8282829054906101000a900461ffff16610f439190612873565b92506101000a81548161ffff021916908361ffff160217905550610f6b818361ffff16611a3d565b5050565b6060600380546109b8906127ca565b610f8661174c565b600955565b6000601154600160801b900460ff166002811115610fab57610fab61237f565b03610fc9576040516308a98cbd60e41b815260040160405180910390fd5b826001600160801b03167f0000000000000000000000000000000000000000000000000000000000001388610ffd60005490565b611007908361285b565b111561102657604051632cdb04a160e21b815260040160405180910390fd5b828261103382823361152b565b61105057604051630e5060e160e21b815260040160405180910390fd5b33600090815260056020526040808220546001600160801b03891692911c67ffffffffffffffff16600954909150611088838361285b565b11156110a757604051635596adf960e11b815260040160405180910390fd5b6011546001600160601b03166001600160801b038916346110c8838361281a565b146110e65760405163569e8c1160e01b815260040160405180910390fd5b600b548a906001600160801b03600160801b820481169116806111098484612899565b6001600160801b031611156111315760405163eb156e7360e01b815260040160405180910390fd5b611144338e6001600160801b0316611a57565b61114e8383612899565b600b80546001600160801b03928316600160801b02921691909117905550505050505050505050505050565b6002601154600160801b900460ff16600281111561119a5761119a61237f565b146111b857604051633167946760e21b815260040160405180910390fd5b807f00000000000000000000000000000000000000000000000000000000000013886111e360005490565b6111ed908361285b565b111561120c57604051632cdb04a160e21b815260040160405180910390fd5b33600090815260056020526040808220548492911c67ffffffffffffffff1660095490915061123b838361285b565b111561125a57604051635596adf960e11b815260040160405180910390fd5b601054600160a01b90046001600160601b03168434611279838361281a565b146112975760405163569e8c1160e01b815260040160405180910390fd5b610eac3387611a57565b336001600160a01b038316036112ca5760405163b06307db60e01b815260040160405180910390fd5b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b600e818154811061134657600080fd5b6000918252602090912060029091020180546001820180549193509061136b906127ca565b80601f0160208091040260200160405190810160405280929190818152602001828054611397906127ca565b80156113e45780601f106113b9576101008083540402835291602001916113e4565b820191906000526020600020905b8154815290600101906020018083116113c757829003601f168201915b5050505050905082565b6113f661174c565b600f805460ff1916600117905561140f600e6000612147565b610b3081611b2f565b6114238484846117e4565b6001600160a01b0383163b1561145c5761143f84848484611b42565b61145c576040516368d2bf6b60e11b815260040160405180910390fd5b50505050565b61146a61174c565b600b80546fffffffffffffffffffffffffffffffff19166001600160801b0392909216919091179055565b60606109a382611c2d565b6114a861174c565b6000604051806040016040528084815260200183815250905080600e85815481106114d5576114d56128bb565b90600052602060002090600202016000820151816000015560208201518160010190805190602001906115099291906120c3565b50505050505050565b61140f61174c565b61152261174c565b610b3081611e11565b600a546040516bffffffffffffffffffffffff19606084901b166020820152600091611573918691869160340160405160208183030381529060405280519060200120611e68565b949350505050565b61158361174c565b6040516323b872dd60e01b81523060048201523360248201526044810182905282906001600160a01b038216906323b872dd90606401600060405180830381600087803b1580156115d357600080fd5b505af1158015611509573d6000803e3d6000fd5b6115ef61174c565b6040516370a0823160e01b815230600482015281906000906001600160a01b038316906370a0823190602401602060405180830381865afa158015611638573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061165c91906128d1565b9050610b88823383611e80565b60006301ffc9a760e01b6001600160e01b03198316148061169a57506380ac58cd60e01b6001600160e01b03198316145b806109a35750506001600160e01b031916635b5e139f60e01b1490565b60008054821080156109a3575050600090815260046020526040902054600160e01b161590565b6000816000548110156117335760008181526004602052604081205490600160e01b82169003611731575b8060000361172a575060001901600081815260046020526040902054611709565b9392505050565b505b604051636f96cda160e11b815260040160405180910390fd5b6008546001600160a01b03163314610da95760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064015b60405180910390fd5b600c805490829055604051829082907f7c22004198bf87da0f0dab623c72e66ca1200f4454aa3b9ca30f436275428b7c90600090a35050565b60006117ef826116de565b9050836001600160a01b0316816001600160a01b0316146118225760405162a1148160e81b815260040160405180910390fd5b6000828152600660205260408120546001600160a01b0390811691908616331480611852575061185286336108b9565b8061186557506001600160a01b03821633145b90508061188557604051632ce44b5f60e11b815260040160405180910390fd5b846000036118a657604051633a954ecd60e21b815260040160405180910390fd5b81156118c957600084815260066020526040902080546001600160a01b03191690555b6001600160a01b038681166000908152600560209081526040808320805460001901905592881682528282208054600101905586825260049052908120600160e11b4260a01b8817811790915584169003611954576001840160008181526004602052604081205490036119525760005481146119525760008181526004602052604090208490555b505b83856001600160a01b0316876001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4610eac565b600080600080600085875af1905080610b885760405162461bcd60e51b815260206004820152601360248201527211551217d514905394d1915497d19052531151606a1b60448201526064016117a2565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b610f6b828260405180602001604052806000815250611ef8565b60005482600003611a7a57604051622e076360e81b815260040160405180910390fd5b81600003611a9b5760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b03831660009081526005602090815260408083208054680100000000000000018702019055838352600490915281204260a01b85176001851460e11b1790555b60405160018201918301906001600160a01b038616906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a4828110611ae257500160005550565b8051610f6b90600d9060208401906120c3565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a0290611b779033908990889088906004016128ea565b6020604051808303816000875af1925050508015611bb2575060408051601f3d908101601f19168201909252611baf91810190612927565b60015b611c10573d808015611be0576040519150601f19603f3d011682016040523d82523d6000602084013e611be5565b606091505b508051600003611c08576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050949350505050565b600f5460609060ff16611d6e57600e5460005b81811015611d6b576000600e8281548110611c5d57611c5d6128bb565b906000526020600020906002020160405180604001604052908160008201548152602001600182018054611c90906127ca565b80601f0160208091040260200160405190810160405280929190818152602001828054611cbc906127ca565b8015611d095780601f10611cde57610100808354040283529160200191611d09565b820191906000526020600020905b815481529060010190602001808311611cec57829003601f168201915b50505050508152505090508060000151851015611d58578060200151611d2e86611f65565b604051602001611d3f929190612944565b6040516020818303038152906040529350505050919050565b5080611d638161296a565b915050611c40565b50505b600f5460ff16611e0857600d8054611d85906127ca565b80601f0160208091040260200160405190810160405280929190818152602001828054611db1906127ca565b8015611dfe5780601f10611dd357610100808354040283529160200191611dfe565b820191906000526020600020905b815481529060010190602001808311611de157829003601f168201915b50505050506109a3565b6109a382611fb4565b611e1961174c565b6001600160a01b038116611e4057604051633a247dd760e11b815260040160405180910390fd5b600f80546001600160a01b0390921661010002610100600160a81b0319909216919091179055565b600082611e76868685612037565b1495945050505050565b600060405163a9059cbb60e01b8152836004820152826024820152602060006044836000895af13d15601f3d116001600051141617169150508061145c5760405162461bcd60e51b815260206004820152600f60248201526e1514905394d1915497d19052531151608a1b60448201526064016117a2565b611f028383611a57565b6001600160a01b0383163b15610b88576000548281035b611f2c6000868380600101945086611b42565b611f49576040516368d2bf6b60e11b815260040160405180910390fd5b818110611f19578160005414611f5e57600080fd5b5050505050565b604080516080810191829052607f0190826030600a8206018353600a90045b8015611fa257600183039250600a81066030018353600a9004611f84565b50819003601f19909101908152919050565b6060611fbf826116b7565b611fdc57604051630a14c4b560e41b815260040160405180910390fd5b6000611fe6612079565b90508051600003612006576040518060200160405280600081525061172a565b8061201084611f65565b604051602001612021929190612944565b6040516020818303038152906040529392505050565b600081815b84811015612070576120668287878481811061205a5761205a6128bb565b90506020020135612088565b915060010161203c565b50949350505050565b60606120836120b4565b905090565b60008183106120a457600082815260208490526040902061172a565b5060009182526020526040902090565b6060600d80546109b8906127ca565b8280546120cf906127ca565b90600052602060002090601f0160209004810192826120f15760008555612137565b82601f1061210a57805160ff1916838001178555612137565b82800160010185558215612137579182015b8281111561213757825182559160200191906001019061211c565b50612143929150612168565b5090565b5080546000825560020290600052602060002090810190610b30919061217d565b5b808211156121435760008155600101612169565b8082111561214357600080825561219760018301826121a0565b5060020161217d565b5080546121ac906127ca565b6000825580601f106121bc575050565b601f016020900490600052602060002090810190610b309190612168565b6001600160e01b031981168114610b3057600080fd5b60006020828403121561220257600080fd5b813561172a816121da565b60005b83811015612228578181015183820152602001612210565b8381111561145c5750506000910152565b6000815180845261225181602086016020860161220d565b601f01601f19169290920160200192915050565b60208152600061172a6020830184612239565b60006020828403121561228a57600080fd5b5035919050565b80356001600160a01b03811681146122a857600080fd5b919050565b600080604083850312156122c057600080fd5b6122c983612291565b946020939093013593505050565b6000602082840312156122e957600080fd5b81356001600160601b038116811461172a57600080fd5b60008060006060848603121561231557600080fd5b61231e84612291565b925061232c60208501612291565b9150604084013590509250925092565b6000806040838503121561234f57600080fd5b50508035926020909101359150565b60006020828403121561237057600080fd5b81356003811061172a57600080fd5b634e487b7160e01b600052602160045260246000fd5b60208101600383106123b757634e487b7160e01b600052602160045260246000fd5b91905290565b6000602082840312156123cf57600080fd5b61172a82612291565b803561ffff811681146122a857600080fd5b600080604083850312156123fd57600080fd5b61240683612291565b9150612414602084016123d8565b90509250929050565b634e487b7160e01b600052604160045260246000fd5b600067ffffffffffffffff8084111561244e5761244e61241d565b604051601f8501601f19908116603f011681019082821181831017156124765761247661241d565b8160405280935085815286868601111561248f57600080fd5b858560208301376000602087830101525050509392505050565b600082601f8301126124ba57600080fd5b61172a83833560208501612433565b600080604083850312156124dc57600080fd5b82359150602083013567ffffffffffffffff8111156124fa57600080fd5b612506858286016124a9565b9150509250929050565b6000806040838503121561252357600080fd5b61252c836123d8565b915061241460208401612291565b80356001600160801b03811681146122a857600080fd5b60008083601f84011261256357600080fd5b50813567ffffffffffffffff81111561257b57600080fd5b6020830191508360208260051b8501011115610bcd57600080fd5b6000806000604084860312156125ab57600080fd5b6125b48461253a565b9250602084013567ffffffffffffffff8111156125d057600080fd5b6125dc86828701612551565b9497909650939450505050565b600080604083850312156125fc57600080fd5b61260583612291565b91506020830135801515811461261a57600080fd5b809150509250929050565b8281526040602082015260006115736040830184612239565b60006020828403121561265057600080fd5b813567ffffffffffffffff81111561266757600080fd5b611573848285016124a9565b6000806000806080858703121561268957600080fd5b61269285612291565b93506126a060208601612291565b925060408501359150606085013567ffffffffffffffff8111156126c357600080fd5b8501601f810187136126d457600080fd5b6126e387823560208401612433565b91505092959194509250565b60006020828403121561270157600080fd5b61172a8261253a565b60008060006060848603121561271f57600080fd5b8335925060208401359150604084013567ffffffffffffffff81111561274457600080fd5b612750868287016124a9565b9150509250925092565b6000806040838503121561276d57600080fd5b61252c83612291565b60008060006040848603121561278b57600080fd5b833567ffffffffffffffff8111156127a257600080fd5b6127ae86828701612551565b90945092506127c1905060208501612291565b90509250925092565b600181811c908216806127de57607f821691505b6020821081036127fe57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b600081600019048311821515161561283457612834612804565b500290565b60008261285657634e487b7160e01b600052601260045260246000fd5b500490565b6000821982111561286e5761286e612804565b500190565b600061ffff80831681851680830382111561289057612890612804565b01949350505050565b60006001600160801b0380831681851680830382111561289057612890612804565b634e487b7160e01b600052603260045260246000fd5b6000602082840312156128e357600080fd5b5051919050565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061291d90830184612239565b9695505050505050565b60006020828403121561293957600080fd5b815161172a816121da565b6000835161295681846020880161220d565b83519083019061289081836020880161220d565b60006001820161297c5761297c612804565b506001019056fea2646970667358221220699d6367f778d47dda09e19eaaeb195037a126986bd6c2bda0132790b0b74ed764736f6c634300080e0033

Loading...
Loading
Loading...
Loading
[ Download: CSV Export  ]
[ Download: CSV Export  ]

A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.