ETH Price: $3,396.98 (+2.44%)

Token

WhosjiLabs (WhosjiLabs)
 

Overview

Max Total Supply

5,555 WhosjiLabs

Holders

1,585

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A

Other Info

Filtered by Token Holder
ayyyy.eth
Balance
2 WhosjiLabs
0x6B0C1Ed56eB088FdD536a08Df4CB564F9bc78A03
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:
WhosJi

Compiler Version
v0.8.17+commit.8df45f5f

Optimization Enabled:
No with 200 runs

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

import {ERC721A} from "erc721a/contracts/ERC721A.sol";
import {Owned} from "solmate/src/auth/Owned.sol";
import {ReentrancyGuard} from "solmate/src/utils/ReentrancyGuard.sol";
import {SafeTransferLib} from "solady/src/utils/SafeTransferLib.sol";
import {LibBitmap} from "solady/src/utils/LibBitmap.sol";
import {MerkleProofLib} from "solady/src/utils/MerkleProofLib.sol";

contract WhosJi is ERC721A, Owned(msg.sender), ReentrancyGuard {
    /*//////////////////////////////////////////////////////////////
                        VARIABLES & MAPPINGS
    //////////////////////////////////////////////////////////////*/

    //Used to control paused status for different functions on the contract.
    using LibBitmap for LibBitmap.Bitmap;

    LibBitmap.Bitmap bitmap;

    //General purpose variables for different functions on the contract.
    uint256 public constant PRICE = 0.033 ether;
    uint256 public constant MAX_MINT = 3;
    uint256 public constant MAX_SUPPLY = 5555;

    uint256 private constant _MAX_MINT_OG = 1;
    uint256 private constant _AVAILABLE_WHITELIST = 2777;
    uint256 private constant _PAUSE_PUBLIC_INDEX = 1;
    uint256 private constant _PAUSE_OG_INDEX = 2;
    uint256 private constant _PAUSE_WHITELIST_INDEX = 3;
    uint256 private constant _TOGGLE_URI_INDEX = 4;
    uint64 private constant _SET_AUX = 1;
    string private _tokenURI;
    string private _unrevealedURI;

    //Merkle root for Whitelist mints.
    bytes32 public immutable merkleRootWL;
    //Merkle root for OG mints
    bytes32 public immutable merkleRootOG;

    /*//////////////////////////////////////////////////////////////
                            MINT FUNCTIONS
    //////////////////////////////////////////////////////////////*/

    function mintPublic(uint256 amount)
        external
        payable
        nonReentrant
        callerIsUser
        requireMintablePublic(MAX_MINT, amount, msg.sender)
        requireExactPrice(amount)
    {
        _mint(msg.sender, amount);
    }

    //One time claim for OG addresses
    //No need to check for exact price because the merkleTree already checks this.
    function mintOG(bytes32[] calldata proof)
        external
        payable
        nonReentrant
        requireProof(merkleRootOG, proof, msg.sender, _MAX_MINT_OG)
        requireMintableOji(msg.sender, _MAX_MINT_OG)
        requireExactPrice(_MAX_MINT_OG)
    {
        _mint(msg.sender, _MAX_MINT_OG);
    }

    //One time claim for Whitelisted addresses
    function mintWhitelist(uint256 amount, bytes32[] calldata proof)
        external
        payable
        nonReentrant
        requireProof(merkleRootWL, proof, msg.sender, amount)
        requireMintableWhitelist(msg.sender, amount)
    {
        _setAux(msg.sender, _SET_AUX);
        _mint(msg.sender, amount);
    }

    /*//////////////////////////////////////////////////////////////
                            HELPER FUNCTIONS
    //////////////////////////////////////////////////////////////*/

    //Sorry gnosis users.
    modifier callerIsUser() {
        require(msg.sender == tx.origin, "NO_CONTRACTS");
        _;
    }

    modifier requireProof(
        bytes32 root,
        bytes32[] calldata proof,
        address addy,
        uint256 amount
    ) {
        //Validades proof from expected leaf and root.
        require(
            MerkleProofLib.verify(
                proof,
                root,
                keccak256(abi.encodePacked(addy, amount))
            ),
            "INVALID_PROOF"
        );
        _;
    }

    //Max mint check and max public supply check.
    modifier requireMintablePublic(
        uint256 maxMint,
        uint256 quantity,
        address addy
    ) {
        unchecked {
            require(LibBitmap.get(bitmap, _PAUSE_PUBLIC_INDEX), "PUBLIC_PAUSE");
            require(
                quantity + _numberMinted(addy) <= maxMint,
                "MAX_MINT_PUBLIC"
            );
            require(
                _totalMinted() + quantity + _AVAILABLE_WHITELIST <= MAX_SUPPLY,
                "MAX_SUPPLY_PUBLIC"
            );
        }
        _;
    }

    //Max public supply check. No need to check for max mint since if validated on the mintOG function.
    modifier requireMintableOji(address addy, uint256 quantity) {
        unchecked {
            require(LibBitmap.get(bitmap, _PAUSE_OG_INDEX), "OG_PAUSE");
            require(
                quantity + _numberMinted(addy) <= _MAX_MINT_OG,
                "MAX_MINT_OG"
            );
            require(
                _totalMinted() + quantity + _AVAILABLE_WHITELIST <= MAX_SUPPLY,
                "MAX_SUPPLY_OG"
            );
        }
        _;
    }

    //Max supply check. No need to check for max mint since if validated on the mintWhitelist function.
    modifier requireMintableWhitelist(address addy, uint256 amount) {
        //Uses the getAux provided by ERC721A to check if the address has minted or not.
        require(_getAux(addy) == 0, "MAX_MINT");
        require(LibBitmap.get(bitmap, _PAUSE_WHITELIST_INDEX), "WL_PAUSED");
        unchecked {
            require(_totalMinted() + amount <= MAX_SUPPLY, "MAX_SUPPLY");
        }
        _;
    }

    //msg.value must match the calculated amount.
    modifier requireExactPrice(uint256 quantity) {
        require(msg.value == PRICE * quantity, "INVALID_PRICE");
        _;
    }

    //Helper function to see the amount available for public.
    function availableMintsForPublic() external view returns (uint256) {
        return MAX_SUPPLY - (_totalMinted() + _AVAILABLE_WHITELIST);
    }

    //Helper function to see the different paused states.
    function getPausedStatus(uint256 pauseId) external view returns (bool) {
        return LibBitmap.get(bitmap, pauseId);
    }

    /*//////////////////////////////////////////////////////////////
                            ADMIN FUNCTIONS
    //////////////////////////////////////////////////////////////*/

    function withdraw() external payable onlyOwner {
        SafeTransferLib.safeTransferETH(msg.sender, address(this).balance);
    }

    //Index 1 - Controls public mint,
    //Index 2 - Controls og mint,
    //Index 3 - Controls whitelist mint,
    //Index 4 - Controls metadata reveal,
    function tooglePauseState(uint256 index) external onlyOwner {
        LibBitmap.toggle(bitmap, index);
    }

    //Gated at max supply.
    function adminMint(uint256 amount) external payable onlyOwner {
        unchecked {
            require(amount + _totalMinted() <= MAX_SUPPLY, "MAX_SUPPLY");
        }

        _mint(msg.sender, amount);
    }

    function setTokenURI(string calldata tokenURI_) external onlyOwner {
        _tokenURI = tokenURI_;
    }

    function setUnrevealedURI(string calldata unrevealedURI_)
        external
        onlyOwner
    {
        _unrevealedURI = unrevealedURI_;
    }

    /*//////////////////////////////////////////////////////////////
                        METADATA FUNCTIONS
    //////////////////////////////////////////////////////////////*/

    //Saves gas for first minter.
    function _startTokenId() internal view virtual override returns (uint256) {
        return 1;
    }

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

    function tokenURI(uint256 tokenId)
        public
        view
        override(ERC721A)
        returns (string memory)
    {
        require(_exists(tokenId), "URIQueryForNonexistentToken");

        if (!LibBitmap.get(bitmap, _TOGGLE_URI_INDEX)) {
            return _unrevealedURI;
        }

        return string.concat(_tokenURI, _toString(tokenId));
    }

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

    constructor(
        string memory unrevealedURI_,
        // Mint config:
        bytes32 _merkleRootWL,
        bytes32 _merkleRootOG
    ) ERC721A("WhosjiLabs", "WhosjiLabs") {
        _unrevealedURI = unrevealedURI_;
        merkleRootWL = _merkleRootWL;
        merkleRootOG = _merkleRootOG;
    }
}

File 2 of 8 : MerkleProofLib.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.4;

/// @notice Gas optimized verification of proof of inclusion for a leaf in a Merkle tree.
/// @author Solady (https://github.com/vectorized/solady/blob/main/src/utils/MerkleProofLib.sol)
/// @author Modified from Solmate (https://github.com/transmissions11/solmate/blob/main/src/utils/MerkleProofLib.sol)
/// @author Modified from OpenZeppelin (https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/utils/cryptography/MerkleProof.sol)
library MerkleProofLib {
    function verify(
        bytes32[] calldata proof,
        bytes32 root,
        bytes32 leaf
    ) internal pure returns (bool isValid) {
        assembly {
            if proof.length {
                // Left shift by 5 is equivalent to multiplying by 0x20.
                let end := add(proof.offset, shl(5, proof.length))
                // Initialize `offset` to the offset of `proof` in the calldata.
                let offset := proof.offset
                // Iterate over proof elements to compute root hash.
                // prettier-ignore
                for {} 1 {} {
                    // Slot of `leaf` in scratch space.
                    // If the condition is true: 0x20, otherwise: 0x00.
                    let scratch := shl(5, gt(leaf, calldataload(offset)))
                    // Store elements to hash contiguously in scratch space.
                    // Scratch space is 64 bytes (0x00 - 0x3f) and both elements are 32 bytes.
                    mstore(scratch, leaf)
                    mstore(xor(scratch, 0x20), calldataload(offset))
                    // Reuse `leaf` to store the hash to reduce stack operations.
                    leaf := keccak256(0x00, 0x40)
                    offset := add(offset, 0x20)
                    // prettier-ignore
                    if iszero(lt(offset, end)) { break }
                }
            }
            isValid := eq(leaf, root)
        }
    }

    function verifyMultiProof(
        bytes32[] calldata proof,
        bytes32 root,
        bytes32[] calldata leafs,
        bool[] calldata flags
    ) internal pure returns (bool isValid) {
        // Rebuilds the root by consuming and producing values on a queue.
        // The queue starts with the `leafs` array, and goes into a `hashes` array.
        // After the process, the last element on the queue is verified
        // to be equal to the `root`.
        //
        // The `flags` array denotes whether the sibling
        // should be popped from the queue (`flag == true`), or
        // should be popped from the `proof` (`flag == false`).
        assembly {
            // If the number of flags is correct.
            // prettier-ignore
            for {} eq(add(leafs.length, proof.length), add(flags.length, 1)) {} {

                // For the case where `proof.length + leafs.length == 1`.
                if iszero(flags.length) {
                    // `isValid = (proof.length == 1 ? proof[0] : leafs[0]) == root`.
                    isValid := eq(
                        calldataload(
                            xor(leafs.offset, mul(xor(proof.offset, leafs.offset), proof.length))
                        ),
                        root
                    )
                    break
                }

                // We can use the free memory space for the queue.
                // We don't need to allocate, since the queue is temporary.
                let hashesFront := mload(0x40)
                // Copy the leafs into the hashes.
                // Sometimes, a little memory expansion costs less than branching.
                // Should cost less, even with a high free memory offset of 0x7d00.
                // Left shift by 5 is equivalent to multiplying by 0x20.
                calldatacopy(hashesFront, leafs.offset, shl(5, leafs.length))
                // Compute the back of the hashes.
                let hashesBack := add(hashesFront, shl(5, leafs.length))
                // This is the end of the memory for the queue.
                let end := add(hashesBack, shl(5, flags.length))

                let flagsOffset := flags.offset
                let proofOffset := proof.offset

                // prettier-ignore
                for {} 1 {} {
                    // Pop from `hashes`.
                    let a := mload(hashesFront)
                    // Pop from `hashes`.
                    let b := mload(add(hashesFront, 0x20))
                    hashesFront := add(hashesFront, 0x40)

                    // If the flag is false, load the next proof,
                    // else, pops from the queue.
                    if iszero(calldataload(flagsOffset)) {
                        // Loads the next proof.
                        b := calldataload(proofOffset)
                        proofOffset := add(proofOffset, 0x20)
                        // Unpop from `hashes`.
                        hashesFront := sub(hashesFront, 0x20)
                    }
                    
                    // Advance to the next flag offset.
                    flagsOffset := add(flagsOffset, 0x20)

                    // Slot of `a` in scratch space.
                    // If the condition is true: 0x20, otherwise: 0x00.
                    let scratch := shl(5, gt(a, b))
                    // Hash the scratch space and push the result onto the queue.
                    mstore(scratch, a)
                    mstore(xor(scratch, 0x20), b)
                    mstore(hashesBack, keccak256(0x00, 0x40))
                    hashesBack := add(hashesBack, 0x20)
                    // prettier-ignore
                    if iszero(lt(hashesBack, end)) { break }
                }
                // Checks if the last value in the queue is same as the root.
                isValid := eq(mload(sub(hashesBack, 0x20)), root)
                break
            }
        }
    }
}

File 3 of 8 : LibBitmap.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.4;

/// @notice Efficient bitmap library for mapping integers to single bit booleans.
/// @author Solady (https://github.com/vectorized/solady/blob/main/src/utils/LibBitmap.sol)
/// @author Modified from Solmate (https://github.com/transmissions11/solmate/blob/main/src/utils/LibBitmap.sol)
library LibBitmap {
    struct Bitmap {
        mapping(uint256 => uint256) map;
    }

    function get(Bitmap storage bitmap, uint256 index) internal view returns (bool isSet) {
        // It is better to set `isSet` to either 0 or 1, than zero vs non-zero.
        // Both cost the same amount of gas, but the former allows the returned value
        // to be reused without cleaning the upper bits.
        uint256 b = (bitmap.map[index >> 8] >> (index & 0xff)) & 1;
        assembly {
            isSet := b
        }
    }

    function set(Bitmap storage bitmap, uint256 index) internal {
        bitmap.map[index >> 8] |= (1 << (index & 0xff));
    }

    function unset(Bitmap storage bitmap, uint256 index) internal {
        bitmap.map[index >> 8] &= ~(1 << (index & 0xff));
    }

    function toggle(Bitmap storage bitmap, uint256 index) internal returns (bool newIsSet) {
        assembly {
            mstore(0x00, shr(8, index))
            mstore(0x20, bitmap.slot)
            let storageSlot := keccak256(0x00, 0x40)
            let shift := and(index, 0xff)
            let storageValue := sload(storageSlot)

            let mask := shl(shift, 1)
            storageValue := xor(storageValue, mask)
            // It makes sense to return the `newIsSet`,
            // as it allow us to skip an additional warm `sload`,
            // and it costs minimal gas (about 15),
            // which may be optimized away if the returned value is unused.
            newIsSet := iszero(iszero(and(storageValue, mask)))
            sstore(storageSlot, storageValue)
        }
    }

    function setTo(
        Bitmap storage bitmap,
        uint256 index,
        bool shouldSet
    ) internal {
        assembly {
            mstore(0x20, bitmap.slot)
            mstore(0x00, shr(8, index))
            let storageSlot := keccak256(0x00, 0x40)
            let storageValue := sload(storageSlot)
            let shift := and(index, 0xff)

            sstore(
                storageSlot,
                // Unsets the bit at `shift` via `and`, then sets its new value via `or`.
                or(and(storageValue, not(shl(shift, 1))), shl(shift, iszero(iszero(shouldSet))))
            )
        }
    }
}

File 4 of 8 : SafeTransferLib.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.4;

/// @notice Safe ETH and ERC20 transfer library that gracefully handles missing return values.
/// @author Solady (https://github.com/vectorized/solady/blob/main/src/utils/SafeTransferLib.sol)
/// @author Modified from Solmate (https://github.com/transmissions11/solmate/blob/main/src/utils/SafeTransferLib.sol)
/// @dev Caution! This library won't check that a token has code, responsibility is delegated to the caller.
library SafeTransferLib {
    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/
    /*                       CUSTOM ERRORS                        */
    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/

    error ETHTransferFailed();

    error TransferFromFailed();

    error TransferFailed();

    error ApproveFailed();

    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/
    /*                       ETH OPERATIONS                       */
    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/

    function safeTransferETH(address to, uint256 amount) internal {
        assembly {
            // Transfer the ETH and check if it succeeded or not.
            if iszero(call(gas(), to, amount, 0, 0, 0, 0)) {
                // Store the function selector of `ETHTransferFailed()`.
                mstore(0x00, 0xb12d13eb)
                // Revert with (offset, size).
                revert(0x1c, 0x04)
            }
        }
    }

    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/
    /*                      ERC20 OPERATIONS                      */
    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/

    function safeTransferFrom(
        address token,
        address from,
        address to,
        uint256 amount
    ) internal {
        assembly {
            // We'll write our calldata to this slot below, but restore it later.
            let memPointer := mload(0x40)

            // Write the abi-encoded calldata into memory, beginning with the function selector.
            mstore(0x00, 0x23b872dd)
            mstore(0x20, from) // Append the "from" argument.
            mstore(0x40, to) // Append the "to" argument.
            mstore(0x60, amount) // Append the "amount" argument.

            if iszero(
                and(
                    // Set success to whether the call reverted, if not we check it either
                    // returned exactly 1 (can't just be non-zero data), or had no return data.
                    or(eq(mload(0x00), 1), iszero(returndatasize())),
                    // We use 0x64 because that's the total length of our calldata (0x04 + 0x20 * 3)
                    // Counterintuitively, this call() must be positioned after the or() in the
                    // surrounding and() because and() evaluates its arguments from right to left.
                    call(gas(), token, 0, 0x1c, 0x64, 0x00, 0x20)
                )
            ) {
                // Store the function selector of `TransferFromFailed()`.
                mstore(0x00, 0x7939f424)
                // Revert with (offset, size).
                revert(0x1c, 0x04)
            }

            mstore(0x60, 0) // Restore the zero slot to zero.
            mstore(0x40, memPointer) // Restore the memPointer.
        }
    }

    function safeTransfer(
        address token,
        address to,
        uint256 amount
    ) internal {
        assembly {
            // We'll write our calldata to this slot below, but restore it later.
            let memPointer := mload(0x40)

            // Write the abi-encoded calldata into memory, beginning with the function selector.
            mstore(0x00, 0xa9059cbb)
            mstore(0x20, to) // Append the "to" argument.
            mstore(0x40, amount) // Append the "amount" argument.

            if iszero(
                and(
                    // Set success to whether the call reverted, if not we check it either
                    // returned exactly 1 (can't just be non-zero data), or had no return data.
                    or(eq(mload(0x00), 1), iszero(returndatasize())),
                    // We use 0x44 because that's the total length of our calldata (0x04 + 0x20 * 2)
                    // Counterintuitively, this call() must be positioned after the or() in the
                    // surrounding and() because and() evaluates its arguments from right to left.
                    call(gas(), token, 0, 0x1c, 0x44, 0x00, 0x20)
                )
            ) {
                // Store the function selector of `TransferFailed()`.
                mstore(0x00, 0x90b8ec18)
                // Revert with (offset, size).
                revert(0x1c, 0x04)
            }

            mstore(0x40, memPointer) // Restore the memPointer.
        }
    }

    function safeApprove(
        address token,
        address to,
        uint256 amount
    ) internal {
        assembly {
            // We'll write our calldata to this slot below, but restore it later.
            let memPointer := mload(0x40)

            // Write the abi-encoded calldata into memory, beginning with the function selector.
            mstore(0x00, 0x095ea7b3)
            mstore(0x20, to) // Append the "to" argument.
            mstore(0x40, amount) // Append the "amount" argument.

            if iszero(
                and(
                    // Set success to whether the call reverted, if not we check it either
                    // returned exactly 1 (can't just be non-zero data), or had no return data.
                    or(eq(mload(0x00), 1), iszero(returndatasize())),
                    // We use 0x44 because that's the total length of our calldata (0x04 + 0x20 * 2)
                    // Counterintuitively, this call() must be positioned after the or() in the
                    // surrounding and() because and() evaluates its arguments from right to left.
                    call(gas(), token, 0, 0x1c, 0x44, 0x00, 0x20)
                )
            ) {
                // Store the function selector of `ApproveFailed()`.
                mstore(0x00, 0x3e3f8f73)
                // Revert with (offset, size).
                revert(0x1c, 0x04)
            }

            mstore(0x40, memPointer) // Restore the memPointer.
        }
    }
}

File 5 of 8 : ReentrancyGuard.sol
// SPDX-License-Identifier: AGPL-3.0-only
pragma solidity >=0.8.0;

/// @notice Gas optimized reentrancy protection for smart contracts.
/// @author Solmate (https://github.com/transmissions11/solmate/blob/main/src/utils/ReentrancyGuard.sol)
/// @author Modified from OpenZeppelin (https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/security/ReentrancyGuard.sol)
abstract contract ReentrancyGuard {
    uint256 private locked = 1;

    modifier nonReentrant() virtual {
        require(locked == 1, "REENTRANCY");

        locked = 2;

        _;

        locked = 1;
    }
}

File 6 of 8 : Owned.sol
// SPDX-License-Identifier: AGPL-3.0-only
pragma solidity >=0.8.0;

/// @notice Simple single owner authorization mixin.
/// @author Solmate (https://github.com/transmissions11/solmate/blob/main/src/auth/Owned.sol)
abstract contract Owned {
    /*//////////////////////////////////////////////////////////////
                                 EVENTS
    //////////////////////////////////////////////////////////////*/

    event OwnerUpdated(address indexed user, address indexed newOwner);

    /*//////////////////////////////////////////////////////////////
                            OWNERSHIP STORAGE
    //////////////////////////////////////////////////////////////*/

    address public owner;

    modifier onlyOwner() virtual {
        require(msg.sender == owner, "UNAUTHORIZED");

        _;
    }

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

    constructor(address _owner) {
        owner = _owner;

        emit OwnerUpdated(address(0), _owner);
    }

    /*//////////////////////////////////////////////////////////////
                             OWNERSHIP LOGIC
    //////////////////////////////////////////////////////////////*/

    function setOwner(address newOwner) public virtual onlyOwner {
        owner = newOwner;

        emit OwnerUpdated(msg.sender, newOwner);
    }
}

File 7 of 8 : ERC721A.sol
// SPDX-License-Identifier: MIT
// ERC721A Contracts v4.2.3
// Creator: Chiru Labs

pragma solidity ^0.8.4;

import './IERC721A.sol';

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

/**
 * @title ERC721A
 *
 * @dev Implementation of the [ERC721](https://eips.ethereum.org/EIPS/eip-721)
 * Non-Fungible Token Standard, including the Metadata extension.
 * Optimized for lower gas during batch mints.
 *
 * Token IDs are minted in sequential order (e.g. 0, 1, 2, 3, ...)
 * starting from `_startTokenId()`.
 *
 * Assumptions:
 *
 * - An owner cannot have more than 2**64 - 1 (max value of uint64) of supply.
 * - The maximum token ID cannot exceed 2**256 - 1 (max value of uint256).
 */
contract ERC721A is IERC721A {
    // Bypass for a `--via-ir` bug (https://github.com/chiru-labs/ERC721A/pull/364).
    struct TokenApprovalRef {
        address value;
    }

    // =============================================================
    //                           CONSTANTS
    // =============================================================

    // 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 bit position of `extraData` in packed ownership.
    uint256 private constant _BITPOS_EXTRA_DATA = 232;

    // Mask of all 256 bits in a packed ownership except the 24 bits for `extraData`.
    uint256 private constant _BITMASK_EXTRA_DATA_COMPLEMENT = (1 << 232) - 1;

    // The mask of the lower 160 bits for addresses.
    uint256 private constant _BITMASK_ADDRESS = (1 << 160) - 1;

    // The maximum `quantity` that can be minted with {_mintERC2309}.
    // This limit is to prevent overflows on the address data entries.
    // For a limit of 5000, a total of 3.689e15 calls to {_mintERC2309}
    // is required to cause an overflow, which is unrealistic.
    uint256 private constant _MAX_MINT_ERC2309_QUANTITY_LIMIT = 5000;

    // The `Transfer` event signature is given by:
    // `keccak256(bytes("Transfer(address,address,uint256)"))`.
    bytes32 private constant _TRANSFER_EVENT_SIGNATURE =
        0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef;

    // =============================================================
    //                            STORAGE
    // =============================================================

    // The next token ID 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`
    // - [232..255] `extraData`
    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 => TokenApprovalRef) private _tokenApprovals;

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

    // =============================================================
    //                          CONSTRUCTOR
    // =============================================================

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

    // =============================================================
    //                   TOKEN COUNTING OPERATIONS
    // =============================================================

    /**
     * @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 virtual 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 virtual 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 virtual 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 virtual returns (uint256) {
        return _burnCounter;
    }

    // =============================================================
    //                    ADDRESS DATA OPERATIONS
    // =============================================================

    /**
     * @dev Returns the number of tokens in `owner`'s account.
     */
    function balanceOf(address owner) public view virtual 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 auxiliary data for `owner`. (e.g. number of whitelist mint slots used).
     */
    function _getAux(address owner) internal view returns (uint64) {
        return uint64(_packedAddressData[owner] >> _BITPOS_AUX);
    }

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

    // =============================================================
    //                            IERC165
    // =============================================================

    /**
     * @dev Returns true if this contract implements the interface defined by
     * `interfaceId`. See the corresponding
     * [EIP section](https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified)
     * to learn more about how these ids are created.
     *
     * This function call must use less than 30000 gas.
     */
    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: [ERC165](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.
    }

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

    /**
     * @dev Returns the token collection name.
     */
    function name() public view virtual override returns (string memory) {
        return _name;
    }

    /**
     * @dev Returns the token collection symbol.
     */
    function symbol() public view virtual override returns (string memory) {
        return _symbol;
    }

    /**
     * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token.
     */
    function tokenURI(uint256 tokenId) public view virtual override returns (string memory) {
        if (!_exists(tokenId)) revert URIQueryForNonexistentToken();

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

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

    // =============================================================
    //                     OWNERSHIPS OPERATIONS
    // =============================================================

    /**
     * @dev Returns the owner of the `tokenId` token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function ownerOf(uint256 tokenId) public view virtual override returns (address) {
        return address(uint160(_packedOwnershipOf(tokenId)));
    }

    /**
     * @dev Gas spent here starts off proportional to the maximum mint batch size.
     * It gradually moves to O(1) as tokens get transferred around over time.
     */
    function _ownershipOf(uint256 tokenId) internal view virtual returns (TokenOwnership memory) {
        return _unpackedOwnership(_packedOwnershipOf(tokenId));
    }

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

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

    /**
     * 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 initialized ownership slot
                        // (i.e. `ownership.addr != address(0) && ownership.burned == false`)
                        // before an unintialized ownership slot
                        // (i.e. `ownership.addr == address(0) && ownership.burned == false`)
                        // Hence, `curr` will not underflow.
                        //
                        // We can directly compare the packed value.
                        // If the address is zero, packed will be zero.
                        while (packed == 0) {
                            packed = _packedOwnerships[--curr];
                        }
                        return packed;
                    }
                }
        }
        revert OwnerQueryForNonexistentToken();
    }

    /**
     * @dev 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;
        ownership.extraData = uint24(packed >> _BITPOS_EXTRA_DATA);
    }

    /**
     * @dev Packs ownership data into a single uint256.
     */
    function _packOwnershipData(address owner, uint256 flags) private view returns (uint256 result) {
        assembly {
            // Mask `owner` to the lower 160 bits, in case the upper bits somehow aren't clean.
            owner := and(owner, _BITMASK_ADDRESS)
            // `owner | (block.timestamp << _BITPOS_START_TIMESTAMP) | flags`.
            result := or(owner, or(shl(_BITPOS_START_TIMESTAMP, timestamp()), flags))
        }
    }

    /**
     * @dev Returns the `nextInitialized` flag set if `quantity` equals 1.
     */
    function _nextInitializedFlag(uint256 quantity) private pure returns (uint256 result) {
        // For branchless setting of the `nextInitialized` flag.
        assembly {
            // `(quantity == 1) << _BITPOS_NEXT_INITIALIZED`.
            result := shl(_BITPOS_NEXT_INITIALIZED, eq(quantity, 1))
        }
    }

    // =============================================================
    //                      APPROVAL OPERATIONS
    // =============================================================

    /**
     * @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) public payable virtual override {
        address owner = ownerOf(tokenId);

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

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

    /**
     * @dev Returns the account approved for `tokenId` token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function getApproved(uint256 tokenId) public view virtual override returns (address) {
        if (!_exists(tokenId)) revert ApprovalQueryForNonexistentToken();

        return _tokenApprovals[tokenId].value;
    }

    /**
     * @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) public virtual override {
        _operatorApprovals[_msgSenderERC721A()][operator] = approved;
        emit ApprovalForAll(_msgSenderERC721A(), operator, approved);
    }

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

    /**
     * @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. See {_mint}.
     */
    function _exists(uint256 tokenId) internal view virtual returns (bool) {
        return
            _startTokenId() <= tokenId &&
            tokenId < _currentIndex && // If within bounds,
            _packedOwnerships[tokenId] & _BITMASK_BURNED == 0; // and not burned.
    }

    /**
     * @dev Returns whether `msgSender` is equal to `approvedAddress` or `owner`.
     */
    function _isSenderApprovedOrOwner(
        address approvedAddress,
        address owner,
        address msgSender
    ) private pure returns (bool result) {
        assembly {
            // Mask `owner` to the lower 160 bits, in case the upper bits somehow aren't clean.
            owner := and(owner, _BITMASK_ADDRESS)
            // Mask `msgSender` to the lower 160 bits, in case the upper bits somehow aren't clean.
            msgSender := and(msgSender, _BITMASK_ADDRESS)
            // `msgSender == owner || msgSender == approvedAddress`.
            result := or(eq(msgSender, owner), eq(msgSender, approvedAddress))
        }
    }

    /**
     * @dev Returns the storage slot and value for the approved address of `tokenId`.
     */
    function _getApprovedSlotAndAddress(uint256 tokenId)
        private
        view
        returns (uint256 approvedAddressSlot, address approvedAddress)
    {
        TokenApprovalRef storage tokenApproval = _tokenApprovals[tokenId];
        // The following is equivalent to `approvedAddress = _tokenApprovals[tokenId].value`.
        assembly {
            approvedAddressSlot := tokenApproval.slot
            approvedAddress := sload(approvedAddressSlot)
        }
    }

    // =============================================================
    //                      TRANSFER OPERATIONS
    // =============================================================

    /**
     * @dev Transfers `tokenId` from `from` to `to`.
     *
     * 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
    ) public payable virtual override {
        uint256 prevOwnershipPacked = _packedOwnershipOf(tokenId);

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

        (uint256 approvedAddressSlot, address approvedAddress) = _getApprovedSlotAndAddress(tokenId);

        // The nested ifs save around 20+ gas over a compound boolean condition.
        if (!_isSenderApprovedOrOwner(approvedAddress, from, _msgSenderERC721A()))
            if (!isApprovedForAll(from, _msgSenderERC721A())) revert TransferCallerNotOwnerNorApproved();

        if (to == address(0)) revert TransferToZeroAddress();

        _beforeTokenTransfers(from, to, tokenId, 1);

        // Clear approvals from the previous owner.
        assembly {
            if approvedAddress {
                // This is equivalent to `delete _tokenApprovals[tokenId]`.
                sstore(approvedAddressSlot, 0)
            }
        }

        // 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] = _packOwnershipData(
                to,
                _BITMASK_NEXT_INITIALIZED | _nextExtraData(from, to, prevOwnershipPacked)
            );

            // 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 `safeTransferFrom(from, to, tokenId, '')`.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId
    ) public payable virtual override {
        safeTransferFrom(from, to, tokenId, '');
    }

    /**
     * @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 memory _data
    ) public payable virtual override {
        transferFrom(from, to, tokenId);
        if (to.code.length != 0)
            if (!_checkContractOnERC721Received(from, to, tokenId, _data)) {
                revert TransferToNonERC721ReceiverImplementer();
            }
    }

    /**
     * @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 Private function to invoke {IERC721Receiver-onERC721Received} on a target contract.
     *
     * `from` - Previous owner of the given token ID.
     * `to` - Target address that will receive the token.
     * `tokenId` - Token ID to be transferred.
     * `_data` - Optional data to send along with the call.
     *
     * Returns 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))
                }
            }
        }
    }

    // =============================================================
    //                        MINT OPERATIONS
    // =============================================================

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

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

        // Overflows are incredibly unrealistic.
        // `balance` and `numberMinted` have a maximum limit of 2**64.
        // `tokenId` has a maximum limit of 2**256.
        unchecked {
            // Updates:
            // - `balance += quantity`.
            // - `numberMinted += quantity`.
            //
            // We can directly add to the `balance` and `numberMinted`.
            _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] = _packOwnershipData(
                to,
                _nextInitializedFlag(quantity) | _nextExtraData(address(0), to, 0)
            );

            uint256 toMasked;
            uint256 end = startTokenId + quantity;

            // Use assembly to loop and emit the `Transfer` event for gas savings.
            // The duplicated `log4` removes an extra check and reduces stack juggling.
            // The assembly, together with the surrounding Solidity code, have been
            // delicately arranged to nudge the compiler into producing optimized opcodes.
            assembly {
                // Mask `to` to the lower 160 bits, in case the upper bits somehow aren't clean.
                toMasked := and(to, _BITMASK_ADDRESS)
                // Emit the `Transfer` event.
                log4(
                    0, // Start of data (0, since no data).
                    0, // End of data (0, since no data).
                    _TRANSFER_EVENT_SIGNATURE, // Signature.
                    0, // `address(0)`.
                    toMasked, // `to`.
                    startTokenId // `tokenId`.
                )

                // The `iszero(eq(,))` check ensures that large values of `quantity`
                // that overflows uint256 will make the loop run out of gas.
                // The compiler will optimize the `iszero` away for performance.
                for {
                    let tokenId := add(startTokenId, 1)
                } iszero(eq(tokenId, end)) {
                    tokenId := add(tokenId, 1)
                } {
                    // Emit the `Transfer` event. Similar to above.
                    log4(0, 0, _TRANSFER_EVENT_SIGNATURE, 0, toMasked, tokenId)
                }
            }
            if (toMasked == 0) revert MintToZeroAddress();

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

    /**
     * @dev Mints `quantity` tokens and transfers them to `to`.
     *
     * This function is intended for efficient minting only during contract creation.
     *
     * It emits only one {ConsecutiveTransfer} as defined in
     * [ERC2309](https://eips.ethereum.org/EIPS/eip-2309),
     * instead of a sequence of {Transfer} event(s).
     *
     * Calling this function outside of contract creation WILL make your contract
     * non-compliant with the ERC721 standard.
     * For full ERC721 compliance, substituting ERC721 {Transfer} event(s) with the ERC2309
     * {ConsecutiveTransfer} event is only permissible during contract creation.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - `quantity` must be greater than 0.
     *
     * Emits a {ConsecutiveTransfer} event.
     */
    function _mintERC2309(address to, uint256 quantity) internal virtual {
        uint256 startTokenId = _currentIndex;
        if (to == address(0)) revert MintToZeroAddress();
        if (quantity == 0) revert MintZeroQuantity();
        if (quantity > _MAX_MINT_ERC2309_QUANTITY_LIMIT) revert MintERC2309QuantityExceedsLimit();

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

        // Overflows are unrealistic due to the above check for `quantity` to be below the limit.
        unchecked {
            // Updates:
            // - `balance += quantity`.
            // - `numberMinted += quantity`.
            //
            // We can directly add to the `balance` and `numberMinted`.
            _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] = _packOwnershipData(
                to,
                _nextInitializedFlag(quantity) | _nextExtraData(address(0), to, 0)
            );

            emit ConsecutiveTransfer(startTokenId, startTokenId + quantity - 1, address(0), to);

            _currentIndex = startTokenId + quantity;
        }
        _afterTokenTransfers(address(0), to, startTokenId, 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.
     *
     * See {_mint}.
     *
     * Emits a {Transfer} event for each mint.
     */
    function _safeMint(
        address to,
        uint256 quantity,
        bytes memory _data
    ) internal virtual {
        _mint(to, quantity);

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

    /**
     * @dev Equivalent to `_safeMint(to, quantity, '')`.
     */
    function _safeMint(address to, uint256 quantity) internal virtual {
        _safeMint(to, quantity, '');
    }

    // =============================================================
    //                        BURN OPERATIONS
    // =============================================================

    /**
     * @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));

        (uint256 approvedAddressSlot, address approvedAddress) = _getApprovedSlotAndAddress(tokenId);

        if (approvalCheck) {
            // The nested ifs save around 20+ gas over a compound boolean condition.
            if (!_isSenderApprovedOrOwner(approvedAddress, from, _msgSenderERC721A()))
                if (!isApprovedForAll(from, _msgSenderERC721A())) revert TransferCallerNotOwnerNorApproved();
        }

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

        // Clear approvals from the previous owner.
        assembly {
            if approvedAddress {
                // This is equivalent to `delete _tokenApprovals[tokenId]`.
                sstore(approvedAddressSlot, 0)
            }
        }

        // 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] = _packOwnershipData(
                from,
                (_BITMASK_BURNED | _BITMASK_NEXT_INITIALIZED) | _nextExtraData(from, address(0), prevOwnershipPacked)
            );

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

    // =============================================================
    //                     EXTRA DATA OPERATIONS
    // =============================================================

    /**
     * @dev Directly sets the extra data for the ownership data `index`.
     */
    function _setExtraDataAt(uint256 index, uint24 extraData) internal virtual {
        uint256 packed = _packedOwnerships[index];
        if (packed == 0) revert OwnershipNotInitializedForExtraData();
        uint256 extraDataCasted;
        // Cast `extraData` with assembly to avoid redundant masking.
        assembly {
            extraDataCasted := extraData
        }
        packed = (packed & _BITMASK_EXTRA_DATA_COMPLEMENT) | (extraDataCasted << _BITPOS_EXTRA_DATA);
        _packedOwnerships[index] = packed;
    }

    /**
     * @dev Called during each token transfer to set the 24bit `extraData` field.
     * Intended to be overridden by the cosumer contract.
     *
     * `previousExtraData` - the value of `extraData` before transfer.
     *
     * 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 _extraData(
        address from,
        address to,
        uint24 previousExtraData
    ) internal view virtual returns (uint24) {}

    /**
     * @dev Returns the next extra data for the packed ownership data.
     * The returned result is shifted into position.
     */
    function _nextExtraData(
        address from,
        address to,
        uint256 prevOwnershipPacked
    ) private view returns (uint256) {
        uint24 extraData = uint24(prevOwnershipPacked >> _BITPOS_EXTRA_DATA);
        return uint256(_extraData(from, to, extraData)) << _BITPOS_EXTRA_DATA;
    }

    // =============================================================
    //                       OTHER OPERATIONS
    // =============================================================

    /**
     * @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 virtual returns (string memory str) {
        assembly {
            // The maximum value of a uint256 contains 78 digits (1 byte per digit), but
            // we allocate 0xa0 bytes to keep the free memory pointer 32-byte word aligned.
            // We will need 1 word for the trailing zeros padding, 1 word for the length,
            // and 3 words for a maximum of 78 digits. Total: 5 * 0x20 = 0xa0.
            let m := add(mload(0x40), 0xa0)
            // Update the free memory pointer to allocate.
            mstore(0x40, m)
            // Assign the `str` to the end.
            str := sub(m, 0x20)
            // Zeroize the slot after the string.
            mstore(str, 0)

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

            // We write the string from rightmost digit to leftmost digit.
            // The following is essentially a do-while loop that also handles the zero case.
            // prettier-ignore
            for { let temp := value } 1 {} {
                str := sub(str, 1)
                // Write the character to the pointer.
                // The ASCII index of the '0' character is 48.
                mstore8(str, add(48, mod(temp, 10)))
                // Keep dividing `temp` until zero.
                temp := div(temp, 10)
                // prettier-ignore
                if iszero(temp) { break }
            }

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

File 8 of 8 : IERC721A.sol
// SPDX-License-Identifier: MIT
// ERC721A Contracts v4.2.3
// Creator: Chiru Labs

pragma solidity ^0.8.4;

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

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

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

    /**
     * The `quantity` minted with ERC2309 exceeds the safety limit.
     */
    error MintERC2309QuantityExceedsLimit();

    /**
     * The `extraData` cannot be set on an unintialized ownership slot.
     */
    error OwnershipNotInitializedForExtraData();

    // =============================================================
    //                            STRUCTS
    // =============================================================

    struct TokenOwnership {
        // The address of the owner.
        address addr;
        // Stores the start time of ownership with minimal overhead for tokenomics.
        uint64 startTimestamp;
        // Whether the token has been burned.
        bool burned;
        // Arbitrary data similar to `startTimestamp` that can be set via {_extraData}.
        uint24 extraData;
    }

    // =============================================================
    //                         TOKEN COUNTERS
    // =============================================================

    /**
     * @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() external view returns (uint256);

    // =============================================================
    //                            IERC165
    // =============================================================

    /**
     * @dev Returns true if this contract implements the interface defined by
     * `interfaceId`. See the corresponding
     * [EIP section](https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified)
     * to learn more about how these ids are created.
     *
     * This function call must use less than 30000 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`,
     * 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,
        bytes calldata data
    ) external payable;

    /**
     * @dev Equivalent to `safeTransferFrom(from, to, tokenId, '')`.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId
    ) external payable;

    /**
     * @dev Transfers `tokenId` 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 payable;

    /**
     * @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 payable;

    /**
     * @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);

    // =============================================================
    //                           IERC2309
    // =============================================================

    /**
     * @dev Emitted when tokens in `fromTokenId` to `toTokenId`
     * (inclusive) is transferred from `from` to `to`, as defined in the
     * [ERC2309](https://eips.ethereum.org/EIPS/eip-2309) standard.
     *
     * See {_mintERC2309} for more details.
     */
    event ConsecutiveTransfer(uint256 indexed fromTokenId, uint256 toTokenId, address indexed from, address indexed to);
}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"string","name":"unrevealedURI_","type":"string"},{"internalType":"bytes32","name":"_merkleRootWL","type":"bytes32"},{"internalType":"bytes32","name":"_merkleRootOG","type":"bytes32"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"MintERC2309QuantityExceedsLimit","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"OwnershipNotInitializedForExtraData","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":"uint256","name":"fromTokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"toTokenId","type":"uint256"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"}],"name":"ConsecutiveTransfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnerUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"MAX_MINT","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PRICE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"adminMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"availableMintsForPublic","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"pauseId","type":"uint256"}],"name":"getPausedStatus","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"merkleRootOG","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"merkleRootWL","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32[]","name":"proof","type":"bytes32[]"}],"name":"mintOG","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"mintPublic","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes32[]","name":"proof","type":"bytes32[]"}],"name":"mintWhitelist","outputs":[],"stateMutability":"payable","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":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"payable","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":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"setOwner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"tokenURI_","type":"string"}],"name":"setTokenURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"unrevealedURI_","type":"string"}],"name":"setUnrevealedURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tooglePauseState","outputs":[],"stateMutability":"nonpayable","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":"payable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"payable","type":"function"}]

60c060405260016009553480156200001657600080fd5b50604051620040e7380380620040e783398181016040528101906200003c919062000384565b336040518060400160405280600a81526020017f57686f736a694c616273000000000000000000000000000000000000000000008152506040518060400160405280600a81526020017f57686f736a694c616273000000000000000000000000000000000000000000008152508160029081620000ba91906200064a565b508060039081620000cc91906200064a565b50620000dd620001ad60201b60201c565b600081905550505080600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508073ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167f8292fce18fa69edf4db7b94ea2e58241df0ae57f97e0a6c9b29067028bf92d7660405160405180910390a35082600c90816200019391906200064a565b5081608081815250508060a0818152505050505062000731565b60006001905090565b6000604051905090565b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6200021f82620001d4565b810181811067ffffffffffffffff82111715620002415762000240620001e5565b5b80604052505050565b600062000256620001b6565b905062000264828262000214565b919050565b600067ffffffffffffffff821115620002875762000286620001e5565b5b6200029282620001d4565b9050602081019050919050565b60005b83811015620002bf578082015181840152602081019050620002a2565b60008484015250505050565b6000620002e2620002dc8462000269565b6200024a565b905082815260208101848484011115620003015762000300620001cf565b5b6200030e8482856200029f565b509392505050565b600082601f8301126200032e576200032d620001ca565b5b815162000340848260208601620002cb565b91505092915050565b6000819050919050565b6200035e8162000349565b81146200036a57600080fd5b50565b6000815190506200037e8162000353565b92915050565b600080600060608486031215620003a0576200039f620001c0565b5b600084015167ffffffffffffffff811115620003c157620003c0620001c5565b5b620003cf8682870162000316565b9350506020620003e2868287016200036d565b9250506040620003f5868287016200036d565b9150509250925092565b600081519050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060028204905060018216806200045257607f821691505b6020821081036200046857620004676200040a565b5b50919050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b600060088302620004d27fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8262000493565b620004de868362000493565b95508019841693508086168417925050509392505050565b6000819050919050565b6000819050919050565b60006200052b620005256200051f84620004f6565b62000500565b620004f6565b9050919050565b6000819050919050565b62000547836200050a565b6200055f620005568262000532565b848454620004a0565b825550505050565b600090565b6200057662000567565b620005838184846200053c565b505050565b5b81811015620005ab576200059f6000826200056c565b60018101905062000589565b5050565b601f821115620005fa57620005c4816200046e565b620005cf8462000483565b81016020851015620005df578190505b620005f7620005ee8562000483565b83018262000588565b50505b505050565b600082821c905092915050565b60006200061f60001984600802620005ff565b1980831691505092915050565b60006200063a83836200060c565b9150826002028217905092915050565b6200065582620003ff565b67ffffffffffffffff811115620006715762000670620001e5565b5b6200067d825462000439565b6200068a828285620005af565b600060209050601f831160018114620006c25760008415620006ad578287015190505b620006b985826200062c565b86555062000729565b601f198416620006d2866200046e565b60005b82811015620006fc57848901518255600182019150602085019450602081019050620006d5565b868310156200071c578489015162000718601f8916826200060c565b8355505b6001600288020188555050505b505050505050565b60805160a051613982620007656000396000818161123301526116910152600081816107ce015261193201526139826000f3fe6080604052600436106101d85760003560e01c80638d8f38cd11610102578063c87b56dd11610095578063efd0cbf911610064578063efd0cbf914610652578063f0292a031461066e578063f5a8f3cb14610699578063fe2c7fee146106c4576101d8565b8063c87b56dd14610584578063d6492d81146105c1578063e0df5b6f146105ec578063e985e9c514610615576101d8565b8063a22cb465116100d1578063a22cb465146104f8578063ad6cb31914610521578063b88d4fde1461054c578063c1f2612314610568576101d8565b80638d8f38cd1461045d5780638da5cb5b1461047957806395d89b41146104a457806396b74be3146104cf576101d8565b80631b4ed3f31161017a57806342842e0e1161014957806342842e0e1461039c5780636352211e146103b857806370a08231146103f55780638d859f3e14610432576101d8565b80631b4ed3f31461030e57806323b872dd1461034b57806332cb6b0c146103675780633ccfd60b14610392576101d8565b8063081812fc116101b6578063081812fc14610261578063095ea7b31461029e57806313af4035146102ba57806318160ddd146102e3576101d8565b806301ffc9a7146101dd578063061431a81461021a57806306fdde0314610236575b600080fd5b3480156101e957600080fd5b5061020460048036038101906101ff91906125ab565b6106ed565b60405161021191906125f3565b60405180910390f35b610234600480360381019061022f91906126a9565b61077f565b005b34801561024257600080fd5b5061024b61097d565b6040516102589190612799565b60405180910390f35b34801561026d57600080fd5b50610288600480360381019061028391906127bb565b610a0f565b6040516102959190612829565b60405180910390f35b6102b860048036038101906102b39190612870565b610a8e565b005b3480156102c657600080fd5b506102e160048036038101906102dc91906128b0565b610bd2565b005b3480156102ef57600080fd5b506102f8610d00565b60405161030591906128ec565b60405180910390f35b34801561031a57600080fd5b50610335600480360381019061033091906127bb565b610d17565b60405161034291906125f3565b60405180910390f35b61036560048036038101906103609190612907565b610d2b565b005b34801561037357600080fd5b5061037c61104d565b60405161038991906128ec565b60405180910390f35b61039a611053565b005b6103b660048036038101906103b19190612907565b6110ef565b005b3480156103c457600080fd5b506103df60048036038101906103da91906127bb565b61110f565b6040516103ec9190612829565b60405180910390f35b34801561040157600080fd5b5061041c600480360381019061041791906128b0565b611121565b60405161042991906128ec565b60405180910390f35b34801561043e57600080fd5b506104476111d9565b60405161045491906128ec565b60405180910390f35b6104776004803603810190610472919061295a565b6111e4565b005b34801561048557600080fd5b5061048e61142d565b60405161049b9190612829565b60405180910390f35b3480156104b057600080fd5b506104b9611453565b6040516104c69190612799565b60405180910390f35b3480156104db57600080fd5b506104f660048036038101906104f191906127bb565b6114e5565b005b34801561050457600080fd5b5061051f600480360381019061051a91906129d3565b611584565b005b34801561052d57600080fd5b5061053661168f565b6040516105439190612a2c565b60405180910390f35b61056660048036038101906105619190612b77565b6116b3565b005b610582600480360381019061057d91906127bb565b611726565b005b34801561059057600080fd5b506105ab60048036038101906105a691906127bb565b611811565b6040516105b89190612799565b60405180910390f35b3480156105cd57600080fd5b506105d6611930565b6040516105e39190612a2c565b60405180910390f35b3480156105f857600080fd5b50610613600480360381019061060e9190612c50565b611954565b005b34801561062157600080fd5b5061063c60048036038101906106379190612c9d565b6119fa565b60405161064991906125f3565b60405180910390f35b61066c600480360381019061066791906127bb565b611a8e565b005b34801561067a57600080fd5b50610683611ca5565b60405161069091906128ec565b60405180910390f35b3480156106a557600080fd5b506106ae611caa565b6040516106bb91906128ec565b60405180910390f35b3480156106d057600080fd5b506106eb60048036038101906106e69190612c50565b611cd3565b005b60006301ffc9a760e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061074857506380ac58cd60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b806107785750635b5e139f60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b9050919050565b6001600954146107c4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016107bb90612d29565b60405180910390fd5b60026009819055507f000000000000000000000000000000000000000000000000000000000000000082823386610825848487858560405160200161080a929190612db2565b60405160208183030381529060405280519060200120611d79565b610864576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161085b90612e2a565b60405180910390fd5b3388600061087183611dd1565b67ffffffffffffffff16146108bb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108b290612e96565b60405180910390fd5b6108c7600a6003611e1e565b610906576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108fd90612f02565b60405180910390fd5b6115b381610912611e50565b011115610954576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161094b90612f6e565b60405180910390fd5b61095f336001611e63565b610969338b611f19565b505050505050506001600981905550505050565b60606002805461098c90612fbd565b80601f01602080910402602001604051908101604052809291908181526020018280546109b890612fbd565b8015610a055780601f106109da57610100808354040283529160200191610a05565b820191906000526020600020905b8154815290600101906020018083116109e857829003601f168201915b5050505050905090565b6000610a1a826120d4565b610a50576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6006600083815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610a998261110f565b90508073ffffffffffffffffffffffffffffffffffffffff16610aba612133565b73ffffffffffffffffffffffffffffffffffffffff1614610b1d57610ae681610ae1612133565b6119fa565b610b1c576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b826006600084815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610c62576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c599061303a565b60405180910390fd5b80600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff167f8292fce18fa69edf4db7b94ea2e58241df0ae57f97e0a6c9b29067028bf92d7660405160405180910390a350565b6000610d0a61213b565b6001546000540303905090565b6000610d24600a83611e1e565b9050919050565b6000610d3682612144565b90508373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610d9d576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600080610da984612210565b91509150610dbf8187610dba612133565b612237565b610e0b57610dd486610dcf612133565b6119fa565b610e0a576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1603610e71576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610e7e868686600161227b565b8015610e8957600082555b600560008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600081546001900391905081905550600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000815460010191905081905550610f5785610f33888887612281565b7c0200000000000000000000000000000000000000000000000000000000176122a9565b600460008681526020019081526020016000208190555060007c0200000000000000000000000000000000000000000000000000000000841603610fdd5760006001850190506000600460008381526020019081526020016000205403610fdb576000548114610fda578360046000838152602001908152602001600020819055505b5b505b838573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a461104586868660016122d4565b505050505050565b6115b381565b600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146110e3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110da9061303a565b60405180910390fd5b6110ed33476122da565b565b61110a838383604051806020016040528060008152506116b3565b505050565b600061111a82612144565b9050919050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611188576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b67ffffffffffffffff600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054169050919050565b66753d533d96800081565b600160095414611229576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161122090612d29565b60405180910390fd5b60026009819055507f0000000000000000000000000000000000000000000000000000000000000000828233600161128b8484878585604051602001611270929190612db2565b60405160208183030381529060405280519060200120611d79565b6112ca576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112c190612e2a565b60405180910390fd5b3360016112d9600a6002611e1e565b611318576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161130f906130a6565b60405180910390fd5b6001611323836122fa565b82011115611366576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161135d90613112565b60405180910390fd5b6115b3610ad982611375611e50565b010111156113b8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113af9061317e565b60405180910390fd5b60018066753d533d9680006113cd91906131cd565b341461140e576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114059061325b565b60405180910390fd5b611419336001611f19565b505050505050505060016009819055505050565b600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60606003805461146290612fbd565b80601f016020809104026020016040519081016040528092919081815260200182805461148e90612fbd565b80156114db5780601f106114b0576101008083540402835291602001916114db565b820191906000526020600020905b8154815290600101906020018083116114be57829003601f168201915b5050505050905090565b600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614611575576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161156c9061303a565b60405180910390fd5b611580600a82612351565b5050565b8060076000611591612133565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff1661163e612133565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c318360405161168391906125f3565b60405180910390a35050565b7f000000000000000000000000000000000000000000000000000000000000000081565b6116be848484610d2b565b60008373ffffffffffffffffffffffffffffffffffffffff163b14611720576116e984848484612386565b61171f576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b50505050565b600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146117b6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117ad9061303a565b60405180910390fd5b6115b36117c1611e50565b82011115611804576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117fb90612f6e565b60405180910390fd5b61180e3382611f19565b50565b606061181c826120d4565b61185b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611852906132c7565b60405180910390fd5b611867600a6004611e1e565b6118fd57600c805461187890612fbd565b80601f01602080910402602001604051908101604052809291908181526020018280546118a490612fbd565b80156118f15780601f106118c6576101008083540402835291602001916118f1565b820191906000526020600020905b8154815290600101906020018083116118d457829003601f168201915b5050505050905061192b565b600b611908836124d6565b6040516020016119199291906133bb565b60405160208183030381529060405290505b919050565b7f000000000000000000000000000000000000000000000000000000000000000081565b600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146119e4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119db9061303a565b60405180910390fd5b8181600b91826119f5929190613581565b505050565b6000600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b600160095414611ad3576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611aca90612d29565b60405180910390fd5b60026009819055503273ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614611b49576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b409061369d565b60405180910390fd5b60038133611b59600a6001611e1e565b611b98576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b8f90613709565b60405180910390fd5b82611ba2826122fa565b83011115611be5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611bdc90613775565b60405180910390fd5b6115b3610ad983611bf4611e50565b01011115611c37576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c2e906137e1565b60405180910390fd5b838066753d533d968000611c4b91906131cd565b3414611c8c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c839061325b565b60405180910390fd5b611c963386611f19565b50505050600160098190555050565b600381565b6000610ad9611cb7611e50565b611cc19190613801565b6115b3611cce9190613835565b905090565b600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614611d63576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d5a9061303a565b60405180910390fd5b8181600c9182611d74929190613581565b505050565b60008315611dc4578360051b8501855b600115611dc1578035841160051b8481528135602082185260406000209450602082019150828210611dbb5750611dc1565b50611d89565b50505b8282149050949350505050565b600060c0600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054901c9050919050565b600080600160ff8416856000016000600887901c815260200190815260200160002054901c1690508091505092915050565b6000611e5a61213b565b60005403905090565b6000600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050600082905060c081901b77ffffffffffffffffffffffffffffffffffffffffffffffff831617915081600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555050505050565b60008054905060008203611f59576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b611f66600084838561227b565b600160406001901b178202600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282540192505081905550611fdd83611fce6000866000612281565b611fd785612526565b176122a9565b6004600083815260200190815260200160002081905550600080838301905073ffffffffffffffffffffffffffffffffffffffff85169150828260007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600183015b81811461207e57808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600181019050612043565b50600082036120b9576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8060008190555050506120cf60008483856122d4565b505050565b6000816120df61213b565b111580156120ee575060005482105b801561212c575060007c0100000000000000000000000000000000000000000000000000000000600460008581526020019081526020016000205416145b9050919050565b600033905090565b60006001905090565b6000808290508061215361213b565b116121d9576000548110156121d85760006004600083815260200190815260200160002054905060007c01000000000000000000000000000000000000000000000000000000008216036121d6575b600081036121cc5760046000836001900393508381526020019081526020016000205490506121a2565b809250505061220b565b505b5b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b919050565b60008060006006600085815260200190815260200160002090508092508254915050915091565b600073ffffffffffffffffffffffffffffffffffffffff8316925073ffffffffffffffffffffffffffffffffffffffff821691508382148383141790509392505050565b50505050565b60008060e883901c905060e8612298868684612536565b62ffffff16901b9150509392505050565b600073ffffffffffffffffffffffffffffffffffffffff83169250814260a01b178317905092915050565b50505050565b60008060008084865af16122f65763b12d13eb6000526004601cfd5b5050565b600067ffffffffffffffff6040600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054901c169050919050565b60008160081c60005282602052604060002060ff831681546001821b8082189150808216151594508184555050505092915050565b60008373ffffffffffffffffffffffffffffffffffffffff1663150b7a026123ac612133565b8786866040518563ffffffff1660e01b81526004016123ce94939291906138be565b6020604051808303816000875af192505050801561240a57506040513d601f19601f82011682018060405250810190612407919061391f565b60015b612483573d806000811461243a576040519150601f19603f3d011682016040523d82523d6000602084013e61243f565b606091505b50600081510361247b576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050949350505050565b606060a060405101806040526020810391506000825281835b60011561251157600184039350600a81066030018453600a81049050806124ef575b50828103602084039350808452505050919050565b60006001821460e11b9050919050565b60009392505050565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b61258881612553565b811461259357600080fd5b50565b6000813590506125a58161257f565b92915050565b6000602082840312156125c1576125c0612549565b5b60006125cf84828501612596565b91505092915050565b60008115159050919050565b6125ed816125d8565b82525050565b600060208201905061260860008301846125e4565b92915050565b6000819050919050565b6126218161260e565b811461262c57600080fd5b50565b60008135905061263e81612618565b92915050565b600080fd5b600080fd5b600080fd5b60008083601f84011261266957612668612644565b5b8235905067ffffffffffffffff81111561268657612685612649565b5b6020830191508360208202830111156126a2576126a161264e565b5b9250929050565b6000806000604084860312156126c2576126c1612549565b5b60006126d08682870161262f565b935050602084013567ffffffffffffffff8111156126f1576126f061254e565b5b6126fd86828701612653565b92509250509250925092565b600081519050919050565b600082825260208201905092915050565b60005b83811015612743578082015181840152602081019050612728565b60008484015250505050565b6000601f19601f8301169050919050565b600061276b82612709565b6127758185612714565b9350612785818560208601612725565b61278e8161274f565b840191505092915050565b600060208201905081810360008301526127b38184612760565b905092915050565b6000602082840312156127d1576127d0612549565b5b60006127df8482850161262f565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000612813826127e8565b9050919050565b61282381612808565b82525050565b600060208201905061283e600083018461281a565b92915050565b61284d81612808565b811461285857600080fd5b50565b60008135905061286a81612844565b92915050565b6000806040838503121561288757612886612549565b5b60006128958582860161285b565b92505060206128a68582860161262f565b9150509250929050565b6000602082840312156128c6576128c5612549565b5b60006128d48482850161285b565b91505092915050565b6128e68161260e565b82525050565b600060208201905061290160008301846128dd565b92915050565b6000806000606084860312156129205761291f612549565b5b600061292e8682870161285b565b935050602061293f8682870161285b565b92505060406129508682870161262f565b9150509250925092565b6000806020838503121561297157612970612549565b5b600083013567ffffffffffffffff81111561298f5761298e61254e565b5b61299b85828601612653565b92509250509250929050565b6129b0816125d8565b81146129bb57600080fd5b50565b6000813590506129cd816129a7565b92915050565b600080604083850312156129ea576129e9612549565b5b60006129f88582860161285b565b9250506020612a09858286016129be565b9150509250929050565b6000819050919050565b612a2681612a13565b82525050565b6000602082019050612a416000830184612a1d565b92915050565b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b612a848261274f565b810181811067ffffffffffffffff82111715612aa357612aa2612a4c565b5b80604052505050565b6000612ab661253f565b9050612ac28282612a7b565b919050565b600067ffffffffffffffff821115612ae257612ae1612a4c565b5b612aeb8261274f565b9050602081019050919050565b82818337600083830152505050565b6000612b1a612b1584612ac7565b612aac565b905082815260208101848484011115612b3657612b35612a47565b5b612b41848285612af8565b509392505050565b600082601f830112612b5e57612b5d612644565b5b8135612b6e848260208601612b07565b91505092915050565b60008060008060808587031215612b9157612b90612549565b5b6000612b9f8782880161285b565b9450506020612bb08782880161285b565b9350506040612bc18782880161262f565b925050606085013567ffffffffffffffff811115612be257612be161254e565b5b612bee87828801612b49565b91505092959194509250565b60008083601f840112612c1057612c0f612644565b5b8235905067ffffffffffffffff811115612c2d57612c2c612649565b5b602083019150836001820283011115612c4957612c4861264e565b5b9250929050565b60008060208385031215612c6757612c66612549565b5b600083013567ffffffffffffffff811115612c8557612c8461254e565b5b612c9185828601612bfa565b92509250509250929050565b60008060408385031215612cb457612cb3612549565b5b6000612cc28582860161285b565b9250506020612cd38582860161285b565b9150509250929050565b7f5245454e5452414e435900000000000000000000000000000000000000000000600082015250565b6000612d13600a83612714565b9150612d1e82612cdd565b602082019050919050565b60006020820190508181036000830152612d4281612d06565b9050919050565b60008160601b9050919050565b6000612d6182612d49565b9050919050565b6000612d7382612d56565b9050919050565b612d8b612d8682612808565b612d68565b82525050565b6000819050919050565b612dac612da78261260e565b612d91565b82525050565b6000612dbe8285612d7a565b601482019150612dce8284612d9b565b6020820191508190509392505050565b7f494e56414c49445f50524f4f4600000000000000000000000000000000000000600082015250565b6000612e14600d83612714565b9150612e1f82612dde565b602082019050919050565b60006020820190508181036000830152612e4381612e07565b9050919050565b7f4d41585f4d494e54000000000000000000000000000000000000000000000000600082015250565b6000612e80600883612714565b9150612e8b82612e4a565b602082019050919050565b60006020820190508181036000830152612eaf81612e73565b9050919050565b7f574c5f5041555345440000000000000000000000000000000000000000000000600082015250565b6000612eec600983612714565b9150612ef782612eb6565b602082019050919050565b60006020820190508181036000830152612f1b81612edf565b9050919050565b7f4d41585f535550504c5900000000000000000000000000000000000000000000600082015250565b6000612f58600a83612714565b9150612f6382612f22565b602082019050919050565b60006020820190508181036000830152612f8781612f4b565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60006002820490506001821680612fd557607f821691505b602082108103612fe857612fe7612f8e565b5b50919050565b7f554e415554484f52495a45440000000000000000000000000000000000000000600082015250565b6000613024600c83612714565b915061302f82612fee565b602082019050919050565b6000602082019050818103600083015261305381613017565b9050919050565b7f4f475f5041555345000000000000000000000000000000000000000000000000600082015250565b6000613090600883612714565b915061309b8261305a565b602082019050919050565b600060208201905081810360008301526130bf81613083565b9050919050565b7f4d41585f4d494e545f4f47000000000000000000000000000000000000000000600082015250565b60006130fc600b83612714565b9150613107826130c6565b602082019050919050565b6000602082019050818103600083015261312b816130ef565b9050919050565b7f4d41585f535550504c595f4f4700000000000000000000000000000000000000600082015250565b6000613168600d83612714565b915061317382613132565b602082019050919050565b600060208201905081810360008301526131978161315b565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60006131d88261260e565b91506131e38361260e565b92508282026131f18161260e565b915082820484148315176132085761320761319e565b5b5092915050565b7f494e56414c49445f505249434500000000000000000000000000000000000000600082015250565b6000613245600d83612714565b91506132508261320f565b602082019050919050565b6000602082019050818103600083015261327481613238565b9050919050565b7f5552495175657279466f724e6f6e6578697374656e74546f6b656e0000000000600082015250565b60006132b1601b83612714565b91506132bc8261327b565b602082019050919050565b600060208201905081810360008301526132e0816132a4565b9050919050565b600081905092915050565b60008190508160005260206000209050919050565b6000815461331481612fbd565b61331e81866132e7565b94506001821660008114613339576001811461334e57613381565b60ff1983168652811515820286019350613381565b613357856132f2565b60005b838110156133795781548189015260018201915060208101905061335a565b838801955050505b50505092915050565b600061339582612709565b61339f81856132e7565b93506133af818560208601612725565b80840191505092915050565b60006133c78285613307565b91506133d3828461338a565b91508190509392505050565b600082905092915050565b60006020601f8301049050919050565b600082821b905092915050565b6000600883026134377fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff826133fa565b61344186836133fa565b95508019841693508086168417925050509392505050565b6000819050919050565b600061347e6134796134748461260e565b613459565b61260e565b9050919050565b6000819050919050565b61349883613463565b6134ac6134a482613485565b848454613407565b825550505050565b600090565b6134c16134b4565b6134cc81848461348f565b505050565b5b818110156134f0576134e56000826134b9565b6001810190506134d2565b5050565b601f82111561353557613506816132f2565b61350f846133ea565b8101602085101561351e578190505b61353261352a856133ea565b8301826134d1565b50505b505050565b600082821c905092915050565b60006135586000198460080261353a565b1980831691505092915050565b60006135718383613547565b9150826002028217905092915050565b61358b83836133df565b67ffffffffffffffff8111156135a4576135a3612a4c565b5b6135ae8254612fbd565b6135b98282856134f4565b6000601f8311600181146135e857600084156135d6578287013590505b6135e08582613565565b865550613648565b601f1984166135f6866132f2565b60005b8281101561361e578489013582556001820191506020850194506020810190506135f9565b8683101561363b5784890135613637601f891682613547565b8355505b6001600288020188555050505b50505050505050565b7f4e4f5f434f4e5452414354530000000000000000000000000000000000000000600082015250565b6000613687600c83612714565b915061369282613651565b602082019050919050565b600060208201905081810360008301526136b68161367a565b9050919050565b7f5055424c49435f50415553450000000000000000000000000000000000000000600082015250565b60006136f3600c83612714565b91506136fe826136bd565b602082019050919050565b60006020820190508181036000830152613722816136e6565b9050919050565b7f4d41585f4d494e545f5055424c49430000000000000000000000000000000000600082015250565b600061375f600f83612714565b915061376a82613729565b602082019050919050565b6000602082019050818103600083015261378e81613752565b9050919050565b7f4d41585f535550504c595f5055424c4943000000000000000000000000000000600082015250565b60006137cb601183612714565b91506137d682613795565b602082019050919050565b600060208201905081810360008301526137fa816137be565b9050919050565b600061380c8261260e565b91506138178361260e565b925082820190508082111561382f5761382e61319e565b5b92915050565b60006138408261260e565b915061384b8361260e565b92508282039050818111156138635761386261319e565b5b92915050565b600081519050919050565b600082825260208201905092915050565b600061389082613869565b61389a8185613874565b93506138aa818560208601612725565b6138b38161274f565b840191505092915050565b60006080820190506138d3600083018761281a565b6138e0602083018661281a565b6138ed60408301856128dd565b81810360608301526138ff8184613885565b905095945050505050565b6000815190506139198161257f565b92915050565b60006020828403121561393557613934612549565b5b60006139438482850161390a565b9150509291505056fea2646970667358221220073722186c792c2e07bdcbc856db61edf43c816a554fe589fc583d61e689ae7664736f6c63430008110033000000000000000000000000000000000000000000000000000000000000006002e221b0c533d0329cc255f3aafe01dae93ca94fc47b6aa042a290da2596f74e02085f6c1c4c340d620c28fde15dc8eef0d84d4a70ae6b3d65ed1a77582ddca7000000000000000000000000000000000000000000000000000000000000005968747470733a2f2f676174657761792e70696e6174612e636c6f75642f697066732f516d6147474343455a4e6d6e72614a38714a53356a77515471414c4b46687252445a525833744e62576f435a69422f6d6574616461746100000000000000

Deployed Bytecode

0x6080604052600436106101d85760003560e01c80638d8f38cd11610102578063c87b56dd11610095578063efd0cbf911610064578063efd0cbf914610652578063f0292a031461066e578063f5a8f3cb14610699578063fe2c7fee146106c4576101d8565b8063c87b56dd14610584578063d6492d81146105c1578063e0df5b6f146105ec578063e985e9c514610615576101d8565b8063a22cb465116100d1578063a22cb465146104f8578063ad6cb31914610521578063b88d4fde1461054c578063c1f2612314610568576101d8565b80638d8f38cd1461045d5780638da5cb5b1461047957806395d89b41146104a457806396b74be3146104cf576101d8565b80631b4ed3f31161017a57806342842e0e1161014957806342842e0e1461039c5780636352211e146103b857806370a08231146103f55780638d859f3e14610432576101d8565b80631b4ed3f31461030e57806323b872dd1461034b57806332cb6b0c146103675780633ccfd60b14610392576101d8565b8063081812fc116101b6578063081812fc14610261578063095ea7b31461029e57806313af4035146102ba57806318160ddd146102e3576101d8565b806301ffc9a7146101dd578063061431a81461021a57806306fdde0314610236575b600080fd5b3480156101e957600080fd5b5061020460048036038101906101ff91906125ab565b6106ed565b60405161021191906125f3565b60405180910390f35b610234600480360381019061022f91906126a9565b61077f565b005b34801561024257600080fd5b5061024b61097d565b6040516102589190612799565b60405180910390f35b34801561026d57600080fd5b50610288600480360381019061028391906127bb565b610a0f565b6040516102959190612829565b60405180910390f35b6102b860048036038101906102b39190612870565b610a8e565b005b3480156102c657600080fd5b506102e160048036038101906102dc91906128b0565b610bd2565b005b3480156102ef57600080fd5b506102f8610d00565b60405161030591906128ec565b60405180910390f35b34801561031a57600080fd5b50610335600480360381019061033091906127bb565b610d17565b60405161034291906125f3565b60405180910390f35b61036560048036038101906103609190612907565b610d2b565b005b34801561037357600080fd5b5061037c61104d565b60405161038991906128ec565b60405180910390f35b61039a611053565b005b6103b660048036038101906103b19190612907565b6110ef565b005b3480156103c457600080fd5b506103df60048036038101906103da91906127bb565b61110f565b6040516103ec9190612829565b60405180910390f35b34801561040157600080fd5b5061041c600480360381019061041791906128b0565b611121565b60405161042991906128ec565b60405180910390f35b34801561043e57600080fd5b506104476111d9565b60405161045491906128ec565b60405180910390f35b6104776004803603810190610472919061295a565b6111e4565b005b34801561048557600080fd5b5061048e61142d565b60405161049b9190612829565b60405180910390f35b3480156104b057600080fd5b506104b9611453565b6040516104c69190612799565b60405180910390f35b3480156104db57600080fd5b506104f660048036038101906104f191906127bb565b6114e5565b005b34801561050457600080fd5b5061051f600480360381019061051a91906129d3565b611584565b005b34801561052d57600080fd5b5061053661168f565b6040516105439190612a2c565b60405180910390f35b61056660048036038101906105619190612b77565b6116b3565b005b610582600480360381019061057d91906127bb565b611726565b005b34801561059057600080fd5b506105ab60048036038101906105a691906127bb565b611811565b6040516105b89190612799565b60405180910390f35b3480156105cd57600080fd5b506105d6611930565b6040516105e39190612a2c565b60405180910390f35b3480156105f857600080fd5b50610613600480360381019061060e9190612c50565b611954565b005b34801561062157600080fd5b5061063c60048036038101906106379190612c9d565b6119fa565b60405161064991906125f3565b60405180910390f35b61066c600480360381019061066791906127bb565b611a8e565b005b34801561067a57600080fd5b50610683611ca5565b60405161069091906128ec565b60405180910390f35b3480156106a557600080fd5b506106ae611caa565b6040516106bb91906128ec565b60405180910390f35b3480156106d057600080fd5b506106eb60048036038101906106e69190612c50565b611cd3565b005b60006301ffc9a760e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061074857506380ac58cd60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b806107785750635b5e139f60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b9050919050565b6001600954146107c4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016107bb90612d29565b60405180910390fd5b60026009819055507f02e221b0c533d0329cc255f3aafe01dae93ca94fc47b6aa042a290da2596f74e82823386610825848487858560405160200161080a929190612db2565b60405160208183030381529060405280519060200120611d79565b610864576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161085b90612e2a565b60405180910390fd5b3388600061087183611dd1565b67ffffffffffffffff16146108bb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108b290612e96565b60405180910390fd5b6108c7600a6003611e1e565b610906576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108fd90612f02565b60405180910390fd5b6115b381610912611e50565b011115610954576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161094b90612f6e565b60405180910390fd5b61095f336001611e63565b610969338b611f19565b505050505050506001600981905550505050565b60606002805461098c90612fbd565b80601f01602080910402602001604051908101604052809291908181526020018280546109b890612fbd565b8015610a055780601f106109da57610100808354040283529160200191610a05565b820191906000526020600020905b8154815290600101906020018083116109e857829003601f168201915b5050505050905090565b6000610a1a826120d4565b610a50576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6006600083815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610a998261110f565b90508073ffffffffffffffffffffffffffffffffffffffff16610aba612133565b73ffffffffffffffffffffffffffffffffffffffff1614610b1d57610ae681610ae1612133565b6119fa565b610b1c576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b826006600084815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610c62576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c599061303a565b60405180910390fd5b80600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff167f8292fce18fa69edf4db7b94ea2e58241df0ae57f97e0a6c9b29067028bf92d7660405160405180910390a350565b6000610d0a61213b565b6001546000540303905090565b6000610d24600a83611e1e565b9050919050565b6000610d3682612144565b90508373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610d9d576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600080610da984612210565b91509150610dbf8187610dba612133565b612237565b610e0b57610dd486610dcf612133565b6119fa565b610e0a576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1603610e71576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610e7e868686600161227b565b8015610e8957600082555b600560008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600081546001900391905081905550600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000815460010191905081905550610f5785610f33888887612281565b7c0200000000000000000000000000000000000000000000000000000000176122a9565b600460008681526020019081526020016000208190555060007c0200000000000000000000000000000000000000000000000000000000841603610fdd5760006001850190506000600460008381526020019081526020016000205403610fdb576000548114610fda578360046000838152602001908152602001600020819055505b5b505b838573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a461104586868660016122d4565b505050505050565b6115b381565b600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146110e3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110da9061303a565b60405180910390fd5b6110ed33476122da565b565b61110a838383604051806020016040528060008152506116b3565b505050565b600061111a82612144565b9050919050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611188576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b67ffffffffffffffff600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054169050919050565b66753d533d96800081565b600160095414611229576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161122090612d29565b60405180910390fd5b60026009819055507f02085f6c1c4c340d620c28fde15dc8eef0d84d4a70ae6b3d65ed1a77582ddca7828233600161128b8484878585604051602001611270929190612db2565b60405160208183030381529060405280519060200120611d79565b6112ca576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112c190612e2a565b60405180910390fd5b3360016112d9600a6002611e1e565b611318576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161130f906130a6565b60405180910390fd5b6001611323836122fa565b82011115611366576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161135d90613112565b60405180910390fd5b6115b3610ad982611375611e50565b010111156113b8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113af9061317e565b60405180910390fd5b60018066753d533d9680006113cd91906131cd565b341461140e576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114059061325b565b60405180910390fd5b611419336001611f19565b505050505050505060016009819055505050565b600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60606003805461146290612fbd565b80601f016020809104026020016040519081016040528092919081815260200182805461148e90612fbd565b80156114db5780601f106114b0576101008083540402835291602001916114db565b820191906000526020600020905b8154815290600101906020018083116114be57829003601f168201915b5050505050905090565b600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614611575576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161156c9061303a565b60405180910390fd5b611580600a82612351565b5050565b8060076000611591612133565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff1661163e612133565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c318360405161168391906125f3565b60405180910390a35050565b7f02085f6c1c4c340d620c28fde15dc8eef0d84d4a70ae6b3d65ed1a77582ddca781565b6116be848484610d2b565b60008373ffffffffffffffffffffffffffffffffffffffff163b14611720576116e984848484612386565b61171f576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b50505050565b600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146117b6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117ad9061303a565b60405180910390fd5b6115b36117c1611e50565b82011115611804576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117fb90612f6e565b60405180910390fd5b61180e3382611f19565b50565b606061181c826120d4565b61185b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611852906132c7565b60405180910390fd5b611867600a6004611e1e565b6118fd57600c805461187890612fbd565b80601f01602080910402602001604051908101604052809291908181526020018280546118a490612fbd565b80156118f15780601f106118c6576101008083540402835291602001916118f1565b820191906000526020600020905b8154815290600101906020018083116118d457829003601f168201915b5050505050905061192b565b600b611908836124d6565b6040516020016119199291906133bb565b60405160208183030381529060405290505b919050565b7f02e221b0c533d0329cc255f3aafe01dae93ca94fc47b6aa042a290da2596f74e81565b600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146119e4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119db9061303a565b60405180910390fd5b8181600b91826119f5929190613581565b505050565b6000600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b600160095414611ad3576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611aca90612d29565b60405180910390fd5b60026009819055503273ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614611b49576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b409061369d565b60405180910390fd5b60038133611b59600a6001611e1e565b611b98576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b8f90613709565b60405180910390fd5b82611ba2826122fa565b83011115611be5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611bdc90613775565b60405180910390fd5b6115b3610ad983611bf4611e50565b01011115611c37576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c2e906137e1565b60405180910390fd5b838066753d533d968000611c4b91906131cd565b3414611c8c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c839061325b565b60405180910390fd5b611c963386611f19565b50505050600160098190555050565b600381565b6000610ad9611cb7611e50565b611cc19190613801565b6115b3611cce9190613835565b905090565b600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614611d63576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d5a9061303a565b60405180910390fd5b8181600c9182611d74929190613581565b505050565b60008315611dc4578360051b8501855b600115611dc1578035841160051b8481528135602082185260406000209450602082019150828210611dbb5750611dc1565b50611d89565b50505b8282149050949350505050565b600060c0600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054901c9050919050565b600080600160ff8416856000016000600887901c815260200190815260200160002054901c1690508091505092915050565b6000611e5a61213b565b60005403905090565b6000600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050600082905060c081901b77ffffffffffffffffffffffffffffffffffffffffffffffff831617915081600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555050505050565b60008054905060008203611f59576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b611f66600084838561227b565b600160406001901b178202600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282540192505081905550611fdd83611fce6000866000612281565b611fd785612526565b176122a9565b6004600083815260200190815260200160002081905550600080838301905073ffffffffffffffffffffffffffffffffffffffff85169150828260007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600183015b81811461207e57808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600181019050612043565b50600082036120b9576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8060008190555050506120cf60008483856122d4565b505050565b6000816120df61213b565b111580156120ee575060005482105b801561212c575060007c0100000000000000000000000000000000000000000000000000000000600460008581526020019081526020016000205416145b9050919050565b600033905090565b60006001905090565b6000808290508061215361213b565b116121d9576000548110156121d85760006004600083815260200190815260200160002054905060007c01000000000000000000000000000000000000000000000000000000008216036121d6575b600081036121cc5760046000836001900393508381526020019081526020016000205490506121a2565b809250505061220b565b505b5b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b919050565b60008060006006600085815260200190815260200160002090508092508254915050915091565b600073ffffffffffffffffffffffffffffffffffffffff8316925073ffffffffffffffffffffffffffffffffffffffff821691508382148383141790509392505050565b50505050565b60008060e883901c905060e8612298868684612536565b62ffffff16901b9150509392505050565b600073ffffffffffffffffffffffffffffffffffffffff83169250814260a01b178317905092915050565b50505050565b60008060008084865af16122f65763b12d13eb6000526004601cfd5b5050565b600067ffffffffffffffff6040600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054901c169050919050565b60008160081c60005282602052604060002060ff831681546001821b8082189150808216151594508184555050505092915050565b60008373ffffffffffffffffffffffffffffffffffffffff1663150b7a026123ac612133565b8786866040518563ffffffff1660e01b81526004016123ce94939291906138be565b6020604051808303816000875af192505050801561240a57506040513d601f19601f82011682018060405250810190612407919061391f565b60015b612483573d806000811461243a576040519150601f19603f3d011682016040523d82523d6000602084013e61243f565b606091505b50600081510361247b576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050949350505050565b606060a060405101806040526020810391506000825281835b60011561251157600184039350600a81066030018453600a81049050806124ef575b50828103602084039350808452505050919050565b60006001821460e11b9050919050565b60009392505050565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b61258881612553565b811461259357600080fd5b50565b6000813590506125a58161257f565b92915050565b6000602082840312156125c1576125c0612549565b5b60006125cf84828501612596565b91505092915050565b60008115159050919050565b6125ed816125d8565b82525050565b600060208201905061260860008301846125e4565b92915050565b6000819050919050565b6126218161260e565b811461262c57600080fd5b50565b60008135905061263e81612618565b92915050565b600080fd5b600080fd5b600080fd5b60008083601f84011261266957612668612644565b5b8235905067ffffffffffffffff81111561268657612685612649565b5b6020830191508360208202830111156126a2576126a161264e565b5b9250929050565b6000806000604084860312156126c2576126c1612549565b5b60006126d08682870161262f565b935050602084013567ffffffffffffffff8111156126f1576126f061254e565b5b6126fd86828701612653565b92509250509250925092565b600081519050919050565b600082825260208201905092915050565b60005b83811015612743578082015181840152602081019050612728565b60008484015250505050565b6000601f19601f8301169050919050565b600061276b82612709565b6127758185612714565b9350612785818560208601612725565b61278e8161274f565b840191505092915050565b600060208201905081810360008301526127b38184612760565b905092915050565b6000602082840312156127d1576127d0612549565b5b60006127df8482850161262f565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000612813826127e8565b9050919050565b61282381612808565b82525050565b600060208201905061283e600083018461281a565b92915050565b61284d81612808565b811461285857600080fd5b50565b60008135905061286a81612844565b92915050565b6000806040838503121561288757612886612549565b5b60006128958582860161285b565b92505060206128a68582860161262f565b9150509250929050565b6000602082840312156128c6576128c5612549565b5b60006128d48482850161285b565b91505092915050565b6128e68161260e565b82525050565b600060208201905061290160008301846128dd565b92915050565b6000806000606084860312156129205761291f612549565b5b600061292e8682870161285b565b935050602061293f8682870161285b565b92505060406129508682870161262f565b9150509250925092565b6000806020838503121561297157612970612549565b5b600083013567ffffffffffffffff81111561298f5761298e61254e565b5b61299b85828601612653565b92509250509250929050565b6129b0816125d8565b81146129bb57600080fd5b50565b6000813590506129cd816129a7565b92915050565b600080604083850312156129ea576129e9612549565b5b60006129f88582860161285b565b9250506020612a09858286016129be565b9150509250929050565b6000819050919050565b612a2681612a13565b82525050565b6000602082019050612a416000830184612a1d565b92915050565b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b612a848261274f565b810181811067ffffffffffffffff82111715612aa357612aa2612a4c565b5b80604052505050565b6000612ab661253f565b9050612ac28282612a7b565b919050565b600067ffffffffffffffff821115612ae257612ae1612a4c565b5b612aeb8261274f565b9050602081019050919050565b82818337600083830152505050565b6000612b1a612b1584612ac7565b612aac565b905082815260208101848484011115612b3657612b35612a47565b5b612b41848285612af8565b509392505050565b600082601f830112612b5e57612b5d612644565b5b8135612b6e848260208601612b07565b91505092915050565b60008060008060808587031215612b9157612b90612549565b5b6000612b9f8782880161285b565b9450506020612bb08782880161285b565b9350506040612bc18782880161262f565b925050606085013567ffffffffffffffff811115612be257612be161254e565b5b612bee87828801612b49565b91505092959194509250565b60008083601f840112612c1057612c0f612644565b5b8235905067ffffffffffffffff811115612c2d57612c2c612649565b5b602083019150836001820283011115612c4957612c4861264e565b5b9250929050565b60008060208385031215612c6757612c66612549565b5b600083013567ffffffffffffffff811115612c8557612c8461254e565b5b612c9185828601612bfa565b92509250509250929050565b60008060408385031215612cb457612cb3612549565b5b6000612cc28582860161285b565b9250506020612cd38582860161285b565b9150509250929050565b7f5245454e5452414e435900000000000000000000000000000000000000000000600082015250565b6000612d13600a83612714565b9150612d1e82612cdd565b602082019050919050565b60006020820190508181036000830152612d4281612d06565b9050919050565b60008160601b9050919050565b6000612d6182612d49565b9050919050565b6000612d7382612d56565b9050919050565b612d8b612d8682612808565b612d68565b82525050565b6000819050919050565b612dac612da78261260e565b612d91565b82525050565b6000612dbe8285612d7a565b601482019150612dce8284612d9b565b6020820191508190509392505050565b7f494e56414c49445f50524f4f4600000000000000000000000000000000000000600082015250565b6000612e14600d83612714565b9150612e1f82612dde565b602082019050919050565b60006020820190508181036000830152612e4381612e07565b9050919050565b7f4d41585f4d494e54000000000000000000000000000000000000000000000000600082015250565b6000612e80600883612714565b9150612e8b82612e4a565b602082019050919050565b60006020820190508181036000830152612eaf81612e73565b9050919050565b7f574c5f5041555345440000000000000000000000000000000000000000000000600082015250565b6000612eec600983612714565b9150612ef782612eb6565b602082019050919050565b60006020820190508181036000830152612f1b81612edf565b9050919050565b7f4d41585f535550504c5900000000000000000000000000000000000000000000600082015250565b6000612f58600a83612714565b9150612f6382612f22565b602082019050919050565b60006020820190508181036000830152612f8781612f4b565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60006002820490506001821680612fd557607f821691505b602082108103612fe857612fe7612f8e565b5b50919050565b7f554e415554484f52495a45440000000000000000000000000000000000000000600082015250565b6000613024600c83612714565b915061302f82612fee565b602082019050919050565b6000602082019050818103600083015261305381613017565b9050919050565b7f4f475f5041555345000000000000000000000000000000000000000000000000600082015250565b6000613090600883612714565b915061309b8261305a565b602082019050919050565b600060208201905081810360008301526130bf81613083565b9050919050565b7f4d41585f4d494e545f4f47000000000000000000000000000000000000000000600082015250565b60006130fc600b83612714565b9150613107826130c6565b602082019050919050565b6000602082019050818103600083015261312b816130ef565b9050919050565b7f4d41585f535550504c595f4f4700000000000000000000000000000000000000600082015250565b6000613168600d83612714565b915061317382613132565b602082019050919050565b600060208201905081810360008301526131978161315b565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60006131d88261260e565b91506131e38361260e565b92508282026131f18161260e565b915082820484148315176132085761320761319e565b5b5092915050565b7f494e56414c49445f505249434500000000000000000000000000000000000000600082015250565b6000613245600d83612714565b91506132508261320f565b602082019050919050565b6000602082019050818103600083015261327481613238565b9050919050565b7f5552495175657279466f724e6f6e6578697374656e74546f6b656e0000000000600082015250565b60006132b1601b83612714565b91506132bc8261327b565b602082019050919050565b600060208201905081810360008301526132e0816132a4565b9050919050565b600081905092915050565b60008190508160005260206000209050919050565b6000815461331481612fbd565b61331e81866132e7565b94506001821660008114613339576001811461334e57613381565b60ff1983168652811515820286019350613381565b613357856132f2565b60005b838110156133795781548189015260018201915060208101905061335a565b838801955050505b50505092915050565b600061339582612709565b61339f81856132e7565b93506133af818560208601612725565b80840191505092915050565b60006133c78285613307565b91506133d3828461338a565b91508190509392505050565b600082905092915050565b60006020601f8301049050919050565b600082821b905092915050565b6000600883026134377fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff826133fa565b61344186836133fa565b95508019841693508086168417925050509392505050565b6000819050919050565b600061347e6134796134748461260e565b613459565b61260e565b9050919050565b6000819050919050565b61349883613463565b6134ac6134a482613485565b848454613407565b825550505050565b600090565b6134c16134b4565b6134cc81848461348f565b505050565b5b818110156134f0576134e56000826134b9565b6001810190506134d2565b5050565b601f82111561353557613506816132f2565b61350f846133ea565b8101602085101561351e578190505b61353261352a856133ea565b8301826134d1565b50505b505050565b600082821c905092915050565b60006135586000198460080261353a565b1980831691505092915050565b60006135718383613547565b9150826002028217905092915050565b61358b83836133df565b67ffffffffffffffff8111156135a4576135a3612a4c565b5b6135ae8254612fbd565b6135b98282856134f4565b6000601f8311600181146135e857600084156135d6578287013590505b6135e08582613565565b865550613648565b601f1984166135f6866132f2565b60005b8281101561361e578489013582556001820191506020850194506020810190506135f9565b8683101561363b5784890135613637601f891682613547565b8355505b6001600288020188555050505b50505050505050565b7f4e4f5f434f4e5452414354530000000000000000000000000000000000000000600082015250565b6000613687600c83612714565b915061369282613651565b602082019050919050565b600060208201905081810360008301526136b68161367a565b9050919050565b7f5055424c49435f50415553450000000000000000000000000000000000000000600082015250565b60006136f3600c83612714565b91506136fe826136bd565b602082019050919050565b60006020820190508181036000830152613722816136e6565b9050919050565b7f4d41585f4d494e545f5055424c49430000000000000000000000000000000000600082015250565b600061375f600f83612714565b915061376a82613729565b602082019050919050565b6000602082019050818103600083015261378e81613752565b9050919050565b7f4d41585f535550504c595f5055424c4943000000000000000000000000000000600082015250565b60006137cb601183612714565b91506137d682613795565b602082019050919050565b600060208201905081810360008301526137fa816137be565b9050919050565b600061380c8261260e565b91506138178361260e565b925082820190508082111561382f5761382e61319e565b5b92915050565b60006138408261260e565b915061384b8361260e565b92508282039050818111156138635761386261319e565b5b92915050565b600081519050919050565b600082825260208201905092915050565b600061389082613869565b61389a8185613874565b93506138aa818560208601612725565b6138b38161274f565b840191505092915050565b60006080820190506138d3600083018761281a565b6138e0602083018661281a565b6138ed60408301856128dd565b81810360608301526138ff8184613885565b905095945050505050565b6000815190506139198161257f565b92915050565b60006020828403121561393557613934612549565b5b60006139438482850161390a565b9150509291505056fea2646970667358221220073722186c792c2e07bdcbc856db61edf43c816a554fe589fc583d61e689ae7664736f6c63430008110033

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

000000000000000000000000000000000000000000000000000000000000006002e221b0c533d0329cc255f3aafe01dae93ca94fc47b6aa042a290da2596f74e02085f6c1c4c340d620c28fde15dc8eef0d84d4a70ae6b3d65ed1a77582ddca7000000000000000000000000000000000000000000000000000000000000005968747470733a2f2f676174657761792e70696e6174612e636c6f75642f697066732f516d6147474343455a4e6d6e72614a38714a53356a77515471414c4b46687252445a525833744e62576f435a69422f6d6574616461746100000000000000

-----Decoded View---------------
Arg [0] : unrevealedURI_ (string): https://gateway.pinata.cloud/ipfs/QmaGGCCEZNmnraJ8qJS5jwQTqALKFhrRDZRX3tNbWoCZiB/metadata
Arg [1] : _merkleRootWL (bytes32): 0x02e221b0c533d0329cc255f3aafe01dae93ca94fc47b6aa042a290da2596f74e
Arg [2] : _merkleRootOG (bytes32): 0x02085f6c1c4c340d620c28fde15dc8eef0d84d4a70ae6b3d65ed1a77582ddca7

-----Encoded View---------------
7 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000060
Arg [1] : 02e221b0c533d0329cc255f3aafe01dae93ca94fc47b6aa042a290da2596f74e
Arg [2] : 02085f6c1c4c340d620c28fde15dc8eef0d84d4a70ae6b3d65ed1a77582ddca7
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000059
Arg [4] : 68747470733a2f2f676174657761792e70696e6174612e636c6f75642f697066
Arg [5] : 732f516d6147474343455a4e6d6e72614a38714a53356a77515471414c4b4668
Arg [6] : 7252445a525833744e62576f435a69422f6d6574616461746100000000000000


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.