ETH Price: $3,426.94 (+3.21%)

Token

VMT (VMT)
 

Overview

Max Total Supply

10,000 VMT

Holders

5,701

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Filtered by Token Holder
0xdivin.eth
Balance
4 VMT
0x0cfbfffc9cc0f99fd4d368f63237473bbb40dbf2
Loading...
Loading
Loading...
Loading
Loading...
Loading

Click here to update the token information / general information
# Exchange Pair Price  24H Volume % Volume

Contract Source Code Verified (Exact Match)

Contract Name:
VMT

Compiler Version
v0.8.9+commit.e5eed63a

Optimization Enabled:
Yes with 200 runs

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

pragma solidity ^0.8.9;

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

// VMT
contract VMT is Ownable, ERC721A, ERC721AOwnersExplicit, ReentrancyGuard {
    using ECDSA for bytes32;
    using Strings for uint256;

    uint256 public immutable maxSupply = 10000;

    enum SalePhase {
        Locked,
        PreSale,
        PublicSale
    }
    SalePhase public phase = SalePhase.Locked;
    
    address private wlMintSigner;
    string private baseURL;
    string private placeholderURL;

    bool public usePlaceholder = true;

    // Mappings
    mapping(address => uint256) private wlMintAlreadyMint;

    constructor() ERC721A("VMT", "VMT") {
    }

    function tokenURI(uint256 tokenId)
        public
        view
        virtual
        override
        returns (string memory)
    {
        require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token");

        if(usePlaceholder) {
            return placeholderURL;
        }

        return string(abi.encodePacked(baseURL, tokenId.toString()));
    }

    // Only I do the stuff
    function gifMe(uint256 quantity) external onlyOwner {
        require(totalSupply() + quantity <= maxSupply, "reached max supply");
        for (uint256 i = 0; i < quantity; i++) {
            _safeMint(msg.sender, 1);
        }
    }

    function gifYou(address[] calldata addresses, uint256[] calldata count) external onlyOwner {
        uint256 len = addresses.length;
        for (uint256 i = 0; i < len; i++) {
            _safeMint(addresses[i], count[i]);
        }
    }

    //set signers
    function doDaWlThing(address _wlMintSigner)
        external
        onlyOwner
    {
        wlMintSigner = _wlMintSigner;
    }

    function mekItShowDaStuff(bool _usePlaceholder) public onlyOwner {
        usePlaceholder = _usePlaceholder;
    }

    function setTheWen(SalePhase phase_) external onlyOwner {
      phase = phase_;
    }

    function setTheWat(string calldata _baseURL) external onlyOwner {
      baseURL = _baseURL;
    }

    function setTheMaybe(string calldata _placeholderURL) external onlyOwner {
      placeholderURL = _placeholderURL;
    }

    function setFree() external onlyOwner {
      soulBound = false;
    }

    function isFreeSoGifMeNuthin() public onlyOwner {
      uint256 balance = address(this).balance;
      payable(msg.sender).transfer(balance);
    }

    // Mek da stuff
    function mekMachunForNeone()
      external
      payable
      callerIsUser
    {
        require(
            phase == SalePhase.PublicSale,
            "Public sale minting is not active"
        );
        require(
            1 + totalSupply() <= maxSupply,
            "Purchase would exceed max tokens"
        );

        _safeMint(msg.sender, 1);
    }

    function mekMachunForSpecial(bytes calldata signature)
        external
        payable
        callerIsUser
    {
        require(phase == SalePhase.PreSale,
          "Presale minting not active");
        require(
            1 + totalSupply() <= maxSupply,
            "Purchase would exceed max tokens"
        );
        require(
            wlMintSigner ==
                keccak256(
                    abi.encodePacked(
                        "\x19Ethereum Signed Message:\n32",
                        bytes32(uint256(uint160(msg.sender)))
                    )
                ).recover(signature),
            "Signer address mismatch."
        );

        require(wlMintAlreadyMint[msg.sender] == 0, "Already minted");

        wlMintAlreadyMint[msg.sender] = 1;
        _safeMint(msg.sender, 1);
    }

    function _beforeTokenTransfers(
        address from,
        address to,
        uint256 startTokenId,
        uint256 quantity
    ) internal override 
    {
        if(soulBound) {
            require(from == address(0), "Soul bound");
        }
        super._beforeTokenTransfers(from, to, startTokenId, quantity);
    }

    // More boring stuff
    function setOwnersExplicit(uint256 quantity)
      external
      onlyOwner
      nonReentrant
    {
        _setOwnersExplicit(quantity);
    }

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

    function tokensOfOwner(
        address _owner,
        uint256 startId,
        uint256 endId
    ) external view returns (uint256[] memory) {
        uint256 tokenCount = balanceOf(_owner);
        if (tokenCount == 0) {
            return new uint256[](0);
        } else {
            uint256[] memory result = new uint256[](tokenCount);
            uint256 index = 0;
            for (uint256 tokenId = startId; tokenId < endId; tokenId++) {
                if (index == tokenCount) break;

                if (ownerOf(tokenId) == _owner) {
                    result[index] = tokenId;
                    index++;
                }
            }

            return result;
        }
    }

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

File 3 of 15 : ReentrancyGuard.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (security/ReentrancyGuard.sol)

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 making 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 : Strings.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Strings.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

pragma solidity ^0.8.0;

import "../Strings.sol";

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

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

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

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

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

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

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

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

        return (signer, RecoverError.NoError);
    }

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

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

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

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

File 6 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 SoulBound();
error ApprovalToCurrentOwner();
error BalanceQueryForZeroAddress();
error MintedQueryForZeroAddress();
error BurnedQueryForZeroAddress();
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 and Enumerable extension. Built to optimize for lower gas during batch mints.
 *
 * Assumes serials are sequentially minted starting at 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;
    }

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

    bool public soulBound = true;

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

    /**
     * @dev See {IERC721Enumerable-totalSupply}.
     */
    function totalSupply() public view returns (uint256) {
        // Counter underflow is impossible as _burnCounter cannot be incremented
        // more than _currentIndex times
        unchecked {
            return _currentIndex - _burnCounter;    
        }
    }

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

    function _numberMinted(address owner) internal view returns (uint256) {
        if (owner == address(0)) revert MintedQueryForZeroAddress();
        return uint256(_addressData[owner].numberMinted);
    }

    function _numberBurned(address owner) internal view returns (uint256) {
        if (owner == address(0)) revert BurnedQueryForZeroAddress();
        return uint256(_addressData[owner].numberBurned);
    }

    /**
     * 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 (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 {
        if(soulBound) {
            revert SoulBound();
        }

        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(soulBound) {
            revert SoulBound();
        }

        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 (!_checkOnERC721Received(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 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;

            for (uint256 i; i < quantity; i++) {
                emit Transfer(address(0), to, updatedIndex);
                if (safe && !_checkOnERC721Received(address(0), to, updatedIndex, _data)) {
                    revert TransferToNonERC721ReceiverImplementer();
                }
                updatedIndex++;
            }

            _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 address.
     * The call is not executed if the target address is not a 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 _checkOnERC721Received(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) private returns (bool) {
        if (to.isContract()) {
            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))
                    }
                }
            }
        } else {
            return true;
        }
    }

    /**
     * @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 7 of 15 : ERC721AOwnersExplicit.sol
// SPDX-License-Identifier: MIT
// Creator: Chiru Labs

pragma solidity ^0.8.4;

import '../ERC721A.sol';

error AllOwnershipsHaveBeenSet();
error QuantityMustBeNonZero();
error NoTokensMintedYet();

abstract contract ERC721AOwnersExplicit is ERC721A {
    uint256 public nextOwnerToExplicitlySet;

    /**
     * @dev Explicitly set `owners` to eliminate loops in future calls of ownerOf().
     */
    function _setOwnersExplicit(uint256 quantity) internal {
        if (quantity == 0) revert QuantityMustBeNonZero();
        if (_currentIndex == 0) revert NoTokensMintedYet();
        uint256 _nextOwnerToExplicitlySet = nextOwnerToExplicitlySet;
        if (_nextOwnerToExplicitlySet >= _currentIndex) revert AllOwnershipsHaveBeenSet();

        // Index underflow is impossible.
        // Counter or index overflow is incredibly unrealistic.
        unchecked {
            uint256 endIndex = _nextOwnerToExplicitlySet + quantity - 1;

            // Set the end index to be the last token index
            if (endIndex + 1 > _currentIndex) {
                endIndex = _currentIndex - 1;
            }

            for (uint256 i = _nextOwnerToExplicitlySet; i <= endIndex; i++) {
                if (_ownerships[i].addr == address(0) && !_ownerships[i].burned) {
                    TokenOwnership memory ownership = ownershipOf(i);
                    _ownerships[i].addr = ownership.addr;
                    _ownerships[i].startTimestamp = ownership.startTimestamp;
                }
            }

            nextOwnerToExplicitlySet = endIndex + 1;
        }
    }
}

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

pragma solidity ^0.8.0;

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

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

pragma solidity ^0.8.0;

import "../IERC721.sol";

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

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

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

File 12 of 15 : IERC721Enumerable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC721/extensions/IERC721Enumerable.sol)

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

    /**
     * @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
// OpenZeppelin Contracts (last updated v4.5.0) (utils/Address.sol)

pragma solidity ^0.8.1;

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

        return account.code.length > 0;
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

import "./IERC165.sol";

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

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

pragma solidity ^0.8.0;

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

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

Contract Security Audit

Contract ABI

[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"AllOwnershipsHaveBeenSet","type":"error"},{"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":"NoTokensMintedYet","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"QuantityMustBeNonZero","type":"error"},{"inputs":[],"name":"SoulBound","type":"error"},{"inputs":[],"name":"TransferCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"TransferFromIncorrectOwner","type":"error"},{"inputs":[],"name":"TransferToNonERC721ReceiverImplementer","type":"error"},{"inputs":[],"name":"TransferToZeroAddress","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_wlMintSigner","type":"address"}],"name":"doDaWlThing","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getOwnershipData","outputs":[{"components":[{"internalType":"address","name":"addr","type":"address"},{"internalType":"uint64","name":"startTimestamp","type":"uint64"},{"internalType":"bool","name":"burned","type":"bool"}],"internalType":"struct ERC721A.TokenOwnership","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"gifMe","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"addresses","type":"address[]"},{"internalType":"uint256[]","name":"count","type":"uint256[]"}],"name":"gifYou","outputs":[],"stateMutability":"nonpayable","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":"isFreeSoGifMeNuthin","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"maxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bool","name":"_usePlaceholder","type":"bool"}],"name":"mekItShowDaStuff","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"mekMachunForNeone","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"bytes","name":"signature","type":"bytes"}],"name":"mekMachunForSpecial","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"nextOwnerToExplicitlySet","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":"phase","outputs":[{"internalType":"enum VMT.SalePhase","name":"","type":"uint8"}],"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":[],"name":"setFree","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"setOwnersExplicit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_placeholderURL","type":"string"}],"name":"setTheMaybe","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_baseURL","type":"string"}],"name":"setTheWat","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"enum VMT.SalePhase","name":"phase_","type":"uint8"}],"name":"setTheWen","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"soulBound","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_owner","type":"address"},{"internalType":"uint256","name":"startId","type":"uint256"},{"internalType":"uint256","name":"endId","type":"uint256"}],"name":"tokensOfOwner","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"usePlaceholder","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"}]

60a060405260098054600160ff199182168117909255612710608052600c805482169055600f805490911690911790553480156200003c57600080fd5b506040518060400160405280600381526020016215935560ea1b8152506040518060400160405280600381526020016215935560ea1b8152506200008f62000089620000c860201b60201c565b620000cc565b8151620000a49060039060208501906200011c565b508051620000ba9060049060208401906200011c565b50506001600b5550620001ff565b3390565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b8280546200012a90620001c2565b90600052602060002090601f0160209004810192826200014e576000855562000199565b82601f106200016957805160ff191683800117855562000199565b8280016001018555821562000199579182015b82811115620001995782518255916020019190600101906200017c565b50620001a7929150620001ab565b5090565b5b80821115620001a75760008155600101620001ac565b600181811c90821680620001d757607f821691505b60208210811415620001f957634e487b7160e01b600052602260045260246000fd5b50919050565b6080516129e262000230600039600081816106100152818161094601528181610b4b0152610c9401526129e26000f3fe60806040526004361061020f5760003560e01c8063715018a611610118578063c1854270116100a0578063d7224ba01161006f578063d7224ba014610632578063de6cf0ee14610648578063e985e9c51461065d578063f2fde38b146106a6578063f993b42d146106c657600080fd5b8063c185427014610597578063c839fe94146105b1578063c87b56dd146105de578063d5abeb01146105fe57600080fd5b8063a22cb465116100e7578063a22cb465146104f0578063b1c9fe6e14610510578063b5aa4c7014610537578063b6aa475c14610557578063b88d4fde1461057757600080fd5b8063715018a6146104525780638da5cb5b146104675780639231ab2a1461048557806395d89b41146104db57600080fd5b80632edcf2ac1161019b5780634f89e0ba1161016a5780634f89e0ba146103c35780636352211e146103dd57806365dc9ef5146103fd5780636c35d2601461041257806370a082311461043257600080fd5b80632edcf2ac146103685780632fb5cbd81461037057806342842e0e14610383578063441b5eeb146103a357600080fd5b80630b3915e0116101e25780630b3915e0146102c557806318160ddd146102e557806322d8d5fe1461030857806323b872dd146103285780632d20fb601461034857600080fd5b806301ffc9a71461021457806306fdde0314610249578063081812fc1461026b578063095ea7b3146102a3575b600080fd5b34801561022057600080fd5b5061023461022f3660046122ad565b6106e6565b60405190151581526020015b60405180910390f35b34801561025557600080fd5b5061025e610738565b6040516102409190612322565b34801561027757600080fd5b5061028b610286366004612335565b6107ca565b6040516001600160a01b039091168152602001610240565b3480156102af57600080fd5b506102c36102be36600461236a565b61080e565b005b3480156102d157600080fd5b506102c36102e0366004612394565b6108c0565b3480156102f157600080fd5b50600254600154035b604051908152602001610240565b34801561031457600080fd5b506102c3610323366004612335565b61091a565b34801561033457600080fd5b506102c36103433660046123b5565b6109ec565b34801561035457600080fd5b506102c3610363366004612335565b6109f7565b6102c3610a8a565b6102c361037e366004612432565b610bdd565b34801561038f57600080fd5b506102c361039e3660046123b5565b610e7e565b3480156103af57600080fd5b506102c36103be366004612432565b610e99565b3480156103cf57600080fd5b506009546102349060ff1681565b3480156103e957600080fd5b5061028b6103f8366004612335565b610ecf565b34801561040957600080fd5b506102c3610ee1565b34801561041e57600080fd5b506102c361042d366004612432565b610f3a565b34801561043e57600080fd5b506102fa61044d366004612473565b610f70565b34801561045e57600080fd5b506102c3610fbe565b34801561047357600080fd5b506000546001600160a01b031661028b565b34801561049157600080fd5b506104a56104a0366004612335565b610ff2565b6040805182516001600160a01b031681526020808401516001600160401b03169082015291810151151590820152606001610240565b3480156104e757600080fd5b5061025e611018565b3480156104fc57600080fd5b506102c361050b36600461249e565b611027565b34801561051c57600080fd5b50600c5461052a9060ff1681565b60405161024091906124e7565b34801561054357600080fd5b506102c3610552366004612473565b6110e1565b34801561056357600080fd5b506102c361057236600461250f565b611133565b34801561058357600080fd5b506102c3610592366004612540565b611170565b3480156105a357600080fd5b50600f546102349060ff1681565b3480156105bd57600080fd5b506105d16105cc36600461261b565b6111aa565b604051610240919061264e565b3480156105ea57600080fd5b5061025e6105f9366004612335565b6112a1565b34801561060a57600080fd5b506102fa7f000000000000000000000000000000000000000000000000000000000000000081565b34801561063e57600080fd5b506102fa600a5481565b34801561065457600080fd5b506102c36113df565b34801561066957600080fd5b50610234610678366004612692565b6001600160a01b03918216600090815260086020908152604080832093909416825291909152205460ff1690565b3480156106b257600080fd5b506102c36106c1366004612473565b611415565b3480156106d257600080fd5b506102c36106e1366004612700565b6114b0565b60006001600160e01b031982166380ac58cd60e01b148061071757506001600160e01b03198216635b5e139f60e01b145b8061073257506301ffc9a760e01b6001600160e01b03198316145b92915050565b6060600380546107479061276b565b80601f01602080910402602001604051908101604052809291908181526020018280546107739061276b565b80156107c05780601f10610795576101008083540402835291602001916107c0565b820191906000526020600020905b8154815290600101906020018083116107a357829003601f168201915b5050505050905090565b60006107d582611548565b6107f2576040516333d1c03960e21b815260040160405180910390fd5b506000908152600760205260409020546001600160a01b031690565b60095460ff161561083257604051631267838f60e11b815260040160405180910390fd5b600061083d82610ecf565b9050806001600160a01b0316836001600160a01b031614156108725760405163250fdee360e21b815260040160405180910390fd5b336001600160a01b0382161480159061089257506108908133610678565b155b156108b0576040516367d9dca160e11b815260040160405180910390fd5b6108bb838383611574565b505050565b6000546001600160a01b031633146108f35760405162461bcd60e51b81526004016108ea906127a6565b60405180910390fd5b600c805482919060ff19166001836002811115610912576109126124d1565b021790555050565b6000546001600160a01b031633146109445760405162461bcd60e51b81526004016108ea906127a6565b7f0000000000000000000000000000000000000000000000000000000000000000816109736002546001540390565b61097d91906127f1565b11156109c05760405162461bcd60e51b815260206004820152601260248201527172656163686564206d617820737570706c7960701b60448201526064016108ea565b60005b818110156109e8576109d63360016115d0565b806109e081612809565b9150506109c3565b5050565b6108bb8383836115ea565b6000546001600160a01b03163314610a215760405162461bcd60e51b81526004016108ea906127a6565b6002600b541415610a745760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016108ea565b6002600b55610a828161180b565b506001600b55565b323314610ad95760405162461bcd60e51b815260206004820152601e60248201527f5468652063616c6c657220697320616e6f7468657220636f6e7472616374000060448201526064016108ea565b6002600c5460ff166002811115610af257610af26124d1565b14610b495760405162461bcd60e51b815260206004820152602160248201527f5075626c69632073616c65206d696e74696e67206973206e6f742061637469766044820152606560f81b60648201526084016108ea565b7f0000000000000000000000000000000000000000000000000000000000000000610b776002546001540390565b610b829060016127f1565b1115610bd05760405162461bcd60e51b815260206004820181905260248201527f507572636861736520776f756c6420657863656564206d617820746f6b656e7360448201526064016108ea565b610bdb3360016115d0565b565b323314610c2c5760405162461bcd60e51b815260206004820152601e60248201527f5468652063616c6c657220697320616e6f7468657220636f6e7472616374000060448201526064016108ea565b6001600c5460ff166002811115610c4557610c456124d1565b14610c925760405162461bcd60e51b815260206004820152601a60248201527f50726573616c65206d696e74696e67206e6f742061637469766500000000000060448201526064016108ea565b7f0000000000000000000000000000000000000000000000000000000000000000610cc06002546001540390565b610ccb9060016127f1565b1115610d195760405162461bcd60e51b815260206004820181905260248201527f507572636861736520776f756c6420657863656564206d617820746f6b656e7360448201526064016108ea565b610daf82828080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250506040517f19457468657265756d205369676e6564204d6573736167653a0a333200000000602082015233603c820152605c019150610d8b9050565b6040516020818303038152906040528051906020012061193990919063ffffffff16565b600c5461010090046001600160a01b03908116911614610e115760405162461bcd60e51b815260206004820152601860248201527f5369676e65722061646472657373206d69736d617463682e000000000000000060448201526064016108ea565b3360009081526010602052604090205415610e5f5760405162461bcd60e51b815260206004820152600e60248201526d105b1c9958591e481b5a5b9d195960921b60448201526064016108ea565b3360008181526010602052604090206001908190556109e891906115d0565b6108bb83838360405180602001604052806000815250611170565b6000546001600160a01b03163314610ec35760405162461bcd60e51b81526004016108ea906127a6565b6108bb600d83836121fe565b6000610eda8261195d565b5192915050565b6000546001600160a01b03163314610f0b5760405162461bcd60e51b81526004016108ea906127a6565b6040514790339082156108fc029083906000818181858888f193505050501580156109e8573d6000803e3d6000fd5b6000546001600160a01b03163314610f645760405162461bcd60e51b81526004016108ea906127a6565b6108bb600e83836121fe565b60006001600160a01b038216610f99576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b03166000908152600660205260409020546001600160401b031690565b6000546001600160a01b03163314610fe85760405162461bcd60e51b81526004016108ea906127a6565b610bdb6000611a78565b60408051606081018252600080825260208201819052918101919091526107328261195d565b6060600480546107479061276b565b60095460ff161561104b57604051631267838f60e11b815260040160405180910390fd5b6001600160a01b0382163314156110755760405163b06307db60e01b815260040160405180910390fd5b3360008181526008602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6000546001600160a01b0316331461110b5760405162461bcd60e51b81526004016108ea906127a6565b600c80546001600160a01b0390921661010002610100600160a81b0319909216919091179055565b6000546001600160a01b0316331461115d5760405162461bcd60e51b81526004016108ea906127a6565b600f805460ff1916911515919091179055565b61117b8484846115ea565b61118784848484611ac8565b6111a4576040516368d2bf6b60e11b815260040160405180910390fd5b50505050565b606060006111b785610f70565b9050806111d457505060408051600081526020810190915261129a565b6000816001600160401b038111156111ee576111ee61252a565b604051908082528060200260200182016040528015611217578160200160208202803683370190505b5090506000855b85811015611293578382141561123357611293565b876001600160a01b031661124682610ecf565b6001600160a01b03161415611281578083838151811061126857611268612824565b60209081029190910101528161127d81612809565b9250505b8061128b81612809565b91505061121e565b5090925050505b9392505050565b60606112ac82611548565b6113105760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b60648201526084016108ea565b600f5460ff16156113ad57600e80546113289061276b565b80601f01602080910402602001604051908101604052809291908181526020018280546113549061276b565b80156113a15780601f10611376576101008083540402835291602001916113a1565b820191906000526020600020905b81548152906001019060200180831161138457829003601f168201915b50505050509050919050565b600d6113b883611bd7565b6040516020016113c9929190612856565b6040516020818303038152906040529050919050565b6000546001600160a01b031633146114095760405162461bcd60e51b81526004016108ea906127a6565b6009805460ff19169055565b6000546001600160a01b0316331461143f5760405162461bcd60e51b81526004016108ea906127a6565b6001600160a01b0381166114a45760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016108ea565b6114ad81611a78565b50565b6000546001600160a01b031633146114da5760405162461bcd60e51b81526004016108ea906127a6565b8260005b818110156115405761152e8686838181106114fb576114fb612824565b90506020020160208101906115109190612473565b85858481811061152257611522612824565b905060200201356115d0565b8061153881612809565b9150506114de565b505050505050565b600060015482108015610732575050600090815260056020526040902054600160e01b900460ff161590565b60008281526007602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b6109e8828260405180602001604052806000815250611cd4565b60006115f58261195d565b80519091506000906001600160a01b0316336001600160a01b03161480611623575081516116239033610678565b8061163e575033611633846107ca565b6001600160a01b0316145b90508061165e57604051632ce44b5f60e11b815260040160405180910390fd5b846001600160a01b031682600001516001600160a01b0316146116935760405162a1148160e81b815260040160405180910390fd5b6001600160a01b0384166116ba57604051633a954ecd60e21b815260040160405180910390fd5b6116c78585856001611ce1565b6116d76000848460000151611574565b6001600160a01b038581166000908152600660209081526040808320805467ffffffffffffffff198082166001600160401b0392831660001901831617909255898616808652838620805493841693831660019081018416949094179055898652600590945282852080546001600160e01b031916909417600160a01b4290921691909102179092559086018083529120549091166117c1576001548110156117c157825160008281526005602090815260409091208054918601516001600160401b0316600160a01b026001600160e01b03199092166001600160a01b03909316929092171790555b5082846001600160a01b0316866001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45b5050505050565b80611829576040516356be441560e01b815260040160405180910390fd5b6001546118495760405163c0367cab60e01b815260040160405180910390fd5b600a54600154811061186e576040516370e89b1b60e01b815260040160405180910390fd5b60015482820160001981019110156118895750600154600019015b815b81811161192e576000818152600560205260409020546001600160a01b03161580156118cd5750600081815260056020526040902054600160e01b900460ff16155b156119265760006118dd8261195d565b80516000848152600560209081526040909120805491909301516001600160401b0316600160a01b026001600160e01b03199091166001600160a01b0390921691909117179055505b60010161188b565b50600101600a555050565b60008060006119488585611d35565b9150915061195581611da5565b509392505050565b60408051606081018252600080825260208201819052918101919091526001548290811015611a5f57600081815260056020908152604091829020825160608101845290546001600160a01b0381168252600160a01b81046001600160401b031692820192909252600160e01b90910460ff16151591810182905290611a5d5780516001600160a01b0316156119f4579392505050565b5060001901600081815260056020908152604091829020825160608101845290546001600160a01b038116808352600160a01b82046001600160401b031693830193909352600160e01b900460ff1615159281019290925215611a58579392505050565b6119f4565b505b604051636f96cda160e11b815260040160405180910390fd5b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b60006001600160a01b0384163b15611bcb57604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290611b0c9033908990889088906004016128fd565b602060405180830381600087803b158015611b2657600080fd5b505af1925050508015611b56575060408051601f3d908101601f19168201909252611b539181019061293a565b60015b611bb1573d808015611b84576040519150601f19603f3d011682016040523d82523d6000602084013e611b89565b606091505b508051611ba9576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611bcf565b5060015b949350505050565b606081611bfb5750506040805180820190915260018152600360fc1b602082015290565b8160005b8115611c255780611c0f81612809565b9150611c1e9050600a8361296d565b9150611bff565b6000816001600160401b03811115611c3f57611c3f61252a565b6040519080825280601f01601f191660200182016040528015611c69576020820181803683370190505b5090505b8415611bcf57611c7e600183612981565b9150611c8b600a86612998565b611c969060306127f1565b60f81b818381518110611cab57611cab612824565b60200101906001600160f81b031916908160001a905350611ccd600a8661296d565b9450611c6d565b6108bb8383836001611f60565b60095460ff1615611d30576001600160a01b03841615611d305760405162461bcd60e51b815260206004820152600a60248201526914dbdd5b08189bdd5b9960b21b60448201526064016108ea565b6111a4565b600080825160411415611d6c5760208301516040840151606085015160001a611d60878285856120d8565b94509450505050611d9e565b825160401415611d965760208301516040840151611d8b8683836121c5565b935093505050611d9e565b506000905060025b9250929050565b6000816004811115611db957611db96124d1565b1415611dc25750565b6001816004811115611dd657611dd66124d1565b1415611e245760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e6174757265000000000000000060448201526064016108ea565b6002816004811115611e3857611e386124d1565b1415611e865760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e6774680060448201526064016108ea565b6003816004811115611e9a57611e9a6124d1565b1415611ef35760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b60648201526084016108ea565b6004816004811115611f0757611f076124d1565b14156114ad5760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b60648201526084016108ea565b6001546001600160a01b038516611f8957604051622e076360e81b815260040160405180910390fd5b83611fa75760405163b562e8dd60e01b815260040160405180910390fd5b611fb46000868387611ce1565b6001600160a01b038516600081815260066020908152604080832080546fffffffffffffffffffffffffffffffff1981166001600160401b038083168c0181169182176801000000000000000067ffffffffffffffff1990941690921783900481168c018116909202179091558584526005909252822080546001600160e01b031916909317600160a01b42909216919091021790915581905b858110156120cf5760405182906001600160a01b038916906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a48380156120a557506120a36000888488611ac8565b155b156120c3576040516368d2bf6b60e11b815260040160405180910390fd5b6001918201910161204e565b50600155611804565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a083111561210f57506000905060036121bc565b8460ff16601b1415801561212757508460ff16601c14155b1561213857506000905060046121bc565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa15801561218c573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b0381166121b5576000600192509250506121bc565b9150600090505b94509492505050565b6000806001600160ff1b038316816121e260ff86901c601b6127f1565b90506121f0878288856120d8565b935093505050935093915050565b82805461220a9061276b565b90600052602060002090601f01602090048101928261222c5760008555612272565b82601f106122455782800160ff19823516178555612272565b82800160010185558215612272579182015b82811115612272578235825591602001919060010190612257565b5061227e929150612282565b5090565b5b8082111561227e5760008155600101612283565b6001600160e01b0319811681146114ad57600080fd5b6000602082840312156122bf57600080fd5b813561129a81612297565b60005b838110156122e55781810151838201526020016122cd565b838111156111a45750506000910152565b6000815180845261230e8160208601602086016122ca565b601f01601f19169290920160200192915050565b60208152600061129a60208301846122f6565b60006020828403121561234757600080fd5b5035919050565b80356001600160a01b038116811461236557600080fd5b919050565b6000806040838503121561237d57600080fd5b6123868361234e565b946020939093013593505050565b6000602082840312156123a657600080fd5b81356003811061129a57600080fd5b6000806000606084860312156123ca57600080fd5b6123d38461234e565b92506123e16020850161234e565b9150604084013590509250925092565b60008083601f84011261240357600080fd5b5081356001600160401b0381111561241a57600080fd5b602083019150836020828501011115611d9e57600080fd5b6000806020838503121561244557600080fd5b82356001600160401b0381111561245b57600080fd5b612467858286016123f1565b90969095509350505050565b60006020828403121561248557600080fd5b61129a8261234e565b8035801515811461236557600080fd5b600080604083850312156124b157600080fd5b6124ba8361234e565b91506124c86020840161248e565b90509250929050565b634e487b7160e01b600052602160045260246000fd5b602081016003831061250957634e487b7160e01b600052602160045260246000fd5b91905290565b60006020828403121561252157600080fd5b61129a8261248e565b634e487b7160e01b600052604160045260246000fd5b6000806000806080858703121561255657600080fd5b61255f8561234e565b935061256d6020860161234e565b92506040850135915060608501356001600160401b038082111561259057600080fd5b818701915087601f8301126125a457600080fd5b8135818111156125b6576125b661252a565b604051601f8201601f19908116603f011681019083821181831017156125de576125de61252a565b816040528281528a60208487010111156125f757600080fd5b82602086016020830137600060208483010152809550505050505092959194509250565b60008060006060848603121561263057600080fd5b6126398461234e565b95602085013595506040909401359392505050565b6020808252825182820181905260009190848201906040850190845b818110156126865783518352928401929184019160010161266a565b50909695505050505050565b600080604083850312156126a557600080fd5b6126ae8361234e565b91506124c86020840161234e565b60008083601f8401126126ce57600080fd5b5081356001600160401b038111156126e557600080fd5b6020830191508360208260051b8501011115611d9e57600080fd5b6000806000806040858703121561271657600080fd5b84356001600160401b038082111561272d57600080fd5b612739888389016126bc565b9096509450602087013591508082111561275257600080fd5b5061275f878288016126bc565b95989497509550505050565b600181811c9082168061277f57607f821691505b602082108114156127a057634e487b7160e01b600052602260045260246000fd5b50919050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b634e487b7160e01b600052601160045260246000fd5b60008219821115612804576128046127db565b500190565b600060001982141561281d5761281d6127db565b5060010190565b634e487b7160e01b600052603260045260246000fd5b6000815161284c8185602086016122ca565b9290920192915050565b600080845481600182811c91508083168061287257607f831692505b602080841082141561289257634e487b7160e01b86526022600452602486fd5b8180156128a657600181146128b7576128e4565b60ff198616895284890196506128e4565b60008b81526020902060005b868110156128dc5781548b8201529085019083016128c3565b505084890196505b5050505050506128f4818561283a565b95945050505050565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090612930908301846122f6565b9695505050505050565b60006020828403121561294c57600080fd5b815161129a81612297565b634e487b7160e01b600052601260045260246000fd5b60008261297c5761297c612957565b500490565b600082821015612993576129936127db565b500390565b6000826129a7576129a7612957565b50069056fea26469706673582212204a7b7fe416ce1dfbb69919eecd45fd4bea4980a67f4fddcadefa76c1ded50aa164736f6c63430008090033

Deployed Bytecode

0x60806040526004361061020f5760003560e01c8063715018a611610118578063c1854270116100a0578063d7224ba01161006f578063d7224ba014610632578063de6cf0ee14610648578063e985e9c51461065d578063f2fde38b146106a6578063f993b42d146106c657600080fd5b8063c185427014610597578063c839fe94146105b1578063c87b56dd146105de578063d5abeb01146105fe57600080fd5b8063a22cb465116100e7578063a22cb465146104f0578063b1c9fe6e14610510578063b5aa4c7014610537578063b6aa475c14610557578063b88d4fde1461057757600080fd5b8063715018a6146104525780638da5cb5b146104675780639231ab2a1461048557806395d89b41146104db57600080fd5b80632edcf2ac1161019b5780634f89e0ba1161016a5780634f89e0ba146103c35780636352211e146103dd57806365dc9ef5146103fd5780636c35d2601461041257806370a082311461043257600080fd5b80632edcf2ac146103685780632fb5cbd81461037057806342842e0e14610383578063441b5eeb146103a357600080fd5b80630b3915e0116101e25780630b3915e0146102c557806318160ddd146102e557806322d8d5fe1461030857806323b872dd146103285780632d20fb601461034857600080fd5b806301ffc9a71461021457806306fdde0314610249578063081812fc1461026b578063095ea7b3146102a3575b600080fd5b34801561022057600080fd5b5061023461022f3660046122ad565b6106e6565b60405190151581526020015b60405180910390f35b34801561025557600080fd5b5061025e610738565b6040516102409190612322565b34801561027757600080fd5b5061028b610286366004612335565b6107ca565b6040516001600160a01b039091168152602001610240565b3480156102af57600080fd5b506102c36102be36600461236a565b61080e565b005b3480156102d157600080fd5b506102c36102e0366004612394565b6108c0565b3480156102f157600080fd5b50600254600154035b604051908152602001610240565b34801561031457600080fd5b506102c3610323366004612335565b61091a565b34801561033457600080fd5b506102c36103433660046123b5565b6109ec565b34801561035457600080fd5b506102c3610363366004612335565b6109f7565b6102c3610a8a565b6102c361037e366004612432565b610bdd565b34801561038f57600080fd5b506102c361039e3660046123b5565b610e7e565b3480156103af57600080fd5b506102c36103be366004612432565b610e99565b3480156103cf57600080fd5b506009546102349060ff1681565b3480156103e957600080fd5b5061028b6103f8366004612335565b610ecf565b34801561040957600080fd5b506102c3610ee1565b34801561041e57600080fd5b506102c361042d366004612432565b610f3a565b34801561043e57600080fd5b506102fa61044d366004612473565b610f70565b34801561045e57600080fd5b506102c3610fbe565b34801561047357600080fd5b506000546001600160a01b031661028b565b34801561049157600080fd5b506104a56104a0366004612335565b610ff2565b6040805182516001600160a01b031681526020808401516001600160401b03169082015291810151151590820152606001610240565b3480156104e757600080fd5b5061025e611018565b3480156104fc57600080fd5b506102c361050b36600461249e565b611027565b34801561051c57600080fd5b50600c5461052a9060ff1681565b60405161024091906124e7565b34801561054357600080fd5b506102c3610552366004612473565b6110e1565b34801561056357600080fd5b506102c361057236600461250f565b611133565b34801561058357600080fd5b506102c3610592366004612540565b611170565b3480156105a357600080fd5b50600f546102349060ff1681565b3480156105bd57600080fd5b506105d16105cc36600461261b565b6111aa565b604051610240919061264e565b3480156105ea57600080fd5b5061025e6105f9366004612335565b6112a1565b34801561060a57600080fd5b506102fa7f000000000000000000000000000000000000000000000000000000000000271081565b34801561063e57600080fd5b506102fa600a5481565b34801561065457600080fd5b506102c36113df565b34801561066957600080fd5b50610234610678366004612692565b6001600160a01b03918216600090815260086020908152604080832093909416825291909152205460ff1690565b3480156106b257600080fd5b506102c36106c1366004612473565b611415565b3480156106d257600080fd5b506102c36106e1366004612700565b6114b0565b60006001600160e01b031982166380ac58cd60e01b148061071757506001600160e01b03198216635b5e139f60e01b145b8061073257506301ffc9a760e01b6001600160e01b03198316145b92915050565b6060600380546107479061276b565b80601f01602080910402602001604051908101604052809291908181526020018280546107739061276b565b80156107c05780601f10610795576101008083540402835291602001916107c0565b820191906000526020600020905b8154815290600101906020018083116107a357829003601f168201915b5050505050905090565b60006107d582611548565b6107f2576040516333d1c03960e21b815260040160405180910390fd5b506000908152600760205260409020546001600160a01b031690565b60095460ff161561083257604051631267838f60e11b815260040160405180910390fd5b600061083d82610ecf565b9050806001600160a01b0316836001600160a01b031614156108725760405163250fdee360e21b815260040160405180910390fd5b336001600160a01b0382161480159061089257506108908133610678565b155b156108b0576040516367d9dca160e11b815260040160405180910390fd5b6108bb838383611574565b505050565b6000546001600160a01b031633146108f35760405162461bcd60e51b81526004016108ea906127a6565b60405180910390fd5b600c805482919060ff19166001836002811115610912576109126124d1565b021790555050565b6000546001600160a01b031633146109445760405162461bcd60e51b81526004016108ea906127a6565b7f0000000000000000000000000000000000000000000000000000000000002710816109736002546001540390565b61097d91906127f1565b11156109c05760405162461bcd60e51b815260206004820152601260248201527172656163686564206d617820737570706c7960701b60448201526064016108ea565b60005b818110156109e8576109d63360016115d0565b806109e081612809565b9150506109c3565b5050565b6108bb8383836115ea565b6000546001600160a01b03163314610a215760405162461bcd60e51b81526004016108ea906127a6565b6002600b541415610a745760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016108ea565b6002600b55610a828161180b565b506001600b55565b323314610ad95760405162461bcd60e51b815260206004820152601e60248201527f5468652063616c6c657220697320616e6f7468657220636f6e7472616374000060448201526064016108ea565b6002600c5460ff166002811115610af257610af26124d1565b14610b495760405162461bcd60e51b815260206004820152602160248201527f5075626c69632073616c65206d696e74696e67206973206e6f742061637469766044820152606560f81b60648201526084016108ea565b7f0000000000000000000000000000000000000000000000000000000000002710610b776002546001540390565b610b829060016127f1565b1115610bd05760405162461bcd60e51b815260206004820181905260248201527f507572636861736520776f756c6420657863656564206d617820746f6b656e7360448201526064016108ea565b610bdb3360016115d0565b565b323314610c2c5760405162461bcd60e51b815260206004820152601e60248201527f5468652063616c6c657220697320616e6f7468657220636f6e7472616374000060448201526064016108ea565b6001600c5460ff166002811115610c4557610c456124d1565b14610c925760405162461bcd60e51b815260206004820152601a60248201527f50726573616c65206d696e74696e67206e6f742061637469766500000000000060448201526064016108ea565b7f0000000000000000000000000000000000000000000000000000000000002710610cc06002546001540390565b610ccb9060016127f1565b1115610d195760405162461bcd60e51b815260206004820181905260248201527f507572636861736520776f756c6420657863656564206d617820746f6b656e7360448201526064016108ea565b610daf82828080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250506040517f19457468657265756d205369676e6564204d6573736167653a0a333200000000602082015233603c820152605c019150610d8b9050565b6040516020818303038152906040528051906020012061193990919063ffffffff16565b600c5461010090046001600160a01b03908116911614610e115760405162461bcd60e51b815260206004820152601860248201527f5369676e65722061646472657373206d69736d617463682e000000000000000060448201526064016108ea565b3360009081526010602052604090205415610e5f5760405162461bcd60e51b815260206004820152600e60248201526d105b1c9958591e481b5a5b9d195960921b60448201526064016108ea565b3360008181526010602052604090206001908190556109e891906115d0565b6108bb83838360405180602001604052806000815250611170565b6000546001600160a01b03163314610ec35760405162461bcd60e51b81526004016108ea906127a6565b6108bb600d83836121fe565b6000610eda8261195d565b5192915050565b6000546001600160a01b03163314610f0b5760405162461bcd60e51b81526004016108ea906127a6565b6040514790339082156108fc029083906000818181858888f193505050501580156109e8573d6000803e3d6000fd5b6000546001600160a01b03163314610f645760405162461bcd60e51b81526004016108ea906127a6565b6108bb600e83836121fe565b60006001600160a01b038216610f99576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b03166000908152600660205260409020546001600160401b031690565b6000546001600160a01b03163314610fe85760405162461bcd60e51b81526004016108ea906127a6565b610bdb6000611a78565b60408051606081018252600080825260208201819052918101919091526107328261195d565b6060600480546107479061276b565b60095460ff161561104b57604051631267838f60e11b815260040160405180910390fd5b6001600160a01b0382163314156110755760405163b06307db60e01b815260040160405180910390fd5b3360008181526008602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6000546001600160a01b0316331461110b5760405162461bcd60e51b81526004016108ea906127a6565b600c80546001600160a01b0390921661010002610100600160a81b0319909216919091179055565b6000546001600160a01b0316331461115d5760405162461bcd60e51b81526004016108ea906127a6565b600f805460ff1916911515919091179055565b61117b8484846115ea565b61118784848484611ac8565b6111a4576040516368d2bf6b60e11b815260040160405180910390fd5b50505050565b606060006111b785610f70565b9050806111d457505060408051600081526020810190915261129a565b6000816001600160401b038111156111ee576111ee61252a565b604051908082528060200260200182016040528015611217578160200160208202803683370190505b5090506000855b85811015611293578382141561123357611293565b876001600160a01b031661124682610ecf565b6001600160a01b03161415611281578083838151811061126857611268612824565b60209081029190910101528161127d81612809565b9250505b8061128b81612809565b91505061121e565b5090925050505b9392505050565b60606112ac82611548565b6113105760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b60648201526084016108ea565b600f5460ff16156113ad57600e80546113289061276b565b80601f01602080910402602001604051908101604052809291908181526020018280546113549061276b565b80156113a15780601f10611376576101008083540402835291602001916113a1565b820191906000526020600020905b81548152906001019060200180831161138457829003601f168201915b50505050509050919050565b600d6113b883611bd7565b6040516020016113c9929190612856565b6040516020818303038152906040529050919050565b6000546001600160a01b031633146114095760405162461bcd60e51b81526004016108ea906127a6565b6009805460ff19169055565b6000546001600160a01b0316331461143f5760405162461bcd60e51b81526004016108ea906127a6565b6001600160a01b0381166114a45760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016108ea565b6114ad81611a78565b50565b6000546001600160a01b031633146114da5760405162461bcd60e51b81526004016108ea906127a6565b8260005b818110156115405761152e8686838181106114fb576114fb612824565b90506020020160208101906115109190612473565b85858481811061152257611522612824565b905060200201356115d0565b8061153881612809565b9150506114de565b505050505050565b600060015482108015610732575050600090815260056020526040902054600160e01b900460ff161590565b60008281526007602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b6109e8828260405180602001604052806000815250611cd4565b60006115f58261195d565b80519091506000906001600160a01b0316336001600160a01b03161480611623575081516116239033610678565b8061163e575033611633846107ca565b6001600160a01b0316145b90508061165e57604051632ce44b5f60e11b815260040160405180910390fd5b846001600160a01b031682600001516001600160a01b0316146116935760405162a1148160e81b815260040160405180910390fd5b6001600160a01b0384166116ba57604051633a954ecd60e21b815260040160405180910390fd5b6116c78585856001611ce1565b6116d76000848460000151611574565b6001600160a01b038581166000908152600660209081526040808320805467ffffffffffffffff198082166001600160401b0392831660001901831617909255898616808652838620805493841693831660019081018416949094179055898652600590945282852080546001600160e01b031916909417600160a01b4290921691909102179092559086018083529120549091166117c1576001548110156117c157825160008281526005602090815260409091208054918601516001600160401b0316600160a01b026001600160e01b03199092166001600160a01b03909316929092171790555b5082846001600160a01b0316866001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45b5050505050565b80611829576040516356be441560e01b815260040160405180910390fd5b6001546118495760405163c0367cab60e01b815260040160405180910390fd5b600a54600154811061186e576040516370e89b1b60e01b815260040160405180910390fd5b60015482820160001981019110156118895750600154600019015b815b81811161192e576000818152600560205260409020546001600160a01b03161580156118cd5750600081815260056020526040902054600160e01b900460ff16155b156119265760006118dd8261195d565b80516000848152600560209081526040909120805491909301516001600160401b0316600160a01b026001600160e01b03199091166001600160a01b0390921691909117179055505b60010161188b565b50600101600a555050565b60008060006119488585611d35565b9150915061195581611da5565b509392505050565b60408051606081018252600080825260208201819052918101919091526001548290811015611a5f57600081815260056020908152604091829020825160608101845290546001600160a01b0381168252600160a01b81046001600160401b031692820192909252600160e01b90910460ff16151591810182905290611a5d5780516001600160a01b0316156119f4579392505050565b5060001901600081815260056020908152604091829020825160608101845290546001600160a01b038116808352600160a01b82046001600160401b031693830193909352600160e01b900460ff1615159281019290925215611a58579392505050565b6119f4565b505b604051636f96cda160e11b815260040160405180910390fd5b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b60006001600160a01b0384163b15611bcb57604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290611b0c9033908990889088906004016128fd565b602060405180830381600087803b158015611b2657600080fd5b505af1925050508015611b56575060408051601f3d908101601f19168201909252611b539181019061293a565b60015b611bb1573d808015611b84576040519150601f19603f3d011682016040523d82523d6000602084013e611b89565b606091505b508051611ba9576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611bcf565b5060015b949350505050565b606081611bfb5750506040805180820190915260018152600360fc1b602082015290565b8160005b8115611c255780611c0f81612809565b9150611c1e9050600a8361296d565b9150611bff565b6000816001600160401b03811115611c3f57611c3f61252a565b6040519080825280601f01601f191660200182016040528015611c69576020820181803683370190505b5090505b8415611bcf57611c7e600183612981565b9150611c8b600a86612998565b611c969060306127f1565b60f81b818381518110611cab57611cab612824565b60200101906001600160f81b031916908160001a905350611ccd600a8661296d565b9450611c6d565b6108bb8383836001611f60565b60095460ff1615611d30576001600160a01b03841615611d305760405162461bcd60e51b815260206004820152600a60248201526914dbdd5b08189bdd5b9960b21b60448201526064016108ea565b6111a4565b600080825160411415611d6c5760208301516040840151606085015160001a611d60878285856120d8565b94509450505050611d9e565b825160401415611d965760208301516040840151611d8b8683836121c5565b935093505050611d9e565b506000905060025b9250929050565b6000816004811115611db957611db96124d1565b1415611dc25750565b6001816004811115611dd657611dd66124d1565b1415611e245760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e6174757265000000000000000060448201526064016108ea565b6002816004811115611e3857611e386124d1565b1415611e865760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e6774680060448201526064016108ea565b6003816004811115611e9a57611e9a6124d1565b1415611ef35760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b60648201526084016108ea565b6004816004811115611f0757611f076124d1565b14156114ad5760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b60648201526084016108ea565b6001546001600160a01b038516611f8957604051622e076360e81b815260040160405180910390fd5b83611fa75760405163b562e8dd60e01b815260040160405180910390fd5b611fb46000868387611ce1565b6001600160a01b038516600081815260066020908152604080832080546fffffffffffffffffffffffffffffffff1981166001600160401b038083168c0181169182176801000000000000000067ffffffffffffffff1990941690921783900481168c018116909202179091558584526005909252822080546001600160e01b031916909317600160a01b42909216919091021790915581905b858110156120cf5760405182906001600160a01b038916906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a48380156120a557506120a36000888488611ac8565b155b156120c3576040516368d2bf6b60e11b815260040160405180910390fd5b6001918201910161204e565b50600155611804565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a083111561210f57506000905060036121bc565b8460ff16601b1415801561212757508460ff16601c14155b1561213857506000905060046121bc565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa15801561218c573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b0381166121b5576000600192509250506121bc565b9150600090505b94509492505050565b6000806001600160ff1b038316816121e260ff86901c601b6127f1565b90506121f0878288856120d8565b935093505050935093915050565b82805461220a9061276b565b90600052602060002090601f01602090048101928261222c5760008555612272565b82601f106122455782800160ff19823516178555612272565b82800160010185558215612272579182015b82811115612272578235825591602001919060010190612257565b5061227e929150612282565b5090565b5b8082111561227e5760008155600101612283565b6001600160e01b0319811681146114ad57600080fd5b6000602082840312156122bf57600080fd5b813561129a81612297565b60005b838110156122e55781810151838201526020016122cd565b838111156111a45750506000910152565b6000815180845261230e8160208601602086016122ca565b601f01601f19169290920160200192915050565b60208152600061129a60208301846122f6565b60006020828403121561234757600080fd5b5035919050565b80356001600160a01b038116811461236557600080fd5b919050565b6000806040838503121561237d57600080fd5b6123868361234e565b946020939093013593505050565b6000602082840312156123a657600080fd5b81356003811061129a57600080fd5b6000806000606084860312156123ca57600080fd5b6123d38461234e565b92506123e16020850161234e565b9150604084013590509250925092565b60008083601f84011261240357600080fd5b5081356001600160401b0381111561241a57600080fd5b602083019150836020828501011115611d9e57600080fd5b6000806020838503121561244557600080fd5b82356001600160401b0381111561245b57600080fd5b612467858286016123f1565b90969095509350505050565b60006020828403121561248557600080fd5b61129a8261234e565b8035801515811461236557600080fd5b600080604083850312156124b157600080fd5b6124ba8361234e565b91506124c86020840161248e565b90509250929050565b634e487b7160e01b600052602160045260246000fd5b602081016003831061250957634e487b7160e01b600052602160045260246000fd5b91905290565b60006020828403121561252157600080fd5b61129a8261248e565b634e487b7160e01b600052604160045260246000fd5b6000806000806080858703121561255657600080fd5b61255f8561234e565b935061256d6020860161234e565b92506040850135915060608501356001600160401b038082111561259057600080fd5b818701915087601f8301126125a457600080fd5b8135818111156125b6576125b661252a565b604051601f8201601f19908116603f011681019083821181831017156125de576125de61252a565b816040528281528a60208487010111156125f757600080fd5b82602086016020830137600060208483010152809550505050505092959194509250565b60008060006060848603121561263057600080fd5b6126398461234e565b95602085013595506040909401359392505050565b6020808252825182820181905260009190848201906040850190845b818110156126865783518352928401929184019160010161266a565b50909695505050505050565b600080604083850312156126a557600080fd5b6126ae8361234e565b91506124c86020840161234e565b60008083601f8401126126ce57600080fd5b5081356001600160401b038111156126e557600080fd5b6020830191508360208260051b8501011115611d9e57600080fd5b6000806000806040858703121561271657600080fd5b84356001600160401b038082111561272d57600080fd5b612739888389016126bc565b9096509450602087013591508082111561275257600080fd5b5061275f878288016126bc565b95989497509550505050565b600181811c9082168061277f57607f821691505b602082108114156127a057634e487b7160e01b600052602260045260246000fd5b50919050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b634e487b7160e01b600052601160045260246000fd5b60008219821115612804576128046127db565b500190565b600060001982141561281d5761281d6127db565b5060010190565b634e487b7160e01b600052603260045260246000fd5b6000815161284c8185602086016122ca565b9290920192915050565b600080845481600182811c91508083168061287257607f831692505b602080841082141561289257634e487b7160e01b86526022600452602486fd5b8180156128a657600181146128b7576128e4565b60ff198616895284890196506128e4565b60008b81526020902060005b868110156128dc5781548b8201529085019083016128c3565b505084890196505b5050505050506128f4818561283a565b95945050505050565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090612930908301846122f6565b9695505050505050565b60006020828403121561294c57600080fd5b815161129a81612297565b634e487b7160e01b600052601260045260246000fd5b60008261297c5761297c612957565b500490565b600082821015612993576129936127db565b500390565b6000826129a7576129a7612957565b50069056fea26469706673582212204a7b7fe416ce1dfbb69919eecd45fd4bea4980a67f4fddcadefa76c1ded50aa164736f6c63430008090033

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.