ETH Price: $2,983.14 (-4.77%)
Gas: 3 Gwei

Token

Kaiju Legends (KAIJU)
 

Overview

Max Total Supply

7,777 KAIJU

Holders

993

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Balance
0 KAIJU
0x9c5ee76bf1777afe71c33de9ec4639a8e4b498cb
Loading...
Loading
Loading...
Loading
Loading...
Loading

OVERVIEW

Kaiju Legends is a community-driven collectibles project, while building its own ecosystem around the metaverse. The wave is an Ethereum collection of 7777-generated Kaiju that will arrive on the 15th of August, in collaboration with Crypto.com.

# Exchange Pair Price  24H Volume % Volume

Contract Source Code Verified (Exact Match)

Contract Name:
KaijuLegends

Compiler Version
v0.8.9+commit.e5eed63a

Optimization Enabled:
Yes with 200 runs

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

pragma solidity ^0.8.0;

import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "@openzeppelin/contracts/security/Pausable.sol";
import "@openzeppelin/contracts/utils/cryptography/ECDSA.sol";
import "@openzeppelin/contracts/utils/Strings.sol";
import "erc721a/contracts/ERC721A.sol";

contract KaijuLegends is Ownable, ERC721A, ReentrancyGuard, Pausable {
    /* ======== LIBRARIES ======== */

    using ECDSA for bytes32;

    /* ======== ENUMS ======== */

    enum BatchMintType {
        CRYPTODOTCOM, // 0
        GIVEAWAYS, // 1
        TEAM_TOKENS, // 2
        FREE_MINTS // 3
    }

    /* ======== EVENTS ======== */

    event UpdateSales(bool privateSaleActive, bool partnerSaleActive);
    event UpdateBurn(bool active);
    event UpdateMaxMint(uint256 maxMintPerTx, uint256 maxMintPerWallet);
    event UpdatePartnerMaxMint(uint256 partnerMaxMintPerTx, uint256 partnerMaxMintPerWallet);
    event UpdateTreasury(address treasury);
    event UpdateWhitelistSigner(address whitelistSigner);
    event UpdateBaseURI(string baseURI);
    event UpdatePlaceholderURI(string placeholderURI);
    event UpdatePrivateSalePrice(uint256 privateSalePrice);
    event UpdateCryptoDotComSupply(uint256 supply);
    event UpdateFreeMintsSupply(uint256 supply);
    event UpdateGiveawaySupply(uint256 supply);
    event UpdateTeamTokensSupply(uint256 supply);
    event UpdateMaxSupply(
        uint256 cryptoDotComMaxSupply,
        uint256 privateSaleMaxSupply_,
        uint256 partnerMaxSupply_
    );
    event UpdatePartnerMintContract(address partnerMintContract);

    /* ======== VARIABLES ======== */

    bool public privateSaleActive = true;
    bool public partnerSaleActive = false;
    bool public enableBurn = false;

    uint256 public constant COLLECTION_SUPPLY = 7777;
    uint256 public partnerMaxMintPerTx = 5;
    uint256 public partnerMaxMintPerWallet = 5;
    uint256 public maxMintPerTx = 3;
    uint256 public maxMintPerWallet = 6;
    uint256 public privateSalePrice = .15 ether;
    uint256 public partnerMaxSupply = 200;
    uint256 public cryptoDotComMaxSupply = 2000;
    uint256 public privateSaleMaxSupply = 5577;
    uint256 public cryptoDotComSupply;
    uint256 public giveawaySupply;
    uint256 public teamTokensSupply;
    uint256 public freeMintsSupply;
    uint256 public partnerSupply;
    uint256 public privateSaleSupply;

    address public treasury;
    address public whitelistSigner;
    address public partnerMintContract;

    string public baseURI;
    string public placeholderURI;

    bytes32 public DOMAIN_SEPARATOR;
    bytes32 public constant PRESALE_TYPEHASH =
        keccak256("PrivateSale(address buyer)");

    /* ======== CONSTRUCTOR ======== */

    constructor() ERC721A("Kaiju Legends", "KAIJU") {
        _pause();

        uint256 chainId;
        assembly {
            chainId := chainid()
        }

        DOMAIN_SEPARATOR = keccak256(
            abi.encode(
                keccak256(
                    "EIP712Domain(string name,string version,uint256 chainId,address verifyingContract)"
                ),
                keccak256(bytes("KAIJU")),
                keccak256(bytes("1")),
                chainId,
                address(this)
            )
        );

        whitelistSigner = owner();
    }

    /* ======== MODIFIERS ======== */

    /*
     * @notice: Checks if the msg.sender is the owner or the treasury address
     */
    modifier onlyTreasuryOrOwner() {
        require(
            treasury == _msgSender() || owner() == _msgSender(),
            "Caller is not the owner or treasury"
        );
        _;
    }

    /*
     * @notice: Checks if the msg.sender is the partnerMintContract
     */
    modifier onlyPartner() {
        require(partnerMintContract == _msgSender(), "Caller is not partner");
        _;
    }

    /* ======== SETTERS ======== */

    /*
     * @notice: Pause the smart contract
     * @param: paused_: A boolean to pause or unpause the contract
     */
    function setPaused(bool paused_) external onlyTreasuryOrOwner {
        if (paused_) _pause();
        else _unpause();
    }

    /*
     * @notice: Set the private sale enabled or enabled
     * @param: privateSaleActive_: A boolean to pause or unpause the private sale
     */
    function setSales(bool privateSaleActive_, bool partnerSaleActive_)
        external
        onlyTreasuryOrOwner
    {
        privateSaleActive = privateSaleActive_;
        partnerSaleActive = partnerSaleActive_;
        emit UpdateSales(privateSaleActive_, partnerSaleActive_);
    }

    /*
     * @notice: Set the private sale price
     * @param: privateSalePrice_: The new price for the private sale in WEI
     */
    function setPrivateSalePrice(uint256 privateSalePrice_)
        external
        onlyTreasuryOrOwner
    {
        privateSalePrice = privateSalePrice_;
        emit UpdatePrivateSalePrice(privateSalePrice_);
    }

    /*
     * @notice: Set the max mint per transaction for private sale
     * @param: maxMintPerTx_: The new max mint per transaction
     * @param: maxMintPerWallet_: The new max mint per wallet
     */
    function setPrivateSaleMaxMint(uint256 maxMintPerTx_, uint256 maxMintPerWallet_)
        external
        onlyTreasuryOrOwner
    {
        maxMintPerTx = maxMintPerTx_;
        maxMintPerWallet = maxMintPerWallet_;
        emit UpdateMaxMint(maxMintPerTx_, maxMintPerWallet_);
    }

    /*
     * @notice: Set the new base URI
     * @param: baseURI_: The string of the new base uri
     */
    function setBaseURI(string memory baseURI_) external onlyTreasuryOrOwner {
        baseURI = baseURI_;
        emit UpdateBaseURI(baseURI_);
    }

    /*
     * @notice: Set the new placeholder URI
     * @param: placeholderURI_: The string of the new placeholder URI
     */
    function setPlaceholderURI(string memory placeholderURI_)
        external
        onlyTreasuryOrOwner
    {
        placeholderURI = placeholderURI_;
        emit UpdatePlaceholderURI(placeholderURI_);
    }

    /*
     * @notice: Set the new treasury address
     * @param: treasury_: The new treasury address
     */
    function setTreasury(address treasury_) external onlyTreasuryOrOwner {
        treasury = treasury_;
        emit UpdateTreasury(treasury_);
    }

    /*
     * @notice: Set the new whitelist signer
     * @param: whitelistSigner_: The address of the new whitelist signer for the private sale
     */
    function setWhitelistSigner(address whitelistSigner_)
        external
        onlyTreasuryOrOwner
    {
        whitelistSigner = whitelistSigner_;
        emit UpdateWhitelistSigner(whitelistSigner_);
    }

    /*
     * @notice: Set the new max supply for partner
     * @param: maxMintPerWallet_: The max supply for partner
     */
    function setMaxSupply(
        uint256 cryptoDotComMaxSupply_,
        uint256 privateSaleMaxSupply_,
        uint256 partnerMaxSupply_
    ) external onlyTreasuryOrOwner {
        cryptoDotComMaxSupply = cryptoDotComMaxSupply_;
        privateSaleMaxSupply = privateSaleMaxSupply_;
        partnerMaxSupply = partnerMaxSupply_;

        emit UpdateMaxSupply(
            cryptoDotComMaxSupply_,
            privateSaleMaxSupply_,
            partnerMaxSupply_
        );
    }

    /*
     * @notice: Set the new partnerMintContract address
     * @param: partnerMintContract_: The address of the new partner minting contract
     */
    function setPartnerMintContract(address partnerMintContract_)
        external
        onlyTreasuryOrOwner
    {
        partnerMintContract = partnerMintContract_;
        emit UpdatePartnerMintContract(partnerMintContract_);
    }

     /*
     * @notice: Set the max mint per transaction for partner
     * @param: partnerMaxMintPerTx: The new max mint per transaction
     * @param: partnerMaxMintPerWallet: The new max mint per wallet
     */
    function setPartnerSaleMaxMint(uint256 partnerMaxMintPerTx_, uint256 partnerMaxMintPerWallet_)
        external
        onlyTreasuryOrOwner
    {
        partnerMaxMintPerTx = partnerMaxMintPerTx_;
        partnerMaxMintPerWallet = partnerMaxMintPerWallet_;
        emit UpdatePartnerMaxMint(partnerMaxMintPerTx_, partnerMaxMintPerWallet_);
    }

    /*
     * @notice: If `enableBurn` = true burning will be enabled for people to burn else it will disabled
     * @param: enableBurn_: Enable or disable
     */
    function setEnableBurn(bool enableBurn_)
        external
        onlyTreasuryOrOwner
    {
        enableBurn = enableBurn_;
        emit UpdateBurn(enableBurn_);
    }

    /* ======== INTERNAL ======== */

    /*
     * @notice: Validations of the mint process
     */
    function _validateMint(
        address receiver_,
        uint256 quantity_,
        uint256 saleSupply_,
        uint256 saleMaxSupply_,
        uint256 saleMaxMintPerTx_,
        uint256 saleMaxMintPerWallet_,
        bool saleIsActive_
    ) private {
        require(
            saleIsActive_,
            "KaijuLegends: Sale has not begun yet"
        );
        require(
            (totalSupply() + quantity_) <= COLLECTION_SUPPLY,
            "KaijuLegends: Reached max supply"
        );
        require(
            (saleSupply_ + quantity_) <= saleMaxSupply_,
            "KaijuLegends: Reached max supply"
        );
        require(
            quantity_ > 0 && quantity_ <= saleMaxMintPerTx_,
            "KaijuLegends: Reached max mint per tx"
        );
        require(
            (_numberMinted(receiver_) + quantity_) <= saleMaxMintPerWallet_,
            "KaijuLegends: Reached max mint per wallet"
        );
        _refundIfOver(privateSalePrice * quantity_);
    }

    /*
     * @notice: Recovering the hash and checking if the signer is equal to the `whitelistSigner`
     */
    function _validatePrivateSaleSignature(bytes memory signature_)
        private
        view
    {
        // Verify EIP-712 signature
        bytes32 digest = keccak256(
            abi.encodePacked(
                "\x19\x01",
                DOMAIN_SEPARATOR,
                keccak256(abi.encode(PRESALE_TYPEHASH, _msgSender()))
            )
        );
        address recoveredAddress = digest.recover(signature_);
        require(
            recoveredAddress != address(0) &&
                recoveredAddress == address(whitelistSigner),
            "KaijuLegends: Invalid signature"
        );
    }

    /*
     * @notice: If a user sends more ETH than the actuall mint price than the exceeded amount will be send back
     * @param: price_: The total price for the mint
     */
    function _refundIfOver(uint256 price_) private {
        require(msg.value >= price_, "Need to send more ETH.");
        if (msg.value > price_) {
            payable(_msgSender()).transfer(msg.value - price_);
        }
    }

    /* ======== EXTERNAL ======== */

    /*
     * @notice: The private sale mint
     * @param: quantity_: The mint amount
     * @param: signature_: The signature hash that will be used to verify the user has been whitelisted
     */
    function privateSaleMint(uint256 quantity_, bytes memory signature_)
        external
        payable
        whenNotPaused
    {
        _validateMint(_msgSender(), quantity_, privateSaleSupply, privateSaleMaxSupply, maxMintPerTx, maxMintPerWallet, privateSaleActive);
        _validatePrivateSaleSignature(signature_);

        _safeMint(_msgSender(), quantity_);

        privateSaleSupply += quantity_;
    }

    /*
     * The partner partner sale
     * @param receiver_: The address that will receive the token
     * @param quantity_: The mint amount
     */
    function partnerSale(address receiver_, uint256 quantity_)
        external
        payable
        onlyPartner
    {
        require(
            partnerMintContract != address(0),
            "KaijuLegends: partnerMintContract is the zero address"
        );

        _validateMint(receiver_, quantity_, partnerSupply, partnerMaxSupply, partnerMaxMintPerTx, partnerMaxMintPerWallet, partnerSaleActive);
        _safeMint(receiver_, quantity_);

        partnerSupply += quantity_;
    }

    /*
     * @notice: This batch mint is meant for the CRYPTO.COM sale / Giveaways / Collaborations. Only the `treasury / owner` can mint them to a wallet
     * @param: to_: The address that will receive the token ids
     * @param: quantity_: The mint amount
     */
    function batchMint(
        address to_,
        uint256 quantity_,
        BatchMintType type_
    ) external onlyTreasuryOrOwner {
        require(quantity_ > 0, "KaijuLegends: Quantity must be higher than 0");
        require(
            (totalSupply() + quantity_) <= COLLECTION_SUPPLY,
            "KaijuLegends: Reached max supply"
        );

        _safeMint(to_, quantity_);

        if (type_ == BatchMintType.CRYPTODOTCOM) {
            require(
                (cryptoDotComSupply + quantity_) <= cryptoDotComMaxSupply,
                "KaijuLegends: Reached the max supply for cryptoDotCom"
            );
            // 0
            cryptoDotComSupply += quantity_;
            emit UpdateCryptoDotComSupply(cryptoDotComSupply);
        } else if (type_ == BatchMintType.GIVEAWAYS) {
            // 1
            giveawaySupply += quantity_;
            emit UpdateGiveawaySupply(giveawaySupply);
        } else if (type_ == BatchMintType.TEAM_TOKENS) {
            // 2
            teamTokensSupply += quantity_;
            emit UpdateTeamTokensSupply(teamTokensSupply);
        } else if (type_ == BatchMintType.FREE_MINTS) {
            // 3
            freeMintsSupply += quantity_;
            emit UpdateFreeMintsSupply(freeMintsSupply);
        }
    }

    /*
     * @notice: Withdraw the ETH from the contract to the treasury address
     */
    function withdrawEth() external onlyTreasuryOrOwner nonReentrant {
        payable(address(treasury)).transfer(address(this).balance);
    }

    /*
     * @notice: Burn a token id to reduce the token supply
     */
    function burn(uint256 tokenId) external {
        require(enableBurn, 'KaijuLegends: Not possible to burn');
        _burn(tokenId);
    }

    /* ======== OVERRIDES ======== */

    /*
     * @notice: returns the baseURI for the token metadata
     */
    function _baseURI() internal view virtual override returns (string memory) {
        return baseURI;
    }

    /*
     * @notice: returns a URI for the tokenId
     * @param: tokenId_: the minted token id
     */
    function tokenURI(uint256 tokenId_)
        public
        view
        override
        returns (string memory)
    {
        require(_exists(tokenId_), "URI query for nonexistent token");

        if (bytes(baseURI).length <= 0) {
            return placeholderURI;
        }

        string memory uri = _baseURI();
        return string(abi.encodePacked(uri, Strings.toString(tokenId_)));
    }

    /*
     * @notice: returns the number of tokens the address has minted
     * @param: owner: address that owns token ids
     */
    function numberMinted(address owner) external view returns (uint256) {
        return _numberMinted(owner);
    }
}

File 2 of 15 : Ownable.sol
// SPDX-License-Identifier: MIT

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() {
        _setOwner(_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 {
        _setOwner(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");
        _setOwner(newOwner);
    }

    function _setOwner(address newOwner) private {
        address oldOwner = _owner;
        _owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }
}

File 3 of 15 : ReentrancyGuard.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/**
 * @dev Contract module that helps prevent reentrant calls to a function.
 *
 * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier
 * available, which can be applied to functions to make sure there are no nested
 * (reentrant) calls to them.
 *
 * Note that because there is a single `nonReentrant` guard, functions marked as
 * `nonReentrant` may not call one another. This can be worked around by making
 * those functions `private`, and then adding `external` `nonReentrant` entry
 * points to them.
 *
 * TIP: If you would like to learn more about reentrancy and alternative ways
 * to protect against it, check out our blog post
 * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul].
 */
abstract contract ReentrancyGuard {
    // Booleans are more expensive than uint256 or any type that takes up a full
    // word because each write operation emits an extra SLOAD to first read the
    // slot's contents, replace the bits taken up by the boolean, and then write
    // back. This is the compiler's defense against contract upgrades and
    // pointer aliasing, and it cannot be disabled.

    // The values being non-zero value makes deployment a bit more expensive,
    // but in exchange the refund on every call to nonReentrant will be lower in
    // amount. Since refunds are capped to a percentage of the total
    // transaction's gas, it is best to keep them low in cases like this one, to
    // increase the likelihood of the full refund coming into effect.
    uint256 private constant _NOT_ENTERED = 1;
    uint256 private constant _ENTERED = 2;

    uint256 private _status;

    constructor() {
        _status = _NOT_ENTERED;
    }

    /**
     * @dev Prevents a contract from calling itself, directly or indirectly.
     * Calling a `nonReentrant` function from another `nonReentrant`
     * function is not supported. It is possible to prevent this from happening
     * by making the `nonReentrant` function external, and make it call a
     * `private` function that does the actual work.
     */
    modifier nonReentrant() {
        // On the first call to nonReentrant, _notEntered will be true
        require(_status != _ENTERED, "ReentrancyGuard: reentrant call");

        // Any calls to nonReentrant after this point will fail
        _status = _ENTERED;

        _;

        // By storing the original value once again, a refund is triggered (see
        // https://eips.ethereum.org/EIPS/eip-2200)
        _status = _NOT_ENTERED;
    }
}

File 4 of 15 : Pausable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

/**
 * @dev Contract module which allows children to implement an emergency stop
 * mechanism that can be triggered by an authorized account.
 *
 * This module is used through inheritance. It will make available the
 * modifiers `whenNotPaused` and `whenPaused`, which can be applied to
 * the functions of your contract. Note that they will not be pausable by
 * simply including this module, only once the modifiers are put in place.
 */
abstract contract Pausable is Context {
    /**
     * @dev Emitted when the pause is triggered by `account`.
     */
    event Paused(address account);

    /**
     * @dev Emitted when the pause is lifted by `account`.
     */
    event Unpaused(address account);

    bool private _paused;

    /**
     * @dev Initializes the contract in unpaused state.
     */
    constructor() {
        _paused = false;
    }

    /**
     * @dev Returns true if the contract is paused, and false otherwise.
     */
    function paused() public view virtual returns (bool) {
        return _paused;
    }

    /**
     * @dev Modifier to make a function callable only when the contract is not paused.
     *
     * Requirements:
     *
     * - The contract must not be paused.
     */
    modifier whenNotPaused() {
        require(!paused(), "Pausable: paused");
        _;
    }

    /**
     * @dev Modifier to make a function callable only when the contract is paused.
     *
     * Requirements:
     *
     * - The contract must be paused.
     */
    modifier whenPaused() {
        require(paused(), "Pausable: not paused");
        _;
    }

    /**
     * @dev Triggers stopped state.
     *
     * Requirements:
     *
     * - The contract must not be paused.
     */
    function _pause() internal virtual whenNotPaused {
        _paused = true;
        emit Paused(_msgSender());
    }

    /**
     * @dev Returns to normal state.
     *
     * Requirements:
     *
     * - The contract must be paused.
     */
    function _unpause() internal virtual whenPaused {
        _paused = false;
        emit Unpaused(_msgSender());
    }
}

File 5 of 15 : ECDSA.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/**
 * @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 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 6 of 15 : Strings.sol
// SPDX-License-Identifier: MIT

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 15 : 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/token/ERC721/extensions/IERC721Enumerable.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 MintedQueryForZeroAddress();
error BurnedQueryForZeroAddress();
error AuxQueryForZeroAddress();
error MintToZeroAddress();
error MintZeroQuantity();
error OwnerIndexOutOfBounds();
error OwnerQueryForNonexistentToken();
error TokenIndexOutOfBounds();
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 See {IERC721Enumerable-totalSupply}.
     * @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) {
        if (owner == address(0)) revert MintedQueryForZeroAddress();
        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) {
        if (owner == address(0)) revert BurnedQueryForZeroAddress();
        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) {
        if (owner == address(0)) revert AuxQueryForZeroAddress();
        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 {
        if (owner == address(0)) revert AuxQueryForZeroAddress();
        _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 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);

        bool isApprovedOrOwner = (_msgSender() == prevOwnership.addr ||
            isApprovedForAll(prevOwnership.addr, _msgSender()) ||
            getApproved(tokenId) == _msgSender());

        if (!isApprovedOrOwner) revert TransferCallerNotOwnerNorApproved();
        if (prevOwnership.addr != from) revert TransferFromIncorrectOwner();
        if (to == address(0)) revert TransferToZeroAddress();

        _beforeTokenTransfers(from, to, tokenId, 1);

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

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

            _ownerships[tokenId].addr = to;
            _ownerships[tokenId].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;
            if (_ownerships[nextTokenId].addr == address(0)) {
                // This will suffice for checking _exists(nextTokenId),
                // as a burned slot cannot contain the zero address.
                if (nextTokenId < _currentIndex) {
                    _ownerships[nextTokenId].addr = prevOwnership.addr;
                    _ownerships[nextTokenId].startTimestamp = prevOwnership.startTimestamp;
                }
            }
        }

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

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

        _beforeTokenTransfers(prevOwnership.addr, address(0), tokenId, 1);

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

        // 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[prevOwnership.addr].balance -= 1;
            _addressData[prevOwnership.addr].numberBurned += 1;

            // Keep track of who burned the token, and the timestamp of burning.
            _ownerships[tokenId].addr = prevOwnership.addr;
            _ownerships[tokenId].startTimestamp = uint64(block.timestamp);
            _ownerships[tokenId].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;
            if (_ownerships[nextTokenId].addr == address(0)) {
                // This will suffice for checking _exists(nextTokenId),
                // as a burned slot cannot contain the zero address.
                if (nextTokenId < _currentIndex) {
                    _ownerships[nextTokenId].addr = prevOwnership.addr;
                    _ownerships[nextTokenId].startTimestamp = prevOwnership.startTimestamp;
                }
            }
        }

        emit Transfer(prevOwnership.addr, address(0), tokenId);
        _afterTokenTransfers(prevOwnership.addr, 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 {}
}

File 8 of 15 : Context.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

File 9 of 15 : IERC721.sol
// SPDX-License-Identifier: MIT

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 10 of 15 : IERC721Receiver.sol
// SPDX-License-Identifier: MIT

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 11 of 15 : IERC721Metadata.sol
// SPDX-License-Identifier: MIT

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 12 of 15 : IERC721Enumerable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../IERC721.sol";

/**
 * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension
 * @dev See https://eips.ethereum.org/EIPS/eip-721
 */
interface IERC721Enumerable is IERC721 {
    /**
     * @dev Returns the total amount of tokens stored by the contract.
     */
    function totalSupply() external view returns (uint256);

    /**
     * @dev Returns a token ID owned by `owner` at a given `index` of its token list.
     * Use along with {balanceOf} to enumerate all of ``owner``'s tokens.
     */
    function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256 tokenId);

    /**
     * @dev Returns a token ID at a given `index` of all the tokens stored by the contract.
     * Use along with {totalSupply} to enumerate all tokens.
     */
    function tokenByIndex(uint256 index) external view returns (uint256);
}

File 13 of 15 : Address.sol
// SPDX-License-Identifier: MIT

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 14 of 15 : ERC165.sol
// SPDX-License-Identifier: MIT

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 15 of 15 : IERC165.sol
// SPDX-License-Identifier: MIT

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":[],"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":"MintedQueryForZeroAddress","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":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","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":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"baseURI","type":"string"}],"name":"UpdateBaseURI","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bool","name":"active","type":"bool"}],"name":"UpdateBurn","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"supply","type":"uint256"}],"name":"UpdateCryptoDotComSupply","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"supply","type":"uint256"}],"name":"UpdateFreeMintsSupply","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"supply","type":"uint256"}],"name":"UpdateGiveawaySupply","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"maxMintPerTx","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"maxMintPerWallet","type":"uint256"}],"name":"UpdateMaxMint","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"cryptoDotComMaxSupply","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"privateSaleMaxSupply_","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"partnerMaxSupply_","type":"uint256"}],"name":"UpdateMaxSupply","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"partnerMaxMintPerTx","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"partnerMaxMintPerWallet","type":"uint256"}],"name":"UpdatePartnerMaxMint","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"partnerMintContract","type":"address"}],"name":"UpdatePartnerMintContract","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"placeholderURI","type":"string"}],"name":"UpdatePlaceholderURI","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"privateSalePrice","type":"uint256"}],"name":"UpdatePrivateSalePrice","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bool","name":"privateSaleActive","type":"bool"},{"indexed":false,"internalType":"bool","name":"partnerSaleActive","type":"bool"}],"name":"UpdateSales","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"supply","type":"uint256"}],"name":"UpdateTeamTokensSupply","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"treasury","type":"address"}],"name":"UpdateTreasury","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"whitelistSigner","type":"address"}],"name":"UpdateWhitelistSigner","type":"event"},{"inputs":[],"name":"COLLECTION_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DOMAIN_SEPARATOR","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PRESALE_TYPEHASH","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to_","type":"address"},{"internalType":"uint256","name":"quantity_","type":"uint256"},{"internalType":"enum KaijuLegends.BatchMintType","name":"type_","type":"uint8"}],"name":"batchMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"cryptoDotComMaxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"cryptoDotComSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"enableBurn","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"freeMintsSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"giveawaySupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":"maxMintPerTx","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxMintPerWallet","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"numberMinted","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":"partnerMaxMintPerTx","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"partnerMaxMintPerWallet","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"partnerMaxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"partnerMintContract","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"receiver_","type":"address"},{"internalType":"uint256","name":"quantity_","type":"uint256"}],"name":"partnerSale","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"partnerSaleActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"partnerSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"placeholderURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"privateSaleActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"privateSaleMaxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"quantity_","type":"uint256"},{"internalType":"bytes","name":"signature_","type":"bytes"}],"name":"privateSaleMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"privateSalePrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"privateSaleSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","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":[{"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":"bool","name":"enableBurn_","type":"bool"}],"name":"setEnableBurn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"cryptoDotComMaxSupply_","type":"uint256"},{"internalType":"uint256","name":"privateSaleMaxSupply_","type":"uint256"},{"internalType":"uint256","name":"partnerMaxSupply_","type":"uint256"}],"name":"setMaxSupply","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"partnerMintContract_","type":"address"}],"name":"setPartnerMintContract","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"partnerMaxMintPerTx_","type":"uint256"},{"internalType":"uint256","name":"partnerMaxMintPerWallet_","type":"uint256"}],"name":"setPartnerSaleMaxMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"paused_","type":"bool"}],"name":"setPaused","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"placeholderURI_","type":"string"}],"name":"setPlaceholderURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"maxMintPerTx_","type":"uint256"},{"internalType":"uint256","name":"maxMintPerWallet_","type":"uint256"}],"name":"setPrivateSaleMaxMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"privateSalePrice_","type":"uint256"}],"name":"setPrivateSalePrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"privateSaleActive_","type":"bool"},{"internalType":"bool","name":"partnerSaleActive_","type":"bool"}],"name":"setSales","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"treasury_","type":"address"}],"name":"setTreasury","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"whitelistSigner_","type":"address"}],"name":"setWhitelistSigner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"teamTokensSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId_","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"treasury","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"whitelistSigner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdrawEth","outputs":[],"stateMutability":"nonpayable","type":"function"}]

6080604052600a805463ffffff0019166101001790556005600b819055600c556003600d556006600e55670214e8348c4f0000600f5560c86010556107d06011556115c96012553480156200005357600080fd5b506040518060400160405280600d81526020016c4b61696a75204c6567656e647360981b815250604051806040016040528060058152602001644b41494a5560d81b815250620000b2620000ac620001f260201b60201c565b620001f6565b8151620000c7906003906020850190620002e4565b508051620000dd906004906020840190620002e4565b50600060019081556009555050600a805460ff19169055620000fe62000246565b60408051808201825260058152644b41494a5560d81b6020918201528151808301835260018152603160f81b9082015281517f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f818301527f78f0bdb1ea825b96f1d4d76060cfa7d018d7b706e5e25bd342718ae9a5eadceb818401527fc89efdaa54c0f20c7adf612882df0950f5a951637e0307cdcb4c672f298b8bc660608201524660808201523060a0808301919091528351808303909101815260c09091019092528151910120601e55600054601a80546001600160a01b0319166001600160a01b03909216919091179055620003c7565b3390565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b600a5460ff1615620002915760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b604482015260640160405180910390fd5b600a805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258620002c73390565b6040516001600160a01b03909116815260200160405180910390a1565b828054620002f2906200038a565b90600052602060002090601f01602090048101928262000316576000855562000361565b82601f106200033157805160ff191683800117855562000361565b8280016001018555821562000361579182015b828111156200036157825182559160200191906001019062000344565b506200036f92915062000373565b5090565b5b808211156200036f576000815560010162000374565b600181811c908216806200039f57607f821691505b60208210811415620003c157634e487b7160e01b600052602260045260246000fd5b50919050565b6135e980620003d76000396000f3fe6080604052600436106103a25760003560e01c80637313cba9116101e7578063b88d4fde1161010d578063de7fcb1d116100a0578063f0f442601161006f578063f0f4426014610a55578063f2fde38b14610a75578063f560d41514610a95578063feb1752314610aab57600080fd5b8063de7fcb1d146109c0578063e288e733146109d6578063e985e9c5146109ec578063ef81b4d414610a3557600080fd5b8063d4ae7522116100dc578063d4ae752214610936578063dae778ec1461096a578063dc33e68114610980578063de77573f146109a057600080fd5b8063b88d4fde146108b6578063c87b56dd146108d6578063ccda29fe146108f6578063d33814381461091657600080fd5b806390166ef511610185578063a0ef91df11610154578063a0ef91df1461084b578063a22cb46514610860578063a88147a714610880578063b228d925146108a057600080fd5b806390166ef5146107f757806395d89b411461080d578063971e52ed1461082257806398c960aa1461083557600080fd5b80637a07b5ef116101c15780637a07b5ef146107795780637bc36e04146107995780637ec8f4b0146107b95780638da5cb5b146107d957600080fd5b80637313cba91461072e57806373196368146107435780637884a8921461075957600080fd5b80633b37d1d6116102cc57806361d027b31161026a5780636f86b0c8116102395780636f86b0c8146106d0578063709bc8ec146106e357806370a08231146106f9578063715018a61461071957600080fd5b806361d027b3146106655780636352211e146106855780636398196e146106a55780636c0360eb146106bb57600080fd5b80634afe9b84116102a65780634afe9b84146105f757806355f804b3146106175780635c975abb146106375780635f66f5dd1461064f57600080fd5b80633b37d1d61461059657806342842e0e146105b757806342966c68146105d757600080fd5b806318160ddd116103445780632a237bb6116103135780632a237bb61461052157806333e24730146105405780633574a2dd146105605780633644e5151461058057600080fd5b806318160ddd146104b257806323b872dd146104cb57806327501cf9146104eb578063283821801461050157600080fd5b806306fdde031161038057806306fdde0314610416578063081812fc14610438578063095ea7b31461047057806316c38b3c1461049257600080fd5b806301ffc9a7146103a757806302693ef8146103dc578063036b3a8114610400575b600080fd5b3480156103b357600080fd5b506103c76103c2366004612f53565b610ac1565b60405190151581526020015b60405180910390f35b3480156103e857600080fd5b506103f260185481565b6040519081526020016103d3565b34801561040c57600080fd5b506103f260175481565b34801561042257600080fd5b5061042b610b13565b6040516103d39190612fcf565b34801561044457600080fd5b50610458610453366004612fe2565b610ba5565b6040516001600160a01b0390911681526020016103d3565b34801561047c57600080fd5b5061049061048b366004613017565b610be9565b005b34801561049e57600080fd5b506104906104ad366004613051565b610c77565b3480156104be57600080fd5b50600254600154036103f2565b3480156104d757600080fd5b506104906104e636600461306c565b610cd8565b3480156104f757600080fd5b506103f260115481565b34801561050d57600080fd5b50601b54610458906001600160a01b031681565b34801561052d57600080fd5b50600a546103c790610100900460ff1681565b34801561054c57600080fd5b5061049061055b3660046130a8565b610ce3565b34801561056c57600080fd5b5061049061057b366004613155565b610d6a565b34801561058c57600080fd5b506103f2601e5481565b3480156105a257600080fd5b50600a546103c7906301000000900460ff1681565b3480156105c357600080fd5b506104906105d236600461306c565b610df7565b3480156105e357600080fd5b506104906105f2366004612fe2565b610e12565b34801561060357600080fd5b506104906106123660046130a8565b610e7f565b34801561062357600080fd5b50610490610632366004613155565b610efe565b34801561064357600080fd5b50600a5460ff166103c7565b34801561065b57600080fd5b506103f260125481565b34801561067157600080fd5b50601954610458906001600160a01b031681565b34801561069157600080fd5b506104586106a0366004612fe2565b610f80565b3480156106b157600080fd5b506103f260105481565b3480156106c757600080fd5b5061042b610f92565b6104906106de3660046131bd565b611020565b3480156106ef57600080fd5b506103f260165481565b34801561070557600080fd5b506103f2610714366004613203565b6110ba565b34801561072557600080fd5b50610490611108565b34801561073a57600080fd5b5061042b61116e565b34801561074f57600080fd5b506103f2611e6181565b34801561076557600080fd5b50610490610774366004613203565b61117b565b34801561078557600080fd5b5061049061079436600461321e565b611208565b3480156107a557600080fd5b506104906107b4366004612fe2565b6112ac565b3480156107c557600080fd5b50600a546103c79062010000900460ff1681565b3480156107e557600080fd5b506000546001600160a01b0316610458565b34801561080357600080fd5b506103f260135481565b34801561081957600080fd5b5061042b611320565b610490610830366004613017565b61132f565b34801561084157600080fd5b506103f2600b5481565b34801561085757600080fd5b50610490611439565b34801561086c57600080fd5b5061049061087b366004613251565b611511565b34801561088c57600080fd5b5061049061089b36600461326d565b6115a7565b3480156108ac57600080fd5b506103f2600e5481565b3480156108c257600080fd5b506104906108d1366004613299565b61163c565b3480156108e257600080fd5b5061042b6108f1366004612fe2565b61168d565b34801561090257600080fd5b50610490610911366004613300565b6117ca565b34801561092257600080fd5b50610490610931366004613203565b611abe565b34801561094257600080fd5b506103f27f4dfdc40c587c7b6d3c5c8f9c04c90b899ebfe162f19568448c564b1f42701e9381565b34801561097657600080fd5b506103f2600c5481565b34801561098c57600080fd5b506103f261099b366004613203565b611b4b565b3480156109ac57600080fd5b506104906109bb366004613051565b611b56565b3480156109cc57600080fd5b506103f2600d5481565b3480156109e257600080fd5b506103f260145481565b3480156109f857600080fd5b506103c7610a07366004613344565b6001600160a01b03918216600090815260086020908152604080832093909416825291909152205460ff1690565b348015610a4157600080fd5b50601a54610458906001600160a01b031681565b348015610a6157600080fd5b50610490610a70366004613203565b611be2565b348015610a8157600080fd5b50610490610a90366004613203565b611c6f565b348015610aa157600080fd5b506103f2600f5481565b348015610ab757600080fd5b506103f260155481565b60006001600160e01b031982166380ac58cd60e01b1480610af257506001600160e01b03198216635b5e139f60e01b145b80610b0d57506301ffc9a760e01b6001600160e01b03198316145b92915050565b606060038054610b229061336e565b80601f0160208091040260200160405190810160405280929190818152602001828054610b4e9061336e565b8015610b9b5780601f10610b7057610100808354040283529160200191610b9b565b820191906000526020600020905b815481529060010190602001808311610b7e57829003601f168201915b5050505050905090565b6000610bb082611d37565b610bcd576040516333d1c03960e21b815260040160405180910390fd5b506000908152600760205260409020546001600160a01b031690565b6000610bf482610f80565b9050806001600160a01b0316836001600160a01b03161415610c295760405163250fdee360e21b815260040160405180910390fd5b336001600160a01b03821614801590610c495750610c478133610a07565b155b15610c67576040516367d9dca160e11b815260040160405180910390fd5b610c72838383611d63565b505050565b6019546001600160a01b0316331480610c9a57506000546001600160a01b031633145b610cbf5760405162461bcd60e51b8152600401610cb6906133a9565b60405180910390fd5b8015610cd057610ccd611dbf565b50565b610ccd611e57565b610c72838383611ed1565b6019546001600160a01b0316331480610d0657506000546001600160a01b031633145b610d225760405162461bcd60e51b8152600401610cb6906133a9565b600b829055600c81905560408051838152602081018390527fb99c5c62dd9a347d2f059c6220b6f6179acb362ae7cb19f80ecba43d9c559a9a91015b60405180910390a15050565b6019546001600160a01b0316331480610d8d57506000546001600160a01b031633145b610da95760405162461bcd60e51b8152600401610cb6906133a9565b8051610dbc90601d906020840190612ea4565b507f4c0b5770ef4b7d927d2dd9a1b970656f8e02cafa4bc1814c35ed3bc8de0cd75b81604051610dec9190612fcf565b60405180910390a150565b610c728383836040518060200160405280600081525061163c565b600a546301000000900460ff16610e765760405162461bcd60e51b815260206004820152602260248201527f4b61696a754c6567656e64733a204e6f7420706f737369626c6520746f206275604482015261393760f11b6064820152608401610cb6565b610ccd816120d3565b6019546001600160a01b0316331480610ea257506000546001600160a01b031633145b610ebe5760405162461bcd60e51b8152600401610cb6906133a9565b600d829055600e81905560408051838152602081018390527f787418b72de190931f1c8902a546a267cd7d9dc89a0d73065178385b508330769101610d5e565b6019546001600160a01b0316331480610f2157506000546001600160a01b031633145b610f3d5760405162461bcd60e51b8152600401610cb6906133a9565b8051610f5090601c906020840190612ea4565b507f157d450c8fb1377294d9db75af1de2753efc52d8e5578551d70d2c7d9cd74df981604051610dec9190612fcf565b6000610f8b8261223e565b5192915050565b601c8054610f9f9061336e565b80601f0160208091040260200160405190810160405280929190818152602001828054610fcb9061336e565b80156110185780601f10610fed57610100808354040283529160200191611018565b820191906000526020600020905b815481529060010190602001808311610ffb57829003601f168201915b505050505081565b600a5460ff16156110665760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b6044820152606401610cb6565b61108c3383601854601254600d54600e54600a60019054906101000a900460ff16612358565b61109581612511565b61109f3383612637565b81601860008282546110b19190613402565b90915550505050565b60006001600160a01b0382166110e3576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b03166000908152600660205260409020546001600160401b031690565b6000546001600160a01b031633146111625760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610cb6565b61116c6000612655565b565b601d8054610f9f9061336e565b6019546001600160a01b031633148061119e57506000546001600160a01b031633145b6111ba5760405162461bcd60e51b8152600401610cb6906133a9565b601b80546001600160a01b0319166001600160a01b0383169081179091556040519081527fd304a3e783730c07bfdbdc4bbfa4bb0678cebe5e4cf299905ba6f6e12df2f9cf90602001610dec565b6019546001600160a01b031633148061122b57506000546001600160a01b031633145b6112475760405162461bcd60e51b8152600401610cb6906133a9565b600a805462ffff00191661010084151590810262ff000019169190911762010000841515908102919091179092556040805191825260208201929092527f7201c094a3e785143bcf864a4516fc54f48b0d3faa91faa348f6a68ce4380a5d9101610d5e565b6019546001600160a01b03163314806112cf57506000546001600160a01b031633145b6112eb5760405162461bcd60e51b8152600401610cb6906133a9565b600f8190556040518181527f60184c1d3dafb0da9292ec4c904b84ce75399bc8476dfd9a308439a220691c1b90602001610dec565b606060048054610b229061336e565b601b546001600160a01b031633146113815760405162461bcd60e51b815260206004820152601560248201527421b0b63632b91034b9903737ba103830b93a3732b960591b6044820152606401610cb6565b601b546001600160a01b03166113f75760405162461bcd60e51b815260206004820152603560248201527f4b61696a754c6567656e64733a20706172746e65724d696e74436f6e747261636044820152747420697320746865207a65726f206164647265737360581b6064820152608401610cb6565b61141d8282601754601054600b54600c54600a60029054906101000a900460ff16612358565b6114278282612637565b80601760008282546110b19190613402565b6019546001600160a01b031633148061145c57506000546001600160a01b031633145b6114785760405162461bcd60e51b8152600401610cb6906133a9565b600260095414156114cb5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610cb6565b60026009556019546040516001600160a01b03909116904780156108fc02916000818181858888f19350505050158015611509573d6000803e3d6000fd5b506001600955565b6001600160a01b03821633141561153b5760405163b06307db60e01b815260040160405180910390fd5b3360008181526008602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6019546001600160a01b03163314806115ca57506000546001600160a01b031633145b6115e65760405162461bcd60e51b8152600401610cb6906133a9565b60118390556012829055601081905560408051848152602081018490529081018290527f2c71ee9ec21ba6131a64ea61d67ded8ad30c86616ba2732a8c3d58e40da0c1ad906060015b60405180910390a1505050565b611647848484611ed1565b6001600160a01b0383163b151580156116695750611667848484846126a5565b155b15611687576040516368d2bf6b60e11b815260040160405180910390fd5b50505050565b606061169882611d37565b6116e45760405162461bcd60e51b815260206004820152601f60248201527f55524920717565727920666f72206e6f6e6578697374656e7420746f6b656e006044820152606401610cb6565b6000601c80546116f39061336e565b90501161178c57601d80546117079061336e565b80601f01602080910402602001604051908101604052809291908181526020018280546117339061336e565b80156117805780601f1061175557610100808354040283529160200191611780565b820191906000526020600020905b81548152906001019060200180831161176357829003601f168201915b50505050509050919050565b600061179661279d565b9050806117a2846127ac565b6040516020016117b392919061341a565b604051602081830303815290604052915050919050565b6019546001600160a01b03163314806117ed57506000546001600160a01b031633145b6118095760405162461bcd60e51b8152600401610cb6906133a9565b6000821161186e5760405162461bcd60e51b815260206004820152602c60248201527f4b61696a754c6567656e64733a205175616e74697479206d757374206265206860448201526b06967686572207468616e20360a41b6064820152608401610cb6565b611e618261187f6002546001540390565b6118899190613402565b11156118a75760405162461bcd60e51b8152600401610cb690613449565b6118b18383612637565b60008160038111156118c5576118c561347e565b141561199257601154826013546118dc9190613402565b11156119485760405162461bcd60e51b815260206004820152603560248201527f4b61696a754c6567656e64733a205265616368656420746865206d617820737560448201527470706c7920666f722063727970746f446f74436f6d60581b6064820152608401610cb6565b816013600082825461195a9190613402565b90915550506013546040519081527f4c752623f1bb1259468a54ce585bd4c7c093ba6e00e1e6d26f64dbffbb4a05199060200161162f565b60018160038111156119a6576119a661347e565b14156119f65781601460008282546119be9190613402565b90915550506014546040519081527fc88dcfb5478c6a1b8dd7e8025cc10798ae7c9e91f7c736a2c3790e1296d326e59060200161162f565b6002816003811115611a0a57611a0a61347e565b1415611a5a578160156000828254611a229190613402565b90915550506015546040519081527f5d8b5c685cd3cc98456463592f00ae985f6b233276e08de47847e4fbe5eac7bc9060200161162f565b6003816003811115611a6e57611a6e61347e565b1415610c72578160166000828254611a869190613402565b90915550506016546040519081527fe9df42bc3716d1eb011f697d30ee3fadcc612c0d84c47aefaf2ee821dcb6b4009060200161162f565b6019546001600160a01b0316331480611ae157506000546001600160a01b031633145b611afd5760405162461bcd60e51b8152600401610cb6906133a9565b601a80546001600160a01b0319166001600160a01b0383169081179091556040519081527f4fae1dd8011a0c123d814d1e6d18dda34e3a36e8014868303adaf26e25ea0c8d90602001610dec565b6000610b0d826128a9565b6019546001600160a01b0316331480611b7957506000546001600160a01b031633145b611b955760405162461bcd60e51b8152600401610cb6906133a9565b600a805482151563010000000263ff000000199091161790556040517fd1b02133bf9bf78a6b9dc5c6ad59748091443365834e4625acbfd5906b0d709890610dec90831515815260200190565b6019546001600160a01b0316331480611c0557506000546001600160a01b031633145b611c215760405162461bcd60e51b8152600401610cb6906133a9565b601980546001600160a01b0319166001600160a01b0383169081179091556040519081527f1f54d231bb9d500b1923e4a1cb25e600f366a8368873d9af7c1c623814df19fc90602001610dec565b6000546001600160a01b03163314611cc95760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610cb6565b6001600160a01b038116611d2e5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610cb6565b610ccd81612655565b600060015482108015610b0d575050600090815260056020526040902054600160e01b900460ff161590565b60008281526007602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b600a5460ff1615611e055760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b6044820152606401610cb6565b600a805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258611e3a3390565b6040516001600160a01b03909116815260200160405180910390a1565b600a5460ff16611ea05760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b6044820152606401610cb6565b600a805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa33611e3a565b6000611edc8261223e565b80519091506000906001600160a01b0316336001600160a01b03161480611f0a57508151611f0a9033610a07565b80611f25575033611f1a84610ba5565b6001600160a01b0316145b905080611f4557604051632ce44b5f60e11b815260040160405180910390fd5b846001600160a01b031682600001516001600160a01b031614611f7a5760405162a1148160e81b815260040160405180910390fd5b6001600160a01b038416611fa157604051633a954ecd60e21b815260040160405180910390fd5b611fb16000848460000151611d63565b6001600160a01b038581166000908152600660209081526040808320805467ffffffffffffffff198082166001600160401b0392831660001901831617909255898616808652838620805493841693831660019081018416949094179055898652600590945282852080546001600160e01b031916909417600160a01b42909216919091021790925590860180835291205490911661209b5760015481101561209b57825160008281526005602090815260409091208054918601516001600160401b0316600160a01b026001600160e01b03199092166001600160a01b03909316929092171790555b5082846001600160a01b0316866001600160a01b031660008051602061359483398151915260405160405180910390a45b5050505050565b60006120de8261223e565b90506120f06000838360000151611d63565b80516001600160a01b039081166000908152600660209081526040808320805467ffffffffffffffff1981166001600160401b0391821660001901821617909155855185168452818420805467ffffffffffffffff60801b198116600160801b9182900484166001908101851690920217909155865188865260059094528285208054600160e01b9588166001600160e01b031990911617600160a01b42909416939093029290921760ff60e01b19169390931790559085018083529120549091166122075760015481101561220757815160008281526005602090815260409091208054918501516001600160401b0316600160a01b026001600160e01b03199092166001600160a01b03909316929092171790555b50805160405183916000916001600160a01b0390911690600080516020613594833981519152908390a45050600280546001019055565b60408051606081018252600080825260208201819052918101919091528160015481101561233f57600081815260056020908152604091829020825160608101845290546001600160a01b0381168252600160a01b81046001600160401b031692820192909252600160e01b90910460ff1615159181018290529061233d5780516001600160a01b0316156122d4579392505050565b5060001901600081815260056020908152604091829020825160608101845290546001600160a01b038116808352600160a01b82046001600160401b031693830193909352600160e01b900460ff1615159281019290925215612338579392505050565b6122d4565b505b604051636f96cda160e11b815260040160405180910390fd5b806123b15760405162461bcd60e51b8152602060048201526024808201527f4b61696a754c6567656e64733a2053616c6520686173206e6f7420626567756e604482015263081e595d60e21b6064820152608401610cb6565b611e61866123c26002546001540390565b6123cc9190613402565b11156123ea5760405162461bcd60e51b8152600401610cb690613449565b836123f58787613402565b11156124135760405162461bcd60e51b8152600401610cb690613449565b6000861180156124235750828611155b61247d5760405162461bcd60e51b815260206004820152602560248201527f4b61696a754c6567656e64733a2052656163686564206d6178206d696e7420706044820152640cae440e8f60db1b6064820152608401610cb6565b8186612488896128a9565b6124929190613402565b11156124f25760405162461bcd60e51b815260206004820152602960248201527f4b61696a754c6567656e64733a2052656163686564206d6178206d696e742070604482015268195c881dd85b1b195d60ba1b6064820152608401610cb6565b61250886600f546125039190613494565b6128fe565b50505050505050565b6000601e547f4dfdc40c587c7b6d3c5c8f9c04c90b899ebfe162f19568448c564b1f42701e9361253e3390565b6040516020016125619291909182526001600160a01b0316602082015260400190565b6040516020818303038152906040528051906020012060405160200161259e92919061190160f01b81526002810192909252602282015260420190565b60408051601f198184030181529190528051602090910120905060006125c48284612985565b90506001600160a01b038116158015906125eb5750601a546001600160a01b038281169116145b610c725760405162461bcd60e51b815260206004820152601f60248201527f4b61696a754c6567656e64733a20496e76616c6964207369676e6174757265006044820152606401610cb6565b6126518282604051806020016040528060008152506129a9565b5050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a02906126da9033908990889088906004016134b3565b602060405180830381600087803b1580156126f457600080fd5b505af1925050508015612724575060408051601f3d908101601f19168201909252612721918101906134f0565b60015b61277f573d808015612752576040519150601f19603f3d011682016040523d82523d6000602084013e612757565b606091505b508051612777576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490505b949350505050565b6060601c8054610b229061336e565b6060816127d05750506040805180820190915260018152600360fc1b602082015290565b8160005b81156127fa57806127e48161350d565b91506127f39050600a8361353e565b91506127d4565b6000816001600160401b03811115612814576128146130ca565b6040519080825280601f01601f19166020018201604052801561283e576020820181803683370190505b5090505b841561279557612853600183613552565b9150612860600a86613569565b61286b906030613402565b60f81b8183815181106128805761288061357d565b60200101906001600160f81b031916908160001a9053506128a2600a8661353e565b9450612842565b60006001600160a01b0382166128d2576040516335ebb31960e01b815260040160405180910390fd5b506001600160a01b0316600090815260066020526040902054600160401b90046001600160401b031690565b803410156129475760405162461bcd60e51b81526020600482015260166024820152752732b2b2103a379039b2b7321036b7b9329022aa241760511b6044820152606401610cb6565b80341115610ccd57336108fc61295d8334613552565b6040518115909202916000818181858888f19350505050158015612651573d6000803e3d6000fd5b600080600061299485856129b6565b915091506129a181612a26565b509392505050565b610c728383836001612be1565b6000808251604114156129ed5760208301516040840151606085015160001a6129e187828585612d88565b94509450505050612a1f565b825160401415612a175760208301516040840151612a0c868383612e75565b935093505050612a1f565b506000905060025b9250929050565b6000816004811115612a3a57612a3a61347e565b1415612a435750565b6001816004811115612a5757612a5761347e565b1415612aa55760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152606401610cb6565b6002816004811115612ab957612ab961347e565b1415612b075760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152606401610cb6565b6003816004811115612b1b57612b1b61347e565b1415612b745760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b6064820152608401610cb6565b6004816004811115612b8857612b8861347e565b1415610ccd5760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b6064820152608401610cb6565b6001546001600160a01b038516612c0a57604051622e076360e81b815260040160405180910390fd5b83612c285760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b038516600081815260066020908152604080832080546fffffffffffffffffffffffffffffffff1981166001600160401b038083168c018116918217600160401b67ffffffffffffffff1990941690921783900481168c01811690920217909155858452600590925290912080546001600160e01b031916909217600160a01b429092169190910217905580808501838015612cd457506001600160a01b0387163b15155b15612d4b575b60405182906001600160a01b03891690600090600080516020613594833981519152908290a4612d1360008884806001019550886126a5565b612d30576040516368d2bf6b60e11b815260040160405180910390fd5b80821415612cda578260015414612d4657600080fd5b612d7f565b5b6040516001830192906001600160a01b03891690600090600080516020613594833981519152908290a480821415612d4c575b506001556120cc565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0831115612dbf5750600090506003612e6c565b8460ff16601b14158015612dd757508460ff16601c14155b15612de85750600090506004612e6c565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015612e3c573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b038116612e6557600060019250925050612e6c565b9150600090505b94509492505050565b6000806001600160ff1b03831660ff84901c601b01612e9687828885612d88565b935093505050935093915050565b828054612eb09061336e565b90600052602060002090601f016020900481019282612ed25760008555612f18565b82601f10612eeb57805160ff1916838001178555612f18565b82800160010185558215612f18579182015b82811115612f18578251825591602001919060010190612efd565b50612f24929150612f28565b5090565b5b80821115612f245760008155600101612f29565b6001600160e01b031981168114610ccd57600080fd5b600060208284031215612f6557600080fd5b8135612f7081612f3d565b9392505050565b60005b83811015612f92578181015183820152602001612f7a565b838111156116875750506000910152565b60008151808452612fbb816020860160208601612f77565b601f01601f19169290920160200192915050565b602081526000612f706020830184612fa3565b600060208284031215612ff457600080fd5b5035919050565b80356001600160a01b038116811461301257600080fd5b919050565b6000806040838503121561302a57600080fd5b61303383612ffb565b946020939093013593505050565b8035801515811461301257600080fd5b60006020828403121561306357600080fd5b612f7082613041565b60008060006060848603121561308157600080fd5b61308a84612ffb565b925061309860208501612ffb565b9150604084013590509250925092565b600080604083850312156130bb57600080fd5b50508035926020909101359150565b634e487b7160e01b600052604160045260246000fd5b60006001600160401b03808411156130fa576130fa6130ca565b604051601f8501601f19908116603f01168101908282118183101715613122576131226130ca565b8160405280935085815286868601111561313b57600080fd5b858560208301376000602087830101525050509392505050565b60006020828403121561316757600080fd5b81356001600160401b0381111561317d57600080fd5b8201601f8101841361318e57600080fd5b612795848235602084016130e0565b600082601f8301126131ae57600080fd5b612f70838335602085016130e0565b600080604083850312156131d057600080fd5b8235915060208301356001600160401b038111156131ed57600080fd5b6131f98582860161319d565b9150509250929050565b60006020828403121561321557600080fd5b612f7082612ffb565b6000806040838503121561323157600080fd5b61323a83613041565b915061324860208401613041565b90509250929050565b6000806040838503121561326457600080fd5b61323a83612ffb565b60008060006060848603121561328257600080fd5b505081359360208301359350604090920135919050565b600080600080608085870312156132af57600080fd5b6132b885612ffb565b93506132c660208601612ffb565b92506040850135915060608501356001600160401b038111156132e857600080fd5b6132f48782880161319d565b91505092959194509250565b60008060006060848603121561331557600080fd5b61331e84612ffb565b92506020840135915060408401356004811061333957600080fd5b809150509250925092565b6000806040838503121561335757600080fd5b61336083612ffb565b915061324860208401612ffb565b600181811c9082168061338257607f821691505b602082108114156133a357634e487b7160e01b600052602260045260246000fd5b50919050565b60208082526023908201527f43616c6c6572206973206e6f7420746865206f776e6572206f7220747265617360408201526275727960e81b606082015260800190565b634e487b7160e01b600052601160045260246000fd5b60008219821115613415576134156133ec565b500190565b6000835161342c818460208801612f77565b835190830190613440818360208801612f77565b01949350505050565b6020808252818101527f4b61696a754c6567656e64733a2052656163686564206d617820737570706c79604082015260600190565b634e487b7160e01b600052602160045260246000fd5b60008160001904831182151516156134ae576134ae6133ec565b500290565b6001600160a01b03858116825284166020820152604081018390526080606082018190526000906134e690830184612fa3565b9695505050505050565b60006020828403121561350257600080fd5b8151612f7081612f3d565b6000600019821415613521576135216133ec565b5060010190565b634e487b7160e01b600052601260045260246000fd5b60008261354d5761354d613528565b500490565b600082821015613564576135646133ec565b500390565b60008261357857613578613528565b500690565b634e487b7160e01b600052603260045260246000fdfeddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3efa264697066735822122091111ffa5194b5879a384e3620963ef7e0b8b0db75a5a8fdec88501f7688b8b664736f6c63430008090033

Deployed Bytecode

0x6080604052600436106103a25760003560e01c80637313cba9116101e7578063b88d4fde1161010d578063de7fcb1d116100a0578063f0f442601161006f578063f0f4426014610a55578063f2fde38b14610a75578063f560d41514610a95578063feb1752314610aab57600080fd5b8063de7fcb1d146109c0578063e288e733146109d6578063e985e9c5146109ec578063ef81b4d414610a3557600080fd5b8063d4ae7522116100dc578063d4ae752214610936578063dae778ec1461096a578063dc33e68114610980578063de77573f146109a057600080fd5b8063b88d4fde146108b6578063c87b56dd146108d6578063ccda29fe146108f6578063d33814381461091657600080fd5b806390166ef511610185578063a0ef91df11610154578063a0ef91df1461084b578063a22cb46514610860578063a88147a714610880578063b228d925146108a057600080fd5b806390166ef5146107f757806395d89b411461080d578063971e52ed1461082257806398c960aa1461083557600080fd5b80637a07b5ef116101c15780637a07b5ef146107795780637bc36e04146107995780637ec8f4b0146107b95780638da5cb5b146107d957600080fd5b80637313cba91461072e57806373196368146107435780637884a8921461075957600080fd5b80633b37d1d6116102cc57806361d027b31161026a5780636f86b0c8116102395780636f86b0c8146106d0578063709bc8ec146106e357806370a08231146106f9578063715018a61461071957600080fd5b806361d027b3146106655780636352211e146106855780636398196e146106a55780636c0360eb146106bb57600080fd5b80634afe9b84116102a65780634afe9b84146105f757806355f804b3146106175780635c975abb146106375780635f66f5dd1461064f57600080fd5b80633b37d1d61461059657806342842e0e146105b757806342966c68146105d757600080fd5b806318160ddd116103445780632a237bb6116103135780632a237bb61461052157806333e24730146105405780633574a2dd146105605780633644e5151461058057600080fd5b806318160ddd146104b257806323b872dd146104cb57806327501cf9146104eb578063283821801461050157600080fd5b806306fdde031161038057806306fdde0314610416578063081812fc14610438578063095ea7b31461047057806316c38b3c1461049257600080fd5b806301ffc9a7146103a757806302693ef8146103dc578063036b3a8114610400575b600080fd5b3480156103b357600080fd5b506103c76103c2366004612f53565b610ac1565b60405190151581526020015b60405180910390f35b3480156103e857600080fd5b506103f260185481565b6040519081526020016103d3565b34801561040c57600080fd5b506103f260175481565b34801561042257600080fd5b5061042b610b13565b6040516103d39190612fcf565b34801561044457600080fd5b50610458610453366004612fe2565b610ba5565b6040516001600160a01b0390911681526020016103d3565b34801561047c57600080fd5b5061049061048b366004613017565b610be9565b005b34801561049e57600080fd5b506104906104ad366004613051565b610c77565b3480156104be57600080fd5b50600254600154036103f2565b3480156104d757600080fd5b506104906104e636600461306c565b610cd8565b3480156104f757600080fd5b506103f260115481565b34801561050d57600080fd5b50601b54610458906001600160a01b031681565b34801561052d57600080fd5b50600a546103c790610100900460ff1681565b34801561054c57600080fd5b5061049061055b3660046130a8565b610ce3565b34801561056c57600080fd5b5061049061057b366004613155565b610d6a565b34801561058c57600080fd5b506103f2601e5481565b3480156105a257600080fd5b50600a546103c7906301000000900460ff1681565b3480156105c357600080fd5b506104906105d236600461306c565b610df7565b3480156105e357600080fd5b506104906105f2366004612fe2565b610e12565b34801561060357600080fd5b506104906106123660046130a8565b610e7f565b34801561062357600080fd5b50610490610632366004613155565b610efe565b34801561064357600080fd5b50600a5460ff166103c7565b34801561065b57600080fd5b506103f260125481565b34801561067157600080fd5b50601954610458906001600160a01b031681565b34801561069157600080fd5b506104586106a0366004612fe2565b610f80565b3480156106b157600080fd5b506103f260105481565b3480156106c757600080fd5b5061042b610f92565b6104906106de3660046131bd565b611020565b3480156106ef57600080fd5b506103f260165481565b34801561070557600080fd5b506103f2610714366004613203565b6110ba565b34801561072557600080fd5b50610490611108565b34801561073a57600080fd5b5061042b61116e565b34801561074f57600080fd5b506103f2611e6181565b34801561076557600080fd5b50610490610774366004613203565b61117b565b34801561078557600080fd5b5061049061079436600461321e565b611208565b3480156107a557600080fd5b506104906107b4366004612fe2565b6112ac565b3480156107c557600080fd5b50600a546103c79062010000900460ff1681565b3480156107e557600080fd5b506000546001600160a01b0316610458565b34801561080357600080fd5b506103f260135481565b34801561081957600080fd5b5061042b611320565b610490610830366004613017565b61132f565b34801561084157600080fd5b506103f2600b5481565b34801561085757600080fd5b50610490611439565b34801561086c57600080fd5b5061049061087b366004613251565b611511565b34801561088c57600080fd5b5061049061089b36600461326d565b6115a7565b3480156108ac57600080fd5b506103f2600e5481565b3480156108c257600080fd5b506104906108d1366004613299565b61163c565b3480156108e257600080fd5b5061042b6108f1366004612fe2565b61168d565b34801561090257600080fd5b50610490610911366004613300565b6117ca565b34801561092257600080fd5b50610490610931366004613203565b611abe565b34801561094257600080fd5b506103f27f4dfdc40c587c7b6d3c5c8f9c04c90b899ebfe162f19568448c564b1f42701e9381565b34801561097657600080fd5b506103f2600c5481565b34801561098c57600080fd5b506103f261099b366004613203565b611b4b565b3480156109ac57600080fd5b506104906109bb366004613051565b611b56565b3480156109cc57600080fd5b506103f2600d5481565b3480156109e257600080fd5b506103f260145481565b3480156109f857600080fd5b506103c7610a07366004613344565b6001600160a01b03918216600090815260086020908152604080832093909416825291909152205460ff1690565b348015610a4157600080fd5b50601a54610458906001600160a01b031681565b348015610a6157600080fd5b50610490610a70366004613203565b611be2565b348015610a8157600080fd5b50610490610a90366004613203565b611c6f565b348015610aa157600080fd5b506103f2600f5481565b348015610ab757600080fd5b506103f260155481565b60006001600160e01b031982166380ac58cd60e01b1480610af257506001600160e01b03198216635b5e139f60e01b145b80610b0d57506301ffc9a760e01b6001600160e01b03198316145b92915050565b606060038054610b229061336e565b80601f0160208091040260200160405190810160405280929190818152602001828054610b4e9061336e565b8015610b9b5780601f10610b7057610100808354040283529160200191610b9b565b820191906000526020600020905b815481529060010190602001808311610b7e57829003601f168201915b5050505050905090565b6000610bb082611d37565b610bcd576040516333d1c03960e21b815260040160405180910390fd5b506000908152600760205260409020546001600160a01b031690565b6000610bf482610f80565b9050806001600160a01b0316836001600160a01b03161415610c295760405163250fdee360e21b815260040160405180910390fd5b336001600160a01b03821614801590610c495750610c478133610a07565b155b15610c67576040516367d9dca160e11b815260040160405180910390fd5b610c72838383611d63565b505050565b6019546001600160a01b0316331480610c9a57506000546001600160a01b031633145b610cbf5760405162461bcd60e51b8152600401610cb6906133a9565b60405180910390fd5b8015610cd057610ccd611dbf565b50565b610ccd611e57565b610c72838383611ed1565b6019546001600160a01b0316331480610d0657506000546001600160a01b031633145b610d225760405162461bcd60e51b8152600401610cb6906133a9565b600b829055600c81905560408051838152602081018390527fb99c5c62dd9a347d2f059c6220b6f6179acb362ae7cb19f80ecba43d9c559a9a91015b60405180910390a15050565b6019546001600160a01b0316331480610d8d57506000546001600160a01b031633145b610da95760405162461bcd60e51b8152600401610cb6906133a9565b8051610dbc90601d906020840190612ea4565b507f4c0b5770ef4b7d927d2dd9a1b970656f8e02cafa4bc1814c35ed3bc8de0cd75b81604051610dec9190612fcf565b60405180910390a150565b610c728383836040518060200160405280600081525061163c565b600a546301000000900460ff16610e765760405162461bcd60e51b815260206004820152602260248201527f4b61696a754c6567656e64733a204e6f7420706f737369626c6520746f206275604482015261393760f11b6064820152608401610cb6565b610ccd816120d3565b6019546001600160a01b0316331480610ea257506000546001600160a01b031633145b610ebe5760405162461bcd60e51b8152600401610cb6906133a9565b600d829055600e81905560408051838152602081018390527f787418b72de190931f1c8902a546a267cd7d9dc89a0d73065178385b508330769101610d5e565b6019546001600160a01b0316331480610f2157506000546001600160a01b031633145b610f3d5760405162461bcd60e51b8152600401610cb6906133a9565b8051610f5090601c906020840190612ea4565b507f157d450c8fb1377294d9db75af1de2753efc52d8e5578551d70d2c7d9cd74df981604051610dec9190612fcf565b6000610f8b8261223e565b5192915050565b601c8054610f9f9061336e565b80601f0160208091040260200160405190810160405280929190818152602001828054610fcb9061336e565b80156110185780601f10610fed57610100808354040283529160200191611018565b820191906000526020600020905b815481529060010190602001808311610ffb57829003601f168201915b505050505081565b600a5460ff16156110665760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b6044820152606401610cb6565b61108c3383601854601254600d54600e54600a60019054906101000a900460ff16612358565b61109581612511565b61109f3383612637565b81601860008282546110b19190613402565b90915550505050565b60006001600160a01b0382166110e3576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b03166000908152600660205260409020546001600160401b031690565b6000546001600160a01b031633146111625760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610cb6565b61116c6000612655565b565b601d8054610f9f9061336e565b6019546001600160a01b031633148061119e57506000546001600160a01b031633145b6111ba5760405162461bcd60e51b8152600401610cb6906133a9565b601b80546001600160a01b0319166001600160a01b0383169081179091556040519081527fd304a3e783730c07bfdbdc4bbfa4bb0678cebe5e4cf299905ba6f6e12df2f9cf90602001610dec565b6019546001600160a01b031633148061122b57506000546001600160a01b031633145b6112475760405162461bcd60e51b8152600401610cb6906133a9565b600a805462ffff00191661010084151590810262ff000019169190911762010000841515908102919091179092556040805191825260208201929092527f7201c094a3e785143bcf864a4516fc54f48b0d3faa91faa348f6a68ce4380a5d9101610d5e565b6019546001600160a01b03163314806112cf57506000546001600160a01b031633145b6112eb5760405162461bcd60e51b8152600401610cb6906133a9565b600f8190556040518181527f60184c1d3dafb0da9292ec4c904b84ce75399bc8476dfd9a308439a220691c1b90602001610dec565b606060048054610b229061336e565b601b546001600160a01b031633146113815760405162461bcd60e51b815260206004820152601560248201527421b0b63632b91034b9903737ba103830b93a3732b960591b6044820152606401610cb6565b601b546001600160a01b03166113f75760405162461bcd60e51b815260206004820152603560248201527f4b61696a754c6567656e64733a20706172746e65724d696e74436f6e747261636044820152747420697320746865207a65726f206164647265737360581b6064820152608401610cb6565b61141d8282601754601054600b54600c54600a60029054906101000a900460ff16612358565b6114278282612637565b80601760008282546110b19190613402565b6019546001600160a01b031633148061145c57506000546001600160a01b031633145b6114785760405162461bcd60e51b8152600401610cb6906133a9565b600260095414156114cb5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610cb6565b60026009556019546040516001600160a01b03909116904780156108fc02916000818181858888f19350505050158015611509573d6000803e3d6000fd5b506001600955565b6001600160a01b03821633141561153b5760405163b06307db60e01b815260040160405180910390fd5b3360008181526008602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6019546001600160a01b03163314806115ca57506000546001600160a01b031633145b6115e65760405162461bcd60e51b8152600401610cb6906133a9565b60118390556012829055601081905560408051848152602081018490529081018290527f2c71ee9ec21ba6131a64ea61d67ded8ad30c86616ba2732a8c3d58e40da0c1ad906060015b60405180910390a1505050565b611647848484611ed1565b6001600160a01b0383163b151580156116695750611667848484846126a5565b155b15611687576040516368d2bf6b60e11b815260040160405180910390fd5b50505050565b606061169882611d37565b6116e45760405162461bcd60e51b815260206004820152601f60248201527f55524920717565727920666f72206e6f6e6578697374656e7420746f6b656e006044820152606401610cb6565b6000601c80546116f39061336e565b90501161178c57601d80546117079061336e565b80601f01602080910402602001604051908101604052809291908181526020018280546117339061336e565b80156117805780601f1061175557610100808354040283529160200191611780565b820191906000526020600020905b81548152906001019060200180831161176357829003601f168201915b50505050509050919050565b600061179661279d565b9050806117a2846127ac565b6040516020016117b392919061341a565b604051602081830303815290604052915050919050565b6019546001600160a01b03163314806117ed57506000546001600160a01b031633145b6118095760405162461bcd60e51b8152600401610cb6906133a9565b6000821161186e5760405162461bcd60e51b815260206004820152602c60248201527f4b61696a754c6567656e64733a205175616e74697479206d757374206265206860448201526b06967686572207468616e20360a41b6064820152608401610cb6565b611e618261187f6002546001540390565b6118899190613402565b11156118a75760405162461bcd60e51b8152600401610cb690613449565b6118b18383612637565b60008160038111156118c5576118c561347e565b141561199257601154826013546118dc9190613402565b11156119485760405162461bcd60e51b815260206004820152603560248201527f4b61696a754c6567656e64733a205265616368656420746865206d617820737560448201527470706c7920666f722063727970746f446f74436f6d60581b6064820152608401610cb6565b816013600082825461195a9190613402565b90915550506013546040519081527f4c752623f1bb1259468a54ce585bd4c7c093ba6e00e1e6d26f64dbffbb4a05199060200161162f565b60018160038111156119a6576119a661347e565b14156119f65781601460008282546119be9190613402565b90915550506014546040519081527fc88dcfb5478c6a1b8dd7e8025cc10798ae7c9e91f7c736a2c3790e1296d326e59060200161162f565b6002816003811115611a0a57611a0a61347e565b1415611a5a578160156000828254611a229190613402565b90915550506015546040519081527f5d8b5c685cd3cc98456463592f00ae985f6b233276e08de47847e4fbe5eac7bc9060200161162f565b6003816003811115611a6e57611a6e61347e565b1415610c72578160166000828254611a869190613402565b90915550506016546040519081527fe9df42bc3716d1eb011f697d30ee3fadcc612c0d84c47aefaf2ee821dcb6b4009060200161162f565b6019546001600160a01b0316331480611ae157506000546001600160a01b031633145b611afd5760405162461bcd60e51b8152600401610cb6906133a9565b601a80546001600160a01b0319166001600160a01b0383169081179091556040519081527f4fae1dd8011a0c123d814d1e6d18dda34e3a36e8014868303adaf26e25ea0c8d90602001610dec565b6000610b0d826128a9565b6019546001600160a01b0316331480611b7957506000546001600160a01b031633145b611b955760405162461bcd60e51b8152600401610cb6906133a9565b600a805482151563010000000263ff000000199091161790556040517fd1b02133bf9bf78a6b9dc5c6ad59748091443365834e4625acbfd5906b0d709890610dec90831515815260200190565b6019546001600160a01b0316331480611c0557506000546001600160a01b031633145b611c215760405162461bcd60e51b8152600401610cb6906133a9565b601980546001600160a01b0319166001600160a01b0383169081179091556040519081527f1f54d231bb9d500b1923e4a1cb25e600f366a8368873d9af7c1c623814df19fc90602001610dec565b6000546001600160a01b03163314611cc95760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610cb6565b6001600160a01b038116611d2e5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610cb6565b610ccd81612655565b600060015482108015610b0d575050600090815260056020526040902054600160e01b900460ff161590565b60008281526007602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b600a5460ff1615611e055760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b6044820152606401610cb6565b600a805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258611e3a3390565b6040516001600160a01b03909116815260200160405180910390a1565b600a5460ff16611ea05760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b6044820152606401610cb6565b600a805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa33611e3a565b6000611edc8261223e565b80519091506000906001600160a01b0316336001600160a01b03161480611f0a57508151611f0a9033610a07565b80611f25575033611f1a84610ba5565b6001600160a01b0316145b905080611f4557604051632ce44b5f60e11b815260040160405180910390fd5b846001600160a01b031682600001516001600160a01b031614611f7a5760405162a1148160e81b815260040160405180910390fd5b6001600160a01b038416611fa157604051633a954ecd60e21b815260040160405180910390fd5b611fb16000848460000151611d63565b6001600160a01b038581166000908152600660209081526040808320805467ffffffffffffffff198082166001600160401b0392831660001901831617909255898616808652838620805493841693831660019081018416949094179055898652600590945282852080546001600160e01b031916909417600160a01b42909216919091021790925590860180835291205490911661209b5760015481101561209b57825160008281526005602090815260409091208054918601516001600160401b0316600160a01b026001600160e01b03199092166001600160a01b03909316929092171790555b5082846001600160a01b0316866001600160a01b031660008051602061359483398151915260405160405180910390a45b5050505050565b60006120de8261223e565b90506120f06000838360000151611d63565b80516001600160a01b039081166000908152600660209081526040808320805467ffffffffffffffff1981166001600160401b0391821660001901821617909155855185168452818420805467ffffffffffffffff60801b198116600160801b9182900484166001908101851690920217909155865188865260059094528285208054600160e01b9588166001600160e01b031990911617600160a01b42909416939093029290921760ff60e01b19169390931790559085018083529120549091166122075760015481101561220757815160008281526005602090815260409091208054918501516001600160401b0316600160a01b026001600160e01b03199092166001600160a01b03909316929092171790555b50805160405183916000916001600160a01b0390911690600080516020613594833981519152908390a45050600280546001019055565b60408051606081018252600080825260208201819052918101919091528160015481101561233f57600081815260056020908152604091829020825160608101845290546001600160a01b0381168252600160a01b81046001600160401b031692820192909252600160e01b90910460ff1615159181018290529061233d5780516001600160a01b0316156122d4579392505050565b5060001901600081815260056020908152604091829020825160608101845290546001600160a01b038116808352600160a01b82046001600160401b031693830193909352600160e01b900460ff1615159281019290925215612338579392505050565b6122d4565b505b604051636f96cda160e11b815260040160405180910390fd5b806123b15760405162461bcd60e51b8152602060048201526024808201527f4b61696a754c6567656e64733a2053616c6520686173206e6f7420626567756e604482015263081e595d60e21b6064820152608401610cb6565b611e61866123c26002546001540390565b6123cc9190613402565b11156123ea5760405162461bcd60e51b8152600401610cb690613449565b836123f58787613402565b11156124135760405162461bcd60e51b8152600401610cb690613449565b6000861180156124235750828611155b61247d5760405162461bcd60e51b815260206004820152602560248201527f4b61696a754c6567656e64733a2052656163686564206d6178206d696e7420706044820152640cae440e8f60db1b6064820152608401610cb6565b8186612488896128a9565b6124929190613402565b11156124f25760405162461bcd60e51b815260206004820152602960248201527f4b61696a754c6567656e64733a2052656163686564206d6178206d696e742070604482015268195c881dd85b1b195d60ba1b6064820152608401610cb6565b61250886600f546125039190613494565b6128fe565b50505050505050565b6000601e547f4dfdc40c587c7b6d3c5c8f9c04c90b899ebfe162f19568448c564b1f42701e9361253e3390565b6040516020016125619291909182526001600160a01b0316602082015260400190565b6040516020818303038152906040528051906020012060405160200161259e92919061190160f01b81526002810192909252602282015260420190565b60408051601f198184030181529190528051602090910120905060006125c48284612985565b90506001600160a01b038116158015906125eb5750601a546001600160a01b038281169116145b610c725760405162461bcd60e51b815260206004820152601f60248201527f4b61696a754c6567656e64733a20496e76616c6964207369676e6174757265006044820152606401610cb6565b6126518282604051806020016040528060008152506129a9565b5050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a02906126da9033908990889088906004016134b3565b602060405180830381600087803b1580156126f457600080fd5b505af1925050508015612724575060408051601f3d908101601f19168201909252612721918101906134f0565b60015b61277f573d808015612752576040519150601f19603f3d011682016040523d82523d6000602084013e612757565b606091505b508051612777576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490505b949350505050565b6060601c8054610b229061336e565b6060816127d05750506040805180820190915260018152600360fc1b602082015290565b8160005b81156127fa57806127e48161350d565b91506127f39050600a8361353e565b91506127d4565b6000816001600160401b03811115612814576128146130ca565b6040519080825280601f01601f19166020018201604052801561283e576020820181803683370190505b5090505b841561279557612853600183613552565b9150612860600a86613569565b61286b906030613402565b60f81b8183815181106128805761288061357d565b60200101906001600160f81b031916908160001a9053506128a2600a8661353e565b9450612842565b60006001600160a01b0382166128d2576040516335ebb31960e01b815260040160405180910390fd5b506001600160a01b0316600090815260066020526040902054600160401b90046001600160401b031690565b803410156129475760405162461bcd60e51b81526020600482015260166024820152752732b2b2103a379039b2b7321036b7b9329022aa241760511b6044820152606401610cb6565b80341115610ccd57336108fc61295d8334613552565b6040518115909202916000818181858888f19350505050158015612651573d6000803e3d6000fd5b600080600061299485856129b6565b915091506129a181612a26565b509392505050565b610c728383836001612be1565b6000808251604114156129ed5760208301516040840151606085015160001a6129e187828585612d88565b94509450505050612a1f565b825160401415612a175760208301516040840151612a0c868383612e75565b935093505050612a1f565b506000905060025b9250929050565b6000816004811115612a3a57612a3a61347e565b1415612a435750565b6001816004811115612a5757612a5761347e565b1415612aa55760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152606401610cb6565b6002816004811115612ab957612ab961347e565b1415612b075760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152606401610cb6565b6003816004811115612b1b57612b1b61347e565b1415612b745760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b6064820152608401610cb6565b6004816004811115612b8857612b8861347e565b1415610ccd5760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b6064820152608401610cb6565b6001546001600160a01b038516612c0a57604051622e076360e81b815260040160405180910390fd5b83612c285760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b038516600081815260066020908152604080832080546fffffffffffffffffffffffffffffffff1981166001600160401b038083168c018116918217600160401b67ffffffffffffffff1990941690921783900481168c01811690920217909155858452600590925290912080546001600160e01b031916909217600160a01b429092169190910217905580808501838015612cd457506001600160a01b0387163b15155b15612d4b575b60405182906001600160a01b03891690600090600080516020613594833981519152908290a4612d1360008884806001019550886126a5565b612d30576040516368d2bf6b60e11b815260040160405180910390fd5b80821415612cda578260015414612d4657600080fd5b612d7f565b5b6040516001830192906001600160a01b03891690600090600080516020613594833981519152908290a480821415612d4c575b506001556120cc565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0831115612dbf5750600090506003612e6c565b8460ff16601b14158015612dd757508460ff16601c14155b15612de85750600090506004612e6c565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015612e3c573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b038116612e6557600060019250925050612e6c565b9150600090505b94509492505050565b6000806001600160ff1b03831660ff84901c601b01612e9687828885612d88565b935093505050935093915050565b828054612eb09061336e565b90600052602060002090601f016020900481019282612ed25760008555612f18565b82601f10612eeb57805160ff1916838001178555612f18565b82800160010185558215612f18579182015b82811115612f18578251825591602001919060010190612efd565b50612f24929150612f28565b5090565b5b80821115612f245760008155600101612f29565b6001600160e01b031981168114610ccd57600080fd5b600060208284031215612f6557600080fd5b8135612f7081612f3d565b9392505050565b60005b83811015612f92578181015183820152602001612f7a565b838111156116875750506000910152565b60008151808452612fbb816020860160208601612f77565b601f01601f19169290920160200192915050565b602081526000612f706020830184612fa3565b600060208284031215612ff457600080fd5b5035919050565b80356001600160a01b038116811461301257600080fd5b919050565b6000806040838503121561302a57600080fd5b61303383612ffb565b946020939093013593505050565b8035801515811461301257600080fd5b60006020828403121561306357600080fd5b612f7082613041565b60008060006060848603121561308157600080fd5b61308a84612ffb565b925061309860208501612ffb565b9150604084013590509250925092565b600080604083850312156130bb57600080fd5b50508035926020909101359150565b634e487b7160e01b600052604160045260246000fd5b60006001600160401b03808411156130fa576130fa6130ca565b604051601f8501601f19908116603f01168101908282118183101715613122576131226130ca565b8160405280935085815286868601111561313b57600080fd5b858560208301376000602087830101525050509392505050565b60006020828403121561316757600080fd5b81356001600160401b0381111561317d57600080fd5b8201601f8101841361318e57600080fd5b612795848235602084016130e0565b600082601f8301126131ae57600080fd5b612f70838335602085016130e0565b600080604083850312156131d057600080fd5b8235915060208301356001600160401b038111156131ed57600080fd5b6131f98582860161319d565b9150509250929050565b60006020828403121561321557600080fd5b612f7082612ffb565b6000806040838503121561323157600080fd5b61323a83613041565b915061324860208401613041565b90509250929050565b6000806040838503121561326457600080fd5b61323a83612ffb565b60008060006060848603121561328257600080fd5b505081359360208301359350604090920135919050565b600080600080608085870312156132af57600080fd5b6132b885612ffb565b93506132c660208601612ffb565b92506040850135915060608501356001600160401b038111156132e857600080fd5b6132f48782880161319d565b91505092959194509250565b60008060006060848603121561331557600080fd5b61331e84612ffb565b92506020840135915060408401356004811061333957600080fd5b809150509250925092565b6000806040838503121561335757600080fd5b61336083612ffb565b915061324860208401612ffb565b600181811c9082168061338257607f821691505b602082108114156133a357634e487b7160e01b600052602260045260246000fd5b50919050565b60208082526023908201527f43616c6c6572206973206e6f7420746865206f776e6572206f7220747265617360408201526275727960e81b606082015260800190565b634e487b7160e01b600052601160045260246000fd5b60008219821115613415576134156133ec565b500190565b6000835161342c818460208801612f77565b835190830190613440818360208801612f77565b01949350505050565b6020808252818101527f4b61696a754c6567656e64733a2052656163686564206d617820737570706c79604082015260600190565b634e487b7160e01b600052602160045260246000fd5b60008160001904831182151516156134ae576134ae6133ec565b500290565b6001600160a01b03858116825284166020820152604081018390526080606082018190526000906134e690830184612fa3565b9695505050505050565b60006020828403121561350257600080fd5b8151612f7081612f3d565b6000600019821415613521576135216133ec565b5060010190565b634e487b7160e01b600052601260045260246000fd5b60008261354d5761354d613528565b500490565b600082821015613564576135646133ec565b500390565b60008261357857613578613528565b500690565b634e487b7160e01b600052603260045260246000fdfeddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3efa264697066735822122091111ffa5194b5879a384e3620963ef7e0b8b0db75a5a8fdec88501f7688b8b664736f6c63430008090033

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.