ETH Price: $3,488.56 (+3.49%)
Gas: 4 Gwei

Token

LILPALS (LILPALS)
 

Overview

Max Total Supply

1,192 LILPALS

Holders

252

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Balance
5 LILPALS
0xdFA3880c3643c72805413f24557E2Ff1f2226Faa
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:
LILPALS

Compiler Version
v0.8.4+commit.c7e474f2

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 9 : LILPALS.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/cryptography/ECDSA.sol";
import "@openzeppelin/contracts/utils/cryptography/draft-EIP712.sol";
import "@openzeppelin/contracts/utils/Strings.sol";
import "@openzeppelin/contracts/utils/structs/BitMaps.sol";
import "erc721a/contracts/ERC721A.sol";

contract LILPALS is ERC721A, EIP712, Ownable {
    using ECDSA for bytes32;
    using Strings for uint256;
    uint256 public collectionSize;
    uint256 public freeMintCount;
    string public baseURI;
    address private signerAddress;
    address private withdrawAddress;
    enum SalePhase {
        Paused,
        Free,
        AllowList,
        Public,
        WhiteList
    }

    struct WhiteListInfo {
            uint64 startTimestamp;
            uint64 price;
            uint64 maxMint;
            uint64 phase;
            uint256 whiteListMinted;    
        }

    struct SaleConfig {
        uint64 startTimestamp;
        uint64 price;
        uint64 maxMint;
        SalePhase phase;
    }

    mapping(SalePhase => mapping(address => uint256)) public mintedCount;

    SaleConfig public saleConfig;

    SaleConfig public whiteListConfig;

    constructor(
        address _signerAddress,
        address _withdrawAddress,
        uint16 _collectionSize
    ) ERC721A("LILPALS", "LILPALS") EIP712("LILPALS", "1") {
        signerAddress = _signerAddress;
        withdrawAddress = _withdrawAddress;
        collectionSize = _collectionSize;
        freeMintCount = 1000;
        _safeMint(owner(), 1);
    }

    function setSignerAddress(address newSignerAddress) external onlyOwner {
        signerAddress = newSignerAddress;
    }

    function setWithdrawAddress(address newWithdrawAddress) external onlyOwner {
        withdrawAddress = newWithdrawAddress;
    }

    modifier isAtSalePhase(SalePhase phase) {
        unchecked {
            require(
                saleConfig.phase == phase &&
                    block.timestamp >= saleConfig.startTimestamp,
                "Sale phase mismatch."
            );
        }
        _;
    }

    modifier isAtSalePhaseWhite(SalePhase phase) {
        unchecked {
            require(
                whiteListConfig.phase == phase &&
                    block.timestamp >= whiteListConfig.startTimestamp,
                "Sale phase mismatch."
            );
        }
        _;
    }

    function checkAndUpdateMintedCount(SalePhase phase, uint256 quantity)
        private
    {
        unchecked {
            require(
                mintedCount[phase][msg.sender] + quantity <= saleConfig.maxMint,
                "Too many lilpals to adopt."
            );

            mintedCount[phase][msg.sender] += quantity;
        }
    }

     function checkAndUpdateMintedCountWhite(SalePhase phase, uint256 quantity)
        private
    {
        unchecked {
            require(
                mintedCount[phase][msg.sender] + quantity <= whiteListConfig.maxMint,
                "Too many lilpals to adopt."
            );
            mintedCount[phase][msg.sender] += quantity;
        }
    }

    modifier checkPrice(SalePhase phase, uint256 quantity) {
        unchecked {
            require(
                msg.value == quantity * saleConfig.price,
                "Incorrect price."
            );
        }
        _;
    }

     modifier checkPriceWhite(SalePhase phase, uint256 quantity) {
        unchecked {
            require(
                msg.value == quantity * whiteListConfig.price,
                "Incorrect price."
            );
        }
        _;
    }

    modifier callerIsUser() {
        require(tx.origin == msg.sender, "The caller is another contract.");
        _;
    }

    modifier isWithdrawAddress() {
        require(
            withdrawAddress == msg.sender,
            "The caller is incorrect address."
        );
        _;
    }

    function _hash(string memory _prefix, address _address)
        internal
        view
        returns (bytes32)
    {
        return keccak256(abi.encodePacked(_prefix, address(this), _address));
    }

    function _verify(bytes32 hash, bytes memory signature)
        internal
        view
        returns (bool)
    {
        return (_recover(hash, signature) == signerAddress);
    }

    function _recover(bytes32 hash, bytes memory signature)
        internal
        pure
        returns (address)
    {
        return hash.toEthSignedMessageHash().recover(signature);
    }

    function whiteListAdopt(
        uint256 quantity,
        bytes32 hash,
        bytes calldata signature
    )
        external
        payable
        callerIsUser
        isAtSalePhaseWhite(SalePhase.WhiteList)
        checkPriceWhite(SalePhase.WhiteList, quantity)
    {
        checkAndUpdateMintedCountWhite(SalePhase.WhiteList, quantity);
        require(_hash("whiteList", msg.sender) == hash, "Invalid hash.");
        require(_verify(hash, signature), "Invalid signature.");
        unchecked {
            require(
                _totalMinted() + quantity <= collectionSize,
                "Max supply reached."
            );
        }

        _safeMint(msg.sender, quantity);
    }


    function allowListAdopt(
        uint256 quantity,
        bytes32 hash,
        bytes calldata signature
    )
        external
        payable
        callerIsUser
        isAtSalePhase(SalePhase.AllowList)
        checkPrice(SalePhase.AllowList, quantity)
    {
        checkAndUpdateMintedCount(SalePhase.AllowList, quantity);
        require(_hash("allowList", msg.sender) == hash, "Invalid hash.");
        require(_verify(hash, signature), "Invalid signature.");
        unchecked {
            require(
                _totalMinted() + quantity <= collectionSize,
                "Max supply reached."
            );
        }

        _safeMint(msg.sender, quantity);
    }

    function freeAdopt(
        uint256 quantity
    )
        external
        payable
        callerIsUser
        isAtSalePhase(SalePhase.Free)
        checkPrice(SalePhase.Free, quantity)
    {
        checkAndUpdateMintedCount(SalePhase.Free, quantity);
        unchecked {
            require(
                _totalMinted() + quantity <= collectionSize,
                "Max supply reached."
            );
        }
        unchecked {
            require(
                _totalMinted() + quantity <= freeMintCount,
                "Free mint supply reached."
            );
        }
        _safeMint(msg.sender, quantity);
    }

    function publicAdopt(
        uint256 quantity
    )
        external
        payable
        callerIsUser
        isAtSalePhase(SalePhase.Public)
        checkPrice(SalePhase.Public, quantity)
    {
        checkAndUpdateMintedCount(SalePhase.Public, quantity);        
        unchecked {
            require(
                _totalMinted() + quantity <= collectionSize,
                "Max supply reached."
            );
        }

        _safeMint(msg.sender, quantity);
    }

    function startFreeSale(uint64 startTime, uint64 maxMint)
        external
        onlyOwner
    {
        saleConfig = SaleConfig(startTime, 0, maxMint, SalePhase.Free);
    }

    function startAllowlistSale(
        uint64 price,
        uint64 startTime,
        uint64 maxMint
    ) external onlyOwner {
        saleConfig = SaleConfig(startTime, price, maxMint, SalePhase.AllowList);
    }

    function startPublicSale(
        uint64 price,
        uint64 startTime,
        uint64 maxMint
    ) external onlyOwner {
        saleConfig = SaleConfig(startTime, price, maxMint, SalePhase.Public);
    }

    function setSaleConfig(SaleConfig calldata _saleConfig) external onlyOwner {
        saleConfig = _saleConfig;
    }

    function startWhiteListSale(uint64 price,uint64 startTime, uint64 maxMint)
        external
        onlyOwner
    {
        whiteListConfig = SaleConfig(startTime, price, maxMint, SalePhase.WhiteList);
    }    

     function pauseWhiteListSale(uint64 price,uint64 startTime, uint64 maxMint)
        external
        onlyOwner
    {
        whiteListConfig = SaleConfig(startTime, price, maxMint, SalePhase.Paused);
    }   

    function setSaleConfigWhiteList(SaleConfig calldata _saleConfig) external onlyOwner {
        whiteListConfig = _saleConfig;
    }

    function setFreeMintCount(uint64 _freeMintCount)
        external
        onlyOwner
    {
        freeMintCount = _freeMintCount;
    }

  function setCollectionSize(uint64 _collectionSize)
        external
        onlyOwner
    {
        collectionSize = _collectionSize;
    }


    function setBaseURI(string memory newBaseURI) external onlyOwner {
        baseURI = newBaseURI;
    }

    function tokenURI(uint256 tokenId)
        public
        view
        override
        returns (string memory)
    {
        if (!_exists(tokenId)) revert URIQueryForNonexistentToken();

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

    function withdraw(address beneficiary) external onlyOwner {
        payable(beneficiary).transfer(address(this).balance);
    }

    function withdraw() external isWithdrawAddress  callerIsUser() {
        payable(withdrawAddress).transfer(address(this).balance);
    }

    function getMintedInfo(address _address)
        external
        view
        returns (
            uint256 freeMinted,
            uint256 allowListMinted,
            uint256 publicMinted,            
            uint256 totalMinted,
            uint256 _collectionSize,          
            uint64 startTimestamp,
            uint64 price,
            uint64 maxMint,
            uint64 phase,
            WhiteListInfo memory _whiteListInfo     
        )
    {
        uint256 _whiteListMinted = mintedCount[SalePhase.WhiteList][_address];
        return (
            mintedCount[SalePhase.Free][_address],
            mintedCount[SalePhase.AllowList][_address],
            mintedCount[SalePhase.Public][_address],
            _totalMinted(),
            collectionSize,           
            saleConfig.startTimestamp,
            saleConfig.price,
            saleConfig.maxMint,
            saleConfig.phase==SalePhase.Paused?0:saleConfig.phase==SalePhase.Free?1:saleConfig.phase==SalePhase.AllowList?2:3,
           WhiteListInfo(whiteListConfig.startTimestamp,whiteListConfig.price,whiteListConfig.maxMint,
           (whiteListConfig.phase==SalePhase.Paused?0:whiteListConfig.phase==SalePhase.Free?1:whiteListConfig.phase==SalePhase.AllowList?2:whiteListConfig.phase==SalePhase.Public?3:4)
           ,_whiteListMinted)
        );
    }
}

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

import "../Strings.sol";

/**
 * @dev Elliptic Curve Digital Signature Algorithm (ECDSA) operations.
 *
 * These functions can be used to verify that a message was signed by the holder
 * of the private keys of a given address.
 */
library ECDSA {
    enum RecoverError {
        NoError,
        InvalidSignature,
        InvalidSignatureLength,
        InvalidSignatureS,
        InvalidSignatureV
    }

    function _throwError(RecoverError error) private pure {
        if (error == RecoverError.NoError) {
            return; // no error: do nothing
        } else if (error == RecoverError.InvalidSignature) {
            revert("ECDSA: invalid signature");
        } else if (error == RecoverError.InvalidSignatureLength) {
            revert("ECDSA: invalid signature length");
        } else if (error == RecoverError.InvalidSignatureS) {
            revert("ECDSA: invalid signature 's' value");
        } else if (error == RecoverError.InvalidSignatureV) {
            revert("ECDSA: invalid signature 'v' value");
        }
    }

    /**
     * @dev Returns the address that signed a hashed message (`hash`) with
     * `signature` or error string. This address can then be used for verification purposes.
     *
     * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures:
     * this function rejects them by requiring the `s` value to be in the lower
     * half order, and the `v` value to be either 27 or 28.
     *
     * IMPORTANT: `hash` _must_ be the result of a hash operation for the
     * verification to be secure: it is possible to craft signatures that
     * recover to arbitrary addresses for non-hashed data. A safe way to ensure
     * this is by receiving a hash of the original message (which may otherwise
     * be too long), and then calling {toEthSignedMessageHash} on it.
     *
     * Documentation for signature generation:
     * - with https://web3js.readthedocs.io/en/v1.3.4/web3-eth-accounts.html#sign[Web3.js]
     * - with https://docs.ethers.io/v5/api/signer/#Signer-signMessage[ethers]
     *
     * _Available since v4.3._
     */
    function tryRecover(bytes32 hash, bytes memory signature) internal pure returns (address, RecoverError) {
        // Check the signature length
        // - case 65: r,s,v signature (standard)
        // - case 64: r,vs signature (cf https://eips.ethereum.org/EIPS/eip-2098) _Available since v4.1._
        if (signature.length == 65) {
            bytes32 r;
            bytes32 s;
            uint8 v;
            // ecrecover takes the signature parameters, and the only way to get them
            // currently is to use assembly.
            assembly {
                r := mload(add(signature, 0x20))
                s := mload(add(signature, 0x40))
                v := byte(0, mload(add(signature, 0x60)))
            }
            return tryRecover(hash, v, r, s);
        } else if (signature.length == 64) {
            bytes32 r;
            bytes32 vs;
            // ecrecover takes the signature parameters, and the only way to get them
            // currently is to use assembly.
            assembly {
                r := mload(add(signature, 0x20))
                vs := mload(add(signature, 0x40))
            }
            return tryRecover(hash, r, vs);
        } else {
            return (address(0), RecoverError.InvalidSignatureLength);
        }
    }

    /**
     * @dev Returns the address that signed a hashed message (`hash`) with
     * `signature`. This address can then be used for verification purposes.
     *
     * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures:
     * this function rejects them by requiring the `s` value to be in the lower
     * half order, and the `v` value to be either 27 or 28.
     *
     * IMPORTANT: `hash` _must_ be the result of a hash operation for the
     * verification to be secure: it is possible to craft signatures that
     * recover to arbitrary addresses for non-hashed data. A safe way to ensure
     * this is by receiving a hash of the original message (which may otherwise
     * be too long), and then calling {toEthSignedMessageHash} on it.
     */
    function recover(bytes32 hash, bytes memory signature) internal pure returns (address) {
        (address recovered, RecoverError error) = tryRecover(hash, signature);
        _throwError(error);
        return recovered;
    }

    /**
     * @dev Overload of {ECDSA-tryRecover} that receives the `r` and `vs` short-signature fields separately.
     *
     * See https://eips.ethereum.org/EIPS/eip-2098[EIP-2098 short signatures]
     *
     * _Available since v4.3._
     */
    function tryRecover(
        bytes32 hash,
        bytes32 r,
        bytes32 vs
    ) internal pure returns (address, RecoverError) {
        bytes32 s = vs & bytes32(0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff);
        uint8 v = uint8((uint256(vs) >> 255) + 27);
        return tryRecover(hash, v, r, s);
    }

    /**
     * @dev Overload of {ECDSA-recover} that receives the `r and `vs` short-signature fields separately.
     *
     * _Available since v4.2._
     */
    function recover(
        bytes32 hash,
        bytes32 r,
        bytes32 vs
    ) internal pure returns (address) {
        (address recovered, RecoverError error) = tryRecover(hash, r, vs);
        _throwError(error);
        return recovered;
    }

    /**
     * @dev Overload of {ECDSA-tryRecover} that receives the `v`,
     * `r` and `s` signature fields separately.
     *
     * _Available since v4.3._
     */
    function tryRecover(
        bytes32 hash,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) internal pure returns (address, RecoverError) {
        // EIP-2 still allows signature malleability for ecrecover(). Remove this possibility and make the signature
        // unique. Appendix F in the Ethereum Yellow paper (https://ethereum.github.io/yellowpaper/paper.pdf), defines
        // the valid range for s in (301): 0 < s < secp256k1n ÷ 2 + 1, and for v in (302): v ∈ {27, 28}. Most
        // signatures from current libraries generate a unique signature with an s-value in the lower half order.
        //
        // If your library generates malleable signatures, such as s-values in the upper range, calculate a new s-value
        // with 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141 - s1 and flip v from 27 to 28 or
        // vice versa. If your library also generates signatures with 0/1 for v instead 27/28, add 27 to v to accept
        // these malleable signatures as well.
        if (uint256(s) > 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0) {
            return (address(0), RecoverError.InvalidSignatureS);
        }
        if (v != 27 && v != 28) {
            return (address(0), RecoverError.InvalidSignatureV);
        }

        // If the signature is valid (and not malleable), return the signer address
        address signer = ecrecover(hash, v, r, s);
        if (signer == address(0)) {
            return (address(0), RecoverError.InvalidSignature);
        }

        return (signer, RecoverError.NoError);
    }

    /**
     * @dev Overload of {ECDSA-recover} that receives the `v`,
     * `r` and `s` signature fields separately.
     */
    function recover(
        bytes32 hash,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) internal pure returns (address) {
        (address recovered, RecoverError error) = tryRecover(hash, v, r, s);
        _throwError(error);
        return recovered;
    }

    /**
     * @dev Returns an Ethereum Signed Message, created from a `hash`. This
     * produces hash corresponding to the one signed with the
     * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`]
     * JSON-RPC method as part of EIP-191.
     *
     * See {recover}.
     */
    function toEthSignedMessageHash(bytes32 hash) internal pure returns (bytes32) {
        // 32 is the length in bytes of hash,
        // enforced by the type signature above
        return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n32", hash));
    }

    /**
     * @dev Returns an Ethereum Signed Message, created from `s`. This
     * produces hash corresponding to the one signed with the
     * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`]
     * JSON-RPC method as part of EIP-191.
     *
     * See {recover}.
     */
    function toEthSignedMessageHash(bytes memory s) internal pure returns (bytes32) {
        return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n", Strings.toString(s.length), s));
    }

    /**
     * @dev Returns an Ethereum Signed Typed Data, created from a
     * `domainSeparator` and a `structHash`. This produces hash corresponding
     * to the one signed with the
     * https://eips.ethereum.org/EIPS/eip-712[`eth_signTypedData`]
     * JSON-RPC method as part of EIP-712.
     *
     * See {recover}.
     */
    function toTypedDataHash(bytes32 domainSeparator, bytes32 structHash) internal pure returns (bytes32) {
        return keccak256(abi.encodePacked("\x19\x01", domainSeparator, structHash));
    }
}

File 4 of 9 : draft-EIP712.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/cryptography/draft-EIP712.sol)

pragma solidity ^0.8.0;

import "./ECDSA.sol";

/**
 * @dev https://eips.ethereum.org/EIPS/eip-712[EIP 712] is a standard for hashing and signing of typed structured data.
 *
 * The encoding specified in the EIP is very generic, and such a generic implementation in Solidity is not feasible,
 * thus this contract does not implement the encoding itself. Protocols need to implement the type-specific encoding
 * they need in their contracts using a combination of `abi.encode` and `keccak256`.
 *
 * This contract implements the EIP 712 domain separator ({_domainSeparatorV4}) that is used as part of the encoding
 * scheme, and the final step of the encoding to obtain the message digest that is then signed via ECDSA
 * ({_hashTypedDataV4}).
 *
 * The implementation of the domain separator was designed to be as efficient as possible while still properly updating
 * the chain id to protect against replay attacks on an eventual fork of the chain.
 *
 * NOTE: This contract implements the version of the encoding known as "v4", as implemented by the JSON RPC method
 * https://docs.metamask.io/guide/signing-data.html[`eth_signTypedDataV4` in MetaMask].
 *
 * _Available since v3.4._
 */
abstract contract EIP712 {
    /* solhint-disable var-name-mixedcase */
    // Cache the domain separator as an immutable value, but also store the chain id that it corresponds to, in order to
    // invalidate the cached domain separator if the chain id changes.
    bytes32 private immutable _CACHED_DOMAIN_SEPARATOR;
    uint256 private immutable _CACHED_CHAIN_ID;
    address private immutable _CACHED_THIS;

    bytes32 private immutable _HASHED_NAME;
    bytes32 private immutable _HASHED_VERSION;
    bytes32 private immutable _TYPE_HASH;

    /* solhint-enable var-name-mixedcase */

    /**
     * @dev Initializes the domain separator and parameter caches.
     *
     * The meaning of `name` and `version` is specified in
     * https://eips.ethereum.org/EIPS/eip-712#definition-of-domainseparator[EIP 712]:
     *
     * - `name`: the user readable name of the signing domain, i.e. the name of the DApp or the protocol.
     * - `version`: the current major version of the signing domain.
     *
     * NOTE: These parameters cannot be changed except through a xref:learn::upgrading-smart-contracts.adoc[smart
     * contract upgrade].
     */
    constructor(string memory name, string memory version) {
        bytes32 hashedName = keccak256(bytes(name));
        bytes32 hashedVersion = keccak256(bytes(version));
        bytes32 typeHash = keccak256(
            "EIP712Domain(string name,string version,uint256 chainId,address verifyingContract)"
        );
        _HASHED_NAME = hashedName;
        _HASHED_VERSION = hashedVersion;
        _CACHED_CHAIN_ID = block.chainid;
        _CACHED_DOMAIN_SEPARATOR = _buildDomainSeparator(typeHash, hashedName, hashedVersion);
        _CACHED_THIS = address(this);
        _TYPE_HASH = typeHash;
    }

    /**
     * @dev Returns the domain separator for the current chain.
     */
    function _domainSeparatorV4() internal view returns (bytes32) {
        if (address(this) == _CACHED_THIS && block.chainid == _CACHED_CHAIN_ID) {
            return _CACHED_DOMAIN_SEPARATOR;
        } else {
            return _buildDomainSeparator(_TYPE_HASH, _HASHED_NAME, _HASHED_VERSION);
        }
    }

    function _buildDomainSeparator(
        bytes32 typeHash,
        bytes32 nameHash,
        bytes32 versionHash
    ) private view returns (bytes32) {
        return keccak256(abi.encode(typeHash, nameHash, versionHash, block.chainid, address(this)));
    }

    /**
     * @dev Given an already https://eips.ethereum.org/EIPS/eip-712#definition-of-hashstruct[hashed struct], this
     * function returns the hash of the fully encoded EIP712 message for this domain.
     *
     * This hash can be used together with {ECDSA-recover} to obtain the signer of a message. For example:
     *
     * ```solidity
     * bytes32 digest = _hashTypedDataV4(keccak256(abi.encode(
     *     keccak256("Mail(address to,string contents)"),
     *     mailTo,
     *     keccak256(bytes(mailContents))
     * )));
     * address signer = ECDSA.recover(digest, signature);
     * ```
     */
    function _hashTypedDataV4(bytes32 structHash) internal view virtual returns (bytes32) {
        return ECDSA.toTypedDataHash(_domainSeparatorV4(), structHash);
    }
}

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

pragma solidity ^0.8.0;

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

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

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

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

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

File 6 of 9 : BitMaps.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/structs/BitMaps.sol)
pragma solidity ^0.8.0;

/**
 * @dev Library for managing uint256 to bool mapping in a compact and efficient way, providing the keys are sequential.
 * Largelly inspired by Uniswap's https://github.com/Uniswap/merkle-distributor/blob/master/contracts/MerkleDistributor.sol[merkle-distributor].
 */
library BitMaps {
    struct BitMap {
        mapping(uint256 => uint256) _data;
    }

    /**
     * @dev Returns whether the bit at `index` is set.
     */
    function get(BitMap storage bitmap, uint256 index) internal view returns (bool) {
        uint256 bucket = index >> 8;
        uint256 mask = 1 << (index & 0xff);
        return bitmap._data[bucket] & mask != 0;
    }

    /**
     * @dev Sets the bit at `index` to the boolean `value`.
     */
    function setTo(
        BitMap storage bitmap,
        uint256 index,
        bool value
    ) internal {
        if (value) {
            set(bitmap, index);
        } else {
            unset(bitmap, index);
        }
    }

    /**
     * @dev Sets the bit at `index`.
     */
    function set(BitMap storage bitmap, uint256 index) internal {
        uint256 bucket = index >> 8;
        uint256 mask = 1 << (index & 0xff);
        bitmap._data[bucket] |= mask;
    }

    /**
     * @dev Unsets the bit at `index`.
     */
    function unset(BitMap storage bitmap, uint256 index) internal {
        uint256 bucket = index >> 8;
        uint256 mask = 1 << (index & 0xff);
        bitmap._data[bucket] &= ~mask;
    }
}

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

pragma solidity ^0.8.4;

import './IERC721A.sol';

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

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

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

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

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

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

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

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

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

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

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

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

    // Mapping from token ID to ownership details
    // An empty struct value does not necessarily mean the token is unowned.
    // See `_packedOwnershipOf` implementation for details.
    //
    // Bits Layout:
    // - [0..159]   `addr`
    // - [160..223] `startTimestamp`
    // - [224]      `burned`
    // - [225]      `nextInitialized`
    mapping(uint256 => uint256) private _packedOwnerships;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        unchecked {
            if (_startTokenId() <= curr)
                if (curr < _currentIndex) {
                    uint256 packed = _packedOwnerships[curr];
                    // If not burned.
                    if (packed & BITMASK_BURNED == 0) {
                        // Invariant:
                        // There will always be an ownership that has an address and is not burned
                        // before an ownership that does not have an address and is not burned.
                        // Hence, curr will not underflow.
                        //
                        // We can directly compare the packed value.
                        // If the address is zero, packed is zero.
                        while (packed == 0) {
                            packed = _packedOwnerships[--curr];
                        }
                        return packed;
                    }
                }
        }
        revert OwnerQueryForNonexistentToken();
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        return _tokenApprovals[tokenId];
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        _beforeTokenTransfers(from, to, tokenId, 1);

        // Clear approvals from the previous owner.
        delete _tokenApprovals[tokenId];

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

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

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

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

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

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

        address from = address(uint160(prevOwnershipPacked));

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

            if (!isApprovedOrOwner) revert TransferCallerNotOwnerNorApproved();
        }

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

        // Clear approvals from the previous owner.
        delete _tokenApprovals[tokenId];

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

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

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

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

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

pragma solidity ^0.8.4;

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

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

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

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

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

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

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

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

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

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

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

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

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

    struct TokenOwnership {
        // The address of the owner.
        address addr;
        // Keeps track of the start time of ownership with minimal overhead for tokenomics.
        uint64 startTimestamp;
        // Whether the token has been burned.
        bool burned;
    }

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

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

    /**
     * @dev Returns true if this contract implements the interface defined by
     * `interfaceId`. See the corresponding
     * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section]
     * to learn more about how these ids are created.
     *
     * This function call must use less than 30 000 gas.
     */
    function supportsInterface(bytes4 interfaceId) external view returns (bool);

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_signerAddress","type":"address"},{"internalType":"address","name":"_withdrawAddress","type":"address"},{"internalType":"uint16","name":"_collectionSize","type":"uint16"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"ApprovalToCurrentOwner","type":"error"},{"inputs":[],"name":"ApproveToCaller","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"TransferCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"TransferFromIncorrectOwner","type":"error"},{"inputs":[],"name":"TransferToNonERC721ReceiverImplementer","type":"error"},{"inputs":[],"name":"TransferToZeroAddress","type":"error"},{"inputs":[],"name":"URIQueryForNonexistentToken","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"uint256","name":"quantity","type":"uint256"},{"internalType":"bytes32","name":"hash","type":"bytes32"},{"internalType":"bytes","name":"signature","type":"bytes"}],"name":"allowListAdopt","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"collectionSize","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"freeAdopt","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"freeMintCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"getMintedInfo","outputs":[{"internalType":"uint256","name":"freeMinted","type":"uint256"},{"internalType":"uint256","name":"allowListMinted","type":"uint256"},{"internalType":"uint256","name":"publicMinted","type":"uint256"},{"internalType":"uint256","name":"totalMinted","type":"uint256"},{"internalType":"uint256","name":"_collectionSize","type":"uint256"},{"internalType":"uint64","name":"startTimestamp","type":"uint64"},{"internalType":"uint64","name":"price","type":"uint64"},{"internalType":"uint64","name":"maxMint","type":"uint64"},{"internalType":"uint64","name":"phase","type":"uint64"},{"components":[{"internalType":"uint64","name":"startTimestamp","type":"uint64"},{"internalType":"uint64","name":"price","type":"uint64"},{"internalType":"uint64","name":"maxMint","type":"uint64"},{"internalType":"uint64","name":"phase","type":"uint64"},{"internalType":"uint256","name":"whiteListMinted","type":"uint256"}],"internalType":"struct LILPALS.WhiteListInfo","name":"_whiteListInfo","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"enum LILPALS.SalePhase","name":"","type":"uint8"},{"internalType":"address","name":"","type":"address"}],"name":"mintedCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint64","name":"price","type":"uint64"},{"internalType":"uint64","name":"startTime","type":"uint64"},{"internalType":"uint64","name":"maxMint","type":"uint64"}],"name":"pauseWhiteListSale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"publicAdopt","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"saleConfig","outputs":[{"internalType":"uint64","name":"startTimestamp","type":"uint64"},{"internalType":"uint64","name":"price","type":"uint64"},{"internalType":"uint64","name":"maxMint","type":"uint64"},{"internalType":"enum LILPALS.SalePhase","name":"phase","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"newBaseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint64","name":"_collectionSize","type":"uint64"}],"name":"setCollectionSize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint64","name":"_freeMintCount","type":"uint64"}],"name":"setFreeMintCount","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"components":[{"internalType":"uint64","name":"startTimestamp","type":"uint64"},{"internalType":"uint64","name":"price","type":"uint64"},{"internalType":"uint64","name":"maxMint","type":"uint64"},{"internalType":"enum LILPALS.SalePhase","name":"phase","type":"uint8"}],"internalType":"struct LILPALS.SaleConfig","name":"_saleConfig","type":"tuple"}],"name":"setSaleConfig","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"components":[{"internalType":"uint64","name":"startTimestamp","type":"uint64"},{"internalType":"uint64","name":"price","type":"uint64"},{"internalType":"uint64","name":"maxMint","type":"uint64"},{"internalType":"enum LILPALS.SalePhase","name":"phase","type":"uint8"}],"internalType":"struct LILPALS.SaleConfig","name":"_saleConfig","type":"tuple"}],"name":"setSaleConfigWhiteList","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newSignerAddress","type":"address"}],"name":"setSignerAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newWithdrawAddress","type":"address"}],"name":"setWithdrawAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint64","name":"price","type":"uint64"},{"internalType":"uint64","name":"startTime","type":"uint64"},{"internalType":"uint64","name":"maxMint","type":"uint64"}],"name":"startAllowlistSale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint64","name":"startTime","type":"uint64"},{"internalType":"uint64","name":"maxMint","type":"uint64"}],"name":"startFreeSale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint64","name":"price","type":"uint64"},{"internalType":"uint64","name":"startTime","type":"uint64"},{"internalType":"uint64","name":"maxMint","type":"uint64"}],"name":"startPublicSale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint64","name":"price","type":"uint64"},{"internalType":"uint64","name":"startTime","type":"uint64"},{"internalType":"uint64","name":"maxMint","type":"uint64"}],"name":"startWhiteListSale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"quantity","type":"uint256"},{"internalType":"bytes32","name":"hash","type":"bytes32"},{"internalType":"bytes","name":"signature","type":"bytes"}],"name":"whiteListAdopt","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"whiteListConfig","outputs":[{"internalType":"uint64","name":"startTimestamp","type":"uint64"},{"internalType":"uint64","name":"price","type":"uint64"},{"internalType":"uint64","name":"maxMint","type":"uint64"},{"internalType":"enum LILPALS.SalePhase","name":"phase","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"beneficiary","type":"address"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]

6101406040523480156200001257600080fd5b50604051620039b7380380620039b7833981016040819052620000359162000588565b604051806040016040528060078152602001664c494c50414c5360c81b815250604051806040016040528060018152602001603160f81b815250604051806040016040528060078152602001664c494c50414c5360c81b815250604051806040016040528060078152602001664c494c50414c5360c81b8152508160029080519060200190620000c7929190620004c5565b508051620000dd906003906020840190620004c5565b50506000805550815160208084019190912082518383012060e08290526101008190524660a0818152604080517f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f81880181905281830187905260608201869052608082019490945230818401528151808203909301835260c00190528051940193909320919290916080523060601b60c05261012052506200018c9250620001869150503390565b620001e2565b600c80546001600160a01b038581166001600160a01b031992831617909255600d8054858416921691909117905561ffff82166009556103e8600a55600854620001d99116600162000234565b505050620006c1565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b620002568282604051806020016040528060008152506200025a60201b60201c565b5050565b6000546001600160a01b0384166200028457604051622e076360e81b815260040160405180910390fd5b82620002a35760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b03841660008181526005602090815260408083208054680100000000000000018902019055848352600490915290204260a01b86176001861460e11b1790558190818501903b156200036f575b60405182906001600160a01b0388169060009060008051602062003997833981519152908290a460018201916200033490600090889087620003c4565b62000352576040516368d2bf6b60e11b815260040160405180910390fd5b808210620002f75782600054146200036957600080fd5b620003a4565b5b6040516001830192906001600160a01b0388169060009060008051602062003997833981519152908290a480821062000370575b506000908155620003be908583866001600160e01b038516565b50505050565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a0290620003fb9033908990889088906004016200060b565b602060405180830381600087803b1580156200041657600080fd5b505af192505050801562000449575060408051601f3d908101601f191682019092526200044691810190620005da565b60015b620004a8573d8080156200047a576040519150601f19603f3d011682016040523d82523d6000602084013e6200047f565b606091505b508051620004a0576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050949350505050565b828054620004d39062000684565b90600052602060002090601f016020900481019282620004f7576000855562000542565b82601f106200051257805160ff191683800117855562000542565b8280016001018555821562000542579182015b828111156200054257825182559160200191906001019062000525565b506200055092915062000554565b5090565b5b8082111562000550576000815560010162000555565b80516001600160a01b03811681146200058357600080fd5b919050565b6000806000606084860312156200059d578283fd5b620005a8846200056b565b9250620005b8602085016200056b565b9150604084015161ffff81168114620005cf578182fd5b809150509250925092565b600060208284031215620005ec578081fd5b81516001600160e01b03198116811462000604578182fd5b9392505050565b600060018060a01b0380871683526020818716818501528560408501526080606085015284519150816080850152825b82811015620006595785810182015185820160a0015281016200063b565b828111156200066b578360a084870101525b5050601f01601f19169190910160a00195945050505050565b600181811c908216806200069957607f821691505b60208210811415620006bb57634e487b7160e01b600052602260045260246000fd5b50919050565b60805160a05160c05160601c60e0516101005161012051613295620007026000396000505060005050600050506000505060005050600050506132956000f3fe6080604052600436106102515760003560e01c80635a2ee5ba1161013957806395d89b41116100b6578063d20fb5311161007a578063d20fb5311461077b578063db7f75fe1461079b578063e55f58bb146107db578063e985e9c5146107f1578063f2fde38b1461083a578063f8082cc31461085a57600080fd5b806395d89b4114610655578063a22cb4651461066a578063a373d8711461068a578063b88d4fde1461073b578063c87b56dd1461075b57600080fd5b806374c2420c116100fd57806374c2420c146105a15780637bd9d0f6146105b45780637dee1b25146105c75780638da5cb5b146105e757806390aa0b0f1461060557600080fd5b80635a2ee5ba146105175780636352211e146105375780636c0360eb1461055757806370a082311461056c578063715018a61461058c57600080fd5b806318160ddd116101d25780633ccfd60b116101965780633ccfd60b1461046c57806342842e0e1461048157806345a44657146104a157806345c0f533146104c157806351cff8d9146104d757806355f804b3146104f757600080fd5b806318160ddd146103e057806323b872dd146103f957806337d6a29f146104195780633ab1a494146104395780633c472fab1461045957600080fd5b8063081812fc11610219578063081812fc1461030f578063095ea7b3146103475780630fb6f4bd14610367578063109e757a146103ad57806315ce4ede146103cd57600080fd5b806301ffc9a71461025657806302e341231461028b578063046dc166146102ad5780630647570e146102cd57806306fdde03146102ed575b600080fd5b34801561026257600080fd5b50610276610271366004612b86565b61087a565b60405190151581526020015b60405180910390f35b34801561029757600080fd5b506102ab6102a6366004612d12565b6108cc565b005b3480156102b957600080fd5b506102ab6102c8366004612a24565b610a02565b3480156102d957600080fd5b506102ab6102e8366004612d12565b610a4e565b3480156102f957600080fd5b50610302610b6e565b6040516102829190612edc565b34801561031b57600080fd5b5061032f61032a366004612c37565b610c00565b6040516001600160a01b039091168152602001610282565b34801561035357600080fd5b506102ab610362366004612b5d565b610c44565b34801561037357600080fd5b5061039f610382366004612bbe565b600e60209081526000928352604080842090915290825290205481565b604051908152602001610282565b3480156103b957600080fd5b506102ab6103c8366004612c20565b610d17565b6102ab6103db366004612c37565b610d53565b3480156103ec57600080fd5b506001546000540361039f565b34801561040557600080fd5b506102ab610414366004612a70565b610e54565b34801561042557600080fd5b506102ab610434366004612d12565b610e5f565b34801561044557600080fd5b506102ab610454366004612a24565b610ee2565b6102ab610467366004612c4f565b610f2e565b34801561047857600080fd5b506102ab61111c565b34801561048d57600080fd5b506102ab61049c366004612a70565b6111d1565b3480156104ad57600080fd5b506102ab6104bc366004612ce5565b6111ec565b3480156104cd57600080fd5b5061039f60095481565b3480156104e357600080fd5b506102ab6104f2366004612a24565b61127a565b34801561050357600080fd5b506102ab610512366004612bdb565b6112dd565b34801561052357600080fd5b506102ab610532366004612c20565b61131a565b34801561054357600080fd5b5061032f610552366004612c37565b611351565b34801561056357600080fd5b5061030261135c565b34801561057857600080fd5b5061039f610587366004612a24565b6113ea565b34801561059857600080fd5b506102ab611438565b6102ab6105af366004612c37565b61146e565b6102ab6105c2366004612c4f565b6115bb565b3480156105d357600080fd5b506102ab6105e2366004612cc9565b6116ac565b3480156105f357600080fd5b506008546001600160a01b031661032f565b34801561061157600080fd5b50600f54610645906001600160401b0380821691600160401b8104821691600160801b82041690600160c01b900460ff1684565b6040516102829493929190612fe0565b34801561066157600080fd5b506103026116e4565b34801561067657600080fd5b506102ab610685366004612b23565b6116f3565b34801561069657600080fd5b506106aa6106a5366004612a24565b611789565b604080519a8b526020808c019a909a528a8101989098526060808b01979097526080808b01969096526001600160401b0394851660a08b015292841660c08a015290831660e08901528216610100880152805182166101208801529485015181166101408701529284015183166101608601529083015190911661018084015201516101a08201526101c001610282565b34801561074757600080fd5b506102ab610756366004612aab565b611ae0565b34801561076757600080fd5b50610302610776366004612c37565b611b24565b34801561078757600080fd5b506102ab610796366004612d12565b611ba7565b3480156107a757600080fd5b50601054610645906001600160401b0380821691600160401b8104821691600160801b82041690600160c01b900460ff1684565b3480156107e757600080fd5b5061039f600a5481565b3480156107fd57600080fd5b5061027661080c366004612a3e565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b34801561084657600080fd5b506102ab610855366004612a24565b611c2a565b34801561086657600080fd5b506102ab610875366004612cc9565b611cc2565b60006301ffc9a760e01b6001600160e01b0319831614806108ab57506380ac58cd60e01b6001600160e01b03198316145b806108c65750635b5e139f60e01b6001600160e01b03198316145b92915050565b6008546001600160a01b031633146108ff5760405162461bcd60e51b81526004016108f690612f26565b60405180910390fd5b6040518060800160405280836001600160401b03168152602001846001600160401b03168152602001826001600160401b031681526020016002600481111561095857634e487b7160e01b600052602160045260246000fd5b90528051600f8054602084015160408501516001600160401b03908116600160801b0267ffffffffffffffff60801b19928216600160401b026001600160801b03199094169190951617919091179081168317825560608401519192839160ff60c01b1990911668ffffffffffffffffff60801b1990911617600160c01b8360048111156109f657634e487b7160e01b600052602160045260246000fd5b02179055505050505050565b6008546001600160a01b03163314610a2c5760405162461bcd60e51b81526004016108f690612f26565b600c80546001600160a01b0319166001600160a01b0392909216919091179055565b6008546001600160a01b03163314610a785760405162461bcd60e51b81526004016108f690612f26565b6040518060800160405280836001600160401b03168152602001846001600160401b03168152602001826001600160401b03168152602001600480811115610ad057634e487b7160e01b600052602160045260246000fd5b9052805160108054602084015160408501516001600160401b03908116600160801b0267ffffffffffffffff60801b19928216600160401b026001600160801b03199094169190951617919091179081168317825560608401519192839160ff60c01b1990911668ffffffffffffffffff60801b1990911617600160c01b8360048111156109f657634e487b7160e01b600052602160045260246000fd5b606060028054610b7d9061309c565b80601f0160208091040260200160405190810160405280929190818152602001828054610ba99061309c565b8015610bf65780601f10610bcb57610100808354040283529160200191610bf6565b820191906000526020600020905b815481529060010190602001808311610bd957829003601f168201915b5050505050905090565b6000610c0b82611cfa565b610c28576040516333d1c03960e21b815260040160405180910390fd5b506000908152600660205260409020546001600160a01b031690565b6000610c4f82611d21565b9050806001600160a01b0316836001600160a01b03161415610c845760405163250fdee360e21b815260040160405180910390fd5b336001600160a01b03821614610cbb57610c9e813361080c565b610cbb576040516367d9dca160e11b815260040160405180910390fd5b60008281526006602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b6008546001600160a01b03163314610d415760405162461bcd60e51b81526004016108f690612f26565b806010610d4e8282613142565b505050565b323314610d725760405162461bcd60e51b81526004016108f690612eef565b600380600f54600160c01b900460ff166004811115610da157634e487b7160e01b600052602160045260246000fd5b148015610db95750600f546001600160401b03164210155b610dd55760405162461bcd60e51b81526004016108f690612f5b565b600f546003908390600160401b90046001600160401b031681023414610e0d5760405162461bcd60e51b81526004016108f690612fb6565b610e18600385611d89565b60095484610e2560005490565b011115610e445760405162461bcd60e51b81526004016108f690612f89565b610e4e3385611eb9565b50505050565b610d4e838383611ed3565b6008546001600160a01b03163314610e895760405162461bcd60e51b81526004016108f690612f26565b6040518060800160405280836001600160401b03168152602001846001600160401b03168152602001826001600160401b0316815260200160006004811115610ad057634e487b7160e01b600052602160045260246000fd5b6008546001600160a01b03163314610f0c5760405162461bcd60e51b81526004016108f690612f26565b600d80546001600160a01b0319166001600160a01b0392909216919091179055565b323314610f4d5760405162461bcd60e51b81526004016108f690612eef565b600280600f54600160c01b900460ff166004811115610f7c57634e487b7160e01b600052602160045260246000fd5b148015610f945750600f546001600160401b03164210155b610fb05760405162461bcd60e51b81526004016108f690612f5b565b600f546002908690600160401b90046001600160401b031681023414610fe85760405162461bcd60e51b81526004016108f690612fb6565b610ff3600288611d89565b8561101f60405180604001604052806009815260200168185b1b1bddd31a5cdd60ba1b81525033612076565b1461105c5760405162461bcd60e51b815260206004820152600d60248201526c24b73b30b634b2103430b9b41760991b60448201526064016108f6565b61109c8686868080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152506120ab92505050565b6110dd5760405162461bcd60e51b815260206004820152601260248201527124b73b30b634b21039b4b3b730ba3ab9329760711b60448201526064016108f6565b600954876110ea60005490565b0111156111095760405162461bcd60e51b81526004016108f690612f89565b6111133388611eb9565b50505050505050565b600d546001600160a01b031633146111765760405162461bcd60e51b815260206004820181905260248201527f5468652063616c6c657220697320696e636f727265637420616464726573732e60448201526064016108f6565b3233146111955760405162461bcd60e51b81526004016108f690612eef565b600d546040516001600160a01b03909116904780156108fc02916000818181858888f193505050501580156111ce573d6000803e3d6000fd5b50565b610d4e83838360405180602001604052806000815250611ae0565b6008546001600160a01b031633146112165760405162461bcd60e51b81526004016108f690612f26565b604080516080810182526001600160401b0393841680825260006020830152929093169083018190526001606090930192909252600f8054600160801b90930260ff60c01b19166001600160c81b031990931690911791909117600160c01b179055565b6008546001600160a01b031633146112a45760405162461bcd60e51b81526004016108f690612f26565b6040516001600160a01b038216904780156108fc02916000818181858888f193505050501580156112d9573d6000803e3d6000fd5b5050565b6008546001600160a01b031633146113075760405162461bcd60e51b81526004016108f690612f26565b80516112d990600b9060208401906128fa565b6008546001600160a01b031633146113445760405162461bcd60e51b81526004016108f690612f26565b80600f610d4e8282613142565b60006108c682611d21565b600b80546113699061309c565b80601f01602080910402602001604051908101604052809291908181526020018280546113959061309c565b80156113e25780601f106113b7576101008083540402835291602001916113e2565b820191906000526020600020905b8154815290600101906020018083116113c557829003601f168201915b505050505081565b60006001600160a01b038216611413576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b03166000908152600560205260409020546001600160401b031690565b6008546001600160a01b031633146114625760405162461bcd60e51b81526004016108f690612f26565b61146c60006120d5565b565b32331461148d5760405162461bcd60e51b81526004016108f690612eef565b600180600f54600160c01b900460ff1660048111156114bc57634e487b7160e01b600052602160045260246000fd5b1480156114d45750600f546001600160401b03164210155b6114f05760405162461bcd60e51b81526004016108f690612f5b565b600f546001908390600160401b90046001600160401b0316810234146115285760405162461bcd60e51b81526004016108f690612fb6565b611533600185611d89565b6009548461154060005490565b01111561155f5760405162461bcd60e51b81526004016108f690612f89565b600a548461156c60005490565b011115610e445760405162461bcd60e51b815260206004820152601960248201527f46726565206d696e7420737570706c7920726561636865642e0000000000000060448201526064016108f6565b3233146115da5760405162461bcd60e51b81526004016108f690612eef565b600480601054600160c01b900460ff16600481111561160957634e487b7160e01b600052602160045260246000fd5b14801561162157506010546001600160401b03164210155b61163d5760405162461bcd60e51b81526004016108f690612f5b565b6010546004908690600160401b90046001600160401b0316810234146116755760405162461bcd60e51b81526004016108f690612fb6565b611680600488612127565b8561101f604051806040016040528060098152602001681dda1a5d19531a5cdd60ba1b81525033612076565b6008546001600160a01b031633146116d65760405162461bcd60e51b81526004016108f690612f26565b6001600160401b0316600a55565b606060038054610b7d9061309c565b6001600160a01b03821633141561171d5760405163b06307db60e01b815260040160405180910390fd5b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b60008060008060008060008060006117ed6040518060a0016040528060006001600160401b0316815260200160006001600160401b0316815260200160006001600160401b0316815260200160006001600160401b03168152602001600081525090565b6001600160a01b038b1660009081527fa1d6913cd9e08c872be3e7525cca82e4fc0fc298a783f19022be725b19be685a60209081526040808320547fa7c5ba7114a813b50159add3a36832908dc83db71d0b9a24c2ad0f83be9582078352818420547f9adb202b1492743bc00c81d33cdc6423fa8c79109027eb6a845391e8fc1f04818452828520547fe0283e559c29e31ee7f56467acc9dd307779c843a883aeeb3bf5c6128c908144909452918420549354909391929190600954600f546001600160401b0380821691600160401b8104821691600160801b909104166000600f54600160c01b900460ff1660048111156118f957634e487b7160e01b600052602160045260246000fd5b14611979576001600f54600160c01b900460ff16600481111561192c57634e487b7160e01b600052602160045260246000fd5b14611972576002600f54600160c01b900460ff16600481111561195f57634e487b7160e01b600052602160045260246000fd5b1461196b57600361197c565b600261197c565b600161197c565b60005b6040805160a0810182526010546001600160401b038082168352600160401b820481166020840152600160801b9091041691810191909152606081016000601054600160c01b900460ff1660048111156119e657634e487b7160e01b600052602160045260246000fd5b14611aa0576001601054600160c01b900460ff166004811115611a1957634e487b7160e01b600052602160045260246000fd5b14611a99576002601054600160c01b900460ff166004811115611a4c57634e487b7160e01b600052602160045260246000fd5b14611a92576003601054600160c01b900460ff166004811115611a7f57634e487b7160e01b600052602160045260246000fd5b14611a8b576004611aa3565b6003611aa3565b6002611aa3565b6001611aa3565b60005b60ff166001600160401b031681526020018b8152508160ff1691509a509a509a509a509a509a509a509a509a509a50509193959799509193959799565b611aeb848484611ed3565b6001600160a01b0383163b15610e4e57611b078484848461215f565b610e4e576040516368d2bf6b60e11b815260040160405180910390fd5b6060611b2f82611cfa565b611b4c57604051630a14c4b560e41b815260040160405180910390fd5b600b8054611b599061309c565b15159050611b7657604051806020016040528060008152506108c6565b600b611b8183612257565b604051602001611b92929190612de5565b60405160208183030381529060405292915050565b6008546001600160a01b03163314611bd15760405162461bcd60e51b81526004016108f690612f26565b6040518060800160405280836001600160401b03168152602001846001600160401b03168152602001826001600160401b031681526020016003600481111561095857634e487b7160e01b600052602160045260246000fd5b6008546001600160a01b03163314611c545760405162461bcd60e51b81526004016108f690612f26565b6001600160a01b038116611cb95760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016108f6565b6111ce816120d5565b6008546001600160a01b03163314611cec5760405162461bcd60e51b81526004016108f690612f26565b6001600160401b0316600955565b60008054821080156108c6575050600090815260046020526040902054600160e01b161590565b600081600054811015611d7057600081815260046020526040902054600160e01b8116611d6e575b80611d67575060001901600081815260046020526040902054611d49565b9392505050565b505b604051636f96cda160e11b815260040160405180910390fd5b600f54600160801b90046001600160401b031681600e6000856004811115611dc157634e487b7160e01b600052602160045260246000fd5b6004811115611de057634e487b7160e01b600052602160045260246000fd5b815260208082019290925260409081016000908120338252909252902054011115611e4d5760405162461bcd60e51b815260206004820152601a60248201527f546f6f206d616e79206c696c70616c7320746f2061646f70742e00000000000060448201526064016108f6565b80600e6000846004811115611e7257634e487b7160e01b600052602160045260246000fd5b6004811115611e9157634e487b7160e01b600052602160045260246000fd5b8152602080820192909252604090810160009081203382529092529020805490910190555050565b6112d9828260405180602001604052806000815250612370565b6000611ede82611d21565b9050836001600160a01b0316816001600160a01b031614611f115760405162a1148160e81b815260040160405180910390fd5b6000336001600160a01b0386161480611f2f5750611f2f853361080c565b80611f4a575033611f3f84610c00565b6001600160a01b0316145b905080611f6a57604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b038416611f9157604051633a954ecd60e21b815260040160405180910390fd5b600083815260066020908152604080832080546001600160a01b03191690556001600160a01b038881168452600583528184208054600019019055871683528083208054600101905585835260049091529020600160e11b4260a01b86178117909155821661202e576001830160008181526004602052604090205461202c57600054811461202c5760008181526004602052604090208390555b505b82846001600160a01b0316866001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45050505050565b600082308360405160200161208d93929190612da4565b60405160208183030381529060405280519060200120905092915050565b600c546000906001600160a01b03166120c484846124e1565b6001600160a01b0316149392505050565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b601054600160801b90046001600160401b031681600e6000856004811115611dc157634e487b7160e01b600052602160045260246000fd5b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a0290612194903390899088908890600401612e9f565b602060405180830381600087803b1580156121ae57600080fd5b505af19250505080156121de575060408051601f3d908101601f191682019092526121db91810190612ba2565b60015b612239573d80801561220c576040519150601f19603f3d011682016040523d82523d6000602084013e612211565b606091505b508051612231576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490505b949350505050565b60608161227b5750506040805180820190915260018152600360fc1b602082015290565b8160005b81156122a5578061228f816130d1565b915061229e9050600a83613045565b915061227f565b6000816001600160401b038111156122cd57634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f1916602001820160405280156122f7576020820181803683370190505b5090505b841561224f5761230c600183613059565b9150612319600a866130ec565b61232490603061302d565b60f81b81838151811061234757634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350612369600a86613045565b94506122fb565b6000546001600160a01b03841661239957604051622e076360e81b815260040160405180910390fd5b826123b75760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b03841660008181526005602090815260408083208054680100000000000000018902019055848352600490915290204260a01b86176001861460e11b1790558190818501903b1561248c575b60405182906001600160a01b038816906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a4612455600087848060010195508761215f565b612472576040516368d2bf6b60e11b815260040160405180910390fd5b80821061240a57826000541461248757600080fd5b6124d1565b5b6040516001830192906001600160a01b038816906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a480821061248d575b506000908155610e4e9085838684565b6000611d678261253e856040517f19457468657265756d205369676e6564204d6573736167653a0a3332000000006020820152603c8101829052600090605c01604051602081830303815290604052805190602001209050919050565b90600080600061254e8585612563565b9150915061255b816125d3565b509392505050565b60008082516041141561259a5760208301516040840151606085015160001a61258e878285856127d4565b945094505050506125cc565b8251604014156125c457602083015160408401516125b98683836128c1565b9350935050506125cc565b506000905060025b9250929050565b60008160048111156125f557634e487b7160e01b600052602160045260246000fd5b14156125fe5750565b600181600481111561262057634e487b7160e01b600052602160045260246000fd5b141561266e5760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e6174757265000000000000000060448201526064016108f6565b600281600481111561269057634e487b7160e01b600052602160045260246000fd5b14156126de5760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e6774680060448201526064016108f6565b600381600481111561270057634e487b7160e01b600052602160045260246000fd5b14156127595760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b60648201526084016108f6565b600481600481111561277b57634e487b7160e01b600052602160045260246000fd5b14156111ce5760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b60648201526084016108f6565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a083111561280b57506000905060036128b8565b8460ff16601b1415801561282357508460ff16601c14155b1561283457506000905060046128b8565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015612888573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b0381166128b1576000600192509250506128b8565b9150600090505b94509492505050565b6000806001600160ff1b038316816128de60ff86901c601b61302d565b90506128ec878288856127d4565b935093505050935093915050565b8280546129069061309c565b90600052602060002090601f016020900481019282612928576000855561296e565b82601f1061294157805160ff191683800117855561296e565b8280016001018555821561296e579182015b8281111561296e578251825591602001919060010190612953565b5061297a92915061297e565b5090565b5b8082111561297a576000815560010161297f565b60006001600160401b03808411156129ad576129ad61312c565b604051601f8501601f19908116603f011681019082821181831017156129d5576129d561312c565b816040528093508581528686860111156129ee57600080fd5b858560208301376000602087830101525050509392505050565b80356001600160a01b0381168114612a1f57600080fd5b919050565b600060208284031215612a35578081fd5b611d6782612a08565b60008060408385031215612a50578081fd5b612a5983612a08565b9150612a6760208401612a08565b90509250929050565b600080600060608486031215612a84578081fd5b612a8d84612a08565b9250612a9b60208501612a08565b9150604084013590509250925092565b60008060008060808587031215612ac0578081fd5b612ac985612a08565b9350612ad760208601612a08565b92506040850135915060608501356001600160401b03811115612af8578182fd5b8501601f81018713612b08578182fd5b612b1787823560208401612993565b91505092959194509250565b60008060408385031215612b35578182fd5b612b3e83612a08565b915060208301358015158114612b52578182fd5b809150509250929050565b60008060408385031215612b6f578182fd5b612b7883612a08565b946020939093013593505050565b600060208284031215612b97578081fd5b8135611d6781613227565b600060208284031215612bb3578081fd5b8151611d6781613227565b60008060408385031215612bd0578182fd5b8235612a598161323d565b600060208284031215612bec578081fd5b81356001600160401b03811115612c01578182fd5b8201601f81018413612c11578182fd5b61224f84823560208401612993565b600060808284031215612c31578081fd5b50919050565b600060208284031215612c48578081fd5b5035919050565b60008060008060608587031215612c64578182fd5b843593506020850135925060408501356001600160401b0380821115612c88578384fd5b818701915087601f830112612c9b578384fd5b813581811115612ca9578485fd5b886020828501011115612cba578485fd5b95989497505060200194505050565b600060208284031215612cda578081fd5b8135611d678161324a565b60008060408385031215612cf7578182fd5b8235612d028161324a565b91506020830135612b528161324a565b600080600060608486031215612d26578081fd5b8335612d318161324a565b92506020840135612d418161324a565b91506040840135612d518161324a565b809150509250925092565b60008151808452612d74816020860160208601613070565b601f01601f19169290920160200192915050565b60008151612d9a818560208601613070565b9290920192915050565b60008451612db6818460208901613070565b6bffffffffffffffffffffffff19606095861b8116919093019081529290931b16601482015260280192915050565b600080845482600182811c915080831680612e0157607f831692505b6020808410821415612e2157634e487b7160e01b87526022600452602487fd5b818015612e355760018114612e4657612e72565b60ff19861689528489019650612e72565b60008b815260209020885b86811015612e6a5781548b820152908501908301612e51565b505084890196505b505050505050612e96612e858286612d88565b64173539b7b760d91b815260050190565b95945050505050565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090612ed290830184612d5c565b9695505050505050565b602081526000611d676020830184612d5c565b6020808252601f908201527f5468652063616c6c657220697320616e6f7468657220636f6e74726163742e00604082015260600190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526014908201527329b0b63290383430b9b29036b4b9b6b0ba31b41760611b604082015260600190565b60208082526013908201527226b0bc1039bab838363c903932b0b1b432b21760691b604082015260600190565b60208082526010908201526f24b731b7b93932b1ba10383934b1b29760811b604082015260600190565b6001600160401b038581168252848116602083015283166040820152608081016005831061301e57634e487b7160e01b600052602160045260246000fd5b82606083015295945050505050565b6000821982111561304057613040613100565b500190565b60008261305457613054613116565b500490565b60008282101561306b5761306b613100565b500390565b60005b8381101561308b578181015183820152602001613073565b83811115610e4e5750506000910152565b600181811c908216806130b057607f821691505b60208210811415612c3157634e487b7160e01b600052602260045260246000fd5b60006000198214156130e5576130e5613100565b5060010190565b6000826130fb576130fb613116565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b813561314d8161324a565b6001600160401b03811690508154816001600160401b0319821617835560208401356131788161324a565b6fffffffffffffffff0000000000000000604091821b166001600160801b03198316841781178555908501356131ad8161324a565b6001600160c01b03199290921690921782811760809290921b67ffffffffffffffff60801b169182178455916060850135916131e88361323d565b6005831061320657634e487b7160e01b600052602160045260246000fd5b60ff60c01b1993909316179190911760c09190911b60ff60c01b1617905550565b6001600160e01b0319811681146111ce57600080fd5b600581106111ce57600080fd5b6001600160401b03811681146111ce57600080fdfea2646970667358221220ae440484ece08e9f6d2ac2755c85133743f58f515abb1e62dd591e822742391f64736f6c63430008040033ddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef000000000000000000000000c3881f3dca26af4584ba1e07a43d6df80ee33e7f000000000000000000000000c3881f3dca26af4584ba1e07a43d6df80ee33e7f0000000000000000000000000000000000000000000000000000000000001770

Deployed Bytecode

0x6080604052600436106102515760003560e01c80635a2ee5ba1161013957806395d89b41116100b6578063d20fb5311161007a578063d20fb5311461077b578063db7f75fe1461079b578063e55f58bb146107db578063e985e9c5146107f1578063f2fde38b1461083a578063f8082cc31461085a57600080fd5b806395d89b4114610655578063a22cb4651461066a578063a373d8711461068a578063b88d4fde1461073b578063c87b56dd1461075b57600080fd5b806374c2420c116100fd57806374c2420c146105a15780637bd9d0f6146105b45780637dee1b25146105c75780638da5cb5b146105e757806390aa0b0f1461060557600080fd5b80635a2ee5ba146105175780636352211e146105375780636c0360eb1461055757806370a082311461056c578063715018a61461058c57600080fd5b806318160ddd116101d25780633ccfd60b116101965780633ccfd60b1461046c57806342842e0e1461048157806345a44657146104a157806345c0f533146104c157806351cff8d9146104d757806355f804b3146104f757600080fd5b806318160ddd146103e057806323b872dd146103f957806337d6a29f146104195780633ab1a494146104395780633c472fab1461045957600080fd5b8063081812fc11610219578063081812fc1461030f578063095ea7b3146103475780630fb6f4bd14610367578063109e757a146103ad57806315ce4ede146103cd57600080fd5b806301ffc9a71461025657806302e341231461028b578063046dc166146102ad5780630647570e146102cd57806306fdde03146102ed575b600080fd5b34801561026257600080fd5b50610276610271366004612b86565b61087a565b60405190151581526020015b60405180910390f35b34801561029757600080fd5b506102ab6102a6366004612d12565b6108cc565b005b3480156102b957600080fd5b506102ab6102c8366004612a24565b610a02565b3480156102d957600080fd5b506102ab6102e8366004612d12565b610a4e565b3480156102f957600080fd5b50610302610b6e565b6040516102829190612edc565b34801561031b57600080fd5b5061032f61032a366004612c37565b610c00565b6040516001600160a01b039091168152602001610282565b34801561035357600080fd5b506102ab610362366004612b5d565b610c44565b34801561037357600080fd5b5061039f610382366004612bbe565b600e60209081526000928352604080842090915290825290205481565b604051908152602001610282565b3480156103b957600080fd5b506102ab6103c8366004612c20565b610d17565b6102ab6103db366004612c37565b610d53565b3480156103ec57600080fd5b506001546000540361039f565b34801561040557600080fd5b506102ab610414366004612a70565b610e54565b34801561042557600080fd5b506102ab610434366004612d12565b610e5f565b34801561044557600080fd5b506102ab610454366004612a24565b610ee2565b6102ab610467366004612c4f565b610f2e565b34801561047857600080fd5b506102ab61111c565b34801561048d57600080fd5b506102ab61049c366004612a70565b6111d1565b3480156104ad57600080fd5b506102ab6104bc366004612ce5565b6111ec565b3480156104cd57600080fd5b5061039f60095481565b3480156104e357600080fd5b506102ab6104f2366004612a24565b61127a565b34801561050357600080fd5b506102ab610512366004612bdb565b6112dd565b34801561052357600080fd5b506102ab610532366004612c20565b61131a565b34801561054357600080fd5b5061032f610552366004612c37565b611351565b34801561056357600080fd5b5061030261135c565b34801561057857600080fd5b5061039f610587366004612a24565b6113ea565b34801561059857600080fd5b506102ab611438565b6102ab6105af366004612c37565b61146e565b6102ab6105c2366004612c4f565b6115bb565b3480156105d357600080fd5b506102ab6105e2366004612cc9565b6116ac565b3480156105f357600080fd5b506008546001600160a01b031661032f565b34801561061157600080fd5b50600f54610645906001600160401b0380821691600160401b8104821691600160801b82041690600160c01b900460ff1684565b6040516102829493929190612fe0565b34801561066157600080fd5b506103026116e4565b34801561067657600080fd5b506102ab610685366004612b23565b6116f3565b34801561069657600080fd5b506106aa6106a5366004612a24565b611789565b604080519a8b526020808c019a909a528a8101989098526060808b01979097526080808b01969096526001600160401b0394851660a08b015292841660c08a015290831660e08901528216610100880152805182166101208801529485015181166101408701529284015183166101608601529083015190911661018084015201516101a08201526101c001610282565b34801561074757600080fd5b506102ab610756366004612aab565b611ae0565b34801561076757600080fd5b50610302610776366004612c37565b611b24565b34801561078757600080fd5b506102ab610796366004612d12565b611ba7565b3480156107a757600080fd5b50601054610645906001600160401b0380821691600160401b8104821691600160801b82041690600160c01b900460ff1684565b3480156107e757600080fd5b5061039f600a5481565b3480156107fd57600080fd5b5061027661080c366004612a3e565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b34801561084657600080fd5b506102ab610855366004612a24565b611c2a565b34801561086657600080fd5b506102ab610875366004612cc9565b611cc2565b60006301ffc9a760e01b6001600160e01b0319831614806108ab57506380ac58cd60e01b6001600160e01b03198316145b806108c65750635b5e139f60e01b6001600160e01b03198316145b92915050565b6008546001600160a01b031633146108ff5760405162461bcd60e51b81526004016108f690612f26565b60405180910390fd5b6040518060800160405280836001600160401b03168152602001846001600160401b03168152602001826001600160401b031681526020016002600481111561095857634e487b7160e01b600052602160045260246000fd5b90528051600f8054602084015160408501516001600160401b03908116600160801b0267ffffffffffffffff60801b19928216600160401b026001600160801b03199094169190951617919091179081168317825560608401519192839160ff60c01b1990911668ffffffffffffffffff60801b1990911617600160c01b8360048111156109f657634e487b7160e01b600052602160045260246000fd5b02179055505050505050565b6008546001600160a01b03163314610a2c5760405162461bcd60e51b81526004016108f690612f26565b600c80546001600160a01b0319166001600160a01b0392909216919091179055565b6008546001600160a01b03163314610a785760405162461bcd60e51b81526004016108f690612f26565b6040518060800160405280836001600160401b03168152602001846001600160401b03168152602001826001600160401b03168152602001600480811115610ad057634e487b7160e01b600052602160045260246000fd5b9052805160108054602084015160408501516001600160401b03908116600160801b0267ffffffffffffffff60801b19928216600160401b026001600160801b03199094169190951617919091179081168317825560608401519192839160ff60c01b1990911668ffffffffffffffffff60801b1990911617600160c01b8360048111156109f657634e487b7160e01b600052602160045260246000fd5b606060028054610b7d9061309c565b80601f0160208091040260200160405190810160405280929190818152602001828054610ba99061309c565b8015610bf65780601f10610bcb57610100808354040283529160200191610bf6565b820191906000526020600020905b815481529060010190602001808311610bd957829003601f168201915b5050505050905090565b6000610c0b82611cfa565b610c28576040516333d1c03960e21b815260040160405180910390fd5b506000908152600660205260409020546001600160a01b031690565b6000610c4f82611d21565b9050806001600160a01b0316836001600160a01b03161415610c845760405163250fdee360e21b815260040160405180910390fd5b336001600160a01b03821614610cbb57610c9e813361080c565b610cbb576040516367d9dca160e11b815260040160405180910390fd5b60008281526006602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b6008546001600160a01b03163314610d415760405162461bcd60e51b81526004016108f690612f26565b806010610d4e8282613142565b505050565b323314610d725760405162461bcd60e51b81526004016108f690612eef565b600380600f54600160c01b900460ff166004811115610da157634e487b7160e01b600052602160045260246000fd5b148015610db95750600f546001600160401b03164210155b610dd55760405162461bcd60e51b81526004016108f690612f5b565b600f546003908390600160401b90046001600160401b031681023414610e0d5760405162461bcd60e51b81526004016108f690612fb6565b610e18600385611d89565b60095484610e2560005490565b011115610e445760405162461bcd60e51b81526004016108f690612f89565b610e4e3385611eb9565b50505050565b610d4e838383611ed3565b6008546001600160a01b03163314610e895760405162461bcd60e51b81526004016108f690612f26565b6040518060800160405280836001600160401b03168152602001846001600160401b03168152602001826001600160401b0316815260200160006004811115610ad057634e487b7160e01b600052602160045260246000fd5b6008546001600160a01b03163314610f0c5760405162461bcd60e51b81526004016108f690612f26565b600d80546001600160a01b0319166001600160a01b0392909216919091179055565b323314610f4d5760405162461bcd60e51b81526004016108f690612eef565b600280600f54600160c01b900460ff166004811115610f7c57634e487b7160e01b600052602160045260246000fd5b148015610f945750600f546001600160401b03164210155b610fb05760405162461bcd60e51b81526004016108f690612f5b565b600f546002908690600160401b90046001600160401b031681023414610fe85760405162461bcd60e51b81526004016108f690612fb6565b610ff3600288611d89565b8561101f60405180604001604052806009815260200168185b1b1bddd31a5cdd60ba1b81525033612076565b1461105c5760405162461bcd60e51b815260206004820152600d60248201526c24b73b30b634b2103430b9b41760991b60448201526064016108f6565b61109c8686868080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152506120ab92505050565b6110dd5760405162461bcd60e51b815260206004820152601260248201527124b73b30b634b21039b4b3b730ba3ab9329760711b60448201526064016108f6565b600954876110ea60005490565b0111156111095760405162461bcd60e51b81526004016108f690612f89565b6111133388611eb9565b50505050505050565b600d546001600160a01b031633146111765760405162461bcd60e51b815260206004820181905260248201527f5468652063616c6c657220697320696e636f727265637420616464726573732e60448201526064016108f6565b3233146111955760405162461bcd60e51b81526004016108f690612eef565b600d546040516001600160a01b03909116904780156108fc02916000818181858888f193505050501580156111ce573d6000803e3d6000fd5b50565b610d4e83838360405180602001604052806000815250611ae0565b6008546001600160a01b031633146112165760405162461bcd60e51b81526004016108f690612f26565b604080516080810182526001600160401b0393841680825260006020830152929093169083018190526001606090930192909252600f8054600160801b90930260ff60c01b19166001600160c81b031990931690911791909117600160c01b179055565b6008546001600160a01b031633146112a45760405162461bcd60e51b81526004016108f690612f26565b6040516001600160a01b038216904780156108fc02916000818181858888f193505050501580156112d9573d6000803e3d6000fd5b5050565b6008546001600160a01b031633146113075760405162461bcd60e51b81526004016108f690612f26565b80516112d990600b9060208401906128fa565b6008546001600160a01b031633146113445760405162461bcd60e51b81526004016108f690612f26565b80600f610d4e8282613142565b60006108c682611d21565b600b80546113699061309c565b80601f01602080910402602001604051908101604052809291908181526020018280546113959061309c565b80156113e25780601f106113b7576101008083540402835291602001916113e2565b820191906000526020600020905b8154815290600101906020018083116113c557829003601f168201915b505050505081565b60006001600160a01b038216611413576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b03166000908152600560205260409020546001600160401b031690565b6008546001600160a01b031633146114625760405162461bcd60e51b81526004016108f690612f26565b61146c60006120d5565b565b32331461148d5760405162461bcd60e51b81526004016108f690612eef565b600180600f54600160c01b900460ff1660048111156114bc57634e487b7160e01b600052602160045260246000fd5b1480156114d45750600f546001600160401b03164210155b6114f05760405162461bcd60e51b81526004016108f690612f5b565b600f546001908390600160401b90046001600160401b0316810234146115285760405162461bcd60e51b81526004016108f690612fb6565b611533600185611d89565b6009548461154060005490565b01111561155f5760405162461bcd60e51b81526004016108f690612f89565b600a548461156c60005490565b011115610e445760405162461bcd60e51b815260206004820152601960248201527f46726565206d696e7420737570706c7920726561636865642e0000000000000060448201526064016108f6565b3233146115da5760405162461bcd60e51b81526004016108f690612eef565b600480601054600160c01b900460ff16600481111561160957634e487b7160e01b600052602160045260246000fd5b14801561162157506010546001600160401b03164210155b61163d5760405162461bcd60e51b81526004016108f690612f5b565b6010546004908690600160401b90046001600160401b0316810234146116755760405162461bcd60e51b81526004016108f690612fb6565b611680600488612127565b8561101f604051806040016040528060098152602001681dda1a5d19531a5cdd60ba1b81525033612076565b6008546001600160a01b031633146116d65760405162461bcd60e51b81526004016108f690612f26565b6001600160401b0316600a55565b606060038054610b7d9061309c565b6001600160a01b03821633141561171d5760405163b06307db60e01b815260040160405180910390fd5b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b60008060008060008060008060006117ed6040518060a0016040528060006001600160401b0316815260200160006001600160401b0316815260200160006001600160401b0316815260200160006001600160401b03168152602001600081525090565b6001600160a01b038b1660009081527fa1d6913cd9e08c872be3e7525cca82e4fc0fc298a783f19022be725b19be685a60209081526040808320547fa7c5ba7114a813b50159add3a36832908dc83db71d0b9a24c2ad0f83be9582078352818420547f9adb202b1492743bc00c81d33cdc6423fa8c79109027eb6a845391e8fc1f04818452828520547fe0283e559c29e31ee7f56467acc9dd307779c843a883aeeb3bf5c6128c908144909452918420549354909391929190600954600f546001600160401b0380821691600160401b8104821691600160801b909104166000600f54600160c01b900460ff1660048111156118f957634e487b7160e01b600052602160045260246000fd5b14611979576001600f54600160c01b900460ff16600481111561192c57634e487b7160e01b600052602160045260246000fd5b14611972576002600f54600160c01b900460ff16600481111561195f57634e487b7160e01b600052602160045260246000fd5b1461196b57600361197c565b600261197c565b600161197c565b60005b6040805160a0810182526010546001600160401b038082168352600160401b820481166020840152600160801b9091041691810191909152606081016000601054600160c01b900460ff1660048111156119e657634e487b7160e01b600052602160045260246000fd5b14611aa0576001601054600160c01b900460ff166004811115611a1957634e487b7160e01b600052602160045260246000fd5b14611a99576002601054600160c01b900460ff166004811115611a4c57634e487b7160e01b600052602160045260246000fd5b14611a92576003601054600160c01b900460ff166004811115611a7f57634e487b7160e01b600052602160045260246000fd5b14611a8b576004611aa3565b6003611aa3565b6002611aa3565b6001611aa3565b60005b60ff166001600160401b031681526020018b8152508160ff1691509a509a509a509a509a509a509a509a509a509a50509193959799509193959799565b611aeb848484611ed3565b6001600160a01b0383163b15610e4e57611b078484848461215f565b610e4e576040516368d2bf6b60e11b815260040160405180910390fd5b6060611b2f82611cfa565b611b4c57604051630a14c4b560e41b815260040160405180910390fd5b600b8054611b599061309c565b15159050611b7657604051806020016040528060008152506108c6565b600b611b8183612257565b604051602001611b92929190612de5565b60405160208183030381529060405292915050565b6008546001600160a01b03163314611bd15760405162461bcd60e51b81526004016108f690612f26565b6040518060800160405280836001600160401b03168152602001846001600160401b03168152602001826001600160401b031681526020016003600481111561095857634e487b7160e01b600052602160045260246000fd5b6008546001600160a01b03163314611c545760405162461bcd60e51b81526004016108f690612f26565b6001600160a01b038116611cb95760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016108f6565b6111ce816120d5565b6008546001600160a01b03163314611cec5760405162461bcd60e51b81526004016108f690612f26565b6001600160401b0316600955565b60008054821080156108c6575050600090815260046020526040902054600160e01b161590565b600081600054811015611d7057600081815260046020526040902054600160e01b8116611d6e575b80611d67575060001901600081815260046020526040902054611d49565b9392505050565b505b604051636f96cda160e11b815260040160405180910390fd5b600f54600160801b90046001600160401b031681600e6000856004811115611dc157634e487b7160e01b600052602160045260246000fd5b6004811115611de057634e487b7160e01b600052602160045260246000fd5b815260208082019290925260409081016000908120338252909252902054011115611e4d5760405162461bcd60e51b815260206004820152601a60248201527f546f6f206d616e79206c696c70616c7320746f2061646f70742e00000000000060448201526064016108f6565b80600e6000846004811115611e7257634e487b7160e01b600052602160045260246000fd5b6004811115611e9157634e487b7160e01b600052602160045260246000fd5b8152602080820192909252604090810160009081203382529092529020805490910190555050565b6112d9828260405180602001604052806000815250612370565b6000611ede82611d21565b9050836001600160a01b0316816001600160a01b031614611f115760405162a1148160e81b815260040160405180910390fd5b6000336001600160a01b0386161480611f2f5750611f2f853361080c565b80611f4a575033611f3f84610c00565b6001600160a01b0316145b905080611f6a57604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b038416611f9157604051633a954ecd60e21b815260040160405180910390fd5b600083815260066020908152604080832080546001600160a01b03191690556001600160a01b038881168452600583528184208054600019019055871683528083208054600101905585835260049091529020600160e11b4260a01b86178117909155821661202e576001830160008181526004602052604090205461202c57600054811461202c5760008181526004602052604090208390555b505b82846001600160a01b0316866001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45050505050565b600082308360405160200161208d93929190612da4565b60405160208183030381529060405280519060200120905092915050565b600c546000906001600160a01b03166120c484846124e1565b6001600160a01b0316149392505050565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b601054600160801b90046001600160401b031681600e6000856004811115611dc157634e487b7160e01b600052602160045260246000fd5b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a0290612194903390899088908890600401612e9f565b602060405180830381600087803b1580156121ae57600080fd5b505af19250505080156121de575060408051601f3d908101601f191682019092526121db91810190612ba2565b60015b612239573d80801561220c576040519150601f19603f3d011682016040523d82523d6000602084013e612211565b606091505b508051612231576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490505b949350505050565b60608161227b5750506040805180820190915260018152600360fc1b602082015290565b8160005b81156122a5578061228f816130d1565b915061229e9050600a83613045565b915061227f565b6000816001600160401b038111156122cd57634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f1916602001820160405280156122f7576020820181803683370190505b5090505b841561224f5761230c600183613059565b9150612319600a866130ec565b61232490603061302d565b60f81b81838151811061234757634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350612369600a86613045565b94506122fb565b6000546001600160a01b03841661239957604051622e076360e81b815260040160405180910390fd5b826123b75760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b03841660008181526005602090815260408083208054680100000000000000018902019055848352600490915290204260a01b86176001861460e11b1790558190818501903b1561248c575b60405182906001600160a01b038816906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a4612455600087848060010195508761215f565b612472576040516368d2bf6b60e11b815260040160405180910390fd5b80821061240a57826000541461248757600080fd5b6124d1565b5b6040516001830192906001600160a01b038816906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a480821061248d575b506000908155610e4e9085838684565b6000611d678261253e856040517f19457468657265756d205369676e6564204d6573736167653a0a3332000000006020820152603c8101829052600090605c01604051602081830303815290604052805190602001209050919050565b90600080600061254e8585612563565b9150915061255b816125d3565b509392505050565b60008082516041141561259a5760208301516040840151606085015160001a61258e878285856127d4565b945094505050506125cc565b8251604014156125c457602083015160408401516125b98683836128c1565b9350935050506125cc565b506000905060025b9250929050565b60008160048111156125f557634e487b7160e01b600052602160045260246000fd5b14156125fe5750565b600181600481111561262057634e487b7160e01b600052602160045260246000fd5b141561266e5760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e6174757265000000000000000060448201526064016108f6565b600281600481111561269057634e487b7160e01b600052602160045260246000fd5b14156126de5760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e6774680060448201526064016108f6565b600381600481111561270057634e487b7160e01b600052602160045260246000fd5b14156127595760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b60648201526084016108f6565b600481600481111561277b57634e487b7160e01b600052602160045260246000fd5b14156111ce5760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b60648201526084016108f6565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a083111561280b57506000905060036128b8565b8460ff16601b1415801561282357508460ff16601c14155b1561283457506000905060046128b8565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015612888573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b0381166128b1576000600192509250506128b8565b9150600090505b94509492505050565b6000806001600160ff1b038316816128de60ff86901c601b61302d565b90506128ec878288856127d4565b935093505050935093915050565b8280546129069061309c565b90600052602060002090601f016020900481019282612928576000855561296e565b82601f1061294157805160ff191683800117855561296e565b8280016001018555821561296e579182015b8281111561296e578251825591602001919060010190612953565b5061297a92915061297e565b5090565b5b8082111561297a576000815560010161297f565b60006001600160401b03808411156129ad576129ad61312c565b604051601f8501601f19908116603f011681019082821181831017156129d5576129d561312c565b816040528093508581528686860111156129ee57600080fd5b858560208301376000602087830101525050509392505050565b80356001600160a01b0381168114612a1f57600080fd5b919050565b600060208284031215612a35578081fd5b611d6782612a08565b60008060408385031215612a50578081fd5b612a5983612a08565b9150612a6760208401612a08565b90509250929050565b600080600060608486031215612a84578081fd5b612a8d84612a08565b9250612a9b60208501612a08565b9150604084013590509250925092565b60008060008060808587031215612ac0578081fd5b612ac985612a08565b9350612ad760208601612a08565b92506040850135915060608501356001600160401b03811115612af8578182fd5b8501601f81018713612b08578182fd5b612b1787823560208401612993565b91505092959194509250565b60008060408385031215612b35578182fd5b612b3e83612a08565b915060208301358015158114612b52578182fd5b809150509250929050565b60008060408385031215612b6f578182fd5b612b7883612a08565b946020939093013593505050565b600060208284031215612b97578081fd5b8135611d6781613227565b600060208284031215612bb3578081fd5b8151611d6781613227565b60008060408385031215612bd0578182fd5b8235612a598161323d565b600060208284031215612bec578081fd5b81356001600160401b03811115612c01578182fd5b8201601f81018413612c11578182fd5b61224f84823560208401612993565b600060808284031215612c31578081fd5b50919050565b600060208284031215612c48578081fd5b5035919050565b60008060008060608587031215612c64578182fd5b843593506020850135925060408501356001600160401b0380821115612c88578384fd5b818701915087601f830112612c9b578384fd5b813581811115612ca9578485fd5b886020828501011115612cba578485fd5b95989497505060200194505050565b600060208284031215612cda578081fd5b8135611d678161324a565b60008060408385031215612cf7578182fd5b8235612d028161324a565b91506020830135612b528161324a565b600080600060608486031215612d26578081fd5b8335612d318161324a565b92506020840135612d418161324a565b91506040840135612d518161324a565b809150509250925092565b60008151808452612d74816020860160208601613070565b601f01601f19169290920160200192915050565b60008151612d9a818560208601613070565b9290920192915050565b60008451612db6818460208901613070565b6bffffffffffffffffffffffff19606095861b8116919093019081529290931b16601482015260280192915050565b600080845482600182811c915080831680612e0157607f831692505b6020808410821415612e2157634e487b7160e01b87526022600452602487fd5b818015612e355760018114612e4657612e72565b60ff19861689528489019650612e72565b60008b815260209020885b86811015612e6a5781548b820152908501908301612e51565b505084890196505b505050505050612e96612e858286612d88565b64173539b7b760d91b815260050190565b95945050505050565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090612ed290830184612d5c565b9695505050505050565b602081526000611d676020830184612d5c565b6020808252601f908201527f5468652063616c6c657220697320616e6f7468657220636f6e74726163742e00604082015260600190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526014908201527329b0b63290383430b9b29036b4b9b6b0ba31b41760611b604082015260600190565b60208082526013908201527226b0bc1039bab838363c903932b0b1b432b21760691b604082015260600190565b60208082526010908201526f24b731b7b93932b1ba10383934b1b29760811b604082015260600190565b6001600160401b038581168252848116602083015283166040820152608081016005831061301e57634e487b7160e01b600052602160045260246000fd5b82606083015295945050505050565b6000821982111561304057613040613100565b500190565b60008261305457613054613116565b500490565b60008282101561306b5761306b613100565b500390565b60005b8381101561308b578181015183820152602001613073565b83811115610e4e5750506000910152565b600181811c908216806130b057607f821691505b60208210811415612c3157634e487b7160e01b600052602260045260246000fd5b60006000198214156130e5576130e5613100565b5060010190565b6000826130fb576130fb613116565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b813561314d8161324a565b6001600160401b03811690508154816001600160401b0319821617835560208401356131788161324a565b6fffffffffffffffff0000000000000000604091821b166001600160801b03198316841781178555908501356131ad8161324a565b6001600160c01b03199290921690921782811760809290921b67ffffffffffffffff60801b169182178455916060850135916131e88361323d565b6005831061320657634e487b7160e01b600052602160045260246000fd5b60ff60c01b1993909316179190911760c09190911b60ff60c01b1617905550565b6001600160e01b0319811681146111ce57600080fd5b600581106111ce57600080fd5b6001600160401b03811681146111ce57600080fdfea2646970667358221220ae440484ece08e9f6d2ac2755c85133743f58f515abb1e62dd591e822742391f64736f6c63430008040033

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

000000000000000000000000c3881f3dca26af4584ba1e07a43d6df80ee33e7f000000000000000000000000c3881f3dca26af4584ba1e07a43d6df80ee33e7f0000000000000000000000000000000000000000000000000000000000001770

-----Decoded View---------------
Arg [0] : _signerAddress (address): 0xc3881f3Dca26AF4584ba1E07a43D6Df80Ee33E7f
Arg [1] : _withdrawAddress (address): 0xc3881f3Dca26AF4584ba1E07a43D6Df80Ee33E7f
Arg [2] : _collectionSize (uint16): 6000

-----Encoded View---------------
3 Constructor Arguments found :
Arg [0] : 000000000000000000000000c3881f3dca26af4584ba1e07a43d6df80ee33e7f
Arg [1] : 000000000000000000000000c3881f3dca26af4584ba1e07a43d6df80ee33e7f
Arg [2] : 0000000000000000000000000000000000000000000000000000000000001770


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.