ETH Price: $3,404.20 (+2.09%)

Token

Ape Scoundrel Squad (ASS)
 

Overview

Max Total Supply

4,998 ASS

Holders

2,374

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Filtered by Token Holder
julianpaul.eth
Balance
1 ASS
0xbb0122f4d1d7913588d563ac6574b9ad08d76b8d
Loading...
Loading
Loading...
Loading
Loading...
Loading

Click here to update the token information / general information
# Exchange Pair Price  24H Volume % Volume
This contract may be a proxy contract. Click on More Options and select Is this a proxy? to confirm and enable the "Read as Proxy" & "Write as Proxy" tabs.

Contract Source Code Verified (Exact Match)

Contract Name:
ApeScoundrelSquad

Compiler Version
v0.8.4+commit.c7e474f2

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 12 : ApeScoundrelSquad.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.4;

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

interface MetadataProvider {
    function tokenURI(uint256 _tokenId) external view returns (string memory);

    function tokenData(uint256 _tokenId) external view returns (bytes memory);
}

contract ApeScoundrelSquad is ERC721ABurnable, Ownable {
    constructor(
        uint16 _maxTotalSupply,
        uint16 _publicSaleTxLimit,
        uint16 _batchSize
    ) ERC721A("Ape Scoundrel Squad", "ASS") {
        saleConfig.MAX_TX_PUBLIC_SALE_CLAIM_QTY = _publicSaleTxLimit;
        saleConfig.MAX_TOTAL_SUPPLY = _maxTotalSupply;
        saleConfig.BATCH_SIZE = _batchSize;
    }

    using Strings for uint256;

    event VoucherUsed(
        address indexed _address,
        uint256 _nonce,
        uint256 _claimQty
    );

    string public BASE_URI;
    address public metadataProvider;
    address public signer;
    address public proxyRegistryAddress;
    bool IS_METADATA_LOCKED;
    bool IS_PROXY_REGISTRY_LOCKED;
    mapping(address => bool) public admins;
    mapping(uint256 => uint256) public voucherToMinted;

    struct SaleConfig {
        bool IS_PRESALE_ON; // turns on redeemVoucher functionality
        bool IS_PUBLIC_SALE_ON; // turn on mintSale
        uint16 BATCH_SIZE; // controls ERC721A max mint ranges to balance transfer cost for big batches
        uint16 MAX_TOTAL_SUPPLY;
        uint16 PUBLIC_SALE_KEY; // key to unlock public sale when it's on
        uint16 MAX_TX_PUBLIC_SALE_CLAIM_QTY; // max tokens that can be minted per transaction
        uint16 MAX_ADDRESS_PUBLIC_SALE_CLAIM_QTY; // max tokens that can be minted per address (public sale)
        uint16 BONUS_QTY; // if public sale transaction mints more than this qty then free mint is granted per each bonus qty
        uint16 FREE_MINT_RANGE_END; // makes a range of tokens free (e.g first 500 minted during public sale)
        uint64 SALE_MINT_PRICE;
    }

    SaleConfig public saleConfig;

    function setAdmins(address[] calldata _admins, bool _isActive)
        external
        isAdminOrOwner
    {
        for (uint256 i = 0; i < _admins.length; i++) {
            admins[_admins[i]] = _isActive;
        }
    }

    function setFreeMintRangeEnd(uint256 offset) external isAdminOrOwner {
        // config that helps create a range of free tokens for public sale
        // this should be activated only after presale is over

        saleConfig.FREE_MINT_RANGE_END = uint16(_totalMinted() + offset);
    }

    function setBatchSize(uint16 _batchSize) external isAdminOrOwner {
        saleConfig.BATCH_SIZE = _batchSize;
    }

    function setBonusQty(uint16 _bonusQty) external isAdminOrOwner {
        saleConfig.BONUS_QTY = _bonusQty;
    }

    function setSigner(address _signer) external isAdminOrOwner {
        signer = _signer;
    }

    function setProxyRegistryAddress(address _proxyRegistry)
        external
        isAdminOrOwner
    {
        require(!IS_PROXY_REGISTRY_LOCKED, "proxy registry is locked");
        proxyRegistryAddress = _proxyRegistry;
    }

    function lockProxyRegistry() external isAdminOrOwner {
        IS_PROXY_REGISTRY_LOCKED = true;
    }

    function setMaxTxPublicSaleQty(uint16 _maxQty) external isAdminOrOwner {
        saleConfig.MAX_TX_PUBLIC_SALE_CLAIM_QTY = _maxQty;
    }

    function setMaxAddressPublicSaleQty(uint16 _maxQty)
        external
        isAdminOrOwner
    {
        saleConfig.MAX_ADDRESS_PUBLIC_SALE_CLAIM_QTY = _maxQty;
    }

    function setIsPublicSaleOn(bool _isOn, uint16 _publicSaleKey)
        external
        isAdminOrOwner
    {
        saleConfig.IS_PUBLIC_SALE_ON = _isOn;
        saleConfig.PUBLIC_SALE_KEY = _publicSaleKey;
    }

    function setIsPresaleOn(bool _isOn) external isAdminOrOwner {
        saleConfig.IS_PRESALE_ON = _isOn;
    }

    function reduceMaxTotalSupply(uint16 _newMaxTotalSupply)
        external
        isAdminOrOwner
    {
        require(
            (_newMaxTotalSupply < saleConfig.MAX_TOTAL_SUPPLY) &&
                (_totalMinted() <= _newMaxTotalSupply)
        );

        saleConfig.MAX_TOTAL_SUPPLY = _newMaxTotalSupply;
    }

    function lockMetadata() external isAdminOrOwner {
        IS_METADATA_LOCKED = true;
    }

    function setSaleMintPrice(uint256 _newSaleMintPrice)
        external
        isAdminOrOwner
    {
        saleConfig.SALE_MINT_PRICE = uint64(_newSaleMintPrice);
    }

    function setMetadataProvider(address _provider) external isAdminOrOwner {
        require(!IS_METADATA_LOCKED, "metadata is locked");
        metadataProvider = _provider;
    }

    function setBaseURI(string calldata _baseURI) external isAdminOrOwner {
        require(!IS_METADATA_LOCKED, "metadata is locked");
        BASE_URI = _baseURI;
    }

    function _checkIfSenderIsOrigin() private view {
        require(tx.origin == msg.sender, "Cannot be called from a contract");
    }

    function _isAdminOrOwner() private view {
        require(
            admins[msg.sender] || owner() == msg.sender,
            "caller is not admin or owner"
        );
    }

    modifier isAdminOrOwner() {
        _isAdminOrOwner();
        _;
    }

    modifier senderIsOrigin() {
        _checkIfSenderIsOrigin();
        _;
    }

    function _startTokenId() internal pure override returns (uint256) {
        return 1;
    }

    function withdraw() external isAdminOrOwner {
        payable(owner()).transfer(address(this).balance);
    }

    function _batchMint(
        address _address,
        uint256 _claimQty,
        uint16 _batchSize
    ) private {
        uint256 batches = _claimQty / _batchSize;
        uint256 lastBatch = _batchSize;

        if (_claimQty % _batchSize != 0) {
            batches += 1;
            lastBatch = _claimQty % _batchSize;
        }

        for (uint256 i; i < batches; i++) {
            _safeMint(_address, i + 1 == batches ? lastBatch : _batchSize);
        }
    }

    function airdropMintTo(address _address, uint256 _qty)
        external
        isAdminOrOwner
    {
        SaleConfig memory cfg = saleConfig;
        require(
            _totalMinted() + _qty <= cfg.MAX_TOTAL_SUPPLY,
            "exceeds collection size"
        );
        _setAux(_address, uint64(_getAux(_address) + _qty));
        _batchMint(_address, _qty, cfg.BATCH_SIZE);
    }

    function redeemVoucher(
        address _address,
        uint256 _approvedQty,
        uint256 _price,
        uint256 _nonce,
        uint256 _expiryTimestamp,
        bool _isLastItemFree,
        uint256 _claimQty,
        bytes calldata _voucher
    ) external payable senderIsOrigin {
        SaleConfig memory cfg = saleConfig;

        require(cfg.IS_PRESALE_ON, "presale is not active");
        require(
            _totalMinted() + _claimQty <= cfg.MAX_TOTAL_SUPPLY,
            "exceeds collection size"
        );

        if (_expiryTimestamp != 0) {
            require(block.timestamp < _expiryTimestamp, "voucher is expired");
        }

        bytes32 hash = keccak256(
            abi.encodePacked(
                _address,
                _approvedQty,
                _price,
                _nonce,
                _expiryTimestamp,
                _isLastItemFree
            )
        );

        require(_verifySignature(signer, hash, _voucher), "invalid signature");

        uint256 totalWithClaimed = voucherToMinted[uint256(hash)] + _claimQty;
        require(totalWithClaimed <= _approvedQty, "exceeds approved qty");
        voucherToMinted[uint256(hash)] += _claimQty;

        // Make last item free if voucher allows
        string memory err = "not enough funds sent";
        if (totalWithClaimed == _approvedQty && _isLastItemFree) {
            require(msg.value >= _price * (_claimQty - 1), err);
        } else {
            require(msg.value >= _price * _claimQty, err);
        }

        // incrementing total number of minted vouchers
        uint64 newTotalMintedVouchers = uint64(_getAux(_address) + _claimQty);
        _setAux(_address, newTotalMintedVouchers);

        _batchMint(_address, _claimQty, cfg.BATCH_SIZE);
        emit VoucherUsed(_address, _nonce, _claimQty);
    }

    function mintSale(uint256 _claimQty, uint256 _publicSaleKey)
        external
        payable
        senderIsOrigin
    {
        SaleConfig memory cfg = saleConfig;
        require(cfg.IS_PUBLIC_SALE_ON, "sale is not active");
        require(cfg.PUBLIC_SALE_KEY == _publicSaleKey, "wrong key");

        if (cfg.FREE_MINT_RANGE_END < _totalMinted() + _claimQty) {
            // calculate discount
            uint256 discount = cfg.BONUS_QTY == 0
                ? 0
                : _claimQty / cfg.BONUS_QTY;

            require(
                msg.value >= cfg.SALE_MINT_PRICE * (_claimQty - discount),
                "not enough funds sent"
            );
        }

        require(
            _totalMinted() + _claimQty <= cfg.MAX_TOTAL_SUPPLY,
            "exceeds collection size"
        );
        require(
            _claimQty <= cfg.MAX_TX_PUBLIC_SALE_CLAIM_QTY,
            "claiming too much"
        );

        if (cfg.MAX_ADDRESS_PUBLIC_SALE_CLAIM_QTY != 0) {
            require(
                _numberMinted(msg.sender) - _getAux(msg.sender) + _claimQty <=
                    cfg.MAX_ADDRESS_PUBLIC_SALE_CLAIM_QTY,
                "exceeds allowed claim quantity per address"
            );
        }

        _batchMint(msg.sender, _claimQty, cfg.BATCH_SIZE);
    }

    function totalMinted() public view returns (uint256) {
        return _totalMinted();
    }

    function totalBurned() public view returns (uint256) {
        return _burnCounter;
    }

    function numberMinted(address _owner) public view returns (uint256) {
        return _numberMinted(_owner);
    }

    function numberBurned(address _owner) public view returns (uint256) {
        return _numberBurned(_owner);
    }

    function numberMintedVouchers(address _owner)
        public
        view
        returns (uint256)
    {
        return _getAux(_owner);
    }

    function getOwnershipData(uint256 tokenId)
        external
        view
        returns (TokenOwnership memory)
    {
        return _ownershipOf(tokenId);
    }

    function tokenURI(uint256 _tokenId)
        public
        view
        override
        returns (string memory)
    {
        require(_exists(_tokenId), "query for nonexistent token");

        return
            metadataProvider != address(0)
                ? MetadataProvider(metadataProvider).tokenURI(_tokenId)
                : string(abi.encodePacked(BASE_URI, _tokenId.toString()));
    }

    function tokenData(uint256 _tokenId) public view returns (bytes memory) {
        require(_exists(_tokenId), "query for nonexistent token");
        require(metadataProvider != address(0), "metadata provider is not set");

        return MetadataProvider(metadataProvider).tokenData(_tokenId);
    }

    function isApprovedForAll(address _owner, address _operator)
        public
        view
        override
        returns (bool)
    {
        OpenSeaProxyRegistry proxyRegistry = OpenSeaProxyRegistry(
            proxyRegistryAddress
        );

        return
            (proxyRegistryAddress != address(0) &&
                address(proxyRegistry.proxies(_owner)) == _operator) ||
            super.isApprovedForAll(_owner, _operator);
    }

    function batchTransferFrom(
        address _from,
        address[] calldata _to,
        uint256[] calldata _tokenIds,
        bool _safe
    ) public {
        if (_safe) {
            for (uint256 i; i < _tokenIds.length; i++) {
                safeTransferFrom(_from, _to[i], _tokenIds[i]);
            }
            return;
        }

        for (uint256 i; i < _tokenIds.length; i++) {
            transferFrom(_from, _to[i], _tokenIds[i]);
        }
    }

    function batchBurn(uint256[] calldata _tokenIds) public {
        for (uint256 i; i < _tokenIds.length; i++) {
            burn(_tokenIds[i]);
        }
    }

    function _verifySignature(
        address _signer,
        bytes32 _hash,
        bytes memory _signature
    ) private pure returns (bool) {
        return
            _signer ==
            ECDSA.recover(ECDSA.toEthSignedMessageHash(_hash), _signature);
    }
}

contract OwnableDelegateProxy {}

contract OpenSeaProxyRegistry {
    mapping(address => OwnableDelegateProxy) public proxies;
}

File 2 of 12 : 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 12 : ECDSA.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (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;
        uint8 v;
        assembly {
            s := and(vs, 0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff)
            v := add(shr(255, vs), 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 12 : ERC721A.sol
// SPDX-License-Identifier: MIT
// Creator: Chiru Labs

pragma solidity ^0.8.4;

import "@openzeppelin/contracts/token/ERC721/IERC721.sol";
import "@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata.sol";
import "@openzeppelin/contracts/utils/Address.sol";
import "@openzeppelin/contracts/utils/Context.sol";
import "@openzeppelin/contracts/utils/Strings.sol";
import "@openzeppelin/contracts/utils/introspection/ERC165.sol";

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

/**
 * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
 * the Metadata 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 Context, ERC165, IERC721, IERC721Metadata {
    using Address for address;
    using Strings for uint256;

    // Compiler will pack this into a single 256bit word.
    struct TokenOwnership {
        // The address of the owner.
        address addr;
        // Keeps track of the start time of ownership with minimal overhead for tokenomics.
        uint64 startTimestamp;
        // Whether the token has been burned.
        bool burned;
    }

    // Compiler will pack this into a single 256bit word.
    struct AddressData {
        // Realistically, 2**64-1 is more than enough.
        uint64 balance;
        // Keeps track of mint count with minimal overhead for tokenomics.
        uint64 numberMinted;
        // Keeps track of burn count with minimal overhead for tokenomics.
        uint64 numberBurned;
        // For miscellaneous variable(s) pertaining to the address
        // (e.g. number of whitelist mint slots used).
        // If there are multiple variables, please pack them into a uint64.
        uint64 aux;
    }

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

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

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

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

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

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

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

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

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

    /**
     * @dev Burned tokens are calculated here, use _totalMinted() if you want to count just minted tokens.
     */
    function totalSupply() public view returns (uint256) {
        // Counter underflow is impossible as _burnCounter cannot be incremented
        // more than _currentIndex - _startTokenId() times
        unchecked {
            return _currentIndex - _burnCounter - _startTokenId();
        }
    }

    /**
     * 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 See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId)
        public
        view
        virtual
        override(ERC165, IERC165)
        returns (bool)
    {
        return
            interfaceId == type(IERC721).interfaceId ||
            interfaceId == type(IERC721Metadata).interfaceId ||
            super.supportsInterface(interfaceId);
    }

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

    /**
     * Returns the number of tokens minted by `owner`.
     */
    function _numberMinted(address owner) internal view returns (uint256) {
        return uint256(_addressData[owner].numberMinted);
    }

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

    /**
     * Returns the auxillary data for `owner`. (e.g. number of whitelist mint slots used).
     */
    function _getAux(address owner) internal view returns (uint64) {
        return _addressData[owner].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 {
        _addressData[owner].aux = aux;
    }

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

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

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

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

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

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

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

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

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

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

        _approve(to, tokenId, owner);
    }

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

        return _tokenApprovals[tokenId];
    }

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

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

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

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

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

    /**
     * @dev See {IERC721-safeTransferFrom}.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) public virtual override {
        _transfer(from, to, tokenId);
        if (
            to.isContract() &&
            !_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 &&
            !_ownerships[tokenId].burned;
    }

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

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

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

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

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

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

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

            if (safe && to.isContract()) {
                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 Transfers `tokenId` from `from` to `to`.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - `tokenId` token must be owned by `from`.
     *
     * Emits a {Transfer} event.
     */
    function _transfer(
        address from,
        address to,
        uint256 tokenId
    ) private {
        TokenOwnership memory prevOwnership = _ownershipOf(tokenId);

        if (prevOwnership.addr != from) revert TransferFromIncorrectOwner();

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

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

        _beforeTokenTransfers(from, to, tokenId, 1);

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

        // 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 {
            _addressData[from].balance -= 1;
            _addressData[to].balance += 1;

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

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

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

    /**
     * @dev This is 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 {
        TokenOwnership memory prevOwnership = _ownershipOf(tokenId);

        address from = prevOwnership.addr;

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

            if (!isApprovedOrOwner) revert TransferCallerNotOwnerNorApproved();
        }

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

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

        // 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 {
            AddressData storage addressData = _addressData[from];
            addressData.balance -= 1;
            addressData.numberBurned += 1;

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

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

        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 Approve `to` to operate on `tokenId`
     *
     * Emits a {Approval} event.
     */
    function _approve(
        address to,
        uint256 tokenId,
        address owner
    ) private {
        _tokenApprovals[tokenId] = to;
        emit Approval(owner, to, tokenId);
    }

    /**
     * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target 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
            IERC721Receiver(to).onERC721Received(
                _msgSender(),
                from,
                tokenId,
                _data
            )
        returns (bytes4 retval) {
            return retval == IERC721Receiver(to).onERC721Received.selector;
        } catch (bytes memory reason) {
            if (reason.length == 0) {
                revert TransferToNonERC721ReceiverImplementer();
            } else {
                assembly {
                    revert(add(32, reason), mload(reason))
                }
            }
        }
    }

    /**
     * @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 {}
}

/**
 * @title ERC721A Burnable Token
 * @dev ERC721A Token that can be irreversibly burned (destroyed).
 */
abstract contract ERC721ABurnable is ERC721A {
    /**
     * @dev Burns `tokenId`. See {ERC721A-_burn}.
     *
     * Requirements:
     *
     * - The caller must own `tokenId` or be an approved operator.
     */
    function burn(uint256 tokenId) public virtual {
        _burn(tokenId, true);
    }
}

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

File 8 of 12 : IERC721Receiver.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721Receiver.sol)

pragma solidity ^0.8.0;

/**
 * @title ERC721 token receiver interface
 * @dev Interface for any contract that wants to support safeTransfers
 * from ERC721 asset contracts.
 */
interface IERC721Receiver {
    /**
     * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom}
     * by `operator` from `from`, this function is called.
     *
     * It must return its Solidity selector to confirm the token transfer.
     * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted.
     *
     * The selector can be obtained in Solidity with `IERC721.onERC721Received.selector`.
     */
    function onERC721Received(
        address operator,
        address from,
        uint256 tokenId,
        bytes calldata data
    ) external returns (bytes4);
}

File 9 of 12 : IERC721Metadata.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol)

pragma solidity ^0.8.0;

import "../IERC721.sol";

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

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

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

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

pragma solidity ^0.8.0;

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * [IMPORTANT]
     * ====
     * It is unsafe to assume that an address for which this function returns
     * false is an externally-owned account (EOA) and not a contract.
     *
     * Among others, `isContract` will return false for the following
     * types of addresses:
     *
     *  - an externally-owned account
     *  - a contract in construction
     *  - an address where a contract will be created
     *  - an address where a contract lived, but was destroyed
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize, which returns 0 for contracts in
        // construction, since the code is only stored at the end of the
        // constructor execution.

        uint256 size;
        assembly {
            size := extcodesize(account)
        }
        return size > 0;
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

File 11 of 12 : ERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol)

pragma solidity ^0.8.0;

import "./IERC165.sol";

/**
 * @dev Implementation of the {IERC165} interface.
 *
 * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check
 * for the additional interface id that will be supported. For example:
 *
 * ```solidity
 * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
 *     return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId);
 * }
 * ```
 *
 * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation.
 */
abstract contract ERC165 is IERC165 {
    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
        return interfaceId == type(IERC165).interfaceId;
    }
}

File 12 of 12 : IERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol)

pragma solidity ^0.8.0;

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

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"uint16","name":"_maxTotalSupply","type":"uint16"},{"internalType":"uint16","name":"_publicSaleTxLimit","type":"uint16"},{"internalType":"uint16","name":"_batchSize","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"},{"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"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_address","type":"address"},{"indexed":false,"internalType":"uint256","name":"_nonce","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"_claimQty","type":"uint256"}],"name":"VoucherUsed","type":"event"},{"inputs":[],"name":"BASE_URI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"admins","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"},{"internalType":"uint256","name":"_qty","type":"uint256"}],"name":"airdropMintTo","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"_tokenIds","type":"uint256[]"}],"name":"batchBurn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_from","type":"address"},{"internalType":"address[]","name":"_to","type":"address[]"},{"internalType":"uint256[]","name":"_tokenIds","type":"uint256[]"},{"internalType":"bool","name":"_safe","type":"bool"}],"name":"batchTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getOwnershipData","outputs":[{"components":[{"internalType":"address","name":"addr","type":"address"},{"internalType":"uint64","name":"startTimestamp","type":"uint64"},{"internalType":"bool","name":"burned","type":"bool"}],"internalType":"struct ERC721A.TokenOwnership","name":"","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":[],"name":"lockMetadata","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"lockProxyRegistry","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"metadataProvider","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_claimQty","type":"uint256"},{"internalType":"uint256","name":"_publicSaleKey","type":"uint256"}],"name":"mintSale","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_owner","type":"address"}],"name":"numberBurned","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_owner","type":"address"}],"name":"numberMinted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_owner","type":"address"}],"name":"numberMintedVouchers","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"proxyRegistryAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"},{"internalType":"uint256","name":"_approvedQty","type":"uint256"},{"internalType":"uint256","name":"_price","type":"uint256"},{"internalType":"uint256","name":"_nonce","type":"uint256"},{"internalType":"uint256","name":"_expiryTimestamp","type":"uint256"},{"internalType":"bool","name":"_isLastItemFree","type":"bool"},{"internalType":"uint256","name":"_claimQty","type":"uint256"},{"internalType":"bytes","name":"_voucher","type":"bytes"}],"name":"redeemVoucher","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint16","name":"_newMaxTotalSupply","type":"uint16"}],"name":"reduceMaxTotalSupply","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"saleConfig","outputs":[{"internalType":"bool","name":"IS_PRESALE_ON","type":"bool"},{"internalType":"bool","name":"IS_PUBLIC_SALE_ON","type":"bool"},{"internalType":"uint16","name":"BATCH_SIZE","type":"uint16"},{"internalType":"uint16","name":"MAX_TOTAL_SUPPLY","type":"uint16"},{"internalType":"uint16","name":"PUBLIC_SALE_KEY","type":"uint16"},{"internalType":"uint16","name":"MAX_TX_PUBLIC_SALE_CLAIM_QTY","type":"uint16"},{"internalType":"uint16","name":"MAX_ADDRESS_PUBLIC_SALE_CLAIM_QTY","type":"uint16"},{"internalType":"uint16","name":"BONUS_QTY","type":"uint16"},{"internalType":"uint16","name":"FREE_MINT_RANGE_END","type":"uint16"},{"internalType":"uint64","name":"SALE_MINT_PRICE","type":"uint64"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"_admins","type":"address[]"},{"internalType":"bool","name":"_isActive","type":"bool"}],"name":"setAdmins","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_baseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"_batchSize","type":"uint16"}],"name":"setBatchSize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"_bonusQty","type":"uint16"}],"name":"setBonusQty","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"offset","type":"uint256"}],"name":"setFreeMintRangeEnd","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_isOn","type":"bool"}],"name":"setIsPresaleOn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_isOn","type":"bool"},{"internalType":"uint16","name":"_publicSaleKey","type":"uint16"}],"name":"setIsPublicSaleOn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"_maxQty","type":"uint16"}],"name":"setMaxAddressPublicSaleQty","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"_maxQty","type":"uint16"}],"name":"setMaxTxPublicSaleQty","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_provider","type":"address"}],"name":"setMetadataProvider","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_proxyRegistry","type":"address"}],"name":"setProxyRegistryAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newSaleMintPrice","type":"uint256"}],"name":"setSaleMintPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_signer","type":"address"}],"name":"setSigner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"signer","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"tokenData","outputs":[{"internalType":"bytes","name":"","type":"bytes"}],"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":"totalBurned","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalMinted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"voucherToMinted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60806040523480156200001157600080fd5b5060405162003d7a38038062003d7a833981016040819052620000349162000221565b604080518082018252601381527f4170652053636f756e6472656c2053717561640000000000000000000000000060208083019182528351808501909452600384526241535360e81b908401528151919291620000949160029162000163565b508051620000aa90600390602084019062000163565b5050600160005550620000bd3362000111565b600f805465ffff0000ffff60201b19166801000000000000000061ffff9485160261ffff60201b191617640100000000948416949094029390931763ffff00001916620100009190921602179055620002a7565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b82805462000171906200026a565b90600052602060002090601f016020900481019282620001955760008555620001e0565b82601f10620001b057805160ff1916838001178555620001e0565b82800160010185558215620001e0579182015b82811115620001e0578251825591602001919060010190620001c3565b50620001ee929150620001f2565b5090565b5b80821115620001ee5760008155600101620001f3565b805161ffff811681146200021c57600080fd5b919050565b60008060006060848603121562000236578283fd5b620002418462000209565b9250620002516020850162000209565b9150620002616040850162000209565b90509250925092565b600181811c908216806200027f57607f821691505b60208210811415620002a157634e487b7160e01b600052602260045260246000fd5b50919050565b613ac380620002b76000396000f3fe6080604052600436106103355760003560e01c80638da5cb5b116101ab578063ba64c7d6116100f7578063d89135cd11610095578063dc8e92ea1161006f578063dc8e92ea14610a60578063dcbe423e14610a80578063e985e9c514610a93578063f2fde38b14610ab357600080fd5b8063d89135cd14610a16578063dbddb26a14610a2b578063dc33e68114610a4057600080fd5b8063cd7c0326116100d1578063cd7c032614610996578063d26ea6c0146109b6578063d3d72d2a146109d6578063d4673de9146109f657600080fd5b8063ba64c7d614610936578063c87b56dd14610956578063cb226c3b1461097657600080fd5b806398315b7511610164578063a2309ff81161013e578063a2309ff8146108c1578063b05c38ec146108d6578063b4b5b48f146108f6578063b88d4fde1461091657600080fd5b806398315b751461085f578063989bdbb61461088c578063a22cb465146108a157600080fd5b80638da5cb5b146106b457806390aa0b0f146106d257806390d6e120146107b45780639154f886146107d45780639231ab2a146107f457806395d89b411461084a57600080fd5b806342966c681161028557806364b094021161022357806370a08231116101fd57806370a082311461063f578063715018a61461065f578063841479e4146106745780638b935af41461069457600080fd5b806364b09402146105ec5780636a0bf1721461060c5780636c19e7831461061f57600080fd5b80634fc69b9b1161025f5780634fc69b9b1461056c57806355f804b31461058c5780635c9dddd9146105ac5780636352211e146105cc57600080fd5b806342966c6814610507578063429b62e51461052757806342b6ec2d1461055757600080fd5b8063238ac933116102f25780632e8ee8ef116102cc5780632e8ee8ef146104925780633ccfd60b146104b2578063400643a2146104c757806342842e0e146104e757600080fd5b8063238ac9331461043257806323b872dd146104525780632478d6391461047257600080fd5b806301ffc9a71461033a578063030e2c881461036f57806306fdde0314610391578063081812fc146103b3578063095ea7b3146103eb57806318160ddd1461040b575b600080fd5b34801561034657600080fd5b5061035a61035536600461361d565b610ad3565b60405190151581526020015b60405180910390f35b34801561037b57600080fd5b5061038f61038a36600461354a565b610b25565b005b34801561039d57600080fd5b506103a6610bb2565b6040516103669190613867565b3480156103bf57600080fd5b506103d36103ce366004613703565b610c44565b6040516001600160a01b039091168152602001610366565b3480156103f757600080fd5b5061038f610406366004613488565b610c88565b34801561041757600080fd5b5060015460005403600019015b604051908152602001610366565b34801561043e57600080fd5b50600b546103d3906001600160a01b031681565b34801561045e57600080fd5b5061038f61046d3660046132e5565b610d16565b34801561047e57600080fd5b5061042461048d366004613291565b610d21565b34801561049e57600080fd5b5061038f6104ad3660046136e9565b610d4f565b3480156104be57600080fd5b5061038f610db0565b3480156104d357600080fd5b5061038f6104e23660046133c6565b610df4565b3480156104f357600080fd5b5061038f6105023660046132e5565b610f0e565b34801561051357600080fd5b5061038f610522366004613703565b610f29565b34801561053357600080fd5b5061035a610542366004613291565b600d6020526000908152604090205460ff1681565b34801561056357600080fd5b5061038f610f34565b34801561057857600080fd5b5061038f610587366004613703565b610f51565b34801561059857600080fd5b5061038f6105a73660046136b6565b610f90565b3480156105b857600080fd5b5061038f6105c73660046136e9565b610ff8565b3480156105d857600080fd5b506103d36105e7366004613703565b611022565b3480156105f857600080fd5b5061038f610607366004613291565b611034565b61038f61061a36600461371b565b6110ad565b34801561062b57600080fd5b5061038f61063a366004613291565b6113ed565b34801561064b57600080fd5b5061042461065a366004613291565b611417565b34801561066b57600080fd5b5061038f611465565b34801561068057600080fd5b5061038f61068f366004613488565b6114cb565b3480156106a057600080fd5b5061038f6106af3660046136e9565b6115e1565b3480156106c057600080fd5b506008546001600160a01b03166103d3565b3480156106de57600080fd5b50600f546107519060ff8082169161010081049091169061ffff6201000082048116916401000000008104821691600160301b8204811691600160401b8104821691600160501b8204811691600160601b8104821691600160701b820416906001600160401b03600160801b909104168a565b604080519a15158b5298151560208b015261ffff978816988a01989098529486166060890152928516608088015290841660a0870152831660c0860152821660e0850152166101008301526001600160401b031661012082015261014001610366565b3480156107c057600080fd5b5061038f6107cf3660046135da565b61160b565b3480156107e057600080fd5b5061038f6107ef3660046135f4565b611626565b34801561080057600080fd5b5061081461080f366004613703565b61166b565b6040805182516001600160a01b031681526020808401516001600160401b03169082015291810151151590820152606001610366565b34801561085657600080fd5b506103a6611691565b34801561086b57600080fd5b5061042461087a366004613703565b600e6020526000908152604090205481565b34801561089857600080fd5b5061038f6116a0565b3480156108ad57600080fd5b5061038f6108bc366004613454565b6116bd565b3480156108cd57600080fd5b50610424611753565b3480156108e257600080fd5b506104246108f1366004613291565b611762565b34801561090257600080fd5b506103a6610911366004613703565b61177c565b34801561092257600080fd5b5061038f610931366004613325565b6118ac565b34801561094257600080fd5b5061038f610951366004613703565b6118f7565b34801561096257600080fd5b506103a6610971366004613703565b61192c565b34801561098257600080fd5b5061038f6109913660046136e9565b6119f4565b3480156109a257600080fd5b50600c546103d3906001600160a01b031681565b3480156109c257600080fd5b5061038f6109d1366004613291565b611a23565b3480156109e257600080fd5b50600a546103d3906001600160a01b031681565b348015610a0257600080fd5b5061038f610a113660046136e9565b611aa7565b348015610a2257600080fd5b50600154610424565b348015610a3757600080fd5b506103a6611acf565b348015610a4c57600080fd5b50610424610a5b366004613291565b611b5d565b348015610a6c57600080fd5b5061038f610a7b36600461359b565b611b8b565b61038f610a8e3660046134b3565b611bd7565b348015610a9f57600080fd5b5061035a610aae3660046132ad565b611ffd565b348015610abf57600080fd5b5061038f610ace366004613291565b6120d7565b60006001600160e01b031982166380ac58cd60e01b1480610b0457506001600160e01b03198216635b5e139f60e01b145b80610b1f57506301ffc9a760e01b6001600160e01b03198316145b92915050565b610b2d61219f565b60005b82811015610bac5781600d6000868685818110610b5d57634e487b7160e01b600052603260045260246000fd5b9050602002016020810190610b729190613291565b6001600160a01b031681526020810191909152604001600020805460ff191691151591909117905580610ba4816139d1565b915050610b30565b50505050565b606060028054610bc190613996565b80601f0160208091040260200160405190810160405280929190818152602001828054610bed90613996565b8015610c3a5780601f10610c0f57610100808354040283529160200191610c3a565b820191906000526020600020905b815481529060010190602001808311610c1d57829003601f168201915b5050505050905090565b6000610c4f82612222565b610c6c576040516333d1c03960e21b815260040160405180910390fd5b506000908152600660205260409020546001600160a01b031690565b6000610c9382611022565b9050806001600160a01b0316836001600160a01b03161415610cc85760405163250fdee360e21b815260040160405180910390fd5b336001600160a01b03821614801590610ce85750610ce68133611ffd565b155b15610d06576040516367d9dca160e11b815260040160405180910390fd5b610d1183838361225b565b505050565b610d118383836122b7565b6001600160a01b038116600090815260056020526040812054600160801b90046001600160401b0316610b1f565b610d5761219f565b600f5461ffff6401000000009091048116908216108015610d8357508061ffff16610d80612493565b11155b610d8c57600080fd5b600f805461ffff9092166401000000000265ffff0000000019909216919091179055565b610db861219f565b6008546040516001600160a01b03909116904780156108fc02916000818181858888f19350505050158015610df1573d6000803e3d6000fd5b50565b8015610e825760005b82811015610e7c57610e6a87878784818110610e2957634e487b7160e01b600052603260045260246000fd5b9050602002016020810190610e3e9190613291565b868685818110610e5e57634e487b7160e01b600052603260045260246000fd5b90506020020135610f0e565b80610e74816139d1565b915050610dfd565b50610f06565b60005b82811015610f0457610ef287878784818110610eb157634e487b7160e01b600052603260045260246000fd5b9050602002016020810190610ec69190613291565b868685818110610ee657634e487b7160e01b600052603260045260246000fd5b90506020020135610d16565b80610efc816139d1565b915050610e85565b505b505050505050565b610d11838383604051806020016040528060008152506118ac565b610df181600161249d565b610f3c61219f565b600c805460ff60a81b1916600160a81b179055565b610f5961219f565b80610f62612493565b610f6c9190613908565b600f805461ffff92909216600160701b0261ffff60701b1990921691909117905550565b610f9861219f565b600c54600160a01b900460ff1615610fec5760405162461bcd60e51b81526020600482015260126024820152711b595d1859185d18481a5cc81b1bd8dad95960721b60448201526064015b60405180910390fd5b610d116009838361311b565b61100061219f565b600f805461ffff909216600160601b0261ffff60601b19909216919091179055565b600061102d82612650565b5192915050565b61103c61219f565b600c54600160a01b900460ff161561108b5760405162461bcd60e51b81526020600482015260126024820152711b595d1859185d18481a5cc81b1bd8dad95960721b6044820152606401610fe3565b600a80546001600160a01b0319166001600160a01b0392909216919091179055565b6110b5612777565b6040805161014081018252600f5460ff8082161515835261010080830490911615156020840181905261ffff620100008404811695850195909552640100000000830485166060850152600160301b830485166080850152600160401b8304851660a0850152600160501b8304851660c0850152600160601b8304851660e0850152600160701b8304909416908301526001600160401b03600160801b909104166101208201529061119e5760405162461bcd60e51b815260206004820152601260248201527173616c65206973206e6f742061637469766560701b6044820152606401610fe3565b81816080015161ffff16146111e15760405162461bcd60e51b815260206004820152600960248201526877726f6e67206b657960b81b6044820152606401610fe3565b826111ea612493565b6111f49190613908565b81610100015161ffff16101561129f5760008160e0015161ffff1660001461122e5760e08201516112299061ffff1685613920565b611231565b60005b905061123d8185613953565b8261012001516001600160401b03166112569190613934565b34101561129d5760405162461bcd60e51b81526020600482015260156024820152741b9bdd08195b9bdd59da08199d5b991cc81cd95b9d605a1b6044820152606401610fe3565b505b806060015161ffff16836112b1612493565b6112bb9190613908565b11156112d95760405162461bcd60e51b8152600401610fe39061387a565b8060a0015161ffff168311156113255760405162461bcd60e51b81526020600482015260116024820152700c6d8c2d2dad2dcce40e8dede40daeac6d607b1b6044820152606401610fe3565b60c081015161ffff16156113de578060c0015161ffff1683611346336127c6565b33600090815260056020526040902054611373916001600160401b0390811691600160401b900416613953565b61137d9190613908565b11156113de5760405162461bcd60e51b815260206004820152602a60248201527f6578636565647320616c6c6f77656420636c61696d207175616e7469747920706044820152696572206164647265737360b01b6064820152608401610fe3565b610d11338483604001516127f1565b6113f561219f565b600b80546001600160a01b0319166001600160a01b0392909216919091179055565b60006001600160a01b038216611440576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b03166000908152600560205260409020546001600160401b031690565b6008546001600160a01b031633146114bf5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610fe3565b6114c96000612877565b565b6114d361219f565b6040805161014081018252600f5460ff808216151583526101008083049091161515602084015261ffff6201000083048116948401949094526401000000008204841660608401819052600160301b830485166080850152600160401b8304851660a0850152600160501b8304851660c0850152600160601b8304851660e0850152600160701b8304909416908301526001600160401b03600160801b909104166101208201529082611584612493565b61158e9190613908565b11156115ac5760405162461bcd60e51b8152600401610fe39061387a565b6115d283836115ba866127c6565b6001600160401b03166115cd9190613908565b6128c9565b610d11838383604001516127f1565b6115e961219f565b600f805461ffff909216600160501b0261ffff60501b19909216919091179055565b61161361219f565b600f805460ff1916911515919091179055565b61162e61219f565b600f805467ffff00000000ff0019166101009315159390930267ffff000000000000191692909217600160301b61ffff9290921691909102179055565b6040805160608101825260008082526020820181905291810191909152610b1f82612650565b606060038054610bc190613996565b6116a861219f565b600c805460ff60a01b1916600160a01b179055565b6001600160a01b0382163314156116e75760405163b06307db60e01b815260040160405180910390fd5b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b600061175d612493565b905090565b600061176d826127c6565b6001600160401b031692915050565b606061178782612222565b6117d35760405162461bcd60e51b815260206004820152601b60248201527f717565727920666f72206e6f6e6578697374656e7420746f6b656e00000000006044820152606401610fe3565b600a546001600160a01b031661182b5760405162461bcd60e51b815260206004820152601c60248201527f6d657461646174612070726f7669646572206973206e6f7420736574000000006044820152606401610fe3565b600a5460405163b4b5b48f60e01b8152600481018490526001600160a01b039091169063b4b5b48f906024015b60006040518083038186803b15801561187057600080fd5b505afa158015611884573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052610b1f9190810190613655565b6118b78484846122b7565b6001600160a01b0383163b151580156118d957506118d784848484612908565b155b15610bac576040516368d2bf6b60e11b815260040160405180910390fd5b6118ff61219f565b600f80546001600160401b03909216600160801b0267ffffffffffffffff60801b19909216919091179055565b606061193782612222565b6119835760405162461bcd60e51b815260206004820152601b60248201527f717565727920666f72206e6f6e6578697374656e7420746f6b656e00000000006044820152606401610fe3565b600a546001600160a01b03166119c357600961199e836129ff565b6040516020016119af929190613784565b604051602081830303815290604052610b1f565b600a5460405163c87b56dd60e01b8152600481018490526001600160a01b039091169063c87b56dd90602401611858565b6119fc61219f565b600f805461ffff909216600160401b0269ffff000000000000000019909216919091179055565b611a2b61219f565b600c54600160a81b900460ff1615611a855760405162461bcd60e51b815260206004820152601860248201527f70726f7879207265676973747279206973206c6f636b656400000000000000006044820152606401610fe3565b600c80546001600160a01b0319166001600160a01b0392909216919091179055565b611aaf61219f565b600f805461ffff909216620100000263ffff000019909216919091179055565b60098054611adc90613996565b80601f0160208091040260200160405190810160405280929190818152602001828054611b0890613996565b8015611b555780601f10611b2a57610100808354040283529160200191611b55565b820191906000526020600020905b815481529060010190602001808311611b3857829003601f168201915b505050505081565b6001600160a01b038116600090815260056020526040812054600160401b90046001600160401b0316610b1f565b60005b81811015610d1157611bc5838383818110611bb957634e487b7160e01b600052603260045260246000fd5b90506020020135610f29565b80611bcf816139d1565b915050611b8e565b611bdf612777565b6040805161014081018252600f5460ff80821615158084526101008084049092161515602085015261ffff620100008404811695850195909552640100000000830485166060850152600160301b830485166080850152600160401b8304851660a0850152600160501b8304851660c0850152600160601b8304851660e0850152600160701b8304909416908301526001600160401b03600160801b9091041661012082015290611cca5760405162461bcd60e51b815260206004820152601560248201527470726573616c65206973206e6f742061637469766560581b6044820152606401610fe3565b806060015161ffff1684611cdc612493565b611ce69190613908565b1115611d045760405162461bcd60e51b8152600401610fe39061387a565b8515611d4e57854210611d4e5760405162461bcd60e51b81526020600482015260126024820152711d9bdd58da195c881a5cc8195e1c1a5c995960721b6044820152606401610fe3565b6040516bffffffffffffffffffffffff1960608c901b166020820152603481018a905260548101899052607481018890526094810187905285151560f81b60b482015260009060b50160408051601f198184030181528282528051602091820120600b54601f88018390048302850183019093528684529350611df9926001600160a01b039092169184918890889081908401838280828437600092019190915250612b1892505050565b611e395760405162461bcd60e51b8152602060048201526011602482015270696e76616c6964207369676e617475726560781b6044820152606401610fe3565b6000818152600e6020526040812054611e53908790613908565b90508a811115611e9c5760405162461bcd60e51b81526020600482015260146024820152736578636565647320617070726f7665642071747960601b6044820152606401610fe3565b6000828152600e602052604081208054889290611eba908490613908565b90915550506040805180820190915260158152741b9bdd08195b9bdd59da08199d5b991cc81cd95b9d605a1b6020820152818c148015611ef75750875b15611f3957611f07600188613953565b611f11908c613934565b3410158190611f335760405162461bcd60e51b8152600401610fe39190613867565b50611f67565b611f43878c613934565b3410158190611f655760405162461bcd60e51b8152600401610fe39190613867565b505b600087611f738f6127c6565b6001600160401b0316611f869190613908565b9050611f928e826128c9565b611fa18e8987604001516127f1565b8d6001600160a01b03167f7f8116dee4dcad7a6847ed8d84779ab3ba76e1385bc9251da7b521e7c2e7cc2d8c8a604051611fe5929190918252602082015260400190565b60405180910390a25050505050505050505050505050565b600c546000906001600160a01b0316801580159061209f575060405163c455279160e01b81526001600160a01b038581166004830152808516919083169063c45527919060240160206040518083038186803b15801561205c57600080fd5b505afa158015612070573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612094919061369a565b6001600160a01b0316145b806120cf57506001600160a01b0380851660009081526007602090815260408083209387168352929052205460ff165b949350505050565b6008546001600160a01b031633146121315760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610fe3565b6001600160a01b0381166121965760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610fe3565b610df181612877565b336000908152600d602052604090205460ff16806121d65750336121cb6008546001600160a01b031690565b6001600160a01b0316145b6114c95760405162461bcd60e51b815260206004820152601c60248201527f63616c6c6572206973206e6f742061646d696e206f72206f776e6572000000006044820152606401610fe3565b600081600111158015612236575060005482105b8015610b1f575050600090815260046020526040902054600160e01b900460ff161590565b60008281526006602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b60006122c282612650565b9050836001600160a01b031681600001516001600160a01b0316146122f95760405162a1148160e81b815260040160405180910390fd5b6000336001600160a01b038616148061231757506123178533611ffd565b8061233257503361232784610c44565b6001600160a01b0316145b90508061235257604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b03841661237957604051633a954ecd60e21b815260040160405180910390fd5b6123856000848761225b565b6001600160a01b038581166000908152600560209081526040808320805467ffffffffffffffff198082166001600160401b0392831660001901831617909255898616808652838620805493841693831660019081018416949094179055898652600490945282852080546001600160e01b031916909417600160a01b4290921691909102178355870180845292208054919390911661245957600054821461245957805460208601516001600160401b0316600160a01b026001600160e01b03199091166001600160a01b038a16171781555b50505082846001600160a01b0316866001600160a01b0316600080516020613a6e83398151915260405160405180910390a45b5050505050565b6000546000190190565b60006124a883612650565b8051909150821561250e576000336001600160a01b03831614806124d157506124d18233611ffd565b806124ec5750336124e186610c44565b6001600160a01b0316145b90508061250c57604051632ce44b5f60e11b815260040160405180910390fd5b505b61251a6000858361225b565b6001600160a01b0380821660008181526005602090815260408083208054600160801b6000196001600160401b0380841691909101811667ffffffffffffffff198416811783900482166001908101831690930277ffffffffffffffff0000000000000000ffffffffffffffff19909416179290921783558b86526004909452828520805460ff60e01b1942909316600160a01b026001600160e01b03199091169097179690961716600160e01b17855591890180845292208054919490911661261857600054821461261857805460208701516001600160401b0316600160a01b026001600160e01b03199091166001600160a01b038716171781555b5050604051869250600091506001600160a01b03841690600080516020613a6e833981519152908390a4505060018054810190555050565b60408051606081018252600080825260208201819052918101919091528180600111158015612680575060005481105b1561275e57600081815260046020908152604091829020825160608101845290546001600160a01b0381168252600160a01b81046001600160401b031692820192909252600160e01b90910460ff1615159181018290529061275c5780516001600160a01b0316156126f3579392505050565b5060001901600081815260046020908152604091829020825160608101845290546001600160a01b038116808352600160a01b82046001600160401b031693830193909352600160e01b900460ff1615159281019290925215612757579392505050565b6126f3565b505b604051636f96cda160e11b815260040160405180910390fd5b3233146114c95760405162461bcd60e51b815260206004820181905260248201527f43616e6e6f742062652063616c6c65642066726f6d206120636f6e74726163746044820152606401610fe3565b6001600160a01b0316600090815260056020526040902054600160c01b90046001600160401b031690565b600061280161ffff831684613920565b905061ffff821661281281856139ec565b1561283557612822600183613908565b915061283261ffff8416856139ec565b90505b60005b82811015610f06576128658684612850846001613908565b1461285f578561ffff16612b98565b83612b98565b8061286f816139d1565b915050612838565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b03909116600090815260056020526040902080546001600160401b03909216600160c01b026001600160c01b03909216919091179055565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a029061293d90339089908890889060040161382a565b602060405180830381600087803b15801561295757600080fd5b505af1925050508015612987575060408051601f3d908101601f1916820190925261298491810190613639565b60015b6129e2573d8080156129b5576040519150601f19603f3d011682016040523d82523d6000602084013e6129ba565b606091505b5080516129da576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050949350505050565b606081612a235750506040805180820190915260018152600360fc1b602082015290565b8160005b8115612a4d5780612a37816139d1565b9150612a469050600a83613920565b9150612a27565b6000816001600160401b03811115612a7557634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015612a9f576020820181803683370190505b5090505b84156120cf57612ab4600183613953565b9150612ac1600a866139ec565b612acc906030613908565b60f81b818381518110612aef57634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350612b11600a86613920565b9450612aa3565b6000612b7a612b74846040517f19457468657265756d205369676e6564204d6573736167653a0a3332000000006020820152603c8101829052600090605c01604051602081830303815290604052805190602001209050919050565b83612bb6565b6001600160a01b0316846001600160a01b03161490505b9392505050565b612bb2828260405180602001604052806000815250612bda565b5050565b6000806000612bc58585612be7565b91509150612bd281612c57565b509392505050565b610d118383836001612e58565b600080825160411415612c1e5760208301516040840151606085015160001a612c1287828585612fff565b94509450505050612c50565b825160401415612c485760208301516040840151612c3d8683836130ec565b935093505050612c50565b506000905060025b9250929050565b6000816004811115612c7957634e487b7160e01b600052602160045260246000fd5b1415612c825750565b6001816004811115612ca457634e487b7160e01b600052602160045260246000fd5b1415612cf25760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152606401610fe3565b6002816004811115612d1457634e487b7160e01b600052602160045260246000fd5b1415612d625760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152606401610fe3565b6003816004811115612d8457634e487b7160e01b600052602160045260246000fd5b1415612ddd5760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b6064820152608401610fe3565b6004816004811115612dff57634e487b7160e01b600052602160045260246000fd5b1415610df15760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b6064820152608401610fe3565b6000546001600160a01b038516612e8157604051622e076360e81b815260040160405180910390fd5b83612e9f5760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b038516600081815260056020908152604080832080546fffffffffffffffffffffffffffffffff1981166001600160401b038083168c018116918217600160401b67ffffffffffffffff1990941690921783900481168c01811690920217909155858452600490925290912080546001600160e01b031916909217600160a01b429092169190910217905580808501838015612f4b57506001600160a01b0387163b15155b15612fc2575b60405182906001600160a01b03891690600090600080516020613a6e833981519152908290a4612f8a6000888480600101955088612908565b612fa7576040516368d2bf6b60e11b815260040160405180910390fd5b80821415612f51578260005414612fbd57600080fd5b612ff6565b5b6040516001830192906001600160a01b03891690600090600080516020613a6e833981519152908290a480821415612fc3575b5060005561248c565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a083111561303657506000905060036130e3565b8460ff16601b1415801561304e57508460ff16601c14155b1561305f57506000905060046130e3565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa1580156130b3573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b0381166130dc576000600192509250506130e3565b9150600090505b94509492505050565b6000806001600160ff1b03831660ff84901c601b0161310d87828885612fff565b935093505050935093915050565b82805461312790613996565b90600052602060002090601f016020900481019282613149576000855561318f565b82601f106131625782800160ff1982351617855561318f565b8280016001018555821561318f579182015b8281111561318f578235825591602001919060010190613174565b5061319b92915061319f565b5090565b5b8082111561319b57600081556001016131a0565b60006131c76131c2846138e1565b6138b1565b90508281528383830111156131db57600080fd5b612b9183602083018461396a565b60008083601f8401126131fa578182fd5b5081356001600160401b03811115613210578182fd5b6020830191508360208260051b8501011115612c5057600080fd5b8035801515811461323b57600080fd5b919050565b60008083601f840112613251578182fd5b5081356001600160401b03811115613267578182fd5b602083019150836020828501011115612c5057600080fd5b803561ffff8116811461323b57600080fd5b6000602082840312156132a2578081fd5b8135612b9181613a42565b600080604083850312156132bf578081fd5b82356132ca81613a42565b915060208301356132da81613a42565b809150509250929050565b6000806000606084860312156132f9578081fd5b833561330481613a42565b9250602084013561331481613a42565b929592945050506040919091013590565b6000806000806080858703121561333a578081fd5b843561334581613a42565b9350602085013561335581613a42565b92506040850135915060608501356001600160401b03811115613376578182fd5b8501601f81018713613386578182fd5b80356133946131c2826138e1565b8181528860208385010111156133a8578384fd5b81602084016020830137908101602001929092525092959194509250565b600080600080600080608087890312156133de578182fd5b86356133e981613a42565b955060208701356001600160401b0380821115613404578384fd5b6134108a838b016131e9565b90975095506040890135915080821115613428578384fd5b5061343589828a016131e9565b909450925061344890506060880161322b565b90509295509295509295565b60008060408385031215613466578182fd5b823561347181613a42565b915061347f6020840161322b565b90509250929050565b6000806040838503121561349a578182fd5b82356134a581613a42565b946020939093013593505050565b60008060008060008060008060006101008a8c0312156134d1578687fd5b89356134dc81613a42565b985060208a0135975060408a0135965060608a0135955060808a0135945061350660a08b0161322b565b935060c08a0135925060e08a01356001600160401b03811115613527578283fd5b6135338c828d01613240565b915080935050809150509295985092959850929598565b60008060006040848603121561355e578081fd5b83356001600160401b03811115613573578182fd5b61357f868287016131e9565b909450925061359290506020850161322b565b90509250925092565b600080602083850312156135ad578182fd5b82356001600160401b038111156135c2578283fd5b6135ce858286016131e9565b90969095509350505050565b6000602082840312156135eb578081fd5b612b918261322b565b60008060408385031215613606578182fd5b61360f8361322b565b915061347f6020840161327f565b60006020828403121561362e578081fd5b8135612b9181613a57565b60006020828403121561364a578081fd5b8151612b9181613a57565b600060208284031215613666578081fd5b81516001600160401b0381111561367b578182fd5b8201601f8101841361368b578182fd5b6120cf848251602084016131b4565b6000602082840312156136ab578081fd5b8151612b9181613a42565b600080602083850312156136c8578182fd5b82356001600160401b038111156136dd578283fd5b6135ce85828601613240565b6000602082840312156136fa578081fd5b612b918261327f565b600060208284031215613714578081fd5b5035919050565b6000806040838503121561372d578182fd5b50508035926020909101359150565b6000815180845261375481602086016020860161396a565b601f01601f19169290920160200192915050565b6000815161377a81856020860161396a565b9290920192915050565b600080845482600182811c9150808316806137a057607f831692505b60208084108214156137c057634e487b7160e01b87526022600452602487fd5b8180156137d457600181146137e557613811565b60ff19861689528489019650613811565b60008b815260209020885b868110156138095781548b8201529085019083016137f0565b505084890196505b5050505050506138218185613768565b95945050505050565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061385d9083018461373c565b9695505050505050565b602081526000612b91602083018461373c565b60208082526017908201527f6578636565647320636f6c6c656374696f6e2073697a65000000000000000000604082015260600190565b604051601f8201601f191681016001600160401b03811182821017156138d9576138d9613a2c565b604052919050565b60006001600160401b038211156138fa576138fa613a2c565b50601f01601f191660200190565b6000821982111561391b5761391b613a00565b500190565b60008261392f5761392f613a16565b500490565b600081600019048311821515161561394e5761394e613a00565b500290565b60008282101561396557613965613a00565b500390565b60005b8381101561398557818101518382015260200161396d565b83811115610bac5750506000910152565b600181811c908216806139aa57607f821691505b602082108114156139cb57634e487b7160e01b600052602260045260246000fd5b50919050565b60006000198214156139e5576139e5613a00565b5060010190565b6000826139fb576139fb613a16565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b0381168114610df157600080fd5b6001600160e01b031981168114610df157600080fdfeddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3efa2646970667358221220e8491be938b886aef992b496e31687879ba28a722d07f4a54b27ebf87417287764736f6c63430008040033000000000000000000000000000000000000000000000000000000000000138800000000000000000000000000000000000000000000000000000000000000140000000000000000000000000000000000000000000000000000000000000005

Deployed Bytecode

0x6080604052600436106103355760003560e01c80638da5cb5b116101ab578063ba64c7d6116100f7578063d89135cd11610095578063dc8e92ea1161006f578063dc8e92ea14610a60578063dcbe423e14610a80578063e985e9c514610a93578063f2fde38b14610ab357600080fd5b8063d89135cd14610a16578063dbddb26a14610a2b578063dc33e68114610a4057600080fd5b8063cd7c0326116100d1578063cd7c032614610996578063d26ea6c0146109b6578063d3d72d2a146109d6578063d4673de9146109f657600080fd5b8063ba64c7d614610936578063c87b56dd14610956578063cb226c3b1461097657600080fd5b806398315b7511610164578063a2309ff81161013e578063a2309ff8146108c1578063b05c38ec146108d6578063b4b5b48f146108f6578063b88d4fde1461091657600080fd5b806398315b751461085f578063989bdbb61461088c578063a22cb465146108a157600080fd5b80638da5cb5b146106b457806390aa0b0f146106d257806390d6e120146107b45780639154f886146107d45780639231ab2a146107f457806395d89b411461084a57600080fd5b806342966c681161028557806364b094021161022357806370a08231116101fd57806370a082311461063f578063715018a61461065f578063841479e4146106745780638b935af41461069457600080fd5b806364b09402146105ec5780636a0bf1721461060c5780636c19e7831461061f57600080fd5b80634fc69b9b1161025f5780634fc69b9b1461056c57806355f804b31461058c5780635c9dddd9146105ac5780636352211e146105cc57600080fd5b806342966c6814610507578063429b62e51461052757806342b6ec2d1461055757600080fd5b8063238ac933116102f25780632e8ee8ef116102cc5780632e8ee8ef146104925780633ccfd60b146104b2578063400643a2146104c757806342842e0e146104e757600080fd5b8063238ac9331461043257806323b872dd146104525780632478d6391461047257600080fd5b806301ffc9a71461033a578063030e2c881461036f57806306fdde0314610391578063081812fc146103b3578063095ea7b3146103eb57806318160ddd1461040b575b600080fd5b34801561034657600080fd5b5061035a61035536600461361d565b610ad3565b60405190151581526020015b60405180910390f35b34801561037b57600080fd5b5061038f61038a36600461354a565b610b25565b005b34801561039d57600080fd5b506103a6610bb2565b6040516103669190613867565b3480156103bf57600080fd5b506103d36103ce366004613703565b610c44565b6040516001600160a01b039091168152602001610366565b3480156103f757600080fd5b5061038f610406366004613488565b610c88565b34801561041757600080fd5b5060015460005403600019015b604051908152602001610366565b34801561043e57600080fd5b50600b546103d3906001600160a01b031681565b34801561045e57600080fd5b5061038f61046d3660046132e5565b610d16565b34801561047e57600080fd5b5061042461048d366004613291565b610d21565b34801561049e57600080fd5b5061038f6104ad3660046136e9565b610d4f565b3480156104be57600080fd5b5061038f610db0565b3480156104d357600080fd5b5061038f6104e23660046133c6565b610df4565b3480156104f357600080fd5b5061038f6105023660046132e5565b610f0e565b34801561051357600080fd5b5061038f610522366004613703565b610f29565b34801561053357600080fd5b5061035a610542366004613291565b600d6020526000908152604090205460ff1681565b34801561056357600080fd5b5061038f610f34565b34801561057857600080fd5b5061038f610587366004613703565b610f51565b34801561059857600080fd5b5061038f6105a73660046136b6565b610f90565b3480156105b857600080fd5b5061038f6105c73660046136e9565b610ff8565b3480156105d857600080fd5b506103d36105e7366004613703565b611022565b3480156105f857600080fd5b5061038f610607366004613291565b611034565b61038f61061a36600461371b565b6110ad565b34801561062b57600080fd5b5061038f61063a366004613291565b6113ed565b34801561064b57600080fd5b5061042461065a366004613291565b611417565b34801561066b57600080fd5b5061038f611465565b34801561068057600080fd5b5061038f61068f366004613488565b6114cb565b3480156106a057600080fd5b5061038f6106af3660046136e9565b6115e1565b3480156106c057600080fd5b506008546001600160a01b03166103d3565b3480156106de57600080fd5b50600f546107519060ff8082169161010081049091169061ffff6201000082048116916401000000008104821691600160301b8204811691600160401b8104821691600160501b8204811691600160601b8104821691600160701b820416906001600160401b03600160801b909104168a565b604080519a15158b5298151560208b015261ffff978816988a01989098529486166060890152928516608088015290841660a0870152831660c0860152821660e0850152166101008301526001600160401b031661012082015261014001610366565b3480156107c057600080fd5b5061038f6107cf3660046135da565b61160b565b3480156107e057600080fd5b5061038f6107ef3660046135f4565b611626565b34801561080057600080fd5b5061081461080f366004613703565b61166b565b6040805182516001600160a01b031681526020808401516001600160401b03169082015291810151151590820152606001610366565b34801561085657600080fd5b506103a6611691565b34801561086b57600080fd5b5061042461087a366004613703565b600e6020526000908152604090205481565b34801561089857600080fd5b5061038f6116a0565b3480156108ad57600080fd5b5061038f6108bc366004613454565b6116bd565b3480156108cd57600080fd5b50610424611753565b3480156108e257600080fd5b506104246108f1366004613291565b611762565b34801561090257600080fd5b506103a6610911366004613703565b61177c565b34801561092257600080fd5b5061038f610931366004613325565b6118ac565b34801561094257600080fd5b5061038f610951366004613703565b6118f7565b34801561096257600080fd5b506103a6610971366004613703565b61192c565b34801561098257600080fd5b5061038f6109913660046136e9565b6119f4565b3480156109a257600080fd5b50600c546103d3906001600160a01b031681565b3480156109c257600080fd5b5061038f6109d1366004613291565b611a23565b3480156109e257600080fd5b50600a546103d3906001600160a01b031681565b348015610a0257600080fd5b5061038f610a113660046136e9565b611aa7565b348015610a2257600080fd5b50600154610424565b348015610a3757600080fd5b506103a6611acf565b348015610a4c57600080fd5b50610424610a5b366004613291565b611b5d565b348015610a6c57600080fd5b5061038f610a7b36600461359b565b611b8b565b61038f610a8e3660046134b3565b611bd7565b348015610a9f57600080fd5b5061035a610aae3660046132ad565b611ffd565b348015610abf57600080fd5b5061038f610ace366004613291565b6120d7565b60006001600160e01b031982166380ac58cd60e01b1480610b0457506001600160e01b03198216635b5e139f60e01b145b80610b1f57506301ffc9a760e01b6001600160e01b03198316145b92915050565b610b2d61219f565b60005b82811015610bac5781600d6000868685818110610b5d57634e487b7160e01b600052603260045260246000fd5b9050602002016020810190610b729190613291565b6001600160a01b031681526020810191909152604001600020805460ff191691151591909117905580610ba4816139d1565b915050610b30565b50505050565b606060028054610bc190613996565b80601f0160208091040260200160405190810160405280929190818152602001828054610bed90613996565b8015610c3a5780601f10610c0f57610100808354040283529160200191610c3a565b820191906000526020600020905b815481529060010190602001808311610c1d57829003601f168201915b5050505050905090565b6000610c4f82612222565b610c6c576040516333d1c03960e21b815260040160405180910390fd5b506000908152600660205260409020546001600160a01b031690565b6000610c9382611022565b9050806001600160a01b0316836001600160a01b03161415610cc85760405163250fdee360e21b815260040160405180910390fd5b336001600160a01b03821614801590610ce85750610ce68133611ffd565b155b15610d06576040516367d9dca160e11b815260040160405180910390fd5b610d1183838361225b565b505050565b610d118383836122b7565b6001600160a01b038116600090815260056020526040812054600160801b90046001600160401b0316610b1f565b610d5761219f565b600f5461ffff6401000000009091048116908216108015610d8357508061ffff16610d80612493565b11155b610d8c57600080fd5b600f805461ffff9092166401000000000265ffff0000000019909216919091179055565b610db861219f565b6008546040516001600160a01b03909116904780156108fc02916000818181858888f19350505050158015610df1573d6000803e3d6000fd5b50565b8015610e825760005b82811015610e7c57610e6a87878784818110610e2957634e487b7160e01b600052603260045260246000fd5b9050602002016020810190610e3e9190613291565b868685818110610e5e57634e487b7160e01b600052603260045260246000fd5b90506020020135610f0e565b80610e74816139d1565b915050610dfd565b50610f06565b60005b82811015610f0457610ef287878784818110610eb157634e487b7160e01b600052603260045260246000fd5b9050602002016020810190610ec69190613291565b868685818110610ee657634e487b7160e01b600052603260045260246000fd5b90506020020135610d16565b80610efc816139d1565b915050610e85565b505b505050505050565b610d11838383604051806020016040528060008152506118ac565b610df181600161249d565b610f3c61219f565b600c805460ff60a81b1916600160a81b179055565b610f5961219f565b80610f62612493565b610f6c9190613908565b600f805461ffff92909216600160701b0261ffff60701b1990921691909117905550565b610f9861219f565b600c54600160a01b900460ff1615610fec5760405162461bcd60e51b81526020600482015260126024820152711b595d1859185d18481a5cc81b1bd8dad95960721b60448201526064015b60405180910390fd5b610d116009838361311b565b61100061219f565b600f805461ffff909216600160601b0261ffff60601b19909216919091179055565b600061102d82612650565b5192915050565b61103c61219f565b600c54600160a01b900460ff161561108b5760405162461bcd60e51b81526020600482015260126024820152711b595d1859185d18481a5cc81b1bd8dad95960721b6044820152606401610fe3565b600a80546001600160a01b0319166001600160a01b0392909216919091179055565b6110b5612777565b6040805161014081018252600f5460ff8082161515835261010080830490911615156020840181905261ffff620100008404811695850195909552640100000000830485166060850152600160301b830485166080850152600160401b8304851660a0850152600160501b8304851660c0850152600160601b8304851660e0850152600160701b8304909416908301526001600160401b03600160801b909104166101208201529061119e5760405162461bcd60e51b815260206004820152601260248201527173616c65206973206e6f742061637469766560701b6044820152606401610fe3565b81816080015161ffff16146111e15760405162461bcd60e51b815260206004820152600960248201526877726f6e67206b657960b81b6044820152606401610fe3565b826111ea612493565b6111f49190613908565b81610100015161ffff16101561129f5760008160e0015161ffff1660001461122e5760e08201516112299061ffff1685613920565b611231565b60005b905061123d8185613953565b8261012001516001600160401b03166112569190613934565b34101561129d5760405162461bcd60e51b81526020600482015260156024820152741b9bdd08195b9bdd59da08199d5b991cc81cd95b9d605a1b6044820152606401610fe3565b505b806060015161ffff16836112b1612493565b6112bb9190613908565b11156112d95760405162461bcd60e51b8152600401610fe39061387a565b8060a0015161ffff168311156113255760405162461bcd60e51b81526020600482015260116024820152700c6d8c2d2dad2dcce40e8dede40daeac6d607b1b6044820152606401610fe3565b60c081015161ffff16156113de578060c0015161ffff1683611346336127c6565b33600090815260056020526040902054611373916001600160401b0390811691600160401b900416613953565b61137d9190613908565b11156113de5760405162461bcd60e51b815260206004820152602a60248201527f6578636565647320616c6c6f77656420636c61696d207175616e7469747920706044820152696572206164647265737360b01b6064820152608401610fe3565b610d11338483604001516127f1565b6113f561219f565b600b80546001600160a01b0319166001600160a01b0392909216919091179055565b60006001600160a01b038216611440576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b03166000908152600560205260409020546001600160401b031690565b6008546001600160a01b031633146114bf5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610fe3565b6114c96000612877565b565b6114d361219f565b6040805161014081018252600f5460ff808216151583526101008083049091161515602084015261ffff6201000083048116948401949094526401000000008204841660608401819052600160301b830485166080850152600160401b8304851660a0850152600160501b8304851660c0850152600160601b8304851660e0850152600160701b8304909416908301526001600160401b03600160801b909104166101208201529082611584612493565b61158e9190613908565b11156115ac5760405162461bcd60e51b8152600401610fe39061387a565b6115d283836115ba866127c6565b6001600160401b03166115cd9190613908565b6128c9565b610d11838383604001516127f1565b6115e961219f565b600f805461ffff909216600160501b0261ffff60501b19909216919091179055565b61161361219f565b600f805460ff1916911515919091179055565b61162e61219f565b600f805467ffff00000000ff0019166101009315159390930267ffff000000000000191692909217600160301b61ffff9290921691909102179055565b6040805160608101825260008082526020820181905291810191909152610b1f82612650565b606060038054610bc190613996565b6116a861219f565b600c805460ff60a01b1916600160a01b179055565b6001600160a01b0382163314156116e75760405163b06307db60e01b815260040160405180910390fd5b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b600061175d612493565b905090565b600061176d826127c6565b6001600160401b031692915050565b606061178782612222565b6117d35760405162461bcd60e51b815260206004820152601b60248201527f717565727920666f72206e6f6e6578697374656e7420746f6b656e00000000006044820152606401610fe3565b600a546001600160a01b031661182b5760405162461bcd60e51b815260206004820152601c60248201527f6d657461646174612070726f7669646572206973206e6f7420736574000000006044820152606401610fe3565b600a5460405163b4b5b48f60e01b8152600481018490526001600160a01b039091169063b4b5b48f906024015b60006040518083038186803b15801561187057600080fd5b505afa158015611884573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052610b1f9190810190613655565b6118b78484846122b7565b6001600160a01b0383163b151580156118d957506118d784848484612908565b155b15610bac576040516368d2bf6b60e11b815260040160405180910390fd5b6118ff61219f565b600f80546001600160401b03909216600160801b0267ffffffffffffffff60801b19909216919091179055565b606061193782612222565b6119835760405162461bcd60e51b815260206004820152601b60248201527f717565727920666f72206e6f6e6578697374656e7420746f6b656e00000000006044820152606401610fe3565b600a546001600160a01b03166119c357600961199e836129ff565b6040516020016119af929190613784565b604051602081830303815290604052610b1f565b600a5460405163c87b56dd60e01b8152600481018490526001600160a01b039091169063c87b56dd90602401611858565b6119fc61219f565b600f805461ffff909216600160401b0269ffff000000000000000019909216919091179055565b611a2b61219f565b600c54600160a81b900460ff1615611a855760405162461bcd60e51b815260206004820152601860248201527f70726f7879207265676973747279206973206c6f636b656400000000000000006044820152606401610fe3565b600c80546001600160a01b0319166001600160a01b0392909216919091179055565b611aaf61219f565b600f805461ffff909216620100000263ffff000019909216919091179055565b60098054611adc90613996565b80601f0160208091040260200160405190810160405280929190818152602001828054611b0890613996565b8015611b555780601f10611b2a57610100808354040283529160200191611b55565b820191906000526020600020905b815481529060010190602001808311611b3857829003601f168201915b505050505081565b6001600160a01b038116600090815260056020526040812054600160401b90046001600160401b0316610b1f565b60005b81811015610d1157611bc5838383818110611bb957634e487b7160e01b600052603260045260246000fd5b90506020020135610f29565b80611bcf816139d1565b915050611b8e565b611bdf612777565b6040805161014081018252600f5460ff80821615158084526101008084049092161515602085015261ffff620100008404811695850195909552640100000000830485166060850152600160301b830485166080850152600160401b8304851660a0850152600160501b8304851660c0850152600160601b8304851660e0850152600160701b8304909416908301526001600160401b03600160801b9091041661012082015290611cca5760405162461bcd60e51b815260206004820152601560248201527470726573616c65206973206e6f742061637469766560581b6044820152606401610fe3565b806060015161ffff1684611cdc612493565b611ce69190613908565b1115611d045760405162461bcd60e51b8152600401610fe39061387a565b8515611d4e57854210611d4e5760405162461bcd60e51b81526020600482015260126024820152711d9bdd58da195c881a5cc8195e1c1a5c995960721b6044820152606401610fe3565b6040516bffffffffffffffffffffffff1960608c901b166020820152603481018a905260548101899052607481018890526094810187905285151560f81b60b482015260009060b50160408051601f198184030181528282528051602091820120600b54601f88018390048302850183019093528684529350611df9926001600160a01b039092169184918890889081908401838280828437600092019190915250612b1892505050565b611e395760405162461bcd60e51b8152602060048201526011602482015270696e76616c6964207369676e617475726560781b6044820152606401610fe3565b6000818152600e6020526040812054611e53908790613908565b90508a811115611e9c5760405162461bcd60e51b81526020600482015260146024820152736578636565647320617070726f7665642071747960601b6044820152606401610fe3565b6000828152600e602052604081208054889290611eba908490613908565b90915550506040805180820190915260158152741b9bdd08195b9bdd59da08199d5b991cc81cd95b9d605a1b6020820152818c148015611ef75750875b15611f3957611f07600188613953565b611f11908c613934565b3410158190611f335760405162461bcd60e51b8152600401610fe39190613867565b50611f67565b611f43878c613934565b3410158190611f655760405162461bcd60e51b8152600401610fe39190613867565b505b600087611f738f6127c6565b6001600160401b0316611f869190613908565b9050611f928e826128c9565b611fa18e8987604001516127f1565b8d6001600160a01b03167f7f8116dee4dcad7a6847ed8d84779ab3ba76e1385bc9251da7b521e7c2e7cc2d8c8a604051611fe5929190918252602082015260400190565b60405180910390a25050505050505050505050505050565b600c546000906001600160a01b0316801580159061209f575060405163c455279160e01b81526001600160a01b038581166004830152808516919083169063c45527919060240160206040518083038186803b15801561205c57600080fd5b505afa158015612070573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612094919061369a565b6001600160a01b0316145b806120cf57506001600160a01b0380851660009081526007602090815260408083209387168352929052205460ff165b949350505050565b6008546001600160a01b031633146121315760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610fe3565b6001600160a01b0381166121965760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610fe3565b610df181612877565b336000908152600d602052604090205460ff16806121d65750336121cb6008546001600160a01b031690565b6001600160a01b0316145b6114c95760405162461bcd60e51b815260206004820152601c60248201527f63616c6c6572206973206e6f742061646d696e206f72206f776e6572000000006044820152606401610fe3565b600081600111158015612236575060005482105b8015610b1f575050600090815260046020526040902054600160e01b900460ff161590565b60008281526006602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b60006122c282612650565b9050836001600160a01b031681600001516001600160a01b0316146122f95760405162a1148160e81b815260040160405180910390fd5b6000336001600160a01b038616148061231757506123178533611ffd565b8061233257503361232784610c44565b6001600160a01b0316145b90508061235257604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b03841661237957604051633a954ecd60e21b815260040160405180910390fd5b6123856000848761225b565b6001600160a01b038581166000908152600560209081526040808320805467ffffffffffffffff198082166001600160401b0392831660001901831617909255898616808652838620805493841693831660019081018416949094179055898652600490945282852080546001600160e01b031916909417600160a01b4290921691909102178355870180845292208054919390911661245957600054821461245957805460208601516001600160401b0316600160a01b026001600160e01b03199091166001600160a01b038a16171781555b50505082846001600160a01b0316866001600160a01b0316600080516020613a6e83398151915260405160405180910390a45b5050505050565b6000546000190190565b60006124a883612650565b8051909150821561250e576000336001600160a01b03831614806124d157506124d18233611ffd565b806124ec5750336124e186610c44565b6001600160a01b0316145b90508061250c57604051632ce44b5f60e11b815260040160405180910390fd5b505b61251a6000858361225b565b6001600160a01b0380821660008181526005602090815260408083208054600160801b6000196001600160401b0380841691909101811667ffffffffffffffff198416811783900482166001908101831690930277ffffffffffffffff0000000000000000ffffffffffffffff19909416179290921783558b86526004909452828520805460ff60e01b1942909316600160a01b026001600160e01b03199091169097179690961716600160e01b17855591890180845292208054919490911661261857600054821461261857805460208701516001600160401b0316600160a01b026001600160e01b03199091166001600160a01b038716171781555b5050604051869250600091506001600160a01b03841690600080516020613a6e833981519152908390a4505060018054810190555050565b60408051606081018252600080825260208201819052918101919091528180600111158015612680575060005481105b1561275e57600081815260046020908152604091829020825160608101845290546001600160a01b0381168252600160a01b81046001600160401b031692820192909252600160e01b90910460ff1615159181018290529061275c5780516001600160a01b0316156126f3579392505050565b5060001901600081815260046020908152604091829020825160608101845290546001600160a01b038116808352600160a01b82046001600160401b031693830193909352600160e01b900460ff1615159281019290925215612757579392505050565b6126f3565b505b604051636f96cda160e11b815260040160405180910390fd5b3233146114c95760405162461bcd60e51b815260206004820181905260248201527f43616e6e6f742062652063616c6c65642066726f6d206120636f6e74726163746044820152606401610fe3565b6001600160a01b0316600090815260056020526040902054600160c01b90046001600160401b031690565b600061280161ffff831684613920565b905061ffff821661281281856139ec565b1561283557612822600183613908565b915061283261ffff8416856139ec565b90505b60005b82811015610f06576128658684612850846001613908565b1461285f578561ffff16612b98565b83612b98565b8061286f816139d1565b915050612838565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b03909116600090815260056020526040902080546001600160401b03909216600160c01b026001600160c01b03909216919091179055565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a029061293d90339089908890889060040161382a565b602060405180830381600087803b15801561295757600080fd5b505af1925050508015612987575060408051601f3d908101601f1916820190925261298491810190613639565b60015b6129e2573d8080156129b5576040519150601f19603f3d011682016040523d82523d6000602084013e6129ba565b606091505b5080516129da576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050949350505050565b606081612a235750506040805180820190915260018152600360fc1b602082015290565b8160005b8115612a4d5780612a37816139d1565b9150612a469050600a83613920565b9150612a27565b6000816001600160401b03811115612a7557634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015612a9f576020820181803683370190505b5090505b84156120cf57612ab4600183613953565b9150612ac1600a866139ec565b612acc906030613908565b60f81b818381518110612aef57634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350612b11600a86613920565b9450612aa3565b6000612b7a612b74846040517f19457468657265756d205369676e6564204d6573736167653a0a3332000000006020820152603c8101829052600090605c01604051602081830303815290604052805190602001209050919050565b83612bb6565b6001600160a01b0316846001600160a01b03161490505b9392505050565b612bb2828260405180602001604052806000815250612bda565b5050565b6000806000612bc58585612be7565b91509150612bd281612c57565b509392505050565b610d118383836001612e58565b600080825160411415612c1e5760208301516040840151606085015160001a612c1287828585612fff565b94509450505050612c50565b825160401415612c485760208301516040840151612c3d8683836130ec565b935093505050612c50565b506000905060025b9250929050565b6000816004811115612c7957634e487b7160e01b600052602160045260246000fd5b1415612c825750565b6001816004811115612ca457634e487b7160e01b600052602160045260246000fd5b1415612cf25760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152606401610fe3565b6002816004811115612d1457634e487b7160e01b600052602160045260246000fd5b1415612d625760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152606401610fe3565b6003816004811115612d8457634e487b7160e01b600052602160045260246000fd5b1415612ddd5760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b6064820152608401610fe3565b6004816004811115612dff57634e487b7160e01b600052602160045260246000fd5b1415610df15760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b6064820152608401610fe3565b6000546001600160a01b038516612e8157604051622e076360e81b815260040160405180910390fd5b83612e9f5760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b038516600081815260056020908152604080832080546fffffffffffffffffffffffffffffffff1981166001600160401b038083168c018116918217600160401b67ffffffffffffffff1990941690921783900481168c01811690920217909155858452600490925290912080546001600160e01b031916909217600160a01b429092169190910217905580808501838015612f4b57506001600160a01b0387163b15155b15612fc2575b60405182906001600160a01b03891690600090600080516020613a6e833981519152908290a4612f8a6000888480600101955088612908565b612fa7576040516368d2bf6b60e11b815260040160405180910390fd5b80821415612f51578260005414612fbd57600080fd5b612ff6565b5b6040516001830192906001600160a01b03891690600090600080516020613a6e833981519152908290a480821415612fc3575b5060005561248c565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a083111561303657506000905060036130e3565b8460ff16601b1415801561304e57508460ff16601c14155b1561305f57506000905060046130e3565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa1580156130b3573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b0381166130dc576000600192509250506130e3565b9150600090505b94509492505050565b6000806001600160ff1b03831660ff84901c601b0161310d87828885612fff565b935093505050935093915050565b82805461312790613996565b90600052602060002090601f016020900481019282613149576000855561318f565b82601f106131625782800160ff1982351617855561318f565b8280016001018555821561318f579182015b8281111561318f578235825591602001919060010190613174565b5061319b92915061319f565b5090565b5b8082111561319b57600081556001016131a0565b60006131c76131c2846138e1565b6138b1565b90508281528383830111156131db57600080fd5b612b9183602083018461396a565b60008083601f8401126131fa578182fd5b5081356001600160401b03811115613210578182fd5b6020830191508360208260051b8501011115612c5057600080fd5b8035801515811461323b57600080fd5b919050565b60008083601f840112613251578182fd5b5081356001600160401b03811115613267578182fd5b602083019150836020828501011115612c5057600080fd5b803561ffff8116811461323b57600080fd5b6000602082840312156132a2578081fd5b8135612b9181613a42565b600080604083850312156132bf578081fd5b82356132ca81613a42565b915060208301356132da81613a42565b809150509250929050565b6000806000606084860312156132f9578081fd5b833561330481613a42565b9250602084013561331481613a42565b929592945050506040919091013590565b6000806000806080858703121561333a578081fd5b843561334581613a42565b9350602085013561335581613a42565b92506040850135915060608501356001600160401b03811115613376578182fd5b8501601f81018713613386578182fd5b80356133946131c2826138e1565b8181528860208385010111156133a8578384fd5b81602084016020830137908101602001929092525092959194509250565b600080600080600080608087890312156133de578182fd5b86356133e981613a42565b955060208701356001600160401b0380821115613404578384fd5b6134108a838b016131e9565b90975095506040890135915080821115613428578384fd5b5061343589828a016131e9565b909450925061344890506060880161322b565b90509295509295509295565b60008060408385031215613466578182fd5b823561347181613a42565b915061347f6020840161322b565b90509250929050565b6000806040838503121561349a578182fd5b82356134a581613a42565b946020939093013593505050565b60008060008060008060008060006101008a8c0312156134d1578687fd5b89356134dc81613a42565b985060208a0135975060408a0135965060608a0135955060808a0135945061350660a08b0161322b565b935060c08a0135925060e08a01356001600160401b03811115613527578283fd5b6135338c828d01613240565b915080935050809150509295985092959850929598565b60008060006040848603121561355e578081fd5b83356001600160401b03811115613573578182fd5b61357f868287016131e9565b909450925061359290506020850161322b565b90509250925092565b600080602083850312156135ad578182fd5b82356001600160401b038111156135c2578283fd5b6135ce858286016131e9565b90969095509350505050565b6000602082840312156135eb578081fd5b612b918261322b565b60008060408385031215613606578182fd5b61360f8361322b565b915061347f6020840161327f565b60006020828403121561362e578081fd5b8135612b9181613a57565b60006020828403121561364a578081fd5b8151612b9181613a57565b600060208284031215613666578081fd5b81516001600160401b0381111561367b578182fd5b8201601f8101841361368b578182fd5b6120cf848251602084016131b4565b6000602082840312156136ab578081fd5b8151612b9181613a42565b600080602083850312156136c8578182fd5b82356001600160401b038111156136dd578283fd5b6135ce85828601613240565b6000602082840312156136fa578081fd5b612b918261327f565b600060208284031215613714578081fd5b5035919050565b6000806040838503121561372d578182fd5b50508035926020909101359150565b6000815180845261375481602086016020860161396a565b601f01601f19169290920160200192915050565b6000815161377a81856020860161396a565b9290920192915050565b600080845482600182811c9150808316806137a057607f831692505b60208084108214156137c057634e487b7160e01b87526022600452602487fd5b8180156137d457600181146137e557613811565b60ff19861689528489019650613811565b60008b815260209020885b868110156138095781548b8201529085019083016137f0565b505084890196505b5050505050506138218185613768565b95945050505050565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061385d9083018461373c565b9695505050505050565b602081526000612b91602083018461373c565b60208082526017908201527f6578636565647320636f6c6c656374696f6e2073697a65000000000000000000604082015260600190565b604051601f8201601f191681016001600160401b03811182821017156138d9576138d9613a2c565b604052919050565b60006001600160401b038211156138fa576138fa613a2c565b50601f01601f191660200190565b6000821982111561391b5761391b613a00565b500190565b60008261392f5761392f613a16565b500490565b600081600019048311821515161561394e5761394e613a00565b500290565b60008282101561396557613965613a00565b500390565b60005b8381101561398557818101518382015260200161396d565b83811115610bac5750506000910152565b600181811c908216806139aa57607f821691505b602082108114156139cb57634e487b7160e01b600052602260045260246000fd5b50919050565b60006000198214156139e5576139e5613a00565b5060010190565b6000826139fb576139fb613a16565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b0381168114610df157600080fd5b6001600160e01b031981168114610df157600080fdfeddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3efa2646970667358221220e8491be938b886aef992b496e31687879ba28a722d07f4a54b27ebf87417287764736f6c63430008040033

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

000000000000000000000000000000000000000000000000000000000000138800000000000000000000000000000000000000000000000000000000000000140000000000000000000000000000000000000000000000000000000000000005

-----Decoded View---------------
Arg [0] : _maxTotalSupply (uint16): 5000
Arg [1] : _publicSaleTxLimit (uint16): 20
Arg [2] : _batchSize (uint16): 5

-----Encoded View---------------
3 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000001388
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000014
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000005


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.