ETH Price: $3,962.65 (+2.56%)

Token

Stardust Generation (STRDST)
 

Overview

Max Total Supply

3,396 STRDST

Holders

1,127

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Filtered by Token Holder
criptolab.eth
Balance
2 STRDST
0x4ed18f6cc60891e8ad438a03162bf9ecec51ee13
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:
StardustGeneration

Compiler Version
v0.8.13+commit.abaa5c0e

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 10 : StardustGeneration.sol
//SPDX-License-Identifier: MIT
pragma solidity ^0.8.13;

/// @title Stardust Generation
/// @author Techchelle llc, Stardust7, Inc ᖭི༏ᖫྀ
/// @notice Stardust Society: Stardust Society Genesis, Stardust x Kendra Scott, Spreading Stardust, Stardust Generation (current) 
/// @notice commercial rights only, permitted for Stardust Generation, more info @ stardustsociety.io

import "erc721a/contracts/extensions/ERC721AQueryable.sol";
import "@openzeppelin/contracts/utils/Strings.sol";
import "@openzeppelin/contracts/utils/Address.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol";

//    .-'''-.,---------.   ____   .-------.    ______      ___    _   .-'''-.,---------.                         
//   / _     \          \.'  __ `.|  _ _   \  |    _ `''..'   |  | | / _     \          \                        
//  (`' )/`--'`--.  ,---/   '  \  | ( ' )  |  | _ | ) _  |   .'  | |(`' )/`--'`--.  ,---'                        
// (_ o _).      |   \  |___|  /  |(_ o _) /  |( ''_'  ) .'  '_  | (_ o _).      |   \                (`' )    __/\__    (`' )           
//  (_,_). '.    :_ _:     _.-`   | (_,_).' __| . (_) `. '   ( \.-.|(_,_). '.    :_ _:               (_ o _)   \    /   (_ o _)             
// .---.  \  :   (_I_)  .'   _    |  |\ \  |  |(_    ._) ' (`. _` /.---.  \  :   (_I_)                (_,_)    / /\ \    (_,_)           
// \    `-'  |  (_(=)_) |  _( )_  |  | \ `'   |  (_.\.' /| (_ (_) _\    `-'  |  (_(=)_)                          
//  \       /    (_I_)  \ (_ o _) |  |  \    /|       .'  \ /  . \ /\       /    (_I_)                           
//   `-...-'     '---'   '.(_,_).'''-'   `'-' '-----'`     ``-'`-''  `-...-'     '---'                           
//   .-_'''-.      .-''-. ,---.   .--.   .-''-. .-------.      ____  ,---------..-./`)    ,-----.   ,---.   .--. 
//  '_( )_   \   .'_ _   \|    \  |  | .'_ _   \|  _ _   \   .'  __ `\          \ .-.') .'  .-,  '. |    \  |  | 
// |(_ o _)|  ' / ( ` )   |  ,  \ |  |/ ( ` )   | ( ' )  |  /   '  \  `--.  ,---/ `-' \/ ,-.|  \ _ \|  ,  \ |  | 
// . (_,_)/___|. (_ o _)  |  |\_ \|  . (_ o _)  |(_ o _) /  |___|  /  |  |   \   `-'`";  \  '_ /  | |  |\_ \|  | 
// |  |  .-----|  (_,_)___|  _( )_\  |  (_,_)___| (_,_).' __   _.-`   |  :_ _:   .---.|  _`,/ \ _/  |  _( )_\  | 
// '  \  '-   .'  \   .---| (_ o _)  '  \   .---|  |\ \  |  .'   _    |  (_I_)   |   |: (  '\_/ \   | (_ o _)  | 
//  \  `-'`   | \  `-'    |  (_,_)\  |\  `-'    |  | \ `'   |  _( )_  | (_(=)_)  |   | \ `"/  \  ) /|  (_,_)\  | 
//   \        /  \       /|  |    |  | \       /|  |  \    /\ (_ o _) /  (_I_)   |   |  '. \_/``".' |  |    |  | 
//    `'-...-'    `'-..-' '--'    '--'  `'-..-' ''-'   `'-'  '.(_,_).'   '---'   '---'    '-----'   '--'    '--'

/// @dev ERC721AQueryable extension of ERC721A for querying ownership
contract StardustGeneration is ERC721AQueryable, Ownable {

    // contract variables 
    using Strings for uint256;
    using Address for address;
    address public ms;
    string public metaSuffix; 
    string public baseTokenURI;
    bytes32 public merkleRoot; // for starlist and reservelist                              

    // minting phase and wallet limit
    uint16 public constant MAX_STARLIST = 7;
    uint16 public constant MAX_RESERVELIST = 7;
    uint16 public maxPublic = 7; 
    uint16 public maxTotalPerWallet = 14;

    // supply and cost 
    uint256 public constant MAX_SUPPLY = 7777; 
    uint256 public cost = 0.04 ether;
    
    // toggle minting phases
    bool public starlistOpen = false;
    bool public reservelistOpen = false;
    bool public publicOpen = false;
    bool public isRevealed = false; 
  
    // check to see if spots have already been minted                                      ᖭི༏ᖫྀ
    mapping(address => uint256) private starlistRedeemed; 
    mapping(address => uint256) private reservelistRedeemed;

    /// @dev emit events                                                         ᖭི༏ᖫྀ
    event Withdraw(address indexed to, uint256 amount);
    event StardustAirdrop(uint256 totalSent); 
    
    constructor( 
            string memory _name, 
            string memory _symbol,
            string memory _initBaseTokenURI,
            string memory _metaSuffix,
            bytes32 _merkleRoot,
            address[] memory _withdrawAddress)
            ERC721A(_name, _symbol)
        {
            baseTokenURI = _initBaseTokenURI; 
            metaSuffix = _metaSuffix; 
            merkleRoot = _merkleRoot; 
            setWithdrawAddress(_withdrawAddress);
        }
    
    // set metasuffix function
    function setMetaSuffix(string calldata _newSuffix) external onlyOwner {
        metaSuffix = _newSuffix;
    }

    // token uri
    function setBaseTokenURI(string calldata _baseTokenURI) external onlyOwner { 
      baseTokenURI = _baseTokenURI; 
    }
    // token uri                                                                
    function tokenURI(uint256 tokenId)
        public
        view
        virtual
        override(ERC721A,IERC721A)
        returns (string memory)
    {
        require(
            _exists(tokenId),
            "ERC721Metadata: URI query for a nonexistent token"
        );

        if (isRevealed == true) {
            return bytes(baseTokenURI).length > 0 ? string(abi.encodePacked(baseTokenURI, tokenId.toString(), metaSuffix)) : "";
        } else {
            return bytes(baseTokenURI).length > 0 ? string(abi.encodePacked(baseTokenURI, "prereveal", metaSuffix)) : "";
        }
    }
    /// @dev more efficient to start at 1, see ERC721A
    function _startTokenId() internal view virtual override returns (uint256) {
        return 1;
    }

    /// @dev set merkle root for starlist and reservelist
    function setMerkleRoot(bytes32 _root) external onlyOwner {
        merkleRoot = _root;
    }

    // set cost function
    function setCost(uint256 _newCost) external onlyOwner {
        cost = _newCost;
    }

    // set max mints allowed for public 
    function setMaxPublic(uint16 _amount) external onlyOwner {
        maxPublic = _amount;
    }
    // set max mints allowed per wallet  
    function setMaxTotalPerWallet(uint16 _amount) external onlyOwner {
        maxTotalPerWallet = _amount;
    }
//                                                                                                                     ᖭི༏ᖫྀ
//                                                                                                                        
//                                                                                                                            (_I_)
//                                                                                                                           (_(=)_)
//                                                                                                                            (_I_)

    // toggle phases
    function togglePhase(uint256 _mintingPhase) external onlyOwner {
        if ( _mintingPhase == 1 ) {
            starlistOpen = true;  
        } else if ( _mintingPhase == 2 ) {
            starlistOpen = false; 
            reservelistOpen = true; 
        } else if ( _mintingPhase == 3 ) {
            reservelistOpen = false; 
            publicOpen = true; 
        } else {
            publicOpen = false; 
        }
    }
    // toggle reveal
    function toggleReveal(string calldata _revealedMetadataURI) external onlyOwner {
        isRevealed = true; 
        baseTokenURI = _revealedMetadataURI;
    }
    // toggle pause
    function togglePause() external onlyOwner {
        starlistOpen = false; 
        reservelistOpen = false; 
        publicOpen = false; 
    }

    // safely mint each nft to the caller/receiver 
    function _mintLoop(address _receiver, uint256 _mintAmount) internal {
        _safeMint(_receiver, _mintAmount);
    }

    // Generate the leaf node (the hash of tokenID concatenated with the account address)
    function _leaf(address account) internal pure returns (bytes32) {
        return keccak256(abi.encodePacked(account));
    }

    // Merkle Proof Verification
    function _verifyMerkleList(
        bytes32 _leafNode,
        bytes32[] memory _merkleProof
    ) internal view returns (bool) {
        return MerkleProof.verify(_merkleProof, merkleRoot, _leafNode);
    } 

    /// @notice starlist mint 
    function mintStarlist(
        bytes32[] calldata _merkleProof,
        uint256 _mintAmount
    ) external payable {
        require(starlistOpen == true, "The starlist not open");
        require(
            _verifyMerkleList(_leaf(msg.sender), _merkleProof),
            "Invalid proof"
        );
        unchecked {
            require(_mintAmount > 0, "Your mint amount should be greater than 0");
            require(
                (starlistRedeemed[msg.sender] + _mintAmount) <= MAX_STARLIST,
                "Your mint amount exceeds the max mint per starlist"
            );
            require(totalSupply() + _mintAmount <= MAX_SUPPLY,
                "You would exceed the max supply of tokens"
            );
            require(
                msg.value == (cost * _mintAmount),
                "Insuffient funds"
            );
            starlistRedeemed[msg.sender] += _mintAmount;
            _mintLoop(msg.sender, _mintAmount);
        }
    }

    /// @notice reservelist mint
    function mintReservelist(                                                                                       
        bytes32[] calldata _merkleProof,
        uint256 _mintAmount
    ) external payable {
        require(reservelistOpen == true, "The reservelist mint is not open");
        require(
            _verifyMerkleList(_leaf(msg.sender), _merkleProof),
            "Invalid proof"
        );
        unchecked {
            require(_mintAmount > 0, "Your mint amount should be greater than 0");
            require(
                (reservelistRedeemed[msg.sender] + _mintAmount) <= MAX_RESERVELIST,
                "Your mint amount exceeds the max mint per reservelist"
            );
            require(totalSupply() + _mintAmount <= MAX_SUPPLY,
                "You would exceed the max supply of tokens"
            );
            require(
                msg.value == (cost * _mintAmount),
                "Insuffient funds"
            );
            reservelistRedeemed[msg.sender] += _mintAmount;
            _mintLoop(msg.sender, _mintAmount);
        }
    }

    /// @notice public mint                                                                                                  ᖭི༏ᖫྀ
    function mintPublic(uint256 _mintAmount) 
        external payable  
    {
        /** @dev utilizing _numberMinted versus balanceOf                                          ᖭི༏ᖫྀ  (_I_)
                 balanceOf is # of nfts you have at time of t(x)                                      (_(=)_)
                 w/balanceOf users can transfer them out to mint more                                  (_I_)  ᖭི༏ᖫྀ
        */
        uint256 ownerTokenCount = _numberMinted(msg.sender); 
        require(starlistOpen == false, "Starlist is open");
        require(reservelistOpen == false, "Reservelist is open");
        require(publicOpen == true, "Public sale is not open");
        unchecked {
            require(_mintAmount > 0, "Your mint amount should be greater than 0");
            require(
                _mintAmount <= maxPublic,
                "Your mint amount exceeds the max mint per public sale"
            );
            require(
                totalSupply() + _mintAmount <= MAX_SUPPLY,
                "Exceeds Max Supply"
            );
            require(
                (ownerTokenCount + _mintAmount) <= maxTotalPerWallet,
                "Sorry, you cant mint more, it exceeds the per wallet total"
            );
            require(
                msg.value == (cost * _mintAmount), 
                "Insufficient funds"
            );
            _mintLoop(msg.sender, _mintAmount);
        }
    }

    // ✦ ˑ ִֶָ 𓂃⊹  airdrop ✦ ˑ ִֶָ 𓂃⊹ 
    function airdrop(address[] calldata _airdropAddresses, uint256 _mintAmount) external onlyOwner {
        uint256 totalSent = (_airdropAddresses.length * _mintAmount);
        unchecked {
            for (uint256 i = 0; i < _airdropAddresses.length; i++) {
                address to = _airdropAddresses[i];
                require(
                    (_airdropAddresses.length * _mintAmount) + totalSupply() <= MAX_SUPPLY,
                    "Airdropping this many would exceed the max supply"
                );
                _mintLoop(to, _mintAmount);
            }
        }
        emit StardustAirdrop(totalSent);
    }

    // ✦ ˑ ִֶָ 𓂃⊹ withdraw stardust `✦ ˑ ִֶָ 𓂃⊹ ⊹ 
    function setWithdrawAddress(address[] memory newAddress) public onlyOwner {
        /// @dev multisig
        ms = newAddress[0]; 
    }

    function withdrawStardust() external onlyOwner {
        uint256 amount = address(this).balance;
        require(amount <= address(this).balance);
        require(amount >= 0, "No funds available");
        Address.sendValue(payable(ms), amount);
        emit Withdraw(ms, amount);
    }
}

File 2 of 10 : ERC721AQueryable.sol
// SPDX-License-Identifier: MIT
// ERC721A Contracts v4.0.0
// Creator: Chiru Labs

pragma solidity ^0.8.4;

import './IERC721AQueryable.sol';
import '../ERC721A.sol';

/**
 * @title ERC721A Queryable
 * @dev ERC721A subclass with convenience query functions.
 */
abstract contract ERC721AQueryable is ERC721A, IERC721AQueryable {
    /**
     * @dev Returns the `TokenOwnership` struct at `tokenId` without reverting.
     *
     * If the `tokenId` is out of bounds:
     *   - `addr` = `address(0)`
     *   - `startTimestamp` = `0`
     *   - `burned` = `false`
     *
     * If the `tokenId` is burned:
     *   - `addr` = `<Address of owner before token was burned>`
     *   - `startTimestamp` = `<Timestamp when token was burned>`
     *   - `burned = `true`
     *
     * Otherwise:
     *   - `addr` = `<Address of owner>`
     *   - `startTimestamp` = `<Timestamp of start of ownership>`
     *   - `burned = `false`
     */
    function explicitOwnershipOf(uint256 tokenId) public view override returns (TokenOwnership memory) {
        TokenOwnership memory ownership;
        if (tokenId < _startTokenId() || tokenId >= _nextTokenId()) {
            return ownership;
        }
        ownership = _ownershipAt(tokenId);
        if (ownership.burned) {
            return ownership;
        }
        return _ownershipOf(tokenId);
    }

    /**
     * @dev Returns an array of `TokenOwnership` structs at `tokenIds` in order.
     * See {ERC721AQueryable-explicitOwnershipOf}
     */
    function explicitOwnershipsOf(uint256[] memory tokenIds) external view override returns (TokenOwnership[] memory) {
        unchecked {
            uint256 tokenIdsLength = tokenIds.length;
            TokenOwnership[] memory ownerships = new TokenOwnership[](tokenIdsLength);
            for (uint256 i; i != tokenIdsLength; ++i) {
                ownerships[i] = explicitOwnershipOf(tokenIds[i]);
            }
            return ownerships;
        }
    }

    /**
     * @dev Returns an array of token IDs owned by `owner`,
     * in the range [`start`, `stop`)
     * (i.e. `start <= tokenId < stop`).
     *
     * This function allows for tokens to be queried if the collection
     * grows too big for a single call of {ERC721AQueryable-tokensOfOwner}.
     *
     * Requirements:
     *
     * - `start` < `stop`
     */
    function tokensOfOwnerIn(
        address owner,
        uint256 start,
        uint256 stop
    ) external view override returns (uint256[] memory) {
        unchecked {
            if (start >= stop) revert InvalidQueryRange();
            uint256 tokenIdsIdx;
            uint256 stopLimit = _nextTokenId();
            // Set `start = max(start, _startTokenId())`.
            if (start < _startTokenId()) {
                start = _startTokenId();
            }
            // Set `stop = min(stop, stopLimit)`.
            if (stop > stopLimit) {
                stop = stopLimit;
            }
            uint256 tokenIdsMaxLength = balanceOf(owner);
            // Set `tokenIdsMaxLength = min(balanceOf(owner), stop - start)`,
            // to cater for cases where `balanceOf(owner)` is too big.
            if (start < stop) {
                uint256 rangeLength = stop - start;
                if (rangeLength < tokenIdsMaxLength) {
                    tokenIdsMaxLength = rangeLength;
                }
            } else {
                tokenIdsMaxLength = 0;
            }
            uint256[] memory tokenIds = new uint256[](tokenIdsMaxLength);
            if (tokenIdsMaxLength == 0) {
                return tokenIds;
            }
            // We need to call `explicitOwnershipOf(start)`,
            // because the slot at `start` may not be initialized.
            TokenOwnership memory ownership = explicitOwnershipOf(start);
            address currOwnershipAddr;
            // If the starting slot exists (i.e. not burned), initialize `currOwnershipAddr`.
            // `ownership.address` will not be zero, as `start` is clamped to the valid token ID range.
            if (!ownership.burned) {
                currOwnershipAddr = ownership.addr;
            }
            for (uint256 i = start; i != stop && tokenIdsIdx != tokenIdsMaxLength; ++i) {
                ownership = _ownershipAt(i);
                if (ownership.burned) {
                    continue;
                }
                if (ownership.addr != address(0)) {
                    currOwnershipAddr = ownership.addr;
                }
                if (currOwnershipAddr == owner) {
                    tokenIds[tokenIdsIdx++] = i;
                }
            }
            // Downsize the array to fit.
            assembly {
                mstore(tokenIds, tokenIdsIdx)
            }
            return tokenIds;
        }
    }

    /**
     * @dev Returns an array of token IDs owned by `owner`.
     *
     * This function scans the ownership mapping and is O(totalSupply) in complexity.
     * It is meant to be called off-chain.
     *
     * See {ERC721AQueryable-tokensOfOwnerIn} for splitting the scan into
     * multiple smaller scans if the collection is large enough to cause
     * an out-of-gas error (10K pfp collections should be fine).
     */
    function tokensOfOwner(address owner) external view override returns (uint256[] memory) {
        unchecked {
            uint256 tokenIdsIdx;
            address currOwnershipAddr;
            uint256 tokenIdsLength = balanceOf(owner);
            uint256[] memory tokenIds = new uint256[](tokenIdsLength);
            TokenOwnership memory ownership;
            for (uint256 i = _startTokenId(); tokenIdsIdx != tokenIdsLength; ++i) {
                ownership = _ownershipAt(i);
                if (ownership.burned) {
                    continue;
                }
                if (ownership.addr != address(0)) {
                    currOwnershipAddr = ownership.addr;
                }
                if (currOwnershipAddr == owner) {
                    tokenIds[tokenIdsIdx++] = i;
                }
            }
            return tokenIds;
        }
    }
}

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

pragma solidity ^0.8.1;

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

        return account.code.length > 0;
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

/**
 * @dev These functions deal with verification of Merkle Trees proofs.
 *
 * The proofs can be generated using the JavaScript library
 * https://github.com/miguelmota/merkletreejs[merkletreejs].
 * Note: the hashing algorithm should be keccak256 and pair sorting should be enabled.
 *
 * See `test/utils/cryptography/MerkleProof.test.js` for some examples.
 *
 * WARNING: You should avoid using leaf values that are 64 bytes long prior to
 * hashing, or use a hash function other than keccak256 for hashing leaves.
 * This is because the concatenation of a sorted pair of internal nodes in
 * the merkle tree could be reinterpreted as a leaf value.
 */
library MerkleProof {
    /**
     * @dev Returns true if a `leaf` can be proved to be a part of a Merkle tree
     * defined by `root`. For this, a `proof` must be provided, containing
     * sibling hashes on the branch from the leaf to the root of the tree. Each
     * pair of leaves and each pair of pre-images are assumed to be sorted.
     */
    function verify(
        bytes32[] memory proof,
        bytes32 root,
        bytes32 leaf
    ) internal pure returns (bool) {
        return processProof(proof, leaf) == root;
    }

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

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

File 7 of 10 : IERC721AQueryable.sol
// SPDX-License-Identifier: MIT
// ERC721A Contracts v4.0.0
// Creator: Chiru Labs

pragma solidity ^0.8.4;

import '../IERC721A.sol';

/**
 * @dev Interface of an ERC721AQueryable compliant contract.
 */
interface IERC721AQueryable is IERC721A {
    /**
     * Invalid query range (`start` >= `stop`).
     */
    error InvalidQueryRange();

    /**
     * @dev Returns the `TokenOwnership` struct at `tokenId` without reverting.
     *
     * If the `tokenId` is out of bounds:
     *   - `addr` = `address(0)`
     *   - `startTimestamp` = `0`
     *   - `burned` = `false`
     *
     * If the `tokenId` is burned:
     *   - `addr` = `<Address of owner before token was burned>`
     *   - `startTimestamp` = `<Timestamp when token was burned>`
     *   - `burned = `true`
     *
     * Otherwise:
     *   - `addr` = `<Address of owner>`
     *   - `startTimestamp` = `<Timestamp of start of ownership>`
     *   - `burned = `false`
     */
    function explicitOwnershipOf(uint256 tokenId) external view returns (TokenOwnership memory);

    /**
     * @dev Returns an array of `TokenOwnership` structs at `tokenIds` in order.
     * See {ERC721AQueryable-explicitOwnershipOf}
     */
    function explicitOwnershipsOf(uint256[] memory tokenIds) external view returns (TokenOwnership[] memory);

    /**
     * @dev Returns an array of token IDs owned by `owner`,
     * in the range [`start`, `stop`)
     * (i.e. `start <= tokenId < stop`).
     *
     * This function allows for tokens to be queried if the collection
     * grows too big for a single call of {ERC721AQueryable-tokensOfOwner}.
     *
     * Requirements:
     *
     * - `start` < `stop`
     */
    function tokensOfOwnerIn(
        address owner,
        uint256 start,
        uint256 stop
    ) external view returns (uint256[] memory);

    /**
     * @dev Returns an array of token IDs owned by `owner`.
     *
     * This function scans the ownership mapping and is O(totalSupply) in complexity.
     * It is meant to be called off-chain.
     *
     * See {ERC721AQueryable-tokensOfOwnerIn} for splitting the scan into
     * multiple smaller scans if the collection is large enough to cause
     * an out-of-gas error (10K pfp collections should be fine).
     */
    function tokensOfOwner(address owner) external view returns (uint256[] memory);
}

File 8 of 10 : 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 (owner == address(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 auxillary 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 auxillary data for `owner`. (e.g. number of whitelist mint slots used).
     * If there are multiple variables, please pack them into a uint64.
     */
    function _setAux(address owner, uint64 aux) internal {
        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, can be overriden 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 (to == owner) revert ApprovalToCurrentOwner();

        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.
     */
    function _safeMint(
        address to,
        uint256 quantity,
        bytes memory _data
    ) internal {
        uint256 startTokenId = _currentIndex;
        if (to == address(0)) revert MintToZeroAddress();
        if (quantity == 0) revert MintZeroQuantity();

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

        // Overflows are incredibly unrealistic.
        // balance or numberMinted overflow if current value of either + quantity > 1.8e19 (2**64) - 1
        // updatedIndex overflows if _currentIndex + quantity > 1.2e77 (2**256) - 1
        unchecked {
            // 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 updatedIndex = startTokenId;
            uint256 end = updatedIndex + quantity;

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

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

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

        // Overflows are incredibly unrealistic.
        // balance or numberMinted overflow if current value of either + quantity > 1.8e19 (2**64) - 1
        // updatedIndex overflows if _currentIndex + quantity > 1.2e77 (2**256) - 1
        unchecked {
            // 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 updatedIndex = startTokenId;
            uint256 end = updatedIndex + quantity;

            do {
                emit Transfer(address(0), to, updatedIndex++);
            } while (updatedIndex < end);

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

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

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

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

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

        _beforeTokenTransfers(from, to, tokenId, 1);

        // Clear approvals from the previous owner.
        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));

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

            if (!isApprovedOrOwner) revert TransferCallerNotOwnerNorApproved();
        }

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

        // Clear approvals from the previous owner.
        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 9 of 10 : 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();

    /**
     * The caller cannot approve to the current owner.
     */
    error ApprovalToCurrentOwner();

    /**
     * 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 10 of 10 : 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
{
  "optimizer": {
    "enabled": true,
    "runs": 200
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  },
  "libraries": {}
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"string","name":"_name","type":"string"},{"internalType":"string","name":"_symbol","type":"string"},{"internalType":"string","name":"_initBaseTokenURI","type":"string"},{"internalType":"string","name":"_metaSuffix","type":"string"},{"internalType":"bytes32","name":"_merkleRoot","type":"bytes32"},{"internalType":"address[]","name":"_withdrawAddress","type":"address[]"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"ApprovalToCurrentOwner","type":"error"},{"inputs":[],"name":"ApproveToCaller","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"InvalidQueryRange","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"TransferCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"TransferFromIncorrectOwner","type":"error"},{"inputs":[],"name":"TransferToNonERC721ReceiverImplementer","type":"error"},{"inputs":[],"name":"TransferToZeroAddress","type":"error"},{"inputs":[],"name":"URIQueryForNonexistentToken","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"totalSent","type":"uint256"}],"name":"StardustAirdrop","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Withdraw","type":"event"},{"inputs":[],"name":"MAX_RESERVELIST","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_STARLIST","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"_airdropAddresses","type":"address[]"},{"internalType":"uint256","name":"_mintAmount","type":"uint256"}],"name":"airdrop","outputs":[],"stateMutability":"nonpayable","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":"baseTokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"cost","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"explicitOwnershipOf","outputs":[{"components":[{"internalType":"address","name":"addr","type":"address"},{"internalType":"uint64","name":"startTimestamp","type":"uint64"},{"internalType":"bool","name":"burned","type":"bool"}],"internalType":"struct IERC721A.TokenOwnership","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"explicitOwnershipsOf","outputs":[{"components":[{"internalType":"address","name":"addr","type":"address"},{"internalType":"uint64","name":"startTimestamp","type":"uint64"},{"internalType":"bool","name":"burned","type":"bool"}],"internalType":"struct IERC721A.TokenOwnership[]","name":"","type":"tuple[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isRevealed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxPublic","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxTotalPerWallet","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"merkleRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"metaSuffix","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_mintAmount","type":"uint256"}],"name":"mintPublic","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"bytes32[]","name":"_merkleProof","type":"bytes32[]"},{"internalType":"uint256","name":"_mintAmount","type":"uint256"}],"name":"mintReservelist","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"bytes32[]","name":"_merkleProof","type":"bytes32[]"},{"internalType":"uint256","name":"_mintAmount","type":"uint256"}],"name":"mintStarlist","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"ms","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"publicOpen","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"reservelistOpen","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_baseTokenURI","type":"string"}],"name":"setBaseTokenURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newCost","type":"uint256"}],"name":"setCost","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"_amount","type":"uint16"}],"name":"setMaxPublic","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"_amount","type":"uint16"}],"name":"setMaxTotalPerWallet","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_root","type":"bytes32"}],"name":"setMerkleRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_newSuffix","type":"string"}],"name":"setMetaSuffix","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"newAddress","type":"address[]"}],"name":"setWithdrawAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"starlistOpen","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","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":[],"name":"togglePause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_mintingPhase","type":"uint256"}],"name":"togglePhase","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_revealedMetadataURI","type":"string"}],"name":"toggleReveal","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"tokensOfOwner","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"start","type":"uint256"},{"internalType":"uint256","name":"stop","type":"uint256"}],"name":"tokensOfOwnerIn","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawStardust","outputs":[],"stateMutability":"nonpayable","type":"function"}]

6080604052600d8054620e000763ffffffff1991821617909155668e1bc9bf040000600e55600f805490911690553480156200003a57600080fd5b5060405162003614380380620036148339810160408190526200005d9162000402565b85518690869062000076906002906020850190620001df565b5080516200008c906003906020840190620001df565b50506001600055506200009f33620000e7565b8351620000b490600b906020870190620001df565b508251620000ca90600a906020860190620001df565b50600c829055620000db8162000139565b5050505050506200053d565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6008546001600160a01b03163314620001985760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640160405180910390fd5b80600081518110620001ae57620001ae620004eb565b6020026020010151600960006101000a8154816001600160a01b0302191690836001600160a01b0316021790555050565b828054620001ed9062000501565b90600052602060002090601f0160209004810192826200021157600085556200025c565b82601f106200022c57805160ff19168380011785556200025c565b828001600101855582156200025c579182015b828111156200025c5782518255916020019190600101906200023f565b506200026a9291506200026e565b5090565b5b808211156200026a57600081556001016200026f565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f191681016001600160401b0381118282101715620002c657620002c662000285565b604052919050565b600082601f830112620002e057600080fd5b81516001600160401b03811115620002fc57620002fc62000285565b602062000312601f8301601f191682016200029b565b82815285828487010111156200032757600080fd5b60005b83811015620003475785810183015182820184015282016200032a565b83811115620003595760008385840101525b5095945050505050565b600082601f8301126200037557600080fd5b815160206001600160401b0382111562000393576200039362000285565b8160051b620003a48282016200029b565b9283528481018201928281019087851115620003bf57600080fd5b83870192505b84831015620003f75782516001600160a01b0381168114620003e75760008081fd5b82529183019190830190620003c5565b979650505050505050565b60008060008060008060c087890312156200041c57600080fd5b86516001600160401b03808211156200043457600080fd5b620004428a838b01620002ce565b975060208901519150808211156200045957600080fd5b620004678a838b01620002ce565b965060408901519150808211156200047e57600080fd5b6200048c8a838b01620002ce565b95506060890151915080821115620004a357600080fd5b620004b18a838b01620002ce565b94506080890151935060a0890151915080821115620004cf57600080fd5b50620004de89828a0162000363565b9150509295509295509295565b634e487b7160e01b600052603260045260246000fd5b600181811c908216806200051657607f821691505b6020821081036200053757634e487b7160e01b600052602260045260246000fd5b50919050565b6130c7806200054d6000396000f3fe6080604052600436106102c95760003560e01c80637dc4297511610175578063c23dc68f116100dc578063d547cfb711610095578063e985e9c51161006f578063e985e9c51461084b578063efd0cbf91461086b578063f2fde38b1461087e578063fe1e30231461089e57600080fd5b8063d547cfb714610816578063dcb7aa7514610421578063dd300e611461082b57600080fd5b8063c23dc68f14610767578063c271f03914610794578063c4ae3168146107ae578063c6fc0a98146107c3578063c87b56dd146107e3578063cc83e4551461080357600080fd5b8063a0b2d57f1161012e578063a0b2d57f146106a6578063a22cb465146106c6578063a7b8ab91146106e6578063b88d4fde14610707578063ba70c51514610727578063c204642c1461074757600080fd5b80637dc42975146105f65780638462151c146106115780638d4aa9a21461063e5780638da5cb5b1461065357806395d89b411461067157806399a2557a1461068657600080fd5b806342842e0e116102345780635d8c2efd116101ed57806370a08231116101c757806370a0823114610581578063715018a6146105a15780637ae70879146105b65780637cb64759146105d657600080fd5b80635d8c2efd146105215780636352211e146105415780636bf4fbd71461056157600080fd5b806342842e0e1461045f57806344a0d68a1461047f5780635305e3651461049f57806354214f69146104be578063571b7aac146104df5780635bbb2177146104f457600080fd5b806318160ddd1161028657806318160ddd146103b657806323b872dd146103cb5780632eb4a7ab146103eb57806330176e131461040157806330d370e81461042157806332cb6b0c1461044957600080fd5b806301ffc9a7146102ce57806306fdde0314610303578063081812fc14610325578063095ea7b31461035d5780630e2eb1f61461037f57806313faede614610392575b600080fd5b3480156102da57600080fd5b506102ee6102e936600461274d565b6108be565b60405190151581526020015b60405180910390f35b34801561030f57600080fd5b50610318610910565b6040516102fa91906127c2565b34801561033157600080fd5b506103456103403660046127d5565b6109a2565b6040516001600160a01b0390911681526020016102fa565b34801561036957600080fd5b5061037d610378366004612805565b6109e6565b005b61037d61038d36600461287a565b610ab8565b34801561039e57600080fd5b506103a8600e5481565b6040519081526020016102fa565b3480156103c257600080fd5b506103a8610cc0565b3480156103d757600080fd5b5061037d6103e63660046128c5565b610cce565b3480156103f757600080fd5b506103a8600c5481565b34801561040d57600080fd5b5061037d61041c366004612901565b610cd9565b34801561042d57600080fd5b50610436600781565b60405161ffff90911681526020016102fa565b34801561045557600080fd5b506103a8611e6181565b34801561046b57600080fd5b5061037d61047a3660046128c5565b610d0f565b34801561048b57600080fd5b5061037d61049a3660046127d5565b610d2a565b3480156104ab57600080fd5b50600f546102ee90610100900460ff1681565b3480156104ca57600080fd5b50600f546102ee906301000000900460ff1681565b3480156104eb57600080fd5b50610318610d59565b34801561050057600080fd5b5061051461050f3660046129db565b610de7565b6040516102fa9190612a70565b34801561052d57600080fd5b5061037d61053c366004612901565b610ead565b34801561054d57600080fd5b5061034561055c3660046127d5565b610ef6565b34801561056d57600080fd5b5061037d61057c366004612ada565b610f01565b34801561058d57600080fd5b506103a861059c366004612afe565b610f43565b3480156105ad57600080fd5b5061037d610f91565b3480156105c257600080fd5b5061037d6105d1366004612901565b610fc7565b3480156105e257600080fd5b5061037d6105f13660046127d5565b610ffd565b34801561060257600080fd5b50600d546104369061ffff1681565b34801561061d57600080fd5b5061063161062c366004612afe565b61102c565b6040516102fa9190612b19565b34801561064a57600080fd5b5061037d61112d565b34801561065f57600080fd5b506008546001600160a01b0316610345565b34801561067d57600080fd5b506103186111c0565b34801561069257600080fd5b506106316106a1366004612b51565b6111cf565b3480156106b257600080fd5b50600954610345906001600160a01b031681565b3480156106d257600080fd5b5061037d6106e1366004612b84565b611356565b3480156106f257600080fd5b50600d546104369062010000900461ffff1681565b34801561071357600080fd5b5061037d610722366004612bc0565b6113eb565b34801561073357600080fd5b50600f546102ee9062010000900460ff1681565b34801561075357600080fd5b5061037d61076236600461287a565b611435565b34801561077357600080fd5b506107876107823660046127d5565b611567565b6040516102fa9190612c7f565b3480156107a057600080fd5b50600f546102ee9060ff1681565b3480156107ba57600080fd5b5061037d6115dc565b3480156107cf57600080fd5b5061037d6107de366004612cb4565b611614565b3480156107ef57600080fd5b506103186107fe3660046127d5565b611682565b61037d61081136600461287a565b6117ad565b34801561082257600080fd5b50610318611983565b34801561083757600080fd5b5061037d610846366004612ada565b611990565b34801561085757600080fd5b506102ee610866366004612d40565b6119da565b61037d6108793660046127d5565b611a08565b34801561088a57600080fd5b5061037d610899366004612afe565b611cd5565b3480156108aa57600080fd5b5061037d6108b93660046127d5565b611d70565b60006301ffc9a760e01b6001600160e01b0319831614806108ef57506380ac58cd60e01b6001600160e01b03198316145b8061090a5750635b5e139f60e01b6001600160e01b03198316145b92915050565b60606002805461091f90612d73565b80601f016020809104026020016040519081016040528092919081815260200182805461094b90612d73565b80156109985780601f1061096d57610100808354040283529160200191610998565b820191906000526020600020905b81548152906001019060200180831161097b57829003601f168201915b5050505050905090565b60006109ad82611df7565b6109ca576040516333d1c03960e21b815260040160405180910390fd5b506000908152600660205260409020546001600160a01b031690565b60006109f182611e2c565b9050806001600160a01b0316836001600160a01b031603610a255760405163250fdee360e21b815260040160405180910390fd5b336001600160a01b03821614610a5c57610a3f81336119da565b610a5c576040516367d9dca160e11b815260040160405180910390fd5b60008281526006602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b600f5460ff161515600114610b0c5760405162461bcd60e51b81526020600482015260156024820152742a34329039ba30b93634b9ba103737ba1037b832b760591b60448201526064015b60405180910390fd5b610b51610b1833611e9b565b848480806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250611eda92505050565b610b8d5760405162461bcd60e51b815260206004820152600d60248201526c24b73b30b634b210383937b7b360991b6044820152606401610b03565b60008111610bad5760405162461bcd60e51b8152600401610b0390612dad565b3360009081526010602052604090205460079082011115610c2b5760405162461bcd60e51b815260206004820152603260248201527f596f7572206d696e7420616d6f756e74206578636565647320746865206d6178604482015271081b5a5b9d081c195c881cdd185c9b1a5cdd60721b6064820152608401610b03565b611e6181610c37610cc0565b011115610c565760405162461bcd60e51b8152600401610b0390612df6565b80600e54023414610c9c5760405162461bcd60e51b815260206004820152601060248201526f496e7375666669656e742066756e647360801b6044820152606401610b03565b336000818152601060205260409020805483019055610cbb9082611ee9565b505050565b600154600054036000190190565b610cbb838383611ef3565b6008546001600160a01b03163314610d035760405162461bcd60e51b8152600401610b0390612e3f565b610cbb600b838361269e565b610cbb838383604051806020016040528060008152506113eb565b6008546001600160a01b03163314610d545760405162461bcd60e51b8152600401610b0390612e3f565b600e55565b600a8054610d6690612d73565b80601f0160208091040260200160405190810160405280929190818152602001828054610d9290612d73565b8015610ddf5780601f10610db457610100808354040283529160200191610ddf565b820191906000526020600020905b815481529060010190602001808311610dc257829003601f168201915b505050505081565b80516060906000816001600160401b03811115610e0657610e06612972565b604051908082528060200260200182016040528015610e5157816020015b6040805160608101825260008082526020808301829052928201528252600019909201910181610e245790505b50905060005b828114610ea557610e80858281518110610e7357610e73612e74565b6020026020010151611567565b828281518110610e9257610e92612e74565b6020908102919091010152600101610e57565b509392505050565b6008546001600160a01b03163314610ed75760405162461bcd60e51b8152600401610b0390612e3f565b600f805463ff00000019166301000000179055610cbb600b838361269e565b600061090a82611e2c565b6008546001600160a01b03163314610f2b5760405162461bcd60e51b8152600401610b0390612e3f565b600d805461ffff191661ffff92909216919091179055565b60006001600160a01b038216610f6c576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b03166000908152600560205260409020546001600160401b031690565b6008546001600160a01b03163314610fbb5760405162461bcd60e51b8152600401610b0390612e3f565b610fc5600061209a565b565b6008546001600160a01b03163314610ff15760405162461bcd60e51b8152600401610b0390612e3f565b610cbb600a838361269e565b6008546001600160a01b031633146110275760405162461bcd60e51b8152600401610b0390612e3f565b600c55565b6060600080600061103c85610f43565b90506000816001600160401b0381111561105857611058612972565b604051908082528060200260200182016040528015611081578160200160208202803683370190505b5090506110a7604080516060810182526000808252602082018190529181019190915290565b60015b838614611121576110ba816120ec565b915081604001516111195781516001600160a01b0316156110da57815194505b876001600160a01b0316856001600160a01b031603611119578083878060010198508151811061110c5761110c612e74565b6020026020010181815250505b6001016110aa565b50909695505050505050565b6008546001600160a01b031633146111575760405162461bcd60e51b8152600401610b0390612e3f565b474781111561116557600080fd5b60095461117b906001600160a01b031682612121565b6009546040518281526001600160a01b03909116907f884edad9ce6fa2440d8a54cc123490eb96d2768479d49ff9c7366125a94243649060200160405180910390a250565b60606003805461091f90612d73565b60608183106111f157604051631960ccad60e11b815260040160405180910390fd5b6000806111fd60005490565b9050600185101561120d57600194505b80841115611219578093505b600061122487610f43565b905084861015611243578585038181101561123d578091505b50611247565b5060005b6000816001600160401b0381111561126157611261612972565b60405190808252806020026020018201604052801561128a578160200160208202803683370190505b509050816000036112a057935061134f92505050565b60006112ab88611567565b9050600081604001516112bc575080515b885b8881141580156112ce5750848714155b15611343576112dc816120ec565b9250826040015161133b5782516001600160a01b0316156112fc57825191505b8a6001600160a01b0316826001600160a01b03160361133b578084888060010199508151811061132e5761132e612e74565b6020026020010181815250505b6001016112be565b50505092835250909150505b9392505050565b336001600160a01b0383160361137f5760405163b06307db60e01b815260040160405180910390fd5b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6113f6848484611ef3565b6001600160a01b0383163b1561142f576114128484848461223a565b61142f576040516368d2bf6b60e11b815260040160405180910390fd5b50505050565b6008546001600160a01b0316331461145f5760405162461bcd60e51b8152600401610b0390612e3f565b600061146b8284612ea0565b905060005b8381101561152d57600085858381811061148c5761148c612e74565b90506020020160208101906114a19190612afe565b9050611e616114ae610cc0565b86860201111561151a5760405162461bcd60e51b815260206004820152603160248201527f41697264726f7070696e672074686973206d616e7920776f756c642065786365604482015270656420746865206d617820737570706c7960781b6064820152608401610b03565b6115248185611ee9565b50600101611470565b506040518181527fe3095edaab269860b35776d6cecdf84b0a94fe5d61197fea1b6c9f8d75bf88df9060200160405180910390a150505050565b604080516060808201835260008083526020808401829052838501829052845192830185528183528201819052928101929092529060018310806115ad57506000548310155b156115b85792915050565b6115c1836120ec565b90508060400151156115d35792915050565b61134f83612326565b6008546001600160a01b031633146116065760405162461bcd60e51b8152600401610b0390612e3f565b600f805462ffffff19169055565b6008546001600160a01b0316331461163e5760405162461bcd60e51b8152600401610b0390612e3f565b8060008151811061165157611651612e74565b6020026020010151600960006101000a8154816001600160a01b0302191690836001600160a01b0316021790555050565b606061168d82611df7565b6116f35760405162461bcd60e51b815260206004820152603160248201527f4552433732314d657461646174613a2055524920717565727920666f722061206044820152703737b732bc34b9ba32b73a103a37b5b2b760791b6064820152608401610b03565b600f546301000000900460ff161515600103611768576000600b805461171890612d73565b905011611734576040518060200160405280600081525061090a565b600b61173f83612354565b600a60405160200161175393929190612f58565b60405160208183030381529060405292915050565b6000600b805461177790612d73565b905011611793576040518060200160405280600081525061090a565b600b600a604051602001611753929190612f80565b919050565b600f5460ff61010090910416151560011461180a5760405162461bcd60e51b815260206004820181905260248201527f54686520726573657276656c697374206d696e74206973206e6f74206f70656e6044820152606401610b03565b611816610b1833611e9b565b6118525760405162461bcd60e51b815260206004820152600d60248201526c24b73b30b634b210383937b7b360991b6044820152606401610b03565b600081116118725760405162461bcd60e51b8152600401610b0390612dad565b33600090815260116020526040902054600790820111156118f35760405162461bcd60e51b815260206004820152603560248201527f596f7572206d696e7420616d6f756e74206578636565647320746865206d6178604482015274081b5a5b9d081c195c881c995cd95c9d995b1a5cdd605a1b6064820152608401610b03565b611e61816118ff610cc0565b01111561191e5760405162461bcd60e51b8152600401610b0390612df6565b80600e540234146119645760405162461bcd60e51b815260206004820152601060248201526f496e7375666669656e742066756e647360801b6044820152606401610b03565b336000818152601160205260409020805483019055610cbb9082611ee9565b600b8054610d6690612d73565b6008546001600160a01b031633146119ba5760405162461bcd60e51b8152600401610b0390612e3f565b600d805461ffff909216620100000263ffff000019909216919091179055565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b336000908152600560205260409081902054600f54911c6001600160401b03169060ff1615611a6c5760405162461bcd60e51b815260206004820152601060248201526f29ba30b93634b9ba1034b99037b832b760811b6044820152606401610b03565b600f54610100900460ff1615611aba5760405162461bcd60e51b81526020600482015260136024820152722932b9b2b93b32b634b9ba1034b99037b832b760691b6044820152606401610b03565b600f5462010000900460ff161515600114611b175760405162461bcd60e51b815260206004820152601760248201527f5075626c69632073616c65206973206e6f74206f70656e0000000000000000006044820152606401610b03565b60008211611b375760405162461bcd60e51b8152600401610b0390612dad565b600d5461ffff16821115611bab5760405162461bcd60e51b815260206004820152603560248201527f596f7572206d696e7420616d6f756e74206578636565647320746865206d6178604482015274206d696e7420706572207075626c69632073616c6560581b6064820152608401610b03565b611e6182611bb7610cc0565b011115611bfb5760405162461bcd60e51b815260206004820152601260248201527145786365656473204d617820537570706c7960701b6044820152606401610b03565b600d5462010000900461ffff168282011115611c7f5760405162461bcd60e51b815260206004820152603a60248201527f536f7272792c20796f752063616e74206d696e74206d6f72652c20697420657860448201527f636565647320746865207065722077616c6c657420746f74616c0000000000006064820152608401610b03565b81600e54023414611cc75760405162461bcd60e51b8152602060048201526012602482015271496e73756666696369656e742066756e647360701b6044820152606401610b03565b611cd13383611ee9565b5050565b6008546001600160a01b03163314611cff5760405162461bcd60e51b8152600401610b0390612e3f565b6001600160a01b038116611d645760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610b03565b611d6d8161209a565b50565b6008546001600160a01b03163314611d9a5760405162461bcd60e51b8152600401610b0390612e3f565b80600103611db257600f805460ff1916600117905550565b80600203611dcc57600f805461ffff191661010017905550565b80600303611de857600f805462ffff0019166201000017905550565b600f805462ff00001916905550565b600081600111158015611e0b575060005482105b801561090a575050600090815260046020526040902054600160e01b161590565b60008180600111611e8257600054811015611e825760008181526004602052604081205490600160e01b82169003611e80575b8060000361134f575060001901600081815260046020526040902054611e5f565b505b604051636f96cda160e11b815260040160405180910390fd5b6040516bffffffffffffffffffffffff19606083901b166020820152600090603401604051602081830303815290604052805190602001209050919050565b600061134f82600c5485612454565b611cd1828261246a565b6000611efe82611e2c565b9050836001600160a01b0316816001600160a01b031614611f315760405162a1148160e81b815260040160405180910390fd5b6000336001600160a01b0386161480611f4f5750611f4f85336119da565b80611f6a575033611f5f846109a2565b6001600160a01b0316145b905080611f8a57604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b038416611fb157604051633a954ecd60e21b815260040160405180910390fd5b600083815260066020908152604080832080546001600160a01b03191690556001600160a01b038881168452600583528184208054600019019055871683528083208054600101905585835260049091528120600160e11b4260a01b8717811790915583169003612052576001830160008181526004602052604081205490036120505760005481146120505760008181526004602052604090208390555b505b82846001600160a01b0316866001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45050505050565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b604080516060810182526000808252602082018190529181019190915260008281526004602052604090205461090a90612484565b804710156121715760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e63650000006044820152606401610b03565b6000826001600160a01b03168260405160006040518083038185875af1925050503d80600081146121be576040519150601f19603f3d011682016040523d82523d6000602084013e6121c3565b606091505b5050905080610cbb5760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d617920686176652072657665727465640000000000006064820152608401610b03565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a029061226f903390899088908890600401612fb1565b6020604051808303816000875af19250505080156122aa575060408051601f3d908101601f191682019092526122a791810190612fee565b60015b612308573d8080156122d8576040519150601f19603f3d011682016040523d82523d6000602084013e6122dd565b606091505b508051600003612300576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490505b949350505050565b604080516060810182526000808252602082018190529181019190915261090a61234f83611e2c565b612484565b60608160000361237b5750506040805180820190915260018152600360fc1b602082015290565b8160005b81156123a5578061238f8161300b565b915061239e9050600a8361303a565b915061237f565b6000816001600160401b038111156123bf576123bf612972565b6040519080825280601f01601f1916602001820160405280156123e9576020820181803683370190505b5090505b841561231e576123fe60018361304e565b915061240b600a86613065565b612416906030613079565b60f81b81838151811061242b5761242b612e74565b60200101906001600160f81b031916908160001a90535061244d600a8661303a565b94506123ed565b60008261246185846124be565b14949350505050565b611cd182826040518060200160405280600081525061252a565b604080516060810182526001600160a01b038316815260a083901c6001600160401b03166020820152600160e01b90921615159082015290565b600081815b8451811015610ea55760008582815181106124e0576124e0612e74565b602002602001015190508083116125065760008381526020829052604090209250612517565b600081815260208490526040902092505b50806125228161300b565b9150506124c3565b6000546001600160a01b03841661255357604051622e076360e81b815260040160405180910390fd5b826000036125745760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b03841660008181526005602090815260408083208054680100000000000000018902019055848352600490915290204260a01b86176001861460e11b1790558190818501903b15612649575b60405182906001600160a01b038816906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a4612612600087848060010195508761223a565b61262f576040516368d2bf6b60e11b815260040160405180910390fd5b8082106125c757826000541461264457600080fd5b61268e565b5b6040516001830192906001600160a01b038816906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a480821061264a575b50600090815561142f9085838684565b8280546126aa90612d73565b90600052602060002090601f0160209004810192826126cc5760008555612712565b82601f106126e55782800160ff19823516178555612712565b82800160010185558215612712579182015b828111156127125782358255916020019190600101906126f7565b5061271e929150612722565b5090565b5b8082111561271e5760008155600101612723565b6001600160e01b031981168114611d6d57600080fd5b60006020828403121561275f57600080fd5b813561134f81612737565b60005b8381101561278557818101518382015260200161276d565b8381111561142f5750506000910152565b600081518084526127ae81602086016020860161276a565b601f01601f19169290920160200192915050565b60208152600061134f6020830184612796565b6000602082840312156127e757600080fd5b5035919050565b80356001600160a01b03811681146117a857600080fd5b6000806040838503121561281857600080fd5b612821836127ee565b946020939093013593505050565b60008083601f84011261284157600080fd5b5081356001600160401b0381111561285857600080fd5b6020830191508360208260051b850101111561287357600080fd5b9250929050565b60008060006040848603121561288f57600080fd5b83356001600160401b038111156128a557600080fd5b6128b18682870161282f565b909790965060209590950135949350505050565b6000806000606084860312156128da57600080fd5b6128e3846127ee565b92506128f1602085016127ee565b9150604084013590509250925092565b6000806020838503121561291457600080fd5b82356001600160401b038082111561292b57600080fd5b818501915085601f83011261293f57600080fd5b81358181111561294e57600080fd5b86602082850101111561296057600080fd5b60209290920196919550909350505050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f191681016001600160401b03811182821017156129b0576129b0612972565b604052919050565b60006001600160401b038211156129d1576129d1612972565b5060051b60200190565b600060208083850312156129ee57600080fd5b82356001600160401b03811115612a0457600080fd5b8301601f81018513612a1557600080fd5b8035612a28612a23826129b8565b612988565b81815260059190911b82018301908381019087831115612a4757600080fd5b928401925b82841015612a6557833582529284019290840190612a4c565b979650505050505050565b6020808252825182820181905260009190848201906040850190845b8181101561112157612ac783855180516001600160a01b031682526020808201516001600160401b0316908301526040908101511515910152565b9284019260609290920191600101612a8c565b600060208284031215612aec57600080fd5b813561ffff8116811461134f57600080fd5b600060208284031215612b1057600080fd5b61134f826127ee565b6020808252825182820181905260009190848201906040850190845b8181101561112157835183529284019291840191600101612b35565b600080600060608486031215612b6657600080fd5b612b6f846127ee565b95602085013595506040909401359392505050565b60008060408385031215612b9757600080fd5b612ba0836127ee565b915060208301358015158114612bb557600080fd5b809150509250929050565b60008060008060808587031215612bd657600080fd5b612bdf856127ee565b93506020612bee8187016127ee565b93506040860135925060608601356001600160401b0380821115612c1157600080fd5b818801915088601f830112612c2557600080fd5b813581811115612c3757612c37612972565b612c49601f8201601f19168501612988565b91508082528984828501011115612c5f57600080fd5b808484018584013760008482840101525080935050505092959194509250565b81516001600160a01b031681526020808301516001600160401b0316908201526040808301511515908201526060810161090a565b60006020808385031215612cc757600080fd5b82356001600160401b03811115612cdd57600080fd5b8301601f81018513612cee57600080fd5b8035612cfc612a23826129b8565b81815260059190911b82018301908381019087831115612d1b57600080fd5b928401925b82841015612a6557612d31846127ee565b82529284019290840190612d20565b60008060408385031215612d5357600080fd5b612d5c836127ee565b9150612d6a602084016127ee565b90509250929050565b600181811c90821680612d8757607f821691505b602082108103612da757634e487b7160e01b600052602260045260246000fd5b50919050565b60208082526029908201527f596f7572206d696e7420616d6f756e742073686f756c6420626520677265617460408201526806572207468616e20360bc1b606082015260800190565b60208082526029908201527f596f7520776f756c642065786365656420746865206d617820737570706c79206040820152686f6620746f6b656e7360b81b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b6000816000190483118215151615612eba57612eba612e8a565b500290565b8054600090600181811c9080831680612ed957607f831692505b60208084108203612efa57634e487b7160e01b600052602260045260246000fd5b818015612f0e5760018114612f1f57612f4c565b60ff19861689528489019650612f4c565b60008881526020902060005b86811015612f445781548b820152908501908301612f2b565b505084890196505b50505050505092915050565b6000612f648286612ebf565b8451612f7481836020890161276a565b612a6581830186612ebf565b6000612f8c8285612ebf565b681c1c995c995d99585b60ba1b8152612fa86009820185612ebf565b95945050505050565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090612fe490830184612796565b9695505050505050565b60006020828403121561300057600080fd5b815161134f81612737565b60006001820161301d5761301d612e8a565b5060010190565b634e487b7160e01b600052601260045260246000fd5b60008261304957613049613024565b500490565b60008282101561306057613060612e8a565b500390565b60008261307457613074613024565b500690565b6000821982111561308c5761308c612e8a565b50019056fea264697066735822122058d98de86492483c9c93a29800608911a8aaf4af9a95434f1652afd32d707f6864736f6c634300080d003300000000000000000000000000000000000000000000000000000000000000c00000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000014000000000000000000000000000000000000000000000000000000000000001a02541d652c83174ffc06e5940ce60763aaf4a794d34cd8b6fb96f8adde96364e000000000000000000000000000000000000000000000000000000000000001e0000000000000000000000000000000000000000000000000000000000000001353746172647573742047656e65726174696f6e00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000653545244535400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000036697066733a2f2f516d5035763172394d314c71436a75374d33636f62526a55736d384735666679516341647a43766176545a5145612f0000000000000000000000000000000000000000000000000000000000000000000000000000000000052e6a736f6e0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001000000000000000000000000e5012a95963f6b98408b58f199413df1d84e25a8

Deployed Bytecode

0x6080604052600436106102c95760003560e01c80637dc4297511610175578063c23dc68f116100dc578063d547cfb711610095578063e985e9c51161006f578063e985e9c51461084b578063efd0cbf91461086b578063f2fde38b1461087e578063fe1e30231461089e57600080fd5b8063d547cfb714610816578063dcb7aa7514610421578063dd300e611461082b57600080fd5b8063c23dc68f14610767578063c271f03914610794578063c4ae3168146107ae578063c6fc0a98146107c3578063c87b56dd146107e3578063cc83e4551461080357600080fd5b8063a0b2d57f1161012e578063a0b2d57f146106a6578063a22cb465146106c6578063a7b8ab91146106e6578063b88d4fde14610707578063ba70c51514610727578063c204642c1461074757600080fd5b80637dc42975146105f65780638462151c146106115780638d4aa9a21461063e5780638da5cb5b1461065357806395d89b411461067157806399a2557a1461068657600080fd5b806342842e0e116102345780635d8c2efd116101ed57806370a08231116101c757806370a0823114610581578063715018a6146105a15780637ae70879146105b65780637cb64759146105d657600080fd5b80635d8c2efd146105215780636352211e146105415780636bf4fbd71461056157600080fd5b806342842e0e1461045f57806344a0d68a1461047f5780635305e3651461049f57806354214f69146104be578063571b7aac146104df5780635bbb2177146104f457600080fd5b806318160ddd1161028657806318160ddd146103b657806323b872dd146103cb5780632eb4a7ab146103eb57806330176e131461040157806330d370e81461042157806332cb6b0c1461044957600080fd5b806301ffc9a7146102ce57806306fdde0314610303578063081812fc14610325578063095ea7b31461035d5780630e2eb1f61461037f57806313faede614610392575b600080fd5b3480156102da57600080fd5b506102ee6102e936600461274d565b6108be565b60405190151581526020015b60405180910390f35b34801561030f57600080fd5b50610318610910565b6040516102fa91906127c2565b34801561033157600080fd5b506103456103403660046127d5565b6109a2565b6040516001600160a01b0390911681526020016102fa565b34801561036957600080fd5b5061037d610378366004612805565b6109e6565b005b61037d61038d36600461287a565b610ab8565b34801561039e57600080fd5b506103a8600e5481565b6040519081526020016102fa565b3480156103c257600080fd5b506103a8610cc0565b3480156103d757600080fd5b5061037d6103e63660046128c5565b610cce565b3480156103f757600080fd5b506103a8600c5481565b34801561040d57600080fd5b5061037d61041c366004612901565b610cd9565b34801561042d57600080fd5b50610436600781565b60405161ffff90911681526020016102fa565b34801561045557600080fd5b506103a8611e6181565b34801561046b57600080fd5b5061037d61047a3660046128c5565b610d0f565b34801561048b57600080fd5b5061037d61049a3660046127d5565b610d2a565b3480156104ab57600080fd5b50600f546102ee90610100900460ff1681565b3480156104ca57600080fd5b50600f546102ee906301000000900460ff1681565b3480156104eb57600080fd5b50610318610d59565b34801561050057600080fd5b5061051461050f3660046129db565b610de7565b6040516102fa9190612a70565b34801561052d57600080fd5b5061037d61053c366004612901565b610ead565b34801561054d57600080fd5b5061034561055c3660046127d5565b610ef6565b34801561056d57600080fd5b5061037d61057c366004612ada565b610f01565b34801561058d57600080fd5b506103a861059c366004612afe565b610f43565b3480156105ad57600080fd5b5061037d610f91565b3480156105c257600080fd5b5061037d6105d1366004612901565b610fc7565b3480156105e257600080fd5b5061037d6105f13660046127d5565b610ffd565b34801561060257600080fd5b50600d546104369061ffff1681565b34801561061d57600080fd5b5061063161062c366004612afe565b61102c565b6040516102fa9190612b19565b34801561064a57600080fd5b5061037d61112d565b34801561065f57600080fd5b506008546001600160a01b0316610345565b34801561067d57600080fd5b506103186111c0565b34801561069257600080fd5b506106316106a1366004612b51565b6111cf565b3480156106b257600080fd5b50600954610345906001600160a01b031681565b3480156106d257600080fd5b5061037d6106e1366004612b84565b611356565b3480156106f257600080fd5b50600d546104369062010000900461ffff1681565b34801561071357600080fd5b5061037d610722366004612bc0565b6113eb565b34801561073357600080fd5b50600f546102ee9062010000900460ff1681565b34801561075357600080fd5b5061037d61076236600461287a565b611435565b34801561077357600080fd5b506107876107823660046127d5565b611567565b6040516102fa9190612c7f565b3480156107a057600080fd5b50600f546102ee9060ff1681565b3480156107ba57600080fd5b5061037d6115dc565b3480156107cf57600080fd5b5061037d6107de366004612cb4565b611614565b3480156107ef57600080fd5b506103186107fe3660046127d5565b611682565b61037d61081136600461287a565b6117ad565b34801561082257600080fd5b50610318611983565b34801561083757600080fd5b5061037d610846366004612ada565b611990565b34801561085757600080fd5b506102ee610866366004612d40565b6119da565b61037d6108793660046127d5565b611a08565b34801561088a57600080fd5b5061037d610899366004612afe565b611cd5565b3480156108aa57600080fd5b5061037d6108b93660046127d5565b611d70565b60006301ffc9a760e01b6001600160e01b0319831614806108ef57506380ac58cd60e01b6001600160e01b03198316145b8061090a5750635b5e139f60e01b6001600160e01b03198316145b92915050565b60606002805461091f90612d73565b80601f016020809104026020016040519081016040528092919081815260200182805461094b90612d73565b80156109985780601f1061096d57610100808354040283529160200191610998565b820191906000526020600020905b81548152906001019060200180831161097b57829003601f168201915b5050505050905090565b60006109ad82611df7565b6109ca576040516333d1c03960e21b815260040160405180910390fd5b506000908152600660205260409020546001600160a01b031690565b60006109f182611e2c565b9050806001600160a01b0316836001600160a01b031603610a255760405163250fdee360e21b815260040160405180910390fd5b336001600160a01b03821614610a5c57610a3f81336119da565b610a5c576040516367d9dca160e11b815260040160405180910390fd5b60008281526006602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b600f5460ff161515600114610b0c5760405162461bcd60e51b81526020600482015260156024820152742a34329039ba30b93634b9ba103737ba1037b832b760591b60448201526064015b60405180910390fd5b610b51610b1833611e9b565b848480806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250611eda92505050565b610b8d5760405162461bcd60e51b815260206004820152600d60248201526c24b73b30b634b210383937b7b360991b6044820152606401610b03565b60008111610bad5760405162461bcd60e51b8152600401610b0390612dad565b3360009081526010602052604090205460079082011115610c2b5760405162461bcd60e51b815260206004820152603260248201527f596f7572206d696e7420616d6f756e74206578636565647320746865206d6178604482015271081b5a5b9d081c195c881cdd185c9b1a5cdd60721b6064820152608401610b03565b611e6181610c37610cc0565b011115610c565760405162461bcd60e51b8152600401610b0390612df6565b80600e54023414610c9c5760405162461bcd60e51b815260206004820152601060248201526f496e7375666669656e742066756e647360801b6044820152606401610b03565b336000818152601060205260409020805483019055610cbb9082611ee9565b505050565b600154600054036000190190565b610cbb838383611ef3565b6008546001600160a01b03163314610d035760405162461bcd60e51b8152600401610b0390612e3f565b610cbb600b838361269e565b610cbb838383604051806020016040528060008152506113eb565b6008546001600160a01b03163314610d545760405162461bcd60e51b8152600401610b0390612e3f565b600e55565b600a8054610d6690612d73565b80601f0160208091040260200160405190810160405280929190818152602001828054610d9290612d73565b8015610ddf5780601f10610db457610100808354040283529160200191610ddf565b820191906000526020600020905b815481529060010190602001808311610dc257829003601f168201915b505050505081565b80516060906000816001600160401b03811115610e0657610e06612972565b604051908082528060200260200182016040528015610e5157816020015b6040805160608101825260008082526020808301829052928201528252600019909201910181610e245790505b50905060005b828114610ea557610e80858281518110610e7357610e73612e74565b6020026020010151611567565b828281518110610e9257610e92612e74565b6020908102919091010152600101610e57565b509392505050565b6008546001600160a01b03163314610ed75760405162461bcd60e51b8152600401610b0390612e3f565b600f805463ff00000019166301000000179055610cbb600b838361269e565b600061090a82611e2c565b6008546001600160a01b03163314610f2b5760405162461bcd60e51b8152600401610b0390612e3f565b600d805461ffff191661ffff92909216919091179055565b60006001600160a01b038216610f6c576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b03166000908152600560205260409020546001600160401b031690565b6008546001600160a01b03163314610fbb5760405162461bcd60e51b8152600401610b0390612e3f565b610fc5600061209a565b565b6008546001600160a01b03163314610ff15760405162461bcd60e51b8152600401610b0390612e3f565b610cbb600a838361269e565b6008546001600160a01b031633146110275760405162461bcd60e51b8152600401610b0390612e3f565b600c55565b6060600080600061103c85610f43565b90506000816001600160401b0381111561105857611058612972565b604051908082528060200260200182016040528015611081578160200160208202803683370190505b5090506110a7604080516060810182526000808252602082018190529181019190915290565b60015b838614611121576110ba816120ec565b915081604001516111195781516001600160a01b0316156110da57815194505b876001600160a01b0316856001600160a01b031603611119578083878060010198508151811061110c5761110c612e74565b6020026020010181815250505b6001016110aa565b50909695505050505050565b6008546001600160a01b031633146111575760405162461bcd60e51b8152600401610b0390612e3f565b474781111561116557600080fd5b60095461117b906001600160a01b031682612121565b6009546040518281526001600160a01b03909116907f884edad9ce6fa2440d8a54cc123490eb96d2768479d49ff9c7366125a94243649060200160405180910390a250565b60606003805461091f90612d73565b60608183106111f157604051631960ccad60e11b815260040160405180910390fd5b6000806111fd60005490565b9050600185101561120d57600194505b80841115611219578093505b600061122487610f43565b905084861015611243578585038181101561123d578091505b50611247565b5060005b6000816001600160401b0381111561126157611261612972565b60405190808252806020026020018201604052801561128a578160200160208202803683370190505b509050816000036112a057935061134f92505050565b60006112ab88611567565b9050600081604001516112bc575080515b885b8881141580156112ce5750848714155b15611343576112dc816120ec565b9250826040015161133b5782516001600160a01b0316156112fc57825191505b8a6001600160a01b0316826001600160a01b03160361133b578084888060010199508151811061132e5761132e612e74565b6020026020010181815250505b6001016112be565b50505092835250909150505b9392505050565b336001600160a01b0383160361137f5760405163b06307db60e01b815260040160405180910390fd5b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6113f6848484611ef3565b6001600160a01b0383163b1561142f576114128484848461223a565b61142f576040516368d2bf6b60e11b815260040160405180910390fd5b50505050565b6008546001600160a01b0316331461145f5760405162461bcd60e51b8152600401610b0390612e3f565b600061146b8284612ea0565b905060005b8381101561152d57600085858381811061148c5761148c612e74565b90506020020160208101906114a19190612afe565b9050611e616114ae610cc0565b86860201111561151a5760405162461bcd60e51b815260206004820152603160248201527f41697264726f7070696e672074686973206d616e7920776f756c642065786365604482015270656420746865206d617820737570706c7960781b6064820152608401610b03565b6115248185611ee9565b50600101611470565b506040518181527fe3095edaab269860b35776d6cecdf84b0a94fe5d61197fea1b6c9f8d75bf88df9060200160405180910390a150505050565b604080516060808201835260008083526020808401829052838501829052845192830185528183528201819052928101929092529060018310806115ad57506000548310155b156115b85792915050565b6115c1836120ec565b90508060400151156115d35792915050565b61134f83612326565b6008546001600160a01b031633146116065760405162461bcd60e51b8152600401610b0390612e3f565b600f805462ffffff19169055565b6008546001600160a01b0316331461163e5760405162461bcd60e51b8152600401610b0390612e3f565b8060008151811061165157611651612e74565b6020026020010151600960006101000a8154816001600160a01b0302191690836001600160a01b0316021790555050565b606061168d82611df7565b6116f35760405162461bcd60e51b815260206004820152603160248201527f4552433732314d657461646174613a2055524920717565727920666f722061206044820152703737b732bc34b9ba32b73a103a37b5b2b760791b6064820152608401610b03565b600f546301000000900460ff161515600103611768576000600b805461171890612d73565b905011611734576040518060200160405280600081525061090a565b600b61173f83612354565b600a60405160200161175393929190612f58565b60405160208183030381529060405292915050565b6000600b805461177790612d73565b905011611793576040518060200160405280600081525061090a565b600b600a604051602001611753929190612f80565b919050565b600f5460ff61010090910416151560011461180a5760405162461bcd60e51b815260206004820181905260248201527f54686520726573657276656c697374206d696e74206973206e6f74206f70656e6044820152606401610b03565b611816610b1833611e9b565b6118525760405162461bcd60e51b815260206004820152600d60248201526c24b73b30b634b210383937b7b360991b6044820152606401610b03565b600081116118725760405162461bcd60e51b8152600401610b0390612dad565b33600090815260116020526040902054600790820111156118f35760405162461bcd60e51b815260206004820152603560248201527f596f7572206d696e7420616d6f756e74206578636565647320746865206d6178604482015274081b5a5b9d081c195c881c995cd95c9d995b1a5cdd605a1b6064820152608401610b03565b611e61816118ff610cc0565b01111561191e5760405162461bcd60e51b8152600401610b0390612df6565b80600e540234146119645760405162461bcd60e51b815260206004820152601060248201526f496e7375666669656e742066756e647360801b6044820152606401610b03565b336000818152601160205260409020805483019055610cbb9082611ee9565b600b8054610d6690612d73565b6008546001600160a01b031633146119ba5760405162461bcd60e51b8152600401610b0390612e3f565b600d805461ffff909216620100000263ffff000019909216919091179055565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b336000908152600560205260409081902054600f54911c6001600160401b03169060ff1615611a6c5760405162461bcd60e51b815260206004820152601060248201526f29ba30b93634b9ba1034b99037b832b760811b6044820152606401610b03565b600f54610100900460ff1615611aba5760405162461bcd60e51b81526020600482015260136024820152722932b9b2b93b32b634b9ba1034b99037b832b760691b6044820152606401610b03565b600f5462010000900460ff161515600114611b175760405162461bcd60e51b815260206004820152601760248201527f5075626c69632073616c65206973206e6f74206f70656e0000000000000000006044820152606401610b03565b60008211611b375760405162461bcd60e51b8152600401610b0390612dad565b600d5461ffff16821115611bab5760405162461bcd60e51b815260206004820152603560248201527f596f7572206d696e7420616d6f756e74206578636565647320746865206d6178604482015274206d696e7420706572207075626c69632073616c6560581b6064820152608401610b03565b611e6182611bb7610cc0565b011115611bfb5760405162461bcd60e51b815260206004820152601260248201527145786365656473204d617820537570706c7960701b6044820152606401610b03565b600d5462010000900461ffff168282011115611c7f5760405162461bcd60e51b815260206004820152603a60248201527f536f7272792c20796f752063616e74206d696e74206d6f72652c20697420657860448201527f636565647320746865207065722077616c6c657420746f74616c0000000000006064820152608401610b03565b81600e54023414611cc75760405162461bcd60e51b8152602060048201526012602482015271496e73756666696369656e742066756e647360701b6044820152606401610b03565b611cd13383611ee9565b5050565b6008546001600160a01b03163314611cff5760405162461bcd60e51b8152600401610b0390612e3f565b6001600160a01b038116611d645760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610b03565b611d6d8161209a565b50565b6008546001600160a01b03163314611d9a5760405162461bcd60e51b8152600401610b0390612e3f565b80600103611db257600f805460ff1916600117905550565b80600203611dcc57600f805461ffff191661010017905550565b80600303611de857600f805462ffff0019166201000017905550565b600f805462ff00001916905550565b600081600111158015611e0b575060005482105b801561090a575050600090815260046020526040902054600160e01b161590565b60008180600111611e8257600054811015611e825760008181526004602052604081205490600160e01b82169003611e80575b8060000361134f575060001901600081815260046020526040902054611e5f565b505b604051636f96cda160e11b815260040160405180910390fd5b6040516bffffffffffffffffffffffff19606083901b166020820152600090603401604051602081830303815290604052805190602001209050919050565b600061134f82600c5485612454565b611cd1828261246a565b6000611efe82611e2c565b9050836001600160a01b0316816001600160a01b031614611f315760405162a1148160e81b815260040160405180910390fd5b6000336001600160a01b0386161480611f4f5750611f4f85336119da565b80611f6a575033611f5f846109a2565b6001600160a01b0316145b905080611f8a57604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b038416611fb157604051633a954ecd60e21b815260040160405180910390fd5b600083815260066020908152604080832080546001600160a01b03191690556001600160a01b038881168452600583528184208054600019019055871683528083208054600101905585835260049091528120600160e11b4260a01b8717811790915583169003612052576001830160008181526004602052604081205490036120505760005481146120505760008181526004602052604090208390555b505b82846001600160a01b0316866001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45050505050565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b604080516060810182526000808252602082018190529181019190915260008281526004602052604090205461090a90612484565b804710156121715760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e63650000006044820152606401610b03565b6000826001600160a01b03168260405160006040518083038185875af1925050503d80600081146121be576040519150601f19603f3d011682016040523d82523d6000602084013e6121c3565b606091505b5050905080610cbb5760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d617920686176652072657665727465640000000000006064820152608401610b03565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a029061226f903390899088908890600401612fb1565b6020604051808303816000875af19250505080156122aa575060408051601f3d908101601f191682019092526122a791810190612fee565b60015b612308573d8080156122d8576040519150601f19603f3d011682016040523d82523d6000602084013e6122dd565b606091505b508051600003612300576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490505b949350505050565b604080516060810182526000808252602082018190529181019190915261090a61234f83611e2c565b612484565b60608160000361237b5750506040805180820190915260018152600360fc1b602082015290565b8160005b81156123a5578061238f8161300b565b915061239e9050600a8361303a565b915061237f565b6000816001600160401b038111156123bf576123bf612972565b6040519080825280601f01601f1916602001820160405280156123e9576020820181803683370190505b5090505b841561231e576123fe60018361304e565b915061240b600a86613065565b612416906030613079565b60f81b81838151811061242b5761242b612e74565b60200101906001600160f81b031916908160001a90535061244d600a8661303a565b94506123ed565b60008261246185846124be565b14949350505050565b611cd182826040518060200160405280600081525061252a565b604080516060810182526001600160a01b038316815260a083901c6001600160401b03166020820152600160e01b90921615159082015290565b600081815b8451811015610ea55760008582815181106124e0576124e0612e74565b602002602001015190508083116125065760008381526020829052604090209250612517565b600081815260208490526040902092505b50806125228161300b565b9150506124c3565b6000546001600160a01b03841661255357604051622e076360e81b815260040160405180910390fd5b826000036125745760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b03841660008181526005602090815260408083208054680100000000000000018902019055848352600490915290204260a01b86176001861460e11b1790558190818501903b15612649575b60405182906001600160a01b038816906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a4612612600087848060010195508761223a565b61262f576040516368d2bf6b60e11b815260040160405180910390fd5b8082106125c757826000541461264457600080fd5b61268e565b5b6040516001830192906001600160a01b038816906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a480821061264a575b50600090815561142f9085838684565b8280546126aa90612d73565b90600052602060002090601f0160209004810192826126cc5760008555612712565b82601f106126e55782800160ff19823516178555612712565b82800160010185558215612712579182015b828111156127125782358255916020019190600101906126f7565b5061271e929150612722565b5090565b5b8082111561271e5760008155600101612723565b6001600160e01b031981168114611d6d57600080fd5b60006020828403121561275f57600080fd5b813561134f81612737565b60005b8381101561278557818101518382015260200161276d565b8381111561142f5750506000910152565b600081518084526127ae81602086016020860161276a565b601f01601f19169290920160200192915050565b60208152600061134f6020830184612796565b6000602082840312156127e757600080fd5b5035919050565b80356001600160a01b03811681146117a857600080fd5b6000806040838503121561281857600080fd5b612821836127ee565b946020939093013593505050565b60008083601f84011261284157600080fd5b5081356001600160401b0381111561285857600080fd5b6020830191508360208260051b850101111561287357600080fd5b9250929050565b60008060006040848603121561288f57600080fd5b83356001600160401b038111156128a557600080fd5b6128b18682870161282f565b909790965060209590950135949350505050565b6000806000606084860312156128da57600080fd5b6128e3846127ee565b92506128f1602085016127ee565b9150604084013590509250925092565b6000806020838503121561291457600080fd5b82356001600160401b038082111561292b57600080fd5b818501915085601f83011261293f57600080fd5b81358181111561294e57600080fd5b86602082850101111561296057600080fd5b60209290920196919550909350505050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f191681016001600160401b03811182821017156129b0576129b0612972565b604052919050565b60006001600160401b038211156129d1576129d1612972565b5060051b60200190565b600060208083850312156129ee57600080fd5b82356001600160401b03811115612a0457600080fd5b8301601f81018513612a1557600080fd5b8035612a28612a23826129b8565b612988565b81815260059190911b82018301908381019087831115612a4757600080fd5b928401925b82841015612a6557833582529284019290840190612a4c565b979650505050505050565b6020808252825182820181905260009190848201906040850190845b8181101561112157612ac783855180516001600160a01b031682526020808201516001600160401b0316908301526040908101511515910152565b9284019260609290920191600101612a8c565b600060208284031215612aec57600080fd5b813561ffff8116811461134f57600080fd5b600060208284031215612b1057600080fd5b61134f826127ee565b6020808252825182820181905260009190848201906040850190845b8181101561112157835183529284019291840191600101612b35565b600080600060608486031215612b6657600080fd5b612b6f846127ee565b95602085013595506040909401359392505050565b60008060408385031215612b9757600080fd5b612ba0836127ee565b915060208301358015158114612bb557600080fd5b809150509250929050565b60008060008060808587031215612bd657600080fd5b612bdf856127ee565b93506020612bee8187016127ee565b93506040860135925060608601356001600160401b0380821115612c1157600080fd5b818801915088601f830112612c2557600080fd5b813581811115612c3757612c37612972565b612c49601f8201601f19168501612988565b91508082528984828501011115612c5f57600080fd5b808484018584013760008482840101525080935050505092959194509250565b81516001600160a01b031681526020808301516001600160401b0316908201526040808301511515908201526060810161090a565b60006020808385031215612cc757600080fd5b82356001600160401b03811115612cdd57600080fd5b8301601f81018513612cee57600080fd5b8035612cfc612a23826129b8565b81815260059190911b82018301908381019087831115612d1b57600080fd5b928401925b82841015612a6557612d31846127ee565b82529284019290840190612d20565b60008060408385031215612d5357600080fd5b612d5c836127ee565b9150612d6a602084016127ee565b90509250929050565b600181811c90821680612d8757607f821691505b602082108103612da757634e487b7160e01b600052602260045260246000fd5b50919050565b60208082526029908201527f596f7572206d696e7420616d6f756e742073686f756c6420626520677265617460408201526806572207468616e20360bc1b606082015260800190565b60208082526029908201527f596f7520776f756c642065786365656420746865206d617820737570706c79206040820152686f6620746f6b656e7360b81b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b6000816000190483118215151615612eba57612eba612e8a565b500290565b8054600090600181811c9080831680612ed957607f831692505b60208084108203612efa57634e487b7160e01b600052602260045260246000fd5b818015612f0e5760018114612f1f57612f4c565b60ff19861689528489019650612f4c565b60008881526020902060005b86811015612f445781548b820152908501908301612f2b565b505084890196505b50505050505092915050565b6000612f648286612ebf565b8451612f7481836020890161276a565b612a6581830186612ebf565b6000612f8c8285612ebf565b681c1c995c995d99585b60ba1b8152612fa86009820185612ebf565b95945050505050565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090612fe490830184612796565b9695505050505050565b60006020828403121561300057600080fd5b815161134f81612737565b60006001820161301d5761301d612e8a565b5060010190565b634e487b7160e01b600052601260045260246000fd5b60008261304957613049613024565b500490565b60008282101561306057613060612e8a565b500390565b60008261307457613074613024565b500690565b6000821982111561308c5761308c612e8a565b50019056fea264697066735822122058d98de86492483c9c93a29800608911a8aaf4af9a95434f1652afd32d707f6864736f6c634300080d0033

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

00000000000000000000000000000000000000000000000000000000000000c00000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000014000000000000000000000000000000000000000000000000000000000000001a02541d652c83174ffc06e5940ce60763aaf4a794d34cd8b6fb96f8adde96364e000000000000000000000000000000000000000000000000000000000000001e0000000000000000000000000000000000000000000000000000000000000001353746172647573742047656e65726174696f6e00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000653545244535400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000036697066733a2f2f516d5035763172394d314c71436a75374d33636f62526a55736d384735666679516341647a43766176545a5145612f0000000000000000000000000000000000000000000000000000000000000000000000000000000000052e6a736f6e0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001000000000000000000000000e5012a95963f6b98408b58f199413df1d84e25a8

-----Decoded View---------------
Arg [0] : _name (string): Stardust Generation
Arg [1] : _symbol (string): STRDST
Arg [2] : _initBaseTokenURI (string): ipfs://QmP5v1r9M1LqCju7M3cobRjUsm8G5ffyQcAdzCvavTZQEa/
Arg [3] : _metaSuffix (string): .json
Arg [4] : _merkleRoot (bytes32): 0x2541d652c83174ffc06e5940ce60763aaf4a794d34cd8b6fb96f8adde96364e0
Arg [5] : _withdrawAddress (address[]): 0xe5012a95963f6B98408B58f199413DF1D84E25a8

-----Encoded View---------------
17 Constructor Arguments found :
Arg [0] : 00000000000000000000000000000000000000000000000000000000000000c0
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000100
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000140
Arg [3] : 00000000000000000000000000000000000000000000000000000000000001a0
Arg [4] : 2541d652c83174ffc06e5940ce60763aaf4a794d34cd8b6fb96f8adde96364e0
Arg [5] : 00000000000000000000000000000000000000000000000000000000000001e0
Arg [6] : 0000000000000000000000000000000000000000000000000000000000000013
Arg [7] : 53746172647573742047656e65726174696f6e00000000000000000000000000
Arg [8] : 0000000000000000000000000000000000000000000000000000000000000006
Arg [9] : 5354524453540000000000000000000000000000000000000000000000000000
Arg [10] : 0000000000000000000000000000000000000000000000000000000000000036
Arg [11] : 697066733a2f2f516d5035763172394d314c71436a75374d33636f62526a5573
Arg [12] : 6d384735666679516341647a43766176545a5145612f00000000000000000000
Arg [13] : 0000000000000000000000000000000000000000000000000000000000000005
Arg [14] : 2e6a736f6e000000000000000000000000000000000000000000000000000000
Arg [15] : 0000000000000000000000000000000000000000000000000000000000000001
Arg [16] : 000000000000000000000000e5012a95963f6b98408b58f199413df1d84e25a8


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.